@oriva/sdk 0.1.0 → 0.2.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/dist/generated/client/types.gen.d.ts.map +1 -1
- package/dist/generated/client.gen.d.ts.map +1 -1
- package/dist/generated/core/types.gen.d.ts.map +1 -1
- package/dist/generated/index.d.ts +2 -2
- package/dist/generated/index.d.ts.map +1 -1
- package/dist/generated/index.js +1 -1
- package/dist/generated/sdk.gen.d.ts +38 -38
- package/dist/generated/sdk.gen.d.ts.map +1 -1
- package/dist/generated/sdk.gen.js +145 -130
- package/dist/generated/types.gen.d.ts +285 -285
- package/dist/generated/types.gen.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1,91 +1,24 @@
|
|
|
1
1
|
// This file is auto-generated by @hey-api/openapi-ts
|
|
2
2
|
import { client } from './client.gen.js';
|
|
3
3
|
/**
|
|
4
|
-
*
|
|
5
|
-
*/
|
|
6
|
-
export const register = (options) => (options?.client ?? client).post({
|
|
7
|
-
url: '/api/v1/auth/register',
|
|
8
|
-
...options,
|
|
9
|
-
headers: {
|
|
10
|
-
'Content-Type': 'application/json',
|
|
11
|
-
...options?.headers
|
|
12
|
-
}
|
|
13
|
-
});
|
|
14
|
-
/**
|
|
15
|
-
* Log in
|
|
16
|
-
*/
|
|
17
|
-
export const login = (options) => (options?.client ?? client).post({
|
|
18
|
-
url: '/api/v1/auth/login',
|
|
19
|
-
...options,
|
|
20
|
-
headers: {
|
|
21
|
-
'Content-Type': 'application/json',
|
|
22
|
-
...options?.headers
|
|
23
|
-
}
|
|
24
|
-
});
|
|
25
|
-
/**
|
|
26
|
-
* Log out
|
|
27
|
-
*
|
|
28
|
-
* Invalidates the current session. Requires Authorization header.
|
|
29
|
-
*/
|
|
30
|
-
export const logout = (options) => (options?.client ?? client).post({
|
|
31
|
-
security: [{ scheme: 'bearer', type: 'http' }],
|
|
32
|
-
url: '/api/v1/auth/logout',
|
|
33
|
-
...options
|
|
34
|
-
});
|
|
35
|
-
/**
|
|
36
|
-
* Refresh access token
|
|
37
|
-
*/
|
|
38
|
-
export const refreshToken = (options) => (options?.client ?? client).post({
|
|
39
|
-
url: '/api/v1/auth/token/refresh',
|
|
40
|
-
...options,
|
|
41
|
-
headers: {
|
|
42
|
-
'Content-Type': 'application/json',
|
|
43
|
-
...options?.headers
|
|
44
|
-
}
|
|
45
|
-
});
|
|
46
|
-
/**
|
|
47
|
-
* Get auth profile
|
|
4
|
+
* Get current user
|
|
48
5
|
*
|
|
49
|
-
* Returns the authenticated user
|
|
50
|
-
*/
|
|
51
|
-
export const getAuthProfile = (options) => (options?.client ?? client).get({
|
|
52
|
-
security: [{ scheme: 'bearer', type: 'http' }, { scheme: 'bearer', type: 'http' }],
|
|
53
|
-
url: '/api/v1/auth/profile',
|
|
54
|
-
...options
|
|
55
|
-
});
|
|
56
|
-
/**
|
|
57
|
-
* Update profile (partial)
|
|
6
|
+
* Returns the authenticated user's active profile and API key metadata.
|
|
58
7
|
*/
|
|
59
|
-
export const
|
|
8
|
+
export const getCurrentUser = (options) => (options?.client ?? client).get({
|
|
60
9
|
security: [{ scheme: 'bearer', type: 'http' }],
|
|
61
|
-
url: '/api/v1/
|
|
10
|
+
url: '/api/v1/user/me',
|
|
62
11
|
...options,
|
|
63
|
-
headers: {
|
|
64
|
-
'Content-Type': 'application/json',
|
|
65
|
-
...options?.headers
|
|
66
|
-
}
|
|
67
12
|
});
|
|
68
13
|
/**
|
|
69
|
-
*
|
|
14
|
+
* Get analytics summary
|
|
70
15
|
*
|
|
71
|
-
*
|
|
16
|
+
* Returns 7-day usage analytics for the authenticated API key.
|
|
72
17
|
*/
|
|
73
|
-
export const
|
|
18
|
+
export const getAnalyticsSummary = (options) => (options?.client ?? client).get({
|
|
74
19
|
security: [{ scheme: 'bearer', type: 'http' }],
|
|
75
|
-
url: '/api/v1/
|
|
20
|
+
url: '/api/v1/analytics/summary',
|
|
76
21
|
...options,
|
|
77
|
-
headers: {
|
|
78
|
-
'Content-Type': 'application/json',
|
|
79
|
-
...options?.headers
|
|
80
|
-
}
|
|
81
|
-
});
|
|
82
|
-
/**
|
|
83
|
-
* Delete account
|
|
84
|
-
*/
|
|
85
|
-
export const deleteAccount = (options) => (options?.client ?? client).delete({
|
|
86
|
-
security: [{ scheme: 'bearer', type: 'http' }],
|
|
87
|
-
url: '/api/v1/auth/account',
|
|
88
|
-
...options
|
|
89
22
|
});
|
|
90
23
|
/**
|
|
91
24
|
* List available profiles
|
|
@@ -95,7 +28,7 @@ export const deleteAccount = (options) => (options?.client ?? client).delete({
|
|
|
95
28
|
export const listProfiles = (options) => (options?.client ?? client).get({
|
|
96
29
|
security: [{ scheme: 'bearer', type: 'http' }],
|
|
97
30
|
url: '/api/v1/profiles/available',
|
|
98
|
-
...options
|
|
31
|
+
...options,
|
|
99
32
|
});
|
|
100
33
|
/**
|
|
101
34
|
* Get active profile
|
|
@@ -105,7 +38,7 @@ export const listProfiles = (options) => (options?.client ?? client).get({
|
|
|
105
38
|
export const getActiveProfile = (options) => (options?.client ?? client).get({
|
|
106
39
|
security: [{ scheme: 'bearer', type: 'http' }],
|
|
107
40
|
url: '/api/v1/profiles/active',
|
|
108
|
-
...options
|
|
41
|
+
...options,
|
|
109
42
|
});
|
|
110
43
|
/**
|
|
111
44
|
* Update a profile
|
|
@@ -116,8 +49,8 @@ export const updateProfile = (options) => (options.client ?? client).put({
|
|
|
116
49
|
...options,
|
|
117
50
|
headers: {
|
|
118
51
|
'Content-Type': 'application/json',
|
|
119
|
-
...options.headers
|
|
120
|
-
}
|
|
52
|
+
...options.headers,
|
|
53
|
+
},
|
|
121
54
|
});
|
|
122
55
|
/**
|
|
123
56
|
* Activate a profile
|
|
@@ -127,7 +60,7 @@ export const updateProfile = (options) => (options.client ?? client).put({
|
|
|
127
60
|
export const activateProfile = (options) => (options.client ?? client).post({
|
|
128
61
|
security: [{ scheme: 'bearer', type: 'http' }],
|
|
129
62
|
url: '/api/v1/profiles/{profileId}/activate',
|
|
130
|
-
...options
|
|
63
|
+
...options,
|
|
131
64
|
});
|
|
132
65
|
/**
|
|
133
66
|
* List groups
|
|
@@ -137,7 +70,7 @@ export const activateProfile = (options) => (options.client ?? client).post({
|
|
|
137
70
|
export const listGroups = (options) => (options?.client ?? client).get({
|
|
138
71
|
security: [{ scheme: 'bearer', type: 'http' }],
|
|
139
72
|
url: '/api/v1/groups',
|
|
140
|
-
...options
|
|
73
|
+
...options,
|
|
141
74
|
});
|
|
142
75
|
/**
|
|
143
76
|
* Get group members
|
|
@@ -147,27 +80,97 @@ export const listGroups = (options) => (options?.client ?? client).get({
|
|
|
147
80
|
export const listGroupMembers = (options) => (options.client ?? client).get({
|
|
148
81
|
security: [{ scheme: 'bearer', type: 'http' }],
|
|
149
82
|
url: '/api/v1/groups/{groupId}/members',
|
|
150
|
-
...options
|
|
83
|
+
...options,
|
|
151
84
|
});
|
|
152
85
|
/**
|
|
153
|
-
*
|
|
86
|
+
* Register a new user
|
|
87
|
+
*/
|
|
88
|
+
export const register = (options) => (options?.client ?? client).post({
|
|
89
|
+
url: '/api/v1/auth/register',
|
|
90
|
+
...options,
|
|
91
|
+
headers: {
|
|
92
|
+
'Content-Type': 'application/json',
|
|
93
|
+
...options?.headers,
|
|
94
|
+
},
|
|
95
|
+
});
|
|
96
|
+
/**
|
|
97
|
+
* Log in
|
|
98
|
+
*/
|
|
99
|
+
export const login = (options) => (options?.client ?? client).post({
|
|
100
|
+
url: '/api/v1/auth/login',
|
|
101
|
+
...options,
|
|
102
|
+
headers: {
|
|
103
|
+
'Content-Type': 'application/json',
|
|
104
|
+
...options?.headers,
|
|
105
|
+
},
|
|
106
|
+
});
|
|
107
|
+
/**
|
|
108
|
+
* Log out
|
|
154
109
|
*
|
|
155
|
-
*
|
|
110
|
+
* Invalidates the current session. Requires Authorization header.
|
|
156
111
|
*/
|
|
157
|
-
export const
|
|
112
|
+
export const logout = (options) => (options?.client ?? client).post({
|
|
158
113
|
security: [{ scheme: 'bearer', type: 'http' }],
|
|
159
|
-
url: '/api/v1/
|
|
160
|
-
...options
|
|
114
|
+
url: '/api/v1/auth/logout',
|
|
115
|
+
...options,
|
|
161
116
|
});
|
|
162
117
|
/**
|
|
163
|
-
*
|
|
118
|
+
* Refresh access token
|
|
119
|
+
*/
|
|
120
|
+
export const refreshToken = (options) => (options?.client ?? client).post({
|
|
121
|
+
url: '/api/v1/auth/token/refresh',
|
|
122
|
+
...options,
|
|
123
|
+
headers: {
|
|
124
|
+
'Content-Type': 'application/json',
|
|
125
|
+
...options?.headers,
|
|
126
|
+
},
|
|
127
|
+
});
|
|
128
|
+
/**
|
|
129
|
+
* Get auth profile
|
|
164
130
|
*
|
|
165
|
-
* Returns
|
|
131
|
+
* Returns the authenticated user identity and API key metadata.
|
|
166
132
|
*/
|
|
167
|
-
export const
|
|
133
|
+
export const getAuthProfile = (options) => (options?.client ?? client).get({
|
|
134
|
+
security: [
|
|
135
|
+
{ scheme: 'bearer', type: 'http' },
|
|
136
|
+
{ scheme: 'bearer', type: 'http' },
|
|
137
|
+
],
|
|
138
|
+
url: '/api/v1/auth/profile',
|
|
139
|
+
...options,
|
|
140
|
+
});
|
|
141
|
+
/**
|
|
142
|
+
* Update profile (partial)
|
|
143
|
+
*/
|
|
144
|
+
export const patchAuthProfile = (options) => (options?.client ?? client).patch({
|
|
168
145
|
security: [{ scheme: 'bearer', type: 'http' }],
|
|
169
|
-
url: '/api/v1/
|
|
170
|
-
...options
|
|
146
|
+
url: '/api/v1/auth/profile',
|
|
147
|
+
...options,
|
|
148
|
+
headers: {
|
|
149
|
+
'Content-Type': 'application/json',
|
|
150
|
+
...options?.headers,
|
|
151
|
+
},
|
|
152
|
+
});
|
|
153
|
+
/**
|
|
154
|
+
* Update profile (full)
|
|
155
|
+
*
|
|
156
|
+
* Superset of PATCH — also accepts preferences and data_retention_days (min 30).
|
|
157
|
+
*/
|
|
158
|
+
export const putAuthProfile = (options) => (options?.client ?? client).put({
|
|
159
|
+
security: [{ scheme: 'bearer', type: 'http' }],
|
|
160
|
+
url: '/api/v1/auth/profile',
|
|
161
|
+
...options,
|
|
162
|
+
headers: {
|
|
163
|
+
'Content-Type': 'application/json',
|
|
164
|
+
...options?.headers,
|
|
165
|
+
},
|
|
166
|
+
});
|
|
167
|
+
/**
|
|
168
|
+
* Delete account
|
|
169
|
+
*/
|
|
170
|
+
export const deleteAccount = (options) => (options?.client ?? client).delete({
|
|
171
|
+
security: [{ scheme: 'bearer', type: 'http' }],
|
|
172
|
+
url: '/api/v1/auth/account',
|
|
173
|
+
...options,
|
|
171
174
|
});
|
|
172
175
|
/**
|
|
173
176
|
* List sessions
|
|
@@ -177,7 +180,7 @@ export const getAnalyticsSummary = (options) => (options?.client ?? client).get(
|
|
|
177
180
|
export const listSessions = (options) => (options?.client ?? client).get({
|
|
178
181
|
security: [{ scheme: 'bearer', type: 'http' }],
|
|
179
182
|
url: '/api/v1/sessions',
|
|
180
|
-
...options
|
|
183
|
+
...options,
|
|
181
184
|
});
|
|
182
185
|
/**
|
|
183
186
|
* List upcoming sessions
|
|
@@ -187,7 +190,7 @@ export const listSessions = (options) => (options?.client ?? client).get({
|
|
|
187
190
|
export const listUpcomingSessions = (options) => (options?.client ?? client).get({
|
|
188
191
|
security: [{ scheme: 'bearer', type: 'http' }],
|
|
189
192
|
url: '/api/v1/sessions/upcoming',
|
|
190
|
-
...options
|
|
193
|
+
...options,
|
|
191
194
|
});
|
|
192
195
|
/**
|
|
193
196
|
* List team members
|
|
@@ -197,7 +200,7 @@ export const listUpcomingSessions = (options) => (options?.client ?? client).get
|
|
|
197
200
|
export const listTeamMembers = (options) => (options?.client ?? client).get({
|
|
198
201
|
security: [{ scheme: 'bearer', type: 'http' }],
|
|
199
202
|
url: '/api/v1/team/members',
|
|
200
|
-
...options
|
|
203
|
+
...options,
|
|
201
204
|
});
|
|
202
205
|
/**
|
|
203
206
|
* Browse marketplace apps
|
|
@@ -207,7 +210,7 @@ export const listTeamMembers = (options) => (options?.client ?? client).get({
|
|
|
207
210
|
export const listMarketplaceApps = (options) => (options?.client ?? client).get({
|
|
208
211
|
security: [{ scheme: 'bearer', type: 'http' }],
|
|
209
212
|
url: '/api/v1/marketplace/apps',
|
|
210
|
-
...options
|
|
213
|
+
...options,
|
|
211
214
|
});
|
|
212
215
|
/**
|
|
213
216
|
* Trending apps
|
|
@@ -217,7 +220,7 @@ export const listMarketplaceApps = (options) => (options?.client ?? client).get(
|
|
|
217
220
|
export const listTrendingApps = (options) => (options?.client ?? client).get({
|
|
218
221
|
security: [{ scheme: 'bearer', type: 'http' }],
|
|
219
222
|
url: '/api/v1/marketplace/trending',
|
|
220
|
-
...options
|
|
223
|
+
...options,
|
|
221
224
|
});
|
|
222
225
|
/**
|
|
223
226
|
* Featured apps
|
|
@@ -227,7 +230,7 @@ export const listTrendingApps = (options) => (options?.client ?? client).get({
|
|
|
227
230
|
export const listFeaturedApps = (options) => (options?.client ?? client).get({
|
|
228
231
|
security: [{ scheme: 'bearer', type: 'http' }],
|
|
229
232
|
url: '/api/v1/marketplace/featured',
|
|
230
|
-
...options
|
|
233
|
+
...options,
|
|
231
234
|
});
|
|
232
235
|
/**
|
|
233
236
|
* List app categories
|
|
@@ -237,7 +240,7 @@ export const listFeaturedApps = (options) => (options?.client ?? client).get({
|
|
|
237
240
|
export const listMarketplaceCategories = (options) => (options?.client ?? client).get({
|
|
238
241
|
security: [{ scheme: 'bearer', type: 'http' }],
|
|
239
242
|
url: '/api/v1/marketplace/categories',
|
|
240
|
-
...options
|
|
243
|
+
...options,
|
|
241
244
|
});
|
|
242
245
|
/**
|
|
243
246
|
* Get app details
|
|
@@ -245,7 +248,7 @@ export const listMarketplaceCategories = (options) => (options?.client ?? client
|
|
|
245
248
|
export const getMarketplaceApp = (options) => (options.client ?? client).get({
|
|
246
249
|
security: [{ scheme: 'bearer', type: 'http' }],
|
|
247
250
|
url: '/api/v1/marketplace/apps/{appId}',
|
|
248
|
-
...options
|
|
251
|
+
...options,
|
|
249
252
|
});
|
|
250
253
|
/**
|
|
251
254
|
* List installed apps
|
|
@@ -255,7 +258,7 @@ export const getMarketplaceApp = (options) => (options.client ?? client).get({
|
|
|
255
258
|
export const listInstalledApps = (options) => (options?.client ?? client).get({
|
|
256
259
|
security: [{ scheme: 'bearer', type: 'http' }],
|
|
257
260
|
url: '/api/v1/marketplace/installed',
|
|
258
|
-
...options
|
|
261
|
+
...options,
|
|
259
262
|
});
|
|
260
263
|
/**
|
|
261
264
|
* Install app
|
|
@@ -266,8 +269,8 @@ export const installMarketplaceApp = (options) => (options.client ?? client).pos
|
|
|
266
269
|
...options,
|
|
267
270
|
headers: {
|
|
268
271
|
'Content-Type': 'application/json',
|
|
269
|
-
...options.headers
|
|
270
|
-
}
|
|
272
|
+
...options.headers,
|
|
273
|
+
},
|
|
271
274
|
});
|
|
272
275
|
/**
|
|
273
276
|
* Uninstall app
|
|
@@ -275,14 +278,17 @@ export const installMarketplaceApp = (options) => (options.client ?? client).pos
|
|
|
275
278
|
export const uninstallMarketplaceApp = (options) => (options.client ?? client).delete({
|
|
276
279
|
security: [{ scheme: 'bearer', type: 'http' }],
|
|
277
280
|
url: '/api/v1/marketplace/uninstall/{appId}',
|
|
278
|
-
...options
|
|
281
|
+
...options,
|
|
279
282
|
});
|
|
280
283
|
/**
|
|
281
284
|
* List marketplace items
|
|
282
285
|
*
|
|
283
286
|
* Public listing of published marketplace items (entry-based). No authentication required.
|
|
284
287
|
*/
|
|
285
|
-
export const listMarketplaceItems = (options) => (options?.client ?? client).get({
|
|
288
|
+
export const listMarketplaceItems = (options) => (options?.client ?? client).get({
|
|
289
|
+
url: '/api/v1/marketplace/items',
|
|
290
|
+
...options,
|
|
291
|
+
});
|
|
286
292
|
/**
|
|
287
293
|
* Get marketplace item
|
|
288
294
|
*
|
|
@@ -299,15 +305,18 @@ export const searchMarketplace = (options) => (options?.client ?? client).post({
|
|
|
299
305
|
...options,
|
|
300
306
|
headers: {
|
|
301
307
|
'Content-Type': 'application/json',
|
|
302
|
-
...options?.headers
|
|
303
|
-
}
|
|
308
|
+
...options?.headers,
|
|
309
|
+
},
|
|
304
310
|
});
|
|
305
311
|
/**
|
|
306
312
|
* Category tree
|
|
307
313
|
*
|
|
308
314
|
* Returns marketplace categories as a hierarchical tree from the collections table. Children are nested category objects of the same shape.
|
|
309
315
|
*/
|
|
310
|
-
export const getCategoryTree = (options) => (options?.client ?? client).get({
|
|
316
|
+
export const getCategoryTree = (options) => (options?.client ?? client).get({
|
|
317
|
+
url: '/api/v1/marketplace/categories/tree',
|
|
318
|
+
...options,
|
|
319
|
+
});
|
|
311
320
|
/**
|
|
312
321
|
* Get category
|
|
313
322
|
*
|
|
@@ -322,7 +331,7 @@ export const getMarketplaceCategory = (options) => (options.client ?? client).ge
|
|
|
322
331
|
export const listDeveloperApps = (options) => (options?.client ?? client).get({
|
|
323
332
|
security: [{ scheme: 'bearer', type: 'http' }],
|
|
324
333
|
url: '/api/v1/developer/apps',
|
|
325
|
-
...options
|
|
334
|
+
...options,
|
|
326
335
|
});
|
|
327
336
|
/**
|
|
328
337
|
* Create app
|
|
@@ -333,8 +342,8 @@ export const createDeveloperApp = (options) => (options?.client ?? client).post(
|
|
|
333
342
|
...options,
|
|
334
343
|
headers: {
|
|
335
344
|
'Content-Type': 'application/json',
|
|
336
|
-
...options?.headers
|
|
337
|
-
}
|
|
345
|
+
...options?.headers,
|
|
346
|
+
},
|
|
338
347
|
});
|
|
339
348
|
/**
|
|
340
349
|
* Delete app
|
|
@@ -344,7 +353,7 @@ export const createDeveloperApp = (options) => (options?.client ?? client).post(
|
|
|
344
353
|
export const deleteDeveloperApp = (options) => (options.client ?? client).delete({
|
|
345
354
|
security: [{ scheme: 'bearer', type: 'http' }],
|
|
346
355
|
url: '/api/v1/developer/apps/{appId}',
|
|
347
|
-
...options
|
|
356
|
+
...options,
|
|
348
357
|
});
|
|
349
358
|
/**
|
|
350
359
|
* Get developer app
|
|
@@ -352,7 +361,7 @@ export const deleteDeveloperApp = (options) => (options.client ?? client).delete
|
|
|
352
361
|
export const getDeveloperApp = (options) => (options.client ?? client).get({
|
|
353
362
|
security: [{ scheme: 'bearer', type: 'http' }],
|
|
354
363
|
url: '/api/v1/developer/apps/{appId}',
|
|
355
|
-
...options
|
|
364
|
+
...options,
|
|
356
365
|
});
|
|
357
366
|
/**
|
|
358
367
|
* Update app
|
|
@@ -363,8 +372,8 @@ export const updateDeveloperApp = (options) => (options.client ?? client).put({
|
|
|
363
372
|
...options,
|
|
364
373
|
headers: {
|
|
365
374
|
'Content-Type': 'application/json',
|
|
366
|
-
...options.headers
|
|
367
|
-
}
|
|
375
|
+
...options.headers,
|
|
376
|
+
},
|
|
368
377
|
});
|
|
369
378
|
/**
|
|
370
379
|
* Submit app for review
|
|
@@ -374,7 +383,7 @@ export const updateDeveloperApp = (options) => (options.client ?? client).put({
|
|
|
374
383
|
export const submitDeveloperApp = (options) => (options.client ?? client).post({
|
|
375
384
|
security: [{ scheme: 'bearer', type: 'http' }],
|
|
376
385
|
url: '/api/v1/developer/apps/{appId}/submit',
|
|
377
|
-
...options
|
|
386
|
+
...options,
|
|
378
387
|
});
|
|
379
388
|
/**
|
|
380
389
|
* Resubmit rejected app
|
|
@@ -387,8 +396,8 @@ export const resubmitDeveloperApp = (options) => (options.client ?? client).post
|
|
|
387
396
|
...options,
|
|
388
397
|
headers: {
|
|
389
398
|
'Content-Type': 'application/json',
|
|
390
|
-
...options.headers
|
|
391
|
-
}
|
|
399
|
+
...options.headers,
|
|
400
|
+
},
|
|
392
401
|
});
|
|
393
402
|
/**
|
|
394
403
|
* List entries
|
|
@@ -398,7 +407,7 @@ export const resubmitDeveloperApp = (options) => (options.client ?? client).post
|
|
|
398
407
|
export const listEntries = (options) => (options?.client ?? client).get({
|
|
399
408
|
security: [{ scheme: 'bearer', type: 'http' }],
|
|
400
409
|
url: '/api/v1/entries',
|
|
401
|
-
...options
|
|
410
|
+
...options,
|
|
402
411
|
});
|
|
403
412
|
/**
|
|
404
413
|
* List templates
|
|
@@ -408,7 +417,7 @@ export const listEntries = (options) => (options?.client ?? client).get({
|
|
|
408
417
|
export const listTemplates = (options) => (options?.client ?? client).get({
|
|
409
418
|
security: [{ scheme: 'bearer', type: 'http' }],
|
|
410
419
|
url: '/api/v1/templates',
|
|
411
|
-
...options
|
|
420
|
+
...options,
|
|
412
421
|
});
|
|
413
422
|
/**
|
|
414
423
|
* Get storage info
|
|
@@ -418,7 +427,7 @@ export const listTemplates = (options) => (options?.client ?? client).get({
|
|
|
418
427
|
export const getStorage = (options) => (options?.client ?? client).get({
|
|
419
428
|
security: [{ scheme: 'bearer', type: 'http' }],
|
|
420
429
|
url: '/api/v1/storage',
|
|
421
|
-
...options
|
|
430
|
+
...options,
|
|
422
431
|
});
|
|
423
432
|
/**
|
|
424
433
|
* Create notification
|
|
@@ -428,14 +437,17 @@ export const getStorage = (options) => (options?.client ?? client).get({
|
|
|
428
437
|
export const createUiNotification = (options) => (options?.client ?? client).post({
|
|
429
438
|
security: [{ scheme: 'bearer', type: 'http' }],
|
|
430
439
|
url: '/api/v1/ui/notifications',
|
|
431
|
-
...options
|
|
440
|
+
...options,
|
|
432
441
|
});
|
|
433
442
|
/**
|
|
434
443
|
* List events
|
|
435
444
|
*
|
|
436
445
|
* Returns active events with optional filtering by category and date range.
|
|
437
446
|
*/
|
|
438
|
-
export const listEvents = (options) => (options?.client ?? client).get({
|
|
447
|
+
export const listEvents = (options) => (options?.client ?? client).get({
|
|
448
|
+
url: '/api/oriva/events',
|
|
449
|
+
...options,
|
|
450
|
+
});
|
|
439
451
|
/**
|
|
440
452
|
* Create event
|
|
441
453
|
*/
|
|
@@ -445,13 +457,16 @@ export const createEvent = (options) => (options?.client ?? client).post({
|
|
|
445
457
|
...options,
|
|
446
458
|
headers: {
|
|
447
459
|
'Content-Type': 'application/json',
|
|
448
|
-
...options?.headers
|
|
449
|
-
}
|
|
460
|
+
...options?.headers,
|
|
461
|
+
},
|
|
450
462
|
});
|
|
451
463
|
/**
|
|
452
464
|
* Get event
|
|
453
465
|
*/
|
|
454
|
-
export const getEvent = (options) => (options.client ?? client).get({
|
|
466
|
+
export const getEvent = (options) => (options.client ?? client).get({
|
|
467
|
+
url: '/api/oriva/events/{eventId}',
|
|
468
|
+
...options,
|
|
469
|
+
});
|
|
455
470
|
/**
|
|
456
471
|
* List Personal Access Tokens
|
|
457
472
|
*
|
|
@@ -460,7 +475,7 @@ export const getEvent = (options) => (options.client ?? client).get({ url: '/api
|
|
|
460
475
|
export const listPersonalAccessTokens = (options) => (options?.client ?? client).get({
|
|
461
476
|
security: [{ scheme: 'bearer', type: 'http' }],
|
|
462
477
|
url: '/api/v1/me/tokens',
|
|
463
|
-
...options
|
|
478
|
+
...options,
|
|
464
479
|
});
|
|
465
480
|
/**
|
|
466
481
|
* Create a Personal Access Token
|
|
@@ -473,8 +488,8 @@ export const createPersonalAccessToken = (options) => (options.client ?? client)
|
|
|
473
488
|
...options,
|
|
474
489
|
headers: {
|
|
475
490
|
'Content-Type': 'application/json',
|
|
476
|
-
...options.headers
|
|
477
|
-
}
|
|
491
|
+
...options.headers,
|
|
492
|
+
},
|
|
478
493
|
});
|
|
479
494
|
/**
|
|
480
495
|
* Revoke a Personal Access Token
|
|
@@ -484,5 +499,5 @@ export const createPersonalAccessToken = (options) => (options.client ?? client)
|
|
|
484
499
|
export const revokePersonalAccessToken = (options) => (options.client ?? client).delete({
|
|
485
500
|
security: [{ scheme: 'bearer', type: 'http' }],
|
|
486
501
|
url: '/api/v1/me/tokens/{id}',
|
|
487
|
-
...options
|
|
502
|
+
...options,
|
|
488
503
|
});
|