@ai-matrx/api 0.1.9 → 0.1.11
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.
- package/CHANGELOG.md +11 -0
- package/README.md +1 -1
- package/dist/account.d.cts +1 -1
- package/dist/account.d.ts +1 -1
- package/dist/agents.cjs +12 -12
- package/dist/agents.d.cts +1 -1
- package/dist/agents.d.ts +1 -1
- package/dist/agents.js +2 -2
- package/dist/ai.cjs +3 -3
- package/dist/ai.d.cts +1 -1
- package/dist/ai.d.ts +1 -1
- package/dist/ai.js +2 -2
- package/dist/apps.cjs +6 -6
- package/dist/apps.d.cts +1 -1
- package/dist/apps.d.ts +1 -1
- package/dist/apps.js +2 -2
- package/dist/architecture.cjs +11 -11
- package/dist/architecture.d.cts +1 -1
- package/dist/architecture.d.ts +1 -1
- package/dist/architecture.js +2 -2
- package/dist/audio.cjs +5 -5
- package/dist/audio.d.cts +1 -1
- package/dist/audio.d.ts +1 -1
- package/dist/audio.js +2 -2
- package/dist/chat.cjs +12 -12
- package/dist/chat.d.cts +1 -1
- package/dist/chat.d.ts +1 -1
- package/dist/chat.js +2 -2
- package/dist/{chunk-PMGKZ4FT.cjs → chunk-2ZHIYXHV.cjs} +279 -34
- package/dist/{chunk-PIVTHTVR.js → chunk-6KHHHBG5.js} +270 -36
- package/dist/{chunk-KIEAFMKB.js → chunk-PIPE5OML.js} +100 -46
- package/dist/{chunk-2SXAAKGV.cjs → chunk-PKYPPATQ.cjs} +100 -45
- package/dist/code.cjs +7 -7
- package/dist/code.d.cts +1 -1
- package/dist/code.d.ts +1 -1
- package/dist/code.js +2 -2
- package/dist/commerce.d.cts +1 -1
- package/dist/commerce.d.ts +1 -1
- package/dist/communications.cjs +5 -5
- package/dist/communications.d.cts +1 -1
- package/dist/communications.d.ts +1 -1
- package/dist/communications.js +2 -2
- package/dist/computer.cjs +4 -4
- package/dist/computer.d.cts +1 -1
- package/dist/computer.d.ts +1 -1
- package/dist/computer.js +2 -2
- package/dist/content.cjs +5 -5
- package/dist/content.d.cts +1 -1
- package/dist/content.d.ts +1 -1
- package/dist/content.js +2 -2
- package/dist/crm.cjs +3 -3
- package/dist/crm.d.cts +1 -1
- package/dist/crm.d.ts +1 -1
- package/dist/crm.js +2 -2
- package/dist/data.d.cts +1 -1
- package/dist/data.d.ts +1 -1
- package/dist/education.cjs +5 -5
- package/dist/education.d.cts +1 -1
- package/dist/education.d.ts +1 -1
- package/dist/education.js +2 -2
- package/dist/files.cjs +21 -21
- package/dist/files.d.cts +1 -1
- package/dist/files.d.ts +1 -1
- package/dist/files.js +2 -2
- package/dist/human-resources.d.cts +1 -1
- package/dist/human-resources.d.ts +1 -1
- package/dist/{index-C3ZlP3BI.d.cts → index-Gj30ybjE.d.cts} +42 -3
- package/dist/{index-C3ZlP3BI.d.ts → index-Gj30ybjE.d.ts} +42 -3
- package/dist/index.cjs +188 -288
- package/dist/index.d.cts +129 -180
- package/dist/index.d.ts +129 -180
- package/dist/index.js +81 -206
- package/dist/integrations.cjs +4 -4
- package/dist/integrations.d.cts +1 -1
- package/dist/integrations.d.ts +1 -1
- package/dist/integrations.js +2 -2
- package/dist/intelligence.cjs +10 -8
- package/dist/intelligence.d.cts +13 -13
- package/dist/intelligence.d.ts +13 -13
- package/dist/intelligence.js +5 -3
- package/dist/{keys.generated-CK_C5UXG.d.cts → keys.generated-DZUiM-uA.d.cts} +5 -3
- package/dist/{keys.generated-CK_C5UXG.d.ts → keys.generated-DZUiM-uA.d.ts} +5 -3
- package/dist/knowledge.cjs +43 -43
- package/dist/knowledge.d.cts +13 -13
- package/dist/knowledge.d.ts +13 -13
- package/dist/knowledge.js +2 -2
- package/dist/legal.cjs +7 -7
- package/dist/legal.d.cts +1 -1
- package/dist/legal.d.ts +1 -1
- package/dist/legal.js +2 -2
- package/dist/marketing.cjs +77 -77
- package/dist/marketing.d.cts +27 -27
- package/dist/marketing.d.ts +27 -27
- package/dist/marketing.js +2 -2
- package/dist/masterwork.cjs +33 -33
- package/dist/masterwork.d.cts +1 -1
- package/dist/masterwork.d.ts +1 -1
- package/dist/masterwork.js +2 -2
- package/dist/media.cjs +12 -12
- package/dist/media.d.cts +1 -1
- package/dist/media.d.ts +1 -1
- package/dist/media.js +2 -2
- package/dist/net.cjs +19 -20
- package/dist/net.d.cts +41 -41
- package/dist/net.d.ts +41 -41
- package/dist/net.js +1 -2
- package/dist/platform.cjs +4 -4
- package/dist/platform.d.cts +1 -1
- package/dist/platform.d.ts +1 -1
- package/dist/platform.js +2 -2
- package/dist/publish.cjs +8 -8
- package/dist/publish.d.cts +1 -1
- package/dist/publish.d.ts +1 -1
- package/dist/publish.js +2 -2
- package/dist/schemas.d.cts +78 -15
- package/dist/schemas.d.ts +78 -15
- package/dist/stream.cjs +11 -11
- package/dist/stream.d.cts +1 -1
- package/dist/stream.d.ts +1 -1
- package/dist/stream.js +2 -2
- package/dist/types.cjs +2 -0
- package/dist/types.d.cts +72245 -0
- package/dist/types.d.ts +72245 -0
- package/dist/types.js +1 -0
- package/dist/web.cjs +27 -27
- package/dist/web.d.cts +17 -17
- package/dist/web.d.ts +17 -17
- package/dist/web.js +2 -2
- package/dist/workflows.cjs +14 -14
- package/dist/workflows.d.cts +23 -26
- package/dist/workflows.d.ts +23 -26
- package/dist/workflows.js +2 -2
- package/package.json +14 -4
- package/dist/chunk-FNIYADWI.cjs +0 -59
- package/dist/chunk-YTEOFGFC.js +0 -57
package/dist/masterwork.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('./chunk-
|
|
3
|
+
var chunk2ZHIYXHV_cjs = require('./chunk-2ZHIYXHV.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
|
|
21
|
+
return chunk2ZHIYXHV_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
|
|
25
|
+
return chunk2ZHIYXHV_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
|
|
29
|
+
return chunk2ZHIYXHV_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
|
|
33
|
+
return chunk2ZHIYXHV_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
|
|
37
|
+
return chunk2ZHIYXHV_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
|
|
41
|
+
return chunk2ZHIYXHV_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
|
|
45
|
+
return chunk2ZHIYXHV_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
|
|
53
|
+
return chunk2ZHIYXHV_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
|
|
61
|
+
return chunk2ZHIYXHV_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
|
|
65
|
+
return chunk2ZHIYXHV_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
|
|
69
|
+
return chunk2ZHIYXHV_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
|
|
73
|
+
return chunk2ZHIYXHV_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
|
|
77
|
+
return chunk2ZHIYXHV_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
|
|
85
|
+
return chunk2ZHIYXHV_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
|
|
89
|
+
return chunk2ZHIYXHV_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
|
|
93
|
+
return chunk2ZHIYXHV_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
|
|
97
|
+
return chunk2ZHIYXHV_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
|
|
105
|
+
return chunk2ZHIYXHV_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
|
|
109
|
+
return chunk2ZHIYXHV_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
|
|
113
|
+
return chunk2ZHIYXHV_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
|
|
117
|
+
return chunk2ZHIYXHV_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
|
|
121
|
+
return chunk2ZHIYXHV_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
|
|
129
|
+
return chunk2ZHIYXHV_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
|
|
141
|
+
return chunk2ZHIYXHV_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
|
|
145
|
+
return chunk2ZHIYXHV_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
|
|
149
|
+
return chunk2ZHIYXHV_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
|
|
153
|
+
return chunk2ZHIYXHV_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
|
|
157
|
+
return chunk2ZHIYXHV_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
|
|
173
|
+
return chunk2ZHIYXHV_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
|
|
185
|
+
return chunk2ZHIYXHV_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
|
|
205
|
+
return chunk2ZHIYXHV_cjs.openStream(api, $rejoinMasterworkRun, args, options);
|
|
206
206
|
}
|
|
207
207
|
var TABLE = {
|
|
208
208
|
"POST /vision-interview/sessions": $createInterviewSession,
|
package/dist/masterwork.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as Api, C as CallOptions, a as ApiStream, N as NdjsonEvent } from './index-
|
|
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
|
|
package/dist/masterwork.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as Api, C as CallOptions, a as ApiStream, N as NdjsonEvent } from './index-
|
|
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
|
|
package/dist/masterwork.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { openStream } from './chunk-
|
|
2
|
-
import './chunk-
|
|
1
|
+
import { openStream } from './chunk-6KHHHBG5.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
|
|
4
|
-
require('./chunk-
|
|
3
|
+
var chunk2ZHIYXHV_cjs = require('./chunk-2ZHIYXHV.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
|
|
33
|
+
return chunk2ZHIYXHV_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
|
|
117
|
+
return chunk2ZHIYXHV_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
|
|
121
|
+
return chunk2ZHIYXHV_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
|
|
133
|
+
return chunk2ZHIYXHV_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
|
|
137
|
+
return chunk2ZHIYXHV_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
|
|
141
|
+
return chunk2ZHIYXHV_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
|
|
145
|
+
return chunk2ZHIYXHV_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
|
|
149
|
+
return chunk2ZHIYXHV_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
|
|
289
|
+
return chunk2ZHIYXHV_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
|
|
301
|
+
return chunk2ZHIYXHV_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-
|
|
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-
|
|
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-
|
|
2
|
-
import './chunk-
|
|
1
|
+
import { openStream } from './chunk-6KHHHBG5.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
|
|
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
|
|
9
|
+
get: function () { return chunkPKYPPATQ_cjs.AbortedError; }
|
|
15
10
|
});
|
|
16
11
|
Object.defineProperty(exports, "ConnectTimeoutError", {
|
|
17
12
|
enumerable: true,
|
|
18
|
-
get: function () { return
|
|
13
|
+
get: function () { return chunkPKYPPATQ_cjs.ConnectTimeoutError; }
|
|
19
14
|
});
|
|
20
15
|
Object.defineProperty(exports, "HeartbeatTimeoutError", {
|
|
21
16
|
enumerable: true,
|
|
22
|
-
get: function () { return
|
|
17
|
+
get: function () { return chunkPKYPPATQ_cjs.HeartbeatTimeoutError; }
|
|
23
18
|
});
|
|
24
19
|
Object.defineProperty(exports, "HttpError", {
|
|
25
20
|
enumerable: true,
|
|
26
|
-
get: function () { return
|
|
21
|
+
get: function () { return chunkPKYPPATQ_cjs.HttpError; }
|
|
27
22
|
});
|
|
28
23
|
Object.defineProperty(exports, "NetError", {
|
|
29
24
|
enumerable: true,
|
|
30
|
-
get: function () { return
|
|
25
|
+
get: function () { return chunkPKYPPATQ_cjs.NetError; }
|
|
31
26
|
});
|
|
32
27
|
Object.defineProperty(exports, "NetworkError", {
|
|
33
28
|
enumerable: true,
|
|
34
|
-
get: function () { return
|
|
29
|
+
get: function () { return chunkPKYPPATQ_cjs.NetworkError; }
|
|
35
30
|
});
|
|
36
31
|
Object.defineProperty(exports, "OfflineError", {
|
|
37
32
|
enumerable: true,
|
|
38
|
-
get: function () { return
|
|
33
|
+
get: function () { return chunkPKYPPATQ_cjs.OfflineError; }
|
|
39
34
|
});
|
|
40
35
|
Object.defineProperty(exports, "TotalTimeoutError", {
|
|
41
36
|
enumerable: true,
|
|
42
|
-
get: function () { return
|
|
37
|
+
get: function () { return chunkPKYPPATQ_cjs.TotalTimeoutError; }
|
|
43
38
|
});
|
|
44
39
|
Object.defineProperty(exports, "extractErrorMessage", {
|
|
45
40
|
enumerable: true,
|
|
46
|
-
get: function () { return
|
|
41
|
+
get: function () { return chunkPKYPPATQ_cjs.extractErrorMessage; }
|
|
47
42
|
});
|
|
48
43
|
Object.defineProperty(exports, "isNetError", {
|
|
49
44
|
enumerable: true,
|
|
50
|
-
get: function () { return
|
|
45
|
+
get: function () { return chunkPKYPPATQ_cjs.isNetError; }
|
|
51
46
|
});
|
|
52
47
|
Object.defineProperty(exports, "isTransportFailure", {
|
|
53
48
|
enumerable: true,
|
|
54
|
-
get: function () { return
|
|
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
|
|
57
|
+
get: function () { return chunkPKYPPATQ_cjs.resilientFetch; }
|
|
59
58
|
});
|
|
60
59
|
Object.defineProperty(exports, "toNetError", {
|
|
61
60
|
enumerable: true,
|
|
62
|
-
get: function () { return
|
|
61
|
+
get: function () { return chunkPKYPPATQ_cjs.toNetError; }
|
|
63
62
|
});
|
|
64
63
|
Object.defineProperty(exports, "withRetry", {
|
|
65
64
|
enumerable: true,
|
|
66
|
-
get: function () { return
|
|
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
|
*
|
|
@@ -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
|
*
|
|
@@ -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-
|
|
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';
|
package/dist/platform.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('./chunk-
|
|
3
|
+
var chunk2ZHIYXHV_cjs = require('./chunk-2ZHIYXHV.cjs');
|
|
4
|
+
require('./chunk-PKYPPATQ.cjs');
|
|
5
5
|
|
|
6
6
|
// src/generated/platform.ts
|
|
7
7
|
var $initiateOauth = { m: "GET", p: "/auth/aimatrx", d: "aidream", a: "public", o: "exempt", n: "platform.initiate_oauth" };
|
|
@@ -46,7 +46,7 @@ function getAppConfig(api, args, options) {
|
|
|
46
46
|
}
|
|
47
47
|
var $publishDictionary = { m: "POST", p: "/dictionary/publish", d: "aidream", a: "guest", o: "required", s: "ndjson", n: "platform.publish_dictionary" };
|
|
48
48
|
function publishDictionary(api, args, options) {
|
|
49
|
-
return
|
|
49
|
+
return chunk2ZHIYXHV_cjs.openStream(api, $publishDictionary, args, options);
|
|
50
50
|
}
|
|
51
51
|
var $listPublications = { m: "GET", p: "/dictionary/publications", d: "aidream", a: "guest", o: "exempt", n: "platform.list_publications" };
|
|
52
52
|
function listPublications(api, args, options) {
|
|
@@ -70,7 +70,7 @@ function getCheck(api, args, options) {
|
|
|
70
70
|
}
|
|
71
71
|
var $runCheck = { m: "POST", p: "/proof-runs/checks/{slug}/run", d: "aidream", a: "admin", o: "required", s: "ndjson", n: "platform.run_check" };
|
|
72
72
|
function runCheck(api, args, options) {
|
|
73
|
-
return
|
|
73
|
+
return chunk2ZHIYXHV_cjs.openStream(api, $runCheck, args, options);
|
|
74
74
|
}
|
|
75
75
|
var $listRecentRuns = { m: "GET", p: "/proof-runs/runs", d: "aidream", a: "admin", o: "optional", n: "platform.list_recent_runs" };
|
|
76
76
|
function listRecentRuns(api, args, options) {
|