@novu/api 0.0.5 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/FUNCTIONS.md +15 -8
- package/README.md +218 -45
- package/docs/sdks/credentials/README.md +44 -0
- package/docs/sdks/messages/README.md +8 -2
- package/docs/sdks/notifications/README.md +2 -32
- package/docs/sdks/novu/README.md +247 -244
- package/docs/sdks/novumessages/README.md +4 -4
- package/docs/sdks/novunotifications/README.md +4 -2
- package/docs/sdks/preferences/README.md +4 -4
- package/docs/sdks/properties/README.md +2 -2
- package/docs/sdks/subscribers/README.md +2 -4
- package/funcs/create.d.ts +9 -0
- package/funcs/create.d.ts.map +1 -0
- package/funcs/{healthControllerHealthCheck.js → create.js} +17 -16
- package/funcs/create.js.map +1 -0
- package/funcs/supportControllerFetchUserOrganizations.d.ts +10 -0
- package/funcs/supportControllerFetchUserOrganizations.d.ts.map +1 -0
- package/funcs/{generateRandomNumber.js → supportControllerFetchUserOrganizations.js} +16 -31
- package/funcs/supportControllerFetchUserOrganizations.js.map +1 -0
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/lib/schemas.d.ts +1 -1
- package/lib/schemas.d.ts.map +1 -1
- package/lib/schemas.js +4 -1
- package/lib/schemas.js.map +1 -1
- package/models/components/createsupportthreaddto.d.ts +29 -0
- package/models/components/createsupportthreaddto.d.ts.map +1 -0
- package/models/components/{idempotencetestingresponse.js → createsupportthreaddto.js} +19 -19
- package/models/components/createsupportthreaddto.js.map +1 -0
- package/models/components/index.d.ts +2 -3
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +2 -3
- package/models/components/index.js.map +1 -1
- package/models/components/plaincardrequestdto.d.ts +100 -0
- package/models/components/plaincardrequestdto.d.ts.map +1 -0
- package/models/components/plaincardrequestdto.js +139 -0
- package/models/components/plaincardrequestdto.js.map +1 -0
- package/models/errors/index.d.ts +0 -1
- package/models/errors/index.d.ts.map +1 -1
- package/models/errors/index.js +0 -1
- package/models/errors/index.js.map +1 -1
- package/models/operations/index.d.ts +2 -3
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +2 -3
- package/models/operations/index.js.map +1 -1
- package/models/operations/supportcontrollercreatethread.d.ts +35 -0
- package/models/operations/supportcontrollercreatethread.d.ts.map +1 -0
- package/models/operations/supportcontrollercreatethread.js +73 -0
- package/models/operations/supportcontrollercreatethread.js.map +1 -0
- package/models/operations/supportcontrollerfetchuserorganizations.d.ts +56 -0
- package/models/operations/supportcontrollerfetchuserorganizations.d.ts.map +1 -0
- package/models/operations/supportcontrollerfetchuserorganizations.js +96 -0
- package/models/operations/supportcontrollerfetchuserorganizations.js.map +1 -0
- package/package.json +5 -1
- package/sdk/sdk.d.ts +8 -3
- package/sdk/sdk.d.ts.map +1 -1
- package/sdk/sdk.js +14 -12
- package/sdk/sdk.js.map +1 -1
- package/sources/json-development.json +116 -1161
- package/src/funcs/{testIdempotency.ts → create.ts} +15 -57
- package/src/funcs/{healthControllerHealthCheck.ts → supportControllerFetchUserOrganizations.ts} +22 -25
- package/src/lib/config.ts +3 -3
- package/src/lib/schemas.ts +5 -0
- package/src/models/components/createsupportthreaddto.ts +66 -0
- package/src/models/components/index.ts +2 -3
- package/src/models/components/plaincardrequestdto.ts +223 -0
- package/src/models/errors/index.ts +0 -1
- package/src/models/operations/index.ts +2 -3
- package/src/models/operations/supportcontrollercreatethread.ts +90 -0
- package/src/models/operations/supportcontrollerfetchuserorganizations.ts +163 -0
- package/src/sdk/sdk.ts +34 -38
- package/funcs/generateRandomNumber.d.ts +0 -10
- package/funcs/generateRandomNumber.d.ts.map +0 -1
- package/funcs/generateRandomNumber.js.map +0 -1
- package/funcs/healthControllerHealthCheck.d.ts +0 -10
- package/funcs/healthControllerHealthCheck.d.ts.map +0 -1
- package/funcs/healthControllerHealthCheck.js.map +0 -1
- package/funcs/testIdempotency.d.ts +0 -11
- package/funcs/testIdempotency.d.ts.map +0 -1
- package/funcs/testIdempotency.js +0 -129
- package/funcs/testIdempotency.js.map +0 -1
- package/models/components/idempotencetestingresponse.d.ts +0 -32
- package/models/components/idempotencetestingresponse.d.ts.map +0 -1
- package/models/components/idempotencetestingresponse.js.map +0 -1
- package/models/components/idempotencybehaviorenum.d.ts +0 -37
- package/models/components/idempotencybehaviorenum.d.ts.map +0 -1
- package/models/components/idempotencybehaviorenum.js +0 -54
- package/models/components/idempotencybehaviorenum.js.map +0 -1
- package/models/components/idempotencytestingdto.d.ts +0 -33
- package/models/components/idempotencytestingdto.d.ts.map +0 -1
- package/models/components/idempotencytestingdto.js +0 -60
- package/models/components/idempotencytestingdto.js.map +0 -1
- package/models/errors/healthcontrollerhealthcheck.d.ts +0 -153
- package/models/errors/healthcontrollerhealthcheck.d.ts.map +0 -1
- package/models/errors/healthcontrollerhealthcheck.js +0 -190
- package/models/errors/healthcontrollerhealthcheck.js.map +0 -1
- package/models/operations/healthcontrollergeneraterandomnumber.d.ts +0 -64
- package/models/operations/healthcontrollergeneraterandomnumber.d.ts.map +0 -1
- package/models/operations/healthcontrollergeneraterandomnumber.js +0 -108
- package/models/operations/healthcontrollergeneraterandomnumber.js.map +0 -1
- package/models/operations/healthcontrollerhealthcheck.d.ts +0 -165
- package/models/operations/healthcontrollerhealthcheck.d.ts.map +0 -1
- package/models/operations/healthcontrollerhealthcheck.js +0 -206
- package/models/operations/healthcontrollerhealthcheck.js.map +0 -1
- package/models/operations/healthcontrollertestidempotency.d.ts +0 -66
- package/models/operations/healthcontrollertestidempotency.d.ts.map +0 -1
- package/models/operations/healthcontrollertestidempotency.js +0 -112
- package/models/operations/healthcontrollertestidempotency.js.map +0 -1
- package/src/funcs/generateRandomNumber.ts +0 -183
- package/src/models/components/idempotencetestingresponse.ts +0 -69
- package/src/models/components/idempotencybehaviorenum.ts +0 -42
- package/src/models/components/idempotencytestingdto.ts +0 -74
- package/src/models/errors/healthcontrollerhealthcheck.ts +0 -291
- package/src/models/operations/healthcontrollergeneraterandomnumber.ts +0 -177
- package/src/models/operations/healthcontrollerhealthcheck.ts +0 -358
- package/src/models/operations/healthcontrollertestidempotency.ts +0 -174
|
@@ -1,358 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
import * as z from "zod";
|
|
6
|
-
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
-
import {
|
|
8
|
-
collectExtraKeys as collectExtraKeys$,
|
|
9
|
-
safeParse,
|
|
10
|
-
} from "../../lib/schemas.js";
|
|
11
|
-
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
12
|
-
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
13
|
-
|
|
14
|
-
export type HealthControllerHealthCheckRequest = {
|
|
15
|
-
/**
|
|
16
|
-
* A header for idempotency purposes
|
|
17
|
-
*/
|
|
18
|
-
idempotencyKey?: string | undefined;
|
|
19
|
-
};
|
|
20
|
-
|
|
21
|
-
export type Info = {
|
|
22
|
-
status: string;
|
|
23
|
-
additionalProperties: { [k: string]: any };
|
|
24
|
-
};
|
|
25
|
-
|
|
26
|
-
export type ErrorT = {
|
|
27
|
-
status: string;
|
|
28
|
-
additionalProperties: { [k: string]: any };
|
|
29
|
-
};
|
|
30
|
-
|
|
31
|
-
export type Details = {
|
|
32
|
-
status: string;
|
|
33
|
-
additionalProperties: { [k: string]: any };
|
|
34
|
-
};
|
|
35
|
-
|
|
36
|
-
/**
|
|
37
|
-
* The Health Check is successful
|
|
38
|
-
*/
|
|
39
|
-
export type HealthControllerHealthCheckResponseBody = {
|
|
40
|
-
status?: string | undefined;
|
|
41
|
-
info?: { [k: string]: Info } | null | undefined;
|
|
42
|
-
error?: { [k: string]: ErrorT } | null | undefined;
|
|
43
|
-
details?: { [k: string]: Details } | undefined;
|
|
44
|
-
};
|
|
45
|
-
|
|
46
|
-
/** @internal */
|
|
47
|
-
export const HealthControllerHealthCheckRequest$inboundSchema: z.ZodType<
|
|
48
|
-
HealthControllerHealthCheckRequest,
|
|
49
|
-
z.ZodTypeDef,
|
|
50
|
-
unknown
|
|
51
|
-
> = z.object({
|
|
52
|
-
"idempotency-key": z.string().optional(),
|
|
53
|
-
}).transform((v) => {
|
|
54
|
-
return remap$(v, {
|
|
55
|
-
"idempotency-key": "idempotencyKey",
|
|
56
|
-
});
|
|
57
|
-
});
|
|
58
|
-
|
|
59
|
-
/** @internal */
|
|
60
|
-
export type HealthControllerHealthCheckRequest$Outbound = {
|
|
61
|
-
"idempotency-key"?: string | undefined;
|
|
62
|
-
};
|
|
63
|
-
|
|
64
|
-
/** @internal */
|
|
65
|
-
export const HealthControllerHealthCheckRequest$outboundSchema: z.ZodType<
|
|
66
|
-
HealthControllerHealthCheckRequest$Outbound,
|
|
67
|
-
z.ZodTypeDef,
|
|
68
|
-
HealthControllerHealthCheckRequest
|
|
69
|
-
> = z.object({
|
|
70
|
-
idempotencyKey: z.string().optional(),
|
|
71
|
-
}).transform((v) => {
|
|
72
|
-
return remap$(v, {
|
|
73
|
-
idempotencyKey: "idempotency-key",
|
|
74
|
-
});
|
|
75
|
-
});
|
|
76
|
-
|
|
77
|
-
/**
|
|
78
|
-
* @internal
|
|
79
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
80
|
-
*/
|
|
81
|
-
export namespace HealthControllerHealthCheckRequest$ {
|
|
82
|
-
/** @deprecated use `HealthControllerHealthCheckRequest$inboundSchema` instead. */
|
|
83
|
-
export const inboundSchema = HealthControllerHealthCheckRequest$inboundSchema;
|
|
84
|
-
/** @deprecated use `HealthControllerHealthCheckRequest$outboundSchema` instead. */
|
|
85
|
-
export const outboundSchema =
|
|
86
|
-
HealthControllerHealthCheckRequest$outboundSchema;
|
|
87
|
-
/** @deprecated use `HealthControllerHealthCheckRequest$Outbound` instead. */
|
|
88
|
-
export type Outbound = HealthControllerHealthCheckRequest$Outbound;
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
export function healthControllerHealthCheckRequestToJSON(
|
|
92
|
-
healthControllerHealthCheckRequest: HealthControllerHealthCheckRequest,
|
|
93
|
-
): string {
|
|
94
|
-
return JSON.stringify(
|
|
95
|
-
HealthControllerHealthCheckRequest$outboundSchema.parse(
|
|
96
|
-
healthControllerHealthCheckRequest,
|
|
97
|
-
),
|
|
98
|
-
);
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
export function healthControllerHealthCheckRequestFromJSON(
|
|
102
|
-
jsonString: string,
|
|
103
|
-
): SafeParseResult<HealthControllerHealthCheckRequest, SDKValidationError> {
|
|
104
|
-
return safeParse(
|
|
105
|
-
jsonString,
|
|
106
|
-
(x) =>
|
|
107
|
-
HealthControllerHealthCheckRequest$inboundSchema.parse(JSON.parse(x)),
|
|
108
|
-
`Failed to parse 'HealthControllerHealthCheckRequest' from JSON`,
|
|
109
|
-
);
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
/** @internal */
|
|
113
|
-
export const Info$inboundSchema: z.ZodType<Info, z.ZodTypeDef, unknown> =
|
|
114
|
-
collectExtraKeys$(
|
|
115
|
-
z.object({
|
|
116
|
-
status: z.string(),
|
|
117
|
-
}).catchall(z.any()),
|
|
118
|
-
"additionalProperties",
|
|
119
|
-
);
|
|
120
|
-
|
|
121
|
-
/** @internal */
|
|
122
|
-
export type Info$Outbound = {
|
|
123
|
-
status: string;
|
|
124
|
-
[additionalProperties: string]: unknown;
|
|
125
|
-
};
|
|
126
|
-
|
|
127
|
-
/** @internal */
|
|
128
|
-
export const Info$outboundSchema: z.ZodType<Info$Outbound, z.ZodTypeDef, Info> =
|
|
129
|
-
z.object({
|
|
130
|
-
status: z.string(),
|
|
131
|
-
additionalProperties: z.record(z.any()),
|
|
132
|
-
}).transform((v) => {
|
|
133
|
-
return {
|
|
134
|
-
...v.additionalProperties,
|
|
135
|
-
...remap$(v, {
|
|
136
|
-
additionalProperties: null,
|
|
137
|
-
}),
|
|
138
|
-
};
|
|
139
|
-
});
|
|
140
|
-
|
|
141
|
-
/**
|
|
142
|
-
* @internal
|
|
143
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
144
|
-
*/
|
|
145
|
-
export namespace Info$ {
|
|
146
|
-
/** @deprecated use `Info$inboundSchema` instead. */
|
|
147
|
-
export const inboundSchema = Info$inboundSchema;
|
|
148
|
-
/** @deprecated use `Info$outboundSchema` instead. */
|
|
149
|
-
export const outboundSchema = Info$outboundSchema;
|
|
150
|
-
/** @deprecated use `Info$Outbound` instead. */
|
|
151
|
-
export type Outbound = Info$Outbound;
|
|
152
|
-
}
|
|
153
|
-
|
|
154
|
-
export function infoToJSON(info: Info): string {
|
|
155
|
-
return JSON.stringify(Info$outboundSchema.parse(info));
|
|
156
|
-
}
|
|
157
|
-
|
|
158
|
-
export function infoFromJSON(
|
|
159
|
-
jsonString: string,
|
|
160
|
-
): SafeParseResult<Info, SDKValidationError> {
|
|
161
|
-
return safeParse(
|
|
162
|
-
jsonString,
|
|
163
|
-
(x) => Info$inboundSchema.parse(JSON.parse(x)),
|
|
164
|
-
`Failed to parse 'Info' from JSON`,
|
|
165
|
-
);
|
|
166
|
-
}
|
|
167
|
-
|
|
168
|
-
/** @internal */
|
|
169
|
-
export const ErrorT$inboundSchema: z.ZodType<ErrorT, z.ZodTypeDef, unknown> =
|
|
170
|
-
collectExtraKeys$(
|
|
171
|
-
z.object({
|
|
172
|
-
status: z.string(),
|
|
173
|
-
}).catchall(z.any()),
|
|
174
|
-
"additionalProperties",
|
|
175
|
-
);
|
|
176
|
-
|
|
177
|
-
/** @internal */
|
|
178
|
-
export type ErrorT$Outbound = {
|
|
179
|
-
status: string;
|
|
180
|
-
[additionalProperties: string]: unknown;
|
|
181
|
-
};
|
|
182
|
-
|
|
183
|
-
/** @internal */
|
|
184
|
-
export const ErrorT$outboundSchema: z.ZodType<
|
|
185
|
-
ErrorT$Outbound,
|
|
186
|
-
z.ZodTypeDef,
|
|
187
|
-
ErrorT
|
|
188
|
-
> = z.object({
|
|
189
|
-
status: z.string(),
|
|
190
|
-
additionalProperties: z.record(z.any()),
|
|
191
|
-
}).transform((v) => {
|
|
192
|
-
return {
|
|
193
|
-
...v.additionalProperties,
|
|
194
|
-
...remap$(v, {
|
|
195
|
-
additionalProperties: null,
|
|
196
|
-
}),
|
|
197
|
-
};
|
|
198
|
-
});
|
|
199
|
-
|
|
200
|
-
/**
|
|
201
|
-
* @internal
|
|
202
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
203
|
-
*/
|
|
204
|
-
export namespace ErrorT$ {
|
|
205
|
-
/** @deprecated use `ErrorT$inboundSchema` instead. */
|
|
206
|
-
export const inboundSchema = ErrorT$inboundSchema;
|
|
207
|
-
/** @deprecated use `ErrorT$outboundSchema` instead. */
|
|
208
|
-
export const outboundSchema = ErrorT$outboundSchema;
|
|
209
|
-
/** @deprecated use `ErrorT$Outbound` instead. */
|
|
210
|
-
export type Outbound = ErrorT$Outbound;
|
|
211
|
-
}
|
|
212
|
-
|
|
213
|
-
export function errorToJSON(errorT: ErrorT): string {
|
|
214
|
-
return JSON.stringify(ErrorT$outboundSchema.parse(errorT));
|
|
215
|
-
}
|
|
216
|
-
|
|
217
|
-
export function errorFromJSON(
|
|
218
|
-
jsonString: string,
|
|
219
|
-
): SafeParseResult<ErrorT, SDKValidationError> {
|
|
220
|
-
return safeParse(
|
|
221
|
-
jsonString,
|
|
222
|
-
(x) => ErrorT$inboundSchema.parse(JSON.parse(x)),
|
|
223
|
-
`Failed to parse 'ErrorT' from JSON`,
|
|
224
|
-
);
|
|
225
|
-
}
|
|
226
|
-
|
|
227
|
-
/** @internal */
|
|
228
|
-
export const Details$inboundSchema: z.ZodType<Details, z.ZodTypeDef, unknown> =
|
|
229
|
-
collectExtraKeys$(
|
|
230
|
-
z.object({
|
|
231
|
-
status: z.string(),
|
|
232
|
-
}).catchall(z.any()),
|
|
233
|
-
"additionalProperties",
|
|
234
|
-
);
|
|
235
|
-
|
|
236
|
-
/** @internal */
|
|
237
|
-
export type Details$Outbound = {
|
|
238
|
-
status: string;
|
|
239
|
-
[additionalProperties: string]: unknown;
|
|
240
|
-
};
|
|
241
|
-
|
|
242
|
-
/** @internal */
|
|
243
|
-
export const Details$outboundSchema: z.ZodType<
|
|
244
|
-
Details$Outbound,
|
|
245
|
-
z.ZodTypeDef,
|
|
246
|
-
Details
|
|
247
|
-
> = z.object({
|
|
248
|
-
status: z.string(),
|
|
249
|
-
additionalProperties: z.record(z.any()),
|
|
250
|
-
}).transform((v) => {
|
|
251
|
-
return {
|
|
252
|
-
...v.additionalProperties,
|
|
253
|
-
...remap$(v, {
|
|
254
|
-
additionalProperties: null,
|
|
255
|
-
}),
|
|
256
|
-
};
|
|
257
|
-
});
|
|
258
|
-
|
|
259
|
-
/**
|
|
260
|
-
* @internal
|
|
261
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
262
|
-
*/
|
|
263
|
-
export namespace Details$ {
|
|
264
|
-
/** @deprecated use `Details$inboundSchema` instead. */
|
|
265
|
-
export const inboundSchema = Details$inboundSchema;
|
|
266
|
-
/** @deprecated use `Details$outboundSchema` instead. */
|
|
267
|
-
export const outboundSchema = Details$outboundSchema;
|
|
268
|
-
/** @deprecated use `Details$Outbound` instead. */
|
|
269
|
-
export type Outbound = Details$Outbound;
|
|
270
|
-
}
|
|
271
|
-
|
|
272
|
-
export function detailsToJSON(details: Details): string {
|
|
273
|
-
return JSON.stringify(Details$outboundSchema.parse(details));
|
|
274
|
-
}
|
|
275
|
-
|
|
276
|
-
export function detailsFromJSON(
|
|
277
|
-
jsonString: string,
|
|
278
|
-
): SafeParseResult<Details, SDKValidationError> {
|
|
279
|
-
return safeParse(
|
|
280
|
-
jsonString,
|
|
281
|
-
(x) => Details$inboundSchema.parse(JSON.parse(x)),
|
|
282
|
-
`Failed to parse 'Details' from JSON`,
|
|
283
|
-
);
|
|
284
|
-
}
|
|
285
|
-
|
|
286
|
-
/** @internal */
|
|
287
|
-
export const HealthControllerHealthCheckResponseBody$inboundSchema: z.ZodType<
|
|
288
|
-
HealthControllerHealthCheckResponseBody,
|
|
289
|
-
z.ZodTypeDef,
|
|
290
|
-
unknown
|
|
291
|
-
> = z.object({
|
|
292
|
-
status: z.string().optional(),
|
|
293
|
-
info: z.nullable(z.record(z.lazy(() => Info$inboundSchema))).optional(),
|
|
294
|
-
error: z.nullable(z.record(z.lazy(() => ErrorT$inboundSchema))).optional(),
|
|
295
|
-
details: z.record(z.lazy(() => Details$inboundSchema)).optional(),
|
|
296
|
-
});
|
|
297
|
-
|
|
298
|
-
/** @internal */
|
|
299
|
-
export type HealthControllerHealthCheckResponseBody$Outbound = {
|
|
300
|
-
status?: string | undefined;
|
|
301
|
-
info?: { [k: string]: Info$Outbound } | null | undefined;
|
|
302
|
-
error?: { [k: string]: ErrorT$Outbound } | null | undefined;
|
|
303
|
-
details?: { [k: string]: Details$Outbound } | undefined;
|
|
304
|
-
};
|
|
305
|
-
|
|
306
|
-
/** @internal */
|
|
307
|
-
export const HealthControllerHealthCheckResponseBody$outboundSchema: z.ZodType<
|
|
308
|
-
HealthControllerHealthCheckResponseBody$Outbound,
|
|
309
|
-
z.ZodTypeDef,
|
|
310
|
-
HealthControllerHealthCheckResponseBody
|
|
311
|
-
> = z.object({
|
|
312
|
-
status: z.string().optional(),
|
|
313
|
-
info: z.nullable(z.record(z.lazy(() => Info$outboundSchema))).optional(),
|
|
314
|
-
error: z.nullable(z.record(z.lazy(() => ErrorT$outboundSchema))).optional(),
|
|
315
|
-
details: z.record(z.lazy(() => Details$outboundSchema)).optional(),
|
|
316
|
-
});
|
|
317
|
-
|
|
318
|
-
/**
|
|
319
|
-
* @internal
|
|
320
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
321
|
-
*/
|
|
322
|
-
export namespace HealthControllerHealthCheckResponseBody$ {
|
|
323
|
-
/** @deprecated use `HealthControllerHealthCheckResponseBody$inboundSchema` instead. */
|
|
324
|
-
export const inboundSchema =
|
|
325
|
-
HealthControllerHealthCheckResponseBody$inboundSchema;
|
|
326
|
-
/** @deprecated use `HealthControllerHealthCheckResponseBody$outboundSchema` instead. */
|
|
327
|
-
export const outboundSchema =
|
|
328
|
-
HealthControllerHealthCheckResponseBody$outboundSchema;
|
|
329
|
-
/** @deprecated use `HealthControllerHealthCheckResponseBody$Outbound` instead. */
|
|
330
|
-
export type Outbound = HealthControllerHealthCheckResponseBody$Outbound;
|
|
331
|
-
}
|
|
332
|
-
|
|
333
|
-
export function healthControllerHealthCheckResponseBodyToJSON(
|
|
334
|
-
healthControllerHealthCheckResponseBody:
|
|
335
|
-
HealthControllerHealthCheckResponseBody,
|
|
336
|
-
): string {
|
|
337
|
-
return JSON.stringify(
|
|
338
|
-
HealthControllerHealthCheckResponseBody$outboundSchema.parse(
|
|
339
|
-
healthControllerHealthCheckResponseBody,
|
|
340
|
-
),
|
|
341
|
-
);
|
|
342
|
-
}
|
|
343
|
-
|
|
344
|
-
export function healthControllerHealthCheckResponseBodyFromJSON(
|
|
345
|
-
jsonString: string,
|
|
346
|
-
): SafeParseResult<
|
|
347
|
-
HealthControllerHealthCheckResponseBody,
|
|
348
|
-
SDKValidationError
|
|
349
|
-
> {
|
|
350
|
-
return safeParse(
|
|
351
|
-
jsonString,
|
|
352
|
-
(x) =>
|
|
353
|
-
HealthControllerHealthCheckResponseBody$inboundSchema.parse(
|
|
354
|
-
JSON.parse(x),
|
|
355
|
-
),
|
|
356
|
-
`Failed to parse 'HealthControllerHealthCheckResponseBody' from JSON`,
|
|
357
|
-
);
|
|
358
|
-
}
|
|
@@ -1,174 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
import * as z from "zod";
|
|
6
|
-
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
-
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
-
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
-
import * as components from "../components/index.js";
|
|
10
|
-
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
|
-
|
|
12
|
-
export type HealthControllerTestIdempotencyRequest = {
|
|
13
|
-
/**
|
|
14
|
-
* A header for idempotency purposes
|
|
15
|
-
*/
|
|
16
|
-
idempotencyKey?: string | undefined;
|
|
17
|
-
idempotencyTestingDto: components.IdempotencyTestingDto;
|
|
18
|
-
};
|
|
19
|
-
|
|
20
|
-
export type HealthControllerTestIdempotencyResponse = {
|
|
21
|
-
headers: { [k: string]: Array<string> };
|
|
22
|
-
result: components.IdempotenceTestingResponse;
|
|
23
|
-
};
|
|
24
|
-
|
|
25
|
-
/** @internal */
|
|
26
|
-
export const HealthControllerTestIdempotencyRequest$inboundSchema: z.ZodType<
|
|
27
|
-
HealthControllerTestIdempotencyRequest,
|
|
28
|
-
z.ZodTypeDef,
|
|
29
|
-
unknown
|
|
30
|
-
> = z.object({
|
|
31
|
-
"idempotency-key": z.string().optional(),
|
|
32
|
-
IdempotencyTestingDto: components.IdempotencyTestingDto$inboundSchema,
|
|
33
|
-
}).transform((v) => {
|
|
34
|
-
return remap$(v, {
|
|
35
|
-
"idempotency-key": "idempotencyKey",
|
|
36
|
-
"IdempotencyTestingDto": "idempotencyTestingDto",
|
|
37
|
-
});
|
|
38
|
-
});
|
|
39
|
-
|
|
40
|
-
/** @internal */
|
|
41
|
-
export type HealthControllerTestIdempotencyRequest$Outbound = {
|
|
42
|
-
"idempotency-key"?: string | undefined;
|
|
43
|
-
IdempotencyTestingDto: components.IdempotencyTestingDto$Outbound;
|
|
44
|
-
};
|
|
45
|
-
|
|
46
|
-
/** @internal */
|
|
47
|
-
export const HealthControllerTestIdempotencyRequest$outboundSchema: z.ZodType<
|
|
48
|
-
HealthControllerTestIdempotencyRequest$Outbound,
|
|
49
|
-
z.ZodTypeDef,
|
|
50
|
-
HealthControllerTestIdempotencyRequest
|
|
51
|
-
> = z.object({
|
|
52
|
-
idempotencyKey: z.string().optional(),
|
|
53
|
-
idempotencyTestingDto: components.IdempotencyTestingDto$outboundSchema,
|
|
54
|
-
}).transform((v) => {
|
|
55
|
-
return remap$(v, {
|
|
56
|
-
idempotencyKey: "idempotency-key",
|
|
57
|
-
idempotencyTestingDto: "IdempotencyTestingDto",
|
|
58
|
-
});
|
|
59
|
-
});
|
|
60
|
-
|
|
61
|
-
/**
|
|
62
|
-
* @internal
|
|
63
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
64
|
-
*/
|
|
65
|
-
export namespace HealthControllerTestIdempotencyRequest$ {
|
|
66
|
-
/** @deprecated use `HealthControllerTestIdempotencyRequest$inboundSchema` instead. */
|
|
67
|
-
export const inboundSchema =
|
|
68
|
-
HealthControllerTestIdempotencyRequest$inboundSchema;
|
|
69
|
-
/** @deprecated use `HealthControllerTestIdempotencyRequest$outboundSchema` instead. */
|
|
70
|
-
export const outboundSchema =
|
|
71
|
-
HealthControllerTestIdempotencyRequest$outboundSchema;
|
|
72
|
-
/** @deprecated use `HealthControllerTestIdempotencyRequest$Outbound` instead. */
|
|
73
|
-
export type Outbound = HealthControllerTestIdempotencyRequest$Outbound;
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
export function healthControllerTestIdempotencyRequestToJSON(
|
|
77
|
-
healthControllerTestIdempotencyRequest:
|
|
78
|
-
HealthControllerTestIdempotencyRequest,
|
|
79
|
-
): string {
|
|
80
|
-
return JSON.stringify(
|
|
81
|
-
HealthControllerTestIdempotencyRequest$outboundSchema.parse(
|
|
82
|
-
healthControllerTestIdempotencyRequest,
|
|
83
|
-
),
|
|
84
|
-
);
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
export function healthControllerTestIdempotencyRequestFromJSON(
|
|
88
|
-
jsonString: string,
|
|
89
|
-
): SafeParseResult<HealthControllerTestIdempotencyRequest, SDKValidationError> {
|
|
90
|
-
return safeParse(
|
|
91
|
-
jsonString,
|
|
92
|
-
(x) =>
|
|
93
|
-
HealthControllerTestIdempotencyRequest$inboundSchema.parse(JSON.parse(x)),
|
|
94
|
-
`Failed to parse 'HealthControllerTestIdempotencyRequest' from JSON`,
|
|
95
|
-
);
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
/** @internal */
|
|
99
|
-
export const HealthControllerTestIdempotencyResponse$inboundSchema: z.ZodType<
|
|
100
|
-
HealthControllerTestIdempotencyResponse,
|
|
101
|
-
z.ZodTypeDef,
|
|
102
|
-
unknown
|
|
103
|
-
> = z.object({
|
|
104
|
-
Headers: z.record(z.array(z.string())),
|
|
105
|
-
Result: components.IdempotenceTestingResponse$inboundSchema,
|
|
106
|
-
}).transform((v) => {
|
|
107
|
-
return remap$(v, {
|
|
108
|
-
"Headers": "headers",
|
|
109
|
-
"Result": "result",
|
|
110
|
-
});
|
|
111
|
-
});
|
|
112
|
-
|
|
113
|
-
/** @internal */
|
|
114
|
-
export type HealthControllerTestIdempotencyResponse$Outbound = {
|
|
115
|
-
Headers: { [k: string]: Array<string> };
|
|
116
|
-
Result: components.IdempotenceTestingResponse$Outbound;
|
|
117
|
-
};
|
|
118
|
-
|
|
119
|
-
/** @internal */
|
|
120
|
-
export const HealthControllerTestIdempotencyResponse$outboundSchema: z.ZodType<
|
|
121
|
-
HealthControllerTestIdempotencyResponse$Outbound,
|
|
122
|
-
z.ZodTypeDef,
|
|
123
|
-
HealthControllerTestIdempotencyResponse
|
|
124
|
-
> = z.object({
|
|
125
|
-
headers: z.record(z.array(z.string())),
|
|
126
|
-
result: components.IdempotenceTestingResponse$outboundSchema,
|
|
127
|
-
}).transform((v) => {
|
|
128
|
-
return remap$(v, {
|
|
129
|
-
headers: "Headers",
|
|
130
|
-
result: "Result",
|
|
131
|
-
});
|
|
132
|
-
});
|
|
133
|
-
|
|
134
|
-
/**
|
|
135
|
-
* @internal
|
|
136
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
137
|
-
*/
|
|
138
|
-
export namespace HealthControllerTestIdempotencyResponse$ {
|
|
139
|
-
/** @deprecated use `HealthControllerTestIdempotencyResponse$inboundSchema` instead. */
|
|
140
|
-
export const inboundSchema =
|
|
141
|
-
HealthControllerTestIdempotencyResponse$inboundSchema;
|
|
142
|
-
/** @deprecated use `HealthControllerTestIdempotencyResponse$outboundSchema` instead. */
|
|
143
|
-
export const outboundSchema =
|
|
144
|
-
HealthControllerTestIdempotencyResponse$outboundSchema;
|
|
145
|
-
/** @deprecated use `HealthControllerTestIdempotencyResponse$Outbound` instead. */
|
|
146
|
-
export type Outbound = HealthControllerTestIdempotencyResponse$Outbound;
|
|
147
|
-
}
|
|
148
|
-
|
|
149
|
-
export function healthControllerTestIdempotencyResponseToJSON(
|
|
150
|
-
healthControllerTestIdempotencyResponse:
|
|
151
|
-
HealthControllerTestIdempotencyResponse,
|
|
152
|
-
): string {
|
|
153
|
-
return JSON.stringify(
|
|
154
|
-
HealthControllerTestIdempotencyResponse$outboundSchema.parse(
|
|
155
|
-
healthControllerTestIdempotencyResponse,
|
|
156
|
-
),
|
|
157
|
-
);
|
|
158
|
-
}
|
|
159
|
-
|
|
160
|
-
export function healthControllerTestIdempotencyResponseFromJSON(
|
|
161
|
-
jsonString: string,
|
|
162
|
-
): SafeParseResult<
|
|
163
|
-
HealthControllerTestIdempotencyResponse,
|
|
164
|
-
SDKValidationError
|
|
165
|
-
> {
|
|
166
|
-
return safeParse(
|
|
167
|
-
jsonString,
|
|
168
|
-
(x) =>
|
|
169
|
-
HealthControllerTestIdempotencyResponse$inboundSchema.parse(
|
|
170
|
-
JSON.parse(x),
|
|
171
|
-
),
|
|
172
|
-
`Failed to parse 'HealthControllerTestIdempotencyResponse' from JSON`,
|
|
173
|
-
);
|
|
174
|
-
}
|