@perstack/api-client 0.0.31 → 0.0.33

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 +282 -6
  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">>;
@@ -894,8 +904,82 @@ declare const apiCheckpointActionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
894
904
  }, z.core.$strip>], "type">;
895
905
  type ApiCheckpointAction = z.infer<typeof apiCheckpointActionSchema>;
896
906
  declare const apiCheckpointSchema: z.ZodObject<{
907
+ jobId: z.ZodString;
897
908
  runId: z.ZodString;
898
909
  stepNumber: z.ZodNumber;
910
+ pendingToolCalls: z.ZodOptional<z.ZodArray<z.ZodObject<{
911
+ id: z.ZodString;
912
+ skillName: z.ZodString;
913
+ toolName: z.ZodString;
914
+ args: z.ZodRecord<z.ZodString, z.ZodUnknown>;
915
+ }, z.core.$strip>>>;
916
+ partialToolResults: z.ZodOptional<z.ZodArray<z.ZodObject<{
917
+ id: z.ZodString;
918
+ skillName: z.ZodString;
919
+ toolName: z.ZodString;
920
+ result: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
921
+ id: z.ZodString;
922
+ type: z.ZodLiteral<"textPart">;
923
+ text: z.ZodString;
924
+ }, z.core.$strip>, z.ZodObject<{
925
+ id: z.ZodString;
926
+ type: z.ZodLiteral<"imageUrlPart">;
927
+ url: z.ZodURL;
928
+ mimeType: z.ZodString;
929
+ }, z.core.$strip>, z.ZodObject<{
930
+ id: z.ZodString;
931
+ type: z.ZodLiteral<"imageInlinePart">;
932
+ encodedData: z.ZodString;
933
+ mimeType: z.ZodString;
934
+ }, z.core.$strip>, z.ZodObject<{
935
+ id: z.ZodString;
936
+ type: z.ZodLiteral<"imageBinaryPart">;
937
+ data: z.ZodString;
938
+ mimeType: z.ZodString;
939
+ }, z.core.$strip>, z.ZodObject<{
940
+ id: z.ZodString;
941
+ type: z.ZodLiteral<"fileUrlPart">;
942
+ url: z.ZodString;
943
+ mimeType: z.ZodString;
944
+ }, z.core.$strip>, z.ZodObject<{
945
+ id: z.ZodString;
946
+ type: z.ZodLiteral<"fileInlinePart">;
947
+ encodedData: z.ZodString;
948
+ mimeType: z.ZodString;
949
+ }, z.core.$strip>, z.ZodObject<{
950
+ id: z.ZodString;
951
+ type: z.ZodLiteral<"fileBinaryPart">;
952
+ data: z.ZodString;
953
+ mimeType: z.ZodString;
954
+ }, z.core.$strip>, z.ZodObject<{
955
+ id: z.ZodString;
956
+ type: z.ZodLiteral<"toolCallPart">;
957
+ toolCallId: z.ZodString;
958
+ toolName: z.ZodString;
959
+ args: z.ZodUnknown;
960
+ }, z.core.$strip>, z.ZodObject<{
961
+ id: z.ZodString;
962
+ type: z.ZodLiteral<"toolResultPart">;
963
+ toolCallId: z.ZodString;
964
+ toolName: z.ZodString;
965
+ contents: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
966
+ id: z.ZodString;
967
+ type: z.ZodLiteral<"textPart">;
968
+ text: z.ZodString;
969
+ }, z.core.$strip>, z.ZodObject<{
970
+ id: z.ZodString;
971
+ type: z.ZodLiteral<"imageInlinePart">;
972
+ encodedData: z.ZodString;
973
+ mimeType: z.ZodString;
974
+ }, z.core.$strip>, z.ZodObject<{
975
+ id: z.ZodString;
976
+ type: z.ZodLiteral<"fileInlinePart">;
977
+ encodedData: z.ZodString;
978
+ mimeType: z.ZodString;
979
+ }, z.core.$strip>]>>;
980
+ isError: z.ZodOptional<z.ZodBoolean>;
981
+ }, z.core.$strip>], "type">>;
982
+ }, z.core.$strip>>>;
899
983
  type: z.ZodLiteral<"checkpoint">;
900
984
  id: z.ZodCUID2;
901
985
  action: z.ZodDiscriminatedUnion<[z.ZodObject<{
@@ -1119,6 +1203,11 @@ declare const apiCheckpointSchema: z.ZodObject<{
1119
1203
  type: z.ZodLiteral<"imageInlinePart">;
1120
1204
  encodedData: z.ZodString;
1121
1205
  mimeType: z.ZodString;
1206
+ }, z.core.$strip>, z.ZodObject<{
1207
+ id: z.ZodString;
1208
+ type: z.ZodLiteral<"fileInlinePart">;
1209
+ encodedData: z.ZodString;
1210
+ mimeType: z.ZodString;
1122
1211
  }, z.core.$strip>]>>;
1123
1212
  isError: z.ZodOptional<z.ZodBoolean>;
1124
1213
  }, z.core.$strip>], "type">>;
@@ -1261,6 +1350,11 @@ declare const apiCheckpointSchema: z.ZodObject<{
1261
1350
  type: z.ZodLiteral<"imageInlinePart">;
1262
1351
  encodedData: z.ZodString;
1263
1352
  mimeType: z.ZodString;
1353
+ }, z.core.$strip>, z.ZodObject<{
1354
+ id: z.ZodString;
1355
+ type: z.ZodLiteral<"fileInlinePart">;
1356
+ encodedData: z.ZodString;
1357
+ mimeType: z.ZodString;
1264
1358
  }, z.core.$strip>]>>;
1265
1359
  isError: z.ZodOptional<z.ZodBoolean>;
1266
1360
  }, z.core.$strip>>;
@@ -1346,6 +1440,11 @@ declare const apiCheckpointSchema: z.ZodObject<{
1346
1440
  type: z.ZodLiteral<"imageInlinePart">;
1347
1441
  encodedData: z.ZodString;
1348
1442
  mimeType: z.ZodString;
1443
+ }, z.core.$strip>, z.ZodObject<{
1444
+ id: z.ZodString;
1445
+ type: z.ZodLiteral<"fileInlinePart">;
1446
+ encodedData: z.ZodString;
1447
+ mimeType: z.ZodString;
1349
1448
  }, z.core.$strip>]>>;
1350
1449
  isError: z.ZodOptional<z.ZodBoolean>;
1351
1450
  }, z.core.$strip>>;
@@ -1431,6 +1530,11 @@ declare const apiCheckpointSchema: z.ZodObject<{
1431
1530
  type: z.ZodLiteral<"imageInlinePart">;
1432
1531
  encodedData: z.ZodString;
1433
1532
  mimeType: z.ZodString;
1533
+ }, z.core.$strip>, z.ZodObject<{
1534
+ id: z.ZodString;
1535
+ type: z.ZodLiteral<"fileInlinePart">;
1536
+ encodedData: z.ZodString;
1537
+ mimeType: z.ZodString;
1434
1538
  }, z.core.$strip>]>>;
1435
1539
  isError: z.ZodOptional<z.ZodBoolean>;
1436
1540
  }, z.core.$strip>>;
@@ -1500,6 +1604,11 @@ declare const apiCheckpointSchema: z.ZodObject<{
1500
1604
  type: z.ZodLiteral<"imageInlinePart">;
1501
1605
  encodedData: z.ZodString;
1502
1606
  mimeType: z.ZodString;
1607
+ }, z.core.$strip>, z.ZodObject<{
1608
+ id: z.ZodString;
1609
+ type: z.ZodLiteral<"fileInlinePart">;
1610
+ encodedData: z.ZodString;
1611
+ mimeType: z.ZodString;
1503
1612
  }, z.core.$strip>]>>;
1504
1613
  isError: z.ZodOptional<z.ZodBoolean>;
1505
1614
  }, z.core.$strip>], "type">>;
@@ -1785,6 +1894,7 @@ declare const createCheckpointInput: z.ZodObject<{
1785
1894
  expertJobId: z.ZodCUID2;
1786
1895
  checkpoint: z.ZodObject<{
1787
1896
  id: z.ZodString;
1897
+ jobId: z.ZodString;
1788
1898
  runId: z.ZodString;
1789
1899
  status: z.ZodEnum<{
1790
1900
  init: "init";
@@ -1876,6 +1986,11 @@ declare const createCheckpointInput: z.ZodObject<{
1876
1986
  type: z.ZodLiteral<"imageInlinePart">;
1877
1987
  encodedData: z.ZodString;
1878
1988
  mimeType: z.ZodString;
1989
+ }, z.core.$strip>, z.ZodObject<{
1990
+ id: z.ZodString;
1991
+ type: z.ZodLiteral<"fileInlinePart">;
1992
+ encodedData: z.ZodString;
1993
+ mimeType: z.ZodString;
1879
1994
  }, z.core.$strip>]>>;
1880
1995
  isError: z.ZodOptional<z.ZodBoolean>;
1881
1996
  }, z.core.$strip>>;
@@ -1886,7 +2001,7 @@ declare const createCheckpointInput: z.ZodObject<{
1886
2001
  name: z.ZodString;
1887
2002
  version: z.ZodString;
1888
2003
  }, z.core.$strip>;
1889
- delegateTo: z.ZodOptional<z.ZodObject<{
2004
+ delegateTo: z.ZodOptional<z.ZodArray<z.ZodObject<{
1890
2005
  expert: z.ZodObject<{
1891
2006
  key: z.ZodString;
1892
2007
  name: z.ZodString;
@@ -1895,7 +2010,7 @@ declare const createCheckpointInput: z.ZodObject<{
1895
2010
  toolCallId: z.ZodString;
1896
2011
  toolName: z.ZodString;
1897
2012
  query: z.ZodString;
1898
- }, z.core.$strip>>;
2013
+ }, z.core.$strip>>>;
1899
2014
  delegatedBy: z.ZodOptional<z.ZodObject<{
1900
2015
  expert: z.ZodObject<{
1901
2016
  key: z.ZodString;
@@ -1915,6 +2030,79 @@ declare const createCheckpointInput: z.ZodObject<{
1915
2030
  }, z.core.$strip>;
1916
2031
  contextWindow: z.ZodOptional<z.ZodNumber>;
1917
2032
  contextWindowUsage: z.ZodOptional<z.ZodNumber>;
2033
+ pendingToolCalls: z.ZodOptional<z.ZodArray<z.ZodObject<{
2034
+ id: z.ZodString;
2035
+ skillName: z.ZodString;
2036
+ toolName: z.ZodString;
2037
+ args: z.ZodRecord<z.ZodString, z.ZodUnknown>;
2038
+ }, z.core.$strip>>>;
2039
+ partialToolResults: z.ZodOptional<z.ZodArray<z.ZodObject<{
2040
+ id: z.ZodString;
2041
+ skillName: z.ZodString;
2042
+ toolName: z.ZodString;
2043
+ result: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
2044
+ id: z.ZodString;
2045
+ type: z.ZodLiteral<"textPart">;
2046
+ text: z.ZodString;
2047
+ }, z.core.$strip>, z.ZodObject<{
2048
+ id: z.ZodString;
2049
+ type: z.ZodLiteral<"imageUrlPart">;
2050
+ url: z.ZodURL;
2051
+ mimeType: z.ZodString;
2052
+ }, z.core.$strip>, z.ZodObject<{
2053
+ id: z.ZodString;
2054
+ type: z.ZodLiteral<"imageInlinePart">;
2055
+ encodedData: z.ZodString;
2056
+ mimeType: z.ZodString;
2057
+ }, z.core.$strip>, z.ZodObject<{
2058
+ id: z.ZodString;
2059
+ type: z.ZodLiteral<"imageBinaryPart">;
2060
+ data: z.ZodString;
2061
+ mimeType: z.ZodString;
2062
+ }, z.core.$strip>, z.ZodObject<{
2063
+ id: z.ZodString;
2064
+ type: z.ZodLiteral<"fileUrlPart">;
2065
+ url: z.ZodString;
2066
+ mimeType: z.ZodString;
2067
+ }, z.core.$strip>, z.ZodObject<{
2068
+ id: z.ZodString;
2069
+ type: z.ZodLiteral<"fileInlinePart">;
2070
+ encodedData: z.ZodString;
2071
+ mimeType: z.ZodString;
2072
+ }, z.core.$strip>, z.ZodObject<{
2073
+ id: z.ZodString;
2074
+ type: z.ZodLiteral<"fileBinaryPart">;
2075
+ data: z.ZodString;
2076
+ mimeType: z.ZodString;
2077
+ }, z.core.$strip>, z.ZodObject<{
2078
+ id: z.ZodString;
2079
+ type: z.ZodLiteral<"toolCallPart">;
2080
+ toolCallId: z.ZodString;
2081
+ toolName: z.ZodString;
2082
+ args: z.ZodUnknown;
2083
+ }, z.core.$strip>, z.ZodObject<{
2084
+ id: z.ZodString;
2085
+ type: z.ZodLiteral<"toolResultPart">;
2086
+ toolCallId: z.ZodString;
2087
+ toolName: z.ZodString;
2088
+ contents: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
2089
+ id: z.ZodString;
2090
+ type: z.ZodLiteral<"textPart">;
2091
+ text: z.ZodString;
2092
+ }, z.core.$strip>, z.ZodObject<{
2093
+ id: z.ZodString;
2094
+ type: z.ZodLiteral<"imageInlinePart">;
2095
+ encodedData: z.ZodString;
2096
+ mimeType: z.ZodString;
2097
+ }, z.core.$strip>, z.ZodObject<{
2098
+ id: z.ZodString;
2099
+ type: z.ZodLiteral<"fileInlinePart">;
2100
+ encodedData: z.ZodString;
2101
+ mimeType: z.ZodString;
2102
+ }, z.core.$strip>]>>;
2103
+ isError: z.ZodOptional<z.ZodBoolean>;
2104
+ }, z.core.$strip>], "type">>;
2105
+ }, z.core.$strip>>>;
1918
2106
  }, z.core.$strip>;
1919
2107
  step: z.ZodObject<{
1920
2108
  stepNumber: z.ZodNumber;
@@ -1983,6 +2171,11 @@ declare const createCheckpointInput: z.ZodObject<{
1983
2171
  type: z.ZodLiteral<"imageInlinePart">;
1984
2172
  encodedData: z.ZodString;
1985
2173
  mimeType: z.ZodString;
2174
+ }, z.core.$strip>, z.ZodObject<{
2175
+ id: z.ZodString;
2176
+ type: z.ZodLiteral<"fileInlinePart">;
2177
+ encodedData: z.ZodString;
2178
+ mimeType: z.ZodString;
1986
2179
  }, z.core.$strip>]>>;
1987
2180
  isError: z.ZodOptional<z.ZodBoolean>;
1988
2181
  }, z.core.$strip>>;
@@ -2068,18 +2261,23 @@ declare const createCheckpointInput: z.ZodObject<{
2068
2261
  type: z.ZodLiteral<"imageInlinePart">;
2069
2262
  encodedData: z.ZodString;
2070
2263
  mimeType: z.ZodString;
2264
+ }, z.core.$strip>, z.ZodObject<{
2265
+ id: z.ZodString;
2266
+ type: z.ZodLiteral<"fileInlinePart">;
2267
+ encodedData: z.ZodString;
2268
+ mimeType: z.ZodString;
2071
2269
  }, z.core.$strip>]>>;
2072
2270
  isError: z.ZodOptional<z.ZodBoolean>;
2073
2271
  }, z.core.$strip>>;
2074
2272
  cache: z.ZodOptional<z.ZodBoolean>;
2075
2273
  }, z.core.$strip>]>>;
2076
- toolCall: z.ZodOptional<z.ZodObject<{
2274
+ toolCalls: z.ZodOptional<z.ZodArray<z.ZodObject<{
2077
2275
  id: z.ZodString;
2078
2276
  skillName: z.ZodString;
2079
2277
  toolName: z.ZodString;
2080
2278
  args: z.ZodRecord<z.ZodString, z.ZodUnknown>;
2081
- }, z.core.$strip>>;
2082
- toolResult: z.ZodOptional<z.ZodObject<{
2279
+ }, z.core.$strip>>>;
2280
+ toolResults: z.ZodOptional<z.ZodArray<z.ZodObject<{
2083
2281
  id: z.ZodString;
2084
2282
  skillName: z.ZodString;
2085
2283
  toolName: z.ZodString;
@@ -2137,10 +2335,88 @@ declare const createCheckpointInput: z.ZodObject<{
2137
2335
  type: z.ZodLiteral<"imageInlinePart">;
2138
2336
  encodedData: z.ZodString;
2139
2337
  mimeType: z.ZodString;
2338
+ }, z.core.$strip>, z.ZodObject<{
2339
+ id: z.ZodString;
2340
+ type: z.ZodLiteral<"fileInlinePart">;
2341
+ encodedData: z.ZodString;
2342
+ mimeType: z.ZodString;
2140
2343
  }, z.core.$strip>]>>;
2141
2344
  isError: z.ZodOptional<z.ZodBoolean>;
2142
2345
  }, z.core.$strip>], "type">>;
2143
- }, z.core.$strip>>;
2346
+ }, z.core.$strip>>>;
2347
+ pendingToolCalls: z.ZodOptional<z.ZodArray<z.ZodObject<{
2348
+ id: z.ZodString;
2349
+ skillName: z.ZodString;
2350
+ toolName: z.ZodString;
2351
+ args: z.ZodRecord<z.ZodString, z.ZodUnknown>;
2352
+ }, z.core.$strip>>>;
2353
+ partialToolResults: z.ZodOptional<z.ZodArray<z.ZodObject<{
2354
+ id: z.ZodString;
2355
+ skillName: z.ZodString;
2356
+ toolName: z.ZodString;
2357
+ result: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
2358
+ id: z.ZodString;
2359
+ type: z.ZodLiteral<"textPart">;
2360
+ text: z.ZodString;
2361
+ }, z.core.$strip>, z.ZodObject<{
2362
+ id: z.ZodString;
2363
+ type: z.ZodLiteral<"imageUrlPart">;
2364
+ url: z.ZodURL;
2365
+ mimeType: z.ZodString;
2366
+ }, z.core.$strip>, z.ZodObject<{
2367
+ id: z.ZodString;
2368
+ type: z.ZodLiteral<"imageInlinePart">;
2369
+ encodedData: z.ZodString;
2370
+ mimeType: z.ZodString;
2371
+ }, z.core.$strip>, z.ZodObject<{
2372
+ id: z.ZodString;
2373
+ type: z.ZodLiteral<"imageBinaryPart">;
2374
+ data: z.ZodString;
2375
+ mimeType: z.ZodString;
2376
+ }, z.core.$strip>, z.ZodObject<{
2377
+ id: z.ZodString;
2378
+ type: z.ZodLiteral<"fileUrlPart">;
2379
+ url: z.ZodString;
2380
+ mimeType: z.ZodString;
2381
+ }, z.core.$strip>, z.ZodObject<{
2382
+ id: z.ZodString;
2383
+ type: z.ZodLiteral<"fileInlinePart">;
2384
+ encodedData: z.ZodString;
2385
+ mimeType: z.ZodString;
2386
+ }, z.core.$strip>, z.ZodObject<{
2387
+ id: z.ZodString;
2388
+ type: z.ZodLiteral<"fileBinaryPart">;
2389
+ data: z.ZodString;
2390
+ mimeType: z.ZodString;
2391
+ }, z.core.$strip>, z.ZodObject<{
2392
+ id: z.ZodString;
2393
+ type: z.ZodLiteral<"toolCallPart">;
2394
+ toolCallId: z.ZodString;
2395
+ toolName: z.ZodString;
2396
+ args: z.ZodUnknown;
2397
+ }, z.core.$strip>, z.ZodObject<{
2398
+ id: z.ZodString;
2399
+ type: z.ZodLiteral<"toolResultPart">;
2400
+ toolCallId: z.ZodString;
2401
+ toolName: z.ZodString;
2402
+ contents: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
2403
+ id: z.ZodString;
2404
+ type: z.ZodLiteral<"textPart">;
2405
+ text: z.ZodString;
2406
+ }, z.core.$strip>, z.ZodObject<{
2407
+ id: z.ZodString;
2408
+ type: z.ZodLiteral<"imageInlinePart">;
2409
+ encodedData: z.ZodString;
2410
+ mimeType: z.ZodString;
2411
+ }, z.core.$strip>, z.ZodObject<{
2412
+ id: z.ZodString;
2413
+ type: z.ZodLiteral<"fileInlinePart">;
2414
+ encodedData: z.ZodString;
2415
+ mimeType: z.ZodString;
2416
+ }, z.core.$strip>]>>;
2417
+ isError: z.ZodOptional<z.ZodBoolean>;
2418
+ }, z.core.$strip>], "type">>;
2419
+ }, z.core.$strip>>>;
2144
2420
  usage: z.ZodObject<{
2145
2421
  inputTokens: z.ZodNumber;
2146
2422
  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.33",
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.22"
21
21
  },
22
22
  "devDependencies": {
23
23
  "@tsconfig/node22": "^22.0.5",