@zinn-digital/sdk 0.1.1592 → 0.1.1594
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/schema.d.ts +296 -2
- package/package.json +1 -1
|
@@ -38158,6 +38158,85 @@ export interface paths {
|
|
|
38158
38158
|
patch?: never;
|
|
38159
38159
|
trace?: never;
|
|
38160
38160
|
};
|
|
38161
|
+
"/v1/me/push-devices": {
|
|
38162
|
+
parameters: {
|
|
38163
|
+
query?: {
|
|
38164
|
+
/** @description The organization to act on, as for the other notification endpoints. Omitted resolves to your own only when you belong to exactly one organisation. */
|
|
38165
|
+
org_id?: string;
|
|
38166
|
+
};
|
|
38167
|
+
header?: never;
|
|
38168
|
+
path?: never;
|
|
38169
|
+
cookie?: never;
|
|
38170
|
+
};
|
|
38171
|
+
/**
|
|
38172
|
+
* The phones registered to me for alerts in this organisation.
|
|
38173
|
+
* @description Every phone on which the signed-in person has installed the phone app and allowed notifications, newest first. Each phone is also a `kind=push` notification connection (`connection_id`), so the routing grid, health and delivery log treat it like any other destination. A person only, never an API key: an API key has no phone.
|
|
38174
|
+
*/
|
|
38175
|
+
get: operations["listPushDevices"];
|
|
38176
|
+
put?: never;
|
|
38177
|
+
/**
|
|
38178
|
+
* Register (or re-register) this phone for alerts.
|
|
38179
|
+
* @description Called by the app after the customer allows notifications, and again whenever the push token rotates. The token is PROVED first with a silent dry run at the push service, so the phone is created already verified and a token the service refuses is refused here (422) instead of being stored to fail on a real alert. One row per install: the same `installation_id` updates its row (200); a new install creates one (201). A token another person in this organisation held on the same phone moves to the caller.
|
|
38180
|
+
*/
|
|
38181
|
+
post: operations["registerPushDevice"];
|
|
38182
|
+
delete?: never;
|
|
38183
|
+
options?: never;
|
|
38184
|
+
head?: never;
|
|
38185
|
+
patch?: never;
|
|
38186
|
+
trace?: never;
|
|
38187
|
+
};
|
|
38188
|
+
"/v1/me/push-devices/{device_id}": {
|
|
38189
|
+
parameters: {
|
|
38190
|
+
query?: {
|
|
38191
|
+
org_id?: string;
|
|
38192
|
+
};
|
|
38193
|
+
header?: never;
|
|
38194
|
+
path: {
|
|
38195
|
+
device_id: string;
|
|
38196
|
+
};
|
|
38197
|
+
cookie?: never;
|
|
38198
|
+
};
|
|
38199
|
+
get?: never;
|
|
38200
|
+
put?: never;
|
|
38201
|
+
post?: never;
|
|
38202
|
+
/**
|
|
38203
|
+
* Stop alerts on this phone.
|
|
38204
|
+
* @description Removes the phone and its notification connection. The app calls this on sign-out.
|
|
38205
|
+
*/
|
|
38206
|
+
delete: operations["deletePushDevice"];
|
|
38207
|
+
options?: never;
|
|
38208
|
+
head?: never;
|
|
38209
|
+
/**
|
|
38210
|
+
* Change this phone's name, language, time zone or quiet hours.
|
|
38211
|
+
* @description Quiet hours are minutes after local midnight in the phone's `time_zone`. A window may cross midnight (22:00 to 07:00 is `quiet_start=1320`, `quiet_end=420`); equal start and end is an EMPTY window, never all day. During quiet hours an alert to this phone is skipped and recorded as skipped in the delivery log; every other destination still receives it.
|
|
38212
|
+
*/
|
|
38213
|
+
patch: operations["updatePushDevice"];
|
|
38214
|
+
trace?: never;
|
|
38215
|
+
};
|
|
38216
|
+
"/v1/me/push-devices/{device_id}/test": {
|
|
38217
|
+
parameters: {
|
|
38218
|
+
query?: {
|
|
38219
|
+
org_id?: string;
|
|
38220
|
+
};
|
|
38221
|
+
header?: never;
|
|
38222
|
+
path: {
|
|
38223
|
+
device_id: string;
|
|
38224
|
+
};
|
|
38225
|
+
cookie?: never;
|
|
38226
|
+
};
|
|
38227
|
+
get?: never;
|
|
38228
|
+
put?: never;
|
|
38229
|
+
/**
|
|
38230
|
+
* Send a real test alert to this phone now.
|
|
38231
|
+
* @description Ignores quiet hours (the customer asked for it). A failure is returned as `sent=false` with its class, not as an error status; if the push service says the app is gone from the phone, the phone is removed (`removed=true`).
|
|
38232
|
+
*/
|
|
38233
|
+
post: operations["testPushDevice"];
|
|
38234
|
+
delete?: never;
|
|
38235
|
+
options?: never;
|
|
38236
|
+
head?: never;
|
|
38237
|
+
patch?: never;
|
|
38238
|
+
trace?: never;
|
|
38239
|
+
};
|
|
38161
38240
|
"/v1/media-offload/claim": {
|
|
38162
38241
|
parameters: {
|
|
38163
38242
|
query?: never;
|
|
@@ -80954,6 +81033,11 @@ export interface components {
|
|
|
80954
81033
|
state: "delegated" | "not_delegated" | "external" | "unknown";
|
|
80955
81034
|
/** @description Whether `www.` in front of the domain has any public address. `null` means the lookup did not answer, never that the name is missing. */
|
|
80956
81035
|
www_resolves?: boolean | null;
|
|
81036
|
+
/**
|
|
81037
|
+
* Format: date-time
|
|
81038
|
+
* @description Owner order 1107#22. When our DNS zone for this domain was REMOVED because the domain was never delegated to it within the grace period (30 days; the daily `zinn-dns-zone-gc` sweep re-checks the public nameservers right before each delete). `expected_ready` is then `false` and `expected` empty. Our copy of the zone's records is kept: offer "Regenerate DNS zone", which is `POST /v1/domains/{domainId}/delegation/fresh-nameservers` (it re-creates the zone with those records and answers the new pair). `null` when the zone is live.
|
|
81039
|
+
*/
|
|
81040
|
+
zone_removed_at?: string | null;
|
|
80957
81041
|
};
|
|
80958
81042
|
/** @description One press of the verify button on a signed-in domain's instruction card. The authenticated twin of `PublicNameserverCheck`'s verdict fields — same four outcomes, classified by the same code, so the two surfaces cannot drift. */
|
|
80959
81043
|
DelegationVerdict: {
|
|
@@ -91608,7 +91692,7 @@ export interface components {
|
|
|
91608
91692
|
/** Format: uuid */
|
|
91609
91693
|
id?: string;
|
|
91610
91694
|
/** @enum {string} */
|
|
91611
|
-
kind?: "email" | "slack" | "telegram" | "webhook";
|
|
91695
|
+
kind?: "email" | "slack" | "telegram" | "webhook" | "push";
|
|
91612
91696
|
label?: string;
|
|
91613
91697
|
/**
|
|
91614
91698
|
* Format: date-time
|
|
@@ -97851,6 +97935,31 @@ export interface components {
|
|
|
97851
97935
|
*/
|
|
97852
97936
|
path?: string;
|
|
97853
97937
|
};
|
|
97938
|
+
/** @description A phone registered for alerts by the phone app (ADR 0042). The push token itself is never returned. */
|
|
97939
|
+
PushDevice: {
|
|
97940
|
+
app_version?: string;
|
|
97941
|
+
/** Format: uuid */
|
|
97942
|
+
connection_id: string;
|
|
97943
|
+
/** Format: date-time */
|
|
97944
|
+
created_at: string;
|
|
97945
|
+
device_name?: string;
|
|
97946
|
+
health: string;
|
|
97947
|
+
/** Format: uuid */
|
|
97948
|
+
id: string;
|
|
97949
|
+
installation_id: string;
|
|
97950
|
+
/** Format: date-time */
|
|
97951
|
+
last_delivery_at?: string | null;
|
|
97952
|
+
/** Format: date-time */
|
|
97953
|
+
last_seen_at: string;
|
|
97954
|
+
locale?: string;
|
|
97955
|
+
os_version?: string;
|
|
97956
|
+
/** @enum {string} */
|
|
97957
|
+
platform: "ios" | "android";
|
|
97958
|
+
quiet_enabled: boolean;
|
|
97959
|
+
quiet_end: number;
|
|
97960
|
+
quiet_start: number;
|
|
97961
|
+
time_zone?: string;
|
|
97962
|
+
};
|
|
97854
97963
|
/** @description One file on a quote request, as staff see it. */
|
|
97855
97964
|
QuoteAttachmentSummary: {
|
|
97856
97965
|
/** @description What the bytes ACTUALLY are, from magic-byte verification — never the header the uploader declared. */
|
|
@@ -179383,6 +179492,191 @@ export interface operations {
|
|
|
179383
179492
|
429: components["responses"]["TooManyRequests"];
|
|
179384
179493
|
};
|
|
179385
179494
|
};
|
|
179495
|
+
listPushDevices: {
|
|
179496
|
+
parameters: {
|
|
179497
|
+
query?: {
|
|
179498
|
+
/** @description The organization to act on, as for the other notification endpoints. Omitted resolves to your own only when you belong to exactly one organisation. */
|
|
179499
|
+
org_id?: string;
|
|
179500
|
+
};
|
|
179501
|
+
header?: never;
|
|
179502
|
+
path?: never;
|
|
179503
|
+
cookie?: never;
|
|
179504
|
+
};
|
|
179505
|
+
requestBody?: never;
|
|
179506
|
+
responses: {
|
|
179507
|
+
/** @description My phones. */
|
|
179508
|
+
200: {
|
|
179509
|
+
headers: {
|
|
179510
|
+
[name: string]: unknown;
|
|
179511
|
+
};
|
|
179512
|
+
content: {
|
|
179513
|
+
"application/json": {
|
|
179514
|
+
devices: components["schemas"]["PushDevice"][];
|
|
179515
|
+
};
|
|
179516
|
+
};
|
|
179517
|
+
};
|
|
179518
|
+
401: components["responses"]["Unauthorized"];
|
|
179519
|
+
403: components["responses"]["Forbidden"];
|
|
179520
|
+
};
|
|
179521
|
+
};
|
|
179522
|
+
registerPushDevice: {
|
|
179523
|
+
parameters: {
|
|
179524
|
+
query?: {
|
|
179525
|
+
/** @description The organization to act on, as for the other notification endpoints. Omitted resolves to your own only when you belong to exactly one organisation. */
|
|
179526
|
+
org_id?: string;
|
|
179527
|
+
};
|
|
179528
|
+
header?: never;
|
|
179529
|
+
path?: never;
|
|
179530
|
+
cookie?: never;
|
|
179531
|
+
};
|
|
179532
|
+
requestBody: {
|
|
179533
|
+
content: {
|
|
179534
|
+
"application/json": {
|
|
179535
|
+
app_version?: string;
|
|
179536
|
+
device_name?: string;
|
|
179537
|
+
/** @description A random id the app generates once per install and keeps. */
|
|
179538
|
+
installation_id: string;
|
|
179539
|
+
locale?: string;
|
|
179540
|
+
os_version?: string;
|
|
179541
|
+
/** @enum {string} */
|
|
179542
|
+
platform: "ios" | "android";
|
|
179543
|
+
/** @description An IANA zone */
|
|
179544
|
+
time_zone?: string;
|
|
179545
|
+
/** @description The push token the phone's operating system issued to the app. */
|
|
179546
|
+
token: string;
|
|
179547
|
+
};
|
|
179548
|
+
};
|
|
179549
|
+
};
|
|
179550
|
+
responses: {
|
|
179551
|
+
/** @description This install was already registered; its token and details were updated. */
|
|
179552
|
+
200: {
|
|
179553
|
+
headers: {
|
|
179554
|
+
[name: string]: unknown;
|
|
179555
|
+
};
|
|
179556
|
+
content: {
|
|
179557
|
+
"application/json": components["schemas"]["PushDevice"];
|
|
179558
|
+
};
|
|
179559
|
+
};
|
|
179560
|
+
/** @description The phone is registered and verified. */
|
|
179561
|
+
201: {
|
|
179562
|
+
headers: {
|
|
179563
|
+
[name: string]: unknown;
|
|
179564
|
+
};
|
|
179565
|
+
content: {
|
|
179566
|
+
"application/json": components["schemas"]["PushDevice"];
|
|
179567
|
+
};
|
|
179568
|
+
};
|
|
179569
|
+
401: components["responses"]["Unauthorized"];
|
|
179570
|
+
403: components["responses"]["Forbidden"];
|
|
179571
|
+
/** @description The push service refused the token, or phone alerts are unavailable right now. The message says which and what to do. */
|
|
179572
|
+
422: {
|
|
179573
|
+
headers: {
|
|
179574
|
+
[name: string]: unknown;
|
|
179575
|
+
};
|
|
179576
|
+
content: {
|
|
179577
|
+
"application/json": components["schemas"]["Error"];
|
|
179578
|
+
};
|
|
179579
|
+
};
|
|
179580
|
+
};
|
|
179581
|
+
};
|
|
179582
|
+
deletePushDevice: {
|
|
179583
|
+
parameters: {
|
|
179584
|
+
query?: {
|
|
179585
|
+
org_id?: string;
|
|
179586
|
+
};
|
|
179587
|
+
header?: never;
|
|
179588
|
+
path: {
|
|
179589
|
+
device_id: string;
|
|
179590
|
+
};
|
|
179591
|
+
cookie?: never;
|
|
179592
|
+
};
|
|
179593
|
+
requestBody?: never;
|
|
179594
|
+
responses: {
|
|
179595
|
+
/** @description Removed. */
|
|
179596
|
+
200: {
|
|
179597
|
+
headers: {
|
|
179598
|
+
[name: string]: unknown;
|
|
179599
|
+
};
|
|
179600
|
+
content: {
|
|
179601
|
+
"application/json": {
|
|
179602
|
+
deleted: boolean;
|
|
179603
|
+
};
|
|
179604
|
+
};
|
|
179605
|
+
};
|
|
179606
|
+
401: components["responses"]["Unauthorized"];
|
|
179607
|
+
403: components["responses"]["Forbidden"];
|
|
179608
|
+
404: components["responses"]["NotFound"];
|
|
179609
|
+
};
|
|
179610
|
+
};
|
|
179611
|
+
updatePushDevice: {
|
|
179612
|
+
parameters: {
|
|
179613
|
+
query?: {
|
|
179614
|
+
org_id?: string;
|
|
179615
|
+
};
|
|
179616
|
+
header?: never;
|
|
179617
|
+
path: {
|
|
179618
|
+
device_id: string;
|
|
179619
|
+
};
|
|
179620
|
+
cookie?: never;
|
|
179621
|
+
};
|
|
179622
|
+
requestBody: {
|
|
179623
|
+
content: {
|
|
179624
|
+
"application/json": {
|
|
179625
|
+
device_name?: string;
|
|
179626
|
+
locale?: string;
|
|
179627
|
+
quiet_enabled?: boolean;
|
|
179628
|
+
quiet_end?: number;
|
|
179629
|
+
quiet_start?: number;
|
|
179630
|
+
time_zone?: string;
|
|
179631
|
+
};
|
|
179632
|
+
};
|
|
179633
|
+
};
|
|
179634
|
+
responses: {
|
|
179635
|
+
/** @description The updated phone. */
|
|
179636
|
+
200: {
|
|
179637
|
+
headers: {
|
|
179638
|
+
[name: string]: unknown;
|
|
179639
|
+
};
|
|
179640
|
+
content: {
|
|
179641
|
+
"application/json": components["schemas"]["PushDevice"];
|
|
179642
|
+
};
|
|
179643
|
+
};
|
|
179644
|
+
401: components["responses"]["Unauthorized"];
|
|
179645
|
+
403: components["responses"]["Forbidden"];
|
|
179646
|
+
404: components["responses"]["NotFound"];
|
|
179647
|
+
};
|
|
179648
|
+
};
|
|
179649
|
+
testPushDevice: {
|
|
179650
|
+
parameters: {
|
|
179651
|
+
query?: {
|
|
179652
|
+
org_id?: string;
|
|
179653
|
+
};
|
|
179654
|
+
header?: never;
|
|
179655
|
+
path: {
|
|
179656
|
+
device_id: string;
|
|
179657
|
+
};
|
|
179658
|
+
cookie?: never;
|
|
179659
|
+
};
|
|
179660
|
+
requestBody?: never;
|
|
179661
|
+
responses: {
|
|
179662
|
+
/** @description The outcome. */
|
|
179663
|
+
200: {
|
|
179664
|
+
headers: {
|
|
179665
|
+
[name: string]: unknown;
|
|
179666
|
+
};
|
|
179667
|
+
content: {
|
|
179668
|
+
"application/json": {
|
|
179669
|
+
error_code: string;
|
|
179670
|
+
removed: boolean;
|
|
179671
|
+
sent: boolean;
|
|
179672
|
+
};
|
|
179673
|
+
};
|
|
179674
|
+
};
|
|
179675
|
+
401: components["responses"]["Unauthorized"];
|
|
179676
|
+
403: components["responses"]["Forbidden"];
|
|
179677
|
+
404: components["responses"]["NotFound"];
|
|
179678
|
+
};
|
|
179679
|
+
};
|
|
179386
179680
|
claimMediaOffloadPairing: {
|
|
179387
179681
|
parameters: {
|
|
179388
179682
|
query?: never;
|
|
@@ -180206,7 +180500,7 @@ export interface operations {
|
|
|
180206
180500
|
*/
|
|
180207
180501
|
credential?: string;
|
|
180208
180502
|
/**
|
|
180209
|
-
* @description SMS
|
|
180503
|
+
* @description SMS is deliberately absent - it was rejected. A phone (`push`) is not connected here: the phone app registers itself through `POST /v1/me/push-devices`, which proves the token first.
|
|
180210
180504
|
* @enum {string}
|
|
180211
180505
|
*/
|
|
180212
180506
|
kind: "email" | "slack" | "telegram" | "webhook";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zinn-digital/sdk",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1594",
|
|
4
4
|
"description": "Typed TypeScript client for the Zinn Digital Platform API, generated from its OpenAPI spec.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Neil Lock \u2014 CEO, Zinn Digital\u00ae Ltd <office@zinndigital.com>",
|