@buddy-works/sandbox-sdk 0.1.3 → 0.1.4-rc.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -1,7 +1,7 @@
1
1
  import { ZodError, prettifyError, z } from "zod";
2
2
  import { inspect } from "node:util";
3
3
  import pRetry from "p-retry";
4
- import * as fs from "node:fs";
4
+ import { readFile, writeFile } from "node:fs/promises";
5
5
 
6
6
  //#region src/api/openapi/transformers.gen.ts
7
7
  const projectViewSchemaResponseTransformer = (data) => {
@@ -56,12 +56,12 @@ const stopSandboxResponseTransformer = async (data) => {
56
56
  //#endregion
57
57
  //#region src/api/openapi/zod.gen.ts
58
58
  const zUpdateWorkspaceMemberRequest = z.object({
59
- admin: z.optional(z.boolean().register(z.globalRegistry, { description: "Whether the user has admin privileges" })),
60
- auto_assign_to_new_projects: z.optional(z.boolean().register(z.globalRegistry, { description: "Whether user is automatically assigned to new projects" })),
61
- auto_assign_permission_set_id: z.optional(z.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }).register(z.globalRegistry, { description: "ID of permission set to automatically assign to new projects" }))
59
+ admin: z.optional(z.boolean()),
60
+ auto_assign_to_new_projects: z.optional(z.boolean()),
61
+ auto_assign_permission_set_id: z.optional(z.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }))
62
62
  });
63
63
  const zUpdateSsoRequest = z.object({
64
- type: z.optional(z.enum(["SAML", "OIDC"]).register(z.globalRegistry, { description: "The type of the SSO to be set" })),
64
+ type: z.optional(z.enum(["SAML", "OIDC"])),
65
65
  sso_provider_type: z.optional(z.enum([
66
66
  "OKTA",
67
67
  "ONE_LOGIN",
@@ -69,18 +69,18 @@ const zUpdateSsoRequest = z.object({
69
69
  "AZURE",
70
70
  "AWS",
71
71
  "CUSTOM"
72
- ]).register(z.globalRegistry, { description: "The provider type for SSO configuration" })),
73
- sso_url: z.optional(z.string().register(z.globalRegistry, { description: "The SSO URL / SAML endpoint / Identity provider Single sign-on URL. Set when type is `SAML`." })),
74
- issuer: z.optional(z.string().register(z.globalRegistry, { description: "Issuer URI, IDP Entity ID, SSO issuer, provider issuer, AD identifier or the base URL of the OpenID Connect (OIDC) server." })),
75
- certificate: z.optional(z.string().register(z.globalRegistry, { description: "The x509 certificate content. Set when type is `SAML`." })),
76
- signature_method: z.optional(z.string().register(z.globalRegistry, { description: "Set when type is `SAML`. Examples: `sha1`, `sha256`, `sha512`" })),
77
- digest_method: z.optional(z.string().register(z.globalRegistry, { description: "Set when type is `SAML`. Examples: `sha1`, `sha256`, `sha512`" })),
78
- client_id: z.optional(z.string().register(z.globalRegistry, { description: "The client ID of the identity provider application." })),
79
- client_secret: z.optional(z.string().register(z.globalRegistry, { description: "The client secret of the identity provider application." })),
80
- require_sso_for_all_members: z.optional(z.boolean().register(z.globalRegistry, { description: "Require SSO authentication." }))
72
+ ])),
73
+ sso_url: z.optional(z.string()),
74
+ issuer: z.optional(z.string()),
75
+ certificate: z.optional(z.string()),
76
+ signature_method: z.optional(z.string()),
77
+ digest_method: z.optional(z.string()),
78
+ client_id: z.optional(z.string()),
79
+ client_secret: z.optional(z.string()),
80
+ require_sso_for_all_members: z.optional(z.boolean())
81
81
  });
82
82
  const zGroupPermissionView = z.object({
83
- id: z.optional(z.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }).register(z.globalRegistry, { description: "The ID of the group" })),
83
+ id: z.optional(z.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" })),
84
84
  access_level: z.optional(z.enum([
85
85
  "DENIED",
86
86
  "READ_ONLY",
@@ -93,10 +93,10 @@ const zGroupPermissionView = z.object({
93
93
  "STAGE",
94
94
  "COMMIT",
95
95
  "USE_ONLY"
96
- ]).register(z.globalRegistry, { description: "The access level for the group" }))
96
+ ]))
97
97
  });
98
98
  const zUserPermissionView = z.object({
99
- id: z.optional(z.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }).register(z.globalRegistry, { description: "The ID of the user" })),
99
+ id: z.optional(z.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" })),
100
100
  access_level: z.optional(z.enum([
101
101
  "DENIED",
102
102
  "READ_ONLY",
@@ -109,7 +109,7 @@ const zUserPermissionView = z.object({
109
109
  "STAGE",
110
110
  "COMMIT",
111
111
  "USE_ONLY"
112
- ]).register(z.globalRegistry, { description: "The access level for the user" }))
112
+ ]))
113
113
  });
114
114
  /**
115
115
  * Permission settings defining who can use this integration
@@ -127,9 +127,9 @@ const zIntegrationPermissionsView = z.object({
127
127
  "STAGE",
128
128
  "COMMIT",
129
129
  "USE_ONLY"
130
- ]).register(z.globalRegistry, { description: "Access level for other workspace members" })),
131
- users: z.optional(z.array(zUserPermissionView).register(z.globalRegistry, { description: "List of specific users with their access levels" })),
132
- groups: z.optional(z.array(zGroupPermissionView).register(z.globalRegistry, { description: "List of user groups with their access levels" })),
130
+ ])),
131
+ users: z.optional(z.array(zUserPermissionView)),
132
+ groups: z.optional(z.array(zGroupPermissionView)),
133
133
  admins: z.optional(z.enum([
134
134
  "DENIED",
135
135
  "READ_ONLY",
@@ -142,48 +142,48 @@ const zIntegrationPermissionsView = z.object({
142
142
  "STAGE",
143
143
  "COMMIT",
144
144
  "USE_ONLY"
145
- ]).register(z.globalRegistry, { description: "Access level for workspace administrators" }))
146
- }).register(z.globalRegistry, { description: "Permission settings defining who can use this integration" });
145
+ ]))
146
+ });
147
147
  /**
148
148
  * Pipeline reference
149
149
  */
150
- const zPipelineIdView = z.object({ id: z.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }).register(z.globalRegistry, { description: "The unique identifier of the pipeline" }) }).register(z.globalRegistry, { description: "Pipeline reference" });
150
+ const zPipelineIdView = z.object({ id: z.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }) });
151
151
  const zRoleAssumptionView = z.object({
152
- arn: z.optional(z.string().register(z.globalRegistry, { description: "The Amazon Resource Name (ARN) of the AWS IAM role to assume" })),
153
- external_id: z.optional(z.string().register(z.globalRegistry, { description: "The external ID used for additional security when assuming the AWS role" })),
154
- duration: z.optional(z.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }).register(z.globalRegistry, { description: "The duration of the assumed role session in seconds" }))
152
+ arn: z.optional(z.string()),
153
+ external_id: z.optional(z.string()),
154
+ duration: z.optional(z.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }))
155
155
  });
156
156
  const zUpdateIntegrationRequest = z.object({
157
- identifier: z.optional(z.string().register(z.globalRegistry, { description: "A human-readable ID of the integration" })),
158
- name: z.string().register(z.globalRegistry, { description: "The name of the integration" }),
159
- token: z.optional(z.string().register(z.globalRegistry, { description: "The authentication token for services like GitHub, GitLab, DigitalOcean" })),
160
- email: z.optional(z.string().register(z.globalRegistry, { description: "Email address associated with the integration" })),
161
- api_key: z.optional(z.string().register(z.globalRegistry, { description: "The API key for services that use key-based authentication" })),
162
- access_key: z.optional(z.string().register(z.globalRegistry, { description: "The access key ID for AWS or DigitalOcean Spaces" })),
163
- secret_key: z.optional(z.string().register(z.globalRegistry, { description: "The secret access key for AWS or DigitalOcean Spaces" })),
164
- partner_token: z.optional(z.string().register(z.globalRegistry, { description: "Partner token for specific integrations" })),
165
- shop: z.optional(z.string().register(z.globalRegistry, { description: "The shop name for Shopify integrations" })),
166
- url: z.optional(z.string().register(z.globalRegistry, { description: "The integration URL" })),
167
- chat_id: z.optional(z.string().register(z.globalRegistry, { description: "The chat ID for messaging integrations" })),
168
- git_hub_user_id: z.optional(z.string().register(z.globalRegistry, { description: "The GitHub user ID" })),
169
- git_hub_user_name: z.optional(z.string().register(z.globalRegistry, { description: "The GitHub username" })),
170
- username: z.optional(z.string().register(z.globalRegistry, { description: "The username for authentication" })),
171
- password: z.optional(z.string().register(z.globalRegistry, { description: "The password for Azure Cloud, UpCloud, or DockerHub" })),
172
- app_id: z.optional(z.string().register(z.globalRegistry, { description: "The application ID for Azure Cloud integrations" })),
173
- tenant_id: z.optional(z.string().register(z.globalRegistry, { description: "The tenant ID for Azure Cloud integrations" })),
174
- client_id: z.optional(z.string().register(z.globalRegistry, { description: "The client ID for OAuth-based integrations" })),
175
- client_token: z.optional(z.string().register(z.globalRegistry, { description: "The client token for authentication" })),
176
- server_id: z.optional(z.string().register(z.globalRegistry, { description: "The server ID for Discord integrations" })),
177
- server_token: z.optional(z.string().register(z.globalRegistry, { description: "The server token for authentication" })),
178
- key_id: z.optional(z.string().register(z.globalRegistry, { description: "The key ID for various integrations" })),
179
- application_key: z.optional(z.string().register(z.globalRegistry, { description: "The application key for Datadog integrations" })),
180
- host_url: z.optional(z.string().register(z.globalRegistry, { description: "The host URL for custom integrations" })),
181
- webhook_address: z.optional(z.string().register(z.globalRegistry, { description: "The webhook URL for receiving notifications" })),
182
- slack_user_id: z.optional(z.string().register(z.globalRegistry, { description: "The Slack user ID" })),
183
- region: z.optional(z.string().register(z.globalRegistry, { description: "The cloud region (e.g., us-east-1, eu-west-1)" })),
184
- role_assumptions: z.optional(z.array(zRoleAssumptionView).register(z.globalRegistry, { description: "AWS IAM role assumptions for cross-account access" })),
185
- all_pipelines_allowed: z.optional(z.boolean().register(z.globalRegistry, { description: "Set to `true` to allow all pipelines to use this integration" })),
186
- allowed_pipelines: z.optional(z.array(zPipelineIdView).register(z.globalRegistry, { description: "List of specific pipelines allowed to use this integration" })),
157
+ identifier: z.optional(z.string()),
158
+ name: z.string(),
159
+ token: z.optional(z.string()),
160
+ email: z.optional(z.string()),
161
+ api_key: z.optional(z.string()),
162
+ access_key: z.optional(z.string()),
163
+ secret_key: z.optional(z.string()),
164
+ partner_token: z.optional(z.string()),
165
+ shop: z.optional(z.string()),
166
+ url: z.optional(z.string()),
167
+ chat_id: z.optional(z.string()),
168
+ git_hub_user_id: z.optional(z.string()),
169
+ git_hub_user_name: z.optional(z.string()),
170
+ username: z.optional(z.string()),
171
+ password: z.optional(z.string()),
172
+ app_id: z.optional(z.string()),
173
+ tenant_id: z.optional(z.string()),
174
+ client_id: z.optional(z.string()),
175
+ client_token: z.optional(z.string()),
176
+ server_id: z.optional(z.string()),
177
+ server_token: z.optional(z.string()),
178
+ key_id: z.optional(z.string()),
179
+ application_key: z.optional(z.string()),
180
+ host_url: z.optional(z.string()),
181
+ webhook_address: z.optional(z.string()),
182
+ slack_user_id: z.optional(z.string()),
183
+ region: z.optional(z.string()),
184
+ role_assumptions: z.optional(z.array(zRoleAssumptionView)),
185
+ all_pipelines_allowed: z.optional(z.boolean()),
186
+ allowed_pipelines: z.optional(z.array(zPipelineIdView)),
187
187
  permissions: z.optional(zIntegrationPermissionsView),
188
188
  auth_type: z.optional(z.enum([
189
189
  "OAUTH",
@@ -196,52 +196,52 @@ const zUpdateIntegrationRequest = z.object({
196
196
  "OIDC",
197
197
  "TRUSTED",
198
198
  "APP_RW"
199
- ]).register(z.globalRegistry, { description: "The authentication method used by the integration" })),
200
- target_url: z.optional(z.string().register(z.globalRegistry, { description: "The target URL for webhook-based integrations" })),
201
- refresh_token: z.optional(z.string().register(z.globalRegistry, { description: "The refresh token for OAuth flows" })),
202
- audience: z.optional(z.string().register(z.globalRegistry, { description: "The JWT audience for token validation" })),
203
- config: z.optional(z.string().register(z.globalRegistry, { description: "Additional configuration data in JSON format" })),
204
- google_project: z.optional(z.string().register(z.globalRegistry, { description: "The Google Cloud project ID" })),
205
- atop_url: z.optional(z.string().register(z.globalRegistry, { description: "The ATOP service URL" }))
199
+ ])),
200
+ target_url: z.optional(z.string()),
201
+ refresh_token: z.optional(z.string()),
202
+ audience: z.optional(z.string()),
203
+ config: z.optional(z.string()),
204
+ google_project: z.optional(z.string()),
205
+ atop_url: z.optional(z.string())
206
206
  });
207
207
  const zShortWorkspaceView = z.object({
208
- url: z.optional(z.string().register(z.globalRegistry, { description: "API endpoint to GET this object" }).readonly()),
209
- html_url: z.optional(z.string().register(z.globalRegistry, { description: "Web URL to view this object in Buddy.works" }).readonly()),
210
- id: z.optional(z.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }).register(z.globalRegistry, { description: "The ID of the workspace" })),
211
- name: z.optional(z.string().register(z.globalRegistry, { description: "The name of the workspace" })),
212
- domain: z.optional(z.string().register(z.globalRegistry, { description: "The human-readable ID of the workspace. Alphanumeric characters, underscores, and hyphens (hyphens cannot appear at the start or end)." }))
208
+ url: z.optional(z.string().readonly()),
209
+ html_url: z.optional(z.string().readonly()),
210
+ id: z.optional(z.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" })),
211
+ name: z.optional(z.string()),
212
+ domain: z.optional(z.string())
213
213
  });
214
214
  const zWorkspacesView = z.object({
215
- url: z.optional(z.string().register(z.globalRegistry, { description: "API endpoint to GET this object" }).readonly()),
216
- html_url: z.optional(z.string().register(z.globalRegistry, { description: "Web URL to view this object in Buddy.works" }).readonly()),
215
+ url: z.optional(z.string().readonly()),
216
+ html_url: z.optional(z.string().readonly()),
217
217
  workspaces: z.optional(z.array(zShortWorkspaceView))
218
218
  });
219
219
  const zWorkspaceMemberView = z.object({
220
- url: z.optional(z.string().register(z.globalRegistry, { description: "API endpoint to GET this object" }).readonly()),
221
- html_url: z.optional(z.string().register(z.globalRegistry, { description: "Web URL to view this object in Buddy.works" }).readonly()),
222
- id: z.optional(z.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }).register(z.globalRegistry, { description: "The ID of the user" })),
223
- name: z.optional(z.string().register(z.globalRegistry, { description: "The name of the user" })),
224
- avatar_url: z.optional(z.string().register(z.globalRegistry, { description: "The avatar URL of the user" })),
225
- email: z.optional(z.string().register(z.globalRegistry, { description: "The email address of the user" })),
226
- admin: z.optional(z.boolean().register(z.globalRegistry, { description: "Whether the user has admin privileges" })),
227
- workspace_owner: z.optional(z.boolean().register(z.globalRegistry, { description: "Whether the user is workspace owner" })),
228
- auto_assign_to_new_projects: z.optional(z.boolean().register(z.globalRegistry, { description: "Whether user is automatically assigned to new projects" })),
229
- auto_assign_permission_set_id: z.optional(z.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }).register(z.globalRegistry, { description: "ID of permission set to automatically assign to new projects" }))
220
+ url: z.optional(z.string().readonly()),
221
+ html_url: z.optional(z.string().readonly()),
222
+ id: z.optional(z.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" })),
223
+ name: z.optional(z.string()),
224
+ avatar_url: z.optional(z.string()),
225
+ email: z.optional(z.string()),
226
+ admin: z.optional(z.boolean()),
227
+ workspace_owner: z.optional(z.boolean()),
228
+ auto_assign_to_new_projects: z.optional(z.boolean()),
229
+ auto_assign_permission_set_id: z.optional(z.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }))
230
230
  });
231
231
  const zWorkspaceMembersView = z.object({
232
- url: z.optional(z.string().register(z.globalRegistry, { description: "API endpoint to GET this object" }).readonly()),
233
- html_url: z.optional(z.string().register(z.globalRegistry, { description: "Web URL to view this object in Buddy.works" }).readonly()),
232
+ url: z.optional(z.string().readonly()),
233
+ html_url: z.optional(z.string().readonly()),
234
234
  members: z.optional(z.array(zWorkspaceMemberView))
235
235
  });
236
236
  const zWorkspaceView = z.object({
237
- url: z.optional(z.string().register(z.globalRegistry, { description: "API endpoint to GET this object" }).readonly()),
238
- html_url: z.optional(z.string().register(z.globalRegistry, { description: "Web URL to view this object in Buddy.works" }).readonly()),
239
- id: z.optional(z.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }).register(z.globalRegistry, { description: "The ID of the workspace" })),
240
- name: z.optional(z.string().register(z.globalRegistry, { description: "The name of the workspace" })),
241
- domain: z.optional(z.string().register(z.globalRegistry, { description: "The human-readable ID of the workspace. Alphanumeric characters, underscores, and hyphens (hyphens cannot appear at the start or end)." })),
242
- owner_id: z.optional(z.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }).register(z.globalRegistry, { description: "The ID of the workspace owner" })),
243
- frozen: z.optional(z.boolean().register(z.globalRegistry, { description: "Whether the workspace is frozen" })),
244
- create_date: z.optional(z.iso.datetime().register(z.globalRegistry, { description: "The date and time when the workspace was created" })),
237
+ url: z.optional(z.string().readonly()),
238
+ html_url: z.optional(z.string().readonly()),
239
+ id: z.optional(z.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" })),
240
+ name: z.optional(z.string()),
241
+ domain: z.optional(z.string()),
242
+ owner_id: z.optional(z.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" })),
243
+ frozen: z.optional(z.boolean()),
244
+ create_date: z.optional(z.iso.datetime()),
245
245
  default_pipeline_resource: z.optional(z.enum([
246
246
  "DEFAULT",
247
247
  "NANO",
@@ -251,14 +251,14 @@ const zWorkspaceView = z.object({
251
251
  "XLARGE",
252
252
  "CUSTOM",
253
253
  "X2LARGE"
254
- ]).register(z.globalRegistry, { description: "Default pipeline resource allocation for the workspace" })),
255
- sso_enabled: z.optional(z.boolean().register(z.globalRegistry, { description: "Whether Single Sign-On (SSO) is enabled for the workspace" })),
256
- public_pipelines_disabled: z.optional(z.boolean().register(z.globalRegistry, { description: "Whether public pipelines are disabled in the workspace" }))
254
+ ])),
255
+ sso_enabled: z.optional(z.boolean()),
256
+ public_pipelines_disabled: z.optional(z.boolean())
257
257
  });
258
258
  const zSsoView = z.object({
259
- url: z.optional(z.string().register(z.globalRegistry, { description: "API endpoint to GET this object" }).readonly()),
260
- html_url: z.optional(z.string().register(z.globalRegistry, { description: "Web URL to view this object in Buddy.works" }).readonly()),
261
- type: z.optional(z.enum(["SAML", "OIDC"]).register(z.globalRegistry, { description: "The type of the SSO to be set" })),
259
+ url: z.optional(z.string().readonly()),
260
+ html_url: z.optional(z.string().readonly()),
261
+ type: z.optional(z.enum(["SAML", "OIDC"])),
262
262
  sso_provider_type: z.optional(z.enum([
263
263
  "OKTA",
264
264
  "ONE_LOGIN",
@@ -266,37 +266,37 @@ const zSsoView = z.object({
266
266
  "AZURE",
267
267
  "AWS",
268
268
  "CUSTOM"
269
- ]).register(z.globalRegistry, { description: "The provider type for SSO configuration" })),
270
- sso_url: z.optional(z.string().register(z.globalRegistry, { description: "The SSO URL / SAML endpoint / Identity provider Single sign-on URL. Set when type is `SAML`." })),
271
- issuer: z.optional(z.string().register(z.globalRegistry, { description: "Issuer URI, IDP Entity ID, SSO issuer, provider issuer, AD identifier or the base URL of the OpenID Connect (OIDC) server." })),
272
- certificate: z.optional(z.string().register(z.globalRegistry, { description: "The x509 certificate content. Set when type is `SAML`." })),
273
- signature_method: z.optional(z.string().register(z.globalRegistry, { description: "Set when type is `SAML`. Examples: `sha1`, `sha256`, `sha512`" })),
274
- digest_method: z.optional(z.string().register(z.globalRegistry, { description: "Set when type is `SAML`. Examples: `sha1`, `sha256`, `sha512`" })),
275
- require_sso_for_all_members: z.optional(z.boolean().register(z.globalRegistry, { description: "Require SSO authentication." }))
269
+ ])),
270
+ sso_url: z.optional(z.string()),
271
+ issuer: z.optional(z.string()),
272
+ certificate: z.optional(z.string()),
273
+ signature_method: z.optional(z.string()),
274
+ digest_method: z.optional(z.string()),
275
+ require_sso_for_all_members: z.optional(z.boolean())
276
276
  });
277
277
  /**
278
278
  * YAML pipeline definition configuration
279
279
  */
280
280
  const zYamlDefinitionView = z.object({
281
- path: z.optional(z.string().register(z.globalRegistry, { description: "The file path to the YAML definition" })),
282
- branch: z.optional(z.string().register(z.globalRegistry, { description: "The git ref (branch/tag) where the YAML definition is located" })),
283
- project: z.optional(z.string().register(z.globalRegistry, { description: "The project name where the YAML definition is located" }))
284
- }).register(z.globalRegistry, { description: "YAML pipeline definition configuration" });
281
+ path: z.optional(z.string()),
282
+ branch: z.optional(z.string()),
283
+ project: z.optional(z.string())
284
+ });
285
285
  /**
286
286
  * The parameters passed to the remote pipeline definition
287
287
  */
288
288
  const zPipelinePropertyView = z.object({
289
- key: z.optional(z.string().register(z.globalRegistry, { description: "The key of the pipeline property" })),
290
- value: z.optional(z.string().register(z.globalRegistry, { description: "The value of the pipeline property" }))
291
- }).register(z.globalRegistry, { description: "The parameters passed to the remote pipeline definition" });
289
+ key: z.optional(z.string()),
290
+ value: z.optional(z.string())
291
+ });
292
292
  const zPipelinePkgContextView = z.object({
293
- identifier: z.optional(z.string().register(z.globalRegistry, { description: "A human-readable ID of package" })),
293
+ identifier: z.optional(z.string()),
294
294
  scope: z.optional(z.enum([
295
295
  "WORKSPACE",
296
296
  "PROJECT",
297
297
  "ENVIRONMENT",
298
298
  "ANY"
299
- ]).register(z.globalRegistry, { description: "The scope of the package" }))
299
+ ]))
300
300
  });
301
301
  /**
302
302
  * The list of events that trigger the pipeline run
@@ -313,44 +313,44 @@ const zPipelineEventView = z.object({
313
313
  "WEBHOOK",
314
314
  "EMAIL",
315
315
  "CREATE_PACKAGE_VERSION"
316
- ]).register(z.globalRegistry, { description: "The type of event that triggers the pipeline" })),
317
- refs: z.optional(z.array(z.string()).register(z.globalRegistry, { description: "The list of refs (branches/tags) that trigger the pipeline for push/ref events" })),
318
- events: z.optional(z.array(z.string()).register(z.globalRegistry, { description: "The list of pull request events that trigger the pipeline. Examples: `OPENED`, `EDITED`, `CLOSED`, `LABELED`, `UNLABELED`, `REVIEW_REQUESTED`, `REVIEW_REQUESTED_REMOVED`, `SYNCHRONIZED`" })),
319
- branches: z.optional(z.array(z.string()).register(z.globalRegistry, { description: "The list of branches for pull request events" })),
320
- packages: z.optional(z.array(zPipelinePkgContextView).register(z.globalRegistry, { description: "The list of packages that trigger the pipeline" })),
321
- start_date: z.optional(z.iso.datetime().register(z.globalRegistry, { description: "The start date for scheduled events (type `SCHEDULE`)" })),
322
- delay: z.optional(z.coerce.bigint().min(BigInt("-9223372036854775808"), { error: "Invalid value: Expected int64 to be >= -9223372036854775808" }).max(BigInt("9223372036854775807"), { error: "Invalid value: Expected int64 to be <= 9223372036854775807" }).register(z.globalRegistry, { description: "The delay in minutes between scheduled runs (type `SCHEDULE`)" })),
323
- cron: z.optional(z.string().register(z.globalRegistry, { description: "The cron expression for scheduled (type `SCHEDULE`) events e.g., '0 9 * * 1-5' for weekdays at 9 AM" })),
324
- timezone: z.optional(z.string().register(z.globalRegistry, { description: "The timezone for scheduled events (type `SCHEDULE`) e.g., 'UTC', 'Europe/Warsaw'" })),
325
- totp: z.optional(z.boolean().register(z.globalRegistry, { description: "Whether TOTP (Time-based One-Time Password) is enabled for webhook events (type `WEBHOOK`)" })),
326
- prefix: z.optional(z.string().register(z.globalRegistry, { description: "The email subject prefix for email trigger events (type `EMAIL`)" })),
327
- whitelist: z.optional(z.array(z.string()).register(z.globalRegistry, { description: "The list of allowed email addresses that can trigger the pipeline via email (type `EMAIL`)" }))
328
- }).register(z.globalRegistry, { description: "The list of events that trigger the pipeline run" });
316
+ ])),
317
+ refs: z.optional(z.array(z.string())),
318
+ events: z.optional(z.array(z.string())),
319
+ branches: z.optional(z.array(z.string())),
320
+ packages: z.optional(z.array(zPipelinePkgContextView)),
321
+ start_date: z.optional(z.iso.datetime()),
322
+ delay: z.optional(z.coerce.bigint().min(BigInt("-9223372036854775808"), { error: "Invalid value: Expected int64 to be >= -9223372036854775808" }).max(BigInt("9223372036854775807"), { error: "Invalid value: Expected int64 to be <= 9223372036854775807" })),
323
+ cron: z.optional(z.string()),
324
+ timezone: z.optional(z.string()),
325
+ totp: z.optional(z.boolean()),
326
+ prefix: z.optional(z.string()),
327
+ whitelist: z.optional(z.array(z.string()))
328
+ });
329
329
  /**
330
330
  * Short representation of a pipeline
331
331
  */
332
332
  const zShortPipelineView = z.object({
333
- url: z.optional(z.string().register(z.globalRegistry, { description: "API endpoint to GET this object" }).readonly()),
334
- html_url: z.optional(z.string().register(z.globalRegistry, { description: "Web URL to view this object in Buddy.works" }).readonly()),
335
- id: z.optional(z.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }).register(z.globalRegistry, { description: "The unique identifier of the pipeline" })),
336
- identifier: z.optional(z.string().register(z.globalRegistry, { description: "A human-readable ID of pipeline" })),
337
- name: z.optional(z.string().register(z.globalRegistry, { description: "The name of the pipeline" })),
338
- definition_source: z.optional(z.enum(["LOCAL", "REMOTE"]).register(z.globalRegistry, { description: "The source of the pipeline definition" })),
333
+ url: z.optional(z.string().readonly()),
334
+ html_url: z.optional(z.string().readonly()),
335
+ id: z.optional(z.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" })),
336
+ identifier: z.optional(z.string()),
337
+ name: z.optional(z.string()),
338
+ definition_source: z.optional(z.enum(["LOCAL", "REMOTE"])),
339
339
  git_config_ref: z.optional(z.enum([
340
340
  "NONE",
341
341
  "DYNAMIC",
342
342
  "FIXED"
343
- ]).register(z.globalRegistry, { description: "The git configuration reference type" })),
344
- refs: z.optional(z.array(z.string().register(z.globalRegistry, { description: "Pipeline git context refs. If unset and events is empty, the pipeline counts as codeless" })).register(z.globalRegistry, { description: "Pipeline git context refs. If unset and events is empty, the pipeline counts as codeless" })),
345
- events: z.optional(z.array(zPipelineEventView).register(z.globalRegistry, { description: "The list of events that trigger the pipeline run" })),
346
- loop: z.optional(z.array(z.string()).register(z.globalRegistry, { description: "The loop configuration for the pipeline" })),
343
+ ])),
344
+ refs: z.optional(z.array(z.string())),
345
+ events: z.optional(z.array(zPipelineEventView)),
346
+ loop: z.optional(z.array(z.string())),
347
347
  priority: z.optional(z.enum([
348
348
  "LOW",
349
349
  "NORMAL",
350
350
  "HIGH"
351
- ]).register(z.globalRegistry, { description: "The priority of the pipeline" })),
352
- disabled: z.optional(z.boolean().register(z.globalRegistry, { description: "Indicates if the pipeline is disabled" })),
353
- disabled_reason: z.optional(z.string().register(z.globalRegistry, { description: "The reason why the pipeline is disabled" })),
351
+ ])),
352
+ disabled: z.optional(z.boolean()),
353
+ disabled_reason: z.optional(z.string()),
354
354
  last_execution_status: z.optional(z.enum([
355
355
  "INPROGRESS",
356
356
  "ENQUEUED",
@@ -365,25 +365,25 @@ const zShortPipelineView = z.object({
365
365
  "WAITING_FOR_VARIABLES",
366
366
  "WAITING_FOR_SETTABLE_VARIABLES",
367
367
  "WAITING_FOR_VT_SESSION"
368
- ]).register(z.globalRegistry, { description: "The status of the last run" })),
369
- last_execution_revision: z.optional(z.string().register(z.globalRegistry, { description: "The git revision of the last run" })),
370
- target_site_url: z.optional(z.string().register(z.globalRegistry, { description: "The URL to the target site after deployment" })),
371
- execution_message_template: z.optional(z.string().register(z.globalRegistry, { description: "The template for commit status messages" })),
372
- create_date: z.optional(z.iso.datetime().register(z.globalRegistry, { description: "The creation date of the pipeline" })),
373
- always_from_scratch: z.optional(z.boolean().register(z.globalRegistry, { description: "Defines whether to upload everything from scratch on every run" })),
374
- ignore_fail_on_project_status: z.optional(z.boolean().register(z.globalRegistry, { description: "If set to true, the status of a given pipeline will not impact the project status on the dashboard" })),
375
- no_skip_to_most_recent: z.optional(z.boolean().register(z.globalRegistry, { description: "If set to true, the pipeline will not skip queued runs to execute the most recent one" })),
376
- terminate_stale_runs: z.optional(z.boolean().register(z.globalRegistry, { description: "If set to true, stale runs will be automatically terminated" })),
377
- auto_clear_cache: z.optional(z.boolean().register(z.globalRegistry, { description: "Defines whether to automatically clear cache before running the pipeline" })),
378
- paused: z.optional(z.boolean().register(z.globalRegistry, { description: "Indicates if the pipeline is paused" })),
379
- pause_on_repeated_failures: z.optional(z.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }).register(z.globalRegistry, { description: "Defines how many repeated failures are required to pause the pipeline" })),
380
- fetch_all_refs: z.optional(z.boolean().register(z.globalRegistry, { description: "If set to true, all refs will be fetched from the repository" })),
381
- fail_on_prepare_env_warning: z.optional(z.boolean().register(z.globalRegistry, { description: "If set to true, the pipeline will fail on environment preparation warnings" })),
382
- concurrent_pipeline_runs: z.optional(z.boolean().register(z.globalRegistry, { description: "Defines whether the pipeline can be run concurrently" })),
383
- clone_depth: z.optional(z.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }).register(z.globalRegistry, { description: "Defines the depth of the git clone operation for shallow clones" })),
384
- do_not_create_commit_status: z.optional(z.boolean().register(z.globalRegistry, { description: "If set to true, commit statuses will not be created in the repository" })),
385
- stale: z.optional(z.boolean().register(z.globalRegistry, { description: "Indicates that pipeline definition was probably removed on particular Git ref and pipeline won't be run on events" })),
386
- waiting_for_push: z.optional(z.boolean().register(z.globalRegistry, { description: "Indicates if the pipeline is waiting for the first push to the repository" })),
368
+ ])),
369
+ last_execution_revision: z.optional(z.string()),
370
+ target_site_url: z.optional(z.string()),
371
+ execution_message_template: z.optional(z.string()),
372
+ create_date: z.optional(z.iso.datetime()),
373
+ always_from_scratch: z.optional(z.boolean()),
374
+ ignore_fail_on_project_status: z.optional(z.boolean()),
375
+ no_skip_to_most_recent: z.optional(z.boolean()),
376
+ terminate_stale_runs: z.optional(z.boolean()),
377
+ auto_clear_cache: z.optional(z.boolean()),
378
+ paused: z.optional(z.boolean()),
379
+ pause_on_repeated_failures: z.optional(z.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" })),
380
+ fetch_all_refs: z.optional(z.boolean()),
381
+ fail_on_prepare_env_warning: z.optional(z.boolean()),
382
+ concurrent_pipeline_runs: z.optional(z.boolean()),
383
+ clone_depth: z.optional(z.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" })),
384
+ do_not_create_commit_status: z.optional(z.boolean()),
385
+ stale: z.optional(z.boolean()),
386
+ waiting_for_push: z.optional(z.boolean()),
387
387
  resources: z.optional(z.enum([
388
388
  "DEFAULT",
389
389
  "NANO",
@@ -393,36 +393,36 @@ const zShortPipelineView = z.object({
393
393
  "XLARGE",
394
394
  "CUSTOM",
395
395
  "X2LARGE"
396
- ]).register(z.globalRegistry, { description: "The resource configuration for the pipeline run" })),
397
- remote_path: z.optional(z.string().register(z.globalRegistry, { description: "The path to the remote pipeline definition file" })),
398
- remote_ref: z.optional(z.string().register(z.globalRegistry, { description: "The ref of the remote pipeline definition" })),
399
- remote_project_name: z.optional(z.string().register(z.globalRegistry, { description: "The project name of the remote pipeline definition" })),
400
- remote_parameters: z.optional(z.array(zPipelinePropertyView).register(z.globalRegistry, { description: "The parameters passed to the remote pipeline definition" })),
396
+ ])),
397
+ remote_path: z.optional(z.string()),
398
+ remote_ref: z.optional(z.string()),
399
+ remote_project_name: z.optional(z.string()),
400
+ remote_parameters: z.optional(z.array(zPipelinePropertyView)),
401
401
  git_config: z.optional(zYamlDefinitionView),
402
- tags: z.optional(z.array(z.string()).register(z.globalRegistry, { description: "The list of tags associated with the pipeline for organization" })),
402
+ tags: z.optional(z.array(z.string())),
403
403
  git_changeset_base: z.optional(z.enum([
404
404
  "LATEST_RUN",
405
405
  "LATEST_RUN_MATCHING_REF",
406
406
  "PULL_REQUEST"
407
- ]).register(z.globalRegistry, { description: "The base for git changeset calculation. Determines which changes trigger the pipeline" })),
408
- filesystem_changeset_base: z.optional(z.enum(["DATE_MODIFIED", "CONTENTS"]).register(z.globalRegistry, { description: "The base for filesystem changeset calculation. Determines which file changes trigger the pipeline" })),
407
+ ])),
408
+ filesystem_changeset_base: z.optional(z.enum(["DATE_MODIFIED", "CONTENTS"])),
409
409
  cpu: z.optional(z.enum([
410
410
  "X64",
411
411
  "ARM",
412
412
  "X86"
413
- ]).register(z.globalRegistry, { description: "The CPU architecture for the pipeline run" })),
414
- description_required: z.optional(z.boolean().register(z.globalRegistry, { description: "If set to true, a description is required when executing the pipeline manually" })),
415
- folder: z.optional(z.string().register(z.globalRegistry, { description: "The folder name where the pipeline is organized" }))
416
- }).register(z.globalRegistry, { description: "Short representation of a pipeline" });
413
+ ])),
414
+ description_required: z.optional(z.boolean()),
415
+ folder: z.optional(z.string())
416
+ });
417
417
  /**
418
418
  * The integration to use for authentication
419
419
  */
420
420
  const zIntegrationView = z.object({
421
- url: z.optional(z.string().register(z.globalRegistry, { description: "API endpoint to GET this object" }).readonly()),
422
- html_url: z.optional(z.string().register(z.globalRegistry, { description: "Web URL to view this object in Buddy.works" }).readonly()),
423
- identifier: z.optional(z.string().register(z.globalRegistry, { description: "A human-readable ID of the integration" })),
424
- hash_id: z.optional(z.string().register(z.globalRegistry, { description: "The unique hash ID of the integration" })),
425
- name: z.optional(z.string().register(z.globalRegistry, { description: "The name of the integration" })),
421
+ url: z.optional(z.string().readonly()),
422
+ html_url: z.optional(z.string().readonly()),
423
+ identifier: z.optional(z.string()),
424
+ hash_id: z.optional(z.string()),
425
+ name: z.optional(z.string()),
426
426
  type: z.optional(z.enum([
427
427
  "GIT_HUB",
428
428
  "BITBUCKET",
@@ -474,7 +474,7 @@ const zIntegrationView = z.object({
474
474
  "ONE_LOGIN",
475
475
  "OKTA",
476
476
  "CONTENTFUL"
477
- ]).register(z.globalRegistry, { description: "The type of integration" })),
477
+ ])),
478
478
  auth_type: z.optional(z.enum([
479
479
  "OAUTH",
480
480
  "TOKEN",
@@ -486,76 +486,76 @@ const zIntegrationView = z.object({
486
486
  "OIDC",
487
487
  "TRUSTED",
488
488
  "APP_RW"
489
- ]).register(z.globalRegistry, { description: "The authentication method used by the integration" })),
489
+ ])),
490
490
  scope: z.optional(z.enum([
491
491
  "WORKSPACE",
492
492
  "PROJECT",
493
493
  "ENVIRONMENT"
494
- ]).register(z.globalRegistry, { description: "The scope of the integration" })),
495
- project_name: z.optional(z.string().register(z.globalRegistry, { description: "The human-readable ID of the project (required when scope is `PROJECT`)" })),
496
- app_id: z.optional(z.string().register(z.globalRegistry, { description: "The application ID for Azure Cloud integrations" })),
497
- google_project: z.optional(z.string().register(z.globalRegistry, { description: "The Google Cloud project ID" })),
498
- host_url: z.optional(z.string().register(z.globalRegistry, { description: "The host URL for custom integrations" })),
499
- webhook_address: z.optional(z.string().register(z.globalRegistry, { description: "The webhook URL for receiving notifications" })),
500
- audience: z.optional(z.string().register(z.globalRegistry, { description: "The JWT audience for token validation" })),
501
- atop_url: z.optional(z.string().register(z.globalRegistry, { description: "The ATOP service URL" })),
494
+ ])),
495
+ project_name: z.optional(z.string()),
496
+ app_id: z.optional(z.string()),
497
+ google_project: z.optional(z.string()),
498
+ host_url: z.optional(z.string()),
499
+ webhook_address: z.optional(z.string()),
500
+ audience: z.optional(z.string()),
501
+ atop_url: z.optional(z.string()),
502
502
  permissions: z.optional(zIntegrationPermissionsView),
503
- all_pipelines_allowed: z.optional(z.boolean().register(z.globalRegistry, { description: "Set to `true` to allow all pipelines to use this integration" })),
504
- allowed_pipelines: z.optional(z.array(zShortPipelineView).register(z.globalRegistry, { description: "List of specific pipelines allowed to use this integration" }))
505
- }).register(z.globalRegistry, { description: "The integration to use for authentication" });
503
+ all_pipelines_allowed: z.optional(z.boolean()),
504
+ allowed_pipelines: z.optional(z.array(zShortPipelineView))
505
+ });
506
506
  const zIntegrationsView = z.object({
507
- url: z.optional(z.string().register(z.globalRegistry, { description: "API endpoint to GET this object" }).readonly()),
508
- html_url: z.optional(z.string().register(z.globalRegistry, { description: "Web URL to view this object in Buddy.works" }).readonly()),
507
+ url: z.optional(z.string().readonly()),
508
+ html_url: z.optional(z.string().readonly()),
509
509
  integrations: z.optional(z.array(zIntegrationView))
510
510
  });
511
511
  const zIdsView = z.object({
512
- url: z.optional(z.string().register(z.globalRegistry, { description: "API endpoint to GET this object" }).readonly()),
513
- html_url: z.optional(z.string().register(z.globalRegistry, { description: "Web URL to view this object in Buddy.works" }).readonly()),
514
- domain: z.optional(z.string().register(z.globalRegistry, { description: "The human-readable ID of the workspace" })),
515
- project_identifier: z.optional(z.string().register(z.globalRegistry, { description: "The human-readable ID of the project" })),
516
- pipeline_id: z.optional(z.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }).register(z.globalRegistry, { description: "The ID of the pipeline" })),
517
- environment_id: z.optional(z.string().register(z.globalRegistry, { description: "The ID of the environment" })),
518
- pkg_id: z.optional(z.string().register(z.globalRegistry, { description: "The ID of the package" })),
519
- pkg_version_id: z.optional(z.string().register(z.globalRegistry, { description: "The ID of the package version" })),
520
- sandbox_id: z.optional(z.string().register(z.globalRegistry, { description: "The ID of the sandbox" }))
512
+ url: z.optional(z.string().readonly()),
513
+ html_url: z.optional(z.string().readonly()),
514
+ domain: z.optional(z.string()),
515
+ project_identifier: z.optional(z.string()),
516
+ pipeline_id: z.optional(z.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" })),
517
+ environment_id: z.optional(z.string()),
518
+ pkg_id: z.optional(z.string()),
519
+ pkg_version_id: z.optional(z.string()),
520
+ sandbox_id: z.optional(z.string())
521
521
  });
522
522
  const zAddWorkspaceMemberRequest = z.object({
523
- admin: z.optional(z.boolean().register(z.globalRegistry, { description: "Whether the user has admin privileges" })),
524
- auto_assign_to_new_projects: z.optional(z.boolean().register(z.globalRegistry, { description: "Whether user is automatically assigned to new projects" })),
525
- auto_assign_permission_set_id: z.optional(z.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }).register(z.globalRegistry, { description: "ID of permission set to automatically assign to new projects" })),
526
- email: z.string().register(z.globalRegistry, { description: "The email address of the user" })
523
+ admin: z.optional(z.boolean()),
524
+ auto_assign_to_new_projects: z.optional(z.boolean()),
525
+ auto_assign_permission_set_id: z.optional(z.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" })),
526
+ email: z.string()
527
527
  });
528
528
  const zAddIntegrationRequest = z.object({
529
- identifier: z.optional(z.string().register(z.globalRegistry, { description: "A human-readable ID of the integration" })),
530
- name: z.string().register(z.globalRegistry, { description: "The name of the integration" }),
531
- token: z.optional(z.string().register(z.globalRegistry, { description: "The authentication token for services like GitHub, GitLab, DigitalOcean" })),
532
- email: z.optional(z.string().register(z.globalRegistry, { description: "Email address associated with the integration" })),
533
- api_key: z.optional(z.string().register(z.globalRegistry, { description: "The API key for services that use key-based authentication" })),
534
- access_key: z.optional(z.string().register(z.globalRegistry, { description: "The access key ID for AWS or DigitalOcean Spaces" })),
535
- secret_key: z.optional(z.string().register(z.globalRegistry, { description: "The secret access key for AWS or DigitalOcean Spaces" })),
536
- partner_token: z.optional(z.string().register(z.globalRegistry, { description: "Partner token for specific integrations" })),
537
- shop: z.optional(z.string().register(z.globalRegistry, { description: "The shop name for Shopify integrations" })),
538
- url: z.optional(z.string().register(z.globalRegistry, { description: "The integration URL" })),
539
- chat_id: z.optional(z.string().register(z.globalRegistry, { description: "The chat ID for messaging integrations" })),
540
- git_hub_user_id: z.optional(z.string().register(z.globalRegistry, { description: "The GitHub user ID" })),
541
- git_hub_user_name: z.optional(z.string().register(z.globalRegistry, { description: "The GitHub username" })),
542
- username: z.optional(z.string().register(z.globalRegistry, { description: "The username for authentication" })),
543
- password: z.optional(z.string().register(z.globalRegistry, { description: "The password for Azure Cloud, UpCloud, or DockerHub" })),
544
- app_id: z.optional(z.string().register(z.globalRegistry, { description: "The application ID for Azure Cloud integrations" })),
545
- tenant_id: z.optional(z.string().register(z.globalRegistry, { description: "The tenant ID for Azure Cloud integrations" })),
546
- client_id: z.optional(z.string().register(z.globalRegistry, { description: "The client ID for OAuth-based integrations" })),
547
- client_token: z.optional(z.string().register(z.globalRegistry, { description: "The client token for authentication" })),
548
- server_id: z.optional(z.string().register(z.globalRegistry, { description: "The server ID for Discord integrations" })),
549
- server_token: z.optional(z.string().register(z.globalRegistry, { description: "The server token for authentication" })),
550
- key_id: z.optional(z.string().register(z.globalRegistry, { description: "The key ID for various integrations" })),
551
- application_key: z.optional(z.string().register(z.globalRegistry, { description: "The application key for Datadog integrations" })),
552
- host_url: z.optional(z.string().register(z.globalRegistry, { description: "The host URL for custom integrations" })),
553
- webhook_address: z.optional(z.string().register(z.globalRegistry, { description: "The webhook URL for receiving notifications" })),
554
- slack_user_id: z.optional(z.string().register(z.globalRegistry, { description: "The Slack user ID" })),
555
- region: z.optional(z.string().register(z.globalRegistry, { description: "The cloud region (e.g., us-east-1, eu-west-1)" })),
556
- role_assumptions: z.optional(z.array(zRoleAssumptionView).register(z.globalRegistry, { description: "AWS IAM role assumptions for cross-account access" })),
557
- all_pipelines_allowed: z.optional(z.boolean().register(z.globalRegistry, { description: "Set to `true` to allow all pipelines to use this integration" })),
558
- allowed_pipelines: z.optional(z.array(zPipelineIdView).register(z.globalRegistry, { description: "List of specific pipelines allowed to use this integration" })),
529
+ identifier: z.optional(z.string()),
530
+ name: z.string(),
531
+ token: z.optional(z.string()),
532
+ email: z.optional(z.string()),
533
+ api_key: z.optional(z.string()),
534
+ access_key: z.optional(z.string()),
535
+ secret_key: z.optional(z.string()),
536
+ partner_token: z.optional(z.string()),
537
+ shop: z.optional(z.string()),
538
+ url: z.optional(z.string()),
539
+ chat_id: z.optional(z.string()),
540
+ git_hub_user_id: z.optional(z.string()),
541
+ git_hub_user_name: z.optional(z.string()),
542
+ username: z.optional(z.string()),
543
+ password: z.optional(z.string()),
544
+ app_id: z.optional(z.string()),
545
+ tenant_id: z.optional(z.string()),
546
+ client_id: z.optional(z.string()),
547
+ client_token: z.optional(z.string()),
548
+ server_id: z.optional(z.string()),
549
+ server_token: z.optional(z.string()),
550
+ key_id: z.optional(z.string()),
551
+ application_key: z.optional(z.string()),
552
+ host_url: z.optional(z.string()),
553
+ webhook_address: z.optional(z.string()),
554
+ slack_user_id: z.optional(z.string()),
555
+ region: z.optional(z.string()),
556
+ role_assumptions: z.optional(z.array(zRoleAssumptionView)),
557
+ all_pipelines_allowed: z.optional(z.boolean()),
558
+ allowed_pipelines: z.optional(z.array(zPipelineIdView)),
559
559
  permissions: z.optional(zIntegrationPermissionsView),
560
560
  auth_type: z.optional(z.enum([
561
561
  "OAUTH",
@@ -568,13 +568,13 @@ const zAddIntegrationRequest = z.object({
568
568
  "OIDC",
569
569
  "TRUSTED",
570
570
  "APP_RW"
571
- ]).register(z.globalRegistry, { description: "The authentication method used by the integration" })),
572
- target_url: z.optional(z.string().register(z.globalRegistry, { description: "The target URL for webhook-based integrations" })),
573
- refresh_token: z.optional(z.string().register(z.globalRegistry, { description: "The refresh token for OAuth flows" })),
574
- audience: z.optional(z.string().register(z.globalRegistry, { description: "The JWT audience for token validation" })),
575
- config: z.optional(z.string().register(z.globalRegistry, { description: "Additional configuration data in JSON format" })),
576
- google_project: z.optional(z.string().register(z.globalRegistry, { description: "The Google Cloud project ID" })),
577
- atop_url: z.optional(z.string().register(z.globalRegistry, { description: "The ATOP service URL" })),
571
+ ])),
572
+ target_url: z.optional(z.string()),
573
+ refresh_token: z.optional(z.string()),
574
+ audience: z.optional(z.string()),
575
+ config: z.optional(z.string()),
576
+ google_project: z.optional(z.string()),
577
+ atop_url: z.optional(z.string()),
578
578
  type: z.enum([
579
579
  "GIT_HUB",
580
580
  "BITBUCKET",
@@ -626,23 +626,23 @@ const zAddIntegrationRequest = z.object({
626
626
  "ONE_LOGIN",
627
627
  "OKTA",
628
628
  "CONTENTFUL"
629
- ]).register(z.globalRegistry, { description: "The type of integration" }),
629
+ ]),
630
630
  scope: z.enum([
631
631
  "WORKSPACE",
632
632
  "PROJECT",
633
633
  "ENVIRONMENT"
634
- ]).register(z.globalRegistry, { description: "The scope of the integration" }),
635
- project_name: z.optional(z.string().register(z.globalRegistry, { description: "The human-readable ID of the project (required when scope is `PROJECT`)" }))
634
+ ]),
635
+ project_name: z.optional(z.string())
636
636
  });
637
637
  /**
638
638
  * Sandbox reference
639
639
  */
640
640
  const zSandboxIdView = z.object({
641
- url: z.optional(z.string().register(z.globalRegistry, { description: "API endpoint to GET this object" }).readonly()),
642
- html_url: z.optional(z.string().register(z.globalRegistry, { description: "Web URL to view this object in Buddy.works" }).readonly()),
643
- id: z.optional(z.string().register(z.globalRegistry, { description: "The ID of the sandbox" })),
644
- identifier: z.optional(z.string().register(z.globalRegistry, { description: "A human-readable ID. Alphanumeric characters, underscores, and hyphens (hyphens cannot appear at the start or end)." })),
645
- name: z.optional(z.string().register(z.globalRegistry, { description: "The name of the sandbox" })),
641
+ url: z.optional(z.string().readonly()),
642
+ html_url: z.optional(z.string().readonly()),
643
+ id: z.optional(z.string()),
644
+ identifier: z.optional(z.string()),
645
+ name: z.optional(z.string()),
646
646
  status: z.optional(z.enum([
647
647
  "STARTING",
648
648
  "STOPPING",
@@ -650,17 +650,17 @@ const zSandboxIdView = z.object({
650
650
  "RUNNING",
651
651
  "STOPPED",
652
652
  "RESTORING"
653
- ]).register(z.globalRegistry, { description: "The current status of the sandbox" }))
654
- }).register(z.globalRegistry, { description: "Sandbox reference" });
653
+ ]))
654
+ });
655
655
  /**
656
656
  * Integration reference
657
657
  */
658
658
  const zIntegrationIdView = z.object({
659
- url: z.optional(z.string().register(z.globalRegistry, { description: "API endpoint to GET this object" }).readonly()),
660
- html_url: z.optional(z.string().register(z.globalRegistry, { description: "Web URL to view this object in Buddy.works" }).readonly()),
661
- identifier: z.optional(z.string().register(z.globalRegistry, { description: "A human-readable ID of the integration" })),
662
- hash_id: z.optional(z.string().register(z.globalRegistry, { description: "The unique hash ID of the integration" })),
663
- name: z.optional(z.string().register(z.globalRegistry, { description: "The name of the integration" })),
659
+ url: z.optional(z.string().readonly()),
660
+ html_url: z.optional(z.string().readonly()),
661
+ identifier: z.optional(z.string()),
662
+ hash_id: z.optional(z.string()),
663
+ name: z.optional(z.string()),
664
664
  type: z.optional(z.enum([
665
665
  "GIT_HUB",
666
666
  "BITBUCKET",
@@ -712,7 +712,7 @@ const zIntegrationIdView = z.object({
712
712
  "ONE_LOGIN",
713
713
  "OKTA",
714
714
  "CONTENTFUL"
715
- ]).register(z.globalRegistry, { description: "The type of integration" })),
715
+ ])),
716
716
  auth_type: z.optional(z.enum([
717
717
  "OAUTH",
718
718
  "TOKEN",
@@ -724,51 +724,51 @@ const zIntegrationIdView = z.object({
724
724
  "OIDC",
725
725
  "TRUSTED",
726
726
  "APP_RW"
727
- ]).register(z.globalRegistry, { description: "The authentication method used by the integration" })),
728
- host_url: z.optional(z.string().register(z.globalRegistry, { description: "The host URL for custom integrations" })),
729
- webhook_address: z.optional(z.string().register(z.globalRegistry, { description: "The webhook URL for receiving notifications" })),
730
- atop_url: z.optional(z.string().register(z.globalRegistry, { description: "The ATOP service URL" })),
731
- app_id: z.optional(z.string().register(z.globalRegistry, { description: "The application ID for Azure Cloud integrations" })),
732
- google_project: z.optional(z.string().register(z.globalRegistry, { description: "The Google Cloud project ID" })),
733
- audience: z.optional(z.string().register(z.globalRegistry, { description: "The JWT audience for token validation" }))
734
- }).register(z.globalRegistry, { description: "Integration reference" });
727
+ ])),
728
+ host_url: z.optional(z.string()),
729
+ webhook_address: z.optional(z.string()),
730
+ atop_url: z.optional(z.string()),
731
+ app_id: z.optional(z.string()),
732
+ google_project: z.optional(z.string()),
733
+ audience: z.optional(z.string())
734
+ });
735
735
  /**
736
736
  * User/member reference
737
737
  */
738
738
  const zMemberView = z.object({
739
- url: z.optional(z.string().register(z.globalRegistry, { description: "API endpoint to GET this object" }).readonly()),
740
- html_url: z.optional(z.string().register(z.globalRegistry, { description: "Web URL to view this object in Buddy.works" }).readonly()),
741
- id: z.optional(z.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }).register(z.globalRegistry, { description: "The ID of the user" })),
742
- name: z.optional(z.string().register(z.globalRegistry, { description: "The name of the user" })),
743
- avatar_url: z.optional(z.string().register(z.globalRegistry, { description: "The avatar URL of the user" })),
744
- email: z.optional(z.string().register(z.globalRegistry, { description: "The email address of the user" })),
745
- admin: z.optional(z.boolean().register(z.globalRegistry, { description: "Whether the user has admin privileges" })),
746
- workspace_owner: z.optional(z.boolean().register(z.globalRegistry, { description: "Whether the user is workspace owner" }))
747
- }).register(z.globalRegistry, { description: "User/member reference" });
739
+ url: z.optional(z.string().readonly()),
740
+ html_url: z.optional(z.string().readonly()),
741
+ id: z.optional(z.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" })),
742
+ name: z.optional(z.string()),
743
+ avatar_url: z.optional(z.string()),
744
+ email: z.optional(z.string()),
745
+ admin: z.optional(z.boolean()),
746
+ workspace_owner: z.optional(z.boolean())
747
+ });
748
748
  const zProjectView = z.object({
749
- url: z.optional(z.string().register(z.globalRegistry, { description: "API endpoint to GET this object" }).readonly()),
750
- html_url: z.optional(z.string().register(z.globalRegistry, { description: "Web URL to view this object in Buddy.works" }).readonly()),
751
- name: z.optional(z.string().register(z.globalRegistry, { description: "The human-readable ID of the project" })),
752
- display_name: z.string().register(z.globalRegistry, { description: "The Name of the project" }),
753
- status: z.optional(z.string().register(z.globalRegistry, { description: "The status of the project" })),
754
- access: z.optional(z.enum(["PRIVATE", "PUBLIC"]).register(z.globalRegistry, { description: "Indicates if this is a public project" })),
755
- create_date: z.optional(z.iso.datetime().register(z.globalRegistry, { description: "The creation date of the project" })),
756
- external_project_id: z.optional(z.string().register(z.globalRegistry, { description: "Repo slug of the Bitbucket, GitHub or GitLab project. Required when adding the integrated project" })),
757
- git_lab_project_id: z.optional(z.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }).register(z.globalRegistry, { description: "ID of the project in GitLab" })),
758
- custom_repo_url: z.optional(z.string().register(z.globalRegistry, { description: "SSH or HTTPS url of the git repository. Required when adding the project integrated with custom git repository" })),
759
- custom_repo_user: z.optional(z.string().register(z.globalRegistry, { description: "Username used to authorize access to the git repository. Required when adding the project integrated with custom git repository" })),
760
- custom_repo_pass: z.optional(z.string().register(z.globalRegistry, { description: "Password used to authorize access to the git repository. Required when adding the project integrated with custom git repository and the provided `custom_repo_url` is the HTTPS url" })),
761
- custom_repo_ssh_key_id: z.optional(z.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }).register(z.globalRegistry, { description: "The ID of the private SSH key used to authorize access to the git repository. Required when adding the project integrated with private git server by SSH url" })),
749
+ url: z.optional(z.string().readonly()),
750
+ html_url: z.optional(z.string().readonly()),
751
+ name: z.optional(z.string()),
752
+ display_name: z.string(),
753
+ status: z.optional(z.string()),
754
+ access: z.optional(z.enum(["PRIVATE", "PUBLIC"])),
755
+ create_date: z.optional(z.iso.datetime()),
756
+ external_project_id: z.optional(z.string()),
757
+ git_lab_project_id: z.optional(z.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" })),
758
+ custom_repo_url: z.optional(z.string()),
759
+ custom_repo_user: z.optional(z.string()),
760
+ custom_repo_pass: z.optional(z.string()),
761
+ custom_repo_ssh_key_id: z.optional(z.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" })),
762
762
  created_by: z.optional(zMemberView),
763
- http_repository: z.optional(z.string().register(z.globalRegistry, { description: "The HTTP repository URL" })),
764
- ssh_repository: z.optional(z.string().register(z.globalRegistry, { description: "The SSH repository URL" })),
765
- default_branch: z.optional(z.string().register(z.globalRegistry, { description: "The default branch name" })),
763
+ http_repository: z.optional(z.string()),
764
+ ssh_repository: z.optional(z.string()),
765
+ default_branch: z.optional(z.string()),
766
766
  integration: z.optional(zIntegrationIdView),
767
- fetch_submodules: z.optional(z.boolean().register(z.globalRegistry, { description: "Defines whether the submodules are fetched during the runs in this project" })),
768
- fetch_submodules_env_key: z.optional(z.string().register(z.globalRegistry, { description: "Name of the key that will be used to authorize while fetching the submodules. Required when `fetch_submodules` is set to `true`" })),
769
- allow_pull_requests: z.optional(z.boolean().register(z.globalRegistry, { description: "Enables/disables pull requests in the project. Available only for projects synchronized with GitHub or GitHub Enterprise repository" })),
770
- update_default_branch_from_external: z.optional(z.boolean().register(z.globalRegistry, { description: "If set to true, the default branch will be updated from GitHub/GitLab/Bitbucket." })),
771
- without_repository: z.optional(z.boolean().register(z.globalRegistry, { description: "If set to true, the project is created without any repository attached." }))
767
+ fetch_submodules: z.optional(z.boolean()),
768
+ fetch_submodules_env_key: z.optional(z.string()),
769
+ allow_pull_requests: z.optional(z.boolean()),
770
+ update_default_branch_from_external: z.optional(z.boolean()),
771
+ without_repository: z.optional(z.boolean())
772
772
  });
773
773
  /**
774
774
  * Access permissions configuration
@@ -786,42 +786,42 @@ const zPermissionsView = z.object({
786
786
  "STAGE",
787
787
  "COMMIT",
788
788
  "USE_ONLY"
789
- ]).register(z.globalRegistry, { description: "Access level for other workspace members" })),
790
- users: z.optional(z.array(zUserPermissionView).register(z.globalRegistry, { description: "List of specific users with their access levels" })),
791
- groups: z.optional(z.array(zGroupPermissionView).register(z.globalRegistry, { description: "List of user groups with their access levels" }))
792
- }).register(z.globalRegistry, { description: "Access permissions configuration" });
789
+ ])),
790
+ users: z.optional(z.array(zUserPermissionView)),
791
+ groups: z.optional(z.array(zGroupPermissionView))
792
+ });
793
793
  /**
794
794
  * Short representation of a project
795
795
  */
796
796
  const zShortProjectView = z.object({
797
- url: z.optional(z.string().register(z.globalRegistry, { description: "API endpoint to GET this object" }).readonly()),
798
- html_url: z.optional(z.string().register(z.globalRegistry, { description: "Web URL to view this object in Buddy.works" }).readonly()),
799
- name: z.optional(z.string().register(z.globalRegistry, { description: "The human-readable ID of the project" })),
800
- display_name: z.string().register(z.globalRegistry, { description: "The Name of the project" }),
801
- status: z.optional(z.string().register(z.globalRegistry, { description: "The status of the project" })),
802
- access: z.optional(z.enum(["PRIVATE", "PUBLIC"]).register(z.globalRegistry, { description: "Indicates if this is a public project" })),
803
- create_date: z.optional(z.iso.datetime().register(z.globalRegistry, { description: "The creation date of the project" }))
804
- }).register(z.globalRegistry, { description: "Short representation of a project" });
797
+ url: z.optional(z.string().readonly()),
798
+ html_url: z.optional(z.string().readonly()),
799
+ name: z.optional(z.string()),
800
+ display_name: z.string(),
801
+ status: z.optional(z.string()),
802
+ access: z.optional(z.enum(["PRIVATE", "PUBLIC"])),
803
+ create_date: z.optional(z.iso.datetime())
804
+ });
805
805
  /**
806
806
  * The environment variables of the sandbox
807
807
  */
808
808
  const zAddVariableInObjectRequest = z.object({
809
- url: z.optional(z.string().register(z.globalRegistry, { description: "API endpoint to GET this object" }).readonly()),
810
- html_url: z.optional(z.string().register(z.globalRegistry, { description: "Web URL to view this object in Buddy.works" }).readonly()),
811
- key: z.string().register(z.globalRegistry, { description: "The name of the variable" }),
812
- value: z.optional(z.string().register(z.globalRegistry, { description: "The value of the variable" })),
813
- settable: z.optional(z.boolean().register(z.globalRegistry, { description: "If set to `true` the variable value can be set by Buddy actions" })),
814
- run_only_settable: z.optional(z.boolean().register(z.globalRegistry, { description: "Available only if `type=VAR`. If set to `true` the variable value can be set by Buddy actions only for execution time" })),
815
- encrypted: z.optional(z.boolean().register(z.globalRegistry, { description: "If set to `true` the variable value will be encrypted and hidden" })),
816
- description: z.optional(z.string().register(z.globalRegistry, { description: "The optional description of the variable" })),
817
- init_path: z.optional(z.string().register(z.globalRegistry, { description: "Initial path for the variable" })),
818
- defaults: z.optional(z.string().register(z.globalRegistry, { description: "Default value for the variable" })),
819
- file_path: z.optional(z.string().register(z.globalRegistry, { description: "Specifies where to copy the file on each run. Set if `type` is `SSH_KEY`" })),
820
- file_chmod: z.optional(z.string().register(z.globalRegistry, { description: "File permission set on copy to a container on each run. Set if `type` is `SSH_KEY`" })),
821
- file_place: z.optional(z.enum(["NONE", "CONTAINER"]).register(z.globalRegistry, { description: "Set if `type` is `SSH_KEY`. If it's `NONE`, the variable can be used as a parameter in an action. For `CONTAINER`, the given key is additionally copied to an action container on each run" })),
822
- password: z.optional(z.string().register(z.globalRegistry, { description: "Password for certificates" })),
823
- passphrase: z.optional(z.string().register(z.globalRegistry, { description: "Passphrase for encrypted SSH keys" })),
824
- key_identifier: z.optional(z.string().register(z.globalRegistry, { description: "GPG key identifier" })),
809
+ url: z.optional(z.string().readonly()),
810
+ html_url: z.optional(z.string().readonly()),
811
+ key: z.string(),
812
+ value: z.optional(z.string()),
813
+ settable: z.optional(z.boolean()),
814
+ run_only_settable: z.optional(z.boolean()),
815
+ encrypted: z.optional(z.boolean()),
816
+ description: z.optional(z.string()),
817
+ init_path: z.optional(z.string()),
818
+ defaults: z.optional(z.string()),
819
+ file_path: z.optional(z.string()),
820
+ file_chmod: z.optional(z.string()),
821
+ file_place: z.optional(z.enum(["NONE", "CONTAINER"])),
822
+ password: z.optional(z.string()),
823
+ passphrase: z.optional(z.string()),
824
+ key_identifier: z.optional(z.string()),
825
825
  type: z.enum([
826
826
  "VAR",
827
827
  "FILE",
@@ -830,68 +830,68 @@ const zAddVariableInObjectRequest = z.object({
830
830
  "IOS_PROVISION_PROFILES",
831
831
  "SSH_PUBLIC_KEY",
832
832
  "GPG_KEY"
833
- ]).register(z.globalRegistry, { description: "The type of the added variable" })
834
- }).register(z.globalRegistry, { description: "The environment variables of the sandbox" });
833
+ ])
834
+ });
835
835
  /**
836
836
  * The TLS/SSL encryption settings of the tunnel
837
837
  */
838
838
  const zTlsSettingsView = z.object({
839
- url: z.optional(z.string().register(z.globalRegistry, { description: "API endpoint to GET this object" }).readonly()),
840
- html_url: z.optional(z.string().register(z.globalRegistry, { description: "Web URL to view this object in Buddy.works" }).readonly()),
839
+ url: z.optional(z.string().readonly()),
840
+ html_url: z.optional(z.string().readonly()),
841
841
  terminate_at: z.optional(z.enum([
842
842
  "REGION",
843
843
  "AGENT",
844
844
  "TARGET"
845
- ]).register(z.globalRegistry, { description: "Where to terminate TLS connection" }))
846
- }).register(z.globalRegistry, { description: "The TLS/SSL encryption settings of the tunnel" });
845
+ ]))
846
+ });
847
847
  /**
848
848
  * The HTTP-specific settings of the tunnel
849
849
  */
850
850
  const zHttpSettingsView = z.object({
851
- url: z.optional(z.string().register(z.globalRegistry, { description: "API endpoint to GET this object" }).readonly()),
852
- html_url: z.optional(z.string().register(z.globalRegistry, { description: "Web URL to view this object in Buddy.works" }).readonly()),
853
- verify_certificate: z.optional(z.boolean().register(z.globalRegistry, { description: "Whether to verify SSL/TLS certificates" })),
854
- compression: z.optional(z.boolean().register(z.globalRegistry, { description: "Enable HTTP compression" })),
855
- http2: z.optional(z.boolean().register(z.globalRegistry, { description: "Enable HTTP/2 protocol support" })),
856
- log_requests: z.optional(z.boolean().register(z.globalRegistry, { description: "Log incoming HTTP requests" })),
857
- request_headers: z.optional(z.array(z.record(z.string(), z.string())).register(z.globalRegistry, { description: "Custom HTTP headers to add to requests" })),
858
- whitelist_user_agents: z.optional(z.array(z.string()).register(z.globalRegistry, { description: "List of allowed User-Agent strings" })),
859
- rewrite_host_header: z.optional(z.string().register(z.globalRegistry, { description: "Rewrite the Host header to this value" })),
860
- response_headers: z.optional(z.array(z.record(z.string(), z.string())).register(z.globalRegistry, { description: "Custom HTTP headers to add to responses" })),
861
- login: z.optional(z.string().register(z.globalRegistry, { description: "Basic authentication username" })),
862
- circuit_breaker: z.optional(z.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }).register(z.globalRegistry, { description: "Circuit breaker threshold (number of failed requests)" })),
863
- serve_path: z.optional(z.string().register(z.globalRegistry, { description: "Base path for serving requests" })),
851
+ url: z.optional(z.string().readonly()),
852
+ html_url: z.optional(z.string().readonly()),
853
+ verify_certificate: z.optional(z.boolean()),
854
+ compression: z.optional(z.boolean()),
855
+ http2: z.optional(z.boolean()),
856
+ log_requests: z.optional(z.boolean()),
857
+ request_headers: z.optional(z.array(z.record(z.string(), z.string()))),
858
+ whitelist_user_agents: z.optional(z.array(z.string())),
859
+ rewrite_host_header: z.optional(z.string()),
860
+ response_headers: z.optional(z.array(z.record(z.string(), z.string()))),
861
+ login: z.optional(z.string()),
862
+ circuit_breaker: z.optional(z.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" })),
863
+ serve_path: z.optional(z.string()),
864
864
  auth_type: z.optional(z.enum([
865
865
  "NONE",
866
866
  "BASIC",
867
867
  "BUDDY"
868
- ]).register(z.globalRegistry, { description: "Type of authentication used" }))
869
- }).register(z.globalRegistry, { description: "The HTTP-specific settings of the tunnel" });
868
+ ]))
869
+ });
870
870
  const zTunnelView = z.object({
871
- url: z.optional(z.string().register(z.globalRegistry, { description: "API endpoint to GET this object" }).readonly()),
872
- html_url: z.optional(z.string().register(z.globalRegistry, { description: "Web URL to view this object in Buddy.works" }).readonly()),
873
- name: z.string().register(z.globalRegistry, { description: "The name of the tunnel" }),
874
- endpoint: z.string().register(z.globalRegistry, { description: "The endpoint URL of the tunnel" }),
871
+ url: z.optional(z.string().readonly()),
872
+ html_url: z.optional(z.string().readonly()),
873
+ name: z.string(),
874
+ endpoint: z.string(),
875
875
  type: z.enum([
876
876
  "TCP",
877
877
  "TLS",
878
878
  "HTTP",
879
879
  "SSH"
880
- ]).register(z.globalRegistry, { description: "The type of the tunnel" }),
880
+ ]),
881
881
  region: z.enum([
882
882
  "US",
883
883
  "EU",
884
884
  "AS"
885
- ]).register(z.globalRegistry, { description: "The region where the tunnel is deployed" }),
886
- whitelist: z.optional(z.array(z.string()).register(z.globalRegistry, { description: "The IP addresses or domains allowed to access the tunnel" })),
887
- timeout: z.optional(z.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }).register(z.globalRegistry, { description: "The connection timeout of the tunnel in seconds" })),
885
+ ]),
886
+ whitelist: z.optional(z.array(z.string())),
887
+ timeout: z.optional(z.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" })),
888
888
  http: z.optional(zHttpSettingsView),
889
889
  tls: z.optional(zTlsSettingsView),
890
- endpoint_url: z.optional(z.string().register(z.globalRegistry, { description: "The url of the tunnel" }))
890
+ endpoint_url: z.optional(z.string())
891
891
  });
892
892
  const zUpdateSandboxRequest = z.object({
893
- name: z.optional(z.string().register(z.globalRegistry, { description: "The name of the sandbox" })),
894
- identifier: z.optional(z.string().register(z.globalRegistry, { description: "A human-readable ID. Alphanumeric characters, underscores, and hyphens (hyphens cannot appear at the start or end)." })),
893
+ name: z.optional(z.string()),
894
+ identifier: z.optional(z.string()),
895
895
  resources: z.optional(z.enum([
896
896
  "1x2",
897
897
  "2x4",
@@ -906,127 +906,127 @@ const zUpdateSandboxRequest = z.object({
906
906
  "11x22",
907
907
  "12x24",
908
908
  "CUSTOM"
909
- ]).register(z.globalRegistry, { description: "The resource configuration of the sandbox (CPU x RAM)" })),
910
- install_commands: z.optional(z.string().register(z.globalRegistry, { description: "The commands to run during setup of the sandbox" })),
911
- run_command: z.optional(z.string().register(z.globalRegistry, { description: "The run command of the sandbox" })),
912
- app_dir: z.optional(z.string().register(z.globalRegistry, { description: "The application directory of the sandbox" })),
913
- app_type: z.optional(z.enum(["CMD", "SERVICE"]).register(z.globalRegistry, { description: "The application type of the sandbox (passed command or existent service eg. apache2)" })),
914
- tags: z.optional(z.array(z.string().register(z.globalRegistry, { description: "The list of tags associated with the sandbox" })).register(z.globalRegistry, { description: "The list of tags associated with the sandbox" })),
915
- endpoints: z.optional(z.array(zTunnelView).register(z.globalRegistry, { description: "The tunnel endpoints of the sandbox" })),
916
- variables: z.optional(z.array(zAddVariableInObjectRequest).register(z.globalRegistry, { description: "The environment variables of the sandbox" })),
909
+ ])),
910
+ install_commands: z.optional(z.string()),
911
+ run_command: z.optional(z.string()),
912
+ app_dir: z.optional(z.string()),
913
+ app_type: z.optional(z.enum(["CMD", "SERVICE"])),
914
+ tags: z.optional(z.array(z.string())),
915
+ endpoints: z.optional(z.array(zTunnelView)),
916
+ variables: z.optional(z.array(zAddVariableInObjectRequest)),
917
917
  permissions: z.optional(zPermissionsView)
918
918
  });
919
919
  const zSandboxesView = z.object({
920
- url: z.optional(z.string().register(z.globalRegistry, { description: "API endpoint to GET this object" }).readonly()),
921
- html_url: z.optional(z.string().register(z.globalRegistry, { description: "Web URL to view this object in Buddy.works" }).readonly()),
920
+ url: z.optional(z.string().readonly()),
921
+ html_url: z.optional(z.string().readonly()),
922
922
  sandboxes: z.optional(z.array(zSandboxIdView))
923
923
  });
924
924
  /**
925
925
  * Content item in a sandbox
926
926
  */
927
927
  const zSandboxContentItem = z.object({
928
- url: z.optional(z.string().register(z.globalRegistry, { description: "API endpoint to GET this object" }).readonly()),
929
- html_url: z.optional(z.string().register(z.globalRegistry, { description: "Web URL to view this object in Buddy.works" }).readonly()),
930
- type: z.optional(z.enum(["FILE", "DIR"]).register(z.globalRegistry, { description: "The content type (FILE or DIR)" })),
931
- name: z.optional(z.string().register(z.globalRegistry, { description: "The name of the file or directory" })),
932
- path: z.optional(z.string().register(z.globalRegistry, { description: "The path to the file or directory" })),
933
- size: z.optional(z.coerce.bigint().min(BigInt("-9223372036854775808"), { error: "Invalid value: Expected int64 to be >= -9223372036854775808" }).max(BigInt("9223372036854775807"), { error: "Invalid value: Expected int64 to be <= 9223372036854775807" }).register(z.globalRegistry, { description: "The size of the file in bytes" }))
934
- }).register(z.globalRegistry, { description: "Content item in a sandbox" });
928
+ url: z.optional(z.string().readonly()),
929
+ html_url: z.optional(z.string().readonly()),
930
+ type: z.optional(z.enum(["FILE", "DIR"])),
931
+ name: z.optional(z.string()),
932
+ path: z.optional(z.string()),
933
+ size: z.optional(z.coerce.bigint().min(BigInt("-9223372036854775808"), { error: "Invalid value: Expected int64 to be >= -9223372036854775808" }).max(BigInt("9223372036854775807"), { error: "Invalid value: Expected int64 to be <= 9223372036854775807" }))
934
+ });
935
935
  /**
936
936
  * Sandbox content listing
937
937
  */
938
938
  const zSandboxContentView = z.object({
939
- url: z.optional(z.string().register(z.globalRegistry, { description: "API endpoint to GET this object" }).readonly()),
940
- html_url: z.optional(z.string().register(z.globalRegistry, { description: "Web URL to view this object in Buddy.works" }).readonly()),
941
- contents: z.optional(z.array(zSandboxContentItem).register(z.globalRegistry, { description: "List of content items in the directory" }))
942
- }).register(z.globalRegistry, { description: "Sandbox content listing" });
939
+ url: z.optional(z.string().readonly()),
940
+ html_url: z.optional(z.string().readonly()),
941
+ contents: z.optional(z.array(zSandboxContentItem))
942
+ });
943
943
  const zSandboxCommandView = z.object({
944
- url: z.optional(z.string().register(z.globalRegistry, { description: "API endpoint to GET this object" }).readonly()),
945
- html_url: z.optional(z.string().register(z.globalRegistry, { description: "Web URL to view this object in Buddy.works" }).readonly()),
946
- id: z.optional(z.string().register(z.globalRegistry, { description: "The ID of the command" })),
947
- command: z.optional(z.string().register(z.globalRegistry, { description: "Command to execute in the sandbox" })),
944
+ url: z.optional(z.string().readonly()),
945
+ html_url: z.optional(z.string().readonly()),
946
+ id: z.optional(z.string()),
947
+ command: z.optional(z.string()),
948
948
  runtime: z.optional(z.enum([
949
949
  "BASH",
950
950
  "JAVASCRIPT",
951
951
  "TYPESCRIPT",
952
952
  "PYTHON"
953
- ]).register(z.globalRegistry, { description: "Runtime environment for command execution (default: `BASH`)" })),
953
+ ])),
954
954
  status: z.optional(z.enum([
955
955
  "INPROGRESS",
956
956
  "SUCCESSFUL",
957
957
  "FAILED"
958
- ]).register(z.globalRegistry, { description: "Command execution status" })),
959
- exit_code: z.optional(z.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }).register(z.globalRegistry, { description: "Command exit code" })),
960
- logs_url: z.optional(z.string().register(z.globalRegistry, { description: "API endpoint URL to retrieve logs for this command" }))
958
+ ])),
959
+ exit_code: z.optional(z.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" })),
960
+ logs_url: z.optional(z.string())
961
961
  });
962
962
  const zSandboxCommandsView = z.object({
963
- url: z.optional(z.string().register(z.globalRegistry, { description: "API endpoint to GET this object" }).readonly()),
964
- html_url: z.optional(z.string().register(z.globalRegistry, { description: "Web URL to view this object in Buddy.works" }).readonly()),
963
+ url: z.optional(z.string().readonly()),
964
+ html_url: z.optional(z.string().readonly()),
965
965
  commands: z.optional(z.array(zSandboxCommandView))
966
966
  });
967
967
  const zSandboxCommandLog = z.object({
968
- type: z.optional(z.enum(["STDOUT", "STDERR"]).register(z.globalRegistry, { description: "The type of command output stream" })),
969
- data: z.optional(z.string().register(z.globalRegistry, { description: "The command execution logs." }))
968
+ type: z.optional(z.enum(["STDOUT", "STDERR"])),
969
+ data: z.optional(z.string())
970
970
  });
971
971
  const zSandboxAppLogsView = z.object({
972
- url: z.optional(z.string().register(z.globalRegistry, { description: "API endpoint to GET this object" }).readonly()),
973
- html_url: z.optional(z.string().register(z.globalRegistry, { description: "Web URL to view this object in Buddy.works" }).readonly()),
974
- cursor: z.optional(z.string().register(z.globalRegistry, { description: "Cursor for pagination" })),
975
- logs: z.optional(z.array(z.string()).register(z.globalRegistry, { description: "Application log entries" }))
972
+ url: z.optional(z.string().readonly()),
973
+ html_url: z.optional(z.string().readonly()),
974
+ cursor: z.optional(z.string()),
975
+ logs: z.optional(z.array(z.string()))
976
976
  });
977
977
  const zShortSnapshotView = z.object({
978
- url: z.optional(z.string().register(z.globalRegistry, { description: "API endpoint to GET this object" }).readonly()),
979
- html_url: z.optional(z.string().register(z.globalRegistry, { description: "Web URL to view this object in Buddy.works" }).readonly()),
980
- id: z.optional(z.string().register(z.globalRegistry, { description: "The ID of the snapshot" })),
981
- name: z.optional(z.string().register(z.globalRegistry, { description: "Snapshot name" })),
982
- size: z.optional(z.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }).register(z.globalRegistry, { description: "Snapshot size in GB" })),
978
+ url: z.optional(z.string().readonly()),
979
+ html_url: z.optional(z.string().readonly()),
980
+ id: z.optional(z.string()),
981
+ name: z.optional(z.string()),
982
+ size: z.optional(z.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" })),
983
983
  status: z.optional(z.enum([
984
984
  "CREATING",
985
985
  "CREATED",
986
986
  "DELETING",
987
987
  "FAILED"
988
- ]).register(z.globalRegistry, { description: "Snapshot status" })),
989
- create_date: z.optional(z.iso.datetime().register(z.globalRegistry, { description: "Snapshot creation date" }))
988
+ ])),
989
+ create_date: z.optional(z.iso.datetime())
990
990
  });
991
991
  const zSnapshotsView = z.object({
992
- url: z.optional(z.string().register(z.globalRegistry, { description: "API endpoint to GET this object" }).readonly()),
993
- html_url: z.optional(z.string().register(z.globalRegistry, { description: "Web URL to view this object in Buddy.works" }).readonly()),
994
- snapshots: z.optional(z.array(zShortSnapshotView).register(z.globalRegistry, { description: "Collection of snapshots" }))
992
+ url: z.optional(z.string().readonly()),
993
+ html_url: z.optional(z.string().readonly()),
994
+ snapshots: z.optional(z.array(zShortSnapshotView))
995
995
  });
996
996
  const zExecuteSandboxCommandRequest = z.object({
997
- command: z.string().register(z.globalRegistry, { description: "Command to execute in the sandbox" }),
997
+ command: z.string(),
998
998
  runtime: z.optional(z.enum([
999
999
  "BASH",
1000
1000
  "JAVASCRIPT",
1001
1001
  "TYPESCRIPT",
1002
1002
  "PYTHON"
1003
- ]).register(z.globalRegistry, { description: "Runtime environment for command execution (default: `BASH`)" }))
1003
+ ]))
1004
1004
  });
1005
- const zAddSnapshotRequest = z.object({ name: z.optional(z.string().register(z.globalRegistry, { description: "Snapshot name" })) });
1005
+ const zAddSnapshotRequest = z.object({ name: z.optional(z.string()) });
1006
1006
  const zSnapshotView = z.object({
1007
- url: z.optional(z.string().register(z.globalRegistry, { description: "API endpoint to GET this object" }).readonly()),
1008
- html_url: z.optional(z.string().register(z.globalRegistry, { description: "Web URL to view this object in Buddy.works" }).readonly()),
1009
- id: z.optional(z.string().register(z.globalRegistry, { description: "The ID of the snapshot" })),
1010
- name: z.optional(z.string().register(z.globalRegistry, { description: "Snapshot name" })),
1011
- size: z.optional(z.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }).register(z.globalRegistry, { description: "Snapshot size in GB" })),
1007
+ url: z.optional(z.string().readonly()),
1008
+ html_url: z.optional(z.string().readonly()),
1009
+ id: z.optional(z.string()),
1010
+ name: z.optional(z.string()),
1011
+ size: z.optional(z.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" })),
1012
1012
  status: z.optional(z.enum([
1013
1013
  "CREATING",
1014
1014
  "CREATED",
1015
1015
  "DELETING",
1016
1016
  "FAILED"
1017
- ]).register(z.globalRegistry, { description: "Snapshot status" })),
1018
- create_date: z.optional(z.iso.datetime().register(z.globalRegistry, { description: "Snapshot creation date" })),
1017
+ ])),
1018
+ create_date: z.optional(z.iso.datetime()),
1019
1019
  created_by: z.optional(zMemberView)
1020
1020
  });
1021
1021
  const zSandboxYamlView = z.object({
1022
- url: z.optional(z.string().register(z.globalRegistry, { description: "API endpoint to GET this object" }).readonly()),
1023
- html_url: z.optional(z.string().register(z.globalRegistry, { description: "Web URL to view this object in Buddy.works" }).readonly()),
1024
- yaml: z.optional(z.string().register(z.globalRegistry, { description: "The base64-encoded YAML configuration of the sandbox" }))
1022
+ url: z.optional(z.string().readonly()),
1023
+ html_url: z.optional(z.string().readonly()),
1024
+ yaml: z.optional(z.string())
1025
1025
  });
1026
1026
  const zCreateNewSandboxRequest = z.object({
1027
- name: z.string().register(z.globalRegistry, { description: "The name of the sandbox" }),
1028
- identifier: z.optional(z.string().register(z.globalRegistry, { description: "A human-readable ID. Alphanumeric characters, underscores, and hyphens (hyphens cannot appear at the start or end)." })),
1029
- os: z.string().register(z.globalRegistry, { description: "The operating system of the sandbox [\"ubuntu:22.04\", \"ubuntu:24.04\"]" }),
1027
+ name: z.string(),
1028
+ identifier: z.optional(z.string()),
1029
+ os: z.string(),
1030
1030
  resources: z.optional(z.enum([
1031
1031
  "1x2",
1032
1032
  "2x4",
@@ -1041,22 +1041,22 @@ const zCreateNewSandboxRequest = z.object({
1041
1041
  "11x22",
1042
1042
  "12x24",
1043
1043
  "CUSTOM"
1044
- ]).register(z.globalRegistry, { description: "The resource configuration of the sandbox (CPU x RAM)" })),
1045
- install_commands: z.optional(z.string().register(z.globalRegistry, { description: "The commands to run during setup of the sandbox" })),
1046
- run_command: z.optional(z.string().register(z.globalRegistry, { description: "The run command of the sandbox" })),
1047
- app_dir: z.optional(z.string().register(z.globalRegistry, { description: "The application directory of the sandbox" })),
1048
- app_type: z.optional(z.enum(["CMD", "SERVICE"]).register(z.globalRegistry, { description: "The application type of the sandbox (passed command or existent service eg. apache2)" })),
1049
- tags: z.optional(z.array(z.string().register(z.globalRegistry, { description: "The list of tags associated with the sandbox" })).register(z.globalRegistry, { description: "The list of tags associated with the sandbox" })),
1050
- endpoints: z.optional(z.array(zTunnelView).register(z.globalRegistry, { description: "The tunnel endpoints of the sandbox" })),
1051
- variables: z.optional(z.array(zAddVariableInObjectRequest).register(z.globalRegistry, { description: "The environment variables of the sandbox" }))
1044
+ ])),
1045
+ install_commands: z.optional(z.string()),
1046
+ run_command: z.optional(z.string()),
1047
+ app_dir: z.optional(z.string()),
1048
+ app_type: z.optional(z.enum(["CMD", "SERVICE"])),
1049
+ tags: z.optional(z.array(z.string())),
1050
+ endpoints: z.optional(z.array(zTunnelView)),
1051
+ variables: z.optional(z.array(zAddVariableInObjectRequest))
1052
1052
  });
1053
1053
  /**
1054
1054
  * The list of variables you can use the action
1055
1055
  */
1056
1056
  const zEnvironmentVariableView = z.object({
1057
- id: z.optional(z.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }).register(z.globalRegistry, { description: "The ID of the variable" })),
1058
- key: z.optional(z.string().register(z.globalRegistry, { description: "The name of the variable" })),
1059
- value: z.optional(z.string().register(z.globalRegistry, { description: "The value of the variable" })),
1057
+ id: z.optional(z.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" })),
1058
+ key: z.optional(z.string()),
1059
+ value: z.optional(z.string()),
1060
1060
  type: z.optional(z.enum([
1061
1061
  "VAR",
1062
1062
  "FILE",
@@ -1065,29 +1065,29 @@ const zEnvironmentVariableView = z.object({
1065
1065
  "IOS_PROVISION_PROFILES",
1066
1066
  "SSH_PUBLIC_KEY",
1067
1067
  "GPG_KEY"
1068
- ]).register(z.globalRegistry, { description: "The type of the added variable" })),
1069
- encrypted: z.optional(z.boolean().register(z.globalRegistry, { description: "If set to `true` the variable value will be encrypted and hidden" })),
1070
- settable: z.optional(z.boolean().register(z.globalRegistry, { description: "If set to `true` the variable value can be set by Buddy actions" })),
1071
- run_only_settable: z.optional(z.boolean().register(z.globalRegistry, { description: "Available only if `type=VAR`. If set to `true` the variable value can be set by Buddy actions only for execution time" })),
1072
- description: z.optional(z.string().register(z.globalRegistry, { description: "The optional description of the variable" })),
1073
- init_path: z.optional(z.string().register(z.globalRegistry, { description: "Initial path for the variable" })),
1074
- defaults: z.optional(z.string().register(z.globalRegistry, { description: "Default value for the variable" })),
1075
- file_path: z.optional(z.string().register(z.globalRegistry, { description: "Specifies where to copy the file on each run. Set if `type` is `SSH_KEY`" })),
1076
- file_chmod: z.optional(z.string().register(z.globalRegistry, { description: "File permission set on copy to a container on each run. Set if `type` is `SSH_KEY`" })),
1077
- file_place: z.optional(z.enum(["NONE", "CONTAINER"]).register(z.globalRegistry, { description: "Set if `type` is `SSH_KEY`. If it's `NONE`, the variable can be used as a parameter in an action. For `CONTAINER`, the given key is additionally copied to an action container on each run" })),
1078
- binary: z.optional(z.boolean().register(z.globalRegistry, { description: "Whether the file is binary" })),
1079
- public_value: z.optional(z.string().register(z.globalRegistry, { description: "Public value for SSH key type variables" })),
1080
- key_fingerprint: z.optional(z.string().register(z.globalRegistry, { description: "Fingerprint of SSH key" })),
1081
- checksum: z.optional(z.string().register(z.globalRegistry, { description: "Checksum of the variable value" })),
1082
- password: z.optional(z.string().register(z.globalRegistry, { description: "Password for certificates" })),
1083
- passphrase: z.optional(z.string().register(z.globalRegistry, { description: "Passphrase for encrypted SSH keys" })),
1084
- key_identifier: z.optional(z.string().register(z.globalRegistry, { description: "GPG key identifier" }))
1085
- }).register(z.globalRegistry, { description: "The list of variables you can use the action" });
1068
+ ])),
1069
+ encrypted: z.optional(z.boolean()),
1070
+ settable: z.optional(z.boolean()),
1071
+ run_only_settable: z.optional(z.boolean()),
1072
+ description: z.optional(z.string()),
1073
+ init_path: z.optional(z.string()),
1074
+ defaults: z.optional(z.string()),
1075
+ file_path: z.optional(z.string()),
1076
+ file_chmod: z.optional(z.string()),
1077
+ file_place: z.optional(z.enum(["NONE", "CONTAINER"])),
1078
+ binary: z.optional(z.boolean()),
1079
+ public_value: z.optional(z.string()),
1080
+ key_fingerprint: z.optional(z.string()),
1081
+ checksum: z.optional(z.string()),
1082
+ password: z.optional(z.string()),
1083
+ passphrase: z.optional(z.string()),
1084
+ key_identifier: z.optional(z.string())
1085
+ });
1086
1086
  const zCreateFromSnapshotRequest = z.object({
1087
- snapshot_id: z.string().register(z.globalRegistry, { description: "The ID of the snapshot to create from" }),
1088
- name: z.string().register(z.globalRegistry, { description: "The name of the sandbox" }),
1089
- identifier: z.optional(z.string().register(z.globalRegistry, { description: "A human-readable ID. Alphanumeric characters, underscores, and hyphens (hyphens cannot appear at the start or end)." })),
1090
- os: z.optional(z.string().register(z.globalRegistry, { description: "The operating system of the sandbox [\"ubuntu:22.04\", \"ubuntu:24.04\"]" })),
1087
+ snapshot_id: z.string(),
1088
+ name: z.string(),
1089
+ identifier: z.optional(z.string()),
1090
+ os: z.optional(z.string()),
1091
1091
  resources: z.optional(z.enum([
1092
1092
  "1x2",
1093
1093
  "2x4",
@@ -1102,26 +1102,26 @@ const zCreateFromSnapshotRequest = z.object({
1102
1102
  "11x22",
1103
1103
  "12x24",
1104
1104
  "CUSTOM"
1105
- ]).register(z.globalRegistry, { description: "The resource configuration of the sandbox (CPU x RAM)" })),
1106
- install_commands: z.optional(z.string().register(z.globalRegistry, { description: "The commands to run during setup of the sandbox" })),
1107
- run_command: z.optional(z.string().register(z.globalRegistry, { description: "The run command of the sandbox" })),
1108
- app_dir: z.optional(z.string().register(z.globalRegistry, { description: "The application directory of the sandbox" })),
1109
- app_type: z.optional(z.enum(["CMD", "SERVICE"]).register(z.globalRegistry, { description: "The application type of the sandbox (passed command or existent service eg. apache2)" })),
1110
- tags: z.optional(z.array(z.string().register(z.globalRegistry, { description: "The list of tags associated with the sandbox" })).register(z.globalRegistry, { description: "The list of tags associated with the sandbox" })),
1111
- endpoints: z.optional(z.array(zTunnelView).register(z.globalRegistry, { description: "The tunnel endpoints of the sandbox" })),
1112
- variables: z.optional(z.array(zEnvironmentVariableView).register(z.globalRegistry, { description: "The environment variables of the sandbox" }))
1105
+ ])),
1106
+ install_commands: z.optional(z.string()),
1107
+ run_command: z.optional(z.string()),
1108
+ app_dir: z.optional(z.string()),
1109
+ app_type: z.optional(z.enum(["CMD", "SERVICE"])),
1110
+ tags: z.optional(z.array(z.string())),
1111
+ endpoints: z.optional(z.array(zTunnelView)),
1112
+ variables: z.optional(z.array(zEnvironmentVariableView))
1113
1113
  });
1114
1114
  const zCloneSandboxRequest = z.object({
1115
- source_sandbox_id: z.string().register(z.globalRegistry, { description: "The ID of the sandbox to clone" }),
1116
- name: z.string().register(z.globalRegistry, { description: "The name of the sandbox" }),
1117
- identifier: z.optional(z.string().register(z.globalRegistry, { description: "A human-readable ID. Alphanumeric characters, underscores, and hyphens (hyphens cannot appear at the start or end)." }))
1115
+ source_sandbox_id: z.string(),
1116
+ name: z.string(),
1117
+ identifier: z.optional(z.string())
1118
1118
  });
1119
1119
  const zSandboxResponse = z.object({
1120
- url: z.optional(z.string().register(z.globalRegistry, { description: "API endpoint to GET this object" }).readonly()),
1121
- html_url: z.optional(z.string().register(z.globalRegistry, { description: "Web URL to view this object in Buddy.works" }).readonly()),
1122
- id: z.optional(z.string().register(z.globalRegistry, { description: "The ID of the sandbox" })),
1123
- identifier: z.optional(z.string().register(z.globalRegistry, { description: "A human-readable ID. Alphanumeric characters, underscores, and hyphens (hyphens cannot appear at the start or end)." })),
1124
- name: z.optional(z.string().register(z.globalRegistry, { description: "The name of the sandbox" })),
1120
+ url: z.optional(z.string().readonly()),
1121
+ html_url: z.optional(z.string().readonly()),
1122
+ id: z.optional(z.string()),
1123
+ identifier: z.optional(z.string()),
1124
+ name: z.optional(z.string()),
1125
1125
  status: z.optional(z.enum([
1126
1126
  "STARTING",
1127
1127
  "STOPPING",
@@ -1129,8 +1129,8 @@ const zSandboxResponse = z.object({
1129
1129
  "RUNNING",
1130
1130
  "STOPPED",
1131
1131
  "RESTORING"
1132
- ]).register(z.globalRegistry, { description: "The current status of the sandbox" })),
1133
- os: z.optional(z.string().register(z.globalRegistry, { description: "The operating system of the sandbox [\"ubuntu:22.04\", \"ubuntu:24.04\"]" })),
1132
+ ])),
1133
+ os: z.optional(z.string()),
1134
1134
  resources: z.optional(z.enum([
1135
1135
  "1x2",
1136
1136
  "2x4",
@@ -1145,58 +1145,58 @@ const zSandboxResponse = z.object({
1145
1145
  "11x22",
1146
1146
  "12x24",
1147
1147
  "CUSTOM"
1148
- ]).register(z.globalRegistry, { description: "The resource configuration of the sandbox (CPU x RAM)" })),
1149
- install_commands: z.optional(z.string().register(z.globalRegistry, { description: "The commands to run during setup of the sandbox" })),
1150
- run_command: z.optional(z.string().register(z.globalRegistry, { description: "The run command of the sandbox" })),
1151
- app_dir: z.optional(z.string().register(z.globalRegistry, { description: "The application directory of the sandbox" })),
1152
- app_type: z.optional(z.enum(["CMD", "SERVICE"]).register(z.globalRegistry, { description: "The application type of the sandbox (passed command or existent service eg. apache2)" })),
1153
- tags: z.optional(z.array(z.string()).register(z.globalRegistry, { description: "The list of tags associated with the sandbox" })),
1148
+ ])),
1149
+ install_commands: z.optional(z.string()),
1150
+ run_command: z.optional(z.string()),
1151
+ app_dir: z.optional(z.string()),
1152
+ app_type: z.optional(z.enum(["CMD", "SERVICE"])),
1153
+ tags: z.optional(z.array(z.string())),
1154
1154
  app_status: z.optional(z.enum([
1155
1155
  "NONE",
1156
1156
  "RUNNING",
1157
1157
  "ENDED",
1158
1158
  "FAILED"
1159
- ]).register(z.globalRegistry, { description: "The current application status of the sandbox" })),
1160
- boot_logs: z.optional(z.array(z.string()).register(z.globalRegistry, { description: "The boot logs of the sandbox" })),
1159
+ ])),
1160
+ boot_logs: z.optional(z.array(z.string())),
1161
1161
  setup_status: z.optional(z.enum([
1162
1162
  "INPROGRESS",
1163
1163
  "SUCCESS",
1164
1164
  "FAILED"
1165
- ]).register(z.globalRegistry, { description: "The current setup status of the sandbox" })),
1166
- endpoints: z.optional(z.array(zTunnelView).register(z.globalRegistry, { description: "The tunnel endpoints of the sandbox" })),
1165
+ ])),
1166
+ endpoints: z.optional(z.array(zTunnelView)),
1167
1167
  project: z.optional(zProjectView),
1168
1168
  permissions: z.optional(zPermissionsView),
1169
- variables: z.optional(z.array(zEnvironmentVariableView).register(z.globalRegistry, { description: "The environment variables of the sandbox" }))
1169
+ variables: z.optional(z.array(zEnvironmentVariableView))
1170
1170
  });
1171
1171
  const zProjectsView = z.object({
1172
- url: z.optional(z.string().register(z.globalRegistry, { description: "API endpoint to GET this object" }).readonly()),
1173
- html_url: z.optional(z.string().register(z.globalRegistry, { description: "Web URL to view this object in Buddy.works" }).readonly()),
1172
+ url: z.optional(z.string().readonly()),
1173
+ html_url: z.optional(z.string().readonly()),
1174
1174
  projects: z.optional(z.array(zShortProjectView))
1175
1175
  });
1176
1176
  const zShortWorkspaceViewWritable = z.object({
1177
- id: z.optional(z.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }).register(z.globalRegistry, { description: "The ID of the workspace" })),
1178
- name: z.optional(z.string().register(z.globalRegistry, { description: "The name of the workspace" })),
1179
- domain: z.optional(z.string().register(z.globalRegistry, { description: "The human-readable ID of the workspace. Alphanumeric characters, underscores, and hyphens (hyphens cannot appear at the start or end)." }))
1177
+ id: z.optional(z.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" })),
1178
+ name: z.optional(z.string()),
1179
+ domain: z.optional(z.string())
1180
1180
  });
1181
1181
  const zWorkspacesViewWritable = z.object({ workspaces: z.optional(z.array(zShortWorkspaceViewWritable)) });
1182
1182
  const zWorkspaceMemberViewWritable = z.object({
1183
- id: z.optional(z.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }).register(z.globalRegistry, { description: "The ID of the user" })),
1184
- name: z.optional(z.string().register(z.globalRegistry, { description: "The name of the user" })),
1185
- avatar_url: z.optional(z.string().register(z.globalRegistry, { description: "The avatar URL of the user" })),
1186
- email: z.optional(z.string().register(z.globalRegistry, { description: "The email address of the user" })),
1187
- admin: z.optional(z.boolean().register(z.globalRegistry, { description: "Whether the user has admin privileges" })),
1188
- workspace_owner: z.optional(z.boolean().register(z.globalRegistry, { description: "Whether the user is workspace owner" })),
1189
- auto_assign_to_new_projects: z.optional(z.boolean().register(z.globalRegistry, { description: "Whether user is automatically assigned to new projects" })),
1190
- auto_assign_permission_set_id: z.optional(z.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }).register(z.globalRegistry, { description: "ID of permission set to automatically assign to new projects" }))
1183
+ id: z.optional(z.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" })),
1184
+ name: z.optional(z.string()),
1185
+ avatar_url: z.optional(z.string()),
1186
+ email: z.optional(z.string()),
1187
+ admin: z.optional(z.boolean()),
1188
+ workspace_owner: z.optional(z.boolean()),
1189
+ auto_assign_to_new_projects: z.optional(z.boolean()),
1190
+ auto_assign_permission_set_id: z.optional(z.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }))
1191
1191
  });
1192
1192
  const zWorkspaceMembersViewWritable = z.object({ members: z.optional(z.array(zWorkspaceMemberViewWritable)) });
1193
1193
  const zWorkspaceViewWritable = z.object({
1194
- id: z.optional(z.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }).register(z.globalRegistry, { description: "The ID of the workspace" })),
1195
- name: z.optional(z.string().register(z.globalRegistry, { description: "The name of the workspace" })),
1196
- domain: z.optional(z.string().register(z.globalRegistry, { description: "The human-readable ID of the workspace. Alphanumeric characters, underscores, and hyphens (hyphens cannot appear at the start or end)." })),
1197
- owner_id: z.optional(z.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }).register(z.globalRegistry, { description: "The ID of the workspace owner" })),
1198
- frozen: z.optional(z.boolean().register(z.globalRegistry, { description: "Whether the workspace is frozen" })),
1199
- create_date: z.optional(z.iso.datetime().register(z.globalRegistry, { description: "The date and time when the workspace was created" })),
1194
+ id: z.optional(z.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" })),
1195
+ name: z.optional(z.string()),
1196
+ domain: z.optional(z.string()),
1197
+ owner_id: z.optional(z.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" })),
1198
+ frozen: z.optional(z.boolean()),
1199
+ create_date: z.optional(z.iso.datetime()),
1200
1200
  default_pipeline_resource: z.optional(z.enum([
1201
1201
  "DEFAULT",
1202
1202
  "NANO",
@@ -1206,12 +1206,12 @@ const zWorkspaceViewWritable = z.object({
1206
1206
  "XLARGE",
1207
1207
  "CUSTOM",
1208
1208
  "X2LARGE"
1209
- ]).register(z.globalRegistry, { description: "Default pipeline resource allocation for the workspace" })),
1210
- sso_enabled: z.optional(z.boolean().register(z.globalRegistry, { description: "Whether Single Sign-On (SSO) is enabled for the workspace" })),
1211
- public_pipelines_disabled: z.optional(z.boolean().register(z.globalRegistry, { description: "Whether public pipelines are disabled in the workspace" }))
1209
+ ])),
1210
+ sso_enabled: z.optional(z.boolean()),
1211
+ public_pipelines_disabled: z.optional(z.boolean())
1212
1212
  });
1213
1213
  const zSsoViewWritable = z.object({
1214
- type: z.optional(z.enum(["SAML", "OIDC"]).register(z.globalRegistry, { description: "The type of the SSO to be set" })),
1214
+ type: z.optional(z.enum(["SAML", "OIDC"])),
1215
1215
  sso_provider_type: z.optional(z.enum([
1216
1216
  "OKTA",
1217
1217
  "ONE_LOGIN",
@@ -1219,37 +1219,37 @@ const zSsoViewWritable = z.object({
1219
1219
  "AZURE",
1220
1220
  "AWS",
1221
1221
  "CUSTOM"
1222
- ]).register(z.globalRegistry, { description: "The provider type for SSO configuration" })),
1223
- sso_url: z.optional(z.string().register(z.globalRegistry, { description: "The SSO URL / SAML endpoint / Identity provider Single sign-on URL. Set when type is `SAML`." })),
1224
- issuer: z.optional(z.string().register(z.globalRegistry, { description: "Issuer URI, IDP Entity ID, SSO issuer, provider issuer, AD identifier or the base URL of the OpenID Connect (OIDC) server." })),
1225
- certificate: z.optional(z.string().register(z.globalRegistry, { description: "The x509 certificate content. Set when type is `SAML`." })),
1226
- signature_method: z.optional(z.string().register(z.globalRegistry, { description: "Set when type is `SAML`. Examples: `sha1`, `sha256`, `sha512`" })),
1227
- digest_method: z.optional(z.string().register(z.globalRegistry, { description: "Set when type is `SAML`. Examples: `sha1`, `sha256`, `sha512`" })),
1228
- require_sso_for_all_members: z.optional(z.boolean().register(z.globalRegistry, { description: "Require SSO authentication." }))
1222
+ ])),
1223
+ sso_url: z.optional(z.string()),
1224
+ issuer: z.optional(z.string()),
1225
+ certificate: z.optional(z.string()),
1226
+ signature_method: z.optional(z.string()),
1227
+ digest_method: z.optional(z.string()),
1228
+ require_sso_for_all_members: z.optional(z.boolean())
1229
1229
  });
1230
1230
  /**
1231
1231
  * Short representation of a pipeline
1232
1232
  */
1233
1233
  const zShortPipelineViewWritable = z.object({
1234
- id: z.optional(z.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }).register(z.globalRegistry, { description: "The unique identifier of the pipeline" })),
1235
- identifier: z.optional(z.string().register(z.globalRegistry, { description: "A human-readable ID of pipeline" })),
1236
- name: z.optional(z.string().register(z.globalRegistry, { description: "The name of the pipeline" })),
1237
- definition_source: z.optional(z.enum(["LOCAL", "REMOTE"]).register(z.globalRegistry, { description: "The source of the pipeline definition" })),
1234
+ id: z.optional(z.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" })),
1235
+ identifier: z.optional(z.string()),
1236
+ name: z.optional(z.string()),
1237
+ definition_source: z.optional(z.enum(["LOCAL", "REMOTE"])),
1238
1238
  git_config_ref: z.optional(z.enum([
1239
1239
  "NONE",
1240
1240
  "DYNAMIC",
1241
1241
  "FIXED"
1242
- ]).register(z.globalRegistry, { description: "The git configuration reference type" })),
1243
- refs: z.optional(z.array(z.string().register(z.globalRegistry, { description: "Pipeline git context refs. If unset and events is empty, the pipeline counts as codeless" })).register(z.globalRegistry, { description: "Pipeline git context refs. If unset and events is empty, the pipeline counts as codeless" })),
1244
- events: z.optional(z.array(zPipelineEventView).register(z.globalRegistry, { description: "The list of events that trigger the pipeline run" })),
1245
- loop: z.optional(z.array(z.string()).register(z.globalRegistry, { description: "The loop configuration for the pipeline" })),
1242
+ ])),
1243
+ refs: z.optional(z.array(z.string())),
1244
+ events: z.optional(z.array(zPipelineEventView)),
1245
+ loop: z.optional(z.array(z.string())),
1246
1246
  priority: z.optional(z.enum([
1247
1247
  "LOW",
1248
1248
  "NORMAL",
1249
1249
  "HIGH"
1250
- ]).register(z.globalRegistry, { description: "The priority of the pipeline" })),
1251
- disabled: z.optional(z.boolean().register(z.globalRegistry, { description: "Indicates if the pipeline is disabled" })),
1252
- disabled_reason: z.optional(z.string().register(z.globalRegistry, { description: "The reason why the pipeline is disabled" })),
1250
+ ])),
1251
+ disabled: z.optional(z.boolean()),
1252
+ disabled_reason: z.optional(z.string()),
1253
1253
  last_execution_status: z.optional(z.enum([
1254
1254
  "INPROGRESS",
1255
1255
  "ENQUEUED",
@@ -1264,25 +1264,25 @@ const zShortPipelineViewWritable = z.object({
1264
1264
  "WAITING_FOR_VARIABLES",
1265
1265
  "WAITING_FOR_SETTABLE_VARIABLES",
1266
1266
  "WAITING_FOR_VT_SESSION"
1267
- ]).register(z.globalRegistry, { description: "The status of the last run" })),
1268
- last_execution_revision: z.optional(z.string().register(z.globalRegistry, { description: "The git revision of the last run" })),
1269
- target_site_url: z.optional(z.string().register(z.globalRegistry, { description: "The URL to the target site after deployment" })),
1270
- execution_message_template: z.optional(z.string().register(z.globalRegistry, { description: "The template for commit status messages" })),
1271
- create_date: z.optional(z.iso.datetime().register(z.globalRegistry, { description: "The creation date of the pipeline" })),
1272
- always_from_scratch: z.optional(z.boolean().register(z.globalRegistry, { description: "Defines whether to upload everything from scratch on every run" })),
1273
- ignore_fail_on_project_status: z.optional(z.boolean().register(z.globalRegistry, { description: "If set to true, the status of a given pipeline will not impact the project status on the dashboard" })),
1274
- no_skip_to_most_recent: z.optional(z.boolean().register(z.globalRegistry, { description: "If set to true, the pipeline will not skip queued runs to execute the most recent one" })),
1275
- terminate_stale_runs: z.optional(z.boolean().register(z.globalRegistry, { description: "If set to true, stale runs will be automatically terminated" })),
1276
- auto_clear_cache: z.optional(z.boolean().register(z.globalRegistry, { description: "Defines whether to automatically clear cache before running the pipeline" })),
1277
- paused: z.optional(z.boolean().register(z.globalRegistry, { description: "Indicates if the pipeline is paused" })),
1278
- pause_on_repeated_failures: z.optional(z.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }).register(z.globalRegistry, { description: "Defines how many repeated failures are required to pause the pipeline" })),
1279
- fetch_all_refs: z.optional(z.boolean().register(z.globalRegistry, { description: "If set to true, all refs will be fetched from the repository" })),
1280
- fail_on_prepare_env_warning: z.optional(z.boolean().register(z.globalRegistry, { description: "If set to true, the pipeline will fail on environment preparation warnings" })),
1281
- concurrent_pipeline_runs: z.optional(z.boolean().register(z.globalRegistry, { description: "Defines whether the pipeline can be run concurrently" })),
1282
- clone_depth: z.optional(z.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }).register(z.globalRegistry, { description: "Defines the depth of the git clone operation for shallow clones" })),
1283
- do_not_create_commit_status: z.optional(z.boolean().register(z.globalRegistry, { description: "If set to true, commit statuses will not be created in the repository" })),
1284
- stale: z.optional(z.boolean().register(z.globalRegistry, { description: "Indicates that pipeline definition was probably removed on particular Git ref and pipeline won't be run on events" })),
1285
- waiting_for_push: z.optional(z.boolean().register(z.globalRegistry, { description: "Indicates if the pipeline is waiting for the first push to the repository" })),
1267
+ ])),
1268
+ last_execution_revision: z.optional(z.string()),
1269
+ target_site_url: z.optional(z.string()),
1270
+ execution_message_template: z.optional(z.string()),
1271
+ create_date: z.optional(z.iso.datetime()),
1272
+ always_from_scratch: z.optional(z.boolean()),
1273
+ ignore_fail_on_project_status: z.optional(z.boolean()),
1274
+ no_skip_to_most_recent: z.optional(z.boolean()),
1275
+ terminate_stale_runs: z.optional(z.boolean()),
1276
+ auto_clear_cache: z.optional(z.boolean()),
1277
+ paused: z.optional(z.boolean()),
1278
+ pause_on_repeated_failures: z.optional(z.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" })),
1279
+ fetch_all_refs: z.optional(z.boolean()),
1280
+ fail_on_prepare_env_warning: z.optional(z.boolean()),
1281
+ concurrent_pipeline_runs: z.optional(z.boolean()),
1282
+ clone_depth: z.optional(z.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" })),
1283
+ do_not_create_commit_status: z.optional(z.boolean()),
1284
+ stale: z.optional(z.boolean()),
1285
+ waiting_for_push: z.optional(z.boolean()),
1286
1286
  resources: z.optional(z.enum([
1287
1287
  "DEFAULT",
1288
1288
  "NANO",
@@ -1292,34 +1292,34 @@ const zShortPipelineViewWritable = z.object({
1292
1292
  "XLARGE",
1293
1293
  "CUSTOM",
1294
1294
  "X2LARGE"
1295
- ]).register(z.globalRegistry, { description: "The resource configuration for the pipeline run" })),
1296
- remote_path: z.optional(z.string().register(z.globalRegistry, { description: "The path to the remote pipeline definition file" })),
1297
- remote_ref: z.optional(z.string().register(z.globalRegistry, { description: "The ref of the remote pipeline definition" })),
1298
- remote_project_name: z.optional(z.string().register(z.globalRegistry, { description: "The project name of the remote pipeline definition" })),
1299
- remote_parameters: z.optional(z.array(zPipelinePropertyView).register(z.globalRegistry, { description: "The parameters passed to the remote pipeline definition" })),
1295
+ ])),
1296
+ remote_path: z.optional(z.string()),
1297
+ remote_ref: z.optional(z.string()),
1298
+ remote_project_name: z.optional(z.string()),
1299
+ remote_parameters: z.optional(z.array(zPipelinePropertyView)),
1300
1300
  git_config: z.optional(zYamlDefinitionView),
1301
- tags: z.optional(z.array(z.string()).register(z.globalRegistry, { description: "The list of tags associated with the pipeline for organization" })),
1301
+ tags: z.optional(z.array(z.string())),
1302
1302
  git_changeset_base: z.optional(z.enum([
1303
1303
  "LATEST_RUN",
1304
1304
  "LATEST_RUN_MATCHING_REF",
1305
1305
  "PULL_REQUEST"
1306
- ]).register(z.globalRegistry, { description: "The base for git changeset calculation. Determines which changes trigger the pipeline" })),
1307
- filesystem_changeset_base: z.optional(z.enum(["DATE_MODIFIED", "CONTENTS"]).register(z.globalRegistry, { description: "The base for filesystem changeset calculation. Determines which file changes trigger the pipeline" })),
1306
+ ])),
1307
+ filesystem_changeset_base: z.optional(z.enum(["DATE_MODIFIED", "CONTENTS"])),
1308
1308
  cpu: z.optional(z.enum([
1309
1309
  "X64",
1310
1310
  "ARM",
1311
1311
  "X86"
1312
- ]).register(z.globalRegistry, { description: "The CPU architecture for the pipeline run" })),
1313
- description_required: z.optional(z.boolean().register(z.globalRegistry, { description: "If set to true, a description is required when executing the pipeline manually" })),
1314
- folder: z.optional(z.string().register(z.globalRegistry, { description: "The folder name where the pipeline is organized" }))
1315
- }).register(z.globalRegistry, { description: "Short representation of a pipeline" });
1312
+ ])),
1313
+ description_required: z.optional(z.boolean()),
1314
+ folder: z.optional(z.string())
1315
+ });
1316
1316
  /**
1317
1317
  * The integration to use for authentication
1318
1318
  */
1319
1319
  const zIntegrationViewWritable = z.object({
1320
- identifier: z.optional(z.string().register(z.globalRegistry, { description: "A human-readable ID of the integration" })),
1321
- hash_id: z.optional(z.string().register(z.globalRegistry, { description: "The unique hash ID of the integration" })),
1322
- name: z.optional(z.string().register(z.globalRegistry, { description: "The name of the integration" })),
1320
+ identifier: z.optional(z.string()),
1321
+ hash_id: z.optional(z.string()),
1322
+ name: z.optional(z.string()),
1323
1323
  type: z.optional(z.enum([
1324
1324
  "GIT_HUB",
1325
1325
  "BITBUCKET",
@@ -1371,7 +1371,7 @@ const zIntegrationViewWritable = z.object({
1371
1371
  "ONE_LOGIN",
1372
1372
  "OKTA",
1373
1373
  "CONTENTFUL"
1374
- ]).register(z.globalRegistry, { description: "The type of integration" })),
1374
+ ])),
1375
1375
  auth_type: z.optional(z.enum([
1376
1376
  "OAUTH",
1377
1377
  "TOKEN",
@@ -1383,40 +1383,40 @@ const zIntegrationViewWritable = z.object({
1383
1383
  "OIDC",
1384
1384
  "TRUSTED",
1385
1385
  "APP_RW"
1386
- ]).register(z.globalRegistry, { description: "The authentication method used by the integration" })),
1386
+ ])),
1387
1387
  scope: z.optional(z.enum([
1388
1388
  "WORKSPACE",
1389
1389
  "PROJECT",
1390
1390
  "ENVIRONMENT"
1391
- ]).register(z.globalRegistry, { description: "The scope of the integration" })),
1392
- project_name: z.optional(z.string().register(z.globalRegistry, { description: "The human-readable ID of the project (required when scope is `PROJECT`)" })),
1393
- app_id: z.optional(z.string().register(z.globalRegistry, { description: "The application ID for Azure Cloud integrations" })),
1394
- google_project: z.optional(z.string().register(z.globalRegistry, { description: "The Google Cloud project ID" })),
1395
- host_url: z.optional(z.string().register(z.globalRegistry, { description: "The host URL for custom integrations" })),
1396
- webhook_address: z.optional(z.string().register(z.globalRegistry, { description: "The webhook URL for receiving notifications" })),
1397
- audience: z.optional(z.string().register(z.globalRegistry, { description: "The JWT audience for token validation" })),
1398
- atop_url: z.optional(z.string().register(z.globalRegistry, { description: "The ATOP service URL" })),
1391
+ ])),
1392
+ project_name: z.optional(z.string()),
1393
+ app_id: z.optional(z.string()),
1394
+ google_project: z.optional(z.string()),
1395
+ host_url: z.optional(z.string()),
1396
+ webhook_address: z.optional(z.string()),
1397
+ audience: z.optional(z.string()),
1398
+ atop_url: z.optional(z.string()),
1399
1399
  permissions: z.optional(zIntegrationPermissionsView),
1400
- all_pipelines_allowed: z.optional(z.boolean().register(z.globalRegistry, { description: "Set to `true` to allow all pipelines to use this integration" })),
1401
- allowed_pipelines: z.optional(z.array(zShortPipelineViewWritable).register(z.globalRegistry, { description: "List of specific pipelines allowed to use this integration" }))
1402
- }).register(z.globalRegistry, { description: "The integration to use for authentication" });
1400
+ all_pipelines_allowed: z.optional(z.boolean()),
1401
+ allowed_pipelines: z.optional(z.array(zShortPipelineViewWritable))
1402
+ });
1403
1403
  const zIntegrationsViewWritable = z.object({ integrations: z.optional(z.array(zIntegrationViewWritable)) });
1404
1404
  const zIdsViewWritable = z.object({
1405
- domain: z.optional(z.string().register(z.globalRegistry, { description: "The human-readable ID of the workspace" })),
1406
- project_identifier: z.optional(z.string().register(z.globalRegistry, { description: "The human-readable ID of the project" })),
1407
- pipeline_id: z.optional(z.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }).register(z.globalRegistry, { description: "The ID of the pipeline" })),
1408
- environment_id: z.optional(z.string().register(z.globalRegistry, { description: "The ID of the environment" })),
1409
- pkg_id: z.optional(z.string().register(z.globalRegistry, { description: "The ID of the package" })),
1410
- pkg_version_id: z.optional(z.string().register(z.globalRegistry, { description: "The ID of the package version" })),
1411
- sandbox_id: z.optional(z.string().register(z.globalRegistry, { description: "The ID of the sandbox" }))
1405
+ domain: z.optional(z.string()),
1406
+ project_identifier: z.optional(z.string()),
1407
+ pipeline_id: z.optional(z.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" })),
1408
+ environment_id: z.optional(z.string()),
1409
+ pkg_id: z.optional(z.string()),
1410
+ pkg_version_id: z.optional(z.string()),
1411
+ sandbox_id: z.optional(z.string())
1412
1412
  });
1413
1413
  /**
1414
1414
  * Sandbox reference
1415
1415
  */
1416
1416
  const zSandboxIdViewWritable = z.object({
1417
- id: z.optional(z.string().register(z.globalRegistry, { description: "The ID of the sandbox" })),
1418
- identifier: z.optional(z.string().register(z.globalRegistry, { description: "A human-readable ID. Alphanumeric characters, underscores, and hyphens (hyphens cannot appear at the start or end)." })),
1419
- name: z.optional(z.string().register(z.globalRegistry, { description: "The name of the sandbox" })),
1417
+ id: z.optional(z.string()),
1418
+ identifier: z.optional(z.string()),
1419
+ name: z.optional(z.string()),
1420
1420
  status: z.optional(z.enum([
1421
1421
  "STARTING",
1422
1422
  "STOPPING",
@@ -1424,15 +1424,15 @@ const zSandboxIdViewWritable = z.object({
1424
1424
  "RUNNING",
1425
1425
  "STOPPED",
1426
1426
  "RESTORING"
1427
- ]).register(z.globalRegistry, { description: "The current status of the sandbox" }))
1428
- }).register(z.globalRegistry, { description: "Sandbox reference" });
1427
+ ]))
1428
+ });
1429
1429
  /**
1430
1430
  * Integration reference
1431
1431
  */
1432
1432
  const zIntegrationIdViewWritable = z.object({
1433
- identifier: z.optional(z.string().register(z.globalRegistry, { description: "A human-readable ID of the integration" })),
1434
- hash_id: z.optional(z.string().register(z.globalRegistry, { description: "The unique hash ID of the integration" })),
1435
- name: z.optional(z.string().register(z.globalRegistry, { description: "The name of the integration" })),
1433
+ identifier: z.optional(z.string()),
1434
+ hash_id: z.optional(z.string()),
1435
+ name: z.optional(z.string()),
1436
1436
  type: z.optional(z.enum([
1437
1437
  "GIT_HUB",
1438
1438
  "BITBUCKET",
@@ -1484,7 +1484,7 @@ const zIntegrationIdViewWritable = z.object({
1484
1484
  "ONE_LOGIN",
1485
1485
  "OKTA",
1486
1486
  "CONTENTFUL"
1487
- ]).register(z.globalRegistry, { description: "The type of integration" })),
1487
+ ])),
1488
1488
  auth_type: z.optional(z.enum([
1489
1489
  "OAUTH",
1490
1490
  "TOKEN",
@@ -1496,76 +1496,76 @@ const zIntegrationIdViewWritable = z.object({
1496
1496
  "OIDC",
1497
1497
  "TRUSTED",
1498
1498
  "APP_RW"
1499
- ]).register(z.globalRegistry, { description: "The authentication method used by the integration" })),
1500
- host_url: z.optional(z.string().register(z.globalRegistry, { description: "The host URL for custom integrations" })),
1501
- webhook_address: z.optional(z.string().register(z.globalRegistry, { description: "The webhook URL for receiving notifications" })),
1502
- atop_url: z.optional(z.string().register(z.globalRegistry, { description: "The ATOP service URL" })),
1503
- app_id: z.optional(z.string().register(z.globalRegistry, { description: "The application ID for Azure Cloud integrations" })),
1504
- google_project: z.optional(z.string().register(z.globalRegistry, { description: "The Google Cloud project ID" })),
1505
- audience: z.optional(z.string().register(z.globalRegistry, { description: "The JWT audience for token validation" }))
1506
- }).register(z.globalRegistry, { description: "Integration reference" });
1499
+ ])),
1500
+ host_url: z.optional(z.string()),
1501
+ webhook_address: z.optional(z.string()),
1502
+ atop_url: z.optional(z.string()),
1503
+ app_id: z.optional(z.string()),
1504
+ google_project: z.optional(z.string()),
1505
+ audience: z.optional(z.string())
1506
+ });
1507
1507
  /**
1508
1508
  * User/member reference
1509
1509
  */
1510
1510
  const zMemberViewWritable = z.object({
1511
- id: z.optional(z.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }).register(z.globalRegistry, { description: "The ID of the user" })),
1512
- name: z.optional(z.string().register(z.globalRegistry, { description: "The name of the user" })),
1513
- avatar_url: z.optional(z.string().register(z.globalRegistry, { description: "The avatar URL of the user" })),
1514
- email: z.optional(z.string().register(z.globalRegistry, { description: "The email address of the user" })),
1515
- admin: z.optional(z.boolean().register(z.globalRegistry, { description: "Whether the user has admin privileges" })),
1516
- workspace_owner: z.optional(z.boolean().register(z.globalRegistry, { description: "Whether the user is workspace owner" }))
1517
- }).register(z.globalRegistry, { description: "User/member reference" });
1511
+ id: z.optional(z.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" })),
1512
+ name: z.optional(z.string()),
1513
+ avatar_url: z.optional(z.string()),
1514
+ email: z.optional(z.string()),
1515
+ admin: z.optional(z.boolean()),
1516
+ workspace_owner: z.optional(z.boolean())
1517
+ });
1518
1518
  const zProjectViewWritable = z.object({
1519
- name: z.optional(z.string().register(z.globalRegistry, { description: "The human-readable ID of the project" })),
1520
- display_name: z.string().register(z.globalRegistry, { description: "The Name of the project" }),
1521
- status: z.optional(z.string().register(z.globalRegistry, { description: "The status of the project" })),
1522
- access: z.optional(z.enum(["PRIVATE", "PUBLIC"]).register(z.globalRegistry, { description: "Indicates if this is a public project" })),
1523
- create_date: z.optional(z.iso.datetime().register(z.globalRegistry, { description: "The creation date of the project" })),
1524
- external_project_id: z.optional(z.string().register(z.globalRegistry, { description: "Repo slug of the Bitbucket, GitHub or GitLab project. Required when adding the integrated project" })),
1525
- git_lab_project_id: z.optional(z.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }).register(z.globalRegistry, { description: "ID of the project in GitLab" })),
1526
- custom_repo_url: z.optional(z.string().register(z.globalRegistry, { description: "SSH or HTTPS url of the git repository. Required when adding the project integrated with custom git repository" })),
1527
- custom_repo_user: z.optional(z.string().register(z.globalRegistry, { description: "Username used to authorize access to the git repository. Required when adding the project integrated with custom git repository" })),
1528
- custom_repo_pass: z.optional(z.string().register(z.globalRegistry, { description: "Password used to authorize access to the git repository. Required when adding the project integrated with custom git repository and the provided `custom_repo_url` is the HTTPS url" })),
1529
- custom_repo_ssh_key_id: z.optional(z.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }).register(z.globalRegistry, { description: "The ID of the private SSH key used to authorize access to the git repository. Required when adding the project integrated with private git server by SSH url" })),
1519
+ name: z.optional(z.string()),
1520
+ display_name: z.string(),
1521
+ status: z.optional(z.string()),
1522
+ access: z.optional(z.enum(["PRIVATE", "PUBLIC"])),
1523
+ create_date: z.optional(z.iso.datetime()),
1524
+ external_project_id: z.optional(z.string()),
1525
+ git_lab_project_id: z.optional(z.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" })),
1526
+ custom_repo_url: z.optional(z.string()),
1527
+ custom_repo_user: z.optional(z.string()),
1528
+ custom_repo_pass: z.optional(z.string()),
1529
+ custom_repo_ssh_key_id: z.optional(z.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" })),
1530
1530
  created_by: z.optional(zMemberViewWritable),
1531
- http_repository: z.optional(z.string().register(z.globalRegistry, { description: "The HTTP repository URL" })),
1532
- ssh_repository: z.optional(z.string().register(z.globalRegistry, { description: "The SSH repository URL" })),
1533
- default_branch: z.optional(z.string().register(z.globalRegistry, { description: "The default branch name" })),
1531
+ http_repository: z.optional(z.string()),
1532
+ ssh_repository: z.optional(z.string()),
1533
+ default_branch: z.optional(z.string()),
1534
1534
  integration: z.optional(zIntegrationIdViewWritable),
1535
- fetch_submodules: z.optional(z.boolean().register(z.globalRegistry, { description: "Defines whether the submodules are fetched during the runs in this project" })),
1536
- fetch_submodules_env_key: z.optional(z.string().register(z.globalRegistry, { description: "Name of the key that will be used to authorize while fetching the submodules. Required when `fetch_submodules` is set to `true`" })),
1537
- allow_pull_requests: z.optional(z.boolean().register(z.globalRegistry, { description: "Enables/disables pull requests in the project. Available only for projects synchronized with GitHub or GitHub Enterprise repository" })),
1538
- update_default_branch_from_external: z.optional(z.boolean().register(z.globalRegistry, { description: "If set to true, the default branch will be updated from GitHub/GitLab/Bitbucket." })),
1539
- without_repository: z.optional(z.boolean().register(z.globalRegistry, { description: "If set to true, the project is created without any repository attached." }))
1535
+ fetch_submodules: z.optional(z.boolean()),
1536
+ fetch_submodules_env_key: z.optional(z.string()),
1537
+ allow_pull_requests: z.optional(z.boolean()),
1538
+ update_default_branch_from_external: z.optional(z.boolean()),
1539
+ without_repository: z.optional(z.boolean())
1540
1540
  });
1541
1541
  /**
1542
1542
  * Short representation of a project
1543
1543
  */
1544
1544
  const zShortProjectViewWritable = z.object({
1545
- name: z.optional(z.string().register(z.globalRegistry, { description: "The human-readable ID of the project" })),
1546
- display_name: z.string().register(z.globalRegistry, { description: "The Name of the project" }),
1547
- status: z.optional(z.string().register(z.globalRegistry, { description: "The status of the project" })),
1548
- access: z.optional(z.enum(["PRIVATE", "PUBLIC"]).register(z.globalRegistry, { description: "Indicates if this is a public project" })),
1549
- create_date: z.optional(z.iso.datetime().register(z.globalRegistry, { description: "The creation date of the project" }))
1550
- }).register(z.globalRegistry, { description: "Short representation of a project" });
1545
+ name: z.optional(z.string()),
1546
+ display_name: z.string(),
1547
+ status: z.optional(z.string()),
1548
+ access: z.optional(z.enum(["PRIVATE", "PUBLIC"])),
1549
+ create_date: z.optional(z.iso.datetime())
1550
+ });
1551
1551
  /**
1552
1552
  * The environment variables of the sandbox
1553
1553
  */
1554
1554
  const zAddVariableInObjectRequestWritable = z.object({
1555
- key: z.string().register(z.globalRegistry, { description: "The name of the variable" }),
1556
- value: z.optional(z.string().register(z.globalRegistry, { description: "The value of the variable" })),
1557
- settable: z.optional(z.boolean().register(z.globalRegistry, { description: "If set to `true` the variable value can be set by Buddy actions" })),
1558
- run_only_settable: z.optional(z.boolean().register(z.globalRegistry, { description: "Available only if `type=VAR`. If set to `true` the variable value can be set by Buddy actions only for execution time" })),
1559
- encrypted: z.optional(z.boolean().register(z.globalRegistry, { description: "If set to `true` the variable value will be encrypted and hidden" })),
1560
- description: z.optional(z.string().register(z.globalRegistry, { description: "The optional description of the variable" })),
1561
- init_path: z.optional(z.string().register(z.globalRegistry, { description: "Initial path for the variable" })),
1562
- defaults: z.optional(z.string().register(z.globalRegistry, { description: "Default value for the variable" })),
1563
- file_path: z.optional(z.string().register(z.globalRegistry, { description: "Specifies where to copy the file on each run. Set if `type` is `SSH_KEY`" })),
1564
- file_chmod: z.optional(z.string().register(z.globalRegistry, { description: "File permission set on copy to a container on each run. Set if `type` is `SSH_KEY`" })),
1565
- file_place: z.optional(z.enum(["NONE", "CONTAINER"]).register(z.globalRegistry, { description: "Set if `type` is `SSH_KEY`. If it's `NONE`, the variable can be used as a parameter in an action. For `CONTAINER`, the given key is additionally copied to an action container on each run" })),
1566
- password: z.optional(z.string().register(z.globalRegistry, { description: "Password for certificates" })),
1567
- passphrase: z.optional(z.string().register(z.globalRegistry, { description: "Passphrase for encrypted SSH keys" })),
1568
- key_identifier: z.optional(z.string().register(z.globalRegistry, { description: "GPG key identifier" })),
1555
+ key: z.string(),
1556
+ value: z.optional(z.string()),
1557
+ settable: z.optional(z.boolean()),
1558
+ run_only_settable: z.optional(z.boolean()),
1559
+ encrypted: z.optional(z.boolean()),
1560
+ description: z.optional(z.string()),
1561
+ init_path: z.optional(z.string()),
1562
+ defaults: z.optional(z.string()),
1563
+ file_path: z.optional(z.string()),
1564
+ file_chmod: z.optional(z.string()),
1565
+ file_place: z.optional(z.enum(["NONE", "CONTAINER"])),
1566
+ password: z.optional(z.string()),
1567
+ passphrase: z.optional(z.string()),
1568
+ key_identifier: z.optional(z.string()),
1569
1569
  type: z.enum([
1570
1570
  "VAR",
1571
1571
  "FILE",
@@ -1574,67 +1574,67 @@ const zAddVariableInObjectRequestWritable = z.object({
1574
1574
  "IOS_PROVISION_PROFILES",
1575
1575
  "SSH_PUBLIC_KEY",
1576
1576
  "GPG_KEY"
1577
- ]).register(z.globalRegistry, { description: "The type of the added variable" })
1578
- }).register(z.globalRegistry, { description: "The environment variables of the sandbox" });
1577
+ ])
1578
+ });
1579
1579
  /**
1580
1580
  * The TLS/SSL encryption settings of the tunnel
1581
1581
  */
1582
1582
  const zTlsSettingsViewWritable = z.object({
1583
- private_key: z.optional(z.string().register(z.globalRegistry, { description: "Private key for TLS certificate" })),
1584
- certificate: z.optional(z.string().register(z.globalRegistry, { description: "TLS certificate" })),
1585
- ca_certificate: z.optional(z.string().register(z.globalRegistry, { description: "Certificate Authority certificate" })),
1583
+ private_key: z.optional(z.string()),
1584
+ certificate: z.optional(z.string()),
1585
+ ca_certificate: z.optional(z.string()),
1586
1586
  terminate_at: z.optional(z.enum([
1587
1587
  "REGION",
1588
1588
  "AGENT",
1589
1589
  "TARGET"
1590
- ]).register(z.globalRegistry, { description: "Where to terminate TLS connection" }))
1591
- }).register(z.globalRegistry, { description: "The TLS/SSL encryption settings of the tunnel" });
1590
+ ]))
1591
+ });
1592
1592
  /**
1593
1593
  * The HTTP-specific settings of the tunnel
1594
1594
  */
1595
1595
  const zHttpSettingsViewWritable = z.object({
1596
- verify_certificate: z.optional(z.boolean().register(z.globalRegistry, { description: "Whether to verify SSL/TLS certificates" })),
1597
- compression: z.optional(z.boolean().register(z.globalRegistry, { description: "Enable HTTP compression" })),
1598
- http2: z.optional(z.boolean().register(z.globalRegistry, { description: "Enable HTTP/2 protocol support" })),
1599
- log_requests: z.optional(z.boolean().register(z.globalRegistry, { description: "Log incoming HTTP requests" })),
1600
- request_headers: z.optional(z.array(z.record(z.string(), z.string())).register(z.globalRegistry, { description: "Custom HTTP headers to add to requests" })),
1601
- whitelist_user_agents: z.optional(z.array(z.string()).register(z.globalRegistry, { description: "List of allowed User-Agent strings" })),
1602
- rewrite_host_header: z.optional(z.string().register(z.globalRegistry, { description: "Rewrite the Host header to this value" })),
1603
- response_headers: z.optional(z.array(z.record(z.string(), z.string())).register(z.globalRegistry, { description: "Custom HTTP headers to add to responses" })),
1604
- login: z.optional(z.string().register(z.globalRegistry, { description: "Basic authentication username" })),
1605
- password: z.optional(z.string().register(z.globalRegistry, { description: "Basic authentication password" })),
1606
- tls_ca: z.optional(z.string().register(z.globalRegistry, { description: "Custom TLS Certificate Authority" })),
1607
- circuit_breaker: z.optional(z.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }).register(z.globalRegistry, { description: "Circuit breaker threshold (number of failed requests)" })),
1608
- serve_path: z.optional(z.string().register(z.globalRegistry, { description: "Base path for serving requests" })),
1596
+ verify_certificate: z.optional(z.boolean()),
1597
+ compression: z.optional(z.boolean()),
1598
+ http2: z.optional(z.boolean()),
1599
+ log_requests: z.optional(z.boolean()),
1600
+ request_headers: z.optional(z.array(z.record(z.string(), z.string()))),
1601
+ whitelist_user_agents: z.optional(z.array(z.string())),
1602
+ rewrite_host_header: z.optional(z.string()),
1603
+ response_headers: z.optional(z.array(z.record(z.string(), z.string()))),
1604
+ login: z.optional(z.string()),
1605
+ password: z.optional(z.string()),
1606
+ tls_ca: z.optional(z.string()),
1607
+ circuit_breaker: z.optional(z.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" })),
1608
+ serve_path: z.optional(z.string()),
1609
1609
  auth_type: z.optional(z.enum([
1610
1610
  "NONE",
1611
1611
  "BASIC",
1612
1612
  "BUDDY"
1613
- ]).register(z.globalRegistry, { description: "Type of authentication used" }))
1614
- }).register(z.globalRegistry, { description: "The HTTP-specific settings of the tunnel" });
1613
+ ]))
1614
+ });
1615
1615
  const zTunnelViewWritable = z.object({
1616
- name: z.string().register(z.globalRegistry, { description: "The name of the tunnel" }),
1617
- endpoint: z.string().register(z.globalRegistry, { description: "The endpoint URL of the tunnel" }),
1616
+ name: z.string(),
1617
+ endpoint: z.string(),
1618
1618
  type: z.enum([
1619
1619
  "TCP",
1620
1620
  "TLS",
1621
1621
  "HTTP",
1622
1622
  "SSH"
1623
- ]).register(z.globalRegistry, { description: "The type of the tunnel" }),
1623
+ ]),
1624
1624
  region: z.enum([
1625
1625
  "US",
1626
1626
  "EU",
1627
1627
  "AS"
1628
- ]).register(z.globalRegistry, { description: "The region where the tunnel is deployed" }),
1629
- whitelist: z.optional(z.array(z.string()).register(z.globalRegistry, { description: "The IP addresses or domains allowed to access the tunnel" })),
1630
- timeout: z.optional(z.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }).register(z.globalRegistry, { description: "The connection timeout of the tunnel in seconds" })),
1628
+ ]),
1629
+ whitelist: z.optional(z.array(z.string())),
1630
+ timeout: z.optional(z.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" })),
1631
1631
  http: z.optional(zHttpSettingsViewWritable),
1632
1632
  tls: z.optional(zTlsSettingsViewWritable),
1633
- endpoint_url: z.optional(z.string().register(z.globalRegistry, { description: "The url of the tunnel" }))
1633
+ endpoint_url: z.optional(z.string())
1634
1634
  });
1635
1635
  const zUpdateSandboxRequestWritable = z.object({
1636
- name: z.optional(z.string().register(z.globalRegistry, { description: "The name of the sandbox" })),
1637
- identifier: z.optional(z.string().register(z.globalRegistry, { description: "A human-readable ID. Alphanumeric characters, underscores, and hyphens (hyphens cannot appear at the start or end)." })),
1636
+ name: z.optional(z.string()),
1637
+ identifier: z.optional(z.string()),
1638
1638
  resources: z.optional(z.enum([
1639
1639
  "1x2",
1640
1640
  "2x4",
@@ -1649,14 +1649,14 @@ const zUpdateSandboxRequestWritable = z.object({
1649
1649
  "11x22",
1650
1650
  "12x24",
1651
1651
  "CUSTOM"
1652
- ]).register(z.globalRegistry, { description: "The resource configuration of the sandbox (CPU x RAM)" })),
1653
- install_commands: z.optional(z.string().register(z.globalRegistry, { description: "The commands to run during setup of the sandbox" })),
1654
- run_command: z.optional(z.string().register(z.globalRegistry, { description: "The run command of the sandbox" })),
1655
- app_dir: z.optional(z.string().register(z.globalRegistry, { description: "The application directory of the sandbox" })),
1656
- app_type: z.optional(z.enum(["CMD", "SERVICE"]).register(z.globalRegistry, { description: "The application type of the sandbox (passed command or existent service eg. apache2)" })),
1657
- tags: z.optional(z.array(z.string().register(z.globalRegistry, { description: "The list of tags associated with the sandbox" })).register(z.globalRegistry, { description: "The list of tags associated with the sandbox" })),
1658
- endpoints: z.optional(z.array(zTunnelViewWritable).register(z.globalRegistry, { description: "The tunnel endpoints of the sandbox" })),
1659
- variables: z.optional(z.array(zAddVariableInObjectRequestWritable).register(z.globalRegistry, { description: "The environment variables of the sandbox" })),
1652
+ ])),
1653
+ install_commands: z.optional(z.string()),
1654
+ run_command: z.optional(z.string()),
1655
+ app_dir: z.optional(z.string()),
1656
+ app_type: z.optional(z.enum(["CMD", "SERVICE"])),
1657
+ tags: z.optional(z.array(z.string())),
1658
+ endpoints: z.optional(z.array(zTunnelViewWritable)),
1659
+ variables: z.optional(z.array(zAddVariableInObjectRequestWritable)),
1660
1660
  permissions: z.optional(zPermissionsView)
1661
1661
  });
1662
1662
  const zSandboxesViewWritable = z.object({ sandboxes: z.optional(z.array(zSandboxIdViewWritable)) });
@@ -1664,68 +1664,68 @@ const zSandboxesViewWritable = z.object({ sandboxes: z.optional(z.array(zSandbox
1664
1664
  * Content item in a sandbox
1665
1665
  */
1666
1666
  const zSandboxContentItemWritable = z.object({
1667
- type: z.optional(z.enum(["FILE", "DIR"]).register(z.globalRegistry, { description: "The content type (FILE or DIR)" })),
1668
- name: z.optional(z.string().register(z.globalRegistry, { description: "The name of the file or directory" })),
1669
- path: z.optional(z.string().register(z.globalRegistry, { description: "The path to the file or directory" })),
1670
- size: z.optional(z.coerce.bigint().min(BigInt("-9223372036854775808"), { error: "Invalid value: Expected int64 to be >= -9223372036854775808" }).max(BigInt("9223372036854775807"), { error: "Invalid value: Expected int64 to be <= 9223372036854775807" }).register(z.globalRegistry, { description: "The size of the file in bytes" }))
1671
- }).register(z.globalRegistry, { description: "Content item in a sandbox" });
1667
+ type: z.optional(z.enum(["FILE", "DIR"])),
1668
+ name: z.optional(z.string()),
1669
+ path: z.optional(z.string()),
1670
+ size: z.optional(z.coerce.bigint().min(BigInt("-9223372036854775808"), { error: "Invalid value: Expected int64 to be >= -9223372036854775808" }).max(BigInt("9223372036854775807"), { error: "Invalid value: Expected int64 to be <= 9223372036854775807" }))
1671
+ });
1672
1672
  /**
1673
1673
  * Sandbox content listing
1674
1674
  */
1675
- const zSandboxContentViewWritable = z.object({ contents: z.optional(z.array(zSandboxContentItemWritable).register(z.globalRegistry, { description: "List of content items in the directory" })) }).register(z.globalRegistry, { description: "Sandbox content listing" });
1675
+ const zSandboxContentViewWritable = z.object({ contents: z.optional(z.array(zSandboxContentItemWritable)) });
1676
1676
  const zSandboxCommandViewWritable = z.object({
1677
- id: z.optional(z.string().register(z.globalRegistry, { description: "The ID of the command" })),
1678
- command: z.optional(z.string().register(z.globalRegistry, { description: "Command to execute in the sandbox" })),
1677
+ id: z.optional(z.string()),
1678
+ command: z.optional(z.string()),
1679
1679
  runtime: z.optional(z.enum([
1680
1680
  "BASH",
1681
1681
  "JAVASCRIPT",
1682
1682
  "TYPESCRIPT",
1683
1683
  "PYTHON"
1684
- ]).register(z.globalRegistry, { description: "Runtime environment for command execution (default: `BASH`)" })),
1684
+ ])),
1685
1685
  status: z.optional(z.enum([
1686
1686
  "INPROGRESS",
1687
1687
  "SUCCESSFUL",
1688
1688
  "FAILED"
1689
- ]).register(z.globalRegistry, { description: "Command execution status" })),
1690
- exit_code: z.optional(z.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }).register(z.globalRegistry, { description: "Command exit code" })),
1691
- logs_url: z.optional(z.string().register(z.globalRegistry, { description: "API endpoint URL to retrieve logs for this command" }))
1689
+ ])),
1690
+ exit_code: z.optional(z.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" })),
1691
+ logs_url: z.optional(z.string())
1692
1692
  });
1693
1693
  const zSandboxCommandsViewWritable = z.object({ commands: z.optional(z.array(zSandboxCommandViewWritable)) });
1694
1694
  const zSandboxAppLogsViewWritable = z.object({
1695
- cursor: z.optional(z.string().register(z.globalRegistry, { description: "Cursor for pagination" })),
1696
- logs: z.optional(z.array(z.string()).register(z.globalRegistry, { description: "Application log entries" }))
1695
+ cursor: z.optional(z.string()),
1696
+ logs: z.optional(z.array(z.string()))
1697
1697
  });
1698
1698
  const zShortSnapshotViewWritable = z.object({
1699
- id: z.optional(z.string().register(z.globalRegistry, { description: "The ID of the snapshot" })),
1700
- name: z.optional(z.string().register(z.globalRegistry, { description: "Snapshot name" })),
1701
- size: z.optional(z.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }).register(z.globalRegistry, { description: "Snapshot size in GB" })),
1699
+ id: z.optional(z.string()),
1700
+ name: z.optional(z.string()),
1701
+ size: z.optional(z.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" })),
1702
1702
  status: z.optional(z.enum([
1703
1703
  "CREATING",
1704
1704
  "CREATED",
1705
1705
  "DELETING",
1706
1706
  "FAILED"
1707
- ]).register(z.globalRegistry, { description: "Snapshot status" })),
1708
- create_date: z.optional(z.iso.datetime().register(z.globalRegistry, { description: "Snapshot creation date" }))
1707
+ ])),
1708
+ create_date: z.optional(z.iso.datetime())
1709
1709
  });
1710
- const zSnapshotsViewWritable = z.object({ snapshots: z.optional(z.array(zShortSnapshotViewWritable).register(z.globalRegistry, { description: "Collection of snapshots" })) });
1710
+ const zSnapshotsViewWritable = z.object({ snapshots: z.optional(z.array(zShortSnapshotViewWritable)) });
1711
1711
  const zSnapshotViewWritable = z.object({
1712
- id: z.optional(z.string().register(z.globalRegistry, { description: "The ID of the snapshot" })),
1713
- name: z.optional(z.string().register(z.globalRegistry, { description: "Snapshot name" })),
1714
- size: z.optional(z.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }).register(z.globalRegistry, { description: "Snapshot size in GB" })),
1712
+ id: z.optional(z.string()),
1713
+ name: z.optional(z.string()),
1714
+ size: z.optional(z.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" })),
1715
1715
  status: z.optional(z.enum([
1716
1716
  "CREATING",
1717
1717
  "CREATED",
1718
1718
  "DELETING",
1719
1719
  "FAILED"
1720
- ]).register(z.globalRegistry, { description: "Snapshot status" })),
1721
- create_date: z.optional(z.iso.datetime().register(z.globalRegistry, { description: "Snapshot creation date" })),
1720
+ ])),
1721
+ create_date: z.optional(z.iso.datetime()),
1722
1722
  created_by: z.optional(zMemberViewWritable)
1723
1723
  });
1724
- const zSandboxYamlViewWritable = z.object({ yaml: z.optional(z.string().register(z.globalRegistry, { description: "The base64-encoded YAML configuration of the sandbox" })) });
1724
+ const zSandboxYamlViewWritable = z.object({ yaml: z.optional(z.string()) });
1725
1725
  const zCreateNewSandboxRequestWritable = z.object({
1726
- name: z.string().register(z.globalRegistry, { description: "The name of the sandbox" }),
1727
- identifier: z.optional(z.string().register(z.globalRegistry, { description: "A human-readable ID. Alphanumeric characters, underscores, and hyphens (hyphens cannot appear at the start or end)." })),
1728
- os: z.string().register(z.globalRegistry, { description: "The operating system of the sandbox [\"ubuntu:22.04\", \"ubuntu:24.04\"]" }),
1726
+ name: z.string(),
1727
+ identifier: z.optional(z.string()),
1728
+ os: z.string(),
1729
1729
  resources: z.optional(z.enum([
1730
1730
  "1x2",
1731
1731
  "2x4",
@@ -1740,20 +1740,20 @@ const zCreateNewSandboxRequestWritable = z.object({
1740
1740
  "11x22",
1741
1741
  "12x24",
1742
1742
  "CUSTOM"
1743
- ]).register(z.globalRegistry, { description: "The resource configuration of the sandbox (CPU x RAM)" })),
1744
- install_commands: z.optional(z.string().register(z.globalRegistry, { description: "The commands to run during setup of the sandbox" })),
1745
- run_command: z.optional(z.string().register(z.globalRegistry, { description: "The run command of the sandbox" })),
1746
- app_dir: z.optional(z.string().register(z.globalRegistry, { description: "The application directory of the sandbox" })),
1747
- app_type: z.optional(z.enum(["CMD", "SERVICE"]).register(z.globalRegistry, { description: "The application type of the sandbox (passed command or existent service eg. apache2)" })),
1748
- tags: z.optional(z.array(z.string().register(z.globalRegistry, { description: "The list of tags associated with the sandbox" })).register(z.globalRegistry, { description: "The list of tags associated with the sandbox" })),
1749
- endpoints: z.optional(z.array(zTunnelViewWritable).register(z.globalRegistry, { description: "The tunnel endpoints of the sandbox" })),
1750
- variables: z.optional(z.array(zAddVariableInObjectRequestWritable).register(z.globalRegistry, { description: "The environment variables of the sandbox" }))
1743
+ ])),
1744
+ install_commands: z.optional(z.string()),
1745
+ run_command: z.optional(z.string()),
1746
+ app_dir: z.optional(z.string()),
1747
+ app_type: z.optional(z.enum(["CMD", "SERVICE"])),
1748
+ tags: z.optional(z.array(z.string())),
1749
+ endpoints: z.optional(z.array(zTunnelViewWritable)),
1750
+ variables: z.optional(z.array(zAddVariableInObjectRequestWritable))
1751
1751
  });
1752
1752
  const zCreateFromSnapshotRequestWritable = z.object({
1753
- snapshot_id: z.string().register(z.globalRegistry, { description: "The ID of the snapshot to create from" }),
1754
- name: z.string().register(z.globalRegistry, { description: "The name of the sandbox" }),
1755
- identifier: z.optional(z.string().register(z.globalRegistry, { description: "A human-readable ID. Alphanumeric characters, underscores, and hyphens (hyphens cannot appear at the start or end)." })),
1756
- os: z.optional(z.string().register(z.globalRegistry, { description: "The operating system of the sandbox [\"ubuntu:22.04\", \"ubuntu:24.04\"]" })),
1753
+ snapshot_id: z.string(),
1754
+ name: z.string(),
1755
+ identifier: z.optional(z.string()),
1756
+ os: z.optional(z.string()),
1757
1757
  resources: z.optional(z.enum([
1758
1758
  "1x2",
1759
1759
  "2x4",
@@ -1768,19 +1768,19 @@ const zCreateFromSnapshotRequestWritable = z.object({
1768
1768
  "11x22",
1769
1769
  "12x24",
1770
1770
  "CUSTOM"
1771
- ]).register(z.globalRegistry, { description: "The resource configuration of the sandbox (CPU x RAM)" })),
1772
- install_commands: z.optional(z.string().register(z.globalRegistry, { description: "The commands to run during setup of the sandbox" })),
1773
- run_command: z.optional(z.string().register(z.globalRegistry, { description: "The run command of the sandbox" })),
1774
- app_dir: z.optional(z.string().register(z.globalRegistry, { description: "The application directory of the sandbox" })),
1775
- app_type: z.optional(z.enum(["CMD", "SERVICE"]).register(z.globalRegistry, { description: "The application type of the sandbox (passed command or existent service eg. apache2)" })),
1776
- tags: z.optional(z.array(z.string().register(z.globalRegistry, { description: "The list of tags associated with the sandbox" })).register(z.globalRegistry, { description: "The list of tags associated with the sandbox" })),
1777
- endpoints: z.optional(z.array(zTunnelViewWritable).register(z.globalRegistry, { description: "The tunnel endpoints of the sandbox" })),
1778
- variables: z.optional(z.array(zEnvironmentVariableView).register(z.globalRegistry, { description: "The environment variables of the sandbox" }))
1771
+ ])),
1772
+ install_commands: z.optional(z.string()),
1773
+ run_command: z.optional(z.string()),
1774
+ app_dir: z.optional(z.string()),
1775
+ app_type: z.optional(z.enum(["CMD", "SERVICE"])),
1776
+ tags: z.optional(z.array(z.string())),
1777
+ endpoints: z.optional(z.array(zTunnelViewWritable)),
1778
+ variables: z.optional(z.array(zEnvironmentVariableView))
1779
1779
  });
1780
1780
  const zSandboxResponseWritable = z.object({
1781
- id: z.optional(z.string().register(z.globalRegistry, { description: "The ID of the sandbox" })),
1782
- identifier: z.optional(z.string().register(z.globalRegistry, { description: "A human-readable ID. Alphanumeric characters, underscores, and hyphens (hyphens cannot appear at the start or end)." })),
1783
- name: z.optional(z.string().register(z.globalRegistry, { description: "The name of the sandbox" })),
1781
+ id: z.optional(z.string()),
1782
+ identifier: z.optional(z.string()),
1783
+ name: z.optional(z.string()),
1784
1784
  status: z.optional(z.enum([
1785
1785
  "STARTING",
1786
1786
  "STOPPING",
@@ -1788,8 +1788,8 @@ const zSandboxResponseWritable = z.object({
1788
1788
  "RUNNING",
1789
1789
  "STOPPED",
1790
1790
  "RESTORING"
1791
- ]).register(z.globalRegistry, { description: "The current status of the sandbox" })),
1792
- os: z.optional(z.string().register(z.globalRegistry, { description: "The operating system of the sandbox [\"ubuntu:22.04\", \"ubuntu:24.04\"]" })),
1791
+ ])),
1792
+ os: z.optional(z.string()),
1793
1793
  resources: z.optional(z.enum([
1794
1794
  "1x2",
1795
1795
  "2x4",
@@ -1804,28 +1804,28 @@ const zSandboxResponseWritable = z.object({
1804
1804
  "11x22",
1805
1805
  "12x24",
1806
1806
  "CUSTOM"
1807
- ]).register(z.globalRegistry, { description: "The resource configuration of the sandbox (CPU x RAM)" })),
1808
- install_commands: z.optional(z.string().register(z.globalRegistry, { description: "The commands to run during setup of the sandbox" })),
1809
- run_command: z.optional(z.string().register(z.globalRegistry, { description: "The run command of the sandbox" })),
1810
- app_dir: z.optional(z.string().register(z.globalRegistry, { description: "The application directory of the sandbox" })),
1811
- app_type: z.optional(z.enum(["CMD", "SERVICE"]).register(z.globalRegistry, { description: "The application type of the sandbox (passed command or existent service eg. apache2)" })),
1812
- tags: z.optional(z.array(z.string()).register(z.globalRegistry, { description: "The list of tags associated with the sandbox" })),
1807
+ ])),
1808
+ install_commands: z.optional(z.string()),
1809
+ run_command: z.optional(z.string()),
1810
+ app_dir: z.optional(z.string()),
1811
+ app_type: z.optional(z.enum(["CMD", "SERVICE"])),
1812
+ tags: z.optional(z.array(z.string())),
1813
1813
  app_status: z.optional(z.enum([
1814
1814
  "NONE",
1815
1815
  "RUNNING",
1816
1816
  "ENDED",
1817
1817
  "FAILED"
1818
- ]).register(z.globalRegistry, { description: "The current application status of the sandbox" })),
1819
- boot_logs: z.optional(z.array(z.string()).register(z.globalRegistry, { description: "The boot logs of the sandbox" })),
1818
+ ])),
1819
+ boot_logs: z.optional(z.array(z.string())),
1820
1820
  setup_status: z.optional(z.enum([
1821
1821
  "INPROGRESS",
1822
1822
  "SUCCESS",
1823
1823
  "FAILED"
1824
- ]).register(z.globalRegistry, { description: "The current setup status of the sandbox" })),
1825
- endpoints: z.optional(z.array(zTunnelViewWritable).register(z.globalRegistry, { description: "The tunnel endpoints of the sandbox" })),
1824
+ ])),
1825
+ endpoints: z.optional(z.array(zTunnelViewWritable)),
1826
1826
  project: z.optional(zProjectViewWritable),
1827
1827
  permissions: z.optional(zPermissionsView),
1828
- variables: z.optional(z.array(zEnvironmentVariableView).register(z.globalRegistry, { description: "The environment variables of the sandbox" }))
1828
+ variables: z.optional(z.array(zEnvironmentVariableView))
1829
1829
  });
1830
1830
  const zProjectsViewWritable = z.object({ projects: z.optional(z.array(zShortProjectViewWritable)) });
1831
1831
  const zGetWorkspacesData = z.object({
@@ -1835,132 +1835,132 @@ const zGetWorkspacesData = z.object({
1835
1835
  });
1836
1836
  const zGetWorkspaceData = z.object({
1837
1837
  body: z.optional(z.never()),
1838
- path: z.object({ workspace_domain: z.string().register(z.globalRegistry, { description: "The human-readable ID of the workspace" }) }),
1838
+ path: z.object({ workspace_domain: z.string() }),
1839
1839
  query: z.optional(z.never())
1840
1840
  });
1841
1841
  const zDisableSsoData = z.object({
1842
1842
  body: z.optional(z.never()),
1843
- path: z.object({ workspace_domain: z.string().register(z.globalRegistry, { description: "The human-readable ID of the workspace" }) }),
1843
+ path: z.object({ workspace_domain: z.string() }),
1844
1844
  query: z.optional(z.never())
1845
1845
  });
1846
1846
  const zEnableSsoData = z.object({
1847
1847
  body: z.optional(z.never()),
1848
- path: z.object({ workspace_domain: z.string().register(z.globalRegistry, { description: "The human-readable ID of the workspace" }) }),
1848
+ path: z.object({ workspace_domain: z.string() }),
1849
1849
  query: z.optional(z.never())
1850
1850
  });
1851
1851
  const zGetIdentifiersData = z.object({
1852
1852
  body: z.optional(z.never()),
1853
- path: z.object({ workspace_domain: z.string().register(z.globalRegistry, { description: "The human-readable ID of the workspace" }) }),
1853
+ path: z.object({ workspace_domain: z.string() }),
1854
1854
  query: z.optional(z.object({
1855
- project: z.optional(z.string().register(z.globalRegistry, { description: "The human-readable ID of the project" })),
1856
- pipeline: z.optional(z.string().register(z.globalRegistry, { description: "The human-readable ID of the pipeline" })),
1857
- environment: z.optional(z.string().register(z.globalRegistry, { description: "The human-readable ID of the environment" })),
1858
- package: z.optional(z.string().register(z.globalRegistry, { description: "The human-readable ID of the package" })),
1859
- package_version: z.optional(z.string().register(z.globalRegistry, { description: "The version of the package" })),
1860
- sandbox: z.optional(z.string().register(z.globalRegistry, { description: "The human-readable ID of the sandbox" }))
1855
+ project: z.optional(z.string()),
1856
+ pipeline: z.optional(z.string()),
1857
+ environment: z.optional(z.string()),
1858
+ package: z.optional(z.string()),
1859
+ package_version: z.optional(z.string()),
1860
+ sandbox: z.optional(z.string())
1861
1861
  }))
1862
1862
  });
1863
1863
  const zGetIdentifiersResponse = zIdsView;
1864
1864
  const zGetIntegrationsData = z.object({
1865
1865
  body: z.optional(z.never()),
1866
- path: z.object({ workspace_domain: z.string().register(z.globalRegistry, { description: "The human-readable ID of the workspace" }) }),
1866
+ path: z.object({ workspace_domain: z.string() }),
1867
1867
  query: z.optional(z.never())
1868
1868
  });
1869
1869
  const zAddIntegrationData = z.object({
1870
1870
  body: z.optional(zAddIntegrationRequest),
1871
- path: z.object({ workspace_domain: z.string().register(z.globalRegistry, { description: "The human-readable ID of the workspace" }) }),
1871
+ path: z.object({ workspace_domain: z.string() }),
1872
1872
  query: z.optional(z.never())
1873
1873
  });
1874
1874
  const zDeleteIntegrationData = z.object({
1875
1875
  body: z.optional(z.never()),
1876
1876
  path: z.object({
1877
- workspace_domain: z.string().register(z.globalRegistry, { description: "The human-readable ID of the workspace" }),
1878
- hash_id: z.string().register(z.globalRegistry, { description: "The hash ID of the integration" })
1877
+ workspace_domain: z.string(),
1878
+ hash_id: z.string()
1879
1879
  }),
1880
1880
  query: z.optional(z.never())
1881
1881
  });
1882
1882
  /**
1883
1883
  * Integration deleted successfully
1884
1884
  */
1885
- const zDeleteIntegrationResponse = z.void().register(z.globalRegistry, { description: "Integration deleted successfully" });
1885
+ const zDeleteIntegrationResponse = z.void();
1886
1886
  const zGetIntegrationData = z.object({
1887
1887
  body: z.optional(z.never()),
1888
1888
  path: z.object({
1889
- workspace_domain: z.string().register(z.globalRegistry, { description: "The human-readable ID of the workspace" }),
1890
- hash_id: z.string().register(z.globalRegistry, { description: "The hash ID of the integration" })
1889
+ workspace_domain: z.string(),
1890
+ hash_id: z.string()
1891
1891
  }),
1892
1892
  query: z.optional(z.never())
1893
1893
  });
1894
1894
  const zUpdateIntegrationData = z.object({
1895
1895
  body: z.optional(zUpdateIntegrationRequest),
1896
1896
  path: z.object({
1897
- workspace_domain: z.string().register(z.globalRegistry, { description: "The human-readable ID of the workspace" }),
1898
- hash_id: z.string().register(z.globalRegistry, { description: "The hash ID of the integration" })
1897
+ workspace_domain: z.string(),
1898
+ hash_id: z.string()
1899
1899
  }),
1900
1900
  query: z.optional(z.never())
1901
1901
  });
1902
1902
  const zGetWorkspaceMembersData = z.object({
1903
1903
  body: z.optional(z.never()),
1904
- path: z.object({ workspace_domain: z.string().register(z.globalRegistry, { description: "The human-readable ID of the workspace" }) }),
1904
+ path: z.object({ workspace_domain: z.string() }),
1905
1905
  query: z.optional(z.object({
1906
- page: z.optional(z.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }).register(z.globalRegistry, { description: "The number of the successive pages (results are split into pages of per_page elements each)." })),
1907
- per_page: z.optional(z.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }).register(z.globalRegistry, { description: "Specifies the number of returned elements on the page. The default value is 20." })),
1908
- sort_by: z.optional(z.string().register(z.globalRegistry, { description: "Specifies ordering for workspace members. Can be one of `id` or `name`." })),
1909
- sort_direction: z.optional(z.string().register(z.globalRegistry, { description: "Specifies the direction of the ordering. Can be one of `ASC` or `DESC`" }))
1906
+ page: z.optional(z.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" })),
1907
+ per_page: z.optional(z.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" })),
1908
+ sort_by: z.optional(z.string()),
1909
+ sort_direction: z.optional(z.string())
1910
1910
  }))
1911
1911
  });
1912
1912
  const zAddWorkspaceMemberData = z.object({
1913
1913
  body: z.optional(zAddWorkspaceMemberRequest),
1914
- path: z.object({ workspace_domain: z.string().register(z.globalRegistry, { description: "The human-readable ID of the workspace" }) }),
1914
+ path: z.object({ workspace_domain: z.string() }),
1915
1915
  query: z.optional(z.never())
1916
1916
  });
1917
1917
  const zDeleteWorkspaceMemberData = z.object({
1918
1918
  body: z.optional(z.never()),
1919
1919
  path: z.object({
1920
- workspace_domain: z.string().register(z.globalRegistry, { description: "The human-readable ID of the workspace" }),
1921
- id: z.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }).register(z.globalRegistry, { description: "The ID of the member" })
1920
+ workspace_domain: z.string(),
1921
+ id: z.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" })
1922
1922
  }),
1923
1923
  query: z.optional(z.never())
1924
1924
  });
1925
1925
  /**
1926
1926
  * Workspace member deleted successfully
1927
1927
  */
1928
- const zDeleteWorkspaceMemberResponse = z.void().register(z.globalRegistry, { description: "Workspace member deleted successfully" });
1928
+ const zDeleteWorkspaceMemberResponse = z.void();
1929
1929
  const zGetWorkspaceMemberData = z.object({
1930
1930
  body: z.optional(z.never()),
1931
1931
  path: z.object({
1932
- workspace_domain: z.string().register(z.globalRegistry, { description: "The human-readable ID of the workspace" }),
1933
- id: z.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }).register(z.globalRegistry, { description: "The ID of the member" })
1932
+ workspace_domain: z.string(),
1933
+ id: z.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" })
1934
1934
  }),
1935
1935
  query: z.optional(z.never())
1936
1936
  });
1937
1937
  const zUpdateWorkspaceMemberData = z.object({
1938
1938
  body: z.optional(zUpdateWorkspaceMemberRequest),
1939
1939
  path: z.object({
1940
- workspace_domain: z.string().register(z.globalRegistry, { description: "The human-readable ID of the workspace" }),
1941
- id: z.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }).register(z.globalRegistry, { description: "The ID of the member" })
1940
+ workspace_domain: z.string(),
1941
+ id: z.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" })
1942
1942
  }),
1943
1943
  query: z.optional(z.never())
1944
1944
  });
1945
1945
  const zGetWorkspaceMemberProjectsData = z.object({
1946
1946
  body: z.optional(z.never()),
1947
1947
  path: z.object({
1948
- workspace_domain: z.string().register(z.globalRegistry, { description: "The human-readable ID of the workspace" }),
1949
- user_id: z.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }).register(z.globalRegistry, { description: "The ID of the user" })
1948
+ workspace_domain: z.string(),
1949
+ user_id: z.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" })
1950
1950
  }),
1951
1951
  query: z.optional(z.object({
1952
- page: z.optional(z.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }).register(z.globalRegistry, { description: "The number of the successive pages (results are split into pages of per_page elements each)." })),
1953
- per_page: z.optional(z.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }).register(z.globalRegistry, { description: "Specifies the number of returned elements on the page. The default value is 20." })),
1954
- status: z.optional(z.string().register(z.globalRegistry, { description: "Filters projects by the specified status. Can be one of `ACTIVE` or `CLOSED`" })),
1955
- sort_by: z.optional(z.string().register(z.globalRegistry, { description: "Specifies ordering. Can be one of `name`, `create_date` or `repository_size`" })),
1956
- sort_direction: z.optional(z.string().register(z.globalRegistry, { description: "Specifies the direction of the ordering. Can be one of `ASC` or `DESC`" })),
1957
- all: z.optional(z.string().register(z.globalRegistry, { description: "If set to true, returns all projects accessible to the user" }))
1952
+ page: z.optional(z.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" })),
1953
+ per_page: z.optional(z.int().min(-2147483648, { error: "Invalid value: Expected int32 to be >= -2147483648" }).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" })),
1954
+ status: z.optional(z.string()),
1955
+ sort_by: z.optional(z.string()),
1956
+ sort_direction: z.optional(z.string()),
1957
+ all: z.optional(z.string())
1958
1958
  }))
1959
1959
  });
1960
1960
  const zGetSandboxesData = z.object({
1961
1961
  body: z.optional(z.never()),
1962
- path: z.object({ workspace_domain: z.string().register(z.globalRegistry, { description: "The human-readable ID of the workspace" }) }),
1963
- query: z.object({ project_name: z.string().register(z.globalRegistry, { description: "The human-readable ID of the project to filter sandboxes" }) })
1962
+ path: z.object({ workspace_domain: z.string() }),
1963
+ query: z.object({ project_name: z.string() })
1964
1964
  });
1965
1965
  const zGetSandboxesResponse = zSandboxesView;
1966
1966
  const zAddSandboxData = z.object({
@@ -1969,27 +1969,27 @@ const zAddSandboxData = z.object({
1969
1969
  zCreateFromSnapshotRequestWritable,
1970
1970
  zCreateNewSandboxRequestWritable
1971
1971
  ])),
1972
- path: z.object({ workspace_domain: z.string().register(z.globalRegistry, { description: "The human-readable ID of the workspace" }) }),
1973
- query: z.object({ project_name: z.string().register(z.globalRegistry, { description: "The human-readable ID of the project to filter sandboxes" }) })
1972
+ path: z.object({ workspace_domain: z.string() }),
1973
+ query: z.object({ project_name: z.string() })
1974
1974
  });
1975
1975
  const zAddSandboxResponse = zSandboxResponse;
1976
1976
  const zDeleteSandboxData = z.object({
1977
1977
  body: z.optional(z.never()),
1978
1978
  path: z.object({
1979
- workspace_domain: z.string().register(z.globalRegistry, { description: "The human-readable ID of the workspace" }),
1980
- id: z.string().register(z.globalRegistry, { description: "The ID of the sandbox" })
1979
+ workspace_domain: z.string(),
1980
+ id: z.string()
1981
1981
  }),
1982
1982
  query: z.optional(z.never())
1983
1983
  });
1984
1984
  /**
1985
1985
  * Sandbox deleted successfully
1986
1986
  */
1987
- const zDeleteSandboxResponse = z.void().register(z.globalRegistry, { description: "Sandbox deleted successfully" });
1987
+ const zDeleteSandboxResponse = z.void();
1988
1988
  const zGetSandboxData = z.object({
1989
1989
  body: z.optional(z.never()),
1990
1990
  path: z.object({
1991
- workspace_domain: z.string().register(z.globalRegistry, { description: "The human-readable ID of the workspace" }),
1992
- id: z.string().register(z.globalRegistry, { description: "The ID of the sandbox" })
1991
+ workspace_domain: z.string(),
1992
+ id: z.string()
1993
1993
  }),
1994
1994
  query: z.optional(z.never())
1995
1995
  });
@@ -1997,32 +1997,32 @@ const zGetSandboxResponse = zSandboxResponse;
1997
1997
  const zUpdateSandboxData = z.object({
1998
1998
  body: z.optional(zUpdateSandboxRequestWritable),
1999
1999
  path: z.object({
2000
- workspace_domain: z.string().register(z.globalRegistry, { description: "The human-readable ID of the workspace" }),
2001
- id: z.string().register(z.globalRegistry, { description: "The ID of the sandbox" })
2000
+ workspace_domain: z.string(),
2001
+ id: z.string()
2002
2002
  }),
2003
2003
  query: z.optional(z.never())
2004
2004
  });
2005
2005
  const zGetSandboxAppLogsData = z.object({
2006
2006
  body: z.optional(z.never()),
2007
2007
  path: z.object({
2008
- workspace_domain: z.string().register(z.globalRegistry, { description: "The human-readable ID of the workspace" }),
2009
- sandbox_id: z.string().register(z.globalRegistry, { description: "The ID of the sandbox" })
2008
+ workspace_domain: z.string(),
2009
+ sandbox_id: z.string()
2010
2010
  }),
2011
- query: z.optional(z.object({ cursor: z.optional(z.string().register(z.globalRegistry, { description: "Cursor for pagination" })) }))
2011
+ query: z.optional(z.object({ cursor: z.optional(z.string()) }))
2012
2012
  });
2013
2013
  const zGetSandboxCommandsData = z.object({
2014
2014
  body: z.optional(z.never()),
2015
2015
  path: z.object({
2016
- workspace_domain: z.string().register(z.globalRegistry, { description: "The human-readable ID of the workspace" }),
2017
- sandbox_id: z.string().register(z.globalRegistry, { description: "The ID of the sandbox" })
2016
+ workspace_domain: z.string(),
2017
+ sandbox_id: z.string()
2018
2018
  }),
2019
2019
  query: z.optional(z.never())
2020
2020
  });
2021
2021
  const zExecuteSandboxCommandData = z.object({
2022
2022
  body: z.optional(zExecuteSandboxCommandRequest),
2023
2023
  path: z.object({
2024
- workspace_domain: z.string().register(z.globalRegistry, { description: "The human-readable ID of the workspace" }),
2025
- sandbox_id: z.string().register(z.globalRegistry, { description: "The ID of the sandbox" })
2024
+ workspace_domain: z.string(),
2025
+ sandbox_id: z.string()
2026
2026
  }),
2027
2027
  query: z.optional(z.never())
2028
2028
  });
@@ -2030,9 +2030,9 @@ const zExecuteSandboxCommandResponse = zSandboxCommandView;
2030
2030
  const zGetSandboxCommandData = z.object({
2031
2031
  body: z.optional(z.never()),
2032
2032
  path: z.object({
2033
- workspace_domain: z.string().register(z.globalRegistry, { description: "The human-readable ID of the workspace" }),
2034
- sandbox_id: z.string().register(z.globalRegistry, { description: "The ID of the sandbox" }),
2035
- id: z.string().register(z.globalRegistry, { description: "The ID of the command" })
2033
+ workspace_domain: z.string(),
2034
+ sandbox_id: z.string(),
2035
+ id: z.string()
2036
2036
  }),
2037
2037
  query: z.optional(z.never())
2038
2038
  });
@@ -2040,18 +2040,18 @@ const zGetSandboxCommandResponse = zSandboxCommandView;
2040
2040
  const zGetSandboxCommandLogsData = z.object({
2041
2041
  body: z.optional(z.never()),
2042
2042
  path: z.object({
2043
- workspace_domain: z.string().register(z.globalRegistry, { description: "The human-readable ID of the workspace" }),
2044
- sandbox_id: z.string().register(z.globalRegistry, { description: "The ID of the sandbox" }),
2045
- command_id: z.string().register(z.globalRegistry, { description: "The ID of the command" })
2043
+ workspace_domain: z.string(),
2044
+ sandbox_id: z.string(),
2045
+ command_id: z.string()
2046
2046
  }),
2047
- query: z.optional(z.object({ follow: z.optional(z.boolean().register(z.globalRegistry, { description: "If true, streams logs until the command completes" })) }))
2047
+ query: z.optional(z.object({ follow: z.optional(z.boolean()) }))
2048
2048
  });
2049
2049
  const zTerminateSandboxCommandData = z.object({
2050
2050
  body: z.optional(z.never()),
2051
2051
  path: z.object({
2052
- workspace_domain: z.string().register(z.globalRegistry, { description: "The human-readable ID of the workspace" }),
2053
- sandbox_id: z.string().register(z.globalRegistry, { description: "The ID of the sandbox" }),
2054
- command_id: z.string().register(z.globalRegistry, { description: "The ID of the command" })
2052
+ workspace_domain: z.string(),
2053
+ sandbox_id: z.string(),
2054
+ command_id: z.string()
2055
2055
  }),
2056
2056
  query: z.optional(z.never())
2057
2057
  });
@@ -2059,22 +2059,22 @@ const zTerminateSandboxCommandResponse = zSandboxCommandView;
2059
2059
  const zDeleteSandboxFileData = z.object({
2060
2060
  body: z.optional(z.never()),
2061
2061
  path: z.object({
2062
- workspace_domain: z.string().register(z.globalRegistry, { description: "The human-readable ID of the workspace" }),
2063
- sandbox_id: z.string().register(z.globalRegistry, { description: "The ID of the sandbox" }),
2064
- path: z.string().regex(/.*/).register(z.globalRegistry, { description: "Absolute path to the file or directory to delete" })
2062
+ workspace_domain: z.string(),
2063
+ sandbox_id: z.string(),
2064
+ path: z.string().regex(/.*/)
2065
2065
  }),
2066
2066
  query: z.optional(z.never())
2067
2067
  });
2068
2068
  /**
2069
2069
  * File or directory deleted successfully
2070
2070
  */
2071
- const zDeleteSandboxFileResponse = z.void().register(z.globalRegistry, { description: "File or directory deleted successfully" });
2071
+ const zDeleteSandboxFileResponse = z.void();
2072
2072
  const zGetSandboxContentData = z.object({
2073
2073
  body: z.optional(z.never()),
2074
2074
  path: z.object({
2075
- workspace_domain: z.string().register(z.globalRegistry, { description: "The human-readable ID of the workspace" }),
2076
- sandbox_id: z.string().register(z.globalRegistry, { description: "The ID of the sandbox" }),
2077
- path: z.string().regex(/.*/).register(z.globalRegistry, { description: "Absolute path to the file or directory. Recommended directory is `/buddy`" })
2075
+ workspace_domain: z.string(),
2076
+ sandbox_id: z.string(),
2077
+ path: z.string().regex(/.*/)
2078
2078
  }),
2079
2079
  query: z.optional(z.never())
2080
2080
  });
@@ -2085,9 +2085,9 @@ const zGetSandboxContentResponse = zSandboxContentView;
2085
2085
  const zCreateSandboxDirectoryData = z.object({
2086
2086
  body: z.optional(z.never()),
2087
2087
  path: z.object({
2088
- workspace_domain: z.string().register(z.globalRegistry, { description: "The human-readable ID of the workspace" }),
2089
- sandbox_id: z.string().register(z.globalRegistry, { description: "The ID of the sandbox" }),
2090
- path: z.string().regex(/.*/).register(z.globalRegistry, { description: "Absolute path where the directory should be created" })
2088
+ workspace_domain: z.string(),
2089
+ sandbox_id: z.string(),
2090
+ path: z.string().regex(/.*/)
2091
2091
  }),
2092
2092
  query: z.optional(z.never())
2093
2093
  });
@@ -2096,11 +2096,11 @@ const zCreateSandboxDirectoryData = z.object({
2096
2096
  */
2097
2097
  const zCreateSandboxDirectoryResponse = zSandboxContentItem;
2098
2098
  const zUploadSandboxFileData = z.object({
2099
- body: z.optional(z.string().register(z.globalRegistry, { description: "File to upload" })),
2099
+ body: z.optional(z.string()),
2100
2100
  path: z.object({
2101
- workspace_domain: z.string().register(z.globalRegistry, { description: "The human-readable ID of the workspace" }),
2102
- sandbox_id: z.string().register(z.globalRegistry, { description: "The ID of the sandbox" }),
2103
- path: z.string().regex(/.*/).register(z.globalRegistry, { description: "Absolute path where the file should be uploaded. Recommended directory is `/buddy`" })
2101
+ workspace_domain: z.string(),
2102
+ sandbox_id: z.string(),
2103
+ path: z.string().regex(/.*/)
2104
2104
  }),
2105
2105
  query: z.optional(z.never())
2106
2106
  });
@@ -2111,21 +2111,21 @@ const zUploadSandboxFileResponse = zSandboxContentItem;
2111
2111
  const zDownloadSandboxContentData = z.object({
2112
2112
  body: z.optional(z.never()),
2113
2113
  path: z.object({
2114
- workspace_domain: z.string().register(z.globalRegistry, { description: "The human-readable ID of the workspace" }),
2115
- sandbox_id: z.string().register(z.globalRegistry, { description: "The ID of the sandbox" }),
2116
- path: z.string().regex(/.*/).register(z.globalRegistry, { description: "Absolute path to the file or directory to download" })
2114
+ workspace_domain: z.string(),
2115
+ sandbox_id: z.string(),
2116
+ path: z.string().regex(/.*/)
2117
2117
  }),
2118
2118
  query: z.optional(z.never())
2119
2119
  });
2120
2120
  /**
2121
2121
  * File download
2122
2122
  */
2123
- const zDownloadSandboxContentResponse = z.string().register(z.globalRegistry, { description: "File download" });
2123
+ const zDownloadSandboxContentResponse = z.string();
2124
2124
  const zRestartSandboxData = z.object({
2125
2125
  body: z.optional(z.never()),
2126
2126
  path: z.object({
2127
- workspace_domain: z.string().register(z.globalRegistry, { description: "The human-readable ID of the workspace" }),
2128
- sandbox_id: z.string().register(z.globalRegistry, { description: "The ID of the sandbox" })
2127
+ workspace_domain: z.string(),
2128
+ sandbox_id: z.string()
2129
2129
  }),
2130
2130
  query: z.optional(z.never())
2131
2131
  });
@@ -2133,46 +2133,46 @@ const zRestartSandboxResponse = zSandboxResponse;
2133
2133
  const zGetSandboxSnapshotsData = z.object({
2134
2134
  body: z.optional(z.never()),
2135
2135
  path: z.object({
2136
- workspace_domain: z.string().register(z.globalRegistry, { description: "The human-readable ID of the workspace" }),
2137
- sandbox_id: z.string().register(z.globalRegistry, { description: "The ID of the sandbox" })
2136
+ workspace_domain: z.string(),
2137
+ sandbox_id: z.string()
2138
2138
  }),
2139
2139
  query: z.optional(z.never())
2140
2140
  });
2141
2141
  const zAddSandboxSnapshotData = z.object({
2142
2142
  body: z.optional(zAddSnapshotRequest),
2143
2143
  path: z.object({
2144
- workspace_domain: z.string().register(z.globalRegistry, { description: "The human-readable ID of the workspace" }),
2145
- sandbox_id: z.string().register(z.globalRegistry, { description: "The ID of the sandbox" })
2144
+ workspace_domain: z.string(),
2145
+ sandbox_id: z.string()
2146
2146
  }),
2147
2147
  query: z.optional(z.never())
2148
2148
  });
2149
2149
  const zDeleteSandboxSnapshotData = z.object({
2150
2150
  body: z.optional(z.never()),
2151
2151
  path: z.object({
2152
- workspace_domain: z.string().register(z.globalRegistry, { description: "The human-readable ID of the workspace" }),
2153
- sandbox_id: z.string().register(z.globalRegistry, { description: "The ID of the sandbox" }),
2154
- id: z.string().register(z.globalRegistry, { description: "The ID of the snapshot" })
2152
+ workspace_domain: z.string(),
2153
+ sandbox_id: z.string(),
2154
+ id: z.string()
2155
2155
  }),
2156
2156
  query: z.optional(z.never())
2157
2157
  });
2158
2158
  /**
2159
2159
  * Sandbox snapshot deleted successfully
2160
2160
  */
2161
- const zDeleteSandboxSnapshotResponse = z.void().register(z.globalRegistry, { description: "Sandbox snapshot deleted successfully" });
2161
+ const zDeleteSandboxSnapshotResponse = z.void();
2162
2162
  const zGetSandboxSnapshotData = z.object({
2163
2163
  body: z.optional(z.never()),
2164
2164
  path: z.object({
2165
- workspace_domain: z.string().register(z.globalRegistry, { description: "The human-readable ID of the workspace" }),
2166
- sandbox_id: z.string().register(z.globalRegistry, { description: "The ID of the sandbox" }),
2167
- id: z.string().register(z.globalRegistry, { description: "The ID of the snapshot" })
2165
+ workspace_domain: z.string(),
2166
+ sandbox_id: z.string(),
2167
+ id: z.string()
2168
2168
  }),
2169
2169
  query: z.optional(z.never())
2170
2170
  });
2171
2171
  const zStartSandboxData = z.object({
2172
2172
  body: z.optional(z.never()),
2173
2173
  path: z.object({
2174
- workspace_domain: z.string().register(z.globalRegistry, { description: "The human-readable ID of the workspace" }),
2175
- sandbox_id: z.string().register(z.globalRegistry, { description: "The ID of the sandbox" })
2174
+ workspace_domain: z.string(),
2175
+ sandbox_id: z.string()
2176
2176
  }),
2177
2177
  query: z.optional(z.never())
2178
2178
  });
@@ -2180,8 +2180,8 @@ const zStartSandboxResponse = zSandboxResponse;
2180
2180
  const zStopSandboxData = z.object({
2181
2181
  body: z.optional(z.never()),
2182
2182
  path: z.object({
2183
- workspace_domain: z.string().register(z.globalRegistry, { description: "The human-readable ID of the workspace" }),
2184
- sandbox_id: z.string().register(z.globalRegistry, { description: "The ID of the sandbox" })
2183
+ workspace_domain: z.string(),
2184
+ sandbox_id: z.string()
2185
2185
  }),
2186
2186
  query: z.optional(z.never())
2187
2187
  });
@@ -2189,56 +2189,56 @@ const zStopSandboxResponse = zSandboxResponse;
2189
2189
  const zGetSandboxYamlData = z.object({
2190
2190
  body: z.optional(z.never()),
2191
2191
  path: z.object({
2192
- workspace_domain: z.string().register(z.globalRegistry, { description: "The human-readable ID of the workspace" }),
2193
- sandbox_id: z.string().register(z.globalRegistry, { description: "The ID of the sandbox" })
2192
+ workspace_domain: z.string(),
2193
+ sandbox_id: z.string()
2194
2194
  }),
2195
2195
  query: z.optional(z.never())
2196
2196
  });
2197
2197
  const zUpdateSandboxByYamlData = z.object({
2198
2198
  body: z.optional(zSandboxYamlViewWritable),
2199
2199
  path: z.object({
2200
- workspace_domain: z.string().register(z.globalRegistry, { description: "The human-readable ID of the workspace" }),
2201
- sandbox_id: z.string().register(z.globalRegistry, { description: "The ID of the sandbox" })
2200
+ workspace_domain: z.string(),
2201
+ sandbox_id: z.string()
2202
2202
  }),
2203
2203
  query: z.optional(z.never())
2204
2204
  });
2205
2205
  const zGetProjectSnapshotsData = z.object({
2206
2206
  body: z.optional(z.never()),
2207
- path: z.object({ workspace_domain: z.string().register(z.globalRegistry, { description: "The human-readable ID of the workspace" }) }),
2208
- query: z.object({ project_name: z.string().register(z.globalRegistry, { description: "The human-readable ID of the project to filter sandboxes" }) })
2207
+ path: z.object({ workspace_domain: z.string() }),
2208
+ query: z.object({ project_name: z.string() })
2209
2209
  });
2210
2210
  const zDeleteSnapshotData = z.object({
2211
2211
  body: z.optional(z.never()),
2212
2212
  path: z.object({
2213
- workspace_domain: z.string().register(z.globalRegistry, { description: "The human-readable ID of the workspace" }),
2214
- id: z.string().register(z.globalRegistry, { description: "The ID of the snapshot" })
2213
+ workspace_domain: z.string(),
2214
+ id: z.string()
2215
2215
  }),
2216
2216
  query: z.optional(z.never())
2217
2217
  });
2218
2218
  /**
2219
2219
  * Sandbox snapshot deleted successfully
2220
2220
  */
2221
- const zDeleteSnapshotResponse = z.void().register(z.globalRegistry, { description: "Sandbox snapshot deleted successfully" });
2221
+ const zDeleteSnapshotResponse = z.void();
2222
2222
  const zAddSandboxByYamlData = z.object({
2223
2223
  body: z.optional(zSandboxYamlViewWritable),
2224
- path: z.object({ workspace_domain: z.string().register(z.globalRegistry, { description: "The human-readable ID of the workspace" }) }),
2225
- query: z.object({ project_name: z.string().register(z.globalRegistry, { description: "The human-readable ID of the project to filter sandboxes" }) })
2224
+ path: z.object({ workspace_domain: z.string() }),
2225
+ query: z.object({ project_name: z.string() })
2226
2226
  });
2227
2227
  const zGetSsoData = z.object({
2228
2228
  body: z.optional(z.never()),
2229
- path: z.object({ workspace_domain: z.string().register(z.globalRegistry, { description: "The human-readable ID of the workspace" }) }),
2229
+ path: z.object({ workspace_domain: z.string() }),
2230
2230
  query: z.optional(z.never())
2231
2231
  });
2232
2232
  const zUpdateSsoData = z.object({
2233
2233
  body: z.optional(zUpdateSsoRequest),
2234
- path: z.object({ workspace_domain: z.string().register(z.globalRegistry, { description: "The human-readable ID of the workspace" }) }),
2234
+ path: z.object({ workspace_domain: z.string() }),
2235
2235
  query: z.optional(z.never())
2236
2236
  });
2237
2237
 
2238
2238
  //#endregion
2239
2239
  //#region package.json
2240
2240
  var name = "@buddy-works/sandbox-sdk";
2241
- var version = "0.1.3";
2241
+ var version = "0.1.4-rc.0";
2242
2242
 
2243
2243
  //#endregion
2244
2244
  //#region src/utils/environment.ts
@@ -3242,7 +3242,7 @@ var FileSystem = class FileSystem {
3242
3242
  path: this.#normalizePath(remotePath)
3243
3243
  } });
3244
3244
  const buffer = Buffer.from(data);
3245
- if (localPath) await fs.promises.writeFile(localPath, buffer);
3245
+ if (localPath) await writeFile(localPath, buffer);
3246
3246
  return buffer;
3247
3247
  });
3248
3248
  }
@@ -3257,7 +3257,7 @@ var FileSystem = class FileSystem {
3257
3257
  let blob;
3258
3258
  if (Buffer.isBuffer(source)) blob = new Blob([source]);
3259
3259
  else {
3260
- const fileContent = await fs.promises.readFile(source);
3260
+ const fileContent = await readFile(source);
3261
3261
  blob = new Blob([fileContent]);
3262
3262
  }
3263
3263
  await this.#client.uploadSandboxFile({