@novu/api 3.14.1 → 3.14.2

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 (130) hide show
  1. package/jsr.json +1 -1
  2. package/lib/config.d.ts +3 -3
  3. package/lib/config.js +3 -3
  4. package/models/components/activitynotificationjobresponsedto.d.ts +1 -0
  5. package/models/components/activitynotificationjobresponsedto.d.ts.map +1 -1
  6. package/models/components/activitynotificationjobresponsedto.js +1 -0
  7. package/models/components/activitynotificationjobresponsedto.js.map +1 -1
  8. package/models/components/channelsettingsdto.d.ts +2 -2
  9. package/models/components/channelsettingsdto.d.ts.map +1 -1
  10. package/models/components/channelsettingsdto.js +2 -2
  11. package/models/components/channelsettingsdto.js.map +1 -1
  12. package/models/components/createworkflowdto.d.ts +5 -4
  13. package/models/components/createworkflowdto.d.ts.map +1 -1
  14. package/models/components/createworkflowdto.js +3 -0
  15. package/models/components/createworkflowdto.js.map +1 -1
  16. package/models/components/emailcontroldto.d.ts +0 -20
  17. package/models/components/emailcontroldto.d.ts.map +1 -1
  18. package/models/components/emailcontroldto.js +1 -14
  19. package/models/components/emailcontroldto.js.map +1 -1
  20. package/models/components/emailstepresponsedto.d.ts +0 -17
  21. package/models/components/emailstepresponsedto.d.ts.map +1 -1
  22. package/models/components/emailstepresponsedto.js +1 -11
  23. package/models/components/emailstepresponsedto.js.map +1 -1
  24. package/models/components/httpmethodenum.d.ts +21 -0
  25. package/models/components/httpmethodenum.d.ts.map +1 -0
  26. package/models/components/httpmethodenum.js +55 -0
  27. package/models/components/httpmethodenum.js.map +1 -0
  28. package/models/components/httprequestcontroldto.d.ts +56 -0
  29. package/models/components/httprequestcontroldto.d.ts.map +1 -0
  30. package/models/components/httprequestcontroldto.js +72 -0
  31. package/models/components/httprequestcontroldto.js.map +1 -0
  32. package/models/components/httprequestcontrolsmetadataresponsedto.d.ts +25 -0
  33. package/models/components/httprequestcontrolsmetadataresponsedto.d.ts.map +1 -0
  34. package/models/components/httprequestcontrolsmetadataresponsedto.js +54 -0
  35. package/models/components/httprequestcontrolsmetadataresponsedto.js.map +1 -0
  36. package/models/components/httprequestkeyvaluepairdto.d.ts +25 -0
  37. package/models/components/httprequestkeyvaluepairdto.d.ts.map +1 -0
  38. package/models/components/httprequestkeyvaluepairdto.js +60 -0
  39. package/models/components/httprequestkeyvaluepairdto.js.map +1 -0
  40. package/models/components/httprequeststepresponsedto.d.ts +109 -0
  41. package/models/components/httprequeststepresponsedto.d.ts.map +1 -0
  42. package/models/components/httprequeststepresponsedto.js +86 -0
  43. package/models/components/httprequeststepresponsedto.js.map +1 -0
  44. package/models/components/httprequeststepupsertdto.d.ts +53 -0
  45. package/models/components/httprequeststepupsertdto.d.ts.map +1 -0
  46. package/models/components/httprequeststepupsertdto.js +68 -0
  47. package/models/components/httprequeststepupsertdto.js.map +1 -0
  48. package/models/components/inappstepupsertdto.d.ts +4 -4
  49. package/models/components/inappstepupsertdto.d.ts.map +1 -1
  50. package/models/components/inappstepupsertdto.js +5 -5
  51. package/models/components/inappstepupsertdto.js.map +1 -1
  52. package/models/components/index.d.ts +6 -0
  53. package/models/components/index.d.ts.map +1 -1
  54. package/models/components/index.js +6 -0
  55. package/models/components/index.js.map +1 -1
  56. package/models/components/integrationresponsedto.d.ts +4 -4
  57. package/models/components/integrationresponsedto.d.ts.map +1 -1
  58. package/models/components/integrationresponsedto.js +2 -2
  59. package/models/components/integrationresponsedto.js.map +1 -1
  60. package/models/components/layoutcontrolvaluesdto.d.ts +9 -2
  61. package/models/components/layoutcontrolvaluesdto.d.ts.map +1 -1
  62. package/models/components/layoutcontrolvaluesdto.js +10 -2
  63. package/models/components/layoutcontrolvaluesdto.js.map +1 -1
  64. package/models/components/runtimeissuedto.d.ts +1 -16
  65. package/models/components/runtimeissuedto.d.ts.map +1 -1
  66. package/models/components/runtimeissuedto.js +2 -16
  67. package/models/components/runtimeissuedto.js.map +1 -1
  68. package/models/components/subscriberresponsedto.d.ts +4 -4
  69. package/models/components/subscriberresponsedto.d.ts.map +1 -1
  70. package/models/components/subscriberresponsedto.js +4 -4
  71. package/models/components/subscriberresponsedto.js.map +1 -1
  72. package/models/components/subscriberresponsedtooptional.d.ts +8 -8
  73. package/models/components/subscriberresponsedtooptional.d.ts.map +1 -1
  74. package/models/components/subscriberresponsedtooptional.js +8 -8
  75. package/models/components/subscriberresponsedtooptional.js.map +1 -1
  76. package/models/components/uicomponentenum.d.ts +8 -1
  77. package/models/components/uicomponentenum.d.ts.map +1 -1
  78. package/models/components/uicomponentenum.js +8 -1
  79. package/models/components/uicomponentenum.js.map +1 -1
  80. package/models/components/uischemagroupenum.d.ts +1 -0
  81. package/models/components/uischemagroupenum.d.ts.map +1 -1
  82. package/models/components/uischemagroupenum.js +1 -0
  83. package/models/components/uischemagroupenum.js.map +1 -1
  84. package/models/components/updatelayoutdto.d.ts +3 -19
  85. package/models/components/updatelayoutdto.d.ts.map +1 -1
  86. package/models/components/updatelayoutdto.js +3 -12
  87. package/models/components/updatelayoutdto.js.map +1 -1
  88. package/models/components/updatesubscriberchannelrequestdto.d.ts +2 -2
  89. package/models/components/updatesubscriberchannelrequestdto.d.ts.map +1 -1
  90. package/models/components/updatesubscriberchannelrequestdto.js +1 -1
  91. package/models/components/updatesubscriberchannelrequestdto.js.map +1 -1
  92. package/models/components/updateworkflowdto.d.ts +5 -4
  93. package/models/components/updateworkflowdto.d.ts.map +1 -1
  94. package/models/components/updateworkflowdto.js +3 -0
  95. package/models/components/updateworkflowdto.js.map +1 -1
  96. package/models/components/workflowresponsedto.d.ts +3 -2
  97. package/models/components/workflowresponsedto.d.ts.map +1 -1
  98. package/models/components/workflowresponsedto.js +3 -0
  99. package/models/components/workflowresponsedto.js.map +1 -1
  100. package/models/errors/subscriberresponsedto.d.ts +8 -8
  101. package/models/errors/subscriberresponsedto.d.ts.map +1 -1
  102. package/models/errors/subscriberresponsedto.js +8 -12
  103. package/models/errors/subscriberresponsedto.js.map +1 -1
  104. package/package.json +1 -1
  105. package/src/lib/config.ts +3 -3
  106. package/src/models/components/activitynotificationjobresponsedto.ts +1 -0
  107. package/src/models/components/channelsettingsdto.ts +4 -4
  108. package/src/models/components/createworkflowdto.ts +13 -2
  109. package/src/models/components/emailcontroldto.ts +0 -26
  110. package/src/models/components/emailstepresponsedto.ts +0 -26
  111. package/src/models/components/httpmethodenum.ts +30 -0
  112. package/src/models/components/httprequestcontroldto.ts +107 -0
  113. package/src/models/components/httprequestcontrolsmetadataresponsedto.ts +50 -0
  114. package/src/models/components/httprequestkeyvaluepairdto.ts +61 -0
  115. package/src/models/components/httprequeststepresponsedto.ts +191 -0
  116. package/src/models/components/httprequeststepupsertdto.ts +103 -0
  117. package/src/models/components/inappstepupsertdto.ts +9 -17
  118. package/src/models/components/index.ts +6 -0
  119. package/src/models/components/integrationresponsedto.ts +5 -5
  120. package/src/models/components/layoutcontrolvaluesdto.ts +24 -2
  121. package/src/models/components/runtimeissuedto.ts +2 -24
  122. package/src/models/components/subscriberresponsedto.ts +8 -8
  123. package/src/models/components/subscriberresponsedtooptional.ts +16 -16
  124. package/src/models/components/uicomponentenum.ts +8 -1
  125. package/src/models/components/uischemagroupenum.ts +1 -0
  126. package/src/models/components/updatelayoutdto.ts +7 -36
  127. package/src/models/components/updatesubscriberchannelrequestdto.ts +3 -3
  128. package/src/models/components/updateworkflowdto.ts +13 -2
  129. package/src/models/components/workflowresponsedto.ts +9 -1
  130. package/src/models/errors/subscriberresponsedto.ts +16 -16
@@ -0,0 +1,72 @@
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.HttpRequestControlDto$outboundSchema = exports.HttpRequestControlDto$inboundSchema = void 0;
40
+ exports.httpRequestControlDtoToJSON = httpRequestControlDtoToJSON;
41
+ exports.httpRequestControlDtoFromJSON = httpRequestControlDtoFromJSON;
42
+ const z = __importStar(require("zod/v3"));
43
+ const schemas_js_1 = require("../../lib/schemas.js");
44
+ const httpmethodenum_js_1 = require("./httpmethodenum.js");
45
+ const httprequestkeyvaluepairdto_js_1 = require("./httprequestkeyvaluepairdto.js");
46
+ /** @internal */
47
+ exports.HttpRequestControlDto$inboundSchema = z.object({
48
+ method: httpmethodenum_js_1.HttpMethodEnum$inboundSchema,
49
+ url: z.string(),
50
+ headers: z.array(httprequestkeyvaluepairdto_js_1.HttpRequestKeyValuePairDto$inboundSchema).optional(),
51
+ body: z.array(httprequestkeyvaluepairdto_js_1.HttpRequestKeyValuePairDto$inboundSchema).optional(),
52
+ responseBodySchema: z.record(z.any()).optional(),
53
+ enforceSchemaValidation: z.boolean().optional(),
54
+ continueOnFailure: z.boolean().optional(),
55
+ });
56
+ /** @internal */
57
+ exports.HttpRequestControlDto$outboundSchema = z.object({
58
+ method: httpmethodenum_js_1.HttpMethodEnum$outboundSchema,
59
+ url: z.string(),
60
+ headers: z.array(httprequestkeyvaluepairdto_js_1.HttpRequestKeyValuePairDto$outboundSchema).optional(),
61
+ body: z.array(httprequestkeyvaluepairdto_js_1.HttpRequestKeyValuePairDto$outboundSchema).optional(),
62
+ responseBodySchema: z.record(z.any()).optional(),
63
+ enforceSchemaValidation: z.boolean().optional(),
64
+ continueOnFailure: z.boolean().optional(),
65
+ });
66
+ function httpRequestControlDtoToJSON(httpRequestControlDto) {
67
+ return JSON.stringify(exports.HttpRequestControlDto$outboundSchema.parse(httpRequestControlDto));
68
+ }
69
+ function httpRequestControlDtoFromJSON(jsonString) {
70
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.HttpRequestControlDto$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'HttpRequestControlDto' from JSON`);
71
+ }
72
+ //# sourceMappingURL=httprequestcontroldto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"httprequestcontroldto.js","sourceRoot":"","sources":["../../src/models/components/httprequestcontroldto.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAyFH,kEAMC;AACD,sEAQC;AAtGD,0CAA4B;AAC5B,qDAAiD;AAGjD,2DAI6B;AAC7B,mFAKyC;AAiCzC,gBAAgB;AACH,QAAA,mCAAmC,GAI5C,CAAC,CAAC,MAAM,CAAC;IACX,MAAM,EAAE,gDAA4B;IACpC,GAAG,EAAE,CAAC,CAAC,MAAM,EAAE;IACf,OAAO,EAAE,CAAC,CAAC,KAAK,CAAC,wEAAwC,CAAC,CAAC,QAAQ,EAAE;IACrE,IAAI,EAAE,CAAC,CAAC,KAAK,CAAC,wEAAwC,CAAC,CAAC,QAAQ,EAAE;IAClE,kBAAkB,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,CAAC,CAAC,QAAQ,EAAE;IAChD,uBAAuB,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;IAC/C,iBAAiB,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;CAC1C,CAAC,CAAC;AAYH,gBAAgB;AACH,QAAA,oCAAoC,GAI7C,CAAC,CAAC,MAAM,CAAC;IACX,MAAM,EAAE,iDAA6B;IACrC,GAAG,EAAE,CAAC,CAAC,MAAM,EAAE;IACf,OAAO,EAAE,CAAC,CAAC,KAAK,CAAC,yEAAyC,CAAC,CAAC,QAAQ,EAAE;IACtE,IAAI,EAAE,CAAC,CAAC,KAAK,CAAC,yEAAyC,CAAC,CAAC,QAAQ,EAAE;IACnE,kBAAkB,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,CAAC,CAAC,QAAQ,EAAE;IAChD,uBAAuB,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;IAC/C,iBAAiB,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;CAC1C,CAAC,CAAC;AAEH,SAAgB,2BAA2B,CACzC,qBAA4C;IAE5C,OAAO,IAAI,CAAC,SAAS,CACnB,4CAAoC,CAAC,KAAK,CAAC,qBAAqB,CAAC,CAClE,CAAC;AACJ,CAAC;AACD,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,25 @@
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 { HttpRequestControlDto } from "./httprequestcontroldto.js";
5
+ import { UiSchema } from "./uischema.js";
6
+ export type HttpRequestControlsMetadataResponseDto = {
7
+ /**
8
+ * JSON Schema for data
9
+ */
10
+ dataSchema?: {
11
+ [k: string]: any;
12
+ } | undefined;
13
+ /**
14
+ * UI Schema for rendering
15
+ */
16
+ uiSchema?: UiSchema | undefined;
17
+ /**
18
+ * Control values specific to HTTP Request step
19
+ */
20
+ values: HttpRequestControlDto;
21
+ };
22
+ /** @internal */
23
+ export declare const HttpRequestControlsMetadataResponseDto$inboundSchema: z.ZodType<HttpRequestControlsMetadataResponseDto, z.ZodTypeDef, unknown>;
24
+ export declare function httpRequestControlsMetadataResponseDtoFromJSON(jsonString: string): SafeParseResult<HttpRequestControlsMetadataResponseDto, SDKValidationError>;
25
+ //# sourceMappingURL=httprequestcontrolsmetadataresponsedto.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"httprequestcontrolsmetadataresponsedto.d.ts","sourceRoot":"","sources":["../../src/models/components/httprequestcontrolsmetadataresponsedto.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EACL,qBAAqB,EAEtB,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAE,QAAQ,EAA0B,MAAM,eAAe,CAAC;AAEjE,MAAM,MAAM,sCAAsC,GAAG;IACnD;;OAEG;IACH,UAAU,CAAC,EAAE;QAAE,CAAC,CAAC,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,GAAG,SAAS,CAAC;IAC9C;;OAEG;IACH,QAAQ,CAAC,EAAE,QAAQ,GAAG,SAAS,CAAC;IAChC;;OAEG;IACH,MAAM,EAAE,qBAAqB,CAAC;CAC/B,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,oDAAoD,EAAE,CAAC,CAAC,OAAO,CAC1E,sCAAsC,EACtC,CAAC,CAAC,UAAU,EACZ,OAAO,CAKP,CAAC;AAEH,wBAAgB,8CAA8C,CAC5D,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,sCAAsC,EAAE,kBAAkB,CAAC,CAO7E"}
@@ -0,0 +1,54 @@
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.HttpRequestControlsMetadataResponseDto$inboundSchema = void 0;
40
+ exports.httpRequestControlsMetadataResponseDtoFromJSON = httpRequestControlsMetadataResponseDtoFromJSON;
41
+ const z = __importStar(require("zod/v3"));
42
+ const schemas_js_1 = require("../../lib/schemas.js");
43
+ const httprequestcontroldto_js_1 = require("./httprequestcontroldto.js");
44
+ const uischema_js_1 = require("./uischema.js");
45
+ /** @internal */
46
+ exports.HttpRequestControlsMetadataResponseDto$inboundSchema = z.object({
47
+ dataSchema: z.record(z.any()).optional(),
48
+ uiSchema: uischema_js_1.UiSchema$inboundSchema.optional(),
49
+ values: httprequestcontroldto_js_1.HttpRequestControlDto$inboundSchema,
50
+ });
51
+ function httpRequestControlsMetadataResponseDtoFromJSON(jsonString) {
52
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.HttpRequestControlsMetadataResponseDto$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'HttpRequestControlsMetadataResponseDto' from JSON`);
53
+ }
54
+ //# sourceMappingURL=httprequestcontrolsmetadataresponsedto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"httprequestcontrolsmetadataresponsedto.js","sourceRoot":"","sources":["../../src/models/components/httprequestcontrolsmetadataresponsedto.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAsCH,wGASC;AA7CD,0CAA4B;AAC5B,qDAAiD;AAGjD,yEAGoC;AACpC,+CAAiE;AAiBjE,gBAAgB;AACH,QAAA,oDAAoD,GAI7D,CAAC,CAAC,MAAM,CAAC;IACX,UAAU,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,CAAC,CAAC,QAAQ,EAAE;IACxC,QAAQ,EAAE,oCAAsB,CAAC,QAAQ,EAAE;IAC3C,MAAM,EAAE,8DAAmC;CAC5C,CAAC,CAAC;AAEH,SAAgB,8CAA8C,CAC5D,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CACJ,4DAAoD,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAC3E,oEAAoE,CACrE,CAAC;AACJ,CAAC"}
@@ -0,0 +1,25 @@
1
+ import * as z from "zod/v3";
2
+ import { Result as SafeParseResult } from "../../types/fp.js";
3
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
4
+ export type HttpRequestKeyValuePairDto = {
5
+ /**
6
+ * Key of the key-value pair
7
+ */
8
+ key: string;
9
+ /**
10
+ * Value of the key-value pair
11
+ */
12
+ value: string;
13
+ };
14
+ /** @internal */
15
+ export declare const HttpRequestKeyValuePairDto$inboundSchema: z.ZodType<HttpRequestKeyValuePairDto, z.ZodTypeDef, unknown>;
16
+ /** @internal */
17
+ export type HttpRequestKeyValuePairDto$Outbound = {
18
+ key: string;
19
+ value: string;
20
+ };
21
+ /** @internal */
22
+ export declare const HttpRequestKeyValuePairDto$outboundSchema: z.ZodType<HttpRequestKeyValuePairDto$Outbound, z.ZodTypeDef, HttpRequestKeyValuePairDto>;
23
+ export declare function httpRequestKeyValuePairDtoToJSON(httpRequestKeyValuePairDto: HttpRequestKeyValuePairDto): string;
24
+ export declare function httpRequestKeyValuePairDtoFromJSON(jsonString: string): SafeParseResult<HttpRequestKeyValuePairDto, SDKValidationError>;
25
+ //# sourceMappingURL=httprequestkeyvaluepairdto.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"httprequestkeyvaluepairdto.d.ts","sourceRoot":"","sources":["../../src/models/components/httprequestkeyvaluepairdto.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE,MAAM,MAAM,0BAA0B,GAAG;IACvC;;OAEG;IACH,GAAG,EAAE,MAAM,CAAC;IACZ;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,wCAAwC,EAAE,CAAC,CAAC,OAAO,CAC9D,0BAA0B,EAC1B,CAAC,CAAC,UAAU,EACZ,OAAO,CAIP,CAAC;AACH,gBAAgB;AAChB,MAAM,MAAM,mCAAmC,GAAG;IAChD,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,yCAAyC,EAAE,CAAC,CAAC,OAAO,CAC/D,mCAAmC,EACnC,CAAC,CAAC,UAAU,EACZ,0BAA0B,CAI1B,CAAC;AAEH,wBAAgB,gCAAgC,CAC9C,0BAA0B,EAAE,0BAA0B,GACrD,MAAM,CAIR;AACD,wBAAgB,kCAAkC,CAChD,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,0BAA0B,EAAE,kBAAkB,CAAC,CAMjE"}
@@ -0,0 +1,60 @@
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.HttpRequestKeyValuePairDto$outboundSchema = exports.HttpRequestKeyValuePairDto$inboundSchema = void 0;
40
+ exports.httpRequestKeyValuePairDtoToJSON = httpRequestKeyValuePairDtoToJSON;
41
+ exports.httpRequestKeyValuePairDtoFromJSON = httpRequestKeyValuePairDtoFromJSON;
42
+ const z = __importStar(require("zod/v3"));
43
+ const schemas_js_1 = require("../../lib/schemas.js");
44
+ /** @internal */
45
+ exports.HttpRequestKeyValuePairDto$inboundSchema = z.object({
46
+ key: z.string(),
47
+ value: z.string(),
48
+ });
49
+ /** @internal */
50
+ exports.HttpRequestKeyValuePairDto$outboundSchema = z.object({
51
+ key: z.string(),
52
+ value: z.string(),
53
+ });
54
+ function httpRequestKeyValuePairDtoToJSON(httpRequestKeyValuePairDto) {
55
+ return JSON.stringify(exports.HttpRequestKeyValuePairDto$outboundSchema.parse(httpRequestKeyValuePairDto));
56
+ }
57
+ function httpRequestKeyValuePairDtoFromJSON(jsonString) {
58
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.HttpRequestKeyValuePairDto$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'HttpRequestKeyValuePairDto' from JSON`);
59
+ }
60
+ //# sourceMappingURL=httprequestkeyvaluepairdto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"httprequestkeyvaluepairdto.js","sourceRoot":"","sources":["../../src/models/components/httprequestkeyvaluepairdto.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA2CH,4EAMC;AACD,gFAQC;AAxDD,0CAA4B;AAC5B,qDAAiD;AAejD,gBAAgB;AACH,QAAA,wCAAwC,GAIjD,CAAC,CAAC,MAAM,CAAC;IACX,GAAG,EAAE,CAAC,CAAC,MAAM,EAAE;IACf,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;CAClB,CAAC,CAAC;AAOH,gBAAgB;AACH,QAAA,yCAAyC,GAIlD,CAAC,CAAC,MAAM,CAAC;IACX,GAAG,EAAE,CAAC,CAAC,MAAM,EAAE;IACf,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;CAClB,CAAC,CAAC;AAEH,SAAgB,gCAAgC,CAC9C,0BAAsD;IAEtD,OAAO,IAAI,CAAC,SAAS,CACnB,iDAAyC,CAAC,KAAK,CAAC,0BAA0B,CAAC,CAC5E,CAAC;AACJ,CAAC;AACD,SAAgB,kCAAkC,CAChD,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,gDAAwC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACpE,wDAAwD,CACzD,CAAC;AACJ,CAAC"}
@@ -0,0 +1,109 @@
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 { HttpMethodEnum } from "./httpmethodenum.js";
5
+ import { HttpRequestControlsMetadataResponseDto } from "./httprequestcontrolsmetadataresponsedto.js";
6
+ import { HttpRequestKeyValuePairDto } from "./httprequestkeyvaluepairdto.js";
7
+ import { ResourceOriginEnum } from "./resourceoriginenum.js";
8
+ import { StepIssuesDto } from "./stepissuesdto.js";
9
+ /**
10
+ * Control values for the HTTP request step
11
+ */
12
+ export type HttpRequestStepResponseDtoControlValues = {
13
+ /**
14
+ * HTTP method
15
+ */
16
+ method: HttpMethodEnum;
17
+ /**
18
+ * Target URL for the HTTP request
19
+ */
20
+ url: string;
21
+ /**
22
+ * Request headers as key-value pairs
23
+ */
24
+ headers?: Array<HttpRequestKeyValuePairDto> | undefined;
25
+ /**
26
+ * Request body as key-value pairs
27
+ */
28
+ body?: Array<HttpRequestKeyValuePairDto> | undefined;
29
+ /**
30
+ * JSON schema to validate response body against
31
+ */
32
+ responseBodySchema?: {
33
+ [k: string]: any;
34
+ } | undefined;
35
+ /**
36
+ * Whether to enforce response body schema validation
37
+ */
38
+ enforceSchemaValidation?: boolean | undefined;
39
+ /**
40
+ * Whether to continue workflow execution on failure
41
+ */
42
+ continueOnFailure?: boolean | undefined;
43
+ additionalProperties?: {
44
+ [k: string]: any;
45
+ } | undefined;
46
+ };
47
+ export type HttpRequestStepResponseDto = {
48
+ /**
49
+ * Controls metadata for the HTTP request step
50
+ */
51
+ controls: HttpRequestControlsMetadataResponseDto;
52
+ /**
53
+ * Control values for the HTTP request step
54
+ */
55
+ controlValues?: HttpRequestStepResponseDtoControlValues | undefined;
56
+ /**
57
+ * JSON Schema for variables, follows the JSON Schema standard
58
+ */
59
+ variables: {
60
+ [k: string]: any;
61
+ };
62
+ /**
63
+ * Unique identifier of the step
64
+ */
65
+ stepId: string;
66
+ /**
67
+ * Database identifier of the step
68
+ */
69
+ id: string;
70
+ /**
71
+ * Name of the step
72
+ */
73
+ name: string;
74
+ /**
75
+ * Slug of the step
76
+ */
77
+ slug: string;
78
+ /**
79
+ * Type of the step
80
+ */
81
+ type: "http_request";
82
+ /**
83
+ * Origin of the layout
84
+ */
85
+ origin: ResourceOriginEnum;
86
+ /**
87
+ * Workflow identifier
88
+ */
89
+ workflowId: string;
90
+ /**
91
+ * Workflow database identifier
92
+ */
93
+ workflowDatabaseId: string;
94
+ /**
95
+ * Issues associated with the step
96
+ */
97
+ issues?: StepIssuesDto | undefined;
98
+ /**
99
+ * Hash identifying the deployed Cloudflare Worker for this step
100
+ */
101
+ stepResolverHash?: string | undefined;
102
+ };
103
+ /** @internal */
104
+ export declare const HttpRequestStepResponseDtoControlValues$inboundSchema: z.ZodType<HttpRequestStepResponseDtoControlValues, z.ZodTypeDef, unknown>;
105
+ export declare function httpRequestStepResponseDtoControlValuesFromJSON(jsonString: string): SafeParseResult<HttpRequestStepResponseDtoControlValues, SDKValidationError>;
106
+ /** @internal */
107
+ export declare const HttpRequestStepResponseDto$inboundSchema: z.ZodType<HttpRequestStepResponseDto, z.ZodTypeDef, unknown>;
108
+ export declare function httpRequestStepResponseDtoFromJSON(jsonString: string): SafeParseResult<HttpRequestStepResponseDto, SDKValidationError>;
109
+ //# sourceMappingURL=httprequeststepresponsedto.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"httprequeststepresponsedto.d.ts","sourceRoot":"","sources":["../../src/models/components/httprequeststepresponsedto.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAM5B,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,sCAAsC,EAEvC,MAAM,6CAA6C,CAAC;AACrD,OAAO,EACL,0BAA0B,EAE3B,MAAM,iCAAiC,CAAC;AACzC,OAAO,EACL,kBAAkB,EAEnB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,aAAa,EAA+B,MAAM,oBAAoB,CAAC;AAEhF;;GAEG;AACH,MAAM,MAAM,uCAAuC,GAAG;IACpD;;OAEG;IACH,MAAM,EAAE,cAAc,CAAC;IACvB;;OAEG;IACH,GAAG,EAAE,MAAM,CAAC;IACZ;;OAEG;IACH,OAAO,CAAC,EAAE,KAAK,CAAC,0BAA0B,CAAC,GAAG,SAAS,CAAC;IACxD;;OAEG;IACH,IAAI,CAAC,EAAE,KAAK,CAAC,0BAA0B,CAAC,GAAG,SAAS,CAAC;IACrD;;OAEG;IACH,kBAAkB,CAAC,EAAE;QAAE,CAAC,CAAC,EAAE,MAAM,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eAAO,MAAM,wCAAwC,EAAE,CAAC,CAAC,OAAO,CAC9D,0BAA0B,EAC1B,CAAC,CAAC,UAAU,EACZ,OAAO,CAqBP,CAAC;AAEH,wBAAgB,kCAAkC,CAChD,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,0BAA0B,EAAE,kBAAkB,CAAC,CAMjE"}
@@ -0,0 +1,86 @@
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.HttpRequestStepResponseDto$inboundSchema = exports.HttpRequestStepResponseDtoControlValues$inboundSchema = void 0;
40
+ exports.httpRequestStepResponseDtoControlValuesFromJSON = httpRequestStepResponseDtoControlValuesFromJSON;
41
+ exports.httpRequestStepResponseDtoFromJSON = httpRequestStepResponseDtoFromJSON;
42
+ const z = __importStar(require("zod/v3"));
43
+ const primitives_js_1 = require("../../lib/primitives.js");
44
+ const schemas_js_1 = require("../../lib/schemas.js");
45
+ const httpmethodenum_js_1 = require("./httpmethodenum.js");
46
+ const httprequestcontrolsmetadataresponsedto_js_1 = require("./httprequestcontrolsmetadataresponsedto.js");
47
+ const httprequestkeyvaluepairdto_js_1 = require("./httprequestkeyvaluepairdto.js");
48
+ const resourceoriginenum_js_1 = require("./resourceoriginenum.js");
49
+ const stepissuesdto_js_1 = require("./stepissuesdto.js");
50
+ /** @internal */
51
+ exports.HttpRequestStepResponseDtoControlValues$inboundSchema = (0, schemas_js_1.collectExtraKeys)(z.object({
52
+ method: httpmethodenum_js_1.HttpMethodEnum$inboundSchema,
53
+ url: z.string(),
54
+ headers: z.array(httprequestkeyvaluepairdto_js_1.HttpRequestKeyValuePairDto$inboundSchema).optional(),
55
+ body: z.array(httprequestkeyvaluepairdto_js_1.HttpRequestKeyValuePairDto$inboundSchema).optional(),
56
+ responseBodySchema: z.record(z.any()).optional(),
57
+ enforceSchemaValidation: z.boolean().optional(),
58
+ continueOnFailure: z.boolean().optional(),
59
+ }).catchall(z.any()), "additionalProperties", true);
60
+ function httpRequestStepResponseDtoControlValuesFromJSON(jsonString) {
61
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.HttpRequestStepResponseDtoControlValues$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'HttpRequestStepResponseDtoControlValues' from JSON`);
62
+ }
63
+ /** @internal */
64
+ exports.HttpRequestStepResponseDto$inboundSchema = z.object({
65
+ controls: httprequestcontrolsmetadataresponsedto_js_1.HttpRequestControlsMetadataResponseDto$inboundSchema,
66
+ controlValues: z.lazy(() => exports.HttpRequestStepResponseDtoControlValues$inboundSchema).optional(),
67
+ variables: z.record(z.any()),
68
+ stepId: z.string(),
69
+ _id: z.string(),
70
+ name: z.string(),
71
+ slug: z.string(),
72
+ type: z.literal("http_request"),
73
+ origin: resourceoriginenum_js_1.ResourceOriginEnum$inboundSchema,
74
+ workflowId: z.string(),
75
+ workflowDatabaseId: z.string(),
76
+ issues: stepissuesdto_js_1.StepIssuesDto$inboundSchema.optional(),
77
+ stepResolverHash: z.string().optional(),
78
+ }).transform((v) => {
79
+ return (0, primitives_js_1.remap)(v, {
80
+ "_id": "id",
81
+ });
82
+ });
83
+ function httpRequestStepResponseDtoFromJSON(jsonString) {
84
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.HttpRequestStepResponseDto$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'HttpRequestStepResponseDto' from JSON`);
85
+ }
86
+ //# sourceMappingURL=httprequeststepresponsedto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"httprequeststepresponsedto.js","sourceRoot":"","sources":["../../src/models/components/httprequeststepresponsedto.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAyIH,0GAcC;AA6BD,gFAQC;AA1LD,0CAA4B;AAC5B,2DAA0D;AAC1D,qDAG8B;AAG9B,2DAG6B;AAC7B,2GAGqD;AACrD,mFAGyC;AACzC,mEAGiC;AACjC,yDAAgF;AA4FhF,gBAAgB;AACH,QAAA,qDAAqD,GAI9D,IAAA,6BAAiB,EACnB,CAAC,CAAC,MAAM,CAAC;IACP,MAAM,EAAE,gDAA4B;IACpC,GAAG,EAAE,CAAC,CAAC,MAAM,EAAE;IACf,OAAO,EAAE,CAAC,CAAC,KAAK,CAAC,wEAAwC,CAAC,CAAC,QAAQ,EAAE;IACrE,IAAI,EAAE,CAAC,CAAC,KAAK,CAAC,wEAAwC,CAAC,CAAC,QAAQ,EAAE;IAClE,kBAAkB,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,CAAC,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,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,KAAK,EAAE,IAAI;KACZ,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH,SAAgB,kCAAkC,CAChD,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,gDAAwC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACpE,wDAAwD,CACzD,CAAC;AACJ,CAAC"}
@@ -0,0 +1,53 @@
1
+ import * as z from "zod/v3";
2
+ import { HttpRequestControlDto, HttpRequestControlDto$Outbound } from "./httprequestcontroldto.js";
3
+ /**
4
+ * Control values for the HTTP Request step.
5
+ */
6
+ export type HttpRequestStepUpsertDtoControlValues = HttpRequestControlDto | {
7
+ [k: string]: any;
8
+ };
9
+ export type HttpRequestStepUpsertDto = {
10
+ /**
11
+ * Database identifier of the step. Used for updating the step.
12
+ */
13
+ id?: string | undefined;
14
+ /**
15
+ * Unique identifier for the step
16
+ */
17
+ stepId?: string | undefined;
18
+ /**
19
+ * Name of the step
20
+ */
21
+ name: string;
22
+ /**
23
+ * Type of the step
24
+ */
25
+ type: "http_request";
26
+ /**
27
+ * Control values for the HTTP Request step.
28
+ */
29
+ controlValues?: HttpRequestControlDto | {
30
+ [k: string]: any;
31
+ } | undefined;
32
+ };
33
+ /** @internal */
34
+ export type HttpRequestStepUpsertDtoControlValues$Outbound = HttpRequestControlDto$Outbound | {
35
+ [k: string]: any;
36
+ };
37
+ /** @internal */
38
+ export declare const HttpRequestStepUpsertDtoControlValues$outboundSchema: z.ZodType<HttpRequestStepUpsertDtoControlValues$Outbound, z.ZodTypeDef, HttpRequestStepUpsertDtoControlValues>;
39
+ export declare function httpRequestStepUpsertDtoControlValuesToJSON(httpRequestStepUpsertDtoControlValues: HttpRequestStepUpsertDtoControlValues): string;
40
+ /** @internal */
41
+ export type HttpRequestStepUpsertDto$Outbound = {
42
+ _id?: string | undefined;
43
+ stepId?: string | undefined;
44
+ name: string;
45
+ type: "http_request";
46
+ controlValues?: HttpRequestControlDto$Outbound | {
47
+ [k: string]: any;
48
+ } | undefined;
49
+ };
50
+ /** @internal */
51
+ export declare const HttpRequestStepUpsertDto$outboundSchema: z.ZodType<HttpRequestStepUpsertDto$Outbound, z.ZodTypeDef, HttpRequestStepUpsertDto>;
52
+ export declare function httpRequestStepUpsertDtoToJSON(httpRequestStepUpsertDto: HttpRequestStepUpsertDto): string;
53
+ //# sourceMappingURL=httprequeststepupsertdto.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"httprequeststepupsertdto.d.ts","sourceRoot":"","sources":["../../src/models/components/httprequeststepupsertdto.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,OAAO,EACL,qBAAqB,EACrB,8BAA8B,EAE/B,MAAM,4BAA4B,CAAC;AAEpC;;GAEG;AACH,MAAM,MAAM,qCAAqC,GAAG,qBAAqB,GAAG;IAC1E,CAAC,CAAC,EAAE,MAAM,GAAG,GAAG,CAAC;CAClB,CAAC;AAEF,MAAM,MAAM,wBAAwB,GAAG;IACrC;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACxB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC5B;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,IAAI,EAAE,cAAc,CAAC;IACrB;;OAEG;IACH,aAAa,CAAC,EAAE,qBAAqB,GAAG;QAAE,CAAC,CAAC,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,GAAG,SAAS,CAAC;CAC1E,CAAC;AAEF,gBAAgB;AAChB,MAAM,MAAM,8CAA8C,GACtD,8BAA8B,GAC9B;IAAE,CAAC,CAAC,EAAE,MAAM,GAAG,GAAG,CAAA;CAAE,CAAC;AAEzB,gBAAgB;AAChB,eAAO,MAAM,oDAAoD,EAAE,CAAC,CAAC,OAAO,CAC1E,8CAA8C,EAC9C,CAAC,CAAC,UAAU,EACZ,qCAAqC,CAC+B,CAAC;AAEvE,wBAAgB,2CAA2C,CACzD,qCAAqC,EAAE,qCAAqC,GAC3E,MAAM,CAMR;AAED,gBAAgB;AAChB,MAAM,MAAM,iCAAiC,GAAG;IAC9C,GAAG,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACzB,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC5B,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,cAAc,CAAC;IACrB,aAAa,CAAC,EACV,8BAA8B,GAC9B;QAAE,CAAC,CAAC,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,GACpB,SAAS,CAAC;CACf,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,uCAAuC,EAAE,CAAC,CAAC,OAAO,CAC7D,iCAAiC,EACjC,CAAC,CAAC,UAAU,EACZ,wBAAwB,CAcxB,CAAC;AAEH,wBAAgB,8BAA8B,CAC5C,wBAAwB,EAAE,wBAAwB,GACjD,MAAM,CAIR"}
@@ -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 () {
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.HttpRequestStepUpsertDto$outboundSchema = exports.HttpRequestStepUpsertDtoControlValues$outboundSchema = void 0;
40
+ exports.httpRequestStepUpsertDtoControlValuesToJSON = httpRequestStepUpsertDtoControlValuesToJSON;
41
+ exports.httpRequestStepUpsertDtoToJSON = httpRequestStepUpsertDtoToJSON;
42
+ const z = __importStar(require("zod/v3"));
43
+ const primitives_js_1 = require("../../lib/primitives.js");
44
+ const httprequestcontroldto_js_1 = require("./httprequestcontroldto.js");
45
+ /** @internal */
46
+ exports.HttpRequestStepUpsertDtoControlValues$outboundSchema = z.union([httprequestcontroldto_js_1.HttpRequestControlDto$outboundSchema, z.record(z.any())]);
47
+ function httpRequestStepUpsertDtoControlValuesToJSON(httpRequestStepUpsertDtoControlValues) {
48
+ return JSON.stringify(exports.HttpRequestStepUpsertDtoControlValues$outboundSchema.parse(httpRequestStepUpsertDtoControlValues));
49
+ }
50
+ /** @internal */
51
+ exports.HttpRequestStepUpsertDto$outboundSchema = z.object({
52
+ id: z.string().optional(),
53
+ stepId: z.string().optional(),
54
+ name: z.string(),
55
+ type: z.literal("http_request"),
56
+ controlValues: z.union([
57
+ httprequestcontroldto_js_1.HttpRequestControlDto$outboundSchema,
58
+ z.record(z.any()),
59
+ ]).optional(),
60
+ }).transform((v) => {
61
+ return (0, primitives_js_1.remap)(v, {
62
+ id: "_id",
63
+ });
64
+ });
65
+ function httpRequestStepUpsertDtoToJSON(httpRequestStepUpsertDto) {
66
+ return JSON.stringify(exports.HttpRequestStepUpsertDto$outboundSchema.parse(httpRequestStepUpsertDto));
67
+ }
68
+ //# sourceMappingURL=httprequeststepupsertdto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"httprequeststepupsertdto.js","sourceRoot":"","sources":["../../src/models/components/httprequeststepupsertdto.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAoDH,kGAQC;AAkCD,wEAMC;AAlGD,0CAA4B;AAC5B,2DAA0D;AAC1D,yEAIoC;AAqCpC,gBAAgB;AACH,QAAA,oDAAoD,GAI7D,CAAC,CAAC,KAAK,CAAC,CAAC,+DAAoC,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,CAAC,CAAC,CAAC,CAAC;AAEvE,SAAgB,2CAA2C,CACzD,qCAA4E;IAE5E,OAAO,IAAI,CAAC,SAAS,CACnB,4DAAoD,CAAC,KAAK,CACxD,qCAAqC,CACtC,CACF,CAAC;AACJ,CAAC;AAcD,gBAAgB;AACH,QAAA,uCAAuC,GAIhD,CAAC,CAAC,MAAM,CAAC;IACX,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACzB,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC7B,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,cAAc,CAAC;IAC/B,aAAa,EAAE,CAAC,CAAC,KAAK,CAAC;QACrB,+DAAoC;QACpC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,CAAC;KAClB,CAAC,CAAC,QAAQ,EAAE;CACd,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,EAAE,EAAE,KAAK;KACV,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH,SAAgB,8BAA8B,CAC5C,wBAAkD;IAElD,OAAO,IAAI,CAAC,SAAS,CACnB,+CAAuC,CAAC,KAAK,CAAC,wBAAwB,CAAC,CACxE,CAAC;AACJ,CAAC"}
@@ -3,7 +3,7 @@ import { InAppControlDto, InAppControlDto$Outbound } from "./inappcontroldto.js"
3
3
  /**
4
4
  * Control values for the In-App step.
5
5
  */
6
- export type InAppStepUpsertDtoControlValues = InAppControlDto | {
6
+ export type ControlValues = InAppControlDto | {
7
7
  [k: string]: any;
8
8
  };
9
9
  export type InAppStepUpsertDto = {
@@ -31,12 +31,12 @@ export type InAppStepUpsertDto = {
31
31
  } | undefined;
32
32
  };
33
33
  /** @internal */
34
- export type InAppStepUpsertDtoControlValues$Outbound = InAppControlDto$Outbound | {
34
+ export type ControlValues$Outbound = InAppControlDto$Outbound | {
35
35
  [k: string]: any;
36
36
  };
37
37
  /** @internal */
38
- export declare const InAppStepUpsertDtoControlValues$outboundSchema: z.ZodType<InAppStepUpsertDtoControlValues$Outbound, z.ZodTypeDef, InAppStepUpsertDtoControlValues>;
39
- export declare function inAppStepUpsertDtoControlValuesToJSON(inAppStepUpsertDtoControlValues: InAppStepUpsertDtoControlValues): string;
38
+ export declare const ControlValues$outboundSchema: z.ZodType<ControlValues$Outbound, z.ZodTypeDef, ControlValues>;
39
+ export declare function controlValuesToJSON(controlValues: ControlValues): string;
40
40
  /** @internal */
41
41
  export type InAppStepUpsertDto$Outbound = {
42
42
  _id?: string | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"inappstepupsertdto.d.ts","sourceRoot":"","sources":["../../src/models/components/inappstepupsertdto.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,OAAO,EACL,eAAe,EACf,wBAAwB,EAEzB,MAAM,sBAAsB,CAAC;AAE9B;;GAE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