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