@mindstudio-ai/agent 0.1.176 → 0.1.178
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/CHANGELOG.md +14 -0
- package/dist/analytics/index.d.ts +384 -0
- package/dist/auth/index.d.ts +113 -0
- package/dist/browser/index.d.ts +332 -0
- package/dist/cli.js +29 -29
- package/dist/client.d.ts +767 -0
- package/dist/config.d.ts +13 -0
- package/dist/context.d.ts +125 -0
- package/dist/datasources/index.d.ts +52 -0
- package/dist/datasources/source.d.ts +1074 -0
- package/dist/db/aggregate.d.ts +101 -0
- package/dist/db/index.d.ts +280 -0
- package/dist/db/mutation.d.ts +65 -0
- package/dist/db/predicate.d.ts +85 -0
- package/dist/db/query.d.ts +233 -0
- package/dist/db/raw.d.ts +36 -0
- package/dist/db/readBatching.d.ts +36 -0
- package/dist/db/scanHints.d.ts +8 -0
- package/dist/db/sql.d.ts +136 -0
- package/dist/db/table.d.ts +146 -0
- package/dist/db/time.d.ts +17 -0
- package/dist/db/types.d.ts +237 -0
- package/dist/db-ws.d.ts +35 -0
- package/dist/email/index.d.ts +396 -0
- package/dist/errors.d.ts +34 -0
- package/dist/events/index.d.ts +127 -0
- package/dist/files/index.d.ts +62 -0
- package/dist/files/store.d.ts +244 -0
- package/dist/generated/metadata.d.ts +8 -0
- package/dist/generated/snippets.d.ts +8 -0
- package/dist/generated/steps.d.ts +2745 -0
- package/dist/generated/types.d.ts +4234 -0
- package/dist/http.d.ts +22 -0
- package/dist/index.d.ts +59 -13329
- package/dist/index.js +17 -17
- package/dist/index.js.map +7 -1
- package/dist/jewel/index.d.ts +325 -0
- package/dist/mapper/index.d.ts +229 -0
- package/dist/rate-limit.d.ts +25 -0
- package/dist/reader/index.d.ts +170 -0
- package/dist/respond.d.ts +68 -0
- package/dist/task/index.d.ts +18 -0
- package/dist/task/local.d.ts +48 -0
- package/dist/task/schema.d.ts +120 -0
- package/dist/task/types.d.ts +203 -0
- package/dist/types.d.ts +591 -0
- package/dist/voice/index.d.ts +87 -0
- package/llms.txt +2 -2
- package/package.json +6 -12
- package/dist/postinstall.js +0 -12115
package/dist/http.d.ts
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { RateLimiter } from './rate-limit.js';
|
|
2
|
+
export interface HttpClientConfig {
|
|
3
|
+
baseUrl: string;
|
|
4
|
+
token: string;
|
|
5
|
+
rateLimiter: RateLimiter;
|
|
6
|
+
maxRetries: number;
|
|
7
|
+
}
|
|
8
|
+
export declare function request<T>(config: HttpClientConfig, method: 'GET' | 'POST', path: string, body?: unknown): Promise<{
|
|
9
|
+
data: T;
|
|
10
|
+
headers: Headers;
|
|
11
|
+
}>;
|
|
12
|
+
/**
|
|
13
|
+
* Hold one concurrency slot for the whole of `fn`. An async step's slot has to
|
|
14
|
+
* outlive its POST: the server holds the execution's lease until the step
|
|
15
|
+
* finishes, so the POST and its poll share one slot.
|
|
16
|
+
*/
|
|
17
|
+
export declare function withSlot<T>(config: HttpClientConfig, fn: () => Promise<T>): Promise<T>;
|
|
18
|
+
/** `request` without taking a slot, for a caller already holding one in `withSlot`. */
|
|
19
|
+
export declare function sendRequest<T>(config: HttpClientConfig, method: 'GET' | 'POST', path: string, body?: unknown): Promise<{
|
|
20
|
+
data: T;
|
|
21
|
+
headers: Headers;
|
|
22
|
+
}>;
|