@magemetrics/core 0.10.0-rc2 → 0.11.0
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/dist/index.d.ts +187 -1189
- package/dist/index.js +35 -10
- package/dist/index.js.map +1 -1
- package/package.json +5 -5
package/dist/index.d.ts
CHANGED
|
@@ -157,7 +157,6 @@ declare interface components {
|
|
|
157
157
|
id: number;
|
|
158
158
|
flow_data_id: number;
|
|
159
159
|
created_at: string;
|
|
160
|
-
bookmarked: boolean;
|
|
161
160
|
flow_data?: {
|
|
162
161
|
is_materialized: boolean | null;
|
|
163
162
|
last_materialized_at: string | null;
|
|
@@ -225,7 +224,6 @@ declare interface components {
|
|
|
225
224
|
id: number;
|
|
226
225
|
flow_data_id: number;
|
|
227
226
|
created_at: string;
|
|
228
|
-
bookmarked: boolean;
|
|
229
227
|
flow_data?: {
|
|
230
228
|
is_materialized: boolean | null;
|
|
231
229
|
last_materialized_at: string | null;
|
|
@@ -308,6 +306,27 @@ declare interface components {
|
|
|
308
306
|
output_data: {
|
|
309
307
|
[key: string]: unknown;
|
|
310
308
|
} | null;
|
|
309
|
+
tasks?: {
|
|
310
|
+
id: string;
|
|
311
|
+
title: string;
|
|
312
|
+
/** @enum {string} */
|
|
313
|
+
status: "pending" | "in_progress" | "completed" | "failed";
|
|
314
|
+
parent_id?: string;
|
|
315
|
+
started_at?: string;
|
|
316
|
+
completed_at?: string;
|
|
317
|
+
summary?: {
|
|
318
|
+
/** @description SHORT summary (max 10 words) e.g. 'Found 847 records' or 'Generated trend chart' */
|
|
319
|
+
outcome: string;
|
|
320
|
+
/** @description List of tools used during this task, e.g. ['generateDataReport x3', 'generateVisualization x1'] */
|
|
321
|
+
tool_calls: string[];
|
|
322
|
+
};
|
|
323
|
+
artifacts?: {
|
|
324
|
+
/** @enum {string} */
|
|
325
|
+
type: "report" | "visualization";
|
|
326
|
+
/** @description The ID returned by generateDataReport or generateVisualization */
|
|
327
|
+
id: string;
|
|
328
|
+
}[];
|
|
329
|
+
}[] | null;
|
|
311
330
|
error_message: string | null;
|
|
312
331
|
};
|
|
313
332
|
StartAgentRunRequest: {
|
|
@@ -324,8 +343,6 @@ declare interface components {
|
|
|
324
343
|
company_id: number;
|
|
325
344
|
name: string;
|
|
326
345
|
objective: string | null;
|
|
327
|
-
generated_inputs_fragment: string | null;
|
|
328
|
-
generated_outputs_fragment: string | null;
|
|
329
346
|
generated_objective_fragment: string | null;
|
|
330
347
|
active_tools: string[] | null;
|
|
331
348
|
input_schema: ({
|
|
@@ -359,6 +376,12 @@ declare interface components {
|
|
|
359
376
|
output_schema: {
|
|
360
377
|
[key: string]: unknown;
|
|
361
378
|
} | null;
|
|
379
|
+
task_plan: {
|
|
380
|
+
id: string;
|
|
381
|
+
title: string;
|
|
382
|
+
/** @description Detailed steps or description of what the task will do */
|
|
383
|
+
description?: string;
|
|
384
|
+
}[] | null;
|
|
362
385
|
master_prompt_name: string | null;
|
|
363
386
|
master_prompt_version: number | null;
|
|
364
387
|
created_at: string;
|
|
@@ -494,15 +517,15 @@ export declare interface ExternalAuthProviderConfig {
|
|
|
494
517
|
declare type FrontendRecentFlows = z.infer<typeof FrontendRecentFlowsSchema>;
|
|
495
518
|
|
|
496
519
|
declare const FrontendRecentFlowsSchema: z.ZodObject<{
|
|
497
|
-
id: z.ZodString;
|
|
498
520
|
title: z.ZodNullable<z.ZodString>;
|
|
521
|
+
id: z.ZodString;
|
|
499
522
|
request: z.ZodString;
|
|
500
523
|
created_at: z.ZodString;
|
|
501
524
|
user_id: z.ZodNullable<z.ZodString>;
|
|
502
525
|
application_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
503
526
|
}, z.core.$strip>;
|
|
504
527
|
|
|
505
|
-
export declare const getPublicApiClient: (apiUrl: string, apiKey: string) => Client<
|
|
528
|
+
export declare const getPublicApiClient: (apiUrl: string, apiKey: string) => Client<PublicPaths>;
|
|
506
529
|
|
|
507
530
|
declare const HEADER_SP_TOKEN: "sp-access-token";
|
|
508
531
|
|
|
@@ -523,6 +546,7 @@ declare const inputSchema: z.ZodObject<{
|
|
|
523
546
|
}, z.core.$strip>;
|
|
524
547
|
|
|
525
548
|
declare const inputSchema_2: z.ZodObject<{
|
|
549
|
+
reportId: z.ZodNumber;
|
|
526
550
|
chartType: z.ZodEnum<{
|
|
527
551
|
bar: "bar";
|
|
528
552
|
"line/area": "line/area";
|
|
@@ -555,6 +579,8 @@ declare const inputSchema_7: z.ZodObject<{
|
|
|
555
579
|
|
|
556
580
|
declare const inputSchema_8: z.ZodObject<{
|
|
557
581
|
query: z.ZodString;
|
|
582
|
+
fromDate: z.ZodOptional<z.ZodISODate>;
|
|
583
|
+
toDate: z.ZodOptional<z.ZodISODate>;
|
|
558
584
|
}, z.core.$strip>;
|
|
559
585
|
|
|
560
586
|
declare const inputSchema_9: z.ZodObject<{
|
|
@@ -569,8 +595,6 @@ declare const inputSchema_9: z.ZodObject<{
|
|
|
569
595
|
}, z.core.$strip>>;
|
|
570
596
|
}, z.core.$strip>;
|
|
571
597
|
|
|
572
|
-
declare type InternalApiClient = Simplify<Client<NoAuthPaths, `${string}/${string}`>>;
|
|
573
|
-
|
|
574
598
|
export declare class MageMetricsChatTransport extends DefaultChatTransport<MMChatUIMessage> {
|
|
575
599
|
constructor(apiUrl: string, flowId: string, options: MageMetricsChatTransportOptions);
|
|
576
600
|
}
|
|
@@ -630,7 +654,6 @@ export declare class MageMetricsClient {
|
|
|
630
654
|
id: number;
|
|
631
655
|
flow_data_id: number;
|
|
632
656
|
created_at: string;
|
|
633
|
-
bookmarked: boolean;
|
|
634
657
|
flow_data?: {
|
|
635
658
|
is_materialized: boolean | null;
|
|
636
659
|
last_materialized_at: string | null;
|
|
@@ -709,7 +732,6 @@ export declare class MageMetricsClient {
|
|
|
709
732
|
} & {
|
|
710
733
|
[key: string]: unknown;
|
|
711
734
|
};
|
|
712
|
-
bookmarked: boolean;
|
|
713
735
|
status: string | null;
|
|
714
736
|
is_removed: boolean;
|
|
715
737
|
is_materialized: boolean | null;
|
|
@@ -762,8 +784,8 @@ export declare class MageMetricsClient {
|
|
|
762
784
|
}>;
|
|
763
785
|
delete: (canvasId: string) => Promise<void>;
|
|
764
786
|
getForFlow: (flowId: string) => Promise<{
|
|
765
|
-
id: string;
|
|
766
787
|
title: string | null;
|
|
788
|
+
id: string;
|
|
767
789
|
nodes: any[];
|
|
768
790
|
edges: any[];
|
|
769
791
|
is_public: boolean;
|
|
@@ -799,7 +821,7 @@ export declare class MageMetricsClient {
|
|
|
799
821
|
}[]>;
|
|
800
822
|
}>;
|
|
801
823
|
};
|
|
802
|
-
client():
|
|
824
|
+
client(): PublicApiClient;
|
|
803
825
|
private createSupabaseHeaderMiddleware;
|
|
804
826
|
}
|
|
805
827
|
|
|
@@ -870,10 +892,6 @@ declare type MMUiTools = {
|
|
|
870
892
|
askUserQuestion: UiTool_9;
|
|
871
893
|
};
|
|
872
894
|
|
|
873
|
-
declare type NoAuthPaths = Simplify<{
|
|
874
|
-
[Path in keyof paths]: RemoveAuthHeader<paths[Path]>;
|
|
875
|
-
}>;
|
|
876
|
-
|
|
877
895
|
declare interface operations {
|
|
878
896
|
exchangeExternalToken: {
|
|
879
897
|
parameters: {
|
|
@@ -1371,7 +1389,6 @@ declare interface operations {
|
|
|
1371
1389
|
} & {
|
|
1372
1390
|
[key: string]: unknown;
|
|
1373
1391
|
};
|
|
1374
|
-
bookmarked: boolean;
|
|
1375
1392
|
status: string | null;
|
|
1376
1393
|
is_removed: boolean;
|
|
1377
1394
|
is_materialized: boolean | null;
|
|
@@ -1758,68 +1775,6 @@ declare interface operations {
|
|
|
1758
1775
|
};
|
|
1759
1776
|
};
|
|
1760
1777
|
};
|
|
1761
|
-
toggleBookmark: {
|
|
1762
|
-
parameters: {
|
|
1763
|
-
query?: never;
|
|
1764
|
-
header: {
|
|
1765
|
-
"sp-access-token": string;
|
|
1766
|
-
};
|
|
1767
|
-
path?: never;
|
|
1768
|
-
cookie?: never;
|
|
1769
|
-
};
|
|
1770
|
-
/** @description Toggle bookmark for timeline item */
|
|
1771
|
-
requestBody: {
|
|
1772
|
-
content: {
|
|
1773
|
-
"application/json": {
|
|
1774
|
-
/** @enum {string} */
|
|
1775
|
-
type: "dataReport";
|
|
1776
|
-
flowDataId: number;
|
|
1777
|
-
bookmarked: boolean;
|
|
1778
|
-
} | {
|
|
1779
|
-
/** @enum {string} */
|
|
1780
|
-
type: "visualization";
|
|
1781
|
-
flowDataVisualizationId: number;
|
|
1782
|
-
bookmarked: boolean;
|
|
1783
|
-
};
|
|
1784
|
-
};
|
|
1785
|
-
};
|
|
1786
|
-
responses: {
|
|
1787
|
-
/** @description Successfully toggled bookmark */
|
|
1788
|
-
200: {
|
|
1789
|
-
headers: {
|
|
1790
|
-
[name: string]: unknown;
|
|
1791
|
-
};
|
|
1792
|
-
content: {
|
|
1793
|
-
"application/json": {
|
|
1794
|
-
success: boolean;
|
|
1795
|
-
bookmarked: boolean;
|
|
1796
|
-
};
|
|
1797
|
-
};
|
|
1798
|
-
};
|
|
1799
|
-
/** @description Timeline item not found */
|
|
1800
|
-
404: {
|
|
1801
|
-
headers: {
|
|
1802
|
-
[name: string]: unknown;
|
|
1803
|
-
};
|
|
1804
|
-
content: {
|
|
1805
|
-
"application/json": {
|
|
1806
|
-
error: string;
|
|
1807
|
-
};
|
|
1808
|
-
};
|
|
1809
|
-
};
|
|
1810
|
-
/** @description Something wrong happened */
|
|
1811
|
-
500: {
|
|
1812
|
-
headers: {
|
|
1813
|
-
[name: string]: unknown;
|
|
1814
|
-
};
|
|
1815
|
-
content: {
|
|
1816
|
-
"application/json": {
|
|
1817
|
-
error: string;
|
|
1818
|
-
};
|
|
1819
|
-
};
|
|
1820
|
-
};
|
|
1821
|
-
};
|
|
1822
|
-
};
|
|
1823
1778
|
retrieveLatestDataRefresh: {
|
|
1824
1779
|
parameters: {
|
|
1825
1780
|
query?: never;
|
|
@@ -2112,7 +2067,6 @@ declare interface operations {
|
|
|
2112
2067
|
} & {
|
|
2113
2068
|
[key: string]: unknown;
|
|
2114
2069
|
};
|
|
2115
|
-
bookmarked: boolean;
|
|
2116
2070
|
status: string | null;
|
|
2117
2071
|
is_removed: boolean;
|
|
2118
2072
|
is_materialized: boolean | null;
|
|
@@ -2545,7 +2499,6 @@ declare interface operations {
|
|
|
2545
2499
|
id: number;
|
|
2546
2500
|
flow_data_id: number;
|
|
2547
2501
|
created_at: string;
|
|
2548
|
-
bookmarked: boolean;
|
|
2549
2502
|
flow_data?: {
|
|
2550
2503
|
is_materialized: boolean | null;
|
|
2551
2504
|
last_materialized_at: string | null;
|
|
@@ -3167,34 +3120,27 @@ declare interface operations {
|
|
|
3167
3120
|
};
|
|
3168
3121
|
};
|
|
3169
3122
|
};
|
|
3170
|
-
|
|
3123
|
+
listAgents: {
|
|
3171
3124
|
parameters: {
|
|
3172
3125
|
query?: never;
|
|
3173
|
-
header
|
|
3126
|
+
header: {
|
|
3127
|
+
"sp-access-token": string;
|
|
3128
|
+
};
|
|
3174
3129
|
path?: never;
|
|
3175
3130
|
cookie?: never;
|
|
3176
3131
|
};
|
|
3177
|
-
requestBody?:
|
|
3178
|
-
content: {
|
|
3179
|
-
"application/json": {
|
|
3180
|
-
request: string;
|
|
3181
|
-
sql: string;
|
|
3182
|
-
};
|
|
3183
|
-
};
|
|
3184
|
-
};
|
|
3132
|
+
requestBody?: never;
|
|
3185
3133
|
responses: {
|
|
3186
|
-
/** @description
|
|
3134
|
+
/** @description List of agents for the company */
|
|
3187
3135
|
200: {
|
|
3188
3136
|
headers: {
|
|
3189
3137
|
[name: string]: unknown;
|
|
3190
3138
|
};
|
|
3191
3139
|
content: {
|
|
3192
|
-
"application/json":
|
|
3193
|
-
id: number;
|
|
3194
|
-
};
|
|
3140
|
+
"application/json": components["schemas"]["Agent"][];
|
|
3195
3141
|
};
|
|
3196
3142
|
};
|
|
3197
|
-
/** @description
|
|
3143
|
+
/** @description Internal server error */
|
|
3198
3144
|
500: {
|
|
3199
3145
|
headers: {
|
|
3200
3146
|
[name: string]: unknown;
|
|
@@ -3207,38 +3153,87 @@ declare interface operations {
|
|
|
3207
3153
|
};
|
|
3208
3154
|
};
|
|
3209
3155
|
};
|
|
3210
|
-
|
|
3156
|
+
createAgent: {
|
|
3211
3157
|
parameters: {
|
|
3212
3158
|
query?: never;
|
|
3213
|
-
header
|
|
3214
|
-
|
|
3215
|
-
id: string;
|
|
3159
|
+
header: {
|
|
3160
|
+
"sp-access-token": string;
|
|
3216
3161
|
};
|
|
3162
|
+
path?: never;
|
|
3217
3163
|
cookie?: never;
|
|
3218
3164
|
};
|
|
3219
|
-
requestBody
|
|
3165
|
+
requestBody: {
|
|
3220
3166
|
content: {
|
|
3221
3167
|
"application/json": {
|
|
3222
|
-
|
|
3223
|
-
|
|
3224
|
-
|
|
3225
|
-
|
|
3168
|
+
name: string;
|
|
3169
|
+
objective?: string;
|
|
3170
|
+
generated_objective_fragment?: string;
|
|
3171
|
+
/** @default [] */
|
|
3172
|
+
active_tools?: string[];
|
|
3173
|
+
input_schema?: ({
|
|
3174
|
+
id: string;
|
|
3175
|
+
name: string;
|
|
3176
|
+
description?: string;
|
|
3177
|
+
/** @enum {string} */
|
|
3178
|
+
type: "enum";
|
|
3179
|
+
options: {
|
|
3180
|
+
value: string;
|
|
3181
|
+
fragment?: string;
|
|
3182
|
+
}[];
|
|
3183
|
+
/** @default false */
|
|
3184
|
+
useFragmentMapping?: boolean;
|
|
3185
|
+
/** @default false */
|
|
3186
|
+
required?: boolean;
|
|
3187
|
+
} | {
|
|
3188
|
+
id: string;
|
|
3189
|
+
name: string;
|
|
3190
|
+
description?: string;
|
|
3191
|
+
/** @enum {string} */
|
|
3192
|
+
type: "text";
|
|
3193
|
+
/**
|
|
3194
|
+
* @default false
|
|
3195
|
+
* @enum {boolean}
|
|
3196
|
+
*/
|
|
3197
|
+
useFragmentMapping?: false;
|
|
3198
|
+
/** @default false */
|
|
3199
|
+
required?: boolean;
|
|
3200
|
+
})[];
|
|
3201
|
+
output_schema: {
|
|
3202
|
+
[key: string]: unknown;
|
|
3203
|
+
};
|
|
3204
|
+
task_plan?: {
|
|
3205
|
+
id: string;
|
|
3206
|
+
title: string;
|
|
3207
|
+
/** @description Detailed steps or description of what the task will do */
|
|
3208
|
+
description?: string;
|
|
3209
|
+
}[];
|
|
3210
|
+
master_prompt_name?: string;
|
|
3211
|
+
master_prompt_version?: number;
|
|
3226
3212
|
};
|
|
3227
3213
|
};
|
|
3228
3214
|
};
|
|
3229
3215
|
responses: {
|
|
3230
|
-
/** @description
|
|
3216
|
+
/** @description The created agent */
|
|
3231
3217
|
200: {
|
|
3218
|
+
headers: {
|
|
3219
|
+
[name: string]: unknown;
|
|
3220
|
+
};
|
|
3221
|
+
content: {
|
|
3222
|
+
"application/json": components["schemas"]["Agent"];
|
|
3223
|
+
};
|
|
3224
|
+
};
|
|
3225
|
+
/** @description Invalid request */
|
|
3226
|
+
400: {
|
|
3232
3227
|
headers: {
|
|
3233
3228
|
[name: string]: unknown;
|
|
3234
3229
|
};
|
|
3235
3230
|
content: {
|
|
3236
3231
|
"application/json": {
|
|
3237
|
-
|
|
3232
|
+
error: string;
|
|
3238
3233
|
};
|
|
3239
3234
|
};
|
|
3240
3235
|
};
|
|
3241
|
-
/** @description
|
|
3236
|
+
/** @description Internal server error */
|
|
3242
3237
|
500: {
|
|
3243
3238
|
headers: {
|
|
3244
3239
|
[name: string]: unknown;
|
|
@@ -3251,50 +3246,30 @@ declare interface operations {
|
|
|
3251
3246
|
};
|
|
3252
3247
|
};
|
|
3253
3248
|
};
|
|
3254
|
-
|
|
3249
|
+
getAgent: {
|
|
3255
3250
|
parameters: {
|
|
3256
3251
|
query?: never;
|
|
3257
|
-
header
|
|
3258
|
-
|
|
3259
|
-
cookie?: never;
|
|
3260
|
-
};
|
|
3261
|
-
requestBody?: {
|
|
3262
|
-
content: {
|
|
3263
|
-
"application/json": {
|
|
3264
|
-
sql: string;
|
|
3265
|
-
};
|
|
3252
|
+
header: {
|
|
3253
|
+
"sp-access-token": string;
|
|
3266
3254
|
};
|
|
3255
|
+
path: {
|
|
3256
|
+
id: string;
|
|
3257
|
+
};
|
|
3258
|
+
cookie?: never;
|
|
3267
3259
|
};
|
|
3260
|
+
requestBody?: never;
|
|
3268
3261
|
responses: {
|
|
3269
|
-
/** @description
|
|
3262
|
+
/** @description The agent */
|
|
3270
3263
|
200: {
|
|
3271
3264
|
headers: {
|
|
3272
3265
|
[name: string]: unknown;
|
|
3273
3266
|
};
|
|
3274
3267
|
content: {
|
|
3275
|
-
"application/json":
|
|
3276
|
-
columns: {
|
|
3277
|
-
id: string;
|
|
3278
|
-
accessorKey: string;
|
|
3279
|
-
header: string;
|
|
3280
|
-
cell?: unknown;
|
|
3281
|
-
meta?: {
|
|
3282
|
-
[key: string]: unknown;
|
|
3283
|
-
};
|
|
3284
|
-
}[];
|
|
3285
|
-
data: {
|
|
3286
|
-
[key: string]: unknown;
|
|
3287
|
-
}[];
|
|
3288
|
-
metadata?: {
|
|
3289
|
-
wasSampled: boolean;
|
|
3290
|
-
originalCount: number;
|
|
3291
|
-
sampledCount: number;
|
|
3292
|
-
};
|
|
3293
|
-
};
|
|
3268
|
+
"application/json": components["schemas"]["Agent"];
|
|
3294
3269
|
};
|
|
3295
3270
|
};
|
|
3296
|
-
/** @description
|
|
3297
|
-
|
|
3271
|
+
/** @description Agent not found */
|
|
3272
|
+
404: {
|
|
3298
3273
|
headers: {
|
|
3299
3274
|
[name: string]: unknown;
|
|
3300
3275
|
};
|
|
@@ -3317,45 +3292,77 @@ declare interface operations {
|
|
|
3317
3292
|
};
|
|
3318
3293
|
};
|
|
3319
3294
|
};
|
|
3320
|
-
|
|
3295
|
+
updateAgent: {
|
|
3321
3296
|
parameters: {
|
|
3322
3297
|
query?: never;
|
|
3323
|
-
header
|
|
3298
|
+
header: {
|
|
3299
|
+
"sp-access-token": string;
|
|
3300
|
+
};
|
|
3324
3301
|
path: {
|
|
3325
|
-
|
|
3302
|
+
id: string;
|
|
3326
3303
|
};
|
|
3327
3304
|
cookie?: never;
|
|
3328
3305
|
};
|
|
3329
|
-
requestBody
|
|
3306
|
+
requestBody: {
|
|
3307
|
+
content: {
|
|
3308
|
+
"application/json": {
|
|
3309
|
+
name?: string;
|
|
3310
|
+
objective?: string | null;
|
|
3311
|
+
generated_objective_fragment?: string | null;
|
|
3312
|
+
active_tools?: string[];
|
|
3313
|
+
input_schema?: ({
|
|
3314
|
+
id: string;
|
|
3315
|
+
name: string;
|
|
3316
|
+
description?: string;
|
|
3317
|
+
/** @enum {string} */
|
|
3318
|
+
type: "enum";
|
|
3319
|
+
options: {
|
|
3320
|
+
value: string;
|
|
3321
|
+
fragment?: string;
|
|
3322
|
+
}[];
|
|
3323
|
+
/** @default false */
|
|
3324
|
+
useFragmentMapping?: boolean;
|
|
3325
|
+
/** @default false */
|
|
3326
|
+
required?: boolean;
|
|
3327
|
+
} | {
|
|
3328
|
+
id: string;
|
|
3329
|
+
name: string;
|
|
3330
|
+
description?: string;
|
|
3331
|
+
/** @enum {string} */
|
|
3332
|
+
type: "text";
|
|
3333
|
+
/**
|
|
3334
|
+
* @default false
|
|
3335
|
+
* @enum {boolean}
|
|
3336
|
+
*/
|
|
3337
|
+
useFragmentMapping?: false;
|
|
3338
|
+
/** @default false */
|
|
3339
|
+
required?: boolean;
|
|
3340
|
+
})[] | null;
|
|
3341
|
+
output_schema?: {
|
|
3342
|
+
[key: string]: unknown;
|
|
3343
|
+
} | null;
|
|
3344
|
+
task_plan?: {
|
|
3345
|
+
id: string;
|
|
3346
|
+
title: string;
|
|
3347
|
+
/** @description Detailed steps or description of what the task will do */
|
|
3348
|
+
description?: string;
|
|
3349
|
+
}[] | null;
|
|
3350
|
+
master_prompt_name?: string | null;
|
|
3351
|
+
master_prompt_version?: number | null;
|
|
3352
|
+
};
|
|
3353
|
+
};
|
|
3354
|
+
};
|
|
3330
3355
|
responses: {
|
|
3331
|
-
/** @description
|
|
3356
|
+
/** @description The updated agent */
|
|
3332
3357
|
200: {
|
|
3333
3358
|
headers: {
|
|
3334
3359
|
[name: string]: unknown;
|
|
3335
3360
|
};
|
|
3336
3361
|
content: {
|
|
3337
|
-
"application/json":
|
|
3338
|
-
columns: {
|
|
3339
|
-
id: string;
|
|
3340
|
-
accessorKey: string;
|
|
3341
|
-
header: string;
|
|
3342
|
-
cell?: unknown;
|
|
3343
|
-
meta?: {
|
|
3344
|
-
[key: string]: unknown;
|
|
3345
|
-
};
|
|
3346
|
-
}[];
|
|
3347
|
-
data: {
|
|
3348
|
-
[key: string]: unknown;
|
|
3349
|
-
}[];
|
|
3350
|
-
metadata?: {
|
|
3351
|
-
wasSampled: boolean;
|
|
3352
|
-
originalCount: number;
|
|
3353
|
-
sampledCount: number;
|
|
3354
|
-
};
|
|
3355
|
-
};
|
|
3362
|
+
"application/json": components["schemas"]["Agent"];
|
|
3356
3363
|
};
|
|
3357
3364
|
};
|
|
3358
|
-
/** @description Invalid request */
|
|
3365
|
+
/** @description Invalid request (e.g., invalid tools) */
|
|
3359
3366
|
400: {
|
|
3360
3367
|
headers: {
|
|
3361
3368
|
[name: string]: unknown;
|
|
@@ -3366,7 +3373,7 @@ declare interface operations {
|
|
|
3366
3373
|
};
|
|
3367
3374
|
};
|
|
3368
3375
|
};
|
|
3369
|
-
/** @description
|
|
3376
|
+
/** @description Agent not found */
|
|
3370
3377
|
404: {
|
|
3371
3378
|
headers: {
|
|
3372
3379
|
[name: string]: unknown;
|
|
@@ -3390,843 +3397,20 @@ declare interface operations {
|
|
|
3390
3397
|
};
|
|
3391
3398
|
};
|
|
3392
3399
|
};
|
|
3393
|
-
|
|
3400
|
+
deleteAgent: {
|
|
3394
3401
|
parameters: {
|
|
3395
3402
|
query?: never;
|
|
3396
|
-
header
|
|
3397
|
-
|
|
3403
|
+
header: {
|
|
3404
|
+
"sp-access-token": string;
|
|
3405
|
+
};
|
|
3406
|
+
path: {
|
|
3407
|
+
id: string;
|
|
3408
|
+
};
|
|
3398
3409
|
cookie?: never;
|
|
3399
3410
|
};
|
|
3400
3411
|
requestBody?: never;
|
|
3401
3412
|
responses: {
|
|
3402
|
-
/** @description
|
|
3403
|
-
200: {
|
|
3404
|
-
headers: {
|
|
3405
|
-
[name: string]: unknown;
|
|
3406
|
-
};
|
|
3407
|
-
content: {
|
|
3408
|
-
"application/json": {
|
|
3409
|
-
id: number;
|
|
3410
|
-
field_key: string;
|
|
3411
|
-
display_name: string;
|
|
3412
|
-
/** @default true */
|
|
3413
|
-
is_active: boolean;
|
|
3414
|
-
/** @default false */
|
|
3415
|
-
include_visualization: boolean;
|
|
3416
|
-
values: (string | {
|
|
3417
|
-
label: string;
|
|
3418
|
-
value: string;
|
|
3419
|
-
})[];
|
|
3420
|
-
}[];
|
|
3421
|
-
};
|
|
3422
|
-
};
|
|
3423
|
-
/** @description Something wrong happened */
|
|
3424
|
-
500: {
|
|
3425
|
-
headers: {
|
|
3426
|
-
[name: string]: unknown;
|
|
3427
|
-
};
|
|
3428
|
-
content: {
|
|
3429
|
-
"application/json": {
|
|
3430
|
-
error: string;
|
|
3431
|
-
};
|
|
3432
|
-
};
|
|
3433
|
-
};
|
|
3434
|
-
};
|
|
3435
|
-
};
|
|
3436
|
-
getSankeyData: {
|
|
3437
|
-
parameters: {
|
|
3438
|
-
query?: {
|
|
3439
|
-
user_id?: string;
|
|
3440
|
-
cluster_id?: number | null;
|
|
3441
|
-
subcluster_id?: number | null;
|
|
3442
|
-
/** @description Comma-separated list of bins: lt0.6,0.6-0.8,0.8-1 (applies to average score) */
|
|
3443
|
-
score_ranges?: string;
|
|
3444
|
-
/** @description JSON-encoded map of { [field_key]: string[] } to be passed to RPC */
|
|
3445
|
-
external_filters?: string;
|
|
3446
|
-
max_results?: number;
|
|
3447
|
-
/** @description If true, exclude users with @magemetrics emails from results */
|
|
3448
|
-
exclude_magemetrics_emails?: string;
|
|
3449
|
-
};
|
|
3450
|
-
header?: never;
|
|
3451
|
-
path?: never;
|
|
3452
|
-
cookie?: never;
|
|
3453
|
-
};
|
|
3454
|
-
requestBody?: never;
|
|
3455
|
-
responses: {
|
|
3456
|
-
/** @description Sankey data retrieved successfully */
|
|
3457
|
-
200: {
|
|
3458
|
-
headers: {
|
|
3459
|
-
[name: string]: unknown;
|
|
3460
|
-
};
|
|
3461
|
-
content: {
|
|
3462
|
-
"application/json": {
|
|
3463
|
-
metadata: {
|
|
3464
|
-
total_clusters: number;
|
|
3465
|
-
total_requests: number;
|
|
3466
|
-
generation_timestamp: string;
|
|
3467
|
-
};
|
|
3468
|
-
clusters: {
|
|
3469
|
-
cluster_id: number;
|
|
3470
|
-
subcluster_id?: number | null;
|
|
3471
|
-
cluster_name: string;
|
|
3472
|
-
representative_questions: {
|
|
3473
|
-
subcluster_id: number;
|
|
3474
|
-
question: string;
|
|
3475
|
-
count: number;
|
|
3476
|
-
sample_requests: string[];
|
|
3477
|
-
avg_confidence_score?: number | null;
|
|
3478
|
-
avg_assumptions_score?: number | null;
|
|
3479
|
-
avg_friendliness_score?: number | null;
|
|
3480
|
-
}[];
|
|
3481
|
-
count: number;
|
|
3482
|
-
avg_confidence_score?: number | null;
|
|
3483
|
-
avg_assumptions_score?: number | null;
|
|
3484
|
-
avg_friendliness_score?: number | null;
|
|
3485
|
-
}[];
|
|
3486
|
-
rows?: {
|
|
3487
|
-
flow_data_id: number;
|
|
3488
|
-
/** Format: uuid */
|
|
3489
|
-
flow_id: string;
|
|
3490
|
-
company_id: number;
|
|
3491
|
-
main_cluster_id: number;
|
|
3492
|
-
main_cluster_name: string;
|
|
3493
|
-
subcluster_id: number | null;
|
|
3494
|
-
subcluster_name: string | null;
|
|
3495
|
-
core_question: string | null;
|
|
3496
|
-
/** Format: uuid */
|
|
3497
|
-
user_id: string;
|
|
3498
|
-
initial_user_request: string | null;
|
|
3499
|
-
flow_data_request: string | null;
|
|
3500
|
-
flow_data_created_at: string | null;
|
|
3501
|
-
confidence_score: number | null;
|
|
3502
|
-
assumptions_score: number | null;
|
|
3503
|
-
friendliness_score: number | null;
|
|
3504
|
-
user_email: string | null;
|
|
3505
|
-
external: {
|
|
3506
|
-
[key: string]: unknown;
|
|
3507
|
-
} | null;
|
|
3508
|
-
}[];
|
|
3509
|
-
};
|
|
3510
|
-
};
|
|
3511
|
-
};
|
|
3512
|
-
/** @description Something wrong happened */
|
|
3513
|
-
500: {
|
|
3514
|
-
headers: {
|
|
3515
|
-
[name: string]: unknown;
|
|
3516
|
-
};
|
|
3517
|
-
content: {
|
|
3518
|
-
"application/json": {
|
|
3519
|
-
error: string;
|
|
3520
|
-
};
|
|
3521
|
-
};
|
|
3522
|
-
};
|
|
3523
|
-
};
|
|
3524
|
-
};
|
|
3525
|
-
getCompanySettings: {
|
|
3526
|
-
parameters: {
|
|
3527
|
-
query?: never;
|
|
3528
|
-
header?: never;
|
|
3529
|
-
path?: never;
|
|
3530
|
-
cookie?: never;
|
|
3531
|
-
};
|
|
3532
|
-
requestBody?: never;
|
|
3533
|
-
responses: {
|
|
3534
|
-
/** @description Company settings retrieved successfully */
|
|
3535
|
-
200: {
|
|
3536
|
-
headers: {
|
|
3537
|
-
[name: string]: unknown;
|
|
3538
|
-
};
|
|
3539
|
-
content: {
|
|
3540
|
-
"application/json": {
|
|
3541
|
-
name: string | null;
|
|
3542
|
-
website: string | null;
|
|
3543
|
-
context_profile: {
|
|
3544
|
-
company: {
|
|
3545
|
-
description: string;
|
|
3546
|
-
industries: string[];
|
|
3547
|
-
revenue_streams: string[];
|
|
3548
|
-
customers: {
|
|
3549
|
-
label: string;
|
|
3550
|
-
description: string;
|
|
3551
|
-
typical_users: {
|
|
3552
|
-
role: string;
|
|
3553
|
-
typical_goals: string[];
|
|
3554
|
-
}[];
|
|
3555
|
-
}[];
|
|
3556
|
-
};
|
|
3557
|
-
domain: {
|
|
3558
|
-
overview: string;
|
|
3559
|
-
concepts: {
|
|
3560
|
-
name: string;
|
|
3561
|
-
definition: string;
|
|
3562
|
-
synonyms: string[];
|
|
3563
|
-
}[];
|
|
3564
|
-
};
|
|
3565
|
-
analytics: {
|
|
3566
|
-
examples_key_metrics: {
|
|
3567
|
-
name: string;
|
|
3568
|
-
why: string;
|
|
3569
|
-
}[];
|
|
3570
|
-
};
|
|
3571
|
-
} | null;
|
|
3572
|
-
};
|
|
3573
|
-
};
|
|
3574
|
-
};
|
|
3575
|
-
/** @description Failed to retrieve company settings */
|
|
3576
|
-
500: {
|
|
3577
|
-
headers: {
|
|
3578
|
-
[name: string]: unknown;
|
|
3579
|
-
};
|
|
3580
|
-
content: {
|
|
3581
|
-
"application/json": {
|
|
3582
|
-
error: string;
|
|
3583
|
-
};
|
|
3584
|
-
};
|
|
3585
|
-
};
|
|
3586
|
-
};
|
|
3587
|
-
};
|
|
3588
|
-
updateCompanySettings: {
|
|
3589
|
-
parameters: {
|
|
3590
|
-
query?: never;
|
|
3591
|
-
header?: never;
|
|
3592
|
-
path?: never;
|
|
3593
|
-
cookie?: never;
|
|
3594
|
-
};
|
|
3595
|
-
requestBody?: {
|
|
3596
|
-
content: {
|
|
3597
|
-
"application/json": {
|
|
3598
|
-
name: string;
|
|
3599
|
-
website: string;
|
|
3600
|
-
};
|
|
3601
|
-
};
|
|
3602
|
-
};
|
|
3603
|
-
responses: {
|
|
3604
|
-
/** @description Company settings updated successfully */
|
|
3605
|
-
200: {
|
|
3606
|
-
headers: {
|
|
3607
|
-
[name: string]: unknown;
|
|
3608
|
-
};
|
|
3609
|
-
content: {
|
|
3610
|
-
"application/json": {
|
|
3611
|
-
name: string | null;
|
|
3612
|
-
website: string | null;
|
|
3613
|
-
context_profile: {
|
|
3614
|
-
company: {
|
|
3615
|
-
description: string;
|
|
3616
|
-
industries: string[];
|
|
3617
|
-
revenue_streams: string[];
|
|
3618
|
-
customers: {
|
|
3619
|
-
label: string;
|
|
3620
|
-
description: string;
|
|
3621
|
-
typical_users: {
|
|
3622
|
-
role: string;
|
|
3623
|
-
typical_goals: string[];
|
|
3624
|
-
}[];
|
|
3625
|
-
}[];
|
|
3626
|
-
};
|
|
3627
|
-
domain: {
|
|
3628
|
-
overview: string;
|
|
3629
|
-
concepts: {
|
|
3630
|
-
name: string;
|
|
3631
|
-
definition: string;
|
|
3632
|
-
synonyms: string[];
|
|
3633
|
-
}[];
|
|
3634
|
-
};
|
|
3635
|
-
analytics: {
|
|
3636
|
-
examples_key_metrics: {
|
|
3637
|
-
name: string;
|
|
3638
|
-
why: string;
|
|
3639
|
-
}[];
|
|
3640
|
-
};
|
|
3641
|
-
} | null;
|
|
3642
|
-
};
|
|
3643
|
-
};
|
|
3644
|
-
};
|
|
3645
|
-
/** @description Failed to update company settings */
|
|
3646
|
-
500: {
|
|
3647
|
-
headers: {
|
|
3648
|
-
[name: string]: unknown;
|
|
3649
|
-
};
|
|
3650
|
-
content: {
|
|
3651
|
-
"application/json": {
|
|
3652
|
-
error: string;
|
|
3653
|
-
};
|
|
3654
|
-
};
|
|
3655
|
-
};
|
|
3656
|
-
};
|
|
3657
|
-
};
|
|
3658
|
-
runCompanyResearchAgent: {
|
|
3659
|
-
parameters: {
|
|
3660
|
-
query?: never;
|
|
3661
|
-
header?: never;
|
|
3662
|
-
path?: never;
|
|
3663
|
-
cookie?: never;
|
|
3664
|
-
};
|
|
3665
|
-
requestBody?: never;
|
|
3666
|
-
responses: {
|
|
3667
|
-
/** @description Company research agent executed successfully */
|
|
3668
|
-
200: {
|
|
3669
|
-
headers: {
|
|
3670
|
-
[name: string]: unknown;
|
|
3671
|
-
};
|
|
3672
|
-
content: {
|
|
3673
|
-
"application/json": {
|
|
3674
|
-
company: {
|
|
3675
|
-
description: string;
|
|
3676
|
-
industries: string[];
|
|
3677
|
-
revenue_streams: string[];
|
|
3678
|
-
customers: {
|
|
3679
|
-
label: string;
|
|
3680
|
-
description: string;
|
|
3681
|
-
typical_users: {
|
|
3682
|
-
role: string;
|
|
3683
|
-
typical_goals: string[];
|
|
3684
|
-
}[];
|
|
3685
|
-
}[];
|
|
3686
|
-
};
|
|
3687
|
-
domain: {
|
|
3688
|
-
overview: string;
|
|
3689
|
-
concepts: {
|
|
3690
|
-
name: string;
|
|
3691
|
-
definition: string;
|
|
3692
|
-
synonyms: string[];
|
|
3693
|
-
}[];
|
|
3694
|
-
};
|
|
3695
|
-
analytics: {
|
|
3696
|
-
examples_key_metrics: {
|
|
3697
|
-
name: string;
|
|
3698
|
-
why: string;
|
|
3699
|
-
}[];
|
|
3700
|
-
};
|
|
3701
|
-
};
|
|
3702
|
-
};
|
|
3703
|
-
};
|
|
3704
|
-
/** @description Company name or website not configured */
|
|
3705
|
-
400: {
|
|
3706
|
-
headers: {
|
|
3707
|
-
[name: string]: unknown;
|
|
3708
|
-
};
|
|
3709
|
-
content: {
|
|
3710
|
-
"application/json": {
|
|
3711
|
-
error: string;
|
|
3712
|
-
};
|
|
3713
|
-
};
|
|
3714
|
-
};
|
|
3715
|
-
/** @description Company research agent failed */
|
|
3716
|
-
500: {
|
|
3717
|
-
headers: {
|
|
3718
|
-
[name: string]: unknown;
|
|
3719
|
-
};
|
|
3720
|
-
content: {
|
|
3721
|
-
"application/json": {
|
|
3722
|
-
error: string;
|
|
3723
|
-
};
|
|
3724
|
-
};
|
|
3725
|
-
};
|
|
3726
|
-
};
|
|
3727
|
-
};
|
|
3728
|
-
generateSuggestedInputs: {
|
|
3729
|
-
parameters: {
|
|
3730
|
-
query?: never;
|
|
3731
|
-
header?: never;
|
|
3732
|
-
path?: never;
|
|
3733
|
-
cookie?: never;
|
|
3734
|
-
};
|
|
3735
|
-
requestBody?: {
|
|
3736
|
-
content: {
|
|
3737
|
-
"application/json": {
|
|
3738
|
-
objective: string;
|
|
3739
|
-
guidelines: string;
|
|
3740
|
-
};
|
|
3741
|
-
};
|
|
3742
|
-
};
|
|
3743
|
-
responses: {
|
|
3744
|
-
/** @description Suggested input fields generated */
|
|
3745
|
-
200: {
|
|
3746
|
-
headers: {
|
|
3747
|
-
[name: string]: unknown;
|
|
3748
|
-
};
|
|
3749
|
-
content: {
|
|
3750
|
-
"application/json": {
|
|
3751
|
-
inputFields: {
|
|
3752
|
-
id: string;
|
|
3753
|
-
name: string;
|
|
3754
|
-
description: string;
|
|
3755
|
-
/** @enum {string} */
|
|
3756
|
-
type: "text" | "enum";
|
|
3757
|
-
options?: {
|
|
3758
|
-
value: string;
|
|
3759
|
-
fragment?: string;
|
|
3760
|
-
}[];
|
|
3761
|
-
/** @default false */
|
|
3762
|
-
useFragmentMapping: boolean;
|
|
3763
|
-
/** @default true */
|
|
3764
|
-
required: boolean;
|
|
3765
|
-
}[];
|
|
3766
|
-
};
|
|
3767
|
-
};
|
|
3768
|
-
};
|
|
3769
|
-
/** @description Generation failed */
|
|
3770
|
-
500: {
|
|
3771
|
-
headers: {
|
|
3772
|
-
[name: string]: unknown;
|
|
3773
|
-
};
|
|
3774
|
-
content: {
|
|
3775
|
-
"application/json": {
|
|
3776
|
-
error: string;
|
|
3777
|
-
};
|
|
3778
|
-
};
|
|
3779
|
-
};
|
|
3780
|
-
};
|
|
3781
|
-
};
|
|
3782
|
-
generateOutputStructure: {
|
|
3783
|
-
parameters: {
|
|
3784
|
-
query?: never;
|
|
3785
|
-
header?: never;
|
|
3786
|
-
path?: never;
|
|
3787
|
-
cookie?: never;
|
|
3788
|
-
};
|
|
3789
|
-
requestBody?: {
|
|
3790
|
-
content: {
|
|
3791
|
-
"application/json": {
|
|
3792
|
-
objective: string;
|
|
3793
|
-
guidelines: string;
|
|
3794
|
-
inputFields: {
|
|
3795
|
-
id: string;
|
|
3796
|
-
name: string;
|
|
3797
|
-
description: string;
|
|
3798
|
-
/** @enum {string} */
|
|
3799
|
-
type: "text" | "enum";
|
|
3800
|
-
options?: {
|
|
3801
|
-
value: string;
|
|
3802
|
-
fragment?: string;
|
|
3803
|
-
}[];
|
|
3804
|
-
/** @default false */
|
|
3805
|
-
useFragmentMapping?: boolean;
|
|
3806
|
-
/** @default true */
|
|
3807
|
-
required?: boolean;
|
|
3808
|
-
}[];
|
|
3809
|
-
};
|
|
3810
|
-
};
|
|
3811
|
-
};
|
|
3812
|
-
responses: {
|
|
3813
|
-
/** @description Output structure generated */
|
|
3814
|
-
200: {
|
|
3815
|
-
headers: {
|
|
3816
|
-
[name: string]: unknown;
|
|
3817
|
-
};
|
|
3818
|
-
content: {
|
|
3819
|
-
"application/json": {
|
|
3820
|
-
outputStructure: {
|
|
3821
|
-
key: string;
|
|
3822
|
-
/** @enum {string} */
|
|
3823
|
-
type: "text" | "number" | "boolean" | "enum" | "array" | "object";
|
|
3824
|
-
description: string;
|
|
3825
|
-
/** @default false */
|
|
3826
|
-
attachEvidences: boolean;
|
|
3827
|
-
enumValues?: string[];
|
|
3828
|
-
children?: {
|
|
3829
|
-
key: string;
|
|
3830
|
-
/** @enum {string} */
|
|
3831
|
-
type: "text" | "number" | "boolean" | "enum" | "array" | "object";
|
|
3832
|
-
description: string;
|
|
3833
|
-
/** @default false */
|
|
3834
|
-
attachEvidences: boolean;
|
|
3835
|
-
enumValues?: string[];
|
|
3836
|
-
children?: {
|
|
3837
|
-
key: string;
|
|
3838
|
-
/** @enum {string} */
|
|
3839
|
-
type: "text" | "number" | "boolean" | "enum" | "array" | "object";
|
|
3840
|
-
description: string;
|
|
3841
|
-
/** @default false */
|
|
3842
|
-
attachEvidences: boolean;
|
|
3843
|
-
enumValues?: string[];
|
|
3844
|
-
}[];
|
|
3845
|
-
}[];
|
|
3846
|
-
}[];
|
|
3847
|
-
};
|
|
3848
|
-
};
|
|
3849
|
-
};
|
|
3850
|
-
/** @description Generation failed */
|
|
3851
|
-
500: {
|
|
3852
|
-
headers: {
|
|
3853
|
-
[name: string]: unknown;
|
|
3854
|
-
};
|
|
3855
|
-
content: {
|
|
3856
|
-
"application/json": {
|
|
3857
|
-
error: string;
|
|
3858
|
-
};
|
|
3859
|
-
};
|
|
3860
|
-
};
|
|
3861
|
-
};
|
|
3862
|
-
};
|
|
3863
|
-
generateFragments: {
|
|
3864
|
-
parameters: {
|
|
3865
|
-
query?: never;
|
|
3866
|
-
header?: never;
|
|
3867
|
-
path?: never;
|
|
3868
|
-
cookie?: never;
|
|
3869
|
-
};
|
|
3870
|
-
requestBody?: {
|
|
3871
|
-
content: {
|
|
3872
|
-
"application/json": {
|
|
3873
|
-
objective: string;
|
|
3874
|
-
guidelines: string;
|
|
3875
|
-
inputFields: {
|
|
3876
|
-
id: string;
|
|
3877
|
-
name: string;
|
|
3878
|
-
description: string;
|
|
3879
|
-
/** @enum {string} */
|
|
3880
|
-
type: "text" | "enum";
|
|
3881
|
-
options?: {
|
|
3882
|
-
value: string;
|
|
3883
|
-
fragment?: string;
|
|
3884
|
-
}[];
|
|
3885
|
-
/** @default false */
|
|
3886
|
-
useFragmentMapping?: boolean;
|
|
3887
|
-
/** @default true */
|
|
3888
|
-
required?: boolean;
|
|
3889
|
-
}[];
|
|
3890
|
-
outputStructure: {
|
|
3891
|
-
key: string;
|
|
3892
|
-
/** @enum {string} */
|
|
3893
|
-
type: "text" | "number" | "boolean" | "enum" | "array" | "object";
|
|
3894
|
-
description: string;
|
|
3895
|
-
/** @default false */
|
|
3896
|
-
attachEvidences?: boolean;
|
|
3897
|
-
enumValues?: string[];
|
|
3898
|
-
children?: {
|
|
3899
|
-
key: string;
|
|
3900
|
-
/** @enum {string} */
|
|
3901
|
-
type: "text" | "number" | "boolean" | "enum" | "array" | "object";
|
|
3902
|
-
description: string;
|
|
3903
|
-
/** @default false */
|
|
3904
|
-
attachEvidences?: boolean;
|
|
3905
|
-
enumValues?: string[];
|
|
3906
|
-
children?: {
|
|
3907
|
-
key: string;
|
|
3908
|
-
/** @enum {string} */
|
|
3909
|
-
type: "text" | "number" | "boolean" | "enum" | "array" | "object";
|
|
3910
|
-
description: string;
|
|
3911
|
-
/** @default false */
|
|
3912
|
-
attachEvidences?: boolean;
|
|
3913
|
-
enumValues?: string[];
|
|
3914
|
-
}[];
|
|
3915
|
-
}[];
|
|
3916
|
-
}[];
|
|
3917
|
-
};
|
|
3918
|
-
};
|
|
3919
|
-
};
|
|
3920
|
-
responses: {
|
|
3921
|
-
/** @description Prompt fragments generated */
|
|
3922
|
-
200: {
|
|
3923
|
-
headers: {
|
|
3924
|
-
[name: string]: unknown;
|
|
3925
|
-
};
|
|
3926
|
-
content: {
|
|
3927
|
-
"application/json": {
|
|
3928
|
-
objectiveFragment: string;
|
|
3929
|
-
inputsFragment: string;
|
|
3930
|
-
outputFragment: string;
|
|
3931
|
-
};
|
|
3932
|
-
};
|
|
3933
|
-
};
|
|
3934
|
-
/** @description Generation failed */
|
|
3935
|
-
500: {
|
|
3936
|
-
headers: {
|
|
3937
|
-
[name: string]: unknown;
|
|
3938
|
-
};
|
|
3939
|
-
content: {
|
|
3940
|
-
"application/json": {
|
|
3941
|
-
error: string;
|
|
3942
|
-
};
|
|
3943
|
-
};
|
|
3944
|
-
};
|
|
3945
|
-
};
|
|
3946
|
-
};
|
|
3947
|
-
listAgents: {
|
|
3948
|
-
parameters: {
|
|
3949
|
-
query?: never;
|
|
3950
|
-
header: {
|
|
3951
|
-
"sp-access-token": string;
|
|
3952
|
-
};
|
|
3953
|
-
path?: never;
|
|
3954
|
-
cookie?: never;
|
|
3955
|
-
};
|
|
3956
|
-
requestBody?: never;
|
|
3957
|
-
responses: {
|
|
3958
|
-
/** @description List of agents for the company */
|
|
3959
|
-
200: {
|
|
3960
|
-
headers: {
|
|
3961
|
-
[name: string]: unknown;
|
|
3962
|
-
};
|
|
3963
|
-
content: {
|
|
3964
|
-
"application/json": components["schemas"]["Agent"][];
|
|
3965
|
-
};
|
|
3966
|
-
};
|
|
3967
|
-
/** @description Internal server error */
|
|
3968
|
-
500: {
|
|
3969
|
-
headers: {
|
|
3970
|
-
[name: string]: unknown;
|
|
3971
|
-
};
|
|
3972
|
-
content: {
|
|
3973
|
-
"application/json": {
|
|
3974
|
-
error: string;
|
|
3975
|
-
};
|
|
3976
|
-
};
|
|
3977
|
-
};
|
|
3978
|
-
};
|
|
3979
|
-
};
|
|
3980
|
-
createAgent: {
|
|
3981
|
-
parameters: {
|
|
3982
|
-
query?: never;
|
|
3983
|
-
header: {
|
|
3984
|
-
"sp-access-token": string;
|
|
3985
|
-
};
|
|
3986
|
-
path?: never;
|
|
3987
|
-
cookie?: never;
|
|
3988
|
-
};
|
|
3989
|
-
requestBody: {
|
|
3990
|
-
content: {
|
|
3991
|
-
"application/json": {
|
|
3992
|
-
name: string;
|
|
3993
|
-
objective?: string;
|
|
3994
|
-
generated_inputs_fragment?: string;
|
|
3995
|
-
generated_outputs_fragment?: string;
|
|
3996
|
-
generated_objective_fragment?: string;
|
|
3997
|
-
/** @default [] */
|
|
3998
|
-
active_tools?: string[];
|
|
3999
|
-
input_schema?: ({
|
|
4000
|
-
id: string;
|
|
4001
|
-
name: string;
|
|
4002
|
-
description?: string;
|
|
4003
|
-
/** @enum {string} */
|
|
4004
|
-
type: "enum";
|
|
4005
|
-
options: {
|
|
4006
|
-
value: string;
|
|
4007
|
-
fragment?: string;
|
|
4008
|
-
}[];
|
|
4009
|
-
/** @default false */
|
|
4010
|
-
useFragmentMapping?: boolean;
|
|
4011
|
-
/** @default false */
|
|
4012
|
-
required?: boolean;
|
|
4013
|
-
} | {
|
|
4014
|
-
id: string;
|
|
4015
|
-
name: string;
|
|
4016
|
-
description?: string;
|
|
4017
|
-
/** @enum {string} */
|
|
4018
|
-
type: "text";
|
|
4019
|
-
/**
|
|
4020
|
-
* @default false
|
|
4021
|
-
* @enum {boolean}
|
|
4022
|
-
*/
|
|
4023
|
-
useFragmentMapping?: false;
|
|
4024
|
-
/** @default false */
|
|
4025
|
-
required?: boolean;
|
|
4026
|
-
})[];
|
|
4027
|
-
output_schema: {
|
|
4028
|
-
[key: string]: unknown;
|
|
4029
|
-
};
|
|
4030
|
-
master_prompt_name?: string;
|
|
4031
|
-
master_prompt_version?: number;
|
|
4032
|
-
};
|
|
4033
|
-
};
|
|
4034
|
-
};
|
|
4035
|
-
responses: {
|
|
4036
|
-
/** @description The created agent */
|
|
4037
|
-
200: {
|
|
4038
|
-
headers: {
|
|
4039
|
-
[name: string]: unknown;
|
|
4040
|
-
};
|
|
4041
|
-
content: {
|
|
4042
|
-
"application/json": components["schemas"]["Agent"];
|
|
4043
|
-
};
|
|
4044
|
-
};
|
|
4045
|
-
/** @description Invalid request */
|
|
4046
|
-
400: {
|
|
4047
|
-
headers: {
|
|
4048
|
-
[name: string]: unknown;
|
|
4049
|
-
};
|
|
4050
|
-
content: {
|
|
4051
|
-
"application/json": {
|
|
4052
|
-
error: string;
|
|
4053
|
-
};
|
|
4054
|
-
};
|
|
4055
|
-
};
|
|
4056
|
-
/** @description Internal server error */
|
|
4057
|
-
500: {
|
|
4058
|
-
headers: {
|
|
4059
|
-
[name: string]: unknown;
|
|
4060
|
-
};
|
|
4061
|
-
content: {
|
|
4062
|
-
"application/json": {
|
|
4063
|
-
error: string;
|
|
4064
|
-
};
|
|
4065
|
-
};
|
|
4066
|
-
};
|
|
4067
|
-
};
|
|
4068
|
-
};
|
|
4069
|
-
getAgent: {
|
|
4070
|
-
parameters: {
|
|
4071
|
-
query?: never;
|
|
4072
|
-
header: {
|
|
4073
|
-
"sp-access-token": string;
|
|
4074
|
-
};
|
|
4075
|
-
path: {
|
|
4076
|
-
id: string;
|
|
4077
|
-
};
|
|
4078
|
-
cookie?: never;
|
|
4079
|
-
};
|
|
4080
|
-
requestBody?: never;
|
|
4081
|
-
responses: {
|
|
4082
|
-
/** @description The agent */
|
|
4083
|
-
200: {
|
|
4084
|
-
headers: {
|
|
4085
|
-
[name: string]: unknown;
|
|
4086
|
-
};
|
|
4087
|
-
content: {
|
|
4088
|
-
"application/json": components["schemas"]["Agent"];
|
|
4089
|
-
};
|
|
4090
|
-
};
|
|
4091
|
-
/** @description Agent not found */
|
|
4092
|
-
404: {
|
|
4093
|
-
headers: {
|
|
4094
|
-
[name: string]: unknown;
|
|
4095
|
-
};
|
|
4096
|
-
content: {
|
|
4097
|
-
"application/json": {
|
|
4098
|
-
error: string;
|
|
4099
|
-
};
|
|
4100
|
-
};
|
|
4101
|
-
};
|
|
4102
|
-
/** @description Internal server error */
|
|
4103
|
-
500: {
|
|
4104
|
-
headers: {
|
|
4105
|
-
[name: string]: unknown;
|
|
4106
|
-
};
|
|
4107
|
-
content: {
|
|
4108
|
-
"application/json": {
|
|
4109
|
-
error: string;
|
|
4110
|
-
};
|
|
4111
|
-
};
|
|
4112
|
-
};
|
|
4113
|
-
};
|
|
4114
|
-
};
|
|
4115
|
-
updateAgent: {
|
|
4116
|
-
parameters: {
|
|
4117
|
-
query?: never;
|
|
4118
|
-
header: {
|
|
4119
|
-
"sp-access-token": string;
|
|
4120
|
-
};
|
|
4121
|
-
path: {
|
|
4122
|
-
id: string;
|
|
4123
|
-
};
|
|
4124
|
-
cookie?: never;
|
|
4125
|
-
};
|
|
4126
|
-
requestBody: {
|
|
4127
|
-
content: {
|
|
4128
|
-
"application/json": {
|
|
4129
|
-
name?: string;
|
|
4130
|
-
objective?: string | null;
|
|
4131
|
-
generated_inputs_fragment?: string | null;
|
|
4132
|
-
generated_outputs_fragment?: string | null;
|
|
4133
|
-
generated_objective_fragment?: string | null;
|
|
4134
|
-
active_tools?: string[];
|
|
4135
|
-
input_schema?: ({
|
|
4136
|
-
id: string;
|
|
4137
|
-
name: string;
|
|
4138
|
-
description?: string;
|
|
4139
|
-
/** @enum {string} */
|
|
4140
|
-
type: "enum";
|
|
4141
|
-
options: {
|
|
4142
|
-
value: string;
|
|
4143
|
-
fragment?: string;
|
|
4144
|
-
}[];
|
|
4145
|
-
/** @default false */
|
|
4146
|
-
useFragmentMapping?: boolean;
|
|
4147
|
-
/** @default false */
|
|
4148
|
-
required?: boolean;
|
|
4149
|
-
} | {
|
|
4150
|
-
id: string;
|
|
4151
|
-
name: string;
|
|
4152
|
-
description?: string;
|
|
4153
|
-
/** @enum {string} */
|
|
4154
|
-
type: "text";
|
|
4155
|
-
/**
|
|
4156
|
-
* @default false
|
|
4157
|
-
* @enum {boolean}
|
|
4158
|
-
*/
|
|
4159
|
-
useFragmentMapping?: false;
|
|
4160
|
-
/** @default false */
|
|
4161
|
-
required?: boolean;
|
|
4162
|
-
})[] | null;
|
|
4163
|
-
output_schema?: {
|
|
4164
|
-
[key: string]: unknown;
|
|
4165
|
-
} | null;
|
|
4166
|
-
master_prompt_name?: string | null;
|
|
4167
|
-
master_prompt_version?: number | null;
|
|
4168
|
-
};
|
|
4169
|
-
};
|
|
4170
|
-
};
|
|
4171
|
-
responses: {
|
|
4172
|
-
/** @description The updated agent */
|
|
4173
|
-
200: {
|
|
4174
|
-
headers: {
|
|
4175
|
-
[name: string]: unknown;
|
|
4176
|
-
};
|
|
4177
|
-
content: {
|
|
4178
|
-
"application/json": components["schemas"]["Agent"];
|
|
4179
|
-
};
|
|
4180
|
-
};
|
|
4181
|
-
/** @description Invalid request (e.g., invalid tools) */
|
|
4182
|
-
400: {
|
|
4183
|
-
headers: {
|
|
4184
|
-
[name: string]: unknown;
|
|
4185
|
-
};
|
|
4186
|
-
content: {
|
|
4187
|
-
"application/json": {
|
|
4188
|
-
error: string;
|
|
4189
|
-
};
|
|
4190
|
-
};
|
|
4191
|
-
};
|
|
4192
|
-
/** @description Agent not found */
|
|
4193
|
-
404: {
|
|
4194
|
-
headers: {
|
|
4195
|
-
[name: string]: unknown;
|
|
4196
|
-
};
|
|
4197
|
-
content: {
|
|
4198
|
-
"application/json": {
|
|
4199
|
-
error: string;
|
|
4200
|
-
};
|
|
4201
|
-
};
|
|
4202
|
-
};
|
|
4203
|
-
/** @description Internal server error */
|
|
4204
|
-
500: {
|
|
4205
|
-
headers: {
|
|
4206
|
-
[name: string]: unknown;
|
|
4207
|
-
};
|
|
4208
|
-
content: {
|
|
4209
|
-
"application/json": {
|
|
4210
|
-
error: string;
|
|
4211
|
-
};
|
|
4212
|
-
};
|
|
4213
|
-
};
|
|
4214
|
-
};
|
|
4215
|
-
};
|
|
4216
|
-
deleteAgent: {
|
|
4217
|
-
parameters: {
|
|
4218
|
-
query?: never;
|
|
4219
|
-
header: {
|
|
4220
|
-
"sp-access-token": string;
|
|
4221
|
-
};
|
|
4222
|
-
path: {
|
|
4223
|
-
id: string;
|
|
4224
|
-
};
|
|
4225
|
-
cookie?: never;
|
|
4226
|
-
};
|
|
4227
|
-
requestBody?: never;
|
|
4228
|
-
responses: {
|
|
4229
|
-
/** @description Agent deleted successfully */
|
|
3413
|
+
/** @description Agent deleted successfully */
|
|
4230
3414
|
200: {
|
|
4231
3415
|
headers: {
|
|
4232
3416
|
[name: string]: unknown;
|
|
@@ -4498,22 +3682,6 @@ declare interface paths {
|
|
|
4498
3682
|
patch?: never;
|
|
4499
3683
|
trace?: never;
|
|
4500
3684
|
};
|
|
4501
|
-
"/api/v1/timeline/bookmark": {
|
|
4502
|
-
parameters: {
|
|
4503
|
-
query?: never;
|
|
4504
|
-
header?: never;
|
|
4505
|
-
path?: never;
|
|
4506
|
-
cookie?: never;
|
|
4507
|
-
};
|
|
4508
|
-
get?: never;
|
|
4509
|
-
put?: never;
|
|
4510
|
-
post: operations["toggleBookmark"];
|
|
4511
|
-
delete?: never;
|
|
4512
|
-
options?: never;
|
|
4513
|
-
head?: never;
|
|
4514
|
-
patch?: never;
|
|
4515
|
-
trace?: never;
|
|
4516
|
-
};
|
|
4517
3685
|
"/api/v1/data-tables/latest-refresh": {
|
|
4518
3686
|
parameters: {
|
|
4519
3687
|
query?: never;
|
|
@@ -4866,182 +4034,6 @@ declare interface paths {
|
|
|
4866
4034
|
patch?: never;
|
|
4867
4035
|
trace?: never;
|
|
4868
4036
|
};
|
|
4869
|
-
"/api/v1/admin-console/query-examples": {
|
|
4870
|
-
parameters: {
|
|
4871
|
-
query?: never;
|
|
4872
|
-
header?: never;
|
|
4873
|
-
path?: never;
|
|
4874
|
-
cookie?: never;
|
|
4875
|
-
};
|
|
4876
|
-
get?: never;
|
|
4877
|
-
put?: never;
|
|
4878
|
-
post: operations["createQueryExample"];
|
|
4879
|
-
delete?: never;
|
|
4880
|
-
options?: never;
|
|
4881
|
-
head?: never;
|
|
4882
|
-
patch?: never;
|
|
4883
|
-
trace?: never;
|
|
4884
|
-
};
|
|
4885
|
-
"/api/v1/admin-console/query-examples/{id}": {
|
|
4886
|
-
parameters: {
|
|
4887
|
-
query?: never;
|
|
4888
|
-
header?: never;
|
|
4889
|
-
path?: never;
|
|
4890
|
-
cookie?: never;
|
|
4891
|
-
};
|
|
4892
|
-
get?: never;
|
|
4893
|
-
put?: never;
|
|
4894
|
-
post?: never;
|
|
4895
|
-
delete?: never;
|
|
4896
|
-
options?: never;
|
|
4897
|
-
head?: never;
|
|
4898
|
-
patch: operations["updateQueryExample"];
|
|
4899
|
-
trace?: never;
|
|
4900
|
-
};
|
|
4901
|
-
"/api/v1/admin-console/sql/preview": {
|
|
4902
|
-
parameters: {
|
|
4903
|
-
query?: never;
|
|
4904
|
-
header?: never;
|
|
4905
|
-
path?: never;
|
|
4906
|
-
cookie?: never;
|
|
4907
|
-
};
|
|
4908
|
-
get?: never;
|
|
4909
|
-
put?: never;
|
|
4910
|
-
post: operations["sqlPreview"];
|
|
4911
|
-
delete?: never;
|
|
4912
|
-
options?: never;
|
|
4913
|
-
head?: never;
|
|
4914
|
-
patch?: never;
|
|
4915
|
-
trace?: never;
|
|
4916
|
-
};
|
|
4917
|
-
"/api/v1/admin-console/tables/{tableId}/preview": {
|
|
4918
|
-
parameters: {
|
|
4919
|
-
query?: never;
|
|
4920
|
-
header?: never;
|
|
4921
|
-
path?: never;
|
|
4922
|
-
cookie?: never;
|
|
4923
|
-
};
|
|
4924
|
-
get: operations["tablePreview"];
|
|
4925
|
-
put?: never;
|
|
4926
|
-
post?: never;
|
|
4927
|
-
delete?: never;
|
|
4928
|
-
options?: never;
|
|
4929
|
-
head?: never;
|
|
4930
|
-
patch?: never;
|
|
4931
|
-
trace?: never;
|
|
4932
|
-
};
|
|
4933
|
-
"/api/v1/admin-console/usage-insights/filters": {
|
|
4934
|
-
parameters: {
|
|
4935
|
-
query?: never;
|
|
4936
|
-
header?: never;
|
|
4937
|
-
path?: never;
|
|
4938
|
-
cookie?: never;
|
|
4939
|
-
};
|
|
4940
|
-
get: operations["listSankeyUserFilters"];
|
|
4941
|
-
put?: never;
|
|
4942
|
-
post?: never;
|
|
4943
|
-
delete?: never;
|
|
4944
|
-
options?: never;
|
|
4945
|
-
head?: never;
|
|
4946
|
-
patch?: never;
|
|
4947
|
-
trace?: never;
|
|
4948
|
-
};
|
|
4949
|
-
"/api/v1/admin-console/usage-insights/sankey": {
|
|
4950
|
-
parameters: {
|
|
4951
|
-
query?: never;
|
|
4952
|
-
header?: never;
|
|
4953
|
-
path?: never;
|
|
4954
|
-
cookie?: never;
|
|
4955
|
-
};
|
|
4956
|
-
get: operations["getSankeyData"];
|
|
4957
|
-
put?: never;
|
|
4958
|
-
post?: never;
|
|
4959
|
-
delete?: never;
|
|
4960
|
-
options?: never;
|
|
4961
|
-
head?: never;
|
|
4962
|
-
patch?: never;
|
|
4963
|
-
trace?: never;
|
|
4964
|
-
};
|
|
4965
|
-
"/api/v1/admin-console/company-settings": {
|
|
4966
|
-
parameters: {
|
|
4967
|
-
query?: never;
|
|
4968
|
-
header?: never;
|
|
4969
|
-
path?: never;
|
|
4970
|
-
cookie?: never;
|
|
4971
|
-
};
|
|
4972
|
-
get: operations["getCompanySettings"];
|
|
4973
|
-
put?: never;
|
|
4974
|
-
post?: never;
|
|
4975
|
-
delete?: never;
|
|
4976
|
-
options?: never;
|
|
4977
|
-
head?: never;
|
|
4978
|
-
patch: operations["updateCompanySettings"];
|
|
4979
|
-
trace?: never;
|
|
4980
|
-
};
|
|
4981
|
-
"/api/v1/admin-console/company-research-agent": {
|
|
4982
|
-
parameters: {
|
|
4983
|
-
query?: never;
|
|
4984
|
-
header?: never;
|
|
4985
|
-
path?: never;
|
|
4986
|
-
cookie?: never;
|
|
4987
|
-
};
|
|
4988
|
-
get?: never;
|
|
4989
|
-
put?: never;
|
|
4990
|
-
post: operations["runCompanyResearchAgent"];
|
|
4991
|
-
delete?: never;
|
|
4992
|
-
options?: never;
|
|
4993
|
-
head?: never;
|
|
4994
|
-
patch?: never;
|
|
4995
|
-
trace?: never;
|
|
4996
|
-
};
|
|
4997
|
-
"/api/v1/admin-console/agents/generate-inputs": {
|
|
4998
|
-
parameters: {
|
|
4999
|
-
query?: never;
|
|
5000
|
-
header?: never;
|
|
5001
|
-
path?: never;
|
|
5002
|
-
cookie?: never;
|
|
5003
|
-
};
|
|
5004
|
-
get?: never;
|
|
5005
|
-
put?: never;
|
|
5006
|
-
post: operations["generateSuggestedInputs"];
|
|
5007
|
-
delete?: never;
|
|
5008
|
-
options?: never;
|
|
5009
|
-
head?: never;
|
|
5010
|
-
patch?: never;
|
|
5011
|
-
trace?: never;
|
|
5012
|
-
};
|
|
5013
|
-
"/api/v1/admin-console/agents/generate-output": {
|
|
5014
|
-
parameters: {
|
|
5015
|
-
query?: never;
|
|
5016
|
-
header?: never;
|
|
5017
|
-
path?: never;
|
|
5018
|
-
cookie?: never;
|
|
5019
|
-
};
|
|
5020
|
-
get?: never;
|
|
5021
|
-
put?: never;
|
|
5022
|
-
post: operations["generateOutputStructure"];
|
|
5023
|
-
delete?: never;
|
|
5024
|
-
options?: never;
|
|
5025
|
-
head?: never;
|
|
5026
|
-
patch?: never;
|
|
5027
|
-
trace?: never;
|
|
5028
|
-
};
|
|
5029
|
-
"/api/v1/admin-console/agents/generate-fragments": {
|
|
5030
|
-
parameters: {
|
|
5031
|
-
query?: never;
|
|
5032
|
-
header?: never;
|
|
5033
|
-
path?: never;
|
|
5034
|
-
cookie?: never;
|
|
5035
|
-
};
|
|
5036
|
-
get?: never;
|
|
5037
|
-
put?: never;
|
|
5038
|
-
post: operations["generateFragments"];
|
|
5039
|
-
delete?: never;
|
|
5040
|
-
options?: never;
|
|
5041
|
-
head?: never;
|
|
5042
|
-
patch?: never;
|
|
5043
|
-
trace?: never;
|
|
5044
|
-
};
|
|
5045
4037
|
"/api/v1/agents": {
|
|
5046
4038
|
parameters: {
|
|
5047
4039
|
query?: never;
|
|
@@ -5076,6 +4068,12 @@ declare interface paths {
|
|
|
5076
4068
|
};
|
|
5077
4069
|
}
|
|
5078
4070
|
|
|
4071
|
+
declare type PublicApiClient = Simplify<Client<PublicPaths, `${string}/${string}`>>;
|
|
4072
|
+
|
|
4073
|
+
declare type PublicPaths = Simplify<{
|
|
4074
|
+
[Path in keyof paths]: RemoveAuthHeader<paths[Path]>;
|
|
4075
|
+
}>;
|
|
4076
|
+
|
|
5079
4077
|
declare type QuickActions = z.infer<typeof QuickActionsSchema>;
|
|
5080
4078
|
|
|
5081
4079
|
declare const QuickActionsSchema: z.ZodArray<z.ZodObject<{
|