@lssm/lib.contracts 1.7.1 → 1.7.3

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 (90) hide show
  1. package/dist/app-config/contracts.d.ts +49 -51
  2. package/dist/app-config/contracts.d.ts.map +1 -1
  3. package/dist/app-config/contracts.js +1 -1
  4. package/dist/app-config/contracts.js.map +1 -1
  5. package/dist/app-config/events.d.ts +26 -28
  6. package/dist/app-config/events.d.ts.map +1 -1
  7. package/dist/app-config/events.js +1 -1
  8. package/dist/app-config/events.js.map +1 -1
  9. package/dist/app-config/lifecycle-contracts.d.ts +79 -81
  10. package/dist/app-config/lifecycle-contracts.d.ts.map +1 -1
  11. package/dist/app-config/lifecycle-contracts.js +1 -1
  12. package/dist/app-config/lifecycle-contracts.js.map +1 -1
  13. package/dist/capabilities/openbanking.js.map +1 -1
  14. package/dist/client/react/form-render.d.ts +0 -1
  15. package/dist/client/react/form-render.d.ts.map +1 -1
  16. package/dist/contracts-adapter-input.d.ts +0 -1
  17. package/dist/contracts-adapter-input.d.ts.map +1 -1
  18. package/dist/events.d.ts +0 -1
  19. package/dist/events.d.ts.map +1 -1
  20. package/dist/events.js +1 -1
  21. package/dist/events.js.map +1 -1
  22. package/dist/forms.d.ts +0 -1
  23. package/dist/forms.d.ts.map +1 -1
  24. package/dist/install.d.ts +0 -1
  25. package/dist/install.d.ts.map +1 -1
  26. package/dist/integrations/contracts.d.ts +101 -103
  27. package/dist/integrations/contracts.d.ts.map +1 -1
  28. package/dist/integrations/contracts.js +1 -1
  29. package/dist/integrations/contracts.js.map +1 -1
  30. package/dist/integrations/openbanking/contracts/accounts.d.ts +65 -67
  31. package/dist/integrations/openbanking/contracts/accounts.d.ts.map +1 -1
  32. package/dist/integrations/openbanking/contracts/accounts.js +1 -1
  33. package/dist/integrations/openbanking/contracts/accounts.js.map +1 -1
  34. package/dist/integrations/openbanking/contracts/balances.d.ts +33 -35
  35. package/dist/integrations/openbanking/contracts/balances.d.ts.map +1 -1
  36. package/dist/integrations/openbanking/contracts/balances.js +1 -1
  37. package/dist/integrations/openbanking/contracts/balances.js.map +1 -1
  38. package/dist/integrations/openbanking/contracts/index.js.map +1 -1
  39. package/dist/integrations/openbanking/contracts/transactions.d.ts +47 -49
  40. package/dist/integrations/openbanking/contracts/transactions.d.ts.map +1 -1
  41. package/dist/integrations/openbanking/contracts/transactions.js +1 -1
  42. package/dist/integrations/openbanking/contracts/transactions.js.map +1 -1
  43. package/dist/integrations/openbanking/guards.js.map +1 -1
  44. package/dist/integrations/openbanking/models.d.ts +54 -57
  45. package/dist/integrations/openbanking/models.d.ts.map +1 -1
  46. package/dist/integrations/openbanking/models.js +1 -1
  47. package/dist/integrations/openbanking/models.js.map +1 -1
  48. package/dist/integrations/openbanking/telemetry.js.map +1 -1
  49. package/dist/integrations/providers/powens.js.map +1 -1
  50. package/dist/jsonschema.d.ts +1 -1
  51. package/dist/jsonschema.d.ts.map +1 -1
  52. package/dist/knowledge/contracts.d.ts +65 -67
  53. package/dist/knowledge/contracts.d.ts.map +1 -1
  54. package/dist/knowledge/contracts.js +1 -1
  55. package/dist/knowledge/contracts.js.map +1 -1
  56. package/dist/knowledge/spaces/product-canon.js.map +1 -1
  57. package/dist/knowledge/spaces/support-faq.js.map +1 -1
  58. package/dist/knowledge/spec.js.map +1 -1
  59. package/dist/onboarding-base.d.ts +28 -30
  60. package/dist/onboarding-base.d.ts.map +1 -1
  61. package/dist/onboarding-base.js +1 -1
  62. package/dist/onboarding-base.js.map +1 -1
  63. package/dist/presentations.d.ts +0 -1
  64. package/dist/presentations.d.ts.map +1 -1
  65. package/dist/presentations.v2.d.ts +0 -1
  66. package/dist/presentations.v2.d.ts.map +1 -1
  67. package/dist/regenerator/executor.js.map +1 -1
  68. package/dist/regenerator/service.js.map +1 -1
  69. package/dist/regenerator/sinks.js.map +1 -1
  70. package/dist/regenerator/utils.js.map +1 -1
  71. package/dist/registry.d.ts +0 -1
  72. package/dist/registry.d.ts.map +1 -1
  73. package/dist/resources.d.ts.map +1 -1
  74. package/dist/schema/{dist → src}/FieldType.js +1 -1
  75. package/dist/schema/src/FieldType.js.map +1 -0
  76. package/dist/schema/src/ScalarTypeEnum.js +2 -0
  77. package/dist/schema/src/ScalarTypeEnum.js.map +1 -0
  78. package/dist/schema/{dist → src}/SchemaModel.js +1 -1
  79. package/dist/schema/src/SchemaModel.js.map +1 -0
  80. package/dist/schema/src/index.js +1 -0
  81. package/dist/spec.d.ts +0 -1
  82. package/dist/spec.d.ts.map +1 -1
  83. package/dist/workflow/spec.d.ts.map +1 -1
  84. package/package.json +339 -168
  85. package/dist/schema/dist/FieldType.js.map +0 -1
  86. package/dist/schema/dist/ScalarTypeEnum.js +0 -2
  87. package/dist/schema/dist/ScalarTypeEnum.js.map +0 -1
  88. package/dist/schema/dist/SchemaModel.js.map +0 -1
  89. package/dist/schema/dist/index.js +0 -1
  90. /package/dist/schema/{dist → src}/EnumType.js +0 -0
@@ -1,38 +1,36 @@
1
1
  import { ContractSpec } from "../spec.js";
2
2
  import { SpecRegistry } from "../registry.js";
3
- import * as _lssm_lib_schema0 from "@lssm/lib.schema";
4
- import { SchemaModel } from "@lssm/lib.schema";
5
3
 
6
4
  //#region src/app-config/contracts.d.ts
7
5
  declare const UpdateTenantBrandingCommand: ContractSpec<SchemaModel<{
8
6
  tenantId: {
9
- type: _lssm_lib_schema0.FieldType<string, string>;
7
+ type: void 0<string, string>;
10
8
  isOptional: false;
11
9
  };
12
10
  appId: {
13
- type: _lssm_lib_schema0.FieldType<string, string>;
11
+ type: void 0<string, string>;
14
12
  isOptional: false;
15
13
  };
16
14
  environment: {
17
- type: _lssm_lib_schema0.FieldType<string, string>;
15
+ type: void 0<string, string>;
18
16
  isOptional: true;
19
17
  };
20
18
  appName: {
21
- type: _lssm_lib_schema0.FieldType<Record<string, unknown>, Record<string, unknown>>;
19
+ type: void 0<Record<string, unknown>, Record<string, unknown>>;
22
20
  isOptional: true;
23
21
  };
24
22
  assets: {
25
23
  type: SchemaModel<{
26
24
  type: {
27
- type: _lssm_lib_schema0.FieldType<string, string>;
25
+ type: void 0<string, string>;
28
26
  isOptional: false;
29
27
  };
30
28
  url: {
31
- type: _lssm_lib_schema0.FieldType<string, string>;
29
+ type: void 0<string, string>;
32
30
  isOptional: false;
33
31
  };
34
32
  mimeType: {
35
- type: _lssm_lib_schema0.FieldType<string, string>;
33
+ type: void 0<string, string>;
36
34
  isOptional: true;
37
35
  };
38
36
  }>;
@@ -40,92 +38,92 @@ declare const UpdateTenantBrandingCommand: ContractSpec<SchemaModel<{
40
38
  isArray: true;
41
39
  };
42
40
  colors: {
43
- type: _lssm_lib_schema0.FieldType<Record<string, unknown>, Record<string, unknown>>;
41
+ type: void 0<Record<string, unknown>, Record<string, unknown>>;
44
42
  isOptional: true;
45
43
  };
46
44
  customDomain: {
47
- type: _lssm_lib_schema0.FieldType<string, string>;
45
+ type: void 0<string, string>;
48
46
  isOptional: true;
49
47
  };
50
48
  subdomain: {
51
- type: _lssm_lib_schema0.FieldType<string, string>;
49
+ type: void 0<string, string>;
52
50
  isOptional: true;
53
51
  };
54
52
  }>, SchemaModel<{
55
53
  success: {
56
- type: _lssm_lib_schema0.FieldType<boolean, boolean>;
54
+ type: void 0<boolean, boolean>;
57
55
  isOptional: false;
58
56
  };
59
57
  updatedAt: {
60
- type: _lssm_lib_schema0.FieldType<Date, string>;
58
+ type: void 0<Date, string>;
61
59
  isOptional: false;
62
60
  };
63
61
  }>, undefined>;
64
62
  declare const VerifyCustomDomainCommand: ContractSpec<SchemaModel<{
65
63
  tenantId: {
66
- type: _lssm_lib_schema0.FieldType<string, string>;
64
+ type: void 0<string, string>;
67
65
  isOptional: false;
68
66
  };
69
67
  appId: {
70
- type: _lssm_lib_schema0.FieldType<string, string>;
68
+ type: void 0<string, string>;
71
69
  isOptional: false;
72
70
  };
73
71
  domain: {
74
- type: _lssm_lib_schema0.FieldType<string, string>;
72
+ type: void 0<string, string>;
75
73
  isOptional: false;
76
74
  };
77
75
  }>, SchemaModel<{
78
76
  status: {
79
- type: _lssm_lib_schema0.FieldType<string, string>;
77
+ type: void 0<string, string>;
80
78
  isOptional: false;
81
79
  };
82
80
  message: {
83
- type: _lssm_lib_schema0.FieldType<string, string>;
81
+ type: void 0<string, string>;
84
82
  isOptional: true;
85
83
  };
86
84
  }>, undefined>;
87
85
  declare const UpdateBlueprintTranslationCatalogCommand: ContractSpec<SchemaModel<{
88
86
  blueprintName: {
89
- type: _lssm_lib_schema0.FieldType<string, string>;
87
+ type: void 0<string, string>;
90
88
  isOptional: false;
91
89
  };
92
90
  blueprintVersion: {
93
- type: _lssm_lib_schema0.FieldType<number, number>;
91
+ type: void 0<number, number>;
94
92
  isOptional: false;
95
93
  };
96
94
  catalogName: {
97
- type: _lssm_lib_schema0.FieldType<string, string>;
95
+ type: void 0<string, string>;
98
96
  isOptional: false;
99
97
  };
100
98
  catalogVersion: {
101
- type: _lssm_lib_schema0.FieldType<number, number>;
99
+ type: void 0<number, number>;
102
100
  isOptional: false;
103
101
  };
104
102
  defaultLocale: {
105
- type: _lssm_lib_schema0.FieldType<string, string>;
103
+ type: void 0<string, string>;
106
104
  isOptional: false;
107
105
  };
108
106
  supportedLocales: {
109
- type: _lssm_lib_schema0.FieldType<string, string>;
107
+ type: void 0<string, string>;
110
108
  isOptional: false;
111
109
  isArray: true;
112
110
  };
113
111
  entries: {
114
112
  type: SchemaModel<{
115
113
  key: {
116
- type: _lssm_lib_schema0.FieldType<string, string>;
114
+ type: void 0<string, string>;
117
115
  isOptional: false;
118
116
  };
119
117
  locale: {
120
- type: _lssm_lib_schema0.FieldType<string, string>;
118
+ type: void 0<string, string>;
121
119
  isOptional: false;
122
120
  };
123
121
  value: {
124
- type: _lssm_lib_schema0.FieldType<string, string>;
122
+ type: void 0<string, string>;
125
123
  isOptional: false;
126
124
  };
127
125
  context: {
128
- type: _lssm_lib_schema0.FieldType<string, string>;
126
+ type: void 0<string, string>;
129
127
  isOptional: true;
130
128
  };
131
129
  }>;
@@ -134,39 +132,39 @@ declare const UpdateBlueprintTranslationCatalogCommand: ContractSpec<SchemaModel
134
132
  };
135
133
  }>, SchemaModel<{
136
134
  success: {
137
- type: _lssm_lib_schema0.FieldType<boolean, boolean>;
135
+ type: void 0<boolean, boolean>;
138
136
  isOptional: false;
139
137
  };
140
138
  updatedAt: {
141
- type: _lssm_lib_schema0.FieldType<Date, string>;
139
+ type: void 0<Date, string>;
142
140
  isOptional: false;
143
141
  };
144
142
  }>, undefined>;
145
143
  declare const UpdateTenantTranslationOverridesCommand: ContractSpec<SchemaModel<{
146
144
  tenantId: {
147
- type: _lssm_lib_schema0.FieldType<string, string>;
145
+ type: void 0<string, string>;
148
146
  isOptional: false;
149
147
  };
150
148
  appId: {
151
- type: _lssm_lib_schema0.FieldType<string, string>;
149
+ type: void 0<string, string>;
152
150
  isOptional: false;
153
151
  };
154
152
  entries: {
155
153
  type: SchemaModel<{
156
154
  key: {
157
- type: _lssm_lib_schema0.FieldType<string, string>;
155
+ type: void 0<string, string>;
158
156
  isOptional: false;
159
157
  };
160
158
  locale: {
161
- type: _lssm_lib_schema0.FieldType<string, string>;
159
+ type: void 0<string, string>;
162
160
  isOptional: false;
163
161
  };
164
162
  value: {
165
- type: _lssm_lib_schema0.FieldType<string, string>;
163
+ type: void 0<string, string>;
166
164
  isOptional: false;
167
165
  };
168
166
  context: {
169
- type: _lssm_lib_schema0.FieldType<string, string>;
167
+ type: void 0<string, string>;
170
168
  isOptional: true;
171
169
  };
172
170
  }>;
@@ -174,67 +172,67 @@ declare const UpdateTenantTranslationOverridesCommand: ContractSpec<SchemaModel<
174
172
  isArray: true;
175
173
  };
176
174
  defaultLocale: {
177
- type: _lssm_lib_schema0.FieldType<string, string>;
175
+ type: void 0<string, string>;
178
176
  isOptional: true;
179
177
  };
180
178
  enabledLocales: {
181
- type: _lssm_lib_schema0.FieldType<string, string>;
179
+ type: void 0<string, string>;
182
180
  isOptional: true;
183
181
  isArray: true;
184
182
  };
185
183
  }>, SchemaModel<{
186
184
  success: {
187
- type: _lssm_lib_schema0.FieldType<boolean, boolean>;
185
+ type: void 0<boolean, boolean>;
188
186
  isOptional: false;
189
187
  };
190
188
  updatedAt: {
191
- type: _lssm_lib_schema0.FieldType<Date, string>;
189
+ type: void 0<Date, string>;
192
190
  isOptional: false;
193
191
  };
194
192
  }>, undefined>;
195
193
  declare const GetResolvedBrandingQuery: ContractSpec<SchemaModel<{
196
194
  tenantId: {
197
- type: _lssm_lib_schema0.FieldType<string, string>;
195
+ type: void 0<string, string>;
198
196
  isOptional: false;
199
197
  };
200
198
  appId: {
201
- type: _lssm_lib_schema0.FieldType<string, string>;
199
+ type: void 0<string, string>;
202
200
  isOptional: false;
203
201
  };
204
202
  environment: {
205
- type: _lssm_lib_schema0.FieldType<string, string>;
203
+ type: void 0<string, string>;
206
204
  isOptional: true;
207
205
  };
208
206
  }>, SchemaModel<{
209
207
  branding: {
210
- type: _lssm_lib_schema0.FieldType<Record<string, unknown>, Record<string, unknown>>;
208
+ type: void 0<Record<string, unknown>, Record<string, unknown>>;
211
209
  isOptional: false;
212
210
  };
213
211
  }>, undefined>;
214
212
  declare const ResolveMessageQuery: ContractSpec<SchemaModel<{
215
213
  tenantId: {
216
- type: _lssm_lib_schema0.FieldType<string, string>;
214
+ type: void 0<string, string>;
217
215
  isOptional: false;
218
216
  };
219
217
  appId: {
220
- type: _lssm_lib_schema0.FieldType<string, string>;
218
+ type: void 0<string, string>;
221
219
  isOptional: false;
222
220
  };
223
221
  locale: {
224
- type: _lssm_lib_schema0.FieldType<string, string>;
222
+ type: void 0<string, string>;
225
223
  isOptional: false;
226
224
  };
227
225
  key: {
228
- type: _lssm_lib_schema0.FieldType<string, string>;
226
+ type: void 0<string, string>;
229
227
  isOptional: false;
230
228
  };
231
229
  }>, SchemaModel<{
232
230
  value: {
233
- type: _lssm_lib_schema0.FieldType<string, string>;
231
+ type: void 0<string, string>;
234
232
  isOptional: true;
235
233
  };
236
234
  source: {
237
- type: _lssm_lib_schema0.FieldType<string, string>;
235
+ type: void 0<string, string>;
238
236
  isOptional: true;
239
237
  };
240
238
  }>, undefined>;
@@ -1 +1 @@
1
- {"version":3,"file":"contracts.d.ts","names":[],"sources":["../../src/app-config/contracts.ts"],"sourcesContent":[],"mappings":";;;;;;cAgIa,6BAA2B,aAAA;;UAoBtC,iBAAA,CAAA;IApBW,UAAA,EAAA,KAAA;EAoBX,CAAA;;;;;;;;;;;;;;;MApBsC,IAAA,EAAA;QAAA,IAAA,6BAAA,CAAA,MAAA,EAAA,MAAA,CAAA;;;;QAAA,IAAA,6BAAA,CAAA,MAAA,EAAA,MAAA,CAAA;QAAA,UAAA,EAAA,KAAA;MAsB3B,CAAA;MAoBX,QAAA,EAAA;;;MApBoC,CAAA;IAAA,CAAA,CAAA;;;EAAA,CAAA;EAAA,MAAA,EAAA;IAsBzB,IAAA,6BAoBX,OAAA,CAAA,MAAA,EAAA,OAAA,CAAA,QAAA,CAAA,MAAA,EAAA,OAAA,CAAA,CAAA;IAAA,UAAA,EAAA,IAAA;;;;;;;;;;;EApBmD,OAAA,EAAA;IAAA,IAAA,EA5Cb,iBAAA,CAAA,SA4Ca,CAAA,OAAA,EAAA,OAAA,CAAA;;;;IAAA,IAAA,6BAAA,KAAA,EAAA,MAAA,CAAA;IAAA,UAAA,EAAA,KAAA;EAsBxC,CAAA;CAoBX,CAAA,EAAA,SAAA,CAAA;cAhEW,2BAAyB,aAAA;;UAoBpC,iBAAA,CAAA;;;;;;EAwBkD,CAAA;EAAA,MAAA,EAAA;;;;CAAA,CAAA,aAAA,CAAA;EAAA,MAAA,EAAA;IAsBvC,IAAA,EAlEyB,iBAAA,CAAA,SAkGpC,CAAA,MAAA,EAAA,MAAA,CAAA;IAAA,UAAA,EAAA,KAAA;;;IAhCmC,IAAA,6BAAA,CAAA,MAAA,EAAA,MAAA,CAAA;;;;cA5CxB,0CAAwC,aAAA;EA4ChB,aAAA,EAAA;IAAA,IAAA,EAxBnC,iBAA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SAAA,EAAA;IAsBxC,IAAA,QAoBX,KAAA,EAAA,MAAA,CAAA;IAAA,UAAA,EAAA,KAAA;;;cAhEW,2BAAyB,aAAA;;UAoBpC,KAAA;;;;IAwBkD,IAAA,QAAA,CAAA,MAAA,EAAA,MAAA,CAAA;IAAA,UAAA,EAAA,KAAA;;;;IAAA,UAAA,EAAA,KAAA;EAAA,CAAA;AAsBpD,CAAA,CAAA,aAAa,CAAA;EAgCX,MAAA,EAAA;UAlGoC,KAAA;;EAkED,CAAA;;;;;CAAA,CAAA,EAAA,SAAA,CAAA;AAAA,cA5CxB,wCA4CwB,EA5CgB,YA4ChB,CA5CgB,WA4ChB,CAAA;EAkCxB,aAAA,EAAA;IAqBX,IAAA,EA/EA,KAAA,CA+EA,CAAA,MAAA,EAAA,MAAA,CAAA;;;;IArB8B,IAAA,QAAA,CAAA,MAAA,EAAA,MAAA,CAAA;IAAA,UAAA,EAAA,KAAA;;;IAAA,IAAA,QAAA,CAAA,MAAA,EAAA,MAAA,CAAA;IAAA,UAAA,EAAA,KAAA;EAuBnB,CAAA;EASG,cAAA,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;UA9GqC,KAAA;;;;;;;;cAsBxC,yCAAuC,aAAA;;UAoBlD,KAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;UApBkD,KAAA;;;;;;;;cAsBvC,0BAAwB,aAAA;;UAgCnC,KAAA;;;;;;;;;;;;;;;;;cAEW,qBAAmB,aAAA;;UAqB9B,KAAA;;;;;;;;;;;;;;;;;UArB8B,KAAA;;;;;;;;cAuBnB,oBAAoB,eAAe;iBAShC,0BAAA,WAAqC,eAAY"}
@@ -1,2 +1,2 @@
1
- import{l as e}from"../schema/dist/ScalarTypeEnum.js";import{t}from"../schema/dist/SchemaModel.js";import"../schema/dist/index.js";import{defineCommand as n,defineQuery as r}from"../spec.js";import{OwnersEnum as i,StabilityEnum as a,TagsEnum as o}from"../ownership.js";const s=new t({name:`BrandingAssetInput`,fields:{type:{type:e.String_unsecure(),isOptional:!1},url:{type:e.URL(),isOptional:!1},mimeType:{type:e.String_unsecure(),isOptional:!0}}}),c=new t({name:`UpdateTenantBrandingInput`,fields:{tenantId:{type:e.ID(),isOptional:!1},appId:{type:e.ID(),isOptional:!1},environment:{type:e.String_unsecure(),isOptional:!0},appName:{type:e.JSONObject(),isOptional:!0},assets:{type:s,isOptional:!0,isArray:!0},colors:{type:e.JSONObject(),isOptional:!0},customDomain:{type:e.String_unsecure(),isOptional:!0},subdomain:{type:e.String_unsecure(),isOptional:!0}}}),l=new t({name:`UpdateTenantBrandingOutput`,fields:{success:{type:e.Boolean(),isOptional:!1},updatedAt:{type:e.DateTime(),isOptional:!1}}}),u=new t({name:`VerifyCustomDomainInput`,fields:{tenantId:{type:e.ID(),isOptional:!1},appId:{type:e.ID(),isOptional:!1},domain:{type:e.String_unsecure(),isOptional:!1}}}),d=new t({name:`VerifyCustomDomainOutput`,fields:{status:{type:e.String_unsecure(),isOptional:!1},message:{type:e.String_unsecure(),isOptional:!0}}}),f=new t({name:`TranslationEntryInput`,fields:{key:{type:e.String_unsecure(),isOptional:!1},locale:{type:e.String_unsecure(),isOptional:!1},value:{type:e.String_unsecure(),isOptional:!1},context:{type:e.String_unsecure(),isOptional:!0}}}),p=new t({name:`UpdateBlueprintTranslationInput`,fields:{blueprintName:{type:e.String_unsecure(),isOptional:!1},blueprintVersion:{type:e.Int_unsecure(),isOptional:!1},catalogName:{type:e.String_unsecure(),isOptional:!1},catalogVersion:{type:e.Int_unsecure(),isOptional:!1},defaultLocale:{type:e.String_unsecure(),isOptional:!1},supportedLocales:{type:e.String_unsecure(),isOptional:!1,isArray:!0},entries:{type:f,isOptional:!1,isArray:!0}}}),m=new t({name:`UpdateTenantTranslationInput`,fields:{tenantId:{type:e.ID(),isOptional:!1},appId:{type:e.ID(),isOptional:!1},entries:{type:f,isOptional:!1,isArray:!0},defaultLocale:{type:e.String_unsecure(),isOptional:!0},enabledLocales:{type:e.String_unsecure(),isOptional:!0,isArray:!0}}}),h=new t({name:`MessageResolutionInput`,fields:{tenantId:{type:e.ID(),isOptional:!1},appId:{type:e.ID(),isOptional:!1},locale:{type:e.String_unsecure(),isOptional:!1},key:{type:e.String_unsecure(),isOptional:!1}}}),g=new t({name:`MessageResolutionOutput`,fields:{value:{type:e.String_unsecure(),isOptional:!0},source:{type:e.String_unsecure(),isOptional:!0}}}),_=n({meta:{name:`appConfig.updateTenantBranding`,version:1,description:`Applies tenant branding overrides (names, assets, domains).`,owners:[i.PlatformSigil],tags:[`branding`],stability:a.Beta,goal:`Maintain tenant-specific branding assets and domains.`,context:`Invoked by the Studio or automation when a tenant updates branding settings.`},io:{input:c,output:l},policy:{auth:`admin`,policies:[{name:`platform.app-config.manage`,version:1}]}}),v=n({meta:{name:`appConfig.verifyCustomDomain`,version:1,description:`Validates DNS ownership for tenant custom domains.`,owners:[i.PlatformSigil],tags:[`branding`],stability:a.Experimental,goal:`Confirm tenant-provided domains before activation.`,context:`Triggered after the tenant adds DNS records to verify domain ownership.`},io:{input:u,output:d},policy:{auth:`admin`,policies:[{name:`platform.app-config.manage`,version:1}]}}),y=n({meta:{name:`appConfig.updateBlueprintTranslationCatalog`,version:1,description:`Registers or updates translation entries for a blueprint.`,owners:[i.PlatformSigil],tags:[o.I18n],stability:a.Beta,goal:`Keep blueprint translation catalogs in sync with shipped copy.`,context:`Executed by platform automation or CI when committing updated translation catalogs.`},io:{input:p,output:l},policy:{auth:`admin`,policies:[{name:`platform.app-config.manage`,version:1}]}}),b=n({meta:{name:`appConfig.updateTenantTranslations`,version:1,description:`Applies tenant-specific translation entries.`,owners:[i.PlatformSigil],tags:[o.I18n],stability:a.Beta,goal:`Allow tenants to override selected message keys.`,context:`Called by the Studio when a tenant customizes labels or copy for their locale.`},io:{input:m,output:l},policy:{auth:`admin`,policies:[{name:`platform.app-config.manage`,version:1}]}}),x=r({meta:{name:`appConfig.getResolvedBranding`,version:1,description:`Returns the resolved branding for a tenant/app/environment.`,owners:[i.PlatformSigil],tags:[`branding`],stability:a.Beta,goal:`Expose hydrated branding assets for rendering UI/email experiences.`,context:`Used by runtime surfaces to fetch brand assets prior to rendering tenant-specific experiences.`},io:{input:new t({name:`GetResolvedBrandingInput`,fields:{tenantId:{type:e.ID(),isOptional:!1},appId:{type:e.ID(),isOptional:!1},environment:{type:e.String_unsecure(),isOptional:!0}}}),output:new t({name:`GetResolvedBrandingOutput`,fields:{branding:{type:e.JSONObject(),isOptional:!1}}})},policy:{auth:`admin`,policies:[{name:`platform.app-config.read`,version:1}]}}),S=r({meta:{name:`appConfig.resolveMessage`,version:1,description:`Resolves a translation key for a tenant in the requested locale.`,owners:[i.PlatformSigil],tags:[o.I18n],stability:a.Experimental,goal:`Expose a server-side API for resolving message keys on demand.`,context:`Used by backend services or scripts that need translated copy outside the front-end runtime.`},io:{input:h,output:g},policy:{auth:`admin`,policies:[{name:`platform.app-config.read`,version:1}]}}),C={UpdateTenantBrandingCommand:_,VerifyCustomDomainCommand:v,UpdateBlueprintTranslationCatalogCommand:y,UpdateTenantTranslationOverridesCommand:b,GetResolvedBrandingQuery:x,ResolveMessageQuery:S};function w(e){return e.register(_).register(v).register(y).register(b).register(x).register(S)}export{x as GetResolvedBrandingQuery,S as ResolveMessageQuery,y as UpdateBlueprintTranslationCatalogCommand,_ as UpdateTenantBrandingCommand,b as UpdateTenantTranslationOverridesCommand,v as VerifyCustomDomainCommand,C as appConfigContracts,w as registerAppConfigContracts};
1
+ import{ScalarTypeEnum as e}from"../schema/src/ScalarTypeEnum.js";import{SchemaModel as t}from"../schema/src/SchemaModel.js";import"../schema/src/index.js";import{defineCommand as n,defineQuery as r}from"../spec.js";import{OwnersEnum as i,StabilityEnum as a,TagsEnum as o}from"../ownership.js";const s=new t({name:`BrandingAssetInput`,fields:{type:{type:e.String_unsecure(),isOptional:!1},url:{type:e.URL(),isOptional:!1},mimeType:{type:e.String_unsecure(),isOptional:!0}}}),c=new t({name:`UpdateTenantBrandingInput`,fields:{tenantId:{type:e.ID(),isOptional:!1},appId:{type:e.ID(),isOptional:!1},environment:{type:e.String_unsecure(),isOptional:!0},appName:{type:e.JSONObject(),isOptional:!0},assets:{type:s,isOptional:!0,isArray:!0},colors:{type:e.JSONObject(),isOptional:!0},customDomain:{type:e.String_unsecure(),isOptional:!0},subdomain:{type:e.String_unsecure(),isOptional:!0}}}),l=new t({name:`UpdateTenantBrandingOutput`,fields:{success:{type:e.Boolean(),isOptional:!1},updatedAt:{type:e.DateTime(),isOptional:!1}}}),u=new t({name:`VerifyCustomDomainInput`,fields:{tenantId:{type:e.ID(),isOptional:!1},appId:{type:e.ID(),isOptional:!1},domain:{type:e.String_unsecure(),isOptional:!1}}}),d=new t({name:`VerifyCustomDomainOutput`,fields:{status:{type:e.String_unsecure(),isOptional:!1},message:{type:e.String_unsecure(),isOptional:!0}}}),f=new t({name:`TranslationEntryInput`,fields:{key:{type:e.String_unsecure(),isOptional:!1},locale:{type:e.String_unsecure(),isOptional:!1},value:{type:e.String_unsecure(),isOptional:!1},context:{type:e.String_unsecure(),isOptional:!0}}}),p=new t({name:`UpdateBlueprintTranslationInput`,fields:{blueprintName:{type:e.String_unsecure(),isOptional:!1},blueprintVersion:{type:e.Int_unsecure(),isOptional:!1},catalogName:{type:e.String_unsecure(),isOptional:!1},catalogVersion:{type:e.Int_unsecure(),isOptional:!1},defaultLocale:{type:e.String_unsecure(),isOptional:!1},supportedLocales:{type:e.String_unsecure(),isOptional:!1,isArray:!0},entries:{type:f,isOptional:!1,isArray:!0}}}),m=new t({name:`UpdateTenantTranslationInput`,fields:{tenantId:{type:e.ID(),isOptional:!1},appId:{type:e.ID(),isOptional:!1},entries:{type:f,isOptional:!1,isArray:!0},defaultLocale:{type:e.String_unsecure(),isOptional:!0},enabledLocales:{type:e.String_unsecure(),isOptional:!0,isArray:!0}}}),h=new t({name:`MessageResolutionInput`,fields:{tenantId:{type:e.ID(),isOptional:!1},appId:{type:e.ID(),isOptional:!1},locale:{type:e.String_unsecure(),isOptional:!1},key:{type:e.String_unsecure(),isOptional:!1}}}),g=new t({name:`MessageResolutionOutput`,fields:{value:{type:e.String_unsecure(),isOptional:!0},source:{type:e.String_unsecure(),isOptional:!0}}}),_=n({meta:{name:`appConfig.updateTenantBranding`,version:1,description:`Applies tenant branding overrides (names, assets, domains).`,owners:[i.PlatformSigil],tags:[`branding`],stability:a.Beta,goal:`Maintain tenant-specific branding assets and domains.`,context:`Invoked by the Studio or automation when a tenant updates branding settings.`},io:{input:c,output:l},policy:{auth:`admin`,policies:[{name:`platform.app-config.manage`,version:1}]}}),v=n({meta:{name:`appConfig.verifyCustomDomain`,version:1,description:`Validates DNS ownership for tenant custom domains.`,owners:[i.PlatformSigil],tags:[`branding`],stability:a.Experimental,goal:`Confirm tenant-provided domains before activation.`,context:`Triggered after the tenant adds DNS records to verify domain ownership.`},io:{input:u,output:d},policy:{auth:`admin`,policies:[{name:`platform.app-config.manage`,version:1}]}}),y=n({meta:{name:`appConfig.updateBlueprintTranslationCatalog`,version:1,description:`Registers or updates translation entries for a blueprint.`,owners:[i.PlatformSigil],tags:[o.I18n],stability:a.Beta,goal:`Keep blueprint translation catalogs in sync with shipped copy.`,context:`Executed by platform automation or CI when committing updated translation catalogs.`},io:{input:p,output:l},policy:{auth:`admin`,policies:[{name:`platform.app-config.manage`,version:1}]}}),b=n({meta:{name:`appConfig.updateTenantTranslations`,version:1,description:`Applies tenant-specific translation entries.`,owners:[i.PlatformSigil],tags:[o.I18n],stability:a.Beta,goal:`Allow tenants to override selected message keys.`,context:`Called by the Studio when a tenant customizes labels or copy for their locale.`},io:{input:m,output:l},policy:{auth:`admin`,policies:[{name:`platform.app-config.manage`,version:1}]}}),x=r({meta:{name:`appConfig.getResolvedBranding`,version:1,description:`Returns the resolved branding for a tenant/app/environment.`,owners:[i.PlatformSigil],tags:[`branding`],stability:a.Beta,goal:`Expose hydrated branding assets for rendering UI/email experiences.`,context:`Used by runtime surfaces to fetch brand assets prior to rendering tenant-specific experiences.`},io:{input:new t({name:`GetResolvedBrandingInput`,fields:{tenantId:{type:e.ID(),isOptional:!1},appId:{type:e.ID(),isOptional:!1},environment:{type:e.String_unsecure(),isOptional:!0}}}),output:new t({name:`GetResolvedBrandingOutput`,fields:{branding:{type:e.JSONObject(),isOptional:!1}}})},policy:{auth:`admin`,policies:[{name:`platform.app-config.read`,version:1}]}}),S=r({meta:{name:`appConfig.resolveMessage`,version:1,description:`Resolves a translation key for a tenant in the requested locale.`,owners:[i.PlatformSigil],tags:[o.I18n],stability:a.Experimental,goal:`Expose a server-side API for resolving message keys on demand.`,context:`Used by backend services or scripts that need translated copy outside the front-end runtime.`},io:{input:h,output:g},policy:{auth:`admin`,policies:[{name:`platform.app-config.read`,version:1}]}}),C={UpdateTenantBrandingCommand:_,VerifyCustomDomainCommand:v,UpdateBlueprintTranslationCatalogCommand:y,UpdateTenantTranslationOverridesCommand:b,GetResolvedBrandingQuery:x,ResolveMessageQuery:S};function w(e){return e.register(_).register(v).register(y).register(b).register(x).register(S)}export{x as GetResolvedBrandingQuery,S as ResolveMessageQuery,y as UpdateBlueprintTranslationCatalogCommand,_ as UpdateTenantBrandingCommand,b as UpdateTenantTranslationOverridesCommand,v as VerifyCustomDomainCommand,C as appConfigContracts,w as registerAppConfigContracts};
2
2
  //# sourceMappingURL=contracts.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"contracts.js","names":["SchemaModel","ScalarTypeEnum","appConfigContracts: Record<string, ContractSpec<any, any>>"],"sources":["../../src/app-config/contracts.ts"],"sourcesContent":["import {\n ScalarTypeEnum,\n SchemaModel,\n} from '@lssm/lib.schema';\nimport {\n defineCommand,\n defineQuery,\n} from '../spec';\nimport { OwnersEnum, StabilityEnum, TagsEnum } from '../ownership';\nimport type { ContractSpec } from '../spec';\nimport type { SpecRegistry } from '../registry';\n\nconst BrandingAssetInput = new SchemaModel({\n name: 'BrandingAssetInput',\n fields: {\n type: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n url: { type: ScalarTypeEnum.URL(), isOptional: false },\n mimeType: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },\n },\n});\n\nconst UpdateTenantBrandingInput = new SchemaModel({\n name: 'UpdateTenantBrandingInput',\n fields: {\n tenantId: { type: ScalarTypeEnum.ID(), isOptional: false },\n appId: { type: ScalarTypeEnum.ID(), isOptional: false },\n environment: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },\n appName: { type: ScalarTypeEnum.JSONObject(), isOptional: true },\n assets: { type: BrandingAssetInput, isOptional: true, isArray: true },\n colors: { type: ScalarTypeEnum.JSONObject(), isOptional: true },\n customDomain: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },\n subdomain: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },\n },\n});\n\nconst UpdateTenantBrandingOutput = new SchemaModel({\n name: 'UpdateTenantBrandingOutput',\n fields: {\n success: { type: ScalarTypeEnum.Boolean(), isOptional: false },\n updatedAt: { type: ScalarTypeEnum.DateTime(), isOptional: false },\n },\n});\n\nconst VerifyCustomDomainInput = new SchemaModel({\n name: 'VerifyCustomDomainInput',\n fields: {\n tenantId: { type: ScalarTypeEnum.ID(), isOptional: false },\n appId: { type: ScalarTypeEnum.ID(), isOptional: false },\n domain: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n },\n});\n\nconst VerifyCustomDomainOutput = new SchemaModel({\n name: 'VerifyCustomDomainOutput',\n fields: {\n status: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n message: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },\n },\n});\n\nconst TranslationEntryInput = new SchemaModel({\n name: 'TranslationEntryInput',\n fields: {\n key: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n locale: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n value: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n context: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },\n },\n});\n\nconst UpdateBlueprintTranslationInput = new SchemaModel({\n name: 'UpdateBlueprintTranslationInput',\n fields: {\n blueprintName: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n blueprintVersion: { type: ScalarTypeEnum.Int_unsecure(), isOptional: false },\n catalogName: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n catalogVersion: { type: ScalarTypeEnum.Int_unsecure(), isOptional: false },\n defaultLocale: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n supportedLocales: {\n type: ScalarTypeEnum.String_unsecure(),\n isOptional: false,\n isArray: true,\n },\n entries: {\n type: TranslationEntryInput,\n isOptional: false,\n isArray: true,\n },\n },\n});\n\nconst UpdateTenantTranslationInput = new SchemaModel({\n name: 'UpdateTenantTranslationInput',\n fields: {\n tenantId: { type: ScalarTypeEnum.ID(), isOptional: false },\n appId: { type: ScalarTypeEnum.ID(), isOptional: false },\n entries: {\n type: TranslationEntryInput,\n isOptional: false,\n isArray: true,\n },\n defaultLocale: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },\n enabledLocales: {\n type: ScalarTypeEnum.String_unsecure(),\n isOptional: true,\n isArray: true,\n },\n },\n});\n\nconst MessageResolutionInput = new SchemaModel({\n name: 'MessageResolutionInput',\n fields: {\n tenantId: { type: ScalarTypeEnum.ID(), isOptional: false },\n appId: { type: ScalarTypeEnum.ID(), isOptional: false },\n locale: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n key: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n },\n});\n\nconst MessageResolutionOutput = new SchemaModel({\n name: 'MessageResolutionOutput',\n fields: {\n value: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },\n source: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },\n },\n});\n\nexport const UpdateTenantBrandingCommand = defineCommand({\n meta: {\n name: 'appConfig.updateTenantBranding',\n version: 1,\n description: 'Applies tenant branding overrides (names, assets, domains).',\n owners: [OwnersEnum.PlatformSigil],\n tags: ['branding'],\n stability: StabilityEnum.Beta,\n goal: 'Maintain tenant-specific branding assets and domains.',\n context:\n 'Invoked by the Studio or automation when a tenant updates branding settings.',\n },\n io: {\n input: UpdateTenantBrandingInput,\n output: UpdateTenantBrandingOutput,\n },\n policy: {\n auth: 'admin',\n policies: [{ name: 'platform.app-config.manage', version: 1 }],\n },\n});\n\nexport const VerifyCustomDomainCommand = defineCommand({\n meta: {\n name: 'appConfig.verifyCustomDomain',\n version: 1,\n description: 'Validates DNS ownership for tenant custom domains.',\n owners: [OwnersEnum.PlatformSigil],\n tags: ['branding'],\n stability: StabilityEnum.Experimental,\n goal: 'Confirm tenant-provided domains before activation.',\n context:\n 'Triggered after the tenant adds DNS records to verify domain ownership.',\n },\n io: {\n input: VerifyCustomDomainInput,\n output: VerifyCustomDomainOutput,\n },\n policy: {\n auth: 'admin',\n policies: [{ name: 'platform.app-config.manage', version: 1 }],\n },\n});\n\nexport const UpdateBlueprintTranslationCatalogCommand = defineCommand({\n meta: {\n name: 'appConfig.updateBlueprintTranslationCatalog',\n version: 1,\n description: 'Registers or updates translation entries for a blueprint.',\n owners: [OwnersEnum.PlatformSigil],\n tags: [TagsEnum.I18n],\n stability: StabilityEnum.Beta,\n goal: 'Keep blueprint translation catalogs in sync with shipped copy.',\n context:\n 'Executed by platform automation or CI when committing updated translation catalogs.',\n },\n io: {\n input: UpdateBlueprintTranslationInput,\n output: UpdateTenantBrandingOutput,\n },\n policy: {\n auth: 'admin',\n policies: [{ name: 'platform.app-config.manage', version: 1 }],\n },\n});\n\nexport const UpdateTenantTranslationOverridesCommand = defineCommand({\n meta: {\n name: 'appConfig.updateTenantTranslations',\n version: 1,\n description: 'Applies tenant-specific translation entries.',\n owners: [OwnersEnum.PlatformSigil],\n tags: [TagsEnum.I18n],\n stability: StabilityEnum.Beta,\n goal: 'Allow tenants to override selected message keys.',\n context:\n 'Called by the Studio when a tenant customizes labels or copy for their locale.',\n },\n io: {\n input: UpdateTenantTranslationInput,\n output: UpdateTenantBrandingOutput,\n },\n policy: {\n auth: 'admin',\n policies: [{ name: 'platform.app-config.manage', version: 1 }],\n },\n});\n\nexport const GetResolvedBrandingQuery = defineQuery({\n meta: {\n name: 'appConfig.getResolvedBranding',\n version: 1,\n description: 'Returns the resolved branding for a tenant/app/environment.',\n owners: [OwnersEnum.PlatformSigil],\n tags: ['branding'],\n stability: StabilityEnum.Beta,\n goal: 'Expose hydrated branding assets for rendering UI/email experiences.',\n context:\n 'Used by runtime surfaces to fetch brand assets prior to rendering tenant-specific experiences.',\n },\n io: {\n input: new SchemaModel({\n name: 'GetResolvedBrandingInput',\n fields: {\n tenantId: { type: ScalarTypeEnum.ID(), isOptional: false },\n appId: { type: ScalarTypeEnum.ID(), isOptional: false },\n environment: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },\n },\n }),\n output: new SchemaModel({\n name: 'GetResolvedBrandingOutput',\n fields: {\n branding: { type: ScalarTypeEnum.JSONObject(), isOptional: false },\n },\n }),\n },\n policy: {\n auth: 'admin',\n policies: [{ name: 'platform.app-config.read', version: 1 }],\n },\n});\n\nexport const ResolveMessageQuery = defineQuery({\n meta: {\n name: 'appConfig.resolveMessage',\n version: 1,\n description:\n 'Resolves a translation key for a tenant in the requested locale.',\n owners: [OwnersEnum.PlatformSigil],\n tags: [TagsEnum.I18n],\n stability: StabilityEnum.Experimental,\n goal: 'Expose a server-side API for resolving message keys on demand.',\n context:\n 'Used by backend services or scripts that need translated copy outside the front-end runtime.',\n },\n io: {\n input: MessageResolutionInput,\n output: MessageResolutionOutput,\n },\n policy: {\n auth: 'admin',\n policies: [{ name: 'platform.app-config.read', version: 1 }],\n },\n});\n\nexport const appConfigContracts: Record<string, ContractSpec<any, any>> = {\n UpdateTenantBrandingCommand,\n VerifyCustomDomainCommand,\n UpdateBlueprintTranslationCatalogCommand,\n UpdateTenantTranslationOverridesCommand,\n GetResolvedBrandingQuery,\n ResolveMessageQuery,\n};\n\nexport function registerAppConfigContracts(registry: SpecRegistry) {\n return registry\n .register(UpdateTenantBrandingCommand)\n .register(VerifyCustomDomainCommand)\n .register(UpdateBlueprintTranslationCatalogCommand)\n .register(UpdateTenantTranslationOverridesCommand)\n .register(GetResolvedBrandingQuery)\n .register(ResolveMessageQuery);\n}\n\n"],"mappings":"4QAYA,MAAM,EAAqB,IAAIA,EAAY,CACzC,KAAM,qBACN,OAAQ,CACN,KAAM,CAAE,KAAMC,EAAe,iBAAiB,CAAE,WAAY,GAAO,CACnE,IAAK,CAAE,KAAMA,EAAe,KAAK,CAAE,WAAY,GAAO,CACtD,SAAU,CAAE,KAAMA,EAAe,iBAAiB,CAAE,WAAY,GAAM,CACvE,CACF,CAAC,CAEI,EAA4B,IAAID,EAAY,CAChD,KAAM,4BACN,OAAQ,CACN,SAAU,CAAE,KAAMC,EAAe,IAAI,CAAE,WAAY,GAAO,CAC1D,MAAO,CAAE,KAAMA,EAAe,IAAI,CAAE,WAAY,GAAO,CACvD,YAAa,CAAE,KAAMA,EAAe,iBAAiB,CAAE,WAAY,GAAM,CACzE,QAAS,CAAE,KAAMA,EAAe,YAAY,CAAE,WAAY,GAAM,CAChE,OAAQ,CAAE,KAAM,EAAoB,WAAY,GAAM,QAAS,GAAM,CACrE,OAAQ,CAAE,KAAMA,EAAe,YAAY,CAAE,WAAY,GAAM,CAC/D,aAAc,CAAE,KAAMA,EAAe,iBAAiB,CAAE,WAAY,GAAM,CAC1E,UAAW,CAAE,KAAMA,EAAe,iBAAiB,CAAE,WAAY,GAAM,CACxE,CACF,CAAC,CAEI,EAA6B,IAAID,EAAY,CACjD,KAAM,6BACN,OAAQ,CACN,QAAS,CAAE,KAAMC,EAAe,SAAS,CAAE,WAAY,GAAO,CAC9D,UAAW,CAAE,KAAMA,EAAe,UAAU,CAAE,WAAY,GAAO,CAClE,CACF,CAAC,CAEI,EAA0B,IAAID,EAAY,CAC9C,KAAM,0BACN,OAAQ,CACN,SAAU,CAAE,KAAMC,EAAe,IAAI,CAAE,WAAY,GAAO,CAC1D,MAAO,CAAE,KAAMA,EAAe,IAAI,CAAE,WAAY,GAAO,CACvD,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EAAG,CAAC,CAC7D,CACF,CAAC,CAEW,EAAsB,EAAY,CAC7C,KAAM,CACJ,KAAM,2BACN,QAAS,EACT,YACE,mEACF,OAAQ,CAAC,EAAW,cAAc,CAClC,KAAM,CAAC,EAAS,KAAK,CACrB,UAAW,EAAc,aACzB,KAAM,iEACN,QACE,+FACH,CACD,GAAI,CACF,MAAO,EACP,OAAQ,EACT,CACD,OAAQ,CACN,KAAM,QACN,SAAU,CAAC,CAAE,KAAM,2BAA4B,QAAS,EAAG,CAAC,CAC7D,CACF,CAAC,CAEWC,EAA6D,CACxE,8BACA,4BACA,2CACA,0CACA,2BACA,sBACD,CAED,SAAgB,EAA2B,EAAwB,CACjE,OAAO,EACJ,SAAS,EAA4B,CACrC,SAAS,EAA0B,CACnC,SAAS,EAAyC,CAClD,SAAS,EAAwC,CACjD,SAAS,EAAyB,CAClC,SAAS,EAAoB"}
1
+ {"version":3,"file":"contracts.js","names":["appConfigContracts: Record<string, ContractSpec<any, any>>"],"sources":["../../src/app-config/contracts.ts"],"sourcesContent":["import {\n ScalarTypeEnum,\n SchemaModel,\n} from '@lssm/lib.schema';\nimport {\n defineCommand,\n defineQuery,\n} from '../spec';\nimport { OwnersEnum, StabilityEnum, TagsEnum } from '../ownership';\nimport type { ContractSpec } from '../spec';\nimport type { SpecRegistry } from '../registry';\n\nconst BrandingAssetInput = new SchemaModel({\n name: 'BrandingAssetInput',\n fields: {\n type: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n url: { type: ScalarTypeEnum.URL(), isOptional: false },\n mimeType: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },\n },\n});\n\nconst UpdateTenantBrandingInput = new SchemaModel({\n name: 'UpdateTenantBrandingInput',\n fields: {\n tenantId: { type: ScalarTypeEnum.ID(), isOptional: false },\n appId: { type: ScalarTypeEnum.ID(), isOptional: false },\n environment: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },\n appName: { type: ScalarTypeEnum.JSONObject(), isOptional: true },\n assets: { type: BrandingAssetInput, isOptional: true, isArray: true },\n colors: { type: ScalarTypeEnum.JSONObject(), isOptional: true },\n customDomain: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },\n subdomain: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },\n },\n});\n\nconst UpdateTenantBrandingOutput = new SchemaModel({\n name: 'UpdateTenantBrandingOutput',\n fields: {\n success: { type: ScalarTypeEnum.Boolean(), isOptional: false },\n updatedAt: { type: ScalarTypeEnum.DateTime(), isOptional: false },\n },\n});\n\nconst VerifyCustomDomainInput = new SchemaModel({\n name: 'VerifyCustomDomainInput',\n fields: {\n tenantId: { type: ScalarTypeEnum.ID(), isOptional: false },\n appId: { type: ScalarTypeEnum.ID(), isOptional: false },\n domain: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n },\n});\n\nconst VerifyCustomDomainOutput = new SchemaModel({\n name: 'VerifyCustomDomainOutput',\n fields: {\n status: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n message: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },\n },\n});\n\nconst TranslationEntryInput = new SchemaModel({\n name: 'TranslationEntryInput',\n fields: {\n key: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n locale: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n value: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n context: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },\n },\n});\n\nconst UpdateBlueprintTranslationInput = new SchemaModel({\n name: 'UpdateBlueprintTranslationInput',\n fields: {\n blueprintName: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n blueprintVersion: { type: ScalarTypeEnum.Int_unsecure(), isOptional: false },\n catalogName: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n catalogVersion: { type: ScalarTypeEnum.Int_unsecure(), isOptional: false },\n defaultLocale: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n supportedLocales: {\n type: ScalarTypeEnum.String_unsecure(),\n isOptional: false,\n isArray: true,\n },\n entries: {\n type: TranslationEntryInput,\n isOptional: false,\n isArray: true,\n },\n },\n});\n\nconst UpdateTenantTranslationInput = new SchemaModel({\n name: 'UpdateTenantTranslationInput',\n fields: {\n tenantId: { type: ScalarTypeEnum.ID(), isOptional: false },\n appId: { type: ScalarTypeEnum.ID(), isOptional: false },\n entries: {\n type: TranslationEntryInput,\n isOptional: false,\n isArray: true,\n },\n defaultLocale: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },\n enabledLocales: {\n type: ScalarTypeEnum.String_unsecure(),\n isOptional: true,\n isArray: true,\n },\n },\n});\n\nconst MessageResolutionInput = new SchemaModel({\n name: 'MessageResolutionInput',\n fields: {\n tenantId: { type: ScalarTypeEnum.ID(), isOptional: false },\n appId: { type: ScalarTypeEnum.ID(), isOptional: false },\n locale: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n key: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n },\n});\n\nconst MessageResolutionOutput = new SchemaModel({\n name: 'MessageResolutionOutput',\n fields: {\n value: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },\n source: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },\n },\n});\n\nexport const UpdateTenantBrandingCommand = defineCommand({\n meta: {\n name: 'appConfig.updateTenantBranding',\n version: 1,\n description: 'Applies tenant branding overrides (names, assets, domains).',\n owners: [OwnersEnum.PlatformSigil],\n tags: ['branding'],\n stability: StabilityEnum.Beta,\n goal: 'Maintain tenant-specific branding assets and domains.',\n context:\n 'Invoked by the Studio or automation when a tenant updates branding settings.',\n },\n io: {\n input: UpdateTenantBrandingInput,\n output: UpdateTenantBrandingOutput,\n },\n policy: {\n auth: 'admin',\n policies: [{ name: 'platform.app-config.manage', version: 1 }],\n },\n});\n\nexport const VerifyCustomDomainCommand = defineCommand({\n meta: {\n name: 'appConfig.verifyCustomDomain',\n version: 1,\n description: 'Validates DNS ownership for tenant custom domains.',\n owners: [OwnersEnum.PlatformSigil],\n tags: ['branding'],\n stability: StabilityEnum.Experimental,\n goal: 'Confirm tenant-provided domains before activation.',\n context:\n 'Triggered after the tenant adds DNS records to verify domain ownership.',\n },\n io: {\n input: VerifyCustomDomainInput,\n output: VerifyCustomDomainOutput,\n },\n policy: {\n auth: 'admin',\n policies: [{ name: 'platform.app-config.manage', version: 1 }],\n },\n});\n\nexport const UpdateBlueprintTranslationCatalogCommand = defineCommand({\n meta: {\n name: 'appConfig.updateBlueprintTranslationCatalog',\n version: 1,\n description: 'Registers or updates translation entries for a blueprint.',\n owners: [OwnersEnum.PlatformSigil],\n tags: [TagsEnum.I18n],\n stability: StabilityEnum.Beta,\n goal: 'Keep blueprint translation catalogs in sync with shipped copy.',\n context:\n 'Executed by platform automation or CI when committing updated translation catalogs.',\n },\n io: {\n input: UpdateBlueprintTranslationInput,\n output: UpdateTenantBrandingOutput,\n },\n policy: {\n auth: 'admin',\n policies: [{ name: 'platform.app-config.manage', version: 1 }],\n },\n});\n\nexport const UpdateTenantTranslationOverridesCommand = defineCommand({\n meta: {\n name: 'appConfig.updateTenantTranslations',\n version: 1,\n description: 'Applies tenant-specific translation entries.',\n owners: [OwnersEnum.PlatformSigil],\n tags: [TagsEnum.I18n],\n stability: StabilityEnum.Beta,\n goal: 'Allow tenants to override selected message keys.',\n context:\n 'Called by the Studio when a tenant customizes labels or copy for their locale.',\n },\n io: {\n input: UpdateTenantTranslationInput,\n output: UpdateTenantBrandingOutput,\n },\n policy: {\n auth: 'admin',\n policies: [{ name: 'platform.app-config.manage', version: 1 }],\n },\n});\n\nexport const GetResolvedBrandingQuery = defineQuery({\n meta: {\n name: 'appConfig.getResolvedBranding',\n version: 1,\n description: 'Returns the resolved branding for a tenant/app/environment.',\n owners: [OwnersEnum.PlatformSigil],\n tags: ['branding'],\n stability: StabilityEnum.Beta,\n goal: 'Expose hydrated branding assets for rendering UI/email experiences.',\n context:\n 'Used by runtime surfaces to fetch brand assets prior to rendering tenant-specific experiences.',\n },\n io: {\n input: new SchemaModel({\n name: 'GetResolvedBrandingInput',\n fields: {\n tenantId: { type: ScalarTypeEnum.ID(), isOptional: false },\n appId: { type: ScalarTypeEnum.ID(), isOptional: false },\n environment: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },\n },\n }),\n output: new SchemaModel({\n name: 'GetResolvedBrandingOutput',\n fields: {\n branding: { type: ScalarTypeEnum.JSONObject(), isOptional: false },\n },\n }),\n },\n policy: {\n auth: 'admin',\n policies: [{ name: 'platform.app-config.read', version: 1 }],\n },\n});\n\nexport const ResolveMessageQuery = defineQuery({\n meta: {\n name: 'appConfig.resolveMessage',\n version: 1,\n description:\n 'Resolves a translation key for a tenant in the requested locale.',\n owners: [OwnersEnum.PlatformSigil],\n tags: [TagsEnum.I18n],\n stability: StabilityEnum.Experimental,\n goal: 'Expose a server-side API for resolving message keys on demand.',\n context:\n 'Used by backend services or scripts that need translated copy outside the front-end runtime.',\n },\n io: {\n input: MessageResolutionInput,\n output: MessageResolutionOutput,\n },\n policy: {\n auth: 'admin',\n policies: [{ name: 'platform.app-config.read', version: 1 }],\n },\n});\n\nexport const appConfigContracts: Record<string, ContractSpec<any, any>> = {\n UpdateTenantBrandingCommand,\n VerifyCustomDomainCommand,\n UpdateBlueprintTranslationCatalogCommand,\n UpdateTenantTranslationOverridesCommand,\n GetResolvedBrandingQuery,\n ResolveMessageQuery,\n};\n\nexport function registerAppConfigContracts(registry: SpecRegistry) {\n return registry\n .register(UpdateTenantBrandingCommand)\n .register(VerifyCustomDomainCommand)\n .register(UpdateBlueprintTranslationCatalogCommand)\n .register(UpdateTenantTranslationOverridesCommand)\n .register(GetResolvedBrandingQuery)\n .register(ResolveMessageQuery);\n}\n\n"],"mappings":"qSAYA,MAAM,EAAqB,IAAI,EAAY,CACzC,KAAM,qBACN,OAAQ,CACN,KAAM,CAAE,KAAM,EAAe,iBAAiB,CAAE,WAAY,GAAO,CACnE,IAAK,CAAE,KAAM,EAAe,KAAK,CAAE,WAAY,GAAO,CACtD,SAAU,CAAE,KAAM,EAAe,i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BACA,2CACA,0CACA,2BACA,sBACD,CAED,SAAgB,EAA2B,EAAwB,CACjE,OAAO,EACJ,SAAS,EAA4B,CACrC,SAAS,EAA0B,CACnC,SAAS,EAAyC,CAClD,SAAS,EAAwC,CACjD,SAAS,EAAyB,CAClC,SAAS,EAAoB"}
@@ -1,120 +1,118 @@
1
1
  import { EventSpec } from "../events.js";
2
2
  import "../index.js";
3
- import * as _lssm_lib_schema76 from "@lssm/lib.schema";
4
- import { SchemaModel } from "@lssm/lib.schema";
5
3
 
6
4
  //#region src/app-config/events.d.ts
7
5
  declare const ConfigDraftCreatedEvent: EventSpec<SchemaModel<{
8
6
  tenantId: {
9
- type: _lssm_lib_schema76.FieldType<string, string>;
7
+ type: void 0<string, string>;
10
8
  isOptional: false;
11
9
  };
12
10
  appId: {
13
- type: _lssm_lib_schema76.FieldType<string, string>;
11
+ type: void 0<string, string>;
14
12
  isOptional: false;
15
13
  };
16
14
  version: {
17
- type: _lssm_lib_schema76.FieldType<number, number>;
15
+ type: void 0<number, number>;
18
16
  isOptional: false;
19
17
  };
20
18
  blueprintName: {
21
- type: _lssm_lib_schema76.FieldType<string, string>;
19
+ type: void 0<string, string>;
22
20
  isOptional: false;
23
21
  };
24
22
  blueprintVersion: {
25
- type: _lssm_lib_schema76.FieldType<number, number>;
23
+ type: void 0<number, number>;
26
24
  isOptional: false;
27
25
  };
28
26
  createdBy: {
29
- type: _lssm_lib_schema76.FieldType<string, string>;
27
+ type: void 0<string, string>;
30
28
  isOptional: false;
31
29
  };
32
30
  clonedFrom: {
33
- type: _lssm_lib_schema76.FieldType<number, number>;
31
+ type: void 0<number, number>;
34
32
  isOptional: true;
35
33
  };
36
34
  }>>;
37
35
  declare const ConfigPromotedToPreviewEvent: EventSpec<SchemaModel<{
38
36
  tenantId: {
39
- type: _lssm_lib_schema76.FieldType<string, string>;
37
+ type: void 0<string, string>;
40
38
  isOptional: false;
41
39
  };
42
40
  appId: {
43
- type: _lssm_lib_schema76.FieldType<string, string>;
41
+ type: void 0<string, string>;
44
42
  isOptional: false;
45
43
  };
46
44
  version: {
47
- type: _lssm_lib_schema76.FieldType<number, number>;
45
+ type: void 0<number, number>;
48
46
  isOptional: false;
49
47
  };
50
48
  promotedBy: {
51
- type: _lssm_lib_schema76.FieldType<string, string>;
49
+ type: void 0<string, string>;
52
50
  isOptional: false;
53
51
  };
54
52
  warnings: {
55
- type: _lssm_lib_schema76.FieldType<string, string>;
53
+ type: void 0<string, string>;
56
54
  isOptional: true;
57
55
  isArray: true;
58
56
  };
59
57
  }>>;
60
58
  declare const ConfigPublishedEvent: EventSpec<SchemaModel<{
61
59
  tenantId: {
62
- type: _lssm_lib_schema76.FieldType<string, string>;
60
+ type: void 0<string, string>;
63
61
  isOptional: false;
64
62
  };
65
63
  appId: {
66
- type: _lssm_lib_schema76.FieldType<string, string>;
64
+ type: void 0<string, string>;
67
65
  isOptional: false;
68
66
  };
69
67
  version: {
70
- type: _lssm_lib_schema76.FieldType<number, number>;
68
+ type: void 0<number, number>;
71
69
  isOptional: false;
72
70
  };
73
71
  previousVersion: {
74
- type: _lssm_lib_schema76.FieldType<number, number>;
72
+ type: void 0<number, number>;
75
73
  isOptional: true;
76
74
  };
77
75
  publishedBy: {
78
- type: _lssm_lib_schema76.FieldType<string, string>;
76
+ type: void 0<string, string>;
79
77
  isOptional: false;
80
78
  };
81
79
  changeSummary: {
82
- type: _lssm_lib_schema76.FieldType<string, string>;
80
+ type: void 0<string, string>;
83
81
  isOptional: true;
84
82
  };
85
83
  changedSections: {
86
- type: _lssm_lib_schema76.FieldType<string, string>;
84
+ type: void 0<string, string>;
87
85
  isOptional: true;
88
86
  isArray: true;
89
87
  };
90
88
  }>>;
91
89
  declare const ConfigRolledBackEvent: EventSpec<SchemaModel<{
92
90
  tenantId: {
93
- type: _lssm_lib_schema76.FieldType<string, string>;
91
+ type: void 0<string, string>;
94
92
  isOptional: false;
95
93
  };
96
94
  appId: {
97
- type: _lssm_lib_schema76.FieldType<string, string>;
95
+ type: void 0<string, string>;
98
96
  isOptional: false;
99
97
  };
100
98
  newVersion: {
101
- type: _lssm_lib_schema76.FieldType<number, number>;
99
+ type: void 0<number, number>;
102
100
  isOptional: false;
103
101
  };
104
102
  rolledBackFrom: {
105
- type: _lssm_lib_schema76.FieldType<number, number>;
103
+ type: void 0<number, number>;
106
104
  isOptional: false;
107
105
  };
108
106
  rolledBackTo: {
109
- type: _lssm_lib_schema76.FieldType<number, number>;
107
+ type: void 0<number, number>;
110
108
  isOptional: false;
111
109
  };
112
110
  rolledBackBy: {
113
- type: _lssm_lib_schema76.FieldType<string, string>;
111
+ type: void 0<string, string>;
114
112
  isOptional: false;
115
113
  };
116
114
  reason: {
117
- type: _lssm_lib_schema76.FieldType<string, string>;
115
+ type: void 0<string, string>;
118
116
  isOptional: false;
119
117
  };
120
118
  }>>;
@@ -1 +1 @@
1
- {"version":3,"file":"events.d.ts","names":[],"sources":["../../src/app-config/events.ts"],"sourcesContent":[],"mappings":";;;;;;cAca,yBAAuB,UAAA;;UAoBlC,kBAAA,CAAA;;;EApBW,KAAA,EAAA;IAoBX,IAAA,8BAAA,CAAA,MAAA,EAAA,MAAA,CAAA;;;;;;;EApBkC,aAAA,EAAA;IAAA,IAAA,8BAAA,CAAA,MAAA,EAAA,MAAA,CAAA;IAAA,UAAA,EAAA,KAAA;EAsBvB,CAAA;EAmBX,gBAAA,EAAA;;;;;IAnBuC,IAAA,8BAAA,CAAA,MAAA,EAAA,MAAA,CAAA;IAAA,UAAA,EAAA,KAAA;EAAA,CAAA;EAqB5B,UAAA,EAAA;IA8BX,IAAA,8BAAA,CAAA,MAAA,EAAA,MAAA,CAAA;;;;cAnDW,8BAA4B,UAAA;;UAmBvC,kBAAA,CAAA;IAE+B,UAAA,EAAA,KAAA;EAAA,CAAA;EAAA,KAAA,EAAA;IAgCpB,IAAA,8BA0BX,CAAA,MAAA,EAAA,MAAA,CAAA;IAAA,UAAA,EAAA,KAAA;;;;;;;IA1BgC,IAAA,8BAAA,CAAA,MAAA,EAAA,MAAA,CAAA;IAAA,UAAA,EAAA,KAAA;EAAA,CAAA;;;;;;;cAhCrB,sBAAoB,UAAA;;UA8B/B,kBAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAEW,uBAAqB,UAAA;;UA0BhC,kBAAA,CAAA"}
1
+ {"version":3,"file":"events.d.ts","names":[],"sources":["../../src/app-config/events.ts"],"sourcesContent":[],"mappings":";;;;cAca,yBAAuB,UAAA;;UAoBlC,KAAA;IApBW,UAAA,EAAA,KAAA;EAoBX,CAAA;;;;;;;IApBkC,UAAA,EAAA,KAAA;EAAA,CAAA;EAAA,aAAA,EAAA;IAsBvB,IAAA,QAmBX,CAAA,MAAA,EAAA,MAAA,CAAA;IAAA,UAAA,EAAA,KAAA;;;;;EAnBuC,CAAA;EAAA,SAAA,EAAA;IAAA,IAAA,QAAA,CAAA,MAAA,EAAA,MAAA,CAAA;IAqB5B,UAAA,EAAA,KAAA;EA8BX,CAAA;;;;;;cAnDW,8BAA4B,UAAA;EAqBR,QAAA,EAAA;IAAA,IAAA,EAF/B,KAAA,CAE+B,CAAA,MAAA,EAAA,MAAA,CAAA;IAAA,UAAA,EAAA,KAAA;EAgCpB,CAAA;EA0BX,KAAA,EAAA;;;;;;;EA1BgC,CAAA;EAAA,UAAA,EAAA;IAAA,IAAA,QAAA,CAAA,MAAA,EAAA,MAAA,CAAA;;;;;;;;;cAhCrB,sBAAoB,UAAA;;UA8B/B,KAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAEW,uBAAqB,UAAA;;UA0BhC,KAAA"}
@@ -1,2 +1,2 @@
1
- import{l as e}from"../schema/dist/ScalarTypeEnum.js";import{t}from"../schema/dist/SchemaModel.js";import"../schema/dist/index.js";import{defineEvent as n}from"../events.js";import{OwnersEnum as r,StabilityEnum as i,TagsEnum as a}from"../ownership.js";const o={title:`Tenant App Config Lifecycle`,description:`Events emitted when tenant app configurations move through lifecycle stages.`,domain:`app-config.lifecycle`,owners:[r.PlatformSigil],tags:[a.Hygiene],stability:i.Beta},s=n({name:`app_config.draft_created`,version:1,description:`A new tenant config draft was created.`,ownership:o,payload:new t({name:`ConfigDraftCreatedPayload`,fields:{tenantId:{type:e.ID(),isOptional:!1},appId:{type:e.ID(),isOptional:!1},version:{type:e.Int_unsecure(),isOptional:!1},blueprintName:{type:e.String_unsecure(),isOptional:!1},blueprintVersion:{type:e.Int_unsecure(),isOptional:!1},createdBy:{type:e.String_unsecure(),isOptional:!1},clonedFrom:{type:e.Int_unsecure(),isOptional:!0}}})}),c=n({name:`app_config.promoted_to_preview`,version:1,description:`A tenant config draft was promoted to preview.`,ownership:o,payload:new t({name:`ConfigPromotedToPreviewPayload`,fields:{tenantId:{type:e.ID(),isOptional:!1},appId:{type:e.ID(),isOptional:!1},version:{type:e.Int_unsecure(),isOptional:!1},promotedBy:{type:e.String_unsecure(),isOptional:!1},warnings:{type:e.String_unsecure(),isOptional:!0,isArray:!0}}})}),l=n({name:`app_config.published`,version:1,description:`A tenant config version was published to production.`,ownership:o,payload:new t({name:`ConfigPublishedPayload`,fields:{tenantId:{type:e.ID(),isOptional:!1},appId:{type:e.ID(),isOptional:!1},version:{type:e.Int_unsecure(),isOptional:!1},previousVersion:{type:e.Int_unsecure(),isOptional:!0},publishedBy:{type:e.String_unsecure(),isOptional:!1},changeSummary:{type:e.String_unsecure(),isOptional:!0},changedSections:{type:e.String_unsecure(),isOptional:!0,isArray:!0}}})}),u=n({name:`app_config.rolled_back`,version:1,description:`A tenant config was rolled back to a previous version.`,ownership:o,payload:new t({name:`ConfigRolledBackPayload`,fields:{tenantId:{type:e.ID(),isOptional:!1},appId:{type:e.ID(),isOptional:!1},newVersion:{type:e.Int_unsecure(),isOptional:!1},rolledBackFrom:{type:e.Int_unsecure(),isOptional:!1},rolledBackTo:{type:e.Int_unsecure(),isOptional:!1},rolledBackBy:{type:e.String_unsecure(),isOptional:!1},reason:{type:e.String_unsecure(),isOptional:!1}}})});export{s as ConfigDraftCreatedEvent,c as ConfigPromotedToPreviewEvent,l as ConfigPublishedEvent,u as ConfigRolledBackEvent};
1
+ import{ScalarTypeEnum as e}from"../schema/src/ScalarTypeEnum.js";import{SchemaModel as t}from"../schema/src/SchemaModel.js";import"../schema/src/index.js";import{defineEvent as n}from"../events.js";import{OwnersEnum as r,StabilityEnum as i,TagsEnum as a}from"../ownership.js";const o={title:`Tenant App Config Lifecycle`,description:`Events emitted when tenant app configurations move through lifecycle stages.`,domain:`app-config.lifecycle`,owners:[r.PlatformSigil],tags:[a.Hygiene],stability:i.Beta},s=n({name:`app_config.draft_created`,version:1,description:`A new tenant config draft was created.`,ownership:o,payload:new t({name:`ConfigDraftCreatedPayload`,fields:{tenantId:{type:e.ID(),isOptional:!1},appId:{type:e.ID(),isOptional:!1},version:{type:e.Int_unsecure(),isOptional:!1},blueprintName:{type:e.String_unsecure(),isOptional:!1},blueprintVersion:{type:e.Int_unsecure(),isOptional:!1},createdBy:{type:e.String_unsecure(),isOptional:!1},clonedFrom:{type:e.Int_unsecure(),isOptional:!0}}})}),c=n({name:`app_config.promoted_to_preview`,version:1,description:`A tenant config draft was promoted to preview.`,ownership:o,payload:new t({name:`ConfigPromotedToPreviewPayload`,fields:{tenantId:{type:e.ID(),isOptional:!1},appId:{type:e.ID(),isOptional:!1},version:{type:e.Int_unsecure(),isOptional:!1},promotedBy:{type:e.String_unsecure(),isOptional:!1},warnings:{type:e.String_unsecure(),isOptional:!0,isArray:!0}}})}),l=n({name:`app_config.published`,version:1,description:`A tenant config version was published to production.`,ownership:o,payload:new t({name:`ConfigPublishedPayload`,fields:{tenantId:{type:e.ID(),isOptional:!1},appId:{type:e.ID(),isOptional:!1},version:{type:e.Int_unsecure(),isOptional:!1},previousVersion:{type:e.Int_unsecure(),isOptional:!0},publishedBy:{type:e.String_unsecure(),isOptional:!1},changeSummary:{type:e.String_unsecure(),isOptional:!0},changedSections:{type:e.String_unsecure(),isOptional:!0,isArray:!0}}})}),u=n({name:`app_config.rolled_back`,version:1,description:`A tenant config was rolled back to a previous version.`,ownership:o,payload:new t({name:`ConfigRolledBackPayload`,fields:{tenantId:{type:e.ID(),isOptional:!1},appId:{type:e.ID(),isOptional:!1},newVersion:{type:e.Int_unsecure(),isOptional:!1},rolledBackFrom:{type:e.Int_unsecure(),isOptional:!1},rolledBackTo:{type:e.Int_unsecure(),isOptional:!1},rolledBackBy:{type:e.String_unsecure(),isOptional:!1},reason:{type:e.String_unsecure(),isOptional:!1}}})});export{s as ConfigDraftCreatedEvent,c as ConfigPromotedToPreviewEvent,l as ConfigPublishedEvent,u as ConfigRolledBackEvent};
2
2
  //# sourceMappingURL=events.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"events.js","names":["SchemaModel","ScalarTypeEnum"],"sources":["../../src/app-config/events.ts"],"sourcesContent":["import { SchemaModel, ScalarTypeEnum } from '@lssm/lib.schema';\nimport { defineEvent } from '../events';\nimport { OwnersEnum, StabilityEnum, TagsEnum } from '../ownership';\n\nconst lifecycleOwnership = {\n title: 'Tenant App Config Lifecycle',\n description:\n 'Events emitted when tenant app configurations move through lifecycle stages.',\n domain: 'app-config.lifecycle',\n owners: [OwnersEnum.PlatformSigil],\n tags: [TagsEnum.Hygiene],\n stability: StabilityEnum.Beta,\n};\n\nexport const ConfigDraftCreatedEvent = defineEvent({\n name: 'app_config.draft_created',\n version: 1,\n description: 'A new tenant config draft was created.',\n ownership: lifecycleOwnership,\n payload: new SchemaModel({\n name: 'ConfigDraftCreatedPayload',\n fields: {\n tenantId: { type: ScalarTypeEnum.ID(), isOptional: false },\n appId: { type: ScalarTypeEnum.ID(), isOptional: false },\n version: { type: ScalarTypeEnum.Int_unsecure(), isOptional: false },\n blueprintName: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n blueprintVersion: {\n type: ScalarTypeEnum.Int_unsecure(),\n isOptional: false,\n },\n createdBy: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n clonedFrom: { type: ScalarTypeEnum.Int_unsecure(), isOptional: true },\n },\n }),\n});\n\nexport const ConfigPromotedToPreviewEvent = defineEvent({\n name: 'app_config.promoted_to_preview',\n version: 1,\n description: 'A tenant config draft was promoted to preview.',\n ownership: lifecycleOwnership,\n payload: new SchemaModel({\n name: 'ConfigPromotedToPreviewPayload',\n fields: {\n tenantId: { type: ScalarTypeEnum.ID(), isOptional: false },\n appId: { type: ScalarTypeEnum.ID(), isOptional: false },\n version: { type: ScalarTypeEnum.Int_unsecure(), isOptional: false },\n promotedBy: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n warnings: {\n type: ScalarTypeEnum.String_unsecure(),\n isOptional: true,\n isArray: true,\n },\n },\n }),\n});\n\nexport const ConfigPublishedEvent = defineEvent({\n name: 'app_config.published',\n version: 1,\n description: 'A tenant config version was published to production.',\n ownership: lifecycleOwnership,\n payload: new SchemaModel({\n name: 'ConfigPublishedPayload',\n fields: {\n tenantId: { type: ScalarTypeEnum.ID(), isOptional: false },\n appId: { type: ScalarTypeEnum.ID(), isOptional: false },\n version: { type: ScalarTypeEnum.Int_unsecure(), isOptional: false },\n previousVersion: {\n type: ScalarTypeEnum.Int_unsecure(),\n isOptional: true,\n },\n publishedBy: {\n type: ScalarTypeEnum.String_unsecure(),\n isOptional: false,\n },\n changeSummary: {\n type: ScalarTypeEnum.String_unsecure(),\n isOptional: true,\n },\n changedSections: {\n type: ScalarTypeEnum.String_unsecure(),\n isOptional: true,\n isArray: true,\n },\n },\n }),\n});\n\nexport const ConfigRolledBackEvent = defineEvent({\n name: 'app_config.rolled_back',\n version: 1,\n description: 'A tenant config was rolled back to a previous version.',\n ownership: lifecycleOwnership,\n payload: new SchemaModel({\n name: 'ConfigRolledBackPayload',\n fields: {\n tenantId: { type: ScalarTypeEnum.ID(), isOptional: false },\n appId: { type: ScalarTypeEnum.ID(), isOptional: false },\n newVersion: { type: ScalarTypeEnum.Int_unsecure(), isOptional: false },\n rolledBackFrom: {\n type: ScalarTypeEnum.Int_unsecure(),\n isOptional: false,\n },\n rolledBackTo: {\n type: ScalarTypeEnum.Int_unsecure(),\n isOptional: false,\n },\n rolledBackBy: {\n type: ScalarTypeEnum.String_unsecure(),\n isOptional: false,\n },\n reason: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n },\n }),\n});\n\n\n\n\n\n"],"mappings":"2PAIA,MAAM,EAAqB,CACzB,MAAO,8BACP,YACE,+EACF,OAAQ,uBACR,OAAQ,CAAC,EAAW,cAAc,CAClC,KAAM,CAAC,EAAS,QAAQ,CACxB,UAAW,EAAc,KAC1B,CAEY,EAA0B,EAAY,CACjD,KAAM,2BACN,QAAS,EACT,YAAa,yCACb,UAAW,EACX,QAAS,IAAIA,EAAY,CACvB,KAAM,4BACN,OAAQ,CACN,SAAU,CAAE,KAAMC,EAAe,IAAI,CAAE,WAAY,GAAO,CAC1D,MAAO,CAAE,KAAMA,EAAe,IAAI,CAAE,WAAY,GAAO,CACvD,QAAS,CAAE,KAAMA,EAAe,cAAc,CAAE,WAAY,GAAO,CACnE,cAAe,CAAE,KAAMA,EAAe,iBAAiB,CAAE,WAAY,GAAO,CAC5E,iBAAkB,CAChB,KAAMA,EAAe,cAAc,CACnC,WAAY,GACb,CACD,UAAW,CAAE,KAAMA,EAAe,iBAAiB,CAAE,WAAY,GAAO,CACxE,WAAY,CAAE,KAAMA,EAAe,cAAc,CAAE,WAAY,GAAM,CACtE,CACF,CAAC,CACH,CAAC,CAEW,EAA+B,EAAY,CACtD,KAAM,iCACN,QAAS,EACT,YAAa,iDACb,UAAW,EACX,QAAS,IAAID,EAAY,CACvB,KAAM,iCACN,OAAQ,CACN,SAAU,CAAE,KAAMC,EAAe,IAAI,CAAE,WAAY,GAAO,CAC1D,MAAO,CAAE,KAAMA,EAAe,IAAI,CAAE,WAAY,GAAO,CACvD,QAAS,CAAE,KAAMA,EAAe,cAAc,CAAE,WAAY,GAAO,CACnE,WAAY,CAAE,KAAMA,EAAe,iBAAiB,CAAE,WAAY,GAAO,CACzE,SAAU,CACR,KAAMA,EAAe,iBAAiB,CACtC,WAAY,GACZ,QAAS,GACV,CACF,CACF,CAAC,CACH,CAAC,CAEW,EAAuB,EAAY,CAC9C,KAAM,uBACN,QAAS,EACT,YAAa,uDACb,UAAW,EACX,QAAS,IAAID,EAAY,CACvB,KAAM,yBACN,OAAQ,CACN,SAAU,CAAE,KAAMC,EAAe,IAAI,CAAE,WAAY,GAAO,CAC1D,MAAO,CAAE,KAAMA,EAAe,IAAI,CAAE,WAAY,GAAO,CACvD,QAAS,CAAE,KAAMA,EAAe,cAAc,CAAE,WAAY,GAAO,CACnE,gBAAiB,CACf,KAAMA,EAAe,cAAc,CACnC,WAAY,GACb,CACD,YAAa,CACX,KAAMA,EAAe,iBAAiB,CACtC,WAAY,GACb,CACD,cAAe,CACb,KAAMA,EAAe,iBAAiB,CACtC,WAAY,GACb,CACD,gBAAiB,CACf,KAAMA,EAAe,iBAAiB,CACtC,WAAY,GACZ,QAAS,GACV,CACF,CACF,CAAC,CACH,CAAC,CAEW,EAAwB,EAAY,CAC/C,KAAM,yBACN,QAAS,EACT,YAAa,yDACb,UAAW,EACX,QAAS,IAAID,EAAY,CACvB,KAAM,0BACN,OAAQ,CACN,SAAU,CAAE,KAAMC,EAAe,IAAI,CAAE,WAAY,GAAO,CAC1D,MAAO,CAAE,KAAMA,EAAe,IAAI,CAAE,WAAY,GAAO,CACvD,WAAY,CAAE,KAAMA,EAAe,cAAc,CAAE,WAAY,GAAO,CACtE,eAAgB,CACd,KAAMA,EAAe,cAAc,CACnC,WAAY,GACb,CACD,aAAc,CACZ,KAAMA,EAAe,cAAc,CACnC,WAAY,GACb,CACD,aAAc,CACZ,KAAMA,EAAe,iBAAiB,CACtC,WAAY,GACb,CACD,OAAQ,CAAE,KAAMA,EAAe,iBAAiB,CAAE,WAAY,GAAO,CACtE,CACF,CAAC,CACH,CAAC"}
1
+ {"version":3,"file":"events.js","names":[],"sources":["../../src/app-config/events.ts"],"sourcesContent":["import { SchemaModel, ScalarTypeEnum } from '@lssm/lib.schema';\nimport { defineEvent } from '../events';\nimport { OwnersEnum, StabilityEnum, TagsEnum } from '../ownership';\n\nconst lifecycleOwnership = {\n title: 'Tenant App Config Lifecycle',\n description:\n 'Events emitted when tenant app configurations move through lifecycle stages.',\n domain: 'app-config.lifecycle',\n owners: [OwnersEnum.PlatformSigil],\n tags: [TagsEnum.Hygiene],\n stability: StabilityEnum.Beta,\n};\n\nexport const ConfigDraftCreatedEvent = defineEvent({\n name: 'app_config.draft_created',\n version: 1,\n description: 'A new tenant config draft was created.',\n ownership: lifecycleOwnership,\n payload: new SchemaModel({\n name: 'ConfigDraftCreatedPayload',\n fields: {\n tenantId: { type: ScalarTypeEnum.ID(), isOptional: false },\n appId: { type: ScalarTypeEnum.ID(), isOptional: false },\n version: { type: ScalarTypeEnum.Int_unsecure(), isOptional: false },\n blueprintName: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n blueprintVersion: {\n type: ScalarTypeEnum.Int_unsecure(),\n isOptional: false,\n },\n createdBy: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n clonedFrom: { type: ScalarTypeEnum.Int_unsecure(), isOptional: true },\n },\n }),\n});\n\nexport const ConfigPromotedToPreviewEvent = defineEvent({\n name: 'app_config.promoted_to_preview',\n version: 1,\n description: 'A tenant config draft was promoted to preview.',\n ownership: lifecycleOwnership,\n payload: new SchemaModel({\n name: 'ConfigPromotedToPreviewPayload',\n fields: {\n tenantId: { type: ScalarTypeEnum.ID(), isOptional: false },\n appId: { type: ScalarTypeEnum.ID(), isOptional: false },\n version: { type: ScalarTypeEnum.Int_unsecure(), isOptional: false },\n promotedBy: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n warnings: {\n type: ScalarTypeEnum.String_unsecure(),\n isOptional: true,\n isArray: true,\n },\n },\n }),\n});\n\nexport const ConfigPublishedEvent = defineEvent({\n name: 'app_config.published',\n version: 1,\n description: 'A tenant config version was published to production.',\n ownership: lifecycleOwnership,\n payload: new SchemaModel({\n name: 'ConfigPublishedPayload',\n fields: {\n tenantId: { type: ScalarTypeEnum.ID(), isOptional: false },\n appId: { type: ScalarTypeEnum.ID(), isOptional: false },\n version: { type: ScalarTypeEnum.Int_unsecure(), isOptional: false },\n previousVersion: {\n type: ScalarTypeEnum.Int_unsecure(),\n isOptional: true,\n },\n publishedBy: {\n type: ScalarTypeEnum.String_unsecure(),\n isOptional: false,\n },\n changeSummary: {\n type: ScalarTypeEnum.String_unsecure(),\n isOptional: true,\n },\n changedSections: {\n type: ScalarTypeEnum.String_unsecure(),\n isOptional: true,\n isArray: true,\n },\n },\n }),\n});\n\nexport const ConfigRolledBackEvent = defineEvent({\n name: 'app_config.rolled_back',\n version: 1,\n description: 'A tenant config was rolled back to a previous version.',\n ownership: lifecycleOwnership,\n payload: new SchemaModel({\n name: 'ConfigRolledBackPayload',\n fields: {\n tenantId: { type: ScalarTypeEnum.ID(), isOptional: false },\n appId: { type: ScalarTypeEnum.ID(), isOptional: false },\n newVersion: { type: ScalarTypeEnum.Int_unsecure(), isOptional: false },\n rolledBackFrom: {\n type: ScalarTypeEnum.Int_unsecure(),\n isOptional: false,\n },\n rolledBackTo: {\n type: ScalarTypeEnum.Int_unsecure(),\n isOptional: false,\n },\n rolledBackBy: {\n type: ScalarTypeEnum.String_unsecure(),\n isOptional: false,\n },\n reason: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n },\n }),\n});\n\n\n\n\n\n\n\n"],"mappings":"oRAIA,MAAM,EAAqB,CACzB,MAAO,8BACP,YACE,+EACF,OAAQ,uBACR,OAAQ,CAAC,EAAW,cAAc,CAClC,KAAM,CAAC,EAAS,QAAQ,CACxB,UAAW,EAAc,KAC1B,CAEY,EAA0B,EAAY,CACjD,KAAM,2BACN,QAAS,EACT,YAAa,yCACb,UAAW,EACX,QAAS,IAAI,EAAY,CACvB,KAAM,4BACN,OAAQ,CACN,SAAU,CAAE,KAAM,EAAe,IAAI,CAAE,WAAY,GAAO,CAC1D,MAAO,CAAE,KAAM,EAAe,IAAI,CAAE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