@meshery/schemas 0.8.110 → 0.8.112

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.
@@ -16,12 +16,193 @@ declare const KeySchema: {
16
16
  readonly description: "Operations related to authorization keys";
17
17
  }];
18
18
  readonly paths: {
19
- readonly "/api/auth/key": {
19
+ readonly "/api/identity/orgs/{orgID}/users/keys": {
20
+ readonly get: {
21
+ readonly tags: readonly ["users"];
22
+ readonly operationId: "getUserKeys";
23
+ readonly summary: "Get User Keys";
24
+ readonly description: "Get all keys based on roles assigned to user";
25
+ readonly parameters: readonly [{
26
+ readonly name: "orgID";
27
+ readonly in: "path";
28
+ readonly description: "Organization ID";
29
+ readonly required: true;
30
+ readonly schema: {
31
+ readonly type: "string";
32
+ readonly format: "uuid";
33
+ readonly description: "A Universally Unique Identifier used to uniquely identify entities in Meshery. The UUID core definition is used across different schemas.";
34
+ readonly "x-go-type": "uuid.UUID";
35
+ readonly "x-go-type-import": {
36
+ readonly path: "github.com/gofrs/uuid";
37
+ };
38
+ };
39
+ }];
40
+ readonly responses: {
41
+ readonly "200": {
42
+ readonly description: "Returns user keys based on roles assigned to user";
43
+ readonly content: {
44
+ readonly "application/json": {
45
+ readonly schema: {
46
+ readonly type: "object";
47
+ readonly required: readonly ["page", "page_size", "total_count", "keys"];
48
+ readonly properties: {
49
+ readonly page: {
50
+ readonly "x-order": 1;
51
+ readonly type: "integer";
52
+ readonly "x-go-type-skip-optional-pointer": true;
53
+ };
54
+ readonly page_size: {
55
+ readonly "x-order": 2;
56
+ readonly type: "integer";
57
+ readonly "x-go-type-skip-optional-pointer": true;
58
+ };
59
+ readonly total_count: {
60
+ readonly "x-order": 3;
61
+ readonly type: "integer";
62
+ readonly "x-go-type-skip-optional-pointer": true;
63
+ };
64
+ readonly keys: {
65
+ readonly type: "array";
66
+ readonly items: {
67
+ readonly "x-go-type": "Key";
68
+ readonly type: "object";
69
+ readonly description: "Represents an authorization key used for access control.";
70
+ readonly required: readonly ["id", "owner", "function", "category", "subcategory", "description", "created_at", "updated_at"];
71
+ readonly properties: {
72
+ readonly id: {
73
+ readonly type: "string";
74
+ readonly format: "uuid";
75
+ readonly description: "A Universally Unique Identifier used to uniquely identify entities in Meshery. The UUID core definition is used across different schemas.";
76
+ readonly "x-go-type": "uuid.UUID";
77
+ readonly "x-go-type-import": {
78
+ readonly path: "github.com/gofrs/uuid";
79
+ };
80
+ readonly "x-go-name": "ID";
81
+ readonly "x-oapi-codegen-extra-tags": {
82
+ readonly db: "id";
83
+ };
84
+ readonly "x-order": 1;
85
+ };
86
+ readonly owner: {
87
+ readonly type: "string";
88
+ readonly format: "uuid";
89
+ readonly description: "A Universally Unique Identifier used to uniquely identify entities in Meshery. The UUID core definition is used across different schemas.";
90
+ readonly "x-go-type": "uuid.UUID";
91
+ readonly "x-go-type-import": {
92
+ readonly path: "github.com/gofrs/uuid";
93
+ };
94
+ readonly "x-go-name": "Owner";
95
+ readonly "x-oapi-codegen-extra-tags": {
96
+ readonly db: "owner";
97
+ };
98
+ readonly "x-order": 2;
99
+ };
100
+ readonly function: {
101
+ readonly type: "string";
102
+ readonly description: "Operation permitted by the key.";
103
+ readonly "x-oapi-codegen-extra-tags": {
104
+ readonly db: "function";
105
+ };
106
+ readonly "x-order": 3;
107
+ };
108
+ readonly category: {
109
+ readonly type: "string";
110
+ readonly description: "Category for the key.";
111
+ readonly "x-oapi-codegen-extra-tags": {
112
+ readonly db: "category";
113
+ };
114
+ readonly "x-order": 4;
115
+ };
116
+ readonly subcategory: {
117
+ readonly type: "string";
118
+ readonly description: "Subcategory for the key.";
119
+ readonly "x-oapi-codegen-extra-tags": {
120
+ readonly db: "subcategory";
121
+ };
122
+ readonly "x-order": 5;
123
+ };
124
+ readonly description: {
125
+ readonly type: "string";
126
+ readonly description: "Human readable description of the key.";
127
+ readonly "x-oapi-codegen-extra-tags": {
128
+ readonly db: "description";
129
+ };
130
+ readonly "x-order": 6;
131
+ };
132
+ readonly created_at: {
133
+ readonly "x-order": 7;
134
+ readonly description: "Timestamp when the resource was created.";
135
+ readonly "x-go-type": "time.Time";
136
+ readonly type: "string";
137
+ readonly format: "date-time";
138
+ readonly "x-go-name": "CreatedAt";
139
+ readonly "x-oapi-codegen-extra-tags": {
140
+ readonly db: "created_at";
141
+ readonly yaml: "created_at";
142
+ };
143
+ readonly "x-go-type-skip-optional-pointer": true;
144
+ };
145
+ readonly updated_at: {
146
+ readonly "x-order": 8;
147
+ readonly description: "Timestamp when the resource was updated.";
148
+ readonly "x-go-type": "time.Time";
149
+ readonly type: "string";
150
+ readonly format: "date-time";
151
+ readonly "x-go-name": "UpdatedAt";
152
+ readonly "x-oapi-codegen-extra-tags": {
153
+ readonly db: "updated_at";
154
+ readonly yaml: "updated_at";
155
+ };
156
+ readonly "x-go-type-skip-optional-pointer": true;
157
+ };
158
+ readonly deleted_at: {
159
+ readonly "x-oapi-codegen-extra-tags": {
160
+ readonly db: "deleted_at";
161
+ };
162
+ readonly "x-order": 9;
163
+ readonly description: "SQL null Timestamp to handle null values of time.";
164
+ readonly "x-go-type": "sql.NullTime";
165
+ readonly type: "string";
166
+ readonly "x-go-type-skip-optional-pointer": true;
167
+ };
168
+ };
169
+ };
170
+ readonly "x-order": 4;
171
+ };
172
+ };
173
+ };
174
+ };
175
+ };
176
+ };
177
+ readonly "401": {
178
+ readonly description: "Expired JWT token used or insufficient privilege";
179
+ readonly content: {
180
+ readonly "text/plain": {
181
+ readonly schema: {
182
+ readonly type: "string";
183
+ };
184
+ };
185
+ };
186
+ };
187
+ readonly "500": {
188
+ readonly description: "Internal server error";
189
+ readonly content: {
190
+ readonly "text/plain": {
191
+ readonly schema: {
192
+ readonly type: "string";
193
+ };
194
+ };
195
+ };
196
+ };
197
+ };
198
+ };
199
+ };
200
+ readonly "/api/auth/keys": {
20
201
  readonly get: {
21
202
  readonly "x-internal": readonly ["cloud"];
22
203
  readonly tags: readonly ["Key"];
23
204
  readonly summary: "List key";
24
- readonly operationId: "getKey";
205
+ readonly operationId: "getKeys";
25
206
  readonly parameters: readonly [{
26
207
  readonly name: "page";
27
208
  readonly in: "query";
@@ -53,7 +234,7 @@ declare const KeySchema: {
53
234
  }];
54
235
  readonly responses: {
55
236
  readonly "200": {
56
- readonly description: "Key fetched successfully";
237
+ readonly description: "Keys fetched";
57
238
  readonly content: {
58
239
  readonly "application/json": {
59
240
  readonly schema: {
@@ -84,32 +265,32 @@ declare const KeySchema: {
84
265
  readonly required: readonly ["id", "owner", "function", "category", "subcategory", "description", "created_at", "updated_at"];
85
266
  readonly properties: {
86
267
  readonly id: {
87
- readonly description: "Unique identifier for the key.";
268
+ readonly type: "string";
269
+ readonly format: "uuid";
270
+ readonly description: "A Universally Unique Identifier used to uniquely identify entities in Meshery. The UUID core definition is used across different schemas.";
271
+ readonly "x-go-type": "uuid.UUID";
272
+ readonly "x-go-type-import": {
273
+ readonly path: "github.com/gofrs/uuid";
274
+ };
88
275
  readonly "x-go-name": "ID";
89
276
  readonly "x-oapi-codegen-extra-tags": {
90
277
  readonly db: "id";
91
278
  };
92
279
  readonly "x-order": 1;
280
+ };
281
+ readonly owner: {
93
282
  readonly type: "string";
94
283
  readonly format: "uuid";
284
+ readonly description: "A Universally Unique Identifier used to uniquely identify entities in Meshery. The UUID core definition is used across different schemas.";
95
285
  readonly "x-go-type": "uuid.UUID";
96
286
  readonly "x-go-type-import": {
97
287
  readonly path: "github.com/gofrs/uuid";
98
288
  };
99
- };
100
- readonly owner: {
101
- readonly description: "Owner of the key.";
102
289
  readonly "x-go-name": "Owner";
103
290
  readonly "x-oapi-codegen-extra-tags": {
104
291
  readonly db: "owner";
105
292
  };
106
293
  readonly "x-order": 2;
107
- readonly type: "string";
108
- readonly format: "uuid";
109
- readonly "x-go-type": "uuid.UUID";
110
- readonly "x-go-type-import": {
111
- readonly path: "github.com/gofrs/uuid";
112
- };
113
294
  };
114
295
  readonly function: {
115
296
  readonly type: "string";
@@ -234,14 +415,14 @@ declare const KeySchema: {
234
415
  readonly description: "Payload for creating or updating a key.";
235
416
  readonly properties: {
236
417
  readonly id: {
237
- readonly description: "Existing key identifier for updates.";
238
- readonly "x-order": 1;
239
418
  readonly type: "string";
240
419
  readonly format: "uuid";
420
+ readonly description: "A Universally Unique Identifier used to uniquely identify entities in Meshery. The UUID core definition is used across different schemas.";
241
421
  readonly "x-go-type": "uuid.UUID";
242
422
  readonly "x-go-type-import": {
243
423
  readonly path: "github.com/gofrs/uuid";
244
424
  };
425
+ readonly "x-order": 1;
245
426
  };
246
427
  readonly function: {
247
428
  readonly type: "string";
@@ -279,32 +460,32 @@ declare const KeySchema: {
279
460
  readonly required: readonly ["id", "owner", "function", "category", "subcategory", "description", "created_at", "updated_at"];
280
461
  readonly properties: {
281
462
  readonly id: {
282
- readonly description: "Unique identifier for the key.";
463
+ readonly type: "string";
464
+ readonly format: "uuid";
465
+ readonly description: "A Universally Unique Identifier used to uniquely identify entities in Meshery. The UUID core definition is used across different schemas.";
466
+ readonly "x-go-type": "uuid.UUID";
467
+ readonly "x-go-type-import": {
468
+ readonly path: "github.com/gofrs/uuid";
469
+ };
283
470
  readonly "x-go-name": "ID";
284
471
  readonly "x-oapi-codegen-extra-tags": {
285
472
  readonly db: "id";
286
473
  };
287
474
  readonly "x-order": 1;
475
+ };
476
+ readonly owner: {
288
477
  readonly type: "string";
289
478
  readonly format: "uuid";
479
+ readonly description: "A Universally Unique Identifier used to uniquely identify entities in Meshery. The UUID core definition is used across different schemas.";
290
480
  readonly "x-go-type": "uuid.UUID";
291
481
  readonly "x-go-type-import": {
292
482
  readonly path: "github.com/gofrs/uuid";
293
483
  };
294
- };
295
- readonly owner: {
296
- readonly description: "Owner of the key.";
297
484
  readonly "x-go-name": "Owner";
298
485
  readonly "x-oapi-codegen-extra-tags": {
299
486
  readonly db: "owner";
300
487
  };
301
488
  readonly "x-order": 2;
302
- readonly type: "string";
303
- readonly format: "uuid";
304
- readonly "x-go-type": "uuid.UUID";
305
- readonly "x-go-type-import": {
306
- readonly path: "github.com/gofrs/uuid";
307
- };
308
489
  };
309
490
  readonly function: {
310
491
  readonly type: "string";
@@ -444,32 +625,32 @@ declare const KeySchema: {
444
625
  readonly required: readonly ["id", "owner", "function", "category", "subcategory", "description", "created_at", "updated_at"];
445
626
  readonly properties: {
446
627
  readonly id: {
447
- readonly description: "Unique identifier for the key.";
628
+ readonly type: "string";
629
+ readonly format: "uuid";
630
+ readonly description: "A Universally Unique Identifier used to uniquely identify entities in Meshery. The UUID core definition is used across different schemas.";
631
+ readonly "x-go-type": "uuid.UUID";
632
+ readonly "x-go-type-import": {
633
+ readonly path: "github.com/gofrs/uuid";
634
+ };
448
635
  readonly "x-go-name": "ID";
449
636
  readonly "x-oapi-codegen-extra-tags": {
450
637
  readonly db: "id";
451
638
  };
452
639
  readonly "x-order": 1;
640
+ };
641
+ readonly owner: {
453
642
  readonly type: "string";
454
643
  readonly format: "uuid";
644
+ readonly description: "A Universally Unique Identifier used to uniquely identify entities in Meshery. The UUID core definition is used across different schemas.";
455
645
  readonly "x-go-type": "uuid.UUID";
456
646
  readonly "x-go-type-import": {
457
647
  readonly path: "github.com/gofrs/uuid";
458
648
  };
459
- };
460
- readonly owner: {
461
- readonly description: "Owner of the key.";
462
649
  readonly "x-go-name": "Owner";
463
650
  readonly "x-oapi-codegen-extra-tags": {
464
651
  readonly db: "owner";
465
652
  };
466
653
  readonly "x-order": 2;
467
- readonly type: "string";
468
- readonly format: "uuid";
469
- readonly "x-go-type": "uuid.UUID";
470
- readonly "x-go-type-import": {
471
- readonly path: "github.com/gofrs/uuid";
472
- };
473
654
  };
474
655
  readonly function: {
475
656
  readonly type: "string";
@@ -698,6 +879,21 @@ declare const KeySchema: {
698
879
  };
699
880
  };
700
881
  readonly parameters: {
882
+ readonly orgID: {
883
+ readonly name: "orgID";
884
+ readonly in: "path";
885
+ readonly description: "Organization ID";
886
+ readonly required: true;
887
+ readonly schema: {
888
+ readonly type: "string";
889
+ readonly format: "uuid";
890
+ readonly description: "A Universally Unique Identifier used to uniquely identify entities in Meshery. The UUID core definition is used across different schemas.";
891
+ readonly "x-go-type": "uuid.UUID";
892
+ readonly "x-go-type-import": {
893
+ readonly path: "github.com/gofrs/uuid";
894
+ };
895
+ };
896
+ };
701
897
  readonly keyId: {
702
898
  readonly name: "keyId";
703
899
  readonly in: "path";
@@ -760,32 +956,32 @@ declare const KeySchema: {
760
956
  readonly required: readonly ["id", "owner", "function", "category", "subcategory", "description", "created_at", "updated_at"];
761
957
  readonly properties: {
762
958
  readonly id: {
763
- readonly description: "Unique identifier for the key.";
959
+ readonly type: "string";
960
+ readonly format: "uuid";
961
+ readonly description: "A Universally Unique Identifier used to uniquely identify entities in Meshery. The UUID core definition is used across different schemas.";
962
+ readonly "x-go-type": "uuid.UUID";
963
+ readonly "x-go-type-import": {
964
+ readonly path: "github.com/gofrs/uuid";
965
+ };
764
966
  readonly "x-go-name": "ID";
765
967
  readonly "x-oapi-codegen-extra-tags": {
766
968
  readonly db: "id";
767
969
  };
768
970
  readonly "x-order": 1;
971
+ };
972
+ readonly owner: {
769
973
  readonly type: "string";
770
974
  readonly format: "uuid";
975
+ readonly description: "A Universally Unique Identifier used to uniquely identify entities in Meshery. The UUID core definition is used across different schemas.";
771
976
  readonly "x-go-type": "uuid.UUID";
772
977
  readonly "x-go-type-import": {
773
978
  readonly path: "github.com/gofrs/uuid";
774
979
  };
775
- };
776
- readonly owner: {
777
- readonly description: "Owner of the key.";
778
980
  readonly "x-go-name": "Owner";
779
981
  readonly "x-oapi-codegen-extra-tags": {
780
982
  readonly db: "owner";
781
983
  };
782
984
  readonly "x-order": 2;
783
- readonly type: "string";
784
- readonly format: "uuid";
785
- readonly "x-go-type": "uuid.UUID";
786
- readonly "x-go-type-import": {
787
- readonly path: "github.com/gofrs/uuid";
788
- };
789
985
  };
790
986
  readonly function: {
791
987
  readonly type: "string";
@@ -862,14 +1058,14 @@ declare const KeySchema: {
862
1058
  readonly description: "Payload for creating or updating a key.";
863
1059
  readonly properties: {
864
1060
  readonly id: {
865
- readonly description: "Existing key identifier for updates.";
866
- readonly "x-order": 1;
867
1061
  readonly type: "string";
868
1062
  readonly format: "uuid";
1063
+ readonly description: "A Universally Unique Identifier used to uniquely identify entities in Meshery. The UUID core definition is used across different schemas.";
869
1064
  readonly "x-go-type": "uuid.UUID";
870
1065
  readonly "x-go-type-import": {
871
1066
  readonly path: "github.com/gofrs/uuid";
872
1067
  };
1068
+ readonly "x-order": 1;
873
1069
  };
874
1070
  readonly function: {
875
1071
  readonly type: "string";
@@ -921,32 +1117,32 @@ declare const KeySchema: {
921
1117
  readonly required: readonly ["id", "owner", "function", "category", "subcategory", "description", "created_at", "updated_at"];
922
1118
  readonly properties: {
923
1119
  readonly id: {
924
- readonly description: "Unique identifier for the key.";
1120
+ readonly type: "string";
1121
+ readonly format: "uuid";
1122
+ readonly description: "A Universally Unique Identifier used to uniquely identify entities in Meshery. The UUID core definition is used across different schemas.";
1123
+ readonly "x-go-type": "uuid.UUID";
1124
+ readonly "x-go-type-import": {
1125
+ readonly path: "github.com/gofrs/uuid";
1126
+ };
925
1127
  readonly "x-go-name": "ID";
926
1128
  readonly "x-oapi-codegen-extra-tags": {
927
1129
  readonly db: "id";
928
1130
  };
929
1131
  readonly "x-order": 1;
1132
+ };
1133
+ readonly owner: {
930
1134
  readonly type: "string";
931
1135
  readonly format: "uuid";
1136
+ readonly description: "A Universally Unique Identifier used to uniquely identify entities in Meshery. The UUID core definition is used across different schemas.";
932
1137
  readonly "x-go-type": "uuid.UUID";
933
1138
  readonly "x-go-type-import": {
934
1139
  readonly path: "github.com/gofrs/uuid";
935
1140
  };
936
- };
937
- readonly owner: {
938
- readonly description: "Owner of the key.";
939
1141
  readonly "x-go-name": "Owner";
940
1142
  readonly "x-oapi-codegen-extra-tags": {
941
1143
  readonly db: "owner";
942
1144
  };
943
1145
  readonly "x-order": 2;
944
- readonly type: "string";
945
- readonly format: "uuid";
946
- readonly "x-go-type": "uuid.UUID";
947
- readonly "x-go-type-import": {
948
- readonly path: "github.com/gofrs/uuid";
949
- };
950
1146
  };
951
1147
  readonly function: {
952
1148
  readonly type: "string";
@@ -1 +1 @@
1
- 'use strict';var e={openapi:"3.0.0",info:{title:"key",version:"1.0.0"},security:[{jwt:[]}],tags:[{name:"Key",description:"Operations related to authorization keys"}],paths:{"/api/auth/key":{get:{"x-internal":["cloud"],tags:["Key"],summary:"List key",operationId:"getKey",parameters:[{name:"page",in:"query",description:"Get responses by page",schema:{type:"string"}},{name:"pagesize",in:"query",description:"Get responses by pagesize",schema:{type:"string"}},{name:"search",in:"query",description:"Get responses that match search param value",schema:{type:"string"}},{name:"order",in:"query",description:"Get ordered responses",schema:{type:"string"}}],responses:{200:{description:"Key fetched successfully",content:{"application/json":{schema:{type:"object",required:["page","page_size","total_count","keys"],properties:{page:{"x-order":1,type:"integer","x-go-type-skip-optional-pointer":true},page_size:{"x-order":2,type:"integer","x-go-type-skip-optional-pointer":true},total_count:{"x-order":3,type:"integer","x-go-type-skip-optional-pointer":true},keys:{type:"array",items:{"x-go-type":"Key",type:"object",description:"Represents an authorization key used for access control.",required:["id","owner","function","category","subcategory","description","created_at","updated_at"],properties:{id:{description:"Unique identifier for the key.","x-go-name":"ID","x-oapi-codegen-extra-tags":{db:"id"},"x-order":1,type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"}},owner:{description:"Owner of the key.","x-go-name":"Owner","x-oapi-codegen-extra-tags":{db:"owner"},"x-order":2,type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"}},function:{type:"string",description:"Operation permitted by the key.","x-oapi-codegen-extra-tags":{db:"function"},"x-order":3},category:{type:"string",description:"Category for the key.","x-oapi-codegen-extra-tags":{db:"category"},"x-order":4},subcategory:{type:"string",description:"Subcategory for the key.","x-oapi-codegen-extra-tags":{db:"subcategory"},"x-order":5},description:{type:"string",description:"Human readable description of the key.","x-oapi-codegen-extra-tags":{db:"description"},"x-order":6},created_at:{"x-order":7,description:"Timestamp when the resource was created.","x-go-type":"time.Time",type:"string",format:"date-time","x-go-name":"CreatedAt","x-oapi-codegen-extra-tags":{db:"created_at",yaml:"created_at"},"x-go-type-skip-optional-pointer":true},updated_at:{"x-order":8,description:"Timestamp when the resource was updated.","x-go-type":"time.Time",type:"string",format:"date-time","x-go-name":"UpdatedAt","x-oapi-codegen-extra-tags":{db:"updated_at",yaml:"updated_at"},"x-go-type-skip-optional-pointer":true},deleted_at:{"x-oapi-codegen-extra-tags":{db:"deleted_at"},"x-order":9,description:"SQL null Timestamp to handle null values of time.","x-go-type":"sql.NullTime",type:"string","x-go-type-skip-optional-pointer":true}}},"x-order":4}}}}}},400:{description:"Invalid request body or request param",content:{"text/plain":{schema:{type:"string"}}}},401:{description:"Expired JWT token used or insufficient privilege",content:{"text/plain":{schema:{type:"string"}}}},500:{description:"Internal server error",content:{"text/plain":{schema:{type:"string"}}}}}},post:{"x-internal":["cloud"],tags:["Key"],summary:"Create or update a key",operationId:"upsertKey",requestBody:{required:true,content:{"application/json":{schema:{type:"object",description:"Payload for creating or updating a key.",properties:{id:{description:"Existing key identifier for updates.","x-order":1,type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"}},function:{type:"string",description:"Operation permitted by the key.","x-order":2},category:{type:"string",description:"Category for the key.","x-order":3},subcategory:{type:"string",description:"Subcategory for the key.","x-order":4},description:{type:"string",description:"Human readable description of the key.","x-order":5}}}}}},responses:{200:{description:"Key upserted successfully",content:{"application/json":{schema:{type:"object",description:"Represents an authorization key used for access control.",required:["id","owner","function","category","subcategory","description","created_at","updated_at"],properties:{id:{description:"Unique identifier for the key.","x-go-name":"ID","x-oapi-codegen-extra-tags":{db:"id"},"x-order":1,type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"}},owner:{description:"Owner of the key.","x-go-name":"Owner","x-oapi-codegen-extra-tags":{db:"owner"},"x-order":2,type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"}},function:{type:"string",description:"Operation permitted by the key.","x-oapi-codegen-extra-tags":{db:"function"},"x-order":3},category:{type:"string",description:"Category for the key.","x-oapi-codegen-extra-tags":{db:"category"},"x-order":4},subcategory:{type:"string",description:"Subcategory for the key.","x-oapi-codegen-extra-tags":{db:"subcategory"},"x-order":5},description:{type:"string",description:"Human readable description of the key.","x-oapi-codegen-extra-tags":{db:"description"},"x-order":6},created_at:{"x-order":7,description:"Timestamp when the resource was created.","x-go-type":"time.Time",type:"string",format:"date-time","x-go-name":"CreatedAt","x-oapi-codegen-extra-tags":{db:"created_at",yaml:"created_at"},"x-go-type-skip-optional-pointer":true},updated_at:{"x-order":8,description:"Timestamp when the resource was updated.","x-go-type":"time.Time",type:"string",format:"date-time","x-go-name":"UpdatedAt","x-oapi-codegen-extra-tags":{db:"updated_at",yaml:"updated_at"},"x-go-type-skip-optional-pointer":true},deleted_at:{"x-oapi-codegen-extra-tags":{db:"deleted_at"},"x-order":9,description:"SQL null Timestamp to handle null values of time.","x-go-type":"sql.NullTime",type:"string","x-go-type-skip-optional-pointer":true}}}}}},400:{description:"Invalid request body or request param",content:{"text/plain":{schema:{type:"string"}}}},401:{description:"Expired JWT token used or insufficient privilege",content:{"text/plain":{schema:{type:"string"}}}},500:{description:"Internal server error",content:{"text/plain":{schema:{type:"string"}}}}}}},"/api/auth/key/{keyId}":{get:{"x-internal":["cloud"],tags:["Key"],summary:"Get key by ID",operationId:"getKeyById",parameters:[{name:"keyId",in:"path",description:"Key ID",required:true,schema:{type:"string",format:"uuid",description:"A Universally Unique Identifier used to uniquely identify entities in Meshery. The UUID core definition is used across different schemas.","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"}}}],responses:{200:{description:"Key fetched successfully",content:{"application/json":{schema:{type:"object",description:"Represents an authorization key used for access control.",required:["id","owner","function","category","subcategory","description","created_at","updated_at"],properties:{id:{description:"Unique identifier for the key.","x-go-name":"ID","x-oapi-codegen-extra-tags":{db:"id"},"x-order":1,type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"}},owner:{description:"Owner of the key.","x-go-name":"Owner","x-oapi-codegen-extra-tags":{db:"owner"},"x-order":2,type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"}},function:{type:"string",description:"Operation permitted by the key.","x-oapi-codegen-extra-tags":{db:"function"},"x-order":3},category:{type:"string",description:"Category for the key.","x-oapi-codegen-extra-tags":{db:"category"},"x-order":4},subcategory:{type:"string",description:"Subcategory for the key.","x-oapi-codegen-extra-tags":{db:"subcategory"},"x-order":5},description:{type:"string",description:"Human readable description of the key.","x-oapi-codegen-extra-tags":{db:"description"},"x-order":6},created_at:{"x-order":7,description:"Timestamp when the resource was created.","x-go-type":"time.Time",type:"string",format:"date-time","x-go-name":"CreatedAt","x-oapi-codegen-extra-tags":{db:"created_at",yaml:"created_at"},"x-go-type-skip-optional-pointer":true},updated_at:{"x-order":8,description:"Timestamp when the resource was updated.","x-go-type":"time.Time",type:"string",format:"date-time","x-go-name":"UpdatedAt","x-oapi-codegen-extra-tags":{db:"updated_at",yaml:"updated_at"},"x-go-type-skip-optional-pointer":true},deleted_at:{"x-oapi-codegen-extra-tags":{db:"deleted_at"},"x-order":9,description:"SQL null Timestamp to handle null values of time.","x-go-type":"sql.NullTime",type:"string","x-go-type-skip-optional-pointer":true}}}}}},400:{description:"Invalid request body or request param",content:{"text/plain":{schema:{type:"string"}}}},401:{description:"Expired JWT token used or insufficient privilege",content:{"text/plain":{schema:{type:"string"}}}},404:{description:"Result not found",content:{"text/plain":{schema:{type:"string"}}}},500:{description:"Internal server error",content:{"text/plain":{schema:{type:"string"}}}}}},delete:{"x-internal":["cloud"],tags:["Key"],summary:"Delete key",operationId:"deleteKey",parameters:[{name:"keyId",in:"path",description:"Key ID",required:true,schema:{type:"string",format:"uuid",description:"A Universally Unique Identifier used to uniquely identify entities in Meshery. The UUID core definition is used across different schemas.","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"}}}],responses:{204:{description:"Key deleted successfully"},400:{description:"Invalid request body or request param",content:{"text/plain":{schema:{type:"string"}}}},401:{description:"Expired JWT token used or insufficient privilege",content:{"text/plain":{schema:{type:"string"}}}},404:{description:"Result not found",content:{"text/plain":{schema:{type:"string"}}}},500:{description:"Internal server error",content:{"text/plain":{schema:{type:"string"}}}}}}}},components:{responses:{400:{description:"Invalid request body or request param",content:{"text/plain":{schema:{type:"string"}}}},401:{description:"Expired JWT token used or insufficient privilege",content:{"text/plain":{schema:{type:"string"}}}},404:{description:"Result not found",content:{"text/plain":{schema:{type:"string"}}}},500:{description:"Internal server error",content:{"text/plain":{schema:{type:"string"}}}}},parameters:{keyId:{name:"keyId",in:"path",description:"Key ID",required:true,schema:{type:"string",format:"uuid",description:"A Universally Unique Identifier used to uniquely identify entities in Meshery. The UUID core definition is used across different schemas.","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"}}},page:{name:"page",in:"query",description:"Get responses by page",schema:{type:"string"}},pagesize:{name:"pagesize",in:"query",description:"Get responses by pagesize",schema:{type:"string"}},order:{name:"order",in:"query",description:"Get ordered responses",schema:{type:"string"}},search:{name:"search",in:"query",description:"Get responses that match search param value",schema:{type:"string"}}},securitySchemes:{jwt:{type:"http",scheme:"bearer",bearerFormat:"JWT"}},schemas:{Key:{type:"object",description:"Represents an authorization key used for access control.",required:["id","owner","function","category","subcategory","description","created_at","updated_at"],properties:{id:{description:"Unique identifier for the key.","x-go-name":"ID","x-oapi-codegen-extra-tags":{db:"id"},"x-order":1,type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"}},owner:{description:"Owner of the key.","x-go-name":"Owner","x-oapi-codegen-extra-tags":{db:"owner"},"x-order":2,type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"}},function:{type:"string",description:"Operation permitted by the key.","x-oapi-codegen-extra-tags":{db:"function"},"x-order":3},category:{type:"string",description:"Category for the key.","x-oapi-codegen-extra-tags":{db:"category"},"x-order":4},subcategory:{type:"string",description:"Subcategory for the key.","x-oapi-codegen-extra-tags":{db:"subcategory"},"x-order":5},description:{type:"string",description:"Human readable description of the key.","x-oapi-codegen-extra-tags":{db:"description"},"x-order":6},created_at:{"x-order":7,description:"Timestamp when the resource was created.","x-go-type":"time.Time",type:"string",format:"date-time","x-go-name":"CreatedAt","x-oapi-codegen-extra-tags":{db:"created_at",yaml:"created_at"},"x-go-type-skip-optional-pointer":true},updated_at:{"x-order":8,description:"Timestamp when the resource was updated.","x-go-type":"time.Time",type:"string",format:"date-time","x-go-name":"UpdatedAt","x-oapi-codegen-extra-tags":{db:"updated_at",yaml:"updated_at"},"x-go-type-skip-optional-pointer":true},deleted_at:{"x-oapi-codegen-extra-tags":{db:"deleted_at"},"x-order":9,description:"SQL null Timestamp to handle null values of time.","x-go-type":"sql.NullTime",type:"string","x-go-type-skip-optional-pointer":true}}},KeyPayload:{type:"object",description:"Payload for creating or updating a key.",properties:{id:{description:"Existing key identifier for updates.","x-order":1,type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"}},function:{type:"string",description:"Operation permitted by the key.","x-order":2},category:{type:"string",description:"Category for the key.","x-order":3},subcategory:{type:"string",description:"Subcategory for the key.","x-order":4},description:{type:"string",description:"Human readable description of the key.","x-order":5}}},KeyPage:{type:"object",required:["page","page_size","total_count","keys"],properties:{page:{"x-order":1,type:"integer","x-go-type-skip-optional-pointer":true},page_size:{"x-order":2,type:"integer","x-go-type-skip-optional-pointer":true},total_count:{"x-order":3,type:"integer","x-go-type-skip-optional-pointer":true},keys:{type:"array",items:{"x-go-type":"Key",type:"object",description:"Represents an authorization key used for access control.",required:["id","owner","function","category","subcategory","description","created_at","updated_at"],properties:{id:{description:"Unique identifier for the key.","x-go-name":"ID","x-oapi-codegen-extra-tags":{db:"id"},"x-order":1,type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"}},owner:{description:"Owner of the key.","x-go-name":"Owner","x-oapi-codegen-extra-tags":{db:"owner"},"x-order":2,type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"}},function:{type:"string",description:"Operation permitted by the key.","x-oapi-codegen-extra-tags":{db:"function"},"x-order":3},category:{type:"string",description:"Category for the key.","x-oapi-codegen-extra-tags":{db:"category"},"x-order":4},subcategory:{type:"string",description:"Subcategory for the key.","x-oapi-codegen-extra-tags":{db:"subcategory"},"x-order":5},description:{type:"string",description:"Human readable description of the key.","x-oapi-codegen-extra-tags":{db:"description"},"x-order":6},created_at:{"x-order":7,description:"Timestamp when the resource was created.","x-go-type":"time.Time",type:"string",format:"date-time","x-go-name":"CreatedAt","x-oapi-codegen-extra-tags":{db:"created_at",yaml:"created_at"},"x-go-type-skip-optional-pointer":true},updated_at:{"x-order":8,description:"Timestamp when the resource was updated.","x-go-type":"time.Time",type:"string",format:"date-time","x-go-name":"UpdatedAt","x-oapi-codegen-extra-tags":{db:"updated_at",yaml:"updated_at"},"x-go-type-skip-optional-pointer":true},deleted_at:{"x-oapi-codegen-extra-tags":{db:"deleted_at"},"x-order":9,description:"SQL null Timestamp to handle null values of time.","x-go-type":"sql.NullTime",type:"string","x-go-type-skip-optional-pointer":true}}},"x-order":4}}}}}},t=e;module.exports=t;
1
+ 'use strict';var e={openapi:"3.0.0",info:{title:"key",version:"1.0.0"},security:[{jwt:[]}],tags:[{name:"Key",description:"Operations related to authorization keys"}],paths:{"/api/identity/orgs/{orgID}/users/keys":{get:{tags:["users"],operationId:"getUserKeys",summary:"Get User Keys",description:"Get all keys based on roles assigned to user",parameters:[{name:"orgID",in:"path",description:"Organization ID",required:true,schema:{type:"string",format:"uuid",description:"A Universally Unique Identifier used to uniquely identify entities in Meshery. The UUID core definition is used across different schemas.","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"}}}],responses:{200:{description:"Returns user keys based on roles assigned to user",content:{"application/json":{schema:{type:"object",required:["page","page_size","total_count","keys"],properties:{page:{"x-order":1,type:"integer","x-go-type-skip-optional-pointer":true},page_size:{"x-order":2,type:"integer","x-go-type-skip-optional-pointer":true},total_count:{"x-order":3,type:"integer","x-go-type-skip-optional-pointer":true},keys:{type:"array",items:{"x-go-type":"Key",type:"object",description:"Represents an authorization key used for access control.",required:["id","owner","function","category","subcategory","description","created_at","updated_at"],properties:{id:{type:"string",format:"uuid",description:"A Universally Unique Identifier used to uniquely identify entities in Meshery. The UUID core definition is used across different schemas.","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"},"x-go-name":"ID","x-oapi-codegen-extra-tags":{db:"id"},"x-order":1},owner:{type:"string",format:"uuid",description:"A Universally Unique Identifier used to uniquely identify entities in Meshery. The UUID core definition is used across different schemas.","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"},"x-go-name":"Owner","x-oapi-codegen-extra-tags":{db:"owner"},"x-order":2},function:{type:"string",description:"Operation permitted by the key.","x-oapi-codegen-extra-tags":{db:"function"},"x-order":3},category:{type:"string",description:"Category for the key.","x-oapi-codegen-extra-tags":{db:"category"},"x-order":4},subcategory:{type:"string",description:"Subcategory for the key.","x-oapi-codegen-extra-tags":{db:"subcategory"},"x-order":5},description:{type:"string",description:"Human readable description of the key.","x-oapi-codegen-extra-tags":{db:"description"},"x-order":6},created_at:{"x-order":7,description:"Timestamp when the resource was created.","x-go-type":"time.Time",type:"string",format:"date-time","x-go-name":"CreatedAt","x-oapi-codegen-extra-tags":{db:"created_at",yaml:"created_at"},"x-go-type-skip-optional-pointer":true},updated_at:{"x-order":8,description:"Timestamp when the resource was updated.","x-go-type":"time.Time",type:"string",format:"date-time","x-go-name":"UpdatedAt","x-oapi-codegen-extra-tags":{db:"updated_at",yaml:"updated_at"},"x-go-type-skip-optional-pointer":true},deleted_at:{"x-oapi-codegen-extra-tags":{db:"deleted_at"},"x-order":9,description:"SQL null Timestamp to handle null values of time.","x-go-type":"sql.NullTime",type:"string","x-go-type-skip-optional-pointer":true}}},"x-order":4}}}}}},401:{description:"Expired JWT token used or insufficient privilege",content:{"text/plain":{schema:{type:"string"}}}},500:{description:"Internal server error",content:{"text/plain":{schema:{type:"string"}}}}}}},"/api/auth/keys":{get:{"x-internal":["cloud"],tags:["Key"],summary:"List key",operationId:"getKeys",parameters:[{name:"page",in:"query",description:"Get responses by page",schema:{type:"string"}},{name:"pagesize",in:"query",description:"Get responses by pagesize",schema:{type:"string"}},{name:"search",in:"query",description:"Get responses that match search param value",schema:{type:"string"}},{name:"order",in:"query",description:"Get ordered responses",schema:{type:"string"}}],responses:{200:{description:"Keys fetched",content:{"application/json":{schema:{type:"object",required:["page","page_size","total_count","keys"],properties:{page:{"x-order":1,type:"integer","x-go-type-skip-optional-pointer":true},page_size:{"x-order":2,type:"integer","x-go-type-skip-optional-pointer":true},total_count:{"x-order":3,type:"integer","x-go-type-skip-optional-pointer":true},keys:{type:"array",items:{"x-go-type":"Key",type:"object",description:"Represents an authorization key used for access control.",required:["id","owner","function","category","subcategory","description","created_at","updated_at"],properties:{id:{type:"string",format:"uuid",description:"A Universally Unique Identifier used to uniquely identify entities in Meshery. The UUID core definition is used across different schemas.","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"},"x-go-name":"ID","x-oapi-codegen-extra-tags":{db:"id"},"x-order":1},owner:{type:"string",format:"uuid",description:"A Universally Unique Identifier used to uniquely identify entities in Meshery. The UUID core definition is used across different schemas.","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"},"x-go-name":"Owner","x-oapi-codegen-extra-tags":{db:"owner"},"x-order":2},function:{type:"string",description:"Operation permitted by the key.","x-oapi-codegen-extra-tags":{db:"function"},"x-order":3},category:{type:"string",description:"Category for the key.","x-oapi-codegen-extra-tags":{db:"category"},"x-order":4},subcategory:{type:"string",description:"Subcategory for the key.","x-oapi-codegen-extra-tags":{db:"subcategory"},"x-order":5},description:{type:"string",description:"Human readable description of the key.","x-oapi-codegen-extra-tags":{db:"description"},"x-order":6},created_at:{"x-order":7,description:"Timestamp when the resource was created.","x-go-type":"time.Time",type:"string",format:"date-time","x-go-name":"CreatedAt","x-oapi-codegen-extra-tags":{db:"created_at",yaml:"created_at"},"x-go-type-skip-optional-pointer":true},updated_at:{"x-order":8,description:"Timestamp when the resource was updated.","x-go-type":"time.Time",type:"string",format:"date-time","x-go-name":"UpdatedAt","x-oapi-codegen-extra-tags":{db:"updated_at",yaml:"updated_at"},"x-go-type-skip-optional-pointer":true},deleted_at:{"x-oapi-codegen-extra-tags":{db:"deleted_at"},"x-order":9,description:"SQL null Timestamp to handle null values of time.","x-go-type":"sql.NullTime",type:"string","x-go-type-skip-optional-pointer":true}}},"x-order":4}}}}}},400:{description:"Invalid request body or request param",content:{"text/plain":{schema:{type:"string"}}}},401:{description:"Expired JWT token used or insufficient privilege",content:{"text/plain":{schema:{type:"string"}}}},500:{description:"Internal server error",content:{"text/plain":{schema:{type:"string"}}}}}},post:{"x-internal":["cloud"],tags:["Key"],summary:"Create or update a key",operationId:"upsertKey",requestBody:{required:true,content:{"application/json":{schema:{type:"object",description:"Payload for creating or updating a key.",properties:{id:{type:"string",format:"uuid",description:"A Universally Unique Identifier used to uniquely identify entities in Meshery. The UUID core definition is used across different schemas.","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"},"x-order":1},function:{type:"string",description:"Operation permitted by the key.","x-order":2},category:{type:"string",description:"Category for the key.","x-order":3},subcategory:{type:"string",description:"Subcategory for the key.","x-order":4},description:{type:"string",description:"Human readable description of the key.","x-order":5}}}}}},responses:{200:{description:"Key upserted successfully",content:{"application/json":{schema:{type:"object",description:"Represents an authorization key used for access control.",required:["id","owner","function","category","subcategory","description","created_at","updated_at"],properties:{id:{type:"string",format:"uuid",description:"A Universally Unique Identifier used to uniquely identify entities in Meshery. The UUID core definition is used across different schemas.","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"},"x-go-name":"ID","x-oapi-codegen-extra-tags":{db:"id"},"x-order":1},owner:{type:"string",format:"uuid",description:"A Universally Unique Identifier used to uniquely identify entities in Meshery. The UUID core definition is used across different schemas.","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"},"x-go-name":"Owner","x-oapi-codegen-extra-tags":{db:"owner"},"x-order":2},function:{type:"string",description:"Operation permitted by the key.","x-oapi-codegen-extra-tags":{db:"function"},"x-order":3},category:{type:"string",description:"Category for the key.","x-oapi-codegen-extra-tags":{db:"category"},"x-order":4},subcategory:{type:"string",description:"Subcategory for the key.","x-oapi-codegen-extra-tags":{db:"subcategory"},"x-order":5},description:{type:"string",description:"Human readable description of the key.","x-oapi-codegen-extra-tags":{db:"description"},"x-order":6},created_at:{"x-order":7,description:"Timestamp when the resource was created.","x-go-type":"time.Time",type:"string",format:"date-time","x-go-name":"CreatedAt","x-oapi-codegen-extra-tags":{db:"created_at",yaml:"created_at"},"x-go-type-skip-optional-pointer":true},updated_at:{"x-order":8,description:"Timestamp when the resource was updated.","x-go-type":"time.Time",type:"string",format:"date-time","x-go-name":"UpdatedAt","x-oapi-codegen-extra-tags":{db:"updated_at",yaml:"updated_at"},"x-go-type-skip-optional-pointer":true},deleted_at:{"x-oapi-codegen-extra-tags":{db:"deleted_at"},"x-order":9,description:"SQL null Timestamp to handle null values of time.","x-go-type":"sql.NullTime",type:"string","x-go-type-skip-optional-pointer":true}}}}}},400:{description:"Invalid request body or request param",content:{"text/plain":{schema:{type:"string"}}}},401:{description:"Expired JWT token used or insufficient privilege",content:{"text/plain":{schema:{type:"string"}}}},500:{description:"Internal server error",content:{"text/plain":{schema:{type:"string"}}}}}}},"/api/auth/key/{keyId}":{get:{"x-internal":["cloud"],tags:["Key"],summary:"Get key by ID",operationId:"getKeyById",parameters:[{name:"keyId",in:"path",description:"Key ID",required:true,schema:{type:"string",format:"uuid",description:"A Universally Unique Identifier used to uniquely identify entities in Meshery. The UUID core definition is used across different schemas.","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"}}}],responses:{200:{description:"Key fetched successfully",content:{"application/json":{schema:{type:"object",description:"Represents an authorization key used for access control.",required:["id","owner","function","category","subcategory","description","created_at","updated_at"],properties:{id:{type:"string",format:"uuid",description:"A Universally Unique Identifier used to uniquely identify entities in Meshery. The UUID core definition is used across different schemas.","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"},"x-go-name":"ID","x-oapi-codegen-extra-tags":{db:"id"},"x-order":1},owner:{type:"string",format:"uuid",description:"A Universally Unique Identifier used to uniquely identify entities in Meshery. The UUID core definition is used across different schemas.","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"},"x-go-name":"Owner","x-oapi-codegen-extra-tags":{db:"owner"},"x-order":2},function:{type:"string",description:"Operation permitted by the key.","x-oapi-codegen-extra-tags":{db:"function"},"x-order":3},category:{type:"string",description:"Category for the key.","x-oapi-codegen-extra-tags":{db:"category"},"x-order":4},subcategory:{type:"string",description:"Subcategory for the key.","x-oapi-codegen-extra-tags":{db:"subcategory"},"x-order":5},description:{type:"string",description:"Human readable description of the key.","x-oapi-codegen-extra-tags":{db:"description"},"x-order":6},created_at:{"x-order":7,description:"Timestamp when the resource was created.","x-go-type":"time.Time",type:"string",format:"date-time","x-go-name":"CreatedAt","x-oapi-codegen-extra-tags":{db:"created_at",yaml:"created_at"},"x-go-type-skip-optional-pointer":true},updated_at:{"x-order":8,description:"Timestamp when the resource was updated.","x-go-type":"time.Time",type:"string",format:"date-time","x-go-name":"UpdatedAt","x-oapi-codegen-extra-tags":{db:"updated_at",yaml:"updated_at"},"x-go-type-skip-optional-pointer":true},deleted_at:{"x-oapi-codegen-extra-tags":{db:"deleted_at"},"x-order":9,description:"SQL null Timestamp to handle null values of time.","x-go-type":"sql.NullTime",type:"string","x-go-type-skip-optional-pointer":true}}}}}},400:{description:"Invalid request body or request param",content:{"text/plain":{schema:{type:"string"}}}},401:{description:"Expired JWT token used or insufficient privilege",content:{"text/plain":{schema:{type:"string"}}}},404:{description:"Result not found",content:{"text/plain":{schema:{type:"string"}}}},500:{description:"Internal server error",content:{"text/plain":{schema:{type:"string"}}}}}},delete:{"x-internal":["cloud"],tags:["Key"],summary:"Delete key",operationId:"deleteKey",parameters:[{name:"keyId",in:"path",description:"Key ID",required:true,schema:{type:"string",format:"uuid",description:"A Universally Unique Identifier used to uniquely identify entities in Meshery. The UUID core definition is used across different schemas.","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"}}}],responses:{204:{description:"Key deleted successfully"},400:{description:"Invalid request body or request param",content:{"text/plain":{schema:{type:"string"}}}},401:{description:"Expired JWT token used or insufficient privilege",content:{"text/plain":{schema:{type:"string"}}}},404:{description:"Result not found",content:{"text/plain":{schema:{type:"string"}}}},500:{description:"Internal server error",content:{"text/plain":{schema:{type:"string"}}}}}}}},components:{responses:{400:{description:"Invalid request body or request param",content:{"text/plain":{schema:{type:"string"}}}},401:{description:"Expired JWT token used or insufficient privilege",content:{"text/plain":{schema:{type:"string"}}}},404:{description:"Result not found",content:{"text/plain":{schema:{type:"string"}}}},500:{description:"Internal server error",content:{"text/plain":{schema:{type:"string"}}}}},parameters:{orgID:{name:"orgID",in:"path",description:"Organization ID",required:true,schema:{type:"string",format:"uuid",description:"A Universally Unique Identifier used to uniquely identify entities in Meshery. The UUID core definition is used across different schemas.","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"}}},keyId:{name:"keyId",in:"path",description:"Key ID",required:true,schema:{type:"string",format:"uuid",description:"A Universally Unique Identifier used to uniquely identify entities in Meshery. The UUID core definition is used across different schemas.","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"}}},page:{name:"page",in:"query",description:"Get responses by page",schema:{type:"string"}},pagesize:{name:"pagesize",in:"query",description:"Get responses by pagesize",schema:{type:"string"}},order:{name:"order",in:"query",description:"Get ordered responses",schema:{type:"string"}},search:{name:"search",in:"query",description:"Get responses that match search param value",schema:{type:"string"}}},securitySchemes:{jwt:{type:"http",scheme:"bearer",bearerFormat:"JWT"}},schemas:{Key:{type:"object",description:"Represents an authorization key used for access control.",required:["id","owner","function","category","subcategory","description","created_at","updated_at"],properties:{id:{type:"string",format:"uuid",description:"A Universally Unique Identifier used to uniquely identify entities in Meshery. The UUID core definition is used across different schemas.","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"},"x-go-name":"ID","x-oapi-codegen-extra-tags":{db:"id"},"x-order":1},owner:{type:"string",format:"uuid",description:"A Universally Unique Identifier used to uniquely identify entities in Meshery. The UUID core definition is used across different schemas.","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"},"x-go-name":"Owner","x-oapi-codegen-extra-tags":{db:"owner"},"x-order":2},function:{type:"string",description:"Operation permitted by the key.","x-oapi-codegen-extra-tags":{db:"function"},"x-order":3},category:{type:"string",description:"Category for the key.","x-oapi-codegen-extra-tags":{db:"category"},"x-order":4},subcategory:{type:"string",description:"Subcategory for the key.","x-oapi-codegen-extra-tags":{db:"subcategory"},"x-order":5},description:{type:"string",description:"Human readable description of the key.","x-oapi-codegen-extra-tags":{db:"description"},"x-order":6},created_at:{"x-order":7,description:"Timestamp when the resource was created.","x-go-type":"time.Time",type:"string",format:"date-time","x-go-name":"CreatedAt","x-oapi-codegen-extra-tags":{db:"created_at",yaml:"created_at"},"x-go-type-skip-optional-pointer":true},updated_at:{"x-order":8,description:"Timestamp when the resource was updated.","x-go-type":"time.Time",type:"string",format:"date-time","x-go-name":"UpdatedAt","x-oapi-codegen-extra-tags":{db:"updated_at",yaml:"updated_at"},"x-go-type-skip-optional-pointer":true},deleted_at:{"x-oapi-codegen-extra-tags":{db:"deleted_at"},"x-order":9,description:"SQL null Timestamp to handle null values of time.","x-go-type":"sql.NullTime",type:"string","x-go-type-skip-optional-pointer":true}}},KeyPayload:{type:"object",description:"Payload for creating or updating a key.",properties:{id:{type:"string",format:"uuid",description:"A Universally Unique Identifier used to uniquely identify entities in Meshery. The UUID core definition is used across different schemas.","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"},"x-order":1},function:{type:"string",description:"Operation permitted by the key.","x-order":2},category:{type:"string",description:"Category for the key.","x-order":3},subcategory:{type:"string",description:"Subcategory for the key.","x-order":4},description:{type:"string",description:"Human readable description of the key.","x-order":5}}},KeyPage:{type:"object",required:["page","page_size","total_count","keys"],properties:{page:{"x-order":1,type:"integer","x-go-type-skip-optional-pointer":true},page_size:{"x-order":2,type:"integer","x-go-type-skip-optional-pointer":true},total_count:{"x-order":3,type:"integer","x-go-type-skip-optional-pointer":true},keys:{type:"array",items:{"x-go-type":"Key",type:"object",description:"Represents an authorization key used for access control.",required:["id","owner","function","category","subcategory","description","created_at","updated_at"],properties:{id:{type:"string",format:"uuid",description:"A Universally Unique Identifier used to uniquely identify entities in Meshery. The UUID core definition is used across different schemas.","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"},"x-go-name":"ID","x-oapi-codegen-extra-tags":{db:"id"},"x-order":1},owner:{type:"string",format:"uuid",description:"A Universally Unique Identifier used to uniquely identify entities in Meshery. The UUID core definition is used across different schemas.","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"},"x-go-name":"Owner","x-oapi-codegen-extra-tags":{db:"owner"},"x-order":2},function:{type:"string",description:"Operation permitted by the key.","x-oapi-codegen-extra-tags":{db:"function"},"x-order":3},category:{type:"string",description:"Category for the key.","x-oapi-codegen-extra-tags":{db:"category"},"x-order":4},subcategory:{type:"string",description:"Subcategory for the key.","x-oapi-codegen-extra-tags":{db:"subcategory"},"x-order":5},description:{type:"string",description:"Human readable description of the key.","x-oapi-codegen-extra-tags":{db:"description"},"x-order":6},created_at:{"x-order":7,description:"Timestamp when the resource was created.","x-go-type":"time.Time",type:"string",format:"date-time","x-go-name":"CreatedAt","x-oapi-codegen-extra-tags":{db:"created_at",yaml:"created_at"},"x-go-type-skip-optional-pointer":true},updated_at:{"x-order":8,description:"Timestamp when the resource was updated.","x-go-type":"time.Time",type:"string",format:"date-time","x-go-name":"UpdatedAt","x-oapi-codegen-extra-tags":{db:"updated_at",yaml:"updated_at"},"x-go-type-skip-optional-pointer":true},deleted_at:{"x-oapi-codegen-extra-tags":{db:"deleted_at"},"x-order":9,description:"SQL null Timestamp to handle null values of time.","x-go-type":"sql.NullTime",type:"string","x-go-type-skip-optional-pointer":true}}},"x-order":4}}}}}},t=e;module.exports=t;