@zinn-digital/sdk 0.1.1396 → 0.1.1399
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 +595 -0
- package/package.json +1 -1
|
@@ -16135,6 +16135,52 @@ export interface paths {
|
|
|
16135
16135
|
patch?: never;
|
|
16136
16136
|
trace?: never;
|
|
16137
16137
|
};
|
|
16138
|
+
"/v1/ads/client-approval-links": {
|
|
16139
|
+
parameters: {
|
|
16140
|
+
query?: never;
|
|
16141
|
+
header?: never;
|
|
16142
|
+
path?: never;
|
|
16143
|
+
cookie?: never;
|
|
16144
|
+
};
|
|
16145
|
+
/**
|
|
16146
|
+
* The client approval links the caller made (za-104).
|
|
16147
|
+
* @description Gated on `ads.manage`, over every org the caller holds it in (an agency holds it on its clients through the reseller tree); narrowed by `?org_id=`. Newest first, at most 200. Never carries a token.
|
|
16148
|
+
*/
|
|
16149
|
+
get: operations["listAdsClientApprovalLinks"];
|
|
16150
|
+
put?: never;
|
|
16151
|
+
/**
|
|
16152
|
+
* Make an approval link for a client org (za-104).
|
|
16153
|
+
* @description Gated on `ads.manage` on `org_id` (the CLIENT org); another org answers `404`. `days` 1-30 (default 14, else `badDays`); `label` is the agency's own note (plain text, else `badText`). The `201` carries `url` once — only the token's SHA-256 is stored. Audit action `ads.client_approval_link_created` on the client org.
|
|
16154
|
+
*/
|
|
16155
|
+
post: operations["createAdsClientApprovalLink"];
|
|
16156
|
+
delete?: never;
|
|
16157
|
+
options?: never;
|
|
16158
|
+
head?: never;
|
|
16159
|
+
patch?: never;
|
|
16160
|
+
trace?: never;
|
|
16161
|
+
};
|
|
16162
|
+
"/v1/ads/client-approval-links/{link_id}/revoke": {
|
|
16163
|
+
parameters: {
|
|
16164
|
+
query?: never;
|
|
16165
|
+
header?: never;
|
|
16166
|
+
path: {
|
|
16167
|
+
link_id: string;
|
|
16168
|
+
};
|
|
16169
|
+
cookie?: never;
|
|
16170
|
+
};
|
|
16171
|
+
get?: never;
|
|
16172
|
+
put?: never;
|
|
16173
|
+
/**
|
|
16174
|
+
* Stop a client approval link working, now (za-104).
|
|
16175
|
+
* @description Gated on `ads.manage` on the link's client org (else `404`). Twice is once. Audit action `ads.client_approval_link_revoked`.
|
|
16176
|
+
*/
|
|
16177
|
+
post: operations["revokeAdsClientApprovalLink"];
|
|
16178
|
+
delete?: never;
|
|
16179
|
+
options?: never;
|
|
16180
|
+
head?: never;
|
|
16181
|
+
patch?: never;
|
|
16182
|
+
trace?: never;
|
|
16183
|
+
};
|
|
16138
16184
|
"/v1/ads/connect/amazon": {
|
|
16139
16185
|
parameters: {
|
|
16140
16186
|
query?: never;
|
|
@@ -18740,6 +18786,78 @@ export interface paths {
|
|
|
18740
18786
|
patch?: never;
|
|
18741
18787
|
trace?: never;
|
|
18742
18788
|
};
|
|
18789
|
+
"/v1/ads/connections/{connection_id}/prospecting": {
|
|
18790
|
+
parameters: {
|
|
18791
|
+
query?: never;
|
|
18792
|
+
header?: never;
|
|
18793
|
+
path: {
|
|
18794
|
+
connection_id: string;
|
|
18795
|
+
};
|
|
18796
|
+
cookie?: never;
|
|
18797
|
+
};
|
|
18798
|
+
/**
|
|
18799
|
+
* The Prospecting template's choices - business types, starter negatives, budget (za-158).
|
|
18800
|
+
* @description Gated on `ads.view`. On the caller's own connection. The intents (category, problem, paid-competitor alternative, brand), the match types every keyword starts on (EXACT and PHRASE), each business type with its starter negatives and whether it is paid by default, the Recommended daily budget (five whole units of the account currency, also the floor) and how many prospecting templates wait for approval (docs/1006 §93). Read from stored rows, never a network call in the request.
|
|
18801
|
+
*/
|
|
18802
|
+
get: operations["getAdsProspecting"];
|
|
18803
|
+
put?: never;
|
|
18804
|
+
/**
|
|
18805
|
+
* Start building a Prospecting campaign preview from intent groups (za-158).
|
|
18806
|
+
* @description Gated on `ads.manage`. Validates the template and its gates from stored rows, then STARTS the preview workflow and answers 202 with its `preview_id`; the account read (collision replay), the ONE batched translation and the ONE batched AI-writer request run in that workflow, never in the request. Poll `getAdsProspectingPreview`. The same input the same day is the same preview (a running or built one is not started again). The preview is one new Search campaign: a `category` group, a `problem` group, one `<Rival> alternative` group per PAID competitor (a free host is skipped, `notPaidCompetitor`; all are skipped without the competitor switch and plan, `competitorsOff`) and a `brand` group, every keyword on EXACT and PHRASE. The business type's starter negatives, plus the free-seeker class when `paid` is true; every negative passes the collision replay over the account's keywords and searches and the template's own keywords, and one that would block any of them is `dropped` with its reasons. Each group's ad names its topic and must reach GOOD (`waiting`, `adBelowGood` otherwise); the whole request passes the ad-quality gate (`status: refused`, `refused`). Refusals: `prospectingInvalid` (with the field), `killed`, `notInGoodStanding`, `needsReconnect`, `prospectingUnavailable`.
|
|
18807
|
+
*/
|
|
18808
|
+
post: operations["buildAdsProspecting"];
|
|
18809
|
+
delete?: never;
|
|
18810
|
+
options?: never;
|
|
18811
|
+
head?: never;
|
|
18812
|
+
patch?: never;
|
|
18813
|
+
trace?: never;
|
|
18814
|
+
};
|
|
18815
|
+
"/v1/ads/connections/{connection_id}/prospecting/{preview_id}": {
|
|
18816
|
+
parameters: {
|
|
18817
|
+
query?: never;
|
|
18818
|
+
header?: never;
|
|
18819
|
+
path: {
|
|
18820
|
+
connection_id: string;
|
|
18821
|
+
preview_id: string;
|
|
18822
|
+
};
|
|
18823
|
+
cookie?: never;
|
|
18824
|
+
};
|
|
18825
|
+
/**
|
|
18826
|
+
* One Prospecting preview - building, ready with the plan, failed or expired (za-158).
|
|
18827
|
+
* @description Gated on `ads.view`. On the caller's own connection. `building` while the workflow runs, `ready` with the plan, `failed` with the refusal (`error.code`, as for `buildAdsProspecting`), `expired` once the run is no longer kept or finished more than a day ago (its account read is stale: build it again).
|
|
18828
|
+
*/
|
|
18829
|
+
get: operations["getAdsProspectingPreview"];
|
|
18830
|
+
put?: never;
|
|
18831
|
+
post?: never;
|
|
18832
|
+
delete?: never;
|
|
18833
|
+
options?: never;
|
|
18834
|
+
head?: never;
|
|
18835
|
+
patch?: never;
|
|
18836
|
+
trace?: never;
|
|
18837
|
+
};
|
|
18838
|
+
"/v1/ads/connections/{connection_id}/prospecting/{preview_id}/propose": {
|
|
18839
|
+
parameters: {
|
|
18840
|
+
query?: never;
|
|
18841
|
+
header?: never;
|
|
18842
|
+
path: {
|
|
18843
|
+
connection_id: string;
|
|
18844
|
+
preview_id: string;
|
|
18845
|
+
};
|
|
18846
|
+
cookie?: never;
|
|
18847
|
+
};
|
|
18848
|
+
get?: never;
|
|
18849
|
+
put?: never;
|
|
18850
|
+
/**
|
|
18851
|
+
* Queue a ready Prospecting preview as ONE approve-first change (za-158).
|
|
18852
|
+
* @description Gated on `ads.manage`. Fast: nothing is rebuilt. The gates (kill switch, good standing, campaign changes on) and the ad-quality gate run again on the preview's stored request, then it is queued as ONE pending change (`listAdsChanges`; audit action `ads.prospecting_propose`); proposing the same preview twice is the same pending change, and once that change is approved or applied it is that change again (never a second campaign). Nothing is sent to Google here: the metered gate runs when a person approves it. Refusals: `prospectingInvalid` (field `preview_id`: not ready), `killed`, `notInGoodStanding`, `needsReconnect`, `prospectingUnavailable`.
|
|
18853
|
+
*/
|
|
18854
|
+
post: operations["proposeAdsProspecting"];
|
|
18855
|
+
delete?: never;
|
|
18856
|
+
options?: never;
|
|
18857
|
+
head?: never;
|
|
18858
|
+
patch?: never;
|
|
18859
|
+
trace?: never;
|
|
18860
|
+
};
|
|
18743
18861
|
"/v1/ads/connections/{connection_id}/quality-score": {
|
|
18744
18862
|
parameters: {
|
|
18745
18863
|
query?: never;
|
|
@@ -40416,6 +40534,52 @@ export interface paths {
|
|
|
40416
40534
|
patch?: never;
|
|
40417
40535
|
trace?: never;
|
|
40418
40536
|
};
|
|
40537
|
+
"/v1/public/ads-approvals/{token}": {
|
|
40538
|
+
parameters: {
|
|
40539
|
+
query?: never;
|
|
40540
|
+
header?: never;
|
|
40541
|
+
path: {
|
|
40542
|
+
token: string;
|
|
40543
|
+
};
|
|
40544
|
+
cookie?: never;
|
|
40545
|
+
};
|
|
40546
|
+
/**
|
|
40547
|
+
* The agency client approval portal — what waits on the client's accounts. Unauthenticated.
|
|
40548
|
+
* @description ⛔ **No authentication.** The reader is the agency's client and has no account; the token is the whole authorisation and reaches the pending changes of ONE client org (never a sibling's, the agency's own, or an applied change). Unknown, revoked and expired tokens all answer the same `404`. Throttled per client address.
|
|
40549
|
+
*/
|
|
40550
|
+
get: operations["viewAdsClientApprovalPortal"];
|
|
40551
|
+
put?: never;
|
|
40552
|
+
post?: never;
|
|
40553
|
+
delete?: never;
|
|
40554
|
+
options?: never;
|
|
40555
|
+
head?: never;
|
|
40556
|
+
patch?: never;
|
|
40557
|
+
trace?: never;
|
|
40558
|
+
};
|
|
40559
|
+
"/v1/public/ads-approvals/{token}/changes/{change_id}/{action}": {
|
|
40560
|
+
parameters: {
|
|
40561
|
+
query?: never;
|
|
40562
|
+
header?: never;
|
|
40563
|
+
path: {
|
|
40564
|
+
action: "approve" | "reject";
|
|
40565
|
+
change_id: string;
|
|
40566
|
+
token: string;
|
|
40567
|
+
};
|
|
40568
|
+
cookie?: never;
|
|
40569
|
+
};
|
|
40570
|
+
get?: never;
|
|
40571
|
+
put?: never;
|
|
40572
|
+
/**
|
|
40573
|
+
* The agency's client approves or rejects one pending change. Unauthenticated.
|
|
40574
|
+
* @description Token-authorised like the page. `name` is required (1-80 characters, plain text, else `badName`); `reason` up to 500 (else `badReason`) and required to reject (`reasonRequired`). Runs the same decision as `decideAdsChange`: `approve` starts the send (202) and the kill switch, the spend ceilings and the account's good standing can still refuse it; `reject` answers 200. A change that is not pending on the link's org answers `404`. Audit action `ads.change_<action>` on the client org with `metadata.via = client_portal`, the link, the name and the reason.
|
|
40575
|
+
*/
|
|
40576
|
+
post: operations["decideAdsChangeOnClientPortal"];
|
|
40577
|
+
delete?: never;
|
|
40578
|
+
options?: never;
|
|
40579
|
+
head?: never;
|
|
40580
|
+
patch?: never;
|
|
40581
|
+
trace?: never;
|
|
40582
|
+
};
|
|
40419
40583
|
"/v1/public/ads/call-numbers/{pool_key}": {
|
|
40420
40584
|
parameters: {
|
|
40421
40585
|
query?: {
|
|
@@ -62321,6 +62485,8 @@ export interface components {
|
|
|
62321
62485
|
decided_at: string | null;
|
|
62322
62486
|
/** @description Who approved or declined it (`autopilot` when the audit made it by itself; a person who applied the audit's one-click suggestion is named here although `proposed_by` stays `autopilot`, WALK239): who stored it (`user:<id>`, `autopilot`, `mcp:<id>`, `apikey:<id>`, …) — except a member of our staff, who reads `support` and never their id (VERIFY-ADSACTOR: an impersonated write is recorded as the staff member); a reseller's sign-in into this account (`apikey:<reseller key>` or the reseller's own `user:<id>`) reads the reseller's display name — `support` when that actor's sign-ins reach the clients of more than one parent, or its org is gone (ACTORS7, VERIFY-ACTORS7). */
|
|
62323
62487
|
decided_by: string;
|
|
62488
|
+
/** @description za-104: the reason given with the decision. An agency's client must give one to reject on the approval portal; `decided_by` then reads `client-portal:<link id>:<the name they typed>`. Empty otherwise. */
|
|
62489
|
+
decision_reason?: string;
|
|
62324
62490
|
/** @description Why the change was not sent, its CODE leading (`ceiling`, `killed`, `paused`, `disconnected`, `standing: …`, `needsReconnect`, `adBelowGood`, `xWritesOff`, za-70 `collides` — the collision simulator found what `summary.collision` names — or `collisionUnread` — the account could not be read for the replay — and za-10 `convertingSearch: …` — a negative keyword that would block a search with a conversion in the last 30 days, refused at the send even when a person approved it; SERVEWATCH `strategyStarves` — a bid-strategy switch whose ceiling or bids cannot win most of the campaign's searches against Google's own top-of-page estimates, refused whoever asked, its figures in `summary.serving_check`; UNDOSTRAT, on an APPLIED change whose Undo puts a bid strategy back: `killed` · `paused` · `standing` · `strategyStarves` followed by `: undo refused` — the restore passes the kill switch, good standing and the same simulation — and `undoReadBackDiffers: <campaigns>`, the strategy Google read back after the Undo is not `summary.bidding_before`, so the change stays applied and its Undo can be sent again); otherwise the network's own sentence. Empty when nothing went wrong. */
|
|
62325
62491
|
error: string;
|
|
62326
62492
|
/** Format: uuid */
|
|
@@ -62401,6 +62567,76 @@ export interface components {
|
|
|
62401
62567
|
message: string;
|
|
62402
62568
|
};
|
|
62403
62569
|
};
|
|
62570
|
+
/** @description za-104 (docs/1006 §112): one expiring link that lets an agency's client approve or reject the changes waiting on THEIR org's ad accounts, under the agency's brand. */
|
|
62571
|
+
AdsClientApprovalLink: {
|
|
62572
|
+
/** Format: date-time */
|
|
62573
|
+
created_at: string;
|
|
62574
|
+
created_by: string;
|
|
62575
|
+
decisions: number;
|
|
62576
|
+
/** Format: date-time */
|
|
62577
|
+
expires_at: string;
|
|
62578
|
+
/** Format: uuid */
|
|
62579
|
+
id: string;
|
|
62580
|
+
label: string;
|
|
62581
|
+
/** Format: date-time */
|
|
62582
|
+
last_used_at: string | null;
|
|
62583
|
+
live: boolean;
|
|
62584
|
+
/**
|
|
62585
|
+
* Format: uuid
|
|
62586
|
+
* @description The CLIENT org the link reaches.
|
|
62587
|
+
*/
|
|
62588
|
+
org_id: string;
|
|
62589
|
+
/** Format: date-time */
|
|
62590
|
+
revoked_at: string | null;
|
|
62591
|
+
/**
|
|
62592
|
+
* Format: uri
|
|
62593
|
+
* @description Only in the `201` that made the link — the token is never stored and cannot be shown again. On the agency's own panel address once that address is live.
|
|
62594
|
+
*/
|
|
62595
|
+
url?: string;
|
|
62596
|
+
};
|
|
62597
|
+
AdsClientPortal: {
|
|
62598
|
+
/** @description The brand the client org renders under — the agency's, when it has one. */
|
|
62599
|
+
brand: {
|
|
62600
|
+
is_white_label: boolean;
|
|
62601
|
+
logo_url: string;
|
|
62602
|
+
name: string;
|
|
62603
|
+
primary_colour: string;
|
|
62604
|
+
support_url: string;
|
|
62605
|
+
};
|
|
62606
|
+
/** @description What this link decided in the last 30 days. */
|
|
62607
|
+
decided: components["schemas"]["AdsClientPortalChange"][];
|
|
62608
|
+
/** Format: date-time */
|
|
62609
|
+
expires_at: string;
|
|
62610
|
+
pending: components["schemas"]["AdsClientPortalChange"][];
|
|
62611
|
+
};
|
|
62612
|
+
/** @description What the agency's client sees of one change — no vendor path, no actor ids. */
|
|
62613
|
+
AdsClientPortalChange: {
|
|
62614
|
+
account_name: string;
|
|
62615
|
+
action_class: string;
|
|
62616
|
+
/**
|
|
62617
|
+
* Format: int64
|
|
62618
|
+
* @description The daily budget increase asked for, minor units of `currency`.
|
|
62619
|
+
*/
|
|
62620
|
+
budget_delta_minor: number | null;
|
|
62621
|
+
/** @description ISO 4217 code of the ad account. */
|
|
62622
|
+
currency: string;
|
|
62623
|
+
/** Format: date-time */
|
|
62624
|
+
decided_at: string | null;
|
|
62625
|
+
/** @description The name the client typed; empty while pending. */
|
|
62626
|
+
decided_by_name: string;
|
|
62627
|
+
decision_reason: string;
|
|
62628
|
+
/** @description Only on a refused or failed change. */
|
|
62629
|
+
error: string;
|
|
62630
|
+
/** Format: uuid */
|
|
62631
|
+
id: string;
|
|
62632
|
+
/** Format: date-time */
|
|
62633
|
+
proposed_at: string;
|
|
62634
|
+
/** @enum {string} */
|
|
62635
|
+
status: "pending" | "approved" | "applied" | "rejected" | "refused" | "failed" | "undone";
|
|
62636
|
+
summary: {
|
|
62637
|
+
[key: string]: unknown;
|
|
62638
|
+
};
|
|
62639
|
+
};
|
|
62404
62640
|
AdsCompetitorGroup: {
|
|
62405
62641
|
/** @description The proposed group, `<Rival> alternative`. */
|
|
62406
62642
|
ad_group: string;
|
|
@@ -64236,6 +64472,100 @@ export interface components {
|
|
|
64236
64472
|
/** @description true = the provider reports its own fee (Paddle, Freemius); the estimate is not used. */
|
|
64237
64473
|
readonly reports_fee?: boolean;
|
|
64238
64474
|
};
|
|
64475
|
+
AdsProspectingInfoEnvelope: {
|
|
64476
|
+
data: {
|
|
64477
|
+
business_type: string;
|
|
64478
|
+
business_types: {
|
|
64479
|
+
paid_by_default: boolean;
|
|
64480
|
+
starter_negatives: string[];
|
|
64481
|
+
value: string;
|
|
64482
|
+
}[];
|
|
64483
|
+
currency: string;
|
|
64484
|
+
intents: ("category" | "problem" | "alternative" | "brand")[];
|
|
64485
|
+
matches: ("EXACT" | "PHRASE")[];
|
|
64486
|
+
pending: number;
|
|
64487
|
+
recommended_budget_minor: number;
|
|
64488
|
+
};
|
|
64489
|
+
};
|
|
64490
|
+
AdsProspectingPlan: {
|
|
64491
|
+
business_type: string;
|
|
64492
|
+
campaign: {
|
|
64493
|
+
country: string;
|
|
64494
|
+
currency: string;
|
|
64495
|
+
daily_budget_minor: number;
|
|
64496
|
+
final_url: string;
|
|
64497
|
+
language: string;
|
|
64498
|
+
name: string;
|
|
64499
|
+
recommended_budget_minor: number;
|
|
64500
|
+
};
|
|
64501
|
+
change_id: string | null;
|
|
64502
|
+
free_seeker: boolean;
|
|
64503
|
+
groups: {
|
|
64504
|
+
descriptions?: string[];
|
|
64505
|
+
headlines?: string[];
|
|
64506
|
+
/** @enum {string} */
|
|
64507
|
+
intent: "category" | "problem" | "alternative" | "brand";
|
|
64508
|
+
keywords: {
|
|
64509
|
+
/** @enum {string} */
|
|
64510
|
+
match: "EXACT" | "PHRASE";
|
|
64511
|
+
text: string;
|
|
64512
|
+
}[];
|
|
64513
|
+
name: string;
|
|
64514
|
+
reason: string;
|
|
64515
|
+
rival?: string;
|
|
64516
|
+
/** @enum {string} */
|
|
64517
|
+
status: "ready" | "waiting" | "skipped";
|
|
64518
|
+
}[];
|
|
64519
|
+
negatives: {
|
|
64520
|
+
/** @enum {string} */
|
|
64521
|
+
class: "starter" | "free_seeker";
|
|
64522
|
+
/** @enum {string} */
|
|
64523
|
+
match: "EXACT" | "PHRASE";
|
|
64524
|
+
reasons: string[];
|
|
64525
|
+
/** @enum {string} */
|
|
64526
|
+
status: "kept" | "dropped";
|
|
64527
|
+
text: string;
|
|
64528
|
+
}[];
|
|
64529
|
+
paid: boolean;
|
|
64530
|
+
refused: {
|
|
64531
|
+
[key: string]: unknown;
|
|
64532
|
+
} | null;
|
|
64533
|
+
/** @enum {string} */
|
|
64534
|
+
status: "preview" | "proposed" | "refused" | "nothingReady" | "rejectedBefore";
|
|
64535
|
+
};
|
|
64536
|
+
AdsProspectingPreviewEnvelope: {
|
|
64537
|
+
data: {
|
|
64538
|
+
error: {
|
|
64539
|
+
code: string;
|
|
64540
|
+
field: string;
|
|
64541
|
+
} | null;
|
|
64542
|
+
plan: components["schemas"]["AdsProspectingPlan"] | null;
|
|
64543
|
+
preview_id: string;
|
|
64544
|
+
/** @enum {string} */
|
|
64545
|
+
status: "building" | "ready" | "failed" | "expired";
|
|
64546
|
+
};
|
|
64547
|
+
};
|
|
64548
|
+
AdsProspectingRequest: {
|
|
64549
|
+
brand: string;
|
|
64550
|
+
brand_terms?: string[];
|
|
64551
|
+
/** @enum {string} */
|
|
64552
|
+
business_type?: "free_trial" | "freemium" | "lead_gen" | "ecommerce" | "local" | "b2b";
|
|
64553
|
+
category: string[];
|
|
64554
|
+
competitors?: string[];
|
|
64555
|
+
/** @description ISO 3166-1 alpha-2. */
|
|
64556
|
+
country: string;
|
|
64557
|
+
/** @description Minor units of the account currency; null = Recommended (five whole units, also the floor). */
|
|
64558
|
+
daily_budget_minor?: number | null;
|
|
64559
|
+
descriptions?: string[];
|
|
64560
|
+
/** Format: uri */
|
|
64561
|
+
final_url: string;
|
|
64562
|
+
headlines?: string[];
|
|
64563
|
+
/** @default en */
|
|
64564
|
+
language: string;
|
|
64565
|
+
/** @description null = the business type's default (freemium is not paid). */
|
|
64566
|
+
paid?: boolean | null;
|
|
64567
|
+
problems?: string[];
|
|
64568
|
+
};
|
|
64239
64569
|
AdsQsDiagnosis: {
|
|
64240
64570
|
ad_group: string;
|
|
64241
64571
|
/** @description BELOW_AVERAGE, AVERAGE, ABOVE_AVERAGE or empty. */
|
|
@@ -134863,6 +135193,91 @@ export interface operations {
|
|
|
134863
135193
|
429: components["responses"]["TooManyRequests"];
|
|
134864
135194
|
};
|
|
134865
135195
|
};
|
|
135196
|
+
listAdsClientApprovalLinks: {
|
|
135197
|
+
parameters: {
|
|
135198
|
+
query?: {
|
|
135199
|
+
org_id?: string;
|
|
135200
|
+
};
|
|
135201
|
+
header?: never;
|
|
135202
|
+
path?: never;
|
|
135203
|
+
cookie?: never;
|
|
135204
|
+
};
|
|
135205
|
+
requestBody?: never;
|
|
135206
|
+
responses: {
|
|
135207
|
+
/** @description The links. */
|
|
135208
|
+
200: {
|
|
135209
|
+
headers: {
|
|
135210
|
+
[name: string]: unknown;
|
|
135211
|
+
};
|
|
135212
|
+
content: {
|
|
135213
|
+
"application/json": {
|
|
135214
|
+
data: components["schemas"]["AdsClientApprovalLink"][];
|
|
135215
|
+
};
|
|
135216
|
+
};
|
|
135217
|
+
};
|
|
135218
|
+
401: components["responses"]["Unauthorized"];
|
|
135219
|
+
429: components["responses"]["TooManyRequests"];
|
|
135220
|
+
};
|
|
135221
|
+
};
|
|
135222
|
+
createAdsClientApprovalLink: {
|
|
135223
|
+
parameters: {
|
|
135224
|
+
query?: never;
|
|
135225
|
+
header?: never;
|
|
135226
|
+
path?: never;
|
|
135227
|
+
cookie?: never;
|
|
135228
|
+
};
|
|
135229
|
+
requestBody: {
|
|
135230
|
+
content: {
|
|
135231
|
+
"application/json": {
|
|
135232
|
+
/** @default 14 */
|
|
135233
|
+
days?: number;
|
|
135234
|
+
label?: string;
|
|
135235
|
+
/** Format: uuid */
|
|
135236
|
+
org_id: string;
|
|
135237
|
+
};
|
|
135238
|
+
};
|
|
135239
|
+
};
|
|
135240
|
+
responses: {
|
|
135241
|
+
/** @description Made; copy `url` now. */
|
|
135242
|
+
201: {
|
|
135243
|
+
headers: {
|
|
135244
|
+
[name: string]: unknown;
|
|
135245
|
+
};
|
|
135246
|
+
content: {
|
|
135247
|
+
"application/json": components["schemas"]["AdsClientApprovalLink"];
|
|
135248
|
+
};
|
|
135249
|
+
};
|
|
135250
|
+
401: components["responses"]["Unauthorized"];
|
|
135251
|
+
404: components["responses"]["NotFound"];
|
|
135252
|
+
422: components["responses"]["UnprocessableEntity"];
|
|
135253
|
+
429: components["responses"]["TooManyRequests"];
|
|
135254
|
+
};
|
|
135255
|
+
};
|
|
135256
|
+
revokeAdsClientApprovalLink: {
|
|
135257
|
+
parameters: {
|
|
135258
|
+
query?: never;
|
|
135259
|
+
header?: never;
|
|
135260
|
+
path: {
|
|
135261
|
+
link_id: string;
|
|
135262
|
+
};
|
|
135263
|
+
cookie?: never;
|
|
135264
|
+
};
|
|
135265
|
+
requestBody?: never;
|
|
135266
|
+
responses: {
|
|
135267
|
+
/** @description Revoked. */
|
|
135268
|
+
200: {
|
|
135269
|
+
headers: {
|
|
135270
|
+
[name: string]: unknown;
|
|
135271
|
+
};
|
|
135272
|
+
content: {
|
|
135273
|
+
"application/json": components["schemas"]["AdsClientApprovalLink"];
|
|
135274
|
+
};
|
|
135275
|
+
};
|
|
135276
|
+
401: components["responses"]["Unauthorized"];
|
|
135277
|
+
404: components["responses"]["NotFound"];
|
|
135278
|
+
429: components["responses"]["TooManyRequests"];
|
|
135279
|
+
};
|
|
135280
|
+
};
|
|
134866
135281
|
startAdsConnectAmazon: {
|
|
134867
135282
|
parameters: {
|
|
134868
135283
|
query?: never;
|
|
@@ -139843,6 +140258,119 @@ export interface operations {
|
|
|
139843
140258
|
429: components["responses"]["TooManyRequests"];
|
|
139844
140259
|
};
|
|
139845
140260
|
};
|
|
140261
|
+
getAdsProspecting: {
|
|
140262
|
+
parameters: {
|
|
140263
|
+
query?: never;
|
|
140264
|
+
header?: never;
|
|
140265
|
+
path: {
|
|
140266
|
+
connection_id: string;
|
|
140267
|
+
};
|
|
140268
|
+
cookie?: never;
|
|
140269
|
+
};
|
|
140270
|
+
requestBody?: never;
|
|
140271
|
+
responses: {
|
|
140272
|
+
/** @description The template's choices. */
|
|
140273
|
+
200: {
|
|
140274
|
+
headers: {
|
|
140275
|
+
[name: string]: unknown;
|
|
140276
|
+
};
|
|
140277
|
+
content: {
|
|
140278
|
+
"application/json": components["schemas"]["AdsProspectingInfoEnvelope"];
|
|
140279
|
+
};
|
|
140280
|
+
};
|
|
140281
|
+
401: components["responses"]["Unauthorized"];
|
|
140282
|
+
403: components["responses"]["Forbidden"];
|
|
140283
|
+
404: components["responses"]["NotFound"];
|
|
140284
|
+
429: components["responses"]["TooManyRequests"];
|
|
140285
|
+
};
|
|
140286
|
+
};
|
|
140287
|
+
buildAdsProspecting: {
|
|
140288
|
+
parameters: {
|
|
140289
|
+
query?: never;
|
|
140290
|
+
header?: never;
|
|
140291
|
+
path: {
|
|
140292
|
+
connection_id: string;
|
|
140293
|
+
};
|
|
140294
|
+
cookie?: never;
|
|
140295
|
+
};
|
|
140296
|
+
requestBody: {
|
|
140297
|
+
content: {
|
|
140298
|
+
"application/json": components["schemas"]["AdsProspectingRequest"];
|
|
140299
|
+
};
|
|
140300
|
+
};
|
|
140301
|
+
responses: {
|
|
140302
|
+
/** @description The preview is being built; poll it by `preview_id`. */
|
|
140303
|
+
202: {
|
|
140304
|
+
headers: {
|
|
140305
|
+
[name: string]: unknown;
|
|
140306
|
+
};
|
|
140307
|
+
content: {
|
|
140308
|
+
"application/json": components["schemas"]["AdsProspectingPreviewEnvelope"];
|
|
140309
|
+
};
|
|
140310
|
+
};
|
|
140311
|
+
401: components["responses"]["Unauthorized"];
|
|
140312
|
+
403: components["responses"]["Forbidden"];
|
|
140313
|
+
404: components["responses"]["NotFound"];
|
|
140314
|
+
422: components["responses"]["UnprocessableEntity"];
|
|
140315
|
+
429: components["responses"]["TooManyRequests"];
|
|
140316
|
+
};
|
|
140317
|
+
};
|
|
140318
|
+
getAdsProspectingPreview: {
|
|
140319
|
+
parameters: {
|
|
140320
|
+
query?: never;
|
|
140321
|
+
header?: never;
|
|
140322
|
+
path: {
|
|
140323
|
+
connection_id: string;
|
|
140324
|
+
preview_id: string;
|
|
140325
|
+
};
|
|
140326
|
+
cookie?: never;
|
|
140327
|
+
};
|
|
140328
|
+
requestBody?: never;
|
|
140329
|
+
responses: {
|
|
140330
|
+
/** @description The preview. */
|
|
140331
|
+
200: {
|
|
140332
|
+
headers: {
|
|
140333
|
+
[name: string]: unknown;
|
|
140334
|
+
};
|
|
140335
|
+
content: {
|
|
140336
|
+
"application/json": components["schemas"]["AdsProspectingPreviewEnvelope"];
|
|
140337
|
+
};
|
|
140338
|
+
};
|
|
140339
|
+
401: components["responses"]["Unauthorized"];
|
|
140340
|
+
403: components["responses"]["Forbidden"];
|
|
140341
|
+
404: components["responses"]["NotFound"];
|
|
140342
|
+
422: components["responses"]["UnprocessableEntity"];
|
|
140343
|
+
429: components["responses"]["TooManyRequests"];
|
|
140344
|
+
};
|
|
140345
|
+
};
|
|
140346
|
+
proposeAdsProspecting: {
|
|
140347
|
+
parameters: {
|
|
140348
|
+
query?: never;
|
|
140349
|
+
header?: never;
|
|
140350
|
+
path: {
|
|
140351
|
+
connection_id: string;
|
|
140352
|
+
preview_id: string;
|
|
140353
|
+
};
|
|
140354
|
+
cookie?: never;
|
|
140355
|
+
};
|
|
140356
|
+
requestBody?: never;
|
|
140357
|
+
responses: {
|
|
140358
|
+
/** @description The plan with `status` `proposed` and its `change_id`, or `refused`. */
|
|
140359
|
+
200: {
|
|
140360
|
+
headers: {
|
|
140361
|
+
[name: string]: unknown;
|
|
140362
|
+
};
|
|
140363
|
+
content: {
|
|
140364
|
+
"application/json": components["schemas"]["AdsProspectingPreviewEnvelope"];
|
|
140365
|
+
};
|
|
140366
|
+
};
|
|
140367
|
+
401: components["responses"]["Unauthorized"];
|
|
140368
|
+
403: components["responses"]["Forbidden"];
|
|
140369
|
+
404: components["responses"]["NotFound"];
|
|
140370
|
+
422: components["responses"]["UnprocessableEntity"];
|
|
140371
|
+
429: components["responses"]["TooManyRequests"];
|
|
140372
|
+
};
|
|
140373
|
+
};
|
|
139846
140374
|
getAdsQualityScore: {
|
|
139847
140375
|
parameters: {
|
|
139848
140376
|
query?: never;
|
|
@@ -175859,6 +176387,73 @@ export interface operations {
|
|
|
175859
176387
|
409: components["responses"]["Conflict"];
|
|
175860
176388
|
};
|
|
175861
176389
|
};
|
|
176390
|
+
viewAdsClientApprovalPortal: {
|
|
176391
|
+
parameters: {
|
|
176392
|
+
query?: never;
|
|
176393
|
+
header?: never;
|
|
176394
|
+
path: {
|
|
176395
|
+
token: string;
|
|
176396
|
+
};
|
|
176397
|
+
cookie?: never;
|
|
176398
|
+
};
|
|
176399
|
+
requestBody?: never;
|
|
176400
|
+
responses: {
|
|
176401
|
+
/** @description The brand, the pending changes and what this link decided. */
|
|
176402
|
+
200: {
|
|
176403
|
+
headers: {
|
|
176404
|
+
[name: string]: unknown;
|
|
176405
|
+
};
|
|
176406
|
+
content: {
|
|
176407
|
+
"application/json": components["schemas"]["AdsClientPortal"];
|
|
176408
|
+
};
|
|
176409
|
+
};
|
|
176410
|
+
404: components["responses"]["NotFound"];
|
|
176411
|
+
429: components["responses"]["TooManyRequests"];
|
|
176412
|
+
};
|
|
176413
|
+
};
|
|
176414
|
+
decideAdsChangeOnClientPortal: {
|
|
176415
|
+
parameters: {
|
|
176416
|
+
query?: never;
|
|
176417
|
+
header?: never;
|
|
176418
|
+
path: {
|
|
176419
|
+
action: "approve" | "reject";
|
|
176420
|
+
change_id: string;
|
|
176421
|
+
token: string;
|
|
176422
|
+
};
|
|
176423
|
+
cookie?: never;
|
|
176424
|
+
};
|
|
176425
|
+
requestBody: {
|
|
176426
|
+
content: {
|
|
176427
|
+
"application/json": {
|
|
176428
|
+
name: string;
|
|
176429
|
+
reason?: string;
|
|
176430
|
+
};
|
|
176431
|
+
};
|
|
176432
|
+
};
|
|
176433
|
+
responses: {
|
|
176434
|
+
/** @description Rejected. */
|
|
176435
|
+
200: {
|
|
176436
|
+
headers: {
|
|
176437
|
+
[name: string]: unknown;
|
|
176438
|
+
};
|
|
176439
|
+
content: {
|
|
176440
|
+
"application/json": components["schemas"]["AdsClientPortalChange"];
|
|
176441
|
+
};
|
|
176442
|
+
};
|
|
176443
|
+
/** @description Approved; the send started. */
|
|
176444
|
+
202: {
|
|
176445
|
+
headers: {
|
|
176446
|
+
[name: string]: unknown;
|
|
176447
|
+
};
|
|
176448
|
+
content: {
|
|
176449
|
+
"application/json": components["schemas"]["AdsClientPortalChange"];
|
|
176450
|
+
};
|
|
176451
|
+
};
|
|
176452
|
+
404: components["responses"]["NotFound"];
|
|
176453
|
+
422: components["responses"]["UnprocessableEntity"];
|
|
176454
|
+
429: components["responses"]["TooManyRequests"];
|
|
176455
|
+
};
|
|
176456
|
+
};
|
|
175862
176457
|
getAdsCallPoolNumber: {
|
|
175863
176458
|
parameters: {
|
|
175864
176459
|
query?: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zinn-digital/sdk",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1399",
|
|
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>",
|