@types/twit
Advanced tools
Comparing version 2.2.30 to 2.2.31
@@ -267,2 +267,44 @@ // Type definitions for twit 2.2 | ||
} | ||
interface QuickReplyOption { | ||
label: string; | ||
description?: string; | ||
metadata?: string; | ||
} | ||
interface QuickReply { | ||
type: 'options'; | ||
options: QuickReplyOption[]; | ||
} | ||
interface Attachement { | ||
type: 'location' | 'media'; | ||
location?: { | ||
type: 'shared_coordinate', | ||
shared_coordinate: { | ||
coordinates: { | ||
type: 'Point', | ||
coordinates: number[] | ||
} | ||
} | ||
}; | ||
media?: { | ||
id: string | ||
}; | ||
} | ||
interface MessageCreateEvent { | ||
type: 'message_create'; | ||
message_create: { | ||
target: { | ||
recipient_id: string; | ||
}, | ||
message_data: { | ||
text: string; | ||
quick_reply?: QuickReply; | ||
attachment?: Attachement; | ||
} | ||
}; | ||
} | ||
interface Params { | ||
@@ -328,2 +370,3 @@ // search/tweets | ||
card_uri?: string | undefined; | ||
event?: MessageCreateEvent; | ||
} | ||
@@ -330,0 +373,0 @@ export interface PromiseResponse { |
{ | ||
"name": "@types/twit", | ||
"version": "2.2.30", | ||
"version": "2.2.31", | ||
"description": "TypeScript definitions for twit", | ||
@@ -61,4 +61,4 @@ "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/twit", | ||
}, | ||
"typesPublisherContentHash": "726c30bbfe2e640bc178a90d9f76166ae64bc9d898c4726d523097b4cd604086", | ||
"typeScriptVersion": "3.6" | ||
"typesPublisherContentHash": "1d3d66e7e194c3e5aa343a3256e7cbd503dd623ed240f5e2cbf337711460be75", | ||
"typeScriptVersion": "4.1" | ||
} |
@@ -11,4 +11,4 @@ # Installation | ||
### Additional Details | ||
* Last updated: Fri, 02 Jul 2021 19:37:26 GMT | ||
* Dependencies: [@types/node](https://npmjs.com/package/@types/node), [@types/geojson](https://npmjs.com/package/@types/geojson) | ||
* Last updated: Sat, 15 Oct 2022 19:02:57 GMT | ||
* Dependencies: [@types/geojson](https://npmjs.com/package/@types/geojson), [@types/node](https://npmjs.com/package/@types/node) | ||
* Global values: none | ||
@@ -15,0 +15,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
19783
409