@digipair/skill-temporal 0.28.14 → 0.29.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 (2) hide show
  1. package/package.json +1 -1
  2. package/schema.en.json +262 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digipair/skill-temporal",
3
- "version": "0.28.14",
3
+ "version": "0.29.4",
4
4
  "dependencies": {
5
5
  "@temporalio/client": "^1.10.1",
6
6
  "@temporalio/common": "^1.10.1",
package/schema.en.json ADDED
@@ -0,0 +1,262 @@
1
+ {
2
+ "openapi": "3.0.0",
3
+ "info": {
4
+ "title": "@digipair/skill-temporal",
5
+ "summary": "Temporal workflow management",
6
+ "description": "This skill allows managing temporal workflows",
7
+ "version": "0.1.0",
8
+ "x-icon": "👩‍💻"
9
+ },
10
+ "paths": {
11
+ "/activity": {
12
+ "post": {
13
+ "tags": ["service"],
14
+ "summary": "Activity",
15
+ "description": "Defines an activity",
16
+ "parameters": [
17
+ {
18
+ "name": "name",
19
+ "summary": "Name",
20
+ "required": false,
21
+ "description": "Name of the step",
22
+ "schema": {
23
+ "type": "string"
24
+ }
25
+ },
26
+ {
27
+ "name": "execute",
28
+ "summary": "Execute",
29
+ "required": true,
30
+ "description": "List of actions to execute",
31
+ "schema": {
32
+ "type": "array",
33
+ "items": {
34
+ "$ref": "https://schemas.digipair.ai/pinsSettings"
35
+ }
36
+ }
37
+ }
38
+ ],
39
+ "x-events": []
40
+ }
41
+ },
42
+ "/sleep": {
43
+ "post": {
44
+ "tags": ["service"],
45
+ "summary": "Wait",
46
+ "parameters": [
47
+ {
48
+ "name": "name",
49
+ "summary": "Name",
50
+ "required": false,
51
+ "description": "Name of the step",
52
+ "schema": {
53
+ "type": "string"
54
+ }
55
+ },
56
+ {
57
+ "name": "duration",
58
+ "summary": "Duration",
59
+ "required": true,
60
+ "description": "Duration of the wait",
61
+ "schema": {
62
+ "type": "string"
63
+ }
64
+ }
65
+ ],
66
+ "x-events": []
67
+ }
68
+ },
69
+ "/condition": {
70
+ "post": {
71
+ "tags": ["service"],
72
+ "summary": "Wait condition",
73
+ "description": "Wait condition in a workflow",
74
+ "parameters": [
75
+ {
76
+ "name": "condition",
77
+ "summary": "Condition",
78
+ "required": true,
79
+ "description": "Wait condition in Feel format",
80
+ "schema": {
81
+ "type": "string"
82
+ }
83
+ },
84
+ {
85
+ "name": "timeout",
86
+ "summary": "Timeout",
87
+ "required": false,
88
+ "description": "Timeout of the condition",
89
+ "schema": {
90
+ "type": "number"
91
+ }
92
+ }
93
+ ],
94
+ "x-events": []
95
+ }
96
+ },
97
+ "/goto": {
98
+ "post": {
99
+ "tags": ["service"],
100
+ "summary": "Go to step",
101
+ "parameters": [
102
+ {
103
+ "name": "target",
104
+ "summary": "Destination name",
105
+ "required": true,
106
+ "description": "Name of the destination step",
107
+ "schema": {
108
+ "type": "string"
109
+ }
110
+ },
111
+ {
112
+ "name": "name",
113
+ "summary": "Name",
114
+ "required": false,
115
+ "description": "Name of the step",
116
+ "schema": {
117
+ "type": "string"
118
+ }
119
+ }
120
+ ],
121
+ "x-events": []
122
+ }
123
+ },
124
+ "/stop": {
125
+ "post": {
126
+ "tags": ["service"],
127
+ "summary": "Stop the workflow",
128
+ "description": "Stop the workflow",
129
+ "parameters": [
130
+ {
131
+ "name": "name",
132
+ "summary": "Name",
133
+ "required": false,
134
+ "description": "Name of the step",
135
+ "schema": {
136
+ "type": "string"
137
+ }
138
+ }
139
+ ],
140
+ "x-events": []
141
+ }
142
+ },
143
+ "/push": {
144
+ "post": {
145
+ "tags": ["service"],
146
+ "summary": "Send new data to a workflow",
147
+ "description": "Send new data to the workflow",
148
+ "parameters": [
149
+ {
150
+ "name": "id",
151
+ "summary": "Workflow ID",
152
+ "required": true,
153
+ "description": "Workflow ID",
154
+ "schema": {
155
+ "type": "string"
156
+ }
157
+ },
158
+ {
159
+ "name": "data",
160
+ "summary": "Data",
161
+ "required": true,
162
+ "description": "Data",
163
+ "schema": {
164
+ "type": "object"
165
+ }
166
+ }
167
+ ],
168
+ "x-events": []
169
+ }
170
+ },
171
+ "/terminate": {
172
+ "post": {
173
+ "tags": ["service"],
174
+ "summary": "Stop a workflow",
175
+ "description": "Stop a workflow",
176
+ "parameters": [
177
+ {
178
+ "name": "id",
179
+ "summary": "Workflow ID",
180
+ "required": true,
181
+ "description": "Workflow ID",
182
+ "schema": {
183
+ "type": "string"
184
+ }
185
+ }
186
+ ],
187
+ "x-events": []
188
+ }
189
+ },
190
+ "/list": {
191
+ "post": {
192
+ "tags": ["service"],
193
+ "summary": "List workflows",
194
+ "description": "List workflows",
195
+ "parameters": [
196
+ {
197
+ "name": "query",
198
+ "summary": "Query",
199
+ "required": false,
200
+ "description": "Search query",
201
+ "schema": {
202
+ "type": "string"
203
+ }
204
+ }
205
+ ],
206
+ "x-events": []
207
+ }
208
+ }
209
+ },
210
+ "components": {
211
+ "schemas": {}
212
+ },
213
+ "x-scene-blocks": {
214
+ "/workflow": {
215
+ "summary": "Temporal Workflow",
216
+ "description": "Execute a Temporal workflow",
217
+ "tags": ["service"],
218
+ "metadata": [],
219
+ "parameters": [
220
+ {
221
+ "name": "id",
222
+ "summary": "ID",
223
+ "required": true,
224
+ "description": "Workflow ID",
225
+ "schema": {
226
+ "type": "string"
227
+ }
228
+ },
229
+ {
230
+ "name": "steps",
231
+ "summary": "Execute the following steps",
232
+ "required": true,
233
+ "description": "Content of the page",
234
+ "schema": {
235
+ "type": "array",
236
+ "items": {
237
+ "$ref": "https://schemas.digipair.ai/pinsSettings"
238
+ }
239
+ }
240
+ },
241
+ {
242
+ "name": "data",
243
+ "summary": "Workflow data",
244
+ "required": false,
245
+ "description": "Temporal workflow data",
246
+ "schema": {
247
+ "type": "object"
248
+ }
249
+ },
250
+ {
251
+ "name": "options",
252
+ "summary": "Temporal options",
253
+ "required": false,
254
+ "description": "Temporal workflow options",
255
+ "schema": {
256
+ "type": "object"
257
+ }
258
+ }
259
+ ]
260
+ }
261
+ }
262
+ }