@novu/api 0.0.1-alpha.106 → 0.0.1-alpha.109
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/lib/config.d.ts +2 -2
- package/lib/config.js +2 -2
- package/models/errors/validationerrordto.d.ts +20 -25
- package/models/errors/validationerrordto.d.ts.map +1 -1
- package/models/errors/validationerrordto.js +9 -29
- package/models/errors/validationerrordto.js.map +1 -1
- package/package.json +1 -1
- package/src/lib/config.ts +2 -2
- package/src/models/errors/validationerrordto.ts +34 -48
package/lib/config.d.ts
CHANGED
|
@@ -27,8 +27,8 @@ export declare function serverURLFromOptions(options: SDKOptions): URL | null;
|
|
|
27
27
|
export declare const SDK_METADATA: {
|
|
28
28
|
readonly language: "typescript";
|
|
29
29
|
readonly openapiDocVersion: "1.0";
|
|
30
|
-
readonly sdkVersion: "0.0.1-alpha.
|
|
30
|
+
readonly sdkVersion: "0.0.1-alpha.109";
|
|
31
31
|
readonly genVersion: "2.477.4";
|
|
32
|
-
readonly userAgent: "speakeasy-sdk/typescript 0.0.1-alpha.
|
|
32
|
+
readonly userAgent: "speakeasy-sdk/typescript 0.0.1-alpha.109 2.477.4 1.0 @novu/api";
|
|
33
33
|
};
|
|
34
34
|
//# sourceMappingURL=config.d.ts.map
|
package/lib/config.js
CHANGED
|
@@ -30,8 +30,8 @@ exports.serverURLFromOptions = serverURLFromOptions;
|
|
|
30
30
|
exports.SDK_METADATA = {
|
|
31
31
|
language: "typescript",
|
|
32
32
|
openapiDocVersion: "1.0",
|
|
33
|
-
sdkVersion: "0.0.1-alpha.
|
|
33
|
+
sdkVersion: "0.0.1-alpha.109",
|
|
34
34
|
genVersion: "2.477.4",
|
|
35
|
-
userAgent: "speakeasy-sdk/typescript 0.0.1-alpha.
|
|
35
|
+
userAgent: "speakeasy-sdk/typescript 0.0.1-alpha.109 2.477.4 1.0 @novu/api",
|
|
36
36
|
};
|
|
37
37
|
//# sourceMappingURL=config.js.map
|
|
@@ -1,11 +1,18 @@
|
|
|
1
1
|
import * as z from "zod";
|
|
2
2
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
3
3
|
import { SDKValidationError } from "./sdkvalidationerror.js";
|
|
4
|
-
export type
|
|
5
|
-
|
|
4
|
+
export type Value = string | number | boolean | {
|
|
5
|
+
[k: string]: any;
|
|
6
|
+
} | Array<{
|
|
7
|
+
[k: string]: any;
|
|
8
|
+
}>;
|
|
6
9
|
export type Errors = {
|
|
7
10
|
messages: Array<string>;
|
|
8
|
-
value:
|
|
11
|
+
value: string | number | boolean | {
|
|
12
|
+
[k: string]: any;
|
|
13
|
+
} | Array<{
|
|
14
|
+
[k: string]: any;
|
|
15
|
+
}> | null;
|
|
9
16
|
};
|
|
10
17
|
export type ValidationErrorDtoData = {
|
|
11
18
|
/**
|
|
@@ -81,29 +88,13 @@ export declare class ValidationErrorDto extends Error {
|
|
|
81
88
|
constructor(err: ValidationErrorDtoData);
|
|
82
89
|
}
|
|
83
90
|
/** @internal */
|
|
84
|
-
export declare const Four$inboundSchema: z.ZodType<Four, z.ZodTypeDef, unknown>;
|
|
85
|
-
/** @internal */
|
|
86
|
-
export type Four$Outbound = {};
|
|
87
|
-
/** @internal */
|
|
88
|
-
export declare const Four$outboundSchema: z.ZodType<Four$Outbound, z.ZodTypeDef, Four>;
|
|
89
|
-
/**
|
|
90
|
-
* @internal
|
|
91
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
92
|
-
*/
|
|
93
|
-
export declare namespace Four$ {
|
|
94
|
-
/** @deprecated use `Four$inboundSchema` instead. */
|
|
95
|
-
const inboundSchema: z.ZodType<Four, z.ZodTypeDef, unknown>;
|
|
96
|
-
/** @deprecated use `Four$outboundSchema` instead. */
|
|
97
|
-
const outboundSchema: z.ZodType<Four$Outbound, z.ZodTypeDef, Four>;
|
|
98
|
-
/** @deprecated use `Four$Outbound` instead. */
|
|
99
|
-
type Outbound = Four$Outbound;
|
|
100
|
-
}
|
|
101
|
-
export declare function fourToJSON(four: Four): string;
|
|
102
|
-
export declare function fourFromJSON(jsonString: string): SafeParseResult<Four, SDKValidationError>;
|
|
103
|
-
/** @internal */
|
|
104
91
|
export declare const Value$inboundSchema: z.ZodType<Value, z.ZodTypeDef, unknown>;
|
|
105
92
|
/** @internal */
|
|
106
|
-
export type Value$Outbound =
|
|
93
|
+
export type Value$Outbound = string | number | boolean | {
|
|
94
|
+
[k: string]: any;
|
|
95
|
+
} | Array<{
|
|
96
|
+
[k: string]: any;
|
|
97
|
+
}>;
|
|
107
98
|
/** @internal */
|
|
108
99
|
export declare const Value$outboundSchema: z.ZodType<Value$Outbound, z.ZodTypeDef, Value>;
|
|
109
100
|
/**
|
|
@@ -125,7 +116,11 @@ export declare const Errors$inboundSchema: z.ZodType<Errors, z.ZodTypeDef, unkno
|
|
|
125
116
|
/** @internal */
|
|
126
117
|
export type Errors$Outbound = {
|
|
127
118
|
messages: Array<string>;
|
|
128
|
-
value:
|
|
119
|
+
value: string | number | boolean | {
|
|
120
|
+
[k: string]: any;
|
|
121
|
+
} | Array<{
|
|
122
|
+
[k: string]: any;
|
|
123
|
+
}> | null;
|
|
129
124
|
};
|
|
130
125
|
/** @internal */
|
|
131
126
|
export declare const Errors$outboundSchema: z.ZodType<Errors$Outbound, z.ZodTypeDef, Errors>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"validationerrordto.d.ts","sourceRoot":"","sources":["../../src/models/errors/validationerrordto.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAE7D,MAAM,MAAM,
|
|
1
|
+
{"version":3,"file":"validationerrordto.d.ts","sourceRoot":"","sources":["../../src/models/errors/validationerrordto.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,M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G,CAAA;KAAE,GAAG,SAAS,CAAC;IACvC,OAAO,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC7B,MAAM,EAAE;QAAE,CAAC,CAAC,EAAE,MAAM,GAAG,eAAe,CAAA;KAAE,CAAC;CAC1C,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,iCAAiC,EAAE,CAAC,CAAC,OAAO,CACvD,2BAA2B,EAC3B,CAAC,CAAC,UAAU,EACZ,kBAAkB,CAWf,CAAC;AAEN;;;GAGG;AACH,yBAAiB,mBAAmB,CAAC;IACnC,kEAAkE;IAC3D,MAAM,aAAa,sDAAmC,CAAC;IAC9D,mEAAmE;IAC5D,MAAM,cAAc,0EAAoC,CAAC;IAChE,6DAA6D;IAC7D,KAAY,QAAQ,GAAG,2BAA2B,CAAC;CACpD"}
|
|
@@ -26,7 +26,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
26
26
|
return result;
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.ValidationErrorDto$ = exports.ValidationErrorDto$outboundSchema = exports.ValidationErrorDto$inboundSchema = exports.errorsFromJSON = exports.errorsToJSON = exports.Errors$ = exports.Errors$outboundSchema = exports.Errors$inboundSchema = exports.valueFromJSON = exports.valueToJSON = exports.Value$ = exports.Value$outboundSchema = exports.Value$inboundSchema = exports.
|
|
29
|
+
exports.ValidationErrorDto$ = exports.ValidationErrorDto$outboundSchema = exports.ValidationErrorDto$inboundSchema = exports.errorsFromJSON = exports.errorsToJSON = exports.Errors$ = exports.Errors$outboundSchema = exports.Errors$inboundSchema = exports.valueFromJSON = exports.valueToJSON = exports.Value$ = exports.Value$outboundSchema = exports.Value$inboundSchema = exports.ValidationErrorDto = void 0;
|
|
30
30
|
const z = __importStar(require("zod"));
|
|
31
31
|
const schemas_js_1 = require("../../lib/schemas.js");
|
|
32
32
|
class ValidationErrorDto extends Error {
|
|
@@ -49,43 +49,21 @@ class ValidationErrorDto extends Error {
|
|
|
49
49
|
}
|
|
50
50
|
exports.ValidationErrorDto = ValidationErrorDto;
|
|
51
51
|
/** @internal */
|
|
52
|
-
exports.Four$inboundSchema = z
|
|
53
|
-
.object({});
|
|
54
|
-
/** @internal */
|
|
55
|
-
exports.Four$outboundSchema = z.object({});
|
|
56
|
-
/**
|
|
57
|
-
* @internal
|
|
58
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
59
|
-
*/
|
|
60
|
-
var Four$;
|
|
61
|
-
(function (Four$) {
|
|
62
|
-
/** @deprecated use `Four$inboundSchema` instead. */
|
|
63
|
-
Four$.inboundSchema = exports.Four$inboundSchema;
|
|
64
|
-
/** @deprecated use `Four$outboundSchema` instead. */
|
|
65
|
-
Four$.outboundSchema = exports.Four$outboundSchema;
|
|
66
|
-
})(Four$ || (exports.Four$ = Four$ = {}));
|
|
67
|
-
function fourToJSON(four) {
|
|
68
|
-
return JSON.stringify(exports.Four$outboundSchema.parse(four));
|
|
69
|
-
}
|
|
70
|
-
exports.fourToJSON = fourToJSON;
|
|
71
|
-
function fourFromJSON(jsonString) {
|
|
72
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.Four$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Four' from JSON`);
|
|
73
|
-
}
|
|
74
|
-
exports.fourFromJSON = fourFromJSON;
|
|
75
|
-
/** @internal */
|
|
76
52
|
exports.Value$inboundSchema = z
|
|
77
53
|
.union([
|
|
78
|
-
z.lazy(() => exports.Four$inboundSchema),
|
|
79
54
|
z.string(),
|
|
80
55
|
z.number(),
|
|
81
56
|
z.boolean(),
|
|
57
|
+
z.record(z.any()),
|
|
58
|
+
z.array(z.record(z.any())),
|
|
82
59
|
]);
|
|
83
60
|
/** @internal */
|
|
84
61
|
exports.Value$outboundSchema = z.union([
|
|
85
|
-
z.lazy(() => exports.Four$outboundSchema),
|
|
86
62
|
z.string(),
|
|
87
63
|
z.number(),
|
|
88
64
|
z.boolean(),
|
|
65
|
+
z.record(z.any()),
|
|
66
|
+
z.array(z.record(z.any())),
|
|
89
67
|
]);
|
|
90
68
|
/**
|
|
91
69
|
* @internal
|
|
@@ -111,20 +89,22 @@ exports.Errors$inboundSchema = z
|
|
|
111
89
|
.object({
|
|
112
90
|
messages: z.array(z.string()),
|
|
113
91
|
value: z.nullable(z.union([
|
|
114
|
-
z.lazy(() => exports.Four$inboundSchema),
|
|
115
92
|
z.string(),
|
|
116
93
|
z.number(),
|
|
117
94
|
z.boolean(),
|
|
95
|
+
z.record(z.any()),
|
|
96
|
+
z.array(z.record(z.any())),
|
|
118
97
|
])),
|
|
119
98
|
});
|
|
120
99
|
/** @internal */
|
|
121
100
|
exports.Errors$outboundSchema = z.object({
|
|
122
101
|
messages: z.array(z.string()),
|
|
123
102
|
value: z.nullable(z.union([
|
|
124
|
-
z.lazy(() => exports.Four$outboundSchema),
|
|
125
103
|
z.string(),
|
|
126
104
|
z.number(),
|
|
127
105
|
z.boolean(),
|
|
106
|
+
z.record(z.any()),
|
|
107
|
+
z.array(z.record(z.any())),
|
|
128
108
|
])),
|
|
129
109
|
});
|
|
130
110
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"validationerrordto.js","sourceRoot":"","sources":["../../src/models/errors/validationerrordto.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,uCAAyB;AACzB,qDAAiD;
|
|
1
|
+
{"version":3,"file":"validationerrordto.js","sourceRoot":"","sources":["../../src/models/errors/validationerrordto.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,uCAAyB;AACzB,qDAAiD;AAwDjD,MAAa,kBAAmB,SAAQ,KAAK;IAgC3C,YAAY,GAA2B;QACrC,MAAM,OAAO,GAAG,SAAS,IAAI,GAAG,IAAI,OAAO,GAAG,CAAC,OAAO,KAAK,QAAQ;YACjE,CAAC,CAAC,GAAG,CAAC,OAA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L | null {
|
|
|
55
55
|
export const SDK_METADATA = {
|
|
56
56
|
language: "typescript",
|
|
57
57
|
openapiDocVersion: "1.0",
|
|
58
|
-
sdkVersion: "0.0.1-alpha.
|
|
58
|
+
sdkVersion: "0.0.1-alpha.109",
|
|
59
59
|
genVersion: "2.477.4",
|
|
60
|
-
userAgent: "speakeasy-sdk/typescript 0.0.1-alpha.
|
|
60
|
+
userAgent: "speakeasy-sdk/typescript 0.0.1-alpha.109 2.477.4 1.0 @novu/api",
|
|
61
61
|
} as const;
|
|
@@ -7,13 +7,22 @@ import { safeParse } from "../../lib/schemas.js";
|
|
|
7
7
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
8
|
import { SDKValidationError } from "./sdkvalidationerror.js";
|
|
9
9
|
|
|
10
|
-
export type
|
|
11
|
-
|
|
12
|
-
|
|
10
|
+
export type Value =
|
|
11
|
+
| string
|
|
12
|
+
| number
|
|
13
|
+
| boolean
|
|
14
|
+
| { [k: string]: any }
|
|
15
|
+
| Array<{ [k: string]: any }>;
|
|
13
16
|
|
|
14
17
|
export type Errors = {
|
|
15
18
|
messages: Array<string>;
|
|
16
|
-
value:
|
|
19
|
+
value:
|
|
20
|
+
| string
|
|
21
|
+
| number
|
|
22
|
+
| boolean
|
|
23
|
+
| { [k: string]: any }
|
|
24
|
+
| Array<{ [k: string]: any }>
|
|
25
|
+
| null;
|
|
17
26
|
};
|
|
18
27
|
|
|
19
28
|
export type ValidationErrorDtoData = {
|
|
@@ -100,55 +109,23 @@ export class ValidationErrorDto extends Error {
|
|
|
100
109
|
}
|
|
101
110
|
}
|
|
102
111
|
|
|
103
|
-
/** @internal */
|
|
104
|
-
export const Four$inboundSchema: z.ZodType<Four, z.ZodTypeDef, unknown> = z
|
|
105
|
-
.object({});
|
|
106
|
-
|
|
107
|
-
/** @internal */
|
|
108
|
-
export type Four$Outbound = {};
|
|
109
|
-
|
|
110
|
-
/** @internal */
|
|
111
|
-
export const Four$outboundSchema: z.ZodType<Four$Outbound, z.ZodTypeDef, Four> =
|
|
112
|
-
z.object({});
|
|
113
|
-
|
|
114
|
-
/**
|
|
115
|
-
* @internal
|
|
116
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
117
|
-
*/
|
|
118
|
-
export namespace Four$ {
|
|
119
|
-
/** @deprecated use `Four$inboundSchema` instead. */
|
|
120
|
-
export const inboundSchema = Four$inboundSchema;
|
|
121
|
-
/** @deprecated use `Four$outboundSchema` instead. */
|
|
122
|
-
export const outboundSchema = Four$outboundSchema;
|
|
123
|
-
/** @deprecated use `Four$Outbound` instead. */
|
|
124
|
-
export type Outbound = Four$Outbound;
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
export function fourToJSON(four: Four): string {
|
|
128
|
-
return JSON.stringify(Four$outboundSchema.parse(four));
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
export function fourFromJSON(
|
|
132
|
-
jsonString: string,
|
|
133
|
-
): SafeParseResult<Four, SDKValidationError> {
|
|
134
|
-
return safeParse(
|
|
135
|
-
jsonString,
|
|
136
|
-
(x) => Four$inboundSchema.parse(JSON.parse(x)),
|
|
137
|
-
`Failed to parse 'Four' from JSON`,
|
|
138
|
-
);
|
|
139
|
-
}
|
|
140
|
-
|
|
141
112
|
/** @internal */
|
|
142
113
|
export const Value$inboundSchema: z.ZodType<Value, z.ZodTypeDef, unknown> = z
|
|
143
114
|
.union([
|
|
144
|
-
z.lazy(() => Four$inboundSchema),
|
|
145
115
|
z.string(),
|
|
146
116
|
z.number(),
|
|
147
117
|
z.boolean(),
|
|
118
|
+
z.record(z.any()),
|
|
119
|
+
z.array(z.record(z.any())),
|
|
148
120
|
]);
|
|
149
121
|
|
|
150
122
|
/** @internal */
|
|
151
|
-
export type Value$Outbound =
|
|
123
|
+
export type Value$Outbound =
|
|
124
|
+
| string
|
|
125
|
+
| number
|
|
126
|
+
| boolean
|
|
127
|
+
| { [k: string]: any }
|
|
128
|
+
| Array<{ [k: string]: any }>;
|
|
152
129
|
|
|
153
130
|
/** @internal */
|
|
154
131
|
export const Value$outboundSchema: z.ZodType<
|
|
@@ -156,10 +133,11 @@ export const Value$outboundSchema: z.ZodType<
|
|
|
156
133
|
z.ZodTypeDef,
|
|
157
134
|
Value
|
|
158
135
|
> = z.union([
|
|
159
|
-
z.lazy(() => Four$outboundSchema),
|
|
160
136
|
z.string(),
|
|
161
137
|
z.number(),
|
|
162
138
|
z.boolean(),
|
|
139
|
+
z.record(z.any()),
|
|
140
|
+
z.array(z.record(z.any())),
|
|
163
141
|
]);
|
|
164
142
|
|
|
165
143
|
/**
|
|
@@ -195,10 +173,11 @@ export const Errors$inboundSchema: z.ZodType<Errors, z.ZodTypeDef, unknown> = z
|
|
|
195
173
|
messages: z.array(z.string()),
|
|
196
174
|
value: z.nullable(
|
|
197
175
|
z.union([
|
|
198
|
-
z.lazy(() => Four$inboundSchema),
|
|
199
176
|
z.string(),
|
|
200
177
|
z.number(),
|
|
201
178
|
z.boolean(),
|
|
179
|
+
z.record(z.any()),
|
|
180
|
+
z.array(z.record(z.any())),
|
|
202
181
|
]),
|
|
203
182
|
),
|
|
204
183
|
});
|
|
@@ -206,7 +185,13 @@ export const Errors$inboundSchema: z.ZodType<Errors, z.ZodTypeDef, unknown> = z
|
|
|
206
185
|
/** @internal */
|
|
207
186
|
export type Errors$Outbound = {
|
|
208
187
|
messages: Array<string>;
|
|
209
|
-
value:
|
|
188
|
+
value:
|
|
189
|
+
| string
|
|
190
|
+
| number
|
|
191
|
+
| boolean
|
|
192
|
+
| { [k: string]: any }
|
|
193
|
+
| Array<{ [k: string]: any }>
|
|
194
|
+
| null;
|
|
210
195
|
};
|
|
211
196
|
|
|
212
197
|
/** @internal */
|
|
@@ -218,10 +203,11 @@ export const Errors$outboundSchema: z.ZodType<
|
|
|
218
203
|
messages: z.array(z.string()),
|
|
219
204
|
value: z.nullable(
|
|
220
205
|
z.union([
|
|
221
|
-
z.lazy(() => Four$outboundSchema),
|
|
222
206
|
z.string(),
|
|
223
207
|
z.number(),
|
|
224
208
|
z.boolean(),
|
|
209
|
+
z.record(z.any()),
|
|
210
|
+
z.array(z.record(z.any())),
|
|
225
211
|
]),
|
|
226
212
|
),
|
|
227
213
|
});
|