@spacefast/common 0.0.12 → 0.0.17

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (189) hide show
  1. package/dist/agents/client-registry.d.ts +22 -0
  2. package/dist/agents/client-registry.js +41 -0
  3. package/dist/agents/connect-targets.d.ts +51 -6
  4. package/dist/agents/connect-targets.js +93 -28
  5. package/dist/brand.d.ts +0 -11
  6. package/dist/brand.js +0 -20
  7. package/dist/config/domains.d.ts +15 -6
  8. package/dist/config/domains.js +24 -10
  9. package/dist/config/postgres-budget.d.ts +3 -0
  10. package/dist/config/postgres-budget.js +6 -1
  11. package/dist/config/postgres-budget.json +2 -1
  12. package/dist/contracts/abuse.js +1 -1
  13. package/dist/contracts/access.d.ts +486 -1196
  14. package/dist/contracts/access.js +323 -1054
  15. package/dist/contracts/activity.d.ts +1 -1
  16. package/dist/contracts/activity.js +11 -15
  17. package/dist/contracts/api-keys.d.ts +16 -0
  18. package/dist/contracts/api-keys.js +11 -9
  19. package/dist/contracts/archives.d.ts +1 -2
  20. package/dist/contracts/archives.js +15 -17
  21. package/dist/contracts/beta.js +1 -1
  22. package/dist/contracts/builds.js +14 -14
  23. package/dist/contracts/channels.js +2 -2
  24. package/dist/contracts/comments.d.ts +143 -99
  25. package/dist/contracts/comments.js +194 -79
  26. package/dist/contracts/common.d.ts +12 -12
  27. package/dist/contracts/common.js +33 -30
  28. package/dist/contracts/continuation.js +5 -5
  29. package/dist/contracts/countries.js +2 -7
  30. package/dist/contracts/data-source-routes.d.ts +20 -0
  31. package/dist/contracts/data-source-routes.js +15 -0
  32. package/dist/contracts/device-auth.d.ts +13 -9
  33. package/dist/contracts/device-auth.js +12 -12
  34. package/dist/contracts/docs.d.ts +10 -10
  35. package/dist/contracts/domains.js +39 -33
  36. package/dist/contracts/enums.d.ts +4 -14
  37. package/dist/contracts/enums.js +3 -10
  38. package/dist/contracts/error-code-meta.d.ts +122 -56
  39. package/dist/contracts/error-code-meta.js +43 -19
  40. package/dist/contracts/error-codes.d.ts +7 -4
  41. package/dist/contracts/error-codes.js +48 -24
  42. package/dist/contracts/events.d.ts +22 -15
  43. package/dist/contracts/events.js +33 -5
  44. package/dist/contracts/execution.d.ts +238 -0
  45. package/dist/contracts/execution.js +309 -0
  46. package/dist/contracts/feature-lifecycle.d.ts +39 -188
  47. package/dist/contracts/feature-lifecycle.js +52 -196
  48. package/dist/contracts/features.d.ts +13 -115
  49. package/dist/contracts/features.js +5 -35
  50. package/dist/contracts/functions.d.ts +597 -0
  51. package/dist/contracts/functions.js +475 -0
  52. package/dist/contracts/grants.d.ts +1175 -0
  53. package/dist/contracts/grants.js +783 -0
  54. package/dist/contracts/ids.d.ts +7 -5
  55. package/dist/contracts/ids.js +7 -7
  56. package/dist/contracts/internal.js +2 -2
  57. package/dist/contracts/mcp.d.ts +17 -556
  58. package/dist/contracts/mcp.js +9 -103
  59. package/dist/contracts/me.js +3 -4
  60. package/dist/contracts/notifications.d.ts +108 -0
  61. package/dist/contracts/notifications.js +54 -0
  62. package/dist/contracts/oauth-resources.d.ts +22 -5
  63. package/dist/contracts/oauth-resources.js +23 -2
  64. package/dist/contracts/operations.d.ts +0 -48
  65. package/dist/contracts/operations.js +0 -19
  66. package/dist/contracts/pages.d.ts +10 -14
  67. package/dist/contracts/pages.js +17 -21
  68. package/dist/contracts/plan-policy.d.ts +1 -8
  69. package/dist/contracts/plan-policy.js +1 -4
  70. package/dist/contracts/platform.d.ts +78 -30
  71. package/dist/contracts/platform.js +69 -20
  72. package/dist/contracts/problem-document.d.ts +14 -0
  73. package/dist/contracts/problem-document.js +35 -0
  74. package/dist/contracts/push-new.d.ts +41 -2
  75. package/dist/contracts/push-new.js +4 -0
  76. package/dist/contracts/quotas.d.ts +0 -1
  77. package/dist/contracts/quotas.js +0 -5
  78. package/dist/contracts/repository-connections.d.ts +1 -1
  79. package/dist/contracts/resources.d.ts +16 -71
  80. package/dist/contracts/resources.js +13 -16
  81. package/dist/contracts/runtime-api.d.ts +666 -303
  82. package/dist/contracts/runtime-api.js +272 -113
  83. package/dist/contracts/runtime-app.d.ts +168 -0
  84. package/dist/contracts/runtime-app.js +42 -0
  85. package/dist/contracts/runtime-db.d.ts +424 -0
  86. package/dist/contracts/runtime-db.js +108 -0
  87. package/dist/contracts/runtime-storage.d.ts +120 -0
  88. package/dist/contracts/runtime-storage.js +40 -0
  89. package/dist/contracts/sf-config-v1.d.ts +54 -1
  90. package/dist/contracts/sf-config-v1.js +2 -2
  91. package/dist/contracts/sites.d.ts +6 -0
  92. package/dist/contracts/sites.js +30 -11
  93. package/dist/contracts/space-config.d.ts +91 -121
  94. package/dist/contracts/space-config.js +464 -42
  95. package/dist/contracts/spaces.d.ts +300 -171
  96. package/dist/contracts/spaces.js +128 -98
  97. package/dist/contracts/superadmin-emails.d.ts +2 -2
  98. package/dist/contracts/superadmin-spaces.d.ts +26 -130
  99. package/dist/contracts/superadmin-spaces.js +22 -0
  100. package/dist/contracts/superadmin-tenants.js +4 -4
  101. package/dist/contracts/superadmin.d.ts +4 -0
  102. package/dist/contracts/superadmin.js +14 -1
  103. package/dist/contracts/tags.d.ts +6 -6
  104. package/dist/contracts/tags.js +1 -1
  105. package/dist/contracts/teams.d.ts +9 -9
  106. package/dist/contracts/teams.js +25 -16
  107. package/dist/contracts/theme-json.js +1 -1
  108. package/dist/contracts/transfers.d.ts +0 -1
  109. package/dist/contracts/transfers.js +4 -4
  110. package/dist/contracts/variables.js +3 -3
  111. package/dist/contracts/zero.d.ts +384 -596
  112. package/dist/contracts/zero.js +167 -299
  113. package/dist/dashboard-paths/index.d.ts +18 -3
  114. package/dist/dashboard-paths/index.js +19 -0
  115. package/dist/docs/agent-handoff-document.d.ts +2 -2
  116. package/dist/docs/agent-handoff-document.js +8 -7
  117. package/dist/docs/agent-prose.d.ts +22 -3
  118. package/dist/docs/agent-prose.js +227 -55
  119. package/dist/docs/agent-setup.d.ts +14 -11
  120. package/dist/docs/agent-setup.js +289 -61
  121. package/dist/docs/agent-solutions.d.ts +6 -6
  122. package/dist/docs/agent-solutions.js +24 -22
  123. package/dist/docs/catalog.d.ts +53 -98
  124. package/dist/docs/catalog.js +90 -117
  125. package/dist/docs/error-docs.js +304 -236
  126. package/dist/docs/skill-distribution.d.ts +2 -0
  127. package/dist/docs/skill-distribution.js +7 -4
  128. package/dist/docs/skills.d.ts +546 -0
  129. package/dist/docs/skills.js +340 -0
  130. package/dist/utils/auth-redirect.d.ts +1 -3
  131. package/dist/utils/auth-redirect.js +1 -21
  132. package/dist/utils/browser-credential.d.ts +19 -0
  133. package/dist/utils/browser-credential.js +62 -0
  134. package/dist/utils/build-settings.d.ts +2 -0
  135. package/dist/utils/build-settings.js +61 -9
  136. package/dist/utils/comment-avatars.d.ts +7 -0
  137. package/dist/utils/comment-avatars.js +42 -0
  138. package/dist/utils/content-type.d.ts +3 -3
  139. package/dist/utils/content-type.js +38 -61
  140. package/dist/utils/credential-policy.d.ts +1 -1
  141. package/dist/utils/credential-policy.js +4 -0
  142. package/dist/utils/domain-diagnostics.d.ts +5 -5
  143. package/dist/utils/domain-diagnostics.js +21 -10
  144. package/dist/utils/egress-policy.fixtures.json +1 -1
  145. package/dist/utils/grants.d.ts +53 -0
  146. package/dist/utils/grants.js +160 -0
  147. package/dist/utils/local-space-state.d.ts +78 -4
  148. package/dist/utils/local-space-state.js +384 -82
  149. package/dist/utils/one-shot-replay.d.ts +14 -0
  150. package/dist/utils/one-shot-replay.js +21 -0
  151. package/dist/utils/page-preview.d.ts +7 -0
  152. package/dist/utils/page-preview.js +9 -0
  153. package/dist/utils/pages.d.ts +2 -5
  154. package/dist/utils/pages.js +64 -33
  155. package/dist/utils/publish-form-data.d.ts +22 -0
  156. package/dist/utils/publish-form-data.js +26 -0
  157. package/dist/utils/publish-policy.d.ts +34 -4
  158. package/dist/utils/publish-policy.js +149 -62
  159. package/dist/utils/query-keys.d.ts +8 -10
  160. package/dist/utils/query-keys.js +14 -10
  161. package/dist/utils/runtime-paths.d.ts +3 -0
  162. package/dist/utils/runtime-paths.js +7 -0
  163. package/dist/utils/secure-local-file.d.ts +73 -0
  164. package/dist/utils/secure-local-file.js +1373 -0
  165. package/dist/utils/space-config.d.ts +17 -4
  166. package/dist/utils/space-config.js +151 -8
  167. package/dist/utils/static-runtime-policy.d.ts +5 -0
  168. package/dist/utils/static-runtime-policy.js +54 -10
  169. package/dist/utils/storage-policy.d.ts +20 -0
  170. package/dist/utils/storage-policy.fixtures.json +174 -0
  171. package/dist/utils/storage-policy.js +193 -0
  172. package/dist/utils/upload-session.d.ts +15 -1
  173. package/dist/utils/upload-session.js +68 -2
  174. package/dist/utils/version-file-browser.d.ts +13 -0
  175. package/dist/utils/version-file-browser.js +59 -0
  176. package/package.json +20 -1
  177. package/dist/contracts/mounts.d.ts +0 -142
  178. package/dist/contracts/mounts.js +0 -56
  179. package/dist/utils/access-grant.d.ts +0 -14
  180. package/dist/utils/access-grant.js +0 -88
  181. package/dist/utils/access-match.d.ts +0 -46
  182. package/dist/utils/access-match.fixtures.json +0 -513
  183. package/dist/utils/access-match.js +0 -312
  184. package/dist/utils/access-verdict.fixtures.json +0 -421
  185. package/dist/utils/asset-fingerprint.d.ts +0 -53
  186. package/dist/utils/asset-fingerprint.js +0 -574
  187. package/dist/utils/sf-config-v1.d.ts +0 -2
  188. package/dist/utils/sf-config-v1.fixtures.json +0 -9
  189. package/dist/utils/sf-config-v1.js +0 -551
@@ -1,1270 +1,560 @@
1
1
  import { z } from "zod";
2
- export declare const grantSchema: z.ZodString;
3
- export type Grant = z.infer<typeof grantSchema>;
4
- export declare const GRANT_NAMESPACES: readonly ["email:", "team:", "sub-team:", "user:", "space:", "link:", "invite:", "svc:", "sso:", "ext:", "pw:"];
5
- export declare function isWellFormedGrant(grant: string): boolean;
6
- export declare const requiredGrantSchema: z.ZodString;
7
- export declare const SPACE_LEVELS: readonly ["viewer", "commenter", "editor", "admin"];
8
- export declare const spaceLevelSchema: z.ZodEnum<{
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
- admin: "admin";
15
+ manager: "manager";
13
16
  }>;
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";
26
- }>;
27
- export declare const OIDC_CONNECTION_DEFAULT_TTL_SECONDS: number;
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.ZodString;
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 accountPrincipalSchema: z.ZodString;
31
+ export type AccountPrincipal = z.infer<typeof accountPrincipalSchema>;
32
+ export declare const identifiedPrincipalSchema: z.ZodString;
33
+ export type IdentifiedPrincipal = z.infer<typeof identifiedPrincipalSchema>;
34
+ export declare const accessPrincipalSchema: z.ZodUnion<readonly [z.ZodLiteral<"anonymous">, z.ZodString]>;
35
+ export type AccessPrincipal = z.infer<typeof accessPrincipalSchema>;
36
+ export declare function accountPrincipal(userId: string): AccountPrincipal;
37
+ /** The user id behind an account principal; null for anonymous or malformed. */
38
+ export declare function accountPrincipalUserId(principal: string | undefined | null): string | null;
39
+ /**
40
+ * The identity an authority reference names on its own, if any. Credential
41
+ * classes name nobody. This is the ONE place a class maps to an identity: at
42
+ * the exchange that just authenticated it, never downstream.
43
+ */
44
+ export declare function principalForAuthority(reference: AuthorityReference): IdentifiedPrincipal | undefined;
45
+ export declare const personGrantSchema: z.ZodObject<{
48
46
  id: z.ZodString;
49
- teamId: z.ZodString;
50
- type: z.ZodEnum<{
51
- external: "external";
52
- oidc: "oidc";
47
+ scope: z.ZodString;
48
+ role: z.ZodEnum<{
49
+ viewer: "viewer";
50
+ commenter: "commenter";
51
+ editor: "editor";
52
+ manager: "manager";
53
53
  }>;
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
54
  createdAt: z.ZodString;
66
- revokedAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
67
- active: z.ZodBoolean;
55
+ revokedAt: z.ZodNullable<z.ZodString>;
68
56
  }, 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>>;
78
- }, z.core.$strip>;
79
- export declare const externalConnectionCreateSchema: z.ZodObject<{
80
- type: z.ZodLiteral<"external">;
81
- name: z.ZodString;
82
- authorizeUrl: z.ZodString;
83
- publicKeys: z.ZodArray<z.ZodObject<{
84
- kid: z.ZodString;
85
- publicKey: z.ZodString;
57
+ export type PersonGrant = z.infer<typeof personGrantSchema>;
58
+ export declare const spacePersonStatusSchema: z.ZodEnum<{
59
+ revoked: "revoked";
60
+ pending: "pending";
61
+ accepted: "accepted";
62
+ }>;
63
+ export declare const spacePersonDisplayNameSchema: z.ZodString;
64
+ export declare function fallbackSpacePersonDisplayName(personId: string): string;
65
+ export declare const spacePersonSchema: z.ZodObject<{
66
+ id: z.ZodString;
67
+ spaceId: z.ZodString;
68
+ displayName: z.ZodString;
69
+ email: z.ZodNullable<z.ZodString>;
70
+ status: z.ZodEnum<{
71
+ revoked: "revoked";
72
+ pending: "pending";
73
+ accepted: "accepted";
74
+ }>;
75
+ grants: z.ZodArray<z.ZodObject<{
76
+ id: z.ZodString;
77
+ scope: z.ZodString;
78
+ role: z.ZodEnum<{
79
+ viewer: "viewer";
80
+ commenter: "commenter";
81
+ editor: "editor";
82
+ manager: "manager";
83
+ }>;
84
+ createdAt: z.ZodString;
85
+ revokedAt: z.ZodNullable<z.ZodString>;
86
86
  }, z.core.$strip>>;
87
- sessionTtlSeconds: z.ZodOptional<z.ZodNumber>;
88
- guestEmailDomains: z.ZodOptional<z.ZodArray<z.ZodString>>;
87
+ invitedBy: z.ZodNullable<z.ZodString>;
88
+ inviteExpiresAt: z.ZodNullable<z.ZodString>;
89
+ acceptedAt: z.ZodNullable<z.ZodString>;
90
+ revokedAt: z.ZodNullable<z.ZodString>;
91
+ createdAt: z.ZodString;
89
92
  }, z.core.$strip>;
90
- export declare const accessConnectionCreateSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
91
- type: z.ZodLiteral<"oidc">;
92
- name: z.ZodString;
93
- issuer: z.ZodString;
94
- clientId: z.ZodString;
95
- clientSecret: z.ZodString;
96
- sessionTtlSeconds: z.ZodOptional<z.ZodNumber>;
97
- guestEmailDomains: z.ZodOptional<z.ZodArray<z.ZodString>>;
98
- }, z.core.$strip>, z.ZodObject<{
99
- type: z.ZodLiteral<"external">;
100
- name: z.ZodString;
101
- authorizeUrl: z.ZodString;
102
- publicKeys: z.ZodArray<z.ZodObject<{
103
- kid: z.ZodString;
104
- publicKey: z.ZodString;
93
+ export type SpacePerson = z.infer<typeof spacePersonSchema>;
94
+ export declare const inheritedTeamAccessSchema: z.ZodObject<{
95
+ teamId: z.ZodString;
96
+ teamName: z.ZodString;
97
+ ruleScopes: z.ZodArray<z.ZodString>;
98
+ members: z.ZodArray<z.ZodObject<{
99
+ membershipId: z.ZodString;
100
+ userId: z.ZodString;
101
+ displayName: z.ZodString;
102
+ email: z.ZodString;
103
+ teamRole: z.ZodString;
104
+ role: z.ZodLiteral<"editor">;
105
105
  }, 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
106
  }, z.core.$strip>;
123
- export type AccessConnectionUpdate = z.infer<typeof accessConnectionUpdateSchema>;
124
- export declare const accessConnectionRevokeResultSchema: z.ZodObject<{
125
- connection: z.ZodObject<{
107
+ export type InheritedTeamAccess = z.infer<typeof inheritedTeamAccessSchema>;
108
+ export declare const spacePeopleListSchema: z.ZodObject<{
109
+ people: z.ZodArray<z.ZodObject<{
126
110
  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
111
  spaceId: z.ZodString;
149
- ruleId: z.ZodString;
150
- }, z.core.$strip>>>;
151
- }, z.core.$strip>;
152
- export type AccessConnectionRevokeResult = z.infer<typeof accessConnectionRevokeResultSchema>;
153
- export declare const passwordAcquireSchema: z.ZodObject<{
154
- type: z.ZodLiteral<"password">;
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";
112
+ displayName: z.ZodString;
113
+ email: z.ZodNullable<z.ZodString>;
114
+ status: z.ZodEnum<{
115
+ revoked: "revoked";
116
+ pending: "pending";
117
+ accepted: "accepted";
195
118
  }>;
196
- username: z.ZodOptional<z.ZodString>;
197
- }, z.core.$strip>, z.ZodObject<{
198
- type: z.ZodLiteral<"login">;
199
- url: z.ZodString;
200
- label: z.ZodOptional<z.ZodString>;
201
- }, z.core.$strip>], "type">>>;
202
- }, z.core.$strip>;
203
- export type RuleAuth = z.infer<typeof ruleAuthSchema>;
204
- export declare const ruleMatchSchema: z.ZodObject<{
205
- host: z.ZodOptional<z.ZodString>;
206
- hostPattern: z.ZodOptional<z.ZodString>;
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;
119
+ grants: z.ZodArray<z.ZodObject<{
120
+ id: z.ZodString;
121
+ scope: z.ZodString;
122
+ role: z.ZodEnum<{
123
+ viewer: "viewer";
124
+ commenter: "commenter";
125
+ editor: "editor";
126
+ manager: "manager";
127
+ }>;
128
+ createdAt: z.ZodString;
129
+ revokedAt: z.ZodNullable<z.ZodString>;
243
130
  }, z.core.$strip>>;
131
+ invitedBy: z.ZodNullable<z.ZodString>;
132
+ inviteExpiresAt: z.ZodNullable<z.ZodString>;
133
+ acceptedAt: z.ZodNullable<z.ZodString>;
134
+ revokedAt: z.ZodNullable<z.ZodString>;
135
+ createdAt: z.ZodString;
244
136
  }, z.core.$strip>>;
245
- effect: z.ZodEnum<{
246
- allow: "allow";
247
- deny: "deny";
248
- challenge: "challenge";
249
- }>;
250
- auth: z.ZodOptional<z.ZodObject<{
251
- requiredGrants: z.ZodArray<z.ZodString>;
252
- issuers: z.ZodOptional<z.ZodArray<z.ZodObject<{
253
- kid: z.ZodString;
254
- alg: z.ZodLiteral<"EdDSA">;
255
- publicKey: z.ZodString;
256
- grantNamespaces: z.ZodArray<z.ZodString>;
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">>>;
137
+ inheritedTeamAccess: z.ZodNullable<z.ZodObject<{
138
+ teamId: z.ZodString;
139
+ teamName: z.ZodString;
140
+ ruleScopes: z.ZodArray<z.ZodString>;
141
+ members: z.ZodArray<z.ZodObject<{
142
+ membershipId: z.ZodString;
143
+ userId: z.ZodString;
144
+ displayName: z.ZodString;
145
+ email: z.ZodString;
146
+ teamRole: z.ZodString;
147
+ role: z.ZodLiteral<"editor">;
148
+ }, z.core.$strip>>;
271
149
  }, 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
- }, z.core.$strip>;
283
- export type RuntimeRule = z.infer<typeof runtimeRuleSchema>;
284
- export declare const ACCESS_TOKEN_KID = "spacefast-runtime-v1";
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
150
  }, 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<{
151
+ export type SpacePeopleList = z.infer<typeof spacePeopleListSchema>;
152
+ export declare const accessShareLinkSchema: z.ZodObject<{
344
153
  id: z.ZodString;
345
154
  spaceId: z.ZodString;
346
- label: z.ZodDefault<z.ZodNullable<z.ZodString>>;
347
- path: z.ZodString;
348
- createdBy: z.ZodDefault<z.ZodNullable<z.ZodString>>;
349
- expiresAt: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
155
+ grantId: z.ZodString;
156
+ revision: z.ZodNumber;
157
+ name: z.ZodString;
158
+ landingPath: z.ZodString;
159
+ resources: z.ZodObject<{
160
+ include: z.ZodArray<z.ZodString>;
161
+ exclude: z.ZodDefault<z.ZodArray<z.ZodString>>;
162
+ }, z.core.$strict>;
163
+ capabilities: z.ZodArray<z.ZodEnum<{
164
+ "page.view": "page.view";
165
+ "comments.read": "comments.read";
166
+ "comments.write": "comments.write";
167
+ }>>;
168
+ constraints: z.ZodObject<{
169
+ notBefore: z.ZodOptional<z.ZodString>;
170
+ expiresAt: z.ZodOptional<z.ZodString>;
171
+ maxUses: z.ZodOptional<z.ZodNumber>;
172
+ requireVerifiedEmail: z.ZodOptional<z.ZodBoolean>;
173
+ network: z.ZodOptional<z.ZodObject<{
174
+ ipCidrs: z.ZodOptional<z.ZodArray<z.ZodString>>;
175
+ countries: z.ZodOptional<z.ZodArray<z.ZodString>>;
176
+ excludedCountries: z.ZodOptional<z.ZodArray<z.ZodString>>;
177
+ excludedUserAgentSubstrings: z.ZodOptional<z.ZodArray<z.ZodString>>;
178
+ }, z.core.$strict>>;
179
+ }, z.core.$strict>;
180
+ target: z.ZodDiscriminatedUnion<[z.ZodObject<{
181
+ kind: z.ZodLiteral<"live">;
182
+ }, z.core.$strict>, z.ZodObject<{
183
+ kind: z.ZodLiteral<"version">;
184
+ versionId: z.ZodString;
185
+ }, z.core.$strict>, z.ZodObject<{
186
+ kind: z.ZodLiteral<"branch">;
187
+ branch: z.ZodString;
188
+ }, z.core.$strict>, z.ZodObject<{
189
+ kind: z.ZodLiteral<"all_versions">;
190
+ }, z.core.$strict>], "kind">;
191
+ createdBy: z.ZodNullable<z.ZodString>;
192
+ openCount: z.ZodNumber;
193
+ lastUsedAt: z.ZodNullable<z.ZodString>;
194
+ revokedAt: z.ZodNullable<z.ZodString>;
350
195
  createdAt: z.ZodString;
351
- lastUsedAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
352
- useCount: z.ZodDefault<z.ZodNumber>;
353
196
  active: z.ZodBoolean;
354
197
  }, z.core.$strip>;
355
- export type ShareLink = z.infer<typeof shareLinkSchema>;
356
- export declare const shareLinkCreateSchema: z.ZodObject<{
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<{
198
+ export type AccessShareLink = z.infer<typeof accessShareLinkSchema>;
199
+ export declare const accessShareLinkWithUrlSchema: z.ZodObject<{
363
200
  id: z.ZodString;
364
201
  spaceId: z.ZodString;
365
- label: z.ZodDefault<z.ZodNullable<z.ZodString>>;
366
- path: z.ZodString;
367
- createdBy: z.ZodDefault<z.ZodNullable<z.ZodString>>;
368
- expiresAt: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
202
+ grantId: z.ZodString;
203
+ revision: z.ZodNumber;
204
+ name: z.ZodString;
205
+ landingPath: z.ZodString;
206
+ resources: z.ZodObject<{
207
+ include: z.ZodArray<z.ZodString>;
208
+ exclude: z.ZodDefault<z.ZodArray<z.ZodString>>;
209
+ }, z.core.$strict>;
210
+ capabilities: z.ZodArray<z.ZodEnum<{
211
+ "page.view": "page.view";
212
+ "comments.read": "comments.read";
213
+ "comments.write": "comments.write";
214
+ }>>;
215
+ constraints: z.ZodObject<{
216
+ notBefore: z.ZodOptional<z.ZodString>;
217
+ expiresAt: z.ZodOptional<z.ZodString>;
218
+ maxUses: z.ZodOptional<z.ZodNumber>;
219
+ requireVerifiedEmail: z.ZodOptional<z.ZodBoolean>;
220
+ network: z.ZodOptional<z.ZodObject<{
221
+ ipCidrs: z.ZodOptional<z.ZodArray<z.ZodString>>;
222
+ countries: z.ZodOptional<z.ZodArray<z.ZodString>>;
223
+ excludedCountries: z.ZodOptional<z.ZodArray<z.ZodString>>;
224
+ excludedUserAgentSubstrings: z.ZodOptional<z.ZodArray<z.ZodString>>;
225
+ }, z.core.$strict>>;
226
+ }, z.core.$strict>;
227
+ target: z.ZodDiscriminatedUnion<[z.ZodObject<{
228
+ kind: z.ZodLiteral<"live">;
229
+ }, z.core.$strict>, z.ZodObject<{
230
+ kind: z.ZodLiteral<"version">;
231
+ versionId: z.ZodString;
232
+ }, z.core.$strict>, z.ZodObject<{
233
+ kind: z.ZodLiteral<"branch">;
234
+ branch: z.ZodString;
235
+ }, z.core.$strict>, z.ZodObject<{
236
+ kind: z.ZodLiteral<"all_versions">;
237
+ }, z.core.$strict>], "kind">;
238
+ createdBy: z.ZodNullable<z.ZodString>;
239
+ openCount: z.ZodNumber;
240
+ lastUsedAt: z.ZodNullable<z.ZodString>;
241
+ revokedAt: z.ZodNullable<z.ZodString>;
369
242
  createdAt: z.ZodString;
370
- lastUsedAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
371
- useCount: z.ZodDefault<z.ZodNumber>;
372
243
  active: z.ZodBoolean;
373
244
  url: z.ZodString;
374
245
  }, z.core.$strip>;
375
- export type ShareLinkWithUrl = z.infer<typeof shareLinkWithUrlSchema>;
376
- export declare const SPACE_VISIBILITIES: readonly ["public", "restricted"];
377
- export declare const spaceVisibilitySchema: z.ZodEnum<{
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<{
453
- expired: "expired";
454
- pending: "pending";
455
- accepted: "accepted";
456
- revoked: "revoked";
457
- }>;
458
- export type InviteStatus = z.infer<typeof inviteStatusSchema>;
459
- export declare const spaceInviteSchema: z.ZodObject<{
246
+ export type AccessShareLinkWithUrl = z.infer<typeof accessShareLinkWithUrlSchema>;
247
+ export declare const accessShareLinkReadSchema: z.ZodObject<{
460
248
  id: z.ZodString;
461
249
  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>>;
250
+ grantId: z.ZodString;
251
+ revision: z.ZodNumber;
252
+ name: z.ZodString;
253
+ landingPath: z.ZodString;
254
+ resources: z.ZodObject<{
255
+ include: z.ZodArray<z.ZodString>;
256
+ exclude: z.ZodDefault<z.ZodArray<z.ZodString>>;
257
+ }, z.core.$strict>;
258
+ capabilities: z.ZodArray<z.ZodEnum<{
259
+ "page.view": "page.view";
260
+ "comments.read": "comments.read";
261
+ "comments.write": "comments.write";
262
+ }>>;
263
+ constraints: z.ZodObject<{
264
+ notBefore: z.ZodOptional<z.ZodString>;
265
+ expiresAt: z.ZodOptional<z.ZodString>;
266
+ maxUses: z.ZodOptional<z.ZodNumber>;
267
+ requireVerifiedEmail: z.ZodOptional<z.ZodBoolean>;
268
+ network: z.ZodOptional<z.ZodObject<{
269
+ ipCidrs: z.ZodOptional<z.ZodArray<z.ZodString>>;
270
+ countries: z.ZodOptional<z.ZodArray<z.ZodString>>;
271
+ excludedCountries: z.ZodOptional<z.ZodArray<z.ZodString>>;
272
+ excludedUserAgentSubstrings: z.ZodOptional<z.ZodArray<z.ZodString>>;
273
+ }, z.core.$strict>>;
274
+ }, z.core.$strict>;
275
+ target: z.ZodDiscriminatedUnion<[z.ZodObject<{
276
+ kind: z.ZodLiteral<"live">;
277
+ }, z.core.$strict>, z.ZodObject<{
278
+ kind: z.ZodLiteral<"version">;
279
+ versionId: z.ZodString;
280
+ }, z.core.$strict>, z.ZodObject<{
281
+ kind: z.ZodLiteral<"branch">;
282
+ branch: z.ZodString;
283
+ }, z.core.$strict>, z.ZodObject<{
284
+ kind: z.ZodLiteral<"all_versions">;
285
+ }, z.core.$strict>], "kind">;
286
+ createdBy: z.ZodNullable<z.ZodString>;
287
+ openCount: z.ZodNumber;
288
+ lastUsedAt: z.ZodNullable<z.ZodString>;
289
+ revokedAt: z.ZodNullable<z.ZodString>;
473
290
  createdAt: z.ZodString;
474
- lastViewedAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
291
+ active: z.ZodBoolean;
292
+ url: z.ZodNullable<z.ZodString>;
475
293
  }, 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>;
294
+ export type AccessShareLinkRead = z.infer<typeof accessShareLinkReadSchema>;
295
+ export declare const publishedAccessSchema: z.ZodObject<{
296
+ url: z.ZodString;
297
+ token: z.ZodString;
298
+ expiresAt: z.ZodNullable<z.ZodString>;
480
299
  }, z.core.$strip>;
481
- export declare const ACCESS_REQUEST_STATUSES: readonly ["pending", "approved", "denied"];
482
- export declare const accessRequestStatusSchema: z.ZodEnum<{
300
+ export type PublishedAccess = z.infer<typeof publishedAccessSchema>;
301
+ export declare const canonicalAccessRequestStatusSchema: z.ZodEnum<{
302
+ canceled: "canceled";
303
+ expired: "expired";
483
304
  pending: "pending";
305
+ verification_pending: "verification_pending";
484
306
  approved: "approved";
485
307
  denied: "denied";
486
308
  }>;
487
- export declare const accessRequestSchema: z.ZodObject<{
309
+ export declare const accessRequestRoleSchema: z.ZodEnum<{
310
+ viewer: "viewer";
311
+ commenter: "commenter";
312
+ editor: "editor";
313
+ manager: "manager";
314
+ }>;
315
+ export type AccessRequestRole = z.infer<typeof accessRequestRoleSchema>;
316
+ export declare const canonicalAccessRequestSchema: z.ZodObject<{
488
317
  id: z.ZodString;
489
318
  spaceId: z.ZodString;
319
+ displayName: z.ZodNullable<z.ZodString>;
490
320
  email: z.ZodString;
491
- userId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
492
- host: z.ZodString;
493
- path: z.ZodString;
494
- message: z.ZodDefault<z.ZodNullable<z.ZodString>>;
321
+ scope: z.ZodString;
322
+ requestedRole: z.ZodEnum<{
323
+ viewer: "viewer";
324
+ commenter: "commenter";
325
+ editor: "editor";
326
+ manager: "manager";
327
+ }>;
328
+ message: z.ZodNullable<z.ZodString>;
495
329
  status: z.ZodEnum<{
330
+ canceled: "canceled";
331
+ expired: "expired";
496
332
  pending: "pending";
333
+ verification_pending: "verification_pending";
497
334
  approved: "approved";
498
335
  denied: "denied";
499
336
  }>;
500
- resolvedBy: z.ZodDefault<z.ZodNullable<z.ZodString>>;
501
- resolvedAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
337
+ emailVerifiedAt: z.ZodNullable<z.ZodString>;
338
+ resolvedBy: z.ZodNullable<z.ZodString>;
339
+ resolvedAt: z.ZodNullable<z.ZodString>;
502
340
  createdAt: z.ZodString;
503
- }, z.core.$strip>;
504
- export type AccessRequest = z.infer<typeof accessRequestSchema>;
505
- export declare const accessRequestCreateSchema: z.ZodObject<{
506
- space: z.ZodString;
507
- host: z.ZodString;
508
- path: z.ZodDefault<z.ZodString>;
509
- nonce: z.ZodOptional<z.ZodString>;
510
- message: z.ZodOptional<z.ZodString>;
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";
341
+ updatedAt: z.ZodString;
342
+ }, z.core.$strip>;
343
+ export type CanonicalAccessRequest = z.infer<typeof canonicalAccessRequestSchema>;
344
+ export declare const accessFenceKindValues: readonly ["none", "ownership", "exposure"];
345
+ export declare const accessFenceKindSchema: z.ZodEnum<{
346
+ none: "none";
347
+ ownership: "ownership";
348
+ exposure: "exposure";
522
349
  }>;
523
- export type FileShareAudience = z.infer<typeof fileShareAudienceSchema>;
524
- export declare const fileShareSchema: z.ZodObject<{
525
- path: z.ZodString;
526
- audience: z.ZodEnum<{
527
- public: "public";
528
- people: "people";
529
- }>;
530
- grants: z.ZodDefault<z.ZodArray<z.ZodString>>;
531
- patterns: z.ZodDefault<z.ZodArray<z.ZodString>>;
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;
350
+ export type AccessFenceKind = z.infer<typeof accessFenceKindSchema>;
351
+ export declare const ACCESS_GRANT_SCOPE_LIMIT = 32;
352
+ export declare const linkCapabilitiesSchema: z.ZodArray<z.ZodEnum<{
353
+ "page.view": "page.view";
354
+ "comments.read": "comments.read";
355
+ "comments.write": "comments.write";
356
+ }>>;
357
+ export type LinkCapabilities = z.infer<typeof linkCapabilitiesSchema>;
358
+ export declare const spacePersonInviteWriteSchema: z.ZodObject<{
544
359
  email: z.ZodString;
545
- message: z.ZodDefault<z.ZodNullable<z.ZodString>>;
546
- createdAt: z.ZodString;
547
- host: z.ZodDefault<z.ZodNullable<z.ZodString>>;
548
- path: z.ZodDefault<z.ZodNullable<z.ZodString>>;
549
- }, z.core.$strip>;
550
- export type SharingRequest = z.infer<typeof sharingRequestSchema>;
551
- export declare const SERVICE_TOKEN_DEFAULT_TTL_SECONDS: number;
552
- export declare const SERVICE_TOKEN_AUDIENCES: readonly ["viewers"];
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
- }>>>;
360
+ grants: z.ZodArray<z.ZodObject<{
361
+ scope: z.ZodString;
362
+ role: z.ZodEnum<{
363
+ viewer: "viewer";
364
+ commenter: "commenter";
365
+ editor: "editor";
366
+ manager: "manager";
367
+ }>;
586
368
  }, z.core.$strip>>;
587
369
  }, z.core.$strip>;
588
- export type ServiceTokenCreate = z.infer<typeof serviceTokenCreateSchema>;
589
- export declare const serviceTokenWithSecretSchema: z.ZodObject<{
590
- id: z.ZodString;
591
- teamId: z.ZodString;
592
- spaceId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
593
- name: z.ZodString;
594
- actsAs: z.ZodObject<{
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";
370
+ export declare const personGrantWriteSchema: z.ZodObject<{
371
+ scope: z.ZodString;
372
+ role: z.ZodEnum<{
373
+ viewer: "viewer";
374
+ commenter: "commenter";
375
+ editor: "editor";
376
+ manager: "manager";
616
377
  }>;
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
378
  }, 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
- }, z.core.$strip>;
696
- export type SpaceFirewall = z.infer<typeof spaceFirewallSchema>;
697
- export declare const TEAM_PREVIEW_LOCK_LIVE_RULE_ID = "team-preview-lock:live";
698
- export declare const TEAM_PREVIEW_LOCK_RULE_ID = "team-preview-lock";
699
- export declare function teamPreviewLockRules(teamId: string): RuntimeRule[];
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<{
379
+ export declare const spacePersonGrantSetWriteSchema: z.ZodObject<{
380
+ grants: z.ZodArray<z.ZodObject<{
381
+ scope: z.ZodString;
382
+ role: z.ZodEnum<{
719
383
  viewer: "viewer";
720
384
  commenter: "commenter";
721
385
  editor: "editor";
722
- admin: "admin";
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";
386
+ manager: "manager";
737
387
  }>;
738
- name: z.ZodDefault<z.ZodNullable<z.ZodString>>;
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>;
388
+ }, z.core.$strip>>;
774
389
  }, z.core.$strip>;
775
- export type SpaceSharing = z.infer<typeof spaceSharingSchema>;
776
- export declare const channelSchema: z.ZodObject<{
390
+ export declare const accessShareLinkCreateSchema: z.ZodObject<{
777
391
  name: z.ZodString;
778
- versionId: z.ZodString;
779
- history: z.ZodDefault<z.ZodArray<z.ZodObject<{
780
- versionId: z.ZodString;
781
- at: z.ZodString;
782
- }, z.core.$strip>>>;
783
- }, z.core.$strip>;
784
- export type Channel = z.infer<typeof channelSchema>;
785
- export declare const servingConfigSchema: z.ZodObject<{
786
- index: z.ZodOptional<z.ZodString>;
787
- fallback: z.ZodOptional<z.ZodString>;
788
- listing: z.ZodOptional<z.ZodBoolean>;
789
- }, z.core.$strip>;
790
- export declare const policyDocSchema: z.ZodObject<{
791
- rules: z.ZodDefault<z.ZodArray<z.ZodObject<{
792
- id: z.ZodOptional<z.ZodString>;
793
- match: z.ZodDefault<z.ZodObject<{
794
- host: z.ZodOptional<z.ZodString>;
795
- hostPattern: z.ZodOptional<z.ZodString>;
796
- hostTemplate: z.ZodOptional<z.ZodString>;
797
- pathPattern: z.ZodOptional<z.ZodString>;
798
- channel: z.ZodOptional<z.ZodString>;
799
- ipCidrs: z.ZodOptional<z.ZodArray<z.ZodString>>;
800
- agent: z.ZodOptional<z.ZodString>;
801
- country: z.ZodOptional<z.ZodString>;
802
- countryNotIn: z.ZodOptional<z.ZodArray<z.ZodString>>;
803
- header: z.ZodOptional<z.ZodObject<{
804
- name: z.ZodString;
805
- value: z.ZodString;
806
- }, z.core.$strip>>;
807
- }, z.core.$strip>>;
808
- effect: z.ZodEnum<{
809
- allow: "allow";
810
- deny: "deny";
811
- challenge: "challenge";
812
- }>;
813
- auth: z.ZodOptional<z.ZodObject<{
814
- requiredGrants: z.ZodArray<z.ZodString>;
815
- issuers: z.ZodOptional<z.ZodArray<z.ZodObject<{
816
- kid: z.ZodString;
817
- alg: z.ZodLiteral<"EdDSA">;
818
- publicKey: z.ZodString;
819
- grantNamespaces: z.ZodArray<z.ZodString>;
820
- }, z.core.$strip>>>;
821
- acquire: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
822
- type: z.ZodLiteral<"password">;
823
- ref: z.ZodString;
824
- transport: z.ZodEnum<{
825
- basic: "basic";
826
- form: "form";
827
- }>;
828
- username: z.ZodOptional<z.ZodString>;
829
- }, z.core.$strip>, z.ZodObject<{
830
- type: z.ZodLiteral<"login">;
831
- url: z.ZodString;
832
- label: z.ZodOptional<z.ZodString>;
833
- }, z.core.$strip>], "type">>>;
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>;
392
+ landingPath: z.ZodDefault<z.ZodString>;
393
+ resources: z.ZodObject<{
394
+ include: z.ZodArray<z.ZodString>;
395
+ exclude: z.ZodDefault<z.ZodArray<z.ZodString>>;
396
+ }, z.core.$strict>;
397
+ capabilities: z.ZodDefault<z.ZodArray<z.ZodEnum<{
398
+ "page.view": "page.view";
399
+ "comments.read": "comments.read";
400
+ "comments.write": "comments.write";
401
+ }>>>;
402
+ constraints: z.ZodDefault<z.ZodObject<{
403
+ notBefore: z.ZodOptional<z.ZodString>;
404
+ expiresAt: z.ZodOptional<z.ZodString>;
405
+ maxUses: z.ZodOptional<z.ZodNumber>;
406
+ requireVerifiedEmail: z.ZodOptional<z.ZodBoolean>;
407
+ network: z.ZodOptional<z.ZodObject<{
923
408
  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>;
409
+ countries: z.ZodOptional<z.ZodArray<z.ZodString>>;
410
+ excludedCountries: z.ZodOptional<z.ZodArray<z.ZodString>>;
411
+ excludedUserAgentSubstrings: z.ZodOptional<z.ZodArray<z.ZodString>>;
412
+ }, z.core.$strict>>;
413
+ }, z.core.$strict>>;
414
+ target: z.ZodDefault<z.ZodDiscriminatedUnion<[z.ZodObject<{
415
+ kind: z.ZodLiteral<"live">;
416
+ }, z.core.$strict>, z.ZodObject<{
417
+ kind: z.ZodLiteral<"version">;
418
+ versionId: z.ZodString;
419
+ }, z.core.$strict>, z.ZodObject<{
420
+ kind: z.ZodLiteral<"branch">;
421
+ branch: z.ZodString;
422
+ }, z.core.$strict>, z.ZodObject<{
423
+ kind: z.ZodLiteral<"all_versions">;
424
+ }, z.core.$strict>], "kind">>;
425
+ }, z.core.$strip>;
426
+ export declare const accessShareLinkUpdateSchema: z.ZodObject<{
427
+ expectedRevision: z.ZodNumber;
428
+ name: z.ZodOptional<z.ZodString>;
429
+ landingPath: z.ZodOptional<z.ZodString>;
430
+ resources: z.ZodOptional<z.ZodObject<{
431
+ include: z.ZodArray<z.ZodString>;
432
+ exclude: z.ZodDefault<z.ZodArray<z.ZodString>>;
433
+ }, z.core.$strict>>;
434
+ capabilities: z.ZodOptional<z.ZodArray<z.ZodEnum<{
435
+ "page.view": "page.view";
436
+ "comments.read": "comments.read";
437
+ "comments.write": "comments.write";
438
+ }>>>;
439
+ constraints: z.ZodOptional<z.ZodObject<{
440
+ notBefore: z.ZodOptional<z.ZodNullable<z.ZodString>>;
441
+ expiresAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
442
+ maxUses: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
443
+ requireVerifiedEmail: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
444
+ network: z.ZodOptional<z.ZodNullable<z.ZodObject<{
445
+ ipCidrs: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
446
+ countries: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
447
+ excludedCountries: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
448
+ excludedUserAgentSubstrings: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
449
+ }, z.core.$strict>>>;
450
+ }, z.core.$strict>>;
451
+ target: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
452
+ kind: z.ZodLiteral<"live">;
453
+ }, z.core.$strict>, z.ZodObject<{
454
+ kind: z.ZodLiteral<"version">;
455
+ versionId: z.ZodString;
456
+ }, z.core.$strict>, z.ZodObject<{
457
+ kind: z.ZodLiteral<"branch">;
458
+ branch: z.ZodString;
459
+ }, z.core.$strict>, z.ZodObject<{
460
+ kind: z.ZodLiteral<"all_versions">;
461
+ }, z.core.$strict>], "kind">>;
462
+ }, z.core.$strip>;
463
+ export declare const canonicalAccessRequestCreateSchema: z.ZodObject<{
464
+ email: z.ZodString;
465
+ scope: z.ZodString;
466
+ requestedRole: z.ZodDefault<z.ZodEnum<{
467
+ viewer: "viewer";
468
+ commenter: "commenter";
469
+ editor: "editor";
470
+ manager: "manager";
471
+ }>>;
472
+ message: z.ZodOptional<z.ZodString>;
971
473
  }, z.core.$strip>;
972
- export type SpaceAccessRulesWrite = z.infer<typeof spaceAccessRulesWriteSchema>;
973
- export declare const spaceAccessRulesReadSchema: z.ZodObject<{
974
- rules: z.ZodDefault<z.ZodArray<z.ZodObject<{
975
- id: z.ZodOptional<z.ZodString>;
976
- match: z.ZodDefault<z.ZodObject<{
977
- host: z.ZodOptional<z.ZodString>;
978
- hostPattern: z.ZodOptional<z.ZodString>;
979
- hostTemplate: z.ZodOptional<z.ZodString>;
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>;
474
+ export declare const canonicalAccessRequestApproveSchema: z.ZodObject<{
475
+ scope: z.ZodOptional<z.ZodString>;
476
+ role: z.ZodOptional<z.ZodEnum<{
477
+ viewer: "viewer";
478
+ commenter: "commenter";
479
+ editor: "editor";
480
+ manager: "manager";
481
+ }>>;
1031
482
  }, z.core.$strip>;
1032
- export type SpaceAccessRulesRead = z.infer<typeof spaceAccessRulesReadSchema>;
1033
- export declare const quickShareSchema: z.ZodObject<{
1034
- kind: z.ZodLiteral<"quick_share">;
483
+ export declare const openHandoffSchema: z.ZodObject<{
1035
484
  url: z.ZodString;
1036
485
  expiresAt: z.ZodString;
1037
- outcome: z.ZodEnum<{
1038
- created: "created";
1039
- reused: "reused";
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";
486
+ kind: z.ZodEnum<{
487
+ management: "management";
488
+ person: "person";
489
+ claim_preview: "claim_preview";
1047
490
  }>;
1048
491
  }, z.core.$strip>;
1049
- export type QuickShareDelete = z.infer<typeof quickShareDeleteSchema>;
1050
- export declare const enhancementsSchema: z.ZodObject<{
1051
- enabled: z.ZodBoolean;
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;
492
+ export declare const openLinkSchema: z.ZodObject<{
493
+ url: z.ZodString;
494
+ expiresAt: z.ZodNullable<z.ZodString>;
495
+ kind: z.ZodLiteral<"link">;
1057
496
  }, z.core.$strip>;
1058
- export type EnhancementsWrite = z.infer<typeof enhancementsWriteSchema>;
1059
- export declare const ruleSourceSchema: z.ZodEnum<{
1060
- cloud: "cloud";
1061
- file: "file";
1062
- platform: "platform";
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";
497
+ export declare const privateOpenSchema: z.ZodUnion<readonly [z.ZodObject<{
498
+ url: z.ZodString;
499
+ expiresAt: z.ZodNullable<z.ZodString>;
500
+ kind: z.ZodLiteral<"link">;
501
+ }, z.core.$strip>, z.ZodObject<{
502
+ url: z.ZodString;
503
+ expiresAt: z.ZodString;
504
+ kind: z.ZodEnum<{
505
+ management: "management";
506
+ person: "person";
507
+ claim_preview: "claim_preview";
1085
508
  }>;
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";
509
+ }, z.core.$strip>]>;
510
+ export declare const openHandoffCreateSchema: z.ZodObject<{
511
+ landingPath: z.ZodDefault<z.ZodString>;
512
+ targetHost: z.ZodOptional<z.ZodString>;
513
+ }, z.core.$strip>;
514
+ export type OpenHandoff = z.infer<typeof openHandoffSchema>;
515
+ export type OpenLink = z.infer<typeof openLinkSchema>;
516
+ export type PrivateOpen = z.infer<typeof privateOpenSchema>;
517
+ export declare const teamSpaceAccessDefaultSchema: z.ZodObject<{
518
+ newSpaceGrantPreset: z.ZodEnum<{
519
+ team: "team";
520
+ public: "public";
521
+ private: "private";
1122
522
  }>;
1123
- order: z.ZodNumber;
1124
523
  }, 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
- }, z.core.$strip>;
1199
- export type EffectivePolicy = z.infer<typeof effectivePolicySchema>;
1200
- export declare const accessSimulateResultSchema: z.ZodObject<{
1201
- verdict: z.ZodEnum<{
1202
- allow: "allow";
1203
- deny: "deny";
1204
- challenge: "challenge";
524
+ export declare const teamSpaceAccessDefaultWriteSchema: z.ZodObject<{
525
+ newSpaceGrantPreset: z.ZodEnum<{
526
+ team: "team";
527
+ public: "public";
528
+ private: "private";
1205
529
  }>;
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
530
  }, z.core.$strip>;
1270
- export type AccessSimulateResult = z.infer<typeof accessSimulateResultSchema>;
531
+ export declare const ACCESS_TOKEN_KID = "spacefast-runtime-v1";
532
+ export declare const ACCESS_TOKEN_ALG = "EdDSA";
533
+ export declare const RUNTIME_JWKS_WELL_KNOWN_FILENAME = "spacefast-runtime-jwks.json";
534
+ export declare const accessTokenPublicProfileSchema: z.ZodObject<{
535
+ name: z.ZodOptional<z.ZodString>;
536
+ username: z.ZodOptional<z.ZodString>;
537
+ avatar_url: z.ZodOptional<z.ZodURL>;
538
+ }, z.core.$strict>;
539
+ export type AccessTokenPublicProfile = z.infer<typeof accessTokenPublicProfileSchema>;
540
+ export declare const accessTokenPayloadSchema: z.ZodObject<{
541
+ sub: z.ZodString;
542
+ principal: z.ZodOptional<z.ZodString>;
543
+ authorities: z.ZodArray<z.ZodString>;
544
+ exp: z.ZodNumber;
545
+ nbf: z.ZodNumber;
546
+ iat: z.ZodNumber;
547
+ iss: z.ZodString;
548
+ aud: z.ZodString;
549
+ spaceId: z.ZodString;
550
+ sid: z.ZodString;
551
+ generation: z.ZodNumber;
552
+ emailVerified: z.ZodDefault<z.ZodBoolean>;
553
+ profile: z.ZodOptional<z.ZodObject<{
554
+ name: z.ZodOptional<z.ZodString>;
555
+ username: z.ZodOptional<z.ZodString>;
556
+ avatar_url: z.ZodOptional<z.ZodURL>;
557
+ }, z.core.$strict>>;
558
+ jti: z.ZodString;
559
+ }, z.core.$strip>;
560
+ export type AccessTokenPayload = z.infer<typeof accessTokenPayloadSchema>;