@ai-matrx/api 0.1.29 → 0.1.30

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 (134) hide show
  1. package/CHANGELOG.md +10 -1
  2. package/dist/account.d.cts +2 -2
  3. package/dist/account.d.ts +2 -2
  4. package/dist/agents.cjs +11 -11
  5. package/dist/agents.d.cts +2 -2
  6. package/dist/agents.d.ts +2 -2
  7. package/dist/agents.js +1 -1
  8. package/dist/ai.cjs +2 -2
  9. package/dist/ai.d.cts +2 -2
  10. package/dist/ai.d.ts +2 -2
  11. package/dist/ai.js +1 -1
  12. package/dist/apps.cjs +5 -5
  13. package/dist/apps.d.cts +2 -2
  14. package/dist/apps.d.ts +2 -2
  15. package/dist/apps.js +1 -1
  16. package/dist/architecture.cjs +12 -12
  17. package/dist/architecture.d.cts +2 -2
  18. package/dist/architecture.d.ts +2 -2
  19. package/dist/architecture.js +1 -1
  20. package/dist/audio.cjs +39 -39
  21. package/dist/audio.d.cts +2 -2
  22. package/dist/audio.d.ts +2 -2
  23. package/dist/audio.js +2 -2
  24. package/dist/chat.cjs +11 -11
  25. package/dist/chat.d.cts +14 -2
  26. package/dist/chat.d.ts +14 -2
  27. package/dist/chat.js +1 -1
  28. package/dist/{chunk-IAB7JCVA.js → chunk-35BH3TJW.js} +1 -1
  29. package/dist/{chunk-BI6C3CD7.cjs → chunk-FFXB3EDM.cjs} +3 -3
  30. package/dist/{chunk-Z2UOMPC4.js → chunk-I4AWZ7GN.js} +1 -1
  31. package/dist/{chunk-G3OJBGCU.cjs → chunk-ILAZVNEL.cjs} +1 -1
  32. package/dist/{chunk-BIHYNQOU.js → chunk-KZD6TVJ4.js} +1 -1
  33. package/dist/{chunk-VGXUUEFE.cjs → chunk-NH7VE36B.cjs} +4 -4
  34. package/dist/{chunk-QCDALTHR.js → chunk-RIIIDGZJ.js} +1 -1
  35. package/dist/{chunk-Q6BD7FVP.cjs → chunk-VU3BK4NY.cjs} +37 -37
  36. package/dist/code.cjs +6 -6
  37. package/dist/code.d.cts +2 -2
  38. package/dist/code.d.ts +2 -2
  39. package/dist/code.js +1 -1
  40. package/dist/commerce.d.cts +2 -2
  41. package/dist/commerce.d.ts +2 -2
  42. package/dist/communications.cjs +4 -4
  43. package/dist/communications.d.cts +4 -2
  44. package/dist/communications.d.ts +4 -2
  45. package/dist/communications.js +1 -1
  46. package/dist/computer.cjs +4 -4
  47. package/dist/computer.d.cts +2 -2
  48. package/dist/computer.d.ts +2 -2
  49. package/dist/computer.js +1 -1
  50. package/dist/content.cjs +4 -4
  51. package/dist/content.d.cts +2 -2
  52. package/dist/content.d.ts +2 -2
  53. package/dist/content.js +1 -1
  54. package/dist/crm.cjs +2 -2
  55. package/dist/crm.d.cts +2 -2
  56. package/dist/crm.d.ts +2 -2
  57. package/dist/crm.js +1 -1
  58. package/dist/data.cjs +4 -4
  59. package/dist/data.d.cts +2 -2
  60. package/dist/data.d.ts +2 -2
  61. package/dist/data.js +1 -1
  62. package/dist/education.cjs +4 -4
  63. package/dist/education.d.cts +2 -2
  64. package/dist/education.d.ts +2 -2
  65. package/dist/education.js +1 -1
  66. package/dist/files.cjs +228 -228
  67. package/dist/files.d.cts +2 -2
  68. package/dist/files.d.ts +2 -2
  69. package/dist/files.js +2 -2
  70. package/dist/human-resources.d.cts +2 -2
  71. package/dist/human-resources.d.ts +2 -2
  72. package/dist/{index-DyDNKgdB.d.cts → index-B6p8TJkh.d.cts} +2 -2
  73. package/dist/{index-DyDNKgdB.d.ts → index-B6p8TJkh.d.ts} +2 -2
  74. package/dist/index.cjs +58 -58
  75. package/dist/index.d.cts +4 -4
  76. package/dist/index.d.ts +4 -4
  77. package/dist/index.js +2 -2
  78. package/dist/integrations.cjs +5 -5
  79. package/dist/integrations.d.cts +2 -2
  80. package/dist/integrations.d.ts +2 -2
  81. package/dist/integrations.js +1 -1
  82. package/dist/intelligence.cjs +16 -9
  83. package/dist/intelligence.d.cts +4 -3
  84. package/dist/intelligence.d.ts +4 -3
  85. package/dist/intelligence.js +11 -4
  86. package/dist/{keys.generated-DE-t9kzx.d.ts → keys.generated-B0M-0PPo.d.cts} +11 -4
  87. package/dist/{keys.generated-DE-t9kzx.d.cts → keys.generated-B0M-0PPo.d.ts} +11 -4
  88. package/dist/knowledge.cjs +42 -42
  89. package/dist/knowledge.d.cts +2 -2
  90. package/dist/knowledge.d.ts +2 -2
  91. package/dist/knowledge.js +1 -1
  92. package/dist/legal.cjs +6 -6
  93. package/dist/legal.d.cts +2 -2
  94. package/dist/legal.d.ts +2 -2
  95. package/dist/legal.js +1 -1
  96. package/dist/marketing.cjs +78 -78
  97. package/dist/marketing.d.cts +2 -2
  98. package/dist/marketing.d.ts +2 -2
  99. package/dist/marketing.js +1 -1
  100. package/dist/masterwork.cjs +32 -32
  101. package/dist/masterwork.d.cts +2 -2
  102. package/dist/masterwork.d.ts +2 -2
  103. package/dist/masterwork.js +1 -1
  104. package/dist/media.cjs +11 -11
  105. package/dist/media.d.cts +2 -2
  106. package/dist/media.d.ts +2 -2
  107. package/dist/media.js +1 -1
  108. package/dist/platform.cjs +27 -27
  109. package/dist/platform.d.cts +2 -2
  110. package/dist/platform.d.ts +2 -2
  111. package/dist/platform.js +2 -2
  112. package/dist/publish.cjs +7 -7
  113. package/dist/publish.d.cts +2 -2
  114. package/dist/publish.d.ts +2 -2
  115. package/dist/publish.js +1 -1
  116. package/dist/recording.cjs +17 -17
  117. package/dist/recording.js +4 -4
  118. package/dist/schemas.d.cts +1 -1
  119. package/dist/schemas.d.ts +1 -1
  120. package/dist/stream.cjs +10 -10
  121. package/dist/stream.d.cts +1 -1
  122. package/dist/stream.d.ts +1 -1
  123. package/dist/stream.js +1 -1
  124. package/dist/types.d.cts +3 -3
  125. package/dist/types.d.ts +3 -3
  126. package/dist/web.cjs +26 -26
  127. package/dist/web.d.cts +2 -2
  128. package/dist/web.d.ts +2 -2
  129. package/dist/web.js +1 -1
  130. package/dist/workflows.cjs +13 -13
  131. package/dist/workflows.d.cts +14 -2
  132. package/dist/workflows.d.ts +14 -2
  133. package/dist/workflows.js +1 -1
  134. package/package.json +2 -2
@@ -1,12 +1,12 @@
1
1
  'use strict';
2
2
 
3
- var chunkG3OJBGCU_cjs = require('./chunk-G3OJBGCU.cjs');
3
+ var chunkILAZVNEL_cjs = require('./chunk-ILAZVNEL.cjs');
4
4
  require('./chunk-2SXAAKGV.cjs');
5
5
 
6
6
  // src/generated/workflows.ts
7
7
  var $runAssignments = { m: "POST", p: "/ai/agent-assignments", d: "aidream", a: "guest", o: "required", s: "ndjson", n: "workflows.run_assignments" };
8
8
  function runAssignments(api, args, options) {
9
- return chunkG3OJBGCU_cjs.openStream(api, $runAssignments, args, options);
9
+ return chunkILAZVNEL_cjs.openStream(api, $runAssignments, args, options);
10
10
  }
11
11
  var $getSession = { m: "GET", p: "/ai/agent-assignments/sessions/{session_id}", d: "aidream", a: "guest", o: "required", n: "workflows.get_session" };
12
12
  function getSession(api, args, options) {
@@ -130,7 +130,7 @@ function validateWorkflow(api, args, options) {
130
130
  }
131
131
  var $testSingleNode = { m: "POST", p: "/workflows/{definition_id}/nodes/{node_id}/test", d: "aidream", a: "guest", o: "required", s: "ndjson", n: "workflows.test_single_node" };
132
132
  function testSingleNode(api, args, options) {
133
- return chunkG3OJBGCU_cjs.openStream(api, $testSingleNode, args, options);
133
+ return chunkILAZVNEL_cjs.openStream(api, $testSingleNode, args, options);
134
134
  }
135
135
  var $getNodeDataSlots = { m: "GET", p: "/workflows/{definition_id}/nodes/{node_id}/slots", d: "aidream", a: "guest", o: "optional", n: "workflows.get_node_data_slots" };
136
136
  function getNodeDataSlots(api, args, options) {
@@ -210,11 +210,11 @@ function listRunsForWorkflow(api, args, options) {
210
210
  }
211
211
  var $startWorkflowRun = { m: "POST", p: "/workflows/{definition_id}/runs", d: "aidream", a: "guest", o: "required", s: "ndjson", n: "workflows.start_workflow_run" };
212
212
  function startWorkflowRun(api, args, options) {
213
- return chunkG3OJBGCU_cjs.openStream(api, $startWorkflowRun, args, options);
213
+ return chunkILAZVNEL_cjs.openStream(api, $startWorkflowRun, args, options);
214
214
  }
215
215
  var $resumeWorkflowRun = { m: "POST", p: "/runs/{run_id}/resume", d: "aidream", a: "guest", o: "required", s: "ndjson", n: "workflows.resume_workflow_run" };
216
216
  function resumeWorkflowRun(api, args, options) {
217
- return chunkG3OJBGCU_cjs.openStream(api, $resumeWorkflowRun, args, options);
217
+ return chunkILAZVNEL_cjs.openStream(api, $resumeWorkflowRun, args, options);
218
218
  }
219
219
  var $listRuns = { m: "GET", p: "/runs", d: "aidream", a: "guest", o: "optional", n: "workflows.list_runs" };
220
220
  function listRuns(api, args, options) {
@@ -222,7 +222,7 @@ function listRuns(api, args, options) {
222
222
  }
223
223
  var $streamRunAnnouncements = { m: "GET", p: "/runs/stream", d: "aidream", a: "guest", o: "optional", s: "sse", n: "workflows.stream_run_announcements" };
224
224
  function streamRunAnnouncements(api, args, options) {
225
- return chunkG3OJBGCU_cjs.openStream(api, $streamRunAnnouncements, args, options);
225
+ return chunkILAZVNEL_cjs.openStream(api, $streamRunAnnouncements, args, options);
226
226
  }
227
227
  var $listOpenGatesEndpoint = { m: "GET", p: "/runs/gates", d: "aidream", a: "guest", o: "optional", n: "workflows.list_open_gates_endpoint" };
228
228
  function listOpenGatesEndpoint(api, args, options) {
@@ -246,7 +246,7 @@ function pauseRun(api, args, options) {
246
246
  }
247
247
  var $resumePausedRun = { m: "POST", p: "/runs/{run_id}/resume-paused", d: "aidream", a: "guest", o: "required", s: "ndjson", n: "workflows.resume_paused_run" };
248
248
  function resumePausedRun(api, args, options) {
249
- return chunkG3OJBGCU_cjs.openStream(api, $resumePausedRun, args, options);
249
+ return chunkILAZVNEL_cjs.openStream(api, $resumePausedRun, args, options);
250
250
  }
251
251
  var $injectRun = { m: "POST", p: "/runs/{run_id}/inject", d: "aidream", a: "guest", o: "required", n: "workflows.inject_run" };
252
252
  function injectRun(api, args, options) {
@@ -294,7 +294,7 @@ function streamRunEvents(api, args, options) {
294
294
  }
295
295
  var $streamRunDebug = { m: "GET", p: "/runs/{run_id}/stream/debug", d: "aidream", a: "guest", o: "optional", s: "sse", n: "workflows.stream_run_debug" };
296
296
  function streamRunDebug(api, args, options) {
297
- return chunkG3OJBGCU_cjs.openStream(api, $streamRunDebug, args, options);
297
+ return chunkILAZVNEL_cjs.openStream(api, $streamRunDebug, args, options);
298
298
  }
299
299
  var $getRunValues = { m: "GET", p: "/runs/{run_id}/values", d: "aidream", a: "guest", o: "optional", n: "workflows.get_run_values" };
300
300
  function getRunValues(api, args, options) {
@@ -354,7 +354,7 @@ function getSystemRun(api, args, options) {
354
354
  }
355
355
  var $startSystemRun = { m: "POST", p: "/workflows/system/{key}/runs", d: "aidream", a: "guest", o: "required", s: "ndjson", n: "workflows.start_system_run" };
356
356
  function startSystemRun(api, args, options) {
357
- return chunkG3OJBGCU_cjs.openStream(api, $startSystemRun, args, options);
357
+ return chunkILAZVNEL_cjs.openStream(api, $startSystemRun, args, options);
358
358
  }
359
359
  var $createBuilderWorkflow = { m: "POST", p: "/workflow-builder/workflows", d: "aidream", a: "guest", o: "required", n: "workflows.create_builder_workflow" };
360
360
  function createBuilderWorkflow(api, args, options) {
@@ -458,7 +458,7 @@ function dissolvePlan(api, args, options) {
458
458
  }
459
459
  var $planAssist = { m: "POST", p: "/plans/{plan_id}/assist", d: "aidream", a: "guest", o: "required", s: "ndjson", n: "workflows.plan_assist" };
460
460
  function planAssist(api, args, options) {
461
- return chunkG3OJBGCU_cjs.openStream(api, $planAssist, args, options);
461
+ return chunkILAZVNEL_cjs.openStream(api, $planAssist, args, options);
462
462
  }
463
463
  var $syncPlanAnchor = { m: "POST", p: "/plans/{plan_id}/sync", d: "aidream", a: "guest", o: "required", n: "workflows.sync_plan_anchor" };
464
464
  function syncPlanAnchor(api, args, options) {
@@ -478,7 +478,7 @@ function applyWorkflowPatchEndpoint(api, args, options) {
478
478
  }
479
479
  var $runSuggestions = { m: "POST", p: "/runs/{run_id}/suggestions", d: "aidream", a: "guest", o: "required", s: "ndjson", n: "workflows.run_suggestions" };
480
480
  function runSuggestions(api, args, options) {
481
- return chunkG3OJBGCU_cjs.openStream(api, $runSuggestions, args, options);
481
+ return chunkILAZVNEL_cjs.openStream(api, $runSuggestions, args, options);
482
482
  }
483
483
  var $getExtractProposal = { m: "GET", p: "/workflows/{definition_id}/extract-proposal", d: "aidream", a: "guest", o: "optional", n: "workflows.get_extract_proposal" };
484
484
  function getExtractProposal(api, args, options) {
@@ -522,11 +522,11 @@ function getPublicWorkflow(api, args, options) {
522
522
  }
523
523
  var $startComparison = { m: "POST", p: "/workflows/comparisons", d: "aidream", a: "guest", o: "required", s: "ndjson", n: "workflows.start_comparison" };
524
524
  function startComparison(api, args, options) {
525
- return chunkG3OJBGCU_cjs.openStream(api, $startComparison, args, options);
525
+ return chunkILAZVNEL_cjs.openStream(api, $startComparison, args, options);
526
526
  }
527
527
  var $rerunComparisonArm = { m: "POST", p: "/workflows/comparisons/{comparison_id}/arms/{arm_index}/rerun", d: "aidream", a: "guest", o: "required", s: "ndjson", n: "workflows.rerun_comparison_arm" };
528
528
  function rerunComparisonArm(api, args, options) {
529
- return chunkG3OJBGCU_cjs.openStream(api, $rerunComparisonArm, args, options);
529
+ return chunkILAZVNEL_cjs.openStream(api, $rerunComparisonArm, args, options);
530
530
  }
531
531
  var $validateCron = { m: "POST", p: "/scheduling/validate-cron", d: "aidream", a: "guest", o: "required", n: "workflows.validate_cron" };
532
532
  function validateCron(api, args, options) {
@@ -1,10 +1,10 @@
1
- import { A as Api, C as CallOptions, a as ApiStream, N as NdjsonEvent, S as SseEvent } from './index-DyDNKgdB.cjs';
1
+ import { A as Api, C as CallOptions, a as ApiStream, N as NdjsonEvent, S as SseEvent } from './index-B6p8TJkh.cjs';
2
2
  import { JsonValue, HostTurn, ClientContext, UserOverrides, ContextAnchor, RunNowResponse, ComputeNextDueResponse, ValidateCronRequest, ValidateCronResponse } from './schemas.cjs';
3
3
  import '@ai-matrx/auth/credentials';
4
4
 
5
5
  /**
6
6
  * GENERATED by @ai-matrx/api scripts/generate.mjs from aidream/api-contract — never edit by hand.
7
- * CONTRACT_SHA256 2e22230d01e754f5ae210e0932290279956cc04757022cfee77b6d128f1c667c
7
+ * CONTRACT_SHA256 1be6854fef4b55295a81f3b38e5801322cbf96de671625e0d642bc53c0939781
8
8
  */
9
9
 
10
10
  /** AddEdgeOp */
@@ -1917,6 +1917,18 @@ type ResumeQueuedRunResponse = {
1917
1917
  };
1918
1918
  /** ResumeRunRequest */
1919
1919
  type ResumeRunRequest = {
1920
+ /** Organization context for the request; omitted to use the authenticated context. */
1921
+ organization_id?: string | null;
1922
+ /** Optional associated project selected by the caller. */
1923
+ project_id?: string | null;
1924
+ /** Optional associated task selected by the caller. */
1925
+ task_id?: string | null;
1926
+ /** Stable application slug that initiated the request. */
1927
+ source_app?: string | null;
1928
+ /** Stable feature slug within the source application. */
1929
+ source_feature?: string | null;
1930
+ /** How the client initiated this request: 'user' for a direct human action, 'auto' for client-code automation. Omit for API callers. */
1931
+ initiation?: ("user" | "auto") | null;
1920
1932
  /** The interrupt checkpoint to resume from. REQUIRED for an 'interrupted' run; omitted for an 'awaiting_input' run (a start-time park has no checkpoint — supply the missing values in `inputs` instead and */
1921
1933
  checkpoint_id?: string | null;
1922
1934
  resume_value?: {
@@ -1,10 +1,10 @@
1
- import { A as Api, C as CallOptions, a as ApiStream, N as NdjsonEvent, S as SseEvent } from './index-DyDNKgdB.js';
1
+ import { A as Api, C as CallOptions, a as ApiStream, N as NdjsonEvent, S as SseEvent } from './index-B6p8TJkh.js';
2
2
  import { JsonValue, HostTurn, ClientContext, UserOverrides, ContextAnchor, RunNowResponse, ComputeNextDueResponse, ValidateCronRequest, ValidateCronResponse } from './schemas.js';
3
3
  import '@ai-matrx/auth/credentials';
4
4
 
5
5
  /**
6
6
  * GENERATED by @ai-matrx/api scripts/generate.mjs from aidream/api-contract — never edit by hand.
7
- * CONTRACT_SHA256 2e22230d01e754f5ae210e0932290279956cc04757022cfee77b6d128f1c667c
7
+ * CONTRACT_SHA256 1be6854fef4b55295a81f3b38e5801322cbf96de671625e0d642bc53c0939781
8
8
  */
9
9
 
10
10
  /** AddEdgeOp */
@@ -1917,6 +1917,18 @@ type ResumeQueuedRunResponse = {
1917
1917
  };
1918
1918
  /** ResumeRunRequest */
1919
1919
  type ResumeRunRequest = {
1920
+ /** Organization context for the request; omitted to use the authenticated context. */
1921
+ organization_id?: string | null;
1922
+ /** Optional associated project selected by the caller. */
1923
+ project_id?: string | null;
1924
+ /** Optional associated task selected by the caller. */
1925
+ task_id?: string | null;
1926
+ /** Stable application slug that initiated the request. */
1927
+ source_app?: string | null;
1928
+ /** Stable feature slug within the source application. */
1929
+ source_feature?: string | null;
1930
+ /** How the client initiated this request: 'user' for a direct human action, 'auto' for client-code automation. Omit for API callers. */
1931
+ initiation?: ("user" | "auto") | null;
1920
1932
  /** The interrupt checkpoint to resume from. REQUIRED for an 'interrupted' run; omitted for an 'awaiting_input' run (a start-time park has no checkpoint — supply the missing values in `inputs` instead and */
1921
1933
  checkpoint_id?: string | null;
1922
1934
  resume_value?: {
package/dist/workflows.js CHANGED
@@ -1,4 +1,4 @@
1
- import { openStream } from './chunk-BIHYNQOU.js';
1
+ import { openStream } from './chunk-KZD6TVJ4.js';
2
2
  import './chunk-KIEAFMKB.js';
3
3
 
4
4
  // src/generated/workflows.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ai-matrx/api",
3
- "version": "0.1.29",
3
+ "version": "0.1.30",
4
4
  "description": "The one way every app talks to every AI Matrx server: generated from the server contract, split by domain so an app loads only the requests it calls. Transport, five credential kinds, organization binding, streams, job follow. No screens, app state or database code.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",
@@ -439,5 +439,5 @@
439
439
  "check:sections": "node scripts/section-probe.mjs \"$PWD\"",
440
440
  "verify:tarball": "node scripts/verify-tarball.mjs"
441
441
  },
442
- "gitHead": "fab8a30b0b60555c3314c6116dd8d4a7a29473fd"
442
+ "gitHead": "db608866be09bf4a710e4c3c3103d1ac1d86a7ac"
443
443
  }