@meshery/schemas 1.2.22 → 1.2.23
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/cloudApi.d.mts +1719 -1518
- package/dist/cloudApi.d.ts +1719 -1518
- package/dist/cloudApi.js +1 -1
- package/dist/cloudApi.mjs +1 -1
- package/dist/constructs/v1alpha1/capability/Capability.d.ts +111 -106
- package/dist/constructs/v1alpha1/core/Core.d.ts +734 -822
- package/dist/constructs/v1alpha2/catalog/Catalog.d.ts +40 -45
- package/dist/constructs/v1alpha3/relationship/Relationship.d.ts +1716 -1829
- package/dist/constructs/v1beta1/academy/Academy.d.ts +6648 -6029
- package/dist/constructs/v1beta1/badge/Badge.d.ts +600 -439
- package/dist/constructs/v1beta1/capability/Capability.d.ts +111 -106
- package/dist/constructs/v1beta1/catalog/Catalog.d.ts +40 -45
- package/dist/constructs/v1beta1/category/Category.d.ts +26 -38
- package/dist/constructs/v1beta1/component/Component.d.ts +729 -833
- package/dist/constructs/v1beta1/connection/Connection.d.ts +1357 -1170
- package/dist/constructs/v1beta1/core/Core.d.ts +734 -822
- package/dist/constructs/v1beta1/credential/Credential.d.ts +593 -458
- package/dist/constructs/v1beta1/environment/Environment.d.ts +835 -666
- package/dist/constructs/v1beta1/evaluation/Evaluation.d.ts +5508 -6030
- package/dist/constructs/v1beta1/event/Event.d.ts +898 -527
- package/dist/constructs/v1beta1/feature/Feature.d.ts +287 -249
- package/dist/constructs/v1beta1/invitation/Invitation.d.ts +1244 -877
- package/dist/constructs/v1beta1/key/Key.d.ts +589 -444
- package/dist/constructs/v1beta1/keychain/Keychain.d.ts +796 -575
- package/dist/constructs/v1beta1/model/Model.d.ts +572 -598
- package/dist/constructs/v1beta1/organization/Organization.d.ts +1829 -1410
- package/dist/constructs/v1beta1/pattern/Pattern.d.ts +17093 -17910
- package/dist/constructs/v1beta1/plan/Plan.d.ts +159 -115
- package/dist/constructs/v1beta1/role/Role.d.ts +933 -688
- package/dist/constructs/v1beta1/schedule/Schedule.d.ts +425 -315
- package/dist/constructs/v1beta1/subcategory/Subcategory.d.ts +18 -61
- package/dist/constructs/v1beta1/subscription/Subscription.d.ts +839 -674
- package/dist/constructs/v1beta1/support/Support.d.ts +115 -74
- package/dist/constructs/v1beta1/system/System.d.ts +434 -0
- package/dist/constructs/v1beta1/system/System.js +1 -0
- package/dist/constructs/v1beta1/system/System.mjs +0 -0
- package/dist/constructs/v1beta1/system/SystemSchema.d.ts +2 -0
- package/dist/constructs/v1beta1/system/SystemSchema.js +2 -0
- package/dist/constructs/v1beta1/system/SystemSchema.mjs +2 -0
- package/dist/constructs/v1beta1/team/Team.d.ts +1028 -762
- package/dist/constructs/v1beta1/token/Token.d.ts +612 -475
- package/dist/constructs/v1beta1/user/User.d.ts +1723 -1554
- package/dist/constructs/v1beta1/view/View.d.ts +833 -664
- package/dist/constructs/v1beta1/workspace/Workspace.d.ts +4900 -4695
- package/dist/constructs/v1beta2/academy/Academy.d.ts +7840 -7222
- package/dist/constructs/v1beta2/badge/Badge.d.ts +610 -453
- package/dist/constructs/v1beta2/catalog/Catalog.d.ts +40 -45
- package/dist/constructs/v1beta2/component/Component.d.ts +747 -851
- package/dist/constructs/v1beta2/connection/Connection.d.ts +1376 -1189
- package/dist/constructs/v1beta2/core/Core.d.ts +768 -856
- package/dist/constructs/v1beta2/credential/Credential.d.ts +572 -437
- package/dist/constructs/v1beta2/design/Design.d.ts +17682 -18467
- package/dist/constructs/v1beta2/event/Event.d.ts +946 -575
- package/dist/constructs/v1beta2/invitation/Invitation.d.ts +1268 -901
- package/dist/constructs/v1beta2/key/Key.d.ts +599 -454
- package/dist/constructs/v1beta2/keychain/Keychain.d.ts +806 -585
- package/dist/constructs/v1beta2/model/Model.d.ts +610 -636
- package/dist/constructs/v1beta2/organization/Organization.d.ts +2135 -1724
- package/dist/constructs/v1beta2/plan/Plan.d.ts +169 -128
- package/dist/constructs/v1beta2/relationship/Relationship.d.ts +1842 -2011
- package/dist/constructs/v1beta2/role/Role.d.ts +940 -695
- package/dist/constructs/v1beta2/schedule/Schedule.d.ts +466 -356
- package/dist/constructs/v1beta2/subscription/Subscription.d.ts +866 -701
- package/dist/constructs/v1beta2/team/Team.d.ts +1118 -852
- package/dist/constructs/v1beta2/token/Token.d.ts +616 -479
- package/dist/constructs/v1beta2/user/User.d.ts +1723 -1554
- package/dist/constructs/v1beta2/view/View.d.ts +838 -669
- package/dist/constructs/v1beta3/academy/Academy.d.ts +7836 -7218
- package/dist/constructs/v1beta3/component/Component.d.ts +753 -857
- package/dist/constructs/v1beta3/connection/Connection.d.ts +1447 -1260
- package/dist/constructs/v1beta3/design/Design.d.ts +5727 -5305
- package/dist/constructs/v1beta3/environment/Environment.d.ts +858 -689
- package/dist/constructs/v1beta3/event/Event.d.ts +1041 -666
- package/dist/constructs/v1beta3/filter/Filter.d.ts +1437 -1299
- package/dist/constructs/v1beta3/invitation/Invitation.d.ts +1277 -910
- package/dist/constructs/v1beta3/performance_profile/PerformanceProfile.d.ts +850 -690
- package/dist/constructs/v1beta3/plan/Plan.d.ts +197 -156
- package/dist/constructs/v1beta3/relationship/Relationship.d.ts +1842 -2011
- package/dist/constructs/v1beta3/subscription/Subscription.d.ts +969 -804
- package/dist/constructs/v1beta3/token/Token.d.ts +616 -479
- package/dist/constructs/v1beta3/workspace/Workspace.d.ts +5030 -4822
- package/dist/index.d.mts +5480 -5022
- package/dist/index.d.ts +5480 -5022
- package/dist/mesheryApi.d.mts +1314 -522
- package/dist/mesheryApi.d.ts +1314 -522
- package/dist/mesheryApi.js +1 -1
- package/dist/mesheryApi.mjs +1 -1
- package/package.json +1 -2
|
@@ -4,407 +4,80 @@
|
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
export interface paths {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
};
|
|
15
|
-
"/api/identity/tokens/{tokenId}": {
|
|
16
|
-
/** Retrieves a specific token by its ID. */
|
|
17
|
-
get: operations["getUserTokensById"];
|
|
18
|
-
};
|
|
19
|
-
"/api/identity/tokens/infinite": {
|
|
20
|
-
/** Creates a non-expiring user token for provider admin use cases. */
|
|
21
|
-
get: operations["issueIndefiniteLifetimeToken"];
|
|
22
|
-
};
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
export interface components {
|
|
26
|
-
schemas: {
|
|
27
|
-
/** @description Represents a user-owned API token or OAuth session. */
|
|
28
|
-
UserToken: {
|
|
29
|
-
/**
|
|
30
|
-
* Format: uuid
|
|
31
|
-
* @description Unique identifier for the token.
|
|
32
|
-
*/
|
|
33
|
-
id: string;
|
|
34
|
-
/**
|
|
35
|
-
* Format: uuid
|
|
36
|
-
* @description UUID of the user who owns the token.
|
|
37
|
-
*/
|
|
38
|
-
userId: string;
|
|
39
|
-
/** @description Authentication provider associated with the token. */
|
|
40
|
-
provider: string;
|
|
41
|
-
/** @description Access token value. */
|
|
42
|
-
accessToken?: string;
|
|
43
|
-
/** @description Refresh token value when applicable. */
|
|
44
|
-
refreshToken?: string;
|
|
45
|
-
/** @description Human-readable token name. */
|
|
46
|
-
name?: string;
|
|
47
|
-
/** @description Purpose for which the token was created. */
|
|
48
|
-
purpose?: string;
|
|
49
|
-
/** @description Whether this entry represents an OAuth session. */
|
|
50
|
-
isOauth?: boolean;
|
|
51
|
-
/**
|
|
52
|
-
* Format: date-time
|
|
53
|
-
* @description Timestamp when the token was created.
|
|
54
|
-
*/
|
|
55
|
-
createdAt?: string;
|
|
56
|
-
/**
|
|
57
|
-
* Format: date-time
|
|
58
|
-
* @description Timestamp when the token was last updated.
|
|
59
|
-
*/
|
|
60
|
-
updatedAt?: string;
|
|
61
|
-
};
|
|
62
|
-
/** @description A paginated list of tokens. */
|
|
63
|
-
TokenPage: {
|
|
64
|
-
/** @description Tokens returned on the current page. */
|
|
65
|
-
tokens: {
|
|
66
|
-
/**
|
|
67
|
-
* Format: uuid
|
|
68
|
-
* @description Unique identifier for the token.
|
|
69
|
-
*/
|
|
70
|
-
id: string;
|
|
7
|
+
"/api/identity/tokens": {
|
|
8
|
+
parameters: {
|
|
9
|
+
query?: never;
|
|
10
|
+
header?: never;
|
|
11
|
+
path?: never;
|
|
12
|
+
cookie?: never;
|
|
13
|
+
};
|
|
71
14
|
/**
|
|
72
|
-
*
|
|
73
|
-
* @description
|
|
15
|
+
* Get tokens
|
|
16
|
+
* @description Retrieves tokens associated with the authenticated user.
|
|
74
17
|
*/
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
provider: string;
|
|
78
|
-
/** @description Access token value. */
|
|
79
|
-
accessToken?: string;
|
|
80
|
-
/** @description Refresh token value when applicable. */
|
|
81
|
-
refreshToken?: string;
|
|
82
|
-
/** @description Human-readable token name. */
|
|
83
|
-
name?: string;
|
|
84
|
-
/** @description Purpose for which the token was created. */
|
|
85
|
-
purpose?: string;
|
|
86
|
-
/** @description Whether this entry represents an OAuth session. */
|
|
87
|
-
isOauth?: boolean;
|
|
18
|
+
get: operations["getUserTokens"];
|
|
19
|
+
put?: never;
|
|
88
20
|
/**
|
|
89
|
-
*
|
|
90
|
-
* @description
|
|
21
|
+
* Generate token
|
|
22
|
+
* @description Generates a token for the authenticated user.
|
|
91
23
|
*/
|
|
92
|
-
|
|
24
|
+
post: operations["generateToken"];
|
|
93
25
|
/**
|
|
94
|
-
*
|
|
95
|
-
* @description
|
|
26
|
+
* Delete token
|
|
27
|
+
* @description Deletes a specific token for the authenticated user.
|
|
96
28
|
*/
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
page: number;
|
|
103
|
-
/** @description Number of tokens per page. */
|
|
104
|
-
pageSize: number;
|
|
105
|
-
};
|
|
106
|
-
};
|
|
107
|
-
responses: {
|
|
108
|
-
/** Invalid request body or request param */
|
|
109
|
-
400: {
|
|
110
|
-
content: {
|
|
111
|
-
"text/plain": string;
|
|
112
|
-
};
|
|
113
|
-
};
|
|
114
|
-
/** Expired JWT token used or insufficient privilege */
|
|
115
|
-
401: {
|
|
116
|
-
content: {
|
|
117
|
-
"text/plain": string;
|
|
118
|
-
};
|
|
119
|
-
};
|
|
120
|
-
/** Result not found */
|
|
121
|
-
404: {
|
|
122
|
-
content: {
|
|
123
|
-
"text/plain": string;
|
|
124
|
-
};
|
|
125
|
-
};
|
|
126
|
-
/** Internal server error */
|
|
127
|
-
500: {
|
|
128
|
-
content: {
|
|
129
|
-
"text/plain": string;
|
|
130
|
-
};
|
|
131
|
-
};
|
|
132
|
-
};
|
|
133
|
-
parameters: {
|
|
134
|
-
/** @description Token ID */
|
|
135
|
-
tokenId: string;
|
|
136
|
-
/** @description ID of the token to delete. */
|
|
137
|
-
tokenIdQuery: string;
|
|
138
|
-
/** @description UUID of the user to issue the indefinite token for. */
|
|
139
|
-
userIdQuery: string;
|
|
140
|
-
/** @description Authentication provider to associate with the indefinite token. */
|
|
141
|
-
providerQuery: string;
|
|
142
|
-
/** @description Get responses by page */
|
|
143
|
-
page: string;
|
|
144
|
-
/** @description Get responses by pagesize */
|
|
145
|
-
pagesize: string;
|
|
146
|
-
/** @description Get responses that match search param value */
|
|
147
|
-
search: string;
|
|
148
|
-
/** @description Get ordered responses */
|
|
149
|
-
order: string;
|
|
150
|
-
/** @description Whether to retrieve OAuth-backed sessions instead of API tokens. */
|
|
151
|
-
isOauth: boolean;
|
|
152
|
-
/** @description Name of the token. */
|
|
153
|
-
name: string;
|
|
154
|
-
/** @description Purpose for which the token is generated. */
|
|
155
|
-
purpose: string;
|
|
156
|
-
};
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
export interface operations {
|
|
160
|
-
/** Retrieves tokens associated with the authenticated user. */
|
|
161
|
-
getUserTokens: {
|
|
162
|
-
parameters: {
|
|
163
|
-
query: {
|
|
164
|
-
/** Whether to retrieve OAuth-backed sessions instead of API tokens. */
|
|
165
|
-
isOauth?: boolean;
|
|
166
|
-
/** Get responses by page */
|
|
167
|
-
page?: string;
|
|
168
|
-
/** Get responses by pagesize */
|
|
169
|
-
pagesize?: string;
|
|
170
|
-
/** Get responses that match search param value */
|
|
171
|
-
search?: string;
|
|
172
|
-
/** Get ordered responses */
|
|
173
|
-
order?: string;
|
|
174
|
-
};
|
|
175
|
-
};
|
|
176
|
-
responses: {
|
|
177
|
-
/** Tokens response */
|
|
178
|
-
200: {
|
|
179
|
-
content: {
|
|
180
|
-
"application/json": {
|
|
181
|
-
/** @description Tokens returned on the current page. */
|
|
182
|
-
tokens: {
|
|
183
|
-
/**
|
|
184
|
-
* Format: uuid
|
|
185
|
-
* @description Unique identifier for the token.
|
|
186
|
-
*/
|
|
187
|
-
id: string;
|
|
188
|
-
/**
|
|
189
|
-
* Format: uuid
|
|
190
|
-
* @description UUID of the user who owns the token.
|
|
191
|
-
*/
|
|
192
|
-
userId: string;
|
|
193
|
-
/** @description Authentication provider associated with the token. */
|
|
194
|
-
provider: string;
|
|
195
|
-
/** @description Access token value. */
|
|
196
|
-
accessToken?: string;
|
|
197
|
-
/** @description Refresh token value when applicable. */
|
|
198
|
-
refreshToken?: string;
|
|
199
|
-
/** @description Human-readable token name. */
|
|
200
|
-
name?: string;
|
|
201
|
-
/** @description Purpose for which the token was created. */
|
|
202
|
-
purpose?: string;
|
|
203
|
-
/** @description Whether this entry represents an OAuth session. */
|
|
204
|
-
isOauth?: boolean;
|
|
205
|
-
/**
|
|
206
|
-
* Format: date-time
|
|
207
|
-
* @description Timestamp when the token was created.
|
|
208
|
-
*/
|
|
209
|
-
createdAt?: string;
|
|
210
|
-
/**
|
|
211
|
-
* Format: date-time
|
|
212
|
-
* @description Timestamp when the token was last updated.
|
|
213
|
-
*/
|
|
214
|
-
updatedAt?: string;
|
|
215
|
-
}[];
|
|
216
|
-
/** @description Total number of tokens across all pages. */
|
|
217
|
-
totalCount: number;
|
|
218
|
-
/** @description Current page number (zero-based). */
|
|
219
|
-
page: number;
|
|
220
|
-
/** @description Number of tokens per page. */
|
|
221
|
-
pageSize: number;
|
|
222
|
-
};
|
|
223
|
-
};
|
|
224
|
-
};
|
|
225
|
-
/** Expired JWT token used or insufficient privilege */
|
|
226
|
-
401: {
|
|
227
|
-
content: {
|
|
228
|
-
"text/plain": string;
|
|
229
|
-
};
|
|
230
|
-
};
|
|
231
|
-
/** Internal server error */
|
|
232
|
-
500: {
|
|
233
|
-
content: {
|
|
234
|
-
"text/plain": string;
|
|
235
|
-
};
|
|
236
|
-
};
|
|
237
|
-
};
|
|
238
|
-
};
|
|
239
|
-
/** Generates a token for the authenticated user. */
|
|
240
|
-
generateToken: {
|
|
241
|
-
parameters: {
|
|
242
|
-
query: {
|
|
243
|
-
/** Name of the token. */
|
|
244
|
-
name: string;
|
|
245
|
-
/** Purpose for which the token is generated. */
|
|
246
|
-
purpose?: string;
|
|
247
|
-
};
|
|
29
|
+
delete: operations["deleteUserToken"];
|
|
30
|
+
options?: never;
|
|
31
|
+
head?: never;
|
|
32
|
+
patch?: never;
|
|
33
|
+
trace?: never;
|
|
248
34
|
};
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
tokens: {
|
|
256
|
-
/**
|
|
257
|
-
* Format: uuid
|
|
258
|
-
* @description Unique identifier for the token.
|
|
259
|
-
*/
|
|
260
|
-
id: string;
|
|
261
|
-
/**
|
|
262
|
-
* Format: uuid
|
|
263
|
-
* @description UUID of the user who owns the token.
|
|
264
|
-
*/
|
|
265
|
-
userId: string;
|
|
266
|
-
/** @description Authentication provider associated with the token. */
|
|
267
|
-
provider: string;
|
|
268
|
-
/** @description Access token value. */
|
|
269
|
-
accessToken?: string;
|
|
270
|
-
/** @description Refresh token value when applicable. */
|
|
271
|
-
refreshToken?: string;
|
|
272
|
-
/** @description Human-readable token name. */
|
|
273
|
-
name?: string;
|
|
274
|
-
/** @description Purpose for which the token was created. */
|
|
275
|
-
purpose?: string;
|
|
276
|
-
/** @description Whether this entry represents an OAuth session. */
|
|
277
|
-
isOauth?: boolean;
|
|
278
|
-
/**
|
|
279
|
-
* Format: date-time
|
|
280
|
-
* @description Timestamp when the token was created.
|
|
281
|
-
*/
|
|
282
|
-
createdAt?: string;
|
|
283
|
-
/**
|
|
284
|
-
* Format: date-time
|
|
285
|
-
* @description Timestamp when the token was last updated.
|
|
286
|
-
*/
|
|
287
|
-
updatedAt?: string;
|
|
288
|
-
}[];
|
|
289
|
-
/** @description Total number of tokens across all pages. */
|
|
290
|
-
totalCount: number;
|
|
291
|
-
/** @description Current page number (zero-based). */
|
|
292
|
-
page: number;
|
|
293
|
-
/** @description Number of tokens per page. */
|
|
294
|
-
pageSize: number;
|
|
295
|
-
};
|
|
296
|
-
};
|
|
297
|
-
};
|
|
298
|
-
/** Invalid request body or request param */
|
|
299
|
-
400: {
|
|
300
|
-
content: {
|
|
301
|
-
"text/plain": string;
|
|
302
|
-
};
|
|
303
|
-
};
|
|
304
|
-
/** Expired JWT token used or insufficient privilege */
|
|
305
|
-
401: {
|
|
306
|
-
content: {
|
|
307
|
-
"text/plain": string;
|
|
308
|
-
};
|
|
309
|
-
};
|
|
310
|
-
/** Internal server error */
|
|
311
|
-
500: {
|
|
312
|
-
content: {
|
|
313
|
-
"text/plain": string;
|
|
35
|
+
"/api/identity/tokens/{tokenId}": {
|
|
36
|
+
parameters: {
|
|
37
|
+
query?: never;
|
|
38
|
+
header?: never;
|
|
39
|
+
path?: never;
|
|
40
|
+
cookie?: never;
|
|
314
41
|
};
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
42
|
+
/**
|
|
43
|
+
* Get token by ID
|
|
44
|
+
* @description Retrieves a specific token by its ID.
|
|
45
|
+
*/
|
|
46
|
+
get: operations["getUserTokensById"];
|
|
47
|
+
put?: never;
|
|
48
|
+
post?: never;
|
|
49
|
+
delete?: never;
|
|
50
|
+
options?: never;
|
|
51
|
+
head?: never;
|
|
52
|
+
patch?: never;
|
|
53
|
+
trace?: never;
|
|
325
54
|
};
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
tokens: {
|
|
333
|
-
/**
|
|
334
|
-
* Format: uuid
|
|
335
|
-
* @description Unique identifier for the token.
|
|
336
|
-
*/
|
|
337
|
-
id: string;
|
|
338
|
-
/**
|
|
339
|
-
* Format: uuid
|
|
340
|
-
* @description UUID of the user who owns the token.
|
|
341
|
-
*/
|
|
342
|
-
userId: string;
|
|
343
|
-
/** @description Authentication provider associated with the token. */
|
|
344
|
-
provider: string;
|
|
345
|
-
/** @description Access token value. */
|
|
346
|
-
accessToken?: string;
|
|
347
|
-
/** @description Refresh token value when applicable. */
|
|
348
|
-
refreshToken?: string;
|
|
349
|
-
/** @description Human-readable token name. */
|
|
350
|
-
name?: string;
|
|
351
|
-
/** @description Purpose for which the token was created. */
|
|
352
|
-
purpose?: string;
|
|
353
|
-
/** @description Whether this entry represents an OAuth session. */
|
|
354
|
-
isOauth?: boolean;
|
|
355
|
-
/**
|
|
356
|
-
* Format: date-time
|
|
357
|
-
* @description Timestamp when the token was created.
|
|
358
|
-
*/
|
|
359
|
-
createdAt?: string;
|
|
360
|
-
/**
|
|
361
|
-
* Format: date-time
|
|
362
|
-
* @description Timestamp when the token was last updated.
|
|
363
|
-
*/
|
|
364
|
-
updatedAt?: string;
|
|
365
|
-
}[];
|
|
366
|
-
/** @description Total number of tokens across all pages. */
|
|
367
|
-
totalCount: number;
|
|
368
|
-
/** @description Current page number (zero-based). */
|
|
369
|
-
page: number;
|
|
370
|
-
/** @description Number of tokens per page. */
|
|
371
|
-
pageSize: number;
|
|
372
|
-
};
|
|
373
|
-
};
|
|
374
|
-
};
|
|
375
|
-
/** Invalid request body or request param */
|
|
376
|
-
400: {
|
|
377
|
-
content: {
|
|
378
|
-
"text/plain": string;
|
|
55
|
+
"/api/identity/tokens/infinite": {
|
|
56
|
+
parameters: {
|
|
57
|
+
query?: never;
|
|
58
|
+
header?: never;
|
|
59
|
+
path?: never;
|
|
60
|
+
cookie?: never;
|
|
379
61
|
};
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
};
|
|
393
|
-
};
|
|
394
|
-
};
|
|
395
|
-
/** Retrieves a specific token by its ID. */
|
|
396
|
-
getUserTokensById: {
|
|
397
|
-
parameters: {
|
|
398
|
-
path: {
|
|
399
|
-
/** Token ID */
|
|
400
|
-
tokenId: string;
|
|
401
|
-
};
|
|
62
|
+
/**
|
|
63
|
+
* Issue indefinite lifetime token
|
|
64
|
+
* @description Creates a non-expiring user token for provider admin use cases.
|
|
65
|
+
*/
|
|
66
|
+
get: operations["issueIndefiniteLifetimeToken"];
|
|
67
|
+
put?: never;
|
|
68
|
+
post?: never;
|
|
69
|
+
delete?: never;
|
|
70
|
+
options?: never;
|
|
71
|
+
head?: never;
|
|
72
|
+
patch?: never;
|
|
73
|
+
trace?: never;
|
|
402
74
|
};
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
75
|
+
}
|
|
76
|
+
export type webhooks = Record<string, never>;
|
|
77
|
+
export interface components {
|
|
78
|
+
schemas: {
|
|
79
|
+
/** @description Represents a user-owned API token or OAuth session. */
|
|
80
|
+
UserToken: {
|
|
408
81
|
/**
|
|
409
82
|
* Format: uuid
|
|
410
83
|
* @description Unique identifier for the token.
|
|
@@ -437,78 +110,43 @@ export interface operations {
|
|
|
437
110
|
* @description Timestamp when the token was last updated.
|
|
438
111
|
*/
|
|
439
112
|
updatedAt?: string;
|
|
440
|
-
};
|
|
441
113
|
};
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
401: {
|
|
445
|
-
content: {
|
|
446
|
-
"text/plain": string;
|
|
447
|
-
};
|
|
448
|
-
};
|
|
449
|
-
/** Result not found */
|
|
450
|
-
404: {
|
|
451
|
-
content: {
|
|
452
|
-
"text/plain": string;
|
|
453
|
-
};
|
|
454
|
-
};
|
|
455
|
-
/** Internal server error */
|
|
456
|
-
500: {
|
|
457
|
-
content: {
|
|
458
|
-
"text/plain": string;
|
|
459
|
-
};
|
|
460
|
-
};
|
|
461
|
-
};
|
|
462
|
-
};
|
|
463
|
-
/** Creates a non-expiring user token for provider admin use cases. */
|
|
464
|
-
issueIndefiniteLifetimeToken: {
|
|
465
|
-
parameters: {
|
|
466
|
-
query: {
|
|
467
|
-
/** UUID of the user to issue the indefinite token for. */
|
|
468
|
-
userId: string;
|
|
469
|
-
/** Authentication provider to associate with the indefinite token. */
|
|
470
|
-
provider: string;
|
|
471
|
-
};
|
|
472
|
-
};
|
|
473
|
-
responses: {
|
|
474
|
-
/** Token generated */
|
|
475
|
-
200: {
|
|
476
|
-
content: {
|
|
477
|
-
"application/json": {
|
|
114
|
+
/** @description A paginated list of tokens. */
|
|
115
|
+
TokenPage: {
|
|
478
116
|
/** @description Tokens returned on the current page. */
|
|
479
117
|
tokens: {
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
118
|
+
/**
|
|
119
|
+
* Format: uuid
|
|
120
|
+
* @description Unique identifier for the token.
|
|
121
|
+
*/
|
|
122
|
+
id: string;
|
|
123
|
+
/**
|
|
124
|
+
* Format: uuid
|
|
125
|
+
* @description UUID of the user who owns the token.
|
|
126
|
+
*/
|
|
127
|
+
userId: string;
|
|
128
|
+
/** @description Authentication provider associated with the token. */
|
|
129
|
+
provider: string;
|
|
130
|
+
/** @description Access token value. */
|
|
131
|
+
accessToken?: string;
|
|
132
|
+
/** @description Refresh token value when applicable. */
|
|
133
|
+
refreshToken?: string;
|
|
134
|
+
/** @description Human-readable token name. */
|
|
135
|
+
name?: string;
|
|
136
|
+
/** @description Purpose for which the token was created. */
|
|
137
|
+
purpose?: string;
|
|
138
|
+
/** @description Whether this entry represents an OAuth session. */
|
|
139
|
+
isOauth?: boolean;
|
|
140
|
+
/**
|
|
141
|
+
* Format: date-time
|
|
142
|
+
* @description Timestamp when the token was created.
|
|
143
|
+
*/
|
|
144
|
+
createdAt?: string;
|
|
145
|
+
/**
|
|
146
|
+
* Format: date-time
|
|
147
|
+
* @description Timestamp when the token was last updated.
|
|
148
|
+
*/
|
|
149
|
+
updatedAt?: string;
|
|
512
150
|
}[];
|
|
513
151
|
/** @description Total number of tokens across all pages. */
|
|
514
152
|
totalCount: number;
|
|
@@ -516,29 +154,528 @@ export interface operations {
|
|
|
516
154
|
page: number;
|
|
517
155
|
/** @description Number of tokens per page. */
|
|
518
156
|
pageSize: number;
|
|
519
|
-
};
|
|
520
157
|
};
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
158
|
+
};
|
|
159
|
+
responses: {
|
|
160
|
+
/** @description Invalid request body or request param */
|
|
161
|
+
400: {
|
|
162
|
+
headers: {
|
|
163
|
+
[name: string]: unknown;
|
|
164
|
+
};
|
|
165
|
+
content: {
|
|
166
|
+
"text/plain": string;
|
|
167
|
+
};
|
|
168
|
+
};
|
|
169
|
+
/** @description Expired JWT token used or insufficient privilege */
|
|
170
|
+
401: {
|
|
171
|
+
headers: {
|
|
172
|
+
[name: string]: unknown;
|
|
173
|
+
};
|
|
174
|
+
content: {
|
|
175
|
+
"text/plain": string;
|
|
176
|
+
};
|
|
526
177
|
};
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
178
|
+
/** @description Result not found */
|
|
179
|
+
404: {
|
|
180
|
+
headers: {
|
|
181
|
+
[name: string]: unknown;
|
|
182
|
+
};
|
|
183
|
+
content: {
|
|
184
|
+
"text/plain": string;
|
|
185
|
+
};
|
|
532
186
|
};
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
187
|
+
/** @description Internal server error */
|
|
188
|
+
500: {
|
|
189
|
+
headers: {
|
|
190
|
+
[name: string]: unknown;
|
|
191
|
+
};
|
|
192
|
+
content: {
|
|
193
|
+
"text/plain": string;
|
|
194
|
+
};
|
|
195
|
+
};
|
|
196
|
+
};
|
|
197
|
+
parameters: {
|
|
198
|
+
/** @description Token ID */
|
|
199
|
+
tokenId: string;
|
|
200
|
+
/** @description ID of the token to delete. */
|
|
201
|
+
tokenIdQuery: string;
|
|
202
|
+
/** @description UUID of the user to issue the indefinite token for. */
|
|
203
|
+
userIdQuery: string;
|
|
204
|
+
/** @description Authentication provider to associate with the indefinite token. */
|
|
205
|
+
providerQuery: string;
|
|
206
|
+
/** @description Get responses by page */
|
|
207
|
+
page: string;
|
|
208
|
+
/** @description Get responses by pagesize */
|
|
209
|
+
pagesize: string;
|
|
210
|
+
/** @description Get responses that match search param value */
|
|
211
|
+
search: string;
|
|
212
|
+
/** @description Get ordered responses */
|
|
213
|
+
order: string;
|
|
214
|
+
/** @description Whether to retrieve OAuth-backed sessions instead of API tokens. */
|
|
215
|
+
isOauth: boolean;
|
|
216
|
+
/** @description Name of the token. */
|
|
217
|
+
name: string;
|
|
218
|
+
/** @description Purpose for which the token is generated. */
|
|
219
|
+
purpose: string;
|
|
220
|
+
};
|
|
221
|
+
requestBodies: never;
|
|
222
|
+
headers: never;
|
|
223
|
+
pathItems: never;
|
|
224
|
+
}
|
|
225
|
+
export type $defs = Record<string, never>;
|
|
226
|
+
export interface operations {
|
|
227
|
+
getUserTokens: {
|
|
228
|
+
parameters: {
|
|
229
|
+
query?: {
|
|
230
|
+
/** @description Whether to retrieve OAuth-backed sessions instead of API tokens. */
|
|
231
|
+
isOauth?: boolean;
|
|
232
|
+
/** @description Get responses by page */
|
|
233
|
+
page?: string;
|
|
234
|
+
/** @description Get responses by pagesize */
|
|
235
|
+
pagesize?: string;
|
|
236
|
+
/** @description Get responses that match search param value */
|
|
237
|
+
search?: string;
|
|
238
|
+
/** @description Get ordered responses */
|
|
239
|
+
order?: string;
|
|
240
|
+
};
|
|
241
|
+
header?: never;
|
|
242
|
+
path?: never;
|
|
243
|
+
cookie?: never;
|
|
244
|
+
};
|
|
245
|
+
requestBody?: never;
|
|
246
|
+
responses: {
|
|
247
|
+
/** @description Tokens response */
|
|
248
|
+
200: {
|
|
249
|
+
headers: {
|
|
250
|
+
[name: string]: unknown;
|
|
251
|
+
};
|
|
252
|
+
content: {
|
|
253
|
+
"application/json": {
|
|
254
|
+
/** @description Tokens returned on the current page. */
|
|
255
|
+
tokens: {
|
|
256
|
+
/**
|
|
257
|
+
* Format: uuid
|
|
258
|
+
* @description Unique identifier for the token.
|
|
259
|
+
*/
|
|
260
|
+
id: string;
|
|
261
|
+
/**
|
|
262
|
+
* Format: uuid
|
|
263
|
+
* @description UUID of the user who owns the token.
|
|
264
|
+
*/
|
|
265
|
+
userId: string;
|
|
266
|
+
/** @description Authentication provider associated with the token. */
|
|
267
|
+
provider: string;
|
|
268
|
+
/** @description Access token value. */
|
|
269
|
+
accessToken?: string;
|
|
270
|
+
/** @description Refresh token value when applicable. */
|
|
271
|
+
refreshToken?: string;
|
|
272
|
+
/** @description Human-readable token name. */
|
|
273
|
+
name?: string;
|
|
274
|
+
/** @description Purpose for which the token was created. */
|
|
275
|
+
purpose?: string;
|
|
276
|
+
/** @description Whether this entry represents an OAuth session. */
|
|
277
|
+
isOauth?: boolean;
|
|
278
|
+
/**
|
|
279
|
+
* Format: date-time
|
|
280
|
+
* @description Timestamp when the token was created.
|
|
281
|
+
*/
|
|
282
|
+
createdAt?: string;
|
|
283
|
+
/**
|
|
284
|
+
* Format: date-time
|
|
285
|
+
* @description Timestamp when the token was last updated.
|
|
286
|
+
*/
|
|
287
|
+
updatedAt?: string;
|
|
288
|
+
}[];
|
|
289
|
+
/** @description Total number of tokens across all pages. */
|
|
290
|
+
totalCount: number;
|
|
291
|
+
/** @description Current page number (zero-based). */
|
|
292
|
+
page: number;
|
|
293
|
+
/** @description Number of tokens per page. */
|
|
294
|
+
pageSize: number;
|
|
295
|
+
};
|
|
296
|
+
};
|
|
297
|
+
};
|
|
298
|
+
/** @description Expired JWT token used or insufficient privilege */
|
|
299
|
+
401: {
|
|
300
|
+
headers: {
|
|
301
|
+
[name: string]: unknown;
|
|
302
|
+
};
|
|
303
|
+
content: {
|
|
304
|
+
"text/plain": string;
|
|
305
|
+
};
|
|
306
|
+
};
|
|
307
|
+
/** @description Internal server error */
|
|
308
|
+
500: {
|
|
309
|
+
headers: {
|
|
310
|
+
[name: string]: unknown;
|
|
311
|
+
};
|
|
312
|
+
content: {
|
|
313
|
+
"text/plain": string;
|
|
314
|
+
};
|
|
315
|
+
};
|
|
316
|
+
};
|
|
317
|
+
};
|
|
318
|
+
generateToken: {
|
|
319
|
+
parameters: {
|
|
320
|
+
query: {
|
|
321
|
+
/** @description Name of the token. */
|
|
322
|
+
name: string;
|
|
323
|
+
/** @description Purpose for which the token is generated. */
|
|
324
|
+
purpose?: string;
|
|
325
|
+
};
|
|
326
|
+
header?: never;
|
|
327
|
+
path?: never;
|
|
328
|
+
cookie?: never;
|
|
329
|
+
};
|
|
330
|
+
requestBody?: never;
|
|
331
|
+
responses: {
|
|
332
|
+
/** @description Token generated */
|
|
333
|
+
201: {
|
|
334
|
+
headers: {
|
|
335
|
+
[name: string]: unknown;
|
|
336
|
+
};
|
|
337
|
+
content: {
|
|
338
|
+
"application/json": {
|
|
339
|
+
/** @description Tokens returned on the current page. */
|
|
340
|
+
tokens: {
|
|
341
|
+
/**
|
|
342
|
+
* Format: uuid
|
|
343
|
+
* @description Unique identifier for the token.
|
|
344
|
+
*/
|
|
345
|
+
id: string;
|
|
346
|
+
/**
|
|
347
|
+
* Format: uuid
|
|
348
|
+
* @description UUID of the user who owns the token.
|
|
349
|
+
*/
|
|
350
|
+
userId: string;
|
|
351
|
+
/** @description Authentication provider associated with the token. */
|
|
352
|
+
provider: string;
|
|
353
|
+
/** @description Access token value. */
|
|
354
|
+
accessToken?: string;
|
|
355
|
+
/** @description Refresh token value when applicable. */
|
|
356
|
+
refreshToken?: string;
|
|
357
|
+
/** @description Human-readable token name. */
|
|
358
|
+
name?: string;
|
|
359
|
+
/** @description Purpose for which the token was created. */
|
|
360
|
+
purpose?: string;
|
|
361
|
+
/** @description Whether this entry represents an OAuth session. */
|
|
362
|
+
isOauth?: boolean;
|
|
363
|
+
/**
|
|
364
|
+
* Format: date-time
|
|
365
|
+
* @description Timestamp when the token was created.
|
|
366
|
+
*/
|
|
367
|
+
createdAt?: string;
|
|
368
|
+
/**
|
|
369
|
+
* Format: date-time
|
|
370
|
+
* @description Timestamp when the token was last updated.
|
|
371
|
+
*/
|
|
372
|
+
updatedAt?: string;
|
|
373
|
+
}[];
|
|
374
|
+
/** @description Total number of tokens across all pages. */
|
|
375
|
+
totalCount: number;
|
|
376
|
+
/** @description Current page number (zero-based). */
|
|
377
|
+
page: number;
|
|
378
|
+
/** @description Number of tokens per page. */
|
|
379
|
+
pageSize: number;
|
|
380
|
+
};
|
|
381
|
+
};
|
|
382
|
+
};
|
|
383
|
+
/** @description Invalid request body or request param */
|
|
384
|
+
400: {
|
|
385
|
+
headers: {
|
|
386
|
+
[name: string]: unknown;
|
|
387
|
+
};
|
|
388
|
+
content: {
|
|
389
|
+
"text/plain": string;
|
|
390
|
+
};
|
|
391
|
+
};
|
|
392
|
+
/** @description Expired JWT token used or insufficient privilege */
|
|
393
|
+
401: {
|
|
394
|
+
headers: {
|
|
395
|
+
[name: string]: unknown;
|
|
396
|
+
};
|
|
397
|
+
content: {
|
|
398
|
+
"text/plain": string;
|
|
399
|
+
};
|
|
400
|
+
};
|
|
401
|
+
/** @description Internal server error */
|
|
402
|
+
500: {
|
|
403
|
+
headers: {
|
|
404
|
+
[name: string]: unknown;
|
|
405
|
+
};
|
|
406
|
+
content: {
|
|
407
|
+
"text/plain": string;
|
|
408
|
+
};
|
|
409
|
+
};
|
|
410
|
+
};
|
|
411
|
+
};
|
|
412
|
+
deleteUserToken: {
|
|
413
|
+
parameters: {
|
|
414
|
+
query: {
|
|
415
|
+
/** @description ID of the token to delete. */
|
|
416
|
+
tokenId: string;
|
|
417
|
+
};
|
|
418
|
+
header?: never;
|
|
419
|
+
path?: never;
|
|
420
|
+
cookie?: never;
|
|
421
|
+
};
|
|
422
|
+
requestBody?: never;
|
|
423
|
+
responses: {
|
|
424
|
+
/** @description Token deleted */
|
|
425
|
+
200: {
|
|
426
|
+
headers: {
|
|
427
|
+
[name: string]: unknown;
|
|
428
|
+
};
|
|
429
|
+
content: {
|
|
430
|
+
"application/json": {
|
|
431
|
+
/** @description Tokens returned on the current page. */
|
|
432
|
+
tokens: {
|
|
433
|
+
/**
|
|
434
|
+
* Format: uuid
|
|
435
|
+
* @description Unique identifier for the token.
|
|
436
|
+
*/
|
|
437
|
+
id: string;
|
|
438
|
+
/**
|
|
439
|
+
* Format: uuid
|
|
440
|
+
* @description UUID of the user who owns the token.
|
|
441
|
+
*/
|
|
442
|
+
userId: string;
|
|
443
|
+
/** @description Authentication provider associated with the token. */
|
|
444
|
+
provider: string;
|
|
445
|
+
/** @description Access token value. */
|
|
446
|
+
accessToken?: string;
|
|
447
|
+
/** @description Refresh token value when applicable. */
|
|
448
|
+
refreshToken?: string;
|
|
449
|
+
/** @description Human-readable token name. */
|
|
450
|
+
name?: string;
|
|
451
|
+
/** @description Purpose for which the token was created. */
|
|
452
|
+
purpose?: string;
|
|
453
|
+
/** @description Whether this entry represents an OAuth session. */
|
|
454
|
+
isOauth?: boolean;
|
|
455
|
+
/**
|
|
456
|
+
* Format: date-time
|
|
457
|
+
* @description Timestamp when the token was created.
|
|
458
|
+
*/
|
|
459
|
+
createdAt?: string;
|
|
460
|
+
/**
|
|
461
|
+
* Format: date-time
|
|
462
|
+
* @description Timestamp when the token was last updated.
|
|
463
|
+
*/
|
|
464
|
+
updatedAt?: string;
|
|
465
|
+
}[];
|
|
466
|
+
/** @description Total number of tokens across all pages. */
|
|
467
|
+
totalCount: number;
|
|
468
|
+
/** @description Current page number (zero-based). */
|
|
469
|
+
page: number;
|
|
470
|
+
/** @description Number of tokens per page. */
|
|
471
|
+
pageSize: number;
|
|
472
|
+
};
|
|
473
|
+
};
|
|
474
|
+
};
|
|
475
|
+
/** @description Invalid request body or request param */
|
|
476
|
+
400: {
|
|
477
|
+
headers: {
|
|
478
|
+
[name: string]: unknown;
|
|
479
|
+
};
|
|
480
|
+
content: {
|
|
481
|
+
"text/plain": string;
|
|
482
|
+
};
|
|
483
|
+
};
|
|
484
|
+
/** @description Expired JWT token used or insufficient privilege */
|
|
485
|
+
401: {
|
|
486
|
+
headers: {
|
|
487
|
+
[name: string]: unknown;
|
|
488
|
+
};
|
|
489
|
+
content: {
|
|
490
|
+
"text/plain": string;
|
|
491
|
+
};
|
|
492
|
+
};
|
|
493
|
+
/** @description Internal server error */
|
|
494
|
+
500: {
|
|
495
|
+
headers: {
|
|
496
|
+
[name: string]: unknown;
|
|
497
|
+
};
|
|
498
|
+
content: {
|
|
499
|
+
"text/plain": string;
|
|
500
|
+
};
|
|
501
|
+
};
|
|
502
|
+
};
|
|
503
|
+
};
|
|
504
|
+
getUserTokensById: {
|
|
505
|
+
parameters: {
|
|
506
|
+
query?: never;
|
|
507
|
+
header?: never;
|
|
508
|
+
path: {
|
|
509
|
+
/** @description Token ID */
|
|
510
|
+
tokenId: string;
|
|
511
|
+
};
|
|
512
|
+
cookie?: never;
|
|
513
|
+
};
|
|
514
|
+
requestBody?: never;
|
|
515
|
+
responses: {
|
|
516
|
+
/** @description Token response */
|
|
517
|
+
200: {
|
|
518
|
+
headers: {
|
|
519
|
+
[name: string]: unknown;
|
|
520
|
+
};
|
|
521
|
+
content: {
|
|
522
|
+
"application/json": {
|
|
523
|
+
/**
|
|
524
|
+
* Format: uuid
|
|
525
|
+
* @description Unique identifier for the token.
|
|
526
|
+
*/
|
|
527
|
+
id: string;
|
|
528
|
+
/**
|
|
529
|
+
* Format: uuid
|
|
530
|
+
* @description UUID of the user who owns the token.
|
|
531
|
+
*/
|
|
532
|
+
userId: string;
|
|
533
|
+
/** @description Authentication provider associated with the token. */
|
|
534
|
+
provider: string;
|
|
535
|
+
/** @description Access token value. */
|
|
536
|
+
accessToken?: string;
|
|
537
|
+
/** @description Refresh token value when applicable. */
|
|
538
|
+
refreshToken?: string;
|
|
539
|
+
/** @description Human-readable token name. */
|
|
540
|
+
name?: string;
|
|
541
|
+
/** @description Purpose for which the token was created. */
|
|
542
|
+
purpose?: string;
|
|
543
|
+
/** @description Whether this entry represents an OAuth session. */
|
|
544
|
+
isOauth?: boolean;
|
|
545
|
+
/**
|
|
546
|
+
* Format: date-time
|
|
547
|
+
* @description Timestamp when the token was created.
|
|
548
|
+
*/
|
|
549
|
+
createdAt?: string;
|
|
550
|
+
/**
|
|
551
|
+
* Format: date-time
|
|
552
|
+
* @description Timestamp when the token was last updated.
|
|
553
|
+
*/
|
|
554
|
+
updatedAt?: string;
|
|
555
|
+
};
|
|
556
|
+
};
|
|
557
|
+
};
|
|
558
|
+
/** @description Expired JWT token used or insufficient privilege */
|
|
559
|
+
401: {
|
|
560
|
+
headers: {
|
|
561
|
+
[name: string]: unknown;
|
|
562
|
+
};
|
|
563
|
+
content: {
|
|
564
|
+
"text/plain": string;
|
|
565
|
+
};
|
|
566
|
+
};
|
|
567
|
+
/** @description Result not found */
|
|
568
|
+
404: {
|
|
569
|
+
headers: {
|
|
570
|
+
[name: string]: unknown;
|
|
571
|
+
};
|
|
572
|
+
content: {
|
|
573
|
+
"text/plain": string;
|
|
574
|
+
};
|
|
575
|
+
};
|
|
576
|
+
/** @description Internal server error */
|
|
577
|
+
500: {
|
|
578
|
+
headers: {
|
|
579
|
+
[name: string]: unknown;
|
|
580
|
+
};
|
|
581
|
+
content: {
|
|
582
|
+
"text/plain": string;
|
|
583
|
+
};
|
|
584
|
+
};
|
|
585
|
+
};
|
|
586
|
+
};
|
|
587
|
+
issueIndefiniteLifetimeToken: {
|
|
588
|
+
parameters: {
|
|
589
|
+
query: {
|
|
590
|
+
/** @description UUID of the user to issue the indefinite token for. */
|
|
591
|
+
userId: string;
|
|
592
|
+
/** @description Authentication provider to associate with the indefinite token. */
|
|
593
|
+
provider: string;
|
|
594
|
+
};
|
|
595
|
+
header?: never;
|
|
596
|
+
path?: never;
|
|
597
|
+
cookie?: never;
|
|
598
|
+
};
|
|
599
|
+
requestBody?: never;
|
|
600
|
+
responses: {
|
|
601
|
+
/** @description Token generated */
|
|
602
|
+
200: {
|
|
603
|
+
headers: {
|
|
604
|
+
[name: string]: unknown;
|
|
605
|
+
};
|
|
606
|
+
content: {
|
|
607
|
+
"application/json": {
|
|
608
|
+
/** @description Tokens returned on the current page. */
|
|
609
|
+
tokens: {
|
|
610
|
+
/**
|
|
611
|
+
* Format: uuid
|
|
612
|
+
* @description Unique identifier for the token.
|
|
613
|
+
*/
|
|
614
|
+
id: string;
|
|
615
|
+
/**
|
|
616
|
+
* Format: uuid
|
|
617
|
+
* @description UUID of the user who owns the token.
|
|
618
|
+
*/
|
|
619
|
+
userId: string;
|
|
620
|
+
/** @description Authentication provider associated with the token. */
|
|
621
|
+
provider: string;
|
|
622
|
+
/** @description Access token value. */
|
|
623
|
+
accessToken?: string;
|
|
624
|
+
/** @description Refresh token value when applicable. */
|
|
625
|
+
refreshToken?: string;
|
|
626
|
+
/** @description Human-readable token name. */
|
|
627
|
+
name?: string;
|
|
628
|
+
/** @description Purpose for which the token was created. */
|
|
629
|
+
purpose?: string;
|
|
630
|
+
/** @description Whether this entry represents an OAuth session. */
|
|
631
|
+
isOauth?: boolean;
|
|
632
|
+
/**
|
|
633
|
+
* Format: date-time
|
|
634
|
+
* @description Timestamp when the token was created.
|
|
635
|
+
*/
|
|
636
|
+
createdAt?: string;
|
|
637
|
+
/**
|
|
638
|
+
* Format: date-time
|
|
639
|
+
* @description Timestamp when the token was last updated.
|
|
640
|
+
*/
|
|
641
|
+
updatedAt?: string;
|
|
642
|
+
}[];
|
|
643
|
+
/** @description Total number of tokens across all pages. */
|
|
644
|
+
totalCount: number;
|
|
645
|
+
/** @description Current page number (zero-based). */
|
|
646
|
+
page: number;
|
|
647
|
+
/** @description Number of tokens per page. */
|
|
648
|
+
pageSize: number;
|
|
649
|
+
};
|
|
650
|
+
};
|
|
651
|
+
};
|
|
652
|
+
/** @description Invalid request body or request param */
|
|
653
|
+
400: {
|
|
654
|
+
headers: {
|
|
655
|
+
[name: string]: unknown;
|
|
656
|
+
};
|
|
657
|
+
content: {
|
|
658
|
+
"text/plain": string;
|
|
659
|
+
};
|
|
660
|
+
};
|
|
661
|
+
/** @description Expired JWT token used or insufficient privilege */
|
|
662
|
+
401: {
|
|
663
|
+
headers: {
|
|
664
|
+
[name: string]: unknown;
|
|
665
|
+
};
|
|
666
|
+
content: {
|
|
667
|
+
"text/plain": string;
|
|
668
|
+
};
|
|
669
|
+
};
|
|
670
|
+
/** @description Internal server error */
|
|
671
|
+
500: {
|
|
672
|
+
headers: {
|
|
673
|
+
[name: string]: unknown;
|
|
674
|
+
};
|
|
675
|
+
content: {
|
|
676
|
+
"text/plain": string;
|
|
677
|
+
};
|
|
678
|
+
};
|
|
538
679
|
};
|
|
539
|
-
};
|
|
540
680
|
};
|
|
541
|
-
};
|
|
542
681
|
}
|
|
543
|
-
|
|
544
|
-
export interface external {}
|