@novu/api 0.1.2 → 0.1.6

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 (134) hide show
  1. package/README.md +18 -11
  2. package/docs/sdks/legacy/README.md +86 -0
  3. package/docs/sdks/messages/README.md +2 -8
  4. package/docs/sdks/notifications/README.md +2 -6
  5. package/docs/sdks/novunotifications/README.md +0 -6
  6. package/docs/sdks/preferences/README.md +123 -37
  7. package/docs/sdks/subscribers/README.md +7 -7
  8. package/docs/sdks/topics/README.md +0 -4
  9. package/funcs/subscribersPreferencesLegacyUpdateGlobal.d.ts +14 -0
  10. package/funcs/subscribersPreferencesLegacyUpdateGlobal.d.ts.map +1 -0
  11. package/funcs/{subscribersPreferencesUpdateGlobal.js → subscribersPreferencesLegacyUpdateGlobal.js} +4 -4
  12. package/funcs/subscribersPreferencesLegacyUpdateGlobal.js.map +1 -0
  13. package/funcs/{subscribersPreferencesUpdateGlobal.d.ts → subscribersPreferencesListLegacy.d.ts} +5 -4
  14. package/funcs/subscribersPreferencesListLegacy.d.ts.map +1 -0
  15. package/funcs/{subscribersPreferencesList.js → subscribersPreferencesListLegacy.js} +6 -4
  16. package/funcs/subscribersPreferencesListLegacy.js.map +1 -0
  17. package/funcs/subscribersPreferencesRetrieve.d.ts +16 -0
  18. package/funcs/subscribersPreferencesRetrieve.d.ts.map +1 -0
  19. package/funcs/subscribersPreferencesRetrieve.js +141 -0
  20. package/funcs/subscribersPreferencesRetrieve.js.map +1 -0
  21. package/funcs/subscribersPreferencesRetrieveByLevelLegacy.d.ts +15 -0
  22. package/funcs/subscribersPreferencesRetrieveByLevelLegacy.d.ts.map +1 -0
  23. package/funcs/{subscribersPreferencesRetrieveByLevel.js → subscribersPreferencesRetrieveByLevelLegacy.js} +6 -4
  24. package/funcs/subscribersPreferencesRetrieveByLevelLegacy.js.map +1 -0
  25. package/funcs/subscribersPreferencesUpdate.d.ts +6 -2
  26. package/funcs/subscribersPreferencesUpdate.d.ts.map +1 -1
  27. package/funcs/subscribersPreferencesUpdate.js +18 -12
  28. package/funcs/subscribersPreferencesUpdate.js.map +1 -1
  29. package/funcs/subscribersPreferencesUpdateLegacy.d.ts +13 -0
  30. package/funcs/subscribersPreferencesUpdateLegacy.d.ts.map +1 -0
  31. package/funcs/subscribersPreferencesUpdateLegacy.js +139 -0
  32. package/funcs/subscribersPreferencesUpdateLegacy.js.map +1 -0
  33. package/funcs/{subscribersUpdate.d.ts → subscribersUpdateLegacy.d.ts} +2 -2
  34. package/funcs/subscribersUpdateLegacy.d.ts.map +1 -0
  35. package/funcs/{subscribersUpdate.js → subscribersUpdateLegacy.js} +4 -4
  36. package/funcs/subscribersUpdateLegacy.js.map +1 -0
  37. package/jsr.json +1 -1
  38. package/lib/config.d.ts +3 -3
  39. package/lib/config.js +3 -3
  40. package/models/components/getsubscriberpreferencesdto.d.ts +39 -0
  41. package/models/components/getsubscriberpreferencesdto.d.ts.map +1 -0
  42. package/models/components/getsubscriberpreferencesdto.js +63 -0
  43. package/models/components/getsubscriberpreferencesdto.js.map +1 -0
  44. package/models/components/globalpreferencedto.d.ts +38 -0
  45. package/models/components/globalpreferencedto.d.ts.map +1 -0
  46. package/models/components/globalpreferencedto.js +62 -0
  47. package/models/components/globalpreferencedto.js.map +1 -0
  48. package/models/components/index.d.ts +7 -0
  49. package/models/components/index.d.ts.map +1 -1
  50. package/models/components/index.js +7 -0
  51. package/models/components/index.js.map +1 -1
  52. package/models/components/overrides.d.ts +112 -0
  53. package/models/components/overrides.d.ts.map +1 -0
  54. package/models/components/overrides.js +110 -0
  55. package/models/components/overrides.js.map +1 -0
  56. package/models/components/patchpreferencechannelsdto.d.ts +52 -0
  57. package/models/components/patchpreferencechannelsdto.d.ts.map +1 -0
  58. package/models/components/patchpreferencechannelsdto.js +76 -0
  59. package/models/components/patchpreferencechannelsdto.js.map +1 -0
  60. package/models/components/patchsubscriberpreferencesdto.d.ts +38 -0
  61. package/models/components/patchsubscriberpreferencesdto.d.ts.map +1 -0
  62. package/models/components/patchsubscriberpreferencesdto.js +62 -0
  63. package/models/components/patchsubscriberpreferencesdto.js.map +1 -0
  64. package/models/components/triggereventtoallrequestdto.d.ts +15 -15
  65. package/models/components/triggereventtoallrequestdto.d.ts.map +1 -1
  66. package/models/components/triggereventtoallrequestdto.js +20 -18
  67. package/models/components/triggereventtoallrequestdto.js.map +1 -1
  68. package/models/components/workflowinfodto.d.ts +42 -0
  69. package/models/components/workflowinfodto.d.ts.map +1 -0
  70. package/models/components/workflowinfodto.js +63 -0
  71. package/models/components/workflowinfodto.js.map +1 -0
  72. package/models/components/workflowpreferencedto.d.ts +50 -0
  73. package/models/components/workflowpreferencedto.d.ts.map +1 -0
  74. package/models/components/workflowpreferencedto.js +68 -0
  75. package/models/components/workflowpreferencedto.js.map +1 -0
  76. package/models/operations/index.d.ts +2 -0
  77. package/models/operations/index.d.ts.map +1 -1
  78. package/models/operations/index.js +2 -0
  79. package/models/operations/index.js.map +1 -1
  80. package/models/operations/subscriberscontrollergetsubscriberpreferences.d.ts +66 -0
  81. package/models/operations/subscriberscontrollergetsubscriberpreferences.d.ts.map +1 -0
  82. package/models/operations/subscriberscontrollergetsubscriberpreferences.js +110 -0
  83. package/models/operations/subscriberscontrollergetsubscriberpreferences.js.map +1 -0
  84. package/models/operations/subscriberscontrollerupdatesubscriberpreferences.d.ts +68 -0
  85. package/models/operations/subscriberscontrollerupdatesubscriberpreferences.d.ts.map +1 -0
  86. package/models/operations/subscriberscontrollerupdatesubscriberpreferences.js +118 -0
  87. package/models/operations/subscriberscontrollerupdatesubscriberpreferences.js.map +1 -0
  88. package/package.json +1 -1
  89. package/sdk/legacy.d.ts +10 -0
  90. package/sdk/legacy.d.ts.map +1 -0
  91. package/sdk/legacy.js +19 -0
  92. package/sdk/legacy.js.map +1 -0
  93. package/sdk/preferences.d.ts +24 -7
  94. package/sdk/preferences.d.ts.map +1 -1
  95. package/sdk/preferences.js +35 -14
  96. package/sdk/preferences.js.map +1 -1
  97. package/sdk/subscribers.d.ts +1 -1
  98. package/sdk/subscribers.d.ts.map +1 -1
  99. package/sdk/subscribers.js +3 -3
  100. package/sdk/subscribers.js.map +1 -1
  101. package/sources/json-development.json +1225 -57
  102. package/src/funcs/{subscribersPreferencesUpdateGlobal.ts → subscribersPreferencesLegacyUpdateGlobal.ts} +1 -1
  103. package/src/funcs/{subscribersPreferencesList.ts → subscribersPreferencesListLegacy.ts} +3 -1
  104. package/src/funcs/subscribersPreferencesRetrieve.ts +203 -0
  105. package/src/funcs/{subscribersPreferencesRetrieveByLevel.ts → subscribersPreferencesRetrieveByLevelLegacy.ts} +3 -1
  106. package/src/funcs/subscribersPreferencesUpdate.ts +27 -20
  107. package/src/funcs/subscribersPreferencesUpdateLegacy.ts +202 -0
  108. package/src/funcs/{subscribersUpdate.ts → subscribersUpdateLegacy.ts} +1 -1
  109. package/src/lib/config.ts +3 -3
  110. package/src/models/components/getsubscriberpreferencesdto.ts +90 -0
  111. package/src/models/components/globalpreferencedto.ts +82 -0
  112. package/src/models/components/index.ts +7 -0
  113. package/src/models/components/overrides.ts +141 -0
  114. package/src/models/components/patchpreferencechannelsdto.ts +106 -0
  115. package/src/models/components/patchsubscriberpreferencesdto.ts +84 -0
  116. package/src/models/components/triggereventtoallrequestdto.ts +35 -24
  117. package/src/models/components/workflowinfodto.ts +81 -0
  118. package/src/models/components/workflowpreferencedto.ts +108 -0
  119. package/src/models/operations/index.ts +2 -0
  120. package/src/models/operations/subscriberscontrollergetsubscriberpreferences.ts +183 -0
  121. package/src/models/operations/subscriberscontrollerupdatesubscriberpreferences.ts +189 -0
  122. package/src/sdk/legacy.ts +32 -0
  123. package/src/sdk/preferences.ts +58 -26
  124. package/src/sdk/subscribers.ts +3 -3
  125. package/funcs/subscribersPreferencesList.d.ts +0 -13
  126. package/funcs/subscribersPreferencesList.d.ts.map +0 -1
  127. package/funcs/subscribersPreferencesList.js.map +0 -1
  128. package/funcs/subscribersPreferencesRetrieveByLevel.d.ts +0 -13
  129. package/funcs/subscribersPreferencesRetrieveByLevel.d.ts.map +0 -1
  130. package/funcs/subscribersPreferencesRetrieveByLevel.js.map +0 -1
  131. package/funcs/subscribersPreferencesUpdateGlobal.d.ts.map +0 -1
  132. package/funcs/subscribersPreferencesUpdateGlobal.js.map +0 -1
  133. package/funcs/subscribersUpdate.d.ts.map +0 -1
  134. package/funcs/subscribersUpdate.js.map +0 -1
@@ -26,34 +26,34 @@ var __importStar = (this && this.__importStar) || function (mod) {
26
26
  return result;
27
27
  };
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
- exports.triggerEventToAllRequestDtoFromJSON = exports.triggerEventToAllRequestDtoToJSON = exports.TriggerEventToAllRequestDto$ = exports.TriggerEventToAllRequestDto$outboundSchema = exports.TriggerEventToAllRequestDto$inboundSchema = exports.triggerEventToAllRequestDtoTenantFromJSON = exports.triggerEventToAllRequestDtoTenantToJSON = exports.TriggerEventToAllRequestDtoTenant$ = exports.TriggerEventToAllRequestDtoTenant$outboundSchema = exports.TriggerEventToAllRequestDtoTenant$inboundSchema = exports.triggerEventToAllRequestDtoActorFromJSON = exports.triggerEventToAllRequestDtoActorToJSON = exports.TriggerEventToAllRequestDtoActor$ = exports.TriggerEventToAllRequestDtoActor$outboundSchema = exports.TriggerEventToAllRequestDtoActor$inboundSchema = exports.overridesFromJSON = exports.overridesToJSON = exports.Overrides$ = exports.Overrides$outboundSchema = exports.Overrides$inboundSchema = void 0;
29
+ exports.triggerEventToAllRequestDtoFromJSON = exports.triggerEventToAllRequestDtoToJSON = exports.TriggerEventToAllRequestDto$ = exports.TriggerEventToAllRequestDto$outboundSchema = exports.TriggerEventToAllRequestDto$inboundSchema = exports.triggerEventToAllRequestDtoTenantFromJSON = exports.triggerEventToAllRequestDtoTenantToJSON = exports.TriggerEventToAllRequestDtoTenant$ = exports.TriggerEventToAllRequestDtoTenant$outboundSchema = exports.TriggerEventToAllRequestDtoTenant$inboundSchema = exports.triggerEventToAllRequestDtoActorFromJSON = exports.triggerEventToAllRequestDtoActorToJSON = exports.TriggerEventToAllRequestDtoActor$ = exports.TriggerEventToAllRequestDtoActor$outboundSchema = exports.TriggerEventToAllRequestDtoActor$inboundSchema = exports.triggerEventToAllRequestDtoOverridesFromJSON = exports.triggerEventToAllRequestDtoOverridesToJSON = exports.TriggerEventToAllRequestDtoOverrides$ = exports.TriggerEventToAllRequestDtoOverrides$outboundSchema = exports.TriggerEventToAllRequestDtoOverrides$inboundSchema = void 0;
30
30
  const z = __importStar(require("zod"));
31
31
  const schemas_js_1 = require("../../lib/schemas.js");
32
32
  const subscriberpayloaddto_js_1 = require("./subscriberpayloaddto.js");
33
33
  const tenantpayloaddto_js_1 = require("./tenantpayloaddto.js");
34
34
  /** @internal */
35
- exports.Overrides$inboundSchema = z.object({});
35
+ exports.TriggerEventToAllRequestDtoOverrides$inboundSchema = z.object({});
36
36
  /** @internal */
37
- exports.Overrides$outboundSchema = z.object({});
37
+ exports.TriggerEventToAllRequestDtoOverrides$outboundSchema = z.object({});
38
38
  /**
39
39
  * @internal
40
40
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
41
41
  */
42
- var Overrides$;
43
- (function (Overrides$) {
44
- /** @deprecated use `Overrides$inboundSchema` instead. */
45
- Overrides$.inboundSchema = exports.Overrides$inboundSchema;
46
- /** @deprecated use `Overrides$outboundSchema` instead. */
47
- Overrides$.outboundSchema = exports.Overrides$outboundSchema;
48
- })(Overrides$ || (exports.Overrides$ = Overrides$ = {}));
49
- function overridesToJSON(overrides) {
50
- return JSON.stringify(exports.Overrides$outboundSchema.parse(overrides));
42
+ var TriggerEventToAllRequestDtoOverrides$;
43
+ (function (TriggerEventToAllRequestDtoOverrides$) {
44
+ /** @deprecated use `TriggerEventToAllRequestDtoOverrides$inboundSchema` instead. */
45
+ TriggerEventToAllRequestDtoOverrides$.inboundSchema = exports.TriggerEventToAllRequestDtoOverrides$inboundSchema;
46
+ /** @deprecated use `TriggerEventToAllRequestDtoOverrides$outboundSchema` instead. */
47
+ TriggerEventToAllRequestDtoOverrides$.outboundSchema = exports.TriggerEventToAllRequestDtoOverrides$outboundSchema;
48
+ })(TriggerEventToAllRequestDtoOverrides$ || (exports.TriggerEventToAllRequestDtoOverrides$ = TriggerEventToAllRequestDtoOverrides$ = {}));
49
+ function triggerEventToAllRequestDtoOverridesToJSON(triggerEventToAllRequestDtoOverrides) {
50
+ return JSON.stringify(exports.TriggerEventToAllRequestDtoOverrides$outboundSchema.parse(triggerEventToAllRequestDtoOverrides));
51
51
  }
52
- exports.overridesToJSON = overridesToJSON;
53
- function overridesFromJSON(jsonString) {
54
- return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.Overrides$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Overrides' from JSON`);
52
+ exports.triggerEventToAllRequestDtoOverridesToJSON = triggerEventToAllRequestDtoOverridesToJSON;
53
+ function triggerEventToAllRequestDtoOverridesFromJSON(jsonString) {
54
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.TriggerEventToAllRequestDtoOverrides$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TriggerEventToAllRequestDtoOverrides' from JSON`);
55
55
  }
56
- exports.overridesFromJSON = overridesFromJSON;
56
+ exports.triggerEventToAllRequestDtoOverridesFromJSON = triggerEventToAllRequestDtoOverridesFromJSON;
57
57
  /** @internal */
58
58
  exports.TriggerEventToAllRequestDtoActor$inboundSchema = z.union([subscriberpayloaddto_js_1.SubscriberPayloadDto$inboundSchema, z.string()]);
59
59
  /** @internal */
@@ -104,7 +104,8 @@ exports.triggerEventToAllRequestDtoTenantFromJSON = triggerEventToAllRequestDtoT
104
104
  exports.TriggerEventToAllRequestDto$inboundSchema = z.object({
105
105
  name: z.string(),
106
106
  payload: z.record(z.any()),
107
- overrides: z.lazy(() => exports.Overrides$inboundSchema).optional(),
107
+ overrides: z.lazy(() => exports.TriggerEventToAllRequestDtoOverrides$inboundSchema)
108
+ .optional(),
108
109
  transactionId: z.string().optional(),
109
110
  actor: z.union([subscriberpayloaddto_js_1.SubscriberPayloadDto$inboundSchema, z.string()]).optional(),
110
111
  tenant: z.union([tenantpayloaddto_js_1.TenantPayloadDto$inboundSchema, z.string()]).optional(),
@@ -113,7 +114,8 @@ exports.TriggerEventToAllRequestDto$inboundSchema = z.object({
113
114
  exports.TriggerEventToAllRequestDto$outboundSchema = z.object({
114
115
  name: z.string(),
115
116
  payload: z.record(z.any()),
116
- overrides: z.lazy(() => exports.Overrides$outboundSchema).optional(),
117
+ overrides: z.lazy(() => exports.TriggerEventToAllRequestDtoOverrides$outboundSchema)
118
+ .optional(),
117
119
  transactionId: z.string().optional(),
118
120
  actor: z.union([subscriberpayloaddto_js_1.SubscriberPayloadDto$outboundSchema, z.string()]).optional(),
119
121
  tenant: z.union([tenantpayloaddto_js_1.TenantPayloadDto$outboundSchema, z.string()]).optional(),
@@ -1 +1 @@
1
- {"version":3,"file":"triggereventtoallrequestdto.js","sourceRoot":"","sources":["../../src/models/components/triggereventtoallrequestdto.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,uCAAyB;AACzB,qDAAiD;AAGjD,uEAKmC;AACnC,+DAK+B;AA4D/B,gBAAgB;AACH,QAAA,uBAAuB,GAIhC,CAAC,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;AAKjB,gBAAgB;AACH,QAAA,wBAAwB,GAIjC,CAAC,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;AAEjB;;;GAGG;AACH,IAAiB,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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CAAC;AARD,kFAQC"}
1
+ {"version":3,"file":"triggereventtoallrequestdto.js","sourceRoot":"","sources":["../../src/models/components/triggereventtoallrequestdto.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,uCAAyB;AACzB,qDAAiD;AAGjD,uEAKmC;AACnC,+DAK+B;AA4D/B,gBAAgB;AACH,QAAA,kDAAkD,GAI3D,CAAC,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;AAKjB,gBAAgB;AACH,QAAA,mDAAmD,GAI5D,CAAC,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;AAEjB;;;GAGG;AACH,IAAiB,qCAAqC,CASrD;AATD,WAAiB,qCAAqC;IACpD,oFAAoF;IACvE,mDAAa,GACxB,0DAAkD,CAAC;IACrD,qFAAqF;IACxE,oDAAc,GACzB,2DAAmD,CAAC;AAGxD,CAAC,EATgB,qCAAqC,qDAArC,qCAAqC,QASrD;AAED,SAAgB,0CAA0C,CACxD,oCAA0E;IAE1E,OAAO,IAAI,CAAC,SAAS,CACnB,2DAAmD,CAAC,KAAK,CACvD,oCAAoC,CACrC,CACF,CAAC;AACJ,CAAC;AARD,gGAQC;AAED,SAAgB,4CAA4C,CAC1D,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CACJ,0DAAkD,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACzE,kEAAkE,CACnE,CAAC;AACJ,CAAC;AATD,oGASC;AAED,gBAAgB;AACH,QAAA,8CAA8C,GAIvD,CAAC,CAAC,KAAK,CAAC,CAAC,4DAAkC,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC;AAO9D,gBAAgB;AACH,QAAA,+CAA+C,GAIxD,CAAC,CAAC,KAAK,CAAC,CAAC,6DAAmC,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC;AAE/D;;;G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AAM,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,qDAA+B,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC,QAAQ,EAAE;CAC1E,CAAC,CAAC;AAEH;;;GAGG;AACH,IAAiB,4BAA4B,CAO5C;AAPD,WAAiB,4BAA4B;IAC3C,2EAA2E;IAC9D,0CAAa,GAAG,iDAAyC,CAAC;IACvE,4EAA4E;IAC/D,2CAAc,GAAG,kDAA0C,CAAC;AAG3E,CAAC,EAPgB,4BAA4B,4CAA5B,4BAA4B,QAO5C;AAED,SAAgB,iCAAiC,CAC/C,2BAAwD;IAExD,OAAO,IAAI,CAAC,SAAS,CACnB,kDAA0C,CAAC,KAAK,CAC9C,2BAA2B,CAC5B,CACF,CAAC;AACJ,CAAC;AARD,8EAQC;AAED,SAAgB,mCAAmC,CACjD,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,iDAAyC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACrE,yDAAyD,CAC1D,CAAC;AACJ,CAAC;AARD,kFAQC"}
@@ -0,0 +1,42 @@
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 WorkflowInfoDto = {
5
+ /**
6
+ * Workflow slug
7
+ */
8
+ slug: string;
9
+ /**
10
+ * Unique identifier of the workflow
11
+ */
12
+ identifier: string;
13
+ /**
14
+ * Display name of the workflow
15
+ */
16
+ name: string;
17
+ };
18
+ /** @internal */
19
+ export declare const WorkflowInfoDto$inboundSchema: z.ZodType<WorkflowInfoDto, z.ZodTypeDef, unknown>;
20
+ /** @internal */
21
+ export type WorkflowInfoDto$Outbound = {
22
+ slug: string;
23
+ identifier: string;
24
+ name: string;
25
+ };
26
+ /** @internal */
27
+ export declare const WorkflowInfoDto$outboundSchema: z.ZodType<WorkflowInfoDto$Outbound, z.ZodTypeDef, WorkflowInfoDto>;
28
+ /**
29
+ * @internal
30
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
31
+ */
32
+ export declare namespace WorkflowInfoDto$ {
33
+ /** @deprecated use `WorkflowInfoDto$inboundSchema` instead. */
34
+ const inboundSchema: z.ZodType<WorkflowInfoDto, z.ZodTypeDef, unknown>;
35
+ /** @deprecated use `WorkflowInfoDto$outboundSchema` instead. */
36
+ const outboundSchema: z.ZodType<WorkflowInfoDto$Outbound, z.ZodTypeDef, WorkflowInfoDto>;
37
+ /** @deprecated use `WorkflowInfoDto$Outbound` instead. */
38
+ type Outbound = WorkflowInfoDto$Outbound;
39
+ }
40
+ export declare function workflowInfoDtoToJSON(workflowInfoDto: WorkflowInfoDto): string;
41
+ export declare function workflowInfoDtoFromJSON(jsonString: string): SafeParseResult<WorkflowInfoDto, SDKValidationError>;
42
+ //# sourceMappingURL=workflowinfodto.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"workflowinfodto.d.ts","sourceRoot":"","sources":["../../src/models/components/workflowinfodto.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;AAErE,MAAM,MAAM,eAAe,GAAG;IAC5B;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,6BAA6B,EAAE,CAAC,CAAC,OAAO,CACnD,eAAe,EACf,CAAC,CAAC,UAAU,EACZ,OAAO,CAKP,CAAC;AAEH,gBAAgB;AAChB,MAAM,MAAM,wBAAwB,GAAG;IACrC,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,MAAM,CAAC;IACnB,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,8BAA8B,EAAE,CAAC,CAAC,OAAO,CACpD,wBAAwB,EACxB,CAAC,CAAC,UAAU,EACZ,eAAe,CAKf,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"}
@@ -0,0 +1,63 @@
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.workflowInfoDtoFromJSON = exports.workflowInfoDtoToJSON = exports.WorkflowInfoDto$ = exports.WorkflowInfoDto$outboundSchema = exports.WorkflowInfoDto$inboundSchema = void 0;
30
+ const z = __importStar(require("zod"));
31
+ const schemas_js_1 = require("../../lib/schemas.js");
32
+ /** @internal */
33
+ exports.WorkflowInfoDto$inboundSchema = z.object({
34
+ slug: z.string(),
35
+ identifier: z.string(),
36
+ name: z.string(),
37
+ });
38
+ /** @internal */
39
+ exports.WorkflowInfoDto$outboundSchema = z.object({
40
+ slug: z.string(),
41
+ identifier: z.string(),
42
+ name: z.string(),
43
+ });
44
+ /**
45
+ * @internal
46
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
47
+ */
48
+ var WorkflowInfoDto$;
49
+ (function (WorkflowInfoDto$) {
50
+ /** @deprecated use `WorkflowInfoDto$inboundSchema` instead. */
51
+ WorkflowInfoDto$.inboundSchema = exports.WorkflowInfoDto$inboundSchema;
52
+ /** @deprecated use `WorkflowInfoDto$outboundSchema` instead. */
53
+ WorkflowInfoDto$.outboundSchema = exports.WorkflowInfoDto$outboundSchema;
54
+ })(WorkflowInfoDto$ || (exports.WorkflowInfoDto$ = WorkflowInfoDto$ = {}));
55
+ function workflowInfoDtoToJSON(workflowInfoDto) {
56
+ return JSON.stringify(exports.WorkflowInfoDto$outboundSchema.parse(workflowInfoDto));
57
+ }
58
+ exports.workflowInfoDtoToJSON = workflowInfoDtoToJSON;
59
+ function workflowInfoDtoFromJSON(jsonString) {
60
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.WorkflowInfoDto$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'WorkflowInfoDto' from JSON`);
61
+ }
62
+ exports.workflowInfoDtoFromJSON = workflowInfoDtoFromJSON;
63
+ //# sourceMappingURL=workflowinfodto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"workflowinfodto.js","sourceRoot":"","sources":["../../src/models/components/workflowinfodto.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,uCAAyB;AACzB,qDAAiD;AAmBjD,gBAAgB;AACH,QAAA,6BAA6B,GAItC,CAAC,CAAC,MAAM,CAAC;IACX,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE;IACtB,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;CACjB,CAAC,CAAC;AASH,gBAAgB;AACH,QAAA,8BAA8B,GAIvC,CAAC,CAAC,MAAM,CAAC;IACX,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE;IACtB,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;CACjB,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,50 @@
1
+ import * as z from "zod";
2
+ import { Result as SafeParseResult } from "../../types/fp.js";
3
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
4
+ import { Overrides, Overrides$Outbound } from "./overrides.js";
5
+ import { PreferenceChannels, PreferenceChannels$Outbound } from "./preferencechannels.js";
6
+ import { WorkflowInfoDto, WorkflowInfoDto$Outbound } from "./workflowinfodto.js";
7
+ export type WorkflowPreferenceDto = {
8
+ /**
9
+ * Whether notifications are enabled for this workflow
10
+ */
11
+ enabled: boolean;
12
+ /**
13
+ * Channel-specific preference settings for this workflow
14
+ */
15
+ channels: PreferenceChannels;
16
+ /**
17
+ * List of preference overrides
18
+ */
19
+ overrides: Array<Overrides>;
20
+ /**
21
+ * Workflow information
22
+ */
23
+ workflow: WorkflowInfoDto;
24
+ };
25
+ /** @internal */
26
+ export declare const WorkflowPreferenceDto$inboundSchema: z.ZodType<WorkflowPreferenceDto, z.ZodTypeDef, unknown>;
27
+ /** @internal */
28
+ export type WorkflowPreferenceDto$Outbound = {
29
+ enabled: boolean;
30
+ channels: PreferenceChannels$Outbound;
31
+ overrides: Array<Overrides$Outbound>;
32
+ workflow: WorkflowInfoDto$Outbound;
33
+ };
34
+ /** @internal */
35
+ export declare const WorkflowPreferenceDto$outboundSchema: z.ZodType<WorkflowPreferenceDto$Outbound, z.ZodTypeDef, WorkflowPreferenceDto>;
36
+ /**
37
+ * @internal
38
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
39
+ */
40
+ export declare namespace WorkflowPreferenceDto$ {
41
+ /** @deprecated use `WorkflowPreferenceDto$inboundSchema` instead. */
42
+ const inboundSchema: z.ZodType<WorkflowPreferenceDto, z.ZodTypeDef, unknown>;
43
+ /** @deprecated use `WorkflowPreferenceDto$outboundSchema` instead. */
44
+ const outboundSchema: z.ZodType<WorkflowPreferenceDto$Outbound, z.ZodTypeDef, WorkflowPreferenceDto>;
45
+ /** @deprecated use `WorkflowPreferenceDto$Outbound` instead. */
46
+ type Outbound = WorkflowPreferenceDto$Outbound;
47
+ }
48
+ export declare function workflowPreferenceDtoToJSON(workflowPreferenceDto: WorkflowPreferenceDto): string;
49
+ export declare function workflowPreferenceDtoFromJSON(jsonString: string): SafeParseResult<WorkflowPreferenceDto, SDKValidationError>;
50
+ //# sourceMappingURL=workflowpreferencedto.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"workflowpreferencedto.d.ts","sourceRoot":"","sources":["../../src/models/components/workflowpreferencedto.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,SAAS,EAET,kBAAkB,EAEnB,MAAM,gBAAgB,CAAC;AACxB,OAAO,EACL,kBAAkB,EAElB,2BAA2B,EAE5B,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACL,eAAe,EAEf,wBAAwB,EAEzB,MAAM,sBAAsB,CAAC;AAE9B,MAAM,MAAM,qBAAqB,GAAG;IAClC;;OAEG;IACH,OAAO,EAAE,OAAO,CAAC;IACjB;;OAEG;IACH,QAAQ,EAAE,kBAAkB,CAAC;IAC7B;;OAEG;IACH,SAAS,EAAE,KAAK,CAAC,SAAS,CAAC,CAAC;IAC5B;;OAEG;IACH,QAAQ,EAAE,eAAe,CAAC;CAC3B,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,mCAAmC,EAAE,CAAC,CAAC,OAAO,CACzD,qBAAqB,EACrB,CAAC,CAAC,UAAU,EACZ,OAAO,CAMP,CAAC;AAEH,gBAAgB;AAChB,MAAM,MAAM,8BAA8B,GAAG;IAC3C,OAAO,EAAE,OAAO,CAAC;IACjB,QAAQ,EAAE,2BAA2B,CAAC;IACtC,SAAS,EAAE,KAAK,CAAC,kBAAkB,CAAC,CAAC;IACrC,QAAQ,EAAE,wBAAwB,CAAC;CACpC,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,oCAAoC,EAAE,CAAC,CAAC,OAAO,CAC1D,8BAA8B,EAC9B,CAAC,CAAC,UAAU,EACZ,qBAAqB,CAMrB,CAAC;AAEH;;;GAGG;AACH,yBAAiB,sBAAsB,CAAC;IACtC,qEAAqE;IAC9D,MAAM,aAAa,yDAAsC,CAAC;IACjE,sEAAsE;IAC/D,MAAM,cAAc,gFAAuC,CAAC;IACnE,gEAAgE;IAChE,KAAY,QAAQ,GAAG,8BAA8B,CAAC;CACvD;AAED,wBAAgB,2BAA2B,CACzC,qBAAqB,EAAE,qBAAqB,GAC3C,MAAM,CAIR;AAED,wBAAgB,6BAA6B,CAC3C,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,qBAAqB,EAAE,kBAAkB,CAAC,CAM5D"}
@@ -0,0 +1,68 @@
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.workflowPreferenceDtoFromJSON = exports.workflowPreferenceDtoToJSON = exports.WorkflowPreferenceDto$ = exports.WorkflowPreferenceDto$outboundSchema = exports.WorkflowPreferenceDto$inboundSchema = void 0;
30
+ const z = __importStar(require("zod"));
31
+ const schemas_js_1 = require("../../lib/schemas.js");
32
+ const overrides_js_1 = require("./overrides.js");
33
+ const preferencechannels_js_1 = require("./preferencechannels.js");
34
+ const workflowinfodto_js_1 = require("./workflowinfodto.js");
35
+ /** @internal */
36
+ exports.WorkflowPreferenceDto$inboundSchema = z.object({
37
+ enabled: z.boolean(),
38
+ channels: preferencechannels_js_1.PreferenceChannels$inboundSchema,
39
+ overrides: z.array(overrides_js_1.Overrides$inboundSchema),
40
+ workflow: workflowinfodto_js_1.WorkflowInfoDto$inboundSchema,
41
+ });
42
+ /** @internal */
43
+ exports.WorkflowPreferenceDto$outboundSchema = z.object({
44
+ enabled: z.boolean(),
45
+ channels: preferencechannels_js_1.PreferenceChannels$outboundSchema,
46
+ overrides: z.array(overrides_js_1.Overrides$outboundSchema),
47
+ workflow: workflowinfodto_js_1.WorkflowInfoDto$outboundSchema,
48
+ });
49
+ /**
50
+ * @internal
51
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
52
+ */
53
+ var WorkflowPreferenceDto$;
54
+ (function (WorkflowPreferenceDto$) {
55
+ /** @deprecated use `WorkflowPreferenceDto$inboundSchema` instead. */
56
+ WorkflowPreferenceDto$.inboundSchema = exports.WorkflowPreferenceDto$inboundSchema;
57
+ /** @deprecated use `WorkflowPreferenceDto$outboundSchema` instead. */
58
+ WorkflowPreferenceDto$.outboundSchema = exports.WorkflowPreferenceDto$outboundSchema;
59
+ })(WorkflowPreferenceDto$ || (exports.WorkflowPreferenceDto$ = WorkflowPreferenceDto$ = {}));
60
+ function workflowPreferenceDtoToJSON(workflowPreferenceDto) {
61
+ return JSON.stringify(exports.WorkflowPreferenceDto$outboundSchema.parse(workflowPreferenceDto));
62
+ }
63
+ exports.workflowPreferenceDtoToJSON = workflowPreferenceDtoToJSON;
64
+ function workflowPreferenceDtoFromJSON(jsonString) {
65
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.WorkflowPreferenceDto$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'WorkflowPreferenceDto' from JSON`);
66
+ }
67
+ exports.workflowPreferenceDtoFromJSON = workflowPreferenceDtoFromJSON;
68
+ //# sourceMappingURL=workflowpreferencedto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"workflowpreferencedto.js","sourceRoot":"","sources":["../../src/models/components/workflowpreferencedto.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,uCAAyB;AACzB,qDAAiD;AAGjD,iDAKwB;AACxB,mEAKiC;AACjC,6DAK8B;AAqB9B,gBAAgB;AACH,QAAA,mCAAmC,GAI5C,CAAC,CAAC,MAAM,CAAC;IACX,OAAO,EAAE,CAAC,CAAC,OAAO,EAAE;IACpB,QAAQ,EAAE,wDAAgC;IAC1C,SAAS,EAAE,CAAC,CAAC,KAAK,CAAC,sCAAuB,CAAC;IAC3C,QAAQ,EAAE,kDAA6B;CACxC,CAAC,CAAC;AAUH,gBAAgB;AACH,QAAA,oCAAoC,GAI7C,CAAC,CAAC,MAAM,CAAC;IACX,OAAO,EAAE,CAAC,CAAC,OAAO,EAAE;IACpB,QAAQ,EAAE,yDAAiC;IAC3C,SAAS,EAAE,CAAC,CAAC,KAAK,CAAC,uCAAwB,CAAC;IAC5C,QAAQ,EAAE,mDAA8B;CACzC,CAAC,CAAC;AAEH;;;GAGG;AACH,IAAiB,sBAAsB,CAOtC;AAPD,WAAiB,sBAAsB;IACrC,qEAAqE;IACxD,oCAAa,GAAG,2CAAmC,CAAC;IACjE,sEAAsE;IACzD,qCAAc,GAAG,4CAAoC,CAAC;AAGrE,CAAC,EAPgB,sBAAsB,sCAAtB,sBAAsB,QAOtC;AAED,SAAgB,2BAA2B,CACzC,qBAA4C;IAE5C,OAAO,IAAI,CAAC,SAAS,CACnB,4CAAoC,CAAC,KAAK,CAAC,qBAAqB,CAAC,CAClE,CAAC;AACJ,CAAC;AAND,kEAMC;AAED,SAAgB,6BAA6B,CAC3C,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,2CAAmC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAC/D,mDAAmD,CACpD,CAAC;AACJ,CAAC;AARD,sEAQC"}
@@ -17,9 +17,11 @@ export * from "./notificationscontrollergetactivitystats.js";
17
17
  export * from "./notificationscontrollergetnotification.js";
18
18
  export * from "./notificationscontrollerlistnotifications.js";
19
19
  export * from "./subscriberscontrollergetsubscriber.js";
20
+ export * from "./subscriberscontrollergetsubscriberpreferences.js";
20
21
  export * from "./subscriberscontrollerpatchsubscriber.js";
21
22
  export * from "./subscriberscontrollerremovesubscriber.js";
22
23
  export * from "./subscriberscontrollersearchsubscribers.js";
24
+ export * from "./subscriberscontrollerupdatesubscriberpreferences.js";
23
25
  export * from "./subscribersv1controllerbulkcreatesubscribers.js";
24
26
  export * from "./subscribersv1controllerchataccessoauth.js";
25
27
  export * from "./subscribersv1controllerchatoauthcallback.js";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/models/operations/index.ts"],"names":[],"mappings":"AAIA,cAAc,0CAA0C,CAAC;AACzD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,kCAAkC,CAAC;AACjD,cAAc,8CAA8C,CAAC;AAC7D,cAAc,kDAAkD,CAAC;AACjE,cAAc,oDAAoD,CAAC;AACnE,cAAc,6CAA6C,CAAC;AAC5D,cAAc,8CAA8C,CAAC;AAC7D,cAAc,oDAAoD,CAAC;AACnE,cAAc,kDAAkD,CAAC;AACjE,cAAc,sCAAsC,CAAC;AACrD,cAAc,sDAAsD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;AACxD,cAAc,iCAAiC,CAAC;AAChD,cAAc,wCAAwC,CAAC;AACvD,cAAc,kCAAkC,CAAC"}
@@ -36,9 +36,11 @@ __exportStar(require("./notificationscontrollergetactivitystats.js"), exports);
36
36
  __exportStar(require("./notificationscontrollergetnotification.js"), exports);
37
37
  __exportStar(require("./notificationscontrollerlistnotifications.js"), exports);
38
38
  __exportStar(require("./subscriberscontrollergetsubscriber.js"), exports);
39
+ __exportStar(require("./subscriberscontrollergetsubscriberpreferences.js"), exports);
39
40
  __exportStar(require("./subscriberscontrollerpatchsubscriber.js"), exports);
40
41
  __exportStar(require("./subscriberscontrollerremovesubscriber.js"), exports);
41
42
  __exportStar(require("./subscriberscontrollersearchsubscribers.js"), exports);
43
+ __exportStar(require("./subscriberscontrollerupdatesubscriberpreferences.js"), exports);
42
44
  __exportStar(require("./subscribersv1controllerbulkcreatesubscribers.js"), exports);
43
45
  __exportStar(require("./subscribersv1controllerchataccessoauth.js"), exports);
44
46
  __exportStar(require("./subscribersv1controllerchatoauthcallback.js"), exports);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/models/operations/index.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;AAEH,2EAAyD;AACzD,8DAA4C;AAC5C,+DAA6C;AAC7C,mEAAiD;AACjD,+EAA6D;AAC7D,mFAAiE;AACjE,qFAAmE;AACnE,8EAA4D;AAC5D,+EAA6D;AAC7D,qFAAmE;AACnE,mFAAiE;AACjE,uEAAqD;AACrD,uFAAqE;AACrE,qEAAmD;AACnD,oFAAkE;AAClE,+EAA6D;AAC7D,8EAA4D;AAC5D,gFAA8D;AAC9D,0EAAwD;AACxD,4EAA0D;AAC1D,6EAA2D;AAC3D,8EAA4D;AAC5D,oFAAkE;AAClE,8EAA4D;AAC5D,gFAA8D;AAC9D,+EAA6D;AAC7D,0FAAwE;AACxE,mFAAiE;AACjE,4EAA0D;AAC1D,6FAA2E;AAC3E,6EAA2D;AAC3D,wFAAsE;AACtE,8EAA4D;AAC5D,+EAA6D;AAC7D,kFAAgE;AAChE,6EAA2D;AAC3D,sFAAoE;AACpE,+EAA6D;AAC7D,+EAA6D;AAC7D,sFAAoE;AACpE,gGAA8E;AAC9E,yFAAuE;AACvE,yFAAuE;AACvE,8DAA4C;AAC5C,mEAAiD;AACjD,mEAAiD;AACjD,gEAA8C;AAC9C,0EAAwD;AACxD,kEAAgD;AAChD,yEAAuD;AACvD,mEAAiD"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/models/operations/index.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;AAEH,2EAAyD;AACzD,8DAA4C;AAC5C,+DAA6C;AAC7C,mEAAiD;AACjD,+EAA6D;AAC7D,mFAAiE;AACjE,qFAAmE;AACnE,8EAA4D;AAC5D,+EAA6D;AAC7D,qFAAmE;AACnE,mFAAiE;AACjE,uEAAqD;AACrD,uFAAqE;AACrE,qEAAmD;AACnD,oFAAkE;AAClE,+EAA6D;AAC7D,8EAA4D;AAC5D,gFAA8D;AAC9D,0EAAwD;AACxD,qFAAmE;AACnE,4EAA0D;AAC1D,6EAA2D;AAC3D,8EAA4D;AAC5D,wFAAsE;AACtE,oFAAkE;AAClE,8EAA4D;AAC5D,gFAA8D;AAC9D,+EAA6D;AAC7D,0FAAwE;AACxE,mFAAiE;AACjE,4EAA0D;AAC1D,6FAA2E;AAC3E,6EAA2D;AAC3D,wFAAsE;AACtE,8EAA4D;AAC5D,+EAA6D;AAC7D,kFAAgE;AAChE,6EAA2D;AAC3D,sFAAoE;AACpE,+EAA6D;AAC7D,+EAA6D;AAC7D,sFAAoE;AACpE,gGAA8E;AAC9E,yFAAuE;AACvE,yFAAuE;AACvE,8DAA4C;AAC5C,mEAAiD;AACjD,mEAAiD;AACjD,gEAA8C;AAC9C,0EAAwD;AACxD,kEAAgD;AAChD,yEAAuD;AACvD,mEAAiD"}
@@ -0,0 +1,66 @@
1
+ import * as z from "zod";
2
+ import { Result as SafeParseResult } from "../../types/fp.js";
3
+ import * as components from "../components/index.js";
4
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
5
+ export type SubscribersControllerGetSubscriberPreferencesRequest = {
6
+ subscriberId: string;
7
+ /**
8
+ * A header for idempotency purposes
9
+ */
10
+ idempotencyKey?: string | undefined;
11
+ };
12
+ export type SubscribersControllerGetSubscriberPreferencesResponse = {
13
+ headers: {
14
+ [k: string]: Array<string>;
15
+ };
16
+ result: components.GetSubscriberPreferencesDto;
17
+ };
18
+ /** @internal */
19
+ export declare const SubscribersControllerGetSubscriberPreferencesRequest$inboundSchema: z.ZodType<SubscribersControllerGetSubscriberPreferencesRequest, z.ZodTypeDef, unknown>;
20
+ /** @internal */
21
+ export type SubscribersControllerGetSubscriberPreferencesRequest$Outbound = {
22
+ subscriberId: string;
23
+ "idempotency-key"?: string | undefined;
24
+ };
25
+ /** @internal */
26
+ export declare const SubscribersControllerGetSubscriberPreferencesRequest$outboundSchema: z.ZodType<SubscribersControllerGetSubscriberPreferencesRequest$Outbound, z.ZodTypeDef, SubscribersControllerGetSubscriberPreferencesRequest>;
27
+ /**
28
+ * @internal
29
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
30
+ */
31
+ export declare namespace SubscribersControllerGetSubscriberPreferencesRequest$ {
32
+ /** @deprecated use `SubscribersControllerGetSubscriberPreferencesRequest$inboundSchema` instead. */
33
+ const inboundSchema: z.ZodType<SubscribersControllerGetSubscriberPreferencesRequest, z.ZodTypeDef, unknown>;
34
+ /** @deprecated use `SubscribersControllerGetSubscriberPreferencesRequest$outboundSchema` instead. */
35
+ const outboundSchema: z.ZodType<SubscribersControllerGetSubscriberPreferencesRequest$Outbound, z.ZodTypeDef, SubscribersControllerGetSubscriberPreferencesRequest>;
36
+ /** @deprecated use `SubscribersControllerGetSubscriberPreferencesRequest$Outbound` instead. */
37
+ type Outbound = SubscribersControllerGetSubscriberPreferencesRequest$Outbound;
38
+ }
39
+ export declare function subscribersControllerGetSubscriberPreferencesRequestToJSON(subscribersControllerGetSubscriberPreferencesRequest: SubscribersControllerGetSubscriberPreferencesRequest): string;
40
+ export declare function subscribersControllerGetSubscriberPreferencesRequestFromJSON(jsonString: string): SafeParseResult<SubscribersControllerGetSubscriberPreferencesRequest, SDKValidationError>;
41
+ /** @internal */
42
+ export declare const SubscribersControllerGetSubscriberPreferencesResponse$inboundSchema: z.ZodType<SubscribersControllerGetSubscriberPreferencesResponse, z.ZodTypeDef, unknown>;
43
+ /** @internal */
44
+ export type SubscribersControllerGetSubscriberPreferencesResponse$Outbound = {
45
+ Headers: {
46
+ [k: string]: Array<string>;
47
+ };
48
+ Result: components.GetSubscriberPreferencesDto$Outbound;
49
+ };
50
+ /** @internal */
51
+ export declare const SubscribersControllerGetSubscriberPreferencesResponse$outboundSchema: z.ZodType<SubscribersControllerGetSubscriberPreferencesResponse$Outbound, z.ZodTypeDef, SubscribersControllerGetSubscriberPreferencesResponse>;
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 declare namespace SubscribersControllerGetSubscriberPreferencesResponse$ {
57
+ /** @deprecated use `SubscribersControllerGetSubscriberPreferencesResponse$inboundSchema` instead. */
58
+ const inboundSchema: z.ZodType<SubscribersControllerGetSubscriberPreferencesResponse, z.ZodTypeDef, unknown>;
59
+ /** @deprecated use `SubscribersControllerGetSubscriberPreferencesResponse$outboundSchema` instead. */
60
+ const outboundSchema: z.ZodType<SubscribersControllerGetSubscriberPreferencesResponse$Outbound, z.ZodTypeDef, SubscribersControllerGetSubscriberPreferencesResponse>;
61
+ /** @deprecated use `SubscribersControllerGetSubscriberPreferencesResponse$Outbound` instead. */
62
+ type Outbound = SubscribersControllerGetSubscriberPreferencesResponse$Outbound;
63
+ }
64
+ export declare function subscribersControllerGetSubscriberPreferencesResponseToJSON(subscribersControllerGetSubscriberPreferencesResponse: SubscribersControllerGetSubscriberPreferencesResponse): string;
65
+ export declare function subscribersControllerGetSubscriberPreferencesResponseFromJSON(jsonString: string): SafeParseResult<SubscribersControllerGetSubscriberPreferencesResponse, SDKValidationError>;
66
+ //# sourceMappingURL=subscriberscontrollergetsubscriberpreferences.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"subscriberscontrollergetsubscriberpreferences.d.ts","sourceRoot":"","sources":["../../src/models/operations/subscriberscontrollergetsubscriberpreferences.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAGzB,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,KAAK,UAAU,MAAM,wBAAwB,CAAC;AACrD,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE,MAAM,MAAM,oDAAoD,GAAG;IACjE,YAAY,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CACrC,CAAC;AAEF,MAAM,MAAM,qDAAqD,GAAG;IAClE,OAAO,EAAE;QAAE,CAAC,CAAC,EAAE,MAAM,GAAG,KAAK,CAAC,MAAM,CAAC,CAAA;KAAE,CAAC;IACxC,MAAM,EAAE,UAAU,CAAC,2BAA2B,CAAC;CAChD,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,kEAAkE,EAC7E,CAAC,CAAC,OAAO,CACP,oDAAoD,EACpD,CAAC,CAAC,UAAU,EACZ,OAAO,CAQP,CAAC;AAEL,gBAAgB;AAChB,MAAM,MAAM,6DAA6D,GAAG;IAC1E,YAAY,EAAE,MAAM,CAAC;IACrB,iBAAiB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CACxC,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,mEAAmE,EAC9E,CAAC,CAAC,OAAO,CACP,6DAA6D,EAC7D,CAAC,CAAC,UAAU,EACZ,oDAAoD,CAQpD,CAAC;AAEL;;;GAGG;AACH,yB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://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.subscribersControllerGetSubscriberPreferencesResponseFromJSON = exports.subscribersControllerGetSubscriberPreferencesResponseToJSON = exports.SubscribersControllerGetSubscriberPreferencesResponse$ = exports.SubscribersControllerGetSubscriberPreferencesResponse$outboundSchema = exports.SubscribersControllerGetSubscriberPreferencesResponse$inboundSchema = exports.subscribersControllerGetSubscriberPreferencesRequestFromJSON = exports.subscribersControllerGetSubscriberPreferencesRequestToJSON = exports.SubscribersControllerGetSubscriberPreferencesRequest$ = exports.SubscribersControllerGetSubscriberPreferencesRequest$outboundSchema = exports.SubscribersControllerGetSubscriberPreferencesRequest$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
+ const components = __importStar(require("../components/index.js"));
34
+ /** @internal */
35
+ exports.SubscribersControllerGetSubscriberPreferencesRequest$inboundSchema = z.object({
36
+ subscriberId: z.string(),
37
+ "idempotency-key": z.string().optional(),
38
+ }).transform((v) => {
39
+ return (0, primitives_js_1.remap)(v, {
40
+ "idempotency-key": "idempotencyKey",
41
+ });
42
+ });
43
+ /** @internal */
44
+ exports.SubscribersControllerGetSubscriberPreferencesRequest$outboundSchema = z.object({
45
+ subscriberId: z.string(),
46
+ idempotencyKey: z.string().optional(),
47
+ }).transform((v) => {
48
+ return (0, primitives_js_1.remap)(v, {
49
+ idempotencyKey: "idempotency-key",
50
+ });
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
+ var SubscribersControllerGetSubscriberPreferencesRequest$;
57
+ (function (SubscribersControllerGetSubscriberPreferencesRequest$) {
58
+ /** @deprecated use `SubscribersControllerGetSubscriberPreferencesRequest$inboundSchema` instead. */
59
+ SubscribersControllerGetSubscriberPreferencesRequest$.inboundSchema = exports.SubscribersControllerGetSubscriberPreferencesRequest$inboundSchema;
60
+ /** @deprecated use `SubscribersControllerGetSubscriberPreferencesRequest$outboundSchema` instead. */
61
+ SubscribersControllerGetSubscriberPreferencesRequest$.outboundSchema = exports.SubscribersControllerGetSubscriberPreferencesRequest$outboundSchema;
62
+ })(SubscribersControllerGetSubscriberPreferencesRequest$ || (exports.SubscribersControllerGetSubscriberPreferencesRequest$ = SubscribersControllerGetSubscriberPreferencesRequest$ = {}));
63
+ function subscribersControllerGetSubscriberPreferencesRequestToJSON(subscribersControllerGetSubscriberPreferencesRequest) {
64
+ return JSON.stringify(exports.SubscribersControllerGetSubscriberPreferencesRequest$outboundSchema.parse(subscribersControllerGetSubscriberPreferencesRequest));
65
+ }
66
+ exports.subscribersControllerGetSubscriberPreferencesRequestToJSON = subscribersControllerGetSubscriberPreferencesRequestToJSON;
67
+ function subscribersControllerGetSubscriberPreferencesRequestFromJSON(jsonString) {
68
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.SubscribersControllerGetSubscriberPreferencesRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'SubscribersControllerGetSubscriberPreferencesRequest' from JSON`);
69
+ }
70
+ exports.subscribersControllerGetSubscriberPreferencesRequestFromJSON = subscribersControllerGetSubscriberPreferencesRequestFromJSON;
71
+ /** @internal */
72
+ exports.SubscribersControllerGetSubscriberPreferencesResponse$inboundSchema = z.object({
73
+ Headers: z.record(z.array(z.string())),
74
+ Result: components.GetSubscriberPreferencesDto$inboundSchema,
75
+ }).transform((v) => {
76
+ return (0, primitives_js_1.remap)(v, {
77
+ "Headers": "headers",
78
+ "Result": "result",
79
+ });
80
+ });
81
+ /** @internal */
82
+ exports.SubscribersControllerGetSubscriberPreferencesResponse$outboundSchema = z.object({
83
+ headers: z.record(z.array(z.string())),
84
+ result: components.GetSubscriberPreferencesDto$outboundSchema,
85
+ }).transform((v) => {
86
+ return (0, primitives_js_1.remap)(v, {
87
+ headers: "Headers",
88
+ result: "Result",
89
+ });
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 SubscribersControllerGetSubscriberPreferencesResponse$;
96
+ (function (SubscribersControllerGetSubscriberPreferencesResponse$) {
97
+ /** @deprecated use `SubscribersControllerGetSubscriberPreferencesResponse$inboundSchema` instead. */
98
+ SubscribersControllerGetSubscriberPreferencesResponse$.inboundSchema = exports.SubscribersControllerGetSubscriberPreferencesResponse$inboundSchema;
99
+ /** @deprecated use `SubscribersControllerGetSubscriberPreferencesResponse$outboundSchema` instead. */
100
+ SubscribersControllerGetSubscriberPreferencesResponse$.outboundSchema = exports.SubscribersControllerGetSubscriberPreferencesResponse$outboundSchema;
101
+ })(SubscribersControllerGetSubscriberPreferencesResponse$ || (exports.SubscribersControllerGetSubscriberPreferencesResponse$ = SubscribersControllerGetSubscriberPreferencesResponse$ = {}));
102
+ function subscribersControllerGetSubscriberPreferencesResponseToJSON(subscribersControllerGetSubscriberPreferencesResponse) {
103
+ return JSON.stringify(exports.SubscribersControllerGetSubscriberPreferencesResponse$outboundSchema.parse(subscribersControllerGetSubscriberPreferencesResponse));
104
+ }
105
+ exports.subscribersControllerGetSubscriberPreferencesResponseToJSON = subscribersControllerGetSubscriberPreferencesResponseToJSON;
106
+ function subscribersControllerGetSubscriberPreferencesResponseFromJSON(jsonString) {
107
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.SubscribersControllerGetSubscriberPreferencesResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'SubscribersControllerGetSubscriberPreferencesResponse' from JSON`);
108
+ }
109
+ exports.subscribersControllerGetSubscriberPreferencesResponseFromJSON = subscribersControllerGetSubscriberPreferencesResponseFromJSON;
110
+ //# sourceMappingURL=subscriberscontrollergetsubscriberpreferences.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"subscriberscontrollergetsubscriberpreferences.js","sourceRoot":"","sources":["../../src/models/operations/subscriberscontrollergetsubscriberpreferences.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,uCAAyB;AACzB,2DAA0D;AAC1D,qDAAiD;AAEjD,mEAAqD;AAgBrD,gBAAgB;AACH,QAAA,kEAAkE,GAKzE,CAAC,CAAC,MAAM,CAAC;IACX,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE;IACxB,iBAAiB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CACzC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,iBAAiB,EAAE,gBAAgB;KACpC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAQL,gBAAgB;AACH,QAAA,mEAAmE,GAK1E,CAAC,CAAC,MAAM,CAAC;IACX,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE;IACxB,cAAc,EAAE,CAAC,CAAC,MA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