@converge.ai/a13n 0.0.95 → 0.0.98
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/resources/generated.d.ts +1364 -1152
- package/dist/resources/generated.d.ts.map +1 -1
- package/dist/resources/generated.js +252 -110
- package/dist/resources/generated.js.map +1 -1
- package/dist/schema.d.ts +1518 -614
- package/dist/schema.d.ts.map +1 -1
- package/dist/semantic.d.ts +6 -2
- package/dist/semantic.d.ts.map +1 -1
- package/dist/session-stream-schema.d.ts +88 -10
- package/dist/session-stream-schema.d.ts.map +1 -1
- package/dist/session-stream-validation.d.ts +1 -0
- package/dist/session-stream-validation.d.ts.map +1 -1
- package/dist/session-stream-validation.js +3721 -2781
- package/dist/session-stream-validation.js.map +1 -1
- package/dist/workflow.d.ts.map +1 -1
- package/dist/workspace-scope.d.ts.map +1 -1
- package/dist/workspace-scope.js +24 -9
- package/dist/workspace-scope.js.map +1 -1
- package/openapi.json +3300 -1246
- package/package.json +1 -1
|
@@ -19,6 +19,12 @@ export class ServiceResources {
|
|
|
19
19
|
get auth() {
|
|
20
20
|
return new AuthResource(this.transport, "/api/v1/auth");
|
|
21
21
|
}
|
|
22
|
+
get browserProviders() {
|
|
23
|
+
return new BrowserProvidersResource(this.transport, "/api/v1/browser-providers");
|
|
24
|
+
}
|
|
25
|
+
get browsers() {
|
|
26
|
+
return new BrowsersResource(this.transport, "/api/v1/browsers");
|
|
27
|
+
}
|
|
22
28
|
get builtinSkills() {
|
|
23
29
|
return new BuiltinSkillsResource(this.transport, "/api/v1/builtin-skills");
|
|
24
30
|
}
|
|
@@ -28,9 +34,6 @@ export class ServiceResources {
|
|
|
28
34
|
get connectorProviders() {
|
|
29
35
|
return new ConnectorProvidersResource(this.transport, "/api/v1/connector-providers");
|
|
30
36
|
}
|
|
31
|
-
get desktopAssistance() {
|
|
32
|
-
return new DesktopAssistanceResource(this.transport, "/api/v1/desktop-assistance");
|
|
33
|
-
}
|
|
34
37
|
get devices() {
|
|
35
38
|
return new DevicesResource(this.transport, "/api/v1/devices");
|
|
36
39
|
}
|
|
@@ -509,6 +512,178 @@ export class AuthSessionResource {
|
|
|
509
512
|
});
|
|
510
513
|
}
|
|
511
514
|
}
|
|
515
|
+
export class BrowserProvidersResource {
|
|
516
|
+
transport;
|
|
517
|
+
path;
|
|
518
|
+
constructor(transport, path) {
|
|
519
|
+
this.transport = transport;
|
|
520
|
+
this.path = path;
|
|
521
|
+
}
|
|
522
|
+
/** GET /api/v1/browser-providers. Preserves response metadata; mutations are not replayed. */
|
|
523
|
+
list(options = {}) {
|
|
524
|
+
return jsonRequest(this.transport, "GET", this.path, undefined, Object.fromEntries(Object.entries({ "X-Workspace-ID": options.xWorkspaceId })
|
|
525
|
+
.filter(([, value]) => value !== undefined && value !== null)
|
|
526
|
+
.map(([key, value]) => [key, String(value)])), { signal: options.signal, query: options.query });
|
|
527
|
+
}
|
|
528
|
+
pages(options = {}) {
|
|
529
|
+
const query = snapshot(options.query ?? {});
|
|
530
|
+
return new PageIterator(query.cursor, (cursor) => this.list({ ...options, query: withCursor(query, cursor) }), (value) => value);
|
|
531
|
+
}
|
|
532
|
+
items(options = {}) {
|
|
533
|
+
return flattenPages(this.pages(options), (value) => value);
|
|
534
|
+
}
|
|
535
|
+
/** POST /api/v1/browser-providers. Preserves response metadata; mutations are not replayed. */
|
|
536
|
+
create(body, options = {}) {
|
|
537
|
+
return jsonRequest(this.transport, "POST", this.path, body, Object.fromEntries(Object.entries({ "X-Workspace-ID": options.xWorkspaceId })
|
|
538
|
+
.filter(([, value]) => value !== undefined && value !== null)
|
|
539
|
+
.map(([key, value]) => [key, String(value)])), { signal: options.signal });
|
|
540
|
+
}
|
|
541
|
+
ref(value) {
|
|
542
|
+
return new BrowserProvidersProviderIdResource(this.transport, this.path + "/" + encodeURIComponent(selector(String(value))));
|
|
543
|
+
}
|
|
544
|
+
}
|
|
545
|
+
export class BrowserProvidersProviderIdResource {
|
|
546
|
+
transport;
|
|
547
|
+
path;
|
|
548
|
+
constructor(transport, path) {
|
|
549
|
+
this.transport = transport;
|
|
550
|
+
this.path = path;
|
|
551
|
+
}
|
|
552
|
+
/** DELETE /api/v1/browser-providers/{provider_id}. Preserves response metadata; mutations are not replayed. */
|
|
553
|
+
delete(options) {
|
|
554
|
+
return jsonRequest(this.transport, "DELETE", this.path, undefined, Object.fromEntries(Object.entries({
|
|
555
|
+
"If-Match": options.ifMatch,
|
|
556
|
+
"X-Workspace-ID": options.xWorkspaceId,
|
|
557
|
+
})
|
|
558
|
+
.filter(([, value]) => value !== undefined && value !== null)
|
|
559
|
+
.map(([key, value]) => [key, String(value)])), { signal: options.signal });
|
|
560
|
+
}
|
|
561
|
+
/** GET /api/v1/browser-providers/{provider_id}. Preserves response metadata; mutations are not replayed. */
|
|
562
|
+
get(options = {}) {
|
|
563
|
+
return jsonRequest(this.transport, "GET", this.path, undefined, Object.fromEntries(Object.entries({ "X-Workspace-ID": options.xWorkspaceId })
|
|
564
|
+
.filter(([, value]) => value !== undefined && value !== null)
|
|
565
|
+
.map(([key, value]) => [key, String(value)])), { signal: options.signal });
|
|
566
|
+
}
|
|
567
|
+
/** PATCH /api/v1/browser-providers/{provider_id}. Preserves response metadata; mutations are not replayed. */
|
|
568
|
+
update(body, options) {
|
|
569
|
+
return jsonRequest(this.transport, "PATCH", this.path, body, Object.fromEntries(Object.entries({
|
|
570
|
+
"If-Match": options.ifMatch,
|
|
571
|
+
"X-Workspace-ID": options.xWorkspaceId,
|
|
572
|
+
})
|
|
573
|
+
.filter(([, value]) => value !== undefined && value !== null)
|
|
574
|
+
.map(([key, value]) => [key, String(value)])), { signal: options.signal });
|
|
575
|
+
}
|
|
576
|
+
/** POST /api/v1/browser-providers/{provider_id}/test. Preserves response metadata; mutations are not replayed. */
|
|
577
|
+
test(options = {}) {
|
|
578
|
+
return jsonRequest(this.transport, "POST", this.path + "/test", undefined, Object.fromEntries(Object.entries({ "X-Workspace-ID": options.xWorkspaceId })
|
|
579
|
+
.filter(([, value]) => value !== undefined && value !== null)
|
|
580
|
+
.map(([key, value]) => [key, String(value)])), { signal: options.signal });
|
|
581
|
+
}
|
|
582
|
+
}
|
|
583
|
+
export class BrowsersResource {
|
|
584
|
+
transport;
|
|
585
|
+
path;
|
|
586
|
+
constructor(transport, path) {
|
|
587
|
+
this.transport = transport;
|
|
588
|
+
this.path = path;
|
|
589
|
+
}
|
|
590
|
+
/** GET /api/v1/browsers. Preserves response metadata; mutations are not replayed. */
|
|
591
|
+
list(options = {}) {
|
|
592
|
+
return jsonRequest(this.transport, "GET", this.path, undefined, Object.fromEntries(Object.entries({ "X-Workspace-ID": options.xWorkspaceId })
|
|
593
|
+
.filter(([, value]) => value !== undefined && value !== null)
|
|
594
|
+
.map(([key, value]) => [key, String(value)])), { signal: options.signal, query: options.query });
|
|
595
|
+
}
|
|
596
|
+
pages(options = {}) {
|
|
597
|
+
const query = snapshot(options.query ?? {});
|
|
598
|
+
return new PageIterator(query.cursor, (cursor) => this.list({ ...options, query: withCursor(query, cursor) }), (value) => value);
|
|
599
|
+
}
|
|
600
|
+
items(options = {}) {
|
|
601
|
+
return flattenPages(this.pages(options), (value) => value);
|
|
602
|
+
}
|
|
603
|
+
/** POST /api/v1/browsers. Preserves response metadata; mutations are not replayed. */
|
|
604
|
+
create(body, options = {}) {
|
|
605
|
+
return jsonRequest(this.transport, "POST", this.path, body, Object.fromEntries(Object.entries({ "X-Workspace-ID": options.xWorkspaceId })
|
|
606
|
+
.filter(([, value]) => value !== undefined && value !== null)
|
|
607
|
+
.map(([key, value]) => [key, String(value)])), { signal: options.signal });
|
|
608
|
+
}
|
|
609
|
+
/** POST /api/v1/browsers/attach. Preserves response metadata; mutations are not replayed. */
|
|
610
|
+
attach(body, options = {}) {
|
|
611
|
+
return jsonRequest(this.transport, "POST", this.path + "/attach", body, Object.fromEntries(Object.entries({ "X-Workspace-ID": options.xWorkspaceId })
|
|
612
|
+
.filter(([, value]) => value !== undefined && value !== null)
|
|
613
|
+
.map(([key, value]) => [key, String(value)])), { signal: options.signal });
|
|
614
|
+
}
|
|
615
|
+
ref(value) {
|
|
616
|
+
return new BrowsersBrowserIdResource(this.transport, this.path + "/" + encodeURIComponent(selector(String(value))));
|
|
617
|
+
}
|
|
618
|
+
}
|
|
619
|
+
export class BrowsersBrowserIdResource {
|
|
620
|
+
transport;
|
|
621
|
+
path;
|
|
622
|
+
constructor(transport, path) {
|
|
623
|
+
this.transport = transport;
|
|
624
|
+
this.path = path;
|
|
625
|
+
}
|
|
626
|
+
/** GET /api/v1/browsers/{browser_id}. Preserves response metadata; mutations are not replayed. */
|
|
627
|
+
get(options = {}) {
|
|
628
|
+
return jsonRequest(this.transport, "GET", this.path, undefined, Object.fromEntries(Object.entries({ "X-Workspace-ID": options.xWorkspaceId })
|
|
629
|
+
.filter(([, value]) => value !== undefined && value !== null)
|
|
630
|
+
.map(([key, value]) => [key, String(value)])), { signal: options.signal });
|
|
631
|
+
}
|
|
632
|
+
/** POST /api/v1/browsers/{browser_id}/handback. Preserves response metadata; mutations are not replayed. */
|
|
633
|
+
handback(options) {
|
|
634
|
+
return jsonRequest(this.transport, "POST", this.path + "/handback", undefined, Object.fromEntries(Object.entries({
|
|
635
|
+
"If-Match": options.ifMatch,
|
|
636
|
+
"X-Workspace-ID": options.xWorkspaceId,
|
|
637
|
+
})
|
|
638
|
+
.filter(([, value]) => value !== undefined && value !== null)
|
|
639
|
+
.map(([key, value]) => [key, String(value)])), { signal: options.signal });
|
|
640
|
+
}
|
|
641
|
+
/** POST /api/v1/browsers/{browser_id}/prepare. Preserves response metadata; mutations are not replayed. */
|
|
642
|
+
prepare(options = {}) {
|
|
643
|
+
return jsonRequest(this.transport, "POST", this.path + "/prepare", undefined, Object.fromEntries(Object.entries({ "X-Workspace-ID": options.xWorkspaceId })
|
|
644
|
+
.filter(([, value]) => value !== undefined && value !== null)
|
|
645
|
+
.map(([key, value]) => [key, String(value)])), { signal: options.signal });
|
|
646
|
+
}
|
|
647
|
+
/** POST /api/v1/browsers/{browser_id}/release. Preserves response metadata; mutations are not replayed. */
|
|
648
|
+
release(options) {
|
|
649
|
+
return jsonRequest(this.transport, "POST", this.path + "/release", undefined, Object.fromEntries(Object.entries({
|
|
650
|
+
"If-Match": options.ifMatch,
|
|
651
|
+
"X-Workspace-ID": options.xWorkspaceId,
|
|
652
|
+
})
|
|
653
|
+
.filter(([, value]) => value !== undefined && value !== null)
|
|
654
|
+
.map(([key, value]) => [key, String(value)])), { signal: options.signal });
|
|
655
|
+
}
|
|
656
|
+
/** POST /api/v1/browsers/{browser_id}/renew. Preserves response metadata; mutations are not replayed. */
|
|
657
|
+
renew(body, options = {}) {
|
|
658
|
+
return jsonRequest(this.transport, "POST", this.path + "/renew", body, Object.fromEntries(Object.entries({ "X-Workspace-ID": options.xWorkspaceId })
|
|
659
|
+
.filter(([, value]) => value !== undefined && value !== null)
|
|
660
|
+
.map(([key, value]) => [key, String(value)])), { signal: options.signal });
|
|
661
|
+
}
|
|
662
|
+
/** POST /api/v1/browsers/{browser_id}/stop. Preserves response metadata; mutations are not replayed. */
|
|
663
|
+
stop(options) {
|
|
664
|
+
return jsonRequest(this.transport, "POST", this.path + "/stop", undefined, Object.fromEntries(Object.entries({
|
|
665
|
+
"If-Match": options.ifMatch,
|
|
666
|
+
"X-Workspace-ID": options.xWorkspaceId,
|
|
667
|
+
})
|
|
668
|
+
.filter(([, value]) => value !== undefined && value !== null)
|
|
669
|
+
.map(([key, value]) => [key, String(value)])), { signal: options.signal });
|
|
670
|
+
}
|
|
671
|
+
/** POST /api/v1/browsers/{browser_id}/takeover. Preserves response metadata; mutations are not replayed. */
|
|
672
|
+
takeover(body, options) {
|
|
673
|
+
return jsonRequest(this.transport, "POST", this.path + "/takeover", body, Object.fromEntries(Object.entries({
|
|
674
|
+
"If-Match": options.ifMatch,
|
|
675
|
+
"X-Workspace-ID": options.xWorkspaceId,
|
|
676
|
+
})
|
|
677
|
+
.filter(([, value]) => value !== undefined && value !== null)
|
|
678
|
+
.map(([key, value]) => [key, String(value)])), { signal: options.signal });
|
|
679
|
+
}
|
|
680
|
+
/** POST /api/v1/browsers/{browser_id}/viewer. Preserves response metadata; mutations are not replayed. */
|
|
681
|
+
viewer(options = {}) {
|
|
682
|
+
return jsonRequest(this.transport, "POST", this.path + "/viewer", undefined, Object.fromEntries(Object.entries({ "X-Workspace-ID": options.xWorkspaceId })
|
|
683
|
+
.filter(([, value]) => value !== undefined && value !== null)
|
|
684
|
+
.map(([key, value]) => [key, String(value)])), { signal: options.signal });
|
|
685
|
+
}
|
|
686
|
+
}
|
|
512
687
|
export class BuiltinSkillsResource {
|
|
513
688
|
transport;
|
|
514
689
|
path;
|
|
@@ -898,55 +1073,6 @@ export class ConnectorProvidersProviderIdAppsAppActionsIndexResource {
|
|
|
898
1073
|
return flattenPages(this.pages(options), (value) => value);
|
|
899
1074
|
}
|
|
900
1075
|
}
|
|
901
|
-
export class DesktopAssistanceResource {
|
|
902
|
-
transport;
|
|
903
|
-
path;
|
|
904
|
-
constructor(transport, path) {
|
|
905
|
-
this.transport = transport;
|
|
906
|
-
this.path = path;
|
|
907
|
-
}
|
|
908
|
-
ref(value) {
|
|
909
|
-
return new DesktopAssistanceAssistanceIdResource(this.transport, this.path + "/" + encodeURIComponent(selector(String(value))));
|
|
910
|
-
}
|
|
911
|
-
}
|
|
912
|
-
export class DesktopAssistanceAssistanceIdResource {
|
|
913
|
-
transport;
|
|
914
|
-
path;
|
|
915
|
-
constructor(transport, path) {
|
|
916
|
-
this.transport = transport;
|
|
917
|
-
this.path = path;
|
|
918
|
-
}
|
|
919
|
-
/** POST /api/v1/desktop-assistance/{assistance_id}/complete. Preserves response metadata; mutations are not replayed. */
|
|
920
|
-
complete(body, options = {}) {
|
|
921
|
-
return jsonRequest(this.transport, "POST", this.path + "/complete", body, Object.fromEntries(Object.entries({ "X-Workspace-ID": options.xWorkspaceId })
|
|
922
|
-
.filter(([, value]) => value !== undefined && value !== null)
|
|
923
|
-
.map(([key, value]) => [key, String(value)])), { signal: options.signal });
|
|
924
|
-
}
|
|
925
|
-
/** POST /api/v1/desktop-assistance/{assistance_id}/control. Preserves response metadata; mutations are not replayed. */
|
|
926
|
-
control(body, options = {}) {
|
|
927
|
-
return jsonRequest(this.transport, "POST", this.path + "/control", body, Object.fromEntries(Object.entries({ "X-Workspace-ID": options.xWorkspaceId })
|
|
928
|
-
.filter(([, value]) => value !== undefined && value !== null)
|
|
929
|
-
.map(([key, value]) => [key, String(value)])), { signal: options.signal, query: options.query });
|
|
930
|
-
}
|
|
931
|
-
/** POST /api/v1/desktop-assistance/{assistance_id}/disconnect. Preserves response metadata; mutations are not replayed. */
|
|
932
|
-
disconnect(body, options = {}) {
|
|
933
|
-
return jsonRequest(this.transport, "POST", this.path + "/disconnect", body, Object.fromEntries(Object.entries({ "X-Workspace-ID": options.xWorkspaceId })
|
|
934
|
-
.filter(([, value]) => value !== undefined && value !== null)
|
|
935
|
-
.map(([key, value]) => [key, String(value)])), { signal: options.signal });
|
|
936
|
-
}
|
|
937
|
-
/** POST /api/v1/desktop-assistance/{assistance_id}/request-control. Preserves response metadata; mutations are not replayed. */
|
|
938
|
-
requestControl(options = {}) {
|
|
939
|
-
return jsonRequest(this.transport, "POST", this.path + "/request-control", undefined, Object.fromEntries(Object.entries({ "X-Workspace-ID": options.xWorkspaceId })
|
|
940
|
-
.filter(([, value]) => value !== undefined && value !== null)
|
|
941
|
-
.map(([key, value]) => [key, String(value)])), { signal: options.signal });
|
|
942
|
-
}
|
|
943
|
-
/** POST /api/v1/desktop-assistance/{assistance_id}/view. Preserves response metadata; mutations are not replayed. */
|
|
944
|
-
view(body, options = {}) {
|
|
945
|
-
return jsonRequest(this.transport, "POST", this.path + "/view", body, Object.fromEntries(Object.entries({ "X-Workspace-ID": options.xWorkspaceId })
|
|
946
|
-
.filter(([, value]) => value !== undefined && value !== null)
|
|
947
|
-
.map(([key, value]) => [key, String(value)])), { signal: options.signal, query: options.query });
|
|
948
|
-
}
|
|
949
|
-
}
|
|
950
1076
|
export class DevicesResource {
|
|
951
1077
|
transport;
|
|
952
1078
|
path;
|
|
@@ -1254,9 +1380,18 @@ export class EnvironmentsEnvironmentIdResource {
|
|
|
1254
1380
|
get creation() {
|
|
1255
1381
|
return new EnvironmentsEnvironmentIdCreationResource(this.transport, this.path + "/creation");
|
|
1256
1382
|
}
|
|
1383
|
+
get desktopControl() {
|
|
1384
|
+
return new EnvironmentsEnvironmentIdDesktopControlResource(this.transport, this.path + "/desktop-control");
|
|
1385
|
+
}
|
|
1257
1386
|
get desktopPreview() {
|
|
1258
1387
|
return new EnvironmentsEnvironmentIdDesktopPreviewResource(this.transport, this.path + "/desktop-preview");
|
|
1259
1388
|
}
|
|
1389
|
+
/** POST /api/v1/environments/{environment_id}/desktop-viewer. Preserves response metadata; mutations are not replayed. */
|
|
1390
|
+
desktopViewer(body, options = {}) {
|
|
1391
|
+
return jsonRequest(this.transport, "POST", this.path + "/desktop-viewer", body, Object.fromEntries(Object.entries({ "X-Workspace-ID": options.xWorkspaceId })
|
|
1392
|
+
.filter(([, value]) => value !== undefined && value !== null)
|
|
1393
|
+
.map(([key, value]) => [key, String(value)])), { signal: options.signal });
|
|
1394
|
+
}
|
|
1260
1395
|
get metricsBinding() {
|
|
1261
1396
|
return new EnvironmentsEnvironmentIdMetricsBindingResource(this.transport, this.path + "/metrics-binding");
|
|
1262
1397
|
}
|
|
@@ -1310,6 +1445,44 @@ export class EnvironmentsEnvironmentIdCreationResource {
|
|
|
1310
1445
|
.map(([key, value]) => [key, String(value)])), { signal: options.signal });
|
|
1311
1446
|
}
|
|
1312
1447
|
}
|
|
1448
|
+
export class EnvironmentsEnvironmentIdDesktopControlResource {
|
|
1449
|
+
transport;
|
|
1450
|
+
path;
|
|
1451
|
+
constructor(transport, path) {
|
|
1452
|
+
this.transport = transport;
|
|
1453
|
+
this.path = path;
|
|
1454
|
+
}
|
|
1455
|
+
/** GET /api/v1/environments/{environment_id}/desktop-control. Preserves response metadata; mutations are not replayed. */
|
|
1456
|
+
get(options = {}) {
|
|
1457
|
+
return jsonRequest(this.transport, "GET", this.path, undefined, Object.fromEntries(Object.entries({ "X-Workspace-ID": options.xWorkspaceId })
|
|
1458
|
+
.filter(([, value]) => value !== undefined && value !== null)
|
|
1459
|
+
.map(([key, value]) => [key, String(value)])), { signal: options.signal });
|
|
1460
|
+
}
|
|
1461
|
+
/** POST /api/v1/environments/{environment_id}/desktop-control/handback. Preserves response metadata; mutations are not replayed. */
|
|
1462
|
+
handback(options) {
|
|
1463
|
+
return jsonRequest(this.transport, "POST", this.path + "/handback", undefined, Object.fromEntries(Object.entries({
|
|
1464
|
+
"If-Match": options.ifMatch,
|
|
1465
|
+
"X-Workspace-ID": options.xWorkspaceId,
|
|
1466
|
+
})
|
|
1467
|
+
.filter(([, value]) => value !== undefined && value !== null)
|
|
1468
|
+
.map(([key, value]) => [key, String(value)])), { signal: options.signal });
|
|
1469
|
+
}
|
|
1470
|
+
/** POST /api/v1/environments/{environment_id}/desktop-control/renew. Preserves response metadata; mutations are not replayed. */
|
|
1471
|
+
renew(body, options = {}) {
|
|
1472
|
+
return jsonRequest(this.transport, "POST", this.path + "/renew", body, Object.fromEntries(Object.entries({ "X-Workspace-ID": options.xWorkspaceId })
|
|
1473
|
+
.filter(([, value]) => value !== undefined && value !== null)
|
|
1474
|
+
.map(([key, value]) => [key, String(value)])), { signal: options.signal });
|
|
1475
|
+
}
|
|
1476
|
+
/** POST /api/v1/environments/{environment_id}/desktop-control/takeover. Preserves response metadata; mutations are not replayed. */
|
|
1477
|
+
takeover(body, options) {
|
|
1478
|
+
return jsonRequest(this.transport, "POST", this.path + "/takeover", body, Object.fromEntries(Object.entries({
|
|
1479
|
+
"If-Match": options.ifMatch,
|
|
1480
|
+
"X-Workspace-ID": options.xWorkspaceId,
|
|
1481
|
+
})
|
|
1482
|
+
.filter(([, value]) => value !== undefined && value !== null)
|
|
1483
|
+
.map(([key, value]) => [key, String(value)])), { signal: options.signal });
|
|
1484
|
+
}
|
|
1485
|
+
}
|
|
1313
1486
|
export class EnvironmentsEnvironmentIdDesktopPreviewResource {
|
|
1314
1487
|
transport;
|
|
1315
1488
|
path;
|
|
@@ -2706,12 +2879,6 @@ export class RunsRunIdResource {
|
|
|
2706
2879
|
get contents() {
|
|
2707
2880
|
return new RunsRunIdContentsResource(this.transport, this.path + "/contents");
|
|
2708
2881
|
}
|
|
2709
|
-
get desktopAssistance() {
|
|
2710
|
-
return new RunsRunIdDesktopAssistanceResource(this.transport, this.path + "/desktop-assistance");
|
|
2711
|
-
}
|
|
2712
|
-
get desktopControl() {
|
|
2713
|
-
return new RunsRunIdDesktopControlResource(this.transport, this.path + "/desktop-control");
|
|
2714
|
-
}
|
|
2715
2882
|
/** POST /api/v1/runs/{run_id}/fork. Preserves response metadata; mutations are not replayed. */
|
|
2716
2883
|
fork(body, options) {
|
|
2717
2884
|
return jsonRequest(this.transport, "POST", this.path + "/fork", body, Object.fromEntries(Object.entries({
|
|
@@ -2896,57 +3063,6 @@ export class RunsRunIdContentsContentIdResource {
|
|
|
2896
3063
|
.map(([key, value]) => [key, String(value)])), { signal: options.signal, query: options.query });
|
|
2897
3064
|
}
|
|
2898
3065
|
}
|
|
2899
|
-
export class RunsRunIdDesktopAssistanceResource {
|
|
2900
|
-
transport;
|
|
2901
|
-
path;
|
|
2902
|
-
constructor(transport, path) {
|
|
2903
|
-
this.transport = transport;
|
|
2904
|
-
this.path = path;
|
|
2905
|
-
}
|
|
2906
|
-
ref(value) {
|
|
2907
|
-
return new RunsRunIdDesktopAssistanceCallIdResource(this.transport, this.path + "/" + encodeURIComponent(selector(String(value))));
|
|
2908
|
-
}
|
|
2909
|
-
}
|
|
2910
|
-
export class RunsRunIdDesktopAssistanceCallIdResource {
|
|
2911
|
-
transport;
|
|
2912
|
-
path;
|
|
2913
|
-
constructor(transport, path) {
|
|
2914
|
-
this.transport = transport;
|
|
2915
|
-
this.path = path;
|
|
2916
|
-
}
|
|
2917
|
-
/** GET /api/v1/runs/{run_id}/desktop-assistance/{call_id}. Preserves response metadata; mutations are not replayed. */
|
|
2918
|
-
get(options = {}) {
|
|
2919
|
-
return jsonRequest(this.transport, "GET", this.path, undefined, Object.fromEntries(Object.entries({ "X-Workspace-ID": options.xWorkspaceId })
|
|
2920
|
-
.filter(([, value]) => value !== undefined && value !== null)
|
|
2921
|
-
.map(([key, value]) => [key, String(value)])), { signal: options.signal });
|
|
2922
|
-
}
|
|
2923
|
-
}
|
|
2924
|
-
export class RunsRunIdDesktopControlResource {
|
|
2925
|
-
transport;
|
|
2926
|
-
path;
|
|
2927
|
-
constructor(transport, path) {
|
|
2928
|
-
this.transport = transport;
|
|
2929
|
-
this.path = path;
|
|
2930
|
-
}
|
|
2931
|
-
/** GET /api/v1/runs/{run_id}/desktop-control. Preserves response metadata; mutations are not replayed. */
|
|
2932
|
-
get(options = {}) {
|
|
2933
|
-
return jsonRequest(this.transport, "GET", this.path, undefined, Object.fromEntries(Object.entries({ "X-Workspace-ID": options.xWorkspaceId })
|
|
2934
|
-
.filter(([, value]) => value !== undefined && value !== null)
|
|
2935
|
-
.map(([key, value]) => [key, String(value)])), { signal: options.signal });
|
|
2936
|
-
}
|
|
2937
|
-
/** POST /api/v1/runs/{run_id}/desktop-control. Preserves response metadata; mutations are not replayed. */
|
|
2938
|
-
create(body, options = {}) {
|
|
2939
|
-
return jsonRequest(this.transport, "POST", this.path, body, Object.fromEntries(Object.entries({ "X-Workspace-ID": options.xWorkspaceId })
|
|
2940
|
-
.filter(([, value]) => value !== undefined && value !== null)
|
|
2941
|
-
.map(([key, value]) => [key, String(value)])), { signal: options.signal });
|
|
2942
|
-
}
|
|
2943
|
-
/** POST /api/v1/runs/{run_id}/desktop-control/view. Preserves response metadata; mutations are not replayed. */
|
|
2944
|
-
view(body, options = {}) {
|
|
2945
|
-
return jsonRequest(this.transport, "POST", this.path + "/view", body, Object.fromEntries(Object.entries({ "X-Workspace-ID": options.xWorkspaceId })
|
|
2946
|
-
.filter(([, value]) => value !== undefined && value !== null)
|
|
2947
|
-
.map(([key, value]) => [key, String(value)])), { signal: options.signal });
|
|
2948
|
-
}
|
|
2949
|
-
}
|
|
2950
3066
|
export class RunsRunIdImagesResource {
|
|
2951
3067
|
transport;
|
|
2952
3068
|
path;
|
|
@@ -3666,6 +3782,9 @@ export class ThreadsThreadIdResource {
|
|
|
3666
3782
|
.filter(([, value]) => value !== undefined && value !== null)
|
|
3667
3783
|
.map(([key, value]) => [key, String(value)])), { signal: options.signal });
|
|
3668
3784
|
}
|
|
3785
|
+
get browser() {
|
|
3786
|
+
return new ThreadsThreadIdBrowserResource(this.transport, this.path + "/browser");
|
|
3787
|
+
}
|
|
3669
3788
|
get environments() {
|
|
3670
3789
|
return new ThreadsThreadIdEnvironmentsResource(this.transport, this.path + "/environments");
|
|
3671
3790
|
}
|
|
@@ -3685,6 +3804,29 @@ export class ThreadsThreadIdResource {
|
|
|
3685
3804
|
return new ThreadsThreadIdToolExecutionsResource(this.transport, this.path + "/tool-executions");
|
|
3686
3805
|
}
|
|
3687
3806
|
}
|
|
3807
|
+
export class ThreadsThreadIdBrowserResource {
|
|
3808
|
+
transport;
|
|
3809
|
+
path;
|
|
3810
|
+
constructor(transport, path) {
|
|
3811
|
+
this.transport = transport;
|
|
3812
|
+
this.path = path;
|
|
3813
|
+
}
|
|
3814
|
+
/** GET /api/v1/threads/{thread_id}/browser. Preserves response metadata; mutations are not replayed. */
|
|
3815
|
+
get(options = {}) {
|
|
3816
|
+
return jsonRequest(this.transport, "GET", this.path, undefined, Object.fromEntries(Object.entries({ "X-Workspace-ID": options.xWorkspaceId })
|
|
3817
|
+
.filter(([, value]) => value !== undefined && value !== null)
|
|
3818
|
+
.map(([key, value]) => [key, String(value)])), { signal: options.signal });
|
|
3819
|
+
}
|
|
3820
|
+
/** PUT /api/v1/threads/{thread_id}/browser. Preserves response metadata; mutations are not replayed. */
|
|
3821
|
+
replace(body, options) {
|
|
3822
|
+
return jsonRequest(this.transport, "PUT", this.path, body, Object.fromEntries(Object.entries({
|
|
3823
|
+
"If-Match": options.ifMatch,
|
|
3824
|
+
"X-Workspace-ID": options.xWorkspaceId,
|
|
3825
|
+
})
|
|
3826
|
+
.filter(([, value]) => value !== undefined && value !== null)
|
|
3827
|
+
.map(([key, value]) => [key, String(value)])), { signal: options.signal });
|
|
3828
|
+
}
|
|
3829
|
+
}
|
|
3688
3830
|
export class ThreadsThreadIdEnvironmentsResource {
|
|
3689
3831
|
transport;
|
|
3690
3832
|
path;
|
|
@@ -4003,7 +4145,7 @@ export class ToolsetsResource {
|
|
|
4003
4145
|
list(options = {}) {
|
|
4004
4146
|
return jsonRequest(this.transport, "GET", this.path, undefined, Object.fromEntries(Object.entries({ "X-Workspace-ID": options.xWorkspaceId })
|
|
4005
4147
|
.filter(([, value]) => value !== undefined && value !== null)
|
|
4006
|
-
.map(([key, value]) => [key, String(value)])), { signal: options.signal });
|
|
4148
|
+
.map(([key, value]) => [key, String(value)])), { signal: options.signal, query: options.query });
|
|
4007
4149
|
}
|
|
4008
4150
|
get definitions() {
|
|
4009
4151
|
return new ToolsetsDefinitionsResource(this.transport, this.path + "/definitions");
|