@converge.ai/a13n 0.5.0 → 0.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -127,6 +127,9 @@ export class ServiceResources {
127
127
  get skills() {
128
128
  return new SkillsResource(this.transport, "/api/v1/skills");
129
129
  }
130
+ get storage() {
131
+ return new StorageResource(this.transport, "/api/v1/storage");
132
+ }
130
133
  get subscriptions() {
131
134
  return new SubscriptionsResource(this.transport, "/api/v1/subscriptions");
132
135
  }
@@ -603,7 +606,12 @@ export class BrowsersResource {
603
606
  list(options = {}) {
604
607
  return jsonRequest(this.transport, "GET", this.path, undefined, Object.fromEntries(Object.entries({ "X-Workspace-ID": options.xWorkspaceId })
605
608
  .filter(([, value]) => value !== undefined && value !== null)
606
- .map(([key, value]) => [key, String(value)])), { signal: options.signal, query: options.query });
609
+ .map(([key, value]) => [key, String(value)])), {
610
+ signal: options.signal,
611
+ query: options.query?.app_id === null
612
+ ? { ...options.query, app_id: undefined }
613
+ : options.query,
614
+ });
607
615
  }
608
616
  pages(options = {}) {
609
617
  const query = snapshot(options.query ?? {});
@@ -1368,7 +1376,12 @@ export class EgressCredentialsResource {
1368
1376
  list(options = {}) {
1369
1377
  return jsonRequest(this.transport, "GET", this.path, undefined, Object.fromEntries(Object.entries({ "X-Workspace-ID": options.xWorkspaceId })
1370
1378
  .filter(([, value]) => value !== undefined && value !== null)
1371
- .map(([key, value]) => [key, String(value)])), { signal: options.signal, query: options.query });
1379
+ .map(([key, value]) => [key, String(value)])), {
1380
+ signal: options.signal,
1381
+ query: options.query?.app_id === null
1382
+ ? { ...options.query, app_id: undefined }
1383
+ : options.query,
1384
+ });
1372
1385
  }
1373
1386
  pages(options = {}) {
1374
1387
  const query = snapshot(options.query ?? {});
@@ -1620,6 +1633,12 @@ export class EnvironmentTemplatesTemplateIdResource {
1620
1633
  .filter(([, value]) => value !== undefined && value !== null)
1621
1634
  .map(([key, value]) => [key, String(value)])), { signal: options.signal });
1622
1635
  }
1636
+ /** POST /api/v1/environment-templates/{template_id}/duplicate. Preserves response metadata; mutations are not replayed. */
1637
+ duplicate(body, options = {}) {
1638
+ return jsonRequest(this.transport, "POST", this.path + "/duplicate", body, Object.fromEntries(Object.entries({ "X-Workspace-ID": options.xWorkspaceId })
1639
+ .filter(([, value]) => value !== undefined && value !== null)
1640
+ .map(([key, value]) => [key, String(value)])), { signal: options.signal });
1641
+ }
1623
1642
  }
1624
1643
  export class EnvironmentsResource {
1625
1644
  transport;
@@ -1632,7 +1651,12 @@ export class EnvironmentsResource {
1632
1651
  list(options = {}) {
1633
1652
  return jsonRequest(this.transport, "GET", this.path, undefined, Object.fromEntries(Object.entries({ "X-Workspace-ID": options.xWorkspaceId })
1634
1653
  .filter(([, value]) => value !== undefined && value !== null)
1635
- .map(([key, value]) => [key, String(value)])), { signal: options.signal, query: options.query });
1654
+ .map(([key, value]) => [key, String(value)])), {
1655
+ signal: options.signal,
1656
+ query: options.query?.app_id === null
1657
+ ? { ...options.query, app_id: undefined }
1658
+ : options.query,
1659
+ });
1636
1660
  }
1637
1661
  pages(options = {}) {
1638
1662
  const query = snapshot(options.query ?? {});
@@ -2594,7 +2618,12 @@ export class MemorySpacesResource {
2594
2618
  list(options = {}) {
2595
2619
  return jsonRequest(this.transport, "GET", this.path, undefined, Object.fromEntries(Object.entries({ "X-Workspace-ID": options.xWorkspaceId })
2596
2620
  .filter(([, value]) => value !== undefined && value !== null)
2597
- .map(([key, value]) => [key, String(value)])), { signal: options.signal, query: options.query });
2621
+ .map(([key, value]) => [key, String(value)])), {
2622
+ signal: options.signal,
2623
+ query: options.query?.app_id === null
2624
+ ? { ...options.query, app_id: undefined }
2625
+ : options.query,
2626
+ });
2598
2627
  }
2599
2628
  pages(options = {}) {
2600
2629
  const query = snapshot(options.query ?? {});
@@ -3083,6 +3112,12 @@ export class ModelsKeyResource {
3083
3112
  .filter(([, value]) => value !== undefined && value !== null)
3084
3113
  .map(([key, value]) => [key, String(value)])), { signal: options.signal });
3085
3114
  }
3115
+ /** POST /api/v1/models/{key}/duplicate. Preserves response metadata; mutations are not replayed. */
3116
+ duplicate(body, options = {}) {
3117
+ return jsonRequest(this.transport, "POST", this.path + "/duplicate", body, Object.fromEntries(Object.entries({ "X-Workspace-ID": options.xWorkspaceId })
3118
+ .filter(([, value]) => value !== undefined && value !== null)
3119
+ .map(([key, value]) => [key, String(value)])), { signal: options.signal });
3120
+ }
3086
3121
  }
3087
3122
  export class OrganizationsResource {
3088
3123
  transport;
@@ -3146,6 +3181,9 @@ export class OrganizationsOrganizationIdResource {
3146
3181
  get members() {
3147
3182
  return new OrganizationsOrganizationIdMembersResource(this.transport, this.path + "/members");
3148
3183
  }
3184
+ get updateNotices() {
3185
+ return new OrganizationsOrganizationIdUpdateNoticesResource(this.transport, this.path + "/update-notices");
3186
+ }
3149
3187
  get workspaces() {
3150
3188
  return new OrganizationsOrganizationIdWorkspacesResource(this.transport, this.path + "/workspaces");
3151
3189
  }
@@ -3368,6 +3406,20 @@ export class OrganizationsOrganizationIdMembersUserIdResource {
3368
3406
  return jsonRequest(this.transport, "POST", this.path + "/password-reset", undefined, undefined, { signal: options.signal });
3369
3407
  }
3370
3408
  }
3409
+ export class OrganizationsOrganizationIdUpdateNoticesResource {
3410
+ transport;
3411
+ path;
3412
+ constructor(transport, path) {
3413
+ this.transport = transport;
3414
+ this.path = path;
3415
+ }
3416
+ /** GET /api/v1/organizations/{organization_id}/update-notices. Preserves response metadata; mutations are not replayed. */
3417
+ get(options = {}) {
3418
+ return jsonRequest(this.transport, "GET", this.path, undefined, undefined, {
3419
+ signal: options.signal,
3420
+ });
3421
+ }
3422
+ }
3371
3423
  export class OrganizationsOrganizationIdWorkspacesResource {
3372
3424
  transport;
3373
3425
  path;
@@ -3516,6 +3568,9 @@ export class RunsRunIdResource {
3516
3568
  get lineage() {
3517
3569
  return new RunsRunIdLineageResource(this.transport, this.path + "/lineage");
3518
3570
  }
3571
+ get mcpInputs() {
3572
+ return new RunsRunIdMcpInputsResource(this.transport, this.path + "/mcp-inputs");
3573
+ }
3519
3574
  /** POST /api/v1/runs/{run_id}/resume. Preserves response metadata; mutations are not replayed. */
3520
3575
  resume(body, options) {
3521
3576
  return jsonRequest(this.transport, "POST", this.path + "/resume", body, Object.fromEntries(Object.entries({
@@ -3767,6 +3822,37 @@ export class RunsRunIdLineageResource {
3767
3822
  return flattenPages(this.pages(options), (value) => value);
3768
3823
  }
3769
3824
  }
3825
+ export class RunsRunIdMcpInputsResource {
3826
+ transport;
3827
+ path;
3828
+ constructor(transport, path) {
3829
+ this.transport = transport;
3830
+ this.path = path;
3831
+ }
3832
+ /** GET /api/v1/runs/{run_id}/mcp-inputs. Preserves response metadata; mutations are not replayed. */
3833
+ get(options = {}) {
3834
+ return jsonRequest(this.transport, "GET", this.path, undefined, Object.fromEntries(Object.entries({ "X-Workspace-ID": options.xWorkspaceId })
3835
+ .filter(([, value]) => value !== undefined && value !== null)
3836
+ .map(([key, value]) => [key, String(value)])), { signal: options.signal });
3837
+ }
3838
+ ref(value) {
3839
+ return new RunsRunIdMcpInputsRequestIdResource(this.transport, this.path + "/" + encodeURIComponent(selector(String(value))));
3840
+ }
3841
+ }
3842
+ export class RunsRunIdMcpInputsRequestIdResource {
3843
+ transport;
3844
+ path;
3845
+ constructor(transport, path) {
3846
+ this.transport = transport;
3847
+ this.path = path;
3848
+ }
3849
+ /** POST /api/v1/runs/{run_id}/mcp-inputs/{request_id}/response. Preserves response metadata; mutations are not replayed. */
3850
+ response(body, options = {}) {
3851
+ return jsonRequest(this.transport, "POST", this.path + "/response", body, Object.fromEntries(Object.entries({ "X-Workspace-ID": options.xWorkspaceId })
3852
+ .filter(([, value]) => value !== undefined && value !== null)
3853
+ .map(([key, value]) => [key, String(value)])), { signal: options.signal });
3854
+ }
3855
+ }
3770
3856
  export class SchedulesResource {
3771
3857
  transport;
3772
3858
  path;
@@ -3778,7 +3864,12 @@ export class SchedulesResource {
3778
3864
  list(options = {}) {
3779
3865
  return jsonRequest(this.transport, "GET", this.path, undefined, Object.fromEntries(Object.entries({ "X-Workspace-ID": options.xWorkspaceId })
3780
3866
  .filter(([, value]) => value !== undefined && value !== null)
3781
- .map(([key, value]) => [key, String(value)])), { signal: options.signal, query: options.query });
3867
+ .map(([key, value]) => [key, String(value)])), {
3868
+ signal: options.signal,
3869
+ query: options.query?.app_id === null
3870
+ ? { ...options.query, app_id: undefined }
3871
+ : options.query,
3872
+ });
3782
3873
  }
3783
3874
  pages(options = {}) {
3784
3875
  const query = snapshot(options.query ?? {});
@@ -3847,6 +3938,12 @@ export class SchedulesScheduleIdResource {
3847
3938
  .filter(([, value]) => value !== undefined && value !== null)
3848
3939
  .map(([key, value]) => [key, String(value)])), { signal: options.signal });
3849
3940
  }
3941
+ /** POST /api/v1/schedules/{schedule_id}/duplicate. Preserves response metadata; mutations are not replayed. */
3942
+ duplicate(body, options = {}) {
3943
+ return jsonRequest(this.transport, "POST", this.path + "/duplicate", body, Object.fromEntries(Object.entries({ "X-Workspace-ID": options.xWorkspaceId })
3944
+ .filter(([, value]) => value !== undefined && value !== null)
3945
+ .map(([key, value]) => [key, String(value)])), { signal: options.signal });
3946
+ }
3850
3947
  /** POST /api/v1/schedules/{schedule_id}/enable. Preserves response metadata; mutations are not replayed. */
3851
3948
  enable(body, options) {
3852
3949
  return jsonRequest(this.transport, "POST", this.path + "/enable", body, Object.fromEntries(Object.entries({
@@ -3935,7 +4032,12 @@ export class SessionsResource {
3935
4032
  list(options = {}) {
3936
4033
  return jsonRequest(this.transport, "GET", this.path, undefined, Object.fromEntries(Object.entries({ "X-Workspace-ID": options.xWorkspaceId })
3937
4034
  .filter(([, value]) => value !== undefined && value !== null)
3938
- .map(([key, value]) => [key, String(value)])), { signal: options.signal, query: options.query });
4035
+ .map(([key, value]) => [key, String(value)])), {
4036
+ signal: options.signal,
4037
+ query: options.query?.app_id === null
4038
+ ? { ...options.query, app_id: undefined }
4039
+ : options.query,
4040
+ });
3939
4041
  }
3940
4042
  pages(options = {}) {
3941
4043
  const query = snapshot(options.query ?? {});
@@ -4106,6 +4208,12 @@ export class SkillsSkillIdResource {
4106
4208
  .filter(([, value]) => value !== undefined && value !== null)
4107
4209
  .map(([key, value]) => [key, String(value)])), { signal: options.signal });
4108
4210
  }
4211
+ /** POST /api/v1/skills/{skill_id}/duplicate. Preserves response metadata; mutations are not replayed. */
4212
+ duplicate(body, options = {}) {
4213
+ return jsonRequest(this.transport, "POST", this.path + "/duplicate", body, Object.fromEntries(Object.entries({ "X-Workspace-ID": options.xWorkspaceId })
4214
+ .filter(([, value]) => value !== undefined && value !== null)
4215
+ .map(([key, value]) => [key, String(value)])), { signal: options.signal });
4216
+ }
4109
4217
  get revisions() {
4110
4218
  return new SkillsSkillIdRevisionsResource(this.transport, this.path + "/revisions");
4111
4219
  }
@@ -4228,6 +4336,20 @@ export class SkillsSkillIdRevisionsRevisionIdFilesPathResource {
4228
4336
  });
4229
4337
  }
4230
4338
  }
4339
+ export class StorageResource {
4340
+ transport;
4341
+ path;
4342
+ constructor(transport, path) {
4343
+ this.transport = transport;
4344
+ this.path = path;
4345
+ }
4346
+ /** GET /api/v1/storage. Preserves response metadata; mutations are not replayed. */
4347
+ get(options = {}) {
4348
+ return jsonRequest(this.transport, "GET", this.path, undefined, Object.fromEntries(Object.entries({ "X-Workspace-ID": options.xWorkspaceId })
4349
+ .filter(([, value]) => value !== undefined && value !== null)
4350
+ .map(([key, value]) => [key, String(value)])), { signal: options.signal });
4351
+ }
4352
+ }
4231
4353
  export class SubscriptionsResource {
4232
4354
  transport;
4233
4355
  path;