/
githubmirror
/
novu
Обзор
Документация
Войти
/
githubmirror
/
novu
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
next
libs/internal-sdk/src/models/components/createcontextrequestdto.ts
46 строк
1 KB
George Djabarov
feat(api-service): subscription polish (#9554)
08 дек 2025, 21:15
Не верифицирован
08 дек 2025, 21:15
7faa7cf
Код
Авторство
О чём код?
/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import * as z from "zod/v3"; export type CreateContextRequestDto = { /** * Context type (e.g., tenant, app, workspace). Must be lowercase alphanumeric with optional separators. */ type: string; /** * Unique identifier for this context. Must be lowercase alphanumeric with optional separators. */ id: string; /** * Optional custom data to associate with this context. */ data?: { [k: string]: any } | undefined; }; /** @internal */ export type CreateContextRequestDto$Outbound = { type: string; id: string; data?: { [k: string]: any } | undefined; }; /** @internal */ export const CreateContextRequestDto$outboundSchema: z.ZodType< CreateContextRequestDto$Outbound, z.ZodTypeDef, CreateContextRequestDto > = z.object({ type: z.string(), id: z.string(), data: z.record(z.any()).optional(), }); export function createContextRequestDtoToJSON( createContextRequestDto: CreateContextRequestDto, ): string { return JSON.stringify( CreateContextRequestDto$outboundSchema.parse(createContextRequestDto), ); }