@meshery/schemas 1.3.9 → 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.
Files changed (101) hide show
  1. package/dist/cloudApi.d.mts +28 -28
  2. package/dist/cloudApi.d.ts +28 -28
  3. package/dist/constructs/v1alpha1/capability/Capability.d.ts +106 -111
  4. package/dist/constructs/v1alpha1/core/Core.d.ts +822 -734
  5. package/dist/constructs/v1alpha2/catalog/Catalog.d.ts +45 -40
  6. package/dist/constructs/v1alpha3/relationship/Relationship.d.ts +1829 -1716
  7. package/dist/constructs/v1beta1/academy/Academy.d.ts +6023 -6642
  8. package/dist/constructs/v1beta1/badge/Badge.d.ts +439 -600
  9. package/dist/constructs/v1beta1/capability/Capability.d.ts +106 -111
  10. package/dist/constructs/v1beta1/catalog/Catalog.d.ts +45 -40
  11. package/dist/constructs/v1beta1/category/Category.d.ts +38 -26
  12. package/dist/constructs/v1beta1/component/Component.d.ts +833 -729
  13. package/dist/constructs/v1beta1/connection/Connection.d.ts +1170 -1357
  14. package/dist/constructs/v1beta1/core/Core.d.ts +822 -734
  15. package/dist/constructs/v1beta1/credential/Credential.d.ts +458 -593
  16. package/dist/constructs/v1beta1/environment/Environment.d.ts +666 -835
  17. package/dist/constructs/v1beta1/evaluation/Evaluation.d.ts +6142 -5619
  18. package/dist/constructs/v1beta1/event/Event.d.ts +527 -898
  19. package/dist/constructs/v1beta1/feature/Feature.d.ts +343 -389
  20. package/dist/constructs/v1beta1/invitation/Invitation.d.ts +877 -1244
  21. package/dist/constructs/v1beta1/key/Key.d.ts +444 -589
  22. package/dist/constructs/v1beta1/keychain/Keychain.d.ts +575 -796
  23. package/dist/constructs/v1beta1/model/Model.d.ts +598 -572
  24. package/dist/constructs/v1beta1/organization/Organization.d.ts +1410 -1829
  25. package/dist/constructs/v1beta1/pattern/Pattern.d.ts +17988 -17171
  26. package/dist/constructs/v1beta1/plan/Plan.d.ts +115 -159
  27. package/dist/constructs/v1beta1/role/Role.d.ts +688 -933
  28. package/dist/constructs/v1beta1/schedule/Schedule.d.ts +315 -425
  29. package/dist/constructs/v1beta1/subcategory/Subcategory.d.ts +61 -18
  30. package/dist/constructs/v1beta1/subscription/Subscription.d.ts +674 -839
  31. package/dist/constructs/v1beta1/support/Support.d.ts +74 -115
  32. package/dist/constructs/v1beta1/system/System.d.ts +250 -385
  33. package/dist/constructs/v1beta1/team/Team.d.ts +762 -1028
  34. package/dist/constructs/v1beta1/token/Token.d.ts +475 -612
  35. package/dist/constructs/v1beta1/user/User.d.ts +1553 -1722
  36. package/dist/constructs/v1beta1/view/View.d.ts +664 -833
  37. package/dist/constructs/v1beta1/workspace/Workspace.d.ts +4705 -4910
  38. package/dist/constructs/v1beta2/academy/Academy.d.ts +7246 -7864
  39. package/dist/constructs/v1beta2/badge/Badge.d.ts +453 -610
  40. package/dist/constructs/v1beta2/catalog/Catalog.d.ts +45 -40
  41. package/dist/constructs/v1beta2/component/Component.d.ts +851 -747
  42. package/dist/constructs/v1beta2/connection/Connection.d.ts +1189 -1376
  43. package/dist/constructs/v1beta2/core/Core.d.ts +856 -768
  44. package/dist/constructs/v1beta2/credential/Credential.d.ts +437 -572
  45. package/dist/constructs/v1beta2/design/Design.d.ts +18631 -17846
  46. package/dist/constructs/v1beta2/event/Event.d.ts +575 -946
  47. package/dist/constructs/v1beta2/invitation/Invitation.d.ts +901 -1268
  48. package/dist/constructs/v1beta2/key/Key.d.ts +454 -599
  49. package/dist/constructs/v1beta2/keychain/Keychain.d.ts +585 -806
  50. package/dist/constructs/v1beta2/model/Model.d.ts +636 -610
  51. package/dist/constructs/v1beta2/organization/Organization.d.ts +2017 -2458
  52. package/dist/constructs/v1beta2/plan/Plan.d.ts +128 -169
  53. package/dist/constructs/v1beta2/relationship/Relationship.d.ts +2013 -1844
  54. package/dist/constructs/v1beta2/role/Role.d.ts +695 -940
  55. package/dist/constructs/v1beta2/schedule/Schedule.d.ts +356 -466
  56. package/dist/constructs/v1beta2/subscription/Subscription.d.ts +701 -866
  57. package/dist/constructs/v1beta2/team/Team.d.ts +852 -1118
  58. package/dist/constructs/v1beta2/token/Token.d.ts +479 -616
  59. package/dist/constructs/v1beta2/user/User.d.ts +1553 -1722
  60. package/dist/constructs/v1beta2/view/View.d.ts +669 -838
  61. package/dist/constructs/v1beta3/academy/Academy.d.ts +7246 -7864
  62. package/dist/constructs/v1beta3/academy/AcademySchema.js +1 -1
  63. package/dist/constructs/v1beta3/academy/AcademySchema.mjs +1 -1
  64. package/dist/constructs/v1beta3/component/Component.d.ts +857 -753
  65. package/dist/constructs/v1beta3/connection/Connection.d.ts +5559 -5053
  66. package/dist/constructs/v1beta3/connection/ConnectionSchema.js +6 -6
  67. package/dist/constructs/v1beta3/connection/ConnectionSchema.mjs +6 -6
  68. package/dist/constructs/v1beta3/design/Design.d.ts +5297 -5719
  69. package/dist/constructs/v1beta3/design/DesignSchema.js +2 -2
  70. package/dist/constructs/v1beta3/design/DesignSchema.mjs +2 -2
  71. package/dist/constructs/v1beta3/environment/Environment.d.ts +689 -858
  72. package/dist/constructs/v1beta3/event/Event.d.ts +666 -1041
  73. package/dist/constructs/v1beta3/event/EventSchema.js +1 -1
  74. package/dist/constructs/v1beta3/event/EventSchema.mjs +1 -1
  75. package/dist/constructs/v1beta3/filter/Filter.d.ts +1300 -1438
  76. package/dist/constructs/v1beta3/filter/FilterSchema.js +7 -7
  77. package/dist/constructs/v1beta3/filter/FilterSchema.mjs +7 -7
  78. package/dist/constructs/v1beta3/invitation/Invitation.d.ts +911 -1278
  79. package/dist/constructs/v1beta3/invitation/InvitationSchema.js +1 -1
  80. package/dist/constructs/v1beta3/invitation/InvitationSchema.mjs +1 -1
  81. package/dist/constructs/v1beta3/performance_profile/PerformanceProfile.d.ts +1114 -1412
  82. package/dist/constructs/v1beta3/performance_profile/PerformanceProfileSchema.js +1 -1
  83. package/dist/constructs/v1beta3/performance_profile/PerformanceProfileSchema.mjs +1 -1
  84. package/dist/constructs/v1beta3/plan/Plan.d.ts +156 -197
  85. package/dist/constructs/v1beta3/relationship/Relationship.d.ts +2013 -1844
  86. package/dist/constructs/v1beta3/subscription/Subscription.d.ts +804 -969
  87. package/dist/constructs/v1beta3/token/Token.d.ts +480 -617
  88. package/dist/constructs/v1beta3/token/TokenSchema.js +1 -1
  89. package/dist/constructs/v1beta3/token/TokenSchema.mjs +1 -1
  90. package/dist/constructs/v1beta3/workspace/Workspace.d.ts +4825 -5033
  91. package/dist/index.d.mts +5032 -5501
  92. package/dist/index.d.ts +5032 -5501
  93. package/dist/mesheryApi.d.mts +8 -8
  94. package/dist/mesheryApi.d.ts +8 -8
  95. package/dist/mesheryApi.js +1 -1
  96. package/dist/mesheryApi.mjs +1 -1
  97. package/dist/permissions.d.mts +25 -1
  98. package/dist/permissions.d.ts +25 -1
  99. package/dist/permissions.js +1 -1
  100. package/dist/permissions.mjs +1 -1
  101. package/package.json +1 -1
@@ -4,80 +4,407 @@
4
4
  */
5
5
 
6
6
  export interface paths {
7
- "/api/identity/tokens": {
8
- parameters: {
9
- query?: never;
10
- header?: never;
11
- path?: never;
12
- cookie?: never;
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/{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
+ /** @description The tokens of the tokenpage. */
65
+ tokens: {
14
66
  /**
15
- * Get tokens
16
- * @description Retrieves tokens associated with the authenticated user.
67
+ * Format: uuid
68
+ * @description Unique identifier for the token.
17
69
  */
18
- get: operations["getUserTokens"];
19
- put?: never;
70
+ id: string;
20
71
  /**
21
- * Generate token
22
- * @description Generates a token for the authenticated user.
72
+ * Format: uuid
73
+ * @description UUID of the user who owns the token.
23
74
  */
24
- post: operations["generateToken"];
75
+ user_id: string;
76
+ /** @description Authentication provider associated with the token. */
77
+ provider: string;
78
+ /** @description Access token value. */
79
+ access_token?: string;
80
+ /** @description Refresh token value when applicable. */
81
+ refresh_token?: 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
+ is_oauth?: boolean;
25
88
  /**
26
- * Delete token
27
- * @description Deletes a specific token for the authenticated user.
89
+ * Format: date-time
90
+ * @description Timestamp when the resource was created.
28
91
  */
29
- delete: operations["deleteUserToken"];
30
- options?: never;
31
- head?: never;
32
- patch?: never;
33
- trace?: never;
34
- };
35
- "/api/identity/tokens/{id}": {
36
- parameters: {
37
- query?: never;
38
- header?: never;
39
- path?: never;
40
- cookie?: never;
41
- };
92
+ created_at?: string;
42
93
  /**
43
- * Get token by ID
44
- * @description Retrieves a specific token by its ID.
94
+ * Format: date-time
95
+ * @description Timestamp when the resource was updated.
45
96
  */
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;
97
+ updated_at?: string;
98
+ }[];
99
+ /** @description Total number of tokens across all pages. */
100
+ total_count: number;
101
+ /** @description Current page number (zero-based). */
102
+ page: number;
103
+ /** @description Number of tokens per page. */
104
+ page_size: number;
54
105
  };
55
- "/api/identity/tokens/infinite": {
56
- parameters: {
57
- query?: never;
58
- header?: never;
59
- path?: never;
60
- cookie?: never;
61
- };
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;
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
+ };
74
125
  };
126
+ /** Internal server error */
127
+ 500: {
128
+ content: {
129
+ "text/plain": string;
130
+ };
131
+ };
132
+ };
133
+ parameters: {
134
+ /** @description Token ID */
135
+ id: string;
136
+ /** @description Get responses by page */
137
+ page: string;
138
+ /** @description Get responses by pagesize */
139
+ pagesize: string;
140
+ /** @description Get responses that match search param value */
141
+ search: string;
142
+ /** @description Get ordered responses */
143
+ order: string;
144
+ /** @description Whether to retrieve OAuth-backed sessions instead of API tokens. */
145
+ isOAuth: boolean;
146
+ /** @description Name of the token. */
147
+ name: string;
148
+ /** @description Purpose for which the token is generated. */
149
+ purpose: string;
150
+ /** @description ID of the token. */
151
+ tokenId: string;
152
+ /** @description UUID of the user. */
153
+ userId: string;
154
+ /** @description Remote provider. */
155
+ provider: string;
156
+ };
75
157
  }
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: {
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 The tokens of the tokenpage. */
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
+ user_id: string;
193
+ /** @description Authentication provider associated with the token. */
194
+ provider: string;
195
+ /** @description Access token value. */
196
+ access_token?: string;
197
+ /** @description Refresh token value when applicable. */
198
+ refresh_token?: 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
+ is_oauth?: boolean;
205
+ /**
206
+ * Format: date-time
207
+ * @description Timestamp when the resource was created.
208
+ */
209
+ created_at?: string;
210
+ /**
211
+ * Format: date-time
212
+ * @description Timestamp when the resource was updated.
213
+ */
214
+ updated_at?: string;
215
+ }[];
216
+ /** @description Total number of tokens across all pages. */
217
+ total_count: number;
218
+ /** @description Current page number (zero-based). */
219
+ page: number;
220
+ /** @description Number of tokens per page. */
221
+ page_size: 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
+ 200: {
252
+ content: {
253
+ "application/json": {
254
+ /** @description The tokens of the tokenpage. */
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
+ user_id: string;
266
+ /** @description Authentication provider associated with the token. */
267
+ provider: string;
268
+ /** @description Access token value. */
269
+ access_token?: string;
270
+ /** @description Refresh token value when applicable. */
271
+ refresh_token?: 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
+ is_oauth?: boolean;
278
+ /**
279
+ * Format: date-time
280
+ * @description Timestamp when the resource was created.
281
+ */
282
+ created_at?: string;
283
+ /**
284
+ * Format: date-time
285
+ * @description Timestamp when the resource was updated.
286
+ */
287
+ updated_at?: string;
288
+ }[];
289
+ /** @description Total number of tokens across all pages. */
290
+ total_count: number;
291
+ /** @description Current page number (zero-based). */
292
+ page: number;
293
+ /** @description Number of tokens per page. */
294
+ page_size: 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. */
323
+ tokenId: string;
324
+ };
325
+ };
326
+ responses: {
327
+ /** Token deleted */
328
+ 200: {
329
+ content: {
330
+ "application/json": {
331
+ /** @description The tokens of the tokenpage. */
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
+ user_id: string;
343
+ /** @description Authentication provider associated with the token. */
344
+ provider: string;
345
+ /** @description Access token value. */
346
+ access_token?: string;
347
+ /** @description Refresh token value when applicable. */
348
+ refresh_token?: 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
+ is_oauth?: boolean;
355
+ /**
356
+ * Format: date-time
357
+ * @description Timestamp when the resource was created.
358
+ */
359
+ created_at?: string;
360
+ /**
361
+ * Format: date-time
362
+ * @description Timestamp when the resource was updated.
363
+ */
364
+ updated_at?: string;
365
+ }[];
366
+ /** @description Total number of tokens across all pages. */
367
+ total_count: number;
368
+ /** @description Current page number (zero-based). */
369
+ page: number;
370
+ /** @description Number of tokens per page. */
371
+ page_size: 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
+ id: 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.
@@ -110,43 +437,78 @@ export interface components {
110
437
  * @description Timestamp when the resource was updated.
111
438
  */
112
439
  updated_at?: string;
440
+ };
441
+ };
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;
113
459
  };
114
- /** @description A paginated list of tokens. */
115
- TokenPage: {
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. */
468
+ userId: string;
469
+ /** Remote provider. */
470
+ provider: string;
471
+ };
472
+ };
473
+ responses: {
474
+ /** Token generated */
475
+ 200: {
476
+ content: {
477
+ "application/json": {
116
478
  /** @description The tokens of the tokenpage. */
117
479
  tokens: {
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
- user_id: string;
128
- /** @description Authentication provider associated with the token. */
129
- provider: string;
130
- /** @description Access token value. */
131
- access_token?: string;
132
- /** @description Refresh token value when applicable. */
133
- refresh_token?: 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
- is_oauth?: boolean;
140
- /**
141
- * Format: date-time
142
- * @description Timestamp when the resource was created.
143
- */
144
- created_at?: string;
145
- /**
146
- * Format: date-time
147
- * @description Timestamp when the resource was updated.
148
- */
149
- updated_at?: string;
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
+ user_id: string;
490
+ /** @description Authentication provider associated with the token. */
491
+ provider: string;
492
+ /** @description Access token value. */
493
+ access_token?: string;
494
+ /** @description Refresh token value when applicable. */
495
+ refresh_token?: 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
+ is_oauth?: boolean;
502
+ /**
503
+ * Format: date-time
504
+ * @description Timestamp when the resource was created.
505
+ */
506
+ created_at?: string;
507
+ /**
508
+ * Format: date-time
509
+ * @description Timestamp when the resource was updated.
510
+ */
511
+ updated_at?: string;
150
512
  }[];
151
513
  /** @description Total number of tokens across all pages. */
152
514
  total_count: number;
@@ -154,528 +516,29 @@ export interface components {
154
516
  page: number;
155
517
  /** @description Number of tokens per page. */
156
518
  page_size: number;
519
+ };
157
520
  };
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
- };
521
+ };
522
+ /** Invalid request body or request param */
523
+ 400: {
524
+ content: {
525
+ "text/plain": string;
177
526
  };
178
- /** @description Result not found */
179
- 404: {
180
- headers: {
181
- [name: string]: unknown;
182
- };
183
- content: {
184
- "text/plain": string;
185
- };
527
+ };
528
+ /** Expired JWT token used or insufficient privilege */
529
+ 401: {
530
+ content: {
531
+ "text/plain": string;
186
532
  };
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
- id: string;
200
- /** @description Get responses by page */
201
- page: string;
202
- /** @description Get responses by pagesize */
203
- pagesize: string;
204
- /** @description Get responses that match search param value */
205
- search: string;
206
- /** @description Get ordered responses */
207
- order: string;
208
- /** @description Whether to retrieve OAuth-backed sessions instead of API tokens. */
209
- isOAuth: boolean;
210
- /** @description Name of the token. */
211
- name: string;
212
- /** @description Purpose for which the token is generated. */
213
- purpose: string;
214
- /** @description ID of the token. */
215
- tokenId: string;
216
- /** @description UUID of the user. */
217
- userId: string;
218
- /** @description Remote provider. */
219
- provider: 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 The tokens of the tokenpage. */
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
- user_id: string;
266
- /** @description Authentication provider associated with the token. */
267
- provider: string;
268
- /** @description Access token value. */
269
- access_token?: string;
270
- /** @description Refresh token value when applicable. */
271
- refresh_token?: 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
- is_oauth?: boolean;
278
- /**
279
- * Format: date-time
280
- * @description Timestamp when the resource was created.
281
- */
282
- created_at?: string;
283
- /**
284
- * Format: date-time
285
- * @description Timestamp when the resource was updated.
286
- */
287
- updated_at?: string;
288
- }[];
289
- /** @description Total number of tokens across all pages. */
290
- total_count: number;
291
- /** @description Current page number (zero-based). */
292
- page: number;
293
- /** @description Number of tokens per page. */
294
- page_size: 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
- 200: {
334
- headers: {
335
- [name: string]: unknown;
336
- };
337
- content: {
338
- "application/json": {
339
- /** @description The tokens of the tokenpage. */
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
- user_id: string;
351
- /** @description Authentication provider associated with the token. */
352
- provider: string;
353
- /** @description Access token value. */
354
- access_token?: string;
355
- /** @description Refresh token value when applicable. */
356
- refresh_token?: 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
- is_oauth?: boolean;
363
- /**
364
- * Format: date-time
365
- * @description Timestamp when the resource was created.
366
- */
367
- created_at?: string;
368
- /**
369
- * Format: date-time
370
- * @description Timestamp when the resource was updated.
371
- */
372
- updated_at?: string;
373
- }[];
374
- /** @description Total number of tokens across all pages. */
375
- total_count: number;
376
- /** @description Current page number (zero-based). */
377
- page: number;
378
- /** @description Number of tokens per page. */
379
- page_size: 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. */
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 The tokens of the tokenpage. */
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
- user_id: string;
443
- /** @description Authentication provider associated with the token. */
444
- provider: string;
445
- /** @description Access token value. */
446
- access_token?: string;
447
- /** @description Refresh token value when applicable. */
448
- refresh_token?: 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
- is_oauth?: boolean;
455
- /**
456
- * Format: date-time
457
- * @description Timestamp when the resource was created.
458
- */
459
- created_at?: string;
460
- /**
461
- * Format: date-time
462
- * @description Timestamp when the resource was updated.
463
- */
464
- updated_at?: string;
465
- }[];
466
- /** @description Total number of tokens across all pages. */
467
- total_count: number;
468
- /** @description Current page number (zero-based). */
469
- page: number;
470
- /** @description Number of tokens per page. */
471
- page_size: 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
- id: 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
- user_id: string;
533
- /** @description Authentication provider associated with the token. */
534
- provider: string;
535
- /** @description Access token value. */
536
- access_token?: string;
537
- /** @description Refresh token value when applicable. */
538
- refresh_token?: 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
- is_oauth?: boolean;
545
- /**
546
- * Format: date-time
547
- * @description Timestamp when the resource was created.
548
- */
549
- created_at?: string;
550
- /**
551
- * Format: date-time
552
- * @description Timestamp when the resource was updated.
553
- */
554
- updated_at?: 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. */
591
- userId: string;
592
- /** @description Remote provider. */
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 The tokens of the tokenpage. */
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
- user_id: string;
620
- /** @description Authentication provider associated with the token. */
621
- provider: string;
622
- /** @description Access token value. */
623
- access_token?: string;
624
- /** @description Refresh token value when applicable. */
625
- refresh_token?: 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
- is_oauth?: boolean;
632
- /**
633
- * Format: date-time
634
- * @description Timestamp when the resource was created.
635
- */
636
- created_at?: string;
637
- /**
638
- * Format: date-time
639
- * @description Timestamp when the resource was updated.
640
- */
641
- updated_at?: string;
642
- }[];
643
- /** @description Total number of tokens across all pages. */
644
- total_count: number;
645
- /** @description Current page number (zero-based). */
646
- page: number;
647
- /** @description Number of tokens per page. */
648
- page_size: 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 {}