@converge.ai/a13n 0.1.0 → 0.3.3

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/dist/schema.d.ts CHANGED
@@ -915,6 +915,75 @@ export interface paths {
915
915
  patch: operations["change_client_environment_status"];
916
916
  trace?: never;
917
917
  };
918
+ "/api/v1/cloudflare-deployments": {
919
+ parameters: {
920
+ query?: never;
921
+ header?: never;
922
+ path?: never;
923
+ cookie?: never;
924
+ };
925
+ /** List Cloudflare Deployments */
926
+ get: operations["list_cloudflare_deployments"];
927
+ put?: never;
928
+ /** Create Cloudflare Deployment */
929
+ post: operations["create_cloudflare_deployment"];
930
+ delete?: never;
931
+ options?: never;
932
+ head?: never;
933
+ patch?: never;
934
+ trace?: never;
935
+ };
936
+ "/api/v1/cloudflare-deployments/{deployment_id}": {
937
+ parameters: {
938
+ query?: never;
939
+ header?: never;
940
+ path?: never;
941
+ cookie?: never;
942
+ };
943
+ /** Get Cloudflare Deployment */
944
+ get: operations["get_cloudflare_deployment"];
945
+ put?: never;
946
+ post?: never;
947
+ delete?: never;
948
+ options?: never;
949
+ head?: never;
950
+ patch?: never;
951
+ trace?: never;
952
+ };
953
+ "/api/v1/cloudflare-deployments/{deployment_id}/retire": {
954
+ parameters: {
955
+ query?: never;
956
+ header?: never;
957
+ path?: never;
958
+ cookie?: never;
959
+ };
960
+ get?: never;
961
+ put?: never;
962
+ /** Retire Cloudflare Deployment */
963
+ post: operations["retire_cloudflare_deployment"];
964
+ delete?: never;
965
+ options?: never;
966
+ head?: never;
967
+ patch?: never;
968
+ trace?: never;
969
+ };
970
+ "/api/v1/cloudflare-deployments/{deployment_id}/retry": {
971
+ parameters: {
972
+ query?: never;
973
+ header?: never;
974
+ path?: never;
975
+ cookie?: never;
976
+ };
977
+ get?: never;
978
+ put?: never;
979
+ /** Retry Cloudflare Deployment */
980
+ post: operations["retry_cloudflare_deployment"];
981
+ delete?: never;
982
+ options?: never;
983
+ head?: never;
984
+ patch?: never;
985
+ trace?: never;
986
+ };
918
987
  "/api/v1/connections": {
919
988
  parameters: {
920
989
  query?: never;
@@ -4741,6 +4810,26 @@ export interface paths {
4741
4810
  patch?: never;
4742
4811
  trace?: never;
4743
4812
  };
4813
+ "/api/v1/usage/sessions": {
4814
+ parameters: {
4815
+ query?: never;
4816
+ header?: never;
4817
+ path?: never;
4818
+ cookie?: never;
4819
+ };
4820
+ /**
4821
+ * List Session Usage
4822
+ * @description Sessions ranked by recorded cost for one Agent within the selected window.
4823
+ */
4824
+ get: operations["list_session_usage"];
4825
+ put?: never;
4826
+ post?: never;
4827
+ delete?: never;
4828
+ options?: never;
4829
+ head?: never;
4830
+ patch?: never;
4831
+ trace?: never;
4832
+ };
4744
4833
  "/api/v1/users/me": {
4745
4834
  parameters: {
4746
4835
  query?: never;
@@ -6781,6 +6870,28 @@ export interface components {
6781
6870
  */
6782
6871
  permission_ceiling?: components["schemas"]["EnvironmentPermissionSet-Output"];
6783
6872
  };
6873
+ /** ClientOutputAlternative */
6874
+ ClientOutputAlternative: {
6875
+ /** Description */
6876
+ description?: string | null;
6877
+ /**
6878
+ * @description discriminator enum property added by openapi-typescript
6879
+ * @enum {string}
6880
+ */
6881
+ kind: "client_tool";
6882
+ /** Name */
6883
+ name: string;
6884
+ /** Resources */
6885
+ resources?: {
6886
+ [key: string]: {
6887
+ [key: string]: components["schemas"]["JsonValue"];
6888
+ };
6889
+ };
6890
+ /** Schema */
6891
+ schema: {
6892
+ [key: string]: components["schemas"]["JsonValue"];
6893
+ };
6894
+ };
6784
6895
  /**
6785
6896
  * ClientToolDefinition
6786
6897
  * @description Portable model guidance for one externally executed client tool.
@@ -7659,6 +7770,67 @@ export interface components {
7659
7770
  /** Reason */
7660
7771
  reason?: string | null;
7661
7772
  };
7773
+ /** Deployment */
7774
+ Deployment: {
7775
+ /** Account Id */
7776
+ account_id: string;
7777
+ /** Cleanup */
7778
+ cleanup: {
7779
+ [key: string]: "removed" | "pending" | "not_created";
7780
+ };
7781
+ /** Endpoint */
7782
+ endpoint: string | null;
7783
+ /** Error */
7784
+ error: string | null;
7785
+ /** Id */
7786
+ id: string;
7787
+ /** Name */
7788
+ name: string;
7789
+ /**
7790
+ * Operation
7791
+ * @enum {string}
7792
+ */
7793
+ operation: "deploy" | "retire";
7794
+ /** Provider Id */
7795
+ provider_id: string | null;
7796
+ /** Source Image */
7797
+ source_image: string;
7798
+ /** Stage */
7799
+ stage: string;
7800
+ /**
7801
+ * Status
7802
+ * @enum {string}
7803
+ */
7804
+ status: "deploying" | "ready" | "retiring" | "needs_attention" | "retired";
7805
+ /** Version */
7806
+ version: number;
7807
+ /** Worker Name */
7808
+ worker_name: string;
7809
+ };
7810
+ /** DeploymentCreate */
7811
+ DeploymentCreate: {
7812
+ /** Account Id */
7813
+ account_id: string;
7814
+ /**
7815
+ * Api Token
7816
+ * Format: password
7817
+ */
7818
+ api_token: string;
7819
+ /** Name */
7820
+ name: string;
7821
+ /**
7822
+ * Request Id
7823
+ * Format: uuid
7824
+ */
7825
+ request_id: string;
7826
+ };
7827
+ /** DeploymentList */
7828
+ DeploymentList: {
7829
+ /** Available */
7830
+ available: boolean;
7831
+ /** Items */
7832
+ items: components["schemas"]["Deployment"][];
7833
+ };
7662
7834
  /** DeploymentPreset */
7663
7835
  DeploymentPreset: {
7664
7836
  config: components["schemas"]["Configuration"];
@@ -7669,6 +7841,11 @@ export interface components {
7669
7841
  /** Revision */
7670
7842
  revision: string;
7671
7843
  };
7844
+ /** DeploymentRetry */
7845
+ DeploymentRetry: {
7846
+ /** Api Token */
7847
+ api_token?: string | null;
7848
+ };
7672
7849
  Description: string;
7673
7850
  /** Device */
7674
7851
  Device: {
@@ -7948,7 +8125,7 @@ export interface components {
7948
8125
  * Kind
7949
8126
  * @enum {string}
7950
8127
  */
7951
- kind: "message" | "child_result";
8128
+ kind: "message" | "child_result" | "child_message";
7952
8129
  /**
7953
8130
  * Omitted Sections
7954
8131
  * @default [
@@ -8021,7 +8198,7 @@ export interface components {
8021
8198
  * Kind
8022
8199
  * @enum {string}
8023
8200
  */
8024
- kind: "message" | "child_result" | "tool_result" | "browser_handback" | "desktop_handback";
8201
+ kind: "message" | "child_result" | "child_message" | "tool_result" | "browser_handback" | "desktop_handback";
8025
8202
  options: components["schemas"]["RunOptions-Output"];
8026
8203
  /** Origin Run Id */
8027
8204
  origin_run_id: string | null;
@@ -10782,6 +10959,7 @@ export interface components {
10782
10959
  agent_id: string;
10783
10960
  /** Agent Revision Id */
10784
10961
  agent_revision_id?: string | null;
10962
+ browser_binding?: components["schemas"]["BrowserBinding"] | null;
10785
10963
  /** @default steer */
10786
10964
  delivery?: components["schemas"]["Delivery"];
10787
10965
  /** @default [] */
@@ -11184,6 +11362,8 @@ export interface components {
11184
11362
  /** Name */
11185
11363
  name?: string | null;
11186
11364
  };
11365
+ OutputAlternative: components["schemas"]["OutputReference"] | components["schemas"]["OutputDefinition"];
11366
+ OutputDefinition: components["schemas"]["StructuredOutputAlternative"] | components["schemas"]["ClientOutputAlternative"];
11187
11367
  /** OutputPreview */
11188
11368
  OutputPreview: {
11189
11369
  /** Observation Closed */
@@ -11195,6 +11375,7 @@ export interface components {
11195
11375
  /** Truncated */
11196
11376
  truncated: boolean;
11197
11377
  };
11378
+ OutputReference: string;
11198
11379
  /**
11199
11380
  * OutputSpec
11200
11381
  * @description Plain text without a schema, one structured output, or at least two named variants.
@@ -11202,6 +11383,8 @@ export interface components {
11202
11383
  * `resources` are the schemas `$ref`s may name besides the schema's own definitions.
11203
11384
  */
11204
11385
  OutputSpec: {
11386
+ /** Alternatives */
11387
+ alternatives?: components["schemas"]["OutputAlternative"][] | null;
11205
11388
  /** Description */
11206
11389
  description?: string | null;
11207
11390
  /** Name */
@@ -11396,6 +11579,11 @@ export interface components {
11396
11579
  presentation?: {
11397
11580
  [key: string]: components["schemas"]["JsonValue"];
11398
11581
  } | null;
11582
+ /**
11583
+ * Terminal
11584
+ * @default false
11585
+ */
11586
+ terminal?: boolean;
11399
11587
  tool_call_id: components["schemas"]["ToolCallId"];
11400
11588
  /** Tool Name */
11401
11589
  tool_name: string;
@@ -11652,6 +11840,11 @@ export interface components {
11652
11840
  header_names: string[];
11653
11841
  /** Id */
11654
11842
  id: string;
11843
+ /**
11844
+ * Managed Deployment
11845
+ * @default false
11846
+ */
11847
+ managed_deployment?: boolean;
11655
11848
  /** Name */
11656
11849
  name: string;
11657
11850
  /** Organization Id */
@@ -12743,6 +12936,9 @@ export interface components {
12743
12936
  agent_id: string;
12744
12937
  /** Agent Revision Id */
12745
12938
  agent_revision_id: string | null;
12939
+ browser_binding?: components["schemas"]["BrowserBinding"] | null;
12940
+ /** @default [] */
12941
+ environments?: components["schemas"]["InitialMounts"];
12746
12942
  /**
12747
12943
  * Memories
12748
12944
  * @default []
@@ -12757,6 +12953,9 @@ export interface components {
12757
12953
  agent_id: string;
12758
12954
  /** Agent Revision Id */
12759
12955
  agent_revision_id: string | null;
12956
+ browser_binding?: components["schemas"]["BrowserBinding"] | null;
12957
+ /** @default [] */
12958
+ environments?: components["schemas"]["InitialMounts"];
12760
12959
  /**
12761
12960
  * Memories
12762
12961
  * @default []
@@ -13174,6 +13373,22 @@ export interface components {
13174
13373
  /** Title */
13175
13374
  title?: string | null;
13176
13375
  };
13376
+ /** SessionUsage */
13377
+ SessionUsage: {
13378
+ runs: components["schemas"]["RunMetrics"];
13379
+ /** Session Id */
13380
+ session_id: string;
13381
+ /** Title */
13382
+ title: string | null;
13383
+ usage: components["schemas"]["ModelMetrics"];
13384
+ };
13385
+ /** SessionUsagePage */
13386
+ SessionUsagePage: {
13387
+ /** Items */
13388
+ items: components["schemas"]["SessionUsage"][];
13389
+ /** Next Cursor */
13390
+ next_cursor: string | null;
13391
+ };
13177
13392
  /** SessionView */
13178
13393
  SessionView: {
13179
13394
  /** Auto Recreate Lost Environment */
@@ -13696,6 +13911,28 @@ export interface components {
13696
13911
  };
13697
13912
  /** @enum {string} */
13698
13913
  Steering: "boundary" | "immediate";
13914
+ /** StructuredOutputAlternative */
13915
+ StructuredOutputAlternative: {
13916
+ /** Description */
13917
+ description?: string | null;
13918
+ /**
13919
+ * @description discriminator enum property added by openapi-typescript
13920
+ * @enum {string}
13921
+ */
13922
+ kind: "structured";
13923
+ /** Name */
13924
+ name: string;
13925
+ /** Resources */
13926
+ resources?: {
13927
+ [key: string]: {
13928
+ [key: string]: components["schemas"]["JsonValue"];
13929
+ };
13930
+ };
13931
+ /** Schema */
13932
+ schema: {
13933
+ [key: string]: components["schemas"]["JsonValue"];
13934
+ };
13935
+ };
13699
13936
  /** SubagentSelection */
13700
13937
  "SubagentSelection-Input": {
13701
13938
  /** Agent Id */
@@ -14519,7 +14756,7 @@ export interface components {
14519
14756
  total: number;
14520
14757
  };
14521
14758
  /** @enum {string} */
14522
- Trigger: "input" | "queued" | "resume" | "child_result" | "tool_result" | "browser_handback" | "desktop_handback" | "spawned";
14759
+ Trigger: "input" | "queued" | "resume" | "child_result" | "child_message" | "tool_result" | "browser_handback" | "desktop_handback" | "spawned";
14523
14760
  /** TypedQuery */
14524
14761
  TypedQuery: {
14525
14762
  /**
@@ -16792,6 +17029,149 @@ export interface operations {
16792
17029
  default: components["responses"]["Error"];
16793
17030
  };
16794
17031
  };
17032
+ list_cloudflare_deployments: {
17033
+ parameters: {
17034
+ query?: never;
17035
+ header?: {
17036
+ /** @description The workspace ID a login session acts in; required with a login session. An API key acts in its own workspace and needs none; naming another is forbidden. */
17037
+ "X-Workspace-ID"?: string | null;
17038
+ };
17039
+ path?: never;
17040
+ cookie?: never;
17041
+ };
17042
+ requestBody?: never;
17043
+ responses: {
17044
+ /** @description Successful Response */
17045
+ 200: {
17046
+ headers: {
17047
+ [name: string]: unknown;
17048
+ };
17049
+ content: {
17050
+ "application/json": components["schemas"]["DeploymentList"];
17051
+ };
17052
+ };
17053
+ 400: components["responses"]["Error"];
17054
+ default: components["responses"]["Error"];
17055
+ };
17056
+ };
17057
+ create_cloudflare_deployment: {
17058
+ parameters: {
17059
+ query?: never;
17060
+ header?: {
17061
+ /** @description The workspace ID a login session acts in; required with a login session. An API key acts in its own workspace and needs none; naming another is forbidden. */
17062
+ "X-Workspace-ID"?: string | null;
17063
+ };
17064
+ path?: never;
17065
+ cookie?: never;
17066
+ };
17067
+ requestBody: {
17068
+ content: {
17069
+ "application/json": components["schemas"]["DeploymentCreate"];
17070
+ };
17071
+ };
17072
+ responses: {
17073
+ /** @description Successful Response */
17074
+ 202: {
17075
+ headers: {
17076
+ [name: string]: unknown;
17077
+ };
17078
+ content: {
17079
+ "application/json": components["schemas"]["Deployment"];
17080
+ };
17081
+ };
17082
+ 400: components["responses"]["Error"];
17083
+ default: components["responses"]["Error"];
17084
+ };
17085
+ };
17086
+ get_cloudflare_deployment: {
17087
+ parameters: {
17088
+ query?: never;
17089
+ header?: {
17090
+ /** @description The workspace ID a login session acts in; required with a login session. An API key acts in its own workspace and needs none; naming another is forbidden. */
17091
+ "X-Workspace-ID"?: string | null;
17092
+ };
17093
+ path: {
17094
+ deployment_id: string;
17095
+ };
17096
+ cookie?: never;
17097
+ };
17098
+ requestBody?: never;
17099
+ responses: {
17100
+ /** @description Successful Response */
17101
+ 200: {
17102
+ headers: {
17103
+ [name: string]: unknown;
17104
+ };
17105
+ content: {
17106
+ "application/json": components["schemas"]["Deployment"];
17107
+ };
17108
+ };
17109
+ 400: components["responses"]["Error"];
17110
+ default: components["responses"]["Error"];
17111
+ };
17112
+ };
17113
+ retire_cloudflare_deployment: {
17114
+ parameters: {
17115
+ query?: never;
17116
+ header?: {
17117
+ /** @description The resource's ETag: `"{id}:{version}"` of its current view, `"{key}:{version}"` for a model */
17118
+ "If-Match"?: string | null;
17119
+ /** @description The workspace ID a login session acts in; required with a login session. An API key acts in its own workspace and needs none; naming another is forbidden. */
17120
+ "X-Workspace-ID"?: string | null;
17121
+ };
17122
+ path: {
17123
+ deployment_id: string;
17124
+ };
17125
+ cookie?: never;
17126
+ };
17127
+ requestBody?: never;
17128
+ responses: {
17129
+ /** @description Successful Response */
17130
+ 202: {
17131
+ headers: {
17132
+ [name: string]: unknown;
17133
+ };
17134
+ content: {
17135
+ "application/json": components["schemas"]["Deployment"];
17136
+ };
17137
+ };
17138
+ 400: components["responses"]["Error"];
17139
+ default: components["responses"]["Error"];
17140
+ };
17141
+ };
17142
+ retry_cloudflare_deployment: {
17143
+ parameters: {
17144
+ query?: never;
17145
+ header?: {
17146
+ /** @description The resource's ETag: `"{id}:{version}"` of its current view, `"{key}:{version}"` for a model */
17147
+ "If-Match"?: string | null;
17148
+ /** @description The workspace ID a login session acts in; required with a login session. An API key acts in its own workspace and needs none; naming another is forbidden. */
17149
+ "X-Workspace-ID"?: string | null;
17150
+ };
17151
+ path: {
17152
+ deployment_id: string;
17153
+ };
17154
+ cookie?: never;
17155
+ };
17156
+ requestBody: {
17157
+ content: {
17158
+ "application/json": components["schemas"]["DeploymentRetry"];
17159
+ };
17160
+ };
17161
+ responses: {
17162
+ /** @description Successful Response */
17163
+ 202: {
17164
+ headers: {
17165
+ [name: string]: unknown;
17166
+ };
17167
+ content: {
17168
+ "application/json": components["schemas"]["Deployment"];
17169
+ };
17170
+ };
17171
+ 400: components["responses"]["Error"];
17172
+ default: components["responses"]["Error"];
17173
+ };
17174
+ };
16795
17175
  list_connections: {
16796
17176
  parameters: {
16797
17177
  query?: {
@@ -24216,7 +24596,7 @@ export interface operations {
24216
24596
  status?: components["schemas"]["EntryStatus"][] | null;
24217
24597
  /** @description Use compact for discovery; detailed preserves the original response. */
24218
24598
  view?: components["schemas"]["ReadView"];
24219
- kind?: ("message" | "child_result") | null;
24599
+ kind?: ("message" | "child_result" | "child_message") | null;
24220
24600
  limit?: number | null;
24221
24601
  cursor?: string | null;
24222
24602
  };
@@ -25439,6 +25819,39 @@ export interface operations {
25439
25819
  default: components["responses"]["Error"];
25440
25820
  };
25441
25821
  };
25822
+ list_session_usage: {
25823
+ parameters: {
25824
+ query: {
25825
+ start: string;
25826
+ end: string;
25827
+ /** @description Filter by Run execution identity; requires workspace admin. */
25828
+ principal_id?: string | null;
25829
+ limit?: number;
25830
+ cursor?: string | null;
25831
+ agent_id: string;
25832
+ };
25833
+ header?: {
25834
+ /** @description The workspace ID a login session acts in; required with a login session. An API key acts in its own workspace and needs none; naming another is forbidden. */
25835
+ "X-Workspace-ID"?: string | null;
25836
+ };
25837
+ path?: never;
25838
+ cookie?: never;
25839
+ };
25840
+ requestBody?: never;
25841
+ responses: {
25842
+ /** @description Successful Response */
25843
+ 200: {
25844
+ headers: {
25845
+ [name: string]: unknown;
25846
+ };
25847
+ content: {
25848
+ "application/json": components["schemas"]["SessionUsagePage"];
25849
+ };
25850
+ };
25851
+ 400: components["responses"]["Error"];
25852
+ default: components["responses"]["Error"];
25853
+ };
25854
+ };
25442
25855
  get_profile: {
25443
25856
  parameters: {
25444
25857
  query?: never;