@synsci/sdk 2.0.31 → 2.0.32-test.98.1
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.
- package/dist/src/v2/gen/sdk.gen.d.ts +32 -82
- package/dist/src/v2/gen/sdk.gen.js +25 -154
- package/dist/src/v2/gen/types.gen.d.ts +294 -229
- package/package.json +13 -13
- package/dist/test/review-contract.d.ts +0 -25
- package/dist/test/review-contract.js +0 -10
- package/dist/test/review.test.d.ts +0 -1
- package/dist/test/review.test.js +0 -21
|
@@ -224,7 +224,7 @@ export class Account extends HeyApiClient {
|
|
|
224
224
|
/**
|
|
225
225
|
* Get local session status
|
|
226
226
|
*
|
|
227
|
-
* Check whether this OpenScience server has a local
|
|
227
|
+
* Check whether this OpenScience server has a local Synthetic Sciences session without a network request.
|
|
228
228
|
*/
|
|
229
229
|
session(options) {
|
|
230
230
|
return (options?.client ?? this.client).get({
|
|
@@ -262,7 +262,7 @@ export class Account extends HeyApiClient {
|
|
|
262
262
|
});
|
|
263
263
|
}
|
|
264
264
|
/**
|
|
265
|
-
* Sign in with a
|
|
265
|
+
* Sign in with a Synthetic Sciences API key
|
|
266
266
|
*/
|
|
267
267
|
loginKey(parameters, options) {
|
|
268
268
|
const params = buildClientParams([parameters], [{ args: [{ in: "body", key: "key" }] }]);
|
|
@@ -826,40 +826,6 @@ export class Compute extends HeyApiClient {
|
|
|
826
826
|
return (this._jobs ??= new Jobs({ client: this.client }));
|
|
827
827
|
}
|
|
828
828
|
}
|
|
829
|
-
export class Review extends HeyApiClient {
|
|
830
|
-
/**
|
|
831
|
-
* Get reviewer preferences
|
|
832
|
-
*/
|
|
833
|
-
get(options) {
|
|
834
|
-
return (options?.client ?? this.client).get({
|
|
835
|
-
url: "/settings/review",
|
|
836
|
-
...options,
|
|
837
|
-
});
|
|
838
|
-
}
|
|
839
|
-
/**
|
|
840
|
-
* Update reviewer preferences
|
|
841
|
-
*/
|
|
842
|
-
set(parameters, options) {
|
|
843
|
-
const params = buildClientParams([parameters], [
|
|
844
|
-
{
|
|
845
|
-
args: [
|
|
846
|
-
{ in: "body", key: "auto" },
|
|
847
|
-
{ in: "body", key: "model" },
|
|
848
|
-
],
|
|
849
|
-
},
|
|
850
|
-
]);
|
|
851
|
-
return (options?.client ?? this.client).put({
|
|
852
|
-
url: "/settings/review",
|
|
853
|
-
...options,
|
|
854
|
-
...params,
|
|
855
|
-
headers: {
|
|
856
|
-
"Content-Type": "application/json",
|
|
857
|
-
...options?.headers,
|
|
858
|
-
...params.headers,
|
|
859
|
-
},
|
|
860
|
-
});
|
|
861
|
-
}
|
|
862
|
-
}
|
|
863
829
|
export class Preferences extends HeyApiClient {
|
|
864
830
|
/**
|
|
865
831
|
* Get settings preferences
|
|
@@ -902,7 +868,7 @@ export class Preferences extends HeyApiClient {
|
|
|
902
868
|
}
|
|
903
869
|
export class Billing extends HeyApiClient {
|
|
904
870
|
/**
|
|
905
|
-
* Get billing
|
|
871
|
+
* Get LLM billing mode and wallet status
|
|
906
872
|
*/
|
|
907
873
|
get(options) {
|
|
908
874
|
return (options?.client ?? this.client).get({
|
|
@@ -911,7 +877,7 @@ export class Billing extends HeyApiClient {
|
|
|
911
877
|
});
|
|
912
878
|
}
|
|
913
879
|
/**
|
|
914
|
-
* Update billing
|
|
880
|
+
* Update the LLM billing mode (managed vs BYOK)
|
|
915
881
|
*/
|
|
916
882
|
update(parameters, options) {
|
|
917
883
|
const params = buildClientParams([parameters], [
|
|
@@ -936,7 +902,7 @@ export class Billing extends HeyApiClient {
|
|
|
936
902
|
}
|
|
937
903
|
export class Wallet extends HeyApiClient {
|
|
938
904
|
/**
|
|
939
|
-
* Get
|
|
905
|
+
* Get wallet balance, routing mode, and recent transactions
|
|
940
906
|
*/
|
|
941
907
|
get(options) {
|
|
942
908
|
return (options?.client ?? this.client).get({
|
|
@@ -958,7 +924,7 @@ export class Updates extends HeyApiClient {
|
|
|
958
924
|
}
|
|
959
925
|
export class Telemetry extends HeyApiClient {
|
|
960
926
|
/**
|
|
961
|
-
* Update
|
|
927
|
+
* Update OpenScience data-use consent
|
|
962
928
|
*/
|
|
963
929
|
update(parameters, options) {
|
|
964
930
|
const params = buildClientParams([parameters], [{ args: [{ in: "body", key: "analyticsEnabled" }] }]);
|
|
@@ -974,7 +940,7 @@ export class Telemetry extends HeyApiClient {
|
|
|
974
940
|
});
|
|
975
941
|
}
|
|
976
942
|
/**
|
|
977
|
-
* Delete account-linked
|
|
943
|
+
* Delete account-linked OpenScience trace data
|
|
978
944
|
*/
|
|
979
945
|
delete(options) {
|
|
980
946
|
return (options?.client ?? this.client).delete({ url: "/settings/research-tools/telemetry/account-data", ...options });
|
|
@@ -982,7 +948,7 @@ export class Telemetry extends HeyApiClient {
|
|
|
982
948
|
}
|
|
983
949
|
export class ResearchTools extends HeyApiClient {
|
|
984
950
|
/**
|
|
985
|
-
* Get
|
|
951
|
+
* Get credit-backed search and data-sharing status
|
|
986
952
|
*/
|
|
987
953
|
get(options) {
|
|
988
954
|
return (options?.client ?? this.client).get({
|
|
@@ -1090,10 +1056,6 @@ export class Settings extends HeyApiClient {
|
|
|
1090
1056
|
get compute() {
|
|
1091
1057
|
return (this._compute ??= new Compute({ client: this.client }));
|
|
1092
1058
|
}
|
|
1093
|
-
_review;
|
|
1094
|
-
get review() {
|
|
1095
|
-
return (this._review ??= new Review({ client: this.client }));
|
|
1096
|
-
}
|
|
1097
1059
|
_preferences;
|
|
1098
1060
|
get preferences() {
|
|
1099
1061
|
return (this._preferences ??= new Preferences({ client: this.client }));
|
|
@@ -1730,6 +1692,7 @@ export class Session extends HeyApiClient {
|
|
|
1730
1692
|
{
|
|
1731
1693
|
args: [
|
|
1732
1694
|
{ in: "query", key: "directory" },
|
|
1695
|
+
{ in: "body", key: "id" },
|
|
1733
1696
|
{ in: "body", key: "parentID" },
|
|
1734
1697
|
{ in: "body", key: "title" },
|
|
1735
1698
|
{ in: "body", key: "permission" },
|
|
@@ -1850,7 +1813,7 @@ export class Session extends HeyApiClient {
|
|
|
1850
1813
|
/**
|
|
1851
1814
|
* Get local harness trace
|
|
1852
1815
|
*
|
|
1853
|
-
* Build one local,
|
|
1816
|
+
* Build one local, account-independent trace with effective harness manifests, composition transitions, attribution invariants, deterministic trajectory fingerprints, inference, tools, child agents, compute, artifacts, failures, costs, and timing. Hidden reasoning, prompt content, and copied tool outputs are excluded.
|
|
1854
1817
|
*/
|
|
1855
1818
|
trace(parameters, options) {
|
|
1856
1819
|
const params = buildClientParams([parameters], [
|
|
@@ -1887,53 +1850,6 @@ export class Session extends HeyApiClient {
|
|
|
1887
1850
|
...params,
|
|
1888
1851
|
});
|
|
1889
1852
|
}
|
|
1890
|
-
/**
|
|
1891
|
-
* Run an independent reviewer pass
|
|
1892
|
-
*
|
|
1893
|
-
* Launches the reviewer directly on this session: session-level permission rules restore its provenance tools and it receives a structured context message. Returns immediately; the review streams into the session like any other turn.
|
|
1894
|
-
*/
|
|
1895
|
-
review(parameters, options) {
|
|
1896
|
-
const params = buildClientParams([parameters], [
|
|
1897
|
-
{
|
|
1898
|
-
args: [
|
|
1899
|
-
{ in: "path", key: "sessionID" },
|
|
1900
|
-
{ in: "query", key: "directory" },
|
|
1901
|
-
],
|
|
1902
|
-
},
|
|
1903
|
-
]);
|
|
1904
|
-
return (options?.client ?? this.client).post({
|
|
1905
|
-
url: "/session/{sessionID}/review",
|
|
1906
|
-
...options,
|
|
1907
|
-
...params,
|
|
1908
|
-
});
|
|
1909
|
-
}
|
|
1910
|
-
/**
|
|
1911
|
-
* Review one immutable artifact version
|
|
1912
|
-
*
|
|
1913
|
-
* Launches a read-only reviewer against one exact artifact-store version. The returned target binds the version id, byte count, MIME type, and SHA-256 used by every recorded finding.
|
|
1914
|
-
*/
|
|
1915
|
-
reviewArtifact(parameters, options) {
|
|
1916
|
-
const params = buildClientParams([parameters], [
|
|
1917
|
-
{
|
|
1918
|
-
args: [
|
|
1919
|
-
{ in: "path", key: "sessionID" },
|
|
1920
|
-
{ in: "query", key: "directory" },
|
|
1921
|
-
{ in: "body", key: "artifactID" },
|
|
1922
|
-
{ in: "body", key: "versionID" },
|
|
1923
|
-
],
|
|
1924
|
-
},
|
|
1925
|
-
]);
|
|
1926
|
-
return (options?.client ?? this.client).post({
|
|
1927
|
-
url: "/session/{sessionID}/review/artifact",
|
|
1928
|
-
...options,
|
|
1929
|
-
...params,
|
|
1930
|
-
headers: {
|
|
1931
|
-
"Content-Type": "application/json",
|
|
1932
|
-
...options?.headers,
|
|
1933
|
-
...params.headers,
|
|
1934
|
-
},
|
|
1935
|
-
});
|
|
1936
|
-
}
|
|
1937
1853
|
/**
|
|
1938
1854
|
* Initialize session
|
|
1939
1855
|
*
|
|
@@ -2187,6 +2103,8 @@ export class Session extends HeyApiClient {
|
|
|
2187
2103
|
{ in: "body", key: "model" },
|
|
2188
2104
|
{ in: "body", key: "arguments" },
|
|
2189
2105
|
{ in: "body", key: "command" },
|
|
2106
|
+
{ in: "body", key: "effort" },
|
|
2107
|
+
{ in: "body", key: "delegation" },
|
|
2190
2108
|
{ in: "body", key: "variant" },
|
|
2191
2109
|
{ in: "body", key: "tier" },
|
|
2192
2110
|
{ in: "body", key: "parts" },
|
|
@@ -2515,9 +2433,9 @@ export class Runtime extends HeyApiClient {
|
|
|
2515
2433
|
}
|
|
2516
2434
|
export class Search extends HeyApiClient {
|
|
2517
2435
|
/**
|
|
2518
|
-
* Search sessions, messages, and artifacts
|
|
2436
|
+
* Search sessions, messages, files, and artifacts
|
|
2519
2437
|
*
|
|
2520
|
-
* Case-insensitive plain-text search across session titles, recent conversation text, and artifact files in the project.
|
|
2438
|
+
* Case-insensitive plain-text search across session titles, recent conversation text, up to 500 visible workspace files, and artifact files in the project.
|
|
2521
2439
|
*/
|
|
2522
2440
|
query(parameters, options) {
|
|
2523
2441
|
const params = buildClientParams([parameters], [
|
|
@@ -3132,6 +3050,7 @@ export class Reviews extends HeyApiClient {
|
|
|
3132
3050
|
args: [
|
|
3133
3051
|
{ in: "query", key: "directory" },
|
|
3134
3052
|
{ in: "query", key: "path" },
|
|
3053
|
+
{ in: "query", key: "sessionID" },
|
|
3135
3054
|
],
|
|
3136
3055
|
},
|
|
3137
3056
|
]);
|
|
@@ -3151,6 +3070,7 @@ export class Reviews extends HeyApiClient {
|
|
|
3151
3070
|
{
|
|
3152
3071
|
args: [
|
|
3153
3072
|
{ in: "query", key: "directory" },
|
|
3073
|
+
{ in: "query", key: "sessionID" },
|
|
3154
3074
|
{ in: "body", key: "path" },
|
|
3155
3075
|
{ in: "body", key: "actor" },
|
|
3156
3076
|
],
|
|
@@ -3178,6 +3098,7 @@ export class Reviews extends HeyApiClient {
|
|
|
3178
3098
|
args: [
|
|
3179
3099
|
{ in: "query", key: "directory" },
|
|
3180
3100
|
{ in: "query", key: "path" },
|
|
3101
|
+
{ in: "query", key: "sessionID" },
|
|
3181
3102
|
],
|
|
3182
3103
|
},
|
|
3183
3104
|
]);
|
|
@@ -3199,6 +3120,7 @@ export class Reviews extends HeyApiClient {
|
|
|
3199
3120
|
{ in: "path", key: "id" },
|
|
3200
3121
|
{ in: "path", key: "finding" },
|
|
3201
3122
|
{ in: "query", key: "directory" },
|
|
3123
|
+
{ in: "query", key: "sessionID" },
|
|
3202
3124
|
{ in: "body", key: "status" },
|
|
3203
3125
|
{ in: "body", key: "actor" },
|
|
3204
3126
|
{ in: "body", key: "reason" },
|
|
@@ -3227,6 +3149,7 @@ export class Reviews extends HeyApiClient {
|
|
|
3227
3149
|
args: [
|
|
3228
3150
|
{ in: "path", key: "id" },
|
|
3229
3151
|
{ in: "query", key: "directory" },
|
|
3152
|
+
{ in: "query", key: "sessionID" },
|
|
3230
3153
|
{ in: "body", key: "actor" },
|
|
3231
3154
|
],
|
|
3232
3155
|
},
|
|
@@ -3373,6 +3296,8 @@ export class File_ extends HeyApiClient {
|
|
|
3373
3296
|
{ in: "query", key: "directory" },
|
|
3374
3297
|
{ in: "query", key: "path" },
|
|
3375
3298
|
{ in: "query", key: "sessionID" },
|
|
3299
|
+
{ in: "query", key: "maxBytes" },
|
|
3300
|
+
{ in: "query", key: "inline" },
|
|
3376
3301
|
],
|
|
3377
3302
|
},
|
|
3378
3303
|
]);
|
|
@@ -3493,6 +3418,7 @@ export class File_ extends HeyApiClient {
|
|
|
3493
3418
|
{
|
|
3494
3419
|
args: [
|
|
3495
3420
|
{ in: "query", key: "directory" },
|
|
3421
|
+
{ in: "query", key: "sessionID" },
|
|
3496
3422
|
{ in: "body", key: "path" },
|
|
3497
3423
|
{ in: "body", key: "format" },
|
|
3498
3424
|
{ in: "body", key: "readiness" },
|
|
@@ -4151,9 +4077,9 @@ export class Notebook extends HeyApiClient {
|
|
|
4151
4077
|
}
|
|
4152
4078
|
export class Reviews2 extends HeyApiClient {
|
|
4153
4079
|
/**
|
|
4154
|
-
* List
|
|
4080
|
+
* List historical review findings with lifecycle status
|
|
4155
4081
|
*
|
|
4156
|
-
*
|
|
4082
|
+
* Read-only compatibility view of findings recorded by earlier OpenScience versions. Refuting findings carry their derived historical lifecycle status.
|
|
4157
4083
|
*/
|
|
4158
4084
|
list(parameters, options) {
|
|
4159
4085
|
const params = buildClientParams([parameters], [{ args: [{ in: "query", key: "directory" }] }]);
|
|
@@ -4163,39 +4089,12 @@ export class Reviews2 extends HeyApiClient {
|
|
|
4163
4089
|
...params,
|
|
4164
4090
|
});
|
|
4165
4091
|
}
|
|
4166
|
-
/**
|
|
4167
|
-
* Mark a reviewer finding as addressed
|
|
4168
|
-
*
|
|
4169
|
-
* Records an append-only resolution against a refuting finding. The finding is only confirmed closed once a later reviewer pass records a supports finding on the same target.
|
|
4170
|
-
*/
|
|
4171
|
-
resolve(parameters, options) {
|
|
4172
|
-
const params = buildClientParams([parameters], [
|
|
4173
|
-
{
|
|
4174
|
-
args: [
|
|
4175
|
-
{ in: "path", key: "id" },
|
|
4176
|
-
{ in: "query", key: "directory" },
|
|
4177
|
-
{ in: "body", key: "actor" },
|
|
4178
|
-
{ in: "body", key: "reason" },
|
|
4179
|
-
],
|
|
4180
|
-
},
|
|
4181
|
-
]);
|
|
4182
|
-
return (options?.client ?? this.client).post({
|
|
4183
|
-
url: "/provenance/reviews/{id}/resolve",
|
|
4184
|
-
...options,
|
|
4185
|
-
...params,
|
|
4186
|
-
headers: {
|
|
4187
|
-
"Content-Type": "application/json",
|
|
4188
|
-
...options?.headers,
|
|
4189
|
-
...params.headers,
|
|
4190
|
-
},
|
|
4191
|
-
});
|
|
4192
|
-
}
|
|
4193
4092
|
}
|
|
4194
4093
|
export class Provenance extends HeyApiClient {
|
|
4195
4094
|
/**
|
|
4196
4095
|
* List the project provenance graph
|
|
4197
4096
|
*
|
|
4198
|
-
* Returns project-scoped artifacts, runs, sources, claims,
|
|
4097
|
+
* Returns project-scoped artifacts, runs, sources, claims, historical review records, and typed edges.
|
|
4199
4098
|
*/
|
|
4200
4099
|
list(parameters, options) {
|
|
4201
4100
|
const params = buildClientParams([parameters], [{ args: [{ in: "query", key: "directory" }] }]);
|
|
@@ -4238,34 +4137,6 @@ export class Provenance extends HeyApiClient {
|
|
|
4238
4137
|
},
|
|
4239
4138
|
});
|
|
4240
4139
|
}
|
|
4241
|
-
/**
|
|
4242
|
-
* Record a reviewer finding
|
|
4243
|
-
*/
|
|
4244
|
-
review(parameters, options) {
|
|
4245
|
-
const params = buildClientParams([parameters], [
|
|
4246
|
-
{
|
|
4247
|
-
args: [
|
|
4248
|
-
{ in: "query", key: "directory" },
|
|
4249
|
-
{ in: "body", key: "target" },
|
|
4250
|
-
{ in: "body", key: "claim" },
|
|
4251
|
-
{ in: "body", key: "issue" },
|
|
4252
|
-
{ in: "body", key: "severity" },
|
|
4253
|
-
{ in: "body", key: "evidence" },
|
|
4254
|
-
{ in: "body", key: "verdict" },
|
|
4255
|
-
],
|
|
4256
|
-
},
|
|
4257
|
-
]);
|
|
4258
|
-
return (options?.client ?? this.client).post({
|
|
4259
|
-
url: "/provenance/reviews",
|
|
4260
|
-
...options,
|
|
4261
|
-
...params,
|
|
4262
|
-
headers: {
|
|
4263
|
-
"Content-Type": "application/json",
|
|
4264
|
-
...options?.headers,
|
|
4265
|
-
...params.headers,
|
|
4266
|
-
},
|
|
4267
|
-
});
|
|
4268
|
-
}
|
|
4269
4140
|
/**
|
|
4270
4141
|
* Export a project provenance audit
|
|
4271
4142
|
*/
|