@collective-intelligence/extensions-sdk-frontend-react 0.1.10 → 0.1.11
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/README.md
CHANGED
|
@@ -243,3 +243,17 @@ consumer React peers, including its loading state and loaded component props.
|
|
|
243
243
|
## Enum value spelling
|
|
244
244
|
|
|
245
245
|
Repository-owned enum values use lower `snake_case`. This includes component kinds, dataset statuses, schema consumer profiles, and hosted contribution identity. Notification enum values retain their existing spelling. External protocol values, including HTTP methods and JSON Schema keywords and formats, retain the protocol spelling.
|
|
246
|
+
|
|
247
|
+
### Query related records
|
|
248
|
+
|
|
249
|
+
The generated `/studio-api` export includes `studioViewDataSearchMembers`. It queries
|
|
250
|
+
`POST /studio/apps/by-slug/{slug}/views/{viewId}/data/{instanceId}/relation-members/search`
|
|
251
|
+
with the published view's authorization scope. Its generated body accepts the relation
|
|
252
|
+
`field`, filters, sort, cursor, limit and include paths. Filters and sort address the
|
|
253
|
+
related schema. Forward and inverse fields use the same operation, including scalar
|
|
254
|
+
relations (zero or one result). Preserve the generated response's pagination envelope.
|
|
255
|
+
|
|
256
|
+
A successful page and its relation IDs are complete. Per-field includes can carry the
|
|
257
|
+
existing truncation marker; paging within nested includes is not supported. A typed
|
|
258
|
+
`KnowledgeReadLimitExceeded` response requires narrowing the query, page, or includes;
|
|
259
|
+
do not silently trim the response or retry the unchanged oversized request.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { dataTagErrorSymbol, dataTagSymbol } from "@tanstack/react-query";
|
|
2
2
|
import { type InfiniteData, type UseMutationOptions } from "@tanstack/react-query";
|
|
3
|
-
import type { StudioAgentRunsGetData, StudioAgentRunsGetError, StudioAgentRunsListData, StudioAgentRunsListError, StudioViewDataGetItemData, StudioViewDataGetItemError, StudioViewDataSearchData, StudioViewDataSearchError, StudioViewDataUpdateItemData, StudioViewDataUpdateItemError, StudioViewDataUpdateItemResponse, StudioWorkflowRunsGetData, StudioWorkflowRunsGetError, StudioWorkflowRunsListData, StudioWorkflowRunsListError } from "../types.gen";
|
|
3
|
+
import type { StudioAgentRunsGetData, StudioAgentRunsGetError, StudioAgentRunsListData, StudioAgentRunsListError, StudioViewDataGetItemData, StudioViewDataGetItemError, StudioViewDataSearchData, StudioViewDataSearchError, StudioViewDataSearchMembersData, StudioViewDataSearchMembersError, StudioViewDataUpdateItemData, StudioViewDataUpdateItemError, StudioViewDataUpdateItemResponse, StudioWorkflowRunsGetData, StudioWorkflowRunsGetError, StudioWorkflowRunsListData, StudioWorkflowRunsListError } from "../types.gen";
|
|
4
4
|
import { type Options } from "../sdk.gen";
|
|
5
5
|
export type QueryKey<TOptions extends Options> = [
|
|
6
6
|
Pick<TOptions, "baseUrl" | "body" | "headers" | "path" | "query"> & {
|
|
@@ -22,6 +22,7 @@ export declare const studioAgentRunsListOptions: (options: Options<StudioAgentRu
|
|
|
22
22
|
completedAt: string | null;
|
|
23
23
|
createdAt: string;
|
|
24
24
|
errorCode: string | null;
|
|
25
|
+
errorMessage: string | null;
|
|
25
26
|
id: string;
|
|
26
27
|
initiator: {
|
|
27
28
|
kind: "user";
|
|
@@ -45,6 +46,7 @@ export declare const studioAgentRunsListOptions: (options: Options<StudioAgentRu
|
|
|
45
46
|
completedAt: string | null;
|
|
46
47
|
createdAt: string;
|
|
47
48
|
errorCode: string | null;
|
|
49
|
+
errorMessage: string | null;
|
|
48
50
|
id: string;
|
|
49
51
|
initiator: {
|
|
50
52
|
kind: "user";
|
|
@@ -73,6 +75,7 @@ export declare const studioAgentRunsListOptions: (options: Options<StudioAgentRu
|
|
|
73
75
|
completedAt: string | null;
|
|
74
76
|
createdAt: string;
|
|
75
77
|
errorCode: string | null;
|
|
78
|
+
errorMessage: string | null;
|
|
76
79
|
id: string;
|
|
77
80
|
initiator: {
|
|
78
81
|
kind: "user";
|
|
@@ -107,6 +110,7 @@ export declare const studioAgentRunsListOptions: (options: Options<StudioAgentRu
|
|
|
107
110
|
completedAt: string | null;
|
|
108
111
|
createdAt: string;
|
|
109
112
|
errorCode: string | null;
|
|
113
|
+
errorMessage: string | null;
|
|
110
114
|
id: string;
|
|
111
115
|
initiator: {
|
|
112
116
|
kind: "user";
|
|
@@ -135,6 +139,7 @@ export declare const studioAgentRunsListInfiniteOptions: (options: Options<Studi
|
|
|
135
139
|
completedAt: string | null;
|
|
136
140
|
createdAt: string;
|
|
137
141
|
errorCode: string | null;
|
|
142
|
+
errorMessage: string | null;
|
|
138
143
|
id: string;
|
|
139
144
|
initiator: {
|
|
140
145
|
kind: "user";
|
|
@@ -158,6 +163,7 @@ export declare const studioAgentRunsListInfiniteOptions: (options: Options<Studi
|
|
|
158
163
|
completedAt: string | null;
|
|
159
164
|
createdAt: string;
|
|
160
165
|
errorCode: string | null;
|
|
166
|
+
errorMessage: string | null;
|
|
161
167
|
id: string;
|
|
162
168
|
initiator: {
|
|
163
169
|
kind: "user";
|
|
@@ -186,6 +192,7 @@ export declare const studioAgentRunsListInfiniteOptions: (options: Options<Studi
|
|
|
186
192
|
completedAt: string | null;
|
|
187
193
|
createdAt: string;
|
|
188
194
|
errorCode: string | null;
|
|
195
|
+
errorMessage: string | null;
|
|
189
196
|
id: string;
|
|
190
197
|
initiator: {
|
|
191
198
|
kind: "user";
|
|
@@ -213,6 +220,7 @@ export declare const studioAgentRunsListInfiniteOptions: (options: Options<Studi
|
|
|
213
220
|
completedAt: string | null;
|
|
214
221
|
createdAt: string;
|
|
215
222
|
errorCode: string | null;
|
|
223
|
+
errorMessage: string | null;
|
|
216
224
|
id: string;
|
|
217
225
|
initiator: {
|
|
218
226
|
kind: "user";
|
|
@@ -243,6 +251,7 @@ export declare const studioAgentRunsListInfiniteOptions: (options: Options<Studi
|
|
|
243
251
|
completedAt: string | null;
|
|
244
252
|
createdAt: string;
|
|
245
253
|
errorCode: string | null;
|
|
254
|
+
errorMessage: string | null;
|
|
246
255
|
id: string;
|
|
247
256
|
initiator: {
|
|
248
257
|
kind: "user";
|
|
@@ -273,6 +282,7 @@ export declare const studioAgentRunsGetOptions: (options: Options<StudioAgentRun
|
|
|
273
282
|
completedAt: string | null;
|
|
274
283
|
createdAt: string;
|
|
275
284
|
errorCode: string | null;
|
|
285
|
+
errorMessage: string | null;
|
|
276
286
|
id: string;
|
|
277
287
|
initiator: {
|
|
278
288
|
kind: "user";
|
|
@@ -287,6 +297,7 @@ export declare const studioAgentRunsGetOptions: (options: Options<StudioAgentRun
|
|
|
287
297
|
completedAt: string | null;
|
|
288
298
|
createdAt: string;
|
|
289
299
|
errorCode: string | null;
|
|
300
|
+
errorMessage: string | null;
|
|
290
301
|
id: string;
|
|
291
302
|
initiator: {
|
|
292
303
|
kind: "user";
|
|
@@ -306,6 +317,7 @@ export declare const studioAgentRunsGetOptions: (options: Options<StudioAgentRun
|
|
|
306
317
|
completedAt: string | null;
|
|
307
318
|
createdAt: string;
|
|
308
319
|
errorCode: string | null;
|
|
320
|
+
errorMessage: string | null;
|
|
309
321
|
id: string;
|
|
310
322
|
initiator: {
|
|
311
323
|
kind: "user";
|
|
@@ -331,6 +343,7 @@ export declare const studioAgentRunsGetOptions: (options: Options<StudioAgentRun
|
|
|
331
343
|
completedAt: string | null;
|
|
332
344
|
createdAt: string;
|
|
333
345
|
errorCode: string | null;
|
|
346
|
+
errorMessage: string | null;
|
|
334
347
|
id: string;
|
|
335
348
|
initiator: {
|
|
336
349
|
kind: "user";
|
|
@@ -343,6 +356,52 @@ export declare const studioAgentRunsGetOptions: (options: Options<StudioAgentRun
|
|
|
343
356
|
[dataTagErrorSymbol]: StudioAgentRunsGetError;
|
|
344
357
|
};
|
|
345
358
|
};
|
|
359
|
+
export declare const studioViewDataSearchMembersQueryKey: (options: Options<StudioViewDataSearchMembersData>) => [Pick<Options<StudioViewDataSearchMembersData>, "baseUrl" | "body" | "headers" | "path" | "query"> & {
|
|
360
|
+
_id: string;
|
|
361
|
+
_infinite?: boolean;
|
|
362
|
+
tags?: ReadonlyArray<string>;
|
|
363
|
+
}];
|
|
364
|
+
export declare const studioViewDataSearchMembersOptions: (options: Options<StudioViewDataSearchMembersData>) => import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<unknown, StudioViewDataSearchMembersError, unknown, [Pick<Options<StudioViewDataSearchMembersData>, "baseUrl" | "body" | "headers" | "path" | "query"> & {
|
|
365
|
+
_id: string;
|
|
366
|
+
_infinite?: boolean;
|
|
367
|
+
tags?: ReadonlyArray<string>;
|
|
368
|
+
}]>, "queryFn"> & {
|
|
369
|
+
queryFn?: import("@tanstack/react-query").QueryFunction<unknown, [Pick<Options<StudioViewDataSearchMembersData>, "baseUrl" | "body" | "headers" | "path" | "query"> & {
|
|
370
|
+
_id: string;
|
|
371
|
+
_infinite?: boolean;
|
|
372
|
+
tags?: ReadonlyArray<string>;
|
|
373
|
+
}], never>;
|
|
374
|
+
} & {
|
|
375
|
+
queryKey: [Pick<Options<StudioViewDataSearchMembersData>, "baseUrl" | "body" | "headers" | "path" | "query"> & {
|
|
376
|
+
_id: string;
|
|
377
|
+
_infinite?: boolean;
|
|
378
|
+
tags?: ReadonlyArray<string>;
|
|
379
|
+
}] & {
|
|
380
|
+
[dataTagSymbol]: unknown;
|
|
381
|
+
[dataTagErrorSymbol]: StudioViewDataSearchMembersError;
|
|
382
|
+
};
|
|
383
|
+
};
|
|
384
|
+
export declare const studioViewDataSearchMembersInfiniteQueryKey: (options: Options<StudioViewDataSearchMembersData>) => QueryKey<Options<StudioViewDataSearchMembersData>>;
|
|
385
|
+
export declare const studioViewDataSearchMembersInfiniteOptions: (options: Options<StudioViewDataSearchMembersData>) => import("@tanstack/react-query").UseInfiniteQueryOptions<unknown, StudioViewDataSearchMembersError, InfiniteData<unknown, unknown>, QueryKey<Options<StudioViewDataSearchMembersData>>, string | Pick<Pick<Options<StudioViewDataSearchMembersData>, "baseUrl" | "body" | "headers" | "path" | "query"> & {
|
|
386
|
+
_id: string;
|
|
387
|
+
_infinite?: boolean;
|
|
388
|
+
tags?: ReadonlyArray<string>;
|
|
389
|
+
}, "body" | "headers" | "path" | "query"> | null> & {
|
|
390
|
+
initialData: InfiniteData<unknown, string | Pick<Pick<Options<StudioViewDataSearchMembersData>, "baseUrl" | "body" | "headers" | "path" | "query"> & {
|
|
391
|
+
_id: string;
|
|
392
|
+
_infinite?: boolean;
|
|
393
|
+
tags?: ReadonlyArray<string>;
|
|
394
|
+
}, "body" | "headers" | "path" | "query"> | null> | (() => InfiniteData<unknown, string | Pick<Pick<Options<StudioViewDataSearchMembersData>, "baseUrl" | "body" | "headers" | "path" | "query"> & {
|
|
395
|
+
_id: string;
|
|
396
|
+
_infinite?: boolean;
|
|
397
|
+
tags?: ReadonlyArray<string>;
|
|
398
|
+
}, "body" | "headers" | "path" | "query"> | null>) | undefined;
|
|
399
|
+
} & {
|
|
400
|
+
queryKey: QueryKey<Options<StudioViewDataSearchMembersData>> & {
|
|
401
|
+
[dataTagSymbol]: InfiniteData<unknown, unknown>;
|
|
402
|
+
[dataTagErrorSymbol]: StudioViewDataSearchMembersError;
|
|
403
|
+
};
|
|
404
|
+
};
|
|
346
405
|
export declare const studioViewDataSearchQueryKey: (options: Options<StudioViewDataSearchData>) => [Pick<Options<StudioViewDataSearchData>, "baseUrl" | "body" | "headers" | "path" | "query"> & {
|
|
347
406
|
_id: string;
|
|
348
407
|
_infinite?: boolean;
|
|
@@ -426,6 +485,7 @@ export declare const studioWorkflowRunsListOptions: (options: Options<StudioWork
|
|
|
426
485
|
completedAt: string | null;
|
|
427
486
|
createdAt: string;
|
|
428
487
|
errorCode: string | null;
|
|
488
|
+
errorMessage: string | null;
|
|
429
489
|
id: string;
|
|
430
490
|
initiator: {
|
|
431
491
|
kind: "user";
|
|
@@ -452,6 +512,7 @@ export declare const studioWorkflowRunsListOptions: (options: Options<StudioWork
|
|
|
452
512
|
completedAt: string | null;
|
|
453
513
|
createdAt: string;
|
|
454
514
|
errorCode: string | null;
|
|
515
|
+
errorMessage: string | null;
|
|
455
516
|
id: string;
|
|
456
517
|
initiator: {
|
|
457
518
|
kind: "user";
|
|
@@ -483,6 +544,7 @@ export declare const studioWorkflowRunsListOptions: (options: Options<StudioWork
|
|
|
483
544
|
completedAt: string | null;
|
|
484
545
|
createdAt: string;
|
|
485
546
|
errorCode: string | null;
|
|
547
|
+
errorMessage: string | null;
|
|
486
548
|
id: string;
|
|
487
549
|
initiator: {
|
|
488
550
|
kind: "user";
|
|
@@ -520,6 +582,7 @@ export declare const studioWorkflowRunsListOptions: (options: Options<StudioWork
|
|
|
520
582
|
completedAt: string | null;
|
|
521
583
|
createdAt: string;
|
|
522
584
|
errorCode: string | null;
|
|
585
|
+
errorMessage: string | null;
|
|
523
586
|
id: string;
|
|
524
587
|
initiator: {
|
|
525
588
|
kind: "user";
|
|
@@ -551,6 +614,7 @@ export declare const studioWorkflowRunsListInfiniteOptions: (options: Options<St
|
|
|
551
614
|
completedAt: string | null;
|
|
552
615
|
createdAt: string;
|
|
553
616
|
errorCode: string | null;
|
|
617
|
+
errorMessage: string | null;
|
|
554
618
|
id: string;
|
|
555
619
|
initiator: {
|
|
556
620
|
kind: "user";
|
|
@@ -577,6 +641,7 @@ export declare const studioWorkflowRunsListInfiniteOptions: (options: Options<St
|
|
|
577
641
|
completedAt: string | null;
|
|
578
642
|
createdAt: string;
|
|
579
643
|
errorCode: string | null;
|
|
644
|
+
errorMessage: string | null;
|
|
580
645
|
id: string;
|
|
581
646
|
initiator: {
|
|
582
647
|
kind: "user";
|
|
@@ -608,6 +673,7 @@ export declare const studioWorkflowRunsListInfiniteOptions: (options: Options<St
|
|
|
608
673
|
completedAt: string | null;
|
|
609
674
|
createdAt: string;
|
|
610
675
|
errorCode: string | null;
|
|
676
|
+
errorMessage: string | null;
|
|
611
677
|
id: string;
|
|
612
678
|
initiator: {
|
|
613
679
|
kind: "user";
|
|
@@ -638,6 +704,7 @@ export declare const studioWorkflowRunsListInfiniteOptions: (options: Options<St
|
|
|
638
704
|
completedAt: string | null;
|
|
639
705
|
createdAt: string;
|
|
640
706
|
errorCode: string | null;
|
|
707
|
+
errorMessage: string | null;
|
|
641
708
|
id: string;
|
|
642
709
|
initiator: {
|
|
643
710
|
kind: "user";
|
|
@@ -671,6 +738,7 @@ export declare const studioWorkflowRunsListInfiniteOptions: (options: Options<St
|
|
|
671
738
|
completedAt: string | null;
|
|
672
739
|
createdAt: string;
|
|
673
740
|
errorCode: string | null;
|
|
741
|
+
errorMessage: string | null;
|
|
674
742
|
id: string;
|
|
675
743
|
initiator: {
|
|
676
744
|
kind: "user";
|
|
@@ -704,6 +772,7 @@ export declare const studioWorkflowRunsGetOptions: (options: Options<StudioWorkf
|
|
|
704
772
|
completedAt: string | null;
|
|
705
773
|
createdAt: string;
|
|
706
774
|
errorCode: string | null;
|
|
775
|
+
errorMessage: string | null;
|
|
707
776
|
id: string;
|
|
708
777
|
initiator: {
|
|
709
778
|
kind: "user";
|
|
@@ -720,7 +789,13 @@ export declare const studioWorkflowRunsGetOptions: (options: Options<StudioWorkf
|
|
|
720
789
|
steps: Array<{
|
|
721
790
|
attempt: number;
|
|
722
791
|
completedAt: string | null;
|
|
792
|
+
durationMs: number | null;
|
|
793
|
+
error: {
|
|
794
|
+
code: string | null;
|
|
795
|
+
message: string;
|
|
796
|
+
} | null;
|
|
723
797
|
nodeId: string;
|
|
798
|
+
nodeType: string | null;
|
|
724
799
|
startedAt: string | null;
|
|
725
800
|
status: string;
|
|
726
801
|
}>;
|
|
@@ -728,6 +803,7 @@ export declare const studioWorkflowRunsGetOptions: (options: Options<StudioWorkf
|
|
|
728
803
|
completedAt: string | null;
|
|
729
804
|
createdAt: string;
|
|
730
805
|
errorCode: string | null;
|
|
806
|
+
errorMessage: string | null;
|
|
731
807
|
id: string;
|
|
732
808
|
initiator: {
|
|
733
809
|
kind: "user";
|
|
@@ -744,7 +820,13 @@ export declare const studioWorkflowRunsGetOptions: (options: Options<StudioWorkf
|
|
|
744
820
|
steps: Array<{
|
|
745
821
|
attempt: number;
|
|
746
822
|
completedAt: string | null;
|
|
823
|
+
durationMs: number | null;
|
|
824
|
+
error: {
|
|
825
|
+
code: string | null;
|
|
826
|
+
message: string;
|
|
827
|
+
} | null;
|
|
747
828
|
nodeId: string;
|
|
829
|
+
nodeType: string | null;
|
|
748
830
|
startedAt: string | null;
|
|
749
831
|
status: string;
|
|
750
832
|
}>;
|
|
@@ -757,6 +839,7 @@ export declare const studioWorkflowRunsGetOptions: (options: Options<StudioWorkf
|
|
|
757
839
|
completedAt: string | null;
|
|
758
840
|
createdAt: string;
|
|
759
841
|
errorCode: string | null;
|
|
842
|
+
errorMessage: string | null;
|
|
760
843
|
id: string;
|
|
761
844
|
initiator: {
|
|
762
845
|
kind: "user";
|
|
@@ -773,7 +856,13 @@ export declare const studioWorkflowRunsGetOptions: (options: Options<StudioWorkf
|
|
|
773
856
|
steps: Array<{
|
|
774
857
|
attempt: number;
|
|
775
858
|
completedAt: string | null;
|
|
859
|
+
durationMs: number | null;
|
|
860
|
+
error: {
|
|
861
|
+
code: string | null;
|
|
862
|
+
message: string;
|
|
863
|
+
} | null;
|
|
776
864
|
nodeId: string;
|
|
865
|
+
nodeType: string | null;
|
|
777
866
|
startedAt: string | null;
|
|
778
867
|
status: string;
|
|
779
868
|
}>;
|
|
@@ -792,6 +881,7 @@ export declare const studioWorkflowRunsGetOptions: (options: Options<StudioWorkf
|
|
|
792
881
|
completedAt: string | null;
|
|
793
882
|
createdAt: string;
|
|
794
883
|
errorCode: string | null;
|
|
884
|
+
errorMessage: string | null;
|
|
795
885
|
id: string;
|
|
796
886
|
initiator: {
|
|
797
887
|
kind: "user";
|
|
@@ -808,7 +898,13 @@ export declare const studioWorkflowRunsGetOptions: (options: Options<StudioWorkf
|
|
|
808
898
|
steps: Array<{
|
|
809
899
|
attempt: number;
|
|
810
900
|
completedAt: string | null;
|
|
901
|
+
durationMs: number | null;
|
|
902
|
+
error: {
|
|
903
|
+
code: string | null;
|
|
904
|
+
message: string;
|
|
905
|
+
} | null;
|
|
811
906
|
nodeId: string;
|
|
907
|
+
nodeType: string | null;
|
|
812
908
|
startedAt: string | null;
|
|
813
909
|
status: string;
|
|
814
910
|
}>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { type QueryKey, studioAgentRunsGetOptions, studioAgentRunsGetQueryKey, studioAgentRunsListInfiniteOptions, studioAgentRunsListInfiniteQueryKey, studioAgentRunsListOptions, studioAgentRunsListQueryKey, studioViewDataGetItemOptions, studioViewDataGetItemQueryKey, studioViewDataSearchInfiniteOptions, studioViewDataSearchInfiniteQueryKey, studioViewDataSearchOptions, studioViewDataSearchQueryKey, studioViewDataUpdateItemMutation, studioWorkflowRunsGetOptions, studioWorkflowRunsGetQueryKey, studioWorkflowRunsListInfiniteOptions, studioWorkflowRunsListInfiniteQueryKey, studioWorkflowRunsListOptions, studioWorkflowRunsListQueryKey } from "./@tanstack/react-query.gen";
|
|
1
|
+
export { type QueryKey, studioAgentRunsGetOptions, studioAgentRunsGetQueryKey, studioAgentRunsListInfiniteOptions, studioAgentRunsListInfiniteQueryKey, studioAgentRunsListOptions, studioAgentRunsListQueryKey, studioViewDataGetItemOptions, studioViewDataGetItemQueryKey, studioViewDataSearchInfiniteOptions, studioViewDataSearchInfiniteQueryKey, studioViewDataSearchMembersInfiniteOptions, studioViewDataSearchMembersInfiniteQueryKey, studioViewDataSearchMembersOptions, studioViewDataSearchMembersQueryKey, studioViewDataSearchOptions, studioViewDataSearchQueryKey, studioViewDataUpdateItemMutation, studioWorkflowRunsGetOptions, studioWorkflowRunsGetQueryKey, studioWorkflowRunsListInfiniteOptions, studioWorkflowRunsListInfiniteQueryKey, studioWorkflowRunsListOptions, studioWorkflowRunsListQueryKey } from "./@tanstack/react-query.gen";
|
|
2
2
|
export { client, type CreateClientConfig } from "./client.gen";
|
|
3
|
-
export { type Options, studioAgentRunsGet, studioAgentRunsList, studioViewDataGetItem, studioViewDataSearch, studioViewDataUpdateItem, studioWorkflowRunsGet, studioWorkflowRunsList } from "./sdk.gen";
|
|
4
|
-
export type { ClientOptions, EffectHttpApiErrorBadRequestEncoded, EffectHttpApiErrorForbiddenEncoded, EffectHttpApiErrorInternalServerErrorEncoded, EffectHttpApiErrorNotFoundEncoded, EffectHttpApiErrorUnauthorizedEncoded, EntityFileFieldConflictDiagnosticEncoded, EntityFileFieldDiagnosticEncoded, EntityRelationFieldDiagnosticEncoded, EntityUniqueFieldConflictDiagnosticEncoded, EntityValueDiagnosticEncoded, InvalidIncludePathEncoded, StudioAgentRunsGetData, StudioAgentRunsGetError, StudioAgentRunsGetErrors, StudioAgentRunsGetResponse, StudioAgentRunsGetResponses, StudioAgentRunsListData, StudioAgentRunsListError, StudioAgentRunsListErrors, StudioAgentRunsListResponse, StudioAgentRunsListResponses, StudioViewDataGetItemData, StudioViewDataGetItemError, StudioViewDataGetItemErrors, StudioViewDataGetItemResponses, StudioViewDataSearchData, StudioViewDataSearchError, StudioViewDataSearchErrors, StudioViewDataSearchResponses, StudioViewDataUpdateItemData, StudioViewDataUpdateItemError, StudioViewDataUpdateItemErrors, StudioViewDataUpdateItemResponse, StudioViewDataUpdateItemResponses, StudioWorkflowRunsGetData, StudioWorkflowRunsGetError, StudioWorkflowRunsGetErrors, StudioWorkflowRunsGetResponse, StudioWorkflowRunsGetResponses, StudioWorkflowRunsListData, StudioWorkflowRunsListError, StudioWorkflowRunsListErrors, StudioWorkflowRunsListResponse, StudioWorkflowRunsListResponses, Suspend2 } from "./types.gen";
|
|
3
|
+
export { type Options, studioAgentRunsGet, studioAgentRunsList, studioViewDataGetItem, studioViewDataSearch, studioViewDataSearchMembers, studioViewDataUpdateItem, studioWorkflowRunsGet, studioWorkflowRunsList } from "./sdk.gen";
|
|
4
|
+
export type { ClientOptions, EffectHttpApiErrorBadRequestEncoded, EffectHttpApiErrorForbiddenEncoded, EffectHttpApiErrorInternalServerErrorEncoded, EffectHttpApiErrorNotFoundEncoded, EffectHttpApiErrorUnauthorizedEncoded, EntityFileFieldConflictDiagnosticEncoded, EntityFileFieldDiagnosticEncoded, EntityRelationFieldDiagnosticEncoded, EntityUniqueFieldConflictDiagnosticEncoded, EntityValueDiagnosticEncoded, InvalidIncludePathEncoded, KnowledgeReadLimitExceededEncoded, StudioAgentRunsGetData, StudioAgentRunsGetError, StudioAgentRunsGetErrors, StudioAgentRunsGetResponse, StudioAgentRunsGetResponses, StudioAgentRunsListData, StudioAgentRunsListError, StudioAgentRunsListErrors, StudioAgentRunsListResponse, StudioAgentRunsListResponses, StudioViewDataGetItemData, StudioViewDataGetItemError, StudioViewDataGetItemErrors, StudioViewDataGetItemResponses, StudioViewDataSearchData, StudioViewDataSearchError, StudioViewDataSearchErrors, StudioViewDataSearchMembersData, StudioViewDataSearchMembersError, StudioViewDataSearchMembersErrors, StudioViewDataSearchMembersResponses, StudioViewDataSearchResponses, StudioViewDataUpdateItemData, StudioViewDataUpdateItemError, StudioViewDataUpdateItemErrors, StudioViewDataUpdateItemResponse, StudioViewDataUpdateItemResponses, StudioWorkflowRunsGetData, StudioWorkflowRunsGetError, StudioWorkflowRunsGetErrors, StudioWorkflowRunsGetResponse, StudioWorkflowRunsGetResponses, StudioWorkflowRunsListData, StudioWorkflowRunsListError, StudioWorkflowRunsListErrors, StudioWorkflowRunsListResponse, StudioWorkflowRunsListResponses, Suspend2 } from "./types.gen";
|
package/dist/studio-api/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import{infiniteQueryOptions as
|
|
2
|
-
`);let
|
|
1
|
+
import{infiniteQueryOptions as P,queryOptions as x}from"@tanstack/react-query";function ne({onRequest:e,onSseError:t,onSseEvent:r,responseTransformer:n,responseValidator:o,sseDefaultRetryDelay:d,sseMaxRetryAttempts:s,sseMaxRetryDelay:a,sseSleepFn:u,url:S,...c}){let i,w=u??((O)=>new Promise((p)=>setTimeout(p,O)));return{stream:async function*(){let O=d??3000,p=0,h=c.signal??new AbortController().signal;while(!0){if(h.aborted)break;p++;let q=c.headers instanceof Headers?c.headers:new Headers(c.headers);if(i!==void 0)q.set("Last-Event-ID",i);try{let b={redirect:"follow",...c,body:c.serializedBody??null,headers:q,signal:h},E=new Request(S,b);if(e)E=await e(S,b);let l=await(c.fetch??globalThis.fetch)(E);if(!l.ok)throw Error(`SSE failed: ${l.status} ${l.statusText}`);if(!l.body)throw Error("No body in SSE response");let f=l.body.pipeThrough(new TextDecoderStream).getReader(),y="",Y=()=>{try{f.cancel()}catch{}};h.addEventListener("abort",Y);try{while(!0){let{done:Oe,value:be}=await f.read();if(Oe)break;y+=be,y=y.replace(/\r\n?/g,`
|
|
2
|
+
`);let Z=y.split(`
|
|
3
3
|
|
|
4
|
-
`);
|
|
5
|
-
`),L=[],
|
|
6
|
-
`);try{k=JSON.parse(g),ee=!0}catch{k=g}}if(ee){if(o)await o(k);if(n)k=await n(k)}if(r?.({data:k,event:Z,id:s,retry:O}),L.length)yield k}}}finally{R.removeEventListener("abort",X),y.releaseLock()}break}catch(b){if(t?.(b),i!==void 0&&p>=i)break;let E=Math.min(O*2**(p-1),a??30000);await w(E)}}}()}}var be=(e)=>{switch(e){case"label":return".";case"matrix":return";";case"simple":return",";default:return"&"}},Ee=(e)=>{switch(e){case"form":return",";case"pipeDelimited":return"|";case"spaceDelimited":return"%20";default:return","}},ke=(e)=>{switch(e){case"label":return".";case"matrix":return";";case"simple":return",";default:return"&"}},C=({allowReserved:e,explode:t,name:r,style:n,value:o})=>{if(!t){let a=(e?o:o.map((u)=>encodeURIComponent(u))).join(Ee(n));switch(n){case"label":return`.${a}`;case"matrix":return`;${r}=${a}`;case"simple":return a;default:return`${r}=${a}`}}let d=be(n),i=o.map((a)=>{if(n==="label"||n==="simple")return e?a:encodeURIComponent(a);return I({allowReserved:e,name:r,value:a})}).join(d);return n==="label"||n==="matrix"?d+i:i},I=({allowReserved:e,name:t,value:r})=>{if(r===void 0||r===null)return"";if(typeof r==="object")throw Error("Deeply-nested arrays/objects aren’t supported. Provide your own `querySerializer()` to handle these.");return`${t}=${e?r:encodeURIComponent(r)}`},z=({allowReserved:e,explode:t,name:r,style:n,value:o,valueOnly:d})=>{if(o instanceof Date)return d?o.toISOString():`${r}=${o.toISOString()}`;if(n!=="deepObject"&&!t){let u=[];Object.entries(o).forEach(([l,s])=>{u=[...u,l,e?s:encodeURIComponent(s)]});let S=u.join(",");switch(n){case"form":return`${r}=${S}`;case"label":return`.${S}`;case"matrix":return`;${r}=${S}`;default:return S}}let i=ke(n),a=Object.entries(o).map(([u,S])=>I({allowReserved:e,name:n==="deepObject"?`${r}[${u}]`:u,value:S})).join(i);return n==="label"||n==="matrix"?i+a:a};var xe=/\{[^{}]+\}/g,Ae=({path:e,url:t})=>{let r=t,n=t.match(xe);if(n)for(let o of n){let d=!1,i=o.substring(1,o.length-1),a="simple";if(i.endsWith("*"))d=!0,i=i.substring(0,i.length-1);if(i.startsWith("."))i=i.substring(1),a="label";else if(i.startsWith(";"))i=i.substring(1),a="matrix";let u=e[i];if(u===void 0||u===null)continue;if(Array.isArray(u)){r=r.replace(o,C({explode:d,name:i,style:a,value:u}));continue}if(typeof u==="object"){r=r.replace(o,z({explode:d,name:i,style:a,value:u,valueOnly:!0}));continue}if(a==="matrix"){r=r.replace(o,`;${I({name:i,value:u})}`);continue}let S=encodeURIComponent(a==="label"?`.${u}`:u);r=r.replace(o,S)}return r},ne=({baseUrl:e,path:t,query:r,querySerializer:n,url:o})=>{let d=o.startsWith("/")?o:`/${o}`,i=(e??"")+d;if(t)i=Ae({path:t,url:i});let a=r?n(r):"";if(a.startsWith("?"))a=a.substring(1);if(a)i+=`?${a}`;return i};function Q(e){let t=e.body!==void 0;if(t&&e.bodySerializer){if("serializedBody"in e)return e.serializedBody!==void 0&&e.serializedBody!==""?e.serializedBody:null;return e.body!==""?e.body:null}if(t)return e.body;return}var oe=async(e,t)=>{let r=typeof t==="function"?await t(e):t;if(!r)return;if(e.scheme==="bearer")return`Bearer ${r}`;if(e.scheme==="basic")return`Basic ${btoa(r)}`;return r};var se={bodySerializer:(e)=>JSON.stringify(e,(t,r)=>typeof r==="bigint"?r.toString():r)};var ie=({parameters:e={},...t}={})=>(n)=>{let o=[];if(n&&typeof n==="object")for(let d in n){let i=n[d];if(i===void 0||i===null)continue;let a=e[d]||t;if(Array.isArray(i)){let u=C({allowReserved:a.allowReserved,explode:!0,name:d,style:"form",value:i,...a.array});if(u)o.push(u)}else if(typeof i==="object"){let u=z({allowReserved:a.allowReserved,explode:!0,name:d,style:"deepObject",value:i,...a.object});if(u)o.push(u)}else{let u=I({allowReserved:a.allowReserved,name:d,value:i});if(u)o.push(u)}}return o.join("&")},ae=(e)=>{if(!e)return"stream";let t=e.split(";")[0]?.trim();if(!t)return;if(t.startsWith("application/json")||t.endsWith("+json"))return"json";if(t==="multipart/form-data")return"formData";if(["application/","audio/","image/","video/"].some((r)=>t.startsWith(r)))return"blob";if(t.startsWith("text/"))return"text";return},Ie=(e,t)=>{if(!t)return!1;if(e.headers.has(t)||e.query?.[t]||e.headers.get("Cookie")?.includes(`${t}=`))return!0;return!1},ue=async({security:e,...t})=>{for(let r of e){if(Ie(t,r.name))continue;let n=await oe(r,t.auth);if(!n)continue;let o=r.name??"Authorization";switch(r.in){case"query":if(!t.query)t.query={};t.query[o]=n;break;case"cookie":t.headers.append("Cookie",`${o}=${n}`);break;case"header":default:t.headers.set(o,n);break}}},K=(e)=>ne({baseUrl:e.baseUrl,path:e.path,query:e.query,querySerializer:typeof e.querySerializer==="function"?e.querySerializer:ie(e.querySerializer),url:e.url}),v=(e,t)=>{let r={...e,...t};if(r.baseUrl?.endsWith("/"))r.baseUrl=r.baseUrl.substring(0,r.baseUrl.length-1);return r.headers=G(e.headers,t.headers),r},qe=(e)=>{let t=[];return e.forEach((r,n)=>{t.push([n,r])}),t},G=(...e)=>{let t=new Headers;for(let r of e){if(!r)continue;let n=r instanceof Headers?qe(r):Object.entries(r);for(let[o,d]of n)if(d===null)t.delete(o);else if(Array.isArray(d))for(let i of d)t.append(o,i);else if(d!==void 0)t.set(o,typeof d==="object"?JSON.stringify(d):d)}return t};class W{fns=[];clear(){this.fns=[]}eject(e){let t=this.getInterceptorIndex(e);if(this.fns[t])this.fns[t]=null}exists(e){let t=this.getInterceptorIndex(e);return Boolean(this.fns[t])}getInterceptorIndex(e){if(typeof e==="number")return this.fns[e]?e:-1;return this.fns.indexOf(e)}update(e,t){let r=this.getInterceptorIndex(e);if(this.fns[r])return this.fns[r]=t,e;return!1}use(e){return this.fns.push(e),this.fns.length-1}}var de=()=>({error:new W,request:new W,response:new W}),Te=ie({allowReserved:!1,array:{explode:!0,style:"form"},object:{explode:!0,style:"deepObject"}}),Ve={"Content-Type":"application/json"},V=(e={})=>({...se,headers:Ve,parseAs:"auto",querySerializer:Te,...e});var B=(e={})=>{let t=v(V(),e),r=()=>({...t}),n=(l)=>(t=v(t,l),r()),o=de(),d=async(l)=>{let s={...t,...l,fetch:l.fetch??t.fetch??globalThis.fetch,headers:G(t.headers,l.headers),serializedBody:void 0};if(s.security)await ue({...s,security:s.security});if(s.requestValidator)await s.requestValidator(s);if(s.body!==void 0&&s.bodySerializer)s.serializedBody=s.bodySerializer(s.body);if(s.body===void 0||s.serializedBody==="")s.headers.delete("Content-Type");let w=s,x=K(w);return{opts:w,url:x}},i=async(l)=>{let{opts:s,url:w}=await d(l),x={redirect:"follow",...s,body:Q(s)},h=new Request(w,x);for(let c of o.request.fns)if(c)h=await c(h,s);let O=s.fetch,p;try{p=await O(h)}catch(c){let y=c;for(let f of o.error.fns)if(f)y=await f(c,void 0,h,s);if(y=y||{},s.throwOnError)throw y;return s.responseStyle==="data"?void 0:{error:y,request:h,response:void 0}}for(let c of o.response.fns)if(c)p=await c(p,h,s);let R={request:h,response:p};if(p.ok){let c=(s.parseAs==="auto"?ae(p.headers.get("Content-Type")):s.parseAs)??"json";if(p.status===204||p.headers.get("Content-Length")==="0"){let f;switch(c){case"arrayBuffer":case"blob":case"text":f=await p[c]();break;case"formData":f=new FormData;break;case"stream":f=p.body;break;case"json":default:f={};break}return s.responseStyle==="data"?f:{data:f,...R}}let y;switch(c){case"arrayBuffer":case"blob":case"formData":case"text":y=await p[c]();break;case"json":{let f=await p.text();y=f?JSON.parse(f):{};break}case"stream":return s.responseStyle==="data"?p.body:{data:p.body,...R}}if(c==="json"){if(s.responseValidator)await s.responseValidator(y);if(s.responseTransformer)y=await s.responseTransformer(y)}return s.responseStyle==="data"?y:{data:y,...R}}let T=await p.text(),b;try{b=JSON.parse(T)}catch{}let E=b??T,A=E;for(let c of o.error.fns)if(c)A=await c(E,p,h,s);if(A=A||{},s.throwOnError)throw A;return s.responseStyle==="data"?void 0:{error:A,...R}},a=(l)=>(s)=>i({...s,method:l}),u=(l)=>async(s)=>{let{opts:w,url:x}=await d(s);return re({...w,body:w.body,headers:w.headers,method:l,onRequest:async(h,O)=>{let p=new Request(h,O);for(let R of o.request.fns)if(R)p=await R(p,w);return p},serializedBody:Q(w),url:x})};return{buildUrl:(l)=>K({...t,...l}),connect:a("CONNECT"),delete:a("DELETE"),get:a("GET"),getConfig:r,head:a("HEAD"),interceptors:o,options:a("OPTIONS"),patch:a("PATCH"),post:a("POST"),put:a("PUT"),request:i,setConfig:n,sse:{connect:u("CONNECT"),delete:u("DELETE"),get:u("GET"),head:u("HEAD"),options:u("OPTIONS"),patch:u("PATCH"),post:u("POST"),put:u("PUT"),trace:u("TRACE")},trace:a("TRACE")}};var m=B(V());var U=(e)=>(e.client??m).get({security:[{scheme:"bearer",type:"http"}],url:"/studio/agent-runs",...e}),H=(e)=>(e.client??m).get({security:[{scheme:"bearer",type:"http"}],url:"/studio/agent-runs/{runId}",...e}),j=(e)=>(e.client??m).post({security:[{scheme:"bearer",type:"http"}],url:"/studio/apps/by-slug/{slug}/views/{viewId}/data/search",...e,headers:{"Content-Type":"application/json",...e.headers}}),F=(e)=>(e.client??m).get({security:[{scheme:"bearer",type:"http"}],url:"/studio/apps/by-slug/{slug}/views/{viewId}/data/{instanceId}",...e}),N=(e)=>(e.client??m).patch({security:[{scheme:"bearer",type:"http"}],url:"/studio/apps/by-slug/{slug}/views/{viewId}/data/{instanceId}",...e,headers:{"Content-Type":"application/json",...e.headers}}),P=(e)=>(e.client??m).get({security:[{scheme:"bearer",type:"http"}],url:"/studio/workflow-runs",...e}),M=(e)=>(e.client??m).get({security:[{scheme:"bearer",type:"http"}],url:"/studio/workflow-runs/{runId}",...e});var D=(e,t,r,n)=>{let o={_id:e,baseUrl:t?.baseUrl||(t?.client??m).getConfig().baseUrl};if(r)o._infinite=r;if(n)o.tags=n;if(t?.body)o.body=t.body;if(t?.headers)o.headers=t.headers;if(t?.path)o.path=t.path;if(t?.query)o.query=t.query;return[o]},pe=(e)=>D("studioAgentRunsList",e),Le=(e)=>q({queryFn:async({queryKey:t,signal:r})=>{let{data:n}=await U({...e,...t[0],signal:r,throwOnError:!0});return n},queryKey:pe(e)}),J=(e,t)=>{let r={...e[0]};if(t.body)r.body={...e[0].body,...t.body};if(t.headers)r.headers={...e[0].headers,...t.headers};if(t.path)r.path={...e[0].path,...t.path};if(t.query)r.query={...e[0].query,...t.query};return r},le=(e)=>D("studioAgentRunsList",e,!0),Ce=(e)=>_({queryFn:async({pageParam:t,queryKey:r,signal:n})=>{let d=J(r,typeof t==="object"?t:{query:{page:t}}),{data:i}=await U({...e,...d,signal:n,throwOnError:!0});return i},queryKey:le(e)}),ce=(e)=>D("studioAgentRunsGet",e),ze=(e)=>q({queryFn:async({queryKey:t,signal:r})=>{let{data:n}=await H({...e,...t[0],signal:r,throwOnError:!0});return n},queryKey:ce(e)}),fe=(e)=>D("studioViewDataSearch",e),We=(e)=>q({queryFn:async({queryKey:t,signal:r})=>{let{data:n}=await j({...e,...t[0],signal:r,throwOnError:!0});return n},queryKey:fe(e)}),ye=(e)=>D("studioViewDataSearch",e,!0),Ge=(e)=>_({queryFn:async({pageParam:t,queryKey:r,signal:n})=>{let d=J(r,typeof t==="object"?t:{body:{cursor:t}}),{data:i}=await j({...e,...d,signal:n,throwOnError:!0});return i},queryKey:ye(e)}),Se=(e)=>D("studioViewDataGetItem",e),Ue=(e)=>q({queryFn:async({queryKey:t,signal:r})=>{let{data:n}=await F({...e,...t[0],signal:r,throwOnError:!0});return n},queryKey:Se(e)}),je=(e)=>({mutationFn:async(r)=>{let{data:n}=await N({...e,...r,throwOnError:!0});return n}}),we=(e)=>D("studioWorkflowRunsList",e),Pe=(e)=>q({queryFn:async({queryKey:t,signal:r})=>{let{data:n}=await P({...e,...t[0],signal:r,throwOnError:!0});return n},queryKey:we(e)}),Re=(e)=>D("studioWorkflowRunsList",e,!0),Qe=(e)=>_({queryFn:async({pageParam:t,queryKey:r,signal:n})=>{let d=J(r,typeof t==="object"?t:{query:{page:t}}),{data:i}=await P({...e,...d,signal:n,throwOnError:!0});return i},queryKey:Re(e)}),he=(e)=>D("studioWorkflowRunsGet",e),Ke=(e)=>q({queryFn:async({queryKey:t,signal:r})=>{let{data:n}=await M({...e,...t[0],signal:r,throwOnError:!0});return n},queryKey:he(e)});export{m as client,H as studioAgentRunsGet,ze as studioAgentRunsGetOptions,ce as studioAgentRunsGetQueryKey,U as studioAgentRunsList,Ce as studioAgentRunsListInfiniteOptions,le as studioAgentRunsListInfiniteQueryKey,Le as studioAgentRunsListOptions,pe as studioAgentRunsListQueryKey,F as studioViewDataGetItem,Ue as studioViewDataGetItemOptions,Se as studioViewDataGetItemQueryKey,j as studioViewDataSearch,Ge as studioViewDataSearchInfiniteOptions,ye as studioViewDataSearchInfiniteQueryKey,We as studioViewDataSearchOptions,fe as studioViewDataSearchQueryKey,N as studioViewDataUpdateItem,je as studioViewDataUpdateItemMutation,M as studioWorkflowRunsGet,Ke as studioWorkflowRunsGetOptions,he as studioWorkflowRunsGetQueryKey,P as studioWorkflowRunsList,Qe as studioWorkflowRunsListInfiniteOptions,Re as studioWorkflowRunsListInfiniteQueryKey,Pe as studioWorkflowRunsListOptions,we as studioWorkflowRunsListQueryKey};
|
|
4
|
+
`);y=Z.pop()??"";for(let Ee of Z){let ke=Ee.split(`
|
|
5
|
+
`),L=[],ee;for(let g of ke)if(g.startsWith("data:"))L.push(g.replace(/^data:\s*/,""));else if(g.startsWith("event:"))ee=g.replace(/^event:\s*/,"");else if(g.startsWith("id:"))i=g.replace(/^id:\s*/,"");else if(g.startsWith("retry:")){let re=Number.parseInt(g.replace(/^retry:\s*/,""),10);if(!Number.isNaN(re))O=re}let k,te=!1;if(L.length){let g=L.join(`
|
|
6
|
+
`);try{k=JSON.parse(g),te=!0}catch{k=g}}if(te){if(o)await o(k);if(n)k=await n(k)}if(r?.({data:k,event:ee,id:i,retry:O}),L.length)yield k}}}finally{h.removeEventListener("abort",Y),f.releaseLock()}break}catch(b){if(t?.(b),s!==void 0&&p>=s)break;let E=Math.min(O*2**(p-1),a??30000);await w(E)}}}()}}var xe=(e)=>{switch(e){case"label":return".";case"matrix":return";";case"simple":return",";default:return"&"}},Ae=(e)=>{switch(e){case"form":return",";case"pipeDelimited":return"|";case"spaceDelimited":return"%20";default:return","}},Ie=(e)=>{switch(e){case"label":return".";case"matrix":return";";case"simple":return",";default:return"&"}},C=({allowReserved:e,explode:t,name:r,style:n,value:o})=>{if(!t){let a=(e?o:o.map((u)=>encodeURIComponent(u))).join(Ae(n));switch(n){case"label":return`.${a}`;case"matrix":return`;${r}=${a}`;case"simple":return a;default:return`${r}=${a}`}}let d=xe(n),s=o.map((a)=>{if(n==="label"||n==="simple")return e?a:encodeURIComponent(a);return V({allowReserved:e,name:r,value:a})}).join(d);return n==="label"||n==="matrix"?d+s:s},V=({allowReserved:e,name:t,value:r})=>{if(r===void 0||r===null)return"";if(typeof r==="object")throw Error("Deeply-nested arrays/objects aren’t supported. Provide your own `querySerializer()` to handle these.");return`${t}=${e?r:encodeURIComponent(r)}`},z=({allowReserved:e,explode:t,name:r,style:n,value:o,valueOnly:d})=>{if(o instanceof Date)return d?o.toISOString():`${r}=${o.toISOString()}`;if(n!=="deepObject"&&!t){let u=[];Object.entries(o).forEach(([c,i])=>{u=[...u,c,e?i:encodeURIComponent(i)]});let S=u.join(",");switch(n){case"form":return`${r}=${S}`;case"label":return`.${S}`;case"matrix":return`;${r}=${S}`;default:return S}}let s=Ie(n),a=Object.entries(o).map(([u,S])=>V({allowReserved:e,name:n==="deepObject"?`${r}[${u}]`:u,value:S})).join(s);return n==="label"||n==="matrix"?s+a:a};var Ve=/\{[^{}]+\}/g,qe=({path:e,url:t})=>{let r=t,n=t.match(Ve);if(n)for(let o of n){let d=!1,s=o.substring(1,o.length-1),a="simple";if(s.endsWith("*"))d=!0,s=s.substring(0,s.length-1);if(s.startsWith("."))s=s.substring(1),a="label";else if(s.startsWith(";"))s=s.substring(1),a="matrix";let u=e[s];if(u===void 0||u===null)continue;if(Array.isArray(u)){r=r.replace(o,C({explode:d,name:s,style:a,value:u}));continue}if(typeof u==="object"){r=r.replace(o,z({explode:d,name:s,style:a,value:u,valueOnly:!0}));continue}if(a==="matrix"){r=r.replace(o,`;${V({name:s,value:u})}`);continue}let S=encodeURIComponent(a==="label"?`.${u}`:u);r=r.replace(o,S)}return r},oe=({baseUrl:e,path:t,query:r,querySerializer:n,url:o})=>{let d=o.startsWith("/")?o:`/${o}`,s=(e??"")+d;if(t)s=qe({path:t,url:s});let a=r?n(r):"";if(a.startsWith("?"))a=a.substring(1);if(a)s+=`?${a}`;return s};function v(e){let t=e.body!==void 0;if(t&&e.bodySerializer){if("serializedBody"in e)return e.serializedBody!==void 0&&e.serializedBody!==""?e.serializedBody:null;return e.body!==""?e.body:null}if(t)return e.body;return}var se=async(e,t)=>{let r=typeof t==="function"?await t(e):t;if(!r)return;if(e.scheme==="bearer")return`Bearer ${r}`;if(e.scheme==="basic")return`Basic ${btoa(r)}`;return r};var ie={bodySerializer:(e)=>JSON.stringify(e,(t,r)=>typeof r==="bigint"?r.toString():r)};var ae=({parameters:e={},...t}={})=>(n)=>{let o=[];if(n&&typeof n==="object")for(let d in n){let s=n[d];if(s===void 0||s===null)continue;let a=e[d]||t;if(Array.isArray(s)){let u=C({allowReserved:a.allowReserved,explode:!0,name:d,style:"form",value:s,...a.array});if(u)o.push(u)}else if(typeof s==="object"){let u=z({allowReserved:a.allowReserved,explode:!0,name:d,style:"deepObject",value:s,...a.object});if(u)o.push(u)}else{let u=V({allowReserved:a.allowReserved,name:d,value:s});if(u)o.push(u)}}return o.join("&")},ue=(e)=>{if(!e)return"stream";let t=e.split(";")[0]?.trim();if(!t)return;if(t.startsWith("application/json")||t.endsWith("+json"))return"json";if(t==="multipart/form-data")return"formData";if(["application/","audio/","image/","video/"].some((r)=>t.startsWith(r)))return"blob";if(t.startsWith("text/"))return"text";return},Te=(e,t)=>{if(!t)return!1;if(e.headers.has(t)||e.query?.[t]||e.headers.get("Cookie")?.includes(`${t}=`))return!0;return!1},de=async({security:e,...t})=>{for(let r of e){if(Te(t,r.name))continue;let n=await se(r,t.auth);if(!n)continue;let o=r.name??"Authorization";switch(r.in){case"query":if(!t.query)t.query={};t.query[o]=n;break;case"cookie":t.headers.append("Cookie",`${o}=${n}`);break;case"header":default:t.headers.set(o,n);break}}},B=(e)=>oe({baseUrl:e.baseUrl,path:e.path,query:e.query,querySerializer:typeof e.querySerializer==="function"?e.querySerializer:ae(e.querySerializer),url:e.url}),F=(e,t)=>{let r={...e,...t};if(r.baseUrl?.endsWith("/"))r.baseUrl=r.baseUrl.substring(0,r.baseUrl.length-1);return r.headers=G(e.headers,t.headers),r},Le=(e)=>{let t=[];return e.forEach((r,n)=>{t.push([n,r])}),t},G=(...e)=>{let t=new Headers;for(let r of e){if(!r)continue;let n=r instanceof Headers?Le(r):Object.entries(r);for(let[o,d]of n)if(d===null)t.delete(o);else if(Array.isArray(d))for(let s of d)t.append(o,s);else if(d!==void 0)t.set(o,typeof d==="object"?JSON.stringify(d):d)}return t};class W{fns=[];clear(){this.fns=[]}eject(e){let t=this.getInterceptorIndex(e);if(this.fns[t])this.fns[t]=null}exists(e){let t=this.getInterceptorIndex(e);return Boolean(this.fns[t])}getInterceptorIndex(e){if(typeof e==="number")return this.fns[e]?e:-1;return this.fns.indexOf(e)}update(e,t){let r=this.getInterceptorIndex(e);if(this.fns[r])return this.fns[r]=t,e;return!1}use(e){return this.fns.push(e),this.fns.length-1}}var pe=()=>({error:new W,request:new W,response:new W}),Ce=ae({allowReserved:!1,array:{explode:!0,style:"form"},object:{explode:!0,style:"deepObject"}}),ze={"Content-Type":"application/json"},T=(e={})=>({...ie,headers:ze,parseAs:"auto",querySerializer:Ce,...e});var H=(e={})=>{let t=F(T(),e),r=()=>({...t}),n=(c)=>(t=F(t,c),r()),o=pe(),d=async(c)=>{let i={...t,...c,fetch:c.fetch??t.fetch??globalThis.fetch,headers:G(t.headers,c.headers),serializedBody:void 0};if(i.security)await de({...i,security:i.security});if(i.requestValidator)await i.requestValidator(i);if(i.body!==void 0&&i.bodySerializer)i.serializedBody=i.bodySerializer(i.body);if(i.body===void 0||i.serializedBody==="")i.headers.delete("Content-Type");let w=i,A=B(w);return{opts:w,url:A}},s=async(c)=>{let{opts:i,url:w}=await d(c),A={redirect:"follow",...i,body:v(i)},m=new Request(w,A);for(let l of o.request.fns)if(l)m=await l(m,i);let O=i.fetch,p;try{p=await O(m)}catch(l){let f=l;for(let y of o.error.fns)if(y)f=await y(l,void 0,m,i);if(f=f||{},i.throwOnError)throw f;return i.responseStyle==="data"?void 0:{error:f,request:m,response:void 0}}for(let l of o.response.fns)if(l)p=await l(p,m,i);let h={request:m,response:p};if(p.ok){let l=(i.parseAs==="auto"?ue(p.headers.get("Content-Type")):i.parseAs)??"json";if(p.status===204||p.headers.get("Content-Length")==="0"){let y;switch(l){case"arrayBuffer":case"blob":case"text":y=await p[l]();break;case"formData":y=new FormData;break;case"stream":y=p.body;break;case"json":default:y={};break}return i.responseStyle==="data"?y:{data:y,...h}}let f;switch(l){case"arrayBuffer":case"blob":case"formData":case"text":f=await p[l]();break;case"json":{let y=await p.text();f=y?JSON.parse(y):{};break}case"stream":return i.responseStyle==="data"?p.body:{data:p.body,...h}}if(l==="json"){if(i.responseValidator)await i.responseValidator(f);if(i.responseTransformer)f=await i.responseTransformer(f)}return i.responseStyle==="data"?f:{data:f,...h}}let q=await p.text(),b;try{b=JSON.parse(q)}catch{}let E=b??q,I=E;for(let l of o.error.fns)if(l)I=await l(E,p,m,i);if(I=I||{},i.throwOnError)throw I;return i.responseStyle==="data"?void 0:{error:I,...h}},a=(c)=>(i)=>s({...i,method:c}),u=(c)=>async(i)=>{let{opts:w,url:A}=await d(i);return ne({...w,body:w.body,headers:w.headers,method:c,onRequest:async(m,O)=>{let p=new Request(m,O);for(let h of o.request.fns)if(h)p=await h(p,w);return p},serializedBody:v(w),url:A})};return{buildUrl:(c)=>B({...t,...c}),connect:a("CONNECT"),delete:a("DELETE"),get:a("GET"),getConfig:r,head:a("HEAD"),interceptors:o,options:a("OPTIONS"),patch:a("PATCH"),post:a("POST"),put:a("PUT"),request:s,setConfig:n,sse:{connect:u("CONNECT"),delete:u("DELETE"),get:u("GET"),head:u("HEAD"),options:u("OPTIONS"),patch:u("PATCH"),post:u("POST"),put:u("PUT"),trace:u("TRACE")},trace:a("TRACE")}};var R=H(T());var Q=(e)=>(e.client??R).get({security:[{scheme:"bearer",type:"http"}],url:"/studio/agent-runs",...e}),N=(e)=>(e.client??R).get({security:[{scheme:"bearer",type:"http"}],url:"/studio/agent-runs/{runId}",...e}),U=(e)=>(e.client??R).post({security:[{scheme:"bearer",type:"http"}],url:"/studio/apps/by-slug/{slug}/views/{viewId}/data/{instanceId}/relation-members/search",...e,headers:{"Content-Type":"application/json",...e.headers}}),K=(e)=>(e.client??R).post({security:[{scheme:"bearer",type:"http"}],url:"/studio/apps/by-slug/{slug}/views/{viewId}/data/search",...e,headers:{"Content-Type":"application/json",...e.headers}}),_=(e)=>(e.client??R).get({security:[{scheme:"bearer",type:"http"}],url:"/studio/apps/by-slug/{slug}/views/{viewId}/data/{instanceId}",...e}),J=(e)=>(e.client??R).patch({security:[{scheme:"bearer",type:"http"}],url:"/studio/apps/by-slug/{slug}/views/{viewId}/data/{instanceId}",...e,headers:{"Content-Type":"application/json",...e.headers}}),j=(e)=>(e.client??R).get({security:[{scheme:"bearer",type:"http"}],url:"/studio/workflow-runs",...e}),X=(e)=>(e.client??R).get({security:[{scheme:"bearer",type:"http"}],url:"/studio/workflow-runs/{runId}",...e});var D=(e,t,r,n)=>{let o={_id:e,baseUrl:t?.baseUrl||(t?.client??R).getConfig().baseUrl};if(r)o._infinite=r;if(n)o.tags=n;if(t?.body)o.body=t.body;if(t?.headers)o.headers=t.headers;if(t?.path)o.path=t.path;if(t?.query)o.query=t.query;return[o]},ce=(e)=>D("studioAgentRunsList",e),We=(e)=>x({queryFn:async({queryKey:t,signal:r})=>{let{data:n}=await Q({...e,...t[0],signal:r,throwOnError:!0});return n},queryKey:ce(e)}),M=(e,t)=>{let r={...e[0]};if(t.body)r.body={...e[0].body,...t.body};if(t.headers)r.headers={...e[0].headers,...t.headers};if(t.path)r.path={...e[0].path,...t.path};if(t.query)r.query={...e[0].query,...t.query};return r},le=(e)=>D("studioAgentRunsList",e,!0),Ge=(e)=>P({queryFn:async({pageParam:t,queryKey:r,signal:n})=>{let d=M(r,typeof t==="object"?t:{query:{page:t}}),{data:s}=await Q({...e,...d,signal:n,throwOnError:!0});return s},queryKey:le(e)}),ye=(e)=>D("studioAgentRunsGet",e),Qe=(e)=>x({queryFn:async({queryKey:t,signal:r})=>{let{data:n}=await N({...e,...t[0],signal:r,throwOnError:!0});return n},queryKey:ye(e)}),fe=(e)=>D("studioViewDataSearchMembers",e),Ue=(e)=>x({queryFn:async({queryKey:t,signal:r})=>{let{data:n}=await U({...e,...t[0],signal:r,throwOnError:!0});return n},queryKey:fe(e)}),Se=(e)=>D("studioViewDataSearchMembers",e,!0),Ke=(e)=>P({queryFn:async({pageParam:t,queryKey:r,signal:n})=>{let d=M(r,typeof t==="object"?t:{body:{cursor:t}}),{data:s}=await U({...e,...d,signal:n,throwOnError:!0});return s},queryKey:Se(e)}),we=(e)=>D("studioViewDataSearch",e),je=(e)=>x({queryFn:async({queryKey:t,signal:r})=>{let{data:n}=await K({...e,...t[0],signal:r,throwOnError:!0});return n},queryKey:we(e)}),he=(e)=>D("studioViewDataSearch",e,!0),Pe=(e)=>P({queryFn:async({pageParam:t,queryKey:r,signal:n})=>{let d=M(r,typeof t==="object"?t:{body:{cursor:t}}),{data:s}=await K({...e,...d,signal:n,throwOnError:!0});return s},queryKey:he(e)}),Re=(e)=>D("studioViewDataGetItem",e),Me=(e)=>x({queryFn:async({queryKey:t,signal:r})=>{let{data:n}=await _({...e,...t[0],signal:r,throwOnError:!0});return n},queryKey:Re(e)}),ve=(e)=>({mutationFn:async(r)=>{let{data:n}=await J({...e,...r,throwOnError:!0});return n}}),me=(e)=>D("studioWorkflowRunsList",e),Be=(e)=>x({queryFn:async({queryKey:t,signal:r})=>{let{data:n}=await j({...e,...t[0],signal:r,throwOnError:!0});return n},queryKey:me(e)}),ge=(e)=>D("studioWorkflowRunsList",e,!0),Fe=(e)=>P({queryFn:async({pageParam:t,queryKey:r,signal:n})=>{let d=M(r,typeof t==="object"?t:{query:{page:t}}),{data:s}=await j({...e,...d,signal:n,throwOnError:!0});return s},queryKey:ge(e)}),De=(e)=>D("studioWorkflowRunsGet",e),He=(e)=>x({queryFn:async({queryKey:t,signal:r})=>{let{data:n}=await X({...e,...t[0],signal:r,throwOnError:!0});return n},queryKey:De(e)});export{R as client,N as studioAgentRunsGet,Qe as studioAgentRunsGetOptions,ye as studioAgentRunsGetQueryKey,Q as studioAgentRunsList,Ge as studioAgentRunsListInfiniteOptions,le as studioAgentRunsListInfiniteQueryKey,We as studioAgentRunsListOptions,ce as studioAgentRunsListQueryKey,_ as studioViewDataGetItem,Me as studioViewDataGetItemOptions,Re as studioViewDataGetItemQueryKey,K as studioViewDataSearch,Pe as studioViewDataSearchInfiniteOptions,he as studioViewDataSearchInfiniteQueryKey,U as studioViewDataSearchMembers,Ke as studioViewDataSearchMembersInfiniteOptions,Se as studioViewDataSearchMembersInfiniteQueryKey,Ue as studioViewDataSearchMembersOptions,fe as studioViewDataSearchMembersQueryKey,je as studioViewDataSearchOptions,we as studioViewDataSearchQueryKey,J as studioViewDataUpdateItem,ve as studioViewDataUpdateItemMutation,X as studioWorkflowRunsGet,He as studioWorkflowRunsGetOptions,De as studioWorkflowRunsGetQueryKey,j as studioWorkflowRunsList,Fe as studioWorkflowRunsListInfiniteOptions,ge as studioWorkflowRunsListInfiniteQueryKey,Be as studioWorkflowRunsListOptions,me as studioWorkflowRunsListQueryKey};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Client, Options as Options2, TEndpointData } from "./client";
|
|
2
|
-
import type { StudioAgentRunsGetData, StudioAgentRunsGetErrors, StudioAgentRunsGetResponses, StudioAgentRunsListData, StudioAgentRunsListErrors, StudioAgentRunsListResponses, StudioViewDataGetItemData, StudioViewDataGetItemErrors, StudioViewDataGetItemResponses, StudioViewDataSearchData, StudioViewDataSearchErrors, StudioViewDataSearchResponses, StudioViewDataUpdateItemData, StudioViewDataUpdateItemErrors, StudioViewDataUpdateItemResponses, StudioWorkflowRunsGetData, StudioWorkflowRunsGetErrors, StudioWorkflowRunsGetResponses, StudioWorkflowRunsListData, StudioWorkflowRunsListErrors, StudioWorkflowRunsListResponses } from "./types.gen";
|
|
2
|
+
import type { StudioAgentRunsGetData, StudioAgentRunsGetErrors, StudioAgentRunsGetResponses, StudioAgentRunsListData, StudioAgentRunsListErrors, StudioAgentRunsListResponses, StudioViewDataGetItemData, StudioViewDataGetItemErrors, StudioViewDataGetItemResponses, StudioViewDataSearchData, StudioViewDataSearchErrors, StudioViewDataSearchMembersData, StudioViewDataSearchMembersErrors, StudioViewDataSearchMembersResponses, StudioViewDataSearchResponses, StudioViewDataUpdateItemData, StudioViewDataUpdateItemErrors, StudioViewDataUpdateItemResponses, StudioWorkflowRunsGetData, StudioWorkflowRunsGetErrors, StudioWorkflowRunsGetResponses, StudioWorkflowRunsListData, StudioWorkflowRunsListErrors, StudioWorkflowRunsListResponses } from "./types.gen";
|
|
3
3
|
export type Options<TData extends TEndpointData = TEndpointData, ThrowOnError extends boolean = boolean, TResponse = unknown> = Options2<TData, ThrowOnError, TResponse> & {
|
|
4
4
|
/**
|
|
5
5
|
* You can provide a client instance returned by `createClient()` instead of
|
|
@@ -15,6 +15,7 @@ export type Options<TData extends TEndpointData = TEndpointData, ThrowOnError ex
|
|
|
15
15
|
};
|
|
16
16
|
export declare const studioAgentRunsList: <ThrowOnError extends boolean = false>(options: Options<StudioAgentRunsListData, ThrowOnError>) => import("./client").RequestResult<StudioAgentRunsListResponses, StudioAgentRunsListErrors, ThrowOnError, "fields">;
|
|
17
17
|
export declare const studioAgentRunsGet: <ThrowOnError extends boolean = false>(options: Options<StudioAgentRunsGetData, ThrowOnError>) => import("./client").RequestResult<StudioAgentRunsGetResponses, StudioAgentRunsGetErrors, ThrowOnError, "fields">;
|
|
18
|
+
export declare const studioViewDataSearchMembers: <ThrowOnError extends boolean = false>(options: Options<StudioViewDataSearchMembersData, ThrowOnError>) => import("./client").RequestResult<StudioViewDataSearchMembersResponses, StudioViewDataSearchMembersErrors, ThrowOnError, "fields">;
|
|
18
19
|
export declare const studioViewDataSearch: <ThrowOnError extends boolean = false>(options: Options<StudioViewDataSearchData, ThrowOnError>) => import("./client").RequestResult<StudioViewDataSearchResponses, StudioViewDataSearchErrors, ThrowOnError, "fields">;
|
|
19
20
|
export declare const studioViewDataGetItem: <ThrowOnError extends boolean = false>(options: Options<StudioViewDataGetItemData, ThrowOnError>) => import("./client").RequestResult<StudioViewDataGetItemResponses, StudioViewDataGetItemErrors, ThrowOnError, "fields">;
|
|
20
21
|
export declare const studioViewDataUpdateItem: <ThrowOnError extends boolean = false>(options: Options<StudioViewDataUpdateItemData, ThrowOnError>) => import("./client").RequestResult<StudioViewDataUpdateItemResponses, StudioViewDataUpdateItemErrors, ThrowOnError, "fields">;
|
|
@@ -25,7 +25,7 @@ export type EntityRelationFieldDiagnosticEncoded = {
|
|
|
25
25
|
code: "relation_field_invalid";
|
|
26
26
|
field: string;
|
|
27
27
|
message: string;
|
|
28
|
-
reason: "invalid_value" | "duplicate_target" | "max_items_exceeded" | "target_not_found" | "wrong_target_schema" | "target_deleted" | "base_filter_mismatch";
|
|
28
|
+
reason: "read_only" | "cardinality_conflict" | "invalid_value" | "duplicate_target" | "max_items_exceeded" | "target_not_found" | "wrong_target_schema" | "target_deleted" | "base_filter_mismatch";
|
|
29
29
|
};
|
|
30
30
|
export type EntityUniqueFieldConflictDiagnosticEncoded = {
|
|
31
31
|
_tag: "EntityUniqueFieldConflictDiagnostic";
|
|
@@ -36,6 +36,7 @@ export type EntityUniqueFieldConflictDiagnosticEncoded = {
|
|
|
36
36
|
export type EntityFileFieldConflictDiagnosticEncoded = {
|
|
37
37
|
_tag: "EntityFileFieldConflictDiagnostic";
|
|
38
38
|
code: "file_field_connector_owned";
|
|
39
|
+
field: string;
|
|
39
40
|
message: string;
|
|
40
41
|
};
|
|
41
42
|
export type Suspend2 = null | boolean | number | string | Array<Suspend2> | {
|
|
@@ -47,6 +48,11 @@ export type InvalidIncludePathEncoded = {
|
|
|
47
48
|
path: string;
|
|
48
49
|
reason: "malformed" | "too_deep" | "unknown_field";
|
|
49
50
|
};
|
|
51
|
+
export type KnowledgeReadLimitExceededEncoded = {
|
|
52
|
+
_tag: "KnowledgeReadLimitExceeded";
|
|
53
|
+
budget: "work" | "nodes" | "relation_ids" | "bytes";
|
|
54
|
+
message: string;
|
|
55
|
+
};
|
|
50
56
|
export type EffectHttpApiErrorBadRequestEncoded = {
|
|
51
57
|
_tag: "BadRequest";
|
|
52
58
|
};
|
|
@@ -111,6 +117,7 @@ export type StudioAgentRunsListResponses = {
|
|
|
111
117
|
completedAt: string | null;
|
|
112
118
|
createdAt: string;
|
|
113
119
|
errorCode: string | null;
|
|
120
|
+
errorMessage: string | null;
|
|
114
121
|
id: string;
|
|
115
122
|
initiator: {
|
|
116
123
|
kind: "user";
|
|
@@ -179,6 +186,7 @@ export type StudioAgentRunsGetResponses = {
|
|
|
179
186
|
completedAt: string | null;
|
|
180
187
|
createdAt: string;
|
|
181
188
|
errorCode: string | null;
|
|
189
|
+
errorMessage: string | null;
|
|
182
190
|
id: string;
|
|
183
191
|
initiator: {
|
|
184
192
|
kind: "user";
|
|
@@ -190,6 +198,65 @@ export type StudioAgentRunsGetResponses = {
|
|
|
190
198
|
};
|
|
191
199
|
};
|
|
192
200
|
export type StudioAgentRunsGetResponse = StudioAgentRunsGetResponses[keyof StudioAgentRunsGetResponses];
|
|
201
|
+
export type StudioViewDataSearchMembersData = {
|
|
202
|
+
body: {
|
|
203
|
+
cursor?: string | null;
|
|
204
|
+
filters?: Array<{
|
|
205
|
+
caseSensitive?: boolean;
|
|
206
|
+
field: string;
|
|
207
|
+
operator: "eq" | "ne" | "in" | "nin" | "contains" | "not_contains" | "starts_with" | "ends_with" | "gt" | "gte" | "lt" | "lte" | "exists" | "is_empty" | "is_not_empty";
|
|
208
|
+
value: Suspend2 | Array<Suspend2>;
|
|
209
|
+
}>;
|
|
210
|
+
include?: Array<string>;
|
|
211
|
+
limit?: number;
|
|
212
|
+
sort?: Array<{
|
|
213
|
+
direction: "asc" | "desc";
|
|
214
|
+
field: string;
|
|
215
|
+
}>;
|
|
216
|
+
text?: string;
|
|
217
|
+
field: string;
|
|
218
|
+
};
|
|
219
|
+
headers: {
|
|
220
|
+
authorization?: string;
|
|
221
|
+
"x-organization-id": string;
|
|
222
|
+
};
|
|
223
|
+
path: {
|
|
224
|
+
slug: string;
|
|
225
|
+
viewId: string;
|
|
226
|
+
instanceId: string;
|
|
227
|
+
};
|
|
228
|
+
query?: never;
|
|
229
|
+
url: "/studio/apps/by-slug/{slug}/views/{viewId}/data/{instanceId}/relation-members/search";
|
|
230
|
+
};
|
|
231
|
+
export type StudioViewDataSearchMembersErrors = {
|
|
232
|
+
/**
|
|
233
|
+
* InvalidIncludePath | KnowledgeReadLimitExceeded | BadRequest
|
|
234
|
+
*/
|
|
235
|
+
400: InvalidIncludePathEncoded | KnowledgeReadLimitExceededEncoded | EffectHttpApiErrorBadRequestEncoded;
|
|
236
|
+
/**
|
|
237
|
+
* Unauthorized
|
|
238
|
+
*/
|
|
239
|
+
401: EffectHttpApiErrorUnauthorizedEncoded;
|
|
240
|
+
/**
|
|
241
|
+
* Forbidden
|
|
242
|
+
*/
|
|
243
|
+
403: EffectHttpApiErrorForbiddenEncoded;
|
|
244
|
+
/**
|
|
245
|
+
* NotFound
|
|
246
|
+
*/
|
|
247
|
+
404: EffectHttpApiErrorNotFoundEncoded;
|
|
248
|
+
/**
|
|
249
|
+
* InternalServerError
|
|
250
|
+
*/
|
|
251
|
+
500: EffectHttpApiErrorInternalServerErrorEncoded;
|
|
252
|
+
};
|
|
253
|
+
export type StudioViewDataSearchMembersError = StudioViewDataSearchMembersErrors[keyof StudioViewDataSearchMembersErrors];
|
|
254
|
+
export type StudioViewDataSearchMembersResponses = {
|
|
255
|
+
/**
|
|
256
|
+
* Success
|
|
257
|
+
*/
|
|
258
|
+
200: unknown;
|
|
259
|
+
};
|
|
193
260
|
export type StudioViewDataSearchData = {
|
|
194
261
|
body: {
|
|
195
262
|
cursor?: string | null;
|
|
@@ -220,9 +287,9 @@ export type StudioViewDataSearchData = {
|
|
|
220
287
|
};
|
|
221
288
|
export type StudioViewDataSearchErrors = {
|
|
222
289
|
/**
|
|
223
|
-
* InvalidIncludePath | BadRequest
|
|
290
|
+
* InvalidIncludePath | KnowledgeReadLimitExceeded | BadRequest
|
|
224
291
|
*/
|
|
225
|
-
400: InvalidIncludePathEncoded | EffectHttpApiErrorBadRequestEncoded;
|
|
292
|
+
400: InvalidIncludePathEncoded | KnowledgeReadLimitExceededEncoded | EffectHttpApiErrorBadRequestEncoded;
|
|
226
293
|
/**
|
|
227
294
|
* Unauthorized
|
|
228
295
|
*/
|
|
@@ -265,9 +332,9 @@ export type StudioViewDataGetItemData = {
|
|
|
265
332
|
};
|
|
266
333
|
export type StudioViewDataGetItemErrors = {
|
|
267
334
|
/**
|
|
268
|
-
* InvalidIncludePath | BadRequest
|
|
335
|
+
* InvalidIncludePath | KnowledgeReadLimitExceeded | BadRequest
|
|
269
336
|
*/
|
|
270
|
-
400: InvalidIncludePathEncoded | EffectHttpApiErrorBadRequestEncoded;
|
|
337
|
+
400: InvalidIncludePathEncoded | KnowledgeReadLimitExceededEncoded | EffectHttpApiErrorBadRequestEncoded;
|
|
271
338
|
/**
|
|
272
339
|
* Unauthorized
|
|
273
340
|
*/
|
|
@@ -315,9 +382,9 @@ export type StudioViewDataUpdateItemData = {
|
|
|
315
382
|
};
|
|
316
383
|
export type StudioViewDataUpdateItemErrors = {
|
|
317
384
|
/**
|
|
318
|
-
* EntityValueDiagnostic | EntityFileFieldDiagnostic | EntityRelationFieldDiagnostic | BadRequest
|
|
385
|
+
* EntityValueDiagnostic | EntityFileFieldDiagnostic | EntityRelationFieldDiagnostic | KnowledgeReadLimitExceeded | BadRequest
|
|
319
386
|
*/
|
|
320
|
-
400: EntityValueDiagnosticEncoded | EntityFileFieldDiagnosticEncoded | EntityRelationFieldDiagnosticEncoded | EffectHttpApiErrorBadRequestEncoded;
|
|
387
|
+
400: EntityValueDiagnosticEncoded | EntityFileFieldDiagnosticEncoded | EntityRelationFieldDiagnosticEncoded | KnowledgeReadLimitExceededEncoded | EffectHttpApiErrorBadRequestEncoded;
|
|
321
388
|
/**
|
|
322
389
|
* Unauthorized
|
|
323
390
|
*/
|
|
@@ -396,6 +463,7 @@ export type StudioWorkflowRunsListResponses = {
|
|
|
396
463
|
completedAt: string | null;
|
|
397
464
|
createdAt: string;
|
|
398
465
|
errorCode: string | null;
|
|
466
|
+
errorMessage: string | null;
|
|
399
467
|
id: string;
|
|
400
468
|
initiator: {
|
|
401
469
|
kind: "user";
|
|
@@ -467,6 +535,7 @@ export type StudioWorkflowRunsGetResponses = {
|
|
|
467
535
|
completedAt: string | null;
|
|
468
536
|
createdAt: string;
|
|
469
537
|
errorCode: string | null;
|
|
538
|
+
errorMessage: string | null;
|
|
470
539
|
id: string;
|
|
471
540
|
initiator: {
|
|
472
541
|
kind: "user";
|
|
@@ -483,7 +552,13 @@ export type StudioWorkflowRunsGetResponses = {
|
|
|
483
552
|
steps: Array<{
|
|
484
553
|
attempt: number;
|
|
485
554
|
completedAt: string | null;
|
|
555
|
+
durationMs: number | null;
|
|
556
|
+
error: {
|
|
557
|
+
code: string | null;
|
|
558
|
+
message: string;
|
|
559
|
+
} | null;
|
|
486
560
|
nodeId: string;
|
|
561
|
+
nodeType: string | null;
|
|
487
562
|
startedAt: string | null;
|
|
488
563
|
status: string;
|
|
489
564
|
}>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@collective-intelligence/extensions-sdk-frontend-react",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.11",
|
|
4
4
|
"description": "Public hosted React contribution contracts for Collective Intelligence extensions.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -70,11 +70,11 @@
|
|
|
70
70
|
"type-check": "bun check"
|
|
71
71
|
},
|
|
72
72
|
"dependencies": {
|
|
73
|
-
"@collective-intelligence/extensions-sdk": "0.1.
|
|
74
|
-
"@collective-intelligence/extensions-sdk-frontend": "0.1.
|
|
73
|
+
"@collective-intelligence/extensions-sdk": "0.1.11",
|
|
74
|
+
"@collective-intelligence/extensions-sdk-frontend": "0.1.11"
|
|
75
75
|
},
|
|
76
76
|
"peerDependencies": {
|
|
77
|
-
"@collective-intelligence/ui-react": "0.1.
|
|
77
|
+
"@collective-intelligence/ui-react": "0.1.11",
|
|
78
78
|
"@tanstack/react-query": ">=5 <6",
|
|
79
79
|
"@xyflow/react": ">=12 <13",
|
|
80
80
|
"react": ">=18 <20",
|
|
@@ -89,7 +89,7 @@
|
|
|
89
89
|
"access": "public"
|
|
90
90
|
},
|
|
91
91
|
"devDependencies": {
|
|
92
|
-
"@collective-intelligence/ui-react": "0.1.
|
|
92
|
+
"@collective-intelligence/ui-react": "0.1.11",
|
|
93
93
|
"@hey-api/openapi-ts": "^0.96.0",
|
|
94
94
|
"@oxlint/plugins": "1.85.0",
|
|
95
95
|
"@tanstack/react-query": "5.101.4",
|