@spacefast/common 0.0.5 → 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.
Files changed (150) hide show
  1. package/dist/agents/connect-targets.d.ts +133 -0
  2. package/dist/agents/connect-targets.js +224 -0
  3. package/dist/brand.d.ts +1 -0
  4. package/dist/brand.js +5 -0
  5. package/dist/config/domains.d.ts +12 -6
  6. package/dist/config/domains.js +30 -38
  7. package/dist/contracts/access.d.ts +825 -125
  8. package/dist/contracts/access.js +771 -148
  9. package/dist/contracts/activity.d.ts +1 -1
  10. package/dist/contracts/activity.js +28 -2
  11. package/dist/contracts/annotations.d.ts +2 -4
  12. package/dist/contracts/api-keys.d.ts +3 -4
  13. package/dist/contracts/api-keys.js +9 -6
  14. package/dist/contracts/archives.d.ts +8 -2
  15. package/dist/contracts/archives.js +11 -4
  16. package/dist/contracts/billing.d.ts +0 -9
  17. package/dist/contracts/builds.d.ts +25 -21
  18. package/dist/contracts/builds.js +12 -0
  19. package/dist/contracts/common.d.ts +2 -0
  20. package/dist/contracts/common.js +4 -0
  21. package/dist/contracts/continuation.d.ts +0 -3
  22. package/dist/contracts/countries.d.ts +2 -0
  23. package/dist/contracts/countries.js +261 -0
  24. package/dist/contracts/deployments.d.ts +34 -34
  25. package/dist/contracts/device-auth.d.ts +4 -11
  26. package/dist/contracts/device-auth.js +4 -0
  27. package/dist/contracts/docs.d.ts +119 -0
  28. package/dist/contracts/docs.js +51 -0
  29. package/dist/contracts/domains.d.ts +96 -54
  30. package/dist/contracts/domains.js +26 -4
  31. package/dist/contracts/enums.d.ts +15 -16
  32. package/dist/contracts/enums.js +25 -14
  33. package/dist/contracts/error-code-meta.d.ts +72 -0
  34. package/dist/contracts/error-code-meta.js +96 -10
  35. package/dist/contracts/error-codes.d.ts +1 -1
  36. package/dist/contracts/error-codes.js +14 -0
  37. package/dist/contracts/events.d.ts +1 -1
  38. package/dist/contracts/features.d.ts +76 -6
  39. package/dist/contracts/features.js +178 -13
  40. package/dist/contracts/git.d.ts +2 -8
  41. package/dist/contracts/ids.d.ts +5 -0
  42. package/dist/contracts/ids.js +5 -0
  43. package/dist/contracts/mcp.d.ts +8 -10
  44. package/dist/contracts/me.js +1 -1
  45. package/dist/contracts/oauth-resources.d.ts +19 -8
  46. package/dist/contracts/oauth-resources.js +44 -13
  47. package/dist/contracts/platform.d.ts +0 -102
  48. package/dist/contracts/platform.js +0 -50
  49. package/dist/contracts/push-new.d.ts +4 -4
  50. package/dist/contracts/quotas.d.ts +2 -0
  51. package/dist/contracts/quotas.js +8 -0
  52. package/dist/contracts/repository-connections.d.ts +6 -8
  53. package/dist/contracts/resources.d.ts +97 -13
  54. package/dist/contracts/resources.js +26 -2
  55. package/dist/contracts/routes.d.ts +0 -2
  56. package/dist/contracts/runtime-api.d.ts +361 -39
  57. package/dist/contracts/runtime-api.js +275 -6
  58. package/dist/contracts/sites.d.ts +19 -2
  59. package/dist/contracts/sites.js +21 -0
  60. package/dist/contracts/space-config.d.ts +201 -2
  61. package/dist/contracts/space-config.js +135 -5
  62. package/dist/contracts/spaces.d.ts +364 -193
  63. package/dist/contracts/spaces.js +40 -8
  64. package/dist/contracts/superadmin-emails.d.ts +4 -2
  65. package/dist/contracts/superadmin-emails.js +8 -0
  66. package/dist/contracts/superadmin-queues.d.ts +26 -26
  67. package/dist/contracts/superadmin-spaces.d.ts +170 -42
  68. package/dist/contracts/superadmin.d.ts +6 -93
  69. package/dist/contracts/superadmin.js +6 -14
  70. package/dist/contracts/tags.d.ts +10 -9
  71. package/dist/contracts/tags.js +2 -1
  72. package/dist/contracts/teams.d.ts +21 -22
  73. package/dist/contracts/teams.js +0 -1
  74. package/dist/contracts/theme-json.d.ts +30 -0
  75. package/dist/contracts/theme-json.js +48 -0
  76. package/dist/contracts/variables.d.ts +0 -2
  77. package/dist/contracts/variables.js +0 -5
  78. package/dist/contracts/webhooks.d.ts +2 -0
  79. package/dist/contracts/webhooks.js +1 -1
  80. package/dist/contracts/zero.d.ts +5 -10
  81. package/dist/docs/agent-prose.d.ts +43 -3
  82. package/dist/docs/agent-prose.js +146 -7
  83. package/dist/docs/agent-setup.js +45 -13
  84. package/dist/docs/agent-solutions.d.ts +5 -5
  85. package/dist/docs/agent-solutions.js +2 -2
  86. package/dist/docs/catalog.d.ts +650 -0
  87. package/dist/docs/catalog.js +758 -0
  88. package/dist/docs/error-docs.d.ts +0 -2
  89. package/dist/docs/error-docs.js +77 -35
  90. package/dist/docs/index-build.d.ts +17 -0
  91. package/dist/docs/index-build.js +24 -0
  92. package/dist/docs/search.d.ts +54 -0
  93. package/dist/docs/search.js +96 -0
  94. package/dist/docs/skill-distribution.d.ts +5 -3
  95. package/dist/docs/skill-distribution.js +8 -8
  96. package/dist/utils/access-match.d.ts +39 -0
  97. package/dist/utils/access-match.js +296 -0
  98. package/dist/utils/auth-redirect.d.ts +3 -1
  99. package/dist/utils/auth-redirect.js +21 -1
  100. package/dist/utils/build-settings.d.ts +6 -0
  101. package/dist/utils/build-settings.js +429 -46
  102. package/dist/utils/claim-token.d.ts +8 -0
  103. package/dist/utils/claim-token.js +23 -2
  104. package/dist/utils/content-type.d.ts +1 -0
  105. package/dist/utils/content-type.js +1 -1
  106. package/dist/utils/credential-policy.d.ts +54 -0
  107. package/dist/utils/{access-policy.js → credential-policy.js} +28 -2
  108. package/dist/utils/gate-theme.d.ts +61 -0
  109. package/dist/utils/gate-theme.js +217 -0
  110. package/dist/utils/git-repository.d.ts +0 -1
  111. package/dist/utils/git-repository.js +0 -3
  112. package/dist/utils/id-hints.d.ts +8 -0
  113. package/dist/utils/id-hints.js +61 -0
  114. package/dist/utils/local-space-state.d.ts +91 -0
  115. package/dist/utils/local-space-state.js +251 -0
  116. package/dist/utils/oauth-signed-query.d.ts +8 -0
  117. package/dist/utils/oauth-signed-query.js +26 -0
  118. package/dist/utils/publish-detection.d.ts +0 -8
  119. package/dist/utils/publish-detection.js +0 -93
  120. package/dist/utils/publish-policy.d.ts +6 -5
  121. package/dist/utils/publish-policy.js +71 -7
  122. package/dist/utils/query-keys.d.ts +15 -4
  123. package/dist/utils/query-keys.js +27 -4
  124. package/dist/utils/runtime-paths.d.ts +0 -1
  125. package/dist/utils/runtime-paths.js +0 -1
  126. package/dist/utils/runtime-upload-batch.d.ts +18 -0
  127. package/dist/utils/runtime-upload-batch.js +90 -0
  128. package/dist/utils/runtime-upload.d.ts +2 -0
  129. package/dist/utils/runtime-upload.js +5 -0
  130. package/dist/utils/space-config.d.ts +4 -0
  131. package/dist/utils/space-config.js +10 -1
  132. package/dist/utils/space-theme.d.ts +2 -0
  133. package/dist/utils/space-theme.js +9 -0
  134. package/dist/utils/static-runtime-policy.d.ts +0 -21
  135. package/dist/utils/static-runtime-policy.js +19 -103
  136. package/dist/utils/upload-session.d.ts +1 -1
  137. package/dist/utils/wpcom-auth-redirects.d.ts +32 -2
  138. package/dist/utils/wpcom-auth-redirects.js +26 -10
  139. package/dist/vocabulary.d.ts +130 -30
  140. package/dist/vocabulary.js +77 -36
  141. package/package.json +16 -1
  142. package/dist/contracts/account.d.ts +0 -28
  143. package/dist/contracts/account.js +0 -54
  144. package/dist/contracts/intercom.d.ts +0 -6
  145. package/dist/contracts/intercom.js +0 -5
  146. package/dist/contracts/telemetry.d.ts +0 -2
  147. package/dist/contracts/telemetry.js +0 -1
  148. package/dist/utils/access-policy.d.ts +0 -39
  149. package/dist/utils/error-display.d.ts +0 -7
  150. package/dist/utils/error-display.js +0 -42
@@ -12,101 +12,6 @@ export declare const domainPurchaseContactSchema: z.ZodObject<{
12
12
  email: z.ZodString;
13
13
  phone: z.ZodString;
14
14
  }, z.core.$strip>;
15
- export declare const domainContactUpdateSchema: z.ZodObject<{
16
- firstName: z.ZodOptional<z.ZodString>;
17
- lastName: z.ZodOptional<z.ZodString>;
18
- organization: z.ZodOptional<z.ZodOptional<z.ZodString>>;
19
- address1: z.ZodOptional<z.ZodString>;
20
- address2: z.ZodOptional<z.ZodOptional<z.ZodString>>;
21
- city: z.ZodOptional<z.ZodString>;
22
- state: z.ZodOptional<z.ZodString>;
23
- postalCode: z.ZodOptional<z.ZodString>;
24
- countryCode: z.ZodOptional<z.ZodString>;
25
- email: z.ZodOptional<z.ZodString>;
26
- phone: z.ZodOptional<z.ZodString>;
27
- }, z.core.$strip>;
28
- export declare const domainRegistrationUpdateSchema: z.ZodObject<{
29
- autoRenew: z.ZodOptional<z.ZodBoolean>;
30
- privacySetting: z.ZodOptional<z.ZodEnum<{
31
- enable_privacy_service: "enable_privacy_service";
32
- redact_contact_info: "redact_contact_info";
33
- disclose_contact_info: "disclose_contact_info";
34
- }>>;
35
- contactId: z.ZodOptional<z.ZodString>;
36
- }, z.core.$strip>;
37
- export declare const domainPurchaseSchema: z.ZodObject<{
38
- domain: z.ZodString;
39
- contact: z.ZodObject<{
40
- firstName: z.ZodString;
41
- lastName: z.ZodString;
42
- organization: z.ZodOptional<z.ZodString>;
43
- address1: z.ZodString;
44
- address2: z.ZodOptional<z.ZodString>;
45
- city: z.ZodString;
46
- state: z.ZodString;
47
- postalCode: z.ZodString;
48
- countryCode: z.ZodString;
49
- email: z.ZodString;
50
- phone: z.ZodString;
51
- }, z.core.$strip>;
52
- period: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
53
- privacySetting: z.ZodDefault<z.ZodEnum<{
54
- enable_privacy_service: "enable_privacy_service";
55
- redact_contact_info: "redact_contact_info";
56
- disclose_contact_info: "disclose_contact_info";
57
- }>>;
58
- expectedFeeAmount: z.ZodCoercedNumber<unknown>;
59
- }, z.core.$strip>;
60
- export declare const domainPurchaseCheckoutSchema: z.ZodObject<{
61
- domain: z.ZodString;
62
- contact: z.ZodObject<{
63
- firstName: z.ZodString;
64
- lastName: z.ZodString;
65
- organization: z.ZodOptional<z.ZodString>;
66
- address1: z.ZodString;
67
- address2: z.ZodOptional<z.ZodString>;
68
- city: z.ZodString;
69
- state: z.ZodString;
70
- postalCode: z.ZodString;
71
- countryCode: z.ZodString;
72
- email: z.ZodString;
73
- phone: z.ZodString;
74
- }, z.core.$strip>;
75
- period: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
76
- privacySetting: z.ZodDefault<z.ZodEnum<{
77
- enable_privacy_service: "enable_privacy_service";
78
- redact_contact_info: "redact_contact_info";
79
- disclose_contact_info: "disclose_contact_info";
80
- }>>;
81
- expectedFeeAmount: z.ZodCoercedNumber<unknown>;
82
- successUrl: z.ZodString;
83
- cancelUrl: z.ZodString;
84
- }, z.core.$strip>;
85
- export declare const domainTransferSchema: z.ZodObject<{
86
- domain: z.ZodString;
87
- authCode: z.ZodString;
88
- contact: z.ZodObject<{
89
- firstName: z.ZodString;
90
- lastName: z.ZodString;
91
- organization: z.ZodOptional<z.ZodString>;
92
- address1: z.ZodString;
93
- address2: z.ZodOptional<z.ZodString>;
94
- city: z.ZodString;
95
- state: z.ZodString;
96
- postalCode: z.ZodString;
97
- countryCode: z.ZodString;
98
- email: z.ZodString;
99
- phone: z.ZodString;
100
- }, z.core.$strip>;
101
- }, z.core.$strip>;
102
- export declare const domainEmailForwardSchema: z.ZodObject<{
103
- mailbox: z.ZodString;
104
- destination: z.ZodString;
105
- }, z.core.$strip>;
106
- export declare const domainEmailForwardUpdateSchema: z.ZodObject<{
107
- mailbox: z.ZodOptional<z.ZodString>;
108
- destination: z.ZodOptional<z.ZodString>;
109
- }, z.core.$strip>;
110
15
  export declare const logWindowQuerySchema: z.ZodObject<{
111
16
  limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
112
17
  cursor: z.ZodOptional<z.ZodString>;
@@ -350,10 +255,3 @@ export declare const runtimeSslActionResponseSchema: z.ZodObject<{
350
255
  domain: z.ZodString;
351
256
  raw: z.ZodRecord<z.ZodString, z.ZodUnknown>;
352
257
  }, z.core.$strip>;
353
- export declare const runtimeProviderRawResponseSchema: z.ZodObject<{
354
- ok: z.ZodLiteral<true>;
355
- message: z.ZodNullable<z.ZodString>;
356
- jobId: z.ZodNullable<z.ZodNumber>;
357
- responseTicketId: z.ZodNullable<z.ZodString>;
358
- raw: z.ZodRecord<z.ZodString, z.ZodUnknown>;
359
- }, z.core.$strip>;
@@ -1,6 +1,5 @@
1
1
  import { z } from "zod";
2
2
  import { CursorPaginationSchema, baseDiagnosticSchema, cursorListQuerySchema } from "./common.js";
3
- const atLeastOneKey = (value) => Object.keys(value).length > 0;
4
3
  export const domainPurchaseContactSchema = z.object({
5
4
  firstName: z.string().trim().min(1).max(80),
6
5
  lastName: z.string().trim().min(1).max(80),
@@ -14,48 +13,6 @@ export const domainPurchaseContactSchema = z.object({
14
13
  email: z.string().trim().email().max(190),
15
14
  phone: z.string().trim().min(7).max(32),
16
15
  });
17
- export const domainContactUpdateSchema = domainPurchaseContactSchema
18
- .partial()
19
- .refine(atLeastOneKey, "At least one contact field must be provided.");
20
- export const domainRegistrationUpdateSchema = z
21
- .object({
22
- autoRenew: z.boolean().optional(),
23
- privacySetting: z
24
- .enum(["enable_privacy_service", "redact_contact_info", "disclose_contact_info"])
25
- .optional(),
26
- contactId: z.string().trim().min(1).optional(),
27
- })
28
- .refine(atLeastOneKey, "At least one registration field must be provided.");
29
- export const domainPurchaseSchema = z.object({
30
- domain: z.string().trim().min(3).max(253),
31
- contact: domainPurchaseContactSchema,
32
- period: z.coerce.number().int().min(1).max(10).default(1),
33
- privacySetting: z
34
- .enum(["enable_privacy_service", "redact_contact_info", "disclose_contact_info"])
35
- .default("enable_privacy_service"),
36
- expectedFeeAmount: z.coerce.number().int().positive(),
37
- });
38
- export const domainPurchaseCheckoutSchema = domainPurchaseSchema.extend({
39
- successUrl: z.string().url(),
40
- cancelUrl: z.string().url(),
41
- });
42
- export const domainTransferSchema = z.object({
43
- domain: z.string().trim().min(3).max(253),
44
- authCode: z.string().trim().min(4).max(255),
45
- contact: domainPurchaseContactSchema,
46
- });
47
- export const domainEmailForwardSchema = z.object({
48
- mailbox: z
49
- .string()
50
- .trim()
51
- .min(1)
52
- .max(64)
53
- .regex(/^[A-Za-z0-9._%+-]+$/),
54
- destination: z.string().trim().email().max(190),
55
- });
56
- export const domainEmailForwardUpdateSchema = domainEmailForwardSchema
57
- .partial()
58
- .refine(atLeastOneKey, "At least one email forwarding field must be provided.");
59
16
  export const logWindowQuerySchema = cursorListQuerySchema.extend({
60
17
  since: z.string().datetime().optional().describe("Start of the log window."),
61
18
  until: z.string().datetime().optional().describe("End of the log window."),
@@ -207,10 +164,3 @@ export const runtimeSslActionResponseSchema = z.object({
207
164
  domain: z.string().min(1),
208
165
  raw: z.record(z.string(), z.unknown()),
209
166
  });
210
- export const runtimeProviderRawResponseSchema = z.object({
211
- ok: z.literal(true),
212
- message: z.string().nullable(),
213
- jobId: z.number().int().nullable(),
214
- responseTicketId: z.string().nullable(),
215
- raw: z.record(z.string(), z.unknown()),
216
- });
@@ -4,9 +4,9 @@ export declare const pushNewSessionStatusSchema: z.ZodEnum<{
4
4
  failed: "failed";
5
5
  expired: "expired";
6
6
  building: "building";
7
+ publishing: "publishing";
7
8
  waiting_for_push: "waiting_for_push";
8
9
  waiting_for_upload: "waiting_for_upload";
9
- publishing: "publishing";
10
10
  }>;
11
11
  export declare const pushNewSourceKindSchema: z.ZodEnum<{
12
12
  direct_upload: "direct_upload";
@@ -23,9 +23,9 @@ export declare const PushNewSessionSchema: z.ZodObject<{
23
23
  failed: "failed";
24
24
  expired: "expired";
25
25
  building: "building";
26
+ publishing: "publishing";
26
27
  waiting_for_push: "waiting_for_push";
27
28
  waiting_for_upload: "waiting_for_upload";
28
- publishing: "publishing";
29
29
  }>;
30
30
  sourceKind: z.ZodEnum<{
31
31
  direct_upload: "direct_upload";
@@ -68,9 +68,9 @@ export declare const PushNewCreateSessionResponseSchema: z.ZodObject<{
68
68
  failed: "failed";
69
69
  expired: "expired";
70
70
  building: "building";
71
+ publishing: "publishing";
71
72
  waiting_for_push: "waiting_for_push";
72
73
  waiting_for_upload: "waiting_for_upload";
73
- publishing: "publishing";
74
74
  }>;
75
75
  sourceKind: z.ZodEnum<{
76
76
  direct_upload: "direct_upload";
@@ -113,9 +113,9 @@ export declare const PushNewStatusResponseSchema: z.ZodObject<{
113
113
  failed: "failed";
114
114
  expired: "expired";
115
115
  building: "building";
116
+ publishing: "publishing";
116
117
  waiting_for_push: "waiting_for_push";
117
118
  waiting_for_upload: "waiting_for_upload";
118
- publishing: "publishing";
119
119
  }>;
120
120
  expiresAt: z.ZodString;
121
121
  createdAt: z.ZodString;
@@ -10,7 +10,9 @@ export declare const WORST_CASE_QUOTAS: {
10
10
  export type WorstCaseQuotaName = keyof typeof WORST_CASE_QUOTAS;
11
11
  export declare const ANONYMOUS_PUBLISH_CAPS: {
12
12
  readonly maxFileBytes: number;
13
+ readonly maxTotalBytes: number;
13
14
  readonly maxInlineBodyBytes: number;
14
15
  readonly maxFilesPerVersion: 1000;
15
16
  readonly maxPublishesPerIpPerHour: 20;
17
+ readonly maxLifetimeViews: 100;
16
18
  };
@@ -26,6 +26,9 @@ export const WORST_CASE_QUOTAS = {
26
26
  export const ANONYMOUS_PUBLISH_CAPS = {
27
27
  // Per-file ceiling (= Free plan maxFileBytes).
28
28
  maxFileBytes: 50 * 1024 * 1024,
29
+ // Per-version total ceiling (sum of file bytes). Matches the inline body
30
+ // cap so the two publish encodings agree on how big an anonymous site can be.
31
+ maxTotalBytes: 100 * 1024 * 1024,
29
32
  // Inline one-shot publish body cap; tighter than the absolute
30
33
  // maxInlinePublishBodyBytes ceiling above.
31
34
  maxInlineBodyBytes: 100 * 1024 * 1024,
@@ -33,4 +36,9 @@ export const ANONYMOUS_PUBLISH_CAPS = {
33
36
  maxFilesPerVersion: 1000,
34
37
  // Anonymous publish/space-create attempts per IP per hour.
35
38
  maxPublishesPerIpPerHour: WORST_CASE_QUOTAS.maxPublishesPerIpPerHour,
39
+ // Views (non-crawler, status<400 requests) an unclaimed space may serve over
40
+ // its whole claim window before it goes dark behind the claim-nudge
41
+ // tombstone. Enforced by the periodic visit-quota sweep, so it is
42
+ // deliberately approximate — claiming the space lifts it entirely.
43
+ maxLifetimeViews: 100,
36
44
  };
@@ -1,7 +1,7 @@
1
1
  import { z } from "zod";
2
2
  export declare const repositoryConnectionTypeSchema: z.ZodEnum<{
3
- connected: "connected";
4
3
  hosted: "hosted";
4
+ connected: "connected";
5
5
  }>;
6
6
  export declare const repositoryConnectionSyncStatusSchema: z.ZodEnum<{
7
7
  failed: "failed";
@@ -19,8 +19,8 @@ export declare const RepositoryConnectionSchema: z.ZodObject<{
19
19
  generic: "generic";
20
20
  }>;
21
21
  connectionType: z.ZodEnum<{
22
- connected: "connected";
23
22
  hosted: "hosted";
23
+ connected: "connected";
24
24
  }>;
25
25
  repositoryId: z.ZodNullable<z.ZodString>;
26
26
  repositoryName: z.ZodString;
@@ -63,8 +63,8 @@ export declare const repositoryConnectionCreateSchema: z.ZodObject<{
63
63
  generic: "generic";
64
64
  }>>;
65
65
  connectionType: z.ZodDefault<z.ZodEnum<{
66
- connected: "connected";
67
66
  hosted: "hosted";
67
+ connected: "connected";
68
68
  }>>;
69
69
  repositoryId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
70
70
  repositoryName: z.ZodOptional<z.ZodString>;
@@ -92,8 +92,8 @@ export declare const repositoryConnectionCreateSchema: z.ZodObject<{
92
92
  }, z.core.$strip>;
93
93
  export declare const repositoryConnectionPatchSchema: z.ZodObject<{
94
94
  connectionType: z.ZodOptional<z.ZodEnum<{
95
- connected: "connected";
96
95
  hosted: "hosted";
96
+ connected: "connected";
97
97
  }>>;
98
98
  productionBranch: z.ZodOptional<z.ZodString>;
99
99
  cloneUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -122,6 +122,7 @@ export declare const repositoryImportRemoteSchema: z.ZodObject<{
122
122
  generic: "generic";
123
123
  }>>;
124
124
  repositoryFullName: z.ZodString;
125
+ credential: z.ZodOptional<z.ZodNullable<z.ZodString>>;
125
126
  repositoryId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
126
127
  repositoryName: z.ZodOptional<z.ZodString>;
127
128
  defaultBranch: z.ZodDefault<z.ZodString>;
@@ -141,7 +142,6 @@ export declare const repositoryImportRemoteSchema: z.ZodObject<{
141
142
  }, z.core.$strip>>;
142
143
  autoDeployProduction: z.ZodDefault<z.ZodBoolean>;
143
144
  autoDeployPreviews: z.ZodDefault<z.ZodBoolean>;
144
- credential: z.ZodOptional<z.ZodNullable<z.ZodString>>;
145
145
  installationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
146
146
  upstreamUrl: z.ZodString;
147
147
  }, z.core.$strip>;
@@ -181,8 +181,8 @@ export declare const repositoryWebhookDeliveryListQuerySchema: z.ZodObject<{
181
181
  limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
182
182
  cursor: z.ZodOptional<z.ZodString>;
183
183
  connectionType: z.ZodOptional<z.ZodEnum<{
184
- connected: "connected";
185
184
  hosted: "hosted";
185
+ connected: "connected";
186
186
  }>>;
187
187
  status: z.ZodOptional<z.ZodEnum<{
188
188
  failed: "failed";
@@ -224,8 +224,6 @@ export declare const repositoryWebhookDeliveryListResponseSchema: z.ZodObject<{
224
224
  }, z.core.$strip>;
225
225
  }, z.core.$strip>;
226
226
  export type RepositoryConnection = z.infer<typeof RepositoryConnectionSchema>;
227
- export type RepositoryConnectionCreate = z.infer<typeof repositoryConnectionCreateSchema>;
228
- export type RepositoryConnectionPatch = z.infer<typeof repositoryConnectionPatchSchema>;
229
227
  export type RepositoryImportRemote = z.infer<typeof repositoryImportRemoteSchema>;
230
228
  export type RepositoryConnectionType = z.infer<typeof repositoryConnectionTypeSchema>;
231
229
  export type RepositoryWebhookDelivery = z.infer<typeof RepositoryWebhookDeliverySchema>;
@@ -70,6 +70,7 @@ export declare const SpaceSchema: z.ZodObject<{
70
70
  abuse_takedown: "abuse_takedown";
71
71
  tenant_suspended: "tenant_suspended";
72
72
  site_suspended: "site_suspended";
73
+ visit_cap_exceeded: "visit_cap_exceeded";
73
74
  }>;
74
75
  }, z.core.$strip>>;
75
76
  claimState: z.ZodNullable<z.ZodObject<{
@@ -83,7 +84,31 @@ export declare const SpaceSchema: z.ZodObject<{
83
84
  defaultHostname: z.ZodString;
84
85
  publicName: z.ZodString;
85
86
  liveUrl: z.ZodString;
87
+ thumbnail: z.ZodNullable<z.ZodObject<{
88
+ kind: z.ZodEnum<{
89
+ image: "image";
90
+ screenshot: "screenshot";
91
+ }>;
92
+ provider: z.ZodEnum<{
93
+ "wpcom-mshots": "wpcom-mshots";
94
+ "wpcom-site-accelerator": "wpcom-site-accelerator";
95
+ }>;
96
+ url: z.ZodString;
97
+ sourceUrl: z.ZodString;
98
+ }, z.core.$strip>>;
86
99
  dataLocation: z.ZodString;
100
+ region: z.ZodString;
101
+ placementMode: z.ZodEnum<{
102
+ shared: "shared";
103
+ dedicated: "dedicated";
104
+ }>;
105
+ burstable: z.ZodNullable<z.ZodBoolean>;
106
+ archivedBytes: z.ZodNumber;
107
+ tierPolicy: z.ZodEnum<{
108
+ auto: "auto";
109
+ always_hot: "always_hot";
110
+ }>;
111
+ moving: z.ZodBoolean;
87
112
  channels: z.ZodRecord<z.ZodString, z.ZodObject<{
88
113
  versionId: z.ZodOptional<z.ZodString>;
89
114
  weighted: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -98,6 +123,7 @@ export declare const SpaceSchema: z.ZodObject<{
98
123
  path: z.ZodString;
99
124
  status: z.ZodNumber;
100
125
  }, z.core.$strip>]>>;
126
+ cleanUrls: z.ZodOptional<z.ZodBoolean>;
101
127
  listing: z.ZodOptional<z.ZodBoolean>;
102
128
  meta: z.ZodOptional<z.ZodObject<{
103
129
  title: z.ZodOptional<z.ZodString>;
@@ -130,6 +156,7 @@ export declare const SpaceSchema: z.ZodObject<{
130
156
  reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
131
157
  }, z.core.$strip>>>;
132
158
  }, z.core.$strip>>;
159
+ requireReview: z.ZodOptional<z.ZodBoolean>;
133
160
  }, z.core.$strip>>;
134
161
  }, z.core.$strip>>;
135
162
  templates: z.ZodOptional<z.ZodArray<z.ZodString>>;
@@ -156,6 +183,15 @@ export declare const SpaceSchema: z.ZodObject<{
156
183
  }, z.core.$strip>>>;
157
184
  }, z.core.$strip>>;
158
185
  }, z.core.$strip>>;
186
+ pages: z.ZodOptional<z.ZodObject<{
187
+ theme: z.ZodOptional<z.ZodObject<{
188
+ accent: z.ZodOptional<z.ZodString>;
189
+ background: z.ZodOptional<z.ZodString>;
190
+ logo: z.ZodOptional<z.ZodString>;
191
+ name: z.ZodOptional<z.ZodString>;
192
+ fontFamily: z.ZodOptional<z.ZodString>;
193
+ }, z.core.$strip>>;
194
+ }, z.core.$strip>>;
159
195
  build: z.ZodOptional<z.ZodObject<{
160
196
  rootDirectory: z.ZodOptional<z.ZodNullable<z.ZodString>>;
161
197
  installDirectory: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -168,6 +204,15 @@ export declare const SpaceSchema: z.ZodObject<{
168
204
  allowUnsupportedPlatformFeatures: z.ZodOptional<z.ZodBoolean>;
169
205
  timeoutSeconds: z.ZodOptional<z.ZodNumber>;
170
206
  }, z.core.$strict>>;
207
+ placement: z.ZodOptional<z.ZodObject<{
208
+ region: z.ZodOptional<z.ZodString>;
209
+ mode: z.ZodOptional<z.ZodEnum<{
210
+ shared: "shared";
211
+ dedicated: "dedicated";
212
+ }>>;
213
+ burstable: z.ZodOptional<z.ZodBoolean>;
214
+ }, z.core.$strict>>;
215
+ markdownNegotiation: z.ZodOptional<z.ZodBoolean>;
171
216
  experimental_gutenberg: z.ZodOptional<z.ZodBoolean>;
172
217
  inject: z.ZodOptional<z.ZodObject<{
173
218
  head: z.ZodOptional<z.ZodArray<z.ZodString>>;
@@ -179,8 +224,11 @@ export declare const SpaceSchema: z.ZodObject<{
179
224
  noindex: z.ZodBoolean;
180
225
  policy: z.ZodNullable<z.ZodObject<{
181
226
  rules: z.ZodDefault<z.ZodArray<z.ZodObject<{
227
+ id: z.ZodOptional<z.ZodString>;
182
228
  match: z.ZodDefault<z.ZodObject<{
183
229
  host: z.ZodOptional<z.ZodString>;
230
+ hostPattern: z.ZodOptional<z.ZodString>;
231
+ hostTemplate: z.ZodOptional<z.ZodString>;
184
232
  pathPattern: z.ZodOptional<z.ZodString>;
185
233
  channel: z.ZodOptional<z.ZodString>;
186
234
  ipCidrs: z.ZodOptional<z.ZodArray<z.ZodString>>;
@@ -197,29 +245,45 @@ export declare const SpaceSchema: z.ZodObject<{
197
245
  challenge: "challenge";
198
246
  }>;
199
247
  auth: z.ZodOptional<z.ZodObject<{
200
- password: z.ZodOptional<z.ZodObject<{
248
+ requiredGrants: z.ZodArray<z.ZodString>;
249
+ issuers: z.ZodOptional<z.ZodArray<z.ZodObject<{
250
+ kid: z.ZodString;
251
+ alg: z.ZodLiteral<"EdDSA">;
252
+ publicKey: z.ZodString;
253
+ grantNamespaces: z.ZodArray<z.ZodString>;
254
+ }, z.core.$strip>>>;
255
+ acquire: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
256
+ type: z.ZodLiteral<"password">;
201
257
  ref: z.ZodString;
202
258
  transport: z.ZodEnum<{
203
259
  basic: "basic";
204
260
  form: "form";
205
261
  }>;
206
262
  username: z.ZodOptional<z.ZodString>;
207
- }, z.core.$strip>>;
208
- token: z.ZodOptional<z.ZodObject<{
209
- requiredGrants: z.ZodArray<z.ZodString>;
210
- issuers: z.ZodOptional<z.ZodArray<z.ZodObject<{
211
- kid: z.ZodString;
212
- alg: z.ZodLiteral<"EdDSA">;
213
- publicKey: z.ZodString;
214
- grantNamespaces: z.ZodArray<z.ZodString>;
215
- }, z.core.$strip>>>;
216
- loginUrl: z.ZodOptional<z.ZodString>;
217
- cookieName: z.ZodOptional<z.ZodString>;
218
- }, z.core.$strip>>;
263
+ }, z.core.$strip>, z.ZodObject<{
264
+ type: z.ZodLiteral<"login">;
265
+ url: z.ZodString;
266
+ label: z.ZodOptional<z.ZodString>;
267
+ }, z.core.$strip>], "type">>>;
219
268
  }, z.core.$strip>>;
269
+ managedBy: z.ZodOptional<z.ZodEnum<{
270
+ sharing: "sharing";
271
+ firewall: "firewall";
272
+ file_share: "file_share";
273
+ cast_reviewer: "cast_reviewer";
274
+ team_default: "team_default";
275
+ }>>;
276
+ expiresAt: z.ZodOptional<z.ZodNumber>;
220
277
  reasonCode: z.ZodOptional<z.ZodString>;
221
278
  message: z.ZodOptional<z.ZodString>;
222
279
  }, z.core.$strip>>>;
280
+ issuers: z.ZodOptional<z.ZodArray<z.ZodObject<{
281
+ kid: z.ZodString;
282
+ alg: z.ZodLiteral<"EdDSA">;
283
+ publicKey: z.ZodString;
284
+ grantNamespaces: z.ZodArray<z.ZodString>;
285
+ }, z.core.$strip>>>;
286
+ sessionVersion: z.ZodOptional<z.ZodNumber>;
223
287
  }, z.core.$strip>>;
224
288
  operation: z.ZodNullable<z.ZodObject<{
225
289
  id: z.ZodString;
@@ -373,6 +437,7 @@ export declare const VersionSchema: z.ZodObject<{
373
437
  path: z.ZodString;
374
438
  status: z.ZodNumber;
375
439
  }, z.core.$strip>]>>;
440
+ cleanUrls: z.ZodOptional<z.ZodBoolean>;
376
441
  listing: z.ZodOptional<z.ZodBoolean>;
377
442
  meta: z.ZodOptional<z.ZodObject<{
378
443
  title: z.ZodOptional<z.ZodString>;
@@ -405,6 +470,7 @@ export declare const VersionSchema: z.ZodObject<{
405
470
  reason: z.ZodOptional<z.ZodNullable<z.ZodString>>;
406
471
  }, z.core.$strip>>>;
407
472
  }, z.core.$strip>>;
473
+ requireReview: z.ZodOptional<z.ZodBoolean>;
408
474
  }, z.core.$strip>>;
409
475
  }, z.core.$strip>>;
410
476
  templates: z.ZodOptional<z.ZodArray<z.ZodString>>;
@@ -431,6 +497,15 @@ export declare const VersionSchema: z.ZodObject<{
431
497
  }, z.core.$strip>>>;
432
498
  }, z.core.$strip>>;
433
499
  }, z.core.$strip>>;
500
+ pages: z.ZodOptional<z.ZodObject<{
501
+ theme: z.ZodOptional<z.ZodObject<{
502
+ accent: z.ZodOptional<z.ZodString>;
503
+ background: z.ZodOptional<z.ZodString>;
504
+ logo: z.ZodOptional<z.ZodString>;
505
+ name: z.ZodOptional<z.ZodString>;
506
+ fontFamily: z.ZodOptional<z.ZodString>;
507
+ }, z.core.$strip>>;
508
+ }, z.core.$strip>>;
434
509
  build: z.ZodOptional<z.ZodObject<{
435
510
  rootDirectory: z.ZodOptional<z.ZodNullable<z.ZodString>>;
436
511
  installDirectory: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -443,6 +518,15 @@ export declare const VersionSchema: z.ZodObject<{
443
518
  allowUnsupportedPlatformFeatures: z.ZodOptional<z.ZodBoolean>;
444
519
  timeoutSeconds: z.ZodOptional<z.ZodNumber>;
445
520
  }, z.core.$strict>>;
521
+ placement: z.ZodOptional<z.ZodObject<{
522
+ region: z.ZodOptional<z.ZodString>;
523
+ mode: z.ZodOptional<z.ZodEnum<{
524
+ shared: "shared";
525
+ dedicated: "dedicated";
526
+ }>>;
527
+ burstable: z.ZodOptional<z.ZodBoolean>;
528
+ }, z.core.$strict>>;
529
+ markdownNegotiation: z.ZodOptional<z.ZodBoolean>;
446
530
  experimental_gutenberg: z.ZodOptional<z.ZodBoolean>;
447
531
  inject: z.ZodOptional<z.ZodObject<{
448
532
  head: z.ZodOptional<z.ZodArray<z.ZodString>>;
@@ -1,7 +1,7 @@
1
1
  import { z } from "zod";
2
2
  import { policyDocSchema } from "./access.js";
3
3
  import { AsyncOperationSchema, baseDiagnosticSchema } from "./common.js";
4
- import { publishSourceKind, versionStatus, spaceDisabledReasonCode, spaceStatus } from "./enums.js";
4
+ import { normalizedSiteClass, publishSourceKind, versionStatus, spaceDisabledReasonCode, spaceStatus, } from "./enums.js";
5
5
  import { pendingUploadSchema } from "./internal.js";
6
6
  import { spaceConfigSchema } from "./space-config.js";
7
7
  export const DiagnosticSchema = baseDiagnosticSchema.extend({
@@ -89,9 +89,33 @@ export const SpaceSchema = z.object({
89
89
  liveUrl: z
90
90
  .string()
91
91
  .describe("Live space URL: the primary bound domain when one exists, else the default hostname. Always present on non-deleted spaces."),
92
+ thumbnail: z
93
+ .object({
94
+ kind: z.enum(["screenshot", "image"]),
95
+ provider: z.enum(["wpcom-mshots", "wpcom-site-accelerator"]),
96
+ url: z.string().url(),
97
+ sourceUrl: z.string().url(),
98
+ })
99
+ .nullable()
100
+ .describe("Server-selected dashboard thumbnail. Screenshots use WordPress.com mShots; image thumbnails use WordPress.com Site Accelerator."),
92
101
  dataLocation: z
93
102
  .string()
94
- .describe('Resolved data-location region; immutable after ownership exists. "auto" only while no concrete region is known yet.'),
103
+ .describe('Resolved data-location region. PATCH may queue a move to change it; "auto" only while no concrete region is known yet.'),
104
+ region: z
105
+ .string()
106
+ .describe('Alias of dataLocation for placement dashboards; "auto" only while no concrete region is known yet.'),
107
+ placementMode: normalizedSiteClass.describe("Requested placement mode for this space."),
108
+ burstable: z
109
+ .boolean()
110
+ .nullable()
111
+ .describe("Whether a dedicated placement may burst provider PHP workers."),
112
+ archivedBytes: z
113
+ .number()
114
+ .int()
115
+ .nonnegative()
116
+ .describe("Bytes currently archived out of the hot runtime store."),
117
+ tierPolicy: z.enum(["auto", "always_hot"]).describe("Storage tiering policy for this space."),
118
+ moving: z.boolean().describe("True while a placement or transfer move is queued or running."),
95
119
  channels: z
96
120
  .record(z.string(), ChannelPointerSchema)
97
121
  .describe('Channel pointers by name; "live" is present once a version has been promoted.'),
@@ -41,5 +41,3 @@ export declare const websiteRoutesConfigSchema: z.ZodObject<{
41
41
  }, z.core.$strip>>;
42
42
  }, z.core.$strict>>>;
43
43
  }, z.core.$strict>;
44
- export type WebsiteRoute = z.infer<typeof websiteRouteSchema>;
45
- export type WebsiteRoutesConfig = z.infer<typeof websiteRoutesConfigSchema>;