@blazingagents/sdk 0.24.0 → 0.25.0
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/contracts/api.d.ts +0 -245
- package/dist/contracts/api.js +0 -121
- package/dist/contracts/entities/agent-tools.d.ts +0 -4
- package/dist/contracts/entities/agent-tools.js +0 -15
- package/dist/contracts/entities/agents.d.ts +2 -109
- package/dist/contracts/entities/agents.js +15 -16
- package/dist/contracts/entities/artifacts.d.ts +0 -30
- package/dist/contracts/entities/artifacts.js +1 -36
- package/dist/contracts/entities/attribution.d.ts +0 -2
- package/dist/contracts/entities/chat-connections.d.ts +0 -3
- package/dist/contracts/entities/chat-connections.js +0 -3
- package/dist/contracts/entities/chat.d.ts +1 -17
- package/dist/contracts/entities/chat.js +4 -13
- package/dist/contracts/entities/mcp-connections.d.ts +0 -168
- package/dist/contracts/entities/mcp-connections.js +1 -171
- package/dist/contracts/entities/memories.d.ts +0 -8
- package/dist/contracts/entities/memories.js +2 -15
- package/dist/contracts/entities/merchant.d.ts +0 -19
- package/dist/contracts/entities/merchant.js +1 -26
- package/dist/contracts/entities/prompts.d.ts +1 -14
- package/dist/contracts/entities/prompts.js +2 -3
- package/dist/contracts/entities/providers.d.ts +0 -28
- package/dist/contracts/entities/providers.js +1 -24
- package/dist/contracts/entities/sessions.d.ts +0 -9
- package/dist/contracts/entities/sessions.js +4 -21
- package/dist/contracts/entities/skills.d.ts +0 -52
- package/dist/contracts/entities/skills.js +2 -60
- package/dist/contracts/entities/tasks.d.ts +1 -168
- package/dist/contracts/entities/tasks.js +5 -14
- package/dist/contracts/entities/tenants.d.ts +0 -6
- package/dist/contracts/entities/usage.d.ts +0 -1
- package/dist/contracts/entities/workspaces.d.ts +0 -6
- package/dist/contracts/entities/workspaces.js +2 -14
- package/dist/contracts/ids.d.ts +1 -68
- package/dist/contracts/ids.js +2 -91
- package/dist/contracts/index.d.ts +3 -3
- package/dist/contracts/index.js +3 -3
- package/dist/contracts/limitations.d.ts +8 -81
- package/dist/contracts/limitations.js +8 -82
- package/package.json +6 -6
|
@@ -166,7 +166,7 @@ const taskScheduleResponseSchema = z.discriminatedUnion("kind", [
|
|
|
166
166
|
z.object({ kind: z.literal("cron"), config: taskCronConfigSchema.strip() }),
|
|
167
167
|
]);
|
|
168
168
|
// The task record — pure definition; state lives in its runs.
|
|
169
|
-
export const
|
|
169
|
+
export const taskResponseSchema = z
|
|
170
170
|
.object({
|
|
171
171
|
id: taskIdSchema,
|
|
172
172
|
tenantId: tenantIdSchema,
|
|
@@ -193,23 +193,15 @@ export const taskLatestRunSchema = z
|
|
|
193
193
|
finishedAt: z.iso.datetime({ offset: true }).nullable(),
|
|
194
194
|
})
|
|
195
195
|
.strip();
|
|
196
|
-
export const taskListItemSchema =
|
|
196
|
+
export const taskListItemSchema = taskResponseSchema.extend({
|
|
197
197
|
latestRun: taskLatestRunSchema.nullable(),
|
|
198
198
|
});
|
|
199
199
|
export const tasksListResponseSchema = paginatedResponseSchema(taskListItemSchema);
|
|
200
|
-
export const tasksListQuerySchema = z
|
|
201
|
-
.object({
|
|
202
|
-
agentId: agentIdSchema.optional(),
|
|
203
|
-
userId: z.string().optional(),
|
|
204
|
-
cursor: z.string().nullable().optional(),
|
|
205
|
-
})
|
|
206
|
-
.strict();
|
|
207
|
-
export const taskResponseSchema = taskSchema;
|
|
208
200
|
/**
|
|
209
201
|
* Task run record. `userId`/`metadata` are copied from the task at enqueue
|
|
210
202
|
* and carried onto the run's Session and usage facts.
|
|
211
203
|
*/
|
|
212
|
-
export const
|
|
204
|
+
export const taskRunResponseSchema = z
|
|
213
205
|
.object({
|
|
214
206
|
id: taskRunIdSchema,
|
|
215
207
|
taskId: taskIdSchema,
|
|
@@ -230,12 +222,11 @@ export const taskRunSchema = z
|
|
|
230
222
|
updatedAt: z.iso.datetime({ offset: true }),
|
|
231
223
|
})
|
|
232
224
|
.strip();
|
|
233
|
-
export const
|
|
234
|
-
export const taskRunsListResponseSchema = paginatedResponseSchema(taskRunSchema);
|
|
225
|
+
export const taskRunsListResponseSchema = paginatedResponseSchema(taskRunResponseSchema);
|
|
235
226
|
// `POST /v1/tasks` response — the created task + optional queued run id.
|
|
236
227
|
export const createTaskResponseSchema = z
|
|
237
228
|
.object({
|
|
238
|
-
task:
|
|
229
|
+
task: taskResponseSchema,
|
|
239
230
|
runId: taskRunIdSchema.nullable(),
|
|
240
231
|
})
|
|
241
232
|
.strip();
|
|
@@ -37,7 +37,6 @@ export declare const tenantDeletionSchema: z.ZodObject<{
|
|
|
37
37
|
deletesAt: z.ZodISODateTime;
|
|
38
38
|
requestedAt: z.ZodISODateTime;
|
|
39
39
|
}, z.core.$strict>;
|
|
40
|
-
export type TenantDeletion = z.infer<typeof tenantDeletionSchema>;
|
|
41
40
|
/**
|
|
42
41
|
* Quota — `GET/PATCH /v1/tenant` carries the tenant's self-set quota.
|
|
43
42
|
* `null` means unlimited (no quota row).
|
|
@@ -77,10 +76,5 @@ export declare const updateTenantSettingsBodySchema: z.ZodObject<{
|
|
|
77
76
|
resetDay: z.ZodNumber;
|
|
78
77
|
}, z.core.$strict>>>;
|
|
79
78
|
}, z.core.$strict>;
|
|
80
|
-
export type Tenant = z.infer<typeof tenantSchema>;
|
|
81
|
-
export type SubscriptionStatus = z.infer<typeof subscriptionStatusSchema>;
|
|
82
|
-
export type TenantResponse = z.infer<typeof tenantResponseSchema>;
|
|
83
|
-
export type Quota = z.infer<typeof quotaSchema>;
|
|
84
|
-
export type TenantSettings = z.infer<typeof tenantSettingsSchema>;
|
|
85
79
|
export type TenantSettingsResponse = z.infer<typeof tenantSettingsResponseSchema>;
|
|
86
80
|
export type UpdateTenantSettingsBody = z.infer<typeof updateTenantSettingsBodySchema>;
|
|
@@ -236,7 +236,6 @@ export declare function usageOverviewResponseSchemaForQuery(query?: Partial<Usag
|
|
|
236
236
|
}, z.core.$strip>>;
|
|
237
237
|
activeAgentCount: z.ZodNumber;
|
|
238
238
|
}, z.core.$strip>;
|
|
239
|
-
export type UsageGroupBy = z.infer<typeof usageGroupBySchema>;
|
|
240
239
|
export type UsageQuery = z.infer<typeof usageQuerySchema>;
|
|
241
240
|
export type UsageBucket = z.infer<typeof usageBucketSchema>;
|
|
242
241
|
export type UsageTotals = z.infer<typeof usageTotalsSchema>;
|
|
@@ -62,11 +62,6 @@ export declare const updateWorkspaceBodySchema: z.ZodObject<{
|
|
|
62
62
|
mode: z.ZodLiteral<"offline">;
|
|
63
63
|
}, z.core.$strict>], "mode">>;
|
|
64
64
|
}, z.core.$strict>;
|
|
65
|
-
export declare const workspaceListQuerySchema: z.ZodObject<{
|
|
66
|
-
cursor: z.ZodOptional<z.ZodString>;
|
|
67
|
-
limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
68
|
-
userId: z.ZodOptional<z.ZodString>;
|
|
69
|
-
}, z.core.$strict>;
|
|
70
65
|
export declare const workspacesListResponseSchema: z.ZodObject<{
|
|
71
66
|
data: z.ZodArray<z.ZodObject<{
|
|
72
67
|
id: z.ZodString;
|
|
@@ -96,5 +91,4 @@ export type WorkspaceTier = z.infer<typeof workspaceTierSchema>;
|
|
|
96
91
|
export type WorkspaceNetworkPolicy = z.infer<typeof workspaceNetworkPolicySchema>;
|
|
97
92
|
export type CreateWorkspaceBody = z.input<typeof createWorkspaceBodySchema>;
|
|
98
93
|
export type UpdateWorkspaceBody = z.infer<typeof updateWorkspaceBodySchema>;
|
|
99
|
-
export type WorkspaceListQuery = z.infer<typeof workspaceListQuerySchema>;
|
|
100
94
|
export type WorkspacesListResponse = z.infer<typeof workspacesListResponseSchema>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
import {
|
|
2
|
+
import { paginatedResponseSchema } from "../api.js";
|
|
3
3
|
import { tenantIdSchema, workspaceIdSchema } from "../ids.js";
|
|
4
|
-
import {
|
|
4
|
+
import { MAX_WORKSPACE_NAME_LENGTH } from "../limitations.js";
|
|
5
5
|
import { hasObjectKeys } from "../utils.js";
|
|
6
6
|
import { metadataSchema, userIdSchema } from "./attribution.js";
|
|
7
7
|
export const workspaceNameSchema = z
|
|
@@ -57,16 +57,4 @@ export const updateWorkspaceBodySchema = z
|
|
|
57
57
|
})
|
|
58
58
|
.strict()
|
|
59
59
|
.refine(hasObjectKeys, { message: "At least one field is required." });
|
|
60
|
-
export const workspaceListQuerySchema = z
|
|
61
|
-
.object({
|
|
62
|
-
cursor: cursorSchema.optional(),
|
|
63
|
-
limit: z.coerce
|
|
64
|
-
.number()
|
|
65
|
-
.int()
|
|
66
|
-
.min(1)
|
|
67
|
-
.max(MAX_WORKSPACES_LIST_LIMIT)
|
|
68
|
-
.default(DEFAULT_WORKSPACES_LIST_LIMIT),
|
|
69
|
-
userId: userIdSchema.optional(),
|
|
70
|
-
})
|
|
71
|
-
.strict();
|
|
72
60
|
export const workspacesListResponseSchema = paginatedResponseSchema(workspaceSchema);
|
package/dist/contracts/ids.d.ts
CHANGED
|
@@ -1,61 +1,4 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
export declare const ADMIN_AGENT_ID_PREFIX = "ag_adm";
|
|
3
|
-
/** Creates a Tenant ID with a 16-character base62 body. */
|
|
4
|
-
export declare const createTenantId: () => string;
|
|
5
|
-
/**
|
|
6
|
-
* Creates an Agent ID outside the reserved administrator prefix.
|
|
7
|
-
*/
|
|
8
|
-
export declare const createAgentId: () => string;
|
|
9
|
-
/**
|
|
10
|
-
* Creates an Agent ID with the reserved administrator prefix.
|
|
11
|
-
*/
|
|
12
|
-
export declare const mintAdminAgentId: () => string;
|
|
13
|
-
/** Creates a Session ID with a 16-character base62 body. */
|
|
14
|
-
export declare const createSessionId: () => string;
|
|
15
|
-
/** Creates a Api Key ID with a 16-character base62 body. */
|
|
16
|
-
export declare const createApiKeyId: () => string;
|
|
17
|
-
/** Creates a Provider ID with a 16-character base62 body. */
|
|
18
|
-
export declare const createProviderId: () => string;
|
|
19
|
-
/** Creates a Mcp Connection ID with a 16-character base62 body. */
|
|
20
|
-
export declare const createMcpConnectionId: () => string;
|
|
21
|
-
/** Creates a Workspace ID with a 16-character base62 body. */
|
|
22
|
-
export declare const createWorkspaceId: () => string;
|
|
23
|
-
/** Creates a Artifact ID with a 16-character base62 body. */
|
|
24
|
-
export declare const createArtifactId: () => string;
|
|
25
|
-
/** Creates a Task ID with a 16-character base62 body. */
|
|
26
|
-
export declare const createTaskId: () => string;
|
|
27
|
-
/** Creates a Task Run ID with a 16-character base62 body. */
|
|
28
|
-
export declare const createTaskRunId: () => string;
|
|
29
|
-
/** Creates a Memory ID with a 16-character base62 body. */
|
|
30
|
-
export declare const createMemoryId: () => string;
|
|
31
|
-
/** Creates a Prompt ID with a 16-character base62 body. */
|
|
32
|
-
export declare const createPromptId: () => string;
|
|
33
|
-
/** Creates a Request ID with a 16-character base62 body. */
|
|
34
|
-
export declare const createRequestId: () => string;
|
|
35
|
-
/** Creates a Checkout Attempt ID with a 16-character base62 body. */
|
|
36
|
-
export declare const createCheckoutAttemptId: () => string;
|
|
37
|
-
/**
|
|
38
|
-
* Creates a Skill ID with a 16-character base62 body.
|
|
39
|
-
*/
|
|
40
|
-
export declare const createSkillId: () => string;
|
|
41
|
-
/**
|
|
42
|
-
* API keys — `ba_` + 40 base62 chars (~230 bits entropy). The full token is
|
|
43
|
-
* shown once at creation; only the sha256 hash and a 2-char display fragment
|
|
44
|
-
* are stored. (docs/adr/0004-unified-v1-dual-credential-auth.md)
|
|
45
|
-
*/
|
|
46
|
-
export declare const API_KEY_TOKEN_PREFIX = "ba_";
|
|
47
|
-
/**
|
|
48
|
-
* Creates an API key token with a 40-character random base62 body.
|
|
49
|
-
* @returns A ba_ token with 40 random base62 characters.
|
|
50
|
-
*/
|
|
51
|
-
export declare function createApiKeyToken(): string;
|
|
52
|
-
/**
|
|
53
|
-
* The display fragment is `ba_` + the first 2 chars of the random body —
|
|
54
|
-
* safe to store (~12 of ~230 bits revealed).
|
|
55
|
-
* @param token - API key token with the ba_ prefix.
|
|
56
|
-
* @returns The prefix and first two characters of the token body.
|
|
57
|
-
*/
|
|
58
|
-
export declare function apiKeyFragmentFromToken(token: string): string;
|
|
59
2
|
export declare const tenantIdSchema: z.ZodString;
|
|
60
3
|
export declare const agentIdSchema: z.ZodString;
|
|
61
4
|
/**
|
|
@@ -63,7 +6,6 @@ export declare const agentIdSchema: z.ZodString;
|
|
|
63
6
|
*/
|
|
64
7
|
export declare const isAdminAgentId: (id: string) => boolean;
|
|
65
8
|
export declare const sessionIdSchema: z.ZodString;
|
|
66
|
-
export declare const apiKeyIdSchema: z.ZodString;
|
|
67
9
|
export declare const providerIdSchema: z.ZodString;
|
|
68
10
|
export declare const mcpConnectionIdSchema: z.ZodString;
|
|
69
11
|
export declare const merchantConnectionIdSchema: z.ZodString;
|
|
@@ -74,20 +16,11 @@ export declare const taskIdSchema: z.ZodString;
|
|
|
74
16
|
export declare const taskRunIdSchema: z.ZodString;
|
|
75
17
|
export declare const memoryIdSchema: z.ZodString;
|
|
76
18
|
export declare const promptIdSchema: z.ZodString;
|
|
77
|
-
export declare const requestIdSchema: z.ZodString;
|
|
78
|
-
export declare const checkoutAttemptIdSchema: z.ZodString;
|
|
79
19
|
export declare const turnIdSchema: z.ZodString;
|
|
80
20
|
export declare const functionCallIdSchema: z.ZodString;
|
|
81
21
|
export declare const skillIdSchema: z.ZodString;
|
|
82
|
-
/**
|
|
83
|
-
* API key token + digest helpers. The digest is sha256 hex (64 chars); the
|
|
84
|
-
* fragment is `ba_` + 2 base62 chars. Both stored columns are format-checked
|
|
85
|
-
* in the migration.
|
|
86
|
-
*/
|
|
22
|
+
/** API keys are `ba_` + 40 base62 characters. */
|
|
87
23
|
export declare const apiKeyTokenSchema: z.ZodString;
|
|
88
|
-
export declare const apiKeyDigestSchema: z.ZodString;
|
|
89
|
-
export declare const apiKeyFragmentSchema: z.ZodString;
|
|
90
24
|
export declare const providerKeyFragmentSchema: z.ZodString;
|
|
91
|
-
export type TurnId = z.infer<typeof turnIdSchema>;
|
|
92
25
|
export declare const chatConnectionIdSchema: z.ZodString;
|
|
93
26
|
export declare const chatDeliveryIdSchema: z.ZodString;
|
package/dist/contracts/ids.js
CHANGED
|
@@ -1,85 +1,5 @@
|
|
|
1
|
-
import { customAlphabet } from "nanoid";
|
|
2
1
|
import { z } from "zod";
|
|
3
|
-
|
|
4
|
-
* Base62 — the alphabet every platform id body uses (16 chars for ids,
|
|
5
|
-
* 40 chars for API key bodies). Matches the regex check constraints in every
|
|
6
|
-
* migration: `^<prefix>_[0-9A-Za-z]{16}$`.
|
|
7
|
-
*/
|
|
8
|
-
const BASE62 = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";
|
|
9
|
-
export const ADMIN_AGENT_ID_PREFIX = "ag_adm";
|
|
10
|
-
const createNanoId16 = customAlphabet(BASE62, 16);
|
|
11
|
-
const createNanoId13 = customAlphabet(BASE62, 13);
|
|
12
|
-
const createAgentIdFirstChar = customAlphabet(BASE62.replace("a", ""), 1);
|
|
13
|
-
const createNanoId15 = customAlphabet(BASE62, 15);
|
|
14
|
-
const createNanoId40 = customAlphabet(BASE62, 40);
|
|
15
|
-
/**
|
|
16
|
-
* Creates a generator for prefixed IDs with a 16-character base62 body.
|
|
17
|
-
*/
|
|
18
|
-
const platformId = (prefix) => () => `${prefix}_${createNanoId16()}`;
|
|
19
|
-
/** Creates a Tenant ID with a 16-character base62 body. */
|
|
20
|
-
export const createTenantId = platformId("ten");
|
|
21
|
-
/**
|
|
22
|
-
* Creates an Agent ID outside the reserved administrator prefix.
|
|
23
|
-
*/
|
|
24
|
-
export const createAgentId = () => `ag_${createAgentIdFirstChar()}${createNanoId15()}`;
|
|
25
|
-
/**
|
|
26
|
-
* Creates an Agent ID with the reserved administrator prefix.
|
|
27
|
-
*/
|
|
28
|
-
export const mintAdminAgentId = () => `${ADMIN_AGENT_ID_PREFIX}${createNanoId13()}`;
|
|
29
|
-
/** Creates a Session ID with a 16-character base62 body. */
|
|
30
|
-
export const createSessionId = platformId("ss");
|
|
31
|
-
/** Creates a Api Key ID with a 16-character base62 body. */
|
|
32
|
-
export const createApiKeyId = platformId("ak");
|
|
33
|
-
/** Creates a Provider ID with a 16-character base62 body. */
|
|
34
|
-
export const createProviderId = platformId("prv");
|
|
35
|
-
/** Creates a Mcp Connection ID with a 16-character base62 body. */
|
|
36
|
-
export const createMcpConnectionId = platformId("mcp");
|
|
37
|
-
/** Creates a Workspace ID with a 16-character base62 body. */
|
|
38
|
-
export const createWorkspaceId = platformId("ws");
|
|
39
|
-
/** Creates a Artifact ID with a 16-character base62 body. */
|
|
40
|
-
export const createArtifactId = platformId("at");
|
|
41
|
-
/** Creates a Task ID with a 16-character base62 body. */
|
|
42
|
-
export const createTaskId = platformId("tk");
|
|
43
|
-
/** Creates a Task Run ID with a 16-character base62 body. */
|
|
44
|
-
export const createTaskRunId = platformId("tr");
|
|
45
|
-
/** Creates a Memory ID with a 16-character base62 body. */
|
|
46
|
-
export const createMemoryId = platformId("mem");
|
|
47
|
-
/** Creates a Prompt ID with a 16-character base62 body. */
|
|
48
|
-
export const createPromptId = platformId("prompt");
|
|
49
|
-
/** Creates a Request ID with a 16-character base62 body. */
|
|
50
|
-
export const createRequestId = platformId("req");
|
|
51
|
-
/** Creates a Checkout Attempt ID with a 16-character base62 body. */
|
|
52
|
-
export const createCheckoutAttemptId = platformId("ca");
|
|
53
|
-
/**
|
|
54
|
-
* Creates a Skill ID with a 16-character base62 body.
|
|
55
|
-
*/
|
|
56
|
-
export const createSkillId = () => `skill_${createNanoId16()}`;
|
|
57
|
-
/**
|
|
58
|
-
* API keys — `ba_` + 40 base62 chars (~230 bits entropy). The full token is
|
|
59
|
-
* shown once at creation; only the sha256 hash and a 2-char display fragment
|
|
60
|
-
* are stored. (docs/adr/0004-unified-v1-dual-credential-auth.md)
|
|
61
|
-
*/
|
|
62
|
-
export const API_KEY_TOKEN_PREFIX = "ba_";
|
|
63
|
-
/**
|
|
64
|
-
* Creates an API key token with a 40-character random base62 body.
|
|
65
|
-
* @returns A ba_ token with 40 random base62 characters.
|
|
66
|
-
*/
|
|
67
|
-
export function createApiKeyToken() {
|
|
68
|
-
return `${API_KEY_TOKEN_PREFIX}${createNanoId40()}`;
|
|
69
|
-
}
|
|
70
|
-
/**
|
|
71
|
-
* The display fragment is `ba_` + the first 2 chars of the random body —
|
|
72
|
-
* safe to store (~12 of ~230 bits revealed).
|
|
73
|
-
* @param token - API key token with the ba_ prefix.
|
|
74
|
-
* @returns The prefix and first two characters of the token body.
|
|
75
|
-
*/
|
|
76
|
-
export function apiKeyFragmentFromToken(token) {
|
|
77
|
-
if (!token.startsWith(API_KEY_TOKEN_PREFIX)) {
|
|
78
|
-
throw new Error(`API key token must start with ${API_KEY_TOKEN_PREFIX}.`);
|
|
79
|
-
}
|
|
80
|
-
const body = token.slice(API_KEY_TOKEN_PREFIX.length);
|
|
81
|
-
return `${API_KEY_TOKEN_PREFIX}${body.slice(0, 2)}`;
|
|
82
|
-
}
|
|
2
|
+
const ADMIN_AGENT_ID_PREFIX = "ag_adm";
|
|
83
3
|
// Schemas — one per id prefix, mirroring the migration check constraints.
|
|
84
4
|
export const tenantIdSchema = z.string().regex(/^ten_[0-9A-Za-z]{16}$/);
|
|
85
5
|
export const agentIdSchema = z.string().regex(/^ag_[0-9A-Za-z]{16}$/);
|
|
@@ -88,7 +8,6 @@ export const agentIdSchema = z.string().regex(/^ag_[0-9A-Za-z]{16}$/);
|
|
|
88
8
|
*/
|
|
89
9
|
export const isAdminAgentId = (id) => id.startsWith(ADMIN_AGENT_ID_PREFIX) && z.validate(agentIdSchema, id);
|
|
90
10
|
export const sessionIdSchema = z.string().regex(/^ss_[0-9A-Za-z]{16}$/);
|
|
91
|
-
export const apiKeyIdSchema = z.string().regex(/^ak_[0-9A-Za-z]{16}$/);
|
|
92
11
|
export const providerIdSchema = z.string().regex(/^prv_[0-9A-Za-z]{16}$/);
|
|
93
12
|
export const mcpConnectionIdSchema = z.string().regex(/^mcp_[0-9A-Za-z]{16}$/);
|
|
94
13
|
export const merchantConnectionIdSchema = z
|
|
@@ -103,19 +22,11 @@ export const taskIdSchema = z.string().regex(/^tk_[0-9A-Za-z]{16}$/);
|
|
|
103
22
|
export const taskRunIdSchema = z.string().regex(/^tr_[0-9A-Za-z]{16}$/);
|
|
104
23
|
export const memoryIdSchema = z.string().regex(/^mem_[0-9A-Za-z]{16}$/);
|
|
105
24
|
export const promptIdSchema = z.string().regex(/^prompt_[0-9A-Za-z]{16}$/);
|
|
106
|
-
export const requestIdSchema = z.string().regex(/^req_[0-9A-Za-z]{16}$/);
|
|
107
|
-
export const checkoutAttemptIdSchema = z.string().regex(/^ca_[0-9A-Za-z]{16}$/);
|
|
108
25
|
export const turnIdSchema = z.string().regex(/^turn_[0-9A-Za-z]{16}$/);
|
|
109
26
|
export const functionCallIdSchema = z.string().regex(/^fc_[0-9A-Za-z]{16}$/);
|
|
110
27
|
export const skillIdSchema = z.string().regex(/^skill_[0-9A-Za-z]{16}$/);
|
|
111
|
-
/**
|
|
112
|
-
* API key token + digest helpers. The digest is sha256 hex (64 chars); the
|
|
113
|
-
* fragment is `ba_` + 2 base62 chars. Both stored columns are format-checked
|
|
114
|
-
* in the migration.
|
|
115
|
-
*/
|
|
28
|
+
/** API keys are `ba_` + 40 base62 characters. */
|
|
116
29
|
export const apiKeyTokenSchema = z.string().regex(/^ba_[0-9A-Za-z]{40}$/);
|
|
117
|
-
export const apiKeyDigestSchema = z.string().regex(/^[0-9a-f]{64}$/);
|
|
118
|
-
export const apiKeyFragmentSchema = z.string().regex(/^ba_[0-9A-Za-z]{2}$/);
|
|
119
30
|
// Provider key fragment — last 4 chars of the secret, display-only.
|
|
120
31
|
export const providerKeyFragmentSchema = z.string().min(1).max(4);
|
|
121
32
|
export const chatConnectionIdSchema = z.string().regex(/^cc_[0-9A-Za-z]{16}$/);
|
|
@@ -3,7 +3,7 @@ export { receivedApiErrorResponseSchema } from "./api.ts";
|
|
|
3
3
|
export type { ApprovalDecision, ApprovalPolicy, ToolExecutionReference, ToolReference, } from "./entities/agent-approval.ts";
|
|
4
4
|
export { approvalDecisionSchema, approvalPolicySchema, toolExecutionReferenceSchema, toolReferenceSchema, } from "./entities/agent-approval.ts";
|
|
5
5
|
export { chatFunctionNameSchema } from "./entities/agent-tools.ts";
|
|
6
|
-
export { agentConfigSchema, agentResponseSchema,
|
|
6
|
+
export { agentConfigSchema, agentResponseSchema, agentStatusSchema, agentsListQuerySchema, agentsResponseSchema, createAgentBodySchema, updateAgentBodySchema, } from "./entities/agents.ts";
|
|
7
7
|
export { artifactDownloadUrlResponseSchema, artifactListItemSchema, artifactsListResponseSchema, } from "./entities/artifacts.ts";
|
|
8
8
|
export { attributionCreateInputSchema, metadataSchema, } from "./entities/attribution.ts";
|
|
9
9
|
export type { ChatFunctionCallEvent, ChatFunctionDefinition, ChatFunctionDefinitions, ChatFunctionOutcome, ClaimChatFunctionBody, PromptVariables, ResolveChatFunctionBody, UsageSummary, } from "./entities/chat.ts";
|
|
@@ -12,7 +12,7 @@ export { chatConfigurationSchema, chatConnectionSchema, chatConnectionsResponseS
|
|
|
12
12
|
export { approveMcpOauthAuthorizationBodySchema, createMcpConnectionBodySchema, mcpAttachmentResponseSchema, mcpAttachmentsResponseSchema, mcpConnectionAuthTypeSchema, mcpConnectionOauthConnectResponseSchema, mcpConnectionReconnectResultSchema, mcpConnectionResponseSchema, mcpConnectionStatusSchema, mcpConnectionsResponseSchema, mcpConnectionTestErrorCodeSchema, mcpConnectionTestResponseSchema, mcpOauthAuthorizationLaunchResponseSchema, reconnectMcpConnectionBodySchema, updateMcpAttachmentBodySchema, updateMcpConnectionBodySchema, } from "./entities/mcp-connections.ts";
|
|
13
13
|
export { createMemoryBodySchema, memoriesListResponseSchema, memoryResponseSchema, memorySchema, updateMemoryBodySchema, } from "./entities/memories.ts";
|
|
14
14
|
export { createMerchantConnectionBodySchema, merchantBindingResponseSchema, merchantBindingsResponseSchema, merchantConnectionResponseSchema, merchantConnectionSchema, merchantConnectionStatusSchema, merchantCustomerBindingSchema, merchantEnvironmentSchema, merchantGuardSchema, merchantProviderSchema, merchantUsageEventNextAction, merchantUsageEventNextActionSchema, merchantUsageEventSchema, merchantUsageEventStatusSchema, merchantUsageEventsResponseSchema, merchantUsageSummaryQuerySchema, merchantUsageSummaryResponseSchema, merchantUsageSummarySchema, merchantWorkflowIssueSchema, updateMerchantConnectionBodySchema, upsertMerchantBindingBodySchema, } from "./entities/merchant.ts";
|
|
15
|
-
export { createPromptBodySchema, parsePromptVariables, promptResponseSchema,
|
|
15
|
+
export { createPromptBodySchema, parsePromptVariables, promptResponseSchema, promptsListQuerySchema, promptsResponseSchema, promptTemplateSchema, renderPromptTemplate, updatePromptBodySchema, } from "./entities/prompts.ts";
|
|
16
16
|
export { createProviderBodySchema, providerListItemSchema, providerModelsResponseSchema, providerResponseSchema, providersResponseSchema, providerTypeSchema, thinkingLevelsResponseSchema, updateProviderBodySchema, } from "./entities/providers.ts";
|
|
17
17
|
export type { ChatSteerConsumedEvent, SessionActivity, SessionInput, SessionInputResponse, SessionInputState, SessionInputsQuery, SessionInputsResponse, StopSessionBody, StopSessionResponse, SubmitSessionInputBody, } from "./entities/session-inputs.ts";
|
|
18
18
|
export { chatSteerConsumedEventSchema, sessionActivitySchema, sessionInputRequestIdSchema, sessionInputResponseSchema, sessionInputSchema, sessionInputStateSchema, sessionInputsQuerySchema, sessionInputsResponseSchema, stopSessionBodySchema, stopSessionResponseSchema, submitSessionInputBodySchema, } from "./entities/session-inputs.ts";
|
|
@@ -21,7 +21,7 @@ export { continueToolApprovalsBodySchema, latestSessionListItemSchema, latestSes
|
|
|
21
21
|
export { copySkillBodySchema, createSkillBodySchema, skillCopyResultsSchema, skillDetailSchema, skillsListResponseSchema, } from "./entities/skills.ts";
|
|
22
22
|
export type { SpendingLimit, SpendingLimitResponse, SpendingLimitStopDetails, SpendingLimitStopEvent, UpdateSpendingLimitBody, } from "./entities/spending-limits.ts";
|
|
23
23
|
export { nextSpendingLimitReset, spendingLimitPeriodSchema, spendingLimitResetIntervalSchema, spendingLimitResponseSchema, spendingLimitSchema, spendingLimitStopDetailsSchema, spendingLimitStopEventSchema, updateSpendingLimitBodySchema, } from "./entities/spending-limits.ts";
|
|
24
|
-
export { createTaskBodySchema, createTaskResponseSchema, createTaskRunBodySchema, createTaskRunResponseSchema, taskCronConfigSchema, taskIntervalConfigSchema, taskListItemSchema, taskOnceConfigSchema, taskResponseSchema, taskRunMessagesResponseSchema, taskRunResponseSchema,
|
|
24
|
+
export { createTaskBodySchema, createTaskResponseSchema, createTaskRunBodySchema, createTaskRunResponseSchema, taskCronConfigSchema, taskIntervalConfigSchema, taskListItemSchema, taskOnceConfigSchema, taskResponseSchema, taskRunMessagesResponseSchema, taskRunResponseSchema, taskRunStatusSchema, taskRunsListResponseSchema, taskScheduleInputSchema, taskScheduleKindSchema, tasksListResponseSchema, updateTaskBodySchema, } from "./entities/tasks.ts";
|
|
25
25
|
export { quotaSchema, subscriptionStatusSchema, tenantDeletionSchema, tenantResponseSchema, tenantSchema, tenantSettingsResponseSchema, updateTenantSettingsBodySchema, } from "./entities/tenants.ts";
|
|
26
26
|
export type { SessionUsageQuery, SessionUsageResponse, UsageBucket, UsageOverviewQuery, UsageOverviewResponse, UsageResponse, UsageTotals, } from "./entities/usage.ts";
|
|
27
27
|
export { sessionUsageQuerySchema, sessionUsageResponseSchema, usageOverviewQuerySchema, usageOverviewResponseSchema, usageResponseSchema, } from "./entities/usage.ts";
|
package/dist/contracts/index.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
export { receivedApiErrorResponseSchema } from "./api.js";
|
|
4
4
|
export { approvalDecisionSchema, approvalPolicySchema, toolExecutionReferenceSchema, toolReferenceSchema, } from "./entities/agent-approval.js";
|
|
5
5
|
export { chatFunctionNameSchema } from "./entities/agent-tools.js";
|
|
6
|
-
export { agentConfigSchema, agentResponseSchema,
|
|
6
|
+
export { agentConfigSchema, agentResponseSchema, agentStatusSchema, agentsListQuerySchema, agentsResponseSchema, createAgentBodySchema, updateAgentBodySchema, } from "./entities/agents.js";
|
|
7
7
|
export { artifactDownloadUrlResponseSchema, artifactListItemSchema, artifactsListResponseSchema, } from "./entities/artifacts.js";
|
|
8
8
|
export { attributionCreateInputSchema, metadataSchema, } from "./entities/attribution.js";
|
|
9
9
|
export { blazingAgentsChatMessageMetadataSchema, chatFunctionCallEventSchema, chatFunctionDefinitionSchema, chatFunctionDefinitionsSchema, chatFunctionOutcomeSchema, chatModeSchema, chatRequestBodySchema, chatTriggerSchema, claimChatFunctionBodySchema, claimChatFunctionResponseSchema, generationRequestBodySchema, jsonSchemaShapeSchema, MAX_CHAT_FUNCTION_DEFINITIONS_BYTES, MAX_CHAT_FUNCTION_PAYLOAD_BYTES, MAX_CHAT_FUNCTIONS, promptVariablesSchema, resolveChatFunctionBodySchema, resolveChatFunctionResponseSchema, usageSummarySchema, } from "./entities/chat.js";
|
|
@@ -11,13 +11,13 @@ export { chatConfigurationSchema, chatConnectionSchema, chatConnectionsResponseS
|
|
|
11
11
|
export { approveMcpOauthAuthorizationBodySchema, createMcpConnectionBodySchema, mcpAttachmentResponseSchema, mcpAttachmentsResponseSchema, mcpConnectionAuthTypeSchema, mcpConnectionOauthConnectResponseSchema, mcpConnectionReconnectResultSchema, mcpConnectionResponseSchema, mcpConnectionStatusSchema, mcpConnectionsResponseSchema, mcpConnectionTestErrorCodeSchema, mcpConnectionTestResponseSchema, mcpOauthAuthorizationLaunchResponseSchema, reconnectMcpConnectionBodySchema, updateMcpAttachmentBodySchema, updateMcpConnectionBodySchema, } from "./entities/mcp-connections.js";
|
|
12
12
|
export { createMemoryBodySchema, memoriesListResponseSchema, memoryResponseSchema, memorySchema, updateMemoryBodySchema, } from "./entities/memories.js";
|
|
13
13
|
export { createMerchantConnectionBodySchema, merchantBindingResponseSchema, merchantBindingsResponseSchema, merchantConnectionResponseSchema, merchantConnectionSchema, merchantConnectionStatusSchema, merchantCustomerBindingSchema, merchantEnvironmentSchema, merchantGuardSchema, merchantProviderSchema, merchantUsageEventNextAction, merchantUsageEventNextActionSchema, merchantUsageEventSchema, merchantUsageEventStatusSchema, merchantUsageEventsResponseSchema, merchantUsageSummaryQuerySchema, merchantUsageSummaryResponseSchema, merchantUsageSummarySchema, merchantWorkflowIssueSchema, updateMerchantConnectionBodySchema, upsertMerchantBindingBodySchema, } from "./entities/merchant.js";
|
|
14
|
-
export { createPromptBodySchema, parsePromptVariables, promptResponseSchema,
|
|
14
|
+
export { createPromptBodySchema, parsePromptVariables, promptResponseSchema, promptsListQuerySchema, promptsResponseSchema, promptTemplateSchema, renderPromptTemplate, updatePromptBodySchema, } from "./entities/prompts.js";
|
|
15
15
|
export { createProviderBodySchema, providerListItemSchema, providerModelsResponseSchema, providerResponseSchema, providersResponseSchema, providerTypeSchema, thinkingLevelsResponseSchema, updateProviderBodySchema, } from "./entities/providers.js";
|
|
16
16
|
export { chatSteerConsumedEventSchema, sessionActivitySchema, sessionInputRequestIdSchema, sessionInputResponseSchema, sessionInputSchema, sessionInputStateSchema, sessionInputsQuerySchema, sessionInputsResponseSchema, stopSessionBodySchema, stopSessionResponseSchema, submitSessionInputBodySchema, } from "./entities/session-inputs.js";
|
|
17
17
|
export { continueToolApprovalsBodySchema, latestSessionListItemSchema, latestSessionsListResponseSchema, sessionForkedFromSchema, sessionListItemSchema, sessionMessageSchema, sessionMessagesResponseSchema, sessionResponseSchema, sessionsListResponseSchema, toolApprovalContinuationStateSchema, toolApprovalDecisionSchema, toolApprovalStateSchema, toolApprovalsResponseSchema, } from "./entities/sessions.js";
|
|
18
18
|
export { copySkillBodySchema, createSkillBodySchema, skillCopyResultsSchema, skillDetailSchema, skillsListResponseSchema, } from "./entities/skills.js";
|
|
19
19
|
export { nextSpendingLimitReset, spendingLimitPeriodSchema, spendingLimitResetIntervalSchema, spendingLimitResponseSchema, spendingLimitSchema, spendingLimitStopDetailsSchema, spendingLimitStopEventSchema, updateSpendingLimitBodySchema, } from "./entities/spending-limits.js";
|
|
20
|
-
export { createTaskBodySchema, createTaskResponseSchema, createTaskRunBodySchema, createTaskRunResponseSchema, taskCronConfigSchema, taskIntervalConfigSchema, taskListItemSchema, taskOnceConfigSchema, taskResponseSchema, taskRunMessagesResponseSchema, taskRunResponseSchema,
|
|
20
|
+
export { createTaskBodySchema, createTaskResponseSchema, createTaskRunBodySchema, createTaskRunResponseSchema, taskCronConfigSchema, taskIntervalConfigSchema, taskListItemSchema, taskOnceConfigSchema, taskResponseSchema, taskRunMessagesResponseSchema, taskRunResponseSchema, taskRunStatusSchema, taskRunsListResponseSchema, taskScheduleInputSchema, taskScheduleKindSchema, tasksListResponseSchema, updateTaskBodySchema, } from "./entities/tasks.js";
|
|
21
21
|
export { quotaSchema, subscriptionStatusSchema, tenantDeletionSchema, tenantResponseSchema, tenantSchema, tenantSettingsResponseSchema, updateTenantSettingsBodySchema, } from "./entities/tenants.js";
|
|
22
22
|
export { sessionUsageQuerySchema, sessionUsageResponseSchema, usageOverviewQuerySchema, usageOverviewResponseSchema, usageResponseSchema, } from "./entities/usage.js";
|
|
23
23
|
export { createWorkspaceBodySchema, updateWorkspaceBodySchema, workspaceSchema, workspacesListResponseSchema, workspaceTierSchema, } from "./entities/workspaces.js";
|
|
@@ -2,33 +2,14 @@
|
|
|
2
2
|
* Effort-wide convention: every coded limit lives here as an UPPER_SNAKE_CASE
|
|
3
3
|
* constant. No scattered magic numbers.
|
|
4
4
|
*/
|
|
5
|
-
/**
|
|
6
|
-
* API keys — max 5 per tenant, name ≤ 80 (docs/adr/0004).
|
|
7
|
-
*/
|
|
8
|
-
export declare const MAX_API_KEYS_PER_TENANT = 5;
|
|
9
|
-
export declare const MAX_API_KEY_NAME_LENGTH = 80;
|
|
10
|
-
/** API key token shape — `ba_` + 40 base62 chars (~230 bits entropy). */
|
|
11
|
-
export declare const API_KEY_BODY_LENGTH = 40;
|
|
12
|
-
export declare const API_KEY_FRAGMENT_BODY_LENGTH = 2;
|
|
13
5
|
export declare const MAX_WORKSPACE_NAME_LENGTH = 80;
|
|
14
|
-
export declare const MAX_WORKSPACE_ARCHIVE_ENTRIES = 16384;
|
|
15
|
-
export declare const DEFAULT_WORKSPACES_LIST_LIMIT = 50;
|
|
16
|
-
export declare const MAX_WORKSPACES_LIST_LIMIT = 200;
|
|
17
6
|
/**
|
|
18
|
-
* Agent Skills —
|
|
19
|
-
*
|
|
20
|
-
* specification accepted in ADR-0028.
|
|
7
|
+
* Agent Skills — frontmatter follows the Agent Skills specification accepted
|
|
8
|
+
* in ADR-0028.
|
|
21
9
|
*/
|
|
22
|
-
export declare const MAX_SKILLS_PER_AGENT = 100;
|
|
23
|
-
export declare const MAX_SKILL_UPLOAD_BYTES: number;
|
|
24
|
-
export declare const MAX_SKILL_UNCOMPRESSED_BYTES: number;
|
|
25
|
-
export declare const MAX_SKILL_FILES = 100;
|
|
26
10
|
export declare const MAX_SKILL_NAME_LENGTH = 64;
|
|
27
11
|
export declare const MAX_SKILL_DESCRIPTION_LENGTH = 1024;
|
|
28
|
-
export declare const MAX_SKILL_COMPATIBILITY_LENGTH = 500;
|
|
29
12
|
export declare const MAX_SKILL_COPY_DESTINATIONS = 30;
|
|
30
|
-
export declare const DEFAULT_SKILLS_LIST_LIMIT = 50;
|
|
31
|
-
export declare const MAX_SKILLS_LIST_LIMIT = 100;
|
|
32
13
|
export declare const DEFAULT_PROMPTS_LIST_LIMIT = 50;
|
|
33
14
|
export declare const MAX_PROMPTS_LIST_LIMIT = 100;
|
|
34
15
|
export declare const MAX_PROMPT_TEMPLATE_BYTES: number;
|
|
@@ -38,16 +19,9 @@ export declare const MAX_PROMPT_NAME_LENGTH = 80;
|
|
|
38
19
|
export declare const MAX_TASK_NAME_LENGTH = 80;
|
|
39
20
|
export declare const MAX_TASK_PROMPT_LENGTH = 6000;
|
|
40
21
|
export declare const MIN_TASK_INTERVAL_MS = 60000;
|
|
41
|
-
/**
|
|
42
|
-
* Providers — max 20 per tenant, name ≤ 80.
|
|
43
|
-
*/
|
|
44
|
-
export declare const MAX_PROVIDERS_PER_TENANT = 20;
|
|
22
|
+
/** Providers — name ≤ 80. */
|
|
45
23
|
export declare const MAX_PROVIDER_NAME_LENGTH = 80;
|
|
46
|
-
|
|
47
|
-
/**
|
|
48
|
-
* MCP Connections — max 50 per tenant, name ≤ 80, URL ≤ 2048.
|
|
49
|
-
*/
|
|
50
|
-
export declare const MAX_MCP_CONNECTIONS_PER_TENANT = 50;
|
|
24
|
+
/** MCP Connections — name ≤ 80, URL ≤ 2048. */
|
|
51
25
|
export declare const MAX_MCP_CONNECTIONS_PER_AGENT = 10;
|
|
52
26
|
export declare const MAX_MCP_CONNECTION_NAME_LENGTH = 80;
|
|
53
27
|
export declare const MAX_MCP_CONNECTION_URL_LENGTH = 2048;
|
|
@@ -60,54 +34,17 @@ export declare const MAX_MCP_SERVER_NAME_LENGTH = 200;
|
|
|
60
34
|
export declare const MAX_MCP_SERVER_VERSION_LENGTH = 100;
|
|
61
35
|
export declare const MAX_MCP_TOOL_NAME_LENGTH = 256;
|
|
62
36
|
export declare const MAX_MCP_TOOLS_PER_CONNECTION = 128;
|
|
63
|
-
export declare const MAX_MCP_TOOLS_PER_TURN = 256;
|
|
64
|
-
export declare const MAX_MCP_CONNECTION_SETUP_CONCURRENCY = 4;
|
|
65
|
-
export declare const MAX_MCP_TOOL_KEY_LENGTH = 63;
|
|
66
|
-
export declare const MAX_MCP_TOOL_DEFINITION_BYTES: number;
|
|
67
|
-
export declare const MAX_MCP_CONNECTION_TOOL_DEFINITIONS_BYTES: number;
|
|
68
|
-
export declare const MAX_MCP_TOOL_RESULT_BYTES: number;
|
|
69
37
|
export declare const MAX_MCP_ATTACHMENT_METADATA_KEYS = 32;
|
|
70
38
|
export declare const MAX_MCP_ATTACHMENT_METADATA_KEY_LENGTH = 64;
|
|
71
|
-
export declare const MAX_MCP_REQUEST_CONTEXT_BYTES: number;
|
|
72
39
|
/** Agents — name ≤ 80, instructions ≤ 3000. */
|
|
73
40
|
export declare const MAX_AGENT_NAME_LENGTH = 80;
|
|
74
41
|
export declare const DEFAULT_AGENTS_LIST_LIMIT = 50;
|
|
75
42
|
export declare const MAX_AGENTS_LIST_LIMIT = 100;
|
|
76
43
|
export declare const MAX_AGENT_INSTRUCTIONS_LENGTH = 3000;
|
|
77
|
-
/**
|
|
78
|
-
* Artifacts — 10 MiB per file, 10 publications per Tool call, and 100
|
|
79
|
-
* Artifacts per Session.
|
|
80
|
-
*/
|
|
44
|
+
/** Artifacts — 10 MiB per file. */
|
|
81
45
|
export declare const MAX_ARTIFACT_BYTES: number;
|
|
82
|
-
|
|
83
|
-
export declare const MAX_ARTIFACTS_PER_SESSION = 100;
|
|
84
|
-
/**
|
|
85
|
-
* Sandbox operations — 30-second native Cloudflare commands under a bounded
|
|
86
|
-
* private HTTP caller budget that includes cold Container startup. File
|
|
87
|
-
* transfers are 10 MiB decoded under a 15 MiB authenticated internal JSON
|
|
88
|
-
* request.
|
|
89
|
-
*/
|
|
90
|
-
export declare const CLOUDFLARE_SANDBOX_EXEC_MS = 30000;
|
|
91
|
-
export declare const MAX_SANDBOX_OPERATION_HTTP_MS = 160000;
|
|
92
|
-
export declare const MAX_SANDBOX_FILE_TRANSFER_BYTES: number;
|
|
93
|
-
export declare const MAX_SANDBOX_FILE_CHUNK_BYTES: number;
|
|
94
|
-
export declare const MAX_SANDBOX_REQUEST_BODY_BYTES: number;
|
|
95
|
-
/**
|
|
96
|
-
* Memories — one pool per Agent spanning all `userId` partitions, capped
|
|
97
|
-
* globally at 500 rows (LRU eviction on create), 10 KiB of text per memory
|
|
98
|
-
* (zod byte refine + DB `octet_length` check).
|
|
99
|
-
*/
|
|
100
|
-
export declare const MAX_MEMORIES_PER_AGENT = 500;
|
|
46
|
+
/** Memories — 10 KiB of text per memory. */
|
|
101
47
|
export declare const MAX_MEMORY_TEXT_BYTES: number;
|
|
102
|
-
export declare const DEFAULT_MEMORIES_LIST_LIMIT = 50;
|
|
103
|
-
export declare const MAX_MEMORIES_LIST_LIMIT = 100;
|
|
104
|
-
export declare const DEFAULT_MEMORY_TOOL_SEARCH_LIMIT = 10;
|
|
105
|
-
export declare const MAX_MEMORY_TOOL_SEARCH_LIMIT = 20;
|
|
106
|
-
/**
|
|
107
|
-
* Sessions — messages endpoint default limit 50, max 200.
|
|
108
|
-
*/
|
|
109
|
-
export declare const DEFAULT_SESSION_MESSAGES_LIMIT = 50;
|
|
110
|
-
export declare const MAX_SESSION_MESSAGES_LIMIT = 200;
|
|
111
48
|
/**
|
|
112
49
|
* Usage — range cap 31 days, default 30 days; top-N sessions default 50, max 200.
|
|
113
50
|
*/
|
|
@@ -124,19 +61,9 @@ export declare const MAX_QUOTA_RESET_DAY = 28;
|
|
|
124
61
|
*/
|
|
125
62
|
export declare const MAX_TENANT_NAME_LENGTH = 80;
|
|
126
63
|
/**
|
|
127
|
-
*
|
|
128
|
-
*
|
|
129
|
-
*/
|
|
130
|
-
export declare const TENANT_CREATION_BURST_LIMIT = 60;
|
|
131
|
-
export declare const TENANT_CREATION_BURST_WINDOW_MS = 60000;
|
|
132
|
-
export declare const TENANT_CREATION_SUSTAINED_LIMIT = 1000;
|
|
133
|
-
export declare const TENANT_CREATION_SUSTAINED_WINDOW_MS = 86400000;
|
|
134
|
-
/**
|
|
135
|
-
* Merchant monetization (ADR-0048) — bindings/usage-event list paging, guard
|
|
136
|
-
* rule bounds, and the delivery-health summary window.
|
|
64
|
+
* Merchant monetization (ADR-0048) — guard rule bounds and the delivery-health
|
|
65
|
+
* summary window.
|
|
137
66
|
*/
|
|
138
|
-
export declare const DEFAULT_MERCHANT_LIST_LIMIT = 50;
|
|
139
|
-
export declare const MAX_MERCHANT_LIST_LIMIT = 200;
|
|
140
67
|
export declare const MAX_MERCHANT_PRODUCT_IDS = 100;
|
|
141
68
|
export declare const DEFAULT_MERCHANT_USAGE_SUMMARY_DAYS = 14;
|
|
142
69
|
export declare const MAX_MERCHANT_USAGE_SUMMARY_DAYS = 90;
|