@isnap/sdk 2.2.0 → 2.3.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 +3 -0
- package/README.md +7 -3
- package/dist/generated/openapi.d.ts +2941 -939
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js.map +1 -1
- package/dist/resources/lines.d.ts +66 -13
- package/dist/resources/lines.d.ts.map +1 -1
- package/dist/resources/lines.js +69 -13
- package/dist/resources/lines.js.map +1 -1
- package/dist/resources/preorders.d.ts +41 -12
- package/dist/resources/preorders.d.ts.map +1 -1
- package/dist/resources/preorders.js +41 -12
- package/dist/resources/preorders.js.map +1 -1
- package/dist/version.d.ts +2 -2
- package/dist/version.d.ts.map +1 -1
- package/dist/version.js +5 -2
- package/dist/version.js.map +1 -1
- package/dist/webhooks/types.d.ts +2 -1
- package/dist/webhooks/types.d.ts.map +1 -1
- package/dist/webhooks/types.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -21,7 +21,7 @@ export { WebhooksResource } from './resources/webhooks.js';
|
|
|
21
21
|
export type { AppDownloadEntry, AppManifest } from './resources/apps.js';
|
|
22
22
|
export type { AreaCode, AreaCodes, Country, ListAreaCodesQuery } from './resources/area-codes.js';
|
|
23
23
|
export type { Chat, ChatMarkRead, ChatTypingStart, ChatTypingStop, ListChatsQuery, MarkReadBody, ShareContactCardBody, ShareContactCardResult, TypingStartBody } from './resources/chats.js';
|
|
24
|
-
export type { ActivateLineBody, AssignLineBody, Line, LineConfigPatch, LineConfigResponseData, LineHealth, LineList, ListLinesQuery, ListQueueQuery, MintSharedLineBody, MyLines, PatchLineBody, QueueResponseData, QuotaSnapshot, SetLineAnniversaryBody, SetLineVariantBody, TerminateLineBody, TransferOwnershipBody } from './resources/lines.js';
|
|
24
|
+
export type { ActivateLineBody, AssignLineBody, CreateLineInviteBody, Line, LineConfigPatch, LineConfigResponseData, LineHealth, LineInvite, LineList, ListLinesQuery, ListQueueQuery, MintSharedLineBody, MyLines, PatchLineBody, QueueResponseData, QuotaSnapshot, SetLineAnniversaryBody, SetLineVariantBody, TerminateLineBody, TransferOwnershipBody } from './resources/lines.js';
|
|
25
25
|
export type { LookupRequest, LookupResult } from './resources/lookup.js';
|
|
26
26
|
export type { MacosSession, PatchMacosSessionBody, RentMacosSessionBody } from './resources/macos-sessions.js';
|
|
27
27
|
export type { ListMessagesQuery, Message, Reaction, ReactionRemoval, ReactionType, SendMessageBody, SendReactionBody } from './resources/messages.js';
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAA;AACzC,YAAY,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,aAAa,CAAA;AAC5D,YAAY,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AAC/C,OAAO,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,cAAc,CAAA;AAC3D,OAAO,EACL,kBAAkB,EAClB,QAAQ,EACR,mBAAmB,EACnB,eAAe,EACf,aAAa,EACb,SAAS,EACT,mBAAmB,EACnB,aAAa,EACb,oBAAoB,EACpB,qBAAqB,EACrB,kBAAkB,EAClB,cAAc,EACd,uBAAuB,EACvB,wBAAwB,EACxB,qBAAqB,EACtB,MAAM,aAAa,CAAA;AACpB,YAAY,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AAC/C,YAAY,EAAE,aAAa,EAAE,UAAU,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,YAAY,CAAA;AACvF,YAAY,EAAE,SAAS,EAAE,MAAM,YAAY,CAAA;AAE3C,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAA;AAClD,OAAO,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAA;AAC7D,OAAO,EAAE,mB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kBAAkB,EAClB,kBAAkB,EAClB,iBAAiB,EACjB,QAAQ,EACR,gBAAgB,EAChB,cAAc,EACf,MAAM,0BAA0B,CAAA;AACjC,YAAY,EACV,iBAAiB,EACjB,aAAa,EACb,aAAa,EAGb,eAAe,EACf,eAAe,EACf,eAAe,EACf,KAAK,EACL,cAAc,EACf,MAAM,sBAAsB,CAAA;AAC7B,YAAY,EACV,iBAAiB,EACjB,mBAAmB,EACnB,eAAe,EACf,iBAAiB,EACjB,OAAO,EACP,eAAe,EACf,qBAAqB,EACrB,gBAAgB,EAChB,WAAW,EACX,mBAAmB,EACpB,MAAM,yBAAyB,CAAA;AAEhC,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAA;AACvD,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAA;AACpD,YAAY,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAA;AAChE,OAAO,EACL,YAAY,EACZ,cAAc,EACd,WAAW,EACX,mBAAmB,EACnB,cAAc,EACd,eAAe,EACf,eAAe,EACf,YAAY,EACZ,sBAAsB,EACvB,MAAM,qBAAqB,CAAA;AAC5B,YAAY,EACV,UAAU,EACV,cAAc,EACd,YAAY,EACZ,gBAAgB,EAChB,SAAS,EACT,aAAa,EACb,iBAAiB,EACjB,qBAAqB,EACrB,YAAY,EACZ,gBAAgB,EAChB,aAAa,EACb,iBAAiB,EACjB,aAAa,EACb,iBAAiB,EACjB,iBAAiB,EACjB,UAAU,EACV,cAAc,EACd,oBAAoB,EACpB,wBAAwB,EACxB,YAAY,EACZ,gBAAgB,EAChB,sBAAsB,EACvB,MAAM,qBAAqB,CAAA"}
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAA;AAGzC,OAAO,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,c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,wBAAwB,EACxB,qBAAqB,EACtB,MAAM,aAAa,CAAA;AAKpB,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAA;AAClD,OAAO,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAA;AAC7D,OAAO,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAA;AAChE,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAA;AAClD,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAA;AACpD,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAA;AACpD,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAA;AACtD,OAAO,EAAE,qBAAqB,EAAE,MAAM,+BAA+B,CAAA;AACrE,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAA;AAC1D,OAAO,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAA;AAC5D,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAA;AACpD,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAA;AA+F1D,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAA;AACvD,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAA;AAEpD,OAAO,EACL,YAAY,EACZ,cAAc,EACd,WAAW,EACX,mBAAmB,EACnB,cAAc,EACd,eAAe,EACf,eAAe,EACf,YAAY,EACZ,sBAAsB,EACvB,MAAM,qBAAqB,CAAA"}
|
|
@@ -17,6 +17,8 @@ export type LineConfigResponseData = components['schemas']['LineConfigResponseDa
|
|
|
17
17
|
export type LineHealth = components['schemas']['LineHealth'];
|
|
18
18
|
export type QuotaSnapshot = components['schemas']['QuotaSnapshot'];
|
|
19
19
|
export type QueueResponseData = components['schemas']['QueueResponseData'];
|
|
20
|
+
export type CreateLineInviteBody = components['schemas']['CreateLineInvite'];
|
|
21
|
+
export type LineInvite = components['schemas']['LineInvite'];
|
|
20
22
|
export type ListLinesQuery = NonNullable<paths['/v1/lines']['get']['parameters']['query']>;
|
|
21
23
|
export type ListQueueQuery = NonNullable<paths['/v1/lines/{id}/queue']['get']['parameters']['query']>;
|
|
22
24
|
export declare class LinesResource extends BaseResource {
|
|
@@ -35,6 +37,13 @@ export declare class LinesResource extends BaseResource {
|
|
|
35
37
|
* `POST /v1/lines/assign` — atomically find an available line matching
|
|
36
38
|
* the requested billing tier (and optional area code), reserve it, and
|
|
37
39
|
* activate it on the calling account in a single round-trip.
|
|
40
|
+
*
|
|
41
|
+
* **Wholesale partners only**, `as_test_line` included: the line carries no
|
|
42
|
+
* per-line subscription and is billed on the end-of-month count. A direct
|
|
43
|
+
* (non-wholesale) account is rejected with `PaymentRequiredError` (402
|
|
44
|
+
* `checkout_required`) and nothing is reserved; it buys a line through
|
|
45
|
+
* `POST /v1/billing/checkout` and runs trials with `client.trial.init()`.
|
|
46
|
+
* A line-scoped API key is rejected first, with `PermissionDeniedError` (403).
|
|
38
47
|
*/
|
|
39
48
|
assign(body: AssignLineBody, opts?: RequestOptions): Promise<Line>;
|
|
40
49
|
/**
|
|
@@ -73,7 +82,13 @@ export declare class LinesResource extends BaseResource {
|
|
|
73
82
|
* line is billed on its activation instant.
|
|
74
83
|
*/
|
|
75
84
|
activate(id: string, body?: ActivateLineBody, opts?: RequestOptions): Promise<Line>;
|
|
76
|
-
/**
|
|
85
|
+
/**
|
|
86
|
+
* `POST /v1/lines/{id}/release` — give back a line you reserved; it returns
|
|
87
|
+
* to `available`. While the first payment of a subscription of yours for the
|
|
88
|
+
* line has been submitted, or has succeeded within the last hour, and the line
|
|
89
|
+
* is not `active` yet, the call fails with `409 purchase_payment_in_progress`
|
|
90
|
+
* and releases nothing.
|
|
91
|
+
*/
|
|
77
92
|
release(id: string, opts?: RequestOptions): Promise<Line>;
|
|
78
93
|
/**
|
|
79
94
|
* `POST /v1/lines/{id}/terminate` — permanently END a line you own. The
|
|
@@ -96,10 +111,12 @@ export declare class LinesResource extends BaseResource {
|
|
|
96
111
|
* A BYOD line is terminable like any other: its device session is revoked,
|
|
97
112
|
* so the bridge or phone stops serving it, and it leaves the billable set.
|
|
98
113
|
*
|
|
99
|
-
*
|
|
100
|
-
*
|
|
101
|
-
*
|
|
102
|
-
*
|
|
114
|
+
* An owned test line is terminable too, once no live trial rides it
|
|
115
|
+
* (`ConflictError`, 409 `test_line_in_use`, until then).
|
|
116
|
+
*
|
|
117
|
+
* Refusals: `PermissionDeniedError` (403 `pool_line_not_terminable`) — any
|
|
118
|
+
* other pool line; `NotFoundError` (404) — a line that does not exist, or one
|
|
119
|
+
* you do not own (the same code for both, so nothing leaks).
|
|
103
120
|
*
|
|
104
121
|
* `body` defaults to `{}` (not `undefined`) so the request always carries
|
|
105
122
|
* `Content-Type: application/json`; the route's body is optional and the
|
|
@@ -131,8 +148,9 @@ export declare class LinesResource extends BaseResource {
|
|
|
131
148
|
* now with `terminate()`. `ConflictError` (409
|
|
132
149
|
* `line_not_customer_cancellable`) — only an `active` or `suspended` line can
|
|
133
150
|
* be cancelled. `PermissionDeniedError` (403 `pool_line_not_cancellable`) — an
|
|
134
|
-
* owned test line
|
|
135
|
-
*
|
|
151
|
+
* owned test line's end is not scheduled here: end it with `terminate()`, or
|
|
152
|
+
* convert it back with `convertFromTest()` and cancel the rental line. Rental,
|
|
153
|
+
* shared and BYOD lines are all cancellable. `NotFoundError` (404) — a line that does not exist,
|
|
136
154
|
* or one you do not own (the same code for both, so nothing leaks).
|
|
137
155
|
*/
|
|
138
156
|
cancel(id: string, opts?: RequestOptions): Promise<Line>;
|
|
@@ -165,20 +183,34 @@ export declare class LinesResource extends BaseResource {
|
|
|
165
183
|
/**
|
|
166
184
|
* `POST /v1/lines/{id}/transfer-ownership` — reassign a line to a
|
|
167
185
|
* different end-user account without re-pairing the underlying device.
|
|
186
|
+
* A line with no subscription of its own (an owned test line, another pool
|
|
187
|
+
* line, a virtual shared line) can only go to a wholesale partner: any other
|
|
188
|
+
* recipient is a `ConflictError` (409 `line_recipient_not_wholesale`).
|
|
168
189
|
*/
|
|
169
190
|
transferOwnership(id: string, body: TransferOwnershipBody, opts?: RequestOptions): Promise<Line>;
|
|
170
191
|
/**
|
|
171
192
|
* `POST /v1/lines/{id}/convert-to-test` — convert a line into a test line.
|
|
172
|
-
*
|
|
173
|
-
*
|
|
174
|
-
*
|
|
193
|
+
* Billing does not stop: a test line is billed on your end-of-month invoice
|
|
194
|
+
* like a rental line, as the outbound product, on the same billing dates
|
|
195
|
+
* (`anniversary_at` and `billing_anchor_at` are kept). End a test line with
|
|
196
|
+
* `terminate()`.
|
|
197
|
+
* Wholesale partners only: a direct account is rejected with
|
|
198
|
+
* `PaymentRequiredError` (402 `checkout_required`). Rejected with
|
|
199
|
+
* `ConflictError` (409) for byod lines, a line you do not own, a line with
|
|
200
|
+
* an active subscription, an inbound line (`test_line_not_inbound_only`:
|
|
201
|
+
* move it to outbound with `setVariant` first) and a line with a pending
|
|
202
|
+
* cancellation (`line_cancellation_pending`: `uncancel` first); a line the
|
|
203
|
+
* caller cannot see is a masked `NotFoundError` (404).
|
|
175
204
|
*/
|
|
176
205
|
convertToTest(id: string, opts?: RequestOptions): Promise<Line>;
|
|
177
206
|
/**
|
|
178
207
|
* `POST /v1/lines/{id}/convert-from-test` — convert a test line back to a
|
|
179
|
-
* normal line.
|
|
180
|
-
*
|
|
181
|
-
*
|
|
208
|
+
* normal line. The bill does not change: the test line was already billed as
|
|
209
|
+
* an outbound rental on the same dates. Wholesale partners only: a direct
|
|
210
|
+
* account is rejected with
|
|
211
|
+
* `PaymentRequiredError` (402 `checkout_required`). Rejected with
|
|
212
|
+
* `ConflictError` (409) while the test line still hosts live trials; a line
|
|
213
|
+
* the caller cannot see is a masked `NotFoundError` (404).
|
|
182
214
|
*/
|
|
183
215
|
convertFromTest(id: string, opts?: RequestOptions): Promise<Line>;
|
|
184
216
|
/**
|
|
@@ -303,6 +335,27 @@ export declare class LinesResource extends BaseResource {
|
|
|
303
335
|
* client itself, not on a line.
|
|
304
336
|
*/
|
|
305
337
|
health(id: string, opts?: RequestOptions): Promise<LineHealth>;
|
|
338
|
+
/**
|
|
339
|
+
* `POST /v1/lines/{id}/invites` — pick a phone number for one visitor of an
|
|
340
|
+
* inbound-first line and issue the code the visitor's text must carry. Show
|
|
341
|
+
* the number only with its code: a text without it does not reach the line.
|
|
342
|
+
*
|
|
343
|
+
* Not idempotent, by design: every call issues a new invite with a new code.
|
|
344
|
+
* `body.exclude` lists numbers the pick must avoid. `ServiceUnavailableError`
|
|
345
|
+
* (503 `line_pool_exhausted`) when no number can take an invite now;
|
|
346
|
+
* `ConflictError` (409 `not_inbound_first_line` or `line_not_active`) on a
|
|
347
|
+
* line that cannot take invites.
|
|
348
|
+
*
|
|
349
|
+
* **Not retried by default** (`maxRetries: 0`, overridable via
|
|
350
|
+
* `opts.maxRetries`), unlike other writes: the call sits in a page render, a
|
|
351
|
+
* `line_pool_exhausted` does not clear within the backoff, and a retry after
|
|
352
|
+
* a lost response issues a second invite. The caller decides what a failure
|
|
353
|
+
* means, for example showing a number of its own.
|
|
354
|
+
*
|
|
355
|
+
* `body` defaults to `{}` so the request always carries
|
|
356
|
+
* `Content-Type: application/json`.
|
|
357
|
+
*/
|
|
358
|
+
createInvite(id: string, body?: CreateLineInviteBody, opts?: RequestOptions): Promise<LineInvite>;
|
|
306
359
|
/** `GET /v1/lines/{id}/config` — effective per-line config (system defaults + overrides). */
|
|
307
360
|
getConfig(id: string, opts?: RequestOptions): Promise<LineConfigResponseData>;
|
|
308
361
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lines.d.ts","sourceRoot":"","sources":["../../src/resources/lines.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,KAAK,EAAE,MAAM,yBAAyB,CAAA;AAChE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAA;AACjD,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAA;AAExC,MAAM,MA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AAC,EAAE,cAAc,GACpB,OAAO,CAAC,UAAU,CAAC;IAWtB,6FAA6F;IAC7F,SAAS,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,sBAAsB,CAAC;IAS7E;;;;OAIG;IACH,YAAY,CACV,EAAE,EAAE,MAAM,EACV,IAAI,EAAE,eAAe,EACrB,IAAI,CAAC,EAAE,cAAc,GACpB,OAAO,CAAC,sBAAsB,CAAC;CAQnC"}
|
package/dist/resources/lines.js
CHANGED
|
@@ -24,6 +24,13 @@ export class LinesResource extends BaseResource {
|
|
|
24
24
|
* `POST /v1/lines/assign` — atomically find an available line matching
|
|
25
25
|
* the requested billing tier (and optional area code), reserve it, and
|
|
26
26
|
* activate it on the calling account in a single round-trip.
|
|
27
|
+
*
|
|
28
|
+
* **Wholesale partners only**, `as_test_line` included: the line carries no
|
|
29
|
+
* per-line subscription and is billed on the end-of-month count. A direct
|
|
30
|
+
* (non-wholesale) account is rejected with `PaymentRequiredError` (402
|
|
31
|
+
* `checkout_required`) and nothing is reserved; it buys a line through
|
|
32
|
+
* `POST /v1/billing/checkout` and runs trials with `client.trial.init()`.
|
|
33
|
+
* A line-scoped API key is rejected first, with `PermissionDeniedError` (403).
|
|
27
34
|
*/
|
|
28
35
|
assign(body, opts) {
|
|
29
36
|
return this.client.request('POST', '/v1/lines/assign', body, opts);
|
|
@@ -70,7 +77,13 @@ export class LinesResource extends BaseResource {
|
|
|
70
77
|
activate(id, body = {}, opts) {
|
|
71
78
|
return this.client.request('POST', `/v1/lines/${encodeURIComponent(id)}/activate`, body, opts);
|
|
72
79
|
}
|
|
73
|
-
/**
|
|
80
|
+
/**
|
|
81
|
+
* `POST /v1/lines/{id}/release` — give back a line you reserved; it returns
|
|
82
|
+
* to `available`. While the first payment of a subscription of yours for the
|
|
83
|
+
* line has been submitted, or has succeeded within the last hour, and the line
|
|
84
|
+
* is not `active` yet, the call fails with `409 purchase_payment_in_progress`
|
|
85
|
+
* and releases nothing.
|
|
86
|
+
*/
|
|
74
87
|
release(id, opts) {
|
|
75
88
|
return this.client.request('POST', `/v1/lines/${encodeURIComponent(id)}/release`, undefined, opts);
|
|
76
89
|
}
|
|
@@ -95,10 +108,12 @@ export class LinesResource extends BaseResource {
|
|
|
95
108
|
* A BYOD line is terminable like any other: its device session is revoked,
|
|
96
109
|
* so the bridge or phone stops serving it, and it leaves the billable set.
|
|
97
110
|
*
|
|
98
|
-
*
|
|
99
|
-
*
|
|
100
|
-
*
|
|
101
|
-
*
|
|
111
|
+
* An owned test line is terminable too, once no live trial rides it
|
|
112
|
+
* (`ConflictError`, 409 `test_line_in_use`, until then).
|
|
113
|
+
*
|
|
114
|
+
* Refusals: `PermissionDeniedError` (403 `pool_line_not_terminable`) — any
|
|
115
|
+
* other pool line; `NotFoundError` (404) — a line that does not exist, or one
|
|
116
|
+
* you do not own (the same code for both, so nothing leaks).
|
|
102
117
|
*
|
|
103
118
|
* `body` defaults to `{}` (not `undefined`) so the request always carries
|
|
104
119
|
* `Content-Type: application/json`; the route's body is optional and the
|
|
@@ -132,8 +147,9 @@ export class LinesResource extends BaseResource {
|
|
|
132
147
|
* now with `terminate()`. `ConflictError` (409
|
|
133
148
|
* `line_not_customer_cancellable`) — only an `active` or `suspended` line can
|
|
134
149
|
* be cancelled. `PermissionDeniedError` (403 `pool_line_not_cancellable`) — an
|
|
135
|
-
* owned test line
|
|
136
|
-
*
|
|
150
|
+
* owned test line's end is not scheduled here: end it with `terminate()`, or
|
|
151
|
+
* convert it back with `convertFromTest()` and cancel the rental line. Rental,
|
|
152
|
+
* shared and BYOD lines are all cancellable. `NotFoundError` (404) — a line that does not exist,
|
|
137
153
|
* or one you do not own (the same code for both, so nothing leaks).
|
|
138
154
|
*/
|
|
139
155
|
cancel(id, opts) {
|
|
@@ -172,24 +188,38 @@ export class LinesResource extends BaseResource {
|
|
|
172
188
|
/**
|
|
173
189
|
* `POST /v1/lines/{id}/transfer-ownership` — reassign a line to a
|
|
174
190
|
* different end-user account without re-pairing the underlying device.
|
|
191
|
+
* A line with no subscription of its own (an owned test line, another pool
|
|
192
|
+
* line, a virtual shared line) can only go to a wholesale partner: any other
|
|
193
|
+
* recipient is a `ConflictError` (409 `line_recipient_not_wholesale`).
|
|
175
194
|
*/
|
|
176
195
|
transferOwnership(id, body, opts) {
|
|
177
196
|
return this.client.request('POST', `/v1/lines/${encodeURIComponent(id)}/transfer-ownership`, body, opts);
|
|
178
197
|
}
|
|
179
198
|
/**
|
|
180
199
|
* `POST /v1/lines/{id}/convert-to-test` — convert a line into a test line.
|
|
181
|
-
*
|
|
182
|
-
*
|
|
183
|
-
*
|
|
200
|
+
* Billing does not stop: a test line is billed on your end-of-month invoice
|
|
201
|
+
* like a rental line, as the outbound product, on the same billing dates
|
|
202
|
+
* (`anniversary_at` and `billing_anchor_at` are kept). End a test line with
|
|
203
|
+
* `terminate()`.
|
|
204
|
+
* Wholesale partners only: a direct account is rejected with
|
|
205
|
+
* `PaymentRequiredError` (402 `checkout_required`). Rejected with
|
|
206
|
+
* `ConflictError` (409) for byod lines, a line you do not own, a line with
|
|
207
|
+
* an active subscription, an inbound line (`test_line_not_inbound_only`:
|
|
208
|
+
* move it to outbound with `setVariant` first) and a line with a pending
|
|
209
|
+
* cancellation (`line_cancellation_pending`: `uncancel` first); a line the
|
|
210
|
+
* caller cannot see is a masked `NotFoundError` (404).
|
|
184
211
|
*/
|
|
185
212
|
convertToTest(id, opts) {
|
|
186
213
|
return this.client.request('POST', `/v1/lines/${encodeURIComponent(id)}/convert-to-test`, undefined, opts);
|
|
187
214
|
}
|
|
188
215
|
/**
|
|
189
216
|
* `POST /v1/lines/{id}/convert-from-test` — convert a test line back to a
|
|
190
|
-
* normal line.
|
|
191
|
-
*
|
|
192
|
-
*
|
|
217
|
+
* normal line. The bill does not change: the test line was already billed as
|
|
218
|
+
* an outbound rental on the same dates. Wholesale partners only: a direct
|
|
219
|
+
* account is rejected with
|
|
220
|
+
* `PaymentRequiredError` (402 `checkout_required`). Rejected with
|
|
221
|
+
* `ConflictError` (409) while the test line still hosts live trials; a line
|
|
222
|
+
* the caller cannot see is a masked `NotFoundError` (404).
|
|
193
223
|
*/
|
|
194
224
|
convertFromTest(id, opts) {
|
|
195
225
|
return this.client.request('POST', `/v1/lines/${encodeURIComponent(id)}/convert-from-test`, undefined, opts);
|
|
@@ -328,6 +358,32 @@ export class LinesResource extends BaseResource {
|
|
|
328
358
|
health(id, opts) {
|
|
329
359
|
return this.client.request('GET', `/v1/lines/${encodeURIComponent(id)}/health`, undefined, opts);
|
|
330
360
|
}
|
|
361
|
+
/**
|
|
362
|
+
* `POST /v1/lines/{id}/invites` — pick a phone number for one visitor of an
|
|
363
|
+
* inbound-first line and issue the code the visitor's text must carry. Show
|
|
364
|
+
* the number only with its code: a text without it does not reach the line.
|
|
365
|
+
*
|
|
366
|
+
* Not idempotent, by design: every call issues a new invite with a new code.
|
|
367
|
+
* `body.exclude` lists numbers the pick must avoid. `ServiceUnavailableError`
|
|
368
|
+
* (503 `line_pool_exhausted`) when no number can take an invite now;
|
|
369
|
+
* `ConflictError` (409 `not_inbound_first_line` or `line_not_active`) on a
|
|
370
|
+
* line that cannot take invites.
|
|
371
|
+
*
|
|
372
|
+
* **Not retried by default** (`maxRetries: 0`, overridable via
|
|
373
|
+
* `opts.maxRetries`), unlike other writes: the call sits in a page render, a
|
|
374
|
+
* `line_pool_exhausted` does not clear within the backoff, and a retry after
|
|
375
|
+
* a lost response issues a second invite. The caller decides what a failure
|
|
376
|
+
* means, for example showing a number of its own.
|
|
377
|
+
*
|
|
378
|
+
* `body` defaults to `{}` so the request always carries
|
|
379
|
+
* `Content-Type: application/json`.
|
|
380
|
+
*/
|
|
381
|
+
createInvite(id, body = {}, opts) {
|
|
382
|
+
return this.client.request('POST', `/v1/lines/${encodeURIComponent(id)}/invites`, body,
|
|
383
|
+
// `??`, not a spread under a default: an explicit `maxRetries: undefined`
|
|
384
|
+
// must not bring the client's 3 retries back.
|
|
385
|
+
{ ...opts, maxRetries: opts?.maxRetries ?? 0 });
|
|
386
|
+
}
|
|
331
387
|
/** `GET /v1/lines/{id}/config` — effective per-line config (system defaults + overrides). */
|
|
332
388
|
getConfig(id, opts) {
|
|
333
389
|
return this.client.request('GET', `/v1/lines/${encodeURIComponent(id)}/config`, undefined, opts);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lines.js","sourceRoot":"","sources":["../../src/resources/lines.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAA;
|
|
1
|
+
{"version":3,"file":"lines.js","sourceRoot":"","sources":["../../src/resources/lines.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAA;AA0BxC,MAAM,OAAO,aAAc,SAAQ,YAAY;IAC7C;;;;;OAKG;IACH,IAAI,CAAC,QAAwB,EAAE,EAAE,IAAqB;QACpD,OAAO,IAAI,CAAC,MAAM,CAAC,OAAO,CAAW,KAAK,EAAE,WAAW,EAAE,SAAS,EAAE;YAClE,GAAG,IAAI;YACP,KAAK,EAAE,EAAE,GAAG,IAAI,EAAE,KAAK,EAAE,GAAG,KAAK,EAAE;SACpC,CAAC,CAAA;IACJ,CAAC;IAED,uEAAuE;IACvE,QAAQ,CAAC,IAAqB;QAC5B,OAAO,IAAI,CAAC,MAAM,CAAC,OAAO,CAAU,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,IAAI,CAAC,CAAA;IAC7E,CAAC;IAED,qFAAqF;IACrF,GAAG,CAAC,EAAU,EAAE,IAAqB;QACnC,OAAO,IAAI,CAAC,MAAM,CAAC,OAAO,CAAO,KAAK,EAAE,aAAa,kBAAkB,CAAC,EAAE,CAAC,EAAE,EAAE,SAAS,EAAE,IAAI,CAAC,CAAA;IACjG,CAAC;IAED;;;;;;;;;;;OAWG;IACH,MAAM,CAAC,IAAoB,EAAE,IAAqB;QAChD,OAAO,IAAI,CAAC,MAAM,CAAC,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IAAI,CAAC,MAAM,CAAC,OAAO,CACxB,KAAK,EACL,aAAa,kBAAkB,CAAC,EAAE,CAAC,SAAS,EAC5C,SAAS,EACT,IAAI,CACL,CAAA;IACH,CAAC;IAED;;;;;;;;;;;;;;;;;;;OAmBG;IACH,YAAY,CACV,EAAU,EACV,OAA6B,EAAE,EAC/B,IAAqB;QAErB,OAAO,IAAI,CAAC,MAAM,CAAC,OAAO,CACxB,MAAM,EACN,aAAa,kBAAkB,CAAC,EAAE,CAAC,UAAU,EAC7C,IAAI;QACJ,0EAA0E;QAC1E,8CAA8C;QAC9C,EAAE,GAAG,IAAI,EAAE,UAAU,EAAE,IAAI,EAAE,UAAU,IAAI,CAAC,EAAE,CAC/C,CAAA;IACH,CAAC;IAED,6FAA6F;IAC7F,SAAS,CAAC,EAAU,EAAE,IAAqB;QACzC,OAAO,IAAI,CAAC,MAAM,CAAC,OAAO,CACxB,KAAK,EACL,aAAa,kBAAkB,CAAC,EAAE,CAAC,SAAS,EAC5C,SAAS,EACT,IAAI,CACL,CAAA;IACH,CAAC;IAED;;;;OAIG;IACH,YAAY,CACV,EAAU,EACV,IAAqB,EACrB,IAAqB;QAErB,OAAO,IAAI,CAAC,MAAM,CAAC,OAAO,CACxB,OAAO,EACP,aAAa,kBAAkB,CAAC,EAAE,CAAC,SAAS,EAC5C,IAAI,EACJ,IAAI,CACL,CAAA;IACH,CAAC;CACF"}
|
|
@@ -28,14 +28,34 @@ export declare class PreOrdersResource extends BaseResource {
|
|
|
28
28
|
create(body: CreatePreOrderBody, opts?: RequestOptions): Promise<PreOrder>;
|
|
29
29
|
/**
|
|
30
30
|
* `POST /v1/pre-orders/{id}/confirm` — confirm a `draft` pre-order. The
|
|
31
|
-
* binding step: engages the one-month commitment (full month, no proration)
|
|
32
|
-
*
|
|
33
|
-
*
|
|
34
|
-
*
|
|
35
|
-
*
|
|
36
|
-
*
|
|
37
|
-
*
|
|
38
|
-
*
|
|
31
|
+
* binding step: engages the one-month commitment (full month, no proration).
|
|
32
|
+
*
|
|
33
|
+
* A wholesale partner (billed at the end of the month) gets the pre-order
|
|
34
|
+
* back in `provisioning`: the line is being built, and the
|
|
35
|
+
* `pre_order.fulfilled` webhook fires when it is live.
|
|
36
|
+
*
|
|
37
|
+
* A direct account gets it back in `awaiting_payment` with
|
|
38
|
+
* `stripe_client_secret`, the client secret of the first-month payment, to
|
|
39
|
+
* confirm with the Stripe Payment Element (card only). Nothing is built until
|
|
40
|
+
* that payment succeeds; the pre-order then moves to `provisioning`: read it
|
|
41
|
+
* with `get()` until it leaves `awaiting_payment`. Calling `confirm()` again
|
|
42
|
+
* while it is `awaiting_payment` returns the same secret. When the first
|
|
43
|
+
* month is already paid (the account's credit balance covers it, or
|
|
44
|
+
* `confirm()` is repeated after the payment), the pre-order comes back in
|
|
45
|
+
* `provisioning` with `stripe_client_secret: null`.
|
|
46
|
+
*
|
|
47
|
+
* The first month starts at the confirmation, not when the line is handed
|
|
48
|
+
* over, and the next invoice is issued one month after the confirmation. The
|
|
49
|
+
* hand-over of the line takes no payment and does not change when the
|
|
50
|
+
* subscription is invoiced.
|
|
51
|
+
*
|
|
52
|
+
* An unpaid first month cancels the pre-order 23 hours after the
|
|
53
|
+
* confirmation; `confirm()` on it then throws a `BadRequestError` (400
|
|
54
|
+
* `pre_order_not_draft`), like any confirm of a pre-order that is not a
|
|
55
|
+
* draft. A 503 `payment_provider_unavailable` means nothing changed and the
|
|
56
|
+
* call can be repeated (the SDK retries it). A `ConflictError` with 409
|
|
57
|
+
* `payment_setup_failed` means the payment provider refused the request for
|
|
58
|
+
* the account: it is not retried, and repeating it does not help.
|
|
39
59
|
*/
|
|
40
60
|
confirm(id: string, opts?: RequestOptions): Promise<PreOrder>;
|
|
41
61
|
/**
|
|
@@ -51,7 +71,12 @@ export declare class PreOrdersResource extends BaseResource {
|
|
|
51
71
|
* `has_more` is false.
|
|
52
72
|
*/
|
|
53
73
|
list(query?: ListPreOrdersQuery, opts?: RequestOptions): Promise<PreOrderListData>;
|
|
54
|
-
/**
|
|
74
|
+
/**
|
|
75
|
+
* `GET /v1/pre-orders/{id}` — fetch a single pre-order by id. Reading a
|
|
76
|
+
* pre-order that is `awaiting_payment` checks its first-month payment: once
|
|
77
|
+
* it has succeeded, the pre-order comes back in `provisioning`.
|
|
78
|
+
* `stripe_client_secret` is always `null` here.
|
|
79
|
+
*/
|
|
55
80
|
get(id: string, opts?: RequestOptions): Promise<PreOrder>;
|
|
56
81
|
/**
|
|
57
82
|
* `PATCH /v1/pre-orders/{id}` — merge `metadata` into the pre-order's tags.
|
|
@@ -64,9 +89,13 @@ export declare class PreOrdersResource extends BaseResource {
|
|
|
64
89
|
*/
|
|
65
90
|
update(id: string, body: PatchPreOrderBody, opts?: RequestOptions): Promise<PreOrder>;
|
|
66
91
|
/**
|
|
67
|
-
* `POST /v1/pre-orders/{id}/cancel` — cancel a
|
|
68
|
-
*
|
|
69
|
-
*
|
|
92
|
+
* `POST /v1/pre-orders/{id}/cancel` — cancel a `draft` or `awaiting_payment`
|
|
93
|
+
* pre-order. Free: nothing is charged or built in either status. For an
|
|
94
|
+
* `awaiting_payment` pre-order the first-month payment is voided first, so
|
|
95
|
+
* its client secret can no longer charge; a first month already paid throws
|
|
96
|
+
* a `ConflictError` (409 `pre_order_already_paid`). A pre-order that is
|
|
97
|
+
* `provisioning`, `fulfilled` or already `cancelled` is refused (400
|
|
98
|
+
* `pre_order_already_confirmed`).
|
|
70
99
|
*/
|
|
71
100
|
cancel(id: string, opts?: RequestOptions): Promise<PreOrder>;
|
|
72
101
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"preorders.d.ts","sourceRoot":"","sources":["../../src/resources/preorders.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,KAAK,EAAE,MAAM,yBAAyB,CAAA;AAChE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAA;AACjD,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,C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IAAI,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,QAAQ,CAAC;CAQ7D"}
|
|
@@ -22,14 +22,34 @@ export class PreOrdersResource extends BaseResource {
|
|
|
22
22
|
}
|
|
23
23
|
/**
|
|
24
24
|
* `POST /v1/pre-orders/{id}/confirm` — confirm a `draft` pre-order. The
|
|
25
|
-
* binding step: engages the one-month commitment (full month, no proration)
|
|
26
|
-
*
|
|
27
|
-
*
|
|
28
|
-
*
|
|
29
|
-
*
|
|
30
|
-
*
|
|
31
|
-
*
|
|
32
|
-
*
|
|
25
|
+
* binding step: engages the one-month commitment (full month, no proration).
|
|
26
|
+
*
|
|
27
|
+
* A wholesale partner (billed at the end of the month) gets the pre-order
|
|
28
|
+
* back in `provisioning`: the line is being built, and the
|
|
29
|
+
* `pre_order.fulfilled` webhook fires when it is live.
|
|
30
|
+
*
|
|
31
|
+
* A direct account gets it back in `awaiting_payment` with
|
|
32
|
+
* `stripe_client_secret`, the client secret of the first-month payment, to
|
|
33
|
+
* confirm with the Stripe Payment Element (card only). Nothing is built until
|
|
34
|
+
* that payment succeeds; the pre-order then moves to `provisioning`: read it
|
|
35
|
+
* with `get()` until it leaves `awaiting_payment`. Calling `confirm()` again
|
|
36
|
+
* while it is `awaiting_payment` returns the same secret. When the first
|
|
37
|
+
* month is already paid (the account's credit balance covers it, or
|
|
38
|
+
* `confirm()` is repeated after the payment), the pre-order comes back in
|
|
39
|
+
* `provisioning` with `stripe_client_secret: null`.
|
|
40
|
+
*
|
|
41
|
+
* The first month starts at the confirmation, not when the line is handed
|
|
42
|
+
* over, and the next invoice is issued one month after the confirmation. The
|
|
43
|
+
* hand-over of the line takes no payment and does not change when the
|
|
44
|
+
* subscription is invoiced.
|
|
45
|
+
*
|
|
46
|
+
* An unpaid first month cancels the pre-order 23 hours after the
|
|
47
|
+
* confirmation; `confirm()` on it then throws a `BadRequestError` (400
|
|
48
|
+
* `pre_order_not_draft`), like any confirm of a pre-order that is not a
|
|
49
|
+
* draft. A 503 `payment_provider_unavailable` means nothing changed and the
|
|
50
|
+
* call can be repeated (the SDK retries it). A `ConflictError` with 409
|
|
51
|
+
* `payment_setup_failed` means the payment provider refused the request for
|
|
52
|
+
* the account: it is not retried, and repeating it does not help.
|
|
33
53
|
*/
|
|
34
54
|
confirm(id, opts) {
|
|
35
55
|
return this.client.request('POST', `/v1/pre-orders/${encodeURIComponent(id)}/confirm`, undefined, opts);
|
|
@@ -52,7 +72,12 @@ export class PreOrdersResource extends BaseResource {
|
|
|
52
72
|
query: { ...opts?.query, ...query }
|
|
53
73
|
});
|
|
54
74
|
}
|
|
55
|
-
/**
|
|
75
|
+
/**
|
|
76
|
+
* `GET /v1/pre-orders/{id}` — fetch a single pre-order by id. Reading a
|
|
77
|
+
* pre-order that is `awaiting_payment` checks its first-month payment: once
|
|
78
|
+
* it has succeeded, the pre-order comes back in `provisioning`.
|
|
79
|
+
* `stripe_client_secret` is always `null` here.
|
|
80
|
+
*/
|
|
56
81
|
get(id, opts) {
|
|
57
82
|
return this.client.request('GET', `/v1/pre-orders/${encodeURIComponent(id)}`, undefined, opts);
|
|
58
83
|
}
|
|
@@ -69,9 +94,13 @@ export class PreOrdersResource extends BaseResource {
|
|
|
69
94
|
return this.client.request('PATCH', `/v1/pre-orders/${encodeURIComponent(id)}`, body, opts);
|
|
70
95
|
}
|
|
71
96
|
/**
|
|
72
|
-
* `POST /v1/pre-orders/{id}/cancel` — cancel a
|
|
73
|
-
*
|
|
74
|
-
*
|
|
97
|
+
* `POST /v1/pre-orders/{id}/cancel` — cancel a `draft` or `awaiting_payment`
|
|
98
|
+
* pre-order. Free: nothing is charged or built in either status. For an
|
|
99
|
+
* `awaiting_payment` pre-order the first-month payment is voided first, so
|
|
100
|
+
* its client secret can no longer charge; a first month already paid throws
|
|
101
|
+
* a `ConflictError` (409 `pre_order_already_paid`). A pre-order that is
|
|
102
|
+
* `provisioning`, `fulfilled` or already `cancelled` is refused (400
|
|
103
|
+
* `pre_order_already_confirmed`).
|
|
75
104
|
*/
|
|
76
105
|
cancel(id, opts) {
|
|
77
106
|
return this.client.request('POST', `/v1/pre-orders/${encodeURIComponent(id)}/cancel`, undefined, opts);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"preorders.js","sourceRoot":"","sources":["../../src/resources/preorders.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAA;AAexC,MAAM,OAAO,iBAAkB,SAAQ,YAAY;IACjD;;;;;;;;;;;;;;;;OAgBG;IACH,MAAM,CAAC,IAAwB,EAAE,IAAqB;QACpD,OAAO,IAAI,CAAC,MAAM,CAAC,OAAO,CAAW,MAAM,EAAE,gBAAgB,EAAE,IAAI,EAAE,IAAI,CAAC,CAAA;IAC5E,CAAC;IAED
|
|
1
|
+
{"version":3,"file":"preorders.js","sourceRoot":"","sources":["../../src/resources/preorders.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAA;AAexC,MAAM,OAAO,iBAAkB,SAAQ,YAAY;IACjD;;;;;;;;;;;;;;;;OAgBG;IACH,MAAM,CAAC,IAAwB,EAAE,IAAqB;QACpD,OAAO,IAAI,CAAC,MAAM,CAAC,OAAO,CAAW,MAAM,EAAE,gBAAgB,EAAE,IAAI,EAAE,IAAI,CAAC,CAAA;IAC5E,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA8BG;IACH,OAAO,CAAC,EAAU,EAAE,IAAqB;QACvC,OAAO,IAAI,CAAC,MAAM,CAAC,OAAO,CACxB,MAAM,EACN,kBAAkB,kBAAkB,CAAC,EAAE,CAAC,UAAU,EAClD,SAAS,EACT,IAAI,CACL,CAAA;IACH,CAAC;IAED;;;;;;;;;;;OAWG;IACH,IAAI,CAAC,QAA4B,EAAE,EAAE,IAAqB;QACxD,OAAO,IAAI,CAAC,MAAM,CAAC,OAAO,CAAmB,KAAK,EAAE,gBAAgB,EAAE,SAAS,EAAE;YAC/E,GAAG,IAAI;YACP,KAAK,EAAE,EAAE,GAAG,IAAI,EAAE,KAAK,EAAE,GAAG,KAAK,EAAE;SACpC,CAAC,CAAA;IACJ,CAAC;IAED;;;;;OAKG;IACH,GAAG,CAAC,EAAU,EAAE,IAAqB;QACnC,OAAO,IAAI,CAAC,MAAM,CAAC,OAAO,CACxB,KAAK,EACL,kBAAkB,kBAAkB,CAAC,EAAE,CAAC,EAAE,EAC1C,SAAS,EACT,IAAI,CACL,CAAA;IACH,CAAC;IAED;;;;;;;;OAQG;IACH,MAAM,CAAC,EAAU,EAAE,IAAuB,EAAE,IAAqB;QAC/D,OAAO,IAAI,CAAC,MAAM,CAAC,OAAO,CACxB,OAAO,EACP,kBAAkB,kBAAkB,CAAC,EAAE,CAAC,EAAE,EAC1C,IAAI,EACJ,IAAI,CACL,CAAA;IACH,CAAC;IAED;;;;;;;;OAQG;IACH,MAAM,CAAC,EAAU,EAAE,IAAqB;QACtC,OAAO,IAAI,CAAC,MAAM,CAAC,OAAO,CACxB,MAAM,EACN,kBAAkB,kBAAkB,CAAC,EAAE,CAAC,SAAS,EACjD,SAAS,EACT,IAAI,CACL,CAAA;IACH,CAAC;CACF"}
|
package/dist/version.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "2.
|
|
2
|
-
export declare const MIN_API_VERSION = "2.
|
|
1
|
+
export declare const SDK_VERSION = "2.3.0";
|
|
2
|
+
export declare const MIN_API_VERSION = "2.47.0";
|
|
3
3
|
//# sourceMappingURL=version.d.ts.map
|
package/dist/version.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../src/version.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,WAAW,UAAU,CAAA;
|
|
1
|
+
{"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../src/version.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,WAAW,UAAU,CAAA;AAgClC,eAAO,MAAM,eAAe,WAAW,CAAA"}
|
package/dist/version.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
// contract surface. Hand-maintained: no build or publish step derives this
|
|
5
5
|
// from `package.json`, so it MUST be bumped in the same commit as the
|
|
6
6
|
// `version` field there. `src/version.test.ts` fails CI when they disagree.
|
|
7
|
-
export const SDK_VERSION = '2.
|
|
7
|
+
export const SDK_VERSION = '2.3.0';
|
|
8
8
|
// Minimum API version the SDK considers compatible. Reference-only
|
|
9
9
|
// today: the client exposes `client.version()` to read `/v1/version` on
|
|
10
10
|
// demand, but does NOT call it automatically at first request as a
|
|
@@ -32,5 +32,8 @@ export const SDK_VERSION = '2.2.0';
|
|
|
32
32
|
// WHA-3684 — raised to `2.24.0`, the API minor that added
|
|
33
33
|
// `PATCH /v1/pre-orders/{id}`, which `preOrders.update` wraps: the rule above,
|
|
34
34
|
// applied. Against an older backend that method answers 404, not a version error.
|
|
35
|
-
|
|
35
|
+
//
|
|
36
|
+
// WHA-3999 — raised to `2.47.0`, the API minor that added
|
|
37
|
+
// `POST /v1/lines/{id}/invites`, which `lines.createInvite` wraps.
|
|
38
|
+
export const MIN_API_VERSION = '2.47.0';
|
|
36
39
|
//# sourceMappingURL=version.js.map
|
package/dist/version.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.js","sourceRoot":"","sources":["../src/version.ts"],"names":[],"mappings":"AAAA,oEAAoE;AACpE,yEAAyE;AACzE,wEAAwE;AACxE,2EAA2E;AAC3E,sEAAsE;AACtE,4EAA4E;AAC5E,MAAM,CAAC,MAAM,WAAW,GAAG,OAAO,CAAA;AAElC,mEAAmE;AACnE,wEAAwE;AACxE,mEAAmE;AACnE,wEAAwE;AACxE,2EAA2E;AAC3E,gEAAgE;AAChE,uEAAuE;AACvE,oBAAoB;AACpB,EAAE;AACF,yEAAyE;AACzE,sEAAsE;AACtE,mEAAmE;AACnE,0EAA0E;AAC1E,2EAA2E;AAC3E,mCAAmC;AACnC,EAAE;AACF,8EAA8E;AAC9E,2EAA2E;AAC3E,4DAA4D;AAC5D,+EAA+E;AAC/E,6EAA6E;AAC7E,4EAA4E;AAC5E,oBAAoB;AACpB,EAAE;AACF,0DAA0D;AAC1D,+EAA+E;AAC/E,kFAAkF;AAClF,MAAM,CAAC,MAAM,eAAe,GAAG,QAAQ,CAAA"}
|
|
1
|
+
{"version":3,"file":"version.js","sourceRoot":"","sources":["../src/version.ts"],"names":[],"mappings":"AAAA,oEAAoE;AACpE,yEAAyE;AACzE,wEAAwE;AACxE,2EAA2E;AAC3E,sEAAsE;AACtE,4EAA4E;AAC5E,MAAM,CAAC,MAAM,WAAW,GAAG,OAAO,CAAA;AAElC,mEAAmE;AACnE,wEAAwE;AACxE,mEAAmE;AACnE,wEAAwE;AACxE,2EAA2E;AAC3E,gEAAgE;AAChE,uEAAuE;AACvE,oBAAoB;AACpB,EAAE;AACF,yEAAyE;AACzE,sEAAsE;AACtE,mEAAmE;AACnE,0EAA0E;AAC1E,2EAA2E;AAC3E,mCAAmC;AACnC,EAAE;AACF,8EAA8E;AAC9E,2EAA2E;AAC3E,4DAA4D;AAC5D,+EAA+E;AAC/E,6EAA6E;AAC7E,4EAA4E;AAC5E,oBAAoB;AACpB,EAAE;AACF,0DAA0D;AAC1D,+EAA+E;AAC/E,kFAAkF;AAClF,EAAE;AACF,0DAA0D;AAC1D,mEAAmE;AACnE,MAAM,CAAC,MAAM,eAAe,GAAG,QAAQ,CAAA"}
|
package/dist/webhooks/types.d.ts
CHANGED
|
@@ -146,7 +146,8 @@ export type BindingEventType = 'binding.released';
|
|
|
146
146
|
* Shared-plan contact-binding lifecycle (contract §4.3.7). Fires on the
|
|
147
147
|
* VIRTUAL line when a `(virtual line, contact handle)` leg is torn down.
|
|
148
148
|
* `data` carries `{ line_id, contact_handle, outbound_number (nullable),
|
|
149
|
-
* released_at, reason: 'inactivity' | 'carrier_terminated'
|
|
149
|
+
* released_at, reason: 'inactivity' | 'carrier_terminated' | 'reclaimed' |
|
|
150
|
+
* 'moved' | 'owner_contact' }` — the
|
|
150
151
|
* `outbound_number` being the physical line's number the contact knew,
|
|
151
152
|
* since that association is exactly what the release severs.
|
|
152
153
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/webhooks/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAA;AAErE;;;;;GAKG;AACH,MAAM,WAAW,gBAAgB;IAC/B,WAAW,EAAE,MAAM,CAAA;IACnB,QAAQ,EAAE,MAAM,CAAA;IAChB,UAAU,EAAE,MAAM,CAAA;IAClB,UAAU,EAAE,MAAM,CAAA;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,sBAAsB,CAAA;CACvD;AAED;;;;;;;;;;;;;;;;;GAiBG;AAIH,MAAM,MAAM,sBAAsB,GAAG;IACnC,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAAA;IACxC,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAAA;CAC9C,CAAA;AA0BD,MAAM,MAAM,gBAAgB,GACxB,gBAAgB,GAChB,mBAAmB,GACnB,cAAc,GACd,mBAAmB,GACnB,gBAAgB,GAChB,kBAAkB,GAClB,cAAc,GACd,mBAAmB,GAMnB,4BAA4B,CAAA;AAEhC,MAAM,WAAW,YAAa,SAAQ,gBAAgB;IACpD,UAAU,EAAE,WAAW,MAAM,EAAE,CAAA;IAC/B,IAAI,EAAE;QAAE,OAAO,EAAE,OAAO,CAAA;KAAE,GAAG,sBAAsB,CAAA;CACpD;AAID,MAAM,MAAM,iBAAiB,GACzB,gBAAgB,GAChB,mBAAmB,GACnB,kBAAkB,CAAA;AAEtB,wEAAwE;AACxE,K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AAG,KAAK,IAAI,UAAU,CAEzE;AAED,wBAAgB,eAAe,CAAC,KAAK,EAAE,gBAAgB,GAAG,KAAK,IAAI,aAAa,CAE/E;AAED,wBAAgB,cAAc,CAAC,KAAK,EAAE,gBAAgB,GAAG,KAAK,IAAI,YAAY,CAE7E;AAED,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,gBAAgB,GAAG,KAAK,IAAI,iBAAiB,CAEvF;AAED,wBAAgB,YAAY,CAAC,KAAK,EAAE,gBAAgB,GAAG,KAAK,IAAI,UAAU,CAEzE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/webhooks/types.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/webhooks/types.ts"],"names":[],"mappings":"AAyYA,6EAA6E;AAE7E,MAAM,UAAU,cAAc,CAAC,KAAuB;IACpD,OAAO,KAAK,CAAC,UAAU,CAAC,UAAU,CAAC,UAAU,CAAC,CAAA;AAChD,CAAC;AAED,MAAM,UAAU,eAAe,CAAC,KAAuB;IACrD,OAAO,KAAK,CAAC,UAAU,CAAC,UAAU,CAAC,WAAW,CAAC,CAAA;AACjD,CAAC;AAED,MAAM,UAAU,WAAW,CAAC,KAAuB;IACjD,OAAO,KAAK,CAAC,UAAU,CAAC,UAAU,CAAC,OAAO,CAAC,CAAA;AAC7C,CAAC;AAED,MAAM,UAAU,sBAAsB,CACpC,KAAuB;IAEvB,OAAO,KAAK,CAAC,UAAU,CAAC,UAAU,CAAC,mBAAmB,CAAC,CAAA;AACzD,CAAC;AAED,MAAM,UAAU,YAAY,CAAC,KAAuB;IAClD,OAAO,KAAK,CAAC,UAAU,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAA;AAC9C,CAAC;AAED,MAAM,UAAU,eAAe,CAAC,KAAuB;IACrD,OAAO,KAAK,CAAC,UAAU,CAAC,UAAU,CAAC,YAAY,CAAC,CAAA;AAClD,CAAC;AAED,MAAM,UAAU,cAAc,CAAC,KAAuB;IACpD,OAAO,KAAK,CAAC,UAAU,CAAC,UAAU,CAAC,UAAU,CAAC,CAAA;AAChD,CAAC;AAED,MAAM,UAAU,mBAAmB,CAAC,KAAuB;IACzD,OAAO,KAAK,CAAC,UAAU,CAAC,UAAU,CAAC,gBAAgB,CAAC,CAAA;AACtD,CAAC;AAED,MAAM,UAAU,YAAY,CAAC,KAAuB;IAClD,OAAO,KAAK,CAAC,UAAU,CAAC,UAAU,CAAC,UAAU,CAAC,CAAA;AAChD,CAAC"}
|