sendblue 3.9.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 +15 -0
- package/README.md +2 -2
- 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/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
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"send-carousel.d.mts","sourceRoot":"","sources":["../src/resources/send-carousel.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB;;GAEG;AACH,qBAAa,YAAa,SAAQ,WAAW;IAC3C;;;;;;;;;;;;;;;;;OAiBG;IACH,IAAI,CAAC,IAAI,EAAE,sBAAsB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,wBAAwB,CAAC;CAGnG;AAED,MAAM,WAAW,wBAAwB;IACvC;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB,WAAW,CAAC,EAAE,OAAO,CAAC;IAEtB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IAExB,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,sBAAsB;IACrC;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,UAAU,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAE1B;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB;;OAEG;IACH,UAAU,CAAC,EACP,aAAa,GACb,eAAe,GACf,WAAW,GACX,QAAQ,GACR,MAAM,GACN,UAAU,GACV,UAAU,GACV,WAAW,GACX,MAAM,GACN,WAAW,GACX,QAAQ,GACR,MAAM,GACN,MAAM,CAAC;IAEX;;OAEG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B;AAED,MAAM,CAAC,OAAO,WAAW,YAAY,CAAC;IACpC,OAAO,EACL,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,sBAAsB,IAAI,sBAAsB,GACtD,CAAC;CACH"}
|
|
1
|
+
{"version":3,"file":"send-carousel.d.mts","sourceRoot":"","sources":["../src/resources/send-carousel.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB;;GAEG;AACH,qBAAa,YAAa,SAAQ,WAAW;IAC3C;;;;;;;;;;;;;;;;;OAiBG;IACH,IAAI,CAAC,IAAI,EAAE,sBAAsB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,wBAAwB,CAAC;CAGnG;AAED,MAAM,WAAW,wBAAwB;IACvC;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB,WAAW,CAAC,EAAE,OAAO,CAAC;IAEtB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IAExB,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,sBAAsB;IACrC;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,UAAU,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAE1B;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB;;;;;OAKG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,UAAU,CAAC,EACP,aAAa,GACb,eAAe,GACf,WAAW,GACX,QAAQ,GACR,MAAM,GACN,UAAU,GACV,UAAU,GACV,WAAW,GACX,MAAM,GACN,WAAW,GACX,QAAQ,GACR,MAAM,GACN,MAAM,CAAC;IAEX;;OAEG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B;AAED,MAAM,CAAC,OAAO,WAAW,YAAY,CAAC;IACpC,OAAO,EACL,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,sBAAsB,IAAI,sBAAsB,GACtD,CAAC;CACH"}
|
|
@@ -67,6 +67,13 @@ export interface SendCarouselSendParams {
|
|
|
67
67
|
* Additional metadata to attach to the message
|
|
68
68
|
*/
|
|
69
69
|
metadata?: unknown;
|
|
70
|
+
/**
|
|
71
|
+
* Optional. Identifies the seat (user) sending the carousel so it is attributed to
|
|
72
|
+
* a specific rep. Accepts either the seat UUID or the Firebase Auth subject. When
|
|
73
|
+
* provided, `sender_email` is auto-populated on the message record and webhook
|
|
74
|
+
* payloads. Returns 400 if the seat is not found.
|
|
75
|
+
*/
|
|
76
|
+
seat_id?: string;
|
|
70
77
|
/**
|
|
71
78
|
* The iMessage expressive message style
|
|
72
79
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"send-carousel.d.ts","sourceRoot":"","sources":["../src/resources/send-carousel.ts"],"names":[],"mappings":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M,CAAC;CAC1B;AAED,MAAM,CAAC,OAAO,WAAW,YAAY,CAAC;IACpC,OAAO,EACL,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,sBAAsB,IAAI,sBAAsB,GACtD,CAAC;CACH"}
|
package/resources/v2/index.d.mts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
export { Seats, type SeatRetrieveResponse, type SeatListResponse, type SeatCountResponse, type SeatListParams, type SeatCountParams, } from "./seats.mjs";
|
|
1
2
|
export { Totp, type TotpGetCodeResponse } from "./totp/index.mjs";
|
|
2
3
|
export { V2 } from "./v2.mjs";
|
|
3
4
|
//# sourceMappingURL=index.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../src/resources/v2/index.ts"],"names":[],"mappings":"OAEO,EAAE,IAAI,EAAE,KAAK,mBAAmB,EAAE;OAClC,EAAE,EAAE,EAAE"}
|
|
1
|
+
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../src/resources/v2/index.ts"],"names":[],"mappings":"OAEO,EACL,KAAK,EACL,KAAK,oBAAoB,EACzB,KAAK,gBAAgB,EACrB,KAAK,iBAAiB,EACtB,KAAK,cAAc,EACnB,KAAK,eAAe,GACrB;OACM,EAAE,IAAI,EAAE,KAAK,mBAAmB,EAAE;OAClC,EAAE,EAAE,EAAE"}
|
package/resources/v2/index.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
export { Seats, type SeatRetrieveResponse, type SeatListResponse, type SeatCountResponse, type SeatListParams, type SeatCountParams, } from "./seats.js";
|
|
1
2
|
export { Totp, type TotpGetCodeResponse } from "./totp/index.js";
|
|
2
3
|
export { V2 } from "./v2.js";
|
|
3
4
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/v2/index.ts"],"names":[],"mappings":"OAEO,EAAE,IAAI,EAAE,KAAK,mBAAmB,EAAE;OAClC,EAAE,EAAE,EAAE"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/v2/index.ts"],"names":[],"mappings":"OAEO,EACL,KAAK,EACL,KAAK,oBAAoB,EACzB,KAAK,gBAAgB,EACrB,KAAK,iBAAiB,EACtB,KAAK,cAAc,EACnB,KAAK,eAAe,GACrB;OACM,EAAE,IAAI,EAAE,KAAK,mBAAmB,EAAE;OAClC,EAAE,EAAE,EAAE"}
|
package/resources/v2/index.js
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.V2 = exports.Totp = void 0;
|
|
4
|
+
exports.V2 = exports.Totp = exports.Seats = void 0;
|
|
5
|
+
var seats_1 = require("./seats.js");
|
|
6
|
+
Object.defineProperty(exports, "Seats", { enumerable: true, get: function () { return seats_1.Seats; } });
|
|
5
7
|
var index_1 = require("./totp/index.js");
|
|
6
8
|
Object.defineProperty(exports, "Totp", { enumerable: true, get: function () { return index_1.Totp; } });
|
|
7
9
|
var v2_1 = require("./v2.js");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/v2/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,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,oCAOiB;AANf,8FAAA,KAAK,OAAA;AAOP,yCAA8D;AAArD,6FAAA,IAAI,OAAA;AACb,8BAA0B;AAAjB,wFAAA,EAAE,OAAA"}
|
package/resources/v2/index.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/v2/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,IAAI,EAA4B;OAClC,EAAE,EAAE,EAAE"}
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/v2/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EACL,KAAK,GAMN;OACM,EAAE,IAAI,EAA4B;OAClC,EAAE,EAAE,EAAE"}
|
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
import { APIResource } from "../../core/resource.mjs";
|
|
2
|
+
import { APIPromise } from "../../core/api-promise.mjs";
|
|
3
|
+
import { RequestOptions } from "../../internal/request-options.mjs";
|
|
4
|
+
/**
|
|
5
|
+
* Operations for 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.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"seats.d.mts","sourceRoot":"","sources":["../../src/resources/v2/seats.ts"],"names":[],"mappings":"OA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AAO,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,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;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;;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/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
|
|