callman-mcp 0.1.0 → 0.2.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 (204) hide show
  1. package/CHANGELOG.md +82 -0
  2. package/README.md +45 -16
  3. package/dist/client/api.d.ts +64 -3
  4. package/dist/client/api.d.ts.map +1 -1
  5. package/dist/client/api.js +67 -2
  6. package/dist/client/api.js.map +1 -1
  7. package/dist/client/errors.d.ts.map +1 -1
  8. package/dist/client/errors.js +33 -7
  9. package/dist/client/errors.js.map +1 -1
  10. package/dist/client/types.d.ts +91 -2
  11. package/dist/client/types.d.ts.map +1 -1
  12. package/dist/context.d.ts +2 -0
  13. package/dist/context.d.ts.map +1 -1
  14. package/dist/context.js +7 -2
  15. package/dist/context.js.map +1 -1
  16. package/dist/domain/contracts.d.ts +893 -0
  17. package/dist/domain/contracts.d.ts.map +1 -0
  18. package/dist/domain/contracts.js +90 -0
  19. package/dist/domain/contracts.js.map +1 -0
  20. package/dist/domain/diagram/build.d.ts +520 -18
  21. package/dist/domain/diagram/build.d.ts.map +1 -1
  22. package/dist/domain/diagram/build.js +65 -19
  23. package/dist/domain/diagram/build.js.map +1 -1
  24. package/dist/domain/diagram/patch.d.ts +624 -51
  25. package/dist/domain/diagram/patch.d.ts.map +1 -1
  26. package/dist/domain/diagram/patch.js +180 -40
  27. package/dist/domain/diagram/patch.js.map +1 -1
  28. package/dist/domain/diagram/style.d.ts +315 -0
  29. package/dist/domain/diagram/style.d.ts.map +1 -0
  30. package/dist/domain/diagram/style.js +124 -0
  31. package/dist/domain/diagram/style.js.map +1 -0
  32. package/dist/domain/diagram/summarize.d.ts +8 -0
  33. package/dist/domain/diagram/summarize.d.ts.map +1 -1
  34. package/dist/domain/diagram/summarize.js +28 -13
  35. package/dist/domain/diagram/summarize.js.map +1 -1
  36. package/dist/domain/requestIntegrations.d.ts +719 -0
  37. package/dist/domain/requestIntegrations.d.ts.map +1 -0
  38. package/dist/domain/requestIntegrations.js +222 -0
  39. package/dist/domain/requestIntegrations.js.map +1 -0
  40. package/dist/domain/requestShape.d.ts +1350 -152
  41. package/dist/domain/requestShape.d.ts.map +1 -1
  42. package/dist/domain/requestShape.js +336 -121
  43. package/dist/domain/requestShape.js.map +1 -1
  44. package/dist/domain/resolve.d.ts +2 -1
  45. package/dist/domain/resolve.d.ts.map +1 -1
  46. package/dist/domain/resolve.js +5 -1
  47. package/dist/domain/resolve.js.map +1 -1
  48. package/dist/domain/scenario/build.d.ts +82 -26
  49. package/dist/domain/scenario/build.d.ts.map +1 -1
  50. package/dist/domain/scenario/build.js +196 -65
  51. package/dist/domain/scenario/build.js.map +1 -1
  52. package/dist/domain/scenario/nodeConfig.d.ts +11 -0
  53. package/dist/domain/scenario/nodeConfig.d.ts.map +1 -0
  54. package/dist/domain/scenario/nodeConfig.js +251 -0
  55. package/dist/domain/scenario/nodeConfig.js.map +1 -0
  56. package/dist/domain/scenario/summarize.d.ts +145 -25
  57. package/dist/domain/scenario/summarize.d.ts.map +1 -1
  58. package/dist/domain/scenario/summarize.js +84 -29
  59. package/dist/domain/scenario/summarize.js.map +1 -1
  60. package/dist/lib/mask.d.ts +0 -18
  61. package/dist/lib/mask.d.ts.map +1 -1
  62. package/dist/lib/mask.js +2 -44
  63. package/dist/lib/mask.js.map +1 -1
  64. package/dist/lib/pagination.d.ts +3 -2
  65. package/dist/lib/pagination.d.ts.map +1 -1
  66. package/dist/lib/pagination.js +13 -8
  67. package/dist/lib/pagination.js.map +1 -1
  68. package/dist/lib/redact.d.ts +12 -0
  69. package/dist/lib/redact.d.ts.map +1 -0
  70. package/dist/lib/redact.js +50 -0
  71. package/dist/lib/redact.js.map +1 -0
  72. package/dist/lib/strict.d.ts +4 -0
  73. package/dist/lib/strict.d.ts.map +1 -0
  74. package/dist/lib/strict.js +14 -0
  75. package/dist/lib/strict.js.map +1 -0
  76. package/dist/prompts/index.js +7 -7
  77. package/dist/prompts/index.js.map +1 -1
  78. package/dist/resources/docs/contracts.d.ts +2 -0
  79. package/dist/resources/docs/contracts.d.ts.map +1 -0
  80. package/dist/resources/docs/contracts.js +74 -0
  81. package/dist/resources/docs/contracts.js.map +1 -0
  82. package/dist/resources/docs/diagramSchema.d.ts +1 -1
  83. package/dist/resources/docs/diagramSchema.d.ts.map +1 -1
  84. package/dist/resources/docs/diagramSchema.js +95 -28
  85. package/dist/resources/docs/diagramSchema.js.map +1 -1
  86. package/dist/resources/docs/overview.d.ts +1 -1
  87. package/dist/resources/docs/overview.d.ts.map +1 -1
  88. package/dist/resources/docs/overview.js +29 -7
  89. package/dist/resources/docs/overview.js.map +1 -1
  90. package/dist/resources/docs/requestSchema.d.ts +1 -1
  91. package/dist/resources/docs/requestSchema.d.ts.map +1 -1
  92. package/dist/resources/docs/requestSchema.js +85 -16
  93. package/dist/resources/docs/requestSchema.js.map +1 -1
  94. package/dist/resources/generated/aiPacks.d.ts +1 -1
  95. package/dist/resources/generated/aiPacks.d.ts.map +1 -1
  96. package/dist/resources/generated/aiPacks.js +3 -2
  97. package/dist/resources/generated/aiPacks.js.map +1 -1
  98. package/dist/resources/index.d.ts.map +1 -1
  99. package/dist/resources/index.js +19 -19
  100. package/dist/resources/index.js.map +1 -1
  101. package/dist/run/executeCollection.d.ts +3 -1
  102. package/dist/run/executeCollection.d.ts.map +1 -1
  103. package/dist/run/executeCollection.js +16 -4
  104. package/dist/run/executeCollection.js.map +1 -1
  105. package/dist/run/summarize.d.ts +17 -6
  106. package/dist/run/summarize.d.ts.map +1 -1
  107. package/dist/run/summarize.js +48 -41
  108. package/dist/run/summarize.js.map +1 -1
  109. package/dist/run/types.d.ts +1 -0
  110. package/dist/run/types.d.ts.map +1 -1
  111. package/dist/server.d.ts +1 -1
  112. package/dist/server.d.ts.map +1 -1
  113. package/dist/server.js +1 -1
  114. package/dist/server.js.map +1 -1
  115. package/dist/tools/catalog.d.ts +1 -1
  116. package/dist/tools/catalog.d.ts.map +1 -1
  117. package/dist/tools/catalog.js +18 -0
  118. package/dist/tools/catalog.js.map +1 -1
  119. package/dist/tools/collections.d.ts.map +1 -1
  120. package/dist/tools/collections.js +53 -41
  121. package/dist/tools/collections.js.map +1 -1
  122. package/dist/tools/contracts.d.ts +4 -0
  123. package/dist/tools/contracts.d.ts.map +1 -0
  124. package/dist/tools/contracts.js +201 -0
  125. package/dist/tools/contracts.js.map +1 -0
  126. package/dist/tools/diagrams.d.ts.map +1 -1
  127. package/dist/tools/diagrams.js +19 -10
  128. package/dist/tools/diagrams.js.map +1 -1
  129. package/dist/tools/environments.d.ts.map +1 -1
  130. package/dist/tools/environments.js +184 -64
  131. package/dist/tools/environments.js.map +1 -1
  132. package/dist/tools/import.d.ts.map +1 -1
  133. package/dist/tools/import.js +111 -20
  134. package/dist/tools/import.js.map +1 -1
  135. package/dist/tools/index.d.ts +2 -1
  136. package/dist/tools/index.d.ts.map +1 -1
  137. package/dist/tools/index.js +19 -1
  138. package/dist/tools/index.js.map +1 -1
  139. package/dist/tools/lookups.d.ts +38 -7
  140. package/dist/tools/lookups.d.ts.map +1 -1
  141. package/dist/tools/lookups.js +113 -10
  142. package/dist/tools/lookups.js.map +1 -1
  143. package/dist/tools/meta.d.ts.map +1 -1
  144. package/dist/tools/meta.js +9 -4
  145. package/dist/tools/meta.js.map +1 -1
  146. package/dist/tools/requests.d.ts.map +1 -1
  147. package/dist/tools/requests.js +138 -50
  148. package/dist/tools/requests.js.map +1 -1
  149. package/dist/tools/run.d.ts.map +1 -1
  150. package/dist/tools/run.js +84 -28
  151. package/dist/tools/run.js.map +1 -1
  152. package/dist/tools/scenarios.d.ts.map +1 -1
  153. package/dist/tools/scenarios.js +238 -75
  154. package/dist/tools/scenarios.js.map +1 -1
  155. package/dist/tools/shared.d.ts +1 -0
  156. package/dist/tools/shared.d.ts.map +1 -1
  157. package/dist/tools/shared.js +9 -1
  158. package/dist/tools/shared.js.map +1 -1
  159. package/dist/tools/workspaces.d.ts.map +1 -1
  160. package/dist/tools/workspaces.js +44 -7
  161. package/dist/tools/workspaces.js.map +1 -1
  162. package/dist-cjs/client/api.js +67 -2
  163. package/dist-cjs/client/errors.js +33 -7
  164. package/dist-cjs/context.js +7 -2
  165. package/dist-cjs/domain/contracts.js +93 -0
  166. package/dist-cjs/domain/diagram/build.js +71 -20
  167. package/dist-cjs/domain/diagram/patch.js +179 -39
  168. package/dist-cjs/domain/diagram/style.js +130 -0
  169. package/dist-cjs/domain/diagram/summarize.js +28 -13
  170. package/dist-cjs/domain/requestIntegrations.js +228 -0
  171. package/dist-cjs/domain/requestShape.js +342 -121
  172. package/dist-cjs/domain/resolve.js +5 -1
  173. package/dist-cjs/domain/scenario/build.js +197 -65
  174. package/dist-cjs/domain/scenario/nodeConfig.js +260 -0
  175. package/dist-cjs/domain/scenario/summarize.js +86 -29
  176. package/dist-cjs/lib/mask.js +3 -48
  177. package/dist-cjs/lib/pagination.js +13 -8
  178. package/dist-cjs/lib/redact.js +53 -0
  179. package/dist-cjs/lib/strict.js +18 -0
  180. package/dist-cjs/prompts/index.js +7 -7
  181. package/dist-cjs/resources/docs/contracts.js +76 -0
  182. package/dist-cjs/resources/docs/diagramSchema.js +95 -28
  183. package/dist-cjs/resources/docs/overview.js +29 -7
  184. package/dist-cjs/resources/docs/requestSchema.js +85 -16
  185. package/dist-cjs/resources/generated/aiPacks.js +3 -2
  186. package/dist-cjs/resources/index.js +17 -17
  187. package/dist-cjs/run/executeCollection.js +16 -4
  188. package/dist-cjs/run/summarize.js +48 -41
  189. package/dist-cjs/server.js +1 -1
  190. package/dist-cjs/tools/catalog.js +18 -0
  191. package/dist-cjs/tools/collections.js +52 -40
  192. package/dist-cjs/tools/contracts.js +204 -0
  193. package/dist-cjs/tools/diagrams.js +19 -10
  194. package/dist-cjs/tools/environments.js +182 -62
  195. package/dist-cjs/tools/import.js +107 -16
  196. package/dist-cjs/tools/index.js +21 -2
  197. package/dist-cjs/tools/lookups.js +123 -11
  198. package/dist-cjs/tools/meta.js +9 -4
  199. package/dist-cjs/tools/requests.js +134 -46
  200. package/dist-cjs/tools/run.js +82 -26
  201. package/dist-cjs/tools/scenarios.js +235 -72
  202. package/dist-cjs/tools/shared.js +11 -2
  203. package/dist-cjs/tools/workspaces.js +43 -6
  204. package/package.json +2 -2
@@ -1,86 +1,127 @@
1
1
  import { type KeyValueRow, type PersistedRequestBody } from "callman-core";
2
2
  import { z } from "zod";
3
3
  import type { ApiRequest, RequestAuth } from "../client/types.js";
4
+ import { type ConnectionResolver } from "./requestIntegrations.js";
4
5
  export declare const HTTP_METHODS: readonly ["GET", "POST", "PUT", "PATCH", "DELETE", "HEAD", "OPTIONS", "TRACE"];
5
6
  export declare const kvSchema: z.ZodObject<{
6
7
  key: z.ZodString;
7
8
  value: z.ZodDefault<z.ZodString>;
8
9
  enabled: z.ZodOptional<z.ZodBoolean>;
10
+ }, "strict", z.ZodTypeAny, {
11
+ key: string;
12
+ value: string;
13
+ enabled?: boolean | undefined;
14
+ }, {
15
+ key: string;
16
+ value?: string | undefined;
17
+ enabled?: boolean | undefined;
18
+ }>;
19
+ export declare const pathVariableSchema: z.ZodObject<{
20
+ key: z.ZodString;
21
+ value: z.ZodDefault<z.ZodString>;
9
22
  description: z.ZodOptional<z.ZodString>;
10
- }, "strip", z.ZodTypeAny, {
23
+ }, "strict", z.ZodTypeAny, {
11
24
  key: string;
12
25
  value: string;
13
26
  description?: string | undefined;
14
- enabled?: boolean | undefined;
15
27
  }, {
16
28
  key: string;
17
29
  value?: string | undefined;
18
30
  description?: string | undefined;
19
- enabled?: boolean | undefined;
20
31
  }>;
21
- export declare const bodyInputSchema: z.ZodUnion<[z.ZodObject<{
32
+ export declare const bodyInputSchema: z.ZodUnion<[z.ZodString, z.ZodObject<{
22
33
  mode: z.ZodLiteral<"raw">;
23
34
  raw: z.ZodString;
24
35
  language: z.ZodOptional<z.ZodEnum<["json", "xml", "text", "html"]>>;
25
- }, "strip", z.ZodTypeAny, {
26
- mode: "raw";
36
+ rawLanguage: z.ZodOptional<z.ZodEnum<["json", "xml", "text", "html"]>>;
37
+ }, "strict", z.ZodTypeAny, {
27
38
  raw: string;
39
+ mode: "raw";
28
40
  language?: "text" | "json" | "xml" | "html" | undefined;
41
+ rawLanguage?: "text" | "json" | "xml" | "html" | undefined;
29
42
  }, {
30
- mode: "raw";
31
43
  raw: string;
44
+ mode: "raw";
32
45
  language?: "text" | "json" | "xml" | "html" | undefined;
46
+ rawLanguage?: "text" | "json" | "xml" | "html" | undefined;
33
47
  }>, z.ZodObject<{
34
48
  mode: z.ZodEnum<["formdata", "urlencoded"]>;
35
- entries: z.ZodArray<z.ZodObject<{
49
+ entries: z.ZodOptional<z.ZodArray<z.ZodObject<{
36
50
  key: z.ZodString;
37
51
  value: z.ZodDefault<z.ZodString>;
38
52
  enabled: z.ZodOptional<z.ZodBoolean>;
39
- description: z.ZodOptional<z.ZodString>;
40
- }, "strip", z.ZodTypeAny, {
53
+ }, "strict", z.ZodTypeAny, {
41
54
  key: string;
42
55
  value: string;
43
- description?: string | undefined;
44
56
  enabled?: boolean | undefined;
45
57
  }, {
46
58
  key: string;
47
59
  value?: string | undefined;
48
- description?: string | undefined;
49
60
  enabled?: boolean | undefined;
50
- }>, "many">;
51
- }, "strip", z.ZodTypeAny, {
52
- entries: {
61
+ }>, "many">>;
62
+ formEntries: z.ZodOptional<z.ZodArray<z.ZodObject<{
63
+ key: z.ZodString;
64
+ value: z.ZodDefault<z.ZodString>;
65
+ enabled: z.ZodOptional<z.ZodBoolean>;
66
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
67
+ key: z.ZodString;
68
+ value: z.ZodDefault<z.ZodString>;
69
+ enabled: z.ZodOptional<z.ZodBoolean>;
70
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
71
+ key: z.ZodString;
72
+ value: z.ZodDefault<z.ZodString>;
73
+ enabled: z.ZodOptional<z.ZodBoolean>;
74
+ }, z.ZodTypeAny, "passthrough">>, "many">>;
75
+ }, "strict", z.ZodTypeAny, {
76
+ mode: "formdata" | "urlencoded";
77
+ entries?: {
53
78
  key: string;
54
79
  value: string;
55
- description?: string | undefined;
56
80
  enabled?: boolean | undefined;
57
- }[];
58
- mode: "formdata" | "urlencoded";
81
+ }[] | undefined;
82
+ formEntries?: z.objectOutputType<{
83
+ key: z.ZodString;
84
+ value: z.ZodDefault<z.ZodString>;
85
+ enabled: z.ZodOptional<z.ZodBoolean>;
86
+ }, z.ZodTypeAny, "passthrough">[] | undefined;
59
87
  }, {
60
- entries: {
88
+ mode: "formdata" | "urlencoded";
89
+ entries?: {
61
90
  key: string;
62
91
  value?: string | undefined;
63
- description?: string | undefined;
64
92
  enabled?: boolean | undefined;
65
- }[];
66
- mode: "formdata" | "urlencoded";
93
+ }[] | undefined;
94
+ formEntries?: z.objectInputType<{
95
+ key: z.ZodString;
96
+ value: z.ZodDefault<z.ZodString>;
97
+ enabled: z.ZodOptional<z.ZodBoolean>;
98
+ }, z.ZodTypeAny, "passthrough">[] | undefined;
99
+ }>, z.ZodObject<{
100
+ mode: z.ZodLiteral<"json">;
101
+ json: z.ZodUnknown;
102
+ }, "strict", z.ZodTypeAny, {
103
+ mode: "json";
104
+ json?: unknown;
105
+ }, {
106
+ mode: "json";
107
+ json?: unknown;
67
108
  }>, z.ZodObject<{
68
109
  mode: z.ZodLiteral<"none">;
69
- }, "strip", z.ZodTypeAny, {
110
+ }, "strict", z.ZodTypeAny, {
70
111
  mode: "none";
71
112
  }, {
72
113
  mode: "none";
73
- }>, z.ZodUnknown]>;
114
+ }>, z.ZodArray<z.ZodUnknown, "many">, z.ZodNumber, z.ZodBoolean, z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodUnknown>, Record<string, unknown>, Record<string, unknown>>]>;
74
115
  export declare const authInputSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
75
116
  type: z.ZodLiteral<"none">;
76
- }, "strip", z.ZodTypeAny, {
117
+ }, "strict", z.ZodTypeAny, {
77
118
  type: "none";
78
119
  }, {
79
120
  type: "none";
80
121
  }>, z.ZodObject<{
81
122
  type: z.ZodLiteral<"bearer">;
82
123
  token: z.ZodString;
83
- }, "strip", z.ZodTypeAny, {
124
+ }, "strict", z.ZodTypeAny, {
84
125
  token: string;
85
126
  type: "bearer";
86
127
  }, {
@@ -90,7 +131,7 @@ export declare const authInputSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObje
90
131
  type: z.ZodLiteral<"basic">;
91
132
  username: z.ZodString;
92
133
  password: z.ZodDefault<z.ZodString>;
93
- }, "strip", z.ZodTypeAny, {
134
+ }, "strict", z.ZodTypeAny, {
94
135
  type: "basic";
95
136
  username: string;
96
137
  password: string;
@@ -103,7 +144,7 @@ export declare const authInputSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObje
103
144
  key: z.ZodString;
104
145
  value: z.ZodString;
105
146
  location: z.ZodDefault<z.ZodEnum<["header", "query"]>>;
106
- }, "strip", z.ZodTypeAny, {
147
+ }, "strict", z.ZodTypeAny, {
107
148
  key: string;
108
149
  value: string;
109
150
  type: "apiKey";
@@ -125,7 +166,7 @@ export declare const authInputSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObje
125
166
  refreshToken: z.ZodDefault<z.ZodString>;
126
167
  clientAuth: z.ZodDefault<z.ZodEnum<["basic", "body"]>>;
127
168
  audience: z.ZodDefault<z.ZodString>;
128
- }, "strip", z.ZodTypeAny, {
169
+ }, "strict", z.ZodTypeAny, {
129
170
  type: "oauth2";
130
171
  audience: string;
131
172
  scope: string;
@@ -151,6 +192,357 @@ export declare const authInputSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObje
151
192
  clientAuth?: "basic" | "body" | undefined;
152
193
  }>]>;
153
194
  export declare const requestInputSchema: z.ZodObject<{
195
+ database: z.ZodOptional<z.ZodObject<{
196
+ preRequest: z.ZodOptional<z.ZodNullable<z.ZodObject<{
197
+ enabled: z.ZodOptional<z.ZodBoolean>;
198
+ connectionId: z.ZodString;
199
+ query: z.ZodString;
200
+ }, "strict", z.ZodTypeAny, {
201
+ query: string;
202
+ connectionId: string;
203
+ enabled?: boolean | undefined;
204
+ }, {
205
+ query: string;
206
+ connectionId: string;
207
+ enabled?: boolean | undefined;
208
+ }>>>;
209
+ postResponse: z.ZodOptional<z.ZodNullable<z.ZodObject<{
210
+ enabled: z.ZodOptional<z.ZodBoolean>;
211
+ connectionId: z.ZodString;
212
+ query: z.ZodString;
213
+ }, "strict", z.ZodTypeAny, {
214
+ query: string;
215
+ connectionId: string;
216
+ enabled?: boolean | undefined;
217
+ }, {
218
+ query: string;
219
+ connectionId: string;
220
+ enabled?: boolean | undefined;
221
+ }>>>;
222
+ }, "strict", z.ZodTypeAny, {
223
+ preRequest?: {
224
+ query: string;
225
+ connectionId: string;
226
+ enabled?: boolean | undefined;
227
+ } | null | undefined;
228
+ postResponse?: {
229
+ query: string;
230
+ connectionId: string;
231
+ enabled?: boolean | undefined;
232
+ } | null | undefined;
233
+ }, {
234
+ preRequest?: {
235
+ query: string;
236
+ connectionId: string;
237
+ enabled?: boolean | undefined;
238
+ } | null | undefined;
239
+ postResponse?: {
240
+ query: string;
241
+ connectionId: string;
242
+ enabled?: boolean | undefined;
243
+ } | null | undefined;
244
+ }>>;
245
+ kafka: z.ZodOptional<z.ZodNullable<z.ZodObject<{
246
+ enabled: z.ZodOptional<z.ZodBoolean>;
247
+ connectionId: z.ZodOptional<z.ZodString>;
248
+ topic: z.ZodOptional<z.ZodString>;
249
+ timeoutMs: z.ZodOptional<z.ZodNumber>;
250
+ matchMode: z.ZodOptional<z.ZodEnum<["regex", "rules"]>>;
251
+ matchPattern: z.ZodOptional<z.ZodString>;
252
+ assertions: z.ZodOptional<z.ZodArray<z.ZodObject<{
253
+ id: z.ZodOptional<z.ZodString>;
254
+ name: z.ZodString;
255
+ field: z.ZodString;
256
+ operator: z.ZodEnum<["equals", "not_equals", "exists", "gt", "lt"]>;
257
+ valueType: z.ZodOptional<z.ZodEnum<["static", "template"]>>;
258
+ value: z.ZodOptional<z.ZodString>;
259
+ }, "strict", z.ZodTypeAny, {
260
+ name: string;
261
+ field: string;
262
+ operator: "equals" | "not_equals" | "exists" | "gt" | "lt";
263
+ value?: string | undefined;
264
+ id?: string | undefined;
265
+ valueType?: "static" | "template" | undefined;
266
+ }, {
267
+ name: string;
268
+ field: string;
269
+ operator: "equals" | "not_equals" | "exists" | "gt" | "lt";
270
+ value?: string | undefined;
271
+ id?: string | undefined;
272
+ valueType?: "static" | "template" | undefined;
273
+ }>, "many">>;
274
+ prePublish: z.ZodOptional<z.ZodNullable<z.ZodObject<{
275
+ enabled: z.ZodOptional<z.ZodBoolean>;
276
+ connectionId: z.ZodString;
277
+ topic: z.ZodString;
278
+ valueFormat: z.ZodOptional<z.ZodEnum<["json", "raw"]>>;
279
+ key: z.ZodOptional<z.ZodString>;
280
+ value: z.ZodString;
281
+ headers: z.ZodOptional<z.ZodArray<z.ZodObject<{
282
+ id: z.ZodOptional<z.ZodString>;
283
+ key: z.ZodString;
284
+ value: z.ZodDefault<z.ZodString>;
285
+ enabled: z.ZodOptional<z.ZodBoolean>;
286
+ }, "strict", z.ZodTypeAny, {
287
+ key: string;
288
+ value: string;
289
+ id?: string | undefined;
290
+ enabled?: boolean | undefined;
291
+ }, {
292
+ key: string;
293
+ value?: string | undefined;
294
+ id?: string | undefined;
295
+ enabled?: boolean | undefined;
296
+ }>, "many">>;
297
+ continueOnFailure: z.ZodOptional<z.ZodBoolean>;
298
+ }, "strict", z.ZodTypeAny, {
299
+ value: string;
300
+ connectionId: string;
301
+ topic: string;
302
+ key?: string | undefined;
303
+ headers?: {
304
+ key: string;
305
+ value: string;
306
+ id?: string | undefined;
307
+ enabled?: boolean | undefined;
308
+ }[] | undefined;
309
+ enabled?: boolean | undefined;
310
+ valueFormat?: "raw" | "json" | undefined;
311
+ continueOnFailure?: boolean | undefined;
312
+ }, {
313
+ value: string;
314
+ connectionId: string;
315
+ topic: string;
316
+ key?: string | undefined;
317
+ headers?: {
318
+ key: string;
319
+ value?: string | undefined;
320
+ id?: string | undefined;
321
+ enabled?: boolean | undefined;
322
+ }[] | undefined;
323
+ enabled?: boolean | undefined;
324
+ valueFormat?: "raw" | "json" | undefined;
325
+ continueOnFailure?: boolean | undefined;
326
+ }>>>;
327
+ postPublish: z.ZodOptional<z.ZodNullable<z.ZodObject<{
328
+ enabled: z.ZodOptional<z.ZodBoolean>;
329
+ connectionId: z.ZodString;
330
+ topic: z.ZodString;
331
+ valueFormat: z.ZodOptional<z.ZodEnum<["json", "raw"]>>;
332
+ key: z.ZodOptional<z.ZodString>;
333
+ value: z.ZodString;
334
+ headers: z.ZodOptional<z.ZodArray<z.ZodObject<{
335
+ id: z.ZodOptional<z.ZodString>;
336
+ key: z.ZodString;
337
+ value: z.ZodDefault<z.ZodString>;
338
+ enabled: z.ZodOptional<z.ZodBoolean>;
339
+ }, "strict", z.ZodTypeAny, {
340
+ key: string;
341
+ value: string;
342
+ id?: string | undefined;
343
+ enabled?: boolean | undefined;
344
+ }, {
345
+ key: string;
346
+ value?: string | undefined;
347
+ id?: string | undefined;
348
+ enabled?: boolean | undefined;
349
+ }>, "many">>;
350
+ continueOnFailure: z.ZodOptional<z.ZodBoolean>;
351
+ }, "strict", z.ZodTypeAny, {
352
+ value: string;
353
+ connectionId: string;
354
+ topic: string;
355
+ key?: string | undefined;
356
+ headers?: {
357
+ key: string;
358
+ value: string;
359
+ id?: string | undefined;
360
+ enabled?: boolean | undefined;
361
+ }[] | undefined;
362
+ enabled?: boolean | undefined;
363
+ valueFormat?: "raw" | "json" | undefined;
364
+ continueOnFailure?: boolean | undefined;
365
+ }, {
366
+ value: string;
367
+ connectionId: string;
368
+ topic: string;
369
+ key?: string | undefined;
370
+ headers?: {
371
+ key: string;
372
+ value?: string | undefined;
373
+ id?: string | undefined;
374
+ enabled?: boolean | undefined;
375
+ }[] | undefined;
376
+ enabled?: boolean | undefined;
377
+ valueFormat?: "raw" | "json" | undefined;
378
+ continueOnFailure?: boolean | undefined;
379
+ }>>>;
380
+ }, "strict", z.ZodTypeAny, {
381
+ timeoutMs?: number | undefined;
382
+ enabled?: boolean | undefined;
383
+ connectionId?: string | undefined;
384
+ topic?: string | undefined;
385
+ matchMode?: "regex" | "rules" | undefined;
386
+ matchPattern?: string | undefined;
387
+ assertions?: {
388
+ name: string;
389
+ field: string;
390
+ operator: "equals" | "not_equals" | "exists" | "gt" | "lt";
391
+ value?: string | undefined;
392
+ id?: string | undefined;
393
+ valueType?: "static" | "template" | undefined;
394
+ }[] | undefined;
395
+ prePublish?: {
396
+ value: string;
397
+ connectionId: string;
398
+ topic: string;
399
+ key?: string | undefined;
400
+ headers?: {
401
+ key: string;
402
+ value: string;
403
+ id?: string | undefined;
404
+ enabled?: boolean | undefined;
405
+ }[] | undefined;
406
+ enabled?: boolean | undefined;
407
+ valueFormat?: "raw" | "json" | undefined;
408
+ continueOnFailure?: boolean | undefined;
409
+ } | null | undefined;
410
+ postPublish?: {
411
+ value: string;
412
+ connectionId: string;
413
+ topic: string;
414
+ key?: string | undefined;
415
+ headers?: {
416
+ key: string;
417
+ value: string;
418
+ id?: string | undefined;
419
+ enabled?: boolean | undefined;
420
+ }[] | undefined;
421
+ enabled?: boolean | undefined;
422
+ valueFormat?: "raw" | "json" | undefined;
423
+ continueOnFailure?: boolean | undefined;
424
+ } | null | undefined;
425
+ }, {
426
+ timeoutMs?: number | undefined;
427
+ enabled?: boolean | undefined;
428
+ connectionId?: string | undefined;
429
+ topic?: string | undefined;
430
+ matchMode?: "regex" | "rules" | undefined;
431
+ matchPattern?: string | undefined;
432
+ assertions?: {
433
+ name: string;
434
+ field: string;
435
+ operator: "equals" | "not_equals" | "exists" | "gt" | "lt";
436
+ value?: string | undefined;
437
+ id?: string | undefined;
438
+ valueType?: "static" | "template" | undefined;
439
+ }[] | undefined;
440
+ prePublish?: {
441
+ value: string;
442
+ connectionId: string;
443
+ topic: string;
444
+ key?: string | undefined;
445
+ headers?: {
446
+ key: string;
447
+ value?: string | undefined;
448
+ id?: string | undefined;
449
+ enabled?: boolean | undefined;
450
+ }[] | undefined;
451
+ enabled?: boolean | undefined;
452
+ valueFormat?: "raw" | "json" | undefined;
453
+ continueOnFailure?: boolean | undefined;
454
+ } | null | undefined;
455
+ postPublish?: {
456
+ value: string;
457
+ connectionId: string;
458
+ topic: string;
459
+ key?: string | undefined;
460
+ headers?: {
461
+ key: string;
462
+ value?: string | undefined;
463
+ id?: string | undefined;
464
+ enabled?: boolean | undefined;
465
+ }[] | undefined;
466
+ enabled?: boolean | undefined;
467
+ valueFormat?: "raw" | "json" | undefined;
468
+ continueOnFailure?: boolean | undefined;
469
+ } | null | undefined;
470
+ }>>>;
471
+ redis: z.ZodOptional<z.ZodNullable<z.ZodObject<{
472
+ enabled: z.ZodOptional<z.ZodBoolean>;
473
+ connectionId: z.ZodString;
474
+ preCommands: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
475
+ postCommands: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
476
+ assertions: z.ZodOptional<z.ZodArray<z.ZodObject<{
477
+ id: z.ZodOptional<z.ZodString>;
478
+ name: z.ZodString;
479
+ key: z.ZodString;
480
+ operator: z.ZodEnum<["equals", "contains", "exists", "not_exists", "gt"]>;
481
+ value: z.ZodOptional<z.ZodString>;
482
+ }, "strict", z.ZodTypeAny, {
483
+ key: string;
484
+ name: string;
485
+ operator: "equals" | "exists" | "gt" | "contains" | "not_exists";
486
+ value?: string | undefined;
487
+ id?: string | undefined;
488
+ }, {
489
+ key: string;
490
+ name: string;
491
+ operator: "equals" | "exists" | "gt" | "contains" | "not_exists";
492
+ value?: string | undefined;
493
+ id?: string | undefined;
494
+ }>, "many">>;
495
+ }, "strict", z.ZodTypeAny, {
496
+ connectionId: string;
497
+ enabled?: boolean | undefined;
498
+ assertions?: {
499
+ key: string;
500
+ name: string;
501
+ operator: "equals" | "exists" | "gt" | "contains" | "not_exists";
502
+ value?: string | undefined;
503
+ id?: string | undefined;
504
+ }[] | undefined;
505
+ preCommands?: string[] | undefined;
506
+ postCommands?: string[] | undefined;
507
+ }, {
508
+ connectionId: string;
509
+ enabled?: boolean | undefined;
510
+ assertions?: {
511
+ key: string;
512
+ name: string;
513
+ operator: "equals" | "exists" | "gt" | "contains" | "not_exists";
514
+ value?: string | undefined;
515
+ id?: string | undefined;
516
+ }[] | undefined;
517
+ preCommands?: string[] | undefined;
518
+ postCommands?: string[] | undefined;
519
+ }>>>;
520
+ dbAssertions: z.ZodOptional<z.ZodArray<z.ZodObject<{
521
+ id: z.ZodOptional<z.ZodString>;
522
+ name: z.ZodString;
523
+ source: z.ZodEnum<["db_pre", "db_post"]>;
524
+ field: z.ZodString;
525
+ operator: z.ZodEnum<["equals", "not_equals", "exists", "gt", "lt"]>;
526
+ valueType: z.ZodOptional<z.ZodEnum<["static", "response"]>>;
527
+ value: z.ZodOptional<z.ZodString>;
528
+ }, "strict", z.ZodTypeAny, {
529
+ name: string;
530
+ field: string;
531
+ operator: "equals" | "not_equals" | "exists" | "gt" | "lt";
532
+ source: "db_pre" | "db_post";
533
+ value?: string | undefined;
534
+ id?: string | undefined;
535
+ valueType?: "static" | "response" | undefined;
536
+ }, {
537
+ name: string;
538
+ field: string;
539
+ operator: "equals" | "not_equals" | "exists" | "gt" | "lt";
540
+ source: "db_pre" | "db_post";
541
+ value?: string | undefined;
542
+ id?: string | undefined;
543
+ valueType?: "static" | "response" | undefined;
544
+ }>, "many">>;
545
+ kafkaScript: z.ZodOptional<z.ZodString>;
154
546
  name: z.ZodString;
155
547
  method: z.ZodEnum<["GET", "POST", "PUT", "PATCH", "DELETE", "HEAD", "OPTIONS", "TRACE"]>;
156
548
  url: z.ZodString;
@@ -158,113 +550,134 @@ export declare const requestInputSchema: z.ZodObject<{
158
550
  key: z.ZodString;
159
551
  value: z.ZodDefault<z.ZodString>;
160
552
  enabled: z.ZodOptional<z.ZodBoolean>;
161
- description: z.ZodOptional<z.ZodString>;
162
- }, "strip", z.ZodTypeAny, {
553
+ }, "strict", z.ZodTypeAny, {
163
554
  key: string;
164
555
  value: string;
165
- description?: string | undefined;
166
556
  enabled?: boolean | undefined;
167
557
  }, {
168
558
  key: string;
169
559
  value?: string | undefined;
170
- description?: string | undefined;
171
560
  enabled?: boolean | undefined;
172
561
  }>, "many">>;
173
562
  query: z.ZodOptional<z.ZodArray<z.ZodObject<{
174
563
  key: z.ZodString;
175
564
  value: z.ZodDefault<z.ZodString>;
176
565
  enabled: z.ZodOptional<z.ZodBoolean>;
177
- description: z.ZodOptional<z.ZodString>;
178
- }, "strip", z.ZodTypeAny, {
566
+ }, "strict", z.ZodTypeAny, {
179
567
  key: string;
180
568
  value: string;
181
- description?: string | undefined;
182
569
  enabled?: boolean | undefined;
183
570
  }, {
184
571
  key: string;
185
572
  value?: string | undefined;
186
- description?: string | undefined;
187
573
  enabled?: boolean | undefined;
188
574
  }>, "many">>;
189
575
  pathVariables: z.ZodOptional<z.ZodArray<z.ZodObject<{
190
576
  key: z.ZodString;
191
577
  value: z.ZodDefault<z.ZodString>;
192
- enabled: z.ZodOptional<z.ZodBoolean>;
193
578
  description: z.ZodOptional<z.ZodString>;
194
- }, "strip", z.ZodTypeAny, {
579
+ }, "strict", z.ZodTypeAny, {
195
580
  key: string;
196
581
  value: string;
197
582
  description?: string | undefined;
198
- enabled?: boolean | undefined;
199
583
  }, {
200
584
  key: string;
201
585
  value?: string | undefined;
202
586
  description?: string | undefined;
203
- enabled?: boolean | undefined;
204
587
  }>, "many">>;
205
- body: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
588
+ body: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodObject<{
206
589
  mode: z.ZodLiteral<"raw">;
207
590
  raw: z.ZodString;
208
591
  language: z.ZodOptional<z.ZodEnum<["json", "xml", "text", "html"]>>;
209
- }, "strip", z.ZodTypeAny, {
210
- mode: "raw";
592
+ rawLanguage: z.ZodOptional<z.ZodEnum<["json", "xml", "text", "html"]>>;
593
+ }, "strict", z.ZodTypeAny, {
211
594
  raw: string;
595
+ mode: "raw";
212
596
  language?: "text" | "json" | "xml" | "html" | undefined;
597
+ rawLanguage?: "text" | "json" | "xml" | "html" | undefined;
213
598
  }, {
214
- mode: "raw";
215
599
  raw: string;
600
+ mode: "raw";
216
601
  language?: "text" | "json" | "xml" | "html" | undefined;
602
+ rawLanguage?: "text" | "json" | "xml" | "html" | undefined;
217
603
  }>, z.ZodObject<{
218
604
  mode: z.ZodEnum<["formdata", "urlencoded"]>;
219
- entries: z.ZodArray<z.ZodObject<{
605
+ entries: z.ZodOptional<z.ZodArray<z.ZodObject<{
220
606
  key: z.ZodString;
221
607
  value: z.ZodDefault<z.ZodString>;
222
608
  enabled: z.ZodOptional<z.ZodBoolean>;
223
- description: z.ZodOptional<z.ZodString>;
224
- }, "strip", z.ZodTypeAny, {
609
+ }, "strict", z.ZodTypeAny, {
225
610
  key: string;
226
611
  value: string;
227
- description?: string | undefined;
228
612
  enabled?: boolean | undefined;
229
613
  }, {
230
614
  key: string;
231
615
  value?: string | undefined;
232
- description?: string | undefined;
233
616
  enabled?: boolean | undefined;
234
- }>, "many">;
235
- }, "strip", z.ZodTypeAny, {
236
- entries: {
617
+ }>, "many">>;
618
+ formEntries: z.ZodOptional<z.ZodArray<z.ZodObject<{
619
+ key: z.ZodString;
620
+ value: z.ZodDefault<z.ZodString>;
621
+ enabled: z.ZodOptional<z.ZodBoolean>;
622
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
623
+ key: z.ZodString;
624
+ value: z.ZodDefault<z.ZodString>;
625
+ enabled: z.ZodOptional<z.ZodBoolean>;
626
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
627
+ key: z.ZodString;
628
+ value: z.ZodDefault<z.ZodString>;
629
+ enabled: z.ZodOptional<z.ZodBoolean>;
630
+ }, z.ZodTypeAny, "passthrough">>, "many">>;
631
+ }, "strict", z.ZodTypeAny, {
632
+ mode: "formdata" | "urlencoded";
633
+ entries?: {
237
634
  key: string;
238
635
  value: string;
239
- description?: string | undefined;
240
636
  enabled?: boolean | undefined;
241
- }[];
242
- mode: "formdata" | "urlencoded";
637
+ }[] | undefined;
638
+ formEntries?: z.objectOutputType<{
639
+ key: z.ZodString;
640
+ value: z.ZodDefault<z.ZodString>;
641
+ enabled: z.ZodOptional<z.ZodBoolean>;
642
+ }, z.ZodTypeAny, "passthrough">[] | undefined;
243
643
  }, {
244
- entries: {
644
+ mode: "formdata" | "urlencoded";
645
+ entries?: {
245
646
  key: string;
246
647
  value?: string | undefined;
247
- description?: string | undefined;
248
648
  enabled?: boolean | undefined;
249
- }[];
250
- mode: "formdata" | "urlencoded";
649
+ }[] | undefined;
650
+ formEntries?: z.objectInputType<{
651
+ key: z.ZodString;
652
+ value: z.ZodDefault<z.ZodString>;
653
+ enabled: z.ZodOptional<z.ZodBoolean>;
654
+ }, z.ZodTypeAny, "passthrough">[] | undefined;
655
+ }>, z.ZodObject<{
656
+ mode: z.ZodLiteral<"json">;
657
+ json: z.ZodUnknown;
658
+ }, "strict", z.ZodTypeAny, {
659
+ mode: "json";
660
+ json?: unknown;
661
+ }, {
662
+ mode: "json";
663
+ json?: unknown;
251
664
  }>, z.ZodObject<{
252
665
  mode: z.ZodLiteral<"none">;
253
- }, "strip", z.ZodTypeAny, {
666
+ }, "strict", z.ZodTypeAny, {
254
667
  mode: "none";
255
668
  }, {
256
669
  mode: "none";
257
- }>, z.ZodUnknown]>>;
670
+ }>, z.ZodArray<z.ZodUnknown, "many">, z.ZodNumber, z.ZodBoolean, z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodUnknown>, Record<string, unknown>, Record<string, unknown>>]>>;
258
671
  auth: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
259
672
  type: z.ZodLiteral<"none">;
260
- }, "strip", z.ZodTypeAny, {
673
+ }, "strict", z.ZodTypeAny, {
261
674
  type: "none";
262
675
  }, {
263
676
  type: "none";
264
677
  }>, z.ZodObject<{
265
678
  type: z.ZodLiteral<"bearer">;
266
679
  token: z.ZodString;
267
- }, "strip", z.ZodTypeAny, {
680
+ }, "strict", z.ZodTypeAny, {
268
681
  token: string;
269
682
  type: "bearer";
270
683
  }, {
@@ -274,7 +687,7 @@ export declare const requestInputSchema: z.ZodObject<{
274
687
  type: z.ZodLiteral<"basic">;
275
688
  username: z.ZodString;
276
689
  password: z.ZodDefault<z.ZodString>;
277
- }, "strip", z.ZodTypeAny, {
690
+ }, "strict", z.ZodTypeAny, {
278
691
  type: "basic";
279
692
  username: string;
280
693
  password: string;
@@ -287,7 +700,7 @@ export declare const requestInputSchema: z.ZodObject<{
287
700
  key: z.ZodString;
288
701
  value: z.ZodString;
289
702
  location: z.ZodDefault<z.ZodEnum<["header", "query"]>>;
290
- }, "strip", z.ZodTypeAny, {
703
+ }, "strict", z.ZodTypeAny, {
291
704
  key: string;
292
705
  value: string;
293
706
  type: "apiKey";
@@ -309,7 +722,7 @@ export declare const requestInputSchema: z.ZodObject<{
309
722
  refreshToken: z.ZodDefault<z.ZodString>;
310
723
  clientAuth: z.ZodDefault<z.ZodEnum<["basic", "body"]>>;
311
724
  audience: z.ZodDefault<z.ZodString>;
312
- }, "strip", z.ZodTypeAny, {
725
+ }, "strict", z.ZodTypeAny, {
313
726
  type: "oauth2";
314
727
  audience: string;
315
728
  scope: string;
@@ -340,28 +753,128 @@ export declare const requestInputSchema: z.ZodObject<{
340
753
  folder: z.ZodOptional<z.ZodString>;
341
754
  folderKey: z.ZodOptional<z.ZodString>;
342
755
  isEnabledInRunner: z.ZodOptional<z.ZodBoolean>;
343
- }, "strip", z.ZodTypeAny, {
344
- method: "GET" | "POST" | "DELETE" | "PATCH" | "PUT" | "HEAD" | "OPTIONS" | "TRACE";
756
+ }, "strict", z.ZodTypeAny, {
757
+ method: "GET" | "POST" | "PATCH" | "DELETE" | "PUT" | "HEAD" | "OPTIONS" | "TRACE";
345
758
  name: string;
346
759
  url: string;
347
760
  query?: {
348
761
  key: string;
349
762
  value: string;
350
- description?: string | undefined;
351
763
  enabled?: boolean | undefined;
352
764
  }[] | undefined;
353
765
  headers?: {
354
766
  key: string;
355
767
  value: string;
356
- description?: string | undefined;
357
768
  enabled?: boolean | undefined;
358
769
  }[] | undefined;
359
- body?: unknown;
770
+ body?: string | number | boolean | Record<string, unknown> | unknown[] | {
771
+ raw: string;
772
+ mode: "raw";
773
+ language?: "text" | "json" | "xml" | "html" | undefined;
774
+ rawLanguage?: "text" | "json" | "xml" | "html" | undefined;
775
+ } | {
776
+ mode: "formdata" | "urlencoded";
777
+ entries?: {
778
+ key: string;
779
+ value: string;
780
+ enabled?: boolean | undefined;
781
+ }[] | undefined;
782
+ formEntries?: z.objectOutputType<{
783
+ key: z.ZodString;
784
+ value: z.ZodDefault<z.ZodString>;
785
+ enabled: z.ZodOptional<z.ZodBoolean>;
786
+ }, z.ZodTypeAny, "passthrough">[] | undefined;
787
+ } | {
788
+ mode: "json";
789
+ json?: unknown;
790
+ } | {
791
+ mode: "none";
792
+ } | undefined;
793
+ database?: {
794
+ preRequest?: {
795
+ query: string;
796
+ connectionId: string;
797
+ enabled?: boolean | undefined;
798
+ } | null | undefined;
799
+ postResponse?: {
800
+ query: string;
801
+ connectionId: string;
802
+ enabled?: boolean | undefined;
803
+ } | null | undefined;
804
+ } | undefined;
805
+ kafka?: {
806
+ timeoutMs?: number | undefined;
807
+ enabled?: boolean | undefined;
808
+ connectionId?: string | undefined;
809
+ topic?: string | undefined;
810
+ matchMode?: "regex" | "rules" | undefined;
811
+ matchPattern?: string | undefined;
812
+ assertions?: {
813
+ name: string;
814
+ field: string;
815
+ operator: "equals" | "not_equals" | "exists" | "gt" | "lt";
816
+ value?: string | undefined;
817
+ id?: string | undefined;
818
+ valueType?: "static" | "template" | undefined;
819
+ }[] | undefined;
820
+ prePublish?: {
821
+ value: string;
822
+ connectionId: string;
823
+ topic: string;
824
+ key?: string | undefined;
825
+ headers?: {
826
+ key: string;
827
+ value: string;
828
+ id?: string | undefined;
829
+ enabled?: boolean | undefined;
830
+ }[] | undefined;
831
+ enabled?: boolean | undefined;
832
+ valueFormat?: "raw" | "json" | undefined;
833
+ continueOnFailure?: boolean | undefined;
834
+ } | null | undefined;
835
+ postPublish?: {
836
+ value: string;
837
+ connectionId: string;
838
+ topic: string;
839
+ key?: string | undefined;
840
+ headers?: {
841
+ key: string;
842
+ value: string;
843
+ id?: string | undefined;
844
+ enabled?: boolean | undefined;
845
+ }[] | undefined;
846
+ enabled?: boolean | undefined;
847
+ valueFormat?: "raw" | "json" | undefined;
848
+ continueOnFailure?: boolean | undefined;
849
+ } | null | undefined;
850
+ } | null | undefined;
851
+ redis?: {
852
+ connectionId: string;
853
+ enabled?: boolean | undefined;
854
+ assertions?: {
855
+ key: string;
856
+ name: string;
857
+ operator: "equals" | "exists" | "gt" | "contains" | "not_exists";
858
+ value?: string | undefined;
859
+ id?: string | undefined;
860
+ }[] | undefined;
861
+ preCommands?: string[] | undefined;
862
+ postCommands?: string[] | undefined;
863
+ } | null | undefined;
864
+ dbAssertions?: {
865
+ name: string;
866
+ field: string;
867
+ operator: "equals" | "not_equals" | "exists" | "gt" | "lt";
868
+ source: "db_pre" | "db_post";
869
+ value?: string | undefined;
870
+ id?: string | undefined;
871
+ valueType?: "static" | "response" | undefined;
872
+ }[] | undefined;
873
+ kafkaScript?: string | undefined;
360
874
  pathVariables?: {
361
875
  key: string;
362
876
  value: string;
363
877
  description?: string | undefined;
364
- enabled?: boolean | undefined;
365
878
  }[] | undefined;
366
879
  auth?: {
367
880
  type: "none";
@@ -397,27 +910,127 @@ export declare const requestInputSchema: z.ZodObject<{
397
910
  folderKey?: string | undefined;
398
911
  isEnabledInRunner?: boolean | undefined;
399
912
  }, {
400
- method: "GET" | "POST" | "DELETE" | "PATCH" | "PUT" | "HEAD" | "OPTIONS" | "TRACE";
913
+ method: "GET" | "POST" | "PATCH" | "DELETE" | "PUT" | "HEAD" | "OPTIONS" | "TRACE";
401
914
  name: string;
402
915
  url: string;
403
916
  query?: {
404
917
  key: string;
405
918
  value?: string | undefined;
406
- description?: string | undefined;
407
919
  enabled?: boolean | undefined;
408
920
  }[] | undefined;
409
921
  headers?: {
410
922
  key: string;
411
923
  value?: string | undefined;
412
- description?: string | undefined;
413
924
  enabled?: boolean | undefined;
414
925
  }[] | undefined;
415
- body?: unknown;
926
+ body?: string | number | boolean | Record<string, unknown> | unknown[] | {
927
+ raw: string;
928
+ mode: "raw";
929
+ language?: "text" | "json" | "xml" | "html" | undefined;
930
+ rawLanguage?: "text" | "json" | "xml" | "html" | undefined;
931
+ } | {
932
+ mode: "formdata" | "urlencoded";
933
+ entries?: {
934
+ key: string;
935
+ value?: string | undefined;
936
+ enabled?: boolean | undefined;
937
+ }[] | undefined;
938
+ formEntries?: z.objectInputType<{
939
+ key: z.ZodString;
940
+ value: z.ZodDefault<z.ZodString>;
941
+ enabled: z.ZodOptional<z.ZodBoolean>;
942
+ }, z.ZodTypeAny, "passthrough">[] | undefined;
943
+ } | {
944
+ mode: "json";
945
+ json?: unknown;
946
+ } | {
947
+ mode: "none";
948
+ } | undefined;
949
+ database?: {
950
+ preRequest?: {
951
+ query: string;
952
+ connectionId: string;
953
+ enabled?: boolean | undefined;
954
+ } | null | undefined;
955
+ postResponse?: {
956
+ query: string;
957
+ connectionId: string;
958
+ enabled?: boolean | undefined;
959
+ } | null | undefined;
960
+ } | undefined;
961
+ kafka?: {
962
+ timeoutMs?: number | undefined;
963
+ enabled?: boolean | undefined;
964
+ connectionId?: string | undefined;
965
+ topic?: string | undefined;
966
+ matchMode?: "regex" | "rules" | undefined;
967
+ matchPattern?: string | undefined;
968
+ assertions?: {
969
+ name: string;
970
+ field: string;
971
+ operator: "equals" | "not_equals" | "exists" | "gt" | "lt";
972
+ value?: string | undefined;
973
+ id?: string | undefined;
974
+ valueType?: "static" | "template" | undefined;
975
+ }[] | undefined;
976
+ prePublish?: {
977
+ value: string;
978
+ connectionId: string;
979
+ topic: string;
980
+ key?: string | undefined;
981
+ headers?: {
982
+ key: string;
983
+ value?: string | undefined;
984
+ id?: string | undefined;
985
+ enabled?: boolean | undefined;
986
+ }[] | undefined;
987
+ enabled?: boolean | undefined;
988
+ valueFormat?: "raw" | "json" | undefined;
989
+ continueOnFailure?: boolean | undefined;
990
+ } | null | undefined;
991
+ postPublish?: {
992
+ value: string;
993
+ connectionId: string;
994
+ topic: string;
995
+ key?: string | undefined;
996
+ headers?: {
997
+ key: string;
998
+ value?: string | undefined;
999
+ id?: string | undefined;
1000
+ enabled?: boolean | undefined;
1001
+ }[] | undefined;
1002
+ enabled?: boolean | undefined;
1003
+ valueFormat?: "raw" | "json" | undefined;
1004
+ continueOnFailure?: boolean | undefined;
1005
+ } | null | undefined;
1006
+ } | null | undefined;
1007
+ redis?: {
1008
+ connectionId: string;
1009
+ enabled?: boolean | undefined;
1010
+ assertions?: {
1011
+ key: string;
1012
+ name: string;
1013
+ operator: "equals" | "exists" | "gt" | "contains" | "not_exists";
1014
+ value?: string | undefined;
1015
+ id?: string | undefined;
1016
+ }[] | undefined;
1017
+ preCommands?: string[] | undefined;
1018
+ postCommands?: string[] | undefined;
1019
+ } | null | undefined;
1020
+ dbAssertions?: {
1021
+ name: string;
1022
+ field: string;
1023
+ operator: "equals" | "not_equals" | "exists" | "gt" | "lt";
1024
+ source: "db_pre" | "db_post";
1025
+ value?: string | undefined;
1026
+ id?: string | undefined;
1027
+ valueType?: "static" | "response" | undefined;
1028
+ }[] | undefined;
1029
+ kafkaScript?: string | undefined;
416
1030
  pathVariables?: {
417
1031
  key: string;
418
1032
  value?: string | undefined;
419
1033
  description?: string | undefined;
420
- enabled?: boolean | undefined;
421
1034
  }[] | undefined;
422
1035
  auth?: {
423
1036
  type: "none";
@@ -456,129 +1069,515 @@ export declare const requestInputSchema: z.ZodObject<{
456
1069
  export type RequestInput = z.infer<typeof requestInputSchema>;
457
1070
  export type KvInput = z.infer<typeof kvSchema>;
458
1071
  export type AuthInput = z.infer<typeof authInputSchema>;
1072
+ export type BodyInput = z.infer<typeof bodyInputSchema>;
459
1073
  export declare const toRows: (entries: KvInput[] | undefined) => KeyValueRow[];
1074
+ export declare const buildUrlWithQueryRows: (url: string, rows: KeyValueRow[]) => string;
1075
+ export declare const syncUrlAndQuery: (url: string, query: KvInput[] | undefined) => {
1076
+ url: string;
1077
+ query: KeyValueRow[];
1078
+ warnings: string[];
1079
+ };
1080
+ export declare const toBodyPayload: (body: BodyInput | undefined | null, headers: KeyValueRow[]) => PersistedRequestBody | null;
1081
+ export declare const sanitizedKeyWarnings: (body: unknown) => string[];
460
1082
  export declare const toAuthPayload: (auth: AuthInput | undefined) => RequestAuth;
461
- export declare const toBodyPayload: (body: unknown, headers: KeyValueRow[]) => PersistedRequestBody | null;
1083
+ export declare const authInputView: (auth: RequestAuth | null | undefined, reveal?: boolean) => Record<string, unknown>;
1084
+ export declare const resolveMaskedValues: (item: Partial<RequestInput>, current?: ApiRequest) => Partial<RequestInput>;
1085
+ export interface PayloadResult {
1086
+ payload: Record<string, unknown>;
1087
+ warnings: string[];
1088
+ }
462
1089
  export declare const toCreateRequestPayload: (item: RequestInput, target: {
463
1090
  collectionId: string;
464
1091
  folderId: string | null;
465
- }) => Record<string, unknown>;
466
- export declare const toFlatImportRequest: (item: RequestInput) => Record<string, unknown>;
467
- export declare const updateRequestInputSchema: z.ZodObject<Omit<{
468
- name: z.ZodOptional<z.ZodString>;
469
- method: z.ZodOptional<z.ZodEnum<["GET", "POST", "PUT", "PATCH", "DELETE", "HEAD", "OPTIONS", "TRACE"]>>;
470
- url: z.ZodOptional<z.ZodString>;
471
- headers: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodObject<{
472
- key: z.ZodString;
473
- value: z.ZodDefault<z.ZodString>;
474
- enabled: z.ZodOptional<z.ZodBoolean>;
475
- description: z.ZodOptional<z.ZodString>;
476
- }, "strip", z.ZodTypeAny, {
477
- key: string;
478
- value: string;
479
- description?: string | undefined;
480
- enabled?: boolean | undefined;
481
- }, {
482
- key: string;
483
- value?: string | undefined;
484
- description?: string | undefined;
485
- enabled?: boolean | undefined;
486
- }>, "many">>>;
1092
+ }, resolve?: ConnectionResolver) => PayloadResult;
1093
+ export declare const toFlatImportRequest: (item: RequestInput, resolve?: ConnectionResolver) => Record<string, unknown>;
1094
+ export declare const updateRequestInputSchema: z.ZodObject<{
487
1095
  query: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodObject<{
488
1096
  key: z.ZodString;
489
1097
  value: z.ZodDefault<z.ZodString>;
490
1098
  enabled: z.ZodOptional<z.ZodBoolean>;
491
- description: z.ZodOptional<z.ZodString>;
492
- }, "strip", z.ZodTypeAny, {
1099
+ }, "strict", z.ZodTypeAny, {
493
1100
  key: string;
494
1101
  value: string;
495
- description?: string | undefined;
496
1102
  enabled?: boolean | undefined;
497
1103
  }, {
498
1104
  key: string;
499
1105
  value?: string | undefined;
500
- description?: string | undefined;
501
1106
  enabled?: boolean | undefined;
502
1107
  }>, "many">>>;
503
- pathVariables: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodObject<{
1108
+ method: z.ZodOptional<z.ZodEnum<["GET", "POST", "PUT", "PATCH", "DELETE", "HEAD", "OPTIONS", "TRACE"]>>;
1109
+ headers: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodObject<{
504
1110
  key: z.ZodString;
505
1111
  value: z.ZodDefault<z.ZodString>;
506
1112
  enabled: z.ZodOptional<z.ZodBoolean>;
507
- description: z.ZodOptional<z.ZodString>;
508
- }, "strip", z.ZodTypeAny, {
1113
+ }, "strict", z.ZodTypeAny, {
509
1114
  key: string;
510
1115
  value: string;
511
- description?: string | undefined;
512
1116
  enabled?: boolean | undefined;
513
1117
  }, {
514
1118
  key: string;
515
1119
  value?: string | undefined;
516
- description?: string | undefined;
517
1120
  enabled?: boolean | undefined;
518
1121
  }>, "many">>>;
519
- body: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
1122
+ body: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodObject<{
520
1123
  mode: z.ZodLiteral<"raw">;
521
1124
  raw: z.ZodString;
522
1125
  language: z.ZodOptional<z.ZodEnum<["json", "xml", "text", "html"]>>;
523
- }, "strip", z.ZodTypeAny, {
524
- mode: "raw";
1126
+ rawLanguage: z.ZodOptional<z.ZodEnum<["json", "xml", "text", "html"]>>;
1127
+ }, "strict", z.ZodTypeAny, {
525
1128
  raw: string;
1129
+ mode: "raw";
526
1130
  language?: "text" | "json" | "xml" | "html" | undefined;
1131
+ rawLanguage?: "text" | "json" | "xml" | "html" | undefined;
527
1132
  }, {
528
- mode: "raw";
529
1133
  raw: string;
1134
+ mode: "raw";
530
1135
  language?: "text" | "json" | "xml" | "html" | undefined;
1136
+ rawLanguage?: "text" | "json" | "xml" | "html" | undefined;
531
1137
  }>, z.ZodObject<{
532
1138
  mode: z.ZodEnum<["formdata", "urlencoded"]>;
533
- entries: z.ZodArray<z.ZodObject<{
1139
+ entries: z.ZodOptional<z.ZodArray<z.ZodObject<{
534
1140
  key: z.ZodString;
535
1141
  value: z.ZodDefault<z.ZodString>;
536
1142
  enabled: z.ZodOptional<z.ZodBoolean>;
537
- description: z.ZodOptional<z.ZodString>;
538
- }, "strip", z.ZodTypeAny, {
1143
+ }, "strict", z.ZodTypeAny, {
539
1144
  key: string;
540
1145
  value: string;
541
- description?: string | undefined;
542
1146
  enabled?: boolean | undefined;
543
1147
  }, {
544
1148
  key: string;
545
1149
  value?: string | undefined;
546
- description?: string | undefined;
547
1150
  enabled?: boolean | undefined;
548
- }>, "many">;
549
- }, "strip", z.ZodTypeAny, {
550
- entries: {
1151
+ }>, "many">>;
1152
+ formEntries: z.ZodOptional<z.ZodArray<z.ZodObject<{
1153
+ key: z.ZodString;
1154
+ value: z.ZodDefault<z.ZodString>;
1155
+ enabled: z.ZodOptional<z.ZodBoolean>;
1156
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1157
+ key: z.ZodString;
1158
+ value: z.ZodDefault<z.ZodString>;
1159
+ enabled: z.ZodOptional<z.ZodBoolean>;
1160
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1161
+ key: z.ZodString;
1162
+ value: z.ZodDefault<z.ZodString>;
1163
+ enabled: z.ZodOptional<z.ZodBoolean>;
1164
+ }, z.ZodTypeAny, "passthrough">>, "many">>;
1165
+ }, "strict", z.ZodTypeAny, {
1166
+ mode: "formdata" | "urlencoded";
1167
+ entries?: {
551
1168
  key: string;
552
1169
  value: string;
553
- description?: string | undefined;
554
1170
  enabled?: boolean | undefined;
555
- }[];
556
- mode: "formdata" | "urlencoded";
1171
+ }[] | undefined;
1172
+ formEntries?: z.objectOutputType<{
1173
+ key: z.ZodString;
1174
+ value: z.ZodDefault<z.ZodString>;
1175
+ enabled: z.ZodOptional<z.ZodBoolean>;
1176
+ }, z.ZodTypeAny, "passthrough">[] | undefined;
557
1177
  }, {
558
- entries: {
1178
+ mode: "formdata" | "urlencoded";
1179
+ entries?: {
559
1180
  key: string;
560
1181
  value?: string | undefined;
561
- description?: string | undefined;
562
1182
  enabled?: boolean | undefined;
563
- }[];
564
- mode: "formdata" | "urlencoded";
1183
+ }[] | undefined;
1184
+ formEntries?: z.objectInputType<{
1185
+ key: z.ZodString;
1186
+ value: z.ZodDefault<z.ZodString>;
1187
+ enabled: z.ZodOptional<z.ZodBoolean>;
1188
+ }, z.ZodTypeAny, "passthrough">[] | undefined;
1189
+ }>, z.ZodObject<{
1190
+ mode: z.ZodLiteral<"json">;
1191
+ json: z.ZodUnknown;
1192
+ }, "strict", z.ZodTypeAny, {
1193
+ mode: "json";
1194
+ json?: unknown;
1195
+ }, {
1196
+ mode: "json";
1197
+ json?: unknown;
565
1198
  }>, z.ZodObject<{
566
1199
  mode: z.ZodLiteral<"none">;
567
- }, "strip", z.ZodTypeAny, {
1200
+ }, "strict", z.ZodTypeAny, {
568
1201
  mode: "none";
569
1202
  }, {
570
1203
  mode: "none";
571
- }>, z.ZodUnknown]>>>;
1204
+ }>, z.ZodArray<z.ZodUnknown, "many">, z.ZodNumber, z.ZodBoolean, z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodUnknown>, Record<string, unknown>, Record<string, unknown>>]>>>;
1205
+ name: z.ZodOptional<z.ZodString>;
1206
+ url: z.ZodOptional<z.ZodString>;
1207
+ database: z.ZodOptional<z.ZodOptional<z.ZodObject<{
1208
+ preRequest: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1209
+ enabled: z.ZodOptional<z.ZodBoolean>;
1210
+ connectionId: z.ZodString;
1211
+ query: z.ZodString;
1212
+ }, "strict", z.ZodTypeAny, {
1213
+ query: string;
1214
+ connectionId: string;
1215
+ enabled?: boolean | undefined;
1216
+ }, {
1217
+ query: string;
1218
+ connectionId: string;
1219
+ enabled?: boolean | undefined;
1220
+ }>>>;
1221
+ postResponse: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1222
+ enabled: z.ZodOptional<z.ZodBoolean>;
1223
+ connectionId: z.ZodString;
1224
+ query: z.ZodString;
1225
+ }, "strict", z.ZodTypeAny, {
1226
+ query: string;
1227
+ connectionId: string;
1228
+ enabled?: boolean | undefined;
1229
+ }, {
1230
+ query: string;
1231
+ connectionId: string;
1232
+ enabled?: boolean | undefined;
1233
+ }>>>;
1234
+ }, "strict", z.ZodTypeAny, {
1235
+ preRequest?: {
1236
+ query: string;
1237
+ connectionId: string;
1238
+ enabled?: boolean | undefined;
1239
+ } | null | undefined;
1240
+ postResponse?: {
1241
+ query: string;
1242
+ connectionId: string;
1243
+ enabled?: boolean | undefined;
1244
+ } | null | undefined;
1245
+ }, {
1246
+ preRequest?: {
1247
+ query: string;
1248
+ connectionId: string;
1249
+ enabled?: boolean | undefined;
1250
+ } | null | undefined;
1251
+ postResponse?: {
1252
+ query: string;
1253
+ connectionId: string;
1254
+ enabled?: boolean | undefined;
1255
+ } | null | undefined;
1256
+ }>>>;
1257
+ kafka: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodObject<{
1258
+ enabled: z.ZodOptional<z.ZodBoolean>;
1259
+ connectionId: z.ZodOptional<z.ZodString>;
1260
+ topic: z.ZodOptional<z.ZodString>;
1261
+ timeoutMs: z.ZodOptional<z.ZodNumber>;
1262
+ matchMode: z.ZodOptional<z.ZodEnum<["regex", "rules"]>>;
1263
+ matchPattern: z.ZodOptional<z.ZodString>;
1264
+ assertions: z.ZodOptional<z.ZodArray<z.ZodObject<{
1265
+ id: z.ZodOptional<z.ZodString>;
1266
+ name: z.ZodString;
1267
+ field: z.ZodString;
1268
+ operator: z.ZodEnum<["equals", "not_equals", "exists", "gt", "lt"]>;
1269
+ valueType: z.ZodOptional<z.ZodEnum<["static", "template"]>>;
1270
+ value: z.ZodOptional<z.ZodString>;
1271
+ }, "strict", z.ZodTypeAny, {
1272
+ name: string;
1273
+ field: string;
1274
+ operator: "equals" | "not_equals" | "exists" | "gt" | "lt";
1275
+ value?: string | undefined;
1276
+ id?: string | undefined;
1277
+ valueType?: "static" | "template" | undefined;
1278
+ }, {
1279
+ name: string;
1280
+ field: string;
1281
+ operator: "equals" | "not_equals" | "exists" | "gt" | "lt";
1282
+ value?: string | undefined;
1283
+ id?: string | undefined;
1284
+ valueType?: "static" | "template" | undefined;
1285
+ }>, "many">>;
1286
+ prePublish: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1287
+ enabled: z.ZodOptional<z.ZodBoolean>;
1288
+ connectionId: z.ZodString;
1289
+ topic: z.ZodString;
1290
+ valueFormat: z.ZodOptional<z.ZodEnum<["json", "raw"]>>;
1291
+ key: z.ZodOptional<z.ZodString>;
1292
+ value: z.ZodString;
1293
+ headers: z.ZodOptional<z.ZodArray<z.ZodObject<{
1294
+ id: z.ZodOptional<z.ZodString>;
1295
+ key: z.ZodString;
1296
+ value: z.ZodDefault<z.ZodString>;
1297
+ enabled: z.ZodOptional<z.ZodBoolean>;
1298
+ }, "strict", z.ZodTypeAny, {
1299
+ key: string;
1300
+ value: string;
1301
+ id?: string | undefined;
1302
+ enabled?: boolean | undefined;
1303
+ }, {
1304
+ key: string;
1305
+ value?: string | undefined;
1306
+ id?: string | undefined;
1307
+ enabled?: boolean | undefined;
1308
+ }>, "many">>;
1309
+ continueOnFailure: z.ZodOptional<z.ZodBoolean>;
1310
+ }, "strict", z.ZodTypeAny, {
1311
+ value: string;
1312
+ connectionId: string;
1313
+ topic: string;
1314
+ key?: string | undefined;
1315
+ headers?: {
1316
+ key: string;
1317
+ value: string;
1318
+ id?: string | undefined;
1319
+ enabled?: boolean | undefined;
1320
+ }[] | undefined;
1321
+ enabled?: boolean | undefined;
1322
+ valueFormat?: "raw" | "json" | undefined;
1323
+ continueOnFailure?: boolean | undefined;
1324
+ }, {
1325
+ value: string;
1326
+ connectionId: string;
1327
+ topic: string;
1328
+ key?: string | undefined;
1329
+ headers?: {
1330
+ key: string;
1331
+ value?: string | undefined;
1332
+ id?: string | undefined;
1333
+ enabled?: boolean | undefined;
1334
+ }[] | undefined;
1335
+ enabled?: boolean | undefined;
1336
+ valueFormat?: "raw" | "json" | undefined;
1337
+ continueOnFailure?: boolean | undefined;
1338
+ }>>>;
1339
+ postPublish: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1340
+ enabled: z.ZodOptional<z.ZodBoolean>;
1341
+ connectionId: z.ZodString;
1342
+ topic: z.ZodString;
1343
+ valueFormat: z.ZodOptional<z.ZodEnum<["json", "raw"]>>;
1344
+ key: z.ZodOptional<z.ZodString>;
1345
+ value: z.ZodString;
1346
+ headers: z.ZodOptional<z.ZodArray<z.ZodObject<{
1347
+ id: z.ZodOptional<z.ZodString>;
1348
+ key: z.ZodString;
1349
+ value: z.ZodDefault<z.ZodString>;
1350
+ enabled: z.ZodOptional<z.ZodBoolean>;
1351
+ }, "strict", z.ZodTypeAny, {
1352
+ key: string;
1353
+ value: string;
1354
+ id?: string | undefined;
1355
+ enabled?: boolean | undefined;
1356
+ }, {
1357
+ key: string;
1358
+ value?: string | undefined;
1359
+ id?: string | undefined;
1360
+ enabled?: boolean | undefined;
1361
+ }>, "many">>;
1362
+ continueOnFailure: z.ZodOptional<z.ZodBoolean>;
1363
+ }, "strict", z.ZodTypeAny, {
1364
+ value: string;
1365
+ connectionId: string;
1366
+ topic: string;
1367
+ key?: string | undefined;
1368
+ headers?: {
1369
+ key: string;
1370
+ value: string;
1371
+ id?: string | undefined;
1372
+ enabled?: boolean | undefined;
1373
+ }[] | undefined;
1374
+ enabled?: boolean | undefined;
1375
+ valueFormat?: "raw" | "json" | undefined;
1376
+ continueOnFailure?: boolean | undefined;
1377
+ }, {
1378
+ value: string;
1379
+ connectionId: string;
1380
+ topic: string;
1381
+ key?: string | undefined;
1382
+ headers?: {
1383
+ key: string;
1384
+ value?: string | undefined;
1385
+ id?: string | undefined;
1386
+ enabled?: boolean | undefined;
1387
+ }[] | undefined;
1388
+ enabled?: boolean | undefined;
1389
+ valueFormat?: "raw" | "json" | undefined;
1390
+ continueOnFailure?: boolean | undefined;
1391
+ }>>>;
1392
+ }, "strict", z.ZodTypeAny, {
1393
+ timeoutMs?: number | undefined;
1394
+ enabled?: boolean | undefined;
1395
+ connectionId?: string | undefined;
1396
+ topic?: string | undefined;
1397
+ matchMode?: "regex" | "rules" | undefined;
1398
+ matchPattern?: string | undefined;
1399
+ assertions?: {
1400
+ name: string;
1401
+ field: string;
1402
+ operator: "equals" | "not_equals" | "exists" | "gt" | "lt";
1403
+ value?: string | undefined;
1404
+ id?: string | undefined;
1405
+ valueType?: "static" | "template" | undefined;
1406
+ }[] | undefined;
1407
+ prePublish?: {
1408
+ value: string;
1409
+ connectionId: string;
1410
+ topic: string;
1411
+ key?: string | undefined;
1412
+ headers?: {
1413
+ key: string;
1414
+ value: string;
1415
+ id?: string | undefined;
1416
+ enabled?: boolean | undefined;
1417
+ }[] | undefined;
1418
+ enabled?: boolean | undefined;
1419
+ valueFormat?: "raw" | "json" | undefined;
1420
+ continueOnFailure?: boolean | undefined;
1421
+ } | null | undefined;
1422
+ postPublish?: {
1423
+ value: string;
1424
+ connectionId: string;
1425
+ topic: string;
1426
+ key?: string | undefined;
1427
+ headers?: {
1428
+ key: string;
1429
+ value: string;
1430
+ id?: string | undefined;
1431
+ enabled?: boolean | undefined;
1432
+ }[] | undefined;
1433
+ enabled?: boolean | undefined;
1434
+ valueFormat?: "raw" | "json" | undefined;
1435
+ continueOnFailure?: boolean | undefined;
1436
+ } | null | undefined;
1437
+ }, {
1438
+ timeoutMs?: number | undefined;
1439
+ enabled?: boolean | undefined;
1440
+ connectionId?: string | undefined;
1441
+ topic?: string | undefined;
1442
+ matchMode?: "regex" | "rules" | undefined;
1443
+ matchPattern?: string | undefined;
1444
+ assertions?: {
1445
+ name: string;
1446
+ field: string;
1447
+ operator: "equals" | "not_equals" | "exists" | "gt" | "lt";
1448
+ value?: string | undefined;
1449
+ id?: string | undefined;
1450
+ valueType?: "static" | "template" | undefined;
1451
+ }[] | undefined;
1452
+ prePublish?: {
1453
+ value: string;
1454
+ connectionId: string;
1455
+ topic: string;
1456
+ key?: string | undefined;
1457
+ headers?: {
1458
+ key: string;
1459
+ value?: string | undefined;
1460
+ id?: string | undefined;
1461
+ enabled?: boolean | undefined;
1462
+ }[] | undefined;
1463
+ enabled?: boolean | undefined;
1464
+ valueFormat?: "raw" | "json" | undefined;
1465
+ continueOnFailure?: boolean | undefined;
1466
+ } | null | undefined;
1467
+ postPublish?: {
1468
+ value: string;
1469
+ connectionId: string;
1470
+ topic: string;
1471
+ key?: string | undefined;
1472
+ headers?: {
1473
+ key: string;
1474
+ value?: string | undefined;
1475
+ id?: string | undefined;
1476
+ enabled?: boolean | undefined;
1477
+ }[] | undefined;
1478
+ enabled?: boolean | undefined;
1479
+ valueFormat?: "raw" | "json" | undefined;
1480
+ continueOnFailure?: boolean | undefined;
1481
+ } | null | undefined;
1482
+ }>>>>;
1483
+ redis: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodObject<{
1484
+ enabled: z.ZodOptional<z.ZodBoolean>;
1485
+ connectionId: z.ZodString;
1486
+ preCommands: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1487
+ postCommands: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1488
+ assertions: z.ZodOptional<z.ZodArray<z.ZodObject<{
1489
+ id: z.ZodOptional<z.ZodString>;
1490
+ name: z.ZodString;
1491
+ key: z.ZodString;
1492
+ operator: z.ZodEnum<["equals", "contains", "exists", "not_exists", "gt"]>;
1493
+ value: z.ZodOptional<z.ZodString>;
1494
+ }, "strict", z.ZodTypeAny, {
1495
+ key: string;
1496
+ name: string;
1497
+ operator: "equals" | "exists" | "gt" | "contains" | "not_exists";
1498
+ value?: string | undefined;
1499
+ id?: string | undefined;
1500
+ }, {
1501
+ key: string;
1502
+ name: string;
1503
+ operator: "equals" | "exists" | "gt" | "contains" | "not_exists";
1504
+ value?: string | undefined;
1505
+ id?: string | undefined;
1506
+ }>, "many">>;
1507
+ }, "strict", z.ZodTypeAny, {
1508
+ connectionId: string;
1509
+ enabled?: boolean | undefined;
1510
+ assertions?: {
1511
+ key: string;
1512
+ name: string;
1513
+ operator: "equals" | "exists" | "gt" | "contains" | "not_exists";
1514
+ value?: string | undefined;
1515
+ id?: string | undefined;
1516
+ }[] | undefined;
1517
+ preCommands?: string[] | undefined;
1518
+ postCommands?: string[] | undefined;
1519
+ }, {
1520
+ connectionId: string;
1521
+ enabled?: boolean | undefined;
1522
+ assertions?: {
1523
+ key: string;
1524
+ name: string;
1525
+ operator: "equals" | "exists" | "gt" | "contains" | "not_exists";
1526
+ value?: string | undefined;
1527
+ id?: string | undefined;
1528
+ }[] | undefined;
1529
+ preCommands?: string[] | undefined;
1530
+ postCommands?: string[] | undefined;
1531
+ }>>>>;
1532
+ dbAssertions: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodObject<{
1533
+ id: z.ZodOptional<z.ZodString>;
1534
+ name: z.ZodString;
1535
+ source: z.ZodEnum<["db_pre", "db_post"]>;
1536
+ field: z.ZodString;
1537
+ operator: z.ZodEnum<["equals", "not_equals", "exists", "gt", "lt"]>;
1538
+ valueType: z.ZodOptional<z.ZodEnum<["static", "response"]>>;
1539
+ value: z.ZodOptional<z.ZodString>;
1540
+ }, "strict", z.ZodTypeAny, {
1541
+ name: string;
1542
+ field: string;
1543
+ operator: "equals" | "not_equals" | "exists" | "gt" | "lt";
1544
+ source: "db_pre" | "db_post";
1545
+ value?: string | undefined;
1546
+ id?: string | undefined;
1547
+ valueType?: "static" | "response" | undefined;
1548
+ }, {
1549
+ name: string;
1550
+ field: string;
1551
+ operator: "equals" | "not_equals" | "exists" | "gt" | "lt";
1552
+ source: "db_pre" | "db_post";
1553
+ value?: string | undefined;
1554
+ id?: string | undefined;
1555
+ valueType?: "static" | "response" | undefined;
1556
+ }>, "many">>>;
1557
+ kafkaScript: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1558
+ pathVariables: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodObject<{
1559
+ key: z.ZodString;
1560
+ value: z.ZodDefault<z.ZodString>;
1561
+ description: z.ZodOptional<z.ZodString>;
1562
+ }, "strict", z.ZodTypeAny, {
1563
+ key: string;
1564
+ value: string;
1565
+ description?: string | undefined;
1566
+ }, {
1567
+ key: string;
1568
+ value?: string | undefined;
1569
+ description?: string | undefined;
1570
+ }>, "many">>>;
572
1571
  auth: z.ZodOptional<z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
573
1572
  type: z.ZodLiteral<"none">;
574
- }, "strip", z.ZodTypeAny, {
1573
+ }, "strict", z.ZodTypeAny, {
575
1574
  type: "none";
576
1575
  }, {
577
1576
  type: "none";
578
1577
  }>, z.ZodObject<{
579
1578
  type: z.ZodLiteral<"bearer">;
580
1579
  token: z.ZodString;
581
- }, "strip", z.ZodTypeAny, {
1580
+ }, "strict", z.ZodTypeAny, {
582
1581
  token: string;
583
1582
  type: "bearer";
584
1583
  }, {
@@ -588,7 +1587,7 @@ export declare const updateRequestInputSchema: z.ZodObject<Omit<{
588
1587
  type: z.ZodLiteral<"basic">;
589
1588
  username: z.ZodString;
590
1589
  password: z.ZodDefault<z.ZodString>;
591
- }, "strip", z.ZodTypeAny, {
1590
+ }, "strict", z.ZodTypeAny, {
592
1591
  type: "basic";
593
1592
  username: string;
594
1593
  password: string;
@@ -601,7 +1600,7 @@ export declare const updateRequestInputSchema: z.ZodObject<Omit<{
601
1600
  key: z.ZodString;
602
1601
  value: z.ZodString;
603
1602
  location: z.ZodDefault<z.ZodEnum<["header", "query"]>>;
604
- }, "strip", z.ZodTypeAny, {
1603
+ }, "strict", z.ZodTypeAny, {
605
1604
  key: string;
606
1605
  value: string;
607
1606
  type: "apiKey";
@@ -623,7 +1622,7 @@ export declare const updateRequestInputSchema: z.ZodObject<Omit<{
623
1622
  refreshToken: z.ZodDefault<z.ZodString>;
624
1623
  clientAuth: z.ZodDefault<z.ZodEnum<["basic", "body"]>>;
625
1624
  audience: z.ZodDefault<z.ZodString>;
626
- }, "strip", z.ZodTypeAny, {
1625
+ }, "strict", z.ZodTypeAny, {
627
1626
  type: "oauth2";
628
1627
  audience: string;
629
1628
  scope: string;
@@ -652,33 +1651,132 @@ export declare const updateRequestInputSchema: z.ZodObject<Omit<{
652
1651
  postResponseScript: z.ZodOptional<z.ZodOptional<z.ZodString>>;
653
1652
  testsScript: z.ZodOptional<z.ZodOptional<z.ZodString>>;
654
1653
  folder: z.ZodOptional<z.ZodOptional<z.ZodString>>;
655
- folderKey: z.ZodOptional<z.ZodOptional<z.ZodString>>;
656
1654
  isEnabledInRunner: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
657
- }, "folderKey"> & {
1655
+ } & {
658
1656
  collection: z.ZodOptional<z.ZodString>;
659
- }, "strip", z.ZodTypeAny, {
1657
+ }, "strict", z.ZodTypeAny, {
660
1658
  query?: {
661
1659
  key: string;
662
1660
  value: string;
663
- description?: string | undefined;
664
1661
  enabled?: boolean | undefined;
665
1662
  }[] | undefined;
666
- method?: "GET" | "POST" | "DELETE" | "PATCH" | "PUT" | "HEAD" | "OPTIONS" | "TRACE" | undefined;
1663
+ method?: "GET" | "POST" | "PATCH" | "DELETE" | "PUT" | "HEAD" | "OPTIONS" | "TRACE" | undefined;
667
1664
  headers?: {
668
1665
  key: string;
669
1666
  value: string;
670
- description?: string | undefined;
671
1667
  enabled?: boolean | undefined;
672
1668
  }[] | undefined;
673
- body?: unknown;
1669
+ body?: string | number | boolean | Record<string, unknown> | unknown[] | {
1670
+ raw: string;
1671
+ mode: "raw";
1672
+ language?: "text" | "json" | "xml" | "html" | undefined;
1673
+ rawLanguage?: "text" | "json" | "xml" | "html" | undefined;
1674
+ } | {
1675
+ mode: "formdata" | "urlencoded";
1676
+ entries?: {
1677
+ key: string;
1678
+ value: string;
1679
+ enabled?: boolean | undefined;
1680
+ }[] | undefined;
1681
+ formEntries?: z.objectOutputType<{
1682
+ key: z.ZodString;
1683
+ value: z.ZodDefault<z.ZodString>;
1684
+ enabled: z.ZodOptional<z.ZodBoolean>;
1685
+ }, z.ZodTypeAny, "passthrough">[] | undefined;
1686
+ } | {
1687
+ mode: "json";
1688
+ json?: unknown;
1689
+ } | {
1690
+ mode: "none";
1691
+ } | undefined;
674
1692
  name?: string | undefined;
675
1693
  url?: string | undefined;
676
1694
  collection?: string | undefined;
1695
+ database?: {
1696
+ preRequest?: {
1697
+ query: string;
1698
+ connectionId: string;
1699
+ enabled?: boolean | undefined;
1700
+ } | null | undefined;
1701
+ postResponse?: {
1702
+ query: string;
1703
+ connectionId: string;
1704
+ enabled?: boolean | undefined;
1705
+ } | null | undefined;
1706
+ } | undefined;
1707
+ kafka?: {
1708
+ timeoutMs?: number | undefined;
1709
+ enabled?: boolean | undefined;
1710
+ connectionId?: string | undefined;
1711
+ topic?: string | undefined;
1712
+ matchMode?: "regex" | "rules" | undefined;
1713
+ matchPattern?: string | undefined;
1714
+ assertions?: {
1715
+ name: string;
1716
+ field: string;
1717
+ operator: "equals" | "not_equals" | "exists" | "gt" | "lt";
1718
+ value?: string | undefined;
1719
+ id?: string | undefined;
1720
+ valueType?: "static" | "template" | undefined;
1721
+ }[] | undefined;
1722
+ prePublish?: {
1723
+ value: string;
1724
+ connectionId: string;
1725
+ topic: string;
1726
+ key?: string | undefined;
1727
+ headers?: {
1728
+ key: string;
1729
+ value: string;
1730
+ id?: string | undefined;
1731
+ enabled?: boolean | undefined;
1732
+ }[] | undefined;
1733
+ enabled?: boolean | undefined;
1734
+ valueFormat?: "raw" | "json" | undefined;
1735
+ continueOnFailure?: boolean | undefined;
1736
+ } | null | undefined;
1737
+ postPublish?: {
1738
+ value: string;
1739
+ connectionId: string;
1740
+ topic: string;
1741
+ key?: string | undefined;
1742
+ headers?: {
1743
+ key: string;
1744
+ value: string;
1745
+ id?: string | undefined;
1746
+ enabled?: boolean | undefined;
1747
+ }[] | undefined;
1748
+ enabled?: boolean | undefined;
1749
+ valueFormat?: "raw" | "json" | undefined;
1750
+ continueOnFailure?: boolean | undefined;
1751
+ } | null | undefined;
1752
+ } | null | undefined;
1753
+ redis?: {
1754
+ connectionId: string;
1755
+ enabled?: boolean | undefined;
1756
+ assertions?: {
1757
+ key: string;
1758
+ name: string;
1759
+ operator: "equals" | "exists" | "gt" | "contains" | "not_exists";
1760
+ value?: string | undefined;
1761
+ id?: string | undefined;
1762
+ }[] | undefined;
1763
+ preCommands?: string[] | undefined;
1764
+ postCommands?: string[] | undefined;
1765
+ } | null | undefined;
1766
+ dbAssertions?: {
1767
+ name: string;
1768
+ field: string;
1769
+ operator: "equals" | "not_equals" | "exists" | "gt" | "lt";
1770
+ source: "db_pre" | "db_post";
1771
+ value?: string | undefined;
1772
+ id?: string | undefined;
1773
+ valueType?: "static" | "response" | undefined;
1774
+ }[] | undefined;
1775
+ kafkaScript?: string | undefined;
677
1776
  pathVariables?: {
678
1777
  key: string;
679
1778
  value: string;
680
1779
  description?: string | undefined;
681
- enabled?: boolean | undefined;
682
1780
  }[] | undefined;
683
1781
  auth?: {
684
1782
  type: "none";
@@ -716,25 +1814,125 @@ export declare const updateRequestInputSchema: z.ZodObject<Omit<{
716
1814
  query?: {
717
1815
  key: string;
718
1816
  value?: string | undefined;
719
- description?: string | undefined;
720
1817
  enabled?: boolean | undefined;
721
1818
  }[] | undefined;
722
- method?: "GET" | "POST" | "DELETE" | "PATCH" | "PUT" | "HEAD" | "OPTIONS" | "TRACE" | undefined;
1819
+ method?: "GET" | "POST" | "PATCH" | "DELETE" | "PUT" | "HEAD" | "OPTIONS" | "TRACE" | undefined;
723
1820
  headers?: {
724
1821
  key: string;
725
1822
  value?: string | undefined;
726
- description?: string | undefined;
727
1823
  enabled?: boolean | undefined;
728
1824
  }[] | undefined;
729
- body?: unknown;
1825
+ body?: string | number | boolean | Record<string, unknown> | unknown[] | {
1826
+ raw: string;
1827
+ mode: "raw";
1828
+ language?: "text" | "json" | "xml" | "html" | undefined;
1829
+ rawLanguage?: "text" | "json" | "xml" | "html" | undefined;
1830
+ } | {
1831
+ mode: "formdata" | "urlencoded";
1832
+ entries?: {
1833
+ key: string;
1834
+ value?: string | undefined;
1835
+ enabled?: boolean | undefined;
1836
+ }[] | undefined;
1837
+ formEntries?: z.objectInputType<{
1838
+ key: z.ZodString;
1839
+ value: z.ZodDefault<z.ZodString>;
1840
+ enabled: z.ZodOptional<z.ZodBoolean>;
1841
+ }, z.ZodTypeAny, "passthrough">[] | undefined;
1842
+ } | {
1843
+ mode: "json";
1844
+ json?: unknown;
1845
+ } | {
1846
+ mode: "none";
1847
+ } | undefined;
730
1848
  name?: string | undefined;
731
1849
  url?: string | undefined;
732
1850
  collection?: string | undefined;
1851
+ database?: {
1852
+ preRequest?: {
1853
+ query: string;
1854
+ connectionId: string;
1855
+ enabled?: boolean | undefined;
1856
+ } | null | undefined;
1857
+ postResponse?: {
1858
+ query: string;
1859
+ connectionId: string;
1860
+ enabled?: boolean | undefined;
1861
+ } | null | undefined;
1862
+ } | undefined;
1863
+ kafka?: {
1864
+ timeoutMs?: number | undefined;
1865
+ enabled?: boolean | undefined;
1866
+ connectionId?: string | undefined;
1867
+ topic?: string | undefined;
1868
+ matchMode?: "regex" | "rules" | undefined;
1869
+ matchPattern?: string | undefined;
1870
+ assertions?: {
1871
+ name: string;
1872
+ field: string;
1873
+ operator: "equals" | "not_equals" | "exists" | "gt" | "lt";
1874
+ value?: string | undefined;
1875
+ id?: string | undefined;
1876
+ valueType?: "static" | "template" | undefined;
1877
+ }[] | undefined;
1878
+ prePublish?: {
1879
+ value: string;
1880
+ connectionId: string;
1881
+ topic: string;
1882
+ key?: string | undefined;
1883
+ headers?: {
1884
+ key: string;
1885
+ value?: string | undefined;
1886
+ id?: string | undefined;
1887
+ enabled?: boolean | undefined;
1888
+ }[] | undefined;
1889
+ enabled?: boolean | undefined;
1890
+ valueFormat?: "raw" | "json" | undefined;
1891
+ continueOnFailure?: boolean | undefined;
1892
+ } | null | undefined;
1893
+ postPublish?: {
1894
+ value: string;
1895
+ connectionId: string;
1896
+ topic: string;
1897
+ key?: string | undefined;
1898
+ headers?: {
1899
+ key: string;
1900
+ value?: string | undefined;
1901
+ id?: string | undefined;
1902
+ enabled?: boolean | undefined;
1903
+ }[] | undefined;
1904
+ enabled?: boolean | undefined;
1905
+ valueFormat?: "raw" | "json" | undefined;
1906
+ continueOnFailure?: boolean | undefined;
1907
+ } | null | undefined;
1908
+ } | null | undefined;
1909
+ redis?: {
1910
+ connectionId: string;
1911
+ enabled?: boolean | undefined;
1912
+ assertions?: {
1913
+ key: string;
1914
+ name: string;
1915
+ operator: "equals" | "exists" | "gt" | "contains" | "not_exists";
1916
+ value?: string | undefined;
1917
+ id?: string | undefined;
1918
+ }[] | undefined;
1919
+ preCommands?: string[] | undefined;
1920
+ postCommands?: string[] | undefined;
1921
+ } | null | undefined;
1922
+ dbAssertions?: {
1923
+ name: string;
1924
+ field: string;
1925
+ operator: "equals" | "not_equals" | "exists" | "gt" | "lt";
1926
+ source: "db_pre" | "db_post";
1927
+ value?: string | undefined;
1928
+ id?: string | undefined;
1929
+ valueType?: "static" | "response" | undefined;
1930
+ }[] | undefined;
1931
+ kafkaScript?: string | undefined;
733
1932
  pathVariables?: {
734
1933
  key: string;
735
1934
  value?: string | undefined;
736
1935
  description?: string | undefined;
737
- enabled?: boolean | undefined;
738
1936
  }[] | undefined;
739
1937
  auth?: {
740
1938
  type: "none";
@@ -770,10 +1968,10 @@ export declare const updateRequestInputSchema: z.ZodObject<Omit<{
770
1968
  isEnabledInRunner?: boolean | undefined;
771
1969
  }>;
772
1970
  export type UpdateRequestInput = z.infer<typeof updateRequestInputSchema>;
773
- export declare const toUpdateRequestPayload: (item: UpdateRequestInput, target: {
774
- collectionId?: string;
1971
+ export declare const toUpdateRequestPayload: (item: UpdateRequestInput, current: ApiRequest, target: {
775
1972
  folderId?: string | null;
776
- }) => Record<string, unknown>;
1973
+ }, resolve?: ConnectionResolver) => PayloadResult;
1974
+ export declare const bodyInputView: (body: unknown) => unknown;
777
1975
  export declare const compactRequestView: (request: ApiRequest, options?: {
778
1976
  full?: boolean;
779
1977
  reveal?: boolean;