@xanots/sdk 0.0.1 → 0.0.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 (43) hide show
  1. package/dist/.build-fingerprint +1 -0
  2. package/dist/bin.js +4 -4
  3. package/dist/{chunk-3DUAGYGP.js → chunk-55VHDNW5.js} +2 -2
  4. package/dist/{chunk-EMCAWMHC.js → chunk-5L4X5LS6.js} +16 -2
  5. package/dist/{chunk-LH6Z6KFV.js → chunk-5XZ744TS.js} +1 -1
  6. package/dist/{chunk-MZUI3JNX.js → chunk-F6JCFRKO.js} +2 -2
  7. package/dist/{chunk-RVB7ITKN.js → chunk-LU7TRWMC.js} +2 -2
  8. package/dist/{chunk-TRU5OHQ5.js → chunk-MUDLJG2O.js} +32 -20
  9. package/dist/{chunk-WKP4D5MO.js → chunk-ODNMVJ6H.js} +2 -2
  10. package/dist/{chunk-26CNBZE2.js → chunk-P3TTMWUP.js} +13 -4
  11. package/dist/{chunk-YDZYMZBE.js → chunk-TQUO2OXY.js} +4 -4
  12. package/dist/{chunk-FJ6ZS5KB.js → chunk-U3G2UW65.js} +177 -60
  13. package/dist/{chunk-YGPIY3WT.js → chunk-UVLVQWWF.js} +13 -13
  14. package/dist/{chunk-33ND6LKO.js → chunk-XLD4BUTF.js} +2 -2
  15. package/dist/{chunk-NOO35BQ2.js → chunk-ZPEY5WE4.js} +2 -2
  16. package/dist/cli.js +4 -4
  17. package/dist/{codegen-command-OOKK6AZK.js → codegen-command-RY2GWDLX.js} +11 -11
  18. package/dist/codegen.js +2 -2
  19. package/dist/{deploy-command-4EQ7XX5G.js → deploy-command-DSISLUW5.js} +8 -8
  20. package/dist/{env-target-IFJ5QDHC.js → env-target-7C2GKBCY.js} +2 -2
  21. package/dist/{ephemeral-command-3X3I4ULC.js → ephemeral-command-5K573ZSG.js} +2 -2
  22. package/dist/index.d.ts +106 -84
  23. package/dist/index.js +6 -6
  24. package/dist/{init-command-R6H7ZXW5.js → init-command-4AWL6CLW.js} +6 -6
  25. package/dist/internal.d.ts +2 -2
  26. package/dist/internal.js +28 -10
  27. package/dist/{live-diff-Y3AKETHE.js → live-diff-RXSJCVJ7.js} +2 -2
  28. package/dist/{lock-commands-XTR2YKLY.js → lock-commands-7Q5LNZKL.js} +5 -5
  29. package/dist/{loop-OM3P2Z6O.js → loop-SAWAOUFO.js} +2 -2
  30. package/dist/node.d.ts +2 -2
  31. package/dist/node.js +7 -7
  32. package/dist/{release-command-VV5UVZKL.js → release-command-QXLRJMY7.js} +10 -10
  33. package/dist/{store-BQ97nKIF.d.ts → store-g45zwB33.d.ts} +91 -75
  34. package/dist/{test-command-TSPBQHBM.js → test-command-BOLIU57E.js} +2 -2
  35. package/dist/{validate-command-4ERHJSCO.js → validate-command-SYCFEYZN.js} +7 -7
  36. package/dist/{workspace-command-OF23DPNI.js → workspace-command-TOB2AJ6X.js} +11 -11
  37. package/llms/statements-calls.md +4 -4
  38. package/llms/statements-catalog.md +20 -20
  39. package/llms/statements-data.md +1 -1
  40. package/llms-full.txt +26 -26
  41. package/llms.txt +1 -1
  42. package/manifest.json +57 -84
  43. package/package.json +4 -1
@@ -1,6 +1,8 @@
1
1
  import {
2
2
  SCALAR_FAMILY,
3
3
  and,
4
+ argsOrEmpty,
5
+ assertArg,
4
6
  assertCanonical,
5
7
  assertInputValue,
6
8
  assertLambdaStatement,
@@ -33,7 +35,7 @@ import {
33
35
  registerKind,
34
36
  tableColumns,
35
37
  withFilters
36
- } from "./chunk-EMCAWMHC.js";
38
+ } from "./chunk-5L4X5LS6.js";
37
39
  import {
38
40
  assertPathParamInputs,
39
41
  fillPathParams,
@@ -44,7 +46,7 @@ import {
44
46
  encodeStatement,
45
47
  isRegisteredStatement,
46
48
  registerStatement
47
- } from "./chunk-LH6Z6KFV.js";
49
+ } from "./chunk-5XZ744TS.js";
48
50
  import {
49
51
  deriveGuid,
50
52
  realtimeChannelSeedName,
@@ -55,6 +57,7 @@ import {
55
57
  var SET_VAR = "mvp:set_var";
56
58
  var UPDATE_VAR = "mvp:update_var";
57
59
  function setVar(as, value, a) {
60
+ assertArg(SET_VAR, "value", value);
58
61
  return annotate(
59
62
  {
60
63
  name: SET_VAR,
@@ -65,6 +68,7 @@ function setVar(as, value, a) {
65
68
  );
66
69
  }
67
70
  function updateVar(name, value, a) {
71
+ assertArg(UPDATE_VAR, "value", value);
68
72
  return annotate(
69
73
  {
70
74
  name: UPDATE_VAR,
@@ -146,18 +150,19 @@ function qualifyAggregateEvals(evals, primaryAlias, kind) {
146
150
  function asValue(arg) {
147
151
  return "tag" in arg ? arg : arg.value;
148
152
  }
149
- function valueContext(arg) {
153
+ function valueContext(statement, arg) {
154
+ assertArg(statement, "value", arg);
150
155
  const value = asValue(arg);
151
156
  return { value: value.value, tag: value.tag, filters: value.filters };
152
157
  }
153
158
  function returnValue(value, a) {
154
- return annotate({ name: "mvp:return", context: valueContext(value) }, a);
159
+ return annotate({ name: "mvp:return", context: valueContext("mvp:return", value) }, a);
155
160
  }
156
161
  function die(value, a) {
157
- return annotate({ name: "mvp:die", context: valueContext(value) }, a);
162
+ return annotate({ name: "mvp:die", context: valueContext("mvp:die", value) }, a);
158
163
  }
159
164
  function debugLog(value, a) {
160
- return annotate({ name: "mvp:debug_log", context: valueContext(value) }, a);
165
+ return annotate({ name: "mvp:debug_log", context: valueContext("mvp:debug_log", value) }, a);
161
166
  }
162
167
  function foreachBreak(a) {
163
168
  return annotate({ name: "mvp:foreach_break", context: {} }, a);
@@ -183,6 +188,10 @@ function run(body) {
183
188
  return body.map(encodeStatement);
184
189
  }
185
190
  function forLoop(args) {
191
+ args = argsOrEmpty(args);
192
+ assertArg("mvp:for", "as", args.as);
193
+ assertArg("mvp:for", "count", args.count);
194
+ assertArg("mvp:for", "body", args.body);
186
195
  return annotate({
187
196
  name: "mvp:for",
188
197
  context: { as: args.as, cnt: valueFields(args.count), run: run(args.body) },
@@ -190,6 +199,10 @@ function forLoop(args) {
190
199
  }, args);
191
200
  }
192
201
  function foreachLoop(args) {
202
+ args = argsOrEmpty(args);
203
+ assertArg("mvp:foreach", "as", args.as);
204
+ assertArg("mvp:foreach", "list", args.list);
205
+ assertArg("mvp:foreach", "body", args.body);
193
206
  return annotate({
194
207
  name: "mvp:foreach",
195
208
  context: { as: args.as, list: valueFields(args.list), run: run(args.body) },
@@ -197,6 +210,9 @@ function foreachLoop(args) {
197
210
  }, args);
198
211
  }
199
212
  function whileLoop(args) {
213
+ args = argsOrEmpty(args);
214
+ assertArg("mvp:while", "when", args.when);
215
+ assertArg("mvp:while", "body", args.body);
200
216
  return annotate({
201
217
  name: "mvp:while",
202
218
  context: { expr: encodeRuntimeCondition(args.when, "s.while `when`"), run: run(args.body) },
@@ -204,6 +220,7 @@ function whileLoop(args) {
204
220
  }, args);
205
221
  }
206
222
  function group(body, a) {
223
+ assertArg("mvp:group", "body", body);
207
224
  return annotate({ name: "mvp:group", context: { run: run(body) }, input: [] }, a);
208
225
  }
209
226
  registerStatement("mvp:for", forLoop);
@@ -227,6 +244,9 @@ function switchCase(args) {
227
244
  return annotate({ name: "mvp:switch_case", context, input: [] }, args);
228
245
  }
229
246
  function switchStatement(args) {
247
+ args = argsOrEmpty(args);
248
+ assertArg("mvp:switch", "on", args.on);
249
+ assertArg("mvp:switch", "cases", args.cases);
230
250
  return annotate({
231
251
  name: "mvp:switch",
232
252
  context: {
@@ -238,6 +258,8 @@ function switchStatement(args) {
238
258
  }, args);
239
259
  }
240
260
  function tryCatch(args) {
261
+ args = argsOrEmpty(args);
262
+ assertArg("mvp:try_catch", "try", args.try);
241
263
  return annotate({
242
264
  name: "mvp:try_catch",
243
265
  context: {
@@ -261,7 +283,9 @@ var plain = (v) => {
261
283
  const { value, tag, filters } = v;
262
284
  return { value, tag, filters };
263
285
  };
264
- var coerceText = (v) => v === void 0 ? void 0 : isValue2(v) ? plain(v) : c.text(v);
286
+ function coerceText(v) {
287
+ return v === void 0 ? void 0 : isValue2(v) ? plain(v) : c.text(v);
288
+ }
265
289
  var coerceInt = (v) => v === void 0 ? void 0 : isValue2(v) ? plain(v) : c.int(v);
266
290
  var coerceBool = (v) => v === void 0 ? void 0 : isValue2(v) ? plain(v) : c.bool(v);
267
291
  var coerceObj = (v) => {
@@ -435,6 +459,8 @@ function fnId(fn) {
435
459
  return fn === null ? "" : resolveRef("function", fn);
436
460
  }
437
461
  function functionRun(args) {
462
+ args = argsOrEmpty(args);
463
+ assertArg("mvp:function", "fn", args.fn);
438
464
  return annotate({
439
465
  name: "mvp:function",
440
466
  context: { function: { id: fnId(args.fn) } },
@@ -444,6 +470,8 @@ function functionRun(args) {
444
470
  }, args);
445
471
  }
446
472
  function functionCall(args) {
473
+ args = argsOrEmpty(args);
474
+ assertArg("mvp:workspace_run_function", "fn", args.fn);
447
475
  return annotate({
448
476
  name: "mvp:workspace_run_function",
449
477
  context: { id: resolveRef("function", args.fn) },
@@ -452,6 +480,8 @@ function functionCall(args) {
452
480
  }, args);
453
481
  }
454
482
  function apiCall(args) {
483
+ args = argsOrEmpty(args);
484
+ assertArg("mvp:workspace_run_endpoint", "api", args.api);
455
485
  const context = { id: resolveRef("query", args.api) };
456
486
  const headers = coerceHeaders(args.headers);
457
487
  if (headers) context.headers = vf(headers);
@@ -467,6 +497,8 @@ function apiCall(args) {
467
497
  }, args);
468
498
  }
469
499
  function taskCall(args) {
500
+ args = argsOrEmpty(args);
501
+ assertArg("mvp:workspace_run_task", "task", args.task);
470
502
  return annotate({
471
503
  name: "mvp:workspace_run_task",
472
504
  context: { id: resolveRef("task", args.task) },
@@ -475,6 +507,8 @@ function taskCall(args) {
475
507
  }, args);
476
508
  }
477
509
  function toolCall(args) {
510
+ args = argsOrEmpty(args);
511
+ assertArg("mvp:workspace_run_tool", "tool", args.tool);
478
512
  return annotate({
479
513
  name: "mvp:workspace_run_tool",
480
514
  context: { id: resolveRef("tool", args.tool) },
@@ -483,6 +517,8 @@ function toolCall(args) {
483
517
  }, args);
484
518
  }
485
519
  function triggerCall(args) {
520
+ args = argsOrEmpty(args);
521
+ assertArg("mvp:workspace_run_trigger", "trigger", args.trigger);
486
522
  return annotate({
487
523
  name: "mvp:workspace_run_trigger",
488
524
  context: { id: resolveRef("trigger", args.trigger) },
@@ -491,6 +527,8 @@ function triggerCall(args) {
491
527
  }, args);
492
528
  }
493
529
  function middlewareCall(args) {
530
+ args = argsOrEmpty(args);
531
+ assertArg("mvp:workspace_run_middleware", "middleware", args.middleware);
494
532
  return annotate({
495
533
  name: "mvp:workspace_run_middleware",
496
534
  context: { id: resolveRef("middleware", args.middleware) },
@@ -499,6 +537,8 @@ function middlewareCall(args) {
499
537
  }, args);
500
538
  }
501
539
  function addonCall(args) {
540
+ args = argsOrEmpty(args);
541
+ assertArg("mvp:workspace_run_addon", "addon", args.addon);
502
542
  return annotate({
503
543
  name: "mvp:workspace_run_addon",
504
544
  context: { id: resolveRef("addon", args.addon) },
@@ -507,6 +547,8 @@ function addonCall(args) {
507
547
  }, args);
508
548
  }
509
549
  function actionCall(args) {
550
+ args = argsOrEmpty(args);
551
+ assertArg("mvp:action", "action", args.action);
510
552
  return annotate({
511
553
  name: "mvp:action",
512
554
  context: { run_version: { id: resolveRef("function", args.action) } },
@@ -516,6 +558,7 @@ function actionCall(args) {
516
558
  }, args);
517
559
  }
518
560
  function actionPackageCall(args) {
561
+ args = argsOrEmpty(args);
519
562
  return annotate({
520
563
  name: "mvp:action_package",
521
564
  context: {
@@ -529,6 +572,8 @@ function actionPackageCall(args) {
529
572
  }, args);
530
573
  }
531
574
  function workflowTestCall(args) {
575
+ args = argsOrEmpty(args);
576
+ assertArg("mvp:workspace_run_workflow_test", "workflowTest", args.workflowTest);
532
577
  return annotate({
533
578
  name: "mvp:workspace_run_workflow_test",
534
579
  context: {
@@ -556,6 +601,8 @@ function vf2(v) {
556
601
  return { value: v.value, tag: v.tag, filters: v.filters };
557
602
  }
558
603
  function aiAgentRun(a) {
604
+ a = argsOrEmpty(a);
605
+ assertArg("mvp:call_agent", "agent", a.agent);
559
606
  const input2 = [];
560
607
  if (a.args !== void 0) {
561
608
  const argsValue = isTaggedValue(a.args) ? a.args : obj(a.args);
@@ -574,9 +621,12 @@ function aiAgentRun(a) {
574
621
  return annotate(stmt, a);
575
622
  }
576
623
  function cloudJob(a) {
624
+ a = argsOrEmpty(a);
625
+ assertArg("mvp:cloud_job", "image", a.image);
626
+ assertArg("mvp:cloud_job", "command", a.command);
577
627
  const input2 = [];
578
- if (a.image) input2.push({ name: "image", ...vf2(a.image) });
579
- if (a.command) input2.push({ name: "command", ...vf2(a.command) });
628
+ input2.push({ name: "image", ...vf2(a.image) });
629
+ input2.push({ name: "command", ...vf2(a.command) });
580
630
  if (a.args) input2.push({ name: "args", ...vf2(a.args) });
581
631
  if (a.secret) input2.push({ name: "secret", ...vf2(a.secret) });
582
632
  if (a.template) input2.push({ name: "template", ...vf2(a.template) });
@@ -584,6 +634,9 @@ function cloudJob(a) {
584
634
  return annotate({ name: "mvp:cloud_job", context: {}, as: a.as ?? "", input: input2 }, a);
585
635
  }
586
636
  function cloudJobAwait(a) {
637
+ a = argsOrEmpty(a);
638
+ assertArg("mvp:cloud_job_await", "ids", a.ids);
639
+ assertArg("mvp:cloud_job_await", "timeout", a.timeout);
587
640
  return annotate({
588
641
  name: "mvp:cloud_job_await",
589
642
  context: {},
@@ -595,6 +648,8 @@ function cloudJobAwait(a) {
595
648
  }, a);
596
649
  }
597
650
  function cloudJobStatus(a) {
651
+ a = argsOrEmpty(a);
652
+ assertArg("mvp:cloud_job_status", "id", a.id);
598
653
  return annotate({
599
654
  name: "mvp:cloud_job_status",
600
655
  context: {},
@@ -684,6 +739,7 @@ function inputEntry(name, v, full) {
684
739
  return entry2;
685
740
  }
686
741
  function encodeFromSpec(spec2, authored) {
742
+ authored ??= {};
687
743
  authored = coerceLambdaFields(spec2.name, authored);
688
744
  assertLambdaStatement(spec2.name, authored);
689
745
  const env = spec2.envelope;
@@ -773,16 +829,16 @@ function registerSpec(spec2) {
773
829
  // src/statements/generated/specs.generated.ts
774
830
  var GENERATED_SPECS = [
775
831
  { "name": "mvp:algolia_request", "output": true, "rules": [{ "field": "as", "type": "string", "optional": true, "route": { "kind": "as" } }, { "field": "application_id", "type": "value", "optional": false, "route": { "kind": "input", "name": "application_id" } }, { "field": "api_key", "type": "value", "optional": false, "route": { "kind": "input", "name": "api_key" } }, { "field": "url", "type": "value", "optional": false, "route": { "kind": "input", "name": "url" } }, { "field": "method", "type": "value", "optional": true, "enum": ["POST", "GET", "DELETE", "PUT"], "route": { "kind": "input", "name": "method" } }, { "field": "payload", "type": "value", "optional": false, "route": { "kind": "input", "name": "payload" } }], "envelope": { "inputFull": true, "description": true, "settingsRegistry": true, "addon": true, "richOutput": true } },
776
- { "name": "mvp:amazon_opensearch_document", "rules": [{ "field": "as", "type": "string", "optional": true, "route": { "kind": "as" } }, { "field": "auth_type", "type": "value", "optional": true, "default": "IAM", "enum": ["IAM", "master"], "route": { "kind": "input", "name": "auth_type" } }, { "field": "key_id", "type": "value", "optional": true, "default": "", "route": { "kind": "input", "name": "key_id" } }, { "field": "access_key", "type": "value", "optional": true, "default": "", "route": { "kind": "input", "name": "access_key" } }, { "field": "region", "type": "value", "optional": true, "default": "", "route": { "kind": "input", "name": "region" } }, { "field": "base_url", "type": "value", "optional": false, "route": { "kind": "input", "name": "base_url" } }, { "field": "method", "type": "value", "optional": true, "default": "GET", "enum": ["GET", "POST", "PUT", "DELETE"], "route": { "kind": "input", "name": "method" } }, { "field": "index", "type": "value", "optional": true, "default": "", "route": { "kind": "input", "name": "index" } }, { "field": "doc_id", "type": "value", "optional": true, "default": "", "route": { "kind": "input", "name": "doc_id" } }, { "field": "doc", "type": "value", "optional": true, "default": "", "route": { "kind": "input", "name": "doc" } }] },
777
- { "name": "mvp:amazon_opensearch_query", "rules": [{ "field": "as", "type": "string", "optional": true, "route": { "kind": "as" } }, { "field": "auth_type", "type": "value", "optional": true, "default": "IAM", "enum": ["IAM", "master"], "route": { "kind": "input", "name": "auth_type" } }, { "field": "key_id", "type": "value", "optional": true, "default": "", "route": { "kind": "input", "name": "key_id" } }, { "field": "access_key", "type": "value", "optional": true, "default": "", "route": { "kind": "input", "name": "access_key" } }, { "field": "region", "type": "value", "optional": true, "default": "", "route": { "kind": "input", "name": "region" } }, { "field": "base_url", "type": "value", "optional": true, "default": "", "route": { "kind": "input", "name": "base_url" } }, { "field": "index", "type": "value", "optional": true, "default": "", "route": { "kind": "input", "name": "index" } }, { "field": "payload", "type": "value", "optional": true, "default": "{}", "route": { "kind": "input", "name": "payload" } }, { "field": "size", "type": "value", "optional": true, "default": "null", "route": { "kind": "input", "name": "size" } }, { "field": "from", "type": "value", "optional": true, "default": "", "route": { "kind": "input", "name": "from" } }, { "field": "included_fields", "type": "value", "optional": true, "default": "[]", "route": { "kind": "input", "name": "included_fields" } }, { "field": "return_type", "type": "value", "optional": true, "default": "search", "enum": ["search", "count"], "route": { "kind": "input", "name": "return_type" } }, { "field": "expression", "type": "value", "optional": true, "default": "[]", "route": { "kind": "input", "name": "expression" } }, { "field": "sort", "type": "value", "optional": true, "default": "[]", "route": { "kind": "input", "name": "sort" } }] },
778
- { "name": "mvp:amazon_opensearch_request", "rules": [{ "field": "as", "type": "string", "optional": true, "route": { "kind": "as" } }, { "field": "auth_type", "type": "value", "optional": true, "default": "IAM", "enum": ["IAM", "master"], "route": { "kind": "input", "name": "auth_type" } }, { "field": "key_id", "type": "value", "optional": true, "default": "", "route": { "kind": "input", "name": "key_id" } }, { "field": "access_key", "type": "value", "optional": true, "default": "", "route": { "kind": "input", "name": "access_key" } }, { "field": "region", "type": "value", "optional": true, "default": "", "route": { "kind": "input", "name": "region" } }, { "field": "method", "type": "value", "optional": true, "default": "GET", "enum": ["GET", "POST", "PUT", "DELETE", "HEAD", "OPTIONS", "PATCH"], "route": { "kind": "input", "name": "method" } }, { "field": "url", "type": "value", "optional": true, "default": "", "route": { "kind": "input", "name": "url" } }, { "field": "query", "type": "value", "optional": true, "default": "{}", "route": { "kind": "input", "name": "query" } }] },
832
+ { "name": "mvp:amazon_opensearch_document", "rules": [{ "field": "as", "type": "string", "optional": true, "route": { "kind": "as" } }, { "field": "auth_type", "type": "value", "optional": true, "default": "IAM", "enum": ["IAM", "master"], "route": { "kind": "input", "name": "auth_type" } }, { "field": "key_id", "type": "value", "optional": false, "route": { "kind": "input", "name": "key_id" } }, { "field": "access_key", "type": "value", "optional": false, "route": { "kind": "input", "name": "access_key" } }, { "field": "region", "type": "value", "optional": false, "route": { "kind": "input", "name": "region" } }, { "field": "base_url", "type": "value", "optional": false, "route": { "kind": "input", "name": "base_url" } }, { "field": "method", "type": "value", "optional": true, "default": "GET", "enum": ["GET", "POST", "PUT", "DELETE"], "route": { "kind": "input", "name": "method" } }, { "field": "index", "type": "value", "optional": false, "route": { "kind": "input", "name": "index" } }, { "field": "doc_id", "type": "value", "optional": false, "route": { "kind": "input", "name": "doc_id" } }, { "field": "doc", "type": "value", "optional": false, "route": { "kind": "input", "name": "doc" } }] },
833
+ { "name": "mvp:amazon_opensearch_query", "rules": [{ "field": "as", "type": "string", "optional": true, "route": { "kind": "as" } }, { "field": "auth_type", "type": "value", "optional": true, "default": "IAM", "enum": ["IAM", "master"], "route": { "kind": "input", "name": "auth_type" } }, { "field": "key_id", "type": "value", "optional": false, "route": { "kind": "input", "name": "key_id" } }, { "field": "access_key", "type": "value", "optional": false, "route": { "kind": "input", "name": "access_key" } }, { "field": "region", "type": "value", "optional": false, "route": { "kind": "input", "name": "region" } }, { "field": "base_url", "type": "value", "optional": false, "route": { "kind": "input", "name": "base_url" } }, { "field": "index", "type": "value", "optional": false, "route": { "kind": "input", "name": "index" } }, { "field": "payload", "type": "value", "optional": false, "route": { "kind": "input", "name": "payload" } }, { "field": "size", "type": "value", "optional": true, "default": "null", "route": { "kind": "input", "name": "size" } }, { "field": "from", "type": "value", "optional": true, "default": "", "route": { "kind": "input", "name": "from" } }, { "field": "included_fields", "type": "value", "optional": true, "default": "[]", "route": { "kind": "input", "name": "included_fields" } }, { "field": "return_type", "type": "value", "optional": true, "default": "search", "enum": ["search", "count"], "route": { "kind": "input", "name": "return_type" } }, { "field": "expression", "type": "value", "optional": true, "default": "[]", "route": { "kind": "input", "name": "expression" } }, { "field": "sort", "type": "value", "optional": true, "default": "[]", "route": { "kind": "input", "name": "sort" } }] },
834
+ { "name": "mvp:amazon_opensearch_request", "rules": [{ "field": "as", "type": "string", "optional": true, "route": { "kind": "as" } }, { "field": "auth_type", "type": "value", "optional": true, "default": "IAM", "enum": ["IAM", "master"], "route": { "kind": "input", "name": "auth_type" } }, { "field": "key_id", "type": "value", "optional": false, "route": { "kind": "input", "name": "key_id" } }, { "field": "access_key", "type": "value", "optional": false, "route": { "kind": "input", "name": "access_key" } }, { "field": "region", "type": "value", "optional": false, "route": { "kind": "input", "name": "region" } }, { "field": "method", "type": "value", "optional": true, "default": "GET", "enum": ["GET", "POST", "PUT", "DELETE", "HEAD", "OPTIONS", "PATCH"], "route": { "kind": "input", "name": "method" } }, { "field": "url", "type": "value", "optional": false, "route": { "kind": "input", "name": "url" } }, { "field": "query", "type": "value", "optional": false, "route": { "kind": "input", "name": "query" } }] },
779
835
  { "name": "mvp:amazon_s3_create_var_from_file_resource", "rules": [{ "field": "as", "type": "string", "optional": true, "route": { "kind": "as" } }, { "field": "bucket", "type": "value", "optional": false, "route": { "kind": "input", "name": "bucket" } }, { "field": "region", "type": "value", "optional": false, "route": { "kind": "input", "name": "region" } }, { "field": "key", "type": "value", "optional": false, "route": { "kind": "input", "name": "key" } }, { "field": "secret", "type": "value", "optional": false, "route": { "kind": "input", "name": "secret" } }, { "field": "file_key", "type": "value", "optional": false, "route": { "kind": "input", "name": "file_key" } }] },
780
836
  { "name": "mvp:amazon_s3_delete_file", "rules": [{ "field": "as", "type": "string", "optional": true, "route": { "kind": "as" } }, { "field": "bucket", "type": "value", "optional": false, "route": { "kind": "input", "name": "bucket" } }, { "field": "region", "type": "value", "optional": false, "route": { "kind": "input", "name": "region" } }, { "field": "key", "type": "value", "optional": false, "route": { "kind": "input", "name": "key" } }, { "field": "secret", "type": "value", "optional": false, "route": { "kind": "input", "name": "secret" } }, { "field": "file_key", "type": "value", "optional": false, "route": { "kind": "input", "name": "file_key" } }] },
781
837
  { "name": "mvp:amazon_s3_get_file_metadata", "rules": [{ "field": "as", "type": "string", "optional": true, "route": { "kind": "as" } }, { "field": "bucket", "type": "value", "optional": false, "route": { "kind": "input", "name": "bucket" } }, { "field": "region", "type": "value", "optional": false, "route": { "kind": "input", "name": "region" } }, { "field": "key", "type": "value", "optional": false, "route": { "kind": "input", "name": "key" } }, { "field": "secret", "type": "value", "optional": false, "route": { "kind": "input", "name": "secret" } }, { "field": "file_key", "type": "value", "optional": false, "route": { "kind": "input", "name": "file_key" } }] },
782
838
  { "name": "mvp:amazon_s3_list_directory", "rules": [{ "field": "as", "type": "string", "optional": true, "route": { "kind": "as" } }, { "field": "bucket", "type": "value", "optional": false, "route": { "kind": "input", "name": "bucket" } }, { "field": "region", "type": "value", "optional": false, "route": { "kind": "input", "name": "region" } }, { "field": "key", "type": "value", "optional": false, "route": { "kind": "input", "name": "key" } }, { "field": "secret", "type": "value", "optional": false, "route": { "kind": "input", "name": "secret" } }, { "field": "prefix", "type": "value", "optional": true, "route": { "kind": "input", "name": "prefix" } }, { "field": "next_page_token", "type": "value", "optional": true, "route": { "kind": "input", "name": "next_page_token" } }] },
783
839
  { "name": "mvp:amazon_s3_signed_url", "rules": [{ "field": "as", "type": "string", "optional": true, "route": { "kind": "as" } }, { "field": "bucket", "type": "value", "optional": false, "route": { "kind": "input", "name": "bucket" } }, { "field": "region", "type": "value", "optional": false, "route": { "kind": "input", "name": "region" } }, { "field": "key", "type": "value", "optional": false, "route": { "kind": "input", "name": "key" } }, { "field": "secret", "type": "value", "optional": false, "route": { "kind": "input", "name": "secret" } }, { "field": "file_key", "type": "value", "optional": false, "route": { "kind": "input", "name": "file_key" } }, { "field": "ttl", "type": "value", "optional": true, "default": "300", "route": { "kind": "input", "name": "ttl" } }] },
784
840
  { "name": "mvp:amazon_s3_upload_file", "rules": [{ "field": "as", "type": "string", "optional": true, "route": { "kind": "as" } }, { "field": "bucket", "type": "value", "optional": false, "route": { "kind": "input", "name": "bucket" } }, { "field": "region", "type": "value", "optional": false, "route": { "kind": "input", "name": "region" } }, { "field": "key", "type": "value", "optional": false, "route": { "kind": "input", "name": "key" } }, { "field": "secret", "type": "value", "optional": false, "route": { "kind": "input", "name": "secret" } }, { "field": "file_key", "type": "value", "optional": true, "route": { "kind": "input", "name": "file_key" } }, { "field": "file", "type": "value", "optional": false, "route": { "kind": "input", "name": "file" } }, { "field": "metadata", "type": "value", "optional": true, "route": { "kind": "input", "name": "metadata" } }, { "field": "object_lock_mode", "type": "value", "optional": true, "enum": ["compliance", "governance"], "route": { "kind": "input", "name": "object_lock_mode" } }, { "field": "object_lock_retain_until", "type": "value", "optional": true, "route": { "kind": "input", "name": "object_lock_retain_until" } }] },
785
- { "name": "mvp:api_request", "output": true, "rules": [{ "field": "as", "type": "string", "optional": true, "route": { "kind": "as" } }, { "field": "url", "type": "value", "optional": true, "route": { "kind": "input", "name": "url" } }, { "field": "method", "type": "value", "optional": true, "enum": ["GET", "POST", "PUT", "DELETE", "HEAD", "OPTIONS", "PATCH"], "route": { "kind": "input", "name": "method" } }, { "field": "params", "type": "value", "optional": true, "route": { "kind": "input", "name": "params" } }, { "field": "headers", "type": "value", "optional": true, "route": { "kind": "input", "name": "headers" } }, { "field": "timeout", "type": "value", "optional": true, "route": { "kind": "input", "name": "timeout" } }, { "field": "follow_location", "type": "value", "optional": true, "route": { "kind": "input", "name": "follow_location" } }, { "field": "verify_host", "type": "value", "optional": true, "route": { "kind": "input", "name": "verify_host" } }, { "field": "verify_peer", "type": "value", "optional": true, "route": { "kind": "input", "name": "verify_peer" } }, { "field": "ca_certificate", "type": "value", "optional": true, "route": { "kind": "input", "name": "ca_certificate" } }, { "field": "certificate", "type": "value", "optional": true, "route": { "kind": "input", "name": "certificate" } }, { "field": "certificate_pass", "type": "value", "optional": true, "route": { "kind": "input", "name": "certificate_pass" } }, { "field": "private_key", "type": "value", "optional": true, "route": { "kind": "input", "name": "private_key" } }, { "field": "private_key_pass", "type": "value", "optional": true, "route": { "kind": "input", "name": "private_key_pass" } }], "envelope": { "inputFull": true, "description": true, "settingsRegistry": true, "addon": true, "richOutput": true } },
841
+ { "name": "mvp:api_request", "output": true, "rules": [{ "field": "as", "type": "string", "optional": true, "route": { "kind": "as" } }, { "field": "url", "type": "value", "optional": false, "route": { "kind": "input", "name": "url" } }, { "field": "method", "type": "value", "optional": true, "enum": ["GET", "POST", "PUT", "DELETE", "HEAD", "OPTIONS", "PATCH"], "route": { "kind": "input", "name": "method" } }, { "field": "params", "type": "value", "optional": true, "route": { "kind": "input", "name": "params" } }, { "field": "headers", "type": "value", "optional": true, "route": { "kind": "input", "name": "headers" } }, { "field": "timeout", "type": "value", "optional": true, "route": { "kind": "input", "name": "timeout" } }, { "field": "follow_location", "type": "value", "optional": true, "route": { "kind": "input", "name": "follow_location" } }, { "field": "verify_host", "type": "value", "optional": true, "route": { "kind": "input", "name": "verify_host" } }, { "field": "verify_peer", "type": "value", "optional": true, "route": { "kind": "input", "name": "verify_peer" } }, { "field": "ca_certificate", "type": "value", "optional": true, "route": { "kind": "input", "name": "ca_certificate" } }, { "field": "certificate", "type": "value", "optional": true, "route": { "kind": "input", "name": "certificate" } }, { "field": "certificate_pass", "type": "value", "optional": true, "route": { "kind": "input", "name": "certificate_pass" } }, { "field": "private_key", "type": "value", "optional": true, "route": { "kind": "input", "name": "private_key" } }, { "field": "private_key_pass", "type": "value", "optional": true, "route": { "kind": "input", "name": "private_key_pass" } }], "envelope": { "inputFull": true, "description": true, "settingsRegistry": true, "addon": true, "richOutput": true } },
786
842
  { "name": "mvp:array_difference", "rules": [{ "field": "as", "type": "string", "optional": true, "default": "", "route": { "kind": "as" } }, { "field": "expr", "type": "value", "optional": true, "default": "null", "route": { "kind": "context-nest", "path": "left" } }, { "field": "value", "type": "value", "optional": true, "default": "[]", "route": { "kind": "context-nest", "path": "right" } }, { "field": "by", "type": "value", "optional": true, "default": "null", "route": { "kind": "context-nest", "path": "transform_value" } }] },
787
843
  { "name": "mvp:array_every", "output": true, "rules": [{ "field": "expr", "type": "value", "optional": true, "default": "null", "route": { "kind": "context-nest", "path": "array" } }, { "field": "as", "type": "string", "optional": true, "default": "", "route": { "kind": "as" } }, { "field": "if", "type": "comparison", "optional": true, "default": "null", "route": { "kind": "context-compare", "path": "expr" } }] },
788
844
  { "name": "mvp:array_filter", "rules": [{ "field": "expr", "type": "value", "optional": true, "default": "null", "route": { "kind": "context-nest", "path": "array" } }, { "field": "as", "type": "string", "optional": true, "default": "", "route": { "kind": "as" } }, { "field": "if", "type": "comparison", "optional": true, "default": "null", "route": { "kind": "context-compare", "path": "expr" } }] },
@@ -808,9 +864,9 @@ var GENERATED_SPECS = [
808
864
  { "name": "mvp:bitwise_and", "argNameIsVar": true, "output": true, "rules": [{ "field": "name", "type": "string", "optional": true, "default": "", "route": { "kind": "context-plain", "path": "name" } }, { "field": "value", "type": "value", "optional": false, "route": { "kind": "context-spread" } }] },
809
865
  { "name": "mvp:bitwise_or", "argNameIsVar": true, "output": true, "rules": [{ "field": "name", "type": "string", "optional": true, "default": "", "route": { "kind": "context-plain", "path": "name" } }, { "field": "value", "type": "value", "optional": false, "route": { "kind": "context-spread" } }] },
810
866
  { "name": "mvp:bitwise_xor", "argNameIsVar": true, "output": true, "rules": [{ "field": "name", "type": "string", "optional": true, "default": "", "route": { "kind": "context-plain", "path": "name" } }, { "field": "value", "type": "value", "optional": false, "route": { "kind": "context-spread" } }] },
811
- { "name": "mvp:calculate_geo_distance", "rules": [{ "field": "as", "type": "string", "optional": true, "default": "", "route": { "kind": "as" } }, { "field": "latitude_1", "type": "value", "optional": true, "route": { "kind": "input", "name": "latitude_1" } }, { "field": "longitude_1", "type": "value", "optional": true, "route": { "kind": "input", "name": "longitude_1" } }, { "field": "latitude_2", "type": "value", "optional": true, "route": { "kind": "input", "name": "latitude_2" } }, { "field": "longitude_2", "type": "value", "optional": true, "route": { "kind": "input", "name": "longitude_2" } }] },
812
- { "name": "mvp:check_pass", "output": true, "rules": [{ "field": "as", "type": "string", "optional": true, "route": { "kind": "as" } }, { "field": "text_password", "type": "value", "optional": true, "route": { "kind": "input", "name": "text_password" } }, { "field": "hash_password", "type": "value", "optional": true, "route": { "kind": "input", "name": "hash_password" } }], "envelope": { "inputFull": true, "description": true, "settingsRegistry": true, "addon": true, "richOutput": true } },
813
- { "name": "mvp:connect_webflow_api_request", "rules": [{ "field": "as", "type": "string", "optional": true, "route": { "kind": "as" } }, { "field": "path", "type": "value", "optional": true, "route": { "kind": "input", "name": "path" } }, { "field": "method", "type": "value", "optional": true, "route": { "kind": "input", "name": "method" } }, { "field": "params", "type": "value", "optional": true, "route": { "kind": "input", "name": "params" } }, { "field": "headers", "type": "value", "optional": true, "route": { "kind": "input", "name": "headers" } }, { "field": "timeout", "type": "value", "optional": true, "route": { "kind": "input", "name": "timeout" } }, { "field": "follow_location", "type": "value", "optional": true, "route": { "kind": "input", "name": "follow_location" } }, { "field": "verify_host", "type": "value", "optional": true, "route": { "kind": "input", "name": "verify_host" } }, { "field": "verify_peer", "type": "value", "optional": true, "route": { "kind": "input", "name": "verify_peer" } }, { "field": "ca_certificate", "type": "value", "optional": true, "route": { "kind": "input", "name": "ca_certificate" } }, { "field": "certificate", "type": "value", "optional": true, "route": { "kind": "input", "name": "certificate" } }, { "field": "certificate_pass", "type": "value", "optional": true, "route": { "kind": "input", "name": "certificate_pass" } }, { "field": "private_key", "type": "value", "optional": true, "route": { "kind": "input", "name": "private_key" } }, { "field": "private_key_pass", "type": "value", "optional": true, "route": { "kind": "input", "name": "private_key_pass" } }] },
867
+ { "name": "mvp:calculate_geo_distance", "rules": [{ "field": "as", "type": "string", "optional": true, "default": "", "route": { "kind": "as" } }, { "field": "latitude_1", "type": "value", "optional": false, "route": { "kind": "input", "name": "latitude_1" } }, { "field": "longitude_1", "type": "value", "optional": false, "route": { "kind": "input", "name": "longitude_1" } }, { "field": "latitude_2", "type": "value", "optional": false, "route": { "kind": "input", "name": "latitude_2" } }, { "field": "longitude_2", "type": "value", "optional": false, "route": { "kind": "input", "name": "longitude_2" } }] },
868
+ { "name": "mvp:check_pass", "output": true, "rules": [{ "field": "as", "type": "string", "optional": true, "route": { "kind": "as" } }, { "field": "text_password", "type": "value", "optional": false, "route": { "kind": "input", "name": "text_password" } }, { "field": "hash_password", "type": "value", "optional": false, "route": { "kind": "input", "name": "hash_password" } }], "envelope": { "inputFull": true, "description": true, "settingsRegistry": true, "addon": true, "richOutput": true } },
869
+ { "name": "mvp:connect_webflow_api_request", "rules": [{ "field": "as", "type": "string", "optional": true, "route": { "kind": "as" } }, { "field": "path", "type": "value", "optional": false, "route": { "kind": "input", "name": "path" } }, { "field": "method", "type": "value", "optional": true, "route": { "kind": "input", "name": "method" } }, { "field": "params", "type": "value", "optional": true, "route": { "kind": "input", "name": "params" } }, { "field": "headers", "type": "value", "optional": true, "route": { "kind": "input", "name": "headers" } }, { "field": "timeout", "type": "value", "optional": true, "route": { "kind": "input", "name": "timeout" } }, { "field": "follow_location", "type": "value", "optional": true, "route": { "kind": "input", "name": "follow_location" } }, { "field": "verify_host", "type": "value", "optional": true, "route": { "kind": "input", "name": "verify_host" } }, { "field": "verify_peer", "type": "value", "optional": true, "route": { "kind": "input", "name": "verify_peer" } }, { "field": "ca_certificate", "type": "value", "optional": true, "route": { "kind": "input", "name": "ca_certificate" } }, { "field": "certificate", "type": "value", "optional": true, "route": { "kind": "input", "name": "certificate" } }, { "field": "certificate_pass", "type": "value", "optional": true, "route": { "kind": "input", "name": "certificate_pass" } }, { "field": "private_key", "type": "value", "optional": true, "route": { "kind": "input", "name": "private_key" } }, { "field": "private_key_pass", "type": "value", "optional": true, "route": { "kind": "input", "name": "private_key_pass" } }] },
814
870
  { "name": "mvp:create_attachment", "rules": [{ "field": "as", "type": "string", "optional": true, "route": { "kind": "as" } }, { "field": "value", "type": "value", "optional": false, "route": { "kind": "context-spread" } }, { "field": "access", "type": "string", "optional": true, "default": "public", "route": { "kind": "context-plain", "path": "access" } }, { "field": "filename", "type": "value", "optional": true, "route": { "kind": "context-nest", "path": "filename" } }, { "field": "include_meta", "type": "boolean", "optional": true, "route": { "kind": "context-plain", "path": "include_meta" } }, { "field": "type", "type": "value", "optional": true, "route": { "kind": "input", "name": "type" } }] },
815
871
  { "name": "mvp:create_audio", "output": true, "rules": [{ "field": "as", "type": "string", "optional": true, "route": { "kind": "as" } }, { "field": "value", "type": "value", "optional": false, "route": { "kind": "context-spread" } }, { "field": "access", "type": "string", "optional": true, "default": "public", "route": { "kind": "context-plain", "path": "access" } }, { "field": "filename", "type": "value", "optional": true, "route": { "kind": "context-nest", "path": "filename" } }] },
816
872
  { "name": "mvp:create_file_resource", "output": true, "rules": [{ "field": "as", "type": "string", "optional": true, "route": { "kind": "as" } }, { "field": "filename", "type": "value", "optional": false, "route": { "kind": "input", "name": "filename" } }, { "field": "filedata", "type": "value", "optional": false, "route": { "kind": "input", "name": "filedata" } }], "envelope": { "inputFull": true, "description": true, "settingsRegistry": true, "addon": true, "richOutput": true } },
@@ -820,23 +876,23 @@ var GENERATED_SPECS = [
820
876
  { "name": "mvp:crypto_create_ec_key", "rules": [{ "field": "as", "type": "string", "optional": true, "route": { "kind": "as" } }, { "field": "curve", "type": "value", "optional": true, "enum": ["P-256", "P-384", "P-521"], "route": { "kind": "input", "name": "curve" } }, { "field": "format", "type": "value", "optional": true, "enum": ["object", "base64"], "route": { "kind": "input", "name": "format" } }] },
821
877
  { "name": "mvp:crypto_create_octet_key", "rules": [{ "field": "as", "type": "string", "optional": true, "route": { "kind": "as" } }, { "field": "bits", "type": "value", "optional": true, "route": { "kind": "input", "name": "bits" } }, { "field": "format", "type": "value", "optional": true, "enum": ["object", "base64"], "route": { "kind": "input", "name": "format" } }] },
822
878
  { "name": "mvp:crypto_create_rsa_key", "rules": [{ "field": "as", "type": "string", "optional": true, "route": { "kind": "as" } }, { "field": "bits", "type": "value", "optional": true, "route": { "kind": "input", "name": "bits" } }, { "field": "format", "type": "value", "optional": true, "enum": ["object", "base64"], "route": { "kind": "input", "name": "format" } }] },
823
- { "name": "mvp:crypto_decrypt", "rules": [{ "field": "as", "type": "string", "optional": true, "route": { "kind": "as" } }, { "field": "data", "type": "value", "optional": true, "route": { "kind": "input", "name": "data" } }, { "field": "algorithm", "type": "value", "optional": true, "enum": ["aes-128-cbc", "aes-192-cbc", "aes-256-cbc", "aes-128-gcm", "aes-192-gcm", "aes-256-gcm"], "route": { "kind": "input", "name": "algorithm" } }, { "field": "key", "type": "value", "optional": true, "route": { "kind": "input", "name": "key" } }, { "field": "iv", "type": "value", "optional": true, "route": { "kind": "input", "name": "iv" } }] },
824
- { "name": "mvp:crypto_encrypt", "rules": [{ "field": "as", "type": "string", "optional": true, "route": { "kind": "as" } }, { "field": "data", "type": "value", "optional": true, "route": { "kind": "input", "name": "data" } }, { "field": "algorithm", "type": "value", "optional": true, "enum": ["aes-128-cbc", "aes-192-cbc", "aes-256-cbc", "aes-128-gcm", "aes-192-gcm", "aes-256-gcm"], "route": { "kind": "input", "name": "algorithm" } }, { "field": "key", "type": "value", "optional": true, "route": { "kind": "input", "name": "key" } }, { "field": "iv", "type": "value", "optional": true, "route": { "kind": "input", "name": "iv" } }] },
825
- { "name": "mvp:crypto_jwe_decode2", "rules": [{ "field": "as", "type": "string", "optional": true, "route": { "kind": "as" } }, { "field": "token", "type": "value", "optional": true, "route": { "kind": "input", "name": "token" } }, { "field": "key", "type": "value", "optional": true, "route": { "kind": "input", "name": "key" } }, { "field": "check_claims", "type": "value", "optional": true, "route": { "kind": "input", "name": "check_claims" } }, { "field": "key_algorithm", "type": "value", "optional": true, "enum": ["A128KW", "A192KW", "A256KW", "A128GCMKW", "A192GCMKW", "A256GCMKW", "ECDH-ES+A128KW", "ECDH-ES+A192KW", "ECDH-ES+A256KW"], "route": { "kind": "input", "name": "key_algorithm" } }, { "field": "content_algorithm", "type": "value", "optional": true, "enum": ["A128GCM", "A192GCM", "A256GCM", "A128CBC-HS256", "A192CBC-HS384", "A256CBC-HS512"], "route": { "kind": "input", "name": "content_algorithm" } }, { "field": "timeDrift", "type": "value", "optional": true, "route": { "kind": "input", "name": "timeDrift" } }] },
826
- { "name": "mvp:crypto_jwe_encode3", "rules": [{ "field": "as", "type": "string", "optional": true, "route": { "kind": "as" } }, { "field": "headers", "type": "value", "optional": true, "route": { "kind": "input", "name": "headers" } }, { "field": "claims", "type": "value", "optional": true, "route": { "kind": "input", "name": "claims" } }, { "field": "key", "type": "value", "optional": true, "route": { "kind": "input", "name": "key" } }, { "field": "key_algorithm", "type": "value", "optional": true, "enum": ["A128KW", "A192KW", "A256KW", "A128GCMKW", "A192GCMKW", "A256GCMKW", "ECDH-ES+A128KW", "ECDH-ES+A192KW", "ECDH-ES+A256KW"], "route": { "kind": "input", "name": "key_algorithm" } }, { "field": "content_algorithm", "type": "value", "optional": true, "enum": ["A128GCM", "A192GCM", "A256GCM", "A128CBC-HS256", "A192CBC-HS384", "A256CBC-HS512"], "route": { "kind": "input", "name": "content_algorithm" } }, { "field": "ttl", "type": "value", "optional": true, "route": { "kind": "input", "name": "ttl" } }] },
827
- { "name": "mvp:crypto_jws_decode2", "rules": [{ "field": "as", "type": "string", "optional": true, "route": { "kind": "as" } }, { "field": "token", "type": "value", "optional": true, "route": { "kind": "input", "name": "token" } }, { "field": "key", "type": "value", "optional": true, "route": { "kind": "input", "name": "key" } }, { "field": "check_claims", "type": "value", "optional": true, "route": { "kind": "input", "name": "check_claims" } }, { "field": "signature_algorithm", "type": "value", "optional": true, "enum": ["PS256", "PS384", "PS512", "RS256", "RS384", "RS512", "HS256", "HS384", "HS512", "ES256", "ES384", "ES512"], "route": { "kind": "input", "name": "signature_algorithm" } }, { "field": "timeDrift", "type": "value", "optional": true, "route": { "kind": "input", "name": "timeDrift" } }] },
828
- { "name": "mvp:crypto_jws_encode2", "rules": [{ "field": "as", "type": "string", "optional": true, "route": { "kind": "as" } }, { "field": "headers", "type": "value", "optional": true, "route": { "kind": "input", "name": "headers" } }, { "field": "claims", "type": "value", "optional": true, "route": { "kind": "input", "name": "claims" } }, { "field": "key", "type": "value", "optional": true, "route": { "kind": "input", "name": "key" } }, { "field": "signature_algorithm", "type": "value", "optional": true, "enum": ["PS256", "PS384", "PS512", "RS256", "RS384", "RS512", "HS256", "HS384", "HS512", "ES256", "ES384", "ES512"], "route": { "kind": "input", "name": "signature_algorithm" } }, { "field": "ttl", "type": "value", "optional": true, "route": { "kind": "input", "name": "ttl" } }] },
879
+ { "name": "mvp:crypto_decrypt", "rules": [{ "field": "as", "type": "string", "optional": true, "route": { "kind": "as" } }, { "field": "data", "type": "value", "optional": false, "route": { "kind": "input", "name": "data" } }, { "field": "algorithm", "type": "value", "optional": true, "enum": ["aes-128-cbc", "aes-192-cbc", "aes-256-cbc", "aes-128-gcm", "aes-192-gcm", "aes-256-gcm"], "route": { "kind": "input", "name": "algorithm" } }, { "field": "key", "type": "value", "optional": false, "route": { "kind": "input", "name": "key" } }, { "field": "iv", "type": "value", "optional": false, "route": { "kind": "input", "name": "iv" } }] },
880
+ { "name": "mvp:crypto_encrypt", "rules": [{ "field": "as", "type": "string", "optional": true, "route": { "kind": "as" } }, { "field": "data", "type": "value", "optional": false, "route": { "kind": "input", "name": "data" } }, { "field": "algorithm", "type": "value", "optional": true, "enum": ["aes-128-cbc", "aes-192-cbc", "aes-256-cbc", "aes-128-gcm", "aes-192-gcm", "aes-256-gcm"], "route": { "kind": "input", "name": "algorithm" } }, { "field": "key", "type": "value", "optional": false, "route": { "kind": "input", "name": "key" } }, { "field": "iv", "type": "value", "optional": false, "route": { "kind": "input", "name": "iv" } }] },
881
+ { "name": "mvp:crypto_jwe_decode2", "rules": [{ "field": "as", "type": "string", "optional": true, "route": { "kind": "as" } }, { "field": "token", "type": "value", "optional": false, "route": { "kind": "input", "name": "token" } }, { "field": "key", "type": "value", "optional": false, "route": { "kind": "input", "name": "key" } }, { "field": "check_claims", "type": "value", "optional": true, "route": { "kind": "input", "name": "check_claims" } }, { "field": "key_algorithm", "type": "value", "optional": true, "enum": ["A128KW", "A192KW", "A256KW", "A128GCMKW", "A192GCMKW", "A256GCMKW", "ECDH-ES+A128KW", "ECDH-ES+A192KW", "ECDH-ES+A256KW"], "route": { "kind": "input", "name": "key_algorithm" } }, { "field": "content_algorithm", "type": "value", "optional": true, "enum": ["A128GCM", "A192GCM", "A256GCM", "A128CBC-HS256", "A192CBC-HS384", "A256CBC-HS512"], "route": { "kind": "input", "name": "content_algorithm" } }, { "field": "timeDrift", "type": "value", "optional": true, "route": { "kind": "input", "name": "timeDrift" } }] },
882
+ { "name": "mvp:crypto_jwe_encode3", "rules": [{ "field": "as", "type": "string", "optional": true, "route": { "kind": "as" } }, { "field": "headers", "type": "value", "optional": true, "route": { "kind": "input", "name": "headers" } }, { "field": "claims", "type": "value", "optional": true, "route": { "kind": "input", "name": "claims" } }, { "field": "key", "type": "value", "optional": false, "route": { "kind": "input", "name": "key" } }, { "field": "key_algorithm", "type": "value", "optional": true, "enum": ["A128KW", "A192KW", "A256KW", "A128GCMKW", "A192GCMKW", "A256GCMKW", "ECDH-ES+A128KW", "ECDH-ES+A192KW", "ECDH-ES+A256KW"], "route": { "kind": "input", "name": "key_algorithm" } }, { "field": "content_algorithm", "type": "value", "optional": true, "enum": ["A128GCM", "A192GCM", "A256GCM", "A128CBC-HS256", "A192CBC-HS384", "A256CBC-HS512"], "route": { "kind": "input", "name": "content_algorithm" } }, { "field": "ttl", "type": "value", "optional": true, "route": { "kind": "input", "name": "ttl" } }] },
883
+ { "name": "mvp:crypto_jws_decode2", "rules": [{ "field": "as", "type": "string", "optional": true, "route": { "kind": "as" } }, { "field": "token", "type": "value", "optional": false, "route": { "kind": "input", "name": "token" } }, { "field": "key", "type": "value", "optional": false, "route": { "kind": "input", "name": "key" } }, { "field": "check_claims", "type": "value", "optional": true, "route": { "kind": "input", "name": "check_claims" } }, { "field": "signature_algorithm", "type": "value", "optional": true, "enum": ["PS256", "PS384", "PS512", "RS256", "RS384", "RS512", "HS256", "HS384", "HS512", "ES256", "ES384", "ES512"], "route": { "kind": "input", "name": "signature_algorithm" } }, { "field": "timeDrift", "type": "value", "optional": true, "route": { "kind": "input", "name": "timeDrift" } }] },
884
+ { "name": "mvp:crypto_jws_encode2", "rules": [{ "field": "as", "type": "string", "optional": true, "route": { "kind": "as" } }, { "field": "headers", "type": "value", "optional": true, "route": { "kind": "input", "name": "headers" } }, { "field": "claims", "type": "value", "optional": true, "route": { "kind": "input", "name": "claims" } }, { "field": "key", "type": "value", "optional": false, "route": { "kind": "input", "name": "key" } }, { "field": "signature_algorithm", "type": "value", "optional": true, "enum": ["PS256", "PS384", "PS512", "RS256", "RS384", "RS512", "HS256", "HS384", "HS512", "ES256", "ES384", "ES512"], "route": { "kind": "input", "name": "signature_algorithm" } }, { "field": "ttl", "type": "value", "optional": true, "route": { "kind": "input", "name": "ttl" } }] },
829
885
  { "name": "mvp:csv_stream", "output": true, "rules": [{ "field": "as", "type": "string", "optional": true, "route": { "kind": "as" } }, { "field": "value", "type": "value", "optional": false, "route": { "kind": "context-spread" } }, { "field": "separator", "type": "value", "optional": true, "default": ",", "route": { "kind": "input", "name": "separator" } }, { "field": "enclosure", "type": "value", "optional": true, "default": '\\"', "route": { "kind": "input", "name": "enclosure" } }, { "field": "escape_char", "type": "value", "optional": true, "default": '\\"', "route": { "kind": "input", "name": "escape_char" } }], "envelope": { "inputFull": true } },
830
- { "name": "mvp:datadog_log", "rules": [{ "field": "message", "type": "value", "optional": true, "route": { "kind": "input", "name": "message" } }, { "field": "status", "type": "value", "optional": true, "enum": ["debug", "info", "notice", "warn", "error", "critical", "alert", "emergency"], "route": { "kind": "input", "name": "status" } }, { "field": "attributes", "type": "value", "optional": true, "route": { "kind": "input", "name": "attributes" } }, { "field": "service", "type": "value", "optional": true, "route": { "kind": "input", "name": "service" } }, { "field": "source", "type": "value", "optional": true, "route": { "kind": "input", "name": "source" } }, { "field": "env", "type": "value", "optional": true, "route": { "kind": "input", "name": "env" } }, { "field": "hostname", "type": "value", "optional": true, "route": { "kind": "input", "name": "hostname" } }, { "field": "tags", "type": "value", "optional": true, "route": { "kind": "input", "name": "tags" } }, { "field": "timestamp", "type": "value", "optional": true, "route": { "kind": "input", "name": "timestamp" } }, { "field": "connection", "type": "value", "optional": true, "route": { "kind": "input", "name": "connection" } }] },
886
+ { "name": "mvp:datadog_log", "rules": [{ "field": "message", "type": "value", "optional": false, "route": { "kind": "input", "name": "message" } }, { "field": "status", "type": "value", "optional": true, "enum": ["debug", "info", "notice", "warn", "error", "critical", "alert", "emergency"], "route": { "kind": "input", "name": "status" } }, { "field": "attributes", "type": "value", "optional": true, "route": { "kind": "input", "name": "attributes" } }, { "field": "service", "type": "value", "optional": true, "route": { "kind": "input", "name": "service" } }, { "field": "source", "type": "value", "optional": true, "route": { "kind": "input", "name": "source" } }, { "field": "env", "type": "value", "optional": true, "route": { "kind": "input", "name": "env" } }, { "field": "hostname", "type": "value", "optional": true, "route": { "kind": "input", "name": "hostname" } }, { "field": "tags", "type": "value", "optional": true, "route": { "kind": "input", "name": "tags" } }, { "field": "timestamp", "type": "value", "optional": true, "route": { "kind": "input", "name": "timestamp" } }, { "field": "connection", "type": "value", "optional": true, "route": { "kind": "input", "name": "connection" } }] },
831
887
  { "name": "mvp:datadog_log_bulk", "rules": [{ "field": "entries", "type": "value", "optional": false, "route": { "kind": "input", "name": "entries" } }, { "field": "connection", "type": "value", "optional": true, "route": { "kind": "input", "name": "connection" } }] },
832
- { "name": "mvp:datadog_metric", "rules": [{ "field": "metric", "type": "value", "optional": true, "route": { "kind": "input", "name": "metric" } }, { "field": "value", "type": "value", "optional": false, "route": { "kind": "input", "name": "value" } }, { "field": "type", "type": "value", "optional": true, "enum": ["count", "gauge", "rate", "histogram", "distribution"], "route": { "kind": "input", "name": "type" } }, { "field": "tags", "type": "value", "optional": true, "route": { "kind": "input", "name": "tags" } }, { "field": "service", "type": "value", "optional": true, "route": { "kind": "input", "name": "service" } }, { "field": "source", "type": "value", "optional": true, "route": { "kind": "input", "name": "source" } }, { "field": "env", "type": "value", "optional": true, "route": { "kind": "input", "name": "env" } }, { "field": "hostname", "type": "value", "optional": true, "route": { "kind": "input", "name": "hostname" } }, { "field": "timestamp", "type": "value", "optional": true, "route": { "kind": "input", "name": "timestamp" } }, { "field": "connection", "type": "value", "optional": true, "route": { "kind": "input", "name": "connection" } }] },
888
+ { "name": "mvp:datadog_metric", "rules": [{ "field": "metric", "type": "value", "optional": false, "route": { "kind": "input", "name": "metric" } }, { "field": "value", "type": "value", "optional": false, "route": { "kind": "input", "name": "value" } }, { "field": "type", "type": "value", "optional": true, "enum": ["count", "gauge", "rate", "histogram", "distribution"], "route": { "kind": "input", "name": "type" } }, { "field": "tags", "type": "value", "optional": true, "route": { "kind": "input", "name": "tags" } }, { "field": "service", "type": "value", "optional": true, "route": { "kind": "input", "name": "service" } }, { "field": "source", "type": "value", "optional": true, "route": { "kind": "input", "name": "source" } }, { "field": "env", "type": "value", "optional": true, "route": { "kind": "input", "name": "env" } }, { "field": "hostname", "type": "value", "optional": true, "route": { "kind": "input", "name": "hostname" } }, { "field": "timestamp", "type": "value", "optional": true, "route": { "kind": "input", "name": "timestamp" } }, { "field": "connection", "type": "value", "optional": true, "route": { "kind": "input", "name": "connection" } }] },
833
889
  { "name": "mvp:datadog_metric_bulk", "rules": [{ "field": "entries", "type": "value", "optional": false, "route": { "kind": "input", "name": "entries" } }, { "field": "connection", "type": "value", "optional": true, "route": { "kind": "input", "name": "connection" } }] },
834
890
  { "name": "mvp:debug_log", "rules": [{ "field": "value", "type": "value", "optional": false, "route": { "kind": "context-spread" } }] },
835
891
  { "name": "mvp:delete_file", "output": true, "rules": [{ "field": "pathname", "type": "value", "optional": false, "route": { "kind": "input", "name": "pathname" } }], "envelope": { "inputFull": true, "emitAs": true, "description": true, "settingsRegistry": true, "addon": true, "richOutput": true } },
836
892
  { "name": "mvp:die", "rules": [{ "field": "value", "type": "value", "optional": false, "route": { "kind": "context-spread" } }] },
837
893
  { "name": "mvp:elasticsearch_document", "rules": [{ "field": "as", "type": "string", "optional": true, "route": { "kind": "as" } }, { "field": "auth_type", "type": "value", "optional": true, "default": "API Key", "enum": ["Basic", "Bearer", "API Key"], "route": { "kind": "input", "name": "auth_type" } }, { "field": "key_id", "type": "value", "optional": false, "route": { "kind": "input", "name": "key_id" } }, { "field": "access_key", "type": "value", "optional": false, "route": { "kind": "input", "name": "access_key" } }, { "field": "base_url", "type": "value", "optional": false, "route": { "kind": "input", "name": "base_url" } }, { "field": "index", "type": "value", "optional": false, "route": { "kind": "input", "name": "index" } }, { "field": "method", "type": "value", "optional": true, "default": "GET", "enum": ["GET", "POST", "PUT", "DELETE"], "route": { "kind": "input", "name": "method" } }, { "field": "doc_id", "type": "value", "optional": false, "route": { "kind": "input", "name": "doc_id" } }, { "field": "doc", "type": "value", "optional": false, "route": { "kind": "input", "name": "doc" } }] },
838
- { "name": "mvp:elasticsearch_query", "rules": [{ "field": "as", "type": "string", "optional": true, "route": { "kind": "as" } }, { "field": "auth_type", "type": "value", "optional": true, "default": "API Key", "enum": ["Basic", "Bearer", "API Key"], "route": { "kind": "input", "name": "auth_type" } }, { "field": "key_id", "type": "value", "optional": true, "default": "", "route": { "kind": "input", "name": "key_id" } }, { "field": "access_key", "type": "value", "optional": true, "default": "", "route": { "kind": "input", "name": "access_key" } }, { "field": "base_url", "type": "value", "optional": true, "default": "", "route": { "kind": "input", "name": "base_url" } }, { "field": "index", "type": "value", "optional": true, "default": "", "route": { "kind": "input", "name": "index" } }, { "field": "payload", "type": "value", "optional": true, "default": "{}", "route": { "kind": "input", "name": "payload" } }, { "field": "size", "type": "value", "optional": true, "default": "null", "route": { "kind": "input", "name": "size" } }, { "field": "from", "type": "value", "optional": true, "default": "", "route": { "kind": "input", "name": "from" } }, { "field": "included_fields", "type": "value", "optional": true, "default": "[]", "route": { "kind": "input", "name": "included_fields" } }, { "field": "return_type", "type": "value", "optional": true, "default": "search", "enum": ["search", "count"], "route": { "kind": "input", "name": "return_type" } }, { "field": "expression", "type": "value", "optional": true, "default": "[]", "route": { "kind": "input", "name": "expression" } }, { "field": "sort", "type": "value", "optional": true, "default": "[]", "route": { "kind": "input", "name": "sort" } }] },
839
- { "name": "mvp:elasticsearch_request", "rules": [{ "field": "as", "type": "string", "optional": true, "route": { "kind": "as" } }, { "field": "auth_type", "type": "value", "optional": true, "default": "API Key", "enum": ["Basic", "Bearer", "API Key"], "route": { "kind": "input", "name": "auth_type" } }, { "field": "key_id", "type": "value", "optional": true, "default": "", "route": { "kind": "input", "name": "key_id" } }, { "field": "access_key", "type": "value", "optional": true, "default": "", "route": { "kind": "input", "name": "access_key" } }, { "field": "method", "type": "value", "optional": true, "default": "POST", "enum": ["POST", "GET", "PUT", "DELETE", "PATCH"], "route": { "kind": "input", "name": "method" } }, { "field": "url", "type": "value", "optional": true, "default": "", "route": { "kind": "input", "name": "url" } }, { "field": "payload", "type": "value", "optional": true, "default": "{}", "route": { "kind": "input", "name": "payload" } }] },
894
+ { "name": "mvp:elasticsearch_query", "rules": [{ "field": "as", "type": "string", "optional": true, "route": { "kind": "as" } }, { "field": "auth_type", "type": "value", "optional": true, "default": "API Key", "enum": ["Basic", "Bearer", "API Key"], "route": { "kind": "input", "name": "auth_type" } }, { "field": "key_id", "type": "value", "optional": false, "route": { "kind": "input", "name": "key_id" } }, { "field": "access_key", "type": "value", "optional": false, "route": { "kind": "input", "name": "access_key" } }, { "field": "base_url", "type": "value", "optional": false, "route": { "kind": "input", "name": "base_url" } }, { "field": "index", "type": "value", "optional": false, "route": { "kind": "input", "name": "index" } }, { "field": "payload", "type": "value", "optional": false, "route": { "kind": "input", "name": "payload" } }, { "field": "size", "type": "value", "optional": true, "default": "null", "route": { "kind": "input", "name": "size" } }, { "field": "from", "type": "value", "optional": true, "default": "", "route": { "kind": "input", "name": "from" } }, { "field": "included_fields", "type": "value", "optional": true, "default": "[]", "route": { "kind": "input", "name": "included_fields" } }, { "field": "return_type", "type": "value", "optional": true, "default": "search", "enum": ["search", "count"], "route": { "kind": "input", "name": "return_type" } }, { "field": "expression", "type": "value", "optional": true, "default": "[]", "route": { "kind": "input", "name": "expression" } }, { "field": "sort", "type": "value", "optional": true, "default": "[]", "route": { "kind": "input", "name": "sort" } }] },
895
+ { "name": "mvp:elasticsearch_request", "rules": [{ "field": "as", "type": "string", "optional": true, "route": { "kind": "as" } }, { "field": "auth_type", "type": "value", "optional": true, "default": "API Key", "enum": ["Basic", "Bearer", "API Key"], "route": { "kind": "input", "name": "auth_type" } }, { "field": "key_id", "type": "value", "optional": false, "route": { "kind": "input", "name": "key_id" } }, { "field": "access_key", "type": "value", "optional": false, "route": { "kind": "input", "name": "access_key" } }, { "field": "method", "type": "value", "optional": true, "default": "POST", "enum": ["POST", "GET", "PUT", "DELETE", "PATCH"], "route": { "kind": "input", "name": "method" } }, { "field": "url", "type": "value", "optional": false, "route": { "kind": "input", "name": "url" } }, { "field": "payload", "type": "value", "optional": false, "route": { "kind": "input", "name": "payload" } }] },
840
896
  { "name": "mvp:generate_pass", "rules": [{ "field": "as", "type": "string", "optional": true, "route": { "kind": "as" } }, { "field": "character_count", "type": "value", "optional": true, "route": { "kind": "input", "name": "character_count" } }, { "field": "require_lowercase", "type": "value", "optional": true, "route": { "kind": "input", "name": "require_lowercase" } }, { "field": "require_uppercase", "type": "value", "optional": true, "route": { "kind": "input", "name": "require_uppercase" } }, { "field": "require_digit", "type": "value", "optional": true, "route": { "kind": "input", "name": "require_digit" } }, { "field": "require_symbol", "type": "value", "optional": true, "route": { "kind": "input", "name": "require_symbol" } }, { "field": "symbol_whitelist", "type": "value", "optional": true, "route": { "kind": "input", "name": "symbol_whitelist" } }] },
841
897
  { "name": "mvp:get_all_input", "rules": [{ "field": "as", "type": "string", "optional": true, "default": "", "route": { "kind": "as" } }] },
842
898
  { "name": "mvp:get_env", "rules": [{ "field": "as", "type": "string", "optional": true, "default": "", "route": { "kind": "as" } }] },
@@ -850,15 +906,15 @@ var GENERATED_SPECS = [
850
906
  { "name": "mvp:google_cloud_storage_upload_file", "rules": [{ "field": "as", "type": "string", "optional": true, "route": { "kind": "as" } }, { "field": "service_account", "type": "value", "optional": false, "route": { "kind": "input", "name": "service_account" } }, { "field": "bucket", "type": "value", "optional": false, "route": { "kind": "input", "name": "bucket" } }, { "field": "filePath", "type": "value", "optional": false, "route": { "kind": "input", "name": "filePath" } }, { "field": "file", "type": "value", "optional": false, "route": { "kind": "input", "name": "file" } }, { "field": "metadata", "type": "value", "optional": true, "route": { "kind": "input", "name": "metadata" } }] },
851
907
  { "name": "mvp:ipaddress_lookup", "rules": [{ "field": "as", "type": "string", "optional": true, "default": "", "route": { "kind": "as" } }, { "field": "value", "type": "value", "optional": false, "route": { "kind": "input", "name": "ip" } }] },
852
908
  { "name": "mvp:jsonl_stream", "rules": [{ "field": "as", "type": "string", "optional": true, "route": { "kind": "as" } }, { "field": "value", "type": "value", "optional": false, "route": { "kind": "context-spread" } }] },
853
- { "name": "mvp:lambda", "rules": [{ "field": "as", "type": "string", "optional": true, "route": { "kind": "as" } }, { "field": "code", "type": "value", "optional": true, "route": { "kind": "input", "name": "code" } }, { "field": "timeout", "type": "value", "optional": true, "route": { "kind": "input", "name": "timeout" } }] },
909
+ { "name": "mvp:lambda", "rules": [{ "field": "as", "type": "string", "optional": true, "route": { "kind": "as" } }, { "field": "code", "type": "value", "optional": false, "route": { "kind": "input", "name": "code" } }, { "field": "timeout", "type": "value", "optional": true, "route": { "kind": "input", "name": "timeout" } }] },
854
910
  { "name": "mvp:math_add", "argNameIsVar": true, "output": true, "rules": [{ "field": "name", "type": "string", "optional": true, "default": "", "route": { "kind": "context-plain", "path": "name" } }, { "field": "value", "type": "value", "optional": false, "route": { "kind": "context-spread" } }] },
855
911
  { "name": "mvp:math_div", "argNameIsVar": true, "rules": [{ "field": "name", "type": "string", "optional": true, "default": "", "route": { "kind": "context-plain", "path": "name" } }, { "field": "value", "type": "value", "optional": false, "route": { "kind": "context-spread" } }] },
856
912
  { "name": "mvp:math_mod", "argNameIsVar": true, "rules": [{ "field": "name", "type": "string", "optional": true, "default": "", "route": { "kind": "context-plain", "path": "name" } }, { "field": "value", "type": "value", "optional": false, "route": { "kind": "context-spread" } }] },
857
913
  { "name": "mvp:math_mul", "argNameIsVar": true, "rules": [{ "field": "name", "type": "string", "optional": true, "default": "", "route": { "kind": "context-plain", "path": "name" } }, { "field": "value", "type": "value", "optional": false, "route": { "kind": "context-spread" } }] },
858
914
  { "name": "mvp:math_sub", "argNameIsVar": true, "rules": [{ "field": "name", "type": "string", "optional": true, "default": "", "route": { "kind": "context-plain", "path": "name" } }, { "field": "value", "type": "value", "optional": false, "route": { "kind": "context-spread" } }] },
859
- { "name": "mvp:mcp_call_tool", "rules": [{ "field": "as", "type": "string", "optional": true, "route": { "kind": "as" } }, { "field": "url", "type": "value", "optional": true, "route": { "kind": "input", "name": "url" } }, { "field": "bearer_token", "type": "value", "optional": true, "default": "", "route": { "kind": "input", "name": "bearer_token" } }, { "field": "connection_type", "type": "value", "optional": true, "default": "sse", "enum": ["sse", "stream"], "route": { "kind": "input", "name": "connection_type" } }, { "field": "tool", "type": "value", "optional": true, "default": "", "route": { "kind": "input", "name": "tool_name" } }, { "field": "args", "type": "value", "optional": true, "route": { "kind": "input", "name": "args" } }] },
860
- { "name": "mvp:mcp_list_tools", "rules": [{ "field": "as", "type": "string", "optional": true, "route": { "kind": "as" } }, { "field": "url", "type": "value", "optional": true, "route": { "kind": "input", "name": "url" } }, { "field": "bearer_token", "type": "value", "optional": true, "default": "", "route": { "kind": "input", "name": "bearer_token" } }, { "field": "connection_type", "type": "value", "optional": true, "default": "sse", "enum": ["sse", "stream"], "route": { "kind": "input", "name": "connection_type" } }] },
861
- { "name": "mvp:mcp_server_details", "rules": [{ "field": "as", "type": "string", "optional": true, "route": { "kind": "as" } }, { "field": "url", "type": "value", "optional": true, "route": { "kind": "input", "name": "url" } }, { "field": "bearer_token", "type": "value", "optional": true, "default": "", "route": { "kind": "input", "name": "bearer_token" } }, { "field": "connection_type", "type": "value", "optional": true, "default": "sse", "enum": ["sse", "stream"], "route": { "kind": "input", "name": "connection_type" } }] },
915
+ { "name": "mvp:mcp_call_tool", "rules": [{ "field": "as", "type": "string", "optional": true, "route": { "kind": "as" } }, { "field": "url", "type": "value", "optional": false, "route": { "kind": "input", "name": "url" } }, { "field": "bearer_token", "type": "value", "optional": true, "default": "", "route": { "kind": "input", "name": "bearer_token" } }, { "field": "connection_type", "type": "value", "optional": true, "default": "sse", "enum": ["sse", "stream"], "route": { "kind": "input", "name": "connection_type" } }, { "field": "tool", "type": "value", "optional": false, "route": { "kind": "input", "name": "tool_name" } }, { "field": "args", "type": "value", "optional": true, "route": { "kind": "input", "name": "args" } }] },
916
+ { "name": "mvp:mcp_list_tools", "rules": [{ "field": "as", "type": "string", "optional": true, "route": { "kind": "as" } }, { "field": "url", "type": "value", "optional": false, "route": { "kind": "input", "name": "url" } }, { "field": "bearer_token", "type": "value", "optional": true, "default": "", "route": { "kind": "input", "name": "bearer_token" } }, { "field": "connection_type", "type": "value", "optional": true, "default": "sse", "enum": ["sse", "stream"], "route": { "kind": "input", "name": "connection_type" } }] },
917
+ { "name": "mvp:mcp_server_details", "rules": [{ "field": "as", "type": "string", "optional": true, "route": { "kind": "as" } }, { "field": "url", "type": "value", "optional": false, "route": { "kind": "input", "name": "url" } }, { "field": "bearer_token", "type": "value", "optional": true, "default": "", "route": { "kind": "input", "name": "bearer_token" } }, { "field": "connection_type", "type": "value", "optional": true, "default": "sse", "enum": ["sse", "stream"], "route": { "kind": "input", "name": "connection_type" } }] },
862
918
  { "name": "mvp:microservice_request", "rules": [{ "field": "as", "type": "string", "optional": true, "route": { "kind": "as" } }, { "field": "host", "type": "value", "optional": false, "route": { "kind": "input", "name": "host" } }, { "field": "path", "type": "value", "optional": false, "route": { "kind": "input", "name": "path" } }, { "field": "method", "type": "value", "optional": true, "enum": ["GET", "POST", "PUT", "DELETE", "HEAD", "OPTIONS", "PATCH"], "route": { "kind": "input", "name": "method" } }, { "field": "params", "type": "value", "optional": true, "route": { "kind": "input", "name": "params" } }, { "field": "headers", "type": "value", "optional": false, "route": { "kind": "input", "name": "headers" } }, { "field": "timeout", "type": "value", "optional": true, "route": { "kind": "input", "name": "timeout" } }, { "field": "follow_location", "type": "value", "optional": true, "route": { "kind": "input", "name": "follow_location" } }] },
863
919
  { "name": "mvp:object_entries", "output": true, "rules": [{ "field": "as", "type": "string", "optional": true, "route": { "kind": "as" } }, { "field": "value", "type": "value", "optional": true, "default": "", "route": { "kind": "context-nest", "path": "object" } }] },
864
920
  { "name": "mvp:object_keys", "output": true, "rules": [{ "field": "as", "type": "string", "optional": true, "route": { "kind": "as" } }, { "field": "value", "type": "value", "optional": true, "default": "", "route": { "kind": "context-nest", "path": "object" } }] },
@@ -881,11 +937,11 @@ var GENERATED_SPECS = [
881
937
  { "name": "mvp:redis_set", "rules": [{ "field": "as", "type": "string", "optional": true, "route": { "kind": "as" } }, { "field": "key", "type": "value", "optional": false, "route": { "kind": "input", "name": "key" } }, { "field": "data", "type": "value", "optional": false, "route": { "kind": "input", "name": "data" } }, { "field": "ttl", "type": "value", "optional": true, "route": { "kind": "input", "name": "ttl" } }, { "field": "create_only", "type": "value", "optional": true, "route": { "kind": "input", "name": "create_only" } }] },
882
938
  { "name": "mvp:redis_shiftlist", "rules": [{ "field": "as", "type": "string", "optional": true, "route": { "kind": "as" } }, { "field": "key", "type": "value", "optional": false, "route": { "kind": "input", "name": "key" } }, { "field": "count", "type": "value", "optional": true, "route": { "kind": "input", "name": "count" } }] },
883
939
  { "name": "mvp:redis_unshiftlist", "rules": [{ "field": "as", "type": "string", "optional": true, "route": { "kind": "as" } }, { "field": "key", "type": "value", "optional": false, "route": { "kind": "input", "name": "key" } }, { "field": "value", "type": "value", "optional": false, "route": { "kind": "input", "name": "value" } }] },
884
- { "name": "mvp:send_email", "rules": [{ "field": "as", "type": "string", "optional": true, "default": "", "route": { "kind": "as" } }, { "field": "service_provider", "type": "value", "optional": true, "enum": ["resend", "xano"], "route": { "kind": "input", "name": "service_provider" } }, { "field": "api_key", "type": "value", "optional": true, "route": { "kind": "input", "name": "api_key" } }, { "field": "subject", "type": "value", "optional": true, "route": { "kind": "input", "name": "subject" } }, { "field": "message", "type": "value", "optional": true, "route": { "kind": "input", "name": "message" } }, { "field": "to", "type": "value", "optional": true, "route": { "kind": "input", "name": "to" } }, { "field": "bcc", "type": "value", "optional": true, "route": { "kind": "input", "name": "bcc" } }, { "field": "cc", "type": "value", "optional": true, "route": { "kind": "input", "name": "cc" } }, { "field": "from", "type": "value", "optional": true, "route": { "kind": "input", "name": "from" } }, { "field": "reply_to", "type": "value", "optional": true, "route": { "kind": "input", "name": "reply_to" } }, { "field": "scheduled_at", "type": "value", "optional": true, "route": { "kind": "input", "name": "scheduled_at" } }] },
940
+ { "name": "mvp:send_email", "rules": [{ "field": "as", "type": "string", "optional": true, "default": "", "route": { "kind": "as" } }, { "field": "api_key", "type": "value", "optional": true, "route": { "kind": "input", "name": "api_key" } }, { "field": "service_provider", "type": "value", "optional": true, "enum": ["resend", "xano"], "route": { "kind": "input", "name": "service_provider" } }, { "field": "subject", "type": "value", "optional": true, "route": { "kind": "input", "name": "subject" } }, { "field": "message", "type": "value", "optional": true, "route": { "kind": "input", "name": "message" } }, { "field": "to", "type": "value", "optional": true, "route": { "kind": "input", "name": "to" } }, { "field": "bcc", "type": "value", "optional": true, "route": { "kind": "input", "name": "bcc" } }, { "field": "cc", "type": "value", "optional": true, "route": { "kind": "input", "name": "cc" } }, { "field": "from", "type": "value", "optional": true, "route": { "kind": "input", "name": "from" } }, { "field": "reply_to", "type": "value", "optional": true, "route": { "kind": "input", "name": "reply_to" } }, { "field": "scheduled_at", "type": "value", "optional": true, "route": { "kind": "input", "name": "scheduled_at" } }] },
885
941
  { "name": "mvp:set_data_source", "rules": [{ "field": "value", "type": "value", "optional": false, "route": { "kind": "context-spread" } }, { "field": "workspace_id", "type": "value", "optional": true, "route": { "kind": "input", "name": "workspace_id" } }] },
886
942
  { "name": "mvp:setheader", "rules": [{ "field": "value", "type": "value", "optional": false, "route": { "kind": "context-spread" } }, { "field": "duplicates", "type": "string", "optional": true, "default": "replace", "route": { "kind": "context-plain", "path": "duplicates" } }] },
887
943
  { "name": "mvp:sleep", "rules": [{ "field": "value", "type": "value", "optional": false, "route": { "kind": "context-spread" } }] },
888
- { "name": "mvp:streaming_api_request", "rules": [{ "field": "as", "type": "string", "optional": true, "route": { "kind": "as" } }, { "field": "url", "type": "value", "optional": true, "route": { "kind": "input", "name": "url" } }, { "field": "method", "type": "value", "optional": true, "route": { "kind": "input", "name": "method" } }, { "field": "params", "type": "value", "optional": true, "route": { "kind": "input", "name": "params" } }, { "field": "headers", "type": "value", "optional": true, "route": { "kind": "input", "name": "headers" } }, { "field": "timeout", "type": "value", "optional": true, "route": { "kind": "input", "name": "timeout" } }, { "field": "follow_location", "type": "value", "optional": true, "route": { "kind": "input", "name": "follow_location" } }, { "field": "verify_host", "type": "value", "optional": true, "route": { "kind": "input", "name": "verify_host" } }, { "field": "verify_peer", "type": "value", "optional": true, "route": { "kind": "input", "name": "verify_peer" } }, { "field": "ca_certificate", "type": "value", "optional": true, "route": { "kind": "input", "name": "ca_certificate" } }, { "field": "certificate", "type": "value", "optional": true, "route": { "kind": "input", "name": "certificate" } }, { "field": "certificate_pass", "type": "value", "optional": true, "route": { "kind": "input", "name": "certificate_pass" } }, { "field": "private_key", "type": "value", "optional": true, "route": { "kind": "input", "name": "private_key" } }, { "field": "private_key_pass", "type": "value", "optional": true, "route": { "kind": "input", "name": "private_key_pass" } }] },
944
+ { "name": "mvp:streaming_api_request", "rules": [{ "field": "as", "type": "string", "optional": true, "route": { "kind": "as" } }, { "field": "url", "type": "value", "optional": false, "route": { "kind": "input", "name": "url" } }, { "field": "method", "type": "value", "optional": true, "route": { "kind": "input", "name": "method" } }, { "field": "params", "type": "value", "optional": true, "route": { "kind": "input", "name": "params" } }, { "field": "headers", "type": "value", "optional": true, "route": { "kind": "input", "name": "headers" } }, { "field": "timeout", "type": "value", "optional": true, "route": { "kind": "input", "name": "timeout" } }, { "field": "follow_location", "type": "value", "optional": true, "route": { "kind": "input", "name": "follow_location" } }, { "field": "verify_host", "type": "value", "optional": true, "route": { "kind": "input", "name": "verify_host" } }, { "field": "verify_peer", "type": "value", "optional": true, "route": { "kind": "input", "name": "verify_peer" } }, { "field": "ca_certificate", "type": "value", "optional": true, "route": { "kind": "input", "name": "ca_certificate" } }, { "field": "certificate", "type": "value", "optional": true, "route": { "kind": "input", "name": "certificate" } }, { "field": "certificate_pass", "type": "value", "optional": true, "route": { "kind": "input", "name": "certificate_pass" } }, { "field": "private_key", "type": "value", "optional": true, "route": { "kind": "input", "name": "private_key" } }, { "field": "private_key_pass", "type": "value", "optional": true, "route": { "kind": "input", "name": "private_key_pass" } }] },
889
945
  { "name": "mvp:streaming_api_response", "rules": [{ "field": "value", "type": "value", "optional": false, "route": { "kind": "context-spread" } }] },
890
946
  { "name": "mvp:template_string", "rules": [{ "field": "as", "type": "string", "optional": true, "default": "", "route": { "kind": "as" } }, { "field": "value", "type": "value", "optional": false, "route": { "kind": "input", "name": "template" } }] },
891
947
  { "name": "mvp:test_expect_to_be_defined", "rules": [{ "field": "expr", "type": "value", "optional": true, "default": "", "route": { "kind": "context-nest", "path": "value1" } }] },
@@ -936,16 +992,16 @@ var generated = {
936
992
  mcp: {
937
993
  server_details: (
938
994
  /** `mvp:mcp_server_details` — fields: as, url, bearer_token, connection_type */
939
- (a = {}) => fromSpec("mvp:mcp_server_details", a)
995
+ (a) => fromSpec("mvp:mcp_server_details", a)
940
996
  ),
941
997
  tool: {
942
998
  list: (
943
999
  /** `mvp:mcp_list_tools` — fields: as, url, bearer_token, connection_type */
944
- (a = {}) => fromSpec("mvp:mcp_list_tools", a)
1000
+ (a) => fromSpec("mvp:mcp_list_tools", a)
945
1001
  ),
946
1002
  run: (
947
1003
  /** `mvp:mcp_call_tool` — fields: as, url, bearer_token, connection_type, tool, args */
948
- (a = {}) => fromSpec("mvp:mcp_call_tool", a)
1004
+ (a) => fromSpec("mvp:mcp_call_tool", a)
949
1005
  )
950
1006
  }
951
1007
  }
@@ -954,7 +1010,7 @@ var generated = {
954
1010
  api: {
955
1011
  request: (
956
1012
  /** `mvp:api_request` — fields: as, url, method, params, headers, timeout, follow_location, verify_host, verify_peer, ca_certificate, certificate, certificate_pass, private_key, private_key_pass */
957
- (a = {}) => fromSpec("mvp:api_request", a)
1013
+ (a) => fromSpec("mvp:api_request", a)
958
1014
  ),
959
1015
  stream: (
960
1016
  /** `mvp:streaming_api_response` — fields: value */
@@ -1042,11 +1098,11 @@ var generated = {
1042
1098
  ),
1043
1099
  query: (
1044
1100
  /** `mvp:amazon_opensearch_query` — fields: as, auth_type, key_id, access_key, region, base_url, index, payload, size, from, included_fields, return_type, expression, sort */
1045
- (a = {}) => fromSpec("mvp:amazon_opensearch_query", a)
1101
+ (a) => fromSpec("mvp:amazon_opensearch_query", a)
1046
1102
  ),
1047
1103
  request: (
1048
1104
  /** `mvp:amazon_opensearch_request` — fields: as, auth_type, key_id, access_key, region, method, url, query */
1049
- (a = {}) => fromSpec("mvp:amazon_opensearch_request", a)
1105
+ (a) => fromSpec("mvp:amazon_opensearch_request", a)
1050
1106
  )
1051
1107
  },
1052
1108
  s3: {
@@ -1111,11 +1167,11 @@ var generated = {
1111
1167
  ),
1112
1168
  query: (
1113
1169
  /** `mvp:elasticsearch_query` — fields: as, auth_type, key_id, access_key, base_url, index, payload, size, from, included_fields, return_type, expression, sort */
1114
- (a = {}) => fromSpec("mvp:elasticsearch_query", a)
1170
+ (a) => fromSpec("mvp:elasticsearch_query", a)
1115
1171
  ),
1116
1172
  request: (
1117
1173
  /** `mvp:elasticsearch_request` — fields: as, auth_type, key_id, access_key, method, url, payload */
1118
- (a = {}) => fromSpec("mvp:elasticsearch_request", a)
1174
+ (a) => fromSpec("mvp:elasticsearch_request", a)
1119
1175
  )
1120
1176
  },
1121
1177
  google: {
@@ -1150,7 +1206,7 @@ var generated = {
1150
1206
  datadog: {
1151
1207
  log: (
1152
1208
  /** `mvp:datadog_log` — fields: message, status, attributes, service, source, env, hostname, tags, timestamp, connection */
1153
- (a = {}) => fromSpec("mvp:datadog_log", a)
1209
+ (a) => fromSpec("mvp:datadog_log", a)
1154
1210
  ),
1155
1211
  log_bulk: (
1156
1212
  /** `mvp:datadog_log_bulk` — fields: entries, connection */
@@ -1257,7 +1313,7 @@ var generated = {
1257
1313
  },
1258
1314
  lambda: (
1259
1315
  /** `mvp:lambda` — fields: as, code, timeout */
1260
- (a = {}) => fromSpec("mvp:lambda", a)
1316
+ (a) => fromSpec("mvp:lambda", a)
1261
1317
  ),
1262
1318
  math: {
1263
1319
  add: (
@@ -1390,7 +1446,7 @@ var generated = {
1390
1446
  security: {
1391
1447
  check_password: (
1392
1448
  /** `mvp:check_pass` — fields: as, text_password, hash_password */
1393
- (a = {}) => fromSpec("mvp:check_pass", a)
1449
+ (a) => fromSpec("mvp:check_pass", a)
1394
1450
  ),
1395
1451
  create_curve_key: (
1396
1452
  /** `mvp:crypto_create_ec_key` — fields: as, curve, format */
@@ -1414,27 +1470,27 @@ var generated = {
1414
1470
  ),
1415
1471
  decrypt: (
1416
1472
  /** `mvp:crypto_decrypt` — fields: as, data, algorithm, key, iv */
1417
- (a = {}) => fromSpec("mvp:crypto_decrypt", a)
1473
+ (a) => fromSpec("mvp:crypto_decrypt", a)
1418
1474
  ),
1419
1475
  encrypt: (
1420
1476
  /** `mvp:crypto_encrypt` — fields: as, data, algorithm, key, iv */
1421
- (a = {}) => fromSpec("mvp:crypto_encrypt", a)
1477
+ (a) => fromSpec("mvp:crypto_encrypt", a)
1422
1478
  ),
1423
1479
  jwe_decode: (
1424
1480
  /** `mvp:crypto_jwe_decode2` — fields: as, token, key, check_claims, key_algorithm, content_algorithm, timeDrift */
1425
- (a = {}) => fromSpec("mvp:crypto_jwe_decode2", a)
1481
+ (a) => fromSpec("mvp:crypto_jwe_decode2", a)
1426
1482
  ),
1427
1483
  jwe_encode: (
1428
1484
  /** `mvp:crypto_jwe_encode3` — fields: as, headers, claims, key, key_algorithm, content_algorithm, ttl */
1429
- (a = {}) => fromSpec("mvp:crypto_jwe_encode3", a)
1485
+ (a) => fromSpec("mvp:crypto_jwe_encode3", a)
1430
1486
  ),
1431
1487
  jws_decode: (
1432
1488
  /** `mvp:crypto_jws_decode2` — fields: as, token, key, check_claims, signature_algorithm, timeDrift */
1433
- (a = {}) => fromSpec("mvp:crypto_jws_decode2", a)
1489
+ (a) => fromSpec("mvp:crypto_jws_decode2", a)
1434
1490
  ),
1435
1491
  jws_encode: (
1436
1492
  /** `mvp:crypto_jws_encode2` — fields: as, headers, claims, key, signature_algorithm, ttl */
1437
- (a = {}) => fromSpec("mvp:crypto_jws_encode2", a)
1493
+ (a) => fromSpec("mvp:crypto_jws_encode2", a)
1438
1494
  ),
1439
1495
  random_bytes: (
1440
1496
  /** `mvp:random_bytes` — fields: as, length */
@@ -1490,7 +1546,7 @@ var generated = {
1490
1546
  ),
1491
1547
  from_request: (
1492
1548
  /** `mvp:streaming_api_request` — fields: as, url, method, params, headers, timeout, follow_location, verify_host, verify_peer, ca_certificate, certificate, certificate_pass, private_key, private_key_pass */
1493
- (a = {}) => fromSpec("mvp:streaming_api_request", a)
1549
+ (a) => fromSpec("mvp:streaming_api_request", a)
1494
1550
  )
1495
1551
  },
1496
1552
  text: {
@@ -1546,7 +1602,7 @@ var generated = {
1546
1602
  util: {
1547
1603
  geo_distance: (
1548
1604
  /** `mvp:calculate_geo_distance` — fields: as, latitude_1, longitude_1, latitude_2, longitude_2 */
1549
- (a = {}) => fromSpec("mvp:calculate_geo_distance", a)
1605
+ (a) => fromSpec("mvp:calculate_geo_distance", a)
1550
1606
  ),
1551
1607
  get_all_input: (
1552
1608
  /** `mvp:get_all_input` — fields: as */
@@ -1565,7 +1621,7 @@ var generated = {
1565
1621
  (a) => fromSpec("mvp:ipaddress_lookup", a)
1566
1622
  ),
1567
1623
  send_email: (
1568
- /** `mvp:send_email` — fields: as, service_provider, api_key, subject, message, to, bcc, cc, from, reply_to, scheduled_at */
1624
+ /** `mvp:send_email` — fields: as, api_key, service_provider, subject, message, to, bcc, cc, from, reply_to, scheduled_at */
1569
1625
  (a = {}) => fromSpec("mvp:send_email", a)
1570
1626
  ),
1571
1627
  set_header: (
@@ -1584,7 +1640,7 @@ var generated = {
1584
1640
  webflow: {
1585
1641
  request: (
1586
1642
  /** `mvp:connect_webflow_api_request` — fields: as, path, method, params, headers, timeout, follow_location, verify_host, verify_peer, ca_certificate, certificate, certificate_pass, private_key, private_key_pass */
1587
- (a = {}) => fromSpec("mvp:connect_webflow_api_request", a)
1643
+ (a) => fromSpec("mvp:connect_webflow_api_request", a)
1588
1644
  )
1589
1645
  },
1590
1646
  zip: {
@@ -1619,6 +1675,8 @@ function isTransformRecord(t) {
1619
1675
  return !isTaggedValue(t) && !Array.isArray(t);
1620
1676
  }
1621
1677
  function arrayMap(a) {
1678
+ a = argsOrEmpty(a);
1679
+ assertArg("mvp:array_map", "source", a.source);
1622
1680
  const context = { output_type: "value", collection: vf3(a.source) };
1623
1681
  if (a.transform !== void 0) {
1624
1682
  const pairs = isTransformRecord(a.transform) ? Object.entries(a.transform).map(([key, value]) => ({ key: c.text(key), value })) : Array.isArray(a.transform) ? a.transform : void 0;
@@ -1640,8 +1698,10 @@ function arrayMap(a) {
1640
1698
  return annotate({ name: "mvp:array_map", context, as: a.as ?? "", input: [] }, a);
1641
1699
  }
1642
1700
  function arrayUnion(a) {
1643
- const context = { left: vf3(a.source) };
1644
- if (a.with) context.right = vf3(a.with);
1701
+ a = argsOrEmpty(a);
1702
+ assertArg("mvp:array_union", "source", a.source);
1703
+ assertArg("mvp:array_union", "with", a.with);
1704
+ const context = { left: vf3(a.source), right: vf3(a.with) };
1645
1705
  if (a.transform) context.transform_value = vf3(a.transform);
1646
1706
  return annotate({ name: "mvp:array_union", context, as: a.as ?? "", input: [] }, a);
1647
1707
  }
@@ -1663,12 +1723,17 @@ function getRawInput(a = {}) {
1663
1723
  }, a);
1664
1724
  }
1665
1725
  function postProcess(body, a) {
1726
+ assertArg("mvp:post_process", "body", body);
1666
1727
  return annotate(
1667
1728
  { name: "mvp:post_process", context: { run: body.map(encodeStatement) }, input: [] },
1668
1729
  a
1669
1730
  );
1670
1731
  }
1671
1732
  function realtimeEvent(a) {
1733
+ a = argsOrEmpty(a);
1734
+ assertArg("mvp:realtime_event", "channel", a.channel);
1735
+ assertArg("mvp:realtime_event", "data", a.data);
1736
+ assertArg("mvp:realtime_event", "authId", a.authId);
1672
1737
  const auth = { row_id: vf3(a.authId) };
1673
1738
  if (a.authTable !== void 0) auth.dbo_id = resolveRef("dbo", a.authTable);
1674
1739
  return annotate({
@@ -1678,6 +1743,7 @@ function realtimeEvent(a) {
1678
1743
  }, a);
1679
1744
  }
1680
1745
  function realtimePublish(a) {
1746
+ a = argsOrEmpty(a);
1681
1747
  const server = publishServerValue(a.server);
1682
1748
  if (!a.channel || a.channel.value === "") {
1683
1749
  throw new Error(
@@ -1719,6 +1785,9 @@ function publishServerValue(server) {
1719
1785
  return { value: name, tag: "const", filters: [] };
1720
1786
  }
1721
1787
  function createAuthToken(a) {
1788
+ a = argsOrEmpty(a);
1789
+ assertArg("mvp:create_auth", "id", a.id);
1790
+ assertArg("mvp:create_auth", "table", a.table);
1722
1791
  return annotate({
1723
1792
  name: "mvp:create_auth",
1724
1793
  context: {},
@@ -1749,6 +1818,8 @@ function createGuid(a = {}) {
1749
1818
  }, a);
1750
1819
  }
1751
1820
  function expectToThrow(a) {
1821
+ a = argsOrEmpty(a);
1822
+ assertArg("mvp:test_expect_to_throw", "body", a.body);
1752
1823
  const context = { run: a.body.map(encodeStatement) };
1753
1824
  if (a.exception) context.value1 = vf3(a.exception);
1754
1825
  return annotate({ name: "mvp:test_expect_to_throw", context, input: [] }, a);
@@ -1773,6 +1844,7 @@ registerStatement("mvp:test_expect_to_throw", expectToThrow);
1773
1844
 
1774
1845
  // src/statements/special/ip-lookup.ts
1775
1846
  function ipLookup(a) {
1847
+ a = argsOrEmpty(a);
1776
1848
  return generated.util.ip_lookup({
1777
1849
  as: a.as,
1778
1850
  value: a.value,
@@ -1949,6 +2021,8 @@ function dboStatement(name, table, as, input2, opts = {}, tableAlias, enforceHid
1949
2021
  };
1950
2022
  }
1951
2023
  function dbGet(args) {
2024
+ args = argsOrEmpty(args);
2025
+ assertArg("mvp:dbo_getby", "table", args.table);
1952
2026
  return annotate(dboStatement(
1953
2027
  "mvp:dbo_getby",
1954
2028
  args.table,
@@ -1966,6 +2040,8 @@ function dbGet(args) {
1966
2040
  ), args);
1967
2041
  }
1968
2042
  function dbGetById(args) {
2043
+ args = argsOrEmpty(args);
2044
+ assertArg("mvp:dbo_get", "table", args.table);
1969
2045
  return annotate(dboStatement(
1970
2046
  "mvp:dbo_get",
1971
2047
  args.table,
@@ -1976,6 +2052,8 @@ function dbGetById(args) {
1976
2052
  ), args);
1977
2053
  }
1978
2054
  function dbDel(args) {
2055
+ args = argsOrEmpty(args);
2056
+ assertArg("mvp:dbo_delby", "table", args.table);
1979
2057
  return annotate(dboStatement(
1980
2058
  "mvp:dbo_delby",
1981
2059
  args.table,
@@ -1986,6 +2064,8 @@ function dbDel(args) {
1986
2064
  ), args);
1987
2065
  }
1988
2066
  function dbHas(args) {
2067
+ args = argsOrEmpty(args);
2068
+ assertArg("mvp:dbo_hasby", "table", args.table);
1989
2069
  return annotate(dboStatement(
1990
2070
  "mvp:dbo_hasby",
1991
2071
  args.table,
@@ -1996,6 +2076,8 @@ function dbHas(args) {
1996
2076
  ), args);
1997
2077
  }
1998
2078
  function dbPatch(args) {
2079
+ args = argsOrEmpty(args);
2080
+ assertArg("mvp:dbo_patch", "table", args.table);
1999
2081
  return annotate(dboStatement(
2000
2082
  "mvp:dbo_patch",
2001
2083
  args.table,
@@ -2010,6 +2092,8 @@ function dbPatch(args) {
2010
2092
  ), args);
2011
2093
  }
2012
2094
  function dbTruncate(args) {
2095
+ args = argsOrEmpty(args);
2096
+ assertArg("mvp:dbo_truncate", "table", args.table);
2013
2097
  return annotate(dboStatement(
2014
2098
  "mvp:dbo_truncate",
2015
2099
  args.table,
@@ -2084,6 +2168,8 @@ function nestedFields(cell) {
2084
2168
  });
2085
2169
  }
2086
2170
  function dbAdd(args) {
2171
+ args = argsOrEmpty(args);
2172
+ assertArg("mvp:dbo_add", "table", args.table);
2087
2173
  const data = args.row !== void 0 ? expandRow(requireBoundTable(args.table, "row"), args.row, "add") : args.data ?? [];
2088
2174
  return annotate(dboStatement(
2089
2175
  "mvp:dbo_add",
@@ -2096,6 +2182,8 @@ function dbAdd(args) {
2096
2182
  ), args);
2097
2183
  }
2098
2184
  function dbEdit(args) {
2185
+ args = argsOrEmpty(args);
2186
+ assertArg("mvp:dbo_editby", "table", args.table);
2099
2187
  const data = args.row !== void 0 ? expandRow(requireBoundTable(args.table, "row"), args.row, "edit") : args.data ?? [];
2100
2188
  return annotate(dboStatement(
2101
2189
  "mvp:dbo_editby",
@@ -2112,6 +2200,8 @@ function dbEdit(args) {
2112
2200
  ), args);
2113
2201
  }
2114
2202
  function dbAddOrEdit(args) {
2203
+ args = argsOrEmpty(args);
2204
+ assertArg("mvp:dbo_addoreditby", "table", args.table);
2115
2205
  const data = args.row !== void 0 ? expandRow(requireBoundTable(args.table, "row"), args.row, "edit") : args.data ?? [];
2116
2206
  const input2 = [
2117
2207
  leanInput("field_name", c.text(args.fieldName ?? "id")),
@@ -2129,6 +2219,8 @@ function dbAddOrEdit(args) {
2129
2219
  }, args);
2130
2220
  }
2131
2221
  function dbSchema(args) {
2222
+ args = argsOrEmpty(args);
2223
+ assertArg("mvp:dbo_get_schema", "table", args.table);
2132
2224
  return annotate(dboStatement(
2133
2225
  "mvp:dbo_get_schema",
2134
2226
  args.table,
@@ -2139,6 +2231,8 @@ function dbSchema(args) {
2139
2231
  ), args);
2140
2232
  }
2141
2233
  function dbDirectQuery(args) {
2234
+ args = argsOrEmpty(args);
2235
+ assertArg("mvp:dbo_direct_query", "sql", args.sql);
2142
2236
  return annotate({
2143
2237
  name: "mvp:dbo_direct_query",
2144
2238
  context: {
@@ -2175,6 +2269,9 @@ function bulkStatement(name, table, as, input2, tableAlias) {
2175
2269
  return { name, context: { dbo: dboBinding(table, tableAlias) }, as: as ?? "", input: input2 };
2176
2270
  }
2177
2271
  function dbBulkAdd(args) {
2272
+ args = argsOrEmpty(args);
2273
+ assertArg("mvp:dbo_bulkadd", "table", args.table);
2274
+ assertArg("mvp:dbo_bulkadd", "items", args.items);
2178
2275
  assertBulkAddIds(args);
2179
2276
  return annotate(bulkStatement("mvp:dbo_bulkadd", args.table, args.as, [
2180
2277
  ...args.allowIdField === void 0 ? [] : [leanInput("allow_id_field", c.bool(args.allowIdField))],
@@ -2203,6 +2300,8 @@ function assertBulkDeleteScope(constrains, allRows) {
2203
2300
  );
2204
2301
  }
2205
2302
  function dbBulkDelete(args) {
2303
+ args = argsOrEmpty(args);
2304
+ assertArg("mvp:dbo_bulkdelete", "table", args.table);
2206
2305
  const context = { dbo: dboBinding(args.table, args.tableAlias) };
2207
2306
  const search = encodeSearch(args.where);
2208
2307
  assertBulkDeleteScope(searchConstrainsRows(search), args.allRows);
@@ -2210,6 +2309,8 @@ function dbBulkDelete(args) {
2210
2309
  return annotate({ name: "mvp:dbo_bulkdelete", context, as: args.as ?? "", input: [] }, args);
2211
2310
  }
2212
2311
  function dbBulkPatch(args) {
2312
+ args = argsOrEmpty(args);
2313
+ assertArg("mvp:dbo_bulkpatch", "table", args.table);
2213
2314
  return annotate(bulkStatement(
2214
2315
  "mvp:dbo_bulkpatch",
2215
2316
  args.table,
@@ -2219,6 +2320,8 @@ function dbBulkPatch(args) {
2219
2320
  ), args);
2220
2321
  }
2221
2322
  function dbBulkUpdate(args) {
2323
+ args = argsOrEmpty(args);
2324
+ assertArg("mvp:dbo_bulkupdate", "table", args.table);
2222
2325
  return annotate(bulkStatement(
2223
2326
  "mvp:dbo_bulkupdate",
2224
2327
  args.table,
@@ -2396,6 +2499,8 @@ function encodeReturn(returnType, sort, paging, forceEnabled = false, distinct =
2396
2499
  return { type: "list", list: { distinct, sort: sortEls, paging: pagingObj } };
2397
2500
  }
2398
2501
  function dbQuery(args) {
2502
+ args = argsOrEmpty(args);
2503
+ assertArg("mvp:dbo_view", "table", args.table);
2399
2504
  if (args.table !== null) {
2400
2505
  assertNoAddonShadow(args.table, args.addon);
2401
2506
  assertNoEvalShadow(args.table, args.eval);
@@ -2460,6 +2565,8 @@ function dbQuery(args) {
2460
2565
  }, args);
2461
2566
  }
2462
2567
  function dbTransaction(args) {
2568
+ args = argsOrEmpty(args);
2569
+ assertArg("mvp:db_transaction", "body", args.body);
2463
2570
  const stmt = {
2464
2571
  name: "mvp:db_transaction",
2465
2572
  context: { run: args.body.map(encodeStatement) },
@@ -2476,6 +2583,10 @@ var EXTERNAL_SQL_NAME = {
2476
2583
  snowflake: "mvp:dbo_external_snowflake_query"
2477
2584
  };
2478
2585
  function dbExternalQuery(args) {
2586
+ args = argsOrEmpty(args);
2587
+ const statement = EXTERNAL_SQL_NAME[args.engine] ?? "db.external.direct_query";
2588
+ assertArg(statement, "connectionString", args.connectionString);
2589
+ assertArg(statement, "sql", args.sql);
2479
2590
  const connection = args.connectionString;
2480
2591
  const connectionContext = typeof connection === "string" ? { connection_string: connection } : {
2481
2592
  connection_string_flex: {
@@ -2650,7 +2761,8 @@ var microserviceKind = {
2650
2761
  registerKind(microserviceKind);
2651
2762
 
2652
2763
  // src/statements/special/api-request.ts
2653
- function apiRequest(a = {}) {
2764
+ function apiRequest(a) {
2765
+ a = argsOrEmpty(a);
2654
2766
  assertSslConsistency("api.request", a);
2655
2767
  return generated.api.request({
2656
2768
  as: a.as,
@@ -2661,7 +2773,8 @@ function apiRequest(a = {}) {
2661
2773
  output: a.output
2662
2774
  });
2663
2775
  }
2664
- function streamFromRequest(a = {}) {
2776
+ function streamFromRequest(a) {
2777
+ a = argsOrEmpty(a);
2665
2778
  assertSslConsistency("stream.from_request", a);
2666
2779
  return annotate(generated.stream.from_request({
2667
2780
  as: a.as,
@@ -2669,7 +2782,8 @@ function streamFromRequest(a = {}) {
2669
2782
  ...coerceHttpFields(a)
2670
2783
  }), a);
2671
2784
  }
2672
- function webflowRequest(a = {}) {
2785
+ function webflowRequest(a) {
2786
+ a = argsOrEmpty(a);
2673
2787
  assertSslConsistency("webflow.request", a);
2674
2788
  return generated.webflow.request({
2675
2789
  as: a.as,
@@ -2721,6 +2835,9 @@ var MICROSERVICE_DEFAULTS = {
2721
2835
  follow_location: true
2722
2836
  };
2723
2837
  function microserviceRequest(a) {
2838
+ a = argsOrEmpty(a);
2839
+ assertArg("microservice.request", "host", a.host);
2840
+ assertArg("microservice.request", "path", a.path);
2724
2841
  return generated.microservice.request({
2725
2842
  as: a.as,
2726
2843
  host: coerceText(resolveMicroserviceHost(a.host, a.port)),
@@ -2782,7 +2899,7 @@ function setHeader(a) {
2782
2899
  }
2783
2900
 
2784
2901
  // src/statements/special/lambda-args.ts
2785
- function lambda(a = {}) {
2902
+ function lambda(a) {
2786
2903
  return generated.lambda(a);
2787
2904
  }
2788
2905
 
@@ -3604,4 +3721,4 @@ export {
3604
3721
  workspaceKind,
3605
3722
  workspaceConfig
3606
3723
  };
3607
- //# sourceMappingURL=chunk-FJ6ZS5KB.js.map
3724
+ //# sourceMappingURL=chunk-U3G2UW65.js.map