@novu/api 3.12.0-rc.0 → 3.13.0

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 (242) hide show
  1. package/README.md +25 -23
  2. package/_speakeasy/.github/action-inputs-config.json +53 -0
  3. package/_speakeasy/.github/action-security-config.json +88 -0
  4. package/examples/package-lock.json +1 -1
  5. package/funcs/channelConnectionsCreate.d.ts +1 -1
  6. package/funcs/channelConnectionsCreate.js +1 -1
  7. package/funcs/channelConnectionsDelete.d.ts +1 -1
  8. package/funcs/channelConnectionsDelete.js +1 -1
  9. package/funcs/channelConnectionsList.d.ts +2 -2
  10. package/funcs/channelConnectionsList.js +2 -2
  11. package/funcs/channelConnectionsRetrieve.d.ts +1 -1
  12. package/funcs/channelConnectionsRetrieve.js +1 -1
  13. package/funcs/channelConnectionsUpdate.d.ts +1 -1
  14. package/funcs/channelConnectionsUpdate.js +1 -1
  15. package/funcs/channelEndpointsCreate.d.ts +1 -1
  16. package/funcs/channelEndpointsCreate.js +1 -1
  17. package/funcs/channelEndpointsDelete.d.ts +1 -1
  18. package/funcs/channelEndpointsDelete.js +1 -1
  19. package/funcs/channelEndpointsList.d.ts +2 -2
  20. package/funcs/channelEndpointsList.js +2 -2
  21. package/funcs/channelEndpointsRetrieve.d.ts +1 -1
  22. package/funcs/channelEndpointsRetrieve.js +1 -1
  23. package/funcs/channelEndpointsUpdate.d.ts +1 -1
  24. package/funcs/channelEndpointsUpdate.js +1 -1
  25. package/funcs/notificationsList.js +1 -0
  26. package/funcs/notificationsList.js.map +1 -1
  27. package/funcs/subscribersPreferencesList.d.ts +1 -1
  28. package/funcs/subscribersPreferencesList.d.ts.map +1 -1
  29. package/funcs/subscribersPreferencesList.js +5 -9
  30. package/funcs/subscribersPreferencesList.js.map +1 -1
  31. package/funcs/subscribersTopicsList.js +1 -0
  32. package/funcs/subscribersTopicsList.js.map +1 -1
  33. package/funcs/topicsSubscriptionsGetSubscription.d.ts +18 -0
  34. package/funcs/topicsSubscriptionsGetSubscription.d.ts.map +1 -0
  35. package/funcs/topicsSubscriptionsGetSubscription.js +160 -0
  36. package/funcs/topicsSubscriptionsGetSubscription.js.map +1 -0
  37. package/funcs/topicsSubscriptionsList.js +1 -0
  38. package/funcs/topicsSubscriptionsList.js.map +1 -1
  39. package/funcs/topicsSubscriptionsUpdate.d.ts +1 -1
  40. package/funcs/topicsSubscriptionsUpdate.js +6 -3
  41. package/funcs/topicsSubscriptionsUpdate.js.map +1 -1
  42. package/funcs/trigger.d.ts +1 -1
  43. package/funcs/trigger.js +1 -1
  44. package/jsr.json +1 -1
  45. package/lib/config.d.ts +4 -4
  46. package/lib/config.js +4 -4
  47. package/lib/config.js.map +1 -1
  48. package/lib/sdks.js +2 -2
  49. package/lib/sdks.js.map +1 -1
  50. package/models/components/activitynotificationjobresponsedto.d.ts +4 -4
  51. package/models/components/activitynotificationjobresponsedto.d.ts.map +1 -1
  52. package/models/components/activitynotificationjobresponsedto.js +6 -7
  53. package/models/components/activitynotificationjobresponsedto.js.map +1 -1
  54. package/models/components/bulkupdatesubscriberpreferencesdto.d.ts +34 -0
  55. package/models/components/bulkupdatesubscriberpreferencesdto.d.ts.map +1 -1
  56. package/models/components/bulkupdatesubscriberpreferencesdto.js +17 -1
  57. package/models/components/bulkupdatesubscriberpreferencesdto.js.map +1 -1
  58. package/models/components/createchannelconnectionrequestdto.d.ts +10 -10
  59. package/models/components/createchannelconnectionrequestdto.d.ts.map +1 -1
  60. package/models/components/createchannelconnectionrequestdto.js +16 -12
  61. package/models/components/createchannelconnectionrequestdto.js.map +1 -1
  62. package/models/components/createslackchannelendpointdto.d.ts +8 -8
  63. package/models/components/createslackchannelendpointdto.d.ts.map +1 -1
  64. package/models/components/createslackchannelendpointdto.js +13 -7
  65. package/models/components/createslackchannelendpointdto.js.map +1 -1
  66. package/models/components/createtopicsubscriptionsrequestdto.d.ts +34 -0
  67. package/models/components/createtopicsubscriptionsrequestdto.d.ts.map +1 -1
  68. package/models/components/createtopicsubscriptionsrequestdto.js +23 -1
  69. package/models/components/createtopicsubscriptionsrequestdto.js.map +1 -1
  70. package/models/components/delaystepresponsedto.d.ts +1 -1
  71. package/models/components/delaystepresponsedto.d.ts.map +1 -1
  72. package/models/components/emailstepresponsedto.d.ts +3 -3
  73. package/models/components/emailstepresponsedto.d.ts.map +1 -1
  74. package/models/components/generatechatoauthurlrequestdto.d.ts +1 -1
  75. package/models/components/inappcontroldto.d.ts +1 -1
  76. package/models/components/inappstepresponsedto.d.ts +2 -2
  77. package/models/components/inappstepresponsedto.d.ts.map +1 -1
  78. package/models/components/index.d.ts +1 -0
  79. package/models/components/index.d.ts.map +1 -1
  80. package/models/components/index.js +1 -0
  81. package/models/components/index.js.map +1 -1
  82. package/models/components/messageactionresult.d.ts +3 -8
  83. package/models/components/messageactionresult.d.ts.map +1 -1
  84. package/models/components/messageactionresult.js +2 -8
  85. package/models/components/messageactionresult.js.map +1 -1
  86. package/models/components/messageresponsedto.d.ts +6 -16
  87. package/models/components/messageresponsedto.d.ts.map +1 -1
  88. package/models/components/messageresponsedto.js +3 -15
  89. package/models/components/messageresponsedto.js.map +1 -1
  90. package/models/components/notificationfeeditemdto.d.ts +4 -0
  91. package/models/components/notificationfeeditemdto.d.ts.map +1 -1
  92. package/models/components/notificationfeeditemdto.js +1 -0
  93. package/models/components/notificationfeeditemdto.js.map +1 -1
  94. package/models/components/patchsubscriberpreferencesdto.d.ts +34 -0
  95. package/models/components/patchsubscriberpreferencesdto.d.ts.map +1 -1
  96. package/models/components/patchsubscriberpreferencesdto.js +19 -1
  97. package/models/components/patchsubscriberpreferencesdto.js.map +1 -1
  98. package/models/components/redirectdto.d.ts +1 -1
  99. package/models/components/subscriberworkflowpreferencedto.d.ts +4 -0
  100. package/models/components/subscriberworkflowpreferencedto.d.ts.map +1 -1
  101. package/models/components/subscriberworkflowpreferencedto.js +1 -0
  102. package/models/components/subscriberworkflowpreferencedto.js.map +1 -1
  103. package/models/components/subscriptiondetailsresponsedto.d.ts +30 -0
  104. package/models/components/subscriptiondetailsresponsedto.d.ts.map +1 -0
  105. package/models/components/{createtopicsubscriptionsresponsedto.js → subscriptiondetailsresponsedto.js} +12 -12
  106. package/models/components/subscriptiondetailsresponsedto.js.map +1 -0
  107. package/models/components/subscriptiondto.d.ts +4 -0
  108. package/models/components/subscriptiondto.d.ts.map +1 -1
  109. package/models/components/subscriptiondto.js +1 -0
  110. package/models/components/subscriptiondto.js.map +1 -1
  111. package/models/components/subscriptionresponsedto.d.ts +4 -0
  112. package/models/components/subscriptionresponsedto.d.ts.map +1 -1
  113. package/models/components/subscriptionresponsedto.js +1 -0
  114. package/models/components/subscriptionresponsedto.js.map +1 -1
  115. package/models/components/throttlestepresponsedto.d.ts +2 -2
  116. package/models/components/throttlestepresponsedto.d.ts.map +1 -1
  117. package/models/components/topicsubscriptionresponsedto.d.ts +8 -0
  118. package/models/components/topicsubscriptionresponsedto.d.ts.map +1 -1
  119. package/models/components/topicsubscriptionresponsedto.js +2 -0
  120. package/models/components/topicsubscriptionresponsedto.js.map +1 -1
  121. package/models/components/triggereventrequestdto.d.ts +2 -2
  122. package/models/components/workflowresponsedto.d.ts +2 -2
  123. package/models/components/workflowresponsedto.d.ts.map +1 -1
  124. package/models/operations/inboundwebhookscontrollerhandlewebhook.d.ts +6 -2
  125. package/models/operations/inboundwebhookscontrollerhandlewebhook.d.ts.map +1 -1
  126. package/models/operations/inboundwebhookscontrollerhandlewebhook.js +1 -1
  127. package/models/operations/inboundwebhookscontrollerhandlewebhook.js.map +1 -1
  128. package/models/operations/index.d.ts +1 -0
  129. package/models/operations/index.d.ts.map +1 -1
  130. package/models/operations/index.js +1 -0
  131. package/models/operations/index.js.map +1 -1
  132. package/models/operations/notificationscontrollerlistnotifications.d.ts +5 -0
  133. package/models/operations/notificationscontrollerlistnotifications.d.ts.map +1 -1
  134. package/models/operations/notificationscontrollerlistnotifications.js +1 -0
  135. package/models/operations/notificationscontrollerlistnotifications.js.map +1 -1
  136. package/models/operations/subscriberscontrollergetsubscriberpreferences.d.ts +5 -0
  137. package/models/operations/subscriberscontrollergetsubscriberpreferences.d.ts.map +1 -1
  138. package/models/operations/subscriberscontrollergetsubscriberpreferences.js +1 -0
  139. package/models/operations/subscriberscontrollergetsubscriberpreferences.js.map +1 -1
  140. package/models/operations/subscriberscontrollerlistsubscribertopics.d.ts +5 -0
  141. package/models/operations/subscriberscontrollerlistsubscribertopics.d.ts.map +1 -1
  142. package/models/operations/subscriberscontrollerlistsubscribertopics.js +1 -0
  143. package/models/operations/subscriberscontrollerlistsubscribertopics.js.map +1 -1
  144. package/models/operations/topicscontrollergettopicsubscription.d.ts +37 -0
  145. package/models/operations/topicscontrollergettopicsubscription.d.ts.map +1 -0
  146. package/models/operations/topicscontrollergettopicsubscription.js +72 -0
  147. package/models/operations/topicscontrollergettopicsubscription.js.map +1 -0
  148. package/models/operations/topicscontrollerlisttopicsubscriptions.d.ts +5 -0
  149. package/models/operations/topicscontrollerlisttopicsubscriptions.d.ts.map +1 -1
  150. package/models/operations/topicscontrollerlisttopicsubscriptions.js +1 -0
  151. package/models/operations/topicscontrollerlisttopicsubscriptions.js.map +1 -1
  152. package/models/operations/topicscontrollerupdatetopicsubscription.d.ts +2 -2
  153. package/models/operations/topicscontrollerupdatetopicsubscription.d.ts.map +1 -1
  154. package/models/operations/topicscontrollerupdatetopicsubscription.js +1 -1
  155. package/models/operations/topicscontrollerupdatetopicsubscription.js.map +1 -1
  156. package/package.json +1 -1
  157. package/sdk/channelconnections.d.ts +6 -6
  158. package/sdk/channelconnections.js +6 -6
  159. package/sdk/channelendpoints.d.ts +6 -6
  160. package/sdk/channelendpoints.js +6 -6
  161. package/sdk/preferences.d.ts +1 -1
  162. package/sdk/preferences.d.ts.map +1 -1
  163. package/sdk/preferences.js +2 -2
  164. package/sdk/preferences.js.map +1 -1
  165. package/sdk/sdk.d.ts +1 -1
  166. package/sdk/sdk.js +1 -1
  167. package/sdk/subscriptions.d.ts +8 -1
  168. package/sdk/subscriptions.d.ts.map +1 -1
  169. package/sdk/subscriptions.js +11 -1
  170. package/sdk/subscriptions.js.map +1 -1
  171. package/sources/json-development.json +954 -183
  172. package/src/funcs/channelConnectionsCreate.ts +1 -1
  173. package/src/funcs/channelConnectionsDelete.ts +1 -1
  174. package/src/funcs/channelConnectionsList.ts +2 -2
  175. package/src/funcs/channelConnectionsRetrieve.ts +1 -1
  176. package/src/funcs/channelConnectionsUpdate.ts +1 -1
  177. package/src/funcs/channelEndpointsCreate.ts +1 -1
  178. package/src/funcs/channelEndpointsDelete.ts +1 -1
  179. package/src/funcs/channelEndpointsList.ts +2 -2
  180. package/src/funcs/channelEndpointsRetrieve.ts +1 -1
  181. package/src/funcs/channelEndpointsUpdate.ts +1 -1
  182. package/src/funcs/notificationsList.ts +1 -0
  183. package/src/funcs/subscribersPreferencesList.ts +5 -17
  184. package/src/funcs/subscribersTopicsList.ts +1 -0
  185. package/src/funcs/topicsSubscriptionsGetSubscription.ts +242 -0
  186. package/src/funcs/topicsSubscriptionsList.ts +1 -0
  187. package/src/funcs/topicsSubscriptionsUpdate.ts +8 -9
  188. package/src/funcs/trigger.ts +1 -1
  189. package/src/lib/config.ts +4 -4
  190. package/src/lib/sdks.ts +2 -2
  191. package/src/models/components/activitynotificationjobresponsedto.ts +9 -19
  192. package/src/models/components/bulkupdatesubscriberpreferencesdto.ts +62 -0
  193. package/src/models/components/createchannelconnectionrequestdto.ts +51 -18
  194. package/src/models/components/createslackchannelendpointdto.ts +31 -13
  195. package/src/models/components/createtopicsubscriptionsrequestdto.ts +82 -0
  196. package/src/models/components/delaystepresponsedto.ts +1 -1
  197. package/src/models/components/emailstepresponsedto.ts +3 -3
  198. package/src/models/components/generatechatoauthurlrequestdto.ts +1 -1
  199. package/src/models/components/inappcontroldto.ts +1 -1
  200. package/src/models/components/inappstepresponsedto.ts +2 -2
  201. package/src/models/components/index.ts +1 -0
  202. package/src/models/components/messageactionresult.ts +2 -21
  203. package/src/models/components/messageresponsedto.ts +4 -48
  204. package/src/models/components/notificationfeeditemdto.ts +5 -0
  205. package/src/models/components/patchsubscriberpreferencesdto.ts +48 -0
  206. package/src/models/components/redirectdto.ts +1 -1
  207. package/src/models/components/subscriberworkflowpreferencedto.ts +5 -0
  208. package/src/models/components/subscriptiondetailsresponsedto.ts +58 -0
  209. package/src/models/components/subscriptiondto.ts +5 -0
  210. package/src/models/components/subscriptionresponsedto.ts +5 -0
  211. package/src/models/components/throttlestepresponsedto.ts +2 -2
  212. package/src/models/components/topicsubscriptionresponsedto.ts +10 -0
  213. package/src/models/components/triggereventrequestdto.ts +2 -2
  214. package/src/models/components/workflowresponsedto.ts +2 -2
  215. package/src/models/operations/inboundwebhookscontrollerhandlewebhook.ts +3 -3
  216. package/src/models/operations/index.ts +1 -0
  217. package/src/models/operations/notificationscontrollerlistnotifications.ts +6 -0
  218. package/src/models/operations/subscriberscontrollergetsubscriberpreferences.ts +6 -0
  219. package/src/models/operations/subscriberscontrollerlistsubscribertopics.ts +6 -0
  220. package/src/models/operations/topicscontrollergettopicsubscription.ts +96 -0
  221. package/src/models/operations/topicscontrollerlisttopicsubscriptions.ts +6 -0
  222. package/src/models/operations/topicscontrollerupdatetopicsubscription.ts +3 -3
  223. package/src/sdk/channelconnections.ts +6 -6
  224. package/src/sdk/channelendpoints.ts +6 -6
  225. package/src/sdk/preferences.ts +2 -6
  226. package/src/sdk/sdk.ts +1 -1
  227. package/src/sdk/subscriptions.ts +23 -1
  228. package/models/components/createtopicsubscriptionsresponsedto.d.ts +0 -24
  229. package/models/components/createtopicsubscriptionsresponsedto.d.ts.map +0 -1
  230. package/models/components/createtopicsubscriptionsresponsedto.js.map +0 -1
  231. package/models/components/steptypeenum.d.ts +0 -26
  232. package/models/components/steptypeenum.d.ts.map +0 -1
  233. package/models/components/steptypeenum.js +0 -60
  234. package/models/components/steptypeenum.js.map +0 -1
  235. package/models/components/uploadtranslationsrequestdto.d.ts +0 -34
  236. package/models/components/uploadtranslationsrequestdto.d.ts.map +0 -1
  237. package/models/components/uploadtranslationsrequestdto.js +0 -60
  238. package/models/components/uploadtranslationsrequestdto.js.map +0 -1
  239. package/src/models/components/createtopicsubscriptionsresponsedto.ts +0 -54
  240. package/src/models/components/steptypeenum.ts +0 -33
  241. package/src/models/components/uploadtranslationsrequestdto.ts +0 -62
  242. package/temp/example.ts +0 -5
@@ -1,26 +0,0 @@
1
- import * as z from "zod/v3";
2
- import { ClosedEnum } from "../../types/enums.js";
3
- /**
4
- * Type of the step
5
- */
6
- export declare const StepTypeEnum: {
7
- readonly InApp: "in_app";
8
- readonly Email: "email";
9
- readonly Sms: "sms";
10
- readonly Chat: "chat";
11
- readonly Push: "push";
12
- readonly Digest: "digest";
13
- readonly Trigger: "trigger";
14
- readonly Delay: "delay";
15
- readonly Throttle: "throttle";
16
- readonly Custom: "custom";
17
- };
18
- /**
19
- * Type of the step
20
- */
21
- export type StepTypeEnum = ClosedEnum<typeof StepTypeEnum>;
22
- /** @internal */
23
- export declare const StepTypeEnum$inboundSchema: z.ZodNativeEnum<typeof StepTypeEnum>;
24
- /** @internal */
25
- export declare const StepTypeEnum$outboundSchema: z.ZodNativeEnum<typeof StepTypeEnum>;
26
- //# sourceMappingURL=steptypeenum.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"steptypeenum.d.ts","sourceRoot":"","sources":["../../src/models/components/steptypeenum.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAElD;;GAEG;AACH,eAAO,MAAM,YAAY;;;;;;;;;;;CAWf,CAAC;AACX;;GAEG;AACH,MAAM,MAAM,YAAY,GAAG,UAAU,CAAC,OAAO,YAAY,CAAC,CAAC;AAE3D,gBAAgB;AAChB,eAAO,MAAM,0BAA0B,EAAE,CAAC,CAAC,aAAa,CAAC,OAAO,YAAY,CAChD,CAAC;AAC7B,gBAAgB;AAChB,eAAO,MAAM,2BAA2B,EAAE,CAAC,CAAC,aAAa,CAAC,OAAO,YAAY,CACjD,CAAC"}
@@ -1,60 +0,0 @@
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 () {
22
- var ownKeys = function(o) {
23
- ownKeys = Object.getOwnPropertyNames || function (o) {
24
- var ar = [];
25
- for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
- return ar;
27
- };
28
- return ownKeys(o);
29
- };
30
- return function (mod) {
31
- if (mod && mod.__esModule) return mod;
32
- var result = {};
33
- if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
- __setModuleDefault(result, mod);
35
- return result;
36
- };
37
- })();
38
- Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.StepTypeEnum$outboundSchema = exports.StepTypeEnum$inboundSchema = exports.StepTypeEnum = void 0;
40
- const z = __importStar(require("zod/v3"));
41
- /**
42
- * Type of the step
43
- */
44
- exports.StepTypeEnum = {
45
- InApp: "in_app",
46
- Email: "email",
47
- Sms: "sms",
48
- Chat: "chat",
49
- Push: "push",
50
- Digest: "digest",
51
- Trigger: "trigger",
52
- Delay: "delay",
53
- Throttle: "throttle",
54
- Custom: "custom",
55
- };
56
- /** @internal */
57
- exports.StepTypeEnum$inboundSchema = z.nativeEnum(exports.StepTypeEnum);
58
- /** @internal */
59
- exports.StepTypeEnum$outboundSchema = exports.StepTypeEnum$inboundSchema;
60
- //# sourceMappingURL=steptypeenum.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"steptypeenum.js","sourceRoot":"","sources":["../../src/models/components/steptypeenum.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,0CAA4B;AAG5B;;GAEG;AACU,QAAA,YAAY,GAAG;IAC1B,KAAK,EAAE,QAAQ;IACf,KAAK,EAAE,OAAO;IACd,GAAG,EAAE,KAAK;IACV,IAAI,EAAE,MAAM;IACZ,IAAI,EAAE,MAAM;IACZ,MAAM,EAAE,QAAQ;IAChB,OAAO,EAAE,SAAS;IAClB,KAAK,EAAE,OAAO;IACd,QAAQ,EAAE,UAAU;IACpB,MAAM,EAAE,QAAQ;CACR,CAAC;AAMX,gBAAgB;AACH,QAAA,0BAA0B,GACrC,CAAC,CAAC,UAAU,CAAC,oBAAY,CAAC,CAAC;AAC7B,gBAAgB;AACH,QAAA,2BAA2B,GACtC,kCAA0B,CAAC"}
@@ -1,34 +0,0 @@
1
- import * as z from "zod/v3";
2
- import { ClosedEnum } from "../../types/enums.js";
3
- /**
4
- * The resource type to associate localizations with
5
- */
6
- export declare const UploadTranslationsRequestDtoResourceType: {
7
- readonly Workflow: "workflow";
8
- readonly Layout: "layout";
9
- };
10
- /**
11
- * The resource type to associate localizations with
12
- */
13
- export type UploadTranslationsRequestDtoResourceType = ClosedEnum<typeof UploadTranslationsRequestDtoResourceType>;
14
- export type UploadTranslationsRequestDto = {
15
- /**
16
- * The resource ID to associate localizations with. Accepts identifier or slug format
17
- */
18
- resourceId: string;
19
- /**
20
- * The resource type to associate localizations with
21
- */
22
- resourceType: UploadTranslationsRequestDtoResourceType;
23
- };
24
- /** @internal */
25
- export declare const UploadTranslationsRequestDtoResourceType$outboundSchema: z.ZodNativeEnum<typeof UploadTranslationsRequestDtoResourceType>;
26
- /** @internal */
27
- export type UploadTranslationsRequestDto$Outbound = {
28
- resourceId: string;
29
- resourceType: string;
30
- };
31
- /** @internal */
32
- export declare const UploadTranslationsRequestDto$outboundSchema: z.ZodType<UploadTranslationsRequestDto$Outbound, z.ZodTypeDef, UploadTranslationsRequestDto>;
33
- export declare function uploadTranslationsRequestDtoToJSON(uploadTranslationsRequestDto: UploadTranslationsRequestDto): string;
34
- //# sourceMappingURL=uploadtranslationsrequestdto.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"uploadtranslationsrequestdto.d.ts","sourceRoot":"","sources":["../../src/models/components/uploadtranslationsrequestdto.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAElD;;GAEG;AACH,eAAO,MAAM,wCAAwC;;;CAG3C,CAAC;AACX;;GAEG;AACH,MAAM,MAAM,wCAAwC,GAAG,UAAU,CAC/D,OAAO,wCAAwC,CAChD,CAAC;AAEF,MAAM,MAAM,4BAA4B,GAAG;IACzC;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,YAAY,EAAE,wCAAwC,CAAC;CACxD,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,uDAAuD,EAClE,CAAC,CAAC,aAAa,CAAC,OAAO,wCAAwC,CACR,CAAC;AAE1D,gBAAgB;AAChB,MAAM,MAAM,qCAAqC,GAAG;IAClD,UAAU,EAAE,MAAM,CAAC;IACnB,YAAY,EAAE,MAAM,CAAC;CACtB,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,2CAA2C,EAAE,CAAC,CAAC,OAAO,CACjE,qCAAqC,EACrC,CAAC,CAAC,UAAU,EACZ,4BAA4B,CAI5B,CAAC;AAEH,wBAAgB,kCAAkC,CAChD,4BAA4B,EAAE,4BAA4B,GACzD,MAAM,CAMR"}
@@ -1,60 +0,0 @@
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 () {
22
- var ownKeys = function(o) {
23
- ownKeys = Object.getOwnPropertyNames || function (o) {
24
- var ar = [];
25
- for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
- return ar;
27
- };
28
- return ownKeys(o);
29
- };
30
- return function (mod) {
31
- if (mod && mod.__esModule) return mod;
32
- var result = {};
33
- if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
- __setModuleDefault(result, mod);
35
- return result;
36
- };
37
- })();
38
- Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.UploadTranslationsRequestDto$outboundSchema = exports.UploadTranslationsRequestDtoResourceType$outboundSchema = exports.UploadTranslationsRequestDtoResourceType = void 0;
40
- exports.uploadTranslationsRequestDtoToJSON = uploadTranslationsRequestDtoToJSON;
41
- const z = __importStar(require("zod/v3"));
42
- /**
43
- * The resource type to associate localizations with
44
- */
45
- exports.UploadTranslationsRequestDtoResourceType = {
46
- Workflow: "workflow",
47
- Layout: "layout",
48
- };
49
- /** @internal */
50
- exports.UploadTranslationsRequestDtoResourceType$outboundSchema = z
51
- .nativeEnum(exports.UploadTranslationsRequestDtoResourceType);
52
- /** @internal */
53
- exports.UploadTranslationsRequestDto$outboundSchema = z.object({
54
- resourceId: z.string(),
55
- resourceType: exports.UploadTranslationsRequestDtoResourceType$outboundSchema,
56
- });
57
- function uploadTranslationsRequestDtoToJSON(uploadTranslationsRequestDto) {
58
- return JSON.stringify(exports.UploadTranslationsRequestDto$outboundSchema.parse(uploadTranslationsRequestDto));
59
- }
60
- //# sourceMappingURL=uploadtranslationsrequestdto.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"uploadtranslationsrequestdto.js","sourceRoot":"","sources":["../../src/models/components/uploadtranslationsrequestdto.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAmDH,gFAQC;AAzDD,0CAA4B;AAG5B;;GAEG;AACU,QAAA,wCAAwC,GAAG;IACtD,QAAQ,EAAE,UAAU;IACpB,MAAM,EAAE,QAAQ;CACR,CAAC;AAmBX,gBAAgB;AACH,QAAA,uDAAuD,GACC,CAAC;KACjE,UAAU,CAAC,gDAAwC,CAAC,CAAC;AAQ1D,gBAAgB;AACH,QAAA,2CAA2C,GAIpD,CAAC,CAAC,MAAM,CAAC;IACX,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE;IACtB,YAAY,EAAE,+DAAuD;CACtE,CAAC,CAAC;AAEH,SAAgB,kCAAkC,CAChD,4BAA0D;IAE1D,OAAO,IAAI,CAAC,SAAS,CACnB,mDAA2C,CAAC,KAAK,CAC/C,4BAA4B,CAC7B,CACF,CAAC;AACJ,CAAC"}
@@ -1,54 +0,0 @@
1
- /*
2
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- */
4
-
5
- import * as z from "zod/v3";
6
- import { safeParse } from "../../lib/schemas.js";
7
- import { Result as SafeParseResult } from "../../types/fp.js";
8
- import { SDKValidationError } from "../errors/sdkvalidationerror.js";
9
- import { MetaDto, MetaDto$inboundSchema } from "./metadto.js";
10
- import {
11
- SubscriptionDto,
12
- SubscriptionDto$inboundSchema,
13
- } from "./subscriptiondto.js";
14
- import {
15
- SubscriptionErrorDto,
16
- SubscriptionErrorDto$inboundSchema,
17
- } from "./subscriptionerrordto.js";
18
-
19
- export type CreateTopicSubscriptionsResponseDto = {
20
- /**
21
- * The list of successfully created subscriptions
22
- */
23
- data: Array<SubscriptionDto>;
24
- /**
25
- * Metadata about the operation
26
- */
27
- meta: MetaDto;
28
- /**
29
- * The list of errors for failed subscription attempts
30
- */
31
- errors?: Array<SubscriptionErrorDto> | undefined;
32
- };
33
-
34
- /** @internal */
35
- export const CreateTopicSubscriptionsResponseDto$inboundSchema: z.ZodType<
36
- CreateTopicSubscriptionsResponseDto,
37
- z.ZodTypeDef,
38
- unknown
39
- > = z.object({
40
- data: z.array(SubscriptionDto$inboundSchema),
41
- meta: MetaDto$inboundSchema,
42
- errors: z.array(SubscriptionErrorDto$inboundSchema).optional(),
43
- });
44
-
45
- export function createTopicSubscriptionsResponseDtoFromJSON(
46
- jsonString: string,
47
- ): SafeParseResult<CreateTopicSubscriptionsResponseDto, SDKValidationError> {
48
- return safeParse(
49
- jsonString,
50
- (x) =>
51
- CreateTopicSubscriptionsResponseDto$inboundSchema.parse(JSON.parse(x)),
52
- `Failed to parse 'CreateTopicSubscriptionsResponseDto' from JSON`,
53
- );
54
- }
@@ -1,33 +0,0 @@
1
- /*
2
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- */
4
-
5
- import * as z from "zod/v3";
6
- import { ClosedEnum } from "../../types/enums.js";
7
-
8
- /**
9
- * Type of the step
10
- */
11
- export const StepTypeEnum = {
12
- InApp: "in_app",
13
- Email: "email",
14
- Sms: "sms",
15
- Chat: "chat",
16
- Push: "push",
17
- Digest: "digest",
18
- Trigger: "trigger",
19
- Delay: "delay",
20
- Throttle: "throttle",
21
- Custom: "custom",
22
- } as const;
23
- /**
24
- * Type of the step
25
- */
26
- export type StepTypeEnum = ClosedEnum<typeof StepTypeEnum>;
27
-
28
- /** @internal */
29
- export const StepTypeEnum$inboundSchema: z.ZodNativeEnum<typeof StepTypeEnum> =
30
- z.nativeEnum(StepTypeEnum);
31
- /** @internal */
32
- export const StepTypeEnum$outboundSchema: z.ZodNativeEnum<typeof StepTypeEnum> =
33
- StepTypeEnum$inboundSchema;
@@ -1,62 +0,0 @@
1
- /*
2
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- */
4
-
5
- import * as z from "zod/v3";
6
- import { ClosedEnum } from "../../types/enums.js";
7
-
8
- /**
9
- * The resource type to associate localizations with
10
- */
11
- export const UploadTranslationsRequestDtoResourceType = {
12
- Workflow: "workflow",
13
- Layout: "layout",
14
- } as const;
15
- /**
16
- * The resource type to associate localizations with
17
- */
18
- export type UploadTranslationsRequestDtoResourceType = ClosedEnum<
19
- typeof UploadTranslationsRequestDtoResourceType
20
- >;
21
-
22
- export type UploadTranslationsRequestDto = {
23
- /**
24
- * The resource ID to associate localizations with. Accepts identifier or slug format
25
- */
26
- resourceId: string;
27
- /**
28
- * The resource type to associate localizations with
29
- */
30
- resourceType: UploadTranslationsRequestDtoResourceType;
31
- };
32
-
33
- /** @internal */
34
- export const UploadTranslationsRequestDtoResourceType$outboundSchema:
35
- z.ZodNativeEnum<typeof UploadTranslationsRequestDtoResourceType> = z
36
- .nativeEnum(UploadTranslationsRequestDtoResourceType);
37
-
38
- /** @internal */
39
- export type UploadTranslationsRequestDto$Outbound = {
40
- resourceId: string;
41
- resourceType: string;
42
- };
43
-
44
- /** @internal */
45
- export const UploadTranslationsRequestDto$outboundSchema: z.ZodType<
46
- UploadTranslationsRequestDto$Outbound,
47
- z.ZodTypeDef,
48
- UploadTranslationsRequestDto
49
- > = z.object({
50
- resourceId: z.string(),
51
- resourceType: UploadTranslationsRequestDtoResourceType$outboundSchema,
52
- });
53
-
54
- export function uploadTranslationsRequestDtoToJSON(
55
- uploadTranslationsRequestDto: UploadTranslationsRequestDto,
56
- ): string {
57
- return JSON.stringify(
58
- UploadTranslationsRequestDto$outboundSchema.parse(
59
- uploadTranslationsRequestDto,
60
- ),
61
- );
62
- }
package/temp/example.ts DELETED
@@ -1,5 +0,0 @@
1
- /*
2
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- */
4
-
5
- const value: number = [object Object];