@spacefast/common 0.2.2 → 0.4.1
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/agents/marketplace-prompts.d.ts +1 -0
- package/dist/agents/marketplace-prompts.js +6 -0
- package/dist/agents/registry/core.d.ts +4 -12
- package/dist/agents/registry/core.js +7 -28
- package/dist/config/domains.d.ts +10 -8
- package/dist/config/domains.js +4 -7
- package/dist/contracts/access-core.d.ts +135 -0
- package/dist/contracts/access-core.js +242 -0
- package/dist/contracts/access-profiles.d.ts +8 -8
- package/dist/contracts/access-profiles.js +8 -8
- package/dist/contracts/access.d.ts +14 -103
- package/dist/contracts/access.js +10 -210
- package/dist/contracts/activity.d.ts +54 -55
- package/dist/contracts/activity.js +38 -9
- package/dist/contracts/api-keys.d.ts +69 -26
- package/dist/contracts/api-keys.js +29 -2
- package/dist/contracts/application-journal.d.ts +197 -4
- package/dist/contracts/application-journal.js +97 -16
- package/dist/contracts/auth.d.ts +20 -0
- package/dist/contracts/auth.js +18 -0
- package/dist/contracts/beta.d.ts +13 -0
- package/dist/contracts/beta.js +28 -0
- package/dist/contracts/billing.d.ts +2 -2
- package/dist/contracts/bootstrap.d.ts +23 -6
- package/dist/contracts/builds.d.ts +18 -4
- package/dist/contracts/builds.js +7 -4
- package/dist/contracts/channels.d.ts +43 -0
- package/dist/contracts/channels.js +22 -6
- package/dist/contracts/comments.d.ts +49 -0
- package/dist/contracts/comments.js +61 -2
- package/dist/contracts/commerce.d.ts +19 -13
- package/dist/contracts/connector-access.d.ts +28 -0
- package/dist/contracts/connector-access.js +31 -0
- package/dist/contracts/connectors.d.ts +2382 -0
- package/dist/contracts/connectors.js +941 -0
- package/dist/contracts/content-contract-verification.d.ts +112 -58
- package/dist/contracts/content-contract-verification.js +42 -54
- package/dist/contracts/content-model-emit.d.ts +97 -0
- package/dist/contracts/content-model-emit.js +306 -0
- package/dist/contracts/content-model-sdk.d.ts +101 -0
- package/dist/contracts/content-model-sdk.js +232 -0
- package/dist/contracts/{content-program.d.ts → content-model.d.ts} +338 -82
- package/dist/contracts/{content-program.js → content-model.js} +291 -63
- package/dist/contracts/content-platform-fixture.d.ts +380 -110
- package/dist/contracts/content-platform-fixture.js +8 -8
- package/dist/contracts/content-sync.d.ts +197 -74
- package/dist/contracts/content-sync.js +98 -37
- package/dist/contracts/content.d.ts +30 -422
- package/dist/contracts/content.js +34 -294
- package/dist/contracts/dashboard-prefs.d.ts +10 -3
- package/dist/contracts/dashboard-prefs.js +6 -3
- package/dist/contracts/data-location.d.ts +9 -0
- package/dist/contracts/data-location.js +7 -0
- package/dist/contracts/deployment-comparison.d.ts +67 -0
- package/dist/contracts/deployment-comparison.js +68 -0
- package/dist/contracts/device-auth.d.ts +55 -11
- package/dist/contracts/domains.d.ts +40 -16
- package/dist/contracts/domains.js +23 -0
- package/dist/contracts/enums.d.ts +1 -10
- package/dist/contracts/enums.js +0 -15
- package/dist/contracts/error-code-meta.d.ts +384 -20
- package/dist/contracts/error-code-meta.js +200 -5
- package/dist/contracts/error-codes.d.ts +17 -4
- package/dist/contracts/error-codes.js +108 -10
- package/dist/contracts/events.d.ts +5 -0
- package/dist/contracts/events.js +12 -3
- package/dist/contracts/execution.d.ts +5 -1
- package/dist/contracts/execution.js +4 -0
- package/dist/contracts/feature-lifecycle.d.ts +53 -20
- package/dist/contracts/feature-lifecycle.js +65 -23
- package/dist/contracts/features.d.ts +57 -31
- package/dist/contracts/features.js +0 -1
- package/dist/contracts/feedback.d.ts +124 -0
- package/dist/contracts/feedback.js +64 -0
- package/dist/contracts/fixtures/content-model-sdk-v1.generated.d.ts +129 -0
- package/dist/contracts/fixtures/content-model-sdk-v1.generated.js +48 -0
- package/dist/contracts/fixtures/content-platform-v1.json +101 -49
- package/dist/contracts/frame-session.d.ts +60 -10
- package/dist/contracts/frame-session.js +52 -12
- package/dist/contracts/functions.d.ts +28 -2
- package/dist/contracts/functions.js +25 -2
- package/dist/contracts/grant-copy.d.ts +2 -0
- package/dist/contracts/grant-copy.js +2 -0
- package/dist/contracts/grants-core.d.ts +95 -0
- package/dist/contracts/grants-core.js +435 -0
- package/dist/contracts/grants.d.ts +13 -84
- package/dist/contracts/grants.js +21 -369
- package/dist/contracts/ids-core.d.ts +11 -0
- package/dist/contracts/ids-core.js +14 -0
- package/dist/contracts/ids.d.ts +7 -4
- package/dist/contracts/ids.js +12 -4
- package/dist/contracts/internal.d.ts +18 -0
- package/dist/contracts/internal.js +19 -0
- package/dist/contracts/mcp.d.ts +8 -18
- package/dist/contracts/mcp.js +2 -23
- package/dist/contracts/notifications.d.ts +4 -1
- package/dist/contracts/notifications.js +1 -0
- package/dist/contracts/oauth-resources.d.ts +46 -9
- package/dist/contracts/oauth-resources.js +50 -1
- package/dist/contracts/oauth-scope-actions.d.ts +27 -3
- package/dist/contracts/oauth-scope-actions.js +18 -8
- package/dist/contracts/operations.d.ts +1 -1
- package/dist/contracts/partner-account.d.ts +629 -0
- package/dist/contracts/partner-account.js +18 -0
- package/dist/contracts/principal-assertion.d.ts +74 -1
- package/dist/contracts/principal-assertion.js +67 -3
- package/dist/contracts/publish-archive.d.ts +22 -1
- package/dist/contracts/push-new.d.ts +3 -3
- package/dist/contracts/push-new.js +1 -1
- package/dist/contracts/quotas.js +2 -1
- package/dist/contracts/repository-connections.d.ts +10 -6
- package/dist/contracts/repository-connections.js +15 -0
- package/dist/contracts/resources.d.ts +6 -5
- package/dist/contracts/resources.js +7 -0
- package/dist/contracts/route-inventory.d.ts +74 -19
- package/dist/contracts/route-inventory.js +20 -6
- package/dist/contracts/runtime-api.d.ts +415 -4
- package/dist/contracts/runtime-api.js +60 -15
- package/dist/contracts/runtime-app.d.ts +6 -1
- package/dist/contracts/runtime-components.d.ts +646 -18
- package/dist/contracts/runtime-components.js +304 -188
- package/dist/contracts/runtime-services.d.ts +15 -0
- package/dist/contracts/runtime-services.js +25 -0
- package/dist/contracts/runtime-storage.d.ts +32 -0
- package/dist/contracts/runtime-storage.js +37 -0
- package/dist/contracts/source-workspaces.d.ts +511 -0
- package/dist/contracts/source-workspaces.js +276 -0
- package/dist/contracts/space-config-spacefast.d.ts +394 -0
- package/dist/contracts/space-config-spacefast.js +70 -0
- package/dist/contracts/space-config.d.ts +177 -90
- package/dist/contracts/space-config.js +77 -92
- package/dist/contracts/spaces.d.ts +132 -24
- package/dist/contracts/spaces.js +77 -13
- package/dist/contracts/superadmin-connectors.d.ts +371 -0
- package/dist/contracts/superadmin-connectors.js +61 -0
- package/dist/contracts/superadmin-emails.d.ts +1 -1
- package/dist/contracts/superadmin-emails.js +1 -1
- package/dist/contracts/superadmin-entities.d.ts +105 -0
- package/dist/contracts/superadmin-entities.js +64 -0
- package/dist/contracts/superadmin-runtime.d.ts +35 -116
- package/dist/contracts/superadmin-runtime.js +13 -69
- package/dist/contracts/superadmin-search.d.ts +12 -14
- package/dist/contracts/superadmin-search.js +2 -2
- package/dist/contracts/superadmin-spaces.d.ts +15 -72
- package/dist/contracts/superadmin-spaces.js +2 -7
- package/dist/contracts/superadmin-teams.d.ts +12 -0
- package/dist/contracts/superadmin-teams.js +7 -1
- package/dist/contracts/superadmin-tenants.d.ts +44 -16
- package/dist/contracts/superadmin.d.ts +2 -2
- package/dist/contracts/tags.d.ts +12 -12
- package/dist/contracts/teams.d.ts +29 -1
- package/dist/contracts/teams.js +24 -2
- package/dist/contracts/tenants.d.ts +98 -0
- package/dist/contracts/tenants.js +20 -0
- package/dist/contracts/transfers.d.ts +92 -0
- package/dist/contracts/transfers.js +37 -0
- package/dist/contracts/usage.d.ts +9 -1
- package/dist/contracts/usage.js +2 -0
- package/dist/contracts/visual-review.d.ts +448 -0
- package/dist/contracts/visual-review.js +156 -0
- package/dist/contracts/wordpress-php-toolkit.json +9 -0
- package/dist/contracts/work-mode.d.ts +24 -0
- package/dist/contracts/work-mode.js +17 -0
- package/dist/contracts/wp-cli.d.ts +66 -0
- package/dist/contracts/wp-cli.js +68 -0
- package/dist/contracts/zero-catalog.d.ts +29 -0
- package/dist/contracts/zero-catalog.js +55 -0
- package/dist/contracts/zero-platform-abilities.generated.d.ts +31 -0
- package/dist/contracts/zero-platform-abilities.generated.js +373 -0
- package/dist/contracts/zero-spacefast.d.ts +444 -0
- package/dist/contracts/zero-spacefast.js +149 -0
- package/dist/contracts/zero-types.d.ts +47 -0
- package/dist/contracts/zero-types.js +263 -0
- package/dist/contracts/zero.d.ts +781 -14
- package/dist/contracts/zero.js +204 -10
- package/dist/dashboard-paths/index.d.ts +2 -2
- package/dist/dashboard-paths/route-reservations.generated.d.ts +2 -2
- package/dist/dashboard-paths/route-reservations.generated.js +5 -0
- package/dist/docs/agent-prose.d.ts +1 -1
- package/dist/docs/agent-prose.js +15 -18
- package/dist/docs/agent-setup.d.ts +1 -1
- package/dist/docs/agent-setup.js +5 -13
- package/dist/docs/catalog.d.ts +64 -28
- package/dist/docs/catalog.js +155 -28
- package/dist/docs/error-docs.d.ts +361 -17
- package/dist/docs/error-docs.js +365 -21
- package/dist/docs/reference-urls.js +1 -1
- package/dist/docs/skills.d.ts +84 -84
- package/dist/docs/skills.js +66 -47
- package/dist/docs/start-prompts.d.ts +14 -0
- package/dist/docs/start-prompts.js +20 -0
- package/dist/utils/account-labels.d.ts +7 -0
- package/dist/utils/account-labels.js +15 -0
- package/dist/utils/auth.d.ts +1 -0
- package/dist/utils/auth.js +1 -0
- package/dist/utils/credential-policy.d.ts +22 -1
- package/dist/utils/credential-policy.js +55 -6
- package/dist/utils/local-space-state.d.ts +7 -0
- package/dist/utils/local-space-state.js +7 -0
- package/dist/utils/logger.d.ts +34 -0
- package/dist/utils/logger.js +144 -0
- package/dist/utils/page-routes.d.ts +9 -0
- package/dist/utils/page-routes.js +82 -0
- package/dist/utils/pages.d.ts +2 -0
- package/dist/utils/pages.js +7 -0
- package/dist/utils/publish-form-data.d.ts +2 -0
- package/dist/utils/publish-form-data.js +2 -0
- package/dist/utils/publish-policy-spacefast.d.ts +13 -0
- package/dist/utils/publish-policy-spacefast.js +117 -0
- package/dist/utils/publish-policy.d.ts +22 -16
- package/dist/utils/publish-policy.fixtures.json +15 -0
- package/dist/utils/publish-policy.js +62 -139
- package/dist/utils/query-client.js +9 -1
- package/dist/utils/runtime-upload.d.ts +4 -0
- package/dist/utils/runtime-upload.js +5 -0
- package/dist/utils/space-config.d.ts +2 -3
- package/dist/utils/space-config.js +1 -1
- package/dist/utils/uploaded-source.d.ts +4 -0
- package/dist/utils/uploaded-source.js +12 -0
- package/dist/visual-review.d.ts +4 -0
- package/dist/visual-review.js +208 -0
- package/dist/vocabulary.d.ts +38 -0
- package/dist/vocabulary.js +55 -0
- package/package.json +7 -2
- package/dist/agents/registry/deeplink-probes.d.ts +0 -23
- package/dist/agents/registry/deeplink-probes.js +0 -18
|
@@ -0,0 +1,629 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const PartnerAccountSchema: z.ZodObject<{
|
|
3
|
+
teamId: z.ZodString;
|
|
4
|
+
live: z.ZodObject<{
|
|
5
|
+
id: z.ZodString;
|
|
6
|
+
kind: z.ZodEnum<{
|
|
7
|
+
internal: "internal";
|
|
8
|
+
main: "main";
|
|
9
|
+
partner: "partner";
|
|
10
|
+
}>;
|
|
11
|
+
mode: z.ZodEnum<{
|
|
12
|
+
live: "live";
|
|
13
|
+
test: "test";
|
|
14
|
+
}>;
|
|
15
|
+
status: z.ZodEnum<{
|
|
16
|
+
active: "active";
|
|
17
|
+
past_due: "past_due";
|
|
18
|
+
suspended: "suspended";
|
|
19
|
+
deleted: "deleted";
|
|
20
|
+
}>;
|
|
21
|
+
name: z.ZodString;
|
|
22
|
+
domainSetup: z.ZodOptional<z.ZodObject<{
|
|
23
|
+
api: z.ZodNullable<z.ZodObject<{
|
|
24
|
+
origin: z.ZodString;
|
|
25
|
+
dnsInstructions: z.ZodArray<z.ZodObject<{
|
|
26
|
+
type: z.ZodEnum<{
|
|
27
|
+
A: "A";
|
|
28
|
+
AAAA: "AAAA";
|
|
29
|
+
CNAME: "CNAME";
|
|
30
|
+
TXT: "TXT";
|
|
31
|
+
ALIAS: "ALIAS";
|
|
32
|
+
}>;
|
|
33
|
+
name: z.ZodString;
|
|
34
|
+
value: z.ZodString;
|
|
35
|
+
ttl: z.ZodOptional<z.ZodNumber>;
|
|
36
|
+
purpose: z.ZodEnum<{
|
|
37
|
+
verification: "verification";
|
|
38
|
+
routing: "routing";
|
|
39
|
+
ssl: "ssl";
|
|
40
|
+
}>;
|
|
41
|
+
}, z.core.$strip>>;
|
|
42
|
+
probeUrl: z.ZodString;
|
|
43
|
+
upstreamOrigin: z.ZodString;
|
|
44
|
+
proxyHeaders: z.ZodObject<{
|
|
45
|
+
"x-spacefast-tenant-id": z.ZodString;
|
|
46
|
+
}, z.core.$strip>;
|
|
47
|
+
}, z.core.$strip>>;
|
|
48
|
+
hostnames: z.ZodNullable<z.ZodObject<{
|
|
49
|
+
apex: z.ZodString;
|
|
50
|
+
dnsInstructions: z.ZodArray<z.ZodObject<{
|
|
51
|
+
type: z.ZodEnum<{
|
|
52
|
+
A: "A";
|
|
53
|
+
AAAA: "AAAA";
|
|
54
|
+
CNAME: "CNAME";
|
|
55
|
+
TXT: "TXT";
|
|
56
|
+
ALIAS: "ALIAS";
|
|
57
|
+
}>;
|
|
58
|
+
name: z.ZodString;
|
|
59
|
+
value: z.ZodString;
|
|
60
|
+
ttl: z.ZodOptional<z.ZodNumber>;
|
|
61
|
+
purpose: z.ZodEnum<{
|
|
62
|
+
verification: "verification";
|
|
63
|
+
routing: "routing";
|
|
64
|
+
ssl: "ssl";
|
|
65
|
+
}>;
|
|
66
|
+
}, z.core.$strip>>;
|
|
67
|
+
}, z.core.$strip>>;
|
|
68
|
+
}, z.core.$strip>>;
|
|
69
|
+
defaultRegion: z.ZodNullable<z.ZodString>;
|
|
70
|
+
provisioning: z.ZodObject<{
|
|
71
|
+
mode: z.ZodEnum<{
|
|
72
|
+
managed: "managed";
|
|
73
|
+
byo: "byo";
|
|
74
|
+
}>;
|
|
75
|
+
providerClientId: z.ZodNullable<z.ZodString>;
|
|
76
|
+
}, z.core.$strip>;
|
|
77
|
+
systemSpaceId: z.ZodNullable<z.ZodString>;
|
|
78
|
+
manifestStatus: z.ZodObject<{
|
|
79
|
+
items: z.ZodArray<z.ZodObject<{
|
|
80
|
+
key: z.ZodString;
|
|
81
|
+
state: z.ZodEnum<{
|
|
82
|
+
active: "active";
|
|
83
|
+
failed: "failed";
|
|
84
|
+
pending: "pending";
|
|
85
|
+
}>;
|
|
86
|
+
detail: z.ZodOptional<z.ZodString>;
|
|
87
|
+
since: z.ZodString;
|
|
88
|
+
challenge: z.ZodOptional<z.ZodString>;
|
|
89
|
+
audience: z.ZodOptional<z.ZodString>;
|
|
90
|
+
}, z.core.$strip>>;
|
|
91
|
+
sourceVersionId: z.ZodNullable<z.ZodString>;
|
|
92
|
+
}, z.core.$strip>;
|
|
93
|
+
presentation: z.ZodNullable<z.ZodObject<{
|
|
94
|
+
name: z.ZodOptional<z.ZodString>;
|
|
95
|
+
logo: z.ZodOptional<z.ZodString>;
|
|
96
|
+
supportUrl: z.ZodOptional<z.ZodString>;
|
|
97
|
+
claimOrigin: z.ZodOptional<z.ZodString>;
|
|
98
|
+
accessHandoffOrigin: z.ZodOptional<z.ZodString>;
|
|
99
|
+
problemDocsBaseUrl: z.ZodOptional<z.ZodString>;
|
|
100
|
+
contacts: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
101
|
+
}, z.core.$strict>>;
|
|
102
|
+
createdAt: z.ZodString;
|
|
103
|
+
updatedAt: z.ZodString;
|
|
104
|
+
}, z.core.$strip>;
|
|
105
|
+
test: z.ZodObject<{
|
|
106
|
+
id: z.ZodString;
|
|
107
|
+
kind: z.ZodEnum<{
|
|
108
|
+
internal: "internal";
|
|
109
|
+
main: "main";
|
|
110
|
+
partner: "partner";
|
|
111
|
+
}>;
|
|
112
|
+
mode: z.ZodEnum<{
|
|
113
|
+
live: "live";
|
|
114
|
+
test: "test";
|
|
115
|
+
}>;
|
|
116
|
+
status: z.ZodEnum<{
|
|
117
|
+
active: "active";
|
|
118
|
+
past_due: "past_due";
|
|
119
|
+
suspended: "suspended";
|
|
120
|
+
deleted: "deleted";
|
|
121
|
+
}>;
|
|
122
|
+
name: z.ZodString;
|
|
123
|
+
domainSetup: z.ZodOptional<z.ZodObject<{
|
|
124
|
+
api: z.ZodNullable<z.ZodObject<{
|
|
125
|
+
origin: z.ZodString;
|
|
126
|
+
dnsInstructions: z.ZodArray<z.ZodObject<{
|
|
127
|
+
type: z.ZodEnum<{
|
|
128
|
+
A: "A";
|
|
129
|
+
AAAA: "AAAA";
|
|
130
|
+
CNAME: "CNAME";
|
|
131
|
+
TXT: "TXT";
|
|
132
|
+
ALIAS: "ALIAS";
|
|
133
|
+
}>;
|
|
134
|
+
name: z.ZodString;
|
|
135
|
+
value: z.ZodString;
|
|
136
|
+
ttl: z.ZodOptional<z.ZodNumber>;
|
|
137
|
+
purpose: z.ZodEnum<{
|
|
138
|
+
verification: "verification";
|
|
139
|
+
routing: "routing";
|
|
140
|
+
ssl: "ssl";
|
|
141
|
+
}>;
|
|
142
|
+
}, z.core.$strip>>;
|
|
143
|
+
probeUrl: z.ZodString;
|
|
144
|
+
upstreamOrigin: z.ZodString;
|
|
145
|
+
proxyHeaders: z.ZodObject<{
|
|
146
|
+
"x-spacefast-tenant-id": z.ZodString;
|
|
147
|
+
}, z.core.$strip>;
|
|
148
|
+
}, z.core.$strip>>;
|
|
149
|
+
hostnames: z.ZodNullable<z.ZodObject<{
|
|
150
|
+
apex: z.ZodString;
|
|
151
|
+
dnsInstructions: z.ZodArray<z.ZodObject<{
|
|
152
|
+
type: z.ZodEnum<{
|
|
153
|
+
A: "A";
|
|
154
|
+
AAAA: "AAAA";
|
|
155
|
+
CNAME: "CNAME";
|
|
156
|
+
TXT: "TXT";
|
|
157
|
+
ALIAS: "ALIAS";
|
|
158
|
+
}>;
|
|
159
|
+
name: z.ZodString;
|
|
160
|
+
value: z.ZodString;
|
|
161
|
+
ttl: z.ZodOptional<z.ZodNumber>;
|
|
162
|
+
purpose: z.ZodEnum<{
|
|
163
|
+
verification: "verification";
|
|
164
|
+
routing: "routing";
|
|
165
|
+
ssl: "ssl";
|
|
166
|
+
}>;
|
|
167
|
+
}, z.core.$strip>>;
|
|
168
|
+
}, z.core.$strip>>;
|
|
169
|
+
}, z.core.$strip>>;
|
|
170
|
+
defaultRegion: z.ZodNullable<z.ZodString>;
|
|
171
|
+
provisioning: z.ZodObject<{
|
|
172
|
+
mode: z.ZodEnum<{
|
|
173
|
+
managed: "managed";
|
|
174
|
+
byo: "byo";
|
|
175
|
+
}>;
|
|
176
|
+
providerClientId: z.ZodNullable<z.ZodString>;
|
|
177
|
+
}, z.core.$strip>;
|
|
178
|
+
systemSpaceId: z.ZodNullable<z.ZodString>;
|
|
179
|
+
manifestStatus: z.ZodObject<{
|
|
180
|
+
items: z.ZodArray<z.ZodObject<{
|
|
181
|
+
key: z.ZodString;
|
|
182
|
+
state: z.ZodEnum<{
|
|
183
|
+
active: "active";
|
|
184
|
+
failed: "failed";
|
|
185
|
+
pending: "pending";
|
|
186
|
+
}>;
|
|
187
|
+
detail: z.ZodOptional<z.ZodString>;
|
|
188
|
+
since: z.ZodString;
|
|
189
|
+
challenge: z.ZodOptional<z.ZodString>;
|
|
190
|
+
audience: z.ZodOptional<z.ZodString>;
|
|
191
|
+
}, z.core.$strip>>;
|
|
192
|
+
sourceVersionId: z.ZodNullable<z.ZodString>;
|
|
193
|
+
}, z.core.$strip>;
|
|
194
|
+
presentation: z.ZodNullable<z.ZodObject<{
|
|
195
|
+
name: z.ZodOptional<z.ZodString>;
|
|
196
|
+
logo: z.ZodOptional<z.ZodString>;
|
|
197
|
+
supportUrl: z.ZodOptional<z.ZodString>;
|
|
198
|
+
claimOrigin: z.ZodOptional<z.ZodString>;
|
|
199
|
+
accessHandoffOrigin: z.ZodOptional<z.ZodString>;
|
|
200
|
+
problemDocsBaseUrl: z.ZodOptional<z.ZodString>;
|
|
201
|
+
contacts: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
202
|
+
}, z.core.$strict>>;
|
|
203
|
+
createdAt: z.ZodString;
|
|
204
|
+
updatedAt: z.ZodString;
|
|
205
|
+
}, z.core.$strip>;
|
|
206
|
+
}, z.core.$strip>;
|
|
207
|
+
export declare const TenantApiKeyCreateSchema: z.ZodObject<{
|
|
208
|
+
name: z.ZodOptional<z.ZodString>;
|
|
209
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
210
|
+
expiresAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
211
|
+
notBefore: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
212
|
+
ipAllowlist: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
213
|
+
permissions: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
214
|
+
"teams:read": "teams:read";
|
|
215
|
+
"teams:create": "teams:create";
|
|
216
|
+
"teams:members.write": "teams:members.write";
|
|
217
|
+
"spaces:read": "spaces:read";
|
|
218
|
+
"spaces:write": "spaces:write";
|
|
219
|
+
"spaces:rename": "spaces:rename";
|
|
220
|
+
"spaces:delete": "spaces:delete";
|
|
221
|
+
"versions:download": "versions:download";
|
|
222
|
+
"domains:read": "domains:read";
|
|
223
|
+
"connectors:read": "connectors:read";
|
|
224
|
+
"connectors:write": "connectors:write";
|
|
225
|
+
"connectors:execute": "connectors:execute";
|
|
226
|
+
"spaces:publish": "spaces:publish";
|
|
227
|
+
"builds:trigger": "builds:trigger";
|
|
228
|
+
"*": "*";
|
|
229
|
+
"spaces:create": "spaces:create";
|
|
230
|
+
"spaces:transfer": "spaces:transfer";
|
|
231
|
+
"spaces:export": "spaces:export";
|
|
232
|
+
"spaces:import": "spaces:import";
|
|
233
|
+
"spaces:policy.write": "spaces:policy.write";
|
|
234
|
+
"versions:read": "versions:read";
|
|
235
|
+
"versions:promote": "versions:promote";
|
|
236
|
+
"versions:delete": "versions:delete";
|
|
237
|
+
"domains:create": "domains:create";
|
|
238
|
+
"domains:verify": "domains:verify";
|
|
239
|
+
"domains:assign": "domains:assign";
|
|
240
|
+
"domains:bind": "domains:bind";
|
|
241
|
+
"domains:delete": "domains:delete";
|
|
242
|
+
"domains:dns.write": "domains:dns.write";
|
|
243
|
+
"domains:dns.credentials.write": "domains:dns.credentials.write";
|
|
244
|
+
"domains:purchase": "domains:purchase";
|
|
245
|
+
"webhooks:read": "webhooks:read";
|
|
246
|
+
"webhooks:write": "webhooks:write";
|
|
247
|
+
"builds:read": "builds:read";
|
|
248
|
+
"builds:create": "builds:create";
|
|
249
|
+
"variables:read": "variables:read";
|
|
250
|
+
"variables:write": "variables:write";
|
|
251
|
+
"tenants:read": "tenants:read";
|
|
252
|
+
"tenants:write": "tenants:write";
|
|
253
|
+
"principals:read": "principals:read";
|
|
254
|
+
"principals:write": "principals:write";
|
|
255
|
+
"infrastructure:read": "infrastructure:read";
|
|
256
|
+
"teams:write": "teams:write";
|
|
257
|
+
"billing:read": "billing:read";
|
|
258
|
+
"billing:write": "billing:write";
|
|
259
|
+
"tokens:read": "tokens:read";
|
|
260
|
+
"tokens:create": "tokens:create";
|
|
261
|
+
"tokens:revoke": "tokens:revoke";
|
|
262
|
+
"runtime:manage": "runtime:manage";
|
|
263
|
+
}>>>;
|
|
264
|
+
}, z.core.$strict>;
|
|
265
|
+
export type TenantApiKeyCreate = z.infer<typeof TenantApiKeyCreateSchema>;
|
|
266
|
+
export declare const TenantApiKeyMetadataSchema: z.ZodObject<{
|
|
267
|
+
id: z.ZodString;
|
|
268
|
+
name: z.ZodNullable<z.ZodString>;
|
|
269
|
+
mode: z.ZodEnum<{
|
|
270
|
+
live: "live";
|
|
271
|
+
test: "test";
|
|
272
|
+
}>;
|
|
273
|
+
collection: z.ZodEnum<{
|
|
274
|
+
team: "team";
|
|
275
|
+
tenant: "tenant";
|
|
276
|
+
}>;
|
|
277
|
+
enabled: z.ZodBoolean;
|
|
278
|
+
metadata: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
279
|
+
expiresAt: z.ZodNullable<z.ZodString>;
|
|
280
|
+
createdAt: z.ZodString;
|
|
281
|
+
tenantId: z.ZodNullable<z.ZodString>;
|
|
282
|
+
updatedAt: z.ZodString;
|
|
283
|
+
notBefore: z.ZodNullable<z.ZodString>;
|
|
284
|
+
subject: z.ZodNullable<z.ZodObject<{
|
|
285
|
+
type: z.ZodEnum<{
|
|
286
|
+
team: "team";
|
|
287
|
+
external: "external";
|
|
288
|
+
system: "system";
|
|
289
|
+
user: "user";
|
|
290
|
+
}>;
|
|
291
|
+
id: z.ZodString;
|
|
292
|
+
}, z.core.$strip>>;
|
|
293
|
+
ownerPrincipal: z.ZodNullable<z.ZodObject<{
|
|
294
|
+
type: z.ZodEnum<{
|
|
295
|
+
team: "team";
|
|
296
|
+
external: "external";
|
|
297
|
+
}>;
|
|
298
|
+
id: z.ZodString;
|
|
299
|
+
}, z.core.$strip>>;
|
|
300
|
+
createdByUserId: z.ZodNullable<z.ZodString>;
|
|
301
|
+
preset: z.ZodNullable<z.ZodEnum<{
|
|
302
|
+
ci_deploy: "ci_deploy";
|
|
303
|
+
space_publisher: "space_publisher";
|
|
304
|
+
space_admin: "space_admin";
|
|
305
|
+
domain_manager: "domain_manager";
|
|
306
|
+
team_admin: "team_admin";
|
|
307
|
+
billing_viewer: "billing_viewer";
|
|
308
|
+
partner_admin: "partner_admin";
|
|
309
|
+
}>>;
|
|
310
|
+
teamScope: z.ZodNullable<z.ZodType<import("./device-team-scope.js").DeviceTeamScope, unknown, z.core.$ZodTypeInternals<import("./device-team-scope.js").DeviceTeamScope, unknown>>>;
|
|
311
|
+
policy: z.ZodNullable<z.ZodObject<{
|
|
312
|
+
version: z.ZodLiteral<"2026-06-09">;
|
|
313
|
+
statements: z.ZodArray<z.ZodObject<{
|
|
314
|
+
effect: z.ZodEnum<{
|
|
315
|
+
allow: "allow";
|
|
316
|
+
deny: "deny";
|
|
317
|
+
}>;
|
|
318
|
+
actions: z.ZodArray<z.ZodEnum<{
|
|
319
|
+
"teams:read": "teams:read";
|
|
320
|
+
"teams:create": "teams:create";
|
|
321
|
+
"teams:members.write": "teams:members.write";
|
|
322
|
+
"spaces:read": "spaces:read";
|
|
323
|
+
"spaces:write": "spaces:write";
|
|
324
|
+
"spaces:rename": "spaces:rename";
|
|
325
|
+
"spaces:delete": "spaces:delete";
|
|
326
|
+
"versions:download": "versions:download";
|
|
327
|
+
"domains:read": "domains:read";
|
|
328
|
+
"connectors:read": "connectors:read";
|
|
329
|
+
"connectors:write": "connectors:write";
|
|
330
|
+
"connectors:execute": "connectors:execute";
|
|
331
|
+
"spaces:publish": "spaces:publish";
|
|
332
|
+
"builds:trigger": "builds:trigger";
|
|
333
|
+
"*": "*";
|
|
334
|
+
"spaces:create": "spaces:create";
|
|
335
|
+
"spaces:transfer": "spaces:transfer";
|
|
336
|
+
"spaces:export": "spaces:export";
|
|
337
|
+
"spaces:import": "spaces:import";
|
|
338
|
+
"spaces:policy.write": "spaces:policy.write";
|
|
339
|
+
"versions:read": "versions:read";
|
|
340
|
+
"versions:promote": "versions:promote";
|
|
341
|
+
"versions:delete": "versions:delete";
|
|
342
|
+
"domains:create": "domains:create";
|
|
343
|
+
"domains:verify": "domains:verify";
|
|
344
|
+
"domains:assign": "domains:assign";
|
|
345
|
+
"domains:bind": "domains:bind";
|
|
346
|
+
"domains:delete": "domains:delete";
|
|
347
|
+
"domains:dns.write": "domains:dns.write";
|
|
348
|
+
"domains:dns.credentials.write": "domains:dns.credentials.write";
|
|
349
|
+
"domains:purchase": "domains:purchase";
|
|
350
|
+
"webhooks:read": "webhooks:read";
|
|
351
|
+
"webhooks:write": "webhooks:write";
|
|
352
|
+
"builds:read": "builds:read";
|
|
353
|
+
"builds:create": "builds:create";
|
|
354
|
+
"variables:read": "variables:read";
|
|
355
|
+
"variables:write": "variables:write";
|
|
356
|
+
"tenants:read": "tenants:read";
|
|
357
|
+
"tenants:write": "tenants:write";
|
|
358
|
+
"principals:read": "principals:read";
|
|
359
|
+
"principals:write": "principals:write";
|
|
360
|
+
"infrastructure:read": "infrastructure:read";
|
|
361
|
+
"teams:write": "teams:write";
|
|
362
|
+
"billing:read": "billing:read";
|
|
363
|
+
"billing:write": "billing:write";
|
|
364
|
+
"tokens:read": "tokens:read";
|
|
365
|
+
"tokens:create": "tokens:create";
|
|
366
|
+
"tokens:revoke": "tokens:revoke";
|
|
367
|
+
"runtime:manage": "runtime:manage";
|
|
368
|
+
}>>;
|
|
369
|
+
resources: z.ZodArray<z.ZodString>;
|
|
370
|
+
conditions: z.ZodOptional<z.ZodObject<{
|
|
371
|
+
"request.client": z.ZodOptional<z.ZodEnum<{
|
|
372
|
+
api: "api";
|
|
373
|
+
dashboard: "dashboard";
|
|
374
|
+
cli: "cli";
|
|
375
|
+
worker: "worker";
|
|
376
|
+
}>>;
|
|
377
|
+
}, z.core.$strict>>;
|
|
378
|
+
}, z.core.$strict>>;
|
|
379
|
+
}, z.core.$strict>>;
|
|
380
|
+
secretPreview: z.ZodString;
|
|
381
|
+
ipAllowlist: z.ZodNullable<z.ZodArray<z.ZodString>>;
|
|
382
|
+
revokedAt: z.ZodNullable<z.ZodString>;
|
|
383
|
+
lastRequestAt: z.ZodNullable<z.ZodString>;
|
|
384
|
+
}, z.core.$strict>;
|
|
385
|
+
export declare const TenantApiKeyCreatedSchema: z.ZodObject<{
|
|
386
|
+
id: z.ZodString;
|
|
387
|
+
name: z.ZodNullable<z.ZodString>;
|
|
388
|
+
mode: z.ZodEnum<{
|
|
389
|
+
live: "live";
|
|
390
|
+
test: "test";
|
|
391
|
+
}>;
|
|
392
|
+
collection: z.ZodEnum<{
|
|
393
|
+
team: "team";
|
|
394
|
+
tenant: "tenant";
|
|
395
|
+
}>;
|
|
396
|
+
enabled: z.ZodBoolean;
|
|
397
|
+
metadata: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
398
|
+
expiresAt: z.ZodNullable<z.ZodString>;
|
|
399
|
+
createdAt: z.ZodString;
|
|
400
|
+
tenantId: z.ZodNullable<z.ZodString>;
|
|
401
|
+
updatedAt: z.ZodString;
|
|
402
|
+
notBefore: z.ZodNullable<z.ZodString>;
|
|
403
|
+
subject: z.ZodNullable<z.ZodObject<{
|
|
404
|
+
type: z.ZodEnum<{
|
|
405
|
+
team: "team";
|
|
406
|
+
external: "external";
|
|
407
|
+
system: "system";
|
|
408
|
+
user: "user";
|
|
409
|
+
}>;
|
|
410
|
+
id: z.ZodString;
|
|
411
|
+
}, z.core.$strip>>;
|
|
412
|
+
ownerPrincipal: z.ZodNullable<z.ZodObject<{
|
|
413
|
+
type: z.ZodEnum<{
|
|
414
|
+
team: "team";
|
|
415
|
+
external: "external";
|
|
416
|
+
}>;
|
|
417
|
+
id: z.ZodString;
|
|
418
|
+
}, z.core.$strip>>;
|
|
419
|
+
createdByUserId: z.ZodNullable<z.ZodString>;
|
|
420
|
+
preset: z.ZodNullable<z.ZodEnum<{
|
|
421
|
+
ci_deploy: "ci_deploy";
|
|
422
|
+
space_publisher: "space_publisher";
|
|
423
|
+
space_admin: "space_admin";
|
|
424
|
+
domain_manager: "domain_manager";
|
|
425
|
+
team_admin: "team_admin";
|
|
426
|
+
billing_viewer: "billing_viewer";
|
|
427
|
+
partner_admin: "partner_admin";
|
|
428
|
+
}>>;
|
|
429
|
+
teamScope: z.ZodNullable<z.ZodType<import("./device-team-scope.js").DeviceTeamScope, unknown, z.core.$ZodTypeInternals<import("./device-team-scope.js").DeviceTeamScope, unknown>>>;
|
|
430
|
+
policy: z.ZodNullable<z.ZodObject<{
|
|
431
|
+
version: z.ZodLiteral<"2026-06-09">;
|
|
432
|
+
statements: z.ZodArray<z.ZodObject<{
|
|
433
|
+
effect: z.ZodEnum<{
|
|
434
|
+
allow: "allow";
|
|
435
|
+
deny: "deny";
|
|
436
|
+
}>;
|
|
437
|
+
actions: z.ZodArray<z.ZodEnum<{
|
|
438
|
+
"teams:read": "teams:read";
|
|
439
|
+
"teams:create": "teams:create";
|
|
440
|
+
"teams:members.write": "teams:members.write";
|
|
441
|
+
"spaces:read": "spaces:read";
|
|
442
|
+
"spaces:write": "spaces:write";
|
|
443
|
+
"spaces:rename": "spaces:rename";
|
|
444
|
+
"spaces:delete": "spaces:delete";
|
|
445
|
+
"versions:download": "versions:download";
|
|
446
|
+
"domains:read": "domains:read";
|
|
447
|
+
"connectors:read": "connectors:read";
|
|
448
|
+
"connectors:write": "connectors:write";
|
|
449
|
+
"connectors:execute": "connectors:execute";
|
|
450
|
+
"spaces:publish": "spaces:publish";
|
|
451
|
+
"builds:trigger": "builds:trigger";
|
|
452
|
+
"*": "*";
|
|
453
|
+
"spaces:create": "spaces:create";
|
|
454
|
+
"spaces:transfer": "spaces:transfer";
|
|
455
|
+
"spaces:export": "spaces:export";
|
|
456
|
+
"spaces:import": "spaces:import";
|
|
457
|
+
"spaces:policy.write": "spaces:policy.write";
|
|
458
|
+
"versions:read": "versions:read";
|
|
459
|
+
"versions:promote": "versions:promote";
|
|
460
|
+
"versions:delete": "versions:delete";
|
|
461
|
+
"domains:create": "domains:create";
|
|
462
|
+
"domains:verify": "domains:verify";
|
|
463
|
+
"domains:assign": "domains:assign";
|
|
464
|
+
"domains:bind": "domains:bind";
|
|
465
|
+
"domains:delete": "domains:delete";
|
|
466
|
+
"domains:dns.write": "domains:dns.write";
|
|
467
|
+
"domains:dns.credentials.write": "domains:dns.credentials.write";
|
|
468
|
+
"domains:purchase": "domains:purchase";
|
|
469
|
+
"webhooks:read": "webhooks:read";
|
|
470
|
+
"webhooks:write": "webhooks:write";
|
|
471
|
+
"builds:read": "builds:read";
|
|
472
|
+
"builds:create": "builds:create";
|
|
473
|
+
"variables:read": "variables:read";
|
|
474
|
+
"variables:write": "variables:write";
|
|
475
|
+
"tenants:read": "tenants:read";
|
|
476
|
+
"tenants:write": "tenants:write";
|
|
477
|
+
"principals:read": "principals:read";
|
|
478
|
+
"principals:write": "principals:write";
|
|
479
|
+
"infrastructure:read": "infrastructure:read";
|
|
480
|
+
"teams:write": "teams:write";
|
|
481
|
+
"billing:read": "billing:read";
|
|
482
|
+
"billing:write": "billing:write";
|
|
483
|
+
"tokens:read": "tokens:read";
|
|
484
|
+
"tokens:create": "tokens:create";
|
|
485
|
+
"tokens:revoke": "tokens:revoke";
|
|
486
|
+
"runtime:manage": "runtime:manage";
|
|
487
|
+
}>>;
|
|
488
|
+
resources: z.ZodArray<z.ZodString>;
|
|
489
|
+
conditions: z.ZodOptional<z.ZodObject<{
|
|
490
|
+
"request.client": z.ZodOptional<z.ZodEnum<{
|
|
491
|
+
api: "api";
|
|
492
|
+
dashboard: "dashboard";
|
|
493
|
+
cli: "cli";
|
|
494
|
+
worker: "worker";
|
|
495
|
+
}>>;
|
|
496
|
+
}, z.core.$strict>>;
|
|
497
|
+
}, z.core.$strict>>;
|
|
498
|
+
}, z.core.$strict>>;
|
|
499
|
+
secretPreview: z.ZodString;
|
|
500
|
+
ipAllowlist: z.ZodNullable<z.ZodArray<z.ZodString>>;
|
|
501
|
+
revokedAt: z.ZodNullable<z.ZodString>;
|
|
502
|
+
lastRequestAt: z.ZodNullable<z.ZodString>;
|
|
503
|
+
secret: z.ZodString;
|
|
504
|
+
}, z.core.$strict>;
|
|
505
|
+
export declare const TenantApiKeyListSchema: z.ZodObject<{
|
|
506
|
+
data: z.ZodArray<z.ZodObject<{
|
|
507
|
+
id: z.ZodString;
|
|
508
|
+
name: z.ZodNullable<z.ZodString>;
|
|
509
|
+
mode: z.ZodEnum<{
|
|
510
|
+
live: "live";
|
|
511
|
+
test: "test";
|
|
512
|
+
}>;
|
|
513
|
+
collection: z.ZodEnum<{
|
|
514
|
+
team: "team";
|
|
515
|
+
tenant: "tenant";
|
|
516
|
+
}>;
|
|
517
|
+
enabled: z.ZodBoolean;
|
|
518
|
+
metadata: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
519
|
+
expiresAt: z.ZodNullable<z.ZodString>;
|
|
520
|
+
createdAt: z.ZodString;
|
|
521
|
+
tenantId: z.ZodNullable<z.ZodString>;
|
|
522
|
+
updatedAt: z.ZodString;
|
|
523
|
+
notBefore: z.ZodNullable<z.ZodString>;
|
|
524
|
+
subject: z.ZodNullable<z.ZodObject<{
|
|
525
|
+
type: z.ZodEnum<{
|
|
526
|
+
team: "team";
|
|
527
|
+
external: "external";
|
|
528
|
+
system: "system";
|
|
529
|
+
user: "user";
|
|
530
|
+
}>;
|
|
531
|
+
id: z.ZodString;
|
|
532
|
+
}, z.core.$strip>>;
|
|
533
|
+
ownerPrincipal: z.ZodNullable<z.ZodObject<{
|
|
534
|
+
type: z.ZodEnum<{
|
|
535
|
+
team: "team";
|
|
536
|
+
external: "external";
|
|
537
|
+
}>;
|
|
538
|
+
id: z.ZodString;
|
|
539
|
+
}, z.core.$strip>>;
|
|
540
|
+
createdByUserId: z.ZodNullable<z.ZodString>;
|
|
541
|
+
preset: z.ZodNullable<z.ZodEnum<{
|
|
542
|
+
ci_deploy: "ci_deploy";
|
|
543
|
+
space_publisher: "space_publisher";
|
|
544
|
+
space_admin: "space_admin";
|
|
545
|
+
domain_manager: "domain_manager";
|
|
546
|
+
team_admin: "team_admin";
|
|
547
|
+
billing_viewer: "billing_viewer";
|
|
548
|
+
partner_admin: "partner_admin";
|
|
549
|
+
}>>;
|
|
550
|
+
teamScope: z.ZodNullable<z.ZodType<import("./device-team-scope.js").DeviceTeamScope, unknown, z.core.$ZodTypeInternals<import("./device-team-scope.js").DeviceTeamScope, unknown>>>;
|
|
551
|
+
policy: z.ZodNullable<z.ZodObject<{
|
|
552
|
+
version: z.ZodLiteral<"2026-06-09">;
|
|
553
|
+
statements: z.ZodArray<z.ZodObject<{
|
|
554
|
+
effect: z.ZodEnum<{
|
|
555
|
+
allow: "allow";
|
|
556
|
+
deny: "deny";
|
|
557
|
+
}>;
|
|
558
|
+
actions: z.ZodArray<z.ZodEnum<{
|
|
559
|
+
"teams:read": "teams:read";
|
|
560
|
+
"teams:create": "teams:create";
|
|
561
|
+
"teams:members.write": "teams:members.write";
|
|
562
|
+
"spaces:read": "spaces:read";
|
|
563
|
+
"spaces:write": "spaces:write";
|
|
564
|
+
"spaces:rename": "spaces:rename";
|
|
565
|
+
"spaces:delete": "spaces:delete";
|
|
566
|
+
"versions:download": "versions:download";
|
|
567
|
+
"domains:read": "domains:read";
|
|
568
|
+
"connectors:read": "connectors:read";
|
|
569
|
+
"connectors:write": "connectors:write";
|
|
570
|
+
"connectors:execute": "connectors:execute";
|
|
571
|
+
"spaces:publish": "spaces:publish";
|
|
572
|
+
"builds:trigger": "builds:trigger";
|
|
573
|
+
"*": "*";
|
|
574
|
+
"spaces:create": "spaces:create";
|
|
575
|
+
"spaces:transfer": "spaces:transfer";
|
|
576
|
+
"spaces:export": "spaces:export";
|
|
577
|
+
"spaces:import": "spaces:import";
|
|
578
|
+
"spaces:policy.write": "spaces:policy.write";
|
|
579
|
+
"versions:read": "versions:read";
|
|
580
|
+
"versions:promote": "versions:promote";
|
|
581
|
+
"versions:delete": "versions:delete";
|
|
582
|
+
"domains:create": "domains:create";
|
|
583
|
+
"domains:verify": "domains:verify";
|
|
584
|
+
"domains:assign": "domains:assign";
|
|
585
|
+
"domains:bind": "domains:bind";
|
|
586
|
+
"domains:delete": "domains:delete";
|
|
587
|
+
"domains:dns.write": "domains:dns.write";
|
|
588
|
+
"domains:dns.credentials.write": "domains:dns.credentials.write";
|
|
589
|
+
"domains:purchase": "domains:purchase";
|
|
590
|
+
"webhooks:read": "webhooks:read";
|
|
591
|
+
"webhooks:write": "webhooks:write";
|
|
592
|
+
"builds:read": "builds:read";
|
|
593
|
+
"builds:create": "builds:create";
|
|
594
|
+
"variables:read": "variables:read";
|
|
595
|
+
"variables:write": "variables:write";
|
|
596
|
+
"tenants:read": "tenants:read";
|
|
597
|
+
"tenants:write": "tenants:write";
|
|
598
|
+
"principals:read": "principals:read";
|
|
599
|
+
"principals:write": "principals:write";
|
|
600
|
+
"infrastructure:read": "infrastructure:read";
|
|
601
|
+
"teams:write": "teams:write";
|
|
602
|
+
"billing:read": "billing:read";
|
|
603
|
+
"billing:write": "billing:write";
|
|
604
|
+
"tokens:read": "tokens:read";
|
|
605
|
+
"tokens:create": "tokens:create";
|
|
606
|
+
"tokens:revoke": "tokens:revoke";
|
|
607
|
+
"runtime:manage": "runtime:manage";
|
|
608
|
+
}>>;
|
|
609
|
+
resources: z.ZodArray<z.ZodString>;
|
|
610
|
+
conditions: z.ZodOptional<z.ZodObject<{
|
|
611
|
+
"request.client": z.ZodOptional<z.ZodEnum<{
|
|
612
|
+
api: "api";
|
|
613
|
+
dashboard: "dashboard";
|
|
614
|
+
cli: "cli";
|
|
615
|
+
worker: "worker";
|
|
616
|
+
}>>;
|
|
617
|
+
}, z.core.$strict>>;
|
|
618
|
+
}, z.core.$strict>>;
|
|
619
|
+
}, z.core.$strict>>;
|
|
620
|
+
secretPreview: z.ZodString;
|
|
621
|
+
ipAllowlist: z.ZodNullable<z.ZodArray<z.ZodString>>;
|
|
622
|
+
revokedAt: z.ZodNullable<z.ZodString>;
|
|
623
|
+
lastRequestAt: z.ZodNullable<z.ZodString>;
|
|
624
|
+
}, z.core.$strict>>;
|
|
625
|
+
pagination: z.ZodObject<{
|
|
626
|
+
nextCursor: z.ZodNullable<z.ZodString>;
|
|
627
|
+
hasMore: z.ZodBoolean;
|
|
628
|
+
}, z.core.$strip>;
|
|
629
|
+
}, z.core.$strip>;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { ApiKeySchema, ApiKeyScopedCreateRequestSchema } from "./api-keys.js";
|
|
3
|
+
import { CursorPaginationSchema } from "./common.js";
|
|
4
|
+
import { TenantSelfSchema } from "./tenants.js";
|
|
5
|
+
export const PartnerAccountSchema = z.object({
|
|
6
|
+
teamId: z.string(),
|
|
7
|
+
live: TenantSelfSchema,
|
|
8
|
+
test: TenantSelfSchema,
|
|
9
|
+
});
|
|
10
|
+
export const TenantApiKeyCreateSchema = ApiKeyScopedCreateRequestSchema.omit({
|
|
11
|
+
scope: true,
|
|
12
|
+
}).partial({ permissions: true });
|
|
13
|
+
export const TenantApiKeyMetadataSchema = ApiKeySchema.omit({ secret: true }).strict();
|
|
14
|
+
export const TenantApiKeyCreatedSchema = TenantApiKeyMetadataSchema.extend({ secret: z.string() });
|
|
15
|
+
export const TenantApiKeyListSchema = z.object({
|
|
16
|
+
data: z.array(TenantApiKeyMetadataSchema),
|
|
17
|
+
pagination: CursorPaginationSchema,
|
|
18
|
+
});
|