@blazingagents/sdk 0.25.0 → 0.26.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.
@@ -19,6 +19,7 @@ export declare const apiErrorCodeSchema: z.ZodEnum<{
19
19
  function_call_conflict: "function_call_conflict";
20
20
  idempotency_conflict: "idempotency_conflict";
21
21
  input_idempotency_conflict: "input_idempotency_conflict";
22
+ insufficient_scope: "insufficient_scope";
22
23
  internal: "internal";
23
24
  invalid_cursor: "invalid_cursor";
24
25
  invalid_request: "invalid_request";
@@ -15,6 +15,7 @@ export const apiErrorCodeSchema = z.enum([
15
15
  "validation_failed",
16
16
  "unauthorized",
17
17
  "forbidden",
18
+ "insufficient_scope",
18
19
  "not_found",
19
20
  "quota_exceeded",
20
21
  "model_spending_limit_exceeded",
@@ -19,7 +19,7 @@ export declare const promptIdSchema: z.ZodString;
19
19
  export declare const turnIdSchema: z.ZodString;
20
20
  export declare const functionCallIdSchema: z.ZodString;
21
21
  export declare const skillIdSchema: z.ZodString;
22
- /** API keys are `ba_` + 40 base62 characters. */
22
+ /** API keys are `ba_read_` or `ba_full_` + 40 base62 characters. */
23
23
  export declare const apiKeyTokenSchema: z.ZodString;
24
24
  export declare const providerKeyFragmentSchema: z.ZodString;
25
25
  export declare const chatConnectionIdSchema: z.ZodString;
@@ -25,8 +25,10 @@ export const promptIdSchema = z.string().regex(/^prompt_[0-9A-Za-z]{16}$/);
25
25
  export const turnIdSchema = z.string().regex(/^turn_[0-9A-Za-z]{16}$/);
26
26
  export const functionCallIdSchema = z.string().regex(/^fc_[0-9A-Za-z]{16}$/);
27
27
  export const skillIdSchema = z.string().regex(/^skill_[0-9A-Za-z]{16}$/);
28
- /** API keys are `ba_` + 40 base62 characters. */
29
- export const apiKeyTokenSchema = z.string().regex(/^ba_[0-9A-Za-z]{40}$/);
28
+ /** API keys are `ba_read_` or `ba_full_` + 40 base62 characters. */
29
+ export const apiKeyTokenSchema = z
30
+ .string()
31
+ .regex(/^ba_(read|full)_[0-9A-Za-z]{40}$/);
30
32
  // Provider key fragment — last 4 chars of the secret, display-only.
31
33
  export const providerKeyFragmentSchema = z.string().min(1).max(4);
32
34
  export const chatConnectionIdSchema = z.string().regex(/^cc_[0-9A-Za-z]{16}$/);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blazingagents/sdk",
3
- "version": "0.25.0",
3
+ "version": "0.26.0",
4
4
  "description": "TypeScript SDK for the Blazing Agents API",
5
5
  "homepage": "https://docs.blazingagents.com",
6
6
  "bugs": {