@parcha/agentrun-client 0.1.0-beta.40 → 0.1.0-beta.41

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.
@@ -360,6 +360,7 @@ export type RunSummary = {
360
360
  revision: string;
361
361
  kind: "agentic" | "workflow";
362
362
  archived_at: string | null;
363
+ labels?: Record<string, string>;
363
364
  effort?: Effort;
364
365
  error?: RunError | null;
365
366
  learning?: {
@@ -535,6 +536,7 @@ export type RunCreateInline = {
535
536
  mcp_auth?: Record<string, {
536
537
  headers: Record<string, string>;
537
538
  }>;
539
+ labels?: Record<string, string>;
538
540
  workflow_first?: boolean;
539
541
  learning?: "use";
540
542
  repo?: string;
@@ -613,6 +615,7 @@ export type Run = {
613
615
  revision: string;
614
616
  kind: "agentic" | "workflow";
615
617
  archived_at: string | null;
618
+ labels?: Record<string, string>;
616
619
  approvals?: "ask" | "never";
617
620
  last_progress_at?: string | null;
618
621
  input?: Record<string, unknown> | null;
@@ -770,6 +773,7 @@ export type RunCreate = {
770
773
  mcp_auth?: Record<string, {
771
774
  headers: Record<string, string>;
772
775
  }>;
776
+ labels?: Record<string, string>;
773
777
  workflow_first?: boolean;
774
778
  learning?: "use";
775
779
  repo?: string;
@@ -825,7 +829,7 @@ export type TimelineRow = {
825
829
  origin?: "server" | "trigger";
826
830
  trigger?: {
827
831
  id: string;
828
- source: "schedule" | "webhook" | "slack" | "github" | "composio" | "email";
832
+ source: "schedule" | "webhook" | "slack" | "github" | "composio" | "email" | "feed";
829
833
  owner: boolean;
830
834
  name?: string;
831
835
  };
@@ -1089,7 +1093,7 @@ export type Features = {
1089
1093
  };
1090
1094
  triggers?: {
1091
1095
  routes: boolean;
1092
- sources: Array<"schedule" | "webhook" | "github" | "composio" | "email">;
1096
+ sources: Array<"schedule" | "webhook" | "github" | "composio" | "email" | "feed">;
1093
1097
  targets: Array<"start_run" | "message_run">;
1094
1098
  min_every_s: number;
1095
1099
  history_kept: number;
@@ -1465,6 +1469,7 @@ export interface ListRunsParams {
1465
1469
  limit?: number;
1466
1470
  cursor?: string;
1467
1471
  status?: "queued" | "working" | "paused" | "input_required" | "completed" | "failed" | "cancelled";
1472
+ label?: string;
1468
1473
  }
1469
1474
  export type ListRunsResponse = RunList;
1470
1475
  /** Show the archived agent in the lists again (POST /agents/{agent_id}/unarchive). */
@@ -2626,7 +2631,7 @@ export type PutWorkspaceArchilResponse = {
2626
2631
  export type ReceiveHookComposioResponse = {
2627
2632
  firings: Array<{
2628
2633
  key: string;
2629
- by: "schedule" | "email" | "manual" | "webhook" | "github" | "composio";
2634
+ by: "schedule" | "email" | "feed" | "manual" | "webhook" | "github" | "composio";
2630
2635
  nominal_at: string;
2631
2636
  status: "due" | "started" | "sent" | "skipped" | "failed" | "missed";
2632
2637
  at: string;
@@ -2648,7 +2653,7 @@ export type ReceiveHookComposioResponse = {
2648
2653
  } | {
2649
2654
  firings: Array<{
2650
2655
  key: string;
2651
- by: "schedule" | "email" | "manual" | "webhook" | "github" | "composio";
2656
+ by: "schedule" | "email" | "feed" | "manual" | "webhook" | "github" | "composio";
2652
2657
  nominal_at: string;
2653
2658
  status: "due" | "started" | "sent" | "skipped" | "failed" | "missed";
2654
2659
  at: string;
@@ -2722,6 +2727,10 @@ export type SaveComposioServerResponse = {
2722
2727
  };
2723
2728
  connect_url?: string;
2724
2729
  not_served?: Array<string>;
2730
+ composio?: {
2731
+ removed: boolean;
2732
+ note: string;
2733
+ };
2725
2734
  };
2726
2735
  /** Save a computer provider's keys, sealed (PUT /computers/{provider}/keys). */
2727
2736
  export type SaveComputerKeysBody = Record<string, string | null>;
@@ -2861,7 +2870,7 @@ export type TestWorkspaceArchilResponse = {
2861
2870
  export type DeleteMcpServerResponse = {
2862
2871
  deleted: true;
2863
2872
  composio: {
2864
- removed: false;
2873
+ removed: boolean;
2865
2874
  note: string;
2866
2875
  };
2867
2876
  };
@@ -3093,6 +3102,10 @@ export type SaveMcpServerResponse = {
3093
3102
  listed_at: string;
3094
3103
  updated_at: string;
3095
3104
  secret?: SecretMeta;
3105
+ composio?: {
3106
+ removed: boolean;
3107
+ note: string;
3108
+ };
3096
3109
  };
3097
3110
  /** Read activity and token usage reported by externally running agents (GET /observations). */
3098
3111
  export interface GetObservationsParams {
@@ -3459,6 +3472,7 @@ export interface ListAllRunsParams {
3459
3472
  revision?: string;
3460
3473
  status?: "queued" | "working" | "paused" | "input_required" | "completed" | "failed" | "cancelled";
3461
3474
  archived?: boolean;
3475
+ label?: string;
3462
3476
  }
3463
3477
  export type ListAllRunsResponse = RunList;
3464
3478
  /** Send the run a message (POST /runs/{run_id}/messages). */
@@ -4195,6 +4209,26 @@ export type CreateTriggerBody = {
4195
4209
  prefix: string;
4196
4210
  }>;
4197
4211
  }>;
4212
+ } | {
4213
+ kind: "feed";
4214
+ urls: Array<string>;
4215
+ every_s?: number;
4216
+ items?: string;
4217
+ id?: string;
4218
+ accept?: Array<{
4219
+ event: string;
4220
+ actions?: Array<string>;
4221
+ where?: Array<{
4222
+ pointer: string;
4223
+ in: Array<unknown>;
4224
+ } | {
4225
+ pointer: string;
4226
+ exists: boolean;
4227
+ } | {
4228
+ pointer: string;
4229
+ prefix: string;
4230
+ }>;
4231
+ }>;
4198
4232
  };
4199
4233
  target: {
4200
4234
  kind: "start_run";
@@ -4304,6 +4338,26 @@ export type CreateTriggerResponse = {
4304
4338
  prefix: string;
4305
4339
  }>;
4306
4340
  }>;
4341
+ } | {
4342
+ kind: "feed";
4343
+ urls: Array<string>;
4344
+ every_s: number;
4345
+ items?: string;
4346
+ id?: string;
4347
+ accept?: Array<{
4348
+ event: string;
4349
+ actions?: Array<string>;
4350
+ where?: Array<{
4351
+ pointer: string;
4352
+ in: Array<unknown>;
4353
+ } | {
4354
+ pointer: string;
4355
+ exists: boolean;
4356
+ } | {
4357
+ pointer: string;
4358
+ prefix: string;
4359
+ }>;
4360
+ }>;
4307
4361
  };
4308
4362
  target: {
4309
4363
  kind: "start_run";
@@ -4347,7 +4401,7 @@ export type CreateTriggerResponse = {
4347
4401
  updated_at: string;
4348
4402
  last_firing: {
4349
4403
  key: string;
4350
- by: "schedule" | "email" | "manual" | "webhook" | "github" | "composio";
4404
+ by: "schedule" | "email" | "feed" | "manual" | "webhook" | "github" | "composio";
4351
4405
  nominal_at: string;
4352
4406
  status: "due" | "started" | "sent" | "skipped" | "failed" | "missed";
4353
4407
  at: string;
@@ -4387,7 +4441,7 @@ export interface FireTriggerParams {
4387
4441
  }
4388
4442
  export type FireTriggerResponse = {
4389
4443
  key: string;
4390
- by: "schedule" | "email" | "manual" | "webhook" | "github" | "composio";
4444
+ by: "schedule" | "email" | "feed" | "manual" | "webhook" | "github" | "composio";
4391
4445
  nominal_at: string;
4392
4446
  status: "due" | "started" | "sent" | "skipped" | "failed" | "missed";
4393
4447
  at: string;
@@ -4406,7 +4460,7 @@ export type FireTriggerResponse = {
4406
4460
  export type ListTriggerFiringsResponse = {
4407
4461
  firings: Array<{
4408
4462
  key: string;
4409
- by: "schedule" | "email" | "manual" | "webhook" | "github" | "composio";
4463
+ by: "schedule" | "email" | "feed" | "manual" | "webhook" | "github" | "composio";
4410
4464
  nominal_at: string;
4411
4465
  status: "due" | "started" | "sent" | "skipped" | "failed" | "missed";
4412
4466
  at: string;
@@ -4512,6 +4566,26 @@ export type GetTriggerResponse = {
4512
4566
  prefix: string;
4513
4567
  }>;
4514
4568
  }>;
4569
+ } | {
4570
+ kind: "feed";
4571
+ urls: Array<string>;
4572
+ every_s: number;
4573
+ items?: string;
4574
+ id?: string;
4575
+ accept?: Array<{
4576
+ event: string;
4577
+ actions?: Array<string>;
4578
+ where?: Array<{
4579
+ pointer: string;
4580
+ in: Array<unknown>;
4581
+ } | {
4582
+ pointer: string;
4583
+ exists: boolean;
4584
+ } | {
4585
+ pointer: string;
4586
+ prefix: string;
4587
+ }>;
4588
+ }>;
4515
4589
  };
4516
4590
  target: {
4517
4591
  kind: "start_run";
@@ -4555,7 +4629,7 @@ export type GetTriggerResponse = {
4555
4629
  updated_at: string;
4556
4630
  last_firing: {
4557
4631
  key: string;
4558
- by: "schedule" | "email" | "manual" | "webhook" | "github" | "composio";
4632
+ by: "schedule" | "email" | "feed" | "manual" | "webhook" | "github" | "composio";
4559
4633
  nominal_at: string;
4560
4634
  status: "due" | "started" | "sent" | "skipped" | "failed" | "missed";
4561
4635
  at: string;
@@ -4670,6 +4744,26 @@ export type ListTriggersResponse = {
4670
4744
  prefix: string;
4671
4745
  }>;
4672
4746
  }>;
4747
+ } | {
4748
+ kind: "feed";
4749
+ urls: Array<string>;
4750
+ every_s: number;
4751
+ items?: string;
4752
+ id?: string;
4753
+ accept?: Array<{
4754
+ event: string;
4755
+ actions?: Array<string>;
4756
+ where?: Array<{
4757
+ pointer: string;
4758
+ in: Array<unknown>;
4759
+ } | {
4760
+ pointer: string;
4761
+ exists: boolean;
4762
+ } | {
4763
+ pointer: string;
4764
+ prefix: string;
4765
+ }>;
4766
+ }>;
4673
4767
  };
4674
4768
  target: {
4675
4769
  kind: "start_run";
@@ -4713,7 +4807,7 @@ export type ListTriggersResponse = {
4713
4807
  updated_at: string;
4714
4808
  last_firing: {
4715
4809
  key: string;
4716
- by: "schedule" | "email" | "manual" | "webhook" | "github" | "composio";
4810
+ by: "schedule" | "email" | "feed" | "manual" | "webhook" | "github" | "composio";
4717
4811
  nominal_at: string;
4718
4812
  status: "due" | "started" | "sent" | "skipped" | "failed" | "missed";
4719
4813
  at: string;
@@ -4832,6 +4926,26 @@ export type UpdateTriggerBody = {
4832
4926
  prefix: string;
4833
4927
  }>;
4834
4928
  }>;
4929
+ } | {
4930
+ kind: "feed";
4931
+ urls: Array<string>;
4932
+ every_s?: number;
4933
+ items?: string;
4934
+ id?: string;
4935
+ accept?: Array<{
4936
+ event: string;
4937
+ actions?: Array<string>;
4938
+ where?: Array<{
4939
+ pointer: string;
4940
+ in: Array<unknown>;
4941
+ } | {
4942
+ pointer: string;
4943
+ exists: boolean;
4944
+ } | {
4945
+ pointer: string;
4946
+ prefix: string;
4947
+ }>;
4948
+ }>;
4835
4949
  };
4836
4950
  target?: {
4837
4951
  kind: "start_run";
@@ -4938,6 +5052,26 @@ export type UpdateTriggerResponse = {
4938
5052
  prefix: string;
4939
5053
  }>;
4940
5054
  }>;
5055
+ } | {
5056
+ kind: "feed";
5057
+ urls: Array<string>;
5058
+ every_s: number;
5059
+ items?: string;
5060
+ id?: string;
5061
+ accept?: Array<{
5062
+ event: string;
5063
+ actions?: Array<string>;
5064
+ where?: Array<{
5065
+ pointer: string;
5066
+ in: Array<unknown>;
5067
+ } | {
5068
+ pointer: string;
5069
+ exists: boolean;
5070
+ } | {
5071
+ pointer: string;
5072
+ prefix: string;
5073
+ }>;
5074
+ }>;
4941
5075
  };
4942
5076
  target: {
4943
5077
  kind: "start_run";
@@ -4981,7 +5115,7 @@ export type UpdateTriggerResponse = {
4981
5115
  updated_at: string;
4982
5116
  last_firing: {
4983
5117
  key: string;
4984
- by: "schedule" | "email" | "manual" | "webhook" | "github" | "composio";
5118
+ by: "schedule" | "email" | "feed" | "manual" | "webhook" | "github" | "composio";
4985
5119
  nominal_at: string;
4986
5120
  status: "due" | "started" | "sent" | "skipped" | "failed" | "missed";
4987
5121
  at: string;
@@ -13,7 +13,7 @@ export const OPERATIONS = {
13
13
  getNative: { "method": "GET", "path": "/agents/{agent_id}/native", "pathParams": ["agent_id"], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
14
14
  listAgents: { "method": "GET", "path": "/agents", "pathParams": [], "multiSegment": [], "query": ["limit", "cursor", "archived"], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
15
15
  listLearningPromotions: { "method": "GET", "path": "/agents/{agent_id}/learning/promotions", "pathParams": ["agent_id"], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
16
- listRuns: { "method": "GET", "path": "/agents/{agent_id}/runs", "pathParams": ["agent_id"], "multiSegment": [], "query": ["limit", "cursor", "status"], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
16
+ listRuns: { "method": "GET", "path": "/agents/{agent_id}/runs", "pathParams": ["agent_id"], "multiSegment": [], "query": ["limit", "cursor", "status", "label"], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
17
17
  unarchiveAgent: { "method": "POST", "path": "/agents/{agent_id}/unarchive", "pathParams": ["agent_id"], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
18
18
  updateDefinition: { "method": "PUT", "path": "/agents/{agent_id}/definition", "pathParams": ["agent_id"], "multiSegment": [], "query": [], "headers": ["If-Match"], "body": { "required": true, "types": ["application/json"] }, "answer": "json", "secret": false, "publicFields": [], "tagged": true },
19
19
  verifyNative: { "method": "POST", "path": "/agents/{agent_id}/native/verify", "pathParams": ["agent_id"], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
@@ -104,7 +104,7 @@ export const OPERATIONS = {
104
104
  handBackRunComputer: { "method": "POST", "path": "/runs/{run_id}/computer/hand-back", "pathParams": ["run_id"], "multiSegment": [], "query": [], "headers": [], "body": { "required": false, "types": ["application/json"] }, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
105
105
  getRunLearning: { "method": "GET", "path": "/runs/{run_id}/learning", "pathParams": ["run_id"], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
106
106
  getRunLearningDiff: { "method": "GET", "path": "/runs/{run_id}/learning/diff", "pathParams": ["run_id"], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
107
- listAllRuns: { "method": "GET", "path": "/runs", "pathParams": [], "multiSegment": [], "query": ["limit", "cursor", "agent", "revision", "status", "archived"], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
107
+ listAllRuns: { "method": "GET", "path": "/runs", "pathParams": [], "multiSegment": [], "query": ["limit", "cursor", "agent", "revision", "status", "archived", "label"], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
108
108
  sendMessage: { "method": "POST", "path": "/runs/{run_id}/messages", "pathParams": ["run_id"], "multiSegment": [], "query": [], "headers": ["Idempotency-Key"], "body": { "required": true, "types": ["application/json"] }, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
109
109
  pauseRun: { "method": "POST", "path": "/runs/{run_id}/pause", "pathParams": ["run_id"], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
110
110
  raiseRunCap: { "method": "PATCH", "path": "/runs/{run_id}", "pathParams": ["run_id"], "multiSegment": [], "query": [], "headers": [], "body": { "required": true, "types": ["application/json"] }, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@parcha/agentrun-client",
3
- "version": "0.1.0-beta.40",
3
+ "version": "0.1.0-beta.41",
4
4
  "description": "A typed TypeScript client for a self-hosted AgentRun server: a method per operation of its API, typed from its OpenAPI document, with waiting for a run and following its timeline. No dependencies; fetch only.",
5
5
  "keywords": [
6
6
  "agentrun",
@@ -75,6 +75,6 @@
75
75
  }
76
76
  },
77
77
  "devDependencies": {
78
- "@parcha/agentrun-dsl": "0.1.0-beta.40"
78
+ "@parcha/agentrun-dsl": "0.1.0-beta.41"
79
79
  }
80
80
  }