@company-semantics/contracts 96.0.0 → 97.0.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@company-semantics/contracts",
3
- "version": "96.0.0",
3
+ "version": "97.0.0",
4
4
  "private": false,
5
5
  "repository": {
6
6
  "type": "git",
@@ -1,3 +1,3 @@
1
1
  // AUTO-GENERATED — do not edit. Run pnpm generate:spec-hash to regenerate.
2
- export const SPEC_HASH = 'cb45037e11c4' as const;
3
- export const SPEC_HASH_FULL = 'cb45037e11c4c1be2eb1ef3426333f09fd659b0b60f3c8877949f1309b428ced' as const;
2
+ export const SPEC_HASH = 'f571d3d78c72' as const;
3
+ export const SPEC_HASH_FULL = 'f571d3d78c720d7ad11592b2d490a723c48c539d162c41a6dd77f67bb6ad922f' as const;
@@ -1712,7 +1712,7 @@ export interface paths {
1712
1712
  };
1713
1713
  /**
1714
1714
  * Read one analysis workflow’s generic lifecycle envelope
1715
- * @description The domain-agnostic projection a client polls: identity, registered type, activity-free lifecycle state, start and completion times, the opaque domain progress and result payloads (null until the domain adapter supplies them), a closed failure class on a failed workflow, the frozen typed outcome of the current execution epoch once it settles (null until then), and the capabilities the surface may offer — canStop from the generic layer, canContinue as the domain declares it. Org-scoped: a workflow in another workspace answers 404.
1715
+ * @description The domain-agnostic projection a client polls: identity, registered type, activity-free lifecycle state, start and completion times, the opaque domain progress and result payloads (null until the domain adapter supplies them), a closed failure class on a failed workflow, the frozen typed outcome of the current execution epoch once it settles (null until then), the execution affordances offered now (the contracts offer table over state, the type’s execution support and the frozen outcome, filtered by the viewer’s policy), the workflow it was relaunched from, the current execution epoch’s start and completion times, and the legacy capabilities (canStop, canContinue) kept until their consumers move. Org-scoped: a workflow in another workspace answers 404.
1716
1716
  */
1717
1717
  get: operations["getAnalysisWorkflow"];
1718
1718
  put?: never;
@@ -4928,7 +4928,7 @@ export interface paths {
4928
4928
  };
4929
4929
  /**
4930
4930
  * Get the price list
4931
- * @description The seat price, the hosted surcharge and BYO fee, the active price-book version, and every priced model at its reference rates beside the hosted rates derived from them.
4931
+ * @description The seat price, the hosted surcharge and BYO fee, a price-book version (the active one, or the one named by ?version), and every priced model as its card: provenance, aliases, and each processing mode and prompt tier at its reference rates beside the hosted rates derived from them.
4932
4932
  */
4933
4933
  get: operations["getBillingPriceList"];
4934
4934
  put?: never;
@@ -4939,6 +4939,26 @@ export interface paths {
4939
4939
  patch?: never;
4940
4940
  trace?: never;
4941
4941
  };
4942
+ "/api/billing/price-book-versions": {
4943
+ parameters: {
4944
+ query?: never;
4945
+ header?: never;
4946
+ path?: never;
4947
+ cookie?: never;
4948
+ };
4949
+ /**
4950
+ * List price-book versions
4951
+ * @description Every published price-book version, newest first, with its provenance and the one calls are priced against now marked active.
4952
+ */
4953
+ get: operations["getBillingPriceBookVersions"];
4954
+ put?: never;
4955
+ post?: never;
4956
+ delete?: never;
4957
+ options?: never;
4958
+ head?: never;
4959
+ patch?: never;
4960
+ trace?: never;
4961
+ };
4942
4962
  "/api/source-sync/discovery/runs": {
4943
4963
  parameters: {
4944
4964
  query?: never;
@@ -7740,6 +7760,38 @@ export interface components {
7740
7760
  canStop: boolean;
7741
7761
  canContinue: boolean;
7742
7762
  };
7763
+ executionAffordances: ({
7764
+ /** @constant */
7765
+ id: "workflow.stop";
7766
+ args: {
7767
+ /** Format: uuid */
7768
+ workflowId: string;
7769
+ };
7770
+ } | {
7771
+ /** @constant */
7772
+ id: "workflow.continue";
7773
+ args: {
7774
+ /** Format: uuid */
7775
+ workflowId: string;
7776
+ };
7777
+ } | {
7778
+ /** @constant */
7779
+ id: "workflow.retry";
7780
+ args: {
7781
+ /** Format: uuid */
7782
+ workflowId: string;
7783
+ };
7784
+ } | {
7785
+ /** @constant */
7786
+ id: "workflow.runAgain";
7787
+ args: {
7788
+ /** Format: uuid */
7789
+ workflowId: string;
7790
+ };
7791
+ })[];
7792
+ relaunchedFrom: string | null;
7793
+ epochStartedAt: string | null;
7794
+ epochCompletedAt: string | null;
7743
7795
  };
7744
7796
  StopAnalysisWorkflowResponse: {
7745
7797
  /** @constant */
@@ -10425,6 +10477,16 @@ export interface components {
10425
10477
  }[];
10426
10478
  }[];
10427
10479
  };
10480
+ PriceBookVersionList: {
10481
+ versions: {
10482
+ versionLabel: string;
10483
+ /** Format: date-time */
10484
+ effectiveAt: string;
10485
+ source: string;
10486
+ notes: string | null;
10487
+ active: boolean;
10488
+ }[];
10489
+ };
10428
10490
  SourceSyncDiscoveryRunResponse: {
10429
10491
  /** Format: uuid */
10430
10492
  runId: string;
@@ -20796,7 +20858,9 @@ export interface operations {
20796
20858
  };
20797
20859
  getBillingPriceList: {
20798
20860
  parameters: {
20799
- query?: never;
20861
+ query?: {
20862
+ version?: string;
20863
+ };
20800
20864
  header?: never;
20801
20865
  path?: never;
20802
20866
  cookie?: never;
@@ -20812,6 +20876,13 @@ export interface operations {
20812
20876
  "application/json": components["schemas"]["PriceList"];
20813
20877
  };
20814
20878
  };
20879
+ /** @description No price-book version carries that label */
20880
+ 404: {
20881
+ headers: {
20882
+ [name: string]: unknown;
20883
+ };
20884
+ content?: never;
20885
+ };
20815
20886
  /** @description No price book is loaded */
20816
20887
  503: {
20817
20888
  headers: {
@@ -20821,6 +20892,26 @@ export interface operations {
20821
20892
  };
20822
20893
  };
20823
20894
  };
20895
+ getBillingPriceBookVersions: {
20896
+ parameters: {
20897
+ query?: never;
20898
+ header?: never;
20899
+ path?: never;
20900
+ cookie?: never;
20901
+ };
20902
+ requestBody?: never;
20903
+ responses: {
20904
+ /** @description The price book version history */
20905
+ 200: {
20906
+ headers: {
20907
+ [name: string]: unknown;
20908
+ };
20909
+ content: {
20910
+ "application/json": components["schemas"]["PriceBookVersionList"];
20911
+ };
20912
+ };
20913
+ };
20914
+ };
20824
20915
  startSourceDiscoveryRun: {
20825
20916
  parameters: {
20826
20917
  query?: never;
@@ -17,6 +17,7 @@ export const openApiRoutes = {
17
17
  '/api/analysis-workflows/{id}/settlement': ['POST'],
18
18
  '/api/analysis-workflows/{id}/stop': ['POST'],
19
19
  '/api/auth/consent/grant': ['POST'],
20
+ '/api/billing/price-book-versions': ['GET'],
20
21
  '/api/billing/price-list': ['GET'],
21
22
  '/api/capabilities': ['GET'],
22
23
  '/api/chat/interactive-tasks/submit': ['POST'],