@zinn-digital/sdk 0.1.1828 → 0.1.1832

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.
@@ -18400,6 +18400,122 @@ export interface paths {
18400
18400
  patch?: never;
18401
18401
  trace?: never;
18402
18402
  };
18403
+ "/v1/ads/connections/{connection_id}/amazon/campaigns": {
18404
+ parameters: {
18405
+ query?: never;
18406
+ header?: never;
18407
+ path: {
18408
+ connection_id: string;
18409
+ };
18410
+ cookie?: never;
18411
+ };
18412
+ /**
18413
+ * An Amazon Ads profile's Sponsored Products campaigns with their daily budgets (AMZBIDS).
18414
+ * @description Gated on `ads.view`. Read from Amazon now (`POST /sp/campaigns/list`, every page): each enabled or paused Sponsored Products campaign with its state and its daily budget (micros of the profile currency; `null` when the campaign's budget is not a daily one). `step_pct` is the most one change may move a budget or a bid. Refusals (`422`): `amazonOnly`, `amazonReadFailed` (carries `error.failure`, §2.57: `provider_outage` with Amazon Ads' status board, `our_fault` for our own 4xx), `needsReconnect`.
18415
+ */
18416
+ get: operations["listAdsAmazonCampaigns"];
18417
+ put?: never;
18418
+ post?: never;
18419
+ delete?: never;
18420
+ options?: never;
18421
+ head?: never;
18422
+ patch?: never;
18423
+ trace?: never;
18424
+ };
18425
+ "/v1/ads/connections/{connection_id}/amazon/campaigns/{campaign_id}/ad-groups": {
18426
+ parameters: {
18427
+ query?: never;
18428
+ header?: never;
18429
+ path: {
18430
+ campaign_id: string;
18431
+ connection_id: string;
18432
+ };
18433
+ cookie?: never;
18434
+ };
18435
+ /**
18436
+ * One Amazon Ads campaign's ad groups with their default bids and keyword bids (AMZBIDS).
18437
+ * @description Gated on `ads.view`. Read from Amazon now (`/sp/adGroups/list` and `/sp/keywords/list`, every page): each enabled or paused ad group with its default bid, and each keyword in it with its own bid (`null`: the keyword bids its ad group's default). Refusals (`422`): `amazonOnly`, `amazonNoSuchCampaign`, `amazonReadFailed`, `needsReconnect`.
18438
+ */
18439
+ get: operations["listAdsAmazonAdGroups"];
18440
+ put?: never;
18441
+ post?: never;
18442
+ delete?: never;
18443
+ options?: never;
18444
+ head?: never;
18445
+ patch?: never;
18446
+ trace?: never;
18447
+ };
18448
+ "/v1/ads/connections/{connection_id}/amazon/campaigns/{campaign_id}/ad-groups/{ad_group_id}/bid": {
18449
+ parameters: {
18450
+ query?: never;
18451
+ header?: never;
18452
+ path: {
18453
+ ad_group_id: string;
18454
+ campaign_id: string;
18455
+ connection_id: string;
18456
+ };
18457
+ cookie?: never;
18458
+ };
18459
+ get?: never;
18460
+ put?: never;
18461
+ /**
18462
+ * Change an Amazon Ads ad group's default bid — the click is the approval (AMZBIDS).
18463
+ * @description Gated on `ads.manage`; audit action `ads.amazon_bid_set`. Read from Amazon first, proposed as a `bids` change and approved in one step, sent once through the gate with a 30-day Undo that puts the default bid Amazon held back. Refusals (`422`): `amazonOnly`, `amazonBadBid`, `amazonNoSuchCampaign`, `amazonNoSuchAdGroup`, `amazonBidUnchanged`, `amazonStepTooBig`, `amazonBidOverBudget` (a bid above the campaign's daily budget), `amazonWritesOff`, `notInGoodStanding`, `amazonReadFailed`, `needsReconnect`.
18464
+ */
18465
+ post: operations["setAdsAmazonAdGroupBid"];
18466
+ delete?: never;
18467
+ options?: never;
18468
+ head?: never;
18469
+ patch?: never;
18470
+ trace?: never;
18471
+ };
18472
+ "/v1/ads/connections/{connection_id}/amazon/campaigns/{campaign_id}/budget": {
18473
+ parameters: {
18474
+ query?: never;
18475
+ header?: never;
18476
+ path: {
18477
+ campaign_id: string;
18478
+ connection_id: string;
18479
+ };
18480
+ cookie?: never;
18481
+ };
18482
+ get?: never;
18483
+ put?: never;
18484
+ /**
18485
+ * Change an Amazon Ads campaign's daily budget — the click is the approval (AMZBIDS).
18486
+ * @description Gated on `ads.manage`; audit action `ads.amazon_budget_set`. The campaign is read from Amazon first; the change is proposed as a `budgets` change and approved in one step, then sent ONCE by the apply workflow through the same gate as every write (kill switches, good standing, the connection's spend ceilings weighed against the profile's enabled daily budgets — a raise past a ceiling is refused, a cut never is; `ZINN_ADS_AMAZON_WRITES=off` and any house connection refuse `amazonWritesOff`). An unconfirmed send is never re-sent. The 30-day Undo puts the daily budget Amazon held back. Refusals (`422`): `amazonOnly`, `amazonBadBudget` (zero, past the cap, or finer than the currency's smallest unit), `amazonNoSuchCampaign`, `amazonNoDailyBudget`, `amazonBudgetUnchanged`, `amazonStepTooBig` (more than `step_pct` of the current budget either way), `amazonWritesOff`, `notInGoodStanding`, `amazonReadFailed`, `needsReconnect`.
18487
+ */
18488
+ post: operations["setAdsAmazonCampaignBudget"];
18489
+ delete?: never;
18490
+ options?: never;
18491
+ head?: never;
18492
+ patch?: never;
18493
+ trace?: never;
18494
+ };
18495
+ "/v1/ads/connections/{connection_id}/amazon/campaigns/{campaign_id}/keywords/{keyword_id}/bid": {
18496
+ parameters: {
18497
+ query?: never;
18498
+ header?: never;
18499
+ path: {
18500
+ campaign_id: string;
18501
+ connection_id: string;
18502
+ keyword_id: string;
18503
+ };
18504
+ cookie?: never;
18505
+ };
18506
+ get?: never;
18507
+ put?: never;
18508
+ /**
18509
+ * Change an Amazon Ads keyword's bid — the click is the approval (AMZBIDS).
18510
+ * @description Gated on `ads.manage`; audit action `ads.amazon_bid_set`. As `setAdsAmazonAdGroupBid`, for one keyword that has its own bid; a keyword bidding its ad group's default is refused `amazonKeywordNoBid` (the Undo could not take a set bid away again). Also `amazonNoSuchKeyword`.
18511
+ */
18512
+ post: operations["setAdsAmazonKeywordBid"];
18513
+ delete?: never;
18514
+ options?: never;
18515
+ head?: never;
18516
+ patch?: never;
18517
+ trace?: never;
18518
+ };
18403
18519
  "/v1/ads/connections/{connection_id}/audiences": {
18404
18520
  parameters: {
18405
18521
  query?: never;
@@ -68334,6 +68450,40 @@ export interface components {
68334
68450
  connection_id: string;
68335
68451
  data: components["schemas"]["AdsAllowedTerm"][];
68336
68452
  };
68453
+ /** @description One Amazon Ads ad group, its default bid and its keywords (AMZBIDS). */
68454
+ AdsAmazonAdGroup: {
68455
+ /** Format: int64 */
68456
+ default_bid_micros: number;
68457
+ id: string;
68458
+ keywords: components["schemas"]["AdsAmazonKeyword"][];
68459
+ name: string;
68460
+ state: string;
68461
+ };
68462
+ AdsAmazonBidRequest: {
68463
+ /**
68464
+ * Format: int64
68465
+ * @description The new bid in micros of the profile currency (1 unit = 1,000,000).
68466
+ */
68467
+ bid_micros: number;
68468
+ };
68469
+ /** @description One Amazon Ads Sponsored Products campaign and its daily budget (AMZBIDS). Money is micros of the profile currency (§2.8). */
68470
+ AdsAmazonCampaign: {
68471
+ /** Format: int64 */
68472
+ daily_budget_micros: number | null;
68473
+ id: string;
68474
+ name: string;
68475
+ /** @description Amazon's state (ENABLED, PAUSED). */
68476
+ state: string;
68477
+ };
68478
+ /** @description One Amazon Ads keyword and its bid (AMZBIDS); `bid_micros` null = the ad group's default bid. */
68479
+ AdsAmazonKeyword: {
68480
+ /** Format: int64 */
68481
+ bid_micros: number | null;
68482
+ id: string;
68483
+ match_type: string;
68484
+ state: string;
68485
+ text: string;
68486
+ };
68337
68487
  AdsAnalyticsAnomaly: {
68338
68488
  change_pct: number;
68339
68489
  /** Format: date */
@@ -80432,6 +80582,8 @@ export interface components {
80432
80582
  * Which addons a cart may buy is validated against **its own plan line**, not against anything the client says: eligibility is a fact about the basket (`Extra.product_lines`), so a PBN-only service cannot be bought on a mainstream basket by asking nicely.
80433
80583
  */
80434
80584
  extra_code?: string;
80585
+ /** @description LOCALPRES1114 (docs/1343). Only on a `local_presence_addon` line bought on its own: the HELD order line (same org, same `domain_name`) the registry refused for a non-local owner. Paying the add-on releases that line and retries it at once. */
80586
+ held_line_id?: string | null;
80435
80587
  /**
80436
80588
  * @description How often a plan-backed line recurs. Defaults to `monthly`.
80437
80589
  *
@@ -98628,11 +98780,21 @@ export interface components {
98628
98780
  availability_token?: string;
98629
98781
  fqdn: string;
98630
98782
  /**
98631
- * @description What the line buys. Absent means a registration.
98783
+ * Format: uuid
98784
+ * @description With `kind: local_presence_addon` only: the `line_id` of this customer's held order line.
98785
+ */
98786
+ held_line_id?: string;
98787
+ /**
98788
+ * @description What the line buys. Absent means a registration. `local_presence_addon` buys the registry's local presence (trustee) service for a name already ordered and HELD because the registry wants an owner in its own country (`lines[].waiting_for_local_presence` on `getPartnerDomainOrder`): name that line in `held_line_id`. Its years are the held line's; paying for it releases the held registration.
98632
98789
  * @default domain_register
98633
98790
  * @enum {string}
98634
98791
  */
98635
- kind: "domain_register" | "domain_transfer";
98792
+ kind: "domain_register" | "domain_transfer" | "local_presence_addon";
98793
+ /**
98794
+ * @description On a registration or transfer: also buy the registry's local presence (trustee) service for this domain, for the same years, so a customer outside the registry's country can own it (`getTldRequirements` -> `local_presence_addon` gives the price, and whether it is for companies only). Refused (`422`) when the customer's owner already qualifies or no service is sold. Promo codes never apply to it.
98795
+ * @default false
98796
+ */
98797
+ local_presence: boolean;
98636
98798
  /**
98637
98799
  * @description Years to register. A transfer must be `1`.
98638
98800
  * @default 1
@@ -98930,8 +99092,15 @@ export interface components {
98930
99092
  domain?: components["schemas"]["PartnerOrderDomain"] | null;
98931
99093
  domain_name: string;
98932
99094
  /** @enum {string} */
98933
- kind: "domain_register" | "domain_transfer";
99095
+ kind: "domain_register" | "domain_transfer" | "local_presence_addon";
99096
+ /**
99097
+ * Format: uuid
99098
+ * @description The order line's id; a `local_presence_addon` item names it as `held_line_id`.
99099
+ */
99100
+ line_id: string;
98934
99101
  period_years: number;
99102
+ /** @description `true` when the registry refused the owner as not local and the line is held: place a domain order with a `local_presence_addon` item naming this `line_id` to release it. */
99103
+ waiting_for_local_presence: boolean;
98935
99104
  };
98936
99105
  PartnerOwnPluginBuilds: {
98937
99106
  builds: {
@@ -103173,6 +103342,8 @@ export interface components {
103173
103342
  idn_supported: boolean;
103174
103343
  /** @description Priced live per name by the registry, so the table price is indicative. */
103175
103344
  is_premium: boolean;
103345
+ /** @description A paid registry trustee (local-presence service) is sold for this extension: the registrar offers one AND a priced row exists. `false` means no trustee may be claimed on a page about it; `requires_local_presence` alone does not mean one can be bought. */
103346
+ local_presence_available: boolean;
103176
103347
  max_years: number;
103177
103348
  min_years: number;
103178
103349
  /** @description Ranking key — higher is more popular, 0 is unranked. Never a claim. */
@@ -105657,7 +105828,7 @@ export interface components {
105657
105828
  * behind both doors, so it is not a second purchase path — only a second door.
105658
105829
  * @enum {string}
105659
105830
  */
105660
- SellableLineKind: "domain_register" | "domain_transfer" | "domain_renew" | "domain_restore" | "hosting_plan" | "privacy_addon" | "marketplace_package" | "aged_domain" | "compute_server" | "managed_database" | "boards_plan" | "extra";
105831
+ SellableLineKind: "domain_register" | "domain_transfer" | "domain_renew" | "domain_restore" | "hosting_plan" | "privacy_addon" | "marketplace_package" | "aged_domain" | "compute_server" | "managed_database" | "boards_plan" | "extra" | "local_presence_addon";
105661
105832
  SellableListingType: {
105662
105833
  archetype: string;
105663
105834
  /** @description How many fields this kind of Zinn® will ask for. Derived from the schema on read rather than stored, so it cannot drift from the form the seller then sees. */
@@ -117953,6 +118124,12 @@ export interface components {
117953
118124
  /** @description Basis points on registrar wholesale, or `null` to delete the rule. Required and nullable rather than optional: "absent" and "null" meaning different things on a form where the user cleared a box is how a reset button silently does nothing. */
117954
118125
  margin_bps: number | null;
117955
118126
  };
118127
+ TldLocalPresenceAddon: {
118128
+ /** @description The registry's trustee serves only a company owner, never a person. */
118129
+ company_only: boolean;
118130
+ /** @description The add-on's price for one year, tax excluded, in the requested currency. */
118131
+ per_year: components["schemas"]["MoneyAmount"];
118132
+ };
117956
118133
  /** @description Flat registrar pricing for one TLD in the caller's display currency. Integer minor units + ISO-4217 code (CLAUDE.md §2.8 — money is never a float). All four money fields share one currency by construction. */
117957
118134
  TldPrice: {
117958
118135
  currency: components["schemas"]["CurrencyCode"];
@@ -118010,12 +118187,16 @@ export interface components {
118010
118187
  full_name_required: boolean;
118011
118188
  /** @description False when the registry's requirements could not be read — checkout then refuses the extension rather than selling it on a guess. */
118012
118189
  known: boolean;
118190
+ /** @description LOCALPRES1114 (docs/1343). The paid local-presence (trustee) add-on, when the registrar sells one for this extension and a priced row exists: buy it as a cart line of kind `local_presence_addon` beside the domain (same term) when checkout refuses the owner with `country_not_eligible`. Priced per year; never discounted by a promo code. Null when no trustee is sold. */
118191
+ local_presence_addon?: components["schemas"]["TldLocalPresenceAddon"] | null;
118013
118192
  /** @description A free local-presence service is used for a registrant outside `countries`. */
118014
118193
  local_presence_service: boolean;
118015
118194
  /** @description Why an extension cannot be ordered online (`documents_required`, `registry_token_required`, `professional_licence_required`, `registry_closed_to_new_registrations`, `local_presence_required`, …), or empty. */
118016
118195
  manual_reason: string;
118017
118196
  /** @description False for an extension sold only by hand. */
118018
118197
  orderable: boolean;
118198
+ /** @description Countries the registry demands the OWNER have an address in (ISO 3166-1 alpha-2), enforced on a register and on a transfer that replaces the holder; empty when there is no such demand. */
118199
+ owner_local?: string[];
118019
118200
  /** @description When that documentation was last updated. */
118020
118201
  source_updated: string;
118021
118202
  /** @description The registrar's documentation the rule was read from. */
@@ -151756,6 +151937,178 @@ export interface operations {
151756
151937
  429: components["responses"]["TooManyRequests"];
151757
151938
  };
151758
151939
  };
151940
+ listAdsAmazonCampaigns: {
151941
+ parameters: {
151942
+ query?: never;
151943
+ header?: never;
151944
+ path: {
151945
+ connection_id: string;
151946
+ };
151947
+ cookie?: never;
151948
+ };
151949
+ requestBody?: never;
151950
+ responses: {
151951
+ /** @description The profile's campaigns. */
151952
+ 200: {
151953
+ headers: {
151954
+ [name: string]: unknown;
151955
+ };
151956
+ content: {
151957
+ "application/json": {
151958
+ campaigns: components["schemas"]["AdsAmazonCampaign"][];
151959
+ /** Format: uuid */
151960
+ connection_id: string;
151961
+ /** @description ISO 4217 code of the profile. */
151962
+ currency: string;
151963
+ step_pct: number;
151964
+ };
151965
+ };
151966
+ };
151967
+ 401: components["responses"]["Unauthorized"];
151968
+ 403: components["responses"]["Forbidden"];
151969
+ 404: components["responses"]["NotFound"];
151970
+ 422: components["responses"]["UnprocessableEntity"];
151971
+ 429: components["responses"]["TooManyRequests"];
151972
+ };
151973
+ };
151974
+ listAdsAmazonAdGroups: {
151975
+ parameters: {
151976
+ query?: never;
151977
+ header?: never;
151978
+ path: {
151979
+ campaign_id: string;
151980
+ connection_id: string;
151981
+ };
151982
+ cookie?: never;
151983
+ };
151984
+ requestBody?: never;
151985
+ responses: {
151986
+ /** @description The campaign's ad groups. */
151987
+ 200: {
151988
+ headers: {
151989
+ [name: string]: unknown;
151990
+ };
151991
+ content: {
151992
+ "application/json": {
151993
+ ad_groups: components["schemas"]["AdsAmazonAdGroup"][];
151994
+ campaign_id: string;
151995
+ /** Format: uuid */
151996
+ connection_id: string;
151997
+ step_pct: number;
151998
+ };
151999
+ };
152000
+ };
152001
+ 401: components["responses"]["Unauthorized"];
152002
+ 403: components["responses"]["Forbidden"];
152003
+ 404: components["responses"]["NotFound"];
152004
+ 422: components["responses"]["UnprocessableEntity"];
152005
+ 429: components["responses"]["TooManyRequests"];
152006
+ };
152007
+ };
152008
+ setAdsAmazonAdGroupBid: {
152009
+ parameters: {
152010
+ query?: never;
152011
+ header?: never;
152012
+ path: {
152013
+ ad_group_id: string;
152014
+ campaign_id: string;
152015
+ connection_id: string;
152016
+ };
152017
+ cookie?: never;
152018
+ };
152019
+ requestBody: {
152020
+ content: {
152021
+ "application/json": components["schemas"]["AdsAmazonBidRequest"];
152022
+ };
152023
+ };
152024
+ responses: {
152025
+ /** @description Approved; the apply workflow sends it. */
152026
+ 202: {
152027
+ headers: {
152028
+ [name: string]: unknown;
152029
+ };
152030
+ content: {
152031
+ "application/json": components["schemas"]["AdsChange"];
152032
+ };
152033
+ };
152034
+ 401: components["responses"]["Unauthorized"];
152035
+ 403: components["responses"]["Forbidden"];
152036
+ 404: components["responses"]["NotFound"];
152037
+ 422: components["responses"]["UnprocessableEntity"];
152038
+ 429: components["responses"]["TooManyRequests"];
152039
+ };
152040
+ };
152041
+ setAdsAmazonCampaignBudget: {
152042
+ parameters: {
152043
+ query?: never;
152044
+ header?: never;
152045
+ path: {
152046
+ campaign_id: string;
152047
+ connection_id: string;
152048
+ };
152049
+ cookie?: never;
152050
+ };
152051
+ requestBody: {
152052
+ content: {
152053
+ "application/json": {
152054
+ /**
152055
+ * Format: int64
152056
+ * @description The new daily budget in micros of the profile currency (1 unit = 1,000,000).
152057
+ */
152058
+ daily_budget_micros: number;
152059
+ };
152060
+ };
152061
+ };
152062
+ responses: {
152063
+ /** @description Approved; the apply workflow sends it. */
152064
+ 202: {
152065
+ headers: {
152066
+ [name: string]: unknown;
152067
+ };
152068
+ content: {
152069
+ "application/json": components["schemas"]["AdsChange"];
152070
+ };
152071
+ };
152072
+ 401: components["responses"]["Unauthorized"];
152073
+ 403: components["responses"]["Forbidden"];
152074
+ 404: components["responses"]["NotFound"];
152075
+ 422: components["responses"]["UnprocessableEntity"];
152076
+ 429: components["responses"]["TooManyRequests"];
152077
+ };
152078
+ };
152079
+ setAdsAmazonKeywordBid: {
152080
+ parameters: {
152081
+ query?: never;
152082
+ header?: never;
152083
+ path: {
152084
+ campaign_id: string;
152085
+ connection_id: string;
152086
+ keyword_id: string;
152087
+ };
152088
+ cookie?: never;
152089
+ };
152090
+ requestBody: {
152091
+ content: {
152092
+ "application/json": components["schemas"]["AdsAmazonBidRequest"];
152093
+ };
152094
+ };
152095
+ responses: {
152096
+ /** @description Approved; the apply workflow sends it. */
152097
+ 202: {
152098
+ headers: {
152099
+ [name: string]: unknown;
152100
+ };
152101
+ content: {
152102
+ "application/json": components["schemas"]["AdsChange"];
152103
+ };
152104
+ };
152105
+ 401: components["responses"]["Unauthorized"];
152106
+ 403: components["responses"]["Forbidden"];
152107
+ 404: components["responses"]["NotFound"];
152108
+ 422: components["responses"]["UnprocessableEntity"];
152109
+ 429: components["responses"]["TooManyRequests"];
152110
+ };
152111
+ };
151759
152112
  listAdsAudiences: {
151760
152113
  parameters: {
151761
152114
  query?: never;
@@ -198877,6 +199230,8 @@ export interface operations {
198877
199230
  getTldRequirements: {
198878
199231
  parameters: {
198879
199232
  query: {
199233
+ /** @description ISO 4217 code the `local_presence_addon.per_year` price is quoted in; USD when absent or malformed. */
199234
+ currency?: string;
198880
199235
  op?: "register" | "transfer";
198881
199236
  /** @description Comma-separated extensions without the dot (`es,it,com.au`), at most 50. */
198882
199237
  tlds: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zinn-digital/sdk",
3
- "version": "0.1.1828",
3
+ "version": "0.1.1832",
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>",