@ai-matrx/api 0.0.0-stage → 0.1.1
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 +31 -0
- package/LICENSE +21 -0
- package/README.md +22 -2
- package/dist/account.cjs +670 -0
- package/dist/account.d.cts +3246 -0
- package/dist/account.d.ts +3246 -0
- package/dist/account.js +558 -0
- package/dist/agents.cjs +598 -0
- package/dist/agents.d.cts +3417 -0
- package/dist/agents.d.ts +3417 -0
- package/dist/agents.js +497 -0
- package/dist/ai.cjs +109 -0
- package/dist/ai.d.cts +493 -0
- package/dist/ai.d.ts +493 -0
- package/dist/ai.js +91 -0
- package/dist/apps.cjs +394 -0
- package/dist/apps.d.cts +1094 -0
- package/dist/apps.d.ts +1094 -0
- package/dist/apps.js +328 -0
- package/dist/architecture.cjs +1223 -0
- package/dist/architecture.d.cts +4701 -0
- package/dist/architecture.d.ts +4701 -0
- package/dist/architecture.js +1016 -0
- package/dist/audio.cjs +226 -0
- package/dist/audio.d.cts +723 -0
- package/dist/audio.d.ts +723 -0
- package/dist/audio.js +188 -0
- package/dist/chat.cjs +538 -0
- package/dist/chat.d.cts +2251 -0
- package/dist/chat.d.ts +2251 -0
- package/dist/chat.js +447 -0
- package/dist/chunk-2SXAAKGV.cjs +279 -0
- package/dist/chunk-5WJLKYH6.cjs +48 -0
- package/dist/chunk-FNIYADWI.cjs +59 -0
- package/dist/chunk-HER22VVH.cjs +1047 -0
- package/dist/chunk-KIEAFMKB.js +264 -0
- package/dist/chunk-TSHL7Z53.js +1012 -0
- package/dist/chunk-VTZKJMSY.js +43 -0
- package/dist/chunk-YTEOFGFC.js +57 -0
- package/dist/code.cjs +561 -0
- package/dist/code.d.cts +1976 -0
- package/dist/code.d.ts +1976 -0
- package/dist/code.js +467 -0
- package/dist/commerce.cjs +22 -0
- package/dist/commerce.d.cts +45 -0
- package/dist/commerce.d.ts +45 -0
- package/dist/commerce.js +18 -0
- package/dist/communications.cjs +215 -0
- package/dist/communications.d.cts +948 -0
- package/dist/communications.d.ts +948 -0
- package/dist/communications.js +179 -0
- package/dist/computer.cjs +330 -0
- package/dist/computer.d.cts +733 -0
- package/dist/computer.d.ts +733 -0
- package/dist/computer.js +275 -0
- package/dist/content.cjs +425 -0
- package/dist/content.d.cts +1796 -0
- package/dist/content.d.ts +1796 -0
- package/dist/content.js +354 -0
- package/dist/credentials.cjs +22 -0
- package/dist/credentials.d.cts +82 -0
- package/dist/credentials.d.ts +82 -0
- package/dist/credentials.js +1 -0
- package/dist/crm.cjs +271 -0
- package/dist/crm.d.cts +1731 -0
- package/dist/crm.d.ts +1731 -0
- package/dist/crm.js +226 -0
- package/dist/data.cjs +382 -0
- package/dist/data.d.cts +1860 -0
- package/dist/data.d.ts +1860 -0
- package/dist/data.js +318 -0
- package/dist/education.cjs +28 -0
- package/dist/education.d.cts +73 -0
- package/dist/education.d.ts +73 -0
- package/dist/education.js +23 -0
- package/dist/files.cjs +1330 -0
- package/dist/files.d.cts +4956 -0
- package/dist/files.d.ts +4956 -0
- package/dist/files.js +1104 -0
- package/dist/human-resources.cjs +178 -0
- package/dist/human-resources.d.cts +1208 -0
- package/dist/human-resources.d.ts +1208 -0
- package/dist/human-resources.js +148 -0
- package/dist/index-C2E-Cp19.d.ts +385 -0
- package/dist/index-wC2vtb70.d.cts +385 -0
- package/dist/index.cjs +2016 -0
- package/dist/index.d.cts +2069 -0
- package/dist/index.d.ts +2069 -0
- package/dist/index.js +1746 -0
- package/dist/integrations.cjs +5116 -0
- package/dist/integrations.d.cts +19213 -0
- package/dist/integrations.d.ts +19213 -0
- package/dist/integrations.js +4263 -0
- package/dist/intelligence.cjs +1305 -0
- package/dist/intelligence.d.cts +4658 -0
- package/dist/intelligence.d.ts +4658 -0
- package/dist/intelligence.js +1196 -0
- package/dist/knowledge.cjs +1113 -0
- package/dist/knowledge.d.cts +5427 -0
- package/dist/knowledge.d.ts +5427 -0
- package/dist/knowledge.js +921 -0
- package/dist/legal.cjs +225 -0
- package/dist/legal.d.cts +1038 -0
- package/dist/legal.d.ts +1038 -0
- package/dist/legal.js +187 -0
- package/dist/marketing.cjs +1155 -0
- package/dist/marketing.d.cts +7741 -0
- package/dist/marketing.d.ts +7741 -0
- package/dist/marketing.js +951 -0
- package/dist/masterwork.cjs +283 -0
- package/dist/masterwork.d.cts +1938 -0
- package/dist/masterwork.d.ts +1938 -0
- package/dist/masterwork.js +231 -0
- package/dist/media.cjs +610 -0
- package/dist/media.d.cts +2270 -0
- package/dist/media.d.ts +2270 -0
- package/dist/media.js +507 -0
- package/dist/net.cjs +67 -0
- package/dist/net.d.cts +204 -0
- package/dist/net.d.ts +204 -0
- package/dist/net.js +2 -0
- package/dist/platform.cjs +150 -0
- package/dist/platform.d.cts +572 -0
- package/dist/platform.d.ts +572 -0
- package/dist/platform.js +125 -0
- package/dist/publish.cjs +248 -0
- package/dist/publish.d.cts +1431 -0
- package/dist/publish.d.ts +1431 -0
- package/dist/publish.js +206 -0
- package/dist/schemas.cjs +2 -0
- package/dist/schemas.d.cts +1353 -0
- package/dist/schemas.d.ts +1353 -0
- package/dist/schemas.js +1 -0
- package/dist/stream.cjs +44 -0
- package/dist/stream.d.cts +2 -0
- package/dist/stream.d.ts +2 -0
- package/dist/stream.js +3 -0
- package/dist/web.cjs +1045 -0
- package/dist/web.d.cts +4186 -0
- package/dist/web.d.ts +4186 -0
- package/dist/web.js +867 -0
- package/dist/workflows.cjs +825 -0
- package/dist/workflows.d.cts +4699 -0
- package/dist/workflows.d.ts +4699 -0
- package/dist/workflows.js +686 -0
- package/package.json +419 -4
|
@@ -0,0 +1,572 @@
|
|
|
1
|
+
import { A as Api, C as CallOptions, a as ApiStream, N as NdjsonEvent } from './index-wC2vtb70.cjs';
|
|
2
|
+
import { JsonValue } from './schemas.cjs';
|
|
3
|
+
import './credentials.cjs';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* GENERATED by @ai-matrx/api scripts/generate.mjs from aidream/api-contract — never edit by hand.
|
|
7
|
+
* CONTRACT_SHA256 50a790edb39e682b46e0fa9e674faf5ce2a0ba7de2cd01930a497fca4c47844a
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
/** AppConfigResponse */
|
|
11
|
+
type AppConfigResponse = {
|
|
12
|
+
app: string;
|
|
13
|
+
schema_version: number;
|
|
14
|
+
min_supported_app_version: string;
|
|
15
|
+
config: {
|
|
16
|
+
[key: string]: JsonValue;
|
|
17
|
+
};
|
|
18
|
+
updated_at: string;
|
|
19
|
+
};
|
|
20
|
+
/** DevLoginRequest */
|
|
21
|
+
type DevLoginRequest = {
|
|
22
|
+
/** UUID of an existing row in auth.users. */
|
|
23
|
+
user_id: string;
|
|
24
|
+
/** Requested lifetime, recorded in the audit row. Supabase issues the session and owns its expiry, so the returned `expires_at` is the token's real `exp`, not this value. */
|
|
25
|
+
ttl_seconds?: number;
|
|
26
|
+
};
|
|
27
|
+
/** DevLoginResponse */
|
|
28
|
+
type DevLoginResponse = {
|
|
29
|
+
access_token: string;
|
|
30
|
+
user_id: string;
|
|
31
|
+
expires_at: number;
|
|
32
|
+
issued_at: number;
|
|
33
|
+
jti: string;
|
|
34
|
+
};
|
|
35
|
+
/** What happened to one directive publish. Never raised; always returned */
|
|
36
|
+
type DirectivePublishReport = {
|
|
37
|
+
published: boolean;
|
|
38
|
+
topics: string[];
|
|
39
|
+
delivered_topics: string[];
|
|
40
|
+
reason?: string | null;
|
|
41
|
+
};
|
|
42
|
+
/** One typed rule about the output. The unit an author writes in the UI. */
|
|
43
|
+
type Expectation = {
|
|
44
|
+
/** Stable slug — becomes the proof's id. */
|
|
45
|
+
id: string;
|
|
46
|
+
rule: "contains_marker" | "excludes_marker" | "routes_exist" | "path_present" | "path_absent" | "path_equals" | "path_not_equals" | "min_items" | "max_items" | "matches" | "judge";
|
|
47
|
+
title?: string;
|
|
48
|
+
proves?: string;
|
|
49
|
+
path?: string;
|
|
50
|
+
marker?: string;
|
|
51
|
+
value?: JsonValue;
|
|
52
|
+
count?: number;
|
|
53
|
+
rubric?: string;
|
|
54
|
+
required?: boolean;
|
|
55
|
+
};
|
|
56
|
+
/** One mandate an author can point a scenario at, with what it offers. */
|
|
57
|
+
type MandateOption = {
|
|
58
|
+
mandate_key: string;
|
|
59
|
+
label: string;
|
|
60
|
+
description?: string;
|
|
61
|
+
output_kind?: string | null;
|
|
62
|
+
required_output_keys?: string[];
|
|
63
|
+
accepts_user_input?: boolean;
|
|
64
|
+
provision?: string | null;
|
|
65
|
+
offered_values?: {
|
|
66
|
+
[key: string]: JsonValue;
|
|
67
|
+
}[];
|
|
68
|
+
};
|
|
69
|
+
/** OAuthIncidentRequest */
|
|
70
|
+
type OAuthIncidentRequest = {
|
|
71
|
+
params: string[];
|
|
72
|
+
where: string;
|
|
73
|
+
};
|
|
74
|
+
/** OAuthIncidentResponse */
|
|
75
|
+
type OAuthIncidentResponse = {
|
|
76
|
+
status: string;
|
|
77
|
+
};
|
|
78
|
+
/** Response from the on-sign-in hook — used for operator observability. */
|
|
79
|
+
type OnSignInResponse = {
|
|
80
|
+
ok: boolean;
|
|
81
|
+
user_id: string;
|
|
82
|
+
};
|
|
83
|
+
/** OrganizationReport */
|
|
84
|
+
type OrganizationReport = {
|
|
85
|
+
authenticated: boolean;
|
|
86
|
+
user_id?: string | null;
|
|
87
|
+
organizations: OrganizationSummary[];
|
|
88
|
+
warnings?: "membership_organization_missing"[];
|
|
89
|
+
missing_organization_count?: number;
|
|
90
|
+
};
|
|
91
|
+
/** OrganizationSummary */
|
|
92
|
+
type OrganizationSummary = {
|
|
93
|
+
id: string;
|
|
94
|
+
name: string;
|
|
95
|
+
abbreviation?: string | null;
|
|
96
|
+
archived_at?: string | null;
|
|
97
|
+
};
|
|
98
|
+
/** One check's registry row plus its rolling 30-day KPIs. */
|
|
99
|
+
type ProofCheckStatusKind = {
|
|
100
|
+
/** The registered kind this payload is an instance of. */
|
|
101
|
+
__kind?: "proof_check_status";
|
|
102
|
+
slug?: string;
|
|
103
|
+
label?: string;
|
|
104
|
+
description?: string;
|
|
105
|
+
surface?: string;
|
|
106
|
+
is_active?: boolean;
|
|
107
|
+
live_every_seconds?: number;
|
|
108
|
+
max_cost_usd?: number;
|
|
109
|
+
last_verdict?: string | null;
|
|
110
|
+
last_run_at?: string | null;
|
|
111
|
+
last_live_verdict?: string | null;
|
|
112
|
+
last_live_run_at?: string | null;
|
|
113
|
+
next_live_due_at?: string | null;
|
|
114
|
+
consecutive_failures?: number;
|
|
115
|
+
runs_30d?: number;
|
|
116
|
+
live_runs_30d?: number;
|
|
117
|
+
pass_rate_30d?: number | null;
|
|
118
|
+
spend_30d_usd?: number;
|
|
119
|
+
has_recording?: boolean;
|
|
120
|
+
};
|
|
121
|
+
/** ProofChecksResponse */
|
|
122
|
+
type ProofChecksResponse = {
|
|
123
|
+
checks?: ProofCheckStatusKind[];
|
|
124
|
+
month_to_date_usd?: number;
|
|
125
|
+
monthly_ceiling_usd?: number;
|
|
126
|
+
};
|
|
127
|
+
/** One run with the proofs — each a registered ``proof_result`` payload. */
|
|
128
|
+
type ProofRunDetail = {
|
|
129
|
+
id: string;
|
|
130
|
+
check_id: string;
|
|
131
|
+
check_slug?: string;
|
|
132
|
+
mode: string;
|
|
133
|
+
trigger_source?: string;
|
|
134
|
+
status?: string;
|
|
135
|
+
verdict?: string | null;
|
|
136
|
+
started_at?: string | null;
|
|
137
|
+
finished_at?: string | null;
|
|
138
|
+
duration_ms?: number;
|
|
139
|
+
cost_usd?: number;
|
|
140
|
+
total_tokens?: number;
|
|
141
|
+
provider_calls?: number;
|
|
142
|
+
summary?: string;
|
|
143
|
+
failure_reason?: string | null;
|
|
144
|
+
nonce?: string;
|
|
145
|
+
conversation_id?: string | null;
|
|
146
|
+
user_request_id?: string | null;
|
|
147
|
+
external_run_ref?: string | null;
|
|
148
|
+
replayed_from_run_id?: string | null;
|
|
149
|
+
recording_sha256?: string | null;
|
|
150
|
+
git_sha?: string;
|
|
151
|
+
environment?: string;
|
|
152
|
+
proofs?: {
|
|
153
|
+
[key: string]: JsonValue;
|
|
154
|
+
}[];
|
|
155
|
+
};
|
|
156
|
+
/** One row of run history — the list view, without the proof bodies. */
|
|
157
|
+
type ProofRunSummary = {
|
|
158
|
+
id: string;
|
|
159
|
+
check_id: string;
|
|
160
|
+
check_slug?: string;
|
|
161
|
+
mode: string;
|
|
162
|
+
trigger_source?: string;
|
|
163
|
+
status?: string;
|
|
164
|
+
verdict?: string | null;
|
|
165
|
+
started_at?: string | null;
|
|
166
|
+
finished_at?: string | null;
|
|
167
|
+
duration_ms?: number;
|
|
168
|
+
cost_usd?: number;
|
|
169
|
+
total_tokens?: number;
|
|
170
|
+
provider_calls?: number;
|
|
171
|
+
summary?: string;
|
|
172
|
+
failure_reason?: string | null;
|
|
173
|
+
};
|
|
174
|
+
/** ProofRunsResponse */
|
|
175
|
+
type ProofRunsResponse = {
|
|
176
|
+
runs?: ProofRunSummary[];
|
|
177
|
+
};
|
|
178
|
+
/** PublicationStatus */
|
|
179
|
+
type PublicationStatus = {
|
|
180
|
+
provider: string;
|
|
181
|
+
level: string;
|
|
182
|
+
owner_id: string | null;
|
|
183
|
+
external_id: string | null;
|
|
184
|
+
version_id: string | null;
|
|
185
|
+
rules_hash: string | null;
|
|
186
|
+
rule_count: number;
|
|
187
|
+
synced_at: string | null;
|
|
188
|
+
has_error: boolean;
|
|
189
|
+
error: {
|
|
190
|
+
[key: string]: unknown;
|
|
191
|
+
} | null;
|
|
192
|
+
};
|
|
193
|
+
/** RefreshRequiredRequest */
|
|
194
|
+
type RefreshRequiredRequest = {
|
|
195
|
+
reason?: "deploy" | "breaking_change" | "operator";
|
|
196
|
+
title?: string | null;
|
|
197
|
+
body?: string | null;
|
|
198
|
+
audience?: "platform" | "user";
|
|
199
|
+
user_id?: string | null;
|
|
200
|
+
};
|
|
201
|
+
/** RunNowRequest */
|
|
202
|
+
type RunNowRequest = {
|
|
203
|
+
/** auto — the gate decides from cadence and budget (default). live — force real providers, still inside the monthly ceiling. replay — never spend money. */
|
|
204
|
+
mode?: string;
|
|
205
|
+
reason?: string;
|
|
206
|
+
};
|
|
207
|
+
/** ScenarioDeleteResponse */
|
|
208
|
+
type ScenarioDeleteResponse = {
|
|
209
|
+
deleted: boolean;
|
|
210
|
+
};
|
|
211
|
+
/** A saved scenario, as the editor sends it. */
|
|
212
|
+
type ScenarioPayload = {
|
|
213
|
+
slug: string;
|
|
214
|
+
label: string;
|
|
215
|
+
description?: string;
|
|
216
|
+
mandate_key: string;
|
|
217
|
+
variables?: {
|
|
218
|
+
[key: string]: JsonValue;
|
|
219
|
+
};
|
|
220
|
+
allowed_routes?: string[];
|
|
221
|
+
expectations?: Expectation[];
|
|
222
|
+
user_input?: string | null;
|
|
223
|
+
is_active?: boolean;
|
|
224
|
+
live_every_seconds?: number;
|
|
225
|
+
max_cost_usd?: number;
|
|
226
|
+
};
|
|
227
|
+
/** A stored scenario, plus the identity of the check it becomes. */
|
|
228
|
+
type ScenarioRow = {
|
|
229
|
+
slug: string;
|
|
230
|
+
label: string;
|
|
231
|
+
description?: string;
|
|
232
|
+
mandate_key: string;
|
|
233
|
+
variables?: {
|
|
234
|
+
[key: string]: JsonValue;
|
|
235
|
+
};
|
|
236
|
+
allowed_routes?: string[];
|
|
237
|
+
expectations?: Expectation[];
|
|
238
|
+
user_input?: string | null;
|
|
239
|
+
is_active?: boolean;
|
|
240
|
+
live_every_seconds?: number;
|
|
241
|
+
max_cost_usd?: number;
|
|
242
|
+
check_slug?: string;
|
|
243
|
+
};
|
|
244
|
+
/** ScenariosResponse */
|
|
245
|
+
type ScenariosResponse = {
|
|
246
|
+
scenarios?: ScenarioRow[];
|
|
247
|
+
};
|
|
248
|
+
/** SessionExchangeRequest */
|
|
249
|
+
type SessionExchangeRequest = {
|
|
250
|
+
handoff: string;
|
|
251
|
+
};
|
|
252
|
+
/** SessionExchangeResponse */
|
|
253
|
+
type SessionExchangeResponse = {
|
|
254
|
+
access_token: string;
|
|
255
|
+
token_type: string;
|
|
256
|
+
};
|
|
257
|
+
/** Supabase Auth webhook envelope. */
|
|
258
|
+
type SupabaseAuthWebhookPayload = {
|
|
259
|
+
type: "INSERT" | "UPDATE";
|
|
260
|
+
table: string;
|
|
261
|
+
record: SupabaseAuthWebhookUser;
|
|
262
|
+
[key: string]: unknown;
|
|
263
|
+
};
|
|
264
|
+
/** Subset of the Supabase ``UserRecord`` payload we actually consume. */
|
|
265
|
+
type SupabaseAuthWebhookUser = {
|
|
266
|
+
/** auth.users.id — UUID */
|
|
267
|
+
id: string;
|
|
268
|
+
email?: string | null;
|
|
269
|
+
aud?: string | null;
|
|
270
|
+
role?: string | null;
|
|
271
|
+
[key: string]: unknown;
|
|
272
|
+
};
|
|
273
|
+
/** WhoamiResponse */
|
|
274
|
+
type WhoamiResponse = {
|
|
275
|
+
authenticated: boolean;
|
|
276
|
+
user_id: string | null;
|
|
277
|
+
is_admin: boolean;
|
|
278
|
+
email: string | null;
|
|
279
|
+
organization_id: string | null;
|
|
280
|
+
};
|
|
281
|
+
/** PublishRequest */
|
|
282
|
+
type aidream__api__routers__dictionary__PublishRequest = {
|
|
283
|
+
/** global | organization | user */
|
|
284
|
+
level: string;
|
|
285
|
+
/** Required for non-global tiers */
|
|
286
|
+
owner_id?: string | null;
|
|
287
|
+
};
|
|
288
|
+
/** MandateCatalogResponse */
|
|
289
|
+
type aidream__api__routers__proof_runs__MandateCatalogResponse = {
|
|
290
|
+
mandates?: MandateOption[];
|
|
291
|
+
rules?: {
|
|
292
|
+
[key: string]: JsonValue;
|
|
293
|
+
}[];
|
|
294
|
+
};
|
|
295
|
+
type InitiateOauthArgs = {
|
|
296
|
+
query: {
|
|
297
|
+
app_redirect: string;
|
|
298
|
+
admin_required?: boolean;
|
|
299
|
+
};
|
|
300
|
+
};
|
|
301
|
+
type InitiateOauthResult = unknown;
|
|
302
|
+
/** Initiate Oauth */
|
|
303
|
+
/** `GET /auth/aimatrx` · aidream · auth public · org exempt */
|
|
304
|
+
declare function initiateOauth(api: Api, args: InitiateOauthArgs, options?: CallOptions): Promise<InitiateOauthResult>;
|
|
305
|
+
type OauthCallbackArgs = {
|
|
306
|
+
query?: {
|
|
307
|
+
code?: string | null;
|
|
308
|
+
state?: string | null;
|
|
309
|
+
error?: string | null;
|
|
310
|
+
error_description?: string | null;
|
|
311
|
+
};
|
|
312
|
+
};
|
|
313
|
+
type OauthCallbackResult = unknown;
|
|
314
|
+
/** Oauth Callback */
|
|
315
|
+
/** `GET /auth/callback` · aidream · auth public · org exempt */
|
|
316
|
+
declare function oauthCallback(api: Api, args?: OauthCallbackArgs, options?: CallOptions): Promise<OauthCallbackResult>;
|
|
317
|
+
type ExchangeSessionHandoffArgs = {
|
|
318
|
+
body: SessionExchangeRequest;
|
|
319
|
+
};
|
|
320
|
+
type ExchangeSessionHandoffResult = SessionExchangeResponse;
|
|
321
|
+
/** Exchange Session Handoff */
|
|
322
|
+
/** `POST /auth/session/exchange` · aidream · auth public · org exempt */
|
|
323
|
+
declare function exchangeSessionHandoff(api: Api, args: ExchangeSessionHandoffArgs, options?: CallOptions): Promise<ExchangeSessionHandoffResult>;
|
|
324
|
+
type ReportOauthIncidentArgs = {
|
|
325
|
+
body: OAuthIncidentRequest;
|
|
326
|
+
};
|
|
327
|
+
type ReportOauthIncidentResult = OAuthIncidentResponse;
|
|
328
|
+
/** Report Oauth Incident */
|
|
329
|
+
/** `POST /auth/session/oauth-incident` · aidream · auth public · org exempt */
|
|
330
|
+
declare function reportOauthIncident(api: Api, args: ReportOauthIncidentArgs, options?: CallOptions): Promise<ReportOauthIncidentResult>;
|
|
331
|
+
type CurrentFileSessionStatusArgs = {
|
|
332
|
+
[key: string]: never;
|
|
333
|
+
};
|
|
334
|
+
type CurrentFileSessionStatusResult = unknown;
|
|
335
|
+
/** Current File Session Status */
|
|
336
|
+
/** `GET /auth/file-session/status` · aidream · auth guest · org exempt */
|
|
337
|
+
declare function currentFileSessionStatus(api: Api, args?: CurrentFileSessionStatusArgs, options?: CallOptions): Promise<CurrentFileSessionStatusResult>;
|
|
338
|
+
type CurrentSessionStatusArgs = {
|
|
339
|
+
[key: string]: never;
|
|
340
|
+
};
|
|
341
|
+
type CurrentSessionStatusResult = unknown;
|
|
342
|
+
/** Current Session Status */
|
|
343
|
+
/** `GET /auth/session/status` · aidream · auth guest · org exempt */
|
|
344
|
+
declare function currentSessionStatus(api: Api, args?: CurrentSessionStatusArgs, options?: CallOptions): Promise<CurrentSessionStatusResult>;
|
|
345
|
+
type WhoamiArgs = {
|
|
346
|
+
[key: string]: never;
|
|
347
|
+
};
|
|
348
|
+
type WhoamiResult = WhoamiResponse;
|
|
349
|
+
/** Whoami */
|
|
350
|
+
/** `GET /auth/whoami` · aidream · auth guest · org exempt */
|
|
351
|
+
declare function whoami(api: Api, args?: WhoamiArgs, options?: CallOptions): Promise<WhoamiResult>;
|
|
352
|
+
type ListMyOrganizationsArgs = {
|
|
353
|
+
[key: string]: never;
|
|
354
|
+
};
|
|
355
|
+
type ListMyOrganizationsResult = OrganizationReport;
|
|
356
|
+
/** List My Organizations */
|
|
357
|
+
/** `GET /auth/organizations` · aidream · auth guest · org exempt */
|
|
358
|
+
declare function listMyOrganizations(api: Api, args?: ListMyOrganizationsArgs, options?: CallOptions): Promise<ListMyOrganizationsResult>;
|
|
359
|
+
type GetAppConfigArgs = {
|
|
360
|
+
path: {
|
|
361
|
+
app: string;
|
|
362
|
+
};
|
|
363
|
+
};
|
|
364
|
+
type GetAppConfigResult = AppConfigResponse;
|
|
365
|
+
/** Get App Config */
|
|
366
|
+
/** `GET /app-config/{app}` · aidream · auth guest · org optional */
|
|
367
|
+
declare function getAppConfig(api: Api, args: GetAppConfigArgs, options?: CallOptions): Promise<GetAppConfigResult>;
|
|
368
|
+
type PublishDictionaryArgs = {
|
|
369
|
+
body: aidream__api__routers__dictionary__PublishRequest;
|
|
370
|
+
};
|
|
371
|
+
type PublishDictionaryResult = unknown;
|
|
372
|
+
/** Publish Dictionary */
|
|
373
|
+
/** `POST /dictionary/publish` · aidream · auth guest · org required · ndjson */
|
|
374
|
+
declare function publishDictionary(api: Api, args: PublishDictionaryArgs, options?: CallOptions): Promise<ApiStream<NdjsonEvent>>;
|
|
375
|
+
type ListPublicationsArgs = {
|
|
376
|
+
[key: string]: never;
|
|
377
|
+
};
|
|
378
|
+
type ListPublicationsResult = PublicationStatus[];
|
|
379
|
+
/** List Publications */
|
|
380
|
+
/** `GET /dictionary/publications` · aidream · auth guest · org exempt */
|
|
381
|
+
declare function listPublications(api: Api, args?: ListPublicationsArgs, options?: CallOptions): Promise<ListPublicationsResult>;
|
|
382
|
+
type OnSignInArgs = {
|
|
383
|
+
body: SupabaseAuthWebhookPayload;
|
|
384
|
+
};
|
|
385
|
+
type OnSignInResult = OnSignInResponse;
|
|
386
|
+
/** Supabase auth webhook acknowledgement (no scoped writes). */
|
|
387
|
+
/** `POST /auth/on-sign-in` · aidream · auth guest · org exempt */
|
|
388
|
+
declare function onSignIn(api: Api, args: OnSignInArgs, options?: CallOptions): Promise<OnSignInResult>;
|
|
389
|
+
type DevLoginAsArgs = {
|
|
390
|
+
body: DevLoginRequest;
|
|
391
|
+
};
|
|
392
|
+
type DevLoginAsResult = DevLoginResponse;
|
|
393
|
+
/** Dev Login As */
|
|
394
|
+
/** `POST /dev/login-as` · aidream · auth guest · org required */
|
|
395
|
+
declare function devLoginAs(api: Api, args: DevLoginAsArgs, options?: CallOptions): Promise<DevLoginAsResult>;
|
|
396
|
+
type ListChecksArgs = {
|
|
397
|
+
[key: string]: never;
|
|
398
|
+
};
|
|
399
|
+
type ListChecksResult = ProofChecksResponse;
|
|
400
|
+
/** List Checks */
|
|
401
|
+
/** `GET /proof-runs/checks` · aidream · auth admin · org optional */
|
|
402
|
+
declare function listChecks(api: Api, args?: ListChecksArgs, options?: CallOptions): Promise<ListChecksResult>;
|
|
403
|
+
type GetCheckArgs = {
|
|
404
|
+
path: {
|
|
405
|
+
slug: string;
|
|
406
|
+
};
|
|
407
|
+
};
|
|
408
|
+
type GetCheckResult = ProofCheckStatusKind;
|
|
409
|
+
/** Get Check */
|
|
410
|
+
/** `GET /proof-runs/checks/{slug}` · aidream · auth admin · org optional */
|
|
411
|
+
declare function getCheck(api: Api, args: GetCheckArgs, options?: CallOptions): Promise<GetCheckResult>;
|
|
412
|
+
type RunCheckArgs = {
|
|
413
|
+
path: {
|
|
414
|
+
slug: string;
|
|
415
|
+
};
|
|
416
|
+
body: RunNowRequest;
|
|
417
|
+
};
|
|
418
|
+
type RunCheckResult = unknown;
|
|
419
|
+
/** Run Check */
|
|
420
|
+
/** `POST /proof-runs/checks/{slug}/run` · aidream · auth admin · org required · ndjson */
|
|
421
|
+
declare function runCheck(api: Api, args: RunCheckArgs, options?: CallOptions): Promise<ApiStream<NdjsonEvent>>;
|
|
422
|
+
type ListRecentRunsArgs = {
|
|
423
|
+
query?: {
|
|
424
|
+
slug?: string | null;
|
|
425
|
+
mode?: string | null;
|
|
426
|
+
limit?: number;
|
|
427
|
+
};
|
|
428
|
+
};
|
|
429
|
+
type ListRecentRunsResult = ProofRunsResponse;
|
|
430
|
+
/** List Recent Runs */
|
|
431
|
+
/** `GET /proof-runs/runs` · aidream · auth admin · org optional */
|
|
432
|
+
declare function listRecentRuns(api: Api, args?: ListRecentRunsArgs, options?: CallOptions): Promise<ListRecentRunsResult>;
|
|
433
|
+
type GetRunDetailArgs = {
|
|
434
|
+
path: {
|
|
435
|
+
run_id: string;
|
|
436
|
+
};
|
|
437
|
+
};
|
|
438
|
+
type GetRunDetailResult = ProofRunDetail;
|
|
439
|
+
/** Get Run Detail */
|
|
440
|
+
/** `GET /proof-runs/runs/{run_id}` · aidream · auth admin · org optional */
|
|
441
|
+
declare function getRunDetail(api: Api, args: GetRunDetailArgs, options?: CallOptions): Promise<GetRunDetailResult>;
|
|
442
|
+
type ListScenariosArgs = {
|
|
443
|
+
[key: string]: never;
|
|
444
|
+
};
|
|
445
|
+
type ListScenariosResult = ScenariosResponse;
|
|
446
|
+
/** List Scenarios */
|
|
447
|
+
/** `GET /proof-runs/scenarios` · aidream · auth admin · org optional */
|
|
448
|
+
declare function listScenarios(api: Api, args?: ListScenariosArgs, options?: CallOptions): Promise<ListScenariosResult>;
|
|
449
|
+
type SaveScenarioArgs = {
|
|
450
|
+
path: {
|
|
451
|
+
slug: string;
|
|
452
|
+
};
|
|
453
|
+
body: ScenarioPayload;
|
|
454
|
+
};
|
|
455
|
+
type SaveScenarioResult = ScenarioRow;
|
|
456
|
+
/** Save Scenario */
|
|
457
|
+
/** `PUT /proof-runs/scenarios/{slug}` · aidream · auth admin · org required */
|
|
458
|
+
declare function saveScenario(api: Api, args: SaveScenarioArgs, options?: CallOptions): Promise<SaveScenarioResult>;
|
|
459
|
+
type DeleteScenarioArgs = {
|
|
460
|
+
path: {
|
|
461
|
+
slug: string;
|
|
462
|
+
};
|
|
463
|
+
};
|
|
464
|
+
type DeleteScenarioResult = ScenarioDeleteResponse;
|
|
465
|
+
/** Delete Scenario */
|
|
466
|
+
/** `DELETE /proof-runs/scenarios/{slug}` · aidream · auth admin · org required */
|
|
467
|
+
declare function deleteScenario(api: Api, args: DeleteScenarioArgs, options?: CallOptions): Promise<DeleteScenarioResult>;
|
|
468
|
+
type MandateCatalogArgs = {
|
|
469
|
+
[key: string]: never;
|
|
470
|
+
};
|
|
471
|
+
type MandateCatalogResult = aidream__api__routers__proof_runs__MandateCatalogResponse;
|
|
472
|
+
/** Mandate Catalog */
|
|
473
|
+
/** `GET /proof-runs/mandate-catalog` · aidream · auth admin · org optional */
|
|
474
|
+
declare function mandateCatalog(api: Api, args?: MandateCatalogArgs, options?: CallOptions): Promise<MandateCatalogResult>;
|
|
475
|
+
type SendRefreshRequiredArgs = {
|
|
476
|
+
body: RefreshRequiredRequest;
|
|
477
|
+
};
|
|
478
|
+
type SendRefreshRequiredResult = DirectivePublishReport;
|
|
479
|
+
/** Send Refresh Required */
|
|
480
|
+
/** `POST /admin/client-directives/refresh-required` · aidream · auth admin · org exempt */
|
|
481
|
+
declare function sendRefreshRequired(api: Api, args: SendRefreshRequiredArgs, options?: CallOptions): Promise<SendRefreshRequiredResult>;
|
|
482
|
+
/** Every JSON operation of this domain by `METHOD path` — for path-keyed calls. */
|
|
483
|
+
interface Operations {
|
|
484
|
+
"GET /auth/aimatrx": {
|
|
485
|
+
args: InitiateOauthArgs;
|
|
486
|
+
result: InitiateOauthResult;
|
|
487
|
+
};
|
|
488
|
+
"GET /auth/callback": {
|
|
489
|
+
args: OauthCallbackArgs;
|
|
490
|
+
result: OauthCallbackResult;
|
|
491
|
+
};
|
|
492
|
+
"POST /auth/session/exchange": {
|
|
493
|
+
args: ExchangeSessionHandoffArgs;
|
|
494
|
+
result: ExchangeSessionHandoffResult;
|
|
495
|
+
};
|
|
496
|
+
"POST /auth/session/oauth-incident": {
|
|
497
|
+
args: ReportOauthIncidentArgs;
|
|
498
|
+
result: ReportOauthIncidentResult;
|
|
499
|
+
};
|
|
500
|
+
"GET /auth/file-session/status": {
|
|
501
|
+
args: CurrentFileSessionStatusArgs;
|
|
502
|
+
result: CurrentFileSessionStatusResult;
|
|
503
|
+
};
|
|
504
|
+
"GET /auth/session/status": {
|
|
505
|
+
args: CurrentSessionStatusArgs;
|
|
506
|
+
result: CurrentSessionStatusResult;
|
|
507
|
+
};
|
|
508
|
+
"GET /auth/whoami": {
|
|
509
|
+
args: WhoamiArgs;
|
|
510
|
+
result: WhoamiResult;
|
|
511
|
+
};
|
|
512
|
+
"GET /auth/organizations": {
|
|
513
|
+
args: ListMyOrganizationsArgs;
|
|
514
|
+
result: ListMyOrganizationsResult;
|
|
515
|
+
};
|
|
516
|
+
"GET /app-config/{app}": {
|
|
517
|
+
args: GetAppConfigArgs;
|
|
518
|
+
result: GetAppConfigResult;
|
|
519
|
+
};
|
|
520
|
+
"GET /dictionary/publications": {
|
|
521
|
+
args: ListPublicationsArgs;
|
|
522
|
+
result: ListPublicationsResult;
|
|
523
|
+
};
|
|
524
|
+
"POST /auth/on-sign-in": {
|
|
525
|
+
args: OnSignInArgs;
|
|
526
|
+
result: OnSignInResult;
|
|
527
|
+
};
|
|
528
|
+
"POST /dev/login-as": {
|
|
529
|
+
args: DevLoginAsArgs;
|
|
530
|
+
result: DevLoginAsResult;
|
|
531
|
+
};
|
|
532
|
+
"GET /proof-runs/checks": {
|
|
533
|
+
args: ListChecksArgs;
|
|
534
|
+
result: ListChecksResult;
|
|
535
|
+
};
|
|
536
|
+
"GET /proof-runs/checks/{slug}": {
|
|
537
|
+
args: GetCheckArgs;
|
|
538
|
+
result: GetCheckResult;
|
|
539
|
+
};
|
|
540
|
+
"GET /proof-runs/runs": {
|
|
541
|
+
args: ListRecentRunsArgs;
|
|
542
|
+
result: ListRecentRunsResult;
|
|
543
|
+
};
|
|
544
|
+
"GET /proof-runs/runs/{run_id}": {
|
|
545
|
+
args: GetRunDetailArgs;
|
|
546
|
+
result: GetRunDetailResult;
|
|
547
|
+
};
|
|
548
|
+
"GET /proof-runs/scenarios": {
|
|
549
|
+
args: ListScenariosArgs;
|
|
550
|
+
result: ListScenariosResult;
|
|
551
|
+
};
|
|
552
|
+
"PUT /proof-runs/scenarios/{slug}": {
|
|
553
|
+
args: SaveScenarioArgs;
|
|
554
|
+
result: SaveScenarioResult;
|
|
555
|
+
};
|
|
556
|
+
"DELETE /proof-runs/scenarios/{slug}": {
|
|
557
|
+
args: DeleteScenarioArgs;
|
|
558
|
+
result: DeleteScenarioResult;
|
|
559
|
+
};
|
|
560
|
+
"GET /proof-runs/mandate-catalog": {
|
|
561
|
+
args: MandateCatalogArgs;
|
|
562
|
+
result: MandateCatalogResult;
|
|
563
|
+
};
|
|
564
|
+
"POST /admin/client-directives/refresh-required": {
|
|
565
|
+
args: SendRefreshRequiredArgs;
|
|
566
|
+
result: SendRefreshRequiredResult;
|
|
567
|
+
};
|
|
568
|
+
}
|
|
569
|
+
/** Path-keyed call, scoped to this domain only (never a global path map). */
|
|
570
|
+
declare function call<K extends keyof Operations>(api: Api, key: K, args?: Operations[K]["args"], options?: CallOptions): Promise<Operations[K]["result"]>;
|
|
571
|
+
|
|
572
|
+
export { type AppConfigResponse, type CurrentFileSessionStatusArgs, type CurrentFileSessionStatusResult, type CurrentSessionStatusArgs, type CurrentSessionStatusResult, type DeleteScenarioArgs, type DeleteScenarioResult, type DevLoginAsArgs, type DevLoginAsResult, type DevLoginRequest, type DevLoginResponse, type DirectivePublishReport, type ExchangeSessionHandoffArgs, type ExchangeSessionHandoffResult, type Expectation, type GetAppConfigArgs, type GetAppConfigResult, type GetCheckArgs, type GetCheckResult, type GetRunDetailArgs, type GetRunDetailResult, type InitiateOauthArgs, type InitiateOauthResult, type ListChecksArgs, type ListChecksResult, type ListMyOrganizationsArgs, type ListMyOrganizationsResult, type ListPublicationsArgs, type ListPublicationsResult, type ListRecentRunsArgs, type ListRecentRunsResult, type ListScenariosArgs, type ListScenariosResult, type MandateCatalogArgs, type MandateCatalogResult, type MandateOption, type OAuthIncidentRequest, type OAuthIncidentResponse, type OauthCallbackArgs, type OauthCallbackResult, type OnSignInArgs, type OnSignInResponse, type OnSignInResult, type Operations, type OrganizationReport, type OrganizationSummary, type ProofCheckStatusKind, type ProofChecksResponse, type ProofRunDetail, type ProofRunSummary, type ProofRunsResponse, type PublicationStatus, type PublishDictionaryArgs, type PublishDictionaryResult, type RefreshRequiredRequest, type ReportOauthIncidentArgs, type ReportOauthIncidentResult, type RunCheckArgs, type RunCheckResult, type RunNowRequest, type SaveScenarioArgs, type SaveScenarioResult, type ScenarioDeleteResponse, type ScenarioPayload, type ScenarioRow, type ScenariosResponse, type SendRefreshRequiredArgs, type SendRefreshRequiredResult, type SessionExchangeRequest, type SessionExchangeResponse, type SupabaseAuthWebhookPayload, type SupabaseAuthWebhookUser, type WhoamiArgs, type WhoamiResponse, type WhoamiResult, type aidream__api__routers__dictionary__PublishRequest, type aidream__api__routers__proof_runs__MandateCatalogResponse, call, currentFileSessionStatus, currentSessionStatus, deleteScenario, devLoginAs, exchangeSessionHandoff, getAppConfig, getCheck, getRunDetail, initiateOauth, listChecks, listMyOrganizations, listPublications, listRecentRuns, listScenarios, mandateCatalog, oauthCallback, onSignIn, publishDictionary, reportOauthIncident, runCheck, saveScenario, sendRefreshRequired, whoami };
|