@isnap/sdk 1.3.0-next.197 → 1.3.0-next.199
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 +92 -0
- package/package.json +1 -1
|
@@ -5687,6 +5687,87 @@ export interface paths {
|
|
|
5687
5687
|
patch?: never;
|
|
5688
5688
|
trace?: never;
|
|
5689
5689
|
};
|
|
5690
|
+
"/v1/attention": {
|
|
5691
|
+
parameters: {
|
|
5692
|
+
query?: never;
|
|
5693
|
+
header?: never;
|
|
5694
|
+
path?: never;
|
|
5695
|
+
cookie?: never;
|
|
5696
|
+
};
|
|
5697
|
+
/**
|
|
5698
|
+
* What currently needs attention on the caller's lines
|
|
5699
|
+
* @description Every line of yours with something wrong: an open incident, a degraded health state, or a fleet probe that has flagged its hardware. One entry per LINE — two faults on one number are one entry. **A BYOD line appears immediately** and carries its reasons. **A rental, pool or shared line appears only once the fault has lasted 15 minutes** (`RENTAL_DURABLE_OFFLINE_MINUTES`, the same threshold as the durable `line.offline` webhook) and carries `reasons: []` with `detail_withheld: true` — per §4.4 a customer with no access to the hardware is told the line is unavailable and being resolved, never which check on which machine failed. `since` is when the fault started; it is null when the underlying detector has no anchor for it. A line-scoped API key sees only the lines in its allowlist.
|
|
5700
|
+
*/
|
|
5701
|
+
get: {
|
|
5702
|
+
parameters: {
|
|
5703
|
+
query?: never;
|
|
5704
|
+
header?: never;
|
|
5705
|
+
path?: never;
|
|
5706
|
+
cookie?: never;
|
|
5707
|
+
};
|
|
5708
|
+
requestBody?: never;
|
|
5709
|
+
responses: {
|
|
5710
|
+
/** @description Lines needing attention, longest-standing first */
|
|
5711
|
+
200: {
|
|
5712
|
+
headers: {
|
|
5713
|
+
[name: string]: unknown;
|
|
5714
|
+
};
|
|
5715
|
+
content: {
|
|
5716
|
+
"application/json": {
|
|
5717
|
+
/** @enum {boolean} */
|
|
5718
|
+
success: true;
|
|
5719
|
+
data: components["schemas"]["AttentionList"];
|
|
5720
|
+
trace_id: string;
|
|
5721
|
+
request_id: string;
|
|
5722
|
+
};
|
|
5723
|
+
};
|
|
5724
|
+
};
|
|
5725
|
+
/** @description Bad request — validation failed */
|
|
5726
|
+
400: {
|
|
5727
|
+
headers: {
|
|
5728
|
+
[name: string]: unknown;
|
|
5729
|
+
};
|
|
5730
|
+
content: {
|
|
5731
|
+
"application/json": components["schemas"]["ErrorEnvelope"];
|
|
5732
|
+
};
|
|
5733
|
+
};
|
|
5734
|
+
/** @description Unauthenticated — missing or invalid bearer token */
|
|
5735
|
+
401: {
|
|
5736
|
+
headers: {
|
|
5737
|
+
[name: string]: unknown;
|
|
5738
|
+
};
|
|
5739
|
+
content: {
|
|
5740
|
+
"application/json": components["schemas"]["ErrorEnvelope"];
|
|
5741
|
+
};
|
|
5742
|
+
};
|
|
5743
|
+
/** @description Too many requests — rate limit exceeded */
|
|
5744
|
+
429: {
|
|
5745
|
+
headers: {
|
|
5746
|
+
[name: string]: unknown;
|
|
5747
|
+
};
|
|
5748
|
+
content: {
|
|
5749
|
+
"application/json": components["schemas"]["ErrorEnvelope"];
|
|
5750
|
+
};
|
|
5751
|
+
};
|
|
5752
|
+
/** @description Internal server error */
|
|
5753
|
+
500: {
|
|
5754
|
+
headers: {
|
|
5755
|
+
[name: string]: unknown;
|
|
5756
|
+
};
|
|
5757
|
+
content: {
|
|
5758
|
+
"application/json": components["schemas"]["ErrorEnvelope"];
|
|
5759
|
+
};
|
|
5760
|
+
};
|
|
5761
|
+
};
|
|
5762
|
+
};
|
|
5763
|
+
put?: never;
|
|
5764
|
+
post?: never;
|
|
5765
|
+
delete?: never;
|
|
5766
|
+
options?: never;
|
|
5767
|
+
head?: never;
|
|
5768
|
+
patch?: never;
|
|
5769
|
+
trace?: never;
|
|
5770
|
+
};
|
|
5690
5771
|
"/v1/area-codes": {
|
|
5691
5772
|
parameters: {
|
|
5692
5773
|
query?: never;
|
|
@@ -7975,6 +8056,17 @@ export interface components {
|
|
|
7975
8056
|
handle: string;
|
|
7976
8057
|
from_line_id?: string;
|
|
7977
8058
|
};
|
|
8059
|
+
AttentionList: {
|
|
8060
|
+
entries: components["schemas"]["AttentionEntry"][];
|
|
8061
|
+
};
|
|
8062
|
+
AttentionEntry: {
|
|
8063
|
+
line_id: string;
|
|
8064
|
+
phone_number: string | null;
|
|
8065
|
+
ownership: string;
|
|
8066
|
+
since: string | null;
|
|
8067
|
+
reasons: string[];
|
|
8068
|
+
detail_withheld: boolean;
|
|
8069
|
+
};
|
|
7978
8070
|
AreaCodesEnvelope: {
|
|
7979
8071
|
/** @enum {boolean} */
|
|
7980
8072
|
success: true;
|