sendblue 3.13.0 → 3.14.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Changelog
2
2
 
3
+ ## 3.14.0 (2026-08-21)
4
+
5
+ Full Changelog: [v3.13.0...v3.14.0](https://github.com/sendblue-api/sendblue-ts/compare/v3.13.0...v3.14.0)
6
+
7
+ ### Features
8
+
9
+ * **groups:** RD-456 truthful group member add/remove on v1 and v2 ([9ebcc02](https://github.com/sendblue-api/sendblue-ts/commit/9ebcc029d9cdfb34753e684b09cc3be14065eb12))
10
+
3
11
  ## 3.13.0 (2026-08-20)
4
12
 
5
13
  Full Changelog: [v3.12.0...v3.13.0](https://github.com/sendblue-api/sendblue-ts/compare/v3.12.0...v3.13.0)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sendblue",
3
- "version": "3.13.0",
3
+ "version": "3.14.0",
4
4
  "description": "The official TypeScript library for the Sendblue API API",
5
5
  "author": "Sendblue API <support@sendblue.co>",
6
6
  "types": "./index.d.ts",
@@ -7,7 +7,12 @@ import { RequestOptions } from "../internal/request-options.mjs";
7
7
  */
8
8
  export declare class Groups extends APIResource {
9
9
  /**
10
- * Add or manage participants in a group chat (beta feature)
10
+ * Add an external participant to, or remove one from, an existing iMessage group
11
+ * chat (beta feature). Success is reported only after the change is verified on
12
+ * the device: the group's persisted membership changed and Sendblue's participant
13
+ * state matches it. Removal requires the group to have at least four total members
14
+ * before the operation and does not require the group's creator. Only iMessage
15
+ * groups are supported.
11
16
  *
12
17
  * @example
13
18
  * ```ts
@@ -33,7 +38,11 @@ export declare class Groups extends APIResource {
33
38
  sendMessage(body: GroupSendMessageParams, options?: RequestOptions): APIPromise<MessagesAPI.MessageResponse>;
34
39
  }
35
40
  export interface GroupModifyResponse {
36
- message?: string;
41
+ error?: string | null;
42
+ error_message?: string | null;
43
+ group_id?: string;
44
+ modify_type?: string;
45
+ number?: string;
37
46
  status?: string;
38
47
  }
39
48
  export interface GroupModifyParams {
@@ -44,11 +53,21 @@ export interface GroupModifyParams {
44
53
  /**
45
54
  * Type of modification to perform
46
55
  */
47
- modify_type: 'add_recipient';
56
+ modify_type: 'add_recipient' | 'remove_recipient';
48
57
  /**
49
- * Phone number to add/modify in E.164 format
58
+ * External participant to add or remove, in E.164 format (or an iMessage email
59
+ * address). Company-owned lines cannot be added or removed.
50
60
  */
51
61
  number: string;
62
+ /**
63
+ * The Sendblue line to act from. It must belong to the account and already be a
64
+ * participant of the group. Free API accounts must provide it. Other accounts may
65
+ * omit it only when exactly one account line participates in the group. With no
66
+ * participating account line the request fails with `line_not_registered`; with
67
+ * multiple lines it fails with `ambiguous_sending_line`. No change is attempted in
68
+ * either case.
69
+ */
70
+ from_number?: string;
52
71
  }
53
72
  export interface GroupSendMessageParams {
54
73
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"groups.d.mts","sourceRoot":"","sources":["../src/resources/groups.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAC/C,OAAO,KAAK,WAAW,uBAAmB;AAC1C,OAAO,EAAE,UAAU,EAAE,gCAA4B;AACjD,OAAO,EAAE,cAAc,EAAE,wCAAoC;AAE7D;;GAEG;AACH,qBAAa,MAAO,SAAQ,WAAW;IACrC;;;;;;;;;;;OAWG;IACH,MAAM,CAAC,IAAI,EAAE,iBAAiB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,mBAAmB,CAAC;IAI1F;;;;;;;;;;OAUG;IACH,WAAW,CACT,IAAI,EAAE,sBAAsB,EAC5B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,WAAW,CAAC,eAAe,CAAC;CAG3C;AAED,MAAM,WAAW,mBAAmB;IAClC,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,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QACH,UAAU,CAAC,EAAE,MAAM,CAAC;KACrB;CACF;AAED,MAAM,CAAC,OAAO,WAAW,MAAM,CAAC;IAC9B,OAAO,EACL,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,sBAAsB,IAAI,sBAAsB,GACtD,CAAC;CACH"}
@@ -7,7 +7,12 @@ import { RequestOptions } from "../internal/request-options.js";
7
7
  */
8
8
  export declare class Groups extends APIResource {
9
9
  /**
10
- * Add or manage participants in a group chat (beta feature)
10
+ * Add an external participant to, or remove one from, an existing iMessage group
11
+ * chat (beta feature). Success is reported only after the change is verified on
12
+ * the device: the group's persisted membership changed and Sendblue's participant
13
+ * state matches it. Removal requires the group to have at least four total members
14
+ * before the operation and does not require the group's creator. Only iMessage
15
+ * groups are supported.
11
16
  *
12
17
  * @example
13
18
  * ```ts
@@ -33,7 +38,11 @@ export declare class Groups extends APIResource {
33
38
  sendMessage(body: GroupSendMessageParams, options?: RequestOptions): APIPromise<MessagesAPI.MessageResponse>;
34
39
  }
35
40
  export interface GroupModifyResponse {
36
- message?: string;
41
+ error?: string | null;
42
+ error_message?: string | null;
43
+ group_id?: string;
44
+ modify_type?: string;
45
+ number?: string;
37
46
  status?: string;
38
47
  }
39
48
  export interface GroupModifyParams {
@@ -44,11 +53,21 @@ export interface GroupModifyParams {
44
53
  /**
45
54
  * Type of modification to perform
46
55
  */
47
- modify_type: 'add_recipient';
56
+ modify_type: 'add_recipient' | 'remove_recipient';
48
57
  /**
49
- * Phone number to add/modify in E.164 format
58
+ * External participant to add or remove, in E.164 format (or an iMessage email
59
+ * address). Company-owned lines cannot be added or removed.
50
60
  */
51
61
  number: string;
62
+ /**
63
+ * The Sendblue line to act from. It must belong to the account and already be a
64
+ * participant of the group. Free API accounts must provide it. Other accounts may
65
+ * omit it only when exactly one account line participates in the group. With no
66
+ * participating account line the request fails with `line_not_registered`; with
67
+ * multiple lines it fails with `ambiguous_sending_line`. No change is attempted in
68
+ * either case.
69
+ */
70
+ from_number?: string;
52
71
  }
53
72
  export interface GroupSendMessageParams {
54
73
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"groups.d.ts","sourceRoot":"","sources":["../src/resources/groups.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,4BAAyB;AAC/C,OAAO,KAAK,WAAW,sBAAmB;AAC1C,OAAO,EAAE,UAAU,EAAE,+BAA4B;AACjD,OAAO,EAAE,cAAc,EAAE,uCAAoC;AAE7D;;GAEG;AACH,qBAAa,MAAO,SAAQ,WAAW;IACrC;;;;;;;;;;;OAWG;IACH,MAAM,CAAC,IAAI,EAAE,iBAAiB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,mBAAmB,CAAC;IAI1F;;;;;;;;;;OAUG;IACH,WAAW,CACT,IAAI,EAAE,sBAAsB,EAC5B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,WAAW,CAAC,eAAe,CAAC;CAG3C;AAED,MAAM,WAAW,mBAAmB;IAClC,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,iBAAiB;IAChC;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,WAAW,EAAE,eAAe,CAAC;IAE7B;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,sBAAsB;IACrC;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAEhB;;;;OAIG;IACH,WAAW,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,OAAO,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAExB;;;OAGG;IACH,QAAQ,CAAC,EAAE,sBAAsB,CAAC,OAAO,CAAC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,WAAW,iBAAiB;IAChC;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,WAAW,EAAE,eAAe,GAAG,kBAAkB,CAAC;IAElD;;;OAGG;IACH,MAAM,EAAE,MAAM,CAAC;IAEf;;;;;;;OAOG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,sBAAsB;IACrC;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAEhB;;;;OAIG;IACH,WAAW,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,OAAO,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAExB;;;OAGG;IACH,QAAQ,CAAC,EAAE,sBAAsB,CAAC,OAAO,CAAC;IAE1C;;;;;OAKG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,yBAAiB,sBAAsB,CAAC;IACtC;;;OAGG;IACH,UAAiB,OAAO;QACtB;;WAEG;QACH,cAAc,EAAE,MAAM,CAAC;QAEvB;;;;;;WAMG;QACH,UAAU,CAAC,EAAE,MAAM,CAAC;KACrB;CACF;AAED,MAAM,CAAC,OAAO,WAAW,MAAM,CAAC;IAC9B,OAAO,EACL,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,sBAAsB,IAAI,sBAAsB,GACtD,CAAC;CACH"}
@@ -8,7 +8,12 @@ const resource_1 = require("../core/resource.js");
8
8
  */
9
9
  class Groups extends resource_1.APIResource {
10
10
  /**
11
- * Add or manage participants in a group chat (beta feature)
11
+ * Add an external participant to, or remove one from, an existing iMessage group
12
+ * chat (beta feature). Success is reported only after the change is verified on
13
+ * the device: the group's persisted membership changed and Sendblue's participant
14
+ * state matches it. Removal requires the group to have at least four total members
15
+ * before the operation and does not require the group's creator. Only iMessage
16
+ * groups are supported.
12
17
  *
13
18
  * @example
14
19
  * ```ts
@@ -1 +1 @@
1
- {"version":3,"file":"groups.js","sourceRoot":"","sources":["../src/resources/groups.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAK/C;;GAEG;AACH,MAAa,MAAO,SAAQ,sBAAW;IACrC;;;;;;;;;;;OAWG;IACH,MAAM,CAAC,IAAuB,EAAE,OAAwB;QACtD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,mBAAmB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACtE,CAAC;IAED;;;;;;;;;;OAUG;IACH,WAAW,CACT,IAA4B,EAC5B,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,yBAAyB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC5E,CAAC;CACF;AAlCD,wBAkCC"}
1
+ {"version":3,"file":"groups.js","sourceRoot":"","sources":["../src/resources/groups.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAK/C;;GAEG;AACH,MAAa,MAAO,SAAQ,sBAAW;IACrC;;;;;;;;;;;;;;;;OAgBG;IACH,MAAM,CAAC,IAAuB,EAAE,OAAwB;QACtD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,mBAAmB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACtE,CAAC;IAED;;;;;;;;;;OAUG;IACH,WAAW,CACT,IAA4B,EAC5B,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,yBAAyB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC5E,CAAC;CACF;AAvCD,wBAuCC"}
@@ -5,7 +5,12 @@ import { APIResource } from "../core/resource.mjs";
5
5
  */
6
6
  export class Groups extends APIResource {
7
7
  /**
8
- * Add or manage participants in a group chat (beta feature)
8
+ * Add an external participant to, or remove one from, an existing iMessage group
9
+ * chat (beta feature). Success is reported only after the change is verified on
10
+ * the device: the group's persisted membership changed and Sendblue's participant
11
+ * state matches it. Removal requires the group to have at least four total members
12
+ * before the operation and does not require the group's creator. Only iMessage
13
+ * groups are supported.
9
14
  *
10
15
  * @example
11
16
  * ```ts
@@ -1 +1 @@
1
- {"version":3,"file":"groups.mjs","sourceRoot":"","sources":["../src/resources/groups.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAK/C;;GAEG;AACH,MAAM,OAAO,MAAO,SAAQ,WAAW;IACrC;;;;;;;;;;;OAWG;IACH,MAAM,CAAC,IAAuB,EAAE,OAAwB;QACtD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,mBAAmB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACtE,CAAC;IAED;;;;;;;;;;OAUG;IACH,WAAW,CACT,IAA4B,EAC5B,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,yBAAyB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC5E,CAAC;CACF"}
1
+ {"version":3,"file":"groups.mjs","sourceRoot":"","sources":["../src/resources/groups.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAK/C;;GAEG;AACH,MAAM,OAAO,MAAO,SAAQ,WAAW;IACrC;;;;;;;;;;;;;;;;OAgBG;IACH,MAAM,CAAC,IAAuB,EAAE,OAAwB;QACtD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,mBAAmB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACtE,CAAC;IAED;;;;;;;;;;OAUG;IACH,WAAW,CACT,IAA4B,EAC5B,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,yBAAyB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC5E,CAAC;CACF"}
@@ -10,7 +10,12 @@ import { RequestOptions } from '../internal/request-options';
10
10
  */
11
11
  export class Groups extends APIResource {
12
12
  /**
13
- * Add or manage participants in a group chat (beta feature)
13
+ * Add an external participant to, or remove one from, an existing iMessage group
14
+ * chat (beta feature). Success is reported only after the change is verified on
15
+ * the device: the group's persisted membership changed and Sendblue's participant
16
+ * state matches it. Removal requires the group to have at least four total members
17
+ * before the operation and does not require the group's creator. Only iMessage
18
+ * groups are supported.
14
19
  *
15
20
  * @example
16
21
  * ```ts
@@ -45,7 +50,15 @@ export class Groups extends APIResource {
45
50
  }
46
51
 
47
52
  export interface GroupModifyResponse {
48
- message?: string;
53
+ error?: string | null;
54
+
55
+ error_message?: string | null;
56
+
57
+ group_id?: string;
58
+
59
+ modify_type?: string;
60
+
61
+ number?: string;
49
62
 
50
63
  status?: string;
51
64
  }
@@ -59,12 +72,23 @@ export interface GroupModifyParams {
59
72
  /**
60
73
  * Type of modification to perform
61
74
  */
62
- modify_type: 'add_recipient';
75
+ modify_type: 'add_recipient' | 'remove_recipient';
63
76
 
64
77
  /**
65
- * Phone number to add/modify in E.164 format
78
+ * External participant to add or remove, in E.164 format (or an iMessage email
79
+ * address). Company-owned lines cannot be added or removed.
66
80
  */
67
81
  number: string;
82
+
83
+ /**
84
+ * The Sendblue line to act from. It must belong to the account and already be a
85
+ * participant of the group. Free API accounts must provide it. Other accounts may
86
+ * omit it only when exactly one account line participates in the group. With no
87
+ * participating account line the request fails with `line_not_registered`; with
88
+ * multiple lines it fails with `ambiguous_sending_line`. No change is attempted in
89
+ * either case.
90
+ */
91
+ from_number?: string;
68
92
  }
69
93
 
70
94
  export interface GroupSendMessageParams {
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const VERSION = '3.13.0'; // x-release-please-version
1
+ export const VERSION = '3.14.0'; // x-release-please-version
package/version.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "3.13.0";
1
+ export declare const VERSION = "3.14.0";
2
2
  //# sourceMappingURL=version.d.mts.map
package/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "3.13.0";
1
+ export declare const VERSION = "3.14.0";
2
2
  //# sourceMappingURL=version.d.ts.map
package/version.js CHANGED
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.VERSION = void 0;
4
- exports.VERSION = '3.13.0'; // x-release-please-version
4
+ exports.VERSION = '3.14.0'; // x-release-please-version
5
5
  //# sourceMappingURL=version.js.map
package/version.mjs CHANGED
@@ -1,2 +1,2 @@
1
- export const VERSION = '3.13.0'; // x-release-please-version
1
+ export const VERSION = '3.14.0'; // x-release-please-version
2
2
  //# sourceMappingURL=version.mjs.map