@almadar/std 3.2.3 → 3.3.5
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/LICENSE +72 -21
- package/README.md +1 -1
- package/behaviors/exports/atoms/std-combat-log.orb +12 -12
- package/behaviors/exports/atoms/std-dialogue-box.orb +11 -11
- package/behaviors/exports/atoms/std-game-audio.orb +9 -9
- package/behaviors/exports/atoms/std-game-canvas3d.orb +24 -24
- package/behaviors/exports/atoms/std-game-hud.orb +10 -10
- package/behaviors/exports/atoms/std-game-menu.orb +12 -12
- package/behaviors/exports/atoms/std-game-over-screen.orb +9 -9
- package/behaviors/exports/atoms/std-inventory-panel.orb +13 -13
- package/behaviors/exports/atoms/std-isometric-canvas.orb +9 -9
- package/behaviors/exports/atoms/std-platformer-canvas.orb +9 -9
- package/behaviors/exports/atoms/std-score-board.orb +9 -9
- package/behaviors/exports/atoms/std-selection.orb +32 -18
- package/behaviors/exports/atoms/std-service-custom-bearer.orb +557 -0
- package/behaviors/exports/atoms/std-service-custom-header.orb +559 -0
- package/behaviors/exports/atoms/std-service-custom-noauth.orb +553 -0
- package/behaviors/exports/atoms/std-service-custom-query.orb +559 -0
- package/behaviors/exports/atoms/std-service-email.orb +540 -0
- package/behaviors/exports/atoms/std-service-github.orb +586 -0
- package/behaviors/exports/atoms/std-service-llm.orb +671 -0
- package/behaviors/exports/atoms/std-service-oauth.orb +764 -0
- package/behaviors/exports/atoms/std-service-redis.orb +580 -0
- package/behaviors/exports/atoms/std-service-storage.orb +664 -0
- package/behaviors/exports/atoms/std-service-stripe.orb +639 -0
- package/behaviors/exports/atoms/std-service-twilio.orb +611 -0
- package/behaviors/exports/atoms/std-service-youtube.orb +696 -0
- package/behaviors/exports/atoms/std-simulation-canvas.orb +9 -9
- package/behaviors/exports/atoms/std-sprite.orb +17 -17
- package/behaviors/exports/atoms/std-validate-on-save.orb +623 -0
- package/behaviors/exports/molecules/std-quiz.orb +48 -24
- package/behaviors/exports/molecules/std-service-content-pipeline.orb +915 -0
- package/behaviors/exports/molecules/std-service-custom-api-tester.orb +860 -0
- package/behaviors/exports/molecules/std-service-devops-toolkit.orb +1526 -0
- package/behaviors/exports/molecules/std-service-notification-hub.orb +696 -0
- package/behaviors/exports/molecules/std-service-payment-flow.orb +873 -0
- package/behaviors/exports/organisms/std-service-marketplace.orb +5191 -0
- package/behaviors/exports/organisms/std-service-research-assistant.orb +3568 -0
- package/behaviors/exports/test-schemas/os-trigger-simulation.orb +202 -0
- package/behaviors/exports/validation-report.json +2 -2
- package/dist/behaviors/exports/atoms/std-combat-log.orb +12 -12
- package/dist/behaviors/exports/atoms/std-dialogue-box.orb +11 -11
- package/dist/behaviors/exports/atoms/std-game-audio.orb +9 -9
- package/dist/behaviors/exports/atoms/std-game-canvas3d.orb +24 -24
- package/dist/behaviors/exports/atoms/std-game-hud.orb +10 -10
- package/dist/behaviors/exports/atoms/std-game-menu.orb +12 -12
- package/dist/behaviors/exports/atoms/std-game-over-screen.orb +9 -9
- package/dist/behaviors/exports/atoms/std-inventory-panel.orb +13 -13
- package/dist/behaviors/exports/atoms/std-isometric-canvas.orb +9 -9
- package/dist/behaviors/exports/atoms/std-platformer-canvas.orb +9 -9
- package/dist/behaviors/exports/atoms/std-score-board.orb +9 -9
- package/dist/behaviors/exports/atoms/std-selection.orb +32 -18
- package/dist/behaviors/exports/atoms/std-service-custom-bearer.orb +557 -0
- package/dist/behaviors/exports/atoms/std-service-custom-header.orb +559 -0
- package/dist/behaviors/exports/atoms/std-service-custom-noauth.orb +553 -0
- package/dist/behaviors/exports/atoms/std-service-custom-query.orb +559 -0
- package/dist/behaviors/exports/atoms/std-service-email.orb +540 -0
- package/dist/behaviors/exports/atoms/std-service-github.orb +586 -0
- package/dist/behaviors/exports/atoms/std-service-llm.orb +671 -0
- package/dist/behaviors/exports/atoms/std-service-oauth.orb +764 -0
- package/dist/behaviors/exports/atoms/std-service-redis.orb +580 -0
- package/dist/behaviors/exports/atoms/std-service-storage.orb +664 -0
- package/dist/behaviors/exports/atoms/std-service-stripe.orb +639 -0
- package/dist/behaviors/exports/atoms/std-service-twilio.orb +611 -0
- package/dist/behaviors/exports/atoms/std-service-youtube.orb +696 -0
- package/dist/behaviors/exports/atoms/std-simulation-canvas.orb +9 -9
- package/dist/behaviors/exports/atoms/std-sprite.orb +17 -17
- package/dist/behaviors/exports/atoms/std-validate-on-save.orb +623 -0
- package/dist/behaviors/exports/molecules/std-quiz.orb +48 -24
- package/dist/behaviors/exports/molecules/std-service-content-pipeline.orb +915 -0
- package/dist/behaviors/exports/molecules/std-service-custom-api-tester.orb +860 -0
- package/dist/behaviors/exports/molecules/std-service-devops-toolkit.orb +1526 -0
- package/dist/behaviors/exports/molecules/std-service-notification-hub.orb +696 -0
- package/dist/behaviors/exports/molecules/std-service-payment-flow.orb +873 -0
- package/dist/behaviors/exports/organisms/std-service-marketplace.orb +5191 -0
- package/dist/behaviors/exports/organisms/std-service-research-assistant.orb +3568 -0
- package/dist/behaviors/exports/test-schemas/os-trigger-simulation.orb +202 -0
- package/dist/behaviors/exports/validation-report.json +2 -2
- package/dist/behaviors/functions/index.d.ts +662 -1
- package/dist/behaviors/functions/index.js +7638 -2117
- package/dist/behaviors/functions/index.js.map +1 -1
- package/dist/behaviors/index.d.ts +1 -1
- package/dist/behaviors/index.js +7638 -2117
- package/dist/behaviors/index.js.map +1 -1
- package/dist/exports/atoms/std-combat-log.orb +12 -12
- package/dist/exports/atoms/std-dialogue-box.orb +11 -11
- package/dist/exports/atoms/std-game-audio.orb +9 -9
- package/dist/exports/atoms/std-game-canvas3d.orb +24 -24
- package/dist/exports/atoms/std-game-hud.orb +10 -10
- package/dist/exports/atoms/std-game-menu.orb +12 -12
- package/dist/exports/atoms/std-game-over-screen.orb +9 -9
- package/dist/exports/atoms/std-inventory-panel.orb +13 -13
- package/dist/exports/atoms/std-isometric-canvas.orb +9 -9
- package/dist/exports/atoms/std-platformer-canvas.orb +9 -9
- package/dist/exports/atoms/std-score-board.orb +9 -9
- package/dist/exports/atoms/std-selection.orb +32 -18
- package/dist/exports/atoms/std-service-custom-bearer.orb +557 -0
- package/dist/exports/atoms/std-service-custom-header.orb +559 -0
- package/dist/exports/atoms/std-service-custom-noauth.orb +553 -0
- package/dist/exports/atoms/std-service-custom-query.orb +559 -0
- package/dist/exports/atoms/std-service-email.orb +540 -0
- package/dist/exports/atoms/std-service-github.orb +586 -0
- package/dist/exports/atoms/std-service-llm.orb +671 -0
- package/dist/exports/atoms/std-service-oauth.orb +764 -0
- package/dist/exports/atoms/std-service-redis.orb +580 -0
- package/dist/exports/atoms/std-service-storage.orb +664 -0
- package/dist/exports/atoms/std-service-stripe.orb +639 -0
- package/dist/exports/atoms/std-service-twilio.orb +611 -0
- package/dist/exports/atoms/std-service-youtube.orb +696 -0
- package/dist/exports/atoms/std-simulation-canvas.orb +9 -9
- package/dist/exports/atoms/std-sprite.orb +17 -17
- package/dist/exports/atoms/std-validate-on-save.orb +623 -0
- package/dist/exports/molecules/std-quiz.orb +48 -24
- package/dist/exports/molecules/std-service-content-pipeline.orb +915 -0
- package/dist/exports/molecules/std-service-custom-api-tester.orb +860 -0
- package/dist/exports/molecules/std-service-devops-toolkit.orb +1526 -0
- package/dist/exports/molecules/std-service-notification-hub.orb +696 -0
- package/dist/exports/molecules/std-service-payment-flow.orb +873 -0
- package/dist/exports/organisms/std-service-marketplace.orb +5191 -0
- package/dist/exports/organisms/std-service-research-assistant.orb +3568 -0
- package/dist/exports/test-schemas/os-trigger-simulation.orb +202 -0
- package/dist/exports/validation-report.json +2 -2
- package/dist/index.d.ts +3 -3
- package/dist/index.js +7887 -2216
- package/dist/index.js.map +1 -1
- package/dist/modules/array.d.ts +1 -1
- package/dist/modules/async.d.ts +1 -1
- package/dist/modules/contract.d.ts +22 -0
- package/dist/modules/contract.js +100 -0
- package/dist/modules/contract.js.map +1 -0
- package/dist/modules/data.d.ts +22 -0
- package/dist/modules/data.js +117 -0
- package/dist/modules/data.js.map +1 -0
- package/dist/modules/format.d.ts +1 -1
- package/dist/modules/graph.d.ts +23 -0
- package/dist/modules/graph.js +209 -0
- package/dist/modules/graph.js.map +1 -0
- package/dist/modules/index.d.ts +5 -1
- package/dist/modules/index.js +593 -63
- package/dist/modules/index.js.map +1 -1
- package/dist/modules/math.d.ts +1 -1
- package/dist/modules/nn.d.ts +1 -1
- package/dist/modules/nn.js +14 -14
- package/dist/modules/nn.js.map +1 -1
- package/dist/modules/object.d.ts +1 -1
- package/dist/modules/os.d.ts +19 -0
- package/dist/modules/os.js +116 -0
- package/dist/modules/os.js.map +1 -0
- package/dist/modules/prob.d.ts +1 -1
- package/dist/modules/str.d.ts +1 -1
- package/dist/modules/tensor.d.ts +1 -1
- package/dist/modules/tensor.js +29 -29
- package/dist/modules/tensor.js.map +1 -1
- package/dist/modules/time.d.ts +1 -1
- package/dist/modules/train.d.ts +1 -1
- package/dist/modules/train.js +19 -19
- package/dist/modules/train.js.map +1 -1
- package/dist/modules/validate.d.ts +1 -1
- package/dist/registry.d.ts +2 -2
- package/dist/registry.js +184 -65
- package/dist/registry.js.map +1 -1
- package/dist/{types-CmNM_IbV.d.ts → types-DOeGXRCm.d.ts} +3 -3
- package/package.json +4 -4
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
|
-
"name": "
|
|
2
|
+
"name": "ScoreBoardEntryOrbital",
|
|
3
3
|
"orbitals": [
|
|
4
4
|
{
|
|
5
|
-
"name": "
|
|
5
|
+
"name": "ScoreBoardEntryOrbital",
|
|
6
6
|
"entity": {
|
|
7
|
-
"name": "
|
|
7
|
+
"name": "ScoreBoardEntry",
|
|
8
8
|
"persistence": "runtime",
|
|
9
9
|
"fields": [
|
|
10
10
|
{
|
|
@@ -62,8 +62,8 @@
|
|
|
62
62
|
},
|
|
63
63
|
"traits": [
|
|
64
64
|
{
|
|
65
|
-
"name": "
|
|
66
|
-
"linkedEntity": "
|
|
65
|
+
"name": "ScoreBoardEntryScoreBoard",
|
|
66
|
+
"linkedEntity": "ScoreBoardEntry",
|
|
67
67
|
"category": "interaction",
|
|
68
68
|
"stateMachine": {
|
|
69
69
|
"states": [
|
|
@@ -112,7 +112,7 @@
|
|
|
112
112
|
"effects": [
|
|
113
113
|
[
|
|
114
114
|
"fetch",
|
|
115
|
-
"
|
|
115
|
+
"ScoreBoardEntry"
|
|
116
116
|
],
|
|
117
117
|
[
|
|
118
118
|
"render-ui",
|
|
@@ -229,11 +229,11 @@
|
|
|
229
229
|
],
|
|
230
230
|
"pages": [
|
|
231
231
|
{
|
|
232
|
-
"name": "
|
|
233
|
-
"path": "/
|
|
232
|
+
"name": "ScoreBoardEntryScorePage",
|
|
233
|
+
"path": "/scoreboardentrys",
|
|
234
234
|
"traits": [
|
|
235
235
|
{
|
|
236
|
-
"ref": "
|
|
236
|
+
"ref": "ScoreBoardEntryScoreBoard"
|
|
237
237
|
}
|
|
238
238
|
]
|
|
239
239
|
}
|
|
@@ -284,23 +284,30 @@
|
|
|
284
284
|
"type": "divider"
|
|
285
285
|
},
|
|
286
286
|
{
|
|
287
|
-
"type": "
|
|
288
|
-
"
|
|
289
|
-
"
|
|
287
|
+
"type": "stack",
|
|
288
|
+
"direction": "horizontal",
|
|
289
|
+
"gap": "sm",
|
|
290
|
+
"children": [
|
|
290
291
|
{
|
|
292
|
+
"type": "button",
|
|
291
293
|
"label": "Select All",
|
|
292
|
-
"
|
|
293
|
-
"icon": "check-square"
|
|
294
|
+
"action": "SELECT",
|
|
295
|
+
"icon": "check-square",
|
|
296
|
+
"variant": "secondary"
|
|
294
297
|
},
|
|
295
298
|
{
|
|
299
|
+
"type": "button",
|
|
296
300
|
"label": "Deselect All",
|
|
297
|
-
"
|
|
298
|
-
"icon": "square"
|
|
301
|
+
"action": "DESELECT",
|
|
302
|
+
"icon": "square",
|
|
303
|
+
"variant": "secondary"
|
|
299
304
|
},
|
|
300
305
|
{
|
|
306
|
+
"type": "button",
|
|
301
307
|
"label": "Confirm",
|
|
302
|
-
"
|
|
303
|
-
"icon": "check"
|
|
308
|
+
"action": "CONFIRM_SELECTION",
|
|
309
|
+
"icon": "check",
|
|
310
|
+
"variant": "primary"
|
|
304
311
|
}
|
|
305
312
|
]
|
|
306
313
|
}
|
|
@@ -423,23 +430,30 @@
|
|
|
423
430
|
"type": "divider"
|
|
424
431
|
},
|
|
425
432
|
{
|
|
426
|
-
"type": "
|
|
427
|
-
"
|
|
428
|
-
"
|
|
433
|
+
"type": "stack",
|
|
434
|
+
"direction": "horizontal",
|
|
435
|
+
"gap": "sm",
|
|
436
|
+
"children": [
|
|
429
437
|
{
|
|
438
|
+
"type": "button",
|
|
430
439
|
"label": "Select All",
|
|
431
|
-
"
|
|
432
|
-
"icon": "check-square"
|
|
440
|
+
"action": "SELECT",
|
|
441
|
+
"icon": "check-square",
|
|
442
|
+
"variant": "secondary"
|
|
433
443
|
},
|
|
434
444
|
{
|
|
445
|
+
"type": "button",
|
|
435
446
|
"label": "Deselect All",
|
|
436
|
-
"
|
|
437
|
-
"icon": "square"
|
|
447
|
+
"action": "DESELECT",
|
|
448
|
+
"icon": "square",
|
|
449
|
+
"variant": "secondary"
|
|
438
450
|
},
|
|
439
451
|
{
|
|
452
|
+
"type": "button",
|
|
440
453
|
"label": "Confirm",
|
|
441
|
-
"
|
|
442
|
-
"icon": "check"
|
|
454
|
+
"action": "CONFIRM_SELECTION",
|
|
455
|
+
"icon": "check",
|
|
456
|
+
"variant": "primary"
|
|
443
457
|
}
|
|
444
458
|
]
|
|
445
459
|
}
|
|
@@ -0,0 +1,557 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "ServiceCustomBearerOrbital",
|
|
3
|
+
"services": [
|
|
4
|
+
{
|
|
5
|
+
"name": "custom-bearer-api",
|
|
6
|
+
"type": "rest",
|
|
7
|
+
"baseUrl": "https://api.example.com/v2",
|
|
8
|
+
"auth": {
|
|
9
|
+
"type": "bearer",
|
|
10
|
+
"secretEnv": "CUSTOM_BEARER_TOKEN"
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
],
|
|
14
|
+
"orbitals": [
|
|
15
|
+
{
|
|
16
|
+
"name": "ServiceCustomBearerOrbital",
|
|
17
|
+
"entity": {
|
|
18
|
+
"name": "ServiceCustomBearer",
|
|
19
|
+
"persistence": "runtime",
|
|
20
|
+
"fields": [
|
|
21
|
+
{
|
|
22
|
+
"name": "id",
|
|
23
|
+
"type": "string"
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
"name": "name",
|
|
27
|
+
"type": "string"
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
"name": "description",
|
|
31
|
+
"type": "string"
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
"name": "status",
|
|
35
|
+
"type": "string",
|
|
36
|
+
"default": "active",
|
|
37
|
+
"values": [
|
|
38
|
+
"active",
|
|
39
|
+
"inactive",
|
|
40
|
+
"pending"
|
|
41
|
+
]
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
"name": "createdAt",
|
|
45
|
+
"type": "string"
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
"name": "endpoint",
|
|
49
|
+
"type": "string"
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
"name": "method",
|
|
53
|
+
"type": "string",
|
|
54
|
+
"default": "GET"
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
"name": "requestBody",
|
|
58
|
+
"type": "string"
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
"name": "responseData",
|
|
62
|
+
"type": "string"
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
"name": "statusCode",
|
|
66
|
+
"type": "number",
|
|
67
|
+
"default": 0
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
"name": "callStatus",
|
|
71
|
+
"type": "string",
|
|
72
|
+
"default": "idle"
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
"name": "error",
|
|
76
|
+
"type": "string"
|
|
77
|
+
}
|
|
78
|
+
]
|
|
79
|
+
},
|
|
80
|
+
"traits": [
|
|
81
|
+
{
|
|
82
|
+
"name": "ServiceCustomBearerCustomBearer",
|
|
83
|
+
"linkedEntity": "ServiceCustomBearer",
|
|
84
|
+
"category": "interaction",
|
|
85
|
+
"stateMachine": {
|
|
86
|
+
"states": [
|
|
87
|
+
{
|
|
88
|
+
"name": "idle",
|
|
89
|
+
"isInitial": true
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
"name": "calling"
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
"name": "complete"
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
"name": "error"
|
|
99
|
+
}
|
|
100
|
+
],
|
|
101
|
+
"events": [
|
|
102
|
+
{
|
|
103
|
+
"key": "INIT",
|
|
104
|
+
"name": "Initialize"
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
"key": "CALL_API",
|
|
108
|
+
"name": "Call API"
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
"key": "API_RESPONSE",
|
|
112
|
+
"name": "API Response",
|
|
113
|
+
"payload": [
|
|
114
|
+
{
|
|
115
|
+
"name": "data",
|
|
116
|
+
"type": "string",
|
|
117
|
+
"required": true
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
"name": "statusCode",
|
|
121
|
+
"type": "number",
|
|
122
|
+
"required": true
|
|
123
|
+
}
|
|
124
|
+
]
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
"key": "FAILED",
|
|
128
|
+
"name": "Failed",
|
|
129
|
+
"payload": [
|
|
130
|
+
{
|
|
131
|
+
"name": "error",
|
|
132
|
+
"type": "string",
|
|
133
|
+
"required": true
|
|
134
|
+
}
|
|
135
|
+
]
|
|
136
|
+
},
|
|
137
|
+
{
|
|
138
|
+
"key": "RETRY",
|
|
139
|
+
"name": "Retry"
|
|
140
|
+
},
|
|
141
|
+
{
|
|
142
|
+
"key": "RESET",
|
|
143
|
+
"name": "Reset"
|
|
144
|
+
}
|
|
145
|
+
],
|
|
146
|
+
"transitions": [
|
|
147
|
+
{
|
|
148
|
+
"from": "idle",
|
|
149
|
+
"to": "idle",
|
|
150
|
+
"event": "INIT",
|
|
151
|
+
"effects": [
|
|
152
|
+
[
|
|
153
|
+
"fetch",
|
|
154
|
+
"ServiceCustomBearer"
|
|
155
|
+
],
|
|
156
|
+
[
|
|
157
|
+
"render-ui",
|
|
158
|
+
"main",
|
|
159
|
+
{
|
|
160
|
+
"type": "stack",
|
|
161
|
+
"direction": "vertical",
|
|
162
|
+
"gap": "lg",
|
|
163
|
+
"align": "center",
|
|
164
|
+
"children": [
|
|
165
|
+
{
|
|
166
|
+
"type": "icon",
|
|
167
|
+
"name": "shield",
|
|
168
|
+
"size": "lg"
|
|
169
|
+
},
|
|
170
|
+
{
|
|
171
|
+
"type": "typography",
|
|
172
|
+
"content": "Bearer API Tester",
|
|
173
|
+
"variant": "h2"
|
|
174
|
+
},
|
|
175
|
+
{
|
|
176
|
+
"type": "input",
|
|
177
|
+
"field": "endpoint",
|
|
178
|
+
"placeholder": "/users",
|
|
179
|
+
"bind": "@entity.endpoint"
|
|
180
|
+
},
|
|
181
|
+
{
|
|
182
|
+
"type": "select",
|
|
183
|
+
"field": "method",
|
|
184
|
+
"bind": "@entity.method",
|
|
185
|
+
"options": [
|
|
186
|
+
{
|
|
187
|
+
"label": "GET",
|
|
188
|
+
"value": "GET"
|
|
189
|
+
},
|
|
190
|
+
{
|
|
191
|
+
"label": "POST",
|
|
192
|
+
"value": "POST"
|
|
193
|
+
},
|
|
194
|
+
{
|
|
195
|
+
"label": "PUT",
|
|
196
|
+
"value": "PUT"
|
|
197
|
+
},
|
|
198
|
+
{
|
|
199
|
+
"label": "DELETE",
|
|
200
|
+
"value": "DELETE"
|
|
201
|
+
}
|
|
202
|
+
]
|
|
203
|
+
},
|
|
204
|
+
{
|
|
205
|
+
"type": "textarea",
|
|
206
|
+
"field": "requestBody",
|
|
207
|
+
"placeholder": "JSON request body",
|
|
208
|
+
"bind": "@entity.requestBody"
|
|
209
|
+
},
|
|
210
|
+
{
|
|
211
|
+
"type": "button",
|
|
212
|
+
"label": "Send Request",
|
|
213
|
+
"event": "CALL_API",
|
|
214
|
+
"variant": "primary",
|
|
215
|
+
"icon": "send"
|
|
216
|
+
}
|
|
217
|
+
]
|
|
218
|
+
}
|
|
219
|
+
]
|
|
220
|
+
]
|
|
221
|
+
},
|
|
222
|
+
{
|
|
223
|
+
"from": "idle",
|
|
224
|
+
"to": "calling",
|
|
225
|
+
"event": "CALL_API",
|
|
226
|
+
"effects": [
|
|
227
|
+
[
|
|
228
|
+
"render-ui",
|
|
229
|
+
"main",
|
|
230
|
+
{
|
|
231
|
+
"type": "loading-state",
|
|
232
|
+
"title": "Calling API...",
|
|
233
|
+
"message": "Sending request to servicecustombearer endpoint..."
|
|
234
|
+
}
|
|
235
|
+
],
|
|
236
|
+
[
|
|
237
|
+
"call-service",
|
|
238
|
+
"custom-bearer-api",
|
|
239
|
+
"execute",
|
|
240
|
+
{
|
|
241
|
+
"endpoint": "@entity.endpoint",
|
|
242
|
+
"method": "@entity.method",
|
|
243
|
+
"body": "@entity.requestBody"
|
|
244
|
+
}
|
|
245
|
+
]
|
|
246
|
+
]
|
|
247
|
+
},
|
|
248
|
+
{
|
|
249
|
+
"from": "calling",
|
|
250
|
+
"to": "complete",
|
|
251
|
+
"event": "API_RESPONSE",
|
|
252
|
+
"effects": [
|
|
253
|
+
[
|
|
254
|
+
"set",
|
|
255
|
+
"@entity.responseData",
|
|
256
|
+
"@payload.data"
|
|
257
|
+
],
|
|
258
|
+
[
|
|
259
|
+
"set",
|
|
260
|
+
"@entity.statusCode",
|
|
261
|
+
"@payload.statusCode"
|
|
262
|
+
],
|
|
263
|
+
[
|
|
264
|
+
"render-ui",
|
|
265
|
+
"main",
|
|
266
|
+
{
|
|
267
|
+
"type": "stack",
|
|
268
|
+
"direction": "vertical",
|
|
269
|
+
"gap": "lg",
|
|
270
|
+
"align": "center",
|
|
271
|
+
"children": [
|
|
272
|
+
{
|
|
273
|
+
"type": "icon",
|
|
274
|
+
"name": "check-circle",
|
|
275
|
+
"size": "lg"
|
|
276
|
+
},
|
|
277
|
+
{
|
|
278
|
+
"type": "typography",
|
|
279
|
+
"content": "Response",
|
|
280
|
+
"variant": "h2"
|
|
281
|
+
},
|
|
282
|
+
{
|
|
283
|
+
"type": "badge",
|
|
284
|
+
"content": "@entity.statusCode",
|
|
285
|
+
"variant": "info"
|
|
286
|
+
},
|
|
287
|
+
{
|
|
288
|
+
"type": "code",
|
|
289
|
+
"content": "@entity.responseData",
|
|
290
|
+
"language": "json"
|
|
291
|
+
},
|
|
292
|
+
{
|
|
293
|
+
"type": "button",
|
|
294
|
+
"label": "New Request",
|
|
295
|
+
"event": "RESET",
|
|
296
|
+
"variant": "ghost",
|
|
297
|
+
"icon": "rotate-ccw"
|
|
298
|
+
}
|
|
299
|
+
]
|
|
300
|
+
}
|
|
301
|
+
]
|
|
302
|
+
]
|
|
303
|
+
},
|
|
304
|
+
{
|
|
305
|
+
"from": "calling",
|
|
306
|
+
"to": "error",
|
|
307
|
+
"event": "FAILED",
|
|
308
|
+
"effects": [
|
|
309
|
+
[
|
|
310
|
+
"set",
|
|
311
|
+
"@entity.error",
|
|
312
|
+
"@payload.error"
|
|
313
|
+
],
|
|
314
|
+
[
|
|
315
|
+
"render-ui",
|
|
316
|
+
"main",
|
|
317
|
+
{
|
|
318
|
+
"type": "error-state",
|
|
319
|
+
"title": "Request Failed",
|
|
320
|
+
"message": "@entity.error",
|
|
321
|
+
"onRetry": "RETRY"
|
|
322
|
+
}
|
|
323
|
+
]
|
|
324
|
+
]
|
|
325
|
+
},
|
|
326
|
+
{
|
|
327
|
+
"from": "error",
|
|
328
|
+
"to": "idle",
|
|
329
|
+
"event": "RETRY",
|
|
330
|
+
"effects": [
|
|
331
|
+
[
|
|
332
|
+
"render-ui",
|
|
333
|
+
"main",
|
|
334
|
+
{
|
|
335
|
+
"type": "stack",
|
|
336
|
+
"direction": "vertical",
|
|
337
|
+
"gap": "lg",
|
|
338
|
+
"align": "center",
|
|
339
|
+
"children": [
|
|
340
|
+
{
|
|
341
|
+
"type": "icon",
|
|
342
|
+
"name": "shield",
|
|
343
|
+
"size": "lg"
|
|
344
|
+
},
|
|
345
|
+
{
|
|
346
|
+
"type": "typography",
|
|
347
|
+
"content": "Bearer API Tester",
|
|
348
|
+
"variant": "h2"
|
|
349
|
+
},
|
|
350
|
+
{
|
|
351
|
+
"type": "input",
|
|
352
|
+
"field": "endpoint",
|
|
353
|
+
"placeholder": "/users",
|
|
354
|
+
"bind": "@entity.endpoint"
|
|
355
|
+
},
|
|
356
|
+
{
|
|
357
|
+
"type": "select",
|
|
358
|
+
"field": "method",
|
|
359
|
+
"bind": "@entity.method",
|
|
360
|
+
"options": [
|
|
361
|
+
{
|
|
362
|
+
"label": "GET",
|
|
363
|
+
"value": "GET"
|
|
364
|
+
},
|
|
365
|
+
{
|
|
366
|
+
"label": "POST",
|
|
367
|
+
"value": "POST"
|
|
368
|
+
},
|
|
369
|
+
{
|
|
370
|
+
"label": "PUT",
|
|
371
|
+
"value": "PUT"
|
|
372
|
+
},
|
|
373
|
+
{
|
|
374
|
+
"label": "DELETE",
|
|
375
|
+
"value": "DELETE"
|
|
376
|
+
}
|
|
377
|
+
]
|
|
378
|
+
},
|
|
379
|
+
{
|
|
380
|
+
"type": "textarea",
|
|
381
|
+
"field": "requestBody",
|
|
382
|
+
"placeholder": "JSON request body",
|
|
383
|
+
"bind": "@entity.requestBody"
|
|
384
|
+
},
|
|
385
|
+
{
|
|
386
|
+
"type": "button",
|
|
387
|
+
"label": "Send Request",
|
|
388
|
+
"event": "CALL_API",
|
|
389
|
+
"variant": "primary",
|
|
390
|
+
"icon": "send"
|
|
391
|
+
}
|
|
392
|
+
]
|
|
393
|
+
}
|
|
394
|
+
]
|
|
395
|
+
]
|
|
396
|
+
},
|
|
397
|
+
{
|
|
398
|
+
"from": "complete",
|
|
399
|
+
"to": "idle",
|
|
400
|
+
"event": "RESET",
|
|
401
|
+
"effects": [
|
|
402
|
+
[
|
|
403
|
+
"render-ui",
|
|
404
|
+
"main",
|
|
405
|
+
{
|
|
406
|
+
"type": "stack",
|
|
407
|
+
"direction": "vertical",
|
|
408
|
+
"gap": "lg",
|
|
409
|
+
"align": "center",
|
|
410
|
+
"children": [
|
|
411
|
+
{
|
|
412
|
+
"type": "icon",
|
|
413
|
+
"name": "shield",
|
|
414
|
+
"size": "lg"
|
|
415
|
+
},
|
|
416
|
+
{
|
|
417
|
+
"type": "typography",
|
|
418
|
+
"content": "Bearer API Tester",
|
|
419
|
+
"variant": "h2"
|
|
420
|
+
},
|
|
421
|
+
{
|
|
422
|
+
"type": "input",
|
|
423
|
+
"field": "endpoint",
|
|
424
|
+
"placeholder": "/users",
|
|
425
|
+
"bind": "@entity.endpoint"
|
|
426
|
+
},
|
|
427
|
+
{
|
|
428
|
+
"type": "select",
|
|
429
|
+
"field": "method",
|
|
430
|
+
"bind": "@entity.method",
|
|
431
|
+
"options": [
|
|
432
|
+
{
|
|
433
|
+
"label": "GET",
|
|
434
|
+
"value": "GET"
|
|
435
|
+
},
|
|
436
|
+
{
|
|
437
|
+
"label": "POST",
|
|
438
|
+
"value": "POST"
|
|
439
|
+
},
|
|
440
|
+
{
|
|
441
|
+
"label": "PUT",
|
|
442
|
+
"value": "PUT"
|
|
443
|
+
},
|
|
444
|
+
{
|
|
445
|
+
"label": "DELETE",
|
|
446
|
+
"value": "DELETE"
|
|
447
|
+
}
|
|
448
|
+
]
|
|
449
|
+
},
|
|
450
|
+
{
|
|
451
|
+
"type": "textarea",
|
|
452
|
+
"field": "requestBody",
|
|
453
|
+
"placeholder": "JSON request body",
|
|
454
|
+
"bind": "@entity.requestBody"
|
|
455
|
+
},
|
|
456
|
+
{
|
|
457
|
+
"type": "button",
|
|
458
|
+
"label": "Send Request",
|
|
459
|
+
"event": "CALL_API",
|
|
460
|
+
"variant": "primary",
|
|
461
|
+
"icon": "send"
|
|
462
|
+
}
|
|
463
|
+
]
|
|
464
|
+
}
|
|
465
|
+
]
|
|
466
|
+
]
|
|
467
|
+
},
|
|
468
|
+
{
|
|
469
|
+
"from": "error",
|
|
470
|
+
"to": "idle",
|
|
471
|
+
"event": "RESET",
|
|
472
|
+
"effects": [
|
|
473
|
+
[
|
|
474
|
+
"render-ui",
|
|
475
|
+
"main",
|
|
476
|
+
{
|
|
477
|
+
"type": "stack",
|
|
478
|
+
"direction": "vertical",
|
|
479
|
+
"gap": "lg",
|
|
480
|
+
"align": "center",
|
|
481
|
+
"children": [
|
|
482
|
+
{
|
|
483
|
+
"type": "icon",
|
|
484
|
+
"name": "shield",
|
|
485
|
+
"size": "lg"
|
|
486
|
+
},
|
|
487
|
+
{
|
|
488
|
+
"type": "typography",
|
|
489
|
+
"content": "Bearer API Tester",
|
|
490
|
+
"variant": "h2"
|
|
491
|
+
},
|
|
492
|
+
{
|
|
493
|
+
"type": "input",
|
|
494
|
+
"field": "endpoint",
|
|
495
|
+
"placeholder": "/users",
|
|
496
|
+
"bind": "@entity.endpoint"
|
|
497
|
+
},
|
|
498
|
+
{
|
|
499
|
+
"type": "select",
|
|
500
|
+
"field": "method",
|
|
501
|
+
"bind": "@entity.method",
|
|
502
|
+
"options": [
|
|
503
|
+
{
|
|
504
|
+
"label": "GET",
|
|
505
|
+
"value": "GET"
|
|
506
|
+
},
|
|
507
|
+
{
|
|
508
|
+
"label": "POST",
|
|
509
|
+
"value": "POST"
|
|
510
|
+
},
|
|
511
|
+
{
|
|
512
|
+
"label": "PUT",
|
|
513
|
+
"value": "PUT"
|
|
514
|
+
},
|
|
515
|
+
{
|
|
516
|
+
"label": "DELETE",
|
|
517
|
+
"value": "DELETE"
|
|
518
|
+
}
|
|
519
|
+
]
|
|
520
|
+
},
|
|
521
|
+
{
|
|
522
|
+
"type": "textarea",
|
|
523
|
+
"field": "requestBody",
|
|
524
|
+
"placeholder": "JSON request body",
|
|
525
|
+
"bind": "@entity.requestBody"
|
|
526
|
+
},
|
|
527
|
+
{
|
|
528
|
+
"type": "button",
|
|
529
|
+
"label": "Send Request",
|
|
530
|
+
"event": "CALL_API",
|
|
531
|
+
"variant": "primary",
|
|
532
|
+
"icon": "send"
|
|
533
|
+
}
|
|
534
|
+
]
|
|
535
|
+
}
|
|
536
|
+
]
|
|
537
|
+
]
|
|
538
|
+
}
|
|
539
|
+
]
|
|
540
|
+
}
|
|
541
|
+
}
|
|
542
|
+
],
|
|
543
|
+
"pages": [
|
|
544
|
+
{
|
|
545
|
+
"name": "ServiceCustomBearerPage",
|
|
546
|
+
"path": "/servicecustombearers",
|
|
547
|
+
"traits": [
|
|
548
|
+
{
|
|
549
|
+
"ref": "ServiceCustomBearerCustomBearer"
|
|
550
|
+
}
|
|
551
|
+
]
|
|
552
|
+
}
|
|
553
|
+
]
|
|
554
|
+
}
|
|
555
|
+
],
|
|
556
|
+
"description": "Custom REST API behavior with Bearer token authentication. Tests the schema-level service declaration pattern with bearer auth. Pure function: params in, OrbitalDefinition out."
|
|
557
|
+
}
|