retell-sdk 5.12.0 → 5.14.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 +31 -0
- package/client.d.mts +3 -0
- package/client.d.mts.map +1 -1
- package/client.d.ts +3 -0
- package/client.d.ts.map +1 -1
- package/client.js +3 -0
- package/client.js.map +1 -1
- package/client.mjs +3 -0
- package/client.mjs.map +1 -1
- package/internal/utils/env.js +2 -2
- package/internal/utils/env.js.map +1 -1
- package/internal/utils/env.mjs +2 -2
- package/internal/utils/env.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/agent.d.mts +22 -45
- package/resources/agent.d.mts.map +1 -1
- package/resources/agent.d.ts +22 -45
- package/resources/agent.d.ts.map +1 -1
- package/resources/batch-call.d.mts +8 -17
- package/resources/batch-call.d.mts.map +1 -1
- package/resources/batch-call.d.ts +8 -17
- package/resources/batch-call.d.ts.map +1 -1
- package/resources/call.d.mts +55 -54
- package/resources/call.d.mts.map +1 -1
- package/resources/call.d.ts +55 -54
- package/resources/call.d.ts.map +1 -1
- package/resources/chat-agent.d.mts +10 -6
- package/resources/chat-agent.d.mts.map +1 -1
- package/resources/chat-agent.d.ts +10 -6
- package/resources/chat-agent.d.ts.map +1 -1
- package/resources/chat.d.mts +90 -76
- package/resources/chat.d.mts.map +1 -1
- package/resources/chat.d.ts +90 -76
- package/resources/chat.d.ts.map +1 -1
- package/resources/conversation-flow-component.d.mts +207 -48
- package/resources/conversation-flow-component.d.mts.map +1 -1
- package/resources/conversation-flow-component.d.ts +207 -48
- package/resources/conversation-flow-component.d.ts.map +1 -1
- package/resources/conversation-flow.d.mts +417 -99
- package/resources/conversation-flow.d.mts.map +1 -1
- package/resources/conversation-flow.d.ts +417 -99
- package/resources/conversation-flow.d.ts.map +1 -1
- package/resources/index.d.mts +1 -0
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +1 -0
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +3 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +1 -0
- package/resources/index.mjs.map +1 -1
- package/resources/llm.d.mts +153 -9
- package/resources/llm.d.mts.map +1 -1
- package/resources/llm.d.ts +153 -9
- package/resources/llm.d.ts.map +1 -1
- package/resources/phone-number.d.mts +22 -125
- package/resources/phone-number.d.mts.map +1 -1
- package/resources/phone-number.d.ts +22 -125
- package/resources/phone-number.d.ts.map +1 -1
- package/resources/phone-number.js +14 -2
- package/resources/phone-number.js.map +1 -1
- package/resources/phone-number.mjs +14 -2
- package/resources/phone-number.mjs.map +1 -1
- package/resources/playground.d.mts +395 -0
- package/resources/playground.d.mts.map +1 -0
- package/resources/playground.d.ts +395 -0
- package/resources/playground.d.ts.map +1 -0
- package/resources/playground.js +24 -0
- package/resources/playground.js.map +1 -0
- package/resources/playground.mjs +20 -0
- package/resources/playground.mjs.map +1 -0
- package/resources/tests.d.mts +4 -8
- package/resources/tests.d.mts.map +1 -1
- package/resources/tests.d.ts +4 -8
- package/resources/tests.d.ts.map +1 -1
- package/src/client.ts +9 -0
- package/src/internal/utils/env.ts +2 -2
- package/src/resources/agent.ts +23 -42
- package/src/resources/batch-call.ts +9 -15
- package/src/resources/call.ts +64 -47
- package/src/resources/chat-agent.ts +11 -3
- package/src/resources/chat.ts +106 -90
- package/src/resources/conversation-flow-component.ts +300 -48
- package/src/resources/conversation-flow.ts +606 -99
- package/src/resources/index.ts +1 -0
- package/src/resources/llm.ts +201 -6
- package/src/resources/phone-number.ts +22 -141
- package/src/resources/playground.ts +500 -0
- package/src/resources/tests.ts +7 -9
- 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
|
@@ -30,9 +30,21 @@ export declare class PhoneNumber extends APIResource {
|
|
|
30
30
|
* const phoneNumberResponse = await client.phoneNumber.update(
|
|
31
31
|
* '+14157774444',
|
|
32
32
|
* {
|
|
33
|
-
*
|
|
33
|
+
* inbound_agents: [
|
|
34
|
+
* {
|
|
35
|
+
* agent_id: 'oBeDLoLOeuAbiuaMFXRtDOLriTJ5tSxD',
|
|
36
|
+
* agent_version: 1,
|
|
37
|
+
* weight: 1,
|
|
38
|
+
* },
|
|
39
|
+
* ],
|
|
34
40
|
* nickname: 'Frontdesk Number',
|
|
35
|
-
*
|
|
41
|
+
* outbound_agents: [
|
|
42
|
+
* {
|
|
43
|
+
* agent_id: 'oBeDLoLOeuAbiuaMFXRtDOLriTJ5tSxD',
|
|
44
|
+
* agent_version: 1,
|
|
45
|
+
* weight: 1,
|
|
46
|
+
* },
|
|
47
|
+
* ],
|
|
36
48
|
* },
|
|
37
49
|
* );
|
|
38
50
|
* ```
|
|
@@ -109,24 +121,10 @@ export interface PhoneNumberResponse {
|
|
|
109
121
|
* its own fallback configured (prevents nested forwarding).
|
|
110
122
|
*/
|
|
111
123
|
fallback_number?: string | null;
|
|
112
|
-
/**
|
|
113
|
-
* @deprecated Unique id of agent to bind to the number. The number will
|
|
114
|
-
* automatically use the agent when receiving inbound calls. If null, this number
|
|
115
|
-
* would not accept inbound call. Deprecated. See
|
|
116
|
-
* https://docs.retellai.com/deprecation-notice/2026/03-31_phone_number_agent_fields
|
|
117
|
-
*/
|
|
118
|
-
inbound_agent_id?: string | null;
|
|
119
|
-
/**
|
|
120
|
-
* @deprecated Version of the inbound agent to bind to the number. If not provided,
|
|
121
|
-
* will default to latest version. Deprecated. See
|
|
122
|
-
* https://docs.retellai.com/deprecation-notice/2026/03-31_phone_number_agent_fields
|
|
123
|
-
*/
|
|
124
|
-
inbound_agent_version?: number | null;
|
|
125
124
|
/**
|
|
126
125
|
* Inbound agents to bind to the number with weights. If set and non-empty, one
|
|
127
126
|
* agent will be picked randomly for each inbound call, with probability
|
|
128
|
-
* proportional to the weight. Total weights must add up to 1.
|
|
129
|
-
* fallback to inbound_agent_id.
|
|
127
|
+
* proportional to the weight. Total weights must add up to 1.
|
|
130
128
|
*/
|
|
131
129
|
inbound_agents?: Array<PhoneNumberResponse.InboundAgent> | null;
|
|
132
130
|
/**
|
|
@@ -150,25 +148,10 @@ export interface PhoneNumberResponse {
|
|
|
150
148
|
* Nickname of the number. This is for your reference only.
|
|
151
149
|
*/
|
|
152
150
|
nickname?: string | null;
|
|
153
|
-
/**
|
|
154
|
-
* @deprecated Unique id of agent to bind to the number. The number will
|
|
155
|
-
* automatically use the agent when conducting outbound calls. If null, this number
|
|
156
|
-
* would not be able to initiate outbound call without agent id override.
|
|
157
|
-
* Deprecated. See
|
|
158
|
-
* https://docs.retellai.com/deprecation-notice/2026/03-31_phone_number_agent_fields
|
|
159
|
-
*/
|
|
160
|
-
outbound_agent_id?: string | null;
|
|
161
|
-
/**
|
|
162
|
-
* @deprecated Version of the outbound agent to bind to the number. If not
|
|
163
|
-
* provided, will default to latest version. Deprecated. See
|
|
164
|
-
* https://docs.retellai.com/deprecation-notice/2026/03-31_phone_number_agent_fields
|
|
165
|
-
*/
|
|
166
|
-
outbound_agent_version?: number | null;
|
|
167
151
|
/**
|
|
168
152
|
* Outbound agents to bind to the number with weights. If set and non-empty, one
|
|
169
153
|
* agent will be picked randomly for each outbound call, with probability
|
|
170
|
-
* proportional to the weight. Total weights must add up to 1.
|
|
171
|
-
* fallback to outbound_agent_id.
|
|
154
|
+
* proportional to the weight. Total weights must add up to 1.
|
|
172
155
|
*/
|
|
173
156
|
outbound_agents?: Array<PhoneNumberResponse.OutboundAgent> | null;
|
|
174
157
|
/**
|
|
@@ -266,24 +249,10 @@ export interface PhoneNumberCreateParams {
|
|
|
266
249
|
* its own fallback configured (prevents nested forwarding).
|
|
267
250
|
*/
|
|
268
251
|
fallback_number?: string | null;
|
|
269
|
-
/**
|
|
270
|
-
* @deprecated Unique id of agent to bind to the number. The number will
|
|
271
|
-
* automatically use the agent when receiving inbound calls. If null, this number
|
|
272
|
-
* would not accept inbound call. Deprecated. See
|
|
273
|
-
* https://docs.retellai.com/deprecation-notice/2026/03-31_phone_number_agent_fields
|
|
274
|
-
*/
|
|
275
|
-
inbound_agent_id?: string | null;
|
|
276
|
-
/**
|
|
277
|
-
* @deprecated Version of the inbound agent to bind to the number. If not provided,
|
|
278
|
-
* will default to latest version. Deprecated. See
|
|
279
|
-
* https://docs.retellai.com/deprecation-notice/2026/03-31_phone_number_agent_fields
|
|
280
|
-
*/
|
|
281
|
-
inbound_agent_version?: number | null;
|
|
282
252
|
/**
|
|
283
253
|
* Inbound agents to bind to the number with weights. If set and non-empty, one
|
|
284
254
|
* agent will be picked randomly for each inbound call, with probability
|
|
285
|
-
* proportional to the weight. Total weights must add up to 1.
|
|
286
|
-
* fallback to inbound_agent_id.
|
|
255
|
+
* proportional to the weight. Total weights must add up to 1.
|
|
287
256
|
*/
|
|
288
257
|
inbound_agents?: Array<PhoneNumberCreateParams.InboundAgent> | null;
|
|
289
258
|
/**
|
|
@@ -299,25 +268,10 @@ export interface PhoneNumberCreateParams {
|
|
|
299
268
|
* The provider to purchase the phone number from. Default to twilio.
|
|
300
269
|
*/
|
|
301
270
|
number_provider?: 'twilio' | 'telnyx';
|
|
302
|
-
/**
|
|
303
|
-
* @deprecated Unique id of agent to bind to the number. The number will
|
|
304
|
-
* automatically use the agent when conducting outbound calls. If null, this number
|
|
305
|
-
* would not be able to initiate outbound call without agent id override.
|
|
306
|
-
* Deprecated. See
|
|
307
|
-
* https://docs.retellai.com/deprecation-notice/2026/03-31_phone_number_agent_fields
|
|
308
|
-
*/
|
|
309
|
-
outbound_agent_id?: string | null;
|
|
310
|
-
/**
|
|
311
|
-
* @deprecated Version of the outbound agent to bind to the number. If not
|
|
312
|
-
* provided, will default to latest version. Deprecated. See
|
|
313
|
-
* https://docs.retellai.com/deprecation-notice/2026/03-31_phone_number_agent_fields
|
|
314
|
-
*/
|
|
315
|
-
outbound_agent_version?: number | null;
|
|
316
271
|
/**
|
|
317
272
|
* Outbound agents to bind to the number with weights. If set and non-empty, one
|
|
318
273
|
* agent will be picked randomly for each outbound call, with probability
|
|
319
|
-
* proportional to the weight. Total weights must add up to 1.
|
|
320
|
-
* fallback to outbound_agent_id.
|
|
274
|
+
* proportional to the weight. Total weights must add up to 1.
|
|
321
275
|
*/
|
|
322
276
|
outbound_agents?: Array<PhoneNumberCreateParams.OutboundAgent> | null;
|
|
323
277
|
/**
|
|
@@ -384,24 +338,10 @@ export interface PhoneNumberUpdateParams {
|
|
|
384
338
|
* forwarding).
|
|
385
339
|
*/
|
|
386
340
|
fallback_number?: string | null;
|
|
387
|
-
/**
|
|
388
|
-
* @deprecated Unique id of agent to bind to the number. The number will
|
|
389
|
-
* automatically use the agent when receiving inbound calls. If set to null, this
|
|
390
|
-
* number would not accept inbound call. Deprecated. See
|
|
391
|
-
* https://docs.retellai.com/deprecation-notice/2026/03-31_phone_number_agent_fields
|
|
392
|
-
*/
|
|
393
|
-
inbound_agent_id?: string | null;
|
|
394
|
-
/**
|
|
395
|
-
* @deprecated Version of the inbound agent to bind to the number. If not provided,
|
|
396
|
-
* will default to latest version. Deprecated. See
|
|
397
|
-
* https://docs.retellai.com/deprecation-notice/2026/03-31_phone_number_agent_fields
|
|
398
|
-
*/
|
|
399
|
-
inbound_agent_version?: number | null;
|
|
400
341
|
/**
|
|
401
342
|
* Inbound agents to bind to the number with weights. If set and non-empty, one
|
|
402
343
|
* agent will be picked randomly for each inbound call, with probability
|
|
403
|
-
* proportional to the weight. Total weights must add up to 1.
|
|
404
|
-
* fallback to inbound_agent_id.
|
|
344
|
+
* proportional to the weight. Total weights must add up to 1.
|
|
405
345
|
*/
|
|
406
346
|
inbound_agents?: Array<PhoneNumberUpdateParams.InboundAgent> | null;
|
|
407
347
|
/**
|
|
@@ -425,24 +365,10 @@ export interface PhoneNumberUpdateParams {
|
|
|
425
365
|
* Nickname of the number. This is for your reference only.
|
|
426
366
|
*/
|
|
427
367
|
nickname?: string | null;
|
|
428
|
-
/**
|
|
429
|
-
* @deprecated Unique id of agent to bind to the number. The number will
|
|
430
|
-
* automatically use the agent when conducting outbound calls. If set to null, this
|
|
431
|
-
* number would not be able to initiate outbound call without agent id override.
|
|
432
|
-
* Deprecated. See
|
|
433
|
-
* https://docs.retellai.com/deprecation-notice/2026/03-31_phone_number_agent_fields
|
|
434
|
-
*/
|
|
435
|
-
outbound_agent_id?: string | null;
|
|
436
|
-
/**
|
|
437
|
-
* Version of the outbound agent to bind to the number. If not provided, will
|
|
438
|
-
* default to latest version.
|
|
439
|
-
*/
|
|
440
|
-
outbound_agent_version?: number | null;
|
|
441
368
|
/**
|
|
442
369
|
* Outbound agents to bind to the number with weights. If set and non-empty, one
|
|
443
370
|
* agent will be picked randomly for each outbound call, with probability
|
|
444
|
-
* proportional to the weight. Total weights must add up to 1.
|
|
445
|
-
* fallback to outbound_agent_id.
|
|
371
|
+
* proportional to the weight. Total weights must add up to 1.
|
|
446
372
|
*/
|
|
447
373
|
outbound_agents?: Array<PhoneNumberUpdateParams.OutboundAgent> | null;
|
|
448
374
|
/**
|
|
@@ -531,24 +457,10 @@ export interface PhoneNumberImportParams {
|
|
|
531
457
|
* invalid.
|
|
532
458
|
*/
|
|
533
459
|
ignore_e164_validation?: boolean;
|
|
534
|
-
/**
|
|
535
|
-
* @deprecated Unique id of agent to bind to the number. The number will
|
|
536
|
-
* automatically use the agent when receiving inbound calls. If null, this number
|
|
537
|
-
* would not accept inbound call. Deprecated. See
|
|
538
|
-
* https://docs.retellai.com/deprecation-notice/2026/03-31_phone_number_agent_fields
|
|
539
|
-
*/
|
|
540
|
-
inbound_agent_id?: string | null;
|
|
541
|
-
/**
|
|
542
|
-
* @deprecated Version of the inbound agent to bind to the number. If not provided,
|
|
543
|
-
* will default to latest version. Deprecated. See
|
|
544
|
-
* https://docs.retellai.com/deprecation-notice/2026/03-31_phone_number_agent_fields
|
|
545
|
-
*/
|
|
546
|
-
inbound_agent_version?: number | null;
|
|
547
460
|
/**
|
|
548
461
|
* Inbound agents to bind to the number with weights. If set and non-empty, one
|
|
549
462
|
* agent will be picked randomly for each inbound call, with probability
|
|
550
|
-
* proportional to the weight. Total weights must add up to 1.
|
|
551
|
-
* fallback to inbound_agent_id.
|
|
463
|
+
* proportional to the weight. Total weights must add up to 1.
|
|
552
464
|
*/
|
|
553
465
|
inbound_agents?: Array<PhoneNumberImportParams.InboundAgent> | null;
|
|
554
466
|
/**
|
|
@@ -560,25 +472,10 @@ export interface PhoneNumberImportParams {
|
|
|
560
472
|
* Nickname of the number. This is for your reference only.
|
|
561
473
|
*/
|
|
562
474
|
nickname?: string;
|
|
563
|
-
/**
|
|
564
|
-
* @deprecated Unique id of agent to bind to the number. The number will
|
|
565
|
-
* automatically use the agent when conducting outbound calls. If null, this number
|
|
566
|
-
* would not be able to initiate outbound call without agent id override.
|
|
567
|
-
* Deprecated. See
|
|
568
|
-
* https://docs.retellai.com/deprecation-notice/2026/03-31_phone_number_agent_fields
|
|
569
|
-
*/
|
|
570
|
-
outbound_agent_id?: string | null;
|
|
571
|
-
/**
|
|
572
|
-
* @deprecated Version of the outbound agent to bind to the number. If not
|
|
573
|
-
* provided, will default to latest version. Deprecated. See
|
|
574
|
-
* https://docs.retellai.com/deprecation-notice/2026/03-31_phone_number_agent_fields
|
|
575
|
-
*/
|
|
576
|
-
outbound_agent_version?: number | null;
|
|
577
475
|
/**
|
|
578
476
|
* Outbound agents to bind to the number with weights. If set and non-empty, one
|
|
579
477
|
* agent will be picked randomly for each outbound call, with probability
|
|
580
|
-
* proportional to the weight. Total weights must add up to 1.
|
|
581
|
-
* fallback to outbound_agent_id.
|
|
478
|
+
* proportional to the weight. Total weights must add up to 1.
|
|
582
479
|
*/
|
|
583
480
|
outbound_agents?: Array<PhoneNumberImportParams.OutboundAgent> | null;
|
|
584
481
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"phone-number.d.ts","sourceRoot":"","sources":["../src/resources/phone-number.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OAEd,EAAE,cAAc,EAAE;AAGzB,qBAAa,WAAY,SAAQ,WAAW;IAC1C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,uBAAuB,EACvD,KAAK,uBAAuB,IAAI,uBAAuB,GACxD,CAAC;CACH"}
|
|
@@ -38,9 +38,21 @@ class PhoneNumber extends resource_1.APIResource {
|
|
|
38
38
|
* const phoneNumberResponse = await client.phoneNumber.update(
|
|
39
39
|
* '+14157774444',
|
|
40
40
|
* {
|
|
41
|
-
*
|
|
41
|
+
* inbound_agents: [
|
|
42
|
+
* {
|
|
43
|
+
* agent_id: 'oBeDLoLOeuAbiuaMFXRtDOLriTJ5tSxD',
|
|
44
|
+
* agent_version: 1,
|
|
45
|
+
* weight: 1,
|
|
46
|
+
* },
|
|
47
|
+
* ],
|
|
42
48
|
* nickname: 'Frontdesk Number',
|
|
43
|
-
*
|
|
49
|
+
* outbound_agents: [
|
|
50
|
+
* {
|
|
51
|
+
* agent_id: 'oBeDLoLOeuAbiuaMFXRtDOLriTJ5tSxD',
|
|
52
|
+
* agent_version: 1,
|
|
53
|
+
* weight: 1,
|
|
54
|
+
* },
|
|
55
|
+
* ],
|
|
44
56
|
* },
|
|
45
57
|
* );
|
|
46
58
|
* ```
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"phone-number.js","sourceRoot":"","sources":["../src/resources/phone-number.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAE/C,oDAAmD;AAEnD,oDAA8C;AAE9C,MAAa,WAAY,SAAQ,sBAAW;IAC1C;;;;;;;;OAQG;IACH,MAAM,CAAC,IAA6B,EAAE,OAAwB;QAC5D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,sBAAsB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACzE,CAAC;IAED;;;;;;;;OAQG;IACH,QAAQ,CAAC,WAAmB,EAAE,OAAwB;QACpD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,qBAAqB,WAAW,EAAE,EAAE,OAAO,CAAC,CAAC;IAC3E,CAAC;IA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C;IAED;;;;;;;;;;;;OAYG;IACH,MAAM,CAAC,IAA6B,EAAE,OAAwB;QAC5D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,sBAAsB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACzE,CAAC;CACF;AA1GD,kCA0GC"}
|
|
@@ -35,9 +35,21 @@ export class PhoneNumber extends APIResource {
|
|
|
35
35
|
* const phoneNumberResponse = await client.phoneNumber.update(
|
|
36
36
|
* '+14157774444',
|
|
37
37
|
* {
|
|
38
|
-
*
|
|
38
|
+
* inbound_agents: [
|
|
39
|
+
* {
|
|
40
|
+
* agent_id: 'oBeDLoLOeuAbiuaMFXRtDOLriTJ5tSxD',
|
|
41
|
+
* agent_version: 1,
|
|
42
|
+
* weight: 1,
|
|
43
|
+
* },
|
|
44
|
+
* ],
|
|
39
45
|
* nickname: 'Frontdesk Number',
|
|
40
|
-
*
|
|
46
|
+
* outbound_agents: [
|
|
47
|
+
* {
|
|
48
|
+
* agent_id: 'oBeDLoLOeuAbiuaMFXRtDOLriTJ5tSxD',
|
|
49
|
+
* agent_version: 1,
|
|
50
|
+
* weight: 1,
|
|
51
|
+
* },
|
|
52
|
+
* ],
|
|
41
53
|
* },
|
|
42
54
|
* );
|
|
43
55
|
* ```
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"phone-number.mjs","sourceRoot":"","sources":["../src/resources/phone-number.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAEf,EAAE,YAAY,EAAE;OAEhB,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,WAAY,SAAQ,WAAW;IAC1C;;;;;;;;OAQG;IACH,MAAM,CAAC,IAA6B,EAAE,OAAwB;QAC5D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,sBAAsB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACzE,CAAC;IAED;;;;;;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