Skip to content
Open
Show file tree
Hide file tree
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
24 changes: 24 additions & 0 deletions generated_types.json
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,11 @@
"format": "date-time",
"description": "Date of last AI secret update"
},
"secret_updated_at": {
"type": ["string", "null"],
"format": "date-time",
"description": "Date of last update to the encrypted secret value itself"
},
"org_id": {
"type": "string",
"format": "uuid",
Expand All @@ -125,6 +130,11 @@
"type": ["object", "null"],
"additionalProperties": {}
},
"secret_updated_by_user_id": {
"type": ["string", "null"],
"format": "uuid",
"description": "User id of the last update to the encrypted secret value"
},
"preview_secret": {
"type": ["string", "null"]
}
Expand Down Expand Up @@ -1833,6 +1843,16 @@
"format": "date-time",
"description": "Date of environment variable creation"
},
"secret_updated_at": {
"type": ["string", "null"],
"format": "date-time",
"description": "Date of last update to the encrypted secret value itself"
},
"secret_updated_by_user_id": {
"type": ["string", "null"],
"format": "uuid",
"description": "User id of the last update to the encrypted secret value"
},
"used": {
"type": ["string", "null"],
"format": "date-time",
Expand All @@ -1843,6 +1863,10 @@
"additionalProperties": {},
"description": "Optional metadata associated with the environment variable when managed via the function secrets API"
},
"preview_secret": {
"type": ["string", "null"],
"description": "Redacted preview of the stored secret value"
},
"secret_type": {
"type": ["string", "null"],
"description": "Optional classification for the secret (for example, the AI provider name)"
Expand Down
7 changes: 6 additions & 1 deletion js/src/generated_types.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Auto-generated file (content hash 6a3eaf06ccb50b7d) -- do not modify
// Auto-generated file (content hash 9ac97be26c9575b6) -- do not modify

import { z } from "zod/v3";

Expand Down Expand Up @@ -47,12 +47,14 @@ export const AISecret = z.object({
id: z.string().uuid(),
created: z.union([z.string(), z.null()]).optional(),
updated_at: z.union([z.string(), z.null()]).optional(),
secret_updated_at: z.union([z.string(), z.null()]).optional(),
org_id: z.string().uuid(),
name: z.string(),
type: z.union([z.string(), z.null()]).optional(),
metadata: z
.union([z.object({}).partial().passthrough(), z.null()])
.optional(),
secret_updated_by_user_id: z.union([z.string(), z.null()]).optional(),
preview_secret: z.union([z.string(), z.null()]).optional(),
});
export type AISecretType = z.infer<typeof AISecret>;
Expand Down Expand Up @@ -667,10 +669,13 @@ export const EnvVar = z.object({
object_id: z.string().uuid(),
name: z.string(),
created: z.union([z.string(), z.null()]).optional(),
secret_updated_at: z.union([z.string(), z.null()]).optional(),
secret_updated_by_user_id: z.union([z.string(), z.null()]).optional(),
used: z.union([z.string(), z.null()]).optional(),
metadata: z
.union([z.object({}).partial().passthrough(), z.null()])
.optional(),
preview_secret: z.union([z.string(), z.null()]).optional(),
secret_type: z.union([z.string(), z.null()]).optional(),
secret_category: z
.enum(["env_var", "ai_provider", "sandbox_provider"])
Expand Down
Loading