@meshery/schemas 1.3.8 → 1.4.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/cloudApi.d.mts +4154 -1704
- package/dist/cloudApi.d.ts +4154 -1704
- package/dist/cloudApi.js +1 -1
- package/dist/cloudApi.mjs +1 -1
- package/dist/constructs/v1alpha1/capability/Capability.d.ts +106 -111
- package/dist/constructs/v1alpha1/core/Core.d.ts +822 -734
- package/dist/constructs/v1alpha2/catalog/Catalog.d.ts +45 -40
- package/dist/constructs/v1alpha3/relationship/Relationship.d.ts +1829 -1716
- package/dist/constructs/v1beta1/academy/Academy.d.ts +6023 -6642
- package/dist/constructs/v1beta1/badge/Badge.d.ts +439 -600
- package/dist/constructs/v1beta1/capability/Capability.d.ts +106 -111
- package/dist/constructs/v1beta1/catalog/Catalog.d.ts +45 -40
- package/dist/constructs/v1beta1/category/Category.d.ts +38 -26
- package/dist/constructs/v1beta1/component/Component.d.ts +833 -729
- package/dist/constructs/v1beta1/connection/Connection.d.ts +1170 -1357
- package/dist/constructs/v1beta1/core/Core.d.ts +822 -734
- package/dist/constructs/v1beta1/credential/Credential.d.ts +458 -593
- package/dist/constructs/v1beta1/environment/Environment.d.ts +666 -835
- package/dist/constructs/v1beta1/evaluation/Evaluation.d.ts +6142 -5619
- package/dist/constructs/v1beta1/event/Event.d.ts +527 -898
- package/dist/constructs/v1beta1/feature/Feature.d.ts +343 -389
- package/dist/constructs/v1beta1/invitation/Invitation.d.ts +877 -1244
- package/dist/constructs/v1beta1/key/Key.d.ts +444 -589
- package/dist/constructs/v1beta1/keychain/Keychain.d.ts +575 -796
- package/dist/constructs/v1beta1/model/Model.d.ts +598 -572
- package/dist/constructs/v1beta1/organization/Organization.d.ts +1410 -1829
- package/dist/constructs/v1beta1/pattern/Pattern.d.ts +17988 -17171
- package/dist/constructs/v1beta1/plan/Plan.d.ts +115 -159
- package/dist/constructs/v1beta1/role/Role.d.ts +688 -933
- package/dist/constructs/v1beta1/schedule/Schedule.d.ts +315 -425
- package/dist/constructs/v1beta1/subcategory/Subcategory.d.ts +61 -18
- package/dist/constructs/v1beta1/subscription/Subscription.d.ts +674 -839
- package/dist/constructs/v1beta1/support/Support.d.ts +74 -115
- package/dist/constructs/v1beta1/system/System.d.ts +250 -385
- package/dist/constructs/v1beta1/team/Team.d.ts +762 -1028
- package/dist/constructs/v1beta1/token/Token.d.ts +475 -612
- package/dist/constructs/v1beta1/user/User.d.ts +1553 -1722
- package/dist/constructs/v1beta1/view/View.d.ts +664 -833
- package/dist/constructs/v1beta1/workspace/Workspace.d.ts +4705 -4910
- package/dist/constructs/v1beta2/academy/Academy.d.ts +7246 -7864
- package/dist/constructs/v1beta2/badge/Badge.d.ts +453 -610
- package/dist/constructs/v1beta2/catalog/Catalog.d.ts +45 -40
- package/dist/constructs/v1beta2/component/Component.d.ts +851 -747
- package/dist/constructs/v1beta2/connection/Connection.d.ts +1189 -1376
- package/dist/constructs/v1beta2/core/Core.d.ts +856 -768
- package/dist/constructs/v1beta2/credential/Credential.d.ts +437 -572
- package/dist/constructs/v1beta2/design/Design.d.ts +18631 -17846
- package/dist/constructs/v1beta2/event/Event.d.ts +575 -946
- package/dist/constructs/v1beta2/invitation/Invitation.d.ts +901 -1268
- package/dist/constructs/v1beta2/key/Key.d.ts +454 -599
- package/dist/constructs/v1beta2/keychain/Keychain.d.ts +585 -806
- package/dist/constructs/v1beta2/model/Model.d.ts +636 -610
- package/dist/constructs/v1beta2/organization/Organization.d.ts +2017 -2458
- package/dist/constructs/v1beta2/plan/Plan.d.ts +128 -169
- package/dist/constructs/v1beta2/relationship/Relationship.d.ts +2013 -1844
- package/dist/constructs/v1beta2/role/Role.d.ts +695 -940
- package/dist/constructs/v1beta2/schedule/Schedule.d.ts +356 -466
- package/dist/constructs/v1beta2/subscription/Subscription.d.ts +701 -866
- package/dist/constructs/v1beta2/team/Team.d.ts +852 -1118
- package/dist/constructs/v1beta2/token/Token.d.ts +479 -616
- package/dist/constructs/v1beta2/user/User.d.ts +1553 -1722
- package/dist/constructs/v1beta2/view/View.d.ts +669 -838
- package/dist/constructs/v1beta3/academy/Academy.d.ts +7246 -7864
- package/dist/constructs/v1beta3/academy/AcademySchema.js +1 -1
- package/dist/constructs/v1beta3/academy/AcademySchema.mjs +1 -1
- package/dist/constructs/v1beta3/component/Component.d.ts +857 -753
- package/dist/constructs/v1beta3/connection/Connection.d.ts +5919 -1416
- package/dist/constructs/v1beta3/connection/ConnectionSchema.js +25 -1
- package/dist/constructs/v1beta3/connection/ConnectionSchema.mjs +25 -1
- package/dist/constructs/v1beta3/design/Design.d.ts +5297 -5719
- package/dist/constructs/v1beta3/design/DesignSchema.js +2 -2
- package/dist/constructs/v1beta3/design/DesignSchema.mjs +2 -2
- package/dist/constructs/v1beta3/environment/Environment.d.ts +689 -858
- package/dist/constructs/v1beta3/event/Event.d.ts +666 -1041
- package/dist/constructs/v1beta3/event/EventSchema.js +1 -1
- package/dist/constructs/v1beta3/event/EventSchema.mjs +1 -1
- package/dist/constructs/v1beta3/filter/Filter.d.ts +1300 -1438
- package/dist/constructs/v1beta3/filter/FilterSchema.js +7 -7
- package/dist/constructs/v1beta3/filter/FilterSchema.mjs +7 -7
- package/dist/constructs/v1beta3/invitation/Invitation.d.ts +911 -1278
- package/dist/constructs/v1beta3/invitation/InvitationSchema.js +1 -1
- package/dist/constructs/v1beta3/invitation/InvitationSchema.mjs +1 -1
- package/dist/constructs/v1beta3/performance_profile/PerformanceProfile.d.ts +1114 -1412
- package/dist/constructs/v1beta3/performance_profile/PerformanceProfileSchema.js +1 -1
- package/dist/constructs/v1beta3/performance_profile/PerformanceProfileSchema.mjs +1 -1
- package/dist/constructs/v1beta3/plan/Plan.d.ts +156 -197
- package/dist/constructs/v1beta3/relationship/Relationship.d.ts +2013 -1844
- package/dist/constructs/v1beta3/subscription/Subscription.d.ts +804 -969
- package/dist/constructs/v1beta3/token/Token.d.ts +480 -617
- package/dist/constructs/v1beta3/token/TokenSchema.js +1 -1
- package/dist/constructs/v1beta3/token/TokenSchema.mjs +1 -1
- package/dist/constructs/v1beta3/workspace/Workspace.d.ts +4825 -5033
- package/dist/index.d.mts +5032 -5501
- package/dist/index.d.ts +5032 -5501
- package/dist/mesheryApi.d.mts +3334 -884
- package/dist/mesheryApi.d.ts +3334 -884
- package/dist/mesheryApi.js +1 -1
- package/dist/mesheryApi.mjs +1 -1
- package/dist/permissions.d.mts +25 -1
- package/dist/permissions.d.ts +25 -1
- package/dist/permissions.js +1 -1
- package/dist/permissions.mjs +1 -1
- package/package.json +1 -1
|
@@ -4,80 +4,407 @@
|
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
export interface paths {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
7
|
+
"/api/identity/tokens": {
|
|
8
|
+
/** Retrieves tokens associated with the authenticated user. */
|
|
9
|
+
get: operations["getUserTokens"];
|
|
10
|
+
/** Generates a token for the authenticated user. */
|
|
11
|
+
post: operations["generateToken"];
|
|
12
|
+
/** Deletes a specific token for the authenticated user. */
|
|
13
|
+
delete: operations["deleteUserToken"];
|
|
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
|
+
owner: 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: {
|
|
14
66
|
/**
|
|
15
|
-
*
|
|
16
|
-
* @description
|
|
67
|
+
* Format: uuid
|
|
68
|
+
* @description Unique identifier for the token.
|
|
17
69
|
*/
|
|
18
|
-
|
|
19
|
-
put?: never;
|
|
70
|
+
id: string;
|
|
20
71
|
/**
|
|
21
|
-
*
|
|
22
|
-
* @description
|
|
72
|
+
* Format: uuid
|
|
73
|
+
* @description UUID of the user who owns the token.
|
|
23
74
|
*/
|
|
24
|
-
|
|
75
|
+
owner: string;
|
|
76
|
+
/** @description Authentication provider associated with the token. */
|
|
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;
|
|
25
88
|
/**
|
|
26
|
-
*
|
|
27
|
-
* @description
|
|
89
|
+
* Format: date-time
|
|
90
|
+
* @description Timestamp when the token was created.
|
|
28
91
|
*/
|
|
29
|
-
|
|
30
|
-
options?: never;
|
|
31
|
-
head?: never;
|
|
32
|
-
patch?: never;
|
|
33
|
-
trace?: never;
|
|
34
|
-
};
|
|
35
|
-
"/api/identity/tokens/{tokenId}": {
|
|
36
|
-
parameters: {
|
|
37
|
-
query?: never;
|
|
38
|
-
header?: never;
|
|
39
|
-
path?: never;
|
|
40
|
-
cookie?: never;
|
|
41
|
-
};
|
|
92
|
+
createdAt?: string;
|
|
42
93
|
/**
|
|
43
|
-
*
|
|
44
|
-
* @description
|
|
94
|
+
* Format: date-time
|
|
95
|
+
* @description Timestamp when the token was last updated.
|
|
45
96
|
*/
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
97
|
+
updatedAt?: string;
|
|
98
|
+
}[];
|
|
99
|
+
/** @description Total number of tokens across all pages. */
|
|
100
|
+
totalCount: number;
|
|
101
|
+
/** @description Current page number (zero-based). */
|
|
102
|
+
page: number;
|
|
103
|
+
/** @description Number of tokens per page. */
|
|
104
|
+
pageSize: number;
|
|
54
105
|
};
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
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
|
+
};
|
|
74
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
|
+
};
|
|
75
157
|
}
|
|
76
|
-
|
|
77
|
-
export interface
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
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
|
+
owner: 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
|
+
};
|
|
248
|
+
};
|
|
249
|
+
responses: {
|
|
250
|
+
/** Token generated */
|
|
251
|
+
201: {
|
|
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
|
+
owner: 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;
|
|
314
|
+
};
|
|
315
|
+
};
|
|
316
|
+
};
|
|
317
|
+
};
|
|
318
|
+
/** Deletes a specific token for the authenticated user. */
|
|
319
|
+
deleteUserToken: {
|
|
320
|
+
parameters: {
|
|
321
|
+
query: {
|
|
322
|
+
/** ID of the token to delete. */
|
|
323
|
+
tokenId: string;
|
|
324
|
+
};
|
|
325
|
+
};
|
|
326
|
+
responses: {
|
|
327
|
+
/** Token deleted */
|
|
328
|
+
200: {
|
|
329
|
+
content: {
|
|
330
|
+
"application/json": {
|
|
331
|
+
/** @description Tokens returned on the current page. */
|
|
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
|
+
owner: 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;
|
|
379
|
+
};
|
|
380
|
+
};
|
|
381
|
+
/** Expired JWT token used or insufficient privilege */
|
|
382
|
+
401: {
|
|
383
|
+
content: {
|
|
384
|
+
"text/plain": string;
|
|
385
|
+
};
|
|
386
|
+
};
|
|
387
|
+
/** Internal server error */
|
|
388
|
+
500: {
|
|
389
|
+
content: {
|
|
390
|
+
"text/plain": string;
|
|
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
|
+
};
|
|
402
|
+
};
|
|
403
|
+
responses: {
|
|
404
|
+
/** Token response */
|
|
405
|
+
200: {
|
|
406
|
+
content: {
|
|
407
|
+
"application/json": {
|
|
81
408
|
/**
|
|
82
409
|
* Format: uuid
|
|
83
410
|
* @description Unique identifier for the token.
|
|
@@ -87,7 +414,7 @@ export interface components {
|
|
|
87
414
|
* Format: uuid
|
|
88
415
|
* @description UUID of the user who owns the token.
|
|
89
416
|
*/
|
|
90
|
-
|
|
417
|
+
owner: string;
|
|
91
418
|
/** @description Authentication provider associated with the token. */
|
|
92
419
|
provider: string;
|
|
93
420
|
/** @description Access token value. */
|
|
@@ -110,43 +437,78 @@ export interface components {
|
|
|
110
437
|
* @description Timestamp when the token was last updated.
|
|
111
438
|
*/
|
|
112
439
|
updatedAt?: string;
|
|
440
|
+
};
|
|
113
441
|
};
|
|
114
|
-
|
|
115
|
-
|
|
442
|
+
};
|
|
443
|
+
/** Expired JWT token used or insufficient privilege */
|
|
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": {
|
|
116
478
|
/** @description Tokens returned on the current page. */
|
|
117
479
|
tokens: {
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
480
|
+
/**
|
|
481
|
+
* Format: uuid
|
|
482
|
+
* @description Unique identifier for the token.
|
|
483
|
+
*/
|
|
484
|
+
id: string;
|
|
485
|
+
/**
|
|
486
|
+
* Format: uuid
|
|
487
|
+
* @description UUID of the user who owns the token.
|
|
488
|
+
*/
|
|
489
|
+
owner: string;
|
|
490
|
+
/** @description Authentication provider associated with the token. */
|
|
491
|
+
provider: string;
|
|
492
|
+
/** @description Access token value. */
|
|
493
|
+
accessToken?: string;
|
|
494
|
+
/** @description Refresh token value when applicable. */
|
|
495
|
+
refreshToken?: string;
|
|
496
|
+
/** @description Human-readable token name. */
|
|
497
|
+
name?: string;
|
|
498
|
+
/** @description Purpose for which the token was created. */
|
|
499
|
+
purpose?: string;
|
|
500
|
+
/** @description Whether this entry represents an OAuth session. */
|
|
501
|
+
isOauth?: boolean;
|
|
502
|
+
/**
|
|
503
|
+
* Format: date-time
|
|
504
|
+
* @description Timestamp when the token was created.
|
|
505
|
+
*/
|
|
506
|
+
createdAt?: string;
|
|
507
|
+
/**
|
|
508
|
+
* Format: date-time
|
|
509
|
+
* @description Timestamp when the token was last updated.
|
|
510
|
+
*/
|
|
511
|
+
updatedAt?: string;
|
|
150
512
|
}[];
|
|
151
513
|
/** @description Total number of tokens across all pages. */
|
|
152
514
|
totalCount: number;
|
|
@@ -154,528 +516,29 @@ export interface components {
|
|
|
154
516
|
page: number;
|
|
155
517
|
/** @description Number of tokens per page. */
|
|
156
518
|
pageSize: number;
|
|
519
|
+
};
|
|
157
520
|
};
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
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
|
-
};
|
|
177
|
-
};
|
|
178
|
-
/** @description Result not found */
|
|
179
|
-
404: {
|
|
180
|
-
headers: {
|
|
181
|
-
[name: string]: unknown;
|
|
182
|
-
};
|
|
183
|
-
content: {
|
|
184
|
-
"text/plain": string;
|
|
185
|
-
};
|
|
186
|
-
};
|
|
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
|
-
};
|
|
521
|
+
};
|
|
522
|
+
/** Invalid request body or request param */
|
|
523
|
+
400: {
|
|
524
|
+
content: {
|
|
525
|
+
"text/plain": string;
|
|
316
526
|
};
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
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;
|
|
527
|
+
};
|
|
528
|
+
/** Expired JWT token used or insufficient privilege */
|
|
529
|
+
401: {
|
|
530
|
+
content: {
|
|
531
|
+
"text/plain": string;
|
|
329
532
|
};
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
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
|
-
};
|
|
533
|
+
};
|
|
534
|
+
/** Internal server error */
|
|
535
|
+
500: {
|
|
536
|
+
content: {
|
|
537
|
+
"text/plain": string;
|
|
679
538
|
};
|
|
539
|
+
};
|
|
680
540
|
};
|
|
541
|
+
};
|
|
681
542
|
}
|
|
543
|
+
|
|
544
|
+
export interface external {}
|