@fourier-labs/harbour-contracts 0.17.0 → 0.20.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/contract-release.json +23 -23
- package/dist/gen-ts/ai-callsite-inventory.d.ts +1 -1
- package/dist/gen-ts/ai-policy-snapshot.d.ts +2 -1
- package/dist/gen-ts/ai-pricing-revision.d.ts +1 -1
- package/dist/gen-ts/ai-trace-event.d.ts +2 -2
- package/dist/gen-ts/binding-classification-subject.d.ts +1 -1
- package/dist/gen-ts/contract-release.d.ts +7 -7
- package/dist/gen-ts/contract-release.js +7 -7
- package/dist/gen-ts/deploy-request.d.ts +2 -2
- package/dist/gen-ts/promotion-request.d.ts +2 -2
- package/dist/gen-ts/sanitized-binding-evidence.d.ts +1 -1
- package/dist/resolver/index.d.ts +1 -1
- package/fixtures/ai/valid-policy-snapshot.json +1 -0
- package/gen-ts/ai-callsite-inventory.ts +1 -0
- package/gen-ts/ai-policy-snapshot.ts +2 -1
- package/gen-ts/ai-pricing-revision.ts +1 -1
- package/gen-ts/ai-trace-event.ts +2 -2
- package/gen-ts/binding-classification-subject.ts +2 -1
- package/gen-ts/contract-release.ts +7 -7
- package/gen-ts/deploy-request.ts +2 -2
- package/gen-ts/promotion-request.ts +2 -2
- package/gen-ts/sanitized-binding-evidence.ts +1 -1
- package/package.json +1 -1
- package/schema/ai-callsite-inventory.schema.json +1 -0
- package/schema/ai-policy-snapshot.schema.json +2 -1
- package/schema/ai-pricing-revision.schema.json +1 -1
- package/schema/ai-trace-event.schema.json +2 -2
- package/schema/binding-classification-subject.schema.json +1 -1
- package/schema/sanitized-binding-evidence.schema.json +1 -1
package/contract-release.json
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schema": "harbour.contract-release/1.0",
|
|
3
|
-
"repositoryVersion": "0.
|
|
4
|
-
"publishVersion": "0.
|
|
5
|
-
"publishTag": "v0.
|
|
6
|
-
"schemasDigest": "sha256:
|
|
7
|
-
"aiFixturesDigest": "sha256:
|
|
8
|
-
"generatedGoDigest": "sha256:
|
|
9
|
-
"generatedTypeScriptDigest": "sha256:
|
|
3
|
+
"repositoryVersion": "0.20.0.0",
|
|
4
|
+
"publishVersion": "0.20.0",
|
|
5
|
+
"publishTag": "v0.20.0",
|
|
6
|
+
"schemasDigest": "sha256:29e8b819f2dea08dbd438a11ce86ed393c135d4902960007c78af5002652bc6f",
|
|
7
|
+
"aiFixturesDigest": "sha256:5d68828a1364dc63cafbb3c2d3f5c5f6c232d5333e7668a9c79e7652e5144b42",
|
|
8
|
+
"generatedGoDigest": "sha256:ef74356afbc6a36a543f6f6fe572b77dc3691ce2201f0654644d2a7f29a4ced4",
|
|
9
|
+
"generatedTypeScriptDigest": "sha256:6f3341db46bcfc4d067fe7fcde691331ae9d4fedfc7d40a5bdc58748f858b725",
|
|
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)"
|
|
13
13
|
},
|
|
14
14
|
"schemas": {
|
|
15
15
|
"schema/ai-budget-ledger-event.schema.json": "sha256:92770bc5358e03a3aae6cd261dad02dfcbbb06a6203566da2c6c7a5e63dd671c",
|
|
16
|
-
"schema/ai-callsite-inventory.schema.json": "sha256:
|
|
16
|
+
"schema/ai-callsite-inventory.schema.json": "sha256:dda9251352a1c28e95927f75e5ed4d78cf863806bdac29238de03f79c7229082",
|
|
17
17
|
"schema/ai-classification-stamp.schema.json": "sha256:ad7f01dc8bb9a1cd619fce470227914aa3ef2ad57d34bfeaa0c6ef753aa6781d",
|
|
18
18
|
"schema/ai-composite-policy-digest.schema.json": "sha256:3efccc249327e59f67a37fd954b524ee727a3e28a3c557a46d6ec1f15d69b34e",
|
|
19
19
|
"schema/ai-deployment-gate-decision.schema.json": "sha256:bae1bdf91777b9a78f8da5a29f06b5de7f1e235789cf16b1bb507e85ad0243ff",
|
|
@@ -21,18 +21,18 @@
|
|
|
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:
|
|
25
|
-
"schema/ai-pricing-revision.schema.json": "sha256:
|
|
24
|
+
"schema/ai-policy-snapshot.schema.json": "sha256:bf0d0c834285ac942f4c0cb09a33549a06045a034be18b5ffbaa9120e961422e",
|
|
25
|
+
"schema/ai-pricing-revision.schema.json": "sha256:ff6b2115e98e278fd425164887f41911e3f0345e008ebc988a5f00b93c1c99ee",
|
|
26
26
|
"schema/ai-runtime-binding.schema.json": "sha256:e86cac2f70a474997bdef1577ca15f22982ec0ce866921df3f763c4d7f7fa191",
|
|
27
27
|
"schema/ai-runtime-contract.schema.json": "sha256:a9c8b1329193c1eac7887e9ad6b442d127968fc9de78dcdc18289d8901f091bd",
|
|
28
28
|
"schema/ai-trace-event-v2.schema.json": "sha256:b479199bb6e44ea23a1da53f69943cb8f3886c433914fdb9bf9e9bdbc3dd767d",
|
|
29
|
-
"schema/ai-trace-event.schema.json": "sha256:
|
|
29
|
+
"schema/ai-trace-event.schema.json": "sha256:994f8e350e3f2c3f857a198cdc1ee45d68c6b8f9265af74f17e70957b5e12f48",
|
|
30
30
|
"schema/ai-transform-event.schema.json": "sha256:b845762e653b19afdaf959f7bd1624db490cd10c760daa9aaa61fb83f2a86b6e",
|
|
31
31
|
"schema/ai-transform-result.schema.json": "sha256:244e380a36957ab2dcb526ea22aaecb56b53664ce1fda6934d0021c084c99133",
|
|
32
32
|
"schema/ai-verification-evidence.schema.json": "sha256:bdbc762df256d2a8dd0bdda60d4d13915ce40034cd756af9515871d145f10ad9",
|
|
33
33
|
"schema/api-error-response.schema.json": "sha256:3d43d5bdf0b59c944e20509d832e6776c3ecdba4d6c245a9118bbe52062a8304",
|
|
34
34
|
"schema/artifact-contract.schema.json": "sha256:f4d14d71ed754c9c8c2b03babd4666ace7d94dd4851ee548227bf1235404a814",
|
|
35
|
-
"schema/binding-classification-subject.schema.json": "sha256:
|
|
35
|
+
"schema/binding-classification-subject.schema.json": "sha256:fd038b42c6d85c50f7fced159690f820f59aee7a1e96efd8abd0250653cabe46",
|
|
36
36
|
"schema/data-dependency.schema.json": "sha256:89ba8481ccabc935e7dab5d13871c985839a751ad1586710d8382a15e1f3340c",
|
|
37
37
|
"schema/data-grant.schema.json": "sha256:e640553831ecc1c01cc9a37fe388b84d0ffeaa0d0050e63712b48f65fa437c8a",
|
|
38
38
|
"schema/data-source.schema.json": "sha256:5a809171cc97f5778ca37db300d454098ce1c2d9071d2380550707b049899a75",
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
"schema/kvs-routing-entry.schema.json": "sha256:b75f3a5dfa93a428b2764e03222b66b6ef2bed980f8bac8ffac54afdf3526bc5",
|
|
50
50
|
"schema/promotion-request.schema.json": "sha256:560460b57fc639d248fa657a2a1e3d88d27ab9139faf17ee58633b671f8b5072",
|
|
51
51
|
"schema/promotion-response.schema.json": "sha256:4129712d2e29d6ef21d93d4bd0bacfd60ada3f2ee0ade852824e64346b817634",
|
|
52
|
-
"schema/sanitized-binding-evidence.schema.json": "sha256:
|
|
52
|
+
"schema/sanitized-binding-evidence.schema.json": "sha256:e05bb19a3be0463af038501a31c65981f58bc6aa86b93a487cdb119a05ce6ac0",
|
|
53
53
|
"schema/secret-reference.schema.json": "sha256:966f7a6d2575b46a4b54804d06dc05c6229ebbcbd9200fe6a6c8d3b4ffb90f9f",
|
|
54
54
|
"schema/transform-report.schema.json": "sha256:10ba5faa915b3a9327909b0444a163f8e31f51b9f1b3d049ea341e8cedc521e1",
|
|
55
55
|
"schema/version-state.schema.json": "sha256:e7c4b2e7b615ebb07f36d0df22ded51b2c9688ef9e9bfe79de1d5cd94de9ae40"
|
|
@@ -69,7 +69,7 @@
|
|
|
69
69
|
"fixtures/ai/valid-governance-decision.json": "sha256:b9d4904b8b6df5f652acc68ec7c8716f192f80d23177ae82b0cc26081bbb9d25",
|
|
70
70
|
"fixtures/ai/valid-inventory.json": "sha256:3bb29df5525c3a69f6c13c203fbd08bb3d493ae5416fdd2f99125c74bbc11759",
|
|
71
71
|
"fixtures/ai/valid-metering-policy.json": "sha256:73d10929f0232a09d31b263c5bf61f8985c9c629e1e78ea5c867dd919ff95c96",
|
|
72
|
-
"fixtures/ai/valid-policy-snapshot.json": "sha256:
|
|
72
|
+
"fixtures/ai/valid-policy-snapshot.json": "sha256:d4662ec2e5aa5249f4ebec6aa37f384d6c1d2bd596adf9a3374dd185b657539c",
|
|
73
73
|
"fixtures/ai/valid-pricing-revision.json": "sha256:b8a89816a332397257fa0c40e5142ad9f05c9c6cbb92c37ae700f9b61c31fbce",
|
|
74
74
|
"fixtures/ai/valid-runtime-binding.json": "sha256:df971a518b8e680bb5260e801e7a0b03dd05076aeb11258205ec5ec205719f53",
|
|
75
75
|
"fixtures/ai/valid-runtime-contract.json": "sha256:ee9b3e810bca14e487d55f171597d570a79801d5aba0a8080951d51d7772c233",
|
|
@@ -91,12 +91,12 @@
|
|
|
91
91
|
"gen-go/doc.go": "sha256:c17bc2d39ed175ce7105c68305f8ae7152f659eb7cd187ecceee7698eb3a65dd",
|
|
92
92
|
"gen-go/error_category.go": "sha256:e36745796e32f753cf153a76c5f77c4bdf37a6a228e6607abcf95cac6f4a934b",
|
|
93
93
|
"gen-go/schema_documents.go": "sha256:c0399930c719b93d850847b257186f08d69a527f3ac1286ed0c49b66327b315a",
|
|
94
|
-
"gen-go/types.go": "sha256:
|
|
94
|
+
"gen-go/types.go": "sha256:548bfbd495c67cfa041efc5554fad6a5b88afa7db7f4636787364fdebe60d321",
|
|
95
95
|
"gen-go/version_state.go": "sha256:827f8768359998409b86ea02d9ba1a149981928bae7161e4dc95fe0520ce7410"
|
|
96
96
|
},
|
|
97
97
|
"generatedTypeScript": {
|
|
98
98
|
"gen-ts/ai-budget-ledger-event.ts": "sha256:64448d98a394e6eb103927cd35ce8a33e30176c0d5ee5afcdd8444f8aa051809",
|
|
99
|
-
"gen-ts/ai-callsite-inventory.ts": "sha256:
|
|
99
|
+
"gen-ts/ai-callsite-inventory.ts": "sha256:350a1aca0e60f678a780d02c21d5a8dad13e1442662bb9f66aceb6b76a24f87e",
|
|
100
100
|
"gen-ts/ai-classification-stamp.ts": "sha256:dce78efba03df86a0986a16fd54c52066d322ff515d2463dbc45cafad82ecb44",
|
|
101
101
|
"gen-ts/ai-composite-policy-digest-helper.ts": "sha256:d6c51d0c35599ee4f81d605b71773f4fff41a0bb46499ff0c6185072fedf53ce",
|
|
102
102
|
"gen-ts/ai-composite-policy-digest.ts": "sha256:26b72227ca511d744c0f27fa0c85eb1ba6451ee380e38371e58a810898cfae96",
|
|
@@ -106,23 +106,23 @@
|
|
|
106
106
|
"gen-ts/ai-gateway-key-token.ts": "sha256:ff6551ad3332cc665878d7ec93f42ce185c375e637531b2fbc82c697b877e784",
|
|
107
107
|
"gen-ts/ai-governance-decision.ts": "sha256:cd9f24d6381cffe73f08532cf556eaa9ecb815b23218f7ac504f3bc26e686b2b",
|
|
108
108
|
"gen-ts/ai-metering-policy.ts": "sha256:dd261d57646a509cd46efaefac4aad58d018c7f7da98326dd8859e4ce951c56a",
|
|
109
|
-
"gen-ts/ai-policy-snapshot.ts": "sha256:
|
|
110
|
-
"gen-ts/ai-pricing-revision.ts": "sha256:
|
|
109
|
+
"gen-ts/ai-policy-snapshot.ts": "sha256:8e9dcc01ba3121f0c834d7d953b4115503f312d21bd1fdde6685322a1e7e9c8e",
|
|
110
|
+
"gen-ts/ai-pricing-revision.ts": "sha256:5a6743db7a782cc87e2087aaa245e8083bc54f5a6275d280b65214328aaa8ac6",
|
|
111
111
|
"gen-ts/ai-runtime-binding.ts": "sha256:176c830d400ce44c508f8d249bb3c9724b2d595b78262615487cdafc4790263e",
|
|
112
112
|
"gen-ts/ai-runtime-contract.ts": "sha256:8c4b9c071dfe33df30d9861953d9ee88ea509a7fc6eadc1c804f3cdcc5614d18",
|
|
113
113
|
"gen-ts/ai-trace-event-v2.ts": "sha256:8c994355f290864da1cf42850c3eceb0e4a1567b45ed989de865213430d3ce0e",
|
|
114
|
-
"gen-ts/ai-trace-event.ts": "sha256:
|
|
114
|
+
"gen-ts/ai-trace-event.ts": "sha256:0711e3eb45510013e9a947209c3e1a2ca969124ad4df65a86b93853e1b9cbae2",
|
|
115
115
|
"gen-ts/ai-transform-event.ts": "sha256:c8b520e01ce12b0e3a5ebe03a3ca63cc83368f26e1eef933de732c4fc1c504f9",
|
|
116
116
|
"gen-ts/ai-transform-result.ts": "sha256:208c66b2aeb425c0cbcc18b7191f6e8989443f2b2c1690648e0e06cc1448ce25",
|
|
117
117
|
"gen-ts/ai-verification-evidence.ts": "sha256:979439d77f8b47631d1eb3b6c3c54ea6fec41089d2a51dc815fd370b1c4917fc",
|
|
118
118
|
"gen-ts/api-error-response.ts": "sha256:0fd73be282e7a5d72d6c343a4e64d09c232556b16161167f0cffd6278ed7e3d3",
|
|
119
119
|
"gen-ts/artifact-contract.ts": "sha256:2c1b3986e3561553c53db1a6f406924e7bb22205dce969d8aecaa238707a2072",
|
|
120
120
|
"gen-ts/binding-classification-digest-helper.ts": "sha256:40fc7d85b4c3f3ffc5caf7d7950c62d013c83ee42058c7453b2100d95817f167",
|
|
121
|
-
"gen-ts/binding-classification-subject.ts": "sha256:
|
|
121
|
+
"gen-ts/binding-classification-subject.ts": "sha256:4c734cc3152384800178fa29cb7f0f538dcfdb51d9d00238df773ab7ac216811",
|
|
122
122
|
"gen-ts/data-dependency.ts": "sha256:0572c31d7ae9088eccc104eee1a205bf176d1d6dacfaf0f290d666024e284966",
|
|
123
123
|
"gen-ts/data-grant.ts": "sha256:2358579d8aa1e57b01a6f2b0eacce5531e7f21ef226404c9809925365e0d6155",
|
|
124
124
|
"gen-ts/data-source.ts": "sha256:71be83b050468c2ea8c5830d28f1837c2b5929d23b4fdf6661bc5bfe8999904c",
|
|
125
|
-
"gen-ts/deploy-request.ts": "sha256:
|
|
125
|
+
"gen-ts/deploy-request.ts": "sha256:fce5ee4c71687d785723c3b7bb09ffb9b44f7139a639214f70af911fb77e1926",
|
|
126
126
|
"gen-ts/deploy-response.ts": "sha256:364d9f1acf32e491498237cdd3f402d5f8e102f208db7748034f4ec68c6a6137",
|
|
127
127
|
"gen-ts/deployment-environment.ts": "sha256:bbd6eec3a1631b13a8de6e6b95081696f7be01d0bd2bf1b7a9e3a1db809a727c",
|
|
128
128
|
"gen-ts/deployment-source.ts": "sha256:8ccb55aaa7260eb6d19a00987d6a20a4b514e343564da13f27cd7fee8013500a",
|
|
@@ -135,10 +135,10 @@
|
|
|
135
135
|
"gen-ts/error-envelope.ts": "sha256:4457309be794f9d4fc0cf62530cc2d442c007bac9ae84aff66df099cc9e40310",
|
|
136
136
|
"gen-ts/index.ts": "sha256:cf2c63faf3af73a0b4fb7bac7f51f18b4c72d854a78aef8e4c7625dfc96a27f7",
|
|
137
137
|
"gen-ts/kvs-routing-entry.ts": "sha256:d92e85ee9f257d77850d1d3aac9438e2055f38084ff84a48fcedae239d47d4ca",
|
|
138
|
-
"gen-ts/promotion-request.ts": "sha256:
|
|
138
|
+
"gen-ts/promotion-request.ts": "sha256:344081ff99add085787be73449eafa3c99e2740a985d8c0dd2cf69b38a35d501",
|
|
139
139
|
"gen-ts/promotion-response.ts": "sha256:f1c9cafac96faeb02a443a31786f67714e818f38d90108e7af41958396524d6f",
|
|
140
140
|
"gen-ts/sanitized-binding-digest-helper.ts": "sha256:c47d7fdc20500e2e72c23fe39ecdd610fc397c47fcba51335ebec3c380fe6872",
|
|
141
|
-
"gen-ts/sanitized-binding-evidence.ts": "sha256:
|
|
141
|
+
"gen-ts/sanitized-binding-evidence.ts": "sha256:8e796ee8be8a52470e7d4fc0276838edb6bff3a1ded41ad24859e68dd5c0e6f1",
|
|
142
142
|
"gen-ts/secret-reference.ts": "sha256:a8b65de72705b6f51f57cd8ca58881483108005b1fa4d19106c3e9cf1fa877e7",
|
|
143
143
|
"gen-ts/transform-report.ts": "sha256:154617c0bc4b8e36d7edd07640454c89fad8ec34b02aa85c904c9acd9855a6c3",
|
|
144
144
|
"gen-ts/version-state-machine.ts": "sha256:4371bc7e2bde86b0447f5242104c576cc160dfd7dae1885acbfb63540f230bdd",
|
|
@@ -29,7 +29,7 @@ export interface AiInventoryCallsite {
|
|
|
29
29
|
sourceFileSha256: AiInventoryDigest;
|
|
30
30
|
line: number;
|
|
31
31
|
language: 'javascript' | 'typescript' | 'python' | 'go' | 'unknown';
|
|
32
|
-
sdk: 'openai' | 'openai-compatible' | 'anthropic' | 'google-genai' | 'mistral' | 'bedrock' | 'cohere' | 'ollama' | 'legacy-gemini' | 'direct-provider-rest' | 'unknown';
|
|
32
|
+
sdk: 'openai' | 'openai-compatible' | 'anthropic' | 'google-genai' | 'mistral' | 'bedrock' | 'cohere' | 'ollama' | 'legacy-gemini' | 'direct-provider-rest' | 'deepgram' | 'unknown';
|
|
33
33
|
method: string;
|
|
34
34
|
requestedModel?: string;
|
|
35
35
|
strategy: 'deployment_injection' | 'deterministic_adapter' | 'unsupported';
|
|
@@ -89,7 +89,7 @@ export interface AiPolicyClassificationMinimum {
|
|
|
89
89
|
}
|
|
90
90
|
export interface AiPolicyProvider {
|
|
91
91
|
id: AiPolicyIdentifier;
|
|
92
|
-
provider: 'openai' | 'anthropic' | 'gemini' | 'openrouter' | 'deepseek';
|
|
92
|
+
provider: 'openai' | 'anthropic' | 'gemini' | 'openrouter' | 'deepseek' | 'elevenlabs' | 'deepgram';
|
|
93
93
|
baseUrl?: string;
|
|
94
94
|
credentialSecretRef: string;
|
|
95
95
|
enabled: boolean;
|
|
@@ -113,6 +113,7 @@ export interface AiPolicyPricing {
|
|
|
113
113
|
outputMicroUsdPerMillion: number;
|
|
114
114
|
mediaMicroUsdPerUnit?: {
|
|
115
115
|
audio_seconds?: number;
|
|
116
|
+
audio_characters?: number;
|
|
116
117
|
image_count?: number;
|
|
117
118
|
video_seconds?: number;
|
|
118
119
|
};
|
|
@@ -6,7 +6,7 @@ export type AiPricingDigest = string;
|
|
|
6
6
|
export interface AiPricingRevision {
|
|
7
7
|
schema: 'harbour.ai-pricing-revision/2.0';
|
|
8
8
|
revisionId: AiPricingIdentifier;
|
|
9
|
-
provider: 'openai' | 'anthropic' | 'gemini' | 'openrouter' | 'deepseek';
|
|
9
|
+
provider: 'openai' | 'anthropic' | 'gemini' | 'openrouter' | 'deepseek' | 'elevenlabs' | 'deepgram';
|
|
10
10
|
providerModel: string;
|
|
11
11
|
region?: AiPricingIdentifier;
|
|
12
12
|
currency: 'USD';
|
|
@@ -14,7 +14,7 @@ export type AiTraceEvent = {
|
|
|
14
14
|
routeRevision?: string;
|
|
15
15
|
requestedModel?: string;
|
|
16
16
|
governedModelAlias?: string;
|
|
17
|
-
provider?: 'openai' | 'anthropic' | 'gemini' | 'openrouter' | 'deepseek';
|
|
17
|
+
provider?: 'openai' | 'anthropic' | 'gemini' | 'openrouter' | 'deepseek' | 'elevenlabs' | 'deepgram';
|
|
18
18
|
providerModel?: string;
|
|
19
19
|
outcome: 'succeeded' | 'blocked' | 'failed' | 'cancelled';
|
|
20
20
|
usage?: AiTraceUsage;
|
|
@@ -42,7 +42,7 @@ export type AiTraceIdentifier = string;
|
|
|
42
42
|
export type AiTraceDigest = string;
|
|
43
43
|
export type AiTraceAttempt = {
|
|
44
44
|
attempt: number;
|
|
45
|
-
provider: 'openai' | 'anthropic' | 'gemini' | 'openrouter' | 'deepseek';
|
|
45
|
+
provider: 'openai' | 'anthropic' | 'gemini' | 'openrouter' | 'deepseek' | 'elevenlabs' | 'deepgram';
|
|
46
46
|
providerModel: string;
|
|
47
47
|
priceRevision: AiTraceIdentifier;
|
|
48
48
|
outcome: 'succeeded' | 'failed' | 'timed_out' | 'cancelled';
|
|
@@ -15,7 +15,7 @@ export type BindingClassificationEntry = {
|
|
|
15
15
|
category?: BindingClassificationCredentialCategory;
|
|
16
16
|
requestedAiMappingId?: BindingClassificationIdentifier;
|
|
17
17
|
};
|
|
18
|
-
export type BindingClassificationProviderId = 'openai' | 'anthropic' | 'gemini' | 'openrouter' | 'deepseek';
|
|
18
|
+
export type BindingClassificationProviderId = 'openai' | 'anthropic' | 'gemini' | 'openrouter' | 'deepseek' | 'deepgram';
|
|
19
19
|
/**
|
|
20
20
|
* Closed current credential category. Add a reviewed contract version before supporting another credential mechanism.
|
|
21
21
|
*/
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export declare const ContractRepositoryVersion: "0.
|
|
2
|
-
export declare const ContractPublishVersion: "0.
|
|
3
|
-
export declare const ContractPublishTag: "v0.
|
|
4
|
-
export declare const ContractSchemasDigest: "sha256:
|
|
5
|
-
export declare const ContractAiFixturesDigest: "sha256:
|
|
6
|
-
export declare const ContractGeneratedGoDigest: "sha256:
|
|
7
|
-
export declare const ContractGeneratedTypeScriptDigest: "sha256:
|
|
1
|
+
export declare const ContractRepositoryVersion: "0.20.0.0";
|
|
2
|
+
export declare const ContractPublishVersion: "0.20.0";
|
|
3
|
+
export declare const ContractPublishTag: "v0.20.0";
|
|
4
|
+
export declare const ContractSchemasDigest: "sha256:29e8b819f2dea08dbd438a11ce86ed393c135d4902960007c78af5002652bc6f";
|
|
5
|
+
export declare const ContractAiFixturesDigest: "sha256:5d68828a1364dc63cafbb3c2d3f5c5f6c232d5333e7668a9c79e7652e5144b42";
|
|
6
|
+
export declare const ContractGeneratedGoDigest: "sha256:ef74356afbc6a36a543f6f6fe572b77dc3691ce2201f0654644d2a7f29a4ced4";
|
|
7
|
+
export declare const ContractGeneratedTypeScriptDigest: "sha256:6f3341db46bcfc4d067fe7fcde691331ae9d4fedfc7d40a5bdc58748f858b725";
|
|
@@ -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.
|
|
4
|
-
export const ContractPublishVersion = "0.
|
|
5
|
-
export const ContractPublishTag = "v0.
|
|
6
|
-
export const ContractSchemasDigest = "sha256:
|
|
7
|
-
export const ContractAiFixturesDigest = "sha256:
|
|
8
|
-
export const ContractGeneratedGoDigest = "sha256:
|
|
9
|
-
export const ContractGeneratedTypeScriptDigest = "sha256:
|
|
3
|
+
export const ContractRepositoryVersion = "0.20.0.0";
|
|
4
|
+
export const ContractPublishVersion = "0.20.0";
|
|
5
|
+
export const ContractPublishTag = "v0.20.0";
|
|
6
|
+
export const ContractSchemasDigest = "sha256:29e8b819f2dea08dbd438a11ce86ed393c135d4902960007c78af5002652bc6f";
|
|
7
|
+
export const ContractAiFixturesDigest = "sha256:5d68828a1364dc63cafbb3c2d3f5c5f6c232d5333e7668a9c79e7652e5144b42";
|
|
8
|
+
export const ContractGeneratedGoDigest = "sha256:ef74356afbc6a36a543f6f6fe572b77dc3691ce2201f0654644d2a7f29a4ced4";
|
|
9
|
+
export const ContractGeneratedTypeScriptDigest = "sha256:6f3341db46bcfc4d067fe7fcde691331ae9d4fedfc7d40a5bdc58748f858b725";
|
|
@@ -21,7 +21,7 @@ export type DeployRequestEnvironmentBinding1 = {
|
|
|
21
21
|
type BindingClassificationEntry = {
|
|
22
22
|
kind: 'configuration' | 'secret' | 'provider_credential';
|
|
23
23
|
confidence: 'high' | 'low';
|
|
24
|
-
providerId?: 'openai' | 'anthropic' | 'gemini' | 'openrouter' | 'deepseek';
|
|
24
|
+
providerId?: 'openai' | 'anthropic' | 'gemini' | 'openrouter' | 'deepseek' | 'deepgram';
|
|
25
25
|
/**
|
|
26
26
|
* Closed current credential category. Add a reviewed contract version before supporting another credential mechanism.
|
|
27
27
|
*/
|
|
@@ -109,6 +109,6 @@ interface BindingClassificationSubject {
|
|
|
109
109
|
}
|
|
110
110
|
interface BindingClassificationAiMapping {
|
|
111
111
|
mappingVersion: string;
|
|
112
|
-
providerId: 'openai' | 'anthropic' | 'gemini' | 'openrouter' | 'deepseek';
|
|
112
|
+
providerId: 'openai' | 'anthropic' | 'gemini' | 'openrouter' | 'deepseek' | 'deepgram';
|
|
113
113
|
}
|
|
114
114
|
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
type BindingClassificationEntry = {
|
|
2
2
|
kind: 'configuration' | 'secret' | 'provider_credential';
|
|
3
3
|
confidence: 'high' | 'low';
|
|
4
|
-
providerId?: 'openai' | 'anthropic' | 'gemini' | 'openrouter' | 'deepseek';
|
|
4
|
+
providerId?: 'openai' | 'anthropic' | 'gemini' | 'openrouter' | 'deepseek' | 'deepgram';
|
|
5
5
|
/**
|
|
6
6
|
* Closed current credential category. Add a reviewed contract version before supporting another credential mechanism.
|
|
7
7
|
*/
|
|
@@ -87,6 +87,6 @@ interface BindingClassificationSubject {
|
|
|
87
87
|
}
|
|
88
88
|
interface BindingClassificationAiMapping {
|
|
89
89
|
mappingVersion: string;
|
|
90
|
-
providerId: 'openai' | 'anthropic' | 'gemini' | 'openrouter' | 'deepseek';
|
|
90
|
+
providerId: 'openai' | 'anthropic' | 'gemini' | 'openrouter' | 'deepseek' | 'deepgram';
|
|
91
91
|
}
|
|
92
92
|
export {};
|
|
@@ -13,7 +13,7 @@ export type SanitizedRuntimeBinding = {
|
|
|
13
13
|
*/
|
|
14
14
|
secretRef?: string;
|
|
15
15
|
};
|
|
16
|
-
export type SanitizedBindingProviderId = 'openai' | 'anthropic' | 'gemini' | 'openrouter' | 'deepseek';
|
|
16
|
+
export type SanitizedBindingProviderId = 'openai' | 'anthropic' | 'gemini' | 'openrouter' | 'deepseek' | 'deepgram';
|
|
17
17
|
/**
|
|
18
18
|
* Immutable DCP allocation receipt and sanitized runtime-binding set for one exact allocated version and normalized source revision. DCP persists this evidence atomically with version admission before publish or provisioning. classificationDigest chains to the caller's pre-allocation BindingClassificationSubject; bindings contain only approved configuration, app secrets or approved data-source credential references and never an AI-mapping-owned provider credential.
|
|
19
19
|
*/
|
package/dist/resolver/index.d.ts
CHANGED
|
@@ -42,7 +42,7 @@ export type { AiPolicySnapshot, AiPolicyGuardrailRule, AiPolicyGuardrailParamete
|
|
|
42
42
|
* revision rather than guessed at. Bump on ANY change to the merge rules, the
|
|
43
43
|
* platform baseline, or the classification minimums. */
|
|
44
44
|
export declare const RESOLVER_VERSION = "1.0.0";
|
|
45
|
-
export type AiProviderType = "openai" | "anthropic" | "gemini" | "openrouter" | "deepseek";
|
|
45
|
+
export type AiProviderType = "openai" | "anthropic" | "gemini" | "openrouter" | "deepseek" | "elevenlabs" | "deepgram";
|
|
46
46
|
export type AiCaptureMode = "OFF" | "BEST_EFFORT" | "REQUIRED";
|
|
47
47
|
export type AiDataClassification = "Green" | "Yellow" | "Orange" | "Red";
|
|
48
48
|
export type AiGuardrailAction = "ALLOW" | "OBSERVE" | "REDACT" | "BLOCK";
|
|
@@ -93,7 +93,7 @@ export interface AiPolicyClassificationMinimum {
|
|
|
93
93
|
}
|
|
94
94
|
export interface AiPolicyProvider {
|
|
95
95
|
id: AiPolicyIdentifier;
|
|
96
|
-
provider: 'openai' | 'anthropic' | 'gemini' | 'openrouter' | 'deepseek';
|
|
96
|
+
provider: 'openai' | 'anthropic' | 'gemini' | 'openrouter' | 'deepseek' | 'elevenlabs' | 'deepgram';
|
|
97
97
|
baseUrl?: string;
|
|
98
98
|
credentialSecretRef: string;
|
|
99
99
|
enabled: boolean;
|
|
@@ -119,6 +119,7 @@ export interface AiPolicyPricing {
|
|
|
119
119
|
outputMicroUsdPerMillion: number;
|
|
120
120
|
mediaMicroUsdPerUnit?: {
|
|
121
121
|
audio_seconds?: number;
|
|
122
|
+
audio_characters?: number;
|
|
122
123
|
image_count?: number;
|
|
123
124
|
video_seconds?: number;
|
|
124
125
|
};
|
|
@@ -10,7 +10,7 @@ export type AiPricingDigest = string;
|
|
|
10
10
|
export interface AiPricingRevision {
|
|
11
11
|
schema: 'harbour.ai-pricing-revision/2.0';
|
|
12
12
|
revisionId: AiPricingIdentifier;
|
|
13
|
-
provider: 'openai' | 'anthropic' | 'gemini' | 'openrouter' | 'deepseek';
|
|
13
|
+
provider: 'openai' | 'anthropic' | 'gemini' | 'openrouter' | 'deepseek' | 'elevenlabs' | 'deepgram';
|
|
14
14
|
providerModel: string;
|
|
15
15
|
region?: AiPricingIdentifier;
|
|
16
16
|
currency: 'USD';
|
package/gen-ts/ai-trace-event.ts
CHANGED
|
@@ -17,7 +17,7 @@ export type AiTraceEvent = {
|
|
|
17
17
|
routeRevision?: string;
|
|
18
18
|
requestedModel?: string;
|
|
19
19
|
governedModelAlias?: string;
|
|
20
|
-
provider?: 'openai' | 'anthropic' | 'gemini' | 'openrouter' | 'deepseek';
|
|
20
|
+
provider?: 'openai' | 'anthropic' | 'gemini' | 'openrouter' | 'deepseek' | 'elevenlabs' | 'deepgram';
|
|
21
21
|
providerModel?: string;
|
|
22
22
|
outcome: 'succeeded' | 'blocked' | 'failed' | 'cancelled';
|
|
23
23
|
usage?: AiTraceUsage;
|
|
@@ -45,7 +45,7 @@ export type AiTraceIdentifier = string;
|
|
|
45
45
|
export type AiTraceDigest = string;
|
|
46
46
|
export type AiTraceAttempt = {
|
|
47
47
|
attempt: number;
|
|
48
|
-
provider: 'openai' | 'anthropic' | 'gemini' | 'openrouter' | 'deepseek';
|
|
48
|
+
provider: 'openai' | 'anthropic' | 'gemini' | 'openrouter' | 'deepseek' | 'elevenlabs' | 'deepgram';
|
|
49
49
|
providerModel: string;
|
|
50
50
|
priceRevision: AiTraceIdentifier;
|
|
51
51
|
outcome: 'succeeded' | 'failed' | 'timed_out' | 'cancelled';
|
|
@@ -18,7 +18,8 @@ export type BindingClassificationEntry = {
|
|
|
18
18
|
category?: BindingClassificationCredentialCategory;
|
|
19
19
|
requestedAiMappingId?: BindingClassificationIdentifier;
|
|
20
20
|
};
|
|
21
|
-
export type BindingClassificationProviderId =
|
|
21
|
+
export type BindingClassificationProviderId =
|
|
22
|
+
'openai' | 'anthropic' | 'gemini' | 'openrouter' | 'deepseek' | 'deepgram';
|
|
22
23
|
/**
|
|
23
24
|
* Closed current credential category. Add a reviewed contract version before supporting another credential mechanism.
|
|
24
25
|
*/
|
|
@@ -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.
|
|
5
|
-
export const ContractPublishVersion = "0.
|
|
6
|
-
export const ContractPublishTag = "v0.
|
|
7
|
-
export const ContractSchemasDigest = "sha256:
|
|
8
|
-
export const ContractAiFixturesDigest = "sha256:
|
|
9
|
-
export const ContractGeneratedGoDigest = "sha256:
|
|
10
|
-
export const ContractGeneratedTypeScriptDigest = "sha256:
|
|
4
|
+
export const ContractRepositoryVersion = "0.20.0.0" as const;
|
|
5
|
+
export const ContractPublishVersion = "0.20.0" as const;
|
|
6
|
+
export const ContractPublishTag = "v0.20.0" as const;
|
|
7
|
+
export const ContractSchemasDigest = "sha256:29e8b819f2dea08dbd438a11ce86ed393c135d4902960007c78af5002652bc6f" as const;
|
|
8
|
+
export const ContractAiFixturesDigest = "sha256:5d68828a1364dc63cafbb3c2d3f5c5f6c232d5333e7668a9c79e7652e5144b42" as const;
|
|
9
|
+
export const ContractGeneratedGoDigest = "sha256:ef74356afbc6a36a543f6f6fe572b77dc3691ce2201f0654644d2a7f29a4ced4" as const;
|
|
10
|
+
export const ContractGeneratedTypeScriptDigest = "sha256:6f3341db46bcfc4d067fe7fcde691331ae9d4fedfc7d40a5bdc58748f858b725" as const;
|
package/gen-ts/deploy-request.ts
CHANGED
|
@@ -24,7 +24,7 @@ export type DeployRequestEnvironmentBinding1 = {
|
|
|
24
24
|
type BindingClassificationEntry = {
|
|
25
25
|
kind: 'configuration' | 'secret' | 'provider_credential';
|
|
26
26
|
confidence: 'high' | 'low';
|
|
27
|
-
providerId?: 'openai' | 'anthropic' | 'gemini' | 'openrouter' | 'deepseek';
|
|
27
|
+
providerId?: 'openai' | 'anthropic' | 'gemini' | 'openrouter' | 'deepseek' | 'deepgram';
|
|
28
28
|
/**
|
|
29
29
|
* Closed current credential category. Add a reviewed contract version before supporting another credential mechanism.
|
|
30
30
|
*/
|
|
@@ -113,5 +113,5 @@ interface BindingClassificationSubject {
|
|
|
113
113
|
}
|
|
114
114
|
interface BindingClassificationAiMapping {
|
|
115
115
|
mappingVersion: string;
|
|
116
|
-
providerId: 'openai' | 'anthropic' | 'gemini' | 'openrouter' | 'deepseek';
|
|
116
|
+
providerId: 'openai' | 'anthropic' | 'gemini' | 'openrouter' | 'deepseek' | 'deepgram';
|
|
117
117
|
}
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
type BindingClassificationEntry = {
|
|
5
5
|
kind: 'configuration' | 'secret' | 'provider_credential';
|
|
6
6
|
confidence: 'high' | 'low';
|
|
7
|
-
providerId?: 'openai' | 'anthropic' | 'gemini' | 'openrouter' | 'deepseek';
|
|
7
|
+
providerId?: 'openai' | 'anthropic' | 'gemini' | 'openrouter' | 'deepseek' | 'deepgram';
|
|
8
8
|
/**
|
|
9
9
|
* Closed current credential category. Add a reviewed contract version before supporting another credential mechanism.
|
|
10
10
|
*/
|
|
@@ -91,5 +91,5 @@ interface BindingClassificationSubject {
|
|
|
91
91
|
}
|
|
92
92
|
interface BindingClassificationAiMapping {
|
|
93
93
|
mappingVersion: string;
|
|
94
|
-
providerId: 'openai' | 'anthropic' | 'gemini' | 'openrouter' | 'deepseek';
|
|
94
|
+
providerId: 'openai' | 'anthropic' | 'gemini' | 'openrouter' | 'deepseek' | 'deepgram';
|
|
95
95
|
}
|
|
@@ -16,7 +16,7 @@ export type SanitizedRuntimeBinding = {
|
|
|
16
16
|
*/
|
|
17
17
|
secretRef?: string;
|
|
18
18
|
};
|
|
19
|
-
export type SanitizedBindingProviderId = 'openai' | 'anthropic' | 'gemini' | 'openrouter' | 'deepseek';
|
|
19
|
+
export type SanitizedBindingProviderId = 'openai' | 'anthropic' | 'gemini' | 'openrouter' | 'deepseek' | 'deepgram';
|
|
20
20
|
|
|
21
21
|
/**
|
|
22
22
|
* Immutable DCP allocation receipt and sanitized runtime-binding set for one exact allocated version and normalized source revision. DCP persists this evidence atomically with version admission before publish or provisioning. classificationDigest chains to the caller's pre-allocation BindingClassificationSubject; bindings contain only approved configuration, app secrets or approved data-source credential references and never an AI-mapping-owned provider credential.
|
package/package.json
CHANGED
|
@@ -108,7 +108,7 @@
|
|
|
108
108
|
"required": ["id", "provider", "credentialSecretRef", "enabled"],
|
|
109
109
|
"properties": {
|
|
110
110
|
"id": { "$ref": "#/definitions/AiPolicyIdentifier" },
|
|
111
|
-
"provider": { "type": "string", "enum": ["openai", "anthropic", "gemini", "openrouter", "deepseek"] },
|
|
111
|
+
"provider": { "type": "string", "enum": ["openai", "anthropic", "gemini", "openrouter", "deepseek", "elevenlabs", "deepgram"] },
|
|
112
112
|
"baseUrl": { "type": "string", "format": "uri", "maxLength": 512 },
|
|
113
113
|
"credentialSecretRef": {
|
|
114
114
|
"type": "string",
|
|
@@ -132,6 +132,7 @@
|
|
|
132
132
|
"additionalProperties": false,
|
|
133
133
|
"properties": {
|
|
134
134
|
"audio_seconds": { "type": "integer", "minimum": 0 },
|
|
135
|
+
"audio_characters": { "type": "integer", "minimum": 0 },
|
|
135
136
|
"image_count": { "type": "integer", "minimum": 0 },
|
|
136
137
|
"video_seconds": { "type": "integer", "minimum": 0 }
|
|
137
138
|
}
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"properties": {
|
|
10
10
|
"schema": { "type": "string", "const": "harbour.ai-pricing-revision/2.0" },
|
|
11
11
|
"revisionId": { "$ref": "#/definitions/AiPricingIdentifier" },
|
|
12
|
-
"provider": { "type": "string", "enum": ["openai", "anthropic", "gemini", "openrouter", "deepseek"] },
|
|
12
|
+
"provider": { "type": "string", "enum": ["openai", "anthropic", "gemini", "openrouter", "deepseek", "elevenlabs", "deepgram"] },
|
|
13
13
|
"providerModel": { "type": "string", "minLength": 1, "maxLength": 256 },
|
|
14
14
|
"region": { "$ref": "#/definitions/AiPricingIdentifier" },
|
|
15
15
|
"currency": { "type": "string", "const": "USD" },
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"routeRevision": { "type": "string", "minLength": 1, "maxLength": 256 },
|
|
43
43
|
"requestedModel": { "type": "string", "minLength": 1, "maxLength": 256 },
|
|
44
44
|
"governedModelAlias": { "type": "string", "minLength": 1, "maxLength": 160 },
|
|
45
|
-
"provider": { "type": "string", "enum": ["openai", "anthropic", "gemini", "openrouter", "deepseek"] },
|
|
45
|
+
"provider": { "type": "string", "enum": ["openai", "anthropic", "gemini", "openrouter", "deepseek", "elevenlabs", "deepgram"] },
|
|
46
46
|
"providerModel": { "type": "string", "minLength": 1, "maxLength": 256 },
|
|
47
47
|
"outcome": { "type": "string", "enum": ["succeeded", "blocked", "failed", "cancelled"] },
|
|
48
48
|
"usage": { "$ref": "#/definitions/AiTraceUsage" },
|
|
@@ -134,7 +134,7 @@
|
|
|
134
134
|
"required": ["attempt", "provider", "providerModel", "priceRevision", "outcome", "usage", "costMicroUsd", "latencyMs"],
|
|
135
135
|
"properties": {
|
|
136
136
|
"attempt": { "type": "integer", "minimum": 1, "maximum": 32 },
|
|
137
|
-
"provider": { "type": "string", "enum": ["openai", "anthropic", "gemini", "openrouter", "deepseek"] },
|
|
137
|
+
"provider": { "type": "string", "enum": ["openai", "anthropic", "gemini", "openrouter", "deepseek", "elevenlabs", "deepgram"] },
|
|
138
138
|
"providerModel": { "type": "string", "minLength": 1, "maxLength": 256 },
|
|
139
139
|
"priceRevision": { "$ref": "#/definitions/AiTraceIdentifier" },
|
|
140
140
|
"outcome": { "type": "string", "enum": ["succeeded", "failed", "timed_out", "cancelled"] },
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
},
|
|
65
65
|
"BindingClassificationProviderId": {
|
|
66
66
|
"type": "string",
|
|
67
|
-
"enum": ["openai", "anthropic", "gemini", "openrouter", "deepseek"]
|
|
67
|
+
"enum": ["openai", "anthropic", "gemini", "openrouter", "deepseek", "deepgram"]
|
|
68
68
|
},
|
|
69
69
|
"BindingClassificationCredentialCategory": {
|
|
70
70
|
"description": "Closed current credential category. Add a reviewed contract version before supporting another credential mechanism.",
|
|
@@ -62,7 +62,7 @@
|
|
|
62
62
|
},
|
|
63
63
|
"SanitizedBindingProviderId": {
|
|
64
64
|
"type": "string",
|
|
65
|
-
"enum": ["openai", "anthropic", "gemini", "openrouter", "deepseek"]
|
|
65
|
+
"enum": ["openai", "anthropic", "gemini", "openrouter", "deepseek", "deepgram"]
|
|
66
66
|
},
|
|
67
67
|
"SanitizedBindingAiMapping": {
|
|
68
68
|
"type": "object",
|