syllable-sdk 0.1.0-alpha.222 → 0.1.0-alpha.224
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/README.md +4 -0
- package/docs/sdks/batches/README.md +4 -4
- package/docs/sdks/channels/README.md +198 -0
- package/docs/sdks/workflows/README.md +8 -8
- package/funcs/channelsCreate.d.ts +13 -0
- package/funcs/channelsCreate.d.ts.map +1 -0
- package/funcs/channelsCreate.js +99 -0
- package/funcs/channelsCreate.js.map +1 -0
- package/funcs/channelsUpdate.d.ts +13 -0
- package/funcs/channelsUpdate.d.ts.map +1 -0
- package/funcs/channelsUpdate.js +99 -0
- package/funcs/channelsUpdate.js.map +1 -0
- package/jsr.json +1 -1
- package/lib/config.d.ts +2 -2
- package/lib/config.js +2 -2
- package/models/components/channel.d.ts +6 -0
- package/models/components/channel.d.ts.map +1 -1
- package/models/components/channel.js +3 -0
- package/models/components/channel.js.map +1 -1
- package/models/components/channelconfigview.d.ts +33 -0
- package/models/components/channelconfigview.d.ts.map +1 -0
- package/models/components/channelconfigview.js +60 -0
- package/models/components/channelconfigview.js.map +1 -0
- package/models/components/index.d.ts +5 -0
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +5 -0
- package/models/components/index.js.map +1 -1
- package/models/components/organizationchannelconfig.d.ts +46 -0
- package/models/components/organizationchannelconfig.d.ts.map +1 -0
- package/models/components/organizationchannelconfig.js +75 -0
- package/models/components/organizationchannelconfig.js.map +1 -0
- package/models/components/organizationchannelcreaterequest.d.ts +57 -0
- package/models/components/organizationchannelcreaterequest.d.ts.map +1 -0
- package/models/components/organizationchannelcreaterequest.js +82 -0
- package/models/components/organizationchannelcreaterequest.js.map +1 -0
- package/models/components/organizationchannelupdaterequest.d.ts +62 -0
- package/models/components/organizationchannelupdaterequest.d.ts.map +1 -0
- package/models/components/organizationchannelupdaterequest.js +84 -0
- package/models/components/organizationchannelupdaterequest.js.map +1 -0
- package/models/components/telephonyconfigurations.d.ts +52 -0
- package/models/components/telephonyconfigurations.d.ts.map +1 -0
- package/models/components/telephonyconfigurations.js +84 -0
- package/models/components/telephonyconfigurations.js.map +1 -0
- package/openapi.json +431 -37
- package/package.json +1 -1
- package/sdk/channels.d.ts +8 -0
- package/sdk/channels.d.ts.map +1 -1
- package/sdk/channels.js +14 -0
- package/sdk/channels.js.map +1 -1
- package/src/funcs/channelsCreate.ts +133 -0
- package/src/funcs/channelsUpdate.ts +133 -0
- package/src/lib/config.ts +2 -2
- package/src/models/components/channel.ts +13 -0
- package/src/models/components/channelconfigview.ts +75 -0
- package/src/models/components/index.ts +5 -0
- package/src/models/components/organizationchannelconfig.ts +103 -0
- package/src/models/components/organizationchannelcreaterequest.ts +126 -0
- package/src/models/components/organizationchannelupdaterequest.ts +133 -0
- package/src/models/components/telephonyconfigurations.ts +114 -0
- package/src/sdk/channels.ts +30 -0
package/README.md
CHANGED
|
@@ -168,6 +168,8 @@ run();
|
|
|
168
168
|
### [channels](docs/sdks/channels/README.md)
|
|
169
169
|
|
|
170
170
|
* [list](docs/sdks/channels/README.md#list) - Get Channels
|
|
171
|
+
* [create](docs/sdks/channels/README.md#create) - Create Channel
|
|
172
|
+
* [update](docs/sdks/channels/README.md#update) - Update Channel
|
|
171
173
|
* [delete](docs/sdks/channels/README.md#delete) - Delete Channel Target
|
|
172
174
|
|
|
173
175
|
#### [channels.targets](docs/sdks/targets/README.md)
|
|
@@ -428,6 +430,7 @@ To read more about standalone functions, check [FUNCTIONS.md](./FUNCTIONS.md).
|
|
|
428
430
|
- [`agentsList`](docs/sdks/agents/README.md#list) - Agent List
|
|
429
431
|
- [`agentsTestSendTestMessage`](docs/sdks/test/README.md#sendtestmessage) - Send New Message
|
|
430
432
|
- [`agentsUpdate`](docs/sdks/agents/README.md#update) - Update Agent
|
|
433
|
+
- [`channelsCreate`](docs/sdks/channels/README.md#create) - Create Channel
|
|
431
434
|
- [`channelsDelete`](docs/sdks/channels/README.md#delete) - Delete Channel Target
|
|
432
435
|
- [`channelsList`](docs/sdks/channels/README.md#list) - Get Channels
|
|
433
436
|
- [`channelsTargetsAvailableTargets`](docs/sdks/targets/README.md#availabletargets) - Available Targets List
|
|
@@ -441,6 +444,7 @@ To read more about standalone functions, check [FUNCTIONS.md](./FUNCTIONS.md).
|
|
|
441
444
|
- [`channelsTwilioNumbersList`](docs/sdks/numbers/README.md#list) - List Twilio Phone Numbers
|
|
442
445
|
- [`channelsTwilioNumbersUpdate`](docs/sdks/numbers/README.md#update) - Update Twilio Number
|
|
443
446
|
- [`channelsTwilioUpdate`](docs/sdks/twilio/README.md#update) - Update Twilio Channel
|
|
447
|
+
- [`channelsUpdate`](docs/sdks/channels/README.md#update) - Update Channel
|
|
444
448
|
- [`conversationsList`](docs/sdks/conversations/README.md#list) - Conversations List
|
|
445
449
|
- [`customMessagesCreate`](docs/sdks/custommessages/README.md#create) - Create Custom Message
|
|
446
450
|
- [`customMessagesDelete`](docs/sdks/custommessages/README.md#delete) - Delete Custom Message
|
|
@@ -125,9 +125,9 @@ const syllableSDK = new SyllableSDK({
|
|
|
125
125
|
|
|
126
126
|
async function run() {
|
|
127
127
|
const result = await syllableSDK.outbound.batches.create({
|
|
128
|
-
batchId: "
|
|
128
|
+
batchId: "20250731.9",
|
|
129
129
|
campaignId: 1,
|
|
130
|
-
expiresOn: new Date("2025-
|
|
130
|
+
expiresOn: new Date("2025-08-01T00:00:00Z"),
|
|
131
131
|
paused: true,
|
|
132
132
|
});
|
|
133
133
|
|
|
@@ -154,9 +154,9 @@ const syllableSDK = new SyllableSDKCore({
|
|
|
154
154
|
|
|
155
155
|
async function run() {
|
|
156
156
|
const res = await outboundBatchesCreate(syllableSDK, {
|
|
157
|
-
batchId: "
|
|
157
|
+
batchId: "20250731.9",
|
|
158
158
|
campaignId: 1,
|
|
159
|
-
expiresOn: new Date("2025-
|
|
159
|
+
expiresOn: new Date("2025-08-01T00:00:00Z"),
|
|
160
160
|
paused: true,
|
|
161
161
|
});
|
|
162
162
|
|
|
@@ -8,6 +8,8 @@ Operations related to channel configuration. A channel is an organizat
|
|
|
8
8
|
### Available Operations
|
|
9
9
|
|
|
10
10
|
* [list](#list) - Get Channels
|
|
11
|
+
* [create](#create) - Create Channel
|
|
12
|
+
* [update](#update) - Update Channel
|
|
11
13
|
* [delete](#delete) - Delete Channel Target
|
|
12
14
|
|
|
13
15
|
## list
|
|
@@ -103,6 +105,202 @@ run();
|
|
|
103
105
|
| errors.HTTPValidationError | 422 | application/json |
|
|
104
106
|
| errors.SDKError | 4XX, 5XX | \*/\* |
|
|
105
107
|
|
|
108
|
+
## create
|
|
109
|
+
|
|
110
|
+
Create Channel
|
|
111
|
+
|
|
112
|
+
### Example Usage
|
|
113
|
+
|
|
114
|
+
```typescript
|
|
115
|
+
import { SyllableSDK } from "syllable-sdk";
|
|
116
|
+
|
|
117
|
+
const syllableSDK = new SyllableSDK({
|
|
118
|
+
apiKeyHeader: process.env["SYLLABLESDK_API_KEY_HEADER"] ?? "",
|
|
119
|
+
});
|
|
120
|
+
|
|
121
|
+
async function run() {
|
|
122
|
+
const result = await syllableSDK.channels.create({
|
|
123
|
+
name: "twilio",
|
|
124
|
+
channelService: "twilio",
|
|
125
|
+
supportedModes: "chat,voice",
|
|
126
|
+
config: {
|
|
127
|
+
accountSid: "AC123...",
|
|
128
|
+
authToken: "sometoken",
|
|
129
|
+
telephony: {
|
|
130
|
+
preInputTimeout: 1.2,
|
|
131
|
+
overallInputTimeout: 20,
|
|
132
|
+
},
|
|
133
|
+
},
|
|
134
|
+
});
|
|
135
|
+
|
|
136
|
+
// Handle the result
|
|
137
|
+
console.log(result);
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
run();
|
|
141
|
+
```
|
|
142
|
+
|
|
143
|
+
### Standalone function
|
|
144
|
+
|
|
145
|
+
The standalone function version of this method:
|
|
146
|
+
|
|
147
|
+
```typescript
|
|
148
|
+
import { SyllableSDKCore } from "syllable-sdk/core.js";
|
|
149
|
+
import { channelsCreate } from "syllable-sdk/funcs/channelsCreate.js";
|
|
150
|
+
|
|
151
|
+
// Use `SyllableSDKCore` for best tree-shaking performance.
|
|
152
|
+
// You can create one instance of it to use across an application.
|
|
153
|
+
const syllableSDK = new SyllableSDKCore({
|
|
154
|
+
apiKeyHeader: process.env["SYLLABLESDK_API_KEY_HEADER"] ?? "",
|
|
155
|
+
});
|
|
156
|
+
|
|
157
|
+
async function run() {
|
|
158
|
+
const res = await channelsCreate(syllableSDK, {
|
|
159
|
+
name: "twilio",
|
|
160
|
+
channelService: "twilio",
|
|
161
|
+
supportedModes: "chat,voice",
|
|
162
|
+
config: {
|
|
163
|
+
accountSid: "AC123...",
|
|
164
|
+
authToken: "sometoken",
|
|
165
|
+
telephony: {
|
|
166
|
+
preInputTimeout: 1.2,
|
|
167
|
+
overallInputTimeout: 20,
|
|
168
|
+
},
|
|
169
|
+
},
|
|
170
|
+
});
|
|
171
|
+
|
|
172
|
+
if (!res.ok) {
|
|
173
|
+
throw res.error;
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
const { value: result } = res;
|
|
177
|
+
|
|
178
|
+
// Handle the result
|
|
179
|
+
console.log(result);
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
run();
|
|
183
|
+
```
|
|
184
|
+
|
|
185
|
+
### Parameters
|
|
186
|
+
|
|
187
|
+
| Parameter | Type | Required | Description |
|
|
188
|
+
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
189
|
+
| `request` | [components.OrganizationChannelCreateRequest](../../models/components/organizationchannelcreaterequest.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
190
|
+
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
191
|
+
| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
|
|
192
|
+
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
193
|
+
|
|
194
|
+
### Response
|
|
195
|
+
|
|
196
|
+
**Promise\<[components.Channel](../../models/components/channel.md)\>**
|
|
197
|
+
|
|
198
|
+
### Errors
|
|
199
|
+
|
|
200
|
+
| Error Type | Status Code | Content Type |
|
|
201
|
+
| -------------------------- | -------------------------- | -------------------------- |
|
|
202
|
+
| errors.HTTPValidationError | 422 | application/json |
|
|
203
|
+
| errors.SDKError | 4XX, 5XX | \*/\* |
|
|
204
|
+
|
|
205
|
+
## update
|
|
206
|
+
|
|
207
|
+
Update Channel
|
|
208
|
+
|
|
209
|
+
### Example Usage
|
|
210
|
+
|
|
211
|
+
```typescript
|
|
212
|
+
import { SyllableSDK } from "syllable-sdk";
|
|
213
|
+
|
|
214
|
+
const syllableSDK = new SyllableSDK({
|
|
215
|
+
apiKeyHeader: process.env["SYLLABLESDK_API_KEY_HEADER"] ?? "",
|
|
216
|
+
});
|
|
217
|
+
|
|
218
|
+
async function run() {
|
|
219
|
+
const result = await syllableSDK.channels.update({
|
|
220
|
+
name: "twilio",
|
|
221
|
+
channelService: "webchat",
|
|
222
|
+
supportedModes: "chat,voice",
|
|
223
|
+
config: {
|
|
224
|
+
accountSid: "AC123...",
|
|
225
|
+
authToken: "sometoken",
|
|
226
|
+
telephony: {
|
|
227
|
+
preInputTimeout: 1.2,
|
|
228
|
+
overallInputTimeout: 20,
|
|
229
|
+
},
|
|
230
|
+
},
|
|
231
|
+
id: 1,
|
|
232
|
+
});
|
|
233
|
+
|
|
234
|
+
// Handle the result
|
|
235
|
+
console.log(result);
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
run();
|
|
239
|
+
```
|
|
240
|
+
|
|
241
|
+
### Standalone function
|
|
242
|
+
|
|
243
|
+
The standalone function version of this method:
|
|
244
|
+
|
|
245
|
+
```typescript
|
|
246
|
+
import { SyllableSDKCore } from "syllable-sdk/core.js";
|
|
247
|
+
import { channelsUpdate } from "syllable-sdk/funcs/channelsUpdate.js";
|
|
248
|
+
|
|
249
|
+
// Use `SyllableSDKCore` for best tree-shaking performance.
|
|
250
|
+
// You can create one instance of it to use across an application.
|
|
251
|
+
const syllableSDK = new SyllableSDKCore({
|
|
252
|
+
apiKeyHeader: process.env["SYLLABLESDK_API_KEY_HEADER"] ?? "",
|
|
253
|
+
});
|
|
254
|
+
|
|
255
|
+
async function run() {
|
|
256
|
+
const res = await channelsUpdate(syllableSDK, {
|
|
257
|
+
name: "twilio",
|
|
258
|
+
channelService: "webchat",
|
|
259
|
+
supportedModes: "chat,voice",
|
|
260
|
+
config: {
|
|
261
|
+
accountSid: "AC123...",
|
|
262
|
+
authToken: "sometoken",
|
|
263
|
+
telephony: {
|
|
264
|
+
preInputTimeout: 1.2,
|
|
265
|
+
overallInputTimeout: 20,
|
|
266
|
+
},
|
|
267
|
+
},
|
|
268
|
+
id: 1,
|
|
269
|
+
});
|
|
270
|
+
|
|
271
|
+
if (!res.ok) {
|
|
272
|
+
throw res.error;
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
const { value: result } = res;
|
|
276
|
+
|
|
277
|
+
// Handle the result
|
|
278
|
+
console.log(result);
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
run();
|
|
282
|
+
```
|
|
283
|
+
|
|
284
|
+
### Parameters
|
|
285
|
+
|
|
286
|
+
| Parameter | Type | Required | Description |
|
|
287
|
+
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
288
|
+
| `request` | [components.OrganizationChannelUpdateRequest](../../models/components/organizationchannelupdaterequest.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
289
|
+
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
290
|
+
| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
|
|
291
|
+
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
292
|
+
|
|
293
|
+
### Response
|
|
294
|
+
|
|
295
|
+
**Promise\<[components.Channel](../../models/components/channel.md)\>**
|
|
296
|
+
|
|
297
|
+
### Errors
|
|
298
|
+
|
|
299
|
+
| Error Type | Status Code | Content Type |
|
|
300
|
+
| -------------------------- | -------------------------- | -------------------------- |
|
|
301
|
+
| errors.HTTPValidationError | 422 | application/json |
|
|
302
|
+
| errors.SDKError | 4XX, 5XX | \*/\* |
|
|
303
|
+
|
|
106
304
|
## delete
|
|
107
305
|
|
|
108
306
|
Hard-delete a channel target by ID
|
|
@@ -150,8 +150,8 @@ async function run() {
|
|
|
150
150
|
"sheet_name": "Q1 Sales Data",
|
|
151
151
|
},
|
|
152
152
|
},
|
|
153
|
-
startDatetime: new Date("2025-07-
|
|
154
|
-
endDatetime: new Date("2025-07-
|
|
153
|
+
startDatetime: new Date("2025-07-30T00:00:00Z"),
|
|
154
|
+
endDatetime: new Date("2025-07-31T00:00:00Z"),
|
|
155
155
|
});
|
|
156
156
|
|
|
157
157
|
// Handle the result
|
|
@@ -203,8 +203,8 @@ async function run() {
|
|
|
203
203
|
"sheet_name": "Q1 Sales Data",
|
|
204
204
|
},
|
|
205
205
|
},
|
|
206
|
-
startDatetime: new Date("2025-07-
|
|
207
|
-
endDatetime: new Date("2025-07-
|
|
206
|
+
startDatetime: new Date("2025-07-30T00:00:00Z"),
|
|
207
|
+
endDatetime: new Date("2025-07-31T00:00:00Z"),
|
|
208
208
|
});
|
|
209
209
|
|
|
210
210
|
if (!res.ok) {
|
|
@@ -360,8 +360,8 @@ async function run() {
|
|
|
360
360
|
"sheet_name": "Q1 Sales Data",
|
|
361
361
|
},
|
|
362
362
|
},
|
|
363
|
-
startDatetime: new Date("2025-07-
|
|
364
|
-
endDatetime: new Date("2025-07-
|
|
363
|
+
startDatetime: new Date("2025-07-30T00:00:00Z"),
|
|
364
|
+
endDatetime: new Date("2025-07-31T00:00:00Z"),
|
|
365
365
|
},
|
|
366
366
|
});
|
|
367
367
|
|
|
@@ -416,8 +416,8 @@ async function run() {
|
|
|
416
416
|
"sheet_name": "Q1 Sales Data",
|
|
417
417
|
},
|
|
418
418
|
},
|
|
419
|
-
startDatetime: new Date("2025-07-
|
|
420
|
-
endDatetime: new Date("2025-07-
|
|
419
|
+
startDatetime: new Date("2025-07-30T00:00:00Z"),
|
|
420
|
+
endDatetime: new Date("2025-07-31T00:00:00Z"),
|
|
421
421
|
},
|
|
422
422
|
});
|
|
423
423
|
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { SyllableSDKCore } from "../core.js";
|
|
2
|
+
import { RequestOptions } from "../lib/sdks.js";
|
|
3
|
+
import * as components from "../models/components/index.js";
|
|
4
|
+
import { ConnectionError, InvalidRequestError, RequestAbortedError, RequestTimeoutError, UnexpectedClientError } from "../models/errors/httpclienterrors.js";
|
|
5
|
+
import * as errors from "../models/errors/index.js";
|
|
6
|
+
import { SDKError } from "../models/errors/sdkerror.js";
|
|
7
|
+
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
8
|
+
import { Result } from "../types/fp.js";
|
|
9
|
+
/**
|
|
10
|
+
* Create Channel
|
|
11
|
+
*/
|
|
12
|
+
export declare function channelsCreate(client: SyllableSDKCore, request: components.OrganizationChannelCreateRequest, options?: RequestOptions): Promise<Result<components.Channel, errors.HTTPValidationError | SDKError | SDKValidationError | UnexpectedClientError | InvalidRequestError | RequestAbortedError | RequestTimeoutError | ConnectionError>>;
|
|
13
|
+
//# sourceMappingURL=channelsCreate.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"channelsCreate.d.ts","sourceRoot":"","sources":["../src/funcs/channelsCreate.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAK7C,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGhD,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACtB,MAAM,sCAAsC,CAAC;AAC9C,OAAO,KAAK,MAAM,MAAM,2BAA2B,CAAC;AACpD,OAAO,EAAE,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AACxD,OAAO,EAAE,kBAAkB,EAAE,MAAM,wCAAwC,CAAC;AAC5E,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAExC;;GAEG;AACH,wBAAsB,cAAc,CAClC,MAAM,EAAE,eAAe,EACvB,OAAO,EAAE,UAAU,CAAC,gCAAgC,EACpD,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CACR,MAAM,CACJ,UAAU,CAAC,OAAO,EAChB,MAAM,CAAC,mBAAmB,GAC1B,QAAQ,GACR,kBAAkB,GAClB,qBAAqB,GACrB,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,eAAe,CAClB,CACF,CAwFA"}
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
22
|
+
if (mod && mod.__esModule) return mod;
|
|
23
|
+
var result = {};
|
|
24
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
+
__setModuleDefault(result, mod);
|
|
26
|
+
return result;
|
|
27
|
+
};
|
|
28
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.channelsCreate = channelsCreate;
|
|
30
|
+
const encodings_js_1 = require("../lib/encodings.js");
|
|
31
|
+
const M = __importStar(require("../lib/matchers.js"));
|
|
32
|
+
const primitives_js_1 = require("../lib/primitives.js");
|
|
33
|
+
const schemas_js_1 = require("../lib/schemas.js");
|
|
34
|
+
const security_js_1 = require("../lib/security.js");
|
|
35
|
+
const url_js_1 = require("../lib/url.js");
|
|
36
|
+
const components = __importStar(require("../models/components/index.js"));
|
|
37
|
+
const errors = __importStar(require("../models/errors/index.js"));
|
|
38
|
+
/**
|
|
39
|
+
* Create Channel
|
|
40
|
+
*/
|
|
41
|
+
async function channelsCreate(client, request, options) {
|
|
42
|
+
const parsed = (0, schemas_js_1.safeParse)(request, (value) => components.OrganizationChannelCreateRequest$outboundSchema.parse(value), "Input validation failed");
|
|
43
|
+
if (!parsed.ok) {
|
|
44
|
+
return parsed;
|
|
45
|
+
}
|
|
46
|
+
const payload = parsed.value;
|
|
47
|
+
const body = (0, encodings_js_1.encodeJSON)("body", payload, { explode: true });
|
|
48
|
+
const path = (0, url_js_1.pathToFunc)("/api/v1/channels/")();
|
|
49
|
+
const headers = new Headers((0, primitives_js_1.compactMap)({
|
|
50
|
+
"Content-Type": "application/json",
|
|
51
|
+
Accept: "application/json",
|
|
52
|
+
}));
|
|
53
|
+
const secConfig = await (0, security_js_1.extractSecurity)(client._options.apiKeyHeader);
|
|
54
|
+
const securityInput = secConfig == null ? {} : { apiKeyHeader: secConfig };
|
|
55
|
+
const requestSecurity = (0, security_js_1.resolveGlobalSecurity)(securityInput);
|
|
56
|
+
const context = {
|
|
57
|
+
baseURL: options?.serverURL ?? "",
|
|
58
|
+
operationID: "channels_create",
|
|
59
|
+
oAuth2Scopes: [],
|
|
60
|
+
resolvedSecurity: requestSecurity,
|
|
61
|
+
securitySource: client._options.apiKeyHeader,
|
|
62
|
+
retryConfig: options?.retries
|
|
63
|
+
|| client._options.retryConfig
|
|
64
|
+
|| { strategy: "none" },
|
|
65
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
|
66
|
+
};
|
|
67
|
+
const requestRes = client._createRequest(context, {
|
|
68
|
+
security: requestSecurity,
|
|
69
|
+
method: "POST",
|
|
70
|
+
baseURL: options?.serverURL,
|
|
71
|
+
path: path,
|
|
72
|
+
headers: headers,
|
|
73
|
+
body: body,
|
|
74
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
75
|
+
}, options);
|
|
76
|
+
if (!requestRes.ok) {
|
|
77
|
+
return requestRes;
|
|
78
|
+
}
|
|
79
|
+
const req = requestRes.value;
|
|
80
|
+
const doResult = await client._do(req, {
|
|
81
|
+
context,
|
|
82
|
+
errorCodes: ["422", "4XX", "5XX"],
|
|
83
|
+
retryConfig: context.retryConfig,
|
|
84
|
+
retryCodes: context.retryCodes,
|
|
85
|
+
});
|
|
86
|
+
if (!doResult.ok) {
|
|
87
|
+
return doResult;
|
|
88
|
+
}
|
|
89
|
+
const response = doResult.value;
|
|
90
|
+
const responseFields = {
|
|
91
|
+
HttpMeta: { Response: response, Request: req },
|
|
92
|
+
};
|
|
93
|
+
const [result] = await M.match(M.json(200, components.Channel$inboundSchema), M.jsonErr(422, errors.HTTPValidationError$inboundSchema), M.fail("4XX"), M.fail("5XX"))(response, { extraFields: responseFields });
|
|
94
|
+
if (!result.ok) {
|
|
95
|
+
return result;
|
|
96
|
+
}
|
|
97
|
+
return result;
|
|
98
|
+
}
|
|
99
|
+
//# sourceMappingURL=channelsCreate.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"channelsCreate.js","sourceRoot":"","sources":["../src/funcs/channelsCreate.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;AA0BH,wCAwGC;AA/HD,sDAAiD;AACjD,sDAAwC;AACxC,wDAAkD;AAClD,kDAA8C;AAE9C,oDAA4E;AAC5E,0CAA2C;AAC3C,0EAA4D;AAQ5D,kEAAoD;AAKpD;;GAEG;AACI,KAAK,UAAU,cAAc,CAClC,MAAuB,EACvB,OAAoD,EACpD,OAAwB;IAcxB,MAAM,MAAM,GAAG,IAAA,sBAAS,EACtB,OAAO,EACP,CAAC,KAAK,EAAE,EAAE,CACR,UAAU,CAAC,+CAA+C,CAAC,KAAK,CAAC,KAAK,CAAC,EACzE,yBAAyB,CAC1B,CAAC;IACF,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC;QACf,OAAO,MAAM,CAAC;IAChB,CAAC;IACD,MAAM,OAAO,GAAG,MAAM,CAAC,KAAK,CAAC;IAC7B,MAAM,IAAI,GAAG,IAAA,yBAAU,EAAC,MAAM,EAAE,OAAO,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC,CAAC;IAE5D,MAAM,IAAI,GAAG,IAAA,mBAAU,EAAC,mBAAmB,CAAC,EA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AAE,EAAE,CAAC;QACnB,OAAO,UAAU,CAAC;IACpB,CAAC;IACD,MAAM,GAAG,GAAG,UAAU,CAAC,KAAK,CAAC;IAE7B,MAAM,QAAQ,GAAG,MAAM,MAAM,CAAC,GAAG,CAAC,GAAG,EAAE;QACrC,OAAO;QACP,UAAU,EAAE,CAAC,KAAK,EAAE,KAAK,EAAE,KAAK,CAAC;QACjC,WAAW,EAAE,OAAO,CAAC,WAAW;QAChC,UAAU,EAAE,OAAO,CAAC,UAAU;KAC/B,CAAC,CAAC;IACH,IAAI,CAAC,QAAQ,CAAC,EAAE,EAAE,CAAC;QACjB,OAAO,QAAQ,CAAC;IAClB,CAAC;IACD,MAAM,QAAQ,GAAG,QAAQ,CAAC,KAAK,CAAC;IAEhC,MAAM,cAAc,GAAG;QACrB,QAAQ,EAAE,EAAE,QAAQ,EAAE,QAAQ,EAAE,OAAO,EAAE,GAAG,EAAE;KAC/C,CAAC;IAEF,MAAM,CAAC,MAAM,CAAC,GAAG,MAAM,CAAC,CAAC,KAAK,CAW5B,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE,UAAU,CAAC,qBAAqB,CAAC,EAC7C,CAAC,CAAC,OAAO,CAAC,GAAG,EAAE,MAAM,CAAC,iCAAiC,CAAC,EACxD,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,EACb,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CACd,CAAC,QAAQ,EAAE,EAAE,WAAW,EAAE,cAAc,EAAE,CAAC,CAAC;IAC7C,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC;QACf,OAAO,MAAM,CAAC;IAChB,CAAC;IAED,OAAO,MAAM,CAAC;AAChB,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { SyllableSDKCore } from "../core.js";
|
|
2
|
+
import { RequestOptions } from "../lib/sdks.js";
|
|
3
|
+
import * as components from "../models/components/index.js";
|
|
4
|
+
import { ConnectionError, InvalidRequestError, RequestAbortedError, RequestTimeoutError, UnexpectedClientError } from "../models/errors/httpclienterrors.js";
|
|
5
|
+
import * as errors from "../models/errors/index.js";
|
|
6
|
+
import { SDKError } from "../models/errors/sdkerror.js";
|
|
7
|
+
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
8
|
+
import { Result } from "../types/fp.js";
|
|
9
|
+
/**
|
|
10
|
+
* Update Channel
|
|
11
|
+
*/
|
|
12
|
+
export declare function channelsUpdate(client: SyllableSDKCore, request: components.OrganizationChannelUpdateRequest, options?: RequestOptions): Promise<Result<components.Channel, errors.HTTPValidationError | SDKError | SDKValidationError | UnexpectedClientError | InvalidRequestError | RequestAbortedError | RequestTimeoutError | ConnectionError>>;
|
|
13
|
+
//# sourceMappingURL=channelsUpdate.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"channelsUpdate.d.ts","sourceRoot":"","sources":["../src/funcs/channelsUpdate.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAK7C,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGhD,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACtB,MAAM,sCAAsC,CAAC;AAC9C,OAAO,KAAK,MAAM,MAAM,2BAA2B,CAAC;AACpD,OAAO,EAAE,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AACxD,OAAO,EAAE,kBAAkB,EAAE,MAAM,wCAAwC,CAAC;AAC5E,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAExC;;GAEG;AACH,wBAAsB,cAAc,CAClC,MAAM,EAAE,eAAe,EACvB,OAAO,EAAE,UAAU,CAAC,gCAAgC,EACpD,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CACR,MAAM,CACJ,UAAU,CAAC,OAAO,EAChB,MAAM,CAAC,mBAAmB,GAC1B,QAAQ,GACR,kBAAkB,GAClB,qBAAqB,GACrB,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,eAAe,CAClB,CACF,CAwFA"}
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
22
|
+
if (mod && mod.__esModule) return mod;
|
|
23
|
+
var result = {};
|
|
24
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
+
__setModuleDefault(result, mod);
|
|
26
|
+
return result;
|
|
27
|
+
};
|
|
28
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.channelsUpdate = channelsUpdate;
|
|
30
|
+
const encodings_js_1 = require("../lib/encodings.js");
|
|
31
|
+
const M = __importStar(require("../lib/matchers.js"));
|
|
32
|
+
const primitives_js_1 = require("../lib/primitives.js");
|
|
33
|
+
const schemas_js_1 = require("../lib/schemas.js");
|
|
34
|
+
const security_js_1 = require("../lib/security.js");
|
|
35
|
+
const url_js_1 = require("../lib/url.js");
|
|
36
|
+
const components = __importStar(require("../models/components/index.js"));
|
|
37
|
+
const errors = __importStar(require("../models/errors/index.js"));
|
|
38
|
+
/**
|
|
39
|
+
* Update Channel
|
|
40
|
+
*/
|
|
41
|
+
async function channelsUpdate(client, request, options) {
|
|
42
|
+
const parsed = (0, schemas_js_1.safeParse)(request, (value) => components.OrganizationChannelUpdateRequest$outboundSchema.parse(value), "Input validation failed");
|
|
43
|
+
if (!parsed.ok) {
|
|
44
|
+
return parsed;
|
|
45
|
+
}
|
|
46
|
+
const payload = parsed.value;
|
|
47
|
+
const body = (0, encodings_js_1.encodeJSON)("body", payload, { explode: true });
|
|
48
|
+
const path = (0, url_js_1.pathToFunc)("/api/v1/channels/")();
|
|
49
|
+
const headers = new Headers((0, primitives_js_1.compactMap)({
|
|
50
|
+
"Content-Type": "application/json",
|
|
51
|
+
Accept: "application/json",
|
|
52
|
+
}));
|
|
53
|
+
const secConfig = await (0, security_js_1.extractSecurity)(client._options.apiKeyHeader);
|
|
54
|
+
const securityInput = secConfig == null ? {} : { apiKeyHeader: secConfig };
|
|
55
|
+
const requestSecurity = (0, security_js_1.resolveGlobalSecurity)(securityInput);
|
|
56
|
+
const context = {
|
|
57
|
+
baseURL: options?.serverURL ?? "",
|
|
58
|
+
operationID: "channels_update",
|
|
59
|
+
oAuth2Scopes: [],
|
|
60
|
+
resolvedSecurity: requestSecurity,
|
|
61
|
+
securitySource: client._options.apiKeyHeader,
|
|
62
|
+
retryConfig: options?.retries
|
|
63
|
+
|| client._options.retryConfig
|
|
64
|
+
|| { strategy: "none" },
|
|
65
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
|
66
|
+
};
|
|
67
|
+
const requestRes = client._createRequest(context, {
|
|
68
|
+
security: requestSecurity,
|
|
69
|
+
method: "PUT",
|
|
70
|
+
baseURL: options?.serverURL,
|
|
71
|
+
path: path,
|
|
72
|
+
headers: headers,
|
|
73
|
+
body: body,
|
|
74
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
75
|
+
}, options);
|
|
76
|
+
if (!requestRes.ok) {
|
|
77
|
+
return requestRes;
|
|
78
|
+
}
|
|
79
|
+
const req = requestRes.value;
|
|
80
|
+
const doResult = await client._do(req, {
|
|
81
|
+
context,
|
|
82
|
+
errorCodes: ["422", "4XX", "5XX"],
|
|
83
|
+
retryConfig: context.retryConfig,
|
|
84
|
+
retryCodes: context.retryCodes,
|
|
85
|
+
});
|
|
86
|
+
if (!doResult.ok) {
|
|
87
|
+
return doResult;
|
|
88
|
+
}
|
|
89
|
+
const response = doResult.value;
|
|
90
|
+
const responseFields = {
|
|
91
|
+
HttpMeta: { Response: response, Request: req },
|
|
92
|
+
};
|
|
93
|
+
const [result] = await M.match(M.json(200, components.Channel$inboundSchema), M.jsonErr(422, errors.HTTPValidationError$inboundSchema), M.fail("4XX"), M.fail("5XX"))(response, { extraFields: responseFields });
|
|
94
|
+
if (!result.ok) {
|
|
95
|
+
return result;
|
|
96
|
+
}
|
|
97
|
+
return result;
|
|
98
|
+
}
|
|
99
|
+
//# sourceMappingURL=channelsUpdate.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"channelsUpdate.js","sourceRoot":"","sources":["../src/funcs/channelsUpdate.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;AA0BH,wCAwGC;AA/HD,sDAAiD;AACjD,sDAAwC;AACxC,wDAAkD;AAClD,kDAA8C;AAE9C,oDAA4E;AAC5E,0CAA2C;AAC3C,0EAA4D;AAQ5D,kEAAoD;AAKpD;;GAEG;AACI,KAAK,UAAU,cAAc,CAClC,MAAuB,EACvB,OAAoD,EACpD,OAAwB;IAcxB,MAAM,MAAM,GAAG,IAAA,sBAAS,EACtB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AK,CAAC,EACb,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CACd,CAAC,QAAQ,EAAE,EAAE,WAAW,EAAE,cAAc,EAAE,CAAC,CAAC;IAC7C,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC;QACf,OAAO,MAAM,CAAC;IAChB,CAAC;IAED,OAAO,MAAM,CAAC;AAChB,CAAC"}
|
package/jsr.json
CHANGED
package/lib/config.d.ts
CHANGED
|
@@ -27,8 +27,8 @@ export declare function serverURLFromOptions(options: SDKOptions): URL | null;
|
|
|
27
27
|
export declare const SDK_METADATA: {
|
|
28
28
|
readonly language: "typescript";
|
|
29
29
|
readonly openapiDocVersion: "0.0.2";
|
|
30
|
-
readonly sdkVersion: "0.1.0-alpha.
|
|
30
|
+
readonly sdkVersion: "0.1.0-alpha.224";
|
|
31
31
|
readonly genVersion: "2.512.4";
|
|
32
|
-
readonly userAgent: "speakeasy-sdk/typescript 0.1.0-alpha.
|
|
32
|
+
readonly userAgent: "speakeasy-sdk/typescript 0.1.0-alpha.224 2.512.4 0.0.2 syllable-sdk";
|
|
33
33
|
};
|
|
34
34
|
//# sourceMappingURL=config.d.ts.map
|
package/lib/config.js
CHANGED
|
@@ -31,8 +31,8 @@ function serverURLFromOptions(options) {
|
|
|
31
31
|
exports.SDK_METADATA = {
|
|
32
32
|
language: "typescript",
|
|
33
33
|
openapiDocVersion: "0.0.2",
|
|
34
|
-
sdkVersion: "0.1.0-alpha.
|
|
34
|
+
sdkVersion: "0.1.0-alpha.224",
|
|
35
35
|
genVersion: "2.512.4",
|
|
36
|
-
userAgent: "speakeasy-sdk/typescript 0.1.0-alpha.
|
|
36
|
+
userAgent: "speakeasy-sdk/typescript 0.1.0-alpha.224 2.512.4 0.0.2 syllable-sdk",
|
|
37
37
|
};
|
|
38
38
|
//# sourceMappingURL=config.js.map
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import * as z from "zod";
|
|
2
2
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
3
3
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
4
|
+
import { ChannelConfigView, ChannelConfigView$Outbound } from "./channelconfigview.js";
|
|
4
5
|
import { ChannelServices } from "./channelservices.js";
|
|
5
6
|
export type Channel = {
|
|
6
7
|
/**
|
|
@@ -23,6 +24,10 @@ export type Channel = {
|
|
|
23
24
|
* The channel ID
|
|
24
25
|
*/
|
|
25
26
|
id: number;
|
|
27
|
+
/**
|
|
28
|
+
* Configuration for the channel
|
|
29
|
+
*/
|
|
30
|
+
config?: ChannelConfigView | null | undefined;
|
|
26
31
|
};
|
|
27
32
|
/** @internal */
|
|
28
33
|
export declare const Channel$inboundSchema: z.ZodType<Channel, z.ZodTypeDef, unknown>;
|
|
@@ -33,6 +38,7 @@ export type Channel$Outbound = {
|
|
|
33
38
|
supported_modes?: string | null | undefined;
|
|
34
39
|
is_system_channel: boolean;
|
|
35
40
|
id: number;
|
|
41
|
+
config?: ChannelConfigView$Outbound | null | undefined;
|
|
36
42
|
};
|
|
37
43
|
/** @internal */
|
|
38
44
|
export declare const Channel$outboundSchema: z.ZodType<Channel$Outbound, z.ZodTypeDef, Channel>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"channel.d.ts","sourceRoot":"","sources":["../../src/models/components/channel.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAGzB,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EACL,eAAe,EAGhB,MAAM,sBAAsB,CAAC;AAE9B,MAAM,MAAM,OAAO,GAAG;IACpB;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,cAAc,EAAE,eAAe,CAAC;IAChC;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IAC3C;;OA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