@leaflow/sdk 0.183.0 → 0.184.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.
@@ -661,6 +661,8 @@ export interface RequestResource {
661
661
  input_tokens: number;
662
662
  /** The model named in the request */
663
663
  model_id: string;
664
+ /** The request operation, such as video_create or video_retrieve. Absent for historical requests where it was not recorded. */
665
+ operation?: string;
664
666
  output_tokens: number;
665
667
  reasoning_tokens: number;
666
668
  retries: number;
@@ -50,6 +50,7 @@ export declare const CursorPageRequestResource: zod.ZodObject<{
50
50
  id: zod.ZodString;
51
51
  input_tokens: zod.ZodInt;
52
52
  model_id: zod.ZodString;
53
+ operation: zod.ZodOptional<zod.ZodString>;
53
54
  output_tokens: zod.ZodInt;
54
55
  reasoning_tokens: zod.ZodInt;
55
56
  retries: zod.ZodInt;
@@ -50,6 +50,7 @@ export declare const RequestResource: zod.ZodObject<{
50
50
  id: zod.ZodString;
51
51
  input_tokens: zod.ZodInt;
52
52
  model_id: zod.ZodString;
53
+ operation: zod.ZodOptional<zod.ZodString>;
53
54
  output_tokens: zod.ZodInt;
54
55
  reasoning_tokens: zod.ZodInt;
55
56
  retries: zod.ZodInt;
@@ -59,6 +59,10 @@ export const RequestResource = zod.strictObject({
59
59
  .describe("A typed request id such as `req_01j...`. Legacy rows may still be returned as a bare UUID."),
60
60
  input_tokens: zod.int(),
61
61
  model_id: zod.string().describe("The model named in the request"),
62
+ operation: zod
63
+ .string()
64
+ .optional()
65
+ .describe("The request operation, such as video_create or video_retrieve. Absent for historical requests where it was not recorded."),
62
66
  output_tokens: zod.int(),
63
67
  reasoning_tokens: zod.int(),
64
68
  retries: zod.int(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leaflow/sdk",
3
- "version": "0.183.0",
3
+ "version": "0.184.0",
4
4
  "description": "Leaflow 平台 API 的 TypeScript SDK",
5
5
  "license": "MIT",
6
6
  "repository": {