@leaflow/sdk 0.20.0 → 0.21.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.
@@ -50,8 +50,6 @@ export type SubmitWeixinVerifyCodeBody = NonNullable<operations["submit-weixin-v
50
50
  export type SubmitDynamicCallResultBody = NonNullable<operations["submit-dynamic-call-result"]["requestBody"]>["content"]["application/json"];
51
51
  /** `GET /api/v1/memories` 成功时的响应体。 */
52
52
  export type ListMemoriesResult = operations["list-memories"]["responses"][200]["content"]["application/json"];
53
- /** `GET /api/v1/models` 成功时的响应体。 */
54
- export type ListModelsResult = operations["list-models"]["responses"][200]["content"]["application/json"];
55
53
  /** `GET /api/v1/skills` 成功时的响应体。 */
56
54
  export type ListSkillsResult = operations["list-skills"]["responses"][200]["content"]["application/json"];
57
55
  /** `POST /api/v1/skills` 成功时的响应体。 */
@@ -351,26 +351,6 @@ export interface paths {
351
351
  patch?: never;
352
352
  trace?: never;
353
353
  };
354
- "/api/v1/models": {
355
- parameters: {
356
- query?: never;
357
- header?: never;
358
- path?: never;
359
- cookie?: never;
360
- };
361
- /**
362
- * List available models
363
- * @description The models currently offered, with their context window, reasoning levels and supported input types. Use it to populate the model picker in conversation settings.
364
- */
365
- get: operations["list-models"];
366
- put?: never;
367
- post?: never;
368
- delete?: never;
369
- options?: never;
370
- head?: never;
371
- patch?: never;
372
- trace?: never;
373
- };
374
354
  "/api/v1/skills": {
375
355
  parameters: {
376
356
  query?: never;
@@ -476,7 +456,7 @@ export interface paths {
476
456
  head?: never;
477
457
  /**
478
458
  * Update conversation settings
479
- * @description Changes the model, reasoning level, approval mode and archived state. A change takes effect from the next turn; a turn already running keeps the settings it started with. Model and reasoning level change independently: sending one leaves the other alone.
459
+ * @description Changes the approval mode and archived state. A change takes effect from the next turn; a turn already running keeps the settings it started with.
480
460
  */
481
461
  patch: operations["update-thread"];
482
462
  trace?: never;
@@ -857,32 +837,6 @@ export interface components {
857
837
  VerifyCodeRequestBody: {
858
838
  code: string;
859
839
  };
860
- ModelResource: {
861
- /** Format: int64 */
862
- contextWindow: number;
863
- inputModalities: string[] | null;
864
- key: string;
865
- reasoningTiers: string[] | null;
866
- };
867
- MemoryListResponseBody: {
868
- items: components["schemas"]["MemoryResource"][];
869
- };
870
- MemoryResource: {
871
- /** @description The fact itself */
872
- body: string;
873
- /** Format: date-time */
874
- createdAt: string;
875
- id: string;
876
- /** @description The name the assistant gave this fact; it overwrites or deletes its own entries by that name */
877
- name: string;
878
- /** @description Which conversation the assistant learned it in. That conversation may since have been deleted */
879
- sourceThreadId?: string;
880
- /** Format: date-time */
881
- updatedAt: string;
882
- };
883
- ModelListResponseBody: {
884
- models: components["schemas"]["ModelResource"][] | null;
885
- };
886
840
  SkillResource: {
887
841
  /**
888
842
  * @description True when the assistant wrote this skill during a conversation rather than a person
@@ -939,8 +893,6 @@ export interface components {
939
893
  enabled: boolean;
940
894
  };
941
895
  ThreadSummaryResource: {
942
- /** @description The tier this conversation runs at, or null when it follows the model's own default. */
943
- reasoningEffort: string | null;
944
896
  /** @enum {string} */
945
897
  approvalMode: "guardian" | "manual" | "yolo";
946
898
  archived: boolean;
@@ -964,8 +916,6 @@ export interface components {
964
916
  approvalMode?: "guardian" | "manual" | "yolo";
965
917
  };
966
918
  ContextResource: {
967
- /** @description The tier this conversation runs at, or null when it follows the model's own default. */
968
- reasoningEffort: string | null;
969
919
  /** Format: int64 */
970
920
  compactAt: number | null;
971
921
  model: string;
@@ -1074,14 +1024,6 @@ export interface components {
1074
1024
  /** @enum {string} */
1075
1025
  approvalMode?: "guardian" | "manual" | "yolo";
1076
1026
  archived?: boolean;
1077
- model?: string;
1078
- /**
1079
- * @description Which reasoning tier to run at, from the model's `reasoningTiers`. Null puts it back to
1080
- * the model's own default; leaving it out keeps whatever is set.
1081
- *
1082
- * Independent of `model` — sending one does not touch the other.
1083
- */
1084
- reasoningEffort?: string | null;
1085
1027
  };
1086
1028
  DecideRequestBody: {
1087
1029
  approved: boolean;
@@ -1099,6 +1041,22 @@ export interface components {
1099
1041
  */
1100
1042
  parts: components["schemas"]["MessagePart"][];
1101
1043
  };
1044
+ MemoryListResponseBody: {
1045
+ items: components["schemas"]["MemoryResource"][];
1046
+ };
1047
+ MemoryResource: {
1048
+ /** @description The fact itself */
1049
+ body: string;
1050
+ /** Format: date-time */
1051
+ createdAt: string;
1052
+ id: string;
1053
+ /** @description The name the assistant gave this fact; it overwrites or deletes its own entries by that name */
1054
+ name: string;
1055
+ /** @description Which conversation the assistant learned it in. That conversation may since have been deleted */
1056
+ sourceThreadId?: string;
1057
+ /** Format: date-time */
1058
+ updatedAt: string;
1059
+ };
1102
1060
  /**
1103
1061
  * @description One piece of a message. `type` says which of the fields below carries it:
1104
1062
  *
@@ -1914,35 +1872,6 @@ export interface operations {
1914
1872
  };
1915
1873
  };
1916
1874
  };
1917
- "list-models": {
1918
- parameters: {
1919
- query?: never;
1920
- header?: never;
1921
- path?: never;
1922
- cookie?: never;
1923
- };
1924
- requestBody?: never;
1925
- responses: {
1926
- /** @description OK */
1927
- 200: {
1928
- headers: {
1929
- [name: string]: unknown;
1930
- };
1931
- content: {
1932
- "application/json": components["schemas"]["ModelListResponseBody"];
1933
- };
1934
- };
1935
- /** @description Error */
1936
- default: {
1937
- headers: {
1938
- [name: string]: unknown;
1939
- };
1940
- content: {
1941
- "application/json": components["schemas"]["Error"];
1942
- };
1943
- };
1944
- };
1945
- };
1946
1875
  "list-skills": {
1947
1876
  parameters: {
1948
1877
  query?: never;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leaflow/sdk",
3
- "version": "0.20.0",
3
+ "version": "0.21.0",
4
4
  "description": "Leaflow 平台 API 的 TypeScript SDK",
5
5
  "license": "MIT",
6
6
  "repository": {