@spacefast/common 0.0.12 → 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/contracts/access.d.ts +386 -1201
- package/dist/contracts/access.js +240 -1057
- package/dist/contracts/activity.d.ts +1 -1
- package/dist/contracts/activity.js +6 -14
- package/dist/contracts/api-keys.d.ts +16 -0
- package/dist/contracts/api-keys.js +2 -0
- package/dist/contracts/archives.d.ts +1 -2
- package/dist/contracts/archives.js +4 -6
- package/dist/contracts/comments.d.ts +58 -85
- package/dist/contracts/comments.js +86 -67
- 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/device-auth.d.ts +7 -3
- package/dist/contracts/enums.d.ts +2 -4
- package/dist/contracts/enums.js +3 -8
- package/dist/contracts/error-code-meta.d.ts +17 -20
- package/dist/contracts/error-code-meta.js +8 -5
- package/dist/contracts/error-codes.d.ts +1 -1
- package/dist/contracts/error-codes.js +4 -5
- package/dist/contracts/events.d.ts +13 -13
- package/dist/contracts/execution.d.ts +212 -0
- package/dist/contracts/execution.js +288 -0
- package/dist/contracts/feature-lifecycle.d.ts +21 -167
- package/dist/contracts/feature-lifecycle.js +27 -173
- package/dist/contracts/features.d.ts +13 -115
- package/dist/contracts/features.js +1 -31
- 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 +5 -3
- package/dist/contracts/ids.js +5 -3
- package/dist/contracts/mcp.d.ts +6 -6
- package/dist/contracts/oauth-resources.d.ts +5 -5
- package/dist/contracts/oauth-resources.js +1 -0
- package/dist/contracts/operations.d.ts +2 -2
- package/dist/contracts/pages.d.ts +6 -14
- package/dist/contracts/pages.js +6 -23
- package/dist/contracts/plan-policy.d.ts +1 -8
- package/dist/contracts/plan-policy.js +1 -4
- package/dist/contracts/platform.d.ts +78 -30
- 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 +10 -66
- package/dist/contracts/resources.js +4 -10
- package/dist/contracts/runtime-api.d.ts +558 -265
- package/dist/contracts/runtime-api.js +178 -91
- 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/sites.d.ts +5 -0
- package/dist/contracts/sites.js +12 -1
- package/dist/contracts/space-config.d.ts +46 -116
- package/dist/contracts/space-config.js +320 -24
- package/dist/contracts/spaces.d.ts +253 -158
- package/dist/contracts/spaces.js +68 -54
- package/dist/contracts/superadmin-emails.d.ts +2 -2
- package/dist/contracts/superadmin-spaces.d.ts +15 -130
- package/dist/contracts/superadmin-spaces.js +7 -0
- package/dist/contracts/tags.d.ts +23 -23
- package/dist/contracts/teams.d.ts +9 -9
- package/dist/contracts/transfers.d.ts +0 -1
- package/dist/contracts/zero.d.ts +195 -273
- package/dist/contracts/zero.js +78 -206
- package/dist/dashboard-paths/index.d.ts +2 -2
- package/dist/dashboard-paths/index.js +1 -0
- package/dist/docs/agent-prose.js +10 -8
- package/dist/docs/agent-setup.d.ts +2 -2
- package/dist/docs/agent-setup.js +11 -9
- package/dist/docs/agent-solutions.js +1 -1
- package/dist/docs/catalog.d.ts +28 -28
- package/dist/docs/catalog.js +29 -29
- package/dist/docs/error-docs.js +23 -27
- 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/egress-policy.fixtures.json +1 -1
- package/dist/utils/grants.d.ts +53 -0
- package/dist/utils/grants.js +160 -0
- package/dist/utils/local-space-state.js +1 -0
- package/dist/utils/pages.d.ts +11 -5
- package/dist/utils/pages.js +19 -32
- package/dist/utils/publish-policy.d.ts +34 -4
- package/dist/utils/publish-policy.js +132 -61
- package/dist/utils/query-keys.d.ts +1 -6
- package/dist/utils/query-keys.js +1 -6
- 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.js +54 -10
- package/dist/utils/upload-session.d.ts +3 -0
- package/dist/utils/upload-session.js +31 -0
- package/package.json +2 -1
- package/dist/utils/access-grant.d.ts +0 -14
- package/dist/utils/access-grant.js +0 -88
- package/dist/utils/access-match.d.ts +0 -46
- package/dist/utils/access-match.fixtures.json +0 -513
- package/dist/utils/access-match.js +0 -312
- package/dist/utils/access-verdict.fixtures.json +0 -421
- package/dist/utils/sf-config-v1.d.ts +0 -2
- package/dist/utils/sf-config-v1.fixtures.json +0 -9
- package/dist/utils/sf-config-v1.js +0 -551
|
@@ -1,1270 +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
|
-
|
|
15
|
+
manager: "manager";
|
|
13
16
|
}>;
|
|
14
|
-
export type
|
|
15
|
-
export declare
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
export
|
|
22
|
-
export declare const
|
|
23
|
-
export
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
export declare const
|
|
28
|
-
export declare const EXTERNAL_CONNECTION_DEFAULT_TTL_SECONDS: number;
|
|
29
|
-
export declare const EXTERNAL_TOKEN_MAX_TTL_SECONDS: number;
|
|
30
|
-
export declare function ssoGrant(connectionId: string): string;
|
|
31
|
-
export declare function externalGrantNamespace(connectionId: string): string;
|
|
32
|
-
export declare function externalGrant(connectionId: string, tag: string): string;
|
|
33
|
-
export declare function connectionAcquireRef(connectionId: string): string;
|
|
34
|
-
export declare function parseConnectionAcquireRef(url: string): string | null;
|
|
35
|
-
export declare function referencedConnectionIds(input: {
|
|
36
|
-
requiredGrants?: string[] | undefined;
|
|
37
|
-
acquire?: Array<{
|
|
38
|
-
type: string;
|
|
39
|
-
url?: string;
|
|
40
|
-
}> | undefined;
|
|
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
|
-
countryNotIn: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
214
|
-
header: z.ZodOptional<z.ZodObject<{
|
|
215
|
-
name: z.ZodString;
|
|
216
|
-
value: z.ZodString;
|
|
217
|
-
}, z.core.$strip>>;
|
|
218
|
-
}, z.core.$strip>;
|
|
219
|
-
export declare const MANAGED_BY_VALUES: readonly ["sharing", "firewall", "file_share", "cast_reviewer", "team_default"];
|
|
220
|
-
export declare const managedBySchema: z.ZodEnum<{
|
|
221
|
-
sharing: "sharing";
|
|
222
|
-
firewall: "firewall";
|
|
223
|
-
file_share: "file_share";
|
|
224
|
-
cast_reviewer: "cast_reviewer";
|
|
225
|
-
team_default: "team_default";
|
|
226
|
-
}>;
|
|
227
|
-
export type ManagedBy = z.infer<typeof managedBySchema>;
|
|
228
|
-
export declare const runtimeRuleSchema: z.ZodObject<{
|
|
229
|
-
id: z.ZodOptional<z.ZodString>;
|
|
230
|
-
match: z.ZodDefault<z.ZodObject<{
|
|
231
|
-
host: z.ZodOptional<z.ZodString>;
|
|
232
|
-
hostPattern: z.ZodOptional<z.ZodString>;
|
|
233
|
-
hostTemplate: z.ZodOptional<z.ZodString>;
|
|
234
|
-
pathPattern: z.ZodOptional<z.ZodString>;
|
|
235
|
-
channel: z.ZodOptional<z.ZodString>;
|
|
236
|
-
ipCidrs: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
237
|
-
agent: z.ZodOptional<z.ZodString>;
|
|
238
|
-
country: z.ZodOptional<z.ZodString>;
|
|
239
|
-
countryNotIn: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
240
|
-
header: z.ZodOptional<z.ZodObject<{
|
|
241
|
-
name: z.ZodString;
|
|
242
|
-
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>;
|
|
243
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;
|
|
244
121
|
}, z.core.$strip>>;
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
}, z.core.$strip>>>;
|
|
258
|
-
acquire: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
259
|
-
type: z.ZodLiteral<"password">;
|
|
260
|
-
ref: z.ZodString;
|
|
261
|
-
transport: z.ZodEnum<{
|
|
262
|
-
basic: "basic";
|
|
263
|
-
form: "form";
|
|
264
|
-
}>;
|
|
265
|
-
username: z.ZodOptional<z.ZodString>;
|
|
266
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
267
|
-
type: z.ZodLiteral<"login">;
|
|
268
|
-
url: z.ZodString;
|
|
269
|
-
label: z.ZodOptional<z.ZodString>;
|
|
270
|
-
}, 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>>;
|
|
271
134
|
}, z.core.$strip>>;
|
|
272
|
-
managedBy: z.ZodOptional<z.ZodEnum<{
|
|
273
|
-
sharing: "sharing";
|
|
274
|
-
firewall: "firewall";
|
|
275
|
-
file_share: "file_share";
|
|
276
|
-
cast_reviewer: "cast_reviewer";
|
|
277
|
-
team_default: "team_default";
|
|
278
|
-
}>>;
|
|
279
|
-
expiresAt: z.ZodOptional<z.ZodNumber>;
|
|
280
|
-
reasonCode: z.ZodOptional<z.ZodString>;
|
|
281
|
-
message: z.ZodOptional<z.ZodString>;
|
|
282
135
|
}, z.core.$strip>;
|
|
283
|
-
export type
|
|
284
|
-
export declare const
|
|
285
|
-
export declare const ACCESS_TOKEN_ALG = "EdDSA";
|
|
286
|
-
export declare const RUNTIME_JWKS_WELL_KNOWN_FILENAME = "spacefast-runtime-jwks.json";
|
|
287
|
-
export declare const LOCAL_PW_TOKEN_KID = "spacefast-local-pw-v1";
|
|
288
|
-
export declare const accessTokenPayloadSchema: z.ZodObject<{
|
|
289
|
-
sub: z.ZodString;
|
|
290
|
-
grants: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
291
|
-
exp: z.ZodNumber;
|
|
292
|
-
nbf: z.ZodOptional<z.ZodNumber>;
|
|
293
|
-
iat: z.ZodOptional<z.ZodNumber>;
|
|
294
|
-
iss: z.ZodOptional<z.ZodString>;
|
|
295
|
-
aud: z.ZodOptional<z.ZodString>;
|
|
296
|
-
sv: z.ZodOptional<z.ZodNumber>;
|
|
297
|
-
jti: z.ZodOptional<z.ZodString>;
|
|
298
|
-
room: z.ZodOptional<z.ZodString>;
|
|
299
|
-
anonymous_id: z.ZodOptional<z.ZodString>;
|
|
300
|
-
name: z.ZodOptional<z.ZodString>;
|
|
301
|
-
}, z.core.$strip>;
|
|
302
|
-
export type AccessTokenPayload = z.infer<typeof accessTokenPayloadSchema>;
|
|
303
|
-
export declare const authorizeRequestSchema: z.ZodObject<{
|
|
304
|
-
aud: z.ZodOptional<z.ZodString>;
|
|
305
|
-
}, z.core.$strip>;
|
|
306
|
-
export declare const authorizeResponseSchema: z.ZodObject<{
|
|
307
|
-
token: z.ZodString;
|
|
308
|
-
payload: z.ZodObject<{
|
|
309
|
-
sub: z.ZodString;
|
|
310
|
-
grants: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
311
|
-
exp: z.ZodNumber;
|
|
312
|
-
nbf: z.ZodOptional<z.ZodNumber>;
|
|
313
|
-
iat: z.ZodOptional<z.ZodNumber>;
|
|
314
|
-
iss: z.ZodOptional<z.ZodString>;
|
|
315
|
-
aud: z.ZodOptional<z.ZodString>;
|
|
316
|
-
sv: z.ZodOptional<z.ZodNumber>;
|
|
317
|
-
jti: z.ZodOptional<z.ZodString>;
|
|
318
|
-
room: z.ZodOptional<z.ZodString>;
|
|
319
|
-
anonymous_id: z.ZodOptional<z.ZodString>;
|
|
320
|
-
name: z.ZodOptional<z.ZodString>;
|
|
321
|
-
}, z.core.$strip>;
|
|
322
|
-
expiresAt: z.ZodNumber;
|
|
323
|
-
}, z.core.$strip>;
|
|
324
|
-
export declare const accessEventSchema: z.ZodObject<{
|
|
325
|
-
sub: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
326
|
-
grantsHash: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
327
|
-
ruleId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
328
|
-
effect: z.ZodEnum<{
|
|
329
|
-
allow: "allow";
|
|
330
|
-
deny: "deny";
|
|
331
|
-
challenge: "challenge";
|
|
332
|
-
}>;
|
|
333
|
-
reasonCode: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
334
|
-
host: z.ZodString;
|
|
335
|
-
path: z.ZodString;
|
|
336
|
-
ts: z.ZodNumber;
|
|
337
|
-
}, z.core.$strip>;
|
|
338
|
-
export type AccessEvent = z.infer<typeof accessEventSchema>;
|
|
339
|
-
export declare function spaceLevelGrant(spaceId: string, level: SpaceLevel): string;
|
|
340
|
-
export declare function shareLinkGrant(linkId: string): string;
|
|
341
|
-
export declare function inviteGrant(inviteId: string): string;
|
|
342
|
-
export declare function serviceTokenGrant(tokenId: string): string;
|
|
343
|
-
export declare const shareLinkSchema: z.ZodObject<{
|
|
136
|
+
export type SpacePeopleList = z.infer<typeof spacePeopleListSchema>;
|
|
137
|
+
export declare const accessShareLinkSchema: z.ZodObject<{
|
|
344
138
|
id: z.ZodString;
|
|
345
139
|
spaceId: z.ZodString;
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
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>;
|
|
350
179
|
createdAt: z.ZodString;
|
|
351
|
-
lastUsedAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
352
|
-
useCount: z.ZodDefault<z.ZodNumber>;
|
|
353
180
|
active: z.ZodBoolean;
|
|
354
181
|
}, z.core.$strip>;
|
|
355
|
-
export type
|
|
356
|
-
export declare const
|
|
357
|
-
path: z.ZodDefault<z.ZodString>;
|
|
358
|
-
expiresAt: z.ZodOptional<z.ZodNumber>;
|
|
359
|
-
label: z.ZodOptional<z.ZodString>;
|
|
360
|
-
}, z.core.$strip>;
|
|
361
|
-
export type ShareLinkCreate = z.infer<typeof shareLinkCreateSchema>;
|
|
362
|
-
export declare const shareLinkWithUrlSchema: z.ZodObject<{
|
|
182
|
+
export type AccessShareLink = z.infer<typeof accessShareLinkSchema>;
|
|
183
|
+
export declare const accessShareLinkWithUrlSchema: z.ZodObject<{
|
|
363
184
|
id: z.ZodString;
|
|
364
185
|
spaceId: z.ZodString;
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
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>;
|
|
369
225
|
createdAt: z.ZodString;
|
|
370
|
-
lastUsedAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
371
|
-
useCount: z.ZodDefault<z.ZodNumber>;
|
|
372
226
|
active: z.ZodBoolean;
|
|
373
227
|
url: z.ZodString;
|
|
374
228
|
}, z.core.$strip>;
|
|
375
|
-
export type
|
|
376
|
-
export declare const
|
|
377
|
-
|
|
378
|
-
public: "public";
|
|
379
|
-
restricted: "restricted";
|
|
380
|
-
}>;
|
|
381
|
-
export type SpaceVisibility = z.infer<typeof spaceVisibilitySchema>;
|
|
382
|
-
export declare const sharingConnectionAudienceSchema: z.ZodObject<{
|
|
383
|
-
connectionId: z.ZodString;
|
|
384
|
-
tag: z.ZodOptional<z.ZodString>;
|
|
385
|
-
emailDomain: z.ZodOptional<z.ZodString>;
|
|
386
|
-
}, z.core.$strip>;
|
|
387
|
-
export type SharingConnectionAudience = z.infer<typeof sharingConnectionAudienceSchema>;
|
|
388
|
-
export declare const visibilityWriteSchema: z.ZodObject<{
|
|
389
|
-
visibility: z.ZodEnum<{
|
|
390
|
-
public: "public";
|
|
391
|
-
restricted: "restricted";
|
|
392
|
-
}>;
|
|
393
|
-
}, z.core.$strip>;
|
|
394
|
-
export declare const sharingPasswordWriteSchema: z.ZodObject<{
|
|
395
|
-
password: z.ZodString;
|
|
396
|
-
}, z.core.$strip>;
|
|
397
|
-
export declare const sharingAudiencesWriteSchema: z.ZodObject<{
|
|
398
|
-
audiences: z.ZodArray<z.ZodObject<{
|
|
399
|
-
connectionId: z.ZodString;
|
|
400
|
-
tag: z.ZodOptional<z.ZodString>;
|
|
401
|
-
emailDomain: z.ZodOptional<z.ZodString>;
|
|
402
|
-
}, z.core.$strip>>;
|
|
403
|
-
}, z.core.$strip>;
|
|
404
|
-
export declare const spaceProtectionWriteSchema: z.ZodObject<{
|
|
405
|
-
visibility: z.ZodEnum<{
|
|
406
|
-
public: "public";
|
|
407
|
-
restricted: "restricted";
|
|
408
|
-
}>;
|
|
409
|
-
password: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
410
|
-
}, z.core.$strip>;
|
|
411
|
-
export type SpaceProtectionWrite = z.infer<typeof spaceProtectionWriteSchema>;
|
|
412
|
-
export declare const sharingAudienceSchema: z.ZodObject<{
|
|
413
|
-
connectionId: z.ZodString;
|
|
414
|
-
type: z.ZodEnum<{
|
|
415
|
-
external: "external";
|
|
416
|
-
oidc: "oidc";
|
|
417
|
-
}>;
|
|
418
|
-
name: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
419
|
-
tag: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
420
|
-
emailDomain: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
421
|
-
grant: z.ZodString;
|
|
422
|
-
}, z.core.$strip>;
|
|
423
|
-
export type SharingAudience = z.infer<typeof sharingAudienceSchema>;
|
|
424
|
-
export declare const sharingPersonSchema: z.ZodObject<{
|
|
425
|
-
kind: z.ZodEnum<{
|
|
426
|
-
team_member: "team_member";
|
|
427
|
-
invitee: "invitee";
|
|
428
|
-
}>;
|
|
429
|
-
userId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
430
|
-
email: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
431
|
-
name: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
432
|
-
teamRole: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
433
|
-
level: z.ZodDefault<z.ZodNullable<z.ZodEnum<{
|
|
434
|
-
viewer: "viewer";
|
|
435
|
-
commenter: "commenter";
|
|
436
|
-
editor: "editor";
|
|
437
|
-
admin: "admin";
|
|
438
|
-
}>>>;
|
|
439
|
-
inviteId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
440
|
-
status: z.ZodDefault<z.ZodNullable<z.ZodEnum<{
|
|
441
|
-
expired: "expired";
|
|
442
|
-
pending: "pending";
|
|
443
|
-
accepted: "accepted";
|
|
444
|
-
}>>>;
|
|
445
|
-
lastViewedAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
446
|
-
}, z.core.$strip>;
|
|
447
|
-
export type SharingPerson = z.infer<typeof sharingPersonSchema>;
|
|
448
|
-
export declare const INVITE_ACCEPT_LINK_TTL_SECONDS: number;
|
|
449
|
-
export declare const INVITE_TOKEN_TTL_SECONDS: number;
|
|
450
|
-
export declare const ACCESS_MESSAGE_MAX_LENGTH = 280;
|
|
451
|
-
export declare const INVITE_STATUSES: readonly ["pending", "accepted", "expired", "revoked"];
|
|
452
|
-
export declare const inviteStatusSchema: z.ZodEnum<{
|
|
229
|
+
export type AccessShareLinkWithUrl = z.infer<typeof accessShareLinkWithUrlSchema>;
|
|
230
|
+
export declare const canonicalAccessRequestStatusSchema: z.ZodEnum<{
|
|
231
|
+
canceled: "canceled";
|
|
453
232
|
expired: "expired";
|
|
454
233
|
pending: "pending";
|
|
455
|
-
|
|
456
|
-
revoked: "revoked";
|
|
457
|
-
}>;
|
|
458
|
-
export type InviteStatus = z.infer<typeof inviteStatusSchema>;
|
|
459
|
-
export declare const spaceInviteSchema: z.ZodObject<{
|
|
460
|
-
id: z.ZodString;
|
|
461
|
-
spaceId: z.ZodString;
|
|
462
|
-
email: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
463
|
-
invitedBy: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
464
|
-
message: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
465
|
-
status: z.ZodEnum<{
|
|
466
|
-
expired: "expired";
|
|
467
|
-
pending: "pending";
|
|
468
|
-
accepted: "accepted";
|
|
469
|
-
revoked: "revoked";
|
|
470
|
-
}>;
|
|
471
|
-
expiresAt: z.ZodNumber;
|
|
472
|
-
acceptedAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
473
|
-
createdAt: z.ZodString;
|
|
474
|
-
lastViewedAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
475
|
-
}, z.core.$strip>;
|
|
476
|
-
export type SpaceInvite = z.infer<typeof spaceInviteSchema>;
|
|
477
|
-
export declare const spaceInviteCreateSchema: z.ZodObject<{
|
|
478
|
-
email: z.ZodString;
|
|
479
|
-
message: z.ZodOptional<z.ZodString>;
|
|
480
|
-
}, z.core.$strip>;
|
|
481
|
-
export declare const ACCESS_REQUEST_STATUSES: readonly ["pending", "approved", "denied"];
|
|
482
|
-
export declare const accessRequestStatusSchema: z.ZodEnum<{
|
|
483
|
-
pending: "pending";
|
|
234
|
+
verification_pending: "verification_pending";
|
|
484
235
|
approved: "approved";
|
|
485
236
|
denied: "denied";
|
|
486
237
|
}>;
|
|
487
|
-
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<{
|
|
488
246
|
id: z.ZodString;
|
|
489
247
|
spaceId: z.ZodString;
|
|
248
|
+
displayName: z.ZodNullable<z.ZodString>;
|
|
490
249
|
email: z.ZodString;
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
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>;
|
|
495
258
|
status: z.ZodEnum<{
|
|
259
|
+
canceled: "canceled";
|
|
260
|
+
expired: "expired";
|
|
496
261
|
pending: "pending";
|
|
262
|
+
verification_pending: "verification_pending";
|
|
497
263
|
approved: "approved";
|
|
498
264
|
denied: "denied";
|
|
499
265
|
}>;
|
|
500
|
-
|
|
501
|
-
|
|
266
|
+
emailVerifiedAt: z.ZodNullable<z.ZodString>;
|
|
267
|
+
resolvedBy: z.ZodNullable<z.ZodString>;
|
|
268
|
+
resolvedAt: z.ZodNullable<z.ZodString>;
|
|
502
269
|
createdAt: z.ZodString;
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
export
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
}, z.core.$strip>;
|
|
512
|
-
export declare const accessRequestApproveSchema: z.ZodObject<{
|
|
513
|
-
as: z.ZodDefault<z.ZodEnum<{
|
|
514
|
-
team: "team";
|
|
515
|
-
invite: "invite";
|
|
516
|
-
}>>;
|
|
517
|
-
}, z.core.$strip>;
|
|
518
|
-
export declare const FILE_SHARE_AUDIENCES: readonly ["public", "people"];
|
|
519
|
-
export declare const fileShareAudienceSchema: z.ZodEnum<{
|
|
520
|
-
public: "public";
|
|
521
|
-
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";
|
|
522
278
|
}>;
|
|
523
|
-
export type
|
|
524
|
-
export declare const
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
}, z.core.$strip>;
|
|
533
|
-
export type FileShare = z.infer<typeof fileShareSchema>;
|
|
534
|
-
export declare const fileShareWriteSchema: z.ZodObject<{
|
|
535
|
-
path: z.ZodString;
|
|
536
|
-
audience: z.ZodEnum<{
|
|
537
|
-
public: "public";
|
|
538
|
-
people: "people";
|
|
539
|
-
}>;
|
|
540
|
-
grants: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
541
|
-
}, z.core.$strip>;
|
|
542
|
-
export declare const sharingRequestSchema: z.ZodObject<{
|
|
543
|
-
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<{
|
|
544
288
|
email: z.ZodString;
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
export declare const serviceTokenAudienceSchema: z.ZodEnum<{
|
|
554
|
-
viewers: "viewers";
|
|
555
|
-
}>;
|
|
556
|
-
export declare const serviceTokenActsAsSchema: z.ZodObject<{
|
|
557
|
-
audiences: z.ZodDefault<z.ZodArray<z.ZodEnum<{
|
|
558
|
-
viewers: "viewers";
|
|
559
|
-
}>>>;
|
|
560
|
-
}, z.core.$strip>;
|
|
561
|
-
export type ServiceTokenActsAs = z.infer<typeof serviceTokenActsAsSchema>;
|
|
562
|
-
export declare const serviceTokenSchema: z.ZodObject<{
|
|
563
|
-
id: z.ZodString;
|
|
564
|
-
teamId: z.ZodString;
|
|
565
|
-
spaceId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
566
|
-
name: z.ZodString;
|
|
567
|
-
actsAs: z.ZodObject<{
|
|
568
|
-
audiences: z.ZodDefault<z.ZodArray<z.ZodEnum<{
|
|
569
|
-
viewers: "viewers";
|
|
570
|
-
}>>>;
|
|
571
|
-
}, z.core.$strip>;
|
|
572
|
-
expiresAt: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
573
|
-
lastUsedAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
574
|
-
createdAt: z.ZodString;
|
|
575
|
-
active: z.ZodBoolean;
|
|
576
|
-
}, z.core.$strip>;
|
|
577
|
-
export type ServiceToken = z.infer<typeof serviceTokenSchema>;
|
|
578
|
-
export declare const serviceTokenCreateSchema: z.ZodObject<{
|
|
579
|
-
name: z.ZodString;
|
|
580
|
-
spaceId: z.ZodOptional<z.ZodString>;
|
|
581
|
-
expiresAt: z.ZodOptional<z.ZodNumber>;
|
|
582
|
-
actsAs: z.ZodOptional<z.ZodObject<{
|
|
583
|
-
audiences: z.ZodDefault<z.ZodArray<z.ZodEnum<{
|
|
584
|
-
viewers: "viewers";
|
|
585
|
-
}>>>;
|
|
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
|
+
}>;
|
|
586
297
|
}, z.core.$strip>>;
|
|
587
298
|
}, z.core.$strip>;
|
|
588
|
-
export
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
audiences: z.ZodDefault<z.ZodArray<z.ZodEnum<{
|
|
596
|
-
viewers: "viewers";
|
|
597
|
-
}>>>;
|
|
598
|
-
}, z.core.$strip>;
|
|
599
|
-
expiresAt: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
600
|
-
lastUsedAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
601
|
-
createdAt: z.ZodString;
|
|
602
|
-
active: z.ZodBoolean;
|
|
603
|
-
token: z.ZodString;
|
|
604
|
-
}, z.core.$strip>;
|
|
605
|
-
export type ServiceTokenWithSecret = z.infer<typeof serviceTokenWithSecretSchema>;
|
|
606
|
-
export declare const FIREWALL_EFFECTS: readonly ["deny", "challenge"];
|
|
607
|
-
export declare const firewallEffectSchema: z.ZodEnum<{
|
|
608
|
-
deny: "deny";
|
|
609
|
-
challenge: "challenge";
|
|
610
|
-
}>;
|
|
611
|
-
export type FirewallEffect = z.infer<typeof firewallEffectSchema>;
|
|
612
|
-
export declare const firewallCountriesSchema: z.ZodObject<{
|
|
613
|
-
mode: z.ZodEnum<{
|
|
614
|
-
allow: "allow";
|
|
615
|
-
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";
|
|
616
306
|
}>;
|
|
617
|
-
list: z.ZodArray<z.ZodString>;
|
|
618
|
-
effect: z.ZodDefault<z.ZodEnum<{
|
|
619
|
-
deny: "deny";
|
|
620
|
-
challenge: "challenge";
|
|
621
|
-
}>>;
|
|
622
|
-
}, z.core.$strip>;
|
|
623
|
-
export type FirewallCountries = z.infer<typeof firewallCountriesSchema>;
|
|
624
|
-
export declare const firewallIpEntrySchema: z.ZodObject<{
|
|
625
|
-
cidr: z.ZodString;
|
|
626
|
-
effect: z.ZodDefault<z.ZodEnum<{
|
|
627
|
-
deny: "deny";
|
|
628
|
-
challenge: "challenge";
|
|
629
|
-
}>>;
|
|
630
|
-
}, z.core.$strip>;
|
|
631
|
-
export type FirewallIpEntry = z.infer<typeof firewallIpEntrySchema>;
|
|
632
|
-
export declare const firewallBotEntrySchema: z.ZodObject<{
|
|
633
|
-
agent: z.ZodString;
|
|
634
|
-
effect: z.ZodDefault<z.ZodEnum<{
|
|
635
|
-
deny: "deny";
|
|
636
|
-
challenge: "challenge";
|
|
637
|
-
}>>;
|
|
638
|
-
}, z.core.$strip>;
|
|
639
|
-
export type FirewallBotEntry = z.infer<typeof firewallBotEntrySchema>;
|
|
640
|
-
export declare const firewallWriteSchema: z.ZodObject<{
|
|
641
|
-
countries: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
642
|
-
mode: z.ZodEnum<{
|
|
643
|
-
allow: "allow";
|
|
644
|
-
block: "block";
|
|
645
|
-
}>;
|
|
646
|
-
list: z.ZodArray<z.ZodString>;
|
|
647
|
-
effect: z.ZodDefault<z.ZodEnum<{
|
|
648
|
-
deny: "deny";
|
|
649
|
-
challenge: "challenge";
|
|
650
|
-
}>>;
|
|
651
|
-
}, z.core.$strip>>>;
|
|
652
|
-
ipCidrs: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
653
|
-
cidr: z.ZodString;
|
|
654
|
-
effect: z.ZodDefault<z.ZodEnum<{
|
|
655
|
-
deny: "deny";
|
|
656
|
-
challenge: "challenge";
|
|
657
|
-
}>>;
|
|
658
|
-
}, z.core.$strip>>>;
|
|
659
|
-
bots: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
660
|
-
agent: z.ZodString;
|
|
661
|
-
effect: z.ZodDefault<z.ZodEnum<{
|
|
662
|
-
deny: "deny";
|
|
663
|
-
challenge: "challenge";
|
|
664
|
-
}>>;
|
|
665
|
-
}, z.core.$strip>>>;
|
|
666
|
-
}, z.core.$strip>;
|
|
667
|
-
export type FirewallWrite = z.infer<typeof firewallWriteSchema>;
|
|
668
|
-
export declare const spaceFirewallSchema: z.ZodObject<{
|
|
669
|
-
countries: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
670
|
-
mode: z.ZodEnum<{
|
|
671
|
-
allow: "allow";
|
|
672
|
-
block: "block";
|
|
673
|
-
}>;
|
|
674
|
-
list: z.ZodArray<z.ZodString>;
|
|
675
|
-
effect: z.ZodDefault<z.ZodEnum<{
|
|
676
|
-
deny: "deny";
|
|
677
|
-
challenge: "challenge";
|
|
678
|
-
}>>;
|
|
679
|
-
}, z.core.$strip>>>;
|
|
680
|
-
ipCidrs: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
681
|
-
cidr: z.ZodString;
|
|
682
|
-
effect: z.ZodDefault<z.ZodEnum<{
|
|
683
|
-
deny: "deny";
|
|
684
|
-
challenge: "challenge";
|
|
685
|
-
}>>;
|
|
686
|
-
}, z.core.$strip>>>;
|
|
687
|
-
bots: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
688
|
-
agent: z.ZodString;
|
|
689
|
-
effect: z.ZodDefault<z.ZodEnum<{
|
|
690
|
-
deny: "deny";
|
|
691
|
-
challenge: "challenge";
|
|
692
|
-
}>>;
|
|
693
|
-
}, z.core.$strip>>>;
|
|
694
|
-
custom: z.ZodDefault<z.ZodBoolean>;
|
|
695
307
|
}, z.core.$strip>;
|
|
696
|
-
export
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
export declare function isTeamPreviewLockRule(rule: Pick<RuntimeRule, "id">): boolean;
|
|
701
|
-
export declare function teamPreviewLockActive(rules: ReadonlyArray<Pick<RuntimeRule, "id">>): boolean;
|
|
702
|
-
export declare function withTeamPreviewLock(rules: RuntimeRule[], teamId: string, enabled: boolean): RuntimeRule[];
|
|
703
|
-
export declare const spaceSharingSchema: z.ZodObject<{
|
|
704
|
-
visibility: z.ZodEnum<{
|
|
705
|
-
public: "public";
|
|
706
|
-
restricted: "restricted";
|
|
707
|
-
}>;
|
|
708
|
-
hasPassword: z.ZodBoolean;
|
|
709
|
-
people: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
710
|
-
kind: z.ZodEnum<{
|
|
711
|
-
team_member: "team_member";
|
|
712
|
-
invitee: "invitee";
|
|
713
|
-
}>;
|
|
714
|
-
userId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
715
|
-
email: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
716
|
-
name: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
717
|
-
teamRole: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
718
|
-
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<{
|
|
719
312
|
viewer: "viewer";
|
|
720
313
|
commenter: "commenter";
|
|
721
314
|
editor: "editor";
|
|
722
|
-
|
|
723
|
-
}>>>;
|
|
724
|
-
inviteId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
725
|
-
status: z.ZodDefault<z.ZodNullable<z.ZodEnum<{
|
|
726
|
-
expired: "expired";
|
|
727
|
-
pending: "pending";
|
|
728
|
-
accepted: "accepted";
|
|
729
|
-
}>>>;
|
|
730
|
-
lastViewedAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
731
|
-
}, z.core.$strip>>>;
|
|
732
|
-
audiences: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
733
|
-
connectionId: z.ZodString;
|
|
734
|
-
type: z.ZodEnum<{
|
|
735
|
-
external: "external";
|
|
736
|
-
oidc: "oidc";
|
|
315
|
+
manager: "manager";
|
|
737
316
|
}>;
|
|
738
|
-
|
|
739
|
-
tag: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
740
|
-
emailDomain: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
741
|
-
grant: z.ZodString;
|
|
742
|
-
}, z.core.$strip>>>;
|
|
743
|
-
links: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
744
|
-
id: z.ZodString;
|
|
745
|
-
spaceId: z.ZodString;
|
|
746
|
-
label: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
747
|
-
path: z.ZodString;
|
|
748
|
-
createdBy: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
749
|
-
expiresAt: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
750
|
-
createdAt: z.ZodString;
|
|
751
|
-
lastUsedAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
752
|
-
useCount: z.ZodDefault<z.ZodNumber>;
|
|
753
|
-
active: z.ZodBoolean;
|
|
754
|
-
}, z.core.$strip>>>;
|
|
755
|
-
fileShares: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
756
|
-
path: z.ZodString;
|
|
757
|
-
audience: z.ZodEnum<{
|
|
758
|
-
public: "public";
|
|
759
|
-
people: "people";
|
|
760
|
-
}>;
|
|
761
|
-
grants: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
762
|
-
patterns: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
763
|
-
}, z.core.$strip>>>;
|
|
764
|
-
requests: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
765
|
-
id: z.ZodString;
|
|
766
|
-
email: z.ZodString;
|
|
767
|
-
message: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
768
|
-
createdAt: z.ZodString;
|
|
769
|
-
host: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
770
|
-
path: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
771
|
-
}, z.core.$strip>>>;
|
|
772
|
-
customRulesActive: z.ZodBoolean;
|
|
773
|
-
accessExceedsPlan: z.ZodDefault<z.ZodBoolean>;
|
|
317
|
+
}, z.core.$strip>>;
|
|
774
318
|
}, z.core.$strip>;
|
|
775
|
-
export
|
|
776
|
-
export declare const channelSchema: z.ZodObject<{
|
|
319
|
+
export declare const accessShareLinkCreateSchema: z.ZodObject<{
|
|
777
320
|
name: z.ZodString;
|
|
778
|
-
|
|
779
|
-
|
|
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">;
|
|
780
347
|
versionId: z.ZodString;
|
|
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
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
}, z.core.$strip>>;
|
|
835
|
-
managedBy: z.ZodOptional<z.ZodEnum<{
|
|
836
|
-
sharing: "sharing";
|
|
837
|
-
firewall: "firewall";
|
|
838
|
-
file_share: "file_share";
|
|
839
|
-
cast_reviewer: "cast_reviewer";
|
|
840
|
-
team_default: "team_default";
|
|
841
|
-
}>>;
|
|
842
|
-
expiresAt: z.ZodOptional<z.ZodNumber>;
|
|
843
|
-
reasonCode: z.ZodOptional<z.ZodString>;
|
|
844
|
-
message: z.ZodOptional<z.ZodString>;
|
|
845
|
-
}, z.core.$strip>>>;
|
|
846
|
-
issuers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
847
|
-
kid: z.ZodString;
|
|
848
|
-
alg: z.ZodLiteral<"EdDSA">;
|
|
849
|
-
publicKey: z.ZodString;
|
|
850
|
-
grantNamespaces: z.ZodArray<z.ZodString>;
|
|
851
|
-
}, z.core.$strip>>>;
|
|
852
|
-
sessionVersion: z.ZodOptional<z.ZodNumber>;
|
|
853
|
-
}, z.core.$strip>;
|
|
854
|
-
export type PolicyDoc = z.infer<typeof policyDocSchema>;
|
|
855
|
-
export declare const spacePolicySchema: z.ZodObject<{
|
|
856
|
-
rules: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
857
|
-
id: z.ZodOptional<z.ZodString>;
|
|
858
|
-
match: z.ZodDefault<z.ZodObject<{
|
|
859
|
-
host: z.ZodOptional<z.ZodString>;
|
|
860
|
-
hostPattern: z.ZodOptional<z.ZodString>;
|
|
861
|
-
hostTemplate: z.ZodOptional<z.ZodString>;
|
|
862
|
-
pathPattern: z.ZodOptional<z.ZodString>;
|
|
863
|
-
channel: z.ZodOptional<z.ZodString>;
|
|
864
|
-
ipCidrs: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
865
|
-
agent: z.ZodOptional<z.ZodString>;
|
|
866
|
-
country: z.ZodOptional<z.ZodString>;
|
|
867
|
-
countryNotIn: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
868
|
-
header: z.ZodOptional<z.ZodObject<{
|
|
869
|
-
name: z.ZodString;
|
|
870
|
-
value: z.ZodString;
|
|
871
|
-
}, z.core.$strip>>;
|
|
872
|
-
}, z.core.$strip>>;
|
|
873
|
-
effect: z.ZodEnum<{
|
|
874
|
-
allow: "allow";
|
|
875
|
-
deny: "deny";
|
|
876
|
-
challenge: "challenge";
|
|
877
|
-
}>;
|
|
878
|
-
auth: z.ZodOptional<z.ZodObject<{
|
|
879
|
-
requiredGrants: z.ZodArray<z.ZodString>;
|
|
880
|
-
issuers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
881
|
-
kid: z.ZodString;
|
|
882
|
-
alg: z.ZodLiteral<"EdDSA">;
|
|
883
|
-
publicKey: z.ZodString;
|
|
884
|
-
grantNamespaces: z.ZodArray<z.ZodString>;
|
|
885
|
-
}, z.core.$strip>>>;
|
|
886
|
-
acquire: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
887
|
-
type: z.ZodLiteral<"password">;
|
|
888
|
-
ref: z.ZodString;
|
|
889
|
-
transport: z.ZodEnum<{
|
|
890
|
-
basic: "basic";
|
|
891
|
-
form: "form";
|
|
892
|
-
}>;
|
|
893
|
-
username: z.ZodOptional<z.ZodString>;
|
|
894
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
895
|
-
type: z.ZodLiteral<"login">;
|
|
896
|
-
url: z.ZodString;
|
|
897
|
-
label: z.ZodOptional<z.ZodString>;
|
|
898
|
-
}, z.core.$strip>], "type">>>;
|
|
899
|
-
}, z.core.$strip>>;
|
|
900
|
-
managedBy: z.ZodOptional<z.ZodEnum<{
|
|
901
|
-
sharing: "sharing";
|
|
902
|
-
firewall: "firewall";
|
|
903
|
-
file_share: "file_share";
|
|
904
|
-
cast_reviewer: "cast_reviewer";
|
|
905
|
-
team_default: "team_default";
|
|
906
|
-
}>>;
|
|
907
|
-
expiresAt: z.ZodOptional<z.ZodNumber>;
|
|
908
|
-
reasonCode: z.ZodOptional<z.ZodString>;
|
|
909
|
-
message: z.ZodOptional<z.ZodString>;
|
|
910
|
-
}, z.core.$strip>>>;
|
|
911
|
-
version: z.ZodDefault<z.ZodNumber>;
|
|
912
|
-
}, z.core.$strip>;
|
|
913
|
-
export type SpacePolicy = z.infer<typeof spacePolicySchema>;
|
|
914
|
-
export declare const spaceAccessRulesWriteSchema: z.ZodObject<{
|
|
915
|
-
rules: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
916
|
-
id: z.ZodOptional<z.ZodString>;
|
|
917
|
-
match: z.ZodDefault<z.ZodObject<{
|
|
918
|
-
host: z.ZodOptional<z.ZodString>;
|
|
919
|
-
hostPattern: z.ZodOptional<z.ZodString>;
|
|
920
|
-
hostTemplate: z.ZodOptional<z.ZodString>;
|
|
921
|
-
pathPattern: z.ZodOptional<z.ZodString>;
|
|
922
|
-
channel: z.ZodOptional<z.ZodString>;
|
|
923
|
-
ipCidrs: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
924
|
-
agent: z.ZodOptional<z.ZodString>;
|
|
925
|
-
country: z.ZodOptional<z.ZodString>;
|
|
926
|
-
countryNotIn: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
927
|
-
header: z.ZodOptional<z.ZodObject<{
|
|
928
|
-
name: z.ZodString;
|
|
929
|
-
value: z.ZodString;
|
|
930
|
-
}, z.core.$strip>>;
|
|
931
|
-
}, z.core.$strip>>;
|
|
932
|
-
effect: z.ZodEnum<{
|
|
933
|
-
allow: "allow";
|
|
934
|
-
deny: "deny";
|
|
935
|
-
challenge: "challenge";
|
|
936
|
-
}>;
|
|
937
|
-
auth: z.ZodOptional<z.ZodObject<{
|
|
938
|
-
requiredGrants: z.ZodArray<z.ZodString>;
|
|
939
|
-
issuers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
940
|
-
kid: z.ZodString;
|
|
941
|
-
alg: z.ZodLiteral<"EdDSA">;
|
|
942
|
-
publicKey: z.ZodString;
|
|
943
|
-
grantNamespaces: z.ZodArray<z.ZodString>;
|
|
944
|
-
}, z.core.$strip>>>;
|
|
945
|
-
acquire: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
946
|
-
type: z.ZodLiteral<"password">;
|
|
947
|
-
ref: z.ZodString;
|
|
948
|
-
transport: z.ZodEnum<{
|
|
949
|
-
basic: "basic";
|
|
950
|
-
form: "form";
|
|
951
|
-
}>;
|
|
952
|
-
username: z.ZodOptional<z.ZodString>;
|
|
953
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
954
|
-
type: z.ZodLiteral<"login">;
|
|
955
|
-
url: z.ZodString;
|
|
956
|
-
label: z.ZodOptional<z.ZodString>;
|
|
957
|
-
}, z.core.$strip>], "type">>>;
|
|
958
|
-
}, z.core.$strip>>;
|
|
959
|
-
managedBy: z.ZodOptional<z.ZodEnum<{
|
|
960
|
-
sharing: "sharing";
|
|
961
|
-
firewall: "firewall";
|
|
962
|
-
file_share: "file_share";
|
|
963
|
-
cast_reviewer: "cast_reviewer";
|
|
964
|
-
team_default: "team_default";
|
|
965
|
-
}>>;
|
|
966
|
-
expiresAt: z.ZodOptional<z.ZodNumber>;
|
|
967
|
-
reasonCode: z.ZodOptional<z.ZodString>;
|
|
968
|
-
message: z.ZodOptional<z.ZodString>;
|
|
969
|
-
}, z.core.$strip>>>;
|
|
970
|
-
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>;
|
|
971
401
|
}, z.core.$strip>;
|
|
972
|
-
export
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
pathPattern: z.ZodOptional<z.ZodString>;
|
|
981
|
-
channel: z.ZodOptional<z.ZodString>;
|
|
982
|
-
ipCidrs: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
983
|
-
agent: z.ZodOptional<z.ZodString>;
|
|
984
|
-
country: z.ZodOptional<z.ZodString>;
|
|
985
|
-
countryNotIn: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
986
|
-
header: z.ZodOptional<z.ZodObject<{
|
|
987
|
-
name: z.ZodString;
|
|
988
|
-
value: z.ZodString;
|
|
989
|
-
}, z.core.$strip>>;
|
|
990
|
-
}, z.core.$strip>>;
|
|
991
|
-
effect: z.ZodEnum<{
|
|
992
|
-
allow: "allow";
|
|
993
|
-
deny: "deny";
|
|
994
|
-
challenge: "challenge";
|
|
995
|
-
}>;
|
|
996
|
-
auth: z.ZodOptional<z.ZodObject<{
|
|
997
|
-
requiredGrants: z.ZodArray<z.ZodString>;
|
|
998
|
-
issuers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
999
|
-
kid: z.ZodString;
|
|
1000
|
-
alg: z.ZodLiteral<"EdDSA">;
|
|
1001
|
-
publicKey: z.ZodString;
|
|
1002
|
-
grantNamespaces: z.ZodArray<z.ZodString>;
|
|
1003
|
-
}, z.core.$strip>>>;
|
|
1004
|
-
acquire: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1005
|
-
type: z.ZodLiteral<"password">;
|
|
1006
|
-
ref: z.ZodString;
|
|
1007
|
-
transport: z.ZodEnum<{
|
|
1008
|
-
basic: "basic";
|
|
1009
|
-
form: "form";
|
|
1010
|
-
}>;
|
|
1011
|
-
username: z.ZodOptional<z.ZodString>;
|
|
1012
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
1013
|
-
type: z.ZodLiteral<"login">;
|
|
1014
|
-
url: z.ZodString;
|
|
1015
|
-
label: z.ZodOptional<z.ZodString>;
|
|
1016
|
-
}, z.core.$strip>], "type">>>;
|
|
1017
|
-
}, z.core.$strip>>;
|
|
1018
|
-
managedBy: z.ZodOptional<z.ZodEnum<{
|
|
1019
|
-
sharing: "sharing";
|
|
1020
|
-
firewall: "firewall";
|
|
1021
|
-
file_share: "file_share";
|
|
1022
|
-
cast_reviewer: "cast_reviewer";
|
|
1023
|
-
team_default: "team_default";
|
|
1024
|
-
}>>;
|
|
1025
|
-
expiresAt: z.ZodOptional<z.ZodNumber>;
|
|
1026
|
-
reasonCode: z.ZodOptional<z.ZodString>;
|
|
1027
|
-
message: z.ZodOptional<z.ZodString>;
|
|
1028
|
-
}, z.core.$strip>>>;
|
|
1029
|
-
version: z.ZodDefault<z.ZodNumber>;
|
|
1030
|
-
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
|
+
}>>;
|
|
1031
410
|
}, z.core.$strip>;
|
|
1032
|
-
export
|
|
1033
|
-
export declare const quickShareSchema: z.ZodObject<{
|
|
1034
|
-
kind: z.ZodLiteral<"quick_share">;
|
|
411
|
+
export declare const openHandoffSchema: z.ZodObject<{
|
|
1035
412
|
url: z.ZodString;
|
|
1036
413
|
expiresAt: z.ZodString;
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
}, z.core.$strip>;
|
|
1042
|
-
export type QuickShare = z.infer<typeof quickShareSchema>;
|
|
1043
|
-
export declare const quickShareDeleteSchema: z.ZodObject<{
|
|
1044
|
-
outcome: z.ZodEnum<{
|
|
1045
|
-
deleted: "deleted";
|
|
1046
|
-
unchanged: "unchanged";
|
|
414
|
+
kind: z.ZodEnum<{
|
|
415
|
+
management: "management";
|
|
416
|
+
person: "person";
|
|
417
|
+
claim_preview: "claim_preview";
|
|
1047
418
|
}>;
|
|
1048
419
|
}, z.core.$strip>;
|
|
1049
|
-
export
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
active: z.ZodArray<z.ZodString>;
|
|
1053
|
-
}, z.core.$strip>;
|
|
1054
|
-
export type Enhancements = z.infer<typeof enhancementsSchema>;
|
|
1055
|
-
export declare const enhancementsWriteSchema: z.ZodObject<{
|
|
1056
|
-
enabled: z.ZodBoolean;
|
|
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>;
|
|
1057
423
|
}, z.core.$strip>;
|
|
1058
|
-
export type
|
|
1059
|
-
export declare const
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
export declare const effectiveRuleSchema: z.ZodObject<{
|
|
1065
|
-
id: z.ZodOptional<z.ZodString>;
|
|
1066
|
-
match: z.ZodDefault<z.ZodObject<{
|
|
1067
|
-
host: z.ZodOptional<z.ZodString>;
|
|
1068
|
-
hostPattern: z.ZodOptional<z.ZodString>;
|
|
1069
|
-
hostTemplate: z.ZodOptional<z.ZodString>;
|
|
1070
|
-
pathPattern: z.ZodOptional<z.ZodString>;
|
|
1071
|
-
channel: z.ZodOptional<z.ZodString>;
|
|
1072
|
-
ipCidrs: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1073
|
-
agent: z.ZodOptional<z.ZodString>;
|
|
1074
|
-
country: z.ZodOptional<z.ZodString>;
|
|
1075
|
-
countryNotIn: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1076
|
-
header: z.ZodOptional<z.ZodObject<{
|
|
1077
|
-
name: z.ZodString;
|
|
1078
|
-
value: z.ZodString;
|
|
1079
|
-
}, z.core.$strip>>;
|
|
1080
|
-
}, z.core.$strip>>;
|
|
1081
|
-
effect: z.ZodEnum<{
|
|
1082
|
-
allow: "allow";
|
|
1083
|
-
deny: "deny";
|
|
1084
|
-
challenge: "challenge";
|
|
1085
|
-
}>;
|
|
1086
|
-
auth: z.ZodOptional<z.ZodObject<{
|
|
1087
|
-
requiredGrants: z.ZodArray<z.ZodString>;
|
|
1088
|
-
issuers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1089
|
-
kid: z.ZodString;
|
|
1090
|
-
alg: z.ZodLiteral<"EdDSA">;
|
|
1091
|
-
publicKey: z.ZodString;
|
|
1092
|
-
grantNamespaces: z.ZodArray<z.ZodString>;
|
|
1093
|
-
}, z.core.$strip>>>;
|
|
1094
|
-
acquire: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1095
|
-
type: z.ZodLiteral<"password">;
|
|
1096
|
-
ref: z.ZodString;
|
|
1097
|
-
transport: z.ZodEnum<{
|
|
1098
|
-
basic: "basic";
|
|
1099
|
-
form: "form";
|
|
1100
|
-
}>;
|
|
1101
|
-
username: z.ZodOptional<z.ZodString>;
|
|
1102
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
1103
|
-
type: z.ZodLiteral<"login">;
|
|
1104
|
-
url: z.ZodString;
|
|
1105
|
-
label: z.ZodOptional<z.ZodString>;
|
|
1106
|
-
}, z.core.$strip>], "type">>>;
|
|
1107
|
-
}, z.core.$strip>>;
|
|
1108
|
-
managedBy: z.ZodOptional<z.ZodEnum<{
|
|
1109
|
-
sharing: "sharing";
|
|
1110
|
-
firewall: "firewall";
|
|
1111
|
-
file_share: "file_share";
|
|
1112
|
-
cast_reviewer: "cast_reviewer";
|
|
1113
|
-
team_default: "team_default";
|
|
1114
|
-
}>>;
|
|
1115
|
-
expiresAt: z.ZodOptional<z.ZodNumber>;
|
|
1116
|
-
reasonCode: z.ZodOptional<z.ZodString>;
|
|
1117
|
-
message: z.ZodOptional<z.ZodString>;
|
|
1118
|
-
source: z.ZodEnum<{
|
|
1119
|
-
cloud: "cloud";
|
|
1120
|
-
file: "file";
|
|
1121
|
-
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";
|
|
1122
430
|
}>;
|
|
1123
|
-
order: z.ZodNumber;
|
|
1124
|
-
}, z.core.$strip>;
|
|
1125
|
-
export type EffectiveRule = z.infer<typeof effectiveRuleSchema>;
|
|
1126
|
-
export declare const effectivePolicySchema: z.ZodObject<{
|
|
1127
|
-
rules: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1128
|
-
id: z.ZodOptional<z.ZodString>;
|
|
1129
|
-
match: z.ZodDefault<z.ZodObject<{
|
|
1130
|
-
host: z.ZodOptional<z.ZodString>;
|
|
1131
|
-
hostPattern: z.ZodOptional<z.ZodString>;
|
|
1132
|
-
hostTemplate: z.ZodOptional<z.ZodString>;
|
|
1133
|
-
pathPattern: z.ZodOptional<z.ZodString>;
|
|
1134
|
-
channel: z.ZodOptional<z.ZodString>;
|
|
1135
|
-
ipCidrs: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1136
|
-
agent: z.ZodOptional<z.ZodString>;
|
|
1137
|
-
country: z.ZodOptional<z.ZodString>;
|
|
1138
|
-
countryNotIn: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1139
|
-
header: z.ZodOptional<z.ZodObject<{
|
|
1140
|
-
name: z.ZodString;
|
|
1141
|
-
value: z.ZodString;
|
|
1142
|
-
}, z.core.$strip>>;
|
|
1143
|
-
}, z.core.$strip>>;
|
|
1144
|
-
effect: z.ZodEnum<{
|
|
1145
|
-
allow: "allow";
|
|
1146
|
-
deny: "deny";
|
|
1147
|
-
challenge: "challenge";
|
|
1148
|
-
}>;
|
|
1149
|
-
auth: z.ZodOptional<z.ZodObject<{
|
|
1150
|
-
requiredGrants: z.ZodArray<z.ZodString>;
|
|
1151
|
-
issuers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1152
|
-
kid: z.ZodString;
|
|
1153
|
-
alg: z.ZodLiteral<"EdDSA">;
|
|
1154
|
-
publicKey: z.ZodString;
|
|
1155
|
-
grantNamespaces: z.ZodArray<z.ZodString>;
|
|
1156
|
-
}, z.core.$strip>>>;
|
|
1157
|
-
acquire: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1158
|
-
type: z.ZodLiteral<"password">;
|
|
1159
|
-
ref: z.ZodString;
|
|
1160
|
-
transport: z.ZodEnum<{
|
|
1161
|
-
basic: "basic";
|
|
1162
|
-
form: "form";
|
|
1163
|
-
}>;
|
|
1164
|
-
username: z.ZodOptional<z.ZodString>;
|
|
1165
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
1166
|
-
type: z.ZodLiteral<"login">;
|
|
1167
|
-
url: z.ZodString;
|
|
1168
|
-
label: z.ZodOptional<z.ZodString>;
|
|
1169
|
-
}, z.core.$strip>], "type">>>;
|
|
1170
|
-
}, z.core.$strip>>;
|
|
1171
|
-
managedBy: z.ZodOptional<z.ZodEnum<{
|
|
1172
|
-
sharing: "sharing";
|
|
1173
|
-
firewall: "firewall";
|
|
1174
|
-
file_share: "file_share";
|
|
1175
|
-
cast_reviewer: "cast_reviewer";
|
|
1176
|
-
team_default: "team_default";
|
|
1177
|
-
}>>;
|
|
1178
|
-
expiresAt: z.ZodOptional<z.ZodNumber>;
|
|
1179
|
-
reasonCode: z.ZodOptional<z.ZodString>;
|
|
1180
|
-
message: z.ZodOptional<z.ZodString>;
|
|
1181
|
-
source: z.ZodEnum<{
|
|
1182
|
-
cloud: "cloud";
|
|
1183
|
-
file: "file";
|
|
1184
|
-
platform: "platform";
|
|
1185
|
-
}>;
|
|
1186
|
-
order: z.ZodNumber;
|
|
1187
|
-
}, z.core.$strip>>>;
|
|
1188
|
-
issuers: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1189
|
-
kid: z.ZodString;
|
|
1190
|
-
alg: z.ZodLiteral<"EdDSA">;
|
|
1191
|
-
publicKey: z.ZodString;
|
|
1192
|
-
grantNamespaces: z.ZodArray<z.ZodString>;
|
|
1193
|
-
}, z.core.$strip>>>;
|
|
1194
|
-
cloudVersion: z.ZodDefault<z.ZodNumber>;
|
|
1195
|
-
fileVersion: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
1196
|
-
secrets: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1197
|
-
sessionVersion: z.ZodDefault<z.ZodNumber>;
|
|
1198
431
|
}, z.core.$strip>;
|
|
1199
|
-
export
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
challenge: "challenge";
|
|
432
|
+
export declare const teamSpaceAccessDefaultWriteSchema: z.ZodObject<{
|
|
433
|
+
newSpaceGrantPreset: z.ZodEnum<{
|
|
434
|
+
team: "team";
|
|
435
|
+
public: "public";
|
|
436
|
+
private: "private";
|
|
1205
437
|
}>;
|
|
1206
|
-
matchedRule: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
1207
|
-
id: z.ZodOptional<z.ZodString>;
|
|
1208
|
-
match: z.ZodDefault<z.ZodObject<{
|
|
1209
|
-
host: z.ZodOptional<z.ZodString>;
|
|
1210
|
-
hostPattern: z.ZodOptional<z.ZodString>;
|
|
1211
|
-
hostTemplate: z.ZodOptional<z.ZodString>;
|
|
1212
|
-
pathPattern: z.ZodOptional<z.ZodString>;
|
|
1213
|
-
channel: z.ZodOptional<z.ZodString>;
|
|
1214
|
-
ipCidrs: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1215
|
-
agent: z.ZodOptional<z.ZodString>;
|
|
1216
|
-
country: z.ZodOptional<z.ZodString>;
|
|
1217
|
-
countryNotIn: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1218
|
-
header: z.ZodOptional<z.ZodObject<{
|
|
1219
|
-
name: z.ZodString;
|
|
1220
|
-
value: z.ZodString;
|
|
1221
|
-
}, z.core.$strip>>;
|
|
1222
|
-
}, z.core.$strip>>;
|
|
1223
|
-
effect: z.ZodEnum<{
|
|
1224
|
-
allow: "allow";
|
|
1225
|
-
deny: "deny";
|
|
1226
|
-
challenge: "challenge";
|
|
1227
|
-
}>;
|
|
1228
|
-
auth: z.ZodOptional<z.ZodObject<{
|
|
1229
|
-
requiredGrants: z.ZodArray<z.ZodString>;
|
|
1230
|
-
issuers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1231
|
-
kid: z.ZodString;
|
|
1232
|
-
alg: z.ZodLiteral<"EdDSA">;
|
|
1233
|
-
publicKey: z.ZodString;
|
|
1234
|
-
grantNamespaces: z.ZodArray<z.ZodString>;
|
|
1235
|
-
}, z.core.$strip>>>;
|
|
1236
|
-
acquire: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1237
|
-
type: z.ZodLiteral<"password">;
|
|
1238
|
-
ref: z.ZodString;
|
|
1239
|
-
transport: z.ZodEnum<{
|
|
1240
|
-
basic: "basic";
|
|
1241
|
-
form: "form";
|
|
1242
|
-
}>;
|
|
1243
|
-
username: z.ZodOptional<z.ZodString>;
|
|
1244
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
1245
|
-
type: z.ZodLiteral<"login">;
|
|
1246
|
-
url: z.ZodString;
|
|
1247
|
-
label: z.ZodOptional<z.ZodString>;
|
|
1248
|
-
}, z.core.$strip>], "type">>>;
|
|
1249
|
-
}, z.core.$strip>>;
|
|
1250
|
-
managedBy: z.ZodOptional<z.ZodEnum<{
|
|
1251
|
-
sharing: "sharing";
|
|
1252
|
-
firewall: "firewall";
|
|
1253
|
-
file_share: "file_share";
|
|
1254
|
-
cast_reviewer: "cast_reviewer";
|
|
1255
|
-
team_default: "team_default";
|
|
1256
|
-
}>>;
|
|
1257
|
-
expiresAt: z.ZodOptional<z.ZodNumber>;
|
|
1258
|
-
reasonCode: z.ZodOptional<z.ZodString>;
|
|
1259
|
-
message: z.ZodOptional<z.ZodString>;
|
|
1260
|
-
source: z.ZodEnum<{
|
|
1261
|
-
cloud: "cloud";
|
|
1262
|
-
file: "file";
|
|
1263
|
-
platform: "platform";
|
|
1264
|
-
}>;
|
|
1265
|
-
order: z.ZodNumber;
|
|
1266
|
-
}, z.core.$strip>>>;
|
|
1267
|
-
why: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1268
|
-
whoWouldPass: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1269
438
|
}, z.core.$strip>;
|
|
1270
|
-
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>;
|