@purveyors/sdk 0.54.0 → 0.56.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.
- package/dist/index.d.ts +262 -14
- package/dist/index.js +7 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -6519,6 +6519,84 @@ interface paths {
|
|
|
6519
6519
|
patch?: never;
|
|
6520
6520
|
trace?: never;
|
|
6521
6521
|
};
|
|
6522
|
+
"/v1/catalog/taxonomies": {
|
|
6523
|
+
parameters: {
|
|
6524
|
+
query?: never;
|
|
6525
|
+
header?: never;
|
|
6526
|
+
path?: never;
|
|
6527
|
+
cookie?: never;
|
|
6528
|
+
};
|
|
6529
|
+
/**
|
|
6530
|
+
* Variety, species, and drying-method vocabularies
|
|
6531
|
+
* @description Lists canonical variety, species, and drying-method codes with labels, family links (`parent_code`), descriptions, and the supplier spellings (`aliases`) that map to each code. Reference data: identical for every authorized caller and not subject to row projection or collection limits. Retired codes are omitted unless includeRetired=true, except a retired family or species that an active code still names in `parent_code` or `species_code`: it is returned with `active: false` so every link resolves within the response. New values are added as rows; clients should not hard-code the lists.
|
|
6532
|
+
*/
|
|
6533
|
+
get: {
|
|
6534
|
+
parameters: {
|
|
6535
|
+
query?: {
|
|
6536
|
+
includeRetired?: "true" | "false";
|
|
6537
|
+
};
|
|
6538
|
+
header?: never;
|
|
6539
|
+
path?: never;
|
|
6540
|
+
cookie?: never;
|
|
6541
|
+
};
|
|
6542
|
+
requestBody?: never;
|
|
6543
|
+
responses: {
|
|
6544
|
+
/** @description Taxonomy vocabularies */
|
|
6545
|
+
200: {
|
|
6546
|
+
headers: {
|
|
6547
|
+
"X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
|
|
6548
|
+
"X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
|
|
6549
|
+
"X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
|
|
6550
|
+
"X-RateLimit-Burst-Limit": components["headers"]["X-RateLimit-Burst-Limit"];
|
|
6551
|
+
"X-RateLimit-Burst-Remaining": components["headers"]["X-RateLimit-Burst-Remaining"];
|
|
6552
|
+
"X-RateLimit-Burst-Reset": components["headers"]["X-RateLimit-Burst-Reset"];
|
|
6553
|
+
[name: string]: unknown;
|
|
6554
|
+
};
|
|
6555
|
+
content: {
|
|
6556
|
+
"application/json": components["schemas"]["CatalogTaxonomiesResponse"];
|
|
6557
|
+
};
|
|
6558
|
+
};
|
|
6559
|
+
/** @description Authentication required */
|
|
6560
|
+
401: {
|
|
6561
|
+
headers: {
|
|
6562
|
+
"X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
|
|
6563
|
+
"X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
|
|
6564
|
+
"X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
|
|
6565
|
+
"X-RateLimit-Burst-Limit": components["headers"]["X-RateLimit-Burst-Limit"];
|
|
6566
|
+
"X-RateLimit-Burst-Remaining": components["headers"]["X-RateLimit-Burst-Remaining"];
|
|
6567
|
+
"X-RateLimit-Burst-Reset": components["headers"]["X-RateLimit-Burst-Reset"];
|
|
6568
|
+
[name: string]: unknown;
|
|
6569
|
+
};
|
|
6570
|
+
content: {
|
|
6571
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
6572
|
+
};
|
|
6573
|
+
};
|
|
6574
|
+
/** @description Insufficient entitlement (plan or role) */
|
|
6575
|
+
403: {
|
|
6576
|
+
headers: {
|
|
6577
|
+
"X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
|
|
6578
|
+
"X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
|
|
6579
|
+
"X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
|
|
6580
|
+
"X-RateLimit-Burst-Limit": components["headers"]["X-RateLimit-Burst-Limit"];
|
|
6581
|
+
"X-RateLimit-Burst-Remaining": components["headers"]["X-RateLimit-Burst-Remaining"];
|
|
6582
|
+
"X-RateLimit-Burst-Reset": components["headers"]["X-RateLimit-Burst-Reset"];
|
|
6583
|
+
[name: string]: unknown;
|
|
6584
|
+
};
|
|
6585
|
+
content: {
|
|
6586
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
6587
|
+
};
|
|
6588
|
+
};
|
|
6589
|
+
429: components["responses"]["ApiRateLimitExceeded"];
|
|
6590
|
+
};
|
|
6591
|
+
};
|
|
6592
|
+
put?: never;
|
|
6593
|
+
post?: never;
|
|
6594
|
+
delete?: never;
|
|
6595
|
+
options?: never;
|
|
6596
|
+
head?: never;
|
|
6597
|
+
patch?: never;
|
|
6598
|
+
trace?: never;
|
|
6599
|
+
};
|
|
6522
6600
|
"/v1/catalog/{id}/price-history": {
|
|
6523
6601
|
parameters: {
|
|
6524
6602
|
query?: never;
|
|
@@ -10020,7 +10098,7 @@ interface paths {
|
|
|
10020
10098
|
get?: never;
|
|
10021
10099
|
/**
|
|
10022
10100
|
* Replace an owner roast live curve
|
|
10023
|
-
* @description Atomically replace live temperature samples and all event markers, derive milestone and phase fields upstream, and preserve non-live temperature samples. Optional If-Match protects against lost updates.
|
|
10101
|
+
* @description Atomically replace live temperature samples and all event markers, derive milestone and phase fields upstream, and preserve non-live temperature samples. The fields are derived from milestone events named `charge`, `dry_end`, `fc_start`, `fc_end`, `sc_start`, `drop`, and `cool`; the older names `start`, `maillard`, and `end` are read as `charge`, `dry_end`, and `cool` when the current name is absent. Derived times count from CHARGE, or from the start of the recording when neither `charge` nor `start` is sent, in which case `charge_time` is null. A turning point is not derived. Optional If-Match protects against lost updates.
|
|
10024
10102
|
*/
|
|
10025
10103
|
put: {
|
|
10026
10104
|
parameters: {
|
|
@@ -14238,6 +14316,7 @@ interface components {
|
|
|
14238
14316
|
ReferenceProfileChart: {
|
|
14239
14317
|
/** @enum {string} */
|
|
14240
14318
|
temperatureUnit: "F" | "C";
|
|
14319
|
+
/** @description Where CHARGE sits on the chart's clock, in milliseconds since the recording started. Null when no CHARGE is marked. Subtract it from any chart time for time since CHARGE. */
|
|
14241
14320
|
chargeTimeMilliseconds: number | null;
|
|
14242
14321
|
series: {
|
|
14243
14322
|
id: string;
|
|
@@ -14248,11 +14327,13 @@ interface components {
|
|
|
14248
14327
|
deviceIndex: number | null;
|
|
14249
14328
|
channel: 1 | 2 | null;
|
|
14250
14329
|
points: {
|
|
14330
|
+
/** @description Milliseconds since the recording started. Subtract the chart's `chargeTimeMilliseconds` for time since CHARGE. */
|
|
14251
14331
|
timeMilliseconds: number;
|
|
14252
14332
|
value: number;
|
|
14253
14333
|
}[];
|
|
14254
14334
|
}[];
|
|
14255
14335
|
events: {
|
|
14336
|
+
/** @description Milliseconds since the recording started. Subtract the chart's `chargeTimeMilliseconds` for time since CHARGE. */
|
|
14256
14337
|
timeMilliseconds: number;
|
|
14257
14338
|
name: string;
|
|
14258
14339
|
value: string | null;
|
|
@@ -14287,7 +14368,9 @@ interface components {
|
|
|
14287
14368
|
temperatureAdjustments: {
|
|
14288
14369
|
/** @enum {string} */
|
|
14289
14370
|
kind: "bean_temperature" | "environmental_temperature";
|
|
14371
|
+
/** @description Start of the change on the parent chart's clock. Milliseconds since the recording started, as chart points are timed. For a time counted from CHARGE, add the chart's `chargeTimeMilliseconds`. */
|
|
14290
14372
|
startMilliseconds: number;
|
|
14373
|
+
/** @description End of the change on the parent chart's clock. Milliseconds since the recording started, as chart points are timed. For a time counted from CHARGE, add the chart's `chargeTimeMilliseconds`. */
|
|
14291
14374
|
endMilliseconds: number;
|
|
14292
14375
|
delta: number;
|
|
14293
14376
|
}[];
|
|
@@ -14307,10 +14390,12 @@ interface components {
|
|
|
14307
14390
|
unchangedZeroSampleCount: number;
|
|
14308
14391
|
parent: {
|
|
14309
14392
|
first: {
|
|
14393
|
+
/** @description Milliseconds since the recording started. Subtract the chart's `chargeTimeMilliseconds` for time since CHARGE. */
|
|
14310
14394
|
timeMilliseconds: number;
|
|
14311
14395
|
value: number;
|
|
14312
14396
|
} | null;
|
|
14313
14397
|
last: {
|
|
14398
|
+
/** @description Milliseconds since the recording started. Subtract the chart's `chargeTimeMilliseconds` for time since CHARGE. */
|
|
14314
14399
|
timeMilliseconds: number;
|
|
14315
14400
|
value: number;
|
|
14316
14401
|
} | null;
|
|
@@ -14319,10 +14404,12 @@ interface components {
|
|
|
14319
14404
|
};
|
|
14320
14405
|
planned: {
|
|
14321
14406
|
first: {
|
|
14407
|
+
/** @description Milliseconds since the recording started. Subtract the chart's `chargeTimeMilliseconds` for time since CHARGE. */
|
|
14322
14408
|
timeMilliseconds: number;
|
|
14323
14409
|
value: number;
|
|
14324
14410
|
} | null;
|
|
14325
14411
|
last: {
|
|
14412
|
+
/** @description Milliseconds since the recording started. Subtract the chart's `chargeTimeMilliseconds` for time since CHARGE. */
|
|
14326
14413
|
timeMilliseconds: number;
|
|
14327
14414
|
value: number;
|
|
14328
14415
|
} | null;
|
|
@@ -14356,7 +14443,9 @@ interface components {
|
|
|
14356
14443
|
temperatureAdjustments: {
|
|
14357
14444
|
/** @enum {string} */
|
|
14358
14445
|
kind: "bean_temperature" | "environmental_temperature";
|
|
14446
|
+
/** @description Start of the change on the parent chart's clock. Milliseconds since the recording started, as chart points are timed. For a time counted from CHARGE, add the chart's `chargeTimeMilliseconds`. */
|
|
14359
14447
|
startMilliseconds: number;
|
|
14448
|
+
/** @description End of the change on the parent chart's clock. Milliseconds since the recording started, as chart points are timed. For a time counted from CHARGE, add the chart's `chargeTimeMilliseconds`. */
|
|
14360
14449
|
endMilliseconds: number;
|
|
14361
14450
|
delta: number;
|
|
14362
14451
|
}[];
|
|
@@ -14451,7 +14540,9 @@ interface components {
|
|
|
14451
14540
|
temperatureAdjustments: {
|
|
14452
14541
|
/** @enum {string} */
|
|
14453
14542
|
kind: "bean_temperature" | "environmental_temperature";
|
|
14543
|
+
/** @description Start of the change on the parent chart's clock. Milliseconds since the recording started, as chart points are timed. For a time counted from CHARGE, add the chart's `chargeTimeMilliseconds`. */
|
|
14454
14544
|
startMilliseconds: number;
|
|
14545
|
+
/** @description End of the change on the parent chart's clock. Milliseconds since the recording started, as chart points are timed. For a time counted from CHARGE, add the chart's `chargeTimeMilliseconds`. */
|
|
14455
14546
|
endMilliseconds: number;
|
|
14456
14547
|
delta: number;
|
|
14457
14548
|
}[];
|
|
@@ -14471,10 +14562,12 @@ interface components {
|
|
|
14471
14562
|
unchangedZeroSampleCount: number;
|
|
14472
14563
|
parent: {
|
|
14473
14564
|
first: {
|
|
14565
|
+
/** @description Milliseconds since the recording started. Subtract the chart's `chargeTimeMilliseconds` for time since CHARGE. */
|
|
14474
14566
|
timeMilliseconds: number;
|
|
14475
14567
|
value: number;
|
|
14476
14568
|
} | null;
|
|
14477
14569
|
last: {
|
|
14570
|
+
/** @description Milliseconds since the recording started. Subtract the chart's `chargeTimeMilliseconds` for time since CHARGE. */
|
|
14478
14571
|
timeMilliseconds: number;
|
|
14479
14572
|
value: number;
|
|
14480
14573
|
} | null;
|
|
@@ -14483,10 +14576,12 @@ interface components {
|
|
|
14483
14576
|
};
|
|
14484
14577
|
planned: {
|
|
14485
14578
|
first: {
|
|
14579
|
+
/** @description Milliseconds since the recording started. Subtract the chart's `chargeTimeMilliseconds` for time since CHARGE. */
|
|
14486
14580
|
timeMilliseconds: number;
|
|
14487
14581
|
value: number;
|
|
14488
14582
|
} | null;
|
|
14489
14583
|
last: {
|
|
14584
|
+
/** @description Milliseconds since the recording started. Subtract the chart's `chargeTimeMilliseconds` for time since CHARGE. */
|
|
14490
14585
|
timeMilliseconds: number;
|
|
14491
14586
|
value: number;
|
|
14492
14587
|
} | null;
|
|
@@ -14552,6 +14647,7 @@ interface components {
|
|
|
14552
14647
|
kind: "bean_temperature" | "environmental_temperature" | "auxiliary";
|
|
14553
14648
|
unit: string;
|
|
14554
14649
|
points: {
|
|
14650
|
+
/** @description Milliseconds since CHARGE. */
|
|
14555
14651
|
timeMilliseconds: number;
|
|
14556
14652
|
left: number;
|
|
14557
14653
|
right: number;
|
|
@@ -14560,7 +14656,9 @@ interface components {
|
|
|
14560
14656
|
}[];
|
|
14561
14657
|
milestones: {
|
|
14562
14658
|
name: string;
|
|
14659
|
+
/** @description The left profile's milestone, in milliseconds since its CHARGE. */
|
|
14563
14660
|
leftMilliseconds: number;
|
|
14661
|
+
/** @description The right profile's milestone, in milliseconds since its CHARGE. */
|
|
14564
14662
|
rightMilliseconds: number;
|
|
14565
14663
|
deltaMilliseconds: number;
|
|
14566
14664
|
}[];
|
|
@@ -16703,6 +16801,49 @@ interface components {
|
|
|
16703
16801
|
dimensions: ("size" | "altitude" | "defects" | "cup" | "preparation")[];
|
|
16704
16802
|
};
|
|
16705
16803
|
};
|
|
16804
|
+
VarietyEntry: {
|
|
16805
|
+
/** @example yellow_bourbon */
|
|
16806
|
+
code: string;
|
|
16807
|
+
/** @example Yellow Bourbon */
|
|
16808
|
+
label: string;
|
|
16809
|
+
/** @description Family this value belongs to. A family code matches itself and every descendant. */
|
|
16810
|
+
parent_code: string | null;
|
|
16811
|
+
description: string | null;
|
|
16812
|
+
active: boolean;
|
|
16813
|
+
sort_order: number;
|
|
16814
|
+
/** @description Normalized supplier spellings that map to this code. */
|
|
16815
|
+
aliases: string[];
|
|
16816
|
+
species_code: string | null;
|
|
16817
|
+
};
|
|
16818
|
+
TaxonomyEntry: {
|
|
16819
|
+
/** @example yellow_bourbon */
|
|
16820
|
+
code: string;
|
|
16821
|
+
/** @example Yellow Bourbon */
|
|
16822
|
+
label: string;
|
|
16823
|
+
/** @description Family this value belongs to. A family code matches itself and every descendant. */
|
|
16824
|
+
parent_code: string | null;
|
|
16825
|
+
description: string | null;
|
|
16826
|
+
active: boolean;
|
|
16827
|
+
sort_order: number;
|
|
16828
|
+
/** @description Normalized supplier spellings that map to this code. */
|
|
16829
|
+
aliases: string[];
|
|
16830
|
+
};
|
|
16831
|
+
CatalogTaxonomiesResponse: {
|
|
16832
|
+
data: {
|
|
16833
|
+
varieties: components["schemas"]["VarietyEntry"][];
|
|
16834
|
+
species: components["schemas"]["TaxonomyEntry"][];
|
|
16835
|
+
drying_methods: components["schemas"]["TaxonomyEntry"][];
|
|
16836
|
+
};
|
|
16837
|
+
meta: {
|
|
16838
|
+
/** @enum {string} */
|
|
16839
|
+
resource: "catalog-taxonomies";
|
|
16840
|
+
/** @enum {string} */
|
|
16841
|
+
namespace: "/v1/catalog/taxonomies";
|
|
16842
|
+
/** @enum {string} */
|
|
16843
|
+
version: "v1";
|
|
16844
|
+
taxonomies: ("variety" | "species" | "drying_method")[];
|
|
16845
|
+
};
|
|
16846
|
+
};
|
|
16706
16847
|
LotPriceHistoryResponse: {
|
|
16707
16848
|
data: {
|
|
16708
16849
|
catalogId: number;
|
|
@@ -17072,7 +17213,9 @@ interface components {
|
|
|
17072
17213
|
temperatureAdjustments: {
|
|
17073
17214
|
/** @enum {string} */
|
|
17074
17215
|
kind: "bean_temperature" | "environmental_temperature";
|
|
17216
|
+
/** @description Start of the change on the parent chart's clock. Milliseconds since the recording started, as chart points are timed. For a time counted from CHARGE, add the chart's `chargeTimeMilliseconds`. */
|
|
17075
17217
|
startMilliseconds: number;
|
|
17218
|
+
/** @description End of the change on the parent chart's clock. Milliseconds since the recording started, as chart points are timed. For a time counted from CHARGE, add the chart's `chargeTimeMilliseconds`. */
|
|
17076
17219
|
endMilliseconds: number;
|
|
17077
17220
|
delta: number;
|
|
17078
17221
|
}[];
|
|
@@ -17603,6 +17746,7 @@ interface components {
|
|
|
17603
17746
|
};
|
|
17604
17747
|
RoastTemperature: {
|
|
17605
17748
|
roast_id: number;
|
|
17749
|
+
/** @description Seconds since the recording started, the clock the curve is sampled on. Subtract the roast's `charge_time` for time since CHARGE. */
|
|
17606
17750
|
time_seconds: number;
|
|
17607
17751
|
bean_temp: number | null;
|
|
17608
17752
|
environmental_temp: number | null;
|
|
@@ -17612,6 +17756,7 @@ interface components {
|
|
|
17612
17756
|
};
|
|
17613
17757
|
RoastEvent: {
|
|
17614
17758
|
roast_id: number;
|
|
17759
|
+
/** @description Seconds since the recording started, the clock the curve is sampled on. Subtract the roast's `charge_time` for time since CHARGE. */
|
|
17615
17760
|
time_seconds: number;
|
|
17616
17761
|
event_type: number | null;
|
|
17617
17762
|
event_value: string | null;
|
|
@@ -17636,25 +17781,34 @@ interface components {
|
|
|
17636
17781
|
roaster_type: string | null;
|
|
17637
17782
|
roaster_size: string | null;
|
|
17638
17783
|
temperature_unit: string | null;
|
|
17784
|
+
/** @description Roast length in seconds, from CHARGE to DROP. From the start of the recording when `charge_time` is null. */
|
|
17639
17785
|
total_roast_time: number | null;
|
|
17786
|
+
/** @description Development: first crack start to DROP, as a share of the time from CHARGE to DROP (`total_roast_time`), in percent. */
|
|
17640
17787
|
development_percent: number | null;
|
|
17641
17788
|
data_source: string | null;
|
|
17642
17789
|
last_updated: string;
|
|
17643
17790
|
roast_uuid: string | null;
|
|
17791
|
+
/** @description First crack start. Seconds since CHARGE. When `charge_time` is null the roast has no CHARGE marked and this counts from the start of the recording instead. */
|
|
17644
17792
|
fc_start_time: number | null;
|
|
17645
17793
|
fc_start_temp: number | null;
|
|
17794
|
+
/** @description First crack end. Seconds since CHARGE. When `charge_time` is null the roast has no CHARGE marked and this counts from the start of the recording instead. */
|
|
17646
17795
|
fc_end_time: number | null;
|
|
17647
17796
|
fc_end_temp: number | null;
|
|
17797
|
+
/** @description DROP. Seconds since CHARGE. When `charge_time` is null the roast has no CHARGE marked and this counts from the start of the recording instead. */
|
|
17648
17798
|
drop_time: number | null;
|
|
17649
17799
|
drop_temp: number | null;
|
|
17650
17800
|
charge_temp: number | null;
|
|
17801
|
+
/** @description Where CHARGE sits on the recording clock: seconds from the start of the recording to CHARGE. Null when no CHARGE is marked. Every other roast time counts from this moment; add it to one of them to place it on the curve. */
|
|
17651
17802
|
charge_time: number | null;
|
|
17652
|
-
/** @description Drying-phase end
|
|
17803
|
+
/** @description Drying-phase end. Seconds since CHARGE. When `charge_time` is null the roast has no CHARGE marked and this counts from the start of the recording instead. */
|
|
17653
17804
|
dry_end_time: number | null;
|
|
17805
|
+
/** @description Turning point. Seconds since CHARGE. When `charge_time` is null the roast has no CHARGE marked and this counts from the start of the recording instead. */
|
|
17654
17806
|
tp_time: number | null;
|
|
17655
17807
|
tp_temp: number | null;
|
|
17656
17808
|
total_ror: number | null;
|
|
17809
|
+
/** @description Drying: CHARGE to drying-phase end, as a share of the time from CHARGE to DROP (`total_roast_time`), in percent. */
|
|
17657
17810
|
dry_percent: number | null;
|
|
17811
|
+
/** @description Maillard: drying-phase end to first crack start, as a share of the time from CHARGE to DROP (`total_roast_time`), in percent. */
|
|
17658
17812
|
maillard_percent: number | null;
|
|
17659
17813
|
auc: number | null;
|
|
17660
17814
|
dry_phase_ror: number | null;
|
|
@@ -17687,6 +17841,7 @@ interface components {
|
|
|
17687
17841
|
};
|
|
17688
17842
|
};
|
|
17689
17843
|
RoastTemperatureInput: {
|
|
17844
|
+
/** @description Seconds since the recording started. */
|
|
17690
17845
|
timeSeconds: number;
|
|
17691
17846
|
beanTemp?: number | null;
|
|
17692
17847
|
environmentalTemp?: number | null;
|
|
@@ -17696,6 +17851,7 @@ interface components {
|
|
|
17696
17851
|
dataSource?: "live" | "artisan_import" | "manual";
|
|
17697
17852
|
};
|
|
17698
17853
|
RoastEventInput: {
|
|
17854
|
+
/** @description Seconds since the recording started, the same clock as the temperature samples. */
|
|
17699
17855
|
timeSeconds: number;
|
|
17700
17856
|
eventType?: number | null;
|
|
17701
17857
|
eventValue?: string | null;
|
|
@@ -17721,18 +17877,24 @@ interface components {
|
|
|
17721
17877
|
roasterSize?: string;
|
|
17722
17878
|
/** @enum {string} */
|
|
17723
17879
|
temperatureUnit?: "F" | "C";
|
|
17880
|
+
/** @description Roast length in seconds, from CHARGE to DROP. */
|
|
17724
17881
|
totalRoastTime?: number;
|
|
17725
17882
|
developmentPercent?: number;
|
|
17726
17883
|
dataSource?: string;
|
|
17727
17884
|
roastUuid?: string;
|
|
17885
|
+
/** @description First crack start, in seconds since CHARGE. */
|
|
17728
17886
|
fcStartTime?: number;
|
|
17729
17887
|
fcStartTemp?: number;
|
|
17888
|
+
/** @description First crack end, in seconds since CHARGE. */
|
|
17730
17889
|
fcEndTime?: number;
|
|
17731
17890
|
fcEndTemp?: number;
|
|
17891
|
+
/** @description DROP, in seconds since CHARGE. */
|
|
17732
17892
|
dropTime?: number;
|
|
17733
17893
|
dropTemp?: number;
|
|
17734
17894
|
chargeTemp?: number;
|
|
17895
|
+
/** @description Where CHARGE sits on the recording clock: seconds from the start of the recording to CHARGE. Every other roast time counts from it. */
|
|
17735
17896
|
chargeTime?: number;
|
|
17897
|
+
/** @description Turning point, in seconds since CHARGE. */
|
|
17736
17898
|
tpTime?: number;
|
|
17737
17899
|
tpTemp?: number;
|
|
17738
17900
|
totalRor?: number;
|
|
@@ -17794,18 +17956,24 @@ interface components {
|
|
|
17794
17956
|
roasterSize?: string;
|
|
17795
17957
|
/** @enum {string} */
|
|
17796
17958
|
temperatureUnit?: "F" | "C";
|
|
17959
|
+
/** @description Roast length in seconds, from CHARGE to DROP. */
|
|
17797
17960
|
totalRoastTime?: number;
|
|
17798
17961
|
developmentPercent?: number;
|
|
17799
17962
|
dataSource?: string;
|
|
17800
17963
|
roastUuid?: string;
|
|
17964
|
+
/** @description First crack start, in seconds since CHARGE. */
|
|
17801
17965
|
fcStartTime?: number;
|
|
17802
17966
|
fcStartTemp?: number;
|
|
17967
|
+
/** @description First crack end, in seconds since CHARGE. */
|
|
17803
17968
|
fcEndTime?: number;
|
|
17804
17969
|
fcEndTemp?: number;
|
|
17970
|
+
/** @description DROP, in seconds since CHARGE. */
|
|
17805
17971
|
dropTime?: number;
|
|
17806
17972
|
dropTemp?: number;
|
|
17807
17973
|
chargeTemp?: number;
|
|
17974
|
+
/** @description Where CHARGE sits on the recording clock: seconds from the start of the recording to CHARGE. Every other roast time counts from it. */
|
|
17808
17975
|
chargeTime?: number;
|
|
17976
|
+
/** @description Turning point, in seconds since CHARGE. */
|
|
17809
17977
|
tpTime?: number;
|
|
17810
17978
|
tpTemp?: number;
|
|
17811
17979
|
totalRor?: number;
|
|
@@ -18023,25 +18191,34 @@ interface components {
|
|
|
18023
18191
|
roaster_type: string | null;
|
|
18024
18192
|
roaster_size: string | null;
|
|
18025
18193
|
temperature_unit: string | null;
|
|
18194
|
+
/** @description Roast length in seconds, from CHARGE to DROP. From the start of the recording when `charge_time` is null. */
|
|
18026
18195
|
total_roast_time: number | null;
|
|
18196
|
+
/** @description Development: first crack start to DROP, as a share of the time from CHARGE to DROP (`total_roast_time`), in percent. */
|
|
18027
18197
|
development_percent: number | null;
|
|
18028
18198
|
data_source: string | null;
|
|
18029
18199
|
last_updated: string;
|
|
18030
18200
|
roast_uuid: string | null;
|
|
18201
|
+
/** @description First crack start. Seconds since CHARGE. When `charge_time` is null the roast has no CHARGE marked and this counts from the start of the recording instead. */
|
|
18031
18202
|
fc_start_time: number | null;
|
|
18032
18203
|
fc_start_temp: number | null;
|
|
18204
|
+
/** @description First crack end. Seconds since CHARGE. When `charge_time` is null the roast has no CHARGE marked and this counts from the start of the recording instead. */
|
|
18033
18205
|
fc_end_time: number | null;
|
|
18034
18206
|
fc_end_temp: number | null;
|
|
18207
|
+
/** @description DROP. Seconds since CHARGE. When `charge_time` is null the roast has no CHARGE marked and this counts from the start of the recording instead. */
|
|
18035
18208
|
drop_time: number | null;
|
|
18036
18209
|
drop_temp: number | null;
|
|
18037
18210
|
charge_temp: number | null;
|
|
18211
|
+
/** @description Where CHARGE sits on the recording clock: seconds from the start of the recording to CHARGE. Null when no CHARGE is marked. Every other roast time counts from this moment; add it to one of them to place it on the curve. */
|
|
18038
18212
|
charge_time: number | null;
|
|
18039
|
-
/** @description Drying-phase end
|
|
18213
|
+
/** @description Drying-phase end. Seconds since CHARGE. When `charge_time` is null the roast has no CHARGE marked and this counts from the start of the recording instead. */
|
|
18040
18214
|
dry_end_time: number | null;
|
|
18215
|
+
/** @description Turning point. Seconds since CHARGE. When `charge_time` is null the roast has no CHARGE marked and this counts from the start of the recording instead. */
|
|
18041
18216
|
tp_time: number | null;
|
|
18042
18217
|
tp_temp: number | null;
|
|
18043
18218
|
total_ror: number | null;
|
|
18219
|
+
/** @description Drying: CHARGE to drying-phase end, as a share of the time from CHARGE to DROP (`total_roast_time`), in percent. */
|
|
18044
18220
|
dry_percent: number | null;
|
|
18221
|
+
/** @description Maillard: drying-phase end to first crack start, as a share of the time from CHARGE to DROP (`total_roast_time`), in percent. */
|
|
18045
18222
|
maillard_percent: number | null;
|
|
18046
18223
|
auc: number | null;
|
|
18047
18224
|
dry_phase_ror: number | null;
|
|
@@ -18139,6 +18316,7 @@ interface components {
|
|
|
18139
18316
|
};
|
|
18140
18317
|
RoastChartPoint: {
|
|
18141
18318
|
data_type: string;
|
|
18319
|
+
/** @description Milliseconds since the recording started, the clock the curve is sampled on. Subtract `metadata.charge_time_ms` for time since CHARGE. */
|
|
18142
18320
|
time_milliseconds: number;
|
|
18143
18321
|
field_name: string;
|
|
18144
18322
|
value_numeric: number;
|
|
@@ -18147,6 +18325,7 @@ interface components {
|
|
|
18147
18325
|
subcategory: string;
|
|
18148
18326
|
};
|
|
18149
18327
|
RoastChartSeriesPoint: {
|
|
18328
|
+
/** @description Milliseconds since the recording started, the clock the curve is sampled on. Subtract `metadata.charge_time_ms` for time since CHARGE. */
|
|
18150
18329
|
time_milliseconds: number;
|
|
18151
18330
|
value_numeric: number;
|
|
18152
18331
|
};
|
|
@@ -18163,6 +18342,7 @@ interface components {
|
|
|
18163
18342
|
points: components["schemas"]["RoastChartSeriesPoint"][];
|
|
18164
18343
|
};
|
|
18165
18344
|
RoastChartEvent: {
|
|
18345
|
+
/** @description Milliseconds since the recording started, the clock the curve is sampled on. Subtract `metadata.charge_time_ms` for time since CHARGE. */
|
|
18166
18346
|
time_milliseconds: number;
|
|
18167
18347
|
name: string;
|
|
18168
18348
|
value: string | null;
|
|
@@ -18182,6 +18362,7 @@ interface components {
|
|
|
18182
18362
|
temp_max: number | null;
|
|
18183
18363
|
ror_min: number | null;
|
|
18184
18364
|
ror_max: number | null;
|
|
18365
|
+
/** @description Where CHARGE sits on the recording clock, in milliseconds. Null when no CHARGE is marked. Subtract it from any chart time for time since CHARGE. */
|
|
18185
18366
|
charge_time_ms: number | null;
|
|
18186
18367
|
temperature_unit: string | null;
|
|
18187
18368
|
profile_schema_version: number | null;
|
|
@@ -18803,6 +18984,8 @@ type CatalogSimilarQuery = NonNullable<paths["/v1/catalog/{id}/similar"]["get"][
|
|
|
18803
18984
|
type CatalogCompareQuery = NonNullable<paths["/v1/catalog/compare"]["get"]["parameters"]["query"]>;
|
|
18804
18985
|
/** Query parameters for {@link ParchmentClient.catalog.grades}. */
|
|
18805
18986
|
type CatalogGradesQuery = NonNullable<paths["/v1/catalog/grades"]["get"]["parameters"]["query"]>;
|
|
18987
|
+
/** Query parameters for {@link ParchmentClient.catalog.taxonomies}. */
|
|
18988
|
+
type CatalogTaxonomiesQuery = NonNullable<paths["/v1/catalog/taxonomies"]["get"]["parameters"]["query"]>;
|
|
18806
18989
|
/** Query parameters for {@link ParchmentClient.catalog.priceHistory}. */
|
|
18807
18990
|
type CatalogPriceHistoryQuery = NonNullable<paths["/v1/catalog/{id}/price-history"]["get"]["parameters"]["query"]>;
|
|
18808
18991
|
/** Query parameters for {@link ParchmentClient.priceIndex.list}. */
|
|
@@ -22916,6 +23099,69 @@ declare function createParchmentClient(options: ParchmentClientOptions): {
|
|
|
22916
23099
|
} | undefined;
|
|
22917
23100
|
};
|
|
22918
23101
|
}, `${string}/${string}`>>;
|
|
23102
|
+
/** Variety, species, and drying-method vocabularies with aliases and family links. */
|
|
23103
|
+
taxonomies: (query?: CatalogTaxonomiesQuery) => Promise<openapi_fetch.FetchResponse<{
|
|
23104
|
+
parameters: {
|
|
23105
|
+
query?: {
|
|
23106
|
+
includeRetired?: "true" | "false";
|
|
23107
|
+
};
|
|
23108
|
+
header?: never;
|
|
23109
|
+
path?: never;
|
|
23110
|
+
cookie?: never;
|
|
23111
|
+
};
|
|
23112
|
+
requestBody?: never;
|
|
23113
|
+
responses: {
|
|
23114
|
+
200: {
|
|
23115
|
+
headers: {
|
|
23116
|
+
"X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
|
|
23117
|
+
"X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
|
|
23118
|
+
"X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
|
|
23119
|
+
"X-RateLimit-Burst-Limit": components["headers"]["X-RateLimit-Burst-Limit"];
|
|
23120
|
+
"X-RateLimit-Burst-Remaining": components["headers"]["X-RateLimit-Burst-Remaining"];
|
|
23121
|
+
"X-RateLimit-Burst-Reset": components["headers"]["X-RateLimit-Burst-Reset"];
|
|
23122
|
+
[name: string]: unknown;
|
|
23123
|
+
};
|
|
23124
|
+
content: {
|
|
23125
|
+
"application/json": components["schemas"]["CatalogTaxonomiesResponse"];
|
|
23126
|
+
};
|
|
23127
|
+
};
|
|
23128
|
+
401: {
|
|
23129
|
+
headers: {
|
|
23130
|
+
"X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
|
|
23131
|
+
"X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
|
|
23132
|
+
"X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
|
|
23133
|
+
"X-RateLimit-Burst-Limit": components["headers"]["X-RateLimit-Burst-Limit"];
|
|
23134
|
+
"X-RateLimit-Burst-Remaining": components["headers"]["X-RateLimit-Burst-Remaining"];
|
|
23135
|
+
"X-RateLimit-Burst-Reset": components["headers"]["X-RateLimit-Burst-Reset"];
|
|
23136
|
+
[name: string]: unknown;
|
|
23137
|
+
};
|
|
23138
|
+
content: {
|
|
23139
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
23140
|
+
};
|
|
23141
|
+
};
|
|
23142
|
+
403: {
|
|
23143
|
+
headers: {
|
|
23144
|
+
"X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
|
|
23145
|
+
"X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
|
|
23146
|
+
"X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
|
|
23147
|
+
"X-RateLimit-Burst-Limit": components["headers"]["X-RateLimit-Burst-Limit"];
|
|
23148
|
+
"X-RateLimit-Burst-Remaining": components["headers"]["X-RateLimit-Burst-Remaining"];
|
|
23149
|
+
"X-RateLimit-Burst-Reset": components["headers"]["X-RateLimit-Burst-Reset"];
|
|
23150
|
+
[name: string]: unknown;
|
|
23151
|
+
};
|
|
23152
|
+
content: {
|
|
23153
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
23154
|
+
};
|
|
23155
|
+
};
|
|
23156
|
+
429: components["responses"]["ApiRateLimitExceeded"];
|
|
23157
|
+
};
|
|
23158
|
+
}, {
|
|
23159
|
+
params: {
|
|
23160
|
+
query: {
|
|
23161
|
+
includeRetired?: "true" | "false";
|
|
23162
|
+
} | undefined;
|
|
23163
|
+
};
|
|
23164
|
+
}, `${string}/${string}`>>;
|
|
22919
23165
|
};
|
|
22920
23166
|
priceIndex: {
|
|
22921
23167
|
/** Available exact 30-day comparisons, with no empty-origin search. */
|
|
@@ -30397,9 +30643,7 @@ declare function createParchmentClient(options: ParchmentClientOptions): {
|
|
|
30397
30643
|
"application/json": components["schemas"]["ErrorResponse"];
|
|
30398
30644
|
};
|
|
30399
30645
|
};
|
|
30400
|
-
429:
|
|
30401
|
-
/** Closed session-only command for {@link ParchmentClient.confirmedActions.execute}. */
|
|
30402
|
-
components["responses"]["ApiRateLimitExceeded"];
|
|
30646
|
+
429: components["responses"]["ApiRateLimitExceeded"];
|
|
30403
30647
|
};
|
|
30404
30648
|
}, {
|
|
30405
30649
|
params: {
|
|
@@ -30530,7 +30774,9 @@ declare function createParchmentClient(options: ParchmentClientOptions): {
|
|
|
30530
30774
|
"X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
|
|
30531
30775
|
"X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
|
|
30532
30776
|
"X-RateLimit-Burst-Limit": components["headers"]["X-RateLimit-Burst-Limit"];
|
|
30533
|
-
"X-RateLimit-Burst-Remaining":
|
|
30777
|
+
"X-RateLimit-Burst-Remaining":
|
|
30778
|
+
/** Create a signed, short-lived login request bound to a PKCE challenge. */
|
|
30779
|
+
components["headers"]["X-RateLimit-Burst-Remaining"];
|
|
30534
30780
|
"X-RateLimit-Burst-Reset": components["headers"]["X-RateLimit-Burst-Reset"];
|
|
30535
30781
|
[name: string]: unknown;
|
|
30536
30782
|
};
|
|
@@ -30597,9 +30843,7 @@ declare function createParchmentClient(options: ParchmentClientOptions): {
|
|
|
30597
30843
|
409: {
|
|
30598
30844
|
headers: {
|
|
30599
30845
|
"X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
|
|
30600
|
-
"X-RateLimit-Remaining":
|
|
30601
|
-
/** Available exact 30-day comparisons, with no empty-origin search. */
|
|
30602
|
-
components["headers"]["X-RateLimit-Remaining"];
|
|
30846
|
+
"X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
|
|
30603
30847
|
"X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
|
|
30604
30848
|
"X-RateLimit-Burst-Limit": components["headers"]["X-RateLimit-Burst-Limit"];
|
|
30605
30849
|
"X-RateLimit-Burst-Remaining": components["headers"]["X-RateLimit-Burst-Remaining"];
|
|
@@ -30629,7 +30873,7 @@ declare function createParchmentClient(options: ParchmentClientOptions): {
|
|
|
30629
30873
|
id: string;
|
|
30630
30874
|
revisionId: string;
|
|
30631
30875
|
};
|
|
30632
|
-
cookie
|
|
30876
|
+
cookie?: never;
|
|
30633
30877
|
};
|
|
30634
30878
|
requestBody: {
|
|
30635
30879
|
content: {
|
|
@@ -31488,7 +31732,9 @@ declare function createParchmentClient(options: ParchmentClientOptions): {
|
|
|
31488
31732
|
403: {
|
|
31489
31733
|
headers: {
|
|
31490
31734
|
"X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
|
|
31491
|
-
"X-RateLimit-Remaining":
|
|
31735
|
+
"X-RateLimit-Remaining":
|
|
31736
|
+
/** Revoke an API key owned by the authenticated session user. */
|
|
31737
|
+
components["headers"]["X-RateLimit-Remaining"];
|
|
31492
31738
|
"X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
|
|
31493
31739
|
"X-RateLimit-Burst-Limit": components["headers"]["X-RateLimit-Burst-Limit"];
|
|
31494
31740
|
"X-RateLimit-Burst-Remaining": components["headers"]["X-RateLimit-Burst-Remaining"];
|
|
@@ -31599,7 +31845,9 @@ declare function createParchmentClient(options: ParchmentClientOptions): {
|
|
|
31599
31845
|
"X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
|
|
31600
31846
|
"X-RateLimit-Burst-Limit": components["headers"]["X-RateLimit-Burst-Limit"];
|
|
31601
31847
|
"X-RateLimit-Burst-Remaining": components["headers"]["X-RateLimit-Burst-Remaining"];
|
|
31602
|
-
"X-RateLimit-Burst-Reset":
|
|
31848
|
+
"X-RateLimit-Burst-Reset":
|
|
31849
|
+
/** Query parameters for {@link ParchmentClient.tasting.get}. */
|
|
31850
|
+
components["headers"]["X-RateLimit-Burst-Reset"];
|
|
31603
31851
|
[name: string]: unknown;
|
|
31604
31852
|
};
|
|
31605
31853
|
content: {
|
|
@@ -32838,4 +33086,4 @@ type PickPaths<T, P extends string> = {
|
|
|
32838
33086
|
};
|
|
32839
33087
|
type ChatAgentClient = PickPaths<ParchmentClient, ChatAgentCapability>;
|
|
32840
33088
|
|
|
32841
|
-
export { type AccountDeletionOperation, type AccountDeletionRequest, type BillingCheckoutCreateRequest, type BillingCheckoutSession, type BillingManualEntitlementsRequest, type BillingSubscriptionMutationRequest, type BillingSubscriptionOperation, type BriefMatchesQuery, CHAT_AGENT_CAPABILITIES, CHAT_AGENT_CAPABILITY_EXCLUSIONS, CHAT_AGENT_CONFIRMED_ACTION_TYPES, type CatalogCompareQuery, type CatalogGradesQuery, type CatalogInventoryBatchLifecycle, type CatalogInventoryBatchReserveRequest, type CatalogInventoryBatchResult, type CatalogItem, type CatalogListQuery, type CatalogMapHeaders, type CatalogMapQuery, type CatalogMapResponse, type CatalogPriceHistoryQuery, type CatalogProofSummary, type CatalogSimilarQuery, type ChatAgentCapability, type ChatAgentCapabilityExclusion, type ChatAgentCapabilityExclusionReason, type ChatAgentClient, type ChatAgentConfirmedActionType, type ConfirmedActionExecuteRequest, type ConversationCanvasUpdateRequest, type ConversationChatStreamRequest, type ConversationMemoryDreamRequest, type ConversationMemoryUpdateRequest, type ConversationMessageAppendRequest, type ConversationSummaryUpdateRequest, type ConversationWorkspaceClearRequest, type ConversationWorkspaceCreateRequest, type ConversationWorkspaceMetadataRequest, type InventoryCreateRequest, type InventoryShareCatalog, type InventoryShareGrant, type InventoryShareGrantCreateRequest, type InventoryShareGrantRedeemRequest, type InventoryShareInventory, type InventoryShareRoastSummary, type InventoryUpdateRequest, type MarketOverview, type MarketSignalsQuery, type MetadataIndexQuery, type OwnerApiUsage, type OwnerApiUsageQuery, type ParchmentClient, type ParchmentClientMethod, type ParchmentClientOptions, type PriceIndexQuery, type PriceIndexStatsQuery, type ProfitItem, type ProfitListQuery, type RoastBatchCreateRequest, type RoastChartData, type RoastChartDataQuery, type RoastChartEvent, type RoastChartSeries, type RoastLiveCurveRequest, type SalesCreateRequest, type SalesListQuery, type SalesUpdateRequest, type SourcingBriefCreateRequest, type TrackedLotMutation, type TrackedLotSummary, type TrackedLotsListQuery, type components, createParchmentClient, type paths };
|
|
33089
|
+
export { type AccountDeletionOperation, type AccountDeletionRequest, type BillingCheckoutCreateRequest, type BillingCheckoutSession, type BillingManualEntitlementsRequest, type BillingSubscriptionMutationRequest, type BillingSubscriptionOperation, type BriefMatchesQuery, CHAT_AGENT_CAPABILITIES, CHAT_AGENT_CAPABILITY_EXCLUSIONS, CHAT_AGENT_CONFIRMED_ACTION_TYPES, type CatalogCompareQuery, type CatalogGradesQuery, type CatalogInventoryBatchLifecycle, type CatalogInventoryBatchReserveRequest, type CatalogInventoryBatchResult, type CatalogItem, type CatalogListQuery, type CatalogMapHeaders, type CatalogMapQuery, type CatalogMapResponse, type CatalogPriceHistoryQuery, type CatalogProofSummary, type CatalogSimilarQuery, type CatalogTaxonomiesQuery, type ChatAgentCapability, type ChatAgentCapabilityExclusion, type ChatAgentCapabilityExclusionReason, type ChatAgentClient, type ChatAgentConfirmedActionType, type ConfirmedActionExecuteRequest, type ConversationCanvasUpdateRequest, type ConversationChatStreamRequest, type ConversationMemoryDreamRequest, type ConversationMemoryUpdateRequest, type ConversationMessageAppendRequest, type ConversationSummaryUpdateRequest, type ConversationWorkspaceClearRequest, type ConversationWorkspaceCreateRequest, type ConversationWorkspaceMetadataRequest, type InventoryCreateRequest, type InventoryShareCatalog, type InventoryShareGrant, type InventoryShareGrantCreateRequest, type InventoryShareGrantRedeemRequest, type InventoryShareInventory, type InventoryShareRoastSummary, type InventoryUpdateRequest, type MarketOverview, type MarketSignalsQuery, type MetadataIndexQuery, type OwnerApiUsage, type OwnerApiUsageQuery, type ParchmentClient, type ParchmentClientMethod, type ParchmentClientOptions, type PriceIndexQuery, type PriceIndexStatsQuery, type ProfitItem, type ProfitListQuery, type RoastBatchCreateRequest, type RoastChartData, type RoastChartDataQuery, type RoastChartEvent, type RoastChartSeries, type RoastLiveCurveRequest, type SalesCreateRequest, type SalesListQuery, type SalesUpdateRequest, type SourcingBriefCreateRequest, type TrackedLotMutation, type TrackedLotSummary, type TrackedLotsListQuery, type components, createParchmentClient, type paths };
|
package/dist/index.js
CHANGED
|
@@ -166,7 +166,9 @@ function createParchmentClient(options) {
|
|
|
166
166
|
params: { path: { id }, query }
|
|
167
167
|
}),
|
|
168
168
|
/** Green grade designation vocabulary, e.g. KE:AA, GT:SHB, PREP:EP. */
|
|
169
|
-
grades: (query) => client.GET("/v1/catalog/grades", { params: { query } })
|
|
169
|
+
grades: (query) => client.GET("/v1/catalog/grades", { params: { query } }),
|
|
170
|
+
/** Variety, species, and drying-method vocabularies with aliases and family links. */
|
|
171
|
+
taxonomies: (query) => client.GET("/v1/catalog/taxonomies", { params: { query } })
|
|
170
172
|
},
|
|
171
173
|
priceIndex: {
|
|
172
174
|
/** Available exact 30-day comparisons, with no empty-origin search. */
|
|
@@ -760,6 +762,10 @@ var CHAT_AGENT_CAPABILITY_EXCLUSIONS = {
|
|
|
760
762
|
reason: "read_not_wired",
|
|
761
763
|
note: "Catalog visibility metadata; the agent reads `me` instead."
|
|
762
764
|
},
|
|
765
|
+
"catalog.taxonomies": {
|
|
766
|
+
reason: "read_not_wired",
|
|
767
|
+
note: "ADR-018 vocabulary; the Cherry lookup tool ships with the code filters."
|
|
768
|
+
},
|
|
763
769
|
"catalog.map": {
|
|
764
770
|
reason: "read_not_wired",
|
|
765
771
|
note: "Map clusters and geometry for the web map view."
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/client.ts","../src/chatAgentCapabilities.ts"],"sourcesContent":["import createClient, { type ClientOptions } from \"openapi-fetch\";\nimport type { components, paths } from \"./schema\";\n\nexport interface ParchmentClientOptions {\n /** Base URL of the Parchment API, e.g. https://api.purveyors.io */\n baseUrl: string;\n /**\n * Optional bearer token (a Supabase JWT, API key, or dedicated machine\n * credential). Sent as\n * `Authorization: Bearer <token>`. Auth is resolved server-side at the route\n * boundary; the SDK only forwards the credential.\n */\n token?: string;\n /** Override the fetch implementation (useful for tests or custom runtimes). */\n fetch?: ClientOptions[\"fetch\"];\n}\n\n/** Query parameters for {@link ParchmentClient.catalog.list}. */\nexport type CatalogListQuery = NonNullable<\n paths[\"/v1/catalog\"][\"get\"][\"parameters\"][\"query\"]\n>;\n/** A catalog row returned by the canonical listing resource. */\nexport type CatalogItem = components[\"schemas\"][\"CatalogItem\"];\n/** API-owned row-level trust summary returned when `include=proof`. */\nexport type CatalogProofSummary = components[\"schemas\"][\"CatalogProofSummary\"];\n/** Query parameters for {@link ParchmentClient.catalog.facets}. */\nexport type CatalogFacetsQuery = NonNullable<\n paths[\"/v1/catalog/facets\"][\"get\"][\"parameters\"][\"query\"]\n>;\n/**\n * Optional headers for {@link ParchmentClient.catalog.list}, notably the\n * RFC 7240 `Prefer: handling=lenient|strict` override (PADR-0013 §7). Sending\n * `handling=lenient` opts a strict caller (API key or bearer-session JWT) back\n * into strip-with-notice degradation instead of a 401/403 hard-deny.\n */\nexport type CatalogListHeaders = NonNullable<\n paths[\"/v1/catalog\"][\"get\"][\"parameters\"][\"header\"]\n>;\n/** Query parameters for {@link ParchmentClient.catalog.map}. */\nexport type CatalogMapQuery = NonNullable<\n paths[\"/v1/catalog/map\"][\"get\"][\"parameters\"][\"query\"]\n>;\n/** Optional handling headers for {@link ParchmentClient.catalog.map}. */\nexport type CatalogMapHeaders = NonNullable<\n paths[\"/v1/catalog/map\"][\"get\"][\"parameters\"][\"header\"]\n>;\n/** Lightweight map projection over the caller-visible catalog. */\nexport type CatalogMapResponse = components[\"schemas\"][\"CatalogMapResponse\"];\n/** Optional headers for {@link ParchmentClient.catalog.facets}; see {@link CatalogListHeaders}. */\nexport type CatalogFacetsHeaders = NonNullable<\n paths[\"/v1/catalog/facets\"][\"get\"][\"parameters\"][\"header\"]\n>;\n/** Query parameters for {@link ParchmentClient.catalog.originPriceStats}. */\nexport type CatalogOriginPriceStatsQuery = NonNullable<\n paths[\"/v1/catalog/origin-price-stats\"][\"get\"][\"parameters\"][\"query\"]\n>;\n/** Query parameters for {@link ParchmentClient.catalog.stats}. */\nexport type CatalogStatsQuery = NonNullable<\n paths[\"/v1/catalog/stats\"][\"get\"][\"parameters\"][\"query\"]\n>;\n/** Query parameters for {@link ParchmentClient.catalog.rank}. */\nexport type CatalogRankQuery = NonNullable<\n paths[\"/v1/catalog/rank\"][\"get\"][\"parameters\"][\"query\"]\n>;\n/** Query parameters for {@link ParchmentClient.catalog.rankPremium}. */\nexport type CatalogRankPremiumQuery = NonNullable<\n paths[\"/v1/catalog/rank-premium\"][\"get\"][\"parameters\"][\"query\"]\n>;\n/** Query parameters for {@link ParchmentClient.catalog.suppliers}. */\nexport type CatalogSuppliersQuery = NonNullable<\n paths[\"/v1/catalog/suppliers\"][\"get\"][\"parameters\"][\"query\"]\n>;\n/** Query parameters for {@link ParchmentClient.catalog.supplierDetail}. */\nexport type CatalogSupplierDetailQuery = NonNullable<\n paths[\"/v1/catalog/suppliers/detail\"][\"get\"][\"parameters\"][\"query\"]\n>;\n/** Query parameters for {@link ParchmentClient.catalog.supplierRank}. */\nexport type CatalogSupplierRankQuery = NonNullable<\n paths[\"/v1/catalog/suppliers/rank\"][\"get\"][\"parameters\"][\"query\"]\n>;\n/** Optional headers for ranking endpoints; see {@link CatalogListHeaders}. */\nexport type CatalogRankHeaders = NonNullable<\n paths[\"/v1/catalog/rank\"][\"get\"][\"parameters\"][\"header\"]\n>;\n/** Optional headers for premium ranking endpoints; see {@link CatalogListHeaders}. */\nexport type CatalogRankPremiumHeaders = NonNullable<\n paths[\"/v1/catalog/rank-premium\"][\"get\"][\"parameters\"][\"header\"]\n>;\n/** Optional headers for supplier aggregate endpoints; see {@link CatalogListHeaders}. */\nexport type CatalogSupplierHeaders = NonNullable<\n paths[\"/v1/catalog/suppliers\"][\"get\"][\"parameters\"][\"header\"]\n>;\n/** Query parameters for {@link ParchmentClient.catalog.similar}. */\nexport type CatalogSimilarQuery = NonNullable<\n paths[\"/v1/catalog/{id}/similar\"][\"get\"][\"parameters\"][\"query\"]\n>;\n/** Query parameters for {@link ParchmentClient.catalog.compare}. */\nexport type CatalogCompareQuery = NonNullable<\n paths[\"/v1/catalog/compare\"][\"get\"][\"parameters\"][\"query\"]\n>;\n/** Query parameters for {@link ParchmentClient.catalog.grades}. */\nexport type CatalogGradesQuery = NonNullable<\n paths[\"/v1/catalog/grades\"][\"get\"][\"parameters\"][\"query\"]\n>;\n/** Query parameters for {@link ParchmentClient.catalog.priceHistory}. */\nexport type CatalogPriceHistoryQuery = NonNullable<\n paths[\"/v1/catalog/{id}/price-history\"][\"get\"][\"parameters\"][\"query\"]\n>;\n/** Query parameters for {@link ParchmentClient.priceIndex.list}. */\nexport type PriceIndexQuery = NonNullable<\n paths[\"/v1/price-index\"][\"get\"][\"parameters\"][\"query\"]\n>;\n/** Query parameters for {@link ParchmentClient.priceIndex.history}. */\nexport type PriceIndexHistoryQuery = NonNullable<\n paths[\"/v1/price-index/history\"][\"get\"][\"parameters\"][\"query\"]\n>;\n/** Query parameters for {@link ParchmentClient.market.signals}. */\nexport type MarketSignalsQuery = NonNullable<\n paths[\"/v1/market/signals\"][\"get\"][\"parameters\"][\"query\"]\n>;\n/** Aggregate-only public green-coffee market evidence. */\nexport type MarketOverview = components[\"schemas\"][\"MarketOverviewResponse\"];\n/** Named public-catalog and supplier evidence for Parchment Intelligence callers. */\nexport type MarketEvidence = components[\"schemas\"][\"MarketEvidenceResponse\"];\n/** Query parameters for {@link ParchmentClient.priceIndex.stats}. */\nexport type PriceIndexStatsQuery = NonNullable<\n paths[\"/v1/price-index/stats\"][\"get\"][\"parameters\"][\"query\"]\n>;\n/** Query parameters for {@link ParchmentClient.market.metadataIndex}. */\nexport type MetadataIndexQuery = NonNullable<\n paths[\"/v1/market/metadata-index\"][\"get\"][\"parameters\"][\"query\"]\n>;\n/** Query parameters for {@link ParchmentClient.procurement.briefs.matches}. */\nexport type BriefMatchesQuery = NonNullable<\n paths[\"/v1/procurement/briefs/{id}/matches\"][\"get\"][\"parameters\"][\"query\"]\n>;\n/** Request body for {@link ParchmentClient.procurement.briefs.create}. */\nexport type SourcingBriefCreateRequest =\n components[\"schemas\"][\"SourcingBriefCreateRequest\"];\n/** Query parameters for {@link ParchmentClient.portfolio.trackedLots.list}. */\nexport type TrackedLotsListQuery = NonNullable<\n paths[\"/v1/portfolio/tracked-lots\"][\"get\"][\"parameters\"][\"query\"]\n>;\n/** A tracked catalog lot enriched with current catalog and price state. */\nexport type TrackedLotSummary = components[\"schemas\"][\"TrackedLotSummary\"];\n/** State returned by tracked-lot PUT and DELETE mutations. */\nexport type TrackedLotMutation =\n components[\"schemas\"][\"TrackedLotMutationResponse\"];\n/** Closed session-only command for {@link ParchmentClient.confirmedActions.execute}. */\nexport type ConfirmedActionExecuteRequest = NonNullable<\n paths[\"/v1/confirmed-actions/execute\"][\"post\"][\"requestBody\"]\n>[\"content\"][\"application/json\"];\n/** Create-or-get body for {@link ParchmentClient.conversation.workspaces.getOrCreate}. */\nexport type ConversationWorkspaceCreateRequest = NonNullable<\n paths[\"/v1/conversation/workspaces\"][\"post\"][\"requestBody\"]\n>[\"content\"][\"application/json\"];\nexport type ConversationWorkspaceMetadataRequest = NonNullable<\n paths[\"/v1/conversation/workspaces/{workspaceId}\"][\"patch\"][\"requestBody\"]\n>[\"content\"][\"application/json\"];\nexport type ConversationMessageAppendRequest = NonNullable<\n paths[\"/v1/conversation/workspaces/{workspaceId}/messages\"][\"post\"][\"requestBody\"]\n>[\"content\"][\"application/json\"];\nexport type ConversationWorkspaceClearRequest = NonNullable<\n paths[\"/v1/conversation/workspaces/{workspaceId}/messages/clear\"][\"post\"][\"requestBody\"]\n>[\"content\"][\"application/json\"];\nexport type ConversationCanvasUpdateRequest = NonNullable<\n paths[\"/v1/conversation/workspaces/{workspaceId}/canvas\"][\"put\"][\"requestBody\"]\n>[\"content\"][\"application/json\"];\nexport type ConversationSummaryUpdateRequest = NonNullable<\n paths[\"/v1/conversation/workspaces/{workspaceId}/summary\"][\"put\"][\"requestBody\"]\n>[\"content\"][\"application/json\"];\nexport type ConversationMemoryUpdateRequest = NonNullable<\n paths[\"/v1/conversation/memory\"][\"put\"][\"requestBody\"]\n>[\"content\"][\"application/json\"];\nexport type ConversationMemoryDreamRequest = NonNullable<\n paths[\"/v1/conversation/memory/dream\"][\"post\"][\"requestBody\"]\n>[\"content\"][\"application/json\"];\n/** Query parameters for {@link ParchmentClient.inventory.list}. */\nexport type InventoryListQuery = NonNullable<\n paths[\"/v1/inventory\"][\"get\"][\"parameters\"][\"query\"]\n>;\n/** Request body for {@link ParchmentClient.inventory.create}. */\nexport type InventoryCreateRequest = NonNullable<\n paths[\"/v1/inventory\"][\"post\"][\"requestBody\"]\n>[\"content\"][\"application/json\"];\n/** Stable-operation request for {@link ParchmentClient.inventory.shareGrants.create}. */\nexport type InventoryShareGrantCreateRequest = NonNullable<\n paths[\"/v1/inventory/share-grants\"][\"post\"][\"requestBody\"]\n>[\"content\"][\"application/json\"];\n/** The one-time raw-token grant returned by create or same-operation replay. */\nexport type InventoryShareGrant = components[\"schemas\"][\"InventoryShareGrant\"];\n/** Anonymous capability body for {@link ParchmentClient.inventory.shareGrants.redeem}. */\nexport type InventoryShareGrantRedeemRequest = NonNullable<\n paths[\"/v1/inventory/share-grants/redeem\"][\"post\"][\"requestBody\"]\n>[\"content\"][\"application/json\"];\n/** Safe legacy-oriented inventory row returned by capability redemption. */\nexport type InventoryShareInventory =\n components[\"schemas\"][\"InventoryShareInventory\"];\n/** Catalog allowlist nested in a shared inventory row. */\nexport type InventoryShareCatalog =\n components[\"schemas\"][\"InventoryShareCatalog\"];\n/** Six-field roast summary nested in member/admin shares. */\nexport type InventoryShareRoastSummary =\n components[\"schemas\"][\"InventoryShareRoastSummary\"];\ntype CatalogInventoryCreateRequest =\n components[\"schemas\"][\"CatalogInventoryCreateRequest\"];\ntype ManualInventoryCreateRequest =\n components[\"schemas\"][\"ManualInventoryCreateRequest\"];\n/** Request body for {@link ParchmentClient.inventory.createManualBatch}. */\nexport type ManualInventoryBatchCreateRequest = NonNullable<\n paths[\"/v1/inventory/manual-batches\"][\"post\"][\"requestBody\"]\n>[\"content\"][\"application/json\"];\n/** Request body for reserving durable server-owned manual-batch intent. */\nexport type ManualInventoryBatchReserveRequest = NonNullable<\n paths[\"/v1/inventory/manual-batches/reservations\"][\"post\"][\"requestBody\"]\n>[\"content\"][\"application/json\"];\n/** Complete canonical intent accepted by the catalog-batch reservation lane. */\nexport type CatalogInventoryBatchReserveRequest = NonNullable<\n paths[\"/v1/inventory/catalog-batches/reservations\"][\"post\"][\"requestBody\"]\n>[\"content\"][\"application/json\"];\n/** Durable catalog-batch state returned by reserve, commit, and status. */\nexport type CatalogInventoryBatchLifecycle =\n components[\"schemas\"][\"CatalogInventoryBatchLifecycle\"];\n/** Identity-only terminal result; catalog resources remain a separate read. */\nexport type CatalogInventoryBatchResult =\n components[\"schemas\"][\"CatalogInventoryBatchResult\"];\n/** Request body for {@link ParchmentClient.inventory.update}. */\nexport type InventoryUpdateRequest = NonNullable<\n paths[\"/v1/inventory/{id}\"][\"patch\"][\"requestBody\"]\n>[\"content\"][\"application/json\"];\n/** Query parameters for {@link ParchmentClient.roasts.list}. */\nexport type RoastListQuery = NonNullable<\n paths[\"/v1/roasts\"][\"get\"][\"parameters\"][\"query\"]\n>;\n/** Query parameters for {@link ParchmentClient.roasts.get}. */\nexport type RoastGetQuery = NonNullable<\n paths[\"/v1/roasts/{id}\"][\"get\"][\"parameters\"][\"query\"]\n>;\n/** Query parameters for {@link ParchmentClient.roasts.chartData}. */\nexport type RoastChartDataQuery = NonNullable<\n paths[\"/v1/roasts/{id}/chart-data\"][\"get\"][\"parameters\"][\"query\"]\n>;\n/** Typed chart payload returned by {@link ParchmentClient.roasts.chartData}. */\nexport type RoastChartData =\n components[\"schemas\"][\"RoastChartDataResponse\"][\"data\"];\n/** One sampled primary or auxiliary series in a roast chart payload. */\nexport type RoastChartSeries = components[\"schemas\"][\"RoastChartSeries\"];\n/** One discrete milestone or control event in a roast chart payload. */\nexport type RoastChartEvent = components[\"schemas\"][\"RoastChartEvent\"];\nexport type ReferenceProfile =\n components[\"schemas\"][\"ReferenceProfileResponse\"][\"data\"];\nexport type ReferenceProfileSummary =\n components[\"schemas\"][\"ReferenceProfileSummary\"];\nexport type ReferenceProfileChart =\n components[\"schemas\"][\"ReferenceProfileChart\"];\nexport type ReferenceProfileImportRequest = NonNullable<\n paths[\"/v1/reference-profiles/imports\"][\"post\"][\"requestBody\"]\n>[\"content\"][\"application/json\"];\nexport type ReferenceProfileFromRoastRequest = NonNullable<\n paths[\"/v1/reference-profiles/from-roast\"][\"post\"][\"requestBody\"]\n>[\"content\"][\"application/json\"];\n/** Request body for {@link ParchmentClient.referenceProfiles.previewFromRoast}. */\nexport type ReferenceProfileRoastGenerationRequest = NonNullable<\n paths[\"/v1/reference-profiles/from-roast/preview\"][\"post\"][\"requestBody\"]\n>[\"content\"][\"application/json\"];\n/** Query parameters for {@link ParchmentClient.referenceProfiles.roastCandidates}. */\nexport type ReferenceProfileRoastCandidatesQuery = NonNullable<\n paths[\"/v1/reference-profiles/from-roast/candidates\"][\"get\"][\"parameters\"][\"query\"]\n>;\n/** One executed roast that can be the base for a planned profile. */\nexport type ReferenceProfileRoastCandidate =\n components[\"schemas\"][\"ReferenceProfileRoastCandidatesResponse\"][\"data\"][\"roasts\"][number];\nexport type ReferenceProfileUpdateRequest = NonNullable<\n paths[\"/v1/reference-profiles/{id}\"][\"patch\"][\"requestBody\"]\n>[\"content\"][\"application/json\"];\nexport type ReferenceProfileGenerationRequest = NonNullable<\n paths[\"/v1/reference-profiles/{id}/revisions/{revisionId}/preview\"][\"post\"][\"requestBody\"]\n>[\"content\"][\"application/json\"];\nexport type ProfileComparisonRequest = NonNullable<\n paths[\"/v1/profile-comparisons\"][\"post\"][\"requestBody\"]\n>[\"content\"][\"application/json\"];\n/** Request body for {@link ParchmentClient.roasts.classify}. */\nexport type RoastClassificationRequest = NonNullable<\n paths[\"/v1/roasts/classify\"][\"post\"][\"requestBody\"]\n>[\"content\"][\"application/json\"];\n/** Request body for {@link ParchmentClient.roasts.create}. */\nexport type RoastCreateRequest = NonNullable<\n paths[\"/v1/roasts\"][\"post\"][\"requestBody\"]\n>[\"content\"][\"application/json\"];\n/** Atomic named-batch body for {@link ParchmentClient.roasts.createBatch}. */\nexport type RoastBatchCreateRequest = NonNullable<\n paths[\"/v1/roasts/batches\"][\"post\"][\"requestBody\"]\n>[\"content\"][\"application/json\"];\n/** Request body for {@link ParchmentClient.roasts.update}. */\nexport type RoastUpdateRequest = NonNullable<\n paths[\"/v1/roasts/{id}\"][\"patch\"][\"requestBody\"]\n>[\"content\"][\"application/json\"];\n/** Source-aware live curve body for {@link ParchmentClient.roasts.replaceLiveCurve}. */\nexport type RoastLiveCurveRequest = NonNullable<\n paths[\"/v1/roasts/{id}/live-curve\"][\"put\"][\"requestBody\"]\n>[\"content\"][\"application/json\"];\n/** Request body for {@link ParchmentClient.roasts.import}. */\nexport type RoastImportRequest = NonNullable<\n paths[\"/v1/roasts/imports\"][\"post\"][\"requestBody\"]\n>[\"content\"][\"application/json\"];\n/** Request body for {@link ParchmentClient.roasts.importFromReference}. */\nexport type RoastImportFromReferenceRequest = NonNullable<\n paths[\"/v1/roasts/imports/from-reference\"][\"post\"][\"requestBody\"]\n>[\"content\"][\"application/json\"];\n/** Request body for {@link ParchmentClient.roasts.replaceArtisanImport}. */\nexport type RoastArtisanImportReplaceRequest = NonNullable<\n paths[\"/v1/roasts/{id}/artisan-import\"][\"put\"][\"requestBody\"]\n>[\"content\"][\"application/json\"];\n/** Query parameters for {@link ParchmentClient.sales.list}. */\nexport type SalesListQuery = NonNullable<\n paths[\"/v1/sales\"][\"get\"][\"parameters\"][\"query\"]\n>;\n/** Query parameters for {@link ParchmentClient.profit.list}. */\nexport type ProfitListQuery = NonNullable<\n paths[\"/v1/profit\"][\"get\"][\"parameters\"][\"query\"]\n>;\n/** One owner inventory lot's canonical cost, revenue, and roast summary. */\nexport type ProfitItem = components[\"schemas\"][\"ProfitItem\"];\n/** Request body for {@link ParchmentClient.sales.create}. */\nexport type SalesCreateRequest = NonNullable<\n paths[\"/v1/sales\"][\"post\"][\"requestBody\"]\n>[\"content\"][\"application/json\"];\n/** Request body for {@link ParchmentClient.sales.update}. */\nexport type SalesUpdateRequest = NonNullable<\n paths[\"/v1/sales/{id}\"][\"patch\"][\"requestBody\"]\n>[\"content\"][\"application/json\"];\n/** Query parameters for {@link ParchmentClient.tasting.get}. */\nexport type TastingGetQuery = NonNullable<\n paths[\"/v1/tasting/{catalogId}\"][\"get\"][\"parameters\"][\"query\"]\n>;\n/** Request body for {@link ParchmentClient.tasting.rate}. */\nexport type TastingRateRequest = NonNullable<\n paths[\"/v1/tasting/inventory/{inventoryId}\"][\"put\"][\"requestBody\"]\n>[\"content\"][\"application/json\"];\n/** Request body for {@link ParchmentClient.apiKeys.create}. */\nexport type ApiKeyCreateRequest = NonNullable<\n paths[\"/v1/api-keys\"][\"post\"][\"requestBody\"]\n>[\"content\"][\"application/json\"];\n/** Query parameters for the session owner's API-key traffic analytics. */\nexport type OwnerApiUsageQuery = NonNullable<\n paths[\"/v1/api-usage\"][\"get\"][\"parameters\"][\"query\"]\n>;\n/** Bounded owner API-key traffic analytics (not session or billing usage). */\nexport type OwnerApiUsage = components[\"schemas\"][\"OwnerApiUsageResponse\"];\n/** Request body for {@link ParchmentClient.emailSubscriptions.setMarketRead}. */\nexport type MarketReadPreferenceRequest = NonNullable<\n paths[\"/v1/email-subscriptions/market-read\"][\"put\"][\"requestBody\"]\n>[\"content\"][\"application/json\"];\n/** Request body for {@link ParchmentClient.emailSubscriptions.unsubscribeMarketRead}. */\nexport type MarketReadUnsubscribeRequest = NonNullable<\n paths[\"/v1/email-subscriptions/market-read/unsubscribe\"][\"post\"][\"requestBody\"]\n>[\"content\"][\"application/json\"];\n/** Immutable deployed projection accepted by {@link ParchmentClient.marketBrief.drafts.create}. */\nexport type MarketBriefDraftCreateRequest = NonNullable<\n paths[\"/v1/market-brief/drafts\"][\"post\"][\"requestBody\"]\n>[\"content\"][\"application/json\"];\n/** Durable Parchment-owned provider-draft state. */\nexport type MarketBriefDraftState =\n components[\"schemas\"][\"MarketBriefDraftState\"];\n/** Account-owned Market Read email preference. */\nexport type EmailSubscriptionPreference =\n components[\"schemas\"][\"EmailSubscriptionPreference\"];\n/** Durable state returned by an account-deletion request. */\nexport type AccountDeletionOperation =\n components[\"schemas\"][\"AccountDeletionOperation\"];\n/** Purpose-bound recent-reauthentication assertion for account deletion. */\nexport type AccountDeletionRequest = NonNullable<\n paths[\"/v1/account-deletion\"][\"post\"][\"requestBody\"]\n>[\"content\"][\"application/json\"];\n/** Purchase-key request for dormant direct Parchment Checkout creation/replay. */\nexport type BillingCheckoutCreateRequest = NonNullable<\n paths[\"/v1/billing/checkout-sessions\"][\"post\"][\"requestBody\"]\n>[\"content\"][\"application/json\"];\n/** Durable Checkout admission state; provider Session id stays server-side. */\nexport type BillingCheckoutSession =\n components[\"schemas\"][\"BillingCheckoutSession\"];\n/** Durable cancellation/resume request. */\nexport type BillingSubscriptionMutationRequest = NonNullable<\n paths[\"/v1/billing/subscriptions/{subscriptionId}\"][\"patch\"][\"requestBody\"]\n>[\"content\"][\"application/json\"];\n/** Durable provider subscription-operation state. */\nexport type BillingSubscriptionOperation =\n components[\"schemas\"][\"BillingSubscriptionOperation\"];\n/** Manual entitlement baseline update for administrators. */\nexport type BillingManualEntitlementsRequest = NonNullable<\n paths[\"/v1/admin/billing-entitlements/{ownerId}/manual\"][\"patch\"][\"requestBody\"]\n>[\"content\"][\"application/json\"];\nexport type CliAuthRequestCreate = NonNullable<\n paths[\"/v1/cli-auth/requests\"][\"post\"][\"requestBody\"]\n>[\"content\"][\"application/json\"];\nexport type CliAuthInspectRequest = NonNullable<\n paths[\"/v1/cli-auth/inspect\"][\"post\"][\"requestBody\"]\n>[\"content\"][\"application/json\"];\nexport type CliAuthApproveRequest = NonNullable<\n paths[\"/v1/cli-auth/approve\"][\"post\"][\"requestBody\"]\n>[\"content\"][\"application/json\"];\nexport type CliAuthExchangeRequest = NonNullable<\n paths[\"/v1/cli-auth/token\"][\"post\"][\"requestBody\"]\n>[\"content\"][\"application/json\"];\n/** Browser-compatible AI SDK UI-message stream request. */\nexport type ConversationChatStreamRequest =\n components[\"schemas\"][\"ConversationChatStreamRequest\"];\n\n/**\n * Create a typed Parchment API client.\n *\n * The generated core (openapi-fetch over the generated `paths` types) is the\n * contract truth; the named helpers below are the hand-maintained ergonomic\n * layer and grow as endpoints land. `raw` always exposes the underlying typed\n * client for direct path access to anything not yet wrapped.\n */\nexport function createParchmentClient(options: ParchmentClientOptions) {\n const { baseUrl, token, fetch: fetchImpl } = options;\n\n const client = createClient<paths>({\n baseUrl,\n fetch: fetchImpl,\n headers: token ? { Authorization: `Bearer ${token}` } : undefined,\n });\n\n const postInventory = (\n body: InventoryCreateRequest,\n options?: { idempotencyKey?: string },\n ) =>\n client.POST(\"/v1/inventory\", {\n body,\n params: options?.idempotencyKey\n ? { header: { \"idempotency-key\": options.idempotencyKey } }\n : undefined,\n });\n\n function createInventory(\n body: ManualInventoryCreateRequest,\n options: { idempotencyKey: string },\n ): ReturnType<typeof postInventory>;\n function createInventory(\n body: CatalogInventoryCreateRequest,\n options?: { idempotencyKey?: string },\n ): ReturnType<typeof postInventory>;\n function createInventory(\n body: InventoryCreateRequest,\n options?: { idempotencyKey?: string },\n ): ReturnType<typeof postInventory> {\n return postInventory(body, options);\n }\n\n return {\n /** The underlying typed openapi-fetch client for direct path access. */\n raw: client,\n /** Liveness and service identity. */\n health: () => client.GET(\"/health\"),\n /** Resolved principal and entitlements for the caller. */\n me: () => client.GET(\"/v1/me\"),\n apiKeys: {\n /** List API keys owned by the authenticated session user. */\n list: () => client.GET(\"/v1/api-keys\"),\n /** Create an API key. The raw secret is returned only once. */\n create: (body: ApiKeyCreateRequest) =>\n client.POST(\"/v1/api-keys\", { body }),\n /** Revoke an API key owned by the authenticated session user. */\n revoke: (id: string) =>\n client.DELETE(\"/v1/api-keys/{id}\", {\n params: { path: { id } },\n }),\n /** Rotate an API key and return the replacement secret once. */\n rotate: (id: string) =>\n client.POST(\"/v1/api-keys/{id}/rotate\", {\n params: { path: { id } },\n }),\n },\n apiUsage: {\n /**\n * Read bounded API-key traffic analytics for the authenticated session\n * owner. Headline monthly/hourly counts are exact; daily/per-key series\n * carry explicit truncation metadata.\n */\n get: (query?: OwnerApiUsageQuery) =>\n client.GET(\"/v1/api-usage\", { params: { query } }),\n },\n emailSubscriptions: {\n /** Get the authenticated session user's Market Read preference. */\n get: () => client.GET(\"/v1/email-subscriptions\"),\n /** Idempotently set the authenticated session user's Market Read preference. */\n setMarketRead: (body: MarketReadPreferenceRequest) =>\n client.PUT(\"/v1/email-subscriptions/market-read\", { body }),\n /** Idempotently unsubscribe using an opaque capability without requiring a session. */\n unsubscribeMarketRead: (body: MarketReadUnsubscribeRequest) =>\n client.POST(\"/v1/email-subscriptions/market-read/unsubscribe\", {\n body,\n }),\n },\n marketBrief: {\n drafts: {\n /** Accept, create, or recover one immutable deployed edition version. */\n create: (body: MarketBriefDraftCreateRequest) =>\n client.POST(\"/v1/market-brief/drafts\", { body }),\n },\n },\n accountDeletion: {\n /** Accept or replay deletion using a purpose-bound reauthentication assertion. */\n request: (body: AccountDeletionRequest) =>\n client.POST(\"/v1/account-deletion\", { body }),\n },\n billing: {\n checkout: {\n /** Create or replay an embedded Checkout Session after activation. */\n create: (body: BillingCheckoutCreateRequest) =>\n client.POST(\"/v1/billing/checkout-sessions\", { body }),\n /** Read owner-bound durable admission state. */\n get: (admissionId: string) =>\n client.GET(\"/v1/billing/checkout-sessions/{admissionId}\", {\n params: { path: { admissionId } },\n }),\n /** Authoritatively reconcile an admission with Stripe. */\n reconcile: (admissionId: string) =>\n client.POST(\"/v1/billing/checkout-sessions/{admissionId}/reconcile\", {\n params: { path: { admissionId } },\n }),\n },\n subscriptions: {\n /** List canonical owner subscription snapshots. */\n list: () => client.GET(\"/v1/billing/subscriptions\"),\n /** Durably cancel or resume the complete provider subscription. */\n mutate: (\n subscriptionId: string,\n body: BillingSubscriptionMutationRequest,\n ) =>\n client.PATCH(\"/v1/billing/subscriptions/{subscriptionId}\", {\n params: { path: { subscriptionId } },\n body,\n }),\n },\n },\n billingAdministration: {\n /** Read bounded canonical-entitlement discrepancies. */\n discrepancies: () =>\n client.GET(\"/v1/admin/billing-entitlement-discrepancies\"),\n /** Recompute billing contribution without changing manual grants. */\n recompute: (ownerId: string) =>\n client.POST(\n \"/v1/admin/billing-entitlement-discrepancies/{ownerId}/recompute\",\n { params: { path: { ownerId } } },\n ),\n /** Update the preserved manual entitlement baseline. */\n setManual: (ownerId: string, body: BillingManualEntitlementsRequest) =>\n client.PATCH(\"/v1/admin/billing-entitlements/{ownerId}/manual\", {\n params: { path: { ownerId } },\n body,\n }),\n },\n cliAuth: {\n /** Create a signed, short-lived login request bound to a PKCE challenge. */\n create: (body: CliAuthRequestCreate) =>\n client.POST(\"/v1/cli-auth/requests\", { body }),\n /** Inspect a signed request before displaying the web consent screen. */\n inspect: (body: CliAuthInspectRequest) =>\n client.POST(\"/v1/cli-auth/inspect\", { body }),\n /** Approve a request using the client's authenticated user session. */\n approve: (body: CliAuthApproveRequest) =>\n client.POST(\"/v1/cli-auth/approve\", { body }),\n /** Exchange an approved request and verifier for the one-time raw key. */\n exchange: (body: CliAuthExchangeRequest) =>\n client.POST(\"/v1/cli-auth/token\", { body }),\n },\n catalog: {\n /** Catalog capabilities and visibility for the caller. */\n access: () => client.GET(\"/v1/catalog/access\"),\n /**\n * List public catalog coffees (paginated). Pass `headers` to send the\n * `Prefer: handling=lenient|strict` override (see {@link CatalogListHeaders}).\n */\n list: (query?: CatalogListQuery, headers?: CatalogListHeaders) =>\n client.GET(\"/v1/catalog\", { params: { query, header: headers } }),\n /** Deterministic clusters, canonical place features, and elevation profile. */\n map: (query?: CatalogMapQuery, headers?: CatalogMapHeaders) =>\n client.GET(\"/v1/catalog/map\", {\n params: { query, header: headers },\n }),\n /**\n * Catalog filter metadata and counted facets. Pass `headers` to send the\n * `Prefer: handling=lenient|strict` override (see {@link CatalogFacetsHeaders}).\n */\n facets: (query?: CatalogFacetsQuery, headers?: CatalogFacetsHeaders) =>\n client.GET(\"/v1/catalog/facets\", {\n params: { query, header: headers },\n }),\n /** Live catalog price context by origin. */\n originPriceStats: (query?: CatalogOriginPriceStatsQuery) =>\n client.GET(\"/v1/catalog/origin-price-stats\", { params: { query } }),\n /** Aggregate stats over the caller-visible catalog. */\n stats: (query?: CatalogStatsQuery) =>\n client.GET(\"/v1/catalog/stats\", { params: { query } }),\n /** Rank caller-visible catalog coffees by deterministic objectives. */\n rank: (query?: CatalogRankQuery, headers?: CatalogRankHeaders) =>\n client.GET(\"/v1/catalog/rank\", {\n params: { query, header: headers },\n }),\n /** Rank premium catalog candidates by Purveyor Score. */\n rankPremium: (\n query?: CatalogRankPremiumQuery,\n headers?: CatalogRankPremiumHeaders,\n ) =>\n client.GET(\"/v1/catalog/rank-premium\", {\n params: { query, header: headers },\n }),\n /** List supplier aggregates over caller-visible catalog coffees. */\n suppliers: (\n query?: CatalogSuppliersQuery,\n headers?: CatalogSupplierHeaders,\n ) =>\n client.GET(\"/v1/catalog/suppliers\", {\n params: { query, header: headers },\n }),\n /** Return aggregate detail for a supplier query. */\n supplierDetail: (\n query: CatalogSupplierDetailQuery,\n headers?: CatalogSupplierHeaders,\n ) =>\n client.GET(\"/v1/catalog/suppliers/detail\", {\n params: { query, header: headers },\n }),\n /** Rank suppliers by catalog score and availability. */\n supplierRank: (\n query?: CatalogSupplierRankQuery,\n headers?: CatalogSupplierHeaders,\n ) =>\n client.GET(\"/v1/catalog/suppliers/rank\", {\n params: { query, header: headers },\n }),\n /** Aggregate proof-coverage over the public catalog. */\n proofCoverage: () => client.GET(\"/v1/catalog/proof-coverage\"),\n /** Find catalog coffees similar to a target coffee. */\n similar: (id: string, query?: CatalogSimilarQuery) =>\n client.GET(\"/v1/catalog/{id}/similar\", {\n params: { path: { id }, query },\n }),\n /** Compare 2 to 6 catalog coffees side by side. */\n compare: (query: CatalogCompareQuery) =>\n client.GET(\"/v1/catalog/compare\", { params: { query } }),\n /** Daily price history for one catalog coffee, with minimum-tier change events. */\n priceHistory: (id: string, query?: CatalogPriceHistoryQuery) =>\n client.GET(\"/v1/catalog/{id}/price-history\", {\n params: { path: { id }, query },\n }),\n /** Green grade designation vocabulary, e.g. KE:AA, GT:SHB, PREP:EP. */\n grades: (query?: CatalogGradesQuery) =>\n client.GET(\"/v1/catalog/grades\", { params: { query } }),\n },\n priceIndex: {\n /** Available exact 30-day comparisons, with no empty-origin search. */\n comparisons: (query?: { wholesale?: \"true\" | \"false\" | \"all\" }) =>\n client.GET(\"/v1/price-index/comparisons\", { params: { query } }),\n /** Fresh matched-listing movement, not catalog composition or a canonical publication. */\n comparison: (query: {\n from: string;\n to: string;\n origin: string;\n wholesale?: \"true\" | \"false\";\n }) => client.GET(\"/v1/price-index/comparison\", { params: { query } }),\n /** Parchment Price Index (aggregate snapshots). */\n list: (query?: PriceIndexQuery) =>\n client.GET(\"/v1/price-index\", { params: { query } }),\n /** Tier-one price-index chart history. */\n history: (query?: PriceIndexHistoryQuery) =>\n client.GET(\"/v1/price-index/history\", { params: { query } }),\n /** Price movement significance stats (precomputed). */\n stats: (query?: PriceIndexStatsQuery) =>\n client.GET(\"/v1/price-index/stats\", { params: { query } }),\n },\n market: {\n /** Aggregate daily changes, catalog coverage, movement, processing, and origin prices. */\n overview: () => client.GET(\"/v1/market/overview\"),\n /** Entitled named-lot and supplier evidence over the public catalog. */\n evidence: () => client.GET(\"/v1/market/evidence\"),\n /** Actionable market value signals. */\n signals: (query?: MarketSignalsQuery) =>\n client.GET(\"/v1/market/signals\", { params: { query } }),\n /** Metadata-trend index (process/disclosure/Purveyor Score over time). */\n metadataIndex: (query?: MetadataIndexQuery) =>\n client.GET(\"/v1/market/metadata-index\", { params: { query } }),\n },\n procurement: {\n briefs: {\n /** List the caller's saved sourcing briefs. */\n list: () => client.GET(\"/v1/procurement/briefs\"),\n /** Create a saved sourcing brief. */\n create: (body: SourcingBriefCreateRequest) =>\n client.POST(\"/v1/procurement/briefs\", { body }),\n /** Fetch one of the caller's sourcing briefs by id. */\n get: (id: string) =>\n client.GET(\"/v1/procurement/briefs/{id}\", {\n params: { path: { id } },\n }),\n /** Run a saved brief against the catalog (paginated matches). */\n matches: (id: string, query?: BriefMatchesQuery) =>\n client.GET(\"/v1/procurement/briefs/{id}/matches\", {\n params: { path: { id }, query },\n }),\n },\n },\n portfolio: {\n trackedLots: {\n /**\n * List an owner-scoped tracked catalog-id page and bounded recent\n * summaries enriched with live catalog state. Follow nextCursor when\n * a capped response reports truncation.\n */\n list: (query?: TrackedLotsListQuery) =>\n client.GET(\"/v1/portfolio/tracked-lots\", {\n params: { query },\n }),\n /** Idempotently set a visible catalog lot to tracked. */\n track: (catalogId: number) =>\n client.PUT(\"/v1/portfolio/tracked-lots/{catalogId}\", {\n params: { path: { catalogId } },\n }),\n /** Idempotently set an owner catalog lot to untracked. */\n untrack: (catalogId: number) =>\n client.DELETE(\"/v1/portfolio/tracked-lots/{catalogId}\", {\n params: { path: { catalogId } },\n }),\n },\n },\n confirmedActions: {\n /**\n * Execute or replay one user-confirmed product action. Session-only;\n * executionId is the durable payload-bound replay key.\n */\n execute: (body: ConfirmedActionExecuteRequest) =>\n client.POST(\"/v1/confirmed-actions/execute\", { body }),\n },\n conversation: {\n chat: {\n /**\n * Open a raw AI SDK UI-message stream. The response body is deliberately\n * left unread so BFFs and browser transports can forward chunks without\n * buffering. Aborting the supplied signal cancels the upstream request.\n */\n stream: (\n body: ConversationChatStreamRequest,\n init: { signal?: AbortSignal } = {},\n ): Promise<Response> => {\n const requestFetch = fetchImpl ?? globalThis.fetch;\n return requestFetch(\n new Request(`${baseUrl.replace(/\\/$/, \"\")}/v1/conversation/chat`, {\n method: \"POST\",\n headers: {\n \"Content-Type\": \"application/json\",\n ...(token ? { Authorization: `Bearer ${token}` } : {}),\n },\n body: JSON.stringify(body),\n signal: init.signal,\n }),\n );\n },\n },\n workspaces: {\n /** Get or create the session owner's singleton workspace. */\n getOrCreate: (body: ConversationWorkspaceCreateRequest) =>\n client.POST(\"/v1/conversation/workspaces\", { body }),\n /** Read the bounded canonical workspace and message state. */\n get: (workspaceId: string, messageLimit = 50) =>\n client.GET(\"/v1/conversation/workspaces/{workspaceId}\", {\n params: { path: { workspaceId }, query: { messageLimit } },\n }),\n /** Update owner workspace title or type. */\n update: (\n workspaceId: string,\n body: ConversationWorkspaceMetadataRequest,\n ) =>\n client.PATCH(\"/v1/conversation/workspaces/{workspaceId}\", {\n params: { path: { workspaceId } },\n body,\n }),\n messages: {\n /** Read older messages before a canonical sequence cursor. */\n history: (\n workspaceId: string,\n expectedResetEpoch: number,\n beforeSequence: number,\n messageLimit = 100,\n ) =>\n client.GET(\n \"/v1/conversation/workspaces/{workspaceId}/messages/history\",\n {\n params: {\n path: { workspaceId },\n query: { expectedResetEpoch, beforeSequence, messageLimit },\n },\n },\n ),\n /** Append or replay payload-bound messages under a reset epoch. */\n append: (\n workspaceId: string,\n body: ConversationMessageAppendRequest,\n ) =>\n client.POST(\"/v1/conversation/workspaces/{workspaceId}/messages\", {\n params: { path: { workspaceId } },\n body,\n }),\n /** Clear messages and advance the workspace reset epoch. */\n clear: (\n workspaceId: string,\n body: ConversationWorkspaceClearRequest,\n ) =>\n client.POST(\n \"/v1/conversation/workspaces/{workspaceId}/messages/clear\",\n { params: { path: { workspaceId } }, body },\n ),\n },\n /** Optimistically replace canvas state. */\n updateCanvas: (\n workspaceId: string,\n body: ConversationCanvasUpdateRequest,\n ) =>\n client.PUT(\"/v1/conversation/workspaces/{workspaceId}/canvas\", {\n params: { path: { workspaceId } },\n body,\n }),\n /** Read bounded inputs for summary compaction. */\n getCompactionInputs: (workspaceId: string, messageLimit = 30) =>\n client.GET(\n \"/v1/conversation/workspaces/{workspaceId}/compaction-inputs\",\n {\n params: { path: { workspaceId }, query: { messageLimit } },\n },\n ),\n /** Commit a summary only if epoch, version, and high-water still match. */\n updateSummary: (\n workspaceId: string,\n body: ConversationSummaryUpdateRequest,\n ) =>\n client.PUT(\"/v1/conversation/workspaces/{workspaceId}/summary\", {\n params: { path: { workspaceId } },\n body,\n }),\n /** Generate and CAS-commit a Parchment-owned workspace summary. */\n compactSummary: (workspaceId: string) =>\n client.POST(\n \"/v1/conversation/workspaces/{workspaceId}/summary/compact\",\n { params: { path: { workspaceId } } },\n ),\n },\n memory: {\n /** Read the session owner's versioned durable memory. */\n get: () => client.GET(\"/v1/conversation/memory\"),\n /** Optimistically update session-owner memory. */\n update: (body: ConversationMemoryUpdateRequest) =>\n client.PUT(\"/v1/conversation/memory\", { body }),\n /** Reflect bounded recent messages into versioned session-owner memory. */\n dream: (body: ConversationMemoryDreamRequest) =>\n client.POST(\"/v1/conversation/memory/dream\", { body }),\n },\n },\n inventory: {\n /** List the caller's own green-coffee inventory (owner-scoped). */\n list: (query?: InventoryListQuery) =>\n client.GET(\"/v1/inventory\", { params: { query } }),\n shareGrants: {\n /**\n * Mint or replay a bounded cross-principal inventory capability. The\n * operation UUID is payload-bound and the raw token is returned only\n * by this response.\n */\n create: (body: InventoryShareGrantCreateRequest) =>\n client.POST(\"/v1/inventory/share-grants\", { body }),\n /**\n * Redeem a capability supplied in JSON (never in a URL). This helper\n * does not require the client to be configured with a bearer token.\n */\n redeem: (body: InventoryShareGrantRedeemRequest) =>\n client.POST(\"/v1/inventory/share-grants/redeem\", { body }),\n },\n /**\n * Create an owner inventory lot. Requires a session or an owner-bound API\n * key carrying the exact `inventory:write` scope. Manual coffee creates\n * require `idempotencyKey`; catalog-backed creates accept it optionally.\n * The same key and payload replay the original result.\n */\n create: createInventory,\n /**\n * Atomically create owner-private manual inventory lots. The required\n * idempotency UUID is the stable batch identity and can be reconciled\n * with `getManualBatch` after an uncertain response.\n */\n createManualBatch: (\n body: ManualInventoryBatchCreateRequest,\n options: { idempotencyKey: string },\n ) =>\n client.POST(\"/v1/inventory/manual-batches\", {\n params: {\n header: { \"idempotency-key\": options.idempotencyKey },\n },\n body,\n }),\n /** Return the durable terminal result for a manual inventory batch. */\n getManualBatch: (batchId: string) =>\n client.GET(\"/v1/inventory/manual-batches/{batchId}\", {\n params: { path: { batchId } },\n }),\n /**\n * Durably reserve a complete manual-batch request. Once accepted, clients\n * only need to persist the batch UUID.\n */\n reserveManualBatch: (body: ManualInventoryBatchReserveRequest) =>\n client.POST(\"/v1/inventory/manual-batches/reservations\", { body }),\n /** Commit a reserved batch by UUID with no request body. */\n commitManualBatch: (batchId: string) =>\n client.POST(\"/v1/inventory/manual-batches/{batchId}/commit\", {\n params: { path: { batchId } },\n }),\n /**\n * Get unknown, accepted, in-progress, completed, or terminal-rejected\n * state. Unknown is explicitly nonterminal, including missing or\n * cross-tenant UUIDs, so clients retain the UUID and retry.\n */\n getManualBatchStatus: (batchId: string) =>\n client.GET(\"/v1/inventory/manual-batches/{batchId}/status\", {\n params: { path: { batchId } },\n }),\n /** Durably reserve canonical catalog-backed inventory intent. */\n reserveCatalogBatch: (body: CatalogInventoryBatchReserveRequest) =>\n client.POST(\"/v1/inventory/catalog-batches/reservations\", { body }),\n /** Atomically commit a reserved catalog batch by UUID, with no body. */\n commitCatalogBatch: (batchId: string) =>\n client.POST(\"/v1/inventory/catalog-batches/{batchId}/commit\", {\n params: { path: { batchId } },\n }),\n /** Recover the owner-scoped lifecycle; missing batches remain unknown. */\n getCatalogBatchStatus: (batchId: string) =>\n client.GET(\"/v1/inventory/catalog-batches/{batchId}/status\", {\n params: { path: { batchId } },\n }),\n /**\n * Update one of the caller's own inventory rows. Pass `ifMatch` (the\n * row's `last_updated`) to enable optimistic concurrency (409 on mismatch).\n */\n update: (\n id: number,\n body: InventoryUpdateRequest,\n options?: { ifMatch?: string },\n ) =>\n client.PATCH(\"/v1/inventory/{id}\", {\n params: {\n path: { id },\n header: options?.ifMatch\n ? { \"if-match\": options.ifMatch }\n : undefined,\n },\n body,\n }),\n /**\n * Delete one of the caller's own inventory rows. Returns 409 if dependent\n * roast profiles or sales exist (no force-cascade).\n */\n delete: (id: number) =>\n client.DELETE(\"/v1/inventory/{id}\", { params: { path: { id } } }),\n },\n roasts: {\n /** Match Artisan roast metadata to one of the supplied inventory rows. */\n classify: (body: RoastClassificationRequest) =>\n client.POST(\"/v1/roasts/classify\", { body }),\n /** List the caller's own roast profiles (owner-scoped). */\n list: (query?: RoastListQuery) =>\n client.GET(\"/v1/roasts\", { params: { query } }),\n /**\n * Fetch one of the caller's roast profiles by id, optionally with its\n * temperature curve (`includeTemps`) and event markers (`includeEvents`).\n */\n get: (id: string, query?: RoastGetQuery) =>\n client.GET(\"/v1/roasts/{id}\", { params: { path: { id }, query } }),\n /** Fetch an owner roast's adaptively sampled chart curve and metadata. */\n chartData: (id: string, query?: RoastChartDataQuery) =>\n client.GET(\"/v1/roasts/{id}/chart-data\", {\n params: { path: { id }, query },\n }),\n /**\n * Create an owner roast profile, optionally with nested temperature/event\n * rows. Requires a session or an owner-bound API key carrying the exact\n * `roast:write` scope. The optional `idempotencyKey` is payload-bound:\n * same-key, same-payload retries replay, while changed payloads conflict.\n */\n create: (\n body: RoastCreateRequest,\n options?: { idempotencyKey?: string },\n ) =>\n client.POST(\"/v1/roasts\", {\n body,\n params: options?.idempotencyKey\n ? { header: { \"idempotency-key\": options.idempotencyKey } }\n : undefined,\n }),\n /**\n * Create every profile in one named batch atomically. The required\n * payload-bound idempotency key makes transport retries safe.\n */\n createBatch: (body: RoastBatchCreateRequest, idempotencyKey: string) =>\n client.POST(\"/v1/roasts/batches\", {\n body,\n params: { header: { \"idempotency-key\": idempotencyKey } },\n }),\n /**\n * Update one of the caller's own roast profiles. Pass `ifMatch` (the\n * row's `last_updated`) to enable optimistic concurrency (409 on mismatch).\n */\n update: (\n id: number,\n body: RoastUpdateRequest,\n options?: { ifMatch?: string },\n ) =>\n client.PATCH(\"/v1/roasts/{id}\", {\n params: {\n path: { id },\n header: options?.ifMatch\n ? { \"if-match\": options.ifMatch }\n : undefined,\n },\n body,\n }),\n /** Delete one of the caller's own roast profiles. */\n delete: (id: number) =>\n client.DELETE(\"/v1/roasts/{id}\", { params: { path: { id } } }),\n /** Delete every owner roast carrying one exact batch name. Session-only. */\n deleteBatch: (batchName: string) =>\n client.DELETE(\"/v1/roasts/batches/{batchName}\", {\n params: { path: { batchName } },\n }),\n /**\n * Replace live temperature samples and all event markers atomically,\n * while preserving non-live temperatures and deriving milestone fields.\n */\n replaceLiveCurve: (\n id: number,\n body: RoastLiveCurveRequest,\n options?: { ifMatch?: string },\n ) =>\n client.PUT(\"/v1/roasts/{id}/live-curve\", {\n params: {\n path: { id },\n header: options?.ifMatch\n ? { \"if-match\": options.ifMatch }\n : undefined,\n },\n body,\n }),\n /**\n * Create a roast profile from an Artisan `.alog` file against one of the\n * caller's green-coffee lots, persisting the imported curve, events, and\n * an artisan_import_log entry atomically. Requires a session or an\n * owner-bound API key carrying the exact `roast:write` scope. The\n * optional `idempotencyKey` is payload-bound: same-key, same-payload\n * retries replay, while changed payloads conflict.\n */\n import: (\n body: RoastImportRequest,\n options?: { idempotencyKey?: string },\n ) =>\n client.POST(\"/v1/roasts/imports\", {\n body,\n params: options?.idempotencyKey\n ? { header: { \"idempotency-key\": options.idempotencyKey } }\n : undefined,\n }),\n /**\n * Create a roast profile from the Artisan file stored with one of the\n * caller's uploaded reference profiles. Only uploaded Artisan references\n * qualify: planned (generated) profiles are never recorded as roasts,\n * and a reference saved from an existing roast is refused. Requires\n * Mallard Studio plus a session, or an owner-bound API key carrying the\n * exact `roast:read` and `roast:write` scopes. The optional\n * `idempotencyKey` is payload-bound.\n */\n importFromReference: (\n body: RoastImportFromReferenceRequest,\n options?: { idempotencyKey?: string },\n ) =>\n client.POST(\"/v1/roasts/imports/from-reference\", {\n body,\n params: options?.idempotencyKey\n ? { header: { \"idempotency-key\": options.idempotencyKey } }\n : undefined,\n }),\n /**\n * Replace the Artisan import data on one of the caller's existing roasts,\n * re-deriving its curve, events, and computed metrics while preserving the\n * roast's identity. Pass `ifMatch` (the roast's `last_updated`) to enable\n * optimistic concurrency (409 on mismatch).\n */\n replaceArtisanImport: (\n id: number,\n body: RoastArtisanImportReplaceRequest,\n options?: { ifMatch?: string },\n ) =>\n client.PUT(\"/v1/roasts/{id}/artisan-import\", {\n params: {\n path: { id },\n header: options?.ifMatch\n ? { \"if-match\": options.ifMatch }\n : undefined,\n },\n body,\n }),\n /**\n * Clear import-derived curve, events, metrics, and provenance data from\n * one of the caller's existing roasts without deleting the roast profile.\n */\n clearArtisanImport: (id: number) =>\n client.DELETE(\"/v1/roasts/{id}/artisan-import\", {\n params: { path: { id } },\n }),\n },\n referenceProfiles: {\n /** List Studio reference profiles without mixing them into roast history. */\n list: (includeArchived = false) =>\n client.GET(\"/v1/reference-profiles\", {\n params: { query: { includeArchived } },\n }),\n get: (id: string) =>\n client.GET(\"/v1/reference-profiles/{id}\", {\n params: { path: { id } },\n }),\n chart: (id: string, revisionId: string) =>\n client.GET(\"/v1/reference-profiles/{id}/revisions/{revisionId}/chart\", {\n params: { path: { id, revisionId } },\n }),\n /** Preview explicit changes without saving or changing the parent. */\n preview: (\n id: string,\n revisionId: string,\n body: ReferenceProfileGenerationRequest,\n ) =>\n client.POST(\n \"/v1/reference-profiles/{id}/revisions/{revisionId}/preview\",\n {\n params: { path: { id, revisionId } },\n body,\n },\n ),\n /** Save an immutable generated reference with parent lineage. */\n generate: (\n id: string,\n revisionId: string,\n body: ReferenceProfileGenerationRequest,\n idempotencyKey: string,\n ) =>\n client.POST(\n \"/v1/reference-profiles/{id}/revisions/{revisionId}/generated\",\n {\n params: {\n path: { id, revisionId },\n header: { \"idempotency-key\": idempotencyKey },\n },\n body,\n },\n ),\n /** Retrieve only a saved unsigned generated background profile. */\n exportGenerated: (id: string, revisionId: string) =>\n client.GET(\n \"/v1/reference-profiles/{id}/revisions/{revisionId}/export\",\n {\n params: { path: { id, revisionId } },\n },\n ),\n import: (body: ReferenceProfileImportRequest, idempotencyKey: string) =>\n client.POST(\"/v1/reference-profiles/imports\", {\n body,\n params: { header: { \"idempotency-key\": idempotencyKey } },\n }),\n /**\n * Save an executed roast as a reference. `basis: \"artisan_source\"`\n * copies the roast's stored Artisan file so a planned profile can be\n * built from it, and returns the reference already saved from that\n * roast's file instead of a duplicate; the default\n * `\"chart_snapshot\"` keeps a comparison-only chart.\n */\n fromRoast: (\n body: ReferenceProfileFromRoastRequest,\n idempotencyKey: string,\n ) =>\n client.POST(\"/v1/reference-profiles/from-roast\", {\n body,\n params: { header: { \"idempotency-key\": idempotencyKey } },\n }),\n /**\n * List the caller's executed roasts whose Artisan file is on record and\n * can therefore be the base for a planned profile, newest first.\n */\n roastCandidates: (query?: ReferenceProfileRoastCandidatesQuery) =>\n client.GET(\"/v1/reference-profiles/from-roast/candidates\", {\n params: { query },\n }),\n /**\n * Preview a planned profile built directly on an executed roast's stored\n * Artisan file. Read-only: nothing is saved and the roast is unchanged.\n */\n previewFromRoast: (body: ReferenceProfileRoastGenerationRequest) =>\n client.POST(\"/v1/reference-profiles/from-roast/preview\", { body }),\n update: (id: string, body: ReferenceProfileUpdateRequest) =>\n client.PATCH(\"/v1/reference-profiles/{id}\", {\n params: { path: { id } },\n body,\n }),\n delete: (id: string) =>\n client.DELETE(\"/v1/reference-profiles/{id}\", {\n params: { path: { id } },\n }),\n linkRoast: (id: string, roastId: number) =>\n client.PUT(\"/v1/reference-profiles/{id}/roast-links/{roastId}\", {\n params: { path: { id, roastId } },\n }),\n unlinkRoast: (id: string, roastId: number) =>\n client.DELETE(\"/v1/reference-profiles/{id}/roast-links/{roastId}\", {\n params: { path: { id, roastId } },\n }),\n compare: (body: ProfileComparisonRequest) =>\n client.POST(\"/v1/profile-comparisons\", { body }),\n },\n sales: {\n /** List the caller's own sales (owner-scoped). */\n list: (query?: SalesListQuery) =>\n client.GET(\"/v1/sales\", { params: { query } }),\n /**\n * Record a sale against one of the caller's own green-coffee inventory\n * lots. Requires a session or an owner-bound API key carrying the exact\n * `sales:write` scope. The optional `idempotencyKey` is payload-bound:\n * same-key, same-payload retries replay, while changed payloads or a\n * concurrent duplicate return 409.\n */\n create: (\n body: SalesCreateRequest,\n options?: { idempotencyKey?: string },\n ) =>\n client.POST(\"/v1/sales\", {\n body,\n params: options?.idempotencyKey\n ? { header: { \"idempotency-key\": options.idempotencyKey } }\n : undefined,\n }),\n /**\n * Update one of the caller's own sales. The sales table carries no\n * `last_updated` column, so no If-Match optimistic concurrency is\n * offered.\n */\n update: (id: number, body: SalesUpdateRequest) =>\n client.PATCH(\"/v1/sales/{id}\", {\n params: { path: { id } },\n body,\n }),\n /** Delete one of the caller's own sales. */\n delete: (id: number) =>\n client.DELETE(\"/v1/sales/{id}\", { params: { path: { id } } }),\n },\n profit: {\n /**\n * List the caller's owner-scoped profit summaries. API keys require\n * inventory:read, roast:read, and sales:read. Use pagination.total to\n * exhaust the complete owner result set.\n */\n list: (query?: ProfitListQuery) =>\n client.GET(\"/v1/profit\", { params: { query } }),\n },\n tasting: {\n /** Fetch supplier notes plus the caller's own latest tasting notes. */\n get: (catalogId: string, query?: TastingGetQuery) =>\n client.GET(\"/v1/tasting/{catalogId}\", {\n params: { path: { catalogId }, query },\n }),\n /** Replace the caller's rating for one owned inventory lot. */\n rate: (inventoryId: number, body: TastingRateRequest) =>\n client.PUT(\"/v1/tasting/inventory/{inventoryId}\", {\n params: { path: { inventoryId } },\n body,\n }),\n },\n };\n}\n\nexport type ParchmentClient = ReturnType<typeof createParchmentClient>;\n","import type { ConfirmedActionExecuteRequest, ParchmentClient } from \"./client\";\n\n/**\n * Dotted paths of every callable ParchmentClient helper, for example\n * `\"priceIndex.comparisons\"`. `raw` is the untyped openapi-fetch escape hatch\n * and is not a named helper.\n */\ntype MethodPaths<T, Prefix extends string = \"\"> = {\n [K in keyof T & string]: T[K] extends (...args: never[]) => unknown\n ? `${Prefix}${K}`\n : T[K] extends object\n ? MethodPaths<T[K], `${Prefix}${K}.`>\n : never;\n}[keyof T & string];\n\nexport type ParchmentClientMethod = MethodPaths<Omit<ParchmentClient, \"raw\">>;\n\n/**\n * The SDK reads the Cherry web agent can perform on the signed-in user's\n * behalf. Parchment's in-process chat adapter implements exactly these\n * methods, and its tests fail if the two drift. Agent surfaces built on the\n * SDK (such as the CLI) can import this list to prove they cover everything\n * the web agent can do.\n */\nexport const CHAT_AGENT_CAPABILITIES = [\n \"me\",\n \"catalog.list\",\n \"catalog.facets\",\n \"catalog.rank\",\n \"catalog.suppliers\",\n \"catalog.similar\",\n \"catalog.compare\",\n \"catalog.grades\",\n \"catalog.priceHistory\",\n \"inventory.list\",\n \"roasts.list\",\n \"roasts.get\",\n \"roasts.chartData\",\n \"referenceProfiles.list\",\n \"referenceProfiles.get\",\n \"referenceProfiles.chart\",\n \"referenceProfiles.compare\",\n \"referenceProfiles.preview\",\n \"referenceProfiles.roastCandidates\",\n \"referenceProfiles.previewFromRoast\",\n \"tasting.get\",\n \"priceIndex.list\",\n \"priceIndex.stats\",\n \"priceIndex.comparisons\",\n \"priceIndex.comparison\",\n \"priceIndex.history\",\n \"market.signals\",\n \"market.metadataIndex\",\n \"market.overview\",\n \"market.evidence\",\n] as const satisfies readonly ParchmentClientMethod[];\n\nexport type ChatAgentCapability = (typeof CHAT_AGENT_CAPABILITIES)[number];\n\n/**\n * Writes the web agent can propose. The agent never writes directly: it\n * returns an action card, and only the user's confirmation executes the\n * action through the session-only `confirmedActions.execute` endpoint.\n */\nexport const CHAT_AGENT_CONFIRMED_ACTION_TYPES = [\n \"add_bean_to_inventory\",\n \"update_bean\",\n \"create_roast_session\",\n \"create_roast_from_reference\",\n \"create_generated_reference\",\n \"update_roast_notes\",\n \"record_sale\",\n] as const satisfies readonly ConfirmedActionExecuteRequest[\"actionType\"][];\n\nexport type ChatAgentConfirmedActionType =\n (typeof CHAT_AGENT_CONFIRMED_ACTION_TYPES)[number];\n\nexport type ChatAgentCapabilityExclusionReason =\n /** Same write as a confirmed action; the agent proposes and the user confirms. */\n | \"confirmed_action_write\"\n /** Bound to the signed-in user's own session; never called by the agent. */\n | \"session_only\"\n /** Credential issuance or exchange. */\n | \"auth_bootstrap\"\n /** Staff-only administration or publication. */\n | \"admin_only\"\n /** A write with no confirmed-action path; the agent must not perform it. */\n | \"write_not_agent_facing\"\n /** A read the agent has no tool for yet. */\n | \"read_not_wired\"\n /** Service plumbing with no user data. */\n | \"infrastructure\";\n\nexport interface ChatAgentCapabilityExclusion {\n reason: ChatAgentCapabilityExclusionReason;\n note: string;\n}\n\n/**\n * Every ParchmentClient helper that is not a chat-agent capability, with the\n * reason. The mapped type makes adding an SDK helper a compile error here\n * until it is classified as a capability or an exclusion.\n */\nexport const CHAT_AGENT_CAPABILITY_EXCLUSIONS: {\n readonly [\n K in Exclude<ParchmentClientMethod, ChatAgentCapability>\n ]: ChatAgentCapabilityExclusion;\n} = {\n health: { reason: \"infrastructure\", note: \"Liveness only.\" },\n \"apiKeys.list\": {\n reason: \"session_only\",\n note: \"API key management belongs to the account owner.\",\n },\n \"apiKeys.create\": {\n reason: \"auth_bootstrap\",\n note: \"Issues a raw credential.\",\n },\n \"apiKeys.revoke\": {\n reason: \"session_only\",\n note: \"API key management belongs to the account owner.\",\n },\n \"apiKeys.rotate\": {\n reason: \"auth_bootstrap\",\n note: \"Issues a replacement raw credential.\",\n },\n \"apiUsage.get\": {\n reason: \"session_only\",\n note: \"Developer account analytics, not coffee data.\",\n },\n \"emailSubscriptions.get\": {\n reason: \"session_only\",\n note: \"Email preferences are managed in account settings.\",\n },\n \"emailSubscriptions.setMarketRead\": {\n reason: \"session_only\",\n note: \"Email preferences are managed in account settings.\",\n },\n \"emailSubscriptions.unsubscribeMarketRead\": {\n reason: \"session_only\",\n note: \"Capability-link unsubscribe from email.\",\n },\n \"marketBrief.drafts.create\": {\n reason: \"admin_only\",\n note: \"Market Brief publication pipeline.\",\n },\n \"accountDeletion.request\": {\n reason: \"session_only\",\n note: \"Requires a purpose-bound reauthentication assertion.\",\n },\n \"billing.checkout.create\": {\n reason: \"session_only\",\n note: \"Billing is user-driven checkout.\",\n },\n \"billing.checkout.get\": {\n reason: \"session_only\",\n note: \"Billing is user-driven checkout.\",\n },\n \"billing.checkout.reconcile\": {\n reason: \"session_only\",\n note: \"Billing is user-driven checkout.\",\n },\n \"billing.subscriptions.list\": {\n reason: \"session_only\",\n note: \"Billing state is shown in account settings.\",\n },\n \"billing.subscriptions.mutate\": {\n reason: \"session_only\",\n note: \"Cancel or resume is user-driven.\",\n },\n \"billingAdministration.discrepancies\": {\n reason: \"admin_only\",\n note: \"Staff billing reconciliation.\",\n },\n \"billingAdministration.recompute\": {\n reason: \"admin_only\",\n note: \"Staff billing reconciliation.\",\n },\n \"billingAdministration.setManual\": {\n reason: \"admin_only\",\n note: \"Staff entitlement grants.\",\n },\n \"cliAuth.create\": { reason: \"auth_bootstrap\", note: \"CLI login flow.\" },\n \"cliAuth.inspect\": { reason: \"auth_bootstrap\", note: \"CLI login flow.\" },\n \"cliAuth.approve\": { reason: \"auth_bootstrap\", note: \"CLI login flow.\" },\n \"cliAuth.exchange\": { reason: \"auth_bootstrap\", note: \"CLI login flow.\" },\n \"catalog.access\": {\n reason: \"read_not_wired\",\n note: \"Catalog visibility metadata; the agent reads `me` instead.\",\n },\n \"catalog.map\": {\n reason: \"read_not_wired\",\n note: \"Map clusters and geometry for the web map view.\",\n },\n \"catalog.originPriceStats\": {\n reason: \"read_not_wired\",\n note: \"Covered for the agent by market.overview origin price distribution.\",\n },\n \"catalog.stats\": {\n reason: \"read_not_wired\",\n note: \"No chat tool yet.\",\n },\n \"catalog.rankPremium\": {\n reason: \"read_not_wired\",\n note: \"The agent ranks through catalog.rank objectives.\",\n },\n \"catalog.supplierDetail\": {\n reason: \"read_not_wired\",\n note: \"The agent reads supplier aggregates through catalog.suppliers.\",\n },\n \"catalog.supplierRank\": {\n reason: \"read_not_wired\",\n note: \"The agent reads supplier aggregates through catalog.suppliers.\",\n },\n \"catalog.proofCoverage\": {\n reason: \"read_not_wired\",\n note: \"No chat tool yet.\",\n },\n \"procurement.briefs.list\": {\n reason: \"read_not_wired\",\n note: \"Active briefs reach the agent as prompt context, not a tool.\",\n },\n \"procurement.briefs.create\": {\n reason: \"write_not_agent_facing\",\n note: \"No confirmed action exists for sourcing briefs.\",\n },\n \"procurement.briefs.get\": {\n reason: \"read_not_wired\",\n note: \"Active briefs reach the agent as prompt context, not a tool.\",\n },\n \"procurement.briefs.matches\": {\n reason: \"read_not_wired\",\n note: \"No chat tool yet.\",\n },\n \"portfolio.trackedLots.list\": {\n reason: \"read_not_wired\",\n note: \"Tracked lots reach the agent as prompt context, not a tool.\",\n },\n \"portfolio.trackedLots.track\": {\n reason: \"write_not_agent_facing\",\n note: \"No confirmed action exists for tracked lots.\",\n },\n \"portfolio.trackedLots.untrack\": {\n reason: \"write_not_agent_facing\",\n note: \"No confirmed action exists for tracked lots.\",\n },\n \"confirmedActions.execute\": {\n reason: \"session_only\",\n note: \"Runs only after the user confirms an agent-proposed action card.\",\n },\n \"conversation.chat.stream\": {\n reason: \"session_only\",\n note: \"The agent's own transport.\",\n },\n \"conversation.workspaces.getOrCreate\": {\n reason: \"session_only\",\n note: \"Conversation persistence owned by the chat client.\",\n },\n \"conversation.workspaces.get\": {\n reason: \"session_only\",\n note: \"Conversation persistence owned by the chat client.\",\n },\n \"conversation.workspaces.update\": {\n reason: \"session_only\",\n note: \"Conversation persistence owned by the chat client.\",\n },\n \"conversation.workspaces.messages.history\": {\n reason: \"session_only\",\n note: \"Conversation persistence owned by the chat client.\",\n },\n \"conversation.workspaces.messages.append\": {\n reason: \"session_only\",\n note: \"Conversation persistence owned by the chat client.\",\n },\n \"conversation.workspaces.messages.clear\": {\n reason: \"session_only\",\n note: \"Conversation persistence owned by the chat client.\",\n },\n \"conversation.workspaces.updateCanvas\": {\n reason: \"session_only\",\n note: \"Conversation persistence owned by the chat client.\",\n },\n \"conversation.workspaces.getCompactionInputs\": {\n reason: \"session_only\",\n note: \"Conversation persistence owned by the chat client.\",\n },\n \"conversation.workspaces.updateSummary\": {\n reason: \"session_only\",\n note: \"Conversation persistence owned by the chat client.\",\n },\n \"conversation.workspaces.compactSummary\": {\n reason: \"session_only\",\n note: \"Conversation persistence owned by the chat client.\",\n },\n \"conversation.memory.get\": {\n reason: \"session_only\",\n note: \"Memory reaches the agent as prompt context.\",\n },\n \"conversation.memory.update\": {\n reason: \"session_only\",\n note: \"Memory is edited by the user or the memory pipeline.\",\n },\n \"conversation.memory.dream\": {\n reason: \"session_only\",\n note: \"Memory is edited by the user or the memory pipeline.\",\n },\n \"inventory.shareGrants.create\": {\n reason: \"write_not_agent_facing\",\n note: \"Mints a cross-user capability token.\",\n },\n \"inventory.shareGrants.redeem\": {\n reason: \"write_not_agent_facing\",\n note: \"Redeems a cross-user capability token.\",\n },\n \"inventory.create\": {\n reason: \"confirmed_action_write\",\n note: \"Confirmed action add_bean_to_inventory.\",\n },\n \"inventory.createManualBatch\": {\n reason: \"write_not_agent_facing\",\n note: \"Bulk import; no confirmed action.\",\n },\n \"inventory.getManualBatch\": {\n reason: \"read_not_wired\",\n note: \"Bulk-import recovery read.\",\n },\n \"inventory.reserveManualBatch\": {\n reason: \"write_not_agent_facing\",\n note: \"Bulk import; no confirmed action.\",\n },\n \"inventory.commitManualBatch\": {\n reason: \"write_not_agent_facing\",\n note: \"Bulk import; no confirmed action.\",\n },\n \"inventory.getManualBatchStatus\": {\n reason: \"read_not_wired\",\n note: \"Bulk-import recovery read.\",\n },\n \"inventory.reserveCatalogBatch\": {\n reason: \"write_not_agent_facing\",\n note: \"Bulk import; no confirmed action.\",\n },\n \"inventory.commitCatalogBatch\": {\n reason: \"write_not_agent_facing\",\n note: \"Bulk import; no confirmed action.\",\n },\n \"inventory.getCatalogBatchStatus\": {\n reason: \"read_not_wired\",\n note: \"Bulk-import recovery read.\",\n },\n \"inventory.update\": {\n reason: \"confirmed_action_write\",\n note: \"Confirmed action update_bean.\",\n },\n \"inventory.delete\": {\n reason: \"write_not_agent_facing\",\n note: \"Destructive; no confirmed action.\",\n },\n \"roasts.classify\": {\n reason: \"read_not_wired\",\n note: \"Artisan import matching helper for upload flows.\",\n },\n \"roasts.create\": {\n reason: \"confirmed_action_write\",\n note: \"Confirmed action create_roast_session.\",\n },\n \"roasts.createBatch\": {\n reason: \"write_not_agent_facing\",\n note: \"Bulk roast creation; no confirmed action.\",\n },\n \"roasts.update\": {\n reason: \"confirmed_action_write\",\n note: \"Confirmed action update_roast_notes (notes and targets only).\",\n },\n \"roasts.delete\": {\n reason: \"write_not_agent_facing\",\n note: \"Destructive; no confirmed action.\",\n },\n \"roasts.deleteBatch\": {\n reason: \"write_not_agent_facing\",\n note: \"Destructive; no confirmed action.\",\n },\n \"roasts.replaceLiveCurve\": {\n reason: \"write_not_agent_facing\",\n note: \"Live roast logging client only.\",\n },\n \"roasts.import\": {\n reason: \"write_not_agent_facing\",\n note: \"Artisan file upload; saved references import through confirmed action create_roast_from_reference.\",\n },\n \"roasts.importFromReference\": {\n reason: \"confirmed_action_write\",\n note: \"Confirmed action create_roast_from_reference.\",\n },\n \"roasts.replaceArtisanImport\": {\n reason: \"write_not_agent_facing\",\n note: \"Artisan file upload.\",\n },\n \"roasts.clearArtisanImport\": {\n reason: \"write_not_agent_facing\",\n note: \"Destructive; no confirmed action.\",\n },\n \"referenceProfiles.generate\": {\n reason: \"confirmed_action_write\",\n note: \"Confirmed action create_generated_reference.\",\n },\n \"referenceProfiles.exportGenerated\": {\n reason: \"read_not_wired\",\n note: \"File export for Artisan, not a chat read.\",\n },\n \"referenceProfiles.import\": {\n reason: \"write_not_agent_facing\",\n note: \"Artisan file upload.\",\n },\n \"referenceProfiles.fromRoast\": {\n reason: \"confirmed_action_write\",\n note: \"Confirmed action create_generated_reference saves a roast's stored Artisan file as the plan's parent reference (basis artisan_source). The chart_snapshot basis has no confirmed action.\",\n },\n \"referenceProfiles.update\": {\n reason: \"write_not_agent_facing\",\n note: \"No confirmed action.\",\n },\n \"referenceProfiles.delete\": {\n reason: \"write_not_agent_facing\",\n note: \"Destructive; no confirmed action.\",\n },\n \"referenceProfiles.linkRoast\": {\n reason: \"write_not_agent_facing\",\n note: \"No confirmed action.\",\n },\n \"referenceProfiles.unlinkRoast\": {\n reason: \"write_not_agent_facing\",\n note: \"No confirmed action.\",\n },\n \"sales.list\": {\n reason: \"read_not_wired\",\n note: \"No chat tool yet.\",\n },\n \"sales.create\": {\n reason: \"confirmed_action_write\",\n note: \"Confirmed action record_sale.\",\n },\n \"sales.update\": {\n reason: \"write_not_agent_facing\",\n note: \"No confirmed action.\",\n },\n \"sales.delete\": {\n reason: \"write_not_agent_facing\",\n note: \"Destructive; no confirmed action.\",\n },\n \"profit.list\": {\n reason: \"read_not_wired\",\n note: \"No chat tool yet.\",\n },\n \"tasting.rate\": {\n reason: \"write_not_agent_facing\",\n note: \"No confirmed action.\",\n },\n};\n\n/**\n * The narrowed client shape the chat agent receives: only the capability\n * helpers, with their SDK signatures.\n */\ntype PickPaths<T, P extends string> = {\n [\n K in keyof T & string as K extends (\n P extends `${infer Head}.${string}` ? Head : P\n )\n ? K\n : never\n ]: K extends P\n ? T[K]\n : PickPaths<T[K], P extends `${K}.${infer Rest}` ? Rest : never>;\n};\n\nexport type ChatAgentClient = PickPaths<ParchmentClient, ChatAgentCapability>;\n"],"mappings":";AAAA,OAAO,kBAA0C;AAga1C,SAAS,sBAAsB,SAAiC;AACrE,QAAM,EAAE,SAAS,OAAO,OAAO,UAAU,IAAI;AAE7C,QAAM,SAAS,aAAoB;AAAA,IACjC;AAAA,IACA,OAAO;AAAA,IACP,SAAS,QAAQ,EAAE,eAAe,UAAU,KAAK,GAAG,IAAI;AAAA,EAC1D,CAAC;AAED,QAAM,gBAAgB,CACpB,MACAA,aAEA,OAAO,KAAK,iBAAiB;AAAA,IAC3B;AAAA,IACA,QAAQA,UAAS,iBACb,EAAE,QAAQ,EAAE,mBAAmBA,SAAQ,eAAe,EAAE,IACxD;AAAA,EACN,CAAC;AAUH,WAAS,gBACP,MACAA,UACkC;AAClC,WAAO,cAAc,MAAMA,QAAO;AAAA,EACpC;AAEA,SAAO;AAAA;AAAA,IAEL,KAAK;AAAA;AAAA,IAEL,QAAQ,MAAM,OAAO,IAAI,SAAS;AAAA;AAAA,IAElC,IAAI,MAAM,OAAO,IAAI,QAAQ;AAAA,IAC7B,SAAS;AAAA;AAAA,MAEP,MAAM,MAAM,OAAO,IAAI,cAAc;AAAA;AAAA,MAErC,QAAQ,CAAC,SACP,OAAO,KAAK,gBAAgB,EAAE,KAAK,CAAC;AAAA;AAAA,MAEtC,QAAQ,CAAC,OACP,OAAO,OAAO,qBAAqB;AAAA,QAC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AAM;AAAA,EACR;AAAA,EACA,qCAAqC;AAAA,IACnC,QAAQ;AAAA,IACR,MAAM;AAAA,EACR;AAAA,EACA,4BAA4B;AAAA,IAC1B,QAAQ;AAAA,IACR,MAAM;AAAA,EACR;AAAA,EACA,+BAA+B;AAAA,IAC7B,QAAQ;AAAA,IACR,MAAM;AAAA,EACR;AAAA,EACA,4BAA4B;AAAA,IAC1B,QAAQ;AAAA,IACR,MAAM;AAAA,EACR;AAAA,EACA,4BAA4B;AAAA,IAC1B,QAAQ;AAAA,IACR,MAAM;AAAA,EACR;AAAA,EACA,+BAA+B;AAAA,IAC7B,QAAQ;AAAA,IACR,MAAM;AAAA,EACR;AAAA,EACA,iCAAiC;AAAA,IAC/B,QAAQ;AAAA,IACR,MAAM;AAAA,EACR;AAAA,EACA,cAAc;AAAA,IACZ,QAAQ;AAAA,IACR,MAAM;AAAA,EACR;AAAA,EACA,gBAAgB;AAAA,IACd,QAAQ;AAAA,IACR,MAAM;AAAA,EACR;AAAA,EACA,gBAAgB;AAAA,IACd,QAAQ;AAAA,IACR,MAAM;AAAA,EACR;AAAA,EACA,gBAAgB;AAAA,IACd,QAAQ;AAAA,IACR,MAAM;AAAA,EACR;AAAA,EACA,eAAe;AAAA,IACb,QAAQ;AAAA,IACR,MAAM;AAAA,EACR;AAAA,EACA,gBAAgB;AAAA,IACd,QAAQ;AAAA,IACR,MAAM;AAAA,EACR;AACF;","names":["options"]}
|
|
1
|
+
{"version":3,"sources":["../src/client.ts","../src/chatAgentCapabilities.ts"],"sourcesContent":["import createClient, { type ClientOptions } from \"openapi-fetch\";\nimport type { components, paths } from \"./schema\";\n\nexport interface ParchmentClientOptions {\n /** Base URL of the Parchment API, e.g. https://api.purveyors.io */\n baseUrl: string;\n /**\n * Optional bearer token (a Supabase JWT, API key, or dedicated machine\n * credential). Sent as\n * `Authorization: Bearer <token>`. Auth is resolved server-side at the route\n * boundary; the SDK only forwards the credential.\n */\n token?: string;\n /** Override the fetch implementation (useful for tests or custom runtimes). */\n fetch?: ClientOptions[\"fetch\"];\n}\n\n/** Query parameters for {@link ParchmentClient.catalog.list}. */\nexport type CatalogListQuery = NonNullable<\n paths[\"/v1/catalog\"][\"get\"][\"parameters\"][\"query\"]\n>;\n/** A catalog row returned by the canonical listing resource. */\nexport type CatalogItem = components[\"schemas\"][\"CatalogItem\"];\n/** API-owned row-level trust summary returned when `include=proof`. */\nexport type CatalogProofSummary = components[\"schemas\"][\"CatalogProofSummary\"];\n/** Query parameters for {@link ParchmentClient.catalog.facets}. */\nexport type CatalogFacetsQuery = NonNullable<\n paths[\"/v1/catalog/facets\"][\"get\"][\"parameters\"][\"query\"]\n>;\n/**\n * Optional headers for {@link ParchmentClient.catalog.list}, notably the\n * RFC 7240 `Prefer: handling=lenient|strict` override (PADR-0013 §7). Sending\n * `handling=lenient` opts a strict caller (API key or bearer-session JWT) back\n * into strip-with-notice degradation instead of a 401/403 hard-deny.\n */\nexport type CatalogListHeaders = NonNullable<\n paths[\"/v1/catalog\"][\"get\"][\"parameters\"][\"header\"]\n>;\n/** Query parameters for {@link ParchmentClient.catalog.map}. */\nexport type CatalogMapQuery = NonNullable<\n paths[\"/v1/catalog/map\"][\"get\"][\"parameters\"][\"query\"]\n>;\n/** Optional handling headers for {@link ParchmentClient.catalog.map}. */\nexport type CatalogMapHeaders = NonNullable<\n paths[\"/v1/catalog/map\"][\"get\"][\"parameters\"][\"header\"]\n>;\n/** Lightweight map projection over the caller-visible catalog. */\nexport type CatalogMapResponse = components[\"schemas\"][\"CatalogMapResponse\"];\n/** Optional headers for {@link ParchmentClient.catalog.facets}; see {@link CatalogListHeaders}. */\nexport type CatalogFacetsHeaders = NonNullable<\n paths[\"/v1/catalog/facets\"][\"get\"][\"parameters\"][\"header\"]\n>;\n/** Query parameters for {@link ParchmentClient.catalog.originPriceStats}. */\nexport type CatalogOriginPriceStatsQuery = NonNullable<\n paths[\"/v1/catalog/origin-price-stats\"][\"get\"][\"parameters\"][\"query\"]\n>;\n/** Query parameters for {@link ParchmentClient.catalog.stats}. */\nexport type CatalogStatsQuery = NonNullable<\n paths[\"/v1/catalog/stats\"][\"get\"][\"parameters\"][\"query\"]\n>;\n/** Query parameters for {@link ParchmentClient.catalog.rank}. */\nexport type CatalogRankQuery = NonNullable<\n paths[\"/v1/catalog/rank\"][\"get\"][\"parameters\"][\"query\"]\n>;\n/** Query parameters for {@link ParchmentClient.catalog.rankPremium}. */\nexport type CatalogRankPremiumQuery = NonNullable<\n paths[\"/v1/catalog/rank-premium\"][\"get\"][\"parameters\"][\"query\"]\n>;\n/** Query parameters for {@link ParchmentClient.catalog.suppliers}. */\nexport type CatalogSuppliersQuery = NonNullable<\n paths[\"/v1/catalog/suppliers\"][\"get\"][\"parameters\"][\"query\"]\n>;\n/** Query parameters for {@link ParchmentClient.catalog.supplierDetail}. */\nexport type CatalogSupplierDetailQuery = NonNullable<\n paths[\"/v1/catalog/suppliers/detail\"][\"get\"][\"parameters\"][\"query\"]\n>;\n/** Query parameters for {@link ParchmentClient.catalog.supplierRank}. */\nexport type CatalogSupplierRankQuery = NonNullable<\n paths[\"/v1/catalog/suppliers/rank\"][\"get\"][\"parameters\"][\"query\"]\n>;\n/** Optional headers for ranking endpoints; see {@link CatalogListHeaders}. */\nexport type CatalogRankHeaders = NonNullable<\n paths[\"/v1/catalog/rank\"][\"get\"][\"parameters\"][\"header\"]\n>;\n/** Optional headers for premium ranking endpoints; see {@link CatalogListHeaders}. */\nexport type CatalogRankPremiumHeaders = NonNullable<\n paths[\"/v1/catalog/rank-premium\"][\"get\"][\"parameters\"][\"header\"]\n>;\n/** Optional headers for supplier aggregate endpoints; see {@link CatalogListHeaders}. */\nexport type CatalogSupplierHeaders = NonNullable<\n paths[\"/v1/catalog/suppliers\"][\"get\"][\"parameters\"][\"header\"]\n>;\n/** Query parameters for {@link ParchmentClient.catalog.similar}. */\nexport type CatalogSimilarQuery = NonNullable<\n paths[\"/v1/catalog/{id}/similar\"][\"get\"][\"parameters\"][\"query\"]\n>;\n/** Query parameters for {@link ParchmentClient.catalog.compare}. */\nexport type CatalogCompareQuery = NonNullable<\n paths[\"/v1/catalog/compare\"][\"get\"][\"parameters\"][\"query\"]\n>;\n/** Query parameters for {@link ParchmentClient.catalog.grades}. */\nexport type CatalogGradesQuery = NonNullable<\n paths[\"/v1/catalog/grades\"][\"get\"][\"parameters\"][\"query\"]\n>;\n/** Query parameters for {@link ParchmentClient.catalog.taxonomies}. */\nexport type CatalogTaxonomiesQuery = NonNullable<\n paths[\"/v1/catalog/taxonomies\"][\"get\"][\"parameters\"][\"query\"]\n>;\n/** Query parameters for {@link ParchmentClient.catalog.priceHistory}. */\nexport type CatalogPriceHistoryQuery = NonNullable<\n paths[\"/v1/catalog/{id}/price-history\"][\"get\"][\"parameters\"][\"query\"]\n>;\n/** Query parameters for {@link ParchmentClient.priceIndex.list}. */\nexport type PriceIndexQuery = NonNullable<\n paths[\"/v1/price-index\"][\"get\"][\"parameters\"][\"query\"]\n>;\n/** Query parameters for {@link ParchmentClient.priceIndex.history}. */\nexport type PriceIndexHistoryQuery = NonNullable<\n paths[\"/v1/price-index/history\"][\"get\"][\"parameters\"][\"query\"]\n>;\n/** Query parameters for {@link ParchmentClient.market.signals}. */\nexport type MarketSignalsQuery = NonNullable<\n paths[\"/v1/market/signals\"][\"get\"][\"parameters\"][\"query\"]\n>;\n/** Aggregate-only public green-coffee market evidence. */\nexport type MarketOverview = components[\"schemas\"][\"MarketOverviewResponse\"];\n/** Named public-catalog and supplier evidence for Parchment Intelligence callers. */\nexport type MarketEvidence = components[\"schemas\"][\"MarketEvidenceResponse\"];\n/** Query parameters for {@link ParchmentClient.priceIndex.stats}. */\nexport type PriceIndexStatsQuery = NonNullable<\n paths[\"/v1/price-index/stats\"][\"get\"][\"parameters\"][\"query\"]\n>;\n/** Query parameters for {@link ParchmentClient.market.metadataIndex}. */\nexport type MetadataIndexQuery = NonNullable<\n paths[\"/v1/market/metadata-index\"][\"get\"][\"parameters\"][\"query\"]\n>;\n/** Query parameters for {@link ParchmentClient.procurement.briefs.matches}. */\nexport type BriefMatchesQuery = NonNullable<\n paths[\"/v1/procurement/briefs/{id}/matches\"][\"get\"][\"parameters\"][\"query\"]\n>;\n/** Request body for {@link ParchmentClient.procurement.briefs.create}. */\nexport type SourcingBriefCreateRequest =\n components[\"schemas\"][\"SourcingBriefCreateRequest\"];\n/** Query parameters for {@link ParchmentClient.portfolio.trackedLots.list}. */\nexport type TrackedLotsListQuery = NonNullable<\n paths[\"/v1/portfolio/tracked-lots\"][\"get\"][\"parameters\"][\"query\"]\n>;\n/** A tracked catalog lot enriched with current catalog and price state. */\nexport type TrackedLotSummary = components[\"schemas\"][\"TrackedLotSummary\"];\n/** State returned by tracked-lot PUT and DELETE mutations. */\nexport type TrackedLotMutation =\n components[\"schemas\"][\"TrackedLotMutationResponse\"];\n/** Closed session-only command for {@link ParchmentClient.confirmedActions.execute}. */\nexport type ConfirmedActionExecuteRequest = NonNullable<\n paths[\"/v1/confirmed-actions/execute\"][\"post\"][\"requestBody\"]\n>[\"content\"][\"application/json\"];\n/** Create-or-get body for {@link ParchmentClient.conversation.workspaces.getOrCreate}. */\nexport type ConversationWorkspaceCreateRequest = NonNullable<\n paths[\"/v1/conversation/workspaces\"][\"post\"][\"requestBody\"]\n>[\"content\"][\"application/json\"];\nexport type ConversationWorkspaceMetadataRequest = NonNullable<\n paths[\"/v1/conversation/workspaces/{workspaceId}\"][\"patch\"][\"requestBody\"]\n>[\"content\"][\"application/json\"];\nexport type ConversationMessageAppendRequest = NonNullable<\n paths[\"/v1/conversation/workspaces/{workspaceId}/messages\"][\"post\"][\"requestBody\"]\n>[\"content\"][\"application/json\"];\nexport type ConversationWorkspaceClearRequest = NonNullable<\n paths[\"/v1/conversation/workspaces/{workspaceId}/messages/clear\"][\"post\"][\"requestBody\"]\n>[\"content\"][\"application/json\"];\nexport type ConversationCanvasUpdateRequest = NonNullable<\n paths[\"/v1/conversation/workspaces/{workspaceId}/canvas\"][\"put\"][\"requestBody\"]\n>[\"content\"][\"application/json\"];\nexport type ConversationSummaryUpdateRequest = NonNullable<\n paths[\"/v1/conversation/workspaces/{workspaceId}/summary\"][\"put\"][\"requestBody\"]\n>[\"content\"][\"application/json\"];\nexport type ConversationMemoryUpdateRequest = NonNullable<\n paths[\"/v1/conversation/memory\"][\"put\"][\"requestBody\"]\n>[\"content\"][\"application/json\"];\nexport type ConversationMemoryDreamRequest = NonNullable<\n paths[\"/v1/conversation/memory/dream\"][\"post\"][\"requestBody\"]\n>[\"content\"][\"application/json\"];\n/** Query parameters for {@link ParchmentClient.inventory.list}. */\nexport type InventoryListQuery = NonNullable<\n paths[\"/v1/inventory\"][\"get\"][\"parameters\"][\"query\"]\n>;\n/** Request body for {@link ParchmentClient.inventory.create}. */\nexport type InventoryCreateRequest = NonNullable<\n paths[\"/v1/inventory\"][\"post\"][\"requestBody\"]\n>[\"content\"][\"application/json\"];\n/** Stable-operation request for {@link ParchmentClient.inventory.shareGrants.create}. */\nexport type InventoryShareGrantCreateRequest = NonNullable<\n paths[\"/v1/inventory/share-grants\"][\"post\"][\"requestBody\"]\n>[\"content\"][\"application/json\"];\n/** The one-time raw-token grant returned by create or same-operation replay. */\nexport type InventoryShareGrant = components[\"schemas\"][\"InventoryShareGrant\"];\n/** Anonymous capability body for {@link ParchmentClient.inventory.shareGrants.redeem}. */\nexport type InventoryShareGrantRedeemRequest = NonNullable<\n paths[\"/v1/inventory/share-grants/redeem\"][\"post\"][\"requestBody\"]\n>[\"content\"][\"application/json\"];\n/** Safe legacy-oriented inventory row returned by capability redemption. */\nexport type InventoryShareInventory =\n components[\"schemas\"][\"InventoryShareInventory\"];\n/** Catalog allowlist nested in a shared inventory row. */\nexport type InventoryShareCatalog =\n components[\"schemas\"][\"InventoryShareCatalog\"];\n/** Six-field roast summary nested in member/admin shares. */\nexport type InventoryShareRoastSummary =\n components[\"schemas\"][\"InventoryShareRoastSummary\"];\ntype CatalogInventoryCreateRequest =\n components[\"schemas\"][\"CatalogInventoryCreateRequest\"];\ntype ManualInventoryCreateRequest =\n components[\"schemas\"][\"ManualInventoryCreateRequest\"];\n/** Request body for {@link ParchmentClient.inventory.createManualBatch}. */\nexport type ManualInventoryBatchCreateRequest = NonNullable<\n paths[\"/v1/inventory/manual-batches\"][\"post\"][\"requestBody\"]\n>[\"content\"][\"application/json\"];\n/** Request body for reserving durable server-owned manual-batch intent. */\nexport type ManualInventoryBatchReserveRequest = NonNullable<\n paths[\"/v1/inventory/manual-batches/reservations\"][\"post\"][\"requestBody\"]\n>[\"content\"][\"application/json\"];\n/** Complete canonical intent accepted by the catalog-batch reservation lane. */\nexport type CatalogInventoryBatchReserveRequest = NonNullable<\n paths[\"/v1/inventory/catalog-batches/reservations\"][\"post\"][\"requestBody\"]\n>[\"content\"][\"application/json\"];\n/** Durable catalog-batch state returned by reserve, commit, and status. */\nexport type CatalogInventoryBatchLifecycle =\n components[\"schemas\"][\"CatalogInventoryBatchLifecycle\"];\n/** Identity-only terminal result; catalog resources remain a separate read. */\nexport type CatalogInventoryBatchResult =\n components[\"schemas\"][\"CatalogInventoryBatchResult\"];\n/** Request body for {@link ParchmentClient.inventory.update}. */\nexport type InventoryUpdateRequest = NonNullable<\n paths[\"/v1/inventory/{id}\"][\"patch\"][\"requestBody\"]\n>[\"content\"][\"application/json\"];\n/** Query parameters for {@link ParchmentClient.roasts.list}. */\nexport type RoastListQuery = NonNullable<\n paths[\"/v1/roasts\"][\"get\"][\"parameters\"][\"query\"]\n>;\n/** Query parameters for {@link ParchmentClient.roasts.get}. */\nexport type RoastGetQuery = NonNullable<\n paths[\"/v1/roasts/{id}\"][\"get\"][\"parameters\"][\"query\"]\n>;\n/** Query parameters for {@link ParchmentClient.roasts.chartData}. */\nexport type RoastChartDataQuery = NonNullable<\n paths[\"/v1/roasts/{id}/chart-data\"][\"get\"][\"parameters\"][\"query\"]\n>;\n/** Typed chart payload returned by {@link ParchmentClient.roasts.chartData}. */\nexport type RoastChartData =\n components[\"schemas\"][\"RoastChartDataResponse\"][\"data\"];\n/** One sampled primary or auxiliary series in a roast chart payload. */\nexport type RoastChartSeries = components[\"schemas\"][\"RoastChartSeries\"];\n/** One discrete milestone or control event in a roast chart payload. */\nexport type RoastChartEvent = components[\"schemas\"][\"RoastChartEvent\"];\nexport type ReferenceProfile =\n components[\"schemas\"][\"ReferenceProfileResponse\"][\"data\"];\nexport type ReferenceProfileSummary =\n components[\"schemas\"][\"ReferenceProfileSummary\"];\nexport type ReferenceProfileChart =\n components[\"schemas\"][\"ReferenceProfileChart\"];\nexport type ReferenceProfileImportRequest = NonNullable<\n paths[\"/v1/reference-profiles/imports\"][\"post\"][\"requestBody\"]\n>[\"content\"][\"application/json\"];\nexport type ReferenceProfileFromRoastRequest = NonNullable<\n paths[\"/v1/reference-profiles/from-roast\"][\"post\"][\"requestBody\"]\n>[\"content\"][\"application/json\"];\n/** Request body for {@link ParchmentClient.referenceProfiles.previewFromRoast}. */\nexport type ReferenceProfileRoastGenerationRequest = NonNullable<\n paths[\"/v1/reference-profiles/from-roast/preview\"][\"post\"][\"requestBody\"]\n>[\"content\"][\"application/json\"];\n/** Query parameters for {@link ParchmentClient.referenceProfiles.roastCandidates}. */\nexport type ReferenceProfileRoastCandidatesQuery = NonNullable<\n paths[\"/v1/reference-profiles/from-roast/candidates\"][\"get\"][\"parameters\"][\"query\"]\n>;\n/** One executed roast that can be the base for a planned profile. */\nexport type ReferenceProfileRoastCandidate =\n components[\"schemas\"][\"ReferenceProfileRoastCandidatesResponse\"][\"data\"][\"roasts\"][number];\nexport type ReferenceProfileUpdateRequest = NonNullable<\n paths[\"/v1/reference-profiles/{id}\"][\"patch\"][\"requestBody\"]\n>[\"content\"][\"application/json\"];\nexport type ReferenceProfileGenerationRequest = NonNullable<\n paths[\"/v1/reference-profiles/{id}/revisions/{revisionId}/preview\"][\"post\"][\"requestBody\"]\n>[\"content\"][\"application/json\"];\nexport type ProfileComparisonRequest = NonNullable<\n paths[\"/v1/profile-comparisons\"][\"post\"][\"requestBody\"]\n>[\"content\"][\"application/json\"];\n/** Request body for {@link ParchmentClient.roasts.classify}. */\nexport type RoastClassificationRequest = NonNullable<\n paths[\"/v1/roasts/classify\"][\"post\"][\"requestBody\"]\n>[\"content\"][\"application/json\"];\n/** Request body for {@link ParchmentClient.roasts.create}. */\nexport type RoastCreateRequest = NonNullable<\n paths[\"/v1/roasts\"][\"post\"][\"requestBody\"]\n>[\"content\"][\"application/json\"];\n/** Atomic named-batch body for {@link ParchmentClient.roasts.createBatch}. */\nexport type RoastBatchCreateRequest = NonNullable<\n paths[\"/v1/roasts/batches\"][\"post\"][\"requestBody\"]\n>[\"content\"][\"application/json\"];\n/** Request body for {@link ParchmentClient.roasts.update}. */\nexport type RoastUpdateRequest = NonNullable<\n paths[\"/v1/roasts/{id}\"][\"patch\"][\"requestBody\"]\n>[\"content\"][\"application/json\"];\n/** Source-aware live curve body for {@link ParchmentClient.roasts.replaceLiveCurve}. */\nexport type RoastLiveCurveRequest = NonNullable<\n paths[\"/v1/roasts/{id}/live-curve\"][\"put\"][\"requestBody\"]\n>[\"content\"][\"application/json\"];\n/** Request body for {@link ParchmentClient.roasts.import}. */\nexport type RoastImportRequest = NonNullable<\n paths[\"/v1/roasts/imports\"][\"post\"][\"requestBody\"]\n>[\"content\"][\"application/json\"];\n/** Request body for {@link ParchmentClient.roasts.importFromReference}. */\nexport type RoastImportFromReferenceRequest = NonNullable<\n paths[\"/v1/roasts/imports/from-reference\"][\"post\"][\"requestBody\"]\n>[\"content\"][\"application/json\"];\n/** Request body for {@link ParchmentClient.roasts.replaceArtisanImport}. */\nexport type RoastArtisanImportReplaceRequest = NonNullable<\n paths[\"/v1/roasts/{id}/artisan-import\"][\"put\"][\"requestBody\"]\n>[\"content\"][\"application/json\"];\n/** Query parameters for {@link ParchmentClient.sales.list}. */\nexport type SalesListQuery = NonNullable<\n paths[\"/v1/sales\"][\"get\"][\"parameters\"][\"query\"]\n>;\n/** Query parameters for {@link ParchmentClient.profit.list}. */\nexport type ProfitListQuery = NonNullable<\n paths[\"/v1/profit\"][\"get\"][\"parameters\"][\"query\"]\n>;\n/** One owner inventory lot's canonical cost, revenue, and roast summary. */\nexport type ProfitItem = components[\"schemas\"][\"ProfitItem\"];\n/** Request body for {@link ParchmentClient.sales.create}. */\nexport type SalesCreateRequest = NonNullable<\n paths[\"/v1/sales\"][\"post\"][\"requestBody\"]\n>[\"content\"][\"application/json\"];\n/** Request body for {@link ParchmentClient.sales.update}. */\nexport type SalesUpdateRequest = NonNullable<\n paths[\"/v1/sales/{id}\"][\"patch\"][\"requestBody\"]\n>[\"content\"][\"application/json\"];\n/** Query parameters for {@link ParchmentClient.tasting.get}. */\nexport type TastingGetQuery = NonNullable<\n paths[\"/v1/tasting/{catalogId}\"][\"get\"][\"parameters\"][\"query\"]\n>;\n/** Request body for {@link ParchmentClient.tasting.rate}. */\nexport type TastingRateRequest = NonNullable<\n paths[\"/v1/tasting/inventory/{inventoryId}\"][\"put\"][\"requestBody\"]\n>[\"content\"][\"application/json\"];\n/** Request body for {@link ParchmentClient.apiKeys.create}. */\nexport type ApiKeyCreateRequest = NonNullable<\n paths[\"/v1/api-keys\"][\"post\"][\"requestBody\"]\n>[\"content\"][\"application/json\"];\n/** Query parameters for the session owner's API-key traffic analytics. */\nexport type OwnerApiUsageQuery = NonNullable<\n paths[\"/v1/api-usage\"][\"get\"][\"parameters\"][\"query\"]\n>;\n/** Bounded owner API-key traffic analytics (not session or billing usage). */\nexport type OwnerApiUsage = components[\"schemas\"][\"OwnerApiUsageResponse\"];\n/** Request body for {@link ParchmentClient.emailSubscriptions.setMarketRead}. */\nexport type MarketReadPreferenceRequest = NonNullable<\n paths[\"/v1/email-subscriptions/market-read\"][\"put\"][\"requestBody\"]\n>[\"content\"][\"application/json\"];\n/** Request body for {@link ParchmentClient.emailSubscriptions.unsubscribeMarketRead}. */\nexport type MarketReadUnsubscribeRequest = NonNullable<\n paths[\"/v1/email-subscriptions/market-read/unsubscribe\"][\"post\"][\"requestBody\"]\n>[\"content\"][\"application/json\"];\n/** Immutable deployed projection accepted by {@link ParchmentClient.marketBrief.drafts.create}. */\nexport type MarketBriefDraftCreateRequest = NonNullable<\n paths[\"/v1/market-brief/drafts\"][\"post\"][\"requestBody\"]\n>[\"content\"][\"application/json\"];\n/** Durable Parchment-owned provider-draft state. */\nexport type MarketBriefDraftState =\n components[\"schemas\"][\"MarketBriefDraftState\"];\n/** Account-owned Market Read email preference. */\nexport type EmailSubscriptionPreference =\n components[\"schemas\"][\"EmailSubscriptionPreference\"];\n/** Durable state returned by an account-deletion request. */\nexport type AccountDeletionOperation =\n components[\"schemas\"][\"AccountDeletionOperation\"];\n/** Purpose-bound recent-reauthentication assertion for account deletion. */\nexport type AccountDeletionRequest = NonNullable<\n paths[\"/v1/account-deletion\"][\"post\"][\"requestBody\"]\n>[\"content\"][\"application/json\"];\n/** Purchase-key request for dormant direct Parchment Checkout creation/replay. */\nexport type BillingCheckoutCreateRequest = NonNullable<\n paths[\"/v1/billing/checkout-sessions\"][\"post\"][\"requestBody\"]\n>[\"content\"][\"application/json\"];\n/** Durable Checkout admission state; provider Session id stays server-side. */\nexport type BillingCheckoutSession =\n components[\"schemas\"][\"BillingCheckoutSession\"];\n/** Durable cancellation/resume request. */\nexport type BillingSubscriptionMutationRequest = NonNullable<\n paths[\"/v1/billing/subscriptions/{subscriptionId}\"][\"patch\"][\"requestBody\"]\n>[\"content\"][\"application/json\"];\n/** Durable provider subscription-operation state. */\nexport type BillingSubscriptionOperation =\n components[\"schemas\"][\"BillingSubscriptionOperation\"];\n/** Manual entitlement baseline update for administrators. */\nexport type BillingManualEntitlementsRequest = NonNullable<\n paths[\"/v1/admin/billing-entitlements/{ownerId}/manual\"][\"patch\"][\"requestBody\"]\n>[\"content\"][\"application/json\"];\nexport type CliAuthRequestCreate = NonNullable<\n paths[\"/v1/cli-auth/requests\"][\"post\"][\"requestBody\"]\n>[\"content\"][\"application/json\"];\nexport type CliAuthInspectRequest = NonNullable<\n paths[\"/v1/cli-auth/inspect\"][\"post\"][\"requestBody\"]\n>[\"content\"][\"application/json\"];\nexport type CliAuthApproveRequest = NonNullable<\n paths[\"/v1/cli-auth/approve\"][\"post\"][\"requestBody\"]\n>[\"content\"][\"application/json\"];\nexport type CliAuthExchangeRequest = NonNullable<\n paths[\"/v1/cli-auth/token\"][\"post\"][\"requestBody\"]\n>[\"content\"][\"application/json\"];\n/** Browser-compatible AI SDK UI-message stream request. */\nexport type ConversationChatStreamRequest =\n components[\"schemas\"][\"ConversationChatStreamRequest\"];\n\n/**\n * Create a typed Parchment API client.\n *\n * The generated core (openapi-fetch over the generated `paths` types) is the\n * contract truth; the named helpers below are the hand-maintained ergonomic\n * layer and grow as endpoints land. `raw` always exposes the underlying typed\n * client for direct path access to anything not yet wrapped.\n */\nexport function createParchmentClient(options: ParchmentClientOptions) {\n const { baseUrl, token, fetch: fetchImpl } = options;\n\n const client = createClient<paths>({\n baseUrl,\n fetch: fetchImpl,\n headers: token ? { Authorization: `Bearer ${token}` } : undefined,\n });\n\n const postInventory = (\n body: InventoryCreateRequest,\n options?: { idempotencyKey?: string },\n ) =>\n client.POST(\"/v1/inventory\", {\n body,\n params: options?.idempotencyKey\n ? { header: { \"idempotency-key\": options.idempotencyKey } }\n : undefined,\n });\n\n function createInventory(\n body: ManualInventoryCreateRequest,\n options: { idempotencyKey: string },\n ): ReturnType<typeof postInventory>;\n function createInventory(\n body: CatalogInventoryCreateRequest,\n options?: { idempotencyKey?: string },\n ): ReturnType<typeof postInventory>;\n function createInventory(\n body: InventoryCreateRequest,\n options?: { idempotencyKey?: string },\n ): ReturnType<typeof postInventory> {\n return postInventory(body, options);\n }\n\n return {\n /** The underlying typed openapi-fetch client for direct path access. */\n raw: client,\n /** Liveness and service identity. */\n health: () => client.GET(\"/health\"),\n /** Resolved principal and entitlements for the caller. */\n me: () => client.GET(\"/v1/me\"),\n apiKeys: {\n /** List API keys owned by the authenticated session user. */\n list: () => client.GET(\"/v1/api-keys\"),\n /** Create an API key. The raw secret is returned only once. */\n create: (body: ApiKeyCreateRequest) =>\n client.POST(\"/v1/api-keys\", { body }),\n /** Revoke an API key owned by the authenticated session user. */\n revoke: (id: string) =>\n client.DELETE(\"/v1/api-keys/{id}\", {\n params: { path: { id } },\n }),\n /** Rotate an API key and return the replacement secret once. */\n rotate: (id: string) =>\n client.POST(\"/v1/api-keys/{id}/rotate\", {\n params: { path: { id } },\n }),\n },\n apiUsage: {\n /**\n * Read bounded API-key traffic analytics for the authenticated session\n * owner. Headline monthly/hourly counts are exact; daily/per-key series\n * carry explicit truncation metadata.\n */\n get: (query?: OwnerApiUsageQuery) =>\n client.GET(\"/v1/api-usage\", { params: { query } }),\n },\n emailSubscriptions: {\n /** Get the authenticated session user's Market Read preference. */\n get: () => client.GET(\"/v1/email-subscriptions\"),\n /** Idempotently set the authenticated session user's Market Read preference. */\n setMarketRead: (body: MarketReadPreferenceRequest) =>\n client.PUT(\"/v1/email-subscriptions/market-read\", { body }),\n /** Idempotently unsubscribe using an opaque capability without requiring a session. */\n unsubscribeMarketRead: (body: MarketReadUnsubscribeRequest) =>\n client.POST(\"/v1/email-subscriptions/market-read/unsubscribe\", {\n body,\n }),\n },\n marketBrief: {\n drafts: {\n /** Accept, create, or recover one immutable deployed edition version. */\n create: (body: MarketBriefDraftCreateRequest) =>\n client.POST(\"/v1/market-brief/drafts\", { body }),\n },\n },\n accountDeletion: {\n /** Accept or replay deletion using a purpose-bound reauthentication assertion. */\n request: (body: AccountDeletionRequest) =>\n client.POST(\"/v1/account-deletion\", { body }),\n },\n billing: {\n checkout: {\n /** Create or replay an embedded Checkout Session after activation. */\n create: (body: BillingCheckoutCreateRequest) =>\n client.POST(\"/v1/billing/checkout-sessions\", { body }),\n /** Read owner-bound durable admission state. */\n get: (admissionId: string) =>\n client.GET(\"/v1/billing/checkout-sessions/{admissionId}\", {\n params: { path: { admissionId } },\n }),\n /** Authoritatively reconcile an admission with Stripe. */\n reconcile: (admissionId: string) =>\n client.POST(\"/v1/billing/checkout-sessions/{admissionId}/reconcile\", {\n params: { path: { admissionId } },\n }),\n },\n subscriptions: {\n /** List canonical owner subscription snapshots. */\n list: () => client.GET(\"/v1/billing/subscriptions\"),\n /** Durably cancel or resume the complete provider subscription. */\n mutate: (\n subscriptionId: string,\n body: BillingSubscriptionMutationRequest,\n ) =>\n client.PATCH(\"/v1/billing/subscriptions/{subscriptionId}\", {\n params: { path: { subscriptionId } },\n body,\n }),\n },\n },\n billingAdministration: {\n /** Read bounded canonical-entitlement discrepancies. */\n discrepancies: () =>\n client.GET(\"/v1/admin/billing-entitlement-discrepancies\"),\n /** Recompute billing contribution without changing manual grants. */\n recompute: (ownerId: string) =>\n client.POST(\n \"/v1/admin/billing-entitlement-discrepancies/{ownerId}/recompute\",\n { params: { path: { ownerId } } },\n ),\n /** Update the preserved manual entitlement baseline. */\n setManual: (ownerId: string, body: BillingManualEntitlementsRequest) =>\n client.PATCH(\"/v1/admin/billing-entitlements/{ownerId}/manual\", {\n params: { path: { ownerId } },\n body,\n }),\n },\n cliAuth: {\n /** Create a signed, short-lived login request bound to a PKCE challenge. */\n create: (body: CliAuthRequestCreate) =>\n client.POST(\"/v1/cli-auth/requests\", { body }),\n /** Inspect a signed request before displaying the web consent screen. */\n inspect: (body: CliAuthInspectRequest) =>\n client.POST(\"/v1/cli-auth/inspect\", { body }),\n /** Approve a request using the client's authenticated user session. */\n approve: (body: CliAuthApproveRequest) =>\n client.POST(\"/v1/cli-auth/approve\", { body }),\n /** Exchange an approved request and verifier for the one-time raw key. */\n exchange: (body: CliAuthExchangeRequest) =>\n client.POST(\"/v1/cli-auth/token\", { body }),\n },\n catalog: {\n /** Catalog capabilities and visibility for the caller. */\n access: () => client.GET(\"/v1/catalog/access\"),\n /**\n * List public catalog coffees (paginated). Pass `headers` to send the\n * `Prefer: handling=lenient|strict` override (see {@link CatalogListHeaders}).\n */\n list: (query?: CatalogListQuery, headers?: CatalogListHeaders) =>\n client.GET(\"/v1/catalog\", { params: { query, header: headers } }),\n /** Deterministic clusters, canonical place features, and elevation profile. */\n map: (query?: CatalogMapQuery, headers?: CatalogMapHeaders) =>\n client.GET(\"/v1/catalog/map\", {\n params: { query, header: headers },\n }),\n /**\n * Catalog filter metadata and counted facets. Pass `headers` to send the\n * `Prefer: handling=lenient|strict` override (see {@link CatalogFacetsHeaders}).\n */\n facets: (query?: CatalogFacetsQuery, headers?: CatalogFacetsHeaders) =>\n client.GET(\"/v1/catalog/facets\", {\n params: { query, header: headers },\n }),\n /** Live catalog price context by origin. */\n originPriceStats: (query?: CatalogOriginPriceStatsQuery) =>\n client.GET(\"/v1/catalog/origin-price-stats\", { params: { query } }),\n /** Aggregate stats over the caller-visible catalog. */\n stats: (query?: CatalogStatsQuery) =>\n client.GET(\"/v1/catalog/stats\", { params: { query } }),\n /** Rank caller-visible catalog coffees by deterministic objectives. */\n rank: (query?: CatalogRankQuery, headers?: CatalogRankHeaders) =>\n client.GET(\"/v1/catalog/rank\", {\n params: { query, header: headers },\n }),\n /** Rank premium catalog candidates by Purveyor Score. */\n rankPremium: (\n query?: CatalogRankPremiumQuery,\n headers?: CatalogRankPremiumHeaders,\n ) =>\n client.GET(\"/v1/catalog/rank-premium\", {\n params: { query, header: headers },\n }),\n /** List supplier aggregates over caller-visible catalog coffees. */\n suppliers: (\n query?: CatalogSuppliersQuery,\n headers?: CatalogSupplierHeaders,\n ) =>\n client.GET(\"/v1/catalog/suppliers\", {\n params: { query, header: headers },\n }),\n /** Return aggregate detail for a supplier query. */\n supplierDetail: (\n query: CatalogSupplierDetailQuery,\n headers?: CatalogSupplierHeaders,\n ) =>\n client.GET(\"/v1/catalog/suppliers/detail\", {\n params: { query, header: headers },\n }),\n /** Rank suppliers by catalog score and availability. */\n supplierRank: (\n query?: CatalogSupplierRankQuery,\n headers?: CatalogSupplierHeaders,\n ) =>\n client.GET(\"/v1/catalog/suppliers/rank\", {\n params: { query, header: headers },\n }),\n /** Aggregate proof-coverage over the public catalog. */\n proofCoverage: () => client.GET(\"/v1/catalog/proof-coverage\"),\n /** Find catalog coffees similar to a target coffee. */\n similar: (id: string, query?: CatalogSimilarQuery) =>\n client.GET(\"/v1/catalog/{id}/similar\", {\n params: { path: { id }, query },\n }),\n /** Compare 2 to 6 catalog coffees side by side. */\n compare: (query: CatalogCompareQuery) =>\n client.GET(\"/v1/catalog/compare\", { params: { query } }),\n /** Daily price history for one catalog coffee, with minimum-tier change events. */\n priceHistory: (id: string, query?: CatalogPriceHistoryQuery) =>\n client.GET(\"/v1/catalog/{id}/price-history\", {\n params: { path: { id }, query },\n }),\n /** Green grade designation vocabulary, e.g. KE:AA, GT:SHB, PREP:EP. */\n grades: (query?: CatalogGradesQuery) =>\n client.GET(\"/v1/catalog/grades\", { params: { query } }),\n /** Variety, species, and drying-method vocabularies with aliases and family links. */\n taxonomies: (query?: CatalogTaxonomiesQuery) =>\n client.GET(\"/v1/catalog/taxonomies\", { params: { query } }),\n },\n priceIndex: {\n /** Available exact 30-day comparisons, with no empty-origin search. */\n comparisons: (query?: { wholesale?: \"true\" | \"false\" | \"all\" }) =>\n client.GET(\"/v1/price-index/comparisons\", { params: { query } }),\n /** Fresh matched-listing movement, not catalog composition or a canonical publication. */\n comparison: (query: {\n from: string;\n to: string;\n origin: string;\n wholesale?: \"true\" | \"false\";\n }) => client.GET(\"/v1/price-index/comparison\", { params: { query } }),\n /** Parchment Price Index (aggregate snapshots). */\n list: (query?: PriceIndexQuery) =>\n client.GET(\"/v1/price-index\", { params: { query } }),\n /** Tier-one price-index chart history. */\n history: (query?: PriceIndexHistoryQuery) =>\n client.GET(\"/v1/price-index/history\", { params: { query } }),\n /** Price movement significance stats (precomputed). */\n stats: (query?: PriceIndexStatsQuery) =>\n client.GET(\"/v1/price-index/stats\", { params: { query } }),\n },\n market: {\n /** Aggregate daily changes, catalog coverage, movement, processing, and origin prices. */\n overview: () => client.GET(\"/v1/market/overview\"),\n /** Entitled named-lot and supplier evidence over the public catalog. */\n evidence: () => client.GET(\"/v1/market/evidence\"),\n /** Actionable market value signals. */\n signals: (query?: MarketSignalsQuery) =>\n client.GET(\"/v1/market/signals\", { params: { query } }),\n /** Metadata-trend index (process/disclosure/Purveyor Score over time). */\n metadataIndex: (query?: MetadataIndexQuery) =>\n client.GET(\"/v1/market/metadata-index\", { params: { query } }),\n },\n procurement: {\n briefs: {\n /** List the caller's saved sourcing briefs. */\n list: () => client.GET(\"/v1/procurement/briefs\"),\n /** Create a saved sourcing brief. */\n create: (body: SourcingBriefCreateRequest) =>\n client.POST(\"/v1/procurement/briefs\", { body }),\n /** Fetch one of the caller's sourcing briefs by id. */\n get: (id: string) =>\n client.GET(\"/v1/procurement/briefs/{id}\", {\n params: { path: { id } },\n }),\n /** Run a saved brief against the catalog (paginated matches). */\n matches: (id: string, query?: BriefMatchesQuery) =>\n client.GET(\"/v1/procurement/briefs/{id}/matches\", {\n params: { path: { id }, query },\n }),\n },\n },\n portfolio: {\n trackedLots: {\n /**\n * List an owner-scoped tracked catalog-id page and bounded recent\n * summaries enriched with live catalog state. Follow nextCursor when\n * a capped response reports truncation.\n */\n list: (query?: TrackedLotsListQuery) =>\n client.GET(\"/v1/portfolio/tracked-lots\", {\n params: { query },\n }),\n /** Idempotently set a visible catalog lot to tracked. */\n track: (catalogId: number) =>\n client.PUT(\"/v1/portfolio/tracked-lots/{catalogId}\", {\n params: { path: { catalogId } },\n }),\n /** Idempotently set an owner catalog lot to untracked. */\n untrack: (catalogId: number) =>\n client.DELETE(\"/v1/portfolio/tracked-lots/{catalogId}\", {\n params: { path: { catalogId } },\n }),\n },\n },\n confirmedActions: {\n /**\n * Execute or replay one user-confirmed product action. Session-only;\n * executionId is the durable payload-bound replay key.\n */\n execute: (body: ConfirmedActionExecuteRequest) =>\n client.POST(\"/v1/confirmed-actions/execute\", { body }),\n },\n conversation: {\n chat: {\n /**\n * Open a raw AI SDK UI-message stream. The response body is deliberately\n * left unread so BFFs and browser transports can forward chunks without\n * buffering. Aborting the supplied signal cancels the upstream request.\n */\n stream: (\n body: ConversationChatStreamRequest,\n init: { signal?: AbortSignal } = {},\n ): Promise<Response> => {\n const requestFetch = fetchImpl ?? globalThis.fetch;\n return requestFetch(\n new Request(`${baseUrl.replace(/\\/$/, \"\")}/v1/conversation/chat`, {\n method: \"POST\",\n headers: {\n \"Content-Type\": \"application/json\",\n ...(token ? { Authorization: `Bearer ${token}` } : {}),\n },\n body: JSON.stringify(body),\n signal: init.signal,\n }),\n );\n },\n },\n workspaces: {\n /** Get or create the session owner's singleton workspace. */\n getOrCreate: (body: ConversationWorkspaceCreateRequest) =>\n client.POST(\"/v1/conversation/workspaces\", { body }),\n /** Read the bounded canonical workspace and message state. */\n get: (workspaceId: string, messageLimit = 50) =>\n client.GET(\"/v1/conversation/workspaces/{workspaceId}\", {\n params: { path: { workspaceId }, query: { messageLimit } },\n }),\n /** Update owner workspace title or type. */\n update: (\n workspaceId: string,\n body: ConversationWorkspaceMetadataRequest,\n ) =>\n client.PATCH(\"/v1/conversation/workspaces/{workspaceId}\", {\n params: { path: { workspaceId } },\n body,\n }),\n messages: {\n /** Read older messages before a canonical sequence cursor. */\n history: (\n workspaceId: string,\n expectedResetEpoch: number,\n beforeSequence: number,\n messageLimit = 100,\n ) =>\n client.GET(\n \"/v1/conversation/workspaces/{workspaceId}/messages/history\",\n {\n params: {\n path: { workspaceId },\n query: { expectedResetEpoch, beforeSequence, messageLimit },\n },\n },\n ),\n /** Append or replay payload-bound messages under a reset epoch. */\n append: (\n workspaceId: string,\n body: ConversationMessageAppendRequest,\n ) =>\n client.POST(\"/v1/conversation/workspaces/{workspaceId}/messages\", {\n params: { path: { workspaceId } },\n body,\n }),\n /** Clear messages and advance the workspace reset epoch. */\n clear: (\n workspaceId: string,\n body: ConversationWorkspaceClearRequest,\n ) =>\n client.POST(\n \"/v1/conversation/workspaces/{workspaceId}/messages/clear\",\n { params: { path: { workspaceId } }, body },\n ),\n },\n /** Optimistically replace canvas state. */\n updateCanvas: (\n workspaceId: string,\n body: ConversationCanvasUpdateRequest,\n ) =>\n client.PUT(\"/v1/conversation/workspaces/{workspaceId}/canvas\", {\n params: { path: { workspaceId } },\n body,\n }),\n /** Read bounded inputs for summary compaction. */\n getCompactionInputs: (workspaceId: string, messageLimit = 30) =>\n client.GET(\n \"/v1/conversation/workspaces/{workspaceId}/compaction-inputs\",\n {\n params: { path: { workspaceId }, query: { messageLimit } },\n },\n ),\n /** Commit a summary only if epoch, version, and high-water still match. */\n updateSummary: (\n workspaceId: string,\n body: ConversationSummaryUpdateRequest,\n ) =>\n client.PUT(\"/v1/conversation/workspaces/{workspaceId}/summary\", {\n params: { path: { workspaceId } },\n body,\n }),\n /** Generate and CAS-commit a Parchment-owned workspace summary. */\n compactSummary: (workspaceId: string) =>\n client.POST(\n \"/v1/conversation/workspaces/{workspaceId}/summary/compact\",\n { params: { path: { workspaceId } } },\n ),\n },\n memory: {\n /** Read the session owner's versioned durable memory. */\n get: () => client.GET(\"/v1/conversation/memory\"),\n /** Optimistically update session-owner memory. */\n update: (body: ConversationMemoryUpdateRequest) =>\n client.PUT(\"/v1/conversation/memory\", { body }),\n /** Reflect bounded recent messages into versioned session-owner memory. */\n dream: (body: ConversationMemoryDreamRequest) =>\n client.POST(\"/v1/conversation/memory/dream\", { body }),\n },\n },\n inventory: {\n /** List the caller's own green-coffee inventory (owner-scoped). */\n list: (query?: InventoryListQuery) =>\n client.GET(\"/v1/inventory\", { params: { query } }),\n shareGrants: {\n /**\n * Mint or replay a bounded cross-principal inventory capability. The\n * operation UUID is payload-bound and the raw token is returned only\n * by this response.\n */\n create: (body: InventoryShareGrantCreateRequest) =>\n client.POST(\"/v1/inventory/share-grants\", { body }),\n /**\n * Redeem a capability supplied in JSON (never in a URL). This helper\n * does not require the client to be configured with a bearer token.\n */\n redeem: (body: InventoryShareGrantRedeemRequest) =>\n client.POST(\"/v1/inventory/share-grants/redeem\", { body }),\n },\n /**\n * Create an owner inventory lot. Requires a session or an owner-bound API\n * key carrying the exact `inventory:write` scope. Manual coffee creates\n * require `idempotencyKey`; catalog-backed creates accept it optionally.\n * The same key and payload replay the original result.\n */\n create: createInventory,\n /**\n * Atomically create owner-private manual inventory lots. The required\n * idempotency UUID is the stable batch identity and can be reconciled\n * with `getManualBatch` after an uncertain response.\n */\n createManualBatch: (\n body: ManualInventoryBatchCreateRequest,\n options: { idempotencyKey: string },\n ) =>\n client.POST(\"/v1/inventory/manual-batches\", {\n params: {\n header: { \"idempotency-key\": options.idempotencyKey },\n },\n body,\n }),\n /** Return the durable terminal result for a manual inventory batch. */\n getManualBatch: (batchId: string) =>\n client.GET(\"/v1/inventory/manual-batches/{batchId}\", {\n params: { path: { batchId } },\n }),\n /**\n * Durably reserve a complete manual-batch request. Once accepted, clients\n * only need to persist the batch UUID.\n */\n reserveManualBatch: (body: ManualInventoryBatchReserveRequest) =>\n client.POST(\"/v1/inventory/manual-batches/reservations\", { body }),\n /** Commit a reserved batch by UUID with no request body. */\n commitManualBatch: (batchId: string) =>\n client.POST(\"/v1/inventory/manual-batches/{batchId}/commit\", {\n params: { path: { batchId } },\n }),\n /**\n * Get unknown, accepted, in-progress, completed, or terminal-rejected\n * state. Unknown is explicitly nonterminal, including missing or\n * cross-tenant UUIDs, so clients retain the UUID and retry.\n */\n getManualBatchStatus: (batchId: string) =>\n client.GET(\"/v1/inventory/manual-batches/{batchId}/status\", {\n params: { path: { batchId } },\n }),\n /** Durably reserve canonical catalog-backed inventory intent. */\n reserveCatalogBatch: (body: CatalogInventoryBatchReserveRequest) =>\n client.POST(\"/v1/inventory/catalog-batches/reservations\", { body }),\n /** Atomically commit a reserved catalog batch by UUID, with no body. */\n commitCatalogBatch: (batchId: string) =>\n client.POST(\"/v1/inventory/catalog-batches/{batchId}/commit\", {\n params: { path: { batchId } },\n }),\n /** Recover the owner-scoped lifecycle; missing batches remain unknown. */\n getCatalogBatchStatus: (batchId: string) =>\n client.GET(\"/v1/inventory/catalog-batches/{batchId}/status\", {\n params: { path: { batchId } },\n }),\n /**\n * Update one of the caller's own inventory rows. Pass `ifMatch` (the\n * row's `last_updated`) to enable optimistic concurrency (409 on mismatch).\n */\n update: (\n id: number,\n body: InventoryUpdateRequest,\n options?: { ifMatch?: string },\n ) =>\n client.PATCH(\"/v1/inventory/{id}\", {\n params: {\n path: { id },\n header: options?.ifMatch\n ? { \"if-match\": options.ifMatch }\n : undefined,\n },\n body,\n }),\n /**\n * Delete one of the caller's own inventory rows. Returns 409 if dependent\n * roast profiles or sales exist (no force-cascade).\n */\n delete: (id: number) =>\n client.DELETE(\"/v1/inventory/{id}\", { params: { path: { id } } }),\n },\n roasts: {\n /** Match Artisan roast metadata to one of the supplied inventory rows. */\n classify: (body: RoastClassificationRequest) =>\n client.POST(\"/v1/roasts/classify\", { body }),\n /** List the caller's own roast profiles (owner-scoped). */\n list: (query?: RoastListQuery) =>\n client.GET(\"/v1/roasts\", { params: { query } }),\n /**\n * Fetch one of the caller's roast profiles by id, optionally with its\n * temperature curve (`includeTemps`) and event markers (`includeEvents`).\n */\n get: (id: string, query?: RoastGetQuery) =>\n client.GET(\"/v1/roasts/{id}\", { params: { path: { id }, query } }),\n /** Fetch an owner roast's adaptively sampled chart curve and metadata. */\n chartData: (id: string, query?: RoastChartDataQuery) =>\n client.GET(\"/v1/roasts/{id}/chart-data\", {\n params: { path: { id }, query },\n }),\n /**\n * Create an owner roast profile, optionally with nested temperature/event\n * rows. Requires a session or an owner-bound API key carrying the exact\n * `roast:write` scope. The optional `idempotencyKey` is payload-bound:\n * same-key, same-payload retries replay, while changed payloads conflict.\n */\n create: (\n body: RoastCreateRequest,\n options?: { idempotencyKey?: string },\n ) =>\n client.POST(\"/v1/roasts\", {\n body,\n params: options?.idempotencyKey\n ? { header: { \"idempotency-key\": options.idempotencyKey } }\n : undefined,\n }),\n /**\n * Create every profile in one named batch atomically. The required\n * payload-bound idempotency key makes transport retries safe.\n */\n createBatch: (body: RoastBatchCreateRequest, idempotencyKey: string) =>\n client.POST(\"/v1/roasts/batches\", {\n body,\n params: { header: { \"idempotency-key\": idempotencyKey } },\n }),\n /**\n * Update one of the caller's own roast profiles. Pass `ifMatch` (the\n * row's `last_updated`) to enable optimistic concurrency (409 on mismatch).\n */\n update: (\n id: number,\n body: RoastUpdateRequest,\n options?: { ifMatch?: string },\n ) =>\n client.PATCH(\"/v1/roasts/{id}\", {\n params: {\n path: { id },\n header: options?.ifMatch\n ? { \"if-match\": options.ifMatch }\n : undefined,\n },\n body,\n }),\n /** Delete one of the caller's own roast profiles. */\n delete: (id: number) =>\n client.DELETE(\"/v1/roasts/{id}\", { params: { path: { id } } }),\n /** Delete every owner roast carrying one exact batch name. Session-only. */\n deleteBatch: (batchName: string) =>\n client.DELETE(\"/v1/roasts/batches/{batchName}\", {\n params: { path: { batchName } },\n }),\n /**\n * Replace live temperature samples and all event markers atomically,\n * while preserving non-live temperatures and deriving milestone fields.\n */\n replaceLiveCurve: (\n id: number,\n body: RoastLiveCurveRequest,\n options?: { ifMatch?: string },\n ) =>\n client.PUT(\"/v1/roasts/{id}/live-curve\", {\n params: {\n path: { id },\n header: options?.ifMatch\n ? { \"if-match\": options.ifMatch }\n : undefined,\n },\n body,\n }),\n /**\n * Create a roast profile from an Artisan `.alog` file against one of the\n * caller's green-coffee lots, persisting the imported curve, events, and\n * an artisan_import_log entry atomically. Requires a session or an\n * owner-bound API key carrying the exact `roast:write` scope. The\n * optional `idempotencyKey` is payload-bound: same-key, same-payload\n * retries replay, while changed payloads conflict.\n */\n import: (\n body: RoastImportRequest,\n options?: { idempotencyKey?: string },\n ) =>\n client.POST(\"/v1/roasts/imports\", {\n body,\n params: options?.idempotencyKey\n ? { header: { \"idempotency-key\": options.idempotencyKey } }\n : undefined,\n }),\n /**\n * Create a roast profile from the Artisan file stored with one of the\n * caller's uploaded reference profiles. Only uploaded Artisan references\n * qualify: planned (generated) profiles are never recorded as roasts,\n * and a reference saved from an existing roast is refused. Requires\n * Mallard Studio plus a session, or an owner-bound API key carrying the\n * exact `roast:read` and `roast:write` scopes. The optional\n * `idempotencyKey` is payload-bound.\n */\n importFromReference: (\n body: RoastImportFromReferenceRequest,\n options?: { idempotencyKey?: string },\n ) =>\n client.POST(\"/v1/roasts/imports/from-reference\", {\n body,\n params: options?.idempotencyKey\n ? { header: { \"idempotency-key\": options.idempotencyKey } }\n : undefined,\n }),\n /**\n * Replace the Artisan import data on one of the caller's existing roasts,\n * re-deriving its curve, events, and computed metrics while preserving the\n * roast's identity. Pass `ifMatch` (the roast's `last_updated`) to enable\n * optimistic concurrency (409 on mismatch).\n */\n replaceArtisanImport: (\n id: number,\n body: RoastArtisanImportReplaceRequest,\n options?: { ifMatch?: string },\n ) =>\n client.PUT(\"/v1/roasts/{id}/artisan-import\", {\n params: {\n path: { id },\n header: options?.ifMatch\n ? { \"if-match\": options.ifMatch }\n : undefined,\n },\n body,\n }),\n /**\n * Clear import-derived curve, events, metrics, and provenance data from\n * one of the caller's existing roasts without deleting the roast profile.\n */\n clearArtisanImport: (id: number) =>\n client.DELETE(\"/v1/roasts/{id}/artisan-import\", {\n params: { path: { id } },\n }),\n },\n referenceProfiles: {\n /** List Studio reference profiles without mixing them into roast history. */\n list: (includeArchived = false) =>\n client.GET(\"/v1/reference-profiles\", {\n params: { query: { includeArchived } },\n }),\n get: (id: string) =>\n client.GET(\"/v1/reference-profiles/{id}\", {\n params: { path: { id } },\n }),\n chart: (id: string, revisionId: string) =>\n client.GET(\"/v1/reference-profiles/{id}/revisions/{revisionId}/chart\", {\n params: { path: { id, revisionId } },\n }),\n /** Preview explicit changes without saving or changing the parent. */\n preview: (\n id: string,\n revisionId: string,\n body: ReferenceProfileGenerationRequest,\n ) =>\n client.POST(\n \"/v1/reference-profiles/{id}/revisions/{revisionId}/preview\",\n {\n params: { path: { id, revisionId } },\n body,\n },\n ),\n /** Save an immutable generated reference with parent lineage. */\n generate: (\n id: string,\n revisionId: string,\n body: ReferenceProfileGenerationRequest,\n idempotencyKey: string,\n ) =>\n client.POST(\n \"/v1/reference-profiles/{id}/revisions/{revisionId}/generated\",\n {\n params: {\n path: { id, revisionId },\n header: { \"idempotency-key\": idempotencyKey },\n },\n body,\n },\n ),\n /** Retrieve only a saved unsigned generated background profile. */\n exportGenerated: (id: string, revisionId: string) =>\n client.GET(\n \"/v1/reference-profiles/{id}/revisions/{revisionId}/export\",\n {\n params: { path: { id, revisionId } },\n },\n ),\n import: (body: ReferenceProfileImportRequest, idempotencyKey: string) =>\n client.POST(\"/v1/reference-profiles/imports\", {\n body,\n params: { header: { \"idempotency-key\": idempotencyKey } },\n }),\n /**\n * Save an executed roast as a reference. `basis: \"artisan_source\"`\n * copies the roast's stored Artisan file so a planned profile can be\n * built from it, and returns the reference already saved from that\n * roast's file instead of a duplicate; the default\n * `\"chart_snapshot\"` keeps a comparison-only chart.\n */\n fromRoast: (\n body: ReferenceProfileFromRoastRequest,\n idempotencyKey: string,\n ) =>\n client.POST(\"/v1/reference-profiles/from-roast\", {\n body,\n params: { header: { \"idempotency-key\": idempotencyKey } },\n }),\n /**\n * List the caller's executed roasts whose Artisan file is on record and\n * can therefore be the base for a planned profile, newest first.\n */\n roastCandidates: (query?: ReferenceProfileRoastCandidatesQuery) =>\n client.GET(\"/v1/reference-profiles/from-roast/candidates\", {\n params: { query },\n }),\n /**\n * Preview a planned profile built directly on an executed roast's stored\n * Artisan file. Read-only: nothing is saved and the roast is unchanged.\n */\n previewFromRoast: (body: ReferenceProfileRoastGenerationRequest) =>\n client.POST(\"/v1/reference-profiles/from-roast/preview\", { body }),\n update: (id: string, body: ReferenceProfileUpdateRequest) =>\n client.PATCH(\"/v1/reference-profiles/{id}\", {\n params: { path: { id } },\n body,\n }),\n delete: (id: string) =>\n client.DELETE(\"/v1/reference-profiles/{id}\", {\n params: { path: { id } },\n }),\n linkRoast: (id: string, roastId: number) =>\n client.PUT(\"/v1/reference-profiles/{id}/roast-links/{roastId}\", {\n params: { path: { id, roastId } },\n }),\n unlinkRoast: (id: string, roastId: number) =>\n client.DELETE(\"/v1/reference-profiles/{id}/roast-links/{roastId}\", {\n params: { path: { id, roastId } },\n }),\n compare: (body: ProfileComparisonRequest) =>\n client.POST(\"/v1/profile-comparisons\", { body }),\n },\n sales: {\n /** List the caller's own sales (owner-scoped). */\n list: (query?: SalesListQuery) =>\n client.GET(\"/v1/sales\", { params: { query } }),\n /**\n * Record a sale against one of the caller's own green-coffee inventory\n * lots. Requires a session or an owner-bound API key carrying the exact\n * `sales:write` scope. The optional `idempotencyKey` is payload-bound:\n * same-key, same-payload retries replay, while changed payloads or a\n * concurrent duplicate return 409.\n */\n create: (\n body: SalesCreateRequest,\n options?: { idempotencyKey?: string },\n ) =>\n client.POST(\"/v1/sales\", {\n body,\n params: options?.idempotencyKey\n ? { header: { \"idempotency-key\": options.idempotencyKey } }\n : undefined,\n }),\n /**\n * Update one of the caller's own sales. The sales table carries no\n * `last_updated` column, so no If-Match optimistic concurrency is\n * offered.\n */\n update: (id: number, body: SalesUpdateRequest) =>\n client.PATCH(\"/v1/sales/{id}\", {\n params: { path: { id } },\n body,\n }),\n /** Delete one of the caller's own sales. */\n delete: (id: number) =>\n client.DELETE(\"/v1/sales/{id}\", { params: { path: { id } } }),\n },\n profit: {\n /**\n * List the caller's owner-scoped profit summaries. API keys require\n * inventory:read, roast:read, and sales:read. Use pagination.total to\n * exhaust the complete owner result set.\n */\n list: (query?: ProfitListQuery) =>\n client.GET(\"/v1/profit\", { params: { query } }),\n },\n tasting: {\n /** Fetch supplier notes plus the caller's own latest tasting notes. */\n get: (catalogId: string, query?: TastingGetQuery) =>\n client.GET(\"/v1/tasting/{catalogId}\", {\n params: { path: { catalogId }, query },\n }),\n /** Replace the caller's rating for one owned inventory lot. */\n rate: (inventoryId: number, body: TastingRateRequest) =>\n client.PUT(\"/v1/tasting/inventory/{inventoryId}\", {\n params: { path: { inventoryId } },\n body,\n }),\n },\n };\n}\n\nexport type ParchmentClient = ReturnType<typeof createParchmentClient>;\n","import type { ConfirmedActionExecuteRequest, ParchmentClient } from \"./client\";\n\n/**\n * Dotted paths of every callable ParchmentClient helper, for example\n * `\"priceIndex.comparisons\"`. `raw` is the untyped openapi-fetch escape hatch\n * and is not a named helper.\n */\ntype MethodPaths<T, Prefix extends string = \"\"> = {\n [K in keyof T & string]: T[K] extends (...args: never[]) => unknown\n ? `${Prefix}${K}`\n : T[K] extends object\n ? MethodPaths<T[K], `${Prefix}${K}.`>\n : never;\n}[keyof T & string];\n\nexport type ParchmentClientMethod = MethodPaths<Omit<ParchmentClient, \"raw\">>;\n\n/**\n * The SDK reads the Cherry web agent can perform on the signed-in user's\n * behalf. Parchment's in-process chat adapter implements exactly these\n * methods, and its tests fail if the two drift. Agent surfaces built on the\n * SDK (such as the CLI) can import this list to prove they cover everything\n * the web agent can do.\n */\nexport const CHAT_AGENT_CAPABILITIES = [\n \"me\",\n \"catalog.list\",\n \"catalog.facets\",\n \"catalog.rank\",\n \"catalog.suppliers\",\n \"catalog.similar\",\n \"catalog.compare\",\n \"catalog.grades\",\n \"catalog.priceHistory\",\n \"inventory.list\",\n \"roasts.list\",\n \"roasts.get\",\n \"roasts.chartData\",\n \"referenceProfiles.list\",\n \"referenceProfiles.get\",\n \"referenceProfiles.chart\",\n \"referenceProfiles.compare\",\n \"referenceProfiles.preview\",\n \"referenceProfiles.roastCandidates\",\n \"referenceProfiles.previewFromRoast\",\n \"tasting.get\",\n \"priceIndex.list\",\n \"priceIndex.stats\",\n \"priceIndex.comparisons\",\n \"priceIndex.comparison\",\n \"priceIndex.history\",\n \"market.signals\",\n \"market.metadataIndex\",\n \"market.overview\",\n \"market.evidence\",\n] as const satisfies readonly ParchmentClientMethod[];\n\nexport type ChatAgentCapability = (typeof CHAT_AGENT_CAPABILITIES)[number];\n\n/**\n * Writes the web agent can propose. The agent never writes directly: it\n * returns an action card, and only the user's confirmation executes the\n * action through the session-only `confirmedActions.execute` endpoint.\n */\nexport const CHAT_AGENT_CONFIRMED_ACTION_TYPES = [\n \"add_bean_to_inventory\",\n \"update_bean\",\n \"create_roast_session\",\n \"create_roast_from_reference\",\n \"create_generated_reference\",\n \"update_roast_notes\",\n \"record_sale\",\n] as const satisfies readonly ConfirmedActionExecuteRequest[\"actionType\"][];\n\nexport type ChatAgentConfirmedActionType =\n (typeof CHAT_AGENT_CONFIRMED_ACTION_TYPES)[number];\n\nexport type ChatAgentCapabilityExclusionReason =\n /** Same write as a confirmed action; the agent proposes and the user confirms. */\n | \"confirmed_action_write\"\n /** Bound to the signed-in user's own session; never called by the agent. */\n | \"session_only\"\n /** Credential issuance or exchange. */\n | \"auth_bootstrap\"\n /** Staff-only administration or publication. */\n | \"admin_only\"\n /** A write with no confirmed-action path; the agent must not perform it. */\n | \"write_not_agent_facing\"\n /** A read the agent has no tool for yet. */\n | \"read_not_wired\"\n /** Service plumbing with no user data. */\n | \"infrastructure\";\n\nexport interface ChatAgentCapabilityExclusion {\n reason: ChatAgentCapabilityExclusionReason;\n note: string;\n}\n\n/**\n * Every ParchmentClient helper that is not a chat-agent capability, with the\n * reason. The mapped type makes adding an SDK helper a compile error here\n * until it is classified as a capability or an exclusion.\n */\nexport const CHAT_AGENT_CAPABILITY_EXCLUSIONS: {\n readonly [\n K in Exclude<ParchmentClientMethod, ChatAgentCapability>\n ]: ChatAgentCapabilityExclusion;\n} = {\n health: { reason: \"infrastructure\", note: \"Liveness only.\" },\n \"apiKeys.list\": {\n reason: \"session_only\",\n note: \"API key management belongs to the account owner.\",\n },\n \"apiKeys.create\": {\n reason: \"auth_bootstrap\",\n note: \"Issues a raw credential.\",\n },\n \"apiKeys.revoke\": {\n reason: \"session_only\",\n note: \"API key management belongs to the account owner.\",\n },\n \"apiKeys.rotate\": {\n reason: \"auth_bootstrap\",\n note: \"Issues a replacement raw credential.\",\n },\n \"apiUsage.get\": {\n reason: \"session_only\",\n note: \"Developer account analytics, not coffee data.\",\n },\n \"emailSubscriptions.get\": {\n reason: \"session_only\",\n note: \"Email preferences are managed in account settings.\",\n },\n \"emailSubscriptions.setMarketRead\": {\n reason: \"session_only\",\n note: \"Email preferences are managed in account settings.\",\n },\n \"emailSubscriptions.unsubscribeMarketRead\": {\n reason: \"session_only\",\n note: \"Capability-link unsubscribe from email.\",\n },\n \"marketBrief.drafts.create\": {\n reason: \"admin_only\",\n note: \"Market Brief publication pipeline.\",\n },\n \"accountDeletion.request\": {\n reason: \"session_only\",\n note: \"Requires a purpose-bound reauthentication assertion.\",\n },\n \"billing.checkout.create\": {\n reason: \"session_only\",\n note: \"Billing is user-driven checkout.\",\n },\n \"billing.checkout.get\": {\n reason: \"session_only\",\n note: \"Billing is user-driven checkout.\",\n },\n \"billing.checkout.reconcile\": {\n reason: \"session_only\",\n note: \"Billing is user-driven checkout.\",\n },\n \"billing.subscriptions.list\": {\n reason: \"session_only\",\n note: \"Billing state is shown in account settings.\",\n },\n \"billing.subscriptions.mutate\": {\n reason: \"session_only\",\n note: \"Cancel or resume is user-driven.\",\n },\n \"billingAdministration.discrepancies\": {\n reason: \"admin_only\",\n note: \"Staff billing reconciliation.\",\n },\n \"billingAdministration.recompute\": {\n reason: \"admin_only\",\n note: \"Staff billing reconciliation.\",\n },\n \"billingAdministration.setManual\": {\n reason: \"admin_only\",\n note: \"Staff entitlement grants.\",\n },\n \"cliAuth.create\": { reason: \"auth_bootstrap\", note: \"CLI login flow.\" },\n \"cliAuth.inspect\": { reason: \"auth_bootstrap\", note: \"CLI login flow.\" },\n \"cliAuth.approve\": { reason: \"auth_bootstrap\", note: \"CLI login flow.\" },\n \"cliAuth.exchange\": { reason: \"auth_bootstrap\", note: \"CLI login flow.\" },\n \"catalog.access\": {\n reason: \"read_not_wired\",\n note: \"Catalog visibility metadata; the agent reads `me` instead.\",\n },\n \"catalog.taxonomies\": {\n reason: \"read_not_wired\",\n note: \"ADR-018 vocabulary; the Cherry lookup tool ships with the code filters.\",\n },\n \"catalog.map\": {\n reason: \"read_not_wired\",\n note: \"Map clusters and geometry for the web map view.\",\n },\n \"catalog.originPriceStats\": {\n reason: \"read_not_wired\",\n note: \"Covered for the agent by market.overview origin price distribution.\",\n },\n \"catalog.stats\": {\n reason: \"read_not_wired\",\n note: \"No chat tool yet.\",\n },\n \"catalog.rankPremium\": {\n reason: \"read_not_wired\",\n note: \"The agent ranks through catalog.rank objectives.\",\n },\n \"catalog.supplierDetail\": {\n reason: \"read_not_wired\",\n note: \"The agent reads supplier aggregates through catalog.suppliers.\",\n },\n \"catalog.supplierRank\": {\n reason: \"read_not_wired\",\n note: \"The agent reads supplier aggregates through catalog.suppliers.\",\n },\n \"catalog.proofCoverage\": {\n reason: \"read_not_wired\",\n note: \"No chat tool yet.\",\n },\n \"procurement.briefs.list\": {\n reason: \"read_not_wired\",\n note: \"Active briefs reach the agent as prompt context, not a tool.\",\n },\n \"procurement.briefs.create\": {\n reason: \"write_not_agent_facing\",\n note: \"No confirmed action exists for sourcing briefs.\",\n },\n \"procurement.briefs.get\": {\n reason: \"read_not_wired\",\n note: \"Active briefs reach the agent as prompt context, not a tool.\",\n },\n \"procurement.briefs.matches\": {\n reason: \"read_not_wired\",\n note: \"No chat tool yet.\",\n },\n \"portfolio.trackedLots.list\": {\n reason: \"read_not_wired\",\n note: \"Tracked lots reach the agent as prompt context, not a tool.\",\n },\n \"portfolio.trackedLots.track\": {\n reason: \"write_not_agent_facing\",\n note: \"No confirmed action exists for tracked lots.\",\n },\n \"portfolio.trackedLots.untrack\": {\n reason: \"write_not_agent_facing\",\n note: \"No confirmed action exists for tracked lots.\",\n },\n \"confirmedActions.execute\": {\n reason: \"session_only\",\n note: \"Runs only after the user confirms an agent-proposed action card.\",\n },\n \"conversation.chat.stream\": {\n reason: \"session_only\",\n note: \"The agent's own transport.\",\n },\n \"conversation.workspaces.getOrCreate\": {\n reason: \"session_only\",\n note: \"Conversation persistence owned by the chat client.\",\n },\n \"conversation.workspaces.get\": {\n reason: \"session_only\",\n note: \"Conversation persistence owned by the chat client.\",\n },\n \"conversation.workspaces.update\": {\n reason: \"session_only\",\n note: \"Conversation persistence owned by the chat client.\",\n },\n \"conversation.workspaces.messages.history\": {\n reason: \"session_only\",\n note: \"Conversation persistence owned by the chat client.\",\n },\n \"conversation.workspaces.messages.append\": {\n reason: \"session_only\",\n note: \"Conversation persistence owned by the chat client.\",\n },\n \"conversation.workspaces.messages.clear\": {\n reason: \"session_only\",\n note: \"Conversation persistence owned by the chat client.\",\n },\n \"conversation.workspaces.updateCanvas\": {\n reason: \"session_only\",\n note: \"Conversation persistence owned by the chat client.\",\n },\n \"conversation.workspaces.getCompactionInputs\": {\n reason: \"session_only\",\n note: \"Conversation persistence owned by the chat client.\",\n },\n \"conversation.workspaces.updateSummary\": {\n reason: \"session_only\",\n note: \"Conversation persistence owned by the chat client.\",\n },\n \"conversation.workspaces.compactSummary\": {\n reason: \"session_only\",\n note: \"Conversation persistence owned by the chat client.\",\n },\n \"conversation.memory.get\": {\n reason: \"session_only\",\n note: \"Memory reaches the agent as prompt context.\",\n },\n \"conversation.memory.update\": {\n reason: \"session_only\",\n note: \"Memory is edited by the user or the memory pipeline.\",\n },\n \"conversation.memory.dream\": {\n reason: \"session_only\",\n note: \"Memory is edited by the user or the memory pipeline.\",\n },\n \"inventory.shareGrants.create\": {\n reason: \"write_not_agent_facing\",\n note: \"Mints a cross-user capability token.\",\n },\n \"inventory.shareGrants.redeem\": {\n reason: \"write_not_agent_facing\",\n note: \"Redeems a cross-user capability token.\",\n },\n \"inventory.create\": {\n reason: \"confirmed_action_write\",\n note: \"Confirmed action add_bean_to_inventory.\",\n },\n \"inventory.createManualBatch\": {\n reason: \"write_not_agent_facing\",\n note: \"Bulk import; no confirmed action.\",\n },\n \"inventory.getManualBatch\": {\n reason: \"read_not_wired\",\n note: \"Bulk-import recovery read.\",\n },\n \"inventory.reserveManualBatch\": {\n reason: \"write_not_agent_facing\",\n note: \"Bulk import; no confirmed action.\",\n },\n \"inventory.commitManualBatch\": {\n reason: \"write_not_agent_facing\",\n note: \"Bulk import; no confirmed action.\",\n },\n \"inventory.getManualBatchStatus\": {\n reason: \"read_not_wired\",\n note: \"Bulk-import recovery read.\",\n },\n \"inventory.reserveCatalogBatch\": {\n reason: \"write_not_agent_facing\",\n note: \"Bulk import; no confirmed action.\",\n },\n \"inventory.commitCatalogBatch\": {\n reason: \"write_not_agent_facing\",\n note: \"Bulk import; no confirmed action.\",\n },\n \"inventory.getCatalogBatchStatus\": {\n reason: \"read_not_wired\",\n note: \"Bulk-import recovery read.\",\n },\n \"inventory.update\": {\n reason: \"confirmed_action_write\",\n note: \"Confirmed action update_bean.\",\n },\n \"inventory.delete\": {\n reason: \"write_not_agent_facing\",\n note: \"Destructive; no confirmed action.\",\n },\n \"roasts.classify\": {\n reason: \"read_not_wired\",\n note: \"Artisan import matching helper for upload flows.\",\n },\n \"roasts.create\": {\n reason: \"confirmed_action_write\",\n note: \"Confirmed action create_roast_session.\",\n },\n \"roasts.createBatch\": {\n reason: \"write_not_agent_facing\",\n note: \"Bulk roast creation; no confirmed action.\",\n },\n \"roasts.update\": {\n reason: \"confirmed_action_write\",\n note: \"Confirmed action update_roast_notes (notes and targets only).\",\n },\n \"roasts.delete\": {\n reason: \"write_not_agent_facing\",\n note: \"Destructive; no confirmed action.\",\n },\n \"roasts.deleteBatch\": {\n reason: \"write_not_agent_facing\",\n note: \"Destructive; no confirmed action.\",\n },\n \"roasts.replaceLiveCurve\": {\n reason: \"write_not_agent_facing\",\n note: \"Live roast logging client only.\",\n },\n \"roasts.import\": {\n reason: \"write_not_agent_facing\",\n note: \"Artisan file upload; saved references import through confirmed action create_roast_from_reference.\",\n },\n \"roasts.importFromReference\": {\n reason: \"confirmed_action_write\",\n note: \"Confirmed action create_roast_from_reference.\",\n },\n \"roasts.replaceArtisanImport\": {\n reason: \"write_not_agent_facing\",\n note: \"Artisan file upload.\",\n },\n \"roasts.clearArtisanImport\": {\n reason: \"write_not_agent_facing\",\n note: \"Destructive; no confirmed action.\",\n },\n \"referenceProfiles.generate\": {\n reason: \"confirmed_action_write\",\n note: \"Confirmed action create_generated_reference.\",\n },\n \"referenceProfiles.exportGenerated\": {\n reason: \"read_not_wired\",\n note: \"File export for Artisan, not a chat read.\",\n },\n \"referenceProfiles.import\": {\n reason: \"write_not_agent_facing\",\n note: \"Artisan file upload.\",\n },\n \"referenceProfiles.fromRoast\": {\n reason: \"confirmed_action_write\",\n note: \"Confirmed action create_generated_reference saves a roast's stored Artisan file as the plan's parent reference (basis artisan_source). The chart_snapshot basis has no confirmed action.\",\n },\n \"referenceProfiles.update\": {\n reason: \"write_not_agent_facing\",\n note: \"No confirmed action.\",\n },\n \"referenceProfiles.delete\": {\n reason: \"write_not_agent_facing\",\n note: \"Destructive; no confirmed action.\",\n },\n \"referenceProfiles.linkRoast\": {\n reason: \"write_not_agent_facing\",\n note: \"No confirmed action.\",\n },\n \"referenceProfiles.unlinkRoast\": {\n reason: \"write_not_agent_facing\",\n note: \"No confirmed action.\",\n },\n \"sales.list\": {\n reason: \"read_not_wired\",\n note: \"No chat tool yet.\",\n },\n \"sales.create\": {\n reason: \"confirmed_action_write\",\n note: \"Confirmed action record_sale.\",\n },\n \"sales.update\": {\n reason: \"write_not_agent_facing\",\n note: \"No confirmed action.\",\n },\n \"sales.delete\": {\n reason: \"write_not_agent_facing\",\n note: \"Destructive; no confirmed action.\",\n },\n \"profit.list\": {\n reason: \"read_not_wired\",\n note: \"No chat tool yet.\",\n },\n \"tasting.rate\": {\n reason: \"write_not_agent_facing\",\n note: \"No confirmed action.\",\n },\n};\n\n/**\n * The narrowed client shape the chat agent receives: only the capability\n * helpers, with their SDK signatures.\n */\ntype PickPaths<T, P extends string> = {\n [\n K in keyof T & string as K extends (\n P extends `${infer Head}.${string}` ? Head : P\n )\n ? K\n : never\n ]: K extends P\n ? T[K]\n : PickPaths<T[K], P extends `${K}.${infer Rest}` ? Rest : never>;\n};\n\nexport type ChatAgentClient = PickPaths<ParchmentClient, ChatAgentCapability>;\n"],"mappings":";AAAA,OAAO,kBAA0C;AAoa1C,SAAS,sBAAsB,SAAiC;AACrE,QAAM,EAAE,SAAS,OAAO,OAAO,UAAU,IAAI;AAE7C,QAAM,SAAS,aAAoB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