/
githubmirror
/
novu
Обзор
Документация
Войти
/
githubmirror
/
novu
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
next
libs/internal-sdk/src/models/operations/agentscontrollerdeleteagent.ts
78 строк
2 KB
AdemDev
feat(providers): add LINE Messaging API chat provider fixes NV-7614 (#11148)
13 июл 2026, 11:20
Не верифицирован
13 июл 2026, 11:20
51e40a8
Код
Авторство
О чём код?
/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type AgentsControllerDeleteAgentRequest = { identifier: string; deleteFromProvider: string; /** * A header for idempotency purposes */ idempotencyKey?: string | undefined; }; export type AgentsControllerDeleteAgentResponse = { headers: { [k: string]: Array<string> }; }; /** @internal */ export type AgentsControllerDeleteAgentRequest$Outbound = { identifier: string; deleteFromProvider: string; "idempotency-key"?: string | undefined; }; /** @internal */ export const AgentsControllerDeleteAgentRequest$outboundSchema: z.ZodType< AgentsControllerDeleteAgentRequest$Outbound, z.ZodTypeDef, AgentsControllerDeleteAgentRequest > = z.object({ identifier: z.string(), deleteFromProvider: z.string(), idempotencyKey: z.string().optional(), }).transform((v) => { return remap$(v, { idempotencyKey: "idempotency-key", }); }); export function agentsControllerDeleteAgentRequestToJSON( agentsControllerDeleteAgentRequest: AgentsControllerDeleteAgentRequest, ): string { return JSON.stringify( AgentsControllerDeleteAgentRequest$outboundSchema.parse( agentsControllerDeleteAgentRequest, ), ); } /** @internal */ export const AgentsControllerDeleteAgentResponse$inboundSchema: z.ZodType< AgentsControllerDeleteAgentResponse, z.ZodTypeDef, unknown > = z.object({ Headers: z.record(z.array(z.string())).default({}), }).transform((v) => { return remap$(v, { "Headers": "headers", }); }); export function agentsControllerDeleteAgentResponseFromJSON( jsonString: string, ): SafeParseResult<AgentsControllerDeleteAgentResponse, SDKValidationError> { return safeParse( jsonString, (x) => AgentsControllerDeleteAgentResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'AgentsControllerDeleteAgentResponse' from JSON`, ); }