@ai-matrx/api 0.1.24 → 0.1.26

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 +92 -40
  17. package/dist/architecture.d.cts +236 -40
  18. package/dist/architecture.d.ts +236 -40
  19. package/dist/architecture.js +71 -28
  20. package/dist/audio.cjs +151 -220
  21. package/dist/audio.d.cts +2 -2
  22. package/dist/audio.d.ts +2 -2
  23. package/dist/audio.js +2 -186
  24. package/dist/chat.cjs +11 -11
  25. package/dist/chat.d.cts +2 -2
  26. package/dist/chat.d.ts +2 -2
  27. package/dist/chat.js +1 -1
  28. package/dist/chunk-6GYZDL2H.js +186 -0
  29. package/dist/chunk-76S6F7O3.cjs +224 -0
  30. package/dist/{chunk-ZOZOF5DN.cjs → chunk-BHSHMV22.cjs} +1 -1
  31. package/dist/chunk-G6FXF44G.js +128 -0
  32. package/dist/{chunk-E3PGCGP7.js → chunk-MFZXWYK6.js} +1 -1
  33. package/dist/chunk-MKN4EXSQ.cjs +1317 -0
  34. package/dist/chunk-OVQM6CSX.cjs +154 -0
  35. package/dist/chunk-OWI6FDHV.js +1090 -0
  36. package/dist/code.cjs +6 -6
  37. package/dist/code.d.cts +5 -4
  38. package/dist/code.d.ts +5 -4
  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 +10 -4
  51. package/dist/content.d.cts +14 -3
  52. package/dist/content.d.ts +14 -3
  53. package/dist/content.js +7 -2
  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 +50 -3
  59. package/dist/data.d.cts +199 -3
  60. package/dist/data.d.ts +199 -3
  61. package/dist/data.js +41 -2
  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 +907 -1330
  67. package/dist/files.d.cts +36 -104
  68. package/dist/files.d.ts +36 -104
  69. package/dist/files.js +2 -1107
  70. package/dist/human-resources.d.cts +2 -2
  71. package/dist/human-resources.d.ts +2 -2
  72. package/dist/{index-BgjdVvrS.d.cts → index-DseWSnYe.d.cts} +2 -2
  73. package/dist/{index-BgjdVvrS.d.ts → index-DseWSnYe.d.ts} +2 -2
  74. package/dist/index.cjs +62 -58
  75. package/dist/index.d.cts +2 -2
  76. package/dist/index.d.ts +2 -2
  77. package/dist/index.js +7 -3
  78. package/dist/integrations.cjs +51 -5
  79. package/dist/integrations.d.cts +136 -4
  80. package/dist/integrations.d.ts +136 -4
  81. package/dist/integrations.js +42 -4
  82. package/dist/intelligence.cjs +6 -6
  83. package/dist/intelligence.d.cts +2 -2
  84. package/dist/intelligence.d.ts +2 -2
  85. package/dist/intelligence.js +1 -1
  86. package/dist/knowledge.cjs +42 -42
  87. package/dist/knowledge.d.cts +3 -3
  88. package/dist/knowledge.d.ts +3 -3
  89. package/dist/knowledge.js +1 -1
  90. package/dist/legal.cjs +6 -6
  91. package/dist/legal.d.cts +2 -2
  92. package/dist/legal.d.ts +2 -2
  93. package/dist/legal.js +1 -1
  94. package/dist/marketing.cjs +97 -81
  95. package/dist/marketing.d.cts +81 -8
  96. package/dist/marketing.d.ts +81 -8
  97. package/dist/marketing.js +19 -6
  98. package/dist/masterwork.cjs +32 -32
  99. package/dist/masterwork.d.cts +2 -2
  100. package/dist/masterwork.d.ts +2 -2
  101. package/dist/masterwork.js +1 -1
  102. package/dist/media.cjs +11 -11
  103. package/dist/media.d.cts +9 -9
  104. package/dist/media.d.ts +9 -9
  105. package/dist/media.js +1 -1
  106. package/dist/platform.cjs +103 -150
  107. package/dist/platform.d.cts +2 -2
  108. package/dist/platform.d.ts +2 -2
  109. package/dist/platform.js +2 -128
  110. package/dist/publish.cjs +7 -7
  111. package/dist/publish.d.cts +2 -2
  112. package/dist/publish.d.ts +2 -2
  113. package/dist/publish.js +1 -1
  114. package/dist/recording.cjs +278 -0
  115. package/dist/recording.d.cts +44 -0
  116. package/dist/recording.d.ts +44 -0
  117. package/dist/recording.js +275 -0
  118. package/dist/schemas.d.cts +4 -1
  119. package/dist/schemas.d.ts +4 -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 +735 -32
  125. package/dist/types.d.ts +735 -32
  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 +32 -14
  131. package/dist/workflows.d.cts +132 -40
  132. package/dist/workflows.d.ts +132 -40
  133. package/dist/workflows.js +18 -3
  134. package/package.json +14 -3
package/dist/platform.cjs CHANGED
@@ -1,155 +1,108 @@
1
1
  'use strict';
2
2
 
3
- var chunkZOZOF5DN_cjs = require('./chunk-ZOZOF5DN.cjs');
3
+ var chunkOVQM6CSX_cjs = require('./chunk-OVQM6CSX.cjs');
4
+ require('./chunk-BHSHMV22.cjs');
4
5
  require('./chunk-2SXAAKGV.cjs');
5
6
 
6
- // src/generated/platform.ts
7
- var $initiateOauth = { m: "GET", p: "/auth/aimatrx", d: "aidream", a: "public", o: "exempt", n: "platform.initiate_oauth" };
8
- function initiateOauth(api, args, options) {
9
- return api.call($initiateOauth, args, options);
10
- }
11
- var $oauthCallback = { m: "GET", p: "/auth/callback", d: "aidream", a: "public", o: "exempt", n: "platform.oauth_callback" };
12
- function oauthCallback(api, args, options) {
13
- return api.call($oauthCallback, args, options);
14
- }
15
- var $exchangeSessionHandoff = { m: "POST", p: "/auth/session/exchange", d: "aidream", a: "public", o: "exempt", n: "platform.exchange_session_handoff" };
16
- function exchangeSessionHandoff(api, args, options) {
17
- return api.call($exchangeSessionHandoff, args, options);
18
- }
19
- var $openGuestSession = { m: "POST", p: "/auth/guest/session", d: "aidream", a: "public", o: "exempt", n: "platform.open_guest_session" };
20
- function openGuestSession(api, args, options) {
21
- return api.call($openGuestSession, args, options);
22
- }
23
- var $reportOauthIncident = { m: "POST", p: "/auth/session/oauth-incident", d: "aidream", a: "public", o: "exempt", n: "platform.report_oauth_incident" };
24
- function reportOauthIncident(api, args, options) {
25
- return api.call($reportOauthIncident, args, options);
26
- }
27
- var $currentFileSessionStatus = { m: "GET", p: "/auth/file-session/status", d: "aidream", a: "guest", o: "exempt", n: "platform.current_file_session_status" };
28
- function currentFileSessionStatus(api, args, options) {
29
- return api.call($currentFileSessionStatus, args, options);
30
- }
31
- var $currentSessionStatus = { m: "GET", p: "/auth/session/status", d: "aidream", a: "guest", o: "exempt", n: "platform.current_session_status" };
32
- function currentSessionStatus(api, args, options) {
33
- return api.call($currentSessionStatus, args, options);
34
- }
35
- var $whoami = { m: "GET", p: "/auth/whoami", d: "aidream", a: "guest", o: "exempt", n: "platform.whoami" };
36
- function whoami(api, args, options) {
37
- return api.call($whoami, args, options);
38
- }
39
- var $listMyOrganizations = { m: "GET", p: "/auth/organizations", d: "aidream", a: "guest", o: "exempt", n: "platform.list_my_organizations" };
40
- function listMyOrganizations(api, args, options) {
41
- return api.call($listMyOrganizations, args, options);
42
- }
43
- var $getAppConfig = { m: "GET", p: "/app-config/{app}", d: "aidream", a: "guest", o: "optional", n: "platform.get_app_config" };
44
- function getAppConfig(api, args, options) {
45
- return api.call($getAppConfig, args, options);
46
- }
47
- var $publishDictionary = { m: "POST", p: "/dictionary/publish", d: "aidream", a: "guest", o: "required", s: "ndjson", n: "platform.publish_dictionary" };
48
- function publishDictionary(api, args, options) {
49
- return chunkZOZOF5DN_cjs.openStream(api, $publishDictionary, args, options);
50
- }
51
- var $listPublications = { m: "GET", p: "/dictionary/publications", d: "aidream", a: "guest", o: "exempt", n: "platform.list_publications" };
52
- function listPublications(api, args, options) {
53
- return api.call($listPublications, args, options);
54
- }
55
- var $onSignIn = { m: "POST", p: "/auth/on-sign-in", d: "aidream", a: "guest", o: "exempt", n: "platform.on_sign_in" };
56
- function onSignIn(api, args, options) {
57
- return api.call($onSignIn, args, options);
58
- }
59
- var $devLoginAs = { m: "POST", p: "/dev/login-as", d: "aidream", a: "guest", o: "required", n: "platform.dev_login_as" };
60
- function devLoginAs(api, args, options) {
61
- return api.call($devLoginAs, args, options);
62
- }
63
- var $listChecks = { m: "GET", p: "/proof-runs/checks", d: "aidream", a: "admin", o: "optional", n: "platform.list_checks" };
64
- function listChecks(api, args, options) {
65
- return api.call($listChecks, args, options);
66
- }
67
- var $getCheck = { m: "GET", p: "/proof-runs/checks/{slug}", d: "aidream", a: "admin", o: "optional", n: "platform.get_check" };
68
- function getCheck(api, args, options) {
69
- return api.call($getCheck, args, options);
70
- }
71
- var $runCheck = { m: "POST", p: "/proof-runs/checks/{slug}/run", d: "aidream", a: "admin", o: "required", s: "ndjson", n: "platform.run_check" };
72
- function runCheck(api, args, options) {
73
- return chunkZOZOF5DN_cjs.openStream(api, $runCheck, args, options);
74
- }
75
- var $listRecentRuns = { m: "GET", p: "/proof-runs/runs", d: "aidream", a: "admin", o: "optional", n: "platform.list_recent_runs" };
76
- function listRecentRuns(api, args, options) {
77
- return api.call($listRecentRuns, args, options);
78
- }
79
- var $getRunDetail = { m: "GET", p: "/proof-runs/runs/{run_id}", d: "aidream", a: "admin", o: "optional", n: "platform.get_run_detail" };
80
- function getRunDetail(api, args, options) {
81
- return api.call($getRunDetail, args, options);
82
- }
83
- var $listScenarios = { m: "GET", p: "/proof-runs/scenarios", d: "aidream", a: "admin", o: "optional", n: "platform.list_scenarios" };
84
- function listScenarios(api, args, options) {
85
- return api.call($listScenarios, args, options);
86
- }
87
- var $saveScenario = { m: "PUT", p: "/proof-runs/scenarios/{slug}", d: "aidream", a: "admin", o: "required", n: "platform.save_scenario" };
88
- function saveScenario(api, args, options) {
89
- return api.call($saveScenario, args, options);
90
- }
91
- var $deleteScenario = { m: "DELETE", p: "/proof-runs/scenarios/{slug}", d: "aidream", a: "admin", o: "required", n: "platform.delete_scenario" };
92
- function deleteScenario(api, args, options) {
93
- return api.call($deleteScenario, args, options);
94
- }
95
- var $mandateCatalog = { m: "GET", p: "/proof-runs/mandate-catalog", d: "aidream", a: "admin", o: "optional", n: "platform.mandate_catalog" };
96
- function mandateCatalog(api, args, options) {
97
- return api.call($mandateCatalog, args, options);
98
- }
99
- var $sendRefreshRequired = { m: "POST", p: "/admin/client-directives/refresh-required", d: "aidream", a: "admin", o: "exempt", n: "platform.send_refresh_required" };
100
- function sendRefreshRequired(api, args, options) {
101
- return api.call($sendRefreshRequired, args, options);
102
- }
103
- var TABLE = {
104
- "GET /auth/aimatrx": $initiateOauth,
105
- "GET /auth/callback": $oauthCallback,
106
- "POST /auth/session/exchange": $exchangeSessionHandoff,
107
- "POST /auth/guest/session": $openGuestSession,
108
- "POST /auth/session/oauth-incident": $reportOauthIncident,
109
- "GET /auth/file-session/status": $currentFileSessionStatus,
110
- "GET /auth/session/status": $currentSessionStatus,
111
- "GET /auth/whoami": $whoami,
112
- "GET /auth/organizations": $listMyOrganizations,
113
- "GET /app-config/{app}": $getAppConfig,
114
- "GET /dictionary/publications": $listPublications,
115
- "POST /auth/on-sign-in": $onSignIn,
116
- "POST /dev/login-as": $devLoginAs,
117
- "GET /proof-runs/checks": $listChecks,
118
- "GET /proof-runs/checks/{slug}": $getCheck,
119
- "GET /proof-runs/runs": $listRecentRuns,
120
- "GET /proof-runs/runs/{run_id}": $getRunDetail,
121
- "GET /proof-runs/scenarios": $listScenarios,
122
- "PUT /proof-runs/scenarios/{slug}": $saveScenario,
123
- "DELETE /proof-runs/scenarios/{slug}": $deleteScenario,
124
- "GET /proof-runs/mandate-catalog": $mandateCatalog,
125
- "POST /admin/client-directives/refresh-required": $sendRefreshRequired
126
- };
127
- function call(api, key, args, options) {
128
- return api.call(TABLE[key], args, options);
129
- }
130
7
 
131
- exports.call = call;
132
- exports.currentFileSessionStatus = currentFileSessionStatus;
133
- exports.currentSessionStatus = currentSessionStatus;
134
- exports.deleteScenario = deleteScenario;
135
- exports.devLoginAs = devLoginAs;
136
- exports.exchangeSessionHandoff = exchangeSessionHandoff;
137
- exports.getAppConfig = getAppConfig;
138
- exports.getCheck = getCheck;
139
- exports.getRunDetail = getRunDetail;
140
- exports.initiateOauth = initiateOauth;
141
- exports.listChecks = listChecks;
142
- exports.listMyOrganizations = listMyOrganizations;
143
- exports.listPublications = listPublications;
144
- exports.listRecentRuns = listRecentRuns;
145
- exports.listScenarios = listScenarios;
146
- exports.mandateCatalog = mandateCatalog;
147
- exports.oauthCallback = oauthCallback;
148
- exports.onSignIn = onSignIn;
149
- exports.openGuestSession = openGuestSession;
150
- exports.publishDictionary = publishDictionary;
151
- exports.reportOauthIncident = reportOauthIncident;
152
- exports.runCheck = runCheck;
153
- exports.saveScenario = saveScenario;
154
- exports.sendRefreshRequired = sendRefreshRequired;
155
- exports.whoami = whoami;
8
+
9
+ Object.defineProperty(exports, "call", {
10
+ enumerable: true,
11
+ get: function () { return chunkOVQM6CSX_cjs.call; }
12
+ });
13
+ Object.defineProperty(exports, "currentFileSessionStatus", {
14
+ enumerable: true,
15
+ get: function () { return chunkOVQM6CSX_cjs.currentFileSessionStatus; }
16
+ });
17
+ Object.defineProperty(exports, "currentSessionStatus", {
18
+ enumerable: true,
19
+ get: function () { return chunkOVQM6CSX_cjs.currentSessionStatus; }
20
+ });
21
+ Object.defineProperty(exports, "deleteScenario", {
22
+ enumerable: true,
23
+ get: function () { return chunkOVQM6CSX_cjs.deleteScenario; }
24
+ });
25
+ Object.defineProperty(exports, "devLoginAs", {
26
+ enumerable: true,
27
+ get: function () { return chunkOVQM6CSX_cjs.devLoginAs; }
28
+ });
29
+ Object.defineProperty(exports, "exchangeSessionHandoff", {
30
+ enumerable: true,
31
+ get: function () { return chunkOVQM6CSX_cjs.exchangeSessionHandoff; }
32
+ });
33
+ Object.defineProperty(exports, "getAppConfig", {
34
+ enumerable: true,
35
+ get: function () { return chunkOVQM6CSX_cjs.getAppConfig; }
36
+ });
37
+ Object.defineProperty(exports, "getCheck", {
38
+ enumerable: true,
39
+ get: function () { return chunkOVQM6CSX_cjs.getCheck; }
40
+ });
41
+ Object.defineProperty(exports, "getRunDetail", {
42
+ enumerable: true,
43
+ get: function () { return chunkOVQM6CSX_cjs.getRunDetail; }
44
+ });
45
+ Object.defineProperty(exports, "initiateOauth", {
46
+ enumerable: true,
47
+ get: function () { return chunkOVQM6CSX_cjs.initiateOauth; }
48
+ });
49
+ Object.defineProperty(exports, "listChecks", {
50
+ enumerable: true,
51
+ get: function () { return chunkOVQM6CSX_cjs.listChecks; }
52
+ });
53
+ Object.defineProperty(exports, "listMyOrganizations", {
54
+ enumerable: true,
55
+ get: function () { return chunkOVQM6CSX_cjs.listMyOrganizations; }
56
+ });
57
+ Object.defineProperty(exports, "listPublications", {
58
+ enumerable: true,
59
+ get: function () { return chunkOVQM6CSX_cjs.listPublications; }
60
+ });
61
+ Object.defineProperty(exports, "listRecentRuns", {
62
+ enumerable: true,
63
+ get: function () { return chunkOVQM6CSX_cjs.listRecentRuns; }
64
+ });
65
+ Object.defineProperty(exports, "listScenarios", {
66
+ enumerable: true,
67
+ get: function () { return chunkOVQM6CSX_cjs.listScenarios; }
68
+ });
69
+ Object.defineProperty(exports, "mandateCatalog", {
70
+ enumerable: true,
71
+ get: function () { return chunkOVQM6CSX_cjs.mandateCatalog; }
72
+ });
73
+ Object.defineProperty(exports, "oauthCallback", {
74
+ enumerable: true,
75
+ get: function () { return chunkOVQM6CSX_cjs.oauthCallback; }
76
+ });
77
+ Object.defineProperty(exports, "onSignIn", {
78
+ enumerable: true,
79
+ get: function () { return chunkOVQM6CSX_cjs.onSignIn; }
80
+ });
81
+ Object.defineProperty(exports, "openGuestSession", {
82
+ enumerable: true,
83
+ get: function () { return chunkOVQM6CSX_cjs.openGuestSession; }
84
+ });
85
+ Object.defineProperty(exports, "publishDictionary", {
86
+ enumerable: true,
87
+ get: function () { return chunkOVQM6CSX_cjs.publishDictionary; }
88
+ });
89
+ Object.defineProperty(exports, "reportOauthIncident", {
90
+ enumerable: true,
91
+ get: function () { return chunkOVQM6CSX_cjs.reportOauthIncident; }
92
+ });
93
+ Object.defineProperty(exports, "runCheck", {
94
+ enumerable: true,
95
+ get: function () { return chunkOVQM6CSX_cjs.runCheck; }
96
+ });
97
+ Object.defineProperty(exports, "saveScenario", {
98
+ enumerable: true,
99
+ get: function () { return chunkOVQM6CSX_cjs.saveScenario; }
100
+ });
101
+ Object.defineProperty(exports, "sendRefreshRequired", {
102
+ enumerable: true,
103
+ get: function () { return chunkOVQM6CSX_cjs.sendRefreshRequired; }
104
+ });
105
+ Object.defineProperty(exports, "whoami", {
106
+ enumerable: true,
107
+ get: function () { return chunkOVQM6CSX_cjs.whoami; }
108
+ });
@@ -1,10 +1,10 @@
1
- import { A as Api, C as CallOptions, a as ApiStream, N as NdjsonEvent } from './index-BgjdVvrS.cjs';
1
+ import { A as Api, C as CallOptions, a as ApiStream, N as NdjsonEvent } from './index-DseWSnYe.cjs';
2
2
  import { JsonValue } 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 a7cc7154fd90de65bc0e3e819210f0337696cb50814b5a366e64ecb1b00412e4
7
+ * CONTRACT_SHA256 ed1fe1df59e1acd74be297d45d5b1b9f1bb7a637bdc54c53928db1f876875ce9
8
8
  */
9
9
 
10
10
  /** AppConfigResponse */
@@ -1,10 +1,10 @@
1
- import { A as Api, C as CallOptions, a as ApiStream, N as NdjsonEvent } from './index-BgjdVvrS.js';
1
+ import { A as Api, C as CallOptions, a as ApiStream, N as NdjsonEvent } from './index-DseWSnYe.js';
2
2
  import { JsonValue } 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 a7cc7154fd90de65bc0e3e819210f0337696cb50814b5a366e64ecb1b00412e4
7
+ * CONTRACT_SHA256 ed1fe1df59e1acd74be297d45d5b1b9f1bb7a637bdc54c53928db1f876875ce9
8
8
  */
9
9
 
10
10
  /** AppConfigResponse */
package/dist/platform.js CHANGED
@@ -1,129 +1,3 @@
1
- import { openStream } from './chunk-E3PGCGP7.js';
1
+ export { call, currentFileSessionStatus, currentSessionStatus, deleteScenario, devLoginAs, exchangeSessionHandoff, getAppConfig, getCheck, getRunDetail, initiateOauth, listChecks, listMyOrganizations, listPublications, listRecentRuns, listScenarios, mandateCatalog, oauthCallback, onSignIn, openGuestSession, publishDictionary, reportOauthIncident, runCheck, saveScenario, sendRefreshRequired, whoami } from './chunk-G6FXF44G.js';
2
+ import './chunk-MFZXWYK6.js';
2
3
  import './chunk-KIEAFMKB.js';
3
-
4
- // src/generated/platform.ts
5
- var $initiateOauth = { m: "GET", p: "/auth/aimatrx", d: "aidream", a: "public", o: "exempt", n: "platform.initiate_oauth" };
6
- function initiateOauth(api, args, options) {
7
- return api.call($initiateOauth, args, options);
8
- }
9
- var $oauthCallback = { m: "GET", p: "/auth/callback", d: "aidream", a: "public", o: "exempt", n: "platform.oauth_callback" };
10
- function oauthCallback(api, args, options) {
11
- return api.call($oauthCallback, args, options);
12
- }
13
- var $exchangeSessionHandoff = { m: "POST", p: "/auth/session/exchange", d: "aidream", a: "public", o: "exempt", n: "platform.exchange_session_handoff" };
14
- function exchangeSessionHandoff(api, args, options) {
15
- return api.call($exchangeSessionHandoff, args, options);
16
- }
17
- var $openGuestSession = { m: "POST", p: "/auth/guest/session", d: "aidream", a: "public", o: "exempt", n: "platform.open_guest_session" };
18
- function openGuestSession(api, args, options) {
19
- return api.call($openGuestSession, args, options);
20
- }
21
- var $reportOauthIncident = { m: "POST", p: "/auth/session/oauth-incident", d: "aidream", a: "public", o: "exempt", n: "platform.report_oauth_incident" };
22
- function reportOauthIncident(api, args, options) {
23
- return api.call($reportOauthIncident, args, options);
24
- }
25
- var $currentFileSessionStatus = { m: "GET", p: "/auth/file-session/status", d: "aidream", a: "guest", o: "exempt", n: "platform.current_file_session_status" };
26
- function currentFileSessionStatus(api, args, options) {
27
- return api.call($currentFileSessionStatus, args, options);
28
- }
29
- var $currentSessionStatus = { m: "GET", p: "/auth/session/status", d: "aidream", a: "guest", o: "exempt", n: "platform.current_session_status" };
30
- function currentSessionStatus(api, args, options) {
31
- return api.call($currentSessionStatus, args, options);
32
- }
33
- var $whoami = { m: "GET", p: "/auth/whoami", d: "aidream", a: "guest", o: "exempt", n: "platform.whoami" };
34
- function whoami(api, args, options) {
35
- return api.call($whoami, args, options);
36
- }
37
- var $listMyOrganizations = { m: "GET", p: "/auth/organizations", d: "aidream", a: "guest", o: "exempt", n: "platform.list_my_organizations" };
38
- function listMyOrganizations(api, args, options) {
39
- return api.call($listMyOrganizations, args, options);
40
- }
41
- var $getAppConfig = { m: "GET", p: "/app-config/{app}", d: "aidream", a: "guest", o: "optional", n: "platform.get_app_config" };
42
- function getAppConfig(api, args, options) {
43
- return api.call($getAppConfig, args, options);
44
- }
45
- var $publishDictionary = { m: "POST", p: "/dictionary/publish", d: "aidream", a: "guest", o: "required", s: "ndjson", n: "platform.publish_dictionary" };
46
- function publishDictionary(api, args, options) {
47
- return openStream(api, $publishDictionary, args, options);
48
- }
49
- var $listPublications = { m: "GET", p: "/dictionary/publications", d: "aidream", a: "guest", o: "exempt", n: "platform.list_publications" };
50
- function listPublications(api, args, options) {
51
- return api.call($listPublications, args, options);
52
- }
53
- var $onSignIn = { m: "POST", p: "/auth/on-sign-in", d: "aidream", a: "guest", o: "exempt", n: "platform.on_sign_in" };
54
- function onSignIn(api, args, options) {
55
- return api.call($onSignIn, args, options);
56
- }
57
- var $devLoginAs = { m: "POST", p: "/dev/login-as", d: "aidream", a: "guest", o: "required", n: "platform.dev_login_as" };
58
- function devLoginAs(api, args, options) {
59
- return api.call($devLoginAs, args, options);
60
- }
61
- var $listChecks = { m: "GET", p: "/proof-runs/checks", d: "aidream", a: "admin", o: "optional", n: "platform.list_checks" };
62
- function listChecks(api, args, options) {
63
- return api.call($listChecks, args, options);
64
- }
65
- var $getCheck = { m: "GET", p: "/proof-runs/checks/{slug}", d: "aidream", a: "admin", o: "optional", n: "platform.get_check" };
66
- function getCheck(api, args, options) {
67
- return api.call($getCheck, args, options);
68
- }
69
- var $runCheck = { m: "POST", p: "/proof-runs/checks/{slug}/run", d: "aidream", a: "admin", o: "required", s: "ndjson", n: "platform.run_check" };
70
- function runCheck(api, args, options) {
71
- return openStream(api, $runCheck, args, options);
72
- }
73
- var $listRecentRuns = { m: "GET", p: "/proof-runs/runs", d: "aidream", a: "admin", o: "optional", n: "platform.list_recent_runs" };
74
- function listRecentRuns(api, args, options) {
75
- return api.call($listRecentRuns, args, options);
76
- }
77
- var $getRunDetail = { m: "GET", p: "/proof-runs/runs/{run_id}", d: "aidream", a: "admin", o: "optional", n: "platform.get_run_detail" };
78
- function getRunDetail(api, args, options) {
79
- return api.call($getRunDetail, args, options);
80
- }
81
- var $listScenarios = { m: "GET", p: "/proof-runs/scenarios", d: "aidream", a: "admin", o: "optional", n: "platform.list_scenarios" };
82
- function listScenarios(api, args, options) {
83
- return api.call($listScenarios, args, options);
84
- }
85
- var $saveScenario = { m: "PUT", p: "/proof-runs/scenarios/{slug}", d: "aidream", a: "admin", o: "required", n: "platform.save_scenario" };
86
- function saveScenario(api, args, options) {
87
- return api.call($saveScenario, args, options);
88
- }
89
- var $deleteScenario = { m: "DELETE", p: "/proof-runs/scenarios/{slug}", d: "aidream", a: "admin", o: "required", n: "platform.delete_scenario" };
90
- function deleteScenario(api, args, options) {
91
- return api.call($deleteScenario, args, options);
92
- }
93
- var $mandateCatalog = { m: "GET", p: "/proof-runs/mandate-catalog", d: "aidream", a: "admin", o: "optional", n: "platform.mandate_catalog" };
94
- function mandateCatalog(api, args, options) {
95
- return api.call($mandateCatalog, args, options);
96
- }
97
- var $sendRefreshRequired = { m: "POST", p: "/admin/client-directives/refresh-required", d: "aidream", a: "admin", o: "exempt", n: "platform.send_refresh_required" };
98
- function sendRefreshRequired(api, args, options) {
99
- return api.call($sendRefreshRequired, args, options);
100
- }
101
- var TABLE = {
102
- "GET /auth/aimatrx": $initiateOauth,
103
- "GET /auth/callback": $oauthCallback,
104
- "POST /auth/session/exchange": $exchangeSessionHandoff,
105
- "POST /auth/guest/session": $openGuestSession,
106
- "POST /auth/session/oauth-incident": $reportOauthIncident,
107
- "GET /auth/file-session/status": $currentFileSessionStatus,
108
- "GET /auth/session/status": $currentSessionStatus,
109
- "GET /auth/whoami": $whoami,
110
- "GET /auth/organizations": $listMyOrganizations,
111
- "GET /app-config/{app}": $getAppConfig,
112
- "GET /dictionary/publications": $listPublications,
113
- "POST /auth/on-sign-in": $onSignIn,
114
- "POST /dev/login-as": $devLoginAs,
115
- "GET /proof-runs/checks": $listChecks,
116
- "GET /proof-runs/checks/{slug}": $getCheck,
117
- "GET /proof-runs/runs": $listRecentRuns,
118
- "GET /proof-runs/runs/{run_id}": $getRunDetail,
119
- "GET /proof-runs/scenarios": $listScenarios,
120
- "PUT /proof-runs/scenarios/{slug}": $saveScenario,
121
- "DELETE /proof-runs/scenarios/{slug}": $deleteScenario,
122
- "GET /proof-runs/mandate-catalog": $mandateCatalog,
123
- "POST /admin/client-directives/refresh-required": $sendRefreshRequired
124
- };
125
- function call(api, key, args, options) {
126
- return api.call(TABLE[key], args, options);
127
- }
128
-
129
- export { call, currentFileSessionStatus, currentSessionStatus, deleteScenario, devLoginAs, exchangeSessionHandoff, getAppConfig, getCheck, getRunDetail, initiateOauth, listChecks, listMyOrganizations, listPublications, listRecentRuns, listScenarios, mandateCatalog, oauthCallback, onSignIn, openGuestSession, publishDictionary, reportOauthIncident, runCheck, saveScenario, sendRefreshRequired, whoami };
package/dist/publish.cjs CHANGED
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunkZOZOF5DN_cjs = require('./chunk-ZOZOF5DN.cjs');
3
+ var chunkBHSHMV22_cjs = require('./chunk-BHSHMV22.cjs');
4
4
  require('./chunk-2SXAAKGV.cjs');
5
5
 
6
6
  // src/generated/publish.ts
@@ -126,19 +126,19 @@ function castPreviewEndpoint(api, args, options) {
126
126
  }
127
127
  var $generatePodcastEndpoint = { m: "POST", p: "/podcast/generate", d: "aidream", a: "guest", o: "required", s: "ndjson", n: "publish.generate_podcast_endpoint" };
128
128
  function generatePodcastEndpoint(api, args, options) {
129
- return chunkZOZOF5DN_cjs.openStream(api, $generatePodcastEndpoint, args, options);
129
+ return chunkBHSHMV22_cjs.openStream(api, $generatePodcastEndpoint, args, options);
130
130
  }
131
131
  var $resumePodcastEndpoint = { m: "POST", p: "/podcast/resume/{run_id}", d: "aidream", a: "guest", o: "required", s: "ndjson", n: "publish.resume_podcast_endpoint" };
132
132
  function resumePodcastEndpoint(api, args, options) {
133
- return chunkZOZOF5DN_cjs.openStream(api, $resumePodcastEndpoint, args, options);
133
+ return chunkBHSHMV22_cjs.openStream(api, $resumePodcastEndpoint, args, options);
134
134
  }
135
135
  var $regenerateAsset = { m: "POST", p: "/podcast/runs/{run_id}/assets/regenerate", d: "aidream", a: "guest", o: "required", s: "ndjson", n: "publish.regenerate_asset" };
136
136
  function regenerateAsset(api, args, options) {
137
- return chunkZOZOF5DN_cjs.openStream(api, $regenerateAsset, args, options);
137
+ return chunkBHSHMV22_cjs.openStream(api, $regenerateAsset, args, options);
138
138
  }
139
139
  var $addAsset = { m: "POST", p: "/podcast/runs/{run_id}/assets/add", d: "aidream", a: "guest", o: "required", s: "ndjson", n: "publish.add_asset" };
140
140
  function addAsset(api, args, options) {
141
- return chunkZOZOF5DN_cjs.openStream(api, $addAsset, args, options);
141
+ return chunkBHSHMV22_cjs.openStream(api, $addAsset, args, options);
142
142
  }
143
143
  var $reconcilePodcastRun = { m: "POST", p: "/podcast/runs/{run_id}/reconcile", d: "aidream", a: "guest", o: "required", n: "publish.reconcile_podcast_run" };
144
144
  function reconcilePodcastRun(api, args, options) {
@@ -146,11 +146,11 @@ function reconcilePodcastRun(api, args, options) {
146
146
  }
147
147
  var $startRace = { m: "POST", p: "/podcast/races", d: "aidream", a: "guest", o: "required", s: "ndjson", n: "publish.start_race" };
148
148
  function startRace(api, args, options) {
149
- return chunkZOZOF5DN_cjs.openStream(api, $startRace, args, options);
149
+ return chunkBHSHMV22_cjs.openStream(api, $startRace, args, options);
150
150
  }
151
151
  var $rerunRaceArm = { m: "POST", p: "/podcast/races/{race_id}/arms/{arm}/rerun", d: "aidream", a: "guest", o: "required", s: "ndjson", n: "publish.rerun_race_arm" };
152
152
  function rerunRaceArm(api, args, options) {
153
- return chunkZOZOF5DN_cjs.openStream(api, $rerunRaceArm, args, options);
153
+ return chunkBHSHMV22_cjs.openStream(api, $rerunRaceArm, args, options);
154
154
  }
155
155
  var $artifactContent = { m: "GET", p: "/artifacts/{artifact_id}/content", d: "matrx-local", a: "loopback_open", o: "exempt", n: "publish.artifact_content" };
156
156
  function artifactContent(api, args, options) {
@@ -1,10 +1,10 @@
1
- import { A as Api, C as CallOptions, a as ApiStream, N as NdjsonEvent } from './index-BgjdVvrS.cjs';
1
+ import { A as Api, C as CallOptions, a as ApiStream, N as NdjsonEvent } from './index-DseWSnYe.cjs';
2
2
  import { JsonValue, ContextAnchor, Asset } 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 a7cc7154fd90de65bc0e3e819210f0337696cb50814b5a366e64ecb1b00412e4
7
+ * CONTRACT_SHA256 ed1fe1df59e1acd74be297d45d5b1b9f1bb7a637bdc54c53928db1f876875ce9
8
8
  */
9
9
 
10
10
  /** AddAssetRequest */
package/dist/publish.d.ts CHANGED
@@ -1,10 +1,10 @@
1
- import { A as Api, C as CallOptions, a as ApiStream, N as NdjsonEvent } from './index-BgjdVvrS.js';
1
+ import { A as Api, C as CallOptions, a as ApiStream, N as NdjsonEvent } from './index-DseWSnYe.js';
2
2
  import { JsonValue, ContextAnchor, Asset } 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 a7cc7154fd90de65bc0e3e819210f0337696cb50814b5a366e64ecb1b00412e4
7
+ * CONTRACT_SHA256 ed1fe1df59e1acd74be297d45d5b1b9f1bb7a637bdc54c53928db1f876875ce9
8
8
  */
9
9
 
10
10
  /** AddAssetRequest */
package/dist/publish.js CHANGED
@@ -1,4 +1,4 @@
1
- import { openStream } from './chunk-E3PGCGP7.js';
1
+ import { openStream } from './chunk-MFZXWYK6.js';
2
2
  import './chunk-KIEAFMKB.js';
3
3
 
4
4
  // src/generated/publish.ts