sendblue 3.16.0 → 3.17.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 (60) hide show
  1. package/CHANGELOG.md +27 -0
  2. package/client.d.mts +2 -2
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +2 -2
  5. package/client.d.ts.map +1 -1
  6. package/client.js.map +1 -1
  7. package/client.mjs +1 -1
  8. package/client.mjs.map +1 -1
  9. package/package.json +1 -1
  10. package/resources/groups.d.mts +12 -1
  11. package/resources/groups.d.mts.map +1 -1
  12. package/resources/groups.d.ts +12 -1
  13. package/resources/groups.d.ts.map +1 -1
  14. package/resources/index.d.mts +1 -1
  15. package/resources/index.d.mts.map +1 -1
  16. package/resources/index.d.ts +1 -1
  17. package/resources/index.d.ts.map +1 -1
  18. package/resources/index.js.map +1 -1
  19. package/resources/index.mjs.map +1 -1
  20. package/resources/lookups.d.mts +10 -5
  21. package/resources/lookups.d.mts.map +1 -1
  22. package/resources/lookups.d.ts +10 -5
  23. package/resources/lookups.d.ts.map +1 -1
  24. package/resources/lookups.js +7 -2
  25. package/resources/lookups.js.map +1 -1
  26. package/resources/lookups.mjs +7 -2
  27. package/resources/lookups.mjs.map +1 -1
  28. package/resources/v2/groups.d.mts +90 -5
  29. package/resources/v2/groups.d.mts.map +1 -1
  30. package/resources/v2/groups.d.ts +90 -5
  31. package/resources/v2/groups.d.ts.map +1 -1
  32. package/resources/v2/groups.js +42 -1
  33. package/resources/v2/groups.js.map +1 -1
  34. package/resources/v2/groups.mjs +42 -1
  35. package/resources/v2/groups.mjs.map +1 -1
  36. package/resources/v2/index.d.mts +1 -1
  37. package/resources/v2/index.d.mts.map +1 -1
  38. package/resources/v2/index.d.ts +1 -1
  39. package/resources/v2/index.d.ts.map +1 -1
  40. package/resources/v2/index.js.map +1 -1
  41. package/resources/v2/index.mjs.map +1 -1
  42. package/resources/v2/v2.d.mts +2 -2
  43. package/resources/v2/v2.d.mts.map +1 -1
  44. package/resources/v2/v2.d.ts +2 -2
  45. package/resources/v2/v2.d.ts.map +1 -1
  46. package/resources/v2/v2.js.map +1 -1
  47. package/resources/v2/v2.mjs +1 -1
  48. package/resources/v2/v2.mjs.map +1 -1
  49. package/src/client.ts +8 -1
  50. package/src/resources/groups.ts +14 -0
  51. package/src/resources/index.ts +1 -0
  52. package/src/resources/lookups.ts +10 -5
  53. package/src/resources/v2/groups.ts +111 -4
  54. package/src/resources/v2/index.ts +2 -0
  55. package/src/resources/v2/v2.ts +10 -1
  56. package/src/version.ts +1 -1
  57. package/version.d.mts +1 -1
  58. package/version.d.ts +1 -1
  59. package/version.js +1 -1
  60. package/version.mjs +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"lookups.d.ts","sourceRoot":"","sources":["../src/resources/lookups.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,4BAAyB;AAC/C,OAAO,EAAE,UAAU,EAAE,+BAA4B;AACjD,OAAO,EAAE,cAAc,EAAE,uCAAoC;AAE7D;;GAEG;AACH,qBAAa,OAAQ,SAAQ,WAAW;IACtC;;;OAGG;IACH,YAAY,CACV,KAAK,EAAE,wBAAwB,EAC/B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,0BAA0B,CAAC;CAG1C;AAED,MAAM,WAAW,0BAA0B;IACzC;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,OAAO,CAAC,EAAE,UAAU,GAAG,KAAK,CAAC;CAC9B;AAED,MAAM,WAAW,wBAAwB;IACvC;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,CAAC,OAAO,WAAW,OAAO,CAAC;IAC/B,OAAO,EACL,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,wBAAwB,IAAI,wBAAwB,GAC1D,CAAC;CACH"}
1
+ {"version":3,"file":"lookups.d.ts","sourceRoot":"","sources":["../src/resources/lookups.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,4BAAyB;AAC/C,OAAO,EAAE,UAAU,EAAE,+BAA4B;AACjD,OAAO,EAAE,cAAc,EAAE,uCAAoC;AAE7D;;GAEG;AACH,qBAAa,OAAQ,SAAQ,WAAW;IACtC;;;;;;;;OAQG;IACH,YAAY,CACV,KAAK,EAAE,wBAAwB,EAC/B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,0BAA0B,CAAC;CAG1C;AAED,MAAM,WAAW,0BAA0B;IACzC;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,OAAO,CAAC,EAAE,UAAU,GAAG,KAAK,CAAC;CAC9B;AAED,MAAM,WAAW,wBAAwB;IACvC;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,CAAC,OAAO,WAAW,OAAO,CAAC;IAC/B,OAAO,EACL,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,wBAAwB,IAAI,wBAAwB,GAC1D,CAAC;CACH"}
@@ -8,8 +8,13 @@ const resource_1 = require("../core/resource.js");
8
8
  */
9
9
  class Lookups extends resource_1.APIResource {
10
10
  /**
11
- * Determine if a phone number supports iMessage or SMS. Useful for checking if a
12
- * number is an iPhone, if it is real, or which provider to use.
11
+ * Check iMessage support for a phone number or email address. A successful result
12
+ * does not guarantee delivery. For email addresses, SMS means iMessage was not
13
+ * detected; it does not mean the address can receive SMS. The from_number query
14
+ * parameter does not select a sending line for this endpoint. Email results
15
+ * indicating no iMessage support are not cached. An inconclusive lookup returns a
16
+ * retryable error. Limit retries and use backoff after an inconclusive response. A
17
+ * lookup does not guarantee that upstream availability data was freshly refreshed.
13
18
  */
14
19
  lookupNumber(query, options) {
15
20
  return this._client.get('/api/evaluate-service', { query, ...options });
@@ -1 +1 @@
1
- {"version":3,"file":"lookups.js","sourceRoot":"","sources":["../src/resources/lookups.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAI/C;;GAEG;AACH,MAAa,OAAQ,SAAQ,sBAAW;IACtC;;;OAGG;IACH,YAAY,CACV,KAA+B,EAC/B,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,uBAAuB,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC1E,CAAC;CACF;AAXD,0BAWC"}
1
+ {"version":3,"file":"lookups.js","sourceRoot":"","sources":["../src/resources/lookups.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAI/C;;GAEG;AACH,MAAa,OAAQ,SAAQ,sBAAW;IACtC;;;;;;;;OAQG;IACH,YAAY,CACV,KAA+B,EAC/B,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,uBAAuB,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC1E,CAAC;CACF;AAhBD,0BAgBC"}
@@ -5,8 +5,13 @@ import { APIResource } from "../core/resource.mjs";
5
5
  */
6
6
  export class Lookups extends APIResource {
7
7
  /**
8
- * Determine if a phone number supports iMessage or SMS. Useful for checking if a
9
- * number is an iPhone, if it is real, or which provider to use.
8
+ * Check iMessage support for a phone number or email address. A successful result
9
+ * does not guarantee delivery. For email addresses, SMS means iMessage was not
10
+ * detected; it does not mean the address can receive SMS. The from_number query
11
+ * parameter does not select a sending line for this endpoint. Email results
12
+ * indicating no iMessage support are not cached. An inconclusive lookup returns a
13
+ * retryable error. Limit retries and use backoff after an inconclusive response. A
14
+ * lookup does not guarantee that upstream availability data was freshly refreshed.
10
15
  */
11
16
  lookupNumber(query, options) {
12
17
  return this._client.get('/api/evaluate-service', { query, ...options });
@@ -1 +1 @@
1
- {"version":3,"file":"lookups.mjs","sourceRoot":"","sources":["../src/resources/lookups.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAI/C;;GAEG;AACH,MAAM,OAAO,OAAQ,SAAQ,WAAW;IACtC;;;OAGG;IACH,YAAY,CACV,KAA+B,EAC/B,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,uBAAuB,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC1E,CAAC;CACF"}
1
+ {"version":3,"file":"lookups.mjs","sourceRoot":"","sources":["../src/resources/lookups.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAI/C;;GAEG;AACH,MAAM,OAAO,OAAQ,SAAQ,WAAW;IACtC;;;;;;;;OAQG;IACH,YAAY,CACV,KAA+B,EAC/B,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,uBAAuB,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC1E,CAAC;CACF"}
@@ -1,4 +1,5 @@
1
1
  import { APIResource } from "../../core/resource.mjs";
2
+ import * as GroupsAPI from "../groups.mjs";
2
3
  import { APIPromise } from "../../core/api-promise.mjs";
3
4
  import { RequestOptions } from "../../internal/request-options.mjs";
4
5
  /**
@@ -26,15 +27,53 @@ export declare class Groups extends APIResource {
26
27
  * must be online and support group name changes. Failed requests are not replayed
27
28
  * automatically; retrying the same desired state is safe.
28
29
  *
30
+ * By default an eligible Sendblue line in the group is selected automatically.
31
+ * Pass `from_number` to require a specific Sendblue line: it must have an iMessage
32
+ * mapping for this group, and if that line cannot act the request fails without
33
+ * falling back to another line. The success response reports the line that
34
+ * performed the change as `from_number`.
35
+ *
29
36
  * @example
30
37
  * ```ts
31
38
  * const response = await client.v2.groups.rename(
32
39
  * 'sb_group_608acc54-d0d7-4b41-8092-9ff6e1e70455',
33
- * { name: 'Project Falcon' },
40
+ * { group_name: 'Project Falcon' },
34
41
  * );
35
42
  * ```
36
43
  */
37
44
  rename(groupID: string, body: GroupRenameParams, options?: RequestOptions): APIPromise<GroupRenameResponse>;
45
+ /**
46
+ * Sets the Apple-visible photo of an existing iMessage group and waits for the
47
+ * Sendblue line to verify the resulting device state. Pass `null` to clear the
48
+ * photo. A set is verified only when the device-created photo transfer becomes the
49
+ * chat's current photo; the verified photo is then persisted with the group and
50
+ * returned on group retrieval with an image URL.
51
+ *
52
+ * Set the photo with either a JSON `photo_url` or raw image bytes in the `file`
53
+ * field of a multipart form. Images must be JPEG, PNG, or GIF, at most 5 MB, and
54
+ * no more than 25 million aggregate decoded pixels. URL images must use a direct,
55
+ * publicly resolvable https URL; redirects are not followed. Replacing or clearing
56
+ * the photo replaces the current stored reference and attempts to delete the
57
+ * superseded object; no history is exposed through the API. Supported line types
58
+ * are checked automatically; ineligible lines return `unsupported_line`. Failed
59
+ * requests are not replayed automatically; retrying the same desired state is
60
+ * safe.
61
+ *
62
+ * By default an eligible Sendblue line in the group is selected automatically.
63
+ * Pass `from_number` to require a specific Sendblue line: it must have an iMessage
64
+ * mapping for this group, and if that line cannot act the request fails without
65
+ * falling back to another line. The success response reports the line that
66
+ * performed the change as `from_number`.
67
+ *
68
+ * @example
69
+ * ```ts
70
+ * const response = await client.v2.groups.setPhoto(
71
+ * 'sb_group_608acc54-d0d7-4b41-8092-9ff6e1e70455',
72
+ * { photo_url: 'https://example.com/team-photo.png' },
73
+ * );
74
+ * ```
75
+ */
76
+ setPhoto(groupID: string, body: GroupSetPhotoParams, options?: RequestOptions): APIPromise<GroupSetPhotoResponse>;
38
77
  }
39
78
  export interface GroupRetrieveResponse {
40
79
  data?: GroupRetrieveResponse.Data;
@@ -45,6 +84,11 @@ export declare namespace GroupRetrieveResponse {
45
84
  created_at?: string;
46
85
  group_id?: string;
47
86
  group_name?: string;
87
+ /**
88
+ * Device-verified current group photo metadata; null when the group has no
89
+ * verified photo
90
+ */
91
+ group_photo?: GroupsAPI.GroupPhoto | null;
48
92
  latest_comm_at?: string | null;
49
93
  latest_message_id?: string | null;
50
94
  /**
@@ -100,21 +144,62 @@ export interface GroupRenameResponse {
100
144
  }
101
145
  export declare namespace GroupRenameResponse {
102
146
  interface Data {
147
+ /**
148
+ * Sendblue line that performed the change
149
+ */
150
+ from_number: string | null;
103
151
  group_id: string;
104
152
  /**
105
153
  * Device-verified name; empty when cleared
106
154
  */
107
155
  group_name: string;
108
- service: 'iMessage';
156
+ }
157
+ }
158
+ export interface GroupSetPhotoResponse {
159
+ data: GroupSetPhotoResponse.Data;
160
+ status: 'OK';
161
+ }
162
+ export declare namespace GroupSetPhotoResponse {
163
+ interface Data {
164
+ /**
165
+ * Sendblue line that performed the change
166
+ */
167
+ from_number: string | null;
168
+ group_id: string;
169
+ /**
170
+ * Device-verified current photo; null after a verified clear
171
+ */
172
+ group_photo: GroupsAPI.GroupPhoto | null;
109
173
  }
110
174
  }
111
175
  export interface GroupRenameParams {
112
176
  /**
113
- * New group name, or null/empty string to clear it
177
+ * New group name; whitespace-only values are rejected, while null or an empty
178
+ * string clears it
179
+ */
180
+ group_name: string | null;
181
+ /**
182
+ * Sendblue line that must perform the change; it must have an iMessage mapping for
183
+ * this group, and no other line is used if it cannot act. Omit or pass null for
184
+ * automatic selection
185
+ */
186
+ from_number?: string | null;
187
+ }
188
+ export interface GroupSetPhotoParams {
189
+ /**
190
+ * Direct, publicly resolvable https URL of the image to set (JPEG, PNG, or GIF, at
191
+ * most 5 MB and 25 million aggregate decoded pixels; redirects are not followed);
192
+ * null clears the group photo
193
+ */
194
+ photo_url: string | null;
195
+ /**
196
+ * Sendblue line that must perform the change; it must have an iMessage mapping for
197
+ * this group, and no other line is used if it cannot act. Omit or pass null for
198
+ * automatic selection
114
199
  */
115
- name: string | null;
200
+ from_number?: string | null;
116
201
  }
117
202
  export declare namespace Groups {
118
- export { type GroupRetrieveResponse as GroupRetrieveResponse, type GroupRenameResponse as GroupRenameResponse, type GroupRenameParams as GroupRenameParams, };
203
+ export { type GroupRetrieveResponse as GroupRetrieveResponse, type GroupRenameResponse as GroupRenameResponse, type GroupSetPhotoResponse as GroupSetPhotoResponse, type GroupRenameParams as GroupRenameParams, type GroupSetPhotoParams as GroupSetPhotoParams, };
119
204
  }
120
205
  //# 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;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,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,GAA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AAED,MAAM,WAAW,mBAAmB;IAClC;;;;OAIG;IACH,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IAEzB;;;;OAIG;IACH,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC7B;AAED,MAAM,CAAC,OAAO,WAAW,MAAM,CAAC;IAC9B,OAAO,EACL,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,mBAAmB,IAAI,mBAAmB,GAChD,CAAC;CACH"}
@@ -1,4 +1,5 @@
1
1
  import { APIResource } from "../../core/resource.js";
2
+ import * as GroupsAPI from "../groups.js";
2
3
  import { APIPromise } from "../../core/api-promise.js";
3
4
  import { RequestOptions } from "../../internal/request-options.js";
4
5
  /**
@@ -26,15 +27,53 @@ export declare class Groups extends APIResource {
26
27
  * must be online and support group name changes. Failed requests are not replayed
27
28
  * automatically; retrying the same desired state is safe.
28
29
  *
30
+ * By default an eligible Sendblue line in the group is selected automatically.
31
+ * Pass `from_number` to require a specific Sendblue line: it must have an iMessage
32
+ * mapping for this group, and if that line cannot act the request fails without
33
+ * falling back to another line. The success response reports the line that
34
+ * performed the change as `from_number`.
35
+ *
29
36
  * @example
30
37
  * ```ts
31
38
  * const response = await client.v2.groups.rename(
32
39
  * 'sb_group_608acc54-d0d7-4b41-8092-9ff6e1e70455',
33
- * { name: 'Project Falcon' },
40
+ * { group_name: 'Project Falcon' },
34
41
  * );
35
42
  * ```
36
43
  */
37
44
  rename(groupID: string, body: GroupRenameParams, options?: RequestOptions): APIPromise<GroupRenameResponse>;
45
+ /**
46
+ * Sets the Apple-visible photo of an existing iMessage group and waits for the
47
+ * Sendblue line to verify the resulting device state. Pass `null` to clear the
48
+ * photo. A set is verified only when the device-created photo transfer becomes the
49
+ * chat's current photo; the verified photo is then persisted with the group and
50
+ * returned on group retrieval with an image URL.
51
+ *
52
+ * Set the photo with either a JSON `photo_url` or raw image bytes in the `file`
53
+ * field of a multipart form. Images must be JPEG, PNG, or GIF, at most 5 MB, and
54
+ * no more than 25 million aggregate decoded pixels. URL images must use a direct,
55
+ * publicly resolvable https URL; redirects are not followed. Replacing or clearing
56
+ * the photo replaces the current stored reference and attempts to delete the
57
+ * superseded object; no history is exposed through the API. Supported line types
58
+ * are checked automatically; ineligible lines return `unsupported_line`. Failed
59
+ * requests are not replayed automatically; retrying the same desired state is
60
+ * safe.
61
+ *
62
+ * By default an eligible Sendblue line in the group is selected automatically.
63
+ * Pass `from_number` to require a specific Sendblue line: it must have an iMessage
64
+ * mapping for this group, and if that line cannot act the request fails without
65
+ * falling back to another line. The success response reports the line that
66
+ * performed the change as `from_number`.
67
+ *
68
+ * @example
69
+ * ```ts
70
+ * const response = await client.v2.groups.setPhoto(
71
+ * 'sb_group_608acc54-d0d7-4b41-8092-9ff6e1e70455',
72
+ * { photo_url: 'https://example.com/team-photo.png' },
73
+ * );
74
+ * ```
75
+ */
76
+ setPhoto(groupID: string, body: GroupSetPhotoParams, options?: RequestOptions): APIPromise<GroupSetPhotoResponse>;
38
77
  }
39
78
  export interface GroupRetrieveResponse {
40
79
  data?: GroupRetrieveResponse.Data;
@@ -45,6 +84,11 @@ export declare namespace GroupRetrieveResponse {
45
84
  created_at?: string;
46
85
  group_id?: string;
47
86
  group_name?: string;
87
+ /**
88
+ * Device-verified current group photo metadata; null when the group has no
89
+ * verified photo
90
+ */
91
+ group_photo?: GroupsAPI.GroupPhoto | null;
48
92
  latest_comm_at?: string | null;
49
93
  latest_message_id?: string | null;
50
94
  /**
@@ -100,21 +144,62 @@ export interface GroupRenameResponse {
100
144
  }
101
145
  export declare namespace GroupRenameResponse {
102
146
  interface Data {
147
+ /**
148
+ * Sendblue line that performed the change
149
+ */
150
+ from_number: string | null;
103
151
  group_id: string;
104
152
  /**
105
153
  * Device-verified name; empty when cleared
106
154
  */
107
155
  group_name: string;
108
- service: 'iMessage';
156
+ }
157
+ }
158
+ export interface GroupSetPhotoResponse {
159
+ data: GroupSetPhotoResponse.Data;
160
+ status: 'OK';
161
+ }
162
+ export declare namespace GroupSetPhotoResponse {
163
+ interface Data {
164
+ /**
165
+ * Sendblue line that performed the change
166
+ */
167
+ from_number: string | null;
168
+ group_id: string;
169
+ /**
170
+ * Device-verified current photo; null after a verified clear
171
+ */
172
+ group_photo: GroupsAPI.GroupPhoto | null;
109
173
  }
110
174
  }
111
175
  export interface GroupRenameParams {
112
176
  /**
113
- * New group name, or null/empty string to clear it
177
+ * New group name; whitespace-only values are rejected, while null or an empty
178
+ * string clears it
179
+ */
180
+ group_name: string | null;
181
+ /**
182
+ * Sendblue line that must perform the change; it must have an iMessage mapping for
183
+ * this group, and no other line is used if it cannot act. Omit or pass null for
184
+ * automatic selection
185
+ */
186
+ from_number?: string | null;
187
+ }
188
+ export interface GroupSetPhotoParams {
189
+ /**
190
+ * Direct, publicly resolvable https URL of the image to set (JPEG, PNG, or GIF, at
191
+ * most 5 MB and 25 million aggregate decoded pixels; redirects are not followed);
192
+ * null clears the group photo
193
+ */
194
+ photo_url: string | null;
195
+ /**
196
+ * Sendblue line that must perform the change; it must have an iMessage mapping for
197
+ * this group, and no other line is used if it cannot act. Omit or pass null for
198
+ * automatic selection
114
199
  */
115
- name: string | null;
200
+ from_number?: string | null;
116
201
  }
117
202
  export declare namespace Groups {
118
- export { type GroupRetrieveResponse as GroupRetrieveResponse, type GroupRenameResponse as GroupRenameResponse, type GroupRenameParams as GroupRenameParams, };
203
+ export { type GroupRetrieveResponse as GroupRetrieveResponse, type GroupRenameResponse as GroupRenameResponse, type GroupSetPhotoResponse as GroupSetPhotoResponse, type GroupRenameParams as GroupRenameParams, type GroupSetPhotoParams as GroupSetPhotoParams, };
119
204
  }
120
205
  //# sourceMappingURL=groups.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"groups.d.ts","sourceRoot":"","sources":["../../src/resources/v2/groups.ts"],"names":[],"m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M,CAAC;IAC9B,OAAO,EACL,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,mBAAmB,IAAI,mBAAmB,GAChD,CAAC;CACH"}
@@ -3,6 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  exports.Groups = void 0;
5
5
  const resource_1 = require("../../core/resource.js");
6
+ const uploads_1 = require("../../internal/uploads.js");
6
7
  const path_1 = require("../../internal/utils/path.js");
7
8
  /**
8
9
  * Operations for group messaging (beta)
@@ -31,17 +32,57 @@ class Groups extends resource_1.APIResource {
31
32
  * must be online and support group name changes. Failed requests are not replayed
32
33
  * automatically; retrying the same desired state is safe.
33
34
  *
35
+ * By default an eligible Sendblue line in the group is selected automatically.
36
+ * Pass `from_number` to require a specific Sendblue line: it must have an iMessage
37
+ * mapping for this group, and if that line cannot act the request fails without
38
+ * falling back to another line. The success response reports the line that
39
+ * performed the change as `from_number`.
40
+ *
34
41
  * @example
35
42
  * ```ts
36
43
  * const response = await client.v2.groups.rename(
37
44
  * 'sb_group_608acc54-d0d7-4b41-8092-9ff6e1e70455',
38
- * { name: 'Project Falcon' },
45
+ * { group_name: 'Project Falcon' },
39
46
  * );
40
47
  * ```
41
48
  */
42
49
  rename(groupID, body, options) {
43
50
  return this._client.post((0, path_1.path) `/api/v2/groups/${groupID}/name`, { body, ...options });
44
51
  }
52
+ /**
53
+ * Sets the Apple-visible photo of an existing iMessage group and waits for the
54
+ * Sendblue line to verify the resulting device state. Pass `null` to clear the
55
+ * photo. A set is verified only when the device-created photo transfer becomes the
56
+ * chat's current photo; the verified photo is then persisted with the group and
57
+ * returned on group retrieval with an image URL.
58
+ *
59
+ * Set the photo with either a JSON `photo_url` or raw image bytes in the `file`
60
+ * field of a multipart form. Images must be JPEG, PNG, or GIF, at most 5 MB, and
61
+ * no more than 25 million aggregate decoded pixels. URL images must use a direct,
62
+ * publicly resolvable https URL; redirects are not followed. Replacing or clearing
63
+ * the photo replaces the current stored reference and attempts to delete the
64
+ * superseded object; no history is exposed through the API. Supported line types
65
+ * are checked automatically; ineligible lines return `unsupported_line`. Failed
66
+ * requests are not replayed automatically; retrying the same desired state is
67
+ * safe.
68
+ *
69
+ * By default an eligible Sendblue line in the group is selected automatically.
70
+ * Pass `from_number` to require a specific Sendblue line: it must have an iMessage
71
+ * mapping for this group, and if that line cannot act the request fails without
72
+ * falling back to another line. The success response reports the line that
73
+ * performed the change as `from_number`.
74
+ *
75
+ * @example
76
+ * ```ts
77
+ * const response = await client.v2.groups.setPhoto(
78
+ * 'sb_group_608acc54-d0d7-4b41-8092-9ff6e1e70455',
79
+ * { photo_url: 'https://example.com/team-photo.png' },
80
+ * );
81
+ * ```
82
+ */
83
+ setPhoto(groupID, body, options) {
84
+ return this._client.post((0, path_1.path) `/api/v2/groups/${groupID}/photo`, (0, uploads_1.maybeMultipartFormRequestOptions)({ body, ...options }, this._client));
85
+ }
45
86
  }
46
87
  exports.Groups = Groups;
47
88
  //# 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;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
+ {"version":3,"file":"groups.js","sourceRoot":"","sources":["../../src/resources/v2/groups.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAIlD,uDAA0E;AAC1E,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;;;;;;;;;;;;;;;;;;;;;;OAsBG;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;IAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA8BG;IACH,QAAQ,CACN,OAAe,EACf,IAAyB,EACzB,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CACtB,IAAA,WAAI,EAAA,kBAAkB,OAAO,QAAQ,EACrC,IAAA,0CAAgC,EAAC,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,EAAE,IAAI,CAAC,OAAO,CAAC,CACrE,CAAC;IACJ,CAAC;CACF;AAxFD,wBAwFC"}
@@ -1,5 +1,6 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
  import { APIResource } from "../../core/resource.mjs";
3
+ import { maybeMultipartFormRequestOptions } from "../../internal/uploads.mjs";
3
4
  import { path } from "../../internal/utils/path.mjs";
4
5
  /**
5
6
  * Operations for group messaging (beta)
@@ -28,16 +29,56 @@ export class Groups extends APIResource {
28
29
  * must be online and support group name changes. Failed requests are not replayed
29
30
  * automatically; retrying the same desired state is safe.
30
31
  *
32
+ * By default an eligible Sendblue line in the group is selected automatically.
33
+ * Pass `from_number` to require a specific Sendblue line: it must have an iMessage
34
+ * mapping for this group, and if that line cannot act the request fails without
35
+ * falling back to another line. The success response reports the line that
36
+ * performed the change as `from_number`.
37
+ *
31
38
  * @example
32
39
  * ```ts
33
40
  * const response = await client.v2.groups.rename(
34
41
  * 'sb_group_608acc54-d0d7-4b41-8092-9ff6e1e70455',
35
- * { name: 'Project Falcon' },
42
+ * { group_name: 'Project Falcon' },
36
43
  * );
37
44
  * ```
38
45
  */
39
46
  rename(groupID, body, options) {
40
47
  return this._client.post(path `/api/v2/groups/${groupID}/name`, { body, ...options });
41
48
  }
49
+ /**
50
+ * Sets the Apple-visible photo of an existing iMessage group and waits for the
51
+ * Sendblue line to verify the resulting device state. Pass `null` to clear the
52
+ * photo. A set is verified only when the device-created photo transfer becomes the
53
+ * chat's current photo; the verified photo is then persisted with the group and
54
+ * returned on group retrieval with an image URL.
55
+ *
56
+ * Set the photo with either a JSON `photo_url` or raw image bytes in the `file`
57
+ * field of a multipart form. Images must be JPEG, PNG, or GIF, at most 5 MB, and
58
+ * no more than 25 million aggregate decoded pixels. URL images must use a direct,
59
+ * publicly resolvable https URL; redirects are not followed. Replacing or clearing
60
+ * the photo replaces the current stored reference and attempts to delete the
61
+ * superseded object; no history is exposed through the API. Supported line types
62
+ * are checked automatically; ineligible lines return `unsupported_line`. Failed
63
+ * requests are not replayed automatically; retrying the same desired state is
64
+ * safe.
65
+ *
66
+ * By default an eligible Sendblue line in the group is selected automatically.
67
+ * Pass `from_number` to require a specific Sendblue line: it must have an iMessage
68
+ * mapping for this group, and if that line cannot act the request fails without
69
+ * falling back to another line. The success response reports the line that
70
+ * performed the change as `from_number`.
71
+ *
72
+ * @example
73
+ * ```ts
74
+ * const response = await client.v2.groups.setPhoto(
75
+ * 'sb_group_608acc54-d0d7-4b41-8092-9ff6e1e70455',
76
+ * { photo_url: 'https://example.com/team-photo.png' },
77
+ * );
78
+ * ```
79
+ */
80
+ setPhoto(groupID, body, options) {
81
+ return this._client.post(path `/api/v2/groups/${groupID}/photo`, maybeMultipartFormRequestOptions({ body, ...options }, this._client));
82
+ }
42
83
  }
43
84
  //# sourceMappingURL=groups.mjs.map
@@ -1 +1 @@
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
+ {"version":3,"file":"groups.mjs","sourceRoot":"","sources":["../../src/resources/v2/groups.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAIlD,OAAO,EAAE,gCAAgC,EAAE,mCAA+B;AAC1E,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;;;;;;;;;;;;;;;;;;;;;;OAsBG;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;IAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA8BG;IACH,QAAQ,CACN,OAAe,EACf,IAAyB,EACzB,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CACtB,IAAI,CAAA,kBAAkB,OAAO,QAAQ,EACrC,gCAAgC,CAAC,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,EAAE,IAAI,CAAC,OAAO,CAAC,CACrE,CAAC;IACJ,CAAC;CACF"}
@@ -1,4 +1,4 @@
1
- export { Groups, type GroupRetrieveResponse, type GroupRenameResponse, type GroupRenameParams, } from "./groups.mjs";
1
+ export { Groups, type GroupRetrieveResponse, type GroupRenameResponse, type GroupSetPhotoResponse, type GroupRenameParams, type GroupSetPhotoParams, } 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,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
+ {"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,qBAAqB,EAC1B,KAAK,iBAAiB,EACtB,KAAK,mBAAmB,GACzB,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, type GroupRenameResponse, type GroupRenameParams, } from "./groups.js";
1
+ export { Groups, type GroupRetrieveResponse, type GroupRenameResponse, type GroupSetPhotoResponse, type GroupRenameParams, type GroupSetPhotoParams, } 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,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"}
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,qBAAqB,EAC1B,KAAK,iBAAiB,EACtB,KAAK,mBAAmB,GACzB,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"}
@@ -1 +1 @@
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"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/v2/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,sCAOkB;AANhB,gGAAA,MAAM,OAAA;AAOR,oCAOiB;AANf,8FAAA,KAAK,OAAA;AAOP,yCAA8D;AAArD,6FAAA,IAAI,OAAA;AACb,8BAA0B;AAAjB,wFAAA,EAAE,OAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/v2/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EACL,MAAM,GAIP,qBAAiB;AAClB,OAAO,EACL,KAAK,GAMN,oBAAgB;AACjB,OAAO,EAAE,IAAI,EAA4B,yBAAqB;AAC9D,OAAO,EAAE,EAAE,EAAE,iBAAa"}
1
+ {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/v2/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EACL,MAAM,GAMP,qBAAiB;AAClB,OAAO,EACL,KAAK,GAMN,oBAAgB;AACjB,OAAO,EAAE,IAAI,EAA4B,yBAAqB;AAC9D,OAAO,EAAE,EAAE,EAAE,iBAAa"}
@@ -1,6 +1,6 @@
1
1
  import { APIResource } from "../../core/resource.mjs";
2
2
  import * as GroupsAPI from "./groups.mjs";
3
- import { GroupRenameParams, GroupRenameResponse, GroupRetrieveResponse, Groups } from "./groups.mjs";
3
+ import { GroupRenameParams, GroupRenameResponse, GroupRetrieveResponse, GroupSetPhotoParams, GroupSetPhotoResponse, Groups } from "./groups.mjs";
4
4
  import * as SeatsAPI from "./seats.mjs";
5
5
  import { SeatCountParams, SeatCountResponse, SeatListParams, SeatListResponse, SeatRetrieveResponse, Seats } from "./seats.mjs";
6
6
  import * as TotpAPI from "./totp/totp.mjs";
@@ -13,6 +13,6 @@ export declare class V2 extends APIResource {
13
13
  export declare namespace V2 {
14
14
  export { Totp as Totp, type TotpGetCodeResponse as TotpGetCodeResponse };
15
15
  export { Seats as Seats, type SeatRetrieveResponse as SeatRetrieveResponse, type SeatListResponse as SeatListResponse, type SeatCountResponse as SeatCountResponse, type SeatListParams as SeatListParams, type SeatCountParams as SeatCountParams, };
16
- export { Groups as Groups, type GroupRetrieveResponse as GroupRetrieveResponse, type GroupRenameResponse as GroupRenameResponse, type GroupRenameParams as GroupRenameParams, };
16
+ export { Groups as Groups, type GroupRetrieveResponse as GroupRetrieveResponse, type GroupRenameResponse as GroupRenameResponse, type GroupSetPhotoResponse as GroupSetPhotoResponse, type GroupRenameParams as GroupRenameParams, type GroupSetPhotoParams as GroupSetPhotoParams, };
17
17
  }
18
18
  //# sourceMappingURL=v2.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"v2.d.mts","sourceRoot":"","sources":["../../src/resources/v2/v2.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,KAAK,SAAS,qBAAiB;AACtC,OAAO,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,qBAAqB,EAAE,MAAM,EAAE,qBAAiB;AACjG,OAAO,KAAK,QAAQ,oBAAgB;AACpC,OAAO,EACL,eAAe,EACf,iBAAiB,EACjB,cAAc,EACd,gBAAgB,EAChB,oBAAoB,EACpB,KAAK,EACN,oBAAgB;AACjB,OAAO,KAAK,OAAO,wBAAoB;AACvC,OAAO,EAAE,IAAI,EAAE,mBAAmB,EAAE,wBAAoB;AAExD,qBAAa,EAAG,SAAQ,WAAW;IACjC,IAAI,EAAE,OAAO,CAAC,IAAI,CAAkC;IACpD,KAAK,EAAE,QAAQ,CAAC,KAAK,CAAoC;IACzD,MAAM,EAAE,SAAS,CAAC,MAAM,CAAsC;CAC/D;AAMD,MAAM,CAAC,OAAO,WAAW,EAAE,CAAC;IAC1B,OAAO,EAAE,IAAI,IAAI,IAAI,EAAE,KAAK,mBAAmB,IAAI,mBAAmB,EAAE,CAAC;IAEzE,OAAO,EACL,KAAK,IAAI,KAAK,EACd,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,cAAc,IAAI,cAAc,EACrC,KAAK,eAAe,IAAI,eAAe,GACxC,CAAC;IAEF,OAAO,EACL,MAAM,IAAI,MAAM,EAChB,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,iBAAiB,IAAI,iBAAiB,GAC5C,CAAC;CACH"}
1
+ {"version":3,"file":"v2.d.mts","sourceRoot":"","sources":["../../src/resources/v2/v2.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,KAAK,SAAS,qBAAiB;AACtC,OAAO,EACL,iBAAiB,EACjB,mBAAmB,EACnB,qBAAqB,EACrB,mBAAmB,EACnB,qBAAqB,EACrB,MAAM,EACP,qBAAiB;AAClB,OAAO,KAAK,QAAQ,oBAAgB;AACpC,OAAO,EACL,eAAe,EACf,iBAAiB,EACjB,cAAc,EACd,gBAAgB,EAChB,oBAAoB,EACpB,KAAK,EACN,oBAAgB;AACjB,OAAO,KAAK,OAAO,wBAAoB;AACvC,OAAO,EAAE,IAAI,EAAE,mBAAmB,EAAE,wBAAoB;AAExD,qBAAa,EAAG,SAAQ,WAAW;IACjC,IAAI,EAAE,OAAO,CAAC,IAAI,CAAkC;IACpD,KAAK,EAAE,QAAQ,CAAC,KAAK,CAAoC;IACzD,MAAM,EAAE,SAAS,CAAC,MAAM,CAAsC;CAC/D;AAMD,MAAM,CAAC,OAAO,WAAW,EAAE,CAAC;IAC1B,OAAO,EAAE,IAAI,IAAI,IAAI,EAAE,KAAK,mBAAmB,IAAI,mBAAmB,EAAE,CAAC;IAEzE,OAAO,EACL,KAAK,IAAI,KAAK,EACd,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,cAAc,IAAI,cAAc,EACrC,KAAK,eAAe,IAAI,eAAe,GACxC,CAAC;IAEF,OAAO,EACL,MAAM,IAAI,MAAM,EAChB,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,mBAAmB,IAAI,mBAAmB,GAChD,CAAC;CACH"}
@@ -1,6 +1,6 @@
1
1
  import { APIResource } from "../../core/resource.js";
2
2
  import * as GroupsAPI from "./groups.js";
3
- import { GroupRenameParams, GroupRenameResponse, GroupRetrieveResponse, Groups } from "./groups.js";
3
+ import { GroupRenameParams, GroupRenameResponse, GroupRetrieveResponse, GroupSetPhotoParams, GroupSetPhotoResponse, Groups } from "./groups.js";
4
4
  import * as SeatsAPI from "./seats.js";
5
5
  import { SeatCountParams, SeatCountResponse, SeatListParams, SeatListResponse, SeatRetrieveResponse, Seats } from "./seats.js";
6
6
  import * as TotpAPI from "./totp/totp.js";
@@ -13,6 +13,6 @@ export declare class V2 extends APIResource {
13
13
  export declare namespace V2 {
14
14
  export { Totp as Totp, type TotpGetCodeResponse as TotpGetCodeResponse };
15
15
  export { Seats as Seats, type SeatRetrieveResponse as SeatRetrieveResponse, type SeatListResponse as SeatListResponse, type SeatCountResponse as SeatCountResponse, type SeatListParams as SeatListParams, type SeatCountParams as SeatCountParams, };
16
- export { Groups as Groups, type GroupRetrieveResponse as GroupRetrieveResponse, type GroupRenameResponse as GroupRenameResponse, type GroupRenameParams as GroupRenameParams, };
16
+ export { Groups as Groups, type GroupRetrieveResponse as GroupRetrieveResponse, type GroupRenameResponse as GroupRenameResponse, type GroupSetPhotoResponse as GroupSetPhotoResponse, type GroupRenameParams as GroupRenameParams, type GroupSetPhotoParams as GroupSetPhotoParams, };
17
17
  }
18
18
  //# sourceMappingURL=v2.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"v2.d.ts","sourceRoot":"","sources":["../../src/resources/v2/v2.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,KAAK,SAAS,oBAAiB;AACtC,OAAO,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,qBAAqB,EAAE,MAAM,EAAE,oBAAiB;AACjG,OAAO,KAAK,QAAQ,mBAAgB;AACpC,OAAO,EACL,eAAe,EACf,iBAAiB,EACjB,cAAc,EACd,gBAAgB,EAChB,oBAAoB,EACpB,KAAK,EACN,mBAAgB;AACjB,OAAO,KAAK,OAAO,uBAAoB;AACvC,OAAO,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AI,GAAG,WAAI,CAAC;AACf,EAAE,CAAC,KAAK,GAAG,aAAK,CAAC;AACjB,EAAE,CAAC,MAAM,GAAG,eAAM,CAAC"}
1
+ {"version":3,"file":"v2.js","sourceRoot":"","sources":["../../src/resources/v2/v2.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,qDAAkD;AAClD,+DAAsC;AACtC,wCAOkB;AAClB,6DAAoC;AACpC,sCAOiB;AACjB,gEAAuC;AACvC,yCAAwD;AAExD,MAAa,EAAG,SAAQ,sBAAW;IAAnC;;QACE,SAAI,GAAiB,IAAI,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACpD,UAAK,GAAmB,IAAI,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACzD,WAAM,GAAqB,IAAI,SAAS,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAChE,CAAC;CAAA;AAJD,gBAIC;AAED,EAAE,CAAC,IAAI,GAAG,WAAI,CAAC;AACf,EAAE,CAAC,KAAK,GAAG,aAAK,CAAC;AACjB,EAAE,CAAC,MAAM,GAAG,eAAM,CAAC"}
@@ -1,7 +1,7 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
  import { APIResource } from "../../core/resource.mjs";
3
3
  import * as GroupsAPI from "./groups.mjs";
4
- import { Groups } from "./groups.mjs";
4
+ import { Groups, } from "./groups.mjs";
5
5
  import * as SeatsAPI from "./seats.mjs";
6
6
  import { Seats, } from "./seats.mjs";
7
7
  import * as TotpAPI from "./totp/totp.mjs";
@@ -1 +1 @@
1
- {"version":3,"file":"v2.mjs","sourceRoot":"","sources":["../../src/resources/v2/v2.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,KAAK,SAAS,qBAAiB;AACtC,OAAO,EAAiE,MAAM,EAAE,qBAAiB;AACjG,O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