@novu/api 0.0.1-alpha.92 → 0.0.1-alpha.94

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.
Files changed (34) hide show
  1. package/lib/config.d.ts +2 -2
  2. package/lib/config.js +2 -2
  3. package/models/components/builderfieldtype.d.ts +46 -0
  4. package/models/components/builderfieldtype.d.ts.map +1 -0
  5. package/models/components/builderfieldtype.js +56 -0
  6. package/models/components/builderfieldtype.js.map +1 -0
  7. package/models/components/channelpreference.d.ts +8 -8
  8. package/models/components/channelpreference.d.ts.map +1 -1
  9. package/models/components/channelpreference.js +13 -13
  10. package/models/components/channelpreference.js.map +1 -1
  11. package/models/components/index.d.ts +2 -0
  12. package/models/components/index.d.ts.map +1 -1
  13. package/models/components/index.js +2 -0
  14. package/models/components/index.js.map +1 -1
  15. package/models/components/stepfilter.d.ts +2 -44
  16. package/models/components/stepfilter.d.ts.map +1 -1
  17. package/models/components/stepfilter.js +4 -28
  18. package/models/components/stepfilter.js.map +1 -1
  19. package/models/components/topicpayloaddto.d.ts +2 -27
  20. package/models/components/topicpayloaddto.d.ts.map +1 -1
  21. package/models/components/topicpayloaddto.js +4 -22
  22. package/models/components/topicpayloaddto.js.map +1 -1
  23. package/models/components/triggerrecipientstypeenum.d.ts +28 -0
  24. package/models/components/triggerrecipientstypeenum.d.ts.map +1 -0
  25. package/models/components/triggerrecipientstypeenum.js +50 -0
  26. package/models/components/triggerrecipientstypeenum.js.map +1 -0
  27. package/package.json +1 -1
  28. package/src/lib/config.ts +2 -2
  29. package/src/models/components/builderfieldtype.ts +39 -0
  30. package/src/models/components/channelpreference.ts +15 -16
  31. package/src/models/components/index.ts +2 -0
  32. package/src/models/components/stepfilter.ts +8 -36
  33. package/src/models/components/topicpayloaddto.ts +8 -30
  34. package/src/models/components/triggerrecipientstypeenum.ts +35 -0
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.92";
30
+ readonly sdkVersion: "0.0.1-alpha.94";
31
31
  readonly genVersion: "2.477.0";
32
- readonly userAgent: "speakeasy-sdk/typescript 0.0.1-alpha.92 2.477.0 1.0 @novu/api";
32
+ readonly userAgent: "speakeasy-sdk/typescript 0.0.1-alpha.94 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.92",
33
+ sdkVersion: "0.0.1-alpha.94",
34
34
  genVersion: "2.477.0",
35
- userAgent: "speakeasy-sdk/typescript 0.0.1-alpha.92 2.477.0 1.0 @novu/api",
35
+ userAgent: "speakeasy-sdk/typescript 0.0.1-alpha.94 2.477.0 1.0 @novu/api",
36
36
  };
37
37
  //# sourceMappingURL=config.js.map
@@ -0,0 +1,46 @@
1
+ import * as z from "zod";
2
+ import { ClosedEnum } from "../../types/enums.js";
3
+ export declare const BuilderFieldType: {
4
+ readonly Boolean: "BOOLEAN";
5
+ readonly Text: "TEXT";
6
+ readonly Date: "DATE";
7
+ readonly Number: "NUMBER";
8
+ readonly Statement: "STATEMENT";
9
+ readonly List: "LIST";
10
+ readonly MultiList: "MULTI_LIST";
11
+ readonly Group: "GROUP";
12
+ };
13
+ export type BuilderFieldType = ClosedEnum<typeof BuilderFieldType>;
14
+ /** @internal */
15
+ export declare const BuilderFieldType$inboundSchema: z.ZodNativeEnum<typeof BuilderFieldType>;
16
+ /** @internal */
17
+ export declare const BuilderFieldType$outboundSchema: z.ZodNativeEnum<typeof BuilderFieldType>;
18
+ /**
19
+ * @internal
20
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
21
+ */
22
+ export declare namespace BuilderFieldType$ {
23
+ /** @deprecated use `BuilderFieldType$inboundSchema` instead. */
24
+ const inboundSchema: z.ZodNativeEnum<{
25
+ readonly Boolean: "BOOLEAN";
26
+ readonly Text: "TEXT";
27
+ readonly Date: "DATE";
28
+ readonly Number: "NUMBER";
29
+ readonly Statement: "STATEMENT";
30
+ readonly List: "LIST";
31
+ readonly MultiList: "MULTI_LIST";
32
+ readonly Group: "GROUP";
33
+ }>;
34
+ /** @deprecated use `BuilderFieldType$outboundSchema` instead. */
35
+ const outboundSchema: z.ZodNativeEnum<{
36
+ readonly Boolean: "BOOLEAN";
37
+ readonly Text: "TEXT";
38
+ readonly Date: "DATE";
39
+ readonly Number: "NUMBER";
40
+ readonly Statement: "STATEMENT";
41
+ readonly List: "LIST";
42
+ readonly MultiList: "MULTI_LIST";
43
+ readonly Group: "GROUP";
44
+ }>;
45
+ }
46
+ //# sourceMappingURL=builderfieldtype.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"builderfieldtype.d.ts","sourceRoot":"","sources":["../../src/models/components/builderfieldtype.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAElD,eAAO,MAAM,gBAAgB;;;;;;;;;CASnB,CAAC;AACX,MAAM,MAAM,gBAAgB,GAAG,UAAU,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAEnE,gBAAgB;AAChB,eAAO,MAAM,8BAA8B,EAAE,CAAC,CAAC,aAAa,CAC1D,OAAO,gBAAgB,CACS,CAAC;AAEnC,gBAAgB;AAChB,eAAO,MAAM,+BAA+B,EAAE,CAAC,CAAC,aAAa,CAC3D,OAAO,gBAAgB,CACS,CAAC;AAEnC;;;GAGG;AACH,yBAAiB,iBAAiB,CAAC;IACjC,gEAAgE;IACzD,MAAM,aAAa;;;;;;;;;MAAiC,CAAC;IAC5D,iEAAiE;IAC1D,MAAM,cAAc;;;;;;;;;MAAkC,CAAC;CAC/D"}
@@ -0,0 +1,56 @@
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.BuilderFieldType$ = exports.BuilderFieldType$outboundSchema = exports.BuilderFieldType$inboundSchema = exports.BuilderFieldType = void 0;
30
+ const z = __importStar(require("zod"));
31
+ exports.BuilderFieldType = {
32
+ Boolean: "BOOLEAN",
33
+ Text: "TEXT",
34
+ Date: "DATE",
35
+ Number: "NUMBER",
36
+ Statement: "STATEMENT",
37
+ List: "LIST",
38
+ MultiList: "MULTI_LIST",
39
+ Group: "GROUP",
40
+ };
41
+ /** @internal */
42
+ exports.BuilderFieldType$inboundSchema = z.nativeEnum(exports.BuilderFieldType);
43
+ /** @internal */
44
+ exports.BuilderFieldType$outboundSchema = exports.BuilderFieldType$inboundSchema;
45
+ /**
46
+ * @internal
47
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
48
+ */
49
+ var BuilderFieldType$;
50
+ (function (BuilderFieldType$) {
51
+ /** @deprecated use `BuilderFieldType$inboundSchema` instead. */
52
+ BuilderFieldType$.inboundSchema = exports.BuilderFieldType$inboundSchema;
53
+ /** @deprecated use `BuilderFieldType$outboundSchema` instead. */
54
+ BuilderFieldType$.outboundSchema = exports.BuilderFieldType$outboundSchema;
55
+ })(BuilderFieldType$ || (exports.BuilderFieldType$ = BuilderFieldType$ = {}));
56
+ //# sourceMappingURL=builderfieldtype.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"builderfieldtype.js","sourceRoot":"","sources":["../../src/models/components/builderfieldtype.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,uCAAyB;AAGZ,QAAA,gBAAgB,GAAG;IAC9B,OAAO,EAAE,SAAS;IAClB,IAAI,EAAE,MAAM;IACZ,IAAI,EAAE,MAAM;IACZ,MAAM,EAAE,QAAQ;IAChB,SAAS,EAAE,WAAW;IACtB,IAAI,EAAE,MAAM;IACZ,SAAS,EAAE,YAAY;IACvB,KAAK,EAAE,OAAO;CACN,CAAC;AAGX,gBAAgB;AACH,QAAA,8BAA8B,GAEvC,CAAC,CAAC,UAAU,CAAC,wBAAgB,CAAC,CAAC;AAEnC,gBAAgB;AACH,QAAA,+BAA+B,GAExC,sCAA8B,CAAC;AAEnC;;;GAGG;AACH,IAAiB,iBAAiB,CAKjC;AALD,WAAiB,iBAAiB;IAChC,gEAAgE;IACnD,+BAAa,GAAG,sCAA8B,CAAC;IAC5D,iEAAiE;IACpD,gCAAc,GAAG,uCAA+B,CAAC;AAChE,CAAC,EALgB,iBAAiB,iCAAjB,iBAAiB,QAKjC"}
@@ -5,7 +5,7 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
5
5
  /**
6
6
  * The type of channel that is enabled or not
7
7
  */
8
- export declare const ChannelPreferenceType: {
8
+ export declare const Type: {
9
9
  readonly InApp: "in_app";
10
10
  readonly Email: "email";
11
11
  readonly Sms: "sms";
@@ -15,27 +15,27 @@ export declare const ChannelPreferenceType: {
15
15
  /**
16
16
  * The type of channel that is enabled or not
17
17
  */
18
- export type ChannelPreferenceType = ClosedEnum<typeof ChannelPreferenceType>;
18
+ export type Type = ClosedEnum<typeof Type>;
19
19
  export type ChannelPreference = {
20
20
  /**
21
21
  * The type of channel that is enabled or not
22
22
  */
23
- type: ChannelPreferenceType;
23
+ type: Type;
24
24
  /**
25
25
  * If channel is enabled or not
26
26
  */
27
27
  enabled: boolean;
28
28
  };
29
29
  /** @internal */
30
- export declare const ChannelPreferenceType$inboundSchema: z.ZodNativeEnum<typeof ChannelPreferenceType>;
30
+ export declare const Type$inboundSchema: z.ZodNativeEnum<typeof Type>;
31
31
  /** @internal */
32
- export declare const ChannelPreferenceType$outboundSchema: z.ZodNativeEnum<typeof ChannelPreferenceType>;
32
+ export declare const Type$outboundSchema: z.ZodNativeEnum<typeof Type>;
33
33
  /**
34
34
  * @internal
35
35
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
36
36
  */
37
- export declare namespace ChannelPreferenceType$ {
38
- /** @deprecated use `ChannelPreferenceType$inboundSchema` instead. */
37
+ export declare namespace Type$ {
38
+ /** @deprecated use `Type$inboundSchema` instead. */
39
39
  const inboundSchema: z.ZodNativeEnum<{
40
40
  readonly InApp: "in_app";
41
41
  readonly Email: "email";
@@ -43,7 +43,7 @@ export declare namespace ChannelPreferenceType$ {
43
43
  readonly Chat: "chat";
44
44
  readonly Push: "push";
45
45
  }>;
46
- /** @deprecated use `ChannelPreferenceType$outboundSchema` instead. */
46
+ /** @deprecated use `Type$outboundSchema` instead. */
47
47
  const outboundSchema: z.ZodNativeEnum<{
48
48
  readonly InApp: "in_app";
49
49
  readonly Email: "email";
@@ -1 +1 @@
1
- {"version":3,"file":"channelpreference.d.ts","sourceRoot":"","sources":["../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IjB,CAAC;AAEH;;;GAGG;AACH,yBAAiB,kBAAkB,CAAC;IAClC,iEAAiE;IAC1D,MAAM,aAAa,qDAAkC,CAAC;IAC7D,kEAAkE;IAC3D,MAAM,cAAc,wEAAmC,CAAC;IAC/D,4DAA4D;IAC5D,KAAY,QAAQ,GAAG,0BAA0B,CAAC;CACnD;AAED,wBAAgB,uBAAuB,CACrC,iBAAiB,EAAE,iBAAiB,GACnC,MAAM,CAIR;AAED,wBAAgB,yBAAyB,CACvC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,iBAAiB,EAAE,kBAAkB,CAAC,CAMxD"}
1
+ {"version":3,"file":"channelpreference.d.ts","sourceRoot":"","sources":["../../src/models/components/channelpreference.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE;;GAEG;AACH,eAAO,MAAM,IAAI;;;;;;CAMP,CAAC;AACX;;GAEG;AACH,MAAM,MAAM,IAAI,GAAG,UAAU,CAAC,OAAO,IAAI,CAAC,CAAC;AAE3C,MAAM,MAAM,iBAAiB,GAAG;IAC9B;;OAEG;IACH,IAAI,EAAE,IAAI,CAAC;IACX;;OAEG;IACH,OAAO,EAAE,OAAO,CAAC;CAClB,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,kBAAkB,EAAE,CAAC,CAAC,aAAa,CAAC,OAAO,IAAI,CAE3D,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,mBAAmB,EAAE,CAAC,CAAC,aAAa,CAAC,OAAO,IAAI,CACzC,CAAC;AAErB;;;GAGG;AACH,yBAAiB,KAAK,CAAC;IACrB,oDAAoD;IAC7C,MAAM,aAAa;;;;;;MAAqB,CAAC;IAChD,qDAAqD;IAC9C,MAAM,cAAc;;;;;;MAAsB,CAAC;CACnD;AAED,gBAAgB;AAChB,eAAO,MAAM,+BAA+B,EAAE,CAAC,CAAC,OAAO,CACrD,iBAAiB,EACjB,CAAC,CAAC,UAAU,EACZ,OAAO,CAIP,CAAC;AAEH,gBAAgB;AAChB,MAAM,MAAM,0BAA0B,GAAG;IACvC,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,OAAO,CAAC;CAClB,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,gCAAgC,EAAE,CAAC,CAAC,OAAO,CACtD,0BAA0B,EAC1B,CAAC,CAAC,UAAU,EACZ,iBAAiB,CAIjB,CAAC;AAEH;;;GAGG;AACH,yBAAiB,kBAAkB,CAAC;IAClC,iEAAiE;IAC1D,MAAM,aAAa,qDAAkC,CAAC;IAC7D,kEAAkE;IAC3D,MAAM,cAAc,wEAAmC,CAAC;IAC/D,4DAA4D;IAC5D,KAAY,QAAQ,GAAG,0BAA0B,CAAC;CACnD;AAED,wBAAgB,uBAAuB,CACrC,iBAAiB,EAAE,iBAAiB,GACnC,MAAM,CAIR;AAED,wBAAgB,yBAAyB,CACvC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,iBAAiB,EAAE,kBAAkB,CAAC,CAMxD"}
@@ -26,13 +26,13 @@ var __importStar = (this && this.__importStar) || function (mod) {
26
26
  return result;
27
27
  };
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
- exports.channelPreferenceFromJSON = exports.channelPreferenceToJSON = exports.ChannelPreference$ = exports.ChannelPreference$outboundSchema = exports.ChannelPreference$inboundSchema = exports.ChannelPreferenceType$ = exports.ChannelPreferenceType$outboundSchema = exports.ChannelPreferenceType$inboundSchema = exports.ChannelPreferenceType = void 0;
29
+ exports.channelPreferenceFromJSON = exports.channelPreferenceToJSON = exports.ChannelPreference$ = exports.ChannelPreference$outboundSchema = exports.ChannelPreference$inboundSchema = exports.Type$ = exports.Type$outboundSchema = exports.Type$inboundSchema = exports.Type = void 0;
30
30
  const z = __importStar(require("zod"));
31
31
  const schemas_js_1 = require("../../lib/schemas.js");
32
32
  /**
33
33
  * The type of channel that is enabled or not
34
34
  */
35
- exports.ChannelPreferenceType = {
35
+ exports.Type = {
36
36
  InApp: "in_app",
37
37
  Email: "email",
38
38
  Sms: "sms",
@@ -40,28 +40,28 @@ exports.ChannelPreferenceType = {
40
40
  Push: "push",
41
41
  };
42
42
  /** @internal */
43
- exports.ChannelPreferenceType$inboundSchema = z.nativeEnum(exports.ChannelPreferenceType);
43
+ exports.Type$inboundSchema = z.nativeEnum(exports.Type);
44
44
  /** @internal */
45
- exports.ChannelPreferenceType$outboundSchema = exports.ChannelPreferenceType$inboundSchema;
45
+ exports.Type$outboundSchema = exports.Type$inboundSchema;
46
46
  /**
47
47
  * @internal
48
48
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
49
49
  */
50
- var ChannelPreferenceType$;
51
- (function (ChannelPreferenceType$) {
52
- /** @deprecated use `ChannelPreferenceType$inboundSchema` instead. */
53
- ChannelPreferenceType$.inboundSchema = exports.ChannelPreferenceType$inboundSchema;
54
- /** @deprecated use `ChannelPreferenceType$outboundSchema` instead. */
55
- ChannelPreferenceType$.outboundSchema = exports.ChannelPreferenceType$outboundSchema;
56
- })(ChannelPreferenceType$ || (exports.ChannelPreferenceType$ = ChannelPreferenceType$ = {}));
50
+ var Type$;
51
+ (function (Type$) {
52
+ /** @deprecated use `Type$inboundSchema` instead. */
53
+ Type$.inboundSchema = exports.Type$inboundSchema;
54
+ /** @deprecated use `Type$outboundSchema` instead. */
55
+ Type$.outboundSchema = exports.Type$outboundSchema;
56
+ })(Type$ || (exports.Type$ = Type$ = {}));
57
57
  /** @internal */
58
58
  exports.ChannelPreference$inboundSchema = z.object({
59
- type: exports.ChannelPreferenceType$inboundSchema,
59
+ type: exports.Type$inboundSchema,
60
60
  enabled: z.boolean(),
61
61
  });
62
62
  /** @internal */
63
63
  exports.ChannelPreference$outboundSchema = z.object({
64
- type: exports.ChannelPreferenceType$outboundSchema,
64
+ type: exports.Type$outboundSchema,
65
65
  enabled: z.boolean(),
66
66
  });
67
67
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"channelpreference.js","sourceRoot":"","sources":["../../src/models/components/channelpreference.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,uCAAyB;AACzB,qDAAiD;AAKjD;;GAEG;AACU,QAAA,qBAAqB,GAAG;IACnC,KAAK,EAAE,QAAQ;IACf,KAAK,EAAE,OAAO;IACd,GAAG,EAAE,KAAK;IACV,IAAI,EAAE,MAAM;IACZ,IAAI,EAAE,MAAM;CACJ,CAAC;AAiBX,gBAAgB;AACH,QAAA,mCAAmC,GAE5C,CAAC,CAAC,UAAU,CAAC,6BAAqB,CAAC,CAAC;AAExC,gBAAgB;AACH,QAAA,oCAAoC,GAE7C,2CAAmC,CAAC;AAExC;;;GAGG;AACH,IAAiB,sBAAsB,CAKtC;AALD,WAAiB,sBAAsB;IACrC,qEAAqE;IACxD,oCAAa,GAAG,2CAAmC,CAAC;IACjE,sEAAsE;IACzD,qCAAc,GAAG,4CAAoC,CAAC;AACrE,CAAC,EALgB,sBAAsB,sCAAtB,sBAAsB,QAKtC;AAED,gBAAgB;AACH,QAAA,+BAA+B,GAIxC,CAAC,CAAC,MAAM,CAAC;IACX,IAAI,EAAE,2CAAmC;IACzC,OAAO,EAAE,CAAC,CAAC,OAAO,EAAE;CACrB,CAAC,CAAC;AAQH,gBAAgB;AACH,QAAA,gCAAgC,GAIzC,CAAC,CAAC,MAAM,CAAC;IACX,IAAI,EAAE,4CAAoC;IAC1C,OAAO,EAAE,CAAC,CAAC,OAAO,EAAE;CACrB,CAAC,CAAC;AAEH;;;GAGG;AACH,IAAiB,kBAAkB,CAOlC;AAPD,WAAiB,kBAAkB;IACjC,iEAAiE;IACpD,gCAAa,GAAG,uCAA+B,CAAC;IAC7D,kEAAkE;IACrD,iCAAc,GAAG,wCAAgC,CAAC;AAGjE,CAAC,EAPgB,kBAAkB,kCAAlB,kBAAkB,QAOlC;AAED,SAAgB,uBAAuB,CACrC,iBAAoC;IAEpC,OAAO,IAAI,CAAC,SAAS,CACnB,wCAAgC,CAAC,KAAK,CAAC,iBAAiB,CAAC,CAC1D,CAAC;AACJ,CAAC;AAND,0DAMC;AAED,SAAgB,yBAAyB,CACvC,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,uCAA+B,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAC3D,+CAA+C,CAChD,CAAC;AACJ,CAAC;AARD,8DAQC"}
1
+ {"version":3,"file":"channelpreference.js","sourceRoot":"","sources":["../../src/models/components/channelpreference.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,uCAAyB;AACzB,qDAAiD;AAKjD;;GAEG;AACU,QAAA,IAAI,GAAG;IAClB,KAAK,EAAE,QAAQ;IACf,KAAK,EAAE,OAAO;IACd,GAAG,EAAE,KAAK;IACV,IAAI,EAAE,MAAM;IACZ,IAAI,EAAE,MAAM;CACJ,CAAC;AAiBX,gBAAgB;AACH,QAAA,kBAAkB,GAAiC,CAAC,CAAC,UAAU,CAC1E,YAAI,CACL,CAAC;AAEF,gBAAgB;AACH,QAAA,mBAAmB,GAC9B,0BAAkB,CAAC;AAErB;;;GAGG;AACH,IAAiB,KAAK,CAKrB;AALD,WAAiB,KAAK;IACpB,oDAAoD;IACvC,mBAAa,GAAG,0BAAkB,CAAC;IAChD,qDAAqD;IACxC,oBAAc,GAAG,2BAAmB,CAAC;AACpD,CAAC,EALgB,KAAK,qBAAL,KAAK,QAKrB;AAED,gBAAgB;AACH,QAAA,+BAA+B,GAIxC,CAAC,CAAC,MAAM,CAAC;IACX,IAAI,EAAE,0BAAkB;IACxB,OAAO,EAAE,CAAC,CAAC,OAAO,EAAE;CACrB,CAAC,CAAC;AAQH,gBAAgB;AACH,QAAA,gCAAgC,GAIzC,CAAC,CAAC,MAAM,CAAC;IACX,IAAI,EAAE,2BAAmB;IACzB,OAAO,EAAE,CAAC,CAAC,OAAO,EAAE;CACrB,CAAC,CAAC;AAEH;;;GAGG;AACH,IAAiB,kBAAkB,CAOlC;AAPD,WAAiB,kBAAkB;IACjC,iEAAiE;IACpD,gCAAa,GAAG,uCAA+B,CAAC;IAC7D,kEAAkE;IACrD,iCAAc,GAAG,wCAAgC,CAAC;AAGjE,CAAC,EAPgB,kBAAkB,kCAAlB,kBAAkB,QAOlC;AAED,SAAgB,uBAAuB,CACrC,iBAAoC;IAEpC,OAAO,IAAI,CAAC,SAAS,CACnB,wCAAgC,CAAC,KAAK,CAAC,iBAAiB,CAAC,CAC1D,CAAC;AACJ,CAAC;AAND,0DAMC;AAED,SAAgB,yBAAyB,CACvC,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,uCAA+B,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAC3D,+CAA+C,CAChD,CAAC;AACJ,CAAC;AARD,8DAQC"}
@@ -8,6 +8,7 @@ export * from "./actorfeeditemdto.js";
8
8
  export * from "./actortypeenum.js";
9
9
  export * from "./addsubscribersrequestdto.js";
10
10
  export * from "./assignsubscribertotopicdto.js";
11
+ export * from "./builderfieldtype.js";
11
12
  export * from "./bulksubscribercreatedto.js";
12
13
  export * from "./bulktriggereventdto.js";
13
14
  export * from "./channelcredentials.js";
@@ -73,6 +74,7 @@ export * from "./topicsubscriberdto.js";
73
74
  export * from "./triggereventrequestdto.js";
74
75
  export * from "./triggereventresponsedto.js";
75
76
  export * from "./triggereventtoallrequestdto.js";
77
+ export * from "./triggerrecipientstypeenum.js";
76
78
  export * from "./unseencountresponse.js";
77
79
  export * from "./updateintegrationrequestdto.js";
78
80
  export * from "./updatesubscriberchannelr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Ac,oBAAoB,CAAC;AACnC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,yBAAyB,CAAC;AACxC,cAAc,sBAAsB,CAAC;AACrC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,wBAAwB,CAAC;AACvC,cAAc,uBAAuB,CAAC;AACtC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,0BAA0B,CAAC;AACzC,cAAc,kCAAkC,CAAC;AACjD,cAAc,iBAAiB,CAAC;AAChC,cAAc,yBAAyB,CAAC;AACxC,cAAc,kCAAkC,CAAC;AACjD,cAAc,4BAA4B,CAAC;AAC3C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC;AAChC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,uBAAuB,CAAC;AACtC,cAAc,uBAAuB,CAAC;AACtC,cAAc,kBAAkB,CAAC;AACjC,cAAc,eAAe,CAAC;AAC9B,cAAc,sBAAsB,CAAC;AACrC,cAAc,yBAAyB,CAAC;AACxC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,kCAAkC,CAAC;AACjD,cAAc,gCAAgC,CAAC;AAC/C,cAAc,0BAA0B,CAAC;AACzC,cAAc,kCAAkC,CAAC;AACjD,cAAc,wCAAwC,CAAC;AACvD,cAAc,kDAAkD,CAAC;AACjE,cAAc,2CAA2C,CAAC;AAC1D,cAAc,2CAA2C,CAAC;AAC1D,cAAc,4CAA4C,CAAC;AAC3D,cAAc,iCAAiC,CAAC;AAChD,cAAc,uBAAuB,CAAC;AACtC,cAAc,qCAAqC,CAAC"}
@@ -27,6 +27,7 @@ __exportStar(require("./actorfeeditemdto.js"), exports);
27
27
  __exportStar(require("./actortypeenum.js"), exports);
28
28
  __exportStar(require("./addsubscribersrequestdto.js"), exports);
29
29
  __exportStar(require("./assignsubscribertotopicdto.js"), exports);
30
+ __exportStar(require("./builderfieldtype.js"), exports);
30
31
  __exportStar(require("./bulksubscribercreatedto.js"), exports);
31
32
  __exportStar(require("./bulktriggereventdto.js"), exports);
32
33
  __exportStar(require("./channelcredentials.js"), exports);
@@ -92,6 +93,7 @@ __exportStar(require("./topicsubscriberdto.js"), exports);
92
93
  __exportStar(require("./triggereventrequestdto.js"), exports);
93
94
  __exportStar(require("./triggereventresponsedto.js"), exports);
94
95
  __exportStar(require("./triggereventtoallrequestdto.js"), exports);
96
+ __exportStar(require("./triggerrecipientstypeenum.js"), exports);
95
97
  __exportStar(require("./unseencountresponse.js"), exports);
96
98
  __exportStar(require("./updateintegrationrequestdto.js"), exports);
97
99
  __exportStar(require("./updatesubscriberchannelrequestdto.js"), exports);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/models/components/index.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;AAEH,6DAA2C;AAC3C,mEAAiD;AACjD,uEAAqD;AACrD,iFAA+D;AAC/D,+EAA6D;AAC7D,gEAA8C;AAC9C,wDAAsC;AACtC,qDAAmC;AACnC,gEAA8C;AAC9C,kEAAgD;AAChD,+DAA6C;AAC7C,2DAAyC;AACzC,0DAAwC;AACxC,6DAA2C;AAC3C,yDAAuC;AACvC,uDAAqC;AACrC,uDAAqC;AACrC,mEAAiD;AACjD,kEAAgD;AAChD,6DAA2C;AAC3C,8DAA4C;AAC5C,sDAAoC;AACpC,sDAAoC;AACpC,4DAA0C;AAC1C,8DAA4C;AAC5C,gEAA8C;AAC9C,mEAAiD;AACjD,6DAA2C;AAC3C,2DAAyC;AACzC,kDAAgC;AAChC,wDAAsC;AACtC,4DAA0C;AAC1C,uDAAqC;AACrC,uDAAqC;AACrC,+DAA6C;AAC7C,2EAAyD;AACzD,2DAAyC;AACzC,8DAA4C;AAC5C,kEAAgD;AAChD,kEAAgD;AAChD,qDAAmC;AACnC,2DAAyC;AACzC,qDAAmC;AACnC,kDAAgC;AAChC,sDAAoC;AACpC,qDAAmC;AACnC,+DAA6C;AAC7C,0DAAwC;AACxC,uDAAqC;AACrC,+DAA6C;AAC7C,yDAAuC;AACvC,wDAAsC;AACtC,+DAA6C;AAC7C,2DAAyC;AACzC,mEAAiD;AACjD,kDAAgC;AAChC,0DAAwC;AACxC,mEAAiD;AACjD,6DAA2C;AAC3C,8DAA4C;AAC5C,gDAA8B;AAC9B,kDAAgC;AAChC,4DAA0C;AAC1C,iEAA+C;AAC/C,4DAA0C;AAC1C,6DAA2C;AAC3C,wDAAsC;AACtC,wDAAsC;AACtC,mDAAiC;AACjC,gDAA8B;AAC9B,uDAAqC;AACrC,0DAAwC;AACxC,8DAA4C;AAC5C,+DAA6C;AAC7C,mEAAiD;AACjD,2DAAyC;AACzC,mEAAiD;AACjD,yEAAuD;AACvD,mFAAiE;AACjE,4EAA0D;AAC1D,4EAA0D;AAC1D,6EAA2D;AAC3D,kEAAgD;AAChD,wDAAsC;AACtC,sEAAoD"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/models/components/index.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;AAEH,6DAA2C;AAC3C,mEAAiD;AACjD,uEAAqD;AACrD,iFAA+D;AAC/D,+EAA6D;AAC7D,gEAA8C;AAC9C,wDAAsC;AACtC,qDAAmC;AACnC,gEAA8C;AAC9C,kEAAgD;AAChD,wDAAsC;AACtC,+DAA6C;AAC7C,2DAAyC;AACzC,0DAAwC;AACxC,6DAA2C;AAC3C,yDAAuC;AACvC,uDAAqC;AACrC,uDAAqC;AACrC,mEAAiD;AACjD,kEAAgD;AAChD,6DAA2C;AAC3C,8DAA4C;AAC5C,sDAAoC;AACpC,sDAAoC;AACpC,4DAA0C;AAC1C,8DAA4C;AAC5C,gEAA8C;AAC9C,mEAAiD;AACjD,6DAA2C;AAC3C,2DAAyC;AACzC,kDAAgC;AAChC,wDAAsC;AACtC,4DAA0C;AAC1C,uDAAqC;AACrC,uDAAqC;AACrC,+DAA6C;AAC7C,2EAAyD;AACzD,2DAAyC;AACzC,8DAA4C;AAC5C,kEAAgD;AAChD,kEAAgD;AAChD,qDAAmC;AACnC,2DAAyC;AACzC,qDAAmC;AACnC,kDAAgC;AAChC,sDAAoC;AACpC,qDAAmC;AACnC,+DAA6C;AAC7C,0DAAwC;AACxC,uDAAqC;AACrC,+DAA6C;AAC7C,yDAAuC;AACvC,wDAAsC;AACtC,+DAA6C;AAC7C,2DAAyC;AACzC,mEAAiD;AACjD,kDAAgC;AAChC,0DAAwC;AACxC,mEAAiD;AACjD,6DAA2C;AAC3C,8DAA4C;AAC5C,gDAA8B;AAC9B,kDAAgC;AAChC,4DAA0C;AAC1C,iEAA+C;AAC/C,4DAA0C;AAC1C,6DAA2C;AAC3C,wDAAsC;AACtC,wDAAsC;AACtC,mDAAiC;AACjC,gDAA8B;AAC9B,uDAAqC;AACrC,0DAAwC;AACxC,8DAA4C;AAC5C,+DAA6C;AAC7C,mEAAiD;AACjD,iEAA+C;AAC/C,2DAAyC;AACzC,mEAAiD;AACjD,yEAAuD;AACvD,mFAAiE;AACjE,4EAA0D;AAC1D,4EAA0D;AAC1D,6EAA2D;AAC3D,kEAAgD;AAChD,wDAAsC;AACtC,sEAAoD"}
@@ -2,18 +2,8 @@ import * as z from "zod";
2
2
  import { ClosedEnum } from "../../types/enums.js";
3
3
  import { Result as SafeParseResult } from "../../types/fp.js";
4
4
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
5
+ import { BuilderFieldType } from "./builderfieldtype.js";
5
6
  import { FieldFilterPart, FieldFilterPart$Outbound } from "./fieldfilterpart.js";
6
- export declare const StepFilterType: {
7
- readonly Boolean: "BOOLEAN";
8
- readonly Text: "TEXT";
9
- readonly Date: "DATE";
10
- readonly Number: "NUMBER";
11
- readonly Statement: "STATEMENT";
12
- readonly List: "LIST";
13
- readonly MultiList: "MULTI_LIST";
14
- readonly Group: "GROUP";
15
- };
16
- export type StepFilterType = ClosedEnum<typeof StepFilterType>;
17
7
  export declare const Value: {
18
8
  readonly And: "AND";
19
9
  readonly Or: "OR";
@@ -21,43 +11,11 @@ export declare const Value: {
21
11
  export type Value = ClosedEnum<typeof Value>;
22
12
  export type StepFilter = {
23
13
  isNegated: boolean;
24
- type: StepFilterType;
14
+ type: BuilderFieldType;
25
15
  value: Value;
26
16
  children: Array<FieldFilterPart>;
27
17
  };
28
18
  /** @internal */
29
- export declare const StepFilterType$inboundSchema: z.ZodNativeEnum<typeof StepFilterType>;
30
- /** @internal */
31
- export declare const StepFilterType$outboundSchema: z.ZodNativeEnum<typeof StepFilterType>;
32
- /**
33
- * @internal
34
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
35
- */
36
- export declare namespace StepFilterType$ {
37
- /** @deprecated use `StepFilterType$inboundSchema` instead. */
38
- const inboundSchema: z.ZodNativeEnum<{
39
- readonly Boolean: "BOOLEAN";
40
- readonly Text: "TEXT";
41
- readonly Date: "DATE";
42
- readonly Number: "NUMBER";
43
- readonly Statement: "STATEMENT";
44
- readonly List: "LIST";
45
- readonly MultiList: "MULTI_LIST";
46
- readonly Group: "GROUP";
47
- }>;
48
- /** @deprecated use `StepFilterType$outboundSchema` instead. */
49
- const outboundSchema: z.ZodNativeEnum<{
50
- readonly Boolean: "BOOLEAN";
51
- readonly Text: "TEXT";
52
- readonly Date: "DATE";
53
- readonly Number: "NUMBER";
54
- readonly Statement: "STATEMENT";
55
- readonly List: "LIST";
56
- readonly MultiList: "MULTI_LIST";
57
- readonly Group: "GROUP";
58
- }>;
59
- }
60
- /** @internal */
61
19
  export declare const Value$inboundSchema: z.ZodNativeEnum<typeof Value>;
62
20
  /** @internal */
63
21
  export declare const Value$outboundSchema: z.ZodNativeEnum<typeof Value>;
@@ -1 +1 @@
1
- {"version":3,"file":"stepfilter.d.ts","sourceRoot":"","sources":["../../src/models/components/stepfilter.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAA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;IACnD,MAAM,aAAa,8CAA2B,CAAC;IACtD,2DAA2D;IACpD,MAAM,cAAc,0DAA4B,CAAC;IACxD,qDAAqD;IACrD,KAAY,QAAQ,GAAG,mBAAmB,CAAC;CAC5C;AAED,wBAAgB,gBAAgB,CAAC,UAAU,EAAE,UAAU,GAAG,MAAM,CAE/D;AAED,wBAAgB,kBAAkB,CAChC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,UAAU,EAAE,kBAAkB,CAAC,CAMjD"}
@@ -26,40 +26,16 @@ var __importStar = (this && this.__importStar) || function (mod) {
26
26
  return result;
27
27
  };
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
- exports.stepFilterFromJSON = exports.stepFilterToJSON = exports.StepFilter$ = exports.StepFilter$outboundSchema = exports.StepFilter$inboundSchema = exports.Value$ = exports.Value$outboundSchema = exports.Value$inboundSchema = exports.StepFilterType$ = exports.StepFilterType$outboundSchema = exports.StepFilterType$inboundSchema = exports.Value = exports.StepFilterType = void 0;
29
+ exports.stepFilterFromJSON = exports.stepFilterToJSON = exports.StepFilter$ = exports.StepFilter$outboundSchema = exports.StepFilter$inboundSchema = exports.Value$ = exports.Value$outboundSchema = exports.Value$inboundSchema = exports.Value = void 0;
30
30
  const z = __importStar(require("zod"));
31
31
  const schemas_js_1 = require("../../lib/schemas.js");
32
+ const builderfieldtype_js_1 = require("./builderfieldtype.js");
32
33
  const fieldfilterpart_js_1 = require("./fieldfilterpart.js");
33
- exports.StepFilterType = {
34
- Boolean: "BOOLEAN",
35
- Text: "TEXT",
36
- Date: "DATE",
37
- Number: "NUMBER",
38
- Statement: "STATEMENT",
39
- List: "LIST",
40
- MultiList: "MULTI_LIST",
41
- Group: "GROUP",
42
- };
43
34
  exports.Value = {
44
35
  And: "AND",
45
36
  Or: "OR",
46
37
  };
47
38
  /** @internal */
48
- exports.StepFilterType$inboundSchema = z.nativeEnum(exports.StepFilterType);
49
- /** @internal */
50
- exports.StepFilterType$outboundSchema = exports.StepFilterType$inboundSchema;
51
- /**
52
- * @internal
53
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
54
- */
55
- var StepFilterType$;
56
- (function (StepFilterType$) {
57
- /** @deprecated use `StepFilterType$inboundSchema` instead. */
58
- StepFilterType$.inboundSchema = exports.StepFilterType$inboundSchema;
59
- /** @deprecated use `StepFilterType$outboundSchema` instead. */
60
- StepFilterType$.outboundSchema = exports.StepFilterType$outboundSchema;
61
- })(StepFilterType$ || (exports.StepFilterType$ = StepFilterType$ = {}));
62
- /** @internal */
63
39
  exports.Value$inboundSchema = z.nativeEnum(exports.Value);
64
40
  /** @internal */
65
41
  exports.Value$outboundSchema = exports.Value$inboundSchema;
@@ -77,14 +53,14 @@ var Value$;
77
53
  /** @internal */
78
54
  exports.StepFilter$inboundSchema = z.object({
79
55
  isNegated: z.boolean(),
80
- type: exports.StepFilterType$inboundSchema,
56
+ type: builderfieldtype_js_1.BuilderFieldType$inboundSchema,
81
57
  value: exports.Value$inboundSchema,
82
58
  children: z.array(fieldfilterpart_js_1.FieldFilterPart$inboundSchema),
83
59
  });
84
60
  /** @internal */
85
61
  exports.StepFilter$outboundSchema = z.object({
86
62
  isNegated: z.boolean(),
87
- type: exports.StepFilterType$outboundSchema,
63
+ type: builderfieldtype_js_1.BuilderFieldType$outboundSchema,
88
64
  value: exports.Value$outboundSchema,
89
65
  children: z.array(fieldfilterpart_js_1.FieldFilterPart$outboundSchema),
90
66
  });
@@ -1 +1 @@
1
- {"version":3,"file":"stepfilter.js","sourceRoot":"","sources":["../../src/models/components/stepfilter.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,uCAAyB;AACzB,qDAAiD;AAIjD,6DAK8B;AAEjB,QAAA,cAAc,GAAG;IAC5B,OAAO,EAAE,SAAS;IAClB,IAAI,EAAE,MAAM;IACZ,IAAI,EAAE,MAAM;IACZ,MAAM,EAAE,QAAQ;IAChB,SAAS,EAAE,WAAW;IACtB,IAAI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BAAN,MAAM,QAKtB;AAED,gBAAgB;AACH,QAAA,wBAAwB,GAIjC,CAAC,CAAC,MAAM,CAAC;IACX,SAAS,EAAE,CAAC,CAAC,OAAO,EAAE;IACtB,IAAI,EAAE,oDAA8B;IACpC,KAAK,EAAE,2BAAmB;IAC1B,QAAQ,EAAE,CAAC,CAAC,KAAK,CAAC,kDAA6B,CAAC;CACjD,CAAC,CAAC;AAUH,gBAAgB;AACH,QAAA,yBAAyB,GAIlC,CAAC,CAAC,MAAM,CAAC;IACX,SAAS,EAAE,CAAC,CAAC,OAAO,EAAE;IACtB,IAAI,EAAE,qDAA+B;IACrC,KAAK,EAAE,4BAAoB;IAC3B,QAAQ,EAAE,CAAC,CAAC,KAAK,CAAC,mDAA8B,CAAC;CAClD,CAAC,CAAC;AAEH;;;GAGG;AACH,IAAiB,WAAW,CAO3B;AAPD,WAAiB,WAAW;IAC1B,0DAA0D;IAC7C,yBAAa,GAAG,gCAAwB,CAAC;IACtD,2DAA2D;IAC9C,0BAAc,GAAG,iCAAyB,CAAC;AAG1D,CAAC,EAPgB,WAAW,2BAAX,WAAW,QAO3B;AAED,SAAgB,gBAAgB,CAAC,UAAsB;IACrD,OAAO,IAAI,CAAC,SAAS,CAAC,iCAAyB,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC,CAAC;AACrE,CAAC;AAFD,4CAEC;AAED,SAAgB,kBAAkB,CAChC,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,gCAAwB,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACpD,wCAAwC,CACzC,CAAC;AACJ,CAAC;AARD,gDAQC"}
@@ -1,37 +1,12 @@
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 { SDKValidationError } from "../errors/sdkvalidationerror.js";
5
- export declare const Type: {
6
- readonly Subscriber: "Subscriber";
7
- readonly Topic: "Topic";
8
- };
9
- export type Type = ClosedEnum<typeof Type>;
4
+ import { TriggerRecipientsTypeEnum } from "./triggerrecipientstypeenum.js";
10
5
  export type TopicPayloadDto = {
11
6
  topicKey: string;
12
- type: Type;
7
+ type: TriggerRecipientsTypeEnum;
13
8
  };
14
9
  /** @internal */
15
- export declare const Type$inboundSchema: z.ZodNativeEnum<typeof Type>;
16
- /** @internal */
17
- export declare const Type$outboundSchema: z.ZodNativeEnum<typeof Type>;
18
- /**
19
- * @internal
20
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
21
- */
22
- export declare namespace Type$ {
23
- /** @deprecated use `Type$inboundSchema` instead. */
24
- const inboundSchema: z.ZodNativeEnum<{
25
- readonly Subscriber: "Subscriber";
26
- readonly Topic: "Topic";
27
- }>;
28
- /** @deprecated use `Type$outboundSchema` instead. */
29
- const outboundSchema: z.ZodNativeEnum<{
30
- readonly Subscriber: "Subscriber";
31
- readonly Topic: "Topic";
32
- }>;
33
- }
34
- /** @internal */
35
10
  export declare const TopicPayloadDto$inboundSchema: z.ZodType<TopicPayloadDto, z.ZodTypeDef, unknown>;
36
11
  /** @internal */
37
12
  export type TopicPayloadDto$Outbound = {
@@ -1 +1 @@
1
- {"version":3,"file":"topicpayloaddto.d.ts","sourceRoot":"","sources":["../../src/models/components/topicpayloaddto.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE,eAAO,MAAM,IAAI;;;CAGP,CAAC;AACX,MAAM,MAAM,IAAI,GAAG,UAAU,CAAC,OAAO,IAAI,CAAC,CAAC;AAE3C,MAAM,MAAM,eAAe,GAAG;IAC5B,QAAQ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AAK,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,yBAAyB,EAG1B,MAAM,gCAAgC,CAAC;AAExC,MAAM,MAAM,eAAe,GAAG;IAC5B,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,yBAAyB,CAAC;CACjC,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,6BAA6B,EAAE,CAAC,CAAC,OAAO,CACnD,eAAe,EACf,CAAC,CAAC,UAAU,EACZ,OAAO,CAIP,CAAC;AAEH,gBAAgB;AAChB,MAAM,MAAM,wBAAwB,GAAG;IACrC,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,8BAA8B,EAAE,CAAC,CAAC,OAAO,CACpD,wBAAwB,EACxB,CAAC,CAAC,UAAU,EACZ,eAAe,CAIf,CAAC;AAEH;;;GAGG;AACH,yBAAiB,gBAAgB,CAAC;IAChC,+DAA+D;IACxD,MAAM,aAAa,mDAAgC,CAAC;IAC3D,gEAAgE;IACzD,MAAM,cAAc,oEAAiC,CAAC;IAC7D,0DAA0D;IAC1D,KAAY,QAAQ,GAAG,wBAAwB,CAAC;CACjD;AAED,wBAAgB,qBAAqB,CACnC,eAAe,EAAE,eAAe,GAC/B,MAAM,CAER;AAED,wBAAgB,uBAAuB,CACrC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,eAAe,EAAE,kBAAkB,CAAC,CAMtD"}
@@ -26,37 +26,19 @@ var __importStar = (this && this.__importStar) || function (mod) {
26
26
  return result;
27
27
  };
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
- exports.topicPayloadDtoFromJSON = exports.topicPayloadDtoToJSON = exports.TopicPayloadDto$ = exports.TopicPayloadDto$outboundSchema = exports.TopicPayloadDto$inboundSchema = exports.Type$ = exports.Type$outboundSchema = exports.Type$inboundSchema = exports.Type = void 0;
29
+ exports.topicPayloadDtoFromJSON = exports.topicPayloadDtoToJSON = exports.TopicPayloadDto$ = exports.TopicPayloadDto$outboundSchema = exports.TopicPayloadDto$inboundSchema = void 0;
30
30
  const z = __importStar(require("zod"));
31
31
  const schemas_js_1 = require("../../lib/schemas.js");
32
- exports.Type = {
33
- Subscriber: "Subscriber",
34
- Topic: "Topic",
35
- };
36
- /** @internal */
37
- exports.Type$inboundSchema = z.nativeEnum(exports.Type);
38
- /** @internal */
39
- exports.Type$outboundSchema = exports.Type$inboundSchema;
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 Type$;
45
- (function (Type$) {
46
- /** @deprecated use `Type$inboundSchema` instead. */
47
- Type$.inboundSchema = exports.Type$inboundSchema;
48
- /** @deprecated use `Type$outboundSchema` instead. */
49
- Type$.outboundSchema = exports.Type$outboundSchema;
50
- })(Type$ || (exports.Type$ = Type$ = {}));
32
+ const triggerrecipientstypeenum_js_1 = require("./triggerrecipientstypeenum.js");
51
33
  /** @internal */
52
34
  exports.TopicPayloadDto$inboundSchema = z.object({
53
35
  topicKey: z.string(),
54
- type: exports.Type$inboundSchema,
36
+ type: triggerrecipientstypeenum_js_1.TriggerRecipientsTypeEnum$inboundSchema,
55
37
  });
56
38
  /** @internal */
57
39
  exports.TopicPayloadDto$outboundSchema = z.object({
58
40
  topicKey: z.string(),
59
- type: exports.Type$outboundSchema,
41
+ type: triggerrecipientstypeenum_js_1.TriggerRecipientsTypeEnum$outboundSchema,
60
42
  });
61
43
  /**
62
44
  * @internal
@@ -1 +1 @@
1
- {"version":3,"file":"topicpayloaddto.js","sourceRoot":"","sources":["../../src/models/components/topicpayloaddto.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,uCAAyB;AACzB,qDAAiD;AAK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CAAC,CAAC,CAAC,CAAC,EACzD,6CAA6C,CAC9C,CAAC;AACJ,CAAC;AARD,0DAQC"}
1
+ {"version":3,"file":"topicpayloaddto.js","sourceRoot":"","sources":["../../src/models/components/topicpayloaddto.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,uCAAyB;AACzB,qDAAiD;AAGjD,iFAIwC;AAOxC,gBAAgB;AACH,QAAA,6BAA6B,GAItC,CAAC,CAAC,MAAM,CAAC;IACX,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE;IACpB,IAAI,EAAE,sEAAuC;CAC9C,CAAC,CAAC;AAQH,gBAAgB;AACH,QAAA,8BAA8B,GAIvC,CAAC,CAAC,MAAM,CAAC;IACX,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE;IACpB,IAAI,EAAE,uEAAwC;CAC/C,CAAC,CAAC;AAEH;;;GAGG;AACH,IAAiB,gBAAgB,CAOhC;AAPD,WAAiB,gBAAgB;IAC/B,+DAA+D;IAClD,8BAAa,GAAG,qCAA6B,CAAC;IAC3D,gEAAgE;IACnD,+BAAc,GAAG,sCAA8B,CAAC;AAG/D,CAAC,EAPgB,gBAAgB,gCAAhB,gBAAgB,QAOhC;AAED,SAAgB,qBAAqB,CACnC,eAAgC;IAEhC,OAAO,IAAI,CAAC,SAAS,CAAC,sCAA8B,CAAC,KAAK,CAAC,eAAe,CAAC,CAAC,CAAC;AAC/E,CAAC;AAJD,sDAIC;AAED,SAAgB,uBAAuB,CACrC,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,qCAA6B,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACzD,6CAA6C,CAC9C,CAAC;AACJ,CAAC;AARD,0DAQC"}
@@ -0,0 +1,28 @@
1
+ import * as z from "zod";
2
+ import { ClosedEnum } from "../../types/enums.js";
3
+ export declare const TriggerRecipientsTypeEnum: {
4
+ readonly Subscriber: "Subscriber";
5
+ readonly Topic: "Topic";
6
+ };
7
+ export type TriggerRecipientsTypeEnum = ClosedEnum<typeof TriggerRecipientsTypeEnum>;
8
+ /** @internal */
9
+ export declare const TriggerRecipientsTypeEnum$inboundSchema: z.ZodNativeEnum<typeof TriggerRecipientsTypeEnum>;
10
+ /** @internal */
11
+ export declare const TriggerRecipientsTypeEnum$outboundSchema: z.ZodNativeEnum<typeof TriggerRecipientsTypeEnum>;
12
+ /**
13
+ * @internal
14
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
15
+ */
16
+ export declare namespace TriggerRecipientsTypeEnum$ {
17
+ /** @deprecated use `TriggerRecipientsTypeEnum$inboundSchema` instead. */
18
+ const inboundSchema: z.ZodNativeEnum<{
19
+ readonly Subscriber: "Subscriber";
20
+ readonly Topic: "Topic";
21
+ }>;
22
+ /** @deprecated use `TriggerRecipientsTypeEnum$outboundSchema` instead. */
23
+ const outboundSchema: z.ZodNativeEnum<{
24
+ readonly Subscriber: "Subscriber";
25
+ readonly Topic: "Topic";
26
+ }>;
27
+ }
28
+ //# sourceMappingURL=triggerrecipientstypeenum.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"triggerrecipientstypeenum.d.ts","sourceRoot":"","sources":["../../src/models/components/triggerrecipientstypeenum.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAElD,eAAO,MAAM,yBAAyB;;;CAG5B,CAAC;AACX,MAAM,MAAM,yBAAyB,GAAG,UAAU,CAChD,OAAO,yBAAyB,CACjC,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,uCAAuC,EAAE,CAAC,CAAC,aAAa,CACnE,OAAO,yBAAyB,CACS,CAAC;AAE5C,gBAAgB;AAChB,eAAO,MAAM,wCAAwC,EAAE,CAAC,CAAC,aAAa,CACpE,OAAO,yBAAyB,CACS,CAAC;AAE5C;;;GAGG;AACH,yBAAiB,0BAA0B,CAAC;IAC1C,yEAAyE;IAClE,MAAM,aAAa;;;MAA0C,CAAC;IACrE,0EAA0E;IACnE,MAAM,cAAc;;;MAA2C,CAAC;CACxE"}
@@ -0,0 +1,50 @@
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.TriggerRecipientsTypeEnum$ = exports.TriggerRecipientsTypeEnum$outboundSchema = exports.TriggerRecipientsTypeEnum$inboundSchema = exports.TriggerRecipientsTypeEnum = void 0;
30
+ const z = __importStar(require("zod"));
31
+ exports.TriggerRecipientsTypeEnum = {
32
+ Subscriber: "Subscriber",
33
+ Topic: "Topic",
34
+ };
35
+ /** @internal */
36
+ exports.TriggerRecipientsTypeEnum$inboundSchema = z.nativeEnum(exports.TriggerRecipientsTypeEnum);
37
+ /** @internal */
38
+ exports.TriggerRecipientsTypeEnum$outboundSchema = exports.TriggerRecipientsTypeEnum$inboundSchema;
39
+ /**
40
+ * @internal
41
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
42
+ */
43
+ var TriggerRecipientsTypeEnum$;
44
+ (function (TriggerRecipientsTypeEnum$) {
45
+ /** @deprecated use `TriggerRecipientsTypeEnum$inboundSchema` instead. */
46
+ TriggerRecipientsTypeEnum$.inboundSchema = exports.TriggerRecipientsTypeEnum$inboundSchema;
47
+ /** @deprecated use `TriggerRecipientsTypeEnum$outboundSchema` instead. */
48
+ TriggerRecipientsTypeEnum$.outboundSchema = exports.TriggerRecipientsTypeEnum$outboundSchema;
49
+ })(TriggerRecipientsTypeEnum$ || (exports.TriggerRecipientsTypeEnum$ = TriggerRecipientsTypeEnum$ = {}));
50
+ //# sourceMappingURL=triggerrecipientstypeenum.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"triggerrecipientstypeenum.js","sourceRoot":"","sources":["../../src/models/components/triggerrecipientstypeenum.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,uCAAyB;AAGZ,QAAA,yBAAyB,GAAG;IACvC,UAAU,EAAE,YAAY;IACxB,KAAK,EAAE,OAAO;CACN,CAAC;AAKX,gBAAgB;AACH,QAAA,uCAAuC,GAEhD,CAAC,CAAC,UAAU,CAAC,iCAAyB,CAAC,CAAC;AAE5C,gBAAgB;AACH,QAAA,wCAAwC,GAEjD,+CAAuC,CAAC;AAE5C;;;GAGG;AACH,IAAiB,0BAA0B,CAK1C;AALD,WAAiB,0BAA0B;IACzC,yEAAyE;IAC5D,wCAAa,GAAG,+CAAuC,CAAC;IACrE,0EAA0E;IAC7D,yCAAc,GAAG,gDAAwC,CAAC;AACzE,CAAC,EALgB,0BAA0B,0CAA1B,0BAA0B,QAK1C"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@novu/api",
3
- "version": "0.0.1-alpha.92",
3
+ "version": "0.0.1-alpha.94",
4
4
  "author": "Novu",
5
5
  "main": "./index.js",
6
6
  "sideEffects": false,
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.92",
58
+ sdkVersion: "0.0.1-alpha.94",
59
59
  genVersion: "2.477.0",
60
- userAgent: "speakeasy-sdk/typescript 0.0.1-alpha.92 2.477.0 1.0 @novu/api",
60
+ userAgent: "speakeasy-sdk/typescript 0.0.1-alpha.94 2.477.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
+ export const BuilderFieldType = {
9
+ Boolean: "BOOLEAN",
10
+ Text: "TEXT",
11
+ Date: "DATE",
12
+ Number: "NUMBER",
13
+ Statement: "STATEMENT",
14
+ List: "LIST",
15
+ MultiList: "MULTI_LIST",
16
+ Group: "GROUP",
17
+ } as const;
18
+ export type BuilderFieldType = ClosedEnum<typeof BuilderFieldType>;
19
+
20
+ /** @internal */
21
+ export const BuilderFieldType$inboundSchema: z.ZodNativeEnum<
22
+ typeof BuilderFieldType
23
+ > = z.nativeEnum(BuilderFieldType);
24
+
25
+ /** @internal */
26
+ export const BuilderFieldType$outboundSchema: z.ZodNativeEnum<
27
+ typeof BuilderFieldType
28
+ > = BuilderFieldType$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 BuilderFieldType$ {
35
+ /** @deprecated use `BuilderFieldType$inboundSchema` instead. */
36
+ export const inboundSchema = BuilderFieldType$inboundSchema;
37
+ /** @deprecated use `BuilderFieldType$outboundSchema` instead. */
38
+ export const outboundSchema = BuilderFieldType$outboundSchema;
39
+ }
@@ -11,7 +11,7 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
11
11
  /**
12
12
  * The type of channel that is enabled or not
13
13
  */
14
- export const ChannelPreferenceType = {
14
+ export const Type = {
15
15
  InApp: "in_app",
16
16
  Email: "email",
17
17
  Sms: "sms",
@@ -21,13 +21,13 @@ export const ChannelPreferenceType = {
21
21
  /**
22
22
  * The type of channel that is enabled or not
23
23
  */
24
- export type ChannelPreferenceType = ClosedEnum<typeof ChannelPreferenceType>;
24
+ export type Type = ClosedEnum<typeof Type>;
25
25
 
26
26
  export type ChannelPreference = {
27
27
  /**
28
28
  * The type of channel that is enabled or not
29
29
  */
30
- type: ChannelPreferenceType;
30
+ type: Type;
31
31
  /**
32
32
  * If channel is enabled or not
33
33
  */
@@ -35,24 +35,23 @@ export type ChannelPreference = {
35
35
  };
36
36
 
37
37
  /** @internal */
38
- export const ChannelPreferenceType$inboundSchema: z.ZodNativeEnum<
39
- typeof ChannelPreferenceType
40
- > = z.nativeEnum(ChannelPreferenceType);
38
+ export const Type$inboundSchema: z.ZodNativeEnum<typeof Type> = z.nativeEnum(
39
+ Type,
40
+ );
41
41
 
42
42
  /** @internal */
43
- export const ChannelPreferenceType$outboundSchema: z.ZodNativeEnum<
44
- typeof ChannelPreferenceType
45
- > = ChannelPreferenceType$inboundSchema;
43
+ export const Type$outboundSchema: z.ZodNativeEnum<typeof Type> =
44
+ Type$inboundSchema;
46
45
 
47
46
  /**
48
47
  * @internal
49
48
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
50
49
  */
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;
50
+ export namespace Type$ {
51
+ /** @deprecated use `Type$inboundSchema` instead. */
52
+ export const inboundSchema = Type$inboundSchema;
53
+ /** @deprecated use `Type$outboundSchema` instead. */
54
+ export const outboundSchema = Type$outboundSchema;
56
55
  }
57
56
 
58
57
  /** @internal */
@@ -61,7 +60,7 @@ export const ChannelPreference$inboundSchema: z.ZodType<
61
60
  z.ZodTypeDef,
62
61
  unknown
63
62
  > = z.object({
64
- type: ChannelPreferenceType$inboundSchema,
63
+ type: Type$inboundSchema,
65
64
  enabled: z.boolean(),
66
65
  });
67
66
 
@@ -77,7 +76,7 @@ export const ChannelPreference$outboundSchema: z.ZodType<
77
76
  z.ZodTypeDef,
78
77
  ChannelPreference
79
78
  > = z.object({
80
- type: ChannelPreferenceType$outboundSchema,
79
+ type: Type$outboundSchema,
81
80
  enabled: z.boolean(),
82
81
  });
83
82
 
@@ -12,6 +12,7 @@ export * from "./actorfeeditemdto.js";
12
12
  export * from "./actortypeenum.js";
13
13
  export * from "./addsubscribersrequestdto.js";
14
14
  export * from "./assignsubscribertotopicdto.js";
15
+ export * from "./builderfieldtype.js";
15
16
  export * from "./bulksubscribercreatedto.js";
16
17
  export * from "./bulktriggereventdto.js";
17
18
  export * from "./channelcredentials.js";
@@ -77,6 +78,7 @@ export * from "./topicsubscriberdto.js";
77
78
  export * from "./triggereventrequestdto.js";
78
79
  export * from "./triggereventresponsedto.js";
79
80
  export * from "./triggereventtoallrequestdto.js";
81
+ export * from "./triggerrecipientstypeenum.js";
80
82
  export * from "./unseencountresponse.js";
81
83
  export * from "./updateintegrationrequestdto.js";
82
84
  export * from "./updatesubscriberchannelrequestdto.js";
@@ -7,6 +7,11 @@ import { safeParse } from "../../lib/schemas.js";
7
7
  import { ClosedEnum } from "../../types/enums.js";
8
8
  import { Result as SafeParseResult } from "../../types/fp.js";
9
9
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
10
+ import {
11
+ BuilderFieldType,
12
+ BuilderFieldType$inboundSchema,
13
+ BuilderFieldType$outboundSchema,
14
+ } from "./builderfieldtype.js";
10
15
  import {
11
16
  FieldFilterPart,
12
17
  FieldFilterPart$inboundSchema,
@@ -14,18 +19,6 @@ import {
14
19
  FieldFilterPart$outboundSchema,
15
20
  } from "./fieldfilterpart.js";
16
21
 
17
- export const StepFilterType = {
18
- Boolean: "BOOLEAN",
19
- Text: "TEXT",
20
- Date: "DATE",
21
- Number: "NUMBER",
22
- Statement: "STATEMENT",
23
- List: "LIST",
24
- MultiList: "MULTI_LIST",
25
- Group: "GROUP",
26
- } as const;
27
- export type StepFilterType = ClosedEnum<typeof StepFilterType>;
28
-
29
22
  export const Value = {
30
23
  And: "AND",
31
24
  Or: "OR",
@@ -34,32 +27,11 @@ export type Value = ClosedEnum<typeof Value>;
34
27
 
35
28
  export type StepFilter = {
36
29
  isNegated: boolean;
37
- type: StepFilterType;
30
+ type: BuilderFieldType;
38
31
  value: Value;
39
32
  children: Array<FieldFilterPart>;
40
33
  };
41
34
 
42
- /** @internal */
43
- export const StepFilterType$inboundSchema: z.ZodNativeEnum<
44
- typeof StepFilterType
45
- > = z.nativeEnum(StepFilterType);
46
-
47
- /** @internal */
48
- export const StepFilterType$outboundSchema: z.ZodNativeEnum<
49
- typeof StepFilterType
50
- > = StepFilterType$inboundSchema;
51
-
52
- /**
53
- * @internal
54
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
55
- */
56
- export namespace StepFilterType$ {
57
- /** @deprecated use `StepFilterType$inboundSchema` instead. */
58
- export const inboundSchema = StepFilterType$inboundSchema;
59
- /** @deprecated use `StepFilterType$outboundSchema` instead. */
60
- export const outboundSchema = StepFilterType$outboundSchema;
61
- }
62
-
63
35
  /** @internal */
64
36
  export const Value$inboundSchema: z.ZodNativeEnum<typeof Value> = z.nativeEnum(
65
37
  Value,
@@ -87,7 +59,7 @@ export const StepFilter$inboundSchema: z.ZodType<
87
59
  unknown
88
60
  > = z.object({
89
61
  isNegated: z.boolean(),
90
- type: StepFilterType$inboundSchema,
62
+ type: BuilderFieldType$inboundSchema,
91
63
  value: Value$inboundSchema,
92
64
  children: z.array(FieldFilterPart$inboundSchema),
93
65
  });
@@ -107,7 +79,7 @@ export const StepFilter$outboundSchema: z.ZodType<
107
79
  StepFilter
108
80
  > = z.object({
109
81
  isNegated: z.boolean(),
110
- type: StepFilterType$outboundSchema,
82
+ type: BuilderFieldType$outboundSchema,
111
83
  value: Value$outboundSchema,
112
84
  children: z.array(FieldFilterPart$outboundSchema),
113
85
  });
@@ -4,41 +4,19 @@
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
- export const Type = {
12
- Subscriber: "Subscriber",
13
- Topic: "Topic",
14
- } as const;
15
- export type Type = ClosedEnum<typeof Type>;
9
+ import {
10
+ TriggerRecipientsTypeEnum,
11
+ TriggerRecipientsTypeEnum$inboundSchema,
12
+ TriggerRecipientsTypeEnum$outboundSchema,
13
+ } from "./triggerrecipientstypeenum.js";
16
14
 
17
15
  export type TopicPayloadDto = {
18
16
  topicKey: string;
19
- type: Type;
17
+ type: TriggerRecipientsTypeEnum;
20
18
  };
21
19
 
22
- /** @internal */
23
- export const Type$inboundSchema: z.ZodNativeEnum<typeof Type> = z.nativeEnum(
24
- Type,
25
- );
26
-
27
- /** @internal */
28
- export const Type$outboundSchema: z.ZodNativeEnum<typeof Type> =
29
- Type$inboundSchema;
30
-
31
- /**
32
- * @internal
33
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
34
- */
35
- export namespace Type$ {
36
- /** @deprecated use `Type$inboundSchema` instead. */
37
- export const inboundSchema = Type$inboundSchema;
38
- /** @deprecated use `Type$outboundSchema` instead. */
39
- export const outboundSchema = Type$outboundSchema;
40
- }
41
-
42
20
  /** @internal */
43
21
  export const TopicPayloadDto$inboundSchema: z.ZodType<
44
22
  TopicPayloadDto,
@@ -46,7 +24,7 @@ export const TopicPayloadDto$inboundSchema: z.ZodType<
46
24
  unknown
47
25
  > = z.object({
48
26
  topicKey: z.string(),
49
- type: Type$inboundSchema,
27
+ type: TriggerRecipientsTypeEnum$inboundSchema,
50
28
  });
51
29
 
52
30
  /** @internal */
@@ -62,7 +40,7 @@ export const TopicPayloadDto$outboundSchema: z.ZodType<
62
40
  TopicPayloadDto
63
41
  > = z.object({
64
42
  topicKey: z.string(),
65
- type: Type$outboundSchema,
43
+ type: TriggerRecipientsTypeEnum$outboundSchema,
66
44
  });
67
45
 
68
46
  /**
@@ -0,0 +1,35 @@
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
+ export const TriggerRecipientsTypeEnum = {
9
+ Subscriber: "Subscriber",
10
+ Topic: "Topic",
11
+ } as const;
12
+ export type TriggerRecipientsTypeEnum = ClosedEnum<
13
+ typeof TriggerRecipientsTypeEnum
14
+ >;
15
+
16
+ /** @internal */
17
+ export const TriggerRecipientsTypeEnum$inboundSchema: z.ZodNativeEnum<
18
+ typeof TriggerRecipientsTypeEnum
19
+ > = z.nativeEnum(TriggerRecipientsTypeEnum);
20
+
21
+ /** @internal */
22
+ export const TriggerRecipientsTypeEnum$outboundSchema: z.ZodNativeEnum<
23
+ typeof TriggerRecipientsTypeEnum
24
+ > = TriggerRecipientsTypeEnum$inboundSchema;
25
+
26
+ /**
27
+ * @internal
28
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
29
+ */
30
+ export namespace TriggerRecipientsTypeEnum$ {
31
+ /** @deprecated use `TriggerRecipientsTypeEnum$inboundSchema` instead. */
32
+ export const inboundSchema = TriggerRecipientsTypeEnum$inboundSchema;
33
+ /** @deprecated use `TriggerRecipientsTypeEnum$outboundSchema` instead. */
34
+ export const outboundSchema = TriggerRecipientsTypeEnum$outboundSchema;
35
+ }