@purveyors/sdk 0.45.0 → 0.46.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.
Files changed (2) hide show
  1. package/dist/index.d.ts +132 -3
  2. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -6818,7 +6818,7 @@ interface paths {
6818
6818
  put?: never;
6819
6819
  /**
6820
6820
  * Execute a user-confirmed product action
6821
- * @description Execute one of five closed product actions for the authenticated session owner. The stable executionId provides payload-bound replay, and owner plus entitlement checks run again inside the same database transaction as the mutation. API keys are not accepted.
6821
+ * @description Execute one of the closed product actions for the authenticated session owner. The stable executionId provides payload-bound replay, and owner plus entitlement checks run again inside the same database transaction as the mutation. Generated reference saves require explicit user confirmation and remain planned profiles. API keys are not accepted.
6822
6822
  */
6823
6823
  post: {
6824
6824
  parameters: {
@@ -6893,6 +6893,21 @@ interface paths {
6893
6893
  "application/json": components["schemas"]["ErrorResponse"];
6894
6894
  };
6895
6895
  };
6896
+ /** @description A referenced action resource is no longer available to this account */
6897
+ 404: {
6898
+ headers: {
6899
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
6900
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
6901
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
6902
+ "X-RateLimit-Burst-Limit": components["headers"]["X-RateLimit-Burst-Limit"];
6903
+ "X-RateLimit-Burst-Remaining": components["headers"]["X-RateLimit-Burst-Remaining"];
6904
+ "X-RateLimit-Burst-Reset": components["headers"]["X-RateLimit-Burst-Reset"];
6905
+ [name: string]: unknown;
6906
+ };
6907
+ content: {
6908
+ "application/json": components["schemas"]["ErrorResponse"];
6909
+ };
6910
+ };
6896
6911
  /** @description The execution id conflicts with another payload or has no replayable result */
6897
6912
  409: {
6898
6913
  headers: {
@@ -13407,6 +13422,9 @@ interface components {
13407
13422
  /** Format: uuid */
13408
13423
  parentRevisionId: string;
13409
13424
  title: string;
13425
+ userGoal: string | null;
13426
+ modelRecommendation: string | null;
13427
+ userEdits: string | null;
13410
13428
  changes: {
13411
13429
  temperatureAdjustments: {
13412
13430
  /** @enum {string} */
@@ -13416,6 +13434,47 @@ interface components {
13416
13434
  delta: number;
13417
13435
  }[];
13418
13436
  };
13437
+ measuredFacts: {
13438
+ /** @enum {string} */
13439
+ temperatureUnit: "F" | "C";
13440
+ adjustments: {
13441
+ /** @enum {string} */
13442
+ kind: "bean_temperature" | "environmental_temperature";
13443
+ startMilliseconds: number;
13444
+ endMilliseconds: number;
13445
+ requestedDelta: number;
13446
+ /** @enum {string} */
13447
+ unit: "F" | "C";
13448
+ changedSampleCount: number;
13449
+ unchangedZeroSampleCount: number;
13450
+ parent: {
13451
+ first: {
13452
+ timeMilliseconds: number;
13453
+ value: number;
13454
+ } | null;
13455
+ last: {
13456
+ timeMilliseconds: number;
13457
+ value: number;
13458
+ } | null;
13459
+ minimum: number | null;
13460
+ maximum: number | null;
13461
+ };
13462
+ planned: {
13463
+ first: {
13464
+ timeMilliseconds: number;
13465
+ value: number;
13466
+ } | null;
13467
+ last: {
13468
+ timeMilliseconds: number;
13469
+ value: number;
13470
+ } | null;
13471
+ minimum: number | null;
13472
+ maximum: number | null;
13473
+ };
13474
+ }[];
13475
+ /** @enum {boolean} */
13476
+ eventsUnchanged: true;
13477
+ };
13419
13478
  chart: components["schemas"]["ReferenceProfileChart"];
13420
13479
  /** @enum {boolean} */
13421
13480
  exportEligible: true;
@@ -13432,6 +13491,9 @@ interface components {
13432
13491
  ReferenceProfileGenerationRequest: {
13433
13492
  title: string;
13434
13493
  notes?: string;
13494
+ userGoal?: string;
13495
+ modelRecommendation?: string;
13496
+ userEdits?: string;
13435
13497
  changes: {
13436
13498
  temperatureAdjustments: {
13437
13499
  /** @enum {string} */
@@ -15642,9 +15704,9 @@ interface components {
15642
15704
  data: {
15643
15705
  /** @enum {boolean} */
15644
15706
  success: true;
15645
- id: number;
15707
+ id: number | string;
15646
15708
  /** @enum {string} */
15647
- message: "Bean added to inventory" | "Bean updated" | "Roast session created" | "Roast created from Artisan reference" | "Roast notes updated" | "Sale recorded";
15709
+ message: "Bean added to inventory" | "Bean updated" | "Roast session created" | "Roast created from Artisan reference" | "Planned reference saved" | "Roast notes updated" | "Sale recorded";
15648
15710
  replayed: boolean;
15649
15711
  };
15650
15712
  meta: {
@@ -15732,6 +15794,32 @@ interface components {
15732
15794
  roast_notes?: string;
15733
15795
  roast_targets?: string;
15734
15796
  };
15797
+ } | {
15798
+ /** @description Stable operation id. Repeating it with the same action payload replays the stored result; changing the payload returns 409. */
15799
+ executionId: string;
15800
+ /** @enum {string} */
15801
+ actionType: "create_generated_reference";
15802
+ fields: {
15803
+ /** Format: uuid */
15804
+ parent_profile_id: string;
15805
+ /** Format: uuid */
15806
+ parent_revision_id: string;
15807
+ title: string;
15808
+ notes?: string;
15809
+ user_goal: string;
15810
+ model_recommendation: string;
15811
+ user_edits?: string;
15812
+ changes: {
15813
+ temperatureAdjustments: {
15814
+ /** @enum {string} */
15815
+ kind: "bean_temperature" | "environmental_temperature";
15816
+ startMilliseconds: number;
15817
+ endMilliseconds: number;
15818
+ delta: number;
15819
+ }[];
15820
+ };
15821
+ change_set_summary: string;
15822
+ };
15735
15823
  } | {
15736
15824
  /** @description Stable operation id. Repeating it with the same action payload replays the stored result; changing the payload returns 409. */
15737
15825
  executionId: string;
@@ -22807,6 +22895,20 @@ declare function createParchmentClient(options: ParchmentClientOptions): {
22807
22895
  "application/json": components["schemas"]["ErrorResponse"];
22808
22896
  };
22809
22897
  };
22898
+ 404: {
22899
+ headers: {
22900
+ "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
22901
+ "X-RateLimit-Remaining": components["headers"]["X-RateLimit-Remaining"];
22902
+ "X-RateLimit-Reset": components["headers"]["X-RateLimit-Reset"];
22903
+ "X-RateLimit-Burst-Limit": components["headers"]["X-RateLimit-Burst-Limit"];
22904
+ "X-RateLimit-Burst-Remaining": components["headers"]["X-RateLimit-Burst-Remaining"];
22905
+ "X-RateLimit-Burst-Reset": components["headers"]["X-RateLimit-Burst-Reset"];
22906
+ [name: string]: unknown;
22907
+ };
22908
+ content: {
22909
+ "application/json": components["schemas"]["ErrorResponse"];
22910
+ };
22911
+ };
22810
22912
  409: {
22811
22913
  headers: {
22812
22914
  "X-RateLimit-Limit": components["headers"]["X-RateLimit-Limit"];
@@ -22911,6 +23013,27 @@ declare function createParchmentClient(options: ParchmentClientOptions): {
22911
23013
  roast_notes?: string;
22912
23014
  roast_targets?: string;
22913
23015
  };
23016
+ } | {
23017
+ executionId: string;
23018
+ actionType: "create_generated_reference";
23019
+ fields: {
23020
+ parent_profile_id: string;
23021
+ parent_revision_id: string;
23022
+ title: string;
23023
+ notes?: string;
23024
+ user_goal: string;
23025
+ model_recommendation: string;
23026
+ user_edits?: string;
23027
+ changes: {
23028
+ temperatureAdjustments: {
23029
+ kind: "bean_temperature" | "environmental_temperature";
23030
+ startMilliseconds: number;
23031
+ endMilliseconds: number;
23032
+ delta: number;
23033
+ }[];
23034
+ };
23035
+ change_set_summary: string;
23036
+ };
22914
23037
  } | {
22915
23038
  executionId: string;
22916
23039
  actionType: "update_roast_notes";
@@ -28664,6 +28787,9 @@ declare function createParchmentClient(options: ParchmentClientOptions): {
28664
28787
  body: {
28665
28788
  title: string;
28666
28789
  notes?: string;
28790
+ userGoal?: string;
28791
+ modelRecommendation?: string;
28792
+ userEdits?: string;
28667
28793
  changes: {
28668
28794
  temperatureAdjustments: {
28669
28795
  kind: "bean_temperature" | "environmental_temperature";
@@ -28795,6 +28921,9 @@ declare function createParchmentClient(options: ParchmentClientOptions): {
28795
28921
  body: {
28796
28922
  title: string;
28797
28923
  notes?: string;
28924
+ userGoal?: string;
28925
+ modelRecommendation?: string;
28926
+ userEdits?: string;
28798
28927
  changes: {
28799
28928
  temperatureAdjustments: {
28800
28929
  kind: "bean_temperature" | "environmental_temperature";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@purveyors/sdk",
3
- "version": "0.45.0",
3
+ "version": "0.46.0",
4
4
  "description": "Typed client for the Purveyors Parchment API, generated from its OpenAPI spec.",
5
5
  "license": "MIT",
6
6
  "type": "module",