@leaflow/sdk 0.20.0 → 0.22.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
|
|
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;
|
|
@@ -785,6 +765,22 @@ export interface components {
|
|
|
785
765
|
/** Format: date-time */
|
|
786
766
|
expiresAt: string;
|
|
787
767
|
};
|
|
768
|
+
PartResource: {
|
|
769
|
+
/** @description For `file` parts. Points at one of this entry's `attachments`. */
|
|
770
|
+
attachmentId?: string | null;
|
|
771
|
+
/**
|
|
772
|
+
* @description Addresses this part in the live stream — text arrives as `append` frames pointing at
|
|
773
|
+
* `/items/{item}/parts/{id}/text`.
|
|
774
|
+
*
|
|
775
|
+
* Not an array index. It looks like one today because parts are only ever appended, and a
|
|
776
|
+
* client that treats it as one keeps working right up until that stops being true.
|
|
777
|
+
*/
|
|
778
|
+
id: string;
|
|
779
|
+
/** @description For `text` parts. Grows as the answer is written. */
|
|
780
|
+
text?: string | null;
|
|
781
|
+
/** @enum {string} */
|
|
782
|
+
type: "text" | "file";
|
|
783
|
+
};
|
|
788
784
|
RejectionResource: {
|
|
789
785
|
/** Format: date-time */
|
|
790
786
|
at: string;
|
|
@@ -857,32 +853,6 @@ export interface components {
|
|
|
857
853
|
VerifyCodeRequestBody: {
|
|
858
854
|
code: string;
|
|
859
855
|
};
|
|
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
856
|
SkillResource: {
|
|
887
857
|
/**
|
|
888
858
|
* @description True when the assistant wrote this skill during a conversation rather than a person
|
|
@@ -939,8 +909,6 @@ export interface components {
|
|
|
939
909
|
enabled: boolean;
|
|
940
910
|
};
|
|
941
911
|
ThreadSummaryResource: {
|
|
942
|
-
/** @description The tier this conversation runs at, or null when it follows the model's own default. */
|
|
943
|
-
reasoningEffort: string | null;
|
|
944
912
|
/** @enum {string} */
|
|
945
913
|
approvalMode: "guardian" | "manual" | "yolo";
|
|
946
914
|
archived: boolean;
|
|
@@ -964,8 +932,6 @@ export interface components {
|
|
|
964
932
|
approvalMode?: "guardian" | "manual" | "yolo";
|
|
965
933
|
};
|
|
966
934
|
ContextResource: {
|
|
967
|
-
/** @description The tier this conversation runs at, or null when it follows the model's own default. */
|
|
968
|
-
reasoningEffort: string | null;
|
|
969
935
|
/** Format: int64 */
|
|
970
936
|
compactAt: number | null;
|
|
971
937
|
model: string;
|
|
@@ -1020,7 +986,14 @@ export interface components {
|
|
|
1020
986
|
/** @enum {string} */
|
|
1021
987
|
status: "pending" | "in_progress" | "completed" | "failed" | "declined" | "interrupted";
|
|
1022
988
|
target?: string | null;
|
|
1023
|
-
|
|
989
|
+
/**
|
|
990
|
+
* @description The content of this entry, in the order it was written. A message that is only text is a
|
|
991
|
+
* single part, which is most of them.
|
|
992
|
+
*
|
|
993
|
+
* An image belongs where it was written, so render these in order rather than putting
|
|
994
|
+
* attachments at the end.
|
|
995
|
+
*/
|
|
996
|
+
parts?: components["schemas"]["PartResource"][] | null;
|
|
1024
997
|
tool?: string | null;
|
|
1025
998
|
/**
|
|
1026
999
|
* @description Determines which fields this entry carries
|
|
@@ -1074,14 +1047,6 @@ export interface components {
|
|
|
1074
1047
|
/** @enum {string} */
|
|
1075
1048
|
approvalMode?: "guardian" | "manual" | "yolo";
|
|
1076
1049
|
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
1050
|
};
|
|
1086
1051
|
DecideRequestBody: {
|
|
1087
1052
|
approved: boolean;
|
|
@@ -1099,6 +1064,22 @@ export interface components {
|
|
|
1099
1064
|
*/
|
|
1100
1065
|
parts: components["schemas"]["MessagePart"][];
|
|
1101
1066
|
};
|
|
1067
|
+
MemoryListResponseBody: {
|
|
1068
|
+
items: components["schemas"]["MemoryResource"][];
|
|
1069
|
+
};
|
|
1070
|
+
MemoryResource: {
|
|
1071
|
+
/** @description The fact itself */
|
|
1072
|
+
body: string;
|
|
1073
|
+
/** Format: date-time */
|
|
1074
|
+
createdAt: string;
|
|
1075
|
+
id: string;
|
|
1076
|
+
/** @description The name the assistant gave this fact; it overwrites or deletes its own entries by that name */
|
|
1077
|
+
name: string;
|
|
1078
|
+
/** @description Which conversation the assistant learned it in. That conversation may since have been deleted */
|
|
1079
|
+
sourceThreadId?: string;
|
|
1080
|
+
/** Format: date-time */
|
|
1081
|
+
updatedAt: string;
|
|
1082
|
+
};
|
|
1102
1083
|
/**
|
|
1103
1084
|
* @description One piece of a message. `type` says which of the fields below carries it:
|
|
1104
1085
|
*
|
|
@@ -1128,7 +1109,13 @@ export interface components {
|
|
|
1128
1109
|
* block without `actions` keeps whatever was declared before.
|
|
1129
1110
|
*/
|
|
1130
1111
|
ClientContextRequest: {
|
|
1131
|
-
/**
|
|
1112
|
+
/**
|
|
1113
|
+
* @description The actions on offer right now.
|
|
1114
|
+
*
|
|
1115
|
+
* Omit it when nothing changed since the last message. Send `[]` to say there is nothing
|
|
1116
|
+
* on offer — those are different: a client that moves off the page it was attached to has
|
|
1117
|
+
* to be able to say so, or the assistant keeps calling actions that no longer make sense.
|
|
1118
|
+
*/
|
|
1132
1119
|
actions?: components["schemas"]["ClientActionRequest"][] | null;
|
|
1133
1120
|
/** @description Identifies this client while it stays open. Any stable string; one per tab or process. */
|
|
1134
1121
|
clientId: string;
|
|
@@ -1914,35 +1901,6 @@ export interface operations {
|
|
|
1914
1901
|
};
|
|
1915
1902
|
};
|
|
1916
1903
|
};
|
|
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
1904
|
"list-skills": {
|
|
1947
1905
|
parameters: {
|
|
1948
1906
|
query?: never;
|