@novu/api 3.13.0 → 3.14.1

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 (233) hide show
  1. package/README.md +48 -36
  2. package/funcs/environmentsDiff.d.ts +19 -0
  3. package/funcs/environmentsDiff.d.ts.map +1 -0
  4. package/funcs/environmentsDiff.js +156 -0
  5. package/funcs/environmentsDiff.js.map +1 -0
  6. package/funcs/environmentsGetTags.d.ts +1 -1
  7. package/funcs/environmentsGetTags.js +1 -1
  8. package/funcs/environmentsPublish.d.ts +19 -0
  9. package/funcs/environmentsPublish.d.ts.map +1 -0
  10. package/funcs/environmentsPublish.js +156 -0
  11. package/funcs/environmentsPublish.js.map +1 -0
  12. package/funcs/topicsSubscriptionsGetSubscription.d.ts +2 -2
  13. package/funcs/topicsSubscriptionsGetSubscription.js +2 -2
  14. package/funcs/translationsMasterUpload.js +7 -0
  15. package/funcs/translationsMasterUpload.js.map +1 -1
  16. package/funcs/translationsUpload.js +8 -1
  17. package/funcs/translationsUpload.js.map +1 -1
  18. package/jsr.json +1 -1
  19. package/lib/config.d.ts +4 -4
  20. package/lib/config.js +4 -4
  21. package/lib/matchers.d.ts.map +1 -1
  22. package/lib/matchers.js +0 -1
  23. package/lib/matchers.js.map +1 -1
  24. package/lib/security.d.ts.map +1 -1
  25. package/lib/security.js +1 -2
  26. package/lib/security.js.map +1 -1
  27. package/models/components/chatstepresponsedto.d.ts +4 -0
  28. package/models/components/chatstepresponsedto.d.ts.map +1 -1
  29. package/models/components/chatstepresponsedto.js +1 -0
  30. package/models/components/chatstepresponsedto.js.map +1 -1
  31. package/models/components/customstepresponsedto.d.ts +4 -0
  32. package/models/components/customstepresponsedto.d.ts.map +1 -1
  33. package/models/components/customstepresponsedto.js +1 -0
  34. package/models/components/customstepresponsedto.js.map +1 -1
  35. package/models/components/delaystepresponsedto.d.ts +4 -0
  36. package/models/components/delaystepresponsedto.d.ts.map +1 -1
  37. package/models/components/delaystepresponsedto.js +1 -0
  38. package/models/components/delaystepresponsedto.js.map +1 -1
  39. package/models/components/dependencyreasonenum.d.ts +16 -0
  40. package/models/components/dependencyreasonenum.d.ts.map +1 -0
  41. package/models/components/dependencyreasonenum.js +50 -0
  42. package/models/components/dependencyreasonenum.js.map +1 -0
  43. package/models/components/diffactionenum.d.ts +19 -0
  44. package/models/components/diffactionenum.d.ts.map +1 -0
  45. package/models/components/diffactionenum.js +53 -0
  46. package/models/components/diffactionenum.js.map +1 -0
  47. package/models/components/diffenvironmentrequestdto.d.ts +15 -0
  48. package/models/components/diffenvironmentrequestdto.d.ts.map +1 -0
  49. package/models/components/diffenvironmentrequestdto.js +49 -0
  50. package/models/components/diffenvironmentrequestdto.js.map +1 -0
  51. package/models/components/diffenvironmentresponsedto.d.ts +27 -0
  52. package/models/components/diffenvironmentresponsedto.d.ts.map +1 -0
  53. package/models/components/diffenvironmentresponsedto.js +55 -0
  54. package/models/components/diffenvironmentresponsedto.js.map +1 -0
  55. package/models/components/diffsummarydto.d.ts +25 -0
  56. package/models/components/diffsummarydto.d.ts.map +1 -0
  57. package/models/components/diffsummarydto.js +53 -0
  58. package/models/components/diffsummarydto.js.map +1 -0
  59. package/models/components/digeststepresponsedto.d.ts +4 -0
  60. package/models/components/digeststepresponsedto.d.ts.map +1 -1
  61. package/models/components/digeststepresponsedto.js +1 -0
  62. package/models/components/digeststepresponsedto.js.map +1 -1
  63. package/models/components/emailcontroldto.d.ts +20 -0
  64. package/models/components/emailcontroldto.d.ts.map +1 -1
  65. package/models/components/emailcontroldto.js +14 -1
  66. package/models/components/emailcontroldto.js.map +1 -1
  67. package/models/components/emailstepresponsedto.d.ts +21 -0
  68. package/models/components/emailstepresponsedto.d.ts.map +1 -1
  69. package/models/components/emailstepresponsedto.js +12 -1
  70. package/models/components/emailstepresponsedto.js.map +1 -1
  71. package/models/components/environmentdiffsummarydto.d.ts +21 -0
  72. package/models/components/environmentdiffsummarydto.d.ts.map +1 -0
  73. package/models/components/environmentdiffsummarydto.js +52 -0
  74. package/models/components/environmentdiffsummarydto.js.map +1 -0
  75. package/models/components/failedworkflowdto.d.ts +30 -0
  76. package/models/components/failedworkflowdto.d.ts.map +1 -0
  77. package/models/components/failedworkflowdto.js +55 -0
  78. package/models/components/failedworkflowdto.js.map +1 -0
  79. package/models/components/inappstepresponsedto.d.ts +4 -0
  80. package/models/components/inappstepresponsedto.d.ts.map +1 -1
  81. package/models/components/inappstepresponsedto.js +1 -0
  82. package/models/components/inappstepresponsedto.js.map +1 -1
  83. package/models/components/index.d.ts +18 -0
  84. package/models/components/index.d.ts.map +1 -1
  85. package/models/components/index.js +18 -0
  86. package/models/components/index.js.map +1 -1
  87. package/models/components/publishenvironmentrequestdto.d.ts +26 -0
  88. package/models/components/publishenvironmentrequestdto.d.ts.map +1 -0
  89. package/models/components/publishenvironmentrequestdto.js +52 -0
  90. package/models/components/publishenvironmentrequestdto.js.map +1 -0
  91. package/models/components/publishenvironmentresponsedto.d.ts +19 -0
  92. package/models/components/publishenvironmentresponsedto.d.ts.map +1 -0
  93. package/models/components/publishenvironmentresponsedto.js +53 -0
  94. package/models/components/publishenvironmentresponsedto.js.map +1 -0
  95. package/models/components/publishsummarydto.d.ts +25 -0
  96. package/models/components/publishsummarydto.d.ts.map +1 -0
  97. package/models/components/publishsummarydto.js +53 -0
  98. package/models/components/publishsummarydto.js.map +1 -0
  99. package/models/components/pushstepresponsedto.d.ts +4 -0
  100. package/models/components/pushstepresponsedto.d.ts.map +1 -1
  101. package/models/components/pushstepresponsedto.js +1 -0
  102. package/models/components/pushstepresponsedto.js.map +1 -1
  103. package/models/components/resourcedependencydto.d.ts +31 -0
  104. package/models/components/resourcedependencydto.d.ts.map +1 -0
  105. package/models/components/resourcedependencydto.js +56 -0
  106. package/models/components/resourcedependencydto.js.map +1 -0
  107. package/models/components/resourcediffdto.d.ts +159 -0
  108. package/models/components/resourcediffdto.d.ts.map +1 -0
  109. package/models/components/resourcediffdto.js +123 -0
  110. package/models/components/resourcediffdto.js.map +1 -0
  111. package/models/components/resourcediffresultdto.d.ts +133 -0
  112. package/models/components/resourcediffresultdto.d.ts.map +1 -0
  113. package/models/components/resourcediffresultdto.js +114 -0
  114. package/models/components/resourcediffresultdto.js.map +1 -0
  115. package/models/components/resourcetopublishdto.d.ts +21 -0
  116. package/models/components/resourcetopublishdto.d.ts.map +1 -0
  117. package/models/components/resourcetopublishdto.js +51 -0
  118. package/models/components/resourcetopublishdto.js.map +1 -0
  119. package/models/components/resourcetypeenum.d.ts +2 -0
  120. package/models/components/resourcetypeenum.d.ts.map +1 -1
  121. package/models/components/resourcetypeenum.js +3 -1
  122. package/models/components/resourcetypeenum.js.map +1 -1
  123. package/models/components/skippedworkflowdto.d.ts +26 -0
  124. package/models/components/skippedworkflowdto.d.ts.map +1 -0
  125. package/models/components/skippedworkflowdto.js +54 -0
  126. package/models/components/skippedworkflowdto.js.map +1 -0
  127. package/models/components/smsstepresponsedto.d.ts +4 -0
  128. package/models/components/smsstepresponsedto.d.ts.map +1 -1
  129. package/models/components/smsstepresponsedto.js +1 -0
  130. package/models/components/smsstepresponsedto.js.map +1 -1
  131. package/models/components/stepresponsedto.d.ts +4 -0
  132. package/models/components/stepresponsedto.d.ts.map +1 -1
  133. package/models/components/stepresponsedto.js +1 -0
  134. package/models/components/stepresponsedto.js.map +1 -1
  135. package/models/components/syncactionenum.d.ts +18 -0
  136. package/models/components/syncactionenum.d.ts.map +1 -0
  137. package/models/components/syncactionenum.js +52 -0
  138. package/models/components/syncactionenum.js.map +1 -0
  139. package/models/components/syncedworkflowdto.d.ts +27 -0
  140. package/models/components/syncedworkflowdto.d.ts.map +1 -0
  141. package/models/components/syncedworkflowdto.js +55 -0
  142. package/models/components/syncedworkflowdto.js.map +1 -0
  143. package/models/components/syncresultdto.d.ts +33 -0
  144. package/models/components/syncresultdto.d.ts.map +1 -0
  145. package/models/components/syncresultdto.js +58 -0
  146. package/models/components/syncresultdto.js.map +1 -0
  147. package/models/components/throttlestepresponsedto.d.ts +4 -0
  148. package/models/components/throttlestepresponsedto.d.ts.map +1 -1
  149. package/models/components/throttlestepresponsedto.js +1 -0
  150. package/models/components/throttlestepresponsedto.js.map +1 -1
  151. package/models/components/uicomponentenum.d.ts +4 -3
  152. package/models/components/uicomponentenum.d.ts.map +1 -1
  153. package/models/components/uicomponentenum.js +3 -2
  154. package/models/components/uicomponentenum.js.map +1 -1
  155. package/models/components/workflowcreationsourceenum.d.ts +1 -0
  156. package/models/components/workflowcreationsourceenum.d.ts.map +1 -1
  157. package/models/components/workflowcreationsourceenum.js +1 -0
  158. package/models/components/workflowcreationsourceenum.js.map +1 -1
  159. package/models/operations/environmentscontrollerdiffenvironment.d.ts +37 -0
  160. package/models/operations/environmentscontrollerdiffenvironment.d.ts.map +1 -0
  161. package/models/operations/environmentscontrollerdiffenvironment.js +73 -0
  162. package/models/operations/environmentscontrollerdiffenvironment.js.map +1 -0
  163. package/models/operations/environmentscontrollerpublishenvironment.d.ts +37 -0
  164. package/models/operations/environmentscontrollerpublishenvironment.d.ts.map +1 -0
  165. package/models/operations/environmentscontrollerpublishenvironment.js +73 -0
  166. package/models/operations/environmentscontrollerpublishenvironment.js.map +1 -0
  167. package/models/operations/index.d.ts +2 -0
  168. package/models/operations/index.d.ts.map +1 -1
  169. package/models/operations/index.js +2 -0
  170. package/models/operations/index.js.map +1 -1
  171. package/package.json +3 -3
  172. package/sdk/environments.d.ts +15 -1
  173. package/sdk/environments.d.ts.map +1 -1
  174. package/sdk/environments.js +21 -1
  175. package/sdk/environments.js.map +1 -1
  176. package/sdk/subscriptions.d.ts +2 -2
  177. package/sdk/subscriptions.js +2 -2
  178. package/src/funcs/environmentsDiff.ts +243 -0
  179. package/src/funcs/environmentsGetTags.ts +1 -1
  180. package/src/funcs/environmentsPublish.ts +243 -0
  181. package/src/funcs/topicsSubscriptionsGetSubscription.ts +2 -2
  182. package/src/funcs/translationsMasterUpload.ts +12 -0
  183. package/src/funcs/translationsUpload.ts +12 -1
  184. package/src/lib/config.ts +4 -4
  185. package/src/lib/matchers.ts +3 -2
  186. package/src/lib/security.ts +1 -2
  187. package/src/models/components/chatstepresponsedto.ts +5 -0
  188. package/src/models/components/customstepresponsedto.ts +5 -0
  189. package/src/models/components/delaystepresponsedto.ts +5 -0
  190. package/src/models/components/dependencyreasonenum.ts +23 -0
  191. package/src/models/components/diffactionenum.ts +26 -0
  192. package/src/models/components/diffenvironmentrequestdto.ts +34 -0
  193. package/src/models/components/diffenvironmentresponsedto.ts +57 -0
  194. package/src/models/components/diffsummarydto.ts +49 -0
  195. package/src/models/components/digeststepresponsedto.ts +5 -0
  196. package/src/models/components/emailcontroldto.ts +26 -0
  197. package/src/models/components/emailstepresponsedto.ts +31 -0
  198. package/src/models/components/environmentdiffsummarydto.ts +44 -0
  199. package/src/models/components/failedworkflowdto.ts +58 -0
  200. package/src/models/components/inappstepresponsedto.ts +5 -0
  201. package/src/models/components/index.ts +18 -0
  202. package/src/models/components/publishenvironmentrequestdto.ts +53 -0
  203. package/src/models/components/publishenvironmentresponsedto.ts +44 -0
  204. package/src/models/components/publishsummarydto.ts +49 -0
  205. package/src/models/components/pushstepresponsedto.ts +5 -0
  206. package/src/models/components/resourcedependencydto.ts +62 -0
  207. package/src/models/components/resourcediffdto.ts +305 -0
  208. package/src/models/components/resourcediffresultdto.ts +277 -0
  209. package/src/models/components/resourcetopublishdto.ts +44 -0
  210. package/src/models/components/resourcetypeenum.ts +4 -0
  211. package/src/models/components/skippedworkflowdto.ts +53 -0
  212. package/src/models/components/smsstepresponsedto.ts +5 -0
  213. package/src/models/components/stepresponsedto.ts +5 -0
  214. package/src/models/components/syncactionenum.ts +25 -0
  215. package/src/models/components/syncedworkflowdto.ts +57 -0
  216. package/src/models/components/syncresultdto.ts +70 -0
  217. package/src/models/components/throttlestepresponsedto.ts +5 -0
  218. package/src/models/components/uicomponentenum.ts +9 -5
  219. package/src/models/components/workflowcreationsourceenum.ts +1 -0
  220. package/src/models/operations/environmentscontrollerdiffenvironment.ts +98 -0
  221. package/src/models/operations/environmentscontrollerpublishenvironment.ts +99 -0
  222. package/src/models/operations/index.ts +2 -0
  223. package/src/sdk/environments.ts +45 -1
  224. package/src/sdk/subscriptions.ts +2 -2
  225. package/_speakeasy/.github/action-inputs-config.json +0 -53
  226. package/_speakeasy/.github/action-security-config.json +0 -88
  227. package/codeSamples.json +0 -1772
  228. package/examples/package-lock.json +0 -610
  229. package/examples/package.json +0 -18
  230. package/sources/code-samples.json +0 -2105
  231. package/sources/json-development.json +0 -55433
  232. package/sources/openapi.sdk.json +0 -13193
  233. package/tsconfig.json +0 -40
@@ -0,0 +1,159 @@
1
+ import * as z from "zod/v3";
2
+ import { Result as SafeParseResult } from "../../types/fp.js";
3
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
4
+ import { DiffActionEnum } from "./diffactionenum.js";
5
+ import { ResourceTypeEnum } from "./resourcetypeenum.js";
6
+ /**
7
+ * User who last updated the resource
8
+ */
9
+ export type ResourceDiffDtoUpdatedBy = {
10
+ /**
11
+ * User ID
12
+ */
13
+ id: string;
14
+ /**
15
+ * User first name
16
+ */
17
+ firstName: string;
18
+ /**
19
+ * User last name
20
+ */
21
+ lastName?: string | null | undefined;
22
+ /**
23
+ * User external ID
24
+ */
25
+ externalId?: string | undefined;
26
+ };
27
+ /**
28
+ * Source resource information
29
+ */
30
+ export type ResourceDiffDtoSourceResource = {
31
+ /**
32
+ * Resource ID (workflow ID or step ID)
33
+ */
34
+ id?: string | null | undefined;
35
+ /**
36
+ * Resource name (workflow name or step name)
37
+ */
38
+ name?: string | null | undefined;
39
+ /**
40
+ * User who last updated the resource
41
+ */
42
+ updatedBy?: ResourceDiffDtoUpdatedBy | null | undefined;
43
+ /**
44
+ * When the resource was last updated
45
+ */
46
+ updatedAt?: Date | null | undefined;
47
+ };
48
+ /**
49
+ * User who last updated the resource
50
+ */
51
+ export type ResourceDiffDtoTargetResourceUpdatedBy = {
52
+ /**
53
+ * User ID
54
+ */
55
+ id: string;
56
+ /**
57
+ * User first name
58
+ */
59
+ firstName: string;
60
+ /**
61
+ * User last name
62
+ */
63
+ lastName?: string | null | undefined;
64
+ /**
65
+ * User external ID
66
+ */
67
+ externalId?: string | undefined;
68
+ };
69
+ /**
70
+ * Target resource information
71
+ */
72
+ export type ResourceDiffDtoTargetResource = {
73
+ /**
74
+ * Resource ID (workflow ID or step ID)
75
+ */
76
+ id?: string | null | undefined;
77
+ /**
78
+ * Resource name (workflow name or step name)
79
+ */
80
+ name?: string | null | undefined;
81
+ /**
82
+ * User who last updated the resource
83
+ */
84
+ updatedBy?: ResourceDiffDtoTargetResourceUpdatedBy | null | undefined;
85
+ /**
86
+ * When the resource was last updated
87
+ */
88
+ updatedAt?: Date | null | undefined;
89
+ };
90
+ /**
91
+ * Detailed changes (only for modified resources)
92
+ */
93
+ export type Diffs = {
94
+ /**
95
+ * Previous state of the resource (null for added resources)
96
+ */
97
+ previous?: {
98
+ [k: string]: any;
99
+ } | null | undefined;
100
+ /**
101
+ * New state of the resource (null for deleted resources)
102
+ */
103
+ new?: {
104
+ [k: string]: any;
105
+ } | null | undefined;
106
+ };
107
+ export type ResourceDiffDto = {
108
+ /**
109
+ * Source resource information
110
+ */
111
+ sourceResource?: ResourceDiffDtoSourceResource | null | undefined;
112
+ /**
113
+ * Target resource information
114
+ */
115
+ targetResource?: ResourceDiffDtoTargetResource | null | undefined;
116
+ /**
117
+ * Type of the layout
118
+ */
119
+ resourceType: ResourceTypeEnum;
120
+ /**
121
+ * Type of change
122
+ */
123
+ action: DiffActionEnum;
124
+ /**
125
+ * Detailed changes (only for modified resources)
126
+ */
127
+ diffs?: Diffs | undefined;
128
+ /**
129
+ * Step type (only for step resources)
130
+ */
131
+ stepType?: string | undefined;
132
+ /**
133
+ * Previous index in steps array (for moved/deleted steps)
134
+ */
135
+ previousIndex?: number | undefined;
136
+ /**
137
+ * New index in steps array (for moved/added steps)
138
+ */
139
+ newIndex?: number | undefined;
140
+ };
141
+ /** @internal */
142
+ export declare const ResourceDiffDtoUpdatedBy$inboundSchema: z.ZodType<ResourceDiffDtoUpdatedBy, z.ZodTypeDef, unknown>;
143
+ export declare function resourceDiffDtoUpdatedByFromJSON(jsonString: string): SafeParseResult<ResourceDiffDtoUpdatedBy, SDKValidationError>;
144
+ /** @internal */
145
+ export declare const ResourceDiffDtoSourceResource$inboundSchema: z.ZodType<ResourceDiffDtoSourceResource, z.ZodTypeDef, unknown>;
146
+ export declare function resourceDiffDtoSourceResourceFromJSON(jsonString: string): SafeParseResult<ResourceDiffDtoSourceResource, SDKValidationError>;
147
+ /** @internal */
148
+ export declare const ResourceDiffDtoTargetResourceUpdatedBy$inboundSchema: z.ZodType<ResourceDiffDtoTargetResourceUpdatedBy, z.ZodTypeDef, unknown>;
149
+ export declare function resourceDiffDtoTargetResourceUpdatedByFromJSON(jsonString: string): SafeParseResult<ResourceDiffDtoTargetResourceUpdatedBy, SDKValidationError>;
150
+ /** @internal */
151
+ export declare const ResourceDiffDtoTargetResource$inboundSchema: z.ZodType<ResourceDiffDtoTargetResource, z.ZodTypeDef, unknown>;
152
+ export declare function resourceDiffDtoTargetResourceFromJSON(jsonString: string): SafeParseResult<ResourceDiffDtoTargetResource, SDKValidationError>;
153
+ /** @internal */
154
+ export declare const Diffs$inboundSchema: z.ZodType<Diffs, z.ZodTypeDef, unknown>;
155
+ export declare function diffsFromJSON(jsonString: string): SafeParseResult<Diffs, SDKValidationError>;
156
+ /** @internal */
157
+ export declare const ResourceDiffDto$inboundSchema: z.ZodType<ResourceDiffDto, z.ZodTypeDef, unknown>;
158
+ export declare function resourceDiffDtoFromJSON(jsonString: string): SafeParseResult<ResourceDiffDto, SDKValidationError>;
159
+ //# sourceMappingURL=resourcediffdto.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"resourcediffdto.d.ts","sourceRoot":"","sources":["../../src/models/components/resourcediffdto.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAG5B,OAAO,EAA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asy (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.ResourceDiffDto$inboundSchema = exports.Diffs$inboundSchema = exports.ResourceDiffDtoTargetResource$inboundSchema = exports.ResourceDiffDtoTargetResourceUpdatedBy$inboundSchema = exports.ResourceDiffDtoSourceResource$inboundSchema = exports.ResourceDiffDtoUpdatedBy$inboundSchema = void 0;
40
+ exports.resourceDiffDtoUpdatedByFromJSON = resourceDiffDtoUpdatedByFromJSON;
41
+ exports.resourceDiffDtoSourceResourceFromJSON = resourceDiffDtoSourceResourceFromJSON;
42
+ exports.resourceDiffDtoTargetResourceUpdatedByFromJSON = resourceDiffDtoTargetResourceUpdatedByFromJSON;
43
+ exports.resourceDiffDtoTargetResourceFromJSON = resourceDiffDtoTargetResourceFromJSON;
44
+ exports.diffsFromJSON = diffsFromJSON;
45
+ exports.resourceDiffDtoFromJSON = resourceDiffDtoFromJSON;
46
+ const z = __importStar(require("zod/v3"));
47
+ const primitives_js_1 = require("../../lib/primitives.js");
48
+ const schemas_js_1 = require("../../lib/schemas.js");
49
+ const diffactionenum_js_1 = require("./diffactionenum.js");
50
+ const resourcetypeenum_js_1 = require("./resourcetypeenum.js");
51
+ /** @internal */
52
+ exports.ResourceDiffDtoUpdatedBy$inboundSchema = z.object({
53
+ _id: z.string(),
54
+ firstName: z.string(),
55
+ lastName: z.nullable(z.string()).optional(),
56
+ externalId: z.string().optional(),
57
+ }).transform((v) => {
58
+ return (0, primitives_js_1.remap)(v, {
59
+ "_id": "id",
60
+ });
61
+ });
62
+ function resourceDiffDtoUpdatedByFromJSON(jsonString) {
63
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ResourceDiffDtoUpdatedBy$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ResourceDiffDtoUpdatedBy' from JSON`);
64
+ }
65
+ /** @internal */
66
+ exports.ResourceDiffDtoSourceResource$inboundSchema = z.object({
67
+ id: z.nullable(z.string()).optional(),
68
+ name: z.nullable(z.string()).optional(),
69
+ updatedBy: z.nullable(z.lazy(() => exports.ResourceDiffDtoUpdatedBy$inboundSchema))
70
+ .optional(),
71
+ updatedAt: z.nullable(z.string().datetime({ offset: true }).transform(v => new Date(v))).optional(),
72
+ });
73
+ function resourceDiffDtoSourceResourceFromJSON(jsonString) {
74
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ResourceDiffDtoSourceResource$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ResourceDiffDtoSourceResource' from JSON`);
75
+ }
76
+ /** @internal */
77
+ exports.ResourceDiffDtoTargetResourceUpdatedBy$inboundSchema = z.object({
78
+ _id: z.string(),
79
+ firstName: z.string(),
80
+ lastName: z.nullable(z.string()).optional(),
81
+ externalId: z.string().optional(),
82
+ }).transform((v) => {
83
+ return (0, primitives_js_1.remap)(v, {
84
+ "_id": "id",
85
+ });
86
+ });
87
+ function resourceDiffDtoTargetResourceUpdatedByFromJSON(jsonString) {
88
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ResourceDiffDtoTargetResourceUpdatedBy$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ResourceDiffDtoTargetResourceUpdatedBy' from JSON`);
89
+ }
90
+ /** @internal */
91
+ exports.ResourceDiffDtoTargetResource$inboundSchema = z.object({
92
+ id: z.nullable(z.string()).optional(),
93
+ name: z.nullable(z.string()).optional(),
94
+ updatedBy: z.nullable(z.lazy(() => exports.ResourceDiffDtoTargetResourceUpdatedBy$inboundSchema)).optional(),
95
+ updatedAt: z.nullable(z.string().datetime({ offset: true }).transform(v => new Date(v))).optional(),
96
+ });
97
+ function resourceDiffDtoTargetResourceFromJSON(jsonString) {
98
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ResourceDiffDtoTargetResource$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ResourceDiffDtoTargetResource' from JSON`);
99
+ }
100
+ /** @internal */
101
+ exports.Diffs$inboundSchema = z
102
+ .object({
103
+ previous: z.nullable(z.record(z.any())).optional(),
104
+ new: z.nullable(z.record(z.any())).optional(),
105
+ });
106
+ function diffsFromJSON(jsonString) {
107
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.Diffs$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Diffs' from JSON`);
108
+ }
109
+ /** @internal */
110
+ exports.ResourceDiffDto$inboundSchema = z.object({
111
+ sourceResource: z.nullable(z.lazy(() => exports.ResourceDiffDtoSourceResource$inboundSchema)).optional(),
112
+ targetResource: z.nullable(z.lazy(() => exports.ResourceDiffDtoTargetResource$inboundSchema)).optional(),
113
+ resourceType: resourcetypeenum_js_1.ResourceTypeEnum$inboundSchema,
114
+ action: diffactionenum_js_1.DiffActionEnum$inboundSchema,
115
+ diffs: z.lazy(() => exports.Diffs$inboundSchema).optional(),
116
+ stepType: z.string().optional(),
117
+ previousIndex: z.number().optional(),
118
+ newIndex: z.number().optional(),
119
+ });
120
+ function resourceDiffDtoFromJSON(jsonString) {
121
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ResourceDiffDto$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ResourceDiffDto' from JSON`);
122
+ }
123
+ //# sourceMappingURL=resourcediffdto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"resourcediffdto.js","sourceRoot":"","sources":["../../src/models/components/resourcediffdto.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAyKH,4EAQC;AAiBD,sFAQC;AAkBD,wGASC;AAkBD,sFAQC;AASD,sCAQC;AAsBD,0DAQC;AA5SD,0CAA4B;AAC5B,2DAA0D;AAC1D,qDAAiD;AAGjD,2DAG6B;AAC7B,+DAG+B;AA2I/B,gBAAgB;AACH,QAAA,sCAAsC,GAI/C,CAAC,CAAC,MAAM,CAAC;IACX,GAAG,EAAE,CAAC,CAAC,MAAM,EAAE;IACf,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE;IACrB,QAAQ,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IAC3C,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAClC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,KAAK,EAAE,IAAI;KACZ,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH,SAAgB,gCAAgC,CAC9C,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,E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AkB;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"}
@@ -0,0 +1,133 @@
1
+ import * as z from "zod/v3";
2
+ import { Result as SafeParseResult } from "../../types/fp.js";
3
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
4
+ import { DiffSummaryDto } from "./diffsummarydto.js";
5
+ import { ResourceDependencyDto } from "./resourcedependencydto.js";
6
+ import { ResourceDiffDto } from "./resourcediffdto.js";
7
+ import { ResourceTypeEnum } from "./resourcetypeenum.js";
8
+ /**
9
+ * User who last updated the resource
10
+ */
11
+ export type ResourceDiffResultDtoSourceResourceUpdatedBy = {
12
+ /**
13
+ * User ID
14
+ */
15
+ id: string;
16
+ /**
17
+ * User first name
18
+ */
19
+ firstName: string;
20
+ /**
21
+ * User last name
22
+ */
23
+ lastName?: string | null | undefined;
24
+ /**
25
+ * User external ID
26
+ */
27
+ externalId?: string | undefined;
28
+ };
29
+ /**
30
+ * Source resource information
31
+ */
32
+ export type SourceResource = {
33
+ /**
34
+ * Resource ID (workflow ID or step ID)
35
+ */
36
+ id?: string | null | undefined;
37
+ /**
38
+ * Resource name (workflow name or step name)
39
+ */
40
+ name?: string | null | undefined;
41
+ /**
42
+ * User who last updated the resource
43
+ */
44
+ updatedBy?: ResourceDiffResultDtoSourceResourceUpdatedBy | null | undefined;
45
+ /**
46
+ * When the resource was last updated
47
+ */
48
+ updatedAt?: Date | null | undefined;
49
+ };
50
+ /**
51
+ * User who last updated the resource
52
+ */
53
+ export type ResourceDiffResultDtoUpdatedBy = {
54
+ /**
55
+ * User ID
56
+ */
57
+ id: string;
58
+ /**
59
+ * User first name
60
+ */
61
+ firstName: string;
62
+ /**
63
+ * User last name
64
+ */
65
+ lastName?: string | null | undefined;
66
+ /**
67
+ * User external ID
68
+ */
69
+ externalId?: string | undefined;
70
+ };
71
+ /**
72
+ * Target resource information
73
+ */
74
+ export type TargetResource = {
75
+ /**
76
+ * Resource ID (workflow ID or step ID)
77
+ */
78
+ id?: string | null | undefined;
79
+ /**
80
+ * Resource name (workflow name or step name)
81
+ */
82
+ name?: string | null | undefined;
83
+ /**
84
+ * User who last updated the resource
85
+ */
86
+ updatedBy?: ResourceDiffResultDtoUpdatedBy | null | undefined;
87
+ /**
88
+ * When the resource was last updated
89
+ */
90
+ updatedAt?: Date | null | undefined;
91
+ };
92
+ export type ResourceDiffResultDto = {
93
+ /**
94
+ * Type of the layout
95
+ */
96
+ resourceType: ResourceTypeEnum;
97
+ /**
98
+ * Source resource information
99
+ */
100
+ sourceResource?: SourceResource | null | undefined;
101
+ /**
102
+ * Target resource information
103
+ */
104
+ targetResource?: TargetResource | null | undefined;
105
+ /**
106
+ * List of specific changes for this resource
107
+ */
108
+ changes: Array<ResourceDiffDto>;
109
+ /**
110
+ * Summary of changes for this resource
111
+ */
112
+ summary: DiffSummaryDto;
113
+ /**
114
+ * Dependencies that affect this resource
115
+ */
116
+ dependencies?: Array<ResourceDependencyDto> | undefined;
117
+ };
118
+ /** @internal */
119
+ export declare const ResourceDiffResultDtoSourceResourceUpdatedBy$inboundSchema: z.ZodType<ResourceDiffResultDtoSourceResourceUpdatedBy, z.ZodTypeDef, unknown>;
120
+ export declare function resourceDiffResultDtoSourceResourceUpdatedByFromJSON(jsonString: string): SafeParseResult<ResourceDiffResultDtoSourceResourceUpdatedBy, SDKValidationError>;
121
+ /** @internal */
122
+ export declare const SourceResource$inboundSchema: z.ZodType<SourceResource, z.ZodTypeDef, unknown>;
123
+ export declare function sourceResourceFromJSON(jsonString: string): SafeParseResult<SourceResource, SDKValidationError>;
124
+ /** @internal */
125
+ export declare const ResourceDiffResultDtoUpdatedBy$inboundSchema: z.ZodType<ResourceDiffResultDtoUpdatedBy, z.ZodTypeDef, unknown>;
126
+ export declare function resourceDiffResultDtoUpdatedByFromJSON(jsonString: string): SafeParseResult<ResourceDiffResultDtoUpdatedBy, SDKValidationError>;
127
+ /** @internal */
128
+ export declare const TargetResource$inboundSchema: z.ZodType<TargetResource, z.ZodTypeDef, unknown>;
129
+ export declare function targetResourceFromJSON(jsonString: string): SafeParseResult<TargetResource, SDKValidationError>;
130
+ /** @internal */
131
+ export declare const ResourceDiffResultDto$inboundSchema: z.ZodType<ResourceDiffResultDto, z.ZodTypeDef, unknown>;
132
+ export declare function resourceDiffResultDtoFromJSON(jsonString: string): SafeParseResult<ResourceDiffResultDto, SDKValidationError>;
133
+ //# sourceMappingURL=resourcediffresultdto.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"resourcediffresultdto.d.ts","sourceRoot":"","sources":["../../src/models/components/resourcediffresultdto.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAG5B,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EACL,cAAc,EAEf,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,qBAAqB,EAEtB,MAAM,4BAA4B,CAAC;AACpC,OAAO,EACL,eAAe,EAEhB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACL,gBAAgB,EAEjB,MAAM,uBAAuB,CAAC;AAE/B;;GAEG;AACH,MAAM,MAAM,4CAA4C,GAAG;IACzD;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IACX;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACrC;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CACjC,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,cAAc,GAAG;IAC3B;;OAEG;IACH,EAAE,CAAC,EAAE,MA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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.ResourceDiffResultDto$inboundSchema = exports.TargetResource$inboundSchema = exports.ResourceDiffResultDtoUpdatedBy$inboundSchema = exports.SourceResource$inboundSchema = exports.ResourceDiffResultDtoSourceResourceUpdatedBy$inboundSchema = void 0;
40
+ exports.resourceDiffResultDtoSourceResourceUpdatedByFromJSON = resourceDiffResultDtoSourceResourceUpdatedByFromJSON;
41
+ exports.sourceResourceFromJSON = sourceResourceFromJSON;
42
+ exports.resourceDiffResultDtoUpdatedByFromJSON = resourceDiffResultDtoUpdatedByFromJSON;
43
+ exports.targetResourceFromJSON = targetResourceFromJSON;
44
+ exports.resourceDiffResultDtoFromJSON = resourceDiffResultDtoFromJSON;
45
+ const z = __importStar(require("zod/v3"));
46
+ const primitives_js_1 = require("../../lib/primitives.js");
47
+ const schemas_js_1 = require("../../lib/schemas.js");
48
+ const diffsummarydto_js_1 = require("./diffsummarydto.js");
49
+ const resourcedependencydto_js_1 = require("./resourcedependencydto.js");
50
+ const resourcediffdto_js_1 = require("./resourcediffdto.js");
51
+ const resourcetypeenum_js_1 = require("./resourcetypeenum.js");
52
+ /** @internal */
53
+ exports.ResourceDiffResultDtoSourceResourceUpdatedBy$inboundSchema = z.object({
54
+ _id: z.string(),
55
+ firstName: z.string(),
56
+ lastName: z.nullable(z.string()).optional(),
57
+ externalId: z.string().optional(),
58
+ }).transform((v) => {
59
+ return (0, primitives_js_1.remap)(v, {
60
+ "_id": "id",
61
+ });
62
+ });
63
+ function resourceDiffResultDtoSourceResourceUpdatedByFromJSON(jsonString) {
64
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ResourceDiffResultDtoSourceResourceUpdatedBy$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ResourceDiffResultDtoSourceResourceUpdatedBy' from JSON`);
65
+ }
66
+ /** @internal */
67
+ exports.SourceResource$inboundSchema = z.object({
68
+ id: z.nullable(z.string()).optional(),
69
+ name: z.nullable(z.string()).optional(),
70
+ updatedBy: z.nullable(z.lazy(() => exports.ResourceDiffResultDtoSourceResourceUpdatedBy$inboundSchema)).optional(),
71
+ updatedAt: z.nullable(z.string().datetime({ offset: true }).transform(v => new Date(v))).optional(),
72
+ });
73
+ function sourceResourceFromJSON(jsonString) {
74
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.SourceResource$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'SourceResource' from JSON`);
75
+ }
76
+ /** @internal */
77
+ exports.ResourceDiffResultDtoUpdatedBy$inboundSchema = z.object({
78
+ _id: z.string(),
79
+ firstName: z.string(),
80
+ lastName: z.nullable(z.string()).optional(),
81
+ externalId: z.string().optional(),
82
+ }).transform((v) => {
83
+ return (0, primitives_js_1.remap)(v, {
84
+ "_id": "id",
85
+ });
86
+ });
87
+ function resourceDiffResultDtoUpdatedByFromJSON(jsonString) {
88
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ResourceDiffResultDtoUpdatedBy$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ResourceDiffResultDtoUpdatedBy' from JSON`);
89
+ }
90
+ /** @internal */
91
+ exports.TargetResource$inboundSchema = z.object({
92
+ id: z.nullable(z.string()).optional(),
93
+ name: z.nullable(z.string()).optional(),
94
+ updatedBy: z.nullable(z.lazy(() => exports.ResourceDiffResultDtoUpdatedBy$inboundSchema)).optional(),
95
+ updatedAt: z.nullable(z.string().datetime({ offset: true }).transform(v => new Date(v))).optional(),
96
+ });
97
+ function targetResourceFromJSON(jsonString) {
98
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.TargetResource$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetResource' from JSON`);
99
+ }
100
+ /** @internal */
101
+ exports.ResourceDiffResultDto$inboundSchema = z.object({
102
+ resourceType: resourcetypeenum_js_1.ResourceTypeEnum$inboundSchema,
103
+ sourceResource: z.nullable(z.lazy(() => exports.SourceResource$inboundSchema))
104
+ .optional(),
105
+ targetResource: z.nullable(z.lazy(() => exports.TargetResource$inboundSchema))
106
+ .optional(),
107
+ changes: z.array(resourcediffdto_js_1.ResourceDiffDto$inboundSchema),
108
+ summary: diffsummarydto_js_1.DiffSummaryDto$inboundSchema,
109
+ dependencies: z.array(resourcedependencydto_js_1.ResourceDependencyDto$inboundSchema).optional(),
110
+ });
111
+ function resourceDiffResultDtoFromJSON(jsonString) {
112
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ResourceDiffResultDto$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ResourceDiffResultDto' from JSON`);
113
+ }
114
+ //# sourceMappingURL=resourcediffresultdto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"resourcediffresultdto.js","sourceRoot":"","sources":["../../src/models/components/resourcediffresultdto.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA4JH,oHAcC;AAkBD,wDAQC;AAkBD,wFAQC;AAkBD,wDAQC;AAkBD,sEAQC;AAhRD,0CAA4B;AAC5B,2DAA0D;AAC1D,qDAAiD;AAGjD,2DAG6B;AAC7B,yEAGoC;AACpC,6DAG8B;AAC9B,+DAG+B;AAqH/B,gBAAgB;AACH,QAAA,0DAA0D,GAKjE,CAAC,CAAC,MAAM,CAAC;IACX,GAAG,EAAE,CAAC,CAAC,MAAM,EAAE;IACf,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE;IACrB,QAAQ,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IAC3C,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAClC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,KAAK,EAAE,IAAI;KACZ,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEL,SAAgB,oDAAoD,CAClE,UAAkB;IAKlB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CACJ,kEAA0D,CAAC,KAAK,CAC9D,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CACd,EACH,0EAA0E,CAC3E,CAAC;AACJ,CAAC;AAED,gBAAgB;AACH,QAAA,4BAA4B,GAIrC,CAAC,CAAC,MAAM,CAAC;IACX,EAAE,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IACrC,IAA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AE,CAAC,oCAA4B,CAAC,CAAC;SACnE,QAAQ,EAAE;IACb,OAAO,EAAE,CAAC,CAAC,KAAK,CAAC,kDAA6B,CAAC;IAC/C,OAAO,EAAE,gDAA4B;IACrC,YAAY,EAAE,CAAC,CAAC,KAAK,CAAC,8DAAmC,CAAC,CAAC,QAAQ,EAAE;CACtE,CAAC,CAAC;AAEH,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"}
@@ -0,0 +1,21 @@
1
+ import * as z from "zod/v3";
2
+ import { ResourceTypeEnum } from "./resourcetypeenum.js";
3
+ export type ResourceToPublishDto = {
4
+ /**
5
+ * Type of the layout
6
+ */
7
+ resourceType: ResourceTypeEnum;
8
+ /**
9
+ * Unique identifier of the resource to publish
10
+ */
11
+ resourceId: string;
12
+ };
13
+ /** @internal */
14
+ export type ResourceToPublishDto$Outbound = {
15
+ resourceType: string;
16
+ resourceId: string;
17
+ };
18
+ /** @internal */
19
+ export declare const ResourceToPublishDto$outboundSchema: z.ZodType<ResourceToPublishDto$Outbound, z.ZodTypeDef, ResourceToPublishDto>;
20
+ export declare function resourceToPublishDtoToJSON(resourceToPublishDto: ResourceToPublishDto): string;
21
+ //# sourceMappingURL=resourcetopublishdto.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"resourcetopublishdto.d.ts","sourceRoot":"","sources":["../../src/models/components/resourcetopublishdto.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EACL,gBAAgB,EAEjB,MAAM,uBAAuB,CAAC;AAE/B,MAAM,MAAM,oBAAoB,GAAG;IACjC;;OAEG;IACH,YAAY,EAAE,gBAAgB,CAAC;IAC/B;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,gBAAgB;AAChB,MAAM,MAAM,6BAA6B,GAAG;IAC1C,YAAY,EAAE,MAAM,CAAC;IACrB,UAAU,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,mCAAmC,EAAE,CAAC,CAAC,OAAO,CACzD,6BAA6B,EAC7B,CAAC,CAAC,UAAU,EACZ,oBAAoB,CAIpB,CAAC;AAEH,wBAAgB,0BAA0B,CACxC,oBAAoB,EAAE,oBAAoB,GACzC,MAAM,CAIR"}
@@ -0,0 +1,51 @@
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.ResourceToPublishDto$outboundSchema = void 0;
40
+ exports.resourceToPublishDtoToJSON = resourceToPublishDtoToJSON;
41
+ const z = __importStar(require("zod/v3"));
42
+ const resourcetypeenum_js_1 = require("./resourcetypeenum.js");
43
+ /** @internal */
44
+ exports.ResourceToPublishDto$outboundSchema = z.object({
45
+ resourceType: resourcetypeenum_js_1.ResourceTypeEnum$outboundSchema,
46
+ resourceId: z.string(),
47
+ });
48
+ function resourceToPublishDtoToJSON(resourceToPublishDto) {
49
+ return JSON.stringify(exports.ResourceToPublishDto$outboundSchema.parse(resourceToPublishDto));
50
+ }
51
+ //# sourceMappingURL=resourcetopublishdto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"resourcetopublishdto.js","sourceRoot":"","sources":["../../src/models/components/resourcetopublishdto.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAmCH,gEAMC;AAvCD,0CAA4B;AAC5B,+DAG+B;AAmB/B,gBAAgB;AACH,QAAA,mCAAmC,GAI5C,CAAC,CAAC,MAAM,CAAC;IACX,YAAY,EAAE,qDAA+B;IAC7C,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE;CACvB,CAAC,CAAC;AAEH,SAAgB,0BAA0B,CACxC,oBAA0C;IAE1C,OAAO,IAAI,CAAC,SAAS,CACnB,2CAAmC,CAAC,KAAK,CAAC,oBAAoB,CAAC,CAChE,CAAC;AACJ,CAAC"}
@@ -14,4 +14,6 @@ export declare const ResourceTypeEnum: {
14
14
  export type ResourceTypeEnum = ClosedEnum<typeof ResourceTypeEnum>;
15
15
  /** @internal */
16
16
  export declare const ResourceTypeEnum$inboundSchema: z.ZodNativeEnum<typeof ResourceTypeEnum>;
17
+ /** @internal */
18
+ export declare const ResourceTypeEnum$outboundSchema: z.ZodNativeEnum<typeof ResourceTypeEnum>;
17
19
  //# sourceMappingURL=resourcetypeenum.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"resourcetypeenum.d.ts","sourceRoot":"","sources":["../../src/models/components/resourcetypeenum.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAElD;;GAEG;AACH,eAAO,MAAM,gBAAgB;;;;CAInB,CAAC;AACX;;GAEG;AACH,MAAM,MAAM,gBAAgB,GAAG,UAAU,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAEnE,gBAAgB;AAChB,eAAO,MAAM,8BAA8B,EAAE,CAAC,CAAC,aAAa,CAC1D,OAAO,gBAAgB,CACS,CAAC"}
1
+ {"version":3,"file":"resourcetypeenum.d.ts","sourceRoot":"","sources":["../../src/models/components/resourcetypeenum.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAElD;;GAEG;AACH,eAAO,MAAM,gBAAgB;;;;CAInB,CAAC;AACX;;GAEG;AACH,MAAM,MAAM,gBAAgB,GAAG,UAAU,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAEnE,gBAAgB;AAChB,eAAO,MAAM,8BAA8B,EAAE,CAAC,CAAC,aAAa,CAC1D,OAAO,gBAAgB,CACS,CAAC;AACnC,gBAAgB;AAChB,eAAO,MAAM,+BAA+B,EAAE,CAAC,CAAC,aAAa,CAC3D,OAAO,gBAAgB,CACS,CAAC"}