@meshery/schemas 1.3.9 → 1.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (101) hide show
  1. package/dist/cloudApi.d.mts +28 -28
  2. package/dist/cloudApi.d.ts +28 -28
  3. package/dist/constructs/v1alpha1/capability/Capability.d.ts +106 -111
  4. package/dist/constructs/v1alpha1/core/Core.d.ts +822 -734
  5. package/dist/constructs/v1alpha2/catalog/Catalog.d.ts +45 -40
  6. package/dist/constructs/v1alpha3/relationship/Relationship.d.ts +1829 -1716
  7. package/dist/constructs/v1beta1/academy/Academy.d.ts +6023 -6642
  8. package/dist/constructs/v1beta1/badge/Badge.d.ts +439 -600
  9. package/dist/constructs/v1beta1/capability/Capability.d.ts +106 -111
  10. package/dist/constructs/v1beta1/catalog/Catalog.d.ts +45 -40
  11. package/dist/constructs/v1beta1/category/Category.d.ts +38 -26
  12. package/dist/constructs/v1beta1/component/Component.d.ts +833 -729
  13. package/dist/constructs/v1beta1/connection/Connection.d.ts +1170 -1357
  14. package/dist/constructs/v1beta1/core/Core.d.ts +822 -734
  15. package/dist/constructs/v1beta1/credential/Credential.d.ts +458 -593
  16. package/dist/constructs/v1beta1/environment/Environment.d.ts +666 -835
  17. package/dist/constructs/v1beta1/evaluation/Evaluation.d.ts +6142 -5619
  18. package/dist/constructs/v1beta1/event/Event.d.ts +527 -898
  19. package/dist/constructs/v1beta1/feature/Feature.d.ts +343 -389
  20. package/dist/constructs/v1beta1/invitation/Invitation.d.ts +877 -1244
  21. package/dist/constructs/v1beta1/key/Key.d.ts +444 -589
  22. package/dist/constructs/v1beta1/keychain/Keychain.d.ts +575 -796
  23. package/dist/constructs/v1beta1/model/Model.d.ts +598 -572
  24. package/dist/constructs/v1beta1/organization/Organization.d.ts +1410 -1829
  25. package/dist/constructs/v1beta1/pattern/Pattern.d.ts +17988 -17171
  26. package/dist/constructs/v1beta1/plan/Plan.d.ts +115 -159
  27. package/dist/constructs/v1beta1/role/Role.d.ts +688 -933
  28. package/dist/constructs/v1beta1/schedule/Schedule.d.ts +315 -425
  29. package/dist/constructs/v1beta1/subcategory/Subcategory.d.ts +61 -18
  30. package/dist/constructs/v1beta1/subscription/Subscription.d.ts +674 -839
  31. package/dist/constructs/v1beta1/support/Support.d.ts +74 -115
  32. package/dist/constructs/v1beta1/system/System.d.ts +250 -385
  33. package/dist/constructs/v1beta1/team/Team.d.ts +762 -1028
  34. package/dist/constructs/v1beta1/token/Token.d.ts +475 -612
  35. package/dist/constructs/v1beta1/user/User.d.ts +1553 -1722
  36. package/dist/constructs/v1beta1/view/View.d.ts +664 -833
  37. package/dist/constructs/v1beta1/workspace/Workspace.d.ts +4705 -4910
  38. package/dist/constructs/v1beta2/academy/Academy.d.ts +7246 -7864
  39. package/dist/constructs/v1beta2/badge/Badge.d.ts +453 -610
  40. package/dist/constructs/v1beta2/catalog/Catalog.d.ts +45 -40
  41. package/dist/constructs/v1beta2/component/Component.d.ts +851 -747
  42. package/dist/constructs/v1beta2/connection/Connection.d.ts +1189 -1376
  43. package/dist/constructs/v1beta2/core/Core.d.ts +856 -768
  44. package/dist/constructs/v1beta2/credential/Credential.d.ts +437 -572
  45. package/dist/constructs/v1beta2/design/Design.d.ts +18631 -17846
  46. package/dist/constructs/v1beta2/event/Event.d.ts +575 -946
  47. package/dist/constructs/v1beta2/invitation/Invitation.d.ts +901 -1268
  48. package/dist/constructs/v1beta2/key/Key.d.ts +454 -599
  49. package/dist/constructs/v1beta2/keychain/Keychain.d.ts +585 -806
  50. package/dist/constructs/v1beta2/model/Model.d.ts +636 -610
  51. package/dist/constructs/v1beta2/organization/Organization.d.ts +2017 -2458
  52. package/dist/constructs/v1beta2/plan/Plan.d.ts +128 -169
  53. package/dist/constructs/v1beta2/relationship/Relationship.d.ts +2013 -1844
  54. package/dist/constructs/v1beta2/role/Role.d.ts +695 -940
  55. package/dist/constructs/v1beta2/schedule/Schedule.d.ts +356 -466
  56. package/dist/constructs/v1beta2/subscription/Subscription.d.ts +701 -866
  57. package/dist/constructs/v1beta2/team/Team.d.ts +852 -1118
  58. package/dist/constructs/v1beta2/token/Token.d.ts +479 -616
  59. package/dist/constructs/v1beta2/user/User.d.ts +1553 -1722
  60. package/dist/constructs/v1beta2/view/View.d.ts +669 -838
  61. package/dist/constructs/v1beta3/academy/Academy.d.ts +7246 -7864
  62. package/dist/constructs/v1beta3/academy/AcademySchema.js +1 -1
  63. package/dist/constructs/v1beta3/academy/AcademySchema.mjs +1 -1
  64. package/dist/constructs/v1beta3/component/Component.d.ts +857 -753
  65. package/dist/constructs/v1beta3/connection/Connection.d.ts +5559 -5053
  66. package/dist/constructs/v1beta3/connection/ConnectionSchema.js +6 -6
  67. package/dist/constructs/v1beta3/connection/ConnectionSchema.mjs +6 -6
  68. package/dist/constructs/v1beta3/design/Design.d.ts +5297 -5719
  69. package/dist/constructs/v1beta3/design/DesignSchema.js +2 -2
  70. package/dist/constructs/v1beta3/design/DesignSchema.mjs +2 -2
  71. package/dist/constructs/v1beta3/environment/Environment.d.ts +689 -858
  72. package/dist/constructs/v1beta3/event/Event.d.ts +666 -1041
  73. package/dist/constructs/v1beta3/event/EventSchema.js +1 -1
  74. package/dist/constructs/v1beta3/event/EventSchema.mjs +1 -1
  75. package/dist/constructs/v1beta3/filter/Filter.d.ts +1300 -1438
  76. package/dist/constructs/v1beta3/filter/FilterSchema.js +7 -7
  77. package/dist/constructs/v1beta3/filter/FilterSchema.mjs +7 -7
  78. package/dist/constructs/v1beta3/invitation/Invitation.d.ts +911 -1278
  79. package/dist/constructs/v1beta3/invitation/InvitationSchema.js +1 -1
  80. package/dist/constructs/v1beta3/invitation/InvitationSchema.mjs +1 -1
  81. package/dist/constructs/v1beta3/performance_profile/PerformanceProfile.d.ts +1114 -1412
  82. package/dist/constructs/v1beta3/performance_profile/PerformanceProfileSchema.js +1 -1
  83. package/dist/constructs/v1beta3/performance_profile/PerformanceProfileSchema.mjs +1 -1
  84. package/dist/constructs/v1beta3/plan/Plan.d.ts +156 -197
  85. package/dist/constructs/v1beta3/relationship/Relationship.d.ts +2013 -1844
  86. package/dist/constructs/v1beta3/subscription/Subscription.d.ts +804 -969
  87. package/dist/constructs/v1beta3/token/Token.d.ts +480 -617
  88. package/dist/constructs/v1beta3/token/TokenSchema.js +1 -1
  89. package/dist/constructs/v1beta3/token/TokenSchema.mjs +1 -1
  90. package/dist/constructs/v1beta3/workspace/Workspace.d.ts +4825 -5033
  91. package/dist/index.d.mts +5032 -5501
  92. package/dist/index.d.ts +5032 -5501
  93. package/dist/mesheryApi.d.mts +8 -8
  94. package/dist/mesheryApi.d.ts +8 -8
  95. package/dist/mesheryApi.js +1 -1
  96. package/dist/mesheryApi.mjs +1 -1
  97. package/dist/permissions.d.mts +25 -1
  98. package/dist/permissions.d.ts +25 -1
  99. package/dist/permissions.js +1 -1
  100. package/dist/permissions.mjs +1 -1
  101. package/package.json +1 -1
@@ -4,392 +4,584 @@
4
4
  */
5
5
 
6
6
  export interface paths {
7
- "/api/meshmodels/register": {
8
- parameters: {
9
- query?: never;
10
- header?: never;
11
- path?: never;
12
- cookie?: never;
13
- };
14
- get?: never;
15
- put?: never;
16
- /** Register mesh models */
17
- post: operations["registerMeshmodels"];
18
- delete?: never;
19
- options?: never;
20
- head?: never;
21
- patch?: never;
22
- trace?: never;
23
- };
24
- "/api/integrations/meshmodels/models": {
25
- parameters: {
26
- query?: never;
27
- header?: never;
28
- path?: never;
29
- cookie?: never;
30
- };
31
- /** Get mesh model models */
32
- get: operations["getMeshModelModels"];
33
- put?: never;
34
- post?: never;
35
- delete?: never;
36
- options?: never;
37
- head?: never;
38
- patch?: never;
39
- trace?: never;
40
- };
7
+ "/api/meshmodels/register": {
8
+ post: operations["registerMeshmodels"];
9
+ };
10
+ "/api/integrations/meshmodels/models": {
11
+ get: operations["getMeshModelModels"];
12
+ };
41
13
  }
42
- export type webhooks = Record<string, never>;
14
+
43
15
  export interface components {
44
- schemas: {
45
- /** @description Registrant-defined data associated with the model. Properties pertain to the software being managed (e.g. Kubernetes v1.31). */
46
- Model: {
47
- /** @description Version of the model as defined by the registrant. */
48
- version: string;
49
- };
50
- /** @description Meshery Models serve as a portable unit of packaging to define managed entities, their relationships, and capabilities. */
51
- ModelDefinition: {
52
- /**
53
- * Format: uuid
54
- * @description Uniquely identifies the entity (i.e. component) as defined in a declaration (i.e. design).
55
- */
56
- id: string;
57
- /**
58
- * @description Specifies the version of the schema used for the definition.
59
- * @default models.meshery.io/v1beta1
60
- * @example [
61
- * "v1",
62
- * "v1alpha1",
63
- * "v2beta3",
64
- * "v1.custom-suffix",
65
- * "models.meshery.io/v1beta1",
66
- * "capability.meshery.io/v1alpha1"
67
- * ]
68
- */
69
- schemaVersion: string;
70
- /** @description Version of the model definition. */
71
- version: string;
72
- /**
73
- * @description The unique name for the model within the scope of a registrant.
74
- * @default untitled-model
75
- * @example cert-manager
76
- */
77
- name: string;
78
- /**
79
- * @description Human-readable name for the model.
80
- * @default Untitled Model
81
- * @example Cert Manager
82
- */
83
- displayName: string;
84
- /**
85
- * @description Description of the model.
86
- * @default A new Meshery model.
87
- */
88
- description: string;
89
- /**
90
- * @description Status of model, including:
91
- * - duplicate: this component is a duplicate of another. The component that is to be the canonical reference and that is duplicated by other components should not be assigned the 'duplicate' status.
92
- * - maintenance: model is unavailable for a period of time.
93
- * - enabled: model is available for use for all users of this Meshery Server.
94
- * - ignored: model is unavailable for use for all users of this Meshery Server.
95
- * @default enabled
96
- * @enum {string}
97
- */
98
- status: "ignored" | "enabled" | "duplicate";
99
- /** @description Meshery Connections are managed and unmanaged resources that either through discovery or manual entry are tracked by Meshery. Learn more at https://docs.meshery.io/concepts/logical/connections */
100
- registrant: {
101
- /**
102
- * Format: uuid
103
- * @description Connection ID
104
- */
105
- id: string;
106
- /** @description Connection Name */
107
- name: string;
108
- /**
109
- * Format: uuid
110
- * @description Associated Credential ID
111
- */
112
- credentialId?: string;
113
- /** @description Connection Type (platform, telemetry, collaboration) */
114
- type: string;
115
- /** @description Connection Subtype (cloud, identity, metrics, chat, git, orchestration) */
116
- subType: string;
117
- /** @description Connection Kind (meshery, kubernetes, prometheus, grafana, gke, aws, azure, slack, github) */
118
- kind: string;
119
- /** @description Additional connection metadata */
120
- metadata?: Record<string, never>;
121
- /**
122
- * @description Connection Status
123
- * @enum {string}
124
- */
125
- status: "discovered" | "registered" | "connected" | "ignored" | "maintenance" | "disconnected" | "deleted" | "not found";
126
- /**
127
- * Format: uuid
128
- * @description User ID who owns this connection
129
- */
130
- user_id?: string;
131
- /** Format: date-time */
132
- created_at?: string;
133
- /** Format: date-time */
134
- updated_at?: string;
135
- /**
136
- * Format: date-time
137
- * @description SQL null Timestamp to handle null values of time.
138
- */
139
- deleted_at?: string;
140
- /** @description Associated environments for this connection */
141
- environments?: {
142
- /**
143
- * Format: uuid
144
- * @description ID
145
- */
146
- id: string;
147
- /**
148
- * @description Specifies the version of the schema to which the environment conforms.
149
- * @default environments.meshery.io/v1beta1
150
- * @example [
151
- * "v1",
152
- * "v1alpha1",
153
- * "v2beta3",
154
- * "v1.custom-suffix",
155
- * "models.meshery.io/v1beta1",
156
- * "capability.meshery.io/v1alpha1"
157
- * ]
158
- */
159
- schemaVersion: string;
160
- /** @description Environment name */
161
- name: string;
162
- /** @description Environment description */
163
- description: string;
164
- /**
165
- * Format: uuid
166
- * @description Environment organization ID
167
- */
168
- organization_id: string;
169
- /**
170
- * Format: uuid
171
- * @description Environment owner
172
- */
173
- owner?: string;
174
- /**
175
- * Format: date-time
176
- * @description Timestamp when the resource was created.
177
- */
178
- created_at?: string;
179
- /** @description Additional metadata associated with the environment. */
180
- metadata?: Record<string, never>;
181
- /**
182
- * Format: date-time
183
- * @description Timestamp when the resource was updated.
184
- */
185
- updated_at?: string;
186
- /**
187
- * Format: date-time
188
- * @description Timestamp when the environment was soft deleted. Null while the environment remains active.
189
- */
190
- deleted_at?: string | null;
191
- }[];
192
- /**
193
- * @description Specifies the version of the schema used for the definition.
194
- * @default connections.meshery.io/v1beta1
195
- * @example [
196
- * "v1",
197
- * "v1alpha1",
198
- * "v2beta3",
199
- * "v1.custom-suffix",
200
- * "models.meshery.io/v1beta1",
201
- * "capability.meshery.io/v1alpha1"
202
- * ]
203
- */
204
- schemaVersion: string;
205
- };
206
- /**
207
- * Format: uuid
208
- * @description ID of the registrant.
209
- */
210
- registrantId: string;
211
- /**
212
- * Format: uuid
213
- * @description ID of the category.
214
- */
215
- categoryId: string;
216
- /** @description Category of the model. */
217
- category: {
218
- /**
219
- * Format: uuid
220
- * @description A Universally Unique Identifier used to uniquely identify entities in Meshery. The UUID core definition is used across different schemas.
221
- */
222
- id: string;
223
- /**
224
- * @description The category of the model that determines the main grouping.
225
- * @default Uncategorized
226
- * @enum {string}
227
- */
228
- name: "Analytics" | "App Definition and Development" | "Cloud Native Network" | "Cloud Native Storage" | "Database" | "Machine Learning" | "Observability and Analysis" | "Orchestration & Management" | "Platform" | "Provisioning" | "Runtime" | "Security & Compliance" | "Serverless" | "Tools" | "Uncategorized";
229
- /** @description Additional metadata associated with the category. */
230
- metadata: Record<string, never>;
231
- };
16
+ schemas: {
17
+ /** @description Registrant-defined data associated with the model. Properties pertain to the software being managed (e.g. Kubernetes v1.31). */
18
+ Model: {
19
+ /** @description Version of the model as defined by the registrant. */
20
+ version: string;
21
+ };
22
+ /** @description Meshery Models serve as a portable unit of packaging to define managed entities, their relationships, and capabilities. */
23
+ ModelDefinition: {
24
+ /**
25
+ * Format: uuid
26
+ * @description Uniquely identifies the entity (i.e. component) as defined in a declaration (i.e. design).
27
+ */
28
+ id: string;
29
+ /**
30
+ * @description Specifies the version of the schema used for the definition.
31
+ * @default models.meshery.io/v1beta1
32
+ * @example [
33
+ * "v1",
34
+ * "v1alpha1",
35
+ * "v2beta3",
36
+ * "v1.custom-suffix",
37
+ * "models.meshery.io/v1beta1",
38
+ * "capability.meshery.io/v1alpha1"
39
+ * ]
40
+ */
41
+ schemaVersion: string;
42
+ /** @description Version of the model definition. */
43
+ version: string;
44
+ /**
45
+ * @description The unique name for the model within the scope of a registrant.
46
+ * @default untitled-model
47
+ */
48
+ name: string;
49
+ /**
50
+ * @description Human-readable name for the model.
51
+ * @default Untitled Model
52
+ */
53
+ displayName: string;
54
+ /**
55
+ * @description Description of the model.
56
+ * @default A new Meshery model.
57
+ */
58
+ description: string;
59
+ /**
60
+ * @description Status of model, including:
61
+ * - duplicate: this component is a duplicate of another. The component that is to be the canonical reference and that is duplicated by other components should not be assigned the 'duplicate' status.
62
+ * - maintenance: model is unavailable for a period of time.
63
+ * - enabled: model is available for use for all users of this Meshery Server.
64
+ * - ignored: model is unavailable for use for all users of this Meshery Server.
65
+ * @default enabled
66
+ * @enum {string}
67
+ */
68
+ status: "ignored" | "enabled" | "duplicate";
69
+ /** @description Meshery Connections are managed and unmanaged resources that either through discovery or manual entry are tracked by Meshery. Learn more at https://docs.meshery.io/concepts/logical/connections */
70
+ registrant: {
71
+ /**
72
+ * Format: uuid
73
+ * @description Connection ID
74
+ */
75
+ id: string;
76
+ /** @description Connection Name */
77
+ name: string;
78
+ /**
79
+ * Format: uuid
80
+ * @description Associated Credential ID
81
+ */
82
+ credentialId?: string;
83
+ /** @description Connection Type (platform, telemetry, collaboration) */
84
+ type: string;
85
+ /** @description Connection Subtype (cloud, identity, metrics, chat, git, orchestration) */
86
+ subType: string;
87
+ /** @description Connection Kind (meshery, kubernetes, prometheus, grafana, gke, aws, azure, slack, github) */
88
+ kind: string;
89
+ /** @description Additional connection metadata */
90
+ metadata?: { [key: string]: unknown };
91
+ /**
92
+ * @description Connection Status
93
+ * @enum {string}
94
+ */
95
+ status:
96
+ | "discovered"
97
+ | "registered"
98
+ | "connected"
99
+ | "ignored"
100
+ | "maintenance"
101
+ | "disconnected"
102
+ | "deleted"
103
+ | "not found";
104
+ /**
105
+ * Format: uuid
106
+ * @description User ID who owns this connection
107
+ */
108
+ user_id?: string;
109
+ /** Format: date-time */
110
+ created_at?: string;
111
+ /** Format: date-time */
112
+ updated_at?: string;
113
+ /**
114
+ * Format: date-time
115
+ * @description SQL null Timestamp to handle null values of time.
116
+ */
117
+ deleted_at?: string;
118
+ /** @description Associated environments for this connection */
119
+ environments?: {
120
+ /**
121
+ * Format: uuid
122
+ * @description ID
123
+ */
124
+ id: string;
125
+ /**
126
+ * @description Specifies the version of the schema to which the environment conforms.
127
+ * @default environments.meshery.io/v1beta1
128
+ * @example [
129
+ * "v1",
130
+ * "v1alpha1",
131
+ * "v2beta3",
132
+ * "v1.custom-suffix",
133
+ * "models.meshery.io/v1beta1",
134
+ * "capability.meshery.io/v1alpha1"
135
+ * ]
136
+ */
137
+ schemaVersion: string;
138
+ /** @description Environment name */
139
+ name: string;
140
+ /** @description Environment description */
141
+ description: string;
142
+ /**
143
+ * Format: uuid
144
+ * @description Environment organization ID
145
+ */
146
+ organization_id: string;
147
+ /**
148
+ * Format: uuid
149
+ * @description Environment owner
150
+ */
151
+ owner?: string;
152
+ /**
153
+ * Format: date-time
154
+ * @description Timestamp when the resource was created.
155
+ */
156
+ created_at?: string;
157
+ /** @description Additional metadata associated with the environment. */
158
+ metadata?: { [key: string]: unknown };
159
+ /**
160
+ * Format: date-time
161
+ * @description Timestamp when the resource was updated.
162
+ */
163
+ updated_at?: string;
164
+ /**
165
+ * Format: date-time
166
+ * @description Timestamp when the environment was soft deleted. Null while the environment remains active.
167
+ */
168
+ deleted_at?: string | null;
169
+ }[];
170
+ /**
171
+ * @description Specifies the version of the schema used for the definition.
172
+ * @default connections.meshery.io/v1beta1
173
+ * @example [
174
+ * "v1",
175
+ * "v1alpha1",
176
+ * "v2beta3",
177
+ * "v1.custom-suffix",
178
+ * "models.meshery.io/v1beta1",
179
+ * "capability.meshery.io/v1alpha1"
180
+ * ]
181
+ */
182
+ schemaVersion: string;
183
+ };
184
+ /**
185
+ * Format: uuid
186
+ * @description ID of the registrant.
187
+ */
188
+ registrantId: string;
189
+ /**
190
+ * Format: uuid
191
+ * @description ID of the category.
192
+ */
193
+ categoryId: string;
194
+ /** @description Category of the model. */
195
+ category: {
196
+ /**
197
+ * Format: uuid
198
+ * @description A Universally Unique Identifier used to uniquely identify entities in Meshery. The UUID core definition is used across different schemas.
199
+ */
200
+ id: string;
201
+ /**
202
+ * @description The category of the model that determines the main grouping.
203
+ * @default Uncategorized
204
+ * @enum {string}
205
+ */
206
+ name:
207
+ | "Analytics"
208
+ | "App Definition and Development"
209
+ | "Cloud Native Network"
210
+ | "Cloud Native Storage"
211
+ | "Database"
212
+ | "Machine Learning"
213
+ | "Observability and Analysis"
214
+ | "Orchestration & Management"
215
+ | "Platform"
216
+ | "Provisioning"
217
+ | "Runtime"
218
+ | "Security & Compliance"
219
+ | "Serverless"
220
+ | "Tools"
221
+ | "Uncategorized";
222
+ /** @description Additional metadata associated with the category. */
223
+ metadata: { [key: string]: unknown };
224
+ };
225
+ /**
226
+ * SubCategory
227
+ * @description Sub category of the model determines the secondary grouping.
228
+ * @default Uncategorized
229
+ * @enum {string}
230
+ */
231
+ subCategory:
232
+ | "API Gateway"
233
+ | "API Integration"
234
+ | "Application Definition & Image Build"
235
+ | "Automation & Configuration"
236
+ | "Certified Kubernetes - Distribution"
237
+ | "Chaos Engineering"
238
+ | "Cloud Native Storage"
239
+ | "Cloud Provider"
240
+ | "CNI"
241
+ | "Compute"
242
+ | "Container Registry"
243
+ | "Container Runtime"
244
+ | "Container Security"
245
+ | "Container"
246
+ | "Content Delivery Network"
247
+ | "Continuous Integration & Delivery"
248
+ | "Coordination & Service Discovery"
249
+ | "Database"
250
+ | "Flowchart"
251
+ | "Framework"
252
+ | "Installable Platform"
253
+ | "Key Management"
254
+ | "Key Management Service"
255
+ | "Kubernetes"
256
+ | "Logging"
257
+ | "Machine Learning"
258
+ | "Management Governance"
259
+ | "Metrics"
260
+ | "Monitoring"
261
+ | "Networking Content Delivery"
262
+ | "Operating System"
263
+ | "Query"
264
+ | "Remote Procedure Call"
265
+ | "Scheduling & Orchestration"
266
+ | "Secrets Management"
267
+ | "Security Identity & Compliance"
268
+ | "Service Mesh"
269
+ | "Service Proxy"
270
+ | "Source Version Control"
271
+ | "Storage"
272
+ | "Specifications"
273
+ | "Streaming & Messaging"
274
+ | "Tools"
275
+ | "Tracing"
276
+ | "Uncategorized"
277
+ | "Video Conferencing";
278
+ /** @description Metadata containing additional information associated with the model. */
279
+ metadata?: {
280
+ /** @description Capabilities associated with the model */
281
+ capabilities?: {
282
+ /**
283
+ * @description Specifies the version of the schema to which the capability definition conforms.
284
+ * @example [
285
+ * "v1",
286
+ * "v1alpha1",
287
+ * "v2beta3",
288
+ * "v1.custom-suffix",
289
+ * "models.meshery.io/v1beta1",
290
+ * "capability.meshery.io/v1alpha1"
291
+ * ]
292
+ */
293
+ schemaVersion: string;
294
+ /** @description Version of the capability definition. */
295
+ version: string;
296
+ /** @description Name of the capability in human-readible format. */
297
+ displayName: string;
298
+ /** @description A written representation of the purpose and characteristics of the capability. */
299
+ description: string;
300
+ /** @description Top-level categorization of the capability */
301
+ kind: string;
302
+ /** @description Classification of capabilities. Used to group capabilities similar in nature. */
303
+ type: string;
304
+ /** @description Most granular unit of capability classification. The combination of Kind, Type and SubType together uniquely identify a Capability. */
305
+ subType: string;
306
+ /** @description Key that backs the capability. */
307
+ key: string;
308
+ /** @description State of the entity in which the capability is applicable. */
309
+ entityState: ("declaration" | "instance")[];
310
+ /**
311
+ * @description Status of the capability
312
+ * @default enabled
313
+ * @enum {string}
314
+ */
315
+ status: "enabled" | "disabled";
316
+ /** @description Metadata contains additional information associated with the capability. Extension point. */
317
+ metadata?: { [key: string]: unknown };
318
+ }[];
319
+ /**
320
+ * @description Indicates whether the model and its entities should be treated as deployable entities or as logical representations.
321
+ * @default false
322
+ */
323
+ isAnnotation?: boolean;
324
+ /**
325
+ * @description Primary color associated with the model.
326
+ * @default #00b39f
327
+ */
328
+ primaryColor?: string;
329
+ /**
330
+ * @description Secondary color associated with the model.
331
+ * @default #00D3A9
332
+ */
333
+ secondaryColor?: string;
334
+ /**
335
+ * @description SVG representation of the model in white color.
336
+ * @default <svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M16.405 8.732v6.57l5.694-3.297-5.694-3.273Zm0 7.942v6.602l5.747-3.285-5.747-3.317Z" fill="#fff"/><path d="M15.586 15.256v-6.47l-5.622 3.225 5.622 3.245ZM4.307 23.252a13.809 13.809 0 0 0 4.362 4.39v-6.914l-4.362 2.524Zm11.279-.008v-6.52L9.95 19.985l5.636 3.258Z" fill="#fff" fill-opacity=".8"/><path d="m9.49 27.23 5.707-3.263-5.707-3.3v6.563Z" fill="#fff"/><path d="M22.54 27.265v-6.553l-5.699 3.259 5.7 3.294Zm5.58-4.773a13.697 13.697 0 0 0 1.612-5.895l-5.934 3.397 4.323 2.498Z" fill="#fff" fill-opacity=".8"/><path d="m23.362 19.298 5.728-3.276-5.728-3.291v6.567Z" fill="#fff"/><path d="M22.541 11.315V4.8l-5.673 3.253 5.673 3.262Zm0 7.955v-6.574l-5.685 3.292 5.685 3.281Z" fill="#fff" fill-opacity=".8"/><path d="M9.49 12.684v6.622l5.728-3.316-5.728-3.306Z" fill="#fff"/><path d="M15.586 2.25a13.69 13.69 0 0 0-6.037 1.595l6.037 3.463V2.25Z" fill="#fff" fill-opacity=".8"/><path d="M9.49 4.756v6.583l5.732-3.288L9.49 4.756Z" fill="#fff"/><path d="M8.669 4.356a13.83 13.83 0 0 0-4.362 4.39l4.362 2.518V4.356Z" fill="#fff" fill-opacity=".8"/><path d="M22.504 3.88a13.695 13.695 0 0 0-6.099-1.63v5.123l6.1-3.493ZM2.25 16.483c.071 2.12.634 4.196 1.644 6.062l4.418-2.559-6.062-3.503Zm1.644-7.028a13.68 13.68 0 0 0-1.644 6.036l6.068-3.482-4.424-2.554Z" fill="#fff"/><path d="M9.539 28.147a13.673 13.673 0 0 0 6.047 1.603v-5.062L9.54 28.147Z" fill="#fff" fill-opacity=".8"/><path d="M27.697 8.768a13.83 13.83 0 0 0-4.335-4.383v6.889l4.335-2.506ZM23.362 27.62a13.851 13.851 0 0 0 4.351-4.417l-4.351-2.514v6.93Z" fill="#fff"/><path d="M29.75 15.452a13.659 13.659 0 0 0-1.63-5.979l-4.381 2.53 6.011 3.45Z" fill="#fff" fill-opacity=".8"/><path d="M16.405 29.75a13.673 13.673 0 0 0 6.036-1.595l-6.036-3.498v5.093Z" fill="#fff"/><path d="M8.669 19.247v-6.494L3.03 15.986l5.639 3.261Z" fill="#fff" fill-opacity=".8"/></svg>
337
+ */
338
+ svgWhite: string;
339
+ /**
340
+ * @description SVG representation of the model in colored format.
341
+ * @default <svg xmlns="http://www.w3.org/2000/svg" id="Layer_1" data-name="Layer 1" viewBox="0 0 134.95 135.02"><defs><style>.cls-1{fill:#00d3a9}.cls-2{fill:#00b39f}</style></defs><title>meshery-logo-light</title><polygon points="69.49 31.82 69.49 64.07 97.44 47.89 69.49 31.82" class="cls-1"/><polygon points="69.49 70.81 69.49 103.22 97.7 87.09 69.49 70.81" class="cls-1"/><polygon points="65.47 63.85 65.47 32.09 37.87 47.92 65.47 63.85" class="cls-2"/><path d="M10.1,103.1a67.79,67.79,0,0,0,21.41,21.55V90.71Z" class="cls-2"/><polygon points="65.47 103.06 65.47 71.05 37.8 87.07 65.47 103.06" class="cls-2"/><polygon points="35.54 122.63 63.56 106.61 35.54 90.41 35.54 122.63" class="cls-1"/><polygon points="99.61 122.8 99.61 90.63 71.63 106.63 99.61 122.8" class="cls-2"/><path d="M127,99.37a67.22,67.22,0,0,0,7.91-28.94L105.78,87.11Z" class="cls-2"/><polygon points="103.64 83.69 131.76 67.61 103.64 51.45 103.64 83.69" class="cls-1"/><polygon points="99.61 44.5 99.61 12.52 71.76 28.49 99.61 44.5" class="cls-2"/><polygon points="99.61 83.55 99.61 51.28 71.7 67.44 99.61 83.55" class="cls-2"/><polygon points="67.48 135.02 67.49 135.02 67.48 135.02 67.48 135.02" class="cls-2"/><polygon points="35.54 51.22 35.54 83.73 63.66 67.45 35.54 51.22" class="cls-1"/><path d="M65.47,0A67.2,67.2,0,0,0,35.83,7.83l29.64,17Z" class="cls-2"/><polygon points="35.54 12.3 35.54 44.62 63.68 28.48 35.54 12.3" class="cls-1"/><path d="M31.51,10.34A67.89,67.89,0,0,0,10.1,31.89L31.51,44.25Z" class="cls-2"/><path d="M99.43,8A67.23,67.23,0,0,0,69.49,0V25.15Z" class="cls-1"/><path d="M0,69.87A67.27,67.27,0,0,0,8.07,99.63L29.76,87.07Z" class="cls-1"/><path d="M8.07,35.37A67.16,67.16,0,0,0,0,65L29.79,47.91Z" class="cls-1"/><path d="M35.78,127.13A67.13,67.13,0,0,0,65.47,135V110.15Z" class="cls-2"/><path d="M124.92,32a67.9,67.9,0,0,0-21.28-21.52V44.3Z" class="cls-1"/><path d="M103.64,124.54A68,68,0,0,0,125,102.86L103.64,90.52Z" class="cls-1"/><path d="M135,64.81a67.06,67.06,0,0,0-8-29.35L105.49,47.88Z" class="cls-2"/><path d="M69.49,135a67.12,67.12,0,0,0,29.63-7.83L69.49,110Z" class="cls-1"/><polygon points="31.51 83.44 31.51 51.56 3.83 67.43 31.51 83.44" class="cls-2"/></svg>
342
+ */
343
+ svgColor: string;
344
+ /** @description SVG representation of the complete model. */
345
+ svgComplete?: string;
346
+ /**
347
+ * @description The shape of the node's body. Note that each shape fits within the specified width and height, and so you may have to adjust width and height if you desire an equilateral shape (i.e. width !== height for several equilateral shapes)
348
+ * @enum {string}
349
+ */
350
+ shape?:
351
+ | "ellipse"
352
+ | "triangle"
353
+ | "round-triangle"
354
+ | "rectangle"
355
+ | "round-rectangle"
356
+ | "bottom-round-rectangle"
357
+ | "cut-rectangle"
358
+ | "barrel"
359
+ | "rhomboid"
360
+ | "diamond"
361
+ | "round-diamond"
362
+ | "pentagon"
363
+ | "round-pentagon"
364
+ | "hexagon"
365
+ | "round-hexagon"
366
+ | "concave-hexagon"
367
+ | "heptagon"
368
+ | "round-heptagon"
369
+ | "octagon"
370
+ | "round-octagon"
371
+ | "star"
372
+ | "tag"
373
+ | "round-tag"
374
+ | "vee"
375
+ | "polygon";
376
+ } & { [key: string]: unknown };
377
+ /** @description Registrant-defined data associated with the model. Properties pertain to the software being managed (e.g. Kubernetes v1.31). */
378
+ model: {
379
+ /** @description Version of the model as defined by the registrant. */
380
+ version: string;
381
+ };
382
+ /** @description The relationships of the model. */
383
+ relationships: unknown[];
384
+ /** @description The components of the model. */
385
+ components: unknown[];
386
+ /**
387
+ * @description Number of components associated with the model.
388
+ * @default 0
389
+ */
390
+ componentsCount: number;
391
+ /**
392
+ * @description Number of relationships associated with the model.
393
+ * @default 0
394
+ */
395
+ relationshipsCount: number;
396
+ /**
397
+ * Format: date-time
398
+ * @description Timestamp when the resource was created.
399
+ */
400
+ created_at?: string;
401
+ /**
402
+ * Format: date-time
403
+ * @description Timestamp when the resource was updated.
404
+ */
405
+ updated_at?: string;
406
+ };
407
+ RegistrantReference: {
408
+ /** @description Kind of the registrant. */
409
+ kind: string;
410
+ };
411
+ /** @description Reference to the specific registered model to which the component belongs and from which model version, category, and other properties may be referenced. Learn more at https://docs.meshery.io/concepts/models */
412
+ ModelReference: {
413
+ /**
414
+ * Format: uuid
415
+ * @description A Universally Unique Identifier used to uniquely identify entities in Meshery. The UUID core definition is used across different schemas.
416
+ */
417
+ id: string;
418
+ /** @description The unique name for the model within the scope of a registrant. */
419
+ name: string;
420
+ /** @description Version of the model definition. */
421
+ version: string;
422
+ /** @description Human-readable name for the model. */
423
+ displayName: string;
424
+ /** @description Registrant-defined data associated with the model. Properties pertain to the software being managed (e.g. Kubernetes v1.31). */
425
+ model: {
426
+ /** @description Version of the model as defined by the registrant. */
427
+ version: string;
428
+ };
429
+ registrant: {
430
+ /** @description Kind of the registrant. */
431
+ kind: string;
432
+ };
433
+ };
434
+ ImportRequest: {
435
+ importBody:
436
+ | {
437
+ /** @description Name of the file being uploaded. */
438
+ fileName: string;
439
+ /** @description Supported model file formats are: .tar, .tar.gz, and .tgz. See [Import Models Documentation](https://docs.meshery.io/guides/configuration-management/importing-models#import-models-using-meshery-ui) for details */
440
+ modelFile: string;
441
+ }
442
+ | {
232
443
  /**
233
- * SubCategory
234
- * @description Sub category of the model determines the secondary grouping.
235
- * @default Uncategorized
236
- * @enum {string}
444
+ * Format: uri
445
+ * @description A direct URL to a single model file, for example: https://raw.github.com/your-model-file.tar. Supported model file formats are: .tar, .tar.gz, and .tgz. \n\nFor bulk import of your model use the GitHub connection or CSV files. See [Import Models Documentation](https://docs.meshery.io/guides/configuration-management/importing-models#import-models-using-meshery-ui) for details
237
446
  */
238
- subCategory: "API Gateway" | "API Integration" | "Application Definition & Image Build" | "Automation & Configuration" | "Certified Kubernetes - Distribution" | "Chaos Engineering" | "Cloud Native Storage" | "Cloud Provider" | "CNI" | "Compute" | "Container Registry" | "Container Runtime" | "Container Security" | "Container" | "Content Delivery Network" | "Continuous Integration & Delivery" | "Coordination & Service Discovery" | "Database" | "Flowchart" | "Framework" | "Installable Platform" | "Key Management" | "Key Management Service" | "Kubernetes" | "Logging" | "Machine Learning" | "Management Governance" | "Metrics" | "Monitoring" | "Networking Content Delivery" | "Operating System" | "Query" | "Remote Procedure Call" | "Scheduling & Orchestration" | "Secrets Management" | "Security Identity & Compliance" | "Service Mesh" | "Service Proxy" | "Source Version Control" | "Storage" | "Specifications" | "Streaming & Messaging" | "Tools" | "Tracing" | "Uncategorized" | "Video Conferencing";
239
- /** @description Metadata containing additional information associated with the model. */
240
- metadata?: {
241
- /** @description Capabilities associated with the model */
242
- capabilities?: {
243
- /**
244
- * @description Specifies the version of the schema to which the capability definition conforms.
245
- * @example [
246
- * "v1",
247
- * "v1alpha1",
248
- * "v2beta3",
249
- * "v1.custom-suffix",
250
- * "models.meshery.io/v1beta1",
251
- * "capability.meshery.io/v1alpha1"
252
- * ]
253
- */
254
- schemaVersion: string;
255
- /** @description Version of the capability definition. */
256
- version: string;
257
- /** @description Name of the capability in human-readible format. */
258
- displayName: string;
259
- /** @description A written representation of the purpose and characteristics of the capability. */
260
- description: string;
261
- /** @description Top-level categorization of the capability */
262
- kind: string | "action" | "mutate" | "view" | "interaction";
263
- /** @description Classification of capabilities. Used to group capabilities similar in nature. */
264
- type: string;
265
- /** @description Most granular unit of capability classification. The combination of Kind, Type and SubType together uniquely identify a Capability. */
266
- subType: string;
267
- /** @description Key that backs the capability. */
268
- key: string;
269
- /** @description State of the entity in which the capability is applicable. */
270
- entityState: ("declaration" | "instance")[];
271
- /**
272
- * @description Status of the capability
273
- * @default enabled
274
- * @enum {string}
275
- */
276
- status: "enabled" | "disabled";
277
- /** @description Metadata contains additional information associated with the capability. Extension point. */
278
- metadata?: {
279
- [key: string]: unknown;
280
- };
281
- }[];
282
- /**
283
- * @description Indicates whether the model and its entities should be treated as deployable entities or as logical representations.
284
- * @default false
285
- */
286
- isAnnotation: boolean;
287
- /**
288
- * @description Primary color associated with the model.
289
- * @default #00b39f
290
- */
291
- primaryColor: string;
292
- /**
293
- * @description Secondary color associated with the model.
294
- * @default #00D3A9
295
- */
296
- secondaryColor: string;
297
- /**
298
- * @description SVG representation of the model in white color.
299
- * @default <svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M16.405 8.732v6.57l5.694-3.297-5.694-3.273Zm0 7.942v6.602l5.747-3.285-5.747-3.317Z" fill="#fff"/><path d="M15.586 15.256v-6.47l-5.622 3.225 5.622 3.245ZM4.307 23.252a13.809 13.809 0 0 0 4.362 4.39v-6.914l-4.362 2.524Zm11.279-.008v-6.52L9.95 19.985l5.636 3.258Z" fill="#fff" fill-opacity=".8"/><path d="m9.49 27.23 5.707-3.263-5.707-3.3v6.563Z" fill="#fff"/><path d="M22.54 27.265v-6.553l-5.699 3.259 5.7 3.294Zm5.58-4.773a13.697 13.697 0 0 0 1.612-5.895l-5.934 3.397 4.323 2.498Z" fill="#fff" fill-opacity=".8"/><path d="m23.362 19.298 5.728-3.276-5.728-3.291v6.567Z" fill="#fff"/><path d="M22.541 11.315V4.8l-5.673 3.253 5.673 3.262Zm0 7.955v-6.574l-5.685 3.292 5.685 3.281Z" fill="#fff" fill-opacity=".8"/><path d="M9.49 12.684v6.622l5.728-3.316-5.728-3.306Z" fill="#fff"/><path d="M15.586 2.25a13.69 13.69 0 0 0-6.037 1.595l6.037 3.463V2.25Z" fill="#fff" fill-opacity=".8"/><path d="M9.49 4.756v6.583l5.732-3.288L9.49 4.756Z" fill="#fff"/><path d="M8.669 4.356a13.83 13.83 0 0 0-4.362 4.39l4.362 2.518V4.356Z" fill="#fff" fill-opacity=".8"/><path d="M22.504 3.88a13.695 13.695 0 0 0-6.099-1.63v5.123l6.1-3.493ZM2.25 16.483c.071 2.12.634 4.196 1.644 6.062l4.418-2.559-6.062-3.503Zm1.644-7.028a13.68 13.68 0 0 0-1.644 6.036l6.068-3.482-4.424-2.554Z" fill="#fff"/><path d="M9.539 28.147a13.673 13.673 0 0 0 6.047 1.603v-5.062L9.54 28.147Z" fill="#fff" fill-opacity=".8"/><path d="M27.697 8.768a13.83 13.83 0 0 0-4.335-4.383v6.889l4.335-2.506ZM23.362 27.62a13.851 13.851 0 0 0 4.351-4.417l-4.351-2.514v6.93Z" fill="#fff"/><path d="M29.75 15.452a13.659 13.659 0 0 0-1.63-5.979l-4.381 2.53 6.011 3.45Z" fill="#fff" fill-opacity=".8"/><path d="M16.405 29.75a13.673 13.673 0 0 0 6.036-1.595l-6.036-3.498v5.093Z" fill="#fff"/><path d="M8.669 19.247v-6.494L3.03 15.986l5.639 3.261Z" fill="#fff" fill-opacity=".8"/></svg>
300
- */
301
- svgWhite: string;
302
- /**
303
- * @description SVG representation of the model in colored format.
304
- * @default <svg xmlns="http://www.w3.org/2000/svg" id="Layer_1" data-name="Layer 1" viewBox="0 0 134.95 135.02"><defs><style>.cls-1{fill:#00d3a9}.cls-2{fill:#00b39f}</style></defs><title>meshery-logo-light</title><polygon points="69.49 31.82 69.49 64.07 97.44 47.89 69.49 31.82" class="cls-1"/><polygon points="69.49 70.81 69.49 103.22 97.7 87.09 69.49 70.81" class="cls-1"/><polygon points="65.47 63.85 65.47 32.09 37.87 47.92 65.47 63.85" class="cls-2"/><path d="M10.1,103.1a67.79,67.79,0,0,0,21.41,21.55V90.71Z" class="cls-2"/><polygon points="65.47 103.06 65.47 71.05 37.8 87.07 65.47 103.06" class="cls-2"/><polygon points="35.54 122.63 63.56 106.61 35.54 90.41 35.54 122.63" class="cls-1"/><polygon points="99.61 122.8 99.61 90.63 71.63 106.63 99.61 122.8" class="cls-2"/><path d="M127,99.37a67.22,67.22,0,0,0,7.91-28.94L105.78,87.11Z" class="cls-2"/><polygon points="103.64 83.69 131.76 67.61 103.64 51.45 103.64 83.69" class="cls-1"/><polygon points="99.61 44.5 99.61 12.52 71.76 28.49 99.61 44.5" class="cls-2"/><polygon points="99.61 83.55 99.61 51.28 71.7 67.44 99.61 83.55" class="cls-2"/><polygon points="67.48 135.02 67.49 135.02 67.48 135.02 67.48 135.02" class="cls-2"/><polygon points="35.54 51.22 35.54 83.73 63.66 67.45 35.54 51.22" class="cls-1"/><path d="M65.47,0A67.2,67.2,0,0,0,35.83,7.83l29.64,17Z" class="cls-2"/><polygon points="35.54 12.3 35.54 44.62 63.68 28.48 35.54 12.3" class="cls-1"/><path d="M31.51,10.34A67.89,67.89,0,0,0,10.1,31.89L31.51,44.25Z" class="cls-2"/><path d="M99.43,8A67.23,67.23,0,0,0,69.49,0V25.15Z" class="cls-1"/><path d="M0,69.87A67.27,67.27,0,0,0,8.07,99.63L29.76,87.07Z" class="cls-1"/><path d="M8.07,35.37A67.16,67.16,0,0,0,0,65L29.79,47.91Z" class="cls-1"/><path d="M35.78,127.13A67.13,67.13,0,0,0,65.47,135V110.15Z" class="cls-2"/><path d="M124.92,32a67.9,67.9,0,0,0-21.28-21.52V44.3Z" class="cls-1"/><path d="M103.64,124.54A68,68,0,0,0,125,102.86L103.64,90.52Z" class="cls-1"/><path d="M135,64.81a67.06,67.06,0,0,0-8-29.35L105.49,47.88Z" class="cls-2"/><path d="M69.49,135a67.12,67.12,0,0,0,29.63-7.83L69.49,110Z" class="cls-1"/><polygon points="31.51 83.44 31.51 51.56 3.83 67.43 31.51 83.44" class="cls-2"/></svg>
305
- */
306
- svgColor: string;
307
- /** @description SVG representation of the complete model. */
308
- svgComplete?: string;
309
- /**
310
- * @description The shape of the node's body. Note that each shape fits within the specified width and height, and so you may have to adjust width and height if you desire an equilateral shape (i.e. width !== height for several equilateral shapes)
311
- * @enum {string}
312
- */
313
- shape?: "ellipse" | "triangle" | "round-triangle" | "rectangle" | "round-rectangle" | "bottom-round-rectangle" | "cut-rectangle" | "barrel" | "rhomboid" | "diamond" | "round-diamond" | "pentagon" | "round-pentagon" | "hexagon" | "round-hexagon" | "concave-hexagon" | "heptagon" | "round-heptagon" | "octagon" | "round-octagon" | "star" | "tag" | "round-tag" | "vee" | "polygon";
314
- } & {
315
- [key: string]: unknown;
316
- };
317
- /** @description Registrant-defined data associated with the model. Properties pertain to the software being managed (e.g. Kubernetes v1.31). */
318
- model: {
319
- /** @description Version of the model as defined by the registrant. */
320
- version: string;
321
- };
322
- /** @description The relationships of the model. */
323
- relationships: unknown[];
324
- /** @description The components of the model. */
325
- components: unknown[];
447
+ url: string;
448
+ }
449
+ | {
326
450
  /**
327
- * @description Number of components associated with the model.
328
- * @default 0
451
+ * Format: binary
452
+ * @description Upload a CSV file containing model definitions
329
453
  */
330
- componentsCount: number;
454
+ modelCsv: string;
331
455
  /**
332
- * @description Number of relationships associated with the model.
333
- * @default 0
456
+ * Format: binary
457
+ * @description Upload a CSV file containing component definitions
334
458
  */
335
- relationshipsCount: number;
459
+ componentCsv: string;
336
460
  /**
337
- * Format: date-time
338
- * @description Timestamp when the resource was created.
461
+ * Format: binary
462
+ * @description Upload a CSV file containing relationship definitions
339
463
  */
340
- created_at?: string;
464
+ relationshipCsv: string;
465
+ }
466
+ | ({
341
467
  /**
342
- * Format: date-time
343
- * @description Timestamp when the resource was updated.
468
+ * Format: uri
469
+ * @description URI to the source code or package of the model.
344
470
  */
345
- updated_at?: string;
346
- };
347
- RegistrantReference: {
348
- /** @description Kind of the registrant. */
349
- kind: string;
471
+ url: string;
472
+ } & {
473
+ model: unknown;
474
+ });
475
+ /**
476
+ * Upload method
477
+ * @description Choose the method you prefer to upload your model file. Select 'File Import' or 'CSV Import' if you have the file on your local system or 'URL Import' if you have the file hosted online.
478
+ * @enum {string}
479
+ */
480
+ uploadType: "file" | "urlImport" | "csv" | "url";
481
+ /** @description The register of the importrequest. */
482
+ register: boolean;
483
+ };
484
+ ImportBody:
485
+ | {
486
+ /** @description Name of the file being uploaded. */
487
+ fileName: string;
488
+ /** @description Supported model file formats are: .tar, .tar.gz, and .tgz. See [Import Models Documentation](https://docs.meshery.io/guides/configuration-management/importing-models#import-models-using-meshery-ui) for details */
489
+ modelFile: string;
490
+ }
491
+ | {
492
+ /**
493
+ * Format: uri
494
+ * @description A direct URL to a single model file, for example: https://raw.github.com/your-model-file.tar. Supported model file formats are: .tar, .tar.gz, and .tgz. \n\nFor bulk import of your model use the GitHub connection or CSV files. See [Import Models Documentation](https://docs.meshery.io/guides/configuration-management/importing-models#import-models-using-meshery-ui) for details
495
+ */
496
+ url: string;
497
+ }
498
+ | {
499
+ /**
500
+ * Format: binary
501
+ * @description Upload a CSV file containing model definitions
502
+ */
503
+ modelCsv: string;
504
+ /**
505
+ * Format: binary
506
+ * @description Upload a CSV file containing component definitions
507
+ */
508
+ componentCsv: string;
509
+ /**
510
+ * Format: binary
511
+ * @description Upload a CSV file containing relationship definitions
512
+ */
513
+ relationshipCsv: string;
514
+ }
515
+ | ({
516
+ /**
517
+ * Format: uri
518
+ * @description URI to the source code or package of the model.
519
+ */
520
+ url: string;
521
+ } & {
522
+ model: unknown;
523
+ });
524
+ MeshModelModelsPage: {
525
+ /** @description Current page number of the result set. */
526
+ page?: number;
527
+ /** @description Number of items per page. */
528
+ page_size?: number;
529
+ /** @description Total number of items available. */
530
+ total_count?: number;
531
+ /** @description The models of the meshmodelmodelspage. */
532
+ models?: { [key: string]: unknown }[];
533
+ };
534
+ };
535
+ responses: {
536
+ /** Expired JWT token used or insufficient privilege */
537
+ 401: {
538
+ content: {
539
+ "text/plain": string;
540
+ };
541
+ };
542
+ };
543
+ }
544
+
545
+ export interface operations {
546
+ registerMeshmodels: {
547
+ responses: {
548
+ /** Successful registration */
549
+ 201: {
550
+ content: {
551
+ "application/json": {
552
+ message?: string;
553
+ };
350
554
  };
351
- /** @description Reference to the specific registered model to which the component belongs and from which model version, category, and other properties may be referenced. Learn more at https://docs.meshery.io/concepts/models */
352
- ModelReference: {
353
- /**
354
- * Format: uuid
355
- * @description A Universally Unique Identifier used to uniquely identify entities in Meshery. The UUID core definition is used across different schemas.
356
- */
357
- id: string;
358
- /**
359
- * @description The unique name for the model within the scope of a registrant.
360
- * @example cert-manager
361
- */
362
- name: string;
363
- /** @description Version of the model definition. */
364
- version: string;
365
- /**
366
- * @description Human-readable name for the model.
367
- * @example Cert Manager
368
- */
369
- displayName: string;
370
- /** @description Registrant-defined data associated with the model. Properties pertain to the software being managed (e.g. Kubernetes v1.31). */
371
- model: {
372
- /** @description Version of the model as defined by the registrant. */
373
- version: string;
374
- };
375
- registrant: {
376
- /** @description Kind of the registrant. */
377
- kind: string;
378
- };
555
+ };
556
+ /** Invalid request format */
557
+ 400: unknown;
558
+ /** Expired JWT token used or insufficient privilege */
559
+ 401: {
560
+ content: {
561
+ "text/plain": string;
379
562
  };
380
- ImportRequest: {
381
- importBody: {
563
+ };
564
+ /** Internal server error */
565
+ 500: unknown;
566
+ };
567
+ requestBody: {
568
+ content: {
569
+ "multipart/form-data": {
570
+ importBody:
571
+ | {
382
572
  /** @description Name of the file being uploaded. */
383
573
  fileName: string;
384
574
  /** @description Supported model file formats are: .tar, .tar.gz, and .tgz. See [Import Models Documentation](https://docs.meshery.io/guides/configuration-management/importing-models#import-models-using-meshery-ui) for details */
385
575
  modelFile: string;
386
- } | {
576
+ }
577
+ | {
387
578
  /**
388
579
  * Format: uri
389
580
  * @description A direct URL to a single model file, for example: https://raw.github.com/your-model-file.tar. Supported model file formats are: .tar, .tar.gz, and .tgz. \n\nFor bulk import of your model use the GitHub connection or CSV files. See [Import Models Documentation](https://docs.meshery.io/guides/configuration-management/importing-models#import-models-using-meshery-ui) for details
390
581
  */
391
582
  url: string;
392
- } | {
583
+ }
584
+ | {
393
585
  /**
394
586
  * Format: binary
395
587
  * @description Upload a CSV file containing model definitions
@@ -405,57 +597,42 @@ export interface components {
405
597
  * @description Upload a CSV file containing relationship definitions
406
598
  */
407
599
  relationshipCsv: string;
408
- } | {
600
+ }
601
+ | ({
409
602
  /**
410
603
  * Format: uri
411
604
  * @description URI to the source code or package of the model.
412
605
  */
413
606
  url: string;
414
- };
415
- /**
416
- * Upload method
417
- * @description Choose the method you prefer to upload your model file. Select 'File Import' or 'CSV Import' if you have the file on your local system or 'URL Import' if you have the file hosted online.
418
- * @enum {string}
419
- */
420
- uploadType: "file" | "urlImport" | "csv" | "url";
421
- /** @description The register of the importrequest. */
422
- register: boolean;
607
+ } & {
608
+ model: unknown;
609
+ });
610
+ /**
611
+ * Upload method
612
+ * @description Choose the method you prefer to upload your model file. Select 'File Import' or 'CSV Import' if you have the file on your local system or 'URL Import' if you have the file hosted online.
613
+ * @enum {string}
614
+ */
615
+ uploadType: "file" | "urlImport" | "csv" | "url";
616
+ /** @description The register of the importrequest. */
617
+ register: boolean;
423
618
  };
424
- ImportBody: {
425
- /** @description Name of the file being uploaded. */
426
- fileName: string;
427
- /** @description Supported model file formats are: .tar, .tar.gz, and .tgz. See [Import Models Documentation](https://docs.meshery.io/guides/configuration-management/importing-models#import-models-using-meshery-ui) for details */
428
- modelFile: string;
429
- } | {
430
- /**
431
- * Format: uri
432
- * @description A direct URL to a single model file, for example: https://raw.github.com/your-model-file.tar. Supported model file formats are: .tar, .tar.gz, and .tgz. \n\nFor bulk import of your model use the GitHub connection or CSV files. See [Import Models Documentation](https://docs.meshery.io/guides/configuration-management/importing-models#import-models-using-meshery-ui) for details
433
- */
434
- url: string;
435
- } | {
436
- /**
437
- * Format: binary
438
- * @description Upload a CSV file containing model definitions
439
- */
440
- modelCsv: string;
441
- /**
442
- * Format: binary
443
- * @description Upload a CSV file containing component definitions
444
- */
445
- componentCsv: string;
446
- /**
447
- * Format: binary
448
- * @description Upload a CSV file containing relationship definitions
449
- */
450
- relationshipCsv: string;
451
- } | {
452
- /**
453
- * Format: uri
454
- * @description URI to the source code or package of the model.
455
- */
456
- url: string;
457
- };
458
- MeshModelModelsPage: {
619
+ };
620
+ };
621
+ };
622
+ getMeshModelModels: {
623
+ parameters: {
624
+ query: {
625
+ page?: string;
626
+ pagesize?: string;
627
+ search?: string;
628
+ order?: string;
629
+ };
630
+ };
631
+ responses: {
632
+ /** Model and capabilities registry entries retrieved. */
633
+ 200: {
634
+ content: {
635
+ "application/json": {
459
636
  /** @description Current page number of the result set. */
460
637
  page?: number;
461
638
  /** @description Number of items per page. */
@@ -463,171 +640,20 @@ export interface components {
463
640
  /** @description Total number of items available. */
464
641
  total_count?: number;
465
642
  /** @description The models of the meshmodelmodelspage. */
466
- models?: {
467
- [key: string]: unknown;
468
- }[];
469
- };
470
- };
471
- responses: {
472
- /** @description Expired JWT token used or insufficient privilege */
473
- 401: {
474
- headers: {
475
- [name: string]: unknown;
476
- };
477
- content: {
478
- "text/plain": string;
479
- };
480
- };
481
- };
482
- parameters: never;
483
- requestBodies: never;
484
- headers: never;
485
- pathItems: never;
486
- }
487
- export type $defs = Record<string, never>;
488
- export interface operations {
489
- registerMeshmodels: {
490
- parameters: {
491
- query?: never;
492
- header?: never;
493
- path?: never;
494
- cookie?: never;
495
- };
496
- requestBody: {
497
- content: {
498
- "multipart/form-data": {
499
- importBody: {
500
- /** @description Name of the file being uploaded. */
501
- fileName: string;
502
- /** @description Supported model file formats are: .tar, .tar.gz, and .tgz. See [Import Models Documentation](https://docs.meshery.io/guides/configuration-management/importing-models#import-models-using-meshery-ui) for details */
503
- modelFile: string;
504
- } | {
505
- /**
506
- * Format: uri
507
- * @description A direct URL to a single model file, for example: https://raw.github.com/your-model-file.tar. Supported model file formats are: .tar, .tar.gz, and .tgz. \n\nFor bulk import of your model use the GitHub connection or CSV files. See [Import Models Documentation](https://docs.meshery.io/guides/configuration-management/importing-models#import-models-using-meshery-ui) for details
508
- */
509
- url: string;
510
- } | {
511
- /**
512
- * Format: binary
513
- * @description Upload a CSV file containing model definitions
514
- */
515
- modelCsv: string;
516
- /**
517
- * Format: binary
518
- * @description Upload a CSV file containing component definitions
519
- */
520
- componentCsv: string;
521
- /**
522
- * Format: binary
523
- * @description Upload a CSV file containing relationship definitions
524
- */
525
- relationshipCsv: string;
526
- } | {
527
- /**
528
- * Format: uri
529
- * @description URI to the source code or package of the model.
530
- */
531
- url: string;
532
- };
533
- /**
534
- * Upload method
535
- * @description Choose the method you prefer to upload your model file. Select 'File Import' or 'CSV Import' if you have the file on your local system or 'URL Import' if you have the file hosted online.
536
- * @enum {string}
537
- */
538
- uploadType: "file" | "urlImport" | "csv" | "url";
539
- /** @description The register of the importrequest. */
540
- register: boolean;
541
- };
542
- };
643
+ models?: { [key: string]: unknown }[];
644
+ };
543
645
  };
544
- responses: {
545
- /** @description Successful registration */
546
- 201: {
547
- headers: {
548
- [name: string]: unknown;
549
- };
550
- content: {
551
- "application/json": {
552
- message?: string;
553
- };
554
- };
555
- };
556
- /** @description Invalid request format */
557
- 400: {
558
- headers: {
559
- [name: string]: unknown;
560
- };
561
- content?: never;
562
- };
563
- /** @description Expired JWT token used or insufficient privilege */
564
- 401: {
565
- headers: {
566
- [name: string]: unknown;
567
- };
568
- content: {
569
- "text/plain": string;
570
- };
571
- };
572
- /** @description Internal server error */
573
- 500: {
574
- headers: {
575
- [name: string]: unknown;
576
- };
577
- content?: never;
578
- };
579
- };
580
- };
581
- getMeshModelModels: {
582
- parameters: {
583
- query?: {
584
- page?: string;
585
- pagesize?: string;
586
- search?: string;
587
- order?: string;
588
- };
589
- header?: never;
590
- path?: never;
591
- cookie?: never;
592
- };
593
- requestBody?: never;
594
- responses: {
595
- /** @description Model and capabilities registry entries retrieved. */
596
- 200: {
597
- headers: {
598
- [name: string]: unknown;
599
- };
600
- content: {
601
- "application/json": {
602
- /** @description Current page number of the result set. */
603
- page?: number;
604
- /** @description Number of items per page. */
605
- page_size?: number;
606
- /** @description Total number of items available. */
607
- total_count?: number;
608
- /** @description The models of the meshmodelmodelspage. */
609
- models?: {
610
- [key: string]: unknown;
611
- }[];
612
- };
613
- };
614
- };
615
- /** @description Expired JWT token used or insufficient privilege */
616
- 401: {
617
- headers: {
618
- [name: string]: unknown;
619
- };
620
- content: {
621
- "text/plain": string;
622
- };
623
- };
624
- /** @description Internal server error */
625
- 500: {
626
- headers: {
627
- [name: string]: unknown;
628
- };
629
- content?: never;
630
- };
646
+ };
647
+ /** Expired JWT token used or insufficient privilege */
648
+ 401: {
649
+ content: {
650
+ "text/plain": string;
631
651
  };
652
+ };
653
+ /** Internal server error */
654
+ 500: unknown;
632
655
  };
656
+ };
633
657
  }
658
+
659
+ export interface external {}