@digipair/skill-process 0.96.0 → 0.97.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digipair/skill-process",
3
- "version": "0.96.0",
3
+ "version": "0.97.0",
4
4
  "keywords": [
5
5
  "digipair",
6
6
  "service",
package/schema.fr.json CHANGED
@@ -10,7 +10,9 @@
10
10
  "paths": {
11
11
  "/stop": {
12
12
  "post": {
13
- "tags": ["service"],
13
+ "tags": [
14
+ "service"
15
+ ],
14
16
  "summary": "Arrêter un processus",
15
17
  "description": "Arrête un processus en cours.",
16
18
  "parameters": [
@@ -24,15 +26,69 @@
24
26
  }
25
27
  }
26
28
  ],
29
+ "responses": {
30
+ "200": {
31
+ "description": "Booléen indiquant si le processus a été arrêté avec succès",
32
+ "content": {
33
+ "application/json": {
34
+ "schema": {
35
+ "type": "boolean",
36
+ "description": "True si le processus a été trouvé et arrêté, false si le processus n'a pas été trouvé"
37
+ }
38
+ }
39
+ }
40
+ }
41
+ },
27
42
  "x-events": []
28
43
  }
29
44
  },
30
45
  "/list": {
31
46
  "post": {
32
- "tags": ["service"],
47
+ "tags": [
48
+ "service"
49
+ ],
33
50
  "summary": "Liste des processus",
34
51
  "description": "Liste les processus en cours.",
35
52
  "parameters": [],
53
+ "responses": {
54
+ "200": {
55
+ "description": "Tableau d'objets d'informations des processus en cours",
56
+ "content": {
57
+ "application/json": {
58
+ "schema": {
59
+ "type": "array",
60
+ "items": {
61
+ "type": "object",
62
+ "properties": {
63
+ "id": {
64
+ "type": "string",
65
+ "description": "Identifiant unique du processus"
66
+ },
67
+ "digipair": {
68
+ "type": "string",
69
+ "description": "Identifiant Digipair associé au processus"
70
+ },
71
+ "reasoning": {
72
+ "type": "string",
73
+ "description": "Raisonnement ou description du processus"
74
+ },
75
+ "time": {
76
+ "type": "number",
77
+ "description": "Horodatage de création du processus"
78
+ }
79
+ },
80
+ "required": [
81
+ "id",
82
+ "digipair",
83
+ "reasoning",
84
+ "time"
85
+ ]
86
+ }
87
+ }
88
+ }
89
+ }
90
+ }
91
+ },
36
92
  "x-events": []
37
93
  }
38
94
  }
@@ -40,4 +96,4 @@
40
96
  "components": {
41
97
  "schemas": {}
42
98
  }
43
- }
99
+ }
package/schema.json CHANGED
@@ -10,7 +10,9 @@
10
10
  "paths": {
11
11
  "/stop": {
12
12
  "post": {
13
- "tags": ["service"],
13
+ "tags": [
14
+ "service"
15
+ ],
14
16
  "summary": "Stop a process",
15
17
  "description": "Stop a running process.",
16
18
  "parameters": [
@@ -24,15 +26,69 @@
24
26
  }
25
27
  }
26
28
  ],
29
+ "responses": {
30
+ "200": {
31
+ "description": "Boolean indicating whether the process was successfully stopped",
32
+ "content": {
33
+ "application/json": {
34
+ "schema": {
35
+ "type": "boolean",
36
+ "description": "True if process was found and stopped, false if process was not found"
37
+ }
38
+ }
39
+ }
40
+ }
41
+ },
27
42
  "x-events": []
28
43
  }
29
44
  },
30
45
  "/list": {
31
46
  "post": {
32
- "tags": ["service"],
47
+ "tags": [
48
+ "service"
49
+ ],
33
50
  "summary": "List of processes",
34
51
  "description": "List the running processes.",
35
52
  "parameters": [],
53
+ "responses": {
54
+ "200": {
55
+ "description": "Array of running process information objects",
56
+ "content": {
57
+ "application/json": {
58
+ "schema": {
59
+ "type": "array",
60
+ "items": {
61
+ "type": "object",
62
+ "properties": {
63
+ "id": {
64
+ "type": "string",
65
+ "description": "Unique process identifier"
66
+ },
67
+ "digipair": {
68
+ "type": "string",
69
+ "description": "Digipair identifier associated with the process"
70
+ },
71
+ "reasoning": {
72
+ "type": "string",
73
+ "description": "Reasoning or description of the process"
74
+ },
75
+ "time": {
76
+ "type": "number",
77
+ "description": "Timestamp when the process was created"
78
+ }
79
+ },
80
+ "required": [
81
+ "id",
82
+ "digipair",
83
+ "reasoning",
84
+ "time"
85
+ ]
86
+ }
87
+ }
88
+ }
89
+ }
90
+ }
91
+ },
36
92
  "x-events": []
37
93
  }
38
94
  }
@@ -40,4 +96,4 @@
40
96
  "components": {
41
97
  "schemas": {}
42
98
  }
43
- }
99
+ }