@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.
- package/FUNCTIONS.md +2 -2
- package/README.md +16 -12
- package/dist/commonjs/funcs/unifiedPatchUnifiedWebhookResume.d.ts +18 -0
- package/dist/commonjs/funcs/unifiedPatchUnifiedWebhookResume.d.ts.map +1 -0
- package/dist/commonjs/funcs/unifiedPatchUnifiedWebhookResume.js +120 -0
- package/dist/commonjs/funcs/unifiedPatchUnifiedWebhookResume.js.map +1 -0
- package/dist/commonjs/funcs/unifiedUpdateUnifiedWebhookResume.d.ts +18 -0
- package/dist/commonjs/funcs/unifiedUpdateUnifiedWebhookResume.d.ts.map +1 -0
- package/dist/commonjs/funcs/unifiedUpdateUnifiedWebhookResume.js +120 -0
- package/dist/commonjs/funcs/unifiedUpdateUnifiedWebhookResume.js.map +1 -0
- package/dist/commonjs/lib/config.d.ts +3 -3
- package/dist/commonjs/lib/config.js +3 -3
- package/dist/commonjs/lib/config.js.map +1 -1
- package/dist/commonjs/sdk/models/operations/createcalendarevent.d.ts +1 -1
- package/dist/commonjs/sdk/models/operations/createcalendarevent.js +1 -1
- package/dist/commonjs/sdk/models/operations/createcalendarevent.js.map +1 -1
- package/dist/commonjs/sdk/models/operations/getcalendarevent.d.ts +1 -1
- package/dist/commonjs/sdk/models/operations/getcalendarevent.js +1 -1
- package/dist/commonjs/sdk/models/operations/getcalendarevent.js.map +1 -1
- package/dist/commonjs/sdk/models/operations/getcalendarlocation.d.ts +3 -3
- package/dist/commonjs/sdk/models/operations/getcalendarlocation.js +3 -3
- package/dist/commonjs/sdk/models/operations/getcalendarlocation.js.map +1 -1
- package/dist/commonjs/sdk/models/operations/getcalendarroom.d.ts +4 -4
- package/dist/commonjs/sdk/models/operations/getcalendarroom.js +4 -4
- package/dist/commonjs/sdk/models/operations/getcalendarroom.js.map +1 -1
- package/dist/commonjs/sdk/models/operations/getunifiedintegrationauth.d.ts +1 -1
- package/dist/commonjs/sdk/models/operations/getunifiedintegrationlogin.d.ts +1 -1
- package/dist/commonjs/sdk/models/operations/getunifiedintegrationsaml.d.ts +1 -1
- package/dist/commonjs/sdk/models/operations/index.d.ts +2 -0
- package/dist/commonjs/sdk/models/operations/index.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/operations/index.js +2 -0
- package/dist/commonjs/sdk/models/operations/index.js.map +1 -1
- package/dist/commonjs/sdk/models/operations/listcalendarevents.d.ts +1 -1
- package/dist/commonjs/sdk/models/operations/listcalendarevents.js +1 -1
- package/dist/commonjs/sdk/models/operations/listcalendarevents.js.map +1 -1
- package/dist/commonjs/sdk/models/operations/listcalendarlocations.d.ts +3 -3
- package/dist/commonjs/sdk/models/operations/listcalendarlocations.js +3 -3
- package/dist/commonjs/sdk/models/operations/listcalendarlocations.js.map +1 -1
- package/dist/commonjs/sdk/models/operations/listcalendarrooms.d.ts +4 -4
- package/dist/commonjs/sdk/models/operations/listcalendarrooms.js +4 -4
- package/dist/commonjs/sdk/models/operations/listcalendarrooms.js.map +1 -1
- package/dist/commonjs/sdk/models/operations/patchcalendarevent.d.ts +1 -1
- package/dist/commonjs/sdk/models/operations/patchcalendarevent.js +1 -1
- package/dist/commonjs/sdk/models/operations/patchcalendarevent.js.map +1 -1
- package/dist/commonjs/sdk/models/operations/patchunifiedwebhookresume.d.ts +15 -0
- package/dist/commonjs/sdk/models/operations/patchunifiedwebhookresume.d.ts.map +1 -0
- package/dist/commonjs/sdk/models/operations/patchunifiedwebhookresume.js +49 -0
- package/dist/commonjs/sdk/models/operations/patchunifiedwebhookresume.js.map +1 -0
- package/dist/commonjs/sdk/models/operations/updatecalendarevent.d.ts +1 -1
- package/dist/commonjs/sdk/models/operations/updatecalendarevent.js +1 -1
- package/dist/commonjs/sdk/models/operations/updatecalendarevent.js.map +1 -1
- package/dist/commonjs/sdk/models/operations/updateunifiedwebhookresume.d.ts +15 -0
- package/dist/commonjs/sdk/models/operations/updateunifiedwebhookresume.d.ts.map +1 -0
- package/dist/commonjs/sdk/models/operations/updateunifiedwebhookresume.js +49 -0
- package/dist/commonjs/sdk/models/operations/updateunifiedwebhookresume.js.map +1 -0
- package/dist/commonjs/sdk/models/shared/crmcontact.d.ts +7 -1
- package/dist/commonjs/sdk/models/shared/crmcontact.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/shared/crmcontact.js.map +1 -1
- package/dist/commonjs/sdk/models/shared/enrichperson.d.ts +1 -1
- package/dist/commonjs/sdk/unified.d.ts +14 -0
- package/dist/commonjs/sdk/unified.d.ts.map +1 -1
- package/dist/commonjs/sdk/unified.js +20 -0
- package/dist/commonjs/sdk/unified.js.map +1 -1
- package/dist/commonjs/sdk/webhook.d.ts +14 -0
- package/dist/commonjs/sdk/webhook.d.ts.map +1 -1
- package/dist/commonjs/sdk/webhook.js +20 -0
- package/dist/commonjs/sdk/webhook.js.map +1 -1
- package/dist/esm/funcs/unifiedPatchUnifiedWebhookResume.d.ts +18 -0
- package/dist/esm/funcs/unifiedPatchUnifiedWebhookResume.d.ts.map +1 -0
- package/dist/esm/funcs/unifiedPatchUnifiedWebhookResume.js +84 -0
- package/dist/esm/funcs/unifiedPatchUnifiedWebhookResume.js.map +1 -0
- package/dist/esm/funcs/unifiedUpdateUnifiedWebhookResume.d.ts +18 -0
- package/dist/esm/funcs/unifiedUpdateUnifiedWebhookResume.d.ts.map +1 -0
- package/dist/esm/funcs/unifiedUpdateUnifiedWebhookResume.js +84 -0
- package/dist/esm/funcs/unifiedUpdateUnifiedWebhookResume.js.map +1 -0
- package/dist/esm/lib/config.d.ts +3 -3
- package/dist/esm/lib/config.js +3 -3
- package/dist/esm/lib/config.js.map +1 -1
- package/dist/esm/sdk/models/operations/createcalendarevent.d.ts +1 -1
- package/dist/esm/sdk/models/operations/createcalendarevent.js +1 -1
- package/dist/esm/sdk/models/operations/createcalendarevent.js.map +1 -1
- package/dist/esm/sdk/models/operations/getcalendarevent.d.ts +1 -1
- package/dist/esm/sdk/models/operations/getcalendarevent.js +1 -1
- package/dist/esm/sdk/models/operations/getcalendarevent.js.map +1 -1
- package/dist/esm/sdk/models/operations/getcalendarlocation.d.ts +3 -3
- package/dist/esm/sdk/models/operations/getcalendarlocation.js +3 -3
- package/dist/esm/sdk/models/operations/getcalendarlocation.js.map +1 -1
- package/dist/esm/sdk/models/operations/getcalendarroom.d.ts +4 -4
- package/dist/esm/sdk/models/operations/getcalendarroom.js +4 -4
- package/dist/esm/sdk/models/operations/getcalendarroom.js.map +1 -1
- package/dist/esm/sdk/models/operations/getunifiedintegrationauth.d.ts +1 -1
- package/dist/esm/sdk/models/operations/getunifiedintegrationlogin.d.ts +1 -1
- package/dist/esm/sdk/models/operations/getunifiedintegrationsaml.d.ts +1 -1
- package/dist/esm/sdk/models/operations/index.d.ts +2 -0
- package/dist/esm/sdk/models/operations/index.d.ts.map +1 -1
- package/dist/esm/sdk/models/operations/index.js +2 -0
- package/dist/esm/sdk/models/operations/index.js.map +1 -1
- package/dist/esm/sdk/models/operations/listcalendarevents.d.ts +1 -1
- package/dist/esm/sdk/models/operations/listcalendarevents.js +1 -1
- package/dist/esm/sdk/models/operations/listcalendarevents.js.map +1 -1
- package/dist/esm/sdk/models/operations/listcalendarlocations.d.ts +3 -3
- package/dist/esm/sdk/models/operations/listcalendarlocations.js +3 -3
- package/dist/esm/sdk/models/operations/listcalendarlocations.js.map +1 -1
- package/dist/esm/sdk/models/operations/listcalendarrooms.d.ts +4 -4
- package/dist/esm/sdk/models/operations/listcalendarrooms.js +4 -4
- package/dist/esm/sdk/models/operations/listcalendarrooms.js.map +1 -1
- package/dist/esm/sdk/models/operations/patchcalendarevent.d.ts +1 -1
- package/dist/esm/sdk/models/operations/patchcalendarevent.js +1 -1
- package/dist/esm/sdk/models/operations/patchcalendarevent.js.map +1 -1
- package/dist/esm/sdk/models/operations/patchunifiedwebhookresume.d.ts +15 -0
- package/dist/esm/sdk/models/operations/patchunifiedwebhookresume.d.ts.map +1 -0
- package/dist/esm/sdk/models/operations/patchunifiedwebhookresume.js +12 -0
- package/dist/esm/sdk/models/operations/patchunifiedwebhookresume.js.map +1 -0
- package/dist/esm/sdk/models/operations/updatecalendarevent.d.ts +1 -1
- package/dist/esm/sdk/models/operations/updatecalendarevent.js +1 -1
- package/dist/esm/sdk/models/operations/updatecalendarevent.js.map +1 -1
- package/dist/esm/sdk/models/operations/updateunifiedwebhookresume.d.ts +15 -0
- package/dist/esm/sdk/models/operations/updateunifiedwebhookresume.d.ts.map +1 -0
- package/dist/esm/sdk/models/operations/updateunifiedwebhookresume.js +12 -0
- package/dist/esm/sdk/models/operations/updateunifiedwebhookresume.js.map +1 -0
- package/dist/esm/sdk/models/shared/crmcontact.d.ts +7 -1
- package/dist/esm/sdk/models/shared/crmcontact.d.ts.map +1 -1
- package/dist/esm/sdk/models/shared/crmcontact.js.map +1 -1
- package/dist/esm/sdk/models/shared/enrichperson.d.ts +1 -1
- package/dist/esm/sdk/unified.d.ts +14 -0
- package/dist/esm/sdk/unified.d.ts.map +1 -1
- package/dist/esm/sdk/unified.js +20 -0
- package/dist/esm/sdk/unified.js.map +1 -1
- package/dist/esm/sdk/webhook.d.ts +14 -0
- package/dist/esm/sdk/webhook.d.ts.map +1 -1
- package/dist/esm/sdk/webhook.js +20 -0
- package/dist/esm/sdk/webhook.js.map +1 -1
- package/examples/accountingCreateAccountingAccount.example.ts +2 -2
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/funcs/unifiedPatchUnifiedWebhookResume.ts +168 -0
- package/src/funcs/unifiedUpdateUnifiedWebhookResume.ts +168 -0
- package/src/lib/config.ts +3 -3
- package/src/sdk/models/operations/createcalendarevent.ts +1 -1
- package/src/sdk/models/operations/getcalendarevent.ts +1 -1
- package/src/sdk/models/operations/getcalendarlocation.ts +3 -3
- package/src/sdk/models/operations/getcalendarroom.ts +4 -4
- package/src/sdk/models/operations/getunifiedintegrationauth.ts +1 -1
- package/src/sdk/models/operations/getunifiedintegrationlogin.ts +1 -1
- package/src/sdk/models/operations/getunifiedintegrationsaml.ts +1 -1
- package/src/sdk/models/operations/index.ts +2 -0
- package/src/sdk/models/operations/listcalendarevents.ts +1 -1
- package/src/sdk/models/operations/listcalendarlocations.ts +3 -3
- package/src/sdk/models/operations/listcalendarrooms.ts +4 -4
- package/src/sdk/models/operations/patchcalendarevent.ts +1 -1
- package/src/sdk/models/operations/patchunifiedwebhookresume.ts +36 -0
- package/src/sdk/models/operations/updatecalendarevent.ts +1 -1
- package/src/sdk/models/operations/updateunifiedwebhookresume.ts +36 -0
- package/src/sdk/models/shared/crmcontact.ts +7 -1
- package/src/sdk/models/shared/enrichperson.ts +1 -1
- package/src/sdk/unified.ts +36 -0
- package/src/sdk/webhook.ts +36 -0
package/src/sdk/unified.ts
CHANGED
|
@@ -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
|
*/
|
package/src/sdk/webhook.ts
CHANGED
|
@@ -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
|
*/
|