@tai42/studio-sdk 14.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.
Files changed (68) hide show
  1. package/dist/components/components.css +19 -0
  2. package/dist/components/templated-text-field.d.ts +98 -0
  3. package/dist/components/templated-text-field.d.ts.map +1 -0
  4. package/dist/components/templated-text-field.js +217 -0
  5. package/dist/components/templated-text-field.js.map +1 -0
  6. package/dist/hooks/useApi.d.ts +581 -238
  7. package/dist/hooks/useApi.d.ts.map +1 -1
  8. package/dist/index.d.ts +4 -2
  9. package/dist/index.d.ts.map +1 -1
  10. package/dist/index.js +2 -1
  11. package/dist/index.js.map +1 -1
  12. package/dist/schema-editor/SchemaEditor.d.ts +8 -1
  13. package/dist/schema-editor/SchemaEditor.d.ts.map +1 -1
  14. package/dist/schema-editor/SchemaEditor.js +2 -2
  15. package/dist/schema-editor/SchemaEditor.js.map +1 -1
  16. package/dist/state-binding/BindingJqField.d.ts +8 -1
  17. package/dist/state-binding/BindingJqField.d.ts.map +1 -1
  18. package/dist/state-binding/BindingJqField.js +5 -2
  19. package/dist/state-binding/BindingJqField.js.map +1 -1
  20. package/dist/state-binding/BindingTemplatedJqField.d.ts +24 -0
  21. package/dist/state-binding/BindingTemplatedJqField.d.ts.map +1 -0
  22. package/dist/state-binding/BindingTemplatedJqField.js +7 -0
  23. package/dist/state-binding/BindingTemplatedJqField.js.map +1 -0
  24. package/dist/state-binding/InputInjectionRow.d.ts +4 -3
  25. package/dist/state-binding/InputInjectionRow.d.ts.map +1 -1
  26. package/dist/state-binding/InputInjectionRow.js +9 -9
  27. package/dist/state-binding/InputInjectionRow.js.map +1 -1
  28. package/dist/state-binding/StateAttachRow.d.ts +6 -4
  29. package/dist/state-binding/StateAttachRow.d.ts.map +1 -1
  30. package/dist/state-binding/StateAttachRow.js +13 -12
  31. package/dist/state-binding/StateAttachRow.js.map +1 -1
  32. package/dist/state-binding/StateBindingEditor.d.ts +4 -2
  33. package/dist/state-binding/StateBindingEditor.d.ts.map +1 -1
  34. package/dist/state-binding/StateBindingEditor.js +10 -8
  35. package/dist/state-binding/StateBindingEditor.js.map +1 -1
  36. package/dist/state-binding/SubjectScopeFields.d.ts +12 -9
  37. package/dist/state-binding/SubjectScopeFields.d.ts.map +1 -1
  38. package/dist/state-binding/SubjectScopeFields.js +5 -5
  39. package/dist/state-binding/SubjectScopeFields.js.map +1 -1
  40. package/dist/state-binding/UpdateRow.d.ts +4 -3
  41. package/dist/state-binding/UpdateRow.d.ts.map +1 -1
  42. package/dist/state-binding/UpdateRow.js +29 -16
  43. package/dist/state-binding/UpdateRow.js.map +1 -1
  44. package/dist/state-binding/index.d.ts +5 -1
  45. package/dist/state-binding/index.d.ts.map +1 -1
  46. package/dist/state-binding/index.js +2 -0
  47. package/dist/state-binding/index.js.map +1 -1
  48. package/dist/state-binding/templated-text-catalog.d.ts +21 -0
  49. package/dist/state-binding/templated-text-catalog.d.ts.map +1 -0
  50. package/dist/state-binding/templated-text-catalog.js +48 -0
  51. package/dist/state-binding/templated-text-catalog.js.map +1 -0
  52. package/dist/state-binding/types.d.ts +23 -2
  53. package/dist/state-binding/types.d.ts.map +1 -1
  54. package/package.json +2 -2
  55. package/src/components/components.css +19 -0
  56. package/src/components/templated-text-field.tsx +508 -0
  57. package/src/index.ts +13 -0
  58. package/src/schema-editor/SchemaEditor.tsx +9 -1
  59. package/src/state-binding/BindingJqField.tsx +12 -0
  60. package/src/state-binding/BindingTemplatedJqField.tsx +73 -0
  61. package/src/state-binding/InputInjectionRow.tsx +16 -7
  62. package/src/state-binding/StateAttachRow.tsx +19 -11
  63. package/src/state-binding/StateBindingEditor.tsx +14 -6
  64. package/src/state-binding/SubjectScopeFields.tsx +23 -15
  65. package/src/state-binding/UpdateRow.tsx +57 -24
  66. package/src/state-binding/index.ts +6 -0
  67. package/src/state-binding/templated-text-catalog.ts +69 -0
  68. package/src/state-binding/types.ts +31 -2
@@ -118,29 +118,58 @@ 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
- extensions: (string | {
123
- name: string;
124
- config: Record<string, unknown>;
125
- })[][];
126
- output_schema: Record<string, unknown> | null;
127
- input_schema: Record<string, unknown> | null;
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: string;
133
- scope_expr: string | null;
134
135
  input_injections: {
135
- template_jq: string | null;
136
- jq: string | null;
137
136
  into: string;
137
+ jq: {
138
+ content?: string | undefined;
139
+ id?: string | undefined;
140
+ kwargs?: Record<string, unknown> | undefined;
141
+ } | null;
142
+ template_jq: string | null;
138
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[];
139
156
  updates: {
157
+ adapter: {
158
+ content?: string | undefined;
159
+ id?: string | undefined;
160
+ kwargs?: Record<string, unknown> | undefined;
161
+ } | null;
162
+ jq: {
163
+ content?: string | undefined;
164
+ id?: string | undefined;
165
+ kwargs?: Record<string, unknown> | undefined;
166
+ } | null;
167
+ op_id: {
168
+ content?: string | undefined;
169
+ id?: string | undefined;
170
+ kwargs?: Record<string, unknown> | undefined;
171
+ } | null;
140
172
  template_jq: string | null;
141
- jq: string | null;
142
- adapter: string | null;
143
- op_id: string | null;
144
173
  }[];
145
174
  }[];
146
175
  } | null;
@@ -154,29 +183,58 @@ export declare const ApiProvider: import("react").Provider<{
154
183
  body: {
155
184
  base_tool: string;
156
185
  description: string;
186
+ extensions: (string | Record<string, unknown>)[][];
157
187
  fixed_kwargs: Record<string, unknown>;
158
- extensions: (string | {
159
- name: string;
160
- config: Record<string, unknown>;
161
- })[][];
162
- output_schema: Record<string, unknown> | null;
163
- input_schema: Record<string, unknown> | null;
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;
164
198
  state_binding: {
165
199
  states: {
166
- state: string;
167
- templates: string[];
168
- subject_expr: string;
169
- scope_expr: string | null;
170
200
  input_injections: {
171
- template_jq: string | null;
172
- jq: string | null;
173
201
  into: string;
202
+ jq: {
203
+ content?: string | undefined;
204
+ id?: string | undefined;
205
+ kwargs?: Record<string, unknown> | undefined;
206
+ } | null;
207
+ template_jq: string | null;
174
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[];
175
221
  updates: {
222
+ adapter: {
223
+ content?: string | undefined;
224
+ id?: string | undefined;
225
+ kwargs?: Record<string, unknown> | undefined;
226
+ } | null;
227
+ jq: {
228
+ content?: string | undefined;
229
+ id?: string | undefined;
230
+ kwargs?: Record<string, unknown> | undefined;
231
+ } | null;
232
+ op_id: {
233
+ content?: string | undefined;
234
+ id?: string | undefined;
235
+ kwargs?: Record<string, unknown> | undefined;
236
+ } | null;
176
237
  template_jq: string | null;
177
- jq: string | null;
178
- adapter: string | null;
179
- op_id: string | null;
180
238
  }[];
181
239
  }[];
182
240
  } | null;
@@ -190,29 +248,58 @@ export declare const ApiProvider: import("react").Provider<{
190
248
  body: {
191
249
  base_tool: string;
192
250
  description: string;
251
+ extensions: (string | Record<string, unknown>)[][];
193
252
  fixed_kwargs: Record<string, unknown>;
194
- extensions: (string | {
195
- name: string;
196
- config: Record<string, unknown>;
197
- })[][];
198
- output_schema: Record<string, unknown> | null;
199
- input_schema: Record<string, unknown> | null;
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;
200
263
  state_binding: {
201
264
  states: {
202
- state: string;
203
- templates: string[];
204
- subject_expr: string;
205
- scope_expr: string | null;
206
265
  input_injections: {
207
- template_jq: string | null;
208
- jq: string | null;
209
266
  into: string;
267
+ jq: {
268
+ content?: string | undefined;
269
+ id?: string | undefined;
270
+ kwargs?: Record<string, unknown> | undefined;
271
+ } | null;
272
+ template_jq: string | null;
210
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[];
211
286
  updates: {
287
+ adapter: {
288
+ content?: string | undefined;
289
+ id?: string | undefined;
290
+ kwargs?: Record<string, unknown> | undefined;
291
+ } | null;
292
+ jq: {
293
+ content?: string | undefined;
294
+ id?: string | undefined;
295
+ kwargs?: Record<string, unknown> | undefined;
296
+ } | null;
297
+ op_id: {
298
+ content?: string | undefined;
299
+ id?: string | undefined;
300
+ kwargs?: Record<string, unknown> | undefined;
301
+ } | null;
212
302
  template_jq: string | null;
213
- jq: string | null;
214
- adapter: string | null;
215
- op_id: string | null;
216
303
  }[];
217
304
  }[];
218
305
  } | null;
@@ -248,47 +335,61 @@ export declare const ApiProvider: import("react").Provider<{
248
335
  tags: string[];
249
336
  }>;
250
337
  readonly listStates: (signal?: AbortSignal) => Promise<{
251
- name: string;
252
- description: string;
253
- schema: Record<string, unknown>;
254
- subject_kinds: string[];
255
338
  default_subject_kind: string;
339
+ description: string;
340
+ effective_schema: Record<string, unknown> | null;
341
+ name: string;
342
+ regimes: Record<string, unknown>[] | null;
256
343
  retention_days: number | null;
344
+ subject_kinds: string[];
257
345
  updated_at: string | null;
258
- effective_schema?: Record<string, unknown> | null | undefined;
259
- regimes?: Record<string, unknown>[] | null | undefined;
346
+ schema?: Record<string, unknown> | {
347
+ content?: string | undefined;
348
+ id?: string | undefined;
349
+ kwargs?: Record<string, unknown> | undefined;
350
+ } | undefined;
260
351
  }[]>;
261
352
  readonly getState: (name: string, signal?: AbortSignal) => Promise<{
262
- name: string;
263
- description: string;
264
- schema: Record<string, unknown>;
265
- subject_kinds: string[];
266
353
  default_subject_kind: string;
354
+ description: string;
355
+ effective_schema: Record<string, unknown> | null;
356
+ name: string;
357
+ regimes: Record<string, unknown>[] | null;
267
358
  retention_days: number | null;
359
+ subject_kinds: string[];
360
+ updated_at: string | null;
268
361
  attachments: {
269
362
  template: string;
270
363
  path: string[];
271
364
  parameters: Record<string, unknown>;
272
365
  declarations: Record<string, unknown>;
273
366
  }[];
274
- effective_schema?: Record<string, unknown> | null | undefined;
275
- regimes?: Record<string, unknown>[] | null | undefined;
367
+ schema?: Record<string, unknown> | {
368
+ content?: string | undefined;
369
+ id?: string | undefined;
370
+ kwargs?: Record<string, unknown> | undefined;
371
+ } | undefined;
276
372
  }>;
277
373
  readonly putState: (name: string, body: import("@tai42/api-client").StateDeclarationBody) => Promise<{
278
- name: string;
279
- description: string;
280
- schema: Record<string, unknown>;
281
- subject_kinds: string[];
282
374
  default_subject_kind: string;
375
+ description: string;
376
+ effective_schema: Record<string, unknown> | null;
377
+ name: string;
378
+ regimes: Record<string, unknown>[] | null;
283
379
  retention_days: number | null;
380
+ subject_kinds: string[];
381
+ updated_at: string | null;
284
382
  attachments: {
285
383
  template: string;
286
384
  path: string[];
287
385
  parameters: Record<string, unknown>;
288
386
  declarations: Record<string, unknown>;
289
387
  }[];
290
- effective_schema?: Record<string, unknown> | null | undefined;
291
- regimes?: Record<string, unknown>[] | null | undefined;
388
+ schema?: Record<string, unknown> | {
389
+ content?: string | undefined;
390
+ id?: string | undefined;
391
+ kwargs?: Record<string, unknown> | undefined;
392
+ } | undefined;
292
393
  }>;
293
394
  readonly deleteState: (name: string) => Promise<{
294
395
  name: string;
@@ -491,75 +592,156 @@ export declare const ApiProvider: import("react").Provider<{
491
592
  unavailable: string | null;
492
593
  }[]>;
493
594
  readonly listStateTemplates: (signal?: AbortSignal) => Promise<{
595
+ declarations: {
596
+ check: {
597
+ content?: string | undefined;
598
+ id?: string | undefined;
599
+ kwargs?: Record<string, unknown> | undefined;
600
+ } | null;
601
+ schema: Record<string, unknown>;
602
+ } | null;
603
+ description: string;
494
604
  kind: "state-template";
495
605
  name: string;
496
- description: string;
497
606
  parameters: Record<string, unknown>;
498
- schema: Record<string, unknown>;
607
+ reconcile: {
608
+ close: {
609
+ content?: string | undefined;
610
+ id?: string | undefined;
611
+ kwargs?: Record<string, unknown> | undefined;
612
+ };
613
+ orphans: {
614
+ content?: string | undefined;
615
+ id?: string | undefined;
616
+ kwargs?: Record<string, unknown> | undefined;
617
+ };
618
+ resolutions: {
619
+ content?: string | undefined;
620
+ id?: string | undefined;
621
+ kwargs?: Record<string, unknown> | undefined;
622
+ };
623
+ } | null;
499
624
  regimes: Record<string, unknown>[];
500
- declarations: Record<string, unknown> | null;
501
- trace: Record<string, unknown>;
502
625
  template_jq: Record<string, {
503
626
  description: string;
504
- purpose: "input" | "update";
627
+ jq: {
628
+ content?: string | undefined;
629
+ id?: string | undefined;
630
+ kwargs?: Record<string, unknown> | undefined;
631
+ };
505
632
  params: string[];
633
+ purpose: "input" | "update";
506
634
  reads: string[][];
507
635
  writes: string[][];
508
- jq: string;
509
636
  }> | null;
510
- reconcile: {
511
- view: string;
512
- close: string;
513
- resolutions: string;
514
- } | null;
637
+ trace: Record<string, unknown>;
515
638
  attached_to: number;
516
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;
517
645
  }[]>;
518
646
  readonly getStateTemplate: (name: string, signal?: AbortSignal) => Promise<{
647
+ declarations: {
648
+ check: {
649
+ content?: string | undefined;
650
+ id?: string | undefined;
651
+ kwargs?: Record<string, unknown> | undefined;
652
+ } | null;
653
+ schema: Record<string, unknown>;
654
+ } | null;
655
+ description: string;
519
656
  kind: "state-template";
520
657
  name: string;
521
- description: string;
522
658
  parameters: Record<string, unknown>;
523
- schema: Record<string, unknown>;
659
+ reconcile: {
660
+ close: {
661
+ content?: string | undefined;
662
+ id?: string | undefined;
663
+ kwargs?: Record<string, unknown> | undefined;
664
+ };
665
+ orphans: {
666
+ content?: string | undefined;
667
+ id?: string | undefined;
668
+ kwargs?: Record<string, unknown> | undefined;
669
+ };
670
+ resolutions: {
671
+ content?: string | undefined;
672
+ id?: string | undefined;
673
+ kwargs?: Record<string, unknown> | undefined;
674
+ };
675
+ } | null;
524
676
  regimes: Record<string, unknown>[];
525
- declarations: Record<string, unknown> | null;
526
- trace: Record<string, unknown>;
527
677
  template_jq: Record<string, {
528
678
  description: string;
529
- purpose: "input" | "update";
679
+ jq: {
680
+ content?: string | undefined;
681
+ id?: string | undefined;
682
+ kwargs?: Record<string, unknown> | undefined;
683
+ };
530
684
  params: string[];
685
+ purpose: "input" | "update";
531
686
  reads: string[][];
532
687
  writes: string[][];
533
- jq: string;
534
688
  }> | null;
535
- reconcile: {
536
- view: string;
537
- close: string;
538
- resolutions: string;
539
- } | 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;
540
695
  }>;
541
696
  readonly putStateTemplate: (name: string, body: import("@tai42/api-client").StateTemplateBody, replace?: boolean) => Promise<{
697
+ declarations: {
698
+ check: {
699
+ content?: string | undefined;
700
+ id?: string | undefined;
701
+ kwargs?: Record<string, unknown> | undefined;
702
+ } | null;
703
+ schema: Record<string, unknown>;
704
+ } | null;
705
+ description: string;
542
706
  kind: "state-template";
543
707
  name: string;
544
- description: string;
545
708
  parameters: Record<string, unknown>;
546
- schema: Record<string, unknown>;
709
+ reconcile: {
710
+ close: {
711
+ content?: string | undefined;
712
+ id?: string | undefined;
713
+ kwargs?: Record<string, unknown> | undefined;
714
+ };
715
+ orphans: {
716
+ content?: string | undefined;
717
+ id?: string | undefined;
718
+ kwargs?: Record<string, unknown> | undefined;
719
+ };
720
+ resolutions: {
721
+ content?: string | undefined;
722
+ id?: string | undefined;
723
+ kwargs?: Record<string, unknown> | undefined;
724
+ };
725
+ } | null;
547
726
  regimes: Record<string, unknown>[];
548
- declarations: Record<string, unknown> | null;
549
- trace: Record<string, unknown>;
550
727
  template_jq: Record<string, {
551
728
  description: string;
552
- purpose: "input" | "update";
729
+ jq: {
730
+ content?: string | undefined;
731
+ id?: string | undefined;
732
+ kwargs?: Record<string, unknown> | undefined;
733
+ };
553
734
  params: string[];
735
+ purpose: "input" | "update";
554
736
  reads: string[][];
555
737
  writes: string[][];
556
- jq: string;
557
738
  }> | null;
558
- reconcile: {
559
- view: string;
560
- close: string;
561
- resolutions: string;
562
- } | 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;
563
745
  }>;
564
746
  readonly deleteStateTemplate: (name: string) => Promise<{
565
747
  name: string;
@@ -739,11 +921,7 @@ export declare const ApiProvider: import("react").Provider<{
739
921
  path: string;
740
922
  deleted: true;
741
923
  }>;
742
- readonly renderTemplate: (body: {
743
- content?: string;
744
- template_id?: string;
745
- kwargs?: Record<string, unknown>;
746
- }) => Promise<{
924
+ readonly renderTemplate: (text: import("@tai42/api-client").TemplatedText) => Promise<{
747
925
  rendered: string;
748
926
  }>;
749
927
  readonly clearTemplatesCache: () => Promise<{
@@ -1244,7 +1422,7 @@ export declare const ApiProvider: import("react").Provider<{
1244
1422
  display_name: string;
1245
1423
  description: string;
1246
1424
  icon_url: string;
1247
- kind: "oauth" | "none";
1425
+ kind: "none" | "oauth";
1248
1426
  origin: "system" | "community";
1249
1427
  category: string;
1250
1428
  sub_services: {
@@ -1272,7 +1450,7 @@ export declare const ApiProvider: import("react").Provider<{
1272
1450
  connection_id: string;
1273
1451
  provider_id: string;
1274
1452
  alias: string;
1275
- kind: "oauth" | "none";
1453
+ kind: "none" | "oauth";
1276
1454
  account_identity: string | null;
1277
1455
  enabled_sub_services: string[];
1278
1456
  granted_scopes: string[];
@@ -1287,7 +1465,7 @@ export declare const ApiProvider: import("react").Provider<{
1287
1465
  connection_id: string;
1288
1466
  provider_id: string;
1289
1467
  alias: string;
1290
- kind: "oauth" | "none";
1468
+ kind: "none" | "oauth";
1291
1469
  account_identity: string | null;
1292
1470
  enabled_sub_services: string[];
1293
1471
  granted_scopes: string[];
@@ -1501,39 +1679,30 @@ export declare const ApiProvider: import("react").Provider<{
1501
1679
  }>;
1502
1680
  readonly listConversationRoutes: (signal?: AbortSignal) => Promise<{
1503
1681
  items: {
1504
- route_name: string;
1505
- door: "channel" | "api";
1506
- target_kind: "tool" | "agent";
1507
- target_name: string;
1508
- payload_expr: string | null;
1509
- reply_expr: string | null;
1510
- initial_mode: "agent" | "manual";
1511
- execution_key: string;
1512
- channel: string | null;
1513
- our_identity: string | null;
1682
+ callback_secret: string | null;
1514
1683
  callback_url: string | null;
1515
- turns_per_hour_override: number | null;
1684
+ channel: string | null;
1685
+ door: "channel" | "api";
1516
1686
  error_reply_text: string | null;
1687
+ execution_key: string;
1517
1688
  execution_key_fingerprint: string;
1518
- state_binding: {
1519
- states: {
1520
- state: string;
1521
- templates: string[];
1522
- subject_expr: string;
1523
- scope_expr: string | null;
1524
- input_injections: {
1525
- template_jq: string | null;
1526
- jq: string | null;
1527
- into: string;
1528
- }[];
1529
- updates: {
1530
- template_jq: string | null;
1531
- jq: string | null;
1532
- adapter: string | null;
1533
- op_id: string | null;
1534
- }[];
1535
- }[];
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;
1536
1701
  } | null;
1702
+ route_name: string;
1703
+ target_kind: "tool" | "agent";
1704
+ target_name: string;
1705
+ turns_per_hour_override: number | null;
1537
1706
  }[];
1538
1707
  total: number;
1539
1708
  }>;
@@ -1541,39 +1710,30 @@ export declare const ApiProvider: import("react").Provider<{
1541
1710
  created: boolean;
1542
1711
  route_name: string;
1543
1712
  route: {
1544
- route_name: string;
1545
- door: "channel" | "api";
1546
- target_kind: "tool" | "agent";
1547
- target_name: string;
1548
- payload_expr: string | null;
1549
- reply_expr: string | null;
1550
- initial_mode: "agent" | "manual";
1551
- execution_key: string;
1552
- channel: string | null;
1553
- our_identity: string | null;
1713
+ callback_secret: string | null;
1554
1714
  callback_url: string | null;
1555
- turns_per_hour_override: number | null;
1715
+ channel: string | null;
1716
+ door: "channel" | "api";
1556
1717
  error_reply_text: string | null;
1718
+ execution_key: string;
1557
1719
  execution_key_fingerprint: string;
1558
- state_binding: {
1559
- states: {
1560
- state: string;
1561
- templates: string[];
1562
- subject_expr: string;
1563
- scope_expr: string | null;
1564
- input_injections: {
1565
- template_jq: string | null;
1566
- jq: string | null;
1567
- into: string;
1568
- }[];
1569
- updates: {
1570
- template_jq: string | null;
1571
- jq: string | null;
1572
- adapter: string | null;
1573
- op_id: string | null;
1574
- }[];
1575
- }[];
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;
1576
1732
  } | null;
1733
+ route_name: string;
1734
+ target_kind: "tool" | "agent";
1735
+ target_name: string;
1736
+ turns_per_hour_override: number | null;
1577
1737
  };
1578
1738
  callback_secret: string | null;
1579
1739
  }>;
@@ -1668,28 +1828,157 @@ export declare const ApiProvider: import("react").Provider<{
1668
1828
  }>;
1669
1829
  readonly listConversationConfigs: (signal?: AbortSignal) => Promise<{
1670
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;
1671
1876
  target_kind: "tool" | "agent";
1672
1877
  target_name: string;
1673
- multichannel: boolean;
1674
- greeting_template: string | null;
1675
1878
  }[];
1676
1879
  total: number;
1677
1880
  }>;
1678
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;
1679
1927
  target_kind: "tool" | "agent";
1680
1928
  target_name: string;
1681
- multichannel: boolean;
1682
- greeting_template: string | null;
1683
1929
  }>;
1684
1930
  readonly setConversationConfig: (config: import("@tai42/api-client").TargetConversationConfig) => Promise<{
1685
1931
  created: boolean;
1686
1932
  target_kind: "tool" | "agent";
1687
1933
  target_name: string;
1688
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;
1689
1980
  target_kind: "tool" | "agent";
1690
1981
  target_name: string;
1691
- multichannel: boolean;
1692
- greeting_template: string | null;
1693
1982
  };
1694
1983
  }>;
1695
1984
  readonly deleteConversationConfig: (targetKind: import("@tai42/api-client").ConversationTargetKind, targetName: string) => Promise<{
@@ -1761,9 +2050,16 @@ export declare const ApiProvider: import("react").Provider<{
1761
2050
  audience?: string | null | undefined;
1762
2051
  media?: unknown[] | null | undefined;
1763
2052
  template?: {
1764
- name: string;
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;
1765
2061
  language: string;
1766
- parameters: string[];
2062
+ name: string;
1767
2063
  } | null | undefined;
1768
2064
  options?: string[] | null | undefined;
1769
2065
  }[];
@@ -1792,42 +2088,75 @@ export declare const ApiProvider: import("react").Provider<{
1792
2088
  readonly streamAuthoredAgentRun: (name: string, input: unknown, signal?: AbortSignal) => Promise<AsyncGenerator<import("@tai42/api-client").ParsedAgentEvent, any, any>>;
1793
2089
  readonly listHooks: (topic?: string, signal?: AbortSignal) => Promise<{
1794
2090
  items: {
1795
- name: string;
1796
- topic: string;
1797
- tool: string;
2091
+ condition: {
2092
+ content?: string | undefined;
2093
+ id?: string | undefined;
2094
+ kwargs?: Record<string, unknown> | undefined;
2095
+ } | null;
1798
2096
  execution_key: string;
1799
- tool_kwargs: Record<string, unknown>;
1800
- subject: {
1801
- target_kind: "tool" | "agent";
1802
- target_name: string;
1803
- kind: string;
1804
- key_expr: string;
2097
+ execution_key_fingerprint: string;
2098
+ expr: {
2099
+ content?: string | undefined;
2100
+ id?: string | undefined;
2101
+ kwargs?: Record<string, unknown> | undefined;
1805
2102
  } | null;
1806
- condition: string | null;
1807
- condition_id: string | null;
1808
- condition_kwargs: Record<string, unknown>;
1809
- expr: string | null;
1810
- expr_id: string | null;
1811
- expr_kwargs: Record<string, unknown>;
2103
+ name: string;
1812
2104
  state_binding: {
1813
2105
  states: {
1814
- state: string;
1815
- templates: string[];
1816
- subject_expr: string;
1817
- scope_expr: string | null;
1818
2106
  input_injections: {
1819
- template_jq: string | null;
1820
- jq: string | null;
1821
2107
  into: string;
2108
+ jq: {
2109
+ content?: string | undefined;
2110
+ id?: string | undefined;
2111
+ kwargs?: Record<string, unknown> | undefined;
2112
+ } | null;
2113
+ template_jq: string | null;
1822
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[];
1823
2127
  updates: {
2128
+ adapter: {
2129
+ content?: string | undefined;
2130
+ id?: string | undefined;
2131
+ kwargs?: Record<string, unknown> | undefined;
2132
+ } | null;
2133
+ jq: {
2134
+ content?: string | undefined;
2135
+ id?: string | undefined;
2136
+ kwargs?: Record<string, unknown> | undefined;
2137
+ } | null;
2138
+ op_id: {
2139
+ content?: string | undefined;
2140
+ id?: string | undefined;
2141
+ kwargs?: Record<string, unknown> | undefined;
2142
+ } | null;
1824
2143
  template_jq: string | null;
1825
- jq: string | null;
1826
- adapter: string | null;
1827
- op_id: string | null;
1828
2144
  }[];
1829
2145
  }[];
1830
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;
1831
2160
  }[];
1832
2161
  total: number;
1833
2162
  topic_verifiers: Record<string, {
@@ -1836,7 +2165,7 @@ export declare const ApiProvider: import("react").Provider<{
1836
2165
  }>;
1837
2166
  trigger_auth: Record<string, "public" | "verifier" | "token" | "token+api_key" | "out-of-service">;
1838
2167
  }>;
1839
- readonly registerHook: (params: import("@tai42/api-client").HookParams) => Promise<{
2168
+ readonly registerHook: (params: import("@tai42/api-client").HookRegister) => Promise<{
1840
2169
  registered: boolean;
1841
2170
  name: string;
1842
2171
  }>;
@@ -1918,7 +2247,7 @@ export declare const ApiProvider: import("react").Provider<{
1918
2247
  mapped: string | null;
1919
2248
  tags: string[];
1920
2249
  summary: string;
1921
- action: "secret" | "read" | "write" | "fenced" | null;
2250
+ action: "read" | "write" | "secret" | "fenced" | null;
1922
2251
  }[]>;
1923
2252
  readonly listPublicRoutes: (signal?: AbortSignal) => Promise<string[]>;
1924
2253
  readonly pinRoutePublic: (body: import("@tai42/api-client").PinRoutePublicBody) => Promise<{
@@ -1928,37 +2257,43 @@ export declare const ApiProvider: import("react").Provider<{
1928
2257
  url: string;
1929
2258
  }>;
1930
2259
  readonly listRoles: (signal?: AbortSignal) => Promise<{
1931
- name: string;
1932
- description: string;
1933
- scopes: string[];
1934
- condition: string | null;
1935
- condition_id: string | null;
1936
- condition_kwargs: unknown;
1937
- base_tier: string | null;
1938
2260
  allow_all: boolean;
2261
+ base_tier: string | null;
2262
+ condition: {
2263
+ content?: string | undefined;
2264
+ id?: string | undefined;
2265
+ kwargs?: Record<string, unknown> | undefined;
2266
+ } | null;
2267
+ description: string;
1939
2268
  grants: Record<string, "none" | "read" | "write">;
1940
- }[]>;
1941
- readonly createRole: (body: import("@tai42/api-client").RoleCreateBody) => Promise<{
1942
2269
  name: string;
1943
- description: string;
1944
2270
  scopes: string[];
1945
- condition: string | null;
1946
- condition_id: string | null;
1947
- condition_kwargs: unknown;
1948
- base_tier: string | null;
2271
+ }[]>;
2272
+ readonly createRole: (body: import("@tai42/api-client").RoleCreateBody) => Promise<{
1949
2273
  allow_all: boolean;
2274
+ base_tier: string | null;
2275
+ condition: {
2276
+ content?: string | undefined;
2277
+ id?: string | undefined;
2278
+ kwargs?: Record<string, unknown> | undefined;
2279
+ } | null;
2280
+ description: string;
1950
2281
  grants: Record<string, "none" | "read" | "write">;
1951
- }>;
1952
- readonly updateRole: (name: string, body: import("@tai42/api-client").RoleUpdateBody) => Promise<{
1953
2282
  name: string;
1954
- description: string;
1955
2283
  scopes: string[];
1956
- condition: string | null;
1957
- condition_id: string | null;
1958
- condition_kwargs: unknown;
1959
- base_tier: string | null;
2284
+ }>;
2285
+ readonly updateRole: (name: string, body: import("@tai42/api-client").RoleUpdateBody) => Promise<{
1960
2286
  allow_all: boolean;
2287
+ base_tier: string | null;
2288
+ condition: {
2289
+ content?: string | undefined;
2290
+ id?: string | undefined;
2291
+ kwargs?: Record<string, unknown> | undefined;
2292
+ } | null;
2293
+ description: string;
1961
2294
  grants: Record<string, "none" | "read" | "write">;
2295
+ name: string;
2296
+ scopes: string[];
1962
2297
  }>;
1963
2298
  readonly deleteRole: (name: string) => Promise<{
1964
2299
  name: string;
@@ -1968,15 +2303,17 @@ export declare const ApiProvider: import("react").Provider<{
1968
2303
  versions: {
1969
2304
  version: number;
1970
2305
  body: {
1971
- name: string;
1972
- description: string;
1973
- scopes: string[];
1974
- condition: string | null;
1975
- condition_id: string | null;
1976
- condition_kwargs: unknown;
1977
- base_tier: string | null;
1978
2306
  allow_all: boolean;
2307
+ base_tier: string | null;
2308
+ condition: {
2309
+ content?: string | undefined;
2310
+ id?: string | undefined;
2311
+ kwargs?: Record<string, unknown> | undefined;
2312
+ } | null;
2313
+ description: string;
1979
2314
  grants: Record<string, "none" | "read" | "write">;
2315
+ name: string;
2316
+ scopes: string[];
1980
2317
  };
1981
2318
  tags: string[];
1982
2319
  created_at: string;
@@ -1996,24 +2333,28 @@ export declare const ApiProvider: import("react").Provider<{
1996
2333
  }[];
1997
2334
  }>;
1998
2335
  readonly rollbackRole: (name: string, version: number) => Promise<{
1999
- name: string;
2000
- description: string;
2001
- scopes: string[];
2002
- condition: string | null;
2003
- condition_id: string | null;
2004
- condition_kwargs: unknown;
2005
- base_tier: string | null;
2006
2336
  allow_all: boolean;
2337
+ base_tier: string | null;
2338
+ condition: {
2339
+ content?: string | undefined;
2340
+ id?: string | undefined;
2341
+ kwargs?: Record<string, unknown> | undefined;
2342
+ } | null;
2343
+ description: string;
2007
2344
  grants: Record<string, "none" | "read" | "write">;
2345
+ name: string;
2346
+ scopes: string[];
2008
2347
  }>;
2009
2348
  readonly listTokensPayload: (signal?: AbortSignal) => Promise<{
2010
2349
  user_id: string;
2011
2350
  description: string;
2012
2351
  scopes: string[];
2013
2352
  policy_data: unknown;
2014
- condition?: string | null | undefined;
2015
- condition_id?: string | null | undefined;
2016
- condition_kwargs?: unknown;
2353
+ condition?: {
2354
+ content?: string | undefined;
2355
+ id?: string | undefined;
2356
+ kwargs?: Record<string, unknown> | undefined;
2357
+ } | null | undefined;
2017
2358
  }[]>;
2018
2359
  readonly createApiKey: (body: import("@tai42/api-client").ApiKeyBody) => Promise<string>;
2019
2360
  readonly editApiKey: (userId: string, body: Omit<import("@tai42/api-client").ApiKeyBody, "user_id">) => Promise<{
@@ -2106,11 +2447,13 @@ export declare const ApiProvider: import("react").Provider<{
2106
2447
  readonly listPolicyVersions: (userId: string, signal?: AbortSignal) => Promise<{
2107
2448
  version: number;
2108
2449
  body: {
2450
+ condition: {
2451
+ content?: string | undefined;
2452
+ id?: string | undefined;
2453
+ kwargs?: Record<string, unknown> | undefined;
2454
+ } | null;
2455
+ policy_data: Record<string, unknown>;
2109
2456
  scopes: string[];
2110
- policy_data: unknown;
2111
- condition: string | null;
2112
- condition_id: string | null;
2113
- condition_kwargs: unknown;
2114
2457
  };
2115
2458
  tags: string[];
2116
2459
  created_at: string;