@unified-api/typescript-sdk 2.9.4 → 2.9.5

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.
Files changed (127) hide show
  1. package/FUNCTIONS.md +108 -0
  2. package/README.md +36 -15
  3. package/RUNTIMES.md +22 -0
  4. package/docs/sdks/account/README.md +501 -0
  5. package/docs/sdks/accounting/README.md +3629 -0
  6. package/docs/sdks/activity/README.md +501 -0
  7. package/docs/sdks/apicall/README.md +165 -0
  8. package/docs/sdks/application/README.md +501 -0
  9. package/docs/sdks/applicationstatus/README.md +88 -0
  10. package/docs/sdks/ats/README.md +3710 -0
  11. package/docs/sdks/auth/README.md +173 -0
  12. package/docs/sdks/branch/README.md +501 -0
  13. package/docs/sdks/call/README.md +88 -0
  14. package/docs/sdks/candidate/README.md +501 -0
  15. package/docs/sdks/channel/README.md +171 -0
  16. package/docs/sdks/class/README.md +501 -0
  17. package/docs/sdks/collection/README.md +501 -0
  18. package/docs/sdks/commerce/README.md +2477 -0
  19. package/docs/sdks/commit/README.md +501 -0
  20. package/docs/sdks/company/README.md +1240 -0
  21. package/docs/sdks/connection/README.md +485 -0
  22. package/docs/sdks/contact/README.md +1489 -0
  23. package/docs/sdks/course/README.md +501 -0
  24. package/docs/sdks/crm/README.md +2971 -0
  25. package/docs/sdks/customer/README.md +501 -0
  26. package/docs/sdks/deal/README.md +501 -0
  27. package/docs/sdks/document/README.md +501 -0
  28. package/docs/sdks/employee/README.md +501 -0
  29. package/docs/sdks/enrich/README.md +169 -0
  30. package/docs/sdks/event/README.md +501 -0
  31. package/docs/sdks/file/README.md +501 -0
  32. package/docs/sdks/genai/README.md +169 -0
  33. package/docs/sdks/group/README.md +995 -0
  34. package/docs/sdks/hris/README.md +2311 -0
  35. package/docs/sdks/instructor/README.md +501 -0
  36. package/docs/sdks/integration/README.md +248 -0
  37. package/docs/sdks/interview/README.md +501 -0
  38. package/docs/sdks/inventory/README.md +501 -0
  39. package/docs/sdks/invoice/README.md +501 -0
  40. package/docs/sdks/issue/README.md +84 -0
  41. package/docs/sdks/item/README.md +501 -0
  42. package/docs/sdks/job/README.md +501 -0
  43. package/docs/sdks/journal/README.md +501 -0
  44. package/docs/sdks/kms/README.md +995 -0
  45. package/docs/sdks/lead/README.md +501 -0
  46. package/docs/sdks/link/README.md +501 -0
  47. package/docs/sdks/list/README.md +501 -0
  48. package/docs/sdks/lms/README.md +1983 -0
  49. package/docs/sdks/location/README.md +995 -0
  50. package/docs/sdks/login/README.md +90 -0
  51. package/docs/sdks/martech/README.md +995 -0
  52. package/docs/sdks/member/README.md +501 -0
  53. package/docs/sdks/message/README.md +501 -0
  54. package/docs/sdks/messaging/README.md +665 -0
  55. package/docs/sdks/metadata/README.md +501 -0
  56. package/docs/sdks/model/README.md +88 -0
  57. package/docs/sdks/note/README.md +501 -0
  58. package/docs/sdks/order/README.md +501 -0
  59. package/docs/sdks/organization/README.md +665 -0
  60. package/docs/sdks/page/README.md +501 -0
  61. package/docs/sdks/passthrough/README.md +671 -0
  62. package/docs/sdks/payment/README.md +1323 -0
  63. package/docs/sdks/payout/README.md +171 -0
  64. package/docs/sdks/payslip/README.md +171 -0
  65. package/docs/sdks/person/README.md +88 -0
  66. package/docs/sdks/pipeline/README.md +501 -0
  67. package/docs/sdks/project/README.md +501 -0
  68. package/docs/sdks/prompt/README.md +88 -0
  69. package/docs/sdks/pullrequest/README.md +501 -0
  70. package/docs/sdks/refund/README.md +171 -0
  71. package/docs/sdks/repo/README.md +2477 -0
  72. package/docs/sdks/repository/README.md +501 -0
  73. package/docs/sdks/scim/README.md +995 -0
  74. package/docs/sdks/scorecard/README.md +501 -0
  75. package/docs/sdks/space/README.md +501 -0
  76. package/docs/sdks/storage/README.md +501 -0
  77. package/docs/sdks/student/README.md +501 -0
  78. package/docs/sdks/task/README.md +995 -0
  79. package/docs/sdks/taxrate/README.md +501 -0
  80. package/docs/sdks/ticket/README.md +501 -0
  81. package/docs/sdks/ticketing/README.md +1489 -0
  82. package/docs/sdks/timeoff/README.md +171 -0
  83. package/docs/sdks/transaction/README.md +501 -0
  84. package/docs/sdks/uc/README.md +582 -0
  85. package/docs/sdks/unified/README.md +1601 -0
  86. package/docs/sdks/unifiedto/README.md +7 -0
  87. package/docs/sdks/user/README.md +501 -0
  88. package/docs/sdks/webhook/README.md +647 -0
  89. package/lib/config.d.ts +3 -3
  90. package/lib/config.js +3 -3
  91. package/lib/primitives.d.ts +2 -0
  92. package/lib/primitives.d.ts.map +1 -1
  93. package/lib/primitives.js +53 -0
  94. package/lib/primitives.js.map +1 -1
  95. package/package.json +3 -1
  96. package/sdk/models/shared/index.d.ts +1 -0
  97. package/sdk/models/shared/index.d.ts.map +1 -1
  98. package/sdk/models/shared/index.js +1 -0
  99. package/sdk/models/shared/index.js.map +1 -1
  100. package/sdk/models/shared/kmspage.d.ts +5 -0
  101. package/sdk/models/shared/kmspage.d.ts.map +1 -1
  102. package/sdk/models/shared/kmspage.js +7 -0
  103. package/sdk/models/shared/kmspage.js.map +1 -1
  104. package/sdk/models/shared/kmspagemetadata.d.ts +37 -0
  105. package/sdk/models/shared/kmspagemetadata.d.ts.map +1 -0
  106. package/sdk/models/shared/kmspagemetadata.js +63 -0
  107. package/sdk/models/shared/kmspagemetadata.js.map +1 -0
  108. package/sdk/models/shared/kmsspace.d.ts +2 -0
  109. package/sdk/models/shared/kmsspace.d.ts.map +1 -1
  110. package/sdk/models/shared/kmsspace.js +4 -0
  111. package/sdk/models/shared/kmsspace.js.map +1 -1
  112. package/sdk/models/shared/security.d.ts +2 -2
  113. package/sdk/models/shared/security.d.ts.map +1 -1
  114. package/sdk/models/shared/security.js +2 -2
  115. package/sdk/models/shared/security.js.map +1 -1
  116. package/sdk/types/operations.d.ts +5 -3
  117. package/sdk/types/operations.d.ts.map +1 -1
  118. package/sdk/types/operations.js +3 -0
  119. package/sdk/types/operations.js.map +1 -1
  120. package/src/lib/config.ts +3 -3
  121. package/src/lib/primitives.ts +62 -0
  122. package/src/sdk/models/shared/index.ts +1 -0
  123. package/src/sdk/models/shared/kmspage.ts +16 -0
  124. package/src/sdk/models/shared/kmspagemetadata.ts +72 -0
  125. package/src/sdk/models/shared/kmsspace.ts +6 -0
  126. package/src/sdk/models/shared/security.ts +4 -4
  127. package/src/sdk/types/operations.ts +11 -5
@@ -0,0 +1,582 @@
1
+ # Uc
2
+ (*uc*)
3
+
4
+ ## Overview
5
+
6
+ ### Available Operations
7
+
8
+ * [createUcContact](#createuccontact) - Create a contact
9
+ * [getUcContact](#getuccontact) - Retrieve a contact
10
+ * [listUcCalls](#listuccalls) - List all calls
11
+ * [listUcContacts](#listuccontacts) - List all contacts
12
+ * [patchUcContact](#patchuccontact) - Update a contact
13
+ * [removeUcContact](#removeuccontact) - Remove a contact
14
+ * [updateUcContact](#updateuccontact) - Update a contact
15
+
16
+ ## createUcContact
17
+
18
+ Create a contact
19
+
20
+ ### Example Usage
21
+
22
+ ```typescript
23
+ import { UnifiedTo } from "@unified-api/typescript-sdk";
24
+
25
+ const unifiedTo = new UnifiedTo({
26
+ security: {
27
+ jwt: "<YOUR_API_KEY_HERE>",
28
+ },
29
+ });
30
+
31
+ async function run() {
32
+ const result = await unifiedTo.uc.createUcContact({
33
+ connectionId: "<value>",
34
+ });
35
+
36
+ // Handle the result
37
+ console.log(result);
38
+ }
39
+
40
+ run();
41
+ ```
42
+
43
+ ### Standalone function
44
+
45
+ The standalone function version of this method:
46
+
47
+ ```typescript
48
+ import { UnifiedToCore } from "@unified-api/typescript-sdk/core.js";
49
+ import { ucCreateUcContact } from "@unified-api/typescript-sdk/funcs/ucCreateUcContact.js";
50
+
51
+ // Use `UnifiedToCore` for best tree-shaking performance.
52
+ // You can create one instance of it to use across an application.
53
+ const unifiedTo = new UnifiedToCore({
54
+ security: {
55
+ jwt: "<YOUR_API_KEY_HERE>",
56
+ },
57
+ });
58
+
59
+ async function run() {
60
+ const res = await ucCreateUcContact(unifiedTo, {
61
+ connectionId: "<value>",
62
+ });
63
+
64
+ if (!res.ok) {
65
+ throw res.error;
66
+ }
67
+
68
+ const { value: result } = res;
69
+
70
+ // Handle the result
71
+ console.log(result);
72
+ }
73
+
74
+ run();
75
+ ```
76
+
77
+ ### Parameters
78
+
79
+ | Parameter | Type | Required | Description |
80
+ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
81
+ | `request` | [operations.CreateUcContactRequest](../../sdk/models/operations/createuccontactrequest.md) | :heavy_check_mark: | The request object to use for the request. |
82
+ | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
83
+ | `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. |
84
+ | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
85
+
86
+ ### Response
87
+
88
+ **Promise\<[shared.UcContact](../../sdk/models/shared/uccontact.md)\>**
89
+
90
+ ### Errors
91
+
92
+ | Error Type | Status Code | Content Type |
93
+ | --------------- | --------------- | --------------- |
94
+ | errors.SDKError | 4XX, 5XX | \*/\* |
95
+
96
+ ## getUcContact
97
+
98
+ Retrieve a contact
99
+
100
+ ### Example Usage
101
+
102
+ ```typescript
103
+ import { UnifiedTo } from "@unified-api/typescript-sdk";
104
+
105
+ const unifiedTo = new UnifiedTo({
106
+ security: {
107
+ jwt: "<YOUR_API_KEY_HERE>",
108
+ },
109
+ });
110
+
111
+ async function run() {
112
+ const result = await unifiedTo.uc.getUcContact({
113
+ connectionId: "<value>",
114
+ id: "<id>",
115
+ });
116
+
117
+ // Handle the result
118
+ console.log(result);
119
+ }
120
+
121
+ run();
122
+ ```
123
+
124
+ ### Standalone function
125
+
126
+ The standalone function version of this method:
127
+
128
+ ```typescript
129
+ import { UnifiedToCore } from "@unified-api/typescript-sdk/core.js";
130
+ import { ucGetUcContact } from "@unified-api/typescript-sdk/funcs/ucGetUcContact.js";
131
+
132
+ // Use `UnifiedToCore` for best tree-shaking performance.
133
+ // You can create one instance of it to use across an application.
134
+ const unifiedTo = new UnifiedToCore({
135
+ security: {
136
+ jwt: "<YOUR_API_KEY_HERE>",
137
+ },
138
+ });
139
+
140
+ async function run() {
141
+ const res = await ucGetUcContact(unifiedTo, {
142
+ connectionId: "<value>",
143
+ id: "<id>",
144
+ });
145
+
146
+ if (!res.ok) {
147
+ throw res.error;
148
+ }
149
+
150
+ const { value: result } = res;
151
+
152
+ // Handle the result
153
+ console.log(result);
154
+ }
155
+
156
+ run();
157
+ ```
158
+
159
+ ### Parameters
160
+
161
+ | Parameter | Type | Required | Description |
162
+ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
163
+ | `request` | [operations.GetUcContactRequest](../../sdk/models/operations/getuccontactrequest.md) | :heavy_check_mark: | The request object to use for the request. |
164
+ | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
165
+ | `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. |
166
+ | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
167
+
168
+ ### Response
169
+
170
+ **Promise\<[shared.UcContact](../../sdk/models/shared/uccontact.md)\>**
171
+
172
+ ### Errors
173
+
174
+ | Error Type | Status Code | Content Type |
175
+ | --------------- | --------------- | --------------- |
176
+ | errors.SDKError | 4XX, 5XX | \*/\* |
177
+
178
+ ## listUcCalls
179
+
180
+ List all calls
181
+
182
+ ### Example Usage
183
+
184
+ ```typescript
185
+ import { UnifiedTo } from "@unified-api/typescript-sdk";
186
+
187
+ const unifiedTo = new UnifiedTo({
188
+ security: {
189
+ jwt: "<YOUR_API_KEY_HERE>",
190
+ },
191
+ });
192
+
193
+ async function run() {
194
+ const result = await unifiedTo.uc.listUcCalls({
195
+ connectionId: "<value>",
196
+ });
197
+
198
+ // Handle the result
199
+ console.log(result);
200
+ }
201
+
202
+ run();
203
+ ```
204
+
205
+ ### Standalone function
206
+
207
+ The standalone function version of this method:
208
+
209
+ ```typescript
210
+ import { UnifiedToCore } from "@unified-api/typescript-sdk/core.js";
211
+ import { ucListUcCalls } from "@unified-api/typescript-sdk/funcs/ucListUcCalls.js";
212
+
213
+ // Use `UnifiedToCore` for best tree-shaking performance.
214
+ // You can create one instance of it to use across an application.
215
+ const unifiedTo = new UnifiedToCore({
216
+ security: {
217
+ jwt: "<YOUR_API_KEY_HERE>",
218
+ },
219
+ });
220
+
221
+ async function run() {
222
+ const res = await ucListUcCalls(unifiedTo, {
223
+ connectionId: "<value>",
224
+ });
225
+
226
+ if (!res.ok) {
227
+ throw res.error;
228
+ }
229
+
230
+ const { value: result } = res;
231
+
232
+ // Handle the result
233
+ console.log(result);
234
+ }
235
+
236
+ run();
237
+ ```
238
+
239
+ ### Parameters
240
+
241
+ | Parameter | Type | Required | Description |
242
+ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
243
+ | `request` | [operations.ListUcCallsRequest](../../sdk/models/operations/listuccallsrequest.md) | :heavy_check_mark: | The request object to use for the request. |
244
+ | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
245
+ | `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. |
246
+ | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
247
+
248
+ ### Response
249
+
250
+ **Promise\<[shared.UcCall[]](../../models/.md)\>**
251
+
252
+ ### Errors
253
+
254
+ | Error Type | Status Code | Content Type |
255
+ | --------------- | --------------- | --------------- |
256
+ | errors.SDKError | 4XX, 5XX | \*/\* |
257
+
258
+ ## listUcContacts
259
+
260
+ List all contacts
261
+
262
+ ### Example Usage
263
+
264
+ ```typescript
265
+ import { UnifiedTo } from "@unified-api/typescript-sdk";
266
+
267
+ const unifiedTo = new UnifiedTo({
268
+ security: {
269
+ jwt: "<YOUR_API_KEY_HERE>",
270
+ },
271
+ });
272
+
273
+ async function run() {
274
+ const result = await unifiedTo.uc.listUcContacts({
275
+ connectionId: "<value>",
276
+ });
277
+
278
+ // Handle the result
279
+ console.log(result);
280
+ }
281
+
282
+ run();
283
+ ```
284
+
285
+ ### Standalone function
286
+
287
+ The standalone function version of this method:
288
+
289
+ ```typescript
290
+ import { UnifiedToCore } from "@unified-api/typescript-sdk/core.js";
291
+ import { ucListUcContacts } from "@unified-api/typescript-sdk/funcs/ucListUcContacts.js";
292
+
293
+ // Use `UnifiedToCore` for best tree-shaking performance.
294
+ // You can create one instance of it to use across an application.
295
+ const unifiedTo = new UnifiedToCore({
296
+ security: {
297
+ jwt: "<YOUR_API_KEY_HERE>",
298
+ },
299
+ });
300
+
301
+ async function run() {
302
+ const res = await ucListUcContacts(unifiedTo, {
303
+ connectionId: "<value>",
304
+ });
305
+
306
+ if (!res.ok) {
307
+ throw res.error;
308
+ }
309
+
310
+ const { value: result } = res;
311
+
312
+ // Handle the result
313
+ console.log(result);
314
+ }
315
+
316
+ run();
317
+ ```
318
+
319
+ ### Parameters
320
+
321
+ | Parameter | Type | Required | Description |
322
+ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
323
+ | `request` | [operations.ListUcContactsRequest](../../sdk/models/operations/listuccontactsrequest.md) | :heavy_check_mark: | The request object to use for the request. |
324
+ | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
325
+ | `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. |
326
+ | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
327
+
328
+ ### Response
329
+
330
+ **Promise\<[shared.UcContact[]](../../models/.md)\>**
331
+
332
+ ### Errors
333
+
334
+ | Error Type | Status Code | Content Type |
335
+ | --------------- | --------------- | --------------- |
336
+ | errors.SDKError | 4XX, 5XX | \*/\* |
337
+
338
+ ## patchUcContact
339
+
340
+ Update a contact
341
+
342
+ ### Example Usage
343
+
344
+ ```typescript
345
+ import { UnifiedTo } from "@unified-api/typescript-sdk";
346
+
347
+ const unifiedTo = new UnifiedTo({
348
+ security: {
349
+ jwt: "<YOUR_API_KEY_HERE>",
350
+ },
351
+ });
352
+
353
+ async function run() {
354
+ const result = await unifiedTo.uc.patchUcContact({
355
+ connectionId: "<value>",
356
+ id: "<id>",
357
+ });
358
+
359
+ // Handle the result
360
+ console.log(result);
361
+ }
362
+
363
+ run();
364
+ ```
365
+
366
+ ### Standalone function
367
+
368
+ The standalone function version of this method:
369
+
370
+ ```typescript
371
+ import { UnifiedToCore } from "@unified-api/typescript-sdk/core.js";
372
+ import { ucPatchUcContact } from "@unified-api/typescript-sdk/funcs/ucPatchUcContact.js";
373
+
374
+ // Use `UnifiedToCore` for best tree-shaking performance.
375
+ // You can create one instance of it to use across an application.
376
+ const unifiedTo = new UnifiedToCore({
377
+ security: {
378
+ jwt: "<YOUR_API_KEY_HERE>",
379
+ },
380
+ });
381
+
382
+ async function run() {
383
+ const res = await ucPatchUcContact(unifiedTo, {
384
+ connectionId: "<value>",
385
+ id: "<id>",
386
+ });
387
+
388
+ if (!res.ok) {
389
+ throw res.error;
390
+ }
391
+
392
+ const { value: result } = res;
393
+
394
+ // Handle the result
395
+ console.log(result);
396
+ }
397
+
398
+ run();
399
+ ```
400
+
401
+ ### Parameters
402
+
403
+ | Parameter | Type | Required | Description |
404
+ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
405
+ | `request` | [operations.PatchUcContactRequest](../../sdk/models/operations/patchuccontactrequest.md) | :heavy_check_mark: | The request object to use for the request. |
406
+ | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
407
+ | `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. |
408
+ | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
409
+
410
+ ### Response
411
+
412
+ **Promise\<[shared.UcContact](../../sdk/models/shared/uccontact.md)\>**
413
+
414
+ ### Errors
415
+
416
+ | Error Type | Status Code | Content Type |
417
+ | --------------- | --------------- | --------------- |
418
+ | errors.SDKError | 4XX, 5XX | \*/\* |
419
+
420
+ ## removeUcContact
421
+
422
+ Remove a contact
423
+
424
+ ### Example Usage
425
+
426
+ ```typescript
427
+ import { UnifiedTo } from "@unified-api/typescript-sdk";
428
+
429
+ const unifiedTo = new UnifiedTo({
430
+ security: {
431
+ jwt: "<YOUR_API_KEY_HERE>",
432
+ },
433
+ });
434
+
435
+ async function run() {
436
+ const result = await unifiedTo.uc.removeUcContact({
437
+ connectionId: "<value>",
438
+ id: "<id>",
439
+ });
440
+
441
+ // Handle the result
442
+ console.log(result);
443
+ }
444
+
445
+ run();
446
+ ```
447
+
448
+ ### Standalone function
449
+
450
+ The standalone function version of this method:
451
+
452
+ ```typescript
453
+ import { UnifiedToCore } from "@unified-api/typescript-sdk/core.js";
454
+ import { ucRemoveUcContact } from "@unified-api/typescript-sdk/funcs/ucRemoveUcContact.js";
455
+
456
+ // Use `UnifiedToCore` for best tree-shaking performance.
457
+ // You can create one instance of it to use across an application.
458
+ const unifiedTo = new UnifiedToCore({
459
+ security: {
460
+ jwt: "<YOUR_API_KEY_HERE>",
461
+ },
462
+ });
463
+
464
+ async function run() {
465
+ const res = await ucRemoveUcContact(unifiedTo, {
466
+ connectionId: "<value>",
467
+ id: "<id>",
468
+ });
469
+
470
+ if (!res.ok) {
471
+ throw res.error;
472
+ }
473
+
474
+ const { value: result } = res;
475
+
476
+ // Handle the result
477
+ console.log(result);
478
+ }
479
+
480
+ run();
481
+ ```
482
+
483
+ ### Parameters
484
+
485
+ | Parameter | Type | Required | Description |
486
+ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
487
+ | `request` | [operations.RemoveUcContactRequest](../../sdk/models/operations/removeuccontactrequest.md) | :heavy_check_mark: | The request object to use for the request. |
488
+ | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
489
+ | `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. |
490
+ | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
491
+
492
+ ### Response
493
+
494
+ **Promise\<[operations.RemoveUcContactResponse](../../sdk/models/operations/removeuccontactresponse.md)\>**
495
+
496
+ ### Errors
497
+
498
+ | Error Type | Status Code | Content Type |
499
+ | --------------- | --------------- | --------------- |
500
+ | errors.SDKError | 4XX, 5XX | \*/\* |
501
+
502
+ ## updateUcContact
503
+
504
+ Update a contact
505
+
506
+ ### Example Usage
507
+
508
+ ```typescript
509
+ import { UnifiedTo } from "@unified-api/typescript-sdk";
510
+
511
+ const unifiedTo = new UnifiedTo({
512
+ security: {
513
+ jwt: "<YOUR_API_KEY_HERE>",
514
+ },
515
+ });
516
+
517
+ async function run() {
518
+ const result = await unifiedTo.uc.updateUcContact({
519
+ connectionId: "<value>",
520
+ id: "<id>",
521
+ });
522
+
523
+ // Handle the result
524
+ console.log(result);
525
+ }
526
+
527
+ run();
528
+ ```
529
+
530
+ ### Standalone function
531
+
532
+ The standalone function version of this method:
533
+
534
+ ```typescript
535
+ import { UnifiedToCore } from "@unified-api/typescript-sdk/core.js";
536
+ import { ucUpdateUcContact } from "@unified-api/typescript-sdk/funcs/ucUpdateUcContact.js";
537
+
538
+ // Use `UnifiedToCore` for best tree-shaking performance.
539
+ // You can create one instance of it to use across an application.
540
+ const unifiedTo = new UnifiedToCore({
541
+ security: {
542
+ jwt: "<YOUR_API_KEY_HERE>",
543
+ },
544
+ });
545
+
546
+ async function run() {
547
+ const res = await ucUpdateUcContact(unifiedTo, {
548
+ connectionId: "<value>",
549
+ id: "<id>",
550
+ });
551
+
552
+ if (!res.ok) {
553
+ throw res.error;
554
+ }
555
+
556
+ const { value: result } = res;
557
+
558
+ // Handle the result
559
+ console.log(result);
560
+ }
561
+
562
+ run();
563
+ ```
564
+
565
+ ### Parameters
566
+
567
+ | Parameter | Type | Required | Description |
568
+ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
569
+ | `request` | [operations.UpdateUcContactRequest](../../sdk/models/operations/updateuccontactrequest.md) | :heavy_check_mark: | The request object to use for the request. |
570
+ | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
571
+ | `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. |
572
+ | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
573
+
574
+ ### Response
575
+
576
+ **Promise\<[shared.UcContact](../../sdk/models/shared/uccontact.md)\>**
577
+
578
+ ### Errors
579
+
580
+ | Error Type | Status Code | Content Type |
581
+ | --------------- | --------------- | --------------- |
582
+ | errors.SDKError | 4XX, 5XX | \*/\* |