@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.cjs +68 -45
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +68 -45
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -4847,12 +4847,80 @@ const CredentialScopeLevelSchema = _enum([
|
|
|
4847
4847
|
CredentialAuthKindSchema.options;
|
|
4848
4848
|
CredentialScopeTypeSchema.options;
|
|
4849
4849
|
CredentialScopeLevelSchema.options;
|
|
4850
|
+
const OrganizationSlugErrorCodeSchema = _enum([
|
|
4851
|
+
"slug_taken",
|
|
4852
|
+
"slug_reserved",
|
|
4853
|
+
"slug_invalid"
|
|
4854
|
+
]);
|
|
4855
|
+
const SlugAvailabilityReasonSchema = _enum([
|
|
4856
|
+
"taken",
|
|
4857
|
+
"reserved",
|
|
4858
|
+
"invalid"
|
|
4859
|
+
]);
|
|
4860
|
+
object({
|
|
4861
|
+
slug: string(),
|
|
4862
|
+
available: boolean(),
|
|
4863
|
+
reason: SlugAvailabilityReasonSchema.optional(),
|
|
4864
|
+
suggestion: OrganizationSlugSchema.optional()
|
|
4865
|
+
});
|
|
4866
|
+
object({
|
|
4867
|
+
slug: string().trim().min(1),
|
|
4868
|
+
excludeOrganizationId: string().min(1).optional()
|
|
4869
|
+
});
|
|
4870
|
+
const ProjectStatusSchema = _enum([
|
|
4871
|
+
"inactive",
|
|
4872
|
+
"starting",
|
|
4873
|
+
"active",
|
|
4874
|
+
"failed"
|
|
4875
|
+
]);
|
|
4876
|
+
const OrganizationUserRoleSchema = _enum(["admin"]);
|
|
4877
|
+
const isoDateTime$1 = string().datetime();
|
|
4878
|
+
const OrganizationSchema = object({
|
|
4879
|
+
id: string(),
|
|
4880
|
+
name: string(),
|
|
4881
|
+
slug: OrganizationSlugSchema,
|
|
4882
|
+
createdAt: isoDateTime$1,
|
|
4883
|
+
updatedAt: isoDateTime$1
|
|
4884
|
+
});
|
|
4885
|
+
const ProjectSchema = object({
|
|
4886
|
+
id: string(),
|
|
4887
|
+
organizationId: string(),
|
|
4888
|
+
name: string(),
|
|
4889
|
+
status: ProjectStatusSchema,
|
|
4890
|
+
baseUrl: string().nullable(),
|
|
4891
|
+
runtimeId: string().nullable(),
|
|
4892
|
+
lastError: string().nullable(),
|
|
4893
|
+
createdAt: isoDateTime$1,
|
|
4894
|
+
updatedAt: isoDateTime$1
|
|
4895
|
+
});
|
|
4896
|
+
const UserOrganizationSchema = object({
|
|
4897
|
+
organization: OrganizationSchema,
|
|
4898
|
+
role: OrganizationUserRoleSchema
|
|
4899
|
+
});
|
|
4900
|
+
object({ organization: UserOrganizationSchema.nullable() });
|
|
4901
|
+
object({ organizations: array(UserOrganizationSchema) });
|
|
4902
|
+
object({ organizationId: string().min(1) });
|
|
4903
|
+
object({
|
|
4904
|
+
name: string().trim().min(1),
|
|
4905
|
+
/** Format-only at the wire boundary; reserved-name checks run in platform-database. */
|
|
4906
|
+
slug: OrganizationSlugSchema.optional()
|
|
4907
|
+
});
|
|
4908
|
+
object({ slug: ClaimableOrganizationSlugSchema });
|
|
4909
|
+
object({ organization: UserOrganizationSchema });
|
|
4910
|
+
object({ projects: array(ProjectSchema) });
|
|
4911
|
+
object({ name: string().trim().min(1) });
|
|
4912
|
+
object({ project: ProjectSchema });
|
|
4913
|
+
object({ project: ProjectSchema });
|
|
4914
|
+
object({ reachable: boolean() });
|
|
4850
4915
|
const ValidationErrorDetailSchema = object({
|
|
4851
4916
|
path: string(),
|
|
4852
4917
|
message: string()
|
|
4853
4918
|
});
|
|
4919
|
+
/** Machine-readable codes returned in standard API error bodies. */
|
|
4920
|
+
const ErrorResponseCodeSchema = OrganizationSlugErrorCodeSchema.or(_enum(["needs_org_selection"]));
|
|
4854
4921
|
object({
|
|
4855
4922
|
error: string(),
|
|
4923
|
+
code: ErrorResponseCodeSchema.optional(),
|
|
4856
4924
|
message: string().optional(),
|
|
4857
4925
|
details: array(ValidationErrorDetailSchema).optional()
|
|
4858
4926
|
});
|
|
@@ -5227,51 +5295,6 @@ object({ triggers: array(object({
|
|
|
5227
5295
|
webhookUrl: string().url().optional(),
|
|
5228
5296
|
workflowKey: string()
|
|
5229
5297
|
})) });
|
|
5230
|
-
const ProjectStatusSchema = _enum([
|
|
5231
|
-
"inactive",
|
|
5232
|
-
"starting",
|
|
5233
|
-
"active",
|
|
5234
|
-
"failed"
|
|
5235
|
-
]);
|
|
5236
|
-
const OrganizationUserRoleSchema = _enum(["admin"]);
|
|
5237
|
-
const isoDateTime$1 = string().datetime();
|
|
5238
|
-
const OrganizationSchema = object({
|
|
5239
|
-
id: string(),
|
|
5240
|
-
name: string(),
|
|
5241
|
-
slug: OrganizationSlugSchema,
|
|
5242
|
-
createdAt: isoDateTime$1,
|
|
5243
|
-
updatedAt: isoDateTime$1
|
|
5244
|
-
});
|
|
5245
|
-
const ProjectSchema = object({
|
|
5246
|
-
id: string(),
|
|
5247
|
-
organizationId: string(),
|
|
5248
|
-
name: string(),
|
|
5249
|
-
status: ProjectStatusSchema,
|
|
5250
|
-
baseUrl: string().nullable(),
|
|
5251
|
-
runtimeId: string().nullable(),
|
|
5252
|
-
lastError: string().nullable(),
|
|
5253
|
-
createdAt: isoDateTime$1,
|
|
5254
|
-
updatedAt: isoDateTime$1
|
|
5255
|
-
});
|
|
5256
|
-
const UserOrganizationSchema = object({
|
|
5257
|
-
organization: OrganizationSchema,
|
|
5258
|
-
role: OrganizationUserRoleSchema
|
|
5259
|
-
});
|
|
5260
|
-
object({ organization: UserOrganizationSchema.nullable() });
|
|
5261
|
-
object({ organizations: array(UserOrganizationSchema) });
|
|
5262
|
-
object({ organizationId: string().min(1) });
|
|
5263
|
-
object({
|
|
5264
|
-
name: string().trim().min(1),
|
|
5265
|
-
/** Format-only at the wire boundary; reserved-name checks run in platform-database. */
|
|
5266
|
-
slug: OrganizationSlugSchema.optional()
|
|
5267
|
-
});
|
|
5268
|
-
object({ slug: ClaimableOrganizationSlugSchema });
|
|
5269
|
-
object({ organization: UserOrganizationSchema });
|
|
5270
|
-
object({ projects: array(ProjectSchema) });
|
|
5271
|
-
object({ name: string().trim().min(1) });
|
|
5272
|
-
object({ project: ProjectSchema });
|
|
5273
|
-
object({ project: ProjectSchema });
|
|
5274
|
-
object({ reachable: boolean() });
|
|
5275
5298
|
const ProjectArtifactStatusSchema = _enum(["pending", "ready"]);
|
|
5276
5299
|
const isoDateTime = string().datetime();
|
|
5277
5300
|
const ProjectArtifactSchema = object({
|