sendblue 3.15.0 → 3.16.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 (217) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/client.d.mts +1 -1
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +1 -1
  5. package/client.d.ts.map +1 -1
  6. package/client.js +1 -1
  7. package/client.js.map +1 -1
  8. package/client.mjs +1 -1
  9. package/client.mjs.map +1 -1
  10. package/package.json +1 -1
  11. package/resources/groups.d.mts +1 -1
  12. package/resources/groups.d.mts.map +1 -1
  13. package/resources/groups.d.ts +1 -1
  14. package/resources/groups.d.ts.map +1 -1
  15. package/resources/index.d.mts +1 -1
  16. package/resources/index.d.mts.map +1 -1
  17. package/resources/index.d.ts +1 -1
  18. package/resources/index.d.ts.map +1 -1
  19. package/resources/index.js +1 -1
  20. package/resources/index.js.map +1 -1
  21. package/resources/index.mjs +1 -1
  22. package/resources/index.mjs.map +1 -1
  23. package/resources/messages/index.d.mts +3 -0
  24. package/resources/messages/index.d.mts.map +1 -0
  25. package/resources/messages/index.d.ts +3 -0
  26. package/resources/messages/index.d.ts.map +1 -0
  27. package/resources/messages/index.js +9 -0
  28. package/resources/messages/index.js.map +1 -0
  29. package/resources/messages/index.mjs +4 -0
  30. package/resources/messages/index.mjs.map +1 -0
  31. package/resources/messages/messages.d.mts +1071 -0
  32. package/resources/messages/messages.d.mts.map +1 -0
  33. package/resources/messages/messages.d.ts +1071 -0
  34. package/resources/messages/messages.d.ts.map +1 -0
  35. package/resources/messages/messages.js +105 -0
  36. package/resources/messages/messages.js.map +1 -0
  37. package/resources/messages/messages.mjs +100 -0
  38. package/resources/messages/messages.mjs.map +1 -0
  39. package/resources/messages/v2/index.d.mts +3 -0
  40. package/resources/messages/v2/index.d.mts.map +1 -0
  41. package/resources/messages/v2/index.d.ts +3 -0
  42. package/resources/messages/v2/index.d.ts.map +1 -0
  43. package/resources/{v2/groups → messages/v2}/index.js +3 -3
  44. package/resources/messages/v2/index.js.map +1 -0
  45. package/resources/{v2/groups → messages/v2}/index.mjs +1 -1
  46. package/resources/messages/v2/index.mjs.map +1 -0
  47. package/resources/messages/v2/v2.d.mts +10 -0
  48. package/resources/messages/v2/v2.d.mts.map +1 -0
  49. package/resources/messages/v2/v2.d.ts +10 -0
  50. package/resources/messages/v2/v2.d.ts.map +1 -0
  51. package/resources/messages/v2/v2.js +17 -0
  52. package/resources/messages/v2/v2.js.map +1 -0
  53. package/resources/messages/v2/v2.mjs +12 -0
  54. package/resources/messages/v2/v2.mjs.map +1 -0
  55. package/resources/messages/v2/verify/index.d.mts.map +1 -0
  56. package/resources/messages/v2/verify/index.d.ts.map +1 -0
  57. package/resources/messages/v2/verify/index.js.map +1 -0
  58. package/resources/messages/v2/verify/index.mjs.map +1 -0
  59. package/resources/messages/v2/verify/services/index.d.mts.map +1 -0
  60. package/resources/messages/v2/verify/services/index.d.ts.map +1 -0
  61. package/resources/messages/v2/verify/services/index.js.map +1 -0
  62. package/resources/messages/v2/verify/services/index.mjs.map +1 -0
  63. package/resources/messages/v2/verify/services/services.d.mts.map +1 -0
  64. package/resources/messages/v2/verify/services/services.d.ts.map +1 -0
  65. package/resources/messages/v2/verify/services/services.js.map +1 -0
  66. package/resources/messages/v2/verify/services/services.mjs.map +1 -0
  67. package/resources/{v2/groups → messages/v2}/verify/services/verifications.d.mts +2 -2
  68. package/resources/messages/v2/verify/services/verifications.d.mts.map +1 -0
  69. package/resources/{v2/groups → messages/v2}/verify/services/verifications.d.ts +2 -2
  70. package/resources/messages/v2/verify/services/verifications.d.ts.map +1 -0
  71. package/resources/{v2/groups → messages/v2}/verify/services/verifications.js +2 -2
  72. package/resources/messages/v2/verify/services/verifications.js.map +1 -0
  73. package/resources/{v2/groups → messages/v2}/verify/services/verifications.mjs +2 -2
  74. package/resources/messages/v2/verify/services/verifications.mjs.map +1 -0
  75. package/resources/messages/v2/verify/services.d.mts.map +1 -0
  76. package/resources/messages/v2/verify/services.d.ts.map +1 -0
  77. package/resources/messages/v2/verify/services.js.map +1 -0
  78. package/resources/messages/v2/verify/services.mjs.map +1 -0
  79. package/resources/messages/v2/verify/verify.d.mts.map +1 -0
  80. package/resources/messages/v2/verify/verify.d.ts.map +1 -0
  81. package/resources/messages/v2/verify/verify.js.map +1 -0
  82. package/resources/messages/v2/verify/verify.mjs.map +1 -0
  83. package/resources/messages/v2/verify.d.mts.map +1 -0
  84. package/resources/messages/v2/verify.d.ts.map +1 -0
  85. package/resources/messages/v2/verify.js.map +1 -0
  86. package/resources/messages/v2/verify.mjs.map +1 -0
  87. package/resources/messages/v2.d.mts +2 -0
  88. package/resources/messages/v2.d.mts.map +1 -0
  89. package/resources/messages/v2.d.ts +2 -0
  90. package/resources/messages/v2.d.ts.map +1 -0
  91. package/resources/messages/v2.js +6 -0
  92. package/resources/messages/v2.js.map +1 -0
  93. package/resources/messages/v2.mjs +3 -0
  94. package/resources/messages/v2.mjs.map +1 -0
  95. package/resources/messages.d.mts +1 -1066
  96. package/resources/messages.d.mts.map +1 -1
  97. package/resources/messages.d.ts +1 -1066
  98. package/resources/messages.d.ts.map +1 -1
  99. package/resources/messages.js +2 -93
  100. package/resources/messages.js.map +1 -1
  101. package/resources/messages.mjs +1 -91
  102. package/resources/messages.mjs.map +1 -1
  103. package/resources/v2/groups.d.mts +119 -1
  104. package/resources/v2/groups.d.mts.map +1 -1
  105. package/resources/v2/groups.d.ts +119 -1
  106. package/resources/v2/groups.d.ts.map +1 -1
  107. package/resources/v2/groups.js +43 -2
  108. package/resources/v2/groups.js.map +1 -1
  109. package/resources/v2/groups.mjs +41 -1
  110. package/resources/v2/groups.mjs.map +1 -1
  111. package/resources/v2/index.d.mts +1 -1
  112. package/resources/v2/index.d.mts.map +1 -1
  113. package/resources/v2/index.d.ts +1 -1
  114. package/resources/v2/index.d.ts.map +1 -1
  115. package/resources/v2/index.js +4 -4
  116. package/resources/v2/index.js.map +1 -1
  117. package/resources/v2/index.mjs +1 -1
  118. package/resources/v2/index.mjs.map +1 -1
  119. package/resources/v2/v2.d.mts +3 -3
  120. package/resources/v2/v2.d.mts.map +1 -1
  121. package/resources/v2/v2.d.ts +3 -3
  122. package/resources/v2/v2.d.ts.map +1 -1
  123. package/resources/v2/v2.js +2 -2
  124. package/resources/v2/v2.js.map +1 -1
  125. package/resources/v2/v2.mjs +2 -2
  126. package/resources/v2/v2.mjs.map +1 -1
  127. package/src/client.ts +11 -11
  128. package/src/resources/groups.ts +1 -1
  129. package/src/resources/index.ts +1 -1
  130. package/src/resources/messages/index.ts +14 -0
  131. package/src/resources/messages/messages.ts +1444 -0
  132. package/src/resources/{v2/groups → messages/v2}/index.ts +1 -1
  133. package/src/resources/messages/v2/v2.ts +15 -0
  134. package/src/resources/{v2/groups → messages/v2}/verify/services/verifications.ts +2 -2
  135. package/src/resources/messages/v2.ts +3 -0
  136. package/src/resources/messages.ts +1 -1434
  137. package/src/resources/v2/groups.ts +159 -1
  138. package/src/resources/v2/index.ts +6 -1
  139. package/src/resources/v2/v2.ts +8 -3
  140. package/src/version.ts +1 -1
  141. package/version.d.mts +1 -1
  142. package/version.d.ts +1 -1
  143. package/version.js +1 -1
  144. package/version.mjs +1 -1
  145. package/resources/v2/groups/groups.d.mts +0 -86
  146. package/resources/v2/groups/groups.d.mts.map +0 -1
  147. package/resources/v2/groups/groups.d.ts +0 -86
  148. package/resources/v2/groups/groups.d.ts.map +0 -1
  149. package/resources/v2/groups/groups.js +0 -35
  150. package/resources/v2/groups/groups.js.map +0 -1
  151. package/resources/v2/groups/groups.mjs +0 -30
  152. package/resources/v2/groups/groups.mjs.map +0 -1
  153. package/resources/v2/groups/index.d.mts +0 -3
  154. package/resources/v2/groups/index.d.mts.map +0 -1
  155. package/resources/v2/groups/index.d.ts +0 -3
  156. package/resources/v2/groups/index.d.ts.map +0 -1
  157. package/resources/v2/groups/index.js.map +0 -1
  158. package/resources/v2/groups/index.mjs.map +0 -1
  159. package/resources/v2/groups/verify/index.d.mts.map +0 -1
  160. package/resources/v2/groups/verify/index.d.ts.map +0 -1
  161. package/resources/v2/groups/verify/index.js.map +0 -1
  162. package/resources/v2/groups/verify/index.mjs.map +0 -1
  163. package/resources/v2/groups/verify/services/index.d.mts.map +0 -1
  164. package/resources/v2/groups/verify/services/index.d.ts.map +0 -1
  165. package/resources/v2/groups/verify/services/index.js.map +0 -1
  166. package/resources/v2/groups/verify/services/index.mjs.map +0 -1
  167. package/resources/v2/groups/verify/services/services.d.mts.map +0 -1
  168. package/resources/v2/groups/verify/services/services.d.ts.map +0 -1
  169. package/resources/v2/groups/verify/services/services.js.map +0 -1
  170. package/resources/v2/groups/verify/services/services.mjs.map +0 -1
  171. package/resources/v2/groups/verify/services/verifications.d.mts.map +0 -1
  172. package/resources/v2/groups/verify/services/verifications.d.ts.map +0 -1
  173. package/resources/v2/groups/verify/services/verifications.js.map +0 -1
  174. package/resources/v2/groups/verify/services/verifications.mjs.map +0 -1
  175. package/resources/v2/groups/verify/services.d.mts.map +0 -1
  176. package/resources/v2/groups/verify/services.d.ts.map +0 -1
  177. package/resources/v2/groups/verify/services.js.map +0 -1
  178. package/resources/v2/groups/verify/services.mjs.map +0 -1
  179. package/resources/v2/groups/verify/verify.d.mts.map +0 -1
  180. package/resources/v2/groups/verify/verify.d.ts.map +0 -1
  181. package/resources/v2/groups/verify/verify.js.map +0 -1
  182. package/resources/v2/groups/verify/verify.mjs.map +0 -1
  183. package/resources/v2/groups/verify.d.mts.map +0 -1
  184. package/resources/v2/groups/verify.d.ts.map +0 -1
  185. package/resources/v2/groups/verify.js.map +0 -1
  186. package/resources/v2/groups/verify.mjs.map +0 -1
  187. package/src/resources/v2/groups/groups.ts +0 -114
  188. /package/resources/{v2/groups → messages/v2}/verify/index.d.mts +0 -0
  189. /package/resources/{v2/groups → messages/v2}/verify/index.d.ts +0 -0
  190. /package/resources/{v2/groups → messages/v2}/verify/index.js +0 -0
  191. /package/resources/{v2/groups → messages/v2}/verify/index.mjs +0 -0
  192. /package/resources/{v2/groups → messages/v2}/verify/services/index.d.mts +0 -0
  193. /package/resources/{v2/groups → messages/v2}/verify/services/index.d.ts +0 -0
  194. /package/resources/{v2/groups → messages/v2}/verify/services/index.js +0 -0
  195. /package/resources/{v2/groups → messages/v2}/verify/services/index.mjs +0 -0
  196. /package/resources/{v2/groups → messages/v2}/verify/services/services.d.mts +0 -0
  197. /package/resources/{v2/groups → messages/v2}/verify/services/services.d.ts +0 -0
  198. /package/resources/{v2/groups → messages/v2}/verify/services/services.js +0 -0
  199. /package/resources/{v2/groups → messages/v2}/verify/services/services.mjs +0 -0
  200. /package/resources/{v2/groups → messages/v2}/verify/services.d.mts +0 -0
  201. /package/resources/{v2/groups → messages/v2}/verify/services.d.ts +0 -0
  202. /package/resources/{v2/groups → messages/v2}/verify/services.js +0 -0
  203. /package/resources/{v2/groups → messages/v2}/verify/services.mjs +0 -0
  204. /package/resources/{v2/groups → messages/v2}/verify/verify.d.mts +0 -0
  205. /package/resources/{v2/groups → messages/v2}/verify/verify.d.ts +0 -0
  206. /package/resources/{v2/groups → messages/v2}/verify/verify.js +0 -0
  207. /package/resources/{v2/groups → messages/v2}/verify/verify.mjs +0 -0
  208. /package/resources/{v2/groups → messages/v2}/verify.d.mts +0 -0
  209. /package/resources/{v2/groups → messages/v2}/verify.d.ts +0 -0
  210. /package/resources/{v2/groups → messages/v2}/verify.js +0 -0
  211. /package/resources/{v2/groups → messages/v2}/verify.mjs +0 -0
  212. /package/src/resources/{v2/groups → messages/v2}/verify/index.ts +0 -0
  213. /package/src/resources/{v2/groups → messages/v2}/verify/services/index.ts +0 -0
  214. /package/src/resources/{v2/groups → messages/v2}/verify/services/services.ts +0 -0
  215. /package/src/resources/{v2/groups → messages/v2}/verify/services.ts +0 -0
  216. /package/src/resources/{v2/groups → messages/v2}/verify/verify.ts +0 -0
  217. /package/src/resources/{v2/groups → messages/v2}/verify.ts +0 -0
@@ -1 +1 @@
1
- {"version":3,"file":"messages.d.ts","sourceRoot":"","s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AAe,IAAI,eAAe,EACvC,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,0BAA0B,IAAI,0BAA0B,GAC9D,CAAC;CACH"}
1
+ {"version":3,"file":"messages.d.ts","sourceRoot":"","sources":["../src/resources/messages.ts"],"names":[],"mappings":"AAEA,oCAAiC"}
@@ -1,97 +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.Messages = void 0;
5
- const resource_1 = require("../core/resource.js");
6
- const path_1 = require("../internal/utils/path.js");
7
- /**
8
- * Operations for sending and managing messages
9
- */
10
- class Messages extends resource_1.APIResource {
11
- /**
12
- * Retrieve details of a specific message by its ID
13
- *
14
- * @example
15
- * ```ts
16
- * const message = await client.messages.retrieve(
17
- * 'msg_abc123def456',
18
- * );
19
- * ```
20
- */
21
- retrieve(messageID, options) {
22
- return this._client.get((0, path_1.path) `/api/v2/messages/${messageID}`, options);
23
- }
24
- /**
25
- * Retrieve a list of messages for the authenticated account with comprehensive
26
- * filtering capabilities. Rate limited to 100 requests per 10 seconds per account.
27
- *
28
- * ## Common Use Cases
29
- *
30
- * **Polling for inbound messages (no webhooks):**
31
- *
32
- * ```
33
- * GET /api/v2/messages?is_outbound=false&sendblue_number=+16292925296&order_by=createdAt&order_direction=desc&limit=50
34
- * ```
35
- *
36
- * Track processed message IDs to avoid duplicates.
37
- *
38
- * **Get conversation with a specific contact:**
39
- *
40
- * ```
41
- * GET /api/v2/messages?number=+15551234567&order_by=createdAt&order_direction=desc
42
- * ```
43
- *
44
- * @example
45
- * ```ts
46
- * const messages = await client.messages.list();
47
- * ```
48
- */
49
- list(query = {}, options) {
50
- return this._client.get('/api/v2/messages', { query, ...options });
51
- }
52
- /**
53
- * Retrieve the current status of a message using its message handle. Useful for
54
- * resolving pending message statuses and avoiding duplicate messages.
55
- *
56
- * @example
57
- * ```ts
58
- * const messageResponse = await client.messages.getStatus({
59
- * handle: 'msg_abc123def456',
60
- * });
61
- * ```
62
- */
63
- getStatus(query, options) {
64
- return this._client.get('/api/status', { query, ...options });
65
- }
66
- /**
67
- * Send an iMessage, SMS, MMS, or Sendblue App Card to a single recipient
68
- *
69
- * @example
70
- * ```ts
71
- * const messageResponse = await client.messages.send({
72
- * from_number: '+19998887777',
73
- * number: '+19998887777',
74
- * });
75
- * ```
76
- */
77
- send(body, options) {
78
- return this._client.post('/api/send-message', { body, ...options });
79
- }
80
- /**
81
- * Continues an existing App Card by sending a new Apple message in the same
82
- * iMessage session, from the same sender line and inline-reply context. The
83
- * continuation receives its own message handle and delivery/read status updates.
84
- *
85
- * @example
86
- * ```ts
87
- * const messageResponse = await client.messages.updateAppCard(
88
- * 'message_handle',
89
- * );
90
- * ```
91
- */
92
- updateAppCard(messageHandle, body, options) {
93
- return this._client.post((0, path_1.path) `/api/messages/${messageHandle}/update-app-card`, { body, ...options });
94
- }
95
- }
96
- exports.Messages = Messages;
4
+ const tslib_1 = require("../internal/tslib.js");
5
+ tslib_1.__exportStar(require("./messages/index.js"), exports);
97
6
  //# sourceMappingURL=messages.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"messages.js","sourceRoot":"","sources":["../src/resources/messages.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAG/C,oDAA8C;AAE9C;;GAEG;AACH,MAAa,QAAS,SAAQ,sBAAW;IACvC;;;;;;;;;OASG;IACH,QAAQ,CAAC,SAAiB,EAAE,OAAwB;QAClD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,oBAAoB,SAAS,EAAE,EAAE,OAAO,CAAC,CAAC;IACxE,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;;;;OAwBG;IACH,IAAI,CACF,QAA8C,EAAE,EAChD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,kBAAkB,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACrE,CAAC;IAED;;;;;;;;;;OAUG;IACH,SAAS,CAAC,KAA6B,EAAE,OAAwB;QAC/D,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,aAAa,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAChE,CAAC;IAED;;;;;;;;;;OAUG;IACH,IAAI,CAAC,IAAuB,EAAE,OAAwB;QACpD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,mBAAmB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACtE,CAAC;IAED;;;;;;;;;;;OAWG;IACH,aAAa,CACX,aAAqB,EACrB,IAAgC,EAChC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,iBAAiB,aAAa,kBAAkB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACvG,CAAC;CACF;AAhGD,4BAgGC"}
1
+ {"version":3,"file":"messages.js","sourceRoot":"","sources":["../src/resources/messages.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,8DAAiC"}
@@ -1,93 +1,3 @@
1
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
- * Operations for sending and managing messages
6
- */
7
- export class Messages extends APIResource {
8
- /**
9
- * Retrieve details of a specific message by its ID
10
- *
11
- * @example
12
- * ```ts
13
- * const message = await client.messages.retrieve(
14
- * 'msg_abc123def456',
15
- * );
16
- * ```
17
- */
18
- retrieve(messageID, options) {
19
- return this._client.get(path `/api/v2/messages/${messageID}`, options);
20
- }
21
- /**
22
- * Retrieve a list of messages for the authenticated account with comprehensive
23
- * filtering capabilities. Rate limited to 100 requests per 10 seconds per account.
24
- *
25
- * ## Common Use Cases
26
- *
27
- * **Polling for inbound messages (no webhooks):**
28
- *
29
- * ```
30
- * GET /api/v2/messages?is_outbound=false&sendblue_number=+16292925296&order_by=createdAt&order_direction=desc&limit=50
31
- * ```
32
- *
33
- * Track processed message IDs to avoid duplicates.
34
- *
35
- * **Get conversation with a specific contact:**
36
- *
37
- * ```
38
- * GET /api/v2/messages?number=+15551234567&order_by=createdAt&order_direction=desc
39
- * ```
40
- *
41
- * @example
42
- * ```ts
43
- * const messages = await client.messages.list();
44
- * ```
45
- */
46
- list(query = {}, options) {
47
- return this._client.get('/api/v2/messages', { query, ...options });
48
- }
49
- /**
50
- * Retrieve the current status of a message using its message handle. Useful for
51
- * resolving pending message statuses and avoiding duplicate messages.
52
- *
53
- * @example
54
- * ```ts
55
- * const messageResponse = await client.messages.getStatus({
56
- * handle: 'msg_abc123def456',
57
- * });
58
- * ```
59
- */
60
- getStatus(query, options) {
61
- return this._client.get('/api/status', { query, ...options });
62
- }
63
- /**
64
- * Send an iMessage, SMS, MMS, or Sendblue App Card to a single recipient
65
- *
66
- * @example
67
- * ```ts
68
- * const messageResponse = await client.messages.send({
69
- * from_number: '+19998887777',
70
- * number: '+19998887777',
71
- * });
72
- * ```
73
- */
74
- send(body, options) {
75
- return this._client.post('/api/send-message', { body, ...options });
76
- }
77
- /**
78
- * Continues an existing App Card by sending a new Apple message in the same
79
- * iMessage session, from the same sender line and inline-reply context. The
80
- * continuation receives its own message handle and delivery/read status updates.
81
- *
82
- * @example
83
- * ```ts
84
- * const messageResponse = await client.messages.updateAppCard(
85
- * 'message_handle',
86
- * );
87
- * ```
88
- */
89
- updateAppCard(messageHandle, body, options) {
90
- return this._client.post(path `/api/messages/${messageHandle}/update-app-card`, { body, ...options });
91
- }
92
- }
2
+ export * from "./messages/index.mjs";
93
3
  //# sourceMappingURL=messages.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"messages.mjs","sourceRoot":"","sources":["../src/resources/messages.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAG/C,OAAO,EAAE,IAAI,EAAE,mCAA+B;AAE9C;;GAEG;AACH,MAAM,OAAO,QAAS,SAAQ,WAAW;IACvC;;;;;;;;;OASG;IACH,QAAQ,CAAC,SAAiB,EAAE,OAAwB;QAClD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,oBAAoB,SAAS,EAAE,EAAE,OAAO,CAAC,CAAC;IACxE,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;;;;OAwBG;IACH,IAAI,CACF,QAA8C,EAAE,EAChD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,kBAAkB,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACrE,CAAC;IAED;;;;;;;;;;OAUG;IACH,SAAS,CAAC,KAA6B,EAAE,OAAwB;QAC/D,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,aAAa,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAChE,CAAC;IAED;;;;;;;;;;OAUG;IACH,IAAI,CAAC,IAAuB,EAAE,OAAwB;QACpD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,mBAAmB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACtE,CAAC;IAED;;;;;;;;;;;OAWG;IACH,aAAa,CACX,aAAqB,EACrB,IAAgC,EAChC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,iBAAiB,aAAa,kBAAkB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACvG,CAAC;CACF"}
1
+ {"version":3,"file":"messages.mjs","sourceRoot":"","sources":["../src/resources/messages.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,qCAAiC"}
@@ -1,2 +1,120 @@
1
- export * from "./groups/index.mjs";
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
+ * Changes the Apple-visible name of an existing iMessage group and waits for the
22
+ * Sendblue line to verify the resulting state. Pass `null` or an empty string to
23
+ * clear the name. The verified value is persisted as the group's `group_name`.
24
+ *
25
+ * The group must already have an iMessage chat, and the Sendblue line serving it
26
+ * must be online and support group name changes. Failed requests are not replayed
27
+ * automatically; retrying the same desired state is safe.
28
+ *
29
+ * @example
30
+ * ```ts
31
+ * const response = await client.v2.groups.rename(
32
+ * 'sb_group_608acc54-d0d7-4b41-8092-9ff6e1e70455',
33
+ * { name: 'Project Falcon' },
34
+ * );
35
+ * ```
36
+ */
37
+ rename(groupID: string, body: GroupRenameParams, options?: RequestOptions): APIPromise<GroupRenameResponse>;
38
+ }
39
+ export interface GroupRetrieveResponse {
40
+ data?: GroupRetrieveResponse.Data;
41
+ status?: string;
42
+ }
43
+ export declare namespace GroupRetrieveResponse {
44
+ interface Data {
45
+ created_at?: string;
46
+ group_id?: string;
47
+ group_name?: string;
48
+ latest_comm_at?: string | null;
49
+ latest_message_id?: string | null;
50
+ /**
51
+ * Convenience list of resolved participant phone numbers. Participants with
52
+ * email-only handles remain in participants but are omitted here.
53
+ */
54
+ participant_numbers?: Array<string>;
55
+ participants?: Array<Data.Participant>;
56
+ updated_at?: string;
57
+ /**
58
+ * Worker-local iMessage group identifier when known
59
+ */
60
+ worker_group_id?: string | null;
61
+ }
62
+ namespace Data {
63
+ interface Participant {
64
+ /**
65
+ * Contact ID when this participant is linked to a contact
66
+ */
67
+ contact_id?: string | null;
68
+ /**
69
+ * Raw participant handle, usually an E.164 phone number but sometimes an iMessage
70
+ * email handle
71
+ */
72
+ handle?: string | null;
73
+ /**
74
+ * Contact or seat display name when available
75
+ */
76
+ name?: string | null;
77
+ /**
78
+ * Unique participant row identifier
79
+ */
80
+ participant_id?: string;
81
+ /**
82
+ * Resolved participant phone number, preferring the stored group phone handle and
83
+ * falling back to contact phone. Email handles remain available in handle.
84
+ */
85
+ phone?: string | null;
86
+ /**
87
+ * Seat ID when this participant is a team member
88
+ */
89
+ seat_id?: string | null;
90
+ /**
91
+ * Participant kind
92
+ */
93
+ type?: 'contact' | 'seat';
94
+ }
95
+ }
96
+ }
97
+ export interface GroupRenameResponse {
98
+ data: GroupRenameResponse.Data;
99
+ status: 'OK';
100
+ }
101
+ export declare namespace GroupRenameResponse {
102
+ interface Data {
103
+ group_id: string;
104
+ /**
105
+ * Device-verified name; empty when cleared
106
+ */
107
+ group_name: string;
108
+ service: 'iMessage';
109
+ }
110
+ }
111
+ export interface GroupRenameParams {
112
+ /**
113
+ * New group name, or null/empty string to clear it
114
+ */
115
+ name: string | null;
116
+ }
117
+ export declare namespace Groups {
118
+ export { type GroupRetrieveResponse as GroupRetrieveResponse, type GroupRenameResponse as GroupRenameResponse, type GroupRenameParams as GroupRenameParams, };
119
+ }
2
120
  //# sourceMappingURL=groups.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"groups.d.mts","sourceRoot":"","sources":["../../src/resources/v2/groups.ts"],"names":[],"mappings":"AAEA,mCAA+B"}
1
+ {"version":3,"file":"groups.d.mts","sourceRoot":"","sources":["../../src/resources/v2/groups.ts"],"names":[],"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AC;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,WAAW,mBAAmB;IAClC,IAAI,EAAE,mBAAmB,CAAC,IAAI,CAAC;IAE/B,MAAM,EAAE,IAAI,CAAC;CACd;AAED,yBAAiB,mBAAmB,CAAC;IACnC,UAAiB,IAAI;QACnB,QAAQ,EAAE,MAAM,CAAC;QAEjB;;WAEG;QACH,UAAU,EAAE,MAAM,CAAC;QAEnB,OAAO,EAAE,UAAU,CAAC;KACrB;CACF;AAED,MAAM,WAAW,iBAAiB;IAChC;;OAEG;IACH,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;CACrB;AAED,MAAM,CAAC,OAAO,WAAW,MAAM,CAAC;IAC9B,OAAO,EACL,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,iBAAiB,IAAI,iBAAiB,GAC5C,CAAC;CACH"}
@@ -1,2 +1,120 @@
1
- export * from "./groups/index.js";
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
+ * Changes the Apple-visible name of an existing iMessage group and waits for the
22
+ * Sendblue line to verify the resulting state. Pass `null` or an empty string to
23
+ * clear the name. The verified value is persisted as the group's `group_name`.
24
+ *
25
+ * The group must already have an iMessage chat, and the Sendblue line serving it
26
+ * must be online and support group name changes. Failed requests are not replayed
27
+ * automatically; retrying the same desired state is safe.
28
+ *
29
+ * @example
30
+ * ```ts
31
+ * const response = await client.v2.groups.rename(
32
+ * 'sb_group_608acc54-d0d7-4b41-8092-9ff6e1e70455',
33
+ * { name: 'Project Falcon' },
34
+ * );
35
+ * ```
36
+ */
37
+ rename(groupID: string, body: GroupRenameParams, options?: RequestOptions): APIPromise<GroupRenameResponse>;
38
+ }
39
+ export interface GroupRetrieveResponse {
40
+ data?: GroupRetrieveResponse.Data;
41
+ status?: string;
42
+ }
43
+ export declare namespace GroupRetrieveResponse {
44
+ interface Data {
45
+ created_at?: string;
46
+ group_id?: string;
47
+ group_name?: string;
48
+ latest_comm_at?: string | null;
49
+ latest_message_id?: string | null;
50
+ /**
51
+ * Convenience list of resolved participant phone numbers. Participants with
52
+ * email-only handles remain in participants but are omitted here.
53
+ */
54
+ participant_numbers?: Array<string>;
55
+ participants?: Array<Data.Participant>;
56
+ updated_at?: string;
57
+ /**
58
+ * Worker-local iMessage group identifier when known
59
+ */
60
+ worker_group_id?: string | null;
61
+ }
62
+ namespace Data {
63
+ interface Participant {
64
+ /**
65
+ * Contact ID when this participant is linked to a contact
66
+ */
67
+ contact_id?: string | null;
68
+ /**
69
+ * Raw participant handle, usually an E.164 phone number but sometimes an iMessage
70
+ * email handle
71
+ */
72
+ handle?: string | null;
73
+ /**
74
+ * Contact or seat display name when available
75
+ */
76
+ name?: string | null;
77
+ /**
78
+ * Unique participant row identifier
79
+ */
80
+ participant_id?: string;
81
+ /**
82
+ * Resolved participant phone number, preferring the stored group phone handle and
83
+ * falling back to contact phone. Email handles remain available in handle.
84
+ */
85
+ phone?: string | null;
86
+ /**
87
+ * Seat ID when this participant is a team member
88
+ */
89
+ seat_id?: string | null;
90
+ /**
91
+ * Participant kind
92
+ */
93
+ type?: 'contact' | 'seat';
94
+ }
95
+ }
96
+ }
97
+ export interface GroupRenameResponse {
98
+ data: GroupRenameResponse.Data;
99
+ status: 'OK';
100
+ }
101
+ export declare namespace GroupRenameResponse {
102
+ interface Data {
103
+ group_id: string;
104
+ /**
105
+ * Device-verified name; empty when cleared
106
+ */
107
+ group_name: string;
108
+ service: 'iMessage';
109
+ }
110
+ }
111
+ export interface GroupRenameParams {
112
+ /**
113
+ * New group name, or null/empty string to clear it
114
+ */
115
+ name: string | null;
116
+ }
117
+ export declare namespace Groups {
118
+ export { type GroupRetrieveResponse as GroupRetrieveResponse, type GroupRenameResponse as GroupRenameResponse, type GroupRenameParams as GroupRenameParams, };
119
+ }
2
120
  //# sourceMappingURL=groups.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"groups.d.ts","sourceRoot":"","sources":["../../src/resources/v2/groups.ts"],"names":[],"mappings":"AAEA,kCAA+B"}
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;IAItF;;;;;;;;;;;;;;;;OAgBG;IACH,MAAM,CACJ,OAAO,EAAE,MAAM,EACf,IAAI,EAAE,iBAAiB,EACvB,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,mBAAmB,CAAC;CAGnC;AAED,MAAM,WAAW,qBAAqB;IACpC,I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E,MAAM,CAAC;QAEjB;;WAEG;QACH,UAAU,EAAE,MAAM,CAAC;QAEnB,OAAO,EAAE,UAAU,CAAC;KACrB;CACF;AAED,MAAM,WAAW,iBAAiB;IAChC;;OAEG;IACH,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;CACrB;AAED,MAAM,CAAC,OAAO,WAAW,MAAM,CAAC;IAC9B,OAAO,EACL,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,iBAAiB,IAAI,iBAAiB,GAC5C,CAAC;CACH"}
@@ -1,6 +1,47 @@
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
- const tslib_1 = require("../../internal/tslib.js");
5
- tslib_1.__exportStar(require("./groups/index.js"), exports);
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
+ * Changes the Apple-visible name of an existing iMessage group and waits for the
27
+ * Sendblue line to verify the resulting state. Pass `null` or an empty string to
28
+ * clear the name. The verified value is persisted as the group's `group_name`.
29
+ *
30
+ * The group must already have an iMessage chat, and the Sendblue line serving it
31
+ * must be online and support group name changes. Failed requests are not replayed
32
+ * automatically; retrying the same desired state is safe.
33
+ *
34
+ * @example
35
+ * ```ts
36
+ * const response = await client.v2.groups.rename(
37
+ * 'sb_group_608acc54-d0d7-4b41-8092-9ff6e1e70455',
38
+ * { name: 'Project Falcon' },
39
+ * );
40
+ * ```
41
+ */
42
+ rename(groupID, body, options) {
43
+ return this._client.post((0, path_1.path) `/api/v2/groups/${groupID}/name`, { body, ...options });
44
+ }
45
+ }
46
+ exports.Groups = Groups;
6
47
  //# sourceMappingURL=groups.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"groups.js","sourceRoot":"","sources":["../../src/resources/v2/groups.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,4DAA+B"}
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;IAED;;;;;;;;;;;;;;;;OAgBG;IACH,MAAM,CACJ,OAAe,EACf,IAAuB,EACvB,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,kBAAkB,OAAO,OAAO,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACvF,CAAC;CACF;AAxCD,wBAwCC"}
@@ -1,3 +1,43 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
- export * from "./groups/index.mjs";
2
+ import { APIResource } from "../../core/resource.mjs";
3
+ import { path } from "../../internal/utils/path.mjs";
4
+ /**
5
+ * Operations for group messaging (beta)
6
+ */
7
+ export 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, options) {
20
+ return this._client.get(path `/api/v2/groups/${groupID}`, options);
21
+ }
22
+ /**
23
+ * Changes the Apple-visible name of an existing iMessage group and waits for the
24
+ * Sendblue line to verify the resulting state. Pass `null` or an empty string to
25
+ * clear the name. The verified value is persisted as the group's `group_name`.
26
+ *
27
+ * The group must already have an iMessage chat, and the Sendblue line serving it
28
+ * must be online and support group name changes. Failed requests are not replayed
29
+ * automatically; retrying the same desired state is safe.
30
+ *
31
+ * @example
32
+ * ```ts
33
+ * const response = await client.v2.groups.rename(
34
+ * 'sb_group_608acc54-d0d7-4b41-8092-9ff6e1e70455',
35
+ * { name: 'Project Falcon' },
36
+ * );
37
+ * ```
38
+ */
39
+ rename(groupID, body, options) {
40
+ return this._client.post(path `/api/v2/groups/${groupID}/name`, { body, ...options });
41
+ }
42
+ }
3
43
  //# sourceMappingURL=groups.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"groups.mjs","sourceRoot":"","sources":["../../src/resources/v2/groups.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,mCAA+B"}
1
+ {"version":3,"file":"groups.mjs","sourceRoot":"","sources":["../../src/resources/v2/groups.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAGlD,OAAO,EAAE,IAAI,EAAE,sCAAkC;AAEjD;;GAEG;AACH,MAAM,OAAO,MAAO,SAAQ,WAAW;IACrC;;;;;;;;;;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;IAED;;;;;;;;;;;;;;;;OAgBG;IACH,MAAM,CACJ,OAAe,EACf,IAAuB,EACvB,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,kBAAkB,OAAO,OAAO,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACvF,CAAC;CACF"}
@@ -1,4 +1,4 @@
1
- export { Groups, type GroupRetrieveResponse } from "./groups/index.mjs";
1
+ export { Groups, type GroupRetrieveResponse, type GroupRenameResponse, type GroupRenameParams, } from "./groups.mjs";
2
2
  export { Seats, type SeatRetrieveResponse, type SeatListResponse, type SeatCountResponse, type SeatListParams, type SeatCountParams, } from "./seats.mjs";
3
3
  export { Totp, type TotpGetCodeResponse } from "./totp/index.mjs";
4
4
  export { V2 } from "./v2.mjs";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../src/resources/v2/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,MAAM,EAAE,KAAK,qBAAqB,EAAE,2BAAuB;AACpE,OAAO,EACL,KAAK,EACL,KAAK,oBAAoB,EACzB,KAAK,gBAAgB,EACrB,KAAK,iBAAiB,EACtB,KAAK,cAAc,EACnB,KAAK,eAAe,GACrB,oBAAgB;AACjB,OAAO,EAAE,IAAI,EAAE,KAAK,mBAAmB,EAAE,yBAAqB;AAC9D,OAAO,EAAE,EAAE,EAAE,iBAAa"}
1
+ {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../src/resources/v2/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,MAAM,EACN,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,GACvB,qBAAiB;AAClB,OAAO,EACL,KAAK,EACL,KAAK,oBAAoB,EACzB,KAAK,gBAAgB,EACrB,KAAK,iBAAiB,EACtB,KAAK,cAAc,EACnB,KAAK,eAAe,GACrB,oBAAgB;AACjB,OAAO,EAAE,IAAI,EAAE,KAAK,mBAAmB,EAAE,yBAAqB;AAC9D,OAAO,EAAE,EAAE,EAAE,iBAAa"}
@@ -1,4 +1,4 @@
1
- export { Groups, type GroupRetrieveResponse } from "./groups/index.js";
1
+ export { Groups, type GroupRetrieveResponse, type GroupRenameResponse, type GroupRenameParams, } from "./groups.js";
2
2
  export { Seats, type SeatRetrieveResponse, type SeatListResponse, type SeatCountResponse, type SeatListParams, type SeatCountParams, } from "./seats.js";
3
3
  export { Totp, type TotpGetCodeResponse } from "./totp/index.js";
4
4
  export { V2 } from "./v2.js";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/v2/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,MAAM,EAAE,KAAK,qBAAqB,EAAE,0BAAuB;AACpE,OAAO,EACL,KAAK,EACL,KAAK,oBAAoB,EACzB,KAAK,gBAAgB,EACrB,KAAK,iBAAiB,EACtB,KAAK,cAAc,EACnB,KAAK,eAAe,GACrB,mBAAgB;AACjB,OAAO,EAAE,IAAI,EAAE,KAAK,mBAAmB,EAAE,wBAAqB;AAC9D,OAAO,EAAE,EAAE,EAAE,gBAAa"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/v2/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,MAAM,EACN,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,GACvB,oBAAiB;AAClB,OAAO,EACL,KAAK,EACL,KAAK,oBAAoB,EACzB,KAAK,gBAAgB,EACrB,KAAK,iBAAiB,EACtB,KAAK,cAAc,EACnB,KAAK,eAAe,GACrB,mBAAgB;AACjB,OAAO,EAAE,IAAI,EAAE,KAAK,mBAAmB,EAAE,wBAAqB;AAC9D,OAAO,EAAE,EAAE,EAAE,gBAAa"}
@@ -2,12 +2,12 @@
2
2
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  exports.V2 = exports.Totp = exports.Seats = exports.Groups = void 0;
5
- var index_1 = require("./groups/index.js");
6
- Object.defineProperty(exports, "Groups", { enumerable: true, get: function () { return index_1.Groups; } });
5
+ var groups_1 = require("./groups.js");
6
+ Object.defineProperty(exports, "Groups", { enumerable: true, get: function () { return groups_1.Groups; } });
7
7
  var seats_1 = require("./seats.js");
8
8
  Object.defineProperty(exports, "Seats", { enumerable: true, get: function () { return seats_1.Seats; } });
9
- var index_2 = require("./totp/index.js");
10
- Object.defineProperty(exports, "Totp", { enumerable: true, get: function () { return index_2.Totp; } });
9
+ var index_1 = require("./totp/index.js");
10
+ Object.defineProperty(exports, "Totp", { enumerable: true, get: function () { return index_1.Totp; } });
11
11
  var v2_1 = require("./v2.js");
12
12
  Object.defineProperty(exports, "V2", { enumerable: true, get: function () { return v2_1.V2; } });
13
13
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/v2/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,2CAAoE;AAA3D,+FAAA,MAAM,OAAA;AACf,oCAOiB;AANf,8FAAA,KAAK,OAAA;AAOP,yCAA8D;AAArD,6FAAA,IAAI,OAAA;AACb,8BAA0B;AAAjB,wFAAA,EAAE,OAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/v2/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,sCAKkB;AAJhB,gGAAA,MAAM,OAAA;AAKR,oCAOiB;AANf,8FAAA,KAAK,OAAA;AAOP,yCAA8D;AAArD,6FAAA,IAAI,OAAA;AACb,8BAA0B;AAAjB,wFAAA,EAAE,OAAA"}