/
githubmirror
/
novu
Обзор
Документация
Войти
/
githubmirror
/
novu
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
next
libs/internal-sdk/src/models/components/updateenvironmentvariablerequestdto.ts
72 строки
2 KB
Dima Grossman
chore(root): sdk gen version update for latest internal sdk changes (#10651)
10 апр 2026, 16:36
Не верифицирован
10 апр 2026, 16:36
b5e0674
Код
Авторство
О чём код?
/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import * as z from "zod/v3"; import { ClosedEnum } from "../../types/enums.js"; import { EnvironmentVariableValueDto, EnvironmentVariableValueDto$Outbound, EnvironmentVariableValueDto$outboundSchema, } from "./environmentvariablevaluedto.js"; /** * The type of the variable */ export const UpdateEnvironmentVariableRequestDtoType = { String: "string", } as const; /** * The type of the variable */ export type UpdateEnvironmentVariableRequestDtoType = ClosedEnum< typeof UpdateEnvironmentVariableRequestDtoType >; export type UpdateEnvironmentVariableRequestDto = { /** * Unique key for the variable. Must start with a letter and contain only letters, digits, and underscores. */ key?: string | undefined; /** * The type of the variable */ type?: UpdateEnvironmentVariableRequestDtoType | undefined; isSecret?: boolean | undefined; values?: Array<EnvironmentVariableValueDto> | undefined; }; /** @internal */ export const UpdateEnvironmentVariableRequestDtoType$outboundSchema: z.ZodNativeEnum<typeof UpdateEnvironmentVariableRequestDtoType> = z .nativeEnum(UpdateEnvironmentVariableRequestDtoType); /** @internal */ export type UpdateEnvironmentVariableRequestDto$Outbound = { key?: string | undefined; type?: string | undefined; isSecret?: boolean | undefined; values?: Array<EnvironmentVariableValueDto$Outbound> | undefined; }; /** @internal */ export const UpdateEnvironmentVariableRequestDto$outboundSchema: z.ZodType< UpdateEnvironmentVariableRequestDto$Outbound, z.ZodTypeDef, UpdateEnvironmentVariableRequestDto > = z.object({ key: z.string().optional(), type: UpdateEnvironmentVariableRequestDtoType$outboundSchema.optional(), isSecret: z.boolean().optional(), values: z.array(EnvironmentVariableValueDto$outboundSchema).optional(), }); export function updateEnvironmentVariableRequestDtoToJSON( updateEnvironmentVariableRequestDto: UpdateEnvironmentVariableRequestDto, ): string { return JSON.stringify( UpdateEnvironmentVariableRequestDto$outboundSchema.parse( updateEnvironmentVariableRequestDto, ), ); }