@isnap/sdk 1.3.0-next.105 → 1.3.0-next.112
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 +1 -0
- package/dist/client.d.ts +2 -0
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +3 -0
- package/dist/client.js.map +1 -1
- package/dist/generated/openapi.d.ts +446 -57
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/resources/apps.d.ts +31 -0
- package/dist/resources/apps.d.ts.map +1 -0
- package/dist/resources/apps.js +29 -0
- package/dist/resources/apps.js.map +1 -0
- package/dist/resources/lines.d.ts +6 -4
- package/dist/resources/lines.d.ts.map +1 -1
- package/dist/resources/lines.js +6 -4
- package/dist/resources/lines.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.d.ts.map +1 -1
- package/dist/version.js +12 -4
- package/dist/version.js.map +1 -1
- package/dist/webhooks/types.d.ts +1 -1
- package/dist/webhooks/types.d.ts.map +1 -1
- package/dist/webhooks/types.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -21,6 +21,7 @@ All notable changes to `@isnap/sdk` will be documented in this file. The format
|
|
|
21
21
|
|
|
22
22
|
### Changed
|
|
23
23
|
- `src/generated/openapi.d.ts` is now generated from the **published** contract. `packages/backend/openapi.json` carries only the partner-facing `/v1/*` surface, so the internal operator routes (`/admin`, `/va`, `/farm-ops`, `/kam`, `/auth`, …) and the bridge-only `/v1/device/*` contract — plus every schema reachable only from them — are no longer emitted into the SDK types. Those routes are the dashboard, the ops back-office and the device bridge; none of them is part of the partner contract this SDK wraps, and no `ISnapClient` method referenced their types, so no documented method changes shape.
|
|
24
|
+
- **`AppDownloadEntry.version` is now `string | null`** (API `1.15.0`, WHA-2538) — source-breaking for a consumer that renders `apps.manifest()`'s `version` without narrowing, which is the point. The field used to be a per-deployment configured string tied to no artifact: staging advertised `0.1.0-staging` for both platforms while the Mac ran `0.0.209` and the update channel published `0.0.x`, so the number could not be installed and the two platforms agreed only because both read one env value. It is now read from the release feed beside the artifact the download URL resolves to, and is `null` when that feed publishes nothing. Render the absence; do not substitute a number, and do not treat `null` as an error. It is also no longer the same string `byod.pair` returns as `bridge_version`.
|
|
24
25
|
|
|
25
26
|
### Fixed
|
|
26
27
|
- `User-Agent` misreported the SDK version. `SDK_VERSION` was left at `1.0.0` through `package.json`'s bumps to `1.1.0` and `1.2.0`, and it is the sole input to the header, so every request from the published package mis-identified its own version to server, proxy and CDN logs. `SDK_VERSION` now tracks `package.json` (`1.2.0`), and `src/version.test.ts` reads the published version off disk and fails the build the next time they disagree.
|
package/dist/client.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { type ClientConfig } from './config.js';
|
|
2
|
+
import { AppsResource } from './resources/apps.js';
|
|
2
3
|
import { AreaCodesResource } from './resources/area-codes.js';
|
|
3
4
|
import { AttachmentsResource } from './resources/attachments.js';
|
|
4
5
|
import { ByodResource } from './resources/byod.js';
|
|
@@ -31,6 +32,7 @@ export type HealthStatus = components['schemas']['HealthResponse'];
|
|
|
31
32
|
export declare function _resetDeprecationWarnings(): void;
|
|
32
33
|
export declare class ISnapClient {
|
|
33
34
|
private readonly config;
|
|
35
|
+
readonly apps: AppsResource;
|
|
34
36
|
readonly areaCodes: AreaCodesResource;
|
|
35
37
|
readonly attachments: AttachmentsResource;
|
|
36
38
|
readonly byod: ByodResource;
|
package/dist/client.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../src/client.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,YAAY,EAElB,MAAM,aAAa,CAAA;AAGpB,OAAO,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAA;AAC7D,OAAO,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAA;A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|
package/dist/client.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { resolveConfig, validateMaxRetries } from './config.js';
|
|
2
2
|
import { APIConnectionError, APIError, ServiceUnavailableError, fromEnvelope } from './errors.js';
|
|
3
3
|
import { generateIdempotencyKey } from './idempotency.js';
|
|
4
|
+
import { AppsResource } from './resources/apps.js';
|
|
4
5
|
import { AreaCodesResource } from './resources/area-codes.js';
|
|
5
6
|
import { AttachmentsResource } from './resources/attachments.js';
|
|
6
7
|
import { ByodResource } from './resources/byod.js';
|
|
@@ -38,6 +39,7 @@ export function _resetDeprecationWarnings() {
|
|
|
38
39
|
}
|
|
39
40
|
export class ISnapClient {
|
|
40
41
|
config;
|
|
42
|
+
apps;
|
|
41
43
|
areaCodes;
|
|
42
44
|
attachments;
|
|
43
45
|
byod;
|
|
@@ -50,6 +52,7 @@ export class ISnapClient {
|
|
|
50
52
|
webhooks;
|
|
51
53
|
constructor(config) {
|
|
52
54
|
this.config = resolveConfig(config);
|
|
55
|
+
this.apps = new AppsResource(this);
|
|
53
56
|
this.areaCodes = new AreaCodesResource(this);
|
|
54
57
|
this.attachments = new AttachmentsResource(this);
|
|
55
58
|
this.byod = new ByodResource(this);
|
package/dist/client.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client.js","sourceRoot":"","sources":["../src/client.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,aAAa,EACb,kBAAkB,EAGnB,MAAM,aAAa,CAAA;AACpB,OAAO,EAAE,kBAAkB,EAAE,QAAQ,EAAE,uBAAuB,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AACjG,OAAO,EAAE,sBAAsB,EAAE,MAAM,kBAAkB,CAAA;AACzD,OAAO,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAA;AAC7D,OAAO,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAA;AAChE,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAA;AAClD,O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AmB,CAAC,GAAG,CAAC,GAAG,CAAC,CAAA;QAC5B,MAAM,IAAI,GAAG,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAA;QAChC,MAAM,SAAS,GAAG,IAAI,EAAE,KAAK,CAAC,sCAAsC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAA;QAC1E,MAAM,YAAY,GAAG,MAAM,CAAC,CAAC,CAAC,2BAA2B,MAAM,EAAE,CAAC,CAAC,CAAC,EAAE,CAAA;QACtE,MAAM,eAAe,GAAG,SAAS,CAAC,CAAC,CAAC,QAAQ,SAAS,WAAW,CAAC,CAAC,CAAC,EAAE,CAAA;QACrE,OAAO,CAAC,IAAI,CACV,yBAAyB,MAAM,CAAC,WAAW,EAAE,IAAI,QAAQ,iBAAiB,YAAY,IAAI,eAAe,aAAa,CACvH,CAAA;IACH,CAAC;IAEO,sBAAsB,CAAC,GAAY;QACzC,IAAI,GAAG,YAAY,YAAY,IAAI,GAAG,CAAC,IAAI,KAAK,YAAY,EAAE,CAAC;YAC7D,OAAO,yBAAyB,IAAI,CAAC,MAAM,CAAC,SAAS,IAAI,CAAA;QAC3D,CAAC;QACD,IAAI,GAAG,YAAY,KAAK;YAAE,OAAO,kBAAkB,GAAG,CAAC,OAAO,EAAE,CAAA;QAChE,OAAO,eAAe,CAAA;IACxB,CAAC;CACF"}
|
|
@@ -387,7 +387,7 @@ export interface paths {
|
|
|
387
387
|
};
|
|
388
388
|
/**
|
|
389
389
|
* List available lines (public marketplace)
|
|
390
|
-
* @description Browse the marketplace inventory of unassigned lines. Filter by billing tier, area code, country code,
|
|
390
|
+
* @description Browse the marketplace inventory of unassigned lines. Filter by billing tier, area code, country code, state, country. Returns only `status: available` and never the iSnap-internal `shared_pool` tier — `?status=` therefore accepts `available` alone and refuses any other status with a 400, rather than answering with a list you did not ask for (WHA-2777). Unauthenticated — partners use this in prospecting / quote flows.
|
|
391
391
|
*/
|
|
392
392
|
get: {
|
|
393
393
|
parameters: {
|
|
@@ -399,6 +399,7 @@ export interface paths {
|
|
|
399
399
|
state?: string;
|
|
400
400
|
/** @description Country filter — ISO alpha-2 code or country name. */
|
|
401
401
|
country?: string;
|
|
402
|
+
/** @description Comma-separated set of statuses to filter on. Every member must be one of: available — anything else is a 400, never an empty list. Omitted or blank means no status filter. */
|
|
402
403
|
status?: string;
|
|
403
404
|
page?: number;
|
|
404
405
|
limit?: number;
|
|
@@ -1059,7 +1060,7 @@ export interface paths {
|
|
|
1059
1060
|
put?: never;
|
|
1060
1061
|
/**
|
|
1061
1062
|
* Activate a reserved line
|
|
1062
|
-
* @description Commit a `reserved` line to `active`. Wholesale partners (no Stripe checkout surface)
|
|
1063
|
+
* @description Commit a `reserved` line to `active`. **Wholesale partners only** (no Stripe checkout surface): this is the second phase of reserve→activate — they reserve, bill their own end-user, then activate within the 15-minute window with no per-line Stripe sub (EOM-metered), and may pick the INBOUND product via `inbound_only` (a line that cannot initiate — the contact must message first, after which the exchange is unrestricted; not receive-only). Direct customers get `402 checkout_required`: their line is activated by the `checkout.session.completed` webhook once `POST /v1/billing/checkout` is paid, which is what mints the Stripe subscription that bills them (§2.5 Flow A). `inbound_only` is meaningless for them — theirs comes from the checkout price.
|
|
1063
1064
|
*/
|
|
1064
1065
|
post: {
|
|
1065
1066
|
parameters: {
|
|
@@ -1109,6 +1110,15 @@ export interface paths {
|
|
|
1109
1110
|
"application/json": components["schemas"]["ErrorEnvelope"];
|
|
1110
1111
|
};
|
|
1111
1112
|
};
|
|
1113
|
+
/** @description Payment required — no billing relationship entitles this call */
|
|
1114
|
+
402: {
|
|
1115
|
+
headers: {
|
|
1116
|
+
[name: string]: unknown;
|
|
1117
|
+
};
|
|
1118
|
+
content: {
|
|
1119
|
+
"application/json": components["schemas"]["ErrorEnvelope"];
|
|
1120
|
+
};
|
|
1121
|
+
};
|
|
1112
1122
|
/** @description Forbidden — caller authenticated but not allowed */
|
|
1113
1123
|
403: {
|
|
1114
1124
|
headers: {
|
|
@@ -1287,7 +1297,7 @@ export interface paths {
|
|
|
1287
1297
|
put?: never;
|
|
1288
1298
|
/**
|
|
1289
1299
|
* Convert an owned rental line into a test line
|
|
1290
|
-
* @description Flip a rental line you own into an owned test line that backs trials in your own pool (ownership → pool;
|
|
1300
|
+
* @description Flip a rental line you own into an owned test line that backs trials in your own pool (ownership → pool; test lines are free, so the deprecated monthly_price reads 0). Rejected on byod lines, lines you do not own, and lines carrying an active subscription.
|
|
1291
1301
|
*/
|
|
1292
1302
|
post: {
|
|
1293
1303
|
parameters: {
|
|
@@ -1397,7 +1407,7 @@ export interface paths {
|
|
|
1397
1407
|
put?: never;
|
|
1398
1408
|
/**
|
|
1399
1409
|
* Revert an owned test line back to a rental line
|
|
1400
|
-
* @description Symmetric to convert-to-test: flip an owned test line back to a rental line (ownership → rental
|
|
1410
|
+
* @description Symmetric to convert-to-test: flip an owned test line back to a rental line (ownership → rental; monthly_price reads the rental tier price again, derived — nothing is stored). Rejected while the test line still hosts live trials, since reverting would strand them.
|
|
1401
1411
|
*/
|
|
1402
1412
|
post: {
|
|
1403
1413
|
parameters: {
|
|
@@ -2073,12 +2083,12 @@ export interface paths {
|
|
|
2073
2083
|
};
|
|
2074
2084
|
/**
|
|
2075
2085
|
* List pre-orders
|
|
2076
|
-
* @description Cursor-paginated list of the caller's pre-orders. Filter by status (`
|
|
2086
|
+
* @description Cursor-paginated list of the caller's pre-orders. Filter by status (`draft`, `provisioning`, `fulfilled`, `cancelled`) to surface only the ones the dashboard needs.
|
|
2077
2087
|
*/
|
|
2078
2088
|
get: {
|
|
2079
2089
|
parameters: {
|
|
2080
2090
|
query?: {
|
|
2081
|
-
status?: "draft" | "
|
|
2091
|
+
status?: "draft" | "provisioning" | "fulfilled" | "cancelled";
|
|
2082
2092
|
cursor?: string;
|
|
2083
2093
|
limit?: number;
|
|
2084
2094
|
};
|
|
@@ -2138,7 +2148,7 @@ export interface paths {
|
|
|
2138
2148
|
put?: never;
|
|
2139
2149
|
/**
|
|
2140
2150
|
* Create a pre-order (draft)
|
|
2141
|
-
* @description Place a pre-order as a `draft` (WHA-1155). A draft has NO side effects — no provisioning line, no procurement, no Stripe charge — so the partner can hold intent / bill its own end-user first. Call `POST /v1/pre-orders/{id}/confirm` to engage the month and start procurement. `inbound_only` is remembered for confirm.
|
|
2151
|
+
* @description Place a pre-order as a `draft` (WHA-1155). A draft has NO side effects — no provisioning line, no procurement, no Stripe charge — so the partner can hold intent / bill its own end-user first. Call `POST /v1/pre-orders/{id}/confirm` to engage the month and start procurement. A pre-order carries exactly two inputs: the area codes you would accept, in order of preference, and the plan (`inbound_only`), which is remembered for confirm and read back on every response. The body is STRICT (WHA-2644) — any other property is a `400`, including `billing_tier`, `quantity` and `metadata`, which earlier revisions of this contract documented and the server silently discarded.
|
|
2142
2152
|
*/
|
|
2143
2153
|
post: {
|
|
2144
2154
|
parameters: {
|
|
@@ -2150,8 +2160,6 @@ export interface paths {
|
|
|
2150
2160
|
requestBody?: {
|
|
2151
2161
|
content: {
|
|
2152
2162
|
"application/json": {
|
|
2153
|
-
/** @enum {string} */
|
|
2154
|
-
billing_tier: "rental_iphone" | "rental_android";
|
|
2155
2163
|
/** @default [] */
|
|
2156
2164
|
preferred_area_codes?: string[];
|
|
2157
2165
|
/** @default false */
|
|
@@ -2533,7 +2541,7 @@ export interface paths {
|
|
|
2533
2541
|
*/
|
|
2534
2542
|
line_id: string;
|
|
2535
2543
|
/**
|
|
2536
|
-
* @description
|
|
2544
|
+
* @description Buy the INBOUND rental product instead of the outbound one. An inbound line cannot INITIATE a conversation — the contact must message first, after which the exchange is unrestricted; it is NOT receive-only. Rental tiers only. The chosen Stripe price is the source of truth: `lines.inbound_only` is re-derived from its lookup_key on `customer.subscription.created/updated`.
|
|
2537
2545
|
* @default false
|
|
2538
2546
|
*/
|
|
2539
2547
|
inbound_only?: boolean;
|
|
@@ -2682,33 +2690,39 @@ export interface paths {
|
|
|
2682
2690
|
patch?: never;
|
|
2683
2691
|
trace?: never;
|
|
2684
2692
|
};
|
|
2685
|
-
"/v1/billing/
|
|
2693
|
+
"/v1/billing/mac-checkout": {
|
|
2686
2694
|
parameters: {
|
|
2687
2695
|
query?: never;
|
|
2688
2696
|
header?: never;
|
|
2689
2697
|
path?: never;
|
|
2690
2698
|
cookie?: never;
|
|
2691
2699
|
};
|
|
2700
|
+
get?: never;
|
|
2701
|
+
put?: never;
|
|
2692
2702
|
/**
|
|
2693
|
-
*
|
|
2694
|
-
* @description
|
|
2703
|
+
* Start a Stripe Checkout for hosted macOS sessions
|
|
2704
|
+
* @description Create a Stripe Checkout Session for `quantity` rented macOS sessions, priced on a graduated ladder ($35/$30/$25/$20 per session across the 1–10 / 11–30 / 31–50 / 51+ bands). Two rules are enforced here and nowhere else: the quantity must be a whole number of packs at or above the one-pack minimum (`422 mac_quantity_not_a_pack`, the divisor echoed as `issues[0].min`), and a rented session hosts the bridge for one BYOP iPhone so sessions may not exceed the account’s BYOP lines (`422 mac_sessions_exceed_byop_lines`). Stripe’s hosted UI cannot change the quantity afterwards — use `PATCH /v1/billing/subscriptions/{id}`, which applies the same two rules.
|
|
2695
2705
|
*/
|
|
2696
|
-
|
|
2706
|
+
post: {
|
|
2697
2707
|
parameters: {
|
|
2698
2708
|
query?: never;
|
|
2699
2709
|
header?: never;
|
|
2700
2710
|
path?: never;
|
|
2701
2711
|
cookie?: never;
|
|
2702
2712
|
};
|
|
2703
|
-
requestBody?:
|
|
2713
|
+
requestBody?: {
|
|
2714
|
+
content: {
|
|
2715
|
+
"application/json": components["schemas"]["MacCheckoutBody"];
|
|
2716
|
+
};
|
|
2717
|
+
};
|
|
2704
2718
|
responses: {
|
|
2705
|
-
/** @description
|
|
2719
|
+
/** @description macOS session checkout */
|
|
2706
2720
|
200: {
|
|
2707
2721
|
headers: {
|
|
2708
2722
|
[name: string]: unknown;
|
|
2709
2723
|
};
|
|
2710
2724
|
content: {
|
|
2711
|
-
"application/json": components["schemas"]["
|
|
2725
|
+
"application/json": components["schemas"]["MacCheckoutEnvelope"];
|
|
2712
2726
|
};
|
|
2713
2727
|
};
|
|
2714
2728
|
/** @description Bad request — validation failed */
|
|
@@ -2729,6 +2743,24 @@ export interface paths {
|
|
|
2729
2743
|
"application/json": components["schemas"]["ErrorEnvelope"];
|
|
2730
2744
|
};
|
|
2731
2745
|
};
|
|
2746
|
+
/** @description Not found */
|
|
2747
|
+
404: {
|
|
2748
|
+
headers: {
|
|
2749
|
+
[name: string]: unknown;
|
|
2750
|
+
};
|
|
2751
|
+
content: {
|
|
2752
|
+
"application/json": components["schemas"]["ErrorEnvelope"];
|
|
2753
|
+
};
|
|
2754
|
+
};
|
|
2755
|
+
/** @description Unprocessable — domain rule violation */
|
|
2756
|
+
422: {
|
|
2757
|
+
headers: {
|
|
2758
|
+
[name: string]: unknown;
|
|
2759
|
+
};
|
|
2760
|
+
content: {
|
|
2761
|
+
"application/json": components["schemas"]["ErrorEnvelope"];
|
|
2762
|
+
};
|
|
2763
|
+
};
|
|
2732
2764
|
/** @description Too many requests — rate limit exceeded */
|
|
2733
2765
|
429: {
|
|
2734
2766
|
headers: {
|
|
@@ -2749,41 +2781,44 @@ export interface paths {
|
|
|
2749
2781
|
};
|
|
2750
2782
|
};
|
|
2751
2783
|
};
|
|
2752
|
-
put?: never;
|
|
2753
|
-
post?: never;
|
|
2754
2784
|
delete?: never;
|
|
2755
2785
|
options?: never;
|
|
2756
2786
|
head?: never;
|
|
2757
2787
|
patch?: never;
|
|
2758
2788
|
trace?: never;
|
|
2759
2789
|
};
|
|
2760
|
-
"/v1/billing/
|
|
2790
|
+
"/v1/billing/subscriptions/{id}": {
|
|
2761
2791
|
parameters: {
|
|
2762
2792
|
query?: never;
|
|
2763
2793
|
header?: never;
|
|
2764
2794
|
path?: never;
|
|
2765
2795
|
cookie?: never;
|
|
2766
2796
|
};
|
|
2797
|
+
get?: never;
|
|
2798
|
+
put?: never;
|
|
2799
|
+
post?: never;
|
|
2767
2800
|
/**
|
|
2768
|
-
*
|
|
2769
|
-
* @description
|
|
2801
|
+
* Cancel a subscription
|
|
2802
|
+
* @description Schedule the subscription to cancel at the end of the current billing period. The line remains active until the period rolls over; the partner sees the `cancel_at_period_end: true` flag in `GET /v1/billing/subscriptions` until then.
|
|
2770
2803
|
*/
|
|
2771
|
-
|
|
2804
|
+
delete: {
|
|
2772
2805
|
parameters: {
|
|
2773
2806
|
query?: never;
|
|
2774
2807
|
header?: never;
|
|
2775
|
-
path
|
|
2808
|
+
path: {
|
|
2809
|
+
id: string;
|
|
2810
|
+
};
|
|
2776
2811
|
cookie?: never;
|
|
2777
2812
|
};
|
|
2778
2813
|
requestBody?: never;
|
|
2779
2814
|
responses: {
|
|
2780
|
-
/** @description
|
|
2815
|
+
/** @description Subscription cancelled */
|
|
2781
2816
|
200: {
|
|
2782
2817
|
headers: {
|
|
2783
2818
|
[name: string]: unknown;
|
|
2784
2819
|
};
|
|
2785
2820
|
content: {
|
|
2786
|
-
"application/json": components["schemas"]["
|
|
2821
|
+
"application/json": components["schemas"]["BillingMessage"];
|
|
2787
2822
|
};
|
|
2788
2823
|
};
|
|
2789
2824
|
/** @description Bad request — validation failed */
|
|
@@ -2804,6 +2839,24 @@ export interface paths {
|
|
|
2804
2839
|
"application/json": components["schemas"]["ErrorEnvelope"];
|
|
2805
2840
|
};
|
|
2806
2841
|
};
|
|
2842
|
+
/** @description Not found */
|
|
2843
|
+
404: {
|
|
2844
|
+
headers: {
|
|
2845
|
+
[name: string]: unknown;
|
|
2846
|
+
};
|
|
2847
|
+
content: {
|
|
2848
|
+
"application/json": components["schemas"]["ErrorEnvelope"];
|
|
2849
|
+
};
|
|
2850
|
+
};
|
|
2851
|
+
/** @description Conflict — concurrent or terminal state */
|
|
2852
|
+
409: {
|
|
2853
|
+
headers: {
|
|
2854
|
+
[name: string]: unknown;
|
|
2855
|
+
};
|
|
2856
|
+
content: {
|
|
2857
|
+
"application/json": components["schemas"]["ErrorEnvelope"];
|
|
2858
|
+
};
|
|
2859
|
+
};
|
|
2807
2860
|
/** @description Too many requests — rate limit exceeded */
|
|
2808
2861
|
429: {
|
|
2809
2862
|
headers: {
|
|
@@ -2824,46 +2877,139 @@ export interface paths {
|
|
|
2824
2877
|
};
|
|
2825
2878
|
};
|
|
2826
2879
|
};
|
|
2827
|
-
put?: never;
|
|
2828
|
-
post?: never;
|
|
2829
|
-
delete?: never;
|
|
2830
2880
|
options?: never;
|
|
2831
2881
|
head?: never;
|
|
2832
|
-
|
|
2882
|
+
/**
|
|
2883
|
+
* Change a subscription’s quantity
|
|
2884
|
+
* @description Set the quantity on the subscription’s single quantity-adjustable item — hosted macOS sessions, or BYOP slots. Both directions of the 1:1 rule are enforced: raising sessions above the account’s BYOP lines is `422 mac_sessions_exceed_byop_lines`, and lowering BYOP below the macOS sessions already rented is `422 byop_reduction_strands_mac_sessions`. A macOS quantity must additionally be a whole pack (`422 mac_quantity_not_a_pack`). A subscription that does not carry exactly one adjustable item — a per-line rental, or a wholesale master subscription whose quantities are pushed by metering — is refused `409 subscription_not_quantity_adjustable`.
|
|
2885
|
+
*/
|
|
2886
|
+
patch: {
|
|
2887
|
+
parameters: {
|
|
2888
|
+
query?: never;
|
|
2889
|
+
header?: never;
|
|
2890
|
+
path: {
|
|
2891
|
+
id: string;
|
|
2892
|
+
};
|
|
2893
|
+
cookie?: never;
|
|
2894
|
+
};
|
|
2895
|
+
requestBody?: {
|
|
2896
|
+
content: {
|
|
2897
|
+
"application/json": components["schemas"]["SubscriptionQuantityBody"];
|
|
2898
|
+
};
|
|
2899
|
+
};
|
|
2900
|
+
responses: {
|
|
2901
|
+
/** @description Quantity updated */
|
|
2902
|
+
200: {
|
|
2903
|
+
headers: {
|
|
2904
|
+
[name: string]: unknown;
|
|
2905
|
+
};
|
|
2906
|
+
content: {
|
|
2907
|
+
"application/json": components["schemas"]["SubscriptionQuantityEnvelope"];
|
|
2908
|
+
};
|
|
2909
|
+
};
|
|
2910
|
+
/** @description Bad request — validation failed */
|
|
2911
|
+
400: {
|
|
2912
|
+
headers: {
|
|
2913
|
+
[name: string]: unknown;
|
|
2914
|
+
};
|
|
2915
|
+
content: {
|
|
2916
|
+
"application/json": components["schemas"]["ErrorEnvelope"];
|
|
2917
|
+
};
|
|
2918
|
+
};
|
|
2919
|
+
/** @description Unauthenticated — missing or invalid bearer token */
|
|
2920
|
+
401: {
|
|
2921
|
+
headers: {
|
|
2922
|
+
[name: string]: unknown;
|
|
2923
|
+
};
|
|
2924
|
+
content: {
|
|
2925
|
+
"application/json": components["schemas"]["ErrorEnvelope"];
|
|
2926
|
+
};
|
|
2927
|
+
};
|
|
2928
|
+
/** @description Forbidden — caller authenticated but not allowed */
|
|
2929
|
+
403: {
|
|
2930
|
+
headers: {
|
|
2931
|
+
[name: string]: unknown;
|
|
2932
|
+
};
|
|
2933
|
+
content: {
|
|
2934
|
+
"application/json": components["schemas"]["ErrorEnvelope"];
|
|
2935
|
+
};
|
|
2936
|
+
};
|
|
2937
|
+
/** @description Not found */
|
|
2938
|
+
404: {
|
|
2939
|
+
headers: {
|
|
2940
|
+
[name: string]: unknown;
|
|
2941
|
+
};
|
|
2942
|
+
content: {
|
|
2943
|
+
"application/json": components["schemas"]["ErrorEnvelope"];
|
|
2944
|
+
};
|
|
2945
|
+
};
|
|
2946
|
+
/** @description Conflict — concurrent or terminal state */
|
|
2947
|
+
409: {
|
|
2948
|
+
headers: {
|
|
2949
|
+
[name: string]: unknown;
|
|
2950
|
+
};
|
|
2951
|
+
content: {
|
|
2952
|
+
"application/json": components["schemas"]["ErrorEnvelope"];
|
|
2953
|
+
};
|
|
2954
|
+
};
|
|
2955
|
+
/** @description Unprocessable — domain rule violation */
|
|
2956
|
+
422: {
|
|
2957
|
+
headers: {
|
|
2958
|
+
[name: string]: unknown;
|
|
2959
|
+
};
|
|
2960
|
+
content: {
|
|
2961
|
+
"application/json": components["schemas"]["ErrorEnvelope"];
|
|
2962
|
+
};
|
|
2963
|
+
};
|
|
2964
|
+
/** @description Too many requests — rate limit exceeded */
|
|
2965
|
+
429: {
|
|
2966
|
+
headers: {
|
|
2967
|
+
[name: string]: unknown;
|
|
2968
|
+
};
|
|
2969
|
+
content: {
|
|
2970
|
+
"application/json": components["schemas"]["ErrorEnvelope"];
|
|
2971
|
+
};
|
|
2972
|
+
};
|
|
2973
|
+
/** @description Internal server error */
|
|
2974
|
+
500: {
|
|
2975
|
+
headers: {
|
|
2976
|
+
[name: string]: unknown;
|
|
2977
|
+
};
|
|
2978
|
+
content: {
|
|
2979
|
+
"application/json": components["schemas"]["ErrorEnvelope"];
|
|
2980
|
+
};
|
|
2981
|
+
};
|
|
2982
|
+
};
|
|
2983
|
+
};
|
|
2833
2984
|
trace?: never;
|
|
2834
2985
|
};
|
|
2835
|
-
"/v1/billing/subscriptions
|
|
2986
|
+
"/v1/billing/subscriptions": {
|
|
2836
2987
|
parameters: {
|
|
2837
2988
|
query?: never;
|
|
2838
2989
|
header?: never;
|
|
2839
2990
|
path?: never;
|
|
2840
2991
|
cookie?: never;
|
|
2841
2992
|
};
|
|
2842
|
-
get?: never;
|
|
2843
|
-
put?: never;
|
|
2844
|
-
post?: never;
|
|
2845
2993
|
/**
|
|
2846
|
-
*
|
|
2847
|
-
* @description
|
|
2994
|
+
* List Stripe subscriptions
|
|
2995
|
+
* @description Return every active Stripe subscription on the authenticated user's customer record — both per-line rental subs and BYOD slot subs. Period boundaries, line link, price ID, and cancellation flag are surfaced verbatim from Stripe.
|
|
2848
2996
|
*/
|
|
2849
|
-
|
|
2997
|
+
get: {
|
|
2850
2998
|
parameters: {
|
|
2851
2999
|
query?: never;
|
|
2852
3000
|
header?: never;
|
|
2853
|
-
path
|
|
2854
|
-
id: string;
|
|
2855
|
-
};
|
|
3001
|
+
path?: never;
|
|
2856
3002
|
cookie?: never;
|
|
2857
3003
|
};
|
|
2858
3004
|
requestBody?: never;
|
|
2859
3005
|
responses: {
|
|
2860
|
-
/** @description Subscription
|
|
3006
|
+
/** @description Subscription list */
|
|
2861
3007
|
200: {
|
|
2862
3008
|
headers: {
|
|
2863
3009
|
[name: string]: unknown;
|
|
2864
3010
|
};
|
|
2865
3011
|
content: {
|
|
2866
|
-
"application/json": components["schemas"]["
|
|
3012
|
+
"application/json": components["schemas"]["SubscriptionListEnvelope"];
|
|
2867
3013
|
};
|
|
2868
3014
|
};
|
|
2869
3015
|
/** @description Bad request — validation failed */
|
|
@@ -2884,8 +3030,8 @@ export interface paths {
|
|
|
2884
3030
|
"application/json": components["schemas"]["ErrorEnvelope"];
|
|
2885
3031
|
};
|
|
2886
3032
|
};
|
|
2887
|
-
/** @description
|
|
2888
|
-
|
|
3033
|
+
/** @description Too many requests — rate limit exceeded */
|
|
3034
|
+
429: {
|
|
2889
3035
|
headers: {
|
|
2890
3036
|
[name: string]: unknown;
|
|
2891
3037
|
};
|
|
@@ -2893,8 +3039,65 @@ export interface paths {
|
|
|
2893
3039
|
"application/json": components["schemas"]["ErrorEnvelope"];
|
|
2894
3040
|
};
|
|
2895
3041
|
};
|
|
2896
|
-
/** @description
|
|
2897
|
-
|
|
3042
|
+
/** @description Internal server error */
|
|
3043
|
+
500: {
|
|
3044
|
+
headers: {
|
|
3045
|
+
[name: string]: unknown;
|
|
3046
|
+
};
|
|
3047
|
+
content: {
|
|
3048
|
+
"application/json": components["schemas"]["ErrorEnvelope"];
|
|
3049
|
+
};
|
|
3050
|
+
};
|
|
3051
|
+
};
|
|
3052
|
+
};
|
|
3053
|
+
put?: never;
|
|
3054
|
+
post?: never;
|
|
3055
|
+
delete?: never;
|
|
3056
|
+
options?: never;
|
|
3057
|
+
head?: never;
|
|
3058
|
+
patch?: never;
|
|
3059
|
+
trace?: never;
|
|
3060
|
+
};
|
|
3061
|
+
"/v1/billing/invoices": {
|
|
3062
|
+
parameters: {
|
|
3063
|
+
query?: never;
|
|
3064
|
+
header?: never;
|
|
3065
|
+
path?: never;
|
|
3066
|
+
cookie?: never;
|
|
3067
|
+
};
|
|
3068
|
+
/**
|
|
3069
|
+
* List Stripe invoices
|
|
3070
|
+
* @description List the authenticated user's Stripe invoices in reverse-chronological order. Each invoice exposes the period boundaries (unix seconds), the integer-cent amounts, the hosted invoice URL, and the PDF link.
|
|
3071
|
+
*/
|
|
3072
|
+
get: {
|
|
3073
|
+
parameters: {
|
|
3074
|
+
query?: never;
|
|
3075
|
+
header?: never;
|
|
3076
|
+
path?: never;
|
|
3077
|
+
cookie?: never;
|
|
3078
|
+
};
|
|
3079
|
+
requestBody?: never;
|
|
3080
|
+
responses: {
|
|
3081
|
+
/** @description Invoice list */
|
|
3082
|
+
200: {
|
|
3083
|
+
headers: {
|
|
3084
|
+
[name: string]: unknown;
|
|
3085
|
+
};
|
|
3086
|
+
content: {
|
|
3087
|
+
"application/json": components["schemas"]["InvoiceListEnvelope"];
|
|
3088
|
+
};
|
|
3089
|
+
};
|
|
3090
|
+
/** @description Bad request — validation failed */
|
|
3091
|
+
400: {
|
|
3092
|
+
headers: {
|
|
3093
|
+
[name: string]: unknown;
|
|
3094
|
+
};
|
|
3095
|
+
content: {
|
|
3096
|
+
"application/json": components["schemas"]["ErrorEnvelope"];
|
|
3097
|
+
};
|
|
3098
|
+
};
|
|
3099
|
+
/** @description Unauthenticated — missing or invalid bearer token */
|
|
3100
|
+
401: {
|
|
2898
3101
|
headers: {
|
|
2899
3102
|
[name: string]: unknown;
|
|
2900
3103
|
};
|
|
@@ -2922,6 +3125,9 @@ export interface paths {
|
|
|
2922
3125
|
};
|
|
2923
3126
|
};
|
|
2924
3127
|
};
|
|
3128
|
+
put?: never;
|
|
3129
|
+
post?: never;
|
|
3130
|
+
delete?: never;
|
|
2925
3131
|
options?: never;
|
|
2926
3132
|
head?: never;
|
|
2927
3133
|
patch?: never;
|
|
@@ -5879,6 +6085,72 @@ export interface paths {
|
|
|
5879
6085
|
patch?: never;
|
|
5880
6086
|
trace?: never;
|
|
5881
6087
|
};
|
|
6088
|
+
"/v1/apps": {
|
|
6089
|
+
parameters: {
|
|
6090
|
+
query?: never;
|
|
6091
|
+
header?: never;
|
|
6092
|
+
path?: never;
|
|
6093
|
+
cookie?: never;
|
|
6094
|
+
};
|
|
6095
|
+
/**
|
|
6096
|
+
* Get the app/bridge download manifest (public)
|
|
6097
|
+
* @description Per-platform installer URL, published version, and availability. Requires no pairing and no auth — use it for setup guides, "add a device" flows, reinstalls, and update prompts. The URLs are the same stable 302-redirect endpoints `POST /v1/byod/pair` returns in `download_urls`, built by one shared builder so they cannot drift. `version` is read from the release feed beside the artifact the redirect resolves to, and is `null` when that feed publishes nothing — never a configured placeholder.
|
|
6098
|
+
*/
|
|
6099
|
+
get: {
|
|
6100
|
+
parameters: {
|
|
6101
|
+
query?: never;
|
|
6102
|
+
header?: never;
|
|
6103
|
+
path?: never;
|
|
6104
|
+
cookie?: never;
|
|
6105
|
+
};
|
|
6106
|
+
requestBody?: never;
|
|
6107
|
+
responses: {
|
|
6108
|
+
/** @description Per-platform download URL, version and availability */
|
|
6109
|
+
200: {
|
|
6110
|
+
headers: {
|
|
6111
|
+
[name: string]: unknown;
|
|
6112
|
+
};
|
|
6113
|
+
content: {
|
|
6114
|
+
"application/json": components["schemas"]["AppManifestEnvelope"];
|
|
6115
|
+
};
|
|
6116
|
+
};
|
|
6117
|
+
/** @description Bad request — validation failed */
|
|
6118
|
+
400: {
|
|
6119
|
+
headers: {
|
|
6120
|
+
[name: string]: unknown;
|
|
6121
|
+
};
|
|
6122
|
+
content: {
|
|
6123
|
+
"application/json": components["schemas"]["ErrorEnvelope"];
|
|
6124
|
+
};
|
|
6125
|
+
};
|
|
6126
|
+
/** @description Too many requests — rate limit exceeded */
|
|
6127
|
+
429: {
|
|
6128
|
+
headers: {
|
|
6129
|
+
[name: string]: unknown;
|
|
6130
|
+
};
|
|
6131
|
+
content: {
|
|
6132
|
+
"application/json": components["schemas"]["ErrorEnvelope"];
|
|
6133
|
+
};
|
|
6134
|
+
};
|
|
6135
|
+
/** @description Internal server error */
|
|
6136
|
+
500: {
|
|
6137
|
+
headers: {
|
|
6138
|
+
[name: string]: unknown;
|
|
6139
|
+
};
|
|
6140
|
+
content: {
|
|
6141
|
+
"application/json": components["schemas"]["ErrorEnvelope"];
|
|
6142
|
+
};
|
|
6143
|
+
};
|
|
6144
|
+
};
|
|
6145
|
+
};
|
|
6146
|
+
put?: never;
|
|
6147
|
+
post?: never;
|
|
6148
|
+
delete?: never;
|
|
6149
|
+
options?: never;
|
|
6150
|
+
head?: never;
|
|
6151
|
+
patch?: never;
|
|
6152
|
+
trace?: never;
|
|
6153
|
+
};
|
|
5882
6154
|
}
|
|
5883
6155
|
export type webhooks = Record<string, never>;
|
|
5884
6156
|
export interface components {
|
|
@@ -5932,10 +6204,14 @@ export interface components {
|
|
|
5932
6204
|
billing_tier: "rental_iphone" | "rental_android" | "byod_imessage" | "byod_android" | "shared_pool" | "shared_imessage";
|
|
5933
6205
|
/** @description True when the customer owns the underlying hardware (BYOD billing tiers). BYOD lines expose the full line-health surface (offline/degraded events, GET /v1/lines/{id}/health). Rental lines (false) only emit durable, actionable events to keep customers out of transient infrastructure noise they cannot act on. */
|
|
5934
6206
|
byod: boolean;
|
|
5935
|
-
/** @description True when the line is
|
|
6207
|
+
/** @description True when the line cannot INITIATE a conversation: the contact must send the first message, after which the exchange is unrestricted in both directions. It is NOT receive-only — the line replies, reacts and sends attachments normally once contacted. Messaging a handle that has never contacted the line is rejected with 403 outbound_first_forbidden, per recipient and with no time limit once unlocked. Cheaper than the outbound tier; always false on BYOD/pool lines. */
|
|
5936
6208
|
inbound_only: boolean;
|
|
5937
6209
|
capabilities?: unknown;
|
|
5938
6210
|
status: string;
|
|
6211
|
+
/**
|
|
6212
|
+
* @deprecated
|
|
6213
|
+
* @description Deprecated — derived from the line tier (0 for pool and owned test lines). The price a customer actually pays lives on the Stripe subscription (GET /v1/billing/subscriptions) or the pre-order amount. Removed at the next MAJOR.
|
|
6214
|
+
*/
|
|
5939
6215
|
monthly_price: number;
|
|
5940
6216
|
stripe_subscription_id: string | null;
|
|
5941
6217
|
activated_at: string | null;
|
|
@@ -5944,15 +6220,12 @@ export interface components {
|
|
|
5944
6220
|
metadata: {
|
|
5945
6221
|
[key: string]: unknown;
|
|
5946
6222
|
} | null;
|
|
5947
|
-
/** @description True when the line is an owner-provisioned test line (ownership=pool with a set owner) that backs the owner's own trial pool.
|
|
6223
|
+
/** @description True when the line is an owner-provisioned test line (ownership=pool with a set owner) that backs the owner's own trial pool. Test lines are free: monthly_price is 0, like every pool line. */
|
|
5948
6224
|
test_line: boolean;
|
|
5949
6225
|
/** @description True when the line is a virtual shared-plan line (billing_tier shared_imessage): customer-owned, no dedicated hardware, phone_number empty — sends are proxied onto the shared physical iMessage fleet. Line-scoped API keys, webhooks and per-line quota apply to it like any other line. */
|
|
5950
6226
|
shared: boolean;
|
|
5951
6227
|
fulfillment_status?: string | null;
|
|
5952
6228
|
};
|
|
5953
|
-
ApiKeyCreate: components["schemas"]["ApiKey"] & {
|
|
5954
|
-
key: string;
|
|
5955
|
-
};
|
|
5956
6229
|
ApiKey: {
|
|
5957
6230
|
/** Format: uuid */
|
|
5958
6231
|
id: string;
|
|
@@ -5964,6 +6237,9 @@ export interface components {
|
|
|
5964
6237
|
created_at: string;
|
|
5965
6238
|
last_used_at: string | null;
|
|
5966
6239
|
};
|
|
6240
|
+
ApiKeyCreate: components["schemas"]["ApiKey"] & {
|
|
6241
|
+
key: string;
|
|
6242
|
+
};
|
|
5967
6243
|
ApiKeyList: {
|
|
5968
6244
|
api_keys: components["schemas"]["ApiKey"][];
|
|
5969
6245
|
};
|
|
@@ -6171,20 +6447,17 @@ export interface components {
|
|
|
6171
6447
|
PreOrder: {
|
|
6172
6448
|
/** Format: uuid */
|
|
6173
6449
|
id: string;
|
|
6174
|
-
/** @enum {string} */
|
|
6175
|
-
billing_tier: "rental_iphone" | "rental_android";
|
|
6176
6450
|
preferred_area_codes: string[];
|
|
6451
|
+
inbound_only: boolean;
|
|
6177
6452
|
status: components["schemas"]["PreOrderStatus"];
|
|
6178
|
-
stripe_payment_intent_id: string | null;
|
|
6179
6453
|
stripe_client_secret: string | null;
|
|
6180
|
-
amount: number;
|
|
6181
6454
|
estimated_fulfillment: string | null;
|
|
6182
6455
|
device_status?: components["schemas"]["DeviceFulfillmentStatus"];
|
|
6183
6456
|
created_at: string;
|
|
6184
6457
|
updated_at: string;
|
|
6185
6458
|
};
|
|
6186
6459
|
/** @enum {string} */
|
|
6187
|
-
PreOrderStatus: "draft" | "
|
|
6460
|
+
PreOrderStatus: "draft" | "provisioning" | "fulfilled" | "cancelled";
|
|
6188
6461
|
/** @enum {string|null} */
|
|
6189
6462
|
DeviceFulfillmentStatus: "awaiting_hardware" | "received" | "setup_in_progress" | "ready" | "deployed" | null;
|
|
6190
6463
|
PreOrderList: {
|
|
@@ -6234,6 +6507,66 @@ export interface components {
|
|
|
6234
6507
|
*/
|
|
6235
6508
|
billing_cycle: "monthly" | "annual";
|
|
6236
6509
|
};
|
|
6510
|
+
MacCheckoutEnvelope: {
|
|
6511
|
+
/** @enum {boolean} */
|
|
6512
|
+
success: true;
|
|
6513
|
+
data: components["schemas"]["MacCheckoutResponse"];
|
|
6514
|
+
trace_id: string;
|
|
6515
|
+
request_id: string;
|
|
6516
|
+
};
|
|
6517
|
+
MacCheckoutResponse: {
|
|
6518
|
+
/**
|
|
6519
|
+
* Format: uri
|
|
6520
|
+
* @description Hosted Stripe Checkout URL — redirect the customer here.
|
|
6521
|
+
*/
|
|
6522
|
+
checkout_url: string;
|
|
6523
|
+
/**
|
|
6524
|
+
* Format: date-time
|
|
6525
|
+
* @description Session expiry (ISO-8601). Stripe default is 24h.
|
|
6526
|
+
*/
|
|
6527
|
+
expires_at: string;
|
|
6528
|
+
/** @description Sessions ordered — echoed back as accepted. */
|
|
6529
|
+
quantity: number;
|
|
6530
|
+
/** @description The pack divisor in force, read from the Stripe Price’s `pack_size` metadata. Quantities must be whole multiples of it, at or above it. */
|
|
6531
|
+
pack_size: number;
|
|
6532
|
+
/** @description Recurring total per period in integer cents, from the Price’s graduated tier ladder. Excludes tax, proration and coupons. */
|
|
6533
|
+
estimated_total_cents: number;
|
|
6534
|
+
};
|
|
6535
|
+
MacCheckoutBody: {
|
|
6536
|
+
/**
|
|
6537
|
+
* @description Number of hosted macOS sessions to rent. Must be a whole number of packs at or above the one-pack minimum — the pack size is read from the Stripe Price and echoed as `pack_size` in the response and in the `422` error `issues[0].min`. A quantity that is not a whole pack is refused `422 mac_quantity_not_a_pack`.
|
|
6538
|
+
* @example 5
|
|
6539
|
+
*/
|
|
6540
|
+
quantity: number;
|
|
6541
|
+
/**
|
|
6542
|
+
* @description Stripe price cadence for the session subscription.
|
|
6543
|
+
* @example monthly
|
|
6544
|
+
* @enum {string}
|
|
6545
|
+
*/
|
|
6546
|
+
billing_cycle: "monthly" | "quarterly" | "annual";
|
|
6547
|
+
};
|
|
6548
|
+
SubscriptionQuantityEnvelope: {
|
|
6549
|
+
/** @enum {boolean} */
|
|
6550
|
+
success: true;
|
|
6551
|
+
data: components["schemas"]["SubscriptionQuantityResponse"];
|
|
6552
|
+
trace_id: string;
|
|
6553
|
+
request_id: string;
|
|
6554
|
+
};
|
|
6555
|
+
SubscriptionQuantityResponse: {
|
|
6556
|
+
/** @description The Stripe subscription ID (`sub_*`). */
|
|
6557
|
+
subscription_id: string;
|
|
6558
|
+
/** @description The quantity now set on the adjustable item. */
|
|
6559
|
+
quantity: number;
|
|
6560
|
+
/** @description Recurring total per period in integer cents. `null` when the item’s Price carries no computable per-period total. Excludes tax, proration and coupons. */
|
|
6561
|
+
estimated_total_cents: number | null;
|
|
6562
|
+
};
|
|
6563
|
+
SubscriptionQuantityBody: {
|
|
6564
|
+
/**
|
|
6565
|
+
* @description New quantity for the subscription’s single adjustable item — macOS sessions, or BYOP slots. Both products are subject to the 1:1 rule (see the `422` codes), and the macOS product additionally to the pack rule.
|
|
6566
|
+
* @example 10
|
|
6567
|
+
*/
|
|
6568
|
+
quantity: number;
|
|
6569
|
+
};
|
|
6237
6570
|
SubscriptionListEnvelope: {
|
|
6238
6571
|
/** @enum {boolean} */
|
|
6239
6572
|
success: true;
|
|
@@ -6445,7 +6778,7 @@ export interface components {
|
|
|
6445
6778
|
* @description A concrete event type (e.g. `message.received`), a family wildcard (`line.*`), or the catch-all `*`.
|
|
6446
6779
|
* @enum {string}
|
|
6447
6780
|
*/
|
|
6448
|
-
WebhookEventName: "message.queued" | "message.sent" | "message.delivered" | "message.read" | "message.failed" | "message.received" | "message.scheduled" | "message.cancelled" | "message.fallback_triggered" | "reaction.added" | "reaction.received" | "reaction.removed" | "line.connected" | "line.disconnected" | "line.offline" | "line.degraded" | "line.apple_id_flagged" | "line.quota_warning" | "line.quota_exceeded" | "line.capability_changed" | "typing_indicator.started" | "typing_indicator.stopped" | "trial.linked" | "trial.dormant" | "trial.reactivated" | "trial.bind_conflict" | "trial.revoked" | "binding.released" | "pre_order.fulfilled" | "pre_order.cancelled" | "
|
|
6781
|
+
WebhookEventName: "message.queued" | "message.sent" | "message.delivered" | "message.read" | "message.failed" | "message.received" | "message.scheduled" | "message.cancelled" | "message.fallback_triggered" | "reaction.added" | "reaction.received" | "reaction.removed" | "line.connected" | "line.disconnected" | "line.offline" | "line.degraded" | "line.apple_id_flagged" | "line.quota_warning" | "line.quota_exceeded" | "line.capability_changed" | "typing_indicator.started" | "typing_indicator.stopped" | "trial.linked" | "trial.dormant" | "trial.reactivated" | "trial.bind_conflict" | "trial.revoked" | "binding.released" | "pre_order.fulfilled" | "pre_order.cancelled" | "webhook.test" | "*" | "message.*" | "reaction.*" | "line.*" | "typing_indicator.*" | "trial.*" | "binding.*" | "pre_order.*" | "webhook.*";
|
|
6449
6782
|
WebhookList: {
|
|
6450
6783
|
webhooks: components["schemas"]["Webhook"][];
|
|
6451
6784
|
};
|
|
@@ -6611,6 +6944,27 @@ export interface components {
|
|
|
6611
6944
|
region: string;
|
|
6612
6945
|
/** @example US */
|
|
6613
6946
|
country_code: string;
|
|
6947
|
+
/**
|
|
6948
|
+
* @description A ZIP code whose geography this area code serves — the postal address to use at purchase, and the address most likely to have the carrier assign this area code. `null` when no ZIP is on record for this code: choosing the address is then a judgement call for the operator, and this catalogue may not know of an overlay covering the code either, so no regional address can be assumed to yield it.
|
|
6949
|
+
* @example 10019
|
|
6950
|
+
*/
|
|
6951
|
+
purchase_zip: string | null;
|
|
6952
|
+
/**
|
|
6953
|
+
* @description Fallback ZIPs in the same geography, to retry with if the carrier rejects the primary. Empty when no ZIP is on record.
|
|
6954
|
+
* @example [
|
|
6955
|
+
* "10021",
|
|
6956
|
+
* "10023"
|
|
6957
|
+
* ]
|
|
6958
|
+
*/
|
|
6959
|
+
alt_zips: string[];
|
|
6960
|
+
/**
|
|
6961
|
+
* @description Other area codes IN THIS CATALOGUE that overlay the same geography. Non-empty means NO address can guarantee this specific code — the carrier may assign any code in the complex. An empty list is NOT the converse guarantee: it says only that no code this endpoint can offer is known to overlay this one, and an overlay outside the catalogue may still take the number.
|
|
6962
|
+
* @example [
|
|
6963
|
+
* "646",
|
|
6964
|
+
* "917"
|
|
6965
|
+
* ]
|
|
6966
|
+
*/
|
|
6967
|
+
shared_with: string[];
|
|
6614
6968
|
};
|
|
6615
6969
|
Country: {
|
|
6616
6970
|
/** @example US */
|
|
@@ -6837,6 +7191,41 @@ export interface components {
|
|
|
6837
7191
|
[key: string]: unknown;
|
|
6838
7192
|
};
|
|
6839
7193
|
};
|
|
7194
|
+
AppManifestEnvelope: {
|
|
7195
|
+
/** @enum {boolean} */
|
|
7196
|
+
success: true;
|
|
7197
|
+
data: components["schemas"]["AppManifestResponse"];
|
|
7198
|
+
trace_id: string;
|
|
7199
|
+
request_id: string;
|
|
7200
|
+
};
|
|
7201
|
+
AppManifestResponse: {
|
|
7202
|
+
macos: components["schemas"]["AppDownloadEntry"];
|
|
7203
|
+
android: components["schemas"]["AppDownloadEntry"];
|
|
7204
|
+
};
|
|
7205
|
+
AppDownloadEntry: {
|
|
7206
|
+
/**
|
|
7207
|
+
* Format: uri
|
|
7208
|
+
* @description Absolute URL of the installer redirect for this platform. Follow it (302) to the actual artifact.
|
|
7209
|
+
* @example https://api.isnap.ai/device/apps/download/macos
|
|
7210
|
+
*/
|
|
7211
|
+
url: string;
|
|
7212
|
+
/**
|
|
7213
|
+
* @description Version currently published for this platform, read from the release feed that sits beside the artifact `url` resolves to — so the number announced and the file served cannot name different releases. `null` when that feed publishes nothing or could not be read; `version_status` says which. Never a configured placeholder: a fabricated version makes a failed install and an uninformed console indistinguishable to whoever is checking. Compare it against an installed version to offer an update.
|
|
7214
|
+
* @example 0.0.211
|
|
7215
|
+
*/
|
|
7216
|
+
version: string | null;
|
|
7217
|
+
/**
|
|
7218
|
+
* @description Why `version` holds what it holds. `version` is non-null if and only if this is `published`, so a null is never ambiguous (WHA-2765). `none_published` — the feed answered and publishes no version (a 404, or a feed with no readable item): a real fact about the channel, render "version not published". `unreachable` — the feed could not be read (timeout, DNS failure, a body past the size cap): OUR fault or the update host's, and nobody knows what this channel publishes, so do not tell an operator the version is missing. `misconfigured` — an artifact URL is configured for the platform and no feed URL can be derived from it; someone must fix the deployment. `not_configured` — this deployment ships no artifact for the platform, which is the same fact `available: false` carries. Before this field the last three and the first were one indistinguishable `null`, so a broken appcast URL and a healthy pre-release channel rendered identically.
|
|
7219
|
+
* @example published
|
|
7220
|
+
* @enum {string}
|
|
7221
|
+
*/
|
|
7222
|
+
version_status: "published" | "none_published" | "unreachable" | "misconfigured" | "not_configured";
|
|
7223
|
+
/**
|
|
7224
|
+
* @description False when this deployment has no artifact configured for the platform. The entry is still returned, so a consumer can hide the affordance instead of surfacing a link that 404s on click.
|
|
7225
|
+
* @example true
|
|
7226
|
+
*/
|
|
7227
|
+
available: boolean;
|
|
7228
|
+
};
|
|
6840
7229
|
};
|
|
6841
7230
|
responses: never;
|
|
6842
7231
|
parameters: never;
|
package/dist/index.d.ts
CHANGED
|
@@ -6,6 +6,7 @@ export { APIConnectionError, APIError, AuthenticationError, BadRequestError, Con
|
|
|
6
6
|
export type { APIErrorMeta } from './errors.js';
|
|
7
7
|
export type { ErrorEnvelope, ErrorIssue, HttpMethod, RequestOptions } from './types.js';
|
|
8
8
|
export type { RetryInfo } from './retry.js';
|
|
9
|
+
export { AppsResource } from './resources/apps.js';
|
|
9
10
|
export { AreaCodesResource } from './resources/area-codes.js';
|
|
10
11
|
export { AttachmentsResource } from './resources/attachments.js';
|
|
11
12
|
export { ByodResource } from './resources/byod.js';
|
|
@@ -16,6 +17,7 @@ export { MessagesResource } from './resources/messages.js';
|
|
|
16
17
|
export { PreOrdersResource } from './resources/preorders.js';
|
|
17
18
|
export { TrialResource } from './resources/trial.js';
|
|
18
19
|
export { WebhooksResource } from './resources/webhooks.js';
|
|
20
|
+
export type { AppDownloadEntry, AppManifest } from './resources/apps.js';
|
|
19
21
|
export type { AreaCode, AreaCodes, Country, ListAreaCodesQuery } from './resources/area-codes.js';
|
|
20
22
|
export type { Chat, ChatMarkRead, ChatTypingStart, ChatTypingStop, ListChatsQuery, MarkReadBody, ShareContactCardBody, ShareContactCardResult, TypingStartBody } from './resources/chats.js';
|
|
21
23
|
export type { ActivateLineBody, AssignLineBody, Line, LineConfigPatch, LineConfigResponseData, LineHealth, LineList, ListLinesQuery, ListQueueQuery, MintSharedLineBody, MyLines, PatchLineBody, QueueResponseData, QuotaSnapshot, TransferOwnershipBody } from './resources/lines.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,qBAAq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,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,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,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,EACjB,MAAM,qBAAqB,CAAA"}
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export { ISnapClient } from './client.js';
|
|
2
2
|
export { SDK_VERSION, MIN_API_VERSION } from './version.js';
|
|
3
3
|
export { APIConnectionError, APIError, AuthenticationError, BadRequestError, ConflictError, GoneError, InternalServerError, NotFoundError, PaymentRequiredError, PermissionDeniedError, QuotaExceededError, RateLimitError, ServiceUnavailableError, UnprocessableEntityError, WebhookSignatureError } from './errors.js';
|
|
4
|
+
export { AppsResource } from './resources/apps.js';
|
|
4
5
|
export { AreaCodesResource } from './resources/area-codes.js';
|
|
5
6
|
export { AttachmentsResource } from './resources/attachments.js';
|
|
6
7
|
export { ByodResource } from './resources/byod.js';
|
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,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;AAKpB,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,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;
|
|
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,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;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,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;AAkF1D,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAA;AACvD,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAA;AAEpD,OAAO,EACL,YAAY,EACZ,cAAc,EACd,WAAW,EACX,cAAc,EACd,eAAe,EACf,eAAe,EACf,YAAY,EACZ,sBAAsB,EACvB,MAAM,qBAAqB,CAAA"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import type { components } from '../generated/openapi.js';
|
|
2
|
+
import type { RequestOptions } from '../types.js';
|
|
3
|
+
import { BaseResource } from './base.js';
|
|
4
|
+
export type AppManifest = components['schemas']['AppManifestResponse'];
|
|
5
|
+
export type AppDownloadEntry = components['schemas']['AppDownloadEntry'];
|
|
6
|
+
export declare class AppsResource extends BaseResource {
|
|
7
|
+
/**
|
|
8
|
+
* `GET /v1/apps` — the app/bridge download manifest: per-platform installer
|
|
9
|
+
* URL, the version currently published for that platform, and whether this
|
|
10
|
+
* deployment has an artifact configured for it. Public (no auth) and, unlike
|
|
11
|
+
* `byod.pair`, requires no pairing in flight — use it for setup guides,
|
|
12
|
+
* "add a device" flows, reinstalls, and update prompts (compare `version`
|
|
13
|
+
* against the version the device reports).
|
|
14
|
+
*
|
|
15
|
+
* The URLs are the same stable redirects `byod.pair` returns in
|
|
16
|
+
* `download_urls` — one builder server-side, so they cannot drift.
|
|
17
|
+
*
|
|
18
|
+
* `version` is `string | null`. It is read from the release feed beside the
|
|
19
|
+
* artifact `url` resolves to, so the number and the file cannot name
|
|
20
|
+
* different releases, and it is `null` when that feed publishes nothing.
|
|
21
|
+
* Render the absence ("version not published"); never substitute a number,
|
|
22
|
+
* and do not treat `null` as an error. It is deliberately NOT the
|
|
23
|
+
* `bridge_version` string `byod.pair` returns — that field is a separate,
|
|
24
|
+
* device-facing value (WHA-2538).
|
|
25
|
+
*
|
|
26
|
+
* A platform with `available: false` still appears in the response; hide the
|
|
27
|
+
* affordance rather than offering a link that 404s on click.
|
|
28
|
+
*/
|
|
29
|
+
manifest(opts?: RequestOptions): Promise<AppManifest>;
|
|
30
|
+
}
|
|
31
|
+
//# sourceMappingURL=apps.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"apps.d.ts","sourceRoot":"","sources":["../../src/resources/apps.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAA;AACzD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAA;AACjD,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAA;AAExC,MAAM,MAAM,WAAW,GAAG,UAAU,CAAC,SAAS,CAAC,CAAC,qBAAqB,CAAC,CAAA;AACtE,MAAM,MAAM,gBAAgB,GAAG,UAAU,CAAC,SAAS,CAAC,CAAC,kBAAkB,CAAC,CAAA;AAExE,qBAAa,YAAa,SAAQ,YAAY;IAC5C;;;;;;;;;;;;;;;;;;;;;OAqBG;IACH,QAAQ,CAAC,IAAI,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,WAAW,CAAC;CAGtD"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { BaseResource } from './base.js';
|
|
2
|
+
export class AppsResource extends BaseResource {
|
|
3
|
+
/**
|
|
4
|
+
* `GET /v1/apps` — the app/bridge download manifest: per-platform installer
|
|
5
|
+
* URL, the version currently published for that platform, and whether this
|
|
6
|
+
* deployment has an artifact configured for it. Public (no auth) and, unlike
|
|
7
|
+
* `byod.pair`, requires no pairing in flight — use it for setup guides,
|
|
8
|
+
* "add a device" flows, reinstalls, and update prompts (compare `version`
|
|
9
|
+
* against the version the device reports).
|
|
10
|
+
*
|
|
11
|
+
* The URLs are the same stable redirects `byod.pair` returns in
|
|
12
|
+
* `download_urls` — one builder server-side, so they cannot drift.
|
|
13
|
+
*
|
|
14
|
+
* `version` is `string | null`. It is read from the release feed beside the
|
|
15
|
+
* artifact `url` resolves to, so the number and the file cannot name
|
|
16
|
+
* different releases, and it is `null` when that feed publishes nothing.
|
|
17
|
+
* Render the absence ("version not published"); never substitute a number,
|
|
18
|
+
* and do not treat `null` as an error. It is deliberately NOT the
|
|
19
|
+
* `bridge_version` string `byod.pair` returns — that field is a separate,
|
|
20
|
+
* device-facing value (WHA-2538).
|
|
21
|
+
*
|
|
22
|
+
* A platform with `available: false` still appears in the response; hide the
|
|
23
|
+
* affordance rather than offering a link that 404s on click.
|
|
24
|
+
*/
|
|
25
|
+
manifest(opts) {
|
|
26
|
+
return this.client.request('GET', '/v1/apps', undefined, opts);
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
//# sourceMappingURL=apps.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"apps.js","sourceRoot":"","sources":["../../src/resources/apps.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAA;AAKxC,MAAM,OAAO,YAAa,SAAQ,YAAY;IAC5C;;;;;;;;;;;;;;;;;;;;;OAqBG;IACH,QAAQ,CAAC,IAAqB;QAC5B,OAAO,IAAI,CAAC,MAAM,CAAC,OAAO,CAAc,KAAK,EAAE,UAAU,EAAE,SAAS,EAAE,IAAI,CAAC,CAAA;IAC7E,CAAC;CACF"}
|
|
@@ -56,10 +56,12 @@ export declare class LinesResource extends BaseResource {
|
|
|
56
56
|
reserve(id: string, opts?: RequestOptions): Promise<Line>;
|
|
57
57
|
/**
|
|
58
58
|
* `POST /v1/lines/{id}/activate` — commit a reserved line to `active`.
|
|
59
|
-
* Wholesale partners
|
|
60
|
-
* Stripe checkout, EOM-metered)
|
|
61
|
-
* via `body.inbound_only`. Direct
|
|
62
|
-
*
|
|
59
|
+
* **Wholesale partners only**: the second phase of reserve→activate (no
|
|
60
|
+
* Stripe checkout, EOM-metered), which may pick the inbound-only rental
|
|
61
|
+
* variant via `body.inbound_only`. Direct customers get `402
|
|
62
|
+
* checkout_required` — their line activates when the Stripe Checkout session
|
|
63
|
+
* from `billing.checkout()` is paid, and their `inbound_only` comes from the
|
|
64
|
+
* price they paid.
|
|
63
65
|
*/
|
|
64
66
|
activate(id: string, body?: ActivateLineBody, opts?: RequestOptions): Promise<Line>;
|
|
65
67
|
/** `POST /v1/lines/{id}/release` — release an active or reserved line back to the pool. */
|
|
@@ -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,MAAM,IAAI,GAAG,UAAU,CAAC,SAAS,CAAC,CAAC,MAAM,CAAC,CAAA;AAChD,MAAM,MAAM,QAAQ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,IAAI,CAAC;IAS5E,+EAA+E;IAC/E,KAAK,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,aAAa,CAAC;IAShE,qFAAqF;IACrF,KAAK,CACH,EAAE,EAAE,MAAM,EACV,KAAK,GAAE,cAAmB,EAC1B,IAAI,CAAC,EAAE,cAAc,GACpB,OAAO,CAAC,iBAAiB,CAAC;IAS7B;;;;;;;;OAQG;IACH,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,UAAU,CAAC;IAS9D,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
|
@@ -54,10 +54,12 @@ export class LinesResource extends BaseResource {
|
|
|
54
54
|
}
|
|
55
55
|
/**
|
|
56
56
|
* `POST /v1/lines/{id}/activate` — commit a reserved line to `active`.
|
|
57
|
-
* Wholesale partners
|
|
58
|
-
* Stripe checkout, EOM-metered)
|
|
59
|
-
* via `body.inbound_only`. Direct
|
|
60
|
-
*
|
|
57
|
+
* **Wholesale partners only**: the second phase of reserve→activate (no
|
|
58
|
+
* Stripe checkout, EOM-metered), which may pick the inbound-only rental
|
|
59
|
+
* variant via `body.inbound_only`. Direct customers get `402
|
|
60
|
+
* checkout_required` — their line activates when the Stripe Checkout session
|
|
61
|
+
* from `billing.checkout()` is paid, and their `inbound_only` comes from the
|
|
62
|
+
* price they paid.
|
|
61
63
|
*/
|
|
62
64
|
activate(id, body = {}, opts) {
|
|
63
65
|
return this.client.request('POST', `/v1/lines/${encodeURIComponent(id)}/activate`, body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AO,CACxB,OAAO,EACP,aAAa,kBAAkB,CAAC,EAAE,CAAC,SAAS,EAC5C,IAAI,EACJ,IAAI,CACL,CAAA;IACH,CAAC;CACF"}
|
package/dist/version.d.ts
CHANGED
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;AAyBlC,eAAO,MAAM,eAAe,UAAU,CAAA"}
|
package/dist/version.js
CHANGED
|
@@ -17,8 +17,16 @@ export const SDK_VERSION = '1.3.0';
|
|
|
17
17
|
// Bump this when the SDK starts using a feature that requires a specific
|
|
18
18
|
// backend version (e.g. a new endpoint added in API minor X.Y.0 — the
|
|
19
19
|
// SDK that wraps it sets MIN_API_VERSION to X.Y.0). Within a major
|
|
20
|
-
// version
|
|
21
|
-
//
|
|
22
|
-
//
|
|
23
|
-
|
|
20
|
+
// version, the API stays additive (oasdiff `--deprecation-days-stable 30`
|
|
21
|
+
// enforced in CI), so an SDK keeps working against any backend of the same
|
|
22
|
+
// major without raising the floor.
|
|
23
|
+
//
|
|
24
|
+
// WHA-2644 — raised from `1.0.0` to `2.0.0`. The premise the old value rested
|
|
25
|
+
// on ("within 1.x the API stays additive") is precisely what the pre-order
|
|
26
|
+
// strip broke: `PreOrder` lost `amount`, `billing_tier` and
|
|
27
|
+
// `stripe_payment_intent_id`, so the generated types in this package no longer
|
|
28
|
+
// describe ANY 1.x backend. Leaving the floor at `1.0.0` would have been the
|
|
29
|
+
// same class of defect the change removes — a field that says something the
|
|
30
|
+
// code does not do.
|
|
31
|
+
export const MIN_API_VERSION = '2.0.0';
|
|
24
32
|
//# 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,
|
|
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,MAAM,CAAC,MAAM,eAAe,GAAG,OAAO,CAAA"}
|
package/dist/webhooks/types.d.ts
CHANGED
|
@@ -95,7 +95,7 @@ export interface TrialEvent extends WebhookEventBase {
|
|
|
95
95
|
event_type: `trial.${string}`;
|
|
96
96
|
data: Record<string, unknown>;
|
|
97
97
|
}
|
|
98
|
-
export type PreOrderEventType = 'pre_order.fulfilled' | 'pre_order.cancelled'
|
|
98
|
+
export type PreOrderEventType = 'pre_order.fulfilled' | 'pre_order.cancelled';
|
|
99
99
|
/**
|
|
100
100
|
* Pre-order lifecycle events fired when ops procures hardware against a
|
|
101
101
|
* customer pre-order. `pre_order.fulfilled` carries the freshly-activated
|
|
@@ -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,CAAA;CAC9B;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,CAAA;CAC3B;AAID,MAAM,MAAM,iBAAiB,GACzB,gBAAgB,GAChB,mBAAmB,GACnB,kBAAkB,CAAA;AAEtB,wEAAwE;AACxE,KAAK,qBAAqB,GAAG;IAC3B,iBAAiB,EAAE,MAAM,CAAA;IACzB,WAAW,EAAE,MAAM,CAAA;IACnB,aAAa,EAAE,YAAY,CAAA;IAC3B,cAAc,EAAE,MAAM,GAAG,IAAI,CAAA;IAC7B,UAAU,CAAC,EAAE,MAAM,CAAA;CACpB,CAAA;AAED;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,MAAM,MAAM,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AAY,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":"AAmRA,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,YAAY,CAAC,KAAuB;IAClD,OAAO,KAAK,CAAC,UAAU,CAAC,UAAU,CAAC,UAAU,CAAC,CAAA;AAChD,CAAC"}
|