@zinn-digital/sdk 0.1.1529 → 0.1.1531
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 +179 -3
- package/package.json +1 -1
|
@@ -16928,6 +16928,54 @@ export interface paths {
|
|
|
16928
16928
|
patch?: never;
|
|
16929
16929
|
trace?: never;
|
|
16930
16930
|
};
|
|
16931
|
+
"/v1/ads/connect/chatgpt": {
|
|
16932
|
+
parameters: {
|
|
16933
|
+
query?: never;
|
|
16934
|
+
header?: never;
|
|
16935
|
+
path?: never;
|
|
16936
|
+
cookie?: never;
|
|
16937
|
+
};
|
|
16938
|
+
get?: never;
|
|
16939
|
+
put?: never;
|
|
16940
|
+
/**
|
|
16941
|
+
* Connect ChatGPT Ads with an Advertiser API key (za-318).
|
|
16942
|
+
* @description Gated on `ads.manage`. ChatGPT Ads (OpenAI) has no OAuth app open to us (OpenAI publishes no client registration for its `AdsOAuth` scheme; it is the API-partner path), so the customer pastes an Advertiser API key made at https://ads.openai.com/settings. One key reaches ONE ad account. The key is read against OpenAI's `GET /v1/ad_account` at once and kept in Vault as the grant (never in the database, never echoed); the answer is the grant id the ordinary account picker reads (`listAdsConnectChatGPTAccounts`). A value that cannot be a key is a `422` `netBadKey` before any call. A key OpenAI refuses still answers a grant whose picker carries the §2.57 `failure` (a rejected key links the keys page). Not gated on "Coming soon" (that gates the dashboard's offer). ChatGPT Ads writes (an ad group paused, a campaign's daily spend limit) stay OFF until `ZINN_ADS_CHATGPT_WRITES=on` (an owner decision): an approved change is refused `chatgptWritesOff` and nothing reaches OpenAI.
|
|
16943
|
+
*/
|
|
16944
|
+
post: operations["connectAdsChatGPTKey"];
|
|
16945
|
+
delete?: never;
|
|
16946
|
+
options?: never;
|
|
16947
|
+
head?: never;
|
|
16948
|
+
patch?: never;
|
|
16949
|
+
trace?: never;
|
|
16950
|
+
};
|
|
16951
|
+
"/v1/ads/connect/chatgpt/grants/{grant_id}": {
|
|
16952
|
+
parameters: {
|
|
16953
|
+
query?: {
|
|
16954
|
+
org_id?: string;
|
|
16955
|
+
};
|
|
16956
|
+
header?: never;
|
|
16957
|
+
path: {
|
|
16958
|
+
grant_id: string;
|
|
16959
|
+
};
|
|
16960
|
+
cookie?: never;
|
|
16961
|
+
};
|
|
16962
|
+
/**
|
|
16963
|
+
* The ChatGPT Ads account one Advertiser API key reaches.
|
|
16964
|
+
* @description Gated on `ads.manage`. The one ad account the key reaches (`GET /v1/ad_account`), with its currency, time zone, status and brand `review_status` (an account cannot serve until OpenAI approves its brand). `connected` marks an account the organisation already has.
|
|
16965
|
+
*/
|
|
16966
|
+
get: operations["listAdsConnectChatGPTAccounts"];
|
|
16967
|
+
put?: never;
|
|
16968
|
+
/**
|
|
16969
|
+
* Connect the key's ChatGPT Ads account and start reading its figures.
|
|
16970
|
+
* @description Gated on `ads.manage`; audit action `ads.connection_create`. `customer_ids` is the account id the picker listed (`adacct_…`, lower case). The new connection's day figures (spend, clicks, impressions and conversions per ad group and day, money as integer micros of the account currency) start reading on their own (Temporal), READ ONLY, then the history backfill.
|
|
16971
|
+
*/
|
|
16972
|
+
post: operations["addAdsConnectChatGPTAccounts"];
|
|
16973
|
+
delete?: never;
|
|
16974
|
+
options?: never;
|
|
16975
|
+
head?: never;
|
|
16976
|
+
patch?: never;
|
|
16977
|
+
trace?: never;
|
|
16978
|
+
};
|
|
16931
16979
|
"/v1/ads/connect/google": {
|
|
16932
16980
|
parameters: {
|
|
16933
16981
|
query?: never;
|
|
@@ -66507,9 +66555,13 @@ export interface components {
|
|
|
66507
66555
|
parent_id?: string;
|
|
66508
66556
|
/** @description Google only (za-52): that manager's name. */
|
|
66509
66557
|
parent_name?: string;
|
|
66558
|
+
/** @description ChatGPT Ads only (za-318): OpenAI's brand review of the account (`in_review`, `rejected`, `approved`); an account serves only once it is `approved`. */
|
|
66559
|
+
review_status?: string;
|
|
66510
66560
|
/** @description X Ads only (XADS1): a SANDBOX account (`ads-api-sandbox`), which runs no ads and spends nothing. Its `customer_id` is `sbx-<id>`. */
|
|
66511
66561
|
sandbox?: boolean;
|
|
66512
66562
|
status: string;
|
|
66563
|
+
/** @description ChatGPT Ads only (za-318): the account's IANA time zone. */
|
|
66564
|
+
timezone?: string;
|
|
66513
66565
|
};
|
|
66514
66566
|
/** @description za-97: what Disconnect did with the person's grant at the network (docs/1006 §Connect). */
|
|
66515
66567
|
AdsGrantRevokeOutcome: {
|
|
@@ -67807,7 +67859,7 @@ export interface components {
|
|
|
67807
67859
|
* @description An advertising platform (docs/1006 §4.1).
|
|
67808
67860
|
* @enum {string}
|
|
67809
67861
|
*/
|
|
67810
|
-
AdsPlatform: "google" | "microsoft" | "meta" | "linkedin" | "tiktok" | "x" | "pinterest" | "amazon";
|
|
67862
|
+
AdsPlatform: "google" | "microsoft" | "meta" | "linkedin" | "tiktok" | "x" | "pinterest" | "amazon" | "chatgpt";
|
|
67811
67863
|
/** @description The plugin conversion feed on one ad account (za-96, docs/1006 §PLUGINFEED). */
|
|
67812
67864
|
AdsPluginFeed: {
|
|
67813
67865
|
/**
|
|
@@ -69130,7 +69182,7 @@ export interface components {
|
|
|
69130
69182
|
* @description PLACEGUARD2: the connection's network. A Meta exclusion is only ever `listed`.
|
|
69131
69183
|
* @enum {string}
|
|
69132
69184
|
*/
|
|
69133
|
-
platform: "google" | "microsoft" | "meta" | "linkedin" | "tiktok" | "x" | "pinterest" | "amazon";
|
|
69185
|
+
platform: "google" | "microsoft" | "meta" | "linkedin" | "tiktok" | "x" | "pinterest" | "amazon" | "chatgpt";
|
|
69134
69186
|
/**
|
|
69135
69187
|
* @description Why a placement was proposed: it spent with no result (`waste`) or belongs to a junk class (`junk`).
|
|
69136
69188
|
* @enum {string}
|
|
@@ -106843,6 +106895,19 @@ export interface components {
|
|
|
106843
106895
|
* @example
|
|
106844
106896
|
*/
|
|
106845
106897
|
status_detail?: string;
|
|
106898
|
+
/** @description The catalogue form of `status_detail` when the platform wrote it: a `refusal.*` `key` plus its `params`, so the dashboard renders the note in the reader's language. Null when `status_detail` is empty or is not a sentence the platform writes (a vendor's own text) — show `status_detail` as given then. */
|
|
106899
|
+
status_detail_refusal?: {
|
|
106900
|
+
/** @example refusal.subdomain.dnsNotOurs */
|
|
106901
|
+
key: string;
|
|
106902
|
+
/**
|
|
106903
|
+
* @example {
|
|
106904
|
+
* "name": "blog.example.com"
|
|
106905
|
+
* }
|
|
106906
|
+
*/
|
|
106907
|
+
params: {
|
|
106908
|
+
[key: string]: string;
|
|
106909
|
+
};
|
|
106910
|
+
} | null;
|
|
106846
106911
|
};
|
|
106847
106912
|
/** @description A site's subdomains and its effective ceiling. ⛔ The only surface on this line with a real **quantity** limit, so `can_create` here really is arithmetic. */
|
|
106848
106913
|
SiteSubdomainList: {
|
|
@@ -141774,6 +141839,117 @@ export interface operations {
|
|
|
141774
141839
|
429: components["responses"]["TooManyRequests"];
|
|
141775
141840
|
};
|
|
141776
141841
|
};
|
|
141842
|
+
connectAdsChatGPTKey: {
|
|
141843
|
+
parameters: {
|
|
141844
|
+
query?: never;
|
|
141845
|
+
header?: never;
|
|
141846
|
+
path?: never;
|
|
141847
|
+
cookie?: never;
|
|
141848
|
+
};
|
|
141849
|
+
requestBody: {
|
|
141850
|
+
content: {
|
|
141851
|
+
"application/json": {
|
|
141852
|
+
/** @description The Advertiser API key (a secret; never returned). */
|
|
141853
|
+
api_key: string;
|
|
141854
|
+
/** Format: uuid */
|
|
141855
|
+
org_id?: string;
|
|
141856
|
+
};
|
|
141857
|
+
};
|
|
141858
|
+
};
|
|
141859
|
+
responses: {
|
|
141860
|
+
/** @description The grant the account picker reads. */
|
|
141861
|
+
201: {
|
|
141862
|
+
headers: {
|
|
141863
|
+
[name: string]: unknown;
|
|
141864
|
+
};
|
|
141865
|
+
content: {
|
|
141866
|
+
"application/json": {
|
|
141867
|
+
/** Format: uuid */
|
|
141868
|
+
grant_id: string;
|
|
141869
|
+
};
|
|
141870
|
+
};
|
|
141871
|
+
};
|
|
141872
|
+
401: components["responses"]["Unauthorized"];
|
|
141873
|
+
403: components["responses"]["Forbidden"];
|
|
141874
|
+
404: components["responses"]["NotFound"];
|
|
141875
|
+
422: components["responses"]["UnprocessableEntity"];
|
|
141876
|
+
429: components["responses"]["TooManyRequests"];
|
|
141877
|
+
};
|
|
141878
|
+
};
|
|
141879
|
+
listAdsConnectChatGPTAccounts: {
|
|
141880
|
+
parameters: {
|
|
141881
|
+
query?: {
|
|
141882
|
+
org_id?: string;
|
|
141883
|
+
};
|
|
141884
|
+
header?: never;
|
|
141885
|
+
path: {
|
|
141886
|
+
grant_id: string;
|
|
141887
|
+
};
|
|
141888
|
+
cookie?: never;
|
|
141889
|
+
};
|
|
141890
|
+
requestBody?: never;
|
|
141891
|
+
responses: {
|
|
141892
|
+
/** @description The account. */
|
|
141893
|
+
200: {
|
|
141894
|
+
headers: {
|
|
141895
|
+
[name: string]: unknown;
|
|
141896
|
+
};
|
|
141897
|
+
content: {
|
|
141898
|
+
"application/json": {
|
|
141899
|
+
data: components["schemas"]["AdsGrantAccount"][];
|
|
141900
|
+
/** @description Why the list is empty when OpenAI REFUSED the key (the §2.57 class, never the raw vendor text). `null` when OpenAI answered. */
|
|
141901
|
+
failure?: components["schemas"]["VendorFailure"] | null;
|
|
141902
|
+
};
|
|
141903
|
+
};
|
|
141904
|
+
};
|
|
141905
|
+
401: components["responses"]["Unauthorized"];
|
|
141906
|
+
403: components["responses"]["Forbidden"];
|
|
141907
|
+
404: components["responses"]["NotFound"];
|
|
141908
|
+
422: components["responses"]["UnprocessableEntity"];
|
|
141909
|
+
429: components["responses"]["TooManyRequests"];
|
|
141910
|
+
};
|
|
141911
|
+
};
|
|
141912
|
+
addAdsConnectChatGPTAccounts: {
|
|
141913
|
+
parameters: {
|
|
141914
|
+
query?: {
|
|
141915
|
+
org_id?: string;
|
|
141916
|
+
};
|
|
141917
|
+
header?: never;
|
|
141918
|
+
path: {
|
|
141919
|
+
grant_id: string;
|
|
141920
|
+
};
|
|
141921
|
+
cookie?: never;
|
|
141922
|
+
};
|
|
141923
|
+
requestBody: {
|
|
141924
|
+
content: {
|
|
141925
|
+
"application/json": {
|
|
141926
|
+
/** Format: uuid */
|
|
141927
|
+
client_org_id?: string | null;
|
|
141928
|
+
customer_ids: string[];
|
|
141929
|
+
/** Format: uuid */
|
|
141930
|
+
org_id?: string;
|
|
141931
|
+
};
|
|
141932
|
+
};
|
|
141933
|
+
};
|
|
141934
|
+
responses: {
|
|
141935
|
+
/** @description The connections. */
|
|
141936
|
+
201: {
|
|
141937
|
+
headers: {
|
|
141938
|
+
[name: string]: unknown;
|
|
141939
|
+
};
|
|
141940
|
+
content: {
|
|
141941
|
+
"application/json": {
|
|
141942
|
+
data: components["schemas"]["AdsAccountConnection"][];
|
|
141943
|
+
};
|
|
141944
|
+
};
|
|
141945
|
+
};
|
|
141946
|
+
401: components["responses"]["Unauthorized"];
|
|
141947
|
+
403: components["responses"]["Forbidden"];
|
|
141948
|
+
404: components["responses"]["NotFound"];
|
|
141949
|
+
422: components["responses"]["UnprocessableEntity"];
|
|
141950
|
+
429: components["responses"]["TooManyRequests"];
|
|
141951
|
+
};
|
|
141952
|
+
};
|
|
141777
141953
|
startAdsConnectGoogle: {
|
|
141778
141954
|
parameters: {
|
|
141779
141955
|
query?: never;
|
|
@@ -147509,7 +147685,7 @@ export interface operations {
|
|
|
147509
147685
|
/** Format: uuid */
|
|
147510
147686
|
grant_id: string | null;
|
|
147511
147687
|
/** @enum {string} */
|
|
147512
|
-
platform: "google" | "microsoft" | "x" | "meta";
|
|
147688
|
+
platform: "google" | "microsoft" | "x" | "meta" | "chatgpt";
|
|
147513
147689
|
};
|
|
147514
147690
|
};
|
|
147515
147691
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zinn-digital/sdk",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1531",
|
|
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>",
|