@contractspec/lib.contracts 1.44.1 → 1.45.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (161) hide show
  1. package/README.md +1 -1
  2. package/dist/app-config/app-config.feature.js +6 -6
  3. package/dist/app-config/contracts.d.ts +1 -1
  4. package/dist/app-config/contracts.js +13 -13
  5. package/dist/app-config/events.d.ts +8 -8
  6. package/dist/app-config/events.js +12 -12
  7. package/dist/app-config/lifecycle-contracts.d.ts +11 -11
  8. package/dist/app-config/lifecycle-contracts.js +19 -19
  9. package/dist/app-config/lifecycle.d.ts +2 -2
  10. package/dist/app-config/runtime.d.ts +3 -3
  11. package/dist/app-config/spec.d.ts +10 -12
  12. package/dist/app-config/spec.js +5 -26
  13. package/dist/capabilities/capabilities.d.ts +4 -11
  14. package/dist/capabilities/capabilities.js +3 -5
  15. package/dist/capabilities/openbanking.js +10 -10
  16. package/dist/client/react/form-render.js +1 -0
  17. package/dist/contract-registry/schemas.d.ts +8 -8
  18. package/dist/contract-registry/schemas.js +1 -1
  19. package/dist/contract-registry/types.d.ts +1 -1
  20. package/dist/data-views/data-views.js +1 -0
  21. package/dist/data-views/registry.d.ts +3 -37
  22. package/dist/data-views/registry.js +4 -66
  23. package/dist/data-views/runtime.d.ts +1 -1
  24. package/dist/data-views/runtime.js +2 -0
  25. package/dist/data-views/spec.d.ts +2 -2
  26. package/dist/docs/index.d.ts +2 -2
  27. package/dist/docs/index.js +2 -2
  28. package/dist/docs/presentations.d.ts +2 -4
  29. package/dist/docs/presentations.js +2 -4
  30. package/dist/docs/tech/contracts/ops-to-presentation-linking.docblock.js +1 -1
  31. package/dist/docs/tech/contracts/tests.docblock.js +1 -1
  32. package/dist/docs/tech-contracts.docs.js +1 -1
  33. package/dist/docs/types.d.ts +1 -1
  34. package/dist/events.d.ts +3 -3
  35. package/dist/examples/docs/examples.docblock.d.ts +6 -0
  36. package/dist/examples/docs/examples.docblock.js +165 -0
  37. package/dist/examples/index.d.ts +5 -0
  38. package/dist/examples/index.js +6 -0
  39. package/dist/examples/registry.d.ts +65 -0
  40. package/dist/examples/registry.js +144 -0
  41. package/dist/examples/schema.d.ts +282 -0
  42. package/dist/examples/schema.js +125 -0
  43. package/dist/examples/types.d.ts +167 -0
  44. package/dist/examples/types.js +43 -0
  45. package/dist/examples/validation.d.ts +65 -0
  46. package/dist/examples/validation.js +144 -0
  47. package/dist/experiments/docs/experiments.docblock.js +1 -1
  48. package/dist/experiments/evaluator.d.ts +1 -1
  49. package/dist/experiments/spec-resolver.d.ts +2 -2
  50. package/dist/experiments/spec.d.ts +6 -8
  51. package/dist/experiments/spec.js +5 -23
  52. package/dist/features/index.d.ts +9 -1
  53. package/dist/features/index.js +8 -1
  54. package/dist/features/install.js +2 -2
  55. package/dist/features/types.d.ts +7 -7
  56. package/dist/forms/forms.d.ts +2 -2
  57. package/dist/forms/forms.js +3 -6
  58. package/dist/index.d.ts +13 -8
  59. package/dist/index.js +11 -2
  60. package/dist/install.d.ts +9 -9
  61. package/dist/integrations/connection.d.ts +1 -1
  62. package/dist/integrations/integrations.feature.js +8 -8
  63. package/dist/integrations/openbanking/contracts/accounts.d.ts +66 -66
  64. package/dist/integrations/openbanking/contracts/accounts.js +3 -3
  65. package/dist/integrations/openbanking/contracts/balances.d.ts +34 -34
  66. package/dist/integrations/openbanking/contracts/balances.js +2 -2
  67. package/dist/integrations/openbanking/contracts/transactions.d.ts +48 -48
  68. package/dist/integrations/openbanking/contracts/transactions.js +2 -2
  69. package/dist/integrations/openbanking/models.d.ts +55 -55
  70. package/dist/integrations/openbanking/openbanking.feature.js +10 -10
  71. package/dist/integrations/operations.d.ts +102 -102
  72. package/dist/integrations/operations.js +10 -10
  73. package/dist/integrations/providers/elevenlabs.js +2 -2
  74. package/dist/integrations/providers/gcs-storage.js +2 -2
  75. package/dist/integrations/providers/gmail.js +3 -3
  76. package/dist/integrations/providers/google-calendar.js +2 -2
  77. package/dist/integrations/providers/mistral.js +3 -3
  78. package/dist/integrations/providers/postmark.js +2 -2
  79. package/dist/integrations/providers/powens.js +4 -4
  80. package/dist/integrations/providers/qdrant.js +3 -3
  81. package/dist/integrations/providers/stripe.js +2 -2
  82. package/dist/integrations/providers/twilio-sms.js +2 -2
  83. package/dist/integrations/runtime.d.ts +5 -5
  84. package/dist/integrations/spec.d.ts +3 -5
  85. package/dist/integrations/spec.js +5 -26
  86. package/dist/jobs/gcp-cloud-tasks.js +1 -1
  87. package/dist/jobs/gcp-pubsub.js +1 -1
  88. package/dist/jobs/handlers/ping-handler.d.ts +3 -3
  89. package/dist/jobs/handlers/ping-handler.js +2 -2
  90. package/dist/jobs/memory-queue.js +1 -1
  91. package/dist/jobs/queue.d.ts +4 -4
  92. package/dist/jobs/scaleway-sqs-queue.js +2 -2
  93. package/dist/jsonschema.d.ts +4 -4
  94. package/dist/knowledge/binding.d.ts +1 -1
  95. package/dist/knowledge/knowledge.feature.js +8 -8
  96. package/dist/knowledge/operations.d.ts +66 -66
  97. package/dist/knowledge/operations.js +12 -12
  98. package/dist/knowledge/source.d.ts +1 -1
  99. package/dist/knowledge/spaces/email-threads.js +2 -2
  100. package/dist/knowledge/spaces/financial-docs.js +2 -2
  101. package/dist/knowledge/spaces/financial-overview.js +2 -2
  102. package/dist/knowledge/spaces/product-canon.js +2 -2
  103. package/dist/knowledge/spaces/support-faq.js +2 -2
  104. package/dist/knowledge/spaces/uploaded-docs.js +2 -2
  105. package/dist/knowledge/spec.d.ts +3 -5
  106. package/dist/knowledge/spec.js +6 -28
  107. package/dist/llm/exporters.js +2 -2
  108. package/dist/llm/types.d.ts +4 -4
  109. package/dist/markdown.js +1 -1
  110. package/dist/migrations.d.ts +2 -2
  111. package/dist/migrations.js +7 -9
  112. package/dist/onboarding-base.d.ts +29 -29
  113. package/dist/onboarding-base.js +4 -4
  114. package/dist/openapi.js +9 -2
  115. package/dist/operations/operation.d.ts +3 -3
  116. package/dist/operations/registry.d.ts +9 -58
  117. package/dist/operations/registry.js +17 -93
  118. package/dist/ownership.d.ts +1 -1
  119. package/dist/policy/docs/policy.docblock.js +1 -1
  120. package/dist/policy/engine.js +2 -0
  121. package/dist/policy/spec.d.ts +1 -1
  122. package/dist/prompt.d.ts +6 -6
  123. package/dist/promptRegistry.d.ts +4 -4
  124. package/dist/promptRegistry.js +2 -5
  125. package/dist/regenerator/docs/regenerator.docblock.js +1 -1
  126. package/dist/regenerator/types.d.ts +1 -1
  127. package/dist/registry.d.ts +3 -2
  128. package/dist/registry.js +5 -5
  129. package/dist/resources.d.ts +5 -5
  130. package/dist/server/graphql-pothos.js +2 -2
  131. package/dist/server/mcp/registerTools.js +1 -1
  132. package/dist/server/rest-elysia.d.ts +1 -1
  133. package/dist/server/rest-elysia.js +1 -1
  134. package/dist/server/rest-express.d.ts +1 -1
  135. package/dist/server/rest-express.js +1 -1
  136. package/dist/server/rest-generic.d.ts +1 -1
  137. package/dist/server/rest-generic.js +1 -1
  138. package/dist/server/rest-next-app.d.ts +1 -1
  139. package/dist/server/rest-next-mcp.d.ts +1 -1
  140. package/dist/server/rest-next-mcp.js +1 -1
  141. package/dist/server/rest-next-pages.d.ts +1 -1
  142. package/dist/telemetry/docs/telemetry.docblock.js +1 -1
  143. package/dist/telemetry/spec.d.ts +7 -7
  144. package/dist/telemetry/spec.js +17 -44
  145. package/dist/telemetry/tracker.d.ts +2 -2
  146. package/dist/tests/runner.d.ts +1 -1
  147. package/dist/tests/spec.d.ts +5 -5
  148. package/dist/tests/spec.js +3 -5
  149. package/dist/themes.d.ts +4 -6
  150. package/dist/themes.js +5 -27
  151. package/dist/translations/catalog.d.ts +1 -1
  152. package/dist/types.d.ts +5 -5
  153. package/dist/workflow/adapters/db-adapter.js +3 -3
  154. package/dist/workflow/runner.d.ts +4 -2
  155. package/dist/workflow/spec.d.ts +4 -17
  156. package/dist/workflow/spec.js +4 -48
  157. package/dist/workflow/state.d.ts +1 -1
  158. package/dist/workflow/validation.js +1 -1
  159. package/dist/workspace-config/contractsrc-schema.d.ts +419 -419
  160. package/dist/workspace-config/contractsrc-schema.js +86 -86
  161. package/package.json +19 -12
package/README.md CHANGED
@@ -61,7 +61,7 @@ const UserInput = new SchemaModel({
61
61
  export const CreateUser = defineCommand({
62
62
  meta: {
63
63
  name: 'user.create',
64
- version: 1,
64
+ version: '1.0.0',
65
65
  description: 'Register a new user',
66
66
  owners: ['team-auth'],
67
67
  tags: ['auth'],
@@ -6,7 +6,7 @@
6
6
  const AppConfigFeature = {
7
7
  meta: {
8
8
  key: "app-config",
9
- version: 1,
9
+ version: "1.0.0",
10
10
  title: "App Configuration",
11
11
  description: "Tenant app configuration lifecycle management with draft, preview, and publish stages",
12
12
  domain: "platform",
@@ -23,19 +23,19 @@ const AppConfigFeature = {
23
23
  events: [
24
24
  {
25
25
  key: "app_config.draft_created",
26
- version: 1
26
+ version: "1.0.0"
27
27
  },
28
28
  {
29
29
  key: "app_config.promoted_to_preview",
30
- version: 1
30
+ version: "1.0.0"
31
31
  },
32
32
  {
33
33
  key: "app_config.published",
34
- version: 1
34
+ version: "1.0.0"
35
35
  },
36
36
  {
37
37
  key: "app_config.rolled_back",
38
- version: 1
38
+ version: "1.0.0"
39
39
  }
40
40
  ],
41
41
  presentations: [],
@@ -44,7 +44,7 @@ const AppConfigFeature = {
44
44
  capabilities: {
45
45
  provides: [{
46
46
  key: "app-config",
47
- version: 1
47
+ version: "1.0.0"
48
48
  }],
49
49
  requires: []
50
50
  }
@@ -99,7 +99,7 @@ declare const UpdateBlueprintTranslationCatalogCommand: OperationSpec<SchemaMode
99
99
  isOptional: false;
100
100
  };
101
101
  catalogVersion: {
102
- type: _contractspec_lib_schema392.FieldType<number, number>;
102
+ type: _contractspec_lib_schema392.FieldType<string, string>;
103
103
  isOptional: false;
104
104
  };
105
105
  defaultLocale: {
@@ -139,7 +139,7 @@ const UpdateBlueprintTranslationInput = new SchemaModel({
139
139
  isOptional: false
140
140
  },
141
141
  catalogVersion: {
142
- type: ScalarTypeEnum.Int_unsecure(),
142
+ type: ScalarTypeEnum.String_unsecure(),
143
143
  isOptional: false
144
144
  },
145
145
  defaultLocale: {
@@ -222,7 +222,7 @@ const MessageResolutionOutput = new SchemaModel({
222
222
  const UpdateTenantBrandingCommand = defineCommand({
223
223
  meta: {
224
224
  key: "appConfig.updateTenantBranding",
225
- version: 1,
225
+ version: "1.0.0",
226
226
  description: "Applies tenant branding overrides (names, assets, domains).",
227
227
  owners: [OwnersEnum.PlatformSigil],
228
228
  tags: ["branding"],
@@ -238,14 +238,14 @@ const UpdateTenantBrandingCommand = defineCommand({
238
238
  auth: "admin",
239
239
  policies: [{
240
240
  key: "platform.app-config.manage",
241
- version: 1
241
+ version: "1.0.0"
242
242
  }]
243
243
  }
244
244
  });
245
245
  const VerifyCustomDomainCommand = defineCommand({
246
246
  meta: {
247
247
  key: "appConfig.verifyCustomDomain",
248
- version: 1,
248
+ version: "1.0.0",
249
249
  description: "Validates DNS ownership for tenant custom domains.",
250
250
  owners: [OwnersEnum.PlatformSigil],
251
251
  tags: ["branding"],
@@ -261,14 +261,14 @@ const VerifyCustomDomainCommand = defineCommand({
261
261
  auth: "admin",
262
262
  policies: [{
263
263
  key: "platform.app-config.manage",
264
- version: 1
264
+ version: "1.0.0"
265
265
  }]
266
266
  }
267
267
  });
268
268
  const UpdateBlueprintTranslationCatalogCommand = defineCommand({
269
269
  meta: {
270
270
  key: "appConfig.updateBlueprintTranslationCatalog",
271
- version: 1,
271
+ version: "1.0.0",
272
272
  description: "Registers or updates translation entries for a blueprint.",
273
273
  owners: [OwnersEnum.PlatformSigil],
274
274
  tags: [TagsEnum.I18n],
@@ -284,14 +284,14 @@ const UpdateBlueprintTranslationCatalogCommand = defineCommand({
284
284
  auth: "admin",
285
285
  policies: [{
286
286
  key: "platform.app-config.manage",
287
- version: 1
287
+ version: "1.0.0"
288
288
  }]
289
289
  }
290
290
  });
291
291
  const UpdateTenantTranslationOverridesCommand = defineCommand({
292
292
  meta: {
293
293
  key: "appConfig.updateTenantTranslations",
294
- version: 1,
294
+ version: "1.0.0",
295
295
  description: "Applies tenant-specific translation entries.",
296
296
  owners: [OwnersEnum.PlatformSigil],
297
297
  tags: [TagsEnum.I18n],
@@ -307,14 +307,14 @@ const UpdateTenantTranslationOverridesCommand = defineCommand({
307
307
  auth: "admin",
308
308
  policies: [{
309
309
  key: "platform.app-config.manage",
310
- version: 1
310
+ version: "1.0.0"
311
311
  }]
312
312
  }
313
313
  });
314
314
  const GetResolvedBrandingQuery = defineQuery({
315
315
  meta: {
316
316
  key: "appConfig.getResolvedBranding",
317
- version: 1,
317
+ version: "1.0.0",
318
318
  description: "Returns the resolved branding for a tenant/app/environment.",
319
319
  owners: [OwnersEnum.PlatformSigil],
320
320
  tags: ["branding"],
@@ -352,14 +352,14 @@ const GetResolvedBrandingQuery = defineQuery({
352
352
  auth: "admin",
353
353
  policies: [{
354
354
  key: "platform.app-config.read",
355
- version: 1
355
+ version: "1.0.0"
356
356
  }]
357
357
  }
358
358
  });
359
359
  const ResolveMessageQuery = defineQuery({
360
360
  meta: {
361
361
  key: "appConfig.resolveMessage",
362
- version: 1,
362
+ version: "1.0.0",
363
363
  description: "Resolves a translation key for a tenant in the requested locale.",
364
364
  owners: [OwnersEnum.PlatformSigil],
365
365
  tags: [TagsEnum.I18n],
@@ -375,7 +375,7 @@ const ResolveMessageQuery = defineQuery({
375
375
  auth: "admin",
376
376
  policies: [{
377
377
  key: "platform.app-config.read",
378
- version: 1
378
+ version: "1.0.0"
379
379
  }]
380
380
  }
381
381
  });
@@ -14,7 +14,7 @@ declare const ConfigDraftCreatedEvent: EventSpec<SchemaModel<{
14
14
  isOptional: false;
15
15
  };
16
16
  version: {
17
- type: _contractspec_lib_schema441.FieldType<number, number>;
17
+ type: _contractspec_lib_schema441.FieldType<string, string>;
18
18
  isOptional: false;
19
19
  };
20
20
  blueprintName: {
@@ -22,7 +22,7 @@ declare const ConfigDraftCreatedEvent: EventSpec<SchemaModel<{
22
22
  isOptional: false;
23
23
  };
24
24
  blueprintVersion: {
25
- type: _contractspec_lib_schema441.FieldType<number, number>;
25
+ type: _contractspec_lib_schema441.FieldType<string, string>;
26
26
  isOptional: false;
27
27
  };
28
28
  createdBy: {
@@ -44,7 +44,7 @@ declare const ConfigPromotedToPreviewEvent: EventSpec<SchemaModel<{
44
44
  isOptional: false;
45
45
  };
46
46
  version: {
47
- type: _contractspec_lib_schema441.FieldType<number, number>;
47
+ type: _contractspec_lib_schema441.FieldType<string, string>;
48
48
  isOptional: false;
49
49
  };
50
50
  promotedBy: {
@@ -67,11 +67,11 @@ declare const ConfigPublishedEvent: EventSpec<SchemaModel<{
67
67
  isOptional: false;
68
68
  };
69
69
  version: {
70
- type: _contractspec_lib_schema441.FieldType<number, number>;
70
+ type: _contractspec_lib_schema441.FieldType<string, string>;
71
71
  isOptional: false;
72
72
  };
73
73
  previousVersion: {
74
- type: _contractspec_lib_schema441.FieldType<number, number>;
74
+ type: _contractspec_lib_schema441.FieldType<string, string>;
75
75
  isOptional: true;
76
76
  };
77
77
  publishedBy: {
@@ -98,15 +98,15 @@ declare const ConfigRolledBackEvent: EventSpec<SchemaModel<{
98
98
  isOptional: false;
99
99
  };
100
100
  newVersion: {
101
- type: _contractspec_lib_schema441.FieldType<number, number>;
101
+ type: _contractspec_lib_schema441.FieldType<string, string>;
102
102
  isOptional: false;
103
103
  };
104
104
  rolledBackFrom: {
105
- type: _contractspec_lib_schema441.FieldType<number, number>;
105
+ type: _contractspec_lib_schema441.FieldType<string, string>;
106
106
  isOptional: false;
107
107
  };
108
108
  rolledBackTo: {
109
- type: _contractspec_lib_schema441.FieldType<number, number>;
109
+ type: _contractspec_lib_schema441.FieldType<string, string>;
110
110
  isOptional: false;
111
111
  };
112
112
  rolledBackBy: {
@@ -15,7 +15,7 @@ const ConfigDraftCreatedEvent = defineEvent({
15
15
  meta: {
16
16
  ...lifecycleOwnership,
17
17
  key: "app_config.draft_created",
18
- version: 1,
18
+ version: "1.0.0",
19
19
  description: "A new tenant config draft was created."
20
20
  },
21
21
  payload: new SchemaModel({
@@ -30,7 +30,7 @@ const ConfigDraftCreatedEvent = defineEvent({
30
30
  isOptional: false
31
31
  },
32
32
  version: {
33
- type: ScalarTypeEnum.Int_unsecure(),
33
+ type: ScalarTypeEnum.String_unsecure(),
34
34
  isOptional: false
35
35
  },
36
36
  blueprintName: {
@@ -38,7 +38,7 @@ const ConfigDraftCreatedEvent = defineEvent({
38
38
  isOptional: false
39
39
  },
40
40
  blueprintVersion: {
41
- type: ScalarTypeEnum.Int_unsecure(),
41
+ type: ScalarTypeEnum.String_unsecure(),
42
42
  isOptional: false
43
43
  },
44
44
  createdBy: {
@@ -56,7 +56,7 @@ const ConfigPromotedToPreviewEvent = defineEvent({
56
56
  meta: {
57
57
  ...lifecycleOwnership,
58
58
  key: "app_config.promoted_to_preview",
59
- version: 1,
59
+ version: "1.0.0",
60
60
  description: "A tenant config draft was promoted to preview."
61
61
  },
62
62
  payload: new SchemaModel({
@@ -71,7 +71,7 @@ const ConfigPromotedToPreviewEvent = defineEvent({
71
71
  isOptional: false
72
72
  },
73
73
  version: {
74
- type: ScalarTypeEnum.Int_unsecure(),
74
+ type: ScalarTypeEnum.String_unsecure(),
75
75
  isOptional: false
76
76
  },
77
77
  promotedBy: {
@@ -90,7 +90,7 @@ const ConfigPublishedEvent = defineEvent({
90
90
  meta: {
91
91
  ...lifecycleOwnership,
92
92
  key: "app_config.published",
93
- version: 1,
93
+ version: "1.0.0",
94
94
  description: "A tenant config version was published to production."
95
95
  },
96
96
  payload: new SchemaModel({
@@ -105,11 +105,11 @@ const ConfigPublishedEvent = defineEvent({
105
105
  isOptional: false
106
106
  },
107
107
  version: {
108
- type: ScalarTypeEnum.Int_unsecure(),
108
+ type: ScalarTypeEnum.String_unsecure(),
109
109
  isOptional: false
110
110
  },
111
111
  previousVersion: {
112
- type: ScalarTypeEnum.Int_unsecure(),
112
+ type: ScalarTypeEnum.String_unsecure(),
113
113
  isOptional: true
114
114
  },
115
115
  publishedBy: {
@@ -132,7 +132,7 @@ const ConfigRolledBackEvent = defineEvent({
132
132
  meta: {
133
133
  ...lifecycleOwnership,
134
134
  key: "app_config.rolled_back",
135
- version: 1,
135
+ version: "1.0.0",
136
136
  description: "A tenant config was rolled back to a previous version."
137
137
  },
138
138
  payload: new SchemaModel({
@@ -147,15 +147,15 @@ const ConfigRolledBackEvent = defineEvent({
147
147
  isOptional: false
148
148
  },
149
149
  newVersion: {
150
- type: ScalarTypeEnum.Int_unsecure(),
150
+ type: ScalarTypeEnum.String_unsecure(),
151
151
  isOptional: false
152
152
  },
153
153
  rolledBackFrom: {
154
- type: ScalarTypeEnum.Int_unsecure(),
154
+ type: ScalarTypeEnum.String_unsecure(),
155
155
  isOptional: false
156
156
  },
157
157
  rolledBackTo: {
158
- type: ScalarTypeEnum.Int_unsecure(),
158
+ type: ScalarTypeEnum.String_unsecure(),
159
159
  isOptional: false
160
160
  },
161
161
  rolledBackBy: {
@@ -29,7 +29,7 @@ declare const CreateTenantConfigDraftCommand: OperationSpec<SchemaModel<{
29
29
  isOptional: true;
30
30
  };
31
31
  fromVersion: {
32
- type: _contractspec_lib_schema467.FieldType<number, number>;
32
+ type: _contractspec_lib_schema467.FieldType<string, string>;
33
33
  isOptional: true;
34
34
  };
35
35
  createdBy: {
@@ -38,7 +38,7 @@ declare const CreateTenantConfigDraftCommand: OperationSpec<SchemaModel<{
38
38
  };
39
39
  }>, SchemaModel<{
40
40
  version: {
41
- type: _contractspec_lib_schema467.FieldType<number, number>;
41
+ type: _contractspec_lib_schema467.FieldType<string, string>;
42
42
  isOptional: false;
43
43
  };
44
44
  status: {
@@ -63,7 +63,7 @@ declare const PromoteTenantConfigToPreviewCommand: OperationSpec<SchemaModel<{
63
63
  isOptional: false;
64
64
  };
65
65
  version: {
66
- type: _contractspec_lib_schema467.FieldType<number, number>;
66
+ type: _contractspec_lib_schema467.FieldType<string, string>;
67
67
  isOptional: false;
68
68
  };
69
69
  promotedBy: {
@@ -72,7 +72,7 @@ declare const PromoteTenantConfigToPreviewCommand: OperationSpec<SchemaModel<{
72
72
  };
73
73
  }>, SchemaModel<{
74
74
  version: {
75
- type: _contractspec_lib_schema467.FieldType<number, number>;
75
+ type: _contractspec_lib_schema467.FieldType<string, string>;
76
76
  isOptional: false;
77
77
  };
78
78
  status: {
@@ -98,7 +98,7 @@ declare const PublishTenantConfigCommand: OperationSpec<SchemaModel<{
98
98
  isOptional: false;
99
99
  };
100
100
  version: {
101
- type: _contractspec_lib_schema467.FieldType<number, number>;
101
+ type: _contractspec_lib_schema467.FieldType<string, string>;
102
102
  isOptional: false;
103
103
  };
104
104
  environment: {
@@ -115,7 +115,7 @@ declare const PublishTenantConfigCommand: OperationSpec<SchemaModel<{
115
115
  };
116
116
  }>, SchemaModel<{
117
117
  version: {
118
- type: _contractspec_lib_schema467.FieldType<number, number>;
118
+ type: _contractspec_lib_schema467.FieldType<string, string>;
119
119
  isOptional: false;
120
120
  };
121
121
  status: {
@@ -123,7 +123,7 @@ declare const PublishTenantConfigCommand: OperationSpec<SchemaModel<{
123
123
  isOptional: false;
124
124
  };
125
125
  previousVersion: {
126
- type: _contractspec_lib_schema467.FieldType<number, number>;
126
+ type: _contractspec_lib_schema467.FieldType<string, string>;
127
127
  isOptional: true;
128
128
  };
129
129
  publishedAt: {
@@ -144,7 +144,7 @@ declare const RollbackTenantConfigCommand: OperationSpec<SchemaModel<{
144
144
  isOptional: false;
145
145
  };
146
146
  toVersion: {
147
- type: _contractspec_lib_schema467.FieldType<number, number>;
147
+ type: _contractspec_lib_schema467.FieldType<string, string>;
148
148
  isOptional: false;
149
149
  };
150
150
  environment: {
@@ -161,7 +161,7 @@ declare const RollbackTenantConfigCommand: OperationSpec<SchemaModel<{
161
161
  };
162
162
  }>, SchemaModel<{
163
163
  newVersion: {
164
- type: _contractspec_lib_schema467.FieldType<number, number>;
164
+ type: _contractspec_lib_schema467.FieldType<string, string>;
165
165
  isOptional: false;
166
166
  };
167
167
  status: {
@@ -219,7 +219,7 @@ declare const ListTenantConfigVersionsQuery: OperationSpec<SchemaModel<{
219
219
  isOptional: false;
220
220
  };
221
221
  version: {
222
- type: _contractspec_lib_schema467.FieldType<number, number>;
222
+ type: _contractspec_lib_schema467.FieldType<string, string>;
223
223
  isOptional: false;
224
224
  };
225
225
  timestamp: {
@@ -249,7 +249,7 @@ declare const GetTenantConfigVersionQuery: OperationSpec<SchemaModel<{
249
249
  isOptional: false;
250
250
  };
251
251
  version: {
252
- type: _contractspec_lib_schema467.FieldType<number, number>;
252
+ type: _contractspec_lib_schema467.FieldType<string, string>;
253
253
  isOptional: false;
254
254
  };
255
255
  }>, SchemaModel<{
@@ -9,14 +9,14 @@ const LifecyclePolicy = {
9
9
  auth: "admin",
10
10
  policies: [{
11
11
  key: "platform.app-config.manage",
12
- version: 1
12
+ version: "1.0.0"
13
13
  }]
14
14
  };
15
15
  const LifecycleReadPolicy = {
16
16
  auth: "admin",
17
17
  policies: [{
18
18
  key: "platform.app-config.read",
19
- version: 1
19
+ version: "1.0.0"
20
20
  }]
21
21
  };
22
22
  const ConfigVersionRecord = new SchemaModel({
@@ -52,7 +52,7 @@ const ConfigTransitionRecord = new SchemaModel({
52
52
  isOptional: false
53
53
  },
54
54
  version: {
55
- type: ScalarTypeEnum.Int_unsecure(),
55
+ type: ScalarTypeEnum.String_unsecure(),
56
56
  isOptional: false
57
57
  },
58
58
  timestamp: {
@@ -93,7 +93,7 @@ const CreateDraftInput = new SchemaModel({
93
93
  isOptional: true
94
94
  },
95
95
  fromVersion: {
96
- type: ScalarTypeEnum.Int_unsecure(),
96
+ type: ScalarTypeEnum.String_unsecure(),
97
97
  isOptional: true
98
98
  },
99
99
  createdBy: {
@@ -106,7 +106,7 @@ const CreateDraftOutput = new SchemaModel({
106
106
  name: "CreateTenantConfigDraftOutput",
107
107
  fields: {
108
108
  version: {
109
- type: ScalarTypeEnum.Int_unsecure(),
109
+ type: ScalarTypeEnum.String_unsecure(),
110
110
  isOptional: false
111
111
  },
112
112
  status: {
@@ -122,7 +122,7 @@ const CreateDraftOutput = new SchemaModel({
122
122
  const CreateTenantConfigDraftCommand = defineCommand({
123
123
  meta: {
124
124
  key: "appConfig.lifecycle.createDraft",
125
- version: 1,
125
+ version: "1.0.0",
126
126
  description: "Creates a new draft tenant config version.",
127
127
  owners: [OwnersEnum.PlatformSigil],
128
128
  tags: [TagsEnum.Hygiene, "app-config"],
@@ -152,7 +152,7 @@ const PromotePreviewInput = new SchemaModel({
152
152
  isOptional: false
153
153
  },
154
154
  version: {
155
- type: ScalarTypeEnum.Int_unsecure(),
155
+ type: ScalarTypeEnum.String_unsecure(),
156
156
  isOptional: false
157
157
  },
158
158
  promotedBy: {
@@ -165,7 +165,7 @@ const PromotePreviewOutput = new SchemaModel({
165
165
  name: "PromoteTenantConfigPreviewOutput",
166
166
  fields: {
167
167
  version: {
168
- type: ScalarTypeEnum.Int_unsecure(),
168
+ type: ScalarTypeEnum.String_unsecure(),
169
169
  isOptional: false
170
170
  },
171
171
  status: {
@@ -182,7 +182,7 @@ const PromotePreviewOutput = new SchemaModel({
182
182
  const PromoteTenantConfigToPreviewCommand = defineCommand({
183
183
  meta: {
184
184
  key: "appConfig.lifecycle.promoteToPreview",
185
- version: 1,
185
+ version: "1.0.0",
186
186
  description: "Promotes a draft tenant config to preview/testing state.",
187
187
  owners: [OwnersEnum.PlatformSigil],
188
188
  tags: [TagsEnum.Hygiene, "app-config"],
@@ -212,7 +212,7 @@ const PublishConfigInput = new SchemaModel({
212
212
  isOptional: false
213
213
  },
214
214
  version: {
215
- type: ScalarTypeEnum.Int_unsecure(),
215
+ type: ScalarTypeEnum.String_unsecure(),
216
216
  isOptional: false
217
217
  },
218
218
  environment: {
@@ -233,7 +233,7 @@ const PublishConfigOutput = new SchemaModel({
233
233
  name: "PublishTenantConfigOutput",
234
234
  fields: {
235
235
  version: {
236
- type: ScalarTypeEnum.Int_unsecure(),
236
+ type: ScalarTypeEnum.String_unsecure(),
237
237
  isOptional: false
238
238
  },
239
239
  status: {
@@ -241,7 +241,7 @@ const PublishConfigOutput = new SchemaModel({
241
241
  isOptional: false
242
242
  },
243
243
  previousVersion: {
244
- type: ScalarTypeEnum.Int_unsecure(),
244
+ type: ScalarTypeEnum.String_unsecure(),
245
245
  isOptional: true
246
246
  },
247
247
  publishedAt: {
@@ -253,7 +253,7 @@ const PublishConfigOutput = new SchemaModel({
253
253
  const PublishTenantConfigCommand = defineCommand({
254
254
  meta: {
255
255
  key: "appConfig.lifecycle.publish",
256
- version: 1,
256
+ version: "1.0.0",
257
257
  description: "Publishes a preview tenant config to production.",
258
258
  owners: [OwnersEnum.PlatformSigil],
259
259
  tags: [TagsEnum.Hygiene, "app-config"],
@@ -283,7 +283,7 @@ const RollbackConfigInput = new SchemaModel({
283
283
  isOptional: false
284
284
  },
285
285
  toVersion: {
286
- type: ScalarTypeEnum.Int_unsecure(),
286
+ type: ScalarTypeEnum.String_unsecure(),
287
287
  isOptional: false
288
288
  },
289
289
  environment: {
@@ -304,7 +304,7 @@ const RollbackConfigOutput = new SchemaModel({
304
304
  name: "RollbackTenantConfigOutput",
305
305
  fields: {
306
306
  newVersion: {
307
- type: ScalarTypeEnum.Int_unsecure(),
307
+ type: ScalarTypeEnum.String_unsecure(),
308
308
  isOptional: false
309
309
  },
310
310
  status: {
@@ -320,7 +320,7 @@ const RollbackConfigOutput = new SchemaModel({
320
320
  const RollbackTenantConfigCommand = defineCommand({
321
321
  meta: {
322
322
  key: "appConfig.lifecycle.rollback",
323
- version: 1,
323
+ version: "1.0.0",
324
324
  description: "Rolls back to a previously published tenant config version.",
325
325
  owners: [OwnersEnum.PlatformSigil],
326
326
  tags: [TagsEnum.Hygiene, "app-config"],
@@ -369,7 +369,7 @@ const ListVersionsOutput = new SchemaModel({
369
369
  const ListTenantConfigVersionsQuery = defineQuery({
370
370
  meta: {
371
371
  key: "appConfig.lifecycle.listVersions",
372
- version: 1,
372
+ version: "1.0.0",
373
373
  description: "Lists all versions of a tenant configuration.",
374
374
  owners: [OwnersEnum.PlatformSigil],
375
375
  tags: ["app-config", TagsEnum.Hygiene],
@@ -395,7 +395,7 @@ const GetVersionInput = new SchemaModel({
395
395
  isOptional: false
396
396
  },
397
397
  version: {
398
- type: ScalarTypeEnum.Int_unsecure(),
398
+ type: ScalarTypeEnum.String_unsecure(),
399
399
  isOptional: false
400
400
  }
401
401
  }
@@ -410,7 +410,7 @@ const GetVersionOutput = new SchemaModel({
410
410
  const GetTenantConfigVersionQuery = defineQuery({
411
411
  meta: {
412
412
  key: "appConfig.lifecycle.getVersion",
413
- version: 1,
413
+ version: "1.0.0",
414
414
  description: "Fetches a single tenant config version by id.",
415
415
  owners: [OwnersEnum.PlatformSigil],
416
416
  tags: ["app-config", TagsEnum.Hygiene],
@@ -11,7 +11,7 @@ interface ConfigTransition {
11
11
  appId: string;
12
12
  fromStatus: ConfigStatus;
13
13
  toStatus: ConfigStatus;
14
- version: number;
14
+ version: string;
15
15
  timestamp: string | Date;
16
16
  actor: string;
17
17
  reason?: string;
@@ -21,7 +21,7 @@ interface ConfigVersionHistory {
21
21
  appId: string;
22
22
  versions: TenantAppConfigVersion[];
23
23
  transitions: ConfigTransition[];
24
- currentPublished?: number;
24
+ currentPublished?: string;
25
25
  }
26
26
  //#endregion
27
27
  export { ConfigStatus, ConfigTransition, ConfigVersionHistory, TenantAppConfigVersion };
@@ -2,7 +2,6 @@ import { CapabilityRef, CapabilityRegistry, CapabilitySpec } from "../capabiliti
2
2
  import "../capabilities/index.js";
3
3
  import { PolicyRef, PolicySpec } from "../policy/spec.js";
4
4
  import { TelemetryRegistry, TelemetrySpec } from "../telemetry/spec.js";
5
- import { ExperimentRef, ExperimentRegistry, ExperimentSpec } from "../experiments/spec.js";
6
5
  import { DataViewSpec } from "../data-views/spec.js";
7
6
  import { DataViewRegistry } from "../data-views/registry.js";
8
7
  import "../data-views/index.js";
@@ -18,6 +17,7 @@ import { AppKnowledgeBinding } from "../knowledge/binding.js";
18
17
  import { ResolvedBranding } from "./branding.js";
19
18
  import { Locale, TranslationEntry } from "../translations/catalog.js";
20
19
  import { AppBlueprintSpec, AppIntegrationSlot, AppRouteConfig, AppThemeBinding, FeatureFlagState, SpecPointer, TelemetryBinding, TenantAppConfig, TranslationCatalogPointer } from "./spec.js";
20
+ import { ExperimentRef, ExperimentRegistry, ExperimentSpec } from "../experiments/spec.js";
21
21
  import { FeatureModuleSpec, FeatureRef } from "../features/types.js";
22
22
  import { FeatureRegistry } from "../features/registry.js";
23
23
  import "../features/index.js";
@@ -45,8 +45,8 @@ interface ResolvedAppConfig {
45
45
  tenantId: string;
46
46
  environment?: string;
47
47
  blueprintName: string;
48
- blueprintVersion: number;
49
- configVersion: number;
48
+ blueprintVersion: string;
49
+ configVersion: string;
50
50
  capabilities: {
51
51
  enabled: CapabilityRef[];
52
52
  disabled: CapabilityRef[];