@novu/api 0.1.2 → 0.1.5

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 (93) hide show
  1. package/README.md +7 -3
  2. package/docs/sdks/messages/README.md +2 -8
  3. package/docs/sdks/notifications/README.md +2 -6
  4. package/docs/sdks/novunotifications/README.md +0 -6
  5. package/docs/sdks/preferences/README.md +166 -5
  6. package/docs/sdks/subscribers/README.md +2 -2
  7. package/docs/sdks/topics/README.md +0 -4
  8. package/funcs/subscribersPreferencesRetrieve.d.ts +16 -0
  9. package/funcs/subscribersPreferencesRetrieve.d.ts.map +1 -0
  10. package/funcs/subscribersPreferencesRetrieve.js +141 -0
  11. package/funcs/subscribersPreferencesRetrieve.js.map +1 -0
  12. package/funcs/subscribersPreferencesUpdate.d.ts +6 -2
  13. package/funcs/subscribersPreferencesUpdate.d.ts.map +1 -1
  14. package/funcs/subscribersPreferencesUpdate.js +18 -12
  15. package/funcs/subscribersPreferencesUpdate.js.map +1 -1
  16. package/funcs/subscribersPreferencesUpdateLegacy.d.ts +13 -0
  17. package/funcs/subscribersPreferencesUpdateLegacy.d.ts.map +1 -0
  18. package/funcs/subscribersPreferencesUpdateLegacy.js +139 -0
  19. package/funcs/subscribersPreferencesUpdateLegacy.js.map +1 -0
  20. package/jsr.json +1 -1
  21. package/lib/config.d.ts +3 -3
  22. package/lib/config.js +3 -3
  23. package/models/components/getsubscriberpreferencesdto.d.ts +39 -0
  24. package/models/components/getsubscriberpreferencesdto.d.ts.map +1 -0
  25. package/models/components/getsubscriberpreferencesdto.js +63 -0
  26. package/models/components/getsubscriberpreferencesdto.js.map +1 -0
  27. package/models/components/globalpreferencedto.d.ts +38 -0
  28. package/models/components/globalpreferencedto.d.ts.map +1 -0
  29. package/models/components/globalpreferencedto.js +62 -0
  30. package/models/components/globalpreferencedto.js.map +1 -0
  31. package/models/components/index.d.ts +7 -0
  32. package/models/components/index.d.ts.map +1 -1
  33. package/models/components/index.js +7 -0
  34. package/models/components/index.js.map +1 -1
  35. package/models/components/overrides.d.ts +112 -0
  36. package/models/components/overrides.d.ts.map +1 -0
  37. package/models/components/overrides.js +110 -0
  38. package/models/components/overrides.js.map +1 -0
  39. package/models/components/patchpreferencechannelsdto.d.ts +52 -0
  40. package/models/components/patchpreferencechannelsdto.d.ts.map +1 -0
  41. package/models/components/patchpreferencechannelsdto.js +76 -0
  42. package/models/components/patchpreferencechannelsdto.js.map +1 -0
  43. package/models/components/patchsubscriberpreferencesdto.d.ts +38 -0
  44. package/models/components/patchsubscriberpreferencesdto.d.ts.map +1 -0
  45. package/models/components/patchsubscriberpreferencesdto.js +62 -0
  46. package/models/components/patchsubscriberpreferencesdto.js.map +1 -0
  47. package/models/components/triggereventtoallrequestdto.d.ts +15 -15
  48. package/models/components/triggereventtoallrequestdto.d.ts.map +1 -1
  49. package/models/components/triggereventtoallrequestdto.js +20 -18
  50. package/models/components/triggereventtoallrequestdto.js.map +1 -1
  51. package/models/components/workflowinfodto.d.ts +42 -0
  52. package/models/components/workflowinfodto.d.ts.map +1 -0
  53. package/models/components/workflowinfodto.js +63 -0
  54. package/models/components/workflowinfodto.js.map +1 -0
  55. package/models/components/workflowpreferencedto.d.ts +50 -0
  56. package/models/components/workflowpreferencedto.d.ts.map +1 -0
  57. package/models/components/workflowpreferencedto.js +68 -0
  58. package/models/components/workflowpreferencedto.js.map +1 -0
  59. package/models/operations/index.d.ts +2 -0
  60. package/models/operations/index.d.ts.map +1 -1
  61. package/models/operations/index.js +2 -0
  62. package/models/operations/index.js.map +1 -1
  63. package/models/operations/subscriberscontrollergetsubscriberpreferences.d.ts +66 -0
  64. package/models/operations/subscriberscontrollergetsubscriberpreferences.d.ts.map +1 -0
  65. package/models/operations/subscriberscontrollergetsubscriberpreferences.js +110 -0
  66. package/models/operations/subscriberscontrollergetsubscriberpreferences.js.map +1 -0
  67. package/models/operations/subscriberscontrollerupdatesubscriberpreferences.d.ts +68 -0
  68. package/models/operations/subscriberscontrollerupdatesubscriberpreferences.d.ts.map +1 -0
  69. package/models/operations/subscriberscontrollerupdatesubscriberpreferences.js +118 -0
  70. package/models/operations/subscriberscontrollerupdatesubscriberpreferences.js.map +1 -0
  71. package/package.json +1 -1
  72. package/sdk/preferences.d.ts +15 -1
  73. package/sdk/preferences.d.ts.map +1 -1
  74. package/sdk/preferences.js +22 -2
  75. package/sdk/preferences.js.map +1 -1
  76. package/sources/json-development.json +1165 -0
  77. package/src/funcs/subscribersPreferencesRetrieve.ts +203 -0
  78. package/src/funcs/subscribersPreferencesUpdate.ts +27 -20
  79. package/src/funcs/subscribersPreferencesUpdateLegacy.ts +202 -0
  80. package/src/lib/config.ts +3 -3
  81. package/src/models/components/getsubscriberpreferencesdto.ts +90 -0
  82. package/src/models/components/globalpreferencedto.ts +82 -0
  83. package/src/models/components/index.ts +7 -0
  84. package/src/models/components/overrides.ts +141 -0
  85. package/src/models/components/patchpreferencechannelsdto.ts +106 -0
  86. package/src/models/components/patchsubscriberpreferencesdto.ts +84 -0
  87. package/src/models/components/triggereventtoallrequestdto.ts +35 -24
  88. package/src/models/components/workflowinfodto.ts +81 -0
  89. package/src/models/components/workflowpreferencedto.ts +108 -0
  90. package/src/models/operations/index.ts +2 -0
  91. package/src/models/operations/subscriberscontrollergetsubscriberpreferences.ts +183 -0
  92. package/src/models/operations/subscriberscontrollerupdatesubscriberpreferences.ts +189 -0
  93. package/src/sdk/preferences.ts +46 -2
@@ -0,0 +1,112 @@
1
+ import * as z from "zod";
2
+ import { ClosedEnum } from "../../types/enums.js";
3
+ import { Result as SafeParseResult } from "../../types/fp.js";
4
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
5
+ /**
6
+ * The channel type which is overridden
7
+ */
8
+ export declare const OverridesChannel: {
9
+ readonly InApp: "in_app";
10
+ readonly Email: "email";
11
+ readonly Sms: "sms";
12
+ readonly Chat: "chat";
13
+ readonly Push: "push";
14
+ };
15
+ /**
16
+ * The channel type which is overridden
17
+ */
18
+ export type OverridesChannel = ClosedEnum<typeof OverridesChannel>;
19
+ /**
20
+ * The source of overrides
21
+ */
22
+ export declare const Source: {
23
+ readonly Subscriber: "subscriber";
24
+ readonly Template: "template";
25
+ readonly WorkflowOverride: "workflowOverride";
26
+ };
27
+ /**
28
+ * The source of overrides
29
+ */
30
+ export type Source = ClosedEnum<typeof Source>;
31
+ export type Overrides = {
32
+ /**
33
+ * The channel type which is overridden
34
+ */
35
+ channel: OverridesChannel;
36
+ /**
37
+ * The source of overrides
38
+ */
39
+ source: Source;
40
+ };
41
+ /** @internal */
42
+ export declare const OverridesChannel$inboundSchema: z.ZodNativeEnum<typeof OverridesChannel>;
43
+ /** @internal */
44
+ export declare const OverridesChannel$outboundSchema: z.ZodNativeEnum<typeof OverridesChannel>;
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
+ export declare namespace OverridesChannel$ {
50
+ /** @deprecated use `OverridesChannel$inboundSchema` instead. */
51
+ const inboundSchema: z.ZodNativeEnum<{
52
+ readonly InApp: "in_app";
53
+ readonly Email: "email";
54
+ readonly Sms: "sms";
55
+ readonly Chat: "chat";
56
+ readonly Push: "push";
57
+ }>;
58
+ /** @deprecated use `OverridesChannel$outboundSchema` instead. */
59
+ const outboundSchema: z.ZodNativeEnum<{
60
+ readonly InApp: "in_app";
61
+ readonly Email: "email";
62
+ readonly Sms: "sms";
63
+ readonly Chat: "chat";
64
+ readonly Push: "push";
65
+ }>;
66
+ }
67
+ /** @internal */
68
+ export declare const Source$inboundSchema: z.ZodNativeEnum<typeof Source>;
69
+ /** @internal */
70
+ export declare const Source$outboundSchema: z.ZodNativeEnum<typeof Source>;
71
+ /**
72
+ * @internal
73
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
74
+ */
75
+ export declare namespace Source$ {
76
+ /** @deprecated use `Source$inboundSchema` instead. */
77
+ const inboundSchema: z.ZodNativeEnum<{
78
+ readonly Subscriber: "subscriber";
79
+ readonly Template: "template";
80
+ readonly WorkflowOverride: "workflowOverride";
81
+ }>;
82
+ /** @deprecated use `Source$outboundSchema` instead. */
83
+ const outboundSchema: z.ZodNativeEnum<{
84
+ readonly Subscriber: "subscriber";
85
+ readonly Template: "template";
86
+ readonly WorkflowOverride: "workflowOverride";
87
+ }>;
88
+ }
89
+ /** @internal */
90
+ export declare const Overrides$inboundSchema: z.ZodType<Overrides, z.ZodTypeDef, unknown>;
91
+ /** @internal */
92
+ export type Overrides$Outbound = {
93
+ channel: string;
94
+ source: string;
95
+ };
96
+ /** @internal */
97
+ export declare const Overrides$outboundSchema: z.ZodType<Overrides$Outbound, z.ZodTypeDef, Overrides>;
98
+ /**
99
+ * @internal
100
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
101
+ */
102
+ export declare namespace Overrides$ {
103
+ /** @deprecated use `Overrides$inboundSchema` instead. */
104
+ const inboundSchema: z.ZodType<Overrides, z.ZodTypeDef, unknown>;
105
+ /** @deprecated use `Overrides$outboundSchema` instead. */
106
+ const outboundSchema: z.ZodType<Overrides$Outbound, z.ZodTypeDef, Overrides>;
107
+ /** @deprecated use `Overrides$Outbound` instead. */
108
+ type Outbound = Overrides$Outbound;
109
+ }
110
+ export declare function overridesToJSON(overrides: Overrides): string;
111
+ export declare function overridesFromJSON(jsonString: string): SafeParseResult<Overrides, SDKValidationError>;
112
+ //# sourceMappingURL=overrides.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"overrides.d.ts","sourceRoot":"","sources":["../../src/models/components/overrides.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,gBAAgB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,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,wBAAwB,EAAE,CAAC,CAAC,OAAO,CAC9C,kBAAkB,EAClB,CAAC,CAAC,UAAU,EACZ,SAAS,CAIT,CAAC;AAEH;;;GAGG;AACH,yBAAiB,UAAU,CAAC;IAC1B,yDAAyD;IAClD,MAAM,aAAa,6CAA0B,CAAC;IACrD,0DAA0D;IACnD,MAAM,cAAc,wDAA2B,CAAC;IACvD,oDAAoD;IACpD,KAAY,QAAQ,GAAG,kBAAkB,CAAC;CAC3C;AAED,wBAAgB,eAAe,CAAC,SAAS,EAAE,SAAS,GAAG,MAAM,CAE5D;AAED,wBAAgB,iBAAiB,CAC/B,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,SAAS,EAAE,kBAAkB,CAAC,CAMhD"}
@@ -0,0 +1,110 @@
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.overridesFromJSON = exports.overridesToJSON = exports.Overrides$ = exports.Overrides$outboundSchema = exports.Overrides$inboundSchema = exports.Source$ = exports.Source$outboundSchema = exports.Source$inboundSchema = exports.OverridesChannel$ = exports.OverridesChannel$outboundSchema = exports.OverridesChannel$inboundSchema = exports.Source = exports.OverridesChannel = void 0;
30
+ const z = __importStar(require("zod"));
31
+ const schemas_js_1 = require("../../lib/schemas.js");
32
+ /**
33
+ * The channel type which is overridden
34
+ */
35
+ exports.OverridesChannel = {
36
+ InApp: "in_app",
37
+ Email: "email",
38
+ Sms: "sms",
39
+ Chat: "chat",
40
+ Push: "push",
41
+ };
42
+ /**
43
+ * The source of overrides
44
+ */
45
+ exports.Source = {
46
+ Subscriber: "subscriber",
47
+ Template: "template",
48
+ WorkflowOverride: "workflowOverride",
49
+ };
50
+ /** @internal */
51
+ exports.OverridesChannel$inboundSchema = z.nativeEnum(exports.OverridesChannel);
52
+ /** @internal */
53
+ exports.OverridesChannel$outboundSchema = exports.OverridesChannel$inboundSchema;
54
+ /**
55
+ * @internal
56
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
57
+ */
58
+ var OverridesChannel$;
59
+ (function (OverridesChannel$) {
60
+ /** @deprecated use `OverridesChannel$inboundSchema` instead. */
61
+ OverridesChannel$.inboundSchema = exports.OverridesChannel$inboundSchema;
62
+ /** @deprecated use `OverridesChannel$outboundSchema` instead. */
63
+ OverridesChannel$.outboundSchema = exports.OverridesChannel$outboundSchema;
64
+ })(OverridesChannel$ || (exports.OverridesChannel$ = OverridesChannel$ = {}));
65
+ /** @internal */
66
+ exports.Source$inboundSchema = z
67
+ .nativeEnum(exports.Source);
68
+ /** @internal */
69
+ exports.Source$outboundSchema = exports.Source$inboundSchema;
70
+ /**
71
+ * @internal
72
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
73
+ */
74
+ var Source$;
75
+ (function (Source$) {
76
+ /** @deprecated use `Source$inboundSchema` instead. */
77
+ Source$.inboundSchema = exports.Source$inboundSchema;
78
+ /** @deprecated use `Source$outboundSchema` instead. */
79
+ Source$.outboundSchema = exports.Source$outboundSchema;
80
+ })(Source$ || (exports.Source$ = Source$ = {}));
81
+ /** @internal */
82
+ exports.Overrides$inboundSchema = z.object({
83
+ channel: exports.OverridesChannel$inboundSchema,
84
+ source: exports.Source$inboundSchema,
85
+ });
86
+ /** @internal */
87
+ exports.Overrides$outboundSchema = z.object({
88
+ channel: exports.OverridesChannel$outboundSchema,
89
+ source: exports.Source$outboundSchema,
90
+ });
91
+ /**
92
+ * @internal
93
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
94
+ */
95
+ var Overrides$;
96
+ (function (Overrides$) {
97
+ /** @deprecated use `Overrides$inboundSchema` instead. */
98
+ Overrides$.inboundSchema = exports.Overrides$inboundSchema;
99
+ /** @deprecated use `Overrides$outboundSchema` instead. */
100
+ Overrides$.outboundSchema = exports.Overrides$outboundSchema;
101
+ })(Overrides$ || (exports.Overrides$ = Overrides$ = {}));
102
+ function overridesToJSON(overrides) {
103
+ return JSON.stringify(exports.Overrides$outboundSchema.parse(overrides));
104
+ }
105
+ exports.overridesToJSON = overridesToJSON;
106
+ function overridesFromJSON(jsonString) {
107
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.Overrides$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Overrides' from JSON`);
108
+ }
109
+ exports.overridesFromJSON = overridesFromJSON;
110
+ //# sourceMappingURL=overrides.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"overrides.js","sourceRoot":"","sources":["../../src/models/components/overrides.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,uCAAyB;AACzB,qDAAiD;AAKjD;;GAEG;AACU,QAAA,gBAAgB,GAAG;IAC9B,KAA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AiB,UAAU,CAO1B;AAPD,WAAiB,UAAU;IACzB,yDAAyD;IAC5C,wBAAa,GAAG,+BAAuB,CAAC;IACrD,0DAA0D;IAC7C,yBAAc,GAAG,gCAAwB,CAAC;AAGzD,CAAC,EAPgB,UAAU,0BAAV,UAAU,QAO1B;AAED,SAAgB,eAAe,CAAC,SAAoB;IAClD,OAAO,IAAI,CAAC,SAAS,CAAC,gCAAwB,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC;AACnE,CAAC;AAFD,0CAEC;AAED,SAAgB,iBAAiB,CAC/B,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,+BAAuB,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACnD,uCAAuC,CACxC,CAAC;AACJ,CAAC;AARD,8CAQC"}
@@ -0,0 +1,52 @@
1
+ import * as z from "zod";
2
+ import { Result as SafeParseResult } from "../../types/fp.js";
3
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
4
+ export type PatchPreferenceChannelsDto = {
5
+ /**
6
+ * Email channel preference
7
+ */
8
+ email?: boolean | undefined;
9
+ /**
10
+ * SMS channel preference
11
+ */
12
+ sms?: boolean | undefined;
13
+ /**
14
+ * In-app channel preference
15
+ */
16
+ inApp?: boolean | undefined;
17
+ /**
18
+ * Push channel preference
19
+ */
20
+ push?: boolean | undefined;
21
+ /**
22
+ * Chat channel preference
23
+ */
24
+ chat?: boolean | undefined;
25
+ };
26
+ /** @internal */
27
+ export declare const PatchPreferenceChannelsDto$inboundSchema: z.ZodType<PatchPreferenceChannelsDto, z.ZodTypeDef, unknown>;
28
+ /** @internal */
29
+ export type PatchPreferenceChannelsDto$Outbound = {
30
+ email?: boolean | undefined;
31
+ sms?: boolean | undefined;
32
+ in_app?: boolean | undefined;
33
+ push?: boolean | undefined;
34
+ chat?: boolean | undefined;
35
+ };
36
+ /** @internal */
37
+ export declare const PatchPreferenceChannelsDto$outboundSchema: z.ZodType<PatchPreferenceChannelsDto$Outbound, z.ZodTypeDef, PatchPreferenceChannelsDto>;
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 PatchPreferenceChannelsDto$ {
43
+ /** @deprecated use `PatchPreferenceChannelsDto$inboundSchema` instead. */
44
+ const inboundSchema: z.ZodType<PatchPreferenceChannelsDto, z.ZodTypeDef, unknown>;
45
+ /** @deprecated use `PatchPreferenceChannelsDto$outboundSchema` instead. */
46
+ const outboundSchema: z.ZodType<PatchPreferenceChannelsDto$Outbound, z.ZodTypeDef, PatchPreferenceChannelsDto>;
47
+ /** @deprecated use `PatchPreferenceChannelsDto$Outbound` instead. */
48
+ type Outbound = PatchPreferenceChannelsDto$Outbound;
49
+ }
50
+ export declare function patchPreferenceChannelsDtoToJSON(patchPreferenceChannelsDto: PatchPreferenceChannelsDto): string;
51
+ export declare function patchPreferenceChannelsDtoFromJSON(jsonString: string): SafeParseResult<PatchPreferenceChannelsDto, SDKValidationError>;
52
+ //# sourceMappingURL=patchpreferencechannelsdto.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"patchpreferencechannelsdto.d.ts","sourceRoot":"","sources":["../../src/models/components/patchpreferencechannelsdto.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAGzB,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE,MAAM,MAAM,0BAA0B,GAAG;IACvC;;OAEG;IACH,KAAK,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAC5B;;OAEG;IACH,GAAG,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAC1B;;OAEG;IACH,KAAK,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAC5B;;OAEG;IACH,IAAI,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAC3B;;OAEG;IACH,IAAI,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;CAC5B,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,wCAAwC,EAAE,CAAC,CAAC,OAAO,CAC9D,0BAA0B,EAC1B,CAAC,CAAC,UAAU,EACZ,OAAO,CAWP,CAAC;AAEH,gBAAgB;AAChB,MAAM,MAAM,mCAAmC,GAAG;IAChD,KAAK,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAC5B,GAAG,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAC1B,MAAM,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAC7B,IAAI,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAC3B,IAAI,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;CAC5B,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,yCAAyC,EAAE,CAAC,CAAC,OAAO,CAC/D,mCAAmC,EACnC,CAAC,CAAC,UAAU,EACZ,0BAA0B,CAW1B,CAAC;AAEH;;;GAGG;AACH,yBAAiB,2BAA2B,CAAC;IAC3C,0EAA0E;IACnE,MAAM,aAAa,8DAA2C,CAAC;IACtE,2EAA2E;IACpE,MAAM,cAAc,0FAA4C,CAAC;IACxE,qEAAqE;IACrE,KAAY,QAAQ,GAAG,mCAAmC,CAAC;CAC5D;AAED,wBAAgB,gCAAgC,CAC9C,0BAA0B,EAAE,0BAA0B,GACrD,MAAM,CAIR;AAED,wBAAgB,kCAAkC,CAChD,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,0BAA0B,EAAE,kBAAkB,CAAC,CAMjE"}
@@ -0,0 +1,76 @@
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.patchPreferenceChannelsDtoFromJSON = exports.patchPreferenceChannelsDtoToJSON = exports.PatchPreferenceChannelsDto$ = exports.PatchPreferenceChannelsDto$outboundSchema = exports.PatchPreferenceChannelsDto$inboundSchema = void 0;
30
+ const z = __importStar(require("zod"));
31
+ const primitives_js_1 = require("../../lib/primitives.js");
32
+ const schemas_js_1 = require("../../lib/schemas.js");
33
+ /** @internal */
34
+ exports.PatchPreferenceChannelsDto$inboundSchema = z.object({
35
+ email: z.boolean().optional(),
36
+ sms: z.boolean().optional(),
37
+ in_app: z.boolean().optional(),
38
+ push: z.boolean().optional(),
39
+ chat: z.boolean().optional(),
40
+ }).transform((v) => {
41
+ return (0, primitives_js_1.remap)(v, {
42
+ "in_app": "inApp",
43
+ });
44
+ });
45
+ /** @internal */
46
+ exports.PatchPreferenceChannelsDto$outboundSchema = z.object({
47
+ email: z.boolean().optional(),
48
+ sms: z.boolean().optional(),
49
+ inApp: z.boolean().optional(),
50
+ push: z.boolean().optional(),
51
+ chat: z.boolean().optional(),
52
+ }).transform((v) => {
53
+ return (0, primitives_js_1.remap)(v, {
54
+ inApp: "in_app",
55
+ });
56
+ });
57
+ /**
58
+ * @internal
59
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
60
+ */
61
+ var PatchPreferenceChannelsDto$;
62
+ (function (PatchPreferenceChannelsDto$) {
63
+ /** @deprecated use `PatchPreferenceChannelsDto$inboundSchema` instead. */
64
+ PatchPreferenceChannelsDto$.inboundSchema = exports.PatchPreferenceChannelsDto$inboundSchema;
65
+ /** @deprecated use `PatchPreferenceChannelsDto$outboundSchema` instead. */
66
+ PatchPreferenceChannelsDto$.outboundSchema = exports.PatchPreferenceChannelsDto$outboundSchema;
67
+ })(PatchPreferenceChannelsDto$ || (exports.PatchPreferenceChannelsDto$ = PatchPreferenceChannelsDto$ = {}));
68
+ function patchPreferenceChannelsDtoToJSON(patchPreferenceChannelsDto) {
69
+ return JSON.stringify(exports.PatchPreferenceChannelsDto$outboundSchema.parse(patchPreferenceChannelsDto));
70
+ }
71
+ exports.patchPreferenceChannelsDtoToJSON = patchPreferenceChannelsDtoToJSON;
72
+ function patchPreferenceChannelsDtoFromJSON(jsonString) {
73
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.PatchPreferenceChannelsDto$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PatchPreferenceChannelsDto' from JSON`);
74
+ }
75
+ exports.patchPreferenceChannelsDtoFromJSON = patchPreferenceChannelsDtoFromJSON;
76
+ //# sourceMappingURL=patchpreferencechannelsdto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"patchpreferencechannelsdto.js","sourceRoot":"","sources":["../../src/models/components/patchpreferencechannelsdto.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,uCAAyB;AACzB,2DAA0D;AAC1D,qDAAiD;AA2BjD,gBAAgB;AACH,QAAA,wCAAwC,GAIjD,CAAC,CAAC,MAAM,CAAC;IACX,KAAK,EAAE,CAAC,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C,0BAAsD;IAEtD,OAAO,IAAI,CAAC,SAAS,CACnB,iDAAyC,CAAC,KAAK,CAAC,0BAA0B,CAAC,CAC5E,CAAC;AACJ,CAAC;AAND,4EAMC;AAED,SAAgB,kCAAkC,CAChD,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,gDAAwC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACpE,wDAAwD,CACzD,CAAC;AACJ,CAAC;AARD,gFAQC"}
@@ -0,0 +1,38 @@
1
+ import * as z from "zod";
2
+ import { Result as SafeParseResult } from "../../types/fp.js";
3
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
4
+ import { PatchPreferenceChannelsDto, PatchPreferenceChannelsDto$Outbound } from "./patchpreferencechannelsdto.js";
5
+ export type PatchSubscriberPreferencesDto = {
6
+ /**
7
+ * Channel-specific preference settings
8
+ */
9
+ channels: PatchPreferenceChannelsDto;
10
+ /**
11
+ * If provided, update workflow specific preferences, otherwise update global preferences
12
+ */
13
+ workflowId?: string | undefined;
14
+ };
15
+ /** @internal */
16
+ export declare const PatchSubscriberPreferencesDto$inboundSchema: z.ZodType<PatchSubscriberPreferencesDto, z.ZodTypeDef, unknown>;
17
+ /** @internal */
18
+ export type PatchSubscriberPreferencesDto$Outbound = {
19
+ channels: PatchPreferenceChannelsDto$Outbound;
20
+ workflowId?: string | undefined;
21
+ };
22
+ /** @internal */
23
+ export declare const PatchSubscriberPreferencesDto$outboundSchema: z.ZodType<PatchSubscriberPreferencesDto$Outbound, z.ZodTypeDef, PatchSubscriberPreferencesDto>;
24
+ /**
25
+ * @internal
26
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
27
+ */
28
+ export declare namespace PatchSubscriberPreferencesDto$ {
29
+ /** @deprecated use `PatchSubscriberPreferencesDto$inboundSchema` instead. */
30
+ const inboundSchema: z.ZodType<PatchSubscriberPreferencesDto, z.ZodTypeDef, unknown>;
31
+ /** @deprecated use `PatchSubscriberPreferencesDto$outboundSchema` instead. */
32
+ const outboundSchema: z.ZodType<PatchSubscriberPreferencesDto$Outbound, z.ZodTypeDef, PatchSubscriberPreferencesDto>;
33
+ /** @deprecated use `PatchSubscriberPreferencesDto$Outbound` instead. */
34
+ type Outbound = PatchSubscriberPreferencesDto$Outbound;
35
+ }
36
+ export declare function patchSubscriberPreferencesDtoToJSON(patchSubscriberPreferencesDto: PatchSubscriberPreferencesDto): string;
37
+ export declare function patchSubscriberPreferencesDtoFromJSON(jsonString: string): SafeParseResult<PatchSubscriberPreferencesDto, SDKValidationError>;
38
+ //# sourceMappingURL=patchsubscriberpreferencesdto.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"patchsubscriberpreferencesdto.d.ts","sourceRoot":"","sources":["../../src/models/components/patchsubscriberpreferencesdto.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EACL,0BAA0B,EAE1B,mCAAmC,EAEpC,MAAM,iCAAiC,CAAC;AAEzC,MAAM,MAAM,6BAA6B,GAAG;IAC1C;;OAEG;IACH,QAAQ,EAAE,0BAA0B,CAAC;IACrC;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CACjC,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,2CAA2C,EAAE,CAAC,CAAC,OAAO,CACjE,6BAA6B,EAC7B,CAAC,CAAC,UAAU,EACZ,OAAO,CAIP,CAAC;AAEH,gBAAgB;AAChB,MAAM,MAAM,sCAAsC,GAAG;IACnD,QAAQ,EAAE,mCAAmC,CAAC;IAC9C,UAAU,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CACjC,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,4CAA4C,EAAE,CAAC,CAAC,OAAO,CAClE,sCAAsC,EACtC,CAAC,CAAC,UAAU,EACZ,6BAA6B,CAI7B,CAAC;AAEH;;;GAGG;AACH,yBAAiB,8BAA8B,CAAC;IAC9C,6EAA6E;IACtE,MAAM,aAAa,iEAA8C,CAAC;IACzE,8EAA8E;IACvE,MAAM,cAAc,gGAA+C,CAAC;IAC3E,wEAAwE;IACxE,KAAY,QAAQ,GAAG,sCAAsC,CAAC;CAC/D;AAED,wBAAgB,mCAAmC,CACjD,6BAA6B,EAAE,6BAA6B,GAC3D,MAAM,CAMR;AAED,wBAAgB,qCAAqC,CACnD,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,6BAA6B,EAAE,kBAAkB,CAAC,CAMpE"}
@@ -0,0 +1,62 @@
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.patchSubscriberPreferencesDtoFromJSON = exports.patchSubscriberPreferencesDtoToJSON = exports.PatchSubscriberPreferencesDto$ = exports.PatchSubscriberPreferencesDto$outboundSchema = exports.PatchSubscriberPreferencesDto$inboundSchema = void 0;
30
+ const z = __importStar(require("zod"));
31
+ const schemas_js_1 = require("../../lib/schemas.js");
32
+ const patchpreferencechannelsdto_js_1 = require("./patchpreferencechannelsdto.js");
33
+ /** @internal */
34
+ exports.PatchSubscriberPreferencesDto$inboundSchema = z.object({
35
+ channels: patchpreferencechannelsdto_js_1.PatchPreferenceChannelsDto$inboundSchema,
36
+ workflowId: z.string().optional(),
37
+ });
38
+ /** @internal */
39
+ exports.PatchSubscriberPreferencesDto$outboundSchema = z.object({
40
+ channels: patchpreferencechannelsdto_js_1.PatchPreferenceChannelsDto$outboundSchema,
41
+ workflowId: z.string().optional(),
42
+ });
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 PatchSubscriberPreferencesDto$;
48
+ (function (PatchSubscriberPreferencesDto$) {
49
+ /** @deprecated use `PatchSubscriberPreferencesDto$inboundSchema` instead. */
50
+ PatchSubscriberPreferencesDto$.inboundSchema = exports.PatchSubscriberPreferencesDto$inboundSchema;
51
+ /** @deprecated use `PatchSubscriberPreferencesDto$outboundSchema` instead. */
52
+ PatchSubscriberPreferencesDto$.outboundSchema = exports.PatchSubscriberPreferencesDto$outboundSchema;
53
+ })(PatchSubscriberPreferencesDto$ || (exports.PatchSubscriberPreferencesDto$ = PatchSubscriberPreferencesDto$ = {}));
54
+ function patchSubscriberPreferencesDtoToJSON(patchSubscriberPreferencesDto) {
55
+ return JSON.stringify(exports.PatchSubscriberPreferencesDto$outboundSchema.parse(patchSubscriberPreferencesDto));
56
+ }
57
+ exports.patchSubscriberPreferencesDtoToJSON = patchSubscriberPreferencesDtoToJSON;
58
+ function patchSubscriberPreferencesDtoFromJSON(jsonString) {
59
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.PatchSubscriberPreferencesDto$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PatchSubscriberPreferencesDto' from JSON`);
60
+ }
61
+ exports.patchSubscriberPreferencesDtoFromJSON = patchSubscriberPreferencesDtoFromJSON;
62
+ //# sourceMappingURL=patchsubscriberpreferencesdto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"patchsubscriberpreferencesdto.js","sourceRoot":"","sources":["../../src/models/components/patchsubscriberpreferencesdto.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,uCAAyB;AACzB,qDAAiD;AAGjD,mFAKyC;AAazC,gBAAgB;AACH,QAAA,2CAA2C,GAIpD,CAAC,CAAC,MAAM,CAAC;IACX,QAAQ,EAAE,wEAAwC;IAClD,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAClC,CAAC,CAAC;AAQH,gBAAgB;AACH,QAAA,4CAA4C,GAIrD,CAAC,CAAC,MAAM,CAAC;IACX,QAAQ,EAAE,yEAAyC;IACnD,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAClC,CAAC,CAAC;AAEH;;;GAGG;AACH,IAAiB,8BAA8B,CAO9C;AAPD,WAAiB,8BAA8B;IAC7C,6EAA6E;IAChE,4CAAa,GAAG,mDAA2C,CAAC;IACzE,8EAA8E;IACjE,6CAAc,GAAG,oDAA4C,CAAC;AAG7E,CAAC,EAPgB,8BAA8B,8CAA9B,8BAA8B,QAO9C;AAED,SAAgB,mCAAmC,CACjD,6BAA4D;IAE5D,OAAO,IAAI,CAAC,SAAS,CACnB,oDAA4C,CAAC,KAAK,CAChD,6BAA6B,CAC9B,CACF,CAAC;AACJ,CAAC;AARD,kFAQC;AAED,SAAgB,qCAAqC,CACnD,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,mDAA2C,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACvE,2DAA2D,CAC5D,CAAC;AACJ,CAAC;AARD,sFAQC"}
@@ -6,7 +6,7 @@ import { TenantPayloadDto, TenantPayloadDto$Outbound } from "./tenantpayloaddto.
6
6
  /**
7
7
  * This could be used to override provider specific configurations
8
8
  */
9
- export type Overrides = {};
9
+ export type TriggerEventToAllRequestDtoOverrides = {};
10
10
  /**
11
11
  * It is used to display the Avatar of the provided actor's subscriber id or actor object.
12
12
  *
@@ -39,7 +39,7 @@ export type TriggerEventToAllRequestDto = {
39
39
  /**
40
40
  * This could be used to override provider specific configurations
41
41
  */
42
- overrides?: Overrides | undefined;
42
+ overrides?: TriggerEventToAllRequestDtoOverrides | undefined;
43
43
  /**
44
44
  * A unique identifier for this transaction, we will generated a UUID if not provided.
45
45
  */
@@ -60,25 +60,25 @@ export type TriggerEventToAllRequestDto = {
60
60
  tenant?: TenantPayloadDto | string | undefined;
61
61
  };
62
62
  /** @internal */
63
- export declare const Overrides$inboundSchema: z.ZodType<Overrides, z.ZodTypeDef, unknown>;
63
+ export declare const TriggerEventToAllRequestDtoOverrides$inboundSchema: z.ZodType<TriggerEventToAllRequestDtoOverrides, z.ZodTypeDef, unknown>;
64
64
  /** @internal */
65
- export type Overrides$Outbound = {};
65
+ export type TriggerEventToAllRequestDtoOverrides$Outbound = {};
66
66
  /** @internal */
67
- export declare const Overrides$outboundSchema: z.ZodType<Overrides$Outbound, z.ZodTypeDef, Overrides>;
67
+ export declare const TriggerEventToAllRequestDtoOverrides$outboundSchema: z.ZodType<TriggerEventToAllRequestDtoOverrides$Outbound, z.ZodTypeDef, TriggerEventToAllRequestDtoOverrides>;
68
68
  /**
69
69
  * @internal
70
70
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
71
71
  */
72
- export declare namespace Overrides$ {
73
- /** @deprecated use `Overrides$inboundSchema` instead. */
74
- const inboundSchema: z.ZodType<Overrides, z.ZodTypeDef, unknown>;
75
- /** @deprecated use `Overrides$outboundSchema` instead. */
76
- const outboundSchema: z.ZodType<Overrides$Outbound, z.ZodTypeDef, Overrides>;
77
- /** @deprecated use `Overrides$Outbound` instead. */
78
- type Outbound = Overrides$Outbound;
72
+ export declare namespace TriggerEventToAllRequestDtoOverrides$ {
73
+ /** @deprecated use `TriggerEventToAllRequestDtoOverrides$inboundSchema` instead. */
74
+ const inboundSchema: z.ZodType<TriggerEventToAllRequestDtoOverrides, z.ZodTypeDef, unknown>;
75
+ /** @deprecated use `TriggerEventToAllRequestDtoOverrides$outboundSchema` instead. */
76
+ const outboundSchema: z.ZodType<TriggerEventToAllRequestDtoOverrides$Outbound, z.ZodTypeDef, TriggerEventToAllRequestDtoOverrides>;
77
+ /** @deprecated use `TriggerEventToAllRequestDtoOverrides$Outbound` instead. */
78
+ type Outbound = TriggerEventToAllRequestDtoOverrides$Outbound;
79
79
  }
80
- export declare function overridesToJSON(overrides: Overrides): string;
81
- export declare function overridesFromJSON(jsonString: string): SafeParseResult<Overrides, SDKValidationError>;
80
+ export declare function triggerEventToAllRequestDtoOverridesToJSON(triggerEventToAllRequestDtoOverrides: TriggerEventToAllRequestDtoOverrides): string;
81
+ export declare function triggerEventToAllRequestDtoOverridesFromJSON(jsonString: string): SafeParseResult<TriggerEventToAllRequestDtoOverrides, SDKValidationError>;
82
82
  /** @internal */
83
83
  export declare const TriggerEventToAllRequestDtoActor$inboundSchema: z.ZodType<TriggerEventToAllRequestDtoActor, z.ZodTypeDef, unknown>;
84
84
  /** @internal */
@@ -127,7 +127,7 @@ export type TriggerEventToAllRequestDto$Outbound = {
127
127
  payload: {
128
128
  [k: string]: any;
129
129
  };
130
- overrides?: Overrides$Outbound | undefined;
130
+ overrides?: TriggerEventToAllRequestDtoOverrides$Outbound | undefined;
131
131
  transactionId?: string | undefined;
132
132
  actor?: SubscriberPayloadDto$Outbound | string | undefined;
133
133
  tenant?: TenantPayloadDto$Outbound | string | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"triggereventtoallrequestdto.d.ts","sourceRoot":"","sources":["../../src/models/components/triggereventtoallrequestdto.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EACL,oBAAoB,EAEpB,6BAA6B,EAE9B,MAAM,2BAA2B,CAAC;AACnC,OAAO,EACL,gBAAgB,EAEhB,yBAAyB,EAE1B,MAAM,uBAAuB,CAAC;AAE/B;;GAEG;AACH,MAAM,MAAM,SAAS,GAAG,EAAE,CAAC;AAE3B;;;;;GAKG;AACH,MAAM,MAAM,gCAAgC,GAAG,oBAAoB,GAAG,MAAM,CAAC;AAE7E;;;;;GAKG;AACH,MAAM,MAAM,iCAAiC,GAAG,gBAAgB,GAAG,MAAM,CAAC;AAE1E,MAAM,MAAM,2BAA2B,GAAG;IACxC;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;;;;;OAMG;IACH,OAAO,EAAE;QAAE,CAAC,CAAC,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,CAAC;IAC9B;;OAEG;IACH,SAAS,CAAC,EAAE,SAAS,GAAG,SAAS,CAAC;IAClC;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACnC;;;;;OAKG;IACH,KAAK,CAAC,EAAE,oBAAoB,GAAG,MAAM,GAAG,SAAS,CAAC;IAClD;;;;;OAKG;IACH,MAAM,CAAC,EAAE,gBAAgB,GAAG,MAAM,GAAG,SAAS,CAAC;CAChD,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,uBAAuB,EAAE,CAAC,CAAC,OAAO,CAC7C,SAAS,EACT,CAAC,CAAC,UAAU,EACZ,OAAO,CACO,CAAC;AAEjB,gBAAgB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F,gBAAgB;AAChB,eAAO,MAAM,0CAA0C,EAAE,CAAC,CAAC,OAAO,CAChE,oCAAoC,EACpC,CAAC,CAAC,UAAU,EACZ,2BAA2B,CAQ3B,CAAC;AAEH;;;GAGG;AACH,yBAAiB,4BAA4B,CAAC;IAC5C,2EAA2E;IACpE,MAAM,aAAa,+DAA4C,CAAC;IACvE,4EAA4E;IACrE,MAAM,cAAc,4FAA6C,CAAC;IACzE,sEAAsE;IACtE,KAAY,QAAQ,GAAG,oCAAoC,CAAC;CAC7D;AAED,wBAAgB,iCAAiC,CAC/C,2BAA2B,EAAE,2BAA2B,GACvD,MAAM,CAMR;AAED,wBAAgB,mCAAmC,CACjD,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,2BAA2B,EAAE,kBAAkB,CAAC,CAMlE"}
1
+ {"version":3,"file":"triggereventtoallrequestdto.d.ts","sourceRoot":"","sources":["../../src/models/components/triggereventtoallrequestdto.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EACL,oBAAoB,EAEpB,6BAA6B,EAE9B,MAAM,2BAA2B,CAAC;AACnC,OAAO,EACL,gBAAgB,EAEhB,yBAAyB,EAE1B,MAAM,uBAAuB,CAAC;AAE/B;;GAEG;AACH,MAAM,MAAM,oCAAoC,GAAG,EAAE,CAAC;AAEtD;;;;;GAKG;AACH,MAAM,MAAM,gCAAgC,GAAG,oBAAoB,GAAG,MAAM,CAAC;AAE7E;;;;;GAKG;AACH,MAAM,MAAM,iCAAiC,GAAG,gBAAgB,GAAG,MAAM,CAAC;AAE1E,MAAM,MAAM,2BAA2B,GAAG;IACxC;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;;;;;OAMG;IACH,OAAO,EAAE;QAAE,CAAC,CAAC,E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