diff --git a/generated_types.json b/generated_types.json index 2303b7183..4d2f52d5d 100644 --- a/generated_types.json +++ b/generated_types.json @@ -89,7 +89,9 @@ "project_log", "org_project", "org_audit_logs", - "project_group" + "project_group", + "ai_secret", + "org_ai_secret" ], "description": "The object type that the ACL applies to" }, @@ -4164,7 +4166,7 @@ ], "description": "Each permission permits a certain type of operation on an object in the system\n\nPermissions can be assigned to to objects on an individual basis, or grouped into roles" }, - "PreprocessorSavedFunctionId": { + "PreprocessorId": { "anyOf": [ { "type": "object", @@ -4204,11 +4206,27 @@ "required": ["type", "name"], "title": "preprocessor_global" }, + { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": ["inline"] + }, + "code": { + "type": "string", + "minLength": 1, + "description": "The complete JavaScript preprocessor implementation, including its handler." + } + }, + "required": ["type", "code"], + "title": "preprocessor_inline" + }, { "type": "null" } ], - "description": "For prompt-backed functions: the preprocessor function to use for trace template variables. Set to null to disable preprocessing. If omitted, the traced project's default preprocessor will be used, falling back to the global 'thread' preprocessor." + "description": "For prompt-backed functions: the saved, global, or inline preprocessor to use for trace template variables. Set to null to disable preprocessing. If omitted, the traced project's default preprocessor will be used, falling back to the global 'thread' preprocessor." }, "Project": { "type": "object", @@ -5449,7 +5467,7 @@ "$ref": "#/components/schemas/PromptParserNullish" }, "preprocessor": { - "$ref": "#/components/schemas/PreprocessorSavedFunctionId" + "$ref": "#/components/schemas/PreprocessorId" }, "tool_functions": { "type": ["array", "null"], @@ -5546,7 +5564,7 @@ "$ref": "#/components/schemas/PromptParserNullish" }, "preprocessor": { - "$ref": "#/components/schemas/PreprocessorSavedFunctionId" + "$ref": "#/components/schemas/PreprocessorId" }, "tool_functions": { "type": ["array", "null"], @@ -6992,6 +7010,10 @@ "type": ["string", "null"], "description": "Textual description of the view" }, + "starred": { + "type": "boolean", + "description": "Whether the view is starred in its project" + }, "created": { "type": ["string", "null"], "format": "date-time", diff --git a/js/src/generated_plain_types.ts b/js/src/generated_plain_types.ts index dcaf1935a..7bf6fd7b2 100644 --- a/js/src/generated_plain_types.ts +++ b/js/src/generated_plain_types.ts @@ -1,15 +1,15 @@ -// Auto-generated file (content hash e392acbca346c32a) -- do not modify +// Auto-generated file (content hash 9963a3f7375263a4) -- do not modify export type AclObjectTypeType = /** * The object type that the ACL applies to * - * @enum organization, project, experiment, dataset, prompt, prompt_session, group, role, org_member, project_log, org_project, org_audit_logs, project_group + * @enum organization, project, experiment, dataset, prompt, prompt_session, group, role, org_member, project_log, org_project, org_audit_logs, project_group, ai_secret, org_ai_secret */ | /** * The object type that the ACL applies to * - * @enum organization, project, experiment, dataset, prompt, prompt_session, group, role, org_member, project_log, org_project, org_audit_logs, project_group + * @enum organization, project, experiment, dataset, prompt, prompt_session, group, role, org_member, project_log, org_project, org_audit_logs, project_group, ai_secret, org_ai_secret */ (| "organization" | "project" @@ -24,11 +24,13 @@ export type AclObjectTypeType = | "org_project" | "org_audit_logs" | "project_group" + | "ai_secret" + | "org_ai_secret" ) /** * The object type that the ACL applies to * - * @enum organization, project, experiment, dataset, prompt, prompt_session, group, role, org_member, project_log, org_project, org_audit_logs, project_group + * @enum organization, project, experiment, dataset, prompt, prompt_session, group, role, org_member, project_log, org_project, org_audit_logs, project_group, ai_secret, org_ai_secret */ | null; export type PermissionType = @@ -2752,9 +2754,9 @@ export type PromptParserNullishType = { */ boolean | undefined; } | null; -export type PreprocessorSavedFunctionIdType = +export type PreprocessorIdType = /** - * For prompt-backed functions: the preprocessor function to use for trace template variables. Set to null to disable preprocessing. If omitted, the traced project's default preprocessor will be used, falling back to the global 'thread' preprocessor. + * For prompt-backed functions: the saved, global, or inline preprocessor to use for trace template variables. Set to null to disable preprocessing. If omitted, the traced project's default preprocessor will be used, falling back to the global 'thread' preprocessor. */ | { /** @@ -2781,6 +2783,18 @@ export type PreprocessorSavedFunctionIdType = */ function_type: "preprocessor"; } + | { + /** + * @enum inline + */ + type: "inline"; + /** + * The complete JavaScript preprocessor implementation, including its handler. + * + * @minLength 1 + */ + code: string; + } | null; export type PromptDataNullishType = /** @@ -2793,7 +2807,7 @@ export type PromptDataNullishType = prompt: PromptBlockDataNullishType; options: PromptOptionsNullishType; parser: PromptParserNullishType; - preprocessor: PreprocessorSavedFunctionIdType; + preprocessor: PreprocessorIdType; tool_functions: Array | null; /** * @enum mustache, nunjucks, none @@ -3521,7 +3535,7 @@ export type PromptDataType = Partial<{ prompt: PromptBlockDataNullishType; options: PromptOptionsNullishType; parser: PromptParserNullishType; - preprocessor: PreprocessorSavedFunctionIdType; + preprocessor: PreprocessorIdType; tool_functions: Array | null; /** * @enum mustache, nunjucks, none @@ -7105,6 +7119,10 @@ export type ViewType = { | null ) | undefined; + starred?: /** + * Whether the view is starred in its project + */ + boolean | undefined; created?: | /** * Date of view creation diff --git a/js/src/generated_types.ts b/js/src/generated_types.ts index ebf0f4be8..d72a8c5d7 100644 --- a/js/src/generated_types.ts +++ b/js/src/generated_types.ts @@ -1,4 +1,4 @@ -// Auto-generated file (content hash e392acbca346c32a) -- do not modify +// Auto-generated file (content hash 9963a3f7375263a4) -- do not modify import { z } from "zod/v3"; @@ -17,6 +17,8 @@ export const AclObjectType = z.union([ "org_project", "org_audit_logs", "project_group", + "ai_secret", + "org_ai_secret", ]), z.null(), ]); @@ -1041,7 +1043,7 @@ export const PromptParserNullish = z.union([ z.null(), ]); export type PromptParserNullishType = z.infer; -export const PreprocessorSavedFunctionId = z.union([ +export const PreprocessorId = z.union([ z.object({ type: z.literal("function"), id: z.string(), @@ -1052,18 +1054,17 @@ export const PreprocessorSavedFunctionId = z.union([ name: z.string(), function_type: z.literal("preprocessor").optional().default("preprocessor"), }), + z.object({ type: z.literal("inline"), code: z.string().min(1) }), z.null(), ]); -export type PreprocessorSavedFunctionIdType = z.infer< - typeof PreprocessorSavedFunctionId ->; +export type PreprocessorIdType = z.infer; export const PromptDataNullish = z.union([ z .object({ prompt: PromptBlockDataNullish, options: PromptOptionsNullish, parser: PromptParserNullish, - preprocessor: PreprocessorSavedFunctionId, + preprocessor: PreprocessorId, tool_functions: z.union([z.array(SavedFunctionId), z.null()]), template_format: z.union([ z.enum(["mustache", "nunjucks", "none"]), @@ -1309,7 +1310,7 @@ export const PromptData = z prompt: PromptBlockDataNullish, options: PromptOptionsNullish, parser: PromptParserNullish, - preprocessor: PreprocessorSavedFunctionId, + preprocessor: PreprocessorId, tool_functions: z.union([z.array(SavedFunctionId), z.null()]), template_format: z.union([ z.enum(["mustache", "nunjucks", "none"]), @@ -2395,6 +2396,7 @@ export const View = z.object({ ]), name: z.string(), description: z.union([z.string(), z.null()]).optional(), + starred: z.boolean().optional(), created: z.union([z.string(), z.null()]).optional(), updated_at: z.union([z.string(), z.null()]).optional(), view_data: ViewData.optional(), diff --git a/js/util/generated_plain_types.ts b/js/util/generated_plain_types.ts index dcaf1935a..7bf6fd7b2 100644 --- a/js/util/generated_plain_types.ts +++ b/js/util/generated_plain_types.ts @@ -1,15 +1,15 @@ -// Auto-generated file (content hash e392acbca346c32a) -- do not modify +// Auto-generated file (content hash 9963a3f7375263a4) -- do not modify export type AclObjectTypeType = /** * The object type that the ACL applies to * - * @enum organization, project, experiment, dataset, prompt, prompt_session, group, role, org_member, project_log, org_project, org_audit_logs, project_group + * @enum organization, project, experiment, dataset, prompt, prompt_session, group, role, org_member, project_log, org_project, org_audit_logs, project_group, ai_secret, org_ai_secret */ | /** * The object type that the ACL applies to * - * @enum organization, project, experiment, dataset, prompt, prompt_session, group, role, org_member, project_log, org_project, org_audit_logs, project_group + * @enum organization, project, experiment, dataset, prompt, prompt_session, group, role, org_member, project_log, org_project, org_audit_logs, project_group, ai_secret, org_ai_secret */ (| "organization" | "project" @@ -24,11 +24,13 @@ export type AclObjectTypeType = | "org_project" | "org_audit_logs" | "project_group" + | "ai_secret" + | "org_ai_secret" ) /** * The object type that the ACL applies to * - * @enum organization, project, experiment, dataset, prompt, prompt_session, group, role, org_member, project_log, org_project, org_audit_logs, project_group + * @enum organization, project, experiment, dataset, prompt, prompt_session, group, role, org_member, project_log, org_project, org_audit_logs, project_group, ai_secret, org_ai_secret */ | null; export type PermissionType = @@ -2752,9 +2754,9 @@ export type PromptParserNullishType = { */ boolean | undefined; } | null; -export type PreprocessorSavedFunctionIdType = +export type PreprocessorIdType = /** - * For prompt-backed functions: the preprocessor function to use for trace template variables. Set to null to disable preprocessing. If omitted, the traced project's default preprocessor will be used, falling back to the global 'thread' preprocessor. + * For prompt-backed functions: the saved, global, or inline preprocessor to use for trace template variables. Set to null to disable preprocessing. If omitted, the traced project's default preprocessor will be used, falling back to the global 'thread' preprocessor. */ | { /** @@ -2781,6 +2783,18 @@ export type PreprocessorSavedFunctionIdType = */ function_type: "preprocessor"; } + | { + /** + * @enum inline + */ + type: "inline"; + /** + * The complete JavaScript preprocessor implementation, including its handler. + * + * @minLength 1 + */ + code: string; + } | null; export type PromptDataNullishType = /** @@ -2793,7 +2807,7 @@ export type PromptDataNullishType = prompt: PromptBlockDataNullishType; options: PromptOptionsNullishType; parser: PromptParserNullishType; - preprocessor: PreprocessorSavedFunctionIdType; + preprocessor: PreprocessorIdType; tool_functions: Array | null; /** * @enum mustache, nunjucks, none @@ -3521,7 +3535,7 @@ export type PromptDataType = Partial<{ prompt: PromptBlockDataNullishType; options: PromptOptionsNullishType; parser: PromptParserNullishType; - preprocessor: PreprocessorSavedFunctionIdType; + preprocessor: PreprocessorIdType; tool_functions: Array | null; /** * @enum mustache, nunjucks, none @@ -7105,6 +7119,10 @@ export type ViewType = { | null ) | undefined; + starred?: /** + * Whether the view is starred in its project + */ + boolean | undefined; created?: | /** * Date of view creation diff --git a/js/util/generated_types.ts b/js/util/generated_types.ts index ebf0f4be8..d72a8c5d7 100644 --- a/js/util/generated_types.ts +++ b/js/util/generated_types.ts @@ -1,4 +1,4 @@ -// Auto-generated file (content hash e392acbca346c32a) -- do not modify +// Auto-generated file (content hash 9963a3f7375263a4) -- do not modify import { z } from "zod/v3"; @@ -17,6 +17,8 @@ export const AclObjectType = z.union([ "org_project", "org_audit_logs", "project_group", + "ai_secret", + "org_ai_secret", ]), z.null(), ]); @@ -1041,7 +1043,7 @@ export const PromptParserNullish = z.union([ z.null(), ]); export type PromptParserNullishType = z.infer; -export const PreprocessorSavedFunctionId = z.union([ +export const PreprocessorId = z.union([ z.object({ type: z.literal("function"), id: z.string(), @@ -1052,18 +1054,17 @@ export const PreprocessorSavedFunctionId = z.union([ name: z.string(), function_type: z.literal("preprocessor").optional().default("preprocessor"), }), + z.object({ type: z.literal("inline"), code: z.string().min(1) }), z.null(), ]); -export type PreprocessorSavedFunctionIdType = z.infer< - typeof PreprocessorSavedFunctionId ->; +export type PreprocessorIdType = z.infer; export const PromptDataNullish = z.union([ z .object({ prompt: PromptBlockDataNullish, options: PromptOptionsNullish, parser: PromptParserNullish, - preprocessor: PreprocessorSavedFunctionId, + preprocessor: PreprocessorId, tool_functions: z.union([z.array(SavedFunctionId), z.null()]), template_format: z.union([ z.enum(["mustache", "nunjucks", "none"]), @@ -1309,7 +1310,7 @@ export const PromptData = z prompt: PromptBlockDataNullish, options: PromptOptionsNullish, parser: PromptParserNullish, - preprocessor: PreprocessorSavedFunctionId, + preprocessor: PreprocessorId, tool_functions: z.union([z.array(SavedFunctionId), z.null()]), template_format: z.union([ z.enum(["mustache", "nunjucks", "none"]), @@ -2395,6 +2396,7 @@ export const View = z.object({ ]), name: z.string(), description: z.union([z.string(), z.null()]).optional(), + starred: z.boolean().optional(), created: z.union([z.string(), z.null()]).optional(), updated_at: z.union([z.string(), z.null()]).optional(), view_data: ViewData.optional(),