@techis/ai-contracts 0.0.0-stage → 0.3.0-rc.16
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/LICENSE +122 -0
- package/README.md +28 -3
- package/THIRD_PARTY_NOTICES +34 -0
- package/dist/availability.d.ts +21 -0
- package/dist/availability.d.ts.map +1 -0
- package/dist/availability.js +2 -0
- package/dist/availability.js.map +1 -0
- package/dist/catalog-adoption.d.ts +20 -0
- package/dist/catalog-adoption.d.ts.map +1 -0
- package/dist/catalog-adoption.js +76 -0
- package/dist/catalog-adoption.js.map +1 -0
- package/dist/catalog-composition.d.ts +10 -0
- package/dist/catalog-composition.d.ts.map +1 -0
- package/dist/catalog-composition.js +66 -0
- package/dist/catalog-composition.js.map +1 -0
- package/dist/catalog-delivery.d.ts +47 -0
- package/dist/catalog-delivery.d.ts.map +1 -0
- package/dist/catalog-delivery.js +87 -0
- package/dist/catalog-delivery.js.map +1 -0
- package/dist/catalog-package-data.d.ts +8 -0
- package/dist/catalog-package-data.d.ts.map +1 -0
- package/dist/catalog-package-data.js +3845 -0
- package/dist/catalog-package-data.js.map +1 -0
- package/dist/compatibility.d.ts +68 -0
- package/dist/compatibility.d.ts.map +1 -0
- package/dist/compatibility.js +207 -0
- package/dist/compatibility.js.map +1 -0
- package/dist/configuration-bundle.d.ts +204 -0
- package/dist/configuration-bundle.d.ts.map +1 -0
- package/dist/configuration-bundle.js +626 -0
- package/dist/configuration-bundle.js.map +1 -0
- package/dist/entities.d.ts +641 -0
- package/dist/entities.d.ts.map +1 -0
- package/dist/entities.js +2 -0
- package/dist/entities.js.map +1 -0
- package/dist/fixtures.d.ts +25 -0
- package/dist/fixtures.d.ts.map +1 -0
- package/dist/fixtures.js +546 -0
- package/dist/fixtures.js.map +1 -0
- package/dist/hash.d.ts +8 -0
- package/dist/hash.d.ts.map +1 -0
- package/dist/hash.js +13 -0
- package/dist/hash.js.map +1 -0
- package/dist/host-qualification.d.ts +107 -0
- package/dist/host-qualification.d.ts.map +1 -0
- package/dist/host-qualification.js +88 -0
- package/dist/host-qualification.js.map +1 -0
- package/dist/icc-catalog.d.ts +31 -0
- package/dist/icc-catalog.d.ts.map +1 -0
- package/dist/icc-catalog.js +321 -0
- package/dist/icc-catalog.js.map +1 -0
- package/dist/icc-csf-profiles.d.ts +28 -0
- package/dist/icc-csf-profiles.d.ts.map +1 -0
- package/dist/icc-csf-profiles.js +394 -0
- package/dist/icc-csf-profiles.js.map +1 -0
- package/dist/index.d.ts +25 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +25 -0
- package/dist/index.js.map +1 -0
- package/dist/model-maintenance.d.ts +216 -0
- package/dist/model-maintenance.d.ts.map +1 -0
- package/dist/model-maintenance.js +425 -0
- package/dist/model-maintenance.js.map +1 -0
- package/dist/model-package-data.d.ts +3 -0
- package/dist/model-package-data.d.ts.map +1 -0
- package/dist/model-package-data.js +4954 -0
- package/dist/model-package-data.js.map +1 -0
- package/dist/persona-inventory.d.ts +143 -0
- package/dist/persona-inventory.d.ts.map +1 -0
- package/dist/persona-inventory.js +56 -0
- package/dist/persona-inventory.js.map +1 -0
- package/dist/profile-identity.d.ts +27 -0
- package/dist/profile-identity.d.ts.map +1 -0
- package/dist/profile-identity.js +30 -0
- package/dist/profile-identity.js.map +1 -0
- package/dist/provider-listings.d.ts +9 -0
- package/dist/provider-listings.d.ts.map +1 -0
- package/dist/provider-listings.js +48 -0
- package/dist/provider-listings.js.map +1 -0
- package/dist/reasoning-validation.d.ts +9 -0
- package/dist/reasoning-validation.d.ts.map +1 -0
- package/dist/reasoning-validation.js +79 -0
- package/dist/reasoning-validation.js.map +1 -0
- package/dist/reasoning.d.ts +55 -0
- package/dist/reasoning.d.ts.map +1 -0
- package/dist/reasoning.js +13 -0
- package/dist/reasoning.js.map +1 -0
- package/dist/receipt.d.ts +16 -0
- package/dist/receipt.d.ts.map +1 -0
- package/dist/receipt.js +18 -0
- package/dist/receipt.js.map +1 -0
- package/dist/schemas/adoption-change-set.schema.json +91 -0
- package/dist/schemas/bundle.d.ts +124 -0
- package/dist/schemas/bundle.d.ts.map +1 -0
- package/dist/schemas/bundle.js +84 -0
- package/dist/schemas/bundle.js.map +1 -0
- package/dist/schemas/catalog-release.schema.json +375 -0
- package/dist/schemas/catalog-review-input.schema.json +179 -0
- package/dist/schemas/catalog-review-output.schema.json +259 -0
- package/dist/schemas/catalog-review-output.v2.schema.json +251 -0
- package/dist/schemas/catalog-review-record.schema.json +391 -0
- package/dist/schemas/client-persona-inventory.schema.json +107 -0
- package/dist/schemas/common.schema.json +324 -0
- package/dist/schemas/config.d.ts +1106 -0
- package/dist/schemas/config.d.ts.map +1 -0
- package/dist/schemas/config.js +496 -0
- package/dist/schemas/config.js.map +1 -0
- package/dist/schemas/configuration-bundle-manifest.schema.json +144 -0
- package/dist/schemas/configuration-manifest.schema.json +109 -0
- package/dist/schemas/connection.schema.json +49 -0
- package/dist/schemas/core.d.ts +2268 -0
- package/dist/schemas/core.d.ts.map +1 -0
- package/dist/schemas/core.js +367 -0
- package/dist/schemas/core.js.map +1 -0
- package/dist/schemas/desktop-configuration-revision.schema.json +146 -0
- package/dist/schemas/execution-profile-revision.schema.json +235 -0
- package/dist/schemas/execution-receipt.schema.json +431 -0
- package/dist/schemas/host-adapter-qualification.schema.json +398 -0
- package/dist/schemas/host-qualification-policy.schema.json +50 -0
- package/dist/schemas/index.d.ts +11 -0
- package/dist/schemas/index.d.ts.map +1 -0
- package/dist/schemas/index.js +34 -0
- package/dist/schemas/index.js.map +1 -0
- package/dist/schemas/inventory.d.ts +170 -0
- package/dist/schemas/inventory.d.ts.map +1 -0
- package/dist/schemas/inventory.js +87 -0
- package/dist/schemas/inventory.js.map +1 -0
- package/dist/schemas/model-definition.schema.json +628 -0
- package/dist/schemas/model-package-release.schema.json +594 -0
- package/dist/schemas/model-upgrade-advisory.schema.json +191 -0
- package/dist/schemas/operation-contract-document.schema.json +153 -0
- package/dist/schemas/persona-assignments.schema.json +125 -0
- package/dist/schemas/persona-registry-overlay.schema.json +93 -0
- package/dist/schemas/persona-source-document.schema.json +86 -0
- package/dist/schemas/persona-specification.schema.json +122 -0
- package/dist/schemas/price-revision.schema.json +299 -0
- package/dist/schemas/profile-assessment.schema.json +288 -0
- package/dist/schemas/scoped.d.ts +424 -0
- package/dist/schemas/scoped.d.ts.map +1 -0
- package/dist/schemas/scoped.js +203 -0
- package/dist/schemas/scoped.js.map +1 -0
- package/dist/schemas/usage-aggregate-query.schema.json +86 -0
- package/dist/schemas/usage-page.schema.json +22 -0
- package/dist/schemas/usage-query.schema.json +77 -0
- package/dist/schemas/usage-summary.schema.json +468 -0
- package/dist/schemas/usage.d.ts +527 -0
- package/dist/schemas/usage.d.ts.map +1 -0
- package/dist/schemas/usage.js +142 -0
- package/dist/schemas/usage.js.map +1 -0
- package/dist/scoped-configuration.d.ts +208 -0
- package/dist/scoped-configuration.d.ts.map +1 -0
- package/dist/scoped-configuration.js +425 -0
- package/dist/scoped-configuration.js.map +1 -0
- package/dist/scripts/emit-schemas.d.ts +2 -0
- package/dist/scripts/emit-schemas.d.ts.map +1 -0
- package/dist/scripts/emit-schemas.js +24 -0
- package/dist/scripts/emit-schemas.js.map +1 -0
- package/dist/scripts/verify-bundle.d.ts +3 -0
- package/dist/scripts/verify-bundle.d.ts.map +1 -0
- package/dist/scripts/verify-bundle.js +59 -0
- package/dist/scripts/verify-bundle.js.map +1 -0
- package/dist/validation.d.ts +11 -0
- package/dist/validation.d.ts.map +1 -0
- package/dist/validation.js +41 -0
- package/dist/validation.js.map +1 -0
- package/package.json +31 -4
- package/third-party-licenses/ajv-formats@3.0.1/LICENSE +21 -0
- package/third-party-licenses/ajv@8.20.0/LICENSE +22 -0
- package/third-party-licenses/fast-deep-equal@3.1.3/LICENSE +21 -0
- package/third-party-licenses/fast-uri@3.1.7/LICENSE +30 -0
- package/third-party-licenses/json-schema-traverse@1.0.0/LICENSE +21 -0
- package/third-party-licenses/require-from-string@2.0.2/license +21 -0
- package/third-party-licenses/typescript@5.9.3/LICENSE.txt +55 -0
- package/third-party-licenses/typescript@5.9.3/ThirdPartyNoticeText.txt +193 -0
- package/third-party-licenses.json +102 -0
|
@@ -0,0 +1,191 @@
|
|
|
1
|
+
{
|
|
2
|
+
"type": "object",
|
|
3
|
+
"additionalProperties": false,
|
|
4
|
+
"required": [
|
|
5
|
+
"fromModel",
|
|
6
|
+
"toModel",
|
|
7
|
+
"relationship",
|
|
8
|
+
"migrationClass",
|
|
9
|
+
"better",
|
|
10
|
+
"cheaper",
|
|
11
|
+
"highlights",
|
|
12
|
+
"caveats",
|
|
13
|
+
"migrationSteps",
|
|
14
|
+
"evidenceIds"
|
|
15
|
+
],
|
|
16
|
+
"properties": {
|
|
17
|
+
"fromModel": {
|
|
18
|
+
"type": "string",
|
|
19
|
+
"minLength": 1
|
|
20
|
+
},
|
|
21
|
+
"toModel": {
|
|
22
|
+
"type": "string",
|
|
23
|
+
"minLength": 1
|
|
24
|
+
},
|
|
25
|
+
"relationship": {
|
|
26
|
+
"type": "string",
|
|
27
|
+
"enum": [
|
|
28
|
+
"successor",
|
|
29
|
+
"alternative",
|
|
30
|
+
"unknown"
|
|
31
|
+
]
|
|
32
|
+
},
|
|
33
|
+
"migrationClass": {
|
|
34
|
+
"type": "string",
|
|
35
|
+
"enum": [
|
|
36
|
+
"compatible-upgrade",
|
|
37
|
+
"adaptation-required",
|
|
38
|
+
"incompatible",
|
|
39
|
+
"unverified"
|
|
40
|
+
]
|
|
41
|
+
},
|
|
42
|
+
"better": {
|
|
43
|
+
"type": "object",
|
|
44
|
+
"additionalProperties": false,
|
|
45
|
+
"required": [
|
|
46
|
+
"verdict",
|
|
47
|
+
"scope",
|
|
48
|
+
"basis",
|
|
49
|
+
"reason",
|
|
50
|
+
"evidenceIds"
|
|
51
|
+
],
|
|
52
|
+
"properties": {
|
|
53
|
+
"verdict": {
|
|
54
|
+
"type": "string",
|
|
55
|
+
"enum": [
|
|
56
|
+
"yes",
|
|
57
|
+
"no",
|
|
58
|
+
"mixed",
|
|
59
|
+
"unknown"
|
|
60
|
+
]
|
|
61
|
+
},
|
|
62
|
+
"scope": {
|
|
63
|
+
"type": "string",
|
|
64
|
+
"enum": [
|
|
65
|
+
"model-quality",
|
|
66
|
+
"comparable-tasks",
|
|
67
|
+
"cost-per-successful-task"
|
|
68
|
+
]
|
|
69
|
+
},
|
|
70
|
+
"basis": {
|
|
71
|
+
"type": "string",
|
|
72
|
+
"enum": [
|
|
73
|
+
"provider-reported",
|
|
74
|
+
"independently-measured",
|
|
75
|
+
"insufficient-evidence"
|
|
76
|
+
]
|
|
77
|
+
},
|
|
78
|
+
"reason": {
|
|
79
|
+
"type": "string",
|
|
80
|
+
"minLength": 1
|
|
81
|
+
},
|
|
82
|
+
"evidenceIds": {
|
|
83
|
+
"type": "array",
|
|
84
|
+
"items": {
|
|
85
|
+
"type": "string",
|
|
86
|
+
"minLength": 1
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
},
|
|
91
|
+
"cheaper": {
|
|
92
|
+
"type": "object",
|
|
93
|
+
"additionalProperties": false,
|
|
94
|
+
"required": [
|
|
95
|
+
"verdict",
|
|
96
|
+
"scope",
|
|
97
|
+
"basis",
|
|
98
|
+
"reason",
|
|
99
|
+
"evidenceIds"
|
|
100
|
+
],
|
|
101
|
+
"properties": {
|
|
102
|
+
"verdict": {
|
|
103
|
+
"type": "string",
|
|
104
|
+
"enum": [
|
|
105
|
+
"yes",
|
|
106
|
+
"no",
|
|
107
|
+
"mixed",
|
|
108
|
+
"unknown"
|
|
109
|
+
]
|
|
110
|
+
},
|
|
111
|
+
"scope": {
|
|
112
|
+
"type": "string",
|
|
113
|
+
"enum": [
|
|
114
|
+
"model-quality",
|
|
115
|
+
"comparable-tasks",
|
|
116
|
+
"cost-per-successful-task"
|
|
117
|
+
]
|
|
118
|
+
},
|
|
119
|
+
"basis": {
|
|
120
|
+
"type": "string",
|
|
121
|
+
"enum": [
|
|
122
|
+
"provider-reported",
|
|
123
|
+
"independently-measured",
|
|
124
|
+
"insufficient-evidence"
|
|
125
|
+
]
|
|
126
|
+
},
|
|
127
|
+
"reason": {
|
|
128
|
+
"type": "string",
|
|
129
|
+
"minLength": 1
|
|
130
|
+
},
|
|
131
|
+
"evidenceIds": {
|
|
132
|
+
"type": "array",
|
|
133
|
+
"items": {
|
|
134
|
+
"type": "string",
|
|
135
|
+
"minLength": 1
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
},
|
|
140
|
+
"highlights": {
|
|
141
|
+
"type": "array",
|
|
142
|
+
"items": {
|
|
143
|
+
"type": "object",
|
|
144
|
+
"additionalProperties": false,
|
|
145
|
+
"required": [
|
|
146
|
+
"text",
|
|
147
|
+
"claimKey",
|
|
148
|
+
"evidenceIds"
|
|
149
|
+
],
|
|
150
|
+
"properties": {
|
|
151
|
+
"text": {
|
|
152
|
+
"type": "string",
|
|
153
|
+
"minLength": 1
|
|
154
|
+
},
|
|
155
|
+
"claimKey": {
|
|
156
|
+
"type": "string",
|
|
157
|
+
"minLength": 1
|
|
158
|
+
},
|
|
159
|
+
"evidenceIds": {
|
|
160
|
+
"type": "array",
|
|
161
|
+
"items": {
|
|
162
|
+
"type": "string",
|
|
163
|
+
"minLength": 1
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
},
|
|
169
|
+
"caveats": {
|
|
170
|
+
"type": "array",
|
|
171
|
+
"items": {
|
|
172
|
+
"type": "string",
|
|
173
|
+
"minLength": 1
|
|
174
|
+
}
|
|
175
|
+
},
|
|
176
|
+
"migrationSteps": {
|
|
177
|
+
"type": "array",
|
|
178
|
+
"items": {
|
|
179
|
+
"type": "string",
|
|
180
|
+
"minLength": 1
|
|
181
|
+
}
|
|
182
|
+
},
|
|
183
|
+
"evidenceIds": {
|
|
184
|
+
"type": "array",
|
|
185
|
+
"items": {
|
|
186
|
+
"type": "string",
|
|
187
|
+
"minLength": 1
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
}
|
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$id": "https://techis.dev/ai/contracts/v2/operation-contract-document.schema.json",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"additionalProperties": false,
|
|
5
|
+
"required": [
|
|
6
|
+
"schemaVersion",
|
|
7
|
+
"kind",
|
|
8
|
+
"applicationId",
|
|
9
|
+
"workspaceId",
|
|
10
|
+
"contractId",
|
|
11
|
+
"revision",
|
|
12
|
+
"operations",
|
|
13
|
+
"provenance"
|
|
14
|
+
],
|
|
15
|
+
"properties": {
|
|
16
|
+
"schemaVersion": {
|
|
17
|
+
"const": 2
|
|
18
|
+
},
|
|
19
|
+
"kind": {
|
|
20
|
+
"const": "operation-contract"
|
|
21
|
+
},
|
|
22
|
+
"applicationId": {
|
|
23
|
+
"$ref": "https://techis.dev/ai/contracts/common.schema.json#/definitions/applicationId"
|
|
24
|
+
},
|
|
25
|
+
"workspaceId": {
|
|
26
|
+
"type": "string",
|
|
27
|
+
"pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"
|
|
28
|
+
},
|
|
29
|
+
"contractId": {
|
|
30
|
+
"type": "string",
|
|
31
|
+
"pattern": "^[a-z0-9][a-z0-9.-]*$"
|
|
32
|
+
},
|
|
33
|
+
"revision": {
|
|
34
|
+
"type": "string",
|
|
35
|
+
"minLength": 1,
|
|
36
|
+
"maxLength": 128,
|
|
37
|
+
"pattern": "^(?:[A-Za-z0-9][A-Za-z0-9._+=-]*|[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}\\.[0-9]{3}Z)$",
|
|
38
|
+
"not": {
|
|
39
|
+
"enum": [
|
|
40
|
+
"latest",
|
|
41
|
+
"current",
|
|
42
|
+
"head",
|
|
43
|
+
"default",
|
|
44
|
+
"stable",
|
|
45
|
+
"next",
|
|
46
|
+
"channel"
|
|
47
|
+
]
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
"operations": {
|
|
51
|
+
"type": "array",
|
|
52
|
+
"minItems": 1,
|
|
53
|
+
"items": {
|
|
54
|
+
"type": "object",
|
|
55
|
+
"additionalProperties": false,
|
|
56
|
+
"required": [
|
|
57
|
+
"operationId",
|
|
58
|
+
"bindingId",
|
|
59
|
+
"inputModalities",
|
|
60
|
+
"providerTools",
|
|
61
|
+
"protectedPayloadPolicy",
|
|
62
|
+
"timeoutMs",
|
|
63
|
+
"webSearch",
|
|
64
|
+
"structuredOutput"
|
|
65
|
+
],
|
|
66
|
+
"properties": {
|
|
67
|
+
"operationId": {
|
|
68
|
+
"type": "string",
|
|
69
|
+
"pattern": "^[a-z0-9][a-z0-9.-]*$"
|
|
70
|
+
},
|
|
71
|
+
"bindingId": {
|
|
72
|
+
"type": "string",
|
|
73
|
+
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]*$"
|
|
74
|
+
},
|
|
75
|
+
"inputModalities": {
|
|
76
|
+
"type": "array",
|
|
77
|
+
"minItems": 1,
|
|
78
|
+
"uniqueItems": true,
|
|
79
|
+
"items": {
|
|
80
|
+
"$ref": "https://techis.dev/ai/contracts/common.schema.json#/definitions/modality"
|
|
81
|
+
}
|
|
82
|
+
},
|
|
83
|
+
"providerTools": {
|
|
84
|
+
"type": "array",
|
|
85
|
+
"items": {
|
|
86
|
+
"type": "string",
|
|
87
|
+
"minLength": 1
|
|
88
|
+
}
|
|
89
|
+
},
|
|
90
|
+
"protectedPayloadPolicy": {
|
|
91
|
+
"enum": [
|
|
92
|
+
"none",
|
|
93
|
+
"sanitized",
|
|
94
|
+
"forbidden"
|
|
95
|
+
]
|
|
96
|
+
},
|
|
97
|
+
"timeoutMs": {
|
|
98
|
+
"type": "integer",
|
|
99
|
+
"minimum": 1000,
|
|
100
|
+
"maximum": 600000
|
|
101
|
+
},
|
|
102
|
+
"webSearch": {
|
|
103
|
+
"type": "boolean"
|
|
104
|
+
},
|
|
105
|
+
"structuredOutput": {
|
|
106
|
+
"type": "boolean"
|
|
107
|
+
},
|
|
108
|
+
"outputSchema": {
|
|
109
|
+
"type": "object"
|
|
110
|
+
},
|
|
111
|
+
"imageDetail": {
|
|
112
|
+
"enum": [
|
|
113
|
+
"low",
|
|
114
|
+
"medium",
|
|
115
|
+
"high",
|
|
116
|
+
"original"
|
|
117
|
+
]
|
|
118
|
+
},
|
|
119
|
+
"compositionVersion": {
|
|
120
|
+
"type": "string",
|
|
121
|
+
"minLength": 1,
|
|
122
|
+
"maxLength": 64
|
|
123
|
+
},
|
|
124
|
+
"executionVariants": {
|
|
125
|
+
"type": "array",
|
|
126
|
+
"items": {
|
|
127
|
+
"type": "string",
|
|
128
|
+
"minLength": 1
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
},
|
|
134
|
+
"provenance": {
|
|
135
|
+
"type": "object",
|
|
136
|
+
"additionalProperties": false,
|
|
137
|
+
"required": [
|
|
138
|
+
"registeredBy",
|
|
139
|
+
"registeredAt"
|
|
140
|
+
],
|
|
141
|
+
"properties": {
|
|
142
|
+
"registeredBy": {
|
|
143
|
+
"type": "string",
|
|
144
|
+
"minLength": 1,
|
|
145
|
+
"maxLength": 128
|
|
146
|
+
},
|
|
147
|
+
"registeredAt": {
|
|
148
|
+
"$ref": "https://techis.dev/ai/contracts/common.schema.json#/definitions/isoDateTime"
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
}
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$id": "https://techis.dev/ai/contracts/persona-assignments.schema.json",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"additionalProperties": false,
|
|
5
|
+
"required": [
|
|
6
|
+
"schemaVersion",
|
|
7
|
+
"applicationId",
|
|
8
|
+
"environmentId",
|
|
9
|
+
"assignmentRevision",
|
|
10
|
+
"entries",
|
|
11
|
+
"updatedBy",
|
|
12
|
+
"updatedAt"
|
|
13
|
+
],
|
|
14
|
+
"properties": {
|
|
15
|
+
"schemaVersion": {
|
|
16
|
+
"const": 1
|
|
17
|
+
},
|
|
18
|
+
"applicationId": {
|
|
19
|
+
"$ref": "https://techis.dev/ai/contracts/common.schema.json#/definitions/applicationId"
|
|
20
|
+
},
|
|
21
|
+
"environmentId": {
|
|
22
|
+
"$ref": "https://techis.dev/ai/contracts/common.schema.json#/definitions/environmentId"
|
|
23
|
+
},
|
|
24
|
+
"assignmentRevision": {
|
|
25
|
+
"$ref": "https://techis.dev/ai/contracts/common.schema.json#/definitions/revision"
|
|
26
|
+
},
|
|
27
|
+
"applicationDefault": {
|
|
28
|
+
"anyOf": [
|
|
29
|
+
{
|
|
30
|
+
"type": "object",
|
|
31
|
+
"additionalProperties": false,
|
|
32
|
+
"required": [
|
|
33
|
+
"profileId",
|
|
34
|
+
"revision"
|
|
35
|
+
],
|
|
36
|
+
"properties": {
|
|
37
|
+
"profileId": {
|
|
38
|
+
"$ref": "https://techis.dev/ai/contracts/common.schema.json#/definitions/profileId"
|
|
39
|
+
},
|
|
40
|
+
"revision": {
|
|
41
|
+
"$ref": "https://techis.dev/ai/contracts/common.schema.json#/definitions/revision"
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
"type": "object",
|
|
47
|
+
"additionalProperties": false,
|
|
48
|
+
"required": [
|
|
49
|
+
"profileId",
|
|
50
|
+
"channel"
|
|
51
|
+
],
|
|
52
|
+
"properties": {
|
|
53
|
+
"profileId": {
|
|
54
|
+
"$ref": "https://techis.dev/ai/contracts/common.schema.json#/definitions/profileId"
|
|
55
|
+
},
|
|
56
|
+
"channel": {
|
|
57
|
+
"type": "string",
|
|
58
|
+
"minLength": 1
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
]
|
|
63
|
+
},
|
|
64
|
+
"entries": {
|
|
65
|
+
"type": "array",
|
|
66
|
+
"items": {
|
|
67
|
+
"type": "object",
|
|
68
|
+
"additionalProperties": false,
|
|
69
|
+
"required": [
|
|
70
|
+
"personaId",
|
|
71
|
+
"profile"
|
|
72
|
+
],
|
|
73
|
+
"properties": {
|
|
74
|
+
"personaId": {
|
|
75
|
+
"$ref": "https://techis.dev/ai/contracts/common.schema.json#/definitions/personaId"
|
|
76
|
+
},
|
|
77
|
+
"profile": {
|
|
78
|
+
"anyOf": [
|
|
79
|
+
{
|
|
80
|
+
"type": "object",
|
|
81
|
+
"additionalProperties": false,
|
|
82
|
+
"required": [
|
|
83
|
+
"profileId",
|
|
84
|
+
"revision"
|
|
85
|
+
],
|
|
86
|
+
"properties": {
|
|
87
|
+
"profileId": {
|
|
88
|
+
"$ref": "https://techis.dev/ai/contracts/common.schema.json#/definitions/profileId"
|
|
89
|
+
},
|
|
90
|
+
"revision": {
|
|
91
|
+
"$ref": "https://techis.dev/ai/contracts/common.schema.json#/definitions/revision"
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
"type": "object",
|
|
97
|
+
"additionalProperties": false,
|
|
98
|
+
"required": [
|
|
99
|
+
"profileId",
|
|
100
|
+
"channel"
|
|
101
|
+
],
|
|
102
|
+
"properties": {
|
|
103
|
+
"profileId": {
|
|
104
|
+
"$ref": "https://techis.dev/ai/contracts/common.schema.json#/definitions/profileId"
|
|
105
|
+
},
|
|
106
|
+
"channel": {
|
|
107
|
+
"type": "string",
|
|
108
|
+
"minLength": 1
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
]
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
},
|
|
117
|
+
"updatedBy": {
|
|
118
|
+
"type": "string",
|
|
119
|
+
"minLength": 1
|
|
120
|
+
},
|
|
121
|
+
"updatedAt": {
|
|
122
|
+
"$ref": "https://techis.dev/ai/contracts/common.schema.json#/definitions/isoDateTime"
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
}
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$id": "https://techis.dev/ai/contracts/persona-registry-overlay.schema.json",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"additionalProperties": false,
|
|
5
|
+
"required": [
|
|
6
|
+
"schemaVersion",
|
|
7
|
+
"kind",
|
|
8
|
+
"applicationId",
|
|
9
|
+
"personaId",
|
|
10
|
+
"lifecycle",
|
|
11
|
+
"scope",
|
|
12
|
+
"sourceLinks",
|
|
13
|
+
"curated"
|
|
14
|
+
],
|
|
15
|
+
"properties": {
|
|
16
|
+
"schemaVersion": {
|
|
17
|
+
"const": 1
|
|
18
|
+
},
|
|
19
|
+
"kind": {
|
|
20
|
+
"const": "persona-registry-overlay"
|
|
21
|
+
},
|
|
22
|
+
"applicationId": {
|
|
23
|
+
"$ref": "https://techis.dev/ai/contracts/common.schema.json#/definitions/applicationId"
|
|
24
|
+
},
|
|
25
|
+
"personaId": {
|
|
26
|
+
"$ref": "https://techis.dev/ai/contracts/common.schema.json#/definitions/personaId"
|
|
27
|
+
},
|
|
28
|
+
"owner": {
|
|
29
|
+
"type": "object",
|
|
30
|
+
"additionalProperties": false,
|
|
31
|
+
"properties": {
|
|
32
|
+
"team": {
|
|
33
|
+
"type": "string",
|
|
34
|
+
"minLength": 1,
|
|
35
|
+
"maxLength": 200
|
|
36
|
+
},
|
|
37
|
+
"contact": {
|
|
38
|
+
"type": "string",
|
|
39
|
+
"minLength": 1,
|
|
40
|
+
"maxLength": 320
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
"lifecycle": {
|
|
45
|
+
"enum": [
|
|
46
|
+
"active",
|
|
47
|
+
"deprecated",
|
|
48
|
+
"retired"
|
|
49
|
+
]
|
|
50
|
+
},
|
|
51
|
+
"scope": {
|
|
52
|
+
"enum": [
|
|
53
|
+
"application",
|
|
54
|
+
"shared"
|
|
55
|
+
]
|
|
56
|
+
},
|
|
57
|
+
"sourceLinks": {
|
|
58
|
+
"type": "array",
|
|
59
|
+
"maxItems": 20,
|
|
60
|
+
"items": {
|
|
61
|
+
"type": "string",
|
|
62
|
+
"minLength": 1,
|
|
63
|
+
"maxLength": 500
|
|
64
|
+
}
|
|
65
|
+
},
|
|
66
|
+
"summary": {
|
|
67
|
+
"type": "string",
|
|
68
|
+
"maxLength": 1000
|
|
69
|
+
},
|
|
70
|
+
"notes": {
|
|
71
|
+
"type": "string",
|
|
72
|
+
"maxLength": 2000
|
|
73
|
+
},
|
|
74
|
+
"curated": {
|
|
75
|
+
"type": "object",
|
|
76
|
+
"additionalProperties": false,
|
|
77
|
+
"required": [
|
|
78
|
+
"by",
|
|
79
|
+
"at"
|
|
80
|
+
],
|
|
81
|
+
"properties": {
|
|
82
|
+
"by": {
|
|
83
|
+
"type": "string",
|
|
84
|
+
"minLength": 1,
|
|
85
|
+
"maxLength": 200
|
|
86
|
+
},
|
|
87
|
+
"at": {
|
|
88
|
+
"$ref": "https://techis.dev/ai/contracts/common.schema.json#/definitions/isoDateTime"
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
}
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$id": "https://techis.dev/ai/contracts/v2/persona-source-document.schema.json",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"additionalProperties": false,
|
|
5
|
+
"required": [
|
|
6
|
+
"schemaVersion",
|
|
7
|
+
"kind",
|
|
8
|
+
"applicationId",
|
|
9
|
+
"bindingId",
|
|
10
|
+
"workspaceId",
|
|
11
|
+
"systemInstructions",
|
|
12
|
+
"instructionHash",
|
|
13
|
+
"revision",
|
|
14
|
+
"provenance"
|
|
15
|
+
],
|
|
16
|
+
"properties": {
|
|
17
|
+
"schemaVersion": {
|
|
18
|
+
"const": 2
|
|
19
|
+
},
|
|
20
|
+
"kind": {
|
|
21
|
+
"const": "persona-source"
|
|
22
|
+
},
|
|
23
|
+
"applicationId": {
|
|
24
|
+
"$ref": "https://techis.dev/ai/contracts/common.schema.json#/definitions/applicationId"
|
|
25
|
+
},
|
|
26
|
+
"bindingId": {
|
|
27
|
+
"type": "string",
|
|
28
|
+
"pattern": "^[a-zA-Z0-9][a-zA-Z0-9._:-]*$"
|
|
29
|
+
},
|
|
30
|
+
"workspaceId": {
|
|
31
|
+
"type": "string",
|
|
32
|
+
"pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"
|
|
33
|
+
},
|
|
34
|
+
"systemInstructions": {
|
|
35
|
+
"type": "string",
|
|
36
|
+
"minLength": 1
|
|
37
|
+
},
|
|
38
|
+
"instructionHash": {
|
|
39
|
+
"type": "string",
|
|
40
|
+
"pattern": "^[a-f0-9]{64}$"
|
|
41
|
+
},
|
|
42
|
+
"revision": {
|
|
43
|
+
"type": "string",
|
|
44
|
+
"minLength": 1,
|
|
45
|
+
"maxLength": 128,
|
|
46
|
+
"pattern": "^(?:[A-Za-z0-9][A-Za-z0-9._+=-]*|[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}\\.[0-9]{3}Z)$",
|
|
47
|
+
"not": {
|
|
48
|
+
"enum": [
|
|
49
|
+
"latest",
|
|
50
|
+
"current",
|
|
51
|
+
"head",
|
|
52
|
+
"default",
|
|
53
|
+
"stable",
|
|
54
|
+
"next",
|
|
55
|
+
"channel"
|
|
56
|
+
]
|
|
57
|
+
}
|
|
58
|
+
},
|
|
59
|
+
"sourceVersion": {
|
|
60
|
+
"type": "string",
|
|
61
|
+
"minLength": 1,
|
|
62
|
+
"maxLength": 128
|
|
63
|
+
},
|
|
64
|
+
"provenance": {
|
|
65
|
+
"type": "object",
|
|
66
|
+
"additionalProperties": false,
|
|
67
|
+
"required": [
|
|
68
|
+
"registeredBy",
|
|
69
|
+
"registeredAt"
|
|
70
|
+
],
|
|
71
|
+
"properties": {
|
|
72
|
+
"registeredBy": {
|
|
73
|
+
"type": "string",
|
|
74
|
+
"minLength": 1,
|
|
75
|
+
"maxLength": 128
|
|
76
|
+
},
|
|
77
|
+
"registeredAt": {
|
|
78
|
+
"$ref": "https://techis.dev/ai/contracts/common.schema.json#/definitions/isoDateTime"
|
|
79
|
+
},
|
|
80
|
+
"baseDocumentRef": {
|
|
81
|
+
"$ref": "https://techis.dev/ai/contracts/v2/exact-document-ref.schema.json"
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
}
|