@agent-os-sdk/client 0.9.25 → 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 (184) hide show
  1. package/package.json +15 -8
  2. package/src/generated/openapi.ts +82 -0
  3. package/src/generated/swagger.json +163 -0
  4. package/src/modules/templates.ts +35 -0
  5. package/dist/client/AgentOsClient.d.ts +0 -141
  6. package/dist/client/AgentOsClient.d.ts.map +0 -1
  7. package/dist/client/AgentOsClient.js +0 -250
  8. package/dist/client/HttpRequestBuilder.d.ts +0 -50
  9. package/dist/client/HttpRequestBuilder.d.ts.map +0 -1
  10. package/dist/client/HttpRequestBuilder.js +0 -83
  11. package/dist/client/OperationContext.d.ts +0 -19
  12. package/dist/client/OperationContext.d.ts.map +0 -1
  13. package/dist/client/OperationContext.js +0 -13
  14. package/dist/client/OperationContextProvider.d.ts +0 -54
  15. package/dist/client/OperationContextProvider.d.ts.map +0 -1
  16. package/dist/client/OperationContextProvider.js +0 -71
  17. package/dist/client/auth.d.ts +0 -100
  18. package/dist/client/auth.d.ts.map +0 -1
  19. package/dist/client/auth.js +0 -38
  20. package/dist/client/config.d.ts +0 -49
  21. package/dist/client/config.d.ts.map +0 -1
  22. package/dist/client/config.js +0 -62
  23. package/dist/client/helpers.d.ts +0 -63
  24. package/dist/client/helpers.d.ts.map +0 -1
  25. package/dist/client/helpers.js +0 -55
  26. package/dist/client/pagination.d.ts +0 -105
  27. package/dist/client/pagination.d.ts.map +0 -1
  28. package/dist/client/pagination.js +0 -117
  29. package/dist/client/raw.d.ts +0 -277
  30. package/dist/client/raw.d.ts.map +0 -1
  31. package/dist/client/raw.js +0 -337
  32. package/dist/client/retry.d.ts +0 -37
  33. package/dist/client/retry.d.ts.map +0 -1
  34. package/dist/client/retry.js +0 -108
  35. package/dist/client/sanitize.d.ts +0 -19
  36. package/dist/client/sanitize.d.ts.map +0 -1
  37. package/dist/client/sanitize.js +0 -28
  38. package/dist/client/timeout.d.ts +0 -26
  39. package/dist/client/timeout.d.ts.map +0 -1
  40. package/dist/client/timeout.js +0 -51
  41. package/dist/errors/factory.d.ts +0 -22
  42. package/dist/errors/factory.d.ts.map +0 -1
  43. package/dist/errors/factory.js +0 -101
  44. package/dist/errors/index.d.ts +0 -210
  45. package/dist/errors/index.d.ts.map +0 -1
  46. package/dist/errors/index.js +0 -283
  47. package/dist/generated/client.d.ts +0 -20
  48. package/dist/generated/client.d.ts.map +0 -1
  49. package/dist/generated/client.js +0 -15
  50. package/dist/generated/index.d.ts +0 -2
  51. package/dist/generated/index.d.ts.map +0 -1
  52. package/dist/generated/index.js +0 -1
  53. package/dist/generated/openapi.d.ts +0 -12302
  54. package/dist/generated/openapi.d.ts.map +0 -1
  55. package/dist/generated/openapi.js +0 -5
  56. package/dist/index.d.ts +0 -69
  57. package/dist/index.d.ts.map +0 -1
  58. package/dist/index.js +0 -81
  59. package/dist/modules/a2a.d.ts +0 -48
  60. package/dist/modules/a2a.d.ts.map +0 -1
  61. package/dist/modules/a2a.js +0 -37
  62. package/dist/modules/agents.d.ts +0 -346
  63. package/dist/modules/agents.d.ts.map +0 -1
  64. package/dist/modules/agents.js +0 -296
  65. package/dist/modules/apiTokens.d.ts +0 -62
  66. package/dist/modules/apiTokens.d.ts.map +0 -1
  67. package/dist/modules/apiTokens.js +0 -56
  68. package/dist/modules/approvals.d.ts +0 -75
  69. package/dist/modules/approvals.d.ts.map +0 -1
  70. package/dist/modules/approvals.js +0 -91
  71. package/dist/modules/audit.d.ts +0 -78
  72. package/dist/modules/audit.d.ts.map +0 -1
  73. package/dist/modules/audit.js +0 -94
  74. package/dist/modules/auth.d.ts +0 -28
  75. package/dist/modules/auth.d.ts.map +0 -1
  76. package/dist/modules/auth.js +0 -22
  77. package/dist/modules/builder.d.ts +0 -242
  78. package/dist/modules/builder.d.ts.map +0 -1
  79. package/dist/modules/builder.js +0 -248
  80. package/dist/modules/catalog.d.ts +0 -142
  81. package/dist/modules/catalog.d.ts.map +0 -1
  82. package/dist/modules/catalog.js +0 -136
  83. package/dist/modules/chatwoot.d.ts +0 -59
  84. package/dist/modules/chatwoot.d.ts.map +0 -1
  85. package/dist/modules/chatwoot.js +0 -200
  86. package/dist/modules/checkpoints.d.ts +0 -62
  87. package/dist/modules/checkpoints.d.ts.map +0 -1
  88. package/dist/modules/checkpoints.js +0 -48
  89. package/dist/modules/contracts.d.ts +0 -48
  90. package/dist/modules/contracts.d.ts.map +0 -1
  91. package/dist/modules/contracts.js +0 -25
  92. package/dist/modules/credentials.d.ts +0 -105
  93. package/dist/modules/credentials.d.ts.map +0 -1
  94. package/dist/modules/credentials.js +0 -135
  95. package/dist/modules/crons.d.ts +0 -73
  96. package/dist/modules/crons.d.ts.map +0 -1
  97. package/dist/modules/crons.js +0 -67
  98. package/dist/modules/datasets.d.ts +0 -80
  99. package/dist/modules/datasets.d.ts.map +0 -1
  100. package/dist/modules/datasets.js +0 -91
  101. package/dist/modules/evaluation.d.ts +0 -183
  102. package/dist/modules/evaluation.d.ts.map +0 -1
  103. package/dist/modules/evaluation.js +0 -108
  104. package/dist/modules/files.d.ts +0 -89
  105. package/dist/modules/files.d.ts.map +0 -1
  106. package/dist/modules/files.js +0 -133
  107. package/dist/modules/graphs.d.ts +0 -120
  108. package/dist/modules/graphs.d.ts.map +0 -1
  109. package/dist/modules/graphs.js +0 -69
  110. package/dist/modules/improvements.d.ts +0 -52
  111. package/dist/modules/improvements.d.ts.map +0 -1
  112. package/dist/modules/improvements.js +0 -27
  113. package/dist/modules/info.d.ts +0 -76
  114. package/dist/modules/info.d.ts.map +0 -1
  115. package/dist/modules/info.js +0 -93
  116. package/dist/modules/knowledge.d.ts +0 -91
  117. package/dist/modules/knowledge.d.ts.map +0 -1
  118. package/dist/modules/knowledge.js +0 -80
  119. package/dist/modules/me.d.ts +0 -58
  120. package/dist/modules/me.d.ts.map +0 -1
  121. package/dist/modules/me.js +0 -28
  122. package/dist/modules/members.d.ts +0 -124
  123. package/dist/modules/members.d.ts.map +0 -1
  124. package/dist/modules/members.js +0 -142
  125. package/dist/modules/memberships.d.ts +0 -25
  126. package/dist/modules/memberships.d.ts.map +0 -1
  127. package/dist/modules/memberships.js +0 -20
  128. package/dist/modules/metaAgent.d.ts +0 -95
  129. package/dist/modules/metaAgent.d.ts.map +0 -1
  130. package/dist/modules/metaAgent.js +0 -32
  131. package/dist/modules/metrics.d.ts +0 -20
  132. package/dist/modules/metrics.d.ts.map +0 -1
  133. package/dist/modules/metrics.js +0 -27
  134. package/dist/modules/observability.d.ts +0 -19
  135. package/dist/modules/observability.d.ts.map +0 -1
  136. package/dist/modules/observability.js +0 -14
  137. package/dist/modules/playground.d.ts +0 -42
  138. package/dist/modules/playground.d.ts.map +0 -1
  139. package/dist/modules/playground.js +0 -48
  140. package/dist/modules/presets.d.ts +0 -32
  141. package/dist/modules/presets.d.ts.map +0 -1
  142. package/dist/modules/presets.js +0 -199
  143. package/dist/modules/prompts.d.ts +0 -87
  144. package/dist/modules/prompts.d.ts.map +0 -1
  145. package/dist/modules/prompts.js +0 -87
  146. package/dist/modules/roles.d.ts +0 -64
  147. package/dist/modules/roles.d.ts.map +0 -1
  148. package/dist/modules/roles.js +0 -79
  149. package/dist/modules/runs.d.ts +0 -451
  150. package/dist/modules/runs.d.ts.map +0 -1
  151. package/dist/modules/runs.js +0 -536
  152. package/dist/modules/store.d.ts +0 -37
  153. package/dist/modules/store.d.ts.map +0 -1
  154. package/dist/modules/store.js +0 -48
  155. package/dist/modules/templates.d.ts +0 -28
  156. package/dist/modules/templates.d.ts.map +0 -1
  157. package/dist/modules/templates.js +0 -19
  158. package/dist/modules/tenants.d.ts +0 -49
  159. package/dist/modules/tenants.d.ts.map +0 -1
  160. package/dist/modules/tenants.js +0 -56
  161. package/dist/modules/threads.d.ts +0 -205
  162. package/dist/modules/threads.d.ts.map +0 -1
  163. package/dist/modules/threads.js +0 -225
  164. package/dist/modules/tools.d.ts +0 -62
  165. package/dist/modules/tools.d.ts.map +0 -1
  166. package/dist/modules/tools.js +0 -45
  167. package/dist/modules/traces.d.ts +0 -89
  168. package/dist/modules/traces.d.ts.map +0 -1
  169. package/dist/modules/traces.js +0 -65
  170. package/dist/modules/triggers.d.ts +0 -228
  171. package/dist/modules/triggers.d.ts.map +0 -1
  172. package/dist/modules/triggers.js +0 -176
  173. package/dist/modules/usage.d.ts +0 -85
  174. package/dist/modules/usage.d.ts.map +0 -1
  175. package/dist/modules/usage.js +0 -43
  176. package/dist/modules/vectorStores.d.ts +0 -100
  177. package/dist/modules/vectorStores.d.ts.map +0 -1
  178. package/dist/modules/vectorStores.js +0 -159
  179. package/dist/modules/workspaces.d.ts +0 -138
  180. package/dist/modules/workspaces.d.ts.map +0 -1
  181. package/dist/modules/workspaces.js +0 -121
  182. package/dist/sse/client.d.ts +0 -140
  183. package/dist/sse/client.d.ts.map +0 -1
  184. 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.25",
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;
@@ -11860,6 +11923,12 @@ export interface components {
11860
11923
  SupportedContractsResponse: {
11861
11924
  contract_ids?: string[] | null;
11862
11925
  };
11926
+ TemplateCapabilityPreviewResponse: {
11927
+ capability_ref?: string | null;
11928
+ capability_version?: string | null;
11929
+ execution_binding?: string | null;
11930
+ required_credentials?: string[] | null;
11931
+ };
11863
11932
  TemplateDetailResponse: {
11864
11933
  template_ref?: string | null;
11865
11934
  version?: string | null;
@@ -11869,6 +11938,9 @@ export interface components {
11869
11938
  category?: string | null;
11870
11939
  editability_mode?: string | null;
11871
11940
  required_capability_refs?: string[] | null;
11941
+ required_credentials?: string[] | null;
11942
+ topology_preview?: components["schemas"]["TemplateTopologyPreviewResponse"];
11943
+ capabilities?: components["schemas"]["TemplateCapabilityPreviewResponse"][] | null;
11872
11944
  default_policy_refs?: unknown;
11873
11945
  default_runtime_config_refs?: unknown;
11874
11946
  base_agent_ir?: unknown;
@@ -11887,9 +11959,19 @@ export interface components {
11887
11959
  category?: string | null;
11888
11960
  editability_mode?: string | null;
11889
11961
  required_capability_refs?: string[] | null;
11962
+ required_credentials?: string[] | null;
11963
+ topology_preview?: components["schemas"]["TemplateTopologyPreviewResponse"];
11890
11964
  default_policy_refs?: unknown;
11891
11965
  default_runtime_config_refs?: unknown;
11892
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
+ };
11893
11975
  TenantContextDto: {
11894
11976
  /** Format: uuid */
11895
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": {
@@ -15376,6 +15469,31 @@
15376
15469
  },
15377
15470
  "additionalProperties": false
15378
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
+ },
15379
15497
  "TemplateDetailResponse": {
15380
15498
  "type": "object",
15381
15499
  "properties": {
@@ -15414,6 +15532,23 @@
15414
15532
  },
15415
15533
  "nullable": true
15416
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
+ },
15417
15552
  "default_policy_refs": {
15418
15553
  "nullable": true
15419
15554
  },
@@ -15479,6 +15614,16 @@
15479
15614
  },
15480
15615
  "nullable": true
15481
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
+ },
15482
15627
  "default_policy_refs": {
15483
15628
  "nullable": true
15484
15629
  },
@@ -15488,6 +15633,24 @@
15488
15633
  },
15489
15634
  "additionalProperties": false
15490
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
+ },
15491
15654
  "TenantContextDto": {
15492
15655
  "type": "object",
15493
15656
  "properties": {
@@ -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
  }
@@ -1,141 +0,0 @@
1
- /**
2
- * Agent OS SDK - Main Client
3
- *
4
- * Fully typed API client for Agent OS platform.
5
- *
6
- * Two authentication modes:
7
- * - API Token (server-to-server): aosk_* tokens with embedded claims
8
- * - JWT (browser): Supabase JWT + X-Workspace-Id header
9
- *
10
- * @example
11
- * ```ts
12
- * // API Token (server-to-server)
13
- * const api = new AgentOsClient({
14
- * baseUrl: "https://api.agentos.io",
15
- * auth: { type: "api_token", apiKey: "aosk_live_xxx" }
16
- * });
17
- *
18
- * // JWT (browser)
19
- * const api = new AgentOsClient({
20
- * baseUrl: "https://api.agentos.io",
21
- * auth: {
22
- * type: "jwt",
23
- * getToken: () => supabase.auth.getSession().then(s => s.data.session?.access_token ?? ""),
24
- * getWorkspaceId: () => localStorage.getItem("agentos.workspaceId") ?? ""
25
- * }
26
- * });
27
- * ```
28
- */
29
- import { type AgentOsClientOptions } from "./auth.js";
30
- import { type RawClient } from "./raw.js";
31
- import { AgentsModule } from "../modules/agents.js";
32
- import { ChatwootModule } from "../modules/chatwoot.js";
33
- import { CredentialsModule } from "../modules/credentials.js";
34
- import { DatasetsModule } from "../modules/datasets.js";
35
- import { RolesModule } from "../modules/roles.js";
36
- import { MembersModule } from "../modules/members.js";
37
- import { RunsModule } from "../modules/runs.js";
38
- import { TenantsModule } from "../modules/tenants.js";
39
- import { ThreadsModule } from "../modules/threads.js";
40
- import { ToolsModule } from "../modules/tools.js";
41
- import { TriggersModule } from "../modules/triggers.js";
42
- import { WorkspacesModule } from "../modules/workspaces.js";
43
- import { A2aModule } from "../modules/a2a.js";
44
- import { ApiTokensModule } from "../modules/apiTokens.js";
45
- import { ApprovalsModule } from "../modules/approvals.js";
46
- import { AuditModule } from "../modules/audit.js";
47
- import { AuthModule } from "../modules/auth.js";
48
- import { CatalogModule } from "../modules/catalog.js";
49
- import { CheckpointsModule } from "../modules/checkpoints.js";
50
- import { ContractsModule } from "../modules/contracts.js";
51
- import { CronsModule } from "../modules/crons.js";
52
- import { EvaluationModule } from "../modules/evaluation.js";
53
- import { FilesModule } from "../modules/files.js";
54
- import { InfoModule } from "../modules/info.js";
55
- import { ImprovementsModule } from "../modules/improvements.js";
56
- import { MeModule } from "../modules/me.js";
57
- import { MembershipsModule } from "../modules/memberships.js";
58
- import { MetaAgentModule } from "../modules/metaAgent.js";
59
- import { MetricsModule } from "../modules/metrics.js";
60
- import { ObservabilityModule } from "../modules/observability.js";
61
- import { PlaygroundModule } from "../modules/playground.js";
62
- import { PresetsModule } from "../modules/presets.js";
63
- import { PromptsModule } from "../modules/prompts.js";
64
- import { StoreModule } from "../modules/store.js";
65
- import { TemplatesModule } from "../modules/templates.js";
66
- import { TracesModule } from "../modules/traces.js";
67
- import { UsageModule } from "../modules/usage.js";
68
- import { VectorStoresModule } from "../modules/vectorStores.js";
69
- export { isApiTokenAuth, isJwtAuth } from "./auth.js";
70
- export type { AgentOsClientOptions, AuthProvider } from "./auth.js";
71
- export declare class AgentOsClient {
72
- private readonly _client;
73
- private readonly _baseUrl;
74
- private readonly _auth;
75
- private readonly _customHeaders;
76
- readonly agents: AgentsModule;
77
- readonly runs: RunsModule;
78
- readonly threads: ThreadsModule;
79
- readonly tools: ToolsModule;
80
- readonly datasets: DatasetsModule;
81
- readonly roles: RolesModule;
82
- readonly triggers: TriggersModule;
83
- readonly credentials: CredentialsModule;
84
- readonly members: MembersModule;
85
- readonly tenants: TenantsModule;
86
- readonly workspaces: WorkspacesModule;
87
- readonly chatwoot: ChatwootModule;
88
- readonly prompts: PromptsModule;
89
- readonly traces: TracesModule;
90
- readonly files: FilesModule;
91
- readonly vectorStores: VectorStoresModule;
92
- readonly evaluation: EvaluationModule;
93
- readonly checkpoints: CheckpointsModule;
94
- readonly playground: PlaygroundModule;
95
- readonly crons: CronsModule;
96
- readonly store: StoreModule;
97
- readonly audit: AuditModule;
98
- readonly usage: UsageModule;
99
- readonly a2a: A2aModule;
100
- readonly me: MeModule;
101
- readonly info: InfoModule;
102
- readonly improvements: ImprovementsModule;
103
- readonly metrics: MetricsModule;
104
- readonly metaAgent: MetaAgentModule;
105
- readonly contracts: ContractsModule;
106
- readonly catalog: CatalogModule;
107
- readonly approvals: ApprovalsModule;
108
- readonly auth: AuthModule;
109
- readonly observability: ObservabilityModule;
110
- readonly templates: TemplatesModule;
111
- readonly experiments: {
112
- list: EvaluationModule["listExperiments"];
113
- get: EvaluationModule["getExperiment"];
114
- create: EvaluationModule["createExperiment"];
115
- };
116
- readonly apiTokens: ApiTokensModule;
117
- readonly memberships: MembershipsModule;
118
- readonly presets: PresetsModule;
119
- constructor(options: AgentOsClientOptions);
120
- /**
121
- * Validate auth configuration at construction time
122
- */
123
- private _validateAuth;
124
- /**
125
- * Resolve headers for each request (async)
126
- *
127
- * SECURITY INVARIANTS:
128
- * - JWT: Authorization + X-Workspace-Id (REQUIRED), NO X-Tenant-Id
129
- * - API Token: Authorization only, NO X-Workspace-Id, NO X-Tenant-Id
130
- */
131
- private _resolveHeaders;
132
- /**
133
- * Get resolved headers (for debugging/testing)
134
- */
135
- getHeadersAsync(): Promise<Record<string, string>>;
136
- /** Auth provider type */
137
- get authType(): "api_token" | "jwt";
138
- /** Raw HTTP client (use modules instead) */
139
- get raw(): RawClient;
140
- }
141
- //# sourceMappingURL=AgentOsClient.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"AgentOsClient.d.ts","sourceRoot":"","sources":["../../src/client/AgentOsClient.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AAEH,OAAO,EACH,KAAK,oBAAoB,EAK5B,MAAM,WAAW,CAAC;AACnB,OAAO,EAAmB,KAAK,SAAS,EAAE,MAAM,UAAU,CAAC;AAE3D,O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