sendblue 3.16.1 → 3.18.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +26 -0
- package/README.md +2 -2
- package/client.d.mts +2 -2
- package/client.d.mts.map +1 -1
- package/client.d.ts +2 -2
- package/client.d.ts.map +1 -1
- package/client.js.map +1 -1
- package/client.mjs +1 -1
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/groups.d.mts +12 -1
- package/resources/groups.d.mts.map +1 -1
- package/resources/groups.d.ts +12 -1
- package/resources/groups.d.ts.map +1 -1
- package/resources/index.d.mts +1 -1
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +1 -1
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs.map +1 -1
- package/resources/lookups.d.mts +10 -5
- package/resources/lookups.d.mts.map +1 -1
- package/resources/lookups.d.ts +10 -5
- package/resources/lookups.d.ts.map +1 -1
- package/resources/lookups.js +7 -2
- package/resources/lookups.js.map +1 -1
- package/resources/lookups.mjs +7 -2
- package/resources/lookups.mjs.map +1 -1
- package/resources/messages/messages.d.mts +23 -0
- package/resources/messages/messages.d.mts.map +1 -1
- package/resources/messages/messages.d.ts +23 -0
- package/resources/messages/messages.d.ts.map +1 -1
- package/resources/messages/messages.js.map +1 -1
- package/resources/messages/messages.mjs.map +1 -1
- package/resources/v2/groups.d.mts +86 -1
- package/resources/v2/groups.d.mts.map +1 -1
- package/resources/v2/groups.d.ts +86 -1
- package/resources/v2/groups.d.ts.map +1 -1
- package/resources/v2/groups.js +41 -0
- package/resources/v2/groups.js.map +1 -1
- package/resources/v2/groups.mjs +41 -0
- package/resources/v2/groups.mjs.map +1 -1
- package/resources/v2/index.d.mts +1 -1
- package/resources/v2/index.d.mts.map +1 -1
- package/resources/v2/index.d.ts +1 -1
- package/resources/v2/index.d.ts.map +1 -1
- package/resources/v2/index.js.map +1 -1
- package/resources/v2/index.mjs.map +1 -1
- package/resources/v2/v2.d.mts +2 -2
- package/resources/v2/v2.d.mts.map +1 -1
- package/resources/v2/v2.d.ts +2 -2
- package/resources/v2/v2.d.ts.map +1 -1
- package/resources/v2/v2.js.map +1 -1
- package/resources/v2/v2.mjs +1 -1
- package/resources/v2/v2.mjs.map +1 -1
- package/src/client.ts +8 -1
- package/src/resources/groups.ts +14 -0
- package/src/resources/index.ts +1 -0
- package/src/resources/lookups.ts +10 -5
- package/src/resources/messages/messages.ts +27 -0
- package/src/resources/v2/groups.ts +108 -0
- package/src/resources/v2/index.ts +2 -0
- package/src/resources/v2/v2.ts +10 -1
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
package/resources/v2/groups.js
CHANGED
|
@@ -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,6 +32,12 @@ 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(
|
|
@@ -42,6 +49,40 @@ class Groups extends resource_1.APIResource {
|
|
|
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;
|
|
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"}
|
package/resources/v2/groups.mjs
CHANGED
|
@@ -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,6 +29,12 @@ 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(
|
|
@@ -39,5 +46,39 @@ export class Groups extends APIResource {
|
|
|
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;
|
|
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"}
|
package/resources/v2/index.d.mts
CHANGED
|
@@ -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,
|
|
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"}
|
package/resources/v2/index.d.ts
CHANGED
|
@@ -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,
|
|
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,
|
|
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,
|
|
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"}
|
package/resources/v2/v2.d.mts
CHANGED
|
@@ -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,
|
|
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"}
|
package/resources/v2/v2.d.ts
CHANGED
|
@@ -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
|
package/resources/v2/v2.d.ts.map
CHANGED
|
@@ -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,
|
|
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,EACL,iBAAiB,EACjB,mBAAmB,EACnB,qBAAqB,EACrB,mBAAmB,EACnB,qBAAqB,EACrB,MAAM,EACP,oBAAiB;AAClB,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,EAAE,IAAI,EAAE,mBAAmB,EAAE,uBAAoB;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"}
|
package/resources/v2/v2.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"v2.js","sourceRoot":"","sources":["../../src/resources/v2/v2.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,qDAAkD;AAClD,+DAAsC;AACtC,
|
|
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"}
|
package/resources/v2/v2.mjs
CHANGED
|
@@ -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";
|
package/resources/v2/v2.mjs.map
CHANGED
|
@@ -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,
|
|
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,EAML,MAAM,GACP,qBAAiB;AAClB,OAAO,KAAK,QAAQ,oBAAgB;AACpC,OAAO,EAML,KAAK,GACN,oBAAgB;AACjB,OAAO,KAAK,OAAO,wBAAoB;AACvC,OAAO,EAAE,IAAI,EAAuB,wBAAoB;AAExD,MAAM,OAAO,EAAG,SAAQ,WAAW;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;AAED,EAAE,CAAC,IAAI,GAAG,IAAI,CAAC;AACf,EAAE,CAAC,KAAK,GAAG,KAAK,CAAC;AACjB,EAAE,CAAC,MAAM,GAAG,MAAM,CAAC"}
|
package/src/client.ts
CHANGED
|
@@ -18,7 +18,13 @@ import * as Uploads from './core/uploads';
|
|
|
18
18
|
import * as API from './resources/index';
|
|
19
19
|
import { APIPromise } from './core/api-promise';
|
|
20
20
|
import { AccountEvent, EventStreamParams, Events } from './resources/events';
|
|
21
|
-
import {
|
|
21
|
+
import {
|
|
22
|
+
GroupModifyParams,
|
|
23
|
+
GroupModifyResponse,
|
|
24
|
+
GroupPhoto,
|
|
25
|
+
GroupSendMessageParams,
|
|
26
|
+
Groups,
|
|
27
|
+
} from './resources/groups';
|
|
22
28
|
import {
|
|
23
29
|
Location,
|
|
24
30
|
LocationListParams,
|
|
@@ -944,6 +950,7 @@ export declare namespace SendblueAPI {
|
|
|
944
950
|
|
|
945
951
|
export {
|
|
946
952
|
Groups as Groups,
|
|
953
|
+
type GroupPhoto as GroupPhoto,
|
|
947
954
|
type GroupModifyResponse as GroupModifyResponse,
|
|
948
955
|
type GroupModifyParams as GroupModifyParams,
|
|
949
956
|
type GroupSendMessageParams as GroupSendMessageParams,
|
package/src/resources/groups.ts
CHANGED
|
@@ -49,6 +49,19 @@ export class Groups extends APIResource {
|
|
|
49
49
|
}
|
|
50
50
|
}
|
|
51
51
|
|
|
52
|
+
export interface GroupPhoto {
|
|
53
|
+
/**
|
|
54
|
+
* Device-verified identifier of the current Apple group photo
|
|
55
|
+
*/
|
|
56
|
+
photo_guid: string;
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* Direct URL for downloading the current photo; anyone with the exact URL can
|
|
60
|
+
* download it while the image exists
|
|
61
|
+
*/
|
|
62
|
+
url: string;
|
|
63
|
+
}
|
|
64
|
+
|
|
52
65
|
export interface GroupModifyResponse {
|
|
53
66
|
error?: string | null;
|
|
54
67
|
|
|
@@ -158,6 +171,7 @@ export namespace GroupSendMessageParams {
|
|
|
158
171
|
|
|
159
172
|
export declare namespace Groups {
|
|
160
173
|
export {
|
|
174
|
+
type GroupPhoto as GroupPhoto,
|
|
161
175
|
type GroupModifyResponse as GroupModifyResponse,
|
|
162
176
|
type GroupModifyParams as GroupModifyParams,
|
|
163
177
|
type GroupSendMessageParams as GroupSendMessageParams,
|
package/src/resources/index.ts
CHANGED
package/src/resources/lookups.ts
CHANGED
|
@@ -9,8 +9,13 @@ import { RequestOptions } from '../internal/request-options';
|
|
|
9
9
|
*/
|
|
10
10
|
export class Lookups extends APIResource {
|
|
11
11
|
/**
|
|
12
|
-
*
|
|
13
|
-
*
|
|
12
|
+
* Check iMessage support for a phone number or email address. A successful result
|
|
13
|
+
* does not guarantee delivery. For email addresses, SMS means iMessage was not
|
|
14
|
+
* detected; it does not mean the address can receive SMS. The from_number query
|
|
15
|
+
* parameter does not select a sending line for this endpoint. Email results
|
|
16
|
+
* indicating no iMessage support are not cached. An inconclusive lookup returns a
|
|
17
|
+
* retryable error. Limit retries and use backoff after an inconclusive response. A
|
|
18
|
+
* lookup does not guarantee that upstream availability data was freshly refreshed.
|
|
14
19
|
*/
|
|
15
20
|
lookupNumber(
|
|
16
21
|
query: LookupLookupNumberParams,
|
|
@@ -22,19 +27,19 @@ export class Lookups extends APIResource {
|
|
|
22
27
|
|
|
23
28
|
export interface LookupLookupNumberResponse {
|
|
24
29
|
/**
|
|
25
|
-
* The number
|
|
30
|
+
* The normalized phone number or email address evaluated
|
|
26
31
|
*/
|
|
27
32
|
number?: string;
|
|
28
33
|
|
|
29
34
|
/**
|
|
30
|
-
*
|
|
35
|
+
* Whether iMessage support was detected
|
|
31
36
|
*/
|
|
32
37
|
service?: 'iMessage' | 'SMS';
|
|
33
38
|
}
|
|
34
39
|
|
|
35
40
|
export interface LookupLookupNumberParams {
|
|
36
41
|
/**
|
|
37
|
-
* The number
|
|
42
|
+
* The phone number in E.164 format or email address to evaluate
|
|
38
43
|
*/
|
|
39
44
|
number: string;
|
|
40
45
|
}
|
|
@@ -270,6 +270,13 @@ export interface MessageResponse {
|
|
|
270
270
|
*/
|
|
271
271
|
error_code?: number;
|
|
272
272
|
|
|
273
|
+
/**
|
|
274
|
+
* Stable identifier of the rule that declined the message, e.g.
|
|
275
|
+
* `PRE_REPLY_LIMIT_REACHED` or `OPTED_OUT`. Branch on this field. `null` when the
|
|
276
|
+
* message was not declined by a rule.
|
|
277
|
+
*/
|
|
278
|
+
error_key?: string | null;
|
|
279
|
+
|
|
273
280
|
/**
|
|
274
281
|
* Error message if message failed
|
|
275
282
|
*/
|
|
@@ -564,6 +571,13 @@ export namespace MessageRetrieveResponse {
|
|
|
564
571
|
*/
|
|
565
572
|
error_detail?: string | null;
|
|
566
573
|
|
|
574
|
+
/**
|
|
575
|
+
* Stable identifier of the rule that declined the message, e.g.
|
|
576
|
+
* `PRE_REPLY_LIMIT_REACHED` or `OPTED_OUT`. Branch on this field. `null` when the
|
|
577
|
+
* message was not declined by a rule.
|
|
578
|
+
*/
|
|
579
|
+
error_key?: string | null;
|
|
580
|
+
|
|
567
581
|
/**
|
|
568
582
|
* Error message if message failed
|
|
569
583
|
*/
|
|
@@ -809,6 +823,13 @@ export namespace MessageListResponse {
|
|
|
809
823
|
*/
|
|
810
824
|
error_detail?: string | null;
|
|
811
825
|
|
|
826
|
+
/**
|
|
827
|
+
* Stable identifier of the rule that declined the message, e.g.
|
|
828
|
+
* `PRE_REPLY_LIMIT_REACHED` or `OPTED_OUT`. Branch on this field. `null` when the
|
|
829
|
+
* message was not declined by a rule.
|
|
830
|
+
*/
|
|
831
|
+
error_key?: string | null;
|
|
832
|
+
|
|
812
833
|
/**
|
|
813
834
|
* Error message if message failed
|
|
814
835
|
*/
|
|
@@ -1204,6 +1225,12 @@ export interface MessageSendParams {
|
|
|
1204
1225
|
*/
|
|
1205
1226
|
media_url?: string;
|
|
1206
1227
|
|
|
1228
|
+
/**
|
|
1229
|
+
* Let one otherwise-blocked message through to a contact who has not replied yet,
|
|
1230
|
+
* once per contact per line per day. Must be the boolean `true`.
|
|
1231
|
+
*/
|
|
1232
|
+
pre_reply_override?: boolean;
|
|
1233
|
+
|
|
1207
1234
|
/**
|
|
1208
1235
|
* Optional inline-reply target. This may be combined with `app_card`; the
|
|
1209
1236
|
* resulting App Card is sent as an inline reply to the target.
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
3
|
import { APIResource } from '../../core/resource';
|
|
4
|
+
import * as GroupsAPI from '../groups';
|
|
4
5
|
import { APIPromise } from '../../core/api-promise';
|
|
5
6
|
import { RequestOptions } from '../../internal/request-options';
|
|
7
|
+
import { maybeMultipartFormRequestOptions } from '../../internal/uploads';
|
|
6
8
|
import { path } from '../../internal/utils/path';
|
|
7
9
|
|
|
8
10
|
/**
|
|
@@ -33,6 +35,12 @@ export class Groups extends APIResource {
|
|
|
33
35
|
* must be online and support group name changes. Failed requests are not replayed
|
|
34
36
|
* automatically; retrying the same desired state is safe.
|
|
35
37
|
*
|
|
38
|
+
* By default an eligible Sendblue line in the group is selected automatically.
|
|
39
|
+
* Pass `from_number` to require a specific Sendblue line: it must have an iMessage
|
|
40
|
+
* mapping for this group, and if that line cannot act the request fails without
|
|
41
|
+
* falling back to another line. The success response reports the line that
|
|
42
|
+
* performed the change as `from_number`.
|
|
43
|
+
*
|
|
36
44
|
* @example
|
|
37
45
|
* ```ts
|
|
38
46
|
* const response = await client.v2.groups.rename(
|
|
@@ -48,6 +56,48 @@ export class Groups extends APIResource {
|
|
|
48
56
|
): APIPromise<GroupRenameResponse> {
|
|
49
57
|
return this._client.post(path`/api/v2/groups/${groupID}/name`, { body, ...options });
|
|
50
58
|
}
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* Sets the Apple-visible photo of an existing iMessage group and waits for the
|
|
62
|
+
* Sendblue line to verify the resulting device state. Pass `null` to clear the
|
|
63
|
+
* photo. A set is verified only when the device-created photo transfer becomes the
|
|
64
|
+
* chat's current photo; the verified photo is then persisted with the group and
|
|
65
|
+
* returned on group retrieval with an image URL.
|
|
66
|
+
*
|
|
67
|
+
* Set the photo with either a JSON `photo_url` or raw image bytes in the `file`
|
|
68
|
+
* field of a multipart form. Images must be JPEG, PNG, or GIF, at most 5 MB, and
|
|
69
|
+
* no more than 25 million aggregate decoded pixels. URL images must use a direct,
|
|
70
|
+
* publicly resolvable https URL; redirects are not followed. Replacing or clearing
|
|
71
|
+
* the photo replaces the current stored reference and attempts to delete the
|
|
72
|
+
* superseded object; no history is exposed through the API. Supported line types
|
|
73
|
+
* are checked automatically; ineligible lines return `unsupported_line`. Failed
|
|
74
|
+
* requests are not replayed automatically; retrying the same desired state is
|
|
75
|
+
* safe.
|
|
76
|
+
*
|
|
77
|
+
* By default an eligible Sendblue line in the group is selected automatically.
|
|
78
|
+
* Pass `from_number` to require a specific Sendblue line: it must have an iMessage
|
|
79
|
+
* mapping for this group, and if that line cannot act the request fails without
|
|
80
|
+
* falling back to another line. The success response reports the line that
|
|
81
|
+
* performed the change as `from_number`.
|
|
82
|
+
*
|
|
83
|
+
* @example
|
|
84
|
+
* ```ts
|
|
85
|
+
* const response = await client.v2.groups.setPhoto(
|
|
86
|
+
* 'sb_group_608acc54-d0d7-4b41-8092-9ff6e1e70455',
|
|
87
|
+
* { photo_url: 'https://example.com/team-photo.png' },
|
|
88
|
+
* );
|
|
89
|
+
* ```
|
|
90
|
+
*/
|
|
91
|
+
setPhoto(
|
|
92
|
+
groupID: string,
|
|
93
|
+
body: GroupSetPhotoParams,
|
|
94
|
+
options?: RequestOptions,
|
|
95
|
+
): APIPromise<GroupSetPhotoResponse> {
|
|
96
|
+
return this._client.post(
|
|
97
|
+
path`/api/v2/groups/${groupID}/photo`,
|
|
98
|
+
maybeMultipartFormRequestOptions({ body, ...options }, this._client),
|
|
99
|
+
);
|
|
100
|
+
}
|
|
51
101
|
}
|
|
52
102
|
|
|
53
103
|
export interface GroupRetrieveResponse {
|
|
@@ -64,6 +114,12 @@ export namespace GroupRetrieveResponse {
|
|
|
64
114
|
|
|
65
115
|
group_name?: string;
|
|
66
116
|
|
|
117
|
+
/**
|
|
118
|
+
* Device-verified current group photo metadata; null when the group has no
|
|
119
|
+
* verified photo
|
|
120
|
+
*/
|
|
121
|
+
group_photo?: GroupsAPI.GroupPhoto | null;
|
|
122
|
+
|
|
67
123
|
latest_comm_at?: string | null;
|
|
68
124
|
|
|
69
125
|
latest_message_id?: string | null;
|
|
@@ -134,6 +190,11 @@ export interface GroupRenameResponse {
|
|
|
134
190
|
|
|
135
191
|
export namespace GroupRenameResponse {
|
|
136
192
|
export interface Data {
|
|
193
|
+
/**
|
|
194
|
+
* Sendblue line that performed the change
|
|
195
|
+
*/
|
|
196
|
+
from_number: string | null;
|
|
197
|
+
|
|
137
198
|
group_id: string;
|
|
138
199
|
|
|
139
200
|
/**
|
|
@@ -143,18 +204,65 @@ export namespace GroupRenameResponse {
|
|
|
143
204
|
}
|
|
144
205
|
}
|
|
145
206
|
|
|
207
|
+
export interface GroupSetPhotoResponse {
|
|
208
|
+
data: GroupSetPhotoResponse.Data;
|
|
209
|
+
|
|
210
|
+
status: 'OK';
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
export namespace GroupSetPhotoResponse {
|
|
214
|
+
export interface Data {
|
|
215
|
+
/**
|
|
216
|
+
* Sendblue line that performed the change
|
|
217
|
+
*/
|
|
218
|
+
from_number: string | null;
|
|
219
|
+
|
|
220
|
+
group_id: string;
|
|
221
|
+
|
|
222
|
+
/**
|
|
223
|
+
* Device-verified current photo; null after a verified clear
|
|
224
|
+
*/
|
|
225
|
+
group_photo: GroupsAPI.GroupPhoto | null;
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
|
|
146
229
|
export interface GroupRenameParams {
|
|
147
230
|
/**
|
|
148
231
|
* New group name; whitespace-only values are rejected, while null or an empty
|
|
149
232
|
* string clears it
|
|
150
233
|
*/
|
|
151
234
|
group_name: string | null;
|
|
235
|
+
|
|
236
|
+
/**
|
|
237
|
+
* Sendblue line that must perform the change; it must have an iMessage mapping for
|
|
238
|
+
* this group, and no other line is used if it cannot act. Omit or pass null for
|
|
239
|
+
* automatic selection
|
|
240
|
+
*/
|
|
241
|
+
from_number?: string | null;
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
export interface GroupSetPhotoParams {
|
|
245
|
+
/**
|
|
246
|
+
* Direct, publicly resolvable https URL of the image to set (JPEG, PNG, or GIF, at
|
|
247
|
+
* most 5 MB and 25 million aggregate decoded pixels; redirects are not followed);
|
|
248
|
+
* null clears the group photo
|
|
249
|
+
*/
|
|
250
|
+
photo_url: string | null;
|
|
251
|
+
|
|
252
|
+
/**
|
|
253
|
+
* Sendblue line that must perform the change; it must have an iMessage mapping for
|
|
254
|
+
* this group, and no other line is used if it cannot act. Omit or pass null for
|
|
255
|
+
* automatic selection
|
|
256
|
+
*/
|
|
257
|
+
from_number?: string | null;
|
|
152
258
|
}
|
|
153
259
|
|
|
154
260
|
export declare namespace Groups {
|
|
155
261
|
export {
|
|
156
262
|
type GroupRetrieveResponse as GroupRetrieveResponse,
|
|
157
263
|
type GroupRenameResponse as GroupRenameResponse,
|
|
264
|
+
type GroupSetPhotoResponse as GroupSetPhotoResponse,
|
|
158
265
|
type GroupRenameParams as GroupRenameParams,
|
|
266
|
+
type GroupSetPhotoParams as GroupSetPhotoParams,
|
|
159
267
|
};
|
|
160
268
|
}
|
package/src/resources/v2/v2.ts
CHANGED
|
@@ -2,7 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
import { APIResource } from '../../core/resource';
|
|
4
4
|
import * as GroupsAPI from './groups';
|
|
5
|
-
import {
|
|
5
|
+
import {
|
|
6
|
+
GroupRenameParams,
|
|
7
|
+
GroupRenameResponse,
|
|
8
|
+
GroupRetrieveResponse,
|
|
9
|
+
GroupSetPhotoParams,
|
|
10
|
+
GroupSetPhotoResponse,
|
|
11
|
+
Groups,
|
|
12
|
+
} from './groups';
|
|
6
13
|
import * as SeatsAPI from './seats';
|
|
7
14
|
import {
|
|
8
15
|
SeatCountParams,
|
|
@@ -41,6 +48,8 @@ export declare namespace V2 {
|
|
|
41
48
|
Groups as Groups,
|
|
42
49
|
type GroupRetrieveResponse as GroupRetrieveResponse,
|
|
43
50
|
type GroupRenameResponse as GroupRenameResponse,
|
|
51
|
+
type GroupSetPhotoResponse as GroupSetPhotoResponse,
|
|
44
52
|
type GroupRenameParams as GroupRenameParams,
|
|
53
|
+
type GroupSetPhotoParams as GroupSetPhotoParams,
|
|
45
54
|
};
|
|
46
55
|
}
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '3.
|
|
1
|
+
export const VERSION = '3.18.0'; // x-release-please-version
|
package/version.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "3.
|
|
1
|
+
export declare const VERSION = "3.18.0";
|
|
2
2
|
//# sourceMappingURL=version.d.mts.map
|
package/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "3.
|
|
1
|
+
export declare const VERSION = "3.18.0";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/version.js
CHANGED
package/version.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '3.
|
|
1
|
+
export const VERSION = '3.18.0'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|