@parcha/agentrun-client 0.1.0-beta.55 → 0.1.0-beta.56

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.
@@ -3028,6 +3028,7 @@ export type FinishChatGPTSignInResponse = {
3028
3028
  authorize_url?: string;
3029
3029
  expires_at?: string;
3030
3030
  models?: Array<string>;
3031
+ problem?: string;
3031
3032
  };
3032
3033
  /** This server's calendar: its host, name and time zone, never its address (GET /settings/calendar). */
3033
3034
  export type GetCalendarResponse = {
@@ -3044,6 +3045,7 @@ export type GetChatGPTSignInResponse = {
3044
3045
  authorize_url?: string;
3045
3046
  expires_at?: string;
3046
3047
  models?: Array<string>;
3048
+ problem?: string;
3047
3049
  };
3048
3050
  /** Claude Code's login on this machine: on or off, and what its CLI says of it (GET /settings/claude-login). */
3049
3051
  export type GetClaudeLoginResponse = {
@@ -3058,6 +3060,20 @@ export type GetClaudeLoginResponse = {
3058
3060
  organization?: string;
3059
3061
  plan?: string;
3060
3062
  };
3063
+ folder: string;
3064
+ machine: {
3065
+ folder: string;
3066
+ source: "CLAUDE_CONFIG_DIR" | "default";
3067
+ };
3068
+ sign_in?: {
3069
+ state: "waiting" | "signed_in" | "timed_out" | "failed" | "not_started";
3070
+ started_at: string;
3071
+ ended_at?: string;
3072
+ limit_ms: number;
3073
+ exit_code?: number;
3074
+ signal?: string;
3075
+ error?: string;
3076
+ };
3061
3077
  };
3062
3078
  /** This server's email account: its address, servers and who signs in, never its password (GET /settings/email). */
3063
3079
  export type GetEmailAccountResponse = {
@@ -3827,6 +3843,20 @@ export type StartClaudeLoginResponse = {
3827
3843
  organization?: string;
3828
3844
  plan?: string;
3829
3845
  };
3846
+ folder: string;
3847
+ machine: {
3848
+ folder: string;
3849
+ source: "CLAUDE_CONFIG_DIR" | "default";
3850
+ };
3851
+ sign_in?: {
3852
+ state: "waiting" | "signed_in" | "timed_out" | "failed" | "not_started";
3853
+ started_at: string;
3854
+ ended_at?: string;
3855
+ limit_ms: number;
3856
+ exit_code?: number;
3857
+ signal?: string;
3858
+ error?: string;
3859
+ };
3830
3860
  };
3831
3861
  /** Start signing in to an MCP server with OAuth: the page the owner opens (POST /settings/mcp-servers/{name}/oauth/start). Its body's string values are secrets: each copy is cut from the answer, and a refusal keeps only its code. */
3832
3862
  export type StartMcpOAuthBody = {
@@ -3914,6 +3944,20 @@ export type TurnOffClaudeLoginResponse = {
3914
3944
  organization?: string;
3915
3945
  plan?: string;
3916
3946
  };
3947
+ folder: string;
3948
+ machine: {
3949
+ folder: string;
3950
+ source: "CLAUDE_CONFIG_DIR" | "default";
3951
+ };
3952
+ sign_in?: {
3953
+ state: "waiting" | "signed_in" | "timed_out" | "failed" | "not_started";
3954
+ started_at: string;
3955
+ ended_at?: string;
3956
+ limit_ms: number;
3957
+ exit_code?: number;
3958
+ signal?: string;
3959
+ error?: string;
3960
+ };
3917
3961
  };
3918
3962
  /** Turn on Claude Code's login on this machine for claude-agent's runs (PUT /settings/claude-login). */
3919
3963
  export type TurnOnClaudeLoginBody = {
@@ -3932,6 +3976,20 @@ export type TurnOnClaudeLoginResponse = {
3932
3976
  organization?: string;
3933
3977
  plan?: string;
3934
3978
  };
3979
+ folder: string;
3980
+ machine: {
3981
+ folder: string;
3982
+ source: "CLAUDE_CONFIG_DIR" | "default";
3983
+ };
3984
+ sign_in?: {
3985
+ state: "waiting" | "signed_in" | "timed_out" | "failed" | "not_started";
3986
+ started_at: string;
3987
+ ended_at?: string;
3988
+ limit_ms: number;
3989
+ exit_code?: number;
3990
+ signal?: string;
3991
+ error?: string;
3992
+ };
3935
3993
  };
3936
3994
  /** Forget a saved MCP server and its credential (DELETE /settings/mcp-servers/{name}). */
3937
3995
  export type DeleteMcpServerResponse = {
@@ -6752,6 +6810,54 @@ export type ValidateWorkflowResponse = {
6752
6810
  }>;
6753
6811
  warnings: Array<string>;
6754
6812
  };
6813
+ /** A year of the work under this machine's session files (GET /wrapped). */
6814
+ export interface GetWrappedParams {
6815
+ year?: number;
6816
+ }
6817
+ export type GetWrappedResponse = {
6818
+ year: number;
6819
+ sessions: number;
6820
+ turns: number;
6821
+ requests: number;
6822
+ tokens: {
6823
+ input: number;
6824
+ output: number;
6825
+ cache_read: number;
6826
+ cache_write: number;
6827
+ };
6828
+ cost_usd: number;
6829
+ unpriced_requests: number;
6830
+ days: Array<{
6831
+ day: string;
6832
+ requests: number;
6833
+ tokens: number;
6834
+ }>;
6835
+ hours: Array<number>;
6836
+ weekdays: Array<number>;
6837
+ active_ms: number;
6838
+ harnesses: Array<{
6839
+ harness: string;
6840
+ sessions: number;
6841
+ requests: number;
6842
+ tokens: number;
6843
+ }>;
6844
+ models: Array<{
6845
+ model: string;
6846
+ requests: number;
6847
+ tokens: number;
6848
+ cost_usd: number;
6849
+ }>;
6850
+ sources: Array<{
6851
+ source: string;
6852
+ sessions: number;
6853
+ requests: number;
6854
+ }>;
6855
+ imported: Array<{
6856
+ source: string;
6857
+ runs: number;
6858
+ }>;
6859
+ unread_files: number;
6860
+ };
6755
6861
  /** Each operation as the runtime sends it, by operationId. */
6756
6862
  export declare const OPERATIONS: Readonly<Record<string, Operation>>;
6757
6863
  /** The resource groups, each operation a method that sends it through `call`. */
@@ -7130,6 +7236,8 @@ export declare function resources(call: Call): {
7130
7236
  stats: (params?: GetStatsParams, options?: RequestOptions) => Promise<GetStatsResponse>;
7131
7237
  /** Usage by meter over a period (GET /usage). */
7132
7238
  usage: (params?: GetUsageParams, options?: RequestOptions) => Promise<GetUsageResponse>;
7239
+ /** A year of the work under this machine's session files (GET /wrapped). */
7240
+ wrapped: (params?: GetWrappedParams, options?: RequestOptions) => Promise<GetWrappedResponse>;
7133
7241
  template: {
7134
7242
  /** Apply a template package: make its agent, with its skills, then its triggers (POST /templates/{template}/apply). */
7135
7243
  apply: (template: string, body: ApplyTemplateBody, params?: ApplyTemplateParams, options?: RequestOptions) => Promise<ApplyTemplateResponse>;
@@ -201,6 +201,7 @@ export const OPERATIONS = {
201
201
  saveWebhook: { "method": "PUT", "path": "/settings/webhook", "pathParams": [], "multiSegment": [], "query": [], "headers": [], "body": { "required": true, "types": ["application/json"] }, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
202
202
  testWebhook: { "method": "POST", "path": "/settings/webhook/test", "pathParams": [], "multiSegment": [], "query": [], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
203
203
  validateWorkflow: { "method": "POST", "path": "/workflows/validate", "pathParams": [], "multiSegment": [], "query": [], "headers": [], "body": { "required": true, "types": ["application/json"] }, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
204
+ getWrapped: { "method": "GET", "path": "/wrapped", "pathParams": [], "multiSegment": [], "query": ["year"], "headers": [], "body": null, "answer": "json", "secret": false, "publicFields": [], "tagged": false },
204
205
  };
205
206
  /** The resource groups, each operation a method that sends it through `call`. */
206
207
  export function resources(call) {
@@ -579,6 +580,8 @@ export function resources(call) {
579
580
  stats: (params, options) => call("getStats", [], undefined, params, options),
580
581
  /** Usage by meter over a period (GET /usage). */
581
582
  usage: (params, options) => call("getUsage", [], undefined, params, options),
583
+ /** A year of the work under this machine's session files (GET /wrapped). */
584
+ wrapped: (params, options) => call("getWrapped", [], undefined, params, options),
582
585
  template: {
583
586
  /** Apply a template package: make its agent, with its skills, then its triggers (POST /templates/{template}/apply). */
584
587
  apply: (template, body, params, options) => call("applyTemplate", [template], body, params, options),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@parcha/agentrun-client",
3
- "version": "0.1.0-beta.55",
3
+ "version": "0.1.0-beta.56",
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",
@@ -83,6 +83,6 @@
83
83
  }
84
84
  },
85
85
  "devDependencies": {
86
- "@parcha/agentrun-dsl": "0.1.0-beta.55"
86
+ "@parcha/agentrun-dsl": "0.1.0-beta.56"
87
87
  }
88
88
  }