@spacefast/common 0.0.9 → 0.0.11
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/activity.d.ts +1 -1
- package/dist/contracts/activity.js +11 -6
- package/dist/contracts/annotations.d.ts +2 -0
- package/dist/contracts/annotations.js +2 -1
- package/dist/contracts/api-keys.d.ts +4 -0
- package/dist/contracts/api-keys.js +4 -0
- package/dist/contracts/archives.d.ts +2 -8
- package/dist/contracts/archives.js +3 -8
- package/dist/contracts/builds.d.ts +1 -0
- package/dist/contracts/builds.js +5 -0
- package/dist/contracts/comments.d.ts +309 -0
- package/dist/contracts/comments.js +200 -0
- package/dist/contracts/device-auth.d.ts +221 -1
- package/dist/contracts/device-auth.js +106 -4
- package/dist/contracts/device-team-scope.d.ts +10 -0
- package/dist/contracts/device-team-scope.js +17 -0
- package/dist/contracts/error-code-meta.d.ts +52 -0
- package/dist/contracts/error-code-meta.js +13 -0
- package/dist/contracts/error-codes.d.ts +1 -1
- package/dist/contracts/error-codes.js +13 -0
- package/dist/contracts/features.d.ts +37 -38
- package/dist/contracts/features.js +51 -59
- package/dist/contracts/generated-feature-launch-entries.d.ts +2 -2
- package/dist/contracts/generated-feature-launch-entries.js +6 -6
- package/dist/contracts/ids.d.ts +1 -1
- package/dist/contracts/ids.js +1 -1
- package/dist/contracts/oauth-resources.d.ts +7 -0
- package/dist/contracts/oauth-resources.js +10 -2
- package/dist/contracts/operations.d.ts +1 -3
- package/dist/contracts/operations.js +5 -1
- package/dist/contracts/pages.d.ts +70 -0
- package/dist/contracts/pages.js +89 -0
- package/dist/contracts/publishes.d.ts +5 -0
- package/dist/contracts/publishes.js +25 -8
- package/dist/contracts/resources.d.ts +14 -62
- package/dist/contracts/runtime-api.d.ts +13 -15
- package/dist/contracts/runtime-api.js +12 -70
- package/dist/contracts/space-config.d.ts +32 -90
- package/dist/contracts/space-config.js +49 -54
- package/dist/contracts/spaces.d.ts +47 -187
- package/dist/contracts/spaces.js +19 -3
- package/dist/contracts/superadmin-spaces.d.ts +14 -62
- package/dist/contracts/superadmin-teams.d.ts +79 -0
- package/dist/contracts/superadmin-teams.js +36 -0
- package/dist/contracts/superadmin.d.ts +2 -0
- package/dist/contracts/superadmin.js +1 -0
- package/dist/contracts/teams.d.ts +1 -0
- package/dist/contracts/teams.js +8 -0
- package/dist/contracts/theme-json.js +4 -5
- package/dist/dashboard-paths/index.d.ts +31 -0
- package/dist/dashboard-paths/index.js +80 -0
- package/dist/docs/agent-handoff-document.d.ts +15 -0
- package/dist/docs/agent-handoff-document.js +179 -0
- package/dist/docs/agent-setup.d.ts +12 -1
- package/dist/docs/agent-setup.js +30 -16
- package/dist/docs/catalog.d.ts +2 -2
- package/dist/docs/catalog.js +2 -2
- package/dist/docs/error-docs.js +52 -0
- package/dist/utils/asset-fingerprint.d.ts +53 -0
- package/dist/utils/asset-fingerprint.js +574 -0
- package/dist/utils/credential-policy.d.ts +5 -0
- package/dist/utils/credential-policy.js +31 -8
- package/dist/utils/pages.d.ts +53 -0
- package/dist/utils/pages.js +274 -0
- package/dist/utils/query-keys.d.ts +4 -3
- package/dist/utils/query-keys.js +4 -3
- package/dist/utils/space-config.d.ts +2 -2
- package/dist/utils/space-config.js +1 -1
- package/dist/utils/wpcom-auth-redirects.d.ts +0 -4
- package/dist/utils/wpcom-auth-redirects.js +0 -6
- package/dist/vocabulary.d.ts +2 -2
- package/package.json +6 -1
- package/dist/contracts/space-theme.d.ts +0 -25
- package/dist/contracts/space-theme.js +0 -49
- package/dist/utils/gate-theme.d.ts +0 -61
- package/dist/utils/gate-theme.js +0 -217
- package/dist/utils/space-theme.d.ts +0 -18
- package/dist/utils/space-theme.js +0 -98
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
export declare const ACTIVITY_EVENT_CODES: readonly ["space.created", "space.claimed", "feedback.lead_claim_pending", "space.transferred", "space.move_requested", "space.moved", "space.expired", "space.disabled", "space.enabled", "space.deleted", "space.config_updated", "space.password_updated", "site.provision_requested", "site.placement_hold_set", "site.placement_hold_cleared", "site.burst_toggled", "space.access_logout_all", "space.access_transfer_scrub", "space.access_operator_token", "space.sharing_updated", "space.share_link_created", "space.share_link_revoked", "space.invite_created", "space.invite_revoked", "space.access_request_created", "space.access_request_resolved", "space.firewall_updated", "team.access_defaults_updated", "team.service_token_created", "team.service_token_revoked", "team.access_connection_created", "team.access_connection_updated", "team.access_connection_revoked", "version.created", "version.ready", "version.warning", "version.failed", "version.expired", "version.canceled", "version.deleted", "version.retention_warning", "version.retention_deleted", "channel.promoted", "build.created", "build.succeeded", "build.failed", "build.canceled", "build.skipped", "domain.created", "domain.verified", "domain.verification_failed", "domain.control_lost", "domain.dns_updated", "domain.nameservers_updated", "domain.registration_purchased", "domain.registration_renewed", "domain.registration_expiring", "domain.registration_expired", "domain.transfer_in_started", "domain.transfer_out_started", "domain.deleted", "binding.created", "binding.activated", "binding.blocked", "binding.deleted", "transfer.requested", "transfer.confirmed", "transfer.completed", "transfer.canceled", "transfer.expired", "transfer.failed", "variable.updated", "variable.deleted", "api_key.created", "api_key.updated", "api_key.revoked", "webhook.created", "webhook.updated", "webhook.secret_rotated", "webhook.disabled", "webhook.deleted", "team.updated", "team.member_added", "team.member_removed", "team.member_role_updated", "team.builds_deploys_quota_exceeded", "tenant.past_due", "tenant.suspended", "tenant.reactivated", "tenant.deleted", "export.ready", "export.failed", "import.ready", "import.failed", "
|
|
2
|
+
export declare const ACTIVITY_EVENT_CODES: readonly ["space.created", "space.claimed", "feedback.lead_claim_pending", "space.transferred", "space.move_requested", "space.moved", "space.expired", "space.disabled", "space.enabled", "space.deleted", "space.config_updated", "space.slug_updated", "space.password_updated", "site.provision_requested", "site.placement_hold_set", "site.placement_hold_cleared", "site.burst_toggled", "space.access_logout_all", "space.access_transfer_scrub", "space.access_operator_token", "space.sharing_updated", "space.share_link_created", "space.share_link_revoked", "space.invite_created", "space.invite_revoked", "space.access_request_created", "space.access_request_resolved", "space.firewall_updated", "team.access_defaults_updated", "team.service_token_created", "team.service_token_revoked", "team.access_connection_created", "team.access_connection_updated", "team.access_connection_revoked", "version.created", "version.ready", "version.warning", "version.failed", "version.expired", "version.canceled", "version.deleted", "version.retention_warning", "version.retention_deleted", "channel.promoted", "build.created", "build.succeeded", "build.failed", "build.canceled", "build.skipped", "domain.created", "domain.verified", "domain.verification_failed", "domain.control_lost", "domain.dns_updated", "domain.nameservers_updated", "domain.registration_purchased", "domain.registration_renewed", "domain.registration_expiring", "domain.registration_expired", "domain.transfer_in_started", "domain.transfer_out_started", "domain.deleted", "binding.created", "binding.activated", "binding.blocked", "binding.deleted", "transfer.requested", "transfer.confirmed", "transfer.completed", "transfer.canceled", "transfer.expired", "transfer.failed", "variable.updated", "variable.deleted", "api_key.created", "api_key.updated", "api_key.revoked", "agent_handoff.created", "agent_handoff.redeemed", "agent_handoff.revoked", "webhook.created", "webhook.updated", "webhook.secret_rotated", "webhook.disabled", "webhook.deleted", "team.updated", "team.slug_updated", "team.member_added", "team.member_removed", "team.member_role_updated", "team.builds_deploys_quota_exceeded", "tenant.past_due", "tenant.suspended", "tenant.reactivated", "tenant.deleted", "export.ready", "export.failed", "import.ready", "import.failed", "comment.token_minted", "comment.created", "comment.reply_created", "comment.archived", "comment.unarchived", "abuse_report.created", "abuse_report.updated", "claim.blocked_takedown", "user.created", "user.signed_in", "user.deleted", "user.impersonation_started", "user.impersonation_stopped", "user.two_factor_enabled", "user.two_factor_disabled"];
|
|
3
3
|
export type ActivityEventCode = (typeof ACTIVITY_EVENT_CODES)[number];
|
|
4
4
|
export declare function isActivityEventCode(value: string): value is ActivityEventCode;
|
|
5
5
|
export declare function isValidActivityEventFilter(filter: string): boolean;
|
|
@@ -18,6 +18,7 @@ export const ACTIVITY_EVENT_CODES = [
|
|
|
18
18
|
"space.enabled",
|
|
19
19
|
"space.deleted",
|
|
20
20
|
"space.config_updated",
|
|
21
|
+
"space.slug_updated",
|
|
21
22
|
"space.password_updated",
|
|
22
23
|
// site
|
|
23
24
|
"site.provision_requested",
|
|
@@ -94,6 +95,10 @@ export const ACTIVITY_EVENT_CODES = [
|
|
|
94
95
|
"api_key.created",
|
|
95
96
|
"api_key.updated",
|
|
96
97
|
"api_key.revoked",
|
|
98
|
+
// agent_handoff (app-private credential exchange)
|
|
99
|
+
"agent_handoff.created",
|
|
100
|
+
"agent_handoff.redeemed",
|
|
101
|
+
"agent_handoff.revoked",
|
|
97
102
|
// webhook
|
|
98
103
|
"webhook.created",
|
|
99
104
|
"webhook.updated",
|
|
@@ -103,6 +108,7 @@ export const ACTIVITY_EVENT_CODES = [
|
|
|
103
108
|
// team (builds_deploys_quota_exceeded is a shipped additive extension: the
|
|
104
109
|
// pooled monthly builds+deploys meter is SOFT — it tracks, never blocks)
|
|
105
110
|
"team.updated",
|
|
111
|
+
"team.slug_updated",
|
|
106
112
|
"team.member_added",
|
|
107
113
|
"team.member_removed",
|
|
108
114
|
"team.member_role_updated",
|
|
@@ -118,12 +124,11 @@ export const ACTIVITY_EVENT_CODES = [
|
|
|
118
124
|
"import.ready",
|
|
119
125
|
"import.failed",
|
|
120
126
|
// annotations
|
|
121
|
-
"
|
|
122
|
-
"
|
|
123
|
-
"
|
|
124
|
-
"
|
|
125
|
-
"
|
|
126
|
-
"annotation.archived",
|
|
127
|
+
"comment.token_minted",
|
|
128
|
+
"comment.created",
|
|
129
|
+
"comment.reply_created",
|
|
130
|
+
"comment.archived",
|
|
131
|
+
"comment.unarchived",
|
|
127
132
|
// abuse (additive extension: operator-tunable abuse-control telemetry)
|
|
128
133
|
"abuse_report.created",
|
|
129
134
|
"abuse_report.updated",
|
|
@@ -189,6 +189,7 @@ export declare const publicOverlayConfigSchema: z.ZodObject<{
|
|
|
189
189
|
id: z.ZodNullable<z.ZodString>;
|
|
190
190
|
current: z.ZodNullable<z.ZodString>;
|
|
191
191
|
}, z.core.$strip>;
|
|
192
|
+
loaderUrl: z.ZodString;
|
|
192
193
|
sdkUrl: z.ZodString;
|
|
193
194
|
wsUrl: z.ZodNullable<z.ZodString>;
|
|
194
195
|
inboxUrl: z.ZodNullable<z.ZodString>;
|
|
@@ -321,5 +322,6 @@ export declare const annotationExportResponseSchema: z.ZodObject<{
|
|
|
321
322
|
}, z.core.$strip>;
|
|
322
323
|
export type CollaborationInvitedReviewer = z.infer<typeof collaborationInvitedReviewerSchema>;
|
|
323
324
|
export type Collaboration = z.infer<typeof collaborationSchema>;
|
|
325
|
+
export type CollaborationUpdate = z.infer<typeof collaborationUpdateSchema>;
|
|
324
326
|
export type PublicOverlayConfig = z.infer<typeof publicOverlayConfigSchema>;
|
|
325
327
|
export type AnnotationThread = z.infer<typeof annotationThreadSchema>;
|
|
@@ -154,7 +154,8 @@ export const publicOverlayConfigSchema = z.object({
|
|
|
154
154
|
id: z.string().nullable(),
|
|
155
155
|
current: z.string().nullable(),
|
|
156
156
|
}),
|
|
157
|
-
// The Cast
|
|
157
|
+
// The tiny Cast loader and the full SDK it loads after reviewer interaction.
|
|
158
|
+
loaderUrl: z.string().url(),
|
|
158
159
|
sdkUrl: z.string().url(),
|
|
159
160
|
wsUrl: z.string().nullable(),
|
|
160
161
|
inboxUrl: z.string().nullable(),
|
|
@@ -176,6 +176,7 @@ export declare const ApiKeySchema: z.ZodObject<{
|
|
|
176
176
|
team_admin: "team_admin";
|
|
177
177
|
billing_viewer: "billing_viewer";
|
|
178
178
|
}>>;
|
|
179
|
+
teamScope: z.ZodNullable<z.ZodType<import("./device-team-scope.js").DeviceTeamScope, unknown, z.core.$ZodTypeInternals<import("./device-team-scope.js").DeviceTeamScope, unknown>>>;
|
|
179
180
|
policy: z.ZodNullable<z.ZodObject<{
|
|
180
181
|
version: z.ZodLiteral<"2026-06-09">;
|
|
181
182
|
statements: z.ZodArray<z.ZodObject<{
|
|
@@ -286,6 +287,7 @@ export declare const ApiKeyListResponseSchema: z.ZodObject<{
|
|
|
286
287
|
team_admin: "team_admin";
|
|
287
288
|
billing_viewer: "billing_viewer";
|
|
288
289
|
}>>;
|
|
290
|
+
teamScope: z.ZodNullable<z.ZodType<import("./device-team-scope.js").DeviceTeamScope, unknown, z.core.$ZodTypeInternals<import("./device-team-scope.js").DeviceTeamScope, unknown>>>;
|
|
289
291
|
policy: z.ZodNullable<z.ZodObject<{
|
|
290
292
|
version: z.ZodLiteral<"2026-06-09">;
|
|
291
293
|
statements: z.ZodArray<z.ZodObject<{
|
|
@@ -445,6 +447,7 @@ export declare const ApiKeyCreateRequestSchema: z.ZodObject<{
|
|
|
445
447
|
}, z.core.$strip>;
|
|
446
448
|
export type ApiKeyCreateRequest = z.infer<typeof ApiKeyCreateRequestSchema>;
|
|
447
449
|
export declare const ApiKeyPatchRequestSchema: z.ZodObject<{
|
|
450
|
+
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
448
451
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
449
452
|
ipAllowlist: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
450
453
|
expiresAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -578,6 +581,7 @@ export declare const ApiKeyScopedCreateRequestSchema: z.ZodObject<{
|
|
|
578
581
|
}, z.core.$strict>;
|
|
579
582
|
export type ApiKeyScopedCreateRequest = z.infer<typeof ApiKeyScopedCreateRequestSchema>;
|
|
580
583
|
export declare const ApiKeyScopedPatchRequestSchema: z.ZodObject<{
|
|
584
|
+
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
581
585
|
scope: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
582
586
|
kind: z.ZodLiteral<"team">;
|
|
583
587
|
teamId: z.ZodString;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
import { AnyObjectSchema, CursorPaginationSchema, cursorListQuerySchema } from "./common.js";
|
|
3
|
+
import { DeviceTeamScopeSchema } from "./device-team-scope.js";
|
|
3
4
|
export const SPACEFAST_ACCESS_POLICY_VERSION = "2026-06-09";
|
|
4
5
|
export const StatticActionSchema = z.enum([
|
|
5
6
|
"sites:read",
|
|
@@ -164,6 +165,7 @@ export const ApiKeySchema = z.object({
|
|
|
164
165
|
ownerPrincipal: ApiKeyOwnerPrincipalSchema.nullable().describe("Owning principal (ownership metadata, never the authorization gate)."),
|
|
165
166
|
createdByUserId: z.string().describe("User who created the key."),
|
|
166
167
|
preset: ApiKeyPresetSchema.nullable().describe("Preset the policy was compiled from, if any."),
|
|
168
|
+
teamScope: DeviceTeamScopeSchema.nullable().describe("Membership-following team scope for a device-login key, or null for legacy keys."),
|
|
167
169
|
policy: ApiCredentialPolicySchema.nullable().describe("Effective access policy. A key authorizes by policy only."),
|
|
168
170
|
metadata: AnyObjectSchema.describe("Caller-supplied metadata."),
|
|
169
171
|
secretPreview: z.string().describe("Masked secret preview (prefix and last characters)."),
|
|
@@ -214,6 +216,7 @@ export const ApiKeyCreateRequestSchema = z.object({
|
|
|
214
216
|
});
|
|
215
217
|
export const ApiKeyPatchRequestSchema = z
|
|
216
218
|
.object({
|
|
219
|
+
name: z.string().trim().min(1).max(255).nullable().optional().describe("Replacement name."),
|
|
217
220
|
metadata: AnyObjectSchema.optional().describe("Replacement caller-supplied metadata."),
|
|
218
221
|
ipAllowlist: z
|
|
219
222
|
.array(z.string().trim().min(1).max(255))
|
|
@@ -269,6 +272,7 @@ export const ApiKeyScopedCreateRequestSchema = z
|
|
|
269
272
|
.strict();
|
|
270
273
|
export const ApiKeyScopedPatchRequestSchema = z
|
|
271
274
|
.object({
|
|
275
|
+
name: z.string().trim().min(1).max(255).nullable().optional().describe("Replacement name."),
|
|
272
276
|
scope: ApiKeyScopeSchema.optional().describe("Replacement policy target. Must be supplied together with permissions."),
|
|
273
277
|
permissions: z
|
|
274
278
|
.array(DescribedStatticActionSchema)
|
|
@@ -25,10 +25,7 @@ export declare const spaceExportSchema: z.ZodObject<{
|
|
|
25
25
|
queued: "queued";
|
|
26
26
|
running: "running";
|
|
27
27
|
}>;
|
|
28
|
-
format: z.
|
|
29
|
-
spacefast_export_v1: "spacefast_export_v1";
|
|
30
|
-
stattic_export_v1: "stattic_export_v1";
|
|
31
|
-
}>;
|
|
28
|
+
format: z.ZodLiteral<"spacefast_export_v1">;
|
|
32
29
|
diagnostics: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
33
30
|
code: z.ZodString;
|
|
34
31
|
severity: z.ZodEnum<{
|
|
@@ -70,10 +67,7 @@ export declare const spaceExportListResponseSchema: z.ZodObject<{
|
|
|
70
67
|
queued: "queued";
|
|
71
68
|
running: "running";
|
|
72
69
|
}>;
|
|
73
|
-
format: z.
|
|
74
|
-
spacefast_export_v1: "spacefast_export_v1";
|
|
75
|
-
stattic_export_v1: "stattic_export_v1";
|
|
76
|
-
}>;
|
|
70
|
+
format: z.ZodLiteral<"spacefast_export_v1">;
|
|
77
71
|
diagnostics: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
78
72
|
code: z.ZodString;
|
|
79
73
|
severity: z.ZodEnum<{
|
|
@@ -40,11 +40,9 @@ export const spaceExportSchema = z.object({
|
|
|
40
40
|
status: z
|
|
41
41
|
.enum(["queued", "running", "ready", "failed", "expired"])
|
|
42
42
|
.describe("Export lifecycle. `expired` means the archive download window has passed."),
|
|
43
|
-
// Producers emit `spacefast_export_v1`; `stattic_export_v1` remains accepted
|
|
44
|
-
// for archives/handles minted before the rename (legacy read-compat).
|
|
45
43
|
format: z
|
|
46
|
-
.
|
|
47
|
-
.describe("Archive format identifier.
|
|
44
|
+
.literal("spacefast_export_v1")
|
|
45
|
+
.describe("Archive format identifier. Always `spacefast_export_v1`."),
|
|
48
46
|
diagnostics: z
|
|
49
47
|
.array(baseDiagnosticSchema)
|
|
50
48
|
.default([])
|
|
@@ -72,10 +70,7 @@ export const spaceImportSourceSchema = z
|
|
|
72
70
|
}),
|
|
73
71
|
z.object({
|
|
74
72
|
kind: z.literal("url").describe("Fetch the archive from a public HTTPS URL."),
|
|
75
|
-
url: z
|
|
76
|
-
.string()
|
|
77
|
-
.url()
|
|
78
|
-
.describe("Public HTTPS URL of a spacefast_export_v1 (or legacy stattic_export_v1) archive."),
|
|
73
|
+
url: z.string().url().describe("Public HTTPS URL of a spacefast_export_v1 archive."),
|
|
79
74
|
}),
|
|
80
75
|
z.object({
|
|
81
76
|
kind: z.literal("export").describe("Import directly from an export on this control plane."),
|
package/dist/contracts/builds.js
CHANGED
|
@@ -197,6 +197,11 @@ const InternalBuildExecutionSchema = z
|
|
|
197
197
|
logOffset: z.number().int().nonnegative().optional(),
|
|
198
198
|
exitCode: z.number().int().min(0).max(255).optional(),
|
|
199
199
|
terminationReason: z.enum(["command", "timeout"]).optional(),
|
|
200
|
+
artifactDeadlineAt: z
|
|
201
|
+
.string()
|
|
202
|
+
.datetime()
|
|
203
|
+
.optional()
|
|
204
|
+
.describe("Single non-renewable deadline for post-success artifact collection."),
|
|
200
205
|
launch: buildExecutionLaunchSchema.optional(),
|
|
201
206
|
supervision: buildExecutionSupervisionSchema.optional(),
|
|
202
207
|
metadata: z.record(z.string(), z.unknown()).default({}),
|
|
@@ -0,0 +1,309 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const collaborationModeSchema: z.ZodEnum<{
|
|
3
|
+
review: "review";
|
|
4
|
+
}>;
|
|
5
|
+
export declare const commentThreadStatusSchema: z.ZodEnum<{
|
|
6
|
+
open: "open";
|
|
7
|
+
archived: "archived";
|
|
8
|
+
}>;
|
|
9
|
+
export declare const collaborationReviewerLevelSchema: z.ZodEnum<{
|
|
10
|
+
viewer: "viewer";
|
|
11
|
+
commenter: "commenter";
|
|
12
|
+
editor: "editor";
|
|
13
|
+
}>;
|
|
14
|
+
export declare const collaborationInvitedReviewerSchema: z.ZodObject<{
|
|
15
|
+
email: z.ZodString;
|
|
16
|
+
level: z.ZodEnum<{
|
|
17
|
+
viewer: "viewer";
|
|
18
|
+
commenter: "commenter";
|
|
19
|
+
editor: "editor";
|
|
20
|
+
}>;
|
|
21
|
+
}, z.core.$strip>;
|
|
22
|
+
export declare const collaborationSettingsSchema: z.ZodObject<{
|
|
23
|
+
anonymousReviewers: z.ZodOptional<z.ZodBoolean>;
|
|
24
|
+
publishedAnonymousCommenters: z.ZodOptional<z.ZodBoolean>;
|
|
25
|
+
invitedReviewers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
26
|
+
email: z.ZodString;
|
|
27
|
+
level: z.ZodEnum<{
|
|
28
|
+
viewer: "viewer";
|
|
29
|
+
commenter: "commenter";
|
|
30
|
+
editor: "editor";
|
|
31
|
+
}>;
|
|
32
|
+
}, z.core.$strip>>>;
|
|
33
|
+
publishedComments: z.ZodOptional<z.ZodBoolean>;
|
|
34
|
+
allowedOrigins: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
35
|
+
notificationPreferences: z.ZodOptional<z.ZodObject<{
|
|
36
|
+
newThreads: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
37
|
+
newReplies: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
38
|
+
statusChanges: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
39
|
+
}, z.core.$strip>>;
|
|
40
|
+
}, z.core.$catchall<z.ZodUnknown>>;
|
|
41
|
+
export declare const collaborationSchema: z.ZodObject<{
|
|
42
|
+
spaceId: z.ZodString;
|
|
43
|
+
enabled: z.ZodBoolean;
|
|
44
|
+
mode: z.ZodEnum<{
|
|
45
|
+
review: "review";
|
|
46
|
+
}>;
|
|
47
|
+
castResourceId: z.ZodNullable<z.ZodString>;
|
|
48
|
+
castResourceKey: z.ZodNullable<z.ZodString>;
|
|
49
|
+
settings: z.ZodObject<{
|
|
50
|
+
anonymousReviewers: z.ZodOptional<z.ZodBoolean>;
|
|
51
|
+
publishedAnonymousCommenters: z.ZodOptional<z.ZodBoolean>;
|
|
52
|
+
invitedReviewers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
53
|
+
email: z.ZodString;
|
|
54
|
+
level: z.ZodEnum<{
|
|
55
|
+
viewer: "viewer";
|
|
56
|
+
commenter: "commenter";
|
|
57
|
+
editor: "editor";
|
|
58
|
+
}>;
|
|
59
|
+
}, z.core.$strip>>>;
|
|
60
|
+
publishedComments: z.ZodOptional<z.ZodBoolean>;
|
|
61
|
+
allowedOrigins: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
62
|
+
notificationPreferences: z.ZodOptional<z.ZodObject<{
|
|
63
|
+
newThreads: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
64
|
+
newReplies: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
65
|
+
statusChanges: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
66
|
+
}, z.core.$strip>>;
|
|
67
|
+
}, z.core.$catchall<z.ZodUnknown>>;
|
|
68
|
+
createdAt: z.ZodNullable<z.ZodString>;
|
|
69
|
+
updatedAt: z.ZodNullable<z.ZodString>;
|
|
70
|
+
}, z.core.$strip>;
|
|
71
|
+
export declare const collaborationUpdateSchema: z.ZodObject<{
|
|
72
|
+
enabled: z.ZodBoolean;
|
|
73
|
+
mode: z.ZodOptional<z.ZodEnum<{
|
|
74
|
+
review: "review";
|
|
75
|
+
}>>;
|
|
76
|
+
settings: z.ZodOptional<z.ZodObject<{
|
|
77
|
+
anonymousReviewers: z.ZodOptional<z.ZodBoolean>;
|
|
78
|
+
publishedAnonymousCommenters: z.ZodOptional<z.ZodBoolean>;
|
|
79
|
+
invitedReviewers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
80
|
+
email: z.ZodString;
|
|
81
|
+
level: z.ZodEnum<{
|
|
82
|
+
viewer: "viewer";
|
|
83
|
+
commenter: "commenter";
|
|
84
|
+
editor: "editor";
|
|
85
|
+
}>;
|
|
86
|
+
}, z.core.$strip>>>;
|
|
87
|
+
publishedComments: z.ZodOptional<z.ZodBoolean>;
|
|
88
|
+
allowedOrigins: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
89
|
+
notificationPreferences: z.ZodOptional<z.ZodObject<{
|
|
90
|
+
newThreads: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
91
|
+
newReplies: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
92
|
+
statusChanges: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
93
|
+
}, z.core.$strip>>;
|
|
94
|
+
}, z.core.$catchall<z.ZodUnknown>>>;
|
|
95
|
+
}, z.core.$strip>;
|
|
96
|
+
export declare const collaborationTokenRequestSchema: z.ZodObject<{
|
|
97
|
+
versionId: z.ZodOptional<z.ZodString>;
|
|
98
|
+
pagePath: z.ZodDefault<z.ZodString>;
|
|
99
|
+
displayName: z.ZodOptional<z.ZodString>;
|
|
100
|
+
}, z.core.$strip>;
|
|
101
|
+
export declare const collaborationTokenResponseSchema: z.ZodObject<{
|
|
102
|
+
token: z.ZodString;
|
|
103
|
+
expiresAt: z.ZodString;
|
|
104
|
+
cast: z.ZodObject<{
|
|
105
|
+
resource: z.ZodString;
|
|
106
|
+
room: z.ZodNullable<z.ZodString>;
|
|
107
|
+
}, z.core.$strip>;
|
|
108
|
+
}, z.core.$strip>;
|
|
109
|
+
export declare const collaborationHandoffRequestSchema: z.ZodObject<{
|
|
110
|
+
versionId: z.ZodString;
|
|
111
|
+
pagePath: z.ZodDefault<z.ZodString>;
|
|
112
|
+
}, z.core.$strip>;
|
|
113
|
+
export declare const collaborationHandoffResponseSchema: z.ZodObject<{
|
|
114
|
+
handoffToken: z.ZodString;
|
|
115
|
+
expiresAt: z.ZodString;
|
|
116
|
+
url: z.ZodNullable<z.ZodString>;
|
|
117
|
+
}, z.core.$strip>;
|
|
118
|
+
export declare const collaborationHandoffExchangeSchema: z.ZodObject<{
|
|
119
|
+
handoffToken: z.ZodString;
|
|
120
|
+
}, z.core.$strip>;
|
|
121
|
+
export declare const realtimeTokenRequestSchema: z.ZodObject<{
|
|
122
|
+
versionId: z.ZodOptional<z.ZodString>;
|
|
123
|
+
scope: z.ZodDefault<z.ZodEnum<{
|
|
124
|
+
space: "space";
|
|
125
|
+
version: "version";
|
|
126
|
+
}>>;
|
|
127
|
+
}, z.core.$strip>;
|
|
128
|
+
export declare const realtimeTokenResponseSchema: z.ZodObject<{
|
|
129
|
+
token: z.ZodString;
|
|
130
|
+
expiresAt: z.ZodString;
|
|
131
|
+
cast: z.ZodObject<{
|
|
132
|
+
resource: z.ZodString;
|
|
133
|
+
room: z.ZodString;
|
|
134
|
+
loaderUrl: z.ZodString;
|
|
135
|
+
}, z.core.$strip>;
|
|
136
|
+
}, z.core.$strip>;
|
|
137
|
+
export declare const noticePublishSchema: z.ZodObject<{
|
|
138
|
+
versionId: z.ZodOptional<z.ZodString>;
|
|
139
|
+
kind: z.ZodDefault<z.ZodString>;
|
|
140
|
+
title: z.ZodString;
|
|
141
|
+
message: z.ZodString;
|
|
142
|
+
level: z.ZodDefault<z.ZodEnum<{
|
|
143
|
+
info: "info";
|
|
144
|
+
success: "success";
|
|
145
|
+
warning: "warning";
|
|
146
|
+
error: "error";
|
|
147
|
+
}>>;
|
|
148
|
+
payload: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
149
|
+
durable: z.ZodDefault<z.ZodBoolean>;
|
|
150
|
+
idempotencyKey: z.ZodOptional<z.ZodString>;
|
|
151
|
+
}, z.core.$strip>;
|
|
152
|
+
export declare const noticePublishResponseSchema: z.ZodObject<{
|
|
153
|
+
status: z.ZodString;
|
|
154
|
+
event: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
155
|
+
broadcast: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
156
|
+
}, z.core.$strip>;
|
|
157
|
+
export declare const collabOverlayConfigQuerySchema: z.ZodObject<{
|
|
158
|
+
path: z.ZodOptional<z.ZodString>;
|
|
159
|
+
versionId: z.ZodOptional<z.ZodString>;
|
|
160
|
+
host: z.ZodOptional<z.ZodString>;
|
|
161
|
+
}, z.core.$strip>;
|
|
162
|
+
export declare const collabOverlayConfigSchema: z.ZodObject<{
|
|
163
|
+
enabled: z.ZodBoolean;
|
|
164
|
+
anonymous_commenters: z.ZodBoolean;
|
|
165
|
+
resource_key: z.ZodNullable<z.ZodString>;
|
|
166
|
+
room_key: z.ZodNullable<z.ZodString>;
|
|
167
|
+
version: z.ZodObject<{
|
|
168
|
+
id: z.ZodNullable<z.ZodString>;
|
|
169
|
+
current: z.ZodNullable<z.ZodString>;
|
|
170
|
+
}, z.core.$strip>;
|
|
171
|
+
ws_url: z.ZodNullable<z.ZodString>;
|
|
172
|
+
endpoints: z.ZodObject<{
|
|
173
|
+
token: z.ZodString;
|
|
174
|
+
handoff_exchange: z.ZodString;
|
|
175
|
+
auth_bridge: z.ZodString;
|
|
176
|
+
screenshots: z.ZodString;
|
|
177
|
+
}, z.core.$strip>;
|
|
178
|
+
features: z.ZodObject<{
|
|
179
|
+
drawing: z.ZodBoolean;
|
|
180
|
+
capture: z.ZodBoolean;
|
|
181
|
+
notices: z.ZodBoolean;
|
|
182
|
+
}, z.core.$strip>;
|
|
183
|
+
}, z.core.$strip>;
|
|
184
|
+
export declare const commentAuthorSchema: z.ZodObject<{
|
|
185
|
+
kind: z.ZodNullable<z.ZodString>;
|
|
186
|
+
id: z.ZodNullable<z.ZodString>;
|
|
187
|
+
name: z.ZodNullable<z.ZodString>;
|
|
188
|
+
}, z.core.$strip>;
|
|
189
|
+
export declare const commentTargetSchema: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
190
|
+
export declare const commentThreadSchema: z.ZodObject<{
|
|
191
|
+
id: z.ZodString;
|
|
192
|
+
castThreadId: z.ZodString;
|
|
193
|
+
spaceId: z.ZodString;
|
|
194
|
+
versionId: z.ZodNullable<z.ZodString>;
|
|
195
|
+
channel: z.ZodNullable<z.ZodString>;
|
|
196
|
+
pagePath: z.ZodString;
|
|
197
|
+
url: z.ZodNullable<z.ZodString>;
|
|
198
|
+
status: z.ZodEnum<{
|
|
199
|
+
open: "open";
|
|
200
|
+
archived: "archived";
|
|
201
|
+
}>;
|
|
202
|
+
unread: z.ZodBoolean;
|
|
203
|
+
unreadCount: z.ZodNumber;
|
|
204
|
+
body: z.ZodNullable<z.ZodString>;
|
|
205
|
+
author: z.ZodNullable<z.ZodObject<{
|
|
206
|
+
kind: z.ZodNullable<z.ZodString>;
|
|
207
|
+
id: z.ZodNullable<z.ZodString>;
|
|
208
|
+
name: z.ZodNullable<z.ZodString>;
|
|
209
|
+
}, z.core.$strip>>;
|
|
210
|
+
target: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
211
|
+
comments: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
212
|
+
permalink: z.ZodNullable<z.ZodString>;
|
|
213
|
+
updatedAt: z.ZodNullable<z.ZodString>;
|
|
214
|
+
}, z.core.$strip>;
|
|
215
|
+
export declare const commentListQuerySchema: z.ZodObject<{
|
|
216
|
+
limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
217
|
+
cursor: z.ZodOptional<z.ZodString>;
|
|
218
|
+
versionId: z.ZodOptional<z.ZodString>;
|
|
219
|
+
status: z.ZodOptional<z.ZodEnum<{
|
|
220
|
+
open: "open";
|
|
221
|
+
archived: "archived";
|
|
222
|
+
}>>;
|
|
223
|
+
pagePath: z.ZodOptional<z.ZodString>;
|
|
224
|
+
}, z.core.$strip>;
|
|
225
|
+
export declare const commentCreateSchema: z.ZodObject<{
|
|
226
|
+
pagePath: z.ZodDefault<z.ZodString>;
|
|
227
|
+
body: z.ZodString;
|
|
228
|
+
target: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
229
|
+
idempotencyKey: z.ZodOptional<z.ZodString>;
|
|
230
|
+
}, z.core.$strip>;
|
|
231
|
+
export declare const commentScreenshotCreateSchema: z.ZodObject<{
|
|
232
|
+
versionId: z.ZodString;
|
|
233
|
+
pagePath: z.ZodDefault<z.ZodString>;
|
|
234
|
+
contentType: z.ZodEnum<{
|
|
235
|
+
"image/png": "image/png";
|
|
236
|
+
"image/jpeg": "image/jpeg";
|
|
237
|
+
"image/webp": "image/webp";
|
|
238
|
+
}>;
|
|
239
|
+
contentBase64: z.ZodString;
|
|
240
|
+
}, z.core.$strip>;
|
|
241
|
+
export declare const commentScreenshotSchema: z.ZodObject<{
|
|
242
|
+
id: z.ZodString;
|
|
243
|
+
key: z.ZodString;
|
|
244
|
+
url: z.ZodString;
|
|
245
|
+
expiresAt: z.ZodString;
|
|
246
|
+
}, z.core.$strip>;
|
|
247
|
+
export declare const commentReplySchema: z.ZodObject<{
|
|
248
|
+
body: z.ZodString;
|
|
249
|
+
idempotencyKey: z.ZodOptional<z.ZodString>;
|
|
250
|
+
}, z.core.$strip>;
|
|
251
|
+
export declare const commentPatchSchema: z.ZodObject<{
|
|
252
|
+
status: z.ZodOptional<z.ZodEnum<{
|
|
253
|
+
open: "open";
|
|
254
|
+
archived: "archived";
|
|
255
|
+
}>>;
|
|
256
|
+
}, z.core.$strip>;
|
|
257
|
+
export declare const commentExportQuerySchema: z.ZodObject<{
|
|
258
|
+
format: z.ZodDefault<z.ZodEnum<{
|
|
259
|
+
json: "json";
|
|
260
|
+
markdown: "markdown";
|
|
261
|
+
}>>;
|
|
262
|
+
status: z.ZodOptional<z.ZodEnum<{
|
|
263
|
+
open: "open";
|
|
264
|
+
archived: "archived";
|
|
265
|
+
}>>;
|
|
266
|
+
}, z.core.$strip>;
|
|
267
|
+
export declare const commentListResponseSchema: z.ZodObject<{
|
|
268
|
+
data: z.ZodArray<z.ZodObject<{
|
|
269
|
+
id: z.ZodString;
|
|
270
|
+
castThreadId: z.ZodString;
|
|
271
|
+
spaceId: z.ZodString;
|
|
272
|
+
versionId: z.ZodNullable<z.ZodString>;
|
|
273
|
+
channel: z.ZodNullable<z.ZodString>;
|
|
274
|
+
pagePath: z.ZodString;
|
|
275
|
+
url: z.ZodNullable<z.ZodString>;
|
|
276
|
+
status: z.ZodEnum<{
|
|
277
|
+
open: "open";
|
|
278
|
+
archived: "archived";
|
|
279
|
+
}>;
|
|
280
|
+
unread: z.ZodBoolean;
|
|
281
|
+
unreadCount: z.ZodNumber;
|
|
282
|
+
body: z.ZodNullable<z.ZodString>;
|
|
283
|
+
author: z.ZodNullable<z.ZodObject<{
|
|
284
|
+
kind: z.ZodNullable<z.ZodString>;
|
|
285
|
+
id: z.ZodNullable<z.ZodString>;
|
|
286
|
+
name: z.ZodNullable<z.ZodString>;
|
|
287
|
+
}, z.core.$strip>>;
|
|
288
|
+
target: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
289
|
+
comments: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
290
|
+
permalink: z.ZodNullable<z.ZodString>;
|
|
291
|
+
updatedAt: z.ZodNullable<z.ZodString>;
|
|
292
|
+
}, z.core.$strip>>;
|
|
293
|
+
pagination: z.ZodObject<{
|
|
294
|
+
nextCursor: z.ZodNullable<z.ZodString>;
|
|
295
|
+
hasMore: z.ZodBoolean;
|
|
296
|
+
}, z.core.$strip>;
|
|
297
|
+
}, z.core.$strip>;
|
|
298
|
+
export declare const commentExportResponseSchema: z.ZodObject<{
|
|
299
|
+
format: z.ZodEnum<{
|
|
300
|
+
json: "json";
|
|
301
|
+
markdown: "markdown";
|
|
302
|
+
}>;
|
|
303
|
+
content: z.ZodString;
|
|
304
|
+
}, z.core.$strip>;
|
|
305
|
+
export type CollaborationInvitedReviewer = z.infer<typeof collaborationInvitedReviewerSchema>;
|
|
306
|
+
export type Collaboration = z.infer<typeof collaborationSchema>;
|
|
307
|
+
export type CollaborationUpdate = z.infer<typeof collaborationUpdateSchema>;
|
|
308
|
+
export type CollabOverlayConfig = z.infer<typeof collabOverlayConfigSchema>;
|
|
309
|
+
export type CommentThread = z.infer<typeof commentThreadSchema>;
|