sendblue 3.12.0 → 3.13.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.
Files changed (138) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/package.json +1 -1
  3. package/resources/v2/groups/groups.d.mts +86 -0
  4. package/resources/v2/groups/groups.d.mts.map +1 -0
  5. package/resources/v2/groups/groups.d.ts +86 -0
  6. package/resources/v2/groups/groups.d.ts.map +1 -0
  7. package/resources/v2/groups/groups.js +35 -0
  8. package/resources/v2/groups/groups.js.map +1 -0
  9. package/resources/v2/groups/groups.mjs +30 -0
  10. package/resources/v2/groups/groups.mjs.map +1 -0
  11. package/resources/v2/groups/index.d.mts +3 -0
  12. package/resources/v2/groups/index.d.mts.map +1 -0
  13. package/resources/v2/groups/index.d.ts +3 -0
  14. package/resources/v2/groups/index.d.ts.map +1 -0
  15. package/resources/v2/groups/index.js +9 -0
  16. package/resources/v2/groups/index.js.map +1 -0
  17. package/resources/v2/groups/index.mjs +4 -0
  18. package/resources/v2/groups/index.mjs.map +1 -0
  19. package/resources/v2/groups/verify/index.d.mts +3 -0
  20. package/resources/v2/groups/verify/index.d.mts.map +1 -0
  21. package/resources/v2/groups/verify/index.d.ts +3 -0
  22. package/resources/v2/groups/verify/index.d.ts.map +1 -0
  23. package/resources/v2/groups/verify/index.js +9 -0
  24. package/resources/v2/groups/verify/index.js.map +1 -0
  25. package/resources/v2/groups/verify/index.mjs +4 -0
  26. package/resources/v2/groups/verify/index.mjs.map +1 -0
  27. package/resources/v2/groups/verify/services/index.d.mts +3 -0
  28. package/resources/v2/groups/verify/services/index.d.mts.map +1 -0
  29. package/resources/v2/groups/verify/services/index.d.ts +3 -0
  30. package/resources/v2/groups/verify/services/index.d.ts.map +1 -0
  31. package/resources/v2/groups/verify/services/index.js +9 -0
  32. package/resources/v2/groups/verify/services/index.js.map +1 -0
  33. package/resources/v2/groups/verify/services/index.mjs +4 -0
  34. package/resources/v2/groups/verify/services/index.mjs.map +1 -0
  35. package/resources/v2/groups/verify/services/services.d.mts +10 -0
  36. package/resources/v2/groups/verify/services/services.d.mts.map +1 -0
  37. package/resources/v2/groups/verify/services/services.d.ts +10 -0
  38. package/resources/v2/groups/verify/services/services.d.ts.map +1 -0
  39. package/resources/v2/groups/verify/services/services.js +17 -0
  40. package/resources/v2/groups/verify/services/services.js.map +1 -0
  41. package/resources/v2/groups/verify/services/services.mjs +12 -0
  42. package/resources/v2/groups/verify/services/services.mjs.map +1 -0
  43. package/resources/v2/groups/verify/services/verifications.d.mts +145 -0
  44. package/resources/v2/groups/verify/services/verifications.d.mts.map +1 -0
  45. package/resources/v2/groups/verify/services/verifications.d.ts +145 -0
  46. package/resources/v2/groups/verify/services/verifications.d.ts.map +1 -0
  47. package/resources/v2/groups/verify/services/verifications.js +57 -0
  48. package/resources/v2/groups/verify/services/verifications.js.map +1 -0
  49. package/resources/v2/groups/verify/services/verifications.mjs +53 -0
  50. package/resources/v2/groups/verify/services/verifications.mjs.map +1 -0
  51. package/resources/v2/groups/verify/services.d.mts +2 -0
  52. package/resources/v2/groups/verify/services.d.mts.map +1 -0
  53. package/resources/v2/groups/verify/services.d.ts +2 -0
  54. package/resources/v2/groups/verify/services.d.ts.map +1 -0
  55. package/resources/v2/groups/verify/services.js +6 -0
  56. package/resources/v2/groups/verify/services.js.map +1 -0
  57. package/resources/v2/groups/verify/services.mjs +3 -0
  58. package/resources/v2/groups/verify/services.mjs.map +1 -0
  59. package/resources/v2/groups/verify/verify.d.mts +10 -0
  60. package/resources/v2/groups/verify/verify.d.mts.map +1 -0
  61. package/resources/v2/groups/verify/verify.d.ts +10 -0
  62. package/resources/v2/groups/verify/verify.d.ts.map +1 -0
  63. package/resources/v2/groups/verify/verify.js +17 -0
  64. package/resources/v2/groups/verify/verify.js.map +1 -0
  65. package/resources/v2/groups/verify/verify.mjs +12 -0
  66. package/resources/v2/groups/verify/verify.mjs.map +1 -0
  67. package/resources/v2/groups/verify.d.mts +2 -0
  68. package/resources/v2/groups/verify.d.mts.map +1 -0
  69. package/resources/v2/groups/verify.d.ts +2 -0
  70. package/resources/v2/groups/verify.d.ts.map +1 -0
  71. package/resources/v2/groups/verify.js +6 -0
  72. package/resources/v2/groups/verify.js.map +1 -0
  73. package/resources/v2/groups/verify.mjs +3 -0
  74. package/resources/v2/groups/verify.mjs.map +1 -0
  75. package/resources/v2/groups.d.mts +1 -81
  76. package/resources/v2/groups.d.mts.map +1 -1
  77. package/resources/v2/groups.d.ts +1 -81
  78. package/resources/v2/groups.d.ts.map +1 -1
  79. package/resources/v2/groups.js +2 -23
  80. package/resources/v2/groups.js.map +1 -1
  81. package/resources/v2/groups.mjs +1 -21
  82. package/resources/v2/groups.mjs.map +1 -1
  83. package/resources/v2/index.d.mts +1 -1
  84. package/resources/v2/index.d.mts.map +1 -1
  85. package/resources/v2/index.d.ts +1 -1
  86. package/resources/v2/index.d.ts.map +1 -1
  87. package/resources/v2/index.js +4 -4
  88. package/resources/v2/index.js.map +1 -1
  89. package/resources/v2/index.mjs +1 -1
  90. package/resources/v2/index.mjs.map +1 -1
  91. package/resources/v2/v2.d.mts +2 -2
  92. package/resources/v2/v2.d.mts.map +1 -1
  93. package/resources/v2/v2.d.ts +2 -2
  94. package/resources/v2/v2.d.ts.map +1 -1
  95. package/resources/v2/v2.js +2 -2
  96. package/resources/v2/v2.js.map +1 -1
  97. package/resources/v2/v2.mjs +2 -2
  98. package/resources/v2/v2.mjs.map +1 -1
  99. package/resources/verify/index.d.mts +1 -1
  100. package/resources/verify/index.d.mts.map +1 -1
  101. package/resources/verify/index.d.ts +1 -1
  102. package/resources/verify/index.d.ts.map +1 -1
  103. package/resources/verify/index.js.map +1 -1
  104. package/resources/verify/index.mjs.map +1 -1
  105. package/resources/verify/verifications.d.mts +172 -1
  106. package/resources/verify/verifications.d.mts.map +1 -1
  107. package/resources/verify/verifications.d.ts +172 -1
  108. package/resources/verify/verifications.d.ts.map +1 -1
  109. package/resources/verify/verifications.js +51 -0
  110. package/resources/verify/verifications.js.map +1 -1
  111. package/resources/verify/verifications.mjs +51 -0
  112. package/resources/verify/verifications.mjs.map +1 -1
  113. package/resources/verify/verify.d.mts +2 -2
  114. package/resources/verify/verify.d.mts.map +1 -1
  115. package/resources/verify/verify.d.ts +2 -2
  116. package/resources/verify/verify.d.ts.map +1 -1
  117. package/resources/verify/verify.js.map +1 -1
  118. package/resources/verify/verify.mjs.map +1 -1
  119. package/src/resources/v2/groups/groups.ts +114 -0
  120. package/src/resources/v2/groups/index.ts +4 -0
  121. package/src/resources/v2/groups/verify/index.ts +4 -0
  122. package/src/resources/v2/groups/verify/services/index.ts +10 -0
  123. package/src/resources/v2/groups/verify/services/services.ts +27 -0
  124. package/src/resources/v2/groups/verify/services/verifications.ts +201 -0
  125. package/src/resources/v2/groups/verify/services.ts +3 -0
  126. package/src/resources/v2/groups/verify/verify.ts +15 -0
  127. package/src/resources/v2/groups/verify.ts +3 -0
  128. package/src/resources/v2/groups.ts +1 -104
  129. package/src/resources/v2/index.ts +1 -1
  130. package/src/resources/v2/v2.ts +2 -2
  131. package/src/resources/verify/index.ts +6 -0
  132. package/src/resources/verify/verifications.ts +233 -0
  133. package/src/resources/verify/verify.ts +12 -0
  134. package/src/version.ts +1 -1
  135. package/version.d.mts +1 -1
  136. package/version.d.ts +1 -1
  137. package/version.js +1 -1
  138. package/version.mjs +1 -1
@@ -0,0 +1,145 @@
1
+ import { APIResource } from "../../../../../core/resource.js";
2
+ import * as VerificationsAPI from "../../../../verify/verifications.js";
3
+ import { APIPromise } from "../../../../../core/api-promise.js";
4
+ import { RequestOptions } from "../../../../../internal/request-options.js";
5
+ /**
6
+ * Sendblue Verify issuance and recovery state
7
+ */
8
+ export declare class Verifications extends APIResource {
9
+ /**
10
+ * Creates an inverted-OTP verification for the supplied E.164 phone number. The
11
+ * user must send the returned code from that exact phone number to the returned
12
+ * Sendblue destination number.
13
+ *
14
+ * Include `hosted` to create an origin-bound Hosted Verify widget session.
15
+ * Sendblue API credentials must remain on the customer's backend; only the
16
+ * returned `hosted` values may be sent to the browser. Twilio-compatible clients
17
+ * may alternatively send the API Key ID and API Secret Key with HTTP Basic
18
+ * authentication. Temporary bearer authentication is supported for account-scoped
19
+ * tokens; line-scoped temporary tokens cannot create account-wide Verifications.
20
+ *
21
+ * @example
22
+ * ```ts
23
+ * const verification =
24
+ * await client.v2.groups.verify.services.verifications.create(
25
+ * 'SVE1CB97d8EBbDbaAae6d9B1ca0D1cFaAD',
26
+ * { to: '+14155551212' },
27
+ * );
28
+ * ```
29
+ */
30
+ create(serviceSid: string, body: VerificationCreateParams, options?: RequestOptions): APIPromise<VerificationCreateResponse>;
31
+ /**
32
+ * Returns the authoritative status for one Verification owned by the authenticated
33
+ * account. Twilio-compatible clients may send the API Key ID and API Secret Key
34
+ * with HTTP Basic authentication. Temporary bearer authentication is supported for
35
+ * account-scoped tokens; line-scoped temporary tokens cannot retrieve account-wide
36
+ * Verification state.
37
+ *
38
+ * @example
39
+ * ```ts
40
+ * const verification =
41
+ * await client.v2.groups.verify.services.verifications.retrieve(
42
+ * 'VRE1CB97d8EBbDbaAae6d9B1ca0D1cFaAD',
43
+ * { service_sid: 'SVE1CB97d8EBbDbaAae6d9B1ca0D1cFaAD' },
44
+ * );
45
+ * ```
46
+ */
47
+ retrieve(verificationSid: string, params: VerificationRetrieveParams, options?: RequestOptions): APIPromise<VerificationRetrieveResponse>;
48
+ }
49
+ export interface VerificationCreateResponse {
50
+ account_sid: string;
51
+ channel: 'imessage';
52
+ date_created: string;
53
+ date_updated: string;
54
+ /**
55
+ * ISO timestamp when the Verification expires.
56
+ */
57
+ expires_at: string;
58
+ service_sid: string;
59
+ sid: string;
60
+ status: 'pending' | 'approved' | 'expired' | 'canceled';
61
+ /**
62
+ * Expected sender in E.164 format; older durable terminal records may return null.
63
+ */
64
+ to: string | null;
65
+ url: string;
66
+ /**
67
+ * Present while the Verification is pending.
68
+ */
69
+ delivery_target?: VerificationsAPI.DeliveryTarget;
70
+ /**
71
+ * Present only when hosted options were supplied during creation.
72
+ */
73
+ hosted?: VerificationsAPI.HostedVerification;
74
+ }
75
+ export interface VerificationRetrieveResponse {
76
+ account_sid: string;
77
+ channel: 'imessage';
78
+ date_created: string;
79
+ date_updated: string;
80
+ /**
81
+ * ISO timestamp when the Verification expires.
82
+ */
83
+ expires_at: string;
84
+ service_sid: string;
85
+ sid: string;
86
+ status: 'pending' | 'approved' | 'expired' | 'canceled';
87
+ /**
88
+ * Expected sender in E.164 format; older durable terminal records may return null.
89
+ */
90
+ to: string | null;
91
+ url: string;
92
+ /**
93
+ * Present while the Verification is pending.
94
+ */
95
+ delivery_target?: VerificationsAPI.DeliveryTarget;
96
+ }
97
+ export interface VerificationCreateParams {
98
+ /**
99
+ * E.164 phone number that must send the verification message.
100
+ */
101
+ to: string;
102
+ /**
103
+ * Options for an origin-bound Hosted Verify widget session. Nested keys are strict
104
+ * snake_case. `parent_origin` must be an exact HTTPS origin with a DNS hostname.
105
+ * `127.0.0.1` is also accepted, and HTTP is allowed only for `localhost` or
106
+ * `127.0.0.1` development origins. Wildcards and other IP literals are rejected
107
+ * because browsers cannot enforce them as exact CSP `frame-ancestors` sources.
108
+ */
109
+ hosted?: VerificationCreateParams.Hosted;
110
+ }
111
+ export declare namespace VerificationCreateParams {
112
+ /**
113
+ * Options for an origin-bound Hosted Verify widget session. Nested keys are strict
114
+ * snake_case. `parent_origin` must be an exact HTTPS origin with a DNS hostname.
115
+ * `127.0.0.1` is also accepted, and HTTP is allowed only for `localhost` or
116
+ * `127.0.0.1` development origins. Wildcards and other IP literals are rejected
117
+ * because browsers cannot enforce them as exact CSP `frame-ancestors` sources.
118
+ */
119
+ interface Hosted {
120
+ /**
121
+ * Exact website origin allowed to embed the widget, with no path, query, or
122
+ * fragment.
123
+ */
124
+ parent_origin: string;
125
+ /**
126
+ * Six-digit hexadecimal accent color.
127
+ */
128
+ accent_color?: string;
129
+ /**
130
+ * Brand name displayed by the widget. Defaults to Sendblue.
131
+ */
132
+ brand_name?: string;
133
+ theme?: 'light' | 'dark' | 'auto';
134
+ }
135
+ }
136
+ export interface VerificationRetrieveParams {
137
+ /**
138
+ * Verify Service SID.
139
+ */
140
+ service_sid: string;
141
+ }
142
+ export declare namespace Verifications {
143
+ export { type VerificationCreateResponse as VerificationCreateResponse, type VerificationRetrieveResponse as VerificationRetrieveResponse, type VerificationCreateParams as VerificationCreateParams, type VerificationRetrieveParams as VerificationRetrieveParams, };
144
+ }
145
+ //# sourceMappingURL=verifications.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"verifications.d.ts","sourceRoot":"","sources":["../../../../../src/resources/v2/groups/verify/services/verifications.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,wCAAqC;AAC3D,OAAO,KAAK,gBAAgB,4CAAyC;AACrE,OAAO,EAAE,UAAU,EAAE,2CAAwC;AAC7D,OAAO,EAAE,cAAc,EAAE,mDAAgD;AAGzE;;GAEG;AACH,qBAAa,aAAc,SAAQ,WAAW;IAC5C;;;;;;;;;;;;;;;;;;;;OAoBG;IACH,MAAM,CACJ,UAAU,EAAE,MAAM,EAClB,IAAI,EAAE,wBAAwB,EAC9B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,0BAA0B,CAAC;IAIzC;;;;;;;;;;;;;;;OAeG;IACH,QAAQ,CACN,eAAe,EAAE,MAAM,EACvB,MAAM,EAAE,0BAA0B,EAClC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,4BAA4B,CAAC;CAO5C;AAED,MAAM,WAAW,0BAA0B;IACzC,WAAW,EAAE,MAAM,CAAC;IAEpB,OAAO,EAAE,UAAU,CAAC;IAEpB,YAAY,EAAE,MAAM,CAAC;IAErB,YAAY,EAAE,MAAM,CAAC;IAErB;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB,WAAW,EAAE,MAAM,CAAC;IAEpB,GAAG,EAAE,MAAM,CAAC;IAEZ,MAAM,EAAE,SAAS,GAAG,UAAU,GAAG,SAAS,GAAG,UAAU,CAAC;IAExD;;OAEG;IACH,EAAE,EAAE,MAAM,GAAG,IAAI,CAAC;IAElB,GAAG,EAAE,MAAM,CAAC;IAEZ;;OAEG;IACH,eAAe,CAAC,EAAE,gBAAgB,CAAC,cAAc,CAAC;IAElD;;OAEG;IACH,MAAM,CAAC,EAAE,gBAAgB,CAAC,kBAAkB,CAAC;CAC9C;AAED,MAAM,WAAW,4BAA4B;IAC3C,WAAW,EAAE,MAAM,CAAC;IAEpB,OAAO,EAAE,UAAU,CAAC;IAEpB,YAAY,EAAE,MAAM,CAAC;IAErB,YAAY,EAAE,MAAM,CAAC;IAErB;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB,WAAW,EAAE,MAAM,CAAC;IAEpB,GAAG,EAAE,MAAM,CAAC;IAEZ,MAAM,EAAE,SAAS,GAAG,UAAU,GAAG,SAAS,GAAG,UAAU,CAAC;IAExD;;OAEG;IACH,EAAE,EAAE,MAAM,GAAG,IAAI,CAAC;IAElB,GAAG,EAAE,MAAM,CAAC;IAEZ;;OAEG;IACH,eAAe,CAAC,EAAE,gBAAgB,CAAC,cAAc,CAAC;CACnD;AAED,MAAM,WAAW,wBAAwB;IACvC;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;;;;;OAMG;IACH,MAAM,CAAC,EAAE,wBAAwB,CAAC,MAAM,CAAC;CAC1C;AAED,yBAAiB,wBAAwB,CAAC;IACxC;;;;;;OAMG;IACH,UAAiB,MAAM;QACrB;;;WAGG;QACH,aAAa,EAAE,MAAM,CAAC;QAEtB;;WAEG;QACH,YAAY,CAAC,EAAE,MAAM,CAAC;QAEtB;;WAEG;QACH,UAAU,CAAC,EAAE,MAAM,CAAC;QAEpB,KAAK,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,MAAM,CAAC;KACnC;CACF;AAED,MAAM,WAAW,0BAA0B;IACzC;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,CAAC,OAAO,WAAW,aAAa,CAAC;IACrC,OAAO,EACL,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,57 @@
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 = void 0;
5
+ const resource_1 = require("../../../../../core/resource.js");
6
+ const path_1 = require("../../../../../internal/utils/path.js");
7
+ /**
8
+ * Sendblue Verify issuance and recovery state
9
+ */
10
+ class Verifications extends resource_1.APIResource {
11
+ /**
12
+ * Creates an inverted-OTP verification for the supplied E.164 phone number. The
13
+ * user must send the returned code from that exact phone number to the returned
14
+ * Sendblue destination number.
15
+ *
16
+ * Include `hosted` to create an origin-bound Hosted Verify widget session.
17
+ * Sendblue API credentials must remain on the customer's backend; only the
18
+ * returned `hosted` values may be sent to the browser. Twilio-compatible clients
19
+ * may alternatively send the API Key ID and API Secret Key with HTTP Basic
20
+ * authentication. Temporary bearer authentication is supported for account-scoped
21
+ * tokens; line-scoped temporary tokens cannot create account-wide Verifications.
22
+ *
23
+ * @example
24
+ * ```ts
25
+ * const verification =
26
+ * await client.v2.groups.verify.services.verifications.create(
27
+ * 'SVE1CB97d8EBbDbaAae6d9B1ca0D1cFaAD',
28
+ * { to: '+14155551212' },
29
+ * );
30
+ * ```
31
+ */
32
+ create(serviceSid, body, options) {
33
+ return this._client.post((0, path_1.path) `/api/v2/verify/services/${serviceSid}/verifications`, { body, ...options });
34
+ }
35
+ /**
36
+ * Returns the authoritative status for one Verification owned by the authenticated
37
+ * account. Twilio-compatible clients may send the API Key ID and API Secret Key
38
+ * with HTTP Basic authentication. Temporary bearer authentication is supported for
39
+ * account-scoped tokens; line-scoped temporary tokens cannot retrieve account-wide
40
+ * Verification state.
41
+ *
42
+ * @example
43
+ * ```ts
44
+ * const verification =
45
+ * await client.v2.groups.verify.services.verifications.retrieve(
46
+ * 'VRE1CB97d8EBbDbaAae6d9B1ca0D1cFaAD',
47
+ * { service_sid: 'SVE1CB97d8EBbDbaAae6d9B1ca0D1cFaAD' },
48
+ * );
49
+ * ```
50
+ */
51
+ retrieve(verificationSid, params, options) {
52
+ const { service_sid } = params;
53
+ return this._client.get((0, path_1.path) `/api/v2/verify/services/${service_sid}/verifications/${verificationSid}`, options);
54
+ }
55
+ }
56
+ exports.Verifications = Verifications;
57
+ //# sourceMappingURL=verifications.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"verifications.js","sourceRoot":"","sources":["../../../../../src/resources/v2/groups/verify/services/verifications.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,8DAA2D;AAI3D,gEAA0D;AAE1D;;GAEG;AACH,MAAa,aAAc,SAAQ,sBAAW;IAC5C;;;;;;;;;;;;;;;;;;;;OAoBG;IACH,MAAM,CACJ,UAAkB,EAClB,IAA8B,EAC9B,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,2BAA2B,UAAU,gBAAgB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC5G,CAAC;IAED;;;;;;;;;;;;;;;OAeG;IACH,QAAQ,CACN,eAAuB,EACvB,MAAkC,EAClC,OAAwB;QAExB,MAAM,EAAE,WAAW,EAAE,GAAG,MAAM,CAAC;QAC/B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CACrB,IAAA,WAAI,EAAA,2BAA2B,WAAW,kBAAkB,eAAe,EAAE,EAC7E,OAAO,CACR,CAAC;IACJ,CAAC;CACF;AAzDD,sCAyDC"}
@@ -0,0 +1,53 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+ import { APIResource } from "../../../../../core/resource.mjs";
3
+ import { path } from "../../../../../internal/utils/path.mjs";
4
+ /**
5
+ * Sendblue Verify issuance and recovery state
6
+ */
7
+ export class Verifications extends APIResource {
8
+ /**
9
+ * Creates an inverted-OTP verification for the supplied E.164 phone number. The
10
+ * user must send the returned code from that exact phone number to the returned
11
+ * Sendblue destination number.
12
+ *
13
+ * Include `hosted` to create an origin-bound Hosted Verify widget session.
14
+ * Sendblue API credentials must remain on the customer's backend; only the
15
+ * returned `hosted` values may be sent to the browser. Twilio-compatible clients
16
+ * may alternatively send the API Key ID and API Secret Key with HTTP Basic
17
+ * authentication. Temporary bearer authentication is supported for account-scoped
18
+ * tokens; line-scoped temporary tokens cannot create account-wide Verifications.
19
+ *
20
+ * @example
21
+ * ```ts
22
+ * const verification =
23
+ * await client.v2.groups.verify.services.verifications.create(
24
+ * 'SVE1CB97d8EBbDbaAae6d9B1ca0D1cFaAD',
25
+ * { to: '+14155551212' },
26
+ * );
27
+ * ```
28
+ */
29
+ create(serviceSid, body, options) {
30
+ return this._client.post(path `/api/v2/verify/services/${serviceSid}/verifications`, { body, ...options });
31
+ }
32
+ /**
33
+ * Returns the authoritative status for one Verification owned by the authenticated
34
+ * account. Twilio-compatible clients may send the API Key ID and API Secret Key
35
+ * with HTTP Basic authentication. Temporary bearer authentication is supported for
36
+ * account-scoped tokens; line-scoped temporary tokens cannot retrieve account-wide
37
+ * Verification state.
38
+ *
39
+ * @example
40
+ * ```ts
41
+ * const verification =
42
+ * await client.v2.groups.verify.services.verifications.retrieve(
43
+ * 'VRE1CB97d8EBbDbaAae6d9B1ca0D1cFaAD',
44
+ * { service_sid: 'SVE1CB97d8EBbDbaAae6d9B1ca0D1cFaAD' },
45
+ * );
46
+ * ```
47
+ */
48
+ retrieve(verificationSid, params, options) {
49
+ const { service_sid } = params;
50
+ return this._client.get(path `/api/v2/verify/services/${service_sid}/verifications/${verificationSid}`, options);
51
+ }
52
+ }
53
+ //# sourceMappingURL=verifications.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"verifications.mjs","sourceRoot":"","sources":["../../../../../src/resources/v2/groups/verify/services/verifications.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,yCAAqC;AAI3D,OAAO,EAAE,IAAI,EAAE,+CAA2C;AAE1D;;GAEG;AACH,MAAM,OAAO,aAAc,SAAQ,WAAW;IAC5C;;;;;;;;;;;;;;;;;;;;OAoBG;IACH,MAAM,CACJ,UAAkB,EAClB,IAA8B,EAC9B,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,2BAA2B,UAAU,gBAAgB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC5G,CAAC;IAED;;;;;;;;;;;;;;;OAeG;IACH,QAAQ,CACN,eAAuB,EACvB,MAAkC,EAClC,OAAwB;QAExB,MAAM,EAAE,WAAW,EAAE,GAAG,MAAM,CAAC;QAC/B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CACrB,IAAI,CAAA,2BAA2B,WAAW,kBAAkB,eAAe,EAAE,EAC7E,OAAO,CACR,CAAC;IACJ,CAAC;CACF"}
@@ -0,0 +1,2 @@
1
+ export * from "./services/index.mjs";
2
+ //# sourceMappingURL=services.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"services.d.mts","sourceRoot":"","sources":["../../../../src/resources/v2/groups/verify/services.ts"],"names":[],"mappings":"AAEA,qCAAiC"}
@@ -0,0 +1,2 @@
1
+ export * from "./services/index.js";
2
+ //# sourceMappingURL=services.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"services.d.ts","sourceRoot":"","sources":["../../../../src/resources/v2/groups/verify/services.ts"],"names":[],"mappings":"AAEA,oCAAiC"}
@@ -0,0 +1,6 @@
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
+ const tslib_1 = require("../../../../internal/tslib.js");
5
+ tslib_1.__exportStar(require("./services/index.js"), exports);
6
+ //# sourceMappingURL=services.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"services.js","sourceRoot":"","sources":["../../../../src/resources/v2/groups/verify/services.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,8DAAiC"}
@@ -0,0 +1,3 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+ export * from "./services/index.mjs";
3
+ //# sourceMappingURL=services.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"services.mjs","sourceRoot":"","sources":["../../../../src/resources/v2/groups/verify/services.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,qCAAiC"}
@@ -0,0 +1,10 @@
1
+ import { APIResource } from "../../../../core/resource.mjs";
2
+ import * as ServicesAPI from "./services/services.mjs";
3
+ import { Services } from "./services/services.mjs";
4
+ export declare class Verify extends APIResource {
5
+ services: ServicesAPI.Services;
6
+ }
7
+ export declare namespace Verify {
8
+ export { Services as Services };
9
+ }
10
+ //# sourceMappingURL=verify.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"verify.d.mts","sourceRoot":"","sources":["../../../../src/resources/v2/groups/verify/verify.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,sCAAkC;AACxD,OAAO,KAAK,WAAW,gCAA4B;AACnD,OAAO,EAAE,QAAQ,EAAE,gCAA4B;AAE/C,qBAAa,MAAO,SAAQ,WAAW;IACrC,QAAQ,EAAE,WAAW,CAAC,QAAQ,CAA0C;CACzE;AAID,MAAM,CAAC,OAAO,WAAW,MAAM,CAAC;IAC9B,OAAO,EAAE,QAAQ,IAAI,QAAQ,EAAE,CAAC;CACjC"}
@@ -0,0 +1,10 @@
1
+ import { APIResource } from "../../../../core/resource.js";
2
+ import * as ServicesAPI from "./services/services.js";
3
+ import { Services } from "./services/services.js";
4
+ export declare class Verify extends APIResource {
5
+ services: ServicesAPI.Services;
6
+ }
7
+ export declare namespace Verify {
8
+ export { Services as Services };
9
+ }
10
+ //# sourceMappingURL=verify.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"verify.d.ts","sourceRoot":"","sources":["../../../../src/resources/v2/groups/verify/verify.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,qCAAkC;AACxD,OAAO,KAAK,WAAW,+BAA4B;AACnD,OAAO,EAAE,QAAQ,EAAE,+BAA4B;AAE/C,qBAAa,MAAO,SAAQ,WAAW;IACrC,QAAQ,EAAE,WAAW,CAAC,QAAQ,CAA0C;CACzE;AAID,MAAM,CAAC,OAAO,WAAW,MAAM,CAAC;IAC9B,OAAO,EAAE,QAAQ,IAAI,QAAQ,EAAE,CAAC;CACjC"}
@@ -0,0 +1,17 @@
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 = void 0;
5
+ const tslib_1 = require("../../../../internal/tslib.js");
6
+ const resource_1 = require("../../../../core/resource.js");
7
+ const ServicesAPI = tslib_1.__importStar(require("./services/services.js"));
8
+ const services_1 = require("./services/services.js");
9
+ class Verify extends resource_1.APIResource {
10
+ constructor() {
11
+ super(...arguments);
12
+ this.services = new ServicesAPI.Services(this._client);
13
+ }
14
+ }
15
+ exports.Verify = Verify;
16
+ Verify.Services = services_1.Services;
17
+ //# sourceMappingURL=verify.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"verify.js","sourceRoot":"","sources":["../../../../src/resources/v2/groups/verify/verify.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,2DAAwD;AACxD,4EAAmD;AACnD,qDAA+C;AAE/C,MAAa,MAAO,SAAQ,sBAAW;IAAvC;;QACE,aAAQ,GAAyB,IAAI,WAAW,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAC1E,CAAC;CAAA;AAFD,wBAEC;AAED,MAAM,CAAC,QAAQ,GAAG,mBAAQ,CAAC"}
@@ -0,0 +1,12 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+ import { APIResource } from "../../../../core/resource.mjs";
3
+ import * as ServicesAPI from "./services/services.mjs";
4
+ import { Services } from "./services/services.mjs";
5
+ export class Verify extends APIResource {
6
+ constructor() {
7
+ super(...arguments);
8
+ this.services = new ServicesAPI.Services(this._client);
9
+ }
10
+ }
11
+ Verify.Services = Services;
12
+ //# sourceMappingURL=verify.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"verify.mjs","sourceRoot":"","sources":["../../../../src/resources/v2/groups/verify/verify.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,sCAAkC;AACxD,OAAO,KAAK,WAAW,gCAA4B;AACnD,OAAO,EAAE,QAAQ,EAAE,gCAA4B;AAE/C,MAAM,OAAO,MAAO,SAAQ,WAAW;IAAvC;;QACE,aAAQ,GAAyB,IAAI,WAAW,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAC1E,CAAC;CAAA;AAED,MAAM,CAAC,QAAQ,GAAG,QAAQ,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from "./verify/index.mjs";
2
+ //# sourceMappingURL=verify.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"verify.d.mts","sourceRoot":"","sources":["../../../src/resources/v2/groups/verify.ts"],"names":[],"mappings":"AAEA,mCAA+B"}
@@ -0,0 +1,2 @@
1
+ export * from "./verify/index.js";
2
+ //# sourceMappingURL=verify.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"verify.d.ts","sourceRoot":"","sources":["../../../src/resources/v2/groups/verify.ts"],"names":[],"mappings":"AAEA,kCAA+B"}
@@ -0,0 +1,6 @@
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
+ const tslib_1 = require("../../../internal/tslib.js");
5
+ tslib_1.__exportStar(require("./verify/index.js"), exports);
6
+ //# sourceMappingURL=verify.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"verify.js","sourceRoot":"","sources":["../../../src/resources/v2/groups/verify.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,4DAA+B"}
@@ -0,0 +1,3 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+ export * from "./verify/index.mjs";
3
+ //# sourceMappingURL=verify.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"verify.mjs","sourceRoot":"","sources":["../../../src/resources/v2/groups/verify.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,mCAA+B"}
@@ -1,82 +1,2 @@
1
- import { APIResource } from "../../core/resource.mjs";
2
- import { APIPromise } from "../../core/api-promise.mjs";
3
- import { RequestOptions } from "../../internal/request-options.mjs";
4
- /**
5
- * Operations for group messaging (beta)
6
- */
7
- export declare class Groups extends APIResource {
8
- /**
9
- * Retrieve the current complete membership for a group owned by the authenticated
10
- * account.
11
- *
12
- * @example
13
- * ```ts
14
- * const group = await client.v2.groups.retrieve(
15
- * 'sb_group_608acc54-d0d7-4b41-8092-9ff6e1e70455',
16
- * );
17
- * ```
18
- */
19
- retrieve(groupID: string, options?: RequestOptions): APIPromise<GroupRetrieveResponse>;
20
- }
21
- export interface GroupRetrieveResponse {
22
- data?: GroupRetrieveResponse.Data;
23
- status?: string;
24
- }
25
- export declare namespace GroupRetrieveResponse {
26
- interface Data {
27
- created_at?: string;
28
- group_id?: string;
29
- group_name?: string;
30
- latest_comm_at?: string | null;
31
- latest_message_id?: string | null;
32
- /**
33
- * Convenience list of resolved participant phone numbers. Participants with
34
- * email-only handles remain in participants but are omitted here.
35
- */
36
- participant_numbers?: Array<string>;
37
- participants?: Array<Data.Participant>;
38
- updated_at?: string;
39
- /**
40
- * Worker-local iMessage group identifier when known
41
- */
42
- worker_group_id?: string | null;
43
- }
44
- namespace Data {
45
- interface Participant {
46
- /**
47
- * Contact ID when this participant is linked to a contact
48
- */
49
- contact_id?: string | null;
50
- /**
51
- * Raw participant handle, usually an E.164 phone number but sometimes an iMessage
52
- * email handle
53
- */
54
- handle?: string | null;
55
- /**
56
- * Contact or seat display name when available
57
- */
58
- name?: string | null;
59
- /**
60
- * Unique participant row identifier
61
- */
62
- participant_id?: string;
63
- /**
64
- * Resolved participant phone number, preferring the stored group phone handle and
65
- * falling back to contact phone. Email handles remain available in handle.
66
- */
67
- phone?: string | null;
68
- /**
69
- * Seat ID when this participant is a team member
70
- */
71
- seat_id?: string | null;
72
- /**
73
- * Participant kind
74
- */
75
- type?: 'contact' | 'seat';
76
- }
77
- }
78
- }
79
- export declare namespace Groups {
80
- export { type GroupRetrieveResponse as GroupRetrieveResponse };
81
- }
1
+ export * from "./groups/index.mjs";
82
2
  //# sourceMappingURL=groups.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"groups.d.mts","sourceRoot":"","sources":["../../src/resources/v2/groups.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,EAAE,UAAU,EAAE,mCAA+B;AACpD,OAAO,EAAE,cAAc,EAAE,2CAAuC;AAGhE;;GAEG;AACH,qBAAa,MAAO,SAAQ,WAAW;IACrC;;;;;;;;;;OAUG;IACH,QAAQ,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,qBAAqB,CAAC;CAGvF;AAED,MAAM,WAAW,qBAAqB;IACpC,IAAI,CAAC,EAAE,qBAAqB,CAAC,IAAI,CAAC;IAElC,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,yBAAiB,qBAAqB,CAAC;IACrC,UAAiB,IAAI;QACnB,UAAU,CAAC,EAAE,MAAM,CAAC;QAEpB,QAAQ,CAAC,EAAE,MAAM,CAAC;QAElB,UAAU,CAAC,EAAE,MAAM,CAAC;QAEpB,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;QAE/B,iBAAiB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;QAElC;;;WAGG;QACH,mBAAmB,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;QAEpC,YAAY,CAAC,EAAE,KAAK,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;QAEvC,UAAU,CAAC,EAAE,MAAM,CAAC;QAEpB;;WAEG;QACH,eAAe,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;KACjC;IAED,UAAiB,IAAI,CAAC;QACpB,UAAiB,WAAW;YAC1B;;eAEG;YACH,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;YAE3B;;;eAGG;YACH,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;YAEvB;;eAEG;YACH,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;YAErB;;eAEG;YACH,cAAc,CAAC,EAAE,MAAM,CAAC;YAExB;;;eAGG;YACH,KAAK,CAAC,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;AAED,MAAM,CAAC,OAAO,WAAW,MAAM,CAAC;IAC9B,OAAO,EAAE,KAAK,qBAAqB,IAAI,qBAAqB,EAAE,CAAC;CAChE"}
1
+ {"version":3,"file":"groups.d.mts","sourceRoot":"","sources":["../../src/resources/v2/groups.ts"],"names":[],"mappings":"AAEA,mCAA+B"}
@@ -1,82 +1,2 @@
1
- import { APIResource } from "../../core/resource.js";
2
- import { APIPromise } from "../../core/api-promise.js";
3
- import { RequestOptions } from "../../internal/request-options.js";
4
- /**
5
- * Operations for group messaging (beta)
6
- */
7
- export declare class Groups extends APIResource {
8
- /**
9
- * Retrieve the current complete membership for a group owned by the authenticated
10
- * account.
11
- *
12
- * @example
13
- * ```ts
14
- * const group = await client.v2.groups.retrieve(
15
- * 'sb_group_608acc54-d0d7-4b41-8092-9ff6e1e70455',
16
- * );
17
- * ```
18
- */
19
- retrieve(groupID: string, options?: RequestOptions): APIPromise<GroupRetrieveResponse>;
20
- }
21
- export interface GroupRetrieveResponse {
22
- data?: GroupRetrieveResponse.Data;
23
- status?: string;
24
- }
25
- export declare namespace GroupRetrieveResponse {
26
- interface Data {
27
- created_at?: string;
28
- group_id?: string;
29
- group_name?: string;
30
- latest_comm_at?: string | null;
31
- latest_message_id?: string | null;
32
- /**
33
- * Convenience list of resolved participant phone numbers. Participants with
34
- * email-only handles remain in participants but are omitted here.
35
- */
36
- participant_numbers?: Array<string>;
37
- participants?: Array<Data.Participant>;
38
- updated_at?: string;
39
- /**
40
- * Worker-local iMessage group identifier when known
41
- */
42
- worker_group_id?: string | null;
43
- }
44
- namespace Data {
45
- interface Participant {
46
- /**
47
- * Contact ID when this participant is linked to a contact
48
- */
49
- contact_id?: string | null;
50
- /**
51
- * Raw participant handle, usually an E.164 phone number but sometimes an iMessage
52
- * email handle
53
- */
54
- handle?: string | null;
55
- /**
56
- * Contact or seat display name when available
57
- */
58
- name?: string | null;
59
- /**
60
- * Unique participant row identifier
61
- */
62
- participant_id?: string;
63
- /**
64
- * Resolved participant phone number, preferring the stored group phone handle and
65
- * falling back to contact phone. Email handles remain available in handle.
66
- */
67
- phone?: string | null;
68
- /**
69
- * Seat ID when this participant is a team member
70
- */
71
- seat_id?: string | null;
72
- /**
73
- * Participant kind
74
- */
75
- type?: 'contact' | 'seat';
76
- }
77
- }
78
- }
79
- export declare namespace Groups {
80
- export { type GroupRetrieveResponse as GroupRetrieveResponse };
81
- }
1
+ export * from "./groups/index.js";
82
2
  //# sourceMappingURL=groups.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"groups.d.ts","sourceRoot":"","sources":["../../src/resources/v2/groups.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,EAAE,UAAU,EAAE,kCAA+B;AACpD,OAAO,EAAE,cAAc,EAAE,0CAAuC;AAGhE;;GAEG;AACH,qBAAa,MAAO,SAAQ,WAAW;IACrC;;;;;;;;;;OAUG;IACH,QAAQ,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,qBAAqB,CAAC;CAGvF;AAED,MAAM,WAAW,qBAAqB;IACpC,IAAI,CAAC,EAAE,qBAAqB,CAAC,IAAI,CAAC;IAElC,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,yBAAiB,qBAAqB,CAAC;IACrC,UAAiB,IAAI;QACnB,UAAU,CAAC,EAAE,MAAM,CAAC;QAEpB,QAAQ,CAAC,EAAE,MAAM,CAAC;QAElB,UAAU,CAAC,EAAE,MAAM,CAAC;QAEpB,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;QAE/B,iBAAiB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;QAElC;;;WAGG;QACH,mBAAmB,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;QAEpC,YAAY,CAAC,EAAE,KAAK,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;QAEvC,UAAU,CAAC,EAAE,MAAM,CAAC;QAEpB;;WAEG;QACH,eAAe,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;KACjC;IAED,UAAiB,IAAI,CAAC;QACpB,UAAiB,WAAW;YAC1B;;eAEG;YACH,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;YAE3B;;;eAGG;YACH,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;YAEvB;;eAEG;YACH,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;YAErB;;eAEG;YACH,cAAc,CAAC,EAAE,MAAM,CAAC;YAExB;;;eAGG;YACH,KAAK,CAAC,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;AAED,MAAM,CAAC,OAAO,WAAW,MAAM,CAAC;IAC9B,OAAO,EAAE,KAAK,qBAAqB,IAAI,qBAAqB,EAAE,CAAC;CAChE"}
1
+ {"version":3,"file":"groups.d.ts","sourceRoot":"","sources":["../../src/resources/v2/groups.ts"],"names":[],"mappings":"AAEA,kCAA+B"}
@@ -1,27 +1,6 @@
1
1
  "use strict";
2
2
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.Groups = void 0;
5
- const resource_1 = require("../../core/resource.js");
6
- const path_1 = require("../../internal/utils/path.js");
7
- /**
8
- * Operations for group messaging (beta)
9
- */
10
- class Groups extends resource_1.APIResource {
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, options) {
23
- return this._client.get((0, path_1.path) `/api/v2/groups/${groupID}`, options);
24
- }
25
- }
26
- exports.Groups = Groups;
4
+ const tslib_1 = require("../../internal/tslib.js");
5
+ tslib_1.__exportStar(require("./groups/index.js"), exports);
27
6
  //# sourceMappingURL=groups.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"groups.js","sourceRoot":"","sources":["../../src/resources/v2/groups.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAGlD,uDAAiD;AAEjD;;GAEG;AACH,MAAa,MAAO,SAAQ,sBAAW;IACrC;;;;;;;;;;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;AAfD,wBAeC"}
1
+ {"version":3,"file":"groups.js","sourceRoot":"","sources":["../../src/resources/v2/groups.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,4DAA+B"}