@perstack/api-client 0.0.31 → 0.0.32

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.
Files changed (2) hide show
  1. package/dist/v1/index.d.ts +278 -4
  2. package/package.json +2 -2
@@ -656,6 +656,11 @@ declare const apiCheckpointActionGeneralToolSchema: z.ZodObject<{
656
656
  type: z.ZodLiteral<"imageInlinePart">;
657
657
  encodedData: z.ZodString;
658
658
  mimeType: z.ZodString;
659
+ }, z.core.$strip>, z.ZodObject<{
660
+ id: z.ZodString;
661
+ type: z.ZodLiteral<"fileInlinePart">;
662
+ encodedData: z.ZodString;
663
+ mimeType: z.ZodString;
659
664
  }, z.core.$strip>]>>;
660
665
  isError: z.ZodOptional<z.ZodBoolean>;
661
666
  }, z.core.$strip>], "type">>;
@@ -885,6 +890,11 @@ declare const apiCheckpointActionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
885
890
  type: z.ZodLiteral<"imageInlinePart">;
886
891
  encodedData: z.ZodString;
887
892
  mimeType: z.ZodString;
893
+ }, z.core.$strip>, z.ZodObject<{
894
+ id: z.ZodString;
895
+ type: z.ZodLiteral<"fileInlinePart">;
896
+ encodedData: z.ZodString;
897
+ mimeType: z.ZodString;
888
898
  }, z.core.$strip>]>>;
889
899
  isError: z.ZodOptional<z.ZodBoolean>;
890
900
  }, z.core.$strip>], "type">>;
@@ -896,6 +906,79 @@ type ApiCheckpointAction = z.infer<typeof apiCheckpointActionSchema>;
896
906
  declare const apiCheckpointSchema: z.ZodObject<{
897
907
  runId: z.ZodString;
898
908
  stepNumber: z.ZodNumber;
909
+ pendingToolCalls: z.ZodOptional<z.ZodArray<z.ZodObject<{
910
+ id: z.ZodString;
911
+ skillName: z.ZodString;
912
+ toolName: z.ZodString;
913
+ args: z.ZodRecord<z.ZodString, z.ZodUnknown>;
914
+ }, z.core.$strip>>>;
915
+ partialToolResults: z.ZodOptional<z.ZodArray<z.ZodObject<{
916
+ id: z.ZodString;
917
+ skillName: z.ZodString;
918
+ toolName: z.ZodString;
919
+ result: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
920
+ id: z.ZodString;
921
+ type: z.ZodLiteral<"textPart">;
922
+ text: z.ZodString;
923
+ }, z.core.$strip>, z.ZodObject<{
924
+ id: z.ZodString;
925
+ type: z.ZodLiteral<"imageUrlPart">;
926
+ url: z.ZodURL;
927
+ mimeType: z.ZodString;
928
+ }, z.core.$strip>, z.ZodObject<{
929
+ id: z.ZodString;
930
+ type: z.ZodLiteral<"imageInlinePart">;
931
+ encodedData: z.ZodString;
932
+ mimeType: z.ZodString;
933
+ }, z.core.$strip>, z.ZodObject<{
934
+ id: z.ZodString;
935
+ type: z.ZodLiteral<"imageBinaryPart">;
936
+ data: z.ZodString;
937
+ mimeType: z.ZodString;
938
+ }, z.core.$strip>, z.ZodObject<{
939
+ id: z.ZodString;
940
+ type: z.ZodLiteral<"fileUrlPart">;
941
+ url: z.ZodString;
942
+ mimeType: z.ZodString;
943
+ }, z.core.$strip>, z.ZodObject<{
944
+ id: z.ZodString;
945
+ type: z.ZodLiteral<"fileInlinePart">;
946
+ encodedData: z.ZodString;
947
+ mimeType: z.ZodString;
948
+ }, z.core.$strip>, z.ZodObject<{
949
+ id: z.ZodString;
950
+ type: z.ZodLiteral<"fileBinaryPart">;
951
+ data: z.ZodString;
952
+ mimeType: z.ZodString;
953
+ }, z.core.$strip>, z.ZodObject<{
954
+ id: z.ZodString;
955
+ type: z.ZodLiteral<"toolCallPart">;
956
+ toolCallId: z.ZodString;
957
+ toolName: z.ZodString;
958
+ args: z.ZodUnknown;
959
+ }, z.core.$strip>, z.ZodObject<{
960
+ id: z.ZodString;
961
+ type: z.ZodLiteral<"toolResultPart">;
962
+ toolCallId: z.ZodString;
963
+ toolName: z.ZodString;
964
+ contents: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
965
+ id: z.ZodString;
966
+ type: z.ZodLiteral<"textPart">;
967
+ text: z.ZodString;
968
+ }, z.core.$strip>, z.ZodObject<{
969
+ id: z.ZodString;
970
+ type: z.ZodLiteral<"imageInlinePart">;
971
+ encodedData: z.ZodString;
972
+ mimeType: z.ZodString;
973
+ }, z.core.$strip>, z.ZodObject<{
974
+ id: z.ZodString;
975
+ type: z.ZodLiteral<"fileInlinePart">;
976
+ encodedData: z.ZodString;
977
+ mimeType: z.ZodString;
978
+ }, z.core.$strip>]>>;
979
+ isError: z.ZodOptional<z.ZodBoolean>;
980
+ }, z.core.$strip>], "type">>;
981
+ }, z.core.$strip>>>;
899
982
  type: z.ZodLiteral<"checkpoint">;
900
983
  id: z.ZodCUID2;
901
984
  action: z.ZodDiscriminatedUnion<[z.ZodObject<{
@@ -1119,6 +1202,11 @@ declare const apiCheckpointSchema: z.ZodObject<{
1119
1202
  type: z.ZodLiteral<"imageInlinePart">;
1120
1203
  encodedData: z.ZodString;
1121
1204
  mimeType: z.ZodString;
1205
+ }, z.core.$strip>, z.ZodObject<{
1206
+ id: z.ZodString;
1207
+ type: z.ZodLiteral<"fileInlinePart">;
1208
+ encodedData: z.ZodString;
1209
+ mimeType: z.ZodString;
1122
1210
  }, z.core.$strip>]>>;
1123
1211
  isError: z.ZodOptional<z.ZodBoolean>;
1124
1212
  }, z.core.$strip>], "type">>;
@@ -1261,6 +1349,11 @@ declare const apiCheckpointSchema: z.ZodObject<{
1261
1349
  type: z.ZodLiteral<"imageInlinePart">;
1262
1350
  encodedData: z.ZodString;
1263
1351
  mimeType: z.ZodString;
1352
+ }, z.core.$strip>, z.ZodObject<{
1353
+ id: z.ZodString;
1354
+ type: z.ZodLiteral<"fileInlinePart">;
1355
+ encodedData: z.ZodString;
1356
+ mimeType: z.ZodString;
1264
1357
  }, z.core.$strip>]>>;
1265
1358
  isError: z.ZodOptional<z.ZodBoolean>;
1266
1359
  }, z.core.$strip>>;
@@ -1346,6 +1439,11 @@ declare const apiCheckpointSchema: z.ZodObject<{
1346
1439
  type: z.ZodLiteral<"imageInlinePart">;
1347
1440
  encodedData: z.ZodString;
1348
1441
  mimeType: z.ZodString;
1442
+ }, z.core.$strip>, z.ZodObject<{
1443
+ id: z.ZodString;
1444
+ type: z.ZodLiteral<"fileInlinePart">;
1445
+ encodedData: z.ZodString;
1446
+ mimeType: z.ZodString;
1349
1447
  }, z.core.$strip>]>>;
1350
1448
  isError: z.ZodOptional<z.ZodBoolean>;
1351
1449
  }, z.core.$strip>>;
@@ -1431,6 +1529,11 @@ declare const apiCheckpointSchema: z.ZodObject<{
1431
1529
  type: z.ZodLiteral<"imageInlinePart">;
1432
1530
  encodedData: z.ZodString;
1433
1531
  mimeType: z.ZodString;
1532
+ }, z.core.$strip>, z.ZodObject<{
1533
+ id: z.ZodString;
1534
+ type: z.ZodLiteral<"fileInlinePart">;
1535
+ encodedData: z.ZodString;
1536
+ mimeType: z.ZodString;
1434
1537
  }, z.core.$strip>]>>;
1435
1538
  isError: z.ZodOptional<z.ZodBoolean>;
1436
1539
  }, z.core.$strip>>;
@@ -1500,6 +1603,11 @@ declare const apiCheckpointSchema: z.ZodObject<{
1500
1603
  type: z.ZodLiteral<"imageInlinePart">;
1501
1604
  encodedData: z.ZodString;
1502
1605
  mimeType: z.ZodString;
1606
+ }, z.core.$strip>, z.ZodObject<{
1607
+ id: z.ZodString;
1608
+ type: z.ZodLiteral<"fileInlinePart">;
1609
+ encodedData: z.ZodString;
1610
+ mimeType: z.ZodString;
1503
1611
  }, z.core.$strip>]>>;
1504
1612
  isError: z.ZodOptional<z.ZodBoolean>;
1505
1613
  }, z.core.$strip>], "type">>;
@@ -1876,6 +1984,11 @@ declare const createCheckpointInput: z.ZodObject<{
1876
1984
  type: z.ZodLiteral<"imageInlinePart">;
1877
1985
  encodedData: z.ZodString;
1878
1986
  mimeType: z.ZodString;
1987
+ }, z.core.$strip>, z.ZodObject<{
1988
+ id: z.ZodString;
1989
+ type: z.ZodLiteral<"fileInlinePart">;
1990
+ encodedData: z.ZodString;
1991
+ mimeType: z.ZodString;
1879
1992
  }, z.core.$strip>]>>;
1880
1993
  isError: z.ZodOptional<z.ZodBoolean>;
1881
1994
  }, z.core.$strip>>;
@@ -1915,6 +2028,79 @@ declare const createCheckpointInput: z.ZodObject<{
1915
2028
  }, z.core.$strip>;
1916
2029
  contextWindow: z.ZodOptional<z.ZodNumber>;
1917
2030
  contextWindowUsage: z.ZodOptional<z.ZodNumber>;
2031
+ pendingToolCalls: z.ZodOptional<z.ZodArray<z.ZodObject<{
2032
+ id: z.ZodString;
2033
+ skillName: z.ZodString;
2034
+ toolName: z.ZodString;
2035
+ args: z.ZodRecord<z.ZodString, z.ZodUnknown>;
2036
+ }, z.core.$strip>>>;
2037
+ partialToolResults: z.ZodOptional<z.ZodArray<z.ZodObject<{
2038
+ id: z.ZodString;
2039
+ skillName: z.ZodString;
2040
+ toolName: z.ZodString;
2041
+ result: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
2042
+ id: z.ZodString;
2043
+ type: z.ZodLiteral<"textPart">;
2044
+ text: z.ZodString;
2045
+ }, z.core.$strip>, z.ZodObject<{
2046
+ id: z.ZodString;
2047
+ type: z.ZodLiteral<"imageUrlPart">;
2048
+ url: z.ZodURL;
2049
+ mimeType: z.ZodString;
2050
+ }, z.core.$strip>, z.ZodObject<{
2051
+ id: z.ZodString;
2052
+ type: z.ZodLiteral<"imageInlinePart">;
2053
+ encodedData: z.ZodString;
2054
+ mimeType: z.ZodString;
2055
+ }, z.core.$strip>, z.ZodObject<{
2056
+ id: z.ZodString;
2057
+ type: z.ZodLiteral<"imageBinaryPart">;
2058
+ data: z.ZodString;
2059
+ mimeType: z.ZodString;
2060
+ }, z.core.$strip>, z.ZodObject<{
2061
+ id: z.ZodString;
2062
+ type: z.ZodLiteral<"fileUrlPart">;
2063
+ url: z.ZodString;
2064
+ mimeType: z.ZodString;
2065
+ }, z.core.$strip>, z.ZodObject<{
2066
+ id: z.ZodString;
2067
+ type: z.ZodLiteral<"fileInlinePart">;
2068
+ encodedData: z.ZodString;
2069
+ mimeType: z.ZodString;
2070
+ }, z.core.$strip>, z.ZodObject<{
2071
+ id: z.ZodString;
2072
+ type: z.ZodLiteral<"fileBinaryPart">;
2073
+ data: z.ZodString;
2074
+ mimeType: z.ZodString;
2075
+ }, z.core.$strip>, z.ZodObject<{
2076
+ id: z.ZodString;
2077
+ type: z.ZodLiteral<"toolCallPart">;
2078
+ toolCallId: z.ZodString;
2079
+ toolName: z.ZodString;
2080
+ args: z.ZodUnknown;
2081
+ }, z.core.$strip>, z.ZodObject<{
2082
+ id: z.ZodString;
2083
+ type: z.ZodLiteral<"toolResultPart">;
2084
+ toolCallId: z.ZodString;
2085
+ toolName: z.ZodString;
2086
+ contents: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
2087
+ id: z.ZodString;
2088
+ type: z.ZodLiteral<"textPart">;
2089
+ text: z.ZodString;
2090
+ }, z.core.$strip>, z.ZodObject<{
2091
+ id: z.ZodString;
2092
+ type: z.ZodLiteral<"imageInlinePart">;
2093
+ encodedData: z.ZodString;
2094
+ mimeType: z.ZodString;
2095
+ }, z.core.$strip>, z.ZodObject<{
2096
+ id: z.ZodString;
2097
+ type: z.ZodLiteral<"fileInlinePart">;
2098
+ encodedData: z.ZodString;
2099
+ mimeType: z.ZodString;
2100
+ }, z.core.$strip>]>>;
2101
+ isError: z.ZodOptional<z.ZodBoolean>;
2102
+ }, z.core.$strip>], "type">>;
2103
+ }, z.core.$strip>>>;
1918
2104
  }, z.core.$strip>;
1919
2105
  step: z.ZodObject<{
1920
2106
  stepNumber: z.ZodNumber;
@@ -1983,6 +2169,11 @@ declare const createCheckpointInput: z.ZodObject<{
1983
2169
  type: z.ZodLiteral<"imageInlinePart">;
1984
2170
  encodedData: z.ZodString;
1985
2171
  mimeType: z.ZodString;
2172
+ }, z.core.$strip>, z.ZodObject<{
2173
+ id: z.ZodString;
2174
+ type: z.ZodLiteral<"fileInlinePart">;
2175
+ encodedData: z.ZodString;
2176
+ mimeType: z.ZodString;
1986
2177
  }, z.core.$strip>]>>;
1987
2178
  isError: z.ZodOptional<z.ZodBoolean>;
1988
2179
  }, z.core.$strip>>;
@@ -2068,18 +2259,23 @@ declare const createCheckpointInput: z.ZodObject<{
2068
2259
  type: z.ZodLiteral<"imageInlinePart">;
2069
2260
  encodedData: z.ZodString;
2070
2261
  mimeType: z.ZodString;
2262
+ }, z.core.$strip>, z.ZodObject<{
2263
+ id: z.ZodString;
2264
+ type: z.ZodLiteral<"fileInlinePart">;
2265
+ encodedData: z.ZodString;
2266
+ mimeType: z.ZodString;
2071
2267
  }, z.core.$strip>]>>;
2072
2268
  isError: z.ZodOptional<z.ZodBoolean>;
2073
2269
  }, z.core.$strip>>;
2074
2270
  cache: z.ZodOptional<z.ZodBoolean>;
2075
2271
  }, z.core.$strip>]>>;
2076
- toolCall: z.ZodOptional<z.ZodObject<{
2272
+ toolCalls: z.ZodOptional<z.ZodArray<z.ZodObject<{
2077
2273
  id: z.ZodString;
2078
2274
  skillName: z.ZodString;
2079
2275
  toolName: z.ZodString;
2080
2276
  args: z.ZodRecord<z.ZodString, z.ZodUnknown>;
2081
- }, z.core.$strip>>;
2082
- toolResult: z.ZodOptional<z.ZodObject<{
2277
+ }, z.core.$strip>>>;
2278
+ toolResults: z.ZodOptional<z.ZodArray<z.ZodObject<{
2083
2279
  id: z.ZodString;
2084
2280
  skillName: z.ZodString;
2085
2281
  toolName: z.ZodString;
@@ -2137,10 +2333,88 @@ declare const createCheckpointInput: z.ZodObject<{
2137
2333
  type: z.ZodLiteral<"imageInlinePart">;
2138
2334
  encodedData: z.ZodString;
2139
2335
  mimeType: z.ZodString;
2336
+ }, z.core.$strip>, z.ZodObject<{
2337
+ id: z.ZodString;
2338
+ type: z.ZodLiteral<"fileInlinePart">;
2339
+ encodedData: z.ZodString;
2340
+ mimeType: z.ZodString;
2140
2341
  }, z.core.$strip>]>>;
2141
2342
  isError: z.ZodOptional<z.ZodBoolean>;
2142
2343
  }, z.core.$strip>], "type">>;
2143
- }, z.core.$strip>>;
2344
+ }, z.core.$strip>>>;
2345
+ pendingToolCalls: z.ZodOptional<z.ZodArray<z.ZodObject<{
2346
+ id: z.ZodString;
2347
+ skillName: z.ZodString;
2348
+ toolName: z.ZodString;
2349
+ args: z.ZodRecord<z.ZodString, z.ZodUnknown>;
2350
+ }, z.core.$strip>>>;
2351
+ partialToolResults: z.ZodOptional<z.ZodArray<z.ZodObject<{
2352
+ id: z.ZodString;
2353
+ skillName: z.ZodString;
2354
+ toolName: z.ZodString;
2355
+ result: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
2356
+ id: z.ZodString;
2357
+ type: z.ZodLiteral<"textPart">;
2358
+ text: z.ZodString;
2359
+ }, z.core.$strip>, z.ZodObject<{
2360
+ id: z.ZodString;
2361
+ type: z.ZodLiteral<"imageUrlPart">;
2362
+ url: z.ZodURL;
2363
+ mimeType: z.ZodString;
2364
+ }, z.core.$strip>, z.ZodObject<{
2365
+ id: z.ZodString;
2366
+ type: z.ZodLiteral<"imageInlinePart">;
2367
+ encodedData: z.ZodString;
2368
+ mimeType: z.ZodString;
2369
+ }, z.core.$strip>, z.ZodObject<{
2370
+ id: z.ZodString;
2371
+ type: z.ZodLiteral<"imageBinaryPart">;
2372
+ data: z.ZodString;
2373
+ mimeType: z.ZodString;
2374
+ }, z.core.$strip>, z.ZodObject<{
2375
+ id: z.ZodString;
2376
+ type: z.ZodLiteral<"fileUrlPart">;
2377
+ url: z.ZodString;
2378
+ mimeType: z.ZodString;
2379
+ }, z.core.$strip>, z.ZodObject<{
2380
+ id: z.ZodString;
2381
+ type: z.ZodLiteral<"fileInlinePart">;
2382
+ encodedData: z.ZodString;
2383
+ mimeType: z.ZodString;
2384
+ }, z.core.$strip>, z.ZodObject<{
2385
+ id: z.ZodString;
2386
+ type: z.ZodLiteral<"fileBinaryPart">;
2387
+ data: z.ZodString;
2388
+ mimeType: z.ZodString;
2389
+ }, z.core.$strip>, z.ZodObject<{
2390
+ id: z.ZodString;
2391
+ type: z.ZodLiteral<"toolCallPart">;
2392
+ toolCallId: z.ZodString;
2393
+ toolName: z.ZodString;
2394
+ args: z.ZodUnknown;
2395
+ }, z.core.$strip>, z.ZodObject<{
2396
+ id: z.ZodString;
2397
+ type: z.ZodLiteral<"toolResultPart">;
2398
+ toolCallId: z.ZodString;
2399
+ toolName: z.ZodString;
2400
+ contents: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
2401
+ id: z.ZodString;
2402
+ type: z.ZodLiteral<"textPart">;
2403
+ text: z.ZodString;
2404
+ }, z.core.$strip>, z.ZodObject<{
2405
+ id: z.ZodString;
2406
+ type: z.ZodLiteral<"imageInlinePart">;
2407
+ encodedData: z.ZodString;
2408
+ mimeType: z.ZodString;
2409
+ }, z.core.$strip>, z.ZodObject<{
2410
+ id: z.ZodString;
2411
+ type: z.ZodLiteral<"fileInlinePart">;
2412
+ encodedData: z.ZodString;
2413
+ mimeType: z.ZodString;
2414
+ }, z.core.$strip>]>>;
2415
+ isError: z.ZodOptional<z.ZodBoolean>;
2416
+ }, z.core.$strip>], "type">>;
2417
+ }, z.core.$strip>>>;
2144
2418
  usage: z.ZodObject<{
2145
2419
  inputTokens: z.ZodNumber;
2146
2420
  outputTokens: z.ZodNumber;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@perstack/api-client",
3
- "version": "0.0.31",
3
+ "version": "0.0.32",
4
4
  "description": "Perstack API Client",
5
5
  "author": "Wintermute Technologies, Inc.",
6
6
  "license": "Apache-2.0",
@@ -17,7 +17,7 @@
17
17
  ],
18
18
  "dependencies": {
19
19
  "zod": "^4.1.13",
20
- "@perstack/core": "0.0.20"
20
+ "@perstack/core": "0.0.21"
21
21
  },
22
22
  "devDependencies": {
23
23
  "@tsconfig/node22": "^22.0.5",