@unified-api/typescript-sdk 2.72.0 → 2.72.2

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 (181) hide show
  1. package/FUNCTIONS.md +5 -22
  2. package/README.md +28 -47
  3. package/bin/mcp-server.js +60 -15
  4. package/bin/mcp-server.js.map +24 -24
  5. package/docs/sdks/account/README.md +30 -54
  6. package/docs/sdks/accounting/README.md +230 -414
  7. package/docs/sdks/activity/README.md +30 -54
  8. package/docs/sdks/apicall/README.md +10 -18
  9. package/docs/sdks/application/README.md +30 -54
  10. package/docs/sdks/applicationstatus/README.md +5 -9
  11. package/docs/sdks/ats/README.md +225 -405
  12. package/docs/sdks/auth/README.md +10 -18
  13. package/docs/sdks/branch/README.md +30 -54
  14. package/docs/sdks/busy/README.md +5 -9
  15. package/docs/sdks/calendar/README.md +105 -189
  16. package/docs/sdks/call/README.md +5 -9
  17. package/docs/sdks/candidate/README.md +30 -54
  18. package/docs/sdks/channel/README.md +10 -18
  19. package/docs/sdks/class/README.md +30 -54
  20. package/docs/sdks/collection/README.md +30 -54
  21. package/docs/sdks/comment/README.md +90 -162
  22. package/docs/sdks/commerce/README.md +150 -270
  23. package/docs/sdks/commit/README.md +30 -54
  24. package/docs/sdks/company/README.md +75 -135
  25. package/docs/sdks/connection/README.md +30 -54
  26. package/docs/sdks/contact/README.md +90 -162
  27. package/docs/sdks/course/README.md +30 -54
  28. package/docs/sdks/crm/README.md +180 -324
  29. package/docs/sdks/customer/README.md +30 -54
  30. package/docs/sdks/deal/README.md +30 -54
  31. package/docs/sdks/device/README.md +30 -54
  32. package/docs/sdks/document/README.md +30 -54
  33. package/docs/sdks/employee/README.md +30 -54
  34. package/docs/sdks/enrich/README.md +10 -18
  35. package/docs/sdks/event/README.md +60 -108
  36. package/docs/sdks/file/README.md +30 -54
  37. package/docs/sdks/genai/README.md +10 -18
  38. package/docs/sdks/group/README.md +60 -108
  39. package/docs/sdks/hris/README.md +200 -360
  40. package/docs/sdks/instructor/README.md +30 -54
  41. package/docs/sdks/integration/README.md +15 -27
  42. package/docs/sdks/interview/README.md +30 -54
  43. package/docs/sdks/inventory/README.md +30 -54
  44. package/docs/sdks/invoice/README.md +30 -54
  45. package/docs/sdks/issue/README.md +5 -9
  46. package/docs/sdks/item/README.md +30 -54
  47. package/docs/sdks/job/README.md +30 -54
  48. package/docs/sdks/journal/README.md +30 -54
  49. package/docs/sdks/kms/README.md +90 -162
  50. package/docs/sdks/lead/README.md +30 -54
  51. package/docs/sdks/link/README.md +60 -108
  52. package/docs/sdks/list/README.md +30 -54
  53. package/docs/sdks/lms/README.md +120 -216
  54. package/docs/sdks/location/README.md +60 -108
  55. package/docs/sdks/login/README.md +5 -9
  56. package/docs/sdks/martech/README.md +60 -108
  57. package/docs/sdks/member/README.md +30 -54
  58. package/docs/sdks/message/README.md +30 -54
  59. package/docs/sdks/messaging/README.md +40 -72
  60. package/docs/sdks/metadata/README.md +30 -54
  61. package/docs/sdks/model/README.md +5 -9
  62. package/docs/sdks/note/README.md +30 -54
  63. package/docs/sdks/order/README.md +30 -54
  64. package/docs/sdks/organization/README.md +40 -72
  65. package/docs/sdks/page/README.md +30 -54
  66. package/docs/sdks/passthrough/README.md +40 -72
  67. package/docs/sdks/payment/README.md +110 -198
  68. package/docs/sdks/payout/README.md +10 -18
  69. package/docs/sdks/payslip/README.md +10 -18
  70. package/docs/sdks/person/README.md +5 -9
  71. package/docs/sdks/pipeline/README.md +30 -54
  72. package/docs/sdks/project/README.md +30 -54
  73. package/docs/sdks/prompt/README.md +5 -9
  74. package/docs/sdks/pullrequest/README.md +30 -54
  75. package/docs/sdks/recording/README.md +40 -72
  76. package/docs/sdks/refund/README.md +10 -18
  77. package/docs/sdks/repo/README.md +150 -270
  78. package/docs/sdks/report/README.md +10 -18
  79. package/docs/sdks/repository/README.md +30 -54
  80. package/docs/sdks/review/README.md +30 -54
  81. package/docs/sdks/scim/README.md +60 -108
  82. package/docs/sdks/scorecard/README.md +30 -54
  83. package/docs/sdks/space/README.md +30 -54
  84. package/docs/sdks/storage/README.md +30 -54
  85. package/docs/sdks/student/README.md +30 -54
  86. package/docs/sdks/subscription/README.md +30 -54
  87. package/docs/sdks/task/README.md +90 -162
  88. package/docs/sdks/taxrate/README.md +30 -54
  89. package/docs/sdks/ticket/README.md +30 -54
  90. package/docs/sdks/ticketing/README.md +90 -162
  91. package/docs/sdks/timeoff/README.md +10 -18
  92. package/docs/sdks/timeshift/README.md +30 -54
  93. package/docs/sdks/transaction/README.md +30 -54
  94. package/docs/sdks/uc/README.md +95 -171
  95. package/docs/sdks/unified/README.md +100 -180
  96. package/docs/sdks/user/README.md +30 -54
  97. package/docs/sdks/webhook/README.md +40 -72
  98. package/funcs/applicationListAtsApplications.js +1 -0
  99. package/funcs/applicationListAtsApplications.js.map +1 -1
  100. package/funcs/atsListAtsApplications.js +1 -0
  101. package/funcs/atsListAtsApplications.js.map +1 -1
  102. package/funcs/atsListAtsCandidates.js +1 -0
  103. package/funcs/atsListAtsCandidates.js.map +1 -1
  104. package/funcs/atsListAtsJobs.js +1 -0
  105. package/funcs/atsListAtsJobs.js.map +1 -1
  106. package/funcs/busyListCalendarBusies.js +1 -0
  107. package/funcs/busyListCalendarBusies.js.map +1 -1
  108. package/funcs/calendarListCalendarBusies.js +1 -0
  109. package/funcs/calendarListCalendarBusies.js.map +1 -1
  110. package/funcs/candidateListAtsCandidates.js +1 -0
  111. package/funcs/candidateListAtsCandidates.js.map +1 -1
  112. package/funcs/hrisListHrisLocations.js +1 -0
  113. package/funcs/hrisListHrisLocations.js.map +1 -1
  114. package/funcs/jobListAtsJobs.js +1 -0
  115. package/funcs/jobListAtsJobs.js.map +1 -1
  116. package/funcs/locationListHrisLocations.js +1 -0
  117. package/funcs/locationListHrisLocations.js.map +1 -1
  118. package/jsr.json +1 -1
  119. package/lib/config.d.ts +3 -3
  120. package/lib/config.js +3 -3
  121. package/mcp-server/mcp-server.js +1 -1
  122. package/mcp-server/server.js +1 -1
  123. package/package.json +1 -1
  124. package/sdk/models/errors/sdkerror.d.ts +14 -2
  125. package/sdk/models/errors/sdkerror.d.ts.map +1 -1
  126. package/sdk/models/errors/sdkerror.js +1 -1
  127. package/sdk/models/errors/sdkerror.js.map +1 -1
  128. package/sdk/models/operations/listatsapplications.d.ts +5 -0
  129. package/sdk/models/operations/listatsapplications.d.ts.map +1 -1
  130. package/sdk/models/operations/listatsapplications.js +4 -0
  131. package/sdk/models/operations/listatsapplications.js.map +1 -1
  132. package/sdk/models/operations/listatscandidates.d.ts +5 -0
  133. package/sdk/models/operations/listatscandidates.d.ts.map +1 -1
  134. package/sdk/models/operations/listatscandidates.js +4 -0
  135. package/sdk/models/operations/listatscandidates.js.map +1 -1
  136. package/sdk/models/operations/listatsjobs.d.ts +5 -0
  137. package/sdk/models/operations/listatsjobs.d.ts.map +1 -1
  138. package/sdk/models/operations/listatsjobs.js +4 -0
  139. package/sdk/models/operations/listatsjobs.js.map +1 -1
  140. package/sdk/models/operations/listcalendarbusies.d.ts +5 -0
  141. package/sdk/models/operations/listcalendarbusies.d.ts.map +1 -1
  142. package/sdk/models/operations/listcalendarbusies.js +4 -0
  143. package/sdk/models/operations/listcalendarbusies.js.map +1 -1
  144. package/sdk/models/operations/listhrislocations.d.ts +5 -0
  145. package/sdk/models/operations/listhrislocations.d.ts.map +1 -1
  146. package/sdk/models/operations/listhrislocations.js +4 -0
  147. package/sdk/models/operations/listhrislocations.js.map +1 -1
  148. package/sdk/models/shared/accountingaccount.d.ts +2 -0
  149. package/sdk/models/shared/accountingaccount.d.ts.map +1 -1
  150. package/sdk/models/shared/accountingaccount.js +4 -0
  151. package/sdk/models/shared/accountingaccount.js.map +1 -1
  152. package/sdk/models/shared/commercelocation.d.ts +6 -0
  153. package/sdk/models/shared/commercelocation.d.ts.map +1 -1
  154. package/sdk/models/shared/commercelocation.js +10 -0
  155. package/sdk/models/shared/commercelocation.js.map +1 -1
  156. package/sdk/models/shared/webhook.d.ts +3 -0
  157. package/sdk/models/shared/webhook.d.ts.map +1 -1
  158. package/sdk/models/shared/webhook.js +1 -0
  159. package/sdk/models/shared/webhook.js.map +1 -1
  160. package/src/funcs/applicationListAtsApplications.ts +1 -0
  161. package/src/funcs/atsListAtsApplications.ts +1 -0
  162. package/src/funcs/atsListAtsCandidates.ts +1 -0
  163. package/src/funcs/atsListAtsJobs.ts +1 -0
  164. package/src/funcs/busyListCalendarBusies.ts +1 -0
  165. package/src/funcs/calendarListCalendarBusies.ts +1 -0
  166. package/src/funcs/candidateListAtsCandidates.ts +1 -0
  167. package/src/funcs/hrisListHrisLocations.ts +1 -0
  168. package/src/funcs/jobListAtsJobs.ts +1 -0
  169. package/src/funcs/locationListHrisLocations.ts +1 -0
  170. package/src/lib/config.ts +3 -3
  171. package/src/mcp-server/mcp-server.ts +1 -1
  172. package/src/mcp-server/server.ts +1 -1
  173. package/src/sdk/models/errors/sdkerror.ts +18 -3
  174. package/src/sdk/models/operations/listatsapplications.ts +9 -0
  175. package/src/sdk/models/operations/listatscandidates.ts +9 -0
  176. package/src/sdk/models/operations/listatsjobs.ts +9 -0
  177. package/src/sdk/models/operations/listcalendarbusies.ts +9 -0
  178. package/src/sdk/models/operations/listhrislocations.ts +9 -0
  179. package/src/sdk/models/shared/accountingaccount.ts +6 -0
  180. package/src/sdk/models/shared/commercelocation.ts +16 -0
  181. package/src/sdk/models/shared/webhook.ts +1 -0
@@ -35,7 +35,6 @@ async function run() {
35
35
  connectionId: "<id>",
36
36
  });
37
37
 
38
- // Handle the result
39
38
  console.log(result);
40
39
  }
41
40
 
@@ -63,15 +62,12 @@ async function run() {
63
62
  repoOrganization: {},
64
63
  connectionId: "<id>",
65
64
  });
66
-
67
- if (!res.ok) {
68
- throw res.error;
65
+ if (res.ok) {
66
+ const { value: result } = res;
67
+ console.log(result);
68
+ } else {
69
+ console.log("organizationCreateRepoOrganization failed:", res.error);
69
70
  }
70
-
71
- const { value: result } = res;
72
-
73
- // Handle the result
74
- console.log(result);
75
71
  }
76
72
 
77
73
  run();
@@ -117,7 +113,6 @@ async function run() {
117
113
  id: "<id>",
118
114
  });
119
115
 
120
- // Handle the result
121
116
  console.log(result);
122
117
  }
123
118
 
@@ -145,15 +140,12 @@ async function run() {
145
140
  connectionId: "<id>",
146
141
  id: "<id>",
147
142
  });
148
-
149
- if (!res.ok) {
150
- throw res.error;
143
+ if (res.ok) {
144
+ const { value: result } = res;
145
+ console.log(result);
146
+ } else {
147
+ console.log("organizationGetAccountingOrganization failed:", res.error);
151
148
  }
152
-
153
- const { value: result } = res;
154
-
155
- // Handle the result
156
- console.log(result);
157
149
  }
158
150
 
159
151
  run();
@@ -199,7 +191,6 @@ async function run() {
199
191
  id: "<id>",
200
192
  });
201
193
 
202
- // Handle the result
203
194
  console.log(result);
204
195
  }
205
196
 
@@ -227,15 +218,12 @@ async function run() {
227
218
  connectionId: "<id>",
228
219
  id: "<id>",
229
220
  });
230
-
231
- if (!res.ok) {
232
- throw res.error;
221
+ if (res.ok) {
222
+ const { value: result } = res;
223
+ console.log(result);
224
+ } else {
225
+ console.log("organizationGetRepoOrganization failed:", res.error);
233
226
  }
234
-
235
- const { value: result } = res;
236
-
237
- // Handle the result
238
- console.log(result);
239
227
  }
240
228
 
241
229
  run();
@@ -280,7 +268,6 @@ async function run() {
280
268
  connectionId: "<id>",
281
269
  });
282
270
 
283
- // Handle the result
284
271
  console.log(result);
285
272
  }
286
273
 
@@ -307,15 +294,12 @@ async function run() {
307
294
  const res = await organizationListAccountingOrganizations(unifiedTo, {
308
295
  connectionId: "<id>",
309
296
  });
310
-
311
- if (!res.ok) {
312
- throw res.error;
297
+ if (res.ok) {
298
+ const { value: result } = res;
299
+ console.log(result);
300
+ } else {
301
+ console.log("organizationListAccountingOrganizations failed:", res.error);
313
302
  }
314
-
315
- const { value: result } = res;
316
-
317
- // Handle the result
318
- console.log(result);
319
303
  }
320
304
 
321
305
  run();
@@ -360,7 +344,6 @@ async function run() {
360
344
  connectionId: "<id>",
361
345
  });
362
346
 
363
- // Handle the result
364
347
  console.log(result);
365
348
  }
366
349
 
@@ -387,15 +370,12 @@ async function run() {
387
370
  const res = await organizationListRepoOrganizations(unifiedTo, {
388
371
  connectionId: "<id>",
389
372
  });
390
-
391
- if (!res.ok) {
392
- throw res.error;
373
+ if (res.ok) {
374
+ const { value: result } = res;
375
+ console.log(result);
376
+ } else {
377
+ console.log("organizationListRepoOrganizations failed:", res.error);
393
378
  }
394
-
395
- const { value: result } = res;
396
-
397
- // Handle the result
398
- console.log(result);
399
379
  }
400
380
 
401
381
  run();
@@ -442,7 +422,6 @@ async function run() {
442
422
  id: "<id>",
443
423
  });
444
424
 
445
- // Handle the result
446
425
  console.log(result);
447
426
  }
448
427
 
@@ -471,15 +450,12 @@ async function run() {
471
450
  connectionId: "<id>",
472
451
  id: "<id>",
473
452
  });
474
-
475
- if (!res.ok) {
476
- throw res.error;
453
+ if (res.ok) {
454
+ const { value: result } = res;
455
+ console.log(result);
456
+ } else {
457
+ console.log("organizationPatchRepoOrganization failed:", res.error);
477
458
  }
478
-
479
- const { value: result } = res;
480
-
481
- // Handle the result
482
- console.log(result);
483
459
  }
484
460
 
485
461
  run();
@@ -525,7 +501,6 @@ async function run() {
525
501
  id: "<id>",
526
502
  });
527
503
 
528
- // Handle the result
529
504
  console.log(result);
530
505
  }
531
506
 
@@ -553,15 +528,12 @@ async function run() {
553
528
  connectionId: "<id>",
554
529
  id: "<id>",
555
530
  });
556
-
557
- if (!res.ok) {
558
- throw res.error;
531
+ if (res.ok) {
532
+ const { value: result } = res;
533
+ console.log(result);
534
+ } else {
535
+ console.log("organizationRemoveRepoOrganization failed:", res.error);
559
536
  }
560
-
561
- const { value: result } = res;
562
-
563
- // Handle the result
564
- console.log(result);
565
537
  }
566
538
 
567
539
  run();
@@ -608,7 +580,6 @@ async function run() {
608
580
  id: "<id>",
609
581
  });
610
582
 
611
- // Handle the result
612
583
  console.log(result);
613
584
  }
614
585
 
@@ -637,15 +608,12 @@ async function run() {
637
608
  connectionId: "<id>",
638
609
  id: "<id>",
639
610
  });
640
-
641
- if (!res.ok) {
642
- throw res.error;
611
+ if (res.ok) {
612
+ const { value: result } = res;
613
+ console.log(result);
614
+ } else {
615
+ console.log("organizationUpdateRepoOrganization failed:", res.error);
643
616
  }
644
-
645
- const { value: result } = res;
646
-
647
- // Handle the result
648
- console.log(result);
649
617
  }
650
618
 
651
619
  run();
@@ -36,7 +36,6 @@ async function run() {
36
36
  connectionId: "<id>",
37
37
  });
38
38
 
39
- // Handle the result
40
39
  console.log(result);
41
40
  }
42
41
 
@@ -67,15 +66,12 @@ async function run() {
67
66
  },
68
67
  connectionId: "<id>",
69
68
  });
70
-
71
- if (!res.ok) {
72
- throw res.error;
69
+ if (res.ok) {
70
+ const { value: result } = res;
71
+ console.log(result);
72
+ } else {
73
+ console.log("pageCreateKmsPage failed:", res.error);
73
74
  }
74
-
75
- const { value: result } = res;
76
-
77
- // Handle the result
78
- console.log(result);
79
75
  }
80
76
 
81
77
  run();
@@ -121,7 +117,6 @@ async function run() {
121
117
  id: "<id>",
122
118
  });
123
119
 
124
- // Handle the result
125
120
  console.log(result);
126
121
  }
127
122
 
@@ -149,15 +144,12 @@ async function run() {
149
144
  connectionId: "<id>",
150
145
  id: "<id>",
151
146
  });
152
-
153
- if (!res.ok) {
154
- throw res.error;
147
+ if (res.ok) {
148
+ const { value: result } = res;
149
+ console.log(result);
150
+ } else {
151
+ console.log("pageGetKmsPage failed:", res.error);
155
152
  }
156
-
157
- const { value: result } = res;
158
-
159
- // Handle the result
160
- console.log(result);
161
153
  }
162
154
 
163
155
  run();
@@ -202,7 +194,6 @@ async function run() {
202
194
  connectionId: "<id>",
203
195
  });
204
196
 
205
- // Handle the result
206
197
  console.log(result);
207
198
  }
208
199
 
@@ -229,15 +220,12 @@ async function run() {
229
220
  const res = await pageListKmsPages(unifiedTo, {
230
221
  connectionId: "<id>",
231
222
  });
232
-
233
- if (!res.ok) {
234
- throw res.error;
223
+ if (res.ok) {
224
+ const { value: result } = res;
225
+ console.log(result);
226
+ } else {
227
+ console.log("pageListKmsPages failed:", res.error);
235
228
  }
236
-
237
- const { value: result } = res;
238
-
239
- // Handle the result
240
- console.log(result);
241
229
  }
242
230
 
243
231
  run();
@@ -287,7 +275,6 @@ async function run() {
287
275
  id: "<id>",
288
276
  });
289
277
 
290
- // Handle the result
291
278
  console.log(result);
292
279
  }
293
280
 
@@ -319,15 +306,12 @@ async function run() {
319
306
  connectionId: "<id>",
320
307
  id: "<id>",
321
308
  });
322
-
323
- if (!res.ok) {
324
- throw res.error;
309
+ if (res.ok) {
310
+ const { value: result } = res;
311
+ console.log(result);
312
+ } else {
313
+ console.log("pagePatchKmsPage failed:", res.error);
325
314
  }
326
-
327
- const { value: result } = res;
328
-
329
- // Handle the result
330
- console.log(result);
331
315
  }
332
316
 
333
317
  run();
@@ -373,7 +357,6 @@ async function run() {
373
357
  id: "<id>",
374
358
  });
375
359
 
376
- // Handle the result
377
360
  console.log(result);
378
361
  }
379
362
 
@@ -401,15 +384,12 @@ async function run() {
401
384
  connectionId: "<id>",
402
385
  id: "<id>",
403
386
  });
404
-
405
- if (!res.ok) {
406
- throw res.error;
387
+ if (res.ok) {
388
+ const { value: result } = res;
389
+ console.log(result);
390
+ } else {
391
+ console.log("pageRemoveKmsPage failed:", res.error);
407
392
  }
408
-
409
- const { value: result } = res;
410
-
411
- // Handle the result
412
- console.log(result);
413
393
  }
414
394
 
415
395
  run();
@@ -459,7 +439,6 @@ async function run() {
459
439
  id: "<id>",
460
440
  });
461
441
 
462
- // Handle the result
463
442
  console.log(result);
464
443
  }
465
444
 
@@ -491,15 +470,12 @@ async function run() {
491
470
  connectionId: "<id>",
492
471
  id: "<id>",
493
472
  });
494
-
495
- if (!res.ok) {
496
- throw res.error;
473
+ if (res.ok) {
474
+ const { value: result } = res;
475
+ console.log(result);
476
+ } else {
477
+ console.log("pageUpdateKmsPage failed:", res.error);
497
478
  }
498
-
499
- const { value: result } = res;
500
-
501
- // Handle the result
502
- console.log(result);
503
479
  }
504
480
 
505
481
  run();
@@ -35,7 +35,6 @@ async function run() {
35
35
  path: "/var/log",
36
36
  });
37
37
 
38
- // Handle the result
39
38
  console.log(result);
40
39
  }
41
40
 
@@ -63,15 +62,12 @@ async function run() {
63
62
  connectionId: "<id>",
64
63
  path: "/var/log",
65
64
  });
66
-
67
- if (!res.ok) {
68
- throw res.error;
65
+ if (res.ok) {
66
+ const { value: result } = res;
67
+ console.log(result);
68
+ } else {
69
+ console.log("passthroughCreatePassthroughJson failed:", res.error);
69
70
  }
70
-
71
- const { value: result } = res;
72
-
73
- // Handle the result
74
- console.log(result);
75
71
  }
76
72
 
77
73
  run();
@@ -117,7 +113,6 @@ async function run() {
117
113
  path: "/var/log",
118
114
  });
119
115
 
120
- // Handle the result
121
116
  console.log(result);
122
117
  }
123
118
 
@@ -145,15 +140,12 @@ async function run() {
145
140
  connectionId: "<id>",
146
141
  path: "/var/log",
147
142
  });
148
-
149
- if (!res.ok) {
150
- throw res.error;
143
+ if (res.ok) {
144
+ const { value: result } = res;
145
+ console.log(result);
146
+ } else {
147
+ console.log("passthroughCreatePassthroughRaw failed:", res.error);
151
148
  }
152
-
153
- const { value: result } = res;
154
-
155
- // Handle the result
156
- console.log(result);
157
149
  }
158
150
 
159
151
  run();
@@ -199,7 +191,6 @@ async function run() {
199
191
  path: "/System",
200
192
  });
201
193
 
202
- // Handle the result
203
194
  console.log(result);
204
195
  }
205
196
 
@@ -227,15 +218,12 @@ async function run() {
227
218
  connectionId: "<id>",
228
219
  path: "/System",
229
220
  });
230
-
231
- if (!res.ok) {
232
- throw res.error;
221
+ if (res.ok) {
222
+ const { value: result } = res;
223
+ console.log(result);
224
+ } else {
225
+ console.log("passthroughListPassthroughs failed:", res.error);
233
226
  }
234
-
235
- const { value: result } = res;
236
-
237
- // Handle the result
238
- console.log(result);
239
227
  }
240
228
 
241
229
  run();
@@ -281,7 +269,6 @@ async function run() {
281
269
  path: "/System",
282
270
  });
283
271
 
284
- // Handle the result
285
272
  console.log(result);
286
273
  }
287
274
 
@@ -309,15 +296,12 @@ async function run() {
309
296
  connectionId: "<id>",
310
297
  path: "/System",
311
298
  });
312
-
313
- if (!res.ok) {
314
- throw res.error;
299
+ if (res.ok) {
300
+ const { value: result } = res;
301
+ console.log(result);
302
+ } else {
303
+ console.log("passthroughPatchPassthroughJson failed:", res.error);
315
304
  }
316
-
317
- const { value: result } = res;
318
-
319
- // Handle the result
320
- console.log(result);
321
305
  }
322
306
 
323
307
  run();
@@ -363,7 +347,6 @@ async function run() {
363
347
  path: "/System",
364
348
  });
365
349
 
366
- // Handle the result
367
350
  console.log(result);
368
351
  }
369
352
 
@@ -391,15 +374,12 @@ async function run() {
391
374
  connectionId: "<id>",
392
375
  path: "/System",
393
376
  });
394
-
395
- if (!res.ok) {
396
- throw res.error;
377
+ if (res.ok) {
378
+ const { value: result } = res;
379
+ console.log(result);
380
+ } else {
381
+ console.log("passthroughPatchPassthroughRaw failed:", res.error);
397
382
  }
398
-
399
- const { value: result } = res;
400
-
401
- // Handle the result
402
- console.log(result);
403
383
  }
404
384
 
405
385
  run();
@@ -445,7 +425,6 @@ async function run() {
445
425
  path: "/bin",
446
426
  });
447
427
 
448
- // Handle the result
449
428
  console.log(result);
450
429
  }
451
430
 
@@ -473,15 +452,12 @@ async function run() {
473
452
  connectionId: "<id>",
474
453
  path: "/bin",
475
454
  });
476
-
477
- if (!res.ok) {
478
- throw res.error;
455
+ if (res.ok) {
456
+ const { value: result } = res;
457
+ console.log(result);
458
+ } else {
459
+ console.log("passthroughRemovePassthrough failed:", res.error);
479
460
  }
480
-
481
- const { value: result } = res;
482
-
483
- // Handle the result
484
- console.log(result);
485
461
  }
486
462
 
487
463
  run();
@@ -527,7 +503,6 @@ async function run() {
527
503
  path: "/var/tmp",
528
504
  });
529
505
 
530
- // Handle the result
531
506
  console.log(result);
532
507
  }
533
508
 
@@ -555,15 +530,12 @@ async function run() {
555
530
  connectionId: "<id>",
556
531
  path: "/var/tmp",
557
532
  });
558
-
559
- if (!res.ok) {
560
- throw res.error;
533
+ if (res.ok) {
534
+ const { value: result } = res;
535
+ console.log(result);
536
+ } else {
537
+ console.log("passthroughUpdatePassthroughJson failed:", res.error);
561
538
  }
562
-
563
- const { value: result } = res;
564
-
565
- // Handle the result
566
- console.log(result);
567
539
  }
568
540
 
569
541
  run();
@@ -609,7 +581,6 @@ async function run() {
609
581
  path: "/var/tmp",
610
582
  });
611
583
 
612
- // Handle the result
613
584
  console.log(result);
614
585
  }
615
586
 
@@ -637,15 +608,12 @@ async function run() {
637
608
  connectionId: "<id>",
638
609
  path: "/var/tmp",
639
610
  });
640
-
641
- if (!res.ok) {
642
- throw res.error;
611
+ if (res.ok) {
612
+ const { value: result } = res;
613
+ console.log(result);
614
+ } else {
615
+ console.log("passthroughUpdatePassthroughRaw failed:", res.error);
643
616
  }
644
-
645
- const { value: result } = res;
646
-
647
- // Handle the result
648
- console.log(result);
649
617
  }
650
618
 
651
619
  run();