@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 @@
|
|
|
1
|
+
{"version":3,"file":"messages.d.ts","sourceRoot":"","sources":["../../src/resources/chats/messages.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,QAAS,SAAQ,WAAW;IACvC;;;;;;;;;OASG;IACH,IAAI,CACF,MAAM,EAAE,MAAM,EACd,KAAK,GAAE,iBAAiB,GAAG,IAAI,GAAG,SAAc,EAChD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,mBAAmB,CAAC;IAIlC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA6BG;IACH,IAAI,CAAC,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,iBAAiB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,mBAAmB,CAAC;CAGzG;AAED,MAAM,WAAW,mBAAmB;IACl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
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.Messages = void 0;
|
|
5
|
+
const resource_1 = require("../../core/resource.js");
|
|
6
|
+
const path_1 = require("../../internal/utils/path.js");
|
|
7
|
+
class Messages extends resource_1.APIResource {
|
|
8
|
+
/**
|
|
9
|
+
* Retrieve messages from a specific chat with pagination support.
|
|
10
|
+
*
|
|
11
|
+
* @example
|
|
12
|
+
* ```ts
|
|
13
|
+
* const messages = await client.chats.messages.list(
|
|
14
|
+
* '550e8400-e29b-41d4-a716-446655440000',
|
|
15
|
+
* );
|
|
16
|
+
* ```
|
|
17
|
+
*/
|
|
18
|
+
list(chatID, query = {}, options) {
|
|
19
|
+
return this._client.get((0, path_1.path) `/v3/chats/${chatID}/messages`, { query, ...options });
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Send a message to an existing chat. Use this endpoint when you already have a
|
|
23
|
+
* chat ID and want to send additional messages to it.
|
|
24
|
+
*
|
|
25
|
+
* ## Message Effects
|
|
26
|
+
*
|
|
27
|
+
* You can add iMessage effects to make your messages more expressive. Effects are
|
|
28
|
+
* optional and can be either screen effects (full-screen animations) or bubble
|
|
29
|
+
* effects (message bubble animations).
|
|
30
|
+
*
|
|
31
|
+
* **Screen Effects:** `confetti`, `fireworks`, `lasers`, `sparkles`,
|
|
32
|
+
* `celebration`, `hearts`, `love`, `balloons`, `happy_birthday`, `echo`,
|
|
33
|
+
* `spotlight`
|
|
34
|
+
*
|
|
35
|
+
* **Bubble Effects:** `slam`, `loud`, `gentle`, `invisible`
|
|
36
|
+
*
|
|
37
|
+
* Only one effect type can be applied per message.
|
|
38
|
+
*
|
|
39
|
+
* @example
|
|
40
|
+
* ```ts
|
|
41
|
+
* const response = await client.chats.messages.send(
|
|
42
|
+
* '550e8400-e29b-41d4-a716-446655440000',
|
|
43
|
+
* {
|
|
44
|
+
* message: {
|
|
45
|
+
* parts: [{ type: 'text', value: 'Hello, world!' }],
|
|
46
|
+
* },
|
|
47
|
+
* },
|
|
48
|
+
* );
|
|
49
|
+
* ```
|
|
50
|
+
*/
|
|
51
|
+
send(chatID, body, options) {
|
|
52
|
+
return this._client.post((0, path_1.path) `/v3/chats/${chatID}/messages`, { body, ...options });
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
exports.Messages = Messages;
|
|
56
|
+
//# sourceMappingURL=messages.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"messages.js","sourceRoot":"","sources":["../../src/resources/chats/messages.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAGlD,uDAAiD;AAEjD,MAAa,QAAS,SAAQ,sBAAW;IACvC;;;;;;;;;OASG;IACH,IAAI,CACF,MAAc,EACd,QAA8C,EAAE,EAChD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,aAAa,MAAM,WAAW,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACrF,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA6BG;IACH,IAAI,CAAC,MAAc,EAAE,IAAuB,EAAE,OAAwB;QACpE,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,aAAa,MAAM,WAAW,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACrF,CAAC;CACF;AApDD,4BAoDC"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { APIResource } from "../../core/resource.mjs";
|
|
3
|
+
import { path } from "../../internal/utils/path.mjs";
|
|
4
|
+
export class Messages extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* Retrieve messages from a specific chat with pagination support.
|
|
7
|
+
*
|
|
8
|
+
* @example
|
|
9
|
+
* ```ts
|
|
10
|
+
* const messages = await client.chats.messages.list(
|
|
11
|
+
* '550e8400-e29b-41d4-a716-446655440000',
|
|
12
|
+
* );
|
|
13
|
+
* ```
|
|
14
|
+
*/
|
|
15
|
+
list(chatID, query = {}, options) {
|
|
16
|
+
return this._client.get(path `/v3/chats/${chatID}/messages`, { query, ...options });
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Send a message to an existing chat. Use this endpoint when you already have a
|
|
20
|
+
* chat ID and want to send additional messages to it.
|
|
21
|
+
*
|
|
22
|
+
* ## Message Effects
|
|
23
|
+
*
|
|
24
|
+
* You can add iMessage effects to make your messages more expressive. Effects are
|
|
25
|
+
* optional and can be either screen effects (full-screen animations) or bubble
|
|
26
|
+
* effects (message bubble animations).
|
|
27
|
+
*
|
|
28
|
+
* **Screen Effects:** `confetti`, `fireworks`, `lasers`, `sparkles`,
|
|
29
|
+
* `celebration`, `hearts`, `love`, `balloons`, `happy_birthday`, `echo`,
|
|
30
|
+
* `spotlight`
|
|
31
|
+
*
|
|
32
|
+
* **Bubble Effects:** `slam`, `loud`, `gentle`, `invisible`
|
|
33
|
+
*
|
|
34
|
+
* Only one effect type can be applied per message.
|
|
35
|
+
*
|
|
36
|
+
* @example
|
|
37
|
+
* ```ts
|
|
38
|
+
* const response = await client.chats.messages.send(
|
|
39
|
+
* '550e8400-e29b-41d4-a716-446655440000',
|
|
40
|
+
* {
|
|
41
|
+
* message: {
|
|
42
|
+
* parts: [{ type: 'text', value: 'Hello, world!' }],
|
|
43
|
+
* },
|
|
44
|
+
* },
|
|
45
|
+
* );
|
|
46
|
+
* ```
|
|
47
|
+
*/
|
|
48
|
+
send(chatID, body, options) {
|
|
49
|
+
return this._client.post(path `/v3/chats/${chatID}/messages`, { body, ...options });
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
//# sourceMappingURL=messages.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"messages.mjs","sourceRoot":"","sources":["../../src/resources/chats/messages.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAGf,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,QAAS,SAAQ,WAAW;IACvC;;;;;;;;;OASG;IACH,IAAI,CACF,MAAc,EACd,QAA8C,EAAE,EAChD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,aAAa,MAAM,WAAW,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACrF,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA6BG;IACH,IAAI,CAAC,MAAc,EAAE,IAAuB,EAAE,OAAwB;QACpE,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,aAAa,MAAM,WAAW,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACrF,CAAC;CACF"}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { APIResource } from "../../core/resource.mjs";
|
|
2
|
+
import { APIPromise } from "../../core/api-promise.mjs";
|
|
3
|
+
import { RequestOptions } from "../../internal/request-options.mjs";
|
|
4
|
+
export declare class Participants extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* Add a new participant to an existing group chat.
|
|
7
|
+
*
|
|
8
|
+
* **Requirements:**
|
|
9
|
+
*
|
|
10
|
+
* - Group chats only (3+ existing participants)
|
|
11
|
+
* - New participant must support the same messaging service as the group
|
|
12
|
+
* - Cross-service additions not allowed (e.g., can't add RCS-only user to iMessage
|
|
13
|
+
* group)
|
|
14
|
+
* - For cross-service scenarios, create a new chat instead
|
|
15
|
+
*
|
|
16
|
+
* @example
|
|
17
|
+
* ```ts
|
|
18
|
+
* const response = await client.chats.participants.add(
|
|
19
|
+
* '550e8400-e29b-41d4-a716-446655440000',
|
|
20
|
+
* { handle: '+12052499136' },
|
|
21
|
+
* );
|
|
22
|
+
* ```
|
|
23
|
+
*/
|
|
24
|
+
add(chatID: string, body: ParticipantAddParams, options?: RequestOptions): APIPromise<ParticipantAddResponse>;
|
|
25
|
+
/**
|
|
26
|
+
* Remove a participant from an existing group chat.
|
|
27
|
+
*
|
|
28
|
+
* **Requirements:**
|
|
29
|
+
*
|
|
30
|
+
* - Group chats only
|
|
31
|
+
* - Must have 3+ participants after removal
|
|
32
|
+
*
|
|
33
|
+
* @example
|
|
34
|
+
* ```ts
|
|
35
|
+
* const participant = await client.chats.participants.remove(
|
|
36
|
+
* '550e8400-e29b-41d4-a716-446655440000',
|
|
37
|
+
* { handle: '+12052499136' },
|
|
38
|
+
* );
|
|
39
|
+
* ```
|
|
40
|
+
*/
|
|
41
|
+
remove(chatID: string, body: ParticipantRemoveParams, options?: RequestOptions): APIPromise<ParticipantRemoveResponse>;
|
|
42
|
+
}
|
|
43
|
+
export interface ParticipantAddResponse {
|
|
44
|
+
message?: string;
|
|
45
|
+
status?: string;
|
|
46
|
+
trace_id?: string;
|
|
47
|
+
}
|
|
48
|
+
export interface ParticipantRemoveResponse {
|
|
49
|
+
message?: string;
|
|
50
|
+
status?: string;
|
|
51
|
+
trace_id?: string;
|
|
52
|
+
}
|
|
53
|
+
export interface ParticipantAddParams {
|
|
54
|
+
/**
|
|
55
|
+
* Phone number (E.164 format) or email address of the participant to add
|
|
56
|
+
*/
|
|
57
|
+
handle: string;
|
|
58
|
+
}
|
|
59
|
+
export interface ParticipantRemoveParams {
|
|
60
|
+
/**
|
|
61
|
+
* Phone number (E.164 format) or email address of the participant to remove
|
|
62
|
+
*/
|
|
63
|
+
handle: string;
|
|
64
|
+
}
|
|
65
|
+
export declare namespace Participants {
|
|
66
|
+
export { type ParticipantAddResponse as ParticipantAddResponse, type ParticipantRemoveResponse as ParticipantRemoveResponse, type ParticipantAddParams as ParticipantAddParams, type ParticipantRemoveParams as ParticipantRemoveParams, };
|
|
67
|
+
}
|
|
68
|
+
//# sourceMappingURL=participants.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"participants.d.mts","sourceRoot":"","sources":["../../src/resources/chats/participants.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,YAAa,SAAQ,WAAW;IAC3C;;;;;;;;;;;;;;;;;;OAkBG;IACH,GAAG,CACD,MAAM,EAAE,MAAM,EACd,IAAI,EAAE,oBAAoB,EAC1B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,sBAAsB,CAAC;IAIrC;;;;;;;;;;;;;;;OAeG;IACH,MAAM,CACJ,MAAM,EAAE,MAAM,EACd,IAAI,EAAE,uBAAuB,EAC7B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,yBAAyB,CAAC;CAGzC;AAED,MAAM,WAAW,sBAAsB;IACrC,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,yBAAyB;IACxC,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,oBAAoB;IACnC;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,uBAAuB;IACtC;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,CAAC,OAAO,WAAW,YAAY,CAAC;IACpC,OAAO,EACL,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,uBAAuB,IAAI,uBAAuB,GACxD,CAAC;CACH"}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { APIResource } from "../../core/resource.js";
|
|
2
|
+
import { APIPromise } from "../../core/api-promise.js";
|
|
3
|
+
import { RequestOptions } from "../../internal/request-options.js";
|
|
4
|
+
export declare class Participants extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* Add a new participant to an existing group chat.
|
|
7
|
+
*
|
|
8
|
+
* **Requirements:**
|
|
9
|
+
*
|
|
10
|
+
* - Group chats only (3+ existing participants)
|
|
11
|
+
* - New participant must support the same messaging service as the group
|
|
12
|
+
* - Cross-service additions not allowed (e.g., can't add RCS-only user to iMessage
|
|
13
|
+
* group)
|
|
14
|
+
* - For cross-service scenarios, create a new chat instead
|
|
15
|
+
*
|
|
16
|
+
* @example
|
|
17
|
+
* ```ts
|
|
18
|
+
* const response = await client.chats.participants.add(
|
|
19
|
+
* '550e8400-e29b-41d4-a716-446655440000',
|
|
20
|
+
* { handle: '+12052499136' },
|
|
21
|
+
* );
|
|
22
|
+
* ```
|
|
23
|
+
*/
|
|
24
|
+
add(chatID: string, body: ParticipantAddParams, options?: RequestOptions): APIPromise<ParticipantAddResponse>;
|
|
25
|
+
/**
|
|
26
|
+
* Remove a participant from an existing group chat.
|
|
27
|
+
*
|
|
28
|
+
* **Requirements:**
|
|
29
|
+
*
|
|
30
|
+
* - Group chats only
|
|
31
|
+
* - Must have 3+ participants after removal
|
|
32
|
+
*
|
|
33
|
+
* @example
|
|
34
|
+
* ```ts
|
|
35
|
+
* const participant = await client.chats.participants.remove(
|
|
36
|
+
* '550e8400-e29b-41d4-a716-446655440000',
|
|
37
|
+
* { handle: '+12052499136' },
|
|
38
|
+
* );
|
|
39
|
+
* ```
|
|
40
|
+
*/
|
|
41
|
+
remove(chatID: string, body: ParticipantRemoveParams, options?: RequestOptions): APIPromise<ParticipantRemoveResponse>;
|
|
42
|
+
}
|
|
43
|
+
export interface ParticipantAddResponse {
|
|
44
|
+
message?: string;
|
|
45
|
+
status?: string;
|
|
46
|
+
trace_id?: string;
|
|
47
|
+
}
|
|
48
|
+
export interface ParticipantRemoveResponse {
|
|
49
|
+
message?: string;
|
|
50
|
+
status?: string;
|
|
51
|
+
trace_id?: string;
|
|
52
|
+
}
|
|
53
|
+
export interface ParticipantAddParams {
|
|
54
|
+
/**
|
|
55
|
+
* Phone number (E.164 format) or email address of the participant to add
|
|
56
|
+
*/
|
|
57
|
+
handle: string;
|
|
58
|
+
}
|
|
59
|
+
export interface ParticipantRemoveParams {
|
|
60
|
+
/**
|
|
61
|
+
* Phone number (E.164 format) or email address of the participant to remove
|
|
62
|
+
*/
|
|
63
|
+
handle: string;
|
|
64
|
+
}
|
|
65
|
+
export declare namespace Participants {
|
|
66
|
+
export { type ParticipantAddResponse as ParticipantAddResponse, type ParticipantRemoveResponse as ParticipantRemoveResponse, type ParticipantAddParams as ParticipantAddParams, type ParticipantRemoveParams as ParticipantRemoveParams, };
|
|
67
|
+
}
|
|
68
|
+
//# sourceMappingURL=participants.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"participants.d.ts","sourceRoot":"","sources":["../../src/resources/chats/participants.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,YAAa,SAAQ,WAAW;IAC3C;;;;;;;;;;;;;;;;;;OAkBG;IACH,GAAG,CACD,MAAM,EAAE,MAAM,EACd,IAAI,EAAE,oBAAoB,EAC1B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,sBAAsB,CAAC;IAIrC;;;;;;;;;;;;;;;OAeG;IACH,MAAM,CACJ,MAAM,EAAE,MAAM,EACd,IAAI,EAAE,uBAAuB,EAC7B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,yBAAyB,CAAC;CAGzC;AAED,MAAM,WAAW,sBAAsB;IACrC,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,yBAAyB;IACxC,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,oBAAoB;IACnC;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,uBAAuB;IACtC;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,CAAC,OAAO,WAAW,YAAY,CAAC;IACpC,OAAO,EACL,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,uBAAuB,IAAI,uBAAuB,GACxD,CAAC;CACH"}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.Participants = void 0;
|
|
5
|
+
const resource_1 = require("../../core/resource.js");
|
|
6
|
+
const path_1 = require("../../internal/utils/path.js");
|
|
7
|
+
class Participants extends resource_1.APIResource {
|
|
8
|
+
/**
|
|
9
|
+
* Add a new participant to an existing group chat.
|
|
10
|
+
*
|
|
11
|
+
* **Requirements:**
|
|
12
|
+
*
|
|
13
|
+
* - Group chats only (3+ existing participants)
|
|
14
|
+
* - New participant must support the same messaging service as the group
|
|
15
|
+
* - Cross-service additions not allowed (e.g., can't add RCS-only user to iMessage
|
|
16
|
+
* group)
|
|
17
|
+
* - For cross-service scenarios, create a new chat instead
|
|
18
|
+
*
|
|
19
|
+
* @example
|
|
20
|
+
* ```ts
|
|
21
|
+
* const response = await client.chats.participants.add(
|
|
22
|
+
* '550e8400-e29b-41d4-a716-446655440000',
|
|
23
|
+
* { handle: '+12052499136' },
|
|
24
|
+
* );
|
|
25
|
+
* ```
|
|
26
|
+
*/
|
|
27
|
+
add(chatID, body, options) {
|
|
28
|
+
return this._client.post((0, path_1.path) `/v3/chats/${chatID}/participants`, { body, ...options });
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* Remove a participant from an existing group chat.
|
|
32
|
+
*
|
|
33
|
+
* **Requirements:**
|
|
34
|
+
*
|
|
35
|
+
* - Group chats only
|
|
36
|
+
* - Must have 3+ participants after removal
|
|
37
|
+
*
|
|
38
|
+
* @example
|
|
39
|
+
* ```ts
|
|
40
|
+
* const participant = await client.chats.participants.remove(
|
|
41
|
+
* '550e8400-e29b-41d4-a716-446655440000',
|
|
42
|
+
* { handle: '+12052499136' },
|
|
43
|
+
* );
|
|
44
|
+
* ```
|
|
45
|
+
*/
|
|
46
|
+
remove(chatID, body, options) {
|
|
47
|
+
return this._client.delete((0, path_1.path) `/v3/chats/${chatID}/participants`, { body, ...options });
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
exports.Participants = Participants;
|
|
51
|
+
//# sourceMappingURL=participants.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"participants.js","sourceRoot":"","sources":["../../src/resources/chats/participants.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAGlD,uDAAiD;AAEjD,MAAa,YAAa,SAAQ,sBAAW;IAC3C;;;;;;;;;;;;;;;;;;OAkBG;IACH,GAAG,CACD,MAAc,EACd,IAA0B,EAC1B,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,aAAa,MAAM,eAAe,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACzF,CAAC;IAED;;;;;;;;;;;;;;;OAeG;IACH,MAAM,CACJ,MAAc,EACd,IAA6B,EAC7B,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAA,WAAI,EAAA,aAAa,MAAM,eAAe,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC3F,CAAC;CACF;AAnDD,oCAmDC"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { APIResource } from "../../core/resource.mjs";
|
|
3
|
+
import { path } from "../../internal/utils/path.mjs";
|
|
4
|
+
export class Participants extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* Add a new participant to an existing group chat.
|
|
7
|
+
*
|
|
8
|
+
* **Requirements:**
|
|
9
|
+
*
|
|
10
|
+
* - Group chats only (3+ existing participants)
|
|
11
|
+
* - New participant must support the same messaging service as the group
|
|
12
|
+
* - Cross-service additions not allowed (e.g., can't add RCS-only user to iMessage
|
|
13
|
+
* group)
|
|
14
|
+
* - For cross-service scenarios, create a new chat instead
|
|
15
|
+
*
|
|
16
|
+
* @example
|
|
17
|
+
* ```ts
|
|
18
|
+
* const response = await client.chats.participants.add(
|
|
19
|
+
* '550e8400-e29b-41d4-a716-446655440000',
|
|
20
|
+
* { handle: '+12052499136' },
|
|
21
|
+
* );
|
|
22
|
+
* ```
|
|
23
|
+
*/
|
|
24
|
+
add(chatID, body, options) {
|
|
25
|
+
return this._client.post(path `/v3/chats/${chatID}/participants`, { body, ...options });
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Remove a participant from an existing group chat.
|
|
29
|
+
*
|
|
30
|
+
* **Requirements:**
|
|
31
|
+
*
|
|
32
|
+
* - Group chats only
|
|
33
|
+
* - Must have 3+ participants after removal
|
|
34
|
+
*
|
|
35
|
+
* @example
|
|
36
|
+
* ```ts
|
|
37
|
+
* const participant = await client.chats.participants.remove(
|
|
38
|
+
* '550e8400-e29b-41d4-a716-446655440000',
|
|
39
|
+
* { handle: '+12052499136' },
|
|
40
|
+
* );
|
|
41
|
+
* ```
|
|
42
|
+
*/
|
|
43
|
+
remove(chatID, body, options) {
|
|
44
|
+
return this._client.delete(path `/v3/chats/${chatID}/participants`, { body, ...options });
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
//# sourceMappingURL=participants.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"participants.mjs","sourceRoot":"","sources":["../../src/resources/chats/participants.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAGf,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,YAAa,SAAQ,WAAW;IAC3C;;;;;;;;;;;;;;;;;;OAkBG;IACH,GAAG,CACD,MAAc,EACd,IAA0B,EAC1B,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,aAAa,MAAM,eAAe,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACzF,CAAC;IAED;;;;;;;;;;;;;;;OAeG;IACH,MAAM,CACJ,MAAc,EACd,IAA6B,EAC7B,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAA,aAAa,MAAM,eAAe,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC3F,CAAC;CACF"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { APIResource } from "../../core/resource.mjs";
|
|
2
|
+
import { APIPromise } from "../../core/api-promise.mjs";
|
|
3
|
+
import { RequestOptions } from "../../internal/request-options.mjs";
|
|
4
|
+
export declare class Typing extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* Send a typing indicator to show that someone is typing in the chat.
|
|
7
|
+
*
|
|
8
|
+
* **Note:** Group chat typing indicators are not currently supported.
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* ```ts
|
|
12
|
+
* await client.chats.typing.start(
|
|
13
|
+
* '550e8400-e29b-41d4-a716-446655440000',
|
|
14
|
+
* );
|
|
15
|
+
* ```
|
|
16
|
+
*/
|
|
17
|
+
start(chatID: string, options?: RequestOptions): APIPromise<void>;
|
|
18
|
+
/**
|
|
19
|
+
* Stop the typing indicator for the chat.
|
|
20
|
+
*
|
|
21
|
+
* **Note:** Typing indicators are automatically stopped when a message is sent, so
|
|
22
|
+
* calling this endpoint after sending a message is unnecessary.
|
|
23
|
+
*
|
|
24
|
+
* **Note:** Group chat typing indicators are not currently supported.
|
|
25
|
+
*
|
|
26
|
+
* @example
|
|
27
|
+
* ```ts
|
|
28
|
+
* await client.chats.typing.stop(
|
|
29
|
+
* '550e8400-e29b-41d4-a716-446655440000',
|
|
30
|
+
* );
|
|
31
|
+
* ```
|
|
32
|
+
*/
|
|
33
|
+
stop(chatID: string, options?: RequestOptions): APIPromise<void>;
|
|
34
|
+
}
|
|
35
|
+
//# sourceMappingURL=typing.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"typing.d.mts","sourceRoot":"","sources":["../../src/resources/chats/typing.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OAEd,EAAE,cAAc,EAAE;AAGzB,qBAAa,MAAO,SAAQ,WAAW;IACrC;;;;;;;;;;;OAWG;IACH,KAAK,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;IAOjE;;;;;;;;;;;;;;OAcG;IACH,IAAI,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;CAMjE"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { APIResource } from "../../core/resource.js";
|
|
2
|
+
import { APIPromise } from "../../core/api-promise.js";
|
|
3
|
+
import { RequestOptions } from "../../internal/request-options.js";
|
|
4
|
+
export declare class Typing extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* Send a typing indicator to show that someone is typing in the chat.
|
|
7
|
+
*
|
|
8
|
+
* **Note:** Group chat typing indicators are not currently supported.
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* ```ts
|
|
12
|
+
* await client.chats.typing.start(
|
|
13
|
+
* '550e8400-e29b-41d4-a716-446655440000',
|
|
14
|
+
* );
|
|
15
|
+
* ```
|
|
16
|
+
*/
|
|
17
|
+
start(chatID: string, options?: RequestOptions): APIPromise<void>;
|
|
18
|
+
/**
|
|
19
|
+
* Stop the typing indicator for the chat.
|
|
20
|
+
*
|
|
21
|
+
* **Note:** Typing indicators are automatically stopped when a message is sent, so
|
|
22
|
+
* calling this endpoint after sending a message is unnecessary.
|
|
23
|
+
*
|
|
24
|
+
* **Note:** Group chat typing indicators are not currently supported.
|
|
25
|
+
*
|
|
26
|
+
* @example
|
|
27
|
+
* ```ts
|
|
28
|
+
* await client.chats.typing.stop(
|
|
29
|
+
* '550e8400-e29b-41d4-a716-446655440000',
|
|
30
|
+
* );
|
|
31
|
+
* ```
|
|
32
|
+
*/
|
|
33
|
+
stop(chatID: string, options?: RequestOptions): APIPromise<void>;
|
|
34
|
+
}
|
|
35
|
+
//# sourceMappingURL=typing.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"typing.d.ts","sourceRoot":"","sources":["../../src/resources/chats/typing.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OAEd,EAAE,cAAc,EAAE;AAGzB,qBAAa,MAAO,SAAQ,WAAW;IACrC;;;;;;;;;;;OAWG;IACH,KAAK,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;IAOjE;;;;;;;;;;;;;;OAcG;IACH,IAAI,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;CAMjE"}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.Typing = void 0;
|
|
5
|
+
const resource_1 = require("../../core/resource.js");
|
|
6
|
+
const headers_1 = require("../../internal/headers.js");
|
|
7
|
+
const path_1 = require("../../internal/utils/path.js");
|
|
8
|
+
class Typing extends resource_1.APIResource {
|
|
9
|
+
/**
|
|
10
|
+
* Send a typing indicator to show that someone is typing in the chat.
|
|
11
|
+
*
|
|
12
|
+
* **Note:** Group chat typing indicators are not currently supported.
|
|
13
|
+
*
|
|
14
|
+
* @example
|
|
15
|
+
* ```ts
|
|
16
|
+
* await client.chats.typing.start(
|
|
17
|
+
* '550e8400-e29b-41d4-a716-446655440000',
|
|
18
|
+
* );
|
|
19
|
+
* ```
|
|
20
|
+
*/
|
|
21
|
+
start(chatID, options) {
|
|
22
|
+
return this._client.post((0, path_1.path) `/v3/chats/${chatID}/typing`, {
|
|
23
|
+
...options,
|
|
24
|
+
headers: (0, headers_1.buildHeaders)([{ Accept: '*/*' }, options?.headers]),
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Stop the typing indicator for the chat.
|
|
29
|
+
*
|
|
30
|
+
* **Note:** Typing indicators are automatically stopped when a message is sent, so
|
|
31
|
+
* calling this endpoint after sending a message is unnecessary.
|
|
32
|
+
*
|
|
33
|
+
* **Note:** Group chat typing indicators are not currently supported.
|
|
34
|
+
*
|
|
35
|
+
* @example
|
|
36
|
+
* ```ts
|
|
37
|
+
* await client.chats.typing.stop(
|
|
38
|
+
* '550e8400-e29b-41d4-a716-446655440000',
|
|
39
|
+
* );
|
|
40
|
+
* ```
|
|
41
|
+
*/
|
|
42
|
+
stop(chatID, options) {
|
|
43
|
+
return this._client.delete((0, path_1.path) `/v3/chats/${chatID}/typing`, {
|
|
44
|
+
...options,
|
|
45
|
+
headers: (0, headers_1.buildHeaders)([{ Accept: '*/*' }, options?.headers]),
|
|
46
|
+
});
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
exports.Typing = Typing;
|
|
50
|
+
//# sourceMappingURL=typing.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"typing.js","sourceRoot":"","sources":["../../src/resources/chats/typing.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAElD,uDAAsD;AAEtD,uDAAiD;AAEjD,MAAa,MAAO,SAAQ,sBAAW;IACrC;;;;;;;;;;;OAWG;IACH,KAAK,CAAC,MAAc,EAAE,OAAwB;QAC5C,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,aAAa,MAAM,SAAS,EAAE;YACzD,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;;;;;OAcG;IACH,IAAI,CAAC,MAAc,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAA,WAAI,EAAA,aAAa,MAAM,SAAS,EAAE;YAC3D,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;CACF;AAzCD,wBAyCC"}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { APIResource } from "../../core/resource.mjs";
|
|
3
|
+
import { buildHeaders } from "../../internal/headers.mjs";
|
|
4
|
+
import { path } from "../../internal/utils/path.mjs";
|
|
5
|
+
export class Typing extends APIResource {
|
|
6
|
+
/**
|
|
7
|
+
* Send a typing indicator to show that someone is typing in the chat.
|
|
8
|
+
*
|
|
9
|
+
* **Note:** Group chat typing indicators are not currently supported.
|
|
10
|
+
*
|
|
11
|
+
* @example
|
|
12
|
+
* ```ts
|
|
13
|
+
* await client.chats.typing.start(
|
|
14
|
+
* '550e8400-e29b-41d4-a716-446655440000',
|
|
15
|
+
* );
|
|
16
|
+
* ```
|
|
17
|
+
*/
|
|
18
|
+
start(chatID, options) {
|
|
19
|
+
return this._client.post(path `/v3/chats/${chatID}/typing`, {
|
|
20
|
+
...options,
|
|
21
|
+
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Stop the typing indicator for the chat.
|
|
26
|
+
*
|
|
27
|
+
* **Note:** Typing indicators are automatically stopped when a message is sent, so
|
|
28
|
+
* calling this endpoint after sending a message is unnecessary.
|
|
29
|
+
*
|
|
30
|
+
* **Note:** Group chat typing indicators are not currently supported.
|
|
31
|
+
*
|
|
32
|
+
* @example
|
|
33
|
+
* ```ts
|
|
34
|
+
* await client.chats.typing.stop(
|
|
35
|
+
* '550e8400-e29b-41d4-a716-446655440000',
|
|
36
|
+
* );
|
|
37
|
+
* ```
|
|
38
|
+
*/
|
|
39
|
+
stop(chatID, options) {
|
|
40
|
+
return this._client.delete(path `/v3/chats/${chatID}/typing`, {
|
|
41
|
+
...options,
|
|
42
|
+
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
//# sourceMappingURL=typing.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"typing.mjs","sourceRoot":"","sources":["../../src/resources/chats/typing.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAEf,EAAE,YAAY,EAAE;OAEhB,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,MAAO,SAAQ,WAAW;IACrC;;;;;;;;;;;OAWG;IACH,KAAK,CAAC,MAAc,EAAE,OAAwB;QAC5C,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,aAAa,MAAM,SAAS,EAAE;YACzD,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;;;;;OAcG;IACH,IAAI,CAAC,MAAc,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAA,aAAa,MAAM,SAAS,EAAE;YAC3D,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;CACF"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chats.d.mts","sourceRoot":"","sources":["../src/resources/chats.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chats.d.ts","sourceRoot":"","sources":["../src/resources/chats.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
const tslib_1 = require("../internal/tslib.js");
|
|
5
|
+
tslib_1.__exportStar(require("./chats/index.js"), exports);
|
|
6
|
+
//# sourceMappingURL=chats.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chats.js","sourceRoot":"","sources":["../src/resources/chats.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,2DAA8B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chats.mjs","sourceRoot":"","sources":["../src/resources/chats.ts"],"names":[],"mappings":"AAAA,sFAAsF"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export { Attachments, type AttachmentCreateResponse, type AttachmentRetrieveResponse, type AttachmentCreateParams, } from "./attachments.mjs";
|
|
2
|
+
export { Chats, type ChatCreateResponse, type ChatRetrieveResponse, type ChatUpdateResponse, type ChatListResponse, type ChatSendVoicememoResponse, type ChatCreateParams, type ChatUpdateParams, type ChatListParams, type ChatSendVoicememoParams, } from "./chats/chats.mjs";
|
|
3
|
+
export { Messages, type MessageRetrieveResponse, type MessageAddReactionResponse, type MessageRetrieveThreadResponse, type MessageDeleteParams, type MessageAddReactionParams, type MessageRetrieveThreadParams, } from "./messages.mjs";
|
|
4
|
+
export { PhoneNumbers, type PhoneNumberListResponse } from "./phone-numbers.mjs";
|
|
5
|
+
export { Webhooks } from "./webhooks/webhooks.mjs";
|
|
6
|
+
//# sourceMappingURL=index.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"OAEO,EACL,WAAW,EACX,KAAK,wBAAwB,EAC7B,KAAK,0BAA0B,EAC/B,KAAK,sBAAsB,GAC5B;OACM,EACL,KAAK,EACL,KAAK,kBAAkB,EACvB,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,EACvB,KAAK,gBAAgB,EACrB,KAAK,yBAAyB,EAC9B,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACrB,KAAK,cAAc,EACnB,KAAK,uBAAuB,GAC7B;OACM,EACL,QAAQ,EACR,KAAK,uBAAuB,EAC5B,KAAK,0BAA0B,EAC/B,KAAK,6BAA6B,EAClC,KAAK,mBAAmB,EACxB,KAAK,wBAAwB,EAC7B,KAAK,2BAA2B,GACjC;OACM,EAAE,YAAY,EAAE,KAAK,uBAAuB,EAAE;OAC9C,EAAE,QAAQ,EAAE"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export { Attachments, type AttachmentCreateResponse, type AttachmentRetrieveResponse, type AttachmentCreateParams, } from "./attachments.js";
|
|
2
|
+
export { Chats, type ChatCreateResponse, type ChatRetrieveResponse, type ChatUpdateResponse, type ChatListResponse, type ChatSendVoicememoResponse, type ChatCreateParams, type ChatUpdateParams, type ChatListParams, type ChatSendVoicememoParams, } from "./chats/chats.js";
|
|
3
|
+
export { Messages, type MessageRetrieveResponse, type MessageAddReactionResponse, type MessageRetrieveThreadResponse, type MessageDeleteParams, type MessageAddReactionParams, type MessageRetrieveThreadParams, } from "./messages.js";
|
|
4
|
+
export { PhoneNumbers, type PhoneNumberListResponse } from "./phone-numbers.js";
|
|
5
|
+
export { Webhooks } from "./webhooks/webhooks.js";
|
|
6
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"OAEO,EACL,WAAW,EACX,KAAK,wBAAwB,EAC7B,KAAK,0BAA0B,EAC/B,KAAK,sBAAsB,GAC5B;OACM,EACL,KAAK,EACL,KAAK,kBAAkB,EACvB,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,EACvB,KAAK,gBAAgB,EACrB,KAAK,yBAAyB,EAC9B,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACrB,KAAK,cAAc,EACnB,KAAK,uBAAuB,GAC7B;OACM,EACL,QAAQ,EACR,KAAK,uBAAuB,EAC5B,KAAK,0BAA0B,EAC/B,KAAK,6BAA6B,EAClC,KAAK,mBAAmB,EACxB,KAAK,wBAAwB,EAC7B,KAAK,2BAA2B,GACjC;OACM,EAAE,YAAY,EAAE,KAAK,uBAAuB,EAAE;OAC9C,EAAE,QAAQ,EAAE"}
|