@tai42/studio-sdk 13.3.0 → 15.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/components/components.css +19 -0
- package/dist/components/icons.d.ts +2 -0
- package/dist/components/icons.d.ts.map +1 -1
- package/dist/components/icons.js +2 -0
- package/dist/components/icons.js.map +1 -1
- package/dist/components/templated-text-field.d.ts +98 -0
- package/dist/components/templated-text-field.d.ts.map +1 -0
- package/dist/components/templated-text-field.js +217 -0
- package/dist/components/templated-text-field.js.map +1 -0
- package/dist/hooks/useApi.d.ts +461 -59
- package/dist/hooks/useApi.d.ts.map +1 -1
- package/dist/index.d.ts +6 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +5 -2
- package/dist/index.js.map +1 -1
- package/dist/navigation/types.d.ts +2 -1
- package/dist/navigation/types.d.ts.map +1 -1
- package/dist/query-keys.d.ts +13 -0
- package/dist/query-keys.d.ts.map +1 -1
- package/dist/query-keys.js +13 -0
- package/dist/query-keys.js.map +1 -1
- package/dist/state-binding/AdapterMapping.d.ts +33 -0
- package/dist/state-binding/AdapterMapping.d.ts.map +1 -0
- package/dist/state-binding/AdapterMapping.js +205 -0
- package/dist/state-binding/AdapterMapping.js.map +1 -0
- package/dist/state-binding/BindingJqField.d.ts +43 -0
- package/dist/state-binding/BindingJqField.d.ts.map +1 -0
- package/dist/state-binding/BindingJqField.js +57 -0
- package/dist/state-binding/BindingJqField.js.map +1 -0
- package/dist/state-binding/BindingTemplatedJqField.d.ts +24 -0
- package/dist/state-binding/BindingTemplatedJqField.d.ts.map +1 -0
- package/dist/state-binding/BindingTemplatedJqField.js +7 -0
- package/dist/state-binding/BindingTemplatedJqField.js.map +1 -0
- package/dist/state-binding/InputInjectionRow.d.ts +18 -0
- package/dist/state-binding/InputInjectionRow.d.ts.map +1 -0
- package/dist/state-binding/InputInjectionRow.js +55 -0
- package/dist/state-binding/InputInjectionRow.js.map +1 -0
- package/dist/state-binding/StateAttachRow.d.ts +27 -0
- package/dist/state-binding/StateAttachRow.d.ts.map +1 -0
- package/dist/state-binding/StateAttachRow.js +102 -0
- package/dist/state-binding/StateAttachRow.js.map +1 -0
- package/dist/state-binding/StateBindingEditor.d.ts +37 -0
- package/dist/state-binding/StateBindingEditor.d.ts.map +1 -0
- package/dist/state-binding/StateBindingEditor.js +54 -0
- package/dist/state-binding/StateBindingEditor.js.map +1 -0
- package/dist/state-binding/StateBindingSection.d.ts +14 -0
- package/dist/state-binding/StateBindingSection.d.ts.map +1 -0
- package/dist/state-binding/StateBindingSection.js +17 -0
- package/dist/state-binding/StateBindingSection.js.map +1 -0
- package/dist/state-binding/SubjectScopeFields.d.ts +20 -0
- package/dist/state-binding/SubjectScopeFields.d.ts.map +1 -0
- package/dist/state-binding/SubjectScopeFields.js +8 -0
- package/dist/state-binding/SubjectScopeFields.js.map +1 -0
- package/dist/state-binding/UpdateRow.d.ts +20 -0
- package/dist/state-binding/UpdateRow.d.ts.map +1 -0
- package/dist/state-binding/UpdateRow.js +89 -0
- package/dist/state-binding/UpdateRow.js.map +1 -0
- package/dist/state-binding/adapter.d.ts +93 -0
- package/dist/state-binding/adapter.d.ts.map +1 -0
- package/dist/state-binding/adapter.js +251 -0
- package/dist/state-binding/adapter.js.map +1 -0
- package/dist/state-binding/build-catalog.d.ts +19 -0
- package/dist/state-binding/build-catalog.d.ts.map +1 -0
- package/dist/state-binding/build-catalog.js +43 -0
- package/dist/state-binding/build-catalog.js.map +1 -0
- package/dist/state-binding/catalog.d.ts +26 -0
- package/dist/state-binding/catalog.d.ts.map +1 -0
- package/dist/state-binding/catalog.js +71 -0
- package/dist/state-binding/catalog.js.map +1 -0
- package/dist/state-binding/index.d.ts +33 -0
- package/dist/state-binding/index.d.ts.map +1 -0
- package/dist/state-binding/index.js +20 -0
- package/dist/state-binding/index.js.map +1 -0
- package/dist/state-binding/templated-text-catalog.d.ts +21 -0
- package/dist/state-binding/templated-text-catalog.d.ts.map +1 -0
- package/dist/state-binding/templated-text-catalog.js +48 -0
- package/dist/state-binding/templated-text-catalog.js.map +1 -0
- package/dist/state-binding/types.d.ts +78 -0
- package/dist/state-binding/types.d.ts.map +1 -0
- package/dist/state-binding/types.js +2 -0
- package/dist/state-binding/types.js.map +1 -0
- package/package.json +5 -5
- package/src/components/components.css +19 -0
- package/src/components/icons.tsx +8 -0
- package/src/components/templated-text-field.tsx +508 -0
- package/src/index.ts +76 -1
- package/src/navigation/types.ts +4 -1
- package/src/query-keys.ts +15 -0
- package/src/state-binding/AdapterMapping.tsx +468 -0
- package/src/state-binding/BindingJqField.tsx +146 -0
- package/src/state-binding/BindingTemplatedJqField.tsx +73 -0
- package/src/state-binding/InputInjectionRow.tsx +157 -0
- package/src/state-binding/README.md +46 -0
- package/src/state-binding/StateAttachRow.tsx +289 -0
- package/src/state-binding/StateBindingEditor.tsx +166 -0
- package/src/state-binding/StateBindingSection.tsx +37 -0
- package/src/state-binding/SubjectScopeFields.tsx +57 -0
- package/src/state-binding/UpdateRow.tsx +227 -0
- package/src/state-binding/adapter.ts +276 -0
- package/src/state-binding/build-catalog.ts +59 -0
- package/src/state-binding/catalog.ts +87 -0
- package/src/state-binding/index.ts +67 -0
- package/src/state-binding/templated-text-catalog.ts +69 -0
- package/src/state-binding/types.ts +91 -0
package/dist/hooks/useApi.d.ts
CHANGED
|
@@ -74,6 +74,7 @@ export declare const ApiProvider: import("react").Provider<{
|
|
|
74
74
|
config: Record<string, unknown>;
|
|
75
75
|
})[][];
|
|
76
76
|
output_schema: Record<string, unknown> | null;
|
|
77
|
+
input_schema: Record<string, unknown> | null;
|
|
77
78
|
conflicted: boolean;
|
|
78
79
|
conflicted_reason: string | null;
|
|
79
80
|
uses: string[];
|
|
@@ -89,6 +90,7 @@ export declare const ApiProvider: import("react").Provider<{
|
|
|
89
90
|
config: Record<string, unknown>;
|
|
90
91
|
})[][];
|
|
91
92
|
output_schema: Record<string, unknown> | null;
|
|
93
|
+
input_schema: Record<string, unknown> | null;
|
|
92
94
|
conflicted: boolean;
|
|
93
95
|
conflicted_reason: string | null;
|
|
94
96
|
uses: string[];
|
|
@@ -104,6 +106,7 @@ export declare const ApiProvider: import("react").Provider<{
|
|
|
104
106
|
config: Record<string, unknown>;
|
|
105
107
|
})[][];
|
|
106
108
|
output_schema: Record<string, unknown> | null;
|
|
109
|
+
input_schema: Record<string, unknown> | null;
|
|
107
110
|
conflicted: boolean;
|
|
108
111
|
conflicted_reason: string | null;
|
|
109
112
|
uses: string[];
|
|
@@ -121,6 +124,50 @@ export declare const ApiProvider: import("react").Provider<{
|
|
|
121
124
|
config: Record<string, unknown>;
|
|
122
125
|
})[][];
|
|
123
126
|
output_schema: Record<string, unknown> | null;
|
|
127
|
+
input_schema: Record<string, unknown> | null;
|
|
128
|
+
state_binding: {
|
|
129
|
+
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
|
+
input_injections: {
|
|
143
|
+
template_jq: string | null;
|
|
144
|
+
jq: {
|
|
145
|
+
content?: string | undefined;
|
|
146
|
+
id?: string | undefined;
|
|
147
|
+
kwargs?: Record<string, unknown> | undefined;
|
|
148
|
+
} | null;
|
|
149
|
+
into: string;
|
|
150
|
+
}[];
|
|
151
|
+
updates: {
|
|
152
|
+
template_jq: string | null;
|
|
153
|
+
jq: {
|
|
154
|
+
content?: string | undefined;
|
|
155
|
+
id?: string | undefined;
|
|
156
|
+
kwargs?: Record<string, unknown> | undefined;
|
|
157
|
+
} | null;
|
|
158
|
+
adapter: {
|
|
159
|
+
content?: string | undefined;
|
|
160
|
+
id?: string | undefined;
|
|
161
|
+
kwargs?: Record<string, unknown> | undefined;
|
|
162
|
+
} | null;
|
|
163
|
+
op_id: {
|
|
164
|
+
content?: string | undefined;
|
|
165
|
+
id?: string | undefined;
|
|
166
|
+
kwargs?: Record<string, unknown> | undefined;
|
|
167
|
+
} | null;
|
|
168
|
+
}[];
|
|
169
|
+
}[];
|
|
170
|
+
} | null;
|
|
124
171
|
};
|
|
125
172
|
tags: string[];
|
|
126
173
|
created_at: string;
|
|
@@ -137,6 +184,50 @@ export declare const ApiProvider: import("react").Provider<{
|
|
|
137
184
|
config: Record<string, unknown>;
|
|
138
185
|
})[][];
|
|
139
186
|
output_schema: Record<string, unknown> | null;
|
|
187
|
+
input_schema: Record<string, unknown> | null;
|
|
188
|
+
state_binding: {
|
|
189
|
+
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
|
+
input_injections: {
|
|
203
|
+
template_jq: string | null;
|
|
204
|
+
jq: {
|
|
205
|
+
content?: string | undefined;
|
|
206
|
+
id?: string | undefined;
|
|
207
|
+
kwargs?: Record<string, unknown> | undefined;
|
|
208
|
+
} | null;
|
|
209
|
+
into: string;
|
|
210
|
+
}[];
|
|
211
|
+
updates: {
|
|
212
|
+
template_jq: string | null;
|
|
213
|
+
jq: {
|
|
214
|
+
content?: string | undefined;
|
|
215
|
+
id?: string | undefined;
|
|
216
|
+
kwargs?: Record<string, unknown> | undefined;
|
|
217
|
+
} | null;
|
|
218
|
+
adapter: {
|
|
219
|
+
content?: string | undefined;
|
|
220
|
+
id?: string | undefined;
|
|
221
|
+
kwargs?: Record<string, unknown> | undefined;
|
|
222
|
+
} | null;
|
|
223
|
+
op_id: {
|
|
224
|
+
content?: string | undefined;
|
|
225
|
+
id?: string | undefined;
|
|
226
|
+
kwargs?: Record<string, unknown> | undefined;
|
|
227
|
+
} | null;
|
|
228
|
+
}[];
|
|
229
|
+
}[];
|
|
230
|
+
} | null;
|
|
140
231
|
};
|
|
141
232
|
tags: string[];
|
|
142
233
|
created_at: string;
|
|
@@ -153,6 +244,50 @@ export declare const ApiProvider: import("react").Provider<{
|
|
|
153
244
|
config: Record<string, unknown>;
|
|
154
245
|
})[][];
|
|
155
246
|
output_schema: Record<string, unknown> | null;
|
|
247
|
+
input_schema: Record<string, unknown> | null;
|
|
248
|
+
state_binding: {
|
|
249
|
+
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
|
+
input_injections: {
|
|
263
|
+
template_jq: string | null;
|
|
264
|
+
jq: {
|
|
265
|
+
content?: string | undefined;
|
|
266
|
+
id?: string | undefined;
|
|
267
|
+
kwargs?: Record<string, unknown> | undefined;
|
|
268
|
+
} | null;
|
|
269
|
+
into: string;
|
|
270
|
+
}[];
|
|
271
|
+
updates: {
|
|
272
|
+
template_jq: string | null;
|
|
273
|
+
jq: {
|
|
274
|
+
content?: string | undefined;
|
|
275
|
+
id?: string | undefined;
|
|
276
|
+
kwargs?: Record<string, unknown> | undefined;
|
|
277
|
+
} | null;
|
|
278
|
+
adapter: {
|
|
279
|
+
content?: string | undefined;
|
|
280
|
+
id?: string | undefined;
|
|
281
|
+
kwargs?: Record<string, unknown> | undefined;
|
|
282
|
+
} | null;
|
|
283
|
+
op_id: {
|
|
284
|
+
content?: string | undefined;
|
|
285
|
+
id?: string | undefined;
|
|
286
|
+
kwargs?: Record<string, unknown> | undefined;
|
|
287
|
+
} | null;
|
|
288
|
+
}[];
|
|
289
|
+
}[];
|
|
290
|
+
} | null;
|
|
156
291
|
};
|
|
157
292
|
tags: string[];
|
|
158
293
|
created_at: string;
|
|
@@ -202,8 +337,8 @@ export declare const ApiProvider: import("react").Provider<{
|
|
|
202
337
|
subject_kinds: string[];
|
|
203
338
|
default_subject_kind: string;
|
|
204
339
|
retention_days: number | null;
|
|
205
|
-
|
|
206
|
-
|
|
340
|
+
attachments: {
|
|
341
|
+
template: string;
|
|
207
342
|
path: string[];
|
|
208
343
|
parameters: Record<string, unknown>;
|
|
209
344
|
declarations: Record<string, unknown>;
|
|
@@ -218,8 +353,8 @@ export declare const ApiProvider: import("react").Provider<{
|
|
|
218
353
|
subject_kinds: string[];
|
|
219
354
|
default_subject_kind: string;
|
|
220
355
|
retention_days: number | null;
|
|
221
|
-
|
|
222
|
-
|
|
356
|
+
attachments: {
|
|
357
|
+
template: string;
|
|
223
358
|
path: string[];
|
|
224
359
|
parameters: Record<string, unknown>;
|
|
225
360
|
declarations: Record<string, unknown>;
|
|
@@ -237,32 +372,32 @@ export declare const ApiProvider: import("react").Provider<{
|
|
|
237
372
|
per_kind: Record<string, number>;
|
|
238
373
|
consumers: number;
|
|
239
374
|
}>;
|
|
240
|
-
readonly
|
|
241
|
-
|
|
375
|
+
readonly listStateAttachments: (name: string, signal?: AbortSignal) => Promise<{
|
|
376
|
+
template: string;
|
|
242
377
|
path: string[];
|
|
243
378
|
parameters: Record<string, unknown>;
|
|
244
379
|
declarations: Record<string, unknown>;
|
|
245
380
|
}[]>;
|
|
246
|
-
readonly
|
|
247
|
-
|
|
381
|
+
readonly getStateAttachment: (name: string, template: string, signal?: AbortSignal) => Promise<{
|
|
382
|
+
template: string;
|
|
248
383
|
path: string[];
|
|
249
384
|
parameters: Record<string, unknown>;
|
|
250
385
|
declarations: Record<string, unknown>;
|
|
251
386
|
}>;
|
|
252
|
-
readonly
|
|
253
|
-
|
|
387
|
+
readonly attachStateTemplate: (name: string, template: string, body: import("@tai42/api-client").StateAttachmentBody) => Promise<{
|
|
388
|
+
attached: true;
|
|
254
389
|
state: string;
|
|
255
|
-
|
|
390
|
+
template: string;
|
|
256
391
|
}>;
|
|
257
|
-
readonly
|
|
392
|
+
readonly patchStateAttachment: (name: string, template: string, body: import("@tai42/api-client").StateAttachmentBody) => Promise<{
|
|
258
393
|
updated: true;
|
|
259
394
|
state: string;
|
|
260
|
-
|
|
395
|
+
template: string;
|
|
261
396
|
}>;
|
|
262
|
-
readonly
|
|
263
|
-
|
|
397
|
+
readonly detachStateTemplate: (name: string, template: string) => Promise<{
|
|
398
|
+
detached: true;
|
|
264
399
|
state: string;
|
|
265
|
-
|
|
400
|
+
template: string;
|
|
266
401
|
}>;
|
|
267
402
|
readonly listStateSubjects: (name: string, params: {
|
|
268
403
|
kind?: string;
|
|
@@ -367,6 +502,21 @@ export declare const ApiProvider: import("react").Provider<{
|
|
|
367
502
|
seq: number | null;
|
|
368
503
|
skipped: Record<string, unknown>[];
|
|
369
504
|
}>;
|
|
505
|
+
readonly evalTemplateJq: (name: string, subject: import("@tai42/api-client").StateSubjectRef, jqName: string, params?: Record<string, unknown>, signal?: AbortSignal) => Promise<{
|
|
506
|
+
name: string;
|
|
507
|
+
purpose: "input";
|
|
508
|
+
value: unknown;
|
|
509
|
+
}>;
|
|
510
|
+
readonly applyTemplateJq: (name: string, subject: import("@tai42/api-client").StateSubjectRef, jqName: string, body?: {
|
|
511
|
+
input?: unknown;
|
|
512
|
+
op_id?: string;
|
|
513
|
+
}) => Promise<{
|
|
514
|
+
name: string;
|
|
515
|
+
applied: boolean;
|
|
516
|
+
data: Record<string, unknown> | null;
|
|
517
|
+
seq: number | null;
|
|
518
|
+
skipped: Record<string, unknown>[];
|
|
519
|
+
}>;
|
|
370
520
|
readonly deleteStateRecord: (name: string, subject: import("@tai42/api-client").StateSubjectRef) => Promise<{
|
|
371
521
|
erased: true;
|
|
372
522
|
}>;
|
|
@@ -412,39 +562,147 @@ export declare const ApiProvider: import("react").Provider<{
|
|
|
412
562
|
} | null;
|
|
413
563
|
unavailable: string | null;
|
|
414
564
|
}[]>;
|
|
415
|
-
readonly
|
|
416
|
-
kind: "state-
|
|
565
|
+
readonly listStateTemplates: (signal?: AbortSignal) => Promise<{
|
|
566
|
+
kind: "state-template";
|
|
417
567
|
name: string;
|
|
418
568
|
description: string;
|
|
419
569
|
parameters: Record<string, unknown>;
|
|
420
570
|
schema: Record<string, unknown>;
|
|
421
571
|
regimes: Record<string, unknown>[];
|
|
422
|
-
declarations:
|
|
572
|
+
declarations: {
|
|
573
|
+
schema: Record<string, unknown>;
|
|
574
|
+
check: {
|
|
575
|
+
content?: string | undefined;
|
|
576
|
+
id?: string | undefined;
|
|
577
|
+
kwargs?: Record<string, unknown> | undefined;
|
|
578
|
+
} | null;
|
|
579
|
+
} | null;
|
|
423
580
|
trace: Record<string, unknown>;
|
|
424
|
-
|
|
581
|
+
template_jq: Record<string, {
|
|
582
|
+
description: string;
|
|
583
|
+
purpose: "input" | "update";
|
|
584
|
+
params: string[];
|
|
585
|
+
reads: string[][];
|
|
586
|
+
writes: string[][];
|
|
587
|
+
jq: {
|
|
588
|
+
content?: string | undefined;
|
|
589
|
+
id?: string | undefined;
|
|
590
|
+
kwargs?: Record<string, unknown> | undefined;
|
|
591
|
+
};
|
|
592
|
+
}> | null;
|
|
593
|
+
reconcile: {
|
|
594
|
+
orphans: {
|
|
595
|
+
content?: string | undefined;
|
|
596
|
+
id?: string | undefined;
|
|
597
|
+
kwargs?: Record<string, unknown> | undefined;
|
|
598
|
+
};
|
|
599
|
+
close: {
|
|
600
|
+
content?: string | undefined;
|
|
601
|
+
id?: string | undefined;
|
|
602
|
+
kwargs?: Record<string, unknown> | undefined;
|
|
603
|
+
};
|
|
604
|
+
resolutions: {
|
|
605
|
+
content?: string | undefined;
|
|
606
|
+
id?: string | undefined;
|
|
607
|
+
kwargs?: Record<string, unknown> | undefined;
|
|
608
|
+
};
|
|
609
|
+
} | null;
|
|
610
|
+
attached_to: number;
|
|
425
611
|
shipped_default: boolean;
|
|
426
612
|
}[]>;
|
|
427
|
-
readonly
|
|
428
|
-
kind: "state-
|
|
613
|
+
readonly getStateTemplate: (name: string, signal?: AbortSignal) => Promise<{
|
|
614
|
+
kind: "state-template";
|
|
429
615
|
name: string;
|
|
430
616
|
description: string;
|
|
431
617
|
parameters: Record<string, unknown>;
|
|
432
618
|
schema: Record<string, unknown>;
|
|
433
619
|
regimes: Record<string, unknown>[];
|
|
434
|
-
declarations:
|
|
620
|
+
declarations: {
|
|
621
|
+
schema: Record<string, unknown>;
|
|
622
|
+
check: {
|
|
623
|
+
content?: string | undefined;
|
|
624
|
+
id?: string | undefined;
|
|
625
|
+
kwargs?: Record<string, unknown> | undefined;
|
|
626
|
+
} | null;
|
|
627
|
+
} | null;
|
|
435
628
|
trace: Record<string, unknown>;
|
|
629
|
+
template_jq: Record<string, {
|
|
630
|
+
description: string;
|
|
631
|
+
purpose: "input" | "update";
|
|
632
|
+
params: string[];
|
|
633
|
+
reads: string[][];
|
|
634
|
+
writes: string[][];
|
|
635
|
+
jq: {
|
|
636
|
+
content?: string | undefined;
|
|
637
|
+
id?: string | undefined;
|
|
638
|
+
kwargs?: Record<string, unknown> | undefined;
|
|
639
|
+
};
|
|
640
|
+
}> | null;
|
|
641
|
+
reconcile: {
|
|
642
|
+
orphans: {
|
|
643
|
+
content?: string | undefined;
|
|
644
|
+
id?: string | undefined;
|
|
645
|
+
kwargs?: Record<string, unknown> | undefined;
|
|
646
|
+
};
|
|
647
|
+
close: {
|
|
648
|
+
content?: string | undefined;
|
|
649
|
+
id?: string | undefined;
|
|
650
|
+
kwargs?: Record<string, unknown> | undefined;
|
|
651
|
+
};
|
|
652
|
+
resolutions: {
|
|
653
|
+
content?: string | undefined;
|
|
654
|
+
id?: string | undefined;
|
|
655
|
+
kwargs?: Record<string, unknown> | undefined;
|
|
656
|
+
};
|
|
657
|
+
} | null;
|
|
436
658
|
}>;
|
|
437
|
-
readonly
|
|
438
|
-
kind: "state-
|
|
659
|
+
readonly putStateTemplate: (name: string, body: import("@tai42/api-client").StateTemplateBody, replace?: boolean) => Promise<{
|
|
660
|
+
kind: "state-template";
|
|
439
661
|
name: string;
|
|
440
662
|
description: string;
|
|
441
663
|
parameters: Record<string, unknown>;
|
|
442
664
|
schema: Record<string, unknown>;
|
|
443
665
|
regimes: Record<string, unknown>[];
|
|
444
|
-
declarations:
|
|
666
|
+
declarations: {
|
|
667
|
+
schema: Record<string, unknown>;
|
|
668
|
+
check: {
|
|
669
|
+
content?: string | undefined;
|
|
670
|
+
id?: string | undefined;
|
|
671
|
+
kwargs?: Record<string, unknown> | undefined;
|
|
672
|
+
} | null;
|
|
673
|
+
} | null;
|
|
445
674
|
trace: Record<string, unknown>;
|
|
675
|
+
template_jq: Record<string, {
|
|
676
|
+
description: string;
|
|
677
|
+
purpose: "input" | "update";
|
|
678
|
+
params: string[];
|
|
679
|
+
reads: string[][];
|
|
680
|
+
writes: string[][];
|
|
681
|
+
jq: {
|
|
682
|
+
content?: string | undefined;
|
|
683
|
+
id?: string | undefined;
|
|
684
|
+
kwargs?: Record<string, unknown> | undefined;
|
|
685
|
+
};
|
|
686
|
+
}> | null;
|
|
687
|
+
reconcile: {
|
|
688
|
+
orphans: {
|
|
689
|
+
content?: string | undefined;
|
|
690
|
+
id?: string | undefined;
|
|
691
|
+
kwargs?: Record<string, unknown> | undefined;
|
|
692
|
+
};
|
|
693
|
+
close: {
|
|
694
|
+
content?: string | undefined;
|
|
695
|
+
id?: string | undefined;
|
|
696
|
+
kwargs?: Record<string, unknown> | undefined;
|
|
697
|
+
};
|
|
698
|
+
resolutions: {
|
|
699
|
+
content?: string | undefined;
|
|
700
|
+
id?: string | undefined;
|
|
701
|
+
kwargs?: Record<string, unknown> | undefined;
|
|
702
|
+
};
|
|
703
|
+
} | null;
|
|
446
704
|
}>;
|
|
447
|
-
readonly
|
|
705
|
+
readonly deleteStateTemplate: (name: string) => Promise<{
|
|
448
706
|
name: string;
|
|
449
707
|
deleted: true;
|
|
450
708
|
}>;
|
|
@@ -622,11 +880,7 @@ export declare const ApiProvider: import("react").Provider<{
|
|
|
622
880
|
path: string;
|
|
623
881
|
deleted: true;
|
|
624
882
|
}>;
|
|
625
|
-
readonly renderTemplate: (
|
|
626
|
-
content?: string;
|
|
627
|
-
template_id?: string;
|
|
628
|
-
kwargs?: Record<string, unknown>;
|
|
629
|
-
}) => Promise<{
|
|
883
|
+
readonly renderTemplate: (text: import("@tai42/api-client").TemplatedText) => Promise<{
|
|
630
884
|
rendered: string;
|
|
631
885
|
}>;
|
|
632
886
|
readonly clearTemplatesCache: () => Promise<{
|
|
@@ -1398,6 +1652,49 @@ export declare const ApiProvider: import("react").Provider<{
|
|
|
1398
1652
|
turns_per_hour_override: number | null;
|
|
1399
1653
|
error_reply_text: string | null;
|
|
1400
1654
|
execution_key_fingerprint: string;
|
|
1655
|
+
state_binding: {
|
|
1656
|
+
states: {
|
|
1657
|
+
state: string;
|
|
1658
|
+
templates: string[];
|
|
1659
|
+
subject_expr: {
|
|
1660
|
+
content?: string | undefined;
|
|
1661
|
+
id?: string | undefined;
|
|
1662
|
+
kwargs?: Record<string, unknown> | undefined;
|
|
1663
|
+
};
|
|
1664
|
+
scope_expr: {
|
|
1665
|
+
content?: string | undefined;
|
|
1666
|
+
id?: string | undefined;
|
|
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
|
+
}[];
|
|
1697
|
+
} | null;
|
|
1401
1698
|
}[];
|
|
1402
1699
|
total: number;
|
|
1403
1700
|
}>;
|
|
@@ -1419,6 +1716,49 @@ export declare const ApiProvider: import("react").Provider<{
|
|
|
1419
1716
|
turns_per_hour_override: number | null;
|
|
1420
1717
|
error_reply_text: string | null;
|
|
1421
1718
|
execution_key_fingerprint: string;
|
|
1719
|
+
state_binding: {
|
|
1720
|
+
states: {
|
|
1721
|
+
state: string;
|
|
1722
|
+
templates: string[];
|
|
1723
|
+
subject_expr: {
|
|
1724
|
+
content?: string | undefined;
|
|
1725
|
+
id?: string | undefined;
|
|
1726
|
+
kwargs?: Record<string, unknown> | undefined;
|
|
1727
|
+
};
|
|
1728
|
+
scope_expr: {
|
|
1729
|
+
content?: string | undefined;
|
|
1730
|
+
id?: string | undefined;
|
|
1731
|
+
kwargs?: Record<string, unknown> | undefined;
|
|
1732
|
+
} | null;
|
|
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
|
+
}[];
|
|
1761
|
+
} | null;
|
|
1422
1762
|
};
|
|
1423
1763
|
callback_secret: string | null;
|
|
1424
1764
|
}>;
|
|
@@ -1648,12 +1988,59 @@ export declare const ApiProvider: import("react").Provider<{
|
|
|
1648
1988
|
kind: string;
|
|
1649
1989
|
key_expr: string;
|
|
1650
1990
|
} | null;
|
|
1651
|
-
condition:
|
|
1652
|
-
|
|
1653
|
-
|
|
1654
|
-
|
|
1655
|
-
|
|
1656
|
-
|
|
1991
|
+
condition: {
|
|
1992
|
+
content?: string | undefined;
|
|
1993
|
+
id?: string | undefined;
|
|
1994
|
+
kwargs?: Record<string, unknown> | undefined;
|
|
1995
|
+
} | null;
|
|
1996
|
+
expr: {
|
|
1997
|
+
content?: string | undefined;
|
|
1998
|
+
id?: string | undefined;
|
|
1999
|
+
kwargs?: Record<string, unknown> | undefined;
|
|
2000
|
+
} | null;
|
|
2001
|
+
state_binding: {
|
|
2002
|
+
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
|
+
input_injections: {
|
|
2016
|
+
template_jq: string | null;
|
|
2017
|
+
jq: {
|
|
2018
|
+
content?: string | undefined;
|
|
2019
|
+
id?: string | undefined;
|
|
2020
|
+
kwargs?: Record<string, unknown> | undefined;
|
|
2021
|
+
} | null;
|
|
2022
|
+
into: string;
|
|
2023
|
+
}[];
|
|
2024
|
+
updates: {
|
|
2025
|
+
template_jq: string | null;
|
|
2026
|
+
jq: {
|
|
2027
|
+
content?: string | undefined;
|
|
2028
|
+
id?: string | undefined;
|
|
2029
|
+
kwargs?: Record<string, unknown> | undefined;
|
|
2030
|
+
} | null;
|
|
2031
|
+
adapter: {
|
|
2032
|
+
content?: string | undefined;
|
|
2033
|
+
id?: string | undefined;
|
|
2034
|
+
kwargs?: Record<string, unknown> | undefined;
|
|
2035
|
+
} | null;
|
|
2036
|
+
op_id: {
|
|
2037
|
+
content?: string | undefined;
|
|
2038
|
+
id?: string | undefined;
|
|
2039
|
+
kwargs?: Record<string, unknown> | undefined;
|
|
2040
|
+
} | null;
|
|
2041
|
+
}[];
|
|
2042
|
+
}[];
|
|
2043
|
+
} | null;
|
|
1657
2044
|
}[];
|
|
1658
2045
|
total: number;
|
|
1659
2046
|
topic_verifiers: Record<string, {
|
|
@@ -1757,9 +2144,11 @@ export declare const ApiProvider: import("react").Provider<{
|
|
|
1757
2144
|
name: string;
|
|
1758
2145
|
description: string;
|
|
1759
2146
|
scopes: string[];
|
|
1760
|
-
condition:
|
|
1761
|
-
|
|
1762
|
-
|
|
2147
|
+
condition: {
|
|
2148
|
+
content?: string | undefined;
|
|
2149
|
+
id?: string | undefined;
|
|
2150
|
+
kwargs?: Record<string, unknown> | undefined;
|
|
2151
|
+
} | null;
|
|
1763
2152
|
base_tier: string | null;
|
|
1764
2153
|
allow_all: boolean;
|
|
1765
2154
|
grants: Record<string, "none" | "read" | "write">;
|
|
@@ -1768,9 +2157,11 @@ export declare const ApiProvider: import("react").Provider<{
|
|
|
1768
2157
|
name: string;
|
|
1769
2158
|
description: string;
|
|
1770
2159
|
scopes: string[];
|
|
1771
|
-
condition:
|
|
1772
|
-
|
|
1773
|
-
|
|
2160
|
+
condition: {
|
|
2161
|
+
content?: string | undefined;
|
|
2162
|
+
id?: string | undefined;
|
|
2163
|
+
kwargs?: Record<string, unknown> | undefined;
|
|
2164
|
+
} | null;
|
|
1774
2165
|
base_tier: string | null;
|
|
1775
2166
|
allow_all: boolean;
|
|
1776
2167
|
grants: Record<string, "none" | "read" | "write">;
|
|
@@ -1779,9 +2170,11 @@ export declare const ApiProvider: import("react").Provider<{
|
|
|
1779
2170
|
name: string;
|
|
1780
2171
|
description: string;
|
|
1781
2172
|
scopes: string[];
|
|
1782
|
-
condition:
|
|
1783
|
-
|
|
1784
|
-
|
|
2173
|
+
condition: {
|
|
2174
|
+
content?: string | undefined;
|
|
2175
|
+
id?: string | undefined;
|
|
2176
|
+
kwargs?: Record<string, unknown> | undefined;
|
|
2177
|
+
} | null;
|
|
1785
2178
|
base_tier: string | null;
|
|
1786
2179
|
allow_all: boolean;
|
|
1787
2180
|
grants: Record<string, "none" | "read" | "write">;
|
|
@@ -1797,9 +2190,11 @@ export declare const ApiProvider: import("react").Provider<{
|
|
|
1797
2190
|
name: string;
|
|
1798
2191
|
description: string;
|
|
1799
2192
|
scopes: string[];
|
|
1800
|
-
condition:
|
|
1801
|
-
|
|
1802
|
-
|
|
2193
|
+
condition: {
|
|
2194
|
+
content?: string | undefined;
|
|
2195
|
+
id?: string | undefined;
|
|
2196
|
+
kwargs?: Record<string, unknown> | undefined;
|
|
2197
|
+
} | null;
|
|
1803
2198
|
base_tier: string | null;
|
|
1804
2199
|
allow_all: boolean;
|
|
1805
2200
|
grants: Record<string, "none" | "read" | "write">;
|
|
@@ -1825,9 +2220,11 @@ export declare const ApiProvider: import("react").Provider<{
|
|
|
1825
2220
|
name: string;
|
|
1826
2221
|
description: string;
|
|
1827
2222
|
scopes: string[];
|
|
1828
|
-
condition:
|
|
1829
|
-
|
|
1830
|
-
|
|
2223
|
+
condition: {
|
|
2224
|
+
content?: string | undefined;
|
|
2225
|
+
id?: string | undefined;
|
|
2226
|
+
kwargs?: Record<string, unknown> | undefined;
|
|
2227
|
+
} | null;
|
|
1831
2228
|
base_tier: string | null;
|
|
1832
2229
|
allow_all: boolean;
|
|
1833
2230
|
grants: Record<string, "none" | "read" | "write">;
|
|
@@ -1837,9 +2234,11 @@ export declare const ApiProvider: import("react").Provider<{
|
|
|
1837
2234
|
description: string;
|
|
1838
2235
|
scopes: string[];
|
|
1839
2236
|
policy_data: unknown;
|
|
1840
|
-
condition?:
|
|
1841
|
-
|
|
1842
|
-
|
|
2237
|
+
condition?: {
|
|
2238
|
+
content?: string | undefined;
|
|
2239
|
+
id?: string | undefined;
|
|
2240
|
+
kwargs?: Record<string, unknown> | undefined;
|
|
2241
|
+
} | null | undefined;
|
|
1843
2242
|
}[]>;
|
|
1844
2243
|
readonly createApiKey: (body: import("@tai42/api-client").ApiKeyBody) => Promise<string>;
|
|
1845
2244
|
readonly editApiKey: (userId: string, body: Omit<import("@tai42/api-client").ApiKeyBody, "user_id">) => Promise<{
|
|
@@ -1934,9 +2333,11 @@ export declare const ApiProvider: import("react").Provider<{
|
|
|
1934
2333
|
body: {
|
|
1935
2334
|
scopes: string[];
|
|
1936
2335
|
policy_data: unknown;
|
|
1937
|
-
condition:
|
|
1938
|
-
|
|
1939
|
-
|
|
2336
|
+
condition: {
|
|
2337
|
+
content?: string | undefined;
|
|
2338
|
+
id?: string | undefined;
|
|
2339
|
+
kwargs?: Record<string, unknown> | undefined;
|
|
2340
|
+
} | null;
|
|
1940
2341
|
};
|
|
1941
2342
|
tags: string[];
|
|
1942
2343
|
created_at: string;
|
|
@@ -2017,6 +2418,7 @@ export declare const ApiProvider: import("react").Provider<{
|
|
|
2017
2418
|
tool_name: string;
|
|
2018
2419
|
tool_kwargs: Record<string, unknown>;
|
|
2019
2420
|
schedule_kwargs: Record<string, unknown>;
|
|
2421
|
+
state_binding?: import("@tai42/api-client").StateBinding | null;
|
|
2020
2422
|
}) => Promise<unknown>;
|
|
2021
2423
|
readonly deleteSchedule: (name: string) => Promise<unknown>;
|
|
2022
2424
|
readonly getObservabilityMetrics: (params?: import("@tai42/api-client").MetricsQuery, signal?: AbortSignal) => Promise<{
|