@techis/ai-contracts 0.0.0-stage → 0.3.0-rc.15

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 (171) hide show
  1. package/LICENSE +122 -0
  2. package/README.md +28 -3
  3. package/THIRD_PARTY_NOTICES +34 -0
  4. package/dist/availability.d.ts +21 -0
  5. package/dist/availability.d.ts.map +1 -0
  6. package/dist/availability.js +2 -0
  7. package/dist/availability.js.map +1 -0
  8. package/dist/catalog-adoption.d.ts +20 -0
  9. package/dist/catalog-adoption.d.ts.map +1 -0
  10. package/dist/catalog-adoption.js +76 -0
  11. package/dist/catalog-adoption.js.map +1 -0
  12. package/dist/catalog-composition.d.ts +10 -0
  13. package/dist/catalog-composition.d.ts.map +1 -0
  14. package/dist/catalog-composition.js +58 -0
  15. package/dist/catalog-composition.js.map +1 -0
  16. package/dist/catalog-delivery.d.ts +47 -0
  17. package/dist/catalog-delivery.d.ts.map +1 -0
  18. package/dist/catalog-delivery.js +83 -0
  19. package/dist/catalog-delivery.js.map +1 -0
  20. package/dist/catalog-package-data.d.ts +8 -0
  21. package/dist/catalog-package-data.d.ts.map +1 -0
  22. package/dist/catalog-package-data.js +2640 -0
  23. package/dist/catalog-package-data.js.map +1 -0
  24. package/dist/compatibility.d.ts +68 -0
  25. package/dist/compatibility.d.ts.map +1 -0
  26. package/dist/compatibility.js +207 -0
  27. package/dist/compatibility.js.map +1 -0
  28. package/dist/configuration-bundle.d.ts +201 -0
  29. package/dist/configuration-bundle.d.ts.map +1 -0
  30. package/dist/configuration-bundle.js +619 -0
  31. package/dist/configuration-bundle.js.map +1 -0
  32. package/dist/entities.d.ts +619 -0
  33. package/dist/entities.d.ts.map +1 -0
  34. package/dist/entities.js +2 -0
  35. package/dist/entities.js.map +1 -0
  36. package/dist/fixtures.d.ts +25 -0
  37. package/dist/fixtures.d.ts.map +1 -0
  38. package/dist/fixtures.js +546 -0
  39. package/dist/fixtures.js.map +1 -0
  40. package/dist/hash.d.ts +8 -0
  41. package/dist/hash.d.ts.map +1 -0
  42. package/dist/hash.js +13 -0
  43. package/dist/hash.js.map +1 -0
  44. package/dist/host-qualification.d.ts +90 -0
  45. package/dist/host-qualification.d.ts.map +1 -0
  46. package/dist/host-qualification.js +65 -0
  47. package/dist/host-qualification.js.map +1 -0
  48. package/dist/icc-catalog.d.ts +31 -0
  49. package/dist/icc-catalog.d.ts.map +1 -0
  50. package/dist/icc-catalog.js +321 -0
  51. package/dist/icc-catalog.js.map +1 -0
  52. package/dist/icc-csf-profiles.d.ts +28 -0
  53. package/dist/icc-csf-profiles.d.ts.map +1 -0
  54. package/dist/icc-csf-profiles.js +394 -0
  55. package/dist/icc-csf-profiles.js.map +1 -0
  56. package/dist/index.d.ts +24 -0
  57. package/dist/index.d.ts.map +1 -0
  58. package/dist/index.js +24 -0
  59. package/dist/index.js.map +1 -0
  60. package/dist/model-maintenance.d.ts +216 -0
  61. package/dist/model-maintenance.d.ts.map +1 -0
  62. package/dist/model-maintenance.js +387 -0
  63. package/dist/model-maintenance.js.map +1 -0
  64. package/dist/model-package-data.d.ts +3 -0
  65. package/dist/model-package-data.d.ts.map +1 -0
  66. package/dist/model-package-data.js +867 -0
  67. package/dist/model-package-data.js.map +1 -0
  68. package/dist/persona-inventory.d.ts +143 -0
  69. package/dist/persona-inventory.d.ts.map +1 -0
  70. package/dist/persona-inventory.js +56 -0
  71. package/dist/persona-inventory.js.map +1 -0
  72. package/dist/profile-identity.d.ts +27 -0
  73. package/dist/profile-identity.d.ts.map +1 -0
  74. package/dist/profile-identity.js +30 -0
  75. package/dist/profile-identity.js.map +1 -0
  76. package/dist/reasoning-validation.d.ts +9 -0
  77. package/dist/reasoning-validation.d.ts.map +1 -0
  78. package/dist/reasoning-validation.js +79 -0
  79. package/dist/reasoning-validation.js.map +1 -0
  80. package/dist/reasoning.d.ts +55 -0
  81. package/dist/reasoning.d.ts.map +1 -0
  82. package/dist/reasoning.js +13 -0
  83. package/dist/reasoning.js.map +1 -0
  84. package/dist/receipt.d.ts +16 -0
  85. package/dist/receipt.d.ts.map +1 -0
  86. package/dist/receipt.js +18 -0
  87. package/dist/receipt.js.map +1 -0
  88. package/dist/schemas/adoption-change-set.schema.json +91 -0
  89. package/dist/schemas/bundle.d.ts +124 -0
  90. package/dist/schemas/bundle.d.ts.map +1 -0
  91. package/dist/schemas/bundle.js +84 -0
  92. package/dist/schemas/bundle.js.map +1 -0
  93. package/dist/schemas/catalog-release.schema.json +110 -0
  94. package/dist/schemas/catalog-review-input.schema.json +179 -0
  95. package/dist/schemas/catalog-review-output.schema.json +259 -0
  96. package/dist/schemas/catalog-review-output.v2.schema.json +251 -0
  97. package/dist/schemas/catalog-review-record.schema.json +391 -0
  98. package/dist/schemas/client-persona-inventory.schema.json +107 -0
  99. package/dist/schemas/common.schema.json +324 -0
  100. package/dist/schemas/config.d.ts +1106 -0
  101. package/dist/schemas/config.d.ts.map +1 -0
  102. package/dist/schemas/config.js +496 -0
  103. package/dist/schemas/config.js.map +1 -0
  104. package/dist/schemas/configuration-bundle-manifest.schema.json +143 -0
  105. package/dist/schemas/configuration-manifest.schema.json +109 -0
  106. package/dist/schemas/connection.schema.json +49 -0
  107. package/dist/schemas/core.d.ts +1333 -0
  108. package/dist/schemas/core.d.ts.map +1 -0
  109. package/dist/schemas/core.js +341 -0
  110. package/dist/schemas/core.js.map +1 -0
  111. package/dist/schemas/desktop-configuration-revision.schema.json +146 -0
  112. package/dist/schemas/execution-profile-revision.schema.json +235 -0
  113. package/dist/schemas/execution-receipt.schema.json +431 -0
  114. package/dist/schemas/host-adapter-qualification.schema.json +161 -0
  115. package/dist/schemas/host-qualification-policy.schema.json +50 -0
  116. package/dist/schemas/index.d.ts +11 -0
  117. package/dist/schemas/index.d.ts.map +1 -0
  118. package/dist/schemas/index.js +34 -0
  119. package/dist/schemas/index.js.map +1 -0
  120. package/dist/schemas/inventory.d.ts +170 -0
  121. package/dist/schemas/inventory.d.ts.map +1 -0
  122. package/dist/schemas/inventory.js +87 -0
  123. package/dist/schemas/inventory.js.map +1 -0
  124. package/dist/schemas/model-definition.schema.json +429 -0
  125. package/dist/schemas/model-package-release.schema.json +594 -0
  126. package/dist/schemas/model-upgrade-advisory.schema.json +191 -0
  127. package/dist/schemas/operation-contract-document.schema.json +153 -0
  128. package/dist/schemas/persona-assignments.schema.json +125 -0
  129. package/dist/schemas/persona-registry-overlay.schema.json +93 -0
  130. package/dist/schemas/persona-source-document.schema.json +86 -0
  131. package/dist/schemas/persona-specification.schema.json +122 -0
  132. package/dist/schemas/price-revision.schema.json +299 -0
  133. package/dist/schemas/profile-assessment.schema.json +288 -0
  134. package/dist/schemas/scoped.d.ts +424 -0
  135. package/dist/schemas/scoped.d.ts.map +1 -0
  136. package/dist/schemas/scoped.js +203 -0
  137. package/dist/schemas/scoped.js.map +1 -0
  138. package/dist/schemas/usage-aggregate-query.schema.json +86 -0
  139. package/dist/schemas/usage-page.schema.json +22 -0
  140. package/dist/schemas/usage-query.schema.json +77 -0
  141. package/dist/schemas/usage-summary.schema.json +468 -0
  142. package/dist/schemas/usage.d.ts +527 -0
  143. package/dist/schemas/usage.d.ts.map +1 -0
  144. package/dist/schemas/usage.js +142 -0
  145. package/dist/schemas/usage.js.map +1 -0
  146. package/dist/scoped-configuration.d.ts +208 -0
  147. package/dist/scoped-configuration.d.ts.map +1 -0
  148. package/dist/scoped-configuration.js +425 -0
  149. package/dist/scoped-configuration.js.map +1 -0
  150. package/dist/scripts/emit-schemas.d.ts +2 -0
  151. package/dist/scripts/emit-schemas.d.ts.map +1 -0
  152. package/dist/scripts/emit-schemas.js +24 -0
  153. package/dist/scripts/emit-schemas.js.map +1 -0
  154. package/dist/scripts/verify-bundle.d.ts +3 -0
  155. package/dist/scripts/verify-bundle.d.ts.map +1 -0
  156. package/dist/scripts/verify-bundle.js +59 -0
  157. package/dist/scripts/verify-bundle.js.map +1 -0
  158. package/dist/validation.d.ts +11 -0
  159. package/dist/validation.d.ts.map +1 -0
  160. package/dist/validation.js +41 -0
  161. package/dist/validation.js.map +1 -0
  162. package/package.json +33 -6
  163. package/third-party-licenses/ajv-formats@3.0.1/LICENSE +21 -0
  164. package/third-party-licenses/ajv@8.20.0/LICENSE +22 -0
  165. package/third-party-licenses/fast-deep-equal@3.1.3/LICENSE +21 -0
  166. package/third-party-licenses/fast-uri@3.1.7/LICENSE +30 -0
  167. package/third-party-licenses/json-schema-traverse@1.0.0/LICENSE +21 -0
  168. package/third-party-licenses/require-from-string@2.0.2/license +21 -0
  169. package/third-party-licenses/typescript@5.9.3/LICENSE.txt +55 -0
  170. package/third-party-licenses/typescript@5.9.3/ThirdPartyNoticeText.txt +193 -0
  171. package/third-party-licenses.json +102 -0
@@ -0,0 +1,143 @@
1
+ {
2
+ "$id": "https://techis.dev/ai/contracts/configuration-bundle-manifest.schema.json",
3
+ "type": "object",
4
+ "additionalProperties": false,
5
+ "required": [
6
+ "schemaVersion",
7
+ "kind",
8
+ "bundleVersion",
9
+ "compatibleRuntime",
10
+ "schemaVersions",
11
+ "provenance",
12
+ "documents"
13
+ ],
14
+ "properties": {
15
+ "schemaVersion": {
16
+ "const": 1
17
+ },
18
+ "kind": {
19
+ "const": "techis-configuration-bundle-manifest"
20
+ },
21
+ "bundleVersion": {
22
+ "type": "string",
23
+ "minLength": 1,
24
+ "maxLength": 64
25
+ },
26
+ "compatibleRuntime": {
27
+ "type": "string",
28
+ "pattern": "^@techis/ai-runtime@(\\*|>=|>|<=|<|=|\\^|~|[0-9])[0-9A-Za-z.,<>=~^ *-]*$",
29
+ "minLength": 1,
30
+ "maxLength": 256
31
+ },
32
+ "schemaVersions": {
33
+ "type": "object",
34
+ "additionalProperties": false,
35
+ "required": [
36
+ "profiles",
37
+ "catalog"
38
+ ],
39
+ "properties": {
40
+ "profiles": {
41
+ "const": 2
42
+ },
43
+ "catalog": {
44
+ "enum": [
45
+ 1,
46
+ 2
47
+ ]
48
+ },
49
+ "personaSources": {
50
+ "const": 2
51
+ },
52
+ "operationContract": {
53
+ "const": 2
54
+ }
55
+ }
56
+ },
57
+ "provenance": {
58
+ "type": "object",
59
+ "additionalProperties": false,
60
+ "required": [
61
+ "builtAt",
62
+ "builtBy",
63
+ "secretsIncluded",
64
+ "source"
65
+ ],
66
+ "properties": {
67
+ "builtAt": {
68
+ "$ref": "https://techis.dev/ai/contracts/common.schema.json#/definitions/isoDateTime"
69
+ },
70
+ "builtBy": {
71
+ "type": "string",
72
+ "minLength": 1,
73
+ "maxLength": 200
74
+ },
75
+ "secretsIncluded": {
76
+ "const": false
77
+ },
78
+ "source": {
79
+ "anyOf": [
80
+ {
81
+ "type": "object",
82
+ "additionalProperties": false,
83
+ "required": [
84
+ "kind",
85
+ "storeDescription",
86
+ "revisions"
87
+ ],
88
+ "properties": {
89
+ "kind": {
90
+ "const": "management-store"
91
+ },
92
+ "storeDescription": {
93
+ "type": "string",
94
+ "minLength": 1,
95
+ "maxLength": 500
96
+ },
97
+ "revisions": {
98
+ "type": "object",
99
+ "additionalProperties": {
100
+ "type": "string",
101
+ "minLength": 1,
102
+ "maxLength": 256
103
+ }
104
+ }
105
+ }
106
+ },
107
+ {
108
+ "type": "object",
109
+ "additionalProperties": false,
110
+ "required": [
111
+ "kind"
112
+ ],
113
+ "properties": {
114
+ "kind": {
115
+ "const": "authored-offline"
116
+ },
117
+ "description": {
118
+ "type": "string",
119
+ "maxLength": 500
120
+ }
121
+ }
122
+ }
123
+ ]
124
+ },
125
+ "sources": {
126
+ "type": "array",
127
+ "items": {
128
+ "type": "string",
129
+ "maxLength": 500
130
+ }
131
+ }
132
+ }
133
+ },
134
+ "documents": {
135
+ "type": "object",
136
+ "minProperties": 3,
137
+ "additionalProperties": {
138
+ "type": "string",
139
+ "pattern": "^[a-f0-9]{64}$"
140
+ }
141
+ }
142
+ }
143
+ }
@@ -0,0 +1,109 @@
1
+ {
2
+ "$id": "https://techis.dev/ai/contracts/configuration-manifest.schema.json",
3
+ "type": "object",
4
+ "additionalProperties": false,
5
+ "required": [
6
+ "schemaVersion",
7
+ "applicationId",
8
+ "environmentId",
9
+ "manifestRevision",
10
+ "references",
11
+ "adapterRequirements",
12
+ "publication"
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
+ "manifestRevision": {
25
+ "$ref": "https://techis.dev/ai/contracts/common.schema.json#/definitions/revision"
26
+ },
27
+ "references": {
28
+ "type": "object",
29
+ "additionalProperties": false,
30
+ "required": [
31
+ "catalogRevision",
32
+ "priceRevisions",
33
+ "profiles",
34
+ "personas",
35
+ "assignmentRevision",
36
+ "connections"
37
+ ],
38
+ "properties": {
39
+ "catalogRevision": {
40
+ "$ref": "https://techis.dev/ai/contracts/common.schema.json#/definitions/revision"
41
+ },
42
+ "priceRevisions": {
43
+ "type": "object",
44
+ "additionalProperties": {
45
+ "type": "string",
46
+ "minLength": 1
47
+ }
48
+ },
49
+ "profiles": {
50
+ "type": "object",
51
+ "additionalProperties": {
52
+ "$ref": "https://techis.dev/ai/contracts/common.schema.json#/definitions/revision"
53
+ }
54
+ },
55
+ "personas": {
56
+ "type": "object",
57
+ "additionalProperties": {
58
+ "$ref": "https://techis.dev/ai/contracts/common.schema.json#/definitions/revision"
59
+ }
60
+ },
61
+ "assignmentRevision": {
62
+ "$ref": "https://techis.dev/ai/contracts/common.schema.json#/definitions/revision"
63
+ },
64
+ "connections": {
65
+ "type": "array",
66
+ "items": {
67
+ "$ref": "https://techis.dev/ai/contracts/connection.schema.json"
68
+ }
69
+ }
70
+ }
71
+ },
72
+ "adapterRequirements": {
73
+ "type": "object",
74
+ "additionalProperties": {
75
+ "type": "object",
76
+ "additionalProperties": false,
77
+ "required": [
78
+ "minVersion"
79
+ ],
80
+ "properties": {
81
+ "minVersion": {
82
+ "type": "string",
83
+ "minLength": 1
84
+ }
85
+ }
86
+ }
87
+ },
88
+ "publication": {
89
+ "type": "object",
90
+ "additionalProperties": false,
91
+ "required": [
92
+ "publishedAt",
93
+ "publishedBy"
94
+ ],
95
+ "properties": {
96
+ "publishedAt": {
97
+ "$ref": "https://techis.dev/ai/contracts/common.schema.json#/definitions/isoDateTime"
98
+ },
99
+ "publishedBy": {
100
+ "type": "string",
101
+ "minLength": 1
102
+ },
103
+ "supersedes": {
104
+ "$ref": "https://techis.dev/ai/contracts/common.schema.json#/definitions/revision"
105
+ }
106
+ }
107
+ }
108
+ }
109
+ }
@@ -0,0 +1,49 @@
1
+ {
2
+ "$id": "https://techis.dev/ai/contracts/connection.schema.json",
3
+ "type": "object",
4
+ "additionalProperties": false,
5
+ "required": [
6
+ "schemaVersion",
7
+ "applicationId",
8
+ "environmentId",
9
+ "provider",
10
+ "credentialReference"
11
+ ],
12
+ "properties": {
13
+ "schemaVersion": {
14
+ "const": 1
15
+ },
16
+ "applicationId": {
17
+ "$ref": "https://techis.dev/ai/contracts/common.schema.json#/definitions/applicationId"
18
+ },
19
+ "environmentId": {
20
+ "$ref": "https://techis.dev/ai/contracts/common.schema.json#/definitions/environmentId"
21
+ },
22
+ "provider": {
23
+ "type": "string",
24
+ "minLength": 1
25
+ },
26
+ "endpoint": {
27
+ "type": "string",
28
+ "minLength": 1
29
+ },
30
+ "credentialReference": {
31
+ "type": "string",
32
+ "minLength": 1
33
+ },
34
+ "operationalLimits": {
35
+ "type": "object",
36
+ "additionalProperties": false,
37
+ "properties": {
38
+ "concurrency": {
39
+ "type": "integer",
40
+ "minimum": 1
41
+ },
42
+ "requestsPerMinute": {
43
+ "type": "integer",
44
+ "minimum": 1
45
+ }
46
+ }
47
+ }
48
+ }
49
+ }