@agent-os-sdk/client 0.9.25 → 0.9.27

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 (65) hide show
  1. package/dist/generated/openapi.d.ts +82 -0
  2. package/dist/generated/openapi.d.ts.map +1 -1
  3. package/dist/modules/runs.d.ts.map +1 -1
  4. package/dist/modules/templates.d.ts +23 -0
  5. package/dist/modules/templates.d.ts.map +1 -1
  6. package/dist/modules/templates.js +7 -0
  7. package/package.json +2 -2
  8. package/src/client/AgentOsClient.ts +0 -294
  9. package/src/client/HttpRequestBuilder.ts +0 -115
  10. package/src/client/OperationContext.ts +0 -22
  11. package/src/client/OperationContextProvider.ts +0 -89
  12. package/src/client/auth.ts +0 -136
  13. package/src/client/config.ts +0 -100
  14. package/src/client/helpers.ts +0 -98
  15. package/src/client/pagination.ts +0 -218
  16. package/src/client/raw.ts +0 -609
  17. package/src/client/retry.ts +0 -150
  18. package/src/client/sanitize.ts +0 -31
  19. package/src/client/timeout.ts +0 -59
  20. package/src/errors/factory.ts +0 -140
  21. package/src/errors/index.ts +0 -365
  22. package/src/generated/client.ts +0 -32
  23. package/src/generated/index.ts +0 -2
  24. package/src/generated/openapi.ts +0 -12302
  25. package/src/generated/swagger.json +0 -16851
  26. package/src/index.ts +0 -131
  27. package/src/modules/a2a.ts +0 -64
  28. package/src/modules/agents.ts +0 -604
  29. package/src/modules/apiTokens.ts +0 -101
  30. package/src/modules/approvals.ts +0 -151
  31. package/src/modules/audit.ts +0 -145
  32. package/src/modules/auth.ts +0 -33
  33. package/src/modules/catalog.ts +0 -241
  34. package/src/modules/chatwoot.ts +0 -242
  35. package/src/modules/checkpoints.ts +0 -87
  36. package/src/modules/contracts.ts +0 -80
  37. package/src/modules/credentials.ts +0 -216
  38. package/src/modules/crons.ts +0 -115
  39. package/src/modules/datasets.ts +0 -142
  40. package/src/modules/evaluation.ts +0 -269
  41. package/src/modules/files.ts +0 -208
  42. package/src/modules/improvements.ts +0 -71
  43. package/src/modules/info.ts +0 -143
  44. package/src/modules/me.ts +0 -74
  45. package/src/modules/members.ts +0 -199
  46. package/src/modules/memberships.ts +0 -42
  47. package/src/modules/metaAgent.ts +0 -131
  48. package/src/modules/metrics.ts +0 -34
  49. package/src/modules/observability.ts +0 -28
  50. package/src/modules/playground.ts +0 -68
  51. package/src/modules/presets.ts +0 -246
  52. package/src/modules/prompts.ts +0 -147
  53. package/src/modules/roles.ts +0 -112
  54. package/src/modules/runs.ts +0 -878
  55. package/src/modules/store.ts +0 -65
  56. package/src/modules/templates.ts +0 -40
  57. package/src/modules/tenants.ts +0 -79
  58. package/src/modules/threads.ts +0 -343
  59. package/src/modules/tools.ts +0 -91
  60. package/src/modules/traces.ts +0 -133
  61. package/src/modules/triggers.ts +0 -357
  62. package/src/modules/usage.ts +0 -117
  63. package/src/modules/vectorStores.ts +0 -257
  64. package/src/modules/workspaces.ts +0 -216
  65. package/src/sse/client.ts +0 -179
package/src/index.ts DELETED
@@ -1,131 +0,0 @@
1
- /**
2
- * Agent OS SDK
3
- *
4
- * 100% Auto-Generated from OpenAPI + Custom Client with modules.
5
- *
6
- * @example Types (all come from backend automatically)
7
- * ```ts
8
- * import type { Schema } from "@agent-os-sdk/client";
9
- *
10
- * type Run = Schema<"RunDetailResponse">;
11
- * type Agent = Schema<"AgentDraftResponse">;
12
- * // Any schema from the backend is available!
13
- * ```
14
- *
15
- * @example Auto-Generated Client (openapi-fetch)
16
- * ```ts
17
- * import { createClient } from "@agent-os-sdk/client";
18
- *
19
- * const api = createClient({ baseUrl, headers });
20
- * const { data } = await api.POST("/v1/api/contracts/validate", { body: {...} });
21
- * ```
22
- *
23
- * @example Custom Client (ergonomic wrapper)
24
- * ```ts
25
- * import { AgentOsClient } from "@agent-os-sdk/client";
26
- *
27
- * const client = new AgentOsClient({ baseUrl, auth: {...} });
28
- * const { data } = await client.contracts.validate({...});
29
- * ```
30
- */
31
-
32
- // ============================================================
33
- // AUTO-GENERATED (100% from Swagger)
34
- // ============================================================
35
-
36
- // Client + types - ALL schemas available via Schema<"Name">
37
- export { createClient, type ClientOptions, type AgentOsClient as GeneratedClient, type Schema } from "./generated/client.js";
38
- export type { components, paths } from "./generated/openapi.js";
39
-
40
- // ============================================================
41
- // CUSTOM CLIENT (AgentOsClient with modules)
42
- // ============================================================
43
-
44
- export { AgentOsClient } from "./client/AgentOsClient.js";
45
- export type { AgentOsClientOptions, AuthProvider } from "./client/auth.js";
46
-
47
- // ============================================================
48
- // Errors
49
- // ============================================================
50
-
51
- export {
52
- AgentOsError, ConflictError, ForbiddenError, NetworkError, NotFoundError, RateLimitError,
53
- ServerError, TimeoutError, UnauthorizedError, ValidationError, isAuthError,
54
- isRetryableError
55
- } from "./errors/index.js";
56
-
57
- // ============================================================
58
- // Auth Hardening (Pedra Sólida)
59
- // ============================================================
60
-
61
- export { HttpRequestBuilder, httpRequestBuilder } from "./client/HttpRequestBuilder.js";
62
- export { createOperationContext } from "./client/OperationContext.js";
63
- export type { OperationContext } from "./client/OperationContext.js";
64
- export {
65
- AsyncLocalStorageContextProvider, DefaultContextProvider, ManualContextProvider
66
- } from "./client/OperationContextProvider.js";
67
- export type { OperationContextProvider } from "./client/OperationContextProvider.js";
68
- export { sanitizeHeader, sanitizeHeaders } from "./client/sanitize.js";
69
-
70
- // ============================================================
71
- // Utilities
72
- // ============================================================
73
-
74
- export {
75
- BACKGROUND_NETWORK_CONFIG, DEFAULT_NETWORK_CONFIG,
76
- INTERACTIVE_NETWORK_CONFIG, type NetworkConfig
77
- } from "./client/config.js";
78
- export {
79
- collectAll,
80
- getFirst, paginate, type CursorPaginatedResponse, type OffsetPaginatedResponse, type PaginateOptions, type PaginatedResponse,
81
- type PaginationParams
82
- } from "./client/pagination.js";
83
- export { withRetry } from "./client/retry.js";
84
- export { withTimeout } from "./client/timeout.js";
85
-
86
- // ============================================================
87
- // SSE
88
- // ============================================================
89
-
90
- export type { APIResponse } from "./client/raw.js";
91
- export type { SSEEvent, SSEOptions } from "./sse/client.js";
92
-
93
- // ============================================================
94
- // Modules
95
- // ============================================================
96
-
97
- export * from "./modules/agents.js";
98
- export * from "./modules/auth.js";
99
- export * from "./modules/chatwoot.js";
100
- export * from "./modules/catalog.js";
101
- export * from "./modules/contracts.js";
102
- export * from "./modules/credentials.js";
103
- export * from "./modules/datasets.js";
104
- export {
105
- EvaluationModule,
106
- type EvalDataset,
107
- type DatasetListResponse,
108
- type Experiment,
109
- type ExperimentResults,
110
- type ExperimentListResponse,
111
- type DatasetExample as EvaluationDatasetExample,
112
- type ExamplesListResponse,
113
- type ExampleData,
114
- type KpiAggregate,
115
- type KpiAggregateListResponse,
116
- type KpiAlert,
117
- type KpiAlertListResponse
118
- } from "./modules/evaluation.js";
119
- export * from "./modules/improvements.js";
120
- export * from "./modules/me.js";
121
- export * from "./modules/members.js";
122
- export * from "./modules/metaAgent.js";
123
- export * from "./modules/observability.js";
124
- export * from "./modules/presets.js";
125
- export * from "./modules/prompts.js";
126
- export * from "./modules/roles.js";
127
- export * from "./modules/runs.js";
128
- export * from "./modules/templates.js";
129
- export * from "./modules/triggers.js";
130
- export * from "./modules/usage.js";
131
- export * from "./modules/workspaces.js";
@@ -1,64 +0,0 @@
1
- /**
2
- * A2A Module - Fully Typed (Agent-to-Agent Protocol)
3
- */
4
-
5
- import type { RawClient, APIResponse } from "../client/raw.js";
6
-
7
- export interface JsonRpcRequest {
8
- jsonrpc: "2.0";
9
- method: string;
10
- params?: unknown;
11
- id?: string | number;
12
- }
13
-
14
- export interface JsonRpcResponse {
15
- jsonrpc: "2.0";
16
- result?: unknown;
17
- error?: {
18
- code: number;
19
- message: string;
20
- data?: unknown;
21
- };
22
- id?: string | number;
23
- }
24
-
25
- export interface A2aAgentCard {
26
- agent_id: string;
27
- name: string;
28
- description?: string;
29
- capabilities?: string[];
30
- endpoint: string;
31
- }
32
-
33
- export class A2aModule {
34
- constructor(private client: RawClient, private headers: () => Record<string, string>) { }
35
-
36
- /**
37
- * Send a JSON-RPC request to an agent.
38
- */
39
- async call(request: JsonRpcRequest): Promise<APIResponse<JsonRpcResponse>> {
40
- return this.client.POST<JsonRpcResponse>("/v1/api/a2a", {
41
- body: request,
42
- headers: this.headers(),
43
- });
44
- }
45
-
46
- /**
47
- * Get agent card (discovery).
48
- */
49
- async getAgentCard(agentId: string): Promise<APIResponse<A2aAgentCard>> {
50
- return this.client.GET<A2aAgentCard>("/v1/api/a2a/agents/{id}/card", {
51
- params: { path: { id: agentId } },
52
- headers: this.headers(),
53
- });
54
- }
55
-
56
- /**
57
- * List available A2A agents.
58
- */
59
- async listAgents(): Promise<APIResponse<{ items: A2aAgentCard[]; total: number }>> {
60
- return this.client.GET<{ items: A2aAgentCard[]; total: number }>("/v1/api/a2a/agents", {
61
- headers: this.headers(),
62
- });
63
- }
64
- }