@fourier-labs/harbour-contracts 0.14.0 → 0.17.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 (32) hide show
  1. package/contract-release.json +24 -24
  2. package/dist/gen-ts/ai-governance-decision.d.ts +5 -0
  3. package/dist/gen-ts/ai-policy-snapshot.d.ts +3 -3
  4. package/dist/gen-ts/ai-pricing-revision.d.ts +1 -1
  5. package/dist/gen-ts/ai-runtime-contract.d.ts +5 -0
  6. package/dist/gen-ts/ai-trace-event.d.ts +2 -2
  7. package/dist/gen-ts/binding-classification-subject.d.ts +1 -1
  8. package/dist/gen-ts/contract-release.d.ts +6 -6
  9. package/dist/gen-ts/contract-release.js +6 -6
  10. package/dist/gen-ts/deploy-request.d.ts +2 -2
  11. package/dist/gen-ts/promotion-request.d.ts +2 -2
  12. package/dist/gen-ts/sanitized-binding-evidence.d.ts +1 -1
  13. package/dist/resolver/index.d.ts +6 -1
  14. package/dist/resolver/index.js +1 -1
  15. package/gen-ts/ai-governance-decision.ts +5 -0
  16. package/gen-ts/ai-policy-snapshot.ts +5 -3
  17. package/gen-ts/ai-pricing-revision.ts +1 -1
  18. package/gen-ts/ai-runtime-contract.ts +5 -0
  19. package/gen-ts/ai-trace-event.ts +2 -2
  20. package/gen-ts/binding-classification-subject.ts +1 -1
  21. package/gen-ts/contract-release.ts +6 -6
  22. package/gen-ts/deploy-request.ts +2 -2
  23. package/gen-ts/promotion-request.ts +2 -2
  24. package/gen-ts/sanitized-binding-evidence.ts +1 -1
  25. package/package.json +1 -1
  26. package/schema/ai-governance-decision.schema.json +5 -0
  27. package/schema/ai-policy-snapshot.schema.json +3 -3
  28. package/schema/ai-pricing-revision.schema.json +1 -1
  29. package/schema/ai-runtime-contract.schema.json +5 -0
  30. package/schema/ai-trace-event.schema.json +2 -2
  31. package/schema/binding-classification-subject.schema.json +1 -1
  32. package/schema/sanitized-binding-evidence.schema.json +1 -1
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "schema": "harbour.contract-release/1.0",
3
- "repositoryVersion": "0.14.0.0",
4
- "publishVersion": "0.14.0",
5
- "publishTag": "v0.14.0",
6
- "schemasDigest": "sha256:c6988f78bbd8f391a9e60809f53f6eabda8dd86dfa1a3a8b0cc0a76af718dc3f",
3
+ "repositoryVersion": "0.17.0.0",
4
+ "publishVersion": "0.17.0",
5
+ "publishTag": "v0.17.0",
6
+ "schemasDigest": "sha256:695621a59c7ad8c39c7b9bbe23dcfeb7eb3c14503c1c82029ea4717a5c00d5c3",
7
7
  "aiFixturesDigest": "sha256:07413b9323004b8afa222b9da0e01fdabd32a8130bc0d5367526f0c8ba169e3e",
8
- "generatedGoDigest": "sha256:88aa8a5fdc00f593db66606bac3905256c056d9d4bda6dbed2e7053a3a082f14",
9
- "generatedTypeScriptDigest": "sha256:317e20175e1c367740fc895e15333d95752185d2a34fb67fec0f76849e70b865",
8
+ "generatedGoDigest": "sha256:a3e9530ea2c10a7763f9001e4a39928e9cc4536867bd5e94c70c44a6a4d62913",
9
+ "generatedTypeScriptDigest": "sha256:e54f44b2461d916d416afbccc63ab981195570af0e8c5424aebd64f512ba0002",
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)"
@@ -19,20 +19,20 @@
19
19
  "schema/ai-deployment-gate-decision.schema.json": "sha256:bae1bdf91777b9a78f8da5a29f06b5de7f1e235789cf16b1bb507e85ad0243ff",
20
20
  "schema/ai-gateway-key-lifecycle-event.schema.json": "sha256:ba5cb862abe73227bee714b25247b4cacb34f11fdd1476bb5f920923fd75e2a9",
21
21
  "schema/ai-gateway-key-lookup.schema.json": "sha256:e994d4782c9bc4f14d3a1c35c9ac1e7a5ec84284cde5b3af7e3e6022130ddbb3",
22
- "schema/ai-governance-decision.schema.json": "sha256:a8e7a30703cebc5476742968edbc3bcc7446400ff544272c5fc6fd1d178fa96d",
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:1778de5f1a5f6b034e2e767bd8189ad50daa03194107a05e090efafb5dce0cc1",
25
- "schema/ai-pricing-revision.schema.json": "sha256:847fc3abf93ace82a188b028b067f3c3c1e7452e02a3c9ebba9bfbf3af749fd6",
24
+ "schema/ai-policy-snapshot.schema.json": "sha256:c77e8815230e40cb3308be647f380ab772bff051fcbb7d1960768ff0b936fa80",
25
+ "schema/ai-pricing-revision.schema.json": "sha256:1594939e522b7443ab6edb5d47b4b00ac001b4b8f798525e2c6812b66dec5b7a",
26
26
  "schema/ai-runtime-binding.schema.json": "sha256:e86cac2f70a474997bdef1577ca15f22982ec0ce866921df3f763c4d7f7fa191",
27
- "schema/ai-runtime-contract.schema.json": "sha256:b5df9a26b4ed219f4f84e44699523a07142cb2edbe2807ab95a1d506abf52ee0",
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:47c2268c9b8dbcf6e7908aeef43e71210f8a309bf4be4acc02139f9b59e7c717",
29
+ "schema/ai-trace-event.schema.json": "sha256:96a2c48b84493efb3c27097c2b9c018b6a00f4ed40553df38c0b9781d42c2af2",
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:2e02008975296a2715b3497df3c7d276f9830f8213d469c05fd0d7f2879bfa2c",
35
+ "schema/binding-classification-subject.schema.json": "sha256:8460539cbc429811aff9d610eb20ee5e9fd1640bbe034d750839ac192f936c2a",
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:e5ae90ea18950deaefb21c2f05cc28af705cbab447b784dbaf7235b8bcfc9fd6",
52
+ "schema/sanitized-binding-evidence.schema.json": "sha256:44bf6da950413ac531538898d70abffe6adb3700b47f01e1bd598729f3ec89e9",
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"
@@ -84,14 +84,14 @@
84
84
  },
85
85
  "generatedGo": {
86
86
  "gen-go/ai_composite_policy_digest_helper.go": "sha256:31b4d9b4afd965b9869acbd3a58527949402f6711f624f2a4f02b3c6e406f71f",
87
- "gen-go/ai_contracts_test.go": "sha256:5b5aaa331155958ce21d540e9c77a9ef4ca7d072c4ef6f7d9061add1449a7541",
87
+ "gen-go/ai_contracts_test.go": "sha256:17ce967139e39c291ee7ebad3f66cc0495324abc4e56885279f7e5cc74994036",
88
88
  "gen-go/ai_gateway_key_token.go": "sha256:859c34383955f21c22589158214df074b74de6907a54bee7c781acfa9dad8679",
89
89
  "gen-go/binding_digest_helpers.go": "sha256:50462ba2beb16c7931dfc7e10302c12c90bf8111788991f74f08a718125dfbfb",
90
90
  "gen-go/contracts_test.go": "sha256:105f72ed711a34778d875b5a957bae3d8afbe67ed006e4809b8031b4cc303ec0",
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:6fa162e8e36eb1a6d131a00729d414df623bcbd9859a9137f063d0d43546a3a6",
94
+ "gen-go/types.go": "sha256:9093771131956bdb996d3c22478f9cfc1f2002bbc0f7198aa49a931ebb00cf7c",
95
95
  "gen-go/version_state.go": "sha256:827f8768359998409b86ea02d9ba1a149981928bae7161e4dc95fe0520ce7410"
96
96
  },
97
97
  "generatedTypeScript": {
@@ -104,25 +104,25 @@
104
104
  "gen-ts/ai-gateway-key-lifecycle-event.ts": "sha256:8f1ab4774be1959e82c97da20ec8b293f3f10262f95393d2ae57e4c7817353cb",
105
105
  "gen-ts/ai-gateway-key-lookup.ts": "sha256:e55fc9a2252d5e7e1a383a58c8b92f22d8147ee4862a893a6cfe815b4225fc00",
106
106
  "gen-ts/ai-gateway-key-token.ts": "sha256:ff6551ad3332cc665878d7ec93f42ce185c375e637531b2fbc82c697b877e784",
107
- "gen-ts/ai-governance-decision.ts": "sha256:f61737a8eb15dc52bf85623483be473d35112bc0adae7d4fb05affc2674cc9a2",
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:9a8c65936674a957979048a2a0c6d08c887c87f2c4d5e7e8127dcf31d33eccbc",
110
- "gen-ts/ai-pricing-revision.ts": "sha256:6e09e8354025dc859023295753ecc3674b5bc198b77317413654f1b7d2327a39",
109
+ "gen-ts/ai-policy-snapshot.ts": "sha256:5ec2ff70e501ceb48d5b6a99b9b6e60b54d69c1b2cc1a23ff412333c294b7b09",
110
+ "gen-ts/ai-pricing-revision.ts": "sha256:11e124b6397cf29c528f48c01893a9aacd0abf4ca92bbc1b41b92256a55d3e5b",
111
111
  "gen-ts/ai-runtime-binding.ts": "sha256:176c830d400ce44c508f8d249bb3c9724b2d595b78262615487cdafc4790263e",
112
- "gen-ts/ai-runtime-contract.ts": "sha256:80d2c0a1d9b71a6aaccbbdd2bae1a1ad84f07b63ce850c040dcb5c8efb0f7e84",
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:1e714996dc4622e94c6ae144a7bdb09147306940db47ae788aafd6f7f8311b0c",
114
+ "gen-ts/ai-trace-event.ts": "sha256:505db07fae563d5a197bd88d3bdbd5bae05595b4d19d9d15f92d99b2f33ac75b",
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:6bddc668aa58b10d4dc0be60baf34d6877950871255c010f2b2e897eb8bc4259",
121
+ "gen-ts/binding-classification-subject.ts": "sha256:2294336b47a4eb8a418d6d55deb62b81b024d9b21536e0588ac88d45b5918505",
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:dab367fa2623c93e2e1468b526d36732179b94307303d2ec9ab8587c6216ffc3",
125
+ "gen-ts/deploy-request.ts": "sha256:57b77c06465659cfb254b68a613d5ec17f4505fb6aaf681a7943a62a9b70cfd4",
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:d0f08925341c4a36d8b049be95682037cb6ee6daaf589a191f6731af4eca17ae",
138
+ "gen-ts/promotion-request.ts": "sha256:a805f63e0966a8a61db4fa0d09bebc6d37eb77b83a12ac68d4897b6c48297544",
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:f4b6c31dd9454350da00f443a8a4563e28d21cab6507fbc647cb33118155224c",
141
+ "gen-ts/sanitized-binding-evidence.ts": "sha256:44a4ee49d0dc2f6738739b338cef2cc279c003f61172a88df49c0f749f4cc993",
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",
@@ -68,6 +68,11 @@ export interface AiDecisionRuntimeContract {
68
68
  modelAliases: {
69
69
  generation?: string;
70
70
  embeddings?: string;
71
+ transcription?: string;
72
+ translation?: string;
73
+ speech?: string;
74
+ image?: string;
75
+ video?: string;
71
76
  realtime?: string;
72
77
  };
73
78
  policyDigest: AiDecisionDigest;
@@ -89,7 +89,7 @@ export interface AiPolicyClassificationMinimum {
89
89
  }
90
90
  export interface AiPolicyProvider {
91
91
  id: AiPolicyIdentifier;
92
- provider: 'openai' | 'anthropic' | 'gemini' | 'openrouter';
92
+ provider: 'openai' | 'anthropic' | 'gemini' | 'openrouter' | 'deepseek';
93
93
  baseUrl?: string;
94
94
  credentialSecretRef: string;
95
95
  enabled: boolean;
@@ -102,7 +102,7 @@ export interface AiPolicyModel {
102
102
  * @minItems 1
103
103
  * @maxItems 2
104
104
  */
105
- capabilities: ('generation' | 'embeddings' | 'transcription' | 'translation' | 'speech' | 'image' | 'realtime')[];
105
+ capabilities: ('generation' | 'embeddings' | 'transcription' | 'translation' | 'speech' | 'image' | 'video' | 'realtime')[];
106
106
  approved: boolean;
107
107
  pricing: AiPolicyPricing;
108
108
  }
@@ -120,7 +120,7 @@ export interface AiPolicyPricing {
120
120
  export interface AiPolicyRoute {
121
121
  alias: AiPolicyIdentifier;
122
122
  version: number;
123
- capability: 'generation' | 'embeddings' | 'transcription' | 'translation' | 'speech' | 'image' | 'realtime';
123
+ capability: 'generation' | 'embeddings' | 'transcription' | 'translation' | 'speech' | 'image' | 'video' | 'realtime';
124
124
  /**
125
125
  * @minItems 1
126
126
  * @maxItems 16
@@ -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';
9
+ provider: 'openai' | 'anthropic' | 'gemini' | 'openrouter' | 'deepseek';
10
10
  providerModel: string;
11
11
  region?: AiPricingIdentifier;
12
12
  currency: 'USD';
@@ -21,6 +21,11 @@ export interface AiRuntimeContract {
21
21
  modelAliases: {
22
22
  generation?: AiRuntimeModelAlias;
23
23
  embeddings?: AiRuntimeModelAlias;
24
+ transcription?: AiRuntimeModelAlias;
25
+ translation?: AiRuntimeModelAlias;
26
+ speech?: AiRuntimeModelAlias;
27
+ image?: AiRuntimeModelAlias;
28
+ video?: AiRuntimeModelAlias;
24
29
  realtime?: AiRuntimeModelAlias;
25
30
  };
26
31
  policyDigest: AiRuntimeDigest;
@@ -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';
17
+ provider?: 'openai' | 'anthropic' | 'gemini' | 'openrouter' | 'deepseek';
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';
45
+ provider: 'openai' | 'anthropic' | 'gemini' | 'openrouter' | 'deepseek';
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';
18
+ export type BindingClassificationProviderId = 'openai' | 'anthropic' | 'gemini' | 'openrouter' | 'deepseek';
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.14.0.0";
2
- export declare const ContractPublishVersion: "0.14.0";
3
- export declare const ContractPublishTag: "v0.14.0";
4
- export declare const ContractSchemasDigest: "sha256:c6988f78bbd8f391a9e60809f53f6eabda8dd86dfa1a3a8b0cc0a76af718dc3f";
1
+ export declare const ContractRepositoryVersion: "0.17.0.0";
2
+ export declare const ContractPublishVersion: "0.17.0";
3
+ export declare const ContractPublishTag: "v0.17.0";
4
+ export declare const ContractSchemasDigest: "sha256:695621a59c7ad8c39c7b9bbe23dcfeb7eb3c14503c1c82029ea4717a5c00d5c3";
5
5
  export declare const ContractAiFixturesDigest: "sha256:07413b9323004b8afa222b9da0e01fdabd32a8130bc0d5367526f0c8ba169e3e";
6
- export declare const ContractGeneratedGoDigest: "sha256:88aa8a5fdc00f593db66606bac3905256c056d9d4bda6dbed2e7053a3a082f14";
7
- export declare const ContractGeneratedTypeScriptDigest: "sha256:317e20175e1c367740fc895e15333d95752185d2a34fb67fec0f76849e70b865";
6
+ export declare const ContractGeneratedGoDigest: "sha256:a3e9530ea2c10a7763f9001e4a39928e9cc4536867bd5e94c70c44a6a4d62913";
7
+ export declare const ContractGeneratedTypeScriptDigest: "sha256:e54f44b2461d916d416afbccc63ab981195570af0e8c5424aebd64f512ba0002";
@@ -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.14.0.0";
4
- export const ContractPublishVersion = "0.14.0";
5
- export const ContractPublishTag = "v0.14.0";
6
- export const ContractSchemasDigest = "sha256:c6988f78bbd8f391a9e60809f53f6eabda8dd86dfa1a3a8b0cc0a76af718dc3f";
3
+ export const ContractRepositoryVersion = "0.17.0.0";
4
+ export const ContractPublishVersion = "0.17.0";
5
+ export const ContractPublishTag = "v0.17.0";
6
+ export const ContractSchemasDigest = "sha256:695621a59c7ad8c39c7b9bbe23dcfeb7eb3c14503c1c82029ea4717a5c00d5c3";
7
7
  export const ContractAiFixturesDigest = "sha256:07413b9323004b8afa222b9da0e01fdabd32a8130bc0d5367526f0c8ba169e3e";
8
- export const ContractGeneratedGoDigest = "sha256:88aa8a5fdc00f593db66606bac3905256c056d9d4bda6dbed2e7053a3a082f14";
9
- export const ContractGeneratedTypeScriptDigest = "sha256:317e20175e1c367740fc895e15333d95752185d2a34fb67fec0f76849e70b865";
8
+ export const ContractGeneratedGoDigest = "sha256:a3e9530ea2c10a7763f9001e4a39928e9cc4536867bd5e94c70c44a6a4d62913";
9
+ export const ContractGeneratedTypeScriptDigest = "sha256:e54f44b2461d916d416afbccc63ab981195570af0e8c5424aebd64f512ba0002";
@@ -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';
24
+ providerId?: 'openai' | 'anthropic' | 'gemini' | 'openrouter' | 'deepseek';
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';
112
+ providerId: 'openai' | 'anthropic' | 'gemini' | 'openrouter' | 'deepseek';
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';
4
+ providerId?: 'openai' | 'anthropic' | 'gemini' | 'openrouter' | 'deepseek';
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';
90
+ providerId: 'openai' | 'anthropic' | 'gemini' | 'openrouter' | 'deepseek';
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';
16
+ export type SanitizedBindingProviderId = 'openai' | 'anthropic' | 'gemini' | 'openrouter' | 'deepseek';
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
  */
@@ -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";
45
+ export type AiProviderType = "openai" | "anthropic" | "gemini" | "openrouter" | "deepseek";
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";
@@ -148,6 +148,11 @@ export type AiEffectivePolicy = AiScopePolicySet & {
148
148
  export type AiModelAliasAssignment = {
149
149
  generation?: string;
150
150
  embeddings?: string;
151
+ transcription?: string;
152
+ translation?: string;
153
+ speech?: string;
154
+ image?: string;
155
+ video?: string;
151
156
  realtime?: string;
152
157
  };
153
158
  declare const narrowedBrand: unique symbol;
@@ -272,7 +272,7 @@ export function mergeKeyedFamily(tenant, application, rules) {
272
272
  * another route. `{ ...tenant, ...application }` made the application the
273
273
  * authority for both. */
274
274
  export function mergeModelAliases(tenant, application) {
275
- const merged = ["generation", "embeddings", "realtime"].map(capability => {
275
+ const merged = ["generation", "embeddings", "transcription", "translation", "speech", "image", "video", "realtime"].map(capability => {
276
276
  const assigned = application[capability];
277
277
  if (assigned === undefined)
278
278
  return {};
@@ -72,6 +72,11 @@ export interface AiDecisionRuntimeContract {
72
72
  modelAliases: {
73
73
  generation?: string;
74
74
  embeddings?: string;
75
+ transcription?: string;
76
+ translation?: string;
77
+ speech?: string;
78
+ image?: string;
79
+ video?: string;
75
80
  realtime?: string;
76
81
  };
77
82
  policyDigest: AiDecisionDigest;
@@ -93,7 +93,7 @@ export interface AiPolicyClassificationMinimum {
93
93
  }
94
94
  export interface AiPolicyProvider {
95
95
  id: AiPolicyIdentifier;
96
- provider: 'openai' | 'anthropic' | 'gemini' | 'openrouter';
96
+ provider: 'openai' | 'anthropic' | 'gemini' | 'openrouter' | 'deepseek';
97
97
  baseUrl?: string;
98
98
  credentialSecretRef: string;
99
99
  enabled: boolean;
@@ -106,7 +106,9 @@ export interface AiPolicyModel {
106
106
  * @minItems 1
107
107
  * @maxItems 2
108
108
  */
109
- capabilities: ('generation' | 'embeddings' | 'transcription' | 'translation' | 'speech' | 'image' | 'realtime')[];
109
+ capabilities: (
110
+ 'generation' | 'embeddings' | 'transcription' | 'translation' | 'speech' | 'image' | 'video' | 'realtime'
111
+ )[];
110
112
  approved: boolean;
111
113
  pricing: AiPolicyPricing;
112
114
  }
@@ -124,7 +126,7 @@ export interface AiPolicyPricing {
124
126
  export interface AiPolicyRoute {
125
127
  alias: AiPolicyIdentifier;
126
128
  version: number;
127
- capability: 'generation' | 'embeddings' | 'transcription' | 'translation' | 'speech' | 'image' | 'realtime';
129
+ capability: 'generation' | 'embeddings' | 'transcription' | 'translation' | 'speech' | 'image' | 'video' | 'realtime';
128
130
  /**
129
131
  * @minItems 1
130
132
  * @maxItems 16
@@ -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';
13
+ provider: 'openai' | 'anthropic' | 'gemini' | 'openrouter' | 'deepseek';
14
14
  providerModel: string;
15
15
  region?: AiPricingIdentifier;
16
16
  currency: 'USD';
@@ -25,6 +25,11 @@ export interface AiRuntimeContract {
25
25
  modelAliases: {
26
26
  generation?: AiRuntimeModelAlias;
27
27
  embeddings?: AiRuntimeModelAlias;
28
+ transcription?: AiRuntimeModelAlias;
29
+ translation?: AiRuntimeModelAlias;
30
+ speech?: AiRuntimeModelAlias;
31
+ image?: AiRuntimeModelAlias;
32
+ video?: AiRuntimeModelAlias;
28
33
  realtime?: AiRuntimeModelAlias;
29
34
  };
30
35
  policyDigest: AiRuntimeDigest;
@@ -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';
20
+ provider?: 'openai' | 'anthropic' | 'gemini' | 'openrouter' | 'deepseek';
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';
48
+ provider: 'openai' | 'anthropic' | 'gemini' | 'openrouter' | 'deepseek';
49
49
  providerModel: string;
50
50
  priceRevision: AiTraceIdentifier;
51
51
  outcome: 'succeeded' | 'failed' | 'timed_out' | 'cancelled';
@@ -18,7 +18,7 @@ export type BindingClassificationEntry = {
18
18
  category?: BindingClassificationCredentialCategory;
19
19
  requestedAiMappingId?: BindingClassificationIdentifier;
20
20
  };
21
- export type BindingClassificationProviderId = 'openai' | 'anthropic' | 'gemini' | 'openrouter';
21
+ export type BindingClassificationProviderId = 'openai' | 'anthropic' | 'gemini' | 'openrouter' | 'deepseek';
22
22
  /**
23
23
  * Closed current credential category. Add a reviewed contract version before supporting another credential mechanism.
24
24
  */
@@ -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.14.0.0" as const;
5
- export const ContractPublishVersion = "0.14.0" as const;
6
- export const ContractPublishTag = "v0.14.0" as const;
7
- export const ContractSchemasDigest = "sha256:c6988f78bbd8f391a9e60809f53f6eabda8dd86dfa1a3a8b0cc0a76af718dc3f" as const;
4
+ export const ContractRepositoryVersion = "0.17.0.0" as const;
5
+ export const ContractPublishVersion = "0.17.0" as const;
6
+ export const ContractPublishTag = "v0.17.0" as const;
7
+ export const ContractSchemasDigest = "sha256:695621a59c7ad8c39c7b9bbe23dcfeb7eb3c14503c1c82029ea4717a5c00d5c3" as const;
8
8
  export const ContractAiFixturesDigest = "sha256:07413b9323004b8afa222b9da0e01fdabd32a8130bc0d5367526f0c8ba169e3e" as const;
9
- export const ContractGeneratedGoDigest = "sha256:88aa8a5fdc00f593db66606bac3905256c056d9d4bda6dbed2e7053a3a082f14" as const;
10
- export const ContractGeneratedTypeScriptDigest = "sha256:317e20175e1c367740fc895e15333d95752185d2a34fb67fec0f76849e70b865" as const;
9
+ export const ContractGeneratedGoDigest = "sha256:a3e9530ea2c10a7763f9001e4a39928e9cc4536867bd5e94c70c44a6a4d62913" as const;
10
+ export const ContractGeneratedTypeScriptDigest = "sha256:e54f44b2461d916d416afbccc63ab981195570af0e8c5424aebd64f512ba0002" as const;
@@ -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';
27
+ providerId?: 'openai' | 'anthropic' | 'gemini' | 'openrouter' | 'deepseek';
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';
116
+ providerId: 'openai' | 'anthropic' | 'gemini' | 'openrouter' | 'deepseek';
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';
7
+ providerId?: 'openai' | 'anthropic' | 'gemini' | 'openrouter' | 'deepseek';
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';
94
+ providerId: 'openai' | 'anthropic' | 'gemini' | 'openrouter' | 'deepseek';
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';
19
+ export type SanitizedBindingProviderId = 'openai' | 'anthropic' | 'gemini' | 'openrouter' | 'deepseek';
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fourier-labs/harbour-contracts",
3
- "version": "0.14.0",
3
+ "version": "0.17.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,
@@ -66,6 +66,11 @@
66
66
  "properties": {
67
67
  "generation": { "type": "string", "minLength": 3, "maxLength": 160 },
68
68
  "embeddings": { "type": "string", "minLength": 3, "maxLength": 160 },
69
+ "transcription": { "type": "string", "minLength": 3, "maxLength": 160 },
70
+ "translation": { "type": "string", "minLength": 3, "maxLength": 160 },
71
+ "speech": { "type": "string", "minLength": 3, "maxLength": 160 },
72
+ "image": { "type": "string", "minLength": 3, "maxLength": 160 },
73
+ "video": { "type": "string", "minLength": 3, "maxLength": 160 },
69
74
  "realtime": { "type": "string", "minLength": 3, "maxLength": 160 }
70
75
  }
71
76
  },
@@ -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"] },
111
+ "provider": { "type": "string", "enum": ["openai", "anthropic", "gemini", "openrouter", "deepseek"] },
112
112
  "baseUrl": { "type": "string", "format": "uri", "maxLength": 512 },
113
113
  "credentialSecretRef": {
114
114
  "type": "string",
@@ -151,7 +151,7 @@
151
151
  "minItems": 1,
152
152
  "maxItems": 2,
153
153
  "uniqueItems": true,
154
- "items": { "type": "string", "enum": ["generation", "embeddings", "transcription", "translation", "speech", "image", "realtime"] }
154
+ "items": { "type": "string", "enum": ["generation", "embeddings", "transcription", "translation", "speech", "image", "video", "realtime"] }
155
155
  },
156
156
  "approved": { "type": "boolean" },
157
157
  "pricing": { "$ref": "#/definitions/AiPolicyPricing" }
@@ -174,7 +174,7 @@
174
174
  "properties": {
175
175
  "alias": { "$ref": "#/definitions/AiPolicyIdentifier" },
176
176
  "version": { "type": "integer", "minimum": 1 },
177
- "capability": { "type": "string", "enum": ["generation", "embeddings", "transcription", "translation", "speech", "image", "realtime"] },
177
+ "capability": { "type": "string", "enum": ["generation", "embeddings", "transcription", "translation", "speech", "image", "video", "realtime"] },
178
178
  "targets": {
179
179
  "type": "array",
180
180
  "minItems": 1,
@@ -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"] },
12
+ "provider": { "type": "string", "enum": ["openai", "anthropic", "gemini", "openrouter", "deepseek"] },
13
13
  "providerModel": { "type": "string", "minLength": 1, "maxLength": 256 },
14
14
  "region": { "$ref": "#/definitions/AiPricingIdentifier" },
15
15
  "currency": { "type": "string", "const": "USD" },
@@ -50,6 +50,11 @@
50
50
  "properties": {
51
51
  "generation": { "$ref": "#/definitions/AiRuntimeModelAlias" },
52
52
  "embeddings": { "$ref": "#/definitions/AiRuntimeModelAlias" },
53
+ "transcription": { "$ref": "#/definitions/AiRuntimeModelAlias" },
54
+ "translation": { "$ref": "#/definitions/AiRuntimeModelAlias" },
55
+ "speech": { "$ref": "#/definitions/AiRuntimeModelAlias" },
56
+ "image": { "$ref": "#/definitions/AiRuntimeModelAlias" },
57
+ "video": { "$ref": "#/definitions/AiRuntimeModelAlias" },
53
58
  "realtime": { "$ref": "#/definitions/AiRuntimeModelAlias" }
54
59
  }
55
60
  },
@@ -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"] },
45
+ "provider": { "type": "string", "enum": ["openai", "anthropic", "gemini", "openrouter", "deepseek"] },
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"] },
137
+ "provider": { "type": "string", "enum": ["openai", "anthropic", "gemini", "openrouter", "deepseek"] },
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"]
67
+ "enum": ["openai", "anthropic", "gemini", "openrouter", "deepseek"]
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"]
65
+ "enum": ["openai", "anthropic", "gemini", "openrouter", "deepseek"]
66
66
  },
67
67
  "SanitizedBindingAiMapping": {
68
68
  "type": "object",