@agent-os-sdk/client 0.7.0 → 0.7.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.
- package/dist/index.d.ts +5 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -1
- package/package.json +1 -1
- package/src/index.ts +20 -2
package/dist/index.d.ts
CHANGED
|
@@ -38,10 +38,13 @@ export { AgentOsClient } from "./client/AgentOsClient.js";
|
|
|
38
38
|
export type { AgentOsClientOptions, AuthProvider } from "./client/auth.js";
|
|
39
39
|
export { AgentOsError, NetworkError, TimeoutError, ValidationError, UnauthorizedError, ForbiddenError, NotFoundError, ConflictError, RateLimitError, ServerError, isAuthError, isRetryableError, } from "./errors/index.js";
|
|
40
40
|
export { withRetry } from "./client/retry.js";
|
|
41
|
-
export {
|
|
41
|
+
export { withTimeout } from "./client/timeout.js";
|
|
42
|
+
export { DEFAULT_NETWORK_CONFIG, INTERACTIVE_NETWORK_CONFIG, BACKGROUND_NETWORK_CONFIG, type NetworkConfig, } from "./client/config.js";
|
|
43
|
+
export { paginate, collectAll, getFirst, type PaginatedResponse, type PaginationParams, type OffsetPaginatedResponse, type CursorPaginatedResponse, type PaginateOptions, } from "./client/pagination.js";
|
|
42
44
|
export type CommitGraphSpecRequest = import("./generated/openapi.js").components["schemas"]["CommitGraphSpecRequest"];
|
|
43
45
|
export type CommitGraphSpecResponse = import("./generated/openapi.js").components["schemas"]["CommitGraphSpecResponse"];
|
|
44
46
|
export type GetGraphSpecResponse = import("./generated/openapi.js").components["schemas"]["GetGraphSpecResponse"];
|
|
47
|
+
export type ApprovalDecision = import("./generated/openapi.js").components["schemas"]["ApprovalDecision"];
|
|
45
48
|
export type { Agent } from "./modules/agents.js";
|
|
46
49
|
export type { RunEvent, RunEventDto, FollowEvent, FollowOptions } from "./modules/runs.js";
|
|
47
50
|
export type { Thread, ThreadMessage, ThreadState } from "./modules/threads.js";
|
|
@@ -62,6 +65,7 @@ export type { AuditLogEntry } from "./modules/audit.js";
|
|
|
62
65
|
export type { ServerCapabilities } from "./modules/info.js";
|
|
63
66
|
export type { Checkpoint } from "./modules/checkpoints.js";
|
|
64
67
|
export type { Tool } from "./modules/tools.js";
|
|
68
|
+
export type { Approval, ApprovalStatus } from "./modules/approvals.js";
|
|
65
69
|
export type { SSEEvent, SSEOptions } from "./sse/client.js";
|
|
66
70
|
export type { APIResponse } from "./client/raw.js";
|
|
67
71
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AAMH,OAAO,EAAE,YAAY,EAAE,KAAK,aAAa,IAAI,eAAe,EAAE,KAAK,aAAa,EAAE,KAAK,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAC7H,YAAY,EAAE,KAAK,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AAMhE,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAC1D,YAAY,EAAE,oBAAoB,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAM3E,OAAO,EACH,YAAY,EACZ,YAAY,EACZ,YAAY,EACZ,eAAe,EACf,iBAAiB,EACjB,cAAc,EACd,aAAa,EACb,aAAa,EACb,cAAc,EACd,WAAW,EACX,WAAW,EACX,gBAAgB,GACnB,MAAM,mBAAmB,CAAC;AAM3B,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAC9C,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AAMH,OAAO,EAAE,YAAY,EAAE,KAAK,aAAa,IAAI,eAAe,EAAE,KAAK,aAAa,EAAE,KAAK,M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M,iBAAiB,CAAC;AAC5D,YAAY,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -48,4 +48,6 @@ export { AgentOsError, NetworkError, TimeoutError, ValidationError, Unauthorized
|
|
|
48
48
|
// Utilities
|
|
49
49
|
// ============================================================
|
|
50
50
|
export { withRetry } from "./client/retry.js";
|
|
51
|
-
export {
|
|
51
|
+
export { withTimeout } from "./client/timeout.js";
|
|
52
|
+
export { DEFAULT_NETWORK_CONFIG, INTERACTIVE_NETWORK_CONFIG, BACKGROUND_NETWORK_CONFIG, } from "./client/config.js";
|
|
53
|
+
export { paginate, collectAll, getFirst, } from "./client/pagination.js";
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -71,7 +71,23 @@ export {
|
|
|
71
71
|
// ============================================================
|
|
72
72
|
|
|
73
73
|
export { withRetry } from "./client/retry.js";
|
|
74
|
-
export {
|
|
74
|
+
export { withTimeout } from "./client/timeout.js";
|
|
75
|
+
export {
|
|
76
|
+
DEFAULT_NETWORK_CONFIG,
|
|
77
|
+
INTERACTIVE_NETWORK_CONFIG,
|
|
78
|
+
BACKGROUND_NETWORK_CONFIG,
|
|
79
|
+
type NetworkConfig,
|
|
80
|
+
} from "./client/config.js";
|
|
81
|
+
export {
|
|
82
|
+
paginate,
|
|
83
|
+
collectAll,
|
|
84
|
+
getFirst,
|
|
85
|
+
type PaginatedResponse,
|
|
86
|
+
type PaginationParams,
|
|
87
|
+
type OffsetPaginatedResponse,
|
|
88
|
+
type CursorPaginatedResponse,
|
|
89
|
+
type PaginateOptions,
|
|
90
|
+
} from "./client/pagination.js";
|
|
75
91
|
|
|
76
92
|
// ============================================================
|
|
77
93
|
// OpenAPI Types (use these for type-safe API calls)
|
|
@@ -80,9 +96,10 @@ export { paginate, collectAll, getFirst } from "./client/pagination.js";
|
|
|
80
96
|
export type CommitGraphSpecRequest = import("./generated/openapi.js").components["schemas"]["CommitGraphSpecRequest"];
|
|
81
97
|
export type CommitGraphSpecResponse = import("./generated/openapi.js").components["schemas"]["CommitGraphSpecResponse"];
|
|
82
98
|
export type GetGraphSpecResponse = import("./generated/openapi.js").components["schemas"]["GetGraphSpecResponse"];
|
|
99
|
+
export type ApprovalDecision = import("./generated/openapi.js").components["schemas"]["ApprovalDecision"];
|
|
83
100
|
|
|
84
101
|
// ============================================================
|
|
85
|
-
// Module Types (
|
|
102
|
+
// Module Types (from manual modules)
|
|
86
103
|
// ============================================================
|
|
87
104
|
|
|
88
105
|
export type { Agent } from "./modules/agents.js";
|
|
@@ -105,5 +122,6 @@ export type { AuditLogEntry } from "./modules/audit.js";
|
|
|
105
122
|
export type { ServerCapabilities } from "./modules/info.js";
|
|
106
123
|
export type { Checkpoint } from "./modules/checkpoints.js";
|
|
107
124
|
export type { Tool } from "./modules/tools.js";
|
|
125
|
+
export type { Approval, ApprovalStatus } from "./modules/approvals.js";
|
|
108
126
|
export type { SSEEvent, SSEOptions } from "./sse/client.js";
|
|
109
127
|
export type { APIResponse } from "./client/raw.js";
|