@ai-matrx/api 0.1.8 → 0.1.10

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 (135) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/README.md +1 -1
  3. package/dist/account.d.cts +1 -1
  4. package/dist/account.d.ts +1 -1
  5. package/dist/agents.cjs +12 -12
  6. package/dist/agents.d.cts +1 -1
  7. package/dist/agents.d.ts +1 -1
  8. package/dist/agents.js +2 -2
  9. package/dist/ai.cjs +3 -3
  10. package/dist/ai.d.cts +1 -1
  11. package/dist/ai.d.ts +1 -1
  12. package/dist/ai.js +2 -2
  13. package/dist/apps.cjs +6 -6
  14. package/dist/apps.d.cts +1 -1
  15. package/dist/apps.d.ts +1 -1
  16. package/dist/apps.js +2 -2
  17. package/dist/architecture.cjs +11 -11
  18. package/dist/architecture.d.cts +1 -1
  19. package/dist/architecture.d.ts +1 -1
  20. package/dist/architecture.js +2 -2
  21. package/dist/audio.cjs +5 -5
  22. package/dist/audio.d.cts +1 -1
  23. package/dist/audio.d.ts +1 -1
  24. package/dist/audio.js +2 -2
  25. package/dist/chat.cjs +12 -12
  26. package/dist/chat.d.cts +1 -1
  27. package/dist/chat.d.ts +1 -1
  28. package/dist/chat.js +2 -2
  29. package/dist/{chunk-5BBHAAIG.js → chunk-FLANGLCG.js} +260 -27
  30. package/dist/{chunk-KIEAFMKB.js → chunk-PIPE5OML.js} +100 -46
  31. package/dist/{chunk-2SXAAKGV.cjs → chunk-PKYPPATQ.cjs} +100 -45
  32. package/dist/{chunk-NMBDYPFZ.cjs → chunk-SPASYIUH.cjs} +268 -25
  33. package/dist/code.cjs +7 -7
  34. package/dist/code.d.cts +1 -1
  35. package/dist/code.d.ts +1 -1
  36. package/dist/code.js +2 -2
  37. package/dist/commerce.d.cts +1 -1
  38. package/dist/commerce.d.ts +1 -1
  39. package/dist/communications.cjs +5 -5
  40. package/dist/communications.d.cts +1 -1
  41. package/dist/communications.d.ts +1 -1
  42. package/dist/communications.js +2 -2
  43. package/dist/computer.cjs +4 -4
  44. package/dist/computer.d.cts +1 -1
  45. package/dist/computer.d.ts +1 -1
  46. package/dist/computer.js +2 -2
  47. package/dist/content.cjs +5 -5
  48. package/dist/content.d.cts +1 -1
  49. package/dist/content.d.ts +1 -1
  50. package/dist/content.js +2 -2
  51. package/dist/crm.cjs +3 -3
  52. package/dist/crm.d.cts +1 -1
  53. package/dist/crm.d.ts +1 -1
  54. package/dist/crm.js +2 -2
  55. package/dist/data.d.cts +1 -1
  56. package/dist/data.d.ts +1 -1
  57. package/dist/education.cjs +5 -5
  58. package/dist/education.d.cts +1 -1
  59. package/dist/education.d.ts +1 -1
  60. package/dist/education.js +2 -2
  61. package/dist/files.cjs +21 -21
  62. package/dist/files.d.cts +1 -1
  63. package/dist/files.d.ts +1 -1
  64. package/dist/files.js +2 -2
  65. package/dist/human-resources.d.cts +1 -1
  66. package/dist/human-resources.d.ts +1 -1
  67. package/dist/{index-D_ZjxGwP.d.cts → index-Gj30ybjE.d.cts} +50 -4
  68. package/dist/{index-D_ZjxGwP.d.ts → index-Gj30ybjE.d.ts} +50 -4
  69. package/dist/index.cjs +183 -288
  70. package/dist/index.d.cts +138 -189
  71. package/dist/index.d.ts +138 -189
  72. package/dist/index.js +76 -206
  73. package/dist/integrations.cjs +4 -4
  74. package/dist/integrations.d.cts +1 -1
  75. package/dist/integrations.d.ts +1 -1
  76. package/dist/integrations.js +2 -2
  77. package/dist/intelligence.cjs +10 -8
  78. package/dist/intelligence.d.cts +13 -13
  79. package/dist/intelligence.d.ts +13 -13
  80. package/dist/intelligence.js +5 -3
  81. package/dist/{keys.generated-CK_C5UXG.d.cts → keys.generated-DZUiM-uA.d.cts} +5 -3
  82. package/dist/{keys.generated-CK_C5UXG.d.ts → keys.generated-DZUiM-uA.d.ts} +5 -3
  83. package/dist/knowledge.cjs +43 -43
  84. package/dist/knowledge.d.cts +13 -13
  85. package/dist/knowledge.d.ts +13 -13
  86. package/dist/knowledge.js +2 -2
  87. package/dist/legal.cjs +7 -7
  88. package/dist/legal.d.cts +1 -1
  89. package/dist/legal.d.ts +1 -1
  90. package/dist/legal.js +2 -2
  91. package/dist/marketing.cjs +77 -77
  92. package/dist/marketing.d.cts +27 -27
  93. package/dist/marketing.d.ts +27 -27
  94. package/dist/marketing.js +2 -2
  95. package/dist/masterwork.cjs +33 -33
  96. package/dist/masterwork.d.cts +1 -1
  97. package/dist/masterwork.d.ts +1 -1
  98. package/dist/masterwork.js +2 -2
  99. package/dist/media.cjs +12 -12
  100. package/dist/media.d.cts +1 -1
  101. package/dist/media.d.ts +1 -1
  102. package/dist/media.js +2 -2
  103. package/dist/net.cjs +19 -20
  104. package/dist/net.d.cts +42 -42
  105. package/dist/net.d.ts +42 -42
  106. package/dist/net.js +1 -2
  107. package/dist/platform.cjs +4 -4
  108. package/dist/platform.d.cts +1 -1
  109. package/dist/platform.d.ts +1 -1
  110. package/dist/platform.js +2 -2
  111. package/dist/publish.cjs +8 -8
  112. package/dist/publish.d.cts +1 -1
  113. package/dist/publish.d.ts +1 -1
  114. package/dist/publish.js +2 -2
  115. package/dist/schemas.d.cts +78 -15
  116. package/dist/schemas.d.ts +78 -15
  117. package/dist/stream.cjs +11 -11
  118. package/dist/stream.d.cts +1 -1
  119. package/dist/stream.d.ts +1 -1
  120. package/dist/stream.js +2 -2
  121. package/dist/types.cjs +2 -0
  122. package/dist/types.d.cts +49823 -0
  123. package/dist/types.d.ts +49823 -0
  124. package/dist/types.js +1 -0
  125. package/dist/web.cjs +27 -27
  126. package/dist/web.d.cts +17 -17
  127. package/dist/web.d.ts +17 -17
  128. package/dist/web.js +2 -2
  129. package/dist/workflows.cjs +14 -14
  130. package/dist/workflows.d.cts +23 -26
  131. package/dist/workflows.d.ts +23 -26
  132. package/dist/workflows.js +2 -2
  133. package/package.json +12 -2
  134. package/dist/chunk-FNIYADWI.cjs +0 -59
  135. package/dist/chunk-YTEOFGFC.js +0 -57
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
- var chunkNMBDYPFZ_cjs = require('./chunk-NMBDYPFZ.cjs');
4
- require('./chunk-2SXAAKGV.cjs');
3
+ var chunkSPASYIUH_cjs = require('./chunk-SPASYIUH.cjs');
4
+ require('./chunk-PKYPPATQ.cjs');
5
5
 
6
6
  // src/generated/masterwork.ts
7
7
  var $createInterviewSession = { m: "POST", p: "/vision-interview/sessions", d: "aidream", a: "user", o: "required", n: "masterwork.create_interview_session" };
@@ -18,31 +18,31 @@ function observeInterviewTurn(api, args, options) {
18
18
  }
19
19
  var $startInterviewSession = { m: "POST", p: "/vision-interview/sessions/{session_id}/start", d: "aidream", a: "guest", o: "required", s: "ndjson", n: "masterwork.start_interview_session" };
20
20
  function startInterviewSession(api, args, options) {
21
- return chunkNMBDYPFZ_cjs.openStream(api, $startInterviewSession, args, options);
21
+ return chunkSPASYIUH_cjs.openStream(api, $startInterviewSession, args, options);
22
22
  }
23
23
  var $finishInterviewSession = { m: "POST", p: "/vision-interview/sessions/{session_id}/finish", d: "aidream", a: "guest", o: "required", s: "ndjson", n: "masterwork.finish_interview_session" };
24
24
  function finishInterviewSession(api, args, options) {
25
- return chunkNMBDYPFZ_cjs.openStream(api, $finishInterviewSession, args, options);
25
+ return chunkSPASYIUH_cjs.openStream(api, $finishInterviewSession, args, options);
26
26
  }
27
27
  var $buildMasterworkEndpoint = { m: "POST", p: "/masterworks/build", d: "aidream", a: "guest", o: "required", s: "ndjson", n: "masterwork.build_masterwork_endpoint" };
28
28
  function buildMasterworkEndpoint(api, args, options) {
29
- return chunkNMBDYPFZ_cjs.openStream(api, $buildMasterworkEndpoint, args, options);
29
+ return chunkSPASYIUH_cjs.openStream(api, $buildMasterworkEndpoint, args, options);
30
30
  }
31
31
  var $ingestRulebookSource = { m: "POST", p: "/masterworks/ingest", d: "aidream", a: "guest", o: "required", s: "ndjson", n: "masterwork.ingest_rulebook_source" };
32
32
  function ingestRulebookSource(api, args, options) {
33
- return chunkNMBDYPFZ_cjs.openStream(api, $ingestRulebookSource, args, options);
33
+ return chunkSPASYIUH_cjs.openStream(api, $ingestRulebookSource, args, options);
34
34
  }
35
35
  var $ingestRulebookTimeline = { m: "POST", p: "/masterworks/ingest-timeline", d: "aidream", a: "guest", o: "required", s: "ndjson", n: "masterwork.ingest_rulebook_timeline" };
36
36
  function ingestRulebookTimeline(api, args, options) {
37
- return chunkNMBDYPFZ_cjs.openStream(api, $ingestRulebookTimeline, args, options);
37
+ return chunkSPASYIUH_cjs.openStream(api, $ingestRulebookTimeline, args, options);
38
38
  }
39
39
  var $ingestRulebookMarkup = { m: "POST", p: "/masterworks/ingest-markup", d: "aidream", a: "guest", o: "required", s: "ndjson", n: "masterwork.ingest_rulebook_markup" };
40
40
  function ingestRulebookMarkup(api, args, options) {
41
- return chunkNMBDYPFZ_cjs.openStream(api, $ingestRulebookMarkup, args, options);
41
+ return chunkSPASYIUH_cjs.openStream(api, $ingestRulebookMarkup, args, options);
42
42
  }
43
43
  var $ingestRulebookDripAnswers = { m: "POST", p: "/masterworks/ingest-drip", d: "aidream", a: "guest", o: "required", s: "ndjson", n: "masterwork.ingest_rulebook_drip_answers" };
44
44
  function ingestRulebookDripAnswers(api, args, options) {
45
- return chunkNMBDYPFZ_cjs.openStream(api, $ingestRulebookDripAnswers, args, options);
45
+ return chunkSPASYIUH_cjs.openStream(api, $ingestRulebookDripAnswers, args, options);
46
46
  }
47
47
  var $sendTodaysDrip = { m: "POST", p: "/masterworks/drip/send-now", d: "aidream", a: "guest", o: "required", n: "masterwork.send_todays_drip" };
48
48
  function sendTodaysDrip(api, args, options) {
@@ -50,7 +50,7 @@ function sendTodaysDrip(api, args, options) {
50
50
  }
51
51
  var $ingestRulebookPredictions = { m: "POST", p: "/masterworks/ingest-predictions", d: "aidream", a: "guest", o: "required", s: "ndjson", n: "masterwork.ingest_rulebook_predictions" };
52
52
  function ingestRulebookPredictions(api, args, options) {
53
- return chunkNMBDYPFZ_cjs.openStream(api, $ingestRulebookPredictions, args, options);
53
+ return chunkSPASYIUH_cjs.openStream(api, $ingestRulebookPredictions, args, options);
54
54
  }
55
55
  var $readPredictionLedger = { m: "GET", p: "/masterworks/{rulebook_id}/predictions", d: "aidream", a: "guest", o: "required", n: "masterwork.read_prediction_ledger" };
56
56
  function readPredictionLedger(api, args, options) {
@@ -58,23 +58,23 @@ function readPredictionLedger(api, args, options) {
58
58
  }
59
59
  var $triageRulebookDrafts = { m: "POST", p: "/masterworks/triage", d: "aidream", a: "guest", o: "required", s: "ndjson", n: "masterwork.triage_rulebook_drafts" };
60
60
  function triageRulebookDrafts(api, args, options) {
61
- return chunkNMBDYPFZ_cjs.openStream(api, $triageRulebookDrafts, args, options);
61
+ return chunkSPASYIUH_cjs.openStream(api, $triageRulebookDrafts, args, options);
62
62
  }
63
63
  var $ingestRulebookFile = { m: "POST", p: "/masterworks/ingest-file", d: "aidream", a: "guest", o: "required", s: "ndjson", n: "masterwork.ingest_rulebook_file" };
64
64
  function ingestRulebookFile(api, args, options) {
65
- return chunkNMBDYPFZ_cjs.openStream(api, $ingestRulebookFile, args, options);
65
+ return chunkSPASYIUH_cjs.openStream(api, $ingestRulebookFile, args, options);
66
66
  }
67
67
  var $ingestRulebookUnfolding = { m: "POST", p: "/masterworks/ingest-unfolding", d: "aidream", a: "guest", o: "required", s: "ndjson", n: "masterwork.ingest_rulebook_unfolding" };
68
68
  function ingestRulebookUnfolding(api, args, options) {
69
- return chunkNMBDYPFZ_cjs.openStream(api, $ingestRulebookUnfolding, args, options);
69
+ return chunkSPASYIUH_cjs.openStream(api, $ingestRulebookUnfolding, args, options);
70
70
  }
71
71
  var $ingestRulebookCorpus = { m: "POST", p: "/masterworks/ingest-corpus", d: "aidream", a: "guest", o: "required", s: "ndjson", n: "masterwork.ingest_rulebook_corpus" };
72
72
  function ingestRulebookCorpus(api, args, options) {
73
- return chunkNMBDYPFZ_cjs.openStream(api, $ingestRulebookCorpus, args, options);
73
+ return chunkSPASYIUH_cjs.openStream(api, $ingestRulebookCorpus, args, options);
74
74
  }
75
75
  var $ingestRulebookDump = { m: "POST", p: "/masterworks/ingest-dump", d: "aidream", a: "guest", o: "required", s: "ndjson", n: "masterwork.ingest_rulebook_dump" };
76
76
  function ingestRulebookDump(api, args, options) {
77
- return chunkNMBDYPFZ_cjs.openStream(api, $ingestRulebookDump, args, options);
77
+ return chunkSPASYIUH_cjs.openStream(api, $ingestRulebookDump, args, options);
78
78
  }
79
79
  var $previewChatImport = { m: "POST", p: "/masterworks/chat-import/preview", d: "aidream", a: "guest", o: "required", n: "masterwork.preview_chat_import" };
80
80
  function previewChatImport(api, args, options) {
@@ -82,19 +82,19 @@ function previewChatImport(api, args, options) {
82
82
  }
83
83
  var $shortlistChatImport = { m: "POST", p: "/masterworks/chat-import/shortlist", d: "aidream", a: "guest", o: "required", s: "ndjson", n: "masterwork.shortlist_chat_import" };
84
84
  function shortlistChatImport(api, args, options) {
85
- return chunkNMBDYPFZ_cjs.openStream(api, $shortlistChatImport, args, options);
85
+ return chunkSPASYIUH_cjs.openStream(api, $shortlistChatImport, args, options);
86
86
  }
87
87
  var $dealRulebookTriads = { m: "POST", p: "/masterworks/triads", d: "aidream", a: "guest", o: "required", s: "ndjson", n: "masterwork.deal_rulebook_triads" };
88
88
  function dealRulebookTriads(api, args, options) {
89
- return chunkNMBDYPFZ_cjs.openStream(api, $dealRulebookTriads, args, options);
89
+ return chunkSPASYIUH_cjs.openStream(api, $dealRulebookTriads, args, options);
90
90
  }
91
91
  var $ingestRulebookTriad = { m: "POST", p: "/masterworks/ingest-triad", d: "aidream", a: "guest", o: "required", s: "ndjson", n: "masterwork.ingest_rulebook_triad" };
92
92
  function ingestRulebookTriad(api, args, options) {
93
- return chunkNMBDYPFZ_cjs.openStream(api, $ingestRulebookTriad, args, options);
93
+ return chunkSPASYIUH_cjs.openStream(api, $ingestRulebookTriad, args, options);
94
94
  }
95
95
  var $writeRulebookSortCases = { m: "POST", p: "/masterworks/sort/cases", d: "aidream", a: "guest", o: "required", s: "ndjson", n: "masterwork.write_rulebook_sort_cases" };
96
96
  function writeRulebookSortCases(api, args, options) {
97
- return chunkNMBDYPFZ_cjs.openStream(api, $writeRulebookSortCases, args, options);
97
+ return chunkSPASYIUH_cjs.openStream(api, $writeRulebookSortCases, args, options);
98
98
  }
99
99
  var $findRulebookSortBoundary = { m: "POST", p: "/masterworks/sort/boundary", d: "aidream", a: "guest", o: "required", n: "masterwork.find_rulebook_sort_boundary" };
100
100
  function findRulebookSortBoundary(api, args, options) {
@@ -102,23 +102,23 @@ function findRulebookSortBoundary(api, args, options) {
102
102
  }
103
103
  var $ingestRulebookSortAnswer = { m: "POST", p: "/masterworks/ingest-sort", d: "aidream", a: "guest", o: "required", s: "ndjson", n: "masterwork.ingest_rulebook_sort_answer" };
104
104
  function ingestRulebookSortAnswer(api, args, options) {
105
- return chunkNMBDYPFZ_cjs.openStream(api, $ingestRulebookSortAnswer, args, options);
105
+ return chunkSPASYIUH_cjs.openStream(api, $ingestRulebookSortAnswer, args, options);
106
106
  }
107
107
  var $masterworkBadExampleProbe = { m: "POST", p: "/masterworks/probe", d: "aidream", a: "guest", o: "required", s: "ndjson", n: "masterwork.masterwork_bad_example_probe" };
108
108
  function masterworkBadExampleProbe(api, args, options) {
109
- return chunkNMBDYPFZ_cjs.openStream(api, $masterworkBadExampleProbe, args, options);
109
+ return chunkSPASYIUH_cjs.openStream(api, $masterworkBadExampleProbe, args, options);
110
110
  }
111
111
  var $masterworkTeachBack = { m: "POST", p: "/masterworks/teach-back", d: "aidream", a: "guest", o: "required", s: "ndjson", n: "masterwork.masterwork_teach_back" };
112
112
  function masterworkTeachBack(api, args, options) {
113
- return chunkNMBDYPFZ_cjs.openStream(api, $masterworkTeachBack, args, options);
113
+ return chunkSPASYIUH_cjs.openStream(api, $masterworkTeachBack, args, options);
114
114
  }
115
115
  var $ingestRulebookChat = { m: "POST", p: "/masterworks/ingest-chat", d: "aidream", a: "guest", o: "required", s: "ndjson", n: "masterwork.ingest_rulebook_chat" };
116
116
  function ingestRulebookChat(api, args, options) {
117
- return chunkNMBDYPFZ_cjs.openStream(api, $ingestRulebookChat, args, options);
117
+ return chunkSPASYIUH_cjs.openStream(api, $ingestRulebookChat, args, options);
118
118
  }
119
119
  var $ingestRulebookConversations = { m: "POST", p: "/masterworks/ingest-conversations", d: "aidream", a: "guest", o: "required", s: "ndjson", n: "masterwork.ingest_rulebook_conversations" };
120
120
  function ingestRulebookConversations(api, args, options) {
121
- return chunkNMBDYPFZ_cjs.openStream(api, $ingestRulebookConversations, args, options);
121
+ return chunkSPASYIUH_cjs.openStream(api, $ingestRulebookConversations, args, options);
122
122
  }
123
123
  var $previewMeetingTranscripts = { m: "POST", p: "/masterworks/meeting/preview", d: "aidream", a: "guest", o: "required", n: "masterwork.preview_meeting_transcripts" };
124
124
  function previewMeetingTranscripts(api, args, options) {
@@ -126,7 +126,7 @@ function previewMeetingTranscripts(api, args, options) {
126
126
  }
127
127
  var $ingestRulebookMeeting = { m: "POST", p: "/masterworks/ingest-meeting", d: "aidream", a: "guest", o: "required", s: "ndjson", n: "masterwork.ingest_rulebook_meeting" };
128
128
  function ingestRulebookMeeting(api, args, options) {
129
- return chunkNMBDYPFZ_cjs.openStream(api, $ingestRulebookMeeting, args, options);
129
+ return chunkSPASYIUH_cjs.openStream(api, $ingestRulebookMeeting, args, options);
130
130
  }
131
131
  var $inboxConnection = { m: "GET", p: "/masterworks/inbox/connection", d: "aidream", a: "guest", o: "required", n: "masterwork.inbox_connection" };
132
132
  function inboxConnection(api, args, options) {
@@ -138,23 +138,23 @@ function previewInboxThreads(api, args, options) {
138
138
  }
139
139
  var $ingestRulebookInbox = { m: "POST", p: "/masterworks/ingest-inbox", d: "aidream", a: "guest", o: "required", s: "ndjson", n: "masterwork.ingest_rulebook_inbox" };
140
140
  function ingestRulebookInbox(api, args, options) {
141
- return chunkNMBDYPFZ_cjs.openStream(api, $ingestRulebookInbox, args, options);
141
+ return chunkSPASYIUH_cjs.openStream(api, $ingestRulebookInbox, args, options);
142
142
  }
143
143
  var $auditionMasterworkEndpoint = { m: "POST", p: "/masterworks/audition", d: "aidream", a: "guest", o: "required", s: "ndjson", n: "masterwork.audition_masterwork_endpoint" };
144
144
  function auditionMasterworkEndpoint(api, args, options) {
145
- return chunkNMBDYPFZ_cjs.openStream(api, $auditionMasterworkEndpoint, args, options);
145
+ return chunkSPASYIUH_cjs.openStream(api, $auditionMasterworkEndpoint, args, options);
146
146
  }
147
147
  var $auditionOutcomeEndpoint = { m: "POST", p: "/masterworks/audition-outcome", d: "aidream", a: "guest", o: "required", s: "ndjson", n: "masterwork.audition_outcome_endpoint" };
148
148
  function auditionOutcomeEndpoint(api, args, options) {
149
- return chunkNMBDYPFZ_cjs.openStream(api, $auditionOutcomeEndpoint, args, options);
149
+ return chunkSPASYIUH_cjs.openStream(api, $auditionOutcomeEndpoint, args, options);
150
150
  }
151
151
  var $auditionPairwiseEndpoint = { m: "POST", p: "/masterworks/audition-pairwise", d: "aidream", a: "guest", o: "required", s: "ndjson", n: "masterwork.audition_pairwise_endpoint" };
152
152
  function auditionPairwiseEndpoint(api, args, options) {
153
- return chunkNMBDYPFZ_cjs.openStream(api, $auditionPairwiseEndpoint, args, options);
153
+ return chunkSPASYIUH_cjs.openStream(api, $auditionPairwiseEndpoint, args, options);
154
154
  }
155
155
  var $cleanExpertCorpusEndpoint = { m: "POST", p: "/masterworks/clean-corpus", d: "aidream", a: "guest", o: "required", s: "ndjson", n: "masterwork.clean_expert_corpus_endpoint" };
156
156
  function cleanExpertCorpusEndpoint(api, args, options) {
157
- return chunkNMBDYPFZ_cjs.openStream(api, $cleanExpertCorpusEndpoint, args, options);
157
+ return chunkSPASYIUH_cjs.openStream(api, $cleanExpertCorpusEndpoint, args, options);
158
158
  }
159
159
  var $readExpertCorpus = { m: "GET", p: "/masterworks/{rulebook_id}/corpus", d: "aidream", a: "guest", o: "optional", n: "masterwork.read_expert_corpus" };
160
160
  function readExpertCorpus(api, args, options) {
@@ -170,7 +170,7 @@ function readRunEstimate(api, args, options) {
170
170
  }
171
171
  var $startBenchRun = { m: "POST", p: "/masterworks/{rulebook_id}/bench/runs", d: "aidream", a: "guest", o: "required", s: "ndjson", n: "masterwork.start_bench_run" };
172
172
  function startBenchRun(api, args, options) {
173
- return chunkNMBDYPFZ_cjs.openStream(api, $startBenchRun, args, options);
173
+ return chunkSPASYIUH_cjs.openStream(api, $startBenchRun, args, options);
174
174
  }
175
175
  var $createSealedCaseEndpoint = { m: "POST", p: "/masterworks/sealed-cases", d: "aidream", a: "guest", o: "required", n: "masterwork.create_sealed_case_endpoint" };
176
176
  function createSealedCaseEndpoint(api, args, options) {
@@ -182,7 +182,7 @@ function listSealedCasesEndpoint(api, args, options) {
182
182
  }
183
183
  var $checkupMasterworkEndpoint = { m: "POST", p: "/masterworks/checkup", d: "aidream", a: "guest", o: "required", s: "ndjson", n: "masterwork.checkup_masterwork_endpoint" };
184
184
  function checkupMasterworkEndpoint(api, args, options) {
185
- return chunkNMBDYPFZ_cjs.openStream(api, $checkupMasterworkEndpoint, args, options);
185
+ return chunkSPASYIUH_cjs.openStream(api, $checkupMasterworkEndpoint, args, options);
186
186
  }
187
187
  var $reconcileCapturePlanRemindersEndpoint = { m: "POST", p: "/masterworks/capture-plan/reminders", d: "aidream", a: "guest", o: "required", n: "masterwork.reconcile_capture_plan_reminders_endpoint" };
188
188
  function reconcileCapturePlanRemindersEndpoint(api, args, options) {
@@ -202,7 +202,7 @@ function cancelMasterworkRun(api, args, options) {
202
202
  }
203
203
  var $rejoinMasterworkRun = { m: "POST", p: "/masterworks/runs/{run_id}/rejoin", d: "aidream", a: "guest", o: "required", s: "ndjson", n: "masterwork.rejoin_masterwork_run" };
204
204
  function rejoinMasterworkRun(api, args, options) {
205
- return chunkNMBDYPFZ_cjs.openStream(api, $rejoinMasterworkRun, args, options);
205
+ return chunkSPASYIUH_cjs.openStream(api, $rejoinMasterworkRun, args, options);
206
206
  }
207
207
  var TABLE = {
208
208
  "POST /vision-interview/sessions": $createInterviewSession,
@@ -1,4 +1,4 @@
1
- import { A as Api, C as CallOptions, a as ApiStream, N as NdjsonEvent } from './index-D_ZjxGwP.cjs';
1
+ import { A as Api, C as CallOptions, a as ApiStream, N as NdjsonEvent } from './index-Gj30ybjE.cjs';
2
2
  import { JsonValue } from './schemas.cjs';
3
3
  import '@ai-matrx/auth/credentials';
4
4
 
@@ -1,4 +1,4 @@
1
- import { A as Api, C as CallOptions, a as ApiStream, N as NdjsonEvent } from './index-D_ZjxGwP.js';
1
+ import { A as Api, C as CallOptions, a as ApiStream, N as NdjsonEvent } from './index-Gj30ybjE.js';
2
2
  import { JsonValue } from './schemas.js';
3
3
  import '@ai-matrx/auth/credentials';
4
4
 
@@ -1,5 +1,5 @@
1
- import { openStream } from './chunk-5BBHAAIG.js';
2
- import './chunk-KIEAFMKB.js';
1
+ import { openStream } from './chunk-FLANGLCG.js';
2
+ import './chunk-PIPE5OML.js';
3
3
 
4
4
  // src/generated/masterwork.ts
5
5
  var $createInterviewSession = { m: "POST", p: "/vision-interview/sessions", d: "aidream", a: "user", o: "required", n: "masterwork.create_interview_session" };
package/dist/media.cjs CHANGED
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
- var chunkNMBDYPFZ_cjs = require('./chunk-NMBDYPFZ.cjs');
4
- require('./chunk-2SXAAKGV.cjs');
3
+ var chunkSPASYIUH_cjs = require('./chunk-SPASYIUH.cjs');
4
+ require('./chunk-PKYPPATQ.cjs');
5
5
 
6
6
  // src/generated/media.ts
7
7
  var $uploadVisionMaster = { m: "POST", p: "/media/upload", d: "aidream", a: "guest", o: "required", n: "media.upload_vision_master" };
@@ -30,7 +30,7 @@ function getLibrary(api, args, options) {
30
30
  }
31
31
  var $syncLibrary = { m: "POST", p: "/media/libraries/{library_id}/sync", d: "aidream", a: "guest", o: "required", s: "ndjson", n: "media.sync_library" };
32
32
  function syncLibrary(api, args, options) {
33
- return chunkNMBDYPFZ_cjs.openStream(api, $syncLibrary, args, options);
33
+ return chunkSPASYIUH_cjs.openStream(api, $syncLibrary, args, options);
34
34
  }
35
35
  var $listLibraryVideos = { m: "GET", p: "/media/libraries/{library_id}/videos", d: "aidream", a: "guest", o: "optional", n: "media.list_library_videos" };
36
36
  function listLibraryVideos(api, args, options) {
@@ -114,11 +114,11 @@ function getPresets(api, args, options) {
114
114
  }
115
115
  var $processImage = { m: "POST", p: "/images/studio/process", d: "aidream", a: "guest", o: "required", s: "ndjson", n: "media.process_image" };
116
116
  function processImage(api, args, options) {
117
- return chunkNMBDYPFZ_cjs.openStream(api, $processImage, args, options);
117
+ return chunkSPASYIUH_cjs.openStream(api, $processImage, args, options);
118
118
  }
119
119
  var $commitJob = { m: "POST", p: "/images/studio/commit", d: "aidream", a: "guest", o: "required", s: "ndjson", n: "media.commit_job" };
120
120
  function commitJob(api, args, options) {
121
- return chunkNMBDYPFZ_cjs.openStream(api, $commitJob, args, options);
121
+ return chunkSPASYIUH_cjs.openStream(api, $commitJob, args, options);
122
122
  }
123
123
  var $discardJob = { m: "POST", p: "/images/studio/discard", d: "aidream", a: "guest", o: "required", n: "media.discard_job" };
124
124
  function discardJob(api, args, options) {
@@ -130,23 +130,23 @@ function listImageOps(api, args, options) {
130
130
  }
131
131
  var $detectDocument = { m: "POST", p: "/images/detect-document", d: "aidream", a: "guest", o: "required", s: "ndjson", n: "media.detect_document" };
132
132
  function detectDocument(api, args, options) {
133
- return chunkNMBDYPFZ_cjs.openStream(api, $detectDocument, args, options);
133
+ return chunkSPASYIUH_cjs.openStream(api, $detectDocument, args, options);
134
134
  }
135
135
  var $editImage = { m: "POST", p: "/images/edit", d: "aidream", a: "guest", o: "required", s: "ndjson", n: "media.edit_image" };
136
136
  function editImage(api, args, options) {
137
- return chunkNMBDYPFZ_cjs.openStream(api, $editImage, args, options);
137
+ return chunkSPASYIUH_cjs.openStream(api, $editImage, args, options);
138
138
  }
139
139
  var $bgRemove = { m: "POST", p: "/images/bg-remove", d: "aidream", a: "guest", o: "required", s: "ndjson", n: "media.bg_remove" };
140
140
  function bgRemove(api, args, options) {
141
- return chunkNMBDYPFZ_cjs.openStream(api, $bgRemove, args, options);
141
+ return chunkSPASYIUH_cjs.openStream(api, $bgRemove, args, options);
142
142
  }
143
143
  var $inpaint = { m: "POST", p: "/images/inpaint", d: "aidream", a: "guest", o: "required", s: "ndjson", n: "media.inpaint" };
144
144
  function inpaint(api, args, options) {
145
- return chunkNMBDYPFZ_cjs.openStream(api, $inpaint, args, options);
145
+ return chunkSPASYIUH_cjs.openStream(api, $inpaint, args, options);
146
146
  }
147
147
  var $generateImage = { m: "POST", p: "/images/generate", d: "aidream", a: "guest", o: "required", s: "ndjson", n: "media.generate_image" };
148
148
  function generateImage(api, args, options) {
149
- return chunkNMBDYPFZ_cjs.openStream(api, $generateImage, args, options);
149
+ return chunkSPASYIUH_cjs.openStream(api, $generateImage, args, options);
150
150
  }
151
151
  var $captureScreenshot = { m: "POST", p: "/screenshot", d: "matrx-local", a: "loopback_token", o: "exempt", n: "media.capture_screenshot" };
152
152
  function captureScreenshot(api, args, options) {
@@ -286,7 +286,7 @@ function repairMediaRuntime(api, args, options) {
286
286
  }
287
287
  var $streamMediaRuntime = { m: "GET", p: "/image-gen/runtime/stream", d: "matrx-local", a: "loopback_token", o: "exempt", s: "sse", n: "media.stream_media_runtime" };
288
288
  function streamMediaRuntime(api, args, options) {
289
- return chunkNMBDYPFZ_cjs.openStream(api, $streamMediaRuntime, args, options);
289
+ return chunkSPASYIUH_cjs.openStream(api, $streamMediaRuntime, args, options);
290
290
  }
291
291
  var $installImageGen = { m: "POST", p: "/image-gen/install", d: "matrx-local", a: "loopback_token", o: "exempt", n: "media.install_image_gen" };
292
292
  function installImageGen(api, args, options) {
@@ -298,7 +298,7 @@ function getInstallStatus(api, args, options) {
298
298
  }
299
299
  var $streamInstallProgress = { m: "GET", p: "/image-gen/install/stream", d: "matrx-local", a: "loopback_token", o: "exempt", s: "sse", n: "media.stream_install_progress" };
300
300
  function streamInstallProgress(api, args, options) {
301
- return chunkNMBDYPFZ_cjs.openStream(api, $streamInstallProgress, args, options);
301
+ return chunkSPASYIUH_cjs.openStream(api, $streamInstallProgress, args, options);
302
302
  }
303
303
  var $videoGenStatus = { m: "GET", p: "/video-gen/status", d: "matrx-local", a: "loopback_token", o: "exempt", n: "media.video_gen_status" };
304
304
  function videoGenStatus(api, args, options) {
package/dist/media.d.cts CHANGED
@@ -1,4 +1,4 @@
1
- import { A as Api, C as CallOptions, a as ApiStream, N as NdjsonEvent, S as SseEvent } from './index-D_ZjxGwP.cjs';
1
+ import { A as Api, C as CallOptions, a as ApiStream, N as NdjsonEvent, S as SseEvent } from './index-Gj30ybjE.cjs';
2
2
  import { JsonValue } from './schemas.cjs';
3
3
  import '@ai-matrx/auth/credentials';
4
4
 
package/dist/media.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { A as Api, C as CallOptions, a as ApiStream, N as NdjsonEvent, S as SseEvent } from './index-D_ZjxGwP.js';
1
+ import { A as Api, C as CallOptions, a as ApiStream, N as NdjsonEvent, S as SseEvent } from './index-Gj30ybjE.js';
2
2
  import { JsonValue } from './schemas.js';
3
3
  import '@ai-matrx/auth/credentials';
4
4
 
package/dist/media.js CHANGED
@@ -1,5 +1,5 @@
1
- import { openStream } from './chunk-5BBHAAIG.js';
2
- import './chunk-KIEAFMKB.js';
1
+ import { openStream } from './chunk-FLANGLCG.js';
2
+ import './chunk-PIPE5OML.js';
3
3
 
4
4
  // src/generated/media.ts
5
5
  var $uploadVisionMaster = { m: "POST", p: "/media/upload", d: "aidream", a: "guest", o: "required", n: "media.upload_vision_master" };
package/dist/net.cjs CHANGED
@@ -1,67 +1,66 @@
1
1
  'use strict';
2
2
 
3
- var chunkFNIYADWI_cjs = require('./chunk-FNIYADWI.cjs');
4
- var chunk2SXAAKGV_cjs = require('./chunk-2SXAAKGV.cjs');
3
+ var chunkPKYPPATQ_cjs = require('./chunk-PKYPPATQ.cjs');
5
4
 
6
5
 
7
6
 
8
- Object.defineProperty(exports, "monitorStream", {
9
- enumerable: true,
10
- get: function () { return chunkFNIYADWI_cjs.monitorStream; }
11
- });
12
7
  Object.defineProperty(exports, "AbortedError", {
13
8
  enumerable: true,
14
- get: function () { return chunk2SXAAKGV_cjs.AbortedError; }
9
+ get: function () { return chunkPKYPPATQ_cjs.AbortedError; }
15
10
  });
16
11
  Object.defineProperty(exports, "ConnectTimeoutError", {
17
12
  enumerable: true,
18
- get: function () { return chunk2SXAAKGV_cjs.ConnectTimeoutError; }
13
+ get: function () { return chunkPKYPPATQ_cjs.ConnectTimeoutError; }
19
14
  });
20
15
  Object.defineProperty(exports, "HeartbeatTimeoutError", {
21
16
  enumerable: true,
22
- get: function () { return chunk2SXAAKGV_cjs.HeartbeatTimeoutError; }
17
+ get: function () { return chunkPKYPPATQ_cjs.HeartbeatTimeoutError; }
23
18
  });
24
19
  Object.defineProperty(exports, "HttpError", {
25
20
  enumerable: true,
26
- get: function () { return chunk2SXAAKGV_cjs.HttpError; }
21
+ get: function () { return chunkPKYPPATQ_cjs.HttpError; }
27
22
  });
28
23
  Object.defineProperty(exports, "NetError", {
29
24
  enumerable: true,
30
- get: function () { return chunk2SXAAKGV_cjs.NetError; }
25
+ get: function () { return chunkPKYPPATQ_cjs.NetError; }
31
26
  });
32
27
  Object.defineProperty(exports, "NetworkError", {
33
28
  enumerable: true,
34
- get: function () { return chunk2SXAAKGV_cjs.NetworkError; }
29
+ get: function () { return chunkPKYPPATQ_cjs.NetworkError; }
35
30
  });
36
31
  Object.defineProperty(exports, "OfflineError", {
37
32
  enumerable: true,
38
- get: function () { return chunk2SXAAKGV_cjs.OfflineError; }
33
+ get: function () { return chunkPKYPPATQ_cjs.OfflineError; }
39
34
  });
40
35
  Object.defineProperty(exports, "TotalTimeoutError", {
41
36
  enumerable: true,
42
- get: function () { return chunk2SXAAKGV_cjs.TotalTimeoutError; }
37
+ get: function () { return chunkPKYPPATQ_cjs.TotalTimeoutError; }
43
38
  });
44
39
  Object.defineProperty(exports, "extractErrorMessage", {
45
40
  enumerable: true,
46
- get: function () { return chunk2SXAAKGV_cjs.extractErrorMessage; }
41
+ get: function () { return chunkPKYPPATQ_cjs.extractErrorMessage; }
47
42
  });
48
43
  Object.defineProperty(exports, "isNetError", {
49
44
  enumerable: true,
50
- get: function () { return chunk2SXAAKGV_cjs.isNetError; }
45
+ get: function () { return chunkPKYPPATQ_cjs.isNetError; }
51
46
  });
52
47
  Object.defineProperty(exports, "isTransportFailure", {
53
48
  enumerable: true,
54
- get: function () { return chunk2SXAAKGV_cjs.isTransportFailure; }
49
+ get: function () { return chunkPKYPPATQ_cjs.isTransportFailure; }
50
+ });
51
+ Object.defineProperty(exports, "monitorStream", {
52
+ enumerable: true,
53
+ get: function () { return chunkPKYPPATQ_cjs.monitorStream; }
55
54
  });
56
55
  Object.defineProperty(exports, "resilientFetch", {
57
56
  enumerable: true,
58
- get: function () { return chunk2SXAAKGV_cjs.resilientFetch; }
57
+ get: function () { return chunkPKYPPATQ_cjs.resilientFetch; }
59
58
  });
60
59
  Object.defineProperty(exports, "toNetError", {
61
60
  enumerable: true,
62
- get: function () { return chunk2SXAAKGV_cjs.toNetError; }
61
+ get: function () { return chunkPKYPPATQ_cjs.toNetError; }
63
62
  });
64
63
  Object.defineProperty(exports, "withRetry", {
65
64
  enumerable: true,
66
- get: function () { return chunk2SXAAKGV_cjs.withRetry; }
65
+ get: function () { return chunkPKYPPATQ_cjs.withRetry; }
67
66
  });
package/dist/net.d.cts CHANGED
@@ -1,3 +1,44 @@
1
+ /**
2
+ * resilientFetch — `fetch` with connect + total timeouts and composed abort.
3
+ *
4
+ * Every outbound HTTP call should go through this, not raw fetch. The
5
+ * two-stage timeout (connect + total) lets callers allow long-streaming
6
+ * responses without giving up the ability to fail fast when the server is
7
+ * simply unreachable.
8
+ *
9
+ * Ported verbatim from matrx-frontend `lib/net/resilient-fetch.ts`. `fetch`
10
+ * comes from the environment (Node 20+, browsers, React Native/Hermes) —
11
+ * there is deliberately no injected transport here.
12
+ */
13
+ interface ResilientFetchOptions {
14
+ /** Max ms from request start → response headers received. Default 15_000. */
15
+ connectTimeoutMs?: number;
16
+ /**
17
+ * Max ms from request start → fetch() promise resolves.
18
+ * For streaming endpoints the response arrives quickly and the stream body
19
+ * is read by the caller, so this bound only guards the handshake itself.
20
+ * `null` disables the ceiling. Default 120_000.
21
+ */
22
+ totalTimeoutMs?: number | null;
23
+ /** Caller-provided signal; composed with our internal timeout signals. */
24
+ signal?: AbortSignal;
25
+ /**
26
+ * If true, throw on non-2xx responses instead of returning them. Default true.
27
+ * Callers that need to read structured error bodies can set this to false.
28
+ */
29
+ throwOnHttpError?: boolean;
30
+ }
31
+ interface ResilientFetchResult {
32
+ response: Response;
33
+ /**
34
+ * Composed AbortController tied to the fetch. Callers reading the body
35
+ * (e.g. streaming) can call `.abort()` from this controller to cancel
36
+ * in-flight reads. Already aborted on connect/total timeout.
37
+ */
38
+ controller: AbortController;
39
+ }
40
+ declare function resilientFetch(url: string, init?: RequestInit, opts?: ResilientFetchOptions): Promise<ResilientFetchResult>;
41
+
1
42
  /**
2
43
  * Structured errors for the resilience layer.
3
44
  *
@@ -49,7 +90,7 @@ declare function isNetError(err: unknown): err is NetError;
49
90
  * 2026-09-07 (duplication census rows 9, 10, 21): this body had DRIFTED BEHIND
50
91
  * three host copies, which is the campaign's failure mode running in the
51
92
  * package's favour-direction. Each host had learned something the package
52
- * never did, so every non-frontend consumer of `@ai-matrx/data/net` was
93
+ * never did, so every non-frontend consumer of `@ai-matrx/api/net` was
53
94
  * flattening a server's own sentence into "An unexpected error occurred". All
54
95
  * three are folded in here, with a named regression test per shape:
55
96
  *
@@ -121,47 +162,6 @@ interface RetryOptions {
121
162
  }
122
163
  declare function withRetry<T>(fn: (attempt: number) => Promise<T>, opts?: RetryOptions): Promise<T>;
123
164
 
124
- /**
125
- * resilientFetch — `fetch` with connect + total timeouts and composed abort.
126
- *
127
- * Every outbound HTTP call should go through this, not raw fetch. The
128
- * two-stage timeout (connect + total) lets callers allow long-streaming
129
- * responses without giving up the ability to fail fast when the server is
130
- * simply unreachable.
131
- *
132
- * Ported verbatim from matrx-frontend `lib/net/resilient-fetch.ts`. `fetch`
133
- * comes from the environment (Node 20+, browsers, React Native/Hermes) —
134
- * there is deliberately no injected transport here.
135
- */
136
- interface ResilientFetchOptions {
137
- /** Max ms from request start → response headers received. Default 15_000. */
138
- connectTimeoutMs?: number;
139
- /**
140
- * Max ms from request start → fetch() promise resolves.
141
- * For streaming endpoints the response arrives quickly and the stream body
142
- * is read by the caller, so this bound only guards the handshake itself.
143
- * `null` disables the ceiling. Default 120_000.
144
- */
145
- totalTimeoutMs?: number | null;
146
- /** Caller-provided signal; composed with our internal timeout signals. */
147
- signal?: AbortSignal;
148
- /**
149
- * If true, throw on non-2xx responses instead of returning them. Default true.
150
- * Callers that need to read structured error bodies can set this to false.
151
- */
152
- throwOnHttpError?: boolean;
153
- }
154
- interface ResilientFetchResult {
155
- response: Response;
156
- /**
157
- * Composed AbortController tied to the fetch. Callers reading the body
158
- * (e.g. streaming) can call `.abort()` from this controller to cancel
159
- * in-flight reads. Already aborted on connect/total timeout.
160
- */
161
- controller: AbortController;
162
- }
163
- declare function resilientFetch(url: string, init?: RequestInit, opts?: ResilientFetchOptions): Promise<ResilientFetchResult>;
164
-
165
165
  /**
166
166
  * Stream liveness monitor.
167
167
  *
package/dist/net.d.ts CHANGED
@@ -1,3 +1,44 @@
1
+ /**
2
+ * resilientFetch — `fetch` with connect + total timeouts and composed abort.
3
+ *
4
+ * Every outbound HTTP call should go through this, not raw fetch. The
5
+ * two-stage timeout (connect + total) lets callers allow long-streaming
6
+ * responses without giving up the ability to fail fast when the server is
7
+ * simply unreachable.
8
+ *
9
+ * Ported verbatim from matrx-frontend `lib/net/resilient-fetch.ts`. `fetch`
10
+ * comes from the environment (Node 20+, browsers, React Native/Hermes) —
11
+ * there is deliberately no injected transport here.
12
+ */
13
+ interface ResilientFetchOptions {
14
+ /** Max ms from request start → response headers received. Default 15_000. */
15
+ connectTimeoutMs?: number;
16
+ /**
17
+ * Max ms from request start → fetch() promise resolves.
18
+ * For streaming endpoints the response arrives quickly and the stream body
19
+ * is read by the caller, so this bound only guards the handshake itself.
20
+ * `null` disables the ceiling. Default 120_000.
21
+ */
22
+ totalTimeoutMs?: number | null;
23
+ /** Caller-provided signal; composed with our internal timeout signals. */
24
+ signal?: AbortSignal;
25
+ /**
26
+ * If true, throw on non-2xx responses instead of returning them. Default true.
27
+ * Callers that need to read structured error bodies can set this to false.
28
+ */
29
+ throwOnHttpError?: boolean;
30
+ }
31
+ interface ResilientFetchResult {
32
+ response: Response;
33
+ /**
34
+ * Composed AbortController tied to the fetch. Callers reading the body
35
+ * (e.g. streaming) can call `.abort()` from this controller to cancel
36
+ * in-flight reads. Already aborted on connect/total timeout.
37
+ */
38
+ controller: AbortController;
39
+ }
40
+ declare function resilientFetch(url: string, init?: RequestInit, opts?: ResilientFetchOptions): Promise<ResilientFetchResult>;
41
+
1
42
  /**
2
43
  * Structured errors for the resilience layer.
3
44
  *
@@ -49,7 +90,7 @@ declare function isNetError(err: unknown): err is NetError;
49
90
  * 2026-09-07 (duplication census rows 9, 10, 21): this body had DRIFTED BEHIND
50
91
  * three host copies, which is the campaign's failure mode running in the
51
92
  * package's favour-direction. Each host had learned something the package
52
- * never did, so every non-frontend consumer of `@ai-matrx/data/net` was
93
+ * never did, so every non-frontend consumer of `@ai-matrx/api/net` was
53
94
  * flattening a server's own sentence into "An unexpected error occurred". All
54
95
  * three are folded in here, with a named regression test per shape:
55
96
  *
@@ -121,47 +162,6 @@ interface RetryOptions {
121
162
  }
122
163
  declare function withRetry<T>(fn: (attempt: number) => Promise<T>, opts?: RetryOptions): Promise<T>;
123
164
 
124
- /**
125
- * resilientFetch — `fetch` with connect + total timeouts and composed abort.
126
- *
127
- * Every outbound HTTP call should go through this, not raw fetch. The
128
- * two-stage timeout (connect + total) lets callers allow long-streaming
129
- * responses without giving up the ability to fail fast when the server is
130
- * simply unreachable.
131
- *
132
- * Ported verbatim from matrx-frontend `lib/net/resilient-fetch.ts`. `fetch`
133
- * comes from the environment (Node 20+, browsers, React Native/Hermes) —
134
- * there is deliberately no injected transport here.
135
- */
136
- interface ResilientFetchOptions {
137
- /** Max ms from request start → response headers received. Default 15_000. */
138
- connectTimeoutMs?: number;
139
- /**
140
- * Max ms from request start → fetch() promise resolves.
141
- * For streaming endpoints the response arrives quickly and the stream body
142
- * is read by the caller, so this bound only guards the handshake itself.
143
- * `null` disables the ceiling. Default 120_000.
144
- */
145
- totalTimeoutMs?: number | null;
146
- /** Caller-provided signal; composed with our internal timeout signals. */
147
- signal?: AbortSignal;
148
- /**
149
- * If true, throw on non-2xx responses instead of returning them. Default true.
150
- * Callers that need to read structured error bodies can set this to false.
151
- */
152
- throwOnHttpError?: boolean;
153
- }
154
- interface ResilientFetchResult {
155
- response: Response;
156
- /**
157
- * Composed AbortController tied to the fetch. Callers reading the body
158
- * (e.g. streaming) can call `.abort()` from this controller to cancel
159
- * in-flight reads. Already aborted on connect/total timeout.
160
- */
161
- controller: AbortController;
162
- }
163
- declare function resilientFetch(url: string, init?: RequestInit, opts?: ResilientFetchOptions): Promise<ResilientFetchResult>;
164
-
165
165
  /**
166
166
  * Stream liveness monitor.
167
167
  *
package/dist/net.js CHANGED
@@ -1,2 +1 @@
1
- export { monitorStream } from './chunk-YTEOFGFC.js';
2
- export { AbortedError, ConnectTimeoutError, HeartbeatTimeoutError, HttpError, NetError, NetworkError, OfflineError, TotalTimeoutError, extractErrorMessage, isNetError, isTransportFailure, resilientFetch, toNetError, withRetry } from './chunk-KIEAFMKB.js';
1
+ export { AbortedError, ConnectTimeoutError, HeartbeatTimeoutError, HttpError, NetError, NetworkError, OfflineError, TotalTimeoutError, extractErrorMessage, isNetError, isTransportFailure, monitorStream, resilientFetch, toNetError, withRetry } from './chunk-PIPE5OML.js';