@digipair/skill-logger 0.28.14 → 0.29.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-logger",
3
- "version": "0.28.14",
3
+ "version": "0.29.0",
4
4
  "dependencies": {},
5
5
  "main": "./index.cjs.js",
6
6
  "module": "./index.esm.js"
package/schema.en.json ADDED
@@ -0,0 +1,193 @@
1
+ {
2
+ "openapi": "3.0.0",
3
+ "info": {
4
+ "title": "@digipair/skill-logger",
5
+ "summary": "Log and LLM consumption management",
6
+ "description": "Log and LLM consumption management",
7
+ "version": "0.1.0",
8
+ "x-icon": "🔢"
9
+ },
10
+ "paths": {
11
+ "/consumptions": {
12
+ "post": {
13
+ "tags": ["service"],
14
+ "summary": "LLM Consumptions",
15
+ "description": "Read LLM consumptions for a given month or day",
16
+ "parameters": [
17
+ {
18
+ "name": "date",
19
+ "summary": "Date",
20
+ "required": true,
21
+ "description": "Date of LLM consumption (month or day)",
22
+ "schema": {
23
+ "type": "string"
24
+ }
25
+ },
26
+ {
27
+ "name": "path",
28
+ "summary": "Access Path",
29
+ "required": false,
30
+ "description": "Access paths of the Digipair directory",
31
+ "schema": {
32
+ "type": "string"
33
+ }
34
+ }
35
+ ],
36
+ "x-events": []
37
+ }
38
+ },
39
+ "/dailyConsumptions": {
40
+ "post": {
41
+ "tags": ["service"],
42
+ "summary": "List of LLM consumption days",
43
+ "description": "List the days of LLM consumption",
44
+ "parameters": [
45
+ {
46
+ "name": "path",
47
+ "summary": "Access Path",
48
+ "required": false,
49
+ "description": "Access paths of the Digipair directory",
50
+ "schema": {
51
+ "type": "string"
52
+ }
53
+ }
54
+ ],
55
+ "x-events": []
56
+ }
57
+ },
58
+ "/monthlyConsumptions": {
59
+ "post": {
60
+ "tags": ["service"],
61
+ "summary": "List of LLM consumption months",
62
+ "description": "List the months of LLM consumption",
63
+ "parameters": [
64
+ {
65
+ "name": "path",
66
+ "summary": "Access Path",
67
+ "required": false,
68
+ "description": "Access paths of the Digipair directory",
69
+ "schema": {
70
+ "type": "string"
71
+ }
72
+ }
73
+ ],
74
+ "x-events": []
75
+ }
76
+ },
77
+ "/logs": {
78
+ "post": {
79
+ "tags": ["service"],
80
+ "summary": "Logs",
81
+ "description": "Read logs for a given day",
82
+ "parameters": [
83
+ {
84
+ "name": "date",
85
+ "summary": "Date",
86
+ "required": true,
87
+ "description": "Date of the logs",
88
+ "schema": {
89
+ "type": "string"
90
+ }
91
+ },
92
+ {
93
+ "name": "path",
94
+ "summary": "Access Path",
95
+ "required": false,
96
+ "description": "Access paths of the Digipair directory",
97
+ "schema": {
98
+ "type": "string"
99
+ }
100
+ }
101
+ ],
102
+ "x-events": []
103
+ }
104
+ },
105
+ "/dailyLogs": {
106
+ "post": {
107
+ "tags": ["service"],
108
+ "summary": "List of log days",
109
+ "description": "List the log days",
110
+ "parameters": [
111
+ {
112
+ "name": "path",
113
+ "summary": "Access Path",
114
+ "required": false,
115
+ "description": "Access paths of the Digipair directory",
116
+ "schema": {
117
+ "type": "string"
118
+ }
119
+ }
120
+ ],
121
+ "x-events": []
122
+ }
123
+ },
124
+ "/computeDailyConsumption": {
125
+ "post": {
126
+ "tags": ["service"],
127
+ "summary": "Calculate and save daily consumption",
128
+ "description": "Calculate and save daily consumption in the monthly LLM consumption file",
129
+ "parameters": [
130
+ {
131
+ "name": "date",
132
+ "summary": "Date",
133
+ "required": true,
134
+ "description": "Date of the LLM consumption day to be added to the monthly consumption file",
135
+ "schema": {
136
+ "type": "string"
137
+ }
138
+ },
139
+ {
140
+ "name": "path",
141
+ "summary": "Access Path",
142
+ "required": false,
143
+ "description": "Access paths of the Digipair directory",
144
+ "schema": {
145
+ "type": "string"
146
+ }
147
+ }
148
+ ],
149
+ "x-events": []
150
+ }
151
+ },
152
+ "/clearOldLogs": {
153
+ "post": {
154
+ "tags": ["service"],
155
+ "summary": "Delete old logs",
156
+ "description": "Delete old log files",
157
+ "parameters": [
158
+ {
159
+ "name": "type",
160
+ "summary": "Log Type",
161
+ "required": true,
162
+ "description": "Type of logs to delete (factory, consumption-daily, consumption-monthly)",
163
+ "schema": {
164
+ "type": "string"
165
+ }
166
+ },
167
+ {
168
+ "name": "to",
169
+ "summary": "Up To",
170
+ "required": true,
171
+ "description": "Date up to which the logs should be kept",
172
+ "schema": {
173
+ "type": "number"
174
+ }
175
+ },
176
+ {
177
+ "name": "path",
178
+ "summary": "Access Path",
179
+ "required": false,
180
+ "description": "Access paths of the Digipair directory",
181
+ "schema": {
182
+ "type": "string"
183
+ }
184
+ }
185
+ ],
186
+ "x-events": []
187
+ }
188
+ }
189
+ },
190
+ "components": {
191
+ "schemas": {}
192
+ }
193
+ }
File without changes