@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.
- package/dist/app-config/contracts.d.ts +49 -51
- package/dist/app-config/contracts.d.ts.map +1 -1
- package/dist/app-config/contracts.js +1 -1
- package/dist/app-config/contracts.js.map +1 -1
- package/dist/app-config/events.d.ts +26 -28
- package/dist/app-config/events.d.ts.map +1 -1
- package/dist/app-config/events.js +1 -1
- package/dist/app-config/events.js.map +1 -1
- package/dist/app-config/lifecycle-contracts.d.ts +79 -81
- package/dist/app-config/lifecycle-contracts.d.ts.map +1 -1
- package/dist/app-config/lifecycle-contracts.js +1 -1
- package/dist/app-config/lifecycle-contracts.js.map +1 -1
- package/dist/capabilities/openbanking.js.map +1 -1
- package/dist/client/react/form-render.d.ts +0 -1
- package/dist/client/react/form-render.d.ts.map +1 -1
- package/dist/contracts-adapter-input.d.ts +0 -1
- package/dist/contracts-adapter-input.d.ts.map +1 -1
- package/dist/events.d.ts +0 -1
- package/dist/events.d.ts.map +1 -1
- package/dist/events.js +1 -1
- package/dist/events.js.map +1 -1
- package/dist/forms.d.ts +0 -1
- package/dist/forms.d.ts.map +1 -1
- package/dist/install.d.ts +0 -1
- package/dist/install.d.ts.map +1 -1
- package/dist/integrations/contracts.d.ts +101 -103
- package/dist/integrations/contracts.d.ts.map +1 -1
- package/dist/integrations/contracts.js +1 -1
- package/dist/integrations/contracts.js.map +1 -1
- package/dist/integrations/openbanking/contracts/accounts.d.ts +65 -67
- package/dist/integrations/openbanking/contracts/accounts.d.ts.map +1 -1
- package/dist/integrations/openbanking/contracts/accounts.js +1 -1
- package/dist/integrations/openbanking/contracts/accounts.js.map +1 -1
- package/dist/integrations/openbanking/contracts/balances.d.ts +33 -35
- package/dist/integrations/openbanking/contracts/balances.d.ts.map +1 -1
- package/dist/integrations/openbanking/contracts/balances.js +1 -1
- package/dist/integrations/openbanking/contracts/balances.js.map +1 -1
- package/dist/integrations/openbanking/contracts/index.js.map +1 -1
- package/dist/integrations/openbanking/contracts/transactions.d.ts +47 -49
- package/dist/integrations/openbanking/contracts/transactions.d.ts.map +1 -1
- package/dist/integrations/openbanking/contracts/transactions.js +1 -1
- package/dist/integrations/openbanking/contracts/transactions.js.map +1 -1
- package/dist/integrations/openbanking/guards.js.map +1 -1
- package/dist/integrations/openbanking/models.d.ts +54 -57
- package/dist/integrations/openbanking/models.d.ts.map +1 -1
- package/dist/integrations/openbanking/models.js +1 -1
- package/dist/integrations/openbanking/models.js.map +1 -1
- package/dist/integrations/openbanking/telemetry.js.map +1 -1
- package/dist/integrations/providers/powens.js.map +1 -1
- package/dist/jsonschema.d.ts +1 -1
- package/dist/jsonschema.d.ts.map +1 -1
- package/dist/knowledge/contracts.d.ts +65 -67
- package/dist/knowledge/contracts.d.ts.map +1 -1
- package/dist/knowledge/contracts.js +1 -1
- package/dist/knowledge/contracts.js.map +1 -1
- package/dist/knowledge/spaces/product-canon.js.map +1 -1
- package/dist/knowledge/spaces/support-faq.js.map +1 -1
- package/dist/knowledge/spec.js.map +1 -1
- package/dist/onboarding-base.d.ts +28 -30
- package/dist/onboarding-base.d.ts.map +1 -1
- package/dist/onboarding-base.js +1 -1
- package/dist/onboarding-base.js.map +1 -1
- package/dist/presentations.d.ts +0 -1
- package/dist/presentations.d.ts.map +1 -1
- package/dist/presentations.v2.d.ts +0 -1
- package/dist/presentations.v2.d.ts.map +1 -1
- package/dist/regenerator/executor.js.map +1 -1
- package/dist/regenerator/service.js.map +1 -1
- package/dist/regenerator/sinks.js.map +1 -1
- package/dist/regenerator/utils.js.map +1 -1
- package/dist/registry.d.ts +0 -1
- package/dist/registry.d.ts.map +1 -1
- package/dist/resources.d.ts.map +1 -1
- package/dist/schema/{dist → src}/FieldType.js +1 -1
- package/dist/schema/src/FieldType.js.map +1 -0
- package/dist/schema/src/ScalarTypeEnum.js +2 -0
- package/dist/schema/src/ScalarTypeEnum.js.map +1 -0
- package/dist/schema/{dist → src}/SchemaModel.js +1 -1
- package/dist/schema/src/SchemaModel.js.map +1 -0
- package/dist/schema/src/index.js +1 -0
- package/dist/spec.d.ts +0 -1
- package/dist/spec.d.ts.map +1 -1
- package/dist/workflow/spec.d.ts.map +1 -1
- package/package.json +339 -168
- package/dist/schema/dist/FieldType.js.map +0 -1
- package/dist/schema/dist/ScalarTypeEnum.js +0 -2
- package/dist/schema/dist/ScalarTypeEnum.js.map +0 -1
- package/dist/schema/dist/SchemaModel.js.map +0 -1
- package/dist/schema/dist/index.js +0 -1
- /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:
|
|
7
|
+
type: void 0<string, string>;
|
|
10
8
|
isOptional: false;
|
|
11
9
|
};
|
|
12
10
|
appId: {
|
|
13
|
-
type:
|
|
11
|
+
type: void 0<string, string>;
|
|
14
12
|
isOptional: false;
|
|
15
13
|
};
|
|
16
14
|
environment: {
|
|
17
|
-
type:
|
|
15
|
+
type: void 0<string, string>;
|
|
18
16
|
isOptional: true;
|
|
19
17
|
};
|
|
20
18
|
appName: {
|
|
21
|
-
type:
|
|
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:
|
|
25
|
+
type: void 0<string, string>;
|
|
28
26
|
isOptional: false;
|
|
29
27
|
};
|
|
30
28
|
url: {
|
|
31
|
-
type:
|
|
29
|
+
type: void 0<string, string>;
|
|
32
30
|
isOptional: false;
|
|
33
31
|
};
|
|
34
32
|
mimeType: {
|
|
35
|
-
type:
|
|
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:
|
|
41
|
+
type: void 0<Record<string, unknown>, Record<string, unknown>>;
|
|
44
42
|
isOptional: true;
|
|
45
43
|
};
|
|
46
44
|
customDomain: {
|
|
47
|
-
type:
|
|
45
|
+
type: void 0<string, string>;
|
|
48
46
|
isOptional: true;
|
|
49
47
|
};
|
|
50
48
|
subdomain: {
|
|
51
|
-
type:
|
|
49
|
+
type: void 0<string, string>;
|
|
52
50
|
isOptional: true;
|
|
53
51
|
};
|
|
54
52
|
}>, SchemaModel<{
|
|
55
53
|
success: {
|
|
56
|
-
type:
|
|
54
|
+
type: void 0<boolean, boolean>;
|
|
57
55
|
isOptional: false;
|
|
58
56
|
};
|
|
59
57
|
updatedAt: {
|
|
60
|
-
type:
|
|
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:
|
|
64
|
+
type: void 0<string, string>;
|
|
67
65
|
isOptional: false;
|
|
68
66
|
};
|
|
69
67
|
appId: {
|
|
70
|
-
type:
|
|
68
|
+
type: void 0<string, string>;
|
|
71
69
|
isOptional: false;
|
|
72
70
|
};
|
|
73
71
|
domain: {
|
|
74
|
-
type:
|
|
72
|
+
type: void 0<string, string>;
|
|
75
73
|
isOptional: false;
|
|
76
74
|
};
|
|
77
75
|
}>, SchemaModel<{
|
|
78
76
|
status: {
|
|
79
|
-
type:
|
|
77
|
+
type: void 0<string, string>;
|
|
80
78
|
isOptional: false;
|
|
81
79
|
};
|
|
82
80
|
message: {
|
|
83
|
-
type:
|
|
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:
|
|
87
|
+
type: void 0<string, string>;
|
|
90
88
|
isOptional: false;
|
|
91
89
|
};
|
|
92
90
|
blueprintVersion: {
|
|
93
|
-
type:
|
|
91
|
+
type: void 0<number, number>;
|
|
94
92
|
isOptional: false;
|
|
95
93
|
};
|
|
96
94
|
catalogName: {
|
|
97
|
-
type:
|
|
95
|
+
type: void 0<string, string>;
|
|
98
96
|
isOptional: false;
|
|
99
97
|
};
|
|
100
98
|
catalogVersion: {
|
|
101
|
-
type:
|
|
99
|
+
type: void 0<number, number>;
|
|
102
100
|
isOptional: false;
|
|
103
101
|
};
|
|
104
102
|
defaultLocale: {
|
|
105
|
-
type:
|
|
103
|
+
type: void 0<string, string>;
|
|
106
104
|
isOptional: false;
|
|
107
105
|
};
|
|
108
106
|
supportedLocales: {
|
|
109
|
-
type:
|
|
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:
|
|
114
|
+
type: void 0<string, string>;
|
|
117
115
|
isOptional: false;
|
|
118
116
|
};
|
|
119
117
|
locale: {
|
|
120
|
-
type:
|
|
118
|
+
type: void 0<string, string>;
|
|
121
119
|
isOptional: false;
|
|
122
120
|
};
|
|
123
121
|
value: {
|
|
124
|
-
type:
|
|
122
|
+
type: void 0<string, string>;
|
|
125
123
|
isOptional: false;
|
|
126
124
|
};
|
|
127
125
|
context: {
|
|
128
|
-
type:
|
|
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:
|
|
135
|
+
type: void 0<boolean, boolean>;
|
|
138
136
|
isOptional: false;
|
|
139
137
|
};
|
|
140
138
|
updatedAt: {
|
|
141
|
-
type:
|
|
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:
|
|
145
|
+
type: void 0<string, string>;
|
|
148
146
|
isOptional: false;
|
|
149
147
|
};
|
|
150
148
|
appId: {
|
|
151
|
-
type:
|
|
149
|
+
type: void 0<string, string>;
|
|
152
150
|
isOptional: false;
|
|
153
151
|
};
|
|
154
152
|
entries: {
|
|
155
153
|
type: SchemaModel<{
|
|
156
154
|
key: {
|
|
157
|
-
type:
|
|
155
|
+
type: void 0<string, string>;
|
|
158
156
|
isOptional: false;
|
|
159
157
|
};
|
|
160
158
|
locale: {
|
|
161
|
-
type:
|
|
159
|
+
type: void 0<string, string>;
|
|
162
160
|
isOptional: false;
|
|
163
161
|
};
|
|
164
162
|
value: {
|
|
165
|
-
type:
|
|
163
|
+
type: void 0<string, string>;
|
|
166
164
|
isOptional: false;
|
|
167
165
|
};
|
|
168
166
|
context: {
|
|
169
|
-
type:
|
|
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:
|
|
175
|
+
type: void 0<string, string>;
|
|
178
176
|
isOptional: true;
|
|
179
177
|
};
|
|
180
178
|
enabledLocales: {
|
|
181
|
-
type:
|
|
179
|
+
type: void 0<string, string>;
|
|
182
180
|
isOptional: true;
|
|
183
181
|
isArray: true;
|
|
184
182
|
};
|
|
185
183
|
}>, SchemaModel<{
|
|
186
184
|
success: {
|
|
187
|
-
type:
|
|
185
|
+
type: void 0<boolean, boolean>;
|
|
188
186
|
isOptional: false;
|
|
189
187
|
};
|
|
190
188
|
updatedAt: {
|
|
191
|
-
type:
|
|
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:
|
|
195
|
+
type: void 0<string, string>;
|
|
198
196
|
isOptional: false;
|
|
199
197
|
};
|
|
200
198
|
appId: {
|
|
201
|
-
type:
|
|
199
|
+
type: void 0<string, string>;
|
|
202
200
|
isOptional: false;
|
|
203
201
|
};
|
|
204
202
|
environment: {
|
|
205
|
-
type:
|
|
203
|
+
type: void 0<string, string>;
|
|
206
204
|
isOptional: true;
|
|
207
205
|
};
|
|
208
206
|
}>, SchemaModel<{
|
|
209
207
|
branding: {
|
|
210
|
-
type:
|
|
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:
|
|
214
|
+
type: void 0<string, string>;
|
|
217
215
|
isOptional: false;
|
|
218
216
|
};
|
|
219
217
|
appId: {
|
|
220
|
-
type:
|
|
218
|
+
type: void 0<string, string>;
|
|
221
219
|
isOptional: false;
|
|
222
220
|
};
|
|
223
221
|
locale: {
|
|
224
|
-
type:
|
|
222
|
+
type: void 0<string, string>;
|
|
225
223
|
isOptional: false;
|
|
226
224
|
};
|
|
227
225
|
key: {
|
|
228
|
-
type:
|
|
226
|
+
type: void 0<string, string>;
|
|
229
227
|
isOptional: false;
|
|
230
228
|
};
|
|
231
229
|
}>, SchemaModel<{
|
|
232
230
|
value: {
|
|
233
|
-
type:
|
|
231
|
+
type: void 0<string, string>;
|
|
234
232
|
isOptional: true;
|
|
235
233
|
};
|
|
236
234
|
source: {
|
|
237
|
-
type:
|
|
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":"
|
|
1
|
+
{"version":3,"file":"contracts.d.ts","names":[],"sources":["../../src/app-config/contracts.ts"],"sourcesContent":[],"mappings":";;;;cAgIa,6BAA2B,aAAA;EAA3B,QAAA,EAAA;IAoBX,IAAA,EAAA,KAAA,CAAA,CAAA,MAAA,EAAA,MAAA,CAAA;;;;;;;;;;;;;;;EApBsC,MAAA,EAAA;IAAA,IAAA,aAAA,CAAA;;;;MAAA,CAAA;MAAA,GAAA,EAAA;QAsB3B,IAAA,QAoBX,CAAA,MAAA,EAAA,MAAA,CAAA;QAAA,UAAA,EAAA,KAAA;;;QApBoC,IAAA,QAAA,CAAA,MAAA,EAAA,MAAA,CAAA;QAAA,UAAA,EAAA,IAAA;;;IAAA,UAAA,EAAA,IAAA;IAAA,OAAA,EAAA,IAAA;EAsBzB,CAAA;EAoBX,MAAA,EAAA;;;;;;;;;;;EApBmD,CAAA;CAAA,CAAA,aAAA,CAAA;;UA5Cb,KAAA;;EA4Ca,CAAA;EAAA,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{
|
|
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,IAA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,CACF,CAAC,CACH,CACD,OAAQ,CACN,KAAM,QACN,SAAU,CAAC,CAAE,KAAM,2BAA4B,QAAS,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,G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CAAC,CAAE,KAAM,2BAA4B,QAAS,EAAG,CAAC,CAC7D,CACF,CAAC,CAEWA,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,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:
|
|
7
|
+
type: void 0<string, string>;
|
|
10
8
|
isOptional: false;
|
|
11
9
|
};
|
|
12
10
|
appId: {
|
|
13
|
-
type:
|
|
11
|
+
type: void 0<string, string>;
|
|
14
12
|
isOptional: false;
|
|
15
13
|
};
|
|
16
14
|
version: {
|
|
17
|
-
type:
|
|
15
|
+
type: void 0<number, number>;
|
|
18
16
|
isOptional: false;
|
|
19
17
|
};
|
|
20
18
|
blueprintName: {
|
|
21
|
-
type:
|
|
19
|
+
type: void 0<string, string>;
|
|
22
20
|
isOptional: false;
|
|
23
21
|
};
|
|
24
22
|
blueprintVersion: {
|
|
25
|
-
type:
|
|
23
|
+
type: void 0<number, number>;
|
|
26
24
|
isOptional: false;
|
|
27
25
|
};
|
|
28
26
|
createdBy: {
|
|
29
|
-
type:
|
|
27
|
+
type: void 0<string, string>;
|
|
30
28
|
isOptional: false;
|
|
31
29
|
};
|
|
32
30
|
clonedFrom: {
|
|
33
|
-
type:
|
|
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:
|
|
37
|
+
type: void 0<string, string>;
|
|
40
38
|
isOptional: false;
|
|
41
39
|
};
|
|
42
40
|
appId: {
|
|
43
|
-
type:
|
|
41
|
+
type: void 0<string, string>;
|
|
44
42
|
isOptional: false;
|
|
45
43
|
};
|
|
46
44
|
version: {
|
|
47
|
-
type:
|
|
45
|
+
type: void 0<number, number>;
|
|
48
46
|
isOptional: false;
|
|
49
47
|
};
|
|
50
48
|
promotedBy: {
|
|
51
|
-
type:
|
|
49
|
+
type: void 0<string, string>;
|
|
52
50
|
isOptional: false;
|
|
53
51
|
};
|
|
54
52
|
warnings: {
|
|
55
|
-
type:
|
|
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:
|
|
60
|
+
type: void 0<string, string>;
|
|
63
61
|
isOptional: false;
|
|
64
62
|
};
|
|
65
63
|
appId: {
|
|
66
|
-
type:
|
|
64
|
+
type: void 0<string, string>;
|
|
67
65
|
isOptional: false;
|
|
68
66
|
};
|
|
69
67
|
version: {
|
|
70
|
-
type:
|
|
68
|
+
type: void 0<number, number>;
|
|
71
69
|
isOptional: false;
|
|
72
70
|
};
|
|
73
71
|
previousVersion: {
|
|
74
|
-
type:
|
|
72
|
+
type: void 0<number, number>;
|
|
75
73
|
isOptional: true;
|
|
76
74
|
};
|
|
77
75
|
publishedBy: {
|
|
78
|
-
type:
|
|
76
|
+
type: void 0<string, string>;
|
|
79
77
|
isOptional: false;
|
|
80
78
|
};
|
|
81
79
|
changeSummary: {
|
|
82
|
-
type:
|
|
80
|
+
type: void 0<string, string>;
|
|
83
81
|
isOptional: true;
|
|
84
82
|
};
|
|
85
83
|
changedSections: {
|
|
86
|
-
type:
|
|
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:
|
|
91
|
+
type: void 0<string, string>;
|
|
94
92
|
isOptional: false;
|
|
95
93
|
};
|
|
96
94
|
appId: {
|
|
97
|
-
type:
|
|
95
|
+
type: void 0<string, string>;
|
|
98
96
|
isOptional: false;
|
|
99
97
|
};
|
|
100
98
|
newVersion: {
|
|
101
|
-
type:
|
|
99
|
+
type: void 0<number, number>;
|
|
102
100
|
isOptional: false;
|
|
103
101
|
};
|
|
104
102
|
rolledBackFrom: {
|
|
105
|
-
type:
|
|
103
|
+
type: void 0<number, number>;
|
|
106
104
|
isOptional: false;
|
|
107
105
|
};
|
|
108
106
|
rolledBackTo: {
|
|
109
|
-
type:
|
|
107
|
+
type: void 0<number, number>;
|
|
110
108
|
isOptional: false;
|
|
111
109
|
};
|
|
112
110
|
rolledBackBy: {
|
|
113
|
-
type:
|
|
111
|
+
type: void 0<string, string>;
|
|
114
112
|
isOptional: false;
|
|
115
113
|
};
|
|
116
114
|
reason: {
|
|
117
|
-
type:
|
|
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":"
|
|
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{
|
|
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":[
|
|
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,WAAY,GAAO,CACvD,QAAS,CAAE,KAAM,EAAe,cAAc,CAAE,WAAY,GAAO,CACnE,cAAe,CAAE,KAAM,EAAe,iBAAiB,CAA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