@zinn-digital/sdk 0.1.1591 → 0.1.1593
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 +294 -4
- package/package.json +1 -1
|
@@ -6334,7 +6334,7 @@ export interface paths {
|
|
|
6334
6334
|
put?: never;
|
|
6335
6335
|
/**
|
|
6336
6336
|
* Do what an audit finding proposes in the Google Ads account (audited).
|
|
6337
|
-
* @description A wasteful search term is added as an exact negative to its shared list (or, for a search served by two campaigns — `detail.why = "cannibal"` — to the one campaign it does not belong in); a poor keyword is paused; a converting or growing search term (`good_term`, `new_keyword`) is added as a PHRASE keyword to the ad group it was searched in. Every change is first replayed against 30 days of search terms and every keyword (the collision simulator). One write to the account, then the finding is closed as `applied`. 422 for a finding that is closed or has nothing to apply (including a keyword proposal that failed a safety check, `detail.one_click = false`), `refusal.googleAds.wouldBlockKeyword` for a negative that is one of our own keywords (owner decision 133: never) and `refusal.googleAds.wouldCollide` when the change would stop a main, converting or growing search or take one from another ad group (the reasons are saved on `detail.collision`); 503 when Google refuses (the finding stays open). za-260 (WAVEBUILD): approving a wave's budget twice at once builds it once (the budget and plan rows are locked and re-read); the enable of a wave whose read-back set is no longer what was built is refused with `refusal.googleAds.waveEnableRefused`, the row stays open with the reasons on `detail.enable_refused` (each `market`, `campaign`, `code` — `not_paused`, `bidding`, `target_cpa`, `budget`, `country`, `negatives` with the missing `negatives`, or `set` — and `detail.enable_refused_at`) and the error's `details` carry the same reasons (`field` `campaigns.<market>`, `code`, English `message`). Audit action `google_ads.finding_applied`. Requires `campaigns.manage`. BUDGETMV1 (za-186): a budget-limited finding's body may name `option` — `move` (default, total unchanged) or `increase` (the campaign alone raised, refused with 422 when the monthly ceiling no longer has that room today).
|
|
6337
|
+
* @description A wasteful search term is added as an exact negative to its shared list (or, for a search served by two campaigns — `detail.why = "cannibal"` — to the one campaign it does not belong in); a poor keyword is paused; a converting or growing search term (`good_term`, `new_keyword`) is added as a PHRASE keyword to the ad group it was searched in. Every change is first replayed against 30 days of search terms and every keyword (the collision simulator). One write to the account, then the finding is closed as `applied`. 422 for a finding that is closed or has nothing to apply (including a keyword proposal that failed a safety check, `detail.one_click = false`), `refusal.googleAds.wouldBlockKeyword` for a negative that is one of our own keywords (owner decision 133: never) and `refusal.googleAds.wouldCollide` when the change would stop a main, converting or growing search or take one from another ad group (the reasons are saved on `detail.collision`); 422 `refusal.googleAds.houseGateRefused` when OUR house owner-manual gate refuses it (nothing is sent; ZA332); 503 `refusal.googleAds.googleRefused` only when Google refuses (the finding stays open). za-260 (WAVEBUILD): approving a wave's budget twice at once builds it once (the budget and plan rows are locked and re-read); the enable of a wave whose read-back set is no longer what was built is refused with `refusal.googleAds.waveEnableRefused`, the row stays open with the reasons on `detail.enable_refused` (each `market`, `campaign`, `code` — `not_paused`, `bidding`, `target_cpa`, `budget`, `country`, `negatives` with the missing `negatives`, or `set` — and `detail.enable_refused_at`) and the error's `details` carry the same reasons (`field` `campaigns.<market>`, `code`, English `message`). Audit action `google_ads.finding_applied`. Requires `campaigns.manage`. BUDGETMV1 (za-186): a budget-limited finding's body may name `option` — `move` (default, total unchanged) or `increase` (the campaign alone raised, refused with 422 when the monthly ceiling no longer has that room today).
|
|
6338
6338
|
*/
|
|
6339
6339
|
post: operations["applyAdminGoogleAdsFinding"];
|
|
6340
6340
|
delete?: never;
|
|
@@ -6356,7 +6356,7 @@ export interface paths {
|
|
|
6356
6356
|
put?: never;
|
|
6357
6357
|
/**
|
|
6358
6358
|
* Close an audit finding without acting on it (audited).
|
|
6359
|
-
* @description A dismissed finding stays dismissed: the daily audit does not raise it again. Audit action `google_ads.finding_dismissed`. Requires `campaigns.manage`.
|
|
6359
|
+
* @description A dismissed finding stays dismissed: the daily audit does not raise it again. A Google recommendation is dismissed at Google too: 422 `refusal.googleAds.houseGateRefused` when OUR house owner-manual gate refuses that (nothing is sent, the finding stays open; ZA332), 503 `refusal.googleAds.googleRefused` when Google refuses it. Audit action `google_ads.finding_dismissed`. Requires `campaigns.manage`.
|
|
6360
6360
|
*/
|
|
6361
6361
|
post: operations["dismissAdminGoogleAdsFinding"];
|
|
6362
6362
|
delete?: never;
|
|
@@ -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;
|
|
@@ -91608,7 +91687,7 @@ export interface components {
|
|
|
91608
91687
|
/** Format: uuid */
|
|
91609
91688
|
id?: string;
|
|
91610
91689
|
/** @enum {string} */
|
|
91611
|
-
kind?: "email" | "slack" | "telegram" | "webhook";
|
|
91690
|
+
kind?: "email" | "slack" | "telegram" | "webhook" | "push";
|
|
91612
91691
|
label?: string;
|
|
91613
91692
|
/**
|
|
91614
91693
|
* Format: date-time
|
|
@@ -97851,6 +97930,31 @@ export interface components {
|
|
|
97851
97930
|
*/
|
|
97852
97931
|
path?: string;
|
|
97853
97932
|
};
|
|
97933
|
+
/** @description A phone registered for alerts by the phone app (ADR 0042). The push token itself is never returned. */
|
|
97934
|
+
PushDevice: {
|
|
97935
|
+
app_version?: string;
|
|
97936
|
+
/** Format: uuid */
|
|
97937
|
+
connection_id: string;
|
|
97938
|
+
/** Format: date-time */
|
|
97939
|
+
created_at: string;
|
|
97940
|
+
device_name?: string;
|
|
97941
|
+
health: string;
|
|
97942
|
+
/** Format: uuid */
|
|
97943
|
+
id: string;
|
|
97944
|
+
installation_id: string;
|
|
97945
|
+
/** Format: date-time */
|
|
97946
|
+
last_delivery_at?: string | null;
|
|
97947
|
+
/** Format: date-time */
|
|
97948
|
+
last_seen_at: string;
|
|
97949
|
+
locale?: string;
|
|
97950
|
+
os_version?: string;
|
|
97951
|
+
/** @enum {string} */
|
|
97952
|
+
platform: "ios" | "android";
|
|
97953
|
+
quiet_enabled: boolean;
|
|
97954
|
+
quiet_end: number;
|
|
97955
|
+
quiet_start: number;
|
|
97956
|
+
time_zone?: string;
|
|
97957
|
+
};
|
|
97854
97958
|
/** @description One file on a quote request, as staff see it. */
|
|
97855
97959
|
QuoteAttachmentSummary: {
|
|
97856
97960
|
/** @description What the bytes ACTUALLY are, from magic-byte verification — never the header the uploader declared. */
|
|
@@ -125323,6 +125427,7 @@ export interface operations {
|
|
|
125323
125427
|
404: components["responses"]["NotFound"];
|
|
125324
125428
|
422: components["responses"]["UnprocessableEntity"];
|
|
125325
125429
|
429: components["responses"]["TooManyRequests"];
|
|
125430
|
+
503: components["responses"]["ServiceUnavailable"];
|
|
125326
125431
|
};
|
|
125327
125432
|
};
|
|
125328
125433
|
undoAdminGoogleAdsChange: {
|
|
@@ -179382,6 +179487,191 @@ export interface operations {
|
|
|
179382
179487
|
429: components["responses"]["TooManyRequests"];
|
|
179383
179488
|
};
|
|
179384
179489
|
};
|
|
179490
|
+
listPushDevices: {
|
|
179491
|
+
parameters: {
|
|
179492
|
+
query?: {
|
|
179493
|
+
/** @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. */
|
|
179494
|
+
org_id?: string;
|
|
179495
|
+
};
|
|
179496
|
+
header?: never;
|
|
179497
|
+
path?: never;
|
|
179498
|
+
cookie?: never;
|
|
179499
|
+
};
|
|
179500
|
+
requestBody?: never;
|
|
179501
|
+
responses: {
|
|
179502
|
+
/** @description My phones. */
|
|
179503
|
+
200: {
|
|
179504
|
+
headers: {
|
|
179505
|
+
[name: string]: unknown;
|
|
179506
|
+
};
|
|
179507
|
+
content: {
|
|
179508
|
+
"application/json": {
|
|
179509
|
+
devices: components["schemas"]["PushDevice"][];
|
|
179510
|
+
};
|
|
179511
|
+
};
|
|
179512
|
+
};
|
|
179513
|
+
401: components["responses"]["Unauthorized"];
|
|
179514
|
+
403: components["responses"]["Forbidden"];
|
|
179515
|
+
};
|
|
179516
|
+
};
|
|
179517
|
+
registerPushDevice: {
|
|
179518
|
+
parameters: {
|
|
179519
|
+
query?: {
|
|
179520
|
+
/** @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. */
|
|
179521
|
+
org_id?: string;
|
|
179522
|
+
};
|
|
179523
|
+
header?: never;
|
|
179524
|
+
path?: never;
|
|
179525
|
+
cookie?: never;
|
|
179526
|
+
};
|
|
179527
|
+
requestBody: {
|
|
179528
|
+
content: {
|
|
179529
|
+
"application/json": {
|
|
179530
|
+
app_version?: string;
|
|
179531
|
+
device_name?: string;
|
|
179532
|
+
/** @description A random id the app generates once per install and keeps. */
|
|
179533
|
+
installation_id: string;
|
|
179534
|
+
locale?: string;
|
|
179535
|
+
os_version?: string;
|
|
179536
|
+
/** @enum {string} */
|
|
179537
|
+
platform: "ios" | "android";
|
|
179538
|
+
/** @description An IANA zone */
|
|
179539
|
+
time_zone?: string;
|
|
179540
|
+
/** @description The push token the phone's operating system issued to the app. */
|
|
179541
|
+
token: string;
|
|
179542
|
+
};
|
|
179543
|
+
};
|
|
179544
|
+
};
|
|
179545
|
+
responses: {
|
|
179546
|
+
/** @description This install was already registered; its token and details were updated. */
|
|
179547
|
+
200: {
|
|
179548
|
+
headers: {
|
|
179549
|
+
[name: string]: unknown;
|
|
179550
|
+
};
|
|
179551
|
+
content: {
|
|
179552
|
+
"application/json": components["schemas"]["PushDevice"];
|
|
179553
|
+
};
|
|
179554
|
+
};
|
|
179555
|
+
/** @description The phone is registered and verified. */
|
|
179556
|
+
201: {
|
|
179557
|
+
headers: {
|
|
179558
|
+
[name: string]: unknown;
|
|
179559
|
+
};
|
|
179560
|
+
content: {
|
|
179561
|
+
"application/json": components["schemas"]["PushDevice"];
|
|
179562
|
+
};
|
|
179563
|
+
};
|
|
179564
|
+
401: components["responses"]["Unauthorized"];
|
|
179565
|
+
403: components["responses"]["Forbidden"];
|
|
179566
|
+
/** @description The push service refused the token, or phone alerts are unavailable right now. The message says which and what to do. */
|
|
179567
|
+
422: {
|
|
179568
|
+
headers: {
|
|
179569
|
+
[name: string]: unknown;
|
|
179570
|
+
};
|
|
179571
|
+
content: {
|
|
179572
|
+
"application/json": components["schemas"]["Error"];
|
|
179573
|
+
};
|
|
179574
|
+
};
|
|
179575
|
+
};
|
|
179576
|
+
};
|
|
179577
|
+
deletePushDevice: {
|
|
179578
|
+
parameters: {
|
|
179579
|
+
query?: {
|
|
179580
|
+
org_id?: string;
|
|
179581
|
+
};
|
|
179582
|
+
header?: never;
|
|
179583
|
+
path: {
|
|
179584
|
+
device_id: string;
|
|
179585
|
+
};
|
|
179586
|
+
cookie?: never;
|
|
179587
|
+
};
|
|
179588
|
+
requestBody?: never;
|
|
179589
|
+
responses: {
|
|
179590
|
+
/** @description Removed. */
|
|
179591
|
+
200: {
|
|
179592
|
+
headers: {
|
|
179593
|
+
[name: string]: unknown;
|
|
179594
|
+
};
|
|
179595
|
+
content: {
|
|
179596
|
+
"application/json": {
|
|
179597
|
+
deleted: boolean;
|
|
179598
|
+
};
|
|
179599
|
+
};
|
|
179600
|
+
};
|
|
179601
|
+
401: components["responses"]["Unauthorized"];
|
|
179602
|
+
403: components["responses"]["Forbidden"];
|
|
179603
|
+
404: components["responses"]["NotFound"];
|
|
179604
|
+
};
|
|
179605
|
+
};
|
|
179606
|
+
updatePushDevice: {
|
|
179607
|
+
parameters: {
|
|
179608
|
+
query?: {
|
|
179609
|
+
org_id?: string;
|
|
179610
|
+
};
|
|
179611
|
+
header?: never;
|
|
179612
|
+
path: {
|
|
179613
|
+
device_id: string;
|
|
179614
|
+
};
|
|
179615
|
+
cookie?: never;
|
|
179616
|
+
};
|
|
179617
|
+
requestBody: {
|
|
179618
|
+
content: {
|
|
179619
|
+
"application/json": {
|
|
179620
|
+
device_name?: string;
|
|
179621
|
+
locale?: string;
|
|
179622
|
+
quiet_enabled?: boolean;
|
|
179623
|
+
quiet_end?: number;
|
|
179624
|
+
quiet_start?: number;
|
|
179625
|
+
time_zone?: string;
|
|
179626
|
+
};
|
|
179627
|
+
};
|
|
179628
|
+
};
|
|
179629
|
+
responses: {
|
|
179630
|
+
/** @description The updated phone. */
|
|
179631
|
+
200: {
|
|
179632
|
+
headers: {
|
|
179633
|
+
[name: string]: unknown;
|
|
179634
|
+
};
|
|
179635
|
+
content: {
|
|
179636
|
+
"application/json": components["schemas"]["PushDevice"];
|
|
179637
|
+
};
|
|
179638
|
+
};
|
|
179639
|
+
401: components["responses"]["Unauthorized"];
|
|
179640
|
+
403: components["responses"]["Forbidden"];
|
|
179641
|
+
404: components["responses"]["NotFound"];
|
|
179642
|
+
};
|
|
179643
|
+
};
|
|
179644
|
+
testPushDevice: {
|
|
179645
|
+
parameters: {
|
|
179646
|
+
query?: {
|
|
179647
|
+
org_id?: string;
|
|
179648
|
+
};
|
|
179649
|
+
header?: never;
|
|
179650
|
+
path: {
|
|
179651
|
+
device_id: string;
|
|
179652
|
+
};
|
|
179653
|
+
cookie?: never;
|
|
179654
|
+
};
|
|
179655
|
+
requestBody?: never;
|
|
179656
|
+
responses: {
|
|
179657
|
+
/** @description The outcome. */
|
|
179658
|
+
200: {
|
|
179659
|
+
headers: {
|
|
179660
|
+
[name: string]: unknown;
|
|
179661
|
+
};
|
|
179662
|
+
content: {
|
|
179663
|
+
"application/json": {
|
|
179664
|
+
error_code: string;
|
|
179665
|
+
removed: boolean;
|
|
179666
|
+
sent: boolean;
|
|
179667
|
+
};
|
|
179668
|
+
};
|
|
179669
|
+
};
|
|
179670
|
+
401: components["responses"]["Unauthorized"];
|
|
179671
|
+
403: components["responses"]["Forbidden"];
|
|
179672
|
+
404: components["responses"]["NotFound"];
|
|
179673
|
+
};
|
|
179674
|
+
};
|
|
179385
179675
|
claimMediaOffloadPairing: {
|
|
179386
179676
|
parameters: {
|
|
179387
179677
|
query?: never;
|
|
@@ -180205,7 +180495,7 @@ export interface operations {
|
|
|
180205
180495
|
*/
|
|
180206
180496
|
credential?: string;
|
|
180207
180497
|
/**
|
|
180208
|
-
* @description SMS
|
|
180498
|
+
* @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.
|
|
180209
180499
|
* @enum {string}
|
|
180210
180500
|
*/
|
|
180211
180501
|
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.1593",
|
|
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>",
|