@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.
Files changed (159) 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 +829 -129
  8. package/dist/contracts/access.js +771 -148
  9. package/dist/contracts/activity.d.ts +5 -5
  10. package/dist/contracts/activity.js +28 -2
  11. package/dist/contracts/annotations.d.ts +3 -5
  12. package/dist/contracts/api-keys.d.ts +9 -10
  13. package/dist/contracts/api-keys.js +9 -6
  14. package/dist/contracts/archives.d.ts +22 -16
  15. package/dist/contracts/archives.js +11 -4
  16. package/dist/contracts/billing.d.ts +21 -30
  17. package/dist/contracts/builds.d.ts +21 -17
  18. package/dist/contracts/builds.js +12 -0
  19. package/dist/contracts/channels.d.ts +2 -2
  20. package/dist/contracts/common.d.ts +7 -5
  21. package/dist/contracts/common.js +4 -0
  22. package/dist/contracts/continuation.d.ts +63 -0
  23. package/dist/contracts/continuation.js +91 -0
  24. package/dist/contracts/countries.d.ts +2 -0
  25. package/dist/contracts/countries.js +261 -0
  26. package/dist/contracts/deployments.d.ts +34 -34
  27. package/dist/contracts/device-auth.d.ts +4 -11
  28. package/dist/contracts/device-auth.js +4 -0
  29. package/dist/contracts/docs.d.ts +119 -0
  30. package/dist/contracts/docs.js +51 -0
  31. package/dist/contracts/domains.d.ts +295 -253
  32. package/dist/contracts/domains.js +26 -4
  33. package/dist/contracts/enums.d.ts +17 -18
  34. package/dist/contracts/enums.js +25 -14
  35. package/dist/contracts/error-code-meta.d.ts +84 -0
  36. package/dist/contracts/error-code-meta.js +99 -10
  37. package/dist/contracts/error-codes.d.ts +1 -1
  38. package/dist/contracts/error-codes.js +17 -0
  39. package/dist/contracts/events.d.ts +13 -13
  40. package/dist/contracts/features.d.ts +93 -23
  41. package/dist/contracts/features.js +178 -13
  42. package/dist/contracts/git.d.ts +3 -9
  43. package/dist/contracts/ids.d.ts +5 -0
  44. package/dist/contracts/ids.js +5 -0
  45. package/dist/contracts/internal.d.ts +3 -3
  46. package/dist/contracts/mcp.d.ts +34 -36
  47. package/dist/contracts/me.d.ts +8 -8
  48. package/dist/contracts/me.js +1 -1
  49. package/dist/contracts/oauth-resources.d.ts +19 -8
  50. package/dist/contracts/oauth-resources.js +44 -13
  51. package/dist/contracts/operations.d.ts +2 -2
  52. package/dist/contracts/plan-policy.d.ts +4 -4
  53. package/dist/contracts/platform.d.ts +3 -105
  54. package/dist/contracts/platform.js +0 -50
  55. package/dist/contracts/push-new.d.ts +4 -4
  56. package/dist/contracts/quotas.d.ts +2 -0
  57. package/dist/contracts/quotas.js +8 -0
  58. package/dist/contracts/repository-connections.d.ts +1 -3
  59. package/dist/contracts/resources.d.ts +112 -28
  60. package/dist/contracts/resources.js +26 -2
  61. package/dist/contracts/routes.d.ts +0 -2
  62. package/dist/contracts/runtime-api.d.ts +365 -43
  63. package/dist/contracts/runtime-api.js +275 -6
  64. package/dist/contracts/sites.d.ts +45 -28
  65. package/dist/contracts/sites.js +21 -0
  66. package/dist/contracts/space-config.d.ts +201 -2
  67. package/dist/contracts/space-config.js +135 -5
  68. package/dist/contracts/spaces.d.ts +423 -162
  69. package/dist/contracts/spaces.js +94 -8
  70. package/dist/contracts/superadmin-emails.d.ts +7 -5
  71. package/dist/contracts/superadmin-emails.js +8 -0
  72. package/dist/contracts/superadmin-queues.d.ts +32 -32
  73. package/dist/contracts/superadmin-spaces.d.ts +418 -24
  74. package/dist/contracts/superadmin-spaces.js +24 -0
  75. package/dist/contracts/superadmin-tenants.d.ts +8 -8
  76. package/dist/contracts/superadmin.d.ts +17 -104
  77. package/dist/contracts/superadmin.js +6 -14
  78. package/dist/contracts/tags.d.ts +42 -41
  79. package/dist/contracts/tags.js +2 -1
  80. package/dist/contracts/teams.d.ts +40 -23
  81. package/dist/contracts/teams.js +20 -1
  82. package/dist/contracts/theme-json.d.ts +30 -0
  83. package/dist/contracts/theme-json.js +48 -0
  84. package/dist/contracts/transfers.d.ts +9 -9
  85. package/dist/contracts/variables.d.ts +14 -16
  86. package/dist/contracts/variables.js +0 -5
  87. package/dist/contracts/webhooks.d.ts +6 -4
  88. package/dist/contracts/webhooks.js +1 -1
  89. package/dist/contracts/zero.d.ts +13 -18
  90. package/dist/docs/agent-prose.d.ts +43 -3
  91. package/dist/docs/agent-prose.js +153 -10
  92. package/dist/docs/agent-setup.js +48 -15
  93. package/dist/docs/agent-solutions.d.ts +5 -5
  94. package/dist/docs/agent-solutions.js +2 -2
  95. package/dist/docs/catalog.d.ts +650 -0
  96. package/dist/docs/catalog.js +758 -0
  97. package/dist/docs/error-docs.d.ts +0 -2
  98. package/dist/docs/error-docs.js +89 -35
  99. package/dist/docs/index-build.d.ts +17 -0
  100. package/dist/docs/index-build.js +24 -0
  101. package/dist/docs/search.d.ts +54 -0
  102. package/dist/docs/search.js +96 -0
  103. package/dist/docs/skill-distribution.d.ts +5 -3
  104. package/dist/docs/skill-distribution.js +8 -8
  105. package/dist/utils/access-match.d.ts +39 -0
  106. package/dist/utils/access-match.js +296 -0
  107. package/dist/utils/auth-redirect.d.ts +3 -1
  108. package/dist/utils/auth-redirect.js +21 -1
  109. package/dist/utils/build-settings.d.ts +6 -0
  110. package/dist/utils/build-settings.js +429 -46
  111. package/dist/utils/claim-token.d.ts +8 -0
  112. package/dist/utils/claim-token.js +23 -2
  113. package/dist/utils/content-type.d.ts +1 -0
  114. package/dist/utils/content-type.js +1 -1
  115. package/dist/utils/credential-policy.d.ts +54 -0
  116. package/dist/utils/{access-policy.js → credential-policy.js} +28 -2
  117. package/dist/utils/gate-theme.d.ts +61 -0
  118. package/dist/utils/gate-theme.js +217 -0
  119. package/dist/utils/git-repository.d.ts +0 -1
  120. package/dist/utils/git-repository.js +0 -3
  121. package/dist/utils/id-hints.d.ts +8 -0
  122. package/dist/utils/id-hints.js +61 -0
  123. package/dist/utils/local-space-state.d.ts +91 -0
  124. package/dist/utils/local-space-state.js +251 -0
  125. package/dist/utils/oauth-signed-query.d.ts +8 -0
  126. package/dist/utils/oauth-signed-query.js +26 -0
  127. package/dist/utils/publish-detection.d.ts +0 -8
  128. package/dist/utils/publish-detection.js +0 -93
  129. package/dist/utils/publish-policy.d.ts +6 -5
  130. package/dist/utils/publish-policy.js +71 -7
  131. package/dist/utils/query-keys.d.ts +17 -6
  132. package/dist/utils/query-keys.js +27 -4
  133. package/dist/utils/runtime-paths.d.ts +0 -1
  134. package/dist/utils/runtime-paths.js +0 -1
  135. package/dist/utils/runtime-upload-batch.d.ts +18 -0
  136. package/dist/utils/runtime-upload-batch.js +90 -0
  137. package/dist/utils/runtime-upload.d.ts +2 -0
  138. package/dist/utils/runtime-upload.js +5 -0
  139. package/dist/utils/space-config.d.ts +4 -0
  140. package/dist/utils/space-config.js +10 -1
  141. package/dist/utils/space-theme.d.ts +2 -0
  142. package/dist/utils/space-theme.js +9 -0
  143. package/dist/utils/static-runtime-policy.d.ts +1 -1
  144. package/dist/utils/static-runtime-policy.js +47 -15
  145. package/dist/utils/upload-session.d.ts +1 -1
  146. package/dist/utils/wpcom-auth-redirects.d.ts +32 -2
  147. package/dist/utils/wpcom-auth-redirects.js +26 -10
  148. package/dist/vocabulary.d.ts +130 -30
  149. package/dist/vocabulary.js +77 -36
  150. package/package.json +16 -1
  151. package/dist/contracts/account.d.ts +0 -28
  152. package/dist/contracts/account.js +0 -54
  153. package/dist/contracts/intercom.d.ts +0 -6
  154. package/dist/contracts/intercom.js +0 -5
  155. package/dist/contracts/telemetry.d.ts +0 -2
  156. package/dist/contracts/telemetry.js +0 -1
  157. package/dist/utils/access-policy.d.ts +0 -39
  158. package/dist/utils/error-display.d.ts +0 -7
  159. 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>;
@@ -157,9 +62,9 @@ export declare const accessLogListResponseSchema: z.ZodObject<{
157
62
  message: z.ZodString;
158
63
  path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
159
64
  provider: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
65
+ registrar: "registrar";
160
66
  wpcloud: "wpcloud";
161
67
  dns: "dns";
162
- registrar: "registrar";
163
68
  runtime: "runtime";
164
69
  }>>>;
165
70
  details: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
@@ -191,9 +96,9 @@ export declare const runtimeLogListResponseSchema: z.ZodObject<{
191
96
  message: z.ZodString;
192
97
  path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
193
98
  provider: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
99
+ registrar: "registrar";
194
100
  wpcloud: "wpcloud";
195
101
  dns: "dns";
196
- registrar: "registrar";
197
102
  runtime: "runtime";
198
103
  }>>>;
199
104
  details: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
@@ -262,9 +167,9 @@ export declare const analyticsResponseSchema: z.ZodObject<{
262
167
  message: z.ZodString;
263
168
  path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
264
169
  provider: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
170
+ registrar: "registrar";
265
171
  wpcloud: "wpcloud";
266
172
  dns: "dns";
267
- registrar: "registrar";
268
173
  runtime: "runtime";
269
174
  }>>>;
270
175
  details: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
@@ -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
  };
@@ -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>;
@@ -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>;
@@ -9,9 +9,9 @@ export declare const DiagnosticSchema: z.ZodObject<{
9
9
  message: z.ZodString;
10
10
  path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
11
11
  provider: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
12
+ registrar: "registrar";
12
13
  wpcloud: "wpcloud";
13
14
  dns: "dns";
14
- registrar: "registrar";
15
15
  runtime: "runtime";
16
16
  }>>>;
17
17
  details: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
@@ -24,8 +24,8 @@ export declare const DiagnosticSchema: z.ZodObject<{
24
24
  export declare const PrincipalRefSchema: z.ZodObject<{
25
25
  tenantId: z.ZodString;
26
26
  principalType: z.ZodEnum<{
27
- external: "external";
28
27
  team: "team";
28
+ external: "external";
29
29
  }>;
30
30
  principalId: z.ZodString;
31
31
  }, z.core.$strip>;
@@ -47,8 +47,8 @@ export declare const SpaceSchema: z.ZodObject<{
47
47
  principal: z.ZodNullable<z.ZodObject<{
48
48
  tenantId: z.ZodString;
49
49
  principalType: z.ZodEnum<{
50
- external: "external";
51
50
  team: "team";
51
+ external: "external";
52
52
  }>;
53
53
  principalId: z.ZodString;
54
54
  }, z.core.$strip>>;
@@ -56,20 +56,21 @@ export declare const SpaceSchema: z.ZodObject<{
56
56
  slug: z.ZodString;
57
57
  title: z.ZodString;
58
58
  status: z.ZodEnum<{
59
- failed: "failed";
60
59
  active: "active";
61
60
  provisioning: "provisioning";
62
61
  updating: "updating";
63
62
  moving: "moving";
64
63
  deleting: "deleting";
64
+ failed: "failed";
65
65
  }>;
66
66
  disabled: z.ZodNullable<z.ZodObject<{
67
67
  at: z.ZodNullable<z.ZodString>;
68
68
  reasonCode: z.ZodEnum<{
69
- abuse_takedown: "abuse_takedown";
70
69
  anonymous_expired: "anonymous_expired";
71
- site_suspended: "site_suspended";
70
+ abuse_takedown: "abuse_takedown";
72
71
  tenant_suspended: "tenant_suspended";
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,39 +245,55 @@ 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;
226
290
  kind: z.ZodString;
227
291
  status: z.ZodEnum<{
228
292
  failed: "failed";
293
+ canceled: "canceled";
229
294
  queued: "queued";
230
295
  running: "running";
231
296
  succeeded: "succeeded";
232
- canceled: "canceled";
233
297
  }>;
234
298
  resources: z.ZodArray<z.ZodObject<{
235
299
  type: z.ZodString;
@@ -250,9 +314,9 @@ export declare const SpaceSchema: z.ZodObject<{
250
314
  message: z.ZodString;
251
315
  path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
252
316
  provider: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
317
+ registrar: "registrar";
253
318
  wpcloud: "wpcloud";
254
319
  dns: "dns";
255
- registrar: "registrar";
256
320
  runtime: "runtime";
257
321
  }>>>;
258
322
  details: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
@@ -269,10 +333,10 @@ export declare const PublishSourceSchema: z.ZodObject<{
269
333
  kind: z.ZodEnum<{
270
334
  api: "api";
271
335
  dashboard: "dashboard";
272
- cli: "cli";
273
336
  build: "build";
274
337
  agent: "agent";
275
338
  direct_upload: "direct_upload";
339
+ cli: "cli";
276
340
  git: "git";
277
341
  import: "import";
278
342
  variable_update: "variable_update";
@@ -306,10 +370,10 @@ export declare const VersionSchema: z.ZodObject<{
306
370
  kind: z.ZodEnum<{
307
371
  api: "api";
308
372
  dashboard: "dashboard";
309
- cli: "cli";
310
373
  build: "build";
311
374
  agent: "agent";
312
375
  direct_upload: "direct_upload";
376
+ cli: "cli";
313
377
  git: "git";
314
378
  import: "import";
315
379
  variable_update: "variable_update";
@@ -336,14 +400,14 @@ export declare const VersionSchema: z.ZodObject<{
336
400
  status: z.ZodEnum<{
337
401
  failed: "failed";
338
402
  canceled: "canceled";
339
- ready: "ready";
340
403
  expired: "expired";
341
- created: "created";
342
404
  building: "building";
343
405
  prepared: "prepared";
406
+ created: "created";
344
407
  uploading: "uploading";
345
408
  uploaded: "uploaded";
346
409
  finalizing: "finalizing";
410
+ ready: "ready";
347
411
  }>;
348
412
  failureCode: z.ZodNullable<z.ZodString>;
349
413
  failureMessage: z.ZodNullable<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>>;
@@ -456,10 +540,10 @@ export declare const VersionSchema: z.ZodObject<{
456
540
  kind: z.ZodString;
457
541
  status: z.ZodEnum<{
458
542
  failed: "failed";
543
+ canceled: "canceled";
459
544
  queued: "queued";
460
545
  running: "running";
461
546
  succeeded: "succeeded";
462
- canceled: "canceled";
463
547
  }>;
464
548
  resources: z.ZodArray<z.ZodObject<{
465
549
  type: z.ZodString;
@@ -480,9 +564,9 @@ export declare const VersionSchema: z.ZodObject<{
480
564
  message: z.ZodString;
481
565
  path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
482
566
  provider: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
567
+ registrar: "registrar";
483
568
  wpcloud: "wpcloud";
484
569
  dns: "dns";
485
- registrar: "registrar";
486
570
  runtime: "runtime";
487
571
  }>>>;
488
572
  details: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
@@ -507,9 +591,9 @@ export declare const VersionSchema: z.ZodObject<{
507
591
  message: z.ZodString;
508
592
  path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
509
593
  provider: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
594
+ registrar: "registrar";
510
595
  wpcloud: "wpcloud";
511
596
  dns: "dns";
512
- registrar: "registrar";
513
597
  runtime: "runtime";
514
598
  }>>>;
515
599
  details: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;