@fourier-labs/harbour-contracts 0.12.0 → 0.13.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 +14 -14
- package/dist/gen-ts/ai-governance-decision.d.ts +1 -0
- package/dist/gen-ts/ai-runtime-contract.d.ts +1 -0
- package/dist/gen-ts/contract-release.d.ts +7 -7
- package/dist/gen-ts/contract-release.js +7 -7
- package/dist/resolver/index.d.ts +1 -0
- package/dist/resolver/index.js +1 -1
- package/fixtures/ai/valid-governance-decision.json +1 -1
- package/fixtures/ai/valid-runtime-contract.json +2 -1
- package/gen-ts/ai-governance-decision.ts +1 -0
- package/gen-ts/ai-runtime-contract.ts +1 -0
- package/gen-ts/contract-release.ts +7 -7
- package/package.json +1 -1
- package/schema/ai-governance-decision.schema.json +2 -1
- package/schema/ai-runtime-contract.schema.json +2 -1
package/contract-release.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
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.13.0.0",
|
|
4
|
+
"publishVersion": "0.13.0",
|
|
5
|
+
"publishTag": "v0.13.0",
|
|
6
|
+
"schemasDigest": "sha256:9288dbdb8df22a65200cacbf050cbde4ac9f083bcc818d7c64c64bbe2998e211",
|
|
7
|
+
"aiFixturesDigest": "sha256:07413b9323004b8afa222b9da0e01fdabd32a8130bc0d5367526f0c8ba169e3e",
|
|
8
|
+
"generatedGoDigest": "sha256:02e76bb507d4cc32fef1328599eafbcef3326d3226afb9447cd437b411aadc07",
|
|
9
|
+
"generatedTypeScriptDigest": "sha256:27bdba477af325c99aec264838cf1da277680c4f13c9943a5763308d7b782982",
|
|
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,12 +19,12 @@
|
|
|
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:
|
|
22
|
+
"schema/ai-governance-decision.schema.json": "sha256:a8e7a30703cebc5476742968edbc3bcc7446400ff544272c5fc6fd1d178fa96d",
|
|
23
23
|
"schema/ai-metering-policy.schema.json": "sha256:044115938d254d914feac162219d20ee48f741cd7ad32df4613b45f9c862fe8c",
|
|
24
24
|
"schema/ai-policy-snapshot.schema.json": "sha256:1778de5f1a5f6b034e2e767bd8189ad50daa03194107a05e090efafb5dce0cc1",
|
|
25
25
|
"schema/ai-pricing-revision.schema.json": "sha256:847fc3abf93ace82a188b028b067f3c3c1e7452e02a3c9ebba9bfbf3af749fd6",
|
|
26
26
|
"schema/ai-runtime-binding.schema.json": "sha256:e86cac2f70a474997bdef1577ca15f22982ec0ce866921df3f763c4d7f7fa191",
|
|
27
|
-
"schema/ai-runtime-contract.schema.json": "sha256:
|
|
27
|
+
"schema/ai-runtime-contract.schema.json": "sha256:b5df9a26b4ed219f4f84e44699523a07142cb2edbe2807ab95a1d506abf52ee0",
|
|
28
28
|
"schema/ai-trace-event-v2.schema.json": "sha256:b479199bb6e44ea23a1da53f69943cb8f3886c433914fdb9bf9e9bdbc3dd767d",
|
|
29
29
|
"schema/ai-trace-event.schema.json": "sha256:47c2268c9b8dbcf6e7908aeef43e71210f8a309bf4be4acc02139f9b59e7c717",
|
|
30
30
|
"schema/ai-transform-event.schema.json": "sha256:b845762e653b19afdaf959f7bd1624db490cd10c760daa9aaa61fb83f2a86b6e",
|
|
@@ -66,13 +66,13 @@
|
|
|
66
66
|
"fixtures/ai/valid-failed-trace-event.json": "sha256:3c25816ddae6f4f9448ffd8c6144631c341fe8f19f932efe981757b5e221df87",
|
|
67
67
|
"fixtures/ai/valid-gateway-key-lifecycle-event.json": "sha256:e8730526f7616adf7f2bc5cc29f566eadcf46d25b61807ed3c083956dd70d323",
|
|
68
68
|
"fixtures/ai/valid-gateway-key-lookup.json": "sha256:a577cbdd019a7f39631e7efdb12dccb4377e3184d626a79979bfc426d04a50f4",
|
|
69
|
-
"fixtures/ai/valid-governance-decision.json": "sha256:
|
|
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
72
|
"fixtures/ai/valid-policy-snapshot.json": "sha256:5ce6df9c261989f7a279eb772ead47d19e425a3e1df78d3a3eeb9043dee04318",
|
|
73
73
|
"fixtures/ai/valid-pricing-revision.json": "sha256:b8a89816a332397257fa0c40e5142ad9f05c9c6cbb92c37ae700f9b61c31fbce",
|
|
74
74
|
"fixtures/ai/valid-runtime-binding.json": "sha256:df971a518b8e680bb5260e801e7a0b03dd05076aeb11258205ec5ec205719f53",
|
|
75
|
-
"fixtures/ai/valid-runtime-contract.json": "sha256:
|
|
75
|
+
"fixtures/ai/valid-runtime-contract.json": "sha256:ee9b3e810bca14e487d55f171597d570a79801d5aba0a8080951d51d7772c233",
|
|
76
76
|
"fixtures/ai/valid-sanitized-binding-evidence-byo-source.json": "sha256:77f258fdb6cb7232b78a62fc035e293c6d604bed438ca35c54ab398064bc053a",
|
|
77
77
|
"fixtures/ai/valid-sanitized-binding-evidence.json": "sha256:19a4994b9a562305854945643a588f4f7c098db4bc3653da26df6e4284b00190",
|
|
78
78
|
"fixtures/ai/valid-source-revision-digest.json": "sha256:ec32021dbb636de9a1e47d560bfe59c21451e88f67d647387968aba48691409d",
|
|
@@ -91,7 +91,7 @@
|
|
|
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:3aa9d181e5b7a76bc83bfae1f54056ccdbae02e144755a098182c6d108fe97b3",
|
|
95
95
|
"gen-go/version_state.go": "sha256:827f8768359998409b86ea02d9ba1a149981928bae7161e4dc95fe0520ce7410"
|
|
96
96
|
},
|
|
97
97
|
"generatedTypeScript": {
|
|
@@ -104,12 +104,12 @@
|
|
|
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:
|
|
107
|
+
"gen-ts/ai-governance-decision.ts": "sha256:f61737a8eb15dc52bf85623483be473d35112bc0adae7d4fb05affc2674cc9a2",
|
|
108
108
|
"gen-ts/ai-metering-policy.ts": "sha256:dd261d57646a509cd46efaefac4aad58d018c7f7da98326dd8859e4ce951c56a",
|
|
109
109
|
"gen-ts/ai-policy-snapshot.ts": "sha256:9a8c65936674a957979048a2a0c6d08c887c87f2c4d5e7e8127dcf31d33eccbc",
|
|
110
110
|
"gen-ts/ai-pricing-revision.ts": "sha256:6e09e8354025dc859023295753ecc3674b5bc198b77317413654f1b7d2327a39",
|
|
111
111
|
"gen-ts/ai-runtime-binding.ts": "sha256:176c830d400ce44c508f8d249bb3c9724b2d595b78262615487cdafc4790263e",
|
|
112
|
-
"gen-ts/ai-runtime-contract.ts": "sha256:
|
|
112
|
+
"gen-ts/ai-runtime-contract.ts": "sha256:80d2c0a1d9b71a6aaccbbdd2bae1a1ad84f07b63ce850c040dcb5c8efb0f7e84",
|
|
113
113
|
"gen-ts/ai-trace-event-v2.ts": "sha256:8c994355f290864da1cf42850c3eceb0e4a1567b45ed989de865213430d3ce0e",
|
|
114
114
|
"gen-ts/ai-trace-event.ts": "sha256:1e714996dc4622e94c6ae144a7bdb09147306940db47ae788aafd6f7f8311b0c",
|
|
115
115
|
"gen-ts/ai-transform-event.ts": "sha256:c8b520e01ce12b0e3a5ebe03a3ca63cc83368f26e1eef933de732c4fc1c504f9",
|
|
@@ -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.13.0.0";
|
|
2
|
+
export declare const ContractPublishVersion: "0.13.0";
|
|
3
|
+
export declare const ContractPublishTag: "v0.13.0";
|
|
4
|
+
export declare const ContractSchemasDigest: "sha256:9288dbdb8df22a65200cacbf050cbde4ac9f083bcc818d7c64c64bbe2998e211";
|
|
5
|
+
export declare const ContractAiFixturesDigest: "sha256:07413b9323004b8afa222b9da0e01fdabd32a8130bc0d5367526f0c8ba169e3e";
|
|
6
|
+
export declare const ContractGeneratedGoDigest: "sha256:02e76bb507d4cc32fef1328599eafbcef3326d3226afb9447cd437b411aadc07";
|
|
7
|
+
export declare const ContractGeneratedTypeScriptDigest: "sha256:27bdba477af325c99aec264838cf1da277680c4f13c9943a5763308d7b782982";
|
|
@@ -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.13.0.0";
|
|
4
|
+
export const ContractPublishVersion = "0.13.0";
|
|
5
|
+
export const ContractPublishTag = "v0.13.0";
|
|
6
|
+
export const ContractSchemasDigest = "sha256:9288dbdb8df22a65200cacbf050cbde4ac9f083bcc818d7c64c64bbe2998e211";
|
|
7
|
+
export const ContractAiFixturesDigest = "sha256:07413b9323004b8afa222b9da0e01fdabd32a8130bc0d5367526f0c8ba169e3e";
|
|
8
|
+
export const ContractGeneratedGoDigest = "sha256:02e76bb507d4cc32fef1328599eafbcef3326d3226afb9447cd437b411aadc07";
|
|
9
|
+
export const ContractGeneratedTypeScriptDigest = "sha256:27bdba477af325c99aec264838cf1da277680c4f13c9943a5763308d7b782982";
|
package/dist/resolver/index.d.ts
CHANGED
|
@@ -148,6 +148,7 @@ export type AiEffectivePolicy = AiScopePolicySet & {
|
|
|
148
148
|
export type AiModelAliasAssignment = {
|
|
149
149
|
generation?: string;
|
|
150
150
|
embeddings?: string;
|
|
151
|
+
realtime?: string;
|
|
151
152
|
};
|
|
152
153
|
declare const narrowedBrand: unique symbol;
|
|
153
154
|
/** Granted only by the narrowing combinators (`mergeKeyedFamily`,
|
package/dist/resolver/index.js
CHANGED
|
@@ -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"].map(capability => {
|
|
275
|
+
const merged = ["generation", "embeddings", "realtime"].map(capability => {
|
|
276
276
|
const assigned = application[capability];
|
|
277
277
|
if (assigned === undefined)
|
|
278
278
|
return {};
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"mode": "enforce",
|
|
39
39
|
"gatewayBaseUrl": "https://ai.harbour.example/v1",
|
|
40
40
|
"gatewayKeySecretRef": "aws-sm://harbour/ai/fourier/support-assistant/preview/versions/000124/gateway-key",
|
|
41
|
-
"modelAliases": { "generation": "harbour/standard" },
|
|
41
|
+
"modelAliases": { "generation": "harbour/standard", "realtime": "harbour/realtime" },
|
|
42
42
|
"policyDigest": "sha256:bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb",
|
|
43
43
|
"runtimeBinding": {
|
|
44
44
|
"schema": "harbour.ai-runtime-binding/1.0",
|
|
@@ -10,7 +10,8 @@
|
|
|
10
10
|
"gatewayKeySecretRef": "aws-sm://harbour/ai/fourier/support-assistant/preview/versions/000124/gateway-key",
|
|
11
11
|
"modelAliases": {
|
|
12
12
|
"generation": "harbour/standard",
|
|
13
|
-
"embeddings": "harbour/embeddings"
|
|
13
|
+
"embeddings": "harbour/embeddings",
|
|
14
|
+
"realtime": "harbour/realtime"
|
|
14
15
|
},
|
|
15
16
|
"policyDigest": "sha256:cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc",
|
|
16
17
|
"runtimeBinding": {
|
|
@@ -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.13.0.0" as const;
|
|
5
|
+
export const ContractPublishVersion = "0.13.0" as const;
|
|
6
|
+
export const ContractPublishTag = "v0.13.0" as const;
|
|
7
|
+
export const ContractSchemasDigest = "sha256:9288dbdb8df22a65200cacbf050cbde4ac9f083bcc818d7c64c64bbe2998e211" as const;
|
|
8
|
+
export const ContractAiFixturesDigest = "sha256:07413b9323004b8afa222b9da0e01fdabd32a8130bc0d5367526f0c8ba169e3e" as const;
|
|
9
|
+
export const ContractGeneratedGoDigest = "sha256:02e76bb507d4cc32fef1328599eafbcef3326d3226afb9447cd437b411aadc07" as const;
|
|
10
|
+
export const ContractGeneratedTypeScriptDigest = "sha256:27bdba477af325c99aec264838cf1da277680c4f13c9943a5763308d7b782982" as const;
|
package/package.json
CHANGED
|
@@ -65,7 +65,8 @@
|
|
|
65
65
|
"minProperties": 1,
|
|
66
66
|
"properties": {
|
|
67
67
|
"generation": { "type": "string", "minLength": 3, "maxLength": 160 },
|
|
68
|
-
"embeddings": { "type": "string", "minLength": 3, "maxLength": 160 }
|
|
68
|
+
"embeddings": { "type": "string", "minLength": 3, "maxLength": 160 },
|
|
69
|
+
"realtime": { "type": "string", "minLength": 3, "maxLength": 160 }
|
|
69
70
|
}
|
|
70
71
|
},
|
|
71
72
|
"policyDigest": { "$ref": "#/definitions/AiDecisionDigest" },
|
|
@@ -49,7 +49,8 @@
|
|
|
49
49
|
"minProperties": 1,
|
|
50
50
|
"properties": {
|
|
51
51
|
"generation": { "$ref": "#/definitions/AiRuntimeModelAlias" },
|
|
52
|
-
"embeddings": { "$ref": "#/definitions/AiRuntimeModelAlias" }
|
|
52
|
+
"embeddings": { "$ref": "#/definitions/AiRuntimeModelAlias" },
|
|
53
|
+
"realtime": { "$ref": "#/definitions/AiRuntimeModelAlias" }
|
|
53
54
|
}
|
|
54
55
|
},
|
|
55
56
|
"policyDigest": { "$ref": "#/definitions/AiRuntimeDigest" },
|