@leaflow/sdk 0.130.0 → 0.131.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.
@@ -249,7 +249,11 @@ export declare const RequestResourceUsageSource: {
249
249
  readonly estimated: "estimated";
250
250
  };
251
251
  export interface RequestResource {
252
- api_key_id: string;
252
+ /**
253
+ * Null for a request made by an internal service directly for the project.
254
+ * @nullable
255
+ */
256
+ api_key_id: string | null;
253
257
  /** The portion served from the upstream prefix cache, which costs an order of magnitude less than ordinary input */
254
258
  cache_read_tokens: number;
255
259
  cache_write_tokens: number;
@@ -31,7 +31,7 @@
31
31
  import * as zod from "zod";
32
32
  export declare const CursorPageRequestResource: zod.ZodObject<{
33
33
  items: zod.ZodArray<zod.ZodObject<{
34
- api_key_id: zod.ZodUUID;
34
+ api_key_id: zod.ZodNullable<zod.ZodUUID>;
35
35
  cache_read_tokens: zod.ZodInt;
36
36
  cache_write_tokens: zod.ZodInt;
37
37
  error_code: zod.ZodString;
@@ -30,7 +30,7 @@
30
30
  */
31
31
  import * as zod from "zod";
32
32
  export declare const RequestResource: zod.ZodObject<{
33
- api_key_id: zod.ZodUUID;
33
+ api_key_id: zod.ZodNullable<zod.ZodUUID>;
34
34
  cache_read_tokens: zod.ZodInt;
35
35
  cache_write_tokens: zod.ZodInt;
36
36
  error_code: zod.ZodString;
@@ -30,7 +30,10 @@
30
30
  */
31
31
  import * as zod from "zod";
32
32
  export const RequestResource = zod.strictObject({
33
- api_key_id: zod.uuid(),
33
+ api_key_id: zod
34
+ .uuid()
35
+ .nullable()
36
+ .describe("Null for a request made by an internal service directly for the project."),
34
37
  cache_read_tokens: zod
35
38
  .int()
36
39
  .describe("The portion served from the upstream prefix cache, which costs an order of magnitude less than ordinary input"),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leaflow/sdk",
3
- "version": "0.130.0",
3
+ "version": "0.131.0",
4
4
  "description": "Leaflow 平台 API 的 TypeScript SDK",
5
5
  "license": "MIT",
6
6
  "repository": {