@fourier-labs/harbour-contracts 0.26.0 → 0.27.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.
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "schema": "harbour.contract-release/1.0",
3
- "repositoryVersion": "0.26.0.0",
4
- "publishVersion": "0.26.0",
5
- "publishTag": "v0.26.0",
6
- "schemasDigest": "sha256:510b57798fd632a4fd34ea7701106b03285c491ab1eddbdef7d1ec0f82d7f70c",
7
- "aiFixturesDigest": "sha256:5d68828a1364dc63cafbb3c2d3f5c5f6c232d5333e7668a9c79e7652e5144b42",
8
- "generatedGoDigest": "sha256:02a598e4606a1d24bbfdd881e548128ce9b60c090db7ff98dcee5bfe94b74ad3",
9
- "generatedTypeScriptDigest": "sha256:72865190987cb97215b1db19d46e5c54579f2c01677e5b8e5c735df1d669b74b",
3
+ "repositoryVersion": "0.27.0.0",
4
+ "publishVersion": "0.27.0",
5
+ "publishTag": "v0.27.0",
6
+ "schemasDigest": "sha256:115fb3009d3e71f3ca46f0d74a88f4ff1164a387d2e8b5696bb6815010f1784d",
7
+ "aiFixturesDigest": "sha256:edac31c92e146ca1c40130f2fb5649db82e24b8cd1ac758153b90612052fddb6",
8
+ "generatedGoDigest": "sha256:f458ed606d14e968baeada0ae3d0244a37c4a5c947c549578c970d9f8fdaef87",
9
+ "generatedTypeScriptDigest": "sha256:59516d76fb1d1f007dbc38ccc09751d459a2d0885f3ff13c96b9993153c76cec",
10
10
  "generatedExclusions": {
11
11
  "gen-go/contract_release.go": "contains the generated aggregate digests (self-reference)",
12
12
  "gen-ts/contract-release.ts": "contains the generated aggregate digests (self-reference)"
@@ -21,7 +21,7 @@
21
21
  "schema/ai-gateway-key-lookup.schema.json": "sha256:e994d4782c9bc4f14d3a1c35c9ac1e7a5ec84284cde5b3af7e3e6022130ddbb3",
22
22
  "schema/ai-governance-decision.schema.json": "sha256:fab63e1b869b0e821efe9c27ee63f87fc7023a01d99bc810bad12049b968b788",
23
23
  "schema/ai-metering-policy.schema.json": "sha256:044115938d254d914feac162219d20ee48f741cd7ad32df4613b45f9c862fe8c",
24
- "schema/ai-policy-snapshot.schema.json": "sha256:a866146c953a0577680ff12ec7baff04ddca687783661feaa65f52415b21bce2",
24
+ "schema/ai-policy-snapshot.schema.json": "sha256:8229b855861e029c7792c4c43d42c209055f175af747f437570d42c5008f70d8",
25
25
  "schema/ai-pricing-revision.schema.json": "sha256:5ddb40c23712c0cec37b733678e4bb34811f5db44a233773c21a7dfaec188375",
26
26
  "schema/ai-runtime-binding.schema.json": "sha256:e86cac2f70a474997bdef1577ca15f22982ec0ce866921df3f763c4d7f7fa191",
27
27
  "schema/ai-runtime-contract.schema.json": "sha256:338fbf576d67934592648aff9a9c8ae05a54993e8080c90172b00f346a15db02",
@@ -71,7 +71,7 @@
71
71
  "fixtures/ai/valid-governance-decision.json": "sha256:b9d4904b8b6df5f652acc68ec7c8716f192f80d23177ae82b0cc26081bbb9d25",
72
72
  "fixtures/ai/valid-inventory.json": "sha256:3bb29df5525c3a69f6c13c203fbd08bb3d493ae5416fdd2f99125c74bbc11759",
73
73
  "fixtures/ai/valid-metering-policy.json": "sha256:73d10929f0232a09d31b263c5bf61f8985c9c629e1e78ea5c867dd919ff95c96",
74
- "fixtures/ai/valid-policy-snapshot.json": "sha256:d4662ec2e5aa5249f4ebec6aa37f384d6c1d2bd596adf9a3374dd185b657539c",
74
+ "fixtures/ai/valid-policy-snapshot.json": "sha256:90cdaf9ee93bd0f601eac700d8a885ec63a2814a48fdcff283fce5845750b186",
75
75
  "fixtures/ai/valid-pricing-revision.json": "sha256:b8a89816a332397257fa0c40e5142ad9f05c9c6cbb92c37ae700f9b61c31fbce",
76
76
  "fixtures/ai/valid-runtime-binding.json": "sha256:df971a518b8e680bb5260e801e7a0b03dd05076aeb11258205ec5ec205719f53",
77
77
  "fixtures/ai/valid-runtime-contract.json": "sha256:ee9b3e810bca14e487d55f171597d570a79801d5aba0a8080951d51d7772c233",
@@ -93,7 +93,7 @@
93
93
  "gen-go/doc.go": "sha256:c17bc2d39ed175ce7105c68305f8ae7152f659eb7cd187ecceee7698eb3a65dd",
94
94
  "gen-go/error_category.go": "sha256:a8b64524be3716e62ca6016e56f2332a56fa5e16e42647421e516aa01a7d6806",
95
95
  "gen-go/schema_documents.go": "sha256:10fcbf0966bca7d81fc1456afe8744a94d4ebf7d2863b49e6f4f179cbfb69f7e",
96
- "gen-go/types.go": "sha256:4df0d1c9ba000cad237c3bb37c66ed646b4fc7d0cd41037b49c7264ad4934186",
96
+ "gen-go/types.go": "sha256:766a4967e49cf5347137308b2df09dcc1c74cc271af601012b31f84f89ea6555",
97
97
  "gen-go/version_state.go": "sha256:827f8768359998409b86ea02d9ba1a149981928bae7161e4dc95fe0520ce7410"
98
98
  },
99
99
  "generatedTypeScript": {
@@ -108,7 +108,7 @@
108
108
  "gen-ts/ai-gateway-key-token.ts": "sha256:ff6551ad3332cc665878d7ec93f42ce185c375e637531b2fbc82c697b877e784",
109
109
  "gen-ts/ai-governance-decision.ts": "sha256:cd9f24d6381cffe73f08532cf556eaa9ecb815b23218f7ac504f3bc26e686b2b",
110
110
  "gen-ts/ai-metering-policy.ts": "sha256:dd261d57646a509cd46efaefac4aad58d018c7f7da98326dd8859e4ce951c56a",
111
- "gen-ts/ai-policy-snapshot.ts": "sha256:20e7a5d01d0ff0c00229357db1f15443f3ee876c9d8a6e570b83889846e6cdd9",
111
+ "gen-ts/ai-policy-snapshot.ts": "sha256:05f5cea100e43a5cc6c1e8c7c07edea974ea0e6785730f622e824e40128f1ebc",
112
112
  "gen-ts/ai-pricing-revision.ts": "sha256:48afdea7fb09b9a392147a0a62bcee013157a9d536c07e0782ef28781a3000de",
113
113
  "gen-ts/ai-runtime-binding.ts": "sha256:176c830d400ce44c508f8d249bb3c9724b2d595b78262615487cdafc4790263e",
114
114
  "gen-ts/ai-runtime-contract.ts": "sha256:f34533728dfcf7ce8d2e959b55379650f317a06e29e316caf86e131667891ddc",
@@ -109,7 +109,22 @@ export interface AiPolicyModel {
109
109
  export interface AiPolicyPricing {
110
110
  revision: AiPolicyIdentifier;
111
111
  revisionDigest?: AiPolicyDigest;
112
+ /**
113
+ * Input token rate. Applies to noncached text when separate image/cache rates are present; remains the aggregate input rate for legacy pricing.
114
+ */
112
115
  inputMicroUsdPerMillion: number;
116
+ /**
117
+ * Optional noncached image input token rate; falls back to inputMicroUsdPerMillion when absent.
118
+ */
119
+ inputImageMicroUsdPerMillion?: number;
120
+ /**
121
+ * Optional cached text input token rate; falls back to inputMicroUsdPerMillion when absent.
122
+ */
123
+ cachedInputMicroUsdPerMillion?: number;
124
+ /**
125
+ * Optional cached image input token rate; falls back to inputImageMicroUsdPerMillion, then inputMicroUsdPerMillion, when absent.
126
+ */
127
+ cachedInputImageMicroUsdPerMillion?: number;
113
128
  outputMicroUsdPerMillion: number;
114
129
  mediaMicroUsdPerUnit?: {
115
130
  audio_seconds?: number;
@@ -1,7 +1,7 @@
1
- export declare const ContractRepositoryVersion: "0.26.0.0";
2
- export declare const ContractPublishVersion: "0.26.0";
3
- export declare const ContractPublishTag: "v0.26.0";
4
- export declare const ContractSchemasDigest: "sha256:510b57798fd632a4fd34ea7701106b03285c491ab1eddbdef7d1ec0f82d7f70c";
5
- export declare const ContractAiFixturesDigest: "sha256:5d68828a1364dc63cafbb3c2d3f5c5f6c232d5333e7668a9c79e7652e5144b42";
6
- export declare const ContractGeneratedGoDigest: "sha256:02a598e4606a1d24bbfdd881e548128ce9b60c090db7ff98dcee5bfe94b74ad3";
7
- export declare const ContractGeneratedTypeScriptDigest: "sha256:72865190987cb97215b1db19d46e5c54579f2c01677e5b8e5c735df1d669b74b";
1
+ export declare const ContractRepositoryVersion: "0.27.0.0";
2
+ export declare const ContractPublishVersion: "0.27.0";
3
+ export declare const ContractPublishTag: "v0.27.0";
4
+ export declare const ContractSchemasDigest: "sha256:115fb3009d3e71f3ca46f0d74a88f4ff1164a387d2e8b5696bb6815010f1784d";
5
+ export declare const ContractAiFixturesDigest: "sha256:edac31c92e146ca1c40130f2fb5649db82e24b8cd1ac758153b90612052fddb6";
6
+ export declare const ContractGeneratedGoDigest: "sha256:f458ed606d14e968baeada0ae3d0244a37c4a5c947c549578c970d9f8fdaef87";
7
+ export declare const ContractGeneratedTypeScriptDigest: "sha256:59516d76fb1d1f007dbc38ccc09751d459a2d0885f3ff13c96b9993153c76cec";
@@ -1,9 +1,9 @@
1
1
  /* eslint-disable */
2
2
  // Code generated by tools/gen/gen.mjs from schema/*.json. DO NOT EDIT.
3
- export const ContractRepositoryVersion = "0.26.0.0";
4
- export const ContractPublishVersion = "0.26.0";
5
- export const ContractPublishTag = "v0.26.0";
6
- export const ContractSchemasDigest = "sha256:510b57798fd632a4fd34ea7701106b03285c491ab1eddbdef7d1ec0f82d7f70c";
7
- export const ContractAiFixturesDigest = "sha256:5d68828a1364dc63cafbb3c2d3f5c5f6c232d5333e7668a9c79e7652e5144b42";
8
- export const ContractGeneratedGoDigest = "sha256:02a598e4606a1d24bbfdd881e548128ce9b60c090db7ff98dcee5bfe94b74ad3";
9
- export const ContractGeneratedTypeScriptDigest = "sha256:72865190987cb97215b1db19d46e5c54579f2c01677e5b8e5c735df1d669b74b";
3
+ export const ContractRepositoryVersion = "0.27.0.0";
4
+ export const ContractPublishVersion = "0.27.0";
5
+ export const ContractPublishTag = "v0.27.0";
6
+ export const ContractSchemasDigest = "sha256:115fb3009d3e71f3ca46f0d74a88f4ff1164a387d2e8b5696bb6815010f1784d";
7
+ export const ContractAiFixturesDigest = "sha256:edac31c92e146ca1c40130f2fb5649db82e24b8cd1ac758153b90612052fddb6";
8
+ export const ContractGeneratedGoDigest = "sha256:f458ed606d14e968baeada0ae3d0244a37c4a5c947c549578c970d9f8fdaef87";
9
+ export const ContractGeneratedTypeScriptDigest = "sha256:59516d76fb1d1f007dbc38ccc09751d459a2d0885f3ff13c96b9993153c76cec";
@@ -34,6 +34,9 @@
34
34
  "revision": "openai-gpt-4.1-mini-2026-08-01",
35
35
  "revisionDigest": "sha256:bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb",
36
36
  "inputMicroUsdPerMillion": 400000,
37
+ "inputImageMicroUsdPerMillion": 800000,
38
+ "cachedInputMicroUsdPerMillion": 100000,
39
+ "cachedInputImageMicroUsdPerMillion": 0,
37
40
  "outputMicroUsdPerMillion": 1600000,
38
41
  "mediaMicroUsdPerUnit": {
39
42
  "audio_seconds": 4,
@@ -115,7 +115,22 @@ export interface AiPolicyModel {
115
115
  export interface AiPolicyPricing {
116
116
  revision: AiPolicyIdentifier;
117
117
  revisionDigest?: AiPolicyDigest;
118
+ /**
119
+ * Input token rate. Applies to noncached text when separate image/cache rates are present; remains the aggregate input rate for legacy pricing.
120
+ */
118
121
  inputMicroUsdPerMillion: number;
122
+ /**
123
+ * Optional noncached image input token rate; falls back to inputMicroUsdPerMillion when absent.
124
+ */
125
+ inputImageMicroUsdPerMillion?: number;
126
+ /**
127
+ * Optional cached text input token rate; falls back to inputMicroUsdPerMillion when absent.
128
+ */
129
+ cachedInputMicroUsdPerMillion?: number;
130
+ /**
131
+ * Optional cached image input token rate; falls back to inputImageMicroUsdPerMillion, then inputMicroUsdPerMillion, when absent.
132
+ */
133
+ cachedInputImageMicroUsdPerMillion?: number;
119
134
  outputMicroUsdPerMillion: number;
120
135
  mediaMicroUsdPerUnit?: {
121
136
  audio_seconds?: number;
@@ -1,10 +1,10 @@
1
1
  /* eslint-disable */
2
2
  // Code generated by tools/gen/gen.mjs from schema/*.json. DO NOT EDIT.
3
3
 
4
- export const ContractRepositoryVersion = "0.26.0.0" as const;
5
- export const ContractPublishVersion = "0.26.0" as const;
6
- export const ContractPublishTag = "v0.26.0" as const;
7
- export const ContractSchemasDigest = "sha256:510b57798fd632a4fd34ea7701106b03285c491ab1eddbdef7d1ec0f82d7f70c" as const;
8
- export const ContractAiFixturesDigest = "sha256:5d68828a1364dc63cafbb3c2d3f5c5f6c232d5333e7668a9c79e7652e5144b42" as const;
9
- export const ContractGeneratedGoDigest = "sha256:02a598e4606a1d24bbfdd881e548128ce9b60c090db7ff98dcee5bfe94b74ad3" as const;
10
- export const ContractGeneratedTypeScriptDigest = "sha256:72865190987cb97215b1db19d46e5c54579f2c01677e5b8e5c735df1d669b74b" as const;
4
+ export const ContractRepositoryVersion = "0.27.0.0" as const;
5
+ export const ContractPublishVersion = "0.27.0" as const;
6
+ export const ContractPublishTag = "v0.27.0" as const;
7
+ export const ContractSchemasDigest = "sha256:115fb3009d3e71f3ca46f0d74a88f4ff1164a387d2e8b5696bb6815010f1784d" as const;
8
+ export const ContractAiFixturesDigest = "sha256:edac31c92e146ca1c40130f2fb5649db82e24b8cd1ac758153b90612052fddb6" as const;
9
+ export const ContractGeneratedGoDigest = "sha256:f458ed606d14e968baeada0ae3d0244a37c4a5c947c549578c970d9f8fdaef87" as const;
10
+ export const ContractGeneratedTypeScriptDigest = "sha256:59516d76fb1d1f007dbc38ccc09751d459a2d0885f3ff13c96b9993153c76cec" as const;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fourier-labs/harbour-contracts",
3
- "version": "0.26.0",
3
+ "version": "0.27.0",
4
4
  "description": "Single source of truth for every data shape that crosses a boundary between Harbour components.",
5
5
  "license": "UNLICENSED",
6
6
  "private": false,
@@ -125,7 +125,10 @@
125
125
  "properties": {
126
126
  "revision": { "$ref": "#/definitions/AiPolicyIdentifier" },
127
127
  "revisionDigest": { "$ref": "#/definitions/AiPolicyDigest" },
128
- "inputMicroUsdPerMillion": { "type": "integer", "minimum": 0 },
128
+ "inputMicroUsdPerMillion": { "type": "integer", "minimum": 0, "description": "Input token rate. Applies to noncached text when separate image/cache rates are present; remains the aggregate input rate for legacy pricing." },
129
+ "inputImageMicroUsdPerMillion": { "type": "integer", "minimum": 0, "description": "Optional noncached image input token rate; falls back to inputMicroUsdPerMillion when absent." },
130
+ "cachedInputMicroUsdPerMillion": { "type": "integer", "minimum": 0, "description": "Optional cached text input token rate; falls back to inputMicroUsdPerMillion when absent." },
131
+ "cachedInputImageMicroUsdPerMillion": { "type": "integer", "minimum": 0, "description": "Optional cached image input token rate; falls back to inputImageMicroUsdPerMillion, then inputMicroUsdPerMillion, when absent." },
129
132
  "outputMicroUsdPerMillion": { "type": "integer", "minimum": 0 },
130
133
  "mediaMicroUsdPerUnit": {
131
134
  "type": "object",