sendblue 3.12.0 → 3.14.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 +16 -0
- package/package.json +1 -1
- package/resources/groups.d.mts +23 -4
- package/resources/groups.d.mts.map +1 -1
- package/resources/groups.d.ts +23 -4
- package/resources/groups.d.ts.map +1 -1
- package/resources/groups.js +6 -1
- package/resources/groups.js.map +1 -1
- package/resources/groups.mjs +6 -1
- package/resources/groups.mjs.map +1 -1
- package/resources/v2/groups/groups.d.mts +86 -0
- package/resources/v2/groups/groups.d.mts.map +1 -0
- package/resources/v2/groups/groups.d.ts +86 -0
- package/resources/v2/groups/groups.d.ts.map +1 -0
- package/resources/v2/groups/groups.js +35 -0
- package/resources/v2/groups/groups.js.map +1 -0
- package/resources/v2/groups/groups.mjs +30 -0
- package/resources/v2/groups/groups.mjs.map +1 -0
- package/resources/v2/groups/index.d.mts +3 -0
- package/resources/v2/groups/index.d.mts.map +1 -0
- package/resources/v2/groups/index.d.ts +3 -0
- package/resources/v2/groups/index.d.ts.map +1 -0
- package/resources/v2/groups/index.js +9 -0
- package/resources/v2/groups/index.js.map +1 -0
- package/resources/v2/groups/index.mjs +4 -0
- package/resources/v2/groups/index.mjs.map +1 -0
- package/resources/v2/groups/verify/index.d.mts +3 -0
- package/resources/v2/groups/verify/index.d.mts.map +1 -0
- package/resources/v2/groups/verify/index.d.ts +3 -0
- package/resources/v2/groups/verify/index.d.ts.map +1 -0
- package/resources/v2/groups/verify/index.js +9 -0
- package/resources/v2/groups/verify/index.js.map +1 -0
- package/resources/v2/groups/verify/index.mjs +4 -0
- package/resources/v2/groups/verify/index.mjs.map +1 -0
- package/resources/v2/groups/verify/services/index.d.mts +3 -0
- package/resources/v2/groups/verify/services/index.d.mts.map +1 -0
- package/resources/v2/groups/verify/services/index.d.ts +3 -0
- package/resources/v2/groups/verify/services/index.d.ts.map +1 -0
- package/resources/v2/groups/verify/services/index.js +9 -0
- package/resources/v2/groups/verify/services/index.js.map +1 -0
- package/resources/v2/groups/verify/services/index.mjs +4 -0
- package/resources/v2/groups/verify/services/index.mjs.map +1 -0
- package/resources/v2/groups/verify/services/services.d.mts +10 -0
- package/resources/v2/groups/verify/services/services.d.mts.map +1 -0
- package/resources/v2/groups/verify/services/services.d.ts +10 -0
- package/resources/v2/groups/verify/services/services.d.ts.map +1 -0
- package/resources/v2/groups/verify/services/services.js +17 -0
- package/resources/v2/groups/verify/services/services.js.map +1 -0
- package/resources/v2/groups/verify/services/services.mjs +12 -0
- package/resources/v2/groups/verify/services/services.mjs.map +1 -0
- package/resources/v2/groups/verify/services/verifications.d.mts +145 -0
- package/resources/v2/groups/verify/services/verifications.d.mts.map +1 -0
- package/resources/v2/groups/verify/services/verifications.d.ts +145 -0
- package/resources/v2/groups/verify/services/verifications.d.ts.map +1 -0
- package/resources/v2/groups/verify/services/verifications.js +57 -0
- package/resources/v2/groups/verify/services/verifications.js.map +1 -0
- package/resources/v2/groups/verify/services/verifications.mjs +53 -0
- package/resources/v2/groups/verify/services/verifications.mjs.map +1 -0
- package/resources/v2/groups/verify/services.d.mts +2 -0
- package/resources/v2/groups/verify/services.d.mts.map +1 -0
- package/resources/v2/groups/verify/services.d.ts +2 -0
- package/resources/v2/groups/verify/services.d.ts.map +1 -0
- package/resources/v2/groups/verify/services.js +6 -0
- package/resources/v2/groups/verify/services.js.map +1 -0
- package/resources/v2/groups/verify/services.mjs +3 -0
- package/resources/v2/groups/verify/services.mjs.map +1 -0
- package/resources/v2/groups/verify/verify.d.mts +10 -0
- package/resources/v2/groups/verify/verify.d.mts.map +1 -0
- package/resources/v2/groups/verify/verify.d.ts +10 -0
- package/resources/v2/groups/verify/verify.d.ts.map +1 -0
- package/resources/v2/groups/verify/verify.js +17 -0
- package/resources/v2/groups/verify/verify.js.map +1 -0
- package/resources/v2/groups/verify/verify.mjs +12 -0
- package/resources/v2/groups/verify/verify.mjs.map +1 -0
- package/resources/v2/groups/verify.d.mts +2 -0
- package/resources/v2/groups/verify.d.mts.map +1 -0
- package/resources/v2/groups/verify.d.ts +2 -0
- package/resources/v2/groups/verify.d.ts.map +1 -0
- package/resources/v2/groups/verify.js +6 -0
- package/resources/v2/groups/verify.js.map +1 -0
- package/resources/v2/groups/verify.mjs +3 -0
- package/resources/v2/groups/verify.mjs.map +1 -0
- package/resources/v2/groups.d.mts +1 -81
- package/resources/v2/groups.d.mts.map +1 -1
- package/resources/v2/groups.d.ts +1 -81
- package/resources/v2/groups.d.ts.map +1 -1
- package/resources/v2/groups.js +2 -23
- package/resources/v2/groups.js.map +1 -1
- package/resources/v2/groups.mjs +1 -21
- package/resources/v2/groups.mjs.map +1 -1
- package/resources/v2/index.d.mts +1 -1
- package/resources/v2/index.d.mts.map +1 -1
- package/resources/v2/index.d.ts +1 -1
- package/resources/v2/index.d.ts.map +1 -1
- package/resources/v2/index.js +4 -4
- package/resources/v2/index.js.map +1 -1
- package/resources/v2/index.mjs +1 -1
- package/resources/v2/index.mjs.map +1 -1
- package/resources/v2/v2.d.mts +2 -2
- package/resources/v2/v2.d.mts.map +1 -1
- package/resources/v2/v2.d.ts +2 -2
- package/resources/v2/v2.d.ts.map +1 -1
- package/resources/v2/v2.js +2 -2
- package/resources/v2/v2.js.map +1 -1
- package/resources/v2/v2.mjs +2 -2
- package/resources/v2/v2.mjs.map +1 -1
- package/resources/verify/index.d.mts +1 -1
- package/resources/verify/index.d.mts.map +1 -1
- package/resources/verify/index.d.ts +1 -1
- package/resources/verify/index.d.ts.map +1 -1
- package/resources/verify/index.js.map +1 -1
- package/resources/verify/index.mjs.map +1 -1
- package/resources/verify/verifications.d.mts +172 -1
- package/resources/verify/verifications.d.mts.map +1 -1
- package/resources/verify/verifications.d.ts +172 -1
- package/resources/verify/verifications.d.ts.map +1 -1
- package/resources/verify/verifications.js +51 -0
- package/resources/verify/verifications.js.map +1 -1
- package/resources/verify/verifications.mjs +51 -0
- package/resources/verify/verifications.mjs.map +1 -1
- package/resources/verify/verify.d.mts +2 -2
- package/resources/verify/verify.d.mts.map +1 -1
- package/resources/verify/verify.d.ts +2 -2
- package/resources/verify/verify.d.ts.map +1 -1
- package/resources/verify/verify.js.map +1 -1
- package/resources/verify/verify.mjs.map +1 -1
- package/src/resources/groups.ts +28 -4
- package/src/resources/v2/groups/groups.ts +114 -0
- package/src/resources/v2/groups/index.ts +4 -0
- package/src/resources/v2/groups/verify/index.ts +4 -0
- package/src/resources/v2/groups/verify/services/index.ts +10 -0
- package/src/resources/v2/groups/verify/services/services.ts +27 -0
- package/src/resources/v2/groups/verify/services/verifications.ts +201 -0
- package/src/resources/v2/groups/verify/services.ts +3 -0
- package/src/resources/v2/groups/verify/verify.ts +15 -0
- package/src/resources/v2/groups/verify.ts +3 -0
- package/src/resources/v2/groups.ts +1 -104
- package/src/resources/v2/index.ts +1 -1
- package/src/resources/v2/v2.ts +2 -2
- package/src/resources/verify/index.ts +6 -0
- package/src/resources/verify/verifications.ts +233 -0
- package/src/resources/verify/verify.ts +12 -0
- 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,21 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 3.14.0 (2026-08-21)
|
|
4
|
+
|
|
5
|
+
Full Changelog: [v3.13.0...v3.14.0](https://github.com/sendblue-api/sendblue-ts/compare/v3.13.0...v3.14.0)
|
|
6
|
+
|
|
7
|
+
### Features
|
|
8
|
+
|
|
9
|
+
* **groups:** RD-456 truthful group member add/remove on v1 and v2 ([9ebcc02](https://github.com/sendblue-api/sendblue-ts/commit/9ebcc029d9cdfb34753e684b09cc3be14065eb12))
|
|
10
|
+
|
|
11
|
+
## 3.13.0 (2026-08-20)
|
|
12
|
+
|
|
13
|
+
Full Changelog: [v3.12.0...v3.13.0](https://github.com/sendblue-api/sendblue-ts/compare/v3.12.0...v3.13.0)
|
|
14
|
+
|
|
15
|
+
### Features
|
|
16
|
+
|
|
17
|
+
* **verify:** add hosted verification component ([fa764b0](https://github.com/sendblue-api/sendblue-ts/commit/fa764b088918ccdd3d0a07777fc2742268c66484))
|
|
18
|
+
|
|
3
19
|
## 3.12.0 (2026-08-20)
|
|
4
20
|
|
|
5
21
|
Full Changelog: [v3.11.0...v3.12.0](https://github.com/sendblue-api/sendblue-ts/compare/v3.11.0...v3.12.0)
|
package/package.json
CHANGED
package/resources/groups.d.mts
CHANGED
|
@@ -7,7 +7,12 @@ import { RequestOptions } from "../internal/request-options.mjs";
|
|
|
7
7
|
*/
|
|
8
8
|
export declare class Groups extends APIResource {
|
|
9
9
|
/**
|
|
10
|
-
* Add or
|
|
10
|
+
* Add an external participant to, or remove one from, an existing iMessage group
|
|
11
|
+
* chat (beta feature). Success is reported only after the change is verified on
|
|
12
|
+
* the device: the group's persisted membership changed and Sendblue's participant
|
|
13
|
+
* state matches it. Removal requires the group to have at least four total members
|
|
14
|
+
* before the operation and does not require the group's creator. Only iMessage
|
|
15
|
+
* groups are supported.
|
|
11
16
|
*
|
|
12
17
|
* @example
|
|
13
18
|
* ```ts
|
|
@@ -33,7 +38,11 @@ export declare class Groups extends APIResource {
|
|
|
33
38
|
sendMessage(body: GroupSendMessageParams, options?: RequestOptions): APIPromise<MessagesAPI.MessageResponse>;
|
|
34
39
|
}
|
|
35
40
|
export interface GroupModifyResponse {
|
|
36
|
-
|
|
41
|
+
error?: string | null;
|
|
42
|
+
error_message?: string | null;
|
|
43
|
+
group_id?: string;
|
|
44
|
+
modify_type?: string;
|
|
45
|
+
number?: string;
|
|
37
46
|
status?: string;
|
|
38
47
|
}
|
|
39
48
|
export interface GroupModifyParams {
|
|
@@ -44,11 +53,21 @@ export interface GroupModifyParams {
|
|
|
44
53
|
/**
|
|
45
54
|
* Type of modification to perform
|
|
46
55
|
*/
|
|
47
|
-
modify_type: 'add_recipient';
|
|
56
|
+
modify_type: 'add_recipient' | 'remove_recipient';
|
|
48
57
|
/**
|
|
49
|
-
*
|
|
58
|
+
* External participant to add or remove, in E.164 format (or an iMessage email
|
|
59
|
+
* address). Company-owned lines cannot be added or removed.
|
|
50
60
|
*/
|
|
51
61
|
number: string;
|
|
62
|
+
/**
|
|
63
|
+
* The Sendblue line to act from. It must belong to the account and already be a
|
|
64
|
+
* participant of the group. Free API accounts must provide it. Other accounts may
|
|
65
|
+
* omit it only when exactly one account line participates in the group. With no
|
|
66
|
+
* participating account line the request fails with `line_not_registered`; with
|
|
67
|
+
* multiple lines it fails with `ambiguous_sending_line`. No change is attempted in
|
|
68
|
+
* either case.
|
|
69
|
+
*/
|
|
70
|
+
from_number?: string;
|
|
52
71
|
}
|
|
53
72
|
export interface GroupSendMessageParams {
|
|
54
73
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"groups.d.mts","sourceRoot":"","sources":["../src/resources/groups.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAC/C,OAAO,KAAK,WAAW,uBAAmB;AAC1C,OAAO,EAAE,UAAU,EAAE,gCAA4B;AACjD,OAAO,EAAE,cAAc,EAAE,wCAAoC;AAE7D;;GAEG;AACH,qBAAa,MAAO,SAAQ,WAAW;IACrC
|
|
1
|
+
{"version":3,"file":"groups.d.mts","sourceRoot":"","sources":["../src/resources/groups.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAC/C,OAAO,KAAK,WAAW,uBAAmB;AAC1C,OAAO,EAAE,UAAU,EAAE,gCAA4B;AACjD,OAAO,EAAE,cAAc,EAAE,wCAAoC;AAE7D;;GAEG;AACH,qBAAa,MAAO,SAAQ,WAAW;IACrC;;;;;;;;;;;;;;;;OAgBG;IACH,MAAM,CAAC,IAAI,EAAE,iBAAiB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,mBAAmB,CAAC;IAI1F;;;;;;;;;;OAUG;IACH,WAAW,CACT,IAAI,EAA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,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,sBAAsB,IAAI,sBAAsB,GACtD,CAAC;CACH"}
|
package/resources/groups.d.ts
CHANGED
|
@@ -7,7 +7,12 @@ import { RequestOptions } from "../internal/request-options.js";
|
|
|
7
7
|
*/
|
|
8
8
|
export declare class Groups extends APIResource {
|
|
9
9
|
/**
|
|
10
|
-
* Add or
|
|
10
|
+
* Add an external participant to, or remove one from, an existing iMessage group
|
|
11
|
+
* chat (beta feature). Success is reported only after the change is verified on
|
|
12
|
+
* the device: the group's persisted membership changed and Sendblue's participant
|
|
13
|
+
* state matches it. Removal requires the group to have at least four total members
|
|
14
|
+
* before the operation and does not require the group's creator. Only iMessage
|
|
15
|
+
* groups are supported.
|
|
11
16
|
*
|
|
12
17
|
* @example
|
|
13
18
|
* ```ts
|
|
@@ -33,7 +38,11 @@ export declare class Groups extends APIResource {
|
|
|
33
38
|
sendMessage(body: GroupSendMessageParams, options?: RequestOptions): APIPromise<MessagesAPI.MessageResponse>;
|
|
34
39
|
}
|
|
35
40
|
export interface GroupModifyResponse {
|
|
36
|
-
|
|
41
|
+
error?: string | null;
|
|
42
|
+
error_message?: string | null;
|
|
43
|
+
group_id?: string;
|
|
44
|
+
modify_type?: string;
|
|
45
|
+
number?: string;
|
|
37
46
|
status?: string;
|
|
38
47
|
}
|
|
39
48
|
export interface GroupModifyParams {
|
|
@@ -44,11 +53,21 @@ export interface GroupModifyParams {
|
|
|
44
53
|
/**
|
|
45
54
|
* Type of modification to perform
|
|
46
55
|
*/
|
|
47
|
-
modify_type: 'add_recipient';
|
|
56
|
+
modify_type: 'add_recipient' | 'remove_recipient';
|
|
48
57
|
/**
|
|
49
|
-
*
|
|
58
|
+
* External participant to add or remove, in E.164 format (or an iMessage email
|
|
59
|
+
* address). Company-owned lines cannot be added or removed.
|
|
50
60
|
*/
|
|
51
61
|
number: string;
|
|
62
|
+
/**
|
|
63
|
+
* The Sendblue line to act from. It must belong to the account and already be a
|
|
64
|
+
* participant of the group. Free API accounts must provide it. Other accounts may
|
|
65
|
+
* omit it only when exactly one account line participates in the group. With no
|
|
66
|
+
* participating account line the request fails with `line_not_registered`; with
|
|
67
|
+
* multiple lines it fails with `ambiguous_sending_line`. No change is attempted in
|
|
68
|
+
* either case.
|
|
69
|
+
*/
|
|
70
|
+
from_number?: string;
|
|
52
71
|
}
|
|
53
72
|
export interface GroupSendMessageParams {
|
|
54
73
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"groups.d.ts","sourceRoot":"","sources":["../src/resources/groups.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,4BAAyB;AAC/C,OAAO,KAAK,WAAW,sBAAmB;AAC1C,OAAO,EAAE,UAAU,EAAE,+BAA4B;AACjD,OAAO,EAAE,cAAc,EAAE,uCAAoC;AAE7D;;GAEG;AACH,qBAAa,MAAO,SAAQ,WAAW;IACrC
|
|
1
|
+
{"version":3,"file":"groups.d.ts","sourceRoot":"","sources":["../src/resources/groups.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,4BAAyB;AAC/C,OAAO,KAAK,WAAW,sBAAmB;AAC1C,OAAO,EAAE,UAAU,EAAE,+BAA4B;AACjD,OAAO,EAAE,cAAc,EAAE,uCAAoC;AAE7D;;GAEG;AACH,qBAAa,MAAO,SAAQ,WAAW;IACrC;;;;;;;;;;;;;;;;OAgBG;IACH,MAAM,CAAC,IAAI,EAAE,iBAAiB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,mBAAmB,CAAC;IAI1F;;;;;;;;;;OAUG;IACH,WAAW,CACT,IAAI,EAAE,sBAAsB,EAC5B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,WAAW,CAAC,eAAe,CAAC;CAG3C;AAED,MAAM,WAAW,mBAAmB;IAClC,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEtB,aA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ource.js");
|
|
|
8
8
|
*/
|
|
9
9
|
class Groups extends resource_1.APIResource {
|
|
10
10
|
/**
|
|
11
|
-
* Add or
|
|
11
|
+
* Add an external participant to, or remove one from, an existing iMessage group
|
|
12
|
+
* chat (beta feature). Success is reported only after the change is verified on
|
|
13
|
+
* the device: the group's persisted membership changed and Sendblue's participant
|
|
14
|
+
* state matches it. Removal requires the group to have at least four total members
|
|
15
|
+
* before the operation and does not require the group's creator. Only iMessage
|
|
16
|
+
* groups are supported.
|
|
12
17
|
*
|
|
13
18
|
* @example
|
|
14
19
|
* ```ts
|
package/resources/groups.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"groups.js","sourceRoot":"","sources":["../src/resources/groups.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAK/C;;GAEG;AACH,MAAa,MAAO,SAAQ,sBAAW;IACrC
|
|
1
|
+
{"version":3,"file":"groups.js","sourceRoot":"","sources":["../src/resources/groups.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAK/C;;GAEG;AACH,MAAa,MAAO,SAAQ,sBAAW;IACrC;;;;;;;;;;;;;;;;OAgBG;IACH,MAAM,CAAC,IAAuB,EAAE,OAAwB;QACtD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,mBAAmB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACtE,CAAC;IAED;;;;;;;;;;OAUG;IACH,WAAW,CACT,IAA4B,EAC5B,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,yBAAyB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC5E,CAAC;CACF;AAvCD,wBAuCC"}
|
package/resources/groups.mjs
CHANGED
|
@@ -5,7 +5,12 @@ import { APIResource } from "../core/resource.mjs";
|
|
|
5
5
|
*/
|
|
6
6
|
export class Groups extends APIResource {
|
|
7
7
|
/**
|
|
8
|
-
* Add or
|
|
8
|
+
* Add an external participant to, or remove one from, an existing iMessage group
|
|
9
|
+
* chat (beta feature). Success is reported only after the change is verified on
|
|
10
|
+
* the device: the group's persisted membership changed and Sendblue's participant
|
|
11
|
+
* state matches it. Removal requires the group to have at least four total members
|
|
12
|
+
* before the operation and does not require the group's creator. Only iMessage
|
|
13
|
+
* groups are supported.
|
|
9
14
|
*
|
|
10
15
|
* @example
|
|
11
16
|
* ```ts
|
package/resources/groups.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"groups.mjs","sourceRoot":"","sources":["../src/resources/groups.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAK/C;;GAEG;AACH,MAAM,OAAO,MAAO,SAAQ,WAAW;IACrC
|
|
1
|
+
{"version":3,"file":"groups.mjs","sourceRoot":"","sources":["../src/resources/groups.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAK/C;;GAEG;AACH,MAAM,OAAO,MAAO,SAAQ,WAAW;IACrC;;;;;;;;;;;;;;;;OAgBG;IACH,MAAM,CAAC,IAAuB,EAAE,OAAwB;QACtD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,mBAAmB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACtE,CAAC;IAED;;;;;;;;;;OAUG;IACH,WAAW,CACT,IAA4B,EAC5B,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,yBAAyB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC5E,CAAC;CACF"}
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import { APIResource } from "../../../core/resource.mjs";
|
|
2
|
+
import * as VerifyAPI from "./verify/verify.mjs";
|
|
3
|
+
import { Verify } from "./verify/verify.mjs";
|
|
4
|
+
import { APIPromise } from "../../../core/api-promise.mjs";
|
|
5
|
+
import { RequestOptions } from "../../../internal/request-options.mjs";
|
|
6
|
+
/**
|
|
7
|
+
* Operations for group messaging (beta)
|
|
8
|
+
*/
|
|
9
|
+
export declare class Groups extends APIResource {
|
|
10
|
+
verify: VerifyAPI.Verify;
|
|
11
|
+
/**
|
|
12
|
+
* Retrieve the current complete membership for a group owned by the authenticated
|
|
13
|
+
* account.
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* ```ts
|
|
17
|
+
* const group = await client.v2.groups.retrieve(
|
|
18
|
+
* 'sb_group_608acc54-d0d7-4b41-8092-9ff6e1e70455',
|
|
19
|
+
* );
|
|
20
|
+
* ```
|
|
21
|
+
*/
|
|
22
|
+
retrieve(groupID: string, options?: RequestOptions): APIPromise<GroupRetrieveResponse>;
|
|
23
|
+
}
|
|
24
|
+
export interface GroupRetrieveResponse {
|
|
25
|
+
data?: GroupRetrieveResponse.Data;
|
|
26
|
+
status?: string;
|
|
27
|
+
}
|
|
28
|
+
export declare namespace GroupRetrieveResponse {
|
|
29
|
+
interface Data {
|
|
30
|
+
created_at?: string;
|
|
31
|
+
group_id?: string;
|
|
32
|
+
group_name?: string;
|
|
33
|
+
latest_comm_at?: string | null;
|
|
34
|
+
latest_message_id?: string | null;
|
|
35
|
+
/**
|
|
36
|
+
* Convenience list of resolved participant phone numbers. Participants with
|
|
37
|
+
* email-only handles remain in participants but are omitted here.
|
|
38
|
+
*/
|
|
39
|
+
participant_numbers?: Array<string>;
|
|
40
|
+
participants?: Array<Data.Participant>;
|
|
41
|
+
updated_at?: string;
|
|
42
|
+
/**
|
|
43
|
+
* Worker-local iMessage group identifier when known
|
|
44
|
+
*/
|
|
45
|
+
worker_group_id?: string | null;
|
|
46
|
+
}
|
|
47
|
+
namespace Data {
|
|
48
|
+
interface Participant {
|
|
49
|
+
/**
|
|
50
|
+
* Contact ID when this participant is linked to a contact
|
|
51
|
+
*/
|
|
52
|
+
contact_id?: string | null;
|
|
53
|
+
/**
|
|
54
|
+
* Raw participant handle, usually an E.164 phone number but sometimes an iMessage
|
|
55
|
+
* email handle
|
|
56
|
+
*/
|
|
57
|
+
handle?: string | null;
|
|
58
|
+
/**
|
|
59
|
+
* Contact or seat display name when available
|
|
60
|
+
*/
|
|
61
|
+
name?: string | null;
|
|
62
|
+
/**
|
|
63
|
+
* Unique participant row identifier
|
|
64
|
+
*/
|
|
65
|
+
participant_id?: string;
|
|
66
|
+
/**
|
|
67
|
+
* Resolved participant phone number, preferring the stored group phone handle and
|
|
68
|
+
* falling back to contact phone. Email handles remain available in handle.
|
|
69
|
+
*/
|
|
70
|
+
phone?: string | null;
|
|
71
|
+
/**
|
|
72
|
+
* Seat ID when this participant is a team member
|
|
73
|
+
*/
|
|
74
|
+
seat_id?: string | null;
|
|
75
|
+
/**
|
|
76
|
+
* Participant kind
|
|
77
|
+
*/
|
|
78
|
+
type?: 'contact' | 'seat';
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
export declare namespace Groups {
|
|
83
|
+
export { type GroupRetrieveResponse as GroupRetrieveResponse };
|
|
84
|
+
export { Verify as Verify };
|
|
85
|
+
}
|
|
86
|
+
//# sourceMappingURL=groups.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"groups.d.mts","sourceRoot":"","sources":["../../../src/resources/v2/groups/groups.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,mCAA+B;AACrD,OAAO,KAAK,SAAS,4BAAwB;AAC7C,OAAO,EAAE,MAAM,EAAE,4BAAwB;AACzC,OAAO,EAAE,UAAU,EAAE,sCAAkC;AACvD,OAAO,EAAE,cAAc,EAAE,8CAA0C;AAGnE;;GAEG;AACH,qBAAa,MAAO,SAAQ,WAAW;IACrC,MAAM,EAAE,SAAS,CAAC,MAAM,CAAsC;IAE9D;;;;;;;;;;OAUG;IACH,QAAQ,CAAC,OAAO,EA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E,KAAK,qBAAqB,IAAI,qBAAqB,EAAE,CAAC;IAE/D,OAAO,EAAE,MAAM,IAAI,MAAM,EAAE,CAAC;CAC7B"}
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import { APIResource } from "../../../core/resource.js";
|
|
2
|
+
import * as VerifyAPI from "./verify/verify.js";
|
|
3
|
+
import { Verify } from "./verify/verify.js";
|
|
4
|
+
import { APIPromise } from "../../../core/api-promise.js";
|
|
5
|
+
import { RequestOptions } from "../../../internal/request-options.js";
|
|
6
|
+
/**
|
|
7
|
+
* Operations for group messaging (beta)
|
|
8
|
+
*/
|
|
9
|
+
export declare class Groups extends APIResource {
|
|
10
|
+
verify: VerifyAPI.Verify;
|
|
11
|
+
/**
|
|
12
|
+
* Retrieve the current complete membership for a group owned by the authenticated
|
|
13
|
+
* account.
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* ```ts
|
|
17
|
+
* const group = await client.v2.groups.retrieve(
|
|
18
|
+
* 'sb_group_608acc54-d0d7-4b41-8092-9ff6e1e70455',
|
|
19
|
+
* );
|
|
20
|
+
* ```
|
|
21
|
+
*/
|
|
22
|
+
retrieve(groupID: string, options?: RequestOptions): APIPromise<GroupRetrieveResponse>;
|
|
23
|
+
}
|
|
24
|
+
export interface GroupRetrieveResponse {
|
|
25
|
+
data?: GroupRetrieveResponse.Data;
|
|
26
|
+
status?: string;
|
|
27
|
+
}
|
|
28
|
+
export declare namespace GroupRetrieveResponse {
|
|
29
|
+
interface Data {
|
|
30
|
+
created_at?: string;
|
|
31
|
+
group_id?: string;
|
|
32
|
+
group_name?: string;
|
|
33
|
+
latest_comm_at?: string | null;
|
|
34
|
+
latest_message_id?: string | null;
|
|
35
|
+
/**
|
|
36
|
+
* Convenience list of resolved participant phone numbers. Participants with
|
|
37
|
+
* email-only handles remain in participants but are omitted here.
|
|
38
|
+
*/
|
|
39
|
+
participant_numbers?: Array<string>;
|
|
40
|
+
participants?: Array<Data.Participant>;
|
|
41
|
+
updated_at?: string;
|
|
42
|
+
/**
|
|
43
|
+
* Worker-local iMessage group identifier when known
|
|
44
|
+
*/
|
|
45
|
+
worker_group_id?: string | null;
|
|
46
|
+
}
|
|
47
|
+
namespace Data {
|
|
48
|
+
interface Participant {
|
|
49
|
+
/**
|
|
50
|
+
* Contact ID when this participant is linked to a contact
|
|
51
|
+
*/
|
|
52
|
+
contact_id?: string | null;
|
|
53
|
+
/**
|
|
54
|
+
* Raw participant handle, usually an E.164 phone number but sometimes an iMessage
|
|
55
|
+
* email handle
|
|
56
|
+
*/
|
|
57
|
+
handle?: string | null;
|
|
58
|
+
/**
|
|
59
|
+
* Contact or seat display name when available
|
|
60
|
+
*/
|
|
61
|
+
name?: string | null;
|
|
62
|
+
/**
|
|
63
|
+
* Unique participant row identifier
|
|
64
|
+
*/
|
|
65
|
+
participant_id?: string;
|
|
66
|
+
/**
|
|
67
|
+
* Resolved participant phone number, preferring the stored group phone handle and
|
|
68
|
+
* falling back to contact phone. Email handles remain available in handle.
|
|
69
|
+
*/
|
|
70
|
+
phone?: string | null;
|
|
71
|
+
/**
|
|
72
|
+
* Seat ID when this participant is a team member
|
|
73
|
+
*/
|
|
74
|
+
seat_id?: string | null;
|
|
75
|
+
/**
|
|
76
|
+
* Participant kind
|
|
77
|
+
*/
|
|
78
|
+
type?: 'contact' | 'seat';
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
export declare namespace Groups {
|
|
83
|
+
export { type GroupRetrieveResponse as GroupRetrieveResponse };
|
|
84
|
+
export { Verify as Verify };
|
|
85
|
+
}
|
|
86
|
+
//# sourceMappingURL=groups.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"groups.d.ts","sourceRoot":"","sources":["../../../src/resources/v2/groups/groups.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,kCAA+B;AACrD,OAAO,KAAK,SAAS,2BAAwB;AAC7C,OAAO,EAAE,MAAM,EAA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,EAAE,MAAM,GAAG,IAAI,CAAC;YAEtB;;eAEG;YACH,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;YAExB;;eAEG;YACH,IAAI,CAAC,EAAE,SAAS,GAAG,MAAM,CAAC;SAC3B;KACF;CACF;AAID,MAAM,CAAC,OAAO,WAAW,MAAM,CAAC;IAC9B,OAAO,EAAE,KAAK,qBAAqB,IAAI,qBAAqB,EAAE,CAAC;IAE/D,OAAO,EAAE,MAAM,IAAI,MAAM,EAAE,CAAC;CAC7B"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.Groups = void 0;
|
|
5
|
+
const tslib_1 = require("../../../internal/tslib.js");
|
|
6
|
+
const resource_1 = require("../../../core/resource.js");
|
|
7
|
+
const VerifyAPI = tslib_1.__importStar(require("./verify/verify.js"));
|
|
8
|
+
const verify_1 = require("./verify/verify.js");
|
|
9
|
+
const path_1 = require("../../../internal/utils/path.js");
|
|
10
|
+
/**
|
|
11
|
+
* Operations for group messaging (beta)
|
|
12
|
+
*/
|
|
13
|
+
class Groups extends resource_1.APIResource {
|
|
14
|
+
constructor() {
|
|
15
|
+
super(...arguments);
|
|
16
|
+
this.verify = new VerifyAPI.Verify(this._client);
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Retrieve the current complete membership for a group owned by the authenticated
|
|
20
|
+
* account.
|
|
21
|
+
*
|
|
22
|
+
* @example
|
|
23
|
+
* ```ts
|
|
24
|
+
* const group = await client.v2.groups.retrieve(
|
|
25
|
+
* 'sb_group_608acc54-d0d7-4b41-8092-9ff6e1e70455',
|
|
26
|
+
* );
|
|
27
|
+
* ```
|
|
28
|
+
*/
|
|
29
|
+
retrieve(groupID, options) {
|
|
30
|
+
return this._client.get((0, path_1.path) `/api/v2/groups/${groupID}`, options);
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
exports.Groups = Groups;
|
|
34
|
+
Groups.Verify = verify_1.Verify;
|
|
35
|
+
//# sourceMappingURL=groups.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"groups.js","sourceRoot":"","sources":["../../../src/resources/v2/groups/groups.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,wDAAqD;AACrD,sEAA6C;AAC7C,+CAAyC;AAGzC,0DAAoD;AAEpD;;GAEG;AACH,MAAa,MAAO,SAAQ,sBAAW;IAAvC;;QACE,WAAM,GAAqB,IAAI,SAAS,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAgBhE,CAAC;IAdC;;;;;;;;;;OAUG;IACH,QAAQ,CAAC,OAAe,EAAE,OAAwB;QAChD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,kBAAkB,OAAO,EAAE,EAAE,OAAO,CAAC,CAAC;IACpE,CAAC;CACF;AAjBD,wBAiBC;AA8ED,MAAM,CAAC,MAAM,GAAG,eAAM,CAAC"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { APIResource } from "../../../core/resource.mjs";
|
|
3
|
+
import * as VerifyAPI from "./verify/verify.mjs";
|
|
4
|
+
import { Verify } from "./verify/verify.mjs";
|
|
5
|
+
import { path } from "../../../internal/utils/path.mjs";
|
|
6
|
+
/**
|
|
7
|
+
* Operations for group messaging (beta)
|
|
8
|
+
*/
|
|
9
|
+
export class Groups extends APIResource {
|
|
10
|
+
constructor() {
|
|
11
|
+
super(...arguments);
|
|
12
|
+
this.verify = new VerifyAPI.Verify(this._client);
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Retrieve the current complete membership for a group owned by the authenticated
|
|
16
|
+
* account.
|
|
17
|
+
*
|
|
18
|
+
* @example
|
|
19
|
+
* ```ts
|
|
20
|
+
* const group = await client.v2.groups.retrieve(
|
|
21
|
+
* 'sb_group_608acc54-d0d7-4b41-8092-9ff6e1e70455',
|
|
22
|
+
* );
|
|
23
|
+
* ```
|
|
24
|
+
*/
|
|
25
|
+
retrieve(groupID, options) {
|
|
26
|
+
return this._client.get(path `/api/v2/groups/${groupID}`, options);
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
Groups.Verify = Verify;
|
|
30
|
+
//# sourceMappingURL=groups.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"groups.mjs","sourceRoot":"","sources":["../../../src/resources/v2/groups/groups.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,mCAA+B;AACrD,OAAO,KAAK,SAAS,4BAAwB;AAC7C,OAAO,EAAE,MAAM,EAAE,4BAAwB;AAGzC,OAAO,EAAE,IAAI,EAAE,yCAAqC;AAEpD;;GAEG;AACH,MAAM,OAAO,MAAO,SAAQ,WAAW;IAAvC;;QACE,WAAM,GAAqB,IAAI,SAAS,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAgBhE,CAAC;IAdC;;;;;;;;;;OAUG;IACH,QAAQ,CAAC,OAAe,EAAE,OAAwB;QAChD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,kBAAkB,OAAO,EAAE,EAAE,OAAO,CAAC,CAAC;IACpE,CAAC;CACF;AA8ED,MAAM,CAAC,MAAM,GAAG,MAAM,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../src/resources/v2/groups/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,MAAM,EAAE,KAAK,qBAAqB,EAAE,qBAAiB;AAC9D,OAAO,EAAE,MAAM,EAAE,2BAAuB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/resources/v2/groups/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,MAAM,EAAE,KAAK,qBAAqB,EAAE,oBAAiB;AAC9D,OAAO,EAAE,MAAM,EAAE,0BAAuB"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.Verify = exports.Groups = void 0;
|
|
5
|
+
var groups_1 = require("./groups.js");
|
|
6
|
+
Object.defineProperty(exports, "Groups", { enumerable: true, get: function () { return groups_1.Groups; } });
|
|
7
|
+
var index_1 = require("./verify/index.js");
|
|
8
|
+
Object.defineProperty(exports, "Verify", { enumerable: true, get: function () { return index_1.Verify; } });
|
|
9
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/resources/v2/groups/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,sCAA8D;AAArD,gGAAA,MAAM,OAAA;AACf,2CAAwC;AAA/B,+FAAA,MAAM,OAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../src/resources/v2/groups/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,MAAM,EAA8B,qBAAiB;AAC9D,OAAO,EAAE,MAAM,EAAE,2BAAuB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../../src/resources/v2/groups/verify/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,QAAQ,EAAE,6BAAyB;AAC5C,OAAO,EAAE,MAAM,EAAE,qBAAiB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/resources/v2/groups/verify/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,QAAQ,EAAE,4BAAyB;AAC5C,OAAO,EAAE,MAAM,EAAE,oBAAiB"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.Verify = exports.Services = void 0;
|
|
5
|
+
var index_1 = require("./services/index.js");
|
|
6
|
+
Object.defineProperty(exports, "Services", { enumerable: true, get: function () { return index_1.Services; } });
|
|
7
|
+
var verify_1 = require("./verify.js");
|
|
8
|
+
Object.defineProperty(exports, "Verify", { enumerable: true, get: function () { return verify_1.Verify; } });
|
|
9
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/resources/v2/groups/verify/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,6CAA4C;AAAnC,iGAAA,QAAQ,OAAA;AACjB,sCAAkC;AAAzB,gGAAA,MAAM,OAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../../src/resources/v2/groups/verify/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,QAAQ,EAAE,6BAAyB;AAC5C,OAAO,EAAE,MAAM,EAAE,qBAAiB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../../../src/resources/v2/groups/verify/services/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,QAAQ,EAAE,uBAAmB;AACtC,OAAO,EACL,aAAa,EACb,KAAK,0BAA0B,EAC/B,KAAK,4BAA4B,EACjC,KAAK,wBAAwB,EAC7B,KAAK,0BAA0B,GAChC,4BAAwB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/resources/v2/groups/verify/services/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,QAAQ,EAAE,sBAAmB;AACtC,OAAO,EACL,aAAa,EACb,KAAK,0BAA0B,EAC/B,KAAK,4BAA4B,EACjC,KAAK,wBAAwB,EAC7B,KAAK,0BAA0B,GAChC,2BAAwB"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.Verifications = exports.Services = void 0;
|
|
5
|
+
var services_1 = require("./services.js");
|
|
6
|
+
Object.defineProperty(exports, "Services", { enumerable: true, get: function () { return services_1.Services; } });
|
|
7
|
+
var verifications_1 = require("./verifications.js");
|
|
8
|
+
Object.defineProperty(exports, "Verifications", { enumerable: true, get: function () { return verifications_1.Verifications; } });
|
|
9
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/resources/v2/groups/verify/services/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,0CAAsC;AAA7B,oGAAA,QAAQ,OAAA;AACjB,oDAMyB;AALvB,8GAAA,aAAa,OAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../../../src/resources/v2/groups/verify/services/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,QAAQ,EAAE,uBAAmB;AACtC,OAAO,EACL,aAAa,GAKd,4BAAwB"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { APIResource } from "../../../../../core/resource.mjs";
|
|
2
|
+
import * as VerificationsAPI from "./verifications.mjs";
|
|
3
|
+
import { VerificationCreateParams, VerificationCreateResponse, VerificationRetrieveParams, VerificationRetrieveResponse, Verifications } from "./verifications.mjs";
|
|
4
|
+
export declare class Services extends APIResource {
|
|
5
|
+
verifications: VerificationsAPI.Verifications;
|
|
6
|
+
}
|
|
7
|
+
export declare namespace Services {
|
|
8
|
+
export { Verifications as Verifications, type VerificationCreateResponse as VerificationCreateResponse, type VerificationRetrieveResponse as VerificationRetrieveResponse, type VerificationCreateParams as VerificationCreateParams, type VerificationRetrieveParams as VerificationRetrieveParams, };
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=services.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"services.d.mts","sourceRoot":"","sources":["../../../../../src/resources/v2/groups/verify/services/services.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,yCAAqC;AAC3D,OAAO,KAAK,gBAAgB,4BAAwB;AACpD,OAAO,EACL,wBAAwB,EACxB,0BAA0B,EAC1B,0BAA0B,EAC1B,4BAA4B,EAC5B,aAAa,EACd,4BAAwB;AAEzB,qBAAa,QAAS,SAAQ,WAAW;IACvC,aAAa,EAAE,gBAAgB,CAAC,aAAa,CAAoD;CAClG;AAID,MAAM,CAAC,OAAO,WAAW,QAAQ,CAAC;IAChC,OAAO,EACL,aAAa,IAAI,aAAa,EAC9B,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,0BAA0B,IAAI,0BAA0B,GAC9D,CAAC;CACH"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { APIResource } from "../../../../../core/resource.js";
|
|
2
|
+
import * as VerificationsAPI from "./verifications.js";
|
|
3
|
+
import { VerificationCreateParams, VerificationCreateResponse, VerificationRetrieveParams, VerificationRetrieveResponse, Verifications } from "./verifications.js";
|
|
4
|
+
export declare class Services extends APIResource {
|
|
5
|
+
verifications: VerificationsAPI.Verifications;
|
|
6
|
+
}
|
|
7
|
+
export declare namespace Services {
|
|
8
|
+
export { Verifications as Verifications, type VerificationCreateResponse as VerificationCreateResponse, type VerificationRetrieveResponse as VerificationRetrieveResponse, type VerificationCreateParams as VerificationCreateParams, type VerificationRetrieveParams as VerificationRetrieveParams, };
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=services.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"services.d.ts","sourceRoot":"","sources":["../../../../../src/resources/v2/groups/verify/services/services.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,wCAAqC;AAC3D,OAAO,KAAK,gBAAgB,2BAAwB;AACpD,OAAO,EACL,wBAAwB,EACxB,0BAA0B,EAC1B,0BAA0B,EAC1B,4BAA4B,EAC5B,aAAa,EACd,2BAAwB;AAEzB,qBAAa,QAAS,SAAQ,WAAW;IACvC,aAAa,EAAE,gBAAgB,CAAC,aAAa,CAAoD;CAClG;AAID,MAAM,CAAC,OAAO,WAAW,QAAQ,CAAC;IAChC,OAAO,EACL,aAAa,IAAI,aAAa,EAC9B,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,0BAA0B,IAAI,0BAA0B,GAC9D,CAAC;CACH"}
|