@tai42/studio-sdk 15.0.0 → 16.0.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/hooks/useApi.d.ts +439 -323
- package/dist/hooks/useApi.d.ts.map +1 -1
- package/dist/schema-editor/SchemaEditor.d.ts +8 -1
- package/dist/schema-editor/SchemaEditor.d.ts.map +1 -1
- package/dist/schema-editor/SchemaEditor.js +2 -2
- package/dist/schema-editor/SchemaEditor.js.map +1 -1
- package/package.json +2 -2
- package/src/schema-editor/SchemaEditor.tsx +9 -1
package/dist/hooks/useApi.d.ts
CHANGED
|
@@ -118,44 +118,48 @@ export declare const ApiProvider: import("react").Provider<{
|
|
|
118
118
|
body: {
|
|
119
119
|
base_tool: string;
|
|
120
120
|
description: string;
|
|
121
|
+
extensions: (string | Record<string, unknown>)[][];
|
|
121
122
|
fixed_kwargs: Record<string, unknown>;
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
123
|
+
input_schema: Record<string, unknown> | {
|
|
124
|
+
content?: string | undefined;
|
|
125
|
+
id?: string | undefined;
|
|
126
|
+
kwargs?: Record<string, unknown> | undefined;
|
|
127
|
+
} | null;
|
|
128
|
+
output_schema: Record<string, unknown> | {
|
|
129
|
+
content?: string | undefined;
|
|
130
|
+
id?: string | undefined;
|
|
131
|
+
kwargs?: Record<string, unknown> | undefined;
|
|
132
|
+
} | null;
|
|
128
133
|
state_binding: {
|
|
129
134
|
states: {
|
|
130
|
-
state: string;
|
|
131
|
-
templates: string[];
|
|
132
|
-
subject_expr: {
|
|
133
|
-
content?: string | undefined;
|
|
134
|
-
id?: string | undefined;
|
|
135
|
-
kwargs?: Record<string, unknown> | undefined;
|
|
136
|
-
};
|
|
137
|
-
scope_expr: {
|
|
138
|
-
content?: string | undefined;
|
|
139
|
-
id?: string | undefined;
|
|
140
|
-
kwargs?: Record<string, unknown> | undefined;
|
|
141
|
-
} | null;
|
|
142
135
|
input_injections: {
|
|
143
|
-
|
|
136
|
+
into: string;
|
|
144
137
|
jq: {
|
|
145
138
|
content?: string | undefined;
|
|
146
139
|
id?: string | undefined;
|
|
147
140
|
kwargs?: Record<string, unknown> | undefined;
|
|
148
141
|
} | null;
|
|
149
|
-
|
|
142
|
+
template_jq: string | null;
|
|
150
143
|
}[];
|
|
144
|
+
scope_expr: {
|
|
145
|
+
content?: string | undefined;
|
|
146
|
+
id?: string | undefined;
|
|
147
|
+
kwargs?: Record<string, unknown> | undefined;
|
|
148
|
+
} | null;
|
|
149
|
+
state: string;
|
|
150
|
+
subject_expr: {
|
|
151
|
+
content?: string | undefined;
|
|
152
|
+
id?: string | undefined;
|
|
153
|
+
kwargs?: Record<string, unknown> | undefined;
|
|
154
|
+
};
|
|
155
|
+
templates: string[];
|
|
151
156
|
updates: {
|
|
152
|
-
|
|
153
|
-
jq: {
|
|
157
|
+
adapter: {
|
|
154
158
|
content?: string | undefined;
|
|
155
159
|
id?: string | undefined;
|
|
156
160
|
kwargs?: Record<string, unknown> | undefined;
|
|
157
161
|
} | null;
|
|
158
|
-
|
|
162
|
+
jq: {
|
|
159
163
|
content?: string | undefined;
|
|
160
164
|
id?: string | undefined;
|
|
161
165
|
kwargs?: Record<string, unknown> | undefined;
|
|
@@ -165,6 +169,7 @@ export declare const ApiProvider: import("react").Provider<{
|
|
|
165
169
|
id?: string | undefined;
|
|
166
170
|
kwargs?: Record<string, unknown> | undefined;
|
|
167
171
|
} | null;
|
|
172
|
+
template_jq: string | null;
|
|
168
173
|
}[];
|
|
169
174
|
}[];
|
|
170
175
|
} | null;
|
|
@@ -178,44 +183,48 @@ export declare const ApiProvider: import("react").Provider<{
|
|
|
178
183
|
body: {
|
|
179
184
|
base_tool: string;
|
|
180
185
|
description: string;
|
|
186
|
+
extensions: (string | Record<string, unknown>)[][];
|
|
181
187
|
fixed_kwargs: Record<string, unknown>;
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
+
input_schema: Record<string, unknown> | {
|
|
189
|
+
content?: string | undefined;
|
|
190
|
+
id?: string | undefined;
|
|
191
|
+
kwargs?: Record<string, unknown> | undefined;
|
|
192
|
+
} | null;
|
|
193
|
+
output_schema: Record<string, unknown> | {
|
|
194
|
+
content?: string | undefined;
|
|
195
|
+
id?: string | undefined;
|
|
196
|
+
kwargs?: Record<string, unknown> | undefined;
|
|
197
|
+
} | null;
|
|
188
198
|
state_binding: {
|
|
189
199
|
states: {
|
|
190
|
-
state: string;
|
|
191
|
-
templates: string[];
|
|
192
|
-
subject_expr: {
|
|
193
|
-
content?: string | undefined;
|
|
194
|
-
id?: string | undefined;
|
|
195
|
-
kwargs?: Record<string, unknown> | undefined;
|
|
196
|
-
};
|
|
197
|
-
scope_expr: {
|
|
198
|
-
content?: string | undefined;
|
|
199
|
-
id?: string | undefined;
|
|
200
|
-
kwargs?: Record<string, unknown> | undefined;
|
|
201
|
-
} | null;
|
|
202
200
|
input_injections: {
|
|
203
|
-
|
|
201
|
+
into: string;
|
|
204
202
|
jq: {
|
|
205
203
|
content?: string | undefined;
|
|
206
204
|
id?: string | undefined;
|
|
207
205
|
kwargs?: Record<string, unknown> | undefined;
|
|
208
206
|
} | null;
|
|
209
|
-
|
|
207
|
+
template_jq: string | null;
|
|
210
208
|
}[];
|
|
209
|
+
scope_expr: {
|
|
210
|
+
content?: string | undefined;
|
|
211
|
+
id?: string | undefined;
|
|
212
|
+
kwargs?: Record<string, unknown> | undefined;
|
|
213
|
+
} | null;
|
|
214
|
+
state: string;
|
|
215
|
+
subject_expr: {
|
|
216
|
+
content?: string | undefined;
|
|
217
|
+
id?: string | undefined;
|
|
218
|
+
kwargs?: Record<string, unknown> | undefined;
|
|
219
|
+
};
|
|
220
|
+
templates: string[];
|
|
211
221
|
updates: {
|
|
212
|
-
|
|
213
|
-
jq: {
|
|
222
|
+
adapter: {
|
|
214
223
|
content?: string | undefined;
|
|
215
224
|
id?: string | undefined;
|
|
216
225
|
kwargs?: Record<string, unknown> | undefined;
|
|
217
226
|
} | null;
|
|
218
|
-
|
|
227
|
+
jq: {
|
|
219
228
|
content?: string | undefined;
|
|
220
229
|
id?: string | undefined;
|
|
221
230
|
kwargs?: Record<string, unknown> | undefined;
|
|
@@ -225,6 +234,7 @@ export declare const ApiProvider: import("react").Provider<{
|
|
|
225
234
|
id?: string | undefined;
|
|
226
235
|
kwargs?: Record<string, unknown> | undefined;
|
|
227
236
|
} | null;
|
|
237
|
+
template_jq: string | null;
|
|
228
238
|
}[];
|
|
229
239
|
}[];
|
|
230
240
|
} | null;
|
|
@@ -238,44 +248,48 @@ export declare const ApiProvider: import("react").Provider<{
|
|
|
238
248
|
body: {
|
|
239
249
|
base_tool: string;
|
|
240
250
|
description: string;
|
|
251
|
+
extensions: (string | Record<string, unknown>)[][];
|
|
241
252
|
fixed_kwargs: Record<string, unknown>;
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
253
|
+
input_schema: Record<string, unknown> | {
|
|
254
|
+
content?: string | undefined;
|
|
255
|
+
id?: string | undefined;
|
|
256
|
+
kwargs?: Record<string, unknown> | undefined;
|
|
257
|
+
} | null;
|
|
258
|
+
output_schema: Record<string, unknown> | {
|
|
259
|
+
content?: string | undefined;
|
|
260
|
+
id?: string | undefined;
|
|
261
|
+
kwargs?: Record<string, unknown> | undefined;
|
|
262
|
+
} | null;
|
|
248
263
|
state_binding: {
|
|
249
264
|
states: {
|
|
250
|
-
state: string;
|
|
251
|
-
templates: string[];
|
|
252
|
-
subject_expr: {
|
|
253
|
-
content?: string | undefined;
|
|
254
|
-
id?: string | undefined;
|
|
255
|
-
kwargs?: Record<string, unknown> | undefined;
|
|
256
|
-
};
|
|
257
|
-
scope_expr: {
|
|
258
|
-
content?: string | undefined;
|
|
259
|
-
id?: string | undefined;
|
|
260
|
-
kwargs?: Record<string, unknown> | undefined;
|
|
261
|
-
} | null;
|
|
262
265
|
input_injections: {
|
|
263
|
-
|
|
266
|
+
into: string;
|
|
264
267
|
jq: {
|
|
265
268
|
content?: string | undefined;
|
|
266
269
|
id?: string | undefined;
|
|
267
270
|
kwargs?: Record<string, unknown> | undefined;
|
|
268
271
|
} | null;
|
|
269
|
-
|
|
272
|
+
template_jq: string | null;
|
|
270
273
|
}[];
|
|
274
|
+
scope_expr: {
|
|
275
|
+
content?: string | undefined;
|
|
276
|
+
id?: string | undefined;
|
|
277
|
+
kwargs?: Record<string, unknown> | undefined;
|
|
278
|
+
} | null;
|
|
279
|
+
state: string;
|
|
280
|
+
subject_expr: {
|
|
281
|
+
content?: string | undefined;
|
|
282
|
+
id?: string | undefined;
|
|
283
|
+
kwargs?: Record<string, unknown> | undefined;
|
|
284
|
+
};
|
|
285
|
+
templates: string[];
|
|
271
286
|
updates: {
|
|
272
|
-
|
|
273
|
-
jq: {
|
|
287
|
+
adapter: {
|
|
274
288
|
content?: string | undefined;
|
|
275
289
|
id?: string | undefined;
|
|
276
290
|
kwargs?: Record<string, unknown> | undefined;
|
|
277
291
|
} | null;
|
|
278
|
-
|
|
292
|
+
jq: {
|
|
279
293
|
content?: string | undefined;
|
|
280
294
|
id?: string | undefined;
|
|
281
295
|
kwargs?: Record<string, unknown> | undefined;
|
|
@@ -285,6 +299,7 @@ export declare const ApiProvider: import("react").Provider<{
|
|
|
285
299
|
id?: string | undefined;
|
|
286
300
|
kwargs?: Record<string, unknown> | undefined;
|
|
287
301
|
} | null;
|
|
302
|
+
template_jq: string | null;
|
|
288
303
|
}[];
|
|
289
304
|
}[];
|
|
290
305
|
} | null;
|
|
@@ -320,47 +335,61 @@ export declare const ApiProvider: import("react").Provider<{
|
|
|
320
335
|
tags: string[];
|
|
321
336
|
}>;
|
|
322
337
|
readonly listStates: (signal?: AbortSignal) => Promise<{
|
|
323
|
-
name: string;
|
|
324
|
-
description: string;
|
|
325
|
-
schema: Record<string, unknown>;
|
|
326
|
-
subject_kinds: string[];
|
|
327
338
|
default_subject_kind: string;
|
|
339
|
+
description: string;
|
|
340
|
+
effective_schema: Record<string, unknown> | null;
|
|
341
|
+
name: string;
|
|
342
|
+
regimes: Record<string, unknown>[] | null;
|
|
328
343
|
retention_days: number | null;
|
|
344
|
+
subject_kinds: string[];
|
|
329
345
|
updated_at: string | null;
|
|
330
|
-
|
|
331
|
-
|
|
346
|
+
schema?: Record<string, unknown> | {
|
|
347
|
+
content?: string | undefined;
|
|
348
|
+
id?: string | undefined;
|
|
349
|
+
kwargs?: Record<string, unknown> | undefined;
|
|
350
|
+
} | undefined;
|
|
332
351
|
}[]>;
|
|
333
352
|
readonly getState: (name: string, signal?: AbortSignal) => Promise<{
|
|
334
|
-
name: string;
|
|
335
|
-
description: string;
|
|
336
|
-
schema: Record<string, unknown>;
|
|
337
|
-
subject_kinds: string[];
|
|
338
353
|
default_subject_kind: string;
|
|
354
|
+
description: string;
|
|
355
|
+
effective_schema: Record<string, unknown> | null;
|
|
356
|
+
name: string;
|
|
357
|
+
regimes: Record<string, unknown>[] | null;
|
|
339
358
|
retention_days: number | null;
|
|
359
|
+
subject_kinds: string[];
|
|
360
|
+
updated_at: string | null;
|
|
340
361
|
attachments: {
|
|
341
362
|
template: string;
|
|
342
363
|
path: string[];
|
|
343
364
|
parameters: Record<string, unknown>;
|
|
344
365
|
declarations: Record<string, unknown>;
|
|
345
366
|
}[];
|
|
346
|
-
|
|
347
|
-
|
|
367
|
+
schema?: Record<string, unknown> | {
|
|
368
|
+
content?: string | undefined;
|
|
369
|
+
id?: string | undefined;
|
|
370
|
+
kwargs?: Record<string, unknown> | undefined;
|
|
371
|
+
} | undefined;
|
|
348
372
|
}>;
|
|
349
373
|
readonly putState: (name: string, body: import("@tai42/api-client").StateDeclarationBody) => Promise<{
|
|
350
|
-
name: string;
|
|
351
|
-
description: string;
|
|
352
|
-
schema: Record<string, unknown>;
|
|
353
|
-
subject_kinds: string[];
|
|
354
374
|
default_subject_kind: string;
|
|
375
|
+
description: string;
|
|
376
|
+
effective_schema: Record<string, unknown> | null;
|
|
377
|
+
name: string;
|
|
378
|
+
regimes: Record<string, unknown>[] | null;
|
|
355
379
|
retention_days: number | null;
|
|
380
|
+
subject_kinds: string[];
|
|
381
|
+
updated_at: string | null;
|
|
356
382
|
attachments: {
|
|
357
383
|
template: string;
|
|
358
384
|
path: string[];
|
|
359
385
|
parameters: Record<string, unknown>;
|
|
360
386
|
declarations: Record<string, unknown>;
|
|
361
387
|
}[];
|
|
362
|
-
|
|
363
|
-
|
|
388
|
+
schema?: Record<string, unknown> | {
|
|
389
|
+
content?: string | undefined;
|
|
390
|
+
id?: string | undefined;
|
|
391
|
+
kwargs?: Record<string, unknown> | undefined;
|
|
392
|
+
} | undefined;
|
|
364
393
|
}>;
|
|
365
394
|
readonly deleteState: (name: string) => Promise<{
|
|
366
395
|
name: string;
|
|
@@ -563,144 +592,156 @@ export declare const ApiProvider: import("react").Provider<{
|
|
|
563
592
|
unavailable: string | null;
|
|
564
593
|
}[]>;
|
|
565
594
|
readonly listStateTemplates: (signal?: AbortSignal) => Promise<{
|
|
566
|
-
kind: "state-template";
|
|
567
|
-
name: string;
|
|
568
|
-
description: string;
|
|
569
|
-
parameters: Record<string, unknown>;
|
|
570
|
-
schema: Record<string, unknown>;
|
|
571
|
-
regimes: Record<string, unknown>[];
|
|
572
595
|
declarations: {
|
|
573
|
-
schema: Record<string, unknown>;
|
|
574
596
|
check: {
|
|
575
597
|
content?: string | undefined;
|
|
576
598
|
id?: string | undefined;
|
|
577
599
|
kwargs?: Record<string, unknown> | undefined;
|
|
578
600
|
} | null;
|
|
601
|
+
schema: Record<string, unknown>;
|
|
579
602
|
} | null;
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
writes: string[][];
|
|
587
|
-
jq: {
|
|
603
|
+
description: string;
|
|
604
|
+
kind: "state-template";
|
|
605
|
+
name: string;
|
|
606
|
+
parameters: Record<string, unknown>;
|
|
607
|
+
reconcile: {
|
|
608
|
+
close: {
|
|
588
609
|
content?: string | undefined;
|
|
589
610
|
id?: string | undefined;
|
|
590
611
|
kwargs?: Record<string, unknown> | undefined;
|
|
591
612
|
};
|
|
592
|
-
}> | null;
|
|
593
|
-
reconcile: {
|
|
594
613
|
orphans: {
|
|
595
614
|
content?: string | undefined;
|
|
596
615
|
id?: string | undefined;
|
|
597
616
|
kwargs?: Record<string, unknown> | undefined;
|
|
598
617
|
};
|
|
599
|
-
|
|
618
|
+
resolutions: {
|
|
600
619
|
content?: string | undefined;
|
|
601
620
|
id?: string | undefined;
|
|
602
621
|
kwargs?: Record<string, unknown> | undefined;
|
|
603
622
|
};
|
|
604
|
-
|
|
623
|
+
} | null;
|
|
624
|
+
regimes: Record<string, unknown>[];
|
|
625
|
+
template_jq: Record<string, {
|
|
626
|
+
description: string;
|
|
627
|
+
jq: {
|
|
605
628
|
content?: string | undefined;
|
|
606
629
|
id?: string | undefined;
|
|
607
630
|
kwargs?: Record<string, unknown> | undefined;
|
|
608
631
|
};
|
|
609
|
-
|
|
632
|
+
params: string[];
|
|
633
|
+
purpose: "input" | "update";
|
|
634
|
+
reads: string[][];
|
|
635
|
+
writes: string[][];
|
|
636
|
+
}> | null;
|
|
637
|
+
trace: Record<string, unknown>;
|
|
610
638
|
attached_to: number;
|
|
611
639
|
shipped_default: boolean;
|
|
640
|
+
schema?: Record<string, unknown> | {
|
|
641
|
+
content?: string | undefined;
|
|
642
|
+
id?: string | undefined;
|
|
643
|
+
kwargs?: Record<string, unknown> | undefined;
|
|
644
|
+
} | undefined;
|
|
612
645
|
}[]>;
|
|
613
646
|
readonly getStateTemplate: (name: string, signal?: AbortSignal) => Promise<{
|
|
614
|
-
kind: "state-template";
|
|
615
|
-
name: string;
|
|
616
|
-
description: string;
|
|
617
|
-
parameters: Record<string, unknown>;
|
|
618
|
-
schema: Record<string, unknown>;
|
|
619
|
-
regimes: Record<string, unknown>[];
|
|
620
647
|
declarations: {
|
|
621
|
-
schema: Record<string, unknown>;
|
|
622
648
|
check: {
|
|
623
649
|
content?: string | undefined;
|
|
624
650
|
id?: string | undefined;
|
|
625
651
|
kwargs?: Record<string, unknown> | undefined;
|
|
626
652
|
} | null;
|
|
653
|
+
schema: Record<string, unknown>;
|
|
627
654
|
} | null;
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
writes: string[][];
|
|
635
|
-
jq: {
|
|
655
|
+
description: string;
|
|
656
|
+
kind: "state-template";
|
|
657
|
+
name: string;
|
|
658
|
+
parameters: Record<string, unknown>;
|
|
659
|
+
reconcile: {
|
|
660
|
+
close: {
|
|
636
661
|
content?: string | undefined;
|
|
637
662
|
id?: string | undefined;
|
|
638
663
|
kwargs?: Record<string, unknown> | undefined;
|
|
639
664
|
};
|
|
640
|
-
}> | null;
|
|
641
|
-
reconcile: {
|
|
642
665
|
orphans: {
|
|
643
666
|
content?: string | undefined;
|
|
644
667
|
id?: string | undefined;
|
|
645
668
|
kwargs?: Record<string, unknown> | undefined;
|
|
646
669
|
};
|
|
647
|
-
|
|
670
|
+
resolutions: {
|
|
648
671
|
content?: string | undefined;
|
|
649
672
|
id?: string | undefined;
|
|
650
673
|
kwargs?: Record<string, unknown> | undefined;
|
|
651
674
|
};
|
|
652
|
-
|
|
675
|
+
} | null;
|
|
676
|
+
regimes: Record<string, unknown>[];
|
|
677
|
+
template_jq: Record<string, {
|
|
678
|
+
description: string;
|
|
679
|
+
jq: {
|
|
653
680
|
content?: string | undefined;
|
|
654
681
|
id?: string | undefined;
|
|
655
682
|
kwargs?: Record<string, unknown> | undefined;
|
|
656
683
|
};
|
|
657
|
-
|
|
684
|
+
params: string[];
|
|
685
|
+
purpose: "input" | "update";
|
|
686
|
+
reads: string[][];
|
|
687
|
+
writes: string[][];
|
|
688
|
+
}> | null;
|
|
689
|
+
trace: Record<string, unknown>;
|
|
690
|
+
schema?: Record<string, unknown> | {
|
|
691
|
+
content?: string | undefined;
|
|
692
|
+
id?: string | undefined;
|
|
693
|
+
kwargs?: Record<string, unknown> | undefined;
|
|
694
|
+
} | undefined;
|
|
658
695
|
}>;
|
|
659
696
|
readonly putStateTemplate: (name: string, body: import("@tai42/api-client").StateTemplateBody, replace?: boolean) => Promise<{
|
|
660
|
-
kind: "state-template";
|
|
661
|
-
name: string;
|
|
662
|
-
description: string;
|
|
663
|
-
parameters: Record<string, unknown>;
|
|
664
|
-
schema: Record<string, unknown>;
|
|
665
|
-
regimes: Record<string, unknown>[];
|
|
666
697
|
declarations: {
|
|
667
|
-
schema: Record<string, unknown>;
|
|
668
698
|
check: {
|
|
669
699
|
content?: string | undefined;
|
|
670
700
|
id?: string | undefined;
|
|
671
701
|
kwargs?: Record<string, unknown> | undefined;
|
|
672
702
|
} | null;
|
|
703
|
+
schema: Record<string, unknown>;
|
|
673
704
|
} | null;
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
writes: string[][];
|
|
681
|
-
jq: {
|
|
705
|
+
description: string;
|
|
706
|
+
kind: "state-template";
|
|
707
|
+
name: string;
|
|
708
|
+
parameters: Record<string, unknown>;
|
|
709
|
+
reconcile: {
|
|
710
|
+
close: {
|
|
682
711
|
content?: string | undefined;
|
|
683
712
|
id?: string | undefined;
|
|
684
713
|
kwargs?: Record<string, unknown> | undefined;
|
|
685
714
|
};
|
|
686
|
-
}> | null;
|
|
687
|
-
reconcile: {
|
|
688
715
|
orphans: {
|
|
689
716
|
content?: string | undefined;
|
|
690
717
|
id?: string | undefined;
|
|
691
718
|
kwargs?: Record<string, unknown> | undefined;
|
|
692
719
|
};
|
|
693
|
-
|
|
720
|
+
resolutions: {
|
|
694
721
|
content?: string | undefined;
|
|
695
722
|
id?: string | undefined;
|
|
696
723
|
kwargs?: Record<string, unknown> | undefined;
|
|
697
724
|
};
|
|
698
|
-
|
|
725
|
+
} | null;
|
|
726
|
+
regimes: Record<string, unknown>[];
|
|
727
|
+
template_jq: Record<string, {
|
|
728
|
+
description: string;
|
|
729
|
+
jq: {
|
|
699
730
|
content?: string | undefined;
|
|
700
731
|
id?: string | undefined;
|
|
701
732
|
kwargs?: Record<string, unknown> | undefined;
|
|
702
733
|
};
|
|
703
|
-
|
|
734
|
+
params: string[];
|
|
735
|
+
purpose: "input" | "update";
|
|
736
|
+
reads: string[][];
|
|
737
|
+
writes: string[][];
|
|
738
|
+
}> | null;
|
|
739
|
+
trace: Record<string, unknown>;
|
|
740
|
+
schema?: Record<string, unknown> | {
|
|
741
|
+
content?: string | undefined;
|
|
742
|
+
id?: string | undefined;
|
|
743
|
+
kwargs?: Record<string, unknown> | undefined;
|
|
744
|
+
} | undefined;
|
|
704
745
|
}>;
|
|
705
746
|
readonly deleteStateTemplate: (name: string) => Promise<{
|
|
706
747
|
name: string;
|
|
@@ -1381,7 +1422,7 @@ export declare const ApiProvider: import("react").Provider<{
|
|
|
1381
1422
|
display_name: string;
|
|
1382
1423
|
description: string;
|
|
1383
1424
|
icon_url: string;
|
|
1384
|
-
kind: "
|
|
1425
|
+
kind: "none" | "oauth";
|
|
1385
1426
|
origin: "system" | "community";
|
|
1386
1427
|
category: string;
|
|
1387
1428
|
sub_services: {
|
|
@@ -1409,7 +1450,7 @@ export declare const ApiProvider: import("react").Provider<{
|
|
|
1409
1450
|
connection_id: string;
|
|
1410
1451
|
provider_id: string;
|
|
1411
1452
|
alias: string;
|
|
1412
|
-
kind: "
|
|
1453
|
+
kind: "none" | "oauth";
|
|
1413
1454
|
account_identity: string | null;
|
|
1414
1455
|
enabled_sub_services: string[];
|
|
1415
1456
|
granted_scopes: string[];
|
|
@@ -1424,7 +1465,7 @@ export declare const ApiProvider: import("react").Provider<{
|
|
|
1424
1465
|
connection_id: string;
|
|
1425
1466
|
provider_id: string;
|
|
1426
1467
|
alias: string;
|
|
1427
|
-
kind: "
|
|
1468
|
+
kind: "none" | "oauth";
|
|
1428
1469
|
account_identity: string | null;
|
|
1429
1470
|
enabled_sub_services: string[];
|
|
1430
1471
|
granted_scopes: string[];
|
|
@@ -1638,63 +1679,30 @@ export declare const ApiProvider: import("react").Provider<{
|
|
|
1638
1679
|
}>;
|
|
1639
1680
|
readonly listConversationRoutes: (signal?: AbortSignal) => Promise<{
|
|
1640
1681
|
items: {
|
|
1641
|
-
|
|
1642
|
-
door: "channel" | "api";
|
|
1643
|
-
target_kind: "tool" | "agent";
|
|
1644
|
-
target_name: string;
|
|
1645
|
-
payload_expr: string | null;
|
|
1646
|
-
reply_expr: string | null;
|
|
1647
|
-
initial_mode: "agent" | "manual";
|
|
1648
|
-
execution_key: string;
|
|
1649
|
-
channel: string | null;
|
|
1650
|
-
our_identity: string | null;
|
|
1682
|
+
callback_secret: string | null;
|
|
1651
1683
|
callback_url: string | null;
|
|
1652
|
-
|
|
1684
|
+
channel: string | null;
|
|
1685
|
+
door: "channel" | "api";
|
|
1653
1686
|
error_reply_text: string | null;
|
|
1687
|
+
execution_key: string;
|
|
1654
1688
|
execution_key_fingerprint: string;
|
|
1655
|
-
|
|
1656
|
-
|
|
1657
|
-
|
|
1658
|
-
|
|
1659
|
-
|
|
1660
|
-
|
|
1661
|
-
|
|
1662
|
-
|
|
1663
|
-
|
|
1664
|
-
|
|
1665
|
-
|
|
1666
|
-
|
|
1667
|
-
kwargs?: Record<string, unknown> | undefined;
|
|
1668
|
-
} | null;
|
|
1669
|
-
input_injections: {
|
|
1670
|
-
template_jq: string | null;
|
|
1671
|
-
jq: {
|
|
1672
|
-
content?: string | undefined;
|
|
1673
|
-
id?: string | undefined;
|
|
1674
|
-
kwargs?: Record<string, unknown> | undefined;
|
|
1675
|
-
} | null;
|
|
1676
|
-
into: string;
|
|
1677
|
-
}[];
|
|
1678
|
-
updates: {
|
|
1679
|
-
template_jq: string | null;
|
|
1680
|
-
jq: {
|
|
1681
|
-
content?: string | undefined;
|
|
1682
|
-
id?: string | undefined;
|
|
1683
|
-
kwargs?: Record<string, unknown> | undefined;
|
|
1684
|
-
} | null;
|
|
1685
|
-
adapter: {
|
|
1686
|
-
content?: string | undefined;
|
|
1687
|
-
id?: string | undefined;
|
|
1688
|
-
kwargs?: Record<string, unknown> | undefined;
|
|
1689
|
-
} | null;
|
|
1690
|
-
op_id: {
|
|
1691
|
-
content?: string | undefined;
|
|
1692
|
-
id?: string | undefined;
|
|
1693
|
-
kwargs?: Record<string, unknown> | undefined;
|
|
1694
|
-
} | null;
|
|
1695
|
-
}[];
|
|
1696
|
-
}[];
|
|
1689
|
+
initial_mode: "agent" | "manual";
|
|
1690
|
+
locale: string | null;
|
|
1691
|
+
our_identity: string | null;
|
|
1692
|
+
payload_expr: {
|
|
1693
|
+
content?: string | undefined;
|
|
1694
|
+
id?: string | undefined;
|
|
1695
|
+
kwargs?: Record<string, unknown> | undefined;
|
|
1696
|
+
} | null;
|
|
1697
|
+
reply_expr: {
|
|
1698
|
+
content?: string | undefined;
|
|
1699
|
+
id?: string | undefined;
|
|
1700
|
+
kwargs?: Record<string, unknown> | undefined;
|
|
1697
1701
|
} | null;
|
|
1702
|
+
route_name: string;
|
|
1703
|
+
target_kind: "tool" | "agent";
|
|
1704
|
+
target_name: string;
|
|
1705
|
+
turns_per_hour_override: number | null;
|
|
1698
1706
|
}[];
|
|
1699
1707
|
total: number;
|
|
1700
1708
|
}>;
|
|
@@ -1702,63 +1710,30 @@ export declare const ApiProvider: import("react").Provider<{
|
|
|
1702
1710
|
created: boolean;
|
|
1703
1711
|
route_name: string;
|
|
1704
1712
|
route: {
|
|
1705
|
-
|
|
1706
|
-
door: "channel" | "api";
|
|
1707
|
-
target_kind: "tool" | "agent";
|
|
1708
|
-
target_name: string;
|
|
1709
|
-
payload_expr: string | null;
|
|
1710
|
-
reply_expr: string | null;
|
|
1711
|
-
initial_mode: "agent" | "manual";
|
|
1712
|
-
execution_key: string;
|
|
1713
|
-
channel: string | null;
|
|
1714
|
-
our_identity: string | null;
|
|
1713
|
+
callback_secret: string | null;
|
|
1715
1714
|
callback_url: string | null;
|
|
1716
|
-
|
|
1717
|
-
|
|
1718
|
-
|
|
1719
|
-
|
|
1720
|
-
|
|
1721
|
-
|
|
1722
|
-
|
|
1723
|
-
|
|
1724
|
-
|
|
1725
|
-
|
|
1726
|
-
|
|
1727
|
-
|
|
1728
|
-
|
|
1729
|
-
|
|
1730
|
-
|
|
1731
|
-
|
|
1732
|
-
|
|
1733
|
-
input_injections: {
|
|
1734
|
-
template_jq: string | null;
|
|
1735
|
-
jq: {
|
|
1736
|
-
content?: string | undefined;
|
|
1737
|
-
id?: string | undefined;
|
|
1738
|
-
kwargs?: Record<string, unknown> | undefined;
|
|
1739
|
-
} | null;
|
|
1740
|
-
into: string;
|
|
1741
|
-
}[];
|
|
1742
|
-
updates: {
|
|
1743
|
-
template_jq: string | null;
|
|
1744
|
-
jq: {
|
|
1745
|
-
content?: string | undefined;
|
|
1746
|
-
id?: string | undefined;
|
|
1747
|
-
kwargs?: Record<string, unknown> | undefined;
|
|
1748
|
-
} | null;
|
|
1749
|
-
adapter: {
|
|
1750
|
-
content?: string | undefined;
|
|
1751
|
-
id?: string | undefined;
|
|
1752
|
-
kwargs?: Record<string, unknown> | undefined;
|
|
1753
|
-
} | null;
|
|
1754
|
-
op_id: {
|
|
1755
|
-
content?: string | undefined;
|
|
1756
|
-
id?: string | undefined;
|
|
1757
|
-
kwargs?: Record<string, unknown> | undefined;
|
|
1758
|
-
} | null;
|
|
1759
|
-
}[];
|
|
1760
|
-
}[];
|
|
1715
|
+
channel: string | null;
|
|
1716
|
+
door: "channel" | "api";
|
|
1717
|
+
error_reply_text: string | null;
|
|
1718
|
+
execution_key: string;
|
|
1719
|
+
execution_key_fingerprint: string;
|
|
1720
|
+
initial_mode: "agent" | "manual";
|
|
1721
|
+
locale: string | null;
|
|
1722
|
+
our_identity: string | null;
|
|
1723
|
+
payload_expr: {
|
|
1724
|
+
content?: string | undefined;
|
|
1725
|
+
id?: string | undefined;
|
|
1726
|
+
kwargs?: Record<string, unknown> | undefined;
|
|
1727
|
+
} | null;
|
|
1728
|
+
reply_expr: {
|
|
1729
|
+
content?: string | undefined;
|
|
1730
|
+
id?: string | undefined;
|
|
1731
|
+
kwargs?: Record<string, unknown> | undefined;
|
|
1761
1732
|
} | null;
|
|
1733
|
+
route_name: string;
|
|
1734
|
+
target_kind: "tool" | "agent";
|
|
1735
|
+
target_name: string;
|
|
1736
|
+
turns_per_hour_override: number | null;
|
|
1762
1737
|
};
|
|
1763
1738
|
callback_secret: string | null;
|
|
1764
1739
|
}>;
|
|
@@ -1853,28 +1828,157 @@ export declare const ApiProvider: import("react").Provider<{
|
|
|
1853
1828
|
}>;
|
|
1854
1829
|
readonly listConversationConfigs: (signal?: AbortSignal) => Promise<{
|
|
1855
1830
|
items: {
|
|
1831
|
+
greeting_template: string | null;
|
|
1832
|
+
multichannel: boolean;
|
|
1833
|
+
state_binding: {
|
|
1834
|
+
states: {
|
|
1835
|
+
input_injections: {
|
|
1836
|
+
into: string;
|
|
1837
|
+
jq: {
|
|
1838
|
+
content?: string | undefined;
|
|
1839
|
+
id?: string | undefined;
|
|
1840
|
+
kwargs?: Record<string, unknown> | undefined;
|
|
1841
|
+
} | null;
|
|
1842
|
+
template_jq: string | null;
|
|
1843
|
+
}[];
|
|
1844
|
+
scope_expr: {
|
|
1845
|
+
content?: string | undefined;
|
|
1846
|
+
id?: string | undefined;
|
|
1847
|
+
kwargs?: Record<string, unknown> | undefined;
|
|
1848
|
+
} | null;
|
|
1849
|
+
state: string;
|
|
1850
|
+
subject_expr: {
|
|
1851
|
+
content?: string | undefined;
|
|
1852
|
+
id?: string | undefined;
|
|
1853
|
+
kwargs?: Record<string, unknown> | undefined;
|
|
1854
|
+
};
|
|
1855
|
+
templates: string[];
|
|
1856
|
+
updates: {
|
|
1857
|
+
adapter: {
|
|
1858
|
+
content?: string | undefined;
|
|
1859
|
+
id?: string | undefined;
|
|
1860
|
+
kwargs?: Record<string, unknown> | undefined;
|
|
1861
|
+
} | null;
|
|
1862
|
+
jq: {
|
|
1863
|
+
content?: string | undefined;
|
|
1864
|
+
id?: string | undefined;
|
|
1865
|
+
kwargs?: Record<string, unknown> | undefined;
|
|
1866
|
+
} | null;
|
|
1867
|
+
op_id: {
|
|
1868
|
+
content?: string | undefined;
|
|
1869
|
+
id?: string | undefined;
|
|
1870
|
+
kwargs?: Record<string, unknown> | undefined;
|
|
1871
|
+
} | null;
|
|
1872
|
+
template_jq: string | null;
|
|
1873
|
+
}[];
|
|
1874
|
+
}[];
|
|
1875
|
+
} | null;
|
|
1856
1876
|
target_kind: "tool" | "agent";
|
|
1857
1877
|
target_name: string;
|
|
1858
|
-
multichannel: boolean;
|
|
1859
|
-
greeting_template: string | null;
|
|
1860
1878
|
}[];
|
|
1861
1879
|
total: number;
|
|
1862
1880
|
}>;
|
|
1863
1881
|
readonly getConversationConfig: (targetKind: import("@tai42/api-client").ConversationTargetKind, targetName: string, signal?: AbortSignal) => Promise<{
|
|
1882
|
+
greeting_template: string | null;
|
|
1883
|
+
multichannel: boolean;
|
|
1884
|
+
state_binding: {
|
|
1885
|
+
states: {
|
|
1886
|
+
input_injections: {
|
|
1887
|
+
into: string;
|
|
1888
|
+
jq: {
|
|
1889
|
+
content?: string | undefined;
|
|
1890
|
+
id?: string | undefined;
|
|
1891
|
+
kwargs?: Record<string, unknown> | undefined;
|
|
1892
|
+
} | null;
|
|
1893
|
+
template_jq: string | null;
|
|
1894
|
+
}[];
|
|
1895
|
+
scope_expr: {
|
|
1896
|
+
content?: string | undefined;
|
|
1897
|
+
id?: string | undefined;
|
|
1898
|
+
kwargs?: Record<string, unknown> | undefined;
|
|
1899
|
+
} | null;
|
|
1900
|
+
state: string;
|
|
1901
|
+
subject_expr: {
|
|
1902
|
+
content?: string | undefined;
|
|
1903
|
+
id?: string | undefined;
|
|
1904
|
+
kwargs?: Record<string, unknown> | undefined;
|
|
1905
|
+
};
|
|
1906
|
+
templates: string[];
|
|
1907
|
+
updates: {
|
|
1908
|
+
adapter: {
|
|
1909
|
+
content?: string | undefined;
|
|
1910
|
+
id?: string | undefined;
|
|
1911
|
+
kwargs?: Record<string, unknown> | undefined;
|
|
1912
|
+
} | null;
|
|
1913
|
+
jq: {
|
|
1914
|
+
content?: string | undefined;
|
|
1915
|
+
id?: string | undefined;
|
|
1916
|
+
kwargs?: Record<string, unknown> | undefined;
|
|
1917
|
+
} | null;
|
|
1918
|
+
op_id: {
|
|
1919
|
+
content?: string | undefined;
|
|
1920
|
+
id?: string | undefined;
|
|
1921
|
+
kwargs?: Record<string, unknown> | undefined;
|
|
1922
|
+
} | null;
|
|
1923
|
+
template_jq: string | null;
|
|
1924
|
+
}[];
|
|
1925
|
+
}[];
|
|
1926
|
+
} | null;
|
|
1864
1927
|
target_kind: "tool" | "agent";
|
|
1865
1928
|
target_name: string;
|
|
1866
|
-
multichannel: boolean;
|
|
1867
|
-
greeting_template: string | null;
|
|
1868
1929
|
}>;
|
|
1869
1930
|
readonly setConversationConfig: (config: import("@tai42/api-client").TargetConversationConfig) => Promise<{
|
|
1870
1931
|
created: boolean;
|
|
1871
1932
|
target_kind: "tool" | "agent";
|
|
1872
1933
|
target_name: string;
|
|
1873
1934
|
config: {
|
|
1935
|
+
greeting_template: string | null;
|
|
1936
|
+
multichannel: boolean;
|
|
1937
|
+
state_binding: {
|
|
1938
|
+
states: {
|
|
1939
|
+
input_injections: {
|
|
1940
|
+
into: string;
|
|
1941
|
+
jq: {
|
|
1942
|
+
content?: string | undefined;
|
|
1943
|
+
id?: string | undefined;
|
|
1944
|
+
kwargs?: Record<string, unknown> | undefined;
|
|
1945
|
+
} | null;
|
|
1946
|
+
template_jq: string | null;
|
|
1947
|
+
}[];
|
|
1948
|
+
scope_expr: {
|
|
1949
|
+
content?: string | undefined;
|
|
1950
|
+
id?: string | undefined;
|
|
1951
|
+
kwargs?: Record<string, unknown> | undefined;
|
|
1952
|
+
} | null;
|
|
1953
|
+
state: string;
|
|
1954
|
+
subject_expr: {
|
|
1955
|
+
content?: string | undefined;
|
|
1956
|
+
id?: string | undefined;
|
|
1957
|
+
kwargs?: Record<string, unknown> | undefined;
|
|
1958
|
+
};
|
|
1959
|
+
templates: string[];
|
|
1960
|
+
updates: {
|
|
1961
|
+
adapter: {
|
|
1962
|
+
content?: string | undefined;
|
|
1963
|
+
id?: string | undefined;
|
|
1964
|
+
kwargs?: Record<string, unknown> | undefined;
|
|
1965
|
+
} | null;
|
|
1966
|
+
jq: {
|
|
1967
|
+
content?: string | undefined;
|
|
1968
|
+
id?: string | undefined;
|
|
1969
|
+
kwargs?: Record<string, unknown> | undefined;
|
|
1970
|
+
} | null;
|
|
1971
|
+
op_id: {
|
|
1972
|
+
content?: string | undefined;
|
|
1973
|
+
id?: string | undefined;
|
|
1974
|
+
kwargs?: Record<string, unknown> | undefined;
|
|
1975
|
+
} | null;
|
|
1976
|
+
template_jq: string | null;
|
|
1977
|
+
}[];
|
|
1978
|
+
}[];
|
|
1979
|
+
} | null;
|
|
1874
1980
|
target_kind: "tool" | "agent";
|
|
1875
1981
|
target_name: string;
|
|
1876
|
-
multichannel: boolean;
|
|
1877
|
-
greeting_template: string | null;
|
|
1878
1982
|
};
|
|
1879
1983
|
}>;
|
|
1880
1984
|
readonly deleteConversationConfig: (targetKind: import("@tai42/api-client").ConversationTargetKind, targetName: string) => Promise<{
|
|
@@ -1946,9 +2050,16 @@ export declare const ApiProvider: import("react").Provider<{
|
|
|
1946
2050
|
audience?: string | null | undefined;
|
|
1947
2051
|
media?: unknown[] | null | undefined;
|
|
1948
2052
|
template?: {
|
|
1949
|
-
|
|
2053
|
+
body_parameters: string[];
|
|
2054
|
+
buttons: unknown[];
|
|
2055
|
+
header_media: {
|
|
2056
|
+
caption: string | null;
|
|
2057
|
+
filename: string | null;
|
|
2058
|
+
kind: "image" | "link" | "document" | "video" | "audio";
|
|
2059
|
+
url: string;
|
|
2060
|
+
} | null;
|
|
1950
2061
|
language: string;
|
|
1951
|
-
|
|
2062
|
+
name: string;
|
|
1952
2063
|
} | null | undefined;
|
|
1953
2064
|
options?: string[] | null | undefined;
|
|
1954
2065
|
}[];
|
|
@@ -1977,58 +2088,49 @@ export declare const ApiProvider: import("react").Provider<{
|
|
|
1977
2088
|
readonly streamAuthoredAgentRun: (name: string, input: unknown, signal?: AbortSignal) => Promise<AsyncGenerator<import("@tai42/api-client").ParsedAgentEvent, any, any>>;
|
|
1978
2089
|
readonly listHooks: (topic?: string, signal?: AbortSignal) => Promise<{
|
|
1979
2090
|
items: {
|
|
1980
|
-
name: string;
|
|
1981
|
-
topic: string;
|
|
1982
|
-
tool: string;
|
|
1983
|
-
execution_key: string;
|
|
1984
|
-
tool_kwargs: Record<string, unknown>;
|
|
1985
|
-
subject: {
|
|
1986
|
-
target_kind: "tool" | "agent";
|
|
1987
|
-
target_name: string;
|
|
1988
|
-
kind: string;
|
|
1989
|
-
key_expr: string;
|
|
1990
|
-
} | null;
|
|
1991
2091
|
condition: {
|
|
1992
2092
|
content?: string | undefined;
|
|
1993
2093
|
id?: string | undefined;
|
|
1994
2094
|
kwargs?: Record<string, unknown> | undefined;
|
|
1995
2095
|
} | null;
|
|
2096
|
+
execution_key: string;
|
|
2097
|
+
execution_key_fingerprint: string;
|
|
1996
2098
|
expr: {
|
|
1997
2099
|
content?: string | undefined;
|
|
1998
2100
|
id?: string | undefined;
|
|
1999
2101
|
kwargs?: Record<string, unknown> | undefined;
|
|
2000
2102
|
} | null;
|
|
2103
|
+
name: string;
|
|
2001
2104
|
state_binding: {
|
|
2002
2105
|
states: {
|
|
2003
|
-
state: string;
|
|
2004
|
-
templates: string[];
|
|
2005
|
-
subject_expr: {
|
|
2006
|
-
content?: string | undefined;
|
|
2007
|
-
id?: string | undefined;
|
|
2008
|
-
kwargs?: Record<string, unknown> | undefined;
|
|
2009
|
-
};
|
|
2010
|
-
scope_expr: {
|
|
2011
|
-
content?: string | undefined;
|
|
2012
|
-
id?: string | undefined;
|
|
2013
|
-
kwargs?: Record<string, unknown> | undefined;
|
|
2014
|
-
} | null;
|
|
2015
2106
|
input_injections: {
|
|
2016
|
-
|
|
2107
|
+
into: string;
|
|
2017
2108
|
jq: {
|
|
2018
2109
|
content?: string | undefined;
|
|
2019
2110
|
id?: string | undefined;
|
|
2020
2111
|
kwargs?: Record<string, unknown> | undefined;
|
|
2021
2112
|
} | null;
|
|
2022
|
-
|
|
2113
|
+
template_jq: string | null;
|
|
2023
2114
|
}[];
|
|
2115
|
+
scope_expr: {
|
|
2116
|
+
content?: string | undefined;
|
|
2117
|
+
id?: string | undefined;
|
|
2118
|
+
kwargs?: Record<string, unknown> | undefined;
|
|
2119
|
+
} | null;
|
|
2120
|
+
state: string;
|
|
2121
|
+
subject_expr: {
|
|
2122
|
+
content?: string | undefined;
|
|
2123
|
+
id?: string | undefined;
|
|
2124
|
+
kwargs?: Record<string, unknown> | undefined;
|
|
2125
|
+
};
|
|
2126
|
+
templates: string[];
|
|
2024
2127
|
updates: {
|
|
2025
|
-
|
|
2026
|
-
jq: {
|
|
2128
|
+
adapter: {
|
|
2027
2129
|
content?: string | undefined;
|
|
2028
2130
|
id?: string | undefined;
|
|
2029
2131
|
kwargs?: Record<string, unknown> | undefined;
|
|
2030
2132
|
} | null;
|
|
2031
|
-
|
|
2133
|
+
jq: {
|
|
2032
2134
|
content?: string | undefined;
|
|
2033
2135
|
id?: string | undefined;
|
|
2034
2136
|
kwargs?: Record<string, unknown> | undefined;
|
|
@@ -2038,9 +2140,23 @@ export declare const ApiProvider: import("react").Provider<{
|
|
|
2038
2140
|
id?: string | undefined;
|
|
2039
2141
|
kwargs?: Record<string, unknown> | undefined;
|
|
2040
2142
|
} | null;
|
|
2143
|
+
template_jq: string | null;
|
|
2041
2144
|
}[];
|
|
2042
2145
|
}[];
|
|
2043
2146
|
} | null;
|
|
2147
|
+
subject: {
|
|
2148
|
+
key_expr: {
|
|
2149
|
+
content?: string | undefined;
|
|
2150
|
+
id?: string | undefined;
|
|
2151
|
+
kwargs?: Record<string, unknown> | undefined;
|
|
2152
|
+
};
|
|
2153
|
+
kind: string;
|
|
2154
|
+
target_kind: "tool" | "agent";
|
|
2155
|
+
target_name: string;
|
|
2156
|
+
} | null;
|
|
2157
|
+
tool: string;
|
|
2158
|
+
tool_kwargs: Record<string, unknown>;
|
|
2159
|
+
topic: string;
|
|
2044
2160
|
}[];
|
|
2045
2161
|
total: number;
|
|
2046
2162
|
topic_verifiers: Record<string, {
|
|
@@ -2049,7 +2165,7 @@ export declare const ApiProvider: import("react").Provider<{
|
|
|
2049
2165
|
}>;
|
|
2050
2166
|
trigger_auth: Record<string, "public" | "verifier" | "token" | "token+api_key" | "out-of-service">;
|
|
2051
2167
|
}>;
|
|
2052
|
-
readonly registerHook: (params: import("@tai42/api-client").
|
|
2168
|
+
readonly registerHook: (params: import("@tai42/api-client").HookRegister) => Promise<{
|
|
2053
2169
|
registered: boolean;
|
|
2054
2170
|
name: string;
|
|
2055
2171
|
}>;
|
|
@@ -2131,7 +2247,7 @@ export declare const ApiProvider: import("react").Provider<{
|
|
|
2131
2247
|
mapped: string | null;
|
|
2132
2248
|
tags: string[];
|
|
2133
2249
|
summary: string;
|
|
2134
|
-
action: "
|
|
2250
|
+
action: "read" | "write" | "secret" | "fenced" | null;
|
|
2135
2251
|
}[]>;
|
|
2136
2252
|
readonly listPublicRoutes: (signal?: AbortSignal) => Promise<string[]>;
|
|
2137
2253
|
readonly pinRoutePublic: (body: import("@tai42/api-client").PinRoutePublicBody) => Promise<{
|
|
@@ -2141,43 +2257,43 @@ export declare const ApiProvider: import("react").Provider<{
|
|
|
2141
2257
|
url: string;
|
|
2142
2258
|
}>;
|
|
2143
2259
|
readonly listRoles: (signal?: AbortSignal) => Promise<{
|
|
2144
|
-
|
|
2145
|
-
|
|
2146
|
-
scopes: string[];
|
|
2260
|
+
allow_all: boolean;
|
|
2261
|
+
base_tier: string | null;
|
|
2147
2262
|
condition: {
|
|
2148
2263
|
content?: string | undefined;
|
|
2149
2264
|
id?: string | undefined;
|
|
2150
2265
|
kwargs?: Record<string, unknown> | undefined;
|
|
2151
2266
|
} | null;
|
|
2152
|
-
|
|
2153
|
-
allow_all: boolean;
|
|
2267
|
+
description: string;
|
|
2154
2268
|
grants: Record<string, "none" | "read" | "write">;
|
|
2155
|
-
}[]>;
|
|
2156
|
-
readonly createRole: (body: import("@tai42/api-client").RoleCreateBody) => Promise<{
|
|
2157
2269
|
name: string;
|
|
2158
|
-
description: string;
|
|
2159
2270
|
scopes: string[];
|
|
2271
|
+
}[]>;
|
|
2272
|
+
readonly createRole: (body: import("@tai42/api-client").RoleCreateBody) => Promise<{
|
|
2273
|
+
allow_all: boolean;
|
|
2274
|
+
base_tier: string | null;
|
|
2160
2275
|
condition: {
|
|
2161
2276
|
content?: string | undefined;
|
|
2162
2277
|
id?: string | undefined;
|
|
2163
2278
|
kwargs?: Record<string, unknown> | undefined;
|
|
2164
2279
|
} | null;
|
|
2165
|
-
|
|
2166
|
-
allow_all: boolean;
|
|
2280
|
+
description: string;
|
|
2167
2281
|
grants: Record<string, "none" | "read" | "write">;
|
|
2168
|
-
}>;
|
|
2169
|
-
readonly updateRole: (name: string, body: import("@tai42/api-client").RoleUpdateBody) => Promise<{
|
|
2170
2282
|
name: string;
|
|
2171
|
-
description: string;
|
|
2172
2283
|
scopes: string[];
|
|
2284
|
+
}>;
|
|
2285
|
+
readonly updateRole: (name: string, body: import("@tai42/api-client").RoleUpdateBody) => Promise<{
|
|
2286
|
+
allow_all: boolean;
|
|
2287
|
+
base_tier: string | null;
|
|
2173
2288
|
condition: {
|
|
2174
2289
|
content?: string | undefined;
|
|
2175
2290
|
id?: string | undefined;
|
|
2176
2291
|
kwargs?: Record<string, unknown> | undefined;
|
|
2177
2292
|
} | null;
|
|
2178
|
-
|
|
2179
|
-
allow_all: boolean;
|
|
2293
|
+
description: string;
|
|
2180
2294
|
grants: Record<string, "none" | "read" | "write">;
|
|
2295
|
+
name: string;
|
|
2296
|
+
scopes: string[];
|
|
2181
2297
|
}>;
|
|
2182
2298
|
readonly deleteRole: (name: string) => Promise<{
|
|
2183
2299
|
name: string;
|
|
@@ -2187,17 +2303,17 @@ export declare const ApiProvider: import("react").Provider<{
|
|
|
2187
2303
|
versions: {
|
|
2188
2304
|
version: number;
|
|
2189
2305
|
body: {
|
|
2190
|
-
|
|
2191
|
-
|
|
2192
|
-
scopes: string[];
|
|
2306
|
+
allow_all: boolean;
|
|
2307
|
+
base_tier: string | null;
|
|
2193
2308
|
condition: {
|
|
2194
2309
|
content?: string | undefined;
|
|
2195
2310
|
id?: string | undefined;
|
|
2196
2311
|
kwargs?: Record<string, unknown> | undefined;
|
|
2197
2312
|
} | null;
|
|
2198
|
-
|
|
2199
|
-
allow_all: boolean;
|
|
2313
|
+
description: string;
|
|
2200
2314
|
grants: Record<string, "none" | "read" | "write">;
|
|
2315
|
+
name: string;
|
|
2316
|
+
scopes: string[];
|
|
2201
2317
|
};
|
|
2202
2318
|
tags: string[];
|
|
2203
2319
|
created_at: string;
|
|
@@ -2217,17 +2333,17 @@ export declare const ApiProvider: import("react").Provider<{
|
|
|
2217
2333
|
}[];
|
|
2218
2334
|
}>;
|
|
2219
2335
|
readonly rollbackRole: (name: string, version: number) => Promise<{
|
|
2220
|
-
|
|
2221
|
-
|
|
2222
|
-
scopes: string[];
|
|
2336
|
+
allow_all: boolean;
|
|
2337
|
+
base_tier: string | null;
|
|
2223
2338
|
condition: {
|
|
2224
2339
|
content?: string | undefined;
|
|
2225
2340
|
id?: string | undefined;
|
|
2226
2341
|
kwargs?: Record<string, unknown> | undefined;
|
|
2227
2342
|
} | null;
|
|
2228
|
-
|
|
2229
|
-
allow_all: boolean;
|
|
2343
|
+
description: string;
|
|
2230
2344
|
grants: Record<string, "none" | "read" | "write">;
|
|
2345
|
+
name: string;
|
|
2346
|
+
scopes: string[];
|
|
2231
2347
|
}>;
|
|
2232
2348
|
readonly listTokensPayload: (signal?: AbortSignal) => Promise<{
|
|
2233
2349
|
user_id: string;
|
|
@@ -2331,13 +2447,13 @@ export declare const ApiProvider: import("react").Provider<{
|
|
|
2331
2447
|
readonly listPolicyVersions: (userId: string, signal?: AbortSignal) => Promise<{
|
|
2332
2448
|
version: number;
|
|
2333
2449
|
body: {
|
|
2334
|
-
scopes: string[];
|
|
2335
|
-
policy_data: unknown;
|
|
2336
2450
|
condition: {
|
|
2337
2451
|
content?: string | undefined;
|
|
2338
2452
|
id?: string | undefined;
|
|
2339
2453
|
kwargs?: Record<string, unknown> | undefined;
|
|
2340
2454
|
} | null;
|
|
2455
|
+
policy_data: Record<string, unknown>;
|
|
2456
|
+
scopes: string[];
|
|
2341
2457
|
};
|
|
2342
2458
|
tags: string[];
|
|
2343
2459
|
created_at: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useApi.d.ts","sourceRoot":"","sources":["../../src/hooks/useApi.ts"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAInD,eAAO,MAAM,WAAW;;+
|
|
1
|
+
{"version":3,"file":"useApi.d.ts","sourceRoot":"","sources":["../../src/hooks/useApi.ts"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAInD,eAAO,MAAM,WAAW;;+BAW2+iB,CAAC;iDAAsF,CAAC;;;;;uCAAuM,CAAC;;;;;4EAAgO,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;wFAAw+B,CAAC;;;+CAA2G,CAAC;;;;;mBAA2L,CAAC;cAAoC,CAAC;aAAwB,CAAC;;oDAAkF,CAAC;;;;;mBAA2L,CAAC;;kCAAkE,CAAC;;;;;;iCAAwK,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6CAAojC,CAAC;;;;;;;;;;;;;;;;;sDAAqlB,CAAC;;;;;;;;uBAAqU,CAAC;kBAAwC,CAAC;sBAA4C,CAAC;;;uBAA2I,CAAC;kBAAwC,CAAC;sBAA4C,CAAC;;;;;;;mCAAmQ,CAAC;8BAAoD,CAAC;k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;;;;;;;;;;;;;;;;;;;;;;;;8CAAg0F,CAAC;;;;;;;;;;;;+BAAkW,CAAC;oCAAuE,CAAC;;;;;;wCAA6hC,CAAC,0BAA0B,CAAC;SAXt+oH,CAAC;AAE/C,wBAAgB,MAAM,IAAI,SAAS,CAMlC;AAED,YAAY,EAAE,SAAS,EAAE,CAAC"}
|
|
@@ -38,6 +38,13 @@ export interface SchemaEditorProps {
|
|
|
38
38
|
readonly description?: string;
|
|
39
39
|
readonly disabled?: boolean;
|
|
40
40
|
readonly idPrefix?: string;
|
|
41
|
+
/**
|
|
42
|
+
* Render the field label for ASSISTIVE TECH ONLY — visually hidden but still the editor's
|
|
43
|
+
* accessible name. Used when a host control already draws the visible label above this
|
|
44
|
+
* editor (e.g. an authored-body control whose inline editor this is), so the heading is not
|
|
45
|
+
* drawn twice. Forwarded to the underlying {@link Field}.
|
|
46
|
+
*/
|
|
47
|
+
readonly hideLabel?: boolean;
|
|
41
48
|
}
|
|
42
|
-
export declare function SchemaEditor({ value, onChange, requireTitle, label, description, disabled, idPrefix, }: SchemaEditorProps): ReactNode;
|
|
49
|
+
export declare function SchemaEditor({ value, onChange, requireTitle, label, description, disabled, idPrefix, hideLabel, }: SchemaEditorProps): ReactNode;
|
|
43
50
|
//# sourceMappingURL=SchemaEditor.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SchemaEditor.d.ts","sourceRoot":"","sources":["../../src/schema-editor/SchemaEditor.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,OAAO,EAAgC,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAYrE,0DAA0D;AAC1D,MAAM,WAAW,kBAAkB;IACjC,0FAA0F;IAC1F,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAAC;IAChD,8FAA8F;IAC9F,QAAQ,CAAC,KAAK,EAAE,OAAO,CAAC;CACzB;AAED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C,EAAE,MAAM,CAAC;IAC9B,QAAQ,CAAC,QAAQ,CAAC,EAAE,OAAO,CAAC;IAC5B,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAC3B;;;;;OAKG;IACH,QAAQ,CAAC,SAAS,CAAC,EAAE,OAAO,CAAC;CAC9B;AAsFD,wBAAgB,YAAY,CAAC,EAC3B,KAAK,EACL,QAAQ,EACR,YAAY,EACZ,KAAgB,EAChB,WAAW,EACX,QAAQ,EACR,QAA0B,EAC1B,SAAiB,GAClB,EAAE,iBAAiB,GAAG,SAAS,CA2C/B"}
|
|
@@ -90,7 +90,7 @@ function SchemaPreview({ schema, testId, }) {
|
|
|
90
90
|
return jsonFallback;
|
|
91
91
|
return (_jsx(PreviewBoundary, { fallback: jsonFallback, children: _jsx(ScrollRegion, { label: PREVIEW_LABEL, className: "tai-card", "data-testid": testId, children: _jsx(PreviewForm, { schema: schema }) }) }));
|
|
92
92
|
}
|
|
93
|
-
export function SchemaEditor({ value, onChange, requireTitle, label = 'Schema', description, disabled, idPrefix = 'schema-editor', }) {
|
|
93
|
+
export function SchemaEditor({ value, onChange, requireTitle, label = 'Schema', description, disabled, idPrefix = 'schema-editor', hideLabel = false, }) {
|
|
94
94
|
const [text, setText] = useState(() => seedText(value));
|
|
95
95
|
// Recomputed for display (inline error + preview) on every render; the change
|
|
96
96
|
// handler lints the NEXT text independently so `onChange` and the view agree.
|
|
@@ -100,7 +100,7 @@ export function SchemaEditor({ value, onChange, requireTitle, label = 'Schema',
|
|
|
100
100
|
const next = lintSchemaText(nextText, requireTitle);
|
|
101
101
|
onChange({ schema: next.valid ? next.schema : null, valid: next.valid });
|
|
102
102
|
};
|
|
103
|
-
return (_jsxs("div", { "data-testid": idPrefix, className: "tai-stack tai-stack-3", children: [_jsx(Field, { label: label, description: description, error: result.error, children: _jsx(Textarea, { value: text, disabled: disabled, onChange: (event) => {
|
|
103
|
+
return (_jsxs("div", { "data-testid": idPrefix, className: "tai-stack tai-stack-3", children: [_jsx(Field, { label: label, description: description, hideLabel: hideLabel, error: result.error, children: _jsx(Textarea, { value: text, disabled: disabled, onChange: (event) => {
|
|
104
104
|
emit(event.target.value);
|
|
105
105
|
}, rows: 10, "aria-label": `${label} JSON`, className: "tai-textarea-mono", spellCheck: false }) }), result.schema !== null ? (_jsxs("div", { className: "tai-stack tai-stack-2", children: [_jsx("span", { className: "tai-label", children: "Preview" }), _jsx(SchemaPreview
|
|
106
106
|
// Re-seed the preview (and reset its error boundary) whenever the
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SchemaEditor.js","sourceRoot":"","sources":["../../src/schema-editor/SchemaEditor.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,QAAQ,EAAkB,MAAM,OAAO,CAAC;AAErE,OAAO,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAC;AAC5C,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAChD,OAAO,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AACnD,OAAO,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAC3D,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AACzD,OAAO,EAAE,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;AACrE,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AAEvD,OAAO,EAAE,cAAc,EAAE,MAAM,QAAQ,CAAC;
|
|
1
|
+
{"version":3,"file":"SchemaEditor.js","sourceRoot":"","sources":["../../src/schema-editor/SchemaEditor.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,QAAQ,EAAkB,MAAM,OAAO,CAAC;AAErE,OAAO,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAC;AAC5C,OAAO,EAAE,QAAQ,EA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.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tai42/studio-sdk",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "16.0.0",
|
|
4
4
|
"description": "The Studio plugin contract, shared UI components, and hooks that every feature builds on.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": "tai42 <oss@tai42.ai>",
|
|
@@ -96,7 +96,7 @@
|
|
|
96
96
|
"@radix-ui/react-select": "^2.3.2",
|
|
97
97
|
"@radix-ui/react-tabs": "^1.1.21",
|
|
98
98
|
"@radix-ui/react-tooltip": "^1.2.11",
|
|
99
|
-
"@tai42/api-client": "
|
|
99
|
+
"@tai42/api-client": "16.0.0"
|
|
100
100
|
},
|
|
101
101
|
"scripts": {
|
|
102
102
|
"build": "tsc -b tsconfig.build.json && node scripts/copy-assets.mjs",
|
|
@@ -50,6 +50,13 @@ export interface SchemaEditorProps {
|
|
|
50
50
|
readonly description?: string;
|
|
51
51
|
readonly disabled?: boolean;
|
|
52
52
|
readonly idPrefix?: string;
|
|
53
|
+
/**
|
|
54
|
+
* Render the field label for ASSISTIVE TECH ONLY — visually hidden but still the editor's
|
|
55
|
+
* accessible name. Used when a host control already draws the visible label above this
|
|
56
|
+
* editor (e.g. an authored-body control whose inline editor this is), so the heading is not
|
|
57
|
+
* drawn twice. Forwarded to the underlying {@link Field}.
|
|
58
|
+
*/
|
|
59
|
+
readonly hideLabel?: boolean;
|
|
53
60
|
}
|
|
54
61
|
|
|
55
62
|
function seedText(value: Record<string, unknown> | null): string {
|
|
@@ -144,6 +151,7 @@ export function SchemaEditor({
|
|
|
144
151
|
description,
|
|
145
152
|
disabled,
|
|
146
153
|
idPrefix = 'schema-editor',
|
|
154
|
+
hideLabel = false,
|
|
147
155
|
}: SchemaEditorProps): ReactNode {
|
|
148
156
|
const [text, setText] = useState<string>(() => seedText(value));
|
|
149
157
|
|
|
@@ -159,7 +167,7 @@ export function SchemaEditor({
|
|
|
159
167
|
|
|
160
168
|
return (
|
|
161
169
|
<div data-testid={idPrefix} className="tai-stack tai-stack-3">
|
|
162
|
-
<Field label={label} description={description} error={result.error}>
|
|
170
|
+
<Field label={label} description={description} hideLabel={hideLabel} error={result.error}>
|
|
163
171
|
<Textarea
|
|
164
172
|
value={text}
|
|
165
173
|
disabled={disabled}
|