@magemetrics/core 0.9.0 → 0.10.0-rc1
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 +981 -80
- package/dist/index.js +133 -83
- package/dist/index.js.map +1 -1
- package/package.json +4 -4
package/dist/index.d.ts
CHANGED
|
@@ -142,6 +142,8 @@ declare interface components {
|
|
|
142
142
|
dataType: string;
|
|
143
143
|
renderType?: string;
|
|
144
144
|
unit?: string;
|
|
145
|
+
/** @enum {string} */
|
|
146
|
+
canonicalDataType?: "numeric" | "boolean" | "datetime" | "text" | "array" | "json" | "other";
|
|
145
147
|
}[];
|
|
146
148
|
/** Format: uuid */
|
|
147
149
|
CanvasId: string;
|
|
@@ -288,6 +290,75 @@ declare interface components {
|
|
|
288
290
|
explanation: string;
|
|
289
291
|
type: string;
|
|
290
292
|
};
|
|
293
|
+
AgentRunResponse: {
|
|
294
|
+
/** Format: uuid */
|
|
295
|
+
id: string;
|
|
296
|
+
/** Format: uuid */
|
|
297
|
+
agent_id: string;
|
|
298
|
+
/** @enum {string} */
|
|
299
|
+
status: "pending" | "running" | "completed" | "failed" | "cancelled";
|
|
300
|
+
created_at: string;
|
|
301
|
+
started_at: string | null;
|
|
302
|
+
completed_at: string | null;
|
|
303
|
+
output_data: {
|
|
304
|
+
[key: string]: unknown;
|
|
305
|
+
} | null;
|
|
306
|
+
error_message: string | null;
|
|
307
|
+
};
|
|
308
|
+
StartAgentRunRequest: {
|
|
309
|
+
/** Format: uuid */
|
|
310
|
+
agent_id: string;
|
|
311
|
+
/** @default {} */
|
|
312
|
+
inputs: {
|
|
313
|
+
[key: string]: unknown;
|
|
314
|
+
};
|
|
315
|
+
};
|
|
316
|
+
Agent: {
|
|
317
|
+
/** Format: uuid */
|
|
318
|
+
id: string;
|
|
319
|
+
company_id: number;
|
|
320
|
+
name: string;
|
|
321
|
+
objective: string | null;
|
|
322
|
+
generated_inputs_fragment: string | null;
|
|
323
|
+
generated_outputs_fragment: string | null;
|
|
324
|
+
generated_objective_fragment: string | null;
|
|
325
|
+
active_tools: string[] | null;
|
|
326
|
+
input_schema: ({
|
|
327
|
+
id: string;
|
|
328
|
+
name: string;
|
|
329
|
+
description?: string;
|
|
330
|
+
/** @enum {string} */
|
|
331
|
+
type: "enum";
|
|
332
|
+
options: {
|
|
333
|
+
value: string;
|
|
334
|
+
fragment?: string;
|
|
335
|
+
}[];
|
|
336
|
+
/** @default false */
|
|
337
|
+
useFragmentMapping: boolean;
|
|
338
|
+
/** @default false */
|
|
339
|
+
required: boolean;
|
|
340
|
+
} | {
|
|
341
|
+
id: string;
|
|
342
|
+
name: string;
|
|
343
|
+
description?: string;
|
|
344
|
+
/** @enum {string} */
|
|
345
|
+
type: "text";
|
|
346
|
+
/**
|
|
347
|
+
* @default false
|
|
348
|
+
* @enum {boolean}
|
|
349
|
+
*/
|
|
350
|
+
useFragmentMapping: false;
|
|
351
|
+
/** @default false */
|
|
352
|
+
required: boolean;
|
|
353
|
+
})[] | null;
|
|
354
|
+
output_schema: {
|
|
355
|
+
[key: string]: unknown;
|
|
356
|
+
} | null;
|
|
357
|
+
master_prompt_name: string | null;
|
|
358
|
+
master_prompt_version: number | null;
|
|
359
|
+
created_at: string;
|
|
360
|
+
updated_at: string;
|
|
361
|
+
};
|
|
291
362
|
};
|
|
292
363
|
responses: never;
|
|
293
364
|
parameters: never;
|
|
@@ -418,8 +489,8 @@ export declare interface ExternalAuthProviderConfig {
|
|
|
418
489
|
declare type FrontendRecentFlows = z.infer<typeof FrontendRecentFlowsSchema>;
|
|
419
490
|
|
|
420
491
|
declare const FrontendRecentFlowsSchema: z.ZodObject<{
|
|
421
|
-
title: z.ZodNullable<z.ZodString>;
|
|
422
492
|
id: z.ZodString;
|
|
493
|
+
title: z.ZodNullable<z.ZodString>;
|
|
423
494
|
request: z.ZodString;
|
|
424
495
|
created_at: z.ZodString;
|
|
425
496
|
user_id: z.ZodNullable<z.ZodString>;
|
|
@@ -436,8 +507,8 @@ declare const inputSchema: z.ZodObject<{
|
|
|
436
507
|
isNewAnalysisGoal: z.ZodBoolean;
|
|
437
508
|
responseType: z.ZodEnum<{
|
|
438
509
|
text: "text";
|
|
439
|
-
table: "table";
|
|
440
510
|
visualization: "visualization";
|
|
511
|
+
table: "table";
|
|
441
512
|
}>;
|
|
442
513
|
difficultyLevel: z.ZodEnum<{
|
|
443
514
|
simple: "simple";
|
|
@@ -686,8 +757,8 @@ export declare class MageMetricsClient {
|
|
|
686
757
|
}>;
|
|
687
758
|
delete: (canvasId: string) => Promise<void>;
|
|
688
759
|
getForFlow: (flowId: string) => Promise<{
|
|
689
|
-
title: string | null;
|
|
690
760
|
id: string;
|
|
761
|
+
title: string | null;
|
|
691
762
|
nodes: any[];
|
|
692
763
|
edges: any[];
|
|
693
764
|
is_public: boolean;
|
|
@@ -713,6 +784,7 @@ export declare class MageMetricsClient {
|
|
|
713
784
|
dataType: string;
|
|
714
785
|
renderType?: string;
|
|
715
786
|
unit?: string;
|
|
787
|
+
canonicalDataType?: "numeric" | "boolean" | "datetime" | "text" | "array" | "json" | "other";
|
|
716
788
|
}[];
|
|
717
789
|
rowCount: {
|
|
718
790
|
count: number;
|
|
@@ -949,7 +1021,7 @@ declare interface operations {
|
|
|
949
1021
|
/** @example name:asc,date:desc */
|
|
950
1022
|
order?: string;
|
|
951
1023
|
cursor?: number;
|
|
952
|
-
/** @example status:active,name:John%20Doe */
|
|
1024
|
+
/** @example status:eq:active,name:contains:John%20Doe */
|
|
953
1025
|
filter?: string;
|
|
954
1026
|
};
|
|
955
1027
|
header?: never;
|
|
@@ -1890,7 +1962,7 @@ declare interface operations {
|
|
|
1890
1962
|
/** @example name:asc,date:desc */
|
|
1891
1963
|
order?: string;
|
|
1892
1964
|
cursor?: number;
|
|
1893
|
-
/** @example status:active,name:John%20Doe */
|
|
1965
|
+
/** @example status:eq:active,name:contains:John%20Doe */
|
|
1894
1966
|
filter?: string;
|
|
1895
1967
|
};
|
|
1896
1968
|
header: {
|
|
@@ -2948,6 +3020,148 @@ declare interface operations {
|
|
|
2948
3020
|
};
|
|
2949
3021
|
};
|
|
2950
3022
|
};
|
|
3023
|
+
listAgentRuns: {
|
|
3024
|
+
parameters: {
|
|
3025
|
+
query?: {
|
|
3026
|
+
status?: "pending" | "running" | "completed" | "failed" | "cancelled";
|
|
3027
|
+
agent_id?: string;
|
|
3028
|
+
limit?: number;
|
|
3029
|
+
};
|
|
3030
|
+
header: {
|
|
3031
|
+
"sp-access-token": string;
|
|
3032
|
+
};
|
|
3033
|
+
path?: never;
|
|
3034
|
+
cookie?: never;
|
|
3035
|
+
};
|
|
3036
|
+
requestBody?: never;
|
|
3037
|
+
responses: {
|
|
3038
|
+
/** @description List of agent runs */
|
|
3039
|
+
200: {
|
|
3040
|
+
headers: {
|
|
3041
|
+
[name: string]: unknown;
|
|
3042
|
+
};
|
|
3043
|
+
content: {
|
|
3044
|
+
"application/json": components["schemas"]["AgentRunResponse"][];
|
|
3045
|
+
};
|
|
3046
|
+
};
|
|
3047
|
+
/** @description Internal server error */
|
|
3048
|
+
500: {
|
|
3049
|
+
headers: {
|
|
3050
|
+
[name: string]: unknown;
|
|
3051
|
+
};
|
|
3052
|
+
content: {
|
|
3053
|
+
"application/json": {
|
|
3054
|
+
error: string;
|
|
3055
|
+
};
|
|
3056
|
+
};
|
|
3057
|
+
};
|
|
3058
|
+
};
|
|
3059
|
+
};
|
|
3060
|
+
startAgentRun: {
|
|
3061
|
+
parameters: {
|
|
3062
|
+
query?: never;
|
|
3063
|
+
header: {
|
|
3064
|
+
"sp-access-token": string;
|
|
3065
|
+
};
|
|
3066
|
+
path?: never;
|
|
3067
|
+
cookie?: never;
|
|
3068
|
+
};
|
|
3069
|
+
requestBody: {
|
|
3070
|
+
content: {
|
|
3071
|
+
"application/json": components["schemas"]["StartAgentRunRequest"];
|
|
3072
|
+
};
|
|
3073
|
+
};
|
|
3074
|
+
responses: {
|
|
3075
|
+
/** @description The agent run was started */
|
|
3076
|
+
200: {
|
|
3077
|
+
headers: {
|
|
3078
|
+
[name: string]: unknown;
|
|
3079
|
+
};
|
|
3080
|
+
content: {
|
|
3081
|
+
"application/json": components["schemas"]["AgentRunResponse"];
|
|
3082
|
+
};
|
|
3083
|
+
};
|
|
3084
|
+
/** @description Invalid request or input validation failed */
|
|
3085
|
+
400: {
|
|
3086
|
+
headers: {
|
|
3087
|
+
[name: string]: unknown;
|
|
3088
|
+
};
|
|
3089
|
+
content: {
|
|
3090
|
+
"application/json": {
|
|
3091
|
+
error: string;
|
|
3092
|
+
};
|
|
3093
|
+
};
|
|
3094
|
+
};
|
|
3095
|
+
/** @description Agent definition not found */
|
|
3096
|
+
404: {
|
|
3097
|
+
headers: {
|
|
3098
|
+
[name: string]: unknown;
|
|
3099
|
+
};
|
|
3100
|
+
content: {
|
|
3101
|
+
"application/json": {
|
|
3102
|
+
error: string;
|
|
3103
|
+
};
|
|
3104
|
+
};
|
|
3105
|
+
};
|
|
3106
|
+
/** @description Internal server error */
|
|
3107
|
+
500: {
|
|
3108
|
+
headers: {
|
|
3109
|
+
[name: string]: unknown;
|
|
3110
|
+
};
|
|
3111
|
+
content: {
|
|
3112
|
+
"application/json": {
|
|
3113
|
+
error: string;
|
|
3114
|
+
};
|
|
3115
|
+
};
|
|
3116
|
+
};
|
|
3117
|
+
};
|
|
3118
|
+
};
|
|
3119
|
+
getAgentRun: {
|
|
3120
|
+
parameters: {
|
|
3121
|
+
query?: never;
|
|
3122
|
+
header: {
|
|
3123
|
+
"sp-access-token": string;
|
|
3124
|
+
};
|
|
3125
|
+
path: {
|
|
3126
|
+
id: string;
|
|
3127
|
+
};
|
|
3128
|
+
cookie?: never;
|
|
3129
|
+
};
|
|
3130
|
+
requestBody?: never;
|
|
3131
|
+
responses: {
|
|
3132
|
+
/** @description The agent run */
|
|
3133
|
+
200: {
|
|
3134
|
+
headers: {
|
|
3135
|
+
[name: string]: unknown;
|
|
3136
|
+
};
|
|
3137
|
+
content: {
|
|
3138
|
+
"application/json": components["schemas"]["AgentRunResponse"];
|
|
3139
|
+
};
|
|
3140
|
+
};
|
|
3141
|
+
/** @description Agent run not found */
|
|
3142
|
+
404: {
|
|
3143
|
+
headers: {
|
|
3144
|
+
[name: string]: unknown;
|
|
3145
|
+
};
|
|
3146
|
+
content: {
|
|
3147
|
+
"application/json": {
|
|
3148
|
+
error: string;
|
|
3149
|
+
};
|
|
3150
|
+
};
|
|
3151
|
+
};
|
|
3152
|
+
/** @description Internal server error */
|
|
3153
|
+
500: {
|
|
3154
|
+
headers: {
|
|
3155
|
+
[name: string]: unknown;
|
|
3156
|
+
};
|
|
3157
|
+
content: {
|
|
3158
|
+
"application/json": {
|
|
3159
|
+
error: string;
|
|
3160
|
+
};
|
|
3161
|
+
};
|
|
3162
|
+
};
|
|
3163
|
+
};
|
|
3164
|
+
};
|
|
2951
3165
|
createQueryExample: {
|
|
2952
3166
|
parameters: {
|
|
2953
3167
|
query?: never;
|
|
@@ -3506,94 +3720,631 @@ declare interface operations {
|
|
|
3506
3720
|
};
|
|
3507
3721
|
};
|
|
3508
3722
|
};
|
|
3509
|
-
|
|
3510
|
-
|
|
3511
|
-
declare type PatchParam<T, Config extends RemoveParamsConfig, P extends keyof Config> = Simplify<T extends {
|
|
3512
|
-
[key in P]: infer H;
|
|
3513
|
-
} ? H extends Partial<Record<string, unknown>> ? Config[P] extends string ? Omit<H, Config[P]> : H : never : never>;
|
|
3514
|
-
|
|
3515
|
-
/**
|
|
3516
|
-
* This file was auto-generated by openapi-typescript.
|
|
3517
|
-
* Do not make direct changes to the file.
|
|
3518
|
-
*/
|
|
3519
|
-
|
|
3520
|
-
declare interface paths {
|
|
3521
|
-
"/api/v1/auth/exchangeExternalToken": {
|
|
3522
|
-
parameters: {
|
|
3523
|
-
query?: never;
|
|
3524
|
-
header?: never;
|
|
3525
|
-
path?: never;
|
|
3526
|
-
cookie?: never;
|
|
3527
|
-
};
|
|
3528
|
-
get?: never;
|
|
3529
|
-
put?: never;
|
|
3530
|
-
post: operations["exchangeExternalToken"];
|
|
3531
|
-
delete?: never;
|
|
3532
|
-
options?: never;
|
|
3533
|
-
head?: never;
|
|
3534
|
-
patch?: never;
|
|
3535
|
-
trace?: never;
|
|
3536
|
-
};
|
|
3537
|
-
"/api/v1/auth/apiInformation": {
|
|
3723
|
+
generateSuggestedInputs: {
|
|
3538
3724
|
parameters: {
|
|
3539
3725
|
query?: never;
|
|
3540
3726
|
header?: never;
|
|
3541
3727
|
path?: never;
|
|
3542
3728
|
cookie?: never;
|
|
3543
3729
|
};
|
|
3544
|
-
|
|
3545
|
-
|
|
3546
|
-
|
|
3547
|
-
|
|
3548
|
-
|
|
3549
|
-
|
|
3550
|
-
|
|
3551
|
-
trace?: never;
|
|
3552
|
-
};
|
|
3553
|
-
"/api/v1/public/canvas/{canvas_id}/data-reports/{report_id}/columns": {
|
|
3554
|
-
parameters: {
|
|
3555
|
-
query?: never;
|
|
3556
|
-
header?: never;
|
|
3557
|
-
path?: never;
|
|
3558
|
-
cookie?: never;
|
|
3730
|
+
requestBody?: {
|
|
3731
|
+
content: {
|
|
3732
|
+
"application/json": {
|
|
3733
|
+
objective: string;
|
|
3734
|
+
guidelines: string;
|
|
3735
|
+
};
|
|
3736
|
+
};
|
|
3559
3737
|
};
|
|
3560
|
-
|
|
3561
|
-
|
|
3562
|
-
|
|
3563
|
-
|
|
3564
|
-
|
|
3565
|
-
|
|
3566
|
-
|
|
3567
|
-
|
|
3568
|
-
|
|
3569
|
-
|
|
3570
|
-
|
|
3571
|
-
|
|
3572
|
-
|
|
3573
|
-
|
|
3574
|
-
|
|
3738
|
+
responses: {
|
|
3739
|
+
/** @description Suggested input fields generated */
|
|
3740
|
+
200: {
|
|
3741
|
+
headers: {
|
|
3742
|
+
[name: string]: unknown;
|
|
3743
|
+
};
|
|
3744
|
+
content: {
|
|
3745
|
+
"application/json": {
|
|
3746
|
+
inputFields: {
|
|
3747
|
+
id: string;
|
|
3748
|
+
name: string;
|
|
3749
|
+
description: string;
|
|
3750
|
+
/** @enum {string} */
|
|
3751
|
+
type: "text" | "enum";
|
|
3752
|
+
options?: {
|
|
3753
|
+
value: string;
|
|
3754
|
+
fragment?: string;
|
|
3755
|
+
}[];
|
|
3756
|
+
/** @default false */
|
|
3757
|
+
useFragmentMapping: boolean;
|
|
3758
|
+
/** @default true */
|
|
3759
|
+
required: boolean;
|
|
3760
|
+
}[];
|
|
3761
|
+
};
|
|
3762
|
+
};
|
|
3763
|
+
};
|
|
3764
|
+
/** @description Generation failed */
|
|
3765
|
+
500: {
|
|
3766
|
+
headers: {
|
|
3767
|
+
[name: string]: unknown;
|
|
3768
|
+
};
|
|
3769
|
+
content: {
|
|
3770
|
+
"application/json": {
|
|
3771
|
+
error: string;
|
|
3772
|
+
};
|
|
3773
|
+
};
|
|
3774
|
+
};
|
|
3575
3775
|
};
|
|
3576
|
-
get: operations["getPublicCanvasDataReportData"];
|
|
3577
|
-
put?: never;
|
|
3578
|
-
post?: never;
|
|
3579
|
-
delete?: never;
|
|
3580
|
-
options?: never;
|
|
3581
|
-
head?: never;
|
|
3582
|
-
patch?: never;
|
|
3583
|
-
trace?: never;
|
|
3584
3776
|
};
|
|
3585
|
-
|
|
3777
|
+
generateOutputStructure: {
|
|
3586
3778
|
parameters: {
|
|
3587
3779
|
query?: never;
|
|
3588
3780
|
header?: never;
|
|
3589
3781
|
path?: never;
|
|
3590
3782
|
cookie?: never;
|
|
3591
3783
|
};
|
|
3592
|
-
|
|
3593
|
-
|
|
3594
|
-
|
|
3595
|
-
|
|
3596
|
-
|
|
3784
|
+
requestBody?: {
|
|
3785
|
+
content: {
|
|
3786
|
+
"application/json": {
|
|
3787
|
+
objective: string;
|
|
3788
|
+
guidelines: string;
|
|
3789
|
+
inputFields: {
|
|
3790
|
+
id: string;
|
|
3791
|
+
name: string;
|
|
3792
|
+
description: string;
|
|
3793
|
+
/** @enum {string} */
|
|
3794
|
+
type: "text" | "enum";
|
|
3795
|
+
options?: {
|
|
3796
|
+
value: string;
|
|
3797
|
+
fragment?: string;
|
|
3798
|
+
}[];
|
|
3799
|
+
/** @default false */
|
|
3800
|
+
useFragmentMapping?: boolean;
|
|
3801
|
+
/** @default true */
|
|
3802
|
+
required?: boolean;
|
|
3803
|
+
}[];
|
|
3804
|
+
};
|
|
3805
|
+
};
|
|
3806
|
+
};
|
|
3807
|
+
responses: {
|
|
3808
|
+
/** @description Output structure generated */
|
|
3809
|
+
200: {
|
|
3810
|
+
headers: {
|
|
3811
|
+
[name: string]: unknown;
|
|
3812
|
+
};
|
|
3813
|
+
content: {
|
|
3814
|
+
"application/json": {
|
|
3815
|
+
outputStructure: {
|
|
3816
|
+
key: string;
|
|
3817
|
+
/** @enum {string} */
|
|
3818
|
+
type: "text" | "number" | "boolean" | "enum" | "array" | "object";
|
|
3819
|
+
description: string;
|
|
3820
|
+
/** @default false */
|
|
3821
|
+
attachEvidences: boolean;
|
|
3822
|
+
enumValues?: string[];
|
|
3823
|
+
children?: {
|
|
3824
|
+
key: string;
|
|
3825
|
+
/** @enum {string} */
|
|
3826
|
+
type: "text" | "number" | "boolean" | "enum" | "array" | "object";
|
|
3827
|
+
description: string;
|
|
3828
|
+
/** @default false */
|
|
3829
|
+
attachEvidences: boolean;
|
|
3830
|
+
enumValues?: string[];
|
|
3831
|
+
children?: {
|
|
3832
|
+
key: string;
|
|
3833
|
+
/** @enum {string} */
|
|
3834
|
+
type: "text" | "number" | "boolean" | "enum" | "array" | "object";
|
|
3835
|
+
description: string;
|
|
3836
|
+
/** @default false */
|
|
3837
|
+
attachEvidences: boolean;
|
|
3838
|
+
enumValues?: string[];
|
|
3839
|
+
}[];
|
|
3840
|
+
}[];
|
|
3841
|
+
}[];
|
|
3842
|
+
};
|
|
3843
|
+
};
|
|
3844
|
+
};
|
|
3845
|
+
/** @description Generation failed */
|
|
3846
|
+
500: {
|
|
3847
|
+
headers: {
|
|
3848
|
+
[name: string]: unknown;
|
|
3849
|
+
};
|
|
3850
|
+
content: {
|
|
3851
|
+
"application/json": {
|
|
3852
|
+
error: string;
|
|
3853
|
+
};
|
|
3854
|
+
};
|
|
3855
|
+
};
|
|
3856
|
+
};
|
|
3857
|
+
};
|
|
3858
|
+
generateFragments: {
|
|
3859
|
+
parameters: {
|
|
3860
|
+
query?: never;
|
|
3861
|
+
header?: never;
|
|
3862
|
+
path?: never;
|
|
3863
|
+
cookie?: never;
|
|
3864
|
+
};
|
|
3865
|
+
requestBody?: {
|
|
3866
|
+
content: {
|
|
3867
|
+
"application/json": {
|
|
3868
|
+
objective: string;
|
|
3869
|
+
guidelines: string;
|
|
3870
|
+
inputFields: {
|
|
3871
|
+
id: string;
|
|
3872
|
+
name: string;
|
|
3873
|
+
description: string;
|
|
3874
|
+
/** @enum {string} */
|
|
3875
|
+
type: "text" | "enum";
|
|
3876
|
+
options?: {
|
|
3877
|
+
value: string;
|
|
3878
|
+
fragment?: string;
|
|
3879
|
+
}[];
|
|
3880
|
+
/** @default false */
|
|
3881
|
+
useFragmentMapping?: boolean;
|
|
3882
|
+
/** @default true */
|
|
3883
|
+
required?: boolean;
|
|
3884
|
+
}[];
|
|
3885
|
+
outputStructure: {
|
|
3886
|
+
key: string;
|
|
3887
|
+
/** @enum {string} */
|
|
3888
|
+
type: "text" | "number" | "boolean" | "enum" | "array" | "object";
|
|
3889
|
+
description: string;
|
|
3890
|
+
/** @default false */
|
|
3891
|
+
attachEvidences?: boolean;
|
|
3892
|
+
enumValues?: string[];
|
|
3893
|
+
children?: {
|
|
3894
|
+
key: string;
|
|
3895
|
+
/** @enum {string} */
|
|
3896
|
+
type: "text" | "number" | "boolean" | "enum" | "array" | "object";
|
|
3897
|
+
description: string;
|
|
3898
|
+
/** @default false */
|
|
3899
|
+
attachEvidences?: boolean;
|
|
3900
|
+
enumValues?: string[];
|
|
3901
|
+
children?: {
|
|
3902
|
+
key: string;
|
|
3903
|
+
/** @enum {string} */
|
|
3904
|
+
type: "text" | "number" | "boolean" | "enum" | "array" | "object";
|
|
3905
|
+
description: string;
|
|
3906
|
+
/** @default false */
|
|
3907
|
+
attachEvidences?: boolean;
|
|
3908
|
+
enumValues?: string[];
|
|
3909
|
+
}[];
|
|
3910
|
+
}[];
|
|
3911
|
+
}[];
|
|
3912
|
+
};
|
|
3913
|
+
};
|
|
3914
|
+
};
|
|
3915
|
+
responses: {
|
|
3916
|
+
/** @description Prompt fragments generated */
|
|
3917
|
+
200: {
|
|
3918
|
+
headers: {
|
|
3919
|
+
[name: string]: unknown;
|
|
3920
|
+
};
|
|
3921
|
+
content: {
|
|
3922
|
+
"application/json": {
|
|
3923
|
+
objectiveFragment: string;
|
|
3924
|
+
inputsFragment: string;
|
|
3925
|
+
outputFragment: string;
|
|
3926
|
+
};
|
|
3927
|
+
};
|
|
3928
|
+
};
|
|
3929
|
+
/** @description Generation failed */
|
|
3930
|
+
500: {
|
|
3931
|
+
headers: {
|
|
3932
|
+
[name: string]: unknown;
|
|
3933
|
+
};
|
|
3934
|
+
content: {
|
|
3935
|
+
"application/json": {
|
|
3936
|
+
error: string;
|
|
3937
|
+
};
|
|
3938
|
+
};
|
|
3939
|
+
};
|
|
3940
|
+
};
|
|
3941
|
+
};
|
|
3942
|
+
listAgents: {
|
|
3943
|
+
parameters: {
|
|
3944
|
+
query?: never;
|
|
3945
|
+
header: {
|
|
3946
|
+
"sp-access-token": string;
|
|
3947
|
+
};
|
|
3948
|
+
path?: never;
|
|
3949
|
+
cookie?: never;
|
|
3950
|
+
};
|
|
3951
|
+
requestBody?: never;
|
|
3952
|
+
responses: {
|
|
3953
|
+
/** @description List of agents for the company */
|
|
3954
|
+
200: {
|
|
3955
|
+
headers: {
|
|
3956
|
+
[name: string]: unknown;
|
|
3957
|
+
};
|
|
3958
|
+
content: {
|
|
3959
|
+
"application/json": components["schemas"]["Agent"][];
|
|
3960
|
+
};
|
|
3961
|
+
};
|
|
3962
|
+
/** @description Internal server error */
|
|
3963
|
+
500: {
|
|
3964
|
+
headers: {
|
|
3965
|
+
[name: string]: unknown;
|
|
3966
|
+
};
|
|
3967
|
+
content: {
|
|
3968
|
+
"application/json": {
|
|
3969
|
+
error: string;
|
|
3970
|
+
};
|
|
3971
|
+
};
|
|
3972
|
+
};
|
|
3973
|
+
};
|
|
3974
|
+
};
|
|
3975
|
+
createAgent: {
|
|
3976
|
+
parameters: {
|
|
3977
|
+
query?: never;
|
|
3978
|
+
header: {
|
|
3979
|
+
"sp-access-token": string;
|
|
3980
|
+
};
|
|
3981
|
+
path?: never;
|
|
3982
|
+
cookie?: never;
|
|
3983
|
+
};
|
|
3984
|
+
requestBody: {
|
|
3985
|
+
content: {
|
|
3986
|
+
"application/json": {
|
|
3987
|
+
name: string;
|
|
3988
|
+
objective?: string;
|
|
3989
|
+
generated_inputs_fragment?: string;
|
|
3990
|
+
generated_outputs_fragment?: string;
|
|
3991
|
+
generated_objective_fragment?: string;
|
|
3992
|
+
/** @default [] */
|
|
3993
|
+
active_tools?: string[];
|
|
3994
|
+
input_schema?: ({
|
|
3995
|
+
id: string;
|
|
3996
|
+
name: string;
|
|
3997
|
+
description?: string;
|
|
3998
|
+
/** @enum {string} */
|
|
3999
|
+
type: "enum";
|
|
4000
|
+
options: {
|
|
4001
|
+
value: string;
|
|
4002
|
+
fragment?: string;
|
|
4003
|
+
}[];
|
|
4004
|
+
/** @default false */
|
|
4005
|
+
useFragmentMapping?: boolean;
|
|
4006
|
+
/** @default false */
|
|
4007
|
+
required?: boolean;
|
|
4008
|
+
} | {
|
|
4009
|
+
id: string;
|
|
4010
|
+
name: string;
|
|
4011
|
+
description?: string;
|
|
4012
|
+
/** @enum {string} */
|
|
4013
|
+
type: "text";
|
|
4014
|
+
/**
|
|
4015
|
+
* @default false
|
|
4016
|
+
* @enum {boolean}
|
|
4017
|
+
*/
|
|
4018
|
+
useFragmentMapping?: false;
|
|
4019
|
+
/** @default false */
|
|
4020
|
+
required?: boolean;
|
|
4021
|
+
})[];
|
|
4022
|
+
output_schema: {
|
|
4023
|
+
[key: string]: unknown;
|
|
4024
|
+
};
|
|
4025
|
+
master_prompt_name?: string;
|
|
4026
|
+
master_prompt_version?: number;
|
|
4027
|
+
};
|
|
4028
|
+
};
|
|
4029
|
+
};
|
|
4030
|
+
responses: {
|
|
4031
|
+
/** @description The created agent */
|
|
4032
|
+
200: {
|
|
4033
|
+
headers: {
|
|
4034
|
+
[name: string]: unknown;
|
|
4035
|
+
};
|
|
4036
|
+
content: {
|
|
4037
|
+
"application/json": components["schemas"]["Agent"];
|
|
4038
|
+
};
|
|
4039
|
+
};
|
|
4040
|
+
/** @description Invalid request */
|
|
4041
|
+
400: {
|
|
4042
|
+
headers: {
|
|
4043
|
+
[name: string]: unknown;
|
|
4044
|
+
};
|
|
4045
|
+
content: {
|
|
4046
|
+
"application/json": {
|
|
4047
|
+
error: string;
|
|
4048
|
+
};
|
|
4049
|
+
};
|
|
4050
|
+
};
|
|
4051
|
+
/** @description Internal server error */
|
|
4052
|
+
500: {
|
|
4053
|
+
headers: {
|
|
4054
|
+
[name: string]: unknown;
|
|
4055
|
+
};
|
|
4056
|
+
content: {
|
|
4057
|
+
"application/json": {
|
|
4058
|
+
error: string;
|
|
4059
|
+
};
|
|
4060
|
+
};
|
|
4061
|
+
};
|
|
4062
|
+
};
|
|
4063
|
+
};
|
|
4064
|
+
getAgent: {
|
|
4065
|
+
parameters: {
|
|
4066
|
+
query?: never;
|
|
4067
|
+
header: {
|
|
4068
|
+
"sp-access-token": string;
|
|
4069
|
+
};
|
|
4070
|
+
path: {
|
|
4071
|
+
id: string;
|
|
4072
|
+
};
|
|
4073
|
+
cookie?: never;
|
|
4074
|
+
};
|
|
4075
|
+
requestBody?: never;
|
|
4076
|
+
responses: {
|
|
4077
|
+
/** @description The agent */
|
|
4078
|
+
200: {
|
|
4079
|
+
headers: {
|
|
4080
|
+
[name: string]: unknown;
|
|
4081
|
+
};
|
|
4082
|
+
content: {
|
|
4083
|
+
"application/json": components["schemas"]["Agent"];
|
|
4084
|
+
};
|
|
4085
|
+
};
|
|
4086
|
+
/** @description Agent not found */
|
|
4087
|
+
404: {
|
|
4088
|
+
headers: {
|
|
4089
|
+
[name: string]: unknown;
|
|
4090
|
+
};
|
|
4091
|
+
content: {
|
|
4092
|
+
"application/json": {
|
|
4093
|
+
error: string;
|
|
4094
|
+
};
|
|
4095
|
+
};
|
|
4096
|
+
};
|
|
4097
|
+
/** @description Internal server error */
|
|
4098
|
+
500: {
|
|
4099
|
+
headers: {
|
|
4100
|
+
[name: string]: unknown;
|
|
4101
|
+
};
|
|
4102
|
+
content: {
|
|
4103
|
+
"application/json": {
|
|
4104
|
+
error: string;
|
|
4105
|
+
};
|
|
4106
|
+
};
|
|
4107
|
+
};
|
|
4108
|
+
};
|
|
4109
|
+
};
|
|
4110
|
+
updateAgent: {
|
|
4111
|
+
parameters: {
|
|
4112
|
+
query?: never;
|
|
4113
|
+
header: {
|
|
4114
|
+
"sp-access-token": string;
|
|
4115
|
+
};
|
|
4116
|
+
path: {
|
|
4117
|
+
id: string;
|
|
4118
|
+
};
|
|
4119
|
+
cookie?: never;
|
|
4120
|
+
};
|
|
4121
|
+
requestBody: {
|
|
4122
|
+
content: {
|
|
4123
|
+
"application/json": {
|
|
4124
|
+
name?: string;
|
|
4125
|
+
objective?: string | null;
|
|
4126
|
+
generated_inputs_fragment?: string | null;
|
|
4127
|
+
generated_outputs_fragment?: string | null;
|
|
4128
|
+
generated_objective_fragment?: string | null;
|
|
4129
|
+
active_tools?: string[];
|
|
4130
|
+
input_schema?: ({
|
|
4131
|
+
id: string;
|
|
4132
|
+
name: string;
|
|
4133
|
+
description?: string;
|
|
4134
|
+
/** @enum {string} */
|
|
4135
|
+
type: "enum";
|
|
4136
|
+
options: {
|
|
4137
|
+
value: string;
|
|
4138
|
+
fragment?: string;
|
|
4139
|
+
}[];
|
|
4140
|
+
/** @default false */
|
|
4141
|
+
useFragmentMapping?: boolean;
|
|
4142
|
+
/** @default false */
|
|
4143
|
+
required?: boolean;
|
|
4144
|
+
} | {
|
|
4145
|
+
id: string;
|
|
4146
|
+
name: string;
|
|
4147
|
+
description?: string;
|
|
4148
|
+
/** @enum {string} */
|
|
4149
|
+
type: "text";
|
|
4150
|
+
/**
|
|
4151
|
+
* @default false
|
|
4152
|
+
* @enum {boolean}
|
|
4153
|
+
*/
|
|
4154
|
+
useFragmentMapping?: false;
|
|
4155
|
+
/** @default false */
|
|
4156
|
+
required?: boolean;
|
|
4157
|
+
})[] | null;
|
|
4158
|
+
output_schema?: {
|
|
4159
|
+
[key: string]: unknown;
|
|
4160
|
+
} | null;
|
|
4161
|
+
master_prompt_name?: string | null;
|
|
4162
|
+
master_prompt_version?: number | null;
|
|
4163
|
+
};
|
|
4164
|
+
};
|
|
4165
|
+
};
|
|
4166
|
+
responses: {
|
|
4167
|
+
/** @description The updated agent */
|
|
4168
|
+
200: {
|
|
4169
|
+
headers: {
|
|
4170
|
+
[name: string]: unknown;
|
|
4171
|
+
};
|
|
4172
|
+
content: {
|
|
4173
|
+
"application/json": components["schemas"]["Agent"];
|
|
4174
|
+
};
|
|
4175
|
+
};
|
|
4176
|
+
/** @description Invalid request (e.g., invalid tools) */
|
|
4177
|
+
400: {
|
|
4178
|
+
headers: {
|
|
4179
|
+
[name: string]: unknown;
|
|
4180
|
+
};
|
|
4181
|
+
content: {
|
|
4182
|
+
"application/json": {
|
|
4183
|
+
error: string;
|
|
4184
|
+
};
|
|
4185
|
+
};
|
|
4186
|
+
};
|
|
4187
|
+
/** @description Agent not found */
|
|
4188
|
+
404: {
|
|
4189
|
+
headers: {
|
|
4190
|
+
[name: string]: unknown;
|
|
4191
|
+
};
|
|
4192
|
+
content: {
|
|
4193
|
+
"application/json": {
|
|
4194
|
+
error: string;
|
|
4195
|
+
};
|
|
4196
|
+
};
|
|
4197
|
+
};
|
|
4198
|
+
/** @description Internal server error */
|
|
4199
|
+
500: {
|
|
4200
|
+
headers: {
|
|
4201
|
+
[name: string]: unknown;
|
|
4202
|
+
};
|
|
4203
|
+
content: {
|
|
4204
|
+
"application/json": {
|
|
4205
|
+
error: string;
|
|
4206
|
+
};
|
|
4207
|
+
};
|
|
4208
|
+
};
|
|
4209
|
+
};
|
|
4210
|
+
};
|
|
4211
|
+
deleteAgent: {
|
|
4212
|
+
parameters: {
|
|
4213
|
+
query?: never;
|
|
4214
|
+
header: {
|
|
4215
|
+
"sp-access-token": string;
|
|
4216
|
+
};
|
|
4217
|
+
path: {
|
|
4218
|
+
id: string;
|
|
4219
|
+
};
|
|
4220
|
+
cookie?: never;
|
|
4221
|
+
};
|
|
4222
|
+
requestBody?: never;
|
|
4223
|
+
responses: {
|
|
4224
|
+
/** @description Agent deleted successfully */
|
|
4225
|
+
200: {
|
|
4226
|
+
headers: {
|
|
4227
|
+
[name: string]: unknown;
|
|
4228
|
+
};
|
|
4229
|
+
content: {
|
|
4230
|
+
"application/json": {
|
|
4231
|
+
/** @enum {boolean} */
|
|
4232
|
+
success: true;
|
|
4233
|
+
};
|
|
4234
|
+
};
|
|
4235
|
+
};
|
|
4236
|
+
/** @description Agent not found */
|
|
4237
|
+
404: {
|
|
4238
|
+
headers: {
|
|
4239
|
+
[name: string]: unknown;
|
|
4240
|
+
};
|
|
4241
|
+
content: {
|
|
4242
|
+
"application/json": {
|
|
4243
|
+
error: string;
|
|
4244
|
+
};
|
|
4245
|
+
};
|
|
4246
|
+
};
|
|
4247
|
+
/** @description Internal server error */
|
|
4248
|
+
500: {
|
|
4249
|
+
headers: {
|
|
4250
|
+
[name: string]: unknown;
|
|
4251
|
+
};
|
|
4252
|
+
content: {
|
|
4253
|
+
"application/json": {
|
|
4254
|
+
error: string;
|
|
4255
|
+
};
|
|
4256
|
+
};
|
|
4257
|
+
};
|
|
4258
|
+
};
|
|
4259
|
+
};
|
|
4260
|
+
}
|
|
4261
|
+
|
|
4262
|
+
declare type PatchParam<T, Config extends RemoveParamsConfig, P extends keyof Config> = Simplify<T extends {
|
|
4263
|
+
[key in P]: infer H;
|
|
4264
|
+
} ? H extends Partial<Record<string, unknown>> ? Config[P] extends string ? Omit<H, Config[P]> : H : never : never>;
|
|
4265
|
+
|
|
4266
|
+
/**
|
|
4267
|
+
* This file was auto-generated by openapi-typescript.
|
|
4268
|
+
* Do not make direct changes to the file.
|
|
4269
|
+
*/
|
|
4270
|
+
|
|
4271
|
+
declare interface paths {
|
|
4272
|
+
"/api/v1/auth/exchangeExternalToken": {
|
|
4273
|
+
parameters: {
|
|
4274
|
+
query?: never;
|
|
4275
|
+
header?: never;
|
|
4276
|
+
path?: never;
|
|
4277
|
+
cookie?: never;
|
|
4278
|
+
};
|
|
4279
|
+
get?: never;
|
|
4280
|
+
put?: never;
|
|
4281
|
+
post: operations["exchangeExternalToken"];
|
|
4282
|
+
delete?: never;
|
|
4283
|
+
options?: never;
|
|
4284
|
+
head?: never;
|
|
4285
|
+
patch?: never;
|
|
4286
|
+
trace?: never;
|
|
4287
|
+
};
|
|
4288
|
+
"/api/v1/auth/apiInformation": {
|
|
4289
|
+
parameters: {
|
|
4290
|
+
query?: never;
|
|
4291
|
+
header?: never;
|
|
4292
|
+
path?: never;
|
|
4293
|
+
cookie?: never;
|
|
4294
|
+
};
|
|
4295
|
+
get: operations["getApiInformation"];
|
|
4296
|
+
put?: never;
|
|
4297
|
+
post?: never;
|
|
4298
|
+
delete?: never;
|
|
4299
|
+
options?: never;
|
|
4300
|
+
head?: never;
|
|
4301
|
+
patch?: never;
|
|
4302
|
+
trace?: never;
|
|
4303
|
+
};
|
|
4304
|
+
"/api/v1/public/canvas/{canvas_id}/data-reports/{report_id}/columns": {
|
|
4305
|
+
parameters: {
|
|
4306
|
+
query?: never;
|
|
4307
|
+
header?: never;
|
|
4308
|
+
path?: never;
|
|
4309
|
+
cookie?: never;
|
|
4310
|
+
};
|
|
4311
|
+
get: operations["getPublicCanvasDataReportColumns"];
|
|
4312
|
+
put?: never;
|
|
4313
|
+
post?: never;
|
|
4314
|
+
delete?: never;
|
|
4315
|
+
options?: never;
|
|
4316
|
+
head?: never;
|
|
4317
|
+
patch?: never;
|
|
4318
|
+
trace?: never;
|
|
4319
|
+
};
|
|
4320
|
+
"/api/v1/public/canvas/{canvas_id}/data-reports/{report_id}/data": {
|
|
4321
|
+
parameters: {
|
|
4322
|
+
query?: never;
|
|
4323
|
+
header?: never;
|
|
4324
|
+
path?: never;
|
|
4325
|
+
cookie?: never;
|
|
4326
|
+
};
|
|
4327
|
+
get: operations["getPublicCanvasDataReportData"];
|
|
4328
|
+
put?: never;
|
|
4329
|
+
post?: never;
|
|
4330
|
+
delete?: never;
|
|
4331
|
+
options?: never;
|
|
4332
|
+
head?: never;
|
|
4333
|
+
patch?: never;
|
|
4334
|
+
trace?: never;
|
|
4335
|
+
};
|
|
4336
|
+
"/api/v1/public/canvas/{canvas_id}/data-reports/{report_id}/count": {
|
|
4337
|
+
parameters: {
|
|
4338
|
+
query?: never;
|
|
4339
|
+
header?: never;
|
|
4340
|
+
path?: never;
|
|
4341
|
+
cookie?: never;
|
|
4342
|
+
};
|
|
4343
|
+
get: operations["getPublicCanvasDataReportRowCount"];
|
|
4344
|
+
put?: never;
|
|
4345
|
+
post?: never;
|
|
4346
|
+
delete?: never;
|
|
4347
|
+
options?: never;
|
|
3597
4348
|
head?: never;
|
|
3598
4349
|
patch?: never;
|
|
3599
4350
|
trace?: never;
|
|
@@ -4078,6 +4829,38 @@ declare interface paths {
|
|
|
4078
4829
|
patch?: never;
|
|
4079
4830
|
trace?: never;
|
|
4080
4831
|
};
|
|
4832
|
+
"/api/v1/agent-runs": {
|
|
4833
|
+
parameters: {
|
|
4834
|
+
query?: never;
|
|
4835
|
+
header?: never;
|
|
4836
|
+
path?: never;
|
|
4837
|
+
cookie?: never;
|
|
4838
|
+
};
|
|
4839
|
+
get: operations["listAgentRuns"];
|
|
4840
|
+
put?: never;
|
|
4841
|
+
post: operations["startAgentRun"];
|
|
4842
|
+
delete?: never;
|
|
4843
|
+
options?: never;
|
|
4844
|
+
head?: never;
|
|
4845
|
+
patch?: never;
|
|
4846
|
+
trace?: never;
|
|
4847
|
+
};
|
|
4848
|
+
"/api/v1/agent-runs/{id}": {
|
|
4849
|
+
parameters: {
|
|
4850
|
+
query?: never;
|
|
4851
|
+
header?: never;
|
|
4852
|
+
path?: never;
|
|
4853
|
+
cookie?: never;
|
|
4854
|
+
};
|
|
4855
|
+
get: operations["getAgentRun"];
|
|
4856
|
+
put?: never;
|
|
4857
|
+
post?: never;
|
|
4858
|
+
delete?: never;
|
|
4859
|
+
options?: never;
|
|
4860
|
+
head?: never;
|
|
4861
|
+
patch?: never;
|
|
4862
|
+
trace?: never;
|
|
4863
|
+
};
|
|
4081
4864
|
"/api/v1/admin-console/query-examples": {
|
|
4082
4865
|
parameters: {
|
|
4083
4866
|
query?: never;
|
|
@@ -4206,6 +4989,86 @@ declare interface paths {
|
|
|
4206
4989
|
patch?: never;
|
|
4207
4990
|
trace?: never;
|
|
4208
4991
|
};
|
|
4992
|
+
"/api/v1/admin-console/agents/generate-inputs": {
|
|
4993
|
+
parameters: {
|
|
4994
|
+
query?: never;
|
|
4995
|
+
header?: never;
|
|
4996
|
+
path?: never;
|
|
4997
|
+
cookie?: never;
|
|
4998
|
+
};
|
|
4999
|
+
get?: never;
|
|
5000
|
+
put?: never;
|
|
5001
|
+
post: operations["generateSuggestedInputs"];
|
|
5002
|
+
delete?: never;
|
|
5003
|
+
options?: never;
|
|
5004
|
+
head?: never;
|
|
5005
|
+
patch?: never;
|
|
5006
|
+
trace?: never;
|
|
5007
|
+
};
|
|
5008
|
+
"/api/v1/admin-console/agents/generate-output": {
|
|
5009
|
+
parameters: {
|
|
5010
|
+
query?: never;
|
|
5011
|
+
header?: never;
|
|
5012
|
+
path?: never;
|
|
5013
|
+
cookie?: never;
|
|
5014
|
+
};
|
|
5015
|
+
get?: never;
|
|
5016
|
+
put?: never;
|
|
5017
|
+
post: operations["generateOutputStructure"];
|
|
5018
|
+
delete?: never;
|
|
5019
|
+
options?: never;
|
|
5020
|
+
head?: never;
|
|
5021
|
+
patch?: never;
|
|
5022
|
+
trace?: never;
|
|
5023
|
+
};
|
|
5024
|
+
"/api/v1/admin-console/agents/generate-fragments": {
|
|
5025
|
+
parameters: {
|
|
5026
|
+
query?: never;
|
|
5027
|
+
header?: never;
|
|
5028
|
+
path?: never;
|
|
5029
|
+
cookie?: never;
|
|
5030
|
+
};
|
|
5031
|
+
get?: never;
|
|
5032
|
+
put?: never;
|
|
5033
|
+
post: operations["generateFragments"];
|
|
5034
|
+
delete?: never;
|
|
5035
|
+
options?: never;
|
|
5036
|
+
head?: never;
|
|
5037
|
+
patch?: never;
|
|
5038
|
+
trace?: never;
|
|
5039
|
+
};
|
|
5040
|
+
"/api/v1/agents": {
|
|
5041
|
+
parameters: {
|
|
5042
|
+
query?: never;
|
|
5043
|
+
header?: never;
|
|
5044
|
+
path?: never;
|
|
5045
|
+
cookie?: never;
|
|
5046
|
+
};
|
|
5047
|
+
get: operations["listAgents"];
|
|
5048
|
+
put?: never;
|
|
5049
|
+
post: operations["createAgent"];
|
|
5050
|
+
delete?: never;
|
|
5051
|
+
options?: never;
|
|
5052
|
+
head?: never;
|
|
5053
|
+
patch?: never;
|
|
5054
|
+
trace?: never;
|
|
5055
|
+
};
|
|
5056
|
+
"/api/v1/agents/{id}": {
|
|
5057
|
+
parameters: {
|
|
5058
|
+
query?: never;
|
|
5059
|
+
header?: never;
|
|
5060
|
+
path?: never;
|
|
5061
|
+
cookie?: never;
|
|
5062
|
+
};
|
|
5063
|
+
get: operations["getAgent"];
|
|
5064
|
+
put: operations["updateAgent"];
|
|
5065
|
+
post?: never;
|
|
5066
|
+
delete: operations["deleteAgent"];
|
|
5067
|
+
options?: never;
|
|
5068
|
+
head?: never;
|
|
5069
|
+
patch?: never;
|
|
5070
|
+
trace?: never;
|
|
5071
|
+
};
|
|
4209
5072
|
}
|
|
4210
5073
|
|
|
4211
5074
|
declare type QuickActions = z.infer<typeof QuickActionsSchema>;
|
|
@@ -4237,7 +5100,26 @@ declare const redactedOutputSchema: z.ZodObject<{
|
|
|
4237
5100
|
}, z.core.$strip>;
|
|
4238
5101
|
}, z.core.$strip>, z.ZodObject<{
|
|
4239
5102
|
status: z.ZodLiteral<"error">;
|
|
4240
|
-
|
|
5103
|
+
category: z.ZodOptional<z.ZodEnum<{
|
|
5104
|
+
unknown: "unknown";
|
|
5105
|
+
timeout: "timeout";
|
|
5106
|
+
connection_error: "connection_error";
|
|
5107
|
+
auth_error: "auth_error";
|
|
5108
|
+
resource_exhausted: "resource_exhausted";
|
|
5109
|
+
table_not_found: "table_not_found";
|
|
5110
|
+
column_not_found: "column_not_found";
|
|
5111
|
+
schema_not_found: "schema_not_found";
|
|
5112
|
+
view_not_found: "view_not_found";
|
|
5113
|
+
function_not_found: "function_not_found";
|
|
5114
|
+
syntax_error: "syntax_error";
|
|
5115
|
+
ambiguous_column: "ambiguous_column";
|
|
5116
|
+
type_mismatch: "type_mismatch";
|
|
5117
|
+
invalid_cast: "invalid_cast";
|
|
5118
|
+
invalid_argument: "invalid_argument";
|
|
5119
|
+
division_by_zero: "division_by_zero";
|
|
5120
|
+
constraint_violation: "constraint_violation";
|
|
5121
|
+
permission_denied: "permission_denied";
|
|
5122
|
+
}>>;
|
|
4241
5123
|
}, z.core.$strip>], "status">>;
|
|
4242
5124
|
}, z.core.$strip>;
|
|
4243
5125
|
|
|
@@ -4374,7 +5256,26 @@ declare const SignalWithReportIdSchema: z.ZodObject<{
|
|
|
4374
5256
|
|
|
4375
5257
|
declare type SortingState = ColumnSort[];
|
|
4376
5258
|
|
|
4377
|
-
declare type TableFilters = Record<string,
|
|
5259
|
+
declare type TableFilters = Record<string, TableFilterValue>;
|
|
5260
|
+
|
|
5261
|
+
declare type TableFilterValue = z.infer<typeof TableFilterValueSchema>;
|
|
5262
|
+
|
|
5263
|
+
declare const TableFilterValueSchema: z.ZodObject<{
|
|
5264
|
+
operator: z.ZodEnum<{
|
|
5265
|
+
contains: "contains";
|
|
5266
|
+
eq: "eq";
|
|
5267
|
+
gt: "gt";
|
|
5268
|
+
gte: "gte";
|
|
5269
|
+
lt: "lt";
|
|
5270
|
+
lte: "lte";
|
|
5271
|
+
endsWith: "endsWith";
|
|
5272
|
+
startsWith: "startsWith";
|
|
5273
|
+
neq: "neq";
|
|
5274
|
+
regex: "regex";
|
|
5275
|
+
between: "between";
|
|
5276
|
+
}>;
|
|
5277
|
+
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>]>;
|
|
5278
|
+
}, z.core.$strip>;
|
|
4378
5279
|
|
|
4379
5280
|
/**
|
|
4380
5281
|
* Token storage keys
|