@isnap/sdk 1.1.0-next.52 → 1.1.0-next.53
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/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 +813 -81
- 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/area-codes.d.ts +19 -0
- package/dist/resources/area-codes.d.ts.map +1 -0
- package/dist/resources/area-codes.js +18 -0
- package/dist/resources/area-codes.js.map +1 -0
- package/package.json +1 -1
package/dist/client.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { type ClientConfig } from './config.js';
|
|
2
|
+
import { AreaCodesResource } from './resources/area-codes.js';
|
|
2
3
|
import { AttachmentsResource } from './resources/attachments.js';
|
|
3
4
|
import { ByodResource } from './resources/byod.js';
|
|
4
5
|
import { ChatsResource } from './resources/chats.js';
|
|
@@ -19,6 +20,7 @@ import type { HttpMethod, RequestOptions } from './types.js';
|
|
|
19
20
|
export declare function _resetDeprecationWarnings(): void;
|
|
20
21
|
export declare class ISnapClient {
|
|
21
22
|
private readonly config;
|
|
23
|
+
readonly areaCodes: AreaCodesResource;
|
|
22
24
|
readonly attachments: AttachmentsResource;
|
|
23
25
|
readonly byod: ByodResource;
|
|
24
26
|
readonly chats: ChatsResource;
|
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;AAQpB,OAAO,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAA;AAChE,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAA;AAClD,OAAO,EAAE,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AAM,EAAE,UAAU,EAClB,IAAI,EAAE,MAAM,EACZ,IAAI,CAAC,EAAE,OAAO,EACd,IAAI,GAAE,cAAmB,GACxB,OAAO,CAAC,CAAC,CAAC;YAwBC,QAAQ;IA8GtB,OAAO,CAAC,QAAQ;IAehB,OAAO,CAAC,YAAY;IAqBpB,OAAO,CAAC,gBAAgB;IAsBxB,OAAO,CAAC,sBAAsB;CAO/B"}
|
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 { AreaCodesResource } from './resources/area-codes.js';
|
|
4
5
|
import { AttachmentsResource } from './resources/attachments.js';
|
|
5
6
|
import { ByodResource } from './resources/byod.js';
|
|
6
7
|
import { ChatsResource } from './resources/chats.js';
|
|
@@ -37,6 +38,7 @@ export function _resetDeprecationWarnings() {
|
|
|
37
38
|
}
|
|
38
39
|
export class ISnapClient {
|
|
39
40
|
config;
|
|
41
|
+
areaCodes;
|
|
40
42
|
attachments;
|
|
41
43
|
byod;
|
|
42
44
|
chats;
|
|
@@ -48,6 +50,7 @@ export class ISnapClient {
|
|
|
48
50
|
webhooks;
|
|
49
51
|
constructor(config) {
|
|
50
52
|
this.config = resolveConfig(config);
|
|
53
|
+
this.areaCodes = new AreaCodesResource(this);
|
|
51
54
|
this.attachments = new AttachmentsResource(this);
|
|
52
55
|
this.byod = new ByodResource(this);
|
|
53
56
|
this.chats = new ChatsResource(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,EACL,kBAAkB,EAClB,QAAQ,EACR,uBA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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"}
|
|
@@ -5419,7 +5419,7 @@ export interface paths {
|
|
|
5419
5419
|
};
|
|
5420
5420
|
/**
|
|
5421
5421
|
* Get a BYOD line's health snapshot
|
|
5422
|
-
* @description BYOD-only health rollup
|
|
5422
|
+
* @description BYOD-only health rollup. `state` (`active` / `degraded` / `offline`) is derived from the device's fundamental capabilities — min(send_text, imessage) — with offline (no heartbeat) taking precedence. Also returns `runtime_capabilities` (the per-key tri-valued descriptor the device last reported), last heartbeat timestamp, daily quota headroom, Apple-ID-flagged flag, last-error string, bridge version. Rental tiers receive 403 `rental_health_not_exposed` — they don't own the hardware and surfacing transient state creates support-ticket noise.
|
|
5423
5423
|
*/
|
|
5424
5424
|
get: {
|
|
5425
5425
|
parameters: {
|
|
@@ -8373,6 +8373,75 @@ export interface paths {
|
|
|
8373
8373
|
patch?: never;
|
|
8374
8374
|
trace?: never;
|
|
8375
8375
|
};
|
|
8376
|
+
"/v1/area-codes": {
|
|
8377
|
+
parameters: {
|
|
8378
|
+
query?: never;
|
|
8379
|
+
header?: never;
|
|
8380
|
+
path?: never;
|
|
8381
|
+
cookie?: never;
|
|
8382
|
+
};
|
|
8383
|
+
/**
|
|
8384
|
+
* List selectable area codes (public)
|
|
8385
|
+
* @description Enumerate the area codes a customer can request as `preferred_area_codes` on `POST /v1/pre-orders`, for rendering a pre-order area-code picker. Optional `?country=US` filters the list. Also returns the selectable countries so the same response can drive a country dropdown. Unauthenticated — mirrors `GET /v1/lines` and `GET /pricing`. The list is the *selectable* set (a curated subset of NANP), not a guarantee of immediate inventory: pre-orders are precisely for tiers with no in-stock line.
|
|
8386
|
+
*/
|
|
8387
|
+
get: {
|
|
8388
|
+
parameters: {
|
|
8389
|
+
query?: {
|
|
8390
|
+
/** @description ISO 3166-1 alpha-2 country filter (case-insensitive). Omit for all countries. */
|
|
8391
|
+
country?: string;
|
|
8392
|
+
};
|
|
8393
|
+
header?: never;
|
|
8394
|
+
path?: never;
|
|
8395
|
+
cookie?: never;
|
|
8396
|
+
};
|
|
8397
|
+
requestBody?: never;
|
|
8398
|
+
responses: {
|
|
8399
|
+
/** @description Selectable area codes + countries */
|
|
8400
|
+
200: {
|
|
8401
|
+
headers: {
|
|
8402
|
+
[name: string]: unknown;
|
|
8403
|
+
};
|
|
8404
|
+
content: {
|
|
8405
|
+
"application/json": components["schemas"]["AreaCodesEnvelope"];
|
|
8406
|
+
};
|
|
8407
|
+
};
|
|
8408
|
+
/** @description Bad request — validation failed */
|
|
8409
|
+
400: {
|
|
8410
|
+
headers: {
|
|
8411
|
+
[name: string]: unknown;
|
|
8412
|
+
};
|
|
8413
|
+
content: {
|
|
8414
|
+
"application/json": components["schemas"]["ErrorEnvelope"];
|
|
8415
|
+
};
|
|
8416
|
+
};
|
|
8417
|
+
/** @description Too many requests — rate limit exceeded */
|
|
8418
|
+
429: {
|
|
8419
|
+
headers: {
|
|
8420
|
+
[name: string]: unknown;
|
|
8421
|
+
};
|
|
8422
|
+
content: {
|
|
8423
|
+
"application/json": components["schemas"]["ErrorEnvelope"];
|
|
8424
|
+
};
|
|
8425
|
+
};
|
|
8426
|
+
/** @description Internal server error */
|
|
8427
|
+
500: {
|
|
8428
|
+
headers: {
|
|
8429
|
+
[name: string]: unknown;
|
|
8430
|
+
};
|
|
8431
|
+
content: {
|
|
8432
|
+
"application/json": components["schemas"]["ErrorEnvelope"];
|
|
8433
|
+
};
|
|
8434
|
+
};
|
|
8435
|
+
};
|
|
8436
|
+
};
|
|
8437
|
+
put?: never;
|
|
8438
|
+
post?: never;
|
|
8439
|
+
delete?: never;
|
|
8440
|
+
options?: never;
|
|
8441
|
+
head?: never;
|
|
8442
|
+
patch?: never;
|
|
8443
|
+
trace?: never;
|
|
8444
|
+
};
|
|
8376
8445
|
"/v1/chats/{chat_id}/share-contact-card": {
|
|
8377
8446
|
parameters: {
|
|
8378
8447
|
query?: never;
|
|
@@ -8713,11 +8782,520 @@ export interface paths {
|
|
|
8713
8782
|
[name: string]: unknown;
|
|
8714
8783
|
};
|
|
8715
8784
|
content: {
|
|
8716
|
-
"application/json": components["schemas"]["ErrorEnvelope"];
|
|
8785
|
+
"application/json": components["schemas"]["ErrorEnvelope"];
|
|
8786
|
+
};
|
|
8787
|
+
};
|
|
8788
|
+
/** @description Forbidden — caller authenticated but not allowed */
|
|
8789
|
+
403: {
|
|
8790
|
+
headers: {
|
|
8791
|
+
[name: string]: unknown;
|
|
8792
|
+
};
|
|
8793
|
+
content: {
|
|
8794
|
+
"application/json": components["schemas"]["ErrorEnvelope"];
|
|
8795
|
+
};
|
|
8796
|
+
};
|
|
8797
|
+
/** @description Not found */
|
|
8798
|
+
404: {
|
|
8799
|
+
headers: {
|
|
8800
|
+
[name: string]: unknown;
|
|
8801
|
+
};
|
|
8802
|
+
content: {
|
|
8803
|
+
"application/json": components["schemas"]["ErrorEnvelope"];
|
|
8804
|
+
};
|
|
8805
|
+
};
|
|
8806
|
+
/** @description Too many requests — rate limit exceeded */
|
|
8807
|
+
429: {
|
|
8808
|
+
headers: {
|
|
8809
|
+
[name: string]: unknown;
|
|
8810
|
+
};
|
|
8811
|
+
content: {
|
|
8812
|
+
"application/json": components["schemas"]["ErrorEnvelope"];
|
|
8813
|
+
};
|
|
8814
|
+
};
|
|
8815
|
+
/** @description Internal server error */
|
|
8816
|
+
500: {
|
|
8817
|
+
headers: {
|
|
8818
|
+
[name: string]: unknown;
|
|
8819
|
+
};
|
|
8820
|
+
content: {
|
|
8821
|
+
"application/json": components["schemas"]["ErrorEnvelope"];
|
|
8822
|
+
};
|
|
8823
|
+
};
|
|
8824
|
+
};
|
|
8825
|
+
};
|
|
8826
|
+
delete?: never;
|
|
8827
|
+
options?: never;
|
|
8828
|
+
head?: never;
|
|
8829
|
+
patch?: never;
|
|
8830
|
+
trace?: never;
|
|
8831
|
+
};
|
|
8832
|
+
"/v1/trial/init": {
|
|
8833
|
+
parameters: {
|
|
8834
|
+
query?: never;
|
|
8835
|
+
header?: never;
|
|
8836
|
+
path?: never;
|
|
8837
|
+
cookie?: never;
|
|
8838
|
+
};
|
|
8839
|
+
get?: never;
|
|
8840
|
+
put?: never;
|
|
8841
|
+
/**
|
|
8842
|
+
* Start a trial session
|
|
8843
|
+
* @description Create a pairing-pending trial session against the caller's API key. Returns a one-time pairing token the partner embeds in their onboarding UI; the recipient claims it by sending an inbound message that links them to a shared-pool line.
|
|
8844
|
+
*/
|
|
8845
|
+
post: {
|
|
8846
|
+
parameters: {
|
|
8847
|
+
query?: never;
|
|
8848
|
+
header?: never;
|
|
8849
|
+
path?: never;
|
|
8850
|
+
cookie?: never;
|
|
8851
|
+
};
|
|
8852
|
+
requestBody?: {
|
|
8853
|
+
content: {
|
|
8854
|
+
"application/json": components["schemas"]["TrialInitBody"];
|
|
8855
|
+
};
|
|
8856
|
+
};
|
|
8857
|
+
responses: {
|
|
8858
|
+
/** @description Trial session created — pairing pending */
|
|
8859
|
+
201: {
|
|
8860
|
+
headers: {
|
|
8861
|
+
[name: string]: unknown;
|
|
8862
|
+
};
|
|
8863
|
+
content: {
|
|
8864
|
+
"application/json": components["schemas"]["TrialInitEnvelope"];
|
|
8865
|
+
};
|
|
8866
|
+
};
|
|
8867
|
+
/** @description Bad request — validation failed */
|
|
8868
|
+
400: {
|
|
8869
|
+
headers: {
|
|
8870
|
+
[name: string]: unknown;
|
|
8871
|
+
};
|
|
8872
|
+
content: {
|
|
8873
|
+
"application/json": components["schemas"]["ErrorEnvelope"];
|
|
8874
|
+
};
|
|
8875
|
+
};
|
|
8876
|
+
/** @description Unauthenticated — missing or invalid bearer token */
|
|
8877
|
+
401: {
|
|
8878
|
+
headers: {
|
|
8879
|
+
[name: string]: unknown;
|
|
8880
|
+
};
|
|
8881
|
+
content: {
|
|
8882
|
+
"application/json": components["schemas"]["ErrorEnvelope"];
|
|
8883
|
+
};
|
|
8884
|
+
};
|
|
8885
|
+
/** @description Too many requests — rate limit exceeded */
|
|
8886
|
+
429: {
|
|
8887
|
+
headers: {
|
|
8888
|
+
[name: string]: unknown;
|
|
8889
|
+
};
|
|
8890
|
+
content: {
|
|
8891
|
+
"application/json": components["schemas"]["ErrorEnvelope"];
|
|
8892
|
+
};
|
|
8893
|
+
};
|
|
8894
|
+
/** @description Internal server error */
|
|
8895
|
+
500: {
|
|
8896
|
+
headers: {
|
|
8897
|
+
[name: string]: unknown;
|
|
8898
|
+
};
|
|
8899
|
+
content: {
|
|
8900
|
+
"application/json": components["schemas"]["ErrorEnvelope"];
|
|
8901
|
+
};
|
|
8902
|
+
};
|
|
8903
|
+
};
|
|
8904
|
+
};
|
|
8905
|
+
delete?: never;
|
|
8906
|
+
options?: never;
|
|
8907
|
+
head?: never;
|
|
8908
|
+
patch?: never;
|
|
8909
|
+
trace?: never;
|
|
8910
|
+
};
|
|
8911
|
+
"/v1/trial/status": {
|
|
8912
|
+
parameters: {
|
|
8913
|
+
query?: never;
|
|
8914
|
+
header?: never;
|
|
8915
|
+
path?: never;
|
|
8916
|
+
cookie?: never;
|
|
8917
|
+
};
|
|
8918
|
+
/**
|
|
8919
|
+
* Check trial pairing status
|
|
8920
|
+
* @description Token-keyed public lookup. Returns the current trial state — `pairing_pending` while waiting for the recipient's first inbound, `paired` once linked, `expired` after the pairing window. On first poll after `paired` the response also reveals the `trial_api_key` (`isnap_test_*`) for the partner to embed.
|
|
8921
|
+
*/
|
|
8922
|
+
get: {
|
|
8923
|
+
parameters: {
|
|
8924
|
+
query: {
|
|
8925
|
+
token: string;
|
|
8926
|
+
};
|
|
8927
|
+
header?: never;
|
|
8928
|
+
path?: never;
|
|
8929
|
+
cookie?: never;
|
|
8930
|
+
};
|
|
8931
|
+
requestBody?: never;
|
|
8932
|
+
responses: {
|
|
8933
|
+
/** @description Current trial status */
|
|
8934
|
+
200: {
|
|
8935
|
+
headers: {
|
|
8936
|
+
[name: string]: unknown;
|
|
8937
|
+
};
|
|
8938
|
+
content: {
|
|
8939
|
+
"application/json": components["schemas"]["TrialStatusEnvelope"];
|
|
8940
|
+
};
|
|
8941
|
+
};
|
|
8942
|
+
/** @description Bad request — validation failed */
|
|
8943
|
+
400: {
|
|
8944
|
+
headers: {
|
|
8945
|
+
[name: string]: unknown;
|
|
8946
|
+
};
|
|
8947
|
+
content: {
|
|
8948
|
+
"application/json": components["schemas"]["ErrorEnvelope"];
|
|
8949
|
+
};
|
|
8950
|
+
};
|
|
8951
|
+
/** @description Not found */
|
|
8952
|
+
404: {
|
|
8953
|
+
headers: {
|
|
8954
|
+
[name: string]: unknown;
|
|
8955
|
+
};
|
|
8956
|
+
content: {
|
|
8957
|
+
"application/json": components["schemas"]["ErrorEnvelope"];
|
|
8958
|
+
};
|
|
8959
|
+
};
|
|
8960
|
+
/** @description Too many requests — rate limit exceeded */
|
|
8961
|
+
429: {
|
|
8962
|
+
headers: {
|
|
8963
|
+
[name: string]: unknown;
|
|
8964
|
+
};
|
|
8965
|
+
content: {
|
|
8966
|
+
"application/json": components["schemas"]["ErrorEnvelope"];
|
|
8967
|
+
};
|
|
8968
|
+
};
|
|
8969
|
+
/** @description Internal server error */
|
|
8970
|
+
500: {
|
|
8971
|
+
headers: {
|
|
8972
|
+
[name: string]: unknown;
|
|
8973
|
+
};
|
|
8974
|
+
content: {
|
|
8975
|
+
"application/json": components["schemas"]["ErrorEnvelope"];
|
|
8976
|
+
};
|
|
8977
|
+
};
|
|
8978
|
+
};
|
|
8979
|
+
};
|
|
8980
|
+
put?: never;
|
|
8981
|
+
post?: never;
|
|
8982
|
+
delete?: never;
|
|
8983
|
+
options?: never;
|
|
8984
|
+
head?: never;
|
|
8985
|
+
patch?: never;
|
|
8986
|
+
trace?: never;
|
|
8987
|
+
};
|
|
8988
|
+
"/v1/trial/activity": {
|
|
8989
|
+
parameters: {
|
|
8990
|
+
query?: never;
|
|
8991
|
+
header?: never;
|
|
8992
|
+
path?: never;
|
|
8993
|
+
cookie?: never;
|
|
8994
|
+
};
|
|
8995
|
+
/**
|
|
8996
|
+
* Get trial activity counters
|
|
8997
|
+
* @description Trial-key-only snapshot of the dormancy and outbound-without-inbound counters. Partner dashboards poll this to render the trial's live state ("3/10 sends since last inbound", dormancy timer remaining).
|
|
8998
|
+
*/
|
|
8999
|
+
get: {
|
|
9000
|
+
parameters: {
|
|
9001
|
+
query?: never;
|
|
9002
|
+
header?: never;
|
|
9003
|
+
path?: never;
|
|
9004
|
+
cookie?: never;
|
|
9005
|
+
};
|
|
9006
|
+
requestBody?: never;
|
|
9007
|
+
responses: {
|
|
9008
|
+
/** @description Trial activity snapshot */
|
|
9009
|
+
200: {
|
|
9010
|
+
headers: {
|
|
9011
|
+
[name: string]: unknown;
|
|
9012
|
+
};
|
|
9013
|
+
content: {
|
|
9014
|
+
"application/json": components["schemas"]["TrialActivityEnvelope"];
|
|
9015
|
+
};
|
|
9016
|
+
};
|
|
9017
|
+
/** @description Bad request — validation failed */
|
|
9018
|
+
400: {
|
|
9019
|
+
headers: {
|
|
9020
|
+
[name: string]: unknown;
|
|
9021
|
+
};
|
|
9022
|
+
content: {
|
|
9023
|
+
"application/json": components["schemas"]["ErrorEnvelope"];
|
|
9024
|
+
};
|
|
9025
|
+
};
|
|
9026
|
+
/** @description Unauthenticated — missing or invalid bearer token */
|
|
9027
|
+
401: {
|
|
9028
|
+
headers: {
|
|
9029
|
+
[name: string]: unknown;
|
|
9030
|
+
};
|
|
9031
|
+
content: {
|
|
9032
|
+
"application/json": components["schemas"]["ErrorEnvelope"];
|
|
9033
|
+
};
|
|
9034
|
+
};
|
|
9035
|
+
/** @description Too many requests — rate limit exceeded */
|
|
9036
|
+
429: {
|
|
9037
|
+
headers: {
|
|
9038
|
+
[name: string]: unknown;
|
|
9039
|
+
};
|
|
9040
|
+
content: {
|
|
9041
|
+
"application/json": components["schemas"]["ErrorEnvelope"];
|
|
9042
|
+
};
|
|
9043
|
+
};
|
|
9044
|
+
/** @description Internal server error */
|
|
9045
|
+
500: {
|
|
9046
|
+
headers: {
|
|
9047
|
+
[name: string]: unknown;
|
|
9048
|
+
};
|
|
9049
|
+
content: {
|
|
9050
|
+
"application/json": components["schemas"]["ErrorEnvelope"];
|
|
9051
|
+
};
|
|
9052
|
+
};
|
|
9053
|
+
};
|
|
9054
|
+
};
|
|
9055
|
+
put?: never;
|
|
9056
|
+
post?: never;
|
|
9057
|
+
delete?: never;
|
|
9058
|
+
options?: never;
|
|
9059
|
+
head?: never;
|
|
9060
|
+
patch?: never;
|
|
9061
|
+
trace?: never;
|
|
9062
|
+
};
|
|
9063
|
+
"/v1/byod/pair": {
|
|
9064
|
+
parameters: {
|
|
9065
|
+
query?: never;
|
|
9066
|
+
header?: never;
|
|
9067
|
+
path?: never;
|
|
9068
|
+
cookie?: never;
|
|
9069
|
+
};
|
|
9070
|
+
get?: never;
|
|
9071
|
+
put?: never;
|
|
9072
|
+
/**
|
|
9073
|
+
* Start a BYOD pairing flow
|
|
9074
|
+
* @description Mint a one-time activation code plus the stable per-platform bridge-installer download links for a customer-owned Mac+iPhone or Android device. The customer runs the bridge, enters the code, and the device-side `POST /device/activate` consumes it to mint a `byod_imessage` or `byod_android` line — the platform is derived there from what the bridge reports.
|
|
9075
|
+
*/
|
|
9076
|
+
post: {
|
|
9077
|
+
parameters: {
|
|
9078
|
+
query?: never;
|
|
9079
|
+
header?: never;
|
|
9080
|
+
path?: never;
|
|
9081
|
+
cookie?: never;
|
|
9082
|
+
};
|
|
9083
|
+
requestBody?: {
|
|
9084
|
+
content: {
|
|
9085
|
+
"application/json": components["schemas"]["ByodPairBody"];
|
|
9086
|
+
};
|
|
9087
|
+
};
|
|
9088
|
+
responses: {
|
|
9089
|
+
/** @description Activation code + bridge download URL */
|
|
9090
|
+
201: {
|
|
9091
|
+
headers: {
|
|
9092
|
+
[name: string]: unknown;
|
|
9093
|
+
};
|
|
9094
|
+
content: {
|
|
9095
|
+
"application/json": components["schemas"]["ByodPairEnvelope"];
|
|
9096
|
+
};
|
|
9097
|
+
};
|
|
9098
|
+
/** @description Bad request — validation failed */
|
|
9099
|
+
400: {
|
|
9100
|
+
headers: {
|
|
9101
|
+
[name: string]: unknown;
|
|
9102
|
+
};
|
|
9103
|
+
content: {
|
|
9104
|
+
"application/json": components["schemas"]["ErrorEnvelope"];
|
|
9105
|
+
};
|
|
9106
|
+
};
|
|
9107
|
+
/** @description Unauthenticated — missing or invalid bearer token */
|
|
9108
|
+
401: {
|
|
9109
|
+
headers: {
|
|
9110
|
+
[name: string]: unknown;
|
|
9111
|
+
};
|
|
9112
|
+
content: {
|
|
9113
|
+
"application/json": components["schemas"]["ErrorEnvelope"];
|
|
9114
|
+
};
|
|
9115
|
+
};
|
|
9116
|
+
/** @description Not found */
|
|
9117
|
+
404: {
|
|
9118
|
+
headers: {
|
|
9119
|
+
[name: string]: unknown;
|
|
9120
|
+
};
|
|
9121
|
+
content: {
|
|
9122
|
+
"application/json": components["schemas"]["ErrorEnvelope"];
|
|
9123
|
+
};
|
|
9124
|
+
};
|
|
9125
|
+
/** @description Too many requests — rate limit exceeded */
|
|
9126
|
+
429: {
|
|
9127
|
+
headers: {
|
|
9128
|
+
[name: string]: unknown;
|
|
9129
|
+
};
|
|
9130
|
+
content: {
|
|
9131
|
+
"application/json": components["schemas"]["ErrorEnvelope"];
|
|
9132
|
+
};
|
|
9133
|
+
};
|
|
9134
|
+
/** @description Internal server error */
|
|
9135
|
+
500: {
|
|
9136
|
+
headers: {
|
|
9137
|
+
[name: string]: unknown;
|
|
9138
|
+
};
|
|
9139
|
+
content: {
|
|
9140
|
+
"application/json": components["schemas"]["ErrorEnvelope"];
|
|
9141
|
+
};
|
|
9142
|
+
};
|
|
9143
|
+
};
|
|
9144
|
+
};
|
|
9145
|
+
delete?: never;
|
|
9146
|
+
options?: never;
|
|
9147
|
+
head?: never;
|
|
9148
|
+
patch?: never;
|
|
9149
|
+
trace?: never;
|
|
9150
|
+
};
|
|
9151
|
+
"/v1/device/pair": {
|
|
9152
|
+
parameters: {
|
|
9153
|
+
query?: never;
|
|
9154
|
+
header?: never;
|
|
9155
|
+
path?: never;
|
|
9156
|
+
cookie?: never;
|
|
9157
|
+
};
|
|
9158
|
+
get?: never;
|
|
9159
|
+
put?: never;
|
|
9160
|
+
post: {
|
|
9161
|
+
parameters: {
|
|
9162
|
+
query?: never;
|
|
9163
|
+
header?: never;
|
|
9164
|
+
path?: never;
|
|
9165
|
+
cookie?: never;
|
|
9166
|
+
};
|
|
9167
|
+
requestBody?: {
|
|
9168
|
+
content: {
|
|
9169
|
+
"application/json": {
|
|
9170
|
+
code: string;
|
|
9171
|
+
/** @enum {string} */
|
|
9172
|
+
device_type: "android" | "macos";
|
|
9173
|
+
device_name?: string;
|
|
9174
|
+
phone_number?: string;
|
|
9175
|
+
};
|
|
9176
|
+
};
|
|
9177
|
+
};
|
|
9178
|
+
responses: {
|
|
9179
|
+
/** @description Device paired */
|
|
9180
|
+
201: {
|
|
9181
|
+
headers: {
|
|
9182
|
+
[name: string]: unknown;
|
|
9183
|
+
};
|
|
9184
|
+
content: {
|
|
9185
|
+
"application/json": components["schemas"]["DevicePair"];
|
|
9186
|
+
};
|
|
9187
|
+
};
|
|
9188
|
+
/** @description Bad request — validation failed */
|
|
9189
|
+
400: {
|
|
9190
|
+
headers: {
|
|
9191
|
+
[name: string]: unknown;
|
|
9192
|
+
};
|
|
9193
|
+
content: {
|
|
9194
|
+
"application/json": components["schemas"]["ErrorEnvelope"];
|
|
9195
|
+
};
|
|
9196
|
+
};
|
|
9197
|
+
/** @description Gone — a single-use resource has already been spent */
|
|
9198
|
+
410: {
|
|
9199
|
+
headers: {
|
|
9200
|
+
[name: string]: unknown;
|
|
9201
|
+
};
|
|
9202
|
+
content: {
|
|
9203
|
+
"application/json": components["schemas"]["ErrorEnvelope"];
|
|
9204
|
+
};
|
|
9205
|
+
};
|
|
9206
|
+
/** @description Too many requests — rate limit exceeded */
|
|
9207
|
+
429: {
|
|
9208
|
+
headers: {
|
|
9209
|
+
[name: string]: unknown;
|
|
9210
|
+
};
|
|
9211
|
+
content: {
|
|
9212
|
+
"application/json": components["schemas"]["ErrorEnvelope"];
|
|
9213
|
+
};
|
|
9214
|
+
};
|
|
9215
|
+
/** @description Internal server error */
|
|
9216
|
+
500: {
|
|
9217
|
+
headers: {
|
|
9218
|
+
[name: string]: unknown;
|
|
9219
|
+
};
|
|
9220
|
+
content: {
|
|
9221
|
+
"application/json": components["schemas"]["ErrorEnvelope"];
|
|
9222
|
+
};
|
|
9223
|
+
};
|
|
9224
|
+
};
|
|
9225
|
+
};
|
|
9226
|
+
delete?: never;
|
|
9227
|
+
options?: never;
|
|
9228
|
+
head?: never;
|
|
9229
|
+
patch?: never;
|
|
9230
|
+
trace?: never;
|
|
9231
|
+
};
|
|
9232
|
+
"/v1/device/heartbeat": {
|
|
9233
|
+
parameters: {
|
|
9234
|
+
query?: never;
|
|
9235
|
+
header?: never;
|
|
9236
|
+
path?: never;
|
|
9237
|
+
cookie?: never;
|
|
9238
|
+
};
|
|
9239
|
+
get?: never;
|
|
9240
|
+
put?: never;
|
|
9241
|
+
post: {
|
|
9242
|
+
parameters: {
|
|
9243
|
+
query?: never;
|
|
9244
|
+
header?: never;
|
|
9245
|
+
path?: never;
|
|
9246
|
+
cookie?: never;
|
|
9247
|
+
};
|
|
9248
|
+
requestBody?: {
|
|
9249
|
+
content: {
|
|
9250
|
+
"application/json": {
|
|
9251
|
+
phone_number?: string;
|
|
9252
|
+
battery?: number;
|
|
9253
|
+
signal?: number;
|
|
9254
|
+
app_version?: string;
|
|
9255
|
+
os_version?: string;
|
|
9256
|
+
/** @enum {string} */
|
|
9257
|
+
device_state?: "online" | "degraded" | "offline" | "initializing" | "blocked";
|
|
9258
|
+
storage_free_bytes?: number;
|
|
9259
|
+
bridge_version?: string;
|
|
9260
|
+
runtime_capabilities?: {
|
|
9261
|
+
/** @enum {string} */
|
|
9262
|
+
imessage?: "active" | "degraded" | "disabled";
|
|
9263
|
+
/** @enum {string} */
|
|
9264
|
+
sms_fallback?: "active" | "degraded" | "disabled";
|
|
9265
|
+
/** @enum {string} */
|
|
9266
|
+
reactions_out?: "active" | "degraded" | "disabled";
|
|
9267
|
+
/** @enum {string} */
|
|
9268
|
+
mark_read_out?: "active" | "degraded" | "disabled";
|
|
9269
|
+
/** @enum {string} */
|
|
9270
|
+
typing_out?: "active" | "degraded" | "disabled";
|
|
9271
|
+
/** @enum {string} */
|
|
9272
|
+
effects?: "active" | "degraded" | "disabled";
|
|
9273
|
+
/** @enum {string} */
|
|
9274
|
+
reactions_in?: "active" | "degraded" | "disabled";
|
|
9275
|
+
/** @enum {string} */
|
|
9276
|
+
read_receipts_in?: "active" | "degraded" | "disabled";
|
|
9277
|
+
/** @enum {string} */
|
|
9278
|
+
typing_in?: "active" | "degraded" | "disabled";
|
|
9279
|
+
/** @enum {string} */
|
|
9280
|
+
send_text?: "active" | "degraded" | "disabled";
|
|
9281
|
+
/** @enum {string} */
|
|
9282
|
+
send_attachment?: "active" | "degraded" | "disabled";
|
|
9283
|
+
};
|
|
9284
|
+
};
|
|
9285
|
+
};
|
|
9286
|
+
};
|
|
9287
|
+
responses: {
|
|
9288
|
+
/** @description Heartbeat accepted */
|
|
9289
|
+
200: {
|
|
9290
|
+
headers: {
|
|
9291
|
+
[name: string]: unknown;
|
|
9292
|
+
};
|
|
9293
|
+
content: {
|
|
9294
|
+
"application/json": components["schemas"]["DeviceHeartbeatV1"];
|
|
8717
9295
|
};
|
|
8718
9296
|
};
|
|
8719
|
-
/** @description
|
|
8720
|
-
|
|
9297
|
+
/** @description Bad request — validation failed */
|
|
9298
|
+
400: {
|
|
8721
9299
|
headers: {
|
|
8722
9300
|
[name: string]: unknown;
|
|
8723
9301
|
};
|
|
@@ -8725,8 +9303,8 @@ export interface paths {
|
|
|
8725
9303
|
"application/json": components["schemas"]["ErrorEnvelope"];
|
|
8726
9304
|
};
|
|
8727
9305
|
};
|
|
8728
|
-
/** @description
|
|
8729
|
-
|
|
9306
|
+
/** @description Unauthenticated — missing or invalid bearer token */
|
|
9307
|
+
401: {
|
|
8730
9308
|
headers: {
|
|
8731
9309
|
[name: string]: unknown;
|
|
8732
9310
|
};
|
|
@@ -8760,39 +9338,31 @@ export interface paths {
|
|
|
8760
9338
|
patch?: never;
|
|
8761
9339
|
trace?: never;
|
|
8762
9340
|
};
|
|
8763
|
-
"/v1/
|
|
9341
|
+
"/v1/device/outbound": {
|
|
8764
9342
|
parameters: {
|
|
8765
9343
|
query?: never;
|
|
8766
9344
|
header?: never;
|
|
8767
9345
|
path?: never;
|
|
8768
9346
|
cookie?: never;
|
|
8769
9347
|
};
|
|
8770
|
-
get
|
|
8771
|
-
put?: never;
|
|
8772
|
-
/**
|
|
8773
|
-
* Start a trial session
|
|
8774
|
-
* @description Create a pairing-pending trial session against the caller's API key. Returns a one-time pairing token the partner embeds in their onboarding UI; the recipient claims it by sending an inbound message that links them to a shared-pool line.
|
|
8775
|
-
*/
|
|
8776
|
-
post: {
|
|
9348
|
+
get: {
|
|
8777
9349
|
parameters: {
|
|
8778
|
-
query?:
|
|
9350
|
+
query?: {
|
|
9351
|
+
limit?: number;
|
|
9352
|
+
};
|
|
8779
9353
|
header?: never;
|
|
8780
9354
|
path?: never;
|
|
8781
9355
|
cookie?: never;
|
|
8782
9356
|
};
|
|
8783
|
-
requestBody?:
|
|
8784
|
-
content: {
|
|
8785
|
-
"application/json": components["schemas"]["TrialInitBody"];
|
|
8786
|
-
};
|
|
8787
|
-
};
|
|
9357
|
+
requestBody?: never;
|
|
8788
9358
|
responses: {
|
|
8789
|
-
/** @description
|
|
8790
|
-
|
|
9359
|
+
/** @description Claimed outbound rows */
|
|
9360
|
+
200: {
|
|
8791
9361
|
headers: {
|
|
8792
9362
|
[name: string]: unknown;
|
|
8793
9363
|
};
|
|
8794
9364
|
content: {
|
|
8795
|
-
"application/json": components["schemas"]["
|
|
9365
|
+
"application/json": components["schemas"]["DeviceOutboundPoll"];
|
|
8796
9366
|
};
|
|
8797
9367
|
};
|
|
8798
9368
|
/** @description Bad request — validation failed */
|
|
@@ -8833,41 +9403,52 @@ export interface paths {
|
|
|
8833
9403
|
};
|
|
8834
9404
|
};
|
|
8835
9405
|
};
|
|
9406
|
+
put?: never;
|
|
9407
|
+
post?: never;
|
|
8836
9408
|
delete?: never;
|
|
8837
9409
|
options?: never;
|
|
8838
9410
|
head?: never;
|
|
8839
9411
|
patch?: never;
|
|
8840
9412
|
trace?: never;
|
|
8841
9413
|
};
|
|
8842
|
-
"/v1/
|
|
9414
|
+
"/v1/device/outbound/{id}/ack": {
|
|
8843
9415
|
parameters: {
|
|
8844
9416
|
query?: never;
|
|
8845
9417
|
header?: never;
|
|
8846
9418
|
path?: never;
|
|
8847
9419
|
cookie?: never;
|
|
8848
9420
|
};
|
|
8849
|
-
|
|
8850
|
-
|
|
8851
|
-
|
|
8852
|
-
*/
|
|
8853
|
-
get: {
|
|
9421
|
+
get?: never;
|
|
9422
|
+
put?: never;
|
|
9423
|
+
post: {
|
|
8854
9424
|
parameters: {
|
|
8855
|
-
query
|
|
8856
|
-
token: string;
|
|
8857
|
-
};
|
|
9425
|
+
query?: never;
|
|
8858
9426
|
header?: never;
|
|
8859
|
-
path
|
|
9427
|
+
path: {
|
|
9428
|
+
id: string;
|
|
9429
|
+
};
|
|
8860
9430
|
cookie?: never;
|
|
8861
9431
|
};
|
|
8862
|
-
requestBody?:
|
|
9432
|
+
requestBody?: {
|
|
9433
|
+
content: {
|
|
9434
|
+
"application/json": {
|
|
9435
|
+
/** @enum {string} */
|
|
9436
|
+
status: "sent" | "failed" | "sent_via_sms_fallback" | "failed_both";
|
|
9437
|
+
/** @enum {string} */
|
|
9438
|
+
service?: "iMessage" | "SMS" | "RCS";
|
|
9439
|
+
native_message_id?: string;
|
|
9440
|
+
error_message?: string;
|
|
9441
|
+
};
|
|
9442
|
+
};
|
|
9443
|
+
};
|
|
8863
9444
|
responses: {
|
|
8864
|
-
/** @description
|
|
9445
|
+
/** @description Acknowledged */
|
|
8865
9446
|
200: {
|
|
8866
9447
|
headers: {
|
|
8867
9448
|
[name: string]: unknown;
|
|
8868
9449
|
};
|
|
8869
9450
|
content: {
|
|
8870
|
-
"application/json": components["schemas"]["
|
|
9451
|
+
"application/json": components["schemas"]["DeviceOutboundAck"];
|
|
8871
9452
|
};
|
|
8872
9453
|
};
|
|
8873
9454
|
/** @description Bad request — validation failed */
|
|
@@ -8879,8 +9460,8 @@ export interface paths {
|
|
|
8879
9460
|
"application/json": components["schemas"]["ErrorEnvelope"];
|
|
8880
9461
|
};
|
|
8881
9462
|
};
|
|
8882
|
-
/** @description
|
|
8883
|
-
|
|
9463
|
+
/** @description Unauthenticated — missing or invalid bearer token */
|
|
9464
|
+
401: {
|
|
8884
9465
|
headers: {
|
|
8885
9466
|
[name: string]: unknown;
|
|
8886
9467
|
};
|
|
@@ -8908,41 +9489,113 @@ export interface paths {
|
|
|
8908
9489
|
};
|
|
8909
9490
|
};
|
|
8910
9491
|
};
|
|
8911
|
-
put?: never;
|
|
8912
|
-
post?: never;
|
|
8913
9492
|
delete?: never;
|
|
8914
9493
|
options?: never;
|
|
8915
9494
|
head?: never;
|
|
8916
9495
|
patch?: never;
|
|
8917
9496
|
trace?: never;
|
|
8918
9497
|
};
|
|
8919
|
-
"/v1/
|
|
9498
|
+
"/v1/device/inbound-events": {
|
|
8920
9499
|
parameters: {
|
|
8921
9500
|
query?: never;
|
|
8922
9501
|
header?: never;
|
|
8923
9502
|
path?: never;
|
|
8924
9503
|
cookie?: never;
|
|
8925
9504
|
};
|
|
8926
|
-
|
|
8927
|
-
|
|
8928
|
-
|
|
8929
|
-
*/
|
|
8930
|
-
get: {
|
|
9505
|
+
get?: never;
|
|
9506
|
+
put?: never;
|
|
9507
|
+
post: {
|
|
8931
9508
|
parameters: {
|
|
8932
9509
|
query?: never;
|
|
8933
|
-
header?:
|
|
9510
|
+
header?: {
|
|
9511
|
+
/** @description REQUIRED idempotency key — dedupes retries in a 24h window (missing → 400 idempotency_key_required). Alias: `X-Idempotency-Key`. */
|
|
9512
|
+
"idempotency-key"?: string;
|
|
9513
|
+
};
|
|
8934
9514
|
path?: never;
|
|
8935
9515
|
cookie?: never;
|
|
8936
9516
|
};
|
|
8937
|
-
requestBody?:
|
|
9517
|
+
requestBody?: {
|
|
9518
|
+
content: {
|
|
9519
|
+
"application/json": {
|
|
9520
|
+
/** @enum {string} */
|
|
9521
|
+
type: "reaction_received";
|
|
9522
|
+
/** Format: date-time */
|
|
9523
|
+
occurred_at: string;
|
|
9524
|
+
parent_message_id: string;
|
|
9525
|
+
from_handle: string;
|
|
9526
|
+
/** @enum {string} */
|
|
9527
|
+
reaction_type: "love" | "like" | "dislike" | "laugh" | "emphasize" | "question";
|
|
9528
|
+
/** @enum {string} */
|
|
9529
|
+
operation: "add" | "remove";
|
|
9530
|
+
} | {
|
|
9531
|
+
/** @enum {string} */
|
|
9532
|
+
type: "apple_id_flagged";
|
|
9533
|
+
/** Format: date-time */
|
|
9534
|
+
occurred_at: string;
|
|
9535
|
+
reason: string;
|
|
9536
|
+
/** @enum {string} */
|
|
9537
|
+
detected_via: "macos_dialog" | "android_notification" | "heuristic";
|
|
9538
|
+
error?: string;
|
|
9539
|
+
} | {
|
|
9540
|
+
/** @enum {string} */
|
|
9541
|
+
type: "read_receipt";
|
|
9542
|
+
/** Format: date-time */
|
|
9543
|
+
occurred_at: string;
|
|
9544
|
+
parent_message_id: string;
|
|
9545
|
+
/** Format: date-time */
|
|
9546
|
+
read_at: string;
|
|
9547
|
+
} | {
|
|
9548
|
+
/** @enum {string} */
|
|
9549
|
+
type: "message_received";
|
|
9550
|
+
/** Format: date-time */
|
|
9551
|
+
occurred_at: string;
|
|
9552
|
+
native_message_id: string;
|
|
9553
|
+
native_chat_guid: string;
|
|
9554
|
+
from_handle: string;
|
|
9555
|
+
/** @enum {string} */
|
|
9556
|
+
service: "iMessage" | "SMS" | "RCS";
|
|
9557
|
+
/**
|
|
9558
|
+
* @default inbound
|
|
9559
|
+
* @enum {string}
|
|
9560
|
+
*/
|
|
9561
|
+
direction?: "inbound" | "outbound_from_me";
|
|
9562
|
+
body?: string;
|
|
9563
|
+
contact_name?: string;
|
|
9564
|
+
attachments?: string[];
|
|
9565
|
+
} | {
|
|
9566
|
+
/** @enum {string} */
|
|
9567
|
+
type: "typing_started";
|
|
9568
|
+
/** Format: date-time */
|
|
9569
|
+
occurred_at: string;
|
|
9570
|
+
native_chat_guid: string;
|
|
9571
|
+
from_handle: string;
|
|
9572
|
+
} | {
|
|
9573
|
+
/** @enum {string} */
|
|
9574
|
+
type: "typing_stopped";
|
|
9575
|
+
/** Format: date-time */
|
|
9576
|
+
occurred_at: string;
|
|
9577
|
+
native_chat_guid: string;
|
|
9578
|
+
from_handle: string;
|
|
9579
|
+
} | {
|
|
9580
|
+
/** @enum {string} */
|
|
9581
|
+
type: "message_status";
|
|
9582
|
+
/** Format: date-time */
|
|
9583
|
+
occurred_at: string;
|
|
9584
|
+
parent_message_id: string;
|
|
9585
|
+
/** @enum {string} */
|
|
9586
|
+
status_change: "delivered" | "read" | "failed";
|
|
9587
|
+
error?: string;
|
|
9588
|
+
};
|
|
9589
|
+
};
|
|
9590
|
+
};
|
|
8938
9591
|
responses: {
|
|
8939
|
-
/** @description
|
|
8940
|
-
|
|
9592
|
+
/** @description Event accepted */
|
|
9593
|
+
202: {
|
|
8941
9594
|
headers: {
|
|
8942
9595
|
[name: string]: unknown;
|
|
8943
9596
|
};
|
|
8944
9597
|
content: {
|
|
8945
|
-
"application/json": components["schemas"]["
|
|
9598
|
+
"application/json": components["schemas"]["InboundEventEnvelope"];
|
|
8946
9599
|
};
|
|
8947
9600
|
};
|
|
8948
9601
|
/** @description Bad request — validation failed */
|
|
@@ -8963,6 +9616,24 @@ export interface paths {
|
|
|
8963
9616
|
"application/json": components["schemas"]["ErrorEnvelope"];
|
|
8964
9617
|
};
|
|
8965
9618
|
};
|
|
9619
|
+
/** @description Not found */
|
|
9620
|
+
404: {
|
|
9621
|
+
headers: {
|
|
9622
|
+
[name: string]: unknown;
|
|
9623
|
+
};
|
|
9624
|
+
content: {
|
|
9625
|
+
"application/json": components["schemas"]["ErrorEnvelope"];
|
|
9626
|
+
};
|
|
9627
|
+
};
|
|
9628
|
+
/** @description Conflict — concurrent or terminal state */
|
|
9629
|
+
409: {
|
|
9630
|
+
headers: {
|
|
9631
|
+
[name: string]: unknown;
|
|
9632
|
+
};
|
|
9633
|
+
content: {
|
|
9634
|
+
"application/json": components["schemas"]["ErrorEnvelope"];
|
|
9635
|
+
};
|
|
9636
|
+
};
|
|
8966
9637
|
/** @description Too many requests — rate limit exceeded */
|
|
8967
9638
|
429: {
|
|
8968
9639
|
headers: {
|
|
@@ -8981,17 +9652,24 @@ export interface paths {
|
|
|
8981
9652
|
"application/json": components["schemas"]["ErrorEnvelope"];
|
|
8982
9653
|
};
|
|
8983
9654
|
};
|
|
9655
|
+
/** @description Service unavailable — a concurrent request is in flight */
|
|
9656
|
+
503: {
|
|
9657
|
+
headers: {
|
|
9658
|
+
[name: string]: unknown;
|
|
9659
|
+
};
|
|
9660
|
+
content: {
|
|
9661
|
+
"application/json": components["schemas"]["ErrorEnvelope"];
|
|
9662
|
+
};
|
|
9663
|
+
};
|
|
8984
9664
|
};
|
|
8985
9665
|
};
|
|
8986
|
-
put?: never;
|
|
8987
|
-
post?: never;
|
|
8988
9666
|
delete?: never;
|
|
8989
9667
|
options?: never;
|
|
8990
9668
|
head?: never;
|
|
8991
9669
|
patch?: never;
|
|
8992
9670
|
trace?: never;
|
|
8993
9671
|
};
|
|
8994
|
-
"/v1/
|
|
9672
|
+
"/v1/device/sessions/{id}": {
|
|
8995
9673
|
parameters: {
|
|
8996
9674
|
query?: never;
|
|
8997
9675
|
header?: never;
|
|
@@ -9000,40 +9678,24 @@ export interface paths {
|
|
|
9000
9678
|
};
|
|
9001
9679
|
get?: never;
|
|
9002
9680
|
put?: never;
|
|
9003
|
-
|
|
9004
|
-
|
|
9005
|
-
* @description Mint a one-time activation code plus the stable per-platform bridge-installer download links for a customer-owned Mac+iPhone or Android device. The customer runs the bridge, enters the code, and the device-side `POST /device/activate` consumes it to mint a `byod_imessage` or `byod_android` line — the platform is derived there from what the bridge reports.
|
|
9006
|
-
*/
|
|
9007
|
-
post: {
|
|
9681
|
+
post?: never;
|
|
9682
|
+
delete: {
|
|
9008
9683
|
parameters: {
|
|
9009
9684
|
query?: never;
|
|
9010
9685
|
header?: never;
|
|
9011
|
-
path
|
|
9012
|
-
|
|
9013
|
-
};
|
|
9014
|
-
requestBody?: {
|
|
9015
|
-
content: {
|
|
9016
|
-
"application/json": components["schemas"]["ByodPairBody"];
|
|
9686
|
+
path: {
|
|
9687
|
+
id: string;
|
|
9017
9688
|
};
|
|
9689
|
+
cookie?: never;
|
|
9018
9690
|
};
|
|
9691
|
+
requestBody?: never;
|
|
9019
9692
|
responses: {
|
|
9020
|
-
/** @description
|
|
9021
|
-
|
|
9022
|
-
headers: {
|
|
9023
|
-
[name: string]: unknown;
|
|
9024
|
-
};
|
|
9025
|
-
content: {
|
|
9026
|
-
"application/json": components["schemas"]["ByodPairEnvelope"];
|
|
9027
|
-
};
|
|
9028
|
-
};
|
|
9029
|
-
/** @description Bad request — validation failed */
|
|
9030
|
-
400: {
|
|
9693
|
+
/** @description Session deleted (logged out) */
|
|
9694
|
+
204: {
|
|
9031
9695
|
headers: {
|
|
9032
9696
|
[name: string]: unknown;
|
|
9033
9697
|
};
|
|
9034
|
-
content
|
|
9035
|
-
"application/json": components["schemas"]["ErrorEnvelope"];
|
|
9036
|
-
};
|
|
9698
|
+
content?: never;
|
|
9037
9699
|
};
|
|
9038
9700
|
/** @description Unauthenticated — missing or invalid bearer token */
|
|
9039
9701
|
401: {
|
|
@@ -9073,7 +9735,6 @@ export interface paths {
|
|
|
9073
9735
|
};
|
|
9074
9736
|
};
|
|
9075
9737
|
};
|
|
9076
|
-
delete?: never;
|
|
9077
9738
|
options?: never;
|
|
9078
9739
|
head?: never;
|
|
9079
9740
|
patch?: never;
|
|
@@ -10411,6 +11072,9 @@ export interface components {
|
|
|
10411
11072
|
last_error: string | null;
|
|
10412
11073
|
last_offline_at: string | null;
|
|
10413
11074
|
bridge_version: string | null;
|
|
11075
|
+
runtime_capabilities: {
|
|
11076
|
+
[key: string]: "active" | "degraded" | "disabled";
|
|
11077
|
+
} | null;
|
|
10414
11078
|
};
|
|
10415
11079
|
LineConfigEnvelope: {
|
|
10416
11080
|
/** @enum {boolean} */
|
|
@@ -10717,7 +11381,7 @@ export interface components {
|
|
|
10717
11381
|
* @description A concrete event type (e.g. `message.received`), a family wildcard (`line.*`), or the catch-all `*`.
|
|
10718
11382
|
* @enum {string}
|
|
10719
11383
|
*/
|
|
10720
|
-
WebhookEventName: "message.queued" | "message.sent" | "message.delivered" | "message.read" | "message.failed" | "message.received" | "message.scheduled" | "message.cancelled" | "reaction.added" | "reaction.received" | "reaction.removed" | "line.connected" | "line.disconnected" | "line.offline" | "line.degraded" | "line.apple_id_flagged" | "line.quota_warning" | "line.quota_exceeded" | "typing_indicator.started" | "typing_indicator.stopped" | "trial.linked" | "trial.dormant" | "trial.reactivated" | "pre_order.fulfilled" | "pre_order.cancelled" | "pre_order.refunded" | "webhook.test" | "*" | "message.*" | "reaction.*" | "line.*" | "typing_indicator.*" | "trial.*" | "webhook.*";
|
|
11384
|
+
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" | "pre_order.fulfilled" | "pre_order.cancelled" | "pre_order.refunded" | "webhook.test" | "*" | "message.*" | "reaction.*" | "line.*" | "typing_indicator.*" | "trial.*" | "webhook.*";
|
|
10721
11385
|
WebhookList: {
|
|
10722
11386
|
webhooks: components["schemas"]["Webhook"][];
|
|
10723
11387
|
};
|
|
@@ -10863,6 +11527,33 @@ export interface components {
|
|
|
10863
11527
|
/** Format: uuid */
|
|
10864
11528
|
from_line_id?: string;
|
|
10865
11529
|
};
|
|
11530
|
+
AreaCodesEnvelope: {
|
|
11531
|
+
/** @enum {boolean} */
|
|
11532
|
+
success: true;
|
|
11533
|
+
data: components["schemas"]["AreaCodes"];
|
|
11534
|
+
trace_id: string;
|
|
11535
|
+
request_id: string;
|
|
11536
|
+
};
|
|
11537
|
+
AreaCodes: {
|
|
11538
|
+
area_codes: components["schemas"]["AreaCode"][];
|
|
11539
|
+
countries: components["schemas"]["Country"][];
|
|
11540
|
+
};
|
|
11541
|
+
AreaCode: {
|
|
11542
|
+
/** @example 212 */
|
|
11543
|
+
area_code: string;
|
|
11544
|
+
/** @example New York, NY */
|
|
11545
|
+
region: string;
|
|
11546
|
+
/** @example US */
|
|
11547
|
+
country_code: string;
|
|
11548
|
+
};
|
|
11549
|
+
Country: {
|
|
11550
|
+
/** @example US */
|
|
11551
|
+
country_code: string;
|
|
11552
|
+
/** @example United States */
|
|
11553
|
+
name: string;
|
|
11554
|
+
/** @example 1 */
|
|
11555
|
+
calling_code: string;
|
|
11556
|
+
};
|
|
10866
11557
|
ShareContactCardEnvelope: {
|
|
10867
11558
|
/** @enum {boolean} */
|
|
10868
11559
|
success: true;
|
|
@@ -11017,6 +11708,47 @@ export interface components {
|
|
|
11017
11708
|
[key: string]: unknown;
|
|
11018
11709
|
};
|
|
11019
11710
|
};
|
|
11711
|
+
DevicePair: {
|
|
11712
|
+
device_session_id: string;
|
|
11713
|
+
session_key: string;
|
|
11714
|
+
line_id: string | null;
|
|
11715
|
+
sse_url: string;
|
|
11716
|
+
/** @enum {string} */
|
|
11717
|
+
transport_preferred: "sse";
|
|
11718
|
+
polling_interval_ms: number;
|
|
11719
|
+
heartbeat_interval_ms: number;
|
|
11720
|
+
metadata: {
|
|
11721
|
+
[key: string]: unknown;
|
|
11722
|
+
} | null;
|
|
11723
|
+
};
|
|
11724
|
+
DeviceHeartbeatV1: {
|
|
11725
|
+
/** @enum {boolean} */
|
|
11726
|
+
ok: true;
|
|
11727
|
+
polling_interval_ms: number;
|
|
11728
|
+
heartbeat_interval_ms: number;
|
|
11729
|
+
device_flags: string[];
|
|
11730
|
+
};
|
|
11731
|
+
DeviceOutboundPoll: {
|
|
11732
|
+
messages: {
|
|
11733
|
+
/** Format: uuid */
|
|
11734
|
+
id: string;
|
|
11735
|
+
/** Format: uuid */
|
|
11736
|
+
message_id: string | null;
|
|
11737
|
+
kind: string;
|
|
11738
|
+
parent_native_message_id: string | null;
|
|
11739
|
+
recipient: string;
|
|
11740
|
+
body: string | null;
|
|
11741
|
+
channel: string | null;
|
|
11742
|
+
effect?: unknown;
|
|
11743
|
+
reply_to_message_id: string | null;
|
|
11744
|
+
attachments?: unknown;
|
|
11745
|
+
created_at: string;
|
|
11746
|
+
}[];
|
|
11747
|
+
};
|
|
11748
|
+
DeviceOutboundAck: {
|
|
11749
|
+
/** @enum {boolean} */
|
|
11750
|
+
ok: true;
|
|
11751
|
+
};
|
|
11020
11752
|
MessageList: {
|
|
11021
11753
|
messages: components["schemas"]["Message"][];
|
|
11022
11754
|
total: number;
|
package/dist/index.d.ts
CHANGED
|
@@ -5,6 +5,7 @@ export { APIConnectionError, APIError, AuthenticationError, BadRequestError, Con
|
|
|
5
5
|
export type { APIErrorMeta } from './errors.js';
|
|
6
6
|
export type { ErrorEnvelope, ErrorIssue, HttpMethod, RequestOptions } from './types.js';
|
|
7
7
|
export type { RetryInfo } from './retry.js';
|
|
8
|
+
export { AreaCodesResource } from './resources/area-codes.js';
|
|
8
9
|
export { AttachmentsResource } from './resources/attachments.js';
|
|
9
10
|
export { ByodResource } from './resources/byod.js';
|
|
10
11
|
export { ChatsResource } from './resources/chats.js';
|
|
@@ -14,6 +15,7 @@ export { MessagesResource } from './resources/messages.js';
|
|
|
14
15
|
export { PreOrdersResource } from './resources/preorders.js';
|
|
15
16
|
export { TrialResource } from './resources/trial.js';
|
|
16
17
|
export { WebhooksResource } from './resources/webhooks.js';
|
|
18
|
+
export type { AreaCode, AreaCodes, Country, ListAreaCodesQuery } from './resources/area-codes.js';
|
|
17
19
|
export type { ChatMarkRead, ChatTypingStart, ChatTypingStop, MarkReadBody, ShareContactCardBody, ShareContactCardResult, TypingStartBody } from './resources/chats.js';
|
|
18
20
|
export type { ActivateLineBody, AssignLineBody, Line, LineConfigPatch, LineConfigResponseData, LineHealth, LineList, ListLinesQuery, ListQueueQuery, MyLines, PatchLineBody, QueueResponseData, QuotaSnapshot, TransferOwnershipBody } from './resources/lines.js';
|
|
19
21
|
export type { LookupRequest, LookupResult } from './resources/lookup.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,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,YA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ClB,QAAQ,EACR,gBAAgB,EAChB,cAAc,EACf,MAAM,0BAA0B,CAAA;AACjC,YAAY,EACV,iBAAiB,EACjB,aAAa,EACb,aAAa,EACb,eAAe,EAChB,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,WAAW,EACX,cAAc,EACd,eAAe,EACf,eAAe,EACf,YAAY,EACZ,sBAAsB,EACvB,MAAM,qBAAqB,CAAA;AAC5B,YAAY,EACV,SAAS,EACT,aAAa,EACb,YAAY,EACZ,gBAAgB,EAChB,aAAa,EACb,iBAAiB,EACjB,aAAa,EACb,iBAAiB,EACjB,UAAU,EACV,cAAc,EACd,oBAAoB,EACpB,wBAAwB,EACxB,YAAY,EACZ,gBAAgB,EACjB,MAAM,qBAAqB,CAAA"}
|
|
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,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,qBAAq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AiB,EACjB,OAAO,EACP,QAAQ,EACR,eAAe,EACf,eAAe,EACf,gBAAgB,EACjB,MAAM,yBAAyB,CAAA;AAEhC,YAAY,EACV,UAAU,EACV,oBAAoB,EACpB,wBAAwB,EACxB,WAAW,EACX,cAAc,EACd,aAAa,EACd,MAAM,4BAA4B,CAAA;AACnC,YAAY,EAAE,YAAY,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAA;AACzE,YAAY,EACV,kBAAkB,EAClB,kBAAkB,EAClB,QAAQ,EACR,gBAAgB,EAChB,cAAc,EACf,MAAM,0BAA0B,CAAA;AACjC,YAAY,EACV,iBAAiB,EACjB,aAAa,EACb,aAAa,EACb,eAAe,EAChB,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,WAAW,EACX,cAAc,EACd,eAAe,EACf,eAAe,EACf,YAAY,EACZ,sBAAsB,EACvB,MAAM,qBAAqB,CAAA;AAC5B,YAAY,EACV,SAAS,EACT,aAAa,EACb,YAAY,EACZ,gBAAgB,EAChB,aAAa,EACb,iBAAiB,EACjB,aAAa,EACb,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 { AreaCodesResource } from './resources/area-codes.js';
|
|
4
5
|
export { AttachmentsResource } from './resources/attachments.js';
|
|
5
6
|
export { ByodResource } from './resources/byod.js';
|
|
6
7
|
export { ChatsResource } from './resources/chats.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;AAEzC,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,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;AAEzC,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;AA8E1D,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAA;AACvD,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAA;AAEpD,OAAO,EACL,WAAW,EACX,cAAc,EACd,eAAe,EACf,eAAe,EACf,YAAY,EACZ,sBAAsB,EACvB,MAAM,qBAAqB,CAAA"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { components, paths } from '../generated/openapi.js';
|
|
2
|
+
import type { RequestOptions } from '../types.js';
|
|
3
|
+
import { BaseResource } from './base.js';
|
|
4
|
+
export type AreaCodes = components['schemas']['AreaCodes'];
|
|
5
|
+
export type AreaCode = components['schemas']['AreaCode'];
|
|
6
|
+
export type Country = components['schemas']['Country'];
|
|
7
|
+
export type ListAreaCodesQuery = NonNullable<paths['/v1/area-codes']['get']['parameters']['query']>;
|
|
8
|
+
export declare class AreaCodesResource extends BaseResource {
|
|
9
|
+
/**
|
|
10
|
+
* `GET /v1/area-codes` — list the selectable area codes a customer can
|
|
11
|
+
* request as `preferred_area_codes` on a pre-order, for rendering an
|
|
12
|
+
* area-code picker. Public (no auth required). Pass `{ country }` (ISO 3166-1
|
|
13
|
+
* alpha-2, case-insensitive) to filter the area-code list; the `countries`
|
|
14
|
+
* list in the response is always the full selectable set so it can drive a
|
|
15
|
+
* country dropdown in the same round-trip.
|
|
16
|
+
*/
|
|
17
|
+
list(query?: ListAreaCodesQuery, opts?: RequestOptions): Promise<AreaCodes>;
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=area-codes.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"area-codes.d.ts","sourceRoot":"","sources":["../../src/resources/area-codes.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,SAAS,GAAG,UAAU,CAAC,SAAS,CAAC,CAAC,WAAW,CAAC,CAAA;AAC1D,MAAM,MAAM,QAAQ,GAAG,UAAU,CAAC,SAAS,CAAC,CAAC,UAAU,CAAC,CAAA;AACxD,MAAM,MAAM,OAAO,GAAG,UAAU,CAAC,SAAS,CAAC,CAAC,SAAS,CAAC,CAAA;AACtD,MAAM,MAAM,kBAAkB,GAAG,WAAW,CAC1C,KAAK,CAAC,gBAAgB,CAAC,CAAC,KAAK,CAAC,CAAC,YAAY,CAAC,CAAC,OAAO,CAAC,CACtD,CAAA;AAED,qBAAa,iBAAkB,SAAQ,YAAY;IACjD;;;;;;;OAOG;IACH,IAAI,CAAC,KAAK,GAAE,kBAAuB,EAAE,IAAI,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,SAAS,CAAC;CAMhF"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { BaseResource } from './base.js';
|
|
2
|
+
export class AreaCodesResource extends BaseResource {
|
|
3
|
+
/**
|
|
4
|
+
* `GET /v1/area-codes` — list the selectable area codes a customer can
|
|
5
|
+
* request as `preferred_area_codes` on a pre-order, for rendering an
|
|
6
|
+
* area-code picker. Public (no auth required). Pass `{ country }` (ISO 3166-1
|
|
7
|
+
* alpha-2, case-insensitive) to filter the area-code list; the `countries`
|
|
8
|
+
* list in the response is always the full selectable set so it can drive a
|
|
9
|
+
* country dropdown in the same round-trip.
|
|
10
|
+
*/
|
|
11
|
+
list(query = {}, opts) {
|
|
12
|
+
return this.client.request('GET', '/v1/area-codes', undefined, {
|
|
13
|
+
...opts,
|
|
14
|
+
query: { ...opts?.query, ...query }
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
//# sourceMappingURL=area-codes.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"area-codes.js","sourceRoot":"","sources":["../../src/resources/area-codes.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAA;AASxC,MAAM,OAAO,iBAAkB,SAAQ,YAAY;IACjD;;;;;;;OAOG;IACH,IAAI,CAAC,QAA4B,EAAE,EAAE,IAAqB;QACxD,OAAO,IAAI,CAAC,MAAM,CAAC,OAAO,CAAY,KAAK,EAAE,gBAAgB,EAAE,SAAS,EAAE;YACxE,GAAG,IAAI;YACP,KAAK,EAAE,EAAE,GAAG,IAAI,EAAE,KAAK,EAAE,GAAG,KAAK,EAAE;SACpC,CAAC,CAAA;IACJ,CAAC;CACF"}
|