@farthershore/client 0.5.0 → 0.7.0
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/CHANGELOG.md +15 -0
- package/LICENSE +21 -0
- package/README.md +8 -4
- package/dist/index.js +275 -222
- package/dist/types/api.generated.d.ts +82 -62
- package/dist/types/generated/schemas.d.ts +168 -284
- package/dist/types/operations/audit-notifications.d.ts +4 -0
- package/dist/types/operations/auth.d.ts +175 -0
- package/dist/types/operations/billing.d.ts +4 -4
- package/dist/types/operations/businesses.d.ts +107 -17
- package/dist/types/operations/consumers.d.ts +145 -0
- package/dist/types/operations/index.d.ts +504 -209
- package/dist/types/operations/organizations.d.ts +7 -0
- package/dist/types/operations/platform.d.ts +6 -6
- package/dist/types/operations/portal.d.ts +43 -0
- package/dist/types/operations/webhooks.d.ts +2 -2
- package/dist/types/transport.d.ts +2 -0
- package/dist/types/types.d.ts +34 -34
- package/dist/types/version.d.ts +2 -2
- package/package.json +1 -1
- package/dist/types/operations/agreements.d.ts +0 -174
|
@@ -43,6 +43,7 @@ export declare const auditNotificationOperations: {
|
|
|
43
43
|
usage?: boolean;
|
|
44
44
|
access?: boolean;
|
|
45
45
|
product?: boolean;
|
|
46
|
+
marketing?: boolean;
|
|
46
47
|
deployments?: boolean;
|
|
47
48
|
team?: boolean;
|
|
48
49
|
security?: boolean;
|
|
@@ -54,6 +55,7 @@ export declare const auditNotificationOperations: {
|
|
|
54
55
|
usage?: boolean;
|
|
55
56
|
access?: boolean;
|
|
56
57
|
product?: boolean;
|
|
58
|
+
marketing?: boolean;
|
|
57
59
|
deployments?: boolean;
|
|
58
60
|
team?: boolean;
|
|
59
61
|
security?: boolean;
|
|
@@ -70,6 +72,7 @@ export declare const auditNotificationOperations: {
|
|
|
70
72
|
usage?: boolean;
|
|
71
73
|
access?: boolean;
|
|
72
74
|
product?: boolean;
|
|
75
|
+
marketing?: boolean;
|
|
73
76
|
deployments?: boolean;
|
|
74
77
|
team?: boolean;
|
|
75
78
|
security?: boolean;
|
|
@@ -81,6 +84,7 @@ export declare const auditNotificationOperations: {
|
|
|
81
84
|
usage?: boolean;
|
|
82
85
|
access?: boolean;
|
|
83
86
|
product?: boolean;
|
|
87
|
+
marketing?: boolean;
|
|
84
88
|
deployments?: boolean;
|
|
85
89
|
team?: boolean;
|
|
86
90
|
security?: boolean;
|
|
@@ -1,5 +1,180 @@
|
|
|
1
1
|
import type { CallerContext } from "../types.js";
|
|
2
2
|
export declare const authOperations: {
|
|
3
|
+
"account.erasure.read": import("./define.js").OperationEntry<void, {
|
|
4
|
+
id: string;
|
|
5
|
+
subjectKind: "builder_account";
|
|
6
|
+
subjectUserId: string;
|
|
7
|
+
requestedBy: "self" | "provider_event";
|
|
8
|
+
status: "pending" | "failed" | "running" | "refused" | "completed";
|
|
9
|
+
stepsCompleted: string[];
|
|
10
|
+
code: string | null;
|
|
11
|
+
createdAt: string;
|
|
12
|
+
updatedAt: string;
|
|
13
|
+
completedAt: string | null;
|
|
14
|
+
} | null, {
|
|
15
|
+
id: string;
|
|
16
|
+
subjectKind: "builder_account";
|
|
17
|
+
subjectUserId: string;
|
|
18
|
+
requestedBy: "self" | "provider_event";
|
|
19
|
+
status: "pending" | "failed" | "running" | "refused" | "completed";
|
|
20
|
+
stepsCompleted: string[];
|
|
21
|
+
code: string | null;
|
|
22
|
+
createdAt: string;
|
|
23
|
+
updatedAt: string;
|
|
24
|
+
completedAt: string | null;
|
|
25
|
+
} | null, false>;
|
|
26
|
+
"personalData.export": import("./define.js").OperationEntry<void, {
|
|
27
|
+
formatVersion: 1;
|
|
28
|
+
generatedAt: string;
|
|
29
|
+
profile: {
|
|
30
|
+
id: string;
|
|
31
|
+
primaryEmail: string | null;
|
|
32
|
+
displayName: string;
|
|
33
|
+
createdAt: string;
|
|
34
|
+
lastSeenAt: string | null;
|
|
35
|
+
};
|
|
36
|
+
organizations: {
|
|
37
|
+
organization: {
|
|
38
|
+
id: string;
|
|
39
|
+
name: string;
|
|
40
|
+
slug: string;
|
|
41
|
+
deletedAt: string | null;
|
|
42
|
+
};
|
|
43
|
+
role: {
|
|
44
|
+
key: string;
|
|
45
|
+
name: string;
|
|
46
|
+
};
|
|
47
|
+
createdAt: string;
|
|
48
|
+
}[];
|
|
49
|
+
legalAcceptances: {
|
|
50
|
+
document: string;
|
|
51
|
+
version: string;
|
|
52
|
+
acceptedAt: string;
|
|
53
|
+
surface: string;
|
|
54
|
+
}[];
|
|
55
|
+
notificationPreferences: {
|
|
56
|
+
businessId: string | null;
|
|
57
|
+
recipientOrganizationId: string | null;
|
|
58
|
+
emailOptOut: boolean;
|
|
59
|
+
categoryOptOuts: Record<string, boolean> | null;
|
|
60
|
+
}[];
|
|
61
|
+
credentials: {
|
|
62
|
+
apps: {
|
|
63
|
+
id: string;
|
|
64
|
+
name: string;
|
|
65
|
+
clientKind: string;
|
|
66
|
+
scopes: string[];
|
|
67
|
+
organizationId: string | null;
|
|
68
|
+
createdAt: string;
|
|
69
|
+
lastUsedAt: string | null;
|
|
70
|
+
revokedAt: string | null;
|
|
71
|
+
}[];
|
|
72
|
+
api: {
|
|
73
|
+
id: string;
|
|
74
|
+
name: string;
|
|
75
|
+
organizationId: string;
|
|
76
|
+
grantedPermissions: string[];
|
|
77
|
+
businessScopeMode: string;
|
|
78
|
+
createdAt: string;
|
|
79
|
+
lastUsedAt: string | null;
|
|
80
|
+
revokedAt: string | null;
|
|
81
|
+
}[];
|
|
82
|
+
};
|
|
83
|
+
recentAudit: {
|
|
84
|
+
limit: number;
|
|
85
|
+
hasMore: boolean;
|
|
86
|
+
entries: {
|
|
87
|
+
id: string;
|
|
88
|
+
action: string;
|
|
89
|
+
createdAt: string;
|
|
90
|
+
}[];
|
|
91
|
+
};
|
|
92
|
+
}, {
|
|
93
|
+
formatVersion: 1;
|
|
94
|
+
generatedAt: string;
|
|
95
|
+
profile: {
|
|
96
|
+
id: string;
|
|
97
|
+
primaryEmail: string | null;
|
|
98
|
+
displayName: string;
|
|
99
|
+
createdAt: string;
|
|
100
|
+
lastSeenAt: string | null;
|
|
101
|
+
};
|
|
102
|
+
organizations: {
|
|
103
|
+
organization: {
|
|
104
|
+
id: string;
|
|
105
|
+
name: string;
|
|
106
|
+
slug: string;
|
|
107
|
+
deletedAt: string | null;
|
|
108
|
+
};
|
|
109
|
+
role: {
|
|
110
|
+
key: string;
|
|
111
|
+
name: string;
|
|
112
|
+
};
|
|
113
|
+
createdAt: string;
|
|
114
|
+
}[];
|
|
115
|
+
legalAcceptances: {
|
|
116
|
+
document: string;
|
|
117
|
+
version: string;
|
|
118
|
+
acceptedAt: string;
|
|
119
|
+
surface: string;
|
|
120
|
+
}[];
|
|
121
|
+
notificationPreferences: {
|
|
122
|
+
businessId: string | null;
|
|
123
|
+
recipientOrganizationId: string | null;
|
|
124
|
+
emailOptOut: boolean;
|
|
125
|
+
categoryOptOuts: Record<string, boolean> | null;
|
|
126
|
+
}[];
|
|
127
|
+
credentials: {
|
|
128
|
+
apps: {
|
|
129
|
+
id: string;
|
|
130
|
+
name: string;
|
|
131
|
+
clientKind: string;
|
|
132
|
+
scopes: string[];
|
|
133
|
+
organizationId: string | null;
|
|
134
|
+
createdAt: string;
|
|
135
|
+
lastUsedAt: string | null;
|
|
136
|
+
revokedAt: string | null;
|
|
137
|
+
}[];
|
|
138
|
+
api: {
|
|
139
|
+
id: string;
|
|
140
|
+
name: string;
|
|
141
|
+
organizationId: string;
|
|
142
|
+
grantedPermissions: string[];
|
|
143
|
+
businessScopeMode: string;
|
|
144
|
+
createdAt: string;
|
|
145
|
+
lastUsedAt: string | null;
|
|
146
|
+
revokedAt: string | null;
|
|
147
|
+
}[];
|
|
148
|
+
};
|
|
149
|
+
recentAudit: {
|
|
150
|
+
limit: number;
|
|
151
|
+
hasMore: boolean;
|
|
152
|
+
entries: {
|
|
153
|
+
id: string;
|
|
154
|
+
action: string;
|
|
155
|
+
createdAt: string;
|
|
156
|
+
}[];
|
|
157
|
+
};
|
|
158
|
+
}, false>;
|
|
159
|
+
"platform.legal.read": import("./define.js").OperationEntry<void, {
|
|
160
|
+
accepted: ("terms" | "privacy" | "acceptableUse")[];
|
|
161
|
+
outstanding: ("terms" | "privacy" | "acceptableUse")[];
|
|
162
|
+
requiredVersions: {
|
|
163
|
+
terms: string;
|
|
164
|
+
privacy: string;
|
|
165
|
+
acceptableUse: string;
|
|
166
|
+
};
|
|
167
|
+
dashboardUrl: string;
|
|
168
|
+
}, {
|
|
169
|
+
accepted: ("terms" | "privacy" | "acceptableUse")[];
|
|
170
|
+
outstanding: ("terms" | "privacy" | "acceptableUse")[];
|
|
171
|
+
requiredVersions: {
|
|
172
|
+
terms: string;
|
|
173
|
+
privacy: string;
|
|
174
|
+
acceptableUse: string;
|
|
175
|
+
};
|
|
176
|
+
dashboardUrl: string;
|
|
177
|
+
}, false>;
|
|
3
178
|
"auth.context.read": import("./define.js").OperationEntry<void, CallerContext, CallerContext, false>;
|
|
4
179
|
"auth.context.issue": import("./define.js").OperationEntry<{
|
|
5
180
|
businessId: string;
|
|
@@ -5,14 +5,14 @@ type BusinessRef = {
|
|
|
5
5
|
export declare const billingOperations: {
|
|
6
6
|
"billing.stripe.read": import("./define.js").OperationEntry<BusinessRef, {
|
|
7
7
|
connected: boolean;
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
reconnectRequired?: true;
|
|
9
|
+
source: "organization";
|
|
10
10
|
chargesEnabled: boolean;
|
|
11
11
|
cardPaymentsEnabled: boolean;
|
|
12
12
|
}, {
|
|
13
13
|
connected: boolean;
|
|
14
|
-
|
|
15
|
-
|
|
14
|
+
reconnectRequired?: true;
|
|
15
|
+
source: "organization";
|
|
16
16
|
chargesEnabled: boolean;
|
|
17
17
|
cardPaymentsEnabled: boolean;
|
|
18
18
|
}, false>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { BrandAssetUploadResult, PublishBusinessBody } from "../types.js";
|
|
2
|
-
import { type ListQuery
|
|
1
|
+
import type { BrandAssetUploadResult, BusinessUpdateInput, PublishBusinessBody } from "../types.js";
|
|
2
|
+
import { type ListQuery } from "./define.js";
|
|
3
3
|
type BusinessRef = {
|
|
4
4
|
businessId: string;
|
|
5
5
|
};
|
|
@@ -21,6 +21,11 @@ export declare const businessOperations: {
|
|
|
21
21
|
id: string;
|
|
22
22
|
organizationId: string | null;
|
|
23
23
|
name: string;
|
|
24
|
+
sellerLaunchRefusal?: {
|
|
25
|
+
code: "SELLER_LAUNCH_REQUIREMENTS_MISSING";
|
|
26
|
+
settingsUrl: string;
|
|
27
|
+
message: string;
|
|
28
|
+
};
|
|
24
29
|
displayName: string | null;
|
|
25
30
|
description: string | null;
|
|
26
31
|
status: "DRAFT" | "ACTIVE";
|
|
@@ -51,6 +56,11 @@ export declare const businessOperations: {
|
|
|
51
56
|
id: string;
|
|
52
57
|
organizationId: string | null;
|
|
53
58
|
name: string;
|
|
59
|
+
sellerLaunchRefusal?: {
|
|
60
|
+
code: "SELLER_LAUNCH_REQUIREMENTS_MISSING";
|
|
61
|
+
settingsUrl: string;
|
|
62
|
+
message: string;
|
|
63
|
+
};
|
|
54
64
|
displayName: string | null;
|
|
55
65
|
description: string | null;
|
|
56
66
|
status: "DRAFT" | "ACTIVE";
|
|
@@ -82,6 +92,11 @@ export declare const businessOperations: {
|
|
|
82
92
|
id: string;
|
|
83
93
|
organizationId: string | null;
|
|
84
94
|
name: string;
|
|
95
|
+
sellerLaunchRefusal?: {
|
|
96
|
+
code: "SELLER_LAUNCH_REQUIREMENTS_MISSING";
|
|
97
|
+
settingsUrl: string;
|
|
98
|
+
message: string;
|
|
99
|
+
};
|
|
85
100
|
displayName: string | null;
|
|
86
101
|
description: string | null;
|
|
87
102
|
status: "DRAFT" | "ACTIVE";
|
|
@@ -108,11 +123,19 @@ export declare const businessOperations: {
|
|
|
108
123
|
previewEnvTrigger: "BRANCH_PREFIX" | "PULL_REQUEST" | "DISABLED";
|
|
109
124
|
createdAt: string;
|
|
110
125
|
updatedAt: string;
|
|
126
|
+
usageUnitLabels?: {
|
|
127
|
+
[key: string]: string;
|
|
128
|
+
};
|
|
111
129
|
environments: import("../generated/schemas.js").components["schemas"]["BusinessEnvironment"][];
|
|
112
130
|
}, {
|
|
113
131
|
id: string;
|
|
114
132
|
organizationId: string | null;
|
|
115
133
|
name: string;
|
|
134
|
+
sellerLaunchRefusal?: {
|
|
135
|
+
code: "SELLER_LAUNCH_REQUIREMENTS_MISSING";
|
|
136
|
+
settingsUrl: string;
|
|
137
|
+
message: string;
|
|
138
|
+
};
|
|
116
139
|
displayName: string | null;
|
|
117
140
|
description: string | null;
|
|
118
141
|
status: "DRAFT" | "ACTIVE";
|
|
@@ -139,6 +162,9 @@ export declare const businessOperations: {
|
|
|
139
162
|
previewEnvTrigger: "BRANCH_PREFIX" | "PULL_REQUEST" | "DISABLED";
|
|
140
163
|
createdAt: string;
|
|
141
164
|
updatedAt: string;
|
|
165
|
+
usageUnitLabels?: {
|
|
166
|
+
[key: string]: string;
|
|
167
|
+
};
|
|
142
168
|
environments: import("../generated/schemas.js").components["schemas"]["BusinessEnvironment"][];
|
|
143
169
|
}, false>;
|
|
144
170
|
"businesses.create": import("./define.js").OperationEntry<{
|
|
@@ -283,6 +309,11 @@ export declare const businessOperations: {
|
|
|
283
309
|
id: string;
|
|
284
310
|
organizationId: string | null;
|
|
285
311
|
name: string;
|
|
312
|
+
sellerLaunchRefusal?: {
|
|
313
|
+
code: "SELLER_LAUNCH_REQUIREMENTS_MISSING";
|
|
314
|
+
settingsUrl: string;
|
|
315
|
+
message: string;
|
|
316
|
+
};
|
|
286
317
|
displayName: string | null;
|
|
287
318
|
description: string | null;
|
|
288
319
|
status: "DRAFT" | "ACTIVE";
|
|
@@ -314,6 +345,11 @@ export declare const businessOperations: {
|
|
|
314
345
|
id: string;
|
|
315
346
|
organizationId: string | null;
|
|
316
347
|
name: string;
|
|
348
|
+
sellerLaunchRefusal?: {
|
|
349
|
+
code: "SELLER_LAUNCH_REQUIREMENTS_MISSING";
|
|
350
|
+
settingsUrl: string;
|
|
351
|
+
message: string;
|
|
352
|
+
};
|
|
317
353
|
displayName: string | null;
|
|
318
354
|
description: string | null;
|
|
319
355
|
status: "DRAFT" | "ACTIVE";
|
|
@@ -342,18 +378,6 @@ export declare const businessOperations: {
|
|
|
342
378
|
updatedAt: string;
|
|
343
379
|
_release: import("../generated/schemas.js").components["schemas"]["PublishRelease"];
|
|
344
380
|
}, true>;
|
|
345
|
-
"businesses.rollback": import("./define.js").OperationEntry<BusinessRef & {
|
|
346
|
-
publishId: string;
|
|
347
|
-
reason?: string;
|
|
348
|
-
}, {
|
|
349
|
-
businessId: string;
|
|
350
|
-
status: "enqueued";
|
|
351
|
-
rollbackPublishId: string;
|
|
352
|
-
}, {
|
|
353
|
-
businessId: string;
|
|
354
|
-
status: "enqueued";
|
|
355
|
-
rollbackPublishId: string;
|
|
356
|
-
}, false>;
|
|
357
381
|
"businesses.compile": import("./define.js").OperationEntry<BusinessRef & {
|
|
358
382
|
ir: unknown;
|
|
359
383
|
env?: string;
|
|
@@ -404,11 +428,16 @@ export declare const businessOperations: {
|
|
|
404
428
|
"businesses.brand.update": import("./define.js").OperationEntry<BusinessRef & {
|
|
405
429
|
env?: string;
|
|
406
430
|
} & {
|
|
407
|
-
body:
|
|
431
|
+
body: BusinessUpdateInput;
|
|
408
432
|
}, {
|
|
409
433
|
id: string;
|
|
410
434
|
organizationId: string | null;
|
|
411
435
|
name: string;
|
|
436
|
+
sellerLaunchRefusal?: {
|
|
437
|
+
code: "SELLER_LAUNCH_REQUIREMENTS_MISSING";
|
|
438
|
+
settingsUrl: string;
|
|
439
|
+
message: string;
|
|
440
|
+
};
|
|
412
441
|
displayName: string | null;
|
|
413
442
|
description: string | null;
|
|
414
443
|
status: "DRAFT" | "ACTIVE";
|
|
@@ -439,6 +468,11 @@ export declare const businessOperations: {
|
|
|
439
468
|
id: string;
|
|
440
469
|
organizationId: string | null;
|
|
441
470
|
name: string;
|
|
471
|
+
sellerLaunchRefusal?: {
|
|
472
|
+
code: "SELLER_LAUNCH_REQUIREMENTS_MISSING";
|
|
473
|
+
settingsUrl: string;
|
|
474
|
+
message: string;
|
|
475
|
+
};
|
|
442
476
|
displayName: string | null;
|
|
443
477
|
description: string | null;
|
|
444
478
|
status: "DRAFT" | "ACTIVE";
|
|
@@ -477,11 +511,16 @@ export declare const businessOperations: {
|
|
|
477
511
|
"businesses.previewEnv.set": import("./define.js").OperationEntry<BusinessRef & {
|
|
478
512
|
env?: string;
|
|
479
513
|
} & {
|
|
480
|
-
body:
|
|
514
|
+
body: BusinessUpdateInput;
|
|
481
515
|
}, {
|
|
482
516
|
id: string;
|
|
483
517
|
organizationId: string | null;
|
|
484
518
|
name: string;
|
|
519
|
+
sellerLaunchRefusal?: {
|
|
520
|
+
code: "SELLER_LAUNCH_REQUIREMENTS_MISSING";
|
|
521
|
+
settingsUrl: string;
|
|
522
|
+
message: string;
|
|
523
|
+
};
|
|
485
524
|
displayName: string | null;
|
|
486
525
|
description: string | null;
|
|
487
526
|
status: "DRAFT" | "ACTIVE";
|
|
@@ -512,6 +551,11 @@ export declare const businessOperations: {
|
|
|
512
551
|
id: string;
|
|
513
552
|
organizationId: string | null;
|
|
514
553
|
name: string;
|
|
554
|
+
sellerLaunchRefusal?: {
|
|
555
|
+
code: "SELLER_LAUNCH_REQUIREMENTS_MISSING";
|
|
556
|
+
settingsUrl: string;
|
|
557
|
+
message: string;
|
|
558
|
+
};
|
|
515
559
|
displayName: string | null;
|
|
516
560
|
description: string | null;
|
|
517
561
|
status: "DRAFT" | "ACTIVE";
|
|
@@ -543,6 +587,11 @@ export declare const businessOperations: {
|
|
|
543
587
|
id: string;
|
|
544
588
|
organizationId: string | null;
|
|
545
589
|
name: string;
|
|
590
|
+
sellerLaunchRefusal?: {
|
|
591
|
+
code: "SELLER_LAUNCH_REQUIREMENTS_MISSING";
|
|
592
|
+
settingsUrl: string;
|
|
593
|
+
message: string;
|
|
594
|
+
};
|
|
546
595
|
displayName: string | null;
|
|
547
596
|
description: string | null;
|
|
548
597
|
status: "DRAFT" | "ACTIVE";
|
|
@@ -573,6 +622,11 @@ export declare const businessOperations: {
|
|
|
573
622
|
id: string;
|
|
574
623
|
organizationId: string | null;
|
|
575
624
|
name: string;
|
|
625
|
+
sellerLaunchRefusal?: {
|
|
626
|
+
code: "SELLER_LAUNCH_REQUIREMENTS_MISSING";
|
|
627
|
+
settingsUrl: string;
|
|
628
|
+
message: string;
|
|
629
|
+
};
|
|
576
630
|
displayName: string | null;
|
|
577
631
|
description: string | null;
|
|
578
632
|
status: "DRAFT" | "ACTIVE";
|
|
@@ -604,6 +658,11 @@ export declare const businessOperations: {
|
|
|
604
658
|
id: string;
|
|
605
659
|
organizationId: string | null;
|
|
606
660
|
name: string;
|
|
661
|
+
sellerLaunchRefusal?: {
|
|
662
|
+
code: "SELLER_LAUNCH_REQUIREMENTS_MISSING";
|
|
663
|
+
settingsUrl: string;
|
|
664
|
+
message: string;
|
|
665
|
+
};
|
|
607
666
|
displayName: string | null;
|
|
608
667
|
description: string | null;
|
|
609
668
|
status: "DRAFT" | "ACTIVE";
|
|
@@ -634,6 +693,11 @@ export declare const businessOperations: {
|
|
|
634
693
|
id: string;
|
|
635
694
|
organizationId: string | null;
|
|
636
695
|
name: string;
|
|
696
|
+
sellerLaunchRefusal?: {
|
|
697
|
+
code: "SELLER_LAUNCH_REQUIREMENTS_MISSING";
|
|
698
|
+
settingsUrl: string;
|
|
699
|
+
message: string;
|
|
700
|
+
};
|
|
637
701
|
displayName: string | null;
|
|
638
702
|
description: string | null;
|
|
639
703
|
status: "DRAFT" | "ACTIVE";
|
|
@@ -664,11 +728,16 @@ export declare const businessOperations: {
|
|
|
664
728
|
"businesses.cors.update": import("./define.js").OperationEntry<BusinessRef & {
|
|
665
729
|
env?: string;
|
|
666
730
|
} & {
|
|
667
|
-
body:
|
|
731
|
+
body: BusinessUpdateInput;
|
|
668
732
|
}, {
|
|
669
733
|
id: string;
|
|
670
734
|
organizationId: string | null;
|
|
671
735
|
name: string;
|
|
736
|
+
sellerLaunchRefusal?: {
|
|
737
|
+
code: "SELLER_LAUNCH_REQUIREMENTS_MISSING";
|
|
738
|
+
settingsUrl: string;
|
|
739
|
+
message: string;
|
|
740
|
+
};
|
|
672
741
|
displayName: string | null;
|
|
673
742
|
description: string | null;
|
|
674
743
|
status: "DRAFT" | "ACTIVE";
|
|
@@ -699,6 +768,11 @@ export declare const businessOperations: {
|
|
|
699
768
|
id: string;
|
|
700
769
|
organizationId: string | null;
|
|
701
770
|
name: string;
|
|
771
|
+
sellerLaunchRefusal?: {
|
|
772
|
+
code: "SELLER_LAUNCH_REQUIREMENTS_MISSING";
|
|
773
|
+
settingsUrl: string;
|
|
774
|
+
message: string;
|
|
775
|
+
};
|
|
702
776
|
displayName: string | null;
|
|
703
777
|
description: string | null;
|
|
704
778
|
status: "DRAFT" | "ACTIVE";
|
|
@@ -730,6 +804,11 @@ export declare const businessOperations: {
|
|
|
730
804
|
id: string;
|
|
731
805
|
organizationId: string | null;
|
|
732
806
|
name: string;
|
|
807
|
+
sellerLaunchRefusal?: {
|
|
808
|
+
code: "SELLER_LAUNCH_REQUIREMENTS_MISSING";
|
|
809
|
+
settingsUrl: string;
|
|
810
|
+
message: string;
|
|
811
|
+
};
|
|
733
812
|
displayName: string | null;
|
|
734
813
|
description: string | null;
|
|
735
814
|
status: "DRAFT" | "ACTIVE";
|
|
@@ -756,11 +835,19 @@ export declare const businessOperations: {
|
|
|
756
835
|
previewEnvTrigger: "BRANCH_PREFIX" | "PULL_REQUEST" | "DISABLED";
|
|
757
836
|
createdAt: string;
|
|
758
837
|
updatedAt: string;
|
|
838
|
+
usageUnitLabels?: {
|
|
839
|
+
[key: string]: string;
|
|
840
|
+
};
|
|
759
841
|
environments: import("../generated/schemas.js").components["schemas"]["BusinessEnvironment"][];
|
|
760
842
|
}, {
|
|
761
843
|
id: string;
|
|
762
844
|
organizationId: string | null;
|
|
763
845
|
name: string;
|
|
846
|
+
sellerLaunchRefusal?: {
|
|
847
|
+
code: "SELLER_LAUNCH_REQUIREMENTS_MISSING";
|
|
848
|
+
settingsUrl: string;
|
|
849
|
+
message: string;
|
|
850
|
+
};
|
|
764
851
|
displayName: string | null;
|
|
765
852
|
description: string | null;
|
|
766
853
|
status: "DRAFT" | "ACTIVE";
|
|
@@ -787,6 +874,9 @@ export declare const businessOperations: {
|
|
|
787
874
|
previewEnvTrigger: "BRANCH_PREFIX" | "PULL_REQUEST" | "DISABLED";
|
|
788
875
|
createdAt: string;
|
|
789
876
|
updatedAt: string;
|
|
877
|
+
usageUnitLabels?: {
|
|
878
|
+
[key: string]: string;
|
|
879
|
+
};
|
|
790
880
|
environments: import("../generated/schemas.js").components["schemas"]["BusinessEnvironment"][];
|
|
791
881
|
}, false>;
|
|
792
882
|
"businesses.rbac.enable": import("./define.js").OperationEntry<BusinessRef, {
|
|
@@ -6,6 +6,114 @@ type RoleRef = SubscriberRef & {
|
|
|
6
6
|
roleKey: string;
|
|
7
7
|
};
|
|
8
8
|
export declare const consumerOperations: {
|
|
9
|
+
"consumers.data.export": import("./define.js").OperationEntry<SubscriberRef, {
|
|
10
|
+
formatVersion: 1;
|
|
11
|
+
generatedAt: string;
|
|
12
|
+
businessId: string;
|
|
13
|
+
truncated: boolean;
|
|
14
|
+
profile: {
|
|
15
|
+
id: string;
|
|
16
|
+
kind: string;
|
|
17
|
+
name: string | null;
|
|
18
|
+
email: string | null;
|
|
19
|
+
createdAt: string;
|
|
20
|
+
};
|
|
21
|
+
subscriptions: {
|
|
22
|
+
id: string;
|
|
23
|
+
status: string;
|
|
24
|
+
compiledPlanId: string | null;
|
|
25
|
+
}[];
|
|
26
|
+
apiKeys: {
|
|
27
|
+
name: string | null;
|
|
28
|
+
createdAt: string;
|
|
29
|
+
lastUsedAt: string | null;
|
|
30
|
+
}[];
|
|
31
|
+
legalAcceptances: {
|
|
32
|
+
ref: string;
|
|
33
|
+
version: string;
|
|
34
|
+
acceptedAt: string;
|
|
35
|
+
}[];
|
|
36
|
+
notificationPreferences: {
|
|
37
|
+
recipientId: string;
|
|
38
|
+
emailOptOut: boolean;
|
|
39
|
+
categoryOptOuts: Record<string, boolean> | null;
|
|
40
|
+
}[];
|
|
41
|
+
marketingEnabled: boolean;
|
|
42
|
+
membership: {
|
|
43
|
+
email: string | null;
|
|
44
|
+
role: string;
|
|
45
|
+
createdAt: string;
|
|
46
|
+
} | null;
|
|
47
|
+
}, {
|
|
48
|
+
formatVersion: 1;
|
|
49
|
+
generatedAt: string;
|
|
50
|
+
businessId: string;
|
|
51
|
+
truncated: boolean;
|
|
52
|
+
profile: {
|
|
53
|
+
id: string;
|
|
54
|
+
kind: string;
|
|
55
|
+
name: string | null;
|
|
56
|
+
email: string | null;
|
|
57
|
+
createdAt: string;
|
|
58
|
+
};
|
|
59
|
+
subscriptions: {
|
|
60
|
+
id: string;
|
|
61
|
+
status: string;
|
|
62
|
+
compiledPlanId: string | null;
|
|
63
|
+
}[];
|
|
64
|
+
apiKeys: {
|
|
65
|
+
name: string | null;
|
|
66
|
+
createdAt: string;
|
|
67
|
+
lastUsedAt: string | null;
|
|
68
|
+
}[];
|
|
69
|
+
legalAcceptances: {
|
|
70
|
+
ref: string;
|
|
71
|
+
version: string;
|
|
72
|
+
acceptedAt: string;
|
|
73
|
+
}[];
|
|
74
|
+
notificationPreferences: {
|
|
75
|
+
recipientId: string;
|
|
76
|
+
emailOptOut: boolean;
|
|
77
|
+
categoryOptOuts: Record<string, boolean> | null;
|
|
78
|
+
}[];
|
|
79
|
+
marketingEnabled: boolean;
|
|
80
|
+
membership: {
|
|
81
|
+
email: string | null;
|
|
82
|
+
role: string;
|
|
83
|
+
createdAt: string;
|
|
84
|
+
} | null;
|
|
85
|
+
}, false>;
|
|
86
|
+
"consumers.data.erasure.read": import("./define.js").OperationEntry<SubscriberRef, {
|
|
87
|
+
id: string;
|
|
88
|
+
subjectKind: "customer_for_business";
|
|
89
|
+
subjectUserId: null;
|
|
90
|
+
customerScopeKey: string;
|
|
91
|
+
subjectBusinessId: string;
|
|
92
|
+
subjectSubscriberId: string;
|
|
93
|
+
subjectPersonId: string | null;
|
|
94
|
+
requestedBy: "self";
|
|
95
|
+
status: "pending" | "failed" | "running" | "refused" | "completed";
|
|
96
|
+
stepsCompleted: string[];
|
|
97
|
+
code: string | null;
|
|
98
|
+
createdAt: string;
|
|
99
|
+
updatedAt: string;
|
|
100
|
+
completedAt: string | null;
|
|
101
|
+
} | null, {
|
|
102
|
+
id: string;
|
|
103
|
+
subjectKind: "customer_for_business";
|
|
104
|
+
subjectUserId: null;
|
|
105
|
+
customerScopeKey: string;
|
|
106
|
+
subjectBusinessId: string;
|
|
107
|
+
subjectSubscriberId: string;
|
|
108
|
+
subjectPersonId: string | null;
|
|
109
|
+
requestedBy: "self";
|
|
110
|
+
status: "pending" | "failed" | "running" | "refused" | "completed";
|
|
111
|
+
stepsCompleted: string[];
|
|
112
|
+
code: string | null;
|
|
113
|
+
createdAt: string;
|
|
114
|
+
updatedAt: string;
|
|
115
|
+
completedAt: string | null;
|
|
116
|
+
} | null, false>;
|
|
9
117
|
"consumers.read": import("./define.js").OperationEntry<{
|
|
10
118
|
businessId: string;
|
|
11
119
|
env?: string;
|
|
@@ -161,6 +269,43 @@ export declare const consumerOperations: {
|
|
|
161
269
|
}, {
|
|
162
270
|
apiKeys: import("../generated/schemas.js").components["schemas"]["ConsumerApiKey"][];
|
|
163
271
|
}, false>;
|
|
272
|
+
"consumers.balance.read": import("./define.js").OperationEntry<SubscriberRef, {
|
|
273
|
+
subscriberId: string;
|
|
274
|
+
balances: {
|
|
275
|
+
unit: {
|
|
276
|
+
key: string;
|
|
277
|
+
kind: "money" | "credits";
|
|
278
|
+
code: string;
|
|
279
|
+
displayName: string;
|
|
280
|
+
};
|
|
281
|
+
available: string;
|
|
282
|
+
granted: string;
|
|
283
|
+
revoked: string;
|
|
284
|
+
consumed: string;
|
|
285
|
+
exhausted: boolean;
|
|
286
|
+
source: "live" | "estimate";
|
|
287
|
+
asOf: string;
|
|
288
|
+
environment: string | null;
|
|
289
|
+
}[];
|
|
290
|
+
}, {
|
|
291
|
+
subscriberId: string;
|
|
292
|
+
balances: {
|
|
293
|
+
unit: {
|
|
294
|
+
key: string;
|
|
295
|
+
kind: "money" | "credits";
|
|
296
|
+
code: string;
|
|
297
|
+
displayName: string;
|
|
298
|
+
};
|
|
299
|
+
available: string;
|
|
300
|
+
granted: string;
|
|
301
|
+
revoked: string;
|
|
302
|
+
consumed: string;
|
|
303
|
+
exhausted: boolean;
|
|
304
|
+
source: "live" | "estimate";
|
|
305
|
+
asOf: string;
|
|
306
|
+
environment: string | null;
|
|
307
|
+
}[];
|
|
308
|
+
}, false>;
|
|
164
309
|
"consumers.apiKeys.revoke": import("./define.js").OperationEntry<SubscriberRef & {
|
|
165
310
|
keyId: string;
|
|
166
311
|
}, void, void, false>;
|