@spacefast/common 0.0.11 → 0.0.13
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/connect-targets.d.ts +4 -4
- package/dist/agents/connect-targets.js +3 -3
- package/dist/agents/private-key-oauth.d.ts +37 -0
- package/dist/agents/private-key-oauth.js +158 -0
- package/dist/config/domains.js +1 -1
- package/dist/config/index.d.ts +1 -0
- package/dist/config/index.js +1 -0
- package/dist/config/postgres-budget.d.ts +126 -0
- package/dist/config/postgres-budget.js +135 -0
- package/dist/config/postgres-budget.json +50 -0
- package/dist/contracts/access.d.ts +386 -1183
- package/dist/contracts/access.js +240 -1018
- package/dist/contracts/activity.d.ts +1 -1
- package/dist/contracts/activity.js +11 -19
- package/dist/contracts/api-keys.d.ts +69 -45
- package/dist/contracts/api-keys.js +3 -0
- package/dist/contracts/archives.d.ts +9 -10
- package/dist/contracts/archives.js +4 -6
- package/dist/contracts/builds.d.ts +8 -8
- package/dist/contracts/builds.js +28 -48
- package/dist/contracts/channels.js +1 -2
- package/dist/contracts/comments.d.ts +102 -93
- package/dist/contracts/comments.js +121 -63
- package/dist/contracts/common.d.ts +4 -3
- package/dist/contracts/common.js +2 -0
- package/dist/contracts/countries.js +2 -7
- package/dist/contracts/data-source-routes.d.ts +20 -0
- package/dist/contracts/data-source-routes.js +15 -0
- package/dist/contracts/deployments.d.ts +3 -3
- package/dist/contracts/device-auth.d.ts +21 -15
- package/dist/contracts/docs.d.ts +5 -5
- package/dist/contracts/domains.d.ts +261 -1330
- package/dist/contracts/domains.js +39 -301
- package/dist/contracts/email-preferences.d.ts +50 -0
- package/dist/contracts/email-preferences.js +44 -0
- package/dist/contracts/enums.d.ts +3 -5
- package/dist/contracts/enums.js +3 -8
- package/dist/contracts/error-code-meta.d.ts +99 -33
- package/dist/contracts/error-code-meta.js +36 -9
- package/dist/contracts/error-codes.d.ts +1 -1
- package/dist/contracts/error-codes.js +28 -11
- package/dist/contracts/execution.d.ts +212 -0
- package/dist/contracts/execution.js +288 -0
- package/dist/contracts/feature-lifecycle.d.ts +498 -2
- package/dist/contracts/feature-lifecycle.js +539 -2
- package/dist/contracts/features.d.ts +184 -74
- package/dist/contracts/features.js +4 -303
- package/dist/contracts/functions.d.ts +729 -0
- package/dist/contracts/functions.js +485 -0
- package/dist/contracts/git.d.ts +1 -1
- package/dist/contracts/grants.d.ts +1158 -0
- package/dist/contracts/grants.js +696 -0
- package/dist/contracts/ids.d.ts +6 -5
- package/dist/contracts/ids.js +6 -5
- package/dist/contracts/internal.d.ts +3 -3
- package/dist/contracts/mcp.d.ts +12 -12
- package/dist/contracts/me.js +1 -1
- package/dist/contracts/mounts.d.ts +142 -0
- package/dist/contracts/mounts.js +56 -0
- package/dist/contracts/oauth-resources.d.ts +5 -5
- package/dist/contracts/oauth-resources.js +2 -0
- package/dist/contracts/operations.d.ts +4 -4
- package/dist/contracts/pages.d.ts +6 -14
- package/dist/contracts/pages.js +11 -23
- package/dist/contracts/plan-policy.d.ts +2 -9
- package/dist/contracts/plan-policy.js +1 -4
- package/dist/contracts/platform.d.ts +80 -32
- package/dist/contracts/platform.js +59 -12
- package/dist/contracts/push-new.d.ts +26 -2
- package/dist/contracts/push-new.js +8 -0
- package/dist/contracts/quotas.d.ts +0 -1
- package/dist/contracts/quotas.js +0 -5
- package/dist/contracts/repository-connections.d.ts +1 -1
- package/dist/contracts/resources.d.ts +21 -85
- package/dist/contracts/resources.js +17 -47
- package/dist/contracts/runtime-api.d.ts +799 -192
- package/dist/contracts/runtime-api.js +231 -100
- package/dist/contracts/runtime-app.d.ts +138 -0
- package/dist/contracts/runtime-app.js +21 -0
- package/dist/contracts/sf-config-v1.d.ts +5 -0
- package/dist/contracts/sf-config-v1.js +1 -1
- package/dist/contracts/sites.d.ts +17 -12
- package/dist/contracts/sites.js +30 -12
- package/dist/contracts/space-config.d.ts +46 -117
- package/dist/contracts/space-config.js +323 -25
- package/dist/contracts/spaces.d.ts +392 -256
- package/dist/contracts/spaces.js +163 -83
- package/dist/contracts/superadmin-emails.d.ts +27 -3
- package/dist/contracts/superadmin-emails.js +10 -15
- package/dist/contracts/superadmin-runtime.d.ts +2 -2
- package/dist/contracts/superadmin-spaces.d.ts +19 -142
- package/dist/contracts/superadmin-spaces.js +7 -0
- package/dist/contracts/tags.d.ts +66 -36
- package/dist/contracts/tags.js +195 -11
- package/dist/contracts/teams.d.ts +9 -9
- package/dist/contracts/transfers.d.ts +1 -2
- package/dist/contracts/variables.d.ts +4 -4
- package/dist/contracts/variables.js +4 -3
- package/dist/contracts/webhooks.d.ts +2 -2
- package/dist/contracts/zero.d.ts +437 -193
- package/dist/contracts/zero.js +149 -158
- package/dist/dashboard-paths/index.d.ts +3 -3
- package/dist/dashboard-paths/index.js +1 -0
- package/dist/docs/agent-prose.js +10 -8
- package/dist/docs/agent-setup.d.ts +6 -4
- package/dist/docs/agent-setup.js +26 -16
- package/dist/docs/agent-solutions.js +1 -1
- package/dist/docs/catalog.d.ts +35 -37
- package/dist/docs/catalog.js +36 -38
- package/dist/docs/error-docs.js +108 -44
- package/dist/utils/asset-fingerprint.d.ts +11 -0
- package/dist/utils/asset-fingerprint.js +46 -0
- package/dist/utils/auth-redirect.d.ts +1 -3
- package/dist/utils/auth-redirect.js +1 -21
- package/dist/utils/build-settings.d.ts +2 -0
- package/dist/utils/build-settings.js +61 -9
- package/dist/utils/credential-policy.d.ts +1 -1
- package/dist/utils/credential-policy.js +4 -0
- package/dist/utils/dns-instructions.d.ts +29 -0
- package/dist/utils/dns-instructions.js +78 -0
- package/dist/utils/domain-diagnostics.d.ts +29 -0
- package/dist/utils/domain-diagnostics.js +63 -0
- package/dist/utils/egress-policy.fixtures.json +51 -0
- package/dist/utils/grants.d.ts +53 -0
- package/dist/utils/grants.js +160 -0
- package/dist/utils/id-hints.d.ts +1 -0
- package/dist/utils/id-hints.js +55 -13
- package/dist/utils/local-space-state.js +1 -0
- package/dist/utils/page-colors.d.ts +50 -0
- package/dist/utils/page-colors.js +167 -0
- package/dist/utils/page-fonts.d.ts +2 -0
- package/dist/utils/page-fonts.js +4 -0
- package/dist/utils/pages.d.ts +19 -6
- package/dist/utils/pages.js +122 -49
- package/dist/utils/production-runtime.d.ts +18 -0
- package/dist/utils/production-runtime.js +28 -0
- package/dist/utils/publish-policy.d.ts +34 -4
- package/dist/utils/publish-policy.js +132 -61
- package/dist/utils/query-keys.d.ts +7 -13
- package/dist/utils/query-keys.js +12 -18
- package/dist/utils/source-archive-policy.d.ts +2 -0
- package/dist/utils/source-archive-policy.js +2 -0
- package/dist/utils/space-config.d.ts +5 -1
- package/dist/utils/space-config.js +35 -0
- package/dist/utils/static-runtime-policy.d.ts +5 -0
- package/dist/utils/static-runtime-policy.fixtures.json +57 -0
- package/dist/utils/static-runtime-policy.js +54 -10
- package/dist/utils/upload-session.d.ts +3 -0
- package/dist/utils/upload-session.js +31 -0
- package/package.json +6 -4
- package/dist/contracts/annotations.d.ts +0 -327
- package/dist/contracts/annotations.js +0 -235
- package/dist/contracts/generated-feature-launch-entries.d.ts +0 -2
- package/dist/contracts/generated-feature-launch-entries.js +0 -518
- package/dist/contracts/publishes.d.ts +0 -135
- package/dist/contracts/publishes.js +0 -162
- package/dist/utils/access-match.d.ts +0 -39
- package/dist/utils/access-match.js +0 -296
- package/dist/utils/sf-config-v1.d.ts +0 -2
- package/dist/utils/sf-config-v1.js +0 -542
|
@@ -1,1252 +1,455 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
export declare const
|
|
3
|
-
export
|
|
4
|
-
export declare const
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
2
|
+
export declare const SPACE_ACCESS_PRESETS: readonly ["private", "team", "public"];
|
|
3
|
+
export declare const ACCESS_HANDOFF_MEDIA_TYPE = "application/vnd.spacefast.access-handoff+json";
|
|
4
|
+
export declare const spaceAccessPresetSchema: z.ZodEnum<{
|
|
5
|
+
team: "team";
|
|
6
|
+
public: "public";
|
|
7
|
+
private: "private";
|
|
8
|
+
}>;
|
|
9
|
+
export type SpaceAccessPreset = z.infer<typeof spaceAccessPresetSchema>;
|
|
10
|
+
export declare const ACCESS_ROLES: readonly ["viewer", "commenter", "editor", "manager"];
|
|
11
|
+
export declare const accessRoleSchema: z.ZodEnum<{
|
|
9
12
|
viewer: "viewer";
|
|
10
13
|
commenter: "commenter";
|
|
11
14
|
editor: "editor";
|
|
12
|
-
|
|
13
|
-
}>;
|
|
14
|
-
export type SpaceLevel = z.infer<typeof spaceLevelSchema>;
|
|
15
|
-
export declare const accessKeySchema: z.ZodObject<{
|
|
16
|
-
kid: z.ZodString;
|
|
17
|
-
alg: z.ZodLiteral<"EdDSA">;
|
|
18
|
-
publicKey: z.ZodString;
|
|
19
|
-
grantNamespaces: z.ZodArray<z.ZodString>;
|
|
20
|
-
}, z.core.$strip>;
|
|
21
|
-
export type AccessKey = z.infer<typeof accessKeySchema>;
|
|
22
|
-
export declare const ACCESS_CONNECTION_TYPES: readonly ["oidc", "external"];
|
|
23
|
-
export declare const accessConnectionTypeSchema: z.ZodEnum<{
|
|
24
|
-
external: "external";
|
|
25
|
-
oidc: "oidc";
|
|
15
|
+
manager: "manager";
|
|
26
16
|
}>;
|
|
27
|
-
export
|
|
28
|
-
export declare
|
|
29
|
-
export declare
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
export declare function
|
|
35
|
-
export declare
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
}): string[];
|
|
42
|
-
export declare const externalConnectionPublicKeySchema: z.ZodObject<{
|
|
43
|
-
kid: z.ZodString;
|
|
44
|
-
publicKey: z.ZodString;
|
|
45
|
-
}, z.core.$strip>;
|
|
46
|
-
export type ExternalConnectionPublicKey = z.infer<typeof externalConnectionPublicKeySchema>;
|
|
47
|
-
export declare const accessConnectionSchema: z.ZodObject<{
|
|
17
|
+
export type AccessRole = z.infer<typeof accessRoleSchema>;
|
|
18
|
+
export declare function accessRoleRank(role: AccessRole): number;
|
|
19
|
+
export declare function maxAccessRole(left: AccessRole | null, right: AccessRole | null): AccessRole | null;
|
|
20
|
+
/**
|
|
21
|
+
* Canonicalizes the URL route identity used by People, Links, requests,
|
|
22
|
+
* comments, and runtime authorization.
|
|
23
|
+
*/
|
|
24
|
+
export declare function normalizeAccessScopePath(input: string): string;
|
|
25
|
+
export declare const accessScopePathSchema: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
|
|
26
|
+
export type AccessScopePath = z.infer<typeof accessScopePathSchema>;
|
|
27
|
+
export declare function accessScopeContains(scope: string, path: string): boolean;
|
|
28
|
+
export declare const authorityReferenceSchema: z.ZodString;
|
|
29
|
+
export type AuthorityReference = z.infer<typeof authorityReferenceSchema>;
|
|
30
|
+
export declare const personGrantSchema: z.ZodObject<{
|
|
48
31
|
id: z.ZodString;
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
32
|
+
scope: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
|
|
33
|
+
role: z.ZodEnum<{
|
|
34
|
+
viewer: "viewer";
|
|
35
|
+
commenter: "commenter";
|
|
36
|
+
editor: "editor";
|
|
37
|
+
manager: "manager";
|
|
53
38
|
}>;
|
|
54
|
-
name: z.ZodString;
|
|
55
|
-
issuer: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
56
|
-
clientId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
57
|
-
clientSecretSet: z.ZodDefault<z.ZodBoolean>;
|
|
58
|
-
authorizeUrl: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
59
|
-
publicKeys: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
60
|
-
kid: z.ZodString;
|
|
61
|
-
publicKey: z.ZodString;
|
|
62
|
-
}, z.core.$strip>>>;
|
|
63
|
-
sessionTtlSeconds: z.ZodNumber;
|
|
64
|
-
guestEmailDomains: z.ZodDefault<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
65
39
|
createdAt: z.ZodString;
|
|
66
|
-
revokedAt: z.
|
|
67
|
-
active: z.ZodBoolean;
|
|
68
|
-
}, z.core.$strip>;
|
|
69
|
-
export type AccessConnection = z.infer<typeof accessConnectionSchema>;
|
|
70
|
-
export declare const oidcConnectionCreateSchema: z.ZodObject<{
|
|
71
|
-
type: z.ZodLiteral<"oidc">;
|
|
72
|
-
name: z.ZodString;
|
|
73
|
-
issuer: z.ZodString;
|
|
74
|
-
clientId: z.ZodString;
|
|
75
|
-
clientSecret: z.ZodString;
|
|
76
|
-
sessionTtlSeconds: z.ZodOptional<z.ZodNumber>;
|
|
77
|
-
guestEmailDomains: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
40
|
+
revokedAt: z.ZodNullable<z.ZodString>;
|
|
78
41
|
}, z.core.$strip>;
|
|
79
|
-
export
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
42
|
+
export type PersonGrant = z.infer<typeof personGrantSchema>;
|
|
43
|
+
export declare const spacePersonStatusSchema: z.ZodEnum<{
|
|
44
|
+
revoked: "revoked";
|
|
45
|
+
pending: "pending";
|
|
46
|
+
accepted: "accepted";
|
|
47
|
+
}>;
|
|
48
|
+
export declare const spacePersonDisplayNameSchema: z.ZodString;
|
|
49
|
+
export declare function fallbackSpacePersonDisplayName(personId: string): string;
|
|
50
|
+
export declare const spacePersonSchema: z.ZodObject<{
|
|
51
|
+
id: z.ZodString;
|
|
52
|
+
spaceId: z.ZodString;
|
|
53
|
+
displayName: z.ZodString;
|
|
54
|
+
email: z.ZodNullable<z.ZodString>;
|
|
55
|
+
status: z.ZodEnum<{
|
|
56
|
+
revoked: "revoked";
|
|
57
|
+
pending: "pending";
|
|
58
|
+
accepted: "accepted";
|
|
59
|
+
}>;
|
|
60
|
+
grants: z.ZodArray<z.ZodObject<{
|
|
61
|
+
id: z.ZodString;
|
|
62
|
+
scope: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
|
|
63
|
+
role: z.ZodEnum<{
|
|
64
|
+
viewer: "viewer";
|
|
65
|
+
commenter: "commenter";
|
|
66
|
+
editor: "editor";
|
|
67
|
+
manager: "manager";
|
|
68
|
+
}>;
|
|
69
|
+
createdAt: z.ZodString;
|
|
70
|
+
revokedAt: z.ZodNullable<z.ZodString>;
|
|
86
71
|
}, z.core.$strip>>;
|
|
87
|
-
|
|
88
|
-
|
|
72
|
+
invitedBy: z.ZodNullable<z.ZodString>;
|
|
73
|
+
inviteExpiresAt: z.ZodNullable<z.ZodString>;
|
|
74
|
+
acceptedAt: z.ZodNullable<z.ZodString>;
|
|
75
|
+
revokedAt: z.ZodNullable<z.ZodString>;
|
|
76
|
+
createdAt: z.ZodString;
|
|
89
77
|
}, z.core.$strip>;
|
|
90
|
-
export
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
publicKeys: z.ZodArray<z.ZodObject<{
|
|
103
|
-
kid: z.ZodString;
|
|
104
|
-
publicKey: z.ZodString;
|
|
78
|
+
export type SpacePerson = z.infer<typeof spacePersonSchema>;
|
|
79
|
+
export declare const inheritedTeamAccessSchema: z.ZodObject<{
|
|
80
|
+
teamId: z.ZodString;
|
|
81
|
+
teamName: z.ZodString;
|
|
82
|
+
ruleScopes: z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>;
|
|
83
|
+
members: z.ZodArray<z.ZodObject<{
|
|
84
|
+
membershipId: z.ZodString;
|
|
85
|
+
userId: z.ZodString;
|
|
86
|
+
displayName: z.ZodString;
|
|
87
|
+
email: z.ZodString;
|
|
88
|
+
teamRole: z.ZodString;
|
|
89
|
+
role: z.ZodLiteral<"editor">;
|
|
105
90
|
}, z.core.$strip>>;
|
|
106
|
-
sessionTtlSeconds: z.ZodOptional<z.ZodNumber>;
|
|
107
|
-
guestEmailDomains: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
108
|
-
}, z.core.$strip>], "type">;
|
|
109
|
-
export type AccessConnectionCreate = z.infer<typeof accessConnectionCreateSchema>;
|
|
110
|
-
export declare const accessConnectionUpdateSchema: z.ZodObject<{
|
|
111
|
-
name: z.ZodOptional<z.ZodString>;
|
|
112
|
-
issuer: z.ZodOptional<z.ZodString>;
|
|
113
|
-
clientId: z.ZodOptional<z.ZodString>;
|
|
114
|
-
clientSecret: z.ZodOptional<z.ZodString>;
|
|
115
|
-
authorizeUrl: z.ZodOptional<z.ZodString>;
|
|
116
|
-
publicKeys: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
117
|
-
kid: z.ZodString;
|
|
118
|
-
publicKey: z.ZodString;
|
|
119
|
-
}, z.core.$strip>>>;
|
|
120
|
-
sessionTtlSeconds: z.ZodOptional<z.ZodNumber>;
|
|
121
|
-
guestEmailDomains: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
122
91
|
}, z.core.$strip>;
|
|
123
|
-
export type
|
|
124
|
-
export declare const
|
|
125
|
-
|
|
92
|
+
export type InheritedTeamAccess = z.infer<typeof inheritedTeamAccessSchema>;
|
|
93
|
+
export declare const spacePeopleListSchema: z.ZodObject<{
|
|
94
|
+
people: z.ZodArray<z.ZodObject<{
|
|
126
95
|
id: z.ZodString;
|
|
127
|
-
teamId: z.ZodString;
|
|
128
|
-
type: z.ZodEnum<{
|
|
129
|
-
external: "external";
|
|
130
|
-
oidc: "oidc";
|
|
131
|
-
}>;
|
|
132
|
-
name: z.ZodString;
|
|
133
|
-
issuer: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
134
|
-
clientId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
135
|
-
clientSecretSet: z.ZodDefault<z.ZodBoolean>;
|
|
136
|
-
authorizeUrl: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
137
|
-
publicKeys: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
138
|
-
kid: z.ZodString;
|
|
139
|
-
publicKey: z.ZodString;
|
|
140
|
-
}, z.core.$strip>>>;
|
|
141
|
-
sessionTtlSeconds: z.ZodNumber;
|
|
142
|
-
guestEmailDomains: z.ZodDefault<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
143
|
-
createdAt: z.ZodString;
|
|
144
|
-
revokedAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
145
|
-
active: z.ZodBoolean;
|
|
146
|
-
}, z.core.$strip>;
|
|
147
|
-
disabledRules: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
148
96
|
spaceId: z.ZodString;
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
ref: z.ZodString;
|
|
156
|
-
transport: z.ZodEnum<{
|
|
157
|
-
basic: "basic";
|
|
158
|
-
form: "form";
|
|
159
|
-
}>;
|
|
160
|
-
username: z.ZodOptional<z.ZodString>;
|
|
161
|
-
}, z.core.$strip>;
|
|
162
|
-
export declare const loginAcquireSchema: z.ZodObject<{
|
|
163
|
-
type: z.ZodLiteral<"login">;
|
|
164
|
-
url: z.ZodString;
|
|
165
|
-
label: z.ZodOptional<z.ZodString>;
|
|
166
|
-
}, z.core.$strip>;
|
|
167
|
-
export declare const acquireSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
168
|
-
type: z.ZodLiteral<"password">;
|
|
169
|
-
ref: z.ZodString;
|
|
170
|
-
transport: z.ZodEnum<{
|
|
171
|
-
basic: "basic";
|
|
172
|
-
form: "form";
|
|
173
|
-
}>;
|
|
174
|
-
username: z.ZodOptional<z.ZodString>;
|
|
175
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
176
|
-
type: z.ZodLiteral<"login">;
|
|
177
|
-
url: z.ZodString;
|
|
178
|
-
label: z.ZodOptional<z.ZodString>;
|
|
179
|
-
}, z.core.$strip>], "type">;
|
|
180
|
-
export type Acquire = z.infer<typeof acquireSchema>;
|
|
181
|
-
export declare const ruleAuthSchema: z.ZodObject<{
|
|
182
|
-
requiredGrants: z.ZodArray<z.ZodString>;
|
|
183
|
-
issuers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
184
|
-
kid: z.ZodString;
|
|
185
|
-
alg: z.ZodLiteral<"EdDSA">;
|
|
186
|
-
publicKey: z.ZodString;
|
|
187
|
-
grantNamespaces: z.ZodArray<z.ZodString>;
|
|
188
|
-
}, z.core.$strip>>>;
|
|
189
|
-
acquire: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
190
|
-
type: z.ZodLiteral<"password">;
|
|
191
|
-
ref: z.ZodString;
|
|
192
|
-
transport: z.ZodEnum<{
|
|
193
|
-
basic: "basic";
|
|
194
|
-
form: "form";
|
|
97
|
+
displayName: z.ZodString;
|
|
98
|
+
email: z.ZodNullable<z.ZodString>;
|
|
99
|
+
status: z.ZodEnum<{
|
|
100
|
+
revoked: "revoked";
|
|
101
|
+
pending: "pending";
|
|
102
|
+
accepted: "accepted";
|
|
195
103
|
}>;
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
hostTemplate: z.ZodOptional<z.ZodString>;
|
|
208
|
-
pathPattern: z.ZodOptional<z.ZodString>;
|
|
209
|
-
channel: z.ZodOptional<z.ZodString>;
|
|
210
|
-
ipCidrs: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
211
|
-
agent: z.ZodOptional<z.ZodString>;
|
|
212
|
-
country: z.ZodOptional<z.ZodString>;
|
|
213
|
-
header: z.ZodOptional<z.ZodObject<{
|
|
214
|
-
name: z.ZodString;
|
|
215
|
-
value: z.ZodString;
|
|
216
|
-
}, z.core.$strip>>;
|
|
217
|
-
}, z.core.$strip>;
|
|
218
|
-
export declare const MANAGED_BY_VALUES: readonly ["sharing", "firewall", "file_share", "cast_reviewer", "team_default"];
|
|
219
|
-
export declare const managedBySchema: z.ZodEnum<{
|
|
220
|
-
sharing: "sharing";
|
|
221
|
-
firewall: "firewall";
|
|
222
|
-
file_share: "file_share";
|
|
223
|
-
cast_reviewer: "cast_reviewer";
|
|
224
|
-
team_default: "team_default";
|
|
225
|
-
}>;
|
|
226
|
-
export type ManagedBy = z.infer<typeof managedBySchema>;
|
|
227
|
-
export declare const runtimeRuleSchema: z.ZodObject<{
|
|
228
|
-
id: z.ZodOptional<z.ZodString>;
|
|
229
|
-
match: z.ZodDefault<z.ZodObject<{
|
|
230
|
-
host: z.ZodOptional<z.ZodString>;
|
|
231
|
-
hostPattern: z.ZodOptional<z.ZodString>;
|
|
232
|
-
hostTemplate: z.ZodOptional<z.ZodString>;
|
|
233
|
-
pathPattern: z.ZodOptional<z.ZodString>;
|
|
234
|
-
channel: z.ZodOptional<z.ZodString>;
|
|
235
|
-
ipCidrs: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
236
|
-
agent: z.ZodOptional<z.ZodString>;
|
|
237
|
-
country: z.ZodOptional<z.ZodString>;
|
|
238
|
-
header: z.ZodOptional<z.ZodObject<{
|
|
239
|
-
name: z.ZodString;
|
|
240
|
-
value: z.ZodString;
|
|
104
|
+
grants: z.ZodArray<z.ZodObject<{
|
|
105
|
+
id: z.ZodString;
|
|
106
|
+
scope: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
|
|
107
|
+
role: z.ZodEnum<{
|
|
108
|
+
viewer: "viewer";
|
|
109
|
+
commenter: "commenter";
|
|
110
|
+
editor: "editor";
|
|
111
|
+
manager: "manager";
|
|
112
|
+
}>;
|
|
113
|
+
createdAt: z.ZodString;
|
|
114
|
+
revokedAt: z.ZodNullable<z.ZodString>;
|
|
241
115
|
}, z.core.$strip>>;
|
|
116
|
+
invitedBy: z.ZodNullable<z.ZodString>;
|
|
117
|
+
inviteExpiresAt: z.ZodNullable<z.ZodString>;
|
|
118
|
+
acceptedAt: z.ZodNullable<z.ZodString>;
|
|
119
|
+
revokedAt: z.ZodNullable<z.ZodString>;
|
|
120
|
+
createdAt: z.ZodString;
|
|
242
121
|
}, z.core.$strip>>;
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
}, z.core.$strip>>>;
|
|
256
|
-
acquire: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
257
|
-
type: z.ZodLiteral<"password">;
|
|
258
|
-
ref: z.ZodString;
|
|
259
|
-
transport: z.ZodEnum<{
|
|
260
|
-
basic: "basic";
|
|
261
|
-
form: "form";
|
|
262
|
-
}>;
|
|
263
|
-
username: z.ZodOptional<z.ZodString>;
|
|
264
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
265
|
-
type: z.ZodLiteral<"login">;
|
|
266
|
-
url: z.ZodString;
|
|
267
|
-
label: z.ZodOptional<z.ZodString>;
|
|
268
|
-
}, z.core.$strip>], "type">>>;
|
|
122
|
+
inheritedTeamAccess: z.ZodNullable<z.ZodObject<{
|
|
123
|
+
teamId: z.ZodString;
|
|
124
|
+
teamName: z.ZodString;
|
|
125
|
+
ruleScopes: z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>;
|
|
126
|
+
members: z.ZodArray<z.ZodObject<{
|
|
127
|
+
membershipId: z.ZodString;
|
|
128
|
+
userId: z.ZodString;
|
|
129
|
+
displayName: z.ZodString;
|
|
130
|
+
email: z.ZodString;
|
|
131
|
+
teamRole: z.ZodString;
|
|
132
|
+
role: z.ZodLiteral<"editor">;
|
|
133
|
+
}, z.core.$strip>>;
|
|
269
134
|
}, z.core.$strip>>;
|
|
270
|
-
managedBy: z.ZodOptional<z.ZodEnum<{
|
|
271
|
-
sharing: "sharing";
|
|
272
|
-
firewall: "firewall";
|
|
273
|
-
file_share: "file_share";
|
|
274
|
-
cast_reviewer: "cast_reviewer";
|
|
275
|
-
team_default: "team_default";
|
|
276
|
-
}>>;
|
|
277
|
-
expiresAt: z.ZodOptional<z.ZodNumber>;
|
|
278
|
-
reasonCode: z.ZodOptional<z.ZodString>;
|
|
279
|
-
message: z.ZodOptional<z.ZodString>;
|
|
280
135
|
}, z.core.$strip>;
|
|
281
|
-
export type
|
|
282
|
-
export declare const
|
|
283
|
-
export declare const ACCESS_TOKEN_ALG = "EdDSA";
|
|
284
|
-
export declare const RUNTIME_JWKS_WELL_KNOWN_FILENAME = "spacefast-runtime-jwks.json";
|
|
285
|
-
export declare const LOCAL_PW_TOKEN_KID = "spacefast-local-pw-v1";
|
|
286
|
-
export declare const accessTokenPayloadSchema: z.ZodObject<{
|
|
287
|
-
sub: z.ZodString;
|
|
288
|
-
grants: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
289
|
-
exp: z.ZodNumber;
|
|
290
|
-
nbf: z.ZodOptional<z.ZodNumber>;
|
|
291
|
-
iat: z.ZodOptional<z.ZodNumber>;
|
|
292
|
-
iss: z.ZodOptional<z.ZodString>;
|
|
293
|
-
aud: z.ZodOptional<z.ZodString>;
|
|
294
|
-
sv: z.ZodOptional<z.ZodNumber>;
|
|
295
|
-
jti: z.ZodOptional<z.ZodString>;
|
|
296
|
-
}, z.core.$strip>;
|
|
297
|
-
export type AccessTokenPayload = z.infer<typeof accessTokenPayloadSchema>;
|
|
298
|
-
export declare const authorizeRequestSchema: z.ZodObject<{
|
|
299
|
-
aud: z.ZodOptional<z.ZodString>;
|
|
300
|
-
}, z.core.$strip>;
|
|
301
|
-
export declare const authorizeResponseSchema: z.ZodObject<{
|
|
302
|
-
token: z.ZodString;
|
|
303
|
-
payload: z.ZodObject<{
|
|
304
|
-
sub: z.ZodString;
|
|
305
|
-
grants: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
306
|
-
exp: z.ZodNumber;
|
|
307
|
-
nbf: z.ZodOptional<z.ZodNumber>;
|
|
308
|
-
iat: z.ZodOptional<z.ZodNumber>;
|
|
309
|
-
iss: z.ZodOptional<z.ZodString>;
|
|
310
|
-
aud: z.ZodOptional<z.ZodString>;
|
|
311
|
-
sv: z.ZodOptional<z.ZodNumber>;
|
|
312
|
-
jti: z.ZodOptional<z.ZodString>;
|
|
313
|
-
}, z.core.$strip>;
|
|
314
|
-
expiresAt: z.ZodNumber;
|
|
315
|
-
}, z.core.$strip>;
|
|
316
|
-
export declare const accessEventSchema: z.ZodObject<{
|
|
317
|
-
sub: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
318
|
-
grantsHash: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
319
|
-
ruleId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
320
|
-
effect: z.ZodEnum<{
|
|
321
|
-
allow: "allow";
|
|
322
|
-
deny: "deny";
|
|
323
|
-
challenge: "challenge";
|
|
324
|
-
}>;
|
|
325
|
-
reasonCode: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
326
|
-
host: z.ZodString;
|
|
327
|
-
path: z.ZodString;
|
|
328
|
-
ts: z.ZodNumber;
|
|
329
|
-
}, z.core.$strip>;
|
|
330
|
-
export type AccessEvent = z.infer<typeof accessEventSchema>;
|
|
331
|
-
export declare function spaceLevelGrant(spaceId: string, level: SpaceLevel): string;
|
|
332
|
-
export declare function shareLinkGrant(linkId: string): string;
|
|
333
|
-
export declare function inviteGrant(inviteId: string): string;
|
|
334
|
-
export declare function serviceTokenGrant(tokenId: string): string;
|
|
335
|
-
export declare const SHARE_LINK_TOKEN_MAX_TTL_SECONDS: number;
|
|
336
|
-
export declare const shareLinkSchema: z.ZodObject<{
|
|
136
|
+
export type SpacePeopleList = z.infer<typeof spacePeopleListSchema>;
|
|
137
|
+
export declare const accessShareLinkSchema: z.ZodObject<{
|
|
337
138
|
id: z.ZodString;
|
|
338
139
|
spaceId: z.ZodString;
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
140
|
+
grantId: z.ZodString;
|
|
141
|
+
name: z.ZodString;
|
|
142
|
+
landingPath: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
|
|
143
|
+
resources: z.ZodObject<{
|
|
144
|
+
include: z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>;
|
|
145
|
+
exclude: z.ZodDefault<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>>;
|
|
146
|
+
}, z.core.$strict>;
|
|
147
|
+
capabilities: z.ZodArray<z.ZodEnum<{
|
|
148
|
+
"page.view": "page.view";
|
|
149
|
+
"comments.read": "comments.read";
|
|
150
|
+
"comments.write": "comments.write";
|
|
151
|
+
}>>;
|
|
152
|
+
constraints: z.ZodObject<{
|
|
153
|
+
notBefore: z.ZodOptional<z.ZodString>;
|
|
154
|
+
expiresAt: z.ZodOptional<z.ZodString>;
|
|
155
|
+
maxUses: z.ZodOptional<z.ZodNumber>;
|
|
156
|
+
requireVerifiedEmail: z.ZodOptional<z.ZodBoolean>;
|
|
157
|
+
network: z.ZodOptional<z.ZodObject<{
|
|
158
|
+
ipCidrs: z.ZodOptional<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>>;
|
|
159
|
+
countries: z.ZodOptional<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>>;
|
|
160
|
+
excludedCountries: z.ZodOptional<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>>;
|
|
161
|
+
excludedUserAgentSubstrings: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
162
|
+
}, z.core.$strict>>;
|
|
163
|
+
}, z.core.$strict>;
|
|
164
|
+
target: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
165
|
+
kind: z.ZodLiteral<"live">;
|
|
166
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
167
|
+
kind: z.ZodLiteral<"version">;
|
|
168
|
+
versionId: z.ZodString;
|
|
169
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
170
|
+
kind: z.ZodLiteral<"branch">;
|
|
171
|
+
branch: z.ZodString;
|
|
172
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
173
|
+
kind: z.ZodLiteral<"all_versions">;
|
|
174
|
+
}, z.core.$strict>], "kind">;
|
|
175
|
+
createdBy: z.ZodNullable<z.ZodString>;
|
|
176
|
+
openCount: z.ZodNumber;
|
|
177
|
+
lastUsedAt: z.ZodNullable<z.ZodString>;
|
|
178
|
+
revokedAt: z.ZodNullable<z.ZodString>;
|
|
343
179
|
createdAt: z.ZodString;
|
|
344
|
-
lastUsedAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
345
|
-
useCount: z.ZodDefault<z.ZodNumber>;
|
|
346
180
|
active: z.ZodBoolean;
|
|
347
181
|
}, z.core.$strip>;
|
|
348
|
-
export type
|
|
349
|
-
export declare const
|
|
350
|
-
path: z.ZodDefault<z.ZodString>;
|
|
351
|
-
expiresAt: z.ZodOptional<z.ZodNumber>;
|
|
352
|
-
label: z.ZodOptional<z.ZodString>;
|
|
353
|
-
}, z.core.$strip>;
|
|
354
|
-
export type ShareLinkCreate = z.infer<typeof shareLinkCreateSchema>;
|
|
355
|
-
export declare const shareLinkWithUrlSchema: z.ZodObject<{
|
|
182
|
+
export type AccessShareLink = z.infer<typeof accessShareLinkSchema>;
|
|
183
|
+
export declare const accessShareLinkWithUrlSchema: z.ZodObject<{
|
|
356
184
|
id: z.ZodString;
|
|
357
185
|
spaceId: z.ZodString;
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
186
|
+
grantId: z.ZodString;
|
|
187
|
+
name: z.ZodString;
|
|
188
|
+
landingPath: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
|
|
189
|
+
resources: z.ZodObject<{
|
|
190
|
+
include: z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>;
|
|
191
|
+
exclude: z.ZodDefault<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>>;
|
|
192
|
+
}, z.core.$strict>;
|
|
193
|
+
capabilities: z.ZodArray<z.ZodEnum<{
|
|
194
|
+
"page.view": "page.view";
|
|
195
|
+
"comments.read": "comments.read";
|
|
196
|
+
"comments.write": "comments.write";
|
|
197
|
+
}>>;
|
|
198
|
+
constraints: z.ZodObject<{
|
|
199
|
+
notBefore: z.ZodOptional<z.ZodString>;
|
|
200
|
+
expiresAt: z.ZodOptional<z.ZodString>;
|
|
201
|
+
maxUses: z.ZodOptional<z.ZodNumber>;
|
|
202
|
+
requireVerifiedEmail: z.ZodOptional<z.ZodBoolean>;
|
|
203
|
+
network: z.ZodOptional<z.ZodObject<{
|
|
204
|
+
ipCidrs: z.ZodOptional<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>>;
|
|
205
|
+
countries: z.ZodOptional<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>>;
|
|
206
|
+
excludedCountries: z.ZodOptional<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>>;
|
|
207
|
+
excludedUserAgentSubstrings: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
208
|
+
}, z.core.$strict>>;
|
|
209
|
+
}, z.core.$strict>;
|
|
210
|
+
target: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
211
|
+
kind: z.ZodLiteral<"live">;
|
|
212
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
213
|
+
kind: z.ZodLiteral<"version">;
|
|
214
|
+
versionId: z.ZodString;
|
|
215
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
216
|
+
kind: z.ZodLiteral<"branch">;
|
|
217
|
+
branch: z.ZodString;
|
|
218
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
219
|
+
kind: z.ZodLiteral<"all_versions">;
|
|
220
|
+
}, z.core.$strict>], "kind">;
|
|
221
|
+
createdBy: z.ZodNullable<z.ZodString>;
|
|
222
|
+
openCount: z.ZodNumber;
|
|
223
|
+
lastUsedAt: z.ZodNullable<z.ZodString>;
|
|
224
|
+
revokedAt: z.ZodNullable<z.ZodString>;
|
|
362
225
|
createdAt: z.ZodString;
|
|
363
|
-
lastUsedAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
364
|
-
useCount: z.ZodDefault<z.ZodNumber>;
|
|
365
226
|
active: z.ZodBoolean;
|
|
366
227
|
url: z.ZodString;
|
|
367
228
|
}, z.core.$strip>;
|
|
368
|
-
export type
|
|
369
|
-
export declare const
|
|
370
|
-
|
|
371
|
-
link: "link";
|
|
372
|
-
password: "password";
|
|
373
|
-
public: "public";
|
|
374
|
-
people: "people";
|
|
375
|
-
}>;
|
|
376
|
-
export type GeneralAccessMode = z.infer<typeof generalAccessModeSchema>;
|
|
377
|
-
export declare const sharingConnectionAudienceSchema: z.ZodObject<{
|
|
378
|
-
connectionId: z.ZodString;
|
|
379
|
-
tag: z.ZodOptional<z.ZodString>;
|
|
380
|
-
emailDomain: z.ZodOptional<z.ZodString>;
|
|
381
|
-
}, z.core.$strip>;
|
|
382
|
-
export type SharingConnectionAudience = z.infer<typeof sharingConnectionAudienceSchema>;
|
|
383
|
-
export declare const generalAccessWriteSchema: z.ZodObject<{
|
|
384
|
-
mode: z.ZodEnum<{
|
|
385
|
-
link: "link";
|
|
386
|
-
password: "password";
|
|
387
|
-
public: "public";
|
|
388
|
-
people: "people";
|
|
389
|
-
}>;
|
|
390
|
-
password: z.ZodOptional<z.ZodString>;
|
|
391
|
-
audiences: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
392
|
-
connectionId: z.ZodString;
|
|
393
|
-
tag: z.ZodOptional<z.ZodString>;
|
|
394
|
-
emailDomain: z.ZodOptional<z.ZodString>;
|
|
395
|
-
}, z.core.$strip>>>;
|
|
396
|
-
}, z.core.$strip>;
|
|
397
|
-
export declare const sharingAudienceSchema: z.ZodObject<{
|
|
398
|
-
connectionId: z.ZodString;
|
|
399
|
-
type: z.ZodEnum<{
|
|
400
|
-
external: "external";
|
|
401
|
-
oidc: "oidc";
|
|
402
|
-
}>;
|
|
403
|
-
name: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
404
|
-
tag: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
405
|
-
emailDomain: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
406
|
-
grant: z.ZodString;
|
|
407
|
-
}, z.core.$strip>;
|
|
408
|
-
export type SharingAudience = z.infer<typeof sharingAudienceSchema>;
|
|
409
|
-
export declare const sharingPersonSchema: z.ZodObject<{
|
|
410
|
-
kind: z.ZodEnum<{
|
|
411
|
-
team_member: "team_member";
|
|
412
|
-
invitee: "invitee";
|
|
413
|
-
}>;
|
|
414
|
-
userId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
415
|
-
email: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
416
|
-
name: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
417
|
-
teamRole: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
418
|
-
level: z.ZodDefault<z.ZodNullable<z.ZodEnum<{
|
|
419
|
-
viewer: "viewer";
|
|
420
|
-
commenter: "commenter";
|
|
421
|
-
editor: "editor";
|
|
422
|
-
admin: "admin";
|
|
423
|
-
}>>>;
|
|
424
|
-
inviteId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
425
|
-
status: z.ZodDefault<z.ZodNullable<z.ZodEnum<{
|
|
426
|
-
expired: "expired";
|
|
427
|
-
pending: "pending";
|
|
428
|
-
accepted: "accepted";
|
|
429
|
-
}>>>;
|
|
430
|
-
lastViewedAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
431
|
-
}, z.core.$strip>;
|
|
432
|
-
export type SharingPerson = z.infer<typeof sharingPersonSchema>;
|
|
433
|
-
export declare const INVITE_ACCEPT_LINK_TTL_SECONDS: number;
|
|
434
|
-
export declare const INVITE_TOKEN_TTL_SECONDS: number;
|
|
435
|
-
export declare const ACCESS_MESSAGE_MAX_LENGTH = 280;
|
|
436
|
-
export declare const INVITE_STATUSES: readonly ["pending", "accepted", "expired", "revoked"];
|
|
437
|
-
export declare const inviteStatusSchema: z.ZodEnum<{
|
|
229
|
+
export type AccessShareLinkWithUrl = z.infer<typeof accessShareLinkWithUrlSchema>;
|
|
230
|
+
export declare const canonicalAccessRequestStatusSchema: z.ZodEnum<{
|
|
231
|
+
canceled: "canceled";
|
|
438
232
|
expired: "expired";
|
|
439
233
|
pending: "pending";
|
|
440
|
-
|
|
441
|
-
revoked: "revoked";
|
|
442
|
-
}>;
|
|
443
|
-
export type InviteStatus = z.infer<typeof inviteStatusSchema>;
|
|
444
|
-
export declare const spaceInviteSchema: z.ZodObject<{
|
|
445
|
-
id: z.ZodString;
|
|
446
|
-
spaceId: z.ZodString;
|
|
447
|
-
email: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
448
|
-
invitedBy: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
449
|
-
message: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
450
|
-
status: z.ZodEnum<{
|
|
451
|
-
expired: "expired";
|
|
452
|
-
pending: "pending";
|
|
453
|
-
accepted: "accepted";
|
|
454
|
-
revoked: "revoked";
|
|
455
|
-
}>;
|
|
456
|
-
expiresAt: z.ZodNumber;
|
|
457
|
-
acceptedAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
458
|
-
createdAt: z.ZodString;
|
|
459
|
-
lastViewedAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
460
|
-
}, z.core.$strip>;
|
|
461
|
-
export type SpaceInvite = z.infer<typeof spaceInviteSchema>;
|
|
462
|
-
export declare const spaceInviteCreateSchema: z.ZodObject<{
|
|
463
|
-
email: z.ZodString;
|
|
464
|
-
message: z.ZodOptional<z.ZodString>;
|
|
465
|
-
}, z.core.$strip>;
|
|
466
|
-
export declare const ACCESS_REQUEST_STATUSES: readonly ["pending", "approved", "denied"];
|
|
467
|
-
export declare const accessRequestStatusSchema: z.ZodEnum<{
|
|
468
|
-
pending: "pending";
|
|
234
|
+
verification_pending: "verification_pending";
|
|
469
235
|
approved: "approved";
|
|
470
236
|
denied: "denied";
|
|
471
237
|
}>;
|
|
472
|
-
export declare const
|
|
238
|
+
export declare const accessRequestRoleSchema: z.ZodEnum<{
|
|
239
|
+
viewer: "viewer";
|
|
240
|
+
commenter: "commenter";
|
|
241
|
+
editor: "editor";
|
|
242
|
+
manager: "manager";
|
|
243
|
+
}>;
|
|
244
|
+
export type AccessRequestRole = z.infer<typeof accessRequestRoleSchema>;
|
|
245
|
+
export declare const canonicalAccessRequestSchema: z.ZodObject<{
|
|
473
246
|
id: z.ZodString;
|
|
474
247
|
spaceId: z.ZodString;
|
|
248
|
+
displayName: z.ZodNullable<z.ZodString>;
|
|
475
249
|
email: z.ZodString;
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
250
|
+
scope: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
|
|
251
|
+
requestedRole: z.ZodEnum<{
|
|
252
|
+
viewer: "viewer";
|
|
253
|
+
commenter: "commenter";
|
|
254
|
+
editor: "editor";
|
|
255
|
+
manager: "manager";
|
|
256
|
+
}>;
|
|
257
|
+
message: z.ZodNullable<z.ZodString>;
|
|
480
258
|
status: z.ZodEnum<{
|
|
259
|
+
canceled: "canceled";
|
|
260
|
+
expired: "expired";
|
|
481
261
|
pending: "pending";
|
|
262
|
+
verification_pending: "verification_pending";
|
|
482
263
|
approved: "approved";
|
|
483
264
|
denied: "denied";
|
|
484
265
|
}>;
|
|
485
|
-
|
|
486
|
-
|
|
266
|
+
emailVerifiedAt: z.ZodNullable<z.ZodString>;
|
|
267
|
+
resolvedBy: z.ZodNullable<z.ZodString>;
|
|
268
|
+
resolvedAt: z.ZodNullable<z.ZodString>;
|
|
487
269
|
createdAt: z.ZodString;
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
export
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
}, z.core.$strip>;
|
|
497
|
-
export declare const accessRequestApproveSchema: z.ZodObject<{
|
|
498
|
-
as: z.ZodDefault<z.ZodEnum<{
|
|
499
|
-
team: "team";
|
|
500
|
-
invite: "invite";
|
|
501
|
-
}>>;
|
|
502
|
-
}, z.core.$strip>;
|
|
503
|
-
export declare const FILE_SHARE_AUDIENCES: readonly ["public", "people"];
|
|
504
|
-
export declare const fileShareAudienceSchema: z.ZodEnum<{
|
|
505
|
-
public: "public";
|
|
506
|
-
people: "people";
|
|
270
|
+
updatedAt: z.ZodString;
|
|
271
|
+
}, z.core.$strip>;
|
|
272
|
+
export type CanonicalAccessRequest = z.infer<typeof canonicalAccessRequestSchema>;
|
|
273
|
+
export declare const accessFenceKindValues: readonly ["none", "ownership", "exposure"];
|
|
274
|
+
export declare const accessFenceKindSchema: z.ZodEnum<{
|
|
275
|
+
none: "none";
|
|
276
|
+
ownership: "ownership";
|
|
277
|
+
exposure: "exposure";
|
|
507
278
|
}>;
|
|
508
|
-
export type
|
|
509
|
-
export declare const
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
}, z.core.$strip>;
|
|
518
|
-
export type FileShare = z.infer<typeof fileShareSchema>;
|
|
519
|
-
export declare const fileShareWriteSchema: z.ZodObject<{
|
|
520
|
-
path: z.ZodString;
|
|
521
|
-
audience: z.ZodEnum<{
|
|
522
|
-
public: "public";
|
|
523
|
-
people: "people";
|
|
524
|
-
}>;
|
|
525
|
-
grants: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
526
|
-
}, z.core.$strip>;
|
|
527
|
-
export declare const sharingRequestSchema: z.ZodObject<{
|
|
528
|
-
id: z.ZodString;
|
|
279
|
+
export type AccessFenceKind = z.infer<typeof accessFenceKindSchema>;
|
|
280
|
+
export declare const ACCESS_GRANT_SCOPE_LIMIT = 32;
|
|
281
|
+
export declare const linkCapabilitiesSchema: z.ZodArray<z.ZodEnum<{
|
|
282
|
+
"page.view": "page.view";
|
|
283
|
+
"comments.read": "comments.read";
|
|
284
|
+
"comments.write": "comments.write";
|
|
285
|
+
}>>;
|
|
286
|
+
export type LinkCapabilities = z.infer<typeof linkCapabilitiesSchema>;
|
|
287
|
+
export declare const spacePersonInviteWriteSchema: z.ZodObject<{
|
|
529
288
|
email: z.ZodString;
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
export declare const serviceTokenAudienceSchema: z.ZodEnum<{
|
|
539
|
-
viewers: "viewers";
|
|
540
|
-
}>;
|
|
541
|
-
export declare const serviceTokenActsAsSchema: z.ZodObject<{
|
|
542
|
-
audiences: z.ZodDefault<z.ZodArray<z.ZodEnum<{
|
|
543
|
-
viewers: "viewers";
|
|
544
|
-
}>>>;
|
|
545
|
-
}, z.core.$strip>;
|
|
546
|
-
export type ServiceTokenActsAs = z.infer<typeof serviceTokenActsAsSchema>;
|
|
547
|
-
export declare const serviceTokenSchema: z.ZodObject<{
|
|
548
|
-
id: z.ZodString;
|
|
549
|
-
teamId: z.ZodString;
|
|
550
|
-
spaceId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
551
|
-
name: z.ZodString;
|
|
552
|
-
actsAs: z.ZodObject<{
|
|
553
|
-
audiences: z.ZodDefault<z.ZodArray<z.ZodEnum<{
|
|
554
|
-
viewers: "viewers";
|
|
555
|
-
}>>>;
|
|
556
|
-
}, z.core.$strip>;
|
|
557
|
-
expiresAt: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
558
|
-
lastUsedAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
559
|
-
createdAt: z.ZodString;
|
|
560
|
-
active: z.ZodBoolean;
|
|
561
|
-
}, z.core.$strip>;
|
|
562
|
-
export type ServiceToken = z.infer<typeof serviceTokenSchema>;
|
|
563
|
-
export declare const serviceTokenCreateSchema: z.ZodObject<{
|
|
564
|
-
name: z.ZodString;
|
|
565
|
-
spaceId: z.ZodOptional<z.ZodString>;
|
|
566
|
-
expiresAt: z.ZodOptional<z.ZodNumber>;
|
|
567
|
-
actsAs: z.ZodOptional<z.ZodObject<{
|
|
568
|
-
audiences: z.ZodDefault<z.ZodArray<z.ZodEnum<{
|
|
569
|
-
viewers: "viewers";
|
|
570
|
-
}>>>;
|
|
289
|
+
grants: z.ZodArray<z.ZodObject<{
|
|
290
|
+
scope: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
|
|
291
|
+
role: z.ZodEnum<{
|
|
292
|
+
viewer: "viewer";
|
|
293
|
+
commenter: "commenter";
|
|
294
|
+
editor: "editor";
|
|
295
|
+
manager: "manager";
|
|
296
|
+
}>;
|
|
571
297
|
}, z.core.$strip>>;
|
|
572
298
|
}, z.core.$strip>;
|
|
573
|
-
export
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
audiences: z.ZodDefault<z.ZodArray<z.ZodEnum<{
|
|
581
|
-
viewers: "viewers";
|
|
582
|
-
}>>>;
|
|
583
|
-
}, z.core.$strip>;
|
|
584
|
-
expiresAt: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
585
|
-
lastUsedAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
586
|
-
createdAt: z.ZodString;
|
|
587
|
-
active: z.ZodBoolean;
|
|
588
|
-
token: z.ZodString;
|
|
589
|
-
}, z.core.$strip>;
|
|
590
|
-
export type ServiceTokenWithSecret = z.infer<typeof serviceTokenWithSecretSchema>;
|
|
591
|
-
export declare const FIREWALL_EFFECTS: readonly ["deny", "challenge"];
|
|
592
|
-
export declare const firewallEffectSchema: z.ZodEnum<{
|
|
593
|
-
deny: "deny";
|
|
594
|
-
challenge: "challenge";
|
|
595
|
-
}>;
|
|
596
|
-
export type FirewallEffect = z.infer<typeof firewallEffectSchema>;
|
|
597
|
-
export declare const firewallCountriesSchema: z.ZodObject<{
|
|
598
|
-
mode: z.ZodEnum<{
|
|
599
|
-
allow: "allow";
|
|
600
|
-
block: "block";
|
|
299
|
+
export declare const personGrantWriteSchema: z.ZodObject<{
|
|
300
|
+
scope: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
|
|
301
|
+
role: z.ZodEnum<{
|
|
302
|
+
viewer: "viewer";
|
|
303
|
+
commenter: "commenter";
|
|
304
|
+
editor: "editor";
|
|
305
|
+
manager: "manager";
|
|
601
306
|
}>;
|
|
602
|
-
list: z.ZodArray<z.ZodString>;
|
|
603
|
-
effect: z.ZodDefault<z.ZodEnum<{
|
|
604
|
-
deny: "deny";
|
|
605
|
-
challenge: "challenge";
|
|
606
|
-
}>>;
|
|
607
|
-
}, z.core.$strip>;
|
|
608
|
-
export type FirewallCountries = z.infer<typeof firewallCountriesSchema>;
|
|
609
|
-
export declare const firewallIpEntrySchema: z.ZodObject<{
|
|
610
|
-
cidr: z.ZodString;
|
|
611
|
-
effect: z.ZodDefault<z.ZodEnum<{
|
|
612
|
-
deny: "deny";
|
|
613
|
-
challenge: "challenge";
|
|
614
|
-
}>>;
|
|
615
|
-
}, z.core.$strip>;
|
|
616
|
-
export type FirewallIpEntry = z.infer<typeof firewallIpEntrySchema>;
|
|
617
|
-
export declare const firewallBotEntrySchema: z.ZodObject<{
|
|
618
|
-
agent: z.ZodString;
|
|
619
|
-
effect: z.ZodDefault<z.ZodEnum<{
|
|
620
|
-
deny: "deny";
|
|
621
|
-
challenge: "challenge";
|
|
622
|
-
}>>;
|
|
623
|
-
}, z.core.$strip>;
|
|
624
|
-
export type FirewallBotEntry = z.infer<typeof firewallBotEntrySchema>;
|
|
625
|
-
export declare const firewallWriteSchema: z.ZodObject<{
|
|
626
|
-
countries: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
627
|
-
mode: z.ZodEnum<{
|
|
628
|
-
allow: "allow";
|
|
629
|
-
block: "block";
|
|
630
|
-
}>;
|
|
631
|
-
list: z.ZodArray<z.ZodString>;
|
|
632
|
-
effect: z.ZodDefault<z.ZodEnum<{
|
|
633
|
-
deny: "deny";
|
|
634
|
-
challenge: "challenge";
|
|
635
|
-
}>>;
|
|
636
|
-
}, z.core.$strip>>>;
|
|
637
|
-
ipCidrs: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
638
|
-
cidr: z.ZodString;
|
|
639
|
-
effect: z.ZodDefault<z.ZodEnum<{
|
|
640
|
-
deny: "deny";
|
|
641
|
-
challenge: "challenge";
|
|
642
|
-
}>>;
|
|
643
|
-
}, z.core.$strip>>>;
|
|
644
|
-
bots: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
645
|
-
agent: z.ZodString;
|
|
646
|
-
effect: z.ZodDefault<z.ZodEnum<{
|
|
647
|
-
deny: "deny";
|
|
648
|
-
challenge: "challenge";
|
|
649
|
-
}>>;
|
|
650
|
-
}, z.core.$strip>>>;
|
|
651
307
|
}, z.core.$strip>;
|
|
652
|
-
export
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
allow: "allow";
|
|
657
|
-
block: "block";
|
|
658
|
-
}>;
|
|
659
|
-
list: z.ZodArray<z.ZodString>;
|
|
660
|
-
effect: z.ZodDefault<z.ZodEnum<{
|
|
661
|
-
deny: "deny";
|
|
662
|
-
challenge: "challenge";
|
|
663
|
-
}>>;
|
|
664
|
-
}, z.core.$strip>>>;
|
|
665
|
-
ipCidrs: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
666
|
-
cidr: z.ZodString;
|
|
667
|
-
effect: z.ZodDefault<z.ZodEnum<{
|
|
668
|
-
deny: "deny";
|
|
669
|
-
challenge: "challenge";
|
|
670
|
-
}>>;
|
|
671
|
-
}, z.core.$strip>>>;
|
|
672
|
-
bots: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
673
|
-
agent: z.ZodString;
|
|
674
|
-
effect: z.ZodDefault<z.ZodEnum<{
|
|
675
|
-
deny: "deny";
|
|
676
|
-
challenge: "challenge";
|
|
677
|
-
}>>;
|
|
678
|
-
}, z.core.$strip>>>;
|
|
679
|
-
custom: z.ZodDefault<z.ZodBoolean>;
|
|
680
|
-
}, z.core.$strip>;
|
|
681
|
-
export type SpaceFirewall = z.infer<typeof spaceFirewallSchema>;
|
|
682
|
-
export declare const TEAM_PREVIEW_LOCK_LIVE_RULE_ID = "team-preview-lock:live";
|
|
683
|
-
export declare const TEAM_PREVIEW_LOCK_RULE_ID = "team-preview-lock";
|
|
684
|
-
export declare function teamPreviewLockRules(teamId: string): RuntimeRule[];
|
|
685
|
-
export declare function isTeamPreviewLockRule(rule: Pick<RuntimeRule, "id">): boolean;
|
|
686
|
-
export declare function teamPreviewLockActive(rules: ReadonlyArray<Pick<RuntimeRule, "id">>): boolean;
|
|
687
|
-
export declare function withTeamPreviewLock(rules: RuntimeRule[], teamId: string, enabled: boolean): RuntimeRule[];
|
|
688
|
-
export declare const spaceSharingSchema: z.ZodObject<{
|
|
689
|
-
generalAccess: z.ZodObject<{
|
|
690
|
-
mode: z.ZodEnum<{
|
|
691
|
-
link: "link";
|
|
692
|
-
password: "password";
|
|
693
|
-
public: "public";
|
|
694
|
-
people: "people";
|
|
695
|
-
}>;
|
|
696
|
-
hasPassword: z.ZodBoolean;
|
|
697
|
-
}, z.core.$strip>;
|
|
698
|
-
people: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
699
|
-
kind: z.ZodEnum<{
|
|
700
|
-
team_member: "team_member";
|
|
701
|
-
invitee: "invitee";
|
|
702
|
-
}>;
|
|
703
|
-
userId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
704
|
-
email: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
705
|
-
name: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
706
|
-
teamRole: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
707
|
-
level: z.ZodDefault<z.ZodNullable<z.ZodEnum<{
|
|
308
|
+
export declare const spacePersonGrantSetWriteSchema: z.ZodObject<{
|
|
309
|
+
grants: z.ZodArray<z.ZodObject<{
|
|
310
|
+
scope: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
|
|
311
|
+
role: z.ZodEnum<{
|
|
708
312
|
viewer: "viewer";
|
|
709
313
|
commenter: "commenter";
|
|
710
314
|
editor: "editor";
|
|
711
|
-
|
|
712
|
-
}>>>;
|
|
713
|
-
inviteId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
714
|
-
status: z.ZodDefault<z.ZodNullable<z.ZodEnum<{
|
|
715
|
-
expired: "expired";
|
|
716
|
-
pending: "pending";
|
|
717
|
-
accepted: "accepted";
|
|
718
|
-
}>>>;
|
|
719
|
-
lastViewedAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
720
|
-
}, z.core.$strip>>>;
|
|
721
|
-
audiences: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
722
|
-
connectionId: z.ZodString;
|
|
723
|
-
type: z.ZodEnum<{
|
|
724
|
-
external: "external";
|
|
725
|
-
oidc: "oidc";
|
|
315
|
+
manager: "manager";
|
|
726
316
|
}>;
|
|
727
|
-
|
|
728
|
-
tag: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
729
|
-
emailDomain: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
730
|
-
grant: z.ZodString;
|
|
731
|
-
}, z.core.$strip>>>;
|
|
732
|
-
links: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
733
|
-
id: z.ZodString;
|
|
734
|
-
spaceId: z.ZodString;
|
|
735
|
-
label: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
736
|
-
path: z.ZodString;
|
|
737
|
-
createdBy: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
738
|
-
expiresAt: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
739
|
-
createdAt: z.ZodString;
|
|
740
|
-
lastUsedAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
741
|
-
useCount: z.ZodDefault<z.ZodNumber>;
|
|
742
|
-
active: z.ZodBoolean;
|
|
743
|
-
}, z.core.$strip>>>;
|
|
744
|
-
fileShares: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
745
|
-
path: z.ZodString;
|
|
746
|
-
audience: z.ZodEnum<{
|
|
747
|
-
public: "public";
|
|
748
|
-
people: "people";
|
|
749
|
-
}>;
|
|
750
|
-
grants: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
751
|
-
patterns: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
752
|
-
}, z.core.$strip>>>;
|
|
753
|
-
requests: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
754
|
-
id: z.ZodString;
|
|
755
|
-
email: z.ZodString;
|
|
756
|
-
message: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
757
|
-
createdAt: z.ZodString;
|
|
758
|
-
host: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
759
|
-
path: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
760
|
-
}, z.core.$strip>>>;
|
|
761
|
-
customRulesActive: z.ZodBoolean;
|
|
762
|
-
accessExceedsPlan: z.ZodDefault<z.ZodBoolean>;
|
|
317
|
+
}, z.core.$strip>>;
|
|
763
318
|
}, z.core.$strip>;
|
|
764
|
-
export
|
|
765
|
-
export declare const channelSchema: z.ZodObject<{
|
|
319
|
+
export declare const accessShareLinkCreateSchema: z.ZodObject<{
|
|
766
320
|
name: z.ZodString;
|
|
767
|
-
|
|
768
|
-
|
|
321
|
+
landingPath: z.ZodDefault<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>;
|
|
322
|
+
resources: z.ZodObject<{
|
|
323
|
+
include: z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>;
|
|
324
|
+
exclude: z.ZodDefault<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>>;
|
|
325
|
+
}, z.core.$strict>;
|
|
326
|
+
capabilities: z.ZodDefault<z.ZodArray<z.ZodEnum<{
|
|
327
|
+
"page.view": "page.view";
|
|
328
|
+
"comments.read": "comments.read";
|
|
329
|
+
"comments.write": "comments.write";
|
|
330
|
+
}>>>;
|
|
331
|
+
constraints: z.ZodDefault<z.ZodObject<{
|
|
332
|
+
notBefore: z.ZodOptional<z.ZodString>;
|
|
333
|
+
expiresAt: z.ZodOptional<z.ZodString>;
|
|
334
|
+
maxUses: z.ZodOptional<z.ZodNumber>;
|
|
335
|
+
requireVerifiedEmail: z.ZodOptional<z.ZodBoolean>;
|
|
336
|
+
network: z.ZodOptional<z.ZodObject<{
|
|
337
|
+
ipCidrs: z.ZodOptional<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>>;
|
|
338
|
+
countries: z.ZodOptional<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>>;
|
|
339
|
+
excludedCountries: z.ZodOptional<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>>;
|
|
340
|
+
excludedUserAgentSubstrings: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
341
|
+
}, z.core.$strict>>;
|
|
342
|
+
}, z.core.$strict>>;
|
|
343
|
+
target: z.ZodDefault<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
344
|
+
kind: z.ZodLiteral<"live">;
|
|
345
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
346
|
+
kind: z.ZodLiteral<"version">;
|
|
769
347
|
versionId: z.ZodString;
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
managedBy: z.ZodOptional<z.ZodEnum<{
|
|
824
|
-
sharing: "sharing";
|
|
825
|
-
firewall: "firewall";
|
|
826
|
-
file_share: "file_share";
|
|
827
|
-
cast_reviewer: "cast_reviewer";
|
|
828
|
-
team_default: "team_default";
|
|
829
|
-
}>>;
|
|
830
|
-
expiresAt: z.ZodOptional<z.ZodNumber>;
|
|
831
|
-
reasonCode: z.ZodOptional<z.ZodString>;
|
|
832
|
-
message: z.ZodOptional<z.ZodString>;
|
|
833
|
-
}, z.core.$strip>>>;
|
|
834
|
-
issuers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
835
|
-
kid: z.ZodString;
|
|
836
|
-
alg: z.ZodLiteral<"EdDSA">;
|
|
837
|
-
publicKey: z.ZodString;
|
|
838
|
-
grantNamespaces: z.ZodArray<z.ZodString>;
|
|
839
|
-
}, z.core.$strip>>>;
|
|
840
|
-
sessionVersion: z.ZodOptional<z.ZodNumber>;
|
|
841
|
-
}, z.core.$strip>;
|
|
842
|
-
export type PolicyDoc = z.infer<typeof policyDocSchema>;
|
|
843
|
-
export declare const spacePolicySchema: z.ZodObject<{
|
|
844
|
-
rules: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
845
|
-
id: z.ZodOptional<z.ZodString>;
|
|
846
|
-
match: z.ZodDefault<z.ZodObject<{
|
|
847
|
-
host: z.ZodOptional<z.ZodString>;
|
|
848
|
-
hostPattern: z.ZodOptional<z.ZodString>;
|
|
849
|
-
hostTemplate: z.ZodOptional<z.ZodString>;
|
|
850
|
-
pathPattern: z.ZodOptional<z.ZodString>;
|
|
851
|
-
channel: z.ZodOptional<z.ZodString>;
|
|
852
|
-
ipCidrs: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
853
|
-
agent: z.ZodOptional<z.ZodString>;
|
|
854
|
-
country: z.ZodOptional<z.ZodString>;
|
|
855
|
-
header: z.ZodOptional<z.ZodObject<{
|
|
856
|
-
name: z.ZodString;
|
|
857
|
-
value: z.ZodString;
|
|
858
|
-
}, z.core.$strip>>;
|
|
859
|
-
}, z.core.$strip>>;
|
|
860
|
-
effect: z.ZodEnum<{
|
|
861
|
-
allow: "allow";
|
|
862
|
-
deny: "deny";
|
|
863
|
-
challenge: "challenge";
|
|
864
|
-
}>;
|
|
865
|
-
auth: z.ZodOptional<z.ZodObject<{
|
|
866
|
-
requiredGrants: z.ZodArray<z.ZodString>;
|
|
867
|
-
issuers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
868
|
-
kid: z.ZodString;
|
|
869
|
-
alg: z.ZodLiteral<"EdDSA">;
|
|
870
|
-
publicKey: z.ZodString;
|
|
871
|
-
grantNamespaces: z.ZodArray<z.ZodString>;
|
|
872
|
-
}, z.core.$strip>>>;
|
|
873
|
-
acquire: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
874
|
-
type: z.ZodLiteral<"password">;
|
|
875
|
-
ref: z.ZodString;
|
|
876
|
-
transport: z.ZodEnum<{
|
|
877
|
-
basic: "basic";
|
|
878
|
-
form: "form";
|
|
879
|
-
}>;
|
|
880
|
-
username: z.ZodOptional<z.ZodString>;
|
|
881
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
882
|
-
type: z.ZodLiteral<"login">;
|
|
883
|
-
url: z.ZodString;
|
|
884
|
-
label: z.ZodOptional<z.ZodString>;
|
|
885
|
-
}, z.core.$strip>], "type">>>;
|
|
886
|
-
}, z.core.$strip>>;
|
|
887
|
-
managedBy: z.ZodOptional<z.ZodEnum<{
|
|
888
|
-
sharing: "sharing";
|
|
889
|
-
firewall: "firewall";
|
|
890
|
-
file_share: "file_share";
|
|
891
|
-
cast_reviewer: "cast_reviewer";
|
|
892
|
-
team_default: "team_default";
|
|
893
|
-
}>>;
|
|
894
|
-
expiresAt: z.ZodOptional<z.ZodNumber>;
|
|
895
|
-
reasonCode: z.ZodOptional<z.ZodString>;
|
|
896
|
-
message: z.ZodOptional<z.ZodString>;
|
|
897
|
-
}, z.core.$strip>>>;
|
|
898
|
-
version: z.ZodDefault<z.ZodNumber>;
|
|
899
|
-
}, z.core.$strip>;
|
|
900
|
-
export type SpacePolicy = z.infer<typeof spacePolicySchema>;
|
|
901
|
-
export declare const spaceAccessRulesWriteSchema: z.ZodObject<{
|
|
902
|
-
rules: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
903
|
-
id: z.ZodOptional<z.ZodString>;
|
|
904
|
-
match: z.ZodDefault<z.ZodObject<{
|
|
905
|
-
host: z.ZodOptional<z.ZodString>;
|
|
906
|
-
hostPattern: z.ZodOptional<z.ZodString>;
|
|
907
|
-
hostTemplate: z.ZodOptional<z.ZodString>;
|
|
908
|
-
pathPattern: z.ZodOptional<z.ZodString>;
|
|
909
|
-
channel: z.ZodOptional<z.ZodString>;
|
|
910
|
-
ipCidrs: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
911
|
-
agent: z.ZodOptional<z.ZodString>;
|
|
912
|
-
country: z.ZodOptional<z.ZodString>;
|
|
913
|
-
header: z.ZodOptional<z.ZodObject<{
|
|
914
|
-
name: z.ZodString;
|
|
915
|
-
value: z.ZodString;
|
|
916
|
-
}, z.core.$strip>>;
|
|
917
|
-
}, z.core.$strip>>;
|
|
918
|
-
effect: z.ZodEnum<{
|
|
919
|
-
allow: "allow";
|
|
920
|
-
deny: "deny";
|
|
921
|
-
challenge: "challenge";
|
|
922
|
-
}>;
|
|
923
|
-
auth: z.ZodOptional<z.ZodObject<{
|
|
924
|
-
requiredGrants: z.ZodArray<z.ZodString>;
|
|
925
|
-
issuers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
926
|
-
kid: z.ZodString;
|
|
927
|
-
alg: z.ZodLiteral<"EdDSA">;
|
|
928
|
-
publicKey: z.ZodString;
|
|
929
|
-
grantNamespaces: z.ZodArray<z.ZodString>;
|
|
930
|
-
}, z.core.$strip>>>;
|
|
931
|
-
acquire: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
932
|
-
type: z.ZodLiteral<"password">;
|
|
933
|
-
ref: z.ZodString;
|
|
934
|
-
transport: z.ZodEnum<{
|
|
935
|
-
basic: "basic";
|
|
936
|
-
form: "form";
|
|
937
|
-
}>;
|
|
938
|
-
username: z.ZodOptional<z.ZodString>;
|
|
939
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
940
|
-
type: z.ZodLiteral<"login">;
|
|
941
|
-
url: z.ZodString;
|
|
942
|
-
label: z.ZodOptional<z.ZodString>;
|
|
943
|
-
}, z.core.$strip>], "type">>>;
|
|
944
|
-
}, z.core.$strip>>;
|
|
945
|
-
managedBy: z.ZodOptional<z.ZodEnum<{
|
|
946
|
-
sharing: "sharing";
|
|
947
|
-
firewall: "firewall";
|
|
948
|
-
file_share: "file_share";
|
|
949
|
-
cast_reviewer: "cast_reviewer";
|
|
950
|
-
team_default: "team_default";
|
|
951
|
-
}>>;
|
|
952
|
-
expiresAt: z.ZodOptional<z.ZodNumber>;
|
|
953
|
-
reasonCode: z.ZodOptional<z.ZodString>;
|
|
954
|
-
message: z.ZodOptional<z.ZodString>;
|
|
955
|
-
}, z.core.$strip>>>;
|
|
956
|
-
expectedVersion: z.ZodOptional<z.ZodNumber>;
|
|
348
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
349
|
+
kind: z.ZodLiteral<"branch">;
|
|
350
|
+
branch: z.ZodString;
|
|
351
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
352
|
+
kind: z.ZodLiteral<"all_versions">;
|
|
353
|
+
}, z.core.$strict>], "kind">>;
|
|
354
|
+
}, z.core.$strip>;
|
|
355
|
+
export declare const accessShareLinkUpdateSchema: z.ZodObject<{
|
|
356
|
+
name: z.ZodOptional<z.ZodString>;
|
|
357
|
+
landingPath: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>;
|
|
358
|
+
resources: z.ZodOptional<z.ZodObject<{
|
|
359
|
+
include: z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>;
|
|
360
|
+
exclude: z.ZodDefault<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>>;
|
|
361
|
+
}, z.core.$strict>>;
|
|
362
|
+
capabilities: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
363
|
+
"page.view": "page.view";
|
|
364
|
+
"comments.read": "comments.read";
|
|
365
|
+
"comments.write": "comments.write";
|
|
366
|
+
}>>>;
|
|
367
|
+
constraints: z.ZodOptional<z.ZodObject<{
|
|
368
|
+
notBefore: z.ZodOptional<z.ZodString>;
|
|
369
|
+
expiresAt: z.ZodOptional<z.ZodString>;
|
|
370
|
+
maxUses: z.ZodOptional<z.ZodNumber>;
|
|
371
|
+
requireVerifiedEmail: z.ZodOptional<z.ZodBoolean>;
|
|
372
|
+
network: z.ZodOptional<z.ZodObject<{
|
|
373
|
+
ipCidrs: z.ZodOptional<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>>;
|
|
374
|
+
countries: z.ZodOptional<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>>;
|
|
375
|
+
excludedCountries: z.ZodOptional<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>>;
|
|
376
|
+
excludedUserAgentSubstrings: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
377
|
+
}, z.core.$strict>>;
|
|
378
|
+
}, z.core.$strict>>;
|
|
379
|
+
target: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
380
|
+
kind: z.ZodLiteral<"live">;
|
|
381
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
382
|
+
kind: z.ZodLiteral<"version">;
|
|
383
|
+
versionId: z.ZodString;
|
|
384
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
385
|
+
kind: z.ZodLiteral<"branch">;
|
|
386
|
+
branch: z.ZodString;
|
|
387
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
388
|
+
kind: z.ZodLiteral<"all_versions">;
|
|
389
|
+
}, z.core.$strict>], "kind">>;
|
|
390
|
+
}, z.core.$strip>;
|
|
391
|
+
export declare const canonicalAccessRequestCreateSchema: z.ZodObject<{
|
|
392
|
+
email: z.ZodString;
|
|
393
|
+
scope: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
|
|
394
|
+
requestedRole: z.ZodDefault<z.ZodEnum<{
|
|
395
|
+
viewer: "viewer";
|
|
396
|
+
commenter: "commenter";
|
|
397
|
+
editor: "editor";
|
|
398
|
+
manager: "manager";
|
|
399
|
+
}>>;
|
|
400
|
+
message: z.ZodOptional<z.ZodString>;
|
|
957
401
|
}, z.core.$strip>;
|
|
958
|
-
export
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
pathPattern: z.ZodOptional<z.ZodString>;
|
|
967
|
-
channel: z.ZodOptional<z.ZodString>;
|
|
968
|
-
ipCidrs: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
969
|
-
agent: z.ZodOptional<z.ZodString>;
|
|
970
|
-
country: z.ZodOptional<z.ZodString>;
|
|
971
|
-
header: z.ZodOptional<z.ZodObject<{
|
|
972
|
-
name: z.ZodString;
|
|
973
|
-
value: z.ZodString;
|
|
974
|
-
}, z.core.$strip>>;
|
|
975
|
-
}, z.core.$strip>>;
|
|
976
|
-
effect: z.ZodEnum<{
|
|
977
|
-
allow: "allow";
|
|
978
|
-
deny: "deny";
|
|
979
|
-
challenge: "challenge";
|
|
980
|
-
}>;
|
|
981
|
-
auth: z.ZodOptional<z.ZodObject<{
|
|
982
|
-
requiredGrants: z.ZodArray<z.ZodString>;
|
|
983
|
-
issuers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
984
|
-
kid: z.ZodString;
|
|
985
|
-
alg: z.ZodLiteral<"EdDSA">;
|
|
986
|
-
publicKey: z.ZodString;
|
|
987
|
-
grantNamespaces: z.ZodArray<z.ZodString>;
|
|
988
|
-
}, z.core.$strip>>>;
|
|
989
|
-
acquire: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
990
|
-
type: z.ZodLiteral<"password">;
|
|
991
|
-
ref: z.ZodString;
|
|
992
|
-
transport: z.ZodEnum<{
|
|
993
|
-
basic: "basic";
|
|
994
|
-
form: "form";
|
|
995
|
-
}>;
|
|
996
|
-
username: z.ZodOptional<z.ZodString>;
|
|
997
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
998
|
-
type: z.ZodLiteral<"login">;
|
|
999
|
-
url: z.ZodString;
|
|
1000
|
-
label: z.ZodOptional<z.ZodString>;
|
|
1001
|
-
}, z.core.$strip>], "type">>>;
|
|
1002
|
-
}, z.core.$strip>>;
|
|
1003
|
-
managedBy: z.ZodOptional<z.ZodEnum<{
|
|
1004
|
-
sharing: "sharing";
|
|
1005
|
-
firewall: "firewall";
|
|
1006
|
-
file_share: "file_share";
|
|
1007
|
-
cast_reviewer: "cast_reviewer";
|
|
1008
|
-
team_default: "team_default";
|
|
1009
|
-
}>>;
|
|
1010
|
-
expiresAt: z.ZodOptional<z.ZodNumber>;
|
|
1011
|
-
reasonCode: z.ZodOptional<z.ZodString>;
|
|
1012
|
-
message: z.ZodOptional<z.ZodString>;
|
|
1013
|
-
}, z.core.$strip>>>;
|
|
1014
|
-
version: z.ZodDefault<z.ZodNumber>;
|
|
1015
|
-
accessExceedsPlan: z.ZodDefault<z.ZodBoolean>;
|
|
402
|
+
export declare const canonicalAccessRequestApproveSchema: z.ZodObject<{
|
|
403
|
+
scope: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>;
|
|
404
|
+
role: z.ZodOptional<z.ZodEnum<{
|
|
405
|
+
viewer: "viewer";
|
|
406
|
+
commenter: "commenter";
|
|
407
|
+
editor: "editor";
|
|
408
|
+
manager: "manager";
|
|
409
|
+
}>>;
|
|
1016
410
|
}, z.core.$strip>;
|
|
1017
|
-
export
|
|
1018
|
-
export declare const quickShareSchema: z.ZodObject<{
|
|
1019
|
-
kind: z.ZodLiteral<"quick_share">;
|
|
411
|
+
export declare const openHandoffSchema: z.ZodObject<{
|
|
1020
412
|
url: z.ZodString;
|
|
1021
413
|
expiresAt: z.ZodString;
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
}, z.core.$strip>;
|
|
1027
|
-
export type QuickShare = z.infer<typeof quickShareSchema>;
|
|
1028
|
-
export declare const quickShareDeleteSchema: z.ZodObject<{
|
|
1029
|
-
outcome: z.ZodEnum<{
|
|
1030
|
-
deleted: "deleted";
|
|
1031
|
-
unchanged: "unchanged";
|
|
414
|
+
kind: z.ZodEnum<{
|
|
415
|
+
management: "management";
|
|
416
|
+
person: "person";
|
|
417
|
+
claim_preview: "claim_preview";
|
|
1032
418
|
}>;
|
|
1033
419
|
}, z.core.$strip>;
|
|
1034
|
-
export
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
active: z.ZodArray<z.ZodString>;
|
|
420
|
+
export declare const openHandoffCreateSchema: z.ZodObject<{
|
|
421
|
+
landingPath: z.ZodDefault<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>;
|
|
422
|
+
targetHost: z.ZodOptional<z.ZodString>;
|
|
1038
423
|
}, z.core.$strip>;
|
|
1039
|
-
export type
|
|
1040
|
-
export declare const
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
cloud: "cloud";
|
|
1046
|
-
file: "file";
|
|
1047
|
-
platform: "platform";
|
|
1048
|
-
}>;
|
|
1049
|
-
export declare const effectiveRuleSchema: z.ZodObject<{
|
|
1050
|
-
id: z.ZodOptional<z.ZodString>;
|
|
1051
|
-
match: z.ZodDefault<z.ZodObject<{
|
|
1052
|
-
host: z.ZodOptional<z.ZodString>;
|
|
1053
|
-
hostPattern: z.ZodOptional<z.ZodString>;
|
|
1054
|
-
hostTemplate: z.ZodOptional<z.ZodString>;
|
|
1055
|
-
pathPattern: z.ZodOptional<z.ZodString>;
|
|
1056
|
-
channel: z.ZodOptional<z.ZodString>;
|
|
1057
|
-
ipCidrs: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1058
|
-
agent: z.ZodOptional<z.ZodString>;
|
|
1059
|
-
country: z.ZodOptional<z.ZodString>;
|
|
1060
|
-
header: z.ZodOptional<z.ZodObject<{
|
|
1061
|
-
name: z.ZodString;
|
|
1062
|
-
value: z.ZodString;
|
|
1063
|
-
}, z.core.$strip>>;
|
|
1064
|
-
}, z.core.$strip>>;
|
|
1065
|
-
effect: z.ZodEnum<{
|
|
1066
|
-
allow: "allow";
|
|
1067
|
-
deny: "deny";
|
|
1068
|
-
challenge: "challenge";
|
|
1069
|
-
}>;
|
|
1070
|
-
auth: z.ZodOptional<z.ZodObject<{
|
|
1071
|
-
requiredGrants: z.ZodArray<z.ZodString>;
|
|
1072
|
-
issuers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1073
|
-
kid: z.ZodString;
|
|
1074
|
-
alg: z.ZodLiteral<"EdDSA">;
|
|
1075
|
-
publicKey: z.ZodString;
|
|
1076
|
-
grantNamespaces: z.ZodArray<z.ZodString>;
|
|
1077
|
-
}, z.core.$strip>>>;
|
|
1078
|
-
acquire: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1079
|
-
type: z.ZodLiteral<"password">;
|
|
1080
|
-
ref: z.ZodString;
|
|
1081
|
-
transport: z.ZodEnum<{
|
|
1082
|
-
basic: "basic";
|
|
1083
|
-
form: "form";
|
|
1084
|
-
}>;
|
|
1085
|
-
username: z.ZodOptional<z.ZodString>;
|
|
1086
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
1087
|
-
type: z.ZodLiteral<"login">;
|
|
1088
|
-
url: z.ZodString;
|
|
1089
|
-
label: z.ZodOptional<z.ZodString>;
|
|
1090
|
-
}, z.core.$strip>], "type">>>;
|
|
1091
|
-
}, z.core.$strip>>;
|
|
1092
|
-
managedBy: z.ZodOptional<z.ZodEnum<{
|
|
1093
|
-
sharing: "sharing";
|
|
1094
|
-
firewall: "firewall";
|
|
1095
|
-
file_share: "file_share";
|
|
1096
|
-
cast_reviewer: "cast_reviewer";
|
|
1097
|
-
team_default: "team_default";
|
|
1098
|
-
}>>;
|
|
1099
|
-
expiresAt: z.ZodOptional<z.ZodNumber>;
|
|
1100
|
-
reasonCode: z.ZodOptional<z.ZodString>;
|
|
1101
|
-
message: z.ZodOptional<z.ZodString>;
|
|
1102
|
-
source: z.ZodEnum<{
|
|
1103
|
-
cloud: "cloud";
|
|
1104
|
-
file: "file";
|
|
1105
|
-
platform: "platform";
|
|
424
|
+
export type OpenHandoff = z.infer<typeof openHandoffSchema>;
|
|
425
|
+
export declare const teamSpaceAccessDefaultSchema: z.ZodObject<{
|
|
426
|
+
newSpaceGrantPreset: z.ZodEnum<{
|
|
427
|
+
team: "team";
|
|
428
|
+
public: "public";
|
|
429
|
+
private: "private";
|
|
1106
430
|
}>;
|
|
1107
|
-
order: z.ZodNumber;
|
|
1108
|
-
}, z.core.$strip>;
|
|
1109
|
-
export type EffectiveRule = z.infer<typeof effectiveRuleSchema>;
|
|
1110
|
-
export declare const effectivePolicySchema: z.ZodObject<{
|
|
1111
|
-
rules: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1112
|
-
id: z.ZodOptional<z.ZodString>;
|
|
1113
|
-
match: z.ZodDefault<z.ZodObject<{
|
|
1114
|
-
host: z.ZodOptional<z.ZodString>;
|
|
1115
|
-
hostPattern: z.ZodOptional<z.ZodString>;
|
|
1116
|
-
hostTemplate: z.ZodOptional<z.ZodString>;
|
|
1117
|
-
pathPattern: z.ZodOptional<z.ZodString>;
|
|
1118
|
-
channel: z.ZodOptional<z.ZodString>;
|
|
1119
|
-
ipCidrs: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1120
|
-
agent: z.ZodOptional<z.ZodString>;
|
|
1121
|
-
country: z.ZodOptional<z.ZodString>;
|
|
1122
|
-
header: z.ZodOptional<z.ZodObject<{
|
|
1123
|
-
name: z.ZodString;
|
|
1124
|
-
value: z.ZodString;
|
|
1125
|
-
}, z.core.$strip>>;
|
|
1126
|
-
}, z.core.$strip>>;
|
|
1127
|
-
effect: z.ZodEnum<{
|
|
1128
|
-
allow: "allow";
|
|
1129
|
-
deny: "deny";
|
|
1130
|
-
challenge: "challenge";
|
|
1131
|
-
}>;
|
|
1132
|
-
auth: z.ZodOptional<z.ZodObject<{
|
|
1133
|
-
requiredGrants: z.ZodArray<z.ZodString>;
|
|
1134
|
-
issuers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1135
|
-
kid: z.ZodString;
|
|
1136
|
-
alg: z.ZodLiteral<"EdDSA">;
|
|
1137
|
-
publicKey: z.ZodString;
|
|
1138
|
-
grantNamespaces: z.ZodArray<z.ZodString>;
|
|
1139
|
-
}, z.core.$strip>>>;
|
|
1140
|
-
acquire: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1141
|
-
type: z.ZodLiteral<"password">;
|
|
1142
|
-
ref: z.ZodString;
|
|
1143
|
-
transport: z.ZodEnum<{
|
|
1144
|
-
basic: "basic";
|
|
1145
|
-
form: "form";
|
|
1146
|
-
}>;
|
|
1147
|
-
username: z.ZodOptional<z.ZodString>;
|
|
1148
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
1149
|
-
type: z.ZodLiteral<"login">;
|
|
1150
|
-
url: z.ZodString;
|
|
1151
|
-
label: z.ZodOptional<z.ZodString>;
|
|
1152
|
-
}, z.core.$strip>], "type">>>;
|
|
1153
|
-
}, z.core.$strip>>;
|
|
1154
|
-
managedBy: z.ZodOptional<z.ZodEnum<{
|
|
1155
|
-
sharing: "sharing";
|
|
1156
|
-
firewall: "firewall";
|
|
1157
|
-
file_share: "file_share";
|
|
1158
|
-
cast_reviewer: "cast_reviewer";
|
|
1159
|
-
team_default: "team_default";
|
|
1160
|
-
}>>;
|
|
1161
|
-
expiresAt: z.ZodOptional<z.ZodNumber>;
|
|
1162
|
-
reasonCode: z.ZodOptional<z.ZodString>;
|
|
1163
|
-
message: z.ZodOptional<z.ZodString>;
|
|
1164
|
-
source: z.ZodEnum<{
|
|
1165
|
-
cloud: "cloud";
|
|
1166
|
-
file: "file";
|
|
1167
|
-
platform: "platform";
|
|
1168
|
-
}>;
|
|
1169
|
-
order: z.ZodNumber;
|
|
1170
|
-
}, z.core.$strip>>>;
|
|
1171
|
-
issuers: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1172
|
-
kid: z.ZodString;
|
|
1173
|
-
alg: z.ZodLiteral<"EdDSA">;
|
|
1174
|
-
publicKey: z.ZodString;
|
|
1175
|
-
grantNamespaces: z.ZodArray<z.ZodString>;
|
|
1176
|
-
}, z.core.$strip>>>;
|
|
1177
|
-
cloudVersion: z.ZodDefault<z.ZodNumber>;
|
|
1178
|
-
fileVersion: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
1179
|
-
secrets: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1180
|
-
sessionVersion: z.ZodDefault<z.ZodNumber>;
|
|
1181
431
|
}, z.core.$strip>;
|
|
1182
|
-
export
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
challenge: "challenge";
|
|
432
|
+
export declare const teamSpaceAccessDefaultWriteSchema: z.ZodObject<{
|
|
433
|
+
newSpaceGrantPreset: z.ZodEnum<{
|
|
434
|
+
team: "team";
|
|
435
|
+
public: "public";
|
|
436
|
+
private: "private";
|
|
1188
437
|
}>;
|
|
1189
|
-
matchedRule: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
1190
|
-
id: z.ZodOptional<z.ZodString>;
|
|
1191
|
-
match: z.ZodDefault<z.ZodObject<{
|
|
1192
|
-
host: z.ZodOptional<z.ZodString>;
|
|
1193
|
-
hostPattern: z.ZodOptional<z.ZodString>;
|
|
1194
|
-
hostTemplate: z.ZodOptional<z.ZodString>;
|
|
1195
|
-
pathPattern: z.ZodOptional<z.ZodString>;
|
|
1196
|
-
channel: z.ZodOptional<z.ZodString>;
|
|
1197
|
-
ipCidrs: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1198
|
-
agent: z.ZodOptional<z.ZodString>;
|
|
1199
|
-
country: z.ZodOptional<z.ZodString>;
|
|
1200
|
-
header: z.ZodOptional<z.ZodObject<{
|
|
1201
|
-
name: z.ZodString;
|
|
1202
|
-
value: z.ZodString;
|
|
1203
|
-
}, z.core.$strip>>;
|
|
1204
|
-
}, z.core.$strip>>;
|
|
1205
|
-
effect: z.ZodEnum<{
|
|
1206
|
-
allow: "allow";
|
|
1207
|
-
deny: "deny";
|
|
1208
|
-
challenge: "challenge";
|
|
1209
|
-
}>;
|
|
1210
|
-
auth: z.ZodOptional<z.ZodObject<{
|
|
1211
|
-
requiredGrants: z.ZodArray<z.ZodString>;
|
|
1212
|
-
issuers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1213
|
-
kid: z.ZodString;
|
|
1214
|
-
alg: z.ZodLiteral<"EdDSA">;
|
|
1215
|
-
publicKey: z.ZodString;
|
|
1216
|
-
grantNamespaces: z.ZodArray<z.ZodString>;
|
|
1217
|
-
}, z.core.$strip>>>;
|
|
1218
|
-
acquire: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1219
|
-
type: z.ZodLiteral<"password">;
|
|
1220
|
-
ref: z.ZodString;
|
|
1221
|
-
transport: z.ZodEnum<{
|
|
1222
|
-
basic: "basic";
|
|
1223
|
-
form: "form";
|
|
1224
|
-
}>;
|
|
1225
|
-
username: z.ZodOptional<z.ZodString>;
|
|
1226
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
1227
|
-
type: z.ZodLiteral<"login">;
|
|
1228
|
-
url: z.ZodString;
|
|
1229
|
-
label: z.ZodOptional<z.ZodString>;
|
|
1230
|
-
}, z.core.$strip>], "type">>>;
|
|
1231
|
-
}, z.core.$strip>>;
|
|
1232
|
-
managedBy: z.ZodOptional<z.ZodEnum<{
|
|
1233
|
-
sharing: "sharing";
|
|
1234
|
-
firewall: "firewall";
|
|
1235
|
-
file_share: "file_share";
|
|
1236
|
-
cast_reviewer: "cast_reviewer";
|
|
1237
|
-
team_default: "team_default";
|
|
1238
|
-
}>>;
|
|
1239
|
-
expiresAt: z.ZodOptional<z.ZodNumber>;
|
|
1240
|
-
reasonCode: z.ZodOptional<z.ZodString>;
|
|
1241
|
-
message: z.ZodOptional<z.ZodString>;
|
|
1242
|
-
source: z.ZodEnum<{
|
|
1243
|
-
cloud: "cloud";
|
|
1244
|
-
file: "file";
|
|
1245
|
-
platform: "platform";
|
|
1246
|
-
}>;
|
|
1247
|
-
order: z.ZodNumber;
|
|
1248
|
-
}, z.core.$strip>>>;
|
|
1249
|
-
why: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1250
|
-
whoWouldPass: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1251
438
|
}, z.core.$strip>;
|
|
1252
|
-
export
|
|
439
|
+
export declare const ACCESS_TOKEN_KID = "spacefast-runtime-v1";
|
|
440
|
+
export declare const ACCESS_TOKEN_ALG = "EdDSA";
|
|
441
|
+
export declare const RUNTIME_JWKS_WELL_KNOWN_FILENAME = "spacefast-runtime-jwks.json";
|
|
442
|
+
export declare const accessTokenPayloadSchema: z.ZodObject<{
|
|
443
|
+
sub: z.ZodString;
|
|
444
|
+
authorities: z.ZodArray<z.ZodString>;
|
|
445
|
+
exp: z.ZodNumber;
|
|
446
|
+
nbf: z.ZodNumber;
|
|
447
|
+
iat: z.ZodNumber;
|
|
448
|
+
iss: z.ZodString;
|
|
449
|
+
aud: z.ZodString;
|
|
450
|
+
spaceId: z.ZodString;
|
|
451
|
+
generation: z.ZodNumber;
|
|
452
|
+
emailVerified: z.ZodDefault<z.ZodBoolean>;
|
|
453
|
+
jti: z.ZodString;
|
|
454
|
+
}, z.core.$strip>;
|
|
455
|
+
export type AccessTokenPayload = z.infer<typeof accessTokenPayloadSchema>;
|