@converge.ai/a13n 0.0.93 → 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/README.md +87 -61
- package/THIRD_PARTY_NOTICES.txt +83 -0
- package/dist/client.d.ts +1 -1
- package/dist/client.js +2 -2
- package/dist/client.js.map +1 -1
- package/dist/dispatch.d.ts +6 -0
- package/dist/dispatch.d.ts.map +1 -0
- package/dist/dispatch.js +19 -0
- package/dist/dispatch.js.map +1 -0
- package/dist/errors.d.ts +23 -1
- package/dist/errors.d.ts.map +1 -1
- package/dist/errors.js +38 -5
- package/dist/errors.js.map +1 -1
- package/dist/index.d.ts +7 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -1
- package/dist/index.js.map +1 -1
- package/dist/resources/base.d.ts.map +1 -1
- package/dist/resources/base.js +5 -2
- package/dist/resources/base.js.map +1 -1
- package/dist/resources/generated.d.ts +3638 -1221
- package/dist/resources/generated.d.ts.map +1 -1
- package/dist/resources/generated.js +2312 -495
- package/dist/resources/generated.js.map +1 -1
- package/dist/resources/interaction.d.ts +1 -7
- package/dist/resources/interaction.d.ts.map +1 -1
- package/dist/resources/interaction.js +2 -30
- package/dist/resources/interaction.js.map +1 -1
- package/dist/schema.d.ts +15555 -6210
- package/dist/schema.d.ts.map +1 -1
- package/dist/semantic.d.ts +107 -119
- package/dist/semantic.d.ts.map +1 -1
- package/dist/semantic.js +461 -168
- package/dist/semantic.js.map +1 -1
- package/dist/session-stream-schema.d.ts +1851 -0
- package/dist/session-stream-schema.d.ts.map +1 -0
- package/dist/session-stream-schema.js +2 -0
- package/dist/session-stream-schema.js.map +1 -0
- package/dist/session-stream-validation.d.ts +129 -0
- package/dist/session-stream-validation.d.ts.map +1 -0
- package/dist/session-stream-validation.js +30324 -0
- package/dist/session-stream-validation.js.map +1 -0
- package/dist/streams/session-stream.d.ts +12 -0
- package/dist/streams/session-stream.d.ts.map +1 -0
- package/dist/streams/session-stream.js +36 -0
- package/dist/streams/session-stream.js.map +1 -0
- package/dist/streams/sse.d.ts +5 -1
- package/dist/streams/sse.d.ts.map +1 -1
- package/dist/streams/sse.js +11 -4
- package/dist/streams/sse.js.map +1 -1
- package/dist/streams/thread-stream.d.ts +8 -2
- package/dist/streams/thread-stream.d.ts.map +1 -1
- package/dist/streams/thread-stream.js +4 -2
- package/dist/streams/thread-stream.js.map +1 -1
- package/dist/transport.d.ts.map +1 -1
- package/dist/transport.js +3 -0
- package/dist/transport.js.map +1 -1
- package/dist/workflow.d.ts +117 -0
- package/dist/workflow.d.ts.map +1 -0
- package/dist/workflow.js +90 -0
- package/dist/workflow.js.map +1 -0
- package/dist/workspace-scope.d.ts.map +1 -1
- package/dist/workspace-scope.js +132 -0
- package/dist/workspace-scope.js.map +1 -1
- package/openapi.json +35484 -11086
- package/package.json +5 -1
|
@@ -19,12 +19,27 @@ 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
|
+
}
|
|
28
|
+
get builtinSkills() {
|
|
29
|
+
return new BuiltinSkillsResource(this.transport, "/api/v1/builtin-skills");
|
|
30
|
+
}
|
|
22
31
|
get connections() {
|
|
23
32
|
return new ConnectionsResource(this.transport, "/api/v1/connections");
|
|
24
33
|
}
|
|
25
34
|
get connectorProviders() {
|
|
26
35
|
return new ConnectorProvidersResource(this.transport, "/api/v1/connector-providers");
|
|
27
36
|
}
|
|
37
|
+
get devices() {
|
|
38
|
+
return new DevicesResource(this.transport, "/api/v1/devices");
|
|
39
|
+
}
|
|
40
|
+
get environmentProviderOptions() {
|
|
41
|
+
return new EnvironmentProviderOptionsResource(this.transport, "/api/v1/environment-provider-options");
|
|
42
|
+
}
|
|
28
43
|
get environmentProviders() {
|
|
29
44
|
return new EnvironmentProvidersResource(this.transport, "/api/v1/environment-providers");
|
|
30
45
|
}
|
|
@@ -34,6 +49,18 @@ export class ServiceResources {
|
|
|
34
49
|
get environments() {
|
|
35
50
|
return new EnvironmentsResource(this.transport, "/api/v1/environments");
|
|
36
51
|
}
|
|
52
|
+
/** POST /api/v1/finding-agent. Preserves response metadata; mutations are not replayed. */
|
|
53
|
+
findingAgent(options = {}) {
|
|
54
|
+
return jsonRequest(this.transport, "POST", "/api/v1/finding-agent", undefined, Object.fromEntries(Object.entries({ "X-Workspace-ID": options.xWorkspaceId })
|
|
55
|
+
.filter(([, value]) => value !== undefined && value !== null)
|
|
56
|
+
.map(([key, value]) => [key, String(value)])), { signal: options.signal });
|
|
57
|
+
}
|
|
58
|
+
get findingAnalyses() {
|
|
59
|
+
return new FindingAnalysesResource(this.transport, "/api/v1/finding-analyses");
|
|
60
|
+
}
|
|
61
|
+
get findings() {
|
|
62
|
+
return new FindingsResource(this.transport, "/api/v1/findings");
|
|
63
|
+
}
|
|
37
64
|
get invitations() {
|
|
38
65
|
return new InvitationsResource(this.transport, "/api/v1/invitations");
|
|
39
66
|
}
|
|
@@ -49,6 +76,15 @@ export class ServiceResources {
|
|
|
49
76
|
get memoryProviders() {
|
|
50
77
|
return new MemoryProvidersResource(this.transport, "/api/v1/memory-providers");
|
|
51
78
|
}
|
|
79
|
+
get memorySpaces() {
|
|
80
|
+
return new MemorySpacesResource(this.transport, "/api/v1/memory-spaces");
|
|
81
|
+
}
|
|
82
|
+
get metricsDashboards() {
|
|
83
|
+
return new MetricsDashboardsResource(this.transport, "/api/v1/metrics-dashboards");
|
|
84
|
+
}
|
|
85
|
+
get metricsDataSources() {
|
|
86
|
+
return new MetricsDataSourcesResource(this.transport, "/api/v1/metrics-data-sources");
|
|
87
|
+
}
|
|
52
88
|
get modelCatalog() {
|
|
53
89
|
return new ModelCatalogResource(this.transport, "/api/v1/model-catalog");
|
|
54
90
|
}
|
|
@@ -61,12 +97,18 @@ export class ServiceResources {
|
|
|
61
97
|
get organizations() {
|
|
62
98
|
return new OrganizationsResource(this.transport, "/api/v1/organizations");
|
|
63
99
|
}
|
|
100
|
+
get plugins() {
|
|
101
|
+
return new PluginsResource(this.transport, "/api/v1/plugins");
|
|
102
|
+
}
|
|
64
103
|
get providerTypes() {
|
|
65
104
|
return new ProviderTypesResource(this.transport, "/api/v1/provider-types");
|
|
66
105
|
}
|
|
67
106
|
get runs() {
|
|
68
107
|
return new RunsResource(this.transport, "/api/v1/runs");
|
|
69
108
|
}
|
|
109
|
+
get schedules() {
|
|
110
|
+
return new SchedulesResource(this.transport, "/api/v1/schedules");
|
|
111
|
+
}
|
|
70
112
|
get sessions() {
|
|
71
113
|
return new SessionsResource(this.transport, "/api/v1/sessions");
|
|
72
114
|
}
|
|
@@ -242,7 +284,6 @@ export class AgentsAgentIdRevisionsResource {
|
|
|
242
284
|
this.transport = transport;
|
|
243
285
|
this.path = path;
|
|
244
286
|
}
|
|
245
|
-
/** GET /api/v1/agents/{agent_id}/revisions. Preserves response metadata; mutations are not replayed. */
|
|
246
287
|
list(options = {}) {
|
|
247
288
|
return jsonRequest(this.transport, "GET", this.path, undefined, Object.fromEntries(Object.entries({ "X-Workspace-ID": options.xWorkspaceId })
|
|
248
289
|
.filter(([, value]) => value !== undefined && value !== null)
|
|
@@ -275,11 +316,13 @@ export class AgentsAgentIdRevisionsRevisionIdResource {
|
|
|
275
316
|
this.transport = transport;
|
|
276
317
|
this.path = path;
|
|
277
318
|
}
|
|
278
|
-
/** GET /api/v1/agents/{agent_id}/revisions/{revision_id}. Preserves response metadata; mutations are not replayed. */
|
|
279
319
|
get(options = {}) {
|
|
280
320
|
return jsonRequest(this.transport, "GET", this.path, undefined, Object.fromEntries(Object.entries({ "X-Workspace-ID": options.xWorkspaceId })
|
|
281
321
|
.filter(([, value]) => value !== undefined && value !== null)
|
|
282
|
-
.map(([key, value]) => [key, String(value)])), { signal: options.signal });
|
|
322
|
+
.map(([key, value]) => [key, String(value)])), { signal: options.signal, query: options.query });
|
|
323
|
+
}
|
|
324
|
+
get compare() {
|
|
325
|
+
return new AgentsAgentIdRevisionsRevisionIdCompareResource(this.transport, this.path + "/compare");
|
|
283
326
|
}
|
|
284
327
|
/** POST /api/v1/agents/{agent_id}/revisions/{revision_id}/set-default. Preserves response metadata; mutations are not replayed. */
|
|
285
328
|
setDefault(options) {
|
|
@@ -291,6 +334,20 @@ export class AgentsAgentIdRevisionsRevisionIdResource {
|
|
|
291
334
|
.map(([key, value]) => [key, String(value)])), { signal: options.signal });
|
|
292
335
|
}
|
|
293
336
|
}
|
|
337
|
+
export class AgentsAgentIdRevisionsRevisionIdCompareResource {
|
|
338
|
+
transport;
|
|
339
|
+
path;
|
|
340
|
+
constructor(transport, path) {
|
|
341
|
+
this.transport = transport;
|
|
342
|
+
this.path = path;
|
|
343
|
+
}
|
|
344
|
+
/** GET /api/v1/agents/{agent_id}/revisions/{revision_id}/compare. Preserves response metadata; mutations are not replayed. */
|
|
345
|
+
get(options) {
|
|
346
|
+
return jsonRequest(this.transport, "GET", this.path, undefined, Object.fromEntries(Object.entries({ "X-Workspace-ID": options.xWorkspaceId })
|
|
347
|
+
.filter(([, value]) => value !== undefined && value !== null)
|
|
348
|
+
.map(([key, value]) => [key, String(value)])), { signal: options.signal, query: options.query });
|
|
349
|
+
}
|
|
350
|
+
}
|
|
294
351
|
export class AssetsResource {
|
|
295
352
|
transport;
|
|
296
353
|
path;
|
|
@@ -455,6 +512,230 @@ export class AuthSessionResource {
|
|
|
455
512
|
});
|
|
456
513
|
}
|
|
457
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
|
+
}
|
|
687
|
+
export class BuiltinSkillsResource {
|
|
688
|
+
transport;
|
|
689
|
+
path;
|
|
690
|
+
constructor(transport, path) {
|
|
691
|
+
this.transport = transport;
|
|
692
|
+
this.path = path;
|
|
693
|
+
}
|
|
694
|
+
/** GET /api/v1/builtin-skills. Preserves response metadata; mutations are not replayed. */
|
|
695
|
+
list(options = {}) {
|
|
696
|
+
return jsonRequest(this.transport, "GET", this.path, undefined, Object.fromEntries(Object.entries({ "X-Workspace-ID": options.xWorkspaceId })
|
|
697
|
+
.filter(([, value]) => value !== undefined && value !== null)
|
|
698
|
+
.map(([key, value]) => [key, String(value)])), { signal: options.signal });
|
|
699
|
+
}
|
|
700
|
+
ref(value) {
|
|
701
|
+
return new BuiltinSkillsNameResource(this.transport, this.path + "/" + encodeURIComponent(selector(String(value))));
|
|
702
|
+
}
|
|
703
|
+
}
|
|
704
|
+
export class BuiltinSkillsNameResource {
|
|
705
|
+
transport;
|
|
706
|
+
path;
|
|
707
|
+
constructor(transport, path) {
|
|
708
|
+
this.transport = transport;
|
|
709
|
+
this.path = path;
|
|
710
|
+
}
|
|
711
|
+
/** GET /api/v1/builtin-skills/{name}. Preserves response metadata; mutations are not replayed. */
|
|
712
|
+
get(options = {}) {
|
|
713
|
+
return jsonRequest(this.transport, "GET", this.path, undefined, Object.fromEntries(Object.entries({ "X-Workspace-ID": options.xWorkspaceId })
|
|
714
|
+
.filter(([, value]) => value !== undefined && value !== null)
|
|
715
|
+
.map(([key, value]) => [key, String(value)])), { signal: options.signal });
|
|
716
|
+
}
|
|
717
|
+
get content() {
|
|
718
|
+
return new BuiltinSkillsNameContentResource(this.transport, this.path + "/content");
|
|
719
|
+
}
|
|
720
|
+
}
|
|
721
|
+
export class BuiltinSkillsNameContentResource {
|
|
722
|
+
transport;
|
|
723
|
+
path;
|
|
724
|
+
constructor(transport, path) {
|
|
725
|
+
this.transport = transport;
|
|
726
|
+
this.path = path;
|
|
727
|
+
}
|
|
728
|
+
/** GET /api/v1/builtin-skills/{name}/content. Caller owns and closes the unbuffered body. */
|
|
729
|
+
get(options = {}) {
|
|
730
|
+
return binaryRequest(this.transport, this.path, {
|
|
731
|
+
...{ signal: options.signal, query: options.query },
|
|
732
|
+
headers: Object.fromEntries(Object.entries({ "X-Workspace-ID": options.xWorkspaceId })
|
|
733
|
+
.filter(([, value]) => value !== undefined && value !== null)
|
|
734
|
+
.map(([key, value]) => [key, String(value)])),
|
|
735
|
+
accept: "application/zip",
|
|
736
|
+
});
|
|
737
|
+
}
|
|
738
|
+
}
|
|
458
739
|
export class ConnectionsResource {
|
|
459
740
|
transport;
|
|
460
741
|
path;
|
|
@@ -583,6 +864,47 @@ export class ConnectionsConnectionIdToolsResource {
|
|
|
583
864
|
.filter(([, value]) => value !== undefined && value !== null)
|
|
584
865
|
.map(([key, value]) => [key, String(value)])), { signal: options.signal });
|
|
585
866
|
}
|
|
867
|
+
get definitions() {
|
|
868
|
+
return new ConnectionsConnectionIdToolsDefinitionsResource(this.transport, this.path + "/definitions");
|
|
869
|
+
}
|
|
870
|
+
get index() {
|
|
871
|
+
return new ConnectionsConnectionIdToolsIndexResource(this.transport, this.path + "/index");
|
|
872
|
+
}
|
|
873
|
+
}
|
|
874
|
+
export class ConnectionsConnectionIdToolsDefinitionsResource {
|
|
875
|
+
transport;
|
|
876
|
+
path;
|
|
877
|
+
constructor(transport, path) {
|
|
878
|
+
this.transport = transport;
|
|
879
|
+
this.path = path;
|
|
880
|
+
}
|
|
881
|
+
/** GET /api/v1/connections/{connection_id}/tools/definitions. Preserves response metadata; mutations are not replayed. */
|
|
882
|
+
list(options) {
|
|
883
|
+
return jsonRequest(this.transport, "GET", this.path, undefined, Object.fromEntries(Object.entries({ "X-Workspace-ID": options.xWorkspaceId })
|
|
884
|
+
.filter(([, value]) => value !== undefined && value !== null)
|
|
885
|
+
.map(([key, value]) => [key, String(value)])), { signal: options.signal, query: options.query });
|
|
886
|
+
}
|
|
887
|
+
}
|
|
888
|
+
export class ConnectionsConnectionIdToolsIndexResource {
|
|
889
|
+
transport;
|
|
890
|
+
path;
|
|
891
|
+
constructor(transport, path) {
|
|
892
|
+
this.transport = transport;
|
|
893
|
+
this.path = path;
|
|
894
|
+
}
|
|
895
|
+
/** GET /api/v1/connections/{connection_id}/tools/index. Preserves response metadata; mutations are not replayed. */
|
|
896
|
+
list(options = {}) {
|
|
897
|
+
return jsonRequest(this.transport, "GET", this.path, undefined, Object.fromEntries(Object.entries({ "X-Workspace-ID": options.xWorkspaceId })
|
|
898
|
+
.filter(([, value]) => value !== undefined && value !== null)
|
|
899
|
+
.map(([key, value]) => [key, String(value)])), { signal: options.signal, query: options.query });
|
|
900
|
+
}
|
|
901
|
+
pages(options = {}) {
|
|
902
|
+
const query = snapshot(options.query ?? {});
|
|
903
|
+
return new PageIterator(query.cursor, (cursor) => this.list({ ...options, query: withCursor(query, cursor) }), (value) => value);
|
|
904
|
+
}
|
|
905
|
+
items(options = {}) {
|
|
906
|
+
return flattenPages(this.pages(options), (value) => value);
|
|
907
|
+
}
|
|
586
908
|
}
|
|
587
909
|
export class ConnectorProvidersResource {
|
|
588
910
|
transport;
|
|
@@ -621,6 +943,15 @@ export class ConnectorProvidersProviderIdResource {
|
|
|
621
943
|
this.transport = transport;
|
|
622
944
|
this.path = path;
|
|
623
945
|
}
|
|
946
|
+
/** DELETE /api/v1/connector-providers/{provider_id}. Preserves response metadata; mutations are not replayed. */
|
|
947
|
+
delete(options) {
|
|
948
|
+
return jsonRequest(this.transport, "DELETE", this.path, undefined, Object.fromEntries(Object.entries({
|
|
949
|
+
"If-Match": options.ifMatch,
|
|
950
|
+
"X-Workspace-ID": options.xWorkspaceId,
|
|
951
|
+
})
|
|
952
|
+
.filter(([, value]) => value !== undefined && value !== null)
|
|
953
|
+
.map(([key, value]) => [key, String(value)])), { signal: options.signal });
|
|
954
|
+
}
|
|
624
955
|
/** GET /api/v1/connector-providers/{provider_id}. Preserves response metadata; mutations are not replayed. */
|
|
625
956
|
get(options = {}) {
|
|
626
957
|
return jsonRequest(this.transport, "GET", this.path, undefined, Object.fromEntries(Object.entries({ "X-Workspace-ID": options.xWorkspaceId })
|
|
@@ -700,74 +1031,56 @@ export class ConnectorProvidersProviderIdAppsAppActionsResource {
|
|
|
700
1031
|
.filter(([, value]) => value !== undefined && value !== null)
|
|
701
1032
|
.map(([key, value]) => [key, String(value)])), { signal: options.signal });
|
|
702
1033
|
}
|
|
1034
|
+
get definitions() {
|
|
1035
|
+
return new ConnectorProvidersProviderIdAppsAppActionsDefinitionsResource(this.transport, this.path + "/definitions");
|
|
1036
|
+
}
|
|
1037
|
+
get index() {
|
|
1038
|
+
return new ConnectorProvidersProviderIdAppsAppActionsIndexResource(this.transport, this.path + "/index");
|
|
1039
|
+
}
|
|
703
1040
|
}
|
|
704
|
-
export class
|
|
1041
|
+
export class ConnectorProvidersProviderIdAppsAppActionsDefinitionsResource {
|
|
705
1042
|
transport;
|
|
706
1043
|
path;
|
|
707
1044
|
constructor(transport, path) {
|
|
708
1045
|
this.transport = transport;
|
|
709
1046
|
this.path = path;
|
|
710
1047
|
}
|
|
711
|
-
/** GET /api/v1/
|
|
712
|
-
list(options
|
|
1048
|
+
/** GET /api/v1/connector-providers/{provider_id}/apps/{app}/actions/definitions. Preserves response metadata; mutations are not replayed. */
|
|
1049
|
+
list(options) {
|
|
713
1050
|
return jsonRequest(this.transport, "GET", this.path, undefined, Object.fromEntries(Object.entries({ "X-Workspace-ID": options.xWorkspaceId })
|
|
714
1051
|
.filter(([, value]) => value !== undefined && value !== null)
|
|
715
1052
|
.map(([key, value]) => [key, String(value)])), { signal: options.signal, query: options.query });
|
|
716
1053
|
}
|
|
717
|
-
pages(options = {}) {
|
|
718
|
-
const query = snapshot(options.query ?? {});
|
|
719
|
-
return new PageIterator(query.cursor, (cursor) => this.list({ ...options, query: withCursor(query, cursor) }), (value) => value);
|
|
720
|
-
}
|
|
721
|
-
items(options = {}) {
|
|
722
|
-
return flattenPages(this.pages(options), (value) => value);
|
|
723
|
-
}
|
|
724
|
-
/** POST /api/v1/environment-providers. Preserves response metadata; mutations are not replayed. */
|
|
725
|
-
create(body, options = {}) {
|
|
726
|
-
return jsonRequest(this.transport, "POST", this.path, body, Object.fromEntries(Object.entries({ "X-Workspace-ID": options.xWorkspaceId })
|
|
727
|
-
.filter(([, value]) => value !== undefined && value !== null)
|
|
728
|
-
.map(([key, value]) => [key, String(value)])), { signal: options.signal });
|
|
729
|
-
}
|
|
730
|
-
ref(value) {
|
|
731
|
-
return new EnvironmentProvidersProviderIdResource(this.transport, this.path + "/" + encodeURIComponent(selector(String(value))));
|
|
732
|
-
}
|
|
733
1054
|
}
|
|
734
|
-
export class
|
|
1055
|
+
export class ConnectorProvidersProviderIdAppsAppActionsIndexResource {
|
|
735
1056
|
transport;
|
|
736
1057
|
path;
|
|
737
1058
|
constructor(transport, path) {
|
|
738
1059
|
this.transport = transport;
|
|
739
1060
|
this.path = path;
|
|
740
1061
|
}
|
|
741
|
-
/** GET /api/v1/
|
|
742
|
-
|
|
1062
|
+
/** GET /api/v1/connector-providers/{provider_id}/apps/{app}/actions/index. Preserves response metadata; mutations are not replayed. */
|
|
1063
|
+
list(options = {}) {
|
|
743
1064
|
return jsonRequest(this.transport, "GET", this.path, undefined, Object.fromEntries(Object.entries({ "X-Workspace-ID": options.xWorkspaceId })
|
|
744
1065
|
.filter(([, value]) => value !== undefined && value !== null)
|
|
745
|
-
.map(([key, value]) => [key, String(value)])), { signal: options.signal });
|
|
1066
|
+
.map(([key, value]) => [key, String(value)])), { signal: options.signal, query: options.query });
|
|
746
1067
|
}
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
return
|
|
750
|
-
"If-Match": options.ifMatch,
|
|
751
|
-
"X-Workspace-ID": options.xWorkspaceId,
|
|
752
|
-
})
|
|
753
|
-
.filter(([, value]) => value !== undefined && value !== null)
|
|
754
|
-
.map(([key, value]) => [key, String(value)])), { signal: options.signal });
|
|
1068
|
+
pages(options = {}) {
|
|
1069
|
+
const query = snapshot(options.query ?? {});
|
|
1070
|
+
return new PageIterator(query.cursor, (cursor) => this.list({ ...options, query: withCursor(query, cursor) }), (value) => value);
|
|
755
1071
|
}
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
return jsonRequest(this.transport, "POST", this.path + "/test", undefined, Object.fromEntries(Object.entries({ "X-Workspace-ID": options.xWorkspaceId })
|
|
759
|
-
.filter(([, value]) => value !== undefined && value !== null)
|
|
760
|
-
.map(([key, value]) => [key, String(value)])), { signal: options.signal });
|
|
1072
|
+
items(options = {}) {
|
|
1073
|
+
return flattenPages(this.pages(options), (value) => value);
|
|
761
1074
|
}
|
|
762
1075
|
}
|
|
763
|
-
export class
|
|
1076
|
+
export class DevicesResource {
|
|
764
1077
|
transport;
|
|
765
1078
|
path;
|
|
766
1079
|
constructor(transport, path) {
|
|
767
1080
|
this.transport = transport;
|
|
768
1081
|
this.path = path;
|
|
769
1082
|
}
|
|
770
|
-
/** GET /api/v1/
|
|
1083
|
+
/** GET /api/v1/devices. Preserves response metadata; mutations are not replayed. */
|
|
771
1084
|
list(options = {}) {
|
|
772
1085
|
return jsonRequest(this.transport, "GET", this.path, undefined, Object.fromEntries(Object.entries({ "X-Workspace-ID": options.xWorkspaceId })
|
|
773
1086
|
.filter(([, value]) => value !== undefined && value !== null)
|
|
@@ -780,30 +1093,39 @@ export class EnvironmentTemplatesResource {
|
|
|
780
1093
|
items(options = {}) {
|
|
781
1094
|
return flattenPages(this.pages(options), (value) => value);
|
|
782
1095
|
}
|
|
783
|
-
/** POST /api/v1/
|
|
1096
|
+
/** POST /api/v1/devices. Preserves response metadata; mutations are not replayed. */
|
|
784
1097
|
create(body, options = {}) {
|
|
785
1098
|
return jsonRequest(this.transport, "POST", this.path, body, Object.fromEntries(Object.entries({ "X-Workspace-ID": options.xWorkspaceId })
|
|
786
1099
|
.filter(([, value]) => value !== undefined && value !== null)
|
|
787
1100
|
.map(([key, value]) => [key, String(value)])), { signal: options.signal });
|
|
788
1101
|
}
|
|
789
1102
|
ref(value) {
|
|
790
|
-
return new
|
|
1103
|
+
return new DevicesDeviceIdResource(this.transport, this.path + "/" + encodeURIComponent(selector(String(value))));
|
|
791
1104
|
}
|
|
792
1105
|
}
|
|
793
|
-
export class
|
|
1106
|
+
export class DevicesDeviceIdResource {
|
|
794
1107
|
transport;
|
|
795
1108
|
path;
|
|
796
1109
|
constructor(transport, path) {
|
|
797
1110
|
this.transport = transport;
|
|
798
1111
|
this.path = path;
|
|
799
1112
|
}
|
|
800
|
-
/**
|
|
1113
|
+
/** DELETE /api/v1/devices/{device_id}. Preserves response metadata; mutations are not replayed. */
|
|
1114
|
+
delete(options) {
|
|
1115
|
+
return jsonRequest(this.transport, "DELETE", this.path, undefined, Object.fromEntries(Object.entries({
|
|
1116
|
+
"If-Match": options.ifMatch,
|
|
1117
|
+
"X-Workspace-ID": options.xWorkspaceId,
|
|
1118
|
+
})
|
|
1119
|
+
.filter(([, value]) => value !== undefined && value !== null)
|
|
1120
|
+
.map(([key, value]) => [key, String(value)])), { signal: options.signal });
|
|
1121
|
+
}
|
|
1122
|
+
/** GET /api/v1/devices/{device_id}. Preserves response metadata; mutations are not replayed. */
|
|
801
1123
|
get(options = {}) {
|
|
802
1124
|
return jsonRequest(this.transport, "GET", this.path, undefined, Object.fromEntries(Object.entries({ "X-Workspace-ID": options.xWorkspaceId })
|
|
803
1125
|
.filter(([, value]) => value !== undefined && value !== null)
|
|
804
1126
|
.map(([key, value]) => [key, String(value)])), { signal: options.signal });
|
|
805
1127
|
}
|
|
806
|
-
/** PATCH /api/v1/
|
|
1128
|
+
/** PATCH /api/v1/devices/{device_id}. Preserves response metadata; mutations are not replayed. */
|
|
807
1129
|
update(body, options) {
|
|
808
1130
|
return jsonRequest(this.transport, "PATCH", this.path, body, Object.fromEntries(Object.entries({
|
|
809
1131
|
"If-Match": options.ifMatch,
|
|
@@ -812,15 +1134,55 @@ export class EnvironmentTemplatesTemplateIdResource {
|
|
|
812
1134
|
.filter(([, value]) => value !== undefined && value !== null)
|
|
813
1135
|
.map(([key, value]) => [key, String(value)])), { signal: options.signal });
|
|
814
1136
|
}
|
|
1137
|
+
get metrics() {
|
|
1138
|
+
return new DevicesDeviceIdMetricsResource(this.transport, this.path + "/metrics");
|
|
1139
|
+
}
|
|
1140
|
+
/** POST /api/v1/devices/{device_id}/rotate-credential. Preserves response metadata; mutations are not replayed. */
|
|
1141
|
+
rotateCredential(options) {
|
|
1142
|
+
return jsonRequest(this.transport, "POST", this.path + "/rotate-credential", undefined, Object.fromEntries(Object.entries({
|
|
1143
|
+
"If-Match": options.ifMatch,
|
|
1144
|
+
"X-Workspace-ID": options.xWorkspaceId,
|
|
1145
|
+
})
|
|
1146
|
+
.filter(([, value]) => value !== undefined && value !== null)
|
|
1147
|
+
.map(([key, value]) => [key, String(value)])), { signal: options.signal });
|
|
1148
|
+
}
|
|
815
1149
|
}
|
|
816
|
-
export class
|
|
1150
|
+
export class DevicesDeviceIdMetricsResource {
|
|
817
1151
|
transport;
|
|
818
1152
|
path;
|
|
819
1153
|
constructor(transport, path) {
|
|
820
1154
|
this.transport = transport;
|
|
821
1155
|
this.path = path;
|
|
822
1156
|
}
|
|
823
|
-
/**
|
|
1157
|
+
/** POST /api/v1/devices/{device_id}/metrics/query. Preserves response metadata; mutations are not replayed. */
|
|
1158
|
+
query(body, options = {}) {
|
|
1159
|
+
return jsonRequest(this.transport, "POST", this.path + "/query", body, Object.fromEntries(Object.entries({ "X-Workspace-ID": options.xWorkspaceId })
|
|
1160
|
+
.filter(([, value]) => value !== undefined && value !== null)
|
|
1161
|
+
.map(([key, value]) => [key, String(value)])), { signal: options.signal });
|
|
1162
|
+
}
|
|
1163
|
+
}
|
|
1164
|
+
export class EnvironmentProviderOptionsResource {
|
|
1165
|
+
transport;
|
|
1166
|
+
path;
|
|
1167
|
+
constructor(transport, path) {
|
|
1168
|
+
this.transport = transport;
|
|
1169
|
+
this.path = path;
|
|
1170
|
+
}
|
|
1171
|
+
/** POST /api/v1/environment-provider-options/vercel. Preserves response metadata; mutations are not replayed. */
|
|
1172
|
+
vercel(body, options = {}) {
|
|
1173
|
+
return jsonRequest(this.transport, "POST", this.path + "/vercel", body, Object.fromEntries(Object.entries({ "X-Workspace-ID": options.xWorkspaceId })
|
|
1174
|
+
.filter(([, value]) => value !== undefined && value !== null)
|
|
1175
|
+
.map(([key, value]) => [key, String(value)])), { signal: options.signal });
|
|
1176
|
+
}
|
|
1177
|
+
}
|
|
1178
|
+
export class EnvironmentProvidersResource {
|
|
1179
|
+
transport;
|
|
1180
|
+
path;
|
|
1181
|
+
constructor(transport, path) {
|
|
1182
|
+
this.transport = transport;
|
|
1183
|
+
this.path = path;
|
|
1184
|
+
}
|
|
1185
|
+
/** GET /api/v1/environment-providers. Preserves response metadata; mutations are not replayed. */
|
|
824
1186
|
list(options = {}) {
|
|
825
1187
|
return jsonRequest(this.transport, "GET", this.path, undefined, Object.fromEntries(Object.entries({ "X-Workspace-ID": options.xWorkspaceId })
|
|
826
1188
|
.filter(([, value]) => value !== undefined && value !== null)
|
|
@@ -833,24 +1195,24 @@ export class EnvironmentsResource {
|
|
|
833
1195
|
items(options = {}) {
|
|
834
1196
|
return flattenPages(this.pages(options), (value) => value);
|
|
835
1197
|
}
|
|
836
|
-
/** POST /api/v1/
|
|
1198
|
+
/** POST /api/v1/environment-providers. Preserves response metadata; mutations are not replayed. */
|
|
837
1199
|
create(body, options = {}) {
|
|
838
1200
|
return jsonRequest(this.transport, "POST", this.path, body, Object.fromEntries(Object.entries({ "X-Workspace-ID": options.xWorkspaceId })
|
|
839
1201
|
.filter(([, value]) => value !== undefined && value !== null)
|
|
840
1202
|
.map(([key, value]) => [key, String(value)])), { signal: options.signal });
|
|
841
1203
|
}
|
|
842
1204
|
ref(value) {
|
|
843
|
-
return new
|
|
1205
|
+
return new EnvironmentProvidersProviderIdResource(this.transport, this.path + "/" + encodeURIComponent(selector(String(value))));
|
|
844
1206
|
}
|
|
845
1207
|
}
|
|
846
|
-
export class
|
|
1208
|
+
export class EnvironmentProvidersProviderIdResource {
|
|
847
1209
|
transport;
|
|
848
1210
|
path;
|
|
849
1211
|
constructor(transport, path) {
|
|
850
1212
|
this.transport = transport;
|
|
851
1213
|
this.path = path;
|
|
852
1214
|
}
|
|
853
|
-
/** DELETE /api/v1/
|
|
1215
|
+
/** DELETE /api/v1/environment-providers/{provider_id}. Preserves response metadata; mutations are not replayed. */
|
|
854
1216
|
delete(options) {
|
|
855
1217
|
return jsonRequest(this.transport, "DELETE", this.path, undefined, Object.fromEntries(Object.entries({
|
|
856
1218
|
"If-Match": options.ifMatch,
|
|
@@ -859,13 +1221,13 @@ export class EnvironmentsEnvironmentIdResource {
|
|
|
859
1221
|
.filter(([, value]) => value !== undefined && value !== null)
|
|
860
1222
|
.map(([key, value]) => [key, String(value)])), { signal: options.signal });
|
|
861
1223
|
}
|
|
862
|
-
/** GET /api/v1/
|
|
1224
|
+
/** GET /api/v1/environment-providers/{provider_id}. Preserves response metadata; mutations are not replayed. */
|
|
863
1225
|
get(options = {}) {
|
|
864
1226
|
return jsonRequest(this.transport, "GET", this.path, undefined, Object.fromEntries(Object.entries({ "X-Workspace-ID": options.xWorkspaceId })
|
|
865
1227
|
.filter(([, value]) => value !== undefined && value !== null)
|
|
866
1228
|
.map(([key, value]) => [key, String(value)])), { signal: options.signal });
|
|
867
1229
|
}
|
|
868
|
-
/** PATCH /api/v1/
|
|
1230
|
+
/** PATCH /api/v1/environment-providers/{provider_id}. Preserves response metadata; mutations are not replayed. */
|
|
869
1231
|
update(body, options) {
|
|
870
1232
|
return jsonRequest(this.transport, "PATCH", this.path, body, Object.fromEntries(Object.entries({
|
|
871
1233
|
"If-Match": options.ifMatch,
|
|
@@ -874,52 +1236,42 @@ export class EnvironmentsEnvironmentIdResource {
|
|
|
874
1236
|
.filter(([, value]) => value !== undefined && value !== null)
|
|
875
1237
|
.map(([key, value]) => [key, String(value)])), { signal: options.signal });
|
|
876
1238
|
}
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
})
|
|
1239
|
+
get references() {
|
|
1240
|
+
return new EnvironmentProvidersProviderIdReferencesResource(this.transport, this.path + "/references");
|
|
1241
|
+
}
|
|
1242
|
+
/** POST /api/v1/environment-providers/{provider_id}/test. Preserves response metadata; mutations are not replayed. */
|
|
1243
|
+
test(options = {}) {
|
|
1244
|
+
return jsonRequest(this.transport, "POST", this.path + "/test", undefined, Object.fromEntries(Object.entries({ "X-Workspace-ID": options.xWorkspaceId })
|
|
883
1245
|
.filter(([, value]) => value !== undefined && value !== null)
|
|
884
1246
|
.map(([key, value]) => [key, String(value)])), { signal: options.signal });
|
|
885
1247
|
}
|
|
886
1248
|
}
|
|
887
|
-
export class
|
|
888
|
-
transport;
|
|
889
|
-
path;
|
|
890
|
-
constructor(transport, path) {
|
|
891
|
-
this.transport = transport;
|
|
892
|
-
this.path = path;
|
|
893
|
-
}
|
|
894
|
-
ref(value) {
|
|
895
|
-
return new InvitationsInvitationIdResource(this.transport, this.path + "/" + encodeURIComponent(selector(String(value))));
|
|
896
|
-
}
|
|
897
|
-
}
|
|
898
|
-
export class InvitationsInvitationIdResource {
|
|
1249
|
+
export class EnvironmentProvidersProviderIdReferencesResource {
|
|
899
1250
|
transport;
|
|
900
1251
|
path;
|
|
901
1252
|
constructor(transport, path) {
|
|
902
1253
|
this.transport = transport;
|
|
903
1254
|
this.path = path;
|
|
904
1255
|
}
|
|
905
|
-
/**
|
|
906
|
-
|
|
907
|
-
return jsonRequest(this.transport, "
|
|
1256
|
+
/** GET /api/v1/environment-providers/{provider_id}/references. Preserves response metadata; mutations are not replayed. */
|
|
1257
|
+
get(options = {}) {
|
|
1258
|
+
return jsonRequest(this.transport, "GET", this.path, undefined, Object.fromEntries(Object.entries({ "X-Workspace-ID": options.xWorkspaceId })
|
|
1259
|
+
.filter(([, value]) => value !== undefined && value !== null)
|
|
1260
|
+
.map(([key, value]) => [key, String(value)])), { signal: options.signal });
|
|
908
1261
|
}
|
|
909
1262
|
}
|
|
910
|
-
export class
|
|
1263
|
+
export class EnvironmentTemplatesResource {
|
|
911
1264
|
transport;
|
|
912
1265
|
path;
|
|
913
1266
|
constructor(transport, path) {
|
|
914
1267
|
this.transport = transport;
|
|
915
1268
|
this.path = path;
|
|
916
1269
|
}
|
|
917
|
-
/** GET /api/v1/
|
|
1270
|
+
/** GET /api/v1/environment-templates. Preserves response metadata; mutations are not replayed. */
|
|
918
1271
|
list(options = {}) {
|
|
919
|
-
return jsonRequest(this.transport, "GET", this.path, undefined,
|
|
920
|
-
|
|
921
|
-
query: options.query
|
|
922
|
-
});
|
|
1272
|
+
return jsonRequest(this.transport, "GET", this.path, undefined, Object.fromEntries(Object.entries({ "X-Workspace-ID": options.xWorkspaceId })
|
|
1273
|
+
.filter(([, value]) => value !== undefined && value !== null)
|
|
1274
|
+
.map(([key, value]) => [key, String(value)])), { signal: options.signal, query: options.query });
|
|
923
1275
|
}
|
|
924
1276
|
pages(options = {}) {
|
|
925
1277
|
const query = snapshot(options.query ?? {});
|
|
@@ -928,23 +1280,32 @@ export class McpServersResource {
|
|
|
928
1280
|
items(options = {}) {
|
|
929
1281
|
return flattenPages(this.pages(options), (value) => value);
|
|
930
1282
|
}
|
|
1283
|
+
/** POST /api/v1/environment-templates. Preserves response metadata; mutations are not replayed. */
|
|
1284
|
+
create(body, options = {}) {
|
|
1285
|
+
return jsonRequest(this.transport, "POST", this.path, body, Object.fromEntries(Object.entries({ "X-Workspace-ID": options.xWorkspaceId })
|
|
1286
|
+
.filter(([, value]) => value !== undefined && value !== null)
|
|
1287
|
+
.map(([key, value]) => [key, String(value)])), { signal: options.signal });
|
|
1288
|
+
}
|
|
1289
|
+
ref(value) {
|
|
1290
|
+
return new EnvironmentTemplatesTemplateIdResource(this.transport, this.path + "/" + encodeURIComponent(selector(String(value))));
|
|
1291
|
+
}
|
|
931
1292
|
}
|
|
932
|
-
export class
|
|
1293
|
+
export class EnvironmentTemplatesTemplateIdResource {
|
|
933
1294
|
transport;
|
|
934
1295
|
path;
|
|
935
1296
|
constructor(transport, path) {
|
|
936
1297
|
this.transport = transport;
|
|
937
1298
|
this.path = path;
|
|
938
1299
|
}
|
|
939
|
-
/** GET /api/v1/
|
|
1300
|
+
/** GET /api/v1/environment-templates/{template_id}. Preserves response metadata; mutations are not replayed. */
|
|
940
1301
|
get(options = {}) {
|
|
941
1302
|
return jsonRequest(this.transport, "GET", this.path, undefined, Object.fromEntries(Object.entries({ "X-Workspace-ID": options.xWorkspaceId })
|
|
942
1303
|
.filter(([, value]) => value !== undefined && value !== null)
|
|
943
1304
|
.map(([key, value]) => [key, String(value)])), { signal: options.signal });
|
|
944
1305
|
}
|
|
945
|
-
/**
|
|
946
|
-
|
|
947
|
-
return jsonRequest(this.transport, "
|
|
1306
|
+
/** PATCH /api/v1/environment-templates/{template_id}. Preserves response metadata; mutations are not replayed. */
|
|
1307
|
+
update(body, options) {
|
|
1308
|
+
return jsonRequest(this.transport, "PATCH", this.path, body, Object.fromEntries(Object.entries({
|
|
948
1309
|
"If-Match": options.ifMatch,
|
|
949
1310
|
"X-Workspace-ID": options.xWorkspaceId,
|
|
950
1311
|
})
|
|
@@ -952,14 +1313,14 @@ export class MediaUnderstandingDefaultsResource {
|
|
|
952
1313
|
.map(([key, value]) => [key, String(value)])), { signal: options.signal });
|
|
953
1314
|
}
|
|
954
1315
|
}
|
|
955
|
-
export class
|
|
1316
|
+
export class EnvironmentsResource {
|
|
956
1317
|
transport;
|
|
957
1318
|
path;
|
|
958
1319
|
constructor(transport, path) {
|
|
959
1320
|
this.transport = transport;
|
|
960
1321
|
this.path = path;
|
|
961
1322
|
}
|
|
962
|
-
/** GET /api/v1/
|
|
1323
|
+
/** GET /api/v1/environments. Preserves response metadata; mutations are not replayed. */
|
|
963
1324
|
list(options = {}) {
|
|
964
1325
|
return jsonRequest(this.transport, "GET", this.path, undefined, Object.fromEntries(Object.entries({ "X-Workspace-ID": options.xWorkspaceId })
|
|
965
1326
|
.filter(([, value]) => value !== undefined && value !== null)
|
|
@@ -972,24 +1333,24 @@ export class MemoriesResource {
|
|
|
972
1333
|
items(options = {}) {
|
|
973
1334
|
return flattenPages(this.pages(options), (value) => value);
|
|
974
1335
|
}
|
|
975
|
-
/** POST /api/v1/
|
|
1336
|
+
/** POST /api/v1/environments. Preserves response metadata; mutations are not replayed. */
|
|
976
1337
|
create(body, options = {}) {
|
|
977
1338
|
return jsonRequest(this.transport, "POST", this.path, body, Object.fromEntries(Object.entries({ "X-Workspace-ID": options.xWorkspaceId })
|
|
978
1339
|
.filter(([, value]) => value !== undefined && value !== null)
|
|
979
1340
|
.map(([key, value]) => [key, String(value)])), { signal: options.signal });
|
|
980
1341
|
}
|
|
981
1342
|
ref(value) {
|
|
982
|
-
return new
|
|
1343
|
+
return new EnvironmentsEnvironmentIdResource(this.transport, this.path + "/" + encodeURIComponent(selector(String(value))));
|
|
983
1344
|
}
|
|
984
1345
|
}
|
|
985
|
-
export class
|
|
1346
|
+
export class EnvironmentsEnvironmentIdResource {
|
|
986
1347
|
transport;
|
|
987
1348
|
path;
|
|
988
1349
|
constructor(transport, path) {
|
|
989
1350
|
this.transport = transport;
|
|
990
1351
|
this.path = path;
|
|
991
1352
|
}
|
|
992
|
-
/** DELETE /api/v1/
|
|
1353
|
+
/** DELETE /api/v1/environments/{environment_id}. Preserves response metadata; mutations are not replayed. */
|
|
993
1354
|
delete(options) {
|
|
994
1355
|
return jsonRequest(this.transport, "DELETE", this.path, undefined, Object.fromEntries(Object.entries({
|
|
995
1356
|
"If-Match": options.ifMatch,
|
|
@@ -998,13 +1359,13 @@ export class MemoriesMemoryIdResource {
|
|
|
998
1359
|
.filter(([, value]) => value !== undefined && value !== null)
|
|
999
1360
|
.map(([key, value]) => [key, String(value)])), { signal: options.signal });
|
|
1000
1361
|
}
|
|
1001
|
-
/** GET /api/v1/
|
|
1362
|
+
/** GET /api/v1/environments/{environment_id}. Preserves response metadata; mutations are not replayed. */
|
|
1002
1363
|
get(options = {}) {
|
|
1003
1364
|
return jsonRequest(this.transport, "GET", this.path, undefined, Object.fromEntries(Object.entries({ "X-Workspace-ID": options.xWorkspaceId })
|
|
1004
1365
|
.filter(([, value]) => value !== undefined && value !== null)
|
|
1005
1366
|
.map(([key, value]) => [key, String(value)])), { signal: options.signal });
|
|
1006
1367
|
}
|
|
1007
|
-
/** PATCH /api/v1/
|
|
1368
|
+
/** PATCH /api/v1/environments/{environment_id}. Preserves response metadata; mutations are not replayed. */
|
|
1008
1369
|
update(body, options) {
|
|
1009
1370
|
return jsonRequest(this.transport, "PATCH", this.path, body, Object.fromEntries(Object.entries({
|
|
1010
1371
|
"If-Match": options.ifMatch,
|
|
@@ -1013,157 +1374,189 @@ export class MemoriesMemoryIdResource {
|
|
|
1013
1374
|
.filter(([, value]) => value !== undefined && value !== null)
|
|
1014
1375
|
.map(([key, value]) => [key, String(value)])), { signal: options.signal });
|
|
1015
1376
|
}
|
|
1016
|
-
get
|
|
1017
|
-
return new
|
|
1377
|
+
get computer() {
|
|
1378
|
+
return new EnvironmentsEnvironmentIdComputerResource(this.transport, this.path + "/computer");
|
|
1018
1379
|
}
|
|
1019
|
-
get
|
|
1020
|
-
return new
|
|
1380
|
+
get creation() {
|
|
1381
|
+
return new EnvironmentsEnvironmentIdCreationResource(this.transport, this.path + "/creation");
|
|
1021
1382
|
}
|
|
1022
|
-
get
|
|
1023
|
-
return new
|
|
1383
|
+
get desktopControl() {
|
|
1384
|
+
return new EnvironmentsEnvironmentIdDesktopControlResource(this.transport, this.path + "/desktop-control");
|
|
1024
1385
|
}
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
transport;
|
|
1028
|
-
path;
|
|
1029
|
-
constructor(transport, path) {
|
|
1030
|
-
this.transport = transport;
|
|
1031
|
-
this.path = path;
|
|
1386
|
+
get desktopPreview() {
|
|
1387
|
+
return new EnvironmentsEnvironmentIdDesktopPreviewResource(this.transport, this.path + "/desktop-preview");
|
|
1032
1388
|
}
|
|
1033
|
-
/**
|
|
1034
|
-
|
|
1035
|
-
return jsonRequest(this.transport, "
|
|
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 })
|
|
1036
1392
|
.filter(([, value]) => value !== undefined && value !== null)
|
|
1037
|
-
.map(([key, value]) => [key, String(value)])), { signal: options.signal
|
|
1393
|
+
.map(([key, value]) => [key, String(value)])), { signal: options.signal });
|
|
1038
1394
|
}
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
return new PageIterator(query.cursor, (cursor) => this.list({ ...options, query: withCursor(query, cursor) }), (value) => value);
|
|
1395
|
+
get metricsBinding() {
|
|
1396
|
+
return new EnvironmentsEnvironmentIdMetricsBindingResource(this.transport, this.path + "/metrics-binding");
|
|
1042
1397
|
}
|
|
1043
|
-
|
|
1044
|
-
return
|
|
1398
|
+
get metrics() {
|
|
1399
|
+
return new EnvironmentsEnvironmentIdMetricsResource(this.transport, this.path + "/metrics");
|
|
1045
1400
|
}
|
|
1046
|
-
/** POST /api/v1/
|
|
1047
|
-
|
|
1048
|
-
return jsonRequest(this.transport, "POST", this.path,
|
|
1401
|
+
/** POST /api/v1/environments/{environment_id}/retry-creation. Preserves response metadata; mutations are not replayed. */
|
|
1402
|
+
retryCreation(options) {
|
|
1403
|
+
return jsonRequest(this.transport, "POST", this.path + "/retry-creation", undefined, Object.fromEntries(Object.entries({
|
|
1404
|
+
"If-Match": options.ifMatch,
|
|
1405
|
+
"X-Workspace-ID": options.xWorkspaceId,
|
|
1406
|
+
})
|
|
1049
1407
|
.filter(([, value]) => value !== undefined && value !== null)
|
|
1050
1408
|
.map(([key, value]) => [key, String(value)])), { signal: options.signal });
|
|
1051
1409
|
}
|
|
1052
|
-
/** POST /api/v1/
|
|
1053
|
-
|
|
1054
|
-
return jsonRequest(this.transport, "POST", this.path + "/
|
|
1410
|
+
/** POST /api/v1/environments/{environment_id}/stop. Preserves response metadata; mutations are not replayed. */
|
|
1411
|
+
stop(options) {
|
|
1412
|
+
return jsonRequest(this.transport, "POST", this.path + "/stop", undefined, Object.fromEntries(Object.entries({
|
|
1055
1413
|
"If-Match": options.ifMatch,
|
|
1056
1414
|
"X-Workspace-ID": options.xWorkspaceId,
|
|
1057
1415
|
})
|
|
1058
1416
|
.filter(([, value]) => value !== undefined && value !== null)
|
|
1059
1417
|
.map(([key, value]) => [key, String(value)])), { signal: options.signal });
|
|
1060
1418
|
}
|
|
1061
|
-
ref(value) {
|
|
1062
|
-
return new MemoriesMemoryIdFilesPathResource(this.transport, this.path + "/" + encodeURIComponent(selector(String(value))));
|
|
1063
|
-
}
|
|
1064
1419
|
}
|
|
1065
|
-
export class
|
|
1420
|
+
export class EnvironmentsEnvironmentIdComputerResource {
|
|
1066
1421
|
transport;
|
|
1067
1422
|
path;
|
|
1068
1423
|
constructor(transport, path) {
|
|
1069
1424
|
this.transport = transport;
|
|
1070
1425
|
this.path = path;
|
|
1071
1426
|
}
|
|
1072
|
-
/**
|
|
1073
|
-
|
|
1074
|
-
return jsonRequest(this.transport, "
|
|
1075
|
-
"If-Match": options.ifMatch,
|
|
1076
|
-
"X-Workspace-ID": options.xWorkspaceId,
|
|
1077
|
-
})
|
|
1427
|
+
/** POST /api/v1/environments/{environment_id}/computer/check. Preserves response metadata; mutations are not replayed. */
|
|
1428
|
+
check(options = {}) {
|
|
1429
|
+
return jsonRequest(this.transport, "POST", this.path + "/check", undefined, Object.fromEntries(Object.entries({ "X-Workspace-ID": options.xWorkspaceId })
|
|
1078
1430
|
.filter(([, value]) => value !== undefined && value !== null)
|
|
1079
1431
|
.map(([key, value]) => [key, String(value)])), { signal: options.signal });
|
|
1080
1432
|
}
|
|
1081
|
-
|
|
1433
|
+
}
|
|
1434
|
+
export class EnvironmentsEnvironmentIdCreationResource {
|
|
1435
|
+
transport;
|
|
1436
|
+
path;
|
|
1437
|
+
constructor(transport, path) {
|
|
1438
|
+
this.transport = transport;
|
|
1439
|
+
this.path = path;
|
|
1440
|
+
}
|
|
1441
|
+
/** GET /api/v1/environments/{environment_id}/creation. Preserves response metadata; mutations are not replayed. */
|
|
1082
1442
|
get(options = {}) {
|
|
1083
1443
|
return jsonRequest(this.transport, "GET", this.path, undefined, Object.fromEntries(Object.entries({ "X-Workspace-ID": options.xWorkspaceId })
|
|
1084
1444
|
.filter(([, value]) => value !== undefined && value !== null)
|
|
1085
1445
|
.map(([key, value]) => [key, String(value)])), { signal: options.signal });
|
|
1086
1446
|
}
|
|
1087
|
-
/** PUT /api/v1/memories/{memory_id}/files/{path}. Preserves response metadata; mutations are not replayed. */
|
|
1088
|
-
replace(body, options) {
|
|
1089
|
-
return jsonRequest(this.transport, "PUT", this.path, body, Object.fromEntries(Object.entries({
|
|
1090
|
-
"If-Match": options.ifMatch,
|
|
1091
|
-
"X-Workspace-ID": options.xWorkspaceId,
|
|
1092
|
-
})
|
|
1093
|
-
.filter(([, value]) => value !== undefined && value !== null)
|
|
1094
|
-
.map(([key, value]) => [key, String(value)])), { signal: options.signal });
|
|
1095
|
-
}
|
|
1096
1447
|
}
|
|
1097
|
-
export class
|
|
1448
|
+
export class EnvironmentsEnvironmentIdDesktopControlResource {
|
|
1098
1449
|
transport;
|
|
1099
1450
|
path;
|
|
1100
1451
|
constructor(transport, path) {
|
|
1101
1452
|
this.transport = transport;
|
|
1102
1453
|
this.path = path;
|
|
1103
1454
|
}
|
|
1104
|
-
/** GET /api/v1/
|
|
1105
|
-
|
|
1455
|
+
/** GET /api/v1/environments/{environment_id}/desktop-control. Preserves response metadata; mutations are not replayed. */
|
|
1456
|
+
get(options = {}) {
|
|
1106
1457
|
return jsonRequest(this.transport, "GET", this.path, undefined, Object.fromEntries(Object.entries({ "X-Workspace-ID": options.xWorkspaceId })
|
|
1107
1458
|
.filter(([, value]) => value !== undefined && value !== null)
|
|
1108
|
-
.map(([key, value]) => [key, String(value)])), { signal: options.signal
|
|
1109
|
-
}
|
|
1110
|
-
pages(options = {}) {
|
|
1111
|
-
const query = snapshot(options.query ?? {});
|
|
1112
|
-
return new PageIterator(query.cursor, (cursor) => this.list({ ...options, query: withCursor(query, cursor) }), (value) => value);
|
|
1113
|
-
}
|
|
1114
|
-
items(options = {}) {
|
|
1115
|
-
return flattenPages(this.pages(options), (value) => value);
|
|
1459
|
+
.map(([key, value]) => [key, String(value)])), { signal: options.signal });
|
|
1116
1460
|
}
|
|
1117
|
-
/** POST /api/v1/
|
|
1118
|
-
|
|
1119
|
-
return jsonRequest(this.transport, "POST", this.path,
|
|
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
|
+
})
|
|
1120
1467
|
.filter(([, value]) => value !== undefined && value !== null)
|
|
1121
1468
|
.map(([key, value]) => [key, String(value)])), { signal: options.signal });
|
|
1122
1469
|
}
|
|
1123
|
-
/** POST /api/v1/
|
|
1124
|
-
|
|
1125
|
-
return jsonRequest(this.transport, "POST", this.path + "/
|
|
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 })
|
|
1126
1473
|
.filter(([, value]) => value !== undefined && value !== null)
|
|
1127
1474
|
.map(([key, value]) => [key, String(value)])), { signal: options.signal });
|
|
1128
1475
|
}
|
|
1129
|
-
|
|
1130
|
-
|
|
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 });
|
|
1131
1484
|
}
|
|
1132
1485
|
}
|
|
1133
|
-
export class
|
|
1486
|
+
export class EnvironmentsEnvironmentIdDesktopPreviewResource {
|
|
1134
1487
|
transport;
|
|
1135
1488
|
path;
|
|
1136
1489
|
constructor(transport, path) {
|
|
1137
1490
|
this.transport = transport;
|
|
1138
1491
|
this.path = path;
|
|
1139
1492
|
}
|
|
1140
|
-
/**
|
|
1141
|
-
|
|
1142
|
-
return
|
|
1493
|
+
/** GET /api/v1/environments/{environment_id}/desktop-preview. Caller owns and closes the unbuffered body. */
|
|
1494
|
+
get(options = {}) {
|
|
1495
|
+
return binaryRequest(this.transport, this.path, {
|
|
1496
|
+
...{ signal: options.signal },
|
|
1497
|
+
headers: Object.fromEntries(Object.entries({ "X-Workspace-ID": options.xWorkspaceId })
|
|
1498
|
+
.filter(([, value]) => value !== undefined && value !== null)
|
|
1499
|
+
.map(([key, value]) => [key, String(value)])),
|
|
1500
|
+
accept: "image/jpeg, image/png",
|
|
1501
|
+
});
|
|
1502
|
+
}
|
|
1503
|
+
}
|
|
1504
|
+
export class EnvironmentsEnvironmentIdMetricsBindingResource {
|
|
1505
|
+
transport;
|
|
1506
|
+
path;
|
|
1507
|
+
constructor(transport, path) {
|
|
1508
|
+
this.transport = transport;
|
|
1509
|
+
this.path = path;
|
|
1510
|
+
}
|
|
1511
|
+
/** PUT /api/v1/environments/{environment_id}/metrics-binding. Preserves response metadata; mutations are not replayed. */
|
|
1512
|
+
replace(body, options) {
|
|
1513
|
+
return jsonRequest(this.transport, "PUT", this.path, body, Object.fromEntries(Object.entries({
|
|
1514
|
+
"If-Match": options.ifMatch,
|
|
1515
|
+
"X-Workspace-ID": options.xWorkspaceId,
|
|
1516
|
+
})
|
|
1143
1517
|
.filter(([, value]) => value !== undefined && value !== null)
|
|
1144
1518
|
.map(([key, value]) => [key, String(value)])), { signal: options.signal });
|
|
1145
1519
|
}
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1520
|
+
}
|
|
1521
|
+
export class EnvironmentsEnvironmentIdMetricsResource {
|
|
1522
|
+
transport;
|
|
1523
|
+
path;
|
|
1524
|
+
constructor(transport, path) {
|
|
1525
|
+
this.transport = transport;
|
|
1526
|
+
this.path = path;
|
|
1527
|
+
}
|
|
1528
|
+
get collector() {
|
|
1529
|
+
return new EnvironmentsEnvironmentIdMetricsCollectorResource(this.transport, this.path + "/collector");
|
|
1530
|
+
}
|
|
1531
|
+
/** POST /api/v1/environments/{environment_id}/metrics/query. Preserves response metadata; mutations are not replayed. */
|
|
1532
|
+
query(body, options = {}) {
|
|
1533
|
+
return jsonRequest(this.transport, "POST", this.path + "/query", body, Object.fromEntries(Object.entries({ "X-Workspace-ID": options.xWorkspaceId })
|
|
1149
1534
|
.filter(([, value]) => value !== undefined && value !== null)
|
|
1150
1535
|
.map(([key, value]) => [key, String(value)])), { signal: options.signal });
|
|
1151
1536
|
}
|
|
1152
1537
|
}
|
|
1153
|
-
export class
|
|
1538
|
+
export class EnvironmentsEnvironmentIdMetricsCollectorResource {
|
|
1154
1539
|
transport;
|
|
1155
1540
|
path;
|
|
1156
1541
|
constructor(transport, path) {
|
|
1157
1542
|
this.transport = transport;
|
|
1158
1543
|
this.path = path;
|
|
1159
1544
|
}
|
|
1160
|
-
/**
|
|
1161
|
-
|
|
1162
|
-
return jsonRequest(this.transport, "
|
|
1545
|
+
/** GET /api/v1/environments/{environment_id}/metrics/collector. Preserves response metadata; mutations are not replayed. */
|
|
1546
|
+
get(options = {}) {
|
|
1547
|
+
return jsonRequest(this.transport, "GET", this.path, undefined, Object.fromEntries(Object.entries({ "X-Workspace-ID": options.xWorkspaceId })
|
|
1163
1548
|
.filter(([, value]) => value !== undefined && value !== null)
|
|
1164
|
-
.map(([key, value]) => [key, String(value)])), { signal: options.signal
|
|
1549
|
+
.map(([key, value]) => [key, String(value)])), { signal: options.signal });
|
|
1165
1550
|
}
|
|
1166
|
-
|
|
1551
|
+
}
|
|
1552
|
+
export class FindingAnalysesResource {
|
|
1553
|
+
transport;
|
|
1554
|
+
path;
|
|
1555
|
+
constructor(transport, path) {
|
|
1556
|
+
this.transport = transport;
|
|
1557
|
+
this.path = path;
|
|
1558
|
+
}
|
|
1559
|
+
/** GET /api/v1/finding-analyses. Preserves response metadata; mutations are not replayed. */
|
|
1167
1560
|
list(options = {}) {
|
|
1168
1561
|
return jsonRequest(this.transport, "GET", this.path, undefined, Object.fromEntries(Object.entries({ "X-Workspace-ID": options.xWorkspaceId })
|
|
1169
1562
|
.filter(([, value]) => value !== undefined && value !== null)
|
|
@@ -1176,41 +1569,24 @@ export class MemoriesMemoryIdRevisionsResource {
|
|
|
1176
1569
|
items(options = {}) {
|
|
1177
1570
|
return flattenPages(this.pages(options), (value) => value);
|
|
1178
1571
|
}
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
export class MemoriesMemoryIdRevisionsSeqResource {
|
|
1184
|
-
transport;
|
|
1185
|
-
path;
|
|
1186
|
-
constructor(transport, path) {
|
|
1187
|
-
this.transport = transport;
|
|
1188
|
-
this.path = path;
|
|
1189
|
-
}
|
|
1190
|
-
/** GET /api/v1/memories/{memory_id}/revisions/{seq}. Preserves response metadata; mutations are not replayed. */
|
|
1191
|
-
get(options = {}) {
|
|
1192
|
-
return jsonRequest(this.transport, "GET", this.path, undefined, Object.fromEntries(Object.entries({ "X-Workspace-ID": options.xWorkspaceId })
|
|
1193
|
-
.filter(([, value]) => value !== undefined && value !== null)
|
|
1194
|
-
.map(([key, value]) => [key, String(value)])), { signal: options.signal });
|
|
1195
|
-
}
|
|
1196
|
-
/** POST /api/v1/memories/{memory_id}/revisions/{seq}/restore. Preserves response metadata; mutations are not replayed. */
|
|
1197
|
-
restore(options = {}) {
|
|
1198
|
-
return jsonRequest(this.transport, "POST", this.path + "/restore", undefined, Object.fromEntries(Object.entries({
|
|
1199
|
-
"If-Match": options.ifMatch,
|
|
1572
|
+
/** POST /api/v1/finding-analyses. Preserves response metadata; mutations are not replayed. */
|
|
1573
|
+
create(body, options) {
|
|
1574
|
+
return jsonRequest(this.transport, "POST", this.path, body, Object.fromEntries(Object.entries({
|
|
1575
|
+
"Idempotency-Key": options.idempotencyKey,
|
|
1200
1576
|
"X-Workspace-ID": options.xWorkspaceId,
|
|
1201
1577
|
})
|
|
1202
1578
|
.filter(([, value]) => value !== undefined && value !== null)
|
|
1203
1579
|
.map(([key, value]) => [key, String(value)])), { signal: options.signal });
|
|
1204
1580
|
}
|
|
1205
1581
|
}
|
|
1206
|
-
export class
|
|
1582
|
+
export class FindingsResource {
|
|
1207
1583
|
transport;
|
|
1208
1584
|
path;
|
|
1209
1585
|
constructor(transport, path) {
|
|
1210
1586
|
this.transport = transport;
|
|
1211
1587
|
this.path = path;
|
|
1212
1588
|
}
|
|
1213
|
-
/** GET /api/v1/
|
|
1589
|
+
/** GET /api/v1/findings. Preserves response metadata; mutations are not replayed. */
|
|
1214
1590
|
list(options = {}) {
|
|
1215
1591
|
return jsonRequest(this.transport, "GET", this.path, undefined, Object.fromEntries(Object.entries({ "X-Workspace-ID": options.xWorkspaceId })
|
|
1216
1592
|
.filter(([, value]) => value !== undefined && value !== null)
|
|
@@ -1223,30 +1599,30 @@ export class MemoryProvidersResource {
|
|
|
1223
1599
|
items(options = {}) {
|
|
1224
1600
|
return flattenPages(this.pages(options), (value) => value);
|
|
1225
1601
|
}
|
|
1226
|
-
/** POST /api/v1/
|
|
1602
|
+
/** POST /api/v1/findings. Preserves response metadata; mutations are not replayed. */
|
|
1227
1603
|
create(body, options = {}) {
|
|
1228
1604
|
return jsonRequest(this.transport, "POST", this.path, body, Object.fromEntries(Object.entries({ "X-Workspace-ID": options.xWorkspaceId })
|
|
1229
1605
|
.filter(([, value]) => value !== undefined && value !== null)
|
|
1230
1606
|
.map(([key, value]) => [key, String(value)])), { signal: options.signal });
|
|
1231
1607
|
}
|
|
1232
1608
|
ref(value) {
|
|
1233
|
-
return new
|
|
1609
|
+
return new FindingsFindingIdResource(this.transport, this.path + "/" + encodeURIComponent(selector(String(value))));
|
|
1234
1610
|
}
|
|
1235
1611
|
}
|
|
1236
|
-
export class
|
|
1612
|
+
export class FindingsFindingIdResource {
|
|
1237
1613
|
transport;
|
|
1238
1614
|
path;
|
|
1239
1615
|
constructor(transport, path) {
|
|
1240
1616
|
this.transport = transport;
|
|
1241
1617
|
this.path = path;
|
|
1242
1618
|
}
|
|
1243
|
-
/** GET /api/v1/
|
|
1619
|
+
/** GET /api/v1/findings/{finding_id}. Preserves response metadata; mutations are not replayed. */
|
|
1244
1620
|
get(options = {}) {
|
|
1245
1621
|
return jsonRequest(this.transport, "GET", this.path, undefined, Object.fromEntries(Object.entries({ "X-Workspace-ID": options.xWorkspaceId })
|
|
1246
1622
|
.filter(([, value]) => value !== undefined && value !== null)
|
|
1247
1623
|
.map(([key, value]) => [key, String(value)])), { signal: options.signal });
|
|
1248
1624
|
}
|
|
1249
|
-
/** PATCH /api/v1/
|
|
1625
|
+
/** PATCH /api/v1/findings/{finding_id}. Preserves response metadata; mutations are not replayed. */
|
|
1250
1626
|
update(body, options) {
|
|
1251
1627
|
return jsonRequest(this.transport, "PATCH", this.path, body, Object.fromEntries(Object.entries({
|
|
1252
1628
|
"If-Match": options.ifMatch,
|
|
@@ -1255,39 +1631,43 @@ export class MemoryProvidersProviderIdResource {
|
|
|
1255
1631
|
.filter(([, value]) => value !== undefined && value !== null)
|
|
1256
1632
|
.map(([key, value]) => [key, String(value)])), { signal: options.signal });
|
|
1257
1633
|
}
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
|
|
1634
|
+
}
|
|
1635
|
+
export class InvitationsResource {
|
|
1636
|
+
transport;
|
|
1637
|
+
path;
|
|
1638
|
+
constructor(transport, path) {
|
|
1639
|
+
this.transport = transport;
|
|
1640
|
+
this.path = path;
|
|
1641
|
+
}
|
|
1642
|
+
ref(value) {
|
|
1643
|
+
return new InvitationsInvitationIdResource(this.transport, this.path + "/" + encodeURIComponent(selector(String(value))));
|
|
1263
1644
|
}
|
|
1264
1645
|
}
|
|
1265
|
-
export class
|
|
1646
|
+
export class InvitationsInvitationIdResource {
|
|
1266
1647
|
transport;
|
|
1267
1648
|
path;
|
|
1268
1649
|
constructor(transport, path) {
|
|
1269
1650
|
this.transport = transport;
|
|
1270
1651
|
this.path = path;
|
|
1271
1652
|
}
|
|
1272
|
-
/**
|
|
1273
|
-
|
|
1274
|
-
return jsonRequest(this.transport, "
|
|
1275
|
-
signal: options.signal,
|
|
1276
|
-
});
|
|
1653
|
+
/** POST /api/v1/invitations/{invitation_id}/accept. Preserves response metadata; mutations are not replayed. */
|
|
1654
|
+
accept(body, options = {}) {
|
|
1655
|
+
return jsonRequest(this.transport, "POST", this.path + "/accept", body, undefined, { signal: options.signal });
|
|
1277
1656
|
}
|
|
1278
1657
|
}
|
|
1279
|
-
export class
|
|
1658
|
+
export class McpServersResource {
|
|
1280
1659
|
transport;
|
|
1281
1660
|
path;
|
|
1282
1661
|
constructor(transport, path) {
|
|
1283
1662
|
this.transport = transport;
|
|
1284
1663
|
this.path = path;
|
|
1285
1664
|
}
|
|
1286
|
-
/** GET /api/v1/
|
|
1665
|
+
/** GET /api/v1/mcp-servers. Preserves response metadata; mutations are not replayed. */
|
|
1287
1666
|
list(options = {}) {
|
|
1288
|
-
return jsonRequest(this.transport, "GET", this.path, undefined,
|
|
1289
|
-
.
|
|
1290
|
-
|
|
1667
|
+
return jsonRequest(this.transport, "GET", this.path, undefined, undefined, {
|
|
1668
|
+
signal: options.signal,
|
|
1669
|
+
query: options.query,
|
|
1670
|
+
});
|
|
1291
1671
|
}
|
|
1292
1672
|
pages(options = {}) {
|
|
1293
1673
|
const query = snapshot(options.query ?? {});
|
|
@@ -1296,105 +1676,109 @@ export class ModelProvidersResource {
|
|
|
1296
1676
|
items(options = {}) {
|
|
1297
1677
|
return flattenPages(this.pages(options), (value) => value);
|
|
1298
1678
|
}
|
|
1299
|
-
/** POST /api/v1/model-providers. Preserves response metadata; mutations are not replayed. */
|
|
1300
|
-
create(body, options = {}) {
|
|
1301
|
-
return jsonRequest(this.transport, "POST", this.path, body, Object.fromEntries(Object.entries({ "X-Workspace-ID": options.xWorkspaceId })
|
|
1302
|
-
.filter(([, value]) => value !== undefined && value !== null)
|
|
1303
|
-
.map(([key, value]) => [key, String(value)])), { signal: options.signal });
|
|
1304
|
-
}
|
|
1305
|
-
ref(value) {
|
|
1306
|
-
return new ModelProvidersProviderIdResource(this.transport, this.path + "/" + encodeURIComponent(selector(String(value))));
|
|
1307
|
-
}
|
|
1308
1679
|
}
|
|
1309
|
-
export class
|
|
1680
|
+
export class MediaUnderstandingDefaultsResource {
|
|
1310
1681
|
transport;
|
|
1311
1682
|
path;
|
|
1312
1683
|
constructor(transport, path) {
|
|
1313
1684
|
this.transport = transport;
|
|
1314
1685
|
this.path = path;
|
|
1315
1686
|
}
|
|
1316
|
-
/** GET /api/v1/
|
|
1687
|
+
/** GET /api/v1/media-understanding-defaults. Preserves response metadata; mutations are not replayed. */
|
|
1317
1688
|
get(options = {}) {
|
|
1318
1689
|
return jsonRequest(this.transport, "GET", this.path, undefined, Object.fromEntries(Object.entries({ "X-Workspace-ID": options.xWorkspaceId })
|
|
1319
1690
|
.filter(([, value]) => value !== undefined && value !== null)
|
|
1320
1691
|
.map(([key, value]) => [key, String(value)])), { signal: options.signal });
|
|
1321
1692
|
}
|
|
1322
|
-
/**
|
|
1323
|
-
|
|
1324
|
-
return jsonRequest(this.transport, "
|
|
1693
|
+
/** PUT /api/v1/media-understanding-defaults. Preserves response metadata; mutations are not replayed. */
|
|
1694
|
+
replace(body, options) {
|
|
1695
|
+
return jsonRequest(this.transport, "PUT", this.path, body, Object.fromEntries(Object.entries({
|
|
1325
1696
|
"If-Match": options.ifMatch,
|
|
1326
1697
|
"X-Workspace-ID": options.xWorkspaceId,
|
|
1327
1698
|
})
|
|
1328
1699
|
.filter(([, value]) => value !== undefined && value !== null)
|
|
1329
1700
|
.map(([key, value]) => [key, String(value)])), { signal: options.signal });
|
|
1330
1701
|
}
|
|
1331
|
-
|
|
1332
|
-
|
|
1702
|
+
}
|
|
1703
|
+
export class MemoriesResource {
|
|
1704
|
+
transport;
|
|
1705
|
+
path;
|
|
1706
|
+
constructor(transport, path) {
|
|
1707
|
+
this.transport = transport;
|
|
1708
|
+
this.path = path;
|
|
1333
1709
|
}
|
|
1334
|
-
/**
|
|
1335
|
-
|
|
1336
|
-
return jsonRequest(this.transport, "
|
|
1710
|
+
/** GET /api/v1/memories. Preserves response metadata; mutations are not replayed. */
|
|
1711
|
+
list(options = {}) {
|
|
1712
|
+
return jsonRequest(this.transport, "GET", this.path, undefined, Object.fromEntries(Object.entries({ "X-Workspace-ID": options.xWorkspaceId })
|
|
1337
1713
|
.filter(([, value]) => value !== undefined && value !== null)
|
|
1338
|
-
.map(([key, value]) => [key, String(value)])), { signal: options.signal });
|
|
1714
|
+
.map(([key, value]) => [key, String(value)])), { signal: options.signal, query: options.query });
|
|
1339
1715
|
}
|
|
1340
|
-
|
|
1341
|
-
|
|
1716
|
+
pages(options = {}) {
|
|
1717
|
+
const query = snapshot(options.query ?? {});
|
|
1718
|
+
return new PageIterator(query.cursor, (cursor) => this.list({ ...options, query: withCursor(query, cursor) }), (value) => value);
|
|
1342
1719
|
}
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
|
|
1720
|
+
items(options = {}) {
|
|
1721
|
+
return flattenPages(this.pages(options), (value) => value);
|
|
1722
|
+
}
|
|
1723
|
+
/** POST /api/v1/memories. Preserves response metadata; mutations are not replayed. */
|
|
1724
|
+
create(body, options = {}) {
|
|
1725
|
+
return jsonRequest(this.transport, "POST", this.path, body, Object.fromEntries(Object.entries({ "X-Workspace-ID": options.xWorkspaceId })
|
|
1346
1726
|
.filter(([, value]) => value !== undefined && value !== null)
|
|
1347
1727
|
.map(([key, value]) => [key, String(value)])), { signal: options.signal });
|
|
1348
1728
|
}
|
|
1729
|
+
ref(value) {
|
|
1730
|
+
return new MemoriesMemoryIdResource(this.transport, this.path + "/" + encodeURIComponent(selector(String(value))));
|
|
1731
|
+
}
|
|
1349
1732
|
}
|
|
1350
|
-
export class
|
|
1733
|
+
export class MemoriesMemoryIdResource {
|
|
1351
1734
|
transport;
|
|
1352
1735
|
path;
|
|
1353
1736
|
constructor(transport, path) {
|
|
1354
1737
|
this.transport = transport;
|
|
1355
1738
|
this.path = path;
|
|
1356
1739
|
}
|
|
1357
|
-
/** DELETE /api/v1/
|
|
1358
|
-
delete(options
|
|
1359
|
-
return jsonRequest(this.transport, "DELETE", this.path, undefined, Object.fromEntries(Object.entries({
|
|
1740
|
+
/** DELETE /api/v1/memories/{memory_id}. Preserves response metadata; mutations are not replayed. */
|
|
1741
|
+
delete(options) {
|
|
1742
|
+
return jsonRequest(this.transport, "DELETE", this.path, undefined, Object.fromEntries(Object.entries({
|
|
1743
|
+
"If-Match": options.ifMatch,
|
|
1744
|
+
"X-Workspace-ID": options.xWorkspaceId,
|
|
1745
|
+
})
|
|
1360
1746
|
.filter(([, value]) => value !== undefined && value !== null)
|
|
1361
1747
|
.map(([key, value]) => [key, String(value)])), { signal: options.signal });
|
|
1362
1748
|
}
|
|
1363
|
-
/** GET /api/v1/
|
|
1749
|
+
/** GET /api/v1/memories/{memory_id}. Preserves response metadata; mutations are not replayed. */
|
|
1364
1750
|
get(options = {}) {
|
|
1365
1751
|
return jsonRequest(this.transport, "GET", this.path, undefined, Object.fromEntries(Object.entries({ "X-Workspace-ID": options.xWorkspaceId })
|
|
1366
1752
|
.filter(([, value]) => value !== undefined && value !== null)
|
|
1367
1753
|
.map(([key, value]) => [key, String(value)])), { signal: options.signal });
|
|
1368
1754
|
}
|
|
1369
|
-
/**
|
|
1370
|
-
|
|
1371
|
-
return jsonRequest(this.transport, "
|
|
1755
|
+
/** PATCH /api/v1/memories/{memory_id}. Preserves response metadata; mutations are not replayed. */
|
|
1756
|
+
update(body, options) {
|
|
1757
|
+
return jsonRequest(this.transport, "PATCH", this.path, body, Object.fromEntries(Object.entries({
|
|
1758
|
+
"If-Match": options.ifMatch,
|
|
1759
|
+
"X-Workspace-ID": options.xWorkspaceId,
|
|
1760
|
+
})
|
|
1372
1761
|
.filter(([, value]) => value !== undefined && value !== null)
|
|
1373
1762
|
.map(([key, value]) => [key, String(value)])), { signal: options.signal });
|
|
1374
1763
|
}
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
transport;
|
|
1378
|
-
path;
|
|
1379
|
-
constructor(transport, path) {
|
|
1380
|
-
this.transport = transport;
|
|
1381
|
-
this.path = path;
|
|
1764
|
+
get files() {
|
|
1765
|
+
return new MemoriesMemoryIdFilesResource(this.transport, this.path + "/files");
|
|
1382
1766
|
}
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
|
|
1387
|
-
|
|
1767
|
+
get records() {
|
|
1768
|
+
return new MemoriesMemoryIdRecordsResource(this.transport, this.path + "/records");
|
|
1769
|
+
}
|
|
1770
|
+
get revisions() {
|
|
1771
|
+
return new MemoriesMemoryIdRevisionsResource(this.transport, this.path + "/revisions");
|
|
1388
1772
|
}
|
|
1389
1773
|
}
|
|
1390
|
-
export class
|
|
1774
|
+
export class MemoriesMemoryIdFilesResource {
|
|
1391
1775
|
transport;
|
|
1392
1776
|
path;
|
|
1393
1777
|
constructor(transport, path) {
|
|
1394
1778
|
this.transport = transport;
|
|
1395
1779
|
this.path = path;
|
|
1396
1780
|
}
|
|
1397
|
-
/** GET /api/v1/
|
|
1781
|
+
/** GET /api/v1/memories/{memory_id}/files. Preserves response metadata; mutations are not replayed. */
|
|
1398
1782
|
list(options = {}) {
|
|
1399
1783
|
return jsonRequest(this.transport, "GET", this.path, undefined, Object.fromEntries(Object.entries({ "X-Workspace-ID": options.xWorkspaceId })
|
|
1400
1784
|
.filter(([, value]) => value !== undefined && value !== null)
|
|
@@ -1407,32 +1791,50 @@ export class ModelsResource {
|
|
|
1407
1791
|
items(options = {}) {
|
|
1408
1792
|
return flattenPages(this.pages(options), (value) => value);
|
|
1409
1793
|
}
|
|
1410
|
-
/** POST /api/v1/
|
|
1794
|
+
/** POST /api/v1/memories/{memory_id}/files. Preserves response metadata; mutations are not replayed. */
|
|
1411
1795
|
create(body, options = {}) {
|
|
1412
1796
|
return jsonRequest(this.transport, "POST", this.path, body, Object.fromEntries(Object.entries({ "X-Workspace-ID": options.xWorkspaceId })
|
|
1413
1797
|
.filter(([, value]) => value !== undefined && value !== null)
|
|
1414
1798
|
.map(([key, value]) => [key, String(value)])), { signal: options.signal });
|
|
1415
1799
|
}
|
|
1800
|
+
/** POST /api/v1/memories/{memory_id}/files/move. Preserves response metadata; mutations are not replayed. */
|
|
1801
|
+
move(body, options) {
|
|
1802
|
+
return jsonRequest(this.transport, "POST", this.path + "/move", body, Object.fromEntries(Object.entries({
|
|
1803
|
+
"If-Match": options.ifMatch,
|
|
1804
|
+
"X-Workspace-ID": options.xWorkspaceId,
|
|
1805
|
+
})
|
|
1806
|
+
.filter(([, value]) => value !== undefined && value !== null)
|
|
1807
|
+
.map(([key, value]) => [key, String(value)])), { signal: options.signal });
|
|
1808
|
+
}
|
|
1416
1809
|
ref(value) {
|
|
1417
|
-
return new
|
|
1810
|
+
return new MemoriesMemoryIdFilesPathResource(this.transport, this.path + "/" + encodeURIComponent(selector(String(value))));
|
|
1418
1811
|
}
|
|
1419
1812
|
}
|
|
1420
|
-
export class
|
|
1813
|
+
export class MemoriesMemoryIdFilesPathResource {
|
|
1421
1814
|
transport;
|
|
1422
1815
|
path;
|
|
1423
1816
|
constructor(transport, path) {
|
|
1424
1817
|
this.transport = transport;
|
|
1425
1818
|
this.path = path;
|
|
1426
1819
|
}
|
|
1427
|
-
/**
|
|
1820
|
+
/** DELETE /api/v1/memories/{memory_id}/files/{path}. Preserves response metadata; mutations are not replayed. */
|
|
1821
|
+
delete(options) {
|
|
1822
|
+
return jsonRequest(this.transport, "DELETE", this.path, undefined, Object.fromEntries(Object.entries({
|
|
1823
|
+
"If-Match": options.ifMatch,
|
|
1824
|
+
"X-Workspace-ID": options.xWorkspaceId,
|
|
1825
|
+
})
|
|
1826
|
+
.filter(([, value]) => value !== undefined && value !== null)
|
|
1827
|
+
.map(([key, value]) => [key, String(value)])), { signal: options.signal });
|
|
1828
|
+
}
|
|
1829
|
+
/** GET /api/v1/memories/{memory_id}/files/{path}. Preserves response metadata; mutations are not replayed. */
|
|
1428
1830
|
get(options = {}) {
|
|
1429
1831
|
return jsonRequest(this.transport, "GET", this.path, undefined, Object.fromEntries(Object.entries({ "X-Workspace-ID": options.xWorkspaceId })
|
|
1430
1832
|
.filter(([, value]) => value !== undefined && value !== null)
|
|
1431
1833
|
.map(([key, value]) => [key, String(value)])), { signal: options.signal });
|
|
1432
1834
|
}
|
|
1433
|
-
/**
|
|
1434
|
-
|
|
1435
|
-
return jsonRequest(this.transport, "
|
|
1835
|
+
/** PUT /api/v1/memories/{memory_id}/files/{path}. Preserves response metadata; mutations are not replayed. */
|
|
1836
|
+
replace(body, options) {
|
|
1837
|
+
return jsonRequest(this.transport, "PUT", this.path, body, Object.fromEntries(Object.entries({
|
|
1436
1838
|
"If-Match": options.ifMatch,
|
|
1437
1839
|
"X-Workspace-ID": options.xWorkspaceId,
|
|
1438
1840
|
})
|
|
@@ -1440,7 +1842,685 @@ export class ModelsKeyResource {
|
|
|
1440
1842
|
.map(([key, value]) => [key, String(value)])), { signal: options.signal });
|
|
1441
1843
|
}
|
|
1442
1844
|
}
|
|
1443
|
-
export class
|
|
1845
|
+
export class MemoriesMemoryIdRecordsResource {
|
|
1846
|
+
transport;
|
|
1847
|
+
path;
|
|
1848
|
+
constructor(transport, path) {
|
|
1849
|
+
this.transport = transport;
|
|
1850
|
+
this.path = path;
|
|
1851
|
+
}
|
|
1852
|
+
/** GET /api/v1/memories/{memory_id}/records. Preserves response metadata; mutations are not replayed. */
|
|
1853
|
+
list(options = {}) {
|
|
1854
|
+
return jsonRequest(this.transport, "GET", this.path, undefined, Object.fromEntries(Object.entries({ "X-Workspace-ID": options.xWorkspaceId })
|
|
1855
|
+
.filter(([, value]) => value !== undefined && value !== null)
|
|
1856
|
+
.map(([key, value]) => [key, String(value)])), { signal: options.signal, query: options.query });
|
|
1857
|
+
}
|
|
1858
|
+
pages(options = {}) {
|
|
1859
|
+
const query = snapshot(options.query ?? {});
|
|
1860
|
+
return new PageIterator(query.cursor, (cursor) => this.list({ ...options, query: withCursor(query, cursor) }), (value) => value);
|
|
1861
|
+
}
|
|
1862
|
+
items(options = {}) {
|
|
1863
|
+
return flattenPages(this.pages(options), (value) => value);
|
|
1864
|
+
}
|
|
1865
|
+
/** POST /api/v1/memories/{memory_id}/records. Preserves response metadata; mutations are not replayed. */
|
|
1866
|
+
create(body, options = {}) {
|
|
1867
|
+
return jsonRequest(this.transport, "POST", this.path, body, Object.fromEntries(Object.entries({ "X-Workspace-ID": options.xWorkspaceId })
|
|
1868
|
+
.filter(([, value]) => value !== undefined && value !== null)
|
|
1869
|
+
.map(([key, value]) => [key, String(value)])), { signal: options.signal });
|
|
1870
|
+
}
|
|
1871
|
+
/** POST /api/v1/memories/{memory_id}/records/search. Preserves response metadata; mutations are not replayed. */
|
|
1872
|
+
search(body, options = {}) {
|
|
1873
|
+
return jsonRequest(this.transport, "POST", this.path + "/search", body, Object.fromEntries(Object.entries({ "X-Workspace-ID": options.xWorkspaceId })
|
|
1874
|
+
.filter(([, value]) => value !== undefined && value !== null)
|
|
1875
|
+
.map(([key, value]) => [key, String(value)])), { signal: options.signal });
|
|
1876
|
+
}
|
|
1877
|
+
ref(value) {
|
|
1878
|
+
return new MemoriesMemoryIdRecordsRecordIdResource(this.transport, this.path + "/" + encodeURIComponent(selector(String(value))));
|
|
1879
|
+
}
|
|
1880
|
+
}
|
|
1881
|
+
export class MemoriesMemoryIdRecordsRecordIdResource {
|
|
1882
|
+
transport;
|
|
1883
|
+
path;
|
|
1884
|
+
constructor(transport, path) {
|
|
1885
|
+
this.transport = transport;
|
|
1886
|
+
this.path = path;
|
|
1887
|
+
}
|
|
1888
|
+
/** DELETE /api/v1/memories/{memory_id}/records/{record_id}. Preserves response metadata; mutations are not replayed. */
|
|
1889
|
+
delete(options = {}) {
|
|
1890
|
+
return jsonRequest(this.transport, "DELETE", this.path, undefined, Object.fromEntries(Object.entries({ "X-Workspace-ID": options.xWorkspaceId })
|
|
1891
|
+
.filter(([, value]) => value !== undefined && value !== null)
|
|
1892
|
+
.map(([key, value]) => [key, String(value)])), { signal: options.signal });
|
|
1893
|
+
}
|
|
1894
|
+
/** PUT /api/v1/memories/{memory_id}/records/{record_id}. Preserves response metadata; mutations are not replayed. */
|
|
1895
|
+
replace(body, options = {}) {
|
|
1896
|
+
return jsonRequest(this.transport, "PUT", this.path, body, Object.fromEntries(Object.entries({ "X-Workspace-ID": options.xWorkspaceId })
|
|
1897
|
+
.filter(([, value]) => value !== undefined && value !== null)
|
|
1898
|
+
.map(([key, value]) => [key, String(value)])), { signal: options.signal });
|
|
1899
|
+
}
|
|
1900
|
+
}
|
|
1901
|
+
export class MemoriesMemoryIdRevisionsResource {
|
|
1902
|
+
transport;
|
|
1903
|
+
path;
|
|
1904
|
+
constructor(transport, path) {
|
|
1905
|
+
this.transport = transport;
|
|
1906
|
+
this.path = path;
|
|
1907
|
+
}
|
|
1908
|
+
/** DELETE /api/v1/memories/{memory_id}/revisions. Preserves response metadata; mutations are not replayed. */
|
|
1909
|
+
delete(options) {
|
|
1910
|
+
return jsonRequest(this.transport, "DELETE", this.path, undefined, Object.fromEntries(Object.entries({ "X-Workspace-ID": options.xWorkspaceId })
|
|
1911
|
+
.filter(([, value]) => value !== undefined && value !== null)
|
|
1912
|
+
.map(([key, value]) => [key, String(value)])), { signal: options.signal, query: options.query });
|
|
1913
|
+
}
|
|
1914
|
+
/** GET /api/v1/memories/{memory_id}/revisions. Preserves response metadata; mutations are not replayed. */
|
|
1915
|
+
list(options = {}) {
|
|
1916
|
+
return jsonRequest(this.transport, "GET", this.path, undefined, Object.fromEntries(Object.entries({ "X-Workspace-ID": options.xWorkspaceId })
|
|
1917
|
+
.filter(([, value]) => value !== undefined && value !== null)
|
|
1918
|
+
.map(([key, value]) => [key, String(value)])), { signal: options.signal, query: options.query });
|
|
1919
|
+
}
|
|
1920
|
+
pages(options = {}) {
|
|
1921
|
+
const query = snapshot(options.query ?? {});
|
|
1922
|
+
return new PageIterator(query.cursor, (cursor) => this.list({ ...options, query: withCursor(query, cursor) }), (value) => value);
|
|
1923
|
+
}
|
|
1924
|
+
items(options = {}) {
|
|
1925
|
+
return flattenPages(this.pages(options), (value) => value);
|
|
1926
|
+
}
|
|
1927
|
+
ref(value) {
|
|
1928
|
+
return new MemoriesMemoryIdRevisionsSeqResource(this.transport, this.path + "/" + encodeURIComponent(selector(String(value))));
|
|
1929
|
+
}
|
|
1930
|
+
}
|
|
1931
|
+
export class MemoriesMemoryIdRevisionsSeqResource {
|
|
1932
|
+
transport;
|
|
1933
|
+
path;
|
|
1934
|
+
constructor(transport, path) {
|
|
1935
|
+
this.transport = transport;
|
|
1936
|
+
this.path = path;
|
|
1937
|
+
}
|
|
1938
|
+
/** GET /api/v1/memories/{memory_id}/revisions/{seq}. Preserves response metadata; mutations are not replayed. */
|
|
1939
|
+
get(options = {}) {
|
|
1940
|
+
return jsonRequest(this.transport, "GET", this.path, undefined, Object.fromEntries(Object.entries({ "X-Workspace-ID": options.xWorkspaceId })
|
|
1941
|
+
.filter(([, value]) => value !== undefined && value !== null)
|
|
1942
|
+
.map(([key, value]) => [key, String(value)])), { signal: options.signal });
|
|
1943
|
+
}
|
|
1944
|
+
/** POST /api/v1/memories/{memory_id}/revisions/{seq}/restore. Preserves response metadata; mutations are not replayed. */
|
|
1945
|
+
restore(options = {}) {
|
|
1946
|
+
return jsonRequest(this.transport, "POST", this.path + "/restore", undefined, Object.fromEntries(Object.entries({
|
|
1947
|
+
"If-Match": options.ifMatch,
|
|
1948
|
+
"X-Workspace-ID": options.xWorkspaceId,
|
|
1949
|
+
})
|
|
1950
|
+
.filter(([, value]) => value !== undefined && value !== null)
|
|
1951
|
+
.map(([key, value]) => [key, String(value)])), { signal: options.signal });
|
|
1952
|
+
}
|
|
1953
|
+
}
|
|
1954
|
+
export class MemoryProvidersResource {
|
|
1955
|
+
transport;
|
|
1956
|
+
path;
|
|
1957
|
+
constructor(transport, path) {
|
|
1958
|
+
this.transport = transport;
|
|
1959
|
+
this.path = path;
|
|
1960
|
+
}
|
|
1961
|
+
/** GET /api/v1/memory-providers. Preserves response metadata; mutations are not replayed. */
|
|
1962
|
+
list(options = {}) {
|
|
1963
|
+
return jsonRequest(this.transport, "GET", this.path, undefined, Object.fromEntries(Object.entries({ "X-Workspace-ID": options.xWorkspaceId })
|
|
1964
|
+
.filter(([, value]) => value !== undefined && value !== null)
|
|
1965
|
+
.map(([key, value]) => [key, String(value)])), { signal: options.signal, query: options.query });
|
|
1966
|
+
}
|
|
1967
|
+
pages(options = {}) {
|
|
1968
|
+
const query = snapshot(options.query ?? {});
|
|
1969
|
+
return new PageIterator(query.cursor, (cursor) => this.list({ ...options, query: withCursor(query, cursor) }), (value) => value);
|
|
1970
|
+
}
|
|
1971
|
+
items(options = {}) {
|
|
1972
|
+
return flattenPages(this.pages(options), (value) => value);
|
|
1973
|
+
}
|
|
1974
|
+
/** POST /api/v1/memory-providers. Preserves response metadata; mutations are not replayed. */
|
|
1975
|
+
create(body, options = {}) {
|
|
1976
|
+
return jsonRequest(this.transport, "POST", this.path, body, Object.fromEntries(Object.entries({ "X-Workspace-ID": options.xWorkspaceId })
|
|
1977
|
+
.filter(([, value]) => value !== undefined && value !== null)
|
|
1978
|
+
.map(([key, value]) => [key, String(value)])), { signal: options.signal });
|
|
1979
|
+
}
|
|
1980
|
+
ref(value) {
|
|
1981
|
+
return new MemoryProvidersProviderIdResource(this.transport, this.path + "/" + encodeURIComponent(selector(String(value))));
|
|
1982
|
+
}
|
|
1983
|
+
}
|
|
1984
|
+
export class MemoryProvidersProviderIdResource {
|
|
1985
|
+
transport;
|
|
1986
|
+
path;
|
|
1987
|
+
constructor(transport, path) {
|
|
1988
|
+
this.transport = transport;
|
|
1989
|
+
this.path = path;
|
|
1990
|
+
}
|
|
1991
|
+
/** DELETE /api/v1/memory-providers/{provider_id}. Preserves response metadata; mutations are not replayed. */
|
|
1992
|
+
delete(options) {
|
|
1993
|
+
return jsonRequest(this.transport, "DELETE", this.path, undefined, Object.fromEntries(Object.entries({
|
|
1994
|
+
"If-Match": options.ifMatch,
|
|
1995
|
+
"X-Workspace-ID": options.xWorkspaceId,
|
|
1996
|
+
})
|
|
1997
|
+
.filter(([, value]) => value !== undefined && value !== null)
|
|
1998
|
+
.map(([key, value]) => [key, String(value)])), { signal: options.signal });
|
|
1999
|
+
}
|
|
2000
|
+
/** GET /api/v1/memory-providers/{provider_id}. Preserves response metadata; mutations are not replayed. */
|
|
2001
|
+
get(options = {}) {
|
|
2002
|
+
return jsonRequest(this.transport, "GET", this.path, undefined, Object.fromEntries(Object.entries({ "X-Workspace-ID": options.xWorkspaceId })
|
|
2003
|
+
.filter(([, value]) => value !== undefined && value !== null)
|
|
2004
|
+
.map(([key, value]) => [key, String(value)])), { signal: options.signal });
|
|
2005
|
+
}
|
|
2006
|
+
/** PATCH /api/v1/memory-providers/{provider_id}. Preserves response metadata; mutations are not replayed. */
|
|
2007
|
+
update(body, options) {
|
|
2008
|
+
return jsonRequest(this.transport, "PATCH", this.path, body, Object.fromEntries(Object.entries({
|
|
2009
|
+
"If-Match": options.ifMatch,
|
|
2010
|
+
"X-Workspace-ID": options.xWorkspaceId,
|
|
2011
|
+
})
|
|
2012
|
+
.filter(([, value]) => value !== undefined && value !== null)
|
|
2013
|
+
.map(([key, value]) => [key, String(value)])), { signal: options.signal });
|
|
2014
|
+
}
|
|
2015
|
+
/** POST /api/v1/memory-providers/{provider_id}/test. Preserves response metadata; mutations are not replayed. */
|
|
2016
|
+
test(options = {}) {
|
|
2017
|
+
return jsonRequest(this.transport, "POST", this.path + "/test", undefined, Object.fromEntries(Object.entries({ "X-Workspace-ID": options.xWorkspaceId })
|
|
2018
|
+
.filter(([, value]) => value !== undefined && value !== null)
|
|
2019
|
+
.map(([key, value]) => [key, String(value)])), { signal: options.signal });
|
|
2020
|
+
}
|
|
2021
|
+
}
|
|
2022
|
+
export class MemorySpacesResource {
|
|
2023
|
+
transport;
|
|
2024
|
+
path;
|
|
2025
|
+
constructor(transport, path) {
|
|
2026
|
+
this.transport = transport;
|
|
2027
|
+
this.path = path;
|
|
2028
|
+
}
|
|
2029
|
+
/** GET /api/v1/memory-spaces. Preserves response metadata; mutations are not replayed. */
|
|
2030
|
+
list(options = {}) {
|
|
2031
|
+
return jsonRequest(this.transport, "GET", this.path, undefined, Object.fromEntries(Object.entries({ "X-Workspace-ID": options.xWorkspaceId })
|
|
2032
|
+
.filter(([, value]) => value !== undefined && value !== null)
|
|
2033
|
+
.map(([key, value]) => [key, String(value)])), { signal: options.signal, query: options.query });
|
|
2034
|
+
}
|
|
2035
|
+
pages(options = {}) {
|
|
2036
|
+
const query = snapshot(options.query ?? {});
|
|
2037
|
+
return new PageIterator(query.cursor, (cursor) => this.list({ ...options, query: withCursor(query, cursor) }), (value) => value);
|
|
2038
|
+
}
|
|
2039
|
+
items(options = {}) {
|
|
2040
|
+
return flattenPages(this.pages(options), (value) => value);
|
|
2041
|
+
}
|
|
2042
|
+
/** POST /api/v1/memory-spaces. Preserves response metadata; mutations are not replayed. */
|
|
2043
|
+
create(body, options = {}) {
|
|
2044
|
+
return jsonRequest(this.transport, "POST", this.path, body, Object.fromEntries(Object.entries({ "X-Workspace-ID": options.xWorkspaceId })
|
|
2045
|
+
.filter(([, value]) => value !== undefined && value !== null)
|
|
2046
|
+
.map(([key, value]) => [key, String(value)])), { signal: options.signal });
|
|
2047
|
+
}
|
|
2048
|
+
ref(value) {
|
|
2049
|
+
return new MemorySpacesSpaceIdResource(this.transport, this.path + "/" + encodeURIComponent(selector(String(value))));
|
|
2050
|
+
}
|
|
2051
|
+
}
|
|
2052
|
+
export class MemorySpacesSpaceIdResource {
|
|
2053
|
+
transport;
|
|
2054
|
+
path;
|
|
2055
|
+
constructor(transport, path) {
|
|
2056
|
+
this.transport = transport;
|
|
2057
|
+
this.path = path;
|
|
2058
|
+
}
|
|
2059
|
+
/** DELETE /api/v1/memory-spaces/{space_id}. Preserves response metadata; mutations are not replayed. */
|
|
2060
|
+
delete(options) {
|
|
2061
|
+
return jsonRequest(this.transport, "DELETE", this.path, undefined, Object.fromEntries(Object.entries({
|
|
2062
|
+
"If-Match": options.ifMatch,
|
|
2063
|
+
"X-Workspace-ID": options.xWorkspaceId,
|
|
2064
|
+
})
|
|
2065
|
+
.filter(([, value]) => value !== undefined && value !== null)
|
|
2066
|
+
.map(([key, value]) => [key, String(value)])), { signal: options.signal });
|
|
2067
|
+
}
|
|
2068
|
+
/** GET /api/v1/memory-spaces/{space_id}. Preserves response metadata; mutations are not replayed. */
|
|
2069
|
+
get(options = {}) {
|
|
2070
|
+
return jsonRequest(this.transport, "GET", this.path, undefined, Object.fromEntries(Object.entries({ "X-Workspace-ID": options.xWorkspaceId })
|
|
2071
|
+
.filter(([, value]) => value !== undefined && value !== null)
|
|
2072
|
+
.map(([key, value]) => [key, String(value)])), { signal: options.signal });
|
|
2073
|
+
}
|
|
2074
|
+
/** PATCH /api/v1/memory-spaces/{space_id}. Preserves response metadata; mutations are not replayed. */
|
|
2075
|
+
update(body, options) {
|
|
2076
|
+
return jsonRequest(this.transport, "PATCH", this.path, body, Object.fromEntries(Object.entries({
|
|
2077
|
+
"If-Match": options.ifMatch,
|
|
2078
|
+
"X-Workspace-ID": options.xWorkspaceId,
|
|
2079
|
+
})
|
|
2080
|
+
.filter(([, value]) => value !== undefined && value !== null)
|
|
2081
|
+
.map(([key, value]) => [key, String(value)])), { signal: options.signal });
|
|
2082
|
+
}
|
|
2083
|
+
get organization() {
|
|
2084
|
+
return new MemorySpacesSpaceIdOrganizationResource(this.transport, this.path + "/organization");
|
|
2085
|
+
}
|
|
2086
|
+
get organizations() {
|
|
2087
|
+
return new MemorySpacesSpaceIdOrganizationsResource(this.transport, this.path + "/organizations");
|
|
2088
|
+
}
|
|
2089
|
+
get sessions() {
|
|
2090
|
+
return new MemorySpacesSpaceIdSessionsResource(this.transport, this.path + "/sessions");
|
|
2091
|
+
}
|
|
2092
|
+
}
|
|
2093
|
+
export class MemorySpacesSpaceIdOrganizationResource {
|
|
2094
|
+
transport;
|
|
2095
|
+
path;
|
|
2096
|
+
constructor(transport, path) {
|
|
2097
|
+
this.transport = transport;
|
|
2098
|
+
this.path = path;
|
|
2099
|
+
}
|
|
2100
|
+
/** GET /api/v1/memory-spaces/{space_id}/organization. Preserves response metadata; mutations are not replayed. */
|
|
2101
|
+
get(options = {}) {
|
|
2102
|
+
return jsonRequest(this.transport, "GET", this.path, undefined, Object.fromEntries(Object.entries({ "X-Workspace-ID": options.xWorkspaceId })
|
|
2103
|
+
.filter(([, value]) => value !== undefined && value !== null)
|
|
2104
|
+
.map(([key, value]) => [key, String(value)])), { signal: options.signal });
|
|
2105
|
+
}
|
|
2106
|
+
}
|
|
2107
|
+
export class MemorySpacesSpaceIdOrganizationsResource {
|
|
2108
|
+
transport;
|
|
2109
|
+
path;
|
|
2110
|
+
constructor(transport, path) {
|
|
2111
|
+
this.transport = transport;
|
|
2112
|
+
this.path = path;
|
|
2113
|
+
}
|
|
2114
|
+
/** GET /api/v1/memory-spaces/{space_id}/organizations. Preserves response metadata; mutations are not replayed. */
|
|
2115
|
+
list(options = {}) {
|
|
2116
|
+
return jsonRequest(this.transport, "GET", this.path, undefined, Object.fromEntries(Object.entries({ "X-Workspace-ID": options.xWorkspaceId })
|
|
2117
|
+
.filter(([, value]) => value !== undefined && value !== null)
|
|
2118
|
+
.map(([key, value]) => [key, String(value)])), { signal: options.signal, query: options.query });
|
|
2119
|
+
}
|
|
2120
|
+
pages(options = {}) {
|
|
2121
|
+
const query = snapshot(options.query ?? {});
|
|
2122
|
+
return new PageIterator(query.cursor, (cursor) => this.list({ ...options, query: withCursor(query, cursor) }), (value) => value);
|
|
2123
|
+
}
|
|
2124
|
+
items(options = {}) {
|
|
2125
|
+
return flattenPages(this.pages(options), (value) => value);
|
|
2126
|
+
}
|
|
2127
|
+
/** POST /api/v1/memory-spaces/{space_id}/organizations. Preserves response metadata; mutations are not replayed. */
|
|
2128
|
+
create(options = {}) {
|
|
2129
|
+
return jsonRequest(this.transport, "POST", this.path, undefined, Object.fromEntries(Object.entries({ "X-Workspace-ID": options.xWorkspaceId })
|
|
2130
|
+
.filter(([, value]) => value !== undefined && value !== null)
|
|
2131
|
+
.map(([key, value]) => [key, String(value)])), { signal: options.signal });
|
|
2132
|
+
}
|
|
2133
|
+
}
|
|
2134
|
+
export class MemorySpacesSpaceIdSessionsResource {
|
|
2135
|
+
transport;
|
|
2136
|
+
path;
|
|
2137
|
+
constructor(transport, path) {
|
|
2138
|
+
this.transport = transport;
|
|
2139
|
+
this.path = path;
|
|
2140
|
+
}
|
|
2141
|
+
/** GET /api/v1/memory-spaces/{space_id}/sessions. Preserves response metadata; mutations are not replayed. */
|
|
2142
|
+
list(options = {}) {
|
|
2143
|
+
return jsonRequest(this.transport, "GET", this.path, undefined, Object.fromEntries(Object.entries({ "X-Workspace-ID": options.xWorkspaceId })
|
|
2144
|
+
.filter(([, value]) => value !== undefined && value !== null)
|
|
2145
|
+
.map(([key, value]) => [key, String(value)])), { signal: options.signal, query: options.query });
|
|
2146
|
+
}
|
|
2147
|
+
pages(options = {}) {
|
|
2148
|
+
const query = snapshot(options.query ?? {});
|
|
2149
|
+
return new PageIterator(query.cursor, (cursor) => this.list({ ...options, query: withCursor(query, cursor) }), (value) => value);
|
|
2150
|
+
}
|
|
2151
|
+
items(options = {}) {
|
|
2152
|
+
return flattenPages(this.pages(options), (value) => value);
|
|
2153
|
+
}
|
|
2154
|
+
}
|
|
2155
|
+
export class MetricsDashboardsResource {
|
|
2156
|
+
transport;
|
|
2157
|
+
path;
|
|
2158
|
+
constructor(transport, path) {
|
|
2159
|
+
this.transport = transport;
|
|
2160
|
+
this.path = path;
|
|
2161
|
+
}
|
|
2162
|
+
/** GET /api/v1/metrics-dashboards. Preserves response metadata; mutations are not replayed. */
|
|
2163
|
+
list(options = {}) {
|
|
2164
|
+
return jsonRequest(this.transport, "GET", this.path, undefined, Object.fromEntries(Object.entries({ "X-Workspace-ID": options.xWorkspaceId })
|
|
2165
|
+
.filter(([, value]) => value !== undefined && value !== null)
|
|
2166
|
+
.map(([key, value]) => [key, String(value)])), { signal: options.signal, query: options.query });
|
|
2167
|
+
}
|
|
2168
|
+
pages(options = {}) {
|
|
2169
|
+
const query = snapshot(options.query ?? {});
|
|
2170
|
+
return new PageIterator(query.cursor, (cursor) => this.list({ ...options, query: withCursor(query, cursor) }), (value) => value);
|
|
2171
|
+
}
|
|
2172
|
+
items(options = {}) {
|
|
2173
|
+
return flattenPages(this.pages(options), (value) => value);
|
|
2174
|
+
}
|
|
2175
|
+
/** POST /api/v1/metrics-dashboards. Preserves response metadata; mutations are not replayed. */
|
|
2176
|
+
create(body, options = {}) {
|
|
2177
|
+
return jsonRequest(this.transport, "POST", this.path, body, Object.fromEntries(Object.entries({ "X-Workspace-ID": options.xWorkspaceId })
|
|
2178
|
+
.filter(([, value]) => value !== undefined && value !== null)
|
|
2179
|
+
.map(([key, value]) => [key, String(value)])), { signal: options.signal });
|
|
2180
|
+
}
|
|
2181
|
+
get preset() {
|
|
2182
|
+
return new MetricsDashboardsPresetResource(this.transport, this.path + "/preset");
|
|
2183
|
+
}
|
|
2184
|
+
ref(value) {
|
|
2185
|
+
return new MetricsDashboardsDashboardIdResource(this.transport, this.path + "/" + encodeURIComponent(selector(String(value))));
|
|
2186
|
+
}
|
|
2187
|
+
}
|
|
2188
|
+
export class MetricsDashboardsPresetResource {
|
|
2189
|
+
transport;
|
|
2190
|
+
path;
|
|
2191
|
+
constructor(transport, path) {
|
|
2192
|
+
this.transport = transport;
|
|
2193
|
+
this.path = path;
|
|
2194
|
+
}
|
|
2195
|
+
/** GET /api/v1/metrics-dashboards/preset. Preserves response metadata; mutations are not replayed. */
|
|
2196
|
+
get(options = {}) {
|
|
2197
|
+
return jsonRequest(this.transport, "GET", this.path, undefined, Object.fromEntries(Object.entries({ "X-Workspace-ID": options.xWorkspaceId })
|
|
2198
|
+
.filter(([, value]) => value !== undefined && value !== null)
|
|
2199
|
+
.map(([key, value]) => [key, String(value)])), { signal: options.signal });
|
|
2200
|
+
}
|
|
2201
|
+
}
|
|
2202
|
+
export class MetricsDashboardsDashboardIdResource {
|
|
2203
|
+
transport;
|
|
2204
|
+
path;
|
|
2205
|
+
constructor(transport, path) {
|
|
2206
|
+
this.transport = transport;
|
|
2207
|
+
this.path = path;
|
|
2208
|
+
}
|
|
2209
|
+
/** DELETE /api/v1/metrics-dashboards/{dashboard_id}. Preserves response metadata; mutations are not replayed. */
|
|
2210
|
+
delete(options) {
|
|
2211
|
+
return jsonRequest(this.transport, "DELETE", this.path, undefined, Object.fromEntries(Object.entries({
|
|
2212
|
+
"If-Match": options.ifMatch,
|
|
2213
|
+
"X-Workspace-ID": options.xWorkspaceId,
|
|
2214
|
+
})
|
|
2215
|
+
.filter(([, value]) => value !== undefined && value !== null)
|
|
2216
|
+
.map(([key, value]) => [key, String(value)])), { signal: options.signal });
|
|
2217
|
+
}
|
|
2218
|
+
/** GET /api/v1/metrics-dashboards/{dashboard_id}. Preserves response metadata; mutations are not replayed. */
|
|
2219
|
+
get(options = {}) {
|
|
2220
|
+
return jsonRequest(this.transport, "GET", this.path, undefined, Object.fromEntries(Object.entries({ "X-Workspace-ID": options.xWorkspaceId })
|
|
2221
|
+
.filter(([, value]) => value !== undefined && value !== null)
|
|
2222
|
+
.map(([key, value]) => [key, String(value)])), { signal: options.signal });
|
|
2223
|
+
}
|
|
2224
|
+
/** PATCH /api/v1/metrics-dashboards/{dashboard_id}. Preserves response metadata; mutations are not replayed. */
|
|
2225
|
+
update(body, options) {
|
|
2226
|
+
return jsonRequest(this.transport, "PATCH", this.path, body, Object.fromEntries(Object.entries({
|
|
2227
|
+
"If-Match": options.ifMatch,
|
|
2228
|
+
"X-Workspace-ID": options.xWorkspaceId,
|
|
2229
|
+
})
|
|
2230
|
+
.filter(([, value]) => value !== undefined && value !== null)
|
|
2231
|
+
.map(([key, value]) => [key, String(value)])), { signal: options.signal });
|
|
2232
|
+
}
|
|
2233
|
+
}
|
|
2234
|
+
export class MetricsDataSourcesResource {
|
|
2235
|
+
transport;
|
|
2236
|
+
path;
|
|
2237
|
+
constructor(transport, path) {
|
|
2238
|
+
this.transport = transport;
|
|
2239
|
+
this.path = path;
|
|
2240
|
+
}
|
|
2241
|
+
/** GET /api/v1/metrics-data-sources. Preserves response metadata; mutations are not replayed. */
|
|
2242
|
+
list(options = {}) {
|
|
2243
|
+
return jsonRequest(this.transport, "GET", this.path, undefined, Object.fromEntries(Object.entries({ "X-Workspace-ID": options.xWorkspaceId })
|
|
2244
|
+
.filter(([, value]) => value !== undefined && value !== null)
|
|
2245
|
+
.map(([key, value]) => [key, String(value)])), { signal: options.signal, query: options.query });
|
|
2246
|
+
}
|
|
2247
|
+
pages(options = {}) {
|
|
2248
|
+
const query = snapshot(options.query ?? {});
|
|
2249
|
+
return new PageIterator(query.cursor, (cursor) => this.list({ ...options, query: withCursor(query, cursor) }), (value) => value);
|
|
2250
|
+
}
|
|
2251
|
+
items(options = {}) {
|
|
2252
|
+
return flattenPages(this.pages(options), (value) => value);
|
|
2253
|
+
}
|
|
2254
|
+
/** POST /api/v1/metrics-data-sources. Preserves response metadata; mutations are not replayed. */
|
|
2255
|
+
create(body, options = {}) {
|
|
2256
|
+
return jsonRequest(this.transport, "POST", this.path, body, Object.fromEntries(Object.entries({ "X-Workspace-ID": options.xWorkspaceId })
|
|
2257
|
+
.filter(([, value]) => value !== undefined && value !== null)
|
|
2258
|
+
.map(([key, value]) => [key, String(value)])), { signal: options.signal });
|
|
2259
|
+
}
|
|
2260
|
+
get capabilities() {
|
|
2261
|
+
return new MetricsDataSourcesCapabilitiesResource(this.transport, this.path + "/capabilities");
|
|
2262
|
+
}
|
|
2263
|
+
get deploymentPreset() {
|
|
2264
|
+
return new MetricsDataSourcesDeploymentPresetResource(this.transport, this.path + "/deployment-preset");
|
|
2265
|
+
}
|
|
2266
|
+
ref(value) {
|
|
2267
|
+
return new MetricsDataSourcesSourceIdResource(this.transport, this.path + "/" + encodeURIComponent(selector(String(value))));
|
|
2268
|
+
}
|
|
2269
|
+
}
|
|
2270
|
+
export class MetricsDataSourcesCapabilitiesResource {
|
|
2271
|
+
transport;
|
|
2272
|
+
path;
|
|
2273
|
+
constructor(transport, path) {
|
|
2274
|
+
this.transport = transport;
|
|
2275
|
+
this.path = path;
|
|
2276
|
+
}
|
|
2277
|
+
/** GET /api/v1/metrics-data-sources/capabilities. Preserves response metadata; mutations are not replayed. */
|
|
2278
|
+
get(options = {}) {
|
|
2279
|
+
return jsonRequest(this.transport, "GET", this.path, undefined, Object.fromEntries(Object.entries({ "X-Workspace-ID": options.xWorkspaceId })
|
|
2280
|
+
.filter(([, value]) => value !== undefined && value !== null)
|
|
2281
|
+
.map(([key, value]) => [key, String(value)])), { signal: options.signal });
|
|
2282
|
+
}
|
|
2283
|
+
}
|
|
2284
|
+
export class MetricsDataSourcesDeploymentPresetResource {
|
|
2285
|
+
transport;
|
|
2286
|
+
path;
|
|
2287
|
+
constructor(transport, path) {
|
|
2288
|
+
this.transport = transport;
|
|
2289
|
+
this.path = path;
|
|
2290
|
+
}
|
|
2291
|
+
/** GET /api/v1/metrics-data-sources/deployment-preset. Preserves response metadata; mutations are not replayed. */
|
|
2292
|
+
get(options = {}) {
|
|
2293
|
+
return jsonRequest(this.transport, "GET", this.path, undefined, Object.fromEntries(Object.entries({ "X-Workspace-ID": options.xWorkspaceId })
|
|
2294
|
+
.filter(([, value]) => value !== undefined && value !== null)
|
|
2295
|
+
.map(([key, value]) => [key, String(value)])), { signal: options.signal });
|
|
2296
|
+
}
|
|
2297
|
+
}
|
|
2298
|
+
export class MetricsDataSourcesSourceIdResource {
|
|
2299
|
+
transport;
|
|
2300
|
+
path;
|
|
2301
|
+
constructor(transport, path) {
|
|
2302
|
+
this.transport = transport;
|
|
2303
|
+
this.path = path;
|
|
2304
|
+
}
|
|
2305
|
+
/** DELETE /api/v1/metrics-data-sources/{source_id}. Preserves response metadata; mutations are not replayed. */
|
|
2306
|
+
delete(options) {
|
|
2307
|
+
return jsonRequest(this.transport, "DELETE", this.path, undefined, Object.fromEntries(Object.entries({
|
|
2308
|
+
"If-Match": options.ifMatch,
|
|
2309
|
+
"X-Workspace-ID": options.xWorkspaceId,
|
|
2310
|
+
})
|
|
2311
|
+
.filter(([, value]) => value !== undefined && value !== null)
|
|
2312
|
+
.map(([key, value]) => [key, String(value)])), { signal: options.signal });
|
|
2313
|
+
}
|
|
2314
|
+
/** GET /api/v1/metrics-data-sources/{source_id}. Preserves response metadata; mutations are not replayed. */
|
|
2315
|
+
get(options = {}) {
|
|
2316
|
+
return jsonRequest(this.transport, "GET", this.path, undefined, Object.fromEntries(Object.entries({ "X-Workspace-ID": options.xWorkspaceId })
|
|
2317
|
+
.filter(([, value]) => value !== undefined && value !== null)
|
|
2318
|
+
.map(([key, value]) => [key, String(value)])), { signal: options.signal });
|
|
2319
|
+
}
|
|
2320
|
+
/** PATCH /api/v1/metrics-data-sources/{source_id}. Preserves response metadata; mutations are not replayed. */
|
|
2321
|
+
update(body, options) {
|
|
2322
|
+
return jsonRequest(this.transport, "PATCH", this.path, body, Object.fromEntries(Object.entries({
|
|
2323
|
+
"If-Match": options.ifMatch,
|
|
2324
|
+
"X-Workspace-ID": options.xWorkspaceId,
|
|
2325
|
+
})
|
|
2326
|
+
.filter(([, value]) => value !== undefined && value !== null)
|
|
2327
|
+
.map(([key, value]) => [key, String(value)])), { signal: options.signal });
|
|
2328
|
+
}
|
|
2329
|
+
/** POST /api/v1/metrics-data-sources/{source_id}/query. Preserves response metadata; mutations are not replayed. */
|
|
2330
|
+
query(body, options = {}) {
|
|
2331
|
+
return jsonRequest(this.transport, "POST", this.path + "/query", body, Object.fromEntries(Object.entries({ "X-Workspace-ID": options.xWorkspaceId })
|
|
2332
|
+
.filter(([, value]) => value !== undefined && value !== null)
|
|
2333
|
+
.map(([key, value]) => [key, String(value)])), { signal: options.signal });
|
|
2334
|
+
}
|
|
2335
|
+
}
|
|
2336
|
+
export class ModelCatalogResource {
|
|
2337
|
+
transport;
|
|
2338
|
+
path;
|
|
2339
|
+
constructor(transport, path) {
|
|
2340
|
+
this.transport = transport;
|
|
2341
|
+
this.path = path;
|
|
2342
|
+
}
|
|
2343
|
+
list(options = {}) {
|
|
2344
|
+
return jsonRequest(this.transport, "GET", this.path, undefined, undefined, {
|
|
2345
|
+
signal: options.signal,
|
|
2346
|
+
query: options.query,
|
|
2347
|
+
});
|
|
2348
|
+
}
|
|
2349
|
+
}
|
|
2350
|
+
export class ModelProvidersResource {
|
|
2351
|
+
transport;
|
|
2352
|
+
path;
|
|
2353
|
+
constructor(transport, path) {
|
|
2354
|
+
this.transport = transport;
|
|
2355
|
+
this.path = path;
|
|
2356
|
+
}
|
|
2357
|
+
/** GET /api/v1/model-providers. Preserves response metadata; mutations are not replayed. */
|
|
2358
|
+
list(options = {}) {
|
|
2359
|
+
return jsonRequest(this.transport, "GET", this.path, undefined, Object.fromEntries(Object.entries({ "X-Workspace-ID": options.xWorkspaceId })
|
|
2360
|
+
.filter(([, value]) => value !== undefined && value !== null)
|
|
2361
|
+
.map(([key, value]) => [key, String(value)])), { signal: options.signal, query: options.query });
|
|
2362
|
+
}
|
|
2363
|
+
pages(options = {}) {
|
|
2364
|
+
const query = snapshot(options.query ?? {});
|
|
2365
|
+
return new PageIterator(query.cursor, (cursor) => this.list({ ...options, query: withCursor(query, cursor) }), (value) => value);
|
|
2366
|
+
}
|
|
2367
|
+
items(options = {}) {
|
|
2368
|
+
return flattenPages(this.pages(options), (value) => value);
|
|
2369
|
+
}
|
|
2370
|
+
/** POST /api/v1/model-providers. Preserves response metadata; mutations are not replayed. */
|
|
2371
|
+
create(body, options = {}) {
|
|
2372
|
+
return jsonRequest(this.transport, "POST", this.path, body, Object.fromEntries(Object.entries({ "X-Workspace-ID": options.xWorkspaceId })
|
|
2373
|
+
.filter(([, value]) => value !== undefined && value !== null)
|
|
2374
|
+
.map(([key, value]) => [key, String(value)])), { signal: options.signal });
|
|
2375
|
+
}
|
|
2376
|
+
ref(value) {
|
|
2377
|
+
return new ModelProvidersProviderIdResource(this.transport, this.path + "/" + encodeURIComponent(selector(String(value))));
|
|
2378
|
+
}
|
|
2379
|
+
}
|
|
2380
|
+
export class ModelProvidersProviderIdResource {
|
|
2381
|
+
transport;
|
|
2382
|
+
path;
|
|
2383
|
+
constructor(transport, path) {
|
|
2384
|
+
this.transport = transport;
|
|
2385
|
+
this.path = path;
|
|
2386
|
+
}
|
|
2387
|
+
/** DELETE /api/v1/model-providers/{provider_id}. Preserves response metadata; mutations are not replayed. */
|
|
2388
|
+
delete(options) {
|
|
2389
|
+
return jsonRequest(this.transport, "DELETE", this.path, undefined, Object.fromEntries(Object.entries({
|
|
2390
|
+
"If-Match": options.ifMatch,
|
|
2391
|
+
"X-Workspace-ID": options.xWorkspaceId,
|
|
2392
|
+
})
|
|
2393
|
+
.filter(([, value]) => value !== undefined && value !== null)
|
|
2394
|
+
.map(([key, value]) => [key, String(value)])), { signal: options.signal });
|
|
2395
|
+
}
|
|
2396
|
+
/** GET /api/v1/model-providers/{provider_id}. Preserves response metadata; mutations are not replayed. */
|
|
2397
|
+
get(options = {}) {
|
|
2398
|
+
return jsonRequest(this.transport, "GET", this.path, undefined, Object.fromEntries(Object.entries({ "X-Workspace-ID": options.xWorkspaceId })
|
|
2399
|
+
.filter(([, value]) => value !== undefined && value !== null)
|
|
2400
|
+
.map(([key, value]) => [key, String(value)])), { signal: options.signal });
|
|
2401
|
+
}
|
|
2402
|
+
/** PATCH /api/v1/model-providers/{provider_id}. Preserves response metadata; mutations are not replayed. */
|
|
2403
|
+
update(body, options) {
|
|
2404
|
+
return jsonRequest(this.transport, "PATCH", this.path, body, Object.fromEntries(Object.entries({
|
|
2405
|
+
"If-Match": options.ifMatch,
|
|
2406
|
+
"X-Workspace-ID": options.xWorkspaceId,
|
|
2407
|
+
})
|
|
2408
|
+
.filter(([, value]) => value !== undefined && value !== null)
|
|
2409
|
+
.map(([key, value]) => [key, String(value)])), { signal: options.signal });
|
|
2410
|
+
}
|
|
2411
|
+
get authorization() {
|
|
2412
|
+
return new ModelProvidersProviderIdAuthorizationResource(this.transport, this.path + "/authorization");
|
|
2413
|
+
}
|
|
2414
|
+
/** POST /api/v1/model-providers/{provider_id}/authorize. Preserves response metadata; mutations are not replayed. */
|
|
2415
|
+
authorize(body, options = {}) {
|
|
2416
|
+
return jsonRequest(this.transport, "POST", this.path + "/authorize", body, Object.fromEntries(Object.entries({ "X-Workspace-ID": options.xWorkspaceId })
|
|
2417
|
+
.filter(([, value]) => value !== undefined && value !== null)
|
|
2418
|
+
.map(([key, value]) => [key, String(value)])), { signal: options.signal });
|
|
2419
|
+
}
|
|
2420
|
+
get models() {
|
|
2421
|
+
return new ModelProvidersProviderIdModelsResource(this.transport, this.path + "/models");
|
|
2422
|
+
}
|
|
2423
|
+
/** POST /api/v1/model-providers/{provider_id}/test. Preserves response metadata; mutations are not replayed. */
|
|
2424
|
+
test(options = {}) {
|
|
2425
|
+
return jsonRequest(this.transport, "POST", this.path + "/test", undefined, Object.fromEntries(Object.entries({ "X-Workspace-ID": options.xWorkspaceId })
|
|
2426
|
+
.filter(([, value]) => value !== undefined && value !== null)
|
|
2427
|
+
.map(([key, value]) => [key, String(value)])), { signal: options.signal });
|
|
2428
|
+
}
|
|
2429
|
+
}
|
|
2430
|
+
export class ModelProvidersProviderIdAuthorizationResource {
|
|
2431
|
+
transport;
|
|
2432
|
+
path;
|
|
2433
|
+
constructor(transport, path) {
|
|
2434
|
+
this.transport = transport;
|
|
2435
|
+
this.path = path;
|
|
2436
|
+
}
|
|
2437
|
+
/** DELETE /api/v1/model-providers/{provider_id}/authorization. Preserves response metadata; mutations are not replayed. */
|
|
2438
|
+
delete(options = {}) {
|
|
2439
|
+
return jsonRequest(this.transport, "DELETE", this.path, undefined, Object.fromEntries(Object.entries({ "X-Workspace-ID": options.xWorkspaceId })
|
|
2440
|
+
.filter(([, value]) => value !== undefined && value !== null)
|
|
2441
|
+
.map(([key, value]) => [key, String(value)])), { signal: options.signal });
|
|
2442
|
+
}
|
|
2443
|
+
/** GET /api/v1/model-providers/{provider_id}/authorization. Preserves response metadata; mutations are not replayed. */
|
|
2444
|
+
get(options = {}) {
|
|
2445
|
+
return jsonRequest(this.transport, "GET", this.path, undefined, Object.fromEntries(Object.entries({ "X-Workspace-ID": options.xWorkspaceId })
|
|
2446
|
+
.filter(([, value]) => value !== undefined && value !== null)
|
|
2447
|
+
.map(([key, value]) => [key, String(value)])), { signal: options.signal });
|
|
2448
|
+
}
|
|
2449
|
+
/** POST /api/v1/model-providers/{provider_id}/authorization/callback. Preserves response metadata; mutations are not replayed. */
|
|
2450
|
+
callback(body, options = {}) {
|
|
2451
|
+
return jsonRequest(this.transport, "POST", this.path + "/callback", body, Object.fromEntries(Object.entries({ "X-Workspace-ID": options.xWorkspaceId })
|
|
2452
|
+
.filter(([, value]) => value !== undefined && value !== null)
|
|
2453
|
+
.map(([key, value]) => [key, String(value)])), { signal: options.signal });
|
|
2454
|
+
}
|
|
2455
|
+
}
|
|
2456
|
+
export class ModelProvidersProviderIdModelsResource {
|
|
2457
|
+
transport;
|
|
2458
|
+
path;
|
|
2459
|
+
constructor(transport, path) {
|
|
2460
|
+
this.transport = transport;
|
|
2461
|
+
this.path = path;
|
|
2462
|
+
}
|
|
2463
|
+
/** GET /api/v1/model-providers/{provider_id}/models. Preserves response metadata; mutations are not replayed. */
|
|
2464
|
+
get(options = {}) {
|
|
2465
|
+
return jsonRequest(this.transport, "GET", this.path, undefined, Object.fromEntries(Object.entries({ "X-Workspace-ID": options.xWorkspaceId })
|
|
2466
|
+
.filter(([, value]) => value !== undefined && value !== null)
|
|
2467
|
+
.map(([key, value]) => [key, String(value)])), { signal: options.signal });
|
|
2468
|
+
}
|
|
2469
|
+
}
|
|
2470
|
+
export class ModelsResource {
|
|
2471
|
+
transport;
|
|
2472
|
+
path;
|
|
2473
|
+
constructor(transport, path) {
|
|
2474
|
+
this.transport = transport;
|
|
2475
|
+
this.path = path;
|
|
2476
|
+
}
|
|
2477
|
+
/** GET /api/v1/models. Preserves response metadata; mutations are not replayed. */
|
|
2478
|
+
list(options = {}) {
|
|
2479
|
+
return jsonRequest(this.transport, "GET", this.path, undefined, Object.fromEntries(Object.entries({ "X-Workspace-ID": options.xWorkspaceId })
|
|
2480
|
+
.filter(([, value]) => value !== undefined && value !== null)
|
|
2481
|
+
.map(([key, value]) => [key, String(value)])), { signal: options.signal, query: options.query });
|
|
2482
|
+
}
|
|
2483
|
+
pages(options = {}) {
|
|
2484
|
+
const query = snapshot(options.query ?? {});
|
|
2485
|
+
return new PageIterator(query.cursor, (cursor) => this.list({ ...options, query: withCursor(query, cursor) }), (value) => value);
|
|
2486
|
+
}
|
|
2487
|
+
items(options = {}) {
|
|
2488
|
+
return flattenPages(this.pages(options), (value) => value);
|
|
2489
|
+
}
|
|
2490
|
+
/** POST /api/v1/models. Preserves response metadata; mutations are not replayed. */
|
|
2491
|
+
create(body, options = {}) {
|
|
2492
|
+
return jsonRequest(this.transport, "POST", this.path, body, Object.fromEntries(Object.entries({ "X-Workspace-ID": options.xWorkspaceId })
|
|
2493
|
+
.filter(([, value]) => value !== undefined && value !== null)
|
|
2494
|
+
.map(([key, value]) => [key, String(value)])), { signal: options.signal });
|
|
2495
|
+
}
|
|
2496
|
+
ref(value) {
|
|
2497
|
+
return new ModelsKeyResource(this.transport, this.path + "/" + encodeURIComponent(selector(String(value))));
|
|
2498
|
+
}
|
|
2499
|
+
}
|
|
2500
|
+
export class ModelsKeyResource {
|
|
2501
|
+
transport;
|
|
2502
|
+
path;
|
|
2503
|
+
constructor(transport, path) {
|
|
2504
|
+
this.transport = transport;
|
|
2505
|
+
this.path = path;
|
|
2506
|
+
}
|
|
2507
|
+
/** GET /api/v1/models/{key}. Preserves response metadata; mutations are not replayed. */
|
|
2508
|
+
get(options = {}) {
|
|
2509
|
+
return jsonRequest(this.transport, "GET", this.path, undefined, Object.fromEntries(Object.entries({ "X-Workspace-ID": options.xWorkspaceId })
|
|
2510
|
+
.filter(([, value]) => value !== undefined && value !== null)
|
|
2511
|
+
.map(([key, value]) => [key, String(value)])), { signal: options.signal });
|
|
2512
|
+
}
|
|
2513
|
+
/** PATCH /api/v1/models/{key}. Preserves response metadata; mutations are not replayed. */
|
|
2514
|
+
update(body, options) {
|
|
2515
|
+
return jsonRequest(this.transport, "PATCH", this.path, body, Object.fromEntries(Object.entries({
|
|
2516
|
+
"If-Match": options.ifMatch,
|
|
2517
|
+
"X-Workspace-ID": options.xWorkspaceId,
|
|
2518
|
+
})
|
|
2519
|
+
.filter(([, value]) => value !== undefined && value !== null)
|
|
2520
|
+
.map(([key, value]) => [key, String(value)])), { signal: options.signal });
|
|
2521
|
+
}
|
|
2522
|
+
}
|
|
2523
|
+
export class OrganizationsResource {
|
|
1444
2524
|
transport;
|
|
1445
2525
|
path;
|
|
1446
2526
|
constructor(transport, path) {
|
|
@@ -1451,9 +2531,310 @@ export class OrganizationsResource {
|
|
|
1451
2531
|
list(options = {}) {
|
|
1452
2532
|
return jsonRequest(this.transport, "GET", this.path, undefined, undefined, {
|
|
1453
2533
|
signal: options.signal,
|
|
1454
|
-
query: options.query,
|
|
2534
|
+
query: options.query,
|
|
2535
|
+
});
|
|
2536
|
+
}
|
|
2537
|
+
pages(options = {}) {
|
|
2538
|
+
const query = snapshot(options.query ?? {});
|
|
2539
|
+
return new PageIterator(query.cursor, (cursor) => this.list({ ...options, query: withCursor(query, cursor) }), (value) => value);
|
|
2540
|
+
}
|
|
2541
|
+
items(options = {}) {
|
|
2542
|
+
return flattenPages(this.pages(options), (value) => value);
|
|
2543
|
+
}
|
|
2544
|
+
ref(value) {
|
|
2545
|
+
return new OrganizationsOrganizationIdResource(this.transport, this.path + "/" + encodeURIComponent(selector(String(value))));
|
|
2546
|
+
}
|
|
2547
|
+
}
|
|
2548
|
+
export class OrganizationsOrganizationIdResource {
|
|
2549
|
+
transport;
|
|
2550
|
+
path;
|
|
2551
|
+
constructor(transport, path) {
|
|
2552
|
+
this.transport = transport;
|
|
2553
|
+
this.path = path;
|
|
2554
|
+
}
|
|
2555
|
+
/** GET /api/v1/organizations/{organization_id}. Preserves response metadata; mutations are not replayed. */
|
|
2556
|
+
get(options = {}) {
|
|
2557
|
+
return jsonRequest(this.transport, "GET", this.path, undefined, undefined, {
|
|
2558
|
+
signal: options.signal,
|
|
2559
|
+
});
|
|
2560
|
+
}
|
|
2561
|
+
/** PATCH /api/v1/organizations/{organization_id}. Preserves response metadata; mutations are not replayed. */
|
|
2562
|
+
update(body, options) {
|
|
2563
|
+
return jsonRequest(this.transport, "PATCH", this.path, body, Object.fromEntries(Object.entries({ "If-Match": options.ifMatch })
|
|
2564
|
+
.filter(([, value]) => value !== undefined && value !== null)
|
|
2565
|
+
.map(([key, value]) => [key, String(value)])), { signal: options.signal });
|
|
2566
|
+
}
|
|
2567
|
+
get auditEvents() {
|
|
2568
|
+
return new OrganizationsOrganizationIdAuditEventsResource(this.transport, this.path + "/audit-events");
|
|
2569
|
+
}
|
|
2570
|
+
get grants() {
|
|
2571
|
+
return new OrganizationsOrganizationIdGrantsResource(this.transport, this.path + "/grants");
|
|
2572
|
+
}
|
|
2573
|
+
get icon() {
|
|
2574
|
+
return new OrganizationsOrganizationIdIconResource(this.transport, this.path + "/icon");
|
|
2575
|
+
}
|
|
2576
|
+
get invitations() {
|
|
2577
|
+
return new OrganizationsOrganizationIdInvitationsResource(this.transport, this.path + "/invitations");
|
|
2578
|
+
}
|
|
2579
|
+
get members() {
|
|
2580
|
+
return new OrganizationsOrganizationIdMembersResource(this.transport, this.path + "/members");
|
|
2581
|
+
}
|
|
2582
|
+
get workspaces() {
|
|
2583
|
+
return new OrganizationsOrganizationIdWorkspacesResource(this.transport, this.path + "/workspaces");
|
|
2584
|
+
}
|
|
2585
|
+
}
|
|
2586
|
+
export class OrganizationsOrganizationIdAuditEventsResource {
|
|
2587
|
+
transport;
|
|
2588
|
+
path;
|
|
2589
|
+
constructor(transport, path) {
|
|
2590
|
+
this.transport = transport;
|
|
2591
|
+
this.path = path;
|
|
2592
|
+
}
|
|
2593
|
+
/** GET /api/v1/organizations/{organization_id}/audit-events. Preserves response metadata; mutations are not replayed. */
|
|
2594
|
+
list(options = {}) {
|
|
2595
|
+
return jsonRequest(this.transport, "GET", this.path, undefined, undefined, {
|
|
2596
|
+
signal: options.signal,
|
|
2597
|
+
query: options.query,
|
|
2598
|
+
});
|
|
2599
|
+
}
|
|
2600
|
+
pages(options = {}) {
|
|
2601
|
+
const query = snapshot(options.query ?? {});
|
|
2602
|
+
return new PageIterator(query.cursor, (cursor) => this.list({ ...options, query: withCursor(query, cursor) }), (value) => value);
|
|
2603
|
+
}
|
|
2604
|
+
items(options = {}) {
|
|
2605
|
+
return flattenPages(this.pages(options), (value) => value);
|
|
2606
|
+
}
|
|
2607
|
+
}
|
|
2608
|
+
export class OrganizationsOrganizationIdGrantsResource {
|
|
2609
|
+
transport;
|
|
2610
|
+
path;
|
|
2611
|
+
constructor(transport, path) {
|
|
2612
|
+
this.transport = transport;
|
|
2613
|
+
this.path = path;
|
|
2614
|
+
}
|
|
2615
|
+
/** GET /api/v1/organizations/{organization_id}/grants. Preserves response metadata; mutations are not replayed. */
|
|
2616
|
+
list(options = {}) {
|
|
2617
|
+
return jsonRequest(this.transport, "GET", this.path, undefined, undefined, {
|
|
2618
|
+
signal: options.signal,
|
|
2619
|
+
query: options.query,
|
|
2620
|
+
});
|
|
2621
|
+
}
|
|
2622
|
+
pages(options = {}) {
|
|
2623
|
+
const query = snapshot(options.query ?? {});
|
|
2624
|
+
return new PageIterator(query.cursor, (cursor) => this.list({ ...options, query: withCursor(query, cursor) }), (value) => value);
|
|
2625
|
+
}
|
|
2626
|
+
items(options = {}) {
|
|
2627
|
+
return flattenPages(this.pages(options), (value) => value);
|
|
2628
|
+
}
|
|
2629
|
+
/** POST /api/v1/organizations/{organization_id}/grants. Preserves response metadata; mutations are not replayed. */
|
|
2630
|
+
create(body, options = {}) {
|
|
2631
|
+
return jsonRequest(this.transport, "POST", this.path, body, undefined, {
|
|
2632
|
+
signal: options.signal,
|
|
2633
|
+
});
|
|
2634
|
+
}
|
|
2635
|
+
ref(value) {
|
|
2636
|
+
return new OrganizationsOrganizationIdGrantsGrantIdResource(this.transport, this.path + "/" + encodeURIComponent(selector(String(value))));
|
|
2637
|
+
}
|
|
2638
|
+
}
|
|
2639
|
+
export class OrganizationsOrganizationIdGrantsGrantIdResource {
|
|
2640
|
+
transport;
|
|
2641
|
+
path;
|
|
2642
|
+
constructor(transport, path) {
|
|
2643
|
+
this.transport = transport;
|
|
2644
|
+
this.path = path;
|
|
2645
|
+
}
|
|
2646
|
+
/** DELETE /api/v1/organizations/{organization_id}/grants/{grant_id}. Preserves response metadata; mutations are not replayed. */
|
|
2647
|
+
delete(options = {}) {
|
|
2648
|
+
return jsonRequest(this.transport, "DELETE", this.path, undefined, undefined, { signal: options.signal });
|
|
2649
|
+
}
|
|
2650
|
+
/** PATCH /api/v1/organizations/{organization_id}/grants/{grant_id}. Preserves response metadata; mutations are not replayed. */
|
|
2651
|
+
update(body, options = {}) {
|
|
2652
|
+
return jsonRequest(this.transport, "PATCH", this.path, body, undefined, {
|
|
2653
|
+
signal: options.signal,
|
|
2654
|
+
});
|
|
2655
|
+
}
|
|
2656
|
+
}
|
|
2657
|
+
export class OrganizationsOrganizationIdIconResource {
|
|
2658
|
+
transport;
|
|
2659
|
+
path;
|
|
2660
|
+
constructor(transport, path) {
|
|
2661
|
+
this.transport = transport;
|
|
2662
|
+
this.path = path;
|
|
2663
|
+
}
|
|
2664
|
+
/** DELETE /api/v1/organizations/{organization_id}/icon. Preserves response metadata; mutations are not replayed. */
|
|
2665
|
+
delete(options) {
|
|
2666
|
+
return jsonRequest(this.transport, "DELETE", this.path, undefined, Object.fromEntries(Object.entries({ "If-Match": options.ifMatch })
|
|
2667
|
+
.filter(([, value]) => value !== undefined && value !== null)
|
|
2668
|
+
.map(([key, value]) => [key, String(value)])), { signal: options.signal });
|
|
2669
|
+
}
|
|
2670
|
+
/** GET /api/v1/organizations/{organization_id}/icon. Caller owns and closes the unbuffered body. */
|
|
2671
|
+
get(options = {}) {
|
|
2672
|
+
return binaryRequest(this.transport, this.path, {
|
|
2673
|
+
...{ signal: options.signal },
|
|
2674
|
+
headers: undefined,
|
|
2675
|
+
accept: "image/jpeg, image/png, image/webp",
|
|
2676
|
+
});
|
|
2677
|
+
}
|
|
2678
|
+
/** PUT /api/v1/organizations/{organization_id}/icon. Preserves response metadata; mutations are not replayed. */
|
|
2679
|
+
replace(body, options) {
|
|
2680
|
+
return uploadRequest(this.transport, "PUT", this.path, body, options.contentType, Object.fromEntries(Object.entries({ "If-Match": options.ifMatch })
|
|
2681
|
+
.filter(([, value]) => value !== undefined && value !== null)
|
|
2682
|
+
.map(([key, value]) => [key, String(value)])), { signal: options.signal });
|
|
2683
|
+
}
|
|
2684
|
+
}
|
|
2685
|
+
export class OrganizationsOrganizationIdInvitationsResource {
|
|
2686
|
+
transport;
|
|
2687
|
+
path;
|
|
2688
|
+
constructor(transport, path) {
|
|
2689
|
+
this.transport = transport;
|
|
2690
|
+
this.path = path;
|
|
2691
|
+
}
|
|
2692
|
+
/** GET /api/v1/organizations/{organization_id}/invitations. Preserves response metadata; mutations are not replayed. */
|
|
2693
|
+
list(options = {}) {
|
|
2694
|
+
return jsonRequest(this.transport, "GET", this.path, undefined, undefined, {
|
|
2695
|
+
signal: options.signal,
|
|
2696
|
+
query: options.query,
|
|
2697
|
+
});
|
|
2698
|
+
}
|
|
2699
|
+
pages(options = {}) {
|
|
2700
|
+
const query = snapshot(options.query ?? {});
|
|
2701
|
+
return new PageIterator(query.cursor, (cursor) => this.list({ ...options, query: withCursor(query, cursor) }), (value) => value);
|
|
2702
|
+
}
|
|
2703
|
+
items(options = {}) {
|
|
2704
|
+
return flattenPages(this.pages(options), (value) => value);
|
|
2705
|
+
}
|
|
2706
|
+
/** POST /api/v1/organizations/{organization_id}/invitations. Preserves response metadata; mutations are not replayed. */
|
|
2707
|
+
create(body, options = {}) {
|
|
2708
|
+
return jsonRequest(this.transport, "POST", this.path, body, undefined, {
|
|
2709
|
+
signal: options.signal,
|
|
2710
|
+
});
|
|
2711
|
+
}
|
|
2712
|
+
ref(value) {
|
|
2713
|
+
return new OrganizationsOrganizationIdInvitationsInvitationIdResource(this.transport, this.path + "/" + encodeURIComponent(selector(String(value))));
|
|
2714
|
+
}
|
|
2715
|
+
}
|
|
2716
|
+
export class OrganizationsOrganizationIdInvitationsInvitationIdResource {
|
|
2717
|
+
transport;
|
|
2718
|
+
path;
|
|
2719
|
+
constructor(transport, path) {
|
|
2720
|
+
this.transport = transport;
|
|
2721
|
+
this.path = path;
|
|
2722
|
+
}
|
|
2723
|
+
/** POST /api/v1/organizations/{organization_id}/invitations/{invitation_id}/resend. Preserves response metadata; mutations are not replayed. */
|
|
2724
|
+
resend(options) {
|
|
2725
|
+
return jsonRequest(this.transport, "POST", this.path + "/resend", undefined, Object.fromEntries(Object.entries({ "If-Match": options.ifMatch })
|
|
2726
|
+
.filter(([, value]) => value !== undefined && value !== null)
|
|
2727
|
+
.map(([key, value]) => [key, String(value)])), { signal: options.signal });
|
|
2728
|
+
}
|
|
2729
|
+
/** POST /api/v1/organizations/{organization_id}/invitations/{invitation_id}/revoke. Preserves response metadata; mutations are not replayed. */
|
|
2730
|
+
revoke(options) {
|
|
2731
|
+
return jsonRequest(this.transport, "POST", this.path + "/revoke", undefined, Object.fromEntries(Object.entries({ "If-Match": options.ifMatch })
|
|
2732
|
+
.filter(([, value]) => value !== undefined && value !== null)
|
|
2733
|
+
.map(([key, value]) => [key, String(value)])), { signal: options.signal });
|
|
2734
|
+
}
|
|
2735
|
+
}
|
|
2736
|
+
export class OrganizationsOrganizationIdMembersResource {
|
|
2737
|
+
transport;
|
|
2738
|
+
path;
|
|
2739
|
+
constructor(transport, path) {
|
|
2740
|
+
this.transport = transport;
|
|
2741
|
+
this.path = path;
|
|
2742
|
+
}
|
|
2743
|
+
/** GET /api/v1/organizations/{organization_id}/members. Preserves response metadata; mutations are not replayed. */
|
|
2744
|
+
list(options = {}) {
|
|
2745
|
+
return jsonRequest(this.transport, "GET", this.path, undefined, undefined, {
|
|
2746
|
+
signal: options.signal,
|
|
2747
|
+
query: options.query,
|
|
2748
|
+
});
|
|
2749
|
+
}
|
|
2750
|
+
pages(options = {}) {
|
|
2751
|
+
const query = snapshot(options.query ?? {});
|
|
2752
|
+
return new PageIterator(query.cursor, (cursor) => this.list({ ...options, query: withCursor(query, cursor) }), (value) => value);
|
|
2753
|
+
}
|
|
2754
|
+
items(options = {}) {
|
|
2755
|
+
return flattenPages(this.pages(options), (value) => value);
|
|
2756
|
+
}
|
|
2757
|
+
}
|
|
2758
|
+
export class OrganizationsOrganizationIdWorkspacesResource {
|
|
2759
|
+
transport;
|
|
2760
|
+
path;
|
|
2761
|
+
constructor(transport, path) {
|
|
2762
|
+
this.transport = transport;
|
|
2763
|
+
this.path = path;
|
|
2764
|
+
}
|
|
2765
|
+
/** GET /api/v1/organizations/{organization_id}/workspaces. Preserves response metadata; mutations are not replayed. */
|
|
2766
|
+
list(options = {}) {
|
|
2767
|
+
return jsonRequest(this.transport, "GET", this.path, undefined, undefined, {
|
|
2768
|
+
signal: options.signal,
|
|
2769
|
+
query: options.query,
|
|
2770
|
+
});
|
|
2771
|
+
}
|
|
2772
|
+
pages(options = {}) {
|
|
2773
|
+
const query = snapshot(options.query ?? {});
|
|
2774
|
+
return new PageIterator(query.cursor, (cursor) => this.list({ ...options, query: withCursor(query, cursor) }), (value) => value);
|
|
2775
|
+
}
|
|
2776
|
+
items(options = {}) {
|
|
2777
|
+
return flattenPages(this.pages(options), (value) => value);
|
|
2778
|
+
}
|
|
2779
|
+
/** POST /api/v1/organizations/{organization_id}/workspaces. Preserves response metadata; mutations are not replayed. */
|
|
2780
|
+
create(body, options = {}) {
|
|
2781
|
+
return jsonRequest(this.transport, "POST", this.path, body, undefined, {
|
|
2782
|
+
signal: options.signal,
|
|
2783
|
+
});
|
|
2784
|
+
}
|
|
2785
|
+
}
|
|
2786
|
+
export class PluginsResource {
|
|
2787
|
+
transport;
|
|
2788
|
+
path;
|
|
2789
|
+
constructor(transport, path) {
|
|
2790
|
+
this.transport = transport;
|
|
2791
|
+
this.path = path;
|
|
2792
|
+
}
|
|
2793
|
+
/** GET /api/v1/plugins. Preserves response metadata; mutations are not replayed. */
|
|
2794
|
+
list(options = {}) {
|
|
2795
|
+
return jsonRequest(this.transport, "GET", this.path, undefined, Object.fromEntries(Object.entries({ "X-Workspace-ID": options.xWorkspaceId })
|
|
2796
|
+
.filter(([, value]) => value !== undefined && value !== null)
|
|
2797
|
+
.map(([key, value]) => [key, String(value)])), { signal: options.signal });
|
|
2798
|
+
}
|
|
2799
|
+
}
|
|
2800
|
+
export class ProviderTypesResource {
|
|
2801
|
+
transport;
|
|
2802
|
+
path;
|
|
2803
|
+
constructor(transport, path) {
|
|
2804
|
+
this.transport = transport;
|
|
2805
|
+
this.path = path;
|
|
2806
|
+
}
|
|
2807
|
+
ref(value) {
|
|
2808
|
+
return new ProviderTypesKindResource(this.transport, this.path + "/" + encodeURIComponent(selector(String(value))));
|
|
2809
|
+
}
|
|
2810
|
+
}
|
|
2811
|
+
export class ProviderTypesKindResource {
|
|
2812
|
+
transport;
|
|
2813
|
+
path;
|
|
2814
|
+
constructor(transport, path) {
|
|
2815
|
+
this.transport = transport;
|
|
2816
|
+
this.path = path;
|
|
2817
|
+
}
|
|
2818
|
+
/** GET /api/v1/provider-types/{kind}. Preserves response metadata; mutations are not replayed. */
|
|
2819
|
+
list(options = {}) {
|
|
2820
|
+
return jsonRequest(this.transport, "GET", this.path, undefined, undefined, {
|
|
2821
|
+
signal: options.signal,
|
|
1455
2822
|
});
|
|
1456
2823
|
}
|
|
2824
|
+
}
|
|
2825
|
+
export class RunsResource {
|
|
2826
|
+
transport;
|
|
2827
|
+
path;
|
|
2828
|
+
constructor(transport, path) {
|
|
2829
|
+
this.transport = transport;
|
|
2830
|
+
this.path = path;
|
|
2831
|
+
}
|
|
2832
|
+
/** GET /api/v1/runs. Preserves response metadata; mutations are not replayed. */
|
|
2833
|
+
list(options = {}) {
|
|
2834
|
+
return jsonRequest(this.transport, "GET", this.path, undefined, Object.fromEntries(Object.entries({ "X-Workspace-ID": options.xWorkspaceId })
|
|
2835
|
+
.filter(([, value]) => value !== undefined && value !== null)
|
|
2836
|
+
.map(([key, value]) => [key, String(value)])), { signal: options.signal, query: options.query });
|
|
2837
|
+
}
|
|
1457
2838
|
pages(options = {}) {
|
|
1458
2839
|
const query = snapshot(options.query ?? {});
|
|
1459
2840
|
return new PageIterator(query.cursor, (cursor) => this.list({ ...options, query: withCursor(query, cursor) }), (value) => value);
|
|
@@ -1462,82 +2843,193 @@ export class OrganizationsResource {
|
|
|
1462
2843
|
return flattenPages(this.pages(options), (value) => value);
|
|
1463
2844
|
}
|
|
1464
2845
|
ref(value) {
|
|
1465
|
-
return new
|
|
2846
|
+
return new RunsRunIdResource(this.transport, this.path + "/" + encodeURIComponent(selector(String(value))));
|
|
1466
2847
|
}
|
|
1467
2848
|
}
|
|
1468
|
-
export class
|
|
2849
|
+
export class RunsRunIdResource {
|
|
1469
2850
|
transport;
|
|
1470
2851
|
path;
|
|
1471
2852
|
constructor(transport, path) {
|
|
1472
2853
|
this.transport = transport;
|
|
1473
2854
|
this.path = path;
|
|
1474
2855
|
}
|
|
1475
|
-
/** GET /api/v1/organizations/{organization_id}. Preserves response metadata; mutations are not replayed. */
|
|
1476
2856
|
get(options = {}) {
|
|
1477
|
-
return jsonRequest(this.transport, "GET", this.path, undefined,
|
|
1478
|
-
|
|
1479
|
-
|
|
2857
|
+
return jsonRequest(this.transport, "GET", this.path, undefined, Object.fromEntries(Object.entries({ "X-Workspace-ID": options.xWorkspaceId })
|
|
2858
|
+
.filter(([, value]) => value !== undefined && value !== null)
|
|
2859
|
+
.map(([key, value]) => [key, String(value)])), { signal: options.signal, query: options.query });
|
|
1480
2860
|
}
|
|
1481
|
-
/** PATCH /api/v1/
|
|
2861
|
+
/** PATCH /api/v1/runs/{run_id}. Preserves response metadata; mutations are not replayed. */
|
|
1482
2862
|
update(body, options) {
|
|
1483
|
-
return jsonRequest(this.transport, "PATCH", this.path, body, Object.fromEntries(Object.entries({
|
|
2863
|
+
return jsonRequest(this.transport, "PATCH", this.path, body, Object.fromEntries(Object.entries({
|
|
2864
|
+
"If-Match": options.ifMatch,
|
|
2865
|
+
"X-Workspace-ID": options.xWorkspaceId,
|
|
2866
|
+
})
|
|
1484
2867
|
.filter(([, value]) => value !== undefined && value !== null)
|
|
1485
2868
|
.map(([key, value]) => [key, String(value)])), { signal: options.signal });
|
|
1486
2869
|
}
|
|
1487
|
-
get
|
|
1488
|
-
return new
|
|
2870
|
+
get agent() {
|
|
2871
|
+
return new RunsRunIdAgentResource(this.transport, this.path + "/agent");
|
|
1489
2872
|
}
|
|
1490
|
-
get
|
|
1491
|
-
return new
|
|
2873
|
+
get apps() {
|
|
2874
|
+
return new RunsRunIdAppsResource(this.transport, this.path + "/apps");
|
|
1492
2875
|
}
|
|
1493
|
-
get
|
|
1494
|
-
return new
|
|
2876
|
+
get attempts() {
|
|
2877
|
+
return new RunsRunIdAttemptsResource(this.transport, this.path + "/attempts");
|
|
1495
2878
|
}
|
|
1496
|
-
get
|
|
1497
|
-
return new
|
|
2879
|
+
get contents() {
|
|
2880
|
+
return new RunsRunIdContentsResource(this.transport, this.path + "/contents");
|
|
1498
2881
|
}
|
|
1499
|
-
|
|
1500
|
-
|
|
2882
|
+
/** POST /api/v1/runs/{run_id}/fork. Preserves response metadata; mutations are not replayed. */
|
|
2883
|
+
fork(body, options) {
|
|
2884
|
+
return jsonRequest(this.transport, "POST", this.path + "/fork", body, Object.fromEntries(Object.entries({
|
|
2885
|
+
"Idempotency-Key": options.idempotencyKey,
|
|
2886
|
+
"X-Workspace-ID": options.xWorkspaceId,
|
|
2887
|
+
})
|
|
2888
|
+
.filter(([, value]) => value !== undefined && value !== null)
|
|
2889
|
+
.map(([key, value]) => [key, String(value)])), { signal: options.signal });
|
|
1501
2890
|
}
|
|
1502
|
-
get
|
|
1503
|
-
return new
|
|
2891
|
+
get images() {
|
|
2892
|
+
return new RunsRunIdImagesResource(this.transport, this.path + "/images");
|
|
2893
|
+
}
|
|
2894
|
+
/** POST /api/v1/runs/{run_id}/interrupt. Preserves response metadata; mutations are not replayed. */
|
|
2895
|
+
interrupt(options = {}) {
|
|
2896
|
+
return jsonRequest(this.transport, "POST", this.path + "/interrupt", undefined, Object.fromEntries(Object.entries({ "X-Workspace-ID": options.xWorkspaceId })
|
|
2897
|
+
.filter(([, value]) => value !== undefined && value !== null)
|
|
2898
|
+
.map(([key, value]) => [key, String(value)])), { signal: options.signal });
|
|
2899
|
+
}
|
|
2900
|
+
get items() {
|
|
2901
|
+
return new RunsRunIdItemsResource(this.transport, this.path + "/items");
|
|
2902
|
+
}
|
|
2903
|
+
get lineage() {
|
|
2904
|
+
return new RunsRunIdLineageResource(this.transport, this.path + "/lineage");
|
|
2905
|
+
}
|
|
2906
|
+
/** POST /api/v1/runs/{run_id}/resume. Preserves response metadata; mutations are not replayed. */
|
|
2907
|
+
resume(body, options) {
|
|
2908
|
+
return jsonRequest(this.transport, "POST", this.path + "/resume", body, Object.fromEntries(Object.entries({
|
|
2909
|
+
"Idempotency-Key": options.idempotencyKey,
|
|
2910
|
+
"X-Workspace-ID": options.xWorkspaceId,
|
|
2911
|
+
})
|
|
2912
|
+
.filter(([, value]) => value !== undefined && value !== null)
|
|
2913
|
+
.map(([key, value]) => [key, String(value)])), { signal: options.signal });
|
|
1504
2914
|
}
|
|
1505
2915
|
}
|
|
1506
|
-
export class
|
|
2916
|
+
export class RunsRunIdAgentResource {
|
|
1507
2917
|
transport;
|
|
1508
2918
|
path;
|
|
1509
2919
|
constructor(transport, path) {
|
|
1510
2920
|
this.transport = transport;
|
|
1511
2921
|
this.path = path;
|
|
1512
2922
|
}
|
|
1513
|
-
|
|
2923
|
+
get(options = {}) {
|
|
2924
|
+
return jsonRequest(this.transport, "GET", this.path, undefined, Object.fromEntries(Object.entries({ "X-Workspace-ID": options.xWorkspaceId })
|
|
2925
|
+
.filter(([, value]) => value !== undefined && value !== null)
|
|
2926
|
+
.map(([key, value]) => [key, String(value)])), { signal: options.signal, query: options.query });
|
|
2927
|
+
}
|
|
2928
|
+
}
|
|
2929
|
+
export class RunsRunIdAppsResource {
|
|
2930
|
+
transport;
|
|
2931
|
+
path;
|
|
2932
|
+
constructor(transport, path) {
|
|
2933
|
+
this.transport = transport;
|
|
2934
|
+
this.path = path;
|
|
2935
|
+
}
|
|
2936
|
+
ref(value) {
|
|
2937
|
+
return new RunsRunIdAppsAppIdResource(this.transport, this.path + "/" + encodeURIComponent(selector(String(value))));
|
|
2938
|
+
}
|
|
2939
|
+
}
|
|
2940
|
+
export class RunsRunIdAppsAppIdResource {
|
|
2941
|
+
transport;
|
|
2942
|
+
path;
|
|
2943
|
+
constructor(transport, path) {
|
|
2944
|
+
this.transport = transport;
|
|
2945
|
+
this.path = path;
|
|
2946
|
+
}
|
|
2947
|
+
/** POST /api/v1/runs/{run_id}/apps/{app_id}/open. Preserves response metadata; mutations are not replayed. */
|
|
2948
|
+
open(options = {}) {
|
|
2949
|
+
return jsonRequest(this.transport, "POST", this.path + "/open", undefined, Object.fromEntries(Object.entries({ "X-Workspace-ID": options.xWorkspaceId })
|
|
2950
|
+
.filter(([, value]) => value !== undefined && value !== null)
|
|
2951
|
+
.map(([key, value]) => [key, String(value)])), { signal: options.signal });
|
|
2952
|
+
}
|
|
2953
|
+
get resources() {
|
|
2954
|
+
return new RunsRunIdAppsAppIdResourcesResource(this.transport, this.path + "/resources");
|
|
2955
|
+
}
|
|
2956
|
+
get tools() {
|
|
2957
|
+
return new RunsRunIdAppsAppIdToolsResource(this.transport, this.path + "/tools");
|
|
2958
|
+
}
|
|
2959
|
+
}
|
|
2960
|
+
export class RunsRunIdAppsAppIdResourcesResource {
|
|
2961
|
+
transport;
|
|
2962
|
+
path;
|
|
2963
|
+
constructor(transport, path) {
|
|
2964
|
+
this.transport = transport;
|
|
2965
|
+
this.path = path;
|
|
2966
|
+
}
|
|
2967
|
+
/** POST /api/v1/runs/{run_id}/apps/{app_id}/resources/read. Preserves response metadata; mutations are not replayed. */
|
|
2968
|
+
read(body, options = {}) {
|
|
2969
|
+
return jsonRequest(this.transport, "POST", this.path + "/read", body, Object.fromEntries(Object.entries({ "X-Workspace-ID": options.xWorkspaceId })
|
|
2970
|
+
.filter(([, value]) => value !== undefined && value !== null)
|
|
2971
|
+
.map(([key, value]) => [key, String(value)])), { signal: options.signal });
|
|
2972
|
+
}
|
|
2973
|
+
}
|
|
2974
|
+
export class RunsRunIdAppsAppIdToolsResource {
|
|
2975
|
+
transport;
|
|
2976
|
+
path;
|
|
2977
|
+
constructor(transport, path) {
|
|
2978
|
+
this.transport = transport;
|
|
2979
|
+
this.path = path;
|
|
2980
|
+
}
|
|
2981
|
+
/** POST /api/v1/runs/{run_id}/apps/{app_id}/tools/call. Preserves response metadata; mutations are not replayed. */
|
|
2982
|
+
call(body, options = {}) {
|
|
2983
|
+
return jsonRequest(this.transport, "POST", this.path + "/call", body, Object.fromEntries(Object.entries({ "X-Workspace-ID": options.xWorkspaceId })
|
|
2984
|
+
.filter(([, value]) => value !== undefined && value !== null)
|
|
2985
|
+
.map(([key, value]) => [key, String(value)])), { signal: options.signal });
|
|
2986
|
+
}
|
|
2987
|
+
}
|
|
2988
|
+
export class RunsRunIdAttemptsResource {
|
|
2989
|
+
transport;
|
|
2990
|
+
path;
|
|
2991
|
+
constructor(transport, path) {
|
|
2992
|
+
this.transport = transport;
|
|
2993
|
+
this.path = path;
|
|
2994
|
+
}
|
|
2995
|
+
/** GET /api/v1/runs/{run_id}/attempts. Preserves response metadata; mutations are not replayed. */
|
|
1514
2996
|
list(options = {}) {
|
|
1515
|
-
return jsonRequest(this.transport, "GET", this.path, undefined,
|
|
1516
|
-
|
|
1517
|
-
|
|
1518
|
-
});
|
|
2997
|
+
return jsonRequest(this.transport, "GET", this.path, undefined, Object.fromEntries(Object.entries({ "X-Workspace-ID": options.xWorkspaceId })
|
|
2998
|
+
.filter(([, value]) => value !== undefined && value !== null)
|
|
2999
|
+
.map(([key, value]) => [key, String(value)])), { signal: options.signal });
|
|
1519
3000
|
}
|
|
1520
|
-
|
|
1521
|
-
|
|
1522
|
-
return new PageIterator(query.cursor, (cursor) => this.list({ ...options, query: withCursor(query, cursor) }), (value) => value);
|
|
3001
|
+
ref(value) {
|
|
3002
|
+
return new RunsRunIdAttemptsAttemptIdResource(this.transport, this.path + "/" + encodeURIComponent(selector(String(value))));
|
|
1523
3003
|
}
|
|
1524
|
-
|
|
1525
|
-
|
|
3004
|
+
}
|
|
3005
|
+
export class RunsRunIdAttemptsAttemptIdResource {
|
|
3006
|
+
transport;
|
|
3007
|
+
path;
|
|
3008
|
+
constructor(transport, path) {
|
|
3009
|
+
this.transport = transport;
|
|
3010
|
+
this.path = path;
|
|
3011
|
+
}
|
|
3012
|
+
/** GET /api/v1/runs/{run_id}/attempts/{attempt_id}. Preserves response metadata; mutations are not replayed. */
|
|
3013
|
+
get(options = {}) {
|
|
3014
|
+
return jsonRequest(this.transport, "GET", this.path, undefined, Object.fromEntries(Object.entries({ "X-Workspace-ID": options.xWorkspaceId })
|
|
3015
|
+
.filter(([, value]) => value !== undefined && value !== null)
|
|
3016
|
+
.map(([key, value]) => [key, String(value)])), { signal: options.signal });
|
|
3017
|
+
}
|
|
3018
|
+
get trace() {
|
|
3019
|
+
return new RunsRunIdAttemptsAttemptIdTraceResource(this.transport, this.path + "/trace");
|
|
1526
3020
|
}
|
|
1527
3021
|
}
|
|
1528
|
-
export class
|
|
3022
|
+
export class RunsRunIdAttemptsAttemptIdTraceResource {
|
|
1529
3023
|
transport;
|
|
1530
3024
|
path;
|
|
1531
3025
|
constructor(transport, path) {
|
|
1532
3026
|
this.transport = transport;
|
|
1533
3027
|
this.path = path;
|
|
1534
3028
|
}
|
|
1535
|
-
/** GET /api/v1/organizations/{organization_id}/grants. Preserves response metadata; mutations are not replayed. */
|
|
1536
3029
|
list(options = {}) {
|
|
1537
|
-
return jsonRequest(this.transport, "GET", this.path, undefined,
|
|
1538
|
-
|
|
1539
|
-
query: options.query
|
|
1540
|
-
});
|
|
3030
|
+
return jsonRequest(this.transport, "GET", this.path, undefined, Object.fromEntries(Object.entries({ "X-Workspace-ID": options.xWorkspaceId })
|
|
3031
|
+
.filter(([, value]) => value !== undefined && value !== null)
|
|
3032
|
+
.map(([key, value]) => [key, String(value)])), { signal: options.signal, query: options.query });
|
|
1541
3033
|
}
|
|
1542
3034
|
pages(options = {}) {
|
|
1543
3035
|
const query = snapshot(options.query ?? {});
|
|
@@ -1546,126 +3038,113 @@ export class OrganizationsOrganizationIdGrantsResource {
|
|
|
1546
3038
|
items(options = {}) {
|
|
1547
3039
|
return flattenPages(this.pages(options), (value) => value);
|
|
1548
3040
|
}
|
|
1549
|
-
|
|
1550
|
-
|
|
1551
|
-
|
|
1552
|
-
|
|
1553
|
-
|
|
3041
|
+
}
|
|
3042
|
+
export class RunsRunIdContentsResource {
|
|
3043
|
+
transport;
|
|
3044
|
+
path;
|
|
3045
|
+
constructor(transport, path) {
|
|
3046
|
+
this.transport = transport;
|
|
3047
|
+
this.path = path;
|
|
1554
3048
|
}
|
|
1555
3049
|
ref(value) {
|
|
1556
|
-
return new
|
|
3050
|
+
return new RunsRunIdContentsContentIdResource(this.transport, this.path + "/" + encodeURIComponent(selector(String(value))));
|
|
1557
3051
|
}
|
|
1558
3052
|
}
|
|
1559
|
-
export class
|
|
3053
|
+
export class RunsRunIdContentsContentIdResource {
|
|
1560
3054
|
transport;
|
|
1561
3055
|
path;
|
|
1562
3056
|
constructor(transport, path) {
|
|
1563
3057
|
this.transport = transport;
|
|
1564
3058
|
this.path = path;
|
|
1565
3059
|
}
|
|
1566
|
-
|
|
1567
|
-
|
|
1568
|
-
|
|
1569
|
-
|
|
1570
|
-
/** PATCH /api/v1/organizations/{organization_id}/grants/{grant_id}. Preserves response metadata; mutations are not replayed. */
|
|
1571
|
-
update(body, options = {}) {
|
|
1572
|
-
return jsonRequest(this.transport, "PATCH", this.path, body, undefined, {
|
|
1573
|
-
signal: options.signal,
|
|
1574
|
-
});
|
|
3060
|
+
get(options = {}) {
|
|
3061
|
+
return jsonRequest(this.transport, "GET", this.path, undefined, Object.fromEntries(Object.entries({ "X-Workspace-ID": options.xWorkspaceId })
|
|
3062
|
+
.filter(([, value]) => value !== undefined && value !== null)
|
|
3063
|
+
.map(([key, value]) => [key, String(value)])), { signal: options.signal, query: options.query });
|
|
1575
3064
|
}
|
|
1576
3065
|
}
|
|
1577
|
-
export class
|
|
3066
|
+
export class RunsRunIdImagesResource {
|
|
1578
3067
|
transport;
|
|
1579
3068
|
path;
|
|
1580
3069
|
constructor(transport, path) {
|
|
1581
3070
|
this.transport = transport;
|
|
1582
3071
|
this.path = path;
|
|
1583
3072
|
}
|
|
1584
|
-
|
|
1585
|
-
|
|
1586
|
-
return jsonRequest(this.transport, "DELETE", this.path, undefined, Object.fromEntries(Object.entries({ "If-Match": options.ifMatch })
|
|
1587
|
-
.filter(([, value]) => value !== undefined && value !== null)
|
|
1588
|
-
.map(([key, value]) => [key, String(value)])), { signal: options.signal });
|
|
3073
|
+
ref(value) {
|
|
3074
|
+
return new RunsRunIdImagesImageIdResource(this.transport, this.path + "/" + encodeURIComponent(selector(String(value))));
|
|
1589
3075
|
}
|
|
1590
|
-
|
|
3076
|
+
}
|
|
3077
|
+
export class RunsRunIdImagesImageIdResource {
|
|
3078
|
+
transport;
|
|
3079
|
+
path;
|
|
3080
|
+
constructor(transport, path) {
|
|
3081
|
+
this.transport = transport;
|
|
3082
|
+
this.path = path;
|
|
3083
|
+
}
|
|
3084
|
+
/** GET /api/v1/runs/{run_id}/images/{image_id}. Caller owns and closes the unbuffered body. */
|
|
1591
3085
|
get(options = {}) {
|
|
1592
3086
|
return binaryRequest(this.transport, this.path, {
|
|
1593
3087
|
...{ signal: options.signal },
|
|
1594
|
-
headers:
|
|
1595
|
-
|
|
3088
|
+
headers: Object.fromEntries(Object.entries({ "X-Workspace-ID": options.xWorkspaceId })
|
|
3089
|
+
.filter(([, value]) => value !== undefined && value !== null)
|
|
3090
|
+
.map(([key, value]) => [key, String(value)])),
|
|
3091
|
+
accept: "image/jpeg, image/png",
|
|
1596
3092
|
});
|
|
1597
3093
|
}
|
|
1598
|
-
|
|
1599
|
-
|
|
1600
|
-
|
|
3094
|
+
}
|
|
3095
|
+
export class RunsRunIdItemsResource {
|
|
3096
|
+
transport;
|
|
3097
|
+
path;
|
|
3098
|
+
constructor(transport, path) {
|
|
3099
|
+
this.transport = transport;
|
|
3100
|
+
this.path = path;
|
|
3101
|
+
}
|
|
3102
|
+
get(options = {}) {
|
|
3103
|
+
return jsonRequest(this.transport, "GET", this.path, undefined, Object.fromEntries(Object.entries({ "X-Workspace-ID": options.xWorkspaceId })
|
|
1601
3104
|
.filter(([, value]) => value !== undefined && value !== null)
|
|
1602
|
-
.map(([key, value]) => [key, String(value)])), { signal: options.signal });
|
|
3105
|
+
.map(([key, value]) => [key, String(value)])), { signal: options.signal, query: options.query });
|
|
3106
|
+
}
|
|
3107
|
+
ref(value) {
|
|
3108
|
+
return new RunsRunIdItemsItemIdResource(this.transport, this.path + "/" + encodeURIComponent(selector(String(value))));
|
|
1603
3109
|
}
|
|
1604
3110
|
}
|
|
1605
|
-
export class
|
|
3111
|
+
export class RunsRunIdItemsItemIdResource {
|
|
1606
3112
|
transport;
|
|
1607
3113
|
path;
|
|
1608
3114
|
constructor(transport, path) {
|
|
1609
3115
|
this.transport = transport;
|
|
1610
3116
|
this.path = path;
|
|
1611
3117
|
}
|
|
1612
|
-
|
|
1613
|
-
|
|
1614
|
-
return jsonRequest(this.transport, "GET", this.path, undefined, undefined, {
|
|
1615
|
-
signal: options.signal,
|
|
1616
|
-
query: options.query,
|
|
1617
|
-
});
|
|
1618
|
-
}
|
|
1619
|
-
pages(options = {}) {
|
|
1620
|
-
const query = snapshot(options.query ?? {});
|
|
1621
|
-
return new PageIterator(query.cursor, (cursor) => this.list({ ...options, query: withCursor(query, cursor) }), (value) => value);
|
|
1622
|
-
}
|
|
1623
|
-
items(options = {}) {
|
|
1624
|
-
return flattenPages(this.pages(options), (value) => value);
|
|
1625
|
-
}
|
|
1626
|
-
/** POST /api/v1/organizations/{organization_id}/invitations. Preserves response metadata; mutations are not replayed. */
|
|
1627
|
-
create(body, options = {}) {
|
|
1628
|
-
return jsonRequest(this.transport, "POST", this.path, body, undefined, {
|
|
1629
|
-
signal: options.signal,
|
|
1630
|
-
});
|
|
1631
|
-
}
|
|
1632
|
-
ref(value) {
|
|
1633
|
-
return new OrganizationsOrganizationIdInvitationsInvitationIdResource(this.transport, this.path + "/" + encodeURIComponent(selector(String(value))));
|
|
3118
|
+
get content() {
|
|
3119
|
+
return new RunsRunIdItemsItemIdContentResource(this.transport, this.path + "/content");
|
|
1634
3120
|
}
|
|
1635
3121
|
}
|
|
1636
|
-
export class
|
|
3122
|
+
export class RunsRunIdItemsItemIdContentResource {
|
|
1637
3123
|
transport;
|
|
1638
3124
|
path;
|
|
1639
3125
|
constructor(transport, path) {
|
|
1640
3126
|
this.transport = transport;
|
|
1641
3127
|
this.path = path;
|
|
1642
3128
|
}
|
|
1643
|
-
/**
|
|
1644
|
-
|
|
1645
|
-
return jsonRequest(this.transport, "
|
|
1646
|
-
.filter(([, value]) => value !== undefined && value !== null)
|
|
1647
|
-
.map(([key, value]) => [key, String(value)])), { signal: options.signal });
|
|
1648
|
-
}
|
|
1649
|
-
/** POST /api/v1/organizations/{organization_id}/invitations/{invitation_id}/revoke. Preserves response metadata; mutations are not replayed. */
|
|
1650
|
-
revoke(options) {
|
|
1651
|
-
return jsonRequest(this.transport, "POST", this.path + "/revoke", undefined, Object.fromEntries(Object.entries({ "If-Match": options.ifMatch })
|
|
3129
|
+
/** GET /api/v1/runs/{run_id}/items/{item_id}/content. Preserves response metadata; mutations are not replayed. */
|
|
3130
|
+
get(options) {
|
|
3131
|
+
return jsonRequest(this.transport, "GET", this.path, undefined, Object.fromEntries(Object.entries({ "X-Workspace-ID": options.xWorkspaceId })
|
|
1652
3132
|
.filter(([, value]) => value !== undefined && value !== null)
|
|
1653
|
-
.map(([key, value]) => [key, String(value)])), { signal: options.signal });
|
|
3133
|
+
.map(([key, value]) => [key, String(value)])), { signal: options.signal, query: options.query });
|
|
1654
3134
|
}
|
|
1655
3135
|
}
|
|
1656
|
-
export class
|
|
3136
|
+
export class RunsRunIdLineageResource {
|
|
1657
3137
|
transport;
|
|
1658
3138
|
path;
|
|
1659
3139
|
constructor(transport, path) {
|
|
1660
3140
|
this.transport = transport;
|
|
1661
3141
|
this.path = path;
|
|
1662
3142
|
}
|
|
1663
|
-
/** GET /api/v1/
|
|
3143
|
+
/** GET /api/v1/runs/{run_id}/lineage. Preserves response metadata; mutations are not replayed. */
|
|
1664
3144
|
list(options = {}) {
|
|
1665
|
-
return jsonRequest(this.transport, "GET", this.path, undefined,
|
|
1666
|
-
|
|
1667
|
-
query: options.query
|
|
1668
|
-
});
|
|
3145
|
+
return jsonRequest(this.transport, "GET", this.path, undefined, Object.fromEntries(Object.entries({ "X-Workspace-ID": options.xWorkspaceId })
|
|
3146
|
+
.filter(([, value]) => value !== undefined && value !== null)
|
|
3147
|
+
.map(([key, value]) => [key, String(value)])), { signal: options.signal, query: options.query });
|
|
1669
3148
|
}
|
|
1670
3149
|
pages(options = {}) {
|
|
1671
3150
|
const query = snapshot(options.query ?? {});
|
|
@@ -1675,19 +3154,18 @@ export class OrganizationsOrganizationIdMembersResource {
|
|
|
1675
3154
|
return flattenPages(this.pages(options), (value) => value);
|
|
1676
3155
|
}
|
|
1677
3156
|
}
|
|
1678
|
-
export class
|
|
3157
|
+
export class SchedulesResource {
|
|
1679
3158
|
transport;
|
|
1680
3159
|
path;
|
|
1681
3160
|
constructor(transport, path) {
|
|
1682
3161
|
this.transport = transport;
|
|
1683
3162
|
this.path = path;
|
|
1684
3163
|
}
|
|
1685
|
-
/** GET /api/v1/
|
|
3164
|
+
/** GET /api/v1/schedules. Preserves response metadata; mutations are not replayed. */
|
|
1686
3165
|
list(options = {}) {
|
|
1687
|
-
return jsonRequest(this.transport, "GET", this.path, undefined,
|
|
1688
|
-
|
|
1689
|
-
query: options.query
|
|
1690
|
-
});
|
|
3166
|
+
return jsonRequest(this.transport, "GET", this.path, undefined, Object.fromEntries(Object.entries({ "X-Workspace-ID": options.xWorkspaceId })
|
|
3167
|
+
.filter(([, value]) => value !== undefined && value !== null)
|
|
3168
|
+
.map(([key, value]) => [key, String(value)])), { signal: options.signal, query: options.query });
|
|
1691
3169
|
}
|
|
1692
3170
|
pages(options = {}) {
|
|
1693
3171
|
const query = snapshot(options.query ?? {});
|
|
@@ -1696,63 +3174,48 @@ export class OrganizationsOrganizationIdWorkspacesResource {
|
|
|
1696
3174
|
items(options = {}) {
|
|
1697
3175
|
return flattenPages(this.pages(options), (value) => value);
|
|
1698
3176
|
}
|
|
1699
|
-
/** POST /api/v1/
|
|
1700
|
-
create(body, options
|
|
1701
|
-
return jsonRequest(this.transport, "POST", this.path, body,
|
|
1702
|
-
|
|
1703
|
-
|
|
3177
|
+
/** POST /api/v1/schedules. Preserves response metadata; mutations are not replayed. */
|
|
3178
|
+
create(body, options) {
|
|
3179
|
+
return jsonRequest(this.transport, "POST", this.path, body, Object.fromEntries(Object.entries({
|
|
3180
|
+
"Idempotency-Key": options.idempotencyKey,
|
|
3181
|
+
"X-Workspace-ID": options.xWorkspaceId,
|
|
3182
|
+
})
|
|
3183
|
+
.filter(([, value]) => value !== undefined && value !== null)
|
|
3184
|
+
.map(([key, value]) => [key, String(value)])), { signal: options.signal });
|
|
1704
3185
|
}
|
|
1705
|
-
|
|
1706
|
-
|
|
1707
|
-
|
|
1708
|
-
|
|
1709
|
-
|
|
1710
|
-
this.transport = transport;
|
|
1711
|
-
this.path = path;
|
|
3186
|
+
/** POST /api/v1/schedules/preview. Preserves response metadata; mutations are not replayed. */
|
|
3187
|
+
preview(body, options = {}) {
|
|
3188
|
+
return jsonRequest(this.transport, "POST", this.path + "/preview", body, Object.fromEntries(Object.entries({ "X-Workspace-ID": options.xWorkspaceId })
|
|
3189
|
+
.filter(([, value]) => value !== undefined && value !== null)
|
|
3190
|
+
.map(([key, value]) => [key, String(value)])), { signal: options.signal });
|
|
1712
3191
|
}
|
|
1713
3192
|
ref(value) {
|
|
1714
|
-
return new
|
|
1715
|
-
}
|
|
1716
|
-
}
|
|
1717
|
-
export class ProviderTypesKindResource {
|
|
1718
|
-
transport;
|
|
1719
|
-
path;
|
|
1720
|
-
constructor(transport, path) {
|
|
1721
|
-
this.transport = transport;
|
|
1722
|
-
this.path = path;
|
|
1723
|
-
}
|
|
1724
|
-
/** GET /api/v1/provider-types/{kind}. Preserves response metadata; mutations are not replayed. */
|
|
1725
|
-
list(options = {}) {
|
|
1726
|
-
return jsonRequest(this.transport, "GET", this.path, undefined, undefined, {
|
|
1727
|
-
signal: options.signal,
|
|
1728
|
-
});
|
|
3193
|
+
return new SchedulesScheduleIdResource(this.transport, this.path + "/" + encodeURIComponent(selector(String(value))));
|
|
1729
3194
|
}
|
|
1730
3195
|
}
|
|
1731
|
-
export class
|
|
3196
|
+
export class SchedulesScheduleIdResource {
|
|
1732
3197
|
transport;
|
|
1733
3198
|
path;
|
|
1734
3199
|
constructor(transport, path) {
|
|
1735
3200
|
this.transport = transport;
|
|
1736
3201
|
this.path = path;
|
|
1737
3202
|
}
|
|
1738
|
-
|
|
1739
|
-
|
|
1740
|
-
|
|
1741
|
-
|
|
1742
|
-
|
|
1743
|
-
|
|
1744
|
-
|
|
1745
|
-
|
|
1746
|
-
this.transport = transport;
|
|
1747
|
-
this.path = path;
|
|
3203
|
+
/** DELETE /api/v1/schedules/{schedule_id}. Preserves response metadata; mutations are not replayed. */
|
|
3204
|
+
delete(options) {
|
|
3205
|
+
return jsonRequest(this.transport, "DELETE", this.path, undefined, Object.fromEntries(Object.entries({
|
|
3206
|
+
"If-Match": options.ifMatch,
|
|
3207
|
+
"X-Workspace-ID": options.xWorkspaceId,
|
|
3208
|
+
})
|
|
3209
|
+
.filter(([, value]) => value !== undefined && value !== null)
|
|
3210
|
+
.map(([key, value]) => [key, String(value)])), { signal: options.signal });
|
|
1748
3211
|
}
|
|
1749
|
-
/** GET /api/v1/
|
|
3212
|
+
/** GET /api/v1/schedules/{schedule_id}. Preserves response metadata; mutations are not replayed. */
|
|
1750
3213
|
get(options = {}) {
|
|
1751
3214
|
return jsonRequest(this.transport, "GET", this.path, undefined, Object.fromEntries(Object.entries({ "X-Workspace-ID": options.xWorkspaceId })
|
|
1752
3215
|
.filter(([, value]) => value !== undefined && value !== null)
|
|
1753
3216
|
.map(([key, value]) => [key, String(value)])), { signal: options.signal });
|
|
1754
3217
|
}
|
|
1755
|
-
/** PATCH /api/v1/
|
|
3218
|
+
/** PATCH /api/v1/schedules/{schedule_id}. Preserves response metadata; mutations are not replayed. */
|
|
1756
3219
|
update(body, options) {
|
|
1757
3220
|
return jsonRequest(this.transport, "PATCH", this.path, body, Object.fromEntries(Object.entries({
|
|
1758
3221
|
"If-Match": options.ifMatch,
|
|
@@ -1761,76 +3224,49 @@ export class RunsRunIdResource {
|
|
|
1761
3224
|
.filter(([, value]) => value !== undefined && value !== null)
|
|
1762
3225
|
.map(([key, value]) => [key, String(value)])), { signal: options.signal });
|
|
1763
3226
|
}
|
|
1764
|
-
|
|
1765
|
-
|
|
1766
|
-
|
|
1767
|
-
/** POST /api/v1/runs/{run_id}/fork. Preserves response metadata; mutations are not replayed. */
|
|
1768
|
-
fork(body, options) {
|
|
1769
|
-
return jsonRequest(this.transport, "POST", this.path + "/fork", body, Object.fromEntries(Object.entries({
|
|
3227
|
+
/** POST /api/v1/schedules/{schedule_id}/dispatch. Preserves response metadata; mutations are not replayed. */
|
|
3228
|
+
dispatch(body, options) {
|
|
3229
|
+
return jsonRequest(this.transport, "POST", this.path + "/dispatch", body, Object.fromEntries(Object.entries({
|
|
1770
3230
|
"Idempotency-Key": options.idempotencyKey,
|
|
3231
|
+
"If-Match": options.ifMatch,
|
|
1771
3232
|
"X-Workspace-ID": options.xWorkspaceId,
|
|
1772
3233
|
})
|
|
1773
3234
|
.filter(([, value]) => value !== undefined && value !== null)
|
|
1774
3235
|
.map(([key, value]) => [key, String(value)])), { signal: options.signal });
|
|
1775
3236
|
}
|
|
1776
|
-
/** POST /api/v1/
|
|
1777
|
-
|
|
1778
|
-
return jsonRequest(this.transport, "POST", this.path + "/
|
|
1779
|
-
.
|
|
1780
|
-
.map(([key, value]) => [key, String(value)])), { signal: options.signal });
|
|
1781
|
-
}
|
|
1782
|
-
get items() {
|
|
1783
|
-
return new RunsRunIdItemsResource(this.transport, this.path + "/items");
|
|
1784
|
-
}
|
|
1785
|
-
get lineage() {
|
|
1786
|
-
return new RunsRunIdLineageResource(this.transport, this.path + "/lineage");
|
|
1787
|
-
}
|
|
1788
|
-
/** POST /api/v1/runs/{run_id}/resume. Preserves response metadata; mutations are not replayed. */
|
|
1789
|
-
resume(body, options) {
|
|
1790
|
-
return jsonRequest(this.transport, "POST", this.path + "/resume", body, Object.fromEntries(Object.entries({
|
|
1791
|
-
"Idempotency-Key": options.idempotencyKey,
|
|
3237
|
+
/** POST /api/v1/schedules/{schedule_id}/enable. Preserves response metadata; mutations are not replayed. */
|
|
3238
|
+
enable(body, options) {
|
|
3239
|
+
return jsonRequest(this.transport, "POST", this.path + "/enable", body, Object.fromEntries(Object.entries({
|
|
3240
|
+
"If-Match": options.ifMatch,
|
|
1792
3241
|
"X-Workspace-ID": options.xWorkspaceId,
|
|
1793
3242
|
})
|
|
1794
3243
|
.filter(([, value]) => value !== undefined && value !== null)
|
|
1795
3244
|
.map(([key, value]) => [key, String(value)])), { signal: options.signal });
|
|
1796
3245
|
}
|
|
1797
|
-
|
|
1798
|
-
|
|
1799
|
-
transport;
|
|
1800
|
-
path;
|
|
1801
|
-
constructor(transport, path) {
|
|
1802
|
-
this.transport = transport;
|
|
1803
|
-
this.path = path;
|
|
3246
|
+
get occurrences() {
|
|
3247
|
+
return new SchedulesScheduleIdOccurrencesResource(this.transport, this.path + "/occurrences");
|
|
1804
3248
|
}
|
|
1805
|
-
/**
|
|
1806
|
-
|
|
1807
|
-
return jsonRequest(this.transport, "
|
|
3249
|
+
/** POST /api/v1/schedules/{schedule_id}/pause. Preserves response metadata; mutations are not replayed. */
|
|
3250
|
+
pause(body, options) {
|
|
3251
|
+
return jsonRequest(this.transport, "POST", this.path + "/pause", body, Object.fromEntries(Object.entries({
|
|
3252
|
+
"If-Match": options.ifMatch,
|
|
3253
|
+
"X-Workspace-ID": options.xWorkspaceId,
|
|
3254
|
+
})
|
|
1808
3255
|
.filter(([, value]) => value !== undefined && value !== null)
|
|
1809
3256
|
.map(([key, value]) => [key, String(value)])), { signal: options.signal });
|
|
1810
3257
|
}
|
|
1811
|
-
|
|
1812
|
-
return new
|
|
1813
|
-
}
|
|
1814
|
-
}
|
|
1815
|
-
export class RunsRunIdAttemptsAttemptIdResource {
|
|
1816
|
-
transport;
|
|
1817
|
-
path;
|
|
1818
|
-
constructor(transport, path) {
|
|
1819
|
-
this.transport = transport;
|
|
1820
|
-
this.path = path;
|
|
1821
|
-
}
|
|
1822
|
-
get trace() {
|
|
1823
|
-
return new RunsRunIdAttemptsAttemptIdTraceResource(this.transport, this.path + "/trace");
|
|
3258
|
+
get status() {
|
|
3259
|
+
return new SchedulesScheduleIdStatusResource(this.transport, this.path + "/status");
|
|
1824
3260
|
}
|
|
1825
3261
|
}
|
|
1826
|
-
export class
|
|
3262
|
+
export class SchedulesScheduleIdOccurrencesResource {
|
|
1827
3263
|
transport;
|
|
1828
3264
|
path;
|
|
1829
3265
|
constructor(transport, path) {
|
|
1830
3266
|
this.transport = transport;
|
|
1831
3267
|
this.path = path;
|
|
1832
3268
|
}
|
|
1833
|
-
/** GET /api/v1/
|
|
3269
|
+
/** GET /api/v1/schedules/{schedule_id}/occurrences. Preserves response metadata; mutations are not replayed. */
|
|
1834
3270
|
list(options = {}) {
|
|
1835
3271
|
return jsonRequest(this.transport, "GET", this.path, undefined, Object.fromEntries(Object.entries({ "X-Workspace-ID": options.xWorkspaceId })
|
|
1836
3272
|
.filter(([, value]) => value !== undefined && value !== null)
|
|
@@ -1843,40 +3279,36 @@ export class RunsRunIdAttemptsAttemptIdTraceResource {
|
|
|
1843
3279
|
items(options = {}) {
|
|
1844
3280
|
return flattenPages(this.pages(options), (value) => value);
|
|
1845
3281
|
}
|
|
3282
|
+
ref(value) {
|
|
3283
|
+
return new SchedulesScheduleIdOccurrencesOccurrenceIdResource(this.transport, this.path + "/" + encodeURIComponent(selector(String(value))));
|
|
3284
|
+
}
|
|
1846
3285
|
}
|
|
1847
|
-
export class
|
|
3286
|
+
export class SchedulesScheduleIdOccurrencesOccurrenceIdResource {
|
|
1848
3287
|
transport;
|
|
1849
3288
|
path;
|
|
1850
3289
|
constructor(transport, path) {
|
|
1851
3290
|
this.transport = transport;
|
|
1852
3291
|
this.path = path;
|
|
1853
3292
|
}
|
|
1854
|
-
/** GET /api/v1/
|
|
3293
|
+
/** GET /api/v1/schedules/{schedule_id}/occurrences/{occurrence_id}. Preserves response metadata; mutations are not replayed. */
|
|
1855
3294
|
get(options = {}) {
|
|
1856
3295
|
return jsonRequest(this.transport, "GET", this.path, undefined, Object.fromEntries(Object.entries({ "X-Workspace-ID": options.xWorkspaceId })
|
|
1857
3296
|
.filter(([, value]) => value !== undefined && value !== null)
|
|
1858
|
-
.map(([key, value]) => [key, String(value)])), { signal: options.signal });
|
|
3297
|
+
.map(([key, value]) => [key, String(value)])), { signal: options.signal, query: options.query });
|
|
1859
3298
|
}
|
|
1860
3299
|
}
|
|
1861
|
-
export class
|
|
3300
|
+
export class SchedulesScheduleIdStatusResource {
|
|
1862
3301
|
transport;
|
|
1863
3302
|
path;
|
|
1864
3303
|
constructor(transport, path) {
|
|
1865
3304
|
this.transport = transport;
|
|
1866
3305
|
this.path = path;
|
|
1867
3306
|
}
|
|
1868
|
-
/** GET /api/v1/
|
|
1869
|
-
|
|
3307
|
+
/** GET /api/v1/schedules/{schedule_id}/status. Preserves response metadata; mutations are not replayed. */
|
|
3308
|
+
get(options = {}) {
|
|
1870
3309
|
return jsonRequest(this.transport, "GET", this.path, undefined, Object.fromEntries(Object.entries({ "X-Workspace-ID": options.xWorkspaceId })
|
|
1871
3310
|
.filter(([, value]) => value !== undefined && value !== null)
|
|
1872
|
-
.map(([key, value]) => [key, String(value)])), { signal: options.signal
|
|
1873
|
-
}
|
|
1874
|
-
pages(options = {}) {
|
|
1875
|
-
const query = snapshot(options.query ?? {});
|
|
1876
|
-
return new PageIterator(query.cursor, (cursor) => this.list({ ...options, query: withCursor(query, cursor) }), (value) => value);
|
|
1877
|
-
}
|
|
1878
|
-
items(options = {}) {
|
|
1879
|
-
return flattenPages(this.pages(options), (value) => value);
|
|
3311
|
+
.map(([key, value]) => [key, String(value)])), { signal: options.signal });
|
|
1880
3312
|
}
|
|
1881
3313
|
}
|
|
1882
3314
|
export class SessionsResource {
|
|
@@ -1931,6 +3363,68 @@ export class SessionsSessionIdResource {
|
|
|
1931
3363
|
.filter(([, value]) => value !== undefined && value !== null)
|
|
1932
3364
|
.map(([key, value]) => [key, String(value)])), { signal: options.signal });
|
|
1933
3365
|
}
|
|
3366
|
+
get messageAuthors() {
|
|
3367
|
+
return new SessionsSessionIdMessageAuthorsResource(this.transport, this.path + "/message-authors");
|
|
3368
|
+
}
|
|
3369
|
+
get stream() {
|
|
3370
|
+
return new SessionsSessionIdStreamResource(this.transport, this.path + "/stream");
|
|
3371
|
+
}
|
|
3372
|
+
get threads() {
|
|
3373
|
+
return new SessionsSessionIdThreadsResource(this.transport, this.path + "/threads");
|
|
3374
|
+
}
|
|
3375
|
+
}
|
|
3376
|
+
export class SessionsSessionIdMessageAuthorsResource {
|
|
3377
|
+
transport;
|
|
3378
|
+
path;
|
|
3379
|
+
constructor(transport, path) {
|
|
3380
|
+
this.transport = transport;
|
|
3381
|
+
this.path = path;
|
|
3382
|
+
}
|
|
3383
|
+
/** GET /api/v1/sessions/{session_id}/message-authors. Preserves response metadata; mutations are not replayed. */
|
|
3384
|
+
list(options) {
|
|
3385
|
+
return jsonRequest(this.transport, "GET", this.path, undefined, Object.fromEntries(Object.entries({ "X-Workspace-ID": options.xWorkspaceId })
|
|
3386
|
+
.filter(([, value]) => value !== undefined && value !== null)
|
|
3387
|
+
.map(([key, value]) => [key, String(value)])), { signal: options.signal, query: options.query });
|
|
3388
|
+
}
|
|
3389
|
+
}
|
|
3390
|
+
export class SessionsSessionIdStreamResource {
|
|
3391
|
+
transport;
|
|
3392
|
+
path;
|
|
3393
|
+
constructor(transport, path) {
|
|
3394
|
+
this.transport = transport;
|
|
3395
|
+
this.path = path;
|
|
3396
|
+
}
|
|
3397
|
+
/** GET /api/v1/sessions/{session_id}/stream. Caller owns and closes the unbuffered body. */
|
|
3398
|
+
get(options = {}) {
|
|
3399
|
+
return binaryRequest(this.transport, this.path, {
|
|
3400
|
+
...{ signal: options.signal },
|
|
3401
|
+
headers: Object.fromEntries(Object.entries({ "X-Workspace-ID": options.xWorkspaceId })
|
|
3402
|
+
.filter(([, value]) => value !== undefined && value !== null)
|
|
3403
|
+
.map(([key, value]) => [key, String(value)])),
|
|
3404
|
+
accept: "text/event-stream",
|
|
3405
|
+
});
|
|
3406
|
+
}
|
|
3407
|
+
}
|
|
3408
|
+
export class SessionsSessionIdThreadsResource {
|
|
3409
|
+
transport;
|
|
3410
|
+
path;
|
|
3411
|
+
constructor(transport, path) {
|
|
3412
|
+
this.transport = transport;
|
|
3413
|
+
this.path = path;
|
|
3414
|
+
}
|
|
3415
|
+
/** GET /api/v1/sessions/{session_id}/threads. Preserves response metadata; mutations are not replayed. */
|
|
3416
|
+
list(options = {}) {
|
|
3417
|
+
return jsonRequest(this.transport, "GET", this.path, undefined, Object.fromEntries(Object.entries({ "X-Workspace-ID": options.xWorkspaceId })
|
|
3418
|
+
.filter(([, value]) => value !== undefined && value !== null)
|
|
3419
|
+
.map(([key, value]) => [key, String(value)])), { signal: options.signal, query: options.query });
|
|
3420
|
+
}
|
|
3421
|
+
pages(options = {}) {
|
|
3422
|
+
const query = snapshot(options.query ?? {});
|
|
3423
|
+
return new PageIterator(query.cursor, (cursor) => this.list({ ...options, query: withCursor(query, cursor) }), (value) => value);
|
|
3424
|
+
}
|
|
3425
|
+
items(options = {}) {
|
|
3426
|
+
return flattenPages(this.pages(options), (value) => value);
|
|
3427
|
+
}
|
|
1934
3428
|
}
|
|
1935
3429
|
export class SkillsResource {
|
|
1936
3430
|
transport;
|
|
@@ -2288,6 +3782,9 @@ export class ThreadsThreadIdResource {
|
|
|
2288
3782
|
.filter(([, value]) => value !== undefined && value !== null)
|
|
2289
3783
|
.map(([key, value]) => [key, String(value)])), { signal: options.signal });
|
|
2290
3784
|
}
|
|
3785
|
+
get browser() {
|
|
3786
|
+
return new ThreadsThreadIdBrowserResource(this.transport, this.path + "/browser");
|
|
3787
|
+
}
|
|
2291
3788
|
get environments() {
|
|
2292
3789
|
return new ThreadsThreadIdEnvironmentsResource(this.transport, this.path + "/environments");
|
|
2293
3790
|
}
|
|
@@ -2303,6 +3800,32 @@ export class ThreadsThreadIdResource {
|
|
|
2303
3800
|
get stream() {
|
|
2304
3801
|
return new ThreadsThreadIdStreamResource(this.transport, this.path + "/stream");
|
|
2305
3802
|
}
|
|
3803
|
+
get toolExecutions() {
|
|
3804
|
+
return new ThreadsThreadIdToolExecutionsResource(this.transport, this.path + "/tool-executions");
|
|
3805
|
+
}
|
|
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
|
+
}
|
|
2306
3829
|
}
|
|
2307
3830
|
export class ThreadsThreadIdEnvironmentsResource {
|
|
2308
3831
|
transport;
|
|
@@ -2346,6 +3869,15 @@ export class ThreadsThreadIdEnvironmentsNameResource {
|
|
|
2346
3869
|
.filter(([, value]) => value !== undefined && value !== null)
|
|
2347
3870
|
.map(([key, value]) => [key, String(value)])), { signal: options.signal });
|
|
2348
3871
|
}
|
|
3872
|
+
/** PATCH /api/v1/threads/{thread_id}/environments/{name}. Preserves response metadata; mutations are not replayed. */
|
|
3873
|
+
update(body, options) {
|
|
3874
|
+
return jsonRequest(this.transport, "PATCH", this.path, body, Object.fromEntries(Object.entries({
|
|
3875
|
+
"If-Match": options.ifMatch,
|
|
3876
|
+
"X-Workspace-ID": options.xWorkspaceId,
|
|
3877
|
+
})
|
|
3878
|
+
.filter(([, value]) => value !== undefined && value !== null)
|
|
3879
|
+
.map(([key, value]) => [key, String(value)])), { signal: options.signal });
|
|
3880
|
+
}
|
|
2349
3881
|
}
|
|
2350
3882
|
export class ThreadsThreadIdInboxResource {
|
|
2351
3883
|
transport;
|
|
@@ -2354,7 +3886,6 @@ export class ThreadsThreadIdInboxResource {
|
|
|
2354
3886
|
this.transport = transport;
|
|
2355
3887
|
this.path = path;
|
|
2356
3888
|
}
|
|
2357
|
-
/** GET /api/v1/threads/{thread_id}/inbox. Preserves response metadata; mutations are not replayed. */
|
|
2358
3889
|
list(options = {}) {
|
|
2359
3890
|
return jsonRequest(this.transport, "GET", this.path, undefined, Object.fromEntries(Object.entries({ "X-Workspace-ID": options.xWorkspaceId })
|
|
2360
3891
|
.filter(([, value]) => value !== undefined && value !== null)
|
|
@@ -2416,11 +3947,10 @@ export class ThreadsThreadIdInboxEntryIdResource {
|
|
|
2416
3947
|
.filter(([, value]) => value !== undefined && value !== null)
|
|
2417
3948
|
.map(([key, value]) => [key, String(value)])), { signal: options.signal });
|
|
2418
3949
|
}
|
|
2419
|
-
/** GET /api/v1/threads/{thread_id}/inbox/{entry_id}. Preserves response metadata; mutations are not replayed. */
|
|
2420
3950
|
get(options = {}) {
|
|
2421
3951
|
return jsonRequest(this.transport, "GET", this.path, undefined, Object.fromEntries(Object.entries({ "X-Workspace-ID": options.xWorkspaceId })
|
|
2422
3952
|
.filter(([, value]) => value !== undefined && value !== null)
|
|
2423
|
-
.map(([key, value]) => [key, String(value)])), { signal: options.signal });
|
|
3953
|
+
.map(([key, value]) => [key, String(value)])), { signal: options.signal, query: options.query });
|
|
2424
3954
|
}
|
|
2425
3955
|
/** PATCH /api/v1/threads/{thread_id}/inbox/{entry_id}. Preserves response metadata; mutations are not replayed. */
|
|
2426
3956
|
update(body, options) {
|
|
@@ -2526,6 +4056,84 @@ export class ThreadsThreadIdStreamResource {
|
|
|
2526
4056
|
});
|
|
2527
4057
|
}
|
|
2528
4058
|
}
|
|
4059
|
+
export class ThreadsThreadIdToolExecutionsResource {
|
|
4060
|
+
transport;
|
|
4061
|
+
path;
|
|
4062
|
+
constructor(transport, path) {
|
|
4063
|
+
this.transport = transport;
|
|
4064
|
+
this.path = path;
|
|
4065
|
+
}
|
|
4066
|
+
/** GET /api/v1/threads/{thread_id}/tool-executions. Preserves response metadata; mutations are not replayed. */
|
|
4067
|
+
list(options = {}) {
|
|
4068
|
+
return jsonRequest(this.transport, "GET", this.path, undefined, Object.fromEntries(Object.entries({ "X-Workspace-ID": options.xWorkspaceId })
|
|
4069
|
+
.filter(([, value]) => value !== undefined && value !== null)
|
|
4070
|
+
.map(([key, value]) => [key, String(value)])), { signal: options.signal, query: options.query });
|
|
4071
|
+
}
|
|
4072
|
+
pages(options = {}) {
|
|
4073
|
+
const query = snapshot(options.query ?? {});
|
|
4074
|
+
return new PageIterator(query.cursor, (cursor) => this.list({ ...options, query: withCursor(query, cursor) }), (value) => value);
|
|
4075
|
+
}
|
|
4076
|
+
items(options = {}) {
|
|
4077
|
+
return flattenPages(this.pages(options), (value) => value);
|
|
4078
|
+
}
|
|
4079
|
+
ref(value) {
|
|
4080
|
+
return new ThreadsThreadIdToolExecutionsExecutionIdResource(this.transport, this.path + "/" + encodeURIComponent(selector(String(value))));
|
|
4081
|
+
}
|
|
4082
|
+
}
|
|
4083
|
+
export class ThreadsThreadIdToolExecutionsExecutionIdResource {
|
|
4084
|
+
transport;
|
|
4085
|
+
path;
|
|
4086
|
+
constructor(transport, path) {
|
|
4087
|
+
this.transport = transport;
|
|
4088
|
+
this.path = path;
|
|
4089
|
+
}
|
|
4090
|
+
/** GET /api/v1/threads/{thread_id}/tool-executions/{execution_id}. Preserves response metadata; mutations are not replayed. */
|
|
4091
|
+
get(options = {}) {
|
|
4092
|
+
return jsonRequest(this.transport, "GET", this.path, undefined, Object.fromEntries(Object.entries({ "X-Workspace-ID": options.xWorkspaceId })
|
|
4093
|
+
.filter(([, value]) => value !== undefined && value !== null)
|
|
4094
|
+
.map(([key, value]) => [key, String(value)])), { signal: options.signal });
|
|
4095
|
+
}
|
|
4096
|
+
/** POST /api/v1/threads/{thread_id}/tool-executions/{execution_id}/cancel. Preserves response metadata; mutations are not replayed. */
|
|
4097
|
+
cancel(options = {}) {
|
|
4098
|
+
return jsonRequest(this.transport, "POST", this.path + "/cancel", undefined, Object.fromEntries(Object.entries({ "X-Workspace-ID": options.xWorkspaceId })
|
|
4099
|
+
.filter(([, value]) => value !== undefined && value !== null)
|
|
4100
|
+
.map(([key, value]) => [key, String(value)])), { signal: options.signal });
|
|
4101
|
+
}
|
|
4102
|
+
get observation() {
|
|
4103
|
+
return new ThreadsThreadIdToolExecutionsExecutionIdObservationResource(this.transport, this.path + "/observation");
|
|
4104
|
+
}
|
|
4105
|
+
get result() {
|
|
4106
|
+
return new ThreadsThreadIdToolExecutionsExecutionIdResultResource(this.transport, this.path + "/result");
|
|
4107
|
+
}
|
|
4108
|
+
}
|
|
4109
|
+
export class ThreadsThreadIdToolExecutionsExecutionIdObservationResource {
|
|
4110
|
+
transport;
|
|
4111
|
+
path;
|
|
4112
|
+
constructor(transport, path) {
|
|
4113
|
+
this.transport = transport;
|
|
4114
|
+
this.path = path;
|
|
4115
|
+
}
|
|
4116
|
+
/** GET /api/v1/threads/{thread_id}/tool-executions/{execution_id}/observation. Preserves response metadata; mutations are not replayed. */
|
|
4117
|
+
get(options = {}) {
|
|
4118
|
+
return jsonRequest(this.transport, "GET", this.path, undefined, Object.fromEntries(Object.entries({ "X-Workspace-ID": options.xWorkspaceId })
|
|
4119
|
+
.filter(([, value]) => value !== undefined && value !== null)
|
|
4120
|
+
.map(([key, value]) => [key, String(value)])), { signal: options.signal });
|
|
4121
|
+
}
|
|
4122
|
+
}
|
|
4123
|
+
export class ThreadsThreadIdToolExecutionsExecutionIdResultResource {
|
|
4124
|
+
transport;
|
|
4125
|
+
path;
|
|
4126
|
+
constructor(transport, path) {
|
|
4127
|
+
this.transport = transport;
|
|
4128
|
+
this.path = path;
|
|
4129
|
+
}
|
|
4130
|
+
/** GET /api/v1/threads/{thread_id}/tool-executions/{execution_id}/result. Preserves response metadata; mutations are not replayed. */
|
|
4131
|
+
get(options = {}) {
|
|
4132
|
+
return jsonRequest(this.transport, "GET", this.path, undefined, Object.fromEntries(Object.entries({ "X-Workspace-ID": options.xWorkspaceId })
|
|
4133
|
+
.filter(([, value]) => value !== undefined && value !== null)
|
|
4134
|
+
.map(([key, value]) => [key, String(value)])), { signal: options.signal, query: options.query });
|
|
4135
|
+
}
|
|
4136
|
+
}
|
|
2529
4137
|
export class ToolsetsResource {
|
|
2530
4138
|
transport;
|
|
2531
4139
|
path;
|
|
@@ -2537,7 +4145,48 @@ export class ToolsetsResource {
|
|
|
2537
4145
|
list(options = {}) {
|
|
2538
4146
|
return jsonRequest(this.transport, "GET", this.path, undefined, Object.fromEntries(Object.entries({ "X-Workspace-ID": options.xWorkspaceId })
|
|
2539
4147
|
.filter(([, value]) => value !== undefined && value !== null)
|
|
2540
|
-
.map(([key, value]) => [key, String(value)])), { signal: options.signal });
|
|
4148
|
+
.map(([key, value]) => [key, String(value)])), { signal: options.signal, query: options.query });
|
|
4149
|
+
}
|
|
4150
|
+
get definitions() {
|
|
4151
|
+
return new ToolsetsDefinitionsResource(this.transport, this.path + "/definitions");
|
|
4152
|
+
}
|
|
4153
|
+
get index() {
|
|
4154
|
+
return new ToolsetsIndexResource(this.transport, this.path + "/index");
|
|
4155
|
+
}
|
|
4156
|
+
}
|
|
4157
|
+
export class ToolsetsDefinitionsResource {
|
|
4158
|
+
transport;
|
|
4159
|
+
path;
|
|
4160
|
+
constructor(transport, path) {
|
|
4161
|
+
this.transport = transport;
|
|
4162
|
+
this.path = path;
|
|
4163
|
+
}
|
|
4164
|
+
/** GET /api/v1/toolsets/definitions. Preserves response metadata; mutations are not replayed. */
|
|
4165
|
+
list(options) {
|
|
4166
|
+
return jsonRequest(this.transport, "GET", this.path, undefined, Object.fromEntries(Object.entries({ "X-Workspace-ID": options.xWorkspaceId })
|
|
4167
|
+
.filter(([, value]) => value !== undefined && value !== null)
|
|
4168
|
+
.map(([key, value]) => [key, String(value)])), { signal: options.signal, query: options.query });
|
|
4169
|
+
}
|
|
4170
|
+
}
|
|
4171
|
+
export class ToolsetsIndexResource {
|
|
4172
|
+
transport;
|
|
4173
|
+
path;
|
|
4174
|
+
constructor(transport, path) {
|
|
4175
|
+
this.transport = transport;
|
|
4176
|
+
this.path = path;
|
|
4177
|
+
}
|
|
4178
|
+
/** GET /api/v1/toolsets/index. Preserves response metadata; mutations are not replayed. */
|
|
4179
|
+
list(options = {}) {
|
|
4180
|
+
return jsonRequest(this.transport, "GET", this.path, undefined, Object.fromEntries(Object.entries({ "X-Workspace-ID": options.xWorkspaceId })
|
|
4181
|
+
.filter(([, value]) => value !== undefined && value !== null)
|
|
4182
|
+
.map(([key, value]) => [key, String(value)])), { signal: options.signal, query: options.query });
|
|
4183
|
+
}
|
|
4184
|
+
pages(options = {}) {
|
|
4185
|
+
const query = snapshot(options.query ?? {});
|
|
4186
|
+
return new PageIterator(query.cursor, (cursor) => this.list({ ...options, query: withCursor(query, cursor) }), (value) => value);
|
|
4187
|
+
}
|
|
4188
|
+
items(options = {}) {
|
|
4189
|
+
return flattenPages(this.pages(options), (value) => value);
|
|
2541
4190
|
}
|
|
2542
4191
|
}
|
|
2543
4192
|
export class TraceBackendResource {
|
|
@@ -2561,7 +4210,6 @@ export class TracesResource {
|
|
|
2561
4210
|
this.transport = transport;
|
|
2562
4211
|
this.path = path;
|
|
2563
4212
|
}
|
|
2564
|
-
/** GET /api/v1/traces. Preserves response metadata; mutations are not replayed. */
|
|
2565
4213
|
list(options = {}) {
|
|
2566
4214
|
return jsonRequest(this.transport, "GET", this.path, undefined, Object.fromEntries(Object.entries({ "X-Workspace-ID": options.xWorkspaceId })
|
|
2567
4215
|
.filter(([, value]) => value !== undefined && value !== null)
|
|
@@ -2574,10 +4222,34 @@ export class TracesResource {
|
|
|
2574
4222
|
items(options = {}) {
|
|
2575
4223
|
return flattenPages(this.pages(options), (value) => value);
|
|
2576
4224
|
}
|
|
4225
|
+
get search() {
|
|
4226
|
+
return new TracesSearchResource(this.transport, this.path + "/search");
|
|
4227
|
+
}
|
|
2577
4228
|
ref(value) {
|
|
2578
4229
|
return new TracesTraceIdResource(this.transport, this.path + "/" + encodeURIComponent(selector(String(value))));
|
|
2579
4230
|
}
|
|
2580
4231
|
}
|
|
4232
|
+
export class TracesSearchResource {
|
|
4233
|
+
transport;
|
|
4234
|
+
path;
|
|
4235
|
+
constructor(transport, path) {
|
|
4236
|
+
this.transport = transport;
|
|
4237
|
+
this.path = path;
|
|
4238
|
+
}
|
|
4239
|
+
/** GET /api/v1/traces/search. Preserves response metadata; mutations are not replayed. */
|
|
4240
|
+
list(options) {
|
|
4241
|
+
return jsonRequest(this.transport, "GET", this.path, undefined, Object.fromEntries(Object.entries({ "X-Workspace-ID": options.xWorkspaceId })
|
|
4242
|
+
.filter(([, value]) => value !== undefined && value !== null)
|
|
4243
|
+
.map(([key, value]) => [key, String(value)])), { signal: options.signal, query: options.query });
|
|
4244
|
+
}
|
|
4245
|
+
pages(options) {
|
|
4246
|
+
const query = snapshot(options.query ?? {});
|
|
4247
|
+
return new PageIterator(query.cursor, (cursor) => this.list({ ...options, query: withCursor(query, cursor) }), (value) => value);
|
|
4248
|
+
}
|
|
4249
|
+
items(options) {
|
|
4250
|
+
return flattenPages(this.pages(options), (value) => value);
|
|
4251
|
+
}
|
|
4252
|
+
}
|
|
2581
4253
|
export class TracesTraceIdResource {
|
|
2582
4254
|
transport;
|
|
2583
4255
|
path;
|
|
@@ -2585,11 +4257,10 @@ export class TracesTraceIdResource {
|
|
|
2585
4257
|
this.transport = transport;
|
|
2586
4258
|
this.path = path;
|
|
2587
4259
|
}
|
|
2588
|
-
/** GET /api/v1/traces/{trace_id}. Preserves response metadata; mutations are not replayed. */
|
|
2589
4260
|
get(options = {}) {
|
|
2590
4261
|
return jsonRequest(this.transport, "GET", this.path, undefined, Object.fromEntries(Object.entries({ "X-Workspace-ID": options.xWorkspaceId })
|
|
2591
4262
|
.filter(([, value]) => value !== undefined && value !== null)
|
|
2592
|
-
.map(([key, value]) => [key, String(value)])), { signal: options.signal });
|
|
4263
|
+
.map(([key, value]) => [key, String(value)])), { signal: options.signal, query: options.query });
|
|
2593
4264
|
}
|
|
2594
4265
|
get spans() {
|
|
2595
4266
|
return new TracesTraceIdSpansResource(this.transport, this.path + "/spans");
|
|
@@ -2602,7 +4273,6 @@ export class TracesTraceIdSpansResource {
|
|
|
2602
4273
|
this.transport = transport;
|
|
2603
4274
|
this.path = path;
|
|
2604
4275
|
}
|
|
2605
|
-
/** GET /api/v1/traces/{trace_id}/spans. Preserves response metadata; mutations are not replayed. */
|
|
2606
4276
|
list(options = {}) {
|
|
2607
4277
|
return jsonRequest(this.transport, "GET", this.path, undefined, Object.fromEntries(Object.entries({ "X-Workspace-ID": options.xWorkspaceId })
|
|
2608
4278
|
.filter(([, value]) => value !== undefined && value !== null)
|
|
@@ -2615,6 +4285,40 @@ export class TracesTraceIdSpansResource {
|
|
|
2615
4285
|
items(options = {}) {
|
|
2616
4286
|
return flattenPages(this.pages(options), (value) => value);
|
|
2617
4287
|
}
|
|
4288
|
+
ref(value) {
|
|
4289
|
+
return new TracesTraceIdSpansSpanIdResource(this.transport, this.path + "/" + encodeURIComponent(selector(String(value))));
|
|
4290
|
+
}
|
|
4291
|
+
}
|
|
4292
|
+
export class TracesTraceIdSpansSpanIdResource {
|
|
4293
|
+
transport;
|
|
4294
|
+
path;
|
|
4295
|
+
constructor(transport, path) {
|
|
4296
|
+
this.transport = transport;
|
|
4297
|
+
this.path = path;
|
|
4298
|
+
}
|
|
4299
|
+
/** GET /api/v1/traces/{trace_id}/spans/{span_id}. Preserves response metadata; mutations are not replayed. */
|
|
4300
|
+
get(options = {}) {
|
|
4301
|
+
return jsonRequest(this.transport, "GET", this.path, undefined, Object.fromEntries(Object.entries({ "X-Workspace-ID": options.xWorkspaceId })
|
|
4302
|
+
.filter(([, value]) => value !== undefined && value !== null)
|
|
4303
|
+
.map(([key, value]) => [key, String(value)])), { signal: options.signal });
|
|
4304
|
+
}
|
|
4305
|
+
get content() {
|
|
4306
|
+
return new TracesTraceIdSpansSpanIdContentResource(this.transport, this.path + "/content");
|
|
4307
|
+
}
|
|
4308
|
+
}
|
|
4309
|
+
export class TracesTraceIdSpansSpanIdContentResource {
|
|
4310
|
+
transport;
|
|
4311
|
+
path;
|
|
4312
|
+
constructor(transport, path) {
|
|
4313
|
+
this.transport = transport;
|
|
4314
|
+
this.path = path;
|
|
4315
|
+
}
|
|
4316
|
+
/** GET /api/v1/traces/{trace_id}/spans/{span_id}/content. Preserves response metadata; mutations are not replayed. */
|
|
4317
|
+
list(options = {}) {
|
|
4318
|
+
return jsonRequest(this.transport, "GET", this.path, undefined, Object.fromEntries(Object.entries({ "X-Workspace-ID": options.xWorkspaceId })
|
|
4319
|
+
.filter(([, value]) => value !== undefined && value !== null)
|
|
4320
|
+
.map(([key, value]) => [key, String(value)])), { signal: options.signal, query: options.query });
|
|
4321
|
+
}
|
|
2618
4322
|
}
|
|
2619
4323
|
export class UploadsResource {
|
|
2620
4324
|
transport;
|
|
@@ -2649,12 +4353,24 @@ export class UsageResource {
|
|
|
2649
4353
|
get agents() {
|
|
2650
4354
|
return new UsageAgentsResource(this.transport, this.path + "/agents");
|
|
2651
4355
|
}
|
|
4356
|
+
get context() {
|
|
4357
|
+
return new UsageContextResource(this.transport, this.path + "/context");
|
|
4358
|
+
}
|
|
4359
|
+
get members() {
|
|
4360
|
+
return new UsageMembersResource(this.transport, this.path + "/members");
|
|
4361
|
+
}
|
|
2652
4362
|
get models() {
|
|
2653
4363
|
return new UsageModelsResource(this.transport, this.path + "/models");
|
|
2654
4364
|
}
|
|
2655
4365
|
get overview() {
|
|
2656
4366
|
return new UsageOverviewResource(this.transport, this.path + "/overview");
|
|
2657
4367
|
}
|
|
4368
|
+
get records() {
|
|
4369
|
+
return new UsageRecordsResource(this.transport, this.path + "/records");
|
|
4370
|
+
}
|
|
4371
|
+
get runs() {
|
|
4372
|
+
return new UsageRunsResource(this.transport, this.path + "/runs");
|
|
4373
|
+
}
|
|
2658
4374
|
}
|
|
2659
4375
|
export class UsageAgentsResource {
|
|
2660
4376
|
transport;
|
|
@@ -2677,6 +4393,41 @@ export class UsageAgentsResource {
|
|
|
2677
4393
|
return flattenPages(this.pages(options), (value) => value);
|
|
2678
4394
|
}
|
|
2679
4395
|
}
|
|
4396
|
+
export class UsageContextResource {
|
|
4397
|
+
transport;
|
|
4398
|
+
path;
|
|
4399
|
+
constructor(transport, path) {
|
|
4400
|
+
this.transport = transport;
|
|
4401
|
+
this.path = path;
|
|
4402
|
+
}
|
|
4403
|
+
/** GET /api/v1/usage/context. Preserves response metadata; mutations are not replayed. */
|
|
4404
|
+
get(options = {}) {
|
|
4405
|
+
return jsonRequest(this.transport, "GET", this.path, undefined, Object.fromEntries(Object.entries({ "X-Workspace-ID": options.xWorkspaceId })
|
|
4406
|
+
.filter(([, value]) => value !== undefined && value !== null)
|
|
4407
|
+
.map(([key, value]) => [key, String(value)])), { signal: options.signal, query: options.query });
|
|
4408
|
+
}
|
|
4409
|
+
}
|
|
4410
|
+
export class UsageMembersResource {
|
|
4411
|
+
transport;
|
|
4412
|
+
path;
|
|
4413
|
+
constructor(transport, path) {
|
|
4414
|
+
this.transport = transport;
|
|
4415
|
+
this.path = path;
|
|
4416
|
+
}
|
|
4417
|
+
/** GET /api/v1/usage/members. Preserves response metadata; mutations are not replayed. */
|
|
4418
|
+
list(options) {
|
|
4419
|
+
return jsonRequest(this.transport, "GET", this.path, undefined, Object.fromEntries(Object.entries({ "X-Workspace-ID": options.xWorkspaceId })
|
|
4420
|
+
.filter(([, value]) => value !== undefined && value !== null)
|
|
4421
|
+
.map(([key, value]) => [key, String(value)])), { signal: options.signal, query: options.query });
|
|
4422
|
+
}
|
|
4423
|
+
pages(options) {
|
|
4424
|
+
const query = snapshot(options.query ?? {});
|
|
4425
|
+
return new PageIterator(query.cursor, (cursor) => this.list({ ...options, query: withCursor(query, cursor) }), (value) => value);
|
|
4426
|
+
}
|
|
4427
|
+
items(options) {
|
|
4428
|
+
return flattenPages(this.pages(options), (value) => value);
|
|
4429
|
+
}
|
|
4430
|
+
}
|
|
2680
4431
|
export class UsageModelsResource {
|
|
2681
4432
|
transport;
|
|
2682
4433
|
path;
|
|
@@ -2712,6 +4463,63 @@ export class UsageOverviewResource {
|
|
|
2712
4463
|
.map(([key, value]) => [key, String(value)])), { signal: options.signal, query: options.query });
|
|
2713
4464
|
}
|
|
2714
4465
|
}
|
|
4466
|
+
export class UsageRecordsResource {
|
|
4467
|
+
transport;
|
|
4468
|
+
path;
|
|
4469
|
+
constructor(transport, path) {
|
|
4470
|
+
this.transport = transport;
|
|
4471
|
+
this.path = path;
|
|
4472
|
+
}
|
|
4473
|
+
ref(value) {
|
|
4474
|
+
return new UsageRecordsRecordIdResource(this.transport, this.path + "/" + encodeURIComponent(selector(String(value))));
|
|
4475
|
+
}
|
|
4476
|
+
}
|
|
4477
|
+
export class UsageRecordsRecordIdResource {
|
|
4478
|
+
transport;
|
|
4479
|
+
path;
|
|
4480
|
+
constructor(transport, path) {
|
|
4481
|
+
this.transport = transport;
|
|
4482
|
+
this.path = path;
|
|
4483
|
+
}
|
|
4484
|
+
get metrics() {
|
|
4485
|
+
return new UsageRecordsRecordIdMetricsResource(this.transport, this.path + "/metrics");
|
|
4486
|
+
}
|
|
4487
|
+
}
|
|
4488
|
+
export class UsageRecordsRecordIdMetricsResource {
|
|
4489
|
+
transport;
|
|
4490
|
+
path;
|
|
4491
|
+
constructor(transport, path) {
|
|
4492
|
+
this.transport = transport;
|
|
4493
|
+
this.path = path;
|
|
4494
|
+
}
|
|
4495
|
+
/** GET /api/v1/usage/records/{record_id}/metrics. Preserves response metadata; mutations are not replayed. */
|
|
4496
|
+
get(options = {}) {
|
|
4497
|
+
return jsonRequest(this.transport, "GET", this.path, undefined, Object.fromEntries(Object.entries({ "X-Workspace-ID": options.xWorkspaceId })
|
|
4498
|
+
.filter(([, value]) => value !== undefined && value !== null)
|
|
4499
|
+
.map(([key, value]) => [key, String(value)])), { signal: options.signal });
|
|
4500
|
+
}
|
|
4501
|
+
}
|
|
4502
|
+
export class UsageRunsResource {
|
|
4503
|
+
transport;
|
|
4504
|
+
path;
|
|
4505
|
+
constructor(transport, path) {
|
|
4506
|
+
this.transport = transport;
|
|
4507
|
+
this.path = path;
|
|
4508
|
+
}
|
|
4509
|
+
/** GET /api/v1/usage/runs. Preserves response metadata; mutations are not replayed. */
|
|
4510
|
+
list(options = {}) {
|
|
4511
|
+
return jsonRequest(this.transport, "GET", this.path, undefined, Object.fromEntries(Object.entries({ "X-Workspace-ID": options.xWorkspaceId })
|
|
4512
|
+
.filter(([, value]) => value !== undefined && value !== null)
|
|
4513
|
+
.map(([key, value]) => [key, String(value)])), { signal: options.signal, query: options.query });
|
|
4514
|
+
}
|
|
4515
|
+
pages(options = {}) {
|
|
4516
|
+
const query = snapshot(options.query ?? {});
|
|
4517
|
+
return new PageIterator(query.cursor, (cursor) => this.list({ ...options, query: withCursor(query, cursor) }), (value) => value);
|
|
4518
|
+
}
|
|
4519
|
+
items(options = {}) {
|
|
4520
|
+
return flattenPages(this.pages(options), (value) => value);
|
|
4521
|
+
}
|
|
4522
|
+
}
|
|
2715
4523
|
export class UsersResource {
|
|
2716
4524
|
transport;
|
|
2717
4525
|
path;
|
|
@@ -2954,6 +4762,15 @@ export class WebProvidersProviderIdResource {
|
|
|
2954
4762
|
this.transport = transport;
|
|
2955
4763
|
this.path = path;
|
|
2956
4764
|
}
|
|
4765
|
+
/** DELETE /api/v1/web-providers/{provider_id}. Preserves response metadata; mutations are not replayed. */
|
|
4766
|
+
delete(options) {
|
|
4767
|
+
return jsonRequest(this.transport, "DELETE", this.path, undefined, Object.fromEntries(Object.entries({
|
|
4768
|
+
"If-Match": options.ifMatch,
|
|
4769
|
+
"X-Workspace-ID": options.xWorkspaceId,
|
|
4770
|
+
})
|
|
4771
|
+
.filter(([, value]) => value !== undefined && value !== null)
|
|
4772
|
+
.map(([key, value]) => [key, String(value)])), { signal: options.signal });
|
|
4773
|
+
}
|
|
2957
4774
|
/** GET /api/v1/web-providers/{provider_id}. Preserves response metadata; mutations are not replayed. */
|
|
2958
4775
|
get(options = {}) {
|
|
2959
4776
|
return jsonRequest(this.transport, "GET", this.path, undefined, Object.fromEntries(Object.entries({ "X-Workspace-ID": options.xWorkspaceId })
|