@ankhorage/contracts 26.2.1 → 26.2.2

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 (261) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/README.md +1 -1
  3. package/dist/appManifest/bindings.js +1 -1
  4. package/dist/appManifest/bindings.js.map +1 -1
  5. package/dist/appManifest/constants.js.map +1 -1
  6. package/dist/appManifest/dataSources.js +2 -2
  7. package/dist/appManifest/dataSources.js.map +1 -1
  8. package/dist/appManifest/isAppManifest.d.ts +1 -1
  9. package/dist/appManifest/isAppManifest.d.ts.map +1 -1
  10. package/dist/appManifest/isAppManifest.js +8 -8
  11. package/dist/appManifest/isAppManifest.js.map +1 -1
  12. package/dist/appManifest/isAppStateSpec.d.ts +1 -1
  13. package/dist/appManifest/isAppStateSpec.d.ts.map +1 -1
  14. package/dist/appManifest/isAppStateSpec.js.map +1 -1
  15. package/dist/appManifest/isManifestValue.js +1 -1
  16. package/dist/appManifest/isManifestValue.js.map +1 -1
  17. package/dist/appManifest/media.d.ts +1 -1
  18. package/dist/appManifest/media.d.ts.map +1 -1
  19. package/dist/appManifest/media.js +1 -1
  20. package/dist/appManifest/media.js.map +1 -1
  21. package/dist/appManifest/navigator.d.ts +1 -1
  22. package/dist/appManifest/navigator.d.ts.map +1 -1
  23. package/dist/appManifest/navigator.js +3 -3
  24. package/dist/appManifest/navigator.js.map +1 -1
  25. package/dist/appManifest/navigatorOptions.js +1 -1
  26. package/dist/appManifest/navigatorOptions.js.map +1 -1
  27. package/dist/appManifest/parseAppManifest.d.ts +1 -1
  28. package/dist/appManifest/parseAppManifest.d.ts.map +1 -1
  29. package/dist/appManifest/parseAppManifest.js +1 -1
  30. package/dist/appManifest/parseAppManifest.js.map +1 -1
  31. package/dist/appManifest/screens.d.ts +2 -2
  32. package/dist/appManifest/screens.d.ts.map +1 -1
  33. package/dist/appManifest/screens.js +6 -6
  34. package/dist/appManifest/screens.js.map +1 -1
  35. package/dist/appManifest.d.ts +4 -4
  36. package/dist/appManifest.d.ts.map +1 -1
  37. package/dist/appManifest.js +2 -2
  38. package/dist/appManifest.js.map +1 -1
  39. package/dist/auth.d.ts +5 -5
  40. package/dist/auth.d.ts.map +1 -1
  41. package/dist/auth.js.map +1 -1
  42. package/dist/bindings.d.ts +3 -3
  43. package/dist/bindings.d.ts.map +1 -1
  44. package/dist/bindings.js.map +1 -1
  45. package/dist/cli/index.d.ts +1 -1
  46. package/dist/cli/index.d.ts.map +1 -1
  47. package/dist/cli/index.js.map +1 -1
  48. package/dist/data/apis.d.ts +6 -6
  49. package/dist/data/apis.d.ts.map +1 -1
  50. package/dist/data/apis.js.map +1 -1
  51. package/dist/data/diagnostics.d.ts +1 -1
  52. package/dist/data/diagnostics.d.ts.map +1 -1
  53. package/dist/data/diagnostics.js.map +1 -1
  54. package/dist/data/endpoints.d.ts +5 -5
  55. package/dist/data/endpoints.d.ts.map +1 -1
  56. package/dist/data/endpoints.js.map +1 -1
  57. package/dist/data/index.d.ts +10 -10
  58. package/dist/data/index.d.ts.map +1 -1
  59. package/dist/data/index.js +10 -10
  60. package/dist/data/index.js.map +1 -1
  61. package/dist/data/isApiDefinitionRegistry.d.ts +1 -1
  62. package/dist/data/isApiDefinitionRegistry.d.ts.map +1 -1
  63. package/dist/data/isApiDefinitionRegistry.js +2 -2
  64. package/dist/data/isApiDefinitionRegistry.js.map +1 -1
  65. package/dist/data/operations.d.ts +5 -5
  66. package/dist/data/operations.d.ts.map +1 -1
  67. package/dist/data/operations.js.map +1 -1
  68. package/dist/data/refs.d.ts +2 -2
  69. package/dist/data/refs.d.ts.map +1 -1
  70. package/dist/data/refs.js.map +1 -1
  71. package/dist/data/schemas.d.ts +3 -3
  72. package/dist/data/schemas.d.ts.map +1 -1
  73. package/dist/data/schemas.js.map +1 -1
  74. package/dist/data/sources.d.ts +6 -6
  75. package/dist/data/sources.d.ts.map +1 -1
  76. package/dist/data/sources.js.map +1 -1
  77. package/dist/data/values.d.ts +1 -1
  78. package/dist/data/values.d.ts.map +1 -1
  79. package/dist/data/values.js.map +1 -1
  80. package/dist/icon.js +1 -1
  81. package/dist/icon.js.map +1 -1
  82. package/dist/index.d.ts +24 -24
  83. package/dist/index.d.ts.map +1 -1
  84. package/dist/index.js +24 -24
  85. package/dist/index.js.map +1 -1
  86. package/dist/infra/isInfraAdapterDescriptor.d.ts +1 -1
  87. package/dist/infra/isInfraAdapterDescriptor.d.ts.map +1 -1
  88. package/dist/infra/isInfraAdapterDescriptor.js +2 -2
  89. package/dist/infra/isInfraAdapterDescriptor.js.map +1 -1
  90. package/dist/infra/isInfraAuthSpec.d.ts +1 -1
  91. package/dist/infra/isInfraAuthSpec.d.ts.map +1 -1
  92. package/dist/infra/isInfraAuthSpec.js +4 -4
  93. package/dist/infra/isInfraAuthSpec.js.map +1 -1
  94. package/dist/infra/isInfraCredentialRef.js +1 -1
  95. package/dist/infra/isInfraCredentialRef.js.map +1 -1
  96. package/dist/infra/isInfraDeploymentSpec.d.ts +1 -1
  97. package/dist/infra/isInfraDeploymentSpec.d.ts.map +1 -1
  98. package/dist/infra/isInfraDeploymentSpec.js +4 -4
  99. package/dist/infra/isInfraDeploymentSpec.js.map +1 -1
  100. package/dist/infra/isInfraEnvironmentSpec.d.ts +1 -1
  101. package/dist/infra/isInfraEnvironmentSpec.d.ts.map +1 -1
  102. package/dist/infra/isInfraEnvironmentSpec.js +8 -8
  103. package/dist/infra/isInfraEnvironmentSpec.js.map +1 -1
  104. package/dist/infra/isInfraManifest.d.ts +1 -1
  105. package/dist/infra/isInfraManifest.d.ts.map +1 -1
  106. package/dist/infra/isInfraManifest.js +5 -5
  107. package/dist/infra/isInfraManifest.js.map +1 -1
  108. package/dist/infra/isInfraWorkloadHealth.js +2 -2
  109. package/dist/infra/isInfraWorkloadHealth.js.map +1 -1
  110. package/dist/infra/isInfraWorkloadSpec.d.ts +1 -1
  111. package/dist/infra/isInfraWorkloadSpec.d.ts.map +1 -1
  112. package/dist/infra/isInfraWorkloadSpec.js +5 -5
  113. package/dist/infra/isInfraWorkloadSpec.js.map +1 -1
  114. package/dist/infra/isInfraWorkloadValue.js +3 -3
  115. package/dist/infra/isInfraWorkloadValue.js.map +1 -1
  116. package/dist/infra/parseInfraManifest.d.ts +2 -2
  117. package/dist/infra/parseInfraManifest.d.ts.map +1 -1
  118. package/dist/infra/parseInfraManifest.js +1 -1
  119. package/dist/infra/parseInfraManifest.js.map +1 -1
  120. package/dist/infra/validateInfraAdapterSelection.d.ts +3 -3
  121. package/dist/infra/validateInfraAdapterSelection.d.ts.map +1 -1
  122. package/dist/infra/validateInfraAdapterSelection.js +2 -2
  123. package/dist/infra/validateInfraAdapterSelection.js.map +1 -1
  124. package/dist/infra.d.ts +15 -15
  125. package/dist/infra.d.ts.map +1 -1
  126. package/dist/infra.js +9 -9
  127. package/dist/infra.js.map +1 -1
  128. package/dist/media.d.ts +1 -1
  129. package/dist/media.d.ts.map +1 -1
  130. package/dist/media.js.map +1 -1
  131. package/dist/navigator/catalog.d.ts +3 -3
  132. package/dist/navigator/catalog.d.ts.map +1 -1
  133. package/dist/navigator/catalog.js.map +1 -1
  134. package/dist/navigator/extensions.d.ts +2 -2
  135. package/dist/navigator/extensions.d.ts.map +1 -1
  136. package/dist/navigator/extensions.js.map +1 -1
  137. package/dist/navigator/generation.d.ts +1 -1
  138. package/dist/navigator/generation.d.ts.map +1 -1
  139. package/dist/navigator/generation.js.map +1 -1
  140. package/dist/navigator/planning.d.ts +3 -3
  141. package/dist/navigator/planning.d.ts.map +1 -1
  142. package/dist/navigator/planning.js.map +1 -1
  143. package/dist/navigator.d.ts +7 -7
  144. package/dist/navigator.d.ts.map +1 -1
  145. package/dist/navigator.js +1 -1
  146. package/dist/navigator.js.map +1 -1
  147. package/dist/requirements.d.ts +1 -1
  148. package/dist/requirements.d.ts.map +1 -1
  149. package/dist/requirements.js.map +1 -1
  150. package/dist/runtimeCallbacks.d.ts +1 -1
  151. package/dist/runtimeCallbacks.d.ts.map +1 -1
  152. package/dist/runtimeCallbacks.js.map +1 -1
  153. package/dist/state.d.ts +1 -1
  154. package/dist/state.d.ts.map +1 -1
  155. package/dist/state.js.map +1 -1
  156. package/dist/structure/generated.d.ts +2 -2
  157. package/dist/structure/generated.js +2 -2
  158. package/dist/structure/generated.js.map +1 -1
  159. package/dist/structure/index.d.ts +1 -1
  160. package/dist/structure/index.d.ts.map +1 -1
  161. package/dist/structure/index.js.map +1 -1
  162. package/dist/structure/isStructureDescriptor.d.ts +1 -1
  163. package/dist/structure/isStructureDescriptor.d.ts.map +1 -1
  164. package/dist/structure/isStructureDescriptor.js.map +1 -1
  165. package/dist/structure/types.d.ts +1 -1
  166. package/dist/structure/types.d.ts.map +1 -1
  167. package/dist/structure/types.js.map +1 -1
  168. package/dist/theme.d.ts +1 -1
  169. package/dist/theme.d.ts.map +1 -1
  170. package/dist/theme.js.map +1 -1
  171. package/dist/types/appManifest.d.ts +1 -1
  172. package/dist/types/appManifest.d.ts.map +1 -1
  173. package/dist/types/appManifest.js.map +1 -1
  174. package/dist/types/infraAdapters.d.ts +7 -7
  175. package/dist/types/infraAdapters.d.ts.map +1 -1
  176. package/dist/types/infraAdapters.js.map +1 -1
  177. package/dist/types/infraLifecycle.d.ts +4 -4
  178. package/dist/types/infraLifecycle.d.ts.map +1 -1
  179. package/dist/types/infraLifecycle.js.map +1 -1
  180. package/dist/types/infraManifest.d.ts +8 -8
  181. package/dist/types/infraManifest.d.ts.map +1 -1
  182. package/dist/types/infraManifest.js.map +1 -1
  183. package/dist/types/infraSecrets.d.ts +1 -1
  184. package/dist/types/infraSecrets.d.ts.map +1 -1
  185. package/dist/types/infraSecrets.js.map +1 -1
  186. package/dist/types/infraTargets.d.ts +1 -1
  187. package/dist/types/infraTargets.d.ts.map +1 -1
  188. package/dist/types/infraTargets.js.map +1 -1
  189. package/dist/types/infraWorkload.d.ts +2 -2
  190. package/dist/types/infraWorkload.d.ts.map +1 -1
  191. package/dist/types/infraWorkload.js.map +1 -1
  192. package/dist/types.d.ts +13 -13
  193. package/dist/types.d.ts.map +1 -1
  194. package/dist/types.js.map +1 -1
  195. package/dist/ui.d.ts +2 -2
  196. package/dist/ui.d.ts.map +1 -1
  197. package/dist/ui.js.map +1 -1
  198. package/package.json +3 -3
  199. package/src/appManifest/bindings.ts +1 -1
  200. package/src/appManifest/constants.ts +1 -1
  201. package/src/appManifest/dataSources.ts +2 -2
  202. package/src/appManifest/isAppManifest.ts +9 -9
  203. package/src/appManifest/isAppStateSpec.ts +1 -1
  204. package/src/appManifest/isManifestValue.ts +1 -1
  205. package/src/appManifest/media.ts +1 -1
  206. package/src/appManifest/navigator.ts +3 -3
  207. package/src/appManifest/navigatorOptions.ts +1 -1
  208. package/src/appManifest/parseAppManifest.ts +2 -2
  209. package/src/appManifest/screens.ts +6 -6
  210. package/src/appManifest.ts +4 -4
  211. package/src/auth.ts +6 -6
  212. package/src/bindings.ts +3 -3
  213. package/src/cli/index.ts +1 -1
  214. package/src/data/apis.ts +6 -6
  215. package/src/data/diagnostics.ts +1 -1
  216. package/src/data/endpoints.ts +5 -5
  217. package/src/data/index.ts +10 -10
  218. package/src/data/isApiDefinitionRegistry.ts +3 -3
  219. package/src/data/operations.ts +5 -5
  220. package/src/data/refs.ts +2 -2
  221. package/src/data/schemas.ts +3 -3
  222. package/src/data/sources.ts +6 -6
  223. package/src/data/values.ts +1 -1
  224. package/src/icon.ts +1 -1
  225. package/src/index.ts +24 -24
  226. package/src/infra/isInfraAdapterDescriptor.ts +3 -3
  227. package/src/infra/isInfraAuthSpec.ts +6 -6
  228. package/src/infra/isInfraCredentialRef.ts +1 -1
  229. package/src/infra/isInfraDeploymentSpec.ts +6 -6
  230. package/src/infra/isInfraEnvironmentSpec.ts +10 -10
  231. package/src/infra/isInfraManifest.ts +7 -7
  232. package/src/infra/isInfraWorkloadHealth.ts +2 -2
  233. package/src/infra/isInfraWorkloadSpec.ts +7 -7
  234. package/src/infra/isInfraWorkloadValue.ts +4 -4
  235. package/src/infra/parseInfraManifest.ts +3 -3
  236. package/src/infra/validateInfraAdapterSelection.ts +5 -5
  237. package/src/infra.ts +15 -15
  238. package/src/infraPackedConsumer.test.ts +102 -0
  239. package/src/media.ts +1 -1
  240. package/src/navigator/catalog.ts +3 -3
  241. package/src/navigator/extensions.ts +2 -2
  242. package/src/navigator/generation.ts +1 -1
  243. package/src/navigator/planning.ts +3 -3
  244. package/src/navigator.ts +7 -7
  245. package/src/requirements.ts +1 -1
  246. package/src/runtimeCallbacks.ts +1 -1
  247. package/src/state.ts +1 -1
  248. package/src/structure/generated.ts +2 -2
  249. package/src/structure/index.ts +1 -1
  250. package/src/structure/isStructureDescriptor.ts +1 -1
  251. package/src/structure/types.ts +1 -1
  252. package/src/theme.ts +1 -1
  253. package/src/types/appManifest.ts +1 -1
  254. package/src/types/infraAdapters.ts +7 -7
  255. package/src/types/infraLifecycle.ts +4 -4
  256. package/src/types/infraManifest.ts +8 -8
  257. package/src/types/infraSecrets.ts +1 -1
  258. package/src/types/infraTargets.ts +1 -1
  259. package/src/types/infraWorkload.ts +2 -2
  260. package/src/types.ts +13 -13
  261. package/src/ui.ts +2 -2
@@ -6,8 +6,8 @@ import {
6
6
  isCredentialRef,
7
7
  isDataEndpointRegistry,
8
8
  isDataSchemaRegistry,
9
- } from '../data/dataValidation';
10
- import { isManifestValue } from './isManifestValue';
9
+ } from '../data/dataValidation.js';
10
+ import { isManifestValue } from './isManifestValue.js';
11
11
 
12
12
  const DATABASE_SOURCE_KEYS = [
13
13
  'id',
@@ -1,21 +1,21 @@
1
1
  import { isStringArray } from '@ankhorage/utility/array';
2
2
  import { isRecord } from '@ankhorage/utility/object';
3
3
 
4
- import { isInfraManifest } from '../infra/isInfraManifest';
5
- import type { AppManifest } from '../types';
6
- import { isComponentDataBindingRegistry } from './bindings';
7
- import { APP_MANIFEST_KEY_POLICY } from './constants';
8
- import { isDataSourceRegistry } from './dataSources';
9
- import { isAppDeployManifest } from './deploy';
10
- import { isAppStateSpec } from './isAppStateSpec';
11
- import { isMediaManifest } from './media';
4
+ import { isInfraManifest } from '../infra/isInfraManifest.js';
5
+ import type { AppManifest } from '../types.js';
6
+ import { isComponentDataBindingRegistry } from './bindings.js';
7
+ import { APP_MANIFEST_KEY_POLICY } from './constants.js';
8
+ import { isDataSourceRegistry } from './dataSources.js';
9
+ import { isAppDeployManifest } from './deploy.js';
10
+ import { isAppStateSpec } from './isAppStateSpec.js';
11
+ import { isMediaManifest } from './media.js';
12
12
  import {
13
13
  isAppNavigatorManifest,
14
14
  isManifestMetadata,
15
15
  isScreenRegistry,
16
16
  isSplashScreenSpec,
17
17
  isThemeRegistry,
18
- } from './screens';
18
+ } from './screens.js';
19
19
 
20
20
  /*** Return whether an unknown value satisfies the canonical AppManifest shape. */
21
21
  export function isAppManifest(value: unknown): value is AppManifest {
@@ -1,6 +1,6 @@
1
1
  import { isRecord } from '@ankhorage/utility/object';
2
2
 
3
- import type { AppStateSpec } from '../state';
3
+ import type { AppStateSpec } from '../state.js';
4
4
 
5
5
  /*** Application state cannot claim persistence unsupported by the selected Legend adapter. */
6
6
  export function isAppStateSpec(value: unknown): value is AppStateSpec {
@@ -1,4 +1,4 @@
1
- import { isSerializableValue } from '../serializable';
1
+ import { isSerializableValue } from '../serializable.js';
2
2
 
3
3
  /*** Validate authored values through the canonical serializable-value contract. */
4
4
  export function isManifestValue(value: unknown): boolean {
@@ -7,7 +7,7 @@ import {
7
7
  type MediaAssetMetadata,
8
8
  type MediaAssetSource,
9
9
  type MediaManifest,
10
- } from '../media';
10
+ } from '../media.js';
11
11
 
12
12
  const MEDIA_ASSET_KIND_SET = new Set<string>(MEDIA_ASSET_KINDS);
13
13
 
@@ -2,15 +2,15 @@ import { isStringArray } from '@ankhorage/utility/array';
2
2
  import { hasOnlyKeys, isRecord } from '@ankhorage/utility/object';
3
3
  import { isOptionalString } from '@ankhorage/utility/string';
4
4
 
5
- import { isIconSpec } from '../icon';
6
- import { type AppNavigatorManifest, NAVIGATOR_PRESETS, NAVIGATOR_TYPES } from '../navigator';
5
+ import { isIconSpec } from '../icon.js';
6
+ import { type AppNavigatorManifest, NAVIGATOR_PRESETS, NAVIGATOR_TYPES } from '../navigator.js';
7
7
  import {
8
8
  isDrawerNavigatorOptions,
9
9
  isNavigatorScreenReference,
10
10
  isStackImplementationConfig,
11
11
  isStackScreenOptions,
12
12
  isTabsImplementationConfig,
13
- } from './navigatorOptions';
13
+ } from './navigatorOptions.js';
14
14
 
15
15
  /*** Validate the complete serialized `AppManifest.navigator` slice. */
16
16
  export function isAppNavigatorManifest(value: unknown): value is AppNavigatorManifest {
@@ -10,7 +10,7 @@ import {
10
10
  JAVASCRIPT_TABS_PRESENTATIONS,
11
11
  NATIVE_TABS_MINIMIZE_BEHAVIORS,
12
12
  STACK_PRESENTATIONS,
13
- } from '../navigator';
13
+ } from '../navigator.js';
14
14
 
15
15
  /*** Validate stable native, JavaScript, or alpha Experimental Stack desired state. */
16
16
  export function isStackImplementationConfig(value: Record<string, unknown>): boolean {
@@ -1,5 +1,5 @@
1
- import type { AppManifestParseResult } from '../types/appManifest';
2
- import { isAppManifest } from './isAppManifest';
1
+ import type { AppManifestParseResult } from '../types/appManifest.js';
2
+ import { isAppManifest } from './isAppManifest.js';
3
3
 
4
4
  /**
5
5
  * Parse unknown JSON-compatible input at the canonical AppManifest boundary.
@@ -2,13 +2,13 @@ import { COLOR_HARMONIES } from '@ankhorage/color-theory';
2
2
  import { isRecord } from '@ankhorage/utility/object';
3
3
  import { isOptionalString } from '@ankhorage/utility/string';
4
4
 
5
- import { isSerializableSet } from '../collections';
6
- import { isMediaAssetReference } from '../media';
7
- import { ANKHORAGE_CAPABILITY_NAMES, ANKHORAGE_PERMISSION_NAMES } from '../requirements';
8
- import { APP_CATEGORIES, type ThemeRegistry } from '../types';
9
- import { isBindingExpression, isScreenDataLoaderDefinition } from './bindings';
5
+ import { isSerializableSet } from '../collections.js';
6
+ import { isMediaAssetReference } from '../media.js';
7
+ import { ANKHORAGE_CAPABILITY_NAMES, ANKHORAGE_PERMISSION_NAMES } from '../requirements.js';
8
+ import { APP_CATEGORIES, type ThemeRegistry } from '../types.js';
9
+ import { isBindingExpression, isScreenDataLoaderDefinition } from './bindings.js';
10
10
 
11
- export { isAppNavigatorManifest } from './navigator';
11
+ export { isAppNavigatorManifest } from './navigator.js';
12
12
 
13
13
  const APP_CATEGORY_SET = new Set<string>(APP_CATEGORIES);
14
14
  const COLOR_HARMONY_SET = new Set<string>(COLOR_HARMONIES);
@@ -1,4 +1,4 @@
1
- export { isAppManifest } from './appManifest/isAppManifest';
2
- export { parseAppManifest } from './appManifest/parseAppManifest';
3
- export type { SplashScreenModeSpec, SplashScreenResizeMode, SplashScreenSpec } from './types';
4
- export type { AppManifestParseResult } from './types/appManifest';
1
+ export { isAppManifest } from './appManifest/isAppManifest.js';
2
+ export { parseAppManifest } from './appManifest/parseAppManifest.js';
3
+ export type { SplashScreenModeSpec, SplashScreenResizeMode, SplashScreenSpec } from './types.js';
4
+ export type { AppManifestParseResult } from './types/appManifest.js';
package/src/auth.ts CHANGED
@@ -1,9 +1,9 @@
1
- import type { ValueMap } from './collections';
2
- import type { DataSchema } from './data/schemas';
3
- import type { AppDeployTargetId } from './deploy';
4
- import type { AppEnvironmentId } from './environments';
5
- import type { SecretRef } from './secrets';
6
- import type { IconSpec } from './types';
1
+ import type { ValueMap } from './collections.js';
2
+ import type { DataSchema } from './data/schemas.js';
3
+ import type { AppDeployTargetId } from './deploy.js';
4
+ import type { AppEnvironmentId } from './environments.js';
5
+ import type { SecretRef } from './secrets.js';
6
+ import type { IconSpec } from './types.js';
7
7
 
8
8
  export const AUTH_IDENTIFIER_KINDS = ['email', 'phone', 'username'] as const;
9
9
  export type AuthIdentifierKind = (typeof AUTH_IDENTIFIER_KINDS)[number];
package/src/bindings.ts CHANGED
@@ -1,6 +1,6 @@
1
- import type { Capability } from './capability';
2
- import type { EntityRegistry, ValueMap } from './collections';
3
- import type { SerializableValue } from './serializable';
1
+ import type { Capability } from './capability.js';
2
+ import type { EntityRegistry, ValueMap } from './collections.js';
3
+ import type { SerializableValue } from './serializable.js';
4
4
 
5
5
  export type ComponentInstanceId = string;
6
6
  export type ComponentTypeId = string;
package/src/cli/index.ts CHANGED
@@ -1,4 +1,4 @@
1
- import type { Capability } from '../capability';
1
+ import type { Capability } from '../capability.js';
2
2
 
3
3
  export type AnkhCommandCategory = string;
4
4
 
package/src/data/apis.ts CHANGED
@@ -1,9 +1,9 @@
1
- import type { EntityRegistry } from '../collections';
2
- import type { DataEndpointRegistry } from './endpoints';
3
- import type { ApiId } from './ids';
4
- import type { CredentialRef } from './refs';
5
- import type { DataSchemaRegistry } from './schemas';
6
- import type { DataContractValue } from './values';
1
+ import type { EntityRegistry } from '../collections.js';
2
+ import type { DataEndpointRegistry } from './endpoints.js';
3
+ import type { ApiId } from './ids.js';
4
+ import type { CredentialRef } from './refs.js';
5
+ import type { DataSchemaRegistry } from './schemas.js';
6
+ import type { DataContractValue } from './values.js';
7
7
 
8
8
  export type ApiOrigin = 'external' | 'internal';
9
9
  export type ApiProtocol = 'graphql' | 'rest';
@@ -1,4 +1,4 @@
1
- import type { ApiId, DataSourceId, EndpointId, OperationId } from './ids';
1
+ import type { ApiId, DataSourceId, EndpointId, OperationId } from './ids.js';
2
2
 
3
3
  export type DataDiagnosticSeverity = 'error' | 'info' | 'warning';
4
4
 
@@ -1,8 +1,8 @@
1
- import type { EntityRegistry } from '../collections';
2
- import type { EndpointId } from './ids';
3
- import type { DataOperationRegistry } from './operations';
4
- import type { CredentialRef } from './refs';
5
- import type { DataContractValue } from './values';
1
+ import type { EntityRegistry } from '../collections.js';
2
+ import type { EndpointId } from './ids.js';
3
+ import type { DataOperationRegistry } from './operations.js';
4
+ import type { CredentialRef } from './refs.js';
5
+ import type { DataContractValue } from './values.js';
6
6
 
7
7
  export type DataEndpointKind = 'database' | 'graphql' | 'http' | (string & {});
8
8
 
package/src/data/index.ts CHANGED
@@ -1,10 +1,10 @@
1
- export * from './apis';
2
- export { isDataSchema, isDataSchemaSlot } from './dataValidation';
3
- export * from './diagnostics';
4
- export * from './endpoints';
5
- export * from './ids';
6
- export * from './operations';
7
- export * from './refs';
8
- export * from './schemas';
9
- export * from './sources';
10
- export * from './values';
1
+ export * from './apis.js';
2
+ export { isDataSchema, isDataSchemaSlot } from './dataValidation.js';
3
+ export * from './diagnostics.js';
4
+ export * from './endpoints.js';
5
+ export * from './ids.js';
6
+ export * from './operations.js';
7
+ export * from './refs.js';
8
+ export * from './schemas.js';
9
+ export * from './sources.js';
10
+ export * from './values.js';
@@ -1,9 +1,9 @@
1
1
  import { hasOnlyKeys, isRecord } from '@ankhorage/utility/object';
2
2
  import { isNonEmptyString, isOptionalString } from '@ankhorage/utility/string';
3
3
 
4
- import { isSerializableValue } from '../serializable';
5
- import type { ApiDefinition, ApiDefinitionRegistry } from './apis';
6
- import { isCredentialRef, isDataEndpointRegistry, isDataSchemaRegistry } from './dataValidation';
4
+ import { isSerializableValue } from '../serializable.js';
5
+ import type { ApiDefinition, ApiDefinitionRegistry } from './apis.js';
6
+ import { isCredentialRef, isDataEndpointRegistry, isDataSchemaRegistry } from './dataValidation.js';
7
7
 
8
8
  const API_BASE_KEYS = [
9
9
  'id',
@@ -1,8 +1,8 @@
1
- import type { EntityRegistry } from '../collections';
2
- import type { EndpointId, OperationId } from './ids';
3
- import type { CredentialRef } from './refs';
4
- import type { DataSchemaSlot } from './schemas';
5
- import type { DataContractValue } from './values';
1
+ import type { EntityRegistry } from '../collections.js';
2
+ import type { EndpointId, OperationId } from './ids.js';
3
+ import type { CredentialRef } from './refs.js';
4
+ import type { DataSchemaSlot } from './schemas.js';
5
+ import type { DataContractValue } from './values.js';
6
6
 
7
7
  export type DataOperationIntent = 'action' | 'create' | 'delete' | 'read' | 'update';
8
8
 
package/src/data/refs.ts CHANGED
@@ -1,5 +1,5 @@
1
- import type { AdapterId, CredentialId } from './ids';
2
- import type { DataContractValue } from './values';
1
+ import type { AdapterId, CredentialId } from './ids.js';
2
+ import type { DataContractValue } from './values.js';
3
3
 
4
4
  export type CredentialKind = 'apiKey' | 'basic' | 'bearer' | 'custom' | 'oauth2';
5
5
 
@@ -1,6 +1,6 @@
1
- import type { ValueMap } from '../collections';
2
- import type { SchemaId } from './ids';
3
- import type { DataContractValue } from './values';
1
+ import type { ValueMap } from '../collections.js';
2
+ import type { SchemaId } from './ids.js';
3
+ import type { DataContractValue } from './values.js';
4
4
 
5
5
  export type DataSchemaPrimitiveType =
6
6
  'array' | 'boolean' | 'integer' | 'null' | 'number' | 'object' | 'string';
@@ -1,9 +1,9 @@
1
- import type { EntityRegistry } from '../collections';
2
- import type { DataEndpointRegistry } from './endpoints';
3
- import type { DataSourceId } from './ids';
4
- import type { CredentialRef, DatabaseAdapterRef } from './refs';
5
- import type { DataSchemaRegistry } from './schemas';
6
- import type { DataContractValue } from './values';
1
+ import type { EntityRegistry } from '../collections.js';
2
+ import type { DataEndpointRegistry } from './endpoints.js';
3
+ import type { DataSourceId } from './ids.js';
4
+ import type { CredentialRef, DatabaseAdapterRef } from './refs.js';
5
+ import type { DataSchemaRegistry } from './schemas.js';
6
+ import type { DataContractValue } from './values.js';
7
7
 
8
8
  export type DataSourceKind = 'database';
9
9
 
@@ -1,4 +1,4 @@
1
- import type { SerializableValue } from '../serializable';
1
+ import type { SerializableValue } from '../serializable.js';
2
2
 
3
3
  export type DataContractValue = SerializableValue;
4
4
 
package/src/icon.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import { isRecord } from '@ankhorage/utility/object';
2
2
  import { isOptionalString } from '@ankhorage/utility/string';
3
3
 
4
- import { isMediaAssetReference } from './media';
4
+ import { isMediaAssetReference } from './media.js';
5
5
 
6
6
  /*** Validate a serializable icon as either a named font glyph or an SVG media reference. */
7
7
  export function isIconSpec(value: unknown): boolean {
package/src/index.ts CHANGED
@@ -1,24 +1,24 @@
1
- export * from './appManifest';
2
- export * from './auth';
3
- export * from './bindings';
4
- export * from './cli';
5
- export * from './collections';
6
- export * from './data';
7
- export * from './db';
8
- export * from './deploy';
9
- export * from './deployProvider';
10
- export * from './environments';
11
- export * from './infra';
12
- export * from './media';
13
- export * from './navigator';
14
- export * from './repository';
15
- export * from './requirements';
16
- export * from './runtimeCallbacks';
17
- export * from './secrets';
18
- export * from './serializable';
19
- export * from './state';
20
- export * from './storage';
21
- export * from './structure';
22
- export * from './theme';
23
- export * from './types';
24
- export * from './ui';
1
+ export * from './appManifest.js';
2
+ export * from './auth.js';
3
+ export * from './bindings.js';
4
+ export * from './cli/index.js';
5
+ export * from './collections.js';
6
+ export * from './data/index.js';
7
+ export * from './db.js';
8
+ export * from './deploy.js';
9
+ export * from './deployProvider.js';
10
+ export * from './environments.js';
11
+ export * from './infra.js';
12
+ export * from './media.js';
13
+ export * from './navigator.js';
14
+ export * from './repository.js';
15
+ export * from './requirements.js';
16
+ export * from './runtimeCallbacks.js';
17
+ export * from './secrets.js';
18
+ export * from './serializable.js';
19
+ export * from './state.js';
20
+ export * from './storage.js';
21
+ export * from './structure/index.js';
22
+ export * from './theme.js';
23
+ export * from './types.js';
24
+ export * from './ui.js';
@@ -1,8 +1,8 @@
1
1
  import { isRecord } from '@ankhorage/utility/object';
2
2
 
3
- import { INFRA_ADAPTER_CATALOG } from '../infraCatalog';
4
- import type { InfraAdapterDescriptor } from '../types/infraAdapters';
5
- import { isInfraShape } from './isInfraShape';
3
+ import { INFRA_ADAPTER_CATALOG } from '../infraCatalog.js';
4
+ import type { InfraAdapterDescriptor } from '../types/infraAdapters.js';
5
+ import { isInfraShape } from './isInfraShape.js';
6
6
 
7
7
  /*** Installed adapters must match the canonical identity, capabilities, targets and config version exactly. */
8
8
  export function isInfraAdapterDescriptor(value: unknown): value is InfraAdapterDescriptor {
@@ -2,8 +2,8 @@ import { isStringArray } from '@ankhorage/utility/array';
2
2
  import { isRecordOf } from '@ankhorage/utility/object';
3
3
  import { isOptionalString } from '@ankhorage/utility/string';
4
4
 
5
- import { AUTH_OAUTH_PROVIDER_IDS } from '../auth';
6
- import { isIconSpec } from '../icon';
5
+ import { AUTH_OAUTH_PROVIDER_IDS } from '../auth.js';
6
+ import { isIconSpec } from '../icon.js';
7
7
  import {
8
8
  AUTH_PROFILE_CREATE_STRATEGIES,
9
9
  AUTH_PROFILE_PRIMARY_KEY_STRATEGIES,
@@ -11,10 +11,10 @@ import {
11
11
  AUTH_SCOPES,
12
12
  AUTH_SIGN_IN_IDENTIFIERS,
13
13
  AUTH_SIGN_UP_POLICIES,
14
- } from '../types';
15
- import type { InfraAuthSpec } from '../types/infraManifest';
16
- import type { InfraShape } from '../types/infraValidation';
17
- import { isInfraShape } from './isInfraShape';
14
+ } from '../types.js';
15
+ import type { InfraAuthSpec } from '../types/infraManifest.js';
16
+ import type { InfraShape } from '../types/infraValidation.js';
17
+ import { isInfraShape } from './isInfraShape.js';
18
18
 
19
19
  /*** Preserve application auth configuration while rejecting nested authorization and unknown providers. */
20
20
  export function isInfraAuthSpec(value: unknown): value is InfraAuthSpec {
@@ -1,6 +1,6 @@
1
1
  import { isNonEmptyString } from '@ankhorage/utility/string';
2
2
 
3
- import { isInfraShape } from './isInfraShape';
3
+ import { isInfraShape } from './isInfraShape.js';
4
4
 
5
5
  /*** Bootstrap credential references are explicitly separate from managed runtime secrets. */
6
6
  export function isInfraCredentialRef(value: unknown): boolean {
@@ -1,16 +1,16 @@
1
1
  import { isRecord } from '@ankhorage/utility/object';
2
2
  import { isNonEmptyString } from '@ankhorage/utility/string';
3
3
 
4
- import { INFRA_RUNTIME_COMPATIBILITY } from '../infraCatalog';
4
+ import { INFRA_RUNTIME_COMPATIBILITY } from '../infraCatalog.js';
5
5
  import type {
6
6
  InfraComputeSelection,
7
7
  InfraDeploymentSpec,
8
8
  InfraRuntimeSelection,
9
- } from '../types/infraManifest';
10
- import type { InfraShape } from '../types/infraValidation';
11
- import { infraFields } from './infraFields';
12
- import { isInfraCredentialRef } from './isInfraCredentialRef';
13
- import { isInfraShape } from './isInfraShape';
9
+ } from '../types/infraManifest.js';
10
+ import type { InfraShape } from '../types/infraValidation.js';
11
+ import { infraFields } from './infraFields.js';
12
+ import { isInfraCredentialRef } from './isInfraCredentialRef.js';
13
+ import { isInfraShape } from './isInfraShape.js';
14
14
 
15
15
  /*** Validate provider-specific config and the exact same compatibility map used by TypeScript. */
16
16
  export function isInfraDeploymentSpec(value: unknown): value is InfraDeploymentSpec {
@@ -1,21 +1,21 @@
1
1
  import { isRecord } from '@ankhorage/utility/object';
2
2
  import { isNonEmptyString } from '@ankhorage/utility/string';
3
3
 
4
- import { isSerializableSet } from '../collections';
5
- import { INFRA_ADAPTER_CATALOG } from '../infraCatalog';
4
+ import { isSerializableSet } from '../collections.js';
5
+ import { INFRA_ADAPTER_CATALOG } from '../infraCatalog.js';
6
6
  import type {
7
7
  InfraEnvironmentSpec,
8
8
  InfraObjectStorageSpec,
9
9
  InfraS3PersistenceTarget,
10
10
  InfraScheduledDatabaseBackupSpec,
11
- } from '../types/infraManifest';
12
- import type { InfraShape } from '../types/infraValidation';
13
- import { infraFields } from './infraFields';
14
- import { isInfraAuthSpec } from './isInfraAuthSpec';
15
- import { isInfraCredentialRef } from './isInfraCredentialRef';
16
- import { isInfraDeploymentSpec } from './isInfraDeploymentSpec';
17
- import { isInfraShape } from './isInfraShape';
18
- import { isInfraWorkloadSpec } from './isInfraWorkloadSpec';
11
+ } from '../types/infraManifest.js';
12
+ import type { InfraShape } from '../types/infraValidation.js';
13
+ import { infraFields } from './infraFields.js';
14
+ import { isInfraAuthSpec } from './isInfraAuthSpec.js';
15
+ import { isInfraCredentialRef } from './isInfraCredentialRef.js';
16
+ import { isInfraDeploymentSpec } from './isInfraDeploymentSpec.js';
17
+ import { isInfraShape } from './isInfraShape.js';
18
+ import { isInfraWorkloadSpec } from './isInfraWorkloadSpec.js';
19
19
 
20
20
  /*** Validate sibling capabilities and their required relationships within one environment. */
21
21
  export function isInfraEnvironmentSpec(value: unknown): value is InfraEnvironmentSpec {
@@ -1,12 +1,12 @@
1
1
  import { isRecord } from '@ankhorage/utility/object';
2
2
 
3
- import { isApiDefinitionRegistry } from '../data/isApiDefinitionRegistry';
4
- import { APP_ENVIRONMENT_IDS } from '../environments';
5
- import { isSerializableValue } from '../serializable';
6
- import type { InfraManifest, InfraModuleSpec } from '../types/infraManifest';
7
- import type { InfraShape } from '../types/infraValidation';
8
- import { isInfraEnvironmentSpec } from './isInfraEnvironmentSpec';
9
- import { isInfraShape } from './isInfraShape';
3
+ import { isApiDefinitionRegistry } from '../data/isApiDefinitionRegistry.js';
4
+ import { APP_ENVIRONMENT_IDS } from '../environments.js';
5
+ import { isSerializableValue } from '../serializable.js';
6
+ import type { InfraManifest, InfraModuleSpec } from '../types/infraManifest.js';
7
+ import type { InfraShape } from '../types/infraValidation.js';
8
+ import { isInfraEnvironmentSpec } from './isInfraEnvironmentSpec.js';
9
+ import { isInfraShape } from './isInfraShape.js';
10
10
 
11
11
  /*** Validate standalone infrastructure without AppManifest, Deploy or provider package side effects. */
12
12
  export function isInfraManifest(value: unknown): value is InfraManifest {
@@ -1,7 +1,7 @@
1
1
  import { isRecord } from '@ankhorage/utility/object';
2
2
 
3
- import { infraFields } from './infraFields';
4
- import { isInfraShape } from './isInfraShape';
3
+ import { infraFields } from './infraFields.js';
4
+ import { isInfraShape } from './isInfraShape.js';
5
5
 
6
6
  /*** Validate runtime-neutral readiness probes and bounded numeric parameters. */
7
7
  export function isInfraWorkloadHealth(value: unknown): boolean {
@@ -2,13 +2,13 @@ import { isStringArray } from '@ankhorage/utility/array';
2
2
  import { isRecord } from '@ankhorage/utility/object';
3
3
  import { isNonEmptyString } from '@ankhorage/utility/string';
4
4
 
5
- import { isSerializableSet } from '../collections';
6
- import type { InfraShape } from '../types/infraValidation';
7
- import type { InfraWorkloadSpec } from '../types/infraWorkload';
8
- import { infraFields } from './infraFields';
9
- import { isInfraShape } from './isInfraShape';
10
- import { isInfraWorkloadHealth } from './isInfraWorkloadHealth';
11
- import { isInfraWorkloadValue } from './isInfraWorkloadValue';
5
+ import { isSerializableSet } from '../collections.js';
6
+ import type { InfraShape } from '../types/infraValidation.js';
7
+ import type { InfraWorkloadSpec } from '../types/infraWorkload.js';
8
+ import { infraFields } from './infraFields.js';
9
+ import { isInfraShape } from './isInfraShape.js';
10
+ import { isInfraWorkloadHealth } from './isInfraWorkloadHealth.js';
11
+ import { isInfraWorkloadValue } from './isInfraWorkloadValue.js';
12
12
 
13
13
  /*** Validate the portable desired workload; runtime-specific fields and plaintext secret objects fail. */
14
14
  export function isInfraWorkloadSpec(value: unknown): value is InfraWorkloadSpec {
@@ -1,10 +1,10 @@
1
1
  import { isRecord } from '@ankhorage/utility/object';
2
2
  import { isNonEmptyString } from '@ankhorage/utility/string';
3
3
 
4
- import { APP_ENVIRONMENT_IDS } from '../environments';
5
- import type { InfraWorkloadScalarValue } from '../types/infraWorkload';
6
- import { isInfraCredentialRef } from './isInfraCredentialRef';
7
- import { isInfraShape } from './isInfraShape';
4
+ import { APP_ENVIRONMENT_IDS } from '../environments.js';
5
+ import type { InfraWorkloadScalarValue } from '../types/infraWorkload.js';
6
+ import { isInfraCredentialRef } from './isInfraCredentialRef.js';
7
+ import { isInfraShape } from './isInfraShape.js';
8
8
 
9
9
  /*** Workload values explicitly distinguish public literals, output dependencies and secret references. */
10
10
  export function isInfraWorkloadValue(value: unknown): boolean {
@@ -1,6 +1,6 @@
1
- import type { InfraResult } from '../types/infraLifecycle';
2
- import type { InfraManifest } from '../types/infraManifest';
3
- import { isInfraManifest } from './isInfraManifest';
1
+ import type { InfraResult } from '../types/infraLifecycle.js';
2
+ import type { InfraManifest } from '../types/infraManifest.js';
3
+ import { isInfraManifest } from './isInfraManifest.js';
4
4
 
5
5
  /** Parse unknown infrastructure input; package availability and credentials are separate validation stages. */
6
6
  export function parseInfraManifest(value: unknown): InfraResult<InfraManifest> {
@@ -1,8 +1,8 @@
1
- import { INFRA_ADAPTER_CATALOG } from '../infraCatalog';
2
- import type { InfraAdapterDescriptor } from '../types/infraAdapters';
3
- import type { InfraDiagnostic, InfraResult } from '../types/infraLifecycle';
4
- import type { InfraEnvironmentSpec } from '../types/infraManifest';
5
- import { isInfraAdapterDescriptor } from './isInfraAdapterDescriptor';
1
+ import { INFRA_ADAPTER_CATALOG } from '../infraCatalog.js';
2
+ import type { InfraAdapterDescriptor } from '../types/infraAdapters.js';
3
+ import type { InfraDiagnostic, InfraResult } from '../types/infraLifecycle.js';
4
+ import type { InfraEnvironmentSpec } from '../types/infraManifest.js';
5
+ import { isInfraAdapterDescriptor } from './isInfraAdapterDescriptor.js';
6
6
 
7
7
  /** Validate supplied installed descriptors without imports or filesystem access; only selected packages matter. */
8
8
  export function validateInfraAdapterSelection(
package/src/infra.ts CHANGED
@@ -1,16 +1,16 @@
1
1
  /** Canonical standalone infrastructure contracts, catalog and side-effect-free validation. */
2
- export { isInfraAdapterDescriptor } from './infra/isInfraAdapterDescriptor';
3
- export { isInfraAuthSpec } from './infra/isInfraAuthSpec';
4
- export { isInfraDeploymentSpec } from './infra/isInfraDeploymentSpec';
5
- export { isInfraEnvironmentSpec } from './infra/isInfraEnvironmentSpec';
6
- export { isInfraManifest } from './infra/isInfraManifest';
7
- export { isInfraWorkloadSpec } from './infra/isInfraWorkloadSpec';
8
- export { parseInfraManifest } from './infra/parseInfraManifest';
9
- export { validateInfraAdapterSelection } from './infra/validateInfraAdapterSelection';
10
- export { INFRA_ADAPTER_CATALOG, INFRA_RUNTIME_COMPATIBILITY } from './infraCatalog';
11
- export type * from './types/infraAdapters';
12
- export type * from './types/infraLifecycle';
13
- export type * from './types/infraManifest';
14
- export type * from './types/infraSecrets';
15
- export type * from './types/infraTargets';
16
- export type * from './types/infraWorkload';
2
+ export { isInfraAdapterDescriptor } from './infra/isInfraAdapterDescriptor.js';
3
+ export { isInfraAuthSpec } from './infra/isInfraAuthSpec.js';
4
+ export { isInfraDeploymentSpec } from './infra/isInfraDeploymentSpec.js';
5
+ export { isInfraEnvironmentSpec } from './infra/isInfraEnvironmentSpec.js';
6
+ export { isInfraManifest } from './infra/isInfraManifest.js';
7
+ export { isInfraWorkloadSpec } from './infra/isInfraWorkloadSpec.js';
8
+ export { parseInfraManifest } from './infra/parseInfraManifest.js';
9
+ export { validateInfraAdapterSelection } from './infra/validateInfraAdapterSelection.js';
10
+ export { INFRA_ADAPTER_CATALOG, INFRA_RUNTIME_COMPATIBILITY } from './infraCatalog.js';
11
+ export type * from './types/infraAdapters.js';
12
+ export type * from './types/infraLifecycle.js';
13
+ export type * from './types/infraManifest.js';
14
+ export type * from './types/infraSecrets.js';
15
+ export type * from './types/infraTargets.js';
16
+ export type * from './types/infraWorkload.js';