@converge.ai/a13n 0.4.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
  }
@@ -3352,6 +3390,35 @@ export class OrganizationsOrganizationIdMembersResource {
3352
3390
  items(options = {}) {
3353
3391
  return flattenPages(this.pages(options), (value) => value);
3354
3392
  }
3393
+ ref(value) {
3394
+ return new OrganizationsOrganizationIdMembersUserIdResource(this.transport, this.path + "/" + encodeURIComponent(selector(String(value))));
3395
+ }
3396
+ }
3397
+ export class OrganizationsOrganizationIdMembersUserIdResource {
3398
+ transport;
3399
+ path;
3400
+ constructor(transport, path) {
3401
+ this.transport = transport;
3402
+ this.path = path;
3403
+ }
3404
+ /** POST /api/v1/organizations/{organization_id}/members/{user_id}/password-reset. Preserves response metadata; mutations are not replayed. */
3405
+ passwordReset(options = {}) {
3406
+ return jsonRequest(this.transport, "POST", this.path + "/password-reset", undefined, undefined, { signal: options.signal });
3407
+ }
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
+ }
3355
3422
  }
3356
3423
  export class OrganizationsOrganizationIdWorkspacesResource {
3357
3424
  transport;
@@ -3501,6 +3568,9 @@ export class RunsRunIdResource {
3501
3568
  get lineage() {
3502
3569
  return new RunsRunIdLineageResource(this.transport, this.path + "/lineage");
3503
3570
  }
3571
+ get mcpInputs() {
3572
+ return new RunsRunIdMcpInputsResource(this.transport, this.path + "/mcp-inputs");
3573
+ }
3504
3574
  /** POST /api/v1/runs/{run_id}/resume. Preserves response metadata; mutations are not replayed. */
3505
3575
  resume(body, options) {
3506
3576
  return jsonRequest(this.transport, "POST", this.path + "/resume", body, Object.fromEntries(Object.entries({
@@ -3752,6 +3822,37 @@ export class RunsRunIdLineageResource {
3752
3822
  return flattenPages(this.pages(options), (value) => value);
3753
3823
  }
3754
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
+ }
3755
3856
  export class SchedulesResource {
3756
3857
  transport;
3757
3858
  path;
@@ -3763,7 +3864,12 @@ export class SchedulesResource {
3763
3864
  list(options = {}) {
3764
3865
  return jsonRequest(this.transport, "GET", this.path, undefined, Object.fromEntries(Object.entries({ "X-Workspace-ID": options.xWorkspaceId })
3765
3866
  .filter(([, value]) => value !== undefined && value !== null)
3766
- .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
+ });
3767
3873
  }
3768
3874
  pages(options = {}) {
3769
3875
  const query = snapshot(options.query ?? {});
@@ -3832,6 +3938,12 @@ export class SchedulesScheduleIdResource {
3832
3938
  .filter(([, value]) => value !== undefined && value !== null)
3833
3939
  .map(([key, value]) => [key, String(value)])), { signal: options.signal });
3834
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
+ }
3835
3947
  /** POST /api/v1/schedules/{schedule_id}/enable. Preserves response metadata; mutations are not replayed. */
3836
3948
  enable(body, options) {
3837
3949
  return jsonRequest(this.transport, "POST", this.path + "/enable", body, Object.fromEntries(Object.entries({
@@ -3920,7 +4032,12 @@ export class SessionsResource {
3920
4032
  list(options = {}) {
3921
4033
  return jsonRequest(this.transport, "GET", this.path, undefined, Object.fromEntries(Object.entries({ "X-Workspace-ID": options.xWorkspaceId })
3922
4034
  .filter(([, value]) => value !== undefined && value !== null)
3923
- .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
+ });
3924
4041
  }
3925
4042
  pages(options = {}) {
3926
4043
  const query = snapshot(options.query ?? {});
@@ -4091,6 +4208,12 @@ export class SkillsSkillIdResource {
4091
4208
  .filter(([, value]) => value !== undefined && value !== null)
4092
4209
  .map(([key, value]) => [key, String(value)])), { signal: options.signal });
4093
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
+ }
4094
4217
  get revisions() {
4095
4218
  return new SkillsSkillIdRevisionsResource(this.transport, this.path + "/revisions");
4096
4219
  }
@@ -4213,6 +4336,20 @@ export class SkillsSkillIdRevisionsRevisionIdFilesPathResource {
4213
4336
  });
4214
4337
  }
4215
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
+ }
4216
4353
  export class SubscriptionsResource {
4217
4354
  transport;
4218
4355
  path;