@agent-os-sdk/client 0.4.0 → 0.4.1

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.
@@ -5,8 +5,8 @@
5
5
  * All types are automatically inferred from the backend Swagger specification.
6
6
  */
7
7
  import { type Client } from "openapi-fetch";
8
- import type { paths, components } from "../generated/openapi.js";
9
- export type { paths, components };
8
+ import type { components, paths } from "../generated/openapi.js";
9
+ export type { components, paths };
10
10
  export type ClientOptions = {
11
11
  baseUrl: string;
12
12
  headers?: Record<string, string>;
@@ -1 +1 @@
1
- {"version":3,"file":"raw.d.ts","sourceRoot":"","sources":["../../src/client/raw.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAqB,EAAE,KAAK,MAAM,EAAqB,MAAM,eAAe,CAAC;AAC7E,OAAO,KAAK,EAAE,KAAK,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAGjE,YAAY,EAAE,KAAK,EAAE,UAAU,EAAE,CAAC;AAElC,MAAM,MAAM,aAAa,GAAG;IACxB,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACjC,cAAc,CAAC,EAAE,MAAM,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;IACvD,mDAAmD;IACnD,KAAK,CAAC,EAAE,QAAQ,CAAC;CACpB,CAAC;AAEF;;;GAGG;AACH,MAAM,WAAW,QAAQ;IACrB,2EAA2E;IAC3E,SAAS,CAAC,EAAE,CAAC,OAAO,EAAE,kBAAkB,KAAK,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAClE,4CAA4C;IAC5C,UAAU,CAAC,EAAE,CAAC,OAAO,EAAE,mBAAmB,KAAK,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IACpE,yDAAyD;IACzD,OAAO,CAAC,EAAE,CAAC,OAAO,EAAE,gBA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AAM,MAAM,4BAA4B,GAAG,UAAU,CAAC,SAAS,CAAC,CAAC,8BAA8B,CAAC,CAAC;AACjG,MAAM,MAAM,uBAAuB,GAAG,UAAU,CAAC,SAAS,CAAC,CAAC,yBAAyB,CAAC,CAAC;AACvF,MAAM,MAAM,oBAAoB,GAAG,UAAU,CAAC,SAAS,CAAC,CAAC,sBAAsB,CAAC,CAAC;AAGjF,MAAM,MAAM,QAAQ,GAAG,UAAU,CAAC,SAAS,CAAC,CAAC,UAAU,CAAC,CAAC;AACzD,MAAM,MAAM,kBAAkB,GAAG,UAAU,CAAC,SAAS,CAAC,CAAC,oBAAoB,CAAC,CAAC;AAC7E,MAAM,MAAM,kBAAkB,GAAG,UAAU,CAAC,SAAS,CAAC,CAAC,oBAAoB,CAAC,CAAC;AAG7E,MAAM,MAAM,oBAAoB,GAAG,UAAU,CAAC,SAAS,CAAC,CAAC,sBAAsB,CAAC,CAAC;AAGjF,MAAM,MAAM,iBAAiB,GAAG,UAAU,CAAC,SAAS,CAAC,CAAC,mBAAmB,CAAC,CAAC;AAG3E,MAAM,MAAM,cAAc,GAAG,UAAU,CAAC,SAAS,CAAC,CAAC,gBAAgB,CAAC,CAAC"}
@@ -99,7 +99,7 @@ export function createRawClient(options) {
99
99
  code: "NETWORK_ERROR",
100
100
  message: fetchError instanceof Error ? fetchError.message : "Network request failed"
101
101
  },
102
- response: new Response(null, { status: 0 })
102
+ response: new Response(null, { status: 503, statusText: "Network Error" })
103
103
  };
104
104
  }
105
105
  const durationMs = Date.now() - startTime;
package/dist/index.d.ts CHANGED
@@ -35,49 +35,49 @@
35
35
  * ```
36
36
  */
37
37
  export { AgentOsClient, type AgentOsClientOptions, type AuthProvider } from "./client/AgentOsClient.js";
38
- export { type ApiTokenAuth, type JwtAuth, isApiTokenAuth, isJwtAuth, isBrowser, isApiToken, isJwtToken, } from "./client/auth.js";
39
- export { unwrap, toResult, SDKError, type PaginationParams, type PaginatedResponse, type Result, type Unwrapped, } from "./client/helpers.js";
40
- export { AgentOsError, type ErrorOptions, UnauthorizedError, ForbiddenError, NotFoundError, ConflictError, ValidationError, RateLimitError, ServerError, NetworkError, TimeoutError, type FieldError, isAgentOsError, isRetryableError, isAuthError, isClientError, isServerError, } from "./errors/index.js";
38
+ export { isApiToken, isApiTokenAuth, isBrowser, isJwtAuth, isJwtToken, type ApiTokenAuth, type JwtAuth } from "./client/auth.js";
39
+ export { SDKError, toResult, unwrap, type PaginatedResponse, type PaginationParams, type Result, type Unwrapped } from "./client/helpers.js";
40
+ export { AgentOsError, ConflictError, ForbiddenError, NetworkError, NotFoundError, RateLimitError, ServerError, TimeoutError, UnauthorizedError, ValidationError, isAgentOsError, isAuthError, isClientError, isRetryableError, isServerError, type ErrorOptions, type FieldError } from "./errors/index.js";
41
41
  export { createErrorFromResponse } from "./errors/factory.js";
42
- export { type RetryConfig, type NetworkConfig, DEFAULT_NETWORK_CONFIG, INTERACTIVE_NETWORK_CONFIG, BACKGROUND_NETWORK_CONFIG, mergeNetworkConfig, } from "./client/config.js";
43
- export { withRetry, type RetryContext, sleep } from "./client/retry.js";
44
- export { withTimeout, createTimeoutController } from "./client/timeout.js";
45
- export { paginate, collectAll, getFirst, type OffsetPaginatedResponse, type CursorPaginatedResponse, type OffsetParams, type CursorParams, type PaginateOptions, } from "./client/pagination.js";
46
- export { createRawClient, createTypedClient, type RawClient, type TypedClient, type ClientOptions, type APIResponse, type SDKHooks, type HookRequestContext, type HookResponseContext, type HookErrorContext, } from "./client/raw.js";
47
- export type { paths, components } from "./client/raw.js";
48
- export { AgentsModule, type Agent, type AgentVersion, type AgentListResponse, type AgentGraphResponse } from "./modules/agents.js";
49
- export { RunsModule, type Run, type RunStatus, type RunEvent, type RunListResponse, type RunEventsResponse, type CreateRunResponse, type RunEventsPollResponse, type RunEventDto, type FollowOptions, type FollowEvent } from "./modules/runs.js";
50
- export { ThreadsModule, type Thread, type ThreadState, type ThreadMessage, type ThreadRun, type ThreadListResponse, type ThreadMessagesResponse } from "./modules/threads.js";
51
- export { ToolsModule, type Tool, type ToolListResponse } from "./modules/tools.js";
52
- export { KnowledgeModule, type KnowledgeDataset, type KnowledgeSearchResponse } from "./modules/knowledge.js";
53
- export { TriggersModule, type Trigger, type TriggerListResponse } from "./modules/triggers.js";
54
- export { CredentialsModule, type Credential, type CredentialListResponse, type CredentialType } from "./modules/credentials.js";
42
+ export { BACKGROUND_NETWORK_CONFIG, DEFAULT_NETWORK_CONFIG, INTERACTIVE_NETWORK_CONFIG, mergeNetworkConfig, type NetworkConfig, type RetryConfig } from "./client/config.js";
43
+ export { sleep, withRetry, type RetryContext } from "./client/retry.js";
44
+ export { createTimeoutController, withTimeout } from "./client/timeout.js";
45
+ export { collectAll, getFirst, paginate, type CursorPaginatedResponse, type CursorParams, type OffsetPaginatedResponse, type OffsetParams, type PaginateOptions } from "./client/pagination.js";
46
+ export { createRawClient, createTypedClient, type APIResponse, type ClientOptions, type HookErrorContext, type HookRequestContext, type HookResponseContext, type RawClient, type SDKHooks, type TypedClient } from "./client/raw.js";
47
+ export type { components, paths } from "./client/raw.js";
48
+ export { AgentsModule, type Agent, type AgentGraphResponse, type AgentListResponse, type AgentVersion } from "./modules/agents.js";
55
49
  export { BuilderModule, type BuilderChatRequest, type BuilderChatResponse, type BuilderStreamEvent, type GraphUpdateAction } from "./modules/builder.js";
56
- export { MembersModule, type Member, type MemberListResponse } from "./modules/members.js";
50
+ export { CredentialsModule, type Credential, type CredentialListResponse, type CredentialType } from "./modules/credentials.js";
51
+ export { KnowledgeModule, type KnowledgeDataset, type KnowledgeSearchResponse } from "./modules/knowledge.js";
52
+ export { MembersModule, type Member, type MemberListResponse, type Role } from "./modules/members.js";
53
+ export { RunsModule, type CreateRunResponse, type FollowEvent, type FollowOptions, type Run, type RunEvent, type RunEventDto, type RunEventsPollResponse, type RunEventsResponse, type RunListResponse, type RunStatus } from "./modules/runs.js";
57
54
  export { TenantsModule, type Tenant } from "./modules/tenants.js";
55
+ export { ThreadsModule, type Thread, type ThreadListResponse, type ThreadMessage, type ThreadMessagesResponse, type ThreadRun, type ThreadState } from "./modules/threads.js";
56
+ export { ToolsModule, type Tool, type ToolListResponse } from "./modules/tools.js";
57
+ export { TriggersModule, type Trigger, type TriggerListResponse } from "./modules/triggers.js";
58
58
  export { WorkspacesModule, type Workspace, type WorkspaceListResponse } from "./modules/workspaces.js";
59
- export { PromptsModule, type Prompt, type PromptVersion, type PromptListResponse } from "./modules/prompts.js";
60
- export { TracesModule, type Trace, type Span, type TraceListResponse, type SpanData, type FeedbackRequest } from "./modules/traces.js";
61
- export { FilesModule, type StoredFile, type FileListResponse, type PresignedUpload } from "./modules/files.js";
62
- export { VectorStoresModule, type VectorStore, type VectorStoreListResponse, type VectorQueryResult } from "./modules/vectorStores.js";
63
- export { EvaluationModule, type EvalDataset, type Experiment, type ExampleData } from "./modules/evaluation.js";
59
+ export { A2aModule, type A2aAgentCard, type JsonRpcRequest, type JsonRpcResponse } from "./modules/a2a.js";
60
+ export { AuditModule, type AuditListResponse, type AuditLogEntry } from "./modules/audit.js";
61
+ export { CatalogModule, type CatalogVersions, type NodeCatalogResponse, type NodeDefinition, type ToolCatalogResponse, type ToolDefinition, type TriggerCatalogResponse, type TriggerTemplate } from "./modules/catalog.js";
64
62
  export { CheckpointsModule, type Checkpoint, type CheckpointsResponse } from "./modules/checkpoints.js";
65
- export { PlaygroundModule, type PlaygroundSession } from "./modules/playground.js";
66
63
  export { CronsModule, type CronJob, type CronJobListResponse } from "./modules/crons.js";
67
- export { DlqModule, type DlqMessage, type DlqListResponse } from "./modules/dlq.js";
68
- export { StoreModule, type StoreValue } from "./modules/store.js";
69
- export { AuditModule, type AuditLogEntry, type AuditListResponse } from "./modules/audit.js";
70
- export { UsageModule, type UsageResponse, type UsageQuota } from "./modules/usage.js";
64
+ export { DlqModule, type DlqListResponse, type DlqMessage } from "./modules/dlq.js";
65
+ export { EvaluationModule, type EvalDataset, type ExampleData, type Experiment } from "./modules/evaluation.js";
66
+ export { FilesModule, type FileListResponse, type PresignedUpload, type StoredFile } from "./modules/files.js";
67
+ export { GraphsModule, type GraphIntrospectionResult, type GraphValidationResult } from "./modules/graphs.js";
68
+ export { InfoModule, type ServerCapabilities, type ServerInfo } from "./modules/info.js";
71
69
  export { McpModule, type McpServer } from "./modules/mcp.js";
72
- export { A2aModule, type JsonRpcRequest, type JsonRpcResponse, type A2aAgentCard } from "./modules/a2a.js";
73
70
  export { MeModule, type MeResponse } from "./modules/me.js";
74
- export { InfoModule, type ServerInfo, type ServerCapabilities } from "./modules/info.js";
75
71
  export { MetricsModule, type MetricsResponse } from "./modules/metrics.js";
76
- export { GraphsModule, type GraphValidationResult, type GraphIntrospectionResult } from "./modules/graphs.js";
77
- export { CatalogModule, type CatalogVersions, type NodeCatalogResponse, type ToolCatalogResponse, type TriggerCatalogResponse, type NodeDefinition, type ToolDefinition, type TriggerTemplate } from "./modules/catalog.js";
78
- export { ApprovalsModule, type Approval, type ApprovalStatus, type ApprovalDecision, type ApprovalListResponse, type ApprovalStatusResponse } from "./modules/approvals.js";
72
+ export { PlaygroundModule, type PlaygroundSession } from "./modules/playground.js";
73
+ export { PromptsModule, type Prompt, type PromptListResponse, type PromptVersion } from "./modules/prompts.js";
74
+ export { StoreModule, type StoreValue } from "./modules/store.js";
75
+ export { TracesModule, type FeedbackRequest, type Span, type SpanData, type Trace, type TraceListResponse } from "./modules/traces.js";
76
+ export { UsageModule, type UsageQuota, type UsageResponse } from "./modules/usage.js";
77
+ export { VectorStoresModule, type VectorQueryResult, type VectorStore, type VectorStoreListResponse } from "./modules/vectorStores.js";
78
+ export { ApprovalsModule, type Approval, type ApprovalDecision, type ApprovalListResponse, type ApprovalStatus, type ApprovalStatusResponse } from "./modules/approvals.js";
79
79
  export { ApiTokensModule, type ApiToken, type ApiTokenSecret, type CreateTokenRequest, type RotateTokenResponse } from "./modules/apiTokens.js";
80
- export { MembershipsModule, type MembershipResponse, type EnsureMembershipRequest } from "./modules/memberships.js";
81
- export { streamSSE, parseSSE, type SSEEvent, type SSEOptions, type RunStreamEvent, type RunSSEEvent, type RunEventDto as SSERunEventDto } from "./sse/client.js";
82
- export type { Agent as AgentSchema, CreateAgentRequest, UpdateAgentRequest, AgentBundle, CreateAgentVersionRequest, RunResponse, RunDetailResponse, WaitRunResponse, BatchRunResponse, CancelRunResponse, ReplayRequest, ThreadRequest, ThreadSearchRequest, AddMessageRequest, CheckpointDetail, CheckpointListResponse, CreateCredentialRequest, UpdateCredentialRequest, CreateCronJobRequest, UpdateCronJobRequest, InviteMemberRequest, UpdateMemberRequest, CreatePromptRequest, CreatePromptVersionRequest, CreatePresignedUploadRequest, PresignedUploadResponse, VectorStoreResponse, VectorQueryRequest, VectorQueryResponse, CreateDatasetRequest, CreateExperimentRequest, ProblemDetails, } from "./client/raw.js";
80
+ export { MembershipsModule, type EnsureMembershipRequest, type MembershipResponse } from "./modules/memberships.js";
81
+ export { parseSSE, streamSSE, type RunSSEEvent, type RunStreamEvent, type SSEEvent, type SSEOptions, type RunEventDto as SSERunEventDto } from "./sse/client.js";
82
+ export type { AddMessageRequest, AgentBundle, Agent as AgentSchema, BatchRunResponse, CancelRunResponse, CheckpointDetail, CheckpointListResponse, CreateAgentRequest, CreateAgentVersionRequest, CreateCredentialRequest, CreateCronJobRequest, CreateDatasetRequest, CreateExperimentRequest, CreatePresignedUploadRequest, CreatePromptRequest, CreatePromptVersionRequest, InviteMemberRequest, PresignedUploadResponse, ProblemDetails, ReplayRequest, RunDetailResponse, RunResponse, ThreadRequest, ThreadSearchRequest, UpdateAgentRequest, UpdateCredentialRequest, UpdateCronJobRequest, UpdateMemberRequest, VectorQueryRequest, VectorQueryResponse, VectorStoreResponse, WaitRunResponse } from "./client/raw.js";
83
83
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmCG;AAKH,OAA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mB,EACnB,0BAA0B,EAE1B,mBAAmB,EAAE,uBAAuB,EAE5C,cAAc,EAAE,aAAa,EAAE,iBAAiB,EAEhD,WAAW,EAEX,aAAa,EACb,mBAAmB,EAAE,kBAAkB,EAAE,uBAAuB,EAAE,oBAAoB,EAAE,mBAAmB,EAAE,kBAAkB,EAC/H,mBAAmB,EAEnB,mBAAmB,EAAE,eAAe,EACvC,MAAM,iBAAiB,CAAC"}
package/dist/index.js CHANGED
@@ -39,74 +39,74 @@
39
39
  // ============================================================================
40
40
  export { AgentOsClient } from "./client/AgentOsClient.js";
41
41
  // Auth Provider Types
42
- export { isApiTokenAuth, isJwtAuth, isBrowser, isApiToken, isJwtToken, } from "./client/auth.js";
42
+ export { isApiToken, isApiTokenAuth, isBrowser, isJwtAuth, isJwtToken } from "./client/auth.js";
43
43
  // ============================================================================
44
44
  // Helpers & Utilities
45
45
  // ============================================================================
46
- export { unwrap, toResult, SDKError, } from "./client/helpers.js";
46
+ export { SDKError, toResult, unwrap } from "./client/helpers.js";
47
47
  // ============================================================================
48
48
  // Typed Errors (Enterprise)
49
49
  // ============================================================================
50
50
  export {
51
51
  // Base class
52
- AgentOsError,
52
+ AgentOsError, ConflictError, ForbiddenError, NetworkError, NotFoundError, RateLimitError, ServerError, TimeoutError,
53
53
  // Error classes
54
- UnauthorizedError, ForbiddenError, NotFoundError, ConflictError, ValidationError, RateLimitError, ServerError, NetworkError, TimeoutError,
54
+ UnauthorizedError, ValidationError,
55
55
  // Type guards
56
- isAgentOsError, isRetryableError, isAuthError, isClientError, isServerError, } from "./errors/index.js";
56
+ isAgentOsError, isAuthError, isClientError, isRetryableError, isServerError } from "./errors/index.js";
57
57
  export { createErrorFromResponse } from "./errors/factory.js";
58
58
  // ============================================================================
59
59
  // Network Configuration
60
60
  // ============================================================================
61
- export { DEFAULT_NETWORK_CONFIG, INTERACTIVE_NETWORK_CONFIG, BACKGROUND_NETWORK_CONFIG, mergeNetworkConfig, } from "./client/config.js";
61
+ export { BACKGROUND_NETWORK_CONFIG, DEFAULT_NETWORK_CONFIG, INTERACTIVE_NETWORK_CONFIG, mergeNetworkConfig } from "./client/config.js";
62
62
  // ============================================================================
63
63
  // Retry & Timeout Utilities
64
64
  // ============================================================================
65
- export { withRetry, sleep } from "./client/retry.js";
66
- export { withTimeout, createTimeoutController } from "./client/timeout.js";
65
+ export { sleep, withRetry } from "./client/retry.js";
66
+ export { createTimeoutController, withTimeout } from "./client/timeout.js";
67
67
  // ============================================================================
68
68
  // Pagination Utilities
69
69
  // ============================================================================
70
- export { paginate, collectAll, getFirst, } from "./client/pagination.js";
70
+ export { collectAll, getFirst, paginate } from "./client/pagination.js";
71
71
  // ============================================================================
72
72
  // Raw Client & Core Types
73
73
  // ============================================================================
74
- export { createRawClient, createTypedClient, } from "./client/raw.js";
74
+ export { createRawClient, createTypedClient } from "./client/raw.js";
75
75
  // ============================================================================
76
76
  // Module Classes
77
77
  // ============================================================================
78
78
  // Core modules
79
79
  export { AgentsModule } from "./modules/agents.js";
80
+ export { BuilderModule } from "./modules/builder.js";
81
+ export { CredentialsModule } from "./modules/credentials.js";
82
+ export { KnowledgeModule } from "./modules/knowledge.js";
83
+ export { MembersModule } from "./modules/members.js";
80
84
  export { RunsModule } from "./modules/runs.js";
85
+ export { TenantsModule } from "./modules/tenants.js";
81
86
  export { ThreadsModule } from "./modules/threads.js";
82
87
  export { ToolsModule } from "./modules/tools.js";
83
- export { KnowledgeModule } from "./modules/knowledge.js";
84
88
  export { TriggersModule } from "./modules/triggers.js";
85
- export { CredentialsModule } from "./modules/credentials.js";
86
- export { BuilderModule } from "./modules/builder.js";
87
- export { MembersModule } from "./modules/members.js";
88
- export { TenantsModule } from "./modules/tenants.js";
89
89
  export { WorkspacesModule } from "./modules/workspaces.js";
90
90
  // Platform modules
91
- export { PromptsModule } from "./modules/prompts.js";
92
- export { TracesModule } from "./modules/traces.js";
93
- export { FilesModule } from "./modules/files.js";
94
- export { VectorStoresModule } from "./modules/vectorStores.js";
95
- export { EvaluationModule } from "./modules/evaluation.js";
91
+ export { A2aModule } from "./modules/a2a.js";
92
+ export { AuditModule } from "./modules/audit.js";
93
+ export { CatalogModule } from "./modules/catalog.js";
96
94
  export { CheckpointsModule } from "./modules/checkpoints.js";
97
- export { PlaygroundModule } from "./modules/playground.js";
98
95
  export { CronsModule } from "./modules/crons.js";
99
96
  export { DlqModule } from "./modules/dlq.js";
100
- export { StoreModule } from "./modules/store.js";
101
- export { AuditModule } from "./modules/audit.js";
102
- export { UsageModule } from "./modules/usage.js";
97
+ export { EvaluationModule } from "./modules/evaluation.js";
98
+ export { FilesModule } from "./modules/files.js";
99
+ export { GraphsModule } from "./modules/graphs.js";
100
+ export { InfoModule } from "./modules/info.js";
103
101
  export { McpModule } from "./modules/mcp.js";
104
- export { A2aModule } from "./modules/a2a.js";
105
102
  export { MeModule } from "./modules/me.js";
106
- export { InfoModule } from "./modules/info.js";
107
103
  export { MetricsModule } from "./modules/metrics.js";
108
- export { GraphsModule } from "./modules/graphs.js";
109
- export { CatalogModule } from "./modules/catalog.js";
104
+ export { PlaygroundModule } from "./modules/playground.js";
105
+ export { PromptsModule } from "./modules/prompts.js";
106
+ export { StoreModule } from "./modules/store.js";
107
+ export { TracesModule } from "./modules/traces.js";
108
+ export { UsageModule } from "./modules/usage.js";
109
+ export { VectorStoresModule } from "./modules/vectorStores.js";
110
110
  // Approvals is real (has backend implementation)
111
111
  export { ApprovalsModule } from "./modules/approvals.js";
112
112
  export { ApiTokensModule } from "./modules/apiTokens.js";
@@ -114,4 +114,4 @@ export { MembershipsModule } from "./modules/memberships.js";
114
114
  // ============================================================================
115
115
  // SSE Streaming
116
116
  // ============================================================================
117
- export { streamSSE, parseSSE } from "./sse/client.js";
117
+ export { parseSSE, streamSSE } from "./sse/client.js";
@@ -33,10 +33,16 @@ export type CatalogVersions = {
33
33
  tools: string;
34
34
  triggers: string;
35
35
  };
36
+ export type ChatHistoryMessage = {
37
+ role: 'user' | 'assistant';
38
+ content: string;
39
+ };
36
40
  export type BuilderChatRequest = {
37
41
  message: string;
38
42
  current_graph_spec?: Record<string, unknown>;
39
43
  thread_id?: string;
44
+ /** Previous conversation history for context */
45
+ history?: ChatHistoryMessage[];
40
46
  /** Catalog versions to use for validation */
41
47
  catalog_versions?: CatalogVersions;
42
48
  /** Combined hash of all catalogs for integrity */
@@ -1 +1 @@
1
- {"version":3,"file":"builder.d.ts","sourceRoot":"","sources":["../../src/modules/builder.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAe,MAAM,kBAAkB,CAAC;AAC/D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAEnD,MAAM,MAAM,eAAe,GAAG;IAC1B,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG;IAC7B,OAAO,EAAE,MAAM,CAAC;IAChB,kBAAkB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC7C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,6CAA6C;IAC7C,gBAAgB,CAAC,EAAE,eAAe,CAAC;IACnC,kDAAkD;IAClD,WAAW,CAAC,EAAE,MAAM,CAAC;CACxB,CAAC;AAEF,MAAM,MAAM,iBAAiB,GAAG;IAC5B,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACrC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,MAAM,MAAM,kBAAkB,GACxB;IAAE,IAAI,EAAE,SAAS,CAAC;IAAC,IAAI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M,CAAA;KAAE,CAAA;CAAE,GAC7F;IAAE,IAAI,EAAE,OAAO,CAAC;IAAC,IAAI,EAAE;QAAE,KAAK,EAAE,MAAM,CAAA;KAAE,CAAA;CAAE,CAAC;AAEjD,MAAM,MAAM,mBAAmB,GAAG;IAC9B,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,iBAAiB,EAAE,CAAC;IAC7B,SAAS,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF,qBAAa,aAAa;IACV,OAAO,CAAC,MAAM;gBAAN,MAAM,EAAE,SAAS;IAErC;;;;;OAKG;IACI,IAAI,CACP,OAAO,EAAE,MAAM,EACf,OAAO,EAAE,kBAAkB,EAC3B,OAAO,CAAC,EAAE,UAAU,GACrB,cAAc,CAAC,kBAAkB,CAAC;IAyDrC;;;;OAIG;IACG,QAAQ,CACV,OAAO,EAAE,MAAM,EACf,OAAO,EAAE,kBAAkB,GAC5B,OAAO,CAAC,mBAAmB,CAAC;IAgB/B;;OAEG;IACG,WAAW,CACb,OAAO,EAAE,MAAM,EACf,OAAO,EAAE,kBAAkB,GAC5B,OAAO,CAAC,mBAAmB,CAAC;CAqBlC"}
@@ -6,8 +6,8 @@
6
6
  * - list* for collections
7
7
  * - create*, update*, delete* for mutations (NOT remove!)
8
8
  */
9
- import type { RawClient, APIResponse } from "../client/raw.js";
10
- import type { PaginationParams, PaginatedResponse } from "../client/helpers.js";
9
+ import type { PaginatedResponse, PaginationParams } from "../client/helpers.js";
10
+ import type { APIResponse, RawClient } from "../client/raw.js";
11
11
  export interface Member {
12
12
  id: string;
13
13
  tenant_id: string;
@@ -22,6 +22,14 @@ export interface Member {
22
22
  created_at: string;
23
23
  updated_at: string;
24
24
  }
25
+ export interface Role {
26
+ id: string;
27
+ name: string;
28
+ is_system: boolean;
29
+ permissions?: string[];
30
+ created_at?: string;
31
+ members_count?: number;
32
+ }
25
33
  export interface MemberInviteResponse {
26
34
  member_id: string;
27
35
  invite_token?: string;
@@ -44,6 +52,40 @@ export declare class MembersModule {
44
52
  * Get a member by ID.
45
53
  */
46
54
  get(memberId: string): Promise<APIResponse<Member>>;
55
+ /**
56
+ * List all roles in the tenant.
57
+ */
58
+ listRoles(): Promise<APIResponse<{
59
+ items: Role[];
60
+ }>>;
61
+ /**
62
+ * Get a role by ID.
63
+ */
64
+ getRole(roleId: string): Promise<APIResponse<Role>>;
65
+ /**
66
+ * Create a new custom role.
67
+ */
68
+ createRole(body: {
69
+ name: string;
70
+ permissions?: string[];
71
+ }): Promise<APIResponse<Role>>;
72
+ /**
73
+ * Update a custom role.
74
+ */
75
+ updateRole(roleId: string, body: {
76
+ name?: string;
77
+ permissions?: string[];
78
+ }): Promise<APIResponse<Role>>;
79
+ /**
80
+ * Delete a custom role.
81
+ */
82
+ deleteRole(roleId: string): Promise<APIResponse<void>>;
83
+ /**
84
+ * List all available system permissions.
85
+ */
86
+ listPermissions(): Promise<APIResponse<{
87
+ items: string[];
88
+ }>>;
47
89
  /**
48
90
  * Invite a new member.
49
91
  */
@@ -78,5 +120,11 @@ export declare class MembersModule {
78
120
  * This is used by the frontend for onboarding.
79
121
  */
80
122
  ensure(tenantId?: string): Promise<APIResponse<Member>>;
123
+ /**
124
+ * Seed default permissions (Dev only)
125
+ */
126
+ seedDefaults(): Promise<APIResponse<{
127
+ message: string;
128
+ }>>;
81
129
  }
82
130
  //# sourceMappingURL=members.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"members.d.ts","sourceRoot":"","sources":["../../src/modules/members.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC/D,OAAO,KAAK,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAEhF,MAAM,WAAW,MAAM;IACnB,EAAE,EAAE,MAAM,CAAC;IACX,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,MAAM,CAAC;IACj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AC,CAAC;IAO7D;;OAEG;IACG,YAAY,IAAI,OAAO,CAAC,WAAW,CAAC;QAAE,OAAO,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;CAKlE"}
@@ -31,6 +31,59 @@ export class MembersModule {
31
31
  headers: this.headers(),
32
32
  });
33
33
  }
34
+ /**
35
+ * List all roles in the tenant.
36
+ */
37
+ async listRoles() {
38
+ return this.client.GET("/v1/api/roles", {
39
+ headers: this.headers(),
40
+ });
41
+ }
42
+ /**
43
+ * Get a role by ID.
44
+ */
45
+ async getRole(roleId) {
46
+ return this.client.GET("/v1/api/roles/{id}", {
47
+ params: { path: { id: roleId } },
48
+ headers: this.headers(),
49
+ });
50
+ }
51
+ /**
52
+ * Create a new custom role.
53
+ */
54
+ async createRole(body) {
55
+ return this.client.POST("/v1/api/roles", {
56
+ body,
57
+ headers: this.headers(),
58
+ });
59
+ }
60
+ /**
61
+ * Update a custom role.
62
+ */
63
+ async updateRole(roleId, body) {
64
+ return this.client.PUT("/v1/api/roles/{id}", {
65
+ params: { path: { id: roleId } },
66
+ body,
67
+ headers: this.headers(),
68
+ });
69
+ }
70
+ /**
71
+ * Delete a custom role.
72
+ */
73
+ async deleteRole(roleId) {
74
+ return this.client.DELETE("/v1/api/roles/{id}", {
75
+ params: { path: { id: roleId } },
76
+ headers: this.headers(),
77
+ });
78
+ }
79
+ /**
80
+ * List all available system permissions.
81
+ */
82
+ async listPermissions() {
83
+ return this.client.GET("/v1/api/roles/permissions", {
84
+ headers: this.headers(),
85
+ });
86
+ }
34
87
  /**
35
88
  * Invite a new member.
36
89
  */
@@ -84,4 +137,12 @@ export class MembersModule {
84
137
  headers: this.headers(),
85
138
  });
86
139
  }
140
+ /**
141
+ * Seed default permissions (Dev only)
142
+ */
143
+ async seedDefaults() {
144
+ return this.client.POST("/v1/api/roles/seed-defaults", {
145
+ headers: this.headers(),
146
+ });
147
+ }
87
148
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agent-os-sdk/client",
3
- "version": "0.4.0",
3
+ "version": "0.4.1",
4
4
  "description": "Official TypeScript SDK for Agent OS platform",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
package/src/client/raw.ts CHANGED
@@ -5,11 +5,11 @@
5
5
  * All types are automatically inferred from the backend Swagger specification.
6
6
  */
7
7
 
8
- import createClient, { type Client, type FetchOptions } from "openapi-fetch";
9
- import type { paths, components } from "../generated/openapi.js";
8
+ import createClient, { type Client } from "openapi-fetch";
9
+ import type { components, paths } from "../generated/openapi.js";
10
10
 
11
11
  // Re-export types for external use
12
- export type { paths, components };
12
+ export type { components, paths };
13
13
 
14
14
  export type ClientOptions = {
15
15
  baseUrl: string;
@@ -202,7 +202,7 @@ export function createRawClient(options: ClientOptions) {
202
202
  code: "NETWORK_ERROR",
203
203
  message: fetchError instanceof Error ? fetchError.message : "Network request failed"
204
204
  },
205
- response: new Response(null, { status: 0 })
205
+ response: new Response(null, { status: 503, statusText: "Network Error" })
206
206
  };
207
207
  }
208
208
 
package/src/index.ts CHANGED
@@ -42,26 +42,16 @@ export { AgentOsClient, type AgentOsClientOptions, type AuthProvider } from "./c
42
42
 
43
43
  // Auth Provider Types
44
44
  export {
45
- type ApiTokenAuth,
46
- type JwtAuth,
47
- isApiTokenAuth,
48
- isJwtAuth,
49
- isBrowser,
50
- isApiToken,
51
- isJwtToken,
45
+ isApiToken, isApiTokenAuth, isBrowser, isJwtAuth, isJwtToken, type ApiTokenAuth,
46
+ type JwtAuth
52
47
  } from "./client/auth.js";
53
48
 
54
49
  // ============================================================================
55
50
  // Helpers & Utilities
56
51
  // ============================================================================
57
52
  export {
58
- unwrap,
59
- toResult,
60
- SDKError,
61
- type PaginationParams,
62
- type PaginatedResponse,
63
- type Result,
64
- type Unwrapped,
53
+ SDKError, toResult, unwrap, type PaginatedResponse, type PaginationParams, type Result,
54
+ type Unwrapped
65
55
  } from "./client/helpers.js";
66
56
 
67
57
  // ============================================================================
@@ -69,26 +59,15 @@ export {
69
59
  // ============================================================================
70
60
  export {
71
61
  // Base class
72
- AgentOsError,
73
- type ErrorOptions,
62
+ AgentOsError, ConflictError, ForbiddenError, NetworkError, NotFoundError, RateLimitError,
63
+ ServerError, TimeoutError,
74
64
  // Error classes
75
- UnauthorizedError,
76
- ForbiddenError,
77
- NotFoundError,
78
- ConflictError,
79
- ValidationError,
80
- RateLimitError,
81
- ServerError,
82
- NetworkError,
83
- TimeoutError,
84
- // Field errors
85
- type FieldError,
65
+ UnauthorizedError, ValidationError,
86
66
  // Type guards
87
- isAgentOsError,
88
- isRetryableError,
89
- isAuthError,
90
- isClientError,
91
- isServerError,
67
+ isAgentOsError, isAuthError,
68
+ isClientError, isRetryableError, isServerError, type ErrorOptions,
69
+ // Field errors
70
+ type FieldError
92
71
  } from "./errors/index.js";
93
72
 
94
73
  export { createErrorFromResponse } from "./errors/factory.js";
@@ -97,32 +76,22 @@ export { createErrorFromResponse } from "./errors/factory.js";
97
76
  // Network Configuration
98
77
  // ============================================================================
99
78
  export {
100
- type RetryConfig,
101
- type NetworkConfig,
102
- DEFAULT_NETWORK_CONFIG,
103
- INTERACTIVE_NETWORK_CONFIG,
104
- BACKGROUND_NETWORK_CONFIG,
105
- mergeNetworkConfig,
79
+ BACKGROUND_NETWORK_CONFIG, DEFAULT_NETWORK_CONFIG,
80
+ INTERACTIVE_NETWORK_CONFIG, mergeNetworkConfig, type NetworkConfig, type RetryConfig
106
81
  } from "./client/config.js";
107
82
 
108
83
  // ============================================================================
109
84
  // Retry & Timeout Utilities
110
85
  // ============================================================================
111
- export { withRetry, type RetryContext, sleep } from "./client/retry.js";
112
- export { withTimeout, createTimeoutController } from "./client/timeout.js";
86
+ export { sleep, withRetry, type RetryContext } from "./client/retry.js";
87
+ export { createTimeoutController, withTimeout } from "./client/timeout.js";
113
88
 
114
89
  // ============================================================================
115
90
  // Pagination Utilities
116
91
  // ============================================================================
117
92
  export {
118
- paginate,
119
93
  collectAll,
120
- getFirst,
121
- type OffsetPaginatedResponse,
122
- type CursorPaginatedResponse,
123
- type OffsetParams,
124
- type CursorParams,
125
- type PaginateOptions,
94
+ getFirst, paginate, type CursorPaginatedResponse, type CursorParams, type OffsetPaginatedResponse, type OffsetParams, type PaginateOptions
126
95
  } from "./client/pagination.js";
127
96
 
128
97
 
@@ -131,116 +100,98 @@ export {
131
100
  // ============================================================================
132
101
  export {
133
102
  createRawClient,
134
- createTypedClient,
135
- type RawClient,
136
- type TypedClient,
137
- type ClientOptions,
138
- type APIResponse,
103
+ createTypedClient, type APIResponse, type ClientOptions, type HookErrorContext, type HookRequestContext,
104
+ type HookResponseContext, type RawClient,
139
105
  // SDK Hooks for observability (OTEL, Sentry, etc.)
140
- type SDKHooks,
141
- type HookRequestContext,
142
- type HookResponseContext,
143
- type HookErrorContext,
106
+ type SDKHooks, type TypedClient
144
107
  } from "./client/raw.js";
145
108
 
146
109
  // Export OpenAPI types
147
- export type { paths, components } from "./client/raw.js";
110
+ export type { components, paths } from "./client/raw.js";
148
111
 
149
112
  // ============================================================================
150
113
  // Module Classes
151
114
  // ============================================================================
152
115
 
153
116
  // Core modules
154
- export { AgentsModule, type Agent, type AgentVersion, type AgentListResponse, type AgentGraphResponse } from "./modules/agents.js";
155
- export { RunsModule, type Run, type RunStatus, type RunEvent, type RunListResponse, type RunEventsResponse, type CreateRunResponse, type RunEventsPollResponse, type RunEventDto, type FollowOptions, type FollowEvent } from "./modules/runs.js";
156
- export { ThreadsModule, type Thread, type ThreadState, type ThreadMessage, type ThreadRun, type ThreadListResponse, type ThreadMessagesResponse } from "./modules/threads.js";
157
- export { ToolsModule, type Tool, type ToolListResponse } from "./modules/tools.js";
158
- export { KnowledgeModule, type KnowledgeDataset, type KnowledgeSearchResponse } from "./modules/knowledge.js";
159
- export { TriggersModule, type Trigger, type TriggerListResponse } from "./modules/triggers.js";
160
- export { CredentialsModule, type Credential, type CredentialListResponse, type CredentialType } from "./modules/credentials.js";
117
+ export { AgentsModule, type Agent, type AgentGraphResponse, type AgentListResponse, type AgentVersion } from "./modules/agents.js";
161
118
  export { BuilderModule, type BuilderChatRequest, type BuilderChatResponse, type BuilderStreamEvent, type GraphUpdateAction } from "./modules/builder.js";
162
- export { MembersModule, type Member, type MemberListResponse } from "./modules/members.js";
119
+ export { CredentialsModule, type Credential, type CredentialListResponse, type CredentialType } from "./modules/credentials.js";
120
+ export { KnowledgeModule, type KnowledgeDataset, type KnowledgeSearchResponse } from "./modules/knowledge.js";
121
+ export { MembersModule, type Member, type MemberListResponse, type Role } from "./modules/members.js";
122
+ export { RunsModule, type CreateRunResponse, type FollowEvent, type FollowOptions, type Run, type RunEvent, type RunEventDto, type RunEventsPollResponse, type RunEventsResponse, type RunListResponse, type RunStatus } from "./modules/runs.js";
163
123
  export { TenantsModule, type Tenant } from "./modules/tenants.js";
124
+ export { ThreadsModule, type Thread, type ThreadListResponse, type ThreadMessage, type ThreadMessagesResponse, type ThreadRun, type ThreadState } from "./modules/threads.js";
125
+ export { ToolsModule, type Tool, type ToolListResponse } from "./modules/tools.js";
126
+ export { TriggersModule, type Trigger, type TriggerListResponse } from "./modules/triggers.js";
164
127
  export { WorkspacesModule, type Workspace, type WorkspaceListResponse } from "./modules/workspaces.js";
165
128
 
166
129
  // Platform modules
167
- export { PromptsModule, type Prompt, type PromptVersion, type PromptListResponse } from "./modules/prompts.js";
168
- export { TracesModule, type Trace, type Span, type TraceListResponse, type SpanData, type FeedbackRequest } from "./modules/traces.js";
169
- export { FilesModule, type StoredFile, type FileListResponse, type PresignedUpload } from "./modules/files.js";
170
- export { VectorStoresModule, type VectorStore, type VectorStoreListResponse, type VectorQueryResult } from "./modules/vectorStores.js";
171
- export { EvaluationModule, type EvalDataset, type Experiment, type ExampleData } from "./modules/evaluation.js";
130
+ export { A2aModule, type A2aAgentCard, type JsonRpcRequest, type JsonRpcResponse } from "./modules/a2a.js";
131
+ export { AuditModule, type AuditListResponse, type AuditLogEntry } from "./modules/audit.js";
132
+ export { CatalogModule, type CatalogVersions, type NodeCatalogResponse, type NodeDefinition, type ToolCatalogResponse, type ToolDefinition, type TriggerCatalogResponse, type TriggerTemplate } from "./modules/catalog.js";
172
133
  export { CheckpointsModule, type Checkpoint, type CheckpointsResponse } from "./modules/checkpoints.js";
173
- export { PlaygroundModule, type PlaygroundSession } from "./modules/playground.js";
174
134
  export { CronsModule, type CronJob, type CronJobListResponse } from "./modules/crons.js";
175
- export { DlqModule, type DlqMessage, type DlqListResponse } from "./modules/dlq.js";
176
- export { StoreModule, type StoreValue } from "./modules/store.js";
177
- export { AuditModule, type AuditLogEntry, type AuditListResponse } from "./modules/audit.js";
178
- export { UsageModule, type UsageResponse, type UsageQuota } from "./modules/usage.js";
135
+ export { DlqModule, type DlqListResponse, type DlqMessage } from "./modules/dlq.js";
136
+ export { EvaluationModule, type EvalDataset, type ExampleData, type Experiment } from "./modules/evaluation.js";
137
+ export { FilesModule, type FileListResponse, type PresignedUpload, type StoredFile } from "./modules/files.js";
138
+ export { GraphsModule, type GraphIntrospectionResult, type GraphValidationResult } from "./modules/graphs.js";
139
+ export { InfoModule, type ServerCapabilities, type ServerInfo } from "./modules/info.js";
179
140
  export { McpModule, type McpServer } from "./modules/mcp.js";
180
- export { A2aModule, type JsonRpcRequest, type JsonRpcResponse, type A2aAgentCard } from "./modules/a2a.js";
181
141
  export { MeModule, type MeResponse } from "./modules/me.js";
182
- export { InfoModule, type ServerInfo, type ServerCapabilities } from "./modules/info.js";
183
142
  export { MetricsModule, type MetricsResponse } from "./modules/metrics.js";
184
- export { GraphsModule, type GraphValidationResult, type GraphIntrospectionResult } from "./modules/graphs.js";
185
- export { CatalogModule, type CatalogVersions, type NodeCatalogResponse, type ToolCatalogResponse, type TriggerCatalogResponse, type NodeDefinition, type ToolDefinition, type TriggerTemplate } from "./modules/catalog.js";
143
+ export { PlaygroundModule, type PlaygroundSession } from "./modules/playground.js";
144
+ export { PromptsModule, type Prompt, type PromptListResponse, type PromptVersion } from "./modules/prompts.js";
145
+ export { StoreModule, type StoreValue } from "./modules/store.js";
146
+ export { TracesModule, type FeedbackRequest, type Span, type SpanData, type Trace, type TraceListResponse } from "./modules/traces.js";
147
+ export { UsageModule, type UsageQuota, type UsageResponse } from "./modules/usage.js";
148
+ export { VectorStoresModule, type VectorQueryResult, type VectorStore, type VectorStoreListResponse } from "./modules/vectorStores.js";
186
149
 
187
150
  // Approvals is real (has backend implementation)
188
- export { ApprovalsModule, type Approval, type ApprovalStatus, type ApprovalDecision, type ApprovalListResponse, type ApprovalStatusResponse } from "./modules/approvals.js";
151
+ export { ApprovalsModule, type Approval, type ApprovalDecision, type ApprovalListResponse, type ApprovalStatus, type ApprovalStatusResponse } from "./modules/approvals.js";
189
152
 
190
153
  export { ApiTokensModule, type ApiToken, type ApiTokenSecret, type CreateTokenRequest, type RotateTokenResponse } from "./modules/apiTokens.js";
191
- export { MembershipsModule, type MembershipResponse, type EnsureMembershipRequest } from "./modules/memberships.js";
154
+ export { MembershipsModule, type EnsureMembershipRequest, type MembershipResponse } from "./modules/memberships.js";
192
155
 
193
156
  // ============================================================================
194
157
  // SSE Streaming
195
158
  // ============================================================================
196
- export { streamSSE, parseSSE, type SSEEvent, type SSEOptions, type RunStreamEvent, type RunSSEEvent, type RunEventDto as SSERunEventDto } from "./sse/client.js";
159
+ export { parseSSE, streamSSE, type RunSSEEvent, type RunStreamEvent, type SSEEvent, type SSEOptions, type RunEventDto as SSERunEventDto } from "./sse/client.js";
197
160
 
198
161
  // ============================================================================
199
162
  // Convenience Type Re-exports
200
163
  // ============================================================================
201
164
  export type {
165
+ AddMessageRequest, AgentBundle,
202
166
  // Agent types
203
- Agent as AgentSchema,
204
- CreateAgentRequest,
205
- UpdateAgentRequest,
206
- AgentBundle,
207
- CreateAgentVersionRequest,
208
- // Run types
209
- RunResponse,
210
- RunDetailResponse,
211
- WaitRunResponse,
212
- BatchRunResponse,
167
+ Agent as AgentSchema, BatchRunResponse,
213
168
  CancelRunResponse,
214
- ReplayRequest,
215
- // Thread types
216
- ThreadRequest,
217
- ThreadSearchRequest,
218
- AddMessageRequest,
219
169
  // Checkpoint types
220
170
  CheckpointDetail,
221
- CheckpointListResponse,
171
+ CheckpointListResponse, CreateAgentRequest, CreateAgentVersionRequest,
222
172
  // Credential types
223
173
  CreateCredentialRequest,
224
- UpdateCredentialRequest,
225
174
  // Cron types
226
175
  CreateCronJobRequest,
227
- UpdateCronJobRequest,
228
- // Member types
229
- InviteMemberRequest,
230
- UpdateMemberRequest,
231
- // Prompt types
232
- CreatePromptRequest,
233
- CreatePromptVersionRequest,
234
- // File types
235
- CreatePresignedUploadRequest,
236
- PresignedUploadResponse,
237
- // Vector Store types
238
- VectorStoreResponse,
239
- VectorQueryRequest,
240
- VectorQueryResponse,
241
176
  // Evaluation types
242
177
  CreateDatasetRequest,
243
178
  CreateExperimentRequest,
179
+ // File types
180
+ CreatePresignedUploadRequest,
181
+ // Prompt types
182
+ CreatePromptRequest,
183
+ CreatePromptVersionRequest,
184
+ // Member types
185
+ InviteMemberRequest, PresignedUploadResponse,
244
186
  // Error types
245
- ProblemDetails,
187
+ ProblemDetails, ReplayRequest, RunDetailResponse,
188
+ // Run types
189
+ RunResponse,
190
+ // Thread types
191
+ ThreadRequest,
192
+ ThreadSearchRequest, UpdateAgentRequest, UpdateCredentialRequest, UpdateCronJobRequest, UpdateMemberRequest, VectorQueryRequest,
193
+ VectorQueryResponse,
194
+ // Vector Store types
195
+ VectorStoreResponse, WaitRunResponse
246
196
  } from "./client/raw.js";
197
+
@@ -36,10 +36,17 @@ export type CatalogVersions = {
36
36
  triggers: string;
37
37
  };
38
38
 
39
+ export type ChatHistoryMessage = {
40
+ role: 'user' | 'assistant';
41
+ content: string;
42
+ };
43
+
39
44
  export type BuilderChatRequest = {
40
45
  message: string;
41
46
  current_graph_spec?: Record<string, unknown>;
42
47
  thread_id?: string;
48
+ /** Previous conversation history for context */
49
+ history?: ChatHistoryMessage[];
43
50
  /** Catalog versions to use for validation */
44
51
  catalog_versions?: CatalogVersions;
45
52
  /** Combined hash of all catalogs for integrity */
@@ -7,8 +7,8 @@
7
7
  * - create*, update*, delete* for mutations (NOT remove!)
8
8
  */
9
9
 
10
- import type { RawClient, APIResponse } from "../client/raw.js";
11
- import type { PaginationParams, PaginatedResponse } from "../client/helpers.js";
10
+ import type { PaginatedResponse, PaginationParams } from "../client/helpers.js";
11
+ import type { APIResponse, RawClient } from "../client/raw.js";
12
12
 
13
13
  export interface Member {
14
14
  id: string;
@@ -25,6 +25,15 @@ export interface Member {
25
25
  updated_at: string;
26
26
  }
27
27
 
28
+ export interface Role {
29
+ id: string;
30
+ name: string;
31
+ is_system: boolean;
32
+ permissions?: string[];
33
+ created_at?: string;
34
+ members_count?: number;
35
+ }
36
+
28
37
  export interface MemberInviteResponse {
29
38
  member_id: string;
30
39
  invite_token?: string;
@@ -60,6 +69,66 @@ export class MembersModule {
60
69
  });
61
70
  }
62
71
 
72
+
73
+ /**
74
+ * List all roles in the tenant.
75
+ */
76
+ async listRoles(): Promise<APIResponse<{ items: Role[] }>> {
77
+ return this.client.GET<{ items: Role[] }>("/v1/api/roles", {
78
+ headers: this.headers(),
79
+ });
80
+ }
81
+
82
+ /**
83
+ * Get a role by ID.
84
+ */
85
+ async getRole(roleId: string): Promise<APIResponse<Role>> {
86
+ return this.client.GET<Role>("/v1/api/roles/{id}", {
87
+ params: { path: { id: roleId } },
88
+ headers: this.headers(),
89
+ });
90
+ }
91
+
92
+ /**
93
+ * Create a new custom role.
94
+ */
95
+ async createRole(body: { name: string; permissions?: string[] }): Promise<APIResponse<Role>> {
96
+ return this.client.POST<Role>("/v1/api/roles", {
97
+ body,
98
+ headers: this.headers(),
99
+ });
100
+ }
101
+
102
+ /**
103
+ * Update a custom role.
104
+ */
105
+ async updateRole(roleId: string, body: { name?: string; permissions?: string[] }): Promise<APIResponse<Role>> {
106
+ return this.client.PUT<Role>("/v1/api/roles/{id}", {
107
+ params: { path: { id: roleId } },
108
+ body,
109
+ headers: this.headers(),
110
+ });
111
+ }
112
+
113
+ /**
114
+ * Delete a custom role.
115
+ */
116
+ async deleteRole(roleId: string): Promise<APIResponse<void>> {
117
+ return this.client.DELETE<void>("/v1/api/roles/{id}", {
118
+ params: { path: { id: roleId } },
119
+ headers: this.headers(),
120
+ });
121
+ }
122
+
123
+ /**
124
+ * List all available system permissions.
125
+ */
126
+ async listPermissions(): Promise<APIResponse<{ items: string[] }>> {
127
+ return this.client.GET<{ items: string[] }>("/v1/api/roles/permissions", {
128
+ headers: this.headers(),
129
+ });
130
+ }
131
+
63
132
  /**
64
133
  * Invite a new member.
65
134
  */
@@ -125,4 +194,13 @@ export class MembersModule {
125
194
  headers: this.headers(),
126
195
  });
127
196
  }
197
+
198
+ /**
199
+ * Seed default permissions (Dev only)
200
+ */
201
+ async seedDefaults(): Promise<APIResponse<{ message: string }>> {
202
+ return this.client.POST<{ message: string }>("/v1/api/roles/seed-defaults", {
203
+ headers: this.headers(),
204
+ });
205
+ }
128
206
  }