@almadar/std 3.2.3 → 3.3.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (163) hide show
  1. package/LICENSE +72 -21
  2. package/README.md +1 -1
  3. package/behaviors/exports/atoms/std-combat-log.orb +12 -12
  4. package/behaviors/exports/atoms/std-dialogue-box.orb +11 -11
  5. package/behaviors/exports/atoms/std-game-audio.orb +9 -9
  6. package/behaviors/exports/atoms/std-game-canvas3d.orb +24 -24
  7. package/behaviors/exports/atoms/std-game-hud.orb +10 -10
  8. package/behaviors/exports/atoms/std-game-menu.orb +12 -12
  9. package/behaviors/exports/atoms/std-game-over-screen.orb +9 -9
  10. package/behaviors/exports/atoms/std-inventory-panel.orb +13 -13
  11. package/behaviors/exports/atoms/std-isometric-canvas.orb +9 -9
  12. package/behaviors/exports/atoms/std-platformer-canvas.orb +9 -9
  13. package/behaviors/exports/atoms/std-score-board.orb +9 -9
  14. package/behaviors/exports/atoms/std-selection.orb +32 -18
  15. package/behaviors/exports/atoms/std-service-custom-bearer.orb +557 -0
  16. package/behaviors/exports/atoms/std-service-custom-header.orb +559 -0
  17. package/behaviors/exports/atoms/std-service-custom-noauth.orb +553 -0
  18. package/behaviors/exports/atoms/std-service-custom-query.orb +559 -0
  19. package/behaviors/exports/atoms/std-service-email.orb +540 -0
  20. package/behaviors/exports/atoms/std-service-github.orb +586 -0
  21. package/behaviors/exports/atoms/std-service-llm.orb +671 -0
  22. package/behaviors/exports/atoms/std-service-oauth.orb +764 -0
  23. package/behaviors/exports/atoms/std-service-redis.orb +580 -0
  24. package/behaviors/exports/atoms/std-service-storage.orb +664 -0
  25. package/behaviors/exports/atoms/std-service-stripe.orb +639 -0
  26. package/behaviors/exports/atoms/std-service-twilio.orb +611 -0
  27. package/behaviors/exports/atoms/std-service-youtube.orb +696 -0
  28. package/behaviors/exports/atoms/std-simulation-canvas.orb +9 -9
  29. package/behaviors/exports/atoms/std-sprite.orb +17 -17
  30. package/behaviors/exports/atoms/std-validate-on-save.orb +623 -0
  31. package/behaviors/exports/molecules/std-quiz.orb +48 -24
  32. package/behaviors/exports/molecules/std-service-content-pipeline.orb +915 -0
  33. package/behaviors/exports/molecules/std-service-custom-api-tester.orb +860 -0
  34. package/behaviors/exports/molecules/std-service-devops-toolkit.orb +1526 -0
  35. package/behaviors/exports/molecules/std-service-notification-hub.orb +696 -0
  36. package/behaviors/exports/molecules/std-service-payment-flow.orb +873 -0
  37. package/behaviors/exports/organisms/std-service-marketplace.orb +5191 -0
  38. package/behaviors/exports/organisms/std-service-research-assistant.orb +3568 -0
  39. package/behaviors/exports/test-schemas/os-trigger-simulation.orb +202 -0
  40. package/behaviors/exports/validation-report.json +2 -2
  41. package/dist/behaviors/exports/atoms/std-combat-log.orb +12 -12
  42. package/dist/behaviors/exports/atoms/std-dialogue-box.orb +11 -11
  43. package/dist/behaviors/exports/atoms/std-game-audio.orb +9 -9
  44. package/dist/behaviors/exports/atoms/std-game-canvas3d.orb +24 -24
  45. package/dist/behaviors/exports/atoms/std-game-hud.orb +10 -10
  46. package/dist/behaviors/exports/atoms/std-game-menu.orb +12 -12
  47. package/dist/behaviors/exports/atoms/std-game-over-screen.orb +9 -9
  48. package/dist/behaviors/exports/atoms/std-inventory-panel.orb +13 -13
  49. package/dist/behaviors/exports/atoms/std-isometric-canvas.orb +9 -9
  50. package/dist/behaviors/exports/atoms/std-platformer-canvas.orb +9 -9
  51. package/dist/behaviors/exports/atoms/std-score-board.orb +9 -9
  52. package/dist/behaviors/exports/atoms/std-selection.orb +32 -18
  53. package/dist/behaviors/exports/atoms/std-service-custom-bearer.orb +557 -0
  54. package/dist/behaviors/exports/atoms/std-service-custom-header.orb +559 -0
  55. package/dist/behaviors/exports/atoms/std-service-custom-noauth.orb +553 -0
  56. package/dist/behaviors/exports/atoms/std-service-custom-query.orb +559 -0
  57. package/dist/behaviors/exports/atoms/std-service-email.orb +540 -0
  58. package/dist/behaviors/exports/atoms/std-service-github.orb +586 -0
  59. package/dist/behaviors/exports/atoms/std-service-llm.orb +671 -0
  60. package/dist/behaviors/exports/atoms/std-service-oauth.orb +764 -0
  61. package/dist/behaviors/exports/atoms/std-service-redis.orb +580 -0
  62. package/dist/behaviors/exports/atoms/std-service-storage.orb +664 -0
  63. package/dist/behaviors/exports/atoms/std-service-stripe.orb +639 -0
  64. package/dist/behaviors/exports/atoms/std-service-twilio.orb +611 -0
  65. package/dist/behaviors/exports/atoms/std-service-youtube.orb +696 -0
  66. package/dist/behaviors/exports/atoms/std-simulation-canvas.orb +9 -9
  67. package/dist/behaviors/exports/atoms/std-sprite.orb +17 -17
  68. package/dist/behaviors/exports/atoms/std-validate-on-save.orb +623 -0
  69. package/dist/behaviors/exports/molecules/std-quiz.orb +48 -24
  70. package/dist/behaviors/exports/molecules/std-service-content-pipeline.orb +915 -0
  71. package/dist/behaviors/exports/molecules/std-service-custom-api-tester.orb +860 -0
  72. package/dist/behaviors/exports/molecules/std-service-devops-toolkit.orb +1526 -0
  73. package/dist/behaviors/exports/molecules/std-service-notification-hub.orb +696 -0
  74. package/dist/behaviors/exports/molecules/std-service-payment-flow.orb +873 -0
  75. package/dist/behaviors/exports/organisms/std-service-marketplace.orb +5191 -0
  76. package/dist/behaviors/exports/organisms/std-service-research-assistant.orb +3568 -0
  77. package/dist/behaviors/exports/test-schemas/os-trigger-simulation.orb +202 -0
  78. package/dist/behaviors/exports/validation-report.json +2 -2
  79. package/dist/behaviors/functions/index.d.ts +662 -1
  80. package/dist/behaviors/functions/index.js +7638 -2117
  81. package/dist/behaviors/functions/index.js.map +1 -1
  82. package/dist/behaviors/index.d.ts +1 -1
  83. package/dist/behaviors/index.js +7638 -2117
  84. package/dist/behaviors/index.js.map +1 -1
  85. package/dist/exports/atoms/std-combat-log.orb +12 -12
  86. package/dist/exports/atoms/std-dialogue-box.orb +11 -11
  87. package/dist/exports/atoms/std-game-audio.orb +9 -9
  88. package/dist/exports/atoms/std-game-canvas3d.orb +24 -24
  89. package/dist/exports/atoms/std-game-hud.orb +10 -10
  90. package/dist/exports/atoms/std-game-menu.orb +12 -12
  91. package/dist/exports/atoms/std-game-over-screen.orb +9 -9
  92. package/dist/exports/atoms/std-inventory-panel.orb +13 -13
  93. package/dist/exports/atoms/std-isometric-canvas.orb +9 -9
  94. package/dist/exports/atoms/std-platformer-canvas.orb +9 -9
  95. package/dist/exports/atoms/std-score-board.orb +9 -9
  96. package/dist/exports/atoms/std-selection.orb +32 -18
  97. package/dist/exports/atoms/std-service-custom-bearer.orb +557 -0
  98. package/dist/exports/atoms/std-service-custom-header.orb +559 -0
  99. package/dist/exports/atoms/std-service-custom-noauth.orb +553 -0
  100. package/dist/exports/atoms/std-service-custom-query.orb +559 -0
  101. package/dist/exports/atoms/std-service-email.orb +540 -0
  102. package/dist/exports/atoms/std-service-github.orb +586 -0
  103. package/dist/exports/atoms/std-service-llm.orb +671 -0
  104. package/dist/exports/atoms/std-service-oauth.orb +764 -0
  105. package/dist/exports/atoms/std-service-redis.orb +580 -0
  106. package/dist/exports/atoms/std-service-storage.orb +664 -0
  107. package/dist/exports/atoms/std-service-stripe.orb +639 -0
  108. package/dist/exports/atoms/std-service-twilio.orb +611 -0
  109. package/dist/exports/atoms/std-service-youtube.orb +696 -0
  110. package/dist/exports/atoms/std-simulation-canvas.orb +9 -9
  111. package/dist/exports/atoms/std-sprite.orb +17 -17
  112. package/dist/exports/atoms/std-validate-on-save.orb +623 -0
  113. package/dist/exports/molecules/std-quiz.orb +48 -24
  114. package/dist/exports/molecules/std-service-content-pipeline.orb +915 -0
  115. package/dist/exports/molecules/std-service-custom-api-tester.orb +860 -0
  116. package/dist/exports/molecules/std-service-devops-toolkit.orb +1526 -0
  117. package/dist/exports/molecules/std-service-notification-hub.orb +696 -0
  118. package/dist/exports/molecules/std-service-payment-flow.orb +873 -0
  119. package/dist/exports/organisms/std-service-marketplace.orb +5191 -0
  120. package/dist/exports/organisms/std-service-research-assistant.orb +3568 -0
  121. package/dist/exports/test-schemas/os-trigger-simulation.orb +202 -0
  122. package/dist/exports/validation-report.json +2 -2
  123. package/dist/index.d.ts +3 -3
  124. package/dist/index.js +7887 -2216
  125. package/dist/index.js.map +1 -1
  126. package/dist/modules/array.d.ts +1 -1
  127. package/dist/modules/async.d.ts +1 -1
  128. package/dist/modules/contract.d.ts +22 -0
  129. package/dist/modules/contract.js +100 -0
  130. package/dist/modules/contract.js.map +1 -0
  131. package/dist/modules/data.d.ts +22 -0
  132. package/dist/modules/data.js +117 -0
  133. package/dist/modules/data.js.map +1 -0
  134. package/dist/modules/format.d.ts +1 -1
  135. package/dist/modules/graph.d.ts +23 -0
  136. package/dist/modules/graph.js +209 -0
  137. package/dist/modules/graph.js.map +1 -0
  138. package/dist/modules/index.d.ts +5 -1
  139. package/dist/modules/index.js +593 -63
  140. package/dist/modules/index.js.map +1 -1
  141. package/dist/modules/math.d.ts +1 -1
  142. package/dist/modules/nn.d.ts +1 -1
  143. package/dist/modules/nn.js +14 -14
  144. package/dist/modules/nn.js.map +1 -1
  145. package/dist/modules/object.d.ts +1 -1
  146. package/dist/modules/os.d.ts +19 -0
  147. package/dist/modules/os.js +116 -0
  148. package/dist/modules/os.js.map +1 -0
  149. package/dist/modules/prob.d.ts +1 -1
  150. package/dist/modules/str.d.ts +1 -1
  151. package/dist/modules/tensor.d.ts +1 -1
  152. package/dist/modules/tensor.js +29 -29
  153. package/dist/modules/tensor.js.map +1 -1
  154. package/dist/modules/time.d.ts +1 -1
  155. package/dist/modules/train.d.ts +1 -1
  156. package/dist/modules/train.js +19 -19
  157. package/dist/modules/train.js.map +1 -1
  158. package/dist/modules/validate.d.ts +1 -1
  159. package/dist/registry.d.ts +2 -2
  160. package/dist/registry.js +184 -65
  161. package/dist/registry.js.map +1 -1
  162. package/dist/{types-CmNM_IbV.d.ts → types-DOeGXRCm.d.ts} +3 -3
  163. package/package.json +2 -2
@@ -0,0 +1,611 @@
1
+ {
2
+ "name": "ServiceTwilioOrbital",
3
+ "orbitals": [
4
+ {
5
+ "name": "ServiceTwilioOrbital",
6
+ "entity": {
7
+ "name": "ServiceTwilio",
8
+ "persistence": "runtime",
9
+ "fields": [
10
+ {
11
+ "name": "id",
12
+ "type": "string"
13
+ },
14
+ {
15
+ "name": "name",
16
+ "type": "string"
17
+ },
18
+ {
19
+ "name": "description",
20
+ "type": "string"
21
+ },
22
+ {
23
+ "name": "status",
24
+ "type": "string",
25
+ "default": "active",
26
+ "values": [
27
+ "active",
28
+ "inactive",
29
+ "pending"
30
+ ]
31
+ },
32
+ {
33
+ "name": "createdAt",
34
+ "type": "string"
35
+ },
36
+ {
37
+ "name": "to",
38
+ "type": "string"
39
+ },
40
+ {
41
+ "name": "messageBody",
42
+ "type": "string"
43
+ },
44
+ {
45
+ "name": "channel",
46
+ "type": "string",
47
+ "default": "sms"
48
+ },
49
+ {
50
+ "name": "messageSid",
51
+ "type": "string"
52
+ },
53
+ {
54
+ "name": "sendStatus",
55
+ "type": "string",
56
+ "default": "idle"
57
+ },
58
+ {
59
+ "name": "error",
60
+ "type": "string"
61
+ }
62
+ ]
63
+ },
64
+ "traits": [
65
+ {
66
+ "name": "ServiceTwilioTwilio",
67
+ "linkedEntity": "ServiceTwilio",
68
+ "category": "interaction",
69
+ "stateMachine": {
70
+ "states": [
71
+ {
72
+ "name": "idle",
73
+ "isInitial": true
74
+ },
75
+ {
76
+ "name": "sending"
77
+ },
78
+ {
79
+ "name": "sent"
80
+ },
81
+ {
82
+ "name": "error"
83
+ }
84
+ ],
85
+ "events": [
86
+ {
87
+ "key": "INIT",
88
+ "name": "Initialize"
89
+ },
90
+ {
91
+ "key": "SEND_SMS",
92
+ "name": "Send SMS"
93
+ },
94
+ {
95
+ "key": "SEND_WHATSAPP",
96
+ "name": "Send WhatsApp"
97
+ },
98
+ {
99
+ "key": "SENT",
100
+ "name": "Message Sent",
101
+ "payload": [
102
+ {
103
+ "name": "messageSid",
104
+ "type": "string",
105
+ "required": false
106
+ }
107
+ ]
108
+ },
109
+ {
110
+ "key": "FAILED",
111
+ "name": "Send Failed",
112
+ "payload": [
113
+ {
114
+ "name": "error",
115
+ "type": "string",
116
+ "required": true
117
+ }
118
+ ]
119
+ },
120
+ {
121
+ "key": "RETRY",
122
+ "name": "Retry"
123
+ },
124
+ {
125
+ "key": "RESET",
126
+ "name": "Reset"
127
+ }
128
+ ],
129
+ "transitions": [
130
+ {
131
+ "from": "idle",
132
+ "to": "idle",
133
+ "event": "INIT",
134
+ "effects": [
135
+ [
136
+ "fetch",
137
+ "ServiceTwilio"
138
+ ],
139
+ [
140
+ "render-ui",
141
+ "main",
142
+ {
143
+ "type": "stack",
144
+ "direction": "vertical",
145
+ "gap": "lg",
146
+ "align": "stretch",
147
+ "children": [
148
+ {
149
+ "type": "stack",
150
+ "direction": "horizontal",
151
+ "gap": "md",
152
+ "align": "center",
153
+ "children": [
154
+ {
155
+ "type": "icon",
156
+ "name": "message-circle",
157
+ "size": "lg"
158
+ },
159
+ {
160
+ "type": "typography",
161
+ "content": "ServiceTwilio Messaging",
162
+ "variant": "h2"
163
+ }
164
+ ]
165
+ },
166
+ {
167
+ "type": "divider"
168
+ },
169
+ {
170
+ "type": "input",
171
+ "label": "To",
172
+ "bind": "@entity.to",
173
+ "placeholder": "+1234567890"
174
+ },
175
+ {
176
+ "type": "textarea",
177
+ "label": "Message",
178
+ "bind": "@entity.messageBody",
179
+ "placeholder": "Write your message..."
180
+ },
181
+ {
182
+ "type": "stack",
183
+ "direction": "horizontal",
184
+ "gap": "sm",
185
+ "justify": "center",
186
+ "children": [
187
+ {
188
+ "type": "button",
189
+ "label": "Send SMS",
190
+ "event": "SEND_SMS",
191
+ "variant": "primary",
192
+ "icon": "message-circle"
193
+ },
194
+ {
195
+ "type": "button",
196
+ "label": "Send WhatsApp",
197
+ "event": "SEND_WHATSAPP",
198
+ "variant": "secondary",
199
+ "icon": "phone"
200
+ }
201
+ ]
202
+ }
203
+ ]
204
+ }
205
+ ]
206
+ ]
207
+ },
208
+ {
209
+ "from": "idle",
210
+ "to": "sending",
211
+ "event": "SEND_SMS",
212
+ "effects": [
213
+ [
214
+ "render-ui",
215
+ "main",
216
+ {
217
+ "type": "loading-state",
218
+ "title": "Sending message...",
219
+ "message": "Delivering servicetwilio message..."
220
+ }
221
+ ],
222
+ [
223
+ "call-service",
224
+ "twilio",
225
+ "sendSMS",
226
+ {
227
+ "to": "@entity.to",
228
+ "body": "@entity.messageBody"
229
+ }
230
+ ]
231
+ ]
232
+ },
233
+ {
234
+ "from": "idle",
235
+ "to": "sending",
236
+ "event": "SEND_WHATSAPP",
237
+ "effects": [
238
+ [
239
+ "render-ui",
240
+ "main",
241
+ {
242
+ "type": "loading-state",
243
+ "title": "Sending message...",
244
+ "message": "Delivering servicetwilio message..."
245
+ }
246
+ ],
247
+ [
248
+ "call-service",
249
+ "twilio",
250
+ "sendWhatsApp",
251
+ {
252
+ "to": "@entity.to",
253
+ "body": "@entity.messageBody"
254
+ }
255
+ ]
256
+ ]
257
+ },
258
+ {
259
+ "from": "sending",
260
+ "to": "sent",
261
+ "event": "SENT",
262
+ "effects": [
263
+ [
264
+ "set",
265
+ "@entity.sendStatus",
266
+ "sent"
267
+ ],
268
+ [
269
+ "set",
270
+ "@entity.messageSid",
271
+ "@payload.messageSid"
272
+ ],
273
+ [
274
+ "render-ui",
275
+ "main",
276
+ {
277
+ "type": "stack",
278
+ "direction": "vertical",
279
+ "gap": "lg",
280
+ "align": "center",
281
+ "children": [
282
+ {
283
+ "type": "icon",
284
+ "name": "check-circle",
285
+ "size": "lg"
286
+ },
287
+ {
288
+ "type": "alert",
289
+ "variant": "success",
290
+ "message": "Message sent successfully"
291
+ },
292
+ {
293
+ "type": "button",
294
+ "label": "Send Another",
295
+ "event": "RESET",
296
+ "variant": "ghost",
297
+ "icon": "rotate-ccw"
298
+ }
299
+ ]
300
+ }
301
+ ]
302
+ ]
303
+ },
304
+ {
305
+ "from": "sending",
306
+ "to": "error",
307
+ "event": "FAILED",
308
+ "effects": [
309
+ [
310
+ "set",
311
+ "@entity.sendStatus",
312
+ "error"
313
+ ],
314
+ [
315
+ "set",
316
+ "@entity.error",
317
+ "@payload.error"
318
+ ],
319
+ [
320
+ "render-ui",
321
+ "main",
322
+ {
323
+ "type": "stack",
324
+ "direction": "vertical",
325
+ "gap": "lg",
326
+ "align": "center",
327
+ "children": [
328
+ {
329
+ "type": "error-state",
330
+ "title": "Send Failed",
331
+ "message": "Could not deliver the message.",
332
+ "onRetry": "RETRY"
333
+ },
334
+ {
335
+ "type": "stack",
336
+ "direction": "horizontal",
337
+ "gap": "sm",
338
+ "justify": "center",
339
+ "children": [
340
+ {
341
+ "type": "button",
342
+ "label": "Retry",
343
+ "event": "RETRY",
344
+ "variant": "primary",
345
+ "icon": "refresh-cw"
346
+ },
347
+ {
348
+ "type": "button",
349
+ "label": "Reset",
350
+ "event": "RESET",
351
+ "variant": "ghost",
352
+ "icon": "rotate-ccw"
353
+ }
354
+ ]
355
+ }
356
+ ]
357
+ }
358
+ ]
359
+ ]
360
+ },
361
+ {
362
+ "from": "error",
363
+ "to": "idle",
364
+ "event": "RETRY",
365
+ "effects": [
366
+ [
367
+ "render-ui",
368
+ "main",
369
+ {
370
+ "type": "stack",
371
+ "direction": "vertical",
372
+ "gap": "lg",
373
+ "align": "stretch",
374
+ "children": [
375
+ {
376
+ "type": "stack",
377
+ "direction": "horizontal",
378
+ "gap": "md",
379
+ "align": "center",
380
+ "children": [
381
+ {
382
+ "type": "icon",
383
+ "name": "message-circle",
384
+ "size": "lg"
385
+ },
386
+ {
387
+ "type": "typography",
388
+ "content": "ServiceTwilio Messaging",
389
+ "variant": "h2"
390
+ }
391
+ ]
392
+ },
393
+ {
394
+ "type": "divider"
395
+ },
396
+ {
397
+ "type": "input",
398
+ "label": "To",
399
+ "bind": "@entity.to",
400
+ "placeholder": "+1234567890"
401
+ },
402
+ {
403
+ "type": "textarea",
404
+ "label": "Message",
405
+ "bind": "@entity.messageBody",
406
+ "placeholder": "Write your message..."
407
+ },
408
+ {
409
+ "type": "stack",
410
+ "direction": "horizontal",
411
+ "gap": "sm",
412
+ "justify": "center",
413
+ "children": [
414
+ {
415
+ "type": "button",
416
+ "label": "Send SMS",
417
+ "event": "SEND_SMS",
418
+ "variant": "primary",
419
+ "icon": "message-circle"
420
+ },
421
+ {
422
+ "type": "button",
423
+ "label": "Send WhatsApp",
424
+ "event": "SEND_WHATSAPP",
425
+ "variant": "secondary",
426
+ "icon": "phone"
427
+ }
428
+ ]
429
+ }
430
+ ]
431
+ }
432
+ ]
433
+ ]
434
+ },
435
+ {
436
+ "from": "sent",
437
+ "to": "idle",
438
+ "event": "RESET",
439
+ "effects": [
440
+ [
441
+ "set",
442
+ "@entity.sendStatus",
443
+ "idle"
444
+ ],
445
+ [
446
+ "render-ui",
447
+ "main",
448
+ {
449
+ "type": "stack",
450
+ "direction": "vertical",
451
+ "gap": "lg",
452
+ "align": "stretch",
453
+ "children": [
454
+ {
455
+ "type": "stack",
456
+ "direction": "horizontal",
457
+ "gap": "md",
458
+ "align": "center",
459
+ "children": [
460
+ {
461
+ "type": "icon",
462
+ "name": "message-circle",
463
+ "size": "lg"
464
+ },
465
+ {
466
+ "type": "typography",
467
+ "content": "ServiceTwilio Messaging",
468
+ "variant": "h2"
469
+ }
470
+ ]
471
+ },
472
+ {
473
+ "type": "divider"
474
+ },
475
+ {
476
+ "type": "input",
477
+ "label": "To",
478
+ "bind": "@entity.to",
479
+ "placeholder": "+1234567890"
480
+ },
481
+ {
482
+ "type": "textarea",
483
+ "label": "Message",
484
+ "bind": "@entity.messageBody",
485
+ "placeholder": "Write your message..."
486
+ },
487
+ {
488
+ "type": "stack",
489
+ "direction": "horizontal",
490
+ "gap": "sm",
491
+ "justify": "center",
492
+ "children": [
493
+ {
494
+ "type": "button",
495
+ "label": "Send SMS",
496
+ "event": "SEND_SMS",
497
+ "variant": "primary",
498
+ "icon": "message-circle"
499
+ },
500
+ {
501
+ "type": "button",
502
+ "label": "Send WhatsApp",
503
+ "event": "SEND_WHATSAPP",
504
+ "variant": "secondary",
505
+ "icon": "phone"
506
+ }
507
+ ]
508
+ }
509
+ ]
510
+ }
511
+ ]
512
+ ]
513
+ },
514
+ {
515
+ "from": "error",
516
+ "to": "idle",
517
+ "event": "RESET",
518
+ "effects": [
519
+ [
520
+ "set",
521
+ "@entity.sendStatus",
522
+ "idle"
523
+ ],
524
+ [
525
+ "render-ui",
526
+ "main",
527
+ {
528
+ "type": "stack",
529
+ "direction": "vertical",
530
+ "gap": "lg",
531
+ "align": "stretch",
532
+ "children": [
533
+ {
534
+ "type": "stack",
535
+ "direction": "horizontal",
536
+ "gap": "md",
537
+ "align": "center",
538
+ "children": [
539
+ {
540
+ "type": "icon",
541
+ "name": "message-circle",
542
+ "size": "lg"
543
+ },
544
+ {
545
+ "type": "typography",
546
+ "content": "ServiceTwilio Messaging",
547
+ "variant": "h2"
548
+ }
549
+ ]
550
+ },
551
+ {
552
+ "type": "divider"
553
+ },
554
+ {
555
+ "type": "input",
556
+ "label": "To",
557
+ "bind": "@entity.to",
558
+ "placeholder": "+1234567890"
559
+ },
560
+ {
561
+ "type": "textarea",
562
+ "label": "Message",
563
+ "bind": "@entity.messageBody",
564
+ "placeholder": "Write your message..."
565
+ },
566
+ {
567
+ "type": "stack",
568
+ "direction": "horizontal",
569
+ "gap": "sm",
570
+ "justify": "center",
571
+ "children": [
572
+ {
573
+ "type": "button",
574
+ "label": "Send SMS",
575
+ "event": "SEND_SMS",
576
+ "variant": "primary",
577
+ "icon": "message-circle"
578
+ },
579
+ {
580
+ "type": "button",
581
+ "label": "Send WhatsApp",
582
+ "event": "SEND_WHATSAPP",
583
+ "variant": "secondary",
584
+ "icon": "phone"
585
+ }
586
+ ]
587
+ }
588
+ ]
589
+ }
590
+ ]
591
+ ]
592
+ }
593
+ ]
594
+ }
595
+ }
596
+ ],
597
+ "pages": [
598
+ {
599
+ "name": "ServiceTwilioPage",
600
+ "path": "/servicetwilios",
601
+ "traits": [
602
+ {
603
+ "ref": "ServiceTwilioTwilio"
604
+ }
605
+ ]
606
+ }
607
+ ]
608
+ }
609
+ ],
610
+ "description": "Twilio messaging integration behavior: compose, send SMS or WhatsApp, track delivery. Wraps the `twilio` service integration with sendSMS and sendWhatsApp operations. Pure function: params in, OrbitalDefinition out."
611
+ }