@novu/api 0.0.1-alpha.109 → 0.0.1-alpha.110
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 +3 -3
- package/lib/config.js +3 -3
- package/models/operations/notificationscontrollerlistnotifications.d.ts +27 -36
- package/models/operations/notificationscontrollerlistnotifications.d.ts.map +1 -1
- package/models/operations/notificationscontrollerlistnotifications.js +3 -26
- package/models/operations/notificationscontrollerlistnotifications.js.map +1 -1
- package/package.json +1 -1
- package/src/lib/config.ts +3 -3
- package/src/models/operations/notificationscontrollerlistnotifications.ts +29 -32
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.
|
|
31
|
-
readonly genVersion: "2.
|
|
32
|
-
readonly userAgent: "speakeasy-sdk/typescript 0.0.1-alpha.
|
|
30
|
+
readonly sdkVersion: "0.0.1-alpha.110";
|
|
31
|
+
readonly genVersion: "2.479.3";
|
|
32
|
+
readonly userAgent: "speakeasy-sdk/typescript 0.0.1-alpha.110 2.479.3 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.
|
|
34
|
-
genVersion: "2.
|
|
35
|
-
userAgent: "speakeasy-sdk/typescript 0.0.1-alpha.
|
|
33
|
+
sdkVersion: "0.0.1-alpha.110",
|
|
34
|
+
genVersion: "2.479.3",
|
|
35
|
+
userAgent: "speakeasy-sdk/typescript 0.0.1-alpha.110 2.479.3 1.0 @novu/api",
|
|
36
36
|
};
|
|
37
37
|
//# sourceMappingURL=config.js.map
|
|
@@ -1,28 +1,45 @@
|
|
|
1
1
|
import * as z from "zod";
|
|
2
|
-
import { ClosedEnum } from "../../types/enums.js";
|
|
3
2
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
4
3
|
import * as components from "../components/index.js";
|
|
5
4
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
6
|
-
export declare const Channels: {
|
|
7
|
-
readonly InApp: "in_app";
|
|
8
|
-
readonly Email: "email";
|
|
9
|
-
readonly Sms: "sms";
|
|
10
|
-
readonly Chat: "chat";
|
|
11
|
-
readonly Push: "push";
|
|
12
|
-
};
|
|
13
|
-
export type Channels = ClosedEnum<typeof Channels>;
|
|
14
5
|
export type NotificationsControllerListNotificationsRequest = {
|
|
15
|
-
|
|
6
|
+
/**
|
|
7
|
+
* Array of channel types
|
|
8
|
+
*/
|
|
9
|
+
channels?: Array<components.ChannelTypeEnum> | undefined;
|
|
10
|
+
/**
|
|
11
|
+
* Array of template IDs or a single template ID
|
|
12
|
+
*/
|
|
16
13
|
templates?: Array<string> | undefined;
|
|
14
|
+
/**
|
|
15
|
+
* Array of email addresses or a single email address
|
|
16
|
+
*/
|
|
17
17
|
emails?: Array<string> | undefined;
|
|
18
18
|
/**
|
|
19
|
+
* Search term (deprecated)
|
|
20
|
+
*
|
|
19
21
|
* @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
20
22
|
*/
|
|
21
23
|
search?: string | undefined;
|
|
24
|
+
/**
|
|
25
|
+
* Array of subscriber IDs or a single subscriber ID
|
|
26
|
+
*/
|
|
22
27
|
subscriberIds?: Array<string> | undefined;
|
|
28
|
+
/**
|
|
29
|
+
* Page number for pagination
|
|
30
|
+
*/
|
|
23
31
|
page?: number | undefined;
|
|
32
|
+
/**
|
|
33
|
+
* Transaction ID for filtering
|
|
34
|
+
*/
|
|
24
35
|
transactionId?: string | undefined;
|
|
36
|
+
/**
|
|
37
|
+
* Date filter for records after this timestamp
|
|
38
|
+
*/
|
|
25
39
|
after?: string | undefined;
|
|
40
|
+
/**
|
|
41
|
+
* Date filter for records before this timestamp
|
|
42
|
+
*/
|
|
26
43
|
before?: string | undefined;
|
|
27
44
|
};
|
|
28
45
|
export type NotificationsControllerListNotificationsResponse = {
|
|
@@ -32,32 +49,6 @@ export type NotificationsControllerListNotificationsResponse = {
|
|
|
32
49
|
result: components.ActivitiesResponseDto;
|
|
33
50
|
};
|
|
34
51
|
/** @internal */
|
|
35
|
-
export declare const Channels$inboundSchema: z.ZodNativeEnum<typeof Channels>;
|
|
36
|
-
/** @internal */
|
|
37
|
-
export declare const Channels$outboundSchema: z.ZodNativeEnum<typeof Channels>;
|
|
38
|
-
/**
|
|
39
|
-
* @internal
|
|
40
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
41
|
-
*/
|
|
42
|
-
export declare namespace Channels$ {
|
|
43
|
-
/** @deprecated use `Channels$inboundSchema` instead. */
|
|
44
|
-
const inboundSchema: z.ZodNativeEnum<{
|
|
45
|
-
readonly InApp: "in_app";
|
|
46
|
-
readonly Email: "email";
|
|
47
|
-
readonly Sms: "sms";
|
|
48
|
-
readonly Chat: "chat";
|
|
49
|
-
readonly Push: "push";
|
|
50
|
-
}>;
|
|
51
|
-
/** @deprecated use `Channels$outboundSchema` instead. */
|
|
52
|
-
const outboundSchema: z.ZodNativeEnum<{
|
|
53
|
-
readonly InApp: "in_app";
|
|
54
|
-
readonly Email: "email";
|
|
55
|
-
readonly Sms: "sms";
|
|
56
|
-
readonly Chat: "chat";
|
|
57
|
-
readonly Push: "push";
|
|
58
|
-
}>;
|
|
59
|
-
}
|
|
60
|
-
/** @internal */
|
|
61
52
|
export declare const NotificationsControllerListNotificationsRequest$inboundSchema: z.ZodType<NotificationsControllerListNotificationsRequest, z.ZodTypeDef, unknown>;
|
|
62
53
|
/** @internal */
|
|
63
54
|
export type NotificationsControllerListNotificationsRequest$Outbound = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"notificationscontrollerlistnotifications.d.ts","sourceRoot":"","sources":["../../src/models/operations/notificationscontrollerlistnotifications.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAGzB,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"notificationscontrollerlistnotifications.d.ts","sourceRoot":"","sources":["../../src/models/operations/notificationscontrollerlistnotifications.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAGzB,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,KAAK,UAAU,MAAM,wBAAwB,CAAC;AACrD,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE,MAAM,MAAM,+CAA+C,GAAG;IAC5D;;OAEG;IACH,QAAQ,CAAC,EAAE,KAAK,CAAC,UAAU,CAAC,eAAe,CAAC,GAAG,SAAS,CAAC;IACzD;;OAEG;IACH,SAAS,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,GAAG,SAAS,CAAC;IACtC;;OAEG;IACH,MAAM,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,GAAG,SAAS,CAAC;IACnC;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC5B;;OAEG;IACH,aAAa,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,GAAG,SAAS,CAAC;IAC1C;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1B;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACnC;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3B;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC7B,CAAC;AA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,+CAA+C,GAChD,MAAM,CAMR;AAED,wBAAgB,uDAAuD,CACrE,UAAU,EAAE,MAAM,GACjB,eAAe,CAChB,+CAA+C,EAC/C,kBAAkB,CACnB,CASA;AAED,gBAAgB;AAChB,eAAO,MAAM,8DAA8D,EACzE,CAAC,CAAC,OAAO,CACP,gDAAgD,EAChD,CAAC,CAAC,UAAU,EACZ,OAAO,CASP,CAAC;AAEL,gBAAgB;AAChB,MAAM,MAAM,yDAAyD,GAAG;IACtE,OAAO,EAAE;QAAE,CAAC,CAAC,EAAE,MAAM,GAAG,KAAK,CAAC,MAAM,CAAC,CAAA;KAAE,CAAC;IACxC,MAAM,EAAE,UAAU,CAAC,8BAA8B,CAAC;CACnD,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,+DAA+D,EAC1E,CAAC,CAAC,OAAO,CACP,yDAAyD,EACzD,CAAC,CAAC,UAAU,EACZ,gDAAgD,CAShD,CAAC;AAEL;;;GAGG;AACH,yBAAiB,iDAAiD,CAAC;IACjE,gGAAgG;IACzF,MAAM,aAAa,oFACsC,CAAC;IACjE,iGAAiG;IAC1F,MAAM,cAAc,sIACsC,CAAC;IAClE,2FAA2F;IAC3F,KAAY,QAAQ,GAClB,yDAAyD,CAAC;CAC7D;AAED,wBAAgB,sDAAsD,CACpE,gDAAgD,EAC9C,gDAAgD,GACjD,MAAM,CAMR;AAED,wBAAgB,wDAAwD,CACtE,UAAU,EAAE,MAAM,GACjB,eAAe,CAChB,gDAAgD,EAChD,kBAAkB,CACnB,CASA"}
|
|
@@ -26,37 +26,14 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
26
26
|
return result;
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.notificationsControllerListNotificationsResponseFromJSON = exports.notificationsControllerListNotificationsResponseToJSON = exports.NotificationsControllerListNotificationsResponse$ = exports.NotificationsControllerListNotificationsResponse$outboundSchema = exports.NotificationsControllerListNotificationsResponse$inboundSchema = exports.notificationsControllerListNotificationsRequestFromJSON = exports.notificationsControllerListNotificationsRequestToJSON = exports.NotificationsControllerListNotificationsRequest$ = exports.NotificationsControllerListNotificationsRequest$outboundSchema = exports.NotificationsControllerListNotificationsRequest$inboundSchema =
|
|
29
|
+
exports.notificationsControllerListNotificationsResponseFromJSON = exports.notificationsControllerListNotificationsResponseToJSON = exports.NotificationsControllerListNotificationsResponse$ = exports.NotificationsControllerListNotificationsResponse$outboundSchema = exports.NotificationsControllerListNotificationsResponse$inboundSchema = exports.notificationsControllerListNotificationsRequestFromJSON = exports.notificationsControllerListNotificationsRequestToJSON = exports.NotificationsControllerListNotificationsRequest$ = exports.NotificationsControllerListNotificationsRequest$outboundSchema = exports.NotificationsControllerListNotificationsRequest$inboundSchema = void 0;
|
|
30
30
|
const z = __importStar(require("zod"));
|
|
31
31
|
const primitives_js_1 = require("../../lib/primitives.js");
|
|
32
32
|
const schemas_js_1 = require("../../lib/schemas.js");
|
|
33
33
|
const components = __importStar(require("../components/index.js"));
|
|
34
|
-
exports.Channels = {
|
|
35
|
-
InApp: "in_app",
|
|
36
|
-
Email: "email",
|
|
37
|
-
Sms: "sms",
|
|
38
|
-
Chat: "chat",
|
|
39
|
-
Push: "push",
|
|
40
|
-
};
|
|
41
|
-
/** @internal */
|
|
42
|
-
exports.Channels$inboundSchema = z
|
|
43
|
-
.nativeEnum(exports.Channels);
|
|
44
|
-
/** @internal */
|
|
45
|
-
exports.Channels$outboundSchema = exports.Channels$inboundSchema;
|
|
46
|
-
/**
|
|
47
|
-
* @internal
|
|
48
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
49
|
-
*/
|
|
50
|
-
var Channels$;
|
|
51
|
-
(function (Channels$) {
|
|
52
|
-
/** @deprecated use `Channels$inboundSchema` instead. */
|
|
53
|
-
Channels$.inboundSchema = exports.Channels$inboundSchema;
|
|
54
|
-
/** @deprecated use `Channels$outboundSchema` instead. */
|
|
55
|
-
Channels$.outboundSchema = exports.Channels$outboundSchema;
|
|
56
|
-
})(Channels$ || (exports.Channels$ = Channels$ = {}));
|
|
57
34
|
/** @internal */
|
|
58
35
|
exports.NotificationsControllerListNotificationsRequest$inboundSchema = z.object({
|
|
59
|
-
channels: z.array(
|
|
36
|
+
channels: z.array(components.ChannelTypeEnum$inboundSchema).optional(),
|
|
60
37
|
templates: z.array(z.string()).optional(),
|
|
61
38
|
emails: z.array(z.string()).optional(),
|
|
62
39
|
search: z.string().optional(),
|
|
@@ -68,7 +45,7 @@ exports.NotificationsControllerListNotificationsRequest$inboundSchema = z.object
|
|
|
68
45
|
});
|
|
69
46
|
/** @internal */
|
|
70
47
|
exports.NotificationsControllerListNotificationsRequest$outboundSchema = z.object({
|
|
71
|
-
channels: z.array(
|
|
48
|
+
channels: z.array(components.ChannelTypeEnum$outboundSchema).optional(),
|
|
72
49
|
templates: z.array(z.string()).optional(),
|
|
73
50
|
emails: z.array(z.string()).optional(),
|
|
74
51
|
search: z.string().optional(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"notificationscontrollerlistnotifications.js","sourceRoot":"","sources":["../../src/models/operations/notificationscontrollerlistnotifications.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,uCAAyB;AACzB,2DAA0D;AAC1D,qDAAiD;
|
|
1
|
+
{"version":3,"file":"notificationscontrollerlistnotifications.js","sourceRoot":"","sources":["../../src/models/operations/notificationscontrollerlistnotifications.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,uCAAyB;AACzB,2DAA0D;AAC1D,qDAAiD;AAEjD,mEAAqD;AAiDrD,gBAAgB;AACH,QAAA,6DAA6D,GAKpE,CAAC,CAAC,MAAM,CAAC;IACX,QAAQ,EAAE,CAAC,CAAC,KAAK,CAAC,UAAU,CAAC,6BAA6B,CAAC,CAAC,QAAQ,EAAE;IACtE,SAAS,EAAE,CAAC,CAA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AC,CAAC,MAAM,EAAE,CAAC,CAAC;IACtC,MAAM,EAAE,UAAU,CAAC,oCAAoC;CACxD,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,OAAO,EAAE,SAAS;QAClB,MAAM,EAAE,QAAQ;KACjB,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEL;;;GAGG;AACH,IAAiB,iDAAiD,CAUjE;AAVD,WAAiB,iDAAiD;IAChE,gGAAgG;IACnF,+DAAa,GACxB,sEAA8D,CAAC;IACjE,iGAAiG;IACpF,gEAAc,GACzB,uEAA+D,CAAC;AAIpE,CAAC,EAVgB,iDAAiD,iEAAjD,iDAAiD,QAUjE;AAED,SAAgB,sDAAsD,CACpE,gDACkD;IAElD,OAAO,IAAI,CAAC,SAAS,CACnB,uEAA+D,CAAC,KAAK,CACnE,gDAAgD,CACjD,CACF,CAAC;AACJ,CAAC;AATD,wHASC;AAED,SAAgB,wDAAwD,CACtE,UAAkB;IAKlB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CACJ,sEAA8D,CAAC,KAAK,CAClE,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CACd,EACH,8EAA8E,CAC/E,CAAC;AACJ,CAAC;AAdD,4HAcC"}
|
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.
|
|
59
|
-
genVersion: "2.
|
|
60
|
-
userAgent: "speakeasy-sdk/typescript 0.0.1-alpha.
|
|
58
|
+
sdkVersion: "0.0.1-alpha.110",
|
|
59
|
+
genVersion: "2.479.3",
|
|
60
|
+
userAgent: "speakeasy-sdk/typescript 0.0.1-alpha.110 2.479.3 1.0 @novu/api",
|
|
61
61
|
} as const;
|
|
@@ -5,32 +5,48 @@
|
|
|
5
5
|
import * as z from "zod";
|
|
6
6
|
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
7
|
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
-
import { ClosedEnum } from "../../types/enums.js";
|
|
9
8
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
10
9
|
import * as components from "../components/index.js";
|
|
11
10
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
12
11
|
|
|
13
|
-
export const Channels = {
|
|
14
|
-
InApp: "in_app",
|
|
15
|
-
Email: "email",
|
|
16
|
-
Sms: "sms",
|
|
17
|
-
Chat: "chat",
|
|
18
|
-
Push: "push",
|
|
19
|
-
} as const;
|
|
20
|
-
export type Channels = ClosedEnum<typeof Channels>;
|
|
21
|
-
|
|
22
12
|
export type NotificationsControllerListNotificationsRequest = {
|
|
23
|
-
|
|
13
|
+
/**
|
|
14
|
+
* Array of channel types
|
|
15
|
+
*/
|
|
16
|
+
channels?: Array<components.ChannelTypeEnum> | undefined;
|
|
17
|
+
/**
|
|
18
|
+
* Array of template IDs or a single template ID
|
|
19
|
+
*/
|
|
24
20
|
templates?: Array<string> | undefined;
|
|
21
|
+
/**
|
|
22
|
+
* Array of email addresses or a single email address
|
|
23
|
+
*/
|
|
25
24
|
emails?: Array<string> | undefined;
|
|
26
25
|
/**
|
|
26
|
+
* Search term (deprecated)
|
|
27
|
+
*
|
|
27
28
|
* @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
28
29
|
*/
|
|
29
30
|
search?: string | undefined;
|
|
31
|
+
/**
|
|
32
|
+
* Array of subscriber IDs or a single subscriber ID
|
|
33
|
+
*/
|
|
30
34
|
subscriberIds?: Array<string> | undefined;
|
|
35
|
+
/**
|
|
36
|
+
* Page number for pagination
|
|
37
|
+
*/
|
|
31
38
|
page?: number | undefined;
|
|
39
|
+
/**
|
|
40
|
+
* Transaction ID for filtering
|
|
41
|
+
*/
|
|
32
42
|
transactionId?: string | undefined;
|
|
43
|
+
/**
|
|
44
|
+
* Date filter for records after this timestamp
|
|
45
|
+
*/
|
|
33
46
|
after?: string | undefined;
|
|
47
|
+
/**
|
|
48
|
+
* Date filter for records before this timestamp
|
|
49
|
+
*/
|
|
34
50
|
before?: string | undefined;
|
|
35
51
|
};
|
|
36
52
|
|
|
@@ -39,25 +55,6 @@ export type NotificationsControllerListNotificationsResponse = {
|
|
|
39
55
|
result: components.ActivitiesResponseDto;
|
|
40
56
|
};
|
|
41
57
|
|
|
42
|
-
/** @internal */
|
|
43
|
-
export const Channels$inboundSchema: z.ZodNativeEnum<typeof Channels> = z
|
|
44
|
-
.nativeEnum(Channels);
|
|
45
|
-
|
|
46
|
-
/** @internal */
|
|
47
|
-
export const Channels$outboundSchema: z.ZodNativeEnum<typeof Channels> =
|
|
48
|
-
Channels$inboundSchema;
|
|
49
|
-
|
|
50
|
-
/**
|
|
51
|
-
* @internal
|
|
52
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
53
|
-
*/
|
|
54
|
-
export namespace Channels$ {
|
|
55
|
-
/** @deprecated use `Channels$inboundSchema` instead. */
|
|
56
|
-
export const inboundSchema = Channels$inboundSchema;
|
|
57
|
-
/** @deprecated use `Channels$outboundSchema` instead. */
|
|
58
|
-
export const outboundSchema = Channels$outboundSchema;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
58
|
/** @internal */
|
|
62
59
|
export const NotificationsControllerListNotificationsRequest$inboundSchema:
|
|
63
60
|
z.ZodType<
|
|
@@ -65,7 +62,7 @@ export const NotificationsControllerListNotificationsRequest$inboundSchema:
|
|
|
65
62
|
z.ZodTypeDef,
|
|
66
63
|
unknown
|
|
67
64
|
> = z.object({
|
|
68
|
-
channels: z.array(
|
|
65
|
+
channels: z.array(components.ChannelTypeEnum$inboundSchema).optional(),
|
|
69
66
|
templates: z.array(z.string()).optional(),
|
|
70
67
|
emails: z.array(z.string()).optional(),
|
|
71
68
|
search: z.string().optional(),
|
|
@@ -96,7 +93,7 @@ export const NotificationsControllerListNotificationsRequest$outboundSchema:
|
|
|
96
93
|
z.ZodTypeDef,
|
|
97
94
|
NotificationsControllerListNotificationsRequest
|
|
98
95
|
> = z.object({
|
|
99
|
-
channels: z.array(
|
|
96
|
+
channels: z.array(components.ChannelTypeEnum$outboundSchema).optional(),
|
|
100
97
|
templates: z.array(z.string()).optional(),
|
|
101
98
|
emails: z.array(z.string()).optional(),
|
|
102
99
|
search: z.string().optional(),
|