@linqapp/sdk 0.1.0-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +26 -0
- package/LICENSE +7 -0
- package/README.md +393 -0
- package/api-promise.d.mts +2 -0
- package/api-promise.d.mts.map +1 -0
- package/api-promise.d.ts +2 -0
- package/api-promise.d.ts.map +1 -0
- package/api-promise.js +6 -0
- package/api-promise.js.map +1 -0
- package/api-promise.mjs +2 -0
- package/api-promise.mjs.map +1 -0
- package/client.d.mts +193 -0
- package/client.d.mts.map +1 -0
- package/client.d.ts +193 -0
- package/client.d.ts.map +1 -0
- package/client.js +479 -0
- package/client.js.map +1 -0
- package/client.mjs +475 -0
- package/client.mjs.map +1 -0
- package/core/api-promise.d.mts +46 -0
- package/core/api-promise.d.mts.map +1 -0
- package/core/api-promise.d.ts +46 -0
- package/core/api-promise.d.ts.map +1 -0
- package/core/api-promise.js +74 -0
- package/core/api-promise.js.map +1 -0
- package/core/api-promise.mjs +70 -0
- package/core/api-promise.mjs.map +1 -0
- package/core/error.d.mts +46 -0
- package/core/error.d.mts.map +1 -0
- package/core/error.d.ts +46 -0
- package/core/error.d.ts.map +1 -0
- package/core/error.js +113 -0
- package/core/error.js.map +1 -0
- package/core/error.mjs +97 -0
- package/core/error.mjs.map +1 -0
- package/core/resource.d.mts +6 -0
- package/core/resource.d.mts.map +1 -0
- package/core/resource.d.ts +6 -0
- package/core/resource.d.ts.map +1 -0
- package/core/resource.js +11 -0
- package/core/resource.js.map +1 -0
- package/core/resource.mjs +7 -0
- package/core/resource.mjs.map +1 -0
- package/core/uploads.d.mts +3 -0
- package/core/uploads.d.mts.map +1 -0
- package/core/uploads.d.ts +3 -0
- package/core/uploads.d.ts.map +1 -0
- package/core/uploads.js +6 -0
- package/core/uploads.js.map +1 -0
- package/core/uploads.mjs +2 -0
- package/core/uploads.mjs.map +1 -0
- package/error.d.mts +2 -0
- package/error.d.mts.map +1 -0
- package/error.d.ts +2 -0
- package/error.d.ts.map +1 -0
- package/error.js +6 -0
- package/error.js.map +1 -0
- package/error.mjs +2 -0
- package/error.mjs.map +1 -0
- package/index.d.mts +6 -0
- package/index.d.mts.map +1 -0
- package/index.d.ts +6 -0
- package/index.d.ts.map +1 -0
- package/index.js +30 -0
- package/index.js.map +1 -0
- package/index.mjs +7 -0
- package/index.mjs.map +1 -0
- package/internal/builtin-types.d.mts +73 -0
- package/internal/builtin-types.d.mts.map +1 -0
- package/internal/builtin-types.d.ts +73 -0
- package/internal/builtin-types.d.ts.map +1 -0
- package/internal/builtin-types.js +4 -0
- package/internal/builtin-types.js.map +1 -0
- package/internal/builtin-types.mjs +3 -0
- package/internal/builtin-types.mjs.map +1 -0
- package/internal/detect-platform.d.mts +15 -0
- package/internal/detect-platform.d.mts.map +1 -0
- package/internal/detect-platform.d.ts +15 -0
- package/internal/detect-platform.d.ts.map +1 -0
- package/internal/detect-platform.js +162 -0
- package/internal/detect-platform.js.map +1 -0
- package/internal/detect-platform.mjs +157 -0
- package/internal/detect-platform.mjs.map +1 -0
- package/internal/errors.d.mts +3 -0
- package/internal/errors.d.mts.map +1 -0
- package/internal/errors.d.ts +3 -0
- package/internal/errors.d.ts.map +1 -0
- package/internal/errors.js +41 -0
- package/internal/errors.js.map +1 -0
- package/internal/errors.mjs +36 -0
- package/internal/errors.mjs.map +1 -0
- package/internal/headers.d.mts +20 -0
- package/internal/headers.d.mts.map +1 -0
- package/internal/headers.d.ts +20 -0
- package/internal/headers.d.ts.map +1 -0
- package/internal/headers.js +79 -0
- package/internal/headers.js.map +1 -0
- package/internal/headers.mjs +74 -0
- package/internal/headers.mjs.map +1 -0
- package/internal/parse.d.mts +12 -0
- package/internal/parse.d.mts.map +1 -0
- package/internal/parse.d.ts +12 -0
- package/internal/parse.d.ts.map +1 -0
- package/internal/parse.js +40 -0
- package/internal/parse.js.map +1 -0
- package/internal/parse.mjs +37 -0
- package/internal/parse.mjs.map +1 -0
- package/internal/request-options.d.mts +75 -0
- package/internal/request-options.d.mts.map +1 -0
- package/internal/request-options.d.ts +75 -0
- package/internal/request-options.d.ts.map +1 -0
- package/internal/request-options.js +14 -0
- package/internal/request-options.js.map +1 -0
- package/internal/request-options.mjs +10 -0
- package/internal/request-options.mjs.map +1 -0
- package/internal/shim-types.d.mts +17 -0
- package/internal/shim-types.d.mts.map +1 -0
- package/internal/shim-types.d.ts +17 -0
- package/internal/shim-types.d.ts.map +1 -0
- package/internal/shim-types.js +4 -0
- package/internal/shim-types.js.map +1 -0
- package/internal/shim-types.mjs +3 -0
- package/internal/shim-types.mjs.map +1 -0
- package/internal/shims.d.mts +20 -0
- package/internal/shims.d.mts.map +1 -0
- package/internal/shims.d.ts +20 -0
- package/internal/shims.d.ts.map +1 -0
- package/internal/shims.js +92 -0
- package/internal/shims.js.map +1 -0
- package/internal/shims.mjs +85 -0
- package/internal/shims.mjs.map +1 -0
- package/internal/to-file.d.mts +45 -0
- package/internal/to-file.d.mts.map +1 -0
- package/internal/to-file.d.ts +45 -0
- package/internal/to-file.d.ts.map +1 -0
- package/internal/to-file.js +91 -0
- package/internal/to-file.js.map +1 -0
- package/internal/to-file.mjs +88 -0
- package/internal/to-file.mjs.map +1 -0
- package/internal/tslib.js +81 -0
- package/internal/tslib.mjs +17 -0
- package/internal/types.d.mts +69 -0
- package/internal/types.d.mts.map +1 -0
- package/internal/types.d.ts +69 -0
- package/internal/types.d.ts.map +1 -0
- package/internal/types.js +4 -0
- package/internal/types.js.map +1 -0
- package/internal/types.mjs +3 -0
- package/internal/types.mjs.map +1 -0
- package/internal/uploads.d.mts +42 -0
- package/internal/uploads.d.mts.map +1 -0
- package/internal/uploads.d.ts +42 -0
- package/internal/uploads.d.ts.map +1 -0
- package/internal/uploads.js +141 -0
- package/internal/uploads.js.map +1 -0
- package/internal/uploads.mjs +131 -0
- package/internal/uploads.mjs.map +1 -0
- package/internal/utils/base64.d.mts +3 -0
- package/internal/utils/base64.d.mts.map +1 -0
- package/internal/utils/base64.d.ts +3 -0
- package/internal/utils/base64.d.ts.map +1 -0
- package/internal/utils/base64.js +38 -0
- package/internal/utils/base64.js.map +1 -0
- package/internal/utils/base64.mjs +33 -0
- package/internal/utils/base64.mjs.map +1 -0
- package/internal/utils/bytes.d.mts +4 -0
- package/internal/utils/bytes.d.mts.map +1 -0
- package/internal/utils/bytes.d.ts +4 -0
- package/internal/utils/bytes.d.ts.map +1 -0
- package/internal/utils/bytes.js +31 -0
- package/internal/utils/bytes.js.map +1 -0
- package/internal/utils/bytes.mjs +26 -0
- package/internal/utils/bytes.mjs.map +1 -0
- package/internal/utils/env.d.mts +9 -0
- package/internal/utils/env.d.mts.map +1 -0
- package/internal/utils/env.d.ts +9 -0
- package/internal/utils/env.d.ts.map +1 -0
- package/internal/utils/env.js +22 -0
- package/internal/utils/env.js.map +1 -0
- package/internal/utils/env.mjs +18 -0
- package/internal/utils/env.mjs.map +1 -0
- package/internal/utils/log.d.mts +37 -0
- package/internal/utils/log.d.mts.map +1 -0
- package/internal/utils/log.d.ts +37 -0
- package/internal/utils/log.d.ts.map +1 -0
- package/internal/utils/log.js +85 -0
- package/internal/utils/log.js.map +1 -0
- package/internal/utils/log.mjs +79 -0
- package/internal/utils/log.mjs.map +1 -0
- package/internal/utils/path.d.mts +15 -0
- package/internal/utils/path.d.mts.map +1 -0
- package/internal/utils/path.d.ts +15 -0
- package/internal/utils/path.d.ts.map +1 -0
- package/internal/utils/path.js +79 -0
- package/internal/utils/path.js.map +1 -0
- package/internal/utils/path.mjs +74 -0
- package/internal/utils/path.mjs.map +1 -0
- package/internal/utils/sleep.d.mts +2 -0
- package/internal/utils/sleep.d.mts.map +1 -0
- package/internal/utils/sleep.d.ts +2 -0
- package/internal/utils/sleep.d.ts.map +1 -0
- package/internal/utils/sleep.js +7 -0
- package/internal/utils/sleep.js.map +1 -0
- package/internal/utils/sleep.mjs +3 -0
- package/internal/utils/sleep.mjs.map +1 -0
- package/internal/utils/uuid.d.mts +5 -0
- package/internal/utils/uuid.d.mts.map +1 -0
- package/internal/utils/uuid.d.ts +5 -0
- package/internal/utils/uuid.d.ts.map +1 -0
- package/internal/utils/uuid.js +19 -0
- package/internal/utils/uuid.js.map +1 -0
- package/internal/utils/uuid.mjs +15 -0
- package/internal/utils/uuid.mjs.map +1 -0
- package/internal/utils/values.d.mts +18 -0
- package/internal/utils/values.d.mts.map +1 -0
- package/internal/utils/values.d.ts +18 -0
- package/internal/utils/values.d.ts.map +1 -0
- package/internal/utils/values.js +112 -0
- package/internal/utils/values.js.map +1 -0
- package/internal/utils/values.mjs +94 -0
- package/internal/utils/values.mjs.map +1 -0
- package/internal/utils.d.mts +7 -0
- package/internal/utils.d.mts.map +1 -0
- package/internal/utils.d.ts +7 -0
- package/internal/utils.d.ts.map +1 -0
- package/internal/utils.js +11 -0
- package/internal/utils.js.map +1 -0
- package/internal/utils.mjs +8 -0
- package/internal/utils.mjs.map +1 -0
- package/package.json +137 -0
- package/resource.d.mts +2 -0
- package/resource.d.mts.map +1 -0
- package/resource.d.ts +2 -0
- package/resource.d.ts.map +1 -0
- package/resource.js +6 -0
- package/resource.js.map +1 -0
- package/resource.mjs +2 -0
- package/resource.mjs.map +1 -0
- package/resources/attachments.d.mts +215 -0
- package/resources/attachments.d.mts.map +1 -0
- package/resources/attachments.d.ts +215 -0
- package/resources/attachments.d.ts.map +1 -0
- package/resources/attachments.js +102 -0
- package/resources/attachments.js.map +1 -0
- package/resources/attachments.mjs +98 -0
- package/resources/attachments.mjs.map +1 -0
- package/resources/chats/chats.d.mts +1040 -0
- package/resources/chats/chats.d.mts.map +1 -0
- package/resources/chats/chats.d.ts +1040 -0
- package/resources/chats/chats.d.ts.map +1 -0
- package/resources/chats/chats.js +182 -0
- package/resources/chats/chats.js.map +1 -0
- package/resources/chats/chats.mjs +177 -0
- package/resources/chats/chats.mjs.map +1 -0
- package/resources/chats/index.d.mts +5 -0
- package/resources/chats/index.d.mts.map +1 -0
- package/resources/chats/index.d.ts +5 -0
- package/resources/chats/index.d.ts.map +1 -0
- package/resources/chats/index.js +13 -0
- package/resources/chats/index.js.map +1 -0
- package/resources/chats/index.mjs +6 -0
- package/resources/chats/index.mjs.map +1 -0
- package/resources/chats/messages.d.mts +813 -0
- package/resources/chats/messages.d.mts.map +1 -0
- package/resources/chats/messages.d.ts +813 -0
- package/resources/chats/messages.d.ts.map +1 -0
- package/resources/chats/messages.js +56 -0
- package/resources/chats/messages.js.map +1 -0
- package/resources/chats/messages.mjs +52 -0
- package/resources/chats/messages.mjs.map +1 -0
- package/resources/chats/participants.d.mts +68 -0
- package/resources/chats/participants.d.mts.map +1 -0
- package/resources/chats/participants.d.ts +68 -0
- package/resources/chats/participants.d.ts.map +1 -0
- package/resources/chats/participants.js +51 -0
- package/resources/chats/participants.js.map +1 -0
- package/resources/chats/participants.mjs +47 -0
- package/resources/chats/participants.mjs.map +1 -0
- package/resources/chats/typing.d.mts +35 -0
- package/resources/chats/typing.d.mts.map +1 -0
- package/resources/chats/typing.d.ts +35 -0
- package/resources/chats/typing.d.ts.map +1 -0
- package/resources/chats/typing.js +50 -0
- package/resources/chats/typing.js.map +1 -0
- package/resources/chats/typing.mjs +46 -0
- package/resources/chats/typing.mjs.map +1 -0
- package/resources/chats.d.mts +2 -0
- package/resources/chats.d.mts.map +1 -0
- package/resources/chats.d.ts +2 -0
- package/resources/chats.d.ts.map +1 -0
- package/resources/chats.js +6 -0
- package/resources/chats.js.map +1 -0
- package/resources/chats.mjs +3 -0
- package/resources/chats.mjs.map +1 -0
- package/resources/index.d.mts +6 -0
- package/resources/index.d.mts.map +1 -0
- package/resources/index.d.ts +6 -0
- package/resources/index.d.ts.map +1 -0
- package/resources/index.js +15 -0
- package/resources/index.js.map +1 -0
- package/resources/index.mjs +7 -0
- package/resources/index.mjs.map +1 -0
- package/resources/messages.d.mts +761 -0
- package/resources/messages.d.mts.map +1 -0
- package/resources/messages.d.ts +761 -0
- package/resources/messages.d.ts.map +1 -0
- package/resources/messages.js +90 -0
- package/resources/messages.js.map +1 -0
- package/resources/messages.mjs +86 -0
- package/resources/messages.mjs.map +1 -0
- package/resources/phone-numbers.d.mts +58 -0
- package/resources/phone-numbers.d.mts.map +1 -0
- package/resources/phone-numbers.d.ts +58 -0
- package/resources/phone-numbers.d.ts.map +1 -0
- package/resources/phone-numbers.js +17 -0
- package/resources/phone-numbers.js.map +1 -0
- package/resources/phone-numbers.mjs +13 -0
- package/resources/phone-numbers.mjs.map +1 -0
- package/resources/webhooks/events.d.mts +30 -0
- package/resources/webhooks/events.d.mts.map +1 -0
- package/resources/webhooks/events.d.ts +30 -0
- package/resources/webhooks/events.d.ts.map +1 -0
- package/resources/webhooks/events.js +22 -0
- package/resources/webhooks/events.js.map +1 -0
- package/resources/webhooks/events.mjs +18 -0
- package/resources/webhooks/events.mjs.map +1 -0
- package/resources/webhooks/index.d.mts +4 -0
- package/resources/webhooks/index.d.mts.map +1 -0
- package/resources/webhooks/index.d.ts +4 -0
- package/resources/webhooks/index.d.ts.map +1 -0
- package/resources/webhooks/index.js +11 -0
- package/resources/webhooks/index.js.map +1 -0
- package/resources/webhooks/index.mjs +5 -0
- package/resources/webhooks/index.mjs.map +1 -0
- package/resources/webhooks/subscriptions.d.mts +237 -0
- package/resources/webhooks/subscriptions.d.mts.map +1 -0
- package/resources/webhooks/subscriptions.d.ts +237 -0
- package/resources/webhooks/subscriptions.d.ts.map +1 -0
- package/resources/webhooks/subscriptions.js +107 -0
- package/resources/webhooks/subscriptions.js.map +1 -0
- package/resources/webhooks/subscriptions.mjs +103 -0
- package/resources/webhooks/subscriptions.mjs.map +1 -0
- package/resources/webhooks/webhooks.d.mts +14 -0
- package/resources/webhooks/webhooks.d.mts.map +1 -0
- package/resources/webhooks/webhooks.d.ts +14 -0
- package/resources/webhooks/webhooks.d.ts.map +1 -0
- package/resources/webhooks/webhooks.js +21 -0
- package/resources/webhooks/webhooks.js.map +1 -0
- package/resources/webhooks/webhooks.mjs +16 -0
- package/resources/webhooks/webhooks.mjs.map +1 -0
- package/resources/webhooks.d.mts +2 -0
- package/resources/webhooks.d.mts.map +1 -0
- package/resources/webhooks.d.ts +2 -0
- package/resources/webhooks.d.ts.map +1 -0
- package/resources/webhooks.js +6 -0
- package/resources/webhooks.js.map +1 -0
- package/resources/webhooks.mjs +3 -0
- package/resources/webhooks.mjs.map +1 -0
- package/resources.d.mts +2 -0
- package/resources.d.mts.map +1 -0
- package/resources.d.ts +2 -0
- package/resources.d.ts.map +1 -0
- package/resources.js +5 -0
- package/resources.js.map +1 -0
- package/resources.mjs +2 -0
- package/resources.mjs.map +1 -0
- package/src/api-promise.ts +2 -0
- package/src/client.ts +801 -0
- package/src/core/README.md +3 -0
- package/src/core/api-promise.ts +92 -0
- package/src/core/error.ts +130 -0
- package/src/core/resource.ts +11 -0
- package/src/core/uploads.ts +2 -0
- package/src/error.ts +2 -0
- package/src/index.ts +22 -0
- package/src/internal/README.md +3 -0
- package/src/internal/builtin-types.ts +93 -0
- package/src/internal/detect-platform.ts +196 -0
- package/src/internal/errors.ts +33 -0
- package/src/internal/headers.ts +97 -0
- package/src/internal/parse.ts +56 -0
- package/src/internal/request-options.ts +91 -0
- package/src/internal/shim-types.ts +26 -0
- package/src/internal/shims.ts +107 -0
- package/src/internal/to-file.ts +154 -0
- package/src/internal/types.ts +95 -0
- package/src/internal/uploads.ts +187 -0
- package/src/internal/utils/base64.ts +40 -0
- package/src/internal/utils/bytes.ts +32 -0
- package/src/internal/utils/env.ts +18 -0
- package/src/internal/utils/log.ts +126 -0
- package/src/internal/utils/path.ts +88 -0
- package/src/internal/utils/sleep.ts +3 -0
- package/src/internal/utils/uuid.ts +17 -0
- package/src/internal/utils/values.ts +105 -0
- package/src/internal/utils.ts +8 -0
- package/src/lib/.keep +4 -0
- package/src/resource.ts +2 -0
- package/src/resources/attachments.ts +344 -0
- package/src/resources/chats/chats.ts +1285 -0
- package/src/resources/chats/index.ts +29 -0
- package/src/resources/chats/messages.ts +968 -0
- package/src/resources/chats/participants.ts +98 -0
- package/src/resources/chats/typing.ts +50 -0
- package/src/resources/chats.ts +3 -0
- package/src/resources/index.ts +31 -0
- package/src/resources/messages.ts +937 -0
- package/src/resources/phone-numbers.ts +72 -0
- package/src/resources/webhooks/events.ts +55 -0
- package/src/resources/webhooks/index.ts +13 -0
- package/src/resources/webhooks/subscriptions.ts +409 -0
- package/src/resources/webhooks/webhooks.ts +37 -0
- package/src/resources/webhooks.ts +3 -0
- package/src/resources.ts +1 -0
- package/src/tsconfig.json +11 -0
- package/src/uploads.ts +2 -0
- package/src/version.ts +1 -0
- package/uploads.d.mts +2 -0
- package/uploads.d.mts.map +1 -0
- package/uploads.d.ts +2 -0
- package/uploads.d.ts.map +1 -0
- package/uploads.js +6 -0
- package/uploads.js.map +1 -0
- package/uploads.mjs +2 -0
- package/uploads.mjs.map +1 -0
- package/version.d.mts +2 -0
- package/version.d.mts.map +1 -0
- package/version.d.ts +2 -0
- package/version.d.ts.map +1 -0
- package/version.js +5 -0
- package/version.js.map +1 -0
- package/version.mjs +2 -0
- package/version.mjs.map +1 -0
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../core/resource';
|
|
4
|
+
import { APIPromise } from '../core/api-promise';
|
|
5
|
+
import { RequestOptions } from '../internal/request-options';
|
|
6
|
+
|
|
7
|
+
export class PhoneNumbers extends APIResource {
|
|
8
|
+
/**
|
|
9
|
+
* Returns all phone numbers assigned to the authenticated partner. Use this
|
|
10
|
+
* endpoint to discover which phone numbers are available for sending messages via
|
|
11
|
+
* the `from` field in create chat and send message requests.
|
|
12
|
+
*/
|
|
13
|
+
list(options?: RequestOptions): APIPromise<PhoneNumberListResponse> {
|
|
14
|
+
return this._client.get('/v3/phonenumbers', options);
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export interface PhoneNumberListResponse {
|
|
19
|
+
/**
|
|
20
|
+
* List of phone numbers assigned to the partner
|
|
21
|
+
*/
|
|
22
|
+
phone_numbers: Array<PhoneNumberListResponse.PhoneNumber>;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export namespace PhoneNumberListResponse {
|
|
26
|
+
export interface PhoneNumber {
|
|
27
|
+
/**
|
|
28
|
+
* Unique identifier for the phone number
|
|
29
|
+
*/
|
|
30
|
+
id: string;
|
|
31
|
+
|
|
32
|
+
capabilities: PhoneNumber.Capabilities;
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* ISO 3166-1 alpha-2 country code
|
|
36
|
+
*/
|
|
37
|
+
country_code: string;
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* Phone number in E.164 format
|
|
41
|
+
*/
|
|
42
|
+
phone_number: string;
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* Type of phone number
|
|
46
|
+
*/
|
|
47
|
+
type: 'TWILIO' | 'APPLE_ID';
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export namespace PhoneNumber {
|
|
51
|
+
export interface Capabilities {
|
|
52
|
+
/**
|
|
53
|
+
* Whether MMS messaging is supported
|
|
54
|
+
*/
|
|
55
|
+
mms: boolean;
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* Whether SMS messaging is supported
|
|
59
|
+
*/
|
|
60
|
+
sms: boolean;
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
* Whether voice calls are supported
|
|
64
|
+
*/
|
|
65
|
+
voice: boolean;
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export declare namespace PhoneNumbers {
|
|
71
|
+
export { type PhoneNumberListResponse as PhoneNumberListResponse };
|
|
72
|
+
}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../../core/resource';
|
|
4
|
+
import { APIPromise } from '../../core/api-promise';
|
|
5
|
+
import { RequestOptions } from '../../internal/request-options';
|
|
6
|
+
|
|
7
|
+
export class Events extends APIResource {
|
|
8
|
+
/**
|
|
9
|
+
* Returns all available webhook event types that can be subscribed to. Use this
|
|
10
|
+
* endpoint to discover valid values for the `subscribed_events` field when
|
|
11
|
+
* creating or updating webhook subscriptions.
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* ```ts
|
|
15
|
+
* const events = await client.webhooks.events.list();
|
|
16
|
+
* ```
|
|
17
|
+
*/
|
|
18
|
+
list(options?: RequestOptions): APIPromise<EventListResponse> {
|
|
19
|
+
return this._client.get('/v3/webhook-events', options);
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export interface EventListResponse {
|
|
24
|
+
/**
|
|
25
|
+
* URL to the webhook events documentation
|
|
26
|
+
*/
|
|
27
|
+
doc_url: 'https://apidocs.linqapp.com/documentation/webhook-events';
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* List of all available webhook event types
|
|
31
|
+
*/
|
|
32
|
+
events: Array<
|
|
33
|
+
| 'message.sent'
|
|
34
|
+
| 'message.received'
|
|
35
|
+
| 'message.read'
|
|
36
|
+
| 'message.delivered'
|
|
37
|
+
| 'message.failed'
|
|
38
|
+
| 'reaction.added'
|
|
39
|
+
| 'reaction.removed'
|
|
40
|
+
| 'participant.added'
|
|
41
|
+
| 'participant.removed'
|
|
42
|
+
| 'chat.created'
|
|
43
|
+
| 'chat.group_name_updated'
|
|
44
|
+
| 'chat.group_icon_updated'
|
|
45
|
+
| 'chat.group_name_update_failed'
|
|
46
|
+
| 'chat.group_icon_update_failed'
|
|
47
|
+
| 'chat.typing_indicator.started'
|
|
48
|
+
| 'chat.typing_indicator.stopped'
|
|
49
|
+
| 'phone_number.status_updated'
|
|
50
|
+
>;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export declare namespace Events {
|
|
54
|
+
export { type EventListResponse as EventListResponse };
|
|
55
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
export { Events, type EventListResponse } from './events';
|
|
4
|
+
export {
|
|
5
|
+
Subscriptions,
|
|
6
|
+
type SubscriptionCreateResponse,
|
|
7
|
+
type SubscriptionRetrieveResponse,
|
|
8
|
+
type SubscriptionUpdateResponse,
|
|
9
|
+
type SubscriptionListResponse,
|
|
10
|
+
type SubscriptionCreateParams,
|
|
11
|
+
type SubscriptionUpdateParams,
|
|
12
|
+
} from './subscriptions';
|
|
13
|
+
export { Webhooks } from './webhooks';
|
|
@@ -0,0 +1,409 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../../core/resource';
|
|
4
|
+
import { APIPromise } from '../../core/api-promise';
|
|
5
|
+
import { buildHeaders } from '../../internal/headers';
|
|
6
|
+
import { RequestOptions } from '../../internal/request-options';
|
|
7
|
+
import { path } from '../../internal/utils/path';
|
|
8
|
+
|
|
9
|
+
export class Subscriptions extends APIResource {
|
|
10
|
+
/**
|
|
11
|
+
* Create a new webhook subscription to receive events at a target URL. Upon
|
|
12
|
+
* creation, a signing secret is generated for verifying webhook authenticity.
|
|
13
|
+
* **Store this secret securely — it cannot be retrieved later.**
|
|
14
|
+
*
|
|
15
|
+
* **Webhook Delivery:**
|
|
16
|
+
*
|
|
17
|
+
* - Events are sent via HTTP POST to the target URL
|
|
18
|
+
* - Each request includes `X-Webhook-Signature` and `X-Webhook-Timestamp` headers
|
|
19
|
+
* - Signature is HMAC-SHA256 over `{timestamp}.{payload}` — see
|
|
20
|
+
* [Webhook Events](/docs/webhook-events) for verification details
|
|
21
|
+
* - Failed deliveries (5xx, 429, network errors) are retried up to 6 times with
|
|
22
|
+
* exponential backoff: 2s, 4s, 8s, 16s, 30s
|
|
23
|
+
* - Client errors (4xx except 429) are not retried
|
|
24
|
+
*
|
|
25
|
+
* @example
|
|
26
|
+
* ```ts
|
|
27
|
+
* const subscription =
|
|
28
|
+
* await client.webhooks.subscriptions.create({
|
|
29
|
+
* subscribed_events: [
|
|
30
|
+
* 'message.sent',
|
|
31
|
+
* 'message.delivered',
|
|
32
|
+
* 'message.read',
|
|
33
|
+
* ],
|
|
34
|
+
* target_url: 'https://webhooks.example.com/linq/events',
|
|
35
|
+
* });
|
|
36
|
+
* ```
|
|
37
|
+
*/
|
|
38
|
+
create(body: SubscriptionCreateParams, options?: RequestOptions): APIPromise<SubscriptionCreateResponse> {
|
|
39
|
+
return this._client.post('/v3/webhook-subscriptions', { body, ...options });
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Retrieve details for a specific webhook subscription including its target URL,
|
|
44
|
+
* subscribed events, and current status.
|
|
45
|
+
*
|
|
46
|
+
* @example
|
|
47
|
+
* ```ts
|
|
48
|
+
* const subscription =
|
|
49
|
+
* await client.webhooks.subscriptions.retrieve(
|
|
50
|
+
* 'b2c3d4e5-f6a7-8901-bcde-f23456789012',
|
|
51
|
+
* );
|
|
52
|
+
* ```
|
|
53
|
+
*/
|
|
54
|
+
retrieve(subscriptionID: string, options?: RequestOptions): APIPromise<SubscriptionRetrieveResponse> {
|
|
55
|
+
return this._client.get(path`/v3/webhook-subscriptions/${subscriptionID}`, options);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* Update an existing webhook subscription. You can modify the target URL,
|
|
60
|
+
* subscribed events, or activate/deactivate the subscription.
|
|
61
|
+
*
|
|
62
|
+
* **Note:** The signing secret cannot be changed via this endpoint.
|
|
63
|
+
*
|
|
64
|
+
* @example
|
|
65
|
+
* ```ts
|
|
66
|
+
* const subscription =
|
|
67
|
+
* await client.webhooks.subscriptions.update(
|
|
68
|
+
* 'b2c3d4e5-f6a7-8901-bcde-f23456789012',
|
|
69
|
+
* {
|
|
70
|
+
* target_url:
|
|
71
|
+
* 'https://webhooks.example.com/linq/events',
|
|
72
|
+
* },
|
|
73
|
+
* );
|
|
74
|
+
* ```
|
|
75
|
+
*/
|
|
76
|
+
update(
|
|
77
|
+
subscriptionID: string,
|
|
78
|
+
body: SubscriptionUpdateParams,
|
|
79
|
+
options?: RequestOptions,
|
|
80
|
+
): APIPromise<SubscriptionUpdateResponse> {
|
|
81
|
+
return this._client.put(path`/v3/webhook-subscriptions/${subscriptionID}`, { body, ...options });
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
/**
|
|
85
|
+
* Retrieve all webhook subscriptions for the authenticated partner. Returns a list
|
|
86
|
+
* of active and inactive subscriptions with their configuration and status.
|
|
87
|
+
*
|
|
88
|
+
* @example
|
|
89
|
+
* ```ts
|
|
90
|
+
* const subscriptions =
|
|
91
|
+
* await client.webhooks.subscriptions.list();
|
|
92
|
+
* ```
|
|
93
|
+
*/
|
|
94
|
+
list(options?: RequestOptions): APIPromise<SubscriptionListResponse> {
|
|
95
|
+
return this._client.get('/v3/webhook-subscriptions', options);
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
/**
|
|
99
|
+
* Delete a webhook subscription.
|
|
100
|
+
*
|
|
101
|
+
* @example
|
|
102
|
+
* ```ts
|
|
103
|
+
* await client.webhooks.subscriptions.delete(
|
|
104
|
+
* 'b2c3d4e5-f6a7-8901-bcde-f23456789012',
|
|
105
|
+
* );
|
|
106
|
+
* ```
|
|
107
|
+
*/
|
|
108
|
+
delete(subscriptionID: string, options?: RequestOptions): APIPromise<void> {
|
|
109
|
+
return this._client.delete(path`/v3/webhook-subscriptions/${subscriptionID}`, {
|
|
110
|
+
...options,
|
|
111
|
+
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
112
|
+
});
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
/**
|
|
117
|
+
* Response returned when creating a webhook subscription. Includes the signing
|
|
118
|
+
* secret which is only shown once.
|
|
119
|
+
*/
|
|
120
|
+
export interface SubscriptionCreateResponse {
|
|
121
|
+
/**
|
|
122
|
+
* Unique identifier for the webhook subscription
|
|
123
|
+
*/
|
|
124
|
+
id: string;
|
|
125
|
+
|
|
126
|
+
/**
|
|
127
|
+
* When the subscription was created
|
|
128
|
+
*/
|
|
129
|
+
created_at: string;
|
|
130
|
+
|
|
131
|
+
/**
|
|
132
|
+
* Whether this subscription is currently active
|
|
133
|
+
*/
|
|
134
|
+
is_active: boolean;
|
|
135
|
+
|
|
136
|
+
/**
|
|
137
|
+
* Secret for verifying webhook signatures. Store this securely - it cannot be
|
|
138
|
+
* retrieved again.
|
|
139
|
+
*/
|
|
140
|
+
signing_secret: string;
|
|
141
|
+
|
|
142
|
+
/**
|
|
143
|
+
* List of event types this subscription receives
|
|
144
|
+
*/
|
|
145
|
+
subscribed_events: Array<
|
|
146
|
+
| 'message.sent'
|
|
147
|
+
| 'message.received'
|
|
148
|
+
| 'message.read'
|
|
149
|
+
| 'message.delivered'
|
|
150
|
+
| 'message.failed'
|
|
151
|
+
| 'reaction.added'
|
|
152
|
+
| 'reaction.removed'
|
|
153
|
+
| 'participant.added'
|
|
154
|
+
| 'participant.removed'
|
|
155
|
+
| 'chat.created'
|
|
156
|
+
| 'chat.group_name_updated'
|
|
157
|
+
| 'chat.group_icon_updated'
|
|
158
|
+
| 'chat.group_name_update_failed'
|
|
159
|
+
| 'chat.group_icon_update_failed'
|
|
160
|
+
| 'chat.typing_indicator.started'
|
|
161
|
+
| 'chat.typing_indicator.stopped'
|
|
162
|
+
| 'phone_number.status_updated'
|
|
163
|
+
>;
|
|
164
|
+
|
|
165
|
+
/**
|
|
166
|
+
* URL where webhook events will be sent
|
|
167
|
+
*/
|
|
168
|
+
target_url: string;
|
|
169
|
+
|
|
170
|
+
/**
|
|
171
|
+
* When the subscription was last updated
|
|
172
|
+
*/
|
|
173
|
+
updated_at: string;
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
export interface SubscriptionRetrieveResponse {
|
|
177
|
+
/**
|
|
178
|
+
* Unique identifier for the webhook subscription
|
|
179
|
+
*/
|
|
180
|
+
id: string;
|
|
181
|
+
|
|
182
|
+
/**
|
|
183
|
+
* When the subscription was created
|
|
184
|
+
*/
|
|
185
|
+
created_at: string;
|
|
186
|
+
|
|
187
|
+
/**
|
|
188
|
+
* Whether this subscription is currently active
|
|
189
|
+
*/
|
|
190
|
+
is_active: boolean;
|
|
191
|
+
|
|
192
|
+
/**
|
|
193
|
+
* List of event types this subscription receives
|
|
194
|
+
*/
|
|
195
|
+
subscribed_events: Array<
|
|
196
|
+
| 'message.sent'
|
|
197
|
+
| 'message.received'
|
|
198
|
+
| 'message.read'
|
|
199
|
+
| 'message.delivered'
|
|
200
|
+
| 'message.failed'
|
|
201
|
+
| 'reaction.added'
|
|
202
|
+
| 'reaction.removed'
|
|
203
|
+
| 'participant.added'
|
|
204
|
+
| 'participant.removed'
|
|
205
|
+
| 'chat.created'
|
|
206
|
+
| 'chat.group_name_updated'
|
|
207
|
+
| 'chat.group_icon_updated'
|
|
208
|
+
| 'chat.group_name_update_failed'
|
|
209
|
+
| 'chat.group_icon_update_failed'
|
|
210
|
+
| 'chat.typing_indicator.started'
|
|
211
|
+
| 'chat.typing_indicator.stopped'
|
|
212
|
+
| 'phone_number.status_updated'
|
|
213
|
+
>;
|
|
214
|
+
|
|
215
|
+
/**
|
|
216
|
+
* URL where webhook events will be sent
|
|
217
|
+
*/
|
|
218
|
+
target_url: string;
|
|
219
|
+
|
|
220
|
+
/**
|
|
221
|
+
* When the subscription was last updated
|
|
222
|
+
*/
|
|
223
|
+
updated_at: string;
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
export interface SubscriptionUpdateResponse {
|
|
227
|
+
/**
|
|
228
|
+
* Unique identifier for the webhook subscription
|
|
229
|
+
*/
|
|
230
|
+
id: string;
|
|
231
|
+
|
|
232
|
+
/**
|
|
233
|
+
* When the subscription was created
|
|
234
|
+
*/
|
|
235
|
+
created_at: string;
|
|
236
|
+
|
|
237
|
+
/**
|
|
238
|
+
* Whether this subscription is currently active
|
|
239
|
+
*/
|
|
240
|
+
is_active: boolean;
|
|
241
|
+
|
|
242
|
+
/**
|
|
243
|
+
* List of event types this subscription receives
|
|
244
|
+
*/
|
|
245
|
+
subscribed_events: Array<
|
|
246
|
+
| 'message.sent'
|
|
247
|
+
| 'message.received'
|
|
248
|
+
| 'message.read'
|
|
249
|
+
| 'message.delivered'
|
|
250
|
+
| 'message.failed'
|
|
251
|
+
| 'reaction.added'
|
|
252
|
+
| 'reaction.removed'
|
|
253
|
+
| 'participant.added'
|
|
254
|
+
| 'participant.removed'
|
|
255
|
+
| 'chat.created'
|
|
256
|
+
| 'chat.group_name_updated'
|
|
257
|
+
| 'chat.group_icon_updated'
|
|
258
|
+
| 'chat.group_name_update_failed'
|
|
259
|
+
| 'chat.group_icon_update_failed'
|
|
260
|
+
| 'chat.typing_indicator.started'
|
|
261
|
+
| 'chat.typing_indicator.stopped'
|
|
262
|
+
| 'phone_number.status_updated'
|
|
263
|
+
>;
|
|
264
|
+
|
|
265
|
+
/**
|
|
266
|
+
* URL where webhook events will be sent
|
|
267
|
+
*/
|
|
268
|
+
target_url: string;
|
|
269
|
+
|
|
270
|
+
/**
|
|
271
|
+
* When the subscription was last updated
|
|
272
|
+
*/
|
|
273
|
+
updated_at: string;
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
export interface SubscriptionListResponse {
|
|
277
|
+
/**
|
|
278
|
+
* List of webhook subscriptions
|
|
279
|
+
*/
|
|
280
|
+
subscriptions: Array<SubscriptionListResponse.Subscription>;
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
export namespace SubscriptionListResponse {
|
|
284
|
+
export interface Subscription {
|
|
285
|
+
/**
|
|
286
|
+
* Unique identifier for the webhook subscription
|
|
287
|
+
*/
|
|
288
|
+
id: string;
|
|
289
|
+
|
|
290
|
+
/**
|
|
291
|
+
* When the subscription was created
|
|
292
|
+
*/
|
|
293
|
+
created_at: string;
|
|
294
|
+
|
|
295
|
+
/**
|
|
296
|
+
* Whether this subscription is currently active
|
|
297
|
+
*/
|
|
298
|
+
is_active: boolean;
|
|
299
|
+
|
|
300
|
+
/**
|
|
301
|
+
* List of event types this subscription receives
|
|
302
|
+
*/
|
|
303
|
+
subscribed_events: Array<
|
|
304
|
+
| 'message.sent'
|
|
305
|
+
| 'message.received'
|
|
306
|
+
| 'message.read'
|
|
307
|
+
| 'message.delivered'
|
|
308
|
+
| 'message.failed'
|
|
309
|
+
| 'reaction.added'
|
|
310
|
+
| 'reaction.removed'
|
|
311
|
+
| 'participant.added'
|
|
312
|
+
| 'participant.removed'
|
|
313
|
+
| 'chat.created'
|
|
314
|
+
| 'chat.group_name_updated'
|
|
315
|
+
| 'chat.group_icon_updated'
|
|
316
|
+
| 'chat.group_name_update_failed'
|
|
317
|
+
| 'chat.group_icon_update_failed'
|
|
318
|
+
| 'chat.typing_indicator.started'
|
|
319
|
+
| 'chat.typing_indicator.stopped'
|
|
320
|
+
| 'phone_number.status_updated'
|
|
321
|
+
>;
|
|
322
|
+
|
|
323
|
+
/**
|
|
324
|
+
* URL where webhook events will be sent
|
|
325
|
+
*/
|
|
326
|
+
target_url: string;
|
|
327
|
+
|
|
328
|
+
/**
|
|
329
|
+
* When the subscription was last updated
|
|
330
|
+
*/
|
|
331
|
+
updated_at: string;
|
|
332
|
+
}
|
|
333
|
+
}
|
|
334
|
+
|
|
335
|
+
export interface SubscriptionCreateParams {
|
|
336
|
+
/**
|
|
337
|
+
* List of event types to subscribe to
|
|
338
|
+
*/
|
|
339
|
+
subscribed_events: Array<
|
|
340
|
+
| 'message.sent'
|
|
341
|
+
| 'message.received'
|
|
342
|
+
| 'message.read'
|
|
343
|
+
| 'message.delivered'
|
|
344
|
+
| 'message.failed'
|
|
345
|
+
| 'reaction.added'
|
|
346
|
+
| 'reaction.removed'
|
|
347
|
+
| 'participant.added'
|
|
348
|
+
| 'participant.removed'
|
|
349
|
+
| 'chat.created'
|
|
350
|
+
| 'chat.group_name_updated'
|
|
351
|
+
| 'chat.group_icon_updated'
|
|
352
|
+
| 'chat.group_name_update_failed'
|
|
353
|
+
| 'chat.group_icon_update_failed'
|
|
354
|
+
| 'chat.typing_indicator.started'
|
|
355
|
+
| 'chat.typing_indicator.stopped'
|
|
356
|
+
| 'phone_number.status_updated'
|
|
357
|
+
>;
|
|
358
|
+
|
|
359
|
+
/**
|
|
360
|
+
* URL where webhook events will be sent. Must be HTTPS.
|
|
361
|
+
*/
|
|
362
|
+
target_url: string;
|
|
363
|
+
}
|
|
364
|
+
|
|
365
|
+
export interface SubscriptionUpdateParams {
|
|
366
|
+
/**
|
|
367
|
+
* Activate or deactivate the subscription
|
|
368
|
+
*/
|
|
369
|
+
is_active?: boolean;
|
|
370
|
+
|
|
371
|
+
/**
|
|
372
|
+
* Updated list of event types to subscribe to
|
|
373
|
+
*/
|
|
374
|
+
subscribed_events?: Array<
|
|
375
|
+
| 'message.sent'
|
|
376
|
+
| 'message.received'
|
|
377
|
+
| 'message.read'
|
|
378
|
+
| 'message.delivered'
|
|
379
|
+
| 'message.failed'
|
|
380
|
+
| 'reaction.added'
|
|
381
|
+
| 'reaction.removed'
|
|
382
|
+
| 'participant.added'
|
|
383
|
+
| 'participant.removed'
|
|
384
|
+
| 'chat.created'
|
|
385
|
+
| 'chat.group_name_updated'
|
|
386
|
+
| 'chat.group_icon_updated'
|
|
387
|
+
| 'chat.group_name_update_failed'
|
|
388
|
+
| 'chat.group_icon_update_failed'
|
|
389
|
+
| 'chat.typing_indicator.started'
|
|
390
|
+
| 'chat.typing_indicator.stopped'
|
|
391
|
+
| 'phone_number.status_updated'
|
|
392
|
+
>;
|
|
393
|
+
|
|
394
|
+
/**
|
|
395
|
+
* New target URL for webhook events
|
|
396
|
+
*/
|
|
397
|
+
target_url?: string;
|
|
398
|
+
}
|
|
399
|
+
|
|
400
|
+
export declare namespace Subscriptions {
|
|
401
|
+
export {
|
|
402
|
+
type SubscriptionCreateResponse as SubscriptionCreateResponse,
|
|
403
|
+
type SubscriptionRetrieveResponse as SubscriptionRetrieveResponse,
|
|
404
|
+
type SubscriptionUpdateResponse as SubscriptionUpdateResponse,
|
|
405
|
+
type SubscriptionListResponse as SubscriptionListResponse,
|
|
406
|
+
type SubscriptionCreateParams as SubscriptionCreateParams,
|
|
407
|
+
type SubscriptionUpdateParams as SubscriptionUpdateParams,
|
|
408
|
+
};
|
|
409
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../../core/resource';
|
|
4
|
+
import * as EventsAPI from './events';
|
|
5
|
+
import { EventListResponse, Events } from './events';
|
|
6
|
+
import * as SubscriptionsAPI from './subscriptions';
|
|
7
|
+
import {
|
|
8
|
+
SubscriptionCreateParams,
|
|
9
|
+
SubscriptionCreateResponse,
|
|
10
|
+
SubscriptionListResponse,
|
|
11
|
+
SubscriptionRetrieveResponse,
|
|
12
|
+
SubscriptionUpdateParams,
|
|
13
|
+
SubscriptionUpdateResponse,
|
|
14
|
+
Subscriptions,
|
|
15
|
+
} from './subscriptions';
|
|
16
|
+
|
|
17
|
+
export class Webhooks extends APIResource {
|
|
18
|
+
subscriptions: SubscriptionsAPI.Subscriptions = new SubscriptionsAPI.Subscriptions(this._client);
|
|
19
|
+
events: EventsAPI.Events = new EventsAPI.Events(this._client);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
Webhooks.Subscriptions = Subscriptions;
|
|
23
|
+
Webhooks.Events = Events;
|
|
24
|
+
|
|
25
|
+
export declare namespace Webhooks {
|
|
26
|
+
export {
|
|
27
|
+
Subscriptions as Subscriptions,
|
|
28
|
+
type SubscriptionCreateResponse as SubscriptionCreateResponse,
|
|
29
|
+
type SubscriptionRetrieveResponse as SubscriptionRetrieveResponse,
|
|
30
|
+
type SubscriptionUpdateResponse as SubscriptionUpdateResponse,
|
|
31
|
+
type SubscriptionListResponse as SubscriptionListResponse,
|
|
32
|
+
type SubscriptionCreateParams as SubscriptionCreateParams,
|
|
33
|
+
type SubscriptionUpdateParams as SubscriptionUpdateParams,
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
export { Events as Events, type EventListResponse as EventListResponse };
|
|
37
|
+
}
|
package/src/resources.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './resources/index';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
{
|
|
2
|
+
// this config is included in the published src directory to prevent TS errors
|
|
3
|
+
// from appearing when users go to source, and VSCode opens the source .ts file
|
|
4
|
+
// via declaration maps
|
|
5
|
+
"include": ["index.ts"],
|
|
6
|
+
"compilerOptions": {
|
|
7
|
+
"target": "ES2015",
|
|
8
|
+
"lib": ["DOM", "DOM.Iterable", "ES2018"],
|
|
9
|
+
"moduleResolution": "node"
|
|
10
|
+
}
|
|
11
|
+
}
|
package/src/uploads.ts
ADDED
package/src/version.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const VERSION = '0.1.0-alpha.1'; // x-release-please-version
|
package/uploads.d.mts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"uploads.d.mts","sourceRoot":"","sources":["src/uploads.ts"],"names":[],"mappings":""}
|
package/uploads.d.ts
ADDED
package/uploads.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"uploads.d.ts","sourceRoot":"","sources":["src/uploads.ts"],"names":[],"mappings":""}
|
package/uploads.js
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const tslib_1 = require("./internal/tslib.js");
|
|
4
|
+
/** @deprecated Import from ./core/uploads instead */
|
|
5
|
+
tslib_1.__exportStar(require("./core/uploads.js"), exports);
|
|
6
|
+
//# sourceMappingURL=uploads.js.map
|
package/uploads.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"uploads.js","sourceRoot":"","sources":["src/uploads.ts"],"names":[],"mappings":";;;AAAA,qDAAqD;AACrD,4DAA+B"}
|
package/uploads.mjs
ADDED
package/uploads.mjs.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"uploads.mjs","sourceRoot":"","sources":["src/uploads.ts"],"names":[],"mappings":""}
|
package/version.d.mts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"version.d.mts","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO,kBAAkB,CAAC"}
|
package/version.d.ts
ADDED
package/version.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"version.d.ts","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO,kBAAkB,CAAC"}
|
package/version.js
ADDED
package/version.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"version.js","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":";;;AAAa,QAAA,OAAO,GAAG,eAAe,CAAC,CAAC,2BAA2B"}
|
package/version.mjs
ADDED
package/version.mjs.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"version.mjs","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,OAAO,GAAG,eAAe,CAAC,CAAC,2BAA2B"}
|