syllable-sdk 0.1.0-alpha.26 → 0.1.0-alpha.28
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 +6 -25
- package/docs/sdks/tools/README.md +36 -0
- package/lib/config.d.ts +3 -3
- package/lib/config.d.ts.map +1 -1
- package/lib/config.js +6 -6
- package/lib/config.js.map +1 -1
- package/models/components/channeltarget.d.ts +16 -16
- package/models/components/channeltarget.d.ts.map +1 -1
- package/models/components/channeltarget.js +16 -16
- package/models/components/channeltarget.js.map +1 -1
- package/models/components/channeltargetcreaterequest.d.ts +12 -12
- package/models/components/channeltargetcreaterequest.d.ts.map +1 -1
- package/models/components/channeltargetcreaterequest.js +12 -12
- package/models/components/channeltargetcreaterequest.js.map +1 -1
- package/models/components/channeltargetupdaterequest.d.ts +12 -12
- package/models/components/channeltargetupdaterequest.d.ts.map +1 -1
- package/models/components/channeltargetupdaterequest.js +12 -12
- package/models/components/channeltargetupdaterequest.js.map +1 -1
- package/models/components/function.d.ts +74 -0
- package/models/components/function.d.ts.map +1 -0
- package/models/components/function.js +86 -0
- package/models/components/function.js.map +1 -0
- package/models/components/httpendpoint.d.ts +114 -0
- package/models/components/httpendpoint.d.ts.map +1 -0
- package/models/components/httpendpoint.js +119 -0
- package/models/components/httpendpoint.js.map +1 -0
- package/models/components/index.d.ts +7 -0
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +7 -0
- package/models/components/index.js.map +1 -1
- package/models/components/sdkinternaltool.d.ts +46 -0
- package/models/components/sdkinternaltool.d.ts.map +1 -0
- package/models/components/sdkinternaltool.js +62 -0
- package/models/components/sdkinternaltool.js.map +1 -0
- package/models/components/sdktooldefinition.d.ts +161 -0
- package/models/components/sdktooldefinition.d.ts.map +1 -0
- package/models/components/sdktooldefinition.js +175 -0
- package/models/components/sdktooldefinition.js.map +1 -0
- package/models/components/testmessage.d.ts +2 -0
- package/models/components/testmessage.d.ts.map +1 -1
- package/models/components/testmessage.js +4 -0
- package/models/components/testmessage.js.map +1 -1
- package/models/components/tool.d.ts +3 -29
- package/models/components/tool.d.ts.map +1 -1
- package/models/components/tool.js +4 -26
- package/models/components/tool.js.map +1 -1
- package/models/components/toolcreate.d.ts +3 -29
- package/models/components/toolcreate.d.ts.map +1 -1
- package/models/components/toolcreate.js +4 -26
- package/models/components/toolcreate.js.map +1 -1
- package/models/components/toolparameterdefault.d.ts +36 -0
- package/models/components/toolparameterdefault.d.ts.map +1 -0
- package/models/components/toolparameterdefault.js +60 -0
- package/models/components/toolparameterdefault.js.map +1 -0
- package/models/components/toolparametertransform.d.ts +81 -0
- package/models/components/toolparametertransform.d.ts.map +1 -0
- package/models/components/toolparametertransform.js +88 -0
- package/models/components/toolparametertransform.js.map +1 -0
- package/models/components/toolparametertransformcondition.d.ts +45 -0
- package/models/components/toolparametertransformcondition.d.ts.map +1 -0
- package/models/components/toolparametertransformcondition.js +63 -0
- package/models/components/toolparametertransformcondition.js.map +1 -0
- package/models/components/toolupdate.d.ts +3 -29
- package/models/components/toolupdate.d.ts.map +1 -1
- package/models/components/toolupdate.js +4 -26
- package/models/components/toolupdate.js.map +1 -1
- package/package.json +1 -1
- package/sdk/sdk.d.ts +0 -3
- package/sdk/sdk.d.ts.map +1 -1
- package/sdk/sdk.js +0 -5
- package/sdk/sdk.js.map +1 -1
- package/src/lib/config.ts +6 -6
- package/src/models/components/channeltarget.ts +32 -32
- package/src/models/components/channeltargetcreaterequest.ts +24 -24
- package/src/models/components/channeltargetupdaterequest.ts +24 -24
- package/src/models/components/function.ts +136 -0
- package/src/models/components/httpendpoint.ts +158 -0
- package/src/models/components/index.ts +7 -0
- package/src/models/components/sdkinternaltool.ts +88 -0
- package/src/models/components/sdktooldefinition.ts +298 -0
- package/src/models/components/testmessage.ts +6 -0
- package/src/models/components/tool.ts +10 -56
- package/src/models/components/toolcreate.ts +10 -60
- package/src/models/components/toolparameterdefault.ts +78 -0
- package/src/models/components/toolparametertransform.ts +125 -0
- package/src/models/components/toolparametertransformcondition.ts +88 -0
- package/src/models/components/toolupdate.ts +10 -60
- package/src/sdk/sdk.ts +0 -6
- package/docs/sdks/v1/README.md +0 -629
- package/funcs/v1AgentGetAvailableVoices.d.ts +0 -15
- package/funcs/v1AgentGetAvailableVoices.d.ts.map +0 -1
- package/funcs/v1AgentGetAvailableVoices.js +0 -87
- package/funcs/v1AgentGetAvailableVoices.js.map +0 -1
- package/funcs/v1Create.d.ts +0 -16
- package/funcs/v1Create.d.ts.map +0 -1
- package/funcs/v1Create.js +0 -100
- package/funcs/v1Create.js.map +0 -1
- package/funcs/v1Delete.d.ts +0 -16
- package/funcs/v1Delete.d.ts.map +0 -1
- package/funcs/v1Delete.js +0 -106
- package/funcs/v1Delete.js.map +0 -1
- package/funcs/v1DirectoryMemberBulkLoad.d.ts +0 -16
- package/funcs/v1DirectoryMemberBulkLoad.d.ts.map +0 -1
- package/funcs/v1DirectoryMemberBulkLoad.js +0 -113
- package/funcs/v1DirectoryMemberBulkLoad.js.map +0 -1
- package/funcs/v1DirectoryMemberDownload.d.ts +0 -14
- package/funcs/v1DirectoryMemberDownload.d.ts.map +0 -1
- package/funcs/v1DirectoryMemberDownload.js +0 -86
- package/funcs/v1DirectoryMemberDownload.js.map +0 -1
- package/funcs/v1GetById.d.ts +0 -17
- package/funcs/v1GetById.d.ts.map +0 -1
- package/funcs/v1GetById.js +0 -106
- package/funcs/v1GetById.js.map +0 -1
- package/funcs/v1List.d.ts +0 -17
- package/funcs/v1List.d.ts.map +0 -1
- package/funcs/v1List.js +0 -112
- package/funcs/v1List.js.map +0 -1
- package/funcs/v1Update.d.ts +0 -17
- package/funcs/v1Update.d.ts.map +0 -1
- package/funcs/v1Update.js +0 -107
- package/funcs/v1Update.js.map +0 -1
- package/sdk/v1.d.ts +0 -62
- package/sdk/v1.d.ts.map +0 -1
- package/sdk/v1.js +0 -92
- package/sdk/v1.js.map +0 -1
- package/src/funcs/v1AgentGetAvailableVoices.ts +0 -109
- package/src/funcs/v1Create.ts +0 -132
- package/src/funcs/v1Delete.ts +0 -140
- package/src/funcs/v1DirectoryMemberBulkLoad.ts +0 -149
- package/src/funcs/v1DirectoryMemberDownload.ts +0 -108
- package/src/funcs/v1GetById.ts +0 -140
- package/src/funcs/v1List.ts +0 -146
- package/src/funcs/v1Update.ts +0 -141
- package/src/sdk/v1.ts +0 -150
package/docs/sdks/v1/README.md
DELETED
|
@@ -1,629 +0,0 @@
|
|
|
1
|
-
# V1
|
|
2
|
-
(*v1*)
|
|
3
|
-
|
|
4
|
-
## Overview
|
|
5
|
-
|
|
6
|
-
### Available Operations
|
|
7
|
-
|
|
8
|
-
* [agentGetAvailableVoices](#agentgetavailablevoices) - Get Available Agent Voices
|
|
9
|
-
* [list](#list) - Directory Member List
|
|
10
|
-
* [create](#create) - Create Directory Member
|
|
11
|
-
* [getById](#getbyid) - Get Directory Member By Id
|
|
12
|
-
* [update](#update) - Update Directory Member
|
|
13
|
-
* [delete](#delete) - Delete Directory Member
|
|
14
|
-
* [directoryMemberBulkLoad](#directorymemberbulkload) - Bulk Load Directory Members
|
|
15
|
-
* [directoryMemberDownload](#directorymemberdownload) - Download Directory Members
|
|
16
|
-
|
|
17
|
-
## agentGetAvailableVoices
|
|
18
|
-
|
|
19
|
-
Get available agent voices.
|
|
20
|
-
|
|
21
|
-
### Example Usage
|
|
22
|
-
|
|
23
|
-
```typescript
|
|
24
|
-
import { SyllableSDK } from "syllable-sdk";
|
|
25
|
-
|
|
26
|
-
const syllableSDK = new SyllableSDK({
|
|
27
|
-
apiKeyHeader: process.env["SYLLABLESDK_API_KEY_HEADER"] ?? "",
|
|
28
|
-
});
|
|
29
|
-
|
|
30
|
-
async function run() {
|
|
31
|
-
const result = await syllableSDK.v1.agentGetAvailableVoices();
|
|
32
|
-
|
|
33
|
-
// Handle the result
|
|
34
|
-
console.log(result);
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
run();
|
|
38
|
-
```
|
|
39
|
-
|
|
40
|
-
### Standalone function
|
|
41
|
-
|
|
42
|
-
The standalone function version of this method:
|
|
43
|
-
|
|
44
|
-
```typescript
|
|
45
|
-
import { SyllableSDKCore } from "syllable-sdk/core.js";
|
|
46
|
-
import { v1AgentGetAvailableVoices } from "syllable-sdk/funcs/v1AgentGetAvailableVoices.js";
|
|
47
|
-
|
|
48
|
-
// Use `SyllableSDKCore` for best tree-shaking performance.
|
|
49
|
-
// You can create one instance of it to use across an application.
|
|
50
|
-
const syllableSDK = new SyllableSDKCore({
|
|
51
|
-
apiKeyHeader: process.env["SYLLABLESDK_API_KEY_HEADER"] ?? "",
|
|
52
|
-
});
|
|
53
|
-
|
|
54
|
-
async function run() {
|
|
55
|
-
const res = await v1AgentGetAvailableVoices(syllableSDK);
|
|
56
|
-
|
|
57
|
-
if (!res.ok) {
|
|
58
|
-
throw res.error;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
const { value: result } = res;
|
|
62
|
-
|
|
63
|
-
// Handle the result
|
|
64
|
-
console.log(result);
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
run();
|
|
68
|
-
```
|
|
69
|
-
|
|
70
|
-
### Parameters
|
|
71
|
-
|
|
72
|
-
| Parameter | Type | Required | Description |
|
|
73
|
-
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
74
|
-
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
75
|
-
| `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. |
|
|
76
|
-
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
77
|
-
|
|
78
|
-
### Response
|
|
79
|
-
|
|
80
|
-
**Promise\<[components.AgentVoice[]](../../models/.md)\>**
|
|
81
|
-
|
|
82
|
-
### Errors
|
|
83
|
-
|
|
84
|
-
| Error Type | Status Code | Content Type |
|
|
85
|
-
| --------------- | --------------- | --------------- |
|
|
86
|
-
| errors.SDKError | 4XX, 5XX | \*/\* |
|
|
87
|
-
|
|
88
|
-
## list
|
|
89
|
-
|
|
90
|
-
List the existing directory_members
|
|
91
|
-
|
|
92
|
-
### Example Usage
|
|
93
|
-
|
|
94
|
-
```typescript
|
|
95
|
-
import { SyllableSDK } from "syllable-sdk";
|
|
96
|
-
|
|
97
|
-
const syllableSDK = new SyllableSDK({
|
|
98
|
-
apiKeyHeader: process.env["SYLLABLESDK_API_KEY_HEADER"] ?? "",
|
|
99
|
-
});
|
|
100
|
-
|
|
101
|
-
async function run() {
|
|
102
|
-
const result = await syllableSDK.v1.list({});
|
|
103
|
-
|
|
104
|
-
// Handle the result
|
|
105
|
-
console.log(result);
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
run();
|
|
109
|
-
```
|
|
110
|
-
|
|
111
|
-
### Standalone function
|
|
112
|
-
|
|
113
|
-
The standalone function version of this method:
|
|
114
|
-
|
|
115
|
-
```typescript
|
|
116
|
-
import { SyllableSDKCore } from "syllable-sdk/core.js";
|
|
117
|
-
import { v1List } from "syllable-sdk/funcs/v1List.js";
|
|
118
|
-
|
|
119
|
-
// Use `SyllableSDKCore` for best tree-shaking performance.
|
|
120
|
-
// You can create one instance of it to use across an application.
|
|
121
|
-
const syllableSDK = new SyllableSDKCore({
|
|
122
|
-
apiKeyHeader: process.env["SYLLABLESDK_API_KEY_HEADER"] ?? "",
|
|
123
|
-
});
|
|
124
|
-
|
|
125
|
-
async function run() {
|
|
126
|
-
const res = await v1List(syllableSDK, {});
|
|
127
|
-
|
|
128
|
-
if (!res.ok) {
|
|
129
|
-
throw res.error;
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
const { value: result } = res;
|
|
133
|
-
|
|
134
|
-
// Handle the result
|
|
135
|
-
console.log(result);
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
run();
|
|
139
|
-
```
|
|
140
|
-
|
|
141
|
-
### Parameters
|
|
142
|
-
|
|
143
|
-
| Parameter | Type | Required | Description |
|
|
144
|
-
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
145
|
-
| `request` | [operations.DirectoryMemberListRequest](../../models/operations/directorymemberlistrequest.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
146
|
-
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
147
|
-
| `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. |
|
|
148
|
-
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
149
|
-
|
|
150
|
-
### Response
|
|
151
|
-
|
|
152
|
-
**Promise\<[components.ListResponseDirectoryMember](../../models/components/listresponsedirectorymember.md)\>**
|
|
153
|
-
|
|
154
|
-
### Errors
|
|
155
|
-
|
|
156
|
-
| Error Type | Status Code | Content Type |
|
|
157
|
-
| -------------------------- | -------------------------- | -------------------------- |
|
|
158
|
-
| errors.HTTPValidationError | 422 | application/json |
|
|
159
|
-
| errors.SDKError | 4XX, 5XX | \*/\* |
|
|
160
|
-
|
|
161
|
-
## create
|
|
162
|
-
|
|
163
|
-
Create a new member in the directory
|
|
164
|
-
|
|
165
|
-
### Example Usage
|
|
166
|
-
|
|
167
|
-
```typescript
|
|
168
|
-
import { SyllableSDK } from "syllable-sdk";
|
|
169
|
-
|
|
170
|
-
const syllableSDK = new SyllableSDK({
|
|
171
|
-
apiKeyHeader: process.env["SYLLABLESDK_API_KEY_HEADER"] ?? "",
|
|
172
|
-
});
|
|
173
|
-
|
|
174
|
-
async function run() {
|
|
175
|
-
const result = await syllableSDK.v1.create({
|
|
176
|
-
name: "<value>",
|
|
177
|
-
type: "<value>",
|
|
178
|
-
});
|
|
179
|
-
|
|
180
|
-
// Handle the result
|
|
181
|
-
console.log(result);
|
|
182
|
-
}
|
|
183
|
-
|
|
184
|
-
run();
|
|
185
|
-
```
|
|
186
|
-
|
|
187
|
-
### Standalone function
|
|
188
|
-
|
|
189
|
-
The standalone function version of this method:
|
|
190
|
-
|
|
191
|
-
```typescript
|
|
192
|
-
import { SyllableSDKCore } from "syllable-sdk/core.js";
|
|
193
|
-
import { v1Create } from "syllable-sdk/funcs/v1Create.js";
|
|
194
|
-
|
|
195
|
-
// Use `SyllableSDKCore` for best tree-shaking performance.
|
|
196
|
-
// You can create one instance of it to use across an application.
|
|
197
|
-
const syllableSDK = new SyllableSDKCore({
|
|
198
|
-
apiKeyHeader: process.env["SYLLABLESDK_API_KEY_HEADER"] ?? "",
|
|
199
|
-
});
|
|
200
|
-
|
|
201
|
-
async function run() {
|
|
202
|
-
const res = await v1Create(syllableSDK, {
|
|
203
|
-
name: "<value>",
|
|
204
|
-
type: "<value>",
|
|
205
|
-
});
|
|
206
|
-
|
|
207
|
-
if (!res.ok) {
|
|
208
|
-
throw res.error;
|
|
209
|
-
}
|
|
210
|
-
|
|
211
|
-
const { value: result } = res;
|
|
212
|
-
|
|
213
|
-
// Handle the result
|
|
214
|
-
console.log(result);
|
|
215
|
-
}
|
|
216
|
-
|
|
217
|
-
run();
|
|
218
|
-
```
|
|
219
|
-
|
|
220
|
-
### Parameters
|
|
221
|
-
|
|
222
|
-
| Parameter | Type | Required | Description |
|
|
223
|
-
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
224
|
-
| `request` | [components.DirectoryMemberCreate](../../models/components/directorymembercreate.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
225
|
-
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
226
|
-
| `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. |
|
|
227
|
-
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
228
|
-
|
|
229
|
-
### Response
|
|
230
|
-
|
|
231
|
-
**Promise\<[components.DirectoryMember](../../models/components/directorymember.md)\>**
|
|
232
|
-
|
|
233
|
-
### Errors
|
|
234
|
-
|
|
235
|
-
| Error Type | Status Code | Content Type |
|
|
236
|
-
| -------------------------- | -------------------------- | -------------------------- |
|
|
237
|
-
| errors.HTTPValidationError | 422 | application/json |
|
|
238
|
-
| errors.SDKError | 4XX, 5XX | \*/\* |
|
|
239
|
-
|
|
240
|
-
## getById
|
|
241
|
-
|
|
242
|
-
Get a DirectoryMember by ID.
|
|
243
|
-
|
|
244
|
-
### Example Usage
|
|
245
|
-
|
|
246
|
-
```typescript
|
|
247
|
-
import { SyllableSDK } from "syllable-sdk";
|
|
248
|
-
|
|
249
|
-
const syllableSDK = new SyllableSDK({
|
|
250
|
-
apiKeyHeader: process.env["SYLLABLESDK_API_KEY_HEADER"] ?? "",
|
|
251
|
-
});
|
|
252
|
-
|
|
253
|
-
async function run() {
|
|
254
|
-
const result = await syllableSDK.v1.getById({
|
|
255
|
-
memberId: 931598,
|
|
256
|
-
});
|
|
257
|
-
|
|
258
|
-
// Handle the result
|
|
259
|
-
console.log(result);
|
|
260
|
-
}
|
|
261
|
-
|
|
262
|
-
run();
|
|
263
|
-
```
|
|
264
|
-
|
|
265
|
-
### Standalone function
|
|
266
|
-
|
|
267
|
-
The standalone function version of this method:
|
|
268
|
-
|
|
269
|
-
```typescript
|
|
270
|
-
import { SyllableSDKCore } from "syllable-sdk/core.js";
|
|
271
|
-
import { v1GetById } from "syllable-sdk/funcs/v1GetById.js";
|
|
272
|
-
|
|
273
|
-
// Use `SyllableSDKCore` for best tree-shaking performance.
|
|
274
|
-
// You can create one instance of it to use across an application.
|
|
275
|
-
const syllableSDK = new SyllableSDKCore({
|
|
276
|
-
apiKeyHeader: process.env["SYLLABLESDK_API_KEY_HEADER"] ?? "",
|
|
277
|
-
});
|
|
278
|
-
|
|
279
|
-
async function run() {
|
|
280
|
-
const res = await v1GetById(syllableSDK, {
|
|
281
|
-
memberId: 931598,
|
|
282
|
-
});
|
|
283
|
-
|
|
284
|
-
if (!res.ok) {
|
|
285
|
-
throw res.error;
|
|
286
|
-
}
|
|
287
|
-
|
|
288
|
-
const { value: result } = res;
|
|
289
|
-
|
|
290
|
-
// Handle the result
|
|
291
|
-
console.log(result);
|
|
292
|
-
}
|
|
293
|
-
|
|
294
|
-
run();
|
|
295
|
-
```
|
|
296
|
-
|
|
297
|
-
### Parameters
|
|
298
|
-
|
|
299
|
-
| Parameter | Type | Required | Description |
|
|
300
|
-
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
301
|
-
| `request` | [operations.DirectoryMemberGetByIdRequest](../../models/operations/directorymembergetbyidrequest.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
302
|
-
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
303
|
-
| `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. |
|
|
304
|
-
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
305
|
-
|
|
306
|
-
### Response
|
|
307
|
-
|
|
308
|
-
**Promise\<[components.DirectoryMember](../../models/components/directorymember.md)\>**
|
|
309
|
-
|
|
310
|
-
### Errors
|
|
311
|
-
|
|
312
|
-
| Error Type | Status Code | Content Type |
|
|
313
|
-
| -------------------------- | -------------------------- | -------------------------- |
|
|
314
|
-
| errors.HTTPValidationError | 422 | application/json |
|
|
315
|
-
| errors.SDKError | 4XX, 5XX | \*/\* |
|
|
316
|
-
|
|
317
|
-
## update
|
|
318
|
-
|
|
319
|
-
Update a DirectoryMember.
|
|
320
|
-
|
|
321
|
-
### Example Usage
|
|
322
|
-
|
|
323
|
-
```typescript
|
|
324
|
-
import { SyllableSDK } from "syllable-sdk";
|
|
325
|
-
|
|
326
|
-
const syllableSDK = new SyllableSDK({
|
|
327
|
-
apiKeyHeader: process.env["SYLLABLESDK_API_KEY_HEADER"] ?? "",
|
|
328
|
-
});
|
|
329
|
-
|
|
330
|
-
async function run() {
|
|
331
|
-
const result = await syllableSDK.v1.update({
|
|
332
|
-
memberId: 597129,
|
|
333
|
-
directoryMember: {
|
|
334
|
-
name: "<value>",
|
|
335
|
-
type: "<value>",
|
|
336
|
-
id: 857478,
|
|
337
|
-
},
|
|
338
|
-
});
|
|
339
|
-
|
|
340
|
-
// Handle the result
|
|
341
|
-
console.log(result);
|
|
342
|
-
}
|
|
343
|
-
|
|
344
|
-
run();
|
|
345
|
-
```
|
|
346
|
-
|
|
347
|
-
### Standalone function
|
|
348
|
-
|
|
349
|
-
The standalone function version of this method:
|
|
350
|
-
|
|
351
|
-
```typescript
|
|
352
|
-
import { SyllableSDKCore } from "syllable-sdk/core.js";
|
|
353
|
-
import { v1Update } from "syllable-sdk/funcs/v1Update.js";
|
|
354
|
-
|
|
355
|
-
// Use `SyllableSDKCore` for best tree-shaking performance.
|
|
356
|
-
// You can create one instance of it to use across an application.
|
|
357
|
-
const syllableSDK = new SyllableSDKCore({
|
|
358
|
-
apiKeyHeader: process.env["SYLLABLESDK_API_KEY_HEADER"] ?? "",
|
|
359
|
-
});
|
|
360
|
-
|
|
361
|
-
async function run() {
|
|
362
|
-
const res = await v1Update(syllableSDK, {
|
|
363
|
-
memberId: 597129,
|
|
364
|
-
directoryMember: {
|
|
365
|
-
name: "<value>",
|
|
366
|
-
type: "<value>",
|
|
367
|
-
id: 857478,
|
|
368
|
-
},
|
|
369
|
-
});
|
|
370
|
-
|
|
371
|
-
if (!res.ok) {
|
|
372
|
-
throw res.error;
|
|
373
|
-
}
|
|
374
|
-
|
|
375
|
-
const { value: result } = res;
|
|
376
|
-
|
|
377
|
-
// Handle the result
|
|
378
|
-
console.log(result);
|
|
379
|
-
}
|
|
380
|
-
|
|
381
|
-
run();
|
|
382
|
-
```
|
|
383
|
-
|
|
384
|
-
### Parameters
|
|
385
|
-
|
|
386
|
-
| Parameter | Type | Required | Description |
|
|
387
|
-
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
388
|
-
| `request` | [operations.DirectoryMemberUpdateRequest](../../models/operations/directorymemberupdaterequest.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
389
|
-
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
390
|
-
| `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. |
|
|
391
|
-
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
392
|
-
|
|
393
|
-
### Response
|
|
394
|
-
|
|
395
|
-
**Promise\<[components.DirectoryMember](../../models/components/directorymember.md)\>**
|
|
396
|
-
|
|
397
|
-
### Errors
|
|
398
|
-
|
|
399
|
-
| Error Type | Status Code | Content Type |
|
|
400
|
-
| -------------------------- | -------------------------- | -------------------------- |
|
|
401
|
-
| errors.HTTPValidationError | 422 | application/json |
|
|
402
|
-
| errors.SDKError | 4XX, 5XX | \*/\* |
|
|
403
|
-
|
|
404
|
-
## delete
|
|
405
|
-
|
|
406
|
-
Delete a DirectoryMember.
|
|
407
|
-
|
|
408
|
-
### Example Usage
|
|
409
|
-
|
|
410
|
-
```typescript
|
|
411
|
-
import { SyllableSDK } from "syllable-sdk";
|
|
412
|
-
|
|
413
|
-
const syllableSDK = new SyllableSDK({
|
|
414
|
-
apiKeyHeader: process.env["SYLLABLESDK_API_KEY_HEADER"] ?? "",
|
|
415
|
-
});
|
|
416
|
-
|
|
417
|
-
async function run() {
|
|
418
|
-
const result = await syllableSDK.v1.delete({
|
|
419
|
-
memberId: 545907,
|
|
420
|
-
});
|
|
421
|
-
|
|
422
|
-
// Handle the result
|
|
423
|
-
console.log(result);
|
|
424
|
-
}
|
|
425
|
-
|
|
426
|
-
run();
|
|
427
|
-
```
|
|
428
|
-
|
|
429
|
-
### Standalone function
|
|
430
|
-
|
|
431
|
-
The standalone function version of this method:
|
|
432
|
-
|
|
433
|
-
```typescript
|
|
434
|
-
import { SyllableSDKCore } from "syllable-sdk/core.js";
|
|
435
|
-
import { v1Delete } from "syllable-sdk/funcs/v1Delete.js";
|
|
436
|
-
|
|
437
|
-
// Use `SyllableSDKCore` for best tree-shaking performance.
|
|
438
|
-
// You can create one instance of it to use across an application.
|
|
439
|
-
const syllableSDK = new SyllableSDKCore({
|
|
440
|
-
apiKeyHeader: process.env["SYLLABLESDK_API_KEY_HEADER"] ?? "",
|
|
441
|
-
});
|
|
442
|
-
|
|
443
|
-
async function run() {
|
|
444
|
-
const res = await v1Delete(syllableSDK, {
|
|
445
|
-
memberId: 545907,
|
|
446
|
-
});
|
|
447
|
-
|
|
448
|
-
if (!res.ok) {
|
|
449
|
-
throw res.error;
|
|
450
|
-
}
|
|
451
|
-
|
|
452
|
-
const { value: result } = res;
|
|
453
|
-
|
|
454
|
-
// Handle the result
|
|
455
|
-
console.log(result);
|
|
456
|
-
}
|
|
457
|
-
|
|
458
|
-
run();
|
|
459
|
-
```
|
|
460
|
-
|
|
461
|
-
### Parameters
|
|
462
|
-
|
|
463
|
-
| Parameter | Type | Required | Description |
|
|
464
|
-
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
465
|
-
| `request` | [operations.DirectoryMemberDeleteRequest](../../models/operations/directorymemberdeleterequest.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
466
|
-
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
467
|
-
| `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. |
|
|
468
|
-
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
469
|
-
|
|
470
|
-
### Response
|
|
471
|
-
|
|
472
|
-
**Promise\<[any](../../models/.md)\>**
|
|
473
|
-
|
|
474
|
-
### Errors
|
|
475
|
-
|
|
476
|
-
| Error Type | Status Code | Content Type |
|
|
477
|
-
| -------------------------- | -------------------------- | -------------------------- |
|
|
478
|
-
| errors.HTTPValidationError | 422 | application/json |
|
|
479
|
-
| errors.SDKError | 4XX, 5XX | \*/\* |
|
|
480
|
-
|
|
481
|
-
## directoryMemberBulkLoad
|
|
482
|
-
|
|
483
|
-
Update Directory Members in chunks of 100.
|
|
484
|
-
|
|
485
|
-
### Example Usage
|
|
486
|
-
|
|
487
|
-
```typescript
|
|
488
|
-
import { openAsBlob } from "node:fs";
|
|
489
|
-
import { SyllableSDK } from "syllable-sdk";
|
|
490
|
-
|
|
491
|
-
const syllableSDK = new SyllableSDK({
|
|
492
|
-
apiKeyHeader: process.env["SYLLABLESDK_API_KEY_HEADER"] ?? "",
|
|
493
|
-
});
|
|
494
|
-
|
|
495
|
-
async function run() {
|
|
496
|
-
const result = await syllableSDK.v1.directoryMemberBulkLoad({
|
|
497
|
-
file: await openAsBlob("example.file"),
|
|
498
|
-
});
|
|
499
|
-
|
|
500
|
-
// Handle the result
|
|
501
|
-
console.log(result);
|
|
502
|
-
}
|
|
503
|
-
|
|
504
|
-
run();
|
|
505
|
-
```
|
|
506
|
-
|
|
507
|
-
### Standalone function
|
|
508
|
-
|
|
509
|
-
The standalone function version of this method:
|
|
510
|
-
|
|
511
|
-
```typescript
|
|
512
|
-
import { openAsBlob } from "node:fs";
|
|
513
|
-
import { SyllableSDKCore } from "syllable-sdk/core.js";
|
|
514
|
-
import { v1DirectoryMemberBulkLoad } from "syllable-sdk/funcs/v1DirectoryMemberBulkLoad.js";
|
|
515
|
-
|
|
516
|
-
// Use `SyllableSDKCore` for best tree-shaking performance.
|
|
517
|
-
// You can create one instance of it to use across an application.
|
|
518
|
-
const syllableSDK = new SyllableSDKCore({
|
|
519
|
-
apiKeyHeader: process.env["SYLLABLESDK_API_KEY_HEADER"] ?? "",
|
|
520
|
-
});
|
|
521
|
-
|
|
522
|
-
async function run() {
|
|
523
|
-
const res = await v1DirectoryMemberBulkLoad(syllableSDK, {
|
|
524
|
-
file: await openAsBlob("example.file"),
|
|
525
|
-
});
|
|
526
|
-
|
|
527
|
-
if (!res.ok) {
|
|
528
|
-
throw res.error;
|
|
529
|
-
}
|
|
530
|
-
|
|
531
|
-
const { value: result } = res;
|
|
532
|
-
|
|
533
|
-
// Handle the result
|
|
534
|
-
console.log(result);
|
|
535
|
-
}
|
|
536
|
-
|
|
537
|
-
run();
|
|
538
|
-
```
|
|
539
|
-
|
|
540
|
-
### Parameters
|
|
541
|
-
|
|
542
|
-
| Parameter | Type | Required | Description |
|
|
543
|
-
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
544
|
-
| `request` | [components.BodyDirectoryMemberBulkLoad](../../models/components/bodydirectorymemberbulkload.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
545
|
-
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
546
|
-
| `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. |
|
|
547
|
-
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
548
|
-
|
|
549
|
-
### Response
|
|
550
|
-
|
|
551
|
-
**Promise\<[any](../../models/.md)\>**
|
|
552
|
-
|
|
553
|
-
### Errors
|
|
554
|
-
|
|
555
|
-
| Error Type | Status Code | Content Type |
|
|
556
|
-
| -------------------------- | -------------------------- | -------------------------- |
|
|
557
|
-
| errors.HTTPValidationError | 422 | application/json |
|
|
558
|
-
| errors.SDKError | 4XX, 5XX | \*/\* |
|
|
559
|
-
|
|
560
|
-
## directoryMemberDownload
|
|
561
|
-
|
|
562
|
-
Download the entire directory as a JSON file.
|
|
563
|
-
|
|
564
|
-
### Example Usage
|
|
565
|
-
|
|
566
|
-
```typescript
|
|
567
|
-
import { SyllableSDK } from "syllable-sdk";
|
|
568
|
-
|
|
569
|
-
const syllableSDK = new SyllableSDK({
|
|
570
|
-
apiKeyHeader: process.env["SYLLABLESDK_API_KEY_HEADER"] ?? "",
|
|
571
|
-
});
|
|
572
|
-
|
|
573
|
-
async function run() {
|
|
574
|
-
const result = await syllableSDK.v1.directoryMemberDownload();
|
|
575
|
-
|
|
576
|
-
// Handle the result
|
|
577
|
-
console.log(result);
|
|
578
|
-
}
|
|
579
|
-
|
|
580
|
-
run();
|
|
581
|
-
```
|
|
582
|
-
|
|
583
|
-
### Standalone function
|
|
584
|
-
|
|
585
|
-
The standalone function version of this method:
|
|
586
|
-
|
|
587
|
-
```typescript
|
|
588
|
-
import { SyllableSDKCore } from "syllable-sdk/core.js";
|
|
589
|
-
import { v1DirectoryMemberDownload } from "syllable-sdk/funcs/v1DirectoryMemberDownload.js";
|
|
590
|
-
|
|
591
|
-
// Use `SyllableSDKCore` for best tree-shaking performance.
|
|
592
|
-
// You can create one instance of it to use across an application.
|
|
593
|
-
const syllableSDK = new SyllableSDKCore({
|
|
594
|
-
apiKeyHeader: process.env["SYLLABLESDK_API_KEY_HEADER"] ?? "",
|
|
595
|
-
});
|
|
596
|
-
|
|
597
|
-
async function run() {
|
|
598
|
-
const res = await v1DirectoryMemberDownload(syllableSDK);
|
|
599
|
-
|
|
600
|
-
if (!res.ok) {
|
|
601
|
-
throw res.error;
|
|
602
|
-
}
|
|
603
|
-
|
|
604
|
-
const { value: result } = res;
|
|
605
|
-
|
|
606
|
-
// Handle the result
|
|
607
|
-
console.log(result);
|
|
608
|
-
}
|
|
609
|
-
|
|
610
|
-
run();
|
|
611
|
-
```
|
|
612
|
-
|
|
613
|
-
### Parameters
|
|
614
|
-
|
|
615
|
-
| Parameter | Type | Required | Description |
|
|
616
|
-
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
617
|
-
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
618
|
-
| `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. |
|
|
619
|
-
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
620
|
-
|
|
621
|
-
### Response
|
|
622
|
-
|
|
623
|
-
**Promise\<[any](../../models/.md)\>**
|
|
624
|
-
|
|
625
|
-
### Errors
|
|
626
|
-
|
|
627
|
-
| Error Type | Status Code | Content Type |
|
|
628
|
-
| --------------- | --------------- | --------------- |
|
|
629
|
-
| errors.SDKError | 4XX, 5XX | \*/\* |
|