@novu/api 0.0.4 → 0.1.0

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.
Files changed (83) hide show
  1. package/README.md +0 -9
  2. package/jsr.json +1 -1
  3. package/lib/config.d.ts +2 -2
  4. package/lib/config.js +2 -2
  5. package/models/components/index.d.ts +0 -3
  6. package/models/components/index.d.ts.map +1 -1
  7. package/models/components/index.js +0 -3
  8. package/models/components/index.js.map +1 -1
  9. package/models/errors/index.d.ts +0 -1
  10. package/models/errors/index.d.ts.map +1 -1
  11. package/models/errors/index.js +0 -1
  12. package/models/errors/index.js.map +1 -1
  13. package/models/operations/index.d.ts +0 -3
  14. package/models/operations/index.d.ts.map +1 -1
  15. package/models/operations/index.js +0 -3
  16. package/models/operations/index.js.map +1 -1
  17. package/package.json +1 -1
  18. package/sdk/sdk.d.ts +0 -3
  19. package/sdk/sdk.d.ts.map +1 -1
  20. package/sdk/sdk.js +0 -4
  21. package/sdk/sdk.js.map +1 -1
  22. package/sources/json-development.json +0 -1170
  23. package/src/lib/config.ts +2 -2
  24. package/src/models/components/index.ts +0 -3
  25. package/src/models/errors/index.ts +0 -1
  26. package/src/models/operations/index.ts +0 -3
  27. package/src/sdk/sdk.ts +0 -6
  28. package/docs/sdks/admin/README.md +0 -234
  29. package/funcs/adminGenerateRandomNumber.d.ts +0 -10
  30. package/funcs/adminGenerateRandomNumber.d.ts.map +0 -1
  31. package/funcs/adminGenerateRandomNumber.js +0 -126
  32. package/funcs/adminGenerateRandomNumber.js.map +0 -1
  33. package/funcs/adminHealthControllerHealthCheck.d.ts +0 -10
  34. package/funcs/adminHealthControllerHealthCheck.d.ts.map +0 -1
  35. package/funcs/adminHealthControllerHealthCheck.js +0 -109
  36. package/funcs/adminHealthControllerHealthCheck.js.map +0 -1
  37. package/funcs/adminTestIdempotency.d.ts +0 -11
  38. package/funcs/adminTestIdempotency.d.ts.map +0 -1
  39. package/funcs/adminTestIdempotency.js +0 -129
  40. package/funcs/adminTestIdempotency.js.map +0 -1
  41. package/models/components/idempotencetestingresponse.d.ts +0 -32
  42. package/models/components/idempotencetestingresponse.d.ts.map +0 -1
  43. package/models/components/idempotencetestingresponse.js +0 -59
  44. package/models/components/idempotencetestingresponse.js.map +0 -1
  45. package/models/components/idempotencybehaviorenum.d.ts +0 -37
  46. package/models/components/idempotencybehaviorenum.d.ts.map +0 -1
  47. package/models/components/idempotencybehaviorenum.js +0 -54
  48. package/models/components/idempotencybehaviorenum.js.map +0 -1
  49. package/models/components/idempotencytestingdto.d.ts +0 -33
  50. package/models/components/idempotencytestingdto.d.ts.map +0 -1
  51. package/models/components/idempotencytestingdto.js +0 -60
  52. package/models/components/idempotencytestingdto.js.map +0 -1
  53. package/models/errors/healthcontrollerhealthcheck.d.ts +0 -153
  54. package/models/errors/healthcontrollerhealthcheck.d.ts.map +0 -1
  55. package/models/errors/healthcontrollerhealthcheck.js +0 -190
  56. package/models/errors/healthcontrollerhealthcheck.js.map +0 -1
  57. package/models/operations/healthcontrollergeneraterandomnumber.d.ts +0 -64
  58. package/models/operations/healthcontrollergeneraterandomnumber.d.ts.map +0 -1
  59. package/models/operations/healthcontrollergeneraterandomnumber.js +0 -108
  60. package/models/operations/healthcontrollergeneraterandomnumber.js.map +0 -1
  61. package/models/operations/healthcontrollerhealthcheck.d.ts +0 -165
  62. package/models/operations/healthcontrollerhealthcheck.d.ts.map +0 -1
  63. package/models/operations/healthcontrollerhealthcheck.js +0 -206
  64. package/models/operations/healthcontrollerhealthcheck.js.map +0 -1
  65. package/models/operations/healthcontrollertestidempotency.d.ts +0 -66
  66. package/models/operations/healthcontrollertestidempotency.d.ts.map +0 -1
  67. package/models/operations/healthcontrollertestidempotency.js +0 -112
  68. package/models/operations/healthcontrollertestidempotency.js.map +0 -1
  69. package/sdk/admin.d.ts +0 -9
  70. package/sdk/admin.d.ts.map +0 -1
  71. package/sdk/admin.js +0 -24
  72. package/sdk/admin.js.map +0 -1
  73. package/src/funcs/adminGenerateRandomNumber.ts +0 -183
  74. package/src/funcs/adminHealthControllerHealthCheck.ts +0 -153
  75. package/src/funcs/adminTestIdempotency.ts +0 -190
  76. package/src/models/components/idempotencetestingresponse.ts +0 -69
  77. package/src/models/components/idempotencybehaviorenum.ts +0 -42
  78. package/src/models/components/idempotencytestingdto.ts +0 -74
  79. package/src/models/errors/healthcontrollerhealthcheck.ts +0 -291
  80. package/src/models/operations/healthcontrollergeneraterandomnumber.ts +0 -177
  81. package/src/models/operations/healthcontrollerhealthcheck.ts +0 -358
  82. package/src/models/operations/healthcontrollertestidempotency.ts +0 -174
  83. package/src/sdk/admin.ts +0 -48
@@ -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
- }
package/src/sdk/admin.ts DELETED
@@ -1,48 +0,0 @@
1
- /*
2
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- */
4
-
5
- import { adminGenerateRandomNumber } from "../funcs/adminGenerateRandomNumber.js";
6
- import { adminHealthControllerHealthCheck } from "../funcs/adminHealthControllerHealthCheck.js";
7
- import { adminTestIdempotency } from "../funcs/adminTestIdempotency.js";
8
- import { ClientSDK, RequestOptions } from "../lib/sdks.js";
9
- import * as components from "../models/components/index.js";
10
- import * as operations from "../models/operations/index.js";
11
- import { unwrapAsync } from "../types/fp.js";
12
-
13
- export class Admin extends ClientSDK {
14
- async healthControllerHealthCheck(
15
- idempotencyKey?: string | undefined,
16
- options?: RequestOptions,
17
- ): Promise<operations.HealthControllerHealthCheckResponseBody> {
18
- return unwrapAsync(adminHealthControllerHealthCheck(
19
- this,
20
- idempotencyKey,
21
- options,
22
- ));
23
- }
24
-
25
- async testIdempotency(
26
- idempotencyTestingDto: components.IdempotencyTestingDto,
27
- idempotencyKey?: string | undefined,
28
- options?: RequestOptions,
29
- ): Promise<operations.HealthControllerTestIdempotencyResponse> {
30
- return unwrapAsync(adminTestIdempotency(
31
- this,
32
- idempotencyTestingDto,
33
- idempotencyKey,
34
- options,
35
- ));
36
- }
37
-
38
- async generateRandomNumber(
39
- idempotencyKey?: string | undefined,
40
- options?: RequestOptions,
41
- ): Promise<operations.HealthControllerGenerateRandomNumberResponse> {
42
- return unwrapAsync(adminGenerateRandomNumber(
43
- this,
44
- idempotencyKey,
45
- options,
46
- ));
47
- }
48
- }