@zavudev/sdk 0.50.0 → 0.52.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 +30 -0
- package/package.json +1 -1
- package/resources/functions/functions.d.mts +22 -8
- package/resources/functions/functions.d.mts.map +1 -1
- package/resources/functions/functions.d.ts +22 -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 +84 -23
- package/resources/invitations.d.mts.map +1 -1
- package/resources/invitations.d.ts +84 -23
- package/resources/invitations.d.ts.map +1 -1
- package/resources/invitations.js +13 -10
- package/resources/invitations.js.map +1 -1
- package/resources/invitations.mjs +13 -10
- package/resources/invitations.mjs.map +1 -1
- package/resources/messages.d.mts +66 -20
- package/resources/messages.d.mts.map +1 -1
- package/resources/messages.d.ts +66 -20
- package/resources/messages.d.ts.map +1 -1
- package/resources/messages.js +23 -3
- package/resources/messages.js.map +1 -1
- package/resources/messages.mjs +23 -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 +5 -0
- package/resources/phone-numbers.d.mts.map +1 -1
- package/resources/phone-numbers.d.ts +5 -0
- package/resources/phone-numbers.d.ts.map +1 -1
- package/resources/senders/agent/agent.d.mts +307 -0
- package/resources/senders/agent/agent.d.mts.map +1 -1
- package/resources/senders/agent/agent.d.ts +307 -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/senders.d.mts +71 -21
- package/resources/senders/senders.d.mts.map +1 -1
- package/resources/senders/senders.d.ts +71 -21
- 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 +23 -8
- package/src/resources/invitations.ts +90 -23
- package/src/resources/messages.ts +67 -19
- 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 +6 -0
- package/src/resources/senders/agent/agent.ts +357 -0
- package/src/resources/senders/agent/executions.ts +5 -0
- package/src/resources/senders/senders.ts +78 -21
- 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,35 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.52.0 (2026-08-02)
|
|
4
|
+
|
|
5
|
+
Full Changelog: [v0.51.0...v0.52.0](https://github.com/zavudev/sdk-typescript/compare/v0.51.0...v0.52.0)
|
|
6
|
+
|
|
7
|
+
### Features
|
|
8
|
+
|
|
9
|
+
* **api:** api update ([1382ef1](https://github.com/zavudev/sdk-typescript/commit/1382ef1d8a7eaf9f4a2854152da7e6b35836ff37))
|
|
10
|
+
* **api:** api update ([aa6a299](https://github.com/zavudev/sdk-typescript/commit/aa6a299beb081fffb5f4abed3c9da953fffb013f))
|
|
11
|
+
* **api:** api update ([7edc5b6](https://github.com/zavudev/sdk-typescript/commit/7edc5b62da711521007ad1b05ea0bb3944176f67))
|
|
12
|
+
* **api:** api update ([1429c6d](https://github.com/zavudev/sdk-typescript/commit/1429c6dfbf313a0bbf2dbe40a2eee168f388a14d))
|
|
13
|
+
* **api:** api update ([204d9e3](https://github.com/zavudev/sdk-typescript/commit/204d9e3a741648c57d9146d6c88d56e78d7f09bc))
|
|
14
|
+
* **api:** api update ([5e66fe7](https://github.com/zavudev/sdk-typescript/commit/5e66fe7640c97dbba2d71907e6d814dd79b6e594))
|
|
15
|
+
* **api:** api update ([1eddb33](https://github.com/zavudev/sdk-typescript/commit/1eddb337a640e21bbe0c371c9d8ae2037bf0b90d))
|
|
16
|
+
* **api:** api update ([ef61f1f](https://github.com/zavudev/sdk-typescript/commit/ef61f1f9d7add1f9bc245fe514e3e7e7d6a19b88))
|
|
17
|
+
* **api:** api update ([1ad9660](https://github.com/zavudev/sdk-typescript/commit/1ad9660551b3cd1f82b6423f99f66b82e5327e0a))
|
|
18
|
+
* **api:** api update ([b302a2b](https://github.com/zavudev/sdk-typescript/commit/b302a2be267c6d553c4e876d8e9ab346eed9f000))
|
|
19
|
+
* **api:** api update ([bd00075](https://github.com/zavudev/sdk-typescript/commit/bd00075b324720cb4a9e9c24fd5166d035edb289))
|
|
20
|
+
* **api:** api update ([358090f](https://github.com/zavudev/sdk-typescript/commit/358090fa85b2d7d4d12e57d83d1bac342289adc2))
|
|
21
|
+
|
|
22
|
+
## 0.51.0 (2026-07-23)
|
|
23
|
+
|
|
24
|
+
Full Changelog: [v0.50.0...v0.51.0](https://github.com/zavudev/sdk-typescript/compare/v0.50.0...v0.51.0)
|
|
25
|
+
|
|
26
|
+
### Features
|
|
27
|
+
|
|
28
|
+
* **api:** api update ([643cc50](https://github.com/zavudev/sdk-typescript/commit/643cc50a23796b78729897d97fd99d5ca15d388c))
|
|
29
|
+
* **api:** api update ([edd6df0](https://github.com/zavudev/sdk-typescript/commit/edd6df0d6fa5be0276e58e3476f68f7f4124b5d7))
|
|
30
|
+
* **api:** api update ([39f15e2](https://github.com/zavudev/sdk-typescript/commit/39f15e2e427fa35f2559a07f093e20ca9238b3c2))
|
|
31
|
+
* **stlc:** configurable CI runner and private-production-repo support in workflow templates ([d7ad0df](https://github.com/zavudev/sdk-typescript/commit/d7ad0dfcd2e3b242716a049ac0709f9cc6c5f762))
|
|
32
|
+
|
|
3
33
|
## 0.50.0 (2026-07-15)
|
|
4
34
|
|
|
5
35
|
Full Changelog: [v0.49.0...v0.50.0](https://github.com/zavudev/sdk-typescript/compare/v0.49.0...v0.50.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
|
}
|
|
@@ -384,7 +392,13 @@ export interface FunctionUpdateParams {
|
|
|
384
392
|
[key: string]: string;
|
|
385
393
|
};
|
|
386
394
|
/**
|
|
387
|
-
*
|
|
395
|
+
* Expose the function on its public HTTPS URL, or take it down. Applies to the
|
|
396
|
+
* already-deployed function without redeploying; the URL is returned as
|
|
397
|
+
* `publicUrl`.
|
|
398
|
+
*/
|
|
399
|
+
httpEnabled?: boolean;
|
|
400
|
+
/**
|
|
401
|
+
* New source code for the draft (replaces it).
|
|
388
402
|
*/
|
|
389
403
|
sourceCode?: string;
|
|
390
404
|
}
|
|
@@ -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":["../../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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
|
}
|
|
@@ -384,7 +392,13 @@ export interface FunctionUpdateParams {
|
|
|
384
392
|
[key: string]: string;
|
|
385
393
|
};
|
|
386
394
|
/**
|
|
387
|
-
*
|
|
395
|
+
* Expose the function on its public HTTPS URL, or take it down. Applies to the
|
|
396
|
+
* already-deployed function without redeploying; the URL is returned as
|
|
397
|
+
* `publicUrl`.
|
|
398
|
+
*/
|
|
399
|
+
httpEnabled?: boolean;
|
|
400
|
+
/**
|
|
401
|
+
* New source code for the draft (replaces it).
|
|
388
402
|
*/
|
|
389
403
|
sourceCode?: string;
|
|
390
404
|
}
|
|
@@ -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;;;;;;;;;;;;;;;;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B,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"}
|
|
@@ -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,CA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IAAI,CAAC,IAAA,WAAI,EAAA,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,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;AAmZD,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;AAEtF,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,KAAK,UAAU,sBAAkB;AACxC,OAAO,EAKL,OAAO,GACR,sBAAkB;AAGnB,OAAO,EAAE,IAAI,EAAE,sCAAkC;AAEjD,MAAM,OAAO,SAAU,SAAQ,WAAW;IAA1C;;QACE,YAAO,GAAuB,IAAI,UAAU,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"functions.mjs","sourceRoot":"","sources":["../../src/resources/functions/functions.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,KAAK,UAAU,sBAAkB;AACxC,OAAO,EAKL,OAAO,GACR,sBAAkB;AAGnB,OAAO,EAAE,IAAI,EAAE,sCAAkC;AAEjD,MAAM,OAAO,SAAU,SAAQ,WAAW;IAA1C;;QACE,YAAO,GAAuB,IAAI,UAAU,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAqIrE,CAAC;IAnIC;;;;;;;;;;;;;;;;;;;;OAoBG;IACH,MAAM,CAAC,IAA0B,EAAE,OAAwB;QACzD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,eAAe,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAClE,CAAC;IAED;;;;;;;;;OASG;IACH,QAAQ,CAAC,UAAkB,EAAE,OAAwB;QACnD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,iBAAiB,UAAU,EAAE,EAAE,OAAO,CAAC,CAAC;IACtE,CAAC;IAED;;;;;;;;;;;;;OAaG;IACH,MAAM,CACJ,UAAkB,EAClB,IAA0B,EAC1B,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,CAAA,iBAAiB,UAAU,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,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;AAmZD,SAAS,CAAC,OAAO,GAAG,OAAO,CAAC"}
|
|
@@ -4,18 +4,21 @@ 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
|
-
*
|
|
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
|
|
10
|
+
* `completed`.
|
|
10
11
|
*
|
|
11
|
-
*
|
|
12
|
-
* linking an official WhatsApp Business Account.
|
|
13
|
-
* - `whatsapp_alt`: the client links their number by scanning a QR code. Requires
|
|
14
|
-
* the WhatsApp Alternative feature to be enabled for your team (otherwise
|
|
15
|
-
* returns 400).
|
|
12
|
+
* `connectionType` picks the channel:
|
|
16
13
|
*
|
|
17
|
-
*
|
|
18
|
-
*
|
|
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.
|
|
19
22
|
*
|
|
20
23
|
* @example
|
|
21
24
|
* ```ts
|
|
@@ -72,8 +75,13 @@ export interface Invitation {
|
|
|
72
75
|
expiresAt: string;
|
|
73
76
|
/**
|
|
74
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.
|
|
75
83
|
*/
|
|
76
|
-
status: 'pending' | 'in_progress' | 'completed' | 'expired' | 'cancelled';
|
|
84
|
+
status: 'pending' | 'in_progress' | 'completed' | 'expired' | 'cancelled' | 'failed';
|
|
77
85
|
updatedAt: string;
|
|
78
86
|
/**
|
|
79
87
|
* Full URL to share with the client.
|
|
@@ -84,12 +92,29 @@ export interface Invitation {
|
|
|
84
92
|
clientPhone?: string | null;
|
|
85
93
|
completedAt?: string | null;
|
|
86
94
|
/**
|
|
87
|
-
*
|
|
88
|
-
*
|
|
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).
|
|
104
|
+
*/
|
|
105
|
+
connectionType?: 'whatsapp_waba' | 'messenger';
|
|
106
|
+
failedAt?: string | null;
|
|
107
|
+
/**
|
|
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.
|
|
89
113
|
*/
|
|
90
|
-
|
|
114
|
+
failureReason?: string | null;
|
|
91
115
|
/**
|
|
92
|
-
* ID of a pre-assigned Zavu phone number for WhatsApp registration.
|
|
116
|
+
* ID of a pre-assigned Zavu phone number for WhatsApp registration. Always null
|
|
117
|
+
* for `messenger` invitations.
|
|
93
118
|
*/
|
|
94
119
|
phoneNumberId?: string | null;
|
|
95
120
|
/**
|
|
@@ -99,6 +124,25 @@ export interface Invitation {
|
|
|
99
124
|
startedAt?: string | null;
|
|
100
125
|
viewedAt?: string | null;
|
|
101
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
|
+
}
|
|
102
146
|
export interface InvitationCreateResponse {
|
|
103
147
|
invitation: Invitation;
|
|
104
148
|
}
|
|
@@ -110,7 +154,8 @@ export interface InvitationCancelResponse {
|
|
|
110
154
|
}
|
|
111
155
|
export interface InvitationCreateParams {
|
|
112
156
|
/**
|
|
113
|
-
* 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.
|
|
114
159
|
*/
|
|
115
160
|
allowedPhoneCountries?: Array<string>;
|
|
116
161
|
/**
|
|
@@ -126,27 +171,43 @@ export interface InvitationCreateParams {
|
|
|
126
171
|
*/
|
|
127
172
|
clientPhone?: string;
|
|
128
173
|
/**
|
|
129
|
-
*
|
|
130
|
-
*
|
|
131
|
-
*
|
|
132
|
-
*
|
|
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.
|
|
133
187
|
*/
|
|
134
|
-
connectionType?: 'whatsapp_waba' | '
|
|
188
|
+
connectionType?: 'whatsapp_waba' | 'messenger';
|
|
135
189
|
/**
|
|
136
190
|
* Number of days until the invitation expires.
|
|
137
191
|
*/
|
|
138
192
|
expiresInDays?: number;
|
|
139
193
|
/**
|
|
140
194
|
* ID of a Zavu phone number to pre-assign for WhatsApp registration. If provided,
|
|
141
|
-
* 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.
|
|
142
198
|
*/
|
|
143
199
|
phoneNumberId?: string;
|
|
144
200
|
}
|
|
145
201
|
export interface InvitationListParams extends CursorParams {
|
|
146
202
|
/**
|
|
147
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.
|
|
148
209
|
*/
|
|
149
|
-
status?: 'pending' | 'in_progress' | 'completed' | 'expired' | 'cancelled';
|
|
210
|
+
status?: 'pending' | 'in_progress' | 'completed' | 'expired' | 'cancelled' | 'failed';
|
|
150
211
|
}
|
|
151
212
|
export declare namespace Invitations {
|
|
152
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.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;;;;;;;;;;;;;;;;;;;;;;;OAuBG;IACH,MAAM,CACJ,IAAI,GAAE,sBAAsB,GAAG,IAAI,GAAG,SAAc,EACpD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,wBAAwB,CAAC;IAIvC;;;;;;;;;OASG;IACH,QAAQ,CAAC,YAAY,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,0BAA0B,CAAC;IAIhG;;;;;;;;;;OAUG;IACH,IAAI,CACF,KAAK,GAAE,oBAAoB,GAAG,IAAI,GAAG,SAAc,EACnD,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,iBAAiB,EAAE,UAAU,CAAC;IAI7C;;;;;;;;;;OAUG;IACH,MAAM,CAAC,YAAY,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,wBAAwB,CAAC;CAG7F;AAED,MAAM,MAAM,iBAAiB,GAAG,MAAM,CAAC,UAA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