@unified-api/typescript-sdk 2.9.22 → 2.9.23
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/FUNCTIONS.md +1 -1
- package/README.md +20 -8
- package/docs/sdks/account/README.md +12 -12
- package/docs/sdks/accounting/README.md +76 -76
- package/docs/sdks/activity/README.md +12 -12
- package/docs/sdks/application/README.md +12 -12
- package/docs/sdks/applicationstatus/README.md +2 -2
- package/docs/sdks/ats/README.md +90 -90
- package/docs/sdks/auth/README.md +4 -4
- package/docs/sdks/call/README.md +2 -2
- package/docs/sdks/candidate/README.md +12 -12
- package/docs/sdks/channel/README.md +4 -4
- package/docs/sdks/collection/README.md +12 -12
- package/docs/sdks/comment/README.md +494 -0
- package/docs/sdks/commerce/README.md +48 -48
- package/docs/sdks/company/README.md +30 -30
- package/docs/sdks/contact/README.md +36 -36
- package/docs/sdks/crm/README.md +72 -72
- package/docs/sdks/customer/README.md +12 -12
- package/docs/sdks/deal/README.md +12 -12
- package/docs/sdks/document/README.md +12 -12
- package/docs/sdks/employee/README.md +12 -12
- package/docs/sdks/enrich/README.md +4 -4
- package/docs/sdks/event/README.md +12 -12
- package/docs/sdks/file/README.md +12 -12
- package/docs/sdks/genai/README.md +4 -4
- package/docs/sdks/group/README.md +12 -12
- package/docs/sdks/hris/README.md +56 -56
- package/docs/sdks/integration/README.md +4 -4
- package/docs/sdks/interview/README.md +12 -12
- package/docs/sdks/inventory/README.md +12 -12
- package/docs/sdks/invoice/README.md +12 -12
- package/docs/sdks/item/README.md +12 -12
- package/docs/sdks/job/README.md +12 -12
- package/docs/sdks/journal/README.md +12 -12
- package/docs/sdks/kms/README.md +518 -24
- package/docs/sdks/lead/README.md +12 -12
- package/docs/sdks/link/README.md +12 -12
- package/docs/sdks/list/README.md +12 -12
- package/docs/sdks/location/README.md +24 -24
- package/docs/sdks/login/README.md +2 -2
- package/docs/sdks/martech/README.md +24 -24
- package/docs/sdks/member/README.md +12 -12
- package/docs/sdks/message/README.md +12 -12
- package/docs/sdks/messaging/README.md +16 -16
- package/docs/sdks/model/README.md +2 -2
- package/docs/sdks/note/README.md +12 -12
- package/docs/sdks/organization/README.md +4 -4
- package/docs/sdks/page/README.md +12 -12
- package/docs/sdks/passthrough/README.md +28 -28
- package/docs/sdks/payment/README.md +32 -32
- package/docs/sdks/payout/README.md +4 -4
- package/docs/sdks/payslip/README.md +4 -4
- package/docs/sdks/person/README.md +2 -2
- package/docs/sdks/pipeline/README.md +12 -12
- package/docs/sdks/project/README.md +12 -12
- package/docs/sdks/prompt/README.md +2 -2
- package/docs/sdks/refund/README.md +4 -4
- package/docs/sdks/scorecard/README.md +12 -12
- package/docs/sdks/space/README.md +12 -12
- package/docs/sdks/storage/README.md +12 -12
- package/docs/sdks/task/README.md +24 -24
- package/docs/sdks/taxrate/README.md +12 -12
- package/docs/sdks/ticket/README.md +12 -12
- package/docs/sdks/ticketing/README.md +36 -36
- package/docs/sdks/timeoff/README.md +4 -4
- package/docs/sdks/transaction/README.md +12 -12
- package/docs/sdks/uc/README.md +14 -14
- package/docs/sdks/unified/README.md +4 -4
- package/funcs/commentCreateKmsComment.d.ts +13 -0
- package/funcs/commentCreateKmsComment.d.ts.map +1 -0
- package/funcs/commentCreateKmsComment.js +104 -0
- package/funcs/commentCreateKmsComment.js.map +1 -0
- package/funcs/commentGetKmsComment.d.ts +13 -0
- package/funcs/commentGetKmsComment.d.ts.map +1 -0
- package/funcs/commentGetKmsComment.js +107 -0
- package/funcs/commentGetKmsComment.js.map +1 -0
- package/funcs/commentListKmsComments.d.ts +13 -0
- package/funcs/commentListKmsComments.d.ts.map +1 -0
- package/funcs/commentListKmsComments.js +113 -0
- package/funcs/commentListKmsComments.js.map +1 -0
- package/funcs/commentPatchKmsComment.d.ts +13 -0
- package/funcs/commentPatchKmsComment.d.ts.map +1 -0
- package/funcs/commentPatchKmsComment.js +108 -0
- package/funcs/commentPatchKmsComment.js.map +1 -0
- package/funcs/commentRemoveKmsComment.d.ts +12 -0
- package/funcs/commentRemoveKmsComment.d.ts.map +1 -0
- package/funcs/commentRemoveKmsComment.js +105 -0
- package/funcs/commentRemoveKmsComment.js.map +1 -0
- package/funcs/commentUpdateKmsComment.d.ts +13 -0
- package/funcs/commentUpdateKmsComment.d.ts.map +1 -0
- package/funcs/commentUpdateKmsComment.js +108 -0
- package/funcs/commentUpdateKmsComment.js.map +1 -0
- package/funcs/kmsCreateKmsComment.d.ts +13 -0
- package/funcs/kmsCreateKmsComment.d.ts.map +1 -0
- package/funcs/kmsCreateKmsComment.js +104 -0
- package/funcs/kmsCreateKmsComment.js.map +1 -0
- package/funcs/kmsGetKmsComment.d.ts +13 -0
- package/funcs/kmsGetKmsComment.d.ts.map +1 -0
- package/funcs/kmsGetKmsComment.js +107 -0
- package/funcs/kmsGetKmsComment.js.map +1 -0
- package/funcs/kmsListKmsComments.d.ts +13 -0
- package/funcs/kmsListKmsComments.d.ts.map +1 -0
- package/funcs/kmsListKmsComments.js +113 -0
- package/funcs/kmsListKmsComments.js.map +1 -0
- package/funcs/kmsPatchKmsComment.d.ts +13 -0
- package/funcs/kmsPatchKmsComment.d.ts.map +1 -0
- package/funcs/kmsPatchKmsComment.js +108 -0
- package/funcs/kmsPatchKmsComment.js.map +1 -0
- package/funcs/kmsRemoveKmsComment.d.ts +12 -0
- package/funcs/kmsRemoveKmsComment.d.ts.map +1 -0
- package/funcs/kmsRemoveKmsComment.js +105 -0
- package/funcs/kmsRemoveKmsComment.js.map +1 -0
- package/funcs/kmsUpdateKmsComment.d.ts +13 -0
- package/funcs/kmsUpdateKmsComment.d.ts.map +1 -0
- package/funcs/kmsUpdateKmsComment.js +108 -0
- package/funcs/kmsUpdateKmsComment.js.map +1 -0
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/lib/schemas.d.ts +1 -1
- package/lib/schemas.d.ts.map +1 -1
- package/lib/schemas.js +4 -1
- package/lib/schemas.js.map +1 -1
- package/package.json +1 -1
- package/sdk/comment.d.ts +24 -0
- package/sdk/comment.d.ts.map +1 -1
- package/sdk/comment.js +42 -0
- package/sdk/comment.js.map +1 -1
- package/sdk/kms.d.ts +24 -0
- package/sdk/kms.d.ts.map +1 -1
- package/sdk/kms.js +42 -0
- package/sdk/kms.js.map +1 -1
- package/sdk/models/operations/createkmscomment.d.ts +40 -0
- package/sdk/models/operations/createkmscomment.d.ts.map +1 -0
- package/sdk/models/operations/createkmscomment.js +75 -0
- package/sdk/models/operations/createkmscomment.js.map +1 -0
- package/sdk/models/operations/getkmscomment.d.ts +42 -0
- package/sdk/models/operations/getkmscomment.d.ts.map +1 -0
- package/sdk/models/operations/getkmscomment.js +72 -0
- package/sdk/models/operations/getkmscomment.js.map +1 -0
- package/sdk/models/operations/index.d.ts +6 -0
- package/sdk/models/operations/index.d.ts.map +1 -1
- package/sdk/models/operations/index.js +6 -0
- package/sdk/models/operations/index.js.map +1 -1
- package/sdk/models/operations/listkmscomments.d.ts +61 -0
- package/sdk/models/operations/listkmscomments.d.ts.map +1 -0
- package/sdk/models/operations/listkmscomments.js +95 -0
- package/sdk/models/operations/listkmscomments.js.map +1 -0
- package/sdk/models/operations/patchkmscomment.d.ts +45 -0
- package/sdk/models/operations/patchkmscomment.d.ts.map +1 -0
- package/sdk/models/operations/patchkmscomment.js +77 -0
- package/sdk/models/operations/patchkmscomment.js.map +1 -0
- package/sdk/models/operations/removekmscomment.d.ts +66 -0
- package/sdk/models/operations/removekmscomment.d.ts.map +1 -0
- package/sdk/models/operations/removekmscomment.js +105 -0
- package/sdk/models/operations/removekmscomment.js.map +1 -0
- package/sdk/models/operations/updatekmscomment.d.ts +45 -0
- package/sdk/models/operations/updatekmscomment.d.ts.map +1 -0
- package/sdk/models/operations/updatekmscomment.js +77 -0
- package/sdk/models/operations/updatekmscomment.js.map +1 -0
- package/sdk/models/shared/index.d.ts +1 -0
- package/sdk/models/shared/index.d.ts.map +1 -1
- package/sdk/models/shared/index.js +1 -0
- package/sdk/models/shared/index.js.map +1 -1
- package/sdk/models/shared/integrationsupport.d.ts +32 -0
- package/sdk/models/shared/integrationsupport.d.ts.map +1 -1
- package/sdk/models/shared/integrationsupport.js +34 -5
- package/sdk/models/shared/integrationsupport.js.map +1 -1
- package/sdk/models/shared/kmscomment.d.ts +105 -0
- package/sdk/models/shared/kmscomment.d.ts.map +1 -0
- package/sdk/models/shared/kmscomment.js +138 -0
- package/sdk/models/shared/kmscomment.js.map +1 -0
- package/sdk/models/shared/repoorganization.d.ts +5 -0
- package/sdk/models/shared/repoorganization.d.ts.map +1 -1
- package/sdk/models/shared/repoorganization.js +4 -0
- package/sdk/models/shared/repoorganization.js.map +1 -1
- package/sdk/models/shared/webhook.d.ts +3 -0
- package/sdk/models/shared/webhook.d.ts.map +1 -1
- package/sdk/models/shared/webhook.js +1 -0
- package/sdk/models/shared/webhook.js.map +1 -1
- package/sdk/sdk.d.ts +2 -2
- package/sdk/sdk.d.ts.map +1 -1
- package/sdk/sdk.js +3 -3
- package/sdk/sdk.js.map +1 -1
- package/src/funcs/commentCreateKmsComment.ts +135 -0
- package/src/funcs/commentGetKmsComment.ts +138 -0
- package/src/funcs/commentListKmsComments.ts +144 -0
- package/src/funcs/commentPatchKmsComment.ts +139 -0
- package/src/funcs/commentRemoveKmsComment.ts +141 -0
- package/src/funcs/commentUpdateKmsComment.ts +139 -0
- package/src/funcs/kmsCreateKmsComment.ts +135 -0
- package/src/funcs/kmsGetKmsComment.ts +138 -0
- package/src/funcs/kmsListKmsComments.ts +144 -0
- package/src/funcs/kmsPatchKmsComment.ts +139 -0
- package/src/funcs/kmsRemoveKmsComment.ts +141 -0
- package/src/funcs/kmsUpdateKmsComment.ts +139 -0
- package/src/lib/config.ts +3 -3
- package/src/lib/schemas.ts +5 -0
- package/src/sdk/comment.ts +90 -0
- package/src/sdk/kms.ts +90 -0
- package/src/sdk/models/operations/createkmscomment.ts +92 -0
- package/src/sdk/models/operations/getkmscomment.ts +92 -0
- package/src/sdk/models/operations/index.ts +6 -0
- package/src/sdk/models/operations/listkmscomments.ts +134 -0
- package/src/sdk/models/operations/patchkmscomment.ts +99 -0
- package/src/sdk/models/operations/removekmscomment.ts +151 -0
- package/src/sdk/models/operations/updatekmscomment.ts +99 -0
- package/src/sdk/models/shared/index.ts +1 -0
- package/src/sdk/models/shared/integrationsupport.ts +38 -0
- package/src/sdk/models/shared/kmscomment.ts +173 -0
- package/src/sdk/models/shared/repoorganization.ts +9 -0
- package/src/sdk/models/shared/webhook.ts +1 -0
- package/src/sdk/sdk.ts +5 -5
|
@@ -5,13 +5,99 @@
|
|
|
5
5
|
|
|
6
6
|
### Available Operations
|
|
7
7
|
|
|
8
|
+
* [createKmsComment](#createkmscomment) - Create a comment
|
|
8
9
|
* [createTaskComment](#createtaskcomment) - Create a comment
|
|
10
|
+
* [getKmsComment](#getkmscomment) - Retrieve a comment
|
|
9
11
|
* [getTaskComment](#gettaskcomment) - Retrieve a comment
|
|
12
|
+
* [listKmsComments](#listkmscomments) - List all comments
|
|
10
13
|
* [listTaskComments](#listtaskcomments) - List all comments
|
|
14
|
+
* [patchKmsComment](#patchkmscomment) - Update a comment
|
|
11
15
|
* [patchTaskComment](#patchtaskcomment) - Update a comment
|
|
16
|
+
* [removeKmsComment](#removekmscomment) - Remove a comment
|
|
12
17
|
* [removeTaskComment](#removetaskcomment) - Remove a comment
|
|
18
|
+
* [updateKmsComment](#updatekmscomment) - Update a comment
|
|
13
19
|
* [updateTaskComment](#updatetaskcomment) - Update a comment
|
|
14
20
|
|
|
21
|
+
## createKmsComment
|
|
22
|
+
|
|
23
|
+
Create a comment
|
|
24
|
+
|
|
25
|
+
### Example Usage
|
|
26
|
+
|
|
27
|
+
```typescript
|
|
28
|
+
import { UnifiedTo } from "@unified-api/typescript-sdk";
|
|
29
|
+
|
|
30
|
+
const unifiedTo = new UnifiedTo({
|
|
31
|
+
security: {
|
|
32
|
+
jwt: "<YOUR_API_KEY_HERE>",
|
|
33
|
+
},
|
|
34
|
+
});
|
|
35
|
+
|
|
36
|
+
async function run() {
|
|
37
|
+
const result = await unifiedTo.comment.createKmsComment({
|
|
38
|
+
connectionId: "<id>",
|
|
39
|
+
});
|
|
40
|
+
|
|
41
|
+
// Handle the result
|
|
42
|
+
console.log(result);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
run();
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
### Standalone function
|
|
49
|
+
|
|
50
|
+
The standalone function version of this method:
|
|
51
|
+
|
|
52
|
+
```typescript
|
|
53
|
+
import { UnifiedToCore } from "@unified-api/typescript-sdk/core.js";
|
|
54
|
+
import { commentCreateKmsComment } from "@unified-api/typescript-sdk/funcs/commentCreateKmsComment.js";
|
|
55
|
+
|
|
56
|
+
// Use `UnifiedToCore` for best tree-shaking performance.
|
|
57
|
+
// You can create one instance of it to use across an application.
|
|
58
|
+
const unifiedTo = new UnifiedToCore({
|
|
59
|
+
security: {
|
|
60
|
+
jwt: "<YOUR_API_KEY_HERE>",
|
|
61
|
+
},
|
|
62
|
+
});
|
|
63
|
+
|
|
64
|
+
async function run() {
|
|
65
|
+
const res = await commentCreateKmsComment(unifiedTo, {
|
|
66
|
+
connectionId: "<id>",
|
|
67
|
+
});
|
|
68
|
+
|
|
69
|
+
if (!res.ok) {
|
|
70
|
+
throw res.error;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
const { value: result } = res;
|
|
74
|
+
|
|
75
|
+
// Handle the result
|
|
76
|
+
console.log(result);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
run();
|
|
80
|
+
```
|
|
81
|
+
|
|
82
|
+
### Parameters
|
|
83
|
+
|
|
84
|
+
| Parameter | Type | Required | Description |
|
|
85
|
+
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
86
|
+
| `request` | [operations.CreateKmsCommentRequest](../../sdk/models/operations/createkmscommentrequest.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
87
|
+
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
88
|
+
| `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. |
|
|
89
|
+
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
90
|
+
|
|
91
|
+
### Response
|
|
92
|
+
|
|
93
|
+
**Promise\<[shared.KmsComment](../../sdk/models/shared/kmscomment.md)\>**
|
|
94
|
+
|
|
95
|
+
### Errors
|
|
96
|
+
|
|
97
|
+
| Error Type | Status Code | Content Type |
|
|
98
|
+
| --------------- | --------------- | --------------- |
|
|
99
|
+
| errors.SDKError | 4XX, 5XX | \*/\* |
|
|
100
|
+
|
|
15
101
|
## createTaskComment
|
|
16
102
|
|
|
17
103
|
Create a comment
|
|
@@ -92,6 +178,88 @@ run();
|
|
|
92
178
|
| --------------- | --------------- | --------------- |
|
|
93
179
|
| errors.SDKError | 4XX, 5XX | \*/\* |
|
|
94
180
|
|
|
181
|
+
## getKmsComment
|
|
182
|
+
|
|
183
|
+
Retrieve a comment
|
|
184
|
+
|
|
185
|
+
### Example Usage
|
|
186
|
+
|
|
187
|
+
```typescript
|
|
188
|
+
import { UnifiedTo } from "@unified-api/typescript-sdk";
|
|
189
|
+
|
|
190
|
+
const unifiedTo = new UnifiedTo({
|
|
191
|
+
security: {
|
|
192
|
+
jwt: "<YOUR_API_KEY_HERE>",
|
|
193
|
+
},
|
|
194
|
+
});
|
|
195
|
+
|
|
196
|
+
async function run() {
|
|
197
|
+
const result = await unifiedTo.comment.getKmsComment({
|
|
198
|
+
connectionId: "<id>",
|
|
199
|
+
id: "<id>",
|
|
200
|
+
});
|
|
201
|
+
|
|
202
|
+
// Handle the result
|
|
203
|
+
console.log(result);
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
run();
|
|
207
|
+
```
|
|
208
|
+
|
|
209
|
+
### Standalone function
|
|
210
|
+
|
|
211
|
+
The standalone function version of this method:
|
|
212
|
+
|
|
213
|
+
```typescript
|
|
214
|
+
import { UnifiedToCore } from "@unified-api/typescript-sdk/core.js";
|
|
215
|
+
import { commentGetKmsComment } from "@unified-api/typescript-sdk/funcs/commentGetKmsComment.js";
|
|
216
|
+
|
|
217
|
+
// Use `UnifiedToCore` for best tree-shaking performance.
|
|
218
|
+
// You can create one instance of it to use across an application.
|
|
219
|
+
const unifiedTo = new UnifiedToCore({
|
|
220
|
+
security: {
|
|
221
|
+
jwt: "<YOUR_API_KEY_HERE>",
|
|
222
|
+
},
|
|
223
|
+
});
|
|
224
|
+
|
|
225
|
+
async function run() {
|
|
226
|
+
const res = await commentGetKmsComment(unifiedTo, {
|
|
227
|
+
connectionId: "<id>",
|
|
228
|
+
id: "<id>",
|
|
229
|
+
});
|
|
230
|
+
|
|
231
|
+
if (!res.ok) {
|
|
232
|
+
throw res.error;
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
const { value: result } = res;
|
|
236
|
+
|
|
237
|
+
// Handle the result
|
|
238
|
+
console.log(result);
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
run();
|
|
242
|
+
```
|
|
243
|
+
|
|
244
|
+
### Parameters
|
|
245
|
+
|
|
246
|
+
| Parameter | Type | Required | Description |
|
|
247
|
+
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
248
|
+
| `request` | [operations.GetKmsCommentRequest](../../sdk/models/operations/getkmscommentrequest.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
249
|
+
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
250
|
+
| `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. |
|
|
251
|
+
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
252
|
+
|
|
253
|
+
### Response
|
|
254
|
+
|
|
255
|
+
**Promise\<[shared.KmsComment](../../sdk/models/shared/kmscomment.md)\>**
|
|
256
|
+
|
|
257
|
+
### Errors
|
|
258
|
+
|
|
259
|
+
| Error Type | Status Code | Content Type |
|
|
260
|
+
| --------------- | --------------- | --------------- |
|
|
261
|
+
| errors.SDKError | 4XX, 5XX | \*/\* |
|
|
262
|
+
|
|
95
263
|
## getTaskComment
|
|
96
264
|
|
|
97
265
|
Retrieve a comment
|
|
@@ -174,6 +342,86 @@ run();
|
|
|
174
342
|
| --------------- | --------------- | --------------- |
|
|
175
343
|
| errors.SDKError | 4XX, 5XX | \*/\* |
|
|
176
344
|
|
|
345
|
+
## listKmsComments
|
|
346
|
+
|
|
347
|
+
List all comments
|
|
348
|
+
|
|
349
|
+
### Example Usage
|
|
350
|
+
|
|
351
|
+
```typescript
|
|
352
|
+
import { UnifiedTo } from "@unified-api/typescript-sdk";
|
|
353
|
+
|
|
354
|
+
const unifiedTo = new UnifiedTo({
|
|
355
|
+
security: {
|
|
356
|
+
jwt: "<YOUR_API_KEY_HERE>",
|
|
357
|
+
},
|
|
358
|
+
});
|
|
359
|
+
|
|
360
|
+
async function run() {
|
|
361
|
+
const result = await unifiedTo.comment.listKmsComments({
|
|
362
|
+
connectionId: "<id>",
|
|
363
|
+
});
|
|
364
|
+
|
|
365
|
+
// Handle the result
|
|
366
|
+
console.log(result);
|
|
367
|
+
}
|
|
368
|
+
|
|
369
|
+
run();
|
|
370
|
+
```
|
|
371
|
+
|
|
372
|
+
### Standalone function
|
|
373
|
+
|
|
374
|
+
The standalone function version of this method:
|
|
375
|
+
|
|
376
|
+
```typescript
|
|
377
|
+
import { UnifiedToCore } from "@unified-api/typescript-sdk/core.js";
|
|
378
|
+
import { commentListKmsComments } from "@unified-api/typescript-sdk/funcs/commentListKmsComments.js";
|
|
379
|
+
|
|
380
|
+
// Use `UnifiedToCore` for best tree-shaking performance.
|
|
381
|
+
// You can create one instance of it to use across an application.
|
|
382
|
+
const unifiedTo = new UnifiedToCore({
|
|
383
|
+
security: {
|
|
384
|
+
jwt: "<YOUR_API_KEY_HERE>",
|
|
385
|
+
},
|
|
386
|
+
});
|
|
387
|
+
|
|
388
|
+
async function run() {
|
|
389
|
+
const res = await commentListKmsComments(unifiedTo, {
|
|
390
|
+
connectionId: "<id>",
|
|
391
|
+
});
|
|
392
|
+
|
|
393
|
+
if (!res.ok) {
|
|
394
|
+
throw res.error;
|
|
395
|
+
}
|
|
396
|
+
|
|
397
|
+
const { value: result } = res;
|
|
398
|
+
|
|
399
|
+
// Handle the result
|
|
400
|
+
console.log(result);
|
|
401
|
+
}
|
|
402
|
+
|
|
403
|
+
run();
|
|
404
|
+
```
|
|
405
|
+
|
|
406
|
+
### Parameters
|
|
407
|
+
|
|
408
|
+
| Parameter | Type | Required | Description |
|
|
409
|
+
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
410
|
+
| `request` | [operations.ListKmsCommentsRequest](../../sdk/models/operations/listkmscommentsrequest.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
411
|
+
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
412
|
+
| `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. |
|
|
413
|
+
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
414
|
+
|
|
415
|
+
### Response
|
|
416
|
+
|
|
417
|
+
**Promise\<[shared.KmsComment[]](../../models/.md)\>**
|
|
418
|
+
|
|
419
|
+
### Errors
|
|
420
|
+
|
|
421
|
+
| Error Type | Status Code | Content Type |
|
|
422
|
+
| --------------- | --------------- | --------------- |
|
|
423
|
+
| errors.SDKError | 4XX, 5XX | \*/\* |
|
|
424
|
+
|
|
177
425
|
## listTaskComments
|
|
178
426
|
|
|
179
427
|
List all comments
|
|
@@ -254,6 +502,88 @@ run();
|
|
|
254
502
|
| --------------- | --------------- | --------------- |
|
|
255
503
|
| errors.SDKError | 4XX, 5XX | \*/\* |
|
|
256
504
|
|
|
505
|
+
## patchKmsComment
|
|
506
|
+
|
|
507
|
+
Update a comment
|
|
508
|
+
|
|
509
|
+
### Example Usage
|
|
510
|
+
|
|
511
|
+
```typescript
|
|
512
|
+
import { UnifiedTo } from "@unified-api/typescript-sdk";
|
|
513
|
+
|
|
514
|
+
const unifiedTo = new UnifiedTo({
|
|
515
|
+
security: {
|
|
516
|
+
jwt: "<YOUR_API_KEY_HERE>",
|
|
517
|
+
},
|
|
518
|
+
});
|
|
519
|
+
|
|
520
|
+
async function run() {
|
|
521
|
+
const result = await unifiedTo.comment.patchKmsComment({
|
|
522
|
+
connectionId: "<id>",
|
|
523
|
+
id: "<id>",
|
|
524
|
+
});
|
|
525
|
+
|
|
526
|
+
// Handle the result
|
|
527
|
+
console.log(result);
|
|
528
|
+
}
|
|
529
|
+
|
|
530
|
+
run();
|
|
531
|
+
```
|
|
532
|
+
|
|
533
|
+
### Standalone function
|
|
534
|
+
|
|
535
|
+
The standalone function version of this method:
|
|
536
|
+
|
|
537
|
+
```typescript
|
|
538
|
+
import { UnifiedToCore } from "@unified-api/typescript-sdk/core.js";
|
|
539
|
+
import { commentPatchKmsComment } from "@unified-api/typescript-sdk/funcs/commentPatchKmsComment.js";
|
|
540
|
+
|
|
541
|
+
// Use `UnifiedToCore` for best tree-shaking performance.
|
|
542
|
+
// You can create one instance of it to use across an application.
|
|
543
|
+
const unifiedTo = new UnifiedToCore({
|
|
544
|
+
security: {
|
|
545
|
+
jwt: "<YOUR_API_KEY_HERE>",
|
|
546
|
+
},
|
|
547
|
+
});
|
|
548
|
+
|
|
549
|
+
async function run() {
|
|
550
|
+
const res = await commentPatchKmsComment(unifiedTo, {
|
|
551
|
+
connectionId: "<id>",
|
|
552
|
+
id: "<id>",
|
|
553
|
+
});
|
|
554
|
+
|
|
555
|
+
if (!res.ok) {
|
|
556
|
+
throw res.error;
|
|
557
|
+
}
|
|
558
|
+
|
|
559
|
+
const { value: result } = res;
|
|
560
|
+
|
|
561
|
+
// Handle the result
|
|
562
|
+
console.log(result);
|
|
563
|
+
}
|
|
564
|
+
|
|
565
|
+
run();
|
|
566
|
+
```
|
|
567
|
+
|
|
568
|
+
### Parameters
|
|
569
|
+
|
|
570
|
+
| Parameter | Type | Required | Description |
|
|
571
|
+
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
572
|
+
| `request` | [operations.PatchKmsCommentRequest](../../sdk/models/operations/patchkmscommentrequest.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
573
|
+
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
574
|
+
| `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. |
|
|
575
|
+
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
576
|
+
|
|
577
|
+
### Response
|
|
578
|
+
|
|
579
|
+
**Promise\<[shared.KmsComment](../../sdk/models/shared/kmscomment.md)\>**
|
|
580
|
+
|
|
581
|
+
### Errors
|
|
582
|
+
|
|
583
|
+
| Error Type | Status Code | Content Type |
|
|
584
|
+
| --------------- | --------------- | --------------- |
|
|
585
|
+
| errors.SDKError | 4XX, 5XX | \*/\* |
|
|
586
|
+
|
|
257
587
|
## patchTaskComment
|
|
258
588
|
|
|
259
589
|
Update a comment
|
|
@@ -336,6 +666,88 @@ run();
|
|
|
336
666
|
| --------------- | --------------- | --------------- |
|
|
337
667
|
| errors.SDKError | 4XX, 5XX | \*/\* |
|
|
338
668
|
|
|
669
|
+
## removeKmsComment
|
|
670
|
+
|
|
671
|
+
Remove a comment
|
|
672
|
+
|
|
673
|
+
### Example Usage
|
|
674
|
+
|
|
675
|
+
```typescript
|
|
676
|
+
import { UnifiedTo } from "@unified-api/typescript-sdk";
|
|
677
|
+
|
|
678
|
+
const unifiedTo = new UnifiedTo({
|
|
679
|
+
security: {
|
|
680
|
+
jwt: "<YOUR_API_KEY_HERE>",
|
|
681
|
+
},
|
|
682
|
+
});
|
|
683
|
+
|
|
684
|
+
async function run() {
|
|
685
|
+
const result = await unifiedTo.comment.removeKmsComment({
|
|
686
|
+
connectionId: "<id>",
|
|
687
|
+
id: "<id>",
|
|
688
|
+
});
|
|
689
|
+
|
|
690
|
+
// Handle the result
|
|
691
|
+
console.log(result);
|
|
692
|
+
}
|
|
693
|
+
|
|
694
|
+
run();
|
|
695
|
+
```
|
|
696
|
+
|
|
697
|
+
### Standalone function
|
|
698
|
+
|
|
699
|
+
The standalone function version of this method:
|
|
700
|
+
|
|
701
|
+
```typescript
|
|
702
|
+
import { UnifiedToCore } from "@unified-api/typescript-sdk/core.js";
|
|
703
|
+
import { commentRemoveKmsComment } from "@unified-api/typescript-sdk/funcs/commentRemoveKmsComment.js";
|
|
704
|
+
|
|
705
|
+
// Use `UnifiedToCore` for best tree-shaking performance.
|
|
706
|
+
// You can create one instance of it to use across an application.
|
|
707
|
+
const unifiedTo = new UnifiedToCore({
|
|
708
|
+
security: {
|
|
709
|
+
jwt: "<YOUR_API_KEY_HERE>",
|
|
710
|
+
},
|
|
711
|
+
});
|
|
712
|
+
|
|
713
|
+
async function run() {
|
|
714
|
+
const res = await commentRemoveKmsComment(unifiedTo, {
|
|
715
|
+
connectionId: "<id>",
|
|
716
|
+
id: "<id>",
|
|
717
|
+
});
|
|
718
|
+
|
|
719
|
+
if (!res.ok) {
|
|
720
|
+
throw res.error;
|
|
721
|
+
}
|
|
722
|
+
|
|
723
|
+
const { value: result } = res;
|
|
724
|
+
|
|
725
|
+
// Handle the result
|
|
726
|
+
console.log(result);
|
|
727
|
+
}
|
|
728
|
+
|
|
729
|
+
run();
|
|
730
|
+
```
|
|
731
|
+
|
|
732
|
+
### Parameters
|
|
733
|
+
|
|
734
|
+
| Parameter | Type | Required | Description |
|
|
735
|
+
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
736
|
+
| `request` | [operations.RemoveKmsCommentRequest](../../sdk/models/operations/removekmscommentrequest.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
737
|
+
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
738
|
+
| `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. |
|
|
739
|
+
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
740
|
+
|
|
741
|
+
### Response
|
|
742
|
+
|
|
743
|
+
**Promise\<[operations.RemoveKmsCommentResponse](../../sdk/models/operations/removekmscommentresponse.md)\>**
|
|
744
|
+
|
|
745
|
+
### Errors
|
|
746
|
+
|
|
747
|
+
| Error Type | Status Code | Content Type |
|
|
748
|
+
| --------------- | --------------- | --------------- |
|
|
749
|
+
| errors.SDKError | 4XX, 5XX | \*/\* |
|
|
750
|
+
|
|
339
751
|
## removeTaskComment
|
|
340
752
|
|
|
341
753
|
Remove a comment
|
|
@@ -418,6 +830,88 @@ run();
|
|
|
418
830
|
| --------------- | --------------- | --------------- |
|
|
419
831
|
| errors.SDKError | 4XX, 5XX | \*/\* |
|
|
420
832
|
|
|
833
|
+
## updateKmsComment
|
|
834
|
+
|
|
835
|
+
Update a comment
|
|
836
|
+
|
|
837
|
+
### Example Usage
|
|
838
|
+
|
|
839
|
+
```typescript
|
|
840
|
+
import { UnifiedTo } from "@unified-api/typescript-sdk";
|
|
841
|
+
|
|
842
|
+
const unifiedTo = new UnifiedTo({
|
|
843
|
+
security: {
|
|
844
|
+
jwt: "<YOUR_API_KEY_HERE>",
|
|
845
|
+
},
|
|
846
|
+
});
|
|
847
|
+
|
|
848
|
+
async function run() {
|
|
849
|
+
const result = await unifiedTo.comment.updateKmsComment({
|
|
850
|
+
connectionId: "<id>",
|
|
851
|
+
id: "<id>",
|
|
852
|
+
});
|
|
853
|
+
|
|
854
|
+
// Handle the result
|
|
855
|
+
console.log(result);
|
|
856
|
+
}
|
|
857
|
+
|
|
858
|
+
run();
|
|
859
|
+
```
|
|
860
|
+
|
|
861
|
+
### Standalone function
|
|
862
|
+
|
|
863
|
+
The standalone function version of this method:
|
|
864
|
+
|
|
865
|
+
```typescript
|
|
866
|
+
import { UnifiedToCore } from "@unified-api/typescript-sdk/core.js";
|
|
867
|
+
import { commentUpdateKmsComment } from "@unified-api/typescript-sdk/funcs/commentUpdateKmsComment.js";
|
|
868
|
+
|
|
869
|
+
// Use `UnifiedToCore` for best tree-shaking performance.
|
|
870
|
+
// You can create one instance of it to use across an application.
|
|
871
|
+
const unifiedTo = new UnifiedToCore({
|
|
872
|
+
security: {
|
|
873
|
+
jwt: "<YOUR_API_KEY_HERE>",
|
|
874
|
+
},
|
|
875
|
+
});
|
|
876
|
+
|
|
877
|
+
async function run() {
|
|
878
|
+
const res = await commentUpdateKmsComment(unifiedTo, {
|
|
879
|
+
connectionId: "<id>",
|
|
880
|
+
id: "<id>",
|
|
881
|
+
});
|
|
882
|
+
|
|
883
|
+
if (!res.ok) {
|
|
884
|
+
throw res.error;
|
|
885
|
+
}
|
|
886
|
+
|
|
887
|
+
const { value: result } = res;
|
|
888
|
+
|
|
889
|
+
// Handle the result
|
|
890
|
+
console.log(result);
|
|
891
|
+
}
|
|
892
|
+
|
|
893
|
+
run();
|
|
894
|
+
```
|
|
895
|
+
|
|
896
|
+
### Parameters
|
|
897
|
+
|
|
898
|
+
| Parameter | Type | Required | Description |
|
|
899
|
+
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
900
|
+
| `request` | [operations.UpdateKmsCommentRequest](../../sdk/models/operations/updatekmscommentrequest.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
901
|
+
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
902
|
+
| `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. |
|
|
903
|
+
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
904
|
+
|
|
905
|
+
### Response
|
|
906
|
+
|
|
907
|
+
**Promise\<[shared.KmsComment](../../sdk/models/shared/kmscomment.md)\>**
|
|
908
|
+
|
|
909
|
+
### Errors
|
|
910
|
+
|
|
911
|
+
| Error Type | Status Code | Content Type |
|
|
912
|
+
| --------------- | --------------- | --------------- |
|
|
913
|
+
| errors.SDKError | 4XX, 5XX | \*/\* |
|
|
914
|
+
|
|
421
915
|
## updateTaskComment
|
|
422
916
|
|
|
423
917
|
Update a comment
|