@meshery/schemas 1.3.93 → 1.3.95
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cloudApi.d.mts +230 -1
- package/dist/cloudApi.d.ts +230 -1
- package/dist/cloudApi.js +1 -1
- package/dist/cloudApi.mjs +1 -1
- package/dist/constructs/v1beta2/user/User.d.ts +194 -0
- package/dist/constructs/v1beta2/user/UserSchema.js +1 -1
- package/dist/constructs/v1beta2/user/UserSchema.mjs +1 -1
- package/dist/constructs/v1beta3/profile/Profile.d.ts +1 -1
- package/dist/constructs/v1beta3/profile/ProfileSchema.js +1 -1
- package/dist/constructs/v1beta3/profile/ProfileSchema.mjs +1 -1
- package/package.json +1 -1
|
@@ -58,6 +58,26 @@ export interface paths {
|
|
|
58
58
|
patch?: never;
|
|
59
59
|
trace?: never;
|
|
60
60
|
};
|
|
61
|
+
"/api/identity/users/preferences": {
|
|
62
|
+
parameters: {
|
|
63
|
+
query?: never;
|
|
64
|
+
header?: never;
|
|
65
|
+
path?: never;
|
|
66
|
+
cookie?: never;
|
|
67
|
+
};
|
|
68
|
+
get?: never;
|
|
69
|
+
/**
|
|
70
|
+
* Update the current user's preferences
|
|
71
|
+
* @description Merges the payload onto the signed-in user's stored preferences. A key the payload names replaces the stored value; a key it leaves out keeps the stored value. Setting selectedOrganizationId switches the organization the user's session has selected, as Meshery Cloud's and Meshery's organization switchers do. Badges are server-owned and are never changed through this operation.
|
|
72
|
+
*/
|
|
73
|
+
put: operations["updateUserPreferences"];
|
|
74
|
+
post?: never;
|
|
75
|
+
delete?: never;
|
|
76
|
+
options?: never;
|
|
77
|
+
head?: never;
|
|
78
|
+
patch?: never;
|
|
79
|
+
trace?: never;
|
|
80
|
+
};
|
|
61
81
|
"/api/identity/users/profile/details": {
|
|
62
82
|
parameters: {
|
|
63
83
|
query?: never;
|
|
@@ -1199,6 +1219,74 @@ export interface components {
|
|
|
1199
1219
|
[key: string]: unknown;
|
|
1200
1220
|
};
|
|
1201
1221
|
};
|
|
1222
|
+
/** @description The client-settable fields of Preference for updateUserPreferences. Every field is optional: the server merges the ones present onto the stored preferences and keeps the rest. updatedAt is server-recorded and is not settable. */
|
|
1223
|
+
PreferencePayload: {
|
|
1224
|
+
/** @description The mesh adapters of the preference. */
|
|
1225
|
+
meshAdapters?: Record<string, never>[];
|
|
1226
|
+
grafana?: {
|
|
1227
|
+
/** @description Grafana URL for the user configuration. */
|
|
1228
|
+
grafanaUrl?: string;
|
|
1229
|
+
/** @description Grafana API key for the user configuration. */
|
|
1230
|
+
grafanaApiKey?: string;
|
|
1231
|
+
/** @description Selected Grafana board configurations for the user. */
|
|
1232
|
+
selectedBoardsConfigs?: {
|
|
1233
|
+
/** @description Placeholder for GrafanaBoard definition (define fields as needed) */
|
|
1234
|
+
board?: Record<string, never>;
|
|
1235
|
+
/** @description Panels selected for the Grafana board configuration. */
|
|
1236
|
+
panels?: Record<string, never>[];
|
|
1237
|
+
/** @description Template variables applied to the selected Grafana board configuration. */
|
|
1238
|
+
templateVars?: string[];
|
|
1239
|
+
}[];
|
|
1240
|
+
};
|
|
1241
|
+
prometheus?: {
|
|
1242
|
+
/** @description The prometheus URL of the prometheus. */
|
|
1243
|
+
prometheusUrl?: string;
|
|
1244
|
+
/** @description The selected prometheus boards configs of the prometheus. */
|
|
1245
|
+
selectedPrometheusBoardsConfigs?: {
|
|
1246
|
+
/** @description Placeholder for GrafanaBoard definition (define fields as needed) */
|
|
1247
|
+
board?: Record<string, never>;
|
|
1248
|
+
/** @description Panels selected for the Grafana board configuration. */
|
|
1249
|
+
panels?: Record<string, never>[];
|
|
1250
|
+
/** @description Template variables applied to the selected Grafana board configuration. */
|
|
1251
|
+
templateVars?: string[];
|
|
1252
|
+
}[];
|
|
1253
|
+
};
|
|
1254
|
+
loadTestPrefs?: {
|
|
1255
|
+
/** @description Concurrent requests */
|
|
1256
|
+
c?: number;
|
|
1257
|
+
/** @description Queries per second */
|
|
1258
|
+
qps?: number;
|
|
1259
|
+
/** @description Duration */
|
|
1260
|
+
t?: string;
|
|
1261
|
+
/** @description Load generator */
|
|
1262
|
+
gen?: string;
|
|
1263
|
+
};
|
|
1264
|
+
/** @description The anonymous usage stats of the preference. */
|
|
1265
|
+
anonymousUsageStats?: boolean;
|
|
1266
|
+
/** @description The anonymous perf results of the preference. */
|
|
1267
|
+
anonymousPerfResults?: boolean;
|
|
1268
|
+
/** @description The dashboard preferences of the preference. */
|
|
1269
|
+
dashboardPreferences?: {
|
|
1270
|
+
[key: string]: unknown;
|
|
1271
|
+
};
|
|
1272
|
+
/**
|
|
1273
|
+
* Format: uuid
|
|
1274
|
+
* @description ID of the organization to make the session's selected organization.
|
|
1275
|
+
*/
|
|
1276
|
+
selectedOrganizationId?: string;
|
|
1277
|
+
/** @description The selected workspace for organizations of the preference. */
|
|
1278
|
+
selectedWorkspaceForOrganizations?: {
|
|
1279
|
+
[key: string]: string;
|
|
1280
|
+
};
|
|
1281
|
+
/** @description The users extension preferences of the preference. */
|
|
1282
|
+
usersExtensionPreferences?: {
|
|
1283
|
+
[key: string]: unknown;
|
|
1284
|
+
};
|
|
1285
|
+
/** @description The remote provider preferences of the preference. */
|
|
1286
|
+
remoteProviderPreferences?: {
|
|
1287
|
+
[key: string]: unknown;
|
|
1288
|
+
};
|
|
1289
|
+
};
|
|
1202
1290
|
/** @description Placeholder for Adapter struct definition. */
|
|
1203
1291
|
Adapter: Record<string, never>;
|
|
1204
1292
|
Grafana: {
|
|
@@ -2548,6 +2636,112 @@ export interface operations {
|
|
|
2548
2636
|
};
|
|
2549
2637
|
};
|
|
2550
2638
|
};
|
|
2639
|
+
updateUserPreferences: {
|
|
2640
|
+
parameters: {
|
|
2641
|
+
query?: never;
|
|
2642
|
+
header?: never;
|
|
2643
|
+
path?: never;
|
|
2644
|
+
cookie?: never;
|
|
2645
|
+
};
|
|
2646
|
+
requestBody: {
|
|
2647
|
+
content: {
|
|
2648
|
+
"application/json": {
|
|
2649
|
+
/** @description The mesh adapters of the preference. */
|
|
2650
|
+
meshAdapters?: Record<string, never>[];
|
|
2651
|
+
grafana?: {
|
|
2652
|
+
/** @description Grafana URL for the user configuration. */
|
|
2653
|
+
grafanaUrl?: string;
|
|
2654
|
+
/** @description Grafana API key for the user configuration. */
|
|
2655
|
+
grafanaApiKey?: string;
|
|
2656
|
+
/** @description Selected Grafana board configurations for the user. */
|
|
2657
|
+
selectedBoardsConfigs?: {
|
|
2658
|
+
/** @description Placeholder for GrafanaBoard definition (define fields as needed) */
|
|
2659
|
+
board?: Record<string, never>;
|
|
2660
|
+
/** @description Panels selected for the Grafana board configuration. */
|
|
2661
|
+
panels?: Record<string, never>[];
|
|
2662
|
+
/** @description Template variables applied to the selected Grafana board configuration. */
|
|
2663
|
+
templateVars?: string[];
|
|
2664
|
+
}[];
|
|
2665
|
+
};
|
|
2666
|
+
prometheus?: {
|
|
2667
|
+
/** @description The prometheus URL of the prometheus. */
|
|
2668
|
+
prometheusUrl?: string;
|
|
2669
|
+
/** @description The selected prometheus boards configs of the prometheus. */
|
|
2670
|
+
selectedPrometheusBoardsConfigs?: {
|
|
2671
|
+
/** @description Placeholder for GrafanaBoard definition (define fields as needed) */
|
|
2672
|
+
board?: Record<string, never>;
|
|
2673
|
+
/** @description Panels selected for the Grafana board configuration. */
|
|
2674
|
+
panels?: Record<string, never>[];
|
|
2675
|
+
/** @description Template variables applied to the selected Grafana board configuration. */
|
|
2676
|
+
templateVars?: string[];
|
|
2677
|
+
}[];
|
|
2678
|
+
};
|
|
2679
|
+
loadTestPrefs?: {
|
|
2680
|
+
/** @description Concurrent requests */
|
|
2681
|
+
c?: number;
|
|
2682
|
+
/** @description Queries per second */
|
|
2683
|
+
qps?: number;
|
|
2684
|
+
/** @description Duration */
|
|
2685
|
+
t?: string;
|
|
2686
|
+
/** @description Load generator */
|
|
2687
|
+
gen?: string;
|
|
2688
|
+
};
|
|
2689
|
+
/** @description The anonymous usage stats of the preference. */
|
|
2690
|
+
anonymousUsageStats?: boolean;
|
|
2691
|
+
/** @description The anonymous perf results of the preference. */
|
|
2692
|
+
anonymousPerfResults?: boolean;
|
|
2693
|
+
/** @description The dashboard preferences of the preference. */
|
|
2694
|
+
dashboardPreferences?: {
|
|
2695
|
+
[key: string]: unknown;
|
|
2696
|
+
};
|
|
2697
|
+
/**
|
|
2698
|
+
* Format: uuid
|
|
2699
|
+
* @description ID of the organization to make the session's selected organization.
|
|
2700
|
+
*/
|
|
2701
|
+
selectedOrganizationId?: string;
|
|
2702
|
+
/** @description The selected workspace for organizations of the preference. */
|
|
2703
|
+
selectedWorkspaceForOrganizations?: {
|
|
2704
|
+
[key: string]: string;
|
|
2705
|
+
};
|
|
2706
|
+
/** @description The users extension preferences of the preference. */
|
|
2707
|
+
usersExtensionPreferences?: {
|
|
2708
|
+
[key: string]: unknown;
|
|
2709
|
+
};
|
|
2710
|
+
/** @description The remote provider preferences of the preference. */
|
|
2711
|
+
remoteProviderPreferences?: {
|
|
2712
|
+
[key: string]: unknown;
|
|
2713
|
+
};
|
|
2714
|
+
};
|
|
2715
|
+
};
|
|
2716
|
+
};
|
|
2717
|
+
responses: {
|
|
2718
|
+
/** @description Preferences updated */
|
|
2719
|
+
201: {
|
|
2720
|
+
headers: {
|
|
2721
|
+
[name: string]: unknown;
|
|
2722
|
+
};
|
|
2723
|
+
content?: never;
|
|
2724
|
+
};
|
|
2725
|
+
/** @description Expired JWT token used or insufficient privilege */
|
|
2726
|
+
401: {
|
|
2727
|
+
headers: {
|
|
2728
|
+
[name: string]: unknown;
|
|
2729
|
+
};
|
|
2730
|
+
content: {
|
|
2731
|
+
"text/plain": string;
|
|
2732
|
+
};
|
|
2733
|
+
};
|
|
2734
|
+
/** @description Internal server error */
|
|
2735
|
+
500: {
|
|
2736
|
+
headers: {
|
|
2737
|
+
[name: string]: unknown;
|
|
2738
|
+
};
|
|
2739
|
+
content: {
|
|
2740
|
+
"text/plain": string;
|
|
2741
|
+
};
|
|
2742
|
+
};
|
|
2743
|
+
};
|
|
2744
|
+
};
|
|
2551
2745
|
getUserProfileOverview: {
|
|
2552
2746
|
parameters: {
|
|
2553
2747
|
query?: never;
|