sendblue 3.8.0 → 3.9.1
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 +31 -0
- package/README.md +2 -2
- package/client.d.mts.map +1 -1
- package/client.d.ts.map +1 -1
- package/client.js +11 -0
- package/client.js.map +1 -1
- package/client.mjs +11 -0
- package/client.mjs.map +1 -1
- package/internal/types.d.mts +6 -6
- package/internal/types.d.mts.map +1 -1
- package/internal/types.d.ts +6 -6
- package/internal/types.d.ts.map +1 -1
- package/internal/utils/log.d.mts.map +1 -1
- package/internal/utils/log.d.ts.map +1 -1
- package/internal/utils/log.js +6 -4
- package/internal/utils/log.js.map +1 -1
- package/internal/utils/log.mjs +6 -4
- package/internal/utils/log.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/contacts/contacts.d.mts +2 -2
- package/resources/contacts/contacts.d.ts +2 -2
- package/resources/groups.d.mts +7 -0
- package/resources/groups.d.mts.map +1 -1
- package/resources/groups.d.ts +7 -0
- package/resources/groups.d.ts.map +1 -1
- package/resources/messages.d.mts +47 -0
- package/resources/messages.d.mts.map +1 -1
- package/resources/messages.d.ts +47 -0
- package/resources/messages.d.ts.map +1 -1
- package/resources/send-carousel.d.mts +7 -0
- package/resources/send-carousel.d.mts.map +1 -1
- package/resources/send-carousel.d.ts +7 -0
- package/resources/send-carousel.d.ts.map +1 -1
- package/resources/v2/index.d.mts +1 -0
- package/resources/v2/index.d.mts.map +1 -1
- package/resources/v2/index.d.ts +1 -0
- package/resources/v2/index.d.ts.map +1 -1
- package/resources/v2/index.js +3 -1
- package/resources/v2/index.js.map +1 -1
- package/resources/v2/index.mjs +1 -0
- package/resources/v2/index.mjs.map +1 -1
- package/resources/v2/seats.d.mts +136 -0
- package/resources/v2/seats.d.mts.map +1 -0
- package/resources/v2/seats.d.ts +136 -0
- package/resources/v2/seats.d.ts.map +1 -0
- package/resources/v2/seats.js +49 -0
- package/resources/v2/seats.js.map +1 -0
- package/resources/v2/seats.mjs +45 -0
- package/resources/v2/seats.mjs.map +1 -0
- package/resources/v2/v2.d.mts +4 -0
- package/resources/v2/v2.d.mts.map +1 -1
- package/resources/v2/v2.d.ts +4 -0
- package/resources/v2/v2.d.ts.map +1 -1
- package/resources/v2/v2.js +4 -0
- package/resources/v2/v2.js.map +1 -1
- package/resources/v2/v2.mjs +4 -0
- package/resources/v2/v2.mjs.map +1 -1
- package/src/client.ts +12 -0
- package/src/internal/types.ts +6 -8
- package/src/internal/utils/log.ts +5 -3
- package/src/resources/contacts/contacts.ts +2 -2
- package/src/resources/groups.ts +8 -0
- package/src/resources/messages.ts +56 -0
- package/src/resources/send-carousel.ts +8 -0
- package/src/resources/v2/index.ts +8 -0
- package/src/resources/v2/seats.ts +182 -0
- package/src/resources/v2/v2.ts +20 -0
- 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
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
import { APIResource } from "../../core/resource.js";
|
|
2
|
+
import { APIPromise } from "../../core/api-promise.js";
|
|
3
|
+
import { RequestOptions } from "../../internal/request-options.js";
|
|
4
|
+
/**
|
|
5
|
+
* Operations for retrieving seats (users) on the account, used for attribution via `seat_id`
|
|
6
|
+
*/
|
|
7
|
+
export declare class Seats extends APIResource {
|
|
8
|
+
/**
|
|
9
|
+
* Retrieve a single seat by either its UUID or its Firebase Auth subject. Both
|
|
10
|
+
* identifiers resolve to the same seat.
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* ```ts
|
|
14
|
+
* const seat = await client.v2.seats.retrieve('seat_id');
|
|
15
|
+
* ```
|
|
16
|
+
*/
|
|
17
|
+
retrieve(seatID: string, options?: RequestOptions): APIPromise<SeatRetrieveResponse>;
|
|
18
|
+
/**
|
|
19
|
+
* Retrieve a list of seats (users) for the authenticated company. Use the returned
|
|
20
|
+
* `seat_id` values when sending messages with the `seat_id` parameter to attribute
|
|
21
|
+
* activity to a specific rep.
|
|
22
|
+
*
|
|
23
|
+
* @example
|
|
24
|
+
* ```ts
|
|
25
|
+
* const seats = await client.v2.seats.list();
|
|
26
|
+
* ```
|
|
27
|
+
*/
|
|
28
|
+
list(query?: SeatListParams | null | undefined, options?: RequestOptions): APIPromise<SeatListResponse>;
|
|
29
|
+
/**
|
|
30
|
+
* Returns the number of seats for the authenticated company.
|
|
31
|
+
*
|
|
32
|
+
* @example
|
|
33
|
+
* ```ts
|
|
34
|
+
* const response = await client.v2.seats.count();
|
|
35
|
+
* ```
|
|
36
|
+
*/
|
|
37
|
+
count(query?: SeatCountParams | null | undefined, options?: RequestOptions): APIPromise<SeatCountResponse>;
|
|
38
|
+
}
|
|
39
|
+
export interface SeatRetrieveResponse {
|
|
40
|
+
seat?: SeatRetrieveResponse.Seat;
|
|
41
|
+
status?: string;
|
|
42
|
+
}
|
|
43
|
+
export declare namespace SeatRetrieveResponse {
|
|
44
|
+
interface Seat {
|
|
45
|
+
/**
|
|
46
|
+
* Account name the seat belongs to
|
|
47
|
+
*/
|
|
48
|
+
account?: string;
|
|
49
|
+
/**
|
|
50
|
+
* When the seat was created
|
|
51
|
+
*/
|
|
52
|
+
created_at?: string;
|
|
53
|
+
/**
|
|
54
|
+
* Email address of the seat user
|
|
55
|
+
*/
|
|
56
|
+
email?: string;
|
|
57
|
+
/**
|
|
58
|
+
* First name
|
|
59
|
+
*/
|
|
60
|
+
first_name?: string | null;
|
|
61
|
+
/**
|
|
62
|
+
* Optional phone number used to forward calls
|
|
63
|
+
*/
|
|
64
|
+
forwarding_number?: string | null;
|
|
65
|
+
/**
|
|
66
|
+
* Last name
|
|
67
|
+
*/
|
|
68
|
+
last_name?: string | null;
|
|
69
|
+
/**
|
|
70
|
+
* Primary identifier for the seat. Pass this on the send endpoints' `seat_id`
|
|
71
|
+
* parameter.
|
|
72
|
+
*/
|
|
73
|
+
seat_id?: string;
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
export type SeatListResponse = Array<SeatListResponse.SeatListResponseItem>;
|
|
77
|
+
export declare namespace SeatListResponse {
|
|
78
|
+
interface SeatListResponseItem {
|
|
79
|
+
/**
|
|
80
|
+
* Account name the seat belongs to
|
|
81
|
+
*/
|
|
82
|
+
account?: string;
|
|
83
|
+
/**
|
|
84
|
+
* When the seat was created
|
|
85
|
+
*/
|
|
86
|
+
created_at?: string;
|
|
87
|
+
/**
|
|
88
|
+
* Email address of the seat user
|
|
89
|
+
*/
|
|
90
|
+
email?: string;
|
|
91
|
+
/**
|
|
92
|
+
* First name
|
|
93
|
+
*/
|
|
94
|
+
first_name?: string | null;
|
|
95
|
+
/**
|
|
96
|
+
* Optional phone number used to forward calls
|
|
97
|
+
*/
|
|
98
|
+
forwarding_number?: string | null;
|
|
99
|
+
/**
|
|
100
|
+
* Last name
|
|
101
|
+
*/
|
|
102
|
+
last_name?: string | null;
|
|
103
|
+
/**
|
|
104
|
+
* Primary identifier for the seat. Pass this on the send endpoints' `seat_id`
|
|
105
|
+
* parameter.
|
|
106
|
+
*/
|
|
107
|
+
seat_id?: string;
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
export interface SeatCountResponse {
|
|
111
|
+
count?: number;
|
|
112
|
+
}
|
|
113
|
+
export interface SeatListParams {
|
|
114
|
+
/**
|
|
115
|
+
* Optional exact-match filter on seat email
|
|
116
|
+
*/
|
|
117
|
+
email?: string;
|
|
118
|
+
/**
|
|
119
|
+
* Maximum number of seats to return
|
|
120
|
+
*/
|
|
121
|
+
limit?: number;
|
|
122
|
+
/**
|
|
123
|
+
* Number of seats to skip
|
|
124
|
+
*/
|
|
125
|
+
offset?: number;
|
|
126
|
+
}
|
|
127
|
+
export interface SeatCountParams {
|
|
128
|
+
/**
|
|
129
|
+
* Optional exact-match filter on seat email
|
|
130
|
+
*/
|
|
131
|
+
email?: string;
|
|
132
|
+
}
|
|
133
|
+
export declare namespace Seats {
|
|
134
|
+
export { type SeatRetrieveResponse as SeatRetrieveResponse, type SeatListResponse as SeatListResponse, type SeatCountResponse as SeatCountResponse, type SeatListParams as SeatListParams, type SeatCountParams as SeatCountParams, };
|
|
135
|
+
}
|
|
136
|
+
//# sourceMappingURL=seats.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"seats.d.ts","sourceRoot":"","sources":["../../src/resources/v2/seats.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB;;GAEG;AACH,qBAAa,KAAM,SAAQ,WAAW;IACpC;;;;;;;;OAQG;IACH,QAAQ,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,oBAAoB,CAAC;IAIpF;;;;;;;;;OASG;IACH,IAAI,CACF,KAAK,GAAE,cAAc,GAAG,IAAI,GAAG,SAAc,EAC7C,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,gBAAgB,CAAC;IAI/B;;;;;;;OAOG;IACH,KAAK,CACH,KAAK,GAAE,eAAe,GAAG,IAAI,GAAG,SAAc,EAC9C,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,iBAAiB,CAAC;CAGjC;AAED,MAAM,WAAW,oBAAoB;IACnC,IAAI,CAAC,EAAE,oBAAoB,CAAC,IAAI,CAAC;IAEjC,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,yBAAiB,oBAAoB,CAAC;IACpC,UAAiB,IAAI;QACnB;;WAEG;QACH,OAAO,CAAC,EAAE,MAAM,CAAC;QAEjB;;WAEG;QACH,UAAU,CAAC,EAAE,MAAM,CAAC;QAEpB;;WAEG;QACH,KAAK,CAAC,EAAE,MAAM,CAAC;QAEf;;WAEG;QACH,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;QAE3B;;WAEG;QACH,iBAAiB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;QAElC;;WAEG;QACH,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;QAE1B;;;WAGG;QACH,OAAO,CAAC,EAAE,MAAM,CAAC;KAClB;CACF;AAED,MAAM,MAAM,gBAAgB,GAAG,KAAK,CAAC,gBAAgB,CAAC,oBAAoB,CAAC,CAAC;AAE5E,yBAAiB,gBAAgB,CAAC;IAChC,UAAiB,oBAAoB;QACnC;;WAEG;QACH,OAAO,CAAC,EAAE,MAAM,CAAC;QAEjB;;WAEG;QACH,UAAU,CAAC,EAAE,MAAM,CAAC;QAEpB;;WAEG;QACH,KAAK,CAAC,EAAE,MAAM,CAAC;QAEf;;WAEG;QACH,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;QAE3B;;WAEG;QACH,iBAAiB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;QAElC;;WAEG;QACH,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;QAE1B;;;WAGG;QACH,OAAO,CAAC,EAAE,MAAM,CAAC;KAClB;CACF;AAED,MAAM,WAAW,iBAAiB;IAChC,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,cAAc;IAC7B;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,eAAe;IAC9B;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,CAAC,OAAO,WAAW,KAAK,CAAC;IAC7B,OAAO,EACL,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;CACH"}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.Seats = void 0;
|
|
5
|
+
const resource_1 = require("../../core/resource.js");
|
|
6
|
+
const path_1 = require("../../internal/utils/path.js");
|
|
7
|
+
/**
|
|
8
|
+
* Operations for retrieving seats (users) on the account, used for attribution via `seat_id`
|
|
9
|
+
*/
|
|
10
|
+
class Seats extends resource_1.APIResource {
|
|
11
|
+
/**
|
|
12
|
+
* Retrieve a single seat by either its UUID or its Firebase Auth subject. Both
|
|
13
|
+
* identifiers resolve to the same seat.
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* ```ts
|
|
17
|
+
* const seat = await client.v2.seats.retrieve('seat_id');
|
|
18
|
+
* ```
|
|
19
|
+
*/
|
|
20
|
+
retrieve(seatID, options) {
|
|
21
|
+
return this._client.get((0, path_1.path) `/api/v2/seats/${seatID}`, options);
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Retrieve a list of seats (users) for the authenticated company. Use the returned
|
|
25
|
+
* `seat_id` values when sending messages with the `seat_id` parameter to attribute
|
|
26
|
+
* activity to a specific rep.
|
|
27
|
+
*
|
|
28
|
+
* @example
|
|
29
|
+
* ```ts
|
|
30
|
+
* const seats = await client.v2.seats.list();
|
|
31
|
+
* ```
|
|
32
|
+
*/
|
|
33
|
+
list(query = {}, options) {
|
|
34
|
+
return this._client.get('/api/v2/seats', { query, ...options });
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* Returns the number of seats for the authenticated company.
|
|
38
|
+
*
|
|
39
|
+
* @example
|
|
40
|
+
* ```ts
|
|
41
|
+
* const response = await client.v2.seats.count();
|
|
42
|
+
* ```
|
|
43
|
+
*/
|
|
44
|
+
count(query = {}, options) {
|
|
45
|
+
return this._client.get('/api/v2/seats/count', { query, ...options });
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
exports.Seats = Seats;
|
|
49
|
+
//# sourceMappingURL=seats.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"seats.js","sourceRoot":"","sources":["../../src/resources/v2/seats.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAGlD,uDAAiD;AAEjD;;GAEG;AACH,MAAa,KAAM,SAAQ,sBAAW;IACpC;;;;;;;;OAQG;IACH,QAAQ,CAAC,MAAc,EAAE,OAAwB;QAC/C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,iBAAiB,MAAM,EAAE,EAAE,OAAO,CAAC,CAAC;IAClE,CAAC;IAED;;;;;;;;;OASG;IACH,IAAI,CACF,QAA2C,EAAE,EAC7C,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,eAAe,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAClE,CAAC;IAED;;;;;;;OAOG;IACH,KAAK,CACH,QAA4C,EAAE,EAC9C,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,qBAAqB,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACxE,CAAC;CACF;AA7CD,sBA6CC"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { APIResource } from "../../core/resource.mjs";
|
|
3
|
+
import { path } from "../../internal/utils/path.mjs";
|
|
4
|
+
/**
|
|
5
|
+
* Operations for retrieving seats (users) on the account, used for attribution via `seat_id`
|
|
6
|
+
*/
|
|
7
|
+
export class Seats extends APIResource {
|
|
8
|
+
/**
|
|
9
|
+
* Retrieve a single seat by either its UUID or its Firebase Auth subject. Both
|
|
10
|
+
* identifiers resolve to the same seat.
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* ```ts
|
|
14
|
+
* const seat = await client.v2.seats.retrieve('seat_id');
|
|
15
|
+
* ```
|
|
16
|
+
*/
|
|
17
|
+
retrieve(seatID, options) {
|
|
18
|
+
return this._client.get(path `/api/v2/seats/${seatID}`, options);
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Retrieve a list of seats (users) for the authenticated company. Use the returned
|
|
22
|
+
* `seat_id` values when sending messages with the `seat_id` parameter to attribute
|
|
23
|
+
* activity to a specific rep.
|
|
24
|
+
*
|
|
25
|
+
* @example
|
|
26
|
+
* ```ts
|
|
27
|
+
* const seats = await client.v2.seats.list();
|
|
28
|
+
* ```
|
|
29
|
+
*/
|
|
30
|
+
list(query = {}, options) {
|
|
31
|
+
return this._client.get('/api/v2/seats', { query, ...options });
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Returns the number of seats for the authenticated company.
|
|
35
|
+
*
|
|
36
|
+
* @example
|
|
37
|
+
* ```ts
|
|
38
|
+
* const response = await client.v2.seats.count();
|
|
39
|
+
* ```
|
|
40
|
+
*/
|
|
41
|
+
count(query = {}, options) {
|
|
42
|
+
return this._client.get('/api/v2/seats/count', { query, ...options });
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
//# sourceMappingURL=seats.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"seats.mjs","sourceRoot":"","sources":["../../src/resources/v2/seats.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAGf,EAAE,IAAI,EAAE;AAEf;;GAEG;AACH,MAAM,OAAO,KAAM,SAAQ,WAAW;IACpC;;;;;;;;OAQG;IACH,QAAQ,CAAC,MAAc,EAAE,OAAwB;QAC/C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,iBAAiB,MAAM,EAAE,EAAE,OAAO,CAAC,CAAC;IAClE,CAAC;IAED;;;;;;;;;OASG;IACH,IAAI,CACF,QAA2C,EAAE,EAC7C,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,eAAe,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAClE,CAAC;IAED;;;;;;;OAOG;IACH,KAAK,CACH,QAA4C,EAAE,EAC9C,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,qBAAqB,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACxE,CAAC;CACF"}
|
package/resources/v2/v2.d.mts
CHANGED
|
@@ -1,10 +1,14 @@
|
|
|
1
1
|
import { APIResource } from "../../core/resource.mjs";
|
|
2
|
+
import * as SeatsAPI from "./seats.mjs";
|
|
3
|
+
import { SeatCountParams, SeatCountResponse, SeatListParams, SeatListResponse, SeatRetrieveResponse, Seats } from "./seats.mjs";
|
|
2
4
|
import * as TotpAPI from "./totp/totp.mjs";
|
|
3
5
|
import { Totp, TotpGetCodeResponse } from "./totp/totp.mjs";
|
|
4
6
|
export declare class V2 extends APIResource {
|
|
5
7
|
totp: TotpAPI.Totp;
|
|
8
|
+
seats: SeatsAPI.Seats;
|
|
6
9
|
}
|
|
7
10
|
export declare namespace V2 {
|
|
8
11
|
export { Totp as Totp, type TotpGetCodeResponse as TotpGetCodeResponse };
|
|
12
|
+
export { Seats as Seats, type SeatRetrieveResponse as SeatRetrieveResponse, type SeatListResponse as SeatListResponse, type SeatCountResponse as SeatCountResponse, type SeatListParams as SeatListParams, type SeatCountParams as SeatCountParams, };
|
|
9
13
|
}
|
|
10
14
|
//# sourceMappingURL=v2.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"v2.d.mts","sourceRoot":"","sources":["../../src/resources/v2/v2.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,OAAO;OACZ,EAAE,IAAI,EAAE,mBAAmB,EAAE;AAEpC,qBAAa,EAAG,SAAQ,WAAW;IACjC,IAAI,EAAE,OAAO,CAAC,IAAI,CAAkC;
|
|
1
|
+
{"version":3,"file":"v2.d.mts","sourceRoot":"","sources":["../../src/resources/v2/v2.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,QAAQ;OACb,EACL,eAAe,EACf,iBAAiB,EACjB,cAAc,EACd,gBAAgB,EAChB,oBAAoB,EACpB,KAAK,EACN;OACM,KAAK,OAAO;OACZ,EAAE,IAAI,EAAE,mBAAmB,EAAE;AAEpC,qBAAa,EAAG,SAAQ,WAAW;IACjC,IAAI,EAAE,OAAO,CAAC,IAAI,CAAkC;IACpD,KAAK,EAAE,QAAQ,CAAC,KAAK,CAAoC;CAC1D;AAKD,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;CACH"}
|
package/resources/v2/v2.d.ts
CHANGED
|
@@ -1,10 +1,14 @@
|
|
|
1
1
|
import { APIResource } from "../../core/resource.js";
|
|
2
|
+
import * as SeatsAPI from "./seats.js";
|
|
3
|
+
import { SeatCountParams, SeatCountResponse, SeatListParams, SeatListResponse, SeatRetrieveResponse, Seats } from "./seats.js";
|
|
2
4
|
import * as TotpAPI from "./totp/totp.js";
|
|
3
5
|
import { Totp, TotpGetCodeResponse } from "./totp/totp.js";
|
|
4
6
|
export declare class V2 extends APIResource {
|
|
5
7
|
totp: TotpAPI.Totp;
|
|
8
|
+
seats: SeatsAPI.Seats;
|
|
6
9
|
}
|
|
7
10
|
export declare namespace V2 {
|
|
8
11
|
export { Totp as Totp, type TotpGetCodeResponse as TotpGetCodeResponse };
|
|
12
|
+
export { Seats as Seats, type SeatRetrieveResponse as SeatRetrieveResponse, type SeatListResponse as SeatListResponse, type SeatCountResponse as SeatCountResponse, type SeatListParams as SeatListParams, type SeatCountParams as SeatCountParams, };
|
|
9
13
|
}
|
|
10
14
|
//# 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":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,OAAO;OACZ,EAAE,IAAI,EAAE,mBAAmB,EAAE;AAEpC,qBAAa,EAAG,SAAQ,WAAW;IACjC,IAAI,EAAE,OAAO,CAAC,IAAI,CAAkC;
|
|
1
|
+
{"version":3,"file":"v2.d.ts","sourceRoot":"","sources":["../../src/resources/v2/v2.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,QAAQ;OACb,EACL,eAAe,EACf,iBAAiB,EACjB,cAAc,EACd,gBAAgB,EAChB,oBAAoB,EACpB,KAAK,EACN;OACM,KAAK,OAAO;OACZ,EAAE,IAAI,EAAE,mBAAmB,EAAE;AAEpC,qBAAa,EAAG,SAAQ,WAAW;IACjC,IAAI,EAAE,OAAO,CAAC,IAAI,CAAkC;IACpD,KAAK,EAAE,QAAQ,CAAC,KAAK,CAAoC;CAC1D;AAKD,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;CACH"}
|
package/resources/v2/v2.js
CHANGED
|
@@ -4,14 +4,18 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
4
4
|
exports.V2 = void 0;
|
|
5
5
|
const tslib_1 = require("../../internal/tslib.js");
|
|
6
6
|
const resource_1 = require("../../core/resource.js");
|
|
7
|
+
const SeatsAPI = tslib_1.__importStar(require("./seats.js"));
|
|
8
|
+
const seats_1 = require("./seats.js");
|
|
7
9
|
const TotpAPI = tslib_1.__importStar(require("./totp/totp.js"));
|
|
8
10
|
const totp_1 = require("./totp/totp.js");
|
|
9
11
|
class V2 extends resource_1.APIResource {
|
|
10
12
|
constructor() {
|
|
11
13
|
super(...arguments);
|
|
12
14
|
this.totp = new TotpAPI.Totp(this._client);
|
|
15
|
+
this.seats = new SeatsAPI.Seats(this._client);
|
|
13
16
|
}
|
|
14
17
|
}
|
|
15
18
|
exports.V2 = V2;
|
|
16
19
|
V2.Totp = totp_1.Totp;
|
|
20
|
+
V2.Seats = seats_1.Seats;
|
|
17
21
|
//# sourceMappingURL=v2.js.map
|
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,gEAAuC;AACvC,yCAAwD;AAExD,MAAa,EAAG,SAAQ,sBAAW;IAAnC;;QACE,SAAI,GAAiB,IAAI,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"v2.js","sourceRoot":"","sources":["../../src/resources/v2/v2.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,qDAAkD;AAClD,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;IAC3D,CAAC;CAAA;AAHD,gBAGC;AAED,EAAE,CAAC,IAAI,GAAG,WAAI,CAAC;AACf,EAAE,CAAC,KAAK,GAAG,aAAK,CAAC"}
|
package/resources/v2/v2.mjs
CHANGED
|
@@ -1,12 +1,16 @@
|
|
|
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 * as SeatsAPI from "./seats.mjs";
|
|
4
|
+
import { Seats, } from "./seats.mjs";
|
|
3
5
|
import * as TotpAPI from "./totp/totp.mjs";
|
|
4
6
|
import { Totp } from "./totp/totp.mjs";
|
|
5
7
|
export class V2 extends APIResource {
|
|
6
8
|
constructor() {
|
|
7
9
|
super(...arguments);
|
|
8
10
|
this.totp = new TotpAPI.Totp(this._client);
|
|
11
|
+
this.seats = new SeatsAPI.Seats(this._client);
|
|
9
12
|
}
|
|
10
13
|
}
|
|
11
14
|
V2.Totp = Totp;
|
|
15
|
+
V2.Seats = Seats;
|
|
12
16
|
//# sourceMappingURL=v2.mjs.map
|
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;OAE/E,EAAE,WAAW,EAAE;OACf,KAAK,OAAO;OACZ,EAAE,IAAI,EAAuB;AAEpC,MAAM,OAAO,EAAG,SAAQ,WAAW;IAAnC;;QACE,SAAI,GAAiB,IAAI,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"v2.mjs","sourceRoot":"","sources":["../../src/resources/v2/v2.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,KAAK,QAAQ;OACb,EAML,KAAK,GACN;OACM,KAAK,OAAO;OACZ,EAAE,IAAI,EAAuB;AAEpC,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;IAC3D,CAAC;CAAA;AAED,EAAE,CAAC,IAAI,GAAG,IAAI,CAAC;AACf,EAAE,CAAC,KAAK,GAAG,KAAK,CAAC"}
|
package/src/client.ts
CHANGED
|
@@ -230,6 +230,18 @@ export class SendblueAPI {
|
|
|
230
230
|
this.fetch = options.fetch ?? Shims.getDefaultFetch();
|
|
231
231
|
this.#encoder = Opts.FallbackEncoder;
|
|
232
232
|
|
|
233
|
+
const customHeadersEnv = readEnv('SENDBLUE_API_CUSTOM_HEADERS');
|
|
234
|
+
if (customHeadersEnv) {
|
|
235
|
+
const parsed: Record<string, string> = {};
|
|
236
|
+
for (const line of customHeadersEnv.split('\n')) {
|
|
237
|
+
const colon = line.indexOf(':');
|
|
238
|
+
if (colon >= 0) {
|
|
239
|
+
parsed[line.substring(0, colon).trim()] = line.substring(colon + 1).trim();
|
|
240
|
+
}
|
|
241
|
+
}
|
|
242
|
+
options.defaultHeaders = { ...parsed, ...options.defaultHeaders };
|
|
243
|
+
}
|
|
244
|
+
|
|
233
245
|
this._options = options;
|
|
234
246
|
|
|
235
247
|
this.apiKey = apiKey;
|
package/src/internal/types.ts
CHANGED
|
@@ -40,7 +40,6 @@ type OverloadedParameters<T> =
|
|
|
40
40
|
: T extends (...args: infer A) => unknown ? A
|
|
41
41
|
: never;
|
|
42
42
|
|
|
43
|
-
/* eslint-disable */
|
|
44
43
|
/**
|
|
45
44
|
* These imports attempt to get types from a parent package's dependencies.
|
|
46
45
|
* Unresolved bare specifiers can trigger [automatic type acquisition][1] in some projects, which
|
|
@@ -63,19 +62,18 @@ type OverloadedParameters<T> =
|
|
|
63
62
|
*
|
|
64
63
|
* [1]: https://www.typescriptlang.org/tsconfig/#typeAcquisition
|
|
65
64
|
*/
|
|
66
|
-
/** @ts-ignore For users with \@types/node */
|
|
65
|
+
/** @ts-ignore For users with \@types/node */ /* prettier-ignore */
|
|
67
66
|
type UndiciTypesRequestInit = NotAny<import('../node_modules/undici-types/index.d.ts').RequestInit> | NotAny<import('../../node_modules/undici-types/index.d.ts').RequestInit> | NotAny<import('../../../node_modules/undici-types/index.d.ts').RequestInit> | NotAny<import('../../../../node_modules/undici-types/index.d.ts').RequestInit> | NotAny<import('../../../../../node_modules/undici-types/index.d.ts').RequestInit> | NotAny<import('../../../../../../node_modules/undici-types/index.d.ts').RequestInit> | NotAny<import('../../../../../../../node_modules/undici-types/index.d.ts').RequestInit> | NotAny<import('../../../../../../../../node_modules/undici-types/index.d.ts').RequestInit> | NotAny<import('../../../../../../../../../node_modules/undici-types/index.d.ts').RequestInit> | NotAny<import('../../../../../../../../../../node_modules/undici-types/index.d.ts').RequestInit>;
|
|
68
|
-
/** @ts-ignore For users with undici */
|
|
67
|
+
/** @ts-ignore For users with undici */ /* prettier-ignore */
|
|
69
68
|
type UndiciRequestInit = NotAny<import('../node_modules/undici/index.d.ts').RequestInit> | NotAny<import('../../node_modules/undici/index.d.ts').RequestInit> | NotAny<import('../../../node_modules/undici/index.d.ts').RequestInit> | NotAny<import('../../../../node_modules/undici/index.d.ts').RequestInit> | NotAny<import('../../../../../node_modules/undici/index.d.ts').RequestInit> | NotAny<import('../../../../../../node_modules/undici/index.d.ts').RequestInit> | NotAny<import('../../../../../../../node_modules/undici/index.d.ts').RequestInit> | NotAny<import('../../../../../../../../node_modules/undici/index.d.ts').RequestInit> | NotAny<import('../../../../../../../../../node_modules/undici/index.d.ts').RequestInit> | NotAny<import('../../../../../../../../../../node_modules/undici/index.d.ts').RequestInit>;
|
|
70
|
-
/** @ts-ignore For users with \@types/bun */
|
|
69
|
+
/** @ts-ignore For users with \@types/bun */ /* prettier-ignore */
|
|
71
70
|
type BunRequestInit = globalThis.FetchRequestInit;
|
|
72
|
-
/** @ts-ignore For users with node-fetch@2 */
|
|
71
|
+
/** @ts-ignore For users with node-fetch@2 */ /* prettier-ignore */
|
|
73
72
|
type NodeFetch2RequestInit = NotAny<import('../node_modules/@types/node-fetch/index.d.ts').RequestInit> | NotAny<import('../../node_modules/@types/node-fetch/index.d.ts').RequestInit> | NotAny<import('../../../node_modules/@types/node-fetch/index.d.ts').RequestInit> | NotAny<import('../../../../node_modules/@types/node-fetch/index.d.ts').RequestInit> | NotAny<import('../../../../../node_modules/@types/node-fetch/index.d.ts').RequestInit> | NotAny<import('../../../../../../node_modules/@types/node-fetch/index.d.ts').RequestInit> | NotAny<import('../../../../../../../node_modules/@types/node-fetch/index.d.ts').RequestInit> | NotAny<import('../../../../../../../../node_modules/@types/node-fetch/index.d.ts').RequestInit> | NotAny<import('../../../../../../../../../node_modules/@types/node-fetch/index.d.ts').RequestInit> | NotAny<import('../../../../../../../../../../node_modules/@types/node-fetch/index.d.ts').RequestInit>;
|
|
74
|
-
/** @ts-ignore For users with node-fetch@3, doesn't need file extension because types are at ./@types/index.d.ts */
|
|
73
|
+
/** @ts-ignore For users with node-fetch@3, doesn't need file extension because types are at ./@types/index.d.ts */ /* prettier-ignore */
|
|
75
74
|
type NodeFetch3RequestInit = NotAny<import('../node_modules/node-fetch').RequestInit> | NotAny<import('../../node_modules/node-fetch').RequestInit> | NotAny<import('../../../node_modules/node-fetch').RequestInit> | NotAny<import('../../../../node_modules/node-fetch').RequestInit> | NotAny<import('../../../../../node_modules/node-fetch').RequestInit> | NotAny<import('../../../../../../node_modules/node-fetch').RequestInit> | NotAny<import('../../../../../../../node_modules/node-fetch').RequestInit> | NotAny<import('../../../../../../../../node_modules/node-fetch').RequestInit> | NotAny<import('../../../../../../../../../node_modules/node-fetch').RequestInit> | NotAny<import('../../../../../../../../../../node_modules/node-fetch').RequestInit>;
|
|
76
|
-
/** @ts-ignore For users who use Deno */
|
|
75
|
+
/** @ts-ignore For users who use Deno */ /* prettier-ignore */
|
|
77
76
|
type FetchRequestInit = NonNullable<OverloadedParameters<typeof fetch>[1]>;
|
|
78
|
-
/* eslint-enable */
|
|
79
77
|
|
|
80
78
|
type RequestInits =
|
|
81
79
|
| NotAny<UndiciTypesRequestInit>
|
|
@@ -106,11 +106,13 @@ export const formatRequestDetails = (details: {
|
|
|
106
106
|
([name, value]) => [
|
|
107
107
|
name,
|
|
108
108
|
(
|
|
109
|
-
name.toLowerCase() === 'sb-api-key-id' ||
|
|
110
|
-
name.toLowerCase() === 'sb-api-secret-key' ||
|
|
111
109
|
name.toLowerCase() === 'authorization' ||
|
|
110
|
+
name.toLowerCase() === 'api-key' ||
|
|
111
|
+
name.toLowerCase() === 'x-api-key' ||
|
|
112
112
|
name.toLowerCase() === 'cookie' ||
|
|
113
|
-
name.toLowerCase() === 'set-cookie'
|
|
113
|
+
name.toLowerCase() === 'set-cookie' ||
|
|
114
|
+
name.toLowerCase() === 'sb-api-key-id' ||
|
|
115
|
+
name.toLowerCase() === 'sb-api-secret-key'
|
|
114
116
|
) ?
|
|
115
117
|
'***'
|
|
116
118
|
: value,
|
|
@@ -385,12 +385,12 @@ export interface ContactListParams {
|
|
|
385
385
|
cid?: string;
|
|
386
386
|
|
|
387
387
|
/**
|
|
388
|
-
* Maximum number of contacts to return
|
|
388
|
+
* Maximum number of contacts to return. Defaults to 100, capped at 1000.
|
|
389
389
|
*/
|
|
390
390
|
limit?: number;
|
|
391
391
|
|
|
392
392
|
/**
|
|
393
|
-
* Number of contacts to skip
|
|
393
|
+
* Number of contacts to skip. Capped at 10000.
|
|
394
394
|
*/
|
|
395
395
|
offset?: number;
|
|
396
396
|
|
package/src/resources/groups.ts
CHANGED
|
@@ -94,6 +94,14 @@ export interface GroupSendMessageParams {
|
|
|
94
94
|
* Array of recipient phone numbers in E.164 format
|
|
95
95
|
*/
|
|
96
96
|
numbers?: Array<string>;
|
|
97
|
+
|
|
98
|
+
/**
|
|
99
|
+
* Optional. Identifies the seat (user) sending the group message so it is
|
|
100
|
+
* attributed to a specific rep. Accepts either the seat UUID or the Firebase Auth
|
|
101
|
+
* subject. When provided, `sender_email` is auto-populated on the message record
|
|
102
|
+
* and webhook payloads. Returns 400 if the seat is not found.
|
|
103
|
+
*/
|
|
104
|
+
seat_id?: string;
|
|
97
105
|
}
|
|
98
106
|
|
|
99
107
|
export declare namespace Groups {
|
|
@@ -133,6 +133,12 @@ export interface MessageContent {
|
|
|
133
133
|
*/
|
|
134
134
|
message_handle?: string;
|
|
135
135
|
|
|
136
|
+
/**
|
|
137
|
+
* UUID of the seat that sent the message. Present when `seat_id` was provided on
|
|
138
|
+
* send, or for dashboard-originated group messages.
|
|
139
|
+
*/
|
|
140
|
+
seat_id?: string | null;
|
|
141
|
+
|
|
136
142
|
send_style?:
|
|
137
143
|
| 'celebration'
|
|
138
144
|
| 'shooting_star'
|
|
@@ -148,6 +154,12 @@ export interface MessageContent {
|
|
|
148
154
|
| 'loud'
|
|
149
155
|
| 'slam';
|
|
150
156
|
|
|
157
|
+
/**
|
|
158
|
+
* Email of the seat (user) that sent the message. Auto-populated when a `seat_id`
|
|
159
|
+
* is provided on send. `null` for messages sent without a `seat_id`.
|
|
160
|
+
*/
|
|
161
|
+
sender_email?: string | null;
|
|
162
|
+
|
|
151
163
|
status?: 'QUEUED' | 'SENT' | 'DELIVERED' | 'ERROR' | 'RECEIVED';
|
|
152
164
|
|
|
153
165
|
/**
|
|
@@ -212,6 +224,12 @@ export interface MessageResponse {
|
|
|
212
224
|
*/
|
|
213
225
|
number?: string;
|
|
214
226
|
|
|
227
|
+
/**
|
|
228
|
+
* UUID of the seat that sent the message. Present when `seat_id` was provided on
|
|
229
|
+
* send, or for dashboard-originated group messages.
|
|
230
|
+
*/
|
|
231
|
+
seat_id?: string | null;
|
|
232
|
+
|
|
215
233
|
/**
|
|
216
234
|
* The iMessage expressive message style
|
|
217
235
|
*/
|
|
@@ -230,6 +248,12 @@ export interface MessageResponse {
|
|
|
230
248
|
| 'loud'
|
|
231
249
|
| 'slam';
|
|
232
250
|
|
|
251
|
+
/**
|
|
252
|
+
* Email of the seat (user) that sent the message. Auto-populated when a `seat_id`
|
|
253
|
+
* is provided on send. `null` for messages sent without a `seat_id`.
|
|
254
|
+
*/
|
|
255
|
+
sender_email?: string | null;
|
|
256
|
+
|
|
233
257
|
status?: 'QUEUED' | 'SENT' | 'DELIVERED' | 'ERROR';
|
|
234
258
|
}
|
|
235
259
|
|
|
@@ -333,6 +357,12 @@ export namespace MessageRetrieveResponse {
|
|
|
333
357
|
*/
|
|
334
358
|
plan?: string;
|
|
335
359
|
|
|
360
|
+
/**
|
|
361
|
+
* UUID of the seat that sent the message. Present when `seat_id` was provided on
|
|
362
|
+
* send, or for dashboard-originated group messages.
|
|
363
|
+
*/
|
|
364
|
+
seat_id?: string | null;
|
|
365
|
+
|
|
336
366
|
/**
|
|
337
367
|
* The iMessage expressive message style
|
|
338
368
|
*/
|
|
@@ -356,6 +386,12 @@ export namespace MessageRetrieveResponse {
|
|
|
356
386
|
*/
|
|
357
387
|
sendblue_number?: string | null;
|
|
358
388
|
|
|
389
|
+
/**
|
|
390
|
+
* Email of the seat (user) that sent the message. Auto-populated when a `seat_id`
|
|
391
|
+
* is provided on send. `null` for messages sent without a `seat_id`.
|
|
392
|
+
*/
|
|
393
|
+
sender_email?: string | null;
|
|
394
|
+
|
|
359
395
|
/**
|
|
360
396
|
* The messaging service used
|
|
361
397
|
*/
|
|
@@ -487,6 +523,12 @@ export namespace MessageListResponse {
|
|
|
487
523
|
*/
|
|
488
524
|
plan?: string;
|
|
489
525
|
|
|
526
|
+
/**
|
|
527
|
+
* UUID of the seat that sent the message. Present when `seat_id` was provided on
|
|
528
|
+
* send, or for dashboard-originated group messages.
|
|
529
|
+
*/
|
|
530
|
+
seat_id?: string | null;
|
|
531
|
+
|
|
490
532
|
/**
|
|
491
533
|
* The iMessage expressive message style
|
|
492
534
|
*/
|
|
@@ -510,6 +552,12 @@ export namespace MessageListResponse {
|
|
|
510
552
|
*/
|
|
511
553
|
sendblue_number?: string | null;
|
|
512
554
|
|
|
555
|
+
/**
|
|
556
|
+
* Email of the seat (user) that sent the message. Auto-populated when a `seat_id`
|
|
557
|
+
* is provided on send. `null` for messages sent without a `seat_id`.
|
|
558
|
+
*/
|
|
559
|
+
sender_email?: string | null;
|
|
560
|
+
|
|
513
561
|
/**
|
|
514
562
|
* The messaging service used
|
|
515
563
|
*/
|
|
@@ -718,6 +766,14 @@ export interface MessageSendParams {
|
|
|
718
766
|
*/
|
|
719
767
|
media_url?: string;
|
|
720
768
|
|
|
769
|
+
/**
|
|
770
|
+
* Optional. Identifies the seat (user) sending the message so the message is
|
|
771
|
+
* attributed to a specific rep. Accepts either the seat UUID or the Firebase Auth
|
|
772
|
+
* subject. When provided, `sender_email` is auto-populated on the message record
|
|
773
|
+
* and webhook payloads. Returns 400 if the seat is not found.
|
|
774
|
+
*/
|
|
775
|
+
seat_id?: string;
|
|
776
|
+
|
|
721
777
|
/**
|
|
722
778
|
* The iMessage expressive message style
|
|
723
779
|
*/
|
|
@@ -85,6 +85,14 @@ export interface SendCarouselSendParams {
|
|
|
85
85
|
*/
|
|
86
86
|
metadata?: unknown;
|
|
87
87
|
|
|
88
|
+
/**
|
|
89
|
+
* Optional. Identifies the seat (user) sending the carousel so it is attributed to
|
|
90
|
+
* a specific rep. Accepts either the seat UUID or the Firebase Auth subject. When
|
|
91
|
+
* provided, `sender_email` is auto-populated on the message record and webhook
|
|
92
|
+
* payloads. Returns 400 if the seat is not found.
|
|
93
|
+
*/
|
|
94
|
+
seat_id?: string;
|
|
95
|
+
|
|
88
96
|
/**
|
|
89
97
|
* The iMessage expressive message style
|
|
90
98
|
*/
|
|
@@ -1,4 +1,12 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
+
export {
|
|
4
|
+
Seats,
|
|
5
|
+
type SeatRetrieveResponse,
|
|
6
|
+
type SeatListResponse,
|
|
7
|
+
type SeatCountResponse,
|
|
8
|
+
type SeatListParams,
|
|
9
|
+
type SeatCountParams,
|
|
10
|
+
} from './seats';
|
|
3
11
|
export { Totp, type TotpGetCodeResponse } from './totp/index';
|
|
4
12
|
export { V2 } from './v2';
|