@novu/api 0.0.1-alpha.55 → 0.0.1-alpha.56
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/triggereventrequestdto.d.ts +10 -26
- package/models/components/triggereventrequestdto.d.ts.map +1 -1
- package/models/components/triggereventrequestdto.js +3 -26
- package/models/components/triggereventrequestdto.js.map +1 -1
- package/models/components/triggereventresponsedto.d.ts +1 -1
- package/models/components/triggereventtoallrequestdto.d.ts +17 -17
- package/models/components/triggereventtoallrequestdto.d.ts.map +1 -1
- package/models/components/triggereventtoallrequestdto.js +18 -20
- package/models/components/triggereventtoallrequestdto.js.map +1 -1
- package/package.json +1 -1
- package/src/lib/config.ts +2 -2
- package/src/models/components/triggereventrequestdto.ts +4 -53
- package/src/models/components/triggereventresponsedto.ts +1 -1
- package/src/models/components/triggereventtoallrequestdto.ts +26 -37
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.56";
|
|
31
31
|
readonly genVersion: "2.470.1";
|
|
32
|
-
readonly userAgent: "speakeasy-sdk/typescript 0.0.1-alpha.
|
|
32
|
+
readonly userAgent: "speakeasy-sdk/typescript 0.0.1-alpha.56 2.470.1 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.56",
|
|
34
34
|
genVersion: "2.470.1",
|
|
35
|
-
userAgent: "speakeasy-sdk/typescript 0.0.1-alpha.
|
|
35
|
+
userAgent: "speakeasy-sdk/typescript 0.0.1-alpha.56 2.470.1 1.0 @novu/api",
|
|
36
36
|
};
|
|
37
37
|
//# sourceMappingURL=config.js.map
|
|
@@ -5,10 +5,6 @@ import { SubscriberPayloadDto, SubscriberPayloadDto$Outbound } from "./subscribe
|
|
|
5
5
|
import { TenantPayloadDto, TenantPayloadDto$Outbound } from "./tenantpayloaddto.js";
|
|
6
6
|
import { TopicPayloadDto, TopicPayloadDto$Outbound } from "./topicpayloaddto.js";
|
|
7
7
|
import { WorkflowToStepControlValuesDto, WorkflowToStepControlValuesDto$Outbound } from "./workflowtostepcontrolvaluesdto.js";
|
|
8
|
-
/**
|
|
9
|
-
* This could be used to override provider specific configurations
|
|
10
|
-
*/
|
|
11
|
-
export type Overrides = {};
|
|
12
8
|
export type To = TopicPayloadDto | SubscriberPayloadDto | string;
|
|
13
9
|
/**
|
|
14
10
|
* It is used to display the Avatar of the provided actor's subscriber id or actor object.
|
|
@@ -47,7 +43,11 @@ export type TriggerEventRequestDto = {
|
|
|
47
43
|
/**
|
|
48
44
|
* This could be used to override provider specific configurations
|
|
49
45
|
*/
|
|
50
|
-
overrides?:
|
|
46
|
+
overrides?: {
|
|
47
|
+
[k: string]: {
|
|
48
|
+
[k: string]: any;
|
|
49
|
+
};
|
|
50
|
+
} | undefined;
|
|
51
51
|
/**
|
|
52
52
|
* The recipients list of people who will receive the notification.
|
|
53
53
|
*/
|
|
@@ -77,26 +77,6 @@ export type TriggerEventRequestDto = {
|
|
|
77
77
|
controls?: WorkflowToStepControlValuesDto | undefined;
|
|
78
78
|
};
|
|
79
79
|
/** @internal */
|
|
80
|
-
export declare const Overrides$inboundSchema: z.ZodType<Overrides, z.ZodTypeDef, unknown>;
|
|
81
|
-
/** @internal */
|
|
82
|
-
export type Overrides$Outbound = {};
|
|
83
|
-
/** @internal */
|
|
84
|
-
export declare const Overrides$outboundSchema: z.ZodType<Overrides$Outbound, z.ZodTypeDef, Overrides>;
|
|
85
|
-
/**
|
|
86
|
-
* @internal
|
|
87
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
88
|
-
*/
|
|
89
|
-
export declare namespace Overrides$ {
|
|
90
|
-
/** @deprecated use `Overrides$inboundSchema` instead. */
|
|
91
|
-
const inboundSchema: z.ZodType<Overrides, z.ZodTypeDef, unknown>;
|
|
92
|
-
/** @deprecated use `Overrides$outboundSchema` instead. */
|
|
93
|
-
const outboundSchema: z.ZodType<Overrides$Outbound, z.ZodTypeDef, Overrides>;
|
|
94
|
-
/** @deprecated use `Overrides$Outbound` instead. */
|
|
95
|
-
type Outbound = Overrides$Outbound;
|
|
96
|
-
}
|
|
97
|
-
export declare function overridesToJSON(overrides: Overrides): string;
|
|
98
|
-
export declare function overridesFromJSON(jsonString: string): SafeParseResult<Overrides, SDKValidationError>;
|
|
99
|
-
/** @internal */
|
|
100
80
|
export declare const To$inboundSchema: z.ZodType<To, z.ZodTypeDef, unknown>;
|
|
101
81
|
/** @internal */
|
|
102
82
|
export type To$Outbound = TopicPayloadDto$Outbound | SubscriberPayloadDto$Outbound | string;
|
|
@@ -165,7 +145,11 @@ export type TriggerEventRequestDto$Outbound = {
|
|
|
165
145
|
[k: string]: any;
|
|
166
146
|
} | undefined;
|
|
167
147
|
bridgeUrl?: string | undefined;
|
|
168
|
-
overrides?:
|
|
148
|
+
overrides?: {
|
|
149
|
+
[k: string]: {
|
|
150
|
+
[k: string]: any;
|
|
151
|
+
};
|
|
152
|
+
} | undefined;
|
|
169
153
|
to: Array<TopicPayloadDto$Outbound | SubscriberPayloadDto$Outbound | string>;
|
|
170
154
|
transactionId?: string | undefined;
|
|
171
155
|
actor?: SubscriberPayloadDto$Outbound | string | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"triggereventrequestdto.d.ts","sourceRoot":"","sources":["../../src/models/components/triggereventrequestdto.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;AACrE,OAAO,EACL,oBAAoB,EAEpB,6BAA6B,EAE9B,MAAM,2BAA2B,CAAC;AACnC,OAAO,EACL,gBAAgB,EAEhB,yBAAyB,EAE1B,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EACL,eAAe,EAEf,wBAAwB,EAEzB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACL,8BAA8B,EAE9B,uCAAuC,EAExC,MAAM,qCAAqC,CAAC;AAE7C
|
|
1
|
+
{"version":3,"file":"triggereventrequestdto.d.ts","sourceRoot":"","sources":["../../src/models/components/triggereventrequestdto.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;AACrE,OAAO,EACL,oBAAoB,EAEpB,6BAA6B,EAE9B,MAAM,2BAA2B,CAAC;AACnC,OAAO,EACL,gBAAgB,EAEhB,yBAAyB,EAE1B,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EACL,eAAe,EAEf,wBAAwB,EAEzB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACL,8BAA8B,EAE9B,uCAAuC,EAExC,MAAM,qCAAqC,CAAC;AAE7C,MAAM,MAAM,EAAE,GAAG,eAAe,GAAG,oBAAoB,GAAG,MAAM,CAAC;AAEjE;;;;;;GAMG;AACH,MAAM,MAAM,KAAK,GAAG,oBAAoB,GAAG,MAAM,CAAC;AAElD;;;;;GAKG;AACH,MAAM,MAAM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BAAgB;AAChB,eAAO,MAAM,qCAAqC,EAAE,CAAC,CAAC,OAAO,CAC3D,+BAA+B,EAC/B,CAAC,CAAC,UAAU,EACZ,sBAAsB,CAiBtB,CAAC;AAEH;;;GAGG;AACH,yBAAiB,uBAAuB,CAAC;IACvC,sEAAsE;IAC/D,MAAM,aAAa,0DAAuC,CAAC;IAClE,uEAAuE;IAChE,MAAM,cAAc,kFAAwC,CAAC;IACpE,iEAAiE;IACjE,KAAY,QAAQ,GAAG,+BAA+B,CAAC;CACxD;AAED,wBAAgB,4BAA4B,CAC1C,sBAAsB,EAAE,sBAAsB,GAC7C,MAAM,CAIR;AAED,wBAAgB,8BAA8B,CAC5C,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,sBAAsB,EAAE,kBAAkB,CAAC,CAM7D"}
|
|
@@ -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.triggerEventRequestDtoFromJSON = exports.triggerEventRequestDtoToJSON = exports.TriggerEventRequestDto$ = exports.TriggerEventRequestDto$outboundSchema = exports.TriggerEventRequestDto$inboundSchema = exports.tenantFromJSON = exports.tenantToJSON = exports.Tenant$ = exports.Tenant$outboundSchema = exports.Tenant$inboundSchema = exports.actorFromJSON = exports.actorToJSON = exports.Actor$ = exports.Actor$outboundSchema = exports.Actor$inboundSchema = exports.toFromJSON = exports.toToJSON = exports.To$ = exports.To$outboundSchema = exports.To$inboundSchema =
|
|
29
|
+
exports.triggerEventRequestDtoFromJSON = exports.triggerEventRequestDtoToJSON = exports.TriggerEventRequestDto$ = exports.TriggerEventRequestDto$outboundSchema = exports.TriggerEventRequestDto$inboundSchema = exports.tenantFromJSON = exports.tenantToJSON = exports.Tenant$ = exports.Tenant$outboundSchema = exports.Tenant$inboundSchema = exports.actorFromJSON = exports.actorToJSON = exports.Actor$ = exports.Actor$outboundSchema = exports.Actor$inboundSchema = exports.toFromJSON = exports.toToJSON = exports.To$ = exports.To$outboundSchema = exports.To$inboundSchema = void 0;
|
|
30
30
|
const z = __importStar(require("zod"));
|
|
31
31
|
const schemas_js_1 = require("../../lib/schemas.js");
|
|
32
32
|
const subscriberpayloaddto_js_1 = require("./subscriberpayloaddto.js");
|
|
@@ -34,29 +34,6 @@ const tenantpayloaddto_js_1 = require("./tenantpayloaddto.js");
|
|
|
34
34
|
const topicpayloaddto_js_1 = require("./topicpayloaddto.js");
|
|
35
35
|
const workflowtostepcontrolvaluesdto_js_1 = require("./workflowtostepcontrolvaluesdto.js");
|
|
36
36
|
/** @internal */
|
|
37
|
-
exports.Overrides$inboundSchema = z.object({});
|
|
38
|
-
/** @internal */
|
|
39
|
-
exports.Overrides$outboundSchema = z.object({});
|
|
40
|
-
/**
|
|
41
|
-
* @internal
|
|
42
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
43
|
-
*/
|
|
44
|
-
var Overrides$;
|
|
45
|
-
(function (Overrides$) {
|
|
46
|
-
/** @deprecated use `Overrides$inboundSchema` instead. */
|
|
47
|
-
Overrides$.inboundSchema = exports.Overrides$inboundSchema;
|
|
48
|
-
/** @deprecated use `Overrides$outboundSchema` instead. */
|
|
49
|
-
Overrides$.outboundSchema = exports.Overrides$outboundSchema;
|
|
50
|
-
})(Overrides$ || (exports.Overrides$ = Overrides$ = {}));
|
|
51
|
-
function overridesToJSON(overrides) {
|
|
52
|
-
return JSON.stringify(exports.Overrides$outboundSchema.parse(overrides));
|
|
53
|
-
}
|
|
54
|
-
exports.overridesToJSON = overridesToJSON;
|
|
55
|
-
function overridesFromJSON(jsonString) {
|
|
56
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.Overrides$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Overrides' from JSON`);
|
|
57
|
-
}
|
|
58
|
-
exports.overridesFromJSON = overridesFromJSON;
|
|
59
|
-
/** @internal */
|
|
60
37
|
exports.To$inboundSchema = z.union([
|
|
61
38
|
topicpayloaddto_js_1.TopicPayloadDto$inboundSchema,
|
|
62
39
|
subscriberpayloaddto_js_1.SubscriberPayloadDto$inboundSchema,
|
|
@@ -141,7 +118,7 @@ exports.TriggerEventRequestDto$inboundSchema = z.object({
|
|
|
141
118
|
name: z.string(),
|
|
142
119
|
payload: z.record(z.any()).optional(),
|
|
143
120
|
bridgeUrl: z.string().optional(),
|
|
144
|
-
overrides: z.
|
|
121
|
+
overrides: z.record(z.record(z.any())).optional(),
|
|
145
122
|
to: z.array(z.union([
|
|
146
123
|
topicpayloaddto_js_1.TopicPayloadDto$inboundSchema,
|
|
147
124
|
subscriberpayloaddto_js_1.SubscriberPayloadDto$inboundSchema,
|
|
@@ -157,7 +134,7 @@ exports.TriggerEventRequestDto$outboundSchema = z.object({
|
|
|
157
134
|
name: z.string(),
|
|
158
135
|
payload: z.record(z.any()).optional(),
|
|
159
136
|
bridgeUrl: z.string().optional(),
|
|
160
|
-
overrides: z.
|
|
137
|
+
overrides: z.record(z.record(z.any())).optional(),
|
|
161
138
|
to: z.array(z.union([
|
|
162
139
|
topicpayloaddto_js_1.TopicPayloadDto$outboundSchema,
|
|
163
140
|
subscriberpayloaddto_js_1.SubscriberPayloadDto$outboundSchema,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"triggereventrequestdto.js","sourceRoot":"","sources":["../../src/models/components/triggereventrequestdto.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,uCAAyB;AACzB,qDAAiD;AAGjD,uEAKmC;AACnC,+DAK+B;AAC/B,6DAK8B;AAC9B,2FAK6C;
|
|
1
|
+
{"version":3,"file":"triggereventrequestdto.js","sourceRoot":"","sources":["../../src/models/components/triggereventrequestdto.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,uCAAyB;AACzB,qDAAiD;AAGjD,uEAKmC;AACnC,+D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TenantPayloadDto, TenantPayloadDto$Outbound } from "./tenantpayloaddto.
|
|
|
6
6
|
/**
|
|
7
7
|
* This could be used to override provider specific configurations
|
|
8
8
|
*/
|
|
9
|
-
export type
|
|
9
|
+
export type Overrides = {};
|
|
10
10
|
/**
|
|
11
11
|
* It is used to display the Avatar of the provided actor's subscriber id or actor object.
|
|
12
12
|
*
|
|
@@ -27,11 +27,11 @@ export type TriggerEventToAllRequestDto = {
|
|
|
27
27
|
*/
|
|
28
28
|
name: string;
|
|
29
29
|
/**
|
|
30
|
-
* The payload object is used to pass additional
|
|
30
|
+
* The payload object is used to pass additional information that
|
|
31
31
|
*
|
|
32
32
|
* @remarks
|
|
33
33
|
* could be used to render the template, or perform routing rules based on it.
|
|
34
|
-
*
|
|
34
|
+
* For In-App channel, payload data are also available in <Inbox />
|
|
35
35
|
*/
|
|
36
36
|
payload: {
|
|
37
37
|
[k: string]: any;
|
|
@@ -39,7 +39,7 @@ export type TriggerEventToAllRequestDto = {
|
|
|
39
39
|
/**
|
|
40
40
|
* This could be used to override provider specific configurations
|
|
41
41
|
*/
|
|
42
|
-
overrides?:
|
|
42
|
+
overrides?: Overrides | undefined;
|
|
43
43
|
/**
|
|
44
44
|
* A unique identifier for this transaction, we will generated a UUID if not provided.
|
|
45
45
|
*/
|
|
@@ -60,25 +60,25 @@ export type TriggerEventToAllRequestDto = {
|
|
|
60
60
|
tenant?: TenantPayloadDto | string | undefined;
|
|
61
61
|
};
|
|
62
62
|
/** @internal */
|
|
63
|
-
export declare const
|
|
63
|
+
export declare const Overrides$inboundSchema: z.ZodType<Overrides, z.ZodTypeDef, unknown>;
|
|
64
64
|
/** @internal */
|
|
65
|
-
export type
|
|
65
|
+
export type Overrides$Outbound = {};
|
|
66
66
|
/** @internal */
|
|
67
|
-
export declare const
|
|
67
|
+
export declare const Overrides$outboundSchema: z.ZodType<Overrides$Outbound, z.ZodTypeDef, Overrides>;
|
|
68
68
|
/**
|
|
69
69
|
* @internal
|
|
70
70
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
71
71
|
*/
|
|
72
|
-
export declare namespace
|
|
73
|
-
/** @deprecated use `
|
|
74
|
-
const inboundSchema: z.ZodType<
|
|
75
|
-
/** @deprecated use `
|
|
76
|
-
const outboundSchema: z.ZodType<
|
|
77
|
-
/** @deprecated use `
|
|
78
|
-
type Outbound =
|
|
72
|
+
export declare namespace Overrides$ {
|
|
73
|
+
/** @deprecated use `Overrides$inboundSchema` instead. */
|
|
74
|
+
const inboundSchema: z.ZodType<Overrides, z.ZodTypeDef, unknown>;
|
|
75
|
+
/** @deprecated use `Overrides$outboundSchema` instead. */
|
|
76
|
+
const outboundSchema: z.ZodType<Overrides$Outbound, z.ZodTypeDef, Overrides>;
|
|
77
|
+
/** @deprecated use `Overrides$Outbound` instead. */
|
|
78
|
+
type Outbound = Overrides$Outbound;
|
|
79
79
|
}
|
|
80
|
-
export declare function
|
|
81
|
-
export declare function
|
|
80
|
+
export declare function overridesToJSON(overrides: Overrides): string;
|
|
81
|
+
export declare function overridesFromJSON(jsonString: string): SafeParseResult<Overrides, SDKValidationError>;
|
|
82
82
|
/** @internal */
|
|
83
83
|
export declare const TriggerEventToAllRequestDtoActor$inboundSchema: z.ZodType<TriggerEventToAllRequestDtoActor, z.ZodTypeDef, unknown>;
|
|
84
84
|
/** @internal */
|
|
@@ -127,7 +127,7 @@ export type TriggerEventToAllRequestDto$Outbound = {
|
|
|
127
127
|
payload: {
|
|
128
128
|
[k: string]: any;
|
|
129
129
|
};
|
|
130
|
-
overrides?:
|
|
130
|
+
overrides?: Overrides$Outbound | undefined;
|
|
131
131
|
transactionId?: string | undefined;
|
|
132
132
|
actor?: SubscriberPayloadDto$Outbound | string | undefined;
|
|
133
133
|
tenant?: TenantPayloadDto$Outbound | string | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"triggereventtoallrequestdto.d.ts","sourceRoot":"","sources":["../../src/models/components/triggereventtoallrequestdto.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;AACrE,OAAO,EACL,oBAAoB,EAEpB,6BAA6B,EAE9B,MAAM,2BAA2B,CAAC;AACnC,OAAO,EACL,gBAAgB,EAEhB,yBAAyB,EAE1B,MAAM,uBAAuB,CAAC;AAE/B;;GAEG;AACH,MAAM,MAAM,
|
|
1
|
+
{"version":3,"file":"triggereventtoallrequestdto.d.ts","sourceRoot":"","sources":["../../src/models/components/triggereventtoallrequestdto.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;AACrE,OAAO,EACL,oBAAoB,EAEpB,6BAA6B,EAE9B,MAAM,2BAA2B,CAAC;AACnC,OAAO,EACL,gBAAgB,EAEhB,yBAAyB,EAE1B,MAAM,uBAAuB,CAAC;AAE/B;;GAEG;AACH,MAAM,MAAM,SAAS,GAAG,EAAE,CAAC;AAE3B;;;;;GAKG;AACH,MAAM,MAAM,gCAAgC,GAAG,oBAAoB,GAAG,MAAM,CAAC;AAE7E;;;;;GAKG;AACH,MAAM,MAAM,iCAAiC,GAAG,gBAAgB,GAAG,MAAM,CAAC;AAE1E,MAAM,MAAM,2BAA2B,GAAG;IACxC;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;;;;;OAMG;IACH,OAAO,EAAE;QAAE,CAAC,CAAC,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,CAAC;IAC9B;;OAEG;IACH,SAAS,CAAC,EAAE,SAAS,GAAG,SAAS,CAAC;IAClC;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,GAAG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IACb,OAAO,EAAE;QAAE,CAAC,CAAC,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,CAAC;IAC9B,SAAS,CAAC,EAAE,kBAAkB,GAAG,SAAS,CAAC;IAC3C,aAAa,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACnC,KAAK,CAAC,EAAE,6BAA6B,GAAG,MAAM,GAAG,SAAS,CAAC;IAC3D,MAAM,CAAC,EAAE,yBAAyB,GAAG,MAAM,GAAG,SAAS,CAAC;CACzD,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,0CAA0C,EAAE,CAAC,CAAC,OAAO,CAChE,oCAAoC,EACpC,CAAC,CAAC,UAAU,EACZ,2BAA2B,CAQ3B,CAAC;AAEH;;;GAGG;AACH,yBAAiB,4BAA4B,CAAC;IAC5C,2EAA2E;IACpE,MAAM,aAAa,+DAA4C,CAAC;IACvE,4EAA4E;IACrE,MAAM,cAAc,4FAA6C,CAAC;IACzE,sEAAsE;IACtE,KAAY,QAAQ,GAAG,oCAAoC,CAAC;CAC7D;AAED,wBAAgB,iCAAiC,CAC/C,2BAA2B,EAAE,2BAA2B,GACvD,MAAM,CAMR;AAED,wBAAgB,mCAAmC,CACjD,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,2BAA2B,EAAE,kBAAkB,CAAC,CAMlE"}
|
|
@@ -26,34 +26,34 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
26
26
|
return result;
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.triggerEventToAllRequestDtoFromJSON = exports.triggerEventToAllRequestDtoToJSON = exports.TriggerEventToAllRequestDto$ = exports.TriggerEventToAllRequestDto$outboundSchema = exports.TriggerEventToAllRequestDto$inboundSchema = exports.triggerEventToAllRequestDtoTenantFromJSON = exports.triggerEventToAllRequestDtoTenantToJSON = exports.TriggerEventToAllRequestDtoTenant$ = exports.TriggerEventToAllRequestDtoTenant$outboundSchema = exports.TriggerEventToAllRequestDtoTenant$inboundSchema = exports.triggerEventToAllRequestDtoActorFromJSON = exports.triggerEventToAllRequestDtoActorToJSON = exports.TriggerEventToAllRequestDtoActor$ = exports.TriggerEventToAllRequestDtoActor$outboundSchema = exports.TriggerEventToAllRequestDtoActor$inboundSchema = exports.
|
|
29
|
+
exports.triggerEventToAllRequestDtoFromJSON = exports.triggerEventToAllRequestDtoToJSON = exports.TriggerEventToAllRequestDto$ = exports.TriggerEventToAllRequestDto$outboundSchema = exports.TriggerEventToAllRequestDto$inboundSchema = exports.triggerEventToAllRequestDtoTenantFromJSON = exports.triggerEventToAllRequestDtoTenantToJSON = exports.TriggerEventToAllRequestDtoTenant$ = exports.TriggerEventToAllRequestDtoTenant$outboundSchema = exports.TriggerEventToAllRequestDtoTenant$inboundSchema = exports.triggerEventToAllRequestDtoActorFromJSON = exports.triggerEventToAllRequestDtoActorToJSON = exports.TriggerEventToAllRequestDtoActor$ = exports.TriggerEventToAllRequestDtoActor$outboundSchema = exports.TriggerEventToAllRequestDtoActor$inboundSchema = exports.overridesFromJSON = exports.overridesToJSON = exports.Overrides$ = exports.Overrides$outboundSchema = exports.Overrides$inboundSchema = void 0;
|
|
30
30
|
const z = __importStar(require("zod"));
|
|
31
31
|
const schemas_js_1 = require("../../lib/schemas.js");
|
|
32
32
|
const subscriberpayloaddto_js_1 = require("./subscriberpayloaddto.js");
|
|
33
33
|
const tenantpayloaddto_js_1 = require("./tenantpayloaddto.js");
|
|
34
34
|
/** @internal */
|
|
35
|
-
exports.
|
|
35
|
+
exports.Overrides$inboundSchema = z.object({});
|
|
36
36
|
/** @internal */
|
|
37
|
-
exports.
|
|
37
|
+
exports.Overrides$outboundSchema = z.object({});
|
|
38
38
|
/**
|
|
39
39
|
* @internal
|
|
40
40
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
41
41
|
*/
|
|
42
|
-
var
|
|
43
|
-
(function (
|
|
44
|
-
/** @deprecated use `
|
|
45
|
-
|
|
46
|
-
/** @deprecated use `
|
|
47
|
-
|
|
48
|
-
})(
|
|
49
|
-
function
|
|
50
|
-
return JSON.stringify(exports.
|
|
42
|
+
var Overrides$;
|
|
43
|
+
(function (Overrides$) {
|
|
44
|
+
/** @deprecated use `Overrides$inboundSchema` instead. */
|
|
45
|
+
Overrides$.inboundSchema = exports.Overrides$inboundSchema;
|
|
46
|
+
/** @deprecated use `Overrides$outboundSchema` instead. */
|
|
47
|
+
Overrides$.outboundSchema = exports.Overrides$outboundSchema;
|
|
48
|
+
})(Overrides$ || (exports.Overrides$ = Overrides$ = {}));
|
|
49
|
+
function overridesToJSON(overrides) {
|
|
50
|
+
return JSON.stringify(exports.Overrides$outboundSchema.parse(overrides));
|
|
51
51
|
}
|
|
52
|
-
exports.
|
|
53
|
-
function
|
|
54
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.
|
|
52
|
+
exports.overridesToJSON = overridesToJSON;
|
|
53
|
+
function overridesFromJSON(jsonString) {
|
|
54
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.Overrides$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Overrides' from JSON`);
|
|
55
55
|
}
|
|
56
|
-
exports.
|
|
56
|
+
exports.overridesFromJSON = overridesFromJSON;
|
|
57
57
|
/** @internal */
|
|
58
58
|
exports.TriggerEventToAllRequestDtoActor$inboundSchema = z.union([subscriberpayloaddto_js_1.SubscriberPayloadDto$inboundSchema, z.string()]);
|
|
59
59
|
/** @internal */
|
|
@@ -104,8 +104,7 @@ exports.triggerEventToAllRequestDtoTenantFromJSON = triggerEventToAllRequestDtoT
|
|
|
104
104
|
exports.TriggerEventToAllRequestDto$inboundSchema = z.object({
|
|
105
105
|
name: z.string(),
|
|
106
106
|
payload: z.record(z.any()),
|
|
107
|
-
overrides: z.lazy(() => exports.
|
|
108
|
-
.optional(),
|
|
107
|
+
overrides: z.lazy(() => exports.Overrides$inboundSchema).optional(),
|
|
109
108
|
transactionId: z.string().optional(),
|
|
110
109
|
actor: z.union([subscriberpayloaddto_js_1.SubscriberPayloadDto$inboundSchema, z.string()]).optional(),
|
|
111
110
|
tenant: z.union([tenantpayloaddto_js_1.TenantPayloadDto$inboundSchema, z.string()]).optional(),
|
|
@@ -114,8 +113,7 @@ exports.TriggerEventToAllRequestDto$inboundSchema = z.object({
|
|
|
114
113
|
exports.TriggerEventToAllRequestDto$outboundSchema = z.object({
|
|
115
114
|
name: z.string(),
|
|
116
115
|
payload: z.record(z.any()),
|
|
117
|
-
overrides: z.lazy(() => exports.
|
|
118
|
-
.optional(),
|
|
116
|
+
overrides: z.lazy(() => exports.Overrides$outboundSchema).optional(),
|
|
119
117
|
transactionId: z.string().optional(),
|
|
120
118
|
actor: z.union([subscriberpayloaddto_js_1.SubscriberPayloadDto$outboundSchema, z.string()]).optional(),
|
|
121
119
|
tenant: z.union([tenantpayloaddto_js_1.TenantPayloadDto$outboundSchema, z.string()]).optional(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"triggereventtoallrequestdto.js","sourceRoot":"","sources":["../../src/models/components/triggereventtoallrequestdto.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,uCAAyB;AACzB,qDAAiD;AAGjD,uEAKmC;AACnC,+DAK+B;AA4D/B,gBAAgB;AACH,QAAA,
|
|
1
|
+
{"version":3,"file":"triggereventtoallrequestdto.js","sourceRoot":"","sources":["../../src/models/components/triggereventtoallrequestdto.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,uCAAyB;AACzB,qDAAiD;AAGjD,uEAKmC;AACnC,+DAK+B;AA4D/B,gBAAgB;AACH,QAAA,uBAAuB,GAIhC,CAAC,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;AAKjB,gBAAgB;AACH,QAAA,wBAAwB,GAIjC,CAAC,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;AAEjB;;;GAGG;AACH,IAAi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CACnB,kDAA0C,CAAC,KAAK,CAC9C,2BAA2B,CAC5B,CACF,CAAC;AACJ,CAAC;AARD,8EAQC;AAED,SAAgB,mCAAmC,CACjD,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,iDAAyC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACrE,yDAAyD,CAC1D,CAAC;AACJ,CAAC;AARD,kFAQC"}
|
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.56",
|
|
59
59
|
genVersion: "2.470.1",
|
|
60
|
-
userAgent: "speakeasy-sdk/typescript 0.0.1-alpha.
|
|
60
|
+
userAgent: "speakeasy-sdk/typescript 0.0.1-alpha.56 2.470.1 1.0 @novu/api",
|
|
61
61
|
} as const;
|
|
@@ -31,11 +31,6 @@ import {
|
|
|
31
31
|
WorkflowToStepControlValuesDto$outboundSchema,
|
|
32
32
|
} from "./workflowtostepcontrolvaluesdto.js";
|
|
33
33
|
|
|
34
|
-
/**
|
|
35
|
-
* This could be used to override provider specific configurations
|
|
36
|
-
*/
|
|
37
|
-
export type Overrides = {};
|
|
38
|
-
|
|
39
34
|
export type To = TopicPayloadDto | SubscriberPayloadDto | string;
|
|
40
35
|
|
|
41
36
|
/**
|
|
@@ -75,7 +70,7 @@ export type TriggerEventRequestDto = {
|
|
|
75
70
|
/**
|
|
76
71
|
* This could be used to override provider specific configurations
|
|
77
72
|
*/
|
|
78
|
-
overrides?:
|
|
73
|
+
overrides?: { [k: string]: { [k: string]: any } } | undefined;
|
|
79
74
|
/**
|
|
80
75
|
* The recipients list of people who will receive the notification.
|
|
81
76
|
*/
|
|
@@ -105,50 +100,6 @@ export type TriggerEventRequestDto = {
|
|
|
105
100
|
controls?: WorkflowToStepControlValuesDto | undefined;
|
|
106
101
|
};
|
|
107
102
|
|
|
108
|
-
/** @internal */
|
|
109
|
-
export const Overrides$inboundSchema: z.ZodType<
|
|
110
|
-
Overrides,
|
|
111
|
-
z.ZodTypeDef,
|
|
112
|
-
unknown
|
|
113
|
-
> = z.object({});
|
|
114
|
-
|
|
115
|
-
/** @internal */
|
|
116
|
-
export type Overrides$Outbound = {};
|
|
117
|
-
|
|
118
|
-
/** @internal */
|
|
119
|
-
export const Overrides$outboundSchema: z.ZodType<
|
|
120
|
-
Overrides$Outbound,
|
|
121
|
-
z.ZodTypeDef,
|
|
122
|
-
Overrides
|
|
123
|
-
> = z.object({});
|
|
124
|
-
|
|
125
|
-
/**
|
|
126
|
-
* @internal
|
|
127
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
128
|
-
*/
|
|
129
|
-
export namespace Overrides$ {
|
|
130
|
-
/** @deprecated use `Overrides$inboundSchema` instead. */
|
|
131
|
-
export const inboundSchema = Overrides$inboundSchema;
|
|
132
|
-
/** @deprecated use `Overrides$outboundSchema` instead. */
|
|
133
|
-
export const outboundSchema = Overrides$outboundSchema;
|
|
134
|
-
/** @deprecated use `Overrides$Outbound` instead. */
|
|
135
|
-
export type Outbound = Overrides$Outbound;
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
export function overridesToJSON(overrides: Overrides): string {
|
|
139
|
-
return JSON.stringify(Overrides$outboundSchema.parse(overrides));
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
export function overridesFromJSON(
|
|
143
|
-
jsonString: string,
|
|
144
|
-
): SafeParseResult<Overrides, SDKValidationError> {
|
|
145
|
-
return safeParse(
|
|
146
|
-
jsonString,
|
|
147
|
-
(x) => Overrides$inboundSchema.parse(JSON.parse(x)),
|
|
148
|
-
`Failed to parse 'Overrides' from JSON`,
|
|
149
|
-
);
|
|
150
|
-
}
|
|
151
|
-
|
|
152
103
|
/** @internal */
|
|
153
104
|
export const To$inboundSchema: z.ZodType<To, z.ZodTypeDef, unknown> = z.union([
|
|
154
105
|
TopicPayloadDto$inboundSchema,
|
|
@@ -288,7 +239,7 @@ export const TriggerEventRequestDto$inboundSchema: z.ZodType<
|
|
|
288
239
|
name: z.string(),
|
|
289
240
|
payload: z.record(z.any()).optional(),
|
|
290
241
|
bridgeUrl: z.string().optional(),
|
|
291
|
-
overrides: z.
|
|
242
|
+
overrides: z.record(z.record(z.any())).optional(),
|
|
292
243
|
to: z.array(
|
|
293
244
|
z.union([
|
|
294
245
|
TopicPayloadDto$inboundSchema,
|
|
@@ -307,7 +258,7 @@ export type TriggerEventRequestDto$Outbound = {
|
|
|
307
258
|
name: string;
|
|
308
259
|
payload?: { [k: string]: any } | undefined;
|
|
309
260
|
bridgeUrl?: string | undefined;
|
|
310
|
-
overrides?:
|
|
261
|
+
overrides?: { [k: string]: { [k: string]: any } } | undefined;
|
|
311
262
|
to: Array<TopicPayloadDto$Outbound | SubscriberPayloadDto$Outbound | string>;
|
|
312
263
|
transactionId?: string | undefined;
|
|
313
264
|
actor?: SubscriberPayloadDto$Outbound | string | undefined;
|
|
@@ -324,7 +275,7 @@ export const TriggerEventRequestDto$outboundSchema: z.ZodType<
|
|
|
324
275
|
name: z.string(),
|
|
325
276
|
payload: z.record(z.any()).optional(),
|
|
326
277
|
bridgeUrl: z.string().optional(),
|
|
327
|
-
overrides: z.
|
|
278
|
+
overrides: z.record(z.record(z.any())).optional(),
|
|
328
279
|
to: z.array(
|
|
329
280
|
z.union([
|
|
330
281
|
TopicPayloadDto$outboundSchema,
|
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
/**
|
|
23
23
|
* This could be used to override provider specific configurations
|
|
24
24
|
*/
|
|
25
|
-
export type
|
|
25
|
+
export type Overrides = {};
|
|
26
26
|
|
|
27
27
|
/**
|
|
28
28
|
* It is used to display the Avatar of the provided actor's subscriber id or actor object.
|
|
@@ -46,17 +46,17 @@ export type TriggerEventToAllRequestDto = {
|
|
|
46
46
|
*/
|
|
47
47
|
name: string;
|
|
48
48
|
/**
|
|
49
|
-
* The payload object is used to pass additional
|
|
49
|
+
* The payload object is used to pass additional information that
|
|
50
50
|
*
|
|
51
51
|
* @remarks
|
|
52
52
|
* could be used to render the template, or perform routing rules based on it.
|
|
53
|
-
*
|
|
53
|
+
* For In-App channel, payload data are also available in <Inbox />
|
|
54
54
|
*/
|
|
55
55
|
payload: { [k: string]: any };
|
|
56
56
|
/**
|
|
57
57
|
* This could be used to override provider specific configurations
|
|
58
58
|
*/
|
|
59
|
-
overrides?:
|
|
59
|
+
overrides?: Overrides | undefined;
|
|
60
60
|
/**
|
|
61
61
|
* A unique identifier for this transaction, we will generated a UUID if not provided.
|
|
62
62
|
*/
|
|
@@ -78,55 +78,46 @@ export type TriggerEventToAllRequestDto = {
|
|
|
78
78
|
};
|
|
79
79
|
|
|
80
80
|
/** @internal */
|
|
81
|
-
export const
|
|
82
|
-
|
|
81
|
+
export const Overrides$inboundSchema: z.ZodType<
|
|
82
|
+
Overrides,
|
|
83
83
|
z.ZodTypeDef,
|
|
84
84
|
unknown
|
|
85
85
|
> = z.object({});
|
|
86
86
|
|
|
87
87
|
/** @internal */
|
|
88
|
-
export type
|
|
88
|
+
export type Overrides$Outbound = {};
|
|
89
89
|
|
|
90
90
|
/** @internal */
|
|
91
|
-
export const
|
|
92
|
-
|
|
91
|
+
export const Overrides$outboundSchema: z.ZodType<
|
|
92
|
+
Overrides$Outbound,
|
|
93
93
|
z.ZodTypeDef,
|
|
94
|
-
|
|
94
|
+
Overrides
|
|
95
95
|
> = z.object({});
|
|
96
96
|
|
|
97
97
|
/**
|
|
98
98
|
* @internal
|
|
99
99
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
100
100
|
*/
|
|
101
|
-
export namespace
|
|
102
|
-
/** @deprecated use `
|
|
103
|
-
export const inboundSchema =
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
/** @deprecated use `TriggerEventToAllRequestDtoOverrides$Outbound` instead. */
|
|
109
|
-
export type Outbound = TriggerEventToAllRequestDtoOverrides$Outbound;
|
|
101
|
+
export namespace Overrides$ {
|
|
102
|
+
/** @deprecated use `Overrides$inboundSchema` instead. */
|
|
103
|
+
export const inboundSchema = Overrides$inboundSchema;
|
|
104
|
+
/** @deprecated use `Overrides$outboundSchema` instead. */
|
|
105
|
+
export const outboundSchema = Overrides$outboundSchema;
|
|
106
|
+
/** @deprecated use `Overrides$Outbound` instead. */
|
|
107
|
+
export type Outbound = Overrides$Outbound;
|
|
110
108
|
}
|
|
111
109
|
|
|
112
|
-
export function
|
|
113
|
-
|
|
114
|
-
): string {
|
|
115
|
-
return JSON.stringify(
|
|
116
|
-
TriggerEventToAllRequestDtoOverrides$outboundSchema.parse(
|
|
117
|
-
triggerEventToAllRequestDtoOverrides,
|
|
118
|
-
),
|
|
119
|
-
);
|
|
110
|
+
export function overridesToJSON(overrides: Overrides): string {
|
|
111
|
+
return JSON.stringify(Overrides$outboundSchema.parse(overrides));
|
|
120
112
|
}
|
|
121
113
|
|
|
122
|
-
export function
|
|
114
|
+
export function overridesFromJSON(
|
|
123
115
|
jsonString: string,
|
|
124
|
-
): SafeParseResult<
|
|
116
|
+
): SafeParseResult<Overrides, SDKValidationError> {
|
|
125
117
|
return safeParse(
|
|
126
118
|
jsonString,
|
|
127
|
-
(x) =>
|
|
128
|
-
|
|
129
|
-
`Failed to parse 'TriggerEventToAllRequestDtoOverrides' from JSON`,
|
|
119
|
+
(x) => Overrides$inboundSchema.parse(JSON.parse(x)),
|
|
120
|
+
`Failed to parse 'Overrides' from JSON`,
|
|
130
121
|
);
|
|
131
122
|
}
|
|
132
123
|
|
|
@@ -243,8 +234,7 @@ export const TriggerEventToAllRequestDto$inboundSchema: z.ZodType<
|
|
|
243
234
|
> = z.object({
|
|
244
235
|
name: z.string(),
|
|
245
236
|
payload: z.record(z.any()),
|
|
246
|
-
overrides: z.lazy(() =>
|
|
247
|
-
.optional(),
|
|
237
|
+
overrides: z.lazy(() => Overrides$inboundSchema).optional(),
|
|
248
238
|
transactionId: z.string().optional(),
|
|
249
239
|
actor: z.union([SubscriberPayloadDto$inboundSchema, z.string()]).optional(),
|
|
250
240
|
tenant: z.union([TenantPayloadDto$inboundSchema, z.string()]).optional(),
|
|
@@ -254,7 +244,7 @@ export const TriggerEventToAllRequestDto$inboundSchema: z.ZodType<
|
|
|
254
244
|
export type TriggerEventToAllRequestDto$Outbound = {
|
|
255
245
|
name: string;
|
|
256
246
|
payload: { [k: string]: any };
|
|
257
|
-
overrides?:
|
|
247
|
+
overrides?: Overrides$Outbound | undefined;
|
|
258
248
|
transactionId?: string | undefined;
|
|
259
249
|
actor?: SubscriberPayloadDto$Outbound | string | undefined;
|
|
260
250
|
tenant?: TenantPayloadDto$Outbound | string | undefined;
|
|
@@ -268,8 +258,7 @@ export const TriggerEventToAllRequestDto$outboundSchema: z.ZodType<
|
|
|
268
258
|
> = z.object({
|
|
269
259
|
name: z.string(),
|
|
270
260
|
payload: z.record(z.any()),
|
|
271
|
-
overrides: z.lazy(() =>
|
|
272
|
-
.optional(),
|
|
261
|
+
overrides: z.lazy(() => Overrides$outboundSchema).optional(),
|
|
273
262
|
transactionId: z.string().optional(),
|
|
274
263
|
actor: z.union([SubscriberPayloadDto$outboundSchema, z.string()]).optional(),
|
|
275
264
|
tenant: z.union([TenantPayloadDto$outboundSchema, z.string()]).optional(),
|