@isnap/sdk 1.1.0-next.53 → 1.1.0-next.55
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/generated/openapi.d.ts +130 -22
- package/package.json +1 -1
|
@@ -4404,6 +4404,10 @@ export interface paths {
|
|
|
4404
4404
|
billing_tier?: "rental_iphone" | "rental_android" | "byod_imessage" | "byod_android" | "shared_pool";
|
|
4405
4405
|
area_code?: string;
|
|
4406
4406
|
country_code?: string;
|
|
4407
|
+
/** @description US state filter — 2-letter code or full name. */
|
|
4408
|
+
state?: string;
|
|
4409
|
+
/** @description Country filter — ISO alpha-2 code or country name. */
|
|
4410
|
+
country?: string;
|
|
4407
4411
|
status?: string;
|
|
4408
4412
|
page?: number;
|
|
4409
4413
|
limit?: number;
|
|
@@ -4420,7 +4424,13 @@ export interface paths {
|
|
|
4420
4424
|
[name: string]: unknown;
|
|
4421
4425
|
};
|
|
4422
4426
|
content: {
|
|
4423
|
-
"application/json":
|
|
4427
|
+
"application/json": {
|
|
4428
|
+
/** @enum {boolean} */
|
|
4429
|
+
success: true;
|
|
4430
|
+
data: components["schemas"]["LineList"];
|
|
4431
|
+
trace_id: string;
|
|
4432
|
+
request_id: string;
|
|
4433
|
+
};
|
|
4424
4434
|
};
|
|
4425
4435
|
};
|
|
4426
4436
|
/** @description Bad request — validation failed */
|
|
@@ -4469,7 +4479,7 @@ export interface paths {
|
|
|
4469
4479
|
};
|
|
4470
4480
|
/**
|
|
4471
4481
|
* List the caller's own lines
|
|
4472
|
-
* @description Return every line owned by the authenticated user that's in `active` or `reserved` status. Includes a `fulfillment_status` hint for lines whose hardware is still being procured.
|
|
4482
|
+
* @description Return every line owned by the authenticated user that's in `active` or `reserved` status. Includes a `fulfillment_status` hint for lines whose hardware is still being procured. Accepts an API key (`isnap_*`) or a dashboard JWT.
|
|
4473
4483
|
*/
|
|
4474
4484
|
get: {
|
|
4475
4485
|
parameters: {
|
|
@@ -4486,7 +4496,13 @@ export interface paths {
|
|
|
4486
4496
|
[name: string]: unknown;
|
|
4487
4497
|
};
|
|
4488
4498
|
content: {
|
|
4489
|
-
"application/json":
|
|
4499
|
+
"application/json": {
|
|
4500
|
+
/** @enum {boolean} */
|
|
4501
|
+
success: true;
|
|
4502
|
+
data: components["schemas"]["MyLines"];
|
|
4503
|
+
trace_id: string;
|
|
4504
|
+
request_id: string;
|
|
4505
|
+
};
|
|
4490
4506
|
};
|
|
4491
4507
|
};
|
|
4492
4508
|
/** @description Bad request — validation failed */
|
|
@@ -4563,7 +4579,13 @@ export interface paths {
|
|
|
4563
4579
|
[name: string]: unknown;
|
|
4564
4580
|
};
|
|
4565
4581
|
content: {
|
|
4566
|
-
"application/json":
|
|
4582
|
+
"application/json": {
|
|
4583
|
+
/** @enum {boolean} */
|
|
4584
|
+
success: true;
|
|
4585
|
+
data: components["schemas"]["Line"];
|
|
4586
|
+
trace_id: string;
|
|
4587
|
+
request_id: string;
|
|
4588
|
+
};
|
|
4567
4589
|
};
|
|
4568
4590
|
};
|
|
4569
4591
|
/** @description Bad request — validation failed */
|
|
@@ -4634,7 +4656,13 @@ export interface paths {
|
|
|
4634
4656
|
[name: string]: unknown;
|
|
4635
4657
|
};
|
|
4636
4658
|
content: {
|
|
4637
|
-
"application/json":
|
|
4659
|
+
"application/json": {
|
|
4660
|
+
/** @enum {boolean} */
|
|
4661
|
+
success: true;
|
|
4662
|
+
data: components["schemas"]["Line"];
|
|
4663
|
+
trace_id: string;
|
|
4664
|
+
request_id: string;
|
|
4665
|
+
};
|
|
4638
4666
|
};
|
|
4639
4667
|
};
|
|
4640
4668
|
/** @description Bad request — validation failed */
|
|
@@ -4727,7 +4755,13 @@ export interface paths {
|
|
|
4727
4755
|
[name: string]: unknown;
|
|
4728
4756
|
};
|
|
4729
4757
|
content: {
|
|
4730
|
-
"application/json":
|
|
4758
|
+
"application/json": {
|
|
4759
|
+
/** @enum {boolean} */
|
|
4760
|
+
success: true;
|
|
4761
|
+
data: components["schemas"]["Line"];
|
|
4762
|
+
trace_id: string;
|
|
4763
|
+
request_id: string;
|
|
4764
|
+
};
|
|
4731
4765
|
};
|
|
4732
4766
|
};
|
|
4733
4767
|
/** @description Bad request — validation failed */
|
|
@@ -4831,7 +4865,13 @@ export interface paths {
|
|
|
4831
4865
|
[name: string]: unknown;
|
|
4832
4866
|
};
|
|
4833
4867
|
content: {
|
|
4834
|
-
"application/json":
|
|
4868
|
+
"application/json": {
|
|
4869
|
+
/** @enum {boolean} */
|
|
4870
|
+
success: true;
|
|
4871
|
+
data: components["schemas"]["Line"];
|
|
4872
|
+
trace_id: string;
|
|
4873
|
+
request_id: string;
|
|
4874
|
+
};
|
|
4835
4875
|
};
|
|
4836
4876
|
};
|
|
4837
4877
|
/** @description Bad request — validation failed */
|
|
@@ -4939,7 +4979,13 @@ export interface paths {
|
|
|
4939
4979
|
[name: string]: unknown;
|
|
4940
4980
|
};
|
|
4941
4981
|
content: {
|
|
4942
|
-
"application/json":
|
|
4982
|
+
"application/json": {
|
|
4983
|
+
/** @enum {boolean} */
|
|
4984
|
+
success: true;
|
|
4985
|
+
data: components["schemas"]["Line"];
|
|
4986
|
+
trace_id: string;
|
|
4987
|
+
request_id: string;
|
|
4988
|
+
};
|
|
4943
4989
|
};
|
|
4944
4990
|
};
|
|
4945
4991
|
/** @description Bad request — validation failed */
|
|
@@ -5047,7 +5093,13 @@ export interface paths {
|
|
|
5047
5093
|
[name: string]: unknown;
|
|
5048
5094
|
};
|
|
5049
5095
|
content: {
|
|
5050
|
-
"application/json":
|
|
5096
|
+
"application/json": {
|
|
5097
|
+
/** @enum {boolean} */
|
|
5098
|
+
success: true;
|
|
5099
|
+
data: components["schemas"]["Line"];
|
|
5100
|
+
trace_id: string;
|
|
5101
|
+
request_id: string;
|
|
5102
|
+
};
|
|
5051
5103
|
};
|
|
5052
5104
|
};
|
|
5053
5105
|
/** @description Bad request — validation failed */
|
|
@@ -5151,7 +5203,13 @@ export interface paths {
|
|
|
5151
5203
|
[name: string]: unknown;
|
|
5152
5204
|
};
|
|
5153
5205
|
content: {
|
|
5154
|
-
"application/json":
|
|
5206
|
+
"application/json": {
|
|
5207
|
+
/** @enum {boolean} */
|
|
5208
|
+
success: true;
|
|
5209
|
+
data: components["schemas"]["Line"];
|
|
5210
|
+
trace_id: string;
|
|
5211
|
+
request_id: string;
|
|
5212
|
+
};
|
|
5155
5213
|
};
|
|
5156
5214
|
};
|
|
5157
5215
|
/** @description Bad request — validation failed */
|
|
@@ -5785,7 +5843,13 @@ export interface paths {
|
|
|
5785
5843
|
[name: string]: unknown;
|
|
5786
5844
|
};
|
|
5787
5845
|
content: {
|
|
5788
|
-
"application/json":
|
|
5846
|
+
"application/json": {
|
|
5847
|
+
/** @enum {boolean} */
|
|
5848
|
+
success: true;
|
|
5849
|
+
data: components["schemas"]["PreOrder"];
|
|
5850
|
+
trace_id: string;
|
|
5851
|
+
request_id: string;
|
|
5852
|
+
};
|
|
5789
5853
|
};
|
|
5790
5854
|
};
|
|
5791
5855
|
/** @description Bad request — validation failed */
|
|
@@ -5862,7 +5926,13 @@ export interface paths {
|
|
|
5862
5926
|
[name: string]: unknown;
|
|
5863
5927
|
};
|
|
5864
5928
|
content: {
|
|
5865
|
-
"application/json":
|
|
5929
|
+
"application/json": {
|
|
5930
|
+
/** @enum {boolean} */
|
|
5931
|
+
success: true;
|
|
5932
|
+
data: components["schemas"]["PreOrder"];
|
|
5933
|
+
trace_id: string;
|
|
5934
|
+
request_id: string;
|
|
5935
|
+
};
|
|
5866
5936
|
};
|
|
5867
5937
|
};
|
|
5868
5938
|
/** @description Bad request — validation failed */
|
|
@@ -5946,7 +6016,13 @@ export interface paths {
|
|
|
5946
6016
|
[name: string]: unknown;
|
|
5947
6017
|
};
|
|
5948
6018
|
content: {
|
|
5949
|
-
"application/json":
|
|
6019
|
+
"application/json": {
|
|
6020
|
+
/** @enum {boolean} */
|
|
6021
|
+
success: true;
|
|
6022
|
+
data: components["schemas"]["PreOrder"];
|
|
6023
|
+
trace_id: string;
|
|
6024
|
+
request_id: string;
|
|
6025
|
+
};
|
|
5950
6026
|
};
|
|
5951
6027
|
};
|
|
5952
6028
|
/** @description Bad request — validation failed */
|
|
@@ -6034,7 +6110,13 @@ export interface paths {
|
|
|
6034
6110
|
[name: string]: unknown;
|
|
6035
6111
|
};
|
|
6036
6112
|
content: {
|
|
6037
|
-
"application/json":
|
|
6113
|
+
"application/json": {
|
|
6114
|
+
/** @enum {boolean} */
|
|
6115
|
+
success: true;
|
|
6116
|
+
data: components["schemas"]["PreOrder"];
|
|
6117
|
+
trace_id: string;
|
|
6118
|
+
request_id: string;
|
|
6119
|
+
};
|
|
6038
6120
|
};
|
|
6039
6121
|
};
|
|
6040
6122
|
/** @description Bad request — validation failed */
|
|
@@ -7411,7 +7493,7 @@ export interface paths {
|
|
|
7411
7493
|
};
|
|
7412
7494
|
/**
|
|
7413
7495
|
* List webhook subscriptions
|
|
7414
|
-
* @description Return every webhook subscription owned by the authenticated user. Each entry surfaces the URL, the subscribed event list, the line allowlist, the active flag, the failure counter, and the last success / failure timestamps.
|
|
7496
|
+
* @description Return every webhook subscription owned by the authenticated user. Each entry surfaces the URL, the subscribed event list, the line allowlist, the active flag, the failure counter, and the last success / failure timestamps. Accepts an API key (`isnap_*`) or a dashboard JWT.
|
|
7415
7497
|
*/
|
|
7416
7498
|
get: {
|
|
7417
7499
|
parameters: {
|
|
@@ -7428,7 +7510,13 @@ export interface paths {
|
|
|
7428
7510
|
[name: string]: unknown;
|
|
7429
7511
|
};
|
|
7430
7512
|
content: {
|
|
7431
|
-
"application/json":
|
|
7513
|
+
"application/json": {
|
|
7514
|
+
/** @enum {boolean} */
|
|
7515
|
+
success: true;
|
|
7516
|
+
data: components["schemas"]["WebhookList"];
|
|
7517
|
+
trace_id: string;
|
|
7518
|
+
request_id: string;
|
|
7519
|
+
};
|
|
7432
7520
|
};
|
|
7433
7521
|
};
|
|
7434
7522
|
/** @description Bad request — validation failed */
|
|
@@ -7472,7 +7560,7 @@ export interface paths {
|
|
|
7472
7560
|
put?: never;
|
|
7473
7561
|
/**
|
|
7474
7562
|
* Register a webhook subscription
|
|
7475
|
-
* @description Subscribe a URL to a list of event types and (optionally) a line allowlist. The server signs deliveries with an HMAC-SHA256 secret returned once here. Retries follow exponential backoff; 10 consecutive failures auto-disable the subscription.
|
|
7563
|
+
* @description Subscribe a URL to a list of event types and (optionally) a line allowlist. The server signs deliveries with an HMAC-SHA256 secret returned once here. Retries follow exponential backoff; 10 consecutive failures auto-disable the subscription. Accepts an API key (`isnap_*`) or a dashboard JWT.
|
|
7476
7564
|
*/
|
|
7477
7565
|
post: {
|
|
7478
7566
|
parameters: {
|
|
@@ -7498,7 +7586,13 @@ export interface paths {
|
|
|
7498
7586
|
[name: string]: unknown;
|
|
7499
7587
|
};
|
|
7500
7588
|
content: {
|
|
7501
|
-
"application/json":
|
|
7589
|
+
"application/json": {
|
|
7590
|
+
/** @enum {boolean} */
|
|
7591
|
+
success: true;
|
|
7592
|
+
data: components["schemas"]["Webhook"];
|
|
7593
|
+
trace_id: string;
|
|
7594
|
+
request_id: string;
|
|
7595
|
+
};
|
|
7502
7596
|
};
|
|
7503
7597
|
};
|
|
7504
7598
|
/** @description Bad request — validation failed */
|
|
@@ -7627,7 +7721,7 @@ export interface paths {
|
|
|
7627
7721
|
post?: never;
|
|
7628
7722
|
/**
|
|
7629
7723
|
* Delete a webhook subscription
|
|
7630
|
-
* @description Permanently delete the webhook subscription. In-flight deliveries already enqueued will still attempt — the deletion only stops new event matching.
|
|
7724
|
+
* @description Permanently delete the webhook subscription. In-flight deliveries already enqueued will still attempt — the deletion only stops new event matching. Accepts an API key (`isnap_*`) or a dashboard JWT.
|
|
7631
7725
|
*/
|
|
7632
7726
|
delete: {
|
|
7633
7727
|
parameters: {
|
|
@@ -8161,7 +8255,13 @@ export interface paths {
|
|
|
8161
8255
|
[name: string]: unknown;
|
|
8162
8256
|
};
|
|
8163
8257
|
content: {
|
|
8164
|
-
"application/json":
|
|
8258
|
+
"application/json": {
|
|
8259
|
+
/** @enum {boolean} */
|
|
8260
|
+
success: true;
|
|
8261
|
+
data: components["schemas"]["CreateAttachmentResponse"];
|
|
8262
|
+
trace_id: string;
|
|
8263
|
+
request_id: string;
|
|
8264
|
+
};
|
|
8165
8265
|
};
|
|
8166
8266
|
};
|
|
8167
8267
|
/** @description Bad request — validation failed */
|
|
@@ -8236,7 +8336,13 @@ export interface paths {
|
|
|
8236
8336
|
[name: string]: unknown;
|
|
8237
8337
|
};
|
|
8238
8338
|
content: {
|
|
8239
|
-
"application/json":
|
|
8339
|
+
"application/json": {
|
|
8340
|
+
/** @enum {boolean} */
|
|
8341
|
+
success: true;
|
|
8342
|
+
data: components["schemas"]["Attachment"];
|
|
8343
|
+
trace_id: string;
|
|
8344
|
+
request_id: string;
|
|
8345
|
+
};
|
|
8240
8346
|
};
|
|
8241
8347
|
};
|
|
8242
8348
|
/** @description Bad request — validation failed */
|
|
@@ -10937,6 +11043,8 @@ export interface components {
|
|
|
10937
11043
|
phone_number: string;
|
|
10938
11044
|
area_code: string | null;
|
|
10939
11045
|
country_code: string | null;
|
|
11046
|
+
state: string | null;
|
|
11047
|
+
state_name: string | null;
|
|
10940
11048
|
/** @enum {string} */
|
|
10941
11049
|
billing_tier: "rental_iphone" | "rental_android" | "byod_imessage" | "byod_android" | "shared_pool";
|
|
10942
11050
|
/** @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. */
|
|
@@ -11365,7 +11473,7 @@ export interface components {
|
|
|
11365
11473
|
next_cursor: string | null;
|
|
11366
11474
|
};
|
|
11367
11475
|
Webhook: {
|
|
11368
|
-
/**
|
|
11476
|
+
/** @example wh_3Kp8Rn9Fh2Lm5Qx7Vw1Yz4Bc */
|
|
11369
11477
|
id: string;
|
|
11370
11478
|
url: string;
|
|
11371
11479
|
events?: unknown;
|