@spacefast/common 0.0.3 → 0.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/agents/connect-targets.d.ts +133 -0
- package/dist/agents/connect-targets.js +224 -0
- package/dist/brand.d.ts +1 -0
- package/dist/brand.js +5 -0
- package/dist/config/domains.d.ts +12 -6
- package/dist/config/domains.js +30 -38
- package/dist/contracts/access.d.ts +829 -129
- package/dist/contracts/access.js +771 -148
- package/dist/contracts/activity.d.ts +5 -5
- package/dist/contracts/activity.js +28 -2
- package/dist/contracts/annotations.d.ts +3 -5
- package/dist/contracts/api-keys.d.ts +9 -10
- package/dist/contracts/api-keys.js +9 -6
- package/dist/contracts/archives.d.ts +22 -16
- package/dist/contracts/archives.js +11 -4
- package/dist/contracts/billing.d.ts +21 -30
- package/dist/contracts/builds.d.ts +21 -17
- package/dist/contracts/builds.js +12 -0
- package/dist/contracts/channels.d.ts +2 -2
- package/dist/contracts/common.d.ts +7 -5
- package/dist/contracts/common.js +4 -0
- package/dist/contracts/continuation.d.ts +63 -0
- package/dist/contracts/continuation.js +91 -0
- package/dist/contracts/countries.d.ts +2 -0
- package/dist/contracts/countries.js +261 -0
- package/dist/contracts/deployments.d.ts +34 -34
- package/dist/contracts/device-auth.d.ts +4 -11
- package/dist/contracts/device-auth.js +4 -0
- package/dist/contracts/docs.d.ts +119 -0
- package/dist/contracts/docs.js +51 -0
- package/dist/contracts/domains.d.ts +295 -253
- package/dist/contracts/domains.js +26 -4
- package/dist/contracts/enums.d.ts +17 -18
- package/dist/contracts/enums.js +25 -14
- package/dist/contracts/error-code-meta.d.ts +84 -0
- package/dist/contracts/error-code-meta.js +99 -10
- package/dist/contracts/error-codes.d.ts +1 -1
- package/dist/contracts/error-codes.js +17 -0
- package/dist/contracts/events.d.ts +13 -13
- package/dist/contracts/features.d.ts +93 -23
- package/dist/contracts/features.js +178 -13
- package/dist/contracts/git.d.ts +3 -9
- package/dist/contracts/ids.d.ts +5 -0
- package/dist/contracts/ids.js +5 -0
- package/dist/contracts/internal.d.ts +3 -3
- package/dist/contracts/mcp.d.ts +34 -36
- package/dist/contracts/me.d.ts +8 -8
- package/dist/contracts/me.js +1 -1
- package/dist/contracts/oauth-resources.d.ts +19 -8
- package/dist/contracts/oauth-resources.js +44 -13
- package/dist/contracts/operations.d.ts +2 -2
- package/dist/contracts/plan-policy.d.ts +4 -4
- package/dist/contracts/platform.d.ts +3 -105
- package/dist/contracts/platform.js +0 -50
- package/dist/contracts/push-new.d.ts +4 -4
- package/dist/contracts/quotas.d.ts +2 -0
- package/dist/contracts/quotas.js +8 -0
- package/dist/contracts/repository-connections.d.ts +1 -3
- package/dist/contracts/resources.d.ts +112 -28
- package/dist/contracts/resources.js +26 -2
- package/dist/contracts/routes.d.ts +0 -2
- package/dist/contracts/runtime-api.d.ts +365 -43
- package/dist/contracts/runtime-api.js +275 -6
- package/dist/contracts/sites.d.ts +45 -28
- package/dist/contracts/sites.js +21 -0
- package/dist/contracts/space-config.d.ts +201 -2
- package/dist/contracts/space-config.js +135 -5
- package/dist/contracts/spaces.d.ts +423 -162
- package/dist/contracts/spaces.js +94 -8
- package/dist/contracts/superadmin-emails.d.ts +7 -5
- package/dist/contracts/superadmin-emails.js +8 -0
- package/dist/contracts/superadmin-queues.d.ts +32 -32
- package/dist/contracts/superadmin-spaces.d.ts +418 -24
- package/dist/contracts/superadmin-spaces.js +24 -0
- package/dist/contracts/superadmin-tenants.d.ts +8 -8
- package/dist/contracts/superadmin.d.ts +17 -104
- package/dist/contracts/superadmin.js +6 -14
- package/dist/contracts/tags.d.ts +42 -41
- package/dist/contracts/tags.js +2 -1
- package/dist/contracts/teams.d.ts +40 -23
- package/dist/contracts/teams.js +20 -1
- package/dist/contracts/theme-json.d.ts +30 -0
- package/dist/contracts/theme-json.js +48 -0
- package/dist/contracts/transfers.d.ts +9 -9
- package/dist/contracts/variables.d.ts +14 -16
- package/dist/contracts/variables.js +0 -5
- package/dist/contracts/webhooks.d.ts +6 -4
- package/dist/contracts/webhooks.js +1 -1
- package/dist/contracts/zero.d.ts +13 -18
- package/dist/docs/agent-prose.d.ts +43 -3
- package/dist/docs/agent-prose.js +153 -10
- package/dist/docs/agent-setup.js +48 -15
- package/dist/docs/agent-solutions.d.ts +5 -5
- package/dist/docs/agent-solutions.js +2 -2
- package/dist/docs/catalog.d.ts +650 -0
- package/dist/docs/catalog.js +758 -0
- package/dist/docs/error-docs.d.ts +0 -2
- package/dist/docs/error-docs.js +89 -35
- package/dist/docs/index-build.d.ts +17 -0
- package/dist/docs/index-build.js +24 -0
- package/dist/docs/search.d.ts +54 -0
- package/dist/docs/search.js +96 -0
- package/dist/docs/skill-distribution.d.ts +5 -3
- package/dist/docs/skill-distribution.js +8 -8
- package/dist/utils/access-match.d.ts +39 -0
- package/dist/utils/access-match.js +296 -0
- package/dist/utils/auth-redirect.d.ts +3 -1
- package/dist/utils/auth-redirect.js +21 -1
- package/dist/utils/build-settings.d.ts +6 -0
- package/dist/utils/build-settings.js +429 -46
- package/dist/utils/claim-token.d.ts +8 -0
- package/dist/utils/claim-token.js +23 -2
- package/dist/utils/content-type.d.ts +1 -0
- package/dist/utils/content-type.js +1 -1
- package/dist/utils/credential-policy.d.ts +54 -0
- package/dist/utils/{access-policy.js → credential-policy.js} +28 -2
- package/dist/utils/gate-theme.d.ts +61 -0
- package/dist/utils/gate-theme.js +217 -0
- package/dist/utils/git-repository.d.ts +0 -1
- package/dist/utils/git-repository.js +0 -3
- package/dist/utils/id-hints.d.ts +8 -0
- package/dist/utils/id-hints.js +61 -0
- package/dist/utils/local-space-state.d.ts +91 -0
- package/dist/utils/local-space-state.js +251 -0
- package/dist/utils/oauth-signed-query.d.ts +8 -0
- package/dist/utils/oauth-signed-query.js +26 -0
- package/dist/utils/publish-detection.d.ts +0 -8
- package/dist/utils/publish-detection.js +0 -93
- package/dist/utils/publish-policy.d.ts +6 -5
- package/dist/utils/publish-policy.js +71 -7
- package/dist/utils/query-keys.d.ts +17 -6
- package/dist/utils/query-keys.js +27 -4
- package/dist/utils/runtime-paths.d.ts +0 -1
- package/dist/utils/runtime-paths.js +0 -1
- package/dist/utils/runtime-upload-batch.d.ts +18 -0
- package/dist/utils/runtime-upload-batch.js +90 -0
- package/dist/utils/runtime-upload.d.ts +2 -0
- package/dist/utils/runtime-upload.js +5 -0
- package/dist/utils/space-config.d.ts +4 -0
- package/dist/utils/space-config.js +10 -1
- package/dist/utils/space-theme.d.ts +2 -0
- package/dist/utils/space-theme.js +9 -0
- package/dist/utils/static-runtime-policy.d.ts +1 -1
- package/dist/utils/static-runtime-policy.js +47 -15
- package/dist/utils/upload-session.d.ts +1 -1
- package/dist/utils/wpcom-auth-redirects.d.ts +32 -2
- package/dist/utils/wpcom-auth-redirects.js +26 -10
- package/dist/vocabulary.d.ts +130 -30
- package/dist/vocabulary.js +77 -36
- package/package.json +16 -1
- package/dist/contracts/account.d.ts +0 -28
- package/dist/contracts/account.js +0 -54
- package/dist/contracts/intercom.d.ts +0 -6
- package/dist/contracts/intercom.js +0 -5
- package/dist/contracts/telemetry.d.ts +0 -2
- package/dist/contracts/telemetry.js +0 -1
- package/dist/utils/access-policy.d.ts +0 -39
- package/dist/utils/error-display.d.ts +0 -7
- package/dist/utils/error-display.js +0 -42
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
export declare const ACTIVITY_EVENT_CODES: readonly ["space.created", "space.claimed", "space.transferred", "space.moved", "space.expired", "space.disabled", "space.enabled", "space.deleted", "space.config_updated", "space.password_updated", "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", "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", "annotation.token_minted", "annotation.created", "annotation.comment_created", "annotation.resolved", "annotation.reopened", "annotation.archived", "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"];
|
|
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", "annotation.token_minted", "annotation.created", "annotation.comment_created", "annotation.resolved", "annotation.reopened", "annotation.archived", "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;
|
|
@@ -23,8 +23,8 @@ export declare const activityActorSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
23
23
|
export declare const activityPrincipalSchema: z.ZodObject<{
|
|
24
24
|
tenantId: z.ZodString;
|
|
25
25
|
principalType: z.ZodEnum<{
|
|
26
|
-
external: "external";
|
|
27
26
|
team: "team";
|
|
27
|
+
external: "external";
|
|
28
28
|
}>;
|
|
29
29
|
principalId: z.ZodString;
|
|
30
30
|
}, z.core.$strip>;
|
|
@@ -35,8 +35,8 @@ export declare const activityEventSchema: z.ZodObject<{
|
|
|
35
35
|
principal: z.ZodNullable<z.ZodObject<{
|
|
36
36
|
tenantId: z.ZodString;
|
|
37
37
|
principalType: z.ZodEnum<{
|
|
38
|
-
external: "external";
|
|
39
38
|
team: "team";
|
|
39
|
+
external: "external";
|
|
40
40
|
}>;
|
|
41
41
|
principalId: z.ZodString;
|
|
42
42
|
}, z.core.$strip>>;
|
|
@@ -66,8 +66,8 @@ export declare const activityQuerySchema: z.ZodObject<{
|
|
|
66
66
|
limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
67
67
|
cursor: z.ZodOptional<z.ZodString>;
|
|
68
68
|
principalType: z.ZodOptional<z.ZodEnum<{
|
|
69
|
-
external: "external";
|
|
70
69
|
team: "team";
|
|
70
|
+
external: "external";
|
|
71
71
|
}>>;
|
|
72
72
|
principalId: z.ZodOptional<z.ZodString>;
|
|
73
73
|
spaceId: z.ZodOptional<z.ZodString>;
|
|
@@ -83,8 +83,8 @@ export declare const activityListResponseSchema: z.ZodObject<{
|
|
|
83
83
|
principal: z.ZodNullable<z.ZodObject<{
|
|
84
84
|
tenantId: z.ZodString;
|
|
85
85
|
principalType: z.ZodEnum<{
|
|
86
|
-
external: "external";
|
|
87
86
|
team: "team";
|
|
87
|
+
external: "external";
|
|
88
88
|
}>;
|
|
89
89
|
principalId: z.ZodString;
|
|
90
90
|
}, z.core.$strip>>;
|
|
@@ -9,7 +9,9 @@ export const ACTIVITY_EVENT_CODES = [
|
|
|
9
9
|
// space
|
|
10
10
|
"space.created",
|
|
11
11
|
"space.claimed",
|
|
12
|
+
"feedback.lead_claim_pending",
|
|
12
13
|
"space.transferred",
|
|
14
|
+
"space.move_requested",
|
|
13
15
|
"space.moved",
|
|
14
16
|
"space.expired",
|
|
15
17
|
"space.disabled",
|
|
@@ -17,6 +19,30 @@ export const ACTIVITY_EVENT_CODES = [
|
|
|
17
19
|
"space.deleted",
|
|
18
20
|
"space.config_updated",
|
|
19
21
|
"space.password_updated",
|
|
22
|
+
// site
|
|
23
|
+
"site.provision_requested",
|
|
24
|
+
"site.placement_hold_set",
|
|
25
|
+
"site.placement_hold_cleared",
|
|
26
|
+
"site.burst_toggled",
|
|
27
|
+
// access (internal-docs/access-plan.html): every access mutation emits an
|
|
28
|
+
// activity event; operator mints are audited and owner-visible (X-27).
|
|
29
|
+
"space.access_logout_all",
|
|
30
|
+
"space.access_transfer_scrub",
|
|
31
|
+
"space.access_operator_token",
|
|
32
|
+
"space.sharing_updated",
|
|
33
|
+
"space.share_link_created",
|
|
34
|
+
"space.share_link_revoked",
|
|
35
|
+
"space.invite_created",
|
|
36
|
+
"space.invite_revoked",
|
|
37
|
+
"space.access_request_created",
|
|
38
|
+
"space.access_request_resolved",
|
|
39
|
+
"space.firewall_updated",
|
|
40
|
+
"team.access_defaults_updated",
|
|
41
|
+
"team.service_token_created",
|
|
42
|
+
"team.service_token_revoked",
|
|
43
|
+
"team.access_connection_created",
|
|
44
|
+
"team.access_connection_updated",
|
|
45
|
+
"team.access_connection_revoked",
|
|
20
46
|
// version
|
|
21
47
|
"version.created",
|
|
22
48
|
"version.ready",
|
|
@@ -68,12 +94,12 @@ export const ACTIVITY_EVENT_CODES = [
|
|
|
68
94
|
"api_key.created",
|
|
69
95
|
"api_key.updated",
|
|
70
96
|
"api_key.revoked",
|
|
71
|
-
// webhook
|
|
72
|
-
// webhook.deleted event — internal-docs/platform.md "Webhook DELETE")
|
|
97
|
+
// webhook
|
|
73
98
|
"webhook.created",
|
|
74
99
|
"webhook.updated",
|
|
75
100
|
"webhook.secret_rotated",
|
|
76
101
|
"webhook.disabled",
|
|
102
|
+
"webhook.deleted",
|
|
77
103
|
// team (builds_deploys_quota_exceeded is a shipped additive extension: the
|
|
78
104
|
// pooled monthly builds+deploys meter is SOFT — it tracks, never blocks)
|
|
79
105
|
"team.updated",
|
|
@@ -139,8 +139,8 @@ export declare const noticePublishSchema: z.ZodObject<{
|
|
|
139
139
|
title: z.ZodString;
|
|
140
140
|
message: z.ZodString;
|
|
141
141
|
level: z.ZodDefault<z.ZodEnum<{
|
|
142
|
-
success: "success";
|
|
143
142
|
info: "info";
|
|
143
|
+
success: "success";
|
|
144
144
|
warning: "warning";
|
|
145
145
|
error: "error";
|
|
146
146
|
}>>;
|
|
@@ -273,8 +273,8 @@ export declare const annotationPatchSchema: z.ZodObject<{
|
|
|
273
273
|
}, z.core.$strip>;
|
|
274
274
|
export declare const annotationExportQuerySchema: z.ZodObject<{
|
|
275
275
|
format: z.ZodDefault<z.ZodEnum<{
|
|
276
|
-
markdown: "markdown";
|
|
277
276
|
json: "json";
|
|
277
|
+
markdown: "markdown";
|
|
278
278
|
}>>;
|
|
279
279
|
status: z.ZodOptional<z.ZodEnum<{
|
|
280
280
|
open: "open";
|
|
@@ -314,14 +314,12 @@ export declare const annotationListResponseSchema: z.ZodObject<{
|
|
|
314
314
|
}, z.core.$strip>;
|
|
315
315
|
export declare const annotationExportResponseSchema: z.ZodObject<{
|
|
316
316
|
format: z.ZodEnum<{
|
|
317
|
-
markdown: "markdown";
|
|
318
317
|
json: "json";
|
|
318
|
+
markdown: "markdown";
|
|
319
319
|
}>;
|
|
320
320
|
content: z.ZodString;
|
|
321
321
|
}, z.core.$strip>;
|
|
322
322
|
export type CollaborationInvitedReviewer = z.infer<typeof collaborationInvitedReviewerSchema>;
|
|
323
323
|
export type Collaboration = z.infer<typeof collaborationSchema>;
|
|
324
|
-
export type OverlayConfig = z.infer<typeof overlayConfigSchema>;
|
|
325
324
|
export type PublicOverlayConfig = z.infer<typeof publicOverlayConfigSchema>;
|
|
326
325
|
export type AnnotationThread = z.infer<typeof annotationThreadSchema>;
|
|
327
|
-
export type RealtimeToken = z.infer<typeof realtimeTokenResponseSchema>;
|
|
@@ -61,7 +61,7 @@ export type ParsedStatticResource = {
|
|
|
61
61
|
} | {
|
|
62
62
|
kind: "space";
|
|
63
63
|
tenantId: string;
|
|
64
|
-
siteId: string;
|
|
64
|
+
siteId: string | null;
|
|
65
65
|
spaceId: string;
|
|
66
66
|
wildcard: boolean;
|
|
67
67
|
} | {
|
|
@@ -74,7 +74,7 @@ export type ParsedStatticResource = {
|
|
|
74
74
|
domainGroupId: string;
|
|
75
75
|
};
|
|
76
76
|
export declare function parseStatticResource(value: string): ParsedStatticResource | null;
|
|
77
|
-
export declare const
|
|
77
|
+
export declare const ApiCredentialPolicySchema: z.ZodObject<{
|
|
78
78
|
version: z.ZodLiteral<"2026-06-09">;
|
|
79
79
|
statements: z.ZodArray<z.ZodObject<{
|
|
80
80
|
effect: z.ZodEnum<{
|
|
@@ -135,7 +135,7 @@ export declare const StatticAccessPolicySchema: z.ZodObject<{
|
|
|
135
135
|
}, z.core.$strict>>;
|
|
136
136
|
}, z.core.$strict>>;
|
|
137
137
|
}, z.core.$strict>;
|
|
138
|
-
export type
|
|
138
|
+
export type ApiCredentialPolicy = z.infer<typeof ApiCredentialPolicySchema>;
|
|
139
139
|
export declare const ApiKeyPresetSchema: z.ZodEnum<{
|
|
140
140
|
ci_deploy: "ci_deploy";
|
|
141
141
|
space_publisher: "space_publisher";
|
|
@@ -152,17 +152,17 @@ export declare const ApiKeySchema: z.ZodObject<{
|
|
|
152
152
|
tenantId: z.ZodNullable<z.ZodString>;
|
|
153
153
|
subject: z.ZodNullable<z.ZodObject<{
|
|
154
154
|
type: z.ZodEnum<{
|
|
155
|
+
team: "team";
|
|
155
156
|
external: "external";
|
|
156
|
-
user: "user";
|
|
157
157
|
system: "system";
|
|
158
|
-
|
|
158
|
+
user: "user";
|
|
159
159
|
}>;
|
|
160
160
|
id: z.ZodString;
|
|
161
161
|
}, z.core.$strip>>;
|
|
162
162
|
ownerPrincipal: z.ZodNullable<z.ZodObject<{
|
|
163
163
|
type: z.ZodEnum<{
|
|
164
|
-
external: "external";
|
|
165
164
|
team: "team";
|
|
165
|
+
external: "external";
|
|
166
166
|
}>;
|
|
167
167
|
id: z.ZodString;
|
|
168
168
|
}, z.core.$strip>>;
|
|
@@ -262,17 +262,17 @@ export declare const ApiKeyListResponseSchema: z.ZodObject<{
|
|
|
262
262
|
tenantId: z.ZodNullable<z.ZodString>;
|
|
263
263
|
subject: z.ZodNullable<z.ZodObject<{
|
|
264
264
|
type: z.ZodEnum<{
|
|
265
|
+
team: "team";
|
|
265
266
|
external: "external";
|
|
266
|
-
user: "user";
|
|
267
267
|
system: "system";
|
|
268
|
-
|
|
268
|
+
user: "user";
|
|
269
269
|
}>;
|
|
270
270
|
id: z.ZodString;
|
|
271
271
|
}, z.core.$strip>>;
|
|
272
272
|
ownerPrincipal: z.ZodNullable<z.ZodObject<{
|
|
273
273
|
type: z.ZodEnum<{
|
|
274
|
-
external: "external";
|
|
275
274
|
team: "team";
|
|
275
|
+
external: "external";
|
|
276
276
|
}>;
|
|
277
277
|
id: z.ZodString;
|
|
278
278
|
}, z.core.$strip>>;
|
|
@@ -511,7 +511,6 @@ export declare const ApiKeyPatchRequestSchema: z.ZodObject<{
|
|
|
511
511
|
}, z.core.$strict>>;
|
|
512
512
|
}, z.core.$strict>>;
|
|
513
513
|
}, z.core.$strip>;
|
|
514
|
-
export type ApiKeyPatchRequest = z.infer<typeof ApiKeyPatchRequestSchema>;
|
|
515
514
|
export declare const ApiKeyParamsSchema: z.ZodObject<{
|
|
516
515
|
apiKeyId: z.ZodString;
|
|
517
516
|
}, z.core.$strip>;
|
|
@@ -79,6 +79,9 @@ export function parseStatticResource(value) {
|
|
|
79
79
|
}
|
|
80
80
|
return null;
|
|
81
81
|
}
|
|
82
|
+
if (head === "space" && isResourceSegment(a) && path.length === 2) {
|
|
83
|
+
return { kind: "space", tenantId, siteId: null, spaceId: a, wildcard };
|
|
84
|
+
}
|
|
82
85
|
if (head === "domain" && isResourceSegment(a) && path.length === 2 && !wildcard) {
|
|
83
86
|
return { kind: "domain", tenantId, domainId: a };
|
|
84
87
|
}
|
|
@@ -91,10 +94,10 @@ const StatticResourceSchema = z
|
|
|
91
94
|
.string()
|
|
92
95
|
.max(512)
|
|
93
96
|
.refine((value) => parseStatticResource(value) !== null, {
|
|
94
|
-
message: "Resource must be a stt:// URI from the StatticResource union (tenant, principal, site, site space, domain, or domain-group).",
|
|
97
|
+
message: "Resource must be a stt:// URI from the StatticResource union (tenant, principal, site, space, site space, domain, or domain-group).",
|
|
95
98
|
})
|
|
96
|
-
.describe("A resource URI from the StatticResource union: stt://tenant/{t}, …/principal/(team|external)/{id}[/*], …/site/{id}[/*], …/site/{id}/space/{id}[/*], …/domain/{id}, or …/domain-group/{id}.");
|
|
97
|
-
export const
|
|
99
|
+
.describe("A resource URI from the StatticResource union: stt://tenant/{t}, …/principal/(team|external)/{id}[/*], …/site/{id}[/*], …/space/{id}[/*], …/site/{id}/space/{id}[/*], …/domain/{id}, or …/domain-group/{id}.");
|
|
100
|
+
export const ApiCredentialPolicySchema = z
|
|
98
101
|
.object({
|
|
99
102
|
version: z
|
|
100
103
|
.literal(SPACEFAST_ACCESS_POLICY_VERSION)
|
|
@@ -161,7 +164,7 @@ export const ApiKeySchema = z.object({
|
|
|
161
164
|
ownerPrincipal: ApiKeyOwnerPrincipalSchema.nullable().describe("Owning principal (ownership metadata, never the authorization gate)."),
|
|
162
165
|
createdByUserId: z.string().describe("User who created the key."),
|
|
163
166
|
preset: ApiKeyPresetSchema.nullable().describe("Preset the policy was compiled from, if any."),
|
|
164
|
-
policy:
|
|
167
|
+
policy: ApiCredentialPolicySchema.nullable().describe("Effective access policy. A key authorizes by policy only."),
|
|
165
168
|
metadata: AnyObjectSchema.describe("Caller-supplied metadata."),
|
|
166
169
|
secretPreview: z.string().describe("Masked secret preview (prefix and last characters)."),
|
|
167
170
|
secret: z.string().optional().describe("Full secret. Returned once, at creation only."),
|
|
@@ -196,7 +199,7 @@ export const ApiKeyCreateRequestSchema = z.object({
|
|
|
196
199
|
.optional()
|
|
197
200
|
.describe("Owning team for the new key. Defaults to the caller's own team; authorization is by the credential's policy, not key ownership."),
|
|
198
201
|
preset: ApiKeyPresetSchema.optional(),
|
|
199
|
-
policy:
|
|
202
|
+
policy: ApiCredentialPolicySchema.nullable()
|
|
200
203
|
.optional()
|
|
201
204
|
.describe("Explicit policy. Must be a subset of the calling credential's policy."),
|
|
202
205
|
metadata: AnyObjectSchema.optional().describe("Caller-supplied metadata."),
|
|
@@ -225,7 +228,7 @@ export const ApiKeyPatchRequestSchema = z
|
|
|
225
228
|
.nullable()
|
|
226
229
|
.optional()
|
|
227
230
|
.describe("Replacement activation instant."),
|
|
228
|
-
policy:
|
|
231
|
+
policy: ApiCredentialPolicySchema.optional().describe("Replacement policy. Must be a subset of the calling credential's policy at mutation time."),
|
|
229
232
|
})
|
|
230
233
|
.refine((value) => Object.keys(value).length > 0, {
|
|
231
234
|
message: "At least one mutable API key field is required.",
|
|
@@ -20,12 +20,15 @@ export declare const spaceExportSchema: z.ZodObject<{
|
|
|
20
20
|
spaceId: z.ZodString;
|
|
21
21
|
status: z.ZodEnum<{
|
|
22
22
|
failed: "failed";
|
|
23
|
+
expired: "expired";
|
|
24
|
+
ready: "ready";
|
|
23
25
|
queued: "queued";
|
|
24
26
|
running: "running";
|
|
25
|
-
ready: "ready";
|
|
26
|
-
expired: "expired";
|
|
27
27
|
}>;
|
|
28
|
-
format: z.
|
|
28
|
+
format: z.ZodEnum<{
|
|
29
|
+
spacefast_export_v1: "spacefast_export_v1";
|
|
30
|
+
stattic_export_v1: "stattic_export_v1";
|
|
31
|
+
}>;
|
|
29
32
|
diagnostics: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
30
33
|
code: z.ZodString;
|
|
31
34
|
severity: z.ZodEnum<{
|
|
@@ -36,9 +39,9 @@ export declare const spaceExportSchema: z.ZodObject<{
|
|
|
36
39
|
message: z.ZodString;
|
|
37
40
|
path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
38
41
|
provider: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
42
|
+
registrar: "registrar";
|
|
39
43
|
wpcloud: "wpcloud";
|
|
40
44
|
dns: "dns";
|
|
41
|
-
registrar: "registrar";
|
|
42
45
|
runtime: "runtime";
|
|
43
46
|
}>>>;
|
|
44
47
|
details: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
@@ -62,12 +65,15 @@ export declare const spaceExportListResponseSchema: z.ZodObject<{
|
|
|
62
65
|
spaceId: z.ZodString;
|
|
63
66
|
status: z.ZodEnum<{
|
|
64
67
|
failed: "failed";
|
|
68
|
+
expired: "expired";
|
|
69
|
+
ready: "ready";
|
|
65
70
|
queued: "queued";
|
|
66
71
|
running: "running";
|
|
67
|
-
ready: "ready";
|
|
68
|
-
expired: "expired";
|
|
69
72
|
}>;
|
|
70
|
-
format: z.
|
|
73
|
+
format: z.ZodEnum<{
|
|
74
|
+
spacefast_export_v1: "spacefast_export_v1";
|
|
75
|
+
stattic_export_v1: "stattic_export_v1";
|
|
76
|
+
}>;
|
|
71
77
|
diagnostics: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
72
78
|
code: z.ZodString;
|
|
73
79
|
severity: z.ZodEnum<{
|
|
@@ -78,9 +84,9 @@ export declare const spaceExportListResponseSchema: z.ZodObject<{
|
|
|
78
84
|
message: z.ZodString;
|
|
79
85
|
path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
80
86
|
provider: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
87
|
+
registrar: "registrar";
|
|
81
88
|
wpcloud: "wpcloud";
|
|
82
89
|
dns: "dns";
|
|
83
|
-
registrar: "registrar";
|
|
84
90
|
runtime: "runtime";
|
|
85
91
|
}>>>;
|
|
86
92
|
details: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
@@ -130,8 +136,8 @@ export declare const spaceImportSchema: z.ZodObject<{
|
|
|
130
136
|
status: z.ZodEnum<{
|
|
131
137
|
failed: "failed";
|
|
132
138
|
canceled: "canceled";
|
|
133
|
-
ready: "ready";
|
|
134
139
|
created: "created";
|
|
140
|
+
ready: "ready";
|
|
135
141
|
waiting_for_archive: "waiting_for_archive";
|
|
136
142
|
validating: "validating";
|
|
137
143
|
materializing: "materializing";
|
|
@@ -139,8 +145,8 @@ export declare const spaceImportSchema: z.ZodObject<{
|
|
|
139
145
|
archiveUpload: z.ZodOptional<z.ZodObject<{
|
|
140
146
|
id: z.ZodString;
|
|
141
147
|
mode: z.ZodEnum<{
|
|
142
|
-
dist: "dist";
|
|
143
148
|
source: "source";
|
|
149
|
+
dist: "dist";
|
|
144
150
|
}>;
|
|
145
151
|
expiresAt: z.ZodString;
|
|
146
152
|
summary: z.ZodObject<{
|
|
@@ -188,9 +194,9 @@ export declare const spaceImportSchema: z.ZodObject<{
|
|
|
188
194
|
message: z.ZodString;
|
|
189
195
|
path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
190
196
|
provider: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
197
|
+
registrar: "registrar";
|
|
191
198
|
wpcloud: "wpcloud";
|
|
192
199
|
dns: "dns";
|
|
193
|
-
registrar: "registrar";
|
|
194
200
|
runtime: "runtime";
|
|
195
201
|
}>>>;
|
|
196
202
|
details: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
@@ -210,9 +216,9 @@ export declare const spaceImportSchema: z.ZodObject<{
|
|
|
210
216
|
message: z.ZodString;
|
|
211
217
|
path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
212
218
|
provider: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
219
|
+
registrar: "registrar";
|
|
213
220
|
wpcloud: "wpcloud";
|
|
214
221
|
dns: "dns";
|
|
215
|
-
registrar: "registrar";
|
|
216
222
|
runtime: "runtime";
|
|
217
223
|
}>>>;
|
|
218
224
|
details: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
@@ -230,8 +236,8 @@ export declare const spaceImportListResponseSchema: z.ZodObject<{
|
|
|
230
236
|
status: z.ZodEnum<{
|
|
231
237
|
failed: "failed";
|
|
232
238
|
canceled: "canceled";
|
|
233
|
-
ready: "ready";
|
|
234
239
|
created: "created";
|
|
240
|
+
ready: "ready";
|
|
235
241
|
waiting_for_archive: "waiting_for_archive";
|
|
236
242
|
validating: "validating";
|
|
237
243
|
materializing: "materializing";
|
|
@@ -239,8 +245,8 @@ export declare const spaceImportListResponseSchema: z.ZodObject<{
|
|
|
239
245
|
archiveUpload: z.ZodOptional<z.ZodObject<{
|
|
240
246
|
id: z.ZodString;
|
|
241
247
|
mode: z.ZodEnum<{
|
|
242
|
-
dist: "dist";
|
|
243
248
|
source: "source";
|
|
249
|
+
dist: "dist";
|
|
244
250
|
}>;
|
|
245
251
|
expiresAt: z.ZodString;
|
|
246
252
|
summary: z.ZodObject<{
|
|
@@ -288,9 +294,9 @@ export declare const spaceImportListResponseSchema: z.ZodObject<{
|
|
|
288
294
|
message: z.ZodString;
|
|
289
295
|
path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
290
296
|
provider: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
297
|
+
registrar: "registrar";
|
|
291
298
|
wpcloud: "wpcloud";
|
|
292
299
|
dns: "dns";
|
|
293
|
-
registrar: "registrar";
|
|
294
300
|
runtime: "runtime";
|
|
295
301
|
}>>>;
|
|
296
302
|
details: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
@@ -310,9 +316,9 @@ export declare const spaceImportListResponseSchema: z.ZodObject<{
|
|
|
310
316
|
message: z.ZodString;
|
|
311
317
|
path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
312
318
|
provider: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
319
|
+
registrar: "registrar";
|
|
313
320
|
wpcloud: "wpcloud";
|
|
314
321
|
dns: "dns";
|
|
315
|
-
registrar: "registrar";
|
|
316
322
|
runtime: "runtime";
|
|
317
323
|
}>>>;
|
|
318
324
|
details: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
@@ -18,7 +18,7 @@ export const spaceExportRequestSchema = z.object({
|
|
|
18
18
|
.describe("Include explicit space config (the space access policy) in the archive. Version manifests are always included."),
|
|
19
19
|
});
|
|
20
20
|
export const spaceExportArchiveSchema = z.object({
|
|
21
|
-
// Zip-only contract:
|
|
21
|
+
// Zip-only contract: spacefast_export_v1 archives are always zip (the spec
|
|
22
22
|
// allows "zip or tar"; one format keeps the enum honest).
|
|
23
23
|
contentType: z.literal("application/zip").describe("Archive media type. Always zip."),
|
|
24
24
|
downloadUrl: z
|
|
@@ -40,7 +40,11 @@ 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
|
-
|
|
43
|
+
// Producers emit `spacefast_export_v1`; `stattic_export_v1` remains accepted
|
|
44
|
+
// for archives/handles minted before the rename (legacy read-compat).
|
|
45
|
+
format: z
|
|
46
|
+
.enum(["spacefast_export_v1", "stattic_export_v1"])
|
|
47
|
+
.describe("Archive format identifier. New exports are `spacefast_export_v1`."),
|
|
44
48
|
diagnostics: z
|
|
45
49
|
.array(baseDiagnosticSchema)
|
|
46
50
|
.default([])
|
|
@@ -68,14 +72,17 @@ export const spaceImportSourceSchema = z
|
|
|
68
72
|
}),
|
|
69
73
|
z.object({
|
|
70
74
|
kind: z.literal("url").describe("Fetch the archive from a public HTTPS URL."),
|
|
71
|
-
url: z
|
|
75
|
+
url: z
|
|
76
|
+
.string()
|
|
77
|
+
.url()
|
|
78
|
+
.describe("Public HTTPS URL of a spacefast_export_v1 (or legacy stattic_export_v1) archive."),
|
|
72
79
|
}),
|
|
73
80
|
z.object({
|
|
74
81
|
kind: z.literal("export").describe("Import directly from an export on this control plane."),
|
|
75
82
|
exportId: z.string().min(1).describe("Source export id (exp_…) accessible to the caller."),
|
|
76
83
|
}),
|
|
77
84
|
])
|
|
78
|
-
.describe("Where the
|
|
85
|
+
.describe("Where the spacefast_export_v1 archive comes from.");
|
|
79
86
|
export const spaceImportRequestSchema = z.object({
|
|
80
87
|
source: spaceImportSourceSchema,
|
|
81
88
|
publish: z
|
|
@@ -6,7 +6,6 @@ export declare const billingProviderSchema: z.ZodEnum<{
|
|
|
6
6
|
app_store: "app_store";
|
|
7
7
|
google_play: "google_play";
|
|
8
8
|
}>;
|
|
9
|
-
export type BillingProvider = z.infer<typeof billingProviderSchema>;
|
|
10
9
|
export declare const billingIntervalValues: readonly ["monthly", "yearly"];
|
|
11
10
|
export declare const billingIntervalSchema: z.ZodEnum<{
|
|
12
11
|
monthly: "monthly";
|
|
@@ -30,17 +29,17 @@ export type BillingTransactionKind = z.infer<typeof billingTransactionKindSchema
|
|
|
30
29
|
export declare const billingTransactionScopeValues: readonly ["plan", "seats", "domain", "other"];
|
|
31
30
|
export declare const billingTransactionScopeSchema: z.ZodEnum<{
|
|
32
31
|
domain: "domain";
|
|
32
|
+
other: "other";
|
|
33
33
|
plan: "plan";
|
|
34
34
|
seats: "seats";
|
|
35
|
-
other: "other";
|
|
36
35
|
}>;
|
|
37
36
|
export type BillingTransactionScope = z.infer<typeof billingTransactionScopeSchema>;
|
|
38
37
|
export declare const billingAddonSourceValues: readonly ["grant", "stripe"];
|
|
39
38
|
export declare const billingAddonLimitKeyValues: readonly ["teamMembers", "subTeams", "storageBytes", "externalDomainGroups"];
|
|
40
39
|
export declare const billingAddonLimitKeySchema: z.ZodEnum<{
|
|
41
|
-
storageBytes: "storageBytes";
|
|
42
40
|
teamMembers: "teamMembers";
|
|
43
41
|
subTeams: "subTeams";
|
|
42
|
+
storageBytes: "storageBytes";
|
|
44
43
|
externalDomainGroups: "externalDomainGroups";
|
|
45
44
|
}>;
|
|
46
45
|
export type BillingAddonLimitKey = z.infer<typeof billingAddonLimitKeySchema>;
|
|
@@ -53,10 +52,10 @@ export declare const billingPlanSourceSchema: z.ZodObject<{
|
|
|
53
52
|
}>;
|
|
54
53
|
planCode: z.ZodEnum<{
|
|
55
54
|
free: "free";
|
|
56
|
-
|
|
55
|
+
internal: "internal";
|
|
57
56
|
work: "work";
|
|
57
|
+
personal: "personal";
|
|
58
58
|
enterprise: "enterprise";
|
|
59
|
-
internal: "internal";
|
|
60
59
|
}>;
|
|
61
60
|
active: z.ZodBoolean;
|
|
62
61
|
detail: z.ZodString;
|
|
@@ -68,7 +67,6 @@ export declare const billingStoreAccountResponseSchema: z.ZodObject<{
|
|
|
68
67
|
appStoreProducts: z.ZodArray<z.ZodString>;
|
|
69
68
|
googlePlayBasePlans: z.ZodArray<z.ZodString>;
|
|
70
69
|
}, z.core.$strip>;
|
|
71
|
-
export type BillingStoreAccountResponse = z.infer<typeof billingStoreAccountResponseSchema>;
|
|
72
70
|
export declare const appStoreVerifyRequestSchema: z.ZodObject<{
|
|
73
71
|
transactionId: z.ZodString;
|
|
74
72
|
}, z.core.$strip>;
|
|
@@ -88,14 +86,13 @@ export declare const storeSubscriptionResultSchema: z.ZodObject<{
|
|
|
88
86
|
isActive: z.ZodBoolean;
|
|
89
87
|
expiresAt: z.ZodNullable<z.ZodString>;
|
|
90
88
|
}, z.core.$strip>;
|
|
91
|
-
export type StoreSubscriptionResult = z.infer<typeof storeSubscriptionResultSchema>;
|
|
92
89
|
export declare const stripeCheckoutRequestSchema: z.ZodObject<{
|
|
93
90
|
planCode: z.ZodDefault<z.ZodEnum<{
|
|
94
91
|
free: "free";
|
|
95
|
-
|
|
92
|
+
internal: "internal";
|
|
96
93
|
work: "work";
|
|
94
|
+
personal: "personal";
|
|
97
95
|
enterprise: "enterprise";
|
|
98
|
-
internal: "internal";
|
|
99
96
|
}>>;
|
|
100
97
|
billingInterval: z.ZodDefault<z.ZodEnum<{
|
|
101
98
|
monthly: "monthly";
|
|
@@ -104,38 +101,33 @@ export declare const stripeCheckoutRequestSchema: z.ZodObject<{
|
|
|
104
101
|
successUrl: z.ZodString;
|
|
105
102
|
cancelUrl: z.ZodString;
|
|
106
103
|
}, z.core.$strip>;
|
|
107
|
-
export type StripeCheckoutRequest = z.infer<typeof stripeCheckoutRequestSchema>;
|
|
108
104
|
export declare const stripePortalRequestSchema: z.ZodObject<{
|
|
109
105
|
returnUrl: z.ZodString;
|
|
110
106
|
}, z.core.$strip>;
|
|
111
|
-
export type StripePortalRequest = z.infer<typeof stripePortalRequestSchema>;
|
|
112
107
|
export declare const billingLinkResponseSchema: z.ZodObject<{
|
|
113
108
|
url: z.ZodString;
|
|
114
109
|
}, z.core.$strip>;
|
|
115
110
|
export type BillingLinkResponse = z.infer<typeof billingLinkResponseSchema>;
|
|
116
111
|
export declare const stripeCancelSubscriptionRequestSchema: z.ZodDefault<z.ZodObject<{}, z.core.$strip>>;
|
|
117
|
-
export type StripeCancelSubscriptionRequest = z.infer<typeof stripeCancelSubscriptionRequestSchema>;
|
|
118
112
|
export declare const stripeChangePlanRequestSchema: z.ZodObject<{
|
|
119
113
|
planCode: z.ZodEnum<{
|
|
120
114
|
free: "free";
|
|
121
|
-
|
|
115
|
+
internal: "internal";
|
|
122
116
|
work: "work";
|
|
117
|
+
personal: "personal";
|
|
123
118
|
enterprise: "enterprise";
|
|
124
|
-
|
|
125
|
-
}> & z.ZodType<"personal" | "work" | "enterprise" | "internal", "free" | "personal" | "work" | "enterprise" | "internal", z.core.$ZodTypeInternals<"personal" | "work" | "enterprise" | "internal", "free" | "personal" | "work" | "enterprise" | "internal">>;
|
|
119
|
+
}> & z.ZodType<"internal" | "work" | "personal" | "enterprise", "free" | "internal" | "work" | "personal" | "enterprise", z.core.$ZodTypeInternals<"internal" | "work" | "personal" | "enterprise", "free" | "internal" | "work" | "personal" | "enterprise">>;
|
|
126
120
|
billingInterval: z.ZodDefault<z.ZodEnum<{
|
|
127
121
|
monthly: "monthly";
|
|
128
122
|
yearly: "yearly";
|
|
129
123
|
}>>;
|
|
130
124
|
}, z.core.$strip>;
|
|
131
|
-
export type StripeChangePlanRequest = z.infer<typeof stripeChangePlanRequestSchema>;
|
|
132
125
|
export declare const stripeSubscriptionActionResponseSchema: z.ZodObject<{
|
|
133
126
|
provider: z.ZodLiteral<"stripe">;
|
|
134
127
|
stripeSubscriptionId: z.ZodString;
|
|
135
128
|
status: z.ZodString;
|
|
136
129
|
cancelAtPeriodEnd: z.ZodNullable<z.ZodBoolean>;
|
|
137
130
|
}, z.core.$strip>;
|
|
138
|
-
export type StripeSubscriptionActionResponse = z.infer<typeof stripeSubscriptionActionResponseSchema>;
|
|
139
131
|
export declare const billingAddressSchema: z.ZodObject<{
|
|
140
132
|
line1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
141
133
|
line2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -164,8 +156,8 @@ export declare const teamBillingSettingsSchema: z.ZodObject<{
|
|
|
164
156
|
invoiceFooter: z.ZodNullable<z.ZodString>;
|
|
165
157
|
customFields: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
166
158
|
stripeCustomerSyncStatus: z.ZodNullable<z.ZodEnum<{
|
|
167
|
-
pending: "pending";
|
|
168
159
|
failed: "failed";
|
|
160
|
+
pending: "pending";
|
|
169
161
|
synced: "synced";
|
|
170
162
|
}>>;
|
|
171
163
|
stripeCustomerSyncedAt: z.ZodNullable<z.ZodString>;
|
|
@@ -192,8 +184,8 @@ export declare const teamBillingSettingsResponseSchema: z.ZodObject<{
|
|
|
192
184
|
invoiceFooter: z.ZodNullable<z.ZodString>;
|
|
193
185
|
customFields: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
194
186
|
stripeCustomerSyncStatus: z.ZodNullable<z.ZodEnum<{
|
|
195
|
-
pending: "pending";
|
|
196
187
|
failed: "failed";
|
|
188
|
+
pending: "pending";
|
|
197
189
|
synced: "synced";
|
|
198
190
|
}>>;
|
|
199
191
|
stripeCustomerSyncedAt: z.ZodNullable<z.ZodString>;
|
|
@@ -218,7 +210,6 @@ export declare const teamBillingSettingsUpdateSchema: z.ZodObject<{
|
|
|
218
210
|
invoiceFooter: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
219
211
|
customFields: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
220
212
|
}, z.core.$strict>;
|
|
221
|
-
export type TeamBillingSettingsResponse = z.infer<typeof teamBillingSettingsResponseSchema>;
|
|
222
213
|
export type TeamBillingSettingsUpdate = z.infer<typeof teamBillingSettingsUpdateSchema>;
|
|
223
214
|
export declare const billingCustomerRefSchema: z.ZodObject<{
|
|
224
215
|
id: z.ZodString;
|
|
@@ -232,10 +223,10 @@ export declare const billingSubscriptionSummarySchema: z.ZodObject<{
|
|
|
232
223
|
provider: z.ZodLiteral<"stripe">;
|
|
233
224
|
planCode: z.ZodNullable<z.ZodEnum<{
|
|
234
225
|
free: "free";
|
|
235
|
-
|
|
226
|
+
internal: "internal";
|
|
236
227
|
work: "work";
|
|
228
|
+
personal: "personal";
|
|
237
229
|
enterprise: "enterprise";
|
|
238
|
-
internal: "internal";
|
|
239
230
|
}>>;
|
|
240
231
|
status: z.ZodString;
|
|
241
232
|
providerStatus: z.ZodNullable<z.ZodString>;
|
|
@@ -246,8 +237,8 @@ export declare const billingSubscriptionSummarySchema: z.ZodObject<{
|
|
|
246
237
|
export declare const billingResourceChargeSummarySchema: z.ZodObject<{
|
|
247
238
|
id: z.ZodString;
|
|
248
239
|
subjectType: z.ZodEnum<{
|
|
249
|
-
space: "space";
|
|
250
240
|
site: "site";
|
|
241
|
+
space: "space";
|
|
251
242
|
domain: "domain";
|
|
252
243
|
}>;
|
|
253
244
|
kind: z.ZodString;
|
|
@@ -258,10 +249,10 @@ export declare const TeamBillingResponseSchema: z.ZodObject<{
|
|
|
258
249
|
teamId: z.ZodString;
|
|
259
250
|
planCode: z.ZodEnum<{
|
|
260
251
|
free: "free";
|
|
261
|
-
|
|
252
|
+
internal: "internal";
|
|
262
253
|
work: "work";
|
|
254
|
+
personal: "personal";
|
|
263
255
|
enterprise: "enterprise";
|
|
264
|
-
internal: "internal";
|
|
265
256
|
}>;
|
|
266
257
|
billingCustomerRefs: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
267
258
|
id: z.ZodString;
|
|
@@ -275,10 +266,10 @@ export declare const TeamBillingResponseSchema: z.ZodObject<{
|
|
|
275
266
|
provider: z.ZodLiteral<"stripe">;
|
|
276
267
|
planCode: z.ZodNullable<z.ZodEnum<{
|
|
277
268
|
free: "free";
|
|
278
|
-
|
|
269
|
+
internal: "internal";
|
|
279
270
|
work: "work";
|
|
271
|
+
personal: "personal";
|
|
280
272
|
enterprise: "enterprise";
|
|
281
|
-
internal: "internal";
|
|
282
273
|
}>>;
|
|
283
274
|
status: z.ZodString;
|
|
284
275
|
providerStatus: z.ZodNullable<z.ZodString>;
|
|
@@ -289,8 +280,8 @@ export declare const TeamBillingResponseSchema: z.ZodObject<{
|
|
|
289
280
|
resourceCharges: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
290
281
|
id: z.ZodString;
|
|
291
282
|
subjectType: z.ZodEnum<{
|
|
292
|
-
space: "space";
|
|
293
283
|
site: "site";
|
|
284
|
+
space: "space";
|
|
294
285
|
domain: "domain";
|
|
295
286
|
}>;
|
|
296
287
|
kind: z.ZodString;
|
|
@@ -306,10 +297,10 @@ export declare const TeamBillingResponseSchema: z.ZodObject<{
|
|
|
306
297
|
provider: z.ZodLiteral<"stripe">;
|
|
307
298
|
planCode: z.ZodNullable<z.ZodEnum<{
|
|
308
299
|
free: "free";
|
|
309
|
-
|
|
300
|
+
internal: "internal";
|
|
310
301
|
work: "work";
|
|
302
|
+
personal: "personal";
|
|
311
303
|
enterprise: "enterprise";
|
|
312
|
-
internal: "internal";
|
|
313
304
|
}>>;
|
|
314
305
|
status: z.ZodString;
|
|
315
306
|
providerStatus: z.ZodNullable<z.ZodString>;
|