@novu/api 0.0.1-alpha.95 → 0.0.1-alpha.96
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/components/errordto.d.ts +41 -2
- package/models/components/errordto.d.ts.map +1 -1
- package/models/components/errordto.js +16 -2
- package/models/components/errordto.js.map +1 -1
- package/package.json +1 -1
- package/src/lib/config.ts +2 -2
- package/src/models/components/errordto.ts +53 -4
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.96";
|
|
31
31
|
readonly genVersion: "2.477.0";
|
|
32
|
-
readonly userAgent: "speakeasy-sdk/typescript 0.0.1-alpha.
|
|
32
|
+
readonly userAgent: "speakeasy-sdk/typescript 0.0.1-alpha.96 2.477.0 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.96",
|
|
34
34
|
genVersion: "2.477.0",
|
|
35
|
-
userAgent: "speakeasy-sdk/typescript 0.0.1-alpha.
|
|
35
|
+
userAgent: "speakeasy-sdk/typescript 0.0.1-alpha.96 2.477.0 1.0 @novu/api",
|
|
36
36
|
};
|
|
37
37
|
//# sourceMappingURL=config.js.map
|
|
@@ -1,11 +1,50 @@
|
|
|
1
1
|
import * as z from "zod";
|
|
2
2
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
3
3
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
4
|
-
export type ErrorDto = {
|
|
4
|
+
export type ErrorDto = {
|
|
5
|
+
/**
|
|
6
|
+
* HTTP status code of the error response.
|
|
7
|
+
*/
|
|
8
|
+
statusCode: number;
|
|
9
|
+
/**
|
|
10
|
+
* Timestamp of when the error occurred.
|
|
11
|
+
*/
|
|
12
|
+
timestamp: string;
|
|
13
|
+
/**
|
|
14
|
+
* The path where the error occurred.
|
|
15
|
+
*/
|
|
16
|
+
path: string;
|
|
17
|
+
/**
|
|
18
|
+
* A detailed error message.
|
|
19
|
+
*/
|
|
20
|
+
message: string;
|
|
21
|
+
/**
|
|
22
|
+
* Optional context object for additional error details.
|
|
23
|
+
*/
|
|
24
|
+
ctx?: {
|
|
25
|
+
[k: string]: any;
|
|
26
|
+
} | undefined;
|
|
27
|
+
/**
|
|
28
|
+
* Optional unique identifier for the error, useful for tracking using Sentry and
|
|
29
|
+
*
|
|
30
|
+
* @remarks
|
|
31
|
+
* New Relic, only available for 500.
|
|
32
|
+
*/
|
|
33
|
+
errorId?: string | undefined;
|
|
34
|
+
};
|
|
5
35
|
/** @internal */
|
|
6
36
|
export declare const ErrorDto$inboundSchema: z.ZodType<ErrorDto, z.ZodTypeDef, unknown>;
|
|
7
37
|
/** @internal */
|
|
8
|
-
export type ErrorDto$Outbound = {
|
|
38
|
+
export type ErrorDto$Outbound = {
|
|
39
|
+
statusCode: number;
|
|
40
|
+
timestamp: string;
|
|
41
|
+
path: string;
|
|
42
|
+
message: string;
|
|
43
|
+
ctx?: {
|
|
44
|
+
[k: string]: any;
|
|
45
|
+
} | undefined;
|
|
46
|
+
errorId?: string | undefined;
|
|
47
|
+
};
|
|
9
48
|
/** @internal */
|
|
10
49
|
export declare const ErrorDto$outboundSchema: z.ZodType<ErrorDto$Outbound, z.ZodTypeDef, ErrorDto>;
|
|
11
50
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"errordto.d.ts","sourceRoot":"","sources":["../../src/models/components/errordto.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,iCAAiC,CAAC;AAErE,MAAM,MAAM,QAAQ,GAAG,EAAE,CAAC;
|
|
1
|
+
{"version":3,"file":"errordto.d.ts","sourceRoot":"","sources":["../../src/models/components/errordto.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,iCAAiC,CAAC;AAErE,MAAM,MAAM,QAAQ,GAAG;IACrB;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,GAAG,CAAC,EAAE;QAAE,CAAC,CAAC,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,GAAG,SAAS,CAAC;IACvC;;;;;OAKG;IACH,OAAO,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC9B,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,sBAAsB,EAAE,CAAC,CAAC,OAAO,CAC5C,QAAQ,EACR,CAAC,CAAC,UAAU,EACZ,OAAO,CAQP,CAAC;AAEH,gBAAgB;AAChB,MAAM,MAAM,iBAAiB,GAAG;IAC9B,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,GAAG,CAAC,EAAE;QAAE,CAAC,CAAC,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,GAAG,SAAS,CAAC;IACvC,OAAO,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC9B,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,uBAAuB,EAAE,CAAC,CAAC,OAAO,CAC7C,iBAAiB,EACjB,CAAC,CAAC,UAAU,EACZ,QAAQ,CAQR,CAAC;AAEH;;;GAGG;AACH,yBAAiB,SAAS,CAAC;IACzB,wDAAwD;IACjD,MAAM,aAAa,4CAAyB,CAAC;IACpD,yDAAyD;IAClD,MAAM,cAAc,sDAA0B,CAAC;IACtD,mDAAmD;IACnD,KAAY,QAAQ,GAAG,iBAAiB,CAAC;CAC1C;AAED,wBAAgB,cAAc,CAAC,QAAQ,EAAE,QAAQ,GAAG,MAAM,CAEzD;AAED,wBAAgB,gBAAgB,CAC9B,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,QAAQ,EAAE,kBAAkB,CAAC,CAM/C"}
|
|
@@ -30,9 +30,23 @@ exports.errorDtoFromJSON = exports.errorDtoToJSON = exports.ErrorDto$ = exports.
|
|
|
30
30
|
const z = __importStar(require("zod"));
|
|
31
31
|
const schemas_js_1 = require("../../lib/schemas.js");
|
|
32
32
|
/** @internal */
|
|
33
|
-
exports.ErrorDto$inboundSchema = z.object({
|
|
33
|
+
exports.ErrorDto$inboundSchema = z.object({
|
|
34
|
+
statusCode: z.number(),
|
|
35
|
+
timestamp: z.string(),
|
|
36
|
+
path: z.string(),
|
|
37
|
+
message: z.string(),
|
|
38
|
+
ctx: z.record(z.any()).optional(),
|
|
39
|
+
errorId: z.string().optional(),
|
|
40
|
+
});
|
|
34
41
|
/** @internal */
|
|
35
|
-
exports.ErrorDto$outboundSchema = z.object({
|
|
42
|
+
exports.ErrorDto$outboundSchema = z.object({
|
|
43
|
+
statusCode: z.number(),
|
|
44
|
+
timestamp: z.string(),
|
|
45
|
+
path: z.string(),
|
|
46
|
+
message: z.string(),
|
|
47
|
+
ctx: z.record(z.any()).optional(),
|
|
48
|
+
errorId: z.string().optional(),
|
|
49
|
+
});
|
|
36
50
|
/**
|
|
37
51
|
* @internal
|
|
38
52
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"errordto.js","sourceRoot":"","sources":["../../src/models/components/errordto.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,uCAAyB;AACzB,qDAAiD;
|
|
1
|
+
{"version":3,"file":"errordto.js","sourceRoot":"","sources":["../../src/models/components/errordto.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,uCAAyB;AACzB,qDAAiD;AAkCjD,gBAAgB;AACH,QAAA,sBAAsB,GAI/B,CAAC,CAAC,MAAM,CAAC;IACX,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE;IACtB,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE;IACrB,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;IACnB,GAAG,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,CAAC,CAAC,QAAQ,EAAE;IACjC,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAC/B,CAAC,CAAC;AAYH,gBAAgB;AACH,QAAA,uBAAuB,GAIhC,CAAC,CAAC,MAAM,CAAC;IACX,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE;IACtB,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE;IACrB,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;IACnB,GAAG,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,CAAC,CAAC,QAAQ,EAAE;IACjC,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAC/B,CAAC,CAAC;AAEH;;;GAGG;AACH,IAAiB,SAAS,CAOzB;AAPD,WAAiB,SAAS;IACxB,wDAAwD;IAC3C,uBAAa,GAAG,8BAAsB,CAAC;IACpD,yDAAyD;IAC5C,wBAAc,GAAG,+BAAuB,CAAC;AAGxD,CAAC,EAPgB,SAAS,yBAAT,SAAS,QAOzB;AAED,SAAgB,cAAc,CAAC,QAAkB;IAC/C,OAAO,IAAI,CAAC,SAAS,CAAC,+BAAuB,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC;AACjE,CAAC;AAFD,wCAEC;AAED,SAAgB,gBAAgB,CAC9B,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,8BAAsB,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAClD,sCAAsC,CACvC,CAAC;AACJ,CAAC;AARD,4CAQC"}
|
package/package.json
CHANGED
package/src/lib/config.ts
CHANGED
|
@@ -55,7 +55,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | 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.96",
|
|
59
59
|
genVersion: "2.477.0",
|
|
60
|
-
userAgent: "speakeasy-sdk/typescript 0.0.1-alpha.
|
|
60
|
+
userAgent: "speakeasy-sdk/typescript 0.0.1-alpha.96 2.477.0 1.0 @novu/api",
|
|
61
61
|
} as const;
|
|
@@ -7,24 +7,73 @@ import { safeParse } from "../../lib/schemas.js";
|
|
|
7
7
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
8
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
9
|
|
|
10
|
-
export type ErrorDto = {
|
|
10
|
+
export type ErrorDto = {
|
|
11
|
+
/**
|
|
12
|
+
* HTTP status code of the error response.
|
|
13
|
+
*/
|
|
14
|
+
statusCode: number;
|
|
15
|
+
/**
|
|
16
|
+
* Timestamp of when the error occurred.
|
|
17
|
+
*/
|
|
18
|
+
timestamp: string;
|
|
19
|
+
/**
|
|
20
|
+
* The path where the error occurred.
|
|
21
|
+
*/
|
|
22
|
+
path: string;
|
|
23
|
+
/**
|
|
24
|
+
* A detailed error message.
|
|
25
|
+
*/
|
|
26
|
+
message: string;
|
|
27
|
+
/**
|
|
28
|
+
* Optional context object for additional error details.
|
|
29
|
+
*/
|
|
30
|
+
ctx?: { [k: string]: any } | undefined;
|
|
31
|
+
/**
|
|
32
|
+
* Optional unique identifier for the error, useful for tracking using Sentry and
|
|
33
|
+
*
|
|
34
|
+
* @remarks
|
|
35
|
+
* New Relic, only available for 500.
|
|
36
|
+
*/
|
|
37
|
+
errorId?: string | undefined;
|
|
38
|
+
};
|
|
11
39
|
|
|
12
40
|
/** @internal */
|
|
13
41
|
export const ErrorDto$inboundSchema: z.ZodType<
|
|
14
42
|
ErrorDto,
|
|
15
43
|
z.ZodTypeDef,
|
|
16
44
|
unknown
|
|
17
|
-
> = z.object({
|
|
45
|
+
> = z.object({
|
|
46
|
+
statusCode: z.number(),
|
|
47
|
+
timestamp: z.string(),
|
|
48
|
+
path: z.string(),
|
|
49
|
+
message: z.string(),
|
|
50
|
+
ctx: z.record(z.any()).optional(),
|
|
51
|
+
errorId: z.string().optional(),
|
|
52
|
+
});
|
|
18
53
|
|
|
19
54
|
/** @internal */
|
|
20
|
-
export type ErrorDto$Outbound = {
|
|
55
|
+
export type ErrorDto$Outbound = {
|
|
56
|
+
statusCode: number;
|
|
57
|
+
timestamp: string;
|
|
58
|
+
path: string;
|
|
59
|
+
message: string;
|
|
60
|
+
ctx?: { [k: string]: any } | undefined;
|
|
61
|
+
errorId?: string | undefined;
|
|
62
|
+
};
|
|
21
63
|
|
|
22
64
|
/** @internal */
|
|
23
65
|
export const ErrorDto$outboundSchema: z.ZodType<
|
|
24
66
|
ErrorDto$Outbound,
|
|
25
67
|
z.ZodTypeDef,
|
|
26
68
|
ErrorDto
|
|
27
|
-
> = z.object({
|
|
69
|
+
> = z.object({
|
|
70
|
+
statusCode: z.number(),
|
|
71
|
+
timestamp: z.string(),
|
|
72
|
+
path: z.string(),
|
|
73
|
+
message: z.string(),
|
|
74
|
+
ctx: z.record(z.any()).optional(),
|
|
75
|
+
errorId: z.string().optional(),
|
|
76
|
+
});
|
|
28
77
|
|
|
29
78
|
/**
|
|
30
79
|
* @internal
|