@meshery/schemas 1.3.23 → 1.3.24

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.
@@ -0,0 +1,527 @@
1
+ /**
2
+ * This file was auto-generated by openapi-typescript.
3
+ * Do not make direct changes to the file.
4
+ */
5
+
6
+ export type paths = Record<string, never>;
7
+ export type webhooks = Record<string, never>;
8
+ export interface components {
9
+ schemas: {
10
+ /** @description Represents a user */
11
+ User: {
12
+ /**
13
+ * Format: uuid
14
+ * @description Unique identifier for the user
15
+ */
16
+ id: string;
17
+ /**
18
+ * @description Authentication provider (e.g., Google, Github)
19
+ * @example [
20
+ * "local",
21
+ * "github",
22
+ * "google",
23
+ * "twitter"
24
+ * ]
25
+ */
26
+ provider: string;
27
+ /**
28
+ * Format: email
29
+ * @description User's email address
30
+ */
31
+ email: string;
32
+ /** @description User's first name */
33
+ firstName: string;
34
+ /** @description User's last name */
35
+ lastName: string;
36
+ /**
37
+ * Format: uri
38
+ * @description URL to user's avatar image
39
+ */
40
+ avatarUrl?: string;
41
+ /**
42
+ * @description User account status
43
+ * @enum {string}
44
+ */
45
+ status: "active" | "inactive" | "pending" | "anonymous";
46
+ /**
47
+ * @description User's biography or description
48
+ * @default
49
+ */
50
+ bio: string;
51
+ /** @description User's country information stored as JSONB */
52
+ country?: {
53
+ [key: string]: unknown;
54
+ };
55
+ /** @description User's region information stored as JSONB */
56
+ region?: {
57
+ [key: string]: unknown;
58
+ };
59
+ /** @description User preferences stored as JSONB */
60
+ preferences?: {
61
+ /** @description The mesh adapters of the preference. */
62
+ meshAdapters?: Record<string, never>[];
63
+ grafana?: {
64
+ /** @description Grafana URL for the user configuration. */
65
+ grafanaUrl?: string;
66
+ /** @description Grafana API key for the user configuration. */
67
+ grafanaApiKey?: string;
68
+ /** @description Selected Grafana board configurations for the user. */
69
+ selectedBoardsConfigs?: {
70
+ /** @description Placeholder for GrafanaBoard definition (define fields as needed) */
71
+ board?: Record<string, never>;
72
+ /** @description Panels selected for the Grafana board configuration. */
73
+ panels?: Record<string, never>[];
74
+ /** @description Template variables applied to the selected Grafana board configuration. */
75
+ templateVars?: string[];
76
+ }[];
77
+ };
78
+ prometheus?: {
79
+ /** @description The prometheus URL of the prometheus. */
80
+ prometheusUrl?: string;
81
+ /** @description The selected prometheus boards configs of the prometheus. */
82
+ selectedPrometheusBoardsConfigs?: {
83
+ /** @description Placeholder for GrafanaBoard definition (define fields as needed) */
84
+ board?: Record<string, never>;
85
+ /** @description Panels selected for the Grafana board configuration. */
86
+ panels?: Record<string, never>[];
87
+ /** @description Template variables applied to the selected Grafana board configuration. */
88
+ templateVars?: string[];
89
+ }[];
90
+ };
91
+ loadTestPrefs?: {
92
+ /** @description Concurrent requests */
93
+ c?: number;
94
+ /** @description Queries per second */
95
+ qps?: number;
96
+ /** @description Duration */
97
+ t?: string;
98
+ /** @description Load generator */
99
+ gen?: string;
100
+ };
101
+ /** @description The anonymous usage stats of the preference. */
102
+ anonymousUsageStats: boolean;
103
+ /** @description The anonymous perf results of the preference. */
104
+ anonymousPerfResults: boolean;
105
+ /**
106
+ * Format: date-time
107
+ * @description Timestamp of when the resource was last updated.
108
+ */
109
+ updatedAt: string;
110
+ /** @description The dashboard preferences of the preference. */
111
+ dashboardPreferences: {
112
+ [key: string]: unknown;
113
+ };
114
+ /**
115
+ * Format: uuid
116
+ * @description ID of the associated selectedOrganization.
117
+ */
118
+ selectedOrganizationId: string;
119
+ /** @description The selected workspace for organizations of the preference. */
120
+ selectedWorkspaceForOrganizations: {
121
+ [key: string]: string;
122
+ };
123
+ /** @description The users extension preferences of the preference. */
124
+ usersExtensionPreferences: {
125
+ [key: string]: unknown;
126
+ };
127
+ /** @description The remote provider preferences of the preference. */
128
+ remoteProviderPreferences: {
129
+ [key: string]: unknown;
130
+ };
131
+ };
132
+ /**
133
+ * Format: date-time
134
+ * @description Timestamp when user accepted terms and conditions
135
+ */
136
+ acceptedTermsAt?: string;
137
+ /**
138
+ * Format: date-time
139
+ * @description Timestamp of user's first login
140
+ */
141
+ firstLoginTime?: string;
142
+ /**
143
+ * Format: date-time
144
+ * @description Timestamp of user's most recent login
145
+ */
146
+ lastLoginTime: string;
147
+ /**
148
+ * Format: date-time
149
+ * @description Timestamp when the user record was created
150
+ */
151
+ createdAt: string;
152
+ /**
153
+ * Format: date-time
154
+ * @description Timestamp when the user record was last updated
155
+ */
156
+ updatedAt: string;
157
+ /** @description Various online profiles associated with the user account */
158
+ socials?: {
159
+ /** @description The site of the social. */
160
+ site: string;
161
+ /**
162
+ * Format: uri
163
+ * @description The link of the social.
164
+ */
165
+ link: string;
166
+ }[];
167
+ /**
168
+ * Format: date-time
169
+ * @description Timestamp when the user record was soft-deleted (null if not deleted)
170
+ */
171
+ deletedAt: string | null;
172
+ /**
173
+ * @description Names of the global roles assigned to the user. Free-form, user-generated values sourced from the roles table (role_name is a varchar, not a fixed enumeration); the seeded system roles such as "admin", "organization admin" and "user" are a subset, not the whole set.
174
+ * @example [
175
+ * "organization admin",
176
+ * "user"
177
+ * ]
178
+ */
179
+ roleNames?: string[];
180
+ /** @description Teams the user belongs to with role information */
181
+ teams?: {
182
+ /** @description Team memberships for the user with their assigned roles. */
183
+ teamsWithRoles?: {
184
+ /**
185
+ * Format: uuid
186
+ * @description Unique identifier of the team.
187
+ */
188
+ id: string;
189
+ /** @description Name of the team. */
190
+ name: string;
191
+ /** @description Human readable description of the team. */
192
+ description?: string;
193
+ /**
194
+ * Format: uuid
195
+ * @description Identifier of the team owner.
196
+ */
197
+ owner?: string;
198
+ /** @description Free-form metadata associated with the team. */
199
+ metadata?: {
200
+ [key: string]: unknown;
201
+ };
202
+ /**
203
+ * Format: date-time
204
+ * @description Timestamp when the team was created.
205
+ */
206
+ createdAt?: string;
207
+ /**
208
+ * Format: date-time
209
+ * @description Timestamp when the team was last updated.
210
+ */
211
+ updatedAt?: string;
212
+ /**
213
+ * Format: date-time
214
+ * @description Timestamp when the team was soft-deleted (null if not deleted).
215
+ */
216
+ deletedAt?: string | null;
217
+ /** @description Names of the roles assigned to the user within this team. Free-form, user-generated role names; not a fixed enumeration. */
218
+ roleNames: string[];
219
+ }[];
220
+ /** @description Total number of team memberships returned for the user. */
221
+ totalCount?: number;
222
+ };
223
+ /** @description Organizations the user belongs to with role information */
224
+ organizations?: {
225
+ /** @description Organization memberships for the user with their assigned roles. */
226
+ organizationsWithRoles?: {
227
+ /**
228
+ * Format: uuid
229
+ * @description Unique identifier of the organization.
230
+ */
231
+ id: string;
232
+ /** @description Name of the organization. */
233
+ name: string;
234
+ /** @description Human readable description of the organization. */
235
+ description?: string;
236
+ /** @description Country associated with the organization. */
237
+ country?: string;
238
+ /** @description Region associated with the organization. */
239
+ region?: string;
240
+ /**
241
+ * Format: uuid
242
+ * @description Identifier of the organization owner.
243
+ */
244
+ owner?: string;
245
+ /**
246
+ * Format: date-time
247
+ * @description Timestamp when the organization was created.
248
+ */
249
+ createdAt?: string;
250
+ /**
251
+ * Format: date-time
252
+ * @description Timestamp when the organization was last updated.
253
+ */
254
+ updatedAt?: string;
255
+ /**
256
+ * Format: date-time
257
+ * @description Timestamp when the organization was soft-deleted (null if not deleted).
258
+ */
259
+ deletedAt?: string | null;
260
+ /** @description Names of the roles assigned to the user within this organization. Free-form, user-generated role names; not a fixed enumeration. */
261
+ roleNames: string[];
262
+ }[];
263
+ /** @description Total number of organization memberships returned for the user. */
264
+ totalCount?: number;
265
+ };
266
+ };
267
+ /** @description One email address associated with a user account. A user has exactly one primary address (mirrored in users.email) and any number of secondary addresses accumulated from account consolidation or explicit addition. Uniqueness across live addresses is enforced case-insensitively. */
268
+ UserEmailAddress: {
269
+ /**
270
+ * Format: uuid
271
+ * @description Unique identifier for this email-address record
272
+ */
273
+ id: string;
274
+ /**
275
+ * Format: uuid
276
+ * @description The user (users.id) this address belongs to
277
+ */
278
+ userId: string;
279
+ /**
280
+ * Format: email
281
+ * @description The email address
282
+ */
283
+ email: string;
284
+ /**
285
+ * @description Whether the address was verified (per Kratos verifiable addresses) at record time
286
+ * @default false
287
+ */
288
+ verified: boolean;
289
+ /**
290
+ * @description Exactly one live primary address per user; mirrors users.email
291
+ * @default false
292
+ */
293
+ isPrimary: boolean;
294
+ /**
295
+ * @description How this address became associated with the account
296
+ * @enum {string}
297
+ */
298
+ source: "signup" | "consolidation" | "backfill" | "manual";
299
+ /** Format: date-time */
300
+ createdAt: string;
301
+ /** Format: date-time */
302
+ updatedAt: string;
303
+ /**
304
+ * Format: date-time
305
+ * @description SQL null Timestamp to handle null values of time.
306
+ */
307
+ deletedAt?: string;
308
+ };
309
+ /** @description An organization the user is a member of, together with the names of the roles assigned to that user within the organization. Returned as an item of User.organizations.organizationsWithRoles. The role names are dynamic, user-generated values (no fixed enumeration). */
310
+ OrganizationWithRoles: {
311
+ /**
312
+ * Format: uuid
313
+ * @description Unique identifier of the organization.
314
+ */
315
+ id: string;
316
+ /** @description Name of the organization. */
317
+ name: string;
318
+ /** @description Human readable description of the organization. */
319
+ description?: string;
320
+ /** @description Country associated with the organization. */
321
+ country?: string;
322
+ /** @description Region associated with the organization. */
323
+ region?: string;
324
+ /**
325
+ * Format: uuid
326
+ * @description Identifier of the organization owner.
327
+ */
328
+ owner?: string;
329
+ /**
330
+ * Format: date-time
331
+ * @description Timestamp when the organization was created.
332
+ */
333
+ createdAt?: string;
334
+ /**
335
+ * Format: date-time
336
+ * @description Timestamp when the organization was last updated.
337
+ */
338
+ updatedAt?: string;
339
+ /**
340
+ * Format: date-time
341
+ * @description Timestamp when the organization was soft-deleted (null if not deleted).
342
+ */
343
+ deletedAt?: string | null;
344
+ /** @description Names of the roles assigned to the user within this organization. Free-form, user-generated role names; not a fixed enumeration. */
345
+ roleNames: string[];
346
+ };
347
+ /** @description A team the user is a member of, together with the names of the roles assigned to that user within the team. Returned as an item of User.teams.teamsWithRoles. The role names are dynamic, user-generated values (no fixed enumeration). */
348
+ TeamWithRoles: {
349
+ /**
350
+ * Format: uuid
351
+ * @description Unique identifier of the team.
352
+ */
353
+ id: string;
354
+ /** @description Name of the team. */
355
+ name: string;
356
+ /** @description Human readable description of the team. */
357
+ description?: string;
358
+ /**
359
+ * Format: uuid
360
+ * @description Identifier of the team owner.
361
+ */
362
+ owner?: string;
363
+ /** @description Free-form metadata associated with the team. */
364
+ metadata?: {
365
+ [key: string]: unknown;
366
+ };
367
+ /**
368
+ * Format: date-time
369
+ * @description Timestamp when the team was created.
370
+ */
371
+ createdAt?: string;
372
+ /**
373
+ * Format: date-time
374
+ * @description Timestamp when the team was last updated.
375
+ */
376
+ updatedAt?: string;
377
+ /**
378
+ * Format: date-time
379
+ * @description Timestamp when the team was soft-deleted (null if not deleted).
380
+ */
381
+ deletedAt?: string | null;
382
+ /** @description Names of the roles assigned to the user within this team. Free-form, user-generated role names; not a fixed enumeration. */
383
+ roleNames: string[];
384
+ };
385
+ Preference: {
386
+ /** @description The mesh adapters of the preference. */
387
+ meshAdapters?: Record<string, never>[];
388
+ grafana?: {
389
+ /** @description Grafana URL for the user configuration. */
390
+ grafanaUrl?: string;
391
+ /** @description Grafana API key for the user configuration. */
392
+ grafanaApiKey?: string;
393
+ /** @description Selected Grafana board configurations for the user. */
394
+ selectedBoardsConfigs?: {
395
+ /** @description Placeholder for GrafanaBoard definition (define fields as needed) */
396
+ board?: Record<string, never>;
397
+ /** @description Panels selected for the Grafana board configuration. */
398
+ panels?: Record<string, never>[];
399
+ /** @description Template variables applied to the selected Grafana board configuration. */
400
+ templateVars?: string[];
401
+ }[];
402
+ };
403
+ prometheus?: {
404
+ /** @description The prometheus URL of the prometheus. */
405
+ prometheusUrl?: string;
406
+ /** @description The selected prometheus boards configs of the prometheus. */
407
+ selectedPrometheusBoardsConfigs?: {
408
+ /** @description Placeholder for GrafanaBoard definition (define fields as needed) */
409
+ board?: Record<string, never>;
410
+ /** @description Panels selected for the Grafana board configuration. */
411
+ panels?: Record<string, never>[];
412
+ /** @description Template variables applied to the selected Grafana board configuration. */
413
+ templateVars?: string[];
414
+ }[];
415
+ };
416
+ loadTestPrefs?: {
417
+ /** @description Concurrent requests */
418
+ c?: number;
419
+ /** @description Queries per second */
420
+ qps?: number;
421
+ /** @description Duration */
422
+ t?: string;
423
+ /** @description Load generator */
424
+ gen?: string;
425
+ };
426
+ /** @description The anonymous usage stats of the preference. */
427
+ anonymousUsageStats: boolean;
428
+ /** @description The anonymous perf results of the preference. */
429
+ anonymousPerfResults: boolean;
430
+ /**
431
+ * Format: date-time
432
+ * @description Timestamp of when the resource was last updated.
433
+ */
434
+ updatedAt: string;
435
+ /** @description The dashboard preferences of the preference. */
436
+ dashboardPreferences: {
437
+ [key: string]: unknown;
438
+ };
439
+ /**
440
+ * Format: uuid
441
+ * @description ID of the associated selectedOrganization.
442
+ */
443
+ selectedOrganizationId: string;
444
+ /** @description The selected workspace for organizations of the preference. */
445
+ selectedWorkspaceForOrganizations: {
446
+ [key: string]: string;
447
+ };
448
+ /** @description The users extension preferences of the preference. */
449
+ usersExtensionPreferences: {
450
+ [key: string]: unknown;
451
+ };
452
+ /** @description The remote provider preferences of the preference. */
453
+ remoteProviderPreferences: {
454
+ [key: string]: unknown;
455
+ };
456
+ };
457
+ /** @description Placeholder for Adapter struct definition. */
458
+ Adapter: Record<string, never>;
459
+ Grafana: {
460
+ /** @description Grafana URL for the user configuration. */
461
+ grafanaUrl?: string;
462
+ /** @description Grafana API key for the user configuration. */
463
+ grafanaApiKey?: string;
464
+ /** @description Selected Grafana board configurations for the user. */
465
+ selectedBoardsConfigs?: {
466
+ /** @description Placeholder for GrafanaBoard definition (define fields as needed) */
467
+ board?: Record<string, never>;
468
+ /** @description Panels selected for the Grafana board configuration. */
469
+ panels?: Record<string, never>[];
470
+ /** @description Template variables applied to the selected Grafana board configuration. */
471
+ templateVars?: string[];
472
+ }[];
473
+ };
474
+ SelectedGrafanaConfig: {
475
+ /** @description Placeholder for GrafanaBoard definition (define fields as needed) */
476
+ board?: Record<string, never>;
477
+ /** @description Panels selected for the Grafana board configuration. */
478
+ panels?: Record<string, never>[];
479
+ /** @description Template variables applied to the selected Grafana board configuration. */
480
+ templateVars?: string[];
481
+ };
482
+ /** @description Placeholder for GrafanaBoard definition (define fields as needed) */
483
+ GrafanaBoard: Record<string, never>;
484
+ /** @description Grafana panel structure imported from github.com/grafana-tools/sdk */
485
+ Panel: Record<string, never>;
486
+ Prometheus: {
487
+ /** @description The prometheus URL of the prometheus. */
488
+ prometheusUrl?: string;
489
+ /** @description The selected prometheus boards configs of the prometheus. */
490
+ selectedPrometheusBoardsConfigs?: {
491
+ /** @description Placeholder for GrafanaBoard definition (define fields as needed) */
492
+ board?: Record<string, never>;
493
+ /** @description Panels selected for the Grafana board configuration. */
494
+ panels?: Record<string, never>[];
495
+ /** @description Template variables applied to the selected Grafana board configuration. */
496
+ templateVars?: string[];
497
+ }[];
498
+ };
499
+ LoadTestPreferences: {
500
+ /** @description Concurrent requests */
501
+ c?: number;
502
+ /** @description Queries per second */
503
+ qps?: number;
504
+ /** @description Duration */
505
+ t?: string;
506
+ /** @description Load generator */
507
+ gen?: string;
508
+ };
509
+ /** @description Various online profiles associated with the user account, like GitHub, LinkedIn, X, and so on. */
510
+ Social: {
511
+ /** @description The site of the social. */
512
+ site: string;
513
+ /**
514
+ * Format: uri
515
+ * @description The link of the social.
516
+ */
517
+ link: string;
518
+ };
519
+ };
520
+ responses: never;
521
+ parameters: never;
522
+ requestBodies: never;
523
+ headers: never;
524
+ pathItems: never;
525
+ }
526
+ export type $defs = Record<string, never>;
527
+ export type operations = Record<string, never>;
@@ -0,0 +1 @@
1
+ 'use strict';
File without changes
@@ -0,0 +1,2 @@
1
+ declare const UserSchema: Record<string, unknown>;
2
+ export default UserSchema;
@@ -0,0 +1,2 @@
1
+ 'use strict';var e={openapi:"3.0.3",info:{title:"User",description:"OpenAPI schema for user management in Meshery Cloud.",version:"v1beta3",contact:{name:"Meshery Maintainers",email:"maintainers@meshery.io",url:"https://meshery.io"},license:{name:"Apache 2.0",url:"https://www.apache.org/licenses/LICENSE-2.0.html"}},paths:{},components:{schemas:{User:{type:"object",description:"Represents a user",required:["id","provider","email","firstName","lastName","status","createdAt","updatedAt","lastLoginTime","deletedAt"],properties:{id:{description:"Unique identifier for the user","x-go-name":"ID","x-oapi-codegen-extra-tags":{db:"id",json:"id"},type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"}},provider:{type:"string",maxLength:100,description:"Authentication provider (e.g., Google, Github)",example:["local","github","google","twitter"],"x-oapi-codegen-extra-tags":{db:"provider",json:"provider"}},email:{type:"string",format:"email",maxLength:300,description:"User's email address","x-oapi-codegen-extra-tags":{db:"email",json:"email"}},firstName:{type:"string",maxLength:200,description:"User's first name","x-oapi-codegen-extra-tags":{db:"first_name",json:"firstName"}},lastName:{type:"string",maxLength:300,description:"User's last name","x-oapi-codegen-extra-tags":{db:"last_name",json:"lastName"}},avatarUrl:{type:"string",format:"uri",maxLength:500,description:"URL to user's avatar image","x-oapi-codegen-extra-tags":{db:"avatar_url",json:"avatarUrl"}},status:{type:"string",maxLength:100,enum:["active","inactive","pending","anonymous"],description:"User account status","x-oapi-codegen-extra-tags":{db:"status",json:"status"}},bio:{type:"string",maxLength:1e3,default:"",description:"User's biography or description","x-oapi-codegen-extra-tags":{db:"bio",json:"bio"}},country:{type:"object",description:"User's country information stored as JSONB",additionalProperties:true,"x-go-type":"core.Map","x-go-type-skip-optional-pointer":true,"x-oapi-codegen-extra-tags":{db:"country",json:"country"}},region:{type:"object",description:"User's region information stored as JSONB",additionalProperties:true,"x-go-type":"core.Map","x-go-type-skip-optional-pointer":true,"x-oapi-codegen-extra-tags":{db:"region",json:"region"}},preferences:{"x-go-type":"Preference",description:"User preferences stored as JSONB","x-oapi-codegen-extra-tags":{db:"preferences",json:"preferences"},"x-generate-db-helpers":true,type:"object",required:["anonymousUsageStats","anonymousPerfResults","updatedAt","dashboardPreferences","selectedOrganizationId","selectedWorkspaceForOrganizations","usersExtensionPreferences","remoteProviderPreferences"],properties:{meshAdapters:{type:"array",items:{"x-go-type":"Adapter",type:"object",description:"Placeholder for Adapter struct definition."},description:"The mesh adapters of the preference."},grafana:{"x-go-type":"Grafana",type:"object",properties:{grafanaUrl:{type:"string",description:"Grafana URL for the user configuration.",maxLength:500},grafanaApiKey:{type:"string",description:"Grafana API key for the user configuration.",maxLength:500},selectedBoardsConfigs:{type:"array",items:{type:"object",properties:{board:{type:"object",description:"Placeholder for GrafanaBoard definition (define fields as needed)"},panels:{type:"array",items:{type:"object",description:"Grafana panel structure imported from github.com/grafana-tools/sdk"},description:"Panels selected for the Grafana board configuration."},templateVars:{type:"array",items:{type:"string"},description:"Template variables applied to the selected Grafana board configuration."}}},description:"Selected Grafana board configurations for the user."}}},prometheus:{"x-go-type":"Prometheus",type:"object",properties:{prometheusUrl:{type:"string",description:"The prometheus URL of the prometheus.",maxLength:500},selectedPrometheusBoardsConfigs:{type:"array",items:{type:"object",properties:{board:{type:"object",description:"Placeholder for GrafanaBoard definition (define fields as needed)"},panels:{type:"array",items:{type:"object",description:"Grafana panel structure imported from github.com/grafana-tools/sdk"},description:"Panels selected for the Grafana board configuration."},templateVars:{type:"array",items:{type:"string"},description:"Template variables applied to the selected Grafana board configuration."}}},description:"The selected prometheus boards configs of the prometheus."}}},loadTestPrefs:{"x-go-type":"LoadTestPreferences",type:"object",properties:{c:{type:"integer",description:"Concurrent requests",minimum:0},qps:{type:"integer",description:"Queries per second",minimum:0},t:{type:"string",description:"Duration",maxLength:500},gen:{type:"string",description:"Load generator",maxLength:500}}},anonymousUsageStats:{type:"boolean",description:"The anonymous usage stats of the preference."},anonymousPerfResults:{type:"boolean",description:"The anonymous perf results of the preference."},updatedAt:{type:"string",format:"date-time",description:"Timestamp of when the resource was last updated."},dashboardPreferences:{type:"object",additionalProperties:true,description:"The dashboard preferences of the preference."},selectedOrganizationId:{type:"string",description:"ID of the associated selectedOrganization.",maxLength:500,format:"uuid"},selectedWorkspaceForOrganizations:{type:"object",additionalProperties:{type:"string"},description:"The selected workspace for organizations of the preference."},usersExtensionPreferences:{type:"object",additionalProperties:true,description:"The users extension preferences of the preference."},remoteProviderPreferences:{type:"object",additionalProperties:true,description:"The remote provider preferences of the preference."}}},acceptedTermsAt:{description:"Timestamp when user accepted terms and conditions","x-oapi-codegen-extra-tags":{db:"accepted_terms_at",json:"acceptedTermsAt"},type:"string",format:"date-time","x-go-type-skip-optional-pointer":true},firstLoginTime:{description:"Timestamp of user's first login","x-oapi-codegen-extra-tags":{db:"first_login_time",json:"firstLoginTime"},type:"string",format:"date-time","x-go-type-skip-optional-pointer":true},lastLoginTime:{description:"Timestamp of user's most recent login","x-oapi-codegen-extra-tags":{db:"last_login_time",json:"lastLoginTime"},type:"string",format:"date-time","x-go-type-skip-optional-pointer":true},createdAt:{description:"Timestamp when the user record was created","x-oapi-codegen-extra-tags":{db:"created_at",json:"createdAt"},type:"string",format:"date-time","x-go-type-skip-optional-pointer":true},updatedAt:{description:"Timestamp when the user record was last updated","x-oapi-codegen-extra-tags":{db:"updated_at",json:"updatedAt"},type:"string",format:"date-time","x-go-type-skip-optional-pointer":true},socials:{type:"array",description:"Various online profiles associated with the user account","x-go-type":"UserSocials",items:{"x-go-type":"Social",description:"Various online profiles associated with the user account, like GitHub, LinkedIn, X, and so on.",type:"object",properties:{site:{type:"string",maxLength:50,description:"The site of the social."},link:{type:"string",format:"uri",description:"The link of the social."}},required:["site","link"]},"x-oapi-codegen-extra-tags":{db:"socials",json:"socials"}},deletedAt:{type:"string",format:"date-time",nullable:true,description:"Timestamp when the user record was soft-deleted (null if not deleted)","x-go-type":"core.NullTime","x-oapi-codegen-extra-tags":{db:"deleted_at",json:"deletedAt"}},roleNames:{type:"array","x-go-type":"pq.StringArray","x-go-type-import":{path:"github.com/lib/pq"},"x-go-type-skip-optional-pointer":true,items:{type:"string"},description:'Names of the global roles assigned to the user. Free-form, user-generated values sourced from the roles table (role_name is a varchar, not a fixed enumeration); the seeded system roles such as "admin", "organization admin" and "user" are a subset, not the whole set.',example:["organization admin","user"],"x-oapi-codegen-extra-tags":{db:"role_names",json:"roleNames"}},teams:{type:"object",description:"Teams the user belongs to with role information","x-oapi-codegen-extra-tags":{db:"teams",json:"teams"},properties:{teamsWithRoles:{type:"array",description:"Team memberships for the user with their assigned roles.",items:{type:"object",additionalProperties:false,description:"A team the user is a member of, together with the names of the roles assigned to that user within the team. Returned as an item of User.teams.teamsWithRoles. The role names are dynamic, user-generated values (no fixed enumeration).",required:["id","name","roleNames"],properties:{id:{description:"Unique identifier of the team.","x-go-name":"ID","x-order":1,"x-oapi-codegen-extra-tags":{db:"id",json:"id,omitempty"},type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"}},name:{type:"string",description:"Name of the team.","x-order":2,"x-oapi-codegen-extra-tags":{db:"name",json:"name,omitempty"}},description:{type:"string",description:"Human readable description of the team.","x-order":3,"x-oapi-codegen-extra-tags":{db:"description",json:"description,omitempty"}},owner:{description:"Identifier of the team owner.","x-order":4,"x-oapi-codegen-extra-tags":{db:"owner",json:"owner,omitempty"},type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"}},metadata:{type:"object",additionalProperties:true,description:"Free-form metadata associated with the team.","x-go-type":"core.Map","x-go-type-skip-optional-pointer":true,"x-order":5,"x-oapi-codegen-extra-tags":{db:"metadata",json:"metadata,omitempty"}},createdAt:{description:"Timestamp when the team was created.","x-order":6,"x-oapi-codegen-extra-tags":{db:"created_at",json:"createdAt,omitempty"},type:"string",format:"date-time","x-go-type-skip-optional-pointer":true},updatedAt:{description:"Timestamp when the team was last updated.","x-order":7,"x-oapi-codegen-extra-tags":{db:"updated_at",json:"updatedAt,omitempty"},type:"string",format:"date-time","x-go-type-skip-optional-pointer":true},deletedAt:{type:"string",format:"date-time",nullable:true,description:"Timestamp when the team was soft-deleted (null if not deleted).","x-go-type":"core.NullTime","x-order":8,"x-oapi-codegen-extra-tags":{db:"deleted_at",json:"deletedAt,omitempty"}},roleNames:{type:"array","x-go-type":"pq.StringArray","x-go-type-import":{path:"github.com/lib/pq"},description:"Names of the roles assigned to the user within this team. Free-form, user-generated role names; not a fixed enumeration.",items:{type:"string"},"x-order":9,"x-oapi-codegen-extra-tags":{db:"role_names",json:"roleNames"}}}},"x-oapi-codegen-extra-tags":{db:"teams_with_roles",json:"teamsWithRoles"}},totalCount:{type:"integer",description:"Total number of team memberships returned for the user.",minimum:0,"x-oapi-codegen-extra-tags":{db:"total_count",json:"totalCount"}}}},organizations:{type:"object",description:"Organizations the user belongs to with role information","x-oapi-codegen-extra-tags":{db:"organizations",json:"organizations"},properties:{organizationsWithRoles:{type:"array",description:"Organization memberships for the user with their assigned roles.",items:{type:"object",additionalProperties:false,description:"An organization the user is a member of, together with the names of the roles assigned to that user within the organization. Returned as an item of User.organizations.organizationsWithRoles. The role names are dynamic, user-generated values (no fixed enumeration).",required:["id","name","roleNames"],properties:{id:{description:"Unique identifier of the organization.","x-go-name":"ID","x-order":1,"x-oapi-codegen-extra-tags":{db:"id",json:"id,omitempty"},type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"}},name:{type:"string",description:"Name of the organization.","x-order":2,"x-oapi-codegen-extra-tags":{db:"name",json:"name,omitempty"}},description:{type:"string",description:"Human readable description of the organization.","x-order":3,"x-oapi-codegen-extra-tags":{db:"description",json:"description,omitempty"}},country:{type:"string",description:"Country associated with the organization.","x-order":4,"x-oapi-codegen-extra-tags":{db:"country",json:"country,omitempty"}},region:{type:"string",description:"Region associated with the organization.","x-order":5,"x-oapi-codegen-extra-tags":{db:"region",json:"region,omitempty"}},owner:{description:"Identifier of the organization owner.","x-order":6,"x-oapi-codegen-extra-tags":{db:"owner",json:"owner,omitempty"},type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"}},createdAt:{description:"Timestamp when the organization was created.","x-order":7,"x-oapi-codegen-extra-tags":{db:"created_at",json:"createdAt,omitempty"},type:"string",format:"date-time","x-go-type-skip-optional-pointer":true},updatedAt:{description:"Timestamp when the organization was last updated.","x-order":8,"x-oapi-codegen-extra-tags":{db:"updated_at",json:"updatedAt,omitempty"},type:"string",format:"date-time","x-go-type-skip-optional-pointer":true},deletedAt:{type:"string",format:"date-time",nullable:true,description:"Timestamp when the organization was soft-deleted (null if not deleted).","x-go-type":"core.NullTime","x-order":9,"x-oapi-codegen-extra-tags":{db:"deleted_at",json:"deletedAt,omitempty"}},roleNames:{type:"array","x-go-type":"pq.StringArray","x-go-type-import":{path:"github.com/lib/pq"},description:"Names of the roles assigned to the user within this organization. Free-form, user-generated role names; not a fixed enumeration.",items:{type:"string"},"x-order":10,"x-oapi-codegen-extra-tags":{db:"role_names",json:"roleNames"}}}},"x-oapi-codegen-extra-tags":{db:"organizations_with_roles",json:"organizationsWithRoles"}},totalCount:{type:"integer",description:"Total number of organization memberships returned for the user.",minimum:0,"x-oapi-codegen-extra-tags":{db:"total_count",json:"totalCount"}}}}},additionalProperties:false},UserEmailAddress:{type:"object",additionalProperties:false,description:"One email address associated with a user account. A user has exactly one primary address (mirrored in users.email) and any number of secondary addresses accumulated from account consolidation or explicit addition. Uniqueness across live addresses is enforced case-insensitively.",required:["id","userId","email","verified","isPrimary","source","createdAt","updatedAt"],properties:{id:{description:"Unique identifier for this email-address record","x-go-name":"ID","x-oapi-codegen-extra-tags":{db:"id",json:"id"},type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"}},userId:{description:"The user (users.id) this address belongs to","x-oapi-codegen-extra-tags":{db:"owner",json:"userId"},type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"}},email:{type:"string",format:"email",maxLength:300,description:"The email address","x-oapi-codegen-extra-tags":{db:"email",json:"email"}},verified:{type:"boolean",default:false,description:"Whether the address was verified (per Kratos verifiable addresses) at record time","x-oapi-codegen-extra-tags":{db:"verified",json:"verified"}},isPrimary:{type:"boolean",default:false,description:"Exactly one live primary address per user; mirrors users.email","x-oapi-codegen-extra-tags":{db:"is_primary",json:"isPrimary"}},source:{type:"string",enum:["signup","consolidation","backfill","manual"],description:"How this address became associated with the account","x-oapi-codegen-extra-tags":{db:"source",json:"source"}},createdAt:{"x-oapi-codegen-extra-tags":{db:"created_at",json:"createdAt"},type:"string",format:"date-time","x-go-type-skip-optional-pointer":true},updatedAt:{"x-oapi-codegen-extra-tags":{db:"updated_at",json:"updatedAt"},type:"string",format:"date-time","x-go-type-skip-optional-pointer":true},deletedAt:{"x-oapi-codegen-extra-tags":{db:"deleted_at",json:"deletedAt"},description:"SQL null Timestamp to handle null values of time.","x-go-type":"meshcore.NullTime","x-go-type-import":{name:"meshcore",path:"github.com/meshery/schemas/models/core"},type:"string",format:"date-time","x-go-type-skip-optional-pointer":true}}},OrganizationWithRoles:{type:"object",additionalProperties:false,description:"An organization the user is a member of, together with the names of the roles assigned to that user within the organization. Returned as an item of User.organizations.organizationsWithRoles. The role names are dynamic, user-generated values (no fixed enumeration).",required:["id","name","roleNames"],properties:{id:{description:"Unique identifier of the organization.","x-go-name":"ID","x-order":1,"x-oapi-codegen-extra-tags":{db:"id",json:"id,omitempty"},type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"}},name:{type:"string",description:"Name of the organization.","x-order":2,"x-oapi-codegen-extra-tags":{db:"name",json:"name,omitempty"}},description:{type:"string",description:"Human readable description of the organization.","x-order":3,"x-oapi-codegen-extra-tags":{db:"description",json:"description,omitempty"}},country:{type:"string",description:"Country associated with the organization.","x-order":4,"x-oapi-codegen-extra-tags":{db:"country",json:"country,omitempty"}},region:{type:"string",description:"Region associated with the organization.","x-order":5,"x-oapi-codegen-extra-tags":{db:"region",json:"region,omitempty"}},owner:{description:"Identifier of the organization owner.","x-order":6,"x-oapi-codegen-extra-tags":{db:"owner",json:"owner,omitempty"},type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"}},createdAt:{description:"Timestamp when the organization was created.","x-order":7,"x-oapi-codegen-extra-tags":{db:"created_at",json:"createdAt,omitempty"},type:"string",format:"date-time","x-go-type-skip-optional-pointer":true},updatedAt:{description:"Timestamp when the organization was last updated.","x-order":8,"x-oapi-codegen-extra-tags":{db:"updated_at",json:"updatedAt,omitempty"},type:"string",format:"date-time","x-go-type-skip-optional-pointer":true},deletedAt:{type:"string",format:"date-time",nullable:true,description:"Timestamp when the organization was soft-deleted (null if not deleted).","x-go-type":"core.NullTime","x-order":9,"x-oapi-codegen-extra-tags":{db:"deleted_at",json:"deletedAt,omitempty"}},roleNames:{type:"array","x-go-type":"pq.StringArray","x-go-type-import":{path:"github.com/lib/pq"},description:"Names of the roles assigned to the user within this organization. Free-form, user-generated role names; not a fixed enumeration.",items:{type:"string"},"x-order":10,"x-oapi-codegen-extra-tags":{db:"role_names",json:"roleNames"}}}},TeamWithRoles:{type:"object",additionalProperties:false,description:"A team the user is a member of, together with the names of the roles assigned to that user within the team. Returned as an item of User.teams.teamsWithRoles. The role names are dynamic, user-generated values (no fixed enumeration).",required:["id","name","roleNames"],properties:{id:{description:"Unique identifier of the team.","x-go-name":"ID","x-order":1,"x-oapi-codegen-extra-tags":{db:"id",json:"id,omitempty"},type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"}},name:{type:"string",description:"Name of the team.","x-order":2,"x-oapi-codegen-extra-tags":{db:"name",json:"name,omitempty"}},description:{type:"string",description:"Human readable description of the team.","x-order":3,"x-oapi-codegen-extra-tags":{db:"description",json:"description,omitempty"}},owner:{description:"Identifier of the team owner.","x-order":4,"x-oapi-codegen-extra-tags":{db:"owner",json:"owner,omitempty"},type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"}},metadata:{type:"object",additionalProperties:true,description:"Free-form metadata associated with the team.","x-go-type":"core.Map","x-go-type-skip-optional-pointer":true,"x-order":5,"x-oapi-codegen-extra-tags":{db:"metadata",json:"metadata,omitempty"}},createdAt:{description:"Timestamp when the team was created.","x-order":6,"x-oapi-codegen-extra-tags":{db:"created_at",json:"createdAt,omitempty"},type:"string",format:"date-time","x-go-type-skip-optional-pointer":true},updatedAt:{description:"Timestamp when the team was last updated.","x-order":7,"x-oapi-codegen-extra-tags":{db:"updated_at",json:"updatedAt,omitempty"},type:"string",format:"date-time","x-go-type-skip-optional-pointer":true},deletedAt:{type:"string",format:"date-time",nullable:true,description:"Timestamp when the team was soft-deleted (null if not deleted).","x-go-type":"core.NullTime","x-order":8,"x-oapi-codegen-extra-tags":{db:"deleted_at",json:"deletedAt,omitempty"}},roleNames:{type:"array","x-go-type":"pq.StringArray","x-go-type-import":{path:"github.com/lib/pq"},description:"Names of the roles assigned to the user within this team. Free-form, user-generated role names; not a fixed enumeration.",items:{type:"string"},"x-order":9,"x-oapi-codegen-extra-tags":{db:"role_names",json:"roleNames"}}}},Preference:{"x-generate-db-helpers":true,type:"object",required:["anonymousUsageStats","anonymousPerfResults","updatedAt","dashboardPreferences","selectedOrganizationId","selectedWorkspaceForOrganizations","usersExtensionPreferences","remoteProviderPreferences"],properties:{meshAdapters:{type:"array",items:{"x-go-type":"Adapter",type:"object",description:"Placeholder for Adapter struct definition."},description:"The mesh adapters of the preference."},grafana:{"x-go-type":"Grafana",type:"object",properties:{grafanaUrl:{type:"string",description:"Grafana URL for the user configuration.",maxLength:500},grafanaApiKey:{type:"string",description:"Grafana API key for the user configuration.",maxLength:500},selectedBoardsConfigs:{type:"array",items:{type:"object",properties:{board:{type:"object",description:"Placeholder for GrafanaBoard definition (define fields as needed)"},panels:{type:"array",items:{type:"object",description:"Grafana panel structure imported from github.com/grafana-tools/sdk"},description:"Panels selected for the Grafana board configuration."},templateVars:{type:"array",items:{type:"string"},description:"Template variables applied to the selected Grafana board configuration."}}},description:"Selected Grafana board configurations for the user."}}},prometheus:{"x-go-type":"Prometheus",type:"object",properties:{prometheusUrl:{type:"string",description:"The prometheus URL of the prometheus.",maxLength:500},selectedPrometheusBoardsConfigs:{type:"array",items:{type:"object",properties:{board:{type:"object",description:"Placeholder for GrafanaBoard definition (define fields as needed)"},panels:{type:"array",items:{type:"object",description:"Grafana panel structure imported from github.com/grafana-tools/sdk"},description:"Panels selected for the Grafana board configuration."},templateVars:{type:"array",items:{type:"string"},description:"Template variables applied to the selected Grafana board configuration."}}},description:"The selected prometheus boards configs of the prometheus."}}},loadTestPrefs:{"x-go-type":"LoadTestPreferences",type:"object",properties:{c:{type:"integer",description:"Concurrent requests",minimum:0},qps:{type:"integer",description:"Queries per second",minimum:0},t:{type:"string",description:"Duration",maxLength:500},gen:{type:"string",description:"Load generator",maxLength:500}}},anonymousUsageStats:{type:"boolean",description:"The anonymous usage stats of the preference."},anonymousPerfResults:{type:"boolean",description:"The anonymous perf results of the preference."},updatedAt:{type:"string",format:"date-time",description:"Timestamp of when the resource was last updated."},dashboardPreferences:{type:"object",additionalProperties:true,description:"The dashboard preferences of the preference."},selectedOrganizationId:{type:"string",description:"ID of the associated selectedOrganization.",maxLength:500,format:"uuid"},selectedWorkspaceForOrganizations:{type:"object",additionalProperties:{type:"string"},description:"The selected workspace for organizations of the preference."},usersExtensionPreferences:{type:"object",additionalProperties:true,description:"The users extension preferences of the preference."},remoteProviderPreferences:{type:"object",additionalProperties:true,description:"The remote provider preferences of the preference."}}},Adapter:{type:"object",description:"Placeholder for Adapter struct definition."},Grafana:{type:"object",properties:{grafanaUrl:{type:"string",description:"Grafana URL for the user configuration.",maxLength:500},grafanaApiKey:{type:"string",description:"Grafana API key for the user configuration.",maxLength:500},selectedBoardsConfigs:{type:"array",items:{type:"object",properties:{board:{type:"object",description:"Placeholder for GrafanaBoard definition (define fields as needed)"},panels:{type:"array",items:{type:"object",description:"Grafana panel structure imported from github.com/grafana-tools/sdk"},description:"Panels selected for the Grafana board configuration."},templateVars:{type:"array",items:{type:"string"},description:"Template variables applied to the selected Grafana board configuration."}}},description:"Selected Grafana board configurations for the user."}}},SelectedGrafanaConfig:{type:"object",properties:{board:{type:"object",description:"Placeholder for GrafanaBoard definition (define fields as needed)"},panels:{type:"array",items:{type:"object",description:"Grafana panel structure imported from github.com/grafana-tools/sdk"},description:"Panels selected for the Grafana board configuration."},templateVars:{type:"array",items:{type:"string"},description:"Template variables applied to the selected Grafana board configuration."}}},GrafanaBoard:{type:"object",description:"Placeholder for GrafanaBoard definition (define fields as needed)"},Panel:{type:"object",description:"Grafana panel structure imported from github.com/grafana-tools/sdk"},Prometheus:{type:"object",properties:{prometheusUrl:{type:"string",description:"The prometheus URL of the prometheus.",maxLength:500},selectedPrometheusBoardsConfigs:{type:"array",items:{type:"object",properties:{board:{type:"object",description:"Placeholder for GrafanaBoard definition (define fields as needed)"},panels:{type:"array",items:{type:"object",description:"Grafana panel structure imported from github.com/grafana-tools/sdk"},description:"Panels selected for the Grafana board configuration."},templateVars:{type:"array",items:{type:"string"},description:"Template variables applied to the selected Grafana board configuration."}}},description:"The selected prometheus boards configs of the prometheus."}}},LoadTestPreferences:{type:"object",properties:{c:{type:"integer",description:"Concurrent requests",minimum:0},qps:{type:"integer",description:"Queries per second",minimum:0},t:{type:"string",description:"Duration",maxLength:500},gen:{type:"string",description:"Load generator",maxLength:500}}},Social:{description:"Various online profiles associated with the user account, like GitHub, LinkedIn, X, and so on.",type:"object",properties:{site:{type:"string",maxLength:50,description:"The site of the social."},link:{type:"string",format:"uri",description:"The link of the social."}},required:["site","link"]}}}},t=e;
2
+ module.exports=t;