@zinn-digital/sdk 0.1.1981 → 0.1.1984
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 +301 -0
- package/package.json +1 -1
|
@@ -620,6 +620,52 @@ export interface paths {
|
|
|
620
620
|
patch?: never;
|
|
621
621
|
trace?: never;
|
|
622
622
|
};
|
|
623
|
+
"/v1/admin/abuse-cases/{reportId}": {
|
|
624
|
+
parameters: {
|
|
625
|
+
query?: never;
|
|
626
|
+
header?: never;
|
|
627
|
+
path: {
|
|
628
|
+
/** @description Abuse report ID (UUIDv7). */
|
|
629
|
+
reportId: components["parameters"]["AbuseReportId"];
|
|
630
|
+
};
|
|
631
|
+
cookie?: never;
|
|
632
|
+
};
|
|
633
|
+
/**
|
|
634
|
+
* One phishing case, the target of the alert's review link (staff).
|
|
635
|
+
* @description docs/1050 §1. Requires staff + `abuse.view`. The facts the phishing alert carried, read again now (site, plan, trial, first payments, sign-up source, the detector's signals and brands, Google Ads conversion uploads), plus the current report, site and account status, whether the account is fenced or established, and its active ban. No identifier (e-mail, IP, payer id) is returned.
|
|
636
|
+
*/
|
|
637
|
+
get: operations["getAbuseCase"];
|
|
638
|
+
put?: never;
|
|
639
|
+
post?: never;
|
|
640
|
+
delete?: never;
|
|
641
|
+
options?: never;
|
|
642
|
+
head?: never;
|
|
643
|
+
patch?: never;
|
|
644
|
+
trace?: never;
|
|
645
|
+
};
|
|
646
|
+
"/v1/admin/abuse-cases/{reportId}/action": {
|
|
647
|
+
parameters: {
|
|
648
|
+
query?: never;
|
|
649
|
+
header?: never;
|
|
650
|
+
path: {
|
|
651
|
+
/** @description Abuse report ID (UUIDv7). */
|
|
652
|
+
reportId: components["parameters"]["AbuseReportId"];
|
|
653
|
+
};
|
|
654
|
+
cookie?: never;
|
|
655
|
+
};
|
|
656
|
+
get?: never;
|
|
657
|
+
put?: never;
|
|
658
|
+
/**
|
|
659
|
+
* Ban, warn or unban the account behind a phishing case (staff, audit-logged).
|
|
660
|
+
* @description docs/1050 §1. Requires staff + `abuse.manage`. `ban` bans the account (reason `phishing`; idempotent). `warn` e-mails the account why its site is offline (mandatory notice `abuse.site_warning`); the site stays suspended. `unban` lifts the active ban and unlocks the account; `422` when there is none. Putting the SITE back is `resolveAbuseReport` with `reinstate: true`, which the case screen calls separately. Returns the case as `getAbuseCase` does.
|
|
661
|
+
*/
|
|
662
|
+
post: operations["actAbuseCase"];
|
|
663
|
+
delete?: never;
|
|
664
|
+
options?: never;
|
|
665
|
+
head?: never;
|
|
666
|
+
patch?: never;
|
|
667
|
+
trace?: never;
|
|
668
|
+
};
|
|
623
669
|
"/v1/admin/abuse-guard": {
|
|
624
670
|
parameters: {
|
|
625
671
|
query?: never;
|
|
@@ -6635,6 +6681,26 @@ export interface paths {
|
|
|
6635
6681
|
patch?: never;
|
|
6636
6682
|
trace?: never;
|
|
6637
6683
|
};
|
|
6684
|
+
"/v1/admin/free-credit": {
|
|
6685
|
+
parameters: {
|
|
6686
|
+
query?: never;
|
|
6687
|
+
header?: never;
|
|
6688
|
+
path?: never;
|
|
6689
|
+
cookie?: never;
|
|
6690
|
+
};
|
|
6691
|
+
/**
|
|
6692
|
+
* Free credit given away — granted, consumed, what it bought, our cost, conversion.
|
|
6693
|
+
* @description Free credit (Cloud trial credit, promo, sign-up, staff gifts and goodwill) per period (today UTC, 7 days, 30 days, all time) and per currency: granted by kind and split by whether a card was on file at the grant; consumed (exact for the trial purse); the server hours, sizes and locations it bought and our cost of them (USD, from the cached cost table; an uncached size is reported as unknown, never as free); conversion of the orgs whose first free credit fell in the period (live gateway money net of refunds or a settled top-up, after that credit) and net = revenue minus our cost; the 25 orgs that consumed the most with trial-guard signals. Our own orgs are one separate total. Cached for five minutes. Requires staff + `billing.view`.
|
|
6694
|
+
*/
|
|
6695
|
+
get: operations["getAdminFreeCreditReport"];
|
|
6696
|
+
put?: never;
|
|
6697
|
+
post?: never;
|
|
6698
|
+
delete?: never;
|
|
6699
|
+
options?: never;
|
|
6700
|
+
head?: never;
|
|
6701
|
+
patch?: never;
|
|
6702
|
+
trace?: never;
|
|
6703
|
+
};
|
|
6638
6704
|
"/v1/admin/free-plan-customers": {
|
|
6639
6705
|
parameters: {
|
|
6640
6706
|
query?: never;
|
|
@@ -63414,6 +63480,56 @@ export interface components {
|
|
|
63414
63480
|
other_accounts?: number;
|
|
63415
63481
|
};
|
|
63416
63482
|
};
|
|
63483
|
+
AdminAbuseCase: {
|
|
63484
|
+
admin?: string;
|
|
63485
|
+
ads_conversions?: string[];
|
|
63486
|
+
ban: {
|
|
63487
|
+
/** Format: date-time */
|
|
63488
|
+
created_at?: string;
|
|
63489
|
+
id?: components["schemas"]["Uuid"];
|
|
63490
|
+
reason_code?: string;
|
|
63491
|
+
} | null;
|
|
63492
|
+
brands?: string[];
|
|
63493
|
+
category?: string;
|
|
63494
|
+
domain?: string;
|
|
63495
|
+
/** @description Why the account counts as established (empty when it does not). */
|
|
63496
|
+
established?: string;
|
|
63497
|
+
fenced?: boolean;
|
|
63498
|
+
org_id: components["schemas"]["Uuid"];
|
|
63499
|
+
org_name?: string;
|
|
63500
|
+
org_status?: string;
|
|
63501
|
+
payments?: components["schemas"]["AdminAbuseCasePayment"][];
|
|
63502
|
+
plan?: string;
|
|
63503
|
+
platform?: string;
|
|
63504
|
+
product_line?: string;
|
|
63505
|
+
report_id: components["schemas"]["Uuid"];
|
|
63506
|
+
report_status: string;
|
|
63507
|
+
scanned_at?: string;
|
|
63508
|
+
signals?: string[];
|
|
63509
|
+
signup_at?: string;
|
|
63510
|
+
signup_source?: string;
|
|
63511
|
+
site_id?: string;
|
|
63512
|
+
site_status?: string;
|
|
63513
|
+
trial?: boolean;
|
|
63514
|
+
trial_template?: string;
|
|
63515
|
+
verdict?: string;
|
|
63516
|
+
};
|
|
63517
|
+
AdminAbuseCaseAction: {
|
|
63518
|
+
/** @enum {string} */
|
|
63519
|
+
action: "ban" | "warn" | "unban";
|
|
63520
|
+
note?: string;
|
|
63521
|
+
};
|
|
63522
|
+
AdminAbuseCaseEnvelope: {
|
|
63523
|
+
data: components["schemas"]["AdminAbuseCase"];
|
|
63524
|
+
};
|
|
63525
|
+
AdminAbuseCasePayment: {
|
|
63526
|
+
amount_minor?: number;
|
|
63527
|
+
currency?: string;
|
|
63528
|
+
order?: string;
|
|
63529
|
+
provider?: string;
|
|
63530
|
+
status?: string;
|
|
63531
|
+
wallet_minor?: number;
|
|
63532
|
+
};
|
|
63417
63533
|
/** @description An abuse/T&S flag. Empty until the abuse subsystem lands. */
|
|
63418
63534
|
AdminAbuseFlag: {
|
|
63419
63535
|
id: string;
|
|
@@ -65397,6 +65513,108 @@ export interface components {
|
|
|
65397
65513
|
/** @enum {string} */
|
|
65398
65514
|
state: "running" | "done" | "failed";
|
|
65399
65515
|
};
|
|
65516
|
+
AdminFreeCreditCount: {
|
|
65517
|
+
count: number;
|
|
65518
|
+
/** Format: int64 */
|
|
65519
|
+
minor: number;
|
|
65520
|
+
};
|
|
65521
|
+
AdminFreeCreditPeriods: {
|
|
65522
|
+
"7d": components["schemas"]["AdminFreeCreditCount"];
|
|
65523
|
+
"30d": components["schemas"]["AdminFreeCreditCount"];
|
|
65524
|
+
all: components["schemas"]["AdminFreeCreditCount"];
|
|
65525
|
+
today: components["schemas"]["AdminFreeCreditCount"];
|
|
65526
|
+
};
|
|
65527
|
+
/** @description The free-credit giveaway report. Money is integer minor units in the row's currency; `cost_usd_minor` is our cost in US cents (null when the size's cost is unknown). */
|
|
65528
|
+
AdminFreeCreditReport: {
|
|
65529
|
+
bought: {
|
|
65530
|
+
cost_known: boolean;
|
|
65531
|
+
currency: string;
|
|
65532
|
+
location: string;
|
|
65533
|
+
periods: {
|
|
65534
|
+
[key: string]: {
|
|
65535
|
+
/** Format: int64 */
|
|
65536
|
+
cost_usd_minor: number | null;
|
|
65537
|
+
/** Format: int64 */
|
|
65538
|
+
free_minor: number;
|
|
65539
|
+
hours: number;
|
|
65540
|
+
servers: number;
|
|
65541
|
+
};
|
|
65542
|
+
};
|
|
65543
|
+
size: string;
|
|
65544
|
+
}[];
|
|
65545
|
+
consumed: {
|
|
65546
|
+
card_less: components["schemas"]["AdminFreeCreditPeriods"];
|
|
65547
|
+
card_on_file: components["schemas"]["AdminFreeCreditPeriods"];
|
|
65548
|
+
currency: string;
|
|
65549
|
+
total: components["schemas"]["AdminFreeCreditPeriods"];
|
|
65550
|
+
}[];
|
|
65551
|
+
conversion: {
|
|
65552
|
+
[key: string]: {
|
|
65553
|
+
cost_unknown_hours: number;
|
|
65554
|
+
/** Format: int64 */
|
|
65555
|
+
cost_usd_minor: number;
|
|
65556
|
+
/** Format: int64 */
|
|
65557
|
+
net_usd_minor: number;
|
|
65558
|
+
orgs: number;
|
|
65559
|
+
other_currency_revenue: boolean;
|
|
65560
|
+
paid_orgs: number;
|
|
65561
|
+
revenue: {
|
|
65562
|
+
currency: string;
|
|
65563
|
+
/** Format: int64 */
|
|
65564
|
+
minor: number;
|
|
65565
|
+
}[];
|
|
65566
|
+
};
|
|
65567
|
+
};
|
|
65568
|
+
/** @description Orders whose free-credit release or refund credit is in another currency than the order. Refused: left out of every sum and counted here. */
|
|
65569
|
+
currency_mismatch_orders: number;
|
|
65570
|
+
/** Format: date-time */
|
|
65571
|
+
generated_at: string;
|
|
65572
|
+
/** @description One row per currency and kind that has any grant; a kind with none has no row. */
|
|
65573
|
+
granted: {
|
|
65574
|
+
card_less: components["schemas"]["AdminFreeCreditPeriods"];
|
|
65575
|
+
card_on_file: components["schemas"]["AdminFreeCreditPeriods"];
|
|
65576
|
+
currency: string;
|
|
65577
|
+
/** @enum {string} */
|
|
65578
|
+
kind: "trial" | "promo" | "signup" | "staff" | "goodwill";
|
|
65579
|
+
total: components["schemas"]["AdminFreeCreditPeriods"];
|
|
65580
|
+
}[];
|
|
65581
|
+
internal_excluded: {
|
|
65582
|
+
currency: string;
|
|
65583
|
+
periods: components["schemas"]["AdminFreeCreditPeriods"];
|
|
65584
|
+
}[];
|
|
65585
|
+
kinds: ("trial" | "promo" | "signup" | "staff" | "goodwill")[];
|
|
65586
|
+
notes: {
|
|
65587
|
+
cost_currency: string;
|
|
65588
|
+
general_purse_spend_not_split: boolean;
|
|
65589
|
+
};
|
|
65590
|
+
periods: ("today" | "7d" | "30d" | "all")[];
|
|
65591
|
+
/** @description The free part of refunds of free-funded orders to Zinn® credit (free is refunded first). It stays free credit and is never counted as money paid. */
|
|
65592
|
+
refunded_free: {
|
|
65593
|
+
currency: string;
|
|
65594
|
+
periods: components["schemas"]["AdminFreeCreditPeriods"];
|
|
65595
|
+
}[];
|
|
65596
|
+
top_consumers: {
|
|
65597
|
+
card_on_file: boolean;
|
|
65598
|
+
/** Format: int64 */
|
|
65599
|
+
consumed_minor: number;
|
|
65600
|
+
cost_unknown_hours: number;
|
|
65601
|
+
/** Format: int64 */
|
|
65602
|
+
cost_usd_minor: number;
|
|
65603
|
+
currency: string;
|
|
65604
|
+
/** Format: int64 */
|
|
65605
|
+
granted_minor: number;
|
|
65606
|
+
hours: number;
|
|
65607
|
+
name: string;
|
|
65608
|
+
org_id: components["schemas"]["Uuid"];
|
|
65609
|
+
paid: {
|
|
65610
|
+
currency: string;
|
|
65611
|
+
/** Format: int64 */
|
|
65612
|
+
minor: number;
|
|
65613
|
+
}[];
|
|
65614
|
+
/** @description `shared_<kind>` (a trial fingerprint shared with another customer org), `guard_flagged` / `guard_blocked`, `no_card_hash` (a method with no card hash, e.g. Link), `used_up_never_paid`. */
|
|
65615
|
+
signals: string[];
|
|
65616
|
+
}[];
|
|
65617
|
+
};
|
|
65400
65618
|
AdminFreePlanCustomer: {
|
|
65401
65619
|
came_from: string;
|
|
65402
65620
|
customer: string;
|
|
@@ -124933,6 +125151,65 @@ export interface operations {
|
|
|
124933
125151
|
429: components["responses"]["TooManyRequests"];
|
|
124934
125152
|
};
|
|
124935
125153
|
};
|
|
125154
|
+
getAbuseCase: {
|
|
125155
|
+
parameters: {
|
|
125156
|
+
query?: never;
|
|
125157
|
+
header?: never;
|
|
125158
|
+
path: {
|
|
125159
|
+
/** @description Abuse report ID (UUIDv7). */
|
|
125160
|
+
reportId: components["parameters"]["AbuseReportId"];
|
|
125161
|
+
};
|
|
125162
|
+
cookie?: never;
|
|
125163
|
+
};
|
|
125164
|
+
requestBody?: never;
|
|
125165
|
+
responses: {
|
|
125166
|
+
/** @description The case. */
|
|
125167
|
+
200: {
|
|
125168
|
+
headers: {
|
|
125169
|
+
[name: string]: unknown;
|
|
125170
|
+
};
|
|
125171
|
+
content: {
|
|
125172
|
+
"application/json": components["schemas"]["AdminAbuseCaseEnvelope"];
|
|
125173
|
+
};
|
|
125174
|
+
};
|
|
125175
|
+
401: components["responses"]["Unauthorized"];
|
|
125176
|
+
403: components["responses"]["Forbidden"];
|
|
125177
|
+
404: components["responses"]["NotFound"];
|
|
125178
|
+
429: components["responses"]["TooManyRequests"];
|
|
125179
|
+
};
|
|
125180
|
+
};
|
|
125181
|
+
actAbuseCase: {
|
|
125182
|
+
parameters: {
|
|
125183
|
+
query?: never;
|
|
125184
|
+
header?: never;
|
|
125185
|
+
path: {
|
|
125186
|
+
/** @description Abuse report ID (UUIDv7). */
|
|
125187
|
+
reportId: components["parameters"]["AbuseReportId"];
|
|
125188
|
+
};
|
|
125189
|
+
cookie?: never;
|
|
125190
|
+
};
|
|
125191
|
+
requestBody: {
|
|
125192
|
+
content: {
|
|
125193
|
+
"application/json": components["schemas"]["AdminAbuseCaseAction"];
|
|
125194
|
+
};
|
|
125195
|
+
};
|
|
125196
|
+
responses: {
|
|
125197
|
+
/** @description The case after the action. */
|
|
125198
|
+
200: {
|
|
125199
|
+
headers: {
|
|
125200
|
+
[name: string]: unknown;
|
|
125201
|
+
};
|
|
125202
|
+
content: {
|
|
125203
|
+
"application/json": components["schemas"]["AdminAbuseCaseEnvelope"];
|
|
125204
|
+
};
|
|
125205
|
+
};
|
|
125206
|
+
401: components["responses"]["Unauthorized"];
|
|
125207
|
+
403: components["responses"]["Forbidden"];
|
|
125208
|
+
404: components["responses"]["NotFound"];
|
|
125209
|
+
422: components["responses"]["UnprocessableEntity"];
|
|
125210
|
+
429: components["responses"]["TooManyRequests"];
|
|
125211
|
+
};
|
|
125212
|
+
};
|
|
124936
125213
|
getAdminAbuseGuard: {
|
|
124937
125214
|
parameters: {
|
|
124938
125215
|
query?: never;
|
|
@@ -134132,6 +134409,30 @@ export interface operations {
|
|
|
134132
134409
|
404: components["responses"]["NotFound"];
|
|
134133
134410
|
};
|
|
134134
134411
|
};
|
|
134412
|
+
getAdminFreeCreditReport: {
|
|
134413
|
+
parameters: {
|
|
134414
|
+
query?: never;
|
|
134415
|
+
header?: never;
|
|
134416
|
+
path?: never;
|
|
134417
|
+
cookie?: never;
|
|
134418
|
+
};
|
|
134419
|
+
requestBody?: never;
|
|
134420
|
+
responses: {
|
|
134421
|
+
/** @description The report. */
|
|
134422
|
+
200: {
|
|
134423
|
+
headers: {
|
|
134424
|
+
[name: string]: unknown;
|
|
134425
|
+
};
|
|
134426
|
+
content: {
|
|
134427
|
+
"application/json": {
|
|
134428
|
+
data: components["schemas"]["AdminFreeCreditReport"];
|
|
134429
|
+
};
|
|
134430
|
+
};
|
|
134431
|
+
};
|
|
134432
|
+
401: components["responses"]["Unauthorized"];
|
|
134433
|
+
403: components["responses"]["Forbidden"];
|
|
134434
|
+
};
|
|
134435
|
+
};
|
|
134135
134436
|
listAdminFreePlanCustomers: {
|
|
134136
134437
|
parameters: {
|
|
134137
134438
|
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.1984",
|
|
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>",
|