@digipair/skill-keycloak 0.28.14 → 0.29.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.cjs.js +5 -5
- package/index.esm.js +5 -5
- package/package.json +1 -1
- package/schema.en.json +358 -0
package/index.cjs.js
CHANGED
@@ -23523,14 +23523,14 @@ function indent(str, spaces) {
|
|
23523
23523
|
var match = parseIdentifier(input, i1, namePart) || namePart && parseAdditionalSymbol(input, i1) || maybeSpace && parseSpaces(input, i1);
|
23524
23524
|
// match is required
|
23525
23525
|
if (!match) {
|
23526
|
-
return
|
23526
|
+
return i = i1, tokens = tokens1, nextMatch = nextMatch1, {
|
23527
23527
|
v: nextMatch1
|
23528
23528
|
};
|
23529
23529
|
}
|
23530
23530
|
var token = match.token, offset = match.offset;
|
23531
23531
|
i1 += offset;
|
23532
23532
|
if (token === " ") {
|
23533
|
-
return
|
23533
|
+
return i = i1, tokens = tokens1, nextMatch = nextMatch1, "continue";
|
23534
23534
|
}
|
23535
23535
|
tokens1 = _to_consumable_array$3(tokens1).concat([
|
23536
23536
|
token
|
@@ -23549,7 +23549,7 @@ function indent(str, spaces) {
|
|
23549
23549
|
if (contextKeys.some(function(el) {
|
23550
23550
|
return el.startsWith(name);
|
23551
23551
|
})) {
|
23552
|
-
return
|
23552
|
+
return i = i1, tokens = tokens1, nextMatch = nextMatch1, "continue";
|
23553
23553
|
}
|
23554
23554
|
if (dateTimeIdentifiers.some(function(el) {
|
23555
23555
|
return el === name;
|
@@ -23568,9 +23568,9 @@ function indent(str, spaces) {
|
|
23568
23568
|
if (dateTimeIdentifiers.some(function(el) {
|
23569
23569
|
return el.startsWith(name);
|
23570
23570
|
})) {
|
23571
|
-
return
|
23571
|
+
return i = i1, tokens = tokens1, nextMatch = nextMatch1, "continue";
|
23572
23572
|
}
|
23573
|
-
return
|
23573
|
+
return i = i1, tokens = tokens1, nextMatch = nextMatch1, {
|
23574
23574
|
v: nextMatch1
|
23575
23575
|
};
|
23576
23576
|
};
|
package/index.esm.js
CHANGED
@@ -23494,14 +23494,14 @@ function indent(str, spaces) {
|
|
23494
23494
|
var match = parseIdentifier(input, i1, namePart) || namePart && parseAdditionalSymbol(input, i1) || maybeSpace && parseSpaces(input, i1);
|
23495
23495
|
// match is required
|
23496
23496
|
if (!match) {
|
23497
|
-
return
|
23497
|
+
return i = i1, tokens = tokens1, nextMatch = nextMatch1, {
|
23498
23498
|
v: nextMatch1
|
23499
23499
|
};
|
23500
23500
|
}
|
23501
23501
|
var token = match.token, offset = match.offset;
|
23502
23502
|
i1 += offset;
|
23503
23503
|
if (token === " ") {
|
23504
|
-
return
|
23504
|
+
return i = i1, tokens = tokens1, nextMatch = nextMatch1, "continue";
|
23505
23505
|
}
|
23506
23506
|
tokens1 = _to_consumable_array$3(tokens1).concat([
|
23507
23507
|
token
|
@@ -23520,7 +23520,7 @@ function indent(str, spaces) {
|
|
23520
23520
|
if (contextKeys.some(function(el) {
|
23521
23521
|
return el.startsWith(name);
|
23522
23522
|
})) {
|
23523
|
-
return
|
23523
|
+
return i = i1, tokens = tokens1, nextMatch = nextMatch1, "continue";
|
23524
23524
|
}
|
23525
23525
|
if (dateTimeIdentifiers.some(function(el) {
|
23526
23526
|
return el === name;
|
@@ -23539,9 +23539,9 @@ function indent(str, spaces) {
|
|
23539
23539
|
if (dateTimeIdentifiers.some(function(el) {
|
23540
23540
|
return el.startsWith(name);
|
23541
23541
|
})) {
|
23542
|
-
return
|
23542
|
+
return i = i1, tokens = tokens1, nextMatch = nextMatch1, "continue";
|
23543
23543
|
}
|
23544
|
-
return
|
23544
|
+
return i = i1, tokens = tokens1, nextMatch = nextMatch1, {
|
23545
23545
|
v: nextMatch1
|
23546
23546
|
};
|
23547
23547
|
};
|
package/package.json
CHANGED
package/schema.en.json
ADDED
@@ -0,0 +1,358 @@
|
|
1
|
+
{
|
2
|
+
"openapi": "3.0.0",
|
3
|
+
"info": {
|
4
|
+
"title": "@digipair/skill-keycloak",
|
5
|
+
"summary": "Display of secure web pages",
|
6
|
+
"description": "This skill encompasses the knowledge and use of web technologies necessary to develop and maintain websites secured by Keycloak.",
|
7
|
+
"version": "0.1.0",
|
8
|
+
"x-icon": "🔐"
|
9
|
+
},
|
10
|
+
"paths": {
|
11
|
+
"/executeFactory": {
|
12
|
+
"post": {
|
13
|
+
"summary": "In the factory",
|
14
|
+
"description": "Execution of a list of capabilities in the factory",
|
15
|
+
"tags": ["web"],
|
16
|
+
"metadata": [],
|
17
|
+
"parameters": [
|
18
|
+
{
|
19
|
+
"name": "execute",
|
20
|
+
"summary": "Execute",
|
21
|
+
"required": true,
|
22
|
+
"description": "List of capabilities to execute",
|
23
|
+
"schema": {
|
24
|
+
"type": "array",
|
25
|
+
"items": {
|
26
|
+
"$ref": "https://schemas.digipair.ai/pinsSettings"
|
27
|
+
}
|
28
|
+
}
|
29
|
+
},
|
30
|
+
{
|
31
|
+
"name": "secured",
|
32
|
+
"summary": "Secured",
|
33
|
+
"required": false,
|
34
|
+
"description": "Secures execution via a Keycloak token",
|
35
|
+
"schema": {
|
36
|
+
"type": "boolean"
|
37
|
+
}
|
38
|
+
}
|
39
|
+
]
|
40
|
+
}
|
41
|
+
},
|
42
|
+
"/login": {
|
43
|
+
"post": {
|
44
|
+
"summary": "User authentication",
|
45
|
+
"description": "User authentication on the website via the Keycloak server",
|
46
|
+
"tags": ["web"],
|
47
|
+
"metadata": [],
|
48
|
+
"parameters": []
|
49
|
+
}
|
50
|
+
},
|
51
|
+
"/logout": {
|
52
|
+
"post": {
|
53
|
+
"summary": "User logout",
|
54
|
+
"description": "User logout from the website via the Keycloak server",
|
55
|
+
"tags": ["web"],
|
56
|
+
"metadata": [],
|
57
|
+
"parameters": []
|
58
|
+
}
|
59
|
+
}
|
60
|
+
},
|
61
|
+
"components": {
|
62
|
+
"schemas": {
|
63
|
+
"SecuredBoost": {
|
64
|
+
"type": "object",
|
65
|
+
"tags": ["boost"],
|
66
|
+
"summary": "Secure trigger",
|
67
|
+
"properties": {
|
68
|
+
"name": {
|
69
|
+
"type": "string"
|
70
|
+
},
|
71
|
+
"prompt": {
|
72
|
+
"type": "boolean"
|
73
|
+
},
|
74
|
+
"required": {
|
75
|
+
"type": "boolean"
|
76
|
+
},
|
77
|
+
"text": {
|
78
|
+
"type": "string"
|
79
|
+
},
|
80
|
+
"selector": {
|
81
|
+
"type": "string"
|
82
|
+
},
|
83
|
+
"url": {
|
84
|
+
"type": "string"
|
85
|
+
},
|
86
|
+
"inputs": {
|
87
|
+
"type": "array",
|
88
|
+
"items": {
|
89
|
+
"$ref": "https://schemas.digipair.ai/pinsSettings"
|
90
|
+
}
|
91
|
+
}
|
92
|
+
},
|
93
|
+
"required": []
|
94
|
+
}
|
95
|
+
}
|
96
|
+
},
|
97
|
+
"x-scene-blocks": {
|
98
|
+
"/page": {
|
99
|
+
"summary": "Secure web page",
|
100
|
+
"description": "Display of a web page secured by Keycloak.",
|
101
|
+
"tags": ["web", "service"],
|
102
|
+
"metadata": [],
|
103
|
+
"parameters": [
|
104
|
+
{
|
105
|
+
"name": "body",
|
106
|
+
"summary": "Content",
|
107
|
+
"required": true,
|
108
|
+
"description": "Content of the page",
|
109
|
+
"schema": {
|
110
|
+
"type": "array",
|
111
|
+
"items": {
|
112
|
+
"$ref": "https://schemas.digipair.ai/pinsSettings"
|
113
|
+
}
|
114
|
+
}
|
115
|
+
},
|
116
|
+
{
|
117
|
+
"name": "title",
|
118
|
+
"summary": "Title",
|
119
|
+
"required": false,
|
120
|
+
"description": "Title of the page",
|
121
|
+
"schema": {
|
122
|
+
"type": "string"
|
123
|
+
}
|
124
|
+
},
|
125
|
+
{
|
126
|
+
"name": "favicon",
|
127
|
+
"summary": "Page icon",
|
128
|
+
"required": false,
|
129
|
+
"description": "Icon of the page",
|
130
|
+
"schema": {
|
131
|
+
"type": "string"
|
132
|
+
}
|
133
|
+
},
|
134
|
+
{
|
135
|
+
"name": "styleHtml",
|
136
|
+
"summary": "HTML CSS style",
|
137
|
+
"required": false,
|
138
|
+
"description": "CSS style of the HTML element",
|
139
|
+
"schema": {
|
140
|
+
"type": "string"
|
141
|
+
}
|
142
|
+
},
|
143
|
+
{
|
144
|
+
"name": "styleBody",
|
145
|
+
"summary": "BODY CSS style",
|
146
|
+
"required": false,
|
147
|
+
"description": "CSS style of the BODY element",
|
148
|
+
"schema": {
|
149
|
+
"type": "string"
|
150
|
+
}
|
151
|
+
},
|
152
|
+
{
|
153
|
+
"name": "url",
|
154
|
+
"summary": "Keycloak address",
|
155
|
+
"required": false,
|
156
|
+
"description": "Address of the Keycloak server",
|
157
|
+
"schema": {
|
158
|
+
"type": "string"
|
159
|
+
}
|
160
|
+
},
|
161
|
+
{
|
162
|
+
"name": "realm",
|
163
|
+
"summary": "Realm",
|
164
|
+
"required": false,
|
165
|
+
"description": "Realm of the Keycloak server",
|
166
|
+
"schema": {
|
167
|
+
"type": "string"
|
168
|
+
}
|
169
|
+
},
|
170
|
+
{
|
171
|
+
"name": "clientId",
|
172
|
+
"summary": "Client ID",
|
173
|
+
"required": false,
|
174
|
+
"description": "Client ID of the Keycloak server",
|
175
|
+
"schema": {
|
176
|
+
"type": "string"
|
177
|
+
}
|
178
|
+
},
|
179
|
+
{
|
180
|
+
"name": "factoryUrl",
|
181
|
+
"summary": "Factory address",
|
182
|
+
"required": false,
|
183
|
+
"description": "Address of the Digipair factory",
|
184
|
+
"schema": {
|
185
|
+
"type": "string"
|
186
|
+
}
|
187
|
+
},
|
188
|
+
{
|
189
|
+
"name": "factoryInitialize",
|
190
|
+
"summary": "During factory initialization",
|
191
|
+
"required": false,
|
192
|
+
"description": "Action triggered during factory initialization",
|
193
|
+
"schema": {
|
194
|
+
"type": "array",
|
195
|
+
"items": {
|
196
|
+
"$ref": "https://schemas.digipair.ai/pinsSettings"
|
197
|
+
}
|
198
|
+
}
|
199
|
+
},
|
200
|
+
{
|
201
|
+
"name": "browserInitialize",
|
202
|
+
"summary": "During browser initialization",
|
203
|
+
"required": false,
|
204
|
+
"description": "Action triggered during browser initialization",
|
205
|
+
"schema": {
|
206
|
+
"type": "array",
|
207
|
+
"items": {
|
208
|
+
"$ref": "https://schemas.digipair.ai/pinsSettings"
|
209
|
+
}
|
210
|
+
}
|
211
|
+
},
|
212
|
+
{
|
213
|
+
"name": "browserLoad",
|
214
|
+
"summary": "When the page is loaded",
|
215
|
+
"required": false,
|
216
|
+
"description": "Action triggered when the page is loaded in the browser",
|
217
|
+
"schema": {
|
218
|
+
"type": "array",
|
219
|
+
"items": {
|
220
|
+
"$ref": "https://schemas.digipair.ai/pinsSettings"
|
221
|
+
}
|
222
|
+
}
|
223
|
+
},
|
224
|
+
{
|
225
|
+
"name": "unlogged",
|
226
|
+
"summary": "If the user is not authenticated",
|
227
|
+
"required": false,
|
228
|
+
"description": "Action triggered when the page is loaded in the browser if the user is not authenticated",
|
229
|
+
"schema": {
|
230
|
+
"type": "array",
|
231
|
+
"items": {
|
232
|
+
"$ref": "https://schemas.digipair.ai/pinsSettings"
|
233
|
+
}
|
234
|
+
}
|
235
|
+
},
|
236
|
+
{
|
237
|
+
"name": "logged",
|
238
|
+
"summary": "If the user is authenticated",
|
239
|
+
"required": false,
|
240
|
+
"description": "Action triggered when the page is loaded in the browser if the user is authenticated",
|
241
|
+
"schema": {
|
242
|
+
"type": "array",
|
243
|
+
"items": {
|
244
|
+
"$ref": "https://schemas.digipair.ai/pinsSettings"
|
245
|
+
}
|
246
|
+
}
|
247
|
+
}
|
248
|
+
]
|
249
|
+
},
|
250
|
+
"/service": {
|
251
|
+
"summary": "Secure web service",
|
252
|
+
"description": "Response to an HTTP call secured by Keycloak.",
|
253
|
+
"tags": ["service"],
|
254
|
+
"metadata": [],
|
255
|
+
"parameters": [
|
256
|
+
{
|
257
|
+
"name": "execute",
|
258
|
+
"summary": "Execute",
|
259
|
+
"required": true,
|
260
|
+
"description": "Commands to execute",
|
261
|
+
"schema": {
|
262
|
+
"type": "array",
|
263
|
+
"items": {
|
264
|
+
"$ref": "https://schemas.digipair.ai/pinsSettings"
|
265
|
+
}
|
266
|
+
}
|
267
|
+
},
|
268
|
+
{
|
269
|
+
"name": "secured",
|
270
|
+
"summary": "Secured",
|
271
|
+
"required": false,
|
272
|
+
"description": "Access allowed only if a Keycloak token is provided",
|
273
|
+
"schema": {
|
274
|
+
"type": "string"
|
275
|
+
}
|
276
|
+
},
|
277
|
+
{
|
278
|
+
"name": "url",
|
279
|
+
"summary": "Keycloak address",
|
280
|
+
"required": false,
|
281
|
+
"description": "Address of the Keycloak server",
|
282
|
+
"schema": {
|
283
|
+
"type": "string"
|
284
|
+
}
|
285
|
+
},
|
286
|
+
{
|
287
|
+
"name": "realm",
|
288
|
+
"summary": "Realm",
|
289
|
+
"required": false,
|
290
|
+
"description": "Realm of the Keycloak server",
|
291
|
+
"schema": {
|
292
|
+
"type": "string"
|
293
|
+
}
|
294
|
+
}
|
295
|
+
]
|
296
|
+
},
|
297
|
+
"/boost": {
|
298
|
+
"summary": "Secure boost",
|
299
|
+
"description": "Boost offered by Digipair secured by Keycloak",
|
300
|
+
"tags": ["boost", "service"],
|
301
|
+
"metadata": [
|
302
|
+
{
|
303
|
+
"name": "boosts",
|
304
|
+
"summary": "List of triggers",
|
305
|
+
"required": true,
|
306
|
+
"description": "List of triggers for the boost",
|
307
|
+
"schema": {
|
308
|
+
"type": "array",
|
309
|
+
"items": {
|
310
|
+
"$ref": "#/components/schemas/SecuredBoost"
|
311
|
+
}
|
312
|
+
}
|
313
|
+
}
|
314
|
+
],
|
315
|
+
"parameters": [
|
316
|
+
{
|
317
|
+
"name": "execute",
|
318
|
+
"summary": "Execution of actions",
|
319
|
+
"required": false,
|
320
|
+
"description": "List of actions to execute",
|
321
|
+
"schema": {
|
322
|
+
"type": "array",
|
323
|
+
"items": {
|
324
|
+
"$ref": "https://schemas.digipair.ai/pinsSettings"
|
325
|
+
}
|
326
|
+
}
|
327
|
+
},
|
328
|
+
{
|
329
|
+
"name": "secured",
|
330
|
+
"summary": "Secured",
|
331
|
+
"required": false,
|
332
|
+
"description": "Access allowed only if a Keycloak token is provided",
|
333
|
+
"schema": {
|
334
|
+
"type": "string"
|
335
|
+
}
|
336
|
+
},
|
337
|
+
{
|
338
|
+
"name": "url",
|
339
|
+
"summary": "Keycloak address",
|
340
|
+
"required": false,
|
341
|
+
"description": "Address of the Keycloak server",
|
342
|
+
"schema": {
|
343
|
+
"type": "string"
|
344
|
+
}
|
345
|
+
},
|
346
|
+
{
|
347
|
+
"name": "realm",
|
348
|
+
"summary": "Realm",
|
349
|
+
"required": false,
|
350
|
+
"description": "Realm of the Keycloak server",
|
351
|
+
"schema": {
|
352
|
+
"type": "string"
|
353
|
+
}
|
354
|
+
}
|
355
|
+
]
|
356
|
+
}
|
357
|
+
}
|
358
|
+
}
|