@zavudev/sdk 0.51.0 → 0.53.0
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/CHANGELOG.md +29 -0
- package/package.json +1 -1
- package/resources/functions/functions.d.mts +28 -8
- package/resources/functions/functions.d.mts.map +1 -1
- package/resources/functions/functions.d.ts +28 -8
- package/resources/functions/functions.d.ts.map +1 -1
- package/resources/functions/functions.js +6 -4
- package/resources/functions/functions.js.map +1 -1
- package/resources/functions/functions.mjs +6 -4
- package/resources/functions/functions.mjs.map +1 -1
- package/resources/invitations.d.mts +85 -15
- package/resources/invitations.d.mts.map +1 -1
- package/resources/invitations.d.ts +85 -15
- package/resources/invitations.d.ts.map +1 -1
- package/resources/invitations.js +14 -4
- package/resources/invitations.js.map +1 -1
- package/resources/invitations.mjs +14 -4
- package/resources/invitations.mjs.map +1 -1
- package/resources/messages.d.mts +41 -4
- package/resources/messages.d.mts.map +1 -1
- package/resources/messages.d.ts +41 -4
- package/resources/messages.d.ts.map +1 -1
- package/resources/messages.js +12 -3
- package/resources/messages.js.map +1 -1
- package/resources/messages.mjs +12 -3
- package/resources/messages.mjs.map +1 -1
- package/resources/number-10dlc/brands.d.mts +5 -1
- package/resources/number-10dlc/brands.d.mts.map +1 -1
- package/resources/number-10dlc/brands.d.ts +5 -1
- package/resources/number-10dlc/brands.d.ts.map +1 -1
- package/resources/number-10dlc/brands.js +5 -1
- package/resources/number-10dlc/brands.js.map +1 -1
- package/resources/number-10dlc/brands.mjs +5 -1
- package/resources/number-10dlc/brands.mjs.map +1 -1
- package/resources/number-10dlc/campaigns/campaigns.d.mts +6 -1
- package/resources/number-10dlc/campaigns/campaigns.d.mts.map +1 -1
- package/resources/number-10dlc/campaigns/campaigns.d.ts +6 -1
- package/resources/number-10dlc/campaigns/campaigns.d.ts.map +1 -1
- package/resources/number-10dlc/campaigns/campaigns.js +6 -1
- package/resources/number-10dlc/campaigns/campaigns.js.map +1 -1
- package/resources/number-10dlc/campaigns/campaigns.mjs +6 -1
- package/resources/number-10dlc/campaigns/campaigns.mjs.map +1 -1
- package/resources/phone-numbers.d.mts +10 -3
- package/resources/phone-numbers.d.mts.map +1 -1
- package/resources/phone-numbers.d.ts +10 -3
- package/resources/phone-numbers.d.ts.map +1 -1
- package/resources/phone-numbers.js +3 -2
- package/resources/phone-numbers.js.map +1 -1
- package/resources/phone-numbers.mjs +3 -2
- package/resources/phone-numbers.mjs.map +1 -1
- package/resources/senders/agent/agent.d.mts +314 -0
- package/resources/senders/agent/agent.d.mts.map +1 -1
- package/resources/senders/agent/agent.d.ts +314 -0
- package/resources/senders/agent/agent.d.ts.map +1 -1
- package/resources/senders/agent/agent.js +6 -0
- package/resources/senders/agent/agent.js.map +1 -1
- package/resources/senders/agent/agent.mjs +6 -0
- package/resources/senders/agent/agent.mjs.map +1 -1
- package/resources/senders/agent/executions.d.mts +5 -0
- package/resources/senders/agent/executions.d.mts.map +1 -1
- package/resources/senders/agent/executions.d.ts +5 -0
- package/resources/senders/agent/executions.d.ts.map +1 -1
- package/resources/senders/agent/executions.js +5 -0
- package/resources/senders/agent/executions.js.map +1 -1
- package/resources/senders/agent/executions.mjs +5 -0
- package/resources/senders/agent/executions.mjs.map +1 -1
- package/resources/senders/agent/tools.d.mts +51 -2
- package/resources/senders/agent/tools.d.mts.map +1 -1
- package/resources/senders/agent/tools.d.ts +51 -2
- package/resources/senders/agent/tools.d.ts.map +1 -1
- package/resources/senders/agent/tools.js +10 -1
- package/resources/senders/agent/tools.js.map +1 -1
- package/resources/senders/agent/tools.mjs +10 -1
- package/resources/senders/agent/tools.mjs.map +1 -1
- package/resources/senders/senders.d.mts +64 -4
- package/resources/senders/senders.d.mts.map +1 -1
- package/resources/senders/senders.d.ts +64 -4
- package/resources/senders/senders.d.ts.map +1 -1
- package/resources/senders/senders.js.map +1 -1
- package/resources/senders/senders.mjs.map +1 -1
- package/resources/templates.d.mts +12 -3
- package/resources/templates.d.mts.map +1 -1
- package/resources/templates.d.ts +12 -3
- package/resources/templates.d.ts.map +1 -1
- package/src/resources/functions/functions.ts +29 -8
- package/src/resources/invitations.ts +91 -15
- package/src/resources/messages.ts +42 -3
- package/src/resources/number-10dlc/brands.ts +5 -1
- package/src/resources/number-10dlc/campaigns/campaigns.ts +6 -1
- package/src/resources/phone-numbers.ts +11 -3
- package/src/resources/senders/agent/agent.ts +365 -0
- package/src/resources/senders/agent/executions.ts +5 -0
- package/src/resources/senders/agent/tools.ts +58 -2
- package/src/resources/senders/senders.ts +73 -3
- package/src/resources/templates.ts +13 -4
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,34 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.53.0 (2026-08-05)
|
|
4
|
+
|
|
5
|
+
Full Changelog: [v0.52.0...v0.53.0](https://github.com/zavudev/sdk-typescript/compare/v0.52.0...v0.53.0)
|
|
6
|
+
|
|
7
|
+
### Features
|
|
8
|
+
|
|
9
|
+
* **api:** api update ([8bc1246](https://github.com/zavudev/sdk-typescript/commit/8bc124660ca79890e86a3842327b40a5f2826f67))
|
|
10
|
+
* **api:** api update ([6205927](https://github.com/zavudev/sdk-typescript/commit/620592713815b53ff85b1b2b38ff8678621d7a4c))
|
|
11
|
+
* **api:** api update ([6358a5c](https://github.com/zavudev/sdk-typescript/commit/6358a5c574502177e231b082751a3b12ad6d0f33))
|
|
12
|
+
|
|
13
|
+
## 0.52.0 (2026-08-02)
|
|
14
|
+
|
|
15
|
+
Full Changelog: [v0.51.0...v0.52.0](https://github.com/zavudev/sdk-typescript/compare/v0.51.0...v0.52.0)
|
|
16
|
+
|
|
17
|
+
### Features
|
|
18
|
+
|
|
19
|
+
* **api:** api update ([1382ef1](https://github.com/zavudev/sdk-typescript/commit/1382ef1d8a7eaf9f4a2854152da7e6b35836ff37))
|
|
20
|
+
* **api:** api update ([aa6a299](https://github.com/zavudev/sdk-typescript/commit/aa6a299beb081fffb5f4abed3c9da953fffb013f))
|
|
21
|
+
* **api:** api update ([7edc5b6](https://github.com/zavudev/sdk-typescript/commit/7edc5b62da711521007ad1b05ea0bb3944176f67))
|
|
22
|
+
* **api:** api update ([1429c6d](https://github.com/zavudev/sdk-typescript/commit/1429c6dfbf313a0bbf2dbe40a2eee168f388a14d))
|
|
23
|
+
* **api:** api update ([204d9e3](https://github.com/zavudev/sdk-typescript/commit/204d9e3a741648c57d9146d6c88d56e78d7f09bc))
|
|
24
|
+
* **api:** api update ([5e66fe7](https://github.com/zavudev/sdk-typescript/commit/5e66fe7640c97dbba2d71907e6d814dd79b6e594))
|
|
25
|
+
* **api:** api update ([1eddb33](https://github.com/zavudev/sdk-typescript/commit/1eddb337a640e21bbe0c371c9d8ae2037bf0b90d))
|
|
26
|
+
* **api:** api update ([ef61f1f](https://github.com/zavudev/sdk-typescript/commit/ef61f1f9d7add1f9bc245fe514e3e7e7d6a19b88))
|
|
27
|
+
* **api:** api update ([1ad9660](https://github.com/zavudev/sdk-typescript/commit/1ad9660551b3cd1f82b6423f99f66b82e5327e0a))
|
|
28
|
+
* **api:** api update ([b302a2b](https://github.com/zavudev/sdk-typescript/commit/b302a2be267c6d553c4e876d8e9ab346eed9f000))
|
|
29
|
+
* **api:** api update ([bd00075](https://github.com/zavudev/sdk-typescript/commit/bd00075b324720cb4a9e9c24fd5166d035edb289))
|
|
30
|
+
* **api:** api update ([358090f](https://github.com/zavudev/sdk-typescript/commit/358090fa85b2d7d4d12e57d83d1bac342289adc2))
|
|
31
|
+
|
|
3
32
|
## 0.51.0 (2026-07-23)
|
|
4
33
|
|
|
5
34
|
Full Changelog: [v0.50.0...v0.51.0](https://github.com/zavudev/sdk-typescript/compare/v0.50.0...v0.51.0)
|
package/package.json
CHANGED
|
@@ -22,7 +22,7 @@ export declare class Functions extends APIResource {
|
|
|
22
22
|
* description:
|
|
23
23
|
* 'Replies to order status questions on WhatsApp.',
|
|
24
24
|
* sourceCode:
|
|
25
|
-
* "import { defineFunction } from '@
|
|
25
|
+
* "import { defineFunction } from '@zavudev/functions';\n\nexport default defineFunction(async (event, ctx) => {\n ctx.log('received', event.type);\n});\n",
|
|
26
26
|
* });
|
|
27
27
|
* ```
|
|
28
28
|
*/
|
|
@@ -39,9 +39,11 @@ export declare class Functions extends APIResource {
|
|
|
39
39
|
*/
|
|
40
40
|
retrieve(functionID: string, options?: RequestOptions): APIPromise<FunctionRetrieveResponse>;
|
|
41
41
|
/**
|
|
42
|
-
* Update
|
|
43
|
-
*
|
|
44
|
-
*
|
|
42
|
+
* Update an existing function. `sourceCode` / `dependencies` edit the draft
|
|
43
|
+
* without triggering a build — they go live on the next
|
|
44
|
+
* `POST /v1/functions/{functionId}/deploy`. `httpEnabled` is applied to the
|
|
45
|
+
* deployed function immediately, so turning the public endpoint on or off does not
|
|
46
|
+
* require a redeploy.
|
|
45
47
|
*
|
|
46
48
|
* @example
|
|
47
49
|
* ```ts
|
|
@@ -157,7 +159,9 @@ export declare namespace FunctionCreateResponse {
|
|
|
157
159
|
activeDeploymentId?: string | null;
|
|
158
160
|
description?: string | null;
|
|
159
161
|
/**
|
|
160
|
-
* HTTPS endpoint
|
|
162
|
+
* HTTPS endpoint, present only while httpEnabled is true. Null otherwise,
|
|
163
|
+
* including for a function that was previously exposed — the stored URL stops
|
|
164
|
+
* serving the moment HTTP is turned off, so it is never returned.
|
|
161
165
|
*/
|
|
162
166
|
publicUrl?: string | null;
|
|
163
167
|
}
|
|
@@ -216,7 +220,9 @@ export declare namespace FunctionRetrieveResponse {
|
|
|
216
220
|
activeDeploymentId?: string | null;
|
|
217
221
|
description?: string | null;
|
|
218
222
|
/**
|
|
219
|
-
* HTTPS endpoint
|
|
223
|
+
* HTTPS endpoint, present only while httpEnabled is true. Null otherwise,
|
|
224
|
+
* including for a function that was previously exposed — the stored URL stops
|
|
225
|
+
* serving the moment HTTP is turned off, so it is never returned.
|
|
220
226
|
*/
|
|
221
227
|
publicUrl?: string | null;
|
|
222
228
|
}
|
|
@@ -275,7 +281,9 @@ export declare namespace FunctionUpdateResponse {
|
|
|
275
281
|
activeDeploymentId?: string | null;
|
|
276
282
|
description?: string | null;
|
|
277
283
|
/**
|
|
278
|
-
* HTTPS endpoint
|
|
284
|
+
* HTTPS endpoint, present only while httpEnabled is true. Null otherwise,
|
|
285
|
+
* including for a function that was previously exposed — the stored URL stops
|
|
286
|
+
* serving the moment HTTP is turned off, so it is never returned.
|
|
279
287
|
*/
|
|
280
288
|
publicUrl?: string | null;
|
|
281
289
|
}
|
|
@@ -374,6 +382,12 @@ export interface FunctionCreateParams {
|
|
|
374
382
|
* TypeScript source code for the function entry point (max ~900KB).
|
|
375
383
|
*/
|
|
376
384
|
sourceCode?: string;
|
|
385
|
+
/**
|
|
386
|
+
* Per-invocation timeout in seconds. Event and cron invocations are asynchronous,
|
|
387
|
+
* so a long timeout only bounds cost; a tool called during a live conversation
|
|
388
|
+
* holds up the reply, and a function exposed over HTTP is additionally bounded by
|
|
389
|
+
* the platform's HTTP response limit.
|
|
390
|
+
*/
|
|
377
391
|
timeoutSec?: number;
|
|
378
392
|
}
|
|
379
393
|
export interface FunctionUpdateParams {
|
|
@@ -384,7 +398,13 @@ export interface FunctionUpdateParams {
|
|
|
384
398
|
[key: string]: string;
|
|
385
399
|
};
|
|
386
400
|
/**
|
|
387
|
-
*
|
|
401
|
+
* Expose the function on its public HTTPS URL, or take it down. Applies to the
|
|
402
|
+
* already-deployed function without redeploying; the URL is returned as
|
|
403
|
+
* `publicUrl`.
|
|
404
|
+
*/
|
|
405
|
+
httpEnabled?: boolean;
|
|
406
|
+
/**
|
|
407
|
+
* New source code for the draft (replaces it).
|
|
388
408
|
*/
|
|
389
409
|
sourceCode?: string;
|
|
390
410
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"functions.d.mts","sourceRoot":"","sources":["../../src/resources/functions/functions.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,KAAK,UAAU,sBAAkB;AACxC,OAAO,EACL,kBAAkB,EAClB,eAAe,EACf,iBAAiB,EACjB,iBAAiB,EACjB,OAAO,EACR,sBAAkB;AACnB,OAAO,EAAE,UAAU,EAAE,mCAA+B;AACpD,OAAO,EAAE,cAAc,EAAE,2CAAuC;AAGhE,qBAAa,SAAU,SAAQ,WAAW;IACxC,OAAO,EAAE,UAAU,CAAC,OAAO,CAAwC;IAEnE;;;;;;;;;;;;;;;;;;;;OAoBG;IACH,MAAM,CAAC,IAAI,EAAE,oBAAoB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,sBAAsB,CAAC;IAIhG;;;;;;;;;OASG;IACH,QAAQ,CAAC,UAAU,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,wBAAwB,CAAC;IAI5F
|
|
1
|
+
{"version":3,"file":"functions.d.mts","sourceRoot":"","sources":["../../src/resources/functions/functions.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,KAAK,UAAU,sBAAkB;AACxC,OAAO,EACL,kBAAkB,EAClB,eAAe,EACf,iBAAiB,EACjB,iBAAiB,EACjB,OAAO,EACR,sBAAkB;AACnB,OAAO,EAAE,UAAU,EAAE,mCAA+B;AACpD,OAAO,EAAE,cAAc,EAAE,2CAAuC;AAGhE,qBAAa,SAAU,SAAQ,WAAW;IACxC,OAAO,EAAE,UAAU,CAAC,OAAO,CAAwC;IAEnE;;;;;;;;;;;;;;;;;;;;OAoBG;IACH,MAAM,CAAC,IAAI,EAAE,oBAAoB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,sBAAsB,CAAC;IAIhG;;;;;;;;;OASG;IACH,QAAQ,CAAC,UAAU,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,wBAAwB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AAW,SAAS,CAAC;IACjC,OAAO,EACL,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,6BAA6B,IAAI,6BAA6B,EACnE,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,sBAAsB,IAAI,sBAAsB,GACtD,CAAC;IAEF,OAAO,EACL,OAAO,IAAI,OAAO,EAClB,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,iBAAiB,IAAI,iBAAiB,GAC5C,CAAC;CACH"}
|
|
@@ -22,7 +22,7 @@ export declare class Functions extends APIResource {
|
|
|
22
22
|
* description:
|
|
23
23
|
* 'Replies to order status questions on WhatsApp.',
|
|
24
24
|
* sourceCode:
|
|
25
|
-
* "import { defineFunction } from '@
|
|
25
|
+
* "import { defineFunction } from '@zavudev/functions';\n\nexport default defineFunction(async (event, ctx) => {\n ctx.log('received', event.type);\n});\n",
|
|
26
26
|
* });
|
|
27
27
|
* ```
|
|
28
28
|
*/
|
|
@@ -39,9 +39,11 @@ export declare class Functions extends APIResource {
|
|
|
39
39
|
*/
|
|
40
40
|
retrieve(functionID: string, options?: RequestOptions): APIPromise<FunctionRetrieveResponse>;
|
|
41
41
|
/**
|
|
42
|
-
* Update
|
|
43
|
-
*
|
|
44
|
-
*
|
|
42
|
+
* Update an existing function. `sourceCode` / `dependencies` edit the draft
|
|
43
|
+
* without triggering a build — they go live on the next
|
|
44
|
+
* `POST /v1/functions/{functionId}/deploy`. `httpEnabled` is applied to the
|
|
45
|
+
* deployed function immediately, so turning the public endpoint on or off does not
|
|
46
|
+
* require a redeploy.
|
|
45
47
|
*
|
|
46
48
|
* @example
|
|
47
49
|
* ```ts
|
|
@@ -157,7 +159,9 @@ export declare namespace FunctionCreateResponse {
|
|
|
157
159
|
activeDeploymentId?: string | null;
|
|
158
160
|
description?: string | null;
|
|
159
161
|
/**
|
|
160
|
-
* HTTPS endpoint
|
|
162
|
+
* HTTPS endpoint, present only while httpEnabled is true. Null otherwise,
|
|
163
|
+
* including for a function that was previously exposed — the stored URL stops
|
|
164
|
+
* serving the moment HTTP is turned off, so it is never returned.
|
|
161
165
|
*/
|
|
162
166
|
publicUrl?: string | null;
|
|
163
167
|
}
|
|
@@ -216,7 +220,9 @@ export declare namespace FunctionRetrieveResponse {
|
|
|
216
220
|
activeDeploymentId?: string | null;
|
|
217
221
|
description?: string | null;
|
|
218
222
|
/**
|
|
219
|
-
* HTTPS endpoint
|
|
223
|
+
* HTTPS endpoint, present only while httpEnabled is true. Null otherwise,
|
|
224
|
+
* including for a function that was previously exposed — the stored URL stops
|
|
225
|
+
* serving the moment HTTP is turned off, so it is never returned.
|
|
220
226
|
*/
|
|
221
227
|
publicUrl?: string | null;
|
|
222
228
|
}
|
|
@@ -275,7 +281,9 @@ export declare namespace FunctionUpdateResponse {
|
|
|
275
281
|
activeDeploymentId?: string | null;
|
|
276
282
|
description?: string | null;
|
|
277
283
|
/**
|
|
278
|
-
* HTTPS endpoint
|
|
284
|
+
* HTTPS endpoint, present only while httpEnabled is true. Null otherwise,
|
|
285
|
+
* including for a function that was previously exposed — the stored URL stops
|
|
286
|
+
* serving the moment HTTP is turned off, so it is never returned.
|
|
279
287
|
*/
|
|
280
288
|
publicUrl?: string | null;
|
|
281
289
|
}
|
|
@@ -374,6 +382,12 @@ export interface FunctionCreateParams {
|
|
|
374
382
|
* TypeScript source code for the function entry point (max ~900KB).
|
|
375
383
|
*/
|
|
376
384
|
sourceCode?: string;
|
|
385
|
+
/**
|
|
386
|
+
* Per-invocation timeout in seconds. Event and cron invocations are asynchronous,
|
|
387
|
+
* so a long timeout only bounds cost; a tool called during a live conversation
|
|
388
|
+
* holds up the reply, and a function exposed over HTTP is additionally bounded by
|
|
389
|
+
* the platform's HTTP response limit.
|
|
390
|
+
*/
|
|
377
391
|
timeoutSec?: number;
|
|
378
392
|
}
|
|
379
393
|
export interface FunctionUpdateParams {
|
|
@@ -384,7 +398,13 @@ export interface FunctionUpdateParams {
|
|
|
384
398
|
[key: string]: string;
|
|
385
399
|
};
|
|
386
400
|
/**
|
|
387
|
-
*
|
|
401
|
+
* Expose the function on its public HTTPS URL, or take it down. Applies to the
|
|
402
|
+
* already-deployed function without redeploying; the URL is returned as
|
|
403
|
+
* `publicUrl`.
|
|
404
|
+
*/
|
|
405
|
+
httpEnabled?: boolean;
|
|
406
|
+
/**
|
|
407
|
+
* New source code for the draft (replaces it).
|
|
388
408
|
*/
|
|
389
409
|
sourceCode?: string;
|
|
390
410
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"functions.d.ts","sourceRoot":"","sources":["../../src/resources/functions/functions.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,KAAK,UAAU,qBAAkB;AACxC,OAAO,EACL,kBAAkB,EAClB,eAAe,EACf,iBAAiB,EACjB,iBAAiB,EACjB,OAAO,EACR,qBAAkB;AACnB,OAAO,EAAE,UAAU,EAAE,kCAA+B;AACpD,OAAO,EAAE,cAAc,EAAE,0CAAuC;AAGhE,qBAAa,SAAU,SAAQ,WAAW;IACxC,OAAO,EAAE,UAAU,CAAC,OAAO,CAAwC;IAEnE;;;;;;;;;;;;;;;;;;;;OAoBG;IACH,MAAM,CAAC,IAAI,EAAE,oBAAoB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,sBAAsB,CAAC;IAIhG;;;;;;;;;OASG;IACH,QAAQ,CAAC,UAAU,EAAE,MAAM,EAAE,OAAO,CAAC,EAA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,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,iBAAiB,IAAI,iBAAiB,GAC5C,CAAC;CACH"}
|
|
@@ -29,7 +29,7 @@ class Functions extends resource_1.APIResource {
|
|
|
29
29
|
* description:
|
|
30
30
|
* 'Replies to order status questions on WhatsApp.',
|
|
31
31
|
* sourceCode:
|
|
32
|
-
* "import { defineFunction } from '@
|
|
32
|
+
* "import { defineFunction } from '@zavudev/functions';\n\nexport default defineFunction(async (event, ctx) => {\n ctx.log('received', event.type);\n});\n",
|
|
33
33
|
* });
|
|
34
34
|
* ```
|
|
35
35
|
*/
|
|
@@ -50,9 +50,11 @@ class Functions extends resource_1.APIResource {
|
|
|
50
50
|
return this._client.get((0, path_1.path) `/v1/functions/${functionID}`, options);
|
|
51
51
|
}
|
|
52
52
|
/**
|
|
53
|
-
* Update
|
|
54
|
-
*
|
|
55
|
-
*
|
|
53
|
+
* Update an existing function. `sourceCode` / `dependencies` edit the draft
|
|
54
|
+
* without triggering a build — they go live on the next
|
|
55
|
+
* `POST /v1/functions/{functionId}/deploy`. `httpEnabled` is applied to the
|
|
56
|
+
* deployed function immediately, so turning the public endpoint on or off does not
|
|
57
|
+
* require a redeploy.
|
|
56
58
|
*
|
|
57
59
|
* @example
|
|
58
60
|
* ```ts
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"functions.js","sourceRoot":"","sources":["../../src/resources/functions/functions.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,qDAAkD;AAClD,iEAAwC;AACxC,0CAMmB;AAGnB,uDAAiD;AAEjD,MAAa,SAAU,SAAQ,sBAAW;IAA1C;;QACE,YAAO,GAAuB,IAAI,UAAU,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"functions.js","sourceRoot":"","sources":["../../src/resources/functions/functions.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,qDAAkD;AAClD,iEAAwC;AACxC,0CAMmB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AC1D,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,6BAA6B,YAAY,EAAE,EAAE,OAAO,CAAC,CAAC;IACpF,CAAC;IAED;;;;;;;;;;;OAWG;IACH,QAAQ,CACN,UAAkB,EAClB,QAAmD,EAAE,EACrD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,iBAAiB,UAAU,OAAO,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACzF,CAAC;CACF;AAtID,8BAsIC;AAyZD,SAAS,CAAC,OAAO,GAAG,iBAAO,CAAC"}
|
|
@@ -25,7 +25,7 @@ export class Functions extends APIResource {
|
|
|
25
25
|
* description:
|
|
26
26
|
* 'Replies to order status questions on WhatsApp.',
|
|
27
27
|
* sourceCode:
|
|
28
|
-
* "import { defineFunction } from '@
|
|
28
|
+
* "import { defineFunction } from '@zavudev/functions';\n\nexport default defineFunction(async (event, ctx) => {\n ctx.log('received', event.type);\n});\n",
|
|
29
29
|
* });
|
|
30
30
|
* ```
|
|
31
31
|
*/
|
|
@@ -46,9 +46,11 @@ export class Functions extends APIResource {
|
|
|
46
46
|
return this._client.get(path `/v1/functions/${functionID}`, options);
|
|
47
47
|
}
|
|
48
48
|
/**
|
|
49
|
-
* Update
|
|
50
|
-
*
|
|
51
|
-
*
|
|
49
|
+
* Update an existing function. `sourceCode` / `dependencies` edit the draft
|
|
50
|
+
* without triggering a build — they go live on the next
|
|
51
|
+
* `POST /v1/functions/{functionId}/deploy`. `httpEnabled` is applied to the
|
|
52
|
+
* deployed function immediately, so turning the public endpoint on or off does not
|
|
53
|
+
* require a redeploy.
|
|
52
54
|
*
|
|
53
55
|
* @example
|
|
54
56
|
* ```ts
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"functions.mjs","sourceRoot":"","sources":["../../src/resources/functions/functions.ts"],"names":[],"mappings":"AAAA,sFAAsF;A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C,CAAC;IACrF,CAAC;IAED;;;;;;;;;;;OAWG;IACH,MAAM,CAAC,UAAkB,EAAE,OAAwB;QACjD,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAA,iBAAiB,UAAU,EAAE,EAAE,OAAO,CAAC,CAAC;IACzE,CAAC;IAED;;;;;;;;;;;;OAYG;IACH,MAAM,CACJ,UAAkB,EAClB,OAAgD,EAAE,EAClD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,iBAAiB,UAAU,SAAS,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC3F,CAAC;IAED;;;;;;;;;OASG;IACH,aAAa,CAAC,YAAoB,EAAE,OAAwB;QAC1D,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,6BAA6B,YAAY,EAAE,EAAE,OAAO,CAAC,CAAC;IACpF,CAAC;IAED;;;;;;;;;;;OAWG;IACH,QAAQ,CACN,UAAkB,EAClB,QAAmD,EAAE,EACrD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,iBAAiB,UAAU,OAAO,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACzF,CAAC;CACF;AAyZD,SAAS,CAAC,OAAO,GAAG,OAAO,CAAC"}
|
|
@@ -4,12 +4,22 @@ import { Cursor, type CursorParams, PagePromise } from "../core/pagination.mjs";
|
|
|
4
4
|
import { RequestOptions } from "../internal/request-options.mjs";
|
|
5
5
|
export declare class Invitations extends APIResource {
|
|
6
6
|
/**
|
|
7
|
-
* Create a partner invitation link for a client to connect
|
|
8
|
-
* opens the returned `url` and
|
|
9
|
-
*
|
|
10
|
-
* project when the client completes the flow, and the invitation transitions to
|
|
7
|
+
* Create a partner invitation link for a client to connect a Meta channel. The
|
|
8
|
+
* client opens the returned `url` and authorizes with Meta; the resulting sender
|
|
9
|
+
* is created in your project when they finish, and the invitation transitions to
|
|
11
10
|
* `completed`.
|
|
12
11
|
*
|
|
12
|
+
* `connectionType` picks the channel:
|
|
13
|
+
*
|
|
14
|
+
* - `whatsapp_waba` (default): Meta's embedded signup links an official WhatsApp
|
|
15
|
+
* Business Account.
|
|
16
|
+
* - `messenger`: the client picks a Facebook Page they administer; its Messenger
|
|
17
|
+
* inbox (including Marketplace chats) is routed to Zavu.
|
|
18
|
+
*
|
|
19
|
+
* One invitation connects one channel — create one per channel to onboard a client
|
|
20
|
+
* on several. `phoneNumberId` and `allowedPhoneCountries` apply to `whatsapp_waba`
|
|
21
|
+
* only.
|
|
22
|
+
*
|
|
13
23
|
* @example
|
|
14
24
|
* ```ts
|
|
15
25
|
* const invitation = await client.invitations.create({
|
|
@@ -65,8 +75,13 @@ export interface Invitation {
|
|
|
65
75
|
expiresAt: string;
|
|
66
76
|
/**
|
|
67
77
|
* Current status of the partner invitation.
|
|
78
|
+
*
|
|
79
|
+
* `failed` means the client started the connection and it did not finish (they
|
|
80
|
+
* cancelled Meta's dialog, denied a permission, or abandoned the tab). A failed
|
|
81
|
+
* invitation is still usable: the same link can be retried, and it moves back to
|
|
82
|
+
* `in_progress` when the client tries again.
|
|
68
83
|
*/
|
|
69
|
-
status: 'pending' | 'in_progress' | 'completed' | 'expired' | 'cancelled';
|
|
84
|
+
status: 'pending' | 'in_progress' | 'completed' | 'expired' | 'cancelled' | 'failed';
|
|
70
85
|
updatedAt: string;
|
|
71
86
|
/**
|
|
72
87
|
* Full URL to share with the client.
|
|
@@ -77,12 +92,29 @@ export interface Invitation {
|
|
|
77
92
|
clientPhone?: string | null;
|
|
78
93
|
completedAt?: string | null;
|
|
79
94
|
/**
|
|
80
|
-
*
|
|
81
|
-
*
|
|
95
|
+
* The account the client linked, populated once the invitation is `completed`.
|
|
96
|
+
* Null before that. Use it to show the partner what was connected without fetching
|
|
97
|
+
* the sender.
|
|
98
|
+
*/
|
|
99
|
+
connectedAccount?: Invitation.ConnectedAccount | null;
|
|
100
|
+
/**
|
|
101
|
+
* Which Meta channel the client connects: `whatsapp_waba` (official WhatsApp Cloud
|
|
102
|
+
* API via embedded signup) or `messenger` (a Facebook Page's Messenger inbox,
|
|
103
|
+
* including Marketplace chats).
|
|
82
104
|
*/
|
|
83
|
-
connectionType?: 'whatsapp_waba';
|
|
105
|
+
connectionType?: 'whatsapp_waba' | 'messenger';
|
|
106
|
+
failedAt?: string | null;
|
|
84
107
|
/**
|
|
85
|
-
*
|
|
108
|
+
* Stable code for why the last attempt failed, present when `status` is `failed`.
|
|
109
|
+
* Values include `fb_cancelled` (client closed Meta's dialog), `fb_not_authorized`
|
|
110
|
+
* (permission denied), `signup_abandoned` (started but never finished),
|
|
111
|
+
* `meta_no_pages` (the client administers no Facebook Page), and `internal_error`.
|
|
112
|
+
* Treat unknown codes as a generic failure.
|
|
113
|
+
*/
|
|
114
|
+
failureReason?: string | null;
|
|
115
|
+
/**
|
|
116
|
+
* ID of a pre-assigned Zavu phone number for WhatsApp registration. Always null
|
|
117
|
+
* for `messenger` invitations.
|
|
86
118
|
*/
|
|
87
119
|
phoneNumberId?: string | null;
|
|
88
120
|
/**
|
|
@@ -92,6 +124,25 @@ export interface Invitation {
|
|
|
92
124
|
startedAt?: string | null;
|
|
93
125
|
viewedAt?: string | null;
|
|
94
126
|
}
|
|
127
|
+
export declare namespace Invitation {
|
|
128
|
+
/**
|
|
129
|
+
* The account the client linked, populated once the invitation is `completed`.
|
|
130
|
+
* Null before that. Use it to show the partner what was connected without fetching
|
|
131
|
+
* the sender.
|
|
132
|
+
*/
|
|
133
|
+
interface ConnectedAccount {
|
|
134
|
+
/**
|
|
135
|
+
* Provider-side identifier: the WhatsApp phone number ID, or the Facebook Page ID.
|
|
136
|
+
*/
|
|
137
|
+
id: string;
|
|
138
|
+
channel: 'whatsapp' | 'messenger';
|
|
139
|
+
/**
|
|
140
|
+
* Display name of the connected account: the WhatsApp verified name, or the
|
|
141
|
+
* Facebook Page name.
|
|
142
|
+
*/
|
|
143
|
+
name?: string | null;
|
|
144
|
+
}
|
|
145
|
+
}
|
|
95
146
|
export interface InvitationCreateResponse {
|
|
96
147
|
invitation: Invitation;
|
|
97
148
|
}
|
|
@@ -103,7 +154,8 @@ export interface InvitationCancelResponse {
|
|
|
103
154
|
}
|
|
104
155
|
export interface InvitationCreateParams {
|
|
105
156
|
/**
|
|
106
|
-
* ISO country codes for allowed phone numbers.
|
|
157
|
+
* ISO country codes for allowed phone numbers. Only valid when `connectionType` is
|
|
158
|
+
* `whatsapp_waba` — sending it with `messenger` returns 400.
|
|
107
159
|
*/
|
|
108
160
|
allowedPhoneCountries?: Array<string>;
|
|
109
161
|
/**
|
|
@@ -119,25 +171,43 @@ export interface InvitationCreateParams {
|
|
|
119
171
|
*/
|
|
120
172
|
clientPhone?: string;
|
|
121
173
|
/**
|
|
122
|
-
*
|
|
123
|
-
*
|
|
174
|
+
* Which Meta channel the client connects, and how.
|
|
175
|
+
*
|
|
176
|
+
* - `whatsapp_waba` (default): Meta's embedded signup links an official WhatsApp
|
|
177
|
+
* Business Account. Accepts `phoneNumberId` and `allowedPhoneCountries`.
|
|
178
|
+
* - `messenger`: the client authorizes with Facebook and picks a Facebook Page
|
|
179
|
+
* they administer. The Page's Messenger inbox — including Marketplace chats — is
|
|
180
|
+
* routed to Zavu. They must be an admin of at least one Page. A Page can only be
|
|
181
|
+
* connected to one Zavu project at a time: if the client picks a Page that
|
|
182
|
+
* another project already connected, the newer connection wins and the older one
|
|
183
|
+
* is disconnected.
|
|
184
|
+
*
|
|
185
|
+
* One invitation connects one channel. To onboard a client on several channels,
|
|
186
|
+
* create one invitation per channel; each completes into its own sender.
|
|
124
187
|
*/
|
|
125
|
-
connectionType?: 'whatsapp_waba';
|
|
188
|
+
connectionType?: 'whatsapp_waba' | 'messenger';
|
|
126
189
|
/**
|
|
127
190
|
* Number of days until the invitation expires.
|
|
128
191
|
*/
|
|
129
192
|
expiresInDays?: number;
|
|
130
193
|
/**
|
|
131
194
|
* ID of a Zavu phone number to pre-assign for WhatsApp registration. If provided,
|
|
132
|
-
* the client will use this number instead of their own.
|
|
195
|
+
* the client will use this number instead of their own. Only valid when
|
|
196
|
+
* `connectionType` is `whatsapp_waba` — sending it with `messenger` returns 400,
|
|
197
|
+
* since a Facebook Page has no phone number.
|
|
133
198
|
*/
|
|
134
199
|
phoneNumberId?: string;
|
|
135
200
|
}
|
|
136
201
|
export interface InvitationListParams extends CursorParams {
|
|
137
202
|
/**
|
|
138
203
|
* Current status of the partner invitation.
|
|
204
|
+
*
|
|
205
|
+
* `failed` means the client started the connection and it did not finish (they
|
|
206
|
+
* cancelled Meta's dialog, denied a permission, or abandoned the tab). A failed
|
|
207
|
+
* invitation is still usable: the same link can be retried, and it moves back to
|
|
208
|
+
* `in_progress` when the client tries again.
|
|
139
209
|
*/
|
|
140
|
-
status?: 'pending' | 'in_progress' | 'completed' | 'expired' | 'cancelled';
|
|
210
|
+
status?: 'pending' | 'in_progress' | 'completed' | 'expired' | 'cancelled' | 'failed';
|
|
141
211
|
}
|
|
142
212
|
export declare namespace Invitations {
|
|
143
213
|
export { type Invitation as Invitation, type InvitationCreateResponse as InvitationCreateResponse, type InvitationRetrieveResponse as InvitationRetrieveResponse, type InvitationCancelResponse as InvitationCancelResponse, type InvitationsCursor as InvitationsCursor, type InvitationCreateParams as InvitationCreateParams, type InvitationListParams as InvitationListParams, };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"invitations.d.mts","sourceRoot":"","sources":["../src/resources/invitations.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAC/C,OAAO,EAAE,UAAU,EAAE,gCAA4B;AACjD,OAAO,EAAE,MAAM,EAAE,KAAK,YAAY,EAAE,WAAW,EAAE,+BAA2B;AAC5E,OAAO,EAAE,cAAc,EAAE,wCAAoC;AAG7D,qBAAa,WAAY,SAAQ,WAAW;IAC1C
|
|
1
|
+
{"version":3,"file":"invitations.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