@spacefast/common 0.0.13 → 0.0.17
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/client-registry.d.ts +22 -0
- package/dist/agents/client-registry.js +41 -0
- package/dist/agents/connect-targets.d.ts +51 -6
- package/dist/agents/connect-targets.js +93 -28
- package/dist/brand.d.ts +0 -11
- package/dist/brand.js +0 -20
- package/dist/config/domains.d.ts +15 -6
- package/dist/config/domains.js +24 -10
- package/dist/config/postgres-budget.d.ts +3 -0
- package/dist/config/postgres-budget.js +6 -1
- package/dist/config/postgres-budget.json +2 -1
- package/dist/contracts/abuse.js +1 -1
- package/dist/contracts/access.d.ts +149 -44
- package/dist/contracts/access.js +94 -8
- package/dist/contracts/activity.js +5 -1
- package/dist/contracts/api-keys.js +9 -9
- package/dist/contracts/archives.js +11 -11
- package/dist/contracts/beta.js +1 -1
- package/dist/contracts/builds.js +14 -14
- package/dist/contracts/channels.js +2 -2
- package/dist/contracts/comments.d.ts +86 -15
- package/dist/contracts/comments.js +116 -20
- package/dist/contracts/common.d.ts +12 -12
- package/dist/contracts/common.js +33 -30
- package/dist/contracts/continuation.js +5 -5
- package/dist/contracts/data-source-routes.js +1 -1
- package/dist/contracts/device-auth.d.ts +6 -6
- package/dist/contracts/device-auth.js +12 -12
- package/dist/contracts/docs.d.ts +10 -10
- package/dist/contracts/domains.js +39 -33
- package/dist/contracts/enums.d.ts +2 -10
- package/dist/contracts/enums.js +0 -2
- package/dist/contracts/error-code-meta.d.ts +116 -47
- package/dist/contracts/error-code-meta.js +37 -16
- package/dist/contracts/error-codes.d.ts +7 -4
- package/dist/contracts/error-codes.js +46 -21
- package/dist/contracts/events.d.ts +10 -3
- package/dist/contracts/events.js +33 -5
- package/dist/contracts/execution.d.ts +26 -0
- package/dist/contracts/execution.js +21 -0
- package/dist/contracts/feature-lifecycle.d.ts +21 -24
- package/dist/contracts/feature-lifecycle.js +28 -26
- package/dist/contracts/features.js +4 -4
- package/dist/contracts/functions.d.ts +8 -140
- package/dist/contracts/functions.js +9 -19
- package/dist/contracts/git.d.ts +1 -1
- package/dist/contracts/grants.d.ts +96 -79
- package/dist/contracts/grants.js +130 -43
- package/dist/contracts/ids.d.ts +2 -2
- package/dist/contracts/ids.js +2 -4
- package/dist/contracts/internal.js +2 -2
- package/dist/contracts/mcp.d.ts +17 -556
- package/dist/contracts/mcp.js +9 -103
- package/dist/contracts/me.js +3 -4
- package/dist/contracts/notifications.d.ts +108 -0
- package/dist/contracts/notifications.js +54 -0
- package/dist/contracts/oauth-resources.d.ts +18 -1
- package/dist/contracts/oauth-resources.js +22 -2
- package/dist/contracts/operations.d.ts +2 -50
- package/dist/contracts/operations.js +0 -19
- package/dist/contracts/pages.d.ts +8 -4
- package/dist/contracts/pages.js +16 -3
- package/dist/contracts/platform.js +10 -8
- package/dist/contracts/problem-document.d.ts +14 -0
- package/dist/contracts/problem-document.js +35 -0
- package/dist/contracts/push-new.d.ts +21 -6
- package/dist/contracts/push-new.js +3 -7
- package/dist/contracts/resources.d.ts +8 -7
- package/dist/contracts/resources.js +9 -6
- package/dist/contracts/runtime-api.d.ts +162 -92
- package/dist/contracts/runtime-api.js +99 -27
- package/dist/contracts/runtime-app.d.ts +41 -11
- package/dist/contracts/runtime-app.js +22 -1
- package/dist/contracts/runtime-db.d.ts +424 -0
- package/dist/contracts/runtime-db.js +108 -0
- package/dist/contracts/runtime-storage.d.ts +120 -0
- package/dist/contracts/runtime-storage.js +40 -0
- package/dist/contracts/sf-config-v1.d.ts +49 -1
- package/dist/contracts/sf-config-v1.js +2 -2
- package/dist/contracts/sites.d.ts +1 -0
- package/dist/contracts/sites.js +20 -12
- package/dist/contracts/space-config.d.ts +62 -22
- package/dist/contracts/space-config.js +173 -47
- package/dist/contracts/spaces.d.ts +79 -45
- package/dist/contracts/spaces.js +66 -50
- package/dist/contracts/superadmin-spaces.d.ts +13 -2
- package/dist/contracts/superadmin-spaces.js +15 -0
- package/dist/contracts/superadmin-tenants.js +4 -4
- package/dist/contracts/superadmin.d.ts +4 -0
- package/dist/contracts/superadmin.js +14 -1
- package/dist/contracts/tags.d.ts +17 -17
- package/dist/contracts/tags.js +1 -1
- package/dist/contracts/teams.js +25 -16
- package/dist/contracts/theme-json.js +1 -1
- package/dist/contracts/transfers.js +4 -4
- package/dist/contracts/variables.js +3 -3
- package/dist/contracts/zero.d.ts +204 -338
- package/dist/contracts/zero.js +94 -98
- package/dist/dashboard-paths/index.d.ts +16 -1
- package/dist/dashboard-paths/index.js +18 -0
- package/dist/docs/agent-handoff-document.d.ts +2 -2
- package/dist/docs/agent-handoff-document.js +8 -7
- package/dist/docs/agent-prose.d.ts +22 -3
- package/dist/docs/agent-prose.js +221 -51
- package/dist/docs/agent-setup.d.ts +13 -10
- package/dist/docs/agent-setup.js +279 -53
- package/dist/docs/agent-solutions.d.ts +6 -6
- package/dist/docs/agent-solutions.js +23 -21
- package/dist/docs/catalog.d.ts +29 -74
- package/dist/docs/catalog.js +65 -92
- package/dist/docs/error-docs.js +293 -221
- package/dist/docs/skill-distribution.d.ts +2 -0
- package/dist/docs/skill-distribution.js +7 -4
- package/dist/docs/skills.d.ts +546 -0
- package/dist/docs/skills.js +340 -0
- package/dist/utils/browser-credential.d.ts +19 -0
- package/dist/utils/browser-credential.js +62 -0
- package/dist/utils/comment-avatars.d.ts +7 -0
- package/dist/utils/comment-avatars.js +42 -0
- package/dist/utils/content-type.d.ts +3 -3
- package/dist/utils/content-type.js +38 -61
- package/dist/utils/domain-diagnostics.d.ts +5 -5
- package/dist/utils/domain-diagnostics.js +21 -10
- package/dist/utils/local-space-state.d.ts +78 -4
- package/dist/utils/local-space-state.js +383 -82
- package/dist/utils/one-shot-replay.d.ts +14 -0
- package/dist/utils/one-shot-replay.js +21 -0
- package/dist/utils/page-preview.d.ts +7 -0
- package/dist/utils/page-preview.js +9 -0
- package/dist/utils/pages.d.ts +2 -11
- package/dist/utils/pages.js +58 -14
- package/dist/utils/publish-form-data.d.ts +22 -0
- package/dist/utils/publish-form-data.js +26 -0
- package/dist/utils/publish-policy.js +20 -4
- package/dist/utils/query-keys.d.ts +7 -4
- package/dist/utils/query-keys.js +13 -4
- package/dist/utils/runtime-paths.d.ts +3 -0
- package/dist/utils/runtime-paths.js +7 -0
- package/dist/utils/secure-local-file.d.ts +73 -0
- package/dist/utils/secure-local-file.js +1373 -0
- package/dist/utils/space-config.d.ts +13 -4
- package/dist/utils/space-config.js +123 -15
- package/dist/utils/storage-policy.d.ts +20 -0
- package/dist/utils/storage-policy.fixtures.json +174 -0
- package/dist/utils/storage-policy.js +193 -0
- package/dist/utils/upload-session.d.ts +12 -1
- package/dist/utils/upload-session.js +37 -2
- package/dist/utils/version-file-browser.d.ts +13 -0
- package/dist/utils/version-file-browser.js +59 -0
- package/package.json +19 -1
- package/dist/contracts/mounts.d.ts +0 -142
- package/dist/contracts/mounts.js +0 -56
- package/dist/utils/asset-fingerprint.d.ts +0 -64
- package/dist/utils/asset-fingerprint.js +0 -620
|
@@ -55,12 +55,12 @@ export type GrantAudience = z.infer<typeof grantAudienceSchema>;
|
|
|
55
55
|
* it resolves to independently.
|
|
56
56
|
*/
|
|
57
57
|
export declare function normalizeGrantResourcePattern(input: string): string;
|
|
58
|
-
export declare const grantResourcePatternSchema: z.
|
|
58
|
+
export declare const grantResourcePatternSchema: z.ZodString;
|
|
59
59
|
export type GrantResourcePattern = z.infer<typeof grantResourcePatternSchema>;
|
|
60
60
|
export declare const GRANT_RESOURCE_PATTERN_LIMIT = 100;
|
|
61
61
|
export declare const grantResourceSetSchema: z.ZodObject<{
|
|
62
|
-
include: z.ZodArray<z.
|
|
63
|
-
exclude: z.ZodDefault<z.ZodArray<z.
|
|
62
|
+
include: z.ZodArray<z.ZodString>;
|
|
63
|
+
exclude: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
64
64
|
}, z.core.$strict>;
|
|
65
65
|
export type GrantResourceSet = z.infer<typeof grantResourceSetSchema>;
|
|
66
66
|
export declare const GRANT_TARGET_KINDS: readonly ["live", "version", "branch", "all_versions"];
|
|
@@ -91,13 +91,29 @@ export declare const grantConstraintsSchema: z.ZodObject<{
|
|
|
91
91
|
maxUses: z.ZodOptional<z.ZodNumber>;
|
|
92
92
|
requireVerifiedEmail: z.ZodOptional<z.ZodBoolean>;
|
|
93
93
|
network: z.ZodOptional<z.ZodObject<{
|
|
94
|
-
ipCidrs: z.ZodOptional<z.ZodArray<z.
|
|
95
|
-
countries: z.ZodOptional<z.ZodArray<z.
|
|
96
|
-
excludedCountries: z.ZodOptional<z.ZodArray<z.
|
|
94
|
+
ipCidrs: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
95
|
+
countries: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
96
|
+
excludedCountries: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
97
97
|
excludedUserAgentSubstrings: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
98
98
|
}, z.core.$strict>>;
|
|
99
99
|
}, z.core.$strict>;
|
|
100
100
|
export type GrantConstraints = z.infer<typeof grantConstraintsSchema>;
|
|
101
|
+
/** Field-scoped PATCH shape. `null` clears one constraint without replacing its siblings. */
|
|
102
|
+
export declare const grantConstraintsPatchSchema: z.ZodObject<{
|
|
103
|
+
notBefore: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
104
|
+
expiresAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
105
|
+
maxUses: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
106
|
+
requireVerifiedEmail: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
107
|
+
network: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
108
|
+
ipCidrs: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
109
|
+
countries: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
110
|
+
excludedCountries: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
111
|
+
excludedUserAgentSubstrings: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
112
|
+
}, z.core.$strict>>>;
|
|
113
|
+
}, z.core.$strict>;
|
|
114
|
+
export type GrantConstraintsPatch = z.infer<typeof grantConstraintsPatchSchema>;
|
|
115
|
+
export declare function diffGrantConstraints(original: GrantConstraints, draft: GrantConstraints): GrantConstraintsPatch | undefined;
|
|
116
|
+
export declare function applyGrantConstraintsPatch(current: GrantConstraints, patch: GrantConstraintsPatch): GrantConstraints;
|
|
101
117
|
export declare const GRANT_SOURCE_KINDS: readonly ["config", "managed", "system"];
|
|
102
118
|
export declare const grantSourceKindSchema: z.ZodEnum<{
|
|
103
119
|
config: "config";
|
|
@@ -106,6 +122,7 @@ export declare const grantSourceKindSchema: z.ZodEnum<{
|
|
|
106
122
|
}>;
|
|
107
123
|
export type GrantSourceKind = z.infer<typeof grantSourceKindSchema>;
|
|
108
124
|
export declare const PRECLAIM_OPEN_GRANT_SOURCE_REFERENCE = "open:preclaim-author";
|
|
125
|
+
export declare const SPACE_OPEN_GRANT_SOURCE_REFERENCE = "open:space";
|
|
109
126
|
export declare const OWNING_TEAM_MANAGEMENT_GRANT_SOURCE_REFERENCE = "ownership:team";
|
|
110
127
|
export declare const OWNING_TEAM_VERSION_GRANT_SOURCE_REFERENCE = "ownership:team:versions";
|
|
111
128
|
export declare const OWNING_EXTERNAL_MANAGEMENT_GRANT_SOURCE_REFERENCE = "ownership:external";
|
|
@@ -145,8 +162,8 @@ export declare const grantSchema: z.ZodObject<{
|
|
|
145
162
|
subject: z.ZodString;
|
|
146
163
|
}, z.core.$strict>], "kind">;
|
|
147
164
|
resources: z.ZodObject<{
|
|
148
|
-
include: z.ZodArray<z.
|
|
149
|
-
exclude: z.ZodDefault<z.ZodArray<z.
|
|
165
|
+
include: z.ZodArray<z.ZodString>;
|
|
166
|
+
exclude: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
150
167
|
}, z.core.$strict>;
|
|
151
168
|
capabilities: z.ZodArray<z.ZodEnum<{
|
|
152
169
|
"page.view": "page.view";
|
|
@@ -161,9 +178,9 @@ export declare const grantSchema: z.ZodObject<{
|
|
|
161
178
|
maxUses: z.ZodOptional<z.ZodNumber>;
|
|
162
179
|
requireVerifiedEmail: z.ZodOptional<z.ZodBoolean>;
|
|
163
180
|
network: z.ZodOptional<z.ZodObject<{
|
|
164
|
-
ipCidrs: z.ZodOptional<z.ZodArray<z.
|
|
165
|
-
countries: z.ZodOptional<z.ZodArray<z.
|
|
166
|
-
excludedCountries: z.ZodOptional<z.ZodArray<z.
|
|
181
|
+
ipCidrs: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
182
|
+
countries: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
183
|
+
excludedCountries: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
167
184
|
excludedUserAgentSubstrings: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
168
185
|
}, z.core.$strict>>;
|
|
169
186
|
}, z.core.$strict>>;
|
|
@@ -214,8 +231,8 @@ export declare const managedGrantWriteSchema: z.ZodObject<{
|
|
|
214
231
|
subject: z.ZodString;
|
|
215
232
|
}, z.core.$strict>], "kind">;
|
|
216
233
|
resources: z.ZodObject<{
|
|
217
|
-
include: z.ZodArray<z.
|
|
218
|
-
exclude: z.ZodDefault<z.ZodArray<z.
|
|
234
|
+
include: z.ZodArray<z.ZodString>;
|
|
235
|
+
exclude: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
219
236
|
}, z.core.$strict>;
|
|
220
237
|
capabilities: z.ZodArray<z.ZodEnum<{
|
|
221
238
|
"page.view": "page.view";
|
|
@@ -230,9 +247,9 @@ export declare const managedGrantWriteSchema: z.ZodObject<{
|
|
|
230
247
|
maxUses: z.ZodOptional<z.ZodNumber>;
|
|
231
248
|
requireVerifiedEmail: z.ZodOptional<z.ZodBoolean>;
|
|
232
249
|
network: z.ZodOptional<z.ZodObject<{
|
|
233
|
-
ipCidrs: z.ZodOptional<z.ZodArray<z.
|
|
234
|
-
countries: z.ZodOptional<z.ZodArray<z.
|
|
235
|
-
excludedCountries: z.ZodOptional<z.ZodArray<z.
|
|
250
|
+
ipCidrs: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
251
|
+
countries: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
252
|
+
excludedCountries: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
236
253
|
excludedUserAgentSubstrings: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
237
254
|
}, z.core.$strict>>;
|
|
238
255
|
}, z.core.$strict>>;
|
|
@@ -274,8 +291,8 @@ export declare const directManagedGrantWriteSchema: z.ZodObject<{
|
|
|
274
291
|
subject: z.ZodString;
|
|
275
292
|
}, z.core.$strict>], "kind">;
|
|
276
293
|
resources: z.ZodObject<{
|
|
277
|
-
include: z.ZodArray<z.
|
|
278
|
-
exclude: z.ZodDefault<z.ZodArray<z.
|
|
294
|
+
include: z.ZodArray<z.ZodString>;
|
|
295
|
+
exclude: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
279
296
|
}, z.core.$strict>;
|
|
280
297
|
capabilities: z.ZodArray<z.ZodEnum<{
|
|
281
298
|
"page.view": "page.view";
|
|
@@ -290,9 +307,9 @@ export declare const directManagedGrantWriteSchema: z.ZodObject<{
|
|
|
290
307
|
maxUses: z.ZodOptional<z.ZodNumber>;
|
|
291
308
|
requireVerifiedEmail: z.ZodOptional<z.ZodBoolean>;
|
|
292
309
|
network: z.ZodOptional<z.ZodObject<{
|
|
293
|
-
ipCidrs: z.ZodOptional<z.ZodArray<z.
|
|
294
|
-
countries: z.ZodOptional<z.ZodArray<z.
|
|
295
|
-
excludedCountries: z.ZodOptional<z.ZodArray<z.
|
|
310
|
+
ipCidrs: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
311
|
+
countries: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
312
|
+
excludedCountries: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
296
313
|
excludedUserAgentSubstrings: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
297
314
|
}, z.core.$strict>>;
|
|
298
315
|
}, z.core.$strict>>;
|
|
@@ -341,8 +358,8 @@ export declare const spaceGrantSchema: z.ZodObject<{
|
|
|
341
358
|
subject: z.ZodString;
|
|
342
359
|
}, z.core.$strict>], "kind">;
|
|
343
360
|
resources: z.ZodObject<{
|
|
344
|
-
include: z.ZodArray<z.
|
|
345
|
-
exclude: z.ZodDefault<z.ZodArray<z.
|
|
361
|
+
include: z.ZodArray<z.ZodString>;
|
|
362
|
+
exclude: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
346
363
|
}, z.core.$strict>;
|
|
347
364
|
capabilities: z.ZodArray<z.ZodEnum<{
|
|
348
365
|
"page.view": "page.view";
|
|
@@ -357,9 +374,9 @@ export declare const spaceGrantSchema: z.ZodObject<{
|
|
|
357
374
|
maxUses: z.ZodOptional<z.ZodNumber>;
|
|
358
375
|
requireVerifiedEmail: z.ZodOptional<z.ZodBoolean>;
|
|
359
376
|
network: z.ZodOptional<z.ZodObject<{
|
|
360
|
-
ipCidrs: z.ZodOptional<z.ZodArray<z.
|
|
361
|
-
countries: z.ZodOptional<z.ZodArray<z.
|
|
362
|
-
excludedCountries: z.ZodOptional<z.ZodArray<z.
|
|
377
|
+
ipCidrs: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
378
|
+
countries: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
379
|
+
excludedCountries: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
363
380
|
excludedUserAgentSubstrings: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
364
381
|
}, z.core.$strict>>;
|
|
365
382
|
}, z.core.$strict>>;
|
|
@@ -382,7 +399,7 @@ export declare const spaceGrantSchema: z.ZodObject<{
|
|
|
382
399
|
}>;
|
|
383
400
|
reference: z.ZodString;
|
|
384
401
|
}, z.core.$strict>;
|
|
385
|
-
id: z.
|
|
402
|
+
id: z.ZodTemplateLiteral<`grt_${string}`>;
|
|
386
403
|
}, z.core.$strict>;
|
|
387
404
|
generation: z.ZodNumber;
|
|
388
405
|
status: z.ZodEnum<{
|
|
@@ -511,8 +528,8 @@ export declare const grantCheckSchema: z.ZodObject<{
|
|
|
511
528
|
subject: z.ZodString;
|
|
512
529
|
}, z.core.$strict>], "kind">;
|
|
513
530
|
resources: z.ZodObject<{
|
|
514
|
-
include: z.ZodArray<z.
|
|
515
|
-
exclude: z.ZodDefault<z.ZodArray<z.
|
|
531
|
+
include: z.ZodArray<z.ZodString>;
|
|
532
|
+
exclude: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
516
533
|
}, z.core.$strict>;
|
|
517
534
|
capabilities: z.ZodArray<z.ZodEnum<{
|
|
518
535
|
"page.view": "page.view";
|
|
@@ -527,9 +544,9 @@ export declare const grantCheckSchema: z.ZodObject<{
|
|
|
527
544
|
maxUses: z.ZodOptional<z.ZodNumber>;
|
|
528
545
|
requireVerifiedEmail: z.ZodOptional<z.ZodBoolean>;
|
|
529
546
|
network: z.ZodOptional<z.ZodObject<{
|
|
530
|
-
ipCidrs: z.ZodOptional<z.ZodArray<z.
|
|
531
|
-
countries: z.ZodOptional<z.ZodArray<z.
|
|
532
|
-
excludedCountries: z.ZodOptional<z.ZodArray<z.
|
|
547
|
+
ipCidrs: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
548
|
+
countries: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
549
|
+
excludedCountries: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
533
550
|
excludedUserAgentSubstrings: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
534
551
|
}, z.core.$strict>>;
|
|
535
552
|
}, z.core.$strict>>;
|
|
@@ -552,7 +569,7 @@ export declare const grantCheckSchema: z.ZodObject<{
|
|
|
552
569
|
}>;
|
|
553
570
|
reference: z.ZodString;
|
|
554
571
|
}, z.core.$strict>;
|
|
555
|
-
id: z.
|
|
572
|
+
id: z.ZodTemplateLiteral<`grt_${string}`>;
|
|
556
573
|
}, z.core.$strict>;
|
|
557
574
|
generation: z.ZodNumber;
|
|
558
575
|
status: z.ZodEnum<{
|
|
@@ -603,8 +620,8 @@ export declare const grantCheckSchema: z.ZodObject<{
|
|
|
603
620
|
subject: z.ZodString;
|
|
604
621
|
}, z.core.$strict>], "kind">;
|
|
605
622
|
resources: z.ZodObject<{
|
|
606
|
-
include: z.ZodArray<z.
|
|
607
|
-
exclude: z.ZodDefault<z.ZodArray<z.
|
|
623
|
+
include: z.ZodArray<z.ZodString>;
|
|
624
|
+
exclude: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
608
625
|
}, z.core.$strict>;
|
|
609
626
|
capabilities: z.ZodArray<z.ZodEnum<{
|
|
610
627
|
"page.view": "page.view";
|
|
@@ -619,9 +636,9 @@ export declare const grantCheckSchema: z.ZodObject<{
|
|
|
619
636
|
maxUses: z.ZodOptional<z.ZodNumber>;
|
|
620
637
|
requireVerifiedEmail: z.ZodOptional<z.ZodBoolean>;
|
|
621
638
|
network: z.ZodOptional<z.ZodObject<{
|
|
622
|
-
ipCidrs: z.ZodOptional<z.ZodArray<z.
|
|
623
|
-
countries: z.ZodOptional<z.ZodArray<z.
|
|
624
|
-
excludedCountries: z.ZodOptional<z.ZodArray<z.
|
|
639
|
+
ipCidrs: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
640
|
+
countries: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
641
|
+
excludedCountries: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
625
642
|
excludedUserAgentSubstrings: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
626
643
|
}, z.core.$strict>>;
|
|
627
644
|
}, z.core.$strict>>;
|
|
@@ -644,7 +661,7 @@ export declare const grantCheckSchema: z.ZodObject<{
|
|
|
644
661
|
}>;
|
|
645
662
|
reference: z.ZodString;
|
|
646
663
|
}, z.core.$strict>;
|
|
647
|
-
id: z.
|
|
664
|
+
id: z.ZodTemplateLiteral<`grt_${string}`>;
|
|
648
665
|
}, z.core.$strict>;
|
|
649
666
|
generation: z.ZodNumber;
|
|
650
667
|
status: z.ZodEnum<{
|
|
@@ -680,8 +697,8 @@ export declare const passwordCredentialCreateSchema: z.ZodObject<{
|
|
|
680
697
|
password: z.ZodString;
|
|
681
698
|
name: z.ZodString;
|
|
682
699
|
resources: z.ZodObject<{
|
|
683
|
-
include: z.ZodArray<z.
|
|
684
|
-
exclude: z.ZodDefault<z.ZodArray<z.
|
|
700
|
+
include: z.ZodArray<z.ZodString>;
|
|
701
|
+
exclude: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
685
702
|
}, z.core.$strict>;
|
|
686
703
|
capabilities: z.ZodArray<z.ZodEnum<{
|
|
687
704
|
"page.view": "page.view";
|
|
@@ -696,9 +713,9 @@ export declare const passwordCredentialCreateSchema: z.ZodObject<{
|
|
|
696
713
|
maxUses: z.ZodOptional<z.ZodNumber>;
|
|
697
714
|
requireVerifiedEmail: z.ZodOptional<z.ZodBoolean>;
|
|
698
715
|
network: z.ZodOptional<z.ZodObject<{
|
|
699
|
-
ipCidrs: z.ZodOptional<z.ZodArray<z.
|
|
700
|
-
countries: z.ZodOptional<z.ZodArray<z.
|
|
701
|
-
excludedCountries: z.ZodOptional<z.ZodArray<z.
|
|
716
|
+
ipCidrs: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
717
|
+
countries: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
718
|
+
excludedCountries: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
702
719
|
excludedUserAgentSubstrings: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
703
720
|
}, z.core.$strict>>;
|
|
704
721
|
}, z.core.$strict>>;
|
|
@@ -722,8 +739,8 @@ export type PasswordCredentialRotate = z.infer<typeof passwordCredentialRotateSc
|
|
|
722
739
|
export declare const machineCredentialCreateSchema: z.ZodObject<{
|
|
723
740
|
name: z.ZodString;
|
|
724
741
|
resources: z.ZodObject<{
|
|
725
|
-
include: z.ZodArray<z.
|
|
726
|
-
exclude: z.ZodDefault<z.ZodArray<z.
|
|
742
|
+
include: z.ZodArray<z.ZodString>;
|
|
743
|
+
exclude: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
727
744
|
}, z.core.$strict>;
|
|
728
745
|
capabilities: z.ZodArray<z.ZodEnum<{
|
|
729
746
|
"page.view": "page.view";
|
|
@@ -738,9 +755,9 @@ export declare const machineCredentialCreateSchema: z.ZodObject<{
|
|
|
738
755
|
maxUses: z.ZodOptional<z.ZodNumber>;
|
|
739
756
|
requireVerifiedEmail: z.ZodOptional<z.ZodBoolean>;
|
|
740
757
|
network: z.ZodOptional<z.ZodObject<{
|
|
741
|
-
ipCidrs: z.ZodOptional<z.ZodArray<z.
|
|
742
|
-
countries: z.ZodOptional<z.ZodArray<z.
|
|
743
|
-
excludedCountries: z.ZodOptional<z.ZodArray<z.
|
|
758
|
+
ipCidrs: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
759
|
+
countries: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
760
|
+
excludedCountries: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
744
761
|
excludedUserAgentSubstrings: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
745
762
|
}, z.core.$strict>>;
|
|
746
763
|
}, z.core.$strict>>;
|
|
@@ -758,7 +775,7 @@ export declare const machineCredentialCreateSchema: z.ZodObject<{
|
|
|
758
775
|
}, z.core.$strict>;
|
|
759
776
|
export type MachineCredentialCreate = z.infer<typeof machineCredentialCreateSchema>;
|
|
760
777
|
export declare const passwordCredentialSchema: z.ZodObject<{
|
|
761
|
-
id: z.
|
|
778
|
+
id: z.ZodTemplateLiteral<`pwd_${string}`>;
|
|
762
779
|
grant: z.ZodObject<{
|
|
763
780
|
grant: z.ZodObject<{
|
|
764
781
|
name: z.ZodOptional<z.ZodString>;
|
|
@@ -785,8 +802,8 @@ export declare const passwordCredentialSchema: z.ZodObject<{
|
|
|
785
802
|
subject: z.ZodString;
|
|
786
803
|
}, z.core.$strict>], "kind">;
|
|
787
804
|
resources: z.ZodObject<{
|
|
788
|
-
include: z.ZodArray<z.
|
|
789
|
-
exclude: z.ZodDefault<z.ZodArray<z.
|
|
805
|
+
include: z.ZodArray<z.ZodString>;
|
|
806
|
+
exclude: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
790
807
|
}, z.core.$strict>;
|
|
791
808
|
capabilities: z.ZodArray<z.ZodEnum<{
|
|
792
809
|
"page.view": "page.view";
|
|
@@ -801,9 +818,9 @@ export declare const passwordCredentialSchema: z.ZodObject<{
|
|
|
801
818
|
maxUses: z.ZodOptional<z.ZodNumber>;
|
|
802
819
|
requireVerifiedEmail: z.ZodOptional<z.ZodBoolean>;
|
|
803
820
|
network: z.ZodOptional<z.ZodObject<{
|
|
804
|
-
ipCidrs: z.ZodOptional<z.ZodArray<z.
|
|
805
|
-
countries: z.ZodOptional<z.ZodArray<z.
|
|
806
|
-
excludedCountries: z.ZodOptional<z.ZodArray<z.
|
|
821
|
+
ipCidrs: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
822
|
+
countries: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
823
|
+
excludedCountries: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
807
824
|
excludedUserAgentSubstrings: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
808
825
|
}, z.core.$strict>>;
|
|
809
826
|
}, z.core.$strict>>;
|
|
@@ -826,7 +843,7 @@ export declare const passwordCredentialSchema: z.ZodObject<{
|
|
|
826
843
|
}>;
|
|
827
844
|
reference: z.ZodString;
|
|
828
845
|
}, z.core.$strict>;
|
|
829
|
-
id: z.
|
|
846
|
+
id: z.ZodTemplateLiteral<`grt_${string}`>;
|
|
830
847
|
}, z.core.$strict>;
|
|
831
848
|
generation: z.ZodNumber;
|
|
832
849
|
status: z.ZodEnum<{
|
|
@@ -848,7 +865,7 @@ export declare const passwordCredentialSchema: z.ZodObject<{
|
|
|
848
865
|
}, z.core.$strict>;
|
|
849
866
|
export type PasswordCredential = z.infer<typeof passwordCredentialSchema>;
|
|
850
867
|
export declare const machineCredentialSchema: z.ZodObject<{
|
|
851
|
-
id: z.
|
|
868
|
+
id: z.ZodTemplateLiteral<`mch_${string}`>;
|
|
852
869
|
grant: z.ZodObject<{
|
|
853
870
|
grant: z.ZodObject<{
|
|
854
871
|
name: z.ZodOptional<z.ZodString>;
|
|
@@ -875,8 +892,8 @@ export declare const machineCredentialSchema: z.ZodObject<{
|
|
|
875
892
|
subject: z.ZodString;
|
|
876
893
|
}, z.core.$strict>], "kind">;
|
|
877
894
|
resources: z.ZodObject<{
|
|
878
|
-
include: z.ZodArray<z.
|
|
879
|
-
exclude: z.ZodDefault<z.ZodArray<z.
|
|
895
|
+
include: z.ZodArray<z.ZodString>;
|
|
896
|
+
exclude: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
880
897
|
}, z.core.$strict>;
|
|
881
898
|
capabilities: z.ZodArray<z.ZodEnum<{
|
|
882
899
|
"page.view": "page.view";
|
|
@@ -891,9 +908,9 @@ export declare const machineCredentialSchema: z.ZodObject<{
|
|
|
891
908
|
maxUses: z.ZodOptional<z.ZodNumber>;
|
|
892
909
|
requireVerifiedEmail: z.ZodOptional<z.ZodBoolean>;
|
|
893
910
|
network: z.ZodOptional<z.ZodObject<{
|
|
894
|
-
ipCidrs: z.ZodOptional<z.ZodArray<z.
|
|
895
|
-
countries: z.ZodOptional<z.ZodArray<z.
|
|
896
|
-
excludedCountries: z.ZodOptional<z.ZodArray<z.
|
|
911
|
+
ipCidrs: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
912
|
+
countries: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
913
|
+
excludedCountries: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
897
914
|
excludedUserAgentSubstrings: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
898
915
|
}, z.core.$strict>>;
|
|
899
916
|
}, z.core.$strict>>;
|
|
@@ -916,7 +933,7 @@ export declare const machineCredentialSchema: z.ZodObject<{
|
|
|
916
933
|
}>;
|
|
917
934
|
reference: z.ZodString;
|
|
918
935
|
}, z.core.$strict>;
|
|
919
|
-
id: z.
|
|
936
|
+
id: z.ZodTemplateLiteral<`grt_${string}`>;
|
|
920
937
|
}, z.core.$strict>;
|
|
921
938
|
generation: z.ZodNumber;
|
|
922
939
|
status: z.ZodEnum<{
|
|
@@ -940,7 +957,7 @@ export declare const machineCredentialSchema: z.ZodObject<{
|
|
|
940
957
|
export type MachineCredential = z.infer<typeof machineCredentialSchema>;
|
|
941
958
|
export declare const machineCredentialSecretSchema: z.ZodObject<{
|
|
942
959
|
credential: z.ZodObject<{
|
|
943
|
-
id: z.
|
|
960
|
+
id: z.ZodTemplateLiteral<`mch_${string}`>;
|
|
944
961
|
grant: z.ZodObject<{
|
|
945
962
|
grant: z.ZodObject<{
|
|
946
963
|
name: z.ZodOptional<z.ZodString>;
|
|
@@ -967,8 +984,8 @@ export declare const machineCredentialSecretSchema: z.ZodObject<{
|
|
|
967
984
|
subject: z.ZodString;
|
|
968
985
|
}, z.core.$strict>], "kind">;
|
|
969
986
|
resources: z.ZodObject<{
|
|
970
|
-
include: z.ZodArray<z.
|
|
971
|
-
exclude: z.ZodDefault<z.ZodArray<z.
|
|
987
|
+
include: z.ZodArray<z.ZodString>;
|
|
988
|
+
exclude: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
972
989
|
}, z.core.$strict>;
|
|
973
990
|
capabilities: z.ZodArray<z.ZodEnum<{
|
|
974
991
|
"page.view": "page.view";
|
|
@@ -983,9 +1000,9 @@ export declare const machineCredentialSecretSchema: z.ZodObject<{
|
|
|
983
1000
|
maxUses: z.ZodOptional<z.ZodNumber>;
|
|
984
1001
|
requireVerifiedEmail: z.ZodOptional<z.ZodBoolean>;
|
|
985
1002
|
network: z.ZodOptional<z.ZodObject<{
|
|
986
|
-
ipCidrs: z.ZodOptional<z.ZodArray<z.
|
|
987
|
-
countries: z.ZodOptional<z.ZodArray<z.
|
|
988
|
-
excludedCountries: z.ZodOptional<z.ZodArray<z.
|
|
1003
|
+
ipCidrs: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1004
|
+
countries: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1005
|
+
excludedCountries: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
989
1006
|
excludedUserAgentSubstrings: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
990
1007
|
}, z.core.$strict>>;
|
|
991
1008
|
}, z.core.$strict>>;
|
|
@@ -1008,7 +1025,7 @@ export declare const machineCredentialSecretSchema: z.ZodObject<{
|
|
|
1008
1025
|
}>;
|
|
1009
1026
|
reference: z.ZodString;
|
|
1010
1027
|
}, z.core.$strict>;
|
|
1011
|
-
id: z.
|
|
1028
|
+
id: z.ZodTemplateLiteral<`grt_${string}`>;
|
|
1012
1029
|
}, z.core.$strict>;
|
|
1013
1030
|
generation: z.ZodNumber;
|
|
1014
1031
|
status: z.ZodEnum<{
|
|
@@ -1033,7 +1050,7 @@ export declare const machineCredentialSecretSchema: z.ZodObject<{
|
|
|
1033
1050
|
}, z.core.$strict>;
|
|
1034
1051
|
export type MachineCredentialSecret = z.infer<typeof machineCredentialSecretSchema>;
|
|
1035
1052
|
export declare const machineCredentialExchangeRequestSchema: z.ZodObject<{
|
|
1036
|
-
spaceId: z.
|
|
1053
|
+
spaceId: z.ZodTemplateLiteral<`spc_${string}`>;
|
|
1037
1054
|
host: z.ZodString;
|
|
1038
1055
|
resource: z.ZodString;
|
|
1039
1056
|
target: z.ZodDefault<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
@@ -1052,7 +1069,7 @@ export declare const machineCredentialExchangeResponseSchema: z.ZodObject<{
|
|
|
1052
1069
|
expiresAt: z.ZodString;
|
|
1053
1070
|
}, z.core.$strict>;
|
|
1054
1071
|
export declare const credentialRevocationSchema: z.ZodObject<{
|
|
1055
|
-
grantId: z.
|
|
1072
|
+
grantId: z.ZodTemplateLiteral<`grt_${string}`>;
|
|
1056
1073
|
revoked: z.ZodLiteral<true>;
|
|
1057
1074
|
}, z.core.$strict>;
|
|
1058
1075
|
export declare const IDENTITY_CONNECTION_DEFAULT_TTL_SECONDS: number;
|
|
@@ -1094,7 +1111,7 @@ export declare const identityConnectionUpdateSchema: z.ZodObject<{
|
|
|
1094
1111
|
}, z.core.$strict>;
|
|
1095
1112
|
export type IdentityConnectionUpdate = z.infer<typeof identityConnectionUpdateSchema>;
|
|
1096
1113
|
export declare const identityConnectionSchema: z.ZodObject<{
|
|
1097
|
-
id: z.
|
|
1114
|
+
id: z.ZodTemplateLiteral<`acn_${string}`>;
|
|
1098
1115
|
teamId: z.ZodString;
|
|
1099
1116
|
type: z.ZodEnum<{
|
|
1100
1117
|
oidc: "oidc";
|
|
@@ -1119,8 +1136,8 @@ export type IdentityConnection = z.infer<typeof identityConnectionSchema>;
|
|
|
1119
1136
|
export declare const externalGrantCreateSchema: z.ZodObject<{
|
|
1120
1137
|
name: z.ZodString;
|
|
1121
1138
|
resources: z.ZodObject<{
|
|
1122
|
-
include: z.ZodArray<z.
|
|
1123
|
-
exclude: z.ZodDefault<z.ZodArray<z.
|
|
1139
|
+
include: z.ZodArray<z.ZodString>;
|
|
1140
|
+
exclude: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1124
1141
|
}, z.core.$strict>;
|
|
1125
1142
|
capabilities: z.ZodArray<z.ZodEnum<{
|
|
1126
1143
|
"page.view": "page.view";
|
|
@@ -1135,9 +1152,9 @@ export declare const externalGrantCreateSchema: z.ZodObject<{
|
|
|
1135
1152
|
maxUses: z.ZodOptional<z.ZodNumber>;
|
|
1136
1153
|
requireVerifiedEmail: z.ZodOptional<z.ZodBoolean>;
|
|
1137
1154
|
network: z.ZodOptional<z.ZodObject<{
|
|
1138
|
-
ipCidrs: z.ZodOptional<z.ZodArray<z.
|
|
1139
|
-
countries: z.ZodOptional<z.ZodArray<z.
|
|
1140
|
-
excludedCountries: z.ZodOptional<z.ZodArray<z.
|
|
1155
|
+
ipCidrs: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1156
|
+
countries: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1157
|
+
excludedCountries: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1141
1158
|
excludedUserAgentSubstrings: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1142
1159
|
}, z.core.$strict>>;
|
|
1143
1160
|
}, z.core.$strict>>;
|
|
@@ -1152,7 +1169,7 @@ export declare const externalGrantCreateSchema: z.ZodObject<{
|
|
|
1152
1169
|
}, z.core.$strict>, z.ZodObject<{
|
|
1153
1170
|
kind: z.ZodLiteral<"all_versions">;
|
|
1154
1171
|
}, z.core.$strict>], "kind">;
|
|
1155
|
-
connectionId: z.
|
|
1172
|
+
connectionId: z.ZodTemplateLiteral<`acn_${string}`>;
|
|
1156
1173
|
subject: z.ZodString;
|
|
1157
1174
|
}, z.core.$strict>;
|
|
1158
1175
|
export type ExternalGrantCreate = z.infer<typeof externalGrantCreateSchema>;
|