@zinn-digital/sdk 0.1.1689 → 0.1.1694

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.
@@ -16217,6 +16217,50 @@ export interface paths {
16217
16217
  patch: operations["setZinnCampaignsChannels"];
16218
16218
  trace?: never;
16219
16219
  };
16220
+ "/v1/admin/zinn-campaigns/cold/countries": {
16221
+ parameters: {
16222
+ query?: never;
16223
+ header?: never;
16224
+ path?: never;
16225
+ cookie?: never;
16226
+ };
16227
+ /**
16228
+ * The default Cold Outreach rule per country (staff).
16229
+ * @description Every platform default row (`refused`, `b2b_only` or `allowed`, with the law it rests on). `ZZ` answers for an unknown country and every country with no row. A customer's own override is theirs and is not shown here. Requires `abuse.view` or `billing.entitlement.manage`.
16230
+ */
16231
+ get: operations["listZinnCampaignsColdCountryRules"];
16232
+ put?: never;
16233
+ post?: never;
16234
+ delete?: never;
16235
+ options?: never;
16236
+ head?: never;
16237
+ patch?: never;
16238
+ trace?: never;
16239
+ };
16240
+ "/v1/admin/zinn-campaigns/cold/countries/{country}": {
16241
+ parameters: {
16242
+ query?: never;
16243
+ header?: never;
16244
+ path?: never;
16245
+ cookie?: never;
16246
+ };
16247
+ get?: never;
16248
+ /**
16249
+ * Set the default Cold Outreach rule for one country (staff).
16250
+ * @description Audited (`email_marketing.cold.country_default.set`). Requires `billing.entitlement.manage`.
16251
+ */
16252
+ put: operations["setZinnCampaignsColdCountryRule"];
16253
+ post?: never;
16254
+ /**
16255
+ * Remove a country's default row, so it answers to the ZZ row (staff).
16256
+ * @description `ZZ` cannot be removed. Audited (`email_marketing.cold.country_default.delete`). Requires `billing.entitlement.manage`.
16257
+ */
16258
+ delete: operations["deleteZinnCampaignsColdCountryRule"];
16259
+ options?: never;
16260
+ head?: never;
16261
+ patch?: never;
16262
+ trace?: never;
16263
+ };
16220
16264
  "/v1/admin/zinn-campaigns/orgs/{org_id}/deliverability": {
16221
16265
  parameters: {
16222
16266
  query?: never;
@@ -33895,6 +33939,202 @@ export interface paths {
33895
33939
  patch?: never;
33896
33940
  trace?: never;
33897
33941
  };
33942
+ "/v1/email-marketing/cold": {
33943
+ parameters: {
33944
+ query?: never;
33945
+ header?: never;
33946
+ path?: never;
33947
+ cookie?: never;
33948
+ };
33949
+ /**
33950
+ * Whether Cold Outreach is open to the organisation.
33951
+ * @description Gated on `email_marketing.view`. Cold Outreach is a separate mode from opted-in marketing (`docs/1052` §11, ADR 0043): cold mail leaves only through mailboxes the customer connects, never through our sending pools. `open` is `false` until the mode is switched on for the organisation. `cap_ceiling` is the highest daily send cap a mailbox may be set to.
33952
+ */
33953
+ get: operations["getEmailMarketingCold"];
33954
+ put?: never;
33955
+ post?: never;
33956
+ delete?: never;
33957
+ options?: never;
33958
+ head?: never;
33959
+ patch?: never;
33960
+ trace?: never;
33961
+ };
33962
+ "/v1/email-marketing/cold/countries": {
33963
+ parameters: {
33964
+ query?: never;
33965
+ header?: never;
33966
+ path?: never;
33967
+ cookie?: never;
33968
+ };
33969
+ /**
33970
+ * The Cold Outreach rule for each country, as this organisation sees it.
33971
+ * @description Gated on `email_marketing.view`. Each row has the platform default (`default_rule`, with the law it rests on in `basis`), the organisation's own override if it set one, and the rule in force. `ZZ` answers for an unknown country and every country with no row.
33972
+ */
33973
+ get: operations["listEmailMarketingColdCountries"];
33974
+ put?: never;
33975
+ post?: never;
33976
+ delete?: never;
33977
+ options?: never;
33978
+ head?: never;
33979
+ patch?: never;
33980
+ trace?: never;
33981
+ };
33982
+ "/v1/email-marketing/cold/countries/{country}": {
33983
+ parameters: {
33984
+ query?: never;
33985
+ header?: never;
33986
+ path?: never;
33987
+ cookie?: never;
33988
+ };
33989
+ get?: never;
33990
+ /**
33991
+ * Override the Cold Outreach rule for one country, after the warning.
33992
+ * @description Gated on `email_marketing.manage`. Any rule other than the default needs `acknowledged: true`: the screen shows a warning that the default reflects the country's law and the organisation is responsible for sending there. The override is audited as `email_marketing.cold.country_override` (country, rule, default, who, when). Setting the default rule again removes the override.
33993
+ */
33994
+ put: operations["setEmailMarketingColdCountry"];
33995
+ post?: never;
33996
+ delete?: never;
33997
+ options?: never;
33998
+ head?: never;
33999
+ patch?: never;
34000
+ trace?: never;
34001
+ };
34002
+ "/v1/email-marketing/cold/imports": {
34003
+ parameters: {
34004
+ query?: never;
34005
+ header?: never;
34006
+ path?: never;
34007
+ cookie?: never;
34008
+ };
34009
+ /**
34010
+ * The organisation's lead imports, newest first.
34011
+ * @description Gated on `email_marketing.view`. Follow `next_after` for older imports.
34012
+ */
34013
+ get: operations["listEmailMarketingColdImports"];
34014
+ put?: never;
34015
+ /**
34016
+ * Import business leads for Cold Outreach (checked in the background).
34017
+ * @description Gated on `email_marketing.manage`. `attested` must be `true`: the caller confirms the statement in `attestation` on `GET /v1/email-marketing/cold` (business contacts, a legitimate interest, published or provided business addresses); it is stored word for word with who confirmed it. Answers `202` at once; a durable workflow then checks every row (syntax, duplicates, the country rule from the `country` column or else the country-code domain, business addresses, the organisation's suppression list and the platform complaint list, then MX). Read `GET imports/{id}` for progress and the verdict of every refused row. At most `max_import_rows` rows per request: send a bigger file as several imports.
34018
+ */
34019
+ post: operations["createEmailMarketingColdImport"];
34020
+ delete?: never;
34021
+ options?: never;
34022
+ head?: never;
34023
+ patch?: never;
34024
+ trace?: never;
34025
+ };
34026
+ "/v1/email-marketing/cold/imports/{import_id}": {
34027
+ parameters: {
34028
+ query?: never;
34029
+ header?: never;
34030
+ path?: never;
34031
+ cookie?: never;
34032
+ };
34033
+ /**
34034
+ * One lead import, its progress and the verdict of every refused row.
34035
+ * @description Gated on `email_marketing.view`. A refused row carries one verdict: `countryRefused`, `notBusinessAddress`, `suppressed`, `invalid` or `duplicate`.
34036
+ */
34037
+ get: operations["getEmailMarketingColdImport"];
34038
+ put?: never;
34039
+ post?: never;
34040
+ delete?: never;
34041
+ options?: never;
34042
+ head?: never;
34043
+ patch?: never;
34044
+ trace?: never;
34045
+ };
34046
+ "/v1/email-marketing/cold/leads": {
34047
+ parameters: {
34048
+ query?: never;
34049
+ header?: never;
34050
+ path?: never;
34051
+ cookie?: never;
34052
+ };
34053
+ /**
34054
+ * The organisation's Cold Outreach leads, one keyset page at a time.
34055
+ * @description Gated on `email_marketing.view`. Every lead passed the import checks (`docs/1052` §11.4): a valid address whose domain receives mail, a country whose rule allows it, a business address where the rule is business-only, and not on the organisation's suppression list. Follow `next_after` to read every lead; `limit` is a page size, never a cap.
34056
+ */
34057
+ get: operations["listEmailMarketingColdLeads"];
34058
+ put?: never;
34059
+ post?: never;
34060
+ delete?: never;
34061
+ options?: never;
34062
+ head?: never;
34063
+ patch?: never;
34064
+ trace?: never;
34065
+ };
34066
+ "/v1/email-marketing/cold/mailboxes": {
34067
+ parameters: {
34068
+ query?: never;
34069
+ header?: never;
34070
+ path?: never;
34071
+ cookie?: never;
34072
+ };
34073
+ /**
34074
+ * The organisation's Cold Outreach mailboxes.
34075
+ * @description Gated on `email_marketing.view`. The password is never returned.
34076
+ */
34077
+ get: operations["listEmailMarketingColdMailboxes"];
34078
+ put?: never;
34079
+ /**
34080
+ * Connect a mailbox (SMTP to send, IMAP to read replies) for Cold Outreach.
34081
+ * @description Gated on `email_marketing.manage`. The mailbox must be the customer's own: a domain we host, a domain whose mail we receive, one of our own domains, or a domain the organisation already sends opted-in campaigns from is refused (`refusal.campaigns.cold*`), so cold mail never shares reputation with marketing or hosted mail. The password goes to the secret store and is never returned. The mailbox is checked in the background at once (`verifying`). `403` while the mode is not open to the organisation; `409` when the address is already connected.
34082
+ */
34083
+ post: operations["createEmailMarketingColdMailbox"];
34084
+ delete?: never;
34085
+ options?: never;
34086
+ head?: never;
34087
+ patch?: never;
34088
+ trace?: never;
34089
+ };
34090
+ "/v1/email-marketing/cold/mailboxes/{mailbox_id}": {
34091
+ parameters: {
34092
+ query?: never;
34093
+ header?: never;
34094
+ path?: never;
34095
+ cookie?: never;
34096
+ };
34097
+ /**
34098
+ * One Cold Outreach mailbox.
34099
+ * @description Gated on `email_marketing.view`. `404` outside the caller's organisation.
34100
+ */
34101
+ get: operations["getEmailMarketingColdMailbox"];
34102
+ put?: never;
34103
+ post?: never;
34104
+ /**
34105
+ * Remove a Cold Outreach mailbox and its stored password.
34106
+ * @description Gated on `email_marketing.manage`. `404` outside the caller's organisation.
34107
+ */
34108
+ delete: operations["deleteEmailMarketingColdMailbox"];
34109
+ options?: never;
34110
+ head?: never;
34111
+ /**
34112
+ * Change a mailbox's name, daily cap, gap between sends, or pause it.
34113
+ * @description Gated on `email_marketing.manage`. `daily_cap` is 1 to the cap ceiling; a cap above it is refused with `400`.
34114
+ */
34115
+ patch: operations["updateEmailMarketingColdMailbox"];
34116
+ trace?: never;
34117
+ };
34118
+ "/v1/email-marketing/cold/mailboxes/{mailbox_id}/verify": {
34119
+ parameters: {
34120
+ query?: never;
34121
+ header?: never;
34122
+ path?: never;
34123
+ cookie?: never;
34124
+ };
34125
+ get?: never;
34126
+ put?: never;
34127
+ /**
34128
+ * Check a mailbox again, without sending anything.
34129
+ * @description Gated on `email_marketing.manage`. Starts a durable check (the separation guards, SMTP log in, IMAP log in) and answers `202` with the mailbox in `verifying`; read it again for `verified` or `failing` with a code in `status_code`.
34130
+ */
34131
+ post: operations["verifyEmailMarketingColdMailbox"];
34132
+ delete?: never;
34133
+ options?: never;
34134
+ head?: never;
34135
+ patch?: never;
34136
+ trace?: never;
34137
+ };
33898
34138
  "/v1/email-marketing/contacts": {
33899
34139
  parameters: {
33900
34140
  query?: never;
@@ -66646,6 +66886,41 @@ export interface components {
66646
66886
  learning_held?: {
66647
66887
  [key: string]: number;
66648
66888
  };
66889
+ /** @description za-331: the placement review on a network that serves ads on placements outside its own surface — the LinkedIn Audience Network per campaign, X Audience Platform per line item, every Meta placement per ad set. A placement that spent, recorded no conversion and has had the clicks or the spend the account's maturity says should have bought one is a finding; below that it is `learning`; one whose conversions the network could not report is `unread`, never judged. Judged per (campaign, placement), summed across the campaign's groups; a group's only spending placement is left to the audience rule. ⛔ Nothing is sent: every finding is a person's call in the network's own screen. `status`: `checked`; `unavailable` with `reason` (`notRead`: no reader for this network yet; `noConversionTag` (X) / `noConversionTracking` (Meta): the network counts no conversion, so no placement can be judged) — "could not see", never a 0; `guard`: the placement guard reviews them (`reason: placement_guard`, Microsoft); `error`: the read was refused, the rest of the audit stands. Absent on a network with no placements. Zero counts are omitted. */
66890
+ placements?: {
66891
+ clicks_needed?: number;
66892
+ currency?: string;
66893
+ findings?: {
66894
+ campaign_id: string;
66895
+ clicks: number;
66896
+ /** Format: int64 */
66897
+ cost_micros: number;
66898
+ group: string;
66899
+ group_id: string;
66900
+ groups: {
66901
+ id: string;
66902
+ name: string;
66903
+ }[];
66904
+ impressions?: number;
66905
+ /** @description The network's own name for the placement (never translated). */
66906
+ label: string;
66907
+ /** @description Stable code: `linkedin_audience_network`, `x_audience_platform`, or Meta's `<publisher_platform>:<platform_position>`. */
66908
+ placement: string;
66909
+ }[];
66910
+ groups?: number;
66911
+ judged?: number;
66912
+ learning?: number;
66913
+ network: string;
66914
+ placements?: number;
66915
+ proposed: number;
66916
+ reason?: string;
66917
+ source?: string;
66918
+ /** @enum {string} */
66919
+ status: "checked" | "unavailable" | "guard" | "error";
66920
+ unread?: number;
66921
+ /** Format: int64 */
66922
+ waste_micros?: number;
66923
+ };
66649
66924
  proposed?: number;
66650
66925
  read?: {
66651
66926
  [key: string]: number;
@@ -68710,7 +68985,7 @@ export interface components {
68710
68985
  AdsInsightReading: {
68711
68986
  /** Format: date */
68712
68987
  day: string;
68713
- /** @description pacing: `spent_minor`, `forecast_minor`, `target_minor`, `target_source` (`target`/`budgets`/`ceiling`), `off_by_pct`, `deviation_pct`, `daily_rate_minor`, `needed_daily_minor`, `days_left`, `monthly_ceiling_minor`, `note` (`notBudget`), `corrections` [{campaign, campaign_id, budget_resource, from_micros, to_micros, outcome (applied/queued/recent/weekly/undone/pending/ceiling/refused:*\/failed), change_id}]; tracking: `judged`, `actions`, `broken` [{action, name, type, kind (tag/upload/ga4/call/app/other), primary, code (stopped/dropped), expected, recorded, recent_clicks, window_start, window_end, last_seen}]; missed: `days`, `count`, `total_clicks`, `total_conversions`, `total_value`, `total_budget_cost_micros`, `campaigns` [{campaign_id, campaign, impressions, clicks, conversions, share, lost_budget, lost_rank, missed_clicks_budget, missed_clicks_rank, missed_conversions_budget, missed_conversions_rank, missed_value, budget_cost_micros, budget_micros, cap_micros, fix (raiseBudget/raiseCap/improveRank), flag_id}]; ladder (BUILDL2, docs/1006 §34): `business_type`, `currency`, `at_risk` [campaign_id], `chosen`, `wait_days`, `window_start`, `window_end`, `stages` [{stage, signal (signup/activation/paid), truth (proven/silent/missing/broken), alert, recorded, per_1000_clicks, actions [{resource, name, category, recorded, broken}]}], `unassigned` [{resource, name, category}], `counts` {"1","2","3"}, `campaigns` [{campaign_id, campaign, stage, judged_on, age_days, clicks, cost_micros, signals {signup, activation, paid}, cost_per_signal_micros, paid_value, value_bidding, next {stage, reason (signalNotProven/tooEarly/notEnoughData), truth, need_days, need_signals, signal, need_clicks} | null, allowed, not_allowed, at_risk {signal, signals, deeper, deeper_recorded, days, cost_micros, truth, recommend (bidOnDeeper/recordDeeper), actions} | null}]; share (ZWASTE3, za-179, docs/1006 §36): `window_days`, `window_start`, `window_end`, `currency`, `splits` [{campaign_id, campaign, dominant, dominant_share, starved [{country, share, impressions}], impressions, lost_budget, lost_rank, fix (splitCountry)}], `new_lost` [{campaign_id, campaign, age_days, lost_budget, lost_rank, fix (raiseBudget/improveRank)}], `cheap` (ZWASTE5, za-216: Maximize clicks buying the cheapest countries; state `cheap` when no split) [{campaign_id, campaign, countries [{country, click_share, cpc_micros, cost_micros}], click_share, cost_micros, other_cpc_micros, clicks, fix (excludeOrBidOnConversions)}]. */
68988
+ /** @description pacing: `spent_minor`, `forecast_minor`, `target_minor`, `target_source` (`target`/`budgets`/`ceiling`), `off_by_pct`, `deviation_pct`, `daily_rate_minor`, `needed_daily_minor`, `days_left`, `monthly_ceiling_minor`, `note` (`notBudget`), `corrections` [{campaign, campaign_id, budget_resource, from_micros, to_micros, outcome (applied/queued/recent/weekly/undone/pending/ceiling/refused:*\/failed), change_id}]; tracking: `judged`, `actions`, `broken` [{action, name, type, kind (tag/upload/ga4/call/app/other), primary, code (stopped/dropped), expected, recorded, recent_clicks, window_start, window_end, last_seen}]; missed: `days`, `count`, `total_clicks`, `total_conversions`, `total_value`, `total_budget_cost_micros`, `campaigns` [{campaign_id, campaign, impressions, clicks, conversions, share, lost_budget, lost_rank, missed_clicks_budget, missed_clicks_rank, missed_conversions_budget, missed_conversions_rank, missed_value, budget_cost_micros, budget_micros, cap_micros, fix (raiseBudget/raiseCap/improveRank), flag_id}]; ladder (BUILDL2, docs/1006 §34): `business_type`, `currency`, `at_risk` [campaign_id], `chosen`, `wait_days`, `window_start`, `window_end`, `stages` [{stage, signal (signup/activation/paid), truth (proven/silent/missing/broken), alert, recorded, per_1000_clicks, actions [{resource, name, category, recorded, broken}]}], `unassigned` [{resource, name, category}], `counts` {"1","2","3"}, `campaigns` [{campaign_id, campaign, stage, judged_on, age_days, clicks, cost_micros, signals {signup, activation, paid}, cost_per_signal_micros, paid_value, value_bidding, next {stage, reason (signalNotProven/tooEarly/notEnoughData), truth, need_days, need_signals, signal, need_clicks} | null, allowed, not_allowed, at_risk {signal, signals, deeper, deeper_recorded, days, cost_micros, truth, recommend (bidOnDeeper/recordDeeper), actions} | null}]; share (ZWASTE3, za-179, docs/1006 §36): `window_days`, `window_start`, `window_end`, `currency`, `splits` [{campaign_id, campaign, dominant, dominant_share, starved [{country, share, impressions}], impressions, lost_budget, lost_rank, fix (splitCountry)}], `new_lost` [{campaign_id, campaign, age_days, lost_budget, lost_rank, fix (raiseBudget/improveRank)}], `cheap` (ZWASTE5, za-216: Maximize clicks buying the cheapest countries; state `cheap` when no split) [{campaign_id, campaign, countries [{country, click_share, cpc_micros, cost_micros}], click_share, cost_micros, other_cpc_micros, clicks, fix (excludeOrBidOnConversions)}]; campaign feed (za-40, za-54): `currency`, `since`, `until`, `spend_micros`, `campaigns`, and (za-331) `placements` — the placement review read with the same reading, shaped as `AdsAuditRun.summary.placements` (LinkedIn Audience Network, Meta placements; every finding a person's call, nothing sent). */
68714
68989
  figures: {
68715
68990
  [key: string]: unknown;
68716
68991
  };
@@ -84212,6 +84487,178 @@ export interface components {
84212
84487
  template?: "basic" | "raw" | "blocks";
84213
84488
  text?: string;
84214
84489
  };
84490
+ EmailMarketingColdCountry: {
84491
+ /** Format: date-time */
84492
+ acknowledged_at?: string | null;
84493
+ basis?: string;
84494
+ country: string;
84495
+ /** @enum {string} */
84496
+ default_rule: "refused" | "b2b_only" | "allowed";
84497
+ /** @enum {string|null} */
84498
+ override_rule?: "refused" | "b2b_only" | "allowed" | null;
84499
+ /** @enum {string} */
84500
+ rule: "refused" | "b2b_only" | "allowed";
84501
+ };
84502
+ EmailMarketingColdCountryList: {
84503
+ data: components["schemas"]["EmailMarketingColdCountry"][];
84504
+ };
84505
+ EmailMarketingColdCountrySet: {
84506
+ /** @description Required (true) for any rule other than the default. */
84507
+ acknowledged?: boolean;
84508
+ /** @enum {string} */
84509
+ rule: "refused" | "b2b_only" | "allowed";
84510
+ };
84511
+ EmailMarketingColdImport: {
84512
+ attested_by?: string;
84513
+ /** Format: date-time */
84514
+ created_at: string;
84515
+ /** Format: date-time */
84516
+ finished_at?: string | null;
84517
+ /** Format: uuid */
84518
+ id: string;
84519
+ refused: components["schemas"]["EmailMarketingColdImportVerdict"][];
84520
+ rows_added: number;
84521
+ rows_checked: number;
84522
+ rows_refused: number;
84523
+ rows_total: number;
84524
+ rows_updated: number;
84525
+ source_name?: string;
84526
+ /** @enum {string} */
84527
+ status: "queued" | "running" | "done" | "failed";
84528
+ /** @description One count per verdict. */
84529
+ verdict_counts: {
84530
+ [key: string]: number;
84531
+ };
84532
+ };
84533
+ EmailMarketingColdImportCreate: {
84534
+ /** @description Must be true; confirms the attestation statement shown by the overview. */
84535
+ attested: boolean;
84536
+ leads: components["schemas"]["EmailMarketingColdLeadRow"][];
84537
+ source_name?: string;
84538
+ };
84539
+ EmailMarketingColdImportPage: {
84540
+ data: components["schemas"]["EmailMarketingColdImport"][];
84541
+ /** Format: uuid */
84542
+ next_after: string | null;
84543
+ };
84544
+ EmailMarketingColdImportVerdict: {
84545
+ country: string;
84546
+ email: string;
84547
+ /** @description The row's position in the file */
84548
+ row: number;
84549
+ /** @enum {string} */
84550
+ verdict: "countryRefused" | "notBusinessAddress" | "suppressed" | "invalid" | "duplicate";
84551
+ };
84552
+ EmailMarketingColdLead: {
84553
+ attributes?: {
84554
+ [key: string]: string;
84555
+ };
84556
+ company?: string;
84557
+ /** @description ISO 3166-1 alpha-2 */
84558
+ country: string;
84559
+ /** Format: date-time */
84560
+ created_at: string;
84561
+ domain: string;
84562
+ email: string;
84563
+ first_name?: string;
84564
+ /** Format: uuid */
84565
+ id: string;
84566
+ /** Format: uuid */
84567
+ import_id?: string | null;
84568
+ last_name?: string;
84569
+ title?: string;
84570
+ };
84571
+ EmailMarketingColdLeadPage: {
84572
+ data: components["schemas"]["EmailMarketingColdLead"][];
84573
+ /** Format: uuid */
84574
+ next_after: string | null;
84575
+ };
84576
+ EmailMarketingColdLeadRow: {
84577
+ attributes?: {
84578
+ [key: string]: string;
84579
+ };
84580
+ company?: string;
84581
+ /** @description Two-letter country code; else the domain decides. */
84582
+ country?: string;
84583
+ email: string;
84584
+ first_name?: string;
84585
+ last_name?: string;
84586
+ title?: string;
84587
+ };
84588
+ EmailMarketingColdMailbox: {
84589
+ /** Format: date-time */
84590
+ created_at: string;
84591
+ daily_cap: number;
84592
+ display_name?: string;
84593
+ domain: string;
84594
+ email: string;
84595
+ /** Format: uuid */
84596
+ id: string;
84597
+ imap_host?: string;
84598
+ imap_port?: number;
84599
+ min_gap_seconds: number;
84600
+ paused: boolean;
84601
+ provider: string;
84602
+ smtp_host?: string;
84603
+ smtp_port?: number;
84604
+ smtp_tls?: string;
84605
+ /** @enum {string} */
84606
+ status: "unverified" | "verifying" | "verified" | "failing";
84607
+ /** @description Why the last check failed, as a refusal key (`refusal.campaigns.cold*` or a connection refusal) the dashboard translates, or empty. */
84608
+ status_code?: string;
84609
+ username?: string;
84610
+ /** Format: date-time */
84611
+ verified_at?: string | null;
84612
+ };
84613
+ EmailMarketingColdMailboxCreate: {
84614
+ display_name?: string;
84615
+ /** Format: email */
84616
+ email: string;
84617
+ imap_host: string;
84618
+ /**
84619
+ * @default 993
84620
+ * @enum {integer}
84621
+ */
84622
+ imap_port: 993;
84623
+ /** Format: password */
84624
+ password: string;
84625
+ /**
84626
+ * @default imap_smtp
84627
+ * @enum {string}
84628
+ */
84629
+ provider: "imap_smtp";
84630
+ smtp_host: string;
84631
+ /**
84632
+ * @default 587
84633
+ * @enum {integer}
84634
+ */
84635
+ smtp_port: 25 | 465 | 587 | 2525;
84636
+ /** @enum {string} */
84637
+ smtp_tls?: "starttls" | "implicit";
84638
+ /** @description Defaults to `email`. */
84639
+ username?: string;
84640
+ };
84641
+ EmailMarketingColdMailboxList: {
84642
+ data: components["schemas"]["EmailMarketingColdMailbox"][];
84643
+ };
84644
+ EmailMarketingColdMailboxUpdate: {
84645
+ daily_cap?: number;
84646
+ display_name?: string;
84647
+ min_gap_seconds?: number;
84648
+ paused?: boolean;
84649
+ };
84650
+ EmailMarketingColdOverview: {
84651
+ /** @description The statement an import confirms (`attested`). */
84652
+ attestation: string;
84653
+ /** @description The highest daily cap a mailbox may be set to. */
84654
+ cap_ceiling: number;
84655
+ /** @description How many mailboxes the organisation has connected. */
84656
+ mailboxes: number;
84657
+ /** @description The most leads one import request takes. */
84658
+ max_import_rows: number;
84659
+ /** @description Whether Cold Outreach may be used by the organisation. */
84660
+ open: boolean;
84661
+ };
84215
84662
  EmailMarketingContact: {
84216
84663
  attributes: {
84217
84664
  [key: string]: unknown;
@@ -117410,6 +117857,22 @@ export interface components {
117410
117857
  whatsapp_enabled: boolean;
117411
117858
  whatsapp_phone_number_id: string;
117412
117859
  };
117860
+ ZinnCampaignsColdCountryRule: {
117861
+ basis: string;
117862
+ country: string;
117863
+ /** @enum {string} */
117864
+ rule: "refused" | "b2b_only" | "allowed";
117865
+ /** Format: date-time */
117866
+ updated_at?: string | null;
117867
+ };
117868
+ ZinnCampaignsColdCountryRuleList: {
117869
+ data: components["schemas"]["ZinnCampaignsColdCountryRule"][];
117870
+ };
117871
+ ZinnCampaignsColdCountryRuleSet: {
117872
+ basis?: string;
117873
+ /** @enum {string} */
117874
+ rule: "refused" | "b2b_only" | "allowed";
117875
+ };
117413
117876
  ZinnCampaignsRegistrationAdmin: {
117414
117877
  brand_name: string;
117415
117878
  cost_usd_micros: number;
@@ -143487,6 +143950,81 @@ export interface operations {
143487
143950
  429: components["responses"]["TooManyRequests"];
143488
143951
  };
143489
143952
  };
143953
+ listZinnCampaignsColdCountryRules: {
143954
+ parameters: {
143955
+ query?: never;
143956
+ header?: never;
143957
+ path?: never;
143958
+ cookie?: never;
143959
+ };
143960
+ requestBody?: never;
143961
+ responses: {
143962
+ /** @description The default rows. */
143963
+ 200: {
143964
+ headers: {
143965
+ [name: string]: unknown;
143966
+ };
143967
+ content: {
143968
+ "application/json": components["schemas"]["ZinnCampaignsColdCountryRuleList"];
143969
+ };
143970
+ };
143971
+ 401: components["responses"]["Unauthorized"];
143972
+ 403: components["responses"]["Forbidden"];
143973
+ };
143974
+ };
143975
+ setZinnCampaignsColdCountryRule: {
143976
+ parameters: {
143977
+ query?: never;
143978
+ header?: never;
143979
+ path: {
143980
+ country: string;
143981
+ };
143982
+ cookie?: never;
143983
+ };
143984
+ requestBody: {
143985
+ content: {
143986
+ "application/json": components["schemas"]["ZinnCampaignsColdCountryRuleSet"];
143987
+ };
143988
+ };
143989
+ responses: {
143990
+ /** @description The row. */
143991
+ 200: {
143992
+ headers: {
143993
+ [name: string]: unknown;
143994
+ };
143995
+ content: {
143996
+ "application/json": components["schemas"]["ZinnCampaignsColdCountryRule"];
143997
+ };
143998
+ };
143999
+ 401: components["responses"]["Unauthorized"];
144000
+ 403: components["responses"]["Forbidden"];
144001
+ 422: components["responses"]["UnprocessableEntity"];
144002
+ };
144003
+ };
144004
+ deleteZinnCampaignsColdCountryRule: {
144005
+ parameters: {
144006
+ query?: never;
144007
+ header?: never;
144008
+ path: {
144009
+ country: string;
144010
+ };
144011
+ cookie?: never;
144012
+ };
144013
+ requestBody?: never;
144014
+ responses: {
144015
+ /** @description Removed. */
144016
+ 204: {
144017
+ headers: {
144018
+ [name: string]: unknown;
144019
+ };
144020
+ content?: never;
144021
+ };
144022
+ 401: components["responses"]["Unauthorized"];
144023
+ 403: components["responses"]["Forbidden"];
144024
+ 404: components["responses"]["NotFound"];
144025
+ 422: components["responses"]["UnprocessableEntity"];
144026
+ };
144027
+ };
143490
144028
  getZinnCampaignsOrgDeliverability: {
143491
144029
  parameters: {
143492
144030
  query?: never;
@@ -174369,6 +174907,381 @@ export interface operations {
174369
174907
  404: components["responses"]["NotFound"];
174370
174908
  };
174371
174909
  };
174910
+ getEmailMarketingCold: {
174911
+ parameters: {
174912
+ query?: {
174913
+ /** @description The organization this call acts on. Optional for a caller with exactly one direct membership; **required** for anyone with more than one — which is every reseller and every agency — because the engine refuses rather than guesses (a wrong guess here writes one tenant's gateway credentials under another tenant's Vault path). */
174914
+ org_id?: components["parameters"]["OrgIdQuery"];
174915
+ };
174916
+ header?: never;
174917
+ path?: never;
174918
+ cookie?: never;
174919
+ };
174920
+ requestBody?: never;
174921
+ responses: {
174922
+ /** @description The mode's state for the organisation. */
174923
+ 200: {
174924
+ headers: {
174925
+ [name: string]: unknown;
174926
+ };
174927
+ content: {
174928
+ "application/json": components["schemas"]["EmailMarketingColdOverview"];
174929
+ };
174930
+ };
174931
+ 401: components["responses"]["Unauthorized"];
174932
+ 403: components["responses"]["Forbidden"];
174933
+ 404: components["responses"]["NotFound"];
174934
+ };
174935
+ };
174936
+ listEmailMarketingColdCountries: {
174937
+ parameters: {
174938
+ query?: {
174939
+ /** @description The organization this call acts on. Optional for a caller with exactly one direct membership; **required** for anyone with more than one — which is every reseller and every agency — because the engine refuses rather than guesses (a wrong guess here writes one tenant's gateway credentials under another tenant's Vault path). */
174940
+ org_id?: components["parameters"]["OrgIdQuery"];
174941
+ };
174942
+ header?: never;
174943
+ path?: never;
174944
+ cookie?: never;
174945
+ };
174946
+ requestBody?: never;
174947
+ responses: {
174948
+ /** @description The country rules. */
174949
+ 200: {
174950
+ headers: {
174951
+ [name: string]: unknown;
174952
+ };
174953
+ content: {
174954
+ "application/json": components["schemas"]["EmailMarketingColdCountryList"];
174955
+ };
174956
+ };
174957
+ 401: components["responses"]["Unauthorized"];
174958
+ 403: components["responses"]["Forbidden"];
174959
+ 404: components["responses"]["NotFound"];
174960
+ };
174961
+ };
174962
+ setEmailMarketingColdCountry: {
174963
+ parameters: {
174964
+ query?: {
174965
+ /** @description The organization this call acts on. Optional for a caller with exactly one direct membership; **required** for anyone with more than one — which is every reseller and every agency — because the engine refuses rather than guesses (a wrong guess here writes one tenant's gateway credentials under another tenant's Vault path). */
174966
+ org_id?: components["parameters"]["OrgIdQuery"];
174967
+ };
174968
+ header?: never;
174969
+ path: {
174970
+ /** @description ISO 3166-1 alpha-2 code (`UK` is read as `GB`), or `ZZ` for unknown. */
174971
+ country: string;
174972
+ };
174973
+ cookie?: never;
174974
+ };
174975
+ requestBody: {
174976
+ content: {
174977
+ "application/json": components["schemas"]["EmailMarketingColdCountrySet"];
174978
+ };
174979
+ };
174980
+ responses: {
174981
+ /** @description The country's rule now. */
174982
+ 200: {
174983
+ headers: {
174984
+ [name: string]: unknown;
174985
+ };
174986
+ content: {
174987
+ "application/json": components["schemas"]["EmailMarketingColdCountry"];
174988
+ };
174989
+ };
174990
+ 400: components["responses"]["UnprocessableEntity"];
174991
+ 401: components["responses"]["Unauthorized"];
174992
+ 403: components["responses"]["Forbidden"];
174993
+ };
174994
+ };
174995
+ listEmailMarketingColdImports: {
174996
+ parameters: {
174997
+ query?: {
174998
+ after?: string;
174999
+ limit?: number;
175000
+ /** @description The organization this call acts on. Optional for a caller with exactly one direct membership; **required** for anyone with more than one — which is every reseller and every agency — because the engine refuses rather than guesses (a wrong guess here writes one tenant's gateway credentials under another tenant's Vault path). */
175001
+ org_id?: components["parameters"]["OrgIdQuery"];
175002
+ };
175003
+ header?: never;
175004
+ path?: never;
175005
+ cookie?: never;
175006
+ };
175007
+ requestBody?: never;
175008
+ responses: {
175009
+ /** @description One page of imports. */
175010
+ 200: {
175011
+ headers: {
175012
+ [name: string]: unknown;
175013
+ };
175014
+ content: {
175015
+ "application/json": components["schemas"]["EmailMarketingColdImportPage"];
175016
+ };
175017
+ };
175018
+ 401: components["responses"]["Unauthorized"];
175019
+ 403: components["responses"]["Forbidden"];
175020
+ };
175021
+ };
175022
+ createEmailMarketingColdImport: {
175023
+ parameters: {
175024
+ query?: {
175025
+ /** @description The organization this call acts on. Optional for a caller with exactly one direct membership; **required** for anyone with more than one — which is every reseller and every agency — because the engine refuses rather than guesses (a wrong guess here writes one tenant's gateway credentials under another tenant's Vault path). */
175026
+ org_id?: components["parameters"]["OrgIdQuery"];
175027
+ };
175028
+ header?: never;
175029
+ path?: never;
175030
+ cookie?: never;
175031
+ };
175032
+ requestBody: {
175033
+ content: {
175034
+ "application/json": components["schemas"]["EmailMarketingColdImportCreate"];
175035
+ };
175036
+ };
175037
+ responses: {
175038
+ /** @description The import, waiting to be checked. */
175039
+ 202: {
175040
+ headers: {
175041
+ [name: string]: unknown;
175042
+ };
175043
+ content: {
175044
+ "application/json": components["schemas"]["EmailMarketingColdImport"];
175045
+ };
175046
+ };
175047
+ 400: components["responses"]["UnprocessableEntity"];
175048
+ 401: components["responses"]["Unauthorized"];
175049
+ 403: components["responses"]["Forbidden"];
175050
+ 413: components["responses"]["PayloadTooLarge"];
175051
+ 503: components["responses"]["ServiceUnavailable"];
175052
+ };
175053
+ };
175054
+ getEmailMarketingColdImport: {
175055
+ parameters: {
175056
+ query?: {
175057
+ /** @description The organization this call acts on. Optional for a caller with exactly one direct membership; **required** for anyone with more than one — which is every reseller and every agency — because the engine refuses rather than guesses (a wrong guess here writes one tenant's gateway credentials under another tenant's Vault path). */
175058
+ org_id?: components["parameters"]["OrgIdQuery"];
175059
+ };
175060
+ header?: never;
175061
+ path: {
175062
+ import_id: string;
175063
+ };
175064
+ cookie?: never;
175065
+ };
175066
+ requestBody?: never;
175067
+ responses: {
175068
+ /** @description The import. */
175069
+ 200: {
175070
+ headers: {
175071
+ [name: string]: unknown;
175072
+ };
175073
+ content: {
175074
+ "application/json": components["schemas"]["EmailMarketingColdImport"];
175075
+ };
175076
+ };
175077
+ 401: components["responses"]["Unauthorized"];
175078
+ 403: components["responses"]["Forbidden"];
175079
+ 404: components["responses"]["NotFound"];
175080
+ };
175081
+ };
175082
+ listEmailMarketingColdLeads: {
175083
+ parameters: {
175084
+ query?: {
175085
+ /** @description The last lead id of the previous page. */
175086
+ after?: string;
175087
+ /** @description Only the leads last written by this import. */
175088
+ import_id?: string;
175089
+ limit?: number;
175090
+ /** @description The organization this call acts on. Optional for a caller with exactly one direct membership; **required** for anyone with more than one — which is every reseller and every agency — because the engine refuses rather than guesses (a wrong guess here writes one tenant's gateway credentials under another tenant's Vault path). */
175091
+ org_id?: components["parameters"]["OrgIdQuery"];
175092
+ };
175093
+ header?: never;
175094
+ path?: never;
175095
+ cookie?: never;
175096
+ };
175097
+ requestBody?: never;
175098
+ responses: {
175099
+ /** @description One page of leads. */
175100
+ 200: {
175101
+ headers: {
175102
+ [name: string]: unknown;
175103
+ };
175104
+ content: {
175105
+ "application/json": components["schemas"]["EmailMarketingColdLeadPage"];
175106
+ };
175107
+ };
175108
+ 401: components["responses"]["Unauthorized"];
175109
+ 403: components["responses"]["Forbidden"];
175110
+ };
175111
+ };
175112
+ listEmailMarketingColdMailboxes: {
175113
+ parameters: {
175114
+ query?: {
175115
+ /** @description The organization this call acts on. Optional for a caller with exactly one direct membership; **required** for anyone with more than one — which is every reseller and every agency — because the engine refuses rather than guesses (a wrong guess here writes one tenant's gateway credentials under another tenant's Vault path). */
175116
+ org_id?: components["parameters"]["OrgIdQuery"];
175117
+ };
175118
+ header?: never;
175119
+ path?: never;
175120
+ cookie?: never;
175121
+ };
175122
+ requestBody?: never;
175123
+ responses: {
175124
+ /** @description The mailboxes. */
175125
+ 200: {
175126
+ headers: {
175127
+ [name: string]: unknown;
175128
+ };
175129
+ content: {
175130
+ "application/json": components["schemas"]["EmailMarketingColdMailboxList"];
175131
+ };
175132
+ };
175133
+ 401: components["responses"]["Unauthorized"];
175134
+ 403: components["responses"]["Forbidden"];
175135
+ };
175136
+ };
175137
+ createEmailMarketingColdMailbox: {
175138
+ parameters: {
175139
+ query?: {
175140
+ /** @description The organization this call acts on. Optional for a caller with exactly one direct membership; **required** for anyone with more than one — which is every reseller and every agency — because the engine refuses rather than guesses (a wrong guess here writes one tenant's gateway credentials under another tenant's Vault path). */
175141
+ org_id?: components["parameters"]["OrgIdQuery"];
175142
+ };
175143
+ header?: never;
175144
+ path?: never;
175145
+ cookie?: never;
175146
+ };
175147
+ requestBody: {
175148
+ content: {
175149
+ "application/json": components["schemas"]["EmailMarketingColdMailboxCreate"];
175150
+ };
175151
+ };
175152
+ responses: {
175153
+ /** @description The mailbox, being checked. */
175154
+ 201: {
175155
+ headers: {
175156
+ [name: string]: unknown;
175157
+ };
175158
+ content: {
175159
+ "application/json": components["schemas"]["EmailMarketingColdMailbox"];
175160
+ };
175161
+ };
175162
+ 400: components["responses"]["UnprocessableEntity"];
175163
+ 401: components["responses"]["Unauthorized"];
175164
+ 403: components["responses"]["Forbidden"];
175165
+ 409: components["responses"]["Conflict"];
175166
+ 503: components["responses"]["ServiceUnavailable"];
175167
+ };
175168
+ };
175169
+ getEmailMarketingColdMailbox: {
175170
+ parameters: {
175171
+ query?: {
175172
+ /** @description The organization this call acts on. Optional for a caller with exactly one direct membership; **required** for anyone with more than one — which is every reseller and every agency — because the engine refuses rather than guesses (a wrong guess here writes one tenant's gateway credentials under another tenant's Vault path). */
175173
+ org_id?: components["parameters"]["OrgIdQuery"];
175174
+ };
175175
+ header?: never;
175176
+ path: {
175177
+ mailbox_id: string;
175178
+ };
175179
+ cookie?: never;
175180
+ };
175181
+ requestBody?: never;
175182
+ responses: {
175183
+ /** @description The mailbox. */
175184
+ 200: {
175185
+ headers: {
175186
+ [name: string]: unknown;
175187
+ };
175188
+ content: {
175189
+ "application/json": components["schemas"]["EmailMarketingColdMailbox"];
175190
+ };
175191
+ };
175192
+ 401: components["responses"]["Unauthorized"];
175193
+ 403: components["responses"]["Forbidden"];
175194
+ 404: components["responses"]["NotFound"];
175195
+ };
175196
+ };
175197
+ deleteEmailMarketingColdMailbox: {
175198
+ parameters: {
175199
+ query?: {
175200
+ /** @description The organization this call acts on. Optional for a caller with exactly one direct membership; **required** for anyone with more than one — which is every reseller and every agency — because the engine refuses rather than guesses (a wrong guess here writes one tenant's gateway credentials under another tenant's Vault path). */
175201
+ org_id?: components["parameters"]["OrgIdQuery"];
175202
+ };
175203
+ header?: never;
175204
+ path: {
175205
+ mailbox_id: string;
175206
+ };
175207
+ cookie?: never;
175208
+ };
175209
+ requestBody?: never;
175210
+ responses: {
175211
+ /** @description Removed. */
175212
+ 204: {
175213
+ headers: {
175214
+ [name: string]: unknown;
175215
+ };
175216
+ content?: never;
175217
+ };
175218
+ 401: components["responses"]["Unauthorized"];
175219
+ 403: components["responses"]["Forbidden"];
175220
+ 404: components["responses"]["NotFound"];
175221
+ };
175222
+ };
175223
+ updateEmailMarketingColdMailbox: {
175224
+ parameters: {
175225
+ query?: {
175226
+ /** @description The organization this call acts on. Optional for a caller with exactly one direct membership; **required** for anyone with more than one — which is every reseller and every agency — because the engine refuses rather than guesses (a wrong guess here writes one tenant's gateway credentials under another tenant's Vault path). */
175227
+ org_id?: components["parameters"]["OrgIdQuery"];
175228
+ };
175229
+ header?: never;
175230
+ path: {
175231
+ mailbox_id: string;
175232
+ };
175233
+ cookie?: never;
175234
+ };
175235
+ requestBody: {
175236
+ content: {
175237
+ "application/json": components["schemas"]["EmailMarketingColdMailboxUpdate"];
175238
+ };
175239
+ };
175240
+ responses: {
175241
+ /** @description The mailbox. */
175242
+ 200: {
175243
+ headers: {
175244
+ [name: string]: unknown;
175245
+ };
175246
+ content: {
175247
+ "application/json": components["schemas"]["EmailMarketingColdMailbox"];
175248
+ };
175249
+ };
175250
+ 400: components["responses"]["UnprocessableEntity"];
175251
+ 401: components["responses"]["Unauthorized"];
175252
+ 403: components["responses"]["Forbidden"];
175253
+ 404: components["responses"]["NotFound"];
175254
+ };
175255
+ };
175256
+ verifyEmailMarketingColdMailbox: {
175257
+ parameters: {
175258
+ query?: {
175259
+ /** @description The organization this call acts on. Optional for a caller with exactly one direct membership; **required** for anyone with more than one — which is every reseller and every agency — because the engine refuses rather than guesses (a wrong guess here writes one tenant's gateway credentials under another tenant's Vault path). */
175260
+ org_id?: components["parameters"]["OrgIdQuery"];
175261
+ };
175262
+ header?: never;
175263
+ path: {
175264
+ mailbox_id: string;
175265
+ };
175266
+ cookie?: never;
175267
+ };
175268
+ requestBody?: never;
175269
+ responses: {
175270
+ /** @description The check has started. */
175271
+ 202: {
175272
+ headers: {
175273
+ [name: string]: unknown;
175274
+ };
175275
+ content: {
175276
+ "application/json": components["schemas"]["EmailMarketingColdMailbox"];
175277
+ };
175278
+ };
175279
+ 401: components["responses"]["Unauthorized"];
175280
+ 403: components["responses"]["Forbidden"];
175281
+ 404: components["responses"]["NotFound"];
175282
+ 503: components["responses"]["ServiceUnavailable"];
175283
+ };
175284
+ };
174372
175285
  listEmailMarketingContacts: {
174373
175286
  parameters: {
174374
175287
  query?: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zinn-digital/sdk",
3
- "version": "0.1.1689",
3
+ "version": "0.1.1694",
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>",