@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
@@ -0,0 +1,261 @@
1
+ // ISO 3166-1 alpha-2 country codes — the vocabulary of the firewall card's
2
+ // country section (contracts/access.ts `firewallCountriesSchema`, access-plan
3
+ // §5.6). The rule `match.country` is an exact-equality matcher against the
4
+ // edge-supplied country header, so "allow only these countries" compiles to
5
+ // one deny/challenge rule per code in the COMPLEMENT of this list — which is
6
+ // why the list itself is a contract: the compiler and the projection must
7
+ // agree on the universe.
8
+ //
9
+ // Officially assigned codes only (no exceptionally-reserved / user-assigned
10
+ // ranges). Display names are a UI concern (`Intl.DisplayNames`), never stored.
11
+ export const ISO_COUNTRY_CODES = [
12
+ "AD",
13
+ "AE",
14
+ "AF",
15
+ "AG",
16
+ "AI",
17
+ "AL",
18
+ "AM",
19
+ "AO",
20
+ "AQ",
21
+ "AR",
22
+ "AS",
23
+ "AT",
24
+ "AU",
25
+ "AW",
26
+ "AX",
27
+ "AZ",
28
+ "BA",
29
+ "BB",
30
+ "BD",
31
+ "BE",
32
+ "BF",
33
+ "BG",
34
+ "BH",
35
+ "BI",
36
+ "BJ",
37
+ "BL",
38
+ "BM",
39
+ "BN",
40
+ "BO",
41
+ "BQ",
42
+ "BR",
43
+ "BS",
44
+ "BT",
45
+ "BV",
46
+ "BW",
47
+ "BY",
48
+ "BZ",
49
+ "CA",
50
+ "CC",
51
+ "CD",
52
+ "CF",
53
+ "CG",
54
+ "CH",
55
+ "CI",
56
+ "CK",
57
+ "CL",
58
+ "CM",
59
+ "CN",
60
+ "CO",
61
+ "CR",
62
+ "CU",
63
+ "CV",
64
+ "CW",
65
+ "CX",
66
+ "CY",
67
+ "CZ",
68
+ "DE",
69
+ "DJ",
70
+ "DK",
71
+ "DM",
72
+ "DO",
73
+ "DZ",
74
+ "EC",
75
+ "EE",
76
+ "EG",
77
+ "EH",
78
+ "ER",
79
+ "ES",
80
+ "ET",
81
+ "FI",
82
+ "FJ",
83
+ "FK",
84
+ "FM",
85
+ "FO",
86
+ "FR",
87
+ "GA",
88
+ "GB",
89
+ "GD",
90
+ "GE",
91
+ "GF",
92
+ "GG",
93
+ "GH",
94
+ "GI",
95
+ "GL",
96
+ "GM",
97
+ "GN",
98
+ "GP",
99
+ "GQ",
100
+ "GR",
101
+ "GS",
102
+ "GT",
103
+ "GU",
104
+ "GW",
105
+ "GY",
106
+ "HK",
107
+ "HM",
108
+ "HN",
109
+ "HR",
110
+ "HT",
111
+ "HU",
112
+ "ID",
113
+ "IE",
114
+ "IL",
115
+ "IM",
116
+ "IN",
117
+ "IO",
118
+ "IQ",
119
+ "IR",
120
+ "IS",
121
+ "IT",
122
+ "JE",
123
+ "JM",
124
+ "JO",
125
+ "JP",
126
+ "KE",
127
+ "KG",
128
+ "KH",
129
+ "KI",
130
+ "KM",
131
+ "KN",
132
+ "KP",
133
+ "KR",
134
+ "KW",
135
+ "KY",
136
+ "KZ",
137
+ "LA",
138
+ "LB",
139
+ "LC",
140
+ "LI",
141
+ "LK",
142
+ "LR",
143
+ "LS",
144
+ "LT",
145
+ "LU",
146
+ "LV",
147
+ "LY",
148
+ "MA",
149
+ "MC",
150
+ "MD",
151
+ "ME",
152
+ "MF",
153
+ "MG",
154
+ "MH",
155
+ "MK",
156
+ "ML",
157
+ "MM",
158
+ "MN",
159
+ "MO",
160
+ "MP",
161
+ "MQ",
162
+ "MR",
163
+ "MS",
164
+ "MT",
165
+ "MU",
166
+ "MV",
167
+ "MW",
168
+ "MX",
169
+ "MY",
170
+ "MZ",
171
+ "NA",
172
+ "NC",
173
+ "NE",
174
+ "NF",
175
+ "NG",
176
+ "NI",
177
+ "NL",
178
+ "NO",
179
+ "NP",
180
+ "NR",
181
+ "NU",
182
+ "NZ",
183
+ "OM",
184
+ "PA",
185
+ "PE",
186
+ "PF",
187
+ "PG",
188
+ "PH",
189
+ "PK",
190
+ "PL",
191
+ "PM",
192
+ "PN",
193
+ "PR",
194
+ "PS",
195
+ "PT",
196
+ "PW",
197
+ "PY",
198
+ "QA",
199
+ "RE",
200
+ "RO",
201
+ "RS",
202
+ "RU",
203
+ "RW",
204
+ "SA",
205
+ "SB",
206
+ "SC",
207
+ "SD",
208
+ "SE",
209
+ "SG",
210
+ "SH",
211
+ "SI",
212
+ "SJ",
213
+ "SK",
214
+ "SL",
215
+ "SM",
216
+ "SN",
217
+ "SO",
218
+ "SR",
219
+ "SS",
220
+ "ST",
221
+ "SV",
222
+ "SX",
223
+ "SY",
224
+ "SZ",
225
+ "TC",
226
+ "TD",
227
+ "TF",
228
+ "TG",
229
+ "TH",
230
+ "TJ",
231
+ "TK",
232
+ "TL",
233
+ "TM",
234
+ "TN",
235
+ "TO",
236
+ "TR",
237
+ "TT",
238
+ "TV",
239
+ "TW",
240
+ "TZ",
241
+ "UA",
242
+ "UG",
243
+ "UM",
244
+ "US",
245
+ "UY",
246
+ "UZ",
247
+ "VA",
248
+ "VC",
249
+ "VE",
250
+ "VG",
251
+ "VI",
252
+ "VN",
253
+ "VU",
254
+ "WF",
255
+ "WS",
256
+ "YE",
257
+ "YT",
258
+ "ZA",
259
+ "ZM",
260
+ "ZW",
261
+ ];
@@ -1,12 +1,12 @@
1
1
  import { z } from "zod";
2
2
  export declare const deploymentStatusSchema: z.ZodEnum<{
3
3
  failed: "failed";
4
- queued: "queued";
5
4
  canceled: "canceled";
5
+ building: "building";
6
6
  ready: "ready";
7
7
  waiting_for_source: "waiting_for_source";
8
+ queued: "queued";
8
9
  skipped: "skipped";
9
- building: "building";
10
10
  }>;
11
11
  export declare const DeploymentSourceSchema: z.ZodObject<{
12
12
  kind: z.ZodNullable<z.ZodString>;
@@ -29,11 +29,11 @@ export declare const DeploymentSourceSchema: z.ZodObject<{
29
29
  commitAuthorLogin: z.ZodNullable<z.ZodString>;
30
30
  pullRequestNumber: z.ZodNullable<z.ZodNumber>;
31
31
  actorType: z.ZodNullable<z.ZodEnum<{
32
+ system: "system";
32
33
  user: "user";
33
34
  api_key: "api_key";
34
35
  oauth_client: "oauth_client";
35
36
  anonymous_claim: "anonymous_claim";
36
- system: "system";
37
37
  }>>;
38
38
  actorId: z.ZodNullable<z.ZodString>;
39
39
  }, z.core.$strip>;
@@ -73,9 +73,9 @@ export declare const DeploymentChannelStateSchema: z.ZodObject<{
73
73
  }, z.core.$strip>;
74
74
  export declare const DeploymentActivityGroupSchema: z.ZodObject<{
75
75
  kind: z.ZodEnum<{
76
- version: "version";
77
76
  channel: "channel";
78
77
  source: "source";
78
+ version: "version";
79
79
  branch: "branch";
80
80
  pull_request: "pull_request";
81
81
  }>;
@@ -104,9 +104,9 @@ export declare const DeploymentSchema: z.ZodObject<{
104
104
  }, z.core.$strip>>;
105
105
  activityGroup: z.ZodObject<{
106
106
  kind: z.ZodEnum<{
107
- version: "version";
108
107
  channel: "channel";
109
108
  source: "source";
109
+ version: "version";
110
110
  branch: "branch";
111
111
  pull_request: "pull_request";
112
112
  }>;
@@ -115,33 +115,33 @@ export declare const DeploymentSchema: z.ZodObject<{
115
115
  }, z.core.$strip>;
116
116
  status: z.ZodEnum<{
117
117
  failed: "failed";
118
- queued: "queued";
119
118
  canceled: "canceled";
119
+ building: "building";
120
120
  ready: "ready";
121
121
  waiting_for_source: "waiting_for_source";
122
+ queued: "queued";
122
123
  skipped: "skipped";
123
- building: "building";
124
124
  }>;
125
125
  versionStatus: z.ZodNullable<z.ZodEnum<{
126
126
  failed: "failed";
127
127
  canceled: "canceled";
128
- ready: "ready";
129
128
  expired: "expired";
130
- created: "created";
131
129
  building: "building";
132
130
  prepared: "prepared";
131
+ created: "created";
133
132
  uploading: "uploading";
134
133
  uploaded: "uploaded";
135
134
  finalizing: "finalizing";
135
+ ready: "ready";
136
136
  }>>;
137
137
  buildStatus: z.ZodNullable<z.ZodEnum<{
138
138
  failed: "failed";
139
- queued: "queued";
140
- running: "running";
141
- succeeded: "succeeded";
142
139
  canceled: "canceled";
143
140
  waiting_for_source: "waiting_for_source";
144
141
  uploading_source: "uploading_source";
142
+ queued: "queued";
143
+ running: "running";
144
+ succeeded: "succeeded";
145
145
  skipped: "skipped";
146
146
  }>>;
147
147
  input: z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
@@ -190,11 +190,11 @@ export declare const DeploymentSchema: z.ZodObject<{
190
190
  commitAuthorLogin: z.ZodNullable<z.ZodString>;
191
191
  pullRequestNumber: z.ZodNullable<z.ZodNumber>;
192
192
  actorType: z.ZodNullable<z.ZodEnum<{
193
+ system: "system";
193
194
  user: "user";
194
195
  api_key: "api_key";
195
196
  oauth_client: "oauth_client";
196
197
  anonymous_claim: "anonymous_claim";
197
- system: "system";
198
198
  }>>;
199
199
  actorId: z.ZodNullable<z.ZodString>;
200
200
  }, z.core.$strip>;
@@ -223,9 +223,9 @@ export declare const DeploymentSchema: z.ZodObject<{
223
223
  message: z.ZodString;
224
224
  path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
225
225
  provider: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
226
+ registrar: "registrar";
226
227
  wpcloud: "wpcloud";
227
228
  dns: "dns";
228
- registrar: "registrar";
229
229
  runtime: "runtime";
230
230
  }>>>;
231
231
  details: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
@@ -268,9 +268,9 @@ export declare const deploymentListResponseSchema: z.ZodObject<{
268
268
  }, z.core.$strip>>;
269
269
  activityGroup: z.ZodObject<{
270
270
  kind: z.ZodEnum<{
271
- version: "version";
272
271
  channel: "channel";
273
272
  source: "source";
273
+ version: "version";
274
274
  branch: "branch";
275
275
  pull_request: "pull_request";
276
276
  }>;
@@ -279,33 +279,33 @@ export declare const deploymentListResponseSchema: z.ZodObject<{
279
279
  }, z.core.$strip>;
280
280
  status: z.ZodEnum<{
281
281
  failed: "failed";
282
- queued: "queued";
283
282
  canceled: "canceled";
283
+ building: "building";
284
284
  ready: "ready";
285
285
  waiting_for_source: "waiting_for_source";
286
+ queued: "queued";
286
287
  skipped: "skipped";
287
- building: "building";
288
288
  }>;
289
289
  versionStatus: z.ZodNullable<z.ZodEnum<{
290
290
  failed: "failed";
291
291
  canceled: "canceled";
292
- ready: "ready";
293
292
  expired: "expired";
294
- created: "created";
295
293
  building: "building";
296
294
  prepared: "prepared";
295
+ created: "created";
297
296
  uploading: "uploading";
298
297
  uploaded: "uploaded";
299
298
  finalizing: "finalizing";
299
+ ready: "ready";
300
300
  }>>;
301
301
  buildStatus: z.ZodNullable<z.ZodEnum<{
302
302
  failed: "failed";
303
- queued: "queued";
304
- running: "running";
305
- succeeded: "succeeded";
306
303
  canceled: "canceled";
307
304
  waiting_for_source: "waiting_for_source";
308
305
  uploading_source: "uploading_source";
306
+ queued: "queued";
307
+ running: "running";
308
+ succeeded: "succeeded";
309
309
  skipped: "skipped";
310
310
  }>>;
311
311
  input: z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
@@ -354,11 +354,11 @@ export declare const deploymentListResponseSchema: z.ZodObject<{
354
354
  commitAuthorLogin: z.ZodNullable<z.ZodString>;
355
355
  pullRequestNumber: z.ZodNullable<z.ZodNumber>;
356
356
  actorType: z.ZodNullable<z.ZodEnum<{
357
+ system: "system";
357
358
  user: "user";
358
359
  api_key: "api_key";
359
360
  oauth_client: "oauth_client";
360
361
  anonymous_claim: "anonymous_claim";
361
- system: "system";
362
362
  }>>;
363
363
  actorId: z.ZodNullable<z.ZodString>;
364
364
  }, z.core.$strip>;
@@ -387,9 +387,9 @@ export declare const deploymentListResponseSchema: z.ZodObject<{
387
387
  message: z.ZodString;
388
388
  path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
389
389
  provider: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
390
+ registrar: "registrar";
390
391
  wpcloud: "wpcloud";
391
392
  dns: "dns";
392
- registrar: "registrar";
393
393
  runtime: "runtime";
394
394
  }>>>;
395
395
  details: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
@@ -433,9 +433,9 @@ export declare const deploymentGetResponseSchema: z.ZodObject<{
433
433
  }, z.core.$strip>>;
434
434
  activityGroup: z.ZodObject<{
435
435
  kind: z.ZodEnum<{
436
- version: "version";
437
436
  channel: "channel";
438
437
  source: "source";
438
+ version: "version";
439
439
  branch: "branch";
440
440
  pull_request: "pull_request";
441
441
  }>;
@@ -444,33 +444,33 @@ export declare const deploymentGetResponseSchema: z.ZodObject<{
444
444
  }, z.core.$strip>;
445
445
  status: z.ZodEnum<{
446
446
  failed: "failed";
447
- queued: "queued";
448
447
  canceled: "canceled";
448
+ building: "building";
449
449
  ready: "ready";
450
450
  waiting_for_source: "waiting_for_source";
451
+ queued: "queued";
451
452
  skipped: "skipped";
452
- building: "building";
453
453
  }>;
454
454
  versionStatus: z.ZodNullable<z.ZodEnum<{
455
455
  failed: "failed";
456
456
  canceled: "canceled";
457
- ready: "ready";
458
457
  expired: "expired";
459
- created: "created";
460
458
  building: "building";
461
459
  prepared: "prepared";
460
+ created: "created";
462
461
  uploading: "uploading";
463
462
  uploaded: "uploaded";
464
463
  finalizing: "finalizing";
464
+ ready: "ready";
465
465
  }>>;
466
466
  buildStatus: z.ZodNullable<z.ZodEnum<{
467
467
  failed: "failed";
468
- queued: "queued";
469
- running: "running";
470
- succeeded: "succeeded";
471
468
  canceled: "canceled";
472
469
  waiting_for_source: "waiting_for_source";
473
470
  uploading_source: "uploading_source";
471
+ queued: "queued";
472
+ running: "running";
473
+ succeeded: "succeeded";
474
474
  skipped: "skipped";
475
475
  }>>;
476
476
  input: z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
@@ -519,11 +519,11 @@ export declare const deploymentGetResponseSchema: z.ZodObject<{
519
519
  commitAuthorLogin: z.ZodNullable<z.ZodString>;
520
520
  pullRequestNumber: z.ZodNullable<z.ZodNumber>;
521
521
  actorType: z.ZodNullable<z.ZodEnum<{
522
+ system: "system";
522
523
  user: "user";
523
524
  api_key: "api_key";
524
525
  oauth_client: "oauth_client";
525
526
  anonymous_claim: "anonymous_claim";
526
- system: "system";
527
527
  }>>;
528
528
  actorId: z.ZodNullable<z.ZodString>;
529
529
  }, z.core.$strip>;
@@ -552,9 +552,9 @@ export declare const deploymentGetResponseSchema: z.ZodObject<{
552
552
  message: z.ZodString;
553
553
  path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
554
554
  provider: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
555
+ registrar: "registrar";
555
556
  wpcloud: "wpcloud";
556
557
  dns: "dns";
557
- registrar: "registrar";
558
558
  runtime: "runtime";
559
559
  }>>>;
560
560
  details: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
@@ -19,7 +19,6 @@ export type DeviceAuthorizationStartResponse = z.infer<typeof DeviceAuthorizatio
19
19
  export declare const DeviceAuthorizationPollRequestSchema: z.ZodObject<{
20
20
  deviceCode: z.ZodString;
21
21
  }, z.core.$strip>;
22
- export type DeviceAuthorizationPollRequest = z.infer<typeof DeviceAuthorizationPollRequestSchema>;
23
22
  export declare const DeviceAuthorizationStatusSchema: z.ZodEnum<{
24
23
  expired: "expired";
25
24
  pending: "pending";
@@ -27,7 +26,6 @@ export declare const DeviceAuthorizationStatusSchema: z.ZodEnum<{
27
26
  denied: "denied";
28
27
  consumed: "consumed";
29
28
  }>;
30
- export type DeviceAuthorizationStatus = z.infer<typeof DeviceAuthorizationStatusSchema>;
31
29
  export declare const DeviceAuthorizationPollResponseSchema: z.ZodObject<{
32
30
  status: z.ZodEnum<{
33
31
  expired: "expired";
@@ -42,17 +40,17 @@ export declare const DeviceAuthorizationPollResponseSchema: z.ZodObject<{
42
40
  tenantId: z.ZodNullable<z.ZodString>;
43
41
  subject: z.ZodNullable<z.ZodObject<{
44
42
  type: z.ZodEnum<{
43
+ team: "team";
45
44
  external: "external";
46
- user: "user";
47
45
  system: "system";
48
- team: "team";
46
+ user: "user";
49
47
  }>;
50
48
  id: z.ZodString;
51
49
  }, z.core.$strip>>;
52
50
  ownerPrincipal: z.ZodNullable<z.ZodObject<{
53
51
  type: z.ZodEnum<{
54
- external: "external";
55
52
  team: "team";
53
+ external: "external";
56
54
  }>;
57
55
  id: z.ZodString;
58
56
  }, z.core.$strip>>;
@@ -145,7 +143,6 @@ export type DeviceAuthorizationPollResponse = z.infer<typeof DeviceAuthorization
145
143
  export declare const DeviceAuthorizationVerifyQuerySchema: z.ZodObject<{
146
144
  user_code: z.ZodString;
147
145
  }, z.core.$strip>;
148
- export type DeviceAuthorizationVerifyQuery = z.infer<typeof DeviceAuthorizationVerifyQuerySchema>;
149
146
  export declare const DeviceAuthorizationVerifyResponseSchema: z.ZodObject<{
150
147
  status: z.ZodEnum<{
151
148
  expired: "expired";
@@ -164,7 +161,6 @@ export declare const DeviceAuthorizationVerifyResponseSchema: z.ZodObject<{
164
161
  liveUrl: z.ZodNullable<z.ZodString>;
165
162
  }, z.core.$strict>>;
166
163
  }, z.core.$strip>;
167
- export type DeviceAuthorizationVerifyResponse = z.infer<typeof DeviceAuthorizationVerifyResponseSchema>;
168
164
  export declare const DeviceAuthorizationApproveRequestSchema: z.ZodObject<{
169
165
  userCode: z.ZodString;
170
166
  teamId: z.ZodString;
@@ -177,18 +173,15 @@ export declare const DeviceAuthorizationApproveRequestSchema: z.ZodObject<{
177
173
  team_admin: "team_admin";
178
174
  billing_viewer: "billing_viewer";
179
175
  }>;
176
+ agentContinuation: z.ZodOptional<z.ZodBoolean>;
180
177
  }, z.core.$strict>;
181
- export type DeviceAuthorizationApproveRequest = z.infer<typeof DeviceAuthorizationApproveRequestSchema>;
182
178
  export declare const DeviceAuthorizationApproveResponseSchema: z.ZodObject<{
183
179
  status: z.ZodLiteral<"approved">;
184
180
  claimedSpaceId: z.ZodNullable<z.ZodString>;
185
181
  }, z.core.$strict>;
186
- export type DeviceAuthorizationApproveResponse = z.infer<typeof DeviceAuthorizationApproveResponseSchema>;
187
182
  export declare const DeviceAuthorizationDenyRequestSchema: z.ZodObject<{
188
183
  userCode: z.ZodString;
189
184
  }, z.core.$strip>;
190
- export type DeviceAuthorizationDenyRequest = z.infer<typeof DeviceAuthorizationDenyRequestSchema>;
191
185
  export declare const DeviceAuthorizationDenyResponseSchema: z.ZodObject<{
192
186
  status: z.ZodLiteral<"denied">;
193
187
  }, z.core.$strip>;
194
- export type DeviceAuthorizationDenyResponse = z.infer<typeof DeviceAuthorizationDenyResponseSchema>;
@@ -138,6 +138,10 @@ export const DeviceAuthorizationApproveRequestSchema = z
138
138
  .min(1)
139
139
  .describe("Team the minted API key will belong to. The approver must be a member."),
140
140
  preset: ApiKeyPresetSchema.describe("Policy preset for the minted key. Its compiled policy must be a subset of the approver's team-role policy."),
141
+ agentContinuation: z
142
+ .boolean()
143
+ .optional()
144
+ .describe("Applies when the device flow carries an anonymous-space claim: keep the publishing agent authorized after the claim (default false unless explicitly granted) via the one-time claim-token exchange."),
141
145
  })
142
146
  .strict();
143
147
  export const DeviceAuthorizationApproveResponseSchema = z