/
githubmirror
/
novu
Обзор
Документация
Войти
/
githubmirror
/
novu
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
next
libs/internal-sdk/src/models/components/getenvironmentvariableusageresponsedto.ts
39 строк
1 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 { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { EnvironmentVariableWorkflowInfoDto, EnvironmentVariableWorkflowInfoDto$inboundSchema, } from "./environmentvariableworkflowinfodto.js"; export type GetEnvironmentVariableUsageResponseDto = { /** * Array of workflows that reference this environment variable */ workflows: Array<EnvironmentVariableWorkflowInfoDto>; }; /** @internal */ export const GetEnvironmentVariableUsageResponseDto$inboundSchema: z.ZodType< GetEnvironmentVariableUsageResponseDto, z.ZodTypeDef, unknown > = z.object({ workflows: z.array(EnvironmentVariableWorkflowInfoDto$inboundSchema), }); export function getEnvironmentVariableUsageResponseDtoFromJSON( jsonString: string, ): SafeParseResult<GetEnvironmentVariableUsageResponseDto, SDKValidationError> { return safeParse( jsonString, (x) => GetEnvironmentVariableUsageResponseDto$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetEnvironmentVariableUsageResponseDto' from JSON`, ); }