@agent-os-sdk/client 0.9.24 → 0.9.26

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.
Files changed (185) hide show
  1. package/package.json +15 -8
  2. package/src/generated/openapi.ts +90 -0
  3. package/src/generated/swagger.json +181 -0
  4. package/src/modules/runs.ts +64 -0
  5. package/src/modules/templates.ts +35 -0
  6. package/dist/client/AgentOsClient.d.ts +0 -141
  7. package/dist/client/AgentOsClient.d.ts.map +0 -1
  8. package/dist/client/AgentOsClient.js +0 -250
  9. package/dist/client/HttpRequestBuilder.d.ts +0 -50
  10. package/dist/client/HttpRequestBuilder.d.ts.map +0 -1
  11. package/dist/client/HttpRequestBuilder.js +0 -83
  12. package/dist/client/OperationContext.d.ts +0 -19
  13. package/dist/client/OperationContext.d.ts.map +0 -1
  14. package/dist/client/OperationContext.js +0 -13
  15. package/dist/client/OperationContextProvider.d.ts +0 -54
  16. package/dist/client/OperationContextProvider.d.ts.map +0 -1
  17. package/dist/client/OperationContextProvider.js +0 -71
  18. package/dist/client/auth.d.ts +0 -100
  19. package/dist/client/auth.d.ts.map +0 -1
  20. package/dist/client/auth.js +0 -38
  21. package/dist/client/config.d.ts +0 -49
  22. package/dist/client/config.d.ts.map +0 -1
  23. package/dist/client/config.js +0 -62
  24. package/dist/client/helpers.d.ts +0 -63
  25. package/dist/client/helpers.d.ts.map +0 -1
  26. package/dist/client/helpers.js +0 -55
  27. package/dist/client/pagination.d.ts +0 -105
  28. package/dist/client/pagination.d.ts.map +0 -1
  29. package/dist/client/pagination.js +0 -117
  30. package/dist/client/raw.d.ts +0 -277
  31. package/dist/client/raw.d.ts.map +0 -1
  32. package/dist/client/raw.js +0 -337
  33. package/dist/client/retry.d.ts +0 -37
  34. package/dist/client/retry.d.ts.map +0 -1
  35. package/dist/client/retry.js +0 -108
  36. package/dist/client/sanitize.d.ts +0 -19
  37. package/dist/client/sanitize.d.ts.map +0 -1
  38. package/dist/client/sanitize.js +0 -28
  39. package/dist/client/timeout.d.ts +0 -26
  40. package/dist/client/timeout.d.ts.map +0 -1
  41. package/dist/client/timeout.js +0 -51
  42. package/dist/errors/factory.d.ts +0 -22
  43. package/dist/errors/factory.d.ts.map +0 -1
  44. package/dist/errors/factory.js +0 -101
  45. package/dist/errors/index.d.ts +0 -210
  46. package/dist/errors/index.d.ts.map +0 -1
  47. package/dist/errors/index.js +0 -283
  48. package/dist/generated/client.d.ts +0 -20
  49. package/dist/generated/client.d.ts.map +0 -1
  50. package/dist/generated/client.js +0 -15
  51. package/dist/generated/index.d.ts +0 -2
  52. package/dist/generated/index.d.ts.map +0 -1
  53. package/dist/generated/index.js +0 -1
  54. package/dist/generated/openapi.d.ts +0 -12294
  55. package/dist/generated/openapi.d.ts.map +0 -1
  56. package/dist/generated/openapi.js +0 -5
  57. package/dist/index.d.ts +0 -69
  58. package/dist/index.d.ts.map +0 -1
  59. package/dist/index.js +0 -81
  60. package/dist/modules/a2a.d.ts +0 -48
  61. package/dist/modules/a2a.d.ts.map +0 -1
  62. package/dist/modules/a2a.js +0 -37
  63. package/dist/modules/agents.d.ts +0 -346
  64. package/dist/modules/agents.d.ts.map +0 -1
  65. package/dist/modules/agents.js +0 -296
  66. package/dist/modules/apiTokens.d.ts +0 -62
  67. package/dist/modules/apiTokens.d.ts.map +0 -1
  68. package/dist/modules/apiTokens.js +0 -56
  69. package/dist/modules/approvals.d.ts +0 -75
  70. package/dist/modules/approvals.d.ts.map +0 -1
  71. package/dist/modules/approvals.js +0 -91
  72. package/dist/modules/audit.d.ts +0 -78
  73. package/dist/modules/audit.d.ts.map +0 -1
  74. package/dist/modules/audit.js +0 -94
  75. package/dist/modules/auth.d.ts +0 -28
  76. package/dist/modules/auth.d.ts.map +0 -1
  77. package/dist/modules/auth.js +0 -22
  78. package/dist/modules/builder.d.ts +0 -242
  79. package/dist/modules/builder.d.ts.map +0 -1
  80. package/dist/modules/builder.js +0 -248
  81. package/dist/modules/catalog.d.ts +0 -142
  82. package/dist/modules/catalog.d.ts.map +0 -1
  83. package/dist/modules/catalog.js +0 -136
  84. package/dist/modules/chatwoot.d.ts +0 -59
  85. package/dist/modules/chatwoot.d.ts.map +0 -1
  86. package/dist/modules/chatwoot.js +0 -200
  87. package/dist/modules/checkpoints.d.ts +0 -62
  88. package/dist/modules/checkpoints.d.ts.map +0 -1
  89. package/dist/modules/checkpoints.js +0 -48
  90. package/dist/modules/contracts.d.ts +0 -48
  91. package/dist/modules/contracts.d.ts.map +0 -1
  92. package/dist/modules/contracts.js +0 -25
  93. package/dist/modules/credentials.d.ts +0 -105
  94. package/dist/modules/credentials.d.ts.map +0 -1
  95. package/dist/modules/credentials.js +0 -135
  96. package/dist/modules/crons.d.ts +0 -73
  97. package/dist/modules/crons.d.ts.map +0 -1
  98. package/dist/modules/crons.js +0 -67
  99. package/dist/modules/datasets.d.ts +0 -80
  100. package/dist/modules/datasets.d.ts.map +0 -1
  101. package/dist/modules/datasets.js +0 -91
  102. package/dist/modules/evaluation.d.ts +0 -183
  103. package/dist/modules/evaluation.d.ts.map +0 -1
  104. package/dist/modules/evaluation.js +0 -108
  105. package/dist/modules/files.d.ts +0 -89
  106. package/dist/modules/files.d.ts.map +0 -1
  107. package/dist/modules/files.js +0 -133
  108. package/dist/modules/graphs.d.ts +0 -120
  109. package/dist/modules/graphs.d.ts.map +0 -1
  110. package/dist/modules/graphs.js +0 -69
  111. package/dist/modules/improvements.d.ts +0 -52
  112. package/dist/modules/improvements.d.ts.map +0 -1
  113. package/dist/modules/improvements.js +0 -27
  114. package/dist/modules/info.d.ts +0 -76
  115. package/dist/modules/info.d.ts.map +0 -1
  116. package/dist/modules/info.js +0 -93
  117. package/dist/modules/knowledge.d.ts +0 -91
  118. package/dist/modules/knowledge.d.ts.map +0 -1
  119. package/dist/modules/knowledge.js +0 -80
  120. package/dist/modules/me.d.ts +0 -58
  121. package/dist/modules/me.d.ts.map +0 -1
  122. package/dist/modules/me.js +0 -28
  123. package/dist/modules/members.d.ts +0 -124
  124. package/dist/modules/members.d.ts.map +0 -1
  125. package/dist/modules/members.js +0 -142
  126. package/dist/modules/memberships.d.ts +0 -25
  127. package/dist/modules/memberships.d.ts.map +0 -1
  128. package/dist/modules/memberships.js +0 -20
  129. package/dist/modules/metaAgent.d.ts +0 -95
  130. package/dist/modules/metaAgent.d.ts.map +0 -1
  131. package/dist/modules/metaAgent.js +0 -32
  132. package/dist/modules/metrics.d.ts +0 -20
  133. package/dist/modules/metrics.d.ts.map +0 -1
  134. package/dist/modules/metrics.js +0 -27
  135. package/dist/modules/observability.d.ts +0 -19
  136. package/dist/modules/observability.d.ts.map +0 -1
  137. package/dist/modules/observability.js +0 -14
  138. package/dist/modules/playground.d.ts +0 -42
  139. package/dist/modules/playground.d.ts.map +0 -1
  140. package/dist/modules/playground.js +0 -48
  141. package/dist/modules/presets.d.ts +0 -32
  142. package/dist/modules/presets.d.ts.map +0 -1
  143. package/dist/modules/presets.js +0 -199
  144. package/dist/modules/prompts.d.ts +0 -87
  145. package/dist/modules/prompts.d.ts.map +0 -1
  146. package/dist/modules/prompts.js +0 -87
  147. package/dist/modules/roles.d.ts +0 -64
  148. package/dist/modules/roles.d.ts.map +0 -1
  149. package/dist/modules/roles.js +0 -79
  150. package/dist/modules/runs.d.ts +0 -400
  151. package/dist/modules/runs.d.ts.map +0 -1
  152. package/dist/modules/runs.js +0 -526
  153. package/dist/modules/store.d.ts +0 -37
  154. package/dist/modules/store.d.ts.map +0 -1
  155. package/dist/modules/store.js +0 -48
  156. package/dist/modules/templates.d.ts +0 -28
  157. package/dist/modules/templates.d.ts.map +0 -1
  158. package/dist/modules/templates.js +0 -19
  159. package/dist/modules/tenants.d.ts +0 -49
  160. package/dist/modules/tenants.d.ts.map +0 -1
  161. package/dist/modules/tenants.js +0 -56
  162. package/dist/modules/threads.d.ts +0 -205
  163. package/dist/modules/threads.d.ts.map +0 -1
  164. package/dist/modules/threads.js +0 -225
  165. package/dist/modules/tools.d.ts +0 -62
  166. package/dist/modules/tools.d.ts.map +0 -1
  167. package/dist/modules/tools.js +0 -45
  168. package/dist/modules/traces.d.ts +0 -89
  169. package/dist/modules/traces.d.ts.map +0 -1
  170. package/dist/modules/traces.js +0 -65
  171. package/dist/modules/triggers.d.ts +0 -228
  172. package/dist/modules/triggers.d.ts.map +0 -1
  173. package/dist/modules/triggers.js +0 -176
  174. package/dist/modules/usage.d.ts +0 -85
  175. package/dist/modules/usage.d.ts.map +0 -1
  176. package/dist/modules/usage.js +0 -43
  177. package/dist/modules/vectorStores.d.ts +0 -100
  178. package/dist/modules/vectorStores.d.ts.map +0 -1
  179. package/dist/modules/vectorStores.js +0 -159
  180. package/dist/modules/workspaces.d.ts +0 -138
  181. package/dist/modules/workspaces.d.ts.map +0 -1
  182. package/dist/modules/workspaces.js +0 -121
  183. package/dist/sse/client.d.ts +0 -140
  184. package/dist/sse/client.d.ts.map +0 -1
  185. package/dist/sse/client.js +0 -103
package/package.json CHANGED
@@ -1,15 +1,15 @@
1
1
  {
2
2
  "name": "@agent-os-sdk/client",
3
- "version": "0.9.24",
3
+ "version": "0.9.26",
4
4
  "description": "Official TypeScript SDK for Agent OS platform",
5
5
  "type": "module",
6
- "main": "./dist/index.js",
7
- "module": "./dist/index.js",
8
- "types": "./dist/index.d.ts",
6
+ "main": "./index.js",
7
+ "module": "./index.js",
8
+ "types": "./index.d.ts",
9
9
  "exports": {
10
10
  ".": {
11
- "import": "./dist/index.js",
12
- "types": "./dist/index.d.ts"
11
+ "import": "./index.js",
12
+ "types": "./index.d.ts"
13
13
  }
14
14
  },
15
15
  "scripts": {
@@ -47,7 +47,14 @@
47
47
  "vitest": "^4.0.18"
48
48
  },
49
49
  "files": [
50
- "dist",
51
- "src"
50
+ "client",
51
+ "errors",
52
+ "generated",
53
+ "index.d.ts",
54
+ "index.d.ts.map",
55
+ "index.js",
56
+ "modules",
57
+ "src",
58
+ "sse"
52
59
  ]
53
60
  }
@@ -7398,6 +7398,58 @@ export interface paths {
7398
7398
  patch?: never;
7399
7399
  trace?: never;
7400
7400
  };
7401
+ "/v1/api/templates/{templateRef}/instantiate": {
7402
+ parameters: {
7403
+ query?: never;
7404
+ header?: never;
7405
+ path?: never;
7406
+ cookie?: never;
7407
+ };
7408
+ get?: never;
7409
+ put?: never;
7410
+ post: {
7411
+ parameters: {
7412
+ query?: never;
7413
+ header?: never;
7414
+ path: {
7415
+ templateRef: string;
7416
+ };
7417
+ cookie?: never;
7418
+ };
7419
+ requestBody?: {
7420
+ content: {
7421
+ "application/json": components["schemas"]["InstantiateTemplateRequest"];
7422
+ "text/json": components["schemas"]["InstantiateTemplateRequest"];
7423
+ "application/*+json": components["schemas"]["InstantiateTemplateRequest"];
7424
+ };
7425
+ };
7426
+ responses: {
7427
+ /** @description Created */
7428
+ 201: {
7429
+ headers: {
7430
+ [name: string]: unknown;
7431
+ };
7432
+ content: {
7433
+ "application/json": components["schemas"]["InstantiateTemplateResponse"];
7434
+ };
7435
+ };
7436
+ /** @description Not Found */
7437
+ 404: {
7438
+ headers: {
7439
+ [name: string]: unknown;
7440
+ };
7441
+ content: {
7442
+ "application/json": components["schemas"]["ProblemDetails"];
7443
+ };
7444
+ };
7445
+ };
7446
+ };
7447
+ delete?: never;
7448
+ options?: never;
7449
+ head?: never;
7450
+ patch?: never;
7451
+ trace?: never;
7452
+ };
7401
7453
  "/v1/api/tenants": {
7402
7454
  parameters: {
7403
7455
  query?: never;
@@ -10891,6 +10943,17 @@ export interface components {
10891
10943
  paths?: components["schemas"]["PathInfoDto"][] | null;
10892
10944
  warnings?: string[] | null;
10893
10945
  };
10946
+ InstantiateTemplateRequest: {
10947
+ display_name?: string | null;
10948
+ metadata?: components["schemas"]["JsonNode"];
10949
+ };
10950
+ InstantiateTemplateResponse: {
10951
+ /** Format: uuid */
10952
+ agent_id?: string;
10953
+ name?: string | null;
10954
+ template_ref?: string | null;
10955
+ template_version?: string | null;
10956
+ };
10894
10957
  InviteMemberRequest: {
10895
10958
  /** Format: uuid */
10896
10959
  user_id?: string | null;
@@ -11643,12 +11706,20 @@ export interface components {
11643
11706
  /** Format: uuid */
11644
11707
  agent_id?: string;
11645
11708
  /** Format: uuid */
11709
+ bundle_id?: string;
11710
+ /** Format: uuid */
11646
11711
  thread_id?: string | null;
11647
11712
  status?: string | null;
11648
11713
  /** Format: date-time */
11649
11714
  created_at?: string;
11650
11715
  /** Format: date-time */
11716
+ started_at?: string | null;
11717
+ /** Format: date-time */
11651
11718
  completed_at?: string | null;
11719
+ /** Format: int32 */
11720
+ attempt_count?: number;
11721
+ /** Format: int32 */
11722
+ current_attempt_no?: number | null;
11652
11723
  };
11653
11724
  RunListResponse: {
11654
11725
  items?: components["schemas"]["RunListItem"][] | null;
@@ -11852,6 +11923,12 @@ export interface components {
11852
11923
  SupportedContractsResponse: {
11853
11924
  contract_ids?: string[] | null;
11854
11925
  };
11926
+ TemplateCapabilityPreviewResponse: {
11927
+ capability_ref?: string | null;
11928
+ capability_version?: string | null;
11929
+ execution_binding?: string | null;
11930
+ required_credentials?: string[] | null;
11931
+ };
11855
11932
  TemplateDetailResponse: {
11856
11933
  template_ref?: string | null;
11857
11934
  version?: string | null;
@@ -11861,6 +11938,9 @@ export interface components {
11861
11938
  category?: string | null;
11862
11939
  editability_mode?: string | null;
11863
11940
  required_capability_refs?: string[] | null;
11941
+ required_credentials?: string[] | null;
11942
+ topology_preview?: components["schemas"]["TemplateTopologyPreviewResponse"];
11943
+ capabilities?: components["schemas"]["TemplateCapabilityPreviewResponse"][] | null;
11864
11944
  default_policy_refs?: unknown;
11865
11945
  default_runtime_config_refs?: unknown;
11866
11946
  base_agent_ir?: unknown;
@@ -11879,9 +11959,19 @@ export interface components {
11879
11959
  category?: string | null;
11880
11960
  editability_mode?: string | null;
11881
11961
  required_capability_refs?: string[] | null;
11962
+ required_credentials?: string[] | null;
11963
+ topology_preview?: components["schemas"]["TemplateTopologyPreviewResponse"];
11882
11964
  default_policy_refs?: unknown;
11883
11965
  default_runtime_config_refs?: unknown;
11884
11966
  };
11967
+ TemplateTopologyPreviewResponse: {
11968
+ /** Format: int32 */
11969
+ node_count?: number;
11970
+ /** Format: int32 */
11971
+ edge_count?: number;
11972
+ /** Format: int32 */
11973
+ entrypoint_count?: number;
11974
+ };
11885
11975
  TenantContextDto: {
11886
11976
  /** Format: uuid */
11887
11977
  id?: string;
@@ -7700,6 +7700,64 @@
7700
7700
  }
7701
7701
  }
7702
7702
  },
7703
+ "/v1/api/templates/{templateRef}/instantiate": {
7704
+ "post": {
7705
+ "tags": [
7706
+ "Templates"
7707
+ ],
7708
+ "parameters": [
7709
+ {
7710
+ "name": "templateRef",
7711
+ "in": "path",
7712
+ "required": true,
7713
+ "schema": {
7714
+ "type": "string"
7715
+ }
7716
+ }
7717
+ ],
7718
+ "requestBody": {
7719
+ "content": {
7720
+ "application/json": {
7721
+ "schema": {
7722
+ "$ref": "#/components/schemas/InstantiateTemplateRequest"
7723
+ }
7724
+ },
7725
+ "text/json": {
7726
+ "schema": {
7727
+ "$ref": "#/components/schemas/InstantiateTemplateRequest"
7728
+ }
7729
+ },
7730
+ "application/*+json": {
7731
+ "schema": {
7732
+ "$ref": "#/components/schemas/InstantiateTemplateRequest"
7733
+ }
7734
+ }
7735
+ }
7736
+ },
7737
+ "responses": {
7738
+ "201": {
7739
+ "description": "Created",
7740
+ "content": {
7741
+ "application/json": {
7742
+ "schema": {
7743
+ "$ref": "#/components/schemas/InstantiateTemplateResponse"
7744
+ }
7745
+ }
7746
+ }
7747
+ },
7748
+ "404": {
7749
+ "description": "Not Found",
7750
+ "content": {
7751
+ "application/json": {
7752
+ "schema": {
7753
+ "$ref": "#/components/schemas/ProblemDetails"
7754
+ }
7755
+ }
7756
+ }
7757
+ }
7758
+ }
7759
+ }
7760
+ },
7703
7761
  "/v1/api/tenants": {
7704
7762
  "get": {
7705
7763
  "tags": [
@@ -12408,6 +12466,41 @@
12408
12466
  "additionalProperties": false,
12409
12467
  "description": "Response for POST /triggers/{id}/infer-schema"
12410
12468
  },
12469
+ "InstantiateTemplateRequest": {
12470
+ "type": "object",
12471
+ "properties": {
12472
+ "display_name": {
12473
+ "type": "string",
12474
+ "nullable": true
12475
+ },
12476
+ "metadata": {
12477
+ "$ref": "#/components/schemas/JsonNode"
12478
+ }
12479
+ },
12480
+ "additionalProperties": false
12481
+ },
12482
+ "InstantiateTemplateResponse": {
12483
+ "type": "object",
12484
+ "properties": {
12485
+ "agent_id": {
12486
+ "type": "string",
12487
+ "format": "uuid"
12488
+ },
12489
+ "name": {
12490
+ "type": "string",
12491
+ "nullable": true
12492
+ },
12493
+ "template_ref": {
12494
+ "type": "string",
12495
+ "nullable": true
12496
+ },
12497
+ "template_version": {
12498
+ "type": "string",
12499
+ "nullable": true
12500
+ }
12501
+ },
12502
+ "additionalProperties": false
12503
+ },
12411
12504
  "InviteMemberRequest": {
12412
12505
  "type": "object",
12413
12506
  "properties": {
@@ -14775,6 +14868,10 @@
14775
14868
  "type": "string",
14776
14869
  "format": "uuid"
14777
14870
  },
14871
+ "bundle_id": {
14872
+ "type": "string",
14873
+ "format": "uuid"
14874
+ },
14778
14875
  "thread_id": {
14779
14876
  "type": "string",
14780
14877
  "format": "uuid",
@@ -14788,10 +14885,24 @@
14788
14885
  "type": "string",
14789
14886
  "format": "date-time"
14790
14887
  },
14888
+ "started_at": {
14889
+ "type": "string",
14890
+ "format": "date-time",
14891
+ "nullable": true
14892
+ },
14791
14893
  "completed_at": {
14792
14894
  "type": "string",
14793
14895
  "format": "date-time",
14794
14896
  "nullable": true
14897
+ },
14898
+ "attempt_count": {
14899
+ "type": "integer",
14900
+ "format": "int32"
14901
+ },
14902
+ "current_attempt_no": {
14903
+ "type": "integer",
14904
+ "format": "int32",
14905
+ "nullable": true
14795
14906
  }
14796
14907
  },
14797
14908
  "additionalProperties": false
@@ -15358,6 +15469,31 @@
15358
15469
  },
15359
15470
  "additionalProperties": false
15360
15471
  },
15472
+ "TemplateCapabilityPreviewResponse": {
15473
+ "type": "object",
15474
+ "properties": {
15475
+ "capability_ref": {
15476
+ "type": "string",
15477
+ "nullable": true
15478
+ },
15479
+ "capability_version": {
15480
+ "type": "string",
15481
+ "nullable": true
15482
+ },
15483
+ "execution_binding": {
15484
+ "type": "string",
15485
+ "nullable": true
15486
+ },
15487
+ "required_credentials": {
15488
+ "type": "array",
15489
+ "items": {
15490
+ "type": "string"
15491
+ },
15492
+ "nullable": true
15493
+ }
15494
+ },
15495
+ "additionalProperties": false
15496
+ },
15361
15497
  "TemplateDetailResponse": {
15362
15498
  "type": "object",
15363
15499
  "properties": {
@@ -15396,6 +15532,23 @@
15396
15532
  },
15397
15533
  "nullable": true
15398
15534
  },
15535
+ "required_credentials": {
15536
+ "type": "array",
15537
+ "items": {
15538
+ "type": "string"
15539
+ },
15540
+ "nullable": true
15541
+ },
15542
+ "topology_preview": {
15543
+ "$ref": "#/components/schemas/TemplateTopologyPreviewResponse"
15544
+ },
15545
+ "capabilities": {
15546
+ "type": "array",
15547
+ "items": {
15548
+ "$ref": "#/components/schemas/TemplateCapabilityPreviewResponse"
15549
+ },
15550
+ "nullable": true
15551
+ },
15399
15552
  "default_policy_refs": {
15400
15553
  "nullable": true
15401
15554
  },
@@ -15461,6 +15614,16 @@
15461
15614
  },
15462
15615
  "nullable": true
15463
15616
  },
15617
+ "required_credentials": {
15618
+ "type": "array",
15619
+ "items": {
15620
+ "type": "string"
15621
+ },
15622
+ "nullable": true
15623
+ },
15624
+ "topology_preview": {
15625
+ "$ref": "#/components/schemas/TemplateTopologyPreviewResponse"
15626
+ },
15464
15627
  "default_policy_refs": {
15465
15628
  "nullable": true
15466
15629
  },
@@ -15470,6 +15633,24 @@
15470
15633
  },
15471
15634
  "additionalProperties": false
15472
15635
  },
15636
+ "TemplateTopologyPreviewResponse": {
15637
+ "type": "object",
15638
+ "properties": {
15639
+ "node_count": {
15640
+ "type": "integer",
15641
+ "format": "int32"
15642
+ },
15643
+ "edge_count": {
15644
+ "type": "integer",
15645
+ "format": "int32"
15646
+ },
15647
+ "entrypoint_count": {
15648
+ "type": "integer",
15649
+ "format": "int32"
15650
+ }
15651
+ },
15652
+ "additionalProperties": false
15653
+ },
15473
15654
  "TenantContextDto": {
15474
15655
  "type": "object",
15475
15656
  "properties": {
@@ -24,6 +24,7 @@ export interface Run {
24
24
  status: RunStatus;
25
25
  thread_id?: string;
26
26
  agent_id: string;
27
+ bundle_id?: string;
27
28
  agent_version_id?: string;
28
29
  tenant_id: string;
29
30
  workspace_id: string;
@@ -96,6 +97,48 @@ export interface RunInspectionResponse {
96
97
  events: Array<Record<string, unknown>>;
97
98
  }
98
99
 
100
+ export interface RunFailureRetentionItem {
101
+ failure_id: string;
102
+ failure_scope: string;
103
+ run_id: string;
104
+ attempt_id: string;
105
+ attempt_no: number;
106
+ agent_id?: string | null;
107
+ thread_id: string;
108
+ node_execution_id?: string | null;
109
+ operation_id?: string | null;
110
+ capability_ref?: string | null;
111
+ capability_version?: string | null;
112
+ execution_binding?: string | null;
113
+ source_kind: string;
114
+ ancestry_kind: string;
115
+ status: string;
116
+ error_code: string;
117
+ error_category: string;
118
+ is_retryable: boolean;
119
+ error_source: string;
120
+ provider_error_code?: string | null;
121
+ error_summary: string;
122
+ retried_from_node_execution_id?: string | null;
123
+ replayed_from_node_execution_id?: string | null;
124
+ can_retry: boolean;
125
+ retry_from_node_execution_id?: string | null;
126
+ can_replay: boolean;
127
+ replay_from_node_execution_id?: string | null;
128
+ failed_at: string;
129
+ created_at: string;
130
+ }
131
+
132
+ export interface RunFailureRetentionListResponse {
133
+ items: RunFailureRetentionItem[];
134
+ count: number;
135
+ }
136
+
137
+ export interface RunFailureRetentionDetailResponse {
138
+ failure: RunFailureRetentionItem;
139
+ payload?: unknown;
140
+ }
141
+
99
142
  export interface RunObservabilitySummaryResponse {
100
143
  workspace_id: string;
101
144
  agent_id?: string | null;
@@ -187,6 +230,27 @@ export class RunsModule {
187
230
  });
188
231
  }
189
232
 
233
+ async listFailures(params?: {
234
+ agent_id?: string;
235
+ capability_ref?: string;
236
+ error_category?: string;
237
+ retryable?: boolean;
238
+ from?: string;
239
+ to?: string;
240
+ limit?: number;
241
+ offset?: number;
242
+ }): Promise<APIResponse<RunFailureRetentionListResponse>> {
243
+ return this.client.GET<RunFailureRetentionListResponse>("/v1/api/runs/failures", {
244
+ params: { query: params },
245
+ });
246
+ }
247
+
248
+ async getFailure(failureId: string): Promise<APIResponse<RunFailureRetentionDetailResponse>> {
249
+ return this.client.GET<RunFailureRetentionDetailResponse>("/v1/api/runs/failures/{failureId}", {
250
+ params: { path: { failureId } },
251
+ });
252
+ }
253
+
190
254
  /**
191
255
  * List runs with optional filters.
192
256
  */
@@ -9,11 +9,23 @@ export interface AuthoringTemplateSummary {
9
9
  category: string;
10
10
  editability_mode: string;
11
11
  required_capability_refs: string[];
12
+ required_credentials: string[];
13
+ topology_preview: {
14
+ node_count: number;
15
+ edge_count: number;
16
+ entrypoint_count: number;
17
+ };
12
18
  default_policy_refs?: Record<string, unknown> | null;
13
19
  default_runtime_config_refs?: Record<string, unknown> | null;
14
20
  }
15
21
 
16
22
  export interface AuthoringTemplateDetail extends AuthoringTemplateSummary {
23
+ capabilities: Array<{
24
+ capability_ref: string;
25
+ capability_version: string;
26
+ execution_binding: string;
27
+ required_credentials: string[];
28
+ }>;
17
29
  base_agent_ir: Record<string, unknown>;
18
30
  }
19
31
 
@@ -22,6 +34,18 @@ export interface AuthoringTemplateListResponse {
22
34
  total: number;
23
35
  }
24
36
 
37
+ export interface InstantiateAuthoringTemplateRequest {
38
+ display_name?: string;
39
+ metadata?: Record<string, unknown> | null;
40
+ }
41
+
42
+ export interface InstantiateAuthoringTemplateResponse {
43
+ agent_id: string;
44
+ name: string;
45
+ template_ref: string;
46
+ template_version: string;
47
+ }
48
+
25
49
  export class TemplatesModule {
26
50
  constructor(private client: RawClient, private headers: () => Record<string, string>) {}
27
51
 
@@ -37,4 +61,15 @@ export class TemplatesModule {
37
61
  headers: this.headers(),
38
62
  });
39
63
  }
64
+
65
+ async instantiate(
66
+ templateRef: string,
67
+ body: InstantiateAuthoringTemplateRequest = {},
68
+ ): Promise<APIResponse<InstantiateAuthoringTemplateResponse>> {
69
+ return this.client.POST<InstantiateAuthoringTemplateResponse>("/v1/api/templates/{templateRef}/instantiate", {
70
+ params: { path: { templateRef } },
71
+ headers: this.headers(),
72
+ body,
73
+ });
74
+ }
40
75
  }