@zinn-digital/sdk 0.1.1401 → 0.1.1404
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 +112 -3
- package/package.json +1 -1
|
@@ -20141,6 +20141,26 @@ export interface paths {
|
|
|
20141
20141
|
patch?: never;
|
|
20142
20142
|
trace?: never;
|
|
20143
20143
|
};
|
|
20144
|
+
"/v1/ads/shield/claims/{claim_id}/outcome": {
|
|
20145
|
+
parameters: {
|
|
20146
|
+
query?: never;
|
|
20147
|
+
header?: never;
|
|
20148
|
+
path?: never;
|
|
20149
|
+
cookie?: never;
|
|
20150
|
+
};
|
|
20151
|
+
get?: never;
|
|
20152
|
+
put?: never;
|
|
20153
|
+
/**
|
|
20154
|
+
* Record Google's answer to a sent pack (credit received or none).
|
|
20155
|
+
* @description Gated on `ads.manage`; audit action `ads.shield_claim_outcome` (za-22, za-N8). For a pack marked sent, a person records the credit Google gave (integer minor units, §2.8) or that Google gave none: card-paying accounts have no invoices to read, so Google's reply is the only answer. Zinn® never moves money here; this is a record of a credit Google gave the ad account. 409 when the pack is not sent yet, or when its answer was read from the account's invoices (those are never overwritten). A person-recorded answer can be corrected; the write is conditional, so an invoice answer landing while the request runs is a 409, never overwritten.
|
|
20156
|
+
*/
|
|
20157
|
+
post: operations["recordAdsShieldClaimOutcome"];
|
|
20158
|
+
delete?: never;
|
|
20159
|
+
options?: never;
|
|
20160
|
+
head?: never;
|
|
20161
|
+
patch?: never;
|
|
20162
|
+
trace?: never;
|
|
20163
|
+
};
|
|
20144
20164
|
"/v1/ads/shield/claims/{claim_id}/sent": {
|
|
20145
20165
|
parameters: {
|
|
20146
20166
|
query?: never;
|
|
@@ -29908,6 +29928,26 @@ export interface paths {
|
|
|
29908
29928
|
patch?: never;
|
|
29909
29929
|
trace?: never;
|
|
29910
29930
|
};
|
|
29931
|
+
"/v1/databases/my-address": {
|
|
29932
|
+
parameters: {
|
|
29933
|
+
query?: never;
|
|
29934
|
+
header?: never;
|
|
29935
|
+
path?: never;
|
|
29936
|
+
cookie?: never;
|
|
29937
|
+
};
|
|
29938
|
+
/**
|
|
29939
|
+
* The address this request came from, to suggest for a database allow-list.
|
|
29940
|
+
* @description Gated on `databases.view`. A database hostname publishes both an A and an AAAA record, so a client that prefers IPv6 connects from its IPv6 address and is refused if only its IPv4 address is listed. The dashboard offers this address (and the one its own origin sees, which may be the other family) so the customer can add both. Read from the forwarding header our own ingress writes, never from a value the caller supplies; `address` is null when it cannot be resolved.
|
|
29941
|
+
*/
|
|
29942
|
+
get: operations["getManagedDatabaseClientAddress"];
|
|
29943
|
+
put?: never;
|
|
29944
|
+
post?: never;
|
|
29945
|
+
delete?: never;
|
|
29946
|
+
options?: never;
|
|
29947
|
+
head?: never;
|
|
29948
|
+
patch?: never;
|
|
29949
|
+
trace?: never;
|
|
29950
|
+
};
|
|
29911
29951
|
"/v1/domain-alerts": {
|
|
29912
29952
|
parameters: {
|
|
29913
29953
|
query?: never;
|
|
@@ -65420,9 +65460,9 @@ export interface components {
|
|
|
65420
65460
|
connection_id: string;
|
|
65421
65461
|
/** Format: date-time */
|
|
65422
65462
|
credit_checked_at: string | null;
|
|
65423
|
-
/** @description `no_monthly_invoicing` when the account has no invoices to read. */
|
|
65463
|
+
/** @description `no_monthly_invoicing` when the account has no invoices to read (record Google's answer by hand); `no_credit_on_invoices` when the three invoices after the month closed with no credit (declined); `recorded_by_person` when a person recorded it. */
|
|
65424
65464
|
credit_note: string;
|
|
65425
|
-
/** @description
|
|
65465
|
+
/** @description Google's invalid-activity credit for the month, integer minor units of `currency`: read from the account's invoices, or recorded by a person from Google's answer (`credit_note` = `recorded_by_person`). `0` once declined; null = no answer yet. */
|
|
65426
65466
|
credited_minor: number | null;
|
|
65427
65467
|
currency: string;
|
|
65428
65468
|
estimated_cost_minor: number;
|
|
@@ -81244,7 +81284,7 @@ export interface components {
|
|
|
81244
81284
|
* @description What a cart/order line buys.
|
|
81245
81285
|
* @enum {string}
|
|
81246
81286
|
*/
|
|
81247
|
-
LineKind: "domain_register" | "domain_transfer" | "domain_renew" | "domain_restore" | "hosting_plan" | "hosting_addon" | "privacy_addon" | "marketplace_package" | "aged_domain" | "compute_server" | "managed_database" | "boards_plan" | "extra" | "subscription_extension" | "subscription_debt";
|
|
81287
|
+
LineKind: "domain_register" | "domain_transfer" | "domain_renew" | "domain_restore" | "hosting_plan" | "hosting_addon" | "privacy_addon" | "marketplace_package" | "aged_domain" | "compute_server" | "managed_database" | "boards_plan" | "extra" | "subscription_extension" | "subscription_debt" | "setup_fee";
|
|
81248
81288
|
LineLedger: {
|
|
81249
81289
|
data: components["schemas"]["LineLedgerRow"][];
|
|
81250
81290
|
};
|
|
@@ -82690,6 +82730,12 @@ export interface components {
|
|
|
82690
82730
|
*/
|
|
82691
82731
|
sizes: components["schemas"]["ManagedDatabaseSize"][];
|
|
82692
82732
|
};
|
|
82733
|
+
ManagedDatabaseClientAddress: {
|
|
82734
|
+
/** @description The caller's public IP address, or null when it cannot be resolved. */
|
|
82735
|
+
address: string | null;
|
|
82736
|
+
/** @enum {string|null} */
|
|
82737
|
+
family: "ipv4" | "ipv6" | null;
|
|
82738
|
+
};
|
|
82693
82739
|
ManagedDatabaseCreate: {
|
|
82694
82740
|
/**
|
|
82695
82741
|
* @description Optional. Omitted uses PostgreSQL. ⛔ Must match the engine the `size` code belongs to — a MySQL request carrying a `db_pg_*` size is refused, because it would run one engine and bill the other.
|
|
@@ -142981,6 +143027,47 @@ export interface operations {
|
|
|
142981
143027
|
429: components["responses"]["TooManyRequests"];
|
|
142982
143028
|
};
|
|
142983
143029
|
};
|
|
143030
|
+
recordAdsShieldClaimOutcome: {
|
|
143031
|
+
parameters: {
|
|
143032
|
+
query?: never;
|
|
143033
|
+
header?: never;
|
|
143034
|
+
path: {
|
|
143035
|
+
claim_id: string;
|
|
143036
|
+
};
|
|
143037
|
+
cookie?: never;
|
|
143038
|
+
};
|
|
143039
|
+
requestBody: {
|
|
143040
|
+
content: {
|
|
143041
|
+
"application/json": {
|
|
143042
|
+
/** @description Required when `outcome` is `credited`; minor units of the pack's currency. */
|
|
143043
|
+
credited_minor?: number | null;
|
|
143044
|
+
/** @description Only used when neither the pack nor its ad account has a currency yet; 422 when it differs from the pack's (Google credits in the account's currency). */
|
|
143045
|
+
currency?: string;
|
|
143046
|
+
/** Format: uuid */
|
|
143047
|
+
org_id?: string;
|
|
143048
|
+
/** @enum {string} */
|
|
143049
|
+
outcome: "credited" | "declined";
|
|
143050
|
+
};
|
|
143051
|
+
};
|
|
143052
|
+
};
|
|
143053
|
+
responses: {
|
|
143054
|
+
/** @description The pack. */
|
|
143055
|
+
200: {
|
|
143056
|
+
headers: {
|
|
143057
|
+
[name: string]: unknown;
|
|
143058
|
+
};
|
|
143059
|
+
content: {
|
|
143060
|
+
"application/json": components["schemas"]["AdsShieldClaim"];
|
|
143061
|
+
};
|
|
143062
|
+
};
|
|
143063
|
+
401: components["responses"]["Unauthorized"];
|
|
143064
|
+
403: components["responses"]["Forbidden"];
|
|
143065
|
+
404: components["responses"]["NotFound"];
|
|
143066
|
+
409: components["responses"]["Conflict"];
|
|
143067
|
+
422: components["responses"]["UnprocessableEntity"];
|
|
143068
|
+
429: components["responses"]["TooManyRequests"];
|
|
143069
|
+
};
|
|
143070
|
+
};
|
|
142984
143071
|
markAdsShieldClaimSent: {
|
|
142985
143072
|
parameters: {
|
|
142986
143073
|
query?: never;
|
|
@@ -159268,6 +159355,28 @@ export interface operations {
|
|
|
159268
159355
|
403: components["responses"]["Forbidden"];
|
|
159269
159356
|
};
|
|
159270
159357
|
};
|
|
159358
|
+
getManagedDatabaseClientAddress: {
|
|
159359
|
+
parameters: {
|
|
159360
|
+
query?: never;
|
|
159361
|
+
header?: never;
|
|
159362
|
+
path?: never;
|
|
159363
|
+
cookie?: never;
|
|
159364
|
+
};
|
|
159365
|
+
requestBody?: never;
|
|
159366
|
+
responses: {
|
|
159367
|
+
/** @description The caller's public address, or null. */
|
|
159368
|
+
200: {
|
|
159369
|
+
headers: {
|
|
159370
|
+
[name: string]: unknown;
|
|
159371
|
+
};
|
|
159372
|
+
content: {
|
|
159373
|
+
"application/json": components["schemas"]["ManagedDatabaseClientAddress"];
|
|
159374
|
+
};
|
|
159375
|
+
};
|
|
159376
|
+
401: components["responses"]["Unauthorized"];
|
|
159377
|
+
403: components["responses"]["Forbidden"];
|
|
159378
|
+
};
|
|
159379
|
+
};
|
|
159271
159380
|
getDomainAlerts: {
|
|
159272
159381
|
parameters: {
|
|
159273
159382
|
query?: never;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zinn-digital/sdk",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1404",
|
|
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>",
|