@unified-api/typescript-sdk 2.86.4 → 2.86.6

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 (157) hide show
  1. package/FUNCTIONS.md +2 -2
  2. package/README.md +16 -12
  3. package/dist/commonjs/funcs/unifiedPatchUnifiedWebhookResume.d.ts +18 -0
  4. package/dist/commonjs/funcs/unifiedPatchUnifiedWebhookResume.d.ts.map +1 -0
  5. package/dist/commonjs/funcs/unifiedPatchUnifiedWebhookResume.js +120 -0
  6. package/dist/commonjs/funcs/unifiedPatchUnifiedWebhookResume.js.map +1 -0
  7. package/dist/commonjs/funcs/unifiedUpdateUnifiedWebhookResume.d.ts +18 -0
  8. package/dist/commonjs/funcs/unifiedUpdateUnifiedWebhookResume.d.ts.map +1 -0
  9. package/dist/commonjs/funcs/unifiedUpdateUnifiedWebhookResume.js +120 -0
  10. package/dist/commonjs/funcs/unifiedUpdateUnifiedWebhookResume.js.map +1 -0
  11. package/dist/commonjs/lib/config.d.ts +3 -3
  12. package/dist/commonjs/lib/config.js +3 -3
  13. package/dist/commonjs/lib/config.js.map +1 -1
  14. package/dist/commonjs/sdk/models/operations/createcalendarevent.d.ts +1 -1
  15. package/dist/commonjs/sdk/models/operations/createcalendarevent.js +1 -1
  16. package/dist/commonjs/sdk/models/operations/createcalendarevent.js.map +1 -1
  17. package/dist/commonjs/sdk/models/operations/getcalendarevent.d.ts +1 -1
  18. package/dist/commonjs/sdk/models/operations/getcalendarevent.js +1 -1
  19. package/dist/commonjs/sdk/models/operations/getcalendarevent.js.map +1 -1
  20. package/dist/commonjs/sdk/models/operations/getcalendarlocation.d.ts +3 -3
  21. package/dist/commonjs/sdk/models/operations/getcalendarlocation.js +3 -3
  22. package/dist/commonjs/sdk/models/operations/getcalendarlocation.js.map +1 -1
  23. package/dist/commonjs/sdk/models/operations/getcalendarroom.d.ts +4 -4
  24. package/dist/commonjs/sdk/models/operations/getcalendarroom.js +4 -4
  25. package/dist/commonjs/sdk/models/operations/getcalendarroom.js.map +1 -1
  26. package/dist/commonjs/sdk/models/operations/getunifiedintegrationauth.d.ts +1 -1
  27. package/dist/commonjs/sdk/models/operations/getunifiedintegrationlogin.d.ts +1 -1
  28. package/dist/commonjs/sdk/models/operations/getunifiedintegrationsaml.d.ts +1 -1
  29. package/dist/commonjs/sdk/models/operations/index.d.ts +2 -0
  30. package/dist/commonjs/sdk/models/operations/index.d.ts.map +1 -1
  31. package/dist/commonjs/sdk/models/operations/index.js +2 -0
  32. package/dist/commonjs/sdk/models/operations/index.js.map +1 -1
  33. package/dist/commonjs/sdk/models/operations/listcalendarevents.d.ts +1 -1
  34. package/dist/commonjs/sdk/models/operations/listcalendarevents.js +1 -1
  35. package/dist/commonjs/sdk/models/operations/listcalendarevents.js.map +1 -1
  36. package/dist/commonjs/sdk/models/operations/listcalendarlocations.d.ts +3 -3
  37. package/dist/commonjs/sdk/models/operations/listcalendarlocations.js +3 -3
  38. package/dist/commonjs/sdk/models/operations/listcalendarlocations.js.map +1 -1
  39. package/dist/commonjs/sdk/models/operations/listcalendarrooms.d.ts +4 -4
  40. package/dist/commonjs/sdk/models/operations/listcalendarrooms.js +4 -4
  41. package/dist/commonjs/sdk/models/operations/listcalendarrooms.js.map +1 -1
  42. package/dist/commonjs/sdk/models/operations/patchcalendarevent.d.ts +1 -1
  43. package/dist/commonjs/sdk/models/operations/patchcalendarevent.js +1 -1
  44. package/dist/commonjs/sdk/models/operations/patchcalendarevent.js.map +1 -1
  45. package/dist/commonjs/sdk/models/operations/patchunifiedwebhookresume.d.ts +15 -0
  46. package/dist/commonjs/sdk/models/operations/patchunifiedwebhookresume.d.ts.map +1 -0
  47. package/dist/commonjs/sdk/models/operations/patchunifiedwebhookresume.js +49 -0
  48. package/dist/commonjs/sdk/models/operations/patchunifiedwebhookresume.js.map +1 -0
  49. package/dist/commonjs/sdk/models/operations/updatecalendarevent.d.ts +1 -1
  50. package/dist/commonjs/sdk/models/operations/updatecalendarevent.js +1 -1
  51. package/dist/commonjs/sdk/models/operations/updatecalendarevent.js.map +1 -1
  52. package/dist/commonjs/sdk/models/operations/updateunifiedwebhookresume.d.ts +15 -0
  53. package/dist/commonjs/sdk/models/operations/updateunifiedwebhookresume.d.ts.map +1 -0
  54. package/dist/commonjs/sdk/models/operations/updateunifiedwebhookresume.js +49 -0
  55. package/dist/commonjs/sdk/models/operations/updateunifiedwebhookresume.js.map +1 -0
  56. package/dist/commonjs/sdk/models/shared/crmcontact.d.ts +7 -1
  57. package/dist/commonjs/sdk/models/shared/crmcontact.d.ts.map +1 -1
  58. package/dist/commonjs/sdk/models/shared/crmcontact.js.map +1 -1
  59. package/dist/commonjs/sdk/models/shared/enrichperson.d.ts +1 -1
  60. package/dist/commonjs/sdk/unified.d.ts +14 -0
  61. package/dist/commonjs/sdk/unified.d.ts.map +1 -1
  62. package/dist/commonjs/sdk/unified.js +20 -0
  63. package/dist/commonjs/sdk/unified.js.map +1 -1
  64. package/dist/commonjs/sdk/webhook.d.ts +14 -0
  65. package/dist/commonjs/sdk/webhook.d.ts.map +1 -1
  66. package/dist/commonjs/sdk/webhook.js +20 -0
  67. package/dist/commonjs/sdk/webhook.js.map +1 -1
  68. package/dist/esm/funcs/unifiedPatchUnifiedWebhookResume.d.ts +18 -0
  69. package/dist/esm/funcs/unifiedPatchUnifiedWebhookResume.d.ts.map +1 -0
  70. package/dist/esm/funcs/unifiedPatchUnifiedWebhookResume.js +84 -0
  71. package/dist/esm/funcs/unifiedPatchUnifiedWebhookResume.js.map +1 -0
  72. package/dist/esm/funcs/unifiedUpdateUnifiedWebhookResume.d.ts +18 -0
  73. package/dist/esm/funcs/unifiedUpdateUnifiedWebhookResume.d.ts.map +1 -0
  74. package/dist/esm/funcs/unifiedUpdateUnifiedWebhookResume.js +84 -0
  75. package/dist/esm/funcs/unifiedUpdateUnifiedWebhookResume.js.map +1 -0
  76. package/dist/esm/lib/config.d.ts +3 -3
  77. package/dist/esm/lib/config.js +3 -3
  78. package/dist/esm/lib/config.js.map +1 -1
  79. package/dist/esm/sdk/models/operations/createcalendarevent.d.ts +1 -1
  80. package/dist/esm/sdk/models/operations/createcalendarevent.js +1 -1
  81. package/dist/esm/sdk/models/operations/createcalendarevent.js.map +1 -1
  82. package/dist/esm/sdk/models/operations/getcalendarevent.d.ts +1 -1
  83. package/dist/esm/sdk/models/operations/getcalendarevent.js +1 -1
  84. package/dist/esm/sdk/models/operations/getcalendarevent.js.map +1 -1
  85. package/dist/esm/sdk/models/operations/getcalendarlocation.d.ts +3 -3
  86. package/dist/esm/sdk/models/operations/getcalendarlocation.js +3 -3
  87. package/dist/esm/sdk/models/operations/getcalendarlocation.js.map +1 -1
  88. package/dist/esm/sdk/models/operations/getcalendarroom.d.ts +4 -4
  89. package/dist/esm/sdk/models/operations/getcalendarroom.js +4 -4
  90. package/dist/esm/sdk/models/operations/getcalendarroom.js.map +1 -1
  91. package/dist/esm/sdk/models/operations/getunifiedintegrationauth.d.ts +1 -1
  92. package/dist/esm/sdk/models/operations/getunifiedintegrationlogin.d.ts +1 -1
  93. package/dist/esm/sdk/models/operations/getunifiedintegrationsaml.d.ts +1 -1
  94. package/dist/esm/sdk/models/operations/index.d.ts +2 -0
  95. package/dist/esm/sdk/models/operations/index.d.ts.map +1 -1
  96. package/dist/esm/sdk/models/operations/index.js +2 -0
  97. package/dist/esm/sdk/models/operations/index.js.map +1 -1
  98. package/dist/esm/sdk/models/operations/listcalendarevents.d.ts +1 -1
  99. package/dist/esm/sdk/models/operations/listcalendarevents.js +1 -1
  100. package/dist/esm/sdk/models/operations/listcalendarevents.js.map +1 -1
  101. package/dist/esm/sdk/models/operations/listcalendarlocations.d.ts +3 -3
  102. package/dist/esm/sdk/models/operations/listcalendarlocations.js +3 -3
  103. package/dist/esm/sdk/models/operations/listcalendarlocations.js.map +1 -1
  104. package/dist/esm/sdk/models/operations/listcalendarrooms.d.ts +4 -4
  105. package/dist/esm/sdk/models/operations/listcalendarrooms.js +4 -4
  106. package/dist/esm/sdk/models/operations/listcalendarrooms.js.map +1 -1
  107. package/dist/esm/sdk/models/operations/patchcalendarevent.d.ts +1 -1
  108. package/dist/esm/sdk/models/operations/patchcalendarevent.js +1 -1
  109. package/dist/esm/sdk/models/operations/patchcalendarevent.js.map +1 -1
  110. package/dist/esm/sdk/models/operations/patchunifiedwebhookresume.d.ts +15 -0
  111. package/dist/esm/sdk/models/operations/patchunifiedwebhookresume.d.ts.map +1 -0
  112. package/dist/esm/sdk/models/operations/patchunifiedwebhookresume.js +12 -0
  113. package/dist/esm/sdk/models/operations/patchunifiedwebhookresume.js.map +1 -0
  114. package/dist/esm/sdk/models/operations/updatecalendarevent.d.ts +1 -1
  115. package/dist/esm/sdk/models/operations/updatecalendarevent.js +1 -1
  116. package/dist/esm/sdk/models/operations/updatecalendarevent.js.map +1 -1
  117. package/dist/esm/sdk/models/operations/updateunifiedwebhookresume.d.ts +15 -0
  118. package/dist/esm/sdk/models/operations/updateunifiedwebhookresume.d.ts.map +1 -0
  119. package/dist/esm/sdk/models/operations/updateunifiedwebhookresume.js +12 -0
  120. package/dist/esm/sdk/models/operations/updateunifiedwebhookresume.js.map +1 -0
  121. package/dist/esm/sdk/models/shared/crmcontact.d.ts +7 -1
  122. package/dist/esm/sdk/models/shared/crmcontact.d.ts.map +1 -1
  123. package/dist/esm/sdk/models/shared/crmcontact.js.map +1 -1
  124. package/dist/esm/sdk/models/shared/enrichperson.d.ts +1 -1
  125. package/dist/esm/sdk/unified.d.ts +14 -0
  126. package/dist/esm/sdk/unified.d.ts.map +1 -1
  127. package/dist/esm/sdk/unified.js +20 -0
  128. package/dist/esm/sdk/unified.js.map +1 -1
  129. package/dist/esm/sdk/webhook.d.ts +14 -0
  130. package/dist/esm/sdk/webhook.d.ts.map +1 -1
  131. package/dist/esm/sdk/webhook.js +20 -0
  132. package/dist/esm/sdk/webhook.js.map +1 -1
  133. package/examples/accountingCreateAccountingAccount.example.ts +2 -2
  134. package/jsr.json +1 -1
  135. package/package.json +1 -1
  136. package/src/funcs/unifiedPatchUnifiedWebhookResume.ts +168 -0
  137. package/src/funcs/unifiedUpdateUnifiedWebhookResume.ts +168 -0
  138. package/src/lib/config.ts +3 -3
  139. package/src/sdk/models/operations/createcalendarevent.ts +1 -1
  140. package/src/sdk/models/operations/getcalendarevent.ts +1 -1
  141. package/src/sdk/models/operations/getcalendarlocation.ts +3 -3
  142. package/src/sdk/models/operations/getcalendarroom.ts +4 -4
  143. package/src/sdk/models/operations/getunifiedintegrationauth.ts +1 -1
  144. package/src/sdk/models/operations/getunifiedintegrationlogin.ts +1 -1
  145. package/src/sdk/models/operations/getunifiedintegrationsaml.ts +1 -1
  146. package/src/sdk/models/operations/index.ts +2 -0
  147. package/src/sdk/models/operations/listcalendarevents.ts +1 -1
  148. package/src/sdk/models/operations/listcalendarlocations.ts +3 -3
  149. package/src/sdk/models/operations/listcalendarrooms.ts +4 -4
  150. package/src/sdk/models/operations/patchcalendarevent.ts +1 -1
  151. package/src/sdk/models/operations/patchunifiedwebhookresume.ts +36 -0
  152. package/src/sdk/models/operations/updatecalendarevent.ts +1 -1
  153. package/src/sdk/models/operations/updateunifiedwebhookresume.ts +36 -0
  154. package/src/sdk/models/shared/crmcontact.ts +7 -1
  155. package/src/sdk/models/shared/enrichperson.ts +1 -1
  156. package/src/sdk/unified.ts +36 -0
  157. package/src/sdk/webhook.ts +36 -0
@@ -26,6 +26,7 @@ import { unifiedListUnifiedSecretsmanagerSecrets } from "../funcs/unifiedListUni
26
26
  import { unifiedListUnifiedWebhooks } from "../funcs/unifiedListUnifiedWebhooks.js";
27
27
  import { unifiedPatchUnifiedConnection } from "../funcs/unifiedPatchUnifiedConnection.js";
28
28
  import { unifiedPatchUnifiedWebhook } from "../funcs/unifiedPatchUnifiedWebhook.js";
29
+ import { unifiedPatchUnifiedWebhookResume } from "../funcs/unifiedPatchUnifiedWebhookResume.js";
29
30
  import { unifiedPatchUnifiedWebhookTrigger } from "../funcs/unifiedPatchUnifiedWebhookTrigger.js";
30
31
  import { unifiedRemoveUnifiedConnection } from "../funcs/unifiedRemoveUnifiedConnection.js";
31
32
  import { unifiedRemoveUnifiedEnvironment } from "../funcs/unifiedRemoveUnifiedEnvironment.js";
@@ -33,6 +34,7 @@ import { unifiedRemoveUnifiedSecretsmanager } from "../funcs/unifiedRemoveUnifie
33
34
  import { unifiedRemoveUnifiedWebhook } from "../funcs/unifiedRemoveUnifiedWebhook.js";
34
35
  import { unifiedUpdateUnifiedConnection } from "../funcs/unifiedUpdateUnifiedConnection.js";
35
36
  import { unifiedUpdateUnifiedWebhook } from "../funcs/unifiedUpdateUnifiedWebhook.js";
37
+ import { unifiedUpdateUnifiedWebhookResume } from "../funcs/unifiedUpdateUnifiedWebhookResume.js";
36
38
  import { unifiedUpdateUnifiedWebhookTrigger } from "../funcs/unifiedUpdateUnifiedWebhookTrigger.js";
37
39
  import { ClientSDK, RequestOptions } from "../lib/sdks.js";
38
40
  import * as operations from "./models/operations/index.js";
@@ -387,6 +389,23 @@ export class Unified extends ClientSDK {
387
389
  ));
388
390
  }
389
391
 
392
+ /**
393
+ * Resume an unhealthy webhook subscription
394
+ *
395
+ * @remarks
396
+ * Sets is_healthy back to true and restarts the webhook. Fix the cause first (hook_url, connection auth); the connection must be healthy. Virtual: continues from where it stopped. A webhook that went unhealthy mid-initial-sync before resume was available restarts its initial sync, so deleting and recreating it is safer. Native: re-subscribes if the provider subscription is missing or expired. Events received while the webhook was unhealthy are not re-sent. Webhook sync (beta): continues from the stored sync token. Page cursors are not stored yet, so a resume can re-send some records. Virtual and initial-sync webhooks that have been unhealthy for more than 7 days cannot be resumed, because resuming would re-send every change since then; delete and recreate them instead. MCP Events subscriptions cannot be resumed; they are managed by their MCP client.
397
+ */
398
+ async patchUnifiedWebhookResume(
399
+ request: operations.PatchUnifiedWebhookResumeRequest,
400
+ options?: RequestOptions,
401
+ ): Promise<shared.Webhook> {
402
+ return unwrapAsync(unifiedPatchUnifiedWebhookResume(
403
+ this,
404
+ request,
405
+ options,
406
+ ));
407
+ }
408
+
390
409
  /**
391
410
  * Trigger webhook
392
411
  */
@@ -485,6 +504,23 @@ export class Unified extends ClientSDK {
485
504
  ));
486
505
  }
487
506
 
507
+ /**
508
+ * Resume an unhealthy webhook subscription
509
+ *
510
+ * @remarks
511
+ * Sets is_healthy back to true and restarts the webhook. Fix the cause first (hook_url, connection auth); the connection must be healthy. Virtual: continues from where it stopped. A webhook that went unhealthy mid-initial-sync before resume was available restarts its initial sync, so deleting and recreating it is safer. Native: re-subscribes if the provider subscription is missing or expired. Events received while the webhook was unhealthy are not re-sent. Webhook sync (beta): continues from the stored sync token. Page cursors are not stored yet, so a resume can re-send some records. Virtual and initial-sync webhooks that have been unhealthy for more than 7 days cannot be resumed, because resuming would re-send every change since then; delete and recreate them instead. MCP Events subscriptions cannot be resumed; they are managed by their MCP client.
512
+ */
513
+ async updateUnifiedWebhookResume(
514
+ request: operations.UpdateUnifiedWebhookResumeRequest,
515
+ options?: RequestOptions,
516
+ ): Promise<shared.Webhook> {
517
+ return unwrapAsync(unifiedUpdateUnifiedWebhookResume(
518
+ this,
519
+ request,
520
+ options,
521
+ ));
522
+ }
523
+
488
524
  /**
489
525
  * Trigger webhook
490
526
  */
@@ -6,9 +6,11 @@ import { unifiedCreateUnifiedWebhook } from "../funcs/unifiedCreateUnifiedWebhoo
6
6
  import { unifiedGetUnifiedWebhook } from "../funcs/unifiedGetUnifiedWebhook.js";
7
7
  import { unifiedListUnifiedWebhooks } from "../funcs/unifiedListUnifiedWebhooks.js";
8
8
  import { unifiedPatchUnifiedWebhook } from "../funcs/unifiedPatchUnifiedWebhook.js";
9
+ import { unifiedPatchUnifiedWebhookResume } from "../funcs/unifiedPatchUnifiedWebhookResume.js";
9
10
  import { unifiedPatchUnifiedWebhookTrigger } from "../funcs/unifiedPatchUnifiedWebhookTrigger.js";
10
11
  import { unifiedRemoveUnifiedWebhook } from "../funcs/unifiedRemoveUnifiedWebhook.js";
11
12
  import { unifiedUpdateUnifiedWebhook } from "../funcs/unifiedUpdateUnifiedWebhook.js";
13
+ import { unifiedUpdateUnifiedWebhookResume } from "../funcs/unifiedUpdateUnifiedWebhookResume.js";
12
14
  import { unifiedUpdateUnifiedWebhookTrigger } from "../funcs/unifiedUpdateUnifiedWebhookTrigger.js";
13
15
  import { ClientSDK, RequestOptions } from "../lib/sdks.js";
14
16
  import * as operations from "./models/operations/index.js";
@@ -75,6 +77,23 @@ export class Webhook extends ClientSDK {
75
77
  ));
76
78
  }
77
79
 
80
+ /**
81
+ * Resume an unhealthy webhook subscription
82
+ *
83
+ * @remarks
84
+ * Sets is_healthy back to true and restarts the webhook. Fix the cause first (hook_url, connection auth); the connection must be healthy. Virtual: continues from where it stopped. A webhook that went unhealthy mid-initial-sync before resume was available restarts its initial sync, so deleting and recreating it is safer. Native: re-subscribes if the provider subscription is missing or expired. Events received while the webhook was unhealthy are not re-sent. Webhook sync (beta): continues from the stored sync token. Page cursors are not stored yet, so a resume can re-send some records. Virtual and initial-sync webhooks that have been unhealthy for more than 7 days cannot be resumed, because resuming would re-send every change since then; delete and recreate them instead. MCP Events subscriptions cannot be resumed; they are managed by their MCP client.
85
+ */
86
+ async patchUnifiedWebhookResume(
87
+ request: operations.PatchUnifiedWebhookResumeRequest,
88
+ options?: RequestOptions,
89
+ ): Promise<shared.Webhook> {
90
+ return unwrapAsync(unifiedPatchUnifiedWebhookResume(
91
+ this,
92
+ request,
93
+ options,
94
+ ));
95
+ }
96
+
78
97
  /**
79
98
  * Trigger webhook
80
99
  */
@@ -117,6 +136,23 @@ export class Webhook extends ClientSDK {
117
136
  ));
118
137
  }
119
138
 
139
+ /**
140
+ * Resume an unhealthy webhook subscription
141
+ *
142
+ * @remarks
143
+ * Sets is_healthy back to true and restarts the webhook. Fix the cause first (hook_url, connection auth); the connection must be healthy. Virtual: continues from where it stopped. A webhook that went unhealthy mid-initial-sync before resume was available restarts its initial sync, so deleting and recreating it is safer. Native: re-subscribes if the provider subscription is missing or expired. Events received while the webhook was unhealthy are not re-sent. Webhook sync (beta): continues from the stored sync token. Page cursors are not stored yet, so a resume can re-send some records. Virtual and initial-sync webhooks that have been unhealthy for more than 7 days cannot be resumed, because resuming would re-send every change since then; delete and recreate them instead. MCP Events subscriptions cannot be resumed; they are managed by their MCP client.
144
+ */
145
+ async updateUnifiedWebhookResume(
146
+ request: operations.UpdateUnifiedWebhookResumeRequest,
147
+ options?: RequestOptions,
148
+ ): Promise<shared.Webhook> {
149
+ return unwrapAsync(unifiedUpdateUnifiedWebhookResume(
150
+ this,
151
+ request,
152
+ options,
153
+ ));
154
+ }
155
+
120
156
  /**
121
157
  * Trigger webhook
122
158
  */