diff --git a/generated_types.json b/generated_types.json index 51e2a803c..768a94ee8 100644 --- a/generated_types.json +++ b/generated_types.json @@ -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", @@ -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"] } @@ -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", @@ -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)" diff --git a/js/src/generated_types.ts b/js/src/generated_types.ts index 609438488..64886b4c1 100644 --- a/js/src/generated_types.ts +++ b/js/src/generated_types.ts @@ -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"; @@ -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; @@ -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"])