Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
84 changes: 42 additions & 42 deletions packages/api/src/generated/contracts.ts
Original file line numberDiff line numberDiff line change
Expand Up@@ -115,7 +115,7 @@ export const ApiKeyResponse = Schema.Struct({
description: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
hash: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
secret_jwt_template: Schema.optionalKey(
Schema.Union([Schema.Record(Schema.String, Schema.Unknown), Schema.Null]),
Schema.Union([Schema.Record(Schema.String, Schema.Json), Schema.Null]),
),
inserted_at: Schema.optionalKey(
Schema.Union([Schema.String.annotate({ format: "date-time" }), Schema.Null]),
Expand DownExpand Up@@ -172,8 +172,8 @@ export const ThirdPartyAuth = Schema.Struct({
type: Schema.String,
oidc_issuer_url: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
jwks_url: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
custom_jwks: Schema.optionalKey(Schema.Union([Schema.Unknown, Schema.Null])),
resolved_jwks: Schema.optionalKey(Schema.Union([Schema.Unknown, Schema.Null])),
custom_jwks: Schema.optionalKey(Schema.Union([Schema.Json, Schema.Null])),
resolved_jwks: Schema.optionalKey(Schema.Union([Schema.Json, Schema.Null])),
inserted_at: Schema.String,
updated_at: Schema.String,
resolved_at: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
Expand DownExpand Up@@ -278,8 +278,8 @@ export const V1ActivateCustomHostnameOutput = Schema.Struct({
custom_hostname: Schema.optionalKey(Schema.String),
data: Schema.Struct({
success: Schema.Boolean,
errors: Schema.Array(Schema.Unknown.annotate({ description: "Any JSON-serializable value" })),
messages: Schema.Array(Schema.Unknown.annotate({ description: "Any JSON-serializable value" })),
errors: Schema.Array(Schema.Json.annotate({ description: "Any JSON-serializable value" })),
messages: Schema.Array(Schema.Json.annotate({ description: "Any JSON-serializable value" })),
result: Schema.Struct({
id: Schema.String,
hostname: Schema.String,
Expand DownExpand Up@@ -901,7 +901,7 @@ export const V1CreateLegacySigningKeyOutput = Schema.Struct({
),
algorithm: Schema.Literals(["EdDSA", "ES256", "RS256", "HS256"]),
status: Schema.Literals(["in_use", "previously_used", "revoked", "standby"]),
public_jwk: Schema.optionalKey(Schema.Union([Schema.Unknown, Schema.Null])),
public_jwk: Schema.optionalKey(Schema.Union([Schema.Json, Schema.Null])),
created_at: Schema.String.annotate({ format: "date-time" }),
updated_at: Schema.String.annotate({ format: "date-time" }),
});
Expand DownExpand Up@@ -929,7 +929,7 @@ export const V1CreateProjectApiKeyInput = Schema.Struct({
.check(Schema.isPattern(new RegExp("^[a-z_][a-z0-9_]+$"))),
description: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
secret_jwt_template: Schema.optionalKey(
Schema.Union([Schema.Record(Schema.String, Schema.Unknown), Schema.Null]),
Schema.Union([Schema.Record(Schema.String, Schema.Json), Schema.Null]),
),
});
export const V1CreateProjectApiKeyOutput = Schema.Struct({
Expand All@@ -946,7 +946,7 @@ export const V1CreateProjectApiKeyOutput = Schema.Struct({
description: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
hash: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
secret_jwt_template: Schema.optionalKey(
Schema.Union([Schema.Record(Schema.String, Schema.Unknown), Schema.Null]),
Schema.Union([Schema.Record(Schema.String, Schema.Json), Schema.Null]),
),
inserted_at: Schema.optionalKey(
Schema.Union([Schema.String.annotate({ format: "date-time" }), Schema.Null]),
Expand DownExpand Up@@ -1089,7 +1089,7 @@ export const V1CreateProjectSigningKeyOutput = Schema.Struct({
),
algorithm: Schema.Literals(["EdDSA", "ES256", "RS256", "HS256"]),
status: Schema.Literals(["in_use", "previously_used", "revoked", "standby"]),
public_jwk: Schema.optionalKey(Schema.Union([Schema.Unknown, Schema.Null])),
public_jwk: Schema.optionalKey(Schema.Union([Schema.Json, Schema.Null])),
created_at: Schema.String.annotate({ format: "date-time" }),
updated_at: Schema.String.annotate({ format: "date-time" }),
});
Expand All@@ -1099,7 +1099,7 @@ export const V1CreateProjectTpaIntegrationInput = Schema.Struct({
.check(Schema.isPattern(new RegExp("^[a-z]+$"))),
oidc_issuer_url: Schema.optionalKey(Schema.String),
jwks_url: Schema.optionalKey(Schema.String),
custom_jwks: Schema.optionalKey(Schema.Unknown),
custom_jwks: Schema.optionalKey(Schema.Json),
});
export const V1CreateProjectTpaIntegrationOutput = Schema.Struct({
id: Schema.String.annotate({ format: "uuid" }).check(
Expand All@@ -1110,8 +1110,8 @@ export const V1CreateProjectTpaIntegrationOutput = Schema.Struct({
type: Schema.String,
oidc_issuer_url: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
jwks_url: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
custom_jwks: Schema.optionalKey(Schema.Union([Schema.Unknown, Schema.Null])),
resolved_jwks: Schema.optionalKey(Schema.Union([Schema.Unknown, Schema.Null])),
custom_jwks: Schema.optionalKey(Schema.Union([Schema.Json, Schema.Null])),
resolved_jwks: Schema.optionalKey(Schema.Union([Schema.Json, Schema.Null])),
inserted_at: Schema.String,
updated_at: Schema.String,
resolved_at: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
Expand DownExpand Up@@ -1307,7 +1307,7 @@ export const V1DeleteProjectApiKeyOutput = Schema.Struct({
description: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
hash: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
secret_jwt_template: Schema.optionalKey(
Schema.Union([Schema.Record(Schema.String, Schema.Unknown), Schema.Null]),
Schema.Union([Schema.Record(Schema.String, Schema.Json), Schema.Null]),
),
inserted_at: Schema.optionalKey(
Schema.Union([Schema.String.annotate({ format: "date-time" }), Schema.Null]),
Expand DownExpand Up@@ -1340,8 +1340,8 @@ export const V1DeleteProjectTpaIntegrationOutput = Schema.Struct({
type: Schema.String,
oidc_issuer_url: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
jwks_url: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
custom_jwks: Schema.optionalKey(Schema.Union([Schema.Unknown, Schema.Null])),
resolved_jwks: Schema.optionalKey(Schema.Union([Schema.Unknown, Schema.Null])),
custom_jwks: Schema.optionalKey(Schema.Union([Schema.Json, Schema.Null])),
resolved_jwks: Schema.optionalKey(Schema.Union([Schema.Json, Schema.Null])),
inserted_at: Schema.String,
updated_at: Schema.String,
resolved_at: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
Expand DownExpand Up@@ -1741,7 +1741,7 @@ export const V1GetActionRunOutput = Schema.Struct({
updated_at: Schema.String,
}),
),
git_config: Schema.optionalKey(Schema.Union([Schema.Unknown, Schema.Null])),
git_config: Schema.optionalKey(Schema.Union([Schema.Json, Schema.Null])),
workdir: Schema.Union([Schema.String, Schema.Null]),
check_run_id: Schema.Union([Schema.Number.check(Schema.isFinite()), Schema.Null]),
created_at: Schema.String,
Expand DownExpand Up@@ -2310,11 +2310,11 @@ export const V1GetDatabaseMetadataOutput = Schema.Struct({
name: Schema.String,
schemas: Schema.Array(
Schema.StructWithRest(Schema.Struct({ name: Schema.String }), [
Schema.Record(Schema.String, Schema.Unknown),
Schema.Record(Schema.String, Schema.Json),
]),
),
}),
[Schema.Record(Schema.String, Schema.Unknown)],
[Schema.Record(Schema.String, Schema.Json)],
),
),
});
Expand DownExpand Up@@ -2356,8 +2356,8 @@ export const V1GetHostnameConfigOutput = Schema.Struct({
custom_hostname: Schema.optionalKey(Schema.String),
data: Schema.Struct({
success: Schema.Boolean,
errors: Schema.Array(Schema.Unknown.annotate({ description: "Any JSON-serializable value" })),
messages: Schema.Array(Schema.Unknown.annotate({ description: "Any JSON-serializable value" })),
errors: Schema.Array(Schema.Json.annotate({ description: "Any JSON-serializable value" })),
messages: Schema.Array(Schema.Json.annotate({ description: "Any JSON-serializable value" })),
result: Schema.Struct({
id: Schema.String,
hostname: Schema.String,
Expand DownExpand Up@@ -2439,7 +2439,7 @@ export const V1GetLegacySigningKeyOutput = Schema.Struct({
),
algorithm: Schema.Literals(["EdDSA", "ES256", "RS256", "HS256"]),
status: Schema.Literals(["in_use", "previously_used", "revoked", "standby"]),
public_jwk: Schema.optionalKey(Schema.Union([Schema.Unknown, Schema.Null])),
public_jwk: Schema.optionalKey(Schema.Union([Schema.Json, Schema.Null])),
created_at: Schema.String.annotate({ format: "date-time" }),
updated_at: Schema.String.annotate({ format: "date-time" }),
});
Expand DownExpand Up@@ -2981,7 +2981,7 @@ export const V1GetProjectApiKeyOutput = Schema.Struct({
description: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
hash: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
secret_jwt_template: Schema.optionalKey(
Schema.Union([Schema.Record(Schema.String, Schema.Unknown), Schema.Null]),
Schema.Union([Schema.Record(Schema.String, Schema.Json), Schema.Null]),
),
inserted_at: Schema.optionalKey(
Schema.Union([Schema.String.annotate({ format: "date-time" }), Schema.Null]),
Expand DownExpand Up@@ -3045,7 +3045,7 @@ export const V1GetProjectFunctionCombinedStatsInput = Schema.Struct({
function_id: Schema.String,
});
export const V1GetProjectFunctionCombinedStatsOutput = Schema.Struct({
result: Schema.optionalKey(Schema.Array(Schema.Unknown)),
result: Schema.optionalKey(Schema.Array(Schema.Json)),
error: Schema.optionalKey(
Schema.Union(
[
Expand DownExpand Up@@ -3084,7 +3084,7 @@ export const V1GetProjectLogsInput = Schema.Struct({
iso_timestamp_end: Schema.optionalKey(Schema.String.annotate({ format: "date-time" })),
});
export const V1GetProjectLogsOutput = Schema.Struct({
result: Schema.optionalKey(Schema.Array(Schema.Unknown)),
result: Schema.optionalKey(Schema.Array(Schema.Json)),
error: Schema.optionalKey(
Schema.Union(
[
Expand DownExpand Up@@ -3117,7 +3117,7 @@ export const V1GetProjectLogsAllInput = Schema.Struct({
iso_timestamp_end: Schema.optionalKey(Schema.String.annotate({ format: "date-time" })),
});
export const V1GetProjectLogsAllOutput = Schema.Struct({
result: Schema.optionalKey(Schema.Array(Schema.Unknown)),
result: Schema.optionalKey(Schema.Array(Schema.Json)),
error: Schema.optionalKey(
Schema.Union(
[
Expand DownExpand Up@@ -3175,7 +3175,7 @@ export const V1GetProjectSigningKeyOutput = Schema.Struct({
),
algorithm: Schema.Literals(["EdDSA", "ES256", "RS256", "HS256"]),
status: Schema.Literals(["in_use", "previously_used", "revoked", "standby"]),
public_jwk: Schema.optionalKey(Schema.Union([Schema.Unknown, Schema.Null])),
public_jwk: Schema.optionalKey(Schema.Union([Schema.Json, Schema.Null])),
created_at: Schema.String.annotate({ format: "date-time" }),
updated_at: Schema.String.annotate({ format: "date-time" }),
});
Expand All@@ -3196,7 +3196,7 @@ export const V1GetProjectSigningKeysOutput = Schema.Struct({
),
algorithm: Schema.Literals(["EdDSA", "ES256", "RS256", "HS256"]),
status: Schema.Literals(["in_use", "previously_used", "revoked", "standby"]),
public_jwk: Schema.optionalKey(Schema.Union([Schema.Unknown, Schema.Null])),
public_jwk: Schema.optionalKey(Schema.Union([Schema.Json, Schema.Null])),
created_at: Schema.String.annotate({ format: "date-time" }),
updated_at: Schema.String.annotate({ format: "date-time" }),
}),
Expand All@@ -3221,8 +3221,8 @@ export const V1GetProjectTpaIntegrationOutput = Schema.Struct({
type: Schema.String,
oidc_issuer_url: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
jwks_url: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
custom_jwks: Schema.optionalKey(Schema.Union([Schema.Unknown, Schema.Null])),
resolved_jwks: Schema.optionalKey(Schema.Union([Schema.Unknown, Schema.Null])),
custom_jwks: Schema.optionalKey(Schema.Union([Schema.Json, Schema.Null])),
resolved_jwks: Schema.optionalKey(Schema.Union([Schema.Json, Schema.Null])),
inserted_at: Schema.String,
updated_at: Schema.String,
resolved_at: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
Expand DownExpand Up@@ -3618,7 +3618,7 @@ export const V1ListActionRunsOutput = Schema.Array(
updated_at: Schema.String,
}),
),
git_config: Schema.optionalKey(Schema.Union([Schema.Unknown, Schema.Null])),
git_config: Schema.optionalKey(Schema.Union([Schema.Json, Schema.Null])),
workdir: Schema.Union([Schema.String, Schema.Null]),
check_run_id: Schema.Union([Schema.Number.check(Schema.isFinite()), Schema.Null]),
created_at: Schema.String,
Expand DownExpand Up@@ -3961,7 +3961,7 @@ export const V1ListProjectAddonsOutput = Schema.Struct({
amount: Schema.Number.check(Schema.isFinite()),
}),
meta: Schema.optionalKey(
Schema.Unknown.annotate({ description: "Any JSON-serializable value" }),
Schema.Json.annotate({ description: "Any JSON-serializable value" }),
),
}),
}),
Expand DownExpand Up@@ -4021,7 +4021,7 @@ export const V1ListProjectAddonsOutput = Schema.Struct({
amount: Schema.Number.check(Schema.isFinite()),
}),
meta: Schema.optionalKey(
Schema.Unknown.annotate({ description: "Any JSON-serializable value" }),
Schema.Json.annotate({ description: "Any JSON-serializable value" }),
),
}),
),
Expand DownExpand Up@@ -4180,7 +4180,7 @@ export const V1ReadOnlyQueryInput = Schema.Struct({
.check(Schema.isMaxLength(20))
.check(Schema.isPattern(new RegExp("^[a-z]+$"))),
query: Schema.String.check(Schema.isMinLength(1)),
parameters: Schema.optionalKey(Schema.Array(Schema.Unknown)),
parameters: Schema.optionalKey(Schema.Array(Schema.Json)),
});
export const V1RemoveAReadReplicaInput = Schema.Struct({
ref: Schema.String.check(Schema.isMinLength(20))
Expand DownExpand Up@@ -4239,7 +4239,7 @@ export const V1RemoveProjectSigningKeyOutput = Schema.Struct({
),
algorithm: Schema.Literals(["EdDSA", "ES256", "RS256", "HS256"]),
status: Schema.Literals(["in_use", "previously_used", "revoked", "standby"]),
public_jwk: Schema.optionalKey(Schema.Union([Schema.Unknown, Schema.Null])),
public_jwk: Schema.optionalKey(Schema.Union([Schema.Json, Schema.Null])),
created_at: Schema.String.annotate({ format: "date-time" }),
updated_at: Schema.String.annotate({ format: "date-time" }),
});
Expand DownExpand Up@@ -4331,7 +4331,7 @@ export const V1RunAQueryInput = Schema.Struct({
.check(Schema.isMaxLength(20))
.check(Schema.isPattern(new RegExp("^[a-z]+$"))),
query: Schema.String.check(Schema.isMinLength(1)),
parameters: Schema.optionalKey(Schema.Array(Schema.Unknown)),
parameters: Schema.optionalKey(Schema.Array(Schema.Json)),
read_only: Schema.optionalKey(Schema.Boolean),
});
export const V1SetupAReadReplicaInput = Schema.Struct({
Expand DownExpand Up@@ -5451,8 +5451,8 @@ export const V1UpdateHostnameConfigOutput = Schema.Struct({
custom_hostname: Schema.optionalKey(Schema.String),
data: Schema.Struct({
success: Schema.Boolean,
errors: Schema.Array(Schema.Unknown.annotate({ description: "Any JSON-serializable value" })),
messages: Schema.Array(Schema.Unknown.annotate({ description: "Any JSON-serializable value" })),
errors: Schema.Array(Schema.Json.annotate({ description: "Any JSON-serializable value" })),
messages: Schema.Array(Schema.Json.annotate({ description: "Any JSON-serializable value" })),
result: Schema.Struct({
id: Schema.String,
hostname: Schema.String,
Expand DownExpand Up@@ -5815,7 +5815,7 @@ export const V1UpdateProjectApiKeyInput = Schema.Struct({
),
description: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
secret_jwt_template: Schema.optionalKey(
Schema.Union([Schema.Record(Schema.String, Schema.Unknown), Schema.Null]),
Schema.Union([Schema.Record(Schema.String, Schema.Json), Schema.Null]),
),
});
export const V1UpdateProjectApiKeyOutput = Schema.Struct({
Expand All@@ -5832,7 +5832,7 @@ export const V1UpdateProjectApiKeyOutput = Schema.Struct({
description: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
hash: Schema.optionalKey(Schema.Union([Schema.String, Schema.Null])),
secret_jwt_template: Schema.optionalKey(
Schema.Union([Schema.Record(Schema.String, Schema.Unknown), Schema.Null]),
Schema.Union([Schema.Record(Schema.String, Schema.Json), Schema.Null]),
),
inserted_at: Schema.optionalKey(
Schema.Union([Schema.String.annotate({ format: "date-time" }), Schema.Null]),
Expand DownExpand Up@@ -5867,7 +5867,7 @@ export const V1UpdateProjectSigningKeyOutput = Schema.Struct({
),
algorithm: Schema.Literals(["EdDSA", "ES256", "RS256", "HS256"]),
status: Schema.Literals(["in_use", "previously_used", "revoked", "standby"]),
public_jwk: Schema.optionalKey(Schema.Union([Schema.Unknown, Schema.Null])),
public_jwk: Schema.optionalKey(Schema.Union([Schema.Json, Schema.Null])),
created_at: Schema.String.annotate({ format: "date-time" }),
updated_at: Schema.String.annotate({ format: "date-time" }),
});
Expand DownExpand Up@@ -6026,8 +6026,8 @@ export const V1VerifyDnsConfigOutput = Schema.Struct({
custom_hostname: Schema.optionalKey(Schema.String),
data: Schema.Struct({
success: Schema.Boolean,
errors: Schema.Array(Schema.Unknown.annotate({ description: "Any JSON-serializable value" })),
messages: Schema.Array(Schema.Unknown.annotate({ description: "Any JSON-serializable value" })),
errors: Schema.Array(Schema.Json.annotate({ description: "Any JSON-serializable value" })),
messages: Schema.Array(Schema.Json.annotate({ description: "Any JSON-serializable value" })),
result: Schema.Struct({
id: Schema.String,
hostname: Schema.String,
Expand Down
Loading