@keystrokehq/hosting 0.0.52 → 0.0.53

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
@@ -4823,12 +4823,80 @@ const CredentialScopeLevelSchema = _enum([
4823
4823
  CredentialAuthKindSchema.options;
4824
4824
  CredentialScopeTypeSchema.options;
4825
4825
  CredentialScopeLevelSchema.options;
4826
+ const OrganizationSlugErrorCodeSchema = _enum([
4827
+ "slug_taken",
4828
+ "slug_reserved",
4829
+ "slug_invalid"
4830
+ ]);
4831
+ const SlugAvailabilityReasonSchema = _enum([
4832
+ "taken",
4833
+ "reserved",
4834
+ "invalid"
4835
+ ]);
4836
+ object({
4837
+ slug: string(),
4838
+ available: boolean(),
4839
+ reason: SlugAvailabilityReasonSchema.optional(),
4840
+ suggestion: OrganizationSlugSchema.optional()
4841
+ });
4842
+ object({
4843
+ slug: string().trim().min(1),
4844
+ excludeOrganizationId: string().min(1).optional()
4845
+ });
4846
+ const ProjectStatusSchema = _enum([
4847
+ "inactive",
4848
+ "starting",
4849
+ "active",
4850
+ "failed"
4851
+ ]);
4852
+ const OrganizationUserRoleSchema = _enum(["admin"]);
4853
+ const isoDateTime$1 = string().datetime();
4854
+ const OrganizationSchema = object({
4855
+ id: string(),
4856
+ name: string(),
4857
+ slug: OrganizationSlugSchema,
4858
+ createdAt: isoDateTime$1,
4859
+ updatedAt: isoDateTime$1
4860
+ });
4861
+ const ProjectSchema = object({
4862
+ id: string(),
4863
+ organizationId: string(),
4864
+ name: string(),
4865
+ status: ProjectStatusSchema,
4866
+ baseUrl: string().nullable(),
4867
+ runtimeId: string().nullable(),
4868
+ lastError: string().nullable(),
4869
+ createdAt: isoDateTime$1,
4870
+ updatedAt: isoDateTime$1
4871
+ });
4872
+ const UserOrganizationSchema = object({
4873
+ organization: OrganizationSchema,
4874
+ role: OrganizationUserRoleSchema
4875
+ });
4876
+ object({ organization: UserOrganizationSchema.nullable() });
4877
+ object({ organizations: array(UserOrganizationSchema) });
4878
+ object({ organizationId: string().min(1) });
4879
+ object({
4880
+ name: string().trim().min(1),
4881
+ /** Format-only at the wire boundary; reserved-name checks run in platform-database. */
4882
+ slug: OrganizationSlugSchema.optional()
4883
+ });
4884
+ object({ slug: ClaimableOrganizationSlugSchema });
4885
+ object({ organization: UserOrganizationSchema });
4886
+ object({ projects: array(ProjectSchema) });
4887
+ object({ name: string().trim().min(1) });
4888
+ object({ project: ProjectSchema });
4889
+ object({ project: ProjectSchema });
4890
+ object({ reachable: boolean() });
4826
4891
  const ValidationErrorDetailSchema = object({
4827
4892
  path: string(),
4828
4893
  message: string()
4829
4894
  });
4895
+ /** Machine-readable codes returned in standard API error bodies. */
4896
+ const ErrorResponseCodeSchema = OrganizationSlugErrorCodeSchema.or(_enum(["needs_org_selection"]));
4830
4897
  object({
4831
4898
  error: string(),
4899
+ code: ErrorResponseCodeSchema.optional(),
4832
4900
  message: string().optional(),
4833
4901
  details: array(ValidationErrorDetailSchema).optional()
4834
4902
  });
@@ -5203,51 +5271,6 @@ object({ triggers: array(object({
5203
5271
  webhookUrl: string().url().optional(),
5204
5272
  workflowKey: string()
5205
5273
  })) });
5206
- const ProjectStatusSchema = _enum([
5207
- "inactive",
5208
- "starting",
5209
- "active",
5210
- "failed"
5211
- ]);
5212
- const OrganizationUserRoleSchema = _enum(["admin"]);
5213
- const isoDateTime$1 = string().datetime();
5214
- const OrganizationSchema = object({
5215
- id: string(),
5216
- name: string(),
5217
- slug: OrganizationSlugSchema,
5218
- createdAt: isoDateTime$1,
5219
- updatedAt: isoDateTime$1
5220
- });
5221
- const ProjectSchema = object({
5222
- id: string(),
5223
- organizationId: string(),
5224
- name: string(),
5225
- status: ProjectStatusSchema,
5226
- baseUrl: string().nullable(),
5227
- runtimeId: string().nullable(),
5228
- lastError: string().nullable(),
5229
- createdAt: isoDateTime$1,
5230
- updatedAt: isoDateTime$1
5231
- });
5232
- const UserOrganizationSchema = object({
5233
- organization: OrganizationSchema,
5234
- role: OrganizationUserRoleSchema
5235
- });
5236
- object({ organization: UserOrganizationSchema.nullable() });
5237
- object({ organizations: array(UserOrganizationSchema) });
5238
- object({ organizationId: string().min(1) });
5239
- object({
5240
- name: string().trim().min(1),
5241
- /** Format-only at the wire boundary; reserved-name checks run in platform-database. */
5242
- slug: OrganizationSlugSchema.optional()
5243
- });
5244
- object({ slug: ClaimableOrganizationSlugSchema });
5245
- object({ organization: UserOrganizationSchema });
5246
- object({ projects: array(ProjectSchema) });
5247
- object({ name: string().trim().min(1) });
5248
- object({ project: ProjectSchema });
5249
- object({ project: ProjectSchema });
5250
- object({ reachable: boolean() });
5251
5274
  const ProjectArtifactStatusSchema = _enum(["pending", "ready"]);
5252
5275
  const isoDateTime = string().datetime();
5253
5276
  const ProjectArtifactSchema = object({