@novu/api 0.0.1-alpha.144 → 0.0.1-alpha.146
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/buttontypeenum.d.ts +34 -0
- package/models/components/buttontypeenum.d.ts.map +1 -0
- package/models/components/buttontypeenum.js +53 -0
- package/models/components/buttontypeenum.js.map +1 -0
- package/models/components/channelctatypeenum.d.ts +31 -0
- package/models/components/channelctatypeenum.d.ts.map +1 -0
- package/models/components/channelctatypeenum.js +52 -0
- package/models/components/channelctatypeenum.js.map +1 -0
- package/models/components/channelpreference.d.ts +3 -43
- package/models/components/channelpreference.d.ts.map +1 -1
- package/models/components/channelpreference.js +4 -28
- package/models/components/channelpreference.js.map +1 -1
- package/models/components/channeltypeenum.d.ts +2 -2
- package/models/components/channeltypeenum.js +1 -1
- package/models/components/emailblock.d.ts +14 -27
- package/models/components/emailblock.d.ts.map +1 -1
- package/models/components/emailblock.js +4 -22
- package/models/components/emailblock.js.map +1 -1
- package/models/components/emailblockstyles.d.ts +5 -30
- package/models/components/emailblockstyles.d.ts.map +1 -1
- package/models/components/emailblockstyles.js +4 -24
- package/models/components/emailblockstyles.js.map +1 -1
- package/models/components/emailblocktypeenum.d.ts +34 -0
- package/models/components/emailblocktypeenum.d.ts.map +1 -0
- package/models/components/emailblocktypeenum.js +53 -0
- package/models/components/emailblocktypeenum.js.map +1 -0
- package/models/components/index.d.ts +6 -0
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +6 -0
- package/models/components/index.js.map +1 -1
- package/models/components/messageaction.d.ts +11 -27
- package/models/components/messageaction.d.ts.map +1 -1
- package/models/components/messageaction.js +4 -22
- package/models/components/messageaction.js.map +1 -1
- package/models/components/messageactionresult.d.ts +11 -27
- package/models/components/messageactionresult.d.ts.map +1 -1
- package/models/components/messageactionresult.js +4 -22
- package/models/components/messageactionresult.js.map +1 -1
- package/models/components/messageactionstatusenum.d.ts +34 -0
- package/models/components/messageactionstatusenum.d.ts.map +1 -0
- package/models/components/messageactionstatusenum.js +53 -0
- package/models/components/messageactionstatusenum.js.map +1 -0
- package/models/components/messagebutton.d.ts +11 -27
- package/models/components/messagebutton.d.ts.map +1 -1
- package/models/components/messagebutton.js +4 -22
- package/models/components/messagebutton.js.map +1 -1
- package/models/components/messagecta.d.ts +11 -24
- package/models/components/messagecta.d.ts.map +1 -1
- package/models/components/messagecta.js +4 -21
- package/models/components/messagecta.js.map +1 -1
- package/models/components/messagectadata.d.ts +3 -0
- package/models/components/messagectadata.d.ts.map +1 -1
- package/models/components/messagectadata.js.map +1 -1
- package/models/components/messageresponsedto.d.ts +107 -96
- package/models/components/messageresponsedto.d.ts.map +1 -1
- package/models/components/messageresponsedto.js +18 -81
- package/models/components/messageresponsedto.js.map +1 -1
- package/models/components/messagestatusenum.d.ts +37 -0
- package/models/components/messagestatusenum.d.ts.map +1 -0
- package/models/components/messagestatusenum.js +54 -0
- package/models/components/messagestatusenum.js.map +1 -0
- package/models/components/notificationfeeditemdto.d.ts +1 -1
- package/models/components/textalignenum.d.ts +37 -0
- package/models/components/textalignenum.d.ts.map +1 -0
- package/models/components/textalignenum.js +54 -0
- package/models/components/textalignenum.js.map +1 -0
- package/models/operations/messagescontrollergetmessages.d.ts +1 -1
- package/package.json +1 -1
- package/src/lib/config.ts +2 -2
- package/src/models/components/buttontypeenum.ts +39 -0
- package/src/models/components/channelctatypeenum.ts +38 -0
- package/src/models/components/channelpreference.ts +9 -41
- package/src/models/components/channeltypeenum.ts +2 -2
- package/src/models/components/emailblock.ts +20 -31
- package/src/models/components/emailblockstyles.ts +11 -30
- package/src/models/components/emailblocktypeenum.ts +39 -0
- package/src/models/components/index.ts +6 -0
- package/src/models/components/messageaction.ts +17 -31
- package/src/models/components/messageactionresult.ts +17 -33
- package/src/models/components/messageactionstatusenum.ts +41 -0
- package/src/models/components/messagebutton.ts +17 -31
- package/src/models/components/messagecta.ts +17 -30
- package/src/models/components/messagectadata.ts +3 -0
- package/src/models/components/messageresponsedto.ts +130 -132
- package/src/models/components/messagestatusenum.ts +40 -0
- package/src/models/components/notificationfeeditemdto.ts +1 -1
- package/src/models/components/textalignenum.ts +40 -0
- package/src/models/operations/messagescontrollergetmessages.ts +1 -1
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import * as z from "zod";
|
|
2
|
+
import { ClosedEnum } from "../../types/enums.js";
|
|
3
|
+
/**
|
|
4
|
+
* Status of the message
|
|
5
|
+
*/
|
|
6
|
+
export declare const MessageStatusEnum: {
|
|
7
|
+
readonly Sent: "sent";
|
|
8
|
+
readonly Error: "error";
|
|
9
|
+
readonly Warning: "warning";
|
|
10
|
+
};
|
|
11
|
+
/**
|
|
12
|
+
* Status of the message
|
|
13
|
+
*/
|
|
14
|
+
export type MessageStatusEnum = ClosedEnum<typeof MessageStatusEnum>;
|
|
15
|
+
/** @internal */
|
|
16
|
+
export declare const MessageStatusEnum$inboundSchema: z.ZodNativeEnum<typeof MessageStatusEnum>;
|
|
17
|
+
/** @internal */
|
|
18
|
+
export declare const MessageStatusEnum$outboundSchema: z.ZodNativeEnum<typeof MessageStatusEnum>;
|
|
19
|
+
/**
|
|
20
|
+
* @internal
|
|
21
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
22
|
+
*/
|
|
23
|
+
export declare namespace MessageStatusEnum$ {
|
|
24
|
+
/** @deprecated use `MessageStatusEnum$inboundSchema` instead. */
|
|
25
|
+
const inboundSchema: z.ZodNativeEnum<{
|
|
26
|
+
readonly Sent: "sent";
|
|
27
|
+
readonly Error: "error";
|
|
28
|
+
readonly Warning: "warning";
|
|
29
|
+
}>;
|
|
30
|
+
/** @deprecated use `MessageStatusEnum$outboundSchema` instead. */
|
|
31
|
+
const outboundSchema: z.ZodNativeEnum<{
|
|
32
|
+
readonly Sent: "sent";
|
|
33
|
+
readonly Error: "error";
|
|
34
|
+
readonly Warning: "warning";
|
|
35
|
+
}>;
|
|
36
|
+
}
|
|
37
|
+
//# sourceMappingURL=messagestatusenum.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"messagestatusenum.d.ts","sourceRoot":"","sources":["../../src/models/components/messagestatusenum.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAElD;;GAEG;AACH,eAAO,MAAM,iBAAiB;;;;CAIpB,CAAC;AACX;;GAEG;AACH,MAAM,MAAM,iBAAiB,GAAG,UAAU,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAErE,gBAAgB;AAChB,eAAO,MAAM,+BAA+B,EAAE,CAAC,CAAC,aAAa,CAC3D,OAAO,iBAAiB,CACS,CAAC;AAEpC,gBAAgB;AAChB,eAAO,MAAM,gCAAgC,EAAE,CAAC,CAAC,aAAa,CAC5D,OAAO,iBAAiB,CACS,CAAC;AAEpC;;;GAGG;AACH,yBAAiB,kBAAkB,CAAC;IAClC,iEAAiE;IAC1D,MAAM,aAAa;;;;MAAkC,CAAC;IAC7D,kEAAkE;IAC3D,MAAM,cAAc;;;;MAAmC,CAAC;CAChE"}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
22
|
+
if (mod && mod.__esModule) return mod;
|
|
23
|
+
var result = {};
|
|
24
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
+
__setModuleDefault(result, mod);
|
|
26
|
+
return result;
|
|
27
|
+
};
|
|
28
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.MessageStatusEnum$ = exports.MessageStatusEnum$outboundSchema = exports.MessageStatusEnum$inboundSchema = exports.MessageStatusEnum = void 0;
|
|
30
|
+
const z = __importStar(require("zod"));
|
|
31
|
+
/**
|
|
32
|
+
* Status of the message
|
|
33
|
+
*/
|
|
34
|
+
exports.MessageStatusEnum = {
|
|
35
|
+
Sent: "sent",
|
|
36
|
+
Error: "error",
|
|
37
|
+
Warning: "warning",
|
|
38
|
+
};
|
|
39
|
+
/** @internal */
|
|
40
|
+
exports.MessageStatusEnum$inboundSchema = z.nativeEnum(exports.MessageStatusEnum);
|
|
41
|
+
/** @internal */
|
|
42
|
+
exports.MessageStatusEnum$outboundSchema = exports.MessageStatusEnum$inboundSchema;
|
|
43
|
+
/**
|
|
44
|
+
* @internal
|
|
45
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
46
|
+
*/
|
|
47
|
+
var MessageStatusEnum$;
|
|
48
|
+
(function (MessageStatusEnum$) {
|
|
49
|
+
/** @deprecated use `MessageStatusEnum$inboundSchema` instead. */
|
|
50
|
+
MessageStatusEnum$.inboundSchema = exports.MessageStatusEnum$inboundSchema;
|
|
51
|
+
/** @deprecated use `MessageStatusEnum$outboundSchema` instead. */
|
|
52
|
+
MessageStatusEnum$.outboundSchema = exports.MessageStatusEnum$outboundSchema;
|
|
53
|
+
})(MessageStatusEnum$ || (exports.MessageStatusEnum$ = MessageStatusEnum$ = {}));
|
|
54
|
+
//# sourceMappingURL=messagestatusenum.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"messagestatusenum.js","sourceRoot":"","sources":["../../src/models/components/messagestatusenum.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,uCAAyB;AAGzB;;GAEG;AACU,QAAA,iBAAiB,GAAG;IAC/B,IAAI,EAAE,MAAM;IACZ,KAAK,EAAE,OAAO;IACd,OAAO,EAAE,SAAS;CACV,CAAC;AAMX,gBAAgB;AACH,QAAA,+BAA+B,GAExC,CAAC,CAAC,UAAU,CAAC,yBAAiB,CAAC,CAAC;AAEpC,gBAAgB;AACH,QAAA,gCAAgC,GAEzC,uCAA+B,CAAC;AAEpC;;;GAGG;AACH,IAAiB,kBAAkB,CAKlC;AALD,WAAiB,kBAAkB;IACjC,iEAAiE;IACpD,gCAAa,GAAG,uCAA+B,CAAC;IAC7D,kEAAkE;IACrD,iCAAc,GAAG,wCAAgC,CAAC;AACjE,CAAC,EALgB,kBAAkB,kCAAlB,kBAAkB,QAKlC"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import * as z from "zod";
|
|
2
|
+
import { ClosedEnum } from "../../types/enums.js";
|
|
3
|
+
/**
|
|
4
|
+
* Text alignment for the email block
|
|
5
|
+
*/
|
|
6
|
+
export declare const TextAlignEnum: {
|
|
7
|
+
readonly Center: "center";
|
|
8
|
+
readonly Left: "left";
|
|
9
|
+
readonly Right: "right";
|
|
10
|
+
};
|
|
11
|
+
/**
|
|
12
|
+
* Text alignment for the email block
|
|
13
|
+
*/
|
|
14
|
+
export type TextAlignEnum = ClosedEnum<typeof TextAlignEnum>;
|
|
15
|
+
/** @internal */
|
|
16
|
+
export declare const TextAlignEnum$inboundSchema: z.ZodNativeEnum<typeof TextAlignEnum>;
|
|
17
|
+
/** @internal */
|
|
18
|
+
export declare const TextAlignEnum$outboundSchema: z.ZodNativeEnum<typeof TextAlignEnum>;
|
|
19
|
+
/**
|
|
20
|
+
* @internal
|
|
21
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
22
|
+
*/
|
|
23
|
+
export declare namespace TextAlignEnum$ {
|
|
24
|
+
/** @deprecated use `TextAlignEnum$inboundSchema` instead. */
|
|
25
|
+
const inboundSchema: z.ZodNativeEnum<{
|
|
26
|
+
readonly Center: "center";
|
|
27
|
+
readonly Left: "left";
|
|
28
|
+
readonly Right: "right";
|
|
29
|
+
}>;
|
|
30
|
+
/** @deprecated use `TextAlignEnum$outboundSchema` instead. */
|
|
31
|
+
const outboundSchema: z.ZodNativeEnum<{
|
|
32
|
+
readonly Center: "center";
|
|
33
|
+
readonly Left: "left";
|
|
34
|
+
readonly Right: "right";
|
|
35
|
+
}>;
|
|
36
|
+
}
|
|
37
|
+
//# sourceMappingURL=textalignenum.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"textalignenum.d.ts","sourceRoot":"","sources":["../../src/models/components/textalignenum.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAElD;;GAEG;AACH,eAAO,MAAM,aAAa;;;;CAIhB,CAAC;AACX;;GAEG;AACH,MAAM,MAAM,aAAa,GAAG,UAAU,CAAC,OAAO,aAAa,CAAC,CAAC;AAE7D,gBAAgB;AAChB,eAAO,MAAM,2BAA2B,EAAE,CAAC,CAAC,aAAa,CACvD,OAAO,aAAa,CACS,CAAC;AAEhC,gBAAgB;AAChB,eAAO,MAAM,4BAA4B,EAAE,CAAC,CAAC,aAAa,CACxD,OAAO,aAAa,CACS,CAAC;AAEhC;;;GAGG;AACH,yBAAiB,cAAc,CAAC;IAC9B,6DAA6D;IACtD,MAAM,aAAa;;;;MAA8B,CAAC;IACzD,8DAA8D;IACvD,MAAM,cAAc;;;;MAA+B,CAAC;CAC5D"}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
22
|
+
if (mod && mod.__esModule) return mod;
|
|
23
|
+
var result = {};
|
|
24
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
+
__setModuleDefault(result, mod);
|
|
26
|
+
return result;
|
|
27
|
+
};
|
|
28
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.TextAlignEnum$ = exports.TextAlignEnum$outboundSchema = exports.TextAlignEnum$inboundSchema = exports.TextAlignEnum = void 0;
|
|
30
|
+
const z = __importStar(require("zod"));
|
|
31
|
+
/**
|
|
32
|
+
* Text alignment for the email block
|
|
33
|
+
*/
|
|
34
|
+
exports.TextAlignEnum = {
|
|
35
|
+
Center: "center",
|
|
36
|
+
Left: "left",
|
|
37
|
+
Right: "right",
|
|
38
|
+
};
|
|
39
|
+
/** @internal */
|
|
40
|
+
exports.TextAlignEnum$inboundSchema = z.nativeEnum(exports.TextAlignEnum);
|
|
41
|
+
/** @internal */
|
|
42
|
+
exports.TextAlignEnum$outboundSchema = exports.TextAlignEnum$inboundSchema;
|
|
43
|
+
/**
|
|
44
|
+
* @internal
|
|
45
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
46
|
+
*/
|
|
47
|
+
var TextAlignEnum$;
|
|
48
|
+
(function (TextAlignEnum$) {
|
|
49
|
+
/** @deprecated use `TextAlignEnum$inboundSchema` instead. */
|
|
50
|
+
TextAlignEnum$.inboundSchema = exports.TextAlignEnum$inboundSchema;
|
|
51
|
+
/** @deprecated use `TextAlignEnum$outboundSchema` instead. */
|
|
52
|
+
TextAlignEnum$.outboundSchema = exports.TextAlignEnum$outboundSchema;
|
|
53
|
+
})(TextAlignEnum$ || (exports.TextAlignEnum$ = TextAlignEnum$ = {}));
|
|
54
|
+
//# sourceMappingURL=textalignenum.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"textalignenum.js","sourceRoot":"","sources":["../../src/models/components/textalignenum.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,uCAAyB;AAGzB;;GAEG;AACU,QAAA,aAAa,GAAG;IAC3B,MAAM,EAAE,QAAQ;IAChB,IAAI,EAAE,MAAM;IACZ,KAAK,EAAE,OAAO;CACN,CAAC;AAMX,gBAAgB;AACH,QAAA,2BAA2B,GAEpC,CAAC,CAAC,UAAU,CAAC,qBAAa,CAAC,CAAC;AAEhC,gBAAgB;AACH,QAAA,4BAA4B,GAErC,mCAA2B,CAAC;AAEhC;;;GAGG;AACH,IAAiB,cAAc,CAK9B;AALD,WAAiB,cAAc;IAC7B,6DAA6D;IAChD,4BAAa,GAAG,mCAA2B,CAAC;IACzD,8DAA8D;IACjD,6BAAc,GAAG,oCAA4B,CAAC;AAC7D,CAAC,EALgB,cAAc,8BAAd,cAAc,QAK9B"}
|
|
@@ -4,7 +4,7 @@ import * as components from "../components/index.js";
|
|
|
4
4
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
5
5
|
export type MessagesControllerGetMessagesRequest = {
|
|
6
6
|
/**
|
|
7
|
-
*
|
|
7
|
+
* Channel type through which the message is sent
|
|
8
8
|
*/
|
|
9
9
|
channel?: components.ChannelTypeEnum | undefined;
|
|
10
10
|
subscriberId?: string | undefined;
|
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.146",
|
|
59
59
|
genVersion: "2.481.0",
|
|
60
|
-
userAgent: "speakeasy-sdk/typescript 0.0.1-alpha.
|
|
60
|
+
userAgent: "speakeasy-sdk/typescript 0.0.1-alpha.146 2.481.0 1.0 @novu/api",
|
|
61
61
|
} as const;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { ClosedEnum } from "../../types/enums.js";
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* Type of button for the action result
|
|
10
|
+
*/
|
|
11
|
+
export const ButtonTypeEnum = {
|
|
12
|
+
Primary: "primary",
|
|
13
|
+
Secondary: "secondary",
|
|
14
|
+
} as const;
|
|
15
|
+
/**
|
|
16
|
+
* Type of button for the action result
|
|
17
|
+
*/
|
|
18
|
+
export type ButtonTypeEnum = ClosedEnum<typeof ButtonTypeEnum>;
|
|
19
|
+
|
|
20
|
+
/** @internal */
|
|
21
|
+
export const ButtonTypeEnum$inboundSchema: z.ZodNativeEnum<
|
|
22
|
+
typeof ButtonTypeEnum
|
|
23
|
+
> = z.nativeEnum(ButtonTypeEnum);
|
|
24
|
+
|
|
25
|
+
/** @internal */
|
|
26
|
+
export const ButtonTypeEnum$outboundSchema: z.ZodNativeEnum<
|
|
27
|
+
typeof ButtonTypeEnum
|
|
28
|
+
> = ButtonTypeEnum$inboundSchema;
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* @internal
|
|
32
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
33
|
+
*/
|
|
34
|
+
export namespace ButtonTypeEnum$ {
|
|
35
|
+
/** @deprecated use `ButtonTypeEnum$inboundSchema` instead. */
|
|
36
|
+
export const inboundSchema = ButtonTypeEnum$inboundSchema;
|
|
37
|
+
/** @deprecated use `ButtonTypeEnum$outboundSchema` instead. */
|
|
38
|
+
export const outboundSchema = ButtonTypeEnum$outboundSchema;
|
|
39
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { ClosedEnum } from "../../types/enums.js";
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* Type of call to action
|
|
10
|
+
*/
|
|
11
|
+
export const ChannelCTATypeEnum = {
|
|
12
|
+
Redirect: "redirect",
|
|
13
|
+
} as const;
|
|
14
|
+
/**
|
|
15
|
+
* Type of call to action
|
|
16
|
+
*/
|
|
17
|
+
export type ChannelCTATypeEnum = ClosedEnum<typeof ChannelCTATypeEnum>;
|
|
18
|
+
|
|
19
|
+
/** @internal */
|
|
20
|
+
export const ChannelCTATypeEnum$inboundSchema: z.ZodNativeEnum<
|
|
21
|
+
typeof ChannelCTATypeEnum
|
|
22
|
+
> = z.nativeEnum(ChannelCTATypeEnum);
|
|
23
|
+
|
|
24
|
+
/** @internal */
|
|
25
|
+
export const ChannelCTATypeEnum$outboundSchema: z.ZodNativeEnum<
|
|
26
|
+
typeof ChannelCTATypeEnum
|
|
27
|
+
> = ChannelCTATypeEnum$inboundSchema;
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* @internal
|
|
31
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
32
|
+
*/
|
|
33
|
+
export namespace ChannelCTATypeEnum$ {
|
|
34
|
+
/** @deprecated use `ChannelCTATypeEnum$inboundSchema` instead. */
|
|
35
|
+
export const inboundSchema = ChannelCTATypeEnum$inboundSchema;
|
|
36
|
+
/** @deprecated use `ChannelCTATypeEnum$outboundSchema` instead. */
|
|
37
|
+
export const outboundSchema = ChannelCTATypeEnum$outboundSchema;
|
|
38
|
+
}
|
|
@@ -4,64 +4,32 @@
|
|
|
4
4
|
|
|
5
5
|
import * as z from "zod";
|
|
6
6
|
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
-
import { ClosedEnum } from "../../types/enums.js";
|
|
8
7
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
8
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
InApp: "in_app",
|
|
16
|
-
Email: "email",
|
|
17
|
-
Sms: "sms",
|
|
18
|
-
Chat: "chat",
|
|
19
|
-
Push: "push",
|
|
20
|
-
} as const;
|
|
21
|
-
/**
|
|
22
|
-
* The type of channel that is enabled or not
|
|
23
|
-
*/
|
|
24
|
-
export type ChannelPreferenceType = ClosedEnum<typeof ChannelPreferenceType>;
|
|
9
|
+
import {
|
|
10
|
+
ChannelTypeEnum,
|
|
11
|
+
ChannelTypeEnum$inboundSchema,
|
|
12
|
+
ChannelTypeEnum$outboundSchema,
|
|
13
|
+
} from "./channeltypeenum.js";
|
|
25
14
|
|
|
26
15
|
export type ChannelPreference = {
|
|
27
16
|
/**
|
|
28
|
-
*
|
|
17
|
+
* Channel type through which the message is sent
|
|
29
18
|
*/
|
|
30
|
-
type:
|
|
19
|
+
type: ChannelTypeEnum;
|
|
31
20
|
/**
|
|
32
21
|
* If channel is enabled or not
|
|
33
22
|
*/
|
|
34
23
|
enabled: boolean;
|
|
35
24
|
};
|
|
36
25
|
|
|
37
|
-
/** @internal */
|
|
38
|
-
export const ChannelPreferenceType$inboundSchema: z.ZodNativeEnum<
|
|
39
|
-
typeof ChannelPreferenceType
|
|
40
|
-
> = z.nativeEnum(ChannelPreferenceType);
|
|
41
|
-
|
|
42
|
-
/** @internal */
|
|
43
|
-
export const ChannelPreferenceType$outboundSchema: z.ZodNativeEnum<
|
|
44
|
-
typeof ChannelPreferenceType
|
|
45
|
-
> = ChannelPreferenceType$inboundSchema;
|
|
46
|
-
|
|
47
|
-
/**
|
|
48
|
-
* @internal
|
|
49
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
50
|
-
*/
|
|
51
|
-
export namespace ChannelPreferenceType$ {
|
|
52
|
-
/** @deprecated use `ChannelPreferenceType$inboundSchema` instead. */
|
|
53
|
-
export const inboundSchema = ChannelPreferenceType$inboundSchema;
|
|
54
|
-
/** @deprecated use `ChannelPreferenceType$outboundSchema` instead. */
|
|
55
|
-
export const outboundSchema = ChannelPreferenceType$outboundSchema;
|
|
56
|
-
}
|
|
57
|
-
|
|
58
26
|
/** @internal */
|
|
59
27
|
export const ChannelPreference$inboundSchema: z.ZodType<
|
|
60
28
|
ChannelPreference,
|
|
61
29
|
z.ZodTypeDef,
|
|
62
30
|
unknown
|
|
63
31
|
> = z.object({
|
|
64
|
-
type:
|
|
32
|
+
type: ChannelTypeEnum$inboundSchema,
|
|
65
33
|
enabled: z.boolean(),
|
|
66
34
|
});
|
|
67
35
|
|
|
@@ -77,7 +45,7 @@ export const ChannelPreference$outboundSchema: z.ZodType<
|
|
|
77
45
|
z.ZodTypeDef,
|
|
78
46
|
ChannelPreference
|
|
79
47
|
> = z.object({
|
|
80
|
-
type:
|
|
48
|
+
type: ChannelTypeEnum$outboundSchema,
|
|
81
49
|
enabled: z.boolean(),
|
|
82
50
|
});
|
|
83
51
|
|
|
@@ -6,7 +6,7 @@ import * as z from "zod";
|
|
|
6
6
|
import { ClosedEnum } from "../../types/enums.js";
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
|
-
*
|
|
9
|
+
* Channel type through which the message is sent
|
|
10
10
|
*/
|
|
11
11
|
export const ChannelTypeEnum = {
|
|
12
12
|
InApp: "in_app",
|
|
@@ -16,7 +16,7 @@ export const ChannelTypeEnum = {
|
|
|
16
16
|
Push: "push",
|
|
17
17
|
} as const;
|
|
18
18
|
/**
|
|
19
|
-
*
|
|
19
|
+
* Channel type through which the message is sent
|
|
20
20
|
*/
|
|
21
21
|
export type ChannelTypeEnum = ClosedEnum<typeof ChannelTypeEnum>;
|
|
22
22
|
|
|
@@ -4,7 +4,6 @@
|
|
|
4
4
|
|
|
5
5
|
import * as z from "zod";
|
|
6
6
|
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
-
import { ClosedEnum } from "../../types/enums.js";
|
|
8
7
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
8
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
9
|
import {
|
|
@@ -13,48 +12,38 @@ import {
|
|
|
13
12
|
EmailBlockStyles$Outbound,
|
|
14
13
|
EmailBlockStyles$outboundSchema,
|
|
15
14
|
} from "./emailblockstyles.js";
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
}
|
|
21
|
-
export type EmailBlockType = ClosedEnum<typeof EmailBlockType>;
|
|
15
|
+
import {
|
|
16
|
+
EmailBlockTypeEnum,
|
|
17
|
+
EmailBlockTypeEnum$inboundSchema,
|
|
18
|
+
EmailBlockTypeEnum$outboundSchema,
|
|
19
|
+
} from "./emailblocktypeenum.js";
|
|
22
20
|
|
|
23
21
|
export type EmailBlock = {
|
|
24
|
-
|
|
22
|
+
/**
|
|
23
|
+
* Type of the email block
|
|
24
|
+
*/
|
|
25
|
+
type: EmailBlockTypeEnum;
|
|
26
|
+
/**
|
|
27
|
+
* Content of the email block
|
|
28
|
+
*/
|
|
25
29
|
content: string;
|
|
30
|
+
/**
|
|
31
|
+
* URL associated with the email block, if any
|
|
32
|
+
*/
|
|
26
33
|
url?: string | undefined;
|
|
34
|
+
/**
|
|
35
|
+
* Styles applied to the email block
|
|
36
|
+
*/
|
|
27
37
|
styles?: EmailBlockStyles | undefined;
|
|
28
38
|
};
|
|
29
39
|
|
|
30
|
-
/** @internal */
|
|
31
|
-
export const EmailBlockType$inboundSchema: z.ZodNativeEnum<
|
|
32
|
-
typeof EmailBlockType
|
|
33
|
-
> = z.nativeEnum(EmailBlockType);
|
|
34
|
-
|
|
35
|
-
/** @internal */
|
|
36
|
-
export const EmailBlockType$outboundSchema: z.ZodNativeEnum<
|
|
37
|
-
typeof EmailBlockType
|
|
38
|
-
> = EmailBlockType$inboundSchema;
|
|
39
|
-
|
|
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
|
-
export namespace EmailBlockType$ {
|
|
45
|
-
/** @deprecated use `EmailBlockType$inboundSchema` instead. */
|
|
46
|
-
export const inboundSchema = EmailBlockType$inboundSchema;
|
|
47
|
-
/** @deprecated use `EmailBlockType$outboundSchema` instead. */
|
|
48
|
-
export const outboundSchema = EmailBlockType$outboundSchema;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
40
|
/** @internal */
|
|
52
41
|
export const EmailBlock$inboundSchema: z.ZodType<
|
|
53
42
|
EmailBlock,
|
|
54
43
|
z.ZodTypeDef,
|
|
55
44
|
unknown
|
|
56
45
|
> = z.object({
|
|
57
|
-
type:
|
|
46
|
+
type: EmailBlockTypeEnum$inboundSchema,
|
|
58
47
|
content: z.string(),
|
|
59
48
|
url: z.string().optional(),
|
|
60
49
|
styles: EmailBlockStyles$inboundSchema.optional(),
|
|
@@ -74,7 +63,7 @@ export const EmailBlock$outboundSchema: z.ZodType<
|
|
|
74
63
|
z.ZodTypeDef,
|
|
75
64
|
EmailBlock
|
|
76
65
|
> = z.object({
|
|
77
|
-
type:
|
|
66
|
+
type: EmailBlockTypeEnum$outboundSchema,
|
|
78
67
|
content: z.string(),
|
|
79
68
|
url: z.string().optional(),
|
|
80
69
|
styles: EmailBlockStyles$outboundSchema.optional(),
|
|
@@ -4,47 +4,28 @@
|
|
|
4
4
|
|
|
5
5
|
import * as z from "zod";
|
|
6
6
|
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
-
import { ClosedEnum } from "../../types/enums.js";
|
|
8
7
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
8
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
} as const;
|
|
16
|
-
export type TextAlign = ClosedEnum<typeof TextAlign>;
|
|
9
|
+
import {
|
|
10
|
+
TextAlignEnum,
|
|
11
|
+
TextAlignEnum$inboundSchema,
|
|
12
|
+
TextAlignEnum$outboundSchema,
|
|
13
|
+
} from "./textalignenum.js";
|
|
17
14
|
|
|
18
15
|
export type EmailBlockStyles = {
|
|
19
|
-
|
|
16
|
+
/**
|
|
17
|
+
* Text alignment for the email block
|
|
18
|
+
*/
|
|
19
|
+
textAlign: TextAlignEnum;
|
|
20
20
|
};
|
|
21
21
|
|
|
22
|
-
/** @internal */
|
|
23
|
-
export const TextAlign$inboundSchema: z.ZodNativeEnum<typeof TextAlign> = z
|
|
24
|
-
.nativeEnum(TextAlign);
|
|
25
|
-
|
|
26
|
-
/** @internal */
|
|
27
|
-
export const TextAlign$outboundSchema: z.ZodNativeEnum<typeof TextAlign> =
|
|
28
|
-
TextAlign$inboundSchema;
|
|
29
|
-
|
|
30
|
-
/**
|
|
31
|
-
* @internal
|
|
32
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
33
|
-
*/
|
|
34
|
-
export namespace TextAlign$ {
|
|
35
|
-
/** @deprecated use `TextAlign$inboundSchema` instead. */
|
|
36
|
-
export const inboundSchema = TextAlign$inboundSchema;
|
|
37
|
-
/** @deprecated use `TextAlign$outboundSchema` instead. */
|
|
38
|
-
export const outboundSchema = TextAlign$outboundSchema;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
22
|
/** @internal */
|
|
42
23
|
export const EmailBlockStyles$inboundSchema: z.ZodType<
|
|
43
24
|
EmailBlockStyles,
|
|
44
25
|
z.ZodTypeDef,
|
|
45
26
|
unknown
|
|
46
27
|
> = z.object({
|
|
47
|
-
textAlign:
|
|
28
|
+
textAlign: TextAlignEnum$inboundSchema,
|
|
48
29
|
});
|
|
49
30
|
|
|
50
31
|
/** @internal */
|
|
@@ -58,7 +39,7 @@ export const EmailBlockStyles$outboundSchema: z.ZodType<
|
|
|
58
39
|
z.ZodTypeDef,
|
|
59
40
|
EmailBlockStyles
|
|
60
41
|
> = z.object({
|
|
61
|
-
textAlign:
|
|
42
|
+
textAlign: TextAlignEnum$outboundSchema,
|
|
62
43
|
});
|
|
63
44
|
|
|
64
45
|
/**
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { ClosedEnum } from "../../types/enums.js";
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* Type of the email block
|
|
10
|
+
*/
|
|
11
|
+
export const EmailBlockTypeEnum = {
|
|
12
|
+
Button: "button",
|
|
13
|
+
Text: "text",
|
|
14
|
+
} as const;
|
|
15
|
+
/**
|
|
16
|
+
* Type of the email block
|
|
17
|
+
*/
|
|
18
|
+
export type EmailBlockTypeEnum = ClosedEnum<typeof EmailBlockTypeEnum>;
|
|
19
|
+
|
|
20
|
+
/** @internal */
|
|
21
|
+
export const EmailBlockTypeEnum$inboundSchema: z.ZodNativeEnum<
|
|
22
|
+
typeof EmailBlockTypeEnum
|
|
23
|
+
> = z.nativeEnum(EmailBlockTypeEnum);
|
|
24
|
+
|
|
25
|
+
/** @internal */
|
|
26
|
+
export const EmailBlockTypeEnum$outboundSchema: z.ZodNativeEnum<
|
|
27
|
+
typeof EmailBlockTypeEnum
|
|
28
|
+
> = EmailBlockTypeEnum$inboundSchema;
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* @internal
|
|
32
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
33
|
+
*/
|
|
34
|
+
export namespace EmailBlockTypeEnum$ {
|
|
35
|
+
/** @deprecated use `EmailBlockTypeEnum$inboundSchema` instead. */
|
|
36
|
+
export const inboundSchema = EmailBlockTypeEnum$inboundSchema;
|
|
37
|
+
/** @deprecated use `EmailBlockTypeEnum$outboundSchema` instead. */
|
|
38
|
+
export const outboundSchema = EmailBlockTypeEnum$outboundSchema;
|
|
39
|
+
}
|
|
@@ -18,8 +18,10 @@ export * from "./assignsubscribertotopicdto.js";
|
|
|
18
18
|
export * from "./bulkcreatesubscriberresponsedto.js";
|
|
19
19
|
export * from "./bulksubscribercreatedto.js";
|
|
20
20
|
export * from "./bulktriggereventdto.js";
|
|
21
|
+
export * from "./buttontypeenum.js";
|
|
21
22
|
export * from "./channelcredentials.js";
|
|
22
23
|
export * from "./channelcredentialsdto.js";
|
|
24
|
+
export * from "./channelctatypeenum.js";
|
|
23
25
|
export * from "./channelpreference.js";
|
|
24
26
|
export * from "./channelsettings.js";
|
|
25
27
|
export * from "./channeltypeenum.js";
|
|
@@ -38,6 +40,7 @@ export * from "./digestregularmetadata.js";
|
|
|
38
40
|
export * from "./digesttimedmetadata.js";
|
|
39
41
|
export * from "./emailblock.js";
|
|
40
42
|
export * from "./emailblockstyles.js";
|
|
43
|
+
export * from "./emailblocktypeenum.js";
|
|
41
44
|
export * from "./failedassignmentsdto.js";
|
|
42
45
|
export * from "./failedoperationdto.js";
|
|
43
46
|
export * from "./feedresponsedto.js";
|
|
@@ -49,11 +52,13 @@ export * from "./markallmessageasrequestdto.js";
|
|
|
49
52
|
export * from "./markmessageactionasseendto.js";
|
|
50
53
|
export * from "./messageaction.js";
|
|
51
54
|
export * from "./messageactionresult.js";
|
|
55
|
+
export * from "./messageactionstatusenum.js";
|
|
52
56
|
export * from "./messagebutton.js";
|
|
53
57
|
export * from "./messagecta.js";
|
|
54
58
|
export * from "./messagectadata.js";
|
|
55
59
|
export * from "./messagemarkasrequestdto.js";
|
|
56
60
|
export * from "./messageresponsedto.js";
|
|
61
|
+
export * from "./messagestatusenum.js";
|
|
57
62
|
export * from "./messagetemplate.js";
|
|
58
63
|
export * from "./messagetemplatedto.js";
|
|
59
64
|
export * from "./notificationfeeditemdto.js";
|
|
@@ -79,6 +84,7 @@ export * from "./subscriberpayloaddto.js";
|
|
|
79
84
|
export * from "./subscriberresponsedto.js";
|
|
80
85
|
export * from "./templateresponse.js";
|
|
81
86
|
export * from "./tenantpayloaddto.js";
|
|
87
|
+
export * from "./textalignenum.js";
|
|
82
88
|
export * from "./timedconfig.js";
|
|
83
89
|
export * from "./topicdto.js";
|
|
84
90
|
export * from "./topicpayloaddto.js";
|