@sentdm/sentdm 0.44.0 → 0.46.0
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 +18 -0
- package/client.d.mts +3 -10
- package/client.d.mts.map +1 -1
- package/client.d.ts +3 -10
- package/client.d.ts.map +1 -1
- package/client.js +3 -10
- package/client.js.map +1 -1
- package/client.mjs +3 -10
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/channels/channels.d.mts +2 -2
- package/resources/channels/channels.d.mts.map +1 -1
- package/resources/channels/channels.d.ts +2 -2
- package/resources/channels/channels.d.ts.map +1 -1
- package/resources/channels/channels.js.map +1 -1
- package/resources/channels/channels.mjs.map +1 -1
- package/resources/channels/index.d.mts +1 -1
- package/resources/channels/index.d.mts.map +1 -1
- package/resources/channels/index.d.ts +1 -1
- package/resources/channels/index.d.ts.map +1 -1
- package/resources/channels/index.js.map +1 -1
- package/resources/channels/index.mjs.map +1 -1
- package/resources/channels/voice.d.mts +13 -105
- package/resources/channels/voice.d.mts.map +1 -1
- package/resources/channels/voice.d.ts +13 -105
- package/resources/channels/voice.d.ts.map +1 -1
- package/resources/channels/voice.js +12 -41
- package/resources/channels/voice.js.map +1 -1
- package/resources/channels/voice.mjs +12 -41
- package/resources/channels/voice.mjs.map +1 -1
- package/resources/index.d.mts +1 -1
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +1 -1
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +3 -3
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +1 -1
- package/resources/index.mjs.map +1 -1
- package/resources/messages.d.mts +8 -1
- package/resources/messages.d.mts.map +1 -1
- package/resources/messages.d.ts +8 -1
- package/resources/messages.d.ts.map +1 -1
- package/resources/profiles/profiles.d.mts +7 -0
- package/resources/profiles/profiles.d.mts.map +1 -1
- package/resources/profiles/profiles.d.ts +7 -0
- package/resources/profiles/profiles.d.ts.map +1 -1
- package/resources/profiles/profiles.js +7 -0
- package/resources/profiles/profiles.js.map +1 -1
- package/resources/profiles/profiles.mjs +7 -0
- package/resources/profiles/profiles.mjs.map +1 -1
- package/resources/templates.d.mts +14 -13
- package/resources/templates.d.mts.map +1 -1
- package/resources/templates.d.ts +14 -13
- package/resources/templates.d.ts.map +1 -1
- package/resources/{calls → voice/calls}/calls.d.mts +17 -12
- package/resources/voice/calls/calls.d.mts.map +1 -0
- package/resources/{calls → voice/calls}/calls.d.ts +17 -12
- package/resources/voice/calls/calls.d.ts.map +1 -0
- package/resources/{calls → voice/calls}/calls.js +17 -17
- package/resources/voice/calls/calls.js.map +1 -0
- package/resources/{calls → voice/calls}/calls.mjs +16 -16
- package/resources/voice/calls/calls.mjs.map +1 -0
- package/resources/voice/calls/index.d.mts.map +1 -0
- package/resources/voice/calls/index.d.ts.map +1 -0
- package/resources/voice/calls/index.js.map +1 -0
- package/resources/voice/calls/index.mjs.map +1 -0
- package/resources/{calls → voice/calls}/participants.d.mts +14 -14
- package/resources/voice/calls/participants.d.mts.map +1 -0
- package/resources/{calls → voice/calls}/participants.d.ts +14 -14
- package/resources/voice/calls/participants.d.ts.map +1 -0
- package/resources/{calls → voice/calls}/participants.js +17 -17
- package/resources/voice/calls/participants.js.map +1 -0
- package/resources/{calls → voice/calls}/participants.mjs +17 -17
- package/resources/voice/calls/participants.mjs.map +1 -0
- package/resources/voice/calls.d.mts.map +1 -0
- package/resources/voice/calls.d.ts.map +1 -0
- package/resources/{calls.js → voice/calls.js} +1 -1
- package/resources/voice/calls.js.map +1 -0
- package/resources/voice/calls.mjs.map +1 -0
- package/resources/voice/index.d.mts +4 -0
- package/resources/{calls → voice}/index.d.mts.map +1 -1
- package/resources/voice/index.d.ts +4 -0
- package/resources/{calls → voice}/index.d.ts.map +1 -1
- package/resources/voice/index.js +11 -0
- package/resources/voice/index.js.map +1 -0
- package/resources/voice/index.mjs +5 -0
- package/resources/voice/index.mjs.map +1 -0
- package/resources/voice/tokens.d.mts +109 -0
- package/resources/voice/tokens.d.mts.map +1 -0
- package/resources/voice/tokens.d.ts +109 -0
- package/resources/voice/tokens.d.ts.map +1 -0
- package/resources/voice/tokens.js +45 -0
- package/resources/voice/tokens.js.map +1 -0
- package/resources/voice/tokens.mjs +41 -0
- package/resources/voice/tokens.mjs.map +1 -0
- package/resources/voice/voice.d.mts +14 -0
- package/resources/voice/voice.d.mts.map +1 -0
- package/resources/voice/voice.d.ts +14 -0
- package/resources/voice/voice.d.ts.map +1 -0
- package/resources/voice/voice.js +21 -0
- package/resources/voice/voice.js.map +1 -0
- package/resources/voice/voice.mjs +16 -0
- package/resources/voice/voice.mjs.map +1 -0
- package/resources/voice.d.mts +2 -0
- package/resources/voice.d.mts.map +1 -0
- package/resources/voice.d.ts +2 -0
- package/resources/voice.d.ts.map +1 -0
- package/resources/voice.js +6 -0
- package/resources/voice.js.map +1 -0
- package/resources/voice.mjs +3 -0
- package/resources/voice.mjs.map +1 -0
- package/resources/webhooks.d.mts +15 -2
- package/resources/webhooks.d.mts.map +1 -1
- package/resources/webhooks.d.ts +15 -2
- package/resources/webhooks.d.ts.map +1 -1
- package/src/client.ts +4 -45
- package/src/resources/channels/channels.ts +0 -6
- package/src/resources/channels/index.ts +0 -3
- package/src/resources/channels/voice.ts +12 -135
- package/src/resources/index.ts +1 -18
- package/src/resources/messages.ts +8 -1
- package/src/resources/profiles/profiles.ts +7 -0
- package/src/resources/templates.ts +14 -13
- package/src/resources/{calls → voice/calls}/calls.ts +25 -19
- package/src/resources/{calls → voice/calls}/participants.ts +21 -21
- package/src/resources/voice/index.ts +22 -0
- package/src/resources/voice/tokens.ts +144 -0
- package/src/resources/voice/voice.ts +60 -0
- package/src/resources/voice.ts +3 -0
- package/src/resources/webhooks.ts +16 -2
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
- package/resources/calls/calls.d.mts.map +0 -1
- package/resources/calls/calls.d.ts.map +0 -1
- package/resources/calls/calls.js.map +0 -1
- package/resources/calls/calls.mjs.map +0 -1
- package/resources/calls/index.js.map +0 -1
- package/resources/calls/index.mjs.map +0 -1
- package/resources/calls/participants.d.mts.map +0 -1
- package/resources/calls/participants.d.ts.map +0 -1
- package/resources/calls/participants.js.map +0 -1
- package/resources/calls/participants.mjs.map +0 -1
- package/resources/calls.d.mts.map +0 -1
- package/resources/calls.d.ts.map +0 -1
- package/resources/calls.js.map +0 -1
- package/resources/calls.mjs.map +0 -1
- /package/resources/{calls → voice/calls}/index.d.mts +0 -0
- /package/resources/{calls → voice/calls}/index.d.ts +0 -0
- /package/resources/{calls → voice/calls}/index.js +0 -0
- /package/resources/{calls → voice/calls}/index.mjs +0 -0
- /package/resources/{calls.d.mts → voice/calls.d.mts} +0 -0
- /package/resources/{calls.d.ts → voice/calls.d.ts} +0 -0
- /package/resources/{calls.mjs → voice/calls.mjs} +0 -0
- /package/src/resources/{calls → voice/calls}/index.ts +0 -0
- /package/src/resources/{calls.ts → voice/calls.ts} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/channels/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,QAAQ,EAAE,sBAAmB;AACtC,OAAO,EACL,KAAK,EACL,KAAK,8BAA8B,EACnC,KAAK,8BAA8B,EACnC,KAAK,wBAAwB,EAC7B,KAAK,+BAA+B,EACpC,KAAK,wBAAwB,EAC7B,KAAK,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/channels/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,QAAQ,EAAE,sBAAmB;AACtC,OAAO,EACL,KAAK,EACL,KAAK,8BAA8B,EACnC,KAAK,8BAA8B,EACnC,KAAK,wBAAwB,EAC7B,KAAK,+BAA+B,EACpC,KAAK,wBAAwB,EAC7B,KAAK,iBAAiB,EACtB,KAAK,0BAA0B,EAC/B,KAAK,4BAA4B,EACjC,KAAK,6BAA6B,EAClC,KAAK,WAAW,EAChB,KAAK,kBAAkB,EACvB,KAAK,WAAW,EAChB,KAAK,iBAAiB,EACtB,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,EACtB,KAAK,eAAe,EACpB,KAAK,uBAAuB,EAC5B,KAAK,eAAe,GACrB,mBAAgB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/channels/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,0CAAsC;AAA7B,oGAAA,QAAQ,OAAA;AACjB,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/channels/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,0CAAsC;AAA7B,oGAAA,QAAQ,OAAA;AACjB,oCAoBiB;AAnBf,8FAAA,KAAK,OAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/channels/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,QAAQ,EAAE,uBAAmB;AACtC,OAAO,EACL,KAAK,
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/channels/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,QAAQ,EAAE,uBAAmB;AACtC,OAAO,EACL,KAAK,GAmBN,oBAAgB"}
|
|
@@ -5,7 +5,7 @@ import { RequestOptions } from "../../internal/request-options.mjs";
|
|
|
5
5
|
/**
|
|
6
6
|
* The senders you send from, one per channel.
|
|
7
7
|
*
|
|
8
|
-
* **SMS is a list of markets**, each keyed by `(country, number_type)` — a customer can hold `us/10dlc` and `gb/alphanumeric` at once, so a market is addressed by the pair rather than by country alone. **WhatsApp and RCS are single**: a customer has one business account and one agent. **Voice is per number**: each number you hold can carry phone calls on its own (`POST /v3/channels/voice`), each with the callback URL Sent asks what to do with its calls, one of them is the default line for calls placed from your app, and voice tokens are minted
|
|
8
|
+
* **SMS is a list of markets**, each keyed by `(country, number_type)` — a customer can hold `us/10dlc` and `gb/alphanumeric` at once, so a market is addressed by the pair rather than by country alone. **WhatsApp and RCS are single**: a customer has one business account and one agent. **Voice is per number**: each number you hold can carry phone calls on its own (`POST /v3/channels/voice`), each with the callback URL Sent asks what to do with its calls, one of them is the default line for calls placed from your app, and voice tokens are minted with `POST /v3/voice/tokens`. Read your voice numbers with `GET /v3/channels/voice` and change one with `PATCH /v3/channels/voice/{number}`.
|
|
9
9
|
*
|
|
10
10
|
* ## Compliance lives on the market
|
|
11
11
|
*
|
|
@@ -76,19 +76,23 @@ export declare class Voice extends APIResource {
|
|
|
76
76
|
*
|
|
77
77
|
* ## What it changes
|
|
78
78
|
*
|
|
79
|
-
* | Body | Effect
|
|
80
|
-
* | --------------------------------------------- |
|
|
81
|
-
* | `"status": "ACTIVE"` | turns calls on again for a number you turned off; the callback URL and the secret it had are kept
|
|
82
|
-
* | `"status": "INACTIVE"` | turns calls off; the callback URL and the secret stay on the number
|
|
83
|
-
* | `"default_for_app_calls": true` | makes this the line app-originated calls are placed from when a voice token names no number
|
|
84
|
-
* | `"callback_url": "https://example.com/voice"` | replaces where Sent asks what to do with each call on the number; the signing secret
|
|
85
|
-
* | key omitted | left exactly as it is
|
|
79
|
+
* | Body | Effect |
|
|
80
|
+
* | --------------------------------------------- | ------------------------------------------------------------------------------------------------------------ |
|
|
81
|
+
* | `"status": "ACTIVE"` | turns calls on again for a number you turned off; the callback URL and the secret it had are kept |
|
|
82
|
+
* | `"status": "INACTIVE"` | turns calls off; the callback URL and the secret stay on the number |
|
|
83
|
+
* | `"default_for_app_calls": true` | makes this the line app-originated calls are placed from when a voice token names no number |
|
|
84
|
+
* | `"callback_url": "https://example.com/voice"` | replaces where Sent asks what to do with each call on the number; the signing secret and the status are kept |
|
|
85
|
+
* | key omitted | left exactly as it is |
|
|
86
86
|
*
|
|
87
87
|
* `status` is matched ignoring case. Any combination is accepted:
|
|
88
88
|
* `status: "ACTIVE"` with `default_for_app_calls: true` turns a number on as the
|
|
89
89
|
* new default, and a `callback_url` sent with either status is written too. A body
|
|
90
90
|
* that names none of the three is refused.
|
|
91
91
|
*
|
|
92
|
+
* A number can be on without a callback URL: calls placed from your app then
|
|
93
|
+
* connect straight to the number or user they dial, and calls to the number are
|
|
94
|
+
* declined.
|
|
95
|
+
*
|
|
92
96
|
* ## What it will refuse
|
|
93
97
|
*
|
|
94
98
|
* **`default_for_app_calls: false` is `400`.** An account with active voice
|
|
@@ -102,11 +106,6 @@ export declare class Voice extends APIResource {
|
|
|
102
106
|
* **Making an inactive number the default is `400`.** Send `status: "ACTIVE"` in
|
|
103
107
|
* the same call.
|
|
104
108
|
*
|
|
105
|
-
* A number added without a `callback_url` is `INACTIVE` for that one reason, so
|
|
106
|
-
* sending it a `callback_url` turns it on by itself, and it becomes your default
|
|
107
|
-
* line if you have no other active voice number. A number you turned off while it
|
|
108
|
-
* had a URL stays off.
|
|
109
|
-
*
|
|
110
109
|
* **A number you never turned voice on for is `404`.** Add it with
|
|
111
110
|
* `POST /v3/channels/voice`.
|
|
112
111
|
*
|
|
@@ -142,21 +141,6 @@ export declare class Voice extends APIResource {
|
|
|
142
141
|
* ```
|
|
143
142
|
*/
|
|
144
143
|
list(params?: VoiceListParams | null | undefined, options?: RequestOptions): APIPromise<APIResponseOfListOfVoiceNumber>;
|
|
145
|
-
/**
|
|
146
|
-
* Mints a short-lived token for one of your app users. Call this from your backend
|
|
147
|
-
* and return the token to your app, which passes it to the voice client SDK to
|
|
148
|
-
* register. The identity is bound to the given number, or to your default app-call
|
|
149
|
-
* number when omitted, and calls placed by that identity are routed through the
|
|
150
|
-
* bound number. Minting again re-binds the identity, so an identity can move
|
|
151
|
-
* between numbers.
|
|
152
|
-
*
|
|
153
|
-
* @example
|
|
154
|
-
* ```ts
|
|
155
|
-
* const apiResponseOfVoiceToken =
|
|
156
|
-
* await client.channels.voice.createToken();
|
|
157
|
-
* ```
|
|
158
|
-
*/
|
|
159
|
-
createToken(params: VoiceCreateTokenParams, options?: RequestOptions): APIPromise<APIResponseOfVoiceToken>;
|
|
160
144
|
/**
|
|
161
145
|
* Generates a new signing secret for the questions Sent sends to this number's
|
|
162
146
|
* callback URL and returns it. The previous secret stops signing immediately, so
|
|
@@ -300,27 +284,6 @@ export interface APIResponseOfVoiceSecret {
|
|
|
300
284
|
*/
|
|
301
285
|
success?: boolean;
|
|
302
286
|
}
|
|
303
|
-
/**
|
|
304
|
-
* Standard API response envelope for all v3 endpoints
|
|
305
|
-
*/
|
|
306
|
-
export interface APIResponseOfVoiceToken {
|
|
307
|
-
/**
|
|
308
|
-
* A short-lived token your app passes to the voice client SDK to register
|
|
309
|
-
*/
|
|
310
|
-
data?: VoiceToken | null;
|
|
311
|
-
/**
|
|
312
|
-
* Error information
|
|
313
|
-
*/
|
|
314
|
-
error?: WebhooksAPI.ErrorDetail | null;
|
|
315
|
-
/**
|
|
316
|
-
* Request and response metadata
|
|
317
|
-
*/
|
|
318
|
-
meta?: WebhooksAPI.APIMeta;
|
|
319
|
-
/**
|
|
320
|
-
* Indicates whether the request was successful
|
|
321
|
-
*/
|
|
322
|
-
success?: boolean;
|
|
323
|
-
}
|
|
324
287
|
/**
|
|
325
288
|
* The verdict of a test question sent to your callback URL
|
|
326
289
|
*/
|
|
@@ -456,27 +419,6 @@ export interface VoiceSecret {
|
|
|
456
419
|
*/
|
|
457
420
|
callback_secret?: string;
|
|
458
421
|
}
|
|
459
|
-
/**
|
|
460
|
-
* A short-lived token your app passes to the voice client SDK to register
|
|
461
|
-
*/
|
|
462
|
-
export interface VoiceToken {
|
|
463
|
-
/**
|
|
464
|
-
* The signed token. Hand it to the client SDK unchanged.
|
|
465
|
-
*/
|
|
466
|
-
token?: string;
|
|
467
|
-
/**
|
|
468
|
-
* When the token expires (UTC)
|
|
469
|
-
*/
|
|
470
|
-
expires_at?: string;
|
|
471
|
-
/**
|
|
472
|
-
* The identity the token was minted for
|
|
473
|
-
*/
|
|
474
|
-
identity?: string;
|
|
475
|
-
/**
|
|
476
|
-
* The phone number this identity is now bound to, in E.164 format
|
|
477
|
-
*/
|
|
478
|
-
number?: string;
|
|
479
|
-
}
|
|
480
422
|
export interface VoiceCreateParams {
|
|
481
423
|
/**
|
|
482
424
|
* Body param: Where Sent asks what to do with each call on this number: an
|
|
@@ -576,40 +518,6 @@ export interface VoiceListParams {
|
|
|
576
518
|
*/
|
|
577
519
|
'x-profile-id'?: string;
|
|
578
520
|
}
|
|
579
|
-
export interface VoiceCreateTokenParams {
|
|
580
|
-
/**
|
|
581
|
-
* Body param: Your identifier for the app user, such as an agent or account id.
|
|
582
|
-
* Letters, digits, hyphens and underscores only, up to 200 characters.
|
|
583
|
-
*/
|
|
584
|
-
identity?: string;
|
|
585
|
-
/**
|
|
586
|
-
* Body param: One of your voice-enabled phone numbers in E.164 format. Calls
|
|
587
|
-
* placed by this identity are routed through that number. Omit to use your default
|
|
588
|
-
* app-call number.
|
|
589
|
-
*/
|
|
590
|
-
number?: string | null;
|
|
591
|
-
/**
|
|
592
|
-
* Body param: Sandbox flag - when true, the operation is simulated without side
|
|
593
|
-
* effects Useful for testing integrations without actual execution
|
|
594
|
-
*/
|
|
595
|
-
sandbox?: boolean;
|
|
596
|
-
/**
|
|
597
|
-
* Body param: Token lifetime in seconds. Defaults to 600 and cannot exceed 3600.
|
|
598
|
-
*/
|
|
599
|
-
ttl?: number | null;
|
|
600
|
-
/**
|
|
601
|
-
* Header param: Unique key to ensure idempotent request processing. Must be 1-255
|
|
602
|
-
* alphanumeric characters, hyphens, or underscores. Responses are cached for 24
|
|
603
|
-
* hours per key per customer.
|
|
604
|
-
*/
|
|
605
|
-
'Idempotency-Key'?: string;
|
|
606
|
-
/**
|
|
607
|
-
* Header param: Profile UUID to scope the request to a child profile. Only
|
|
608
|
-
* organization API keys can use this header. The profile must belong to the
|
|
609
|
-
* calling organization.
|
|
610
|
-
*/
|
|
611
|
-
'x-profile-id'?: string;
|
|
612
|
-
}
|
|
613
521
|
export interface VoiceRotateSecretParams {
|
|
614
522
|
/**
|
|
615
523
|
* Body param: Sandbox flag - when true, the operation is simulated without side
|
|
@@ -649,6 +557,6 @@ export interface VoiceTestParams {
|
|
|
649
557
|
'x-profile-id'?: string;
|
|
650
558
|
}
|
|
651
559
|
export declare namespace Voice {
|
|
652
|
-
export { type APIResponseOfListOfVoiceNumber as APIResponseOfListOfVoiceNumber, type APIResponseOfVoiceCallbackTest as APIResponseOfVoiceCallbackTest, type APIResponseOfVoiceNumber as APIResponseOfVoiceNumber, type APIResponseOfVoiceNumberCreated as APIResponseOfVoiceNumberCreated, type APIResponseOfVoiceSecret as APIResponseOfVoiceSecret, type
|
|
560
|
+
export { type APIResponseOfListOfVoiceNumber as APIResponseOfListOfVoiceNumber, type APIResponseOfVoiceCallbackTest as APIResponseOfVoiceCallbackTest, type APIResponseOfVoiceNumber as APIResponseOfVoiceNumber, type APIResponseOfVoiceNumberCreated as APIResponseOfVoiceNumberCreated, type APIResponseOfVoiceSecret as APIResponseOfVoiceSecret, type VoiceCallbackTest as VoiceCallbackTest, type VoiceCallbackTestErrorInfo as VoiceCallbackTestErrorInfo, type VoiceCallbackTestRequestInfo as VoiceCallbackTestRequestInfo, type VoiceCallbackTestResponseInfo as VoiceCallbackTestResponseInfo, type VoiceNumber as VoiceNumber, type VoiceNumberCreated as VoiceNumberCreated, type VoiceSecret as VoiceSecret, type VoiceCreateParams as VoiceCreateParams, type VoiceRetrieveParams as VoiceRetrieveParams, type VoiceUpdateParams as VoiceUpdateParams, type VoiceListParams as VoiceListParams, type VoiceRotateSecretParams as VoiceRotateSecretParams, type VoiceTestParams as VoiceTestParams, };
|
|
653
561
|
}
|
|
654
562
|
//# sourceMappingURL=voice.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"voice.d.mts","sourceRoot":"","sources":["../../src/resources/channels/voice.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WA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AAM,CAAC,OAAO,WAAW,KAAK,CAAC;IAC7B,OAAO,EACL,KAAK,8BAA8B,IAAI,8BAA8B,EACrE,KAAK,8BAA8B,IAAI,8BAA8B,EACrE,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,+BAA+B,IAAI,+BAA+B,EACvE,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,6BAA6B,IAAI,6BAA6B,EACnE,KAAK,WAAW,IAAI,WAAW,EAC/B,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,WAAW,IAAI,WAAW,EAC/B,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,eAAe,IAAI,eAAe,GACxC,CAAC;CACH"}
|
|
@@ -5,7 +5,7 @@ import { RequestOptions } from "../../internal/request-options.js";
|
|
|
5
5
|
/**
|
|
6
6
|
* The senders you send from, one per channel.
|
|
7
7
|
*
|
|
8
|
-
* **SMS is a list of markets**, each keyed by `(country, number_type)` — a customer can hold `us/10dlc` and `gb/alphanumeric` at once, so a market is addressed by the pair rather than by country alone. **WhatsApp and RCS are single**: a customer has one business account and one agent. **Voice is per number**: each number you hold can carry phone calls on its own (`POST /v3/channels/voice`), each with the callback URL Sent asks what to do with its calls, one of them is the default line for calls placed from your app, and voice tokens are minted
|
|
8
|
+
* **SMS is a list of markets**, each keyed by `(country, number_type)` — a customer can hold `us/10dlc` and `gb/alphanumeric` at once, so a market is addressed by the pair rather than by country alone. **WhatsApp and RCS are single**: a customer has one business account and one agent. **Voice is per number**: each number you hold can carry phone calls on its own (`POST /v3/channels/voice`), each with the callback URL Sent asks what to do with its calls, one of them is the default line for calls placed from your app, and voice tokens are minted with `POST /v3/voice/tokens`. Read your voice numbers with `GET /v3/channels/voice` and change one with `PATCH /v3/channels/voice/{number}`.
|
|
9
9
|
*
|
|
10
10
|
* ## Compliance lives on the market
|
|
11
11
|
*
|
|
@@ -76,19 +76,23 @@ export declare class Voice extends APIResource {
|
|
|
76
76
|
*
|
|
77
77
|
* ## What it changes
|
|
78
78
|
*
|
|
79
|
-
* | Body | Effect
|
|
80
|
-
* | --------------------------------------------- |
|
|
81
|
-
* | `"status": "ACTIVE"` | turns calls on again for a number you turned off; the callback URL and the secret it had are kept
|
|
82
|
-
* | `"status": "INACTIVE"` | turns calls off; the callback URL and the secret stay on the number
|
|
83
|
-
* | `"default_for_app_calls": true` | makes this the line app-originated calls are placed from when a voice token names no number
|
|
84
|
-
* | `"callback_url": "https://example.com/voice"` | replaces where Sent asks what to do with each call on the number; the signing secret
|
|
85
|
-
* | key omitted | left exactly as it is
|
|
79
|
+
* | Body | Effect |
|
|
80
|
+
* | --------------------------------------------- | ------------------------------------------------------------------------------------------------------------ |
|
|
81
|
+
* | `"status": "ACTIVE"` | turns calls on again for a number you turned off; the callback URL and the secret it had are kept |
|
|
82
|
+
* | `"status": "INACTIVE"` | turns calls off; the callback URL and the secret stay on the number |
|
|
83
|
+
* | `"default_for_app_calls": true` | makes this the line app-originated calls are placed from when a voice token names no number |
|
|
84
|
+
* | `"callback_url": "https://example.com/voice"` | replaces where Sent asks what to do with each call on the number; the signing secret and the status are kept |
|
|
85
|
+
* | key omitted | left exactly as it is |
|
|
86
86
|
*
|
|
87
87
|
* `status` is matched ignoring case. Any combination is accepted:
|
|
88
88
|
* `status: "ACTIVE"` with `default_for_app_calls: true` turns a number on as the
|
|
89
89
|
* new default, and a `callback_url` sent with either status is written too. A body
|
|
90
90
|
* that names none of the three is refused.
|
|
91
91
|
*
|
|
92
|
+
* A number can be on without a callback URL: calls placed from your app then
|
|
93
|
+
* connect straight to the number or user they dial, and calls to the number are
|
|
94
|
+
* declined.
|
|
95
|
+
*
|
|
92
96
|
* ## What it will refuse
|
|
93
97
|
*
|
|
94
98
|
* **`default_for_app_calls: false` is `400`.** An account with active voice
|
|
@@ -102,11 +106,6 @@ export declare class Voice extends APIResource {
|
|
|
102
106
|
* **Making an inactive number the default is `400`.** Send `status: "ACTIVE"` in
|
|
103
107
|
* the same call.
|
|
104
108
|
*
|
|
105
|
-
* A number added without a `callback_url` is `INACTIVE` for that one reason, so
|
|
106
|
-
* sending it a `callback_url` turns it on by itself, and it becomes your default
|
|
107
|
-
* line if you have no other active voice number. A number you turned off while it
|
|
108
|
-
* had a URL stays off.
|
|
109
|
-
*
|
|
110
109
|
* **A number you never turned voice on for is `404`.** Add it with
|
|
111
110
|
* `POST /v3/channels/voice`.
|
|
112
111
|
*
|
|
@@ -142,21 +141,6 @@ export declare class Voice extends APIResource {
|
|
|
142
141
|
* ```
|
|
143
142
|
*/
|
|
144
143
|
list(params?: VoiceListParams | null | undefined, options?: RequestOptions): APIPromise<APIResponseOfListOfVoiceNumber>;
|
|
145
|
-
/**
|
|
146
|
-
* Mints a short-lived token for one of your app users. Call this from your backend
|
|
147
|
-
* and return the token to your app, which passes it to the voice client SDK to
|
|
148
|
-
* register. The identity is bound to the given number, or to your default app-call
|
|
149
|
-
* number when omitted, and calls placed by that identity are routed through the
|
|
150
|
-
* bound number. Minting again re-binds the identity, so an identity can move
|
|
151
|
-
* between numbers.
|
|
152
|
-
*
|
|
153
|
-
* @example
|
|
154
|
-
* ```ts
|
|
155
|
-
* const apiResponseOfVoiceToken =
|
|
156
|
-
* await client.channels.voice.createToken();
|
|
157
|
-
* ```
|
|
158
|
-
*/
|
|
159
|
-
createToken(params: VoiceCreateTokenParams, options?: RequestOptions): APIPromise<APIResponseOfVoiceToken>;
|
|
160
144
|
/**
|
|
161
145
|
* Generates a new signing secret for the questions Sent sends to this number's
|
|
162
146
|
* callback URL and returns it. The previous secret stops signing immediately, so
|
|
@@ -300,27 +284,6 @@ export interface APIResponseOfVoiceSecret {
|
|
|
300
284
|
*/
|
|
301
285
|
success?: boolean;
|
|
302
286
|
}
|
|
303
|
-
/**
|
|
304
|
-
* Standard API response envelope for all v3 endpoints
|
|
305
|
-
*/
|
|
306
|
-
export interface APIResponseOfVoiceToken {
|
|
307
|
-
/**
|
|
308
|
-
* A short-lived token your app passes to the voice client SDK to register
|
|
309
|
-
*/
|
|
310
|
-
data?: VoiceToken | null;
|
|
311
|
-
/**
|
|
312
|
-
* Error information
|
|
313
|
-
*/
|
|
314
|
-
error?: WebhooksAPI.ErrorDetail | null;
|
|
315
|
-
/**
|
|
316
|
-
* Request and response metadata
|
|
317
|
-
*/
|
|
318
|
-
meta?: WebhooksAPI.APIMeta;
|
|
319
|
-
/**
|
|
320
|
-
* Indicates whether the request was successful
|
|
321
|
-
*/
|
|
322
|
-
success?: boolean;
|
|
323
|
-
}
|
|
324
287
|
/**
|
|
325
288
|
* The verdict of a test question sent to your callback URL
|
|
326
289
|
*/
|
|
@@ -456,27 +419,6 @@ export interface VoiceSecret {
|
|
|
456
419
|
*/
|
|
457
420
|
callback_secret?: string;
|
|
458
421
|
}
|
|
459
|
-
/**
|
|
460
|
-
* A short-lived token your app passes to the voice client SDK to register
|
|
461
|
-
*/
|
|
462
|
-
export interface VoiceToken {
|
|
463
|
-
/**
|
|
464
|
-
* The signed token. Hand it to the client SDK unchanged.
|
|
465
|
-
*/
|
|
466
|
-
token?: string;
|
|
467
|
-
/**
|
|
468
|
-
* When the token expires (UTC)
|
|
469
|
-
*/
|
|
470
|
-
expires_at?: string;
|
|
471
|
-
/**
|
|
472
|
-
* The identity the token was minted for
|
|
473
|
-
*/
|
|
474
|
-
identity?: string;
|
|
475
|
-
/**
|
|
476
|
-
* The phone number this identity is now bound to, in E.164 format
|
|
477
|
-
*/
|
|
478
|
-
number?: string;
|
|
479
|
-
}
|
|
480
422
|
export interface VoiceCreateParams {
|
|
481
423
|
/**
|
|
482
424
|
* Body param: Where Sent asks what to do with each call on this number: an
|
|
@@ -576,40 +518,6 @@ export interface VoiceListParams {
|
|
|
576
518
|
*/
|
|
577
519
|
'x-profile-id'?: string;
|
|
578
520
|
}
|
|
579
|
-
export interface VoiceCreateTokenParams {
|
|
580
|
-
/**
|
|
581
|
-
* Body param: Your identifier for the app user, such as an agent or account id.
|
|
582
|
-
* Letters, digits, hyphens and underscores only, up to 200 characters.
|
|
583
|
-
*/
|
|
584
|
-
identity?: string;
|
|
585
|
-
/**
|
|
586
|
-
* Body param: One of your voice-enabled phone numbers in E.164 format. Calls
|
|
587
|
-
* placed by this identity are routed through that number. Omit to use your default
|
|
588
|
-
* app-call number.
|
|
589
|
-
*/
|
|
590
|
-
number?: string | null;
|
|
591
|
-
/**
|
|
592
|
-
* Body param: Sandbox flag - when true, the operation is simulated without side
|
|
593
|
-
* effects Useful for testing integrations without actual execution
|
|
594
|
-
*/
|
|
595
|
-
sandbox?: boolean;
|
|
596
|
-
/**
|
|
597
|
-
* Body param: Token lifetime in seconds. Defaults to 600 and cannot exceed 3600.
|
|
598
|
-
*/
|
|
599
|
-
ttl?: number | null;
|
|
600
|
-
/**
|
|
601
|
-
* Header param: Unique key to ensure idempotent request processing. Must be 1-255
|
|
602
|
-
* alphanumeric characters, hyphens, or underscores. Responses are cached for 24
|
|
603
|
-
* hours per key per customer.
|
|
604
|
-
*/
|
|
605
|
-
'Idempotency-Key'?: string;
|
|
606
|
-
/**
|
|
607
|
-
* Header param: Profile UUID to scope the request to a child profile. Only
|
|
608
|
-
* organization API keys can use this header. The profile must belong to the
|
|
609
|
-
* calling organization.
|
|
610
|
-
*/
|
|
611
|
-
'x-profile-id'?: string;
|
|
612
|
-
}
|
|
613
521
|
export interface VoiceRotateSecretParams {
|
|
614
522
|
/**
|
|
615
523
|
* Body param: Sandbox flag - when true, the operation is simulated without side
|
|
@@ -649,6 +557,6 @@ export interface VoiceTestParams {
|
|
|
649
557
|
'x-profile-id'?: string;
|
|
650
558
|
}
|
|
651
559
|
export declare namespace Voice {
|
|
652
|
-
export { type APIResponseOfListOfVoiceNumber as APIResponseOfListOfVoiceNumber, type APIResponseOfVoiceCallbackTest as APIResponseOfVoiceCallbackTest, type APIResponseOfVoiceNumber as APIResponseOfVoiceNumber, type APIResponseOfVoiceNumberCreated as APIResponseOfVoiceNumberCreated, type APIResponseOfVoiceSecret as APIResponseOfVoiceSecret, type
|
|
560
|
+
export { type APIResponseOfListOfVoiceNumber as APIResponseOfListOfVoiceNumber, type APIResponseOfVoiceCallbackTest as APIResponseOfVoiceCallbackTest, type APIResponseOfVoiceNumber as APIResponseOfVoiceNumber, type APIResponseOfVoiceNumberCreated as APIResponseOfVoiceNumberCreated, type APIResponseOfVoiceSecret as APIResponseOfVoiceSecret, type VoiceCallbackTest as VoiceCallbackTest, type VoiceCallbackTestErrorInfo as VoiceCallbackTestErrorInfo, type VoiceCallbackTestRequestInfo as VoiceCallbackTestRequestInfo, type VoiceCallbackTestResponseInfo as VoiceCallbackTestResponseInfo, type VoiceNumber as VoiceNumber, type VoiceNumberCreated as VoiceNumberCreated, type VoiceSecret as VoiceSecret, type VoiceCreateParams as VoiceCreateParams, type VoiceRetrieveParams as VoiceRetrieveParams, type VoiceUpdateParams as VoiceUpdateParams, type VoiceListParams as VoiceListParams, type VoiceRotateSecretParams as VoiceRotateSecretParams, type VoiceTestParams as VoiceTestParams, };
|
|
653
561
|
}
|
|
654
562
|
//# sourceMappingURL=voice.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"voice.d.ts","sourceRoot":"","sources":["../../src/resources/channels/voice.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,KAAK,WAAW,uBAAoB;AAC3C,OAAO,EAAE,UAAU,EAAE,kCAA+B;AAEpD,OAAO,EAAE,cAAc,EAAE,0CAAuC;AAGhE;;;;;;;;;;;;GAYG;AACH,qBAAa,KAAM,SAAQ,WAAW;IACpC;;;;;;;;;;;;;;;;;;;;;;;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,EACzD,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,6BAA6B,IAAI,6BAA6B,EACnE,KAAK,WAAW,IAAI,WAAW,EAC/B,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,WAAW,IAAI,WAAW,EAC/B,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,eAAe,IAAI,eAAe,GACxC,CAAC;CACH"}
|
|
@@ -8,7 +8,7 @@ const path_1 = require("../../internal/utils/path.js");
|
|
|
8
8
|
/**
|
|
9
9
|
* The senders you send from, one per channel.
|
|
10
10
|
*
|
|
11
|
-
* **SMS is a list of markets**, each keyed by `(country, number_type)` — a customer can hold `us/10dlc` and `gb/alphanumeric` at once, so a market is addressed by the pair rather than by country alone. **WhatsApp and RCS are single**: a customer has one business account and one agent. **Voice is per number**: each number you hold can carry phone calls on its own (`POST /v3/channels/voice`), each with the callback URL Sent asks what to do with its calls, one of them is the default line for calls placed from your app, and voice tokens are minted
|
|
11
|
+
* **SMS is a list of markets**, each keyed by `(country, number_type)` — a customer can hold `us/10dlc` and `gb/alphanumeric` at once, so a market is addressed by the pair rather than by country alone. **WhatsApp and RCS are single**: a customer has one business account and one agent. **Voice is per number**: each number you hold can carry phone calls on its own (`POST /v3/channels/voice`), each with the callback URL Sent asks what to do with its calls, one of them is the default line for calls placed from your app, and voice tokens are minted with `POST /v3/voice/tokens`. Read your voice numbers with `GET /v3/channels/voice` and change one with `PATCH /v3/channels/voice/{number}`.
|
|
12
12
|
*
|
|
13
13
|
* ## Compliance lives on the market
|
|
14
14
|
*
|
|
@@ -101,19 +101,23 @@ class Voice extends resource_1.APIResource {
|
|
|
101
101
|
*
|
|
102
102
|
* ## What it changes
|
|
103
103
|
*
|
|
104
|
-
* | Body | Effect
|
|
105
|
-
* | --------------------------------------------- |
|
|
106
|
-
* | `"status": "ACTIVE"` | turns calls on again for a number you turned off; the callback URL and the secret it had are kept
|
|
107
|
-
* | `"status": "INACTIVE"` | turns calls off; the callback URL and the secret stay on the number
|
|
108
|
-
* | `"default_for_app_calls": true` | makes this the line app-originated calls are placed from when a voice token names no number
|
|
109
|
-
* | `"callback_url": "https://example.com/voice"` | replaces where Sent asks what to do with each call on the number; the signing secret
|
|
110
|
-
* | key omitted | left exactly as it is
|
|
104
|
+
* | Body | Effect |
|
|
105
|
+
* | --------------------------------------------- | ------------------------------------------------------------------------------------------------------------ |
|
|
106
|
+
* | `"status": "ACTIVE"` | turns calls on again for a number you turned off; the callback URL and the secret it had are kept |
|
|
107
|
+
* | `"status": "INACTIVE"` | turns calls off; the callback URL and the secret stay on the number |
|
|
108
|
+
* | `"default_for_app_calls": true` | makes this the line app-originated calls are placed from when a voice token names no number |
|
|
109
|
+
* | `"callback_url": "https://example.com/voice"` | replaces where Sent asks what to do with each call on the number; the signing secret and the status are kept |
|
|
110
|
+
* | key omitted | left exactly as it is |
|
|
111
111
|
*
|
|
112
112
|
* `status` is matched ignoring case. Any combination is accepted:
|
|
113
113
|
* `status: "ACTIVE"` with `default_for_app_calls: true` turns a number on as the
|
|
114
114
|
* new default, and a `callback_url` sent with either status is written too. A body
|
|
115
115
|
* that names none of the three is refused.
|
|
116
116
|
*
|
|
117
|
+
* A number can be on without a callback URL: calls placed from your app then
|
|
118
|
+
* connect straight to the number or user they dial, and calls to the number are
|
|
119
|
+
* declined.
|
|
120
|
+
*
|
|
117
121
|
* ## What it will refuse
|
|
118
122
|
*
|
|
119
123
|
* **`default_for_app_calls: false` is `400`.** An account with active voice
|
|
@@ -127,11 +131,6 @@ class Voice extends resource_1.APIResource {
|
|
|
127
131
|
* **Making an inactive number the default is `400`.** Send `status: "ACTIVE"` in
|
|
128
132
|
* the same call.
|
|
129
133
|
*
|
|
130
|
-
* A number added without a `callback_url` is `INACTIVE` for that one reason, so
|
|
131
|
-
* sending it a `callback_url` turns it on by itself, and it becomes your default
|
|
132
|
-
* line if you have no other active voice number. A number you turned off while it
|
|
133
|
-
* had a URL stays off.
|
|
134
|
-
*
|
|
135
134
|
* **A number you never turned voice on for is `404`.** Add it with
|
|
136
135
|
* `POST /v3/channels/voice`.
|
|
137
136
|
*
|
|
@@ -189,34 +188,6 @@ class Voice extends resource_1.APIResource {
|
|
|
189
188
|
]),
|
|
190
189
|
});
|
|
191
190
|
}
|
|
192
|
-
/**
|
|
193
|
-
* Mints a short-lived token for one of your app users. Call this from your backend
|
|
194
|
-
* and return the token to your app, which passes it to the voice client SDK to
|
|
195
|
-
* register. The identity is bound to the given number, or to your default app-call
|
|
196
|
-
* number when omitted, and calls placed by that identity are routed through the
|
|
197
|
-
* bound number. Minting again re-binds the identity, so an identity can move
|
|
198
|
-
* between numbers.
|
|
199
|
-
*
|
|
200
|
-
* @example
|
|
201
|
-
* ```ts
|
|
202
|
-
* const apiResponseOfVoiceToken =
|
|
203
|
-
* await client.channels.voice.createToken();
|
|
204
|
-
* ```
|
|
205
|
-
*/
|
|
206
|
-
createToken(params, options) {
|
|
207
|
-
const { 'Idempotency-Key': idempotencyKey, 'x-profile-id': xProfileID, ...body } = params;
|
|
208
|
-
return this._client.post('/v3/channels/voice/tokens', {
|
|
209
|
-
body,
|
|
210
|
-
...options,
|
|
211
|
-
headers: (0, headers_1.buildHeaders)([
|
|
212
|
-
{
|
|
213
|
-
...(idempotencyKey != null ? { 'Idempotency-Key': idempotencyKey } : undefined),
|
|
214
|
-
...(xProfileID != null ? { 'x-profile-id': xProfileID } : undefined),
|
|
215
|
-
},
|
|
216
|
-
options?.headers,
|
|
217
|
-
]),
|
|
218
|
-
});
|
|
219
|
-
}
|
|
220
191
|
/**
|
|
221
192
|
* Generates a new signing secret for the questions Sent sends to this number's
|
|
222
193
|
* callback URL and returns it. The previous secret stops signing immediately, so
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"voice.js","sourceRoot":"","sources":["../../src/resources/channels/voice.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAGlD,uDAAsD;AAEtD,uDAAiD;AAEjD;;;;;;;;;;;;GAYG;AACH,MAAa,KAAM,SAAQ,sBAAW;IACpC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAkCG;IACH,MAAM,CAAC,MAAyB,EAAE,OAAwB;QACxD,MAAM,EAAE,iBAAiB,EAAE,cAAc,EAAE,cAAc,EAAE,UAAU,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QAC1F,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,oBAAoB,EAAE;YAC7C,IAAI;YACJ,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC;gBACpB;oBACE,GAAG,CAAC,cAAc,IAAI,IAAI,CAAC,CAAC,CAAC,EAAE,iBAAiB,EAAE,cAAc,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC;oBAC/E,GAAG,CAAC,UAAU,IAAI,IAAI,CAAC,CAAC,CAAC,EAAE,cAAc,EAAE,UAAU,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC;iBACrE;gBACD,OAAO,EAAE,OAAO;aACjB,CAAC;SACH,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;;;;;;;OAgBG;IACH,QAAQ,CACN,MAAc,EACd,SAAiD,EAAE,EACnD,OAAwB;QAExB,MAAM,EAAE,cAAc,EAAE,UAAU,EAAE,GAAG,MAAM,IAAI,EAAE,CAAC;QACpD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,sBAAsB,MAAM,EAAE,EAAE;YAC1D,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC;gBACpB,EAAE,GAAG,CAAC,UAAU,IAAI,IAAI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