@meshery/schemas 1.3.7 → 1.3.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cloudApi.d.mts +62 -45
- package/dist/cloudApi.d.ts +62 -45
- package/dist/cloudApi.js +1 -1
- package/dist/cloudApi.mjs +1 -1
- package/dist/constructs/v1beta1/feature/Feature.d.ts +207 -83
- package/dist/constructs/v1beta1/feature/FeatureSchema.js +1 -1
- package/dist/constructs/v1beta1/feature/FeatureSchema.mjs +1 -1
- package/dist/index.d.mts +123 -42
- package/dist/index.d.ts +123 -42
- package/package.json +1 -1
|
@@ -11,7 +11,7 @@ export interface paths {
|
|
|
11
11
|
path?: never;
|
|
12
12
|
cookie?: never;
|
|
13
13
|
};
|
|
14
|
-
/** Get all features
|
|
14
|
+
/** Get all features defined across plans */
|
|
15
15
|
get: operations["getFeatures"];
|
|
16
16
|
put?: never;
|
|
17
17
|
post?: never;
|
|
@@ -21,14 +21,14 @@ export interface paths {
|
|
|
21
21
|
patch?: never;
|
|
22
22
|
trace?: never;
|
|
23
23
|
};
|
|
24
|
-
"/api/entitlement/subscriptions/organizations/{
|
|
24
|
+
"/api/entitlement/subscriptions/organizations/{orgId}/features": {
|
|
25
25
|
parameters: {
|
|
26
26
|
query?: never;
|
|
27
27
|
header?: never;
|
|
28
28
|
path?: never;
|
|
29
29
|
cookie?: never;
|
|
30
30
|
};
|
|
31
|
-
/** Get
|
|
31
|
+
/** Get the active features entitled to an organization through its subscriptions */
|
|
32
32
|
get: operations["getFeaturesByOrganization"];
|
|
33
33
|
put?: never;
|
|
34
34
|
post?: never;
|
|
@@ -42,106 +42,187 @@ export interface paths {
|
|
|
42
42
|
export type webhooks = Record<string, never>;
|
|
43
43
|
export interface components {
|
|
44
44
|
schemas: {
|
|
45
|
-
|
|
45
|
+
/** @description A feature is a quantified entitlement granted to an organization through its subscription plan, such as the number of components allowed in a design. */
|
|
46
|
+
Feature: {
|
|
46
47
|
/**
|
|
47
48
|
* Format: uuid
|
|
48
|
-
* @description
|
|
49
|
+
* @description Unique identifier for the feature.
|
|
49
50
|
*/
|
|
50
51
|
id: string;
|
|
51
52
|
/**
|
|
52
53
|
* Format: uuid
|
|
53
|
-
* @description
|
|
54
|
+
* @description Identifier of the plan granting this feature.
|
|
54
55
|
*/
|
|
55
56
|
plan_id: string;
|
|
57
|
+
/** @description The plan granting this feature. Populated only when the association is explicitly loaded. */
|
|
56
58
|
plan?: {
|
|
57
59
|
/**
|
|
58
60
|
* Format: uuid
|
|
59
|
-
* @description
|
|
61
|
+
* @description Unique identifier for the plan.
|
|
60
62
|
*/
|
|
61
63
|
id: string;
|
|
62
64
|
/**
|
|
63
|
-
* @description
|
|
65
|
+
* @description Display name of the plan.
|
|
64
66
|
* @enum {string}
|
|
65
67
|
*/
|
|
66
68
|
name: "Free" | "Team Designer" | "Team Operator" | "Enterprise";
|
|
67
|
-
/**
|
|
68
|
-
|
|
69
|
-
|
|
69
|
+
/**
|
|
70
|
+
* @description Billing cadence for the plan (monthly, annually, or none).
|
|
71
|
+
* @enum {string}
|
|
72
|
+
*/
|
|
73
|
+
cadence: "none" | "monthly" | "annually";
|
|
74
|
+
/**
|
|
75
|
+
* @description Unit of consumption this plan charges against (e.g. user).
|
|
76
|
+
* @enum {string}
|
|
77
|
+
*/
|
|
70
78
|
unit: "user" | "free";
|
|
71
|
-
/** @description Minimum number of units required for the plan */
|
|
72
|
-
|
|
73
|
-
/** @description Price per unit of the plan */
|
|
74
|
-
|
|
75
|
-
/**
|
|
79
|
+
/** @description Minimum number of units required for the plan. */
|
|
80
|
+
minimumUnits: number;
|
|
81
|
+
/** @description Price per unit of the plan. */
|
|
82
|
+
pricePerUnit: number;
|
|
83
|
+
/**
|
|
84
|
+
* @description Currency in which the plan is priced.
|
|
85
|
+
* @enum {string}
|
|
86
|
+
*/
|
|
76
87
|
currency: "usd";
|
|
77
88
|
};
|
|
78
89
|
/**
|
|
79
|
-
* @description
|
|
90
|
+
* @description Name of the entitled feature.
|
|
80
91
|
* @enum {string}
|
|
81
92
|
*/
|
|
82
93
|
name: "ComponentsInDesign" | "RelationshipsInDesign" | "DesignsInWorkspace" | "WorkspacesInOrganization" | "ImageSizeInDesign" | "SizePerDesign";
|
|
83
|
-
/**
|
|
94
|
+
/**
|
|
95
|
+
* Format: double
|
|
96
|
+
* @description Quantity of the feature granted by the plan. The sentinel value 999999999999 denotes unlimited.
|
|
97
|
+
*/
|
|
84
98
|
quantity: number;
|
|
85
|
-
/**
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
99
|
+
/**
|
|
100
|
+
* Format: date-time
|
|
101
|
+
* @description Timestamp when the resource was created.
|
|
102
|
+
*/
|
|
103
|
+
created_at: string;
|
|
104
|
+
/**
|
|
105
|
+
* Format: date-time
|
|
106
|
+
* @description Timestamp when the resource was updated.
|
|
107
|
+
*/
|
|
108
|
+
updated_at: string;
|
|
109
|
+
};
|
|
90
110
|
/**
|
|
91
|
-
* @description Enumeration of
|
|
111
|
+
* @description Enumeration of feature names that can be granted by a plan.
|
|
92
112
|
* @enum {string}
|
|
93
113
|
*/
|
|
94
114
|
FeatureName: "ComponentsInDesign" | "RelationshipsInDesign" | "DesignsInWorkspace" | "WorkspacesInOrganization" | "ImageSizeInDesign" | "SizePerDesign";
|
|
95
|
-
|
|
115
|
+
/** @description List of features. */
|
|
116
|
+
FeaturesPage: {
|
|
96
117
|
/**
|
|
97
118
|
* Format: uuid
|
|
98
|
-
* @description
|
|
119
|
+
* @description Unique identifier for the feature.
|
|
99
120
|
*/
|
|
100
121
|
id: string;
|
|
101
122
|
/**
|
|
102
123
|
* Format: uuid
|
|
103
|
-
* @description
|
|
124
|
+
* @description Identifier of the plan granting this feature.
|
|
104
125
|
*/
|
|
105
126
|
plan_id: string;
|
|
127
|
+
/** @description The plan granting this feature. Populated only when the association is explicitly loaded. */
|
|
106
128
|
plan?: {
|
|
107
129
|
/**
|
|
108
130
|
* Format: uuid
|
|
109
|
-
* @description
|
|
131
|
+
* @description Unique identifier for the plan.
|
|
110
132
|
*/
|
|
111
133
|
id: string;
|
|
112
134
|
/**
|
|
113
|
-
* @description
|
|
135
|
+
* @description Display name of the plan.
|
|
114
136
|
* @enum {string}
|
|
115
137
|
*/
|
|
116
138
|
name: "Free" | "Team Designer" | "Team Operator" | "Enterprise";
|
|
117
|
-
/**
|
|
118
|
-
|
|
119
|
-
|
|
139
|
+
/**
|
|
140
|
+
* @description Billing cadence for the plan (monthly, annually, or none).
|
|
141
|
+
* @enum {string}
|
|
142
|
+
*/
|
|
143
|
+
cadence: "none" | "monthly" | "annually";
|
|
144
|
+
/**
|
|
145
|
+
* @description Unit of consumption this plan charges against (e.g. user).
|
|
146
|
+
* @enum {string}
|
|
147
|
+
*/
|
|
120
148
|
unit: "user" | "free";
|
|
121
|
-
/** @description Minimum number of units required for the plan */
|
|
122
|
-
|
|
123
|
-
/** @description Price per unit of the plan */
|
|
124
|
-
|
|
125
|
-
/**
|
|
149
|
+
/** @description Minimum number of units required for the plan. */
|
|
150
|
+
minimumUnits: number;
|
|
151
|
+
/** @description Price per unit of the plan. */
|
|
152
|
+
pricePerUnit: number;
|
|
153
|
+
/**
|
|
154
|
+
* @description Currency in which the plan is priced.
|
|
155
|
+
* @enum {string}
|
|
156
|
+
*/
|
|
126
157
|
currency: "usd";
|
|
127
158
|
};
|
|
128
159
|
/**
|
|
129
|
-
* @description
|
|
160
|
+
* @description Name of the entitled feature.
|
|
130
161
|
* @enum {string}
|
|
131
162
|
*/
|
|
132
163
|
name: "ComponentsInDesign" | "RelationshipsInDesign" | "DesignsInWorkspace" | "WorkspacesInOrganization" | "ImageSizeInDesign" | "SizePerDesign";
|
|
133
|
-
/**
|
|
164
|
+
/**
|
|
165
|
+
* Format: double
|
|
166
|
+
* @description Quantity of the feature granted by the plan. The sentinel value 999999999999 denotes unlimited.
|
|
167
|
+
*/
|
|
134
168
|
quantity: number;
|
|
135
|
-
/**
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
169
|
+
/**
|
|
170
|
+
* Format: date-time
|
|
171
|
+
* @description Timestamp when the resource was created.
|
|
172
|
+
*/
|
|
173
|
+
created_at: string;
|
|
174
|
+
/**
|
|
175
|
+
* Format: date-time
|
|
176
|
+
* @description Timestamp when the resource was updated.
|
|
177
|
+
*/
|
|
178
|
+
updated_at: string;
|
|
179
|
+
}[];
|
|
180
|
+
};
|
|
181
|
+
responses: {
|
|
182
|
+
/** @description Invalid request body or request param */
|
|
183
|
+
400: {
|
|
184
|
+
headers: {
|
|
185
|
+
[name: string]: unknown;
|
|
186
|
+
};
|
|
187
|
+
content: {
|
|
188
|
+
"text/plain": string;
|
|
189
|
+
};
|
|
190
|
+
};
|
|
191
|
+
/** @description Expired JWT token used or insufficient privilege */
|
|
192
|
+
401: {
|
|
193
|
+
headers: {
|
|
194
|
+
[name: string]: unknown;
|
|
195
|
+
};
|
|
196
|
+
content: {
|
|
197
|
+
"text/plain": string;
|
|
198
|
+
};
|
|
199
|
+
};
|
|
200
|
+
/** @description Result not found */
|
|
201
|
+
404: {
|
|
202
|
+
headers: {
|
|
203
|
+
[name: string]: unknown;
|
|
204
|
+
};
|
|
205
|
+
content: {
|
|
206
|
+
"text/plain": string;
|
|
207
|
+
};
|
|
208
|
+
};
|
|
209
|
+
/** @description Internal server error */
|
|
210
|
+
500: {
|
|
211
|
+
headers: {
|
|
212
|
+
[name: string]: unknown;
|
|
213
|
+
};
|
|
214
|
+
content: {
|
|
215
|
+
"text/plain": string;
|
|
216
|
+
};
|
|
139
217
|
};
|
|
140
218
|
};
|
|
141
|
-
responses: never;
|
|
142
219
|
parameters: {
|
|
143
220
|
/** @description The ID of the organization */
|
|
144
|
-
|
|
221
|
+
orgId: string;
|
|
222
|
+
/** @description Get responses by page */
|
|
223
|
+
page: string;
|
|
224
|
+
/** @description Get responses by pagesize */
|
|
225
|
+
pagesize: string;
|
|
145
226
|
};
|
|
146
227
|
requestBodies: never;
|
|
147
228
|
headers: never;
|
|
@@ -151,7 +232,12 @@ export type $defs = Record<string, never>;
|
|
|
151
232
|
export interface operations {
|
|
152
233
|
getFeatures: {
|
|
153
234
|
parameters: {
|
|
154
|
-
query?:
|
|
235
|
+
query?: {
|
|
236
|
+
/** @description Get responses by page */
|
|
237
|
+
page?: string;
|
|
238
|
+
/** @description Get responses by pagesize */
|
|
239
|
+
pagesize?: string;
|
|
240
|
+
};
|
|
155
241
|
header?: never;
|
|
156
242
|
path?: never;
|
|
157
243
|
cookie?: never;
|
|
@@ -167,47 +253,66 @@ export interface operations {
|
|
|
167
253
|
"application/json": {
|
|
168
254
|
/**
|
|
169
255
|
* Format: uuid
|
|
170
|
-
* @description
|
|
256
|
+
* @description Unique identifier for the feature.
|
|
171
257
|
*/
|
|
172
258
|
id: string;
|
|
173
259
|
/**
|
|
174
260
|
* Format: uuid
|
|
175
|
-
* @description
|
|
261
|
+
* @description Identifier of the plan granting this feature.
|
|
176
262
|
*/
|
|
177
263
|
plan_id: string;
|
|
264
|
+
/** @description The plan granting this feature. Populated only when the association is explicitly loaded. */
|
|
178
265
|
plan?: {
|
|
179
266
|
/**
|
|
180
267
|
* Format: uuid
|
|
181
|
-
* @description
|
|
268
|
+
* @description Unique identifier for the plan.
|
|
182
269
|
*/
|
|
183
270
|
id: string;
|
|
184
271
|
/**
|
|
185
|
-
* @description
|
|
272
|
+
* @description Display name of the plan.
|
|
186
273
|
* @enum {string}
|
|
187
274
|
*/
|
|
188
275
|
name: "Free" | "Team Designer" | "Team Operator" | "Enterprise";
|
|
189
|
-
/**
|
|
190
|
-
|
|
191
|
-
|
|
276
|
+
/**
|
|
277
|
+
* @description Billing cadence for the plan (monthly, annually, or none).
|
|
278
|
+
* @enum {string}
|
|
279
|
+
*/
|
|
280
|
+
cadence: "none" | "monthly" | "annually";
|
|
281
|
+
/**
|
|
282
|
+
* @description Unit of consumption this plan charges against (e.g. user).
|
|
283
|
+
* @enum {string}
|
|
284
|
+
*/
|
|
192
285
|
unit: "user" | "free";
|
|
193
|
-
/** @description Minimum number of units required for the plan */
|
|
194
|
-
|
|
195
|
-
/** @description Price per unit of the plan */
|
|
196
|
-
|
|
197
|
-
/**
|
|
286
|
+
/** @description Minimum number of units required for the plan. */
|
|
287
|
+
minimumUnits: number;
|
|
288
|
+
/** @description Price per unit of the plan. */
|
|
289
|
+
pricePerUnit: number;
|
|
290
|
+
/**
|
|
291
|
+
* @description Currency in which the plan is priced.
|
|
292
|
+
* @enum {string}
|
|
293
|
+
*/
|
|
198
294
|
currency: "usd";
|
|
199
295
|
};
|
|
200
296
|
/**
|
|
201
|
-
* @description
|
|
297
|
+
* @description Name of the entitled feature.
|
|
202
298
|
* @enum {string}
|
|
203
299
|
*/
|
|
204
300
|
name: "ComponentsInDesign" | "RelationshipsInDesign" | "DesignsInWorkspace" | "WorkspacesInOrganization" | "ImageSizeInDesign" | "SizePerDesign";
|
|
205
|
-
/**
|
|
301
|
+
/**
|
|
302
|
+
* Format: double
|
|
303
|
+
* @description Quantity of the feature granted by the plan. The sentinel value 999999999999 denotes unlimited.
|
|
304
|
+
*/
|
|
206
305
|
quantity: number;
|
|
207
|
-
/**
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
306
|
+
/**
|
|
307
|
+
* Format: date-time
|
|
308
|
+
* @description Timestamp when the resource was created.
|
|
309
|
+
*/
|
|
310
|
+
created_at: string;
|
|
311
|
+
/**
|
|
312
|
+
* Format: date-time
|
|
313
|
+
* @description Timestamp when the resource was updated.
|
|
314
|
+
*/
|
|
315
|
+
updated_at: string;
|
|
211
316
|
}[];
|
|
212
317
|
};
|
|
213
318
|
};
|
|
@@ -246,7 +351,7 @@ export interface operations {
|
|
|
246
351
|
header?: never;
|
|
247
352
|
path: {
|
|
248
353
|
/** @description The ID of the organization */
|
|
249
|
-
|
|
354
|
+
orgId: string;
|
|
250
355
|
};
|
|
251
356
|
cookie?: never;
|
|
252
357
|
};
|
|
@@ -261,47 +366,66 @@ export interface operations {
|
|
|
261
366
|
"application/json": {
|
|
262
367
|
/**
|
|
263
368
|
* Format: uuid
|
|
264
|
-
* @description
|
|
369
|
+
* @description Unique identifier for the feature.
|
|
265
370
|
*/
|
|
266
371
|
id: string;
|
|
267
372
|
/**
|
|
268
373
|
* Format: uuid
|
|
269
|
-
* @description
|
|
374
|
+
* @description Identifier of the plan granting this feature.
|
|
270
375
|
*/
|
|
271
376
|
plan_id: string;
|
|
377
|
+
/** @description The plan granting this feature. Populated only when the association is explicitly loaded. */
|
|
272
378
|
plan?: {
|
|
273
379
|
/**
|
|
274
380
|
* Format: uuid
|
|
275
|
-
* @description
|
|
381
|
+
* @description Unique identifier for the plan.
|
|
276
382
|
*/
|
|
277
383
|
id: string;
|
|
278
384
|
/**
|
|
279
|
-
* @description
|
|
385
|
+
* @description Display name of the plan.
|
|
280
386
|
* @enum {string}
|
|
281
387
|
*/
|
|
282
388
|
name: "Free" | "Team Designer" | "Team Operator" | "Enterprise";
|
|
283
|
-
/**
|
|
284
|
-
|
|
285
|
-
|
|
389
|
+
/**
|
|
390
|
+
* @description Billing cadence for the plan (monthly, annually, or none).
|
|
391
|
+
* @enum {string}
|
|
392
|
+
*/
|
|
393
|
+
cadence: "none" | "monthly" | "annually";
|
|
394
|
+
/**
|
|
395
|
+
* @description Unit of consumption this plan charges against (e.g. user).
|
|
396
|
+
* @enum {string}
|
|
397
|
+
*/
|
|
286
398
|
unit: "user" | "free";
|
|
287
|
-
/** @description Minimum number of units required for the plan */
|
|
288
|
-
|
|
289
|
-
/** @description Price per unit of the plan */
|
|
290
|
-
|
|
291
|
-
/**
|
|
399
|
+
/** @description Minimum number of units required for the plan. */
|
|
400
|
+
minimumUnits: number;
|
|
401
|
+
/** @description Price per unit of the plan. */
|
|
402
|
+
pricePerUnit: number;
|
|
403
|
+
/**
|
|
404
|
+
* @description Currency in which the plan is priced.
|
|
405
|
+
* @enum {string}
|
|
406
|
+
*/
|
|
292
407
|
currency: "usd";
|
|
293
408
|
};
|
|
294
409
|
/**
|
|
295
|
-
* @description
|
|
410
|
+
* @description Name of the entitled feature.
|
|
296
411
|
* @enum {string}
|
|
297
412
|
*/
|
|
298
413
|
name: "ComponentsInDesign" | "RelationshipsInDesign" | "DesignsInWorkspace" | "WorkspacesInOrganization" | "ImageSizeInDesign" | "SizePerDesign";
|
|
299
|
-
/**
|
|
414
|
+
/**
|
|
415
|
+
* Format: double
|
|
416
|
+
* @description Quantity of the feature granted by the plan. The sentinel value 999999999999 denotes unlimited.
|
|
417
|
+
*/
|
|
300
418
|
quantity: number;
|
|
301
|
-
/**
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
419
|
+
/**
|
|
420
|
+
* Format: date-time
|
|
421
|
+
* @description Timestamp when the resource was created.
|
|
422
|
+
*/
|
|
423
|
+
created_at: string;
|
|
424
|
+
/**
|
|
425
|
+
* Format: date-time
|
|
426
|
+
* @description Timestamp when the resource was updated.
|
|
427
|
+
*/
|
|
428
|
+
updated_at: string;
|
|
305
429
|
}[];
|
|
306
430
|
};
|
|
307
431
|
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
'use strict';var e={openapi:"3.0.0",info:{title:"Feature",description:"OpenAPI schema for the Features construct with entitlement-related properties.",version:"v1beta1",contact:{name:"Meshery Maintainers",email:"maintainers@meshery.io",url:"https://meshery.io"},license:{name:"Apache 2.0",url:"https://www.apache.org/licenses/LICENSE-2.0.html"}},security:[{jwt:[]}],tags:[{name:"Features",description:"Operations related to features and entitlements"}],paths:{"/api/entitlement/features":{get:{"x-internal":["cloud"],operationId:"getFeatures",tags:["Features"],summary:"Get all features associated with plans",responses:{200:{description:"Features response",content:{"application/json":{schema:{type:"array",items:{"x-go-type":"Feature",type:"object",required:["id","plan_id","quantity","name"],properties:{id:{"x-oapi-codegen-extra-tags":{db:"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"}},plan_id:{"x-oapi-codegen-extra-tags":{db:"plan_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"}},plan:{"x-go-type":"planv1beta1.Plan","x-go-type-import":{path:"github.com/meshery/schemas/models/v1beta1/plan",name:"planv1beta1"},"x-oapi-codegen-extra-tags":{belongs_to:"plans",fk_id:"PlanId",json:"plan,omitempty"},type:"object",properties:{id:{"x-oapi-codegen-extra-tags":{db:"id",json:"id",csv:"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"}},name:{type:"string","x-go-type":"PlanName","x-oapi-codegen-extra-tags":{db:"name",json:"name",csv:"name"},description:"Name of the plan",enum:["Free","Team Designer","Team Operator","Enterprise"]},cadence:{"x-go-type":"PlanCadence","x-oapi-codegen-extra-tags":{db:"cadence",json:"cadence",csv:"cadence"},type:"string",enum:["monthly","yearly"]},unit:{"x-go-type":"PlanUnit","x-oapi-codegen-extra-tags":{db:"unit",json:"unit",csv:"unit"},type:"string",enum:["user","free"]},minimum_units:{type:"integer",description:"Minimum number of units required for the plan","x-oapi-codegen-extra-tags":{db:"minimum_units",json:"minimum_units",csv:"minimum_units"}},price_per_unit:{type:"number",description:"Price per unit of the plan","x-oapi-codegen-extra-tags":{db:"price_per_unit",json:"price_per_unit",csv:"price_per_unit"}},currency:{"x-go-type":"Currency","x-oapi-codegen-extra-tags":{db:"currency",json:"currency",csv:"currency"},type:"string",enum:["usd"]}},required:["id","name","cadence","unit","price_per_unit","minimum_units","currency"]},name:{"x-go-type":"FeatureName","x-oapi-codegen-extra-tags":{db:"name"},type:"string","x-enum-casing-exempt":true,enum:["ComponentsInDesign","RelationshipsInDesign","DesignsInWorkspace","WorkspacesInOrganization","ImageSizeInDesign","SizePerDesign"],description:"Enumeration of possible feature types"},quantity:{type:"number",description:"Quantity of the feature allowed, use 9999999999 for unlimited","x-oapi-codegen-extra-tags":{db:"quantity"},minimum:0},created_at:{"x-oapi-codegen-extra-tags":{db:"created_at"},type:"string",format:"date-time","x-go-type-skip-optional-pointer":true},updated_at:{"x-oapi-codegen-extra-tags":{db:"updated_at"},type:"string",format:"date-time","x-go-type-skip-optional-pointer":true}},additionalProperties:false}}}}},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/entitlement/subscriptions/organizations/{organizationId}/features":{get:{"x-internal":["cloud"],operationId:"getFeaturesByOrganization",tags:["Features"],summary:"Get all features associated with plans",parameters:[{name:"organizationId",in:"path",description:"The ID of the organization",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:"Features response",content:{"application/json":{schema:{type:"array",items:{"x-go-type":"Feature",type:"object",required:["id","plan_id","quantity","name"],properties:{id:{"x-oapi-codegen-extra-tags":{db:"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"}},plan_id:{"x-oapi-codegen-extra-tags":{db:"plan_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"}},plan:{"x-go-type":"planv1beta1.Plan","x-go-type-import":{path:"github.com/meshery/schemas/models/v1beta1/plan",name:"planv1beta1"},"x-oapi-codegen-extra-tags":{belongs_to:"plans",fk_id:"PlanId",json:"plan,omitempty"},type:"object",properties:{id:{"x-oapi-codegen-extra-tags":{db:"id",json:"id",csv:"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"}},name:{type:"string","x-go-type":"PlanName","x-oapi-codegen-extra-tags":{db:"name",json:"name",csv:"name"},description:"Name of the plan",enum:["Free","Team Designer","Team Operator","Enterprise"]},cadence:{"x-go-type":"PlanCadence","x-oapi-codegen-extra-tags":{db:"cadence",json:"cadence",csv:"cadence"},type:"string",enum:["monthly","yearly"]},unit:{"x-go-type":"PlanUnit","x-oapi-codegen-extra-tags":{db:"unit",json:"unit",csv:"unit"},type:"string",enum:["user","free"]},minimum_units:{type:"integer",description:"Minimum number of units required for the plan","x-oapi-codegen-extra-tags":{db:"minimum_units",json:"minimum_units",csv:"minimum_units"}},price_per_unit:{type:"number",description:"Price per unit of the plan","x-oapi-codegen-extra-tags":{db:"price_per_unit",json:"price_per_unit",csv:"price_per_unit"}},currency:{"x-go-type":"Currency","x-oapi-codegen-extra-tags":{db:"currency",json:"currency",csv:"currency"},type:"string",enum:["usd"]}},required:["id","name","cadence","unit","price_per_unit","minimum_units","currency"]},name:{"x-go-type":"FeatureName","x-oapi-codegen-extra-tags":{db:"name"},type:"string","x-enum-casing-exempt":true,enum:["ComponentsInDesign","RelationshipsInDesign","DesignsInWorkspace","WorkspacesInOrganization","ImageSizeInDesign","SizePerDesign"],description:"Enumeration of possible feature types"},quantity:{type:"number",description:"Quantity of the feature allowed, use 9999999999 for unlimited","x-oapi-codegen-extra-tags":{db:"quantity"},minimum:0},created_at:{"x-oapi-codegen-extra-tags":{db:"created_at"},type:"string",format:"date-time","x-go-type-skip-optional-pointer":true},updated_at:{"x-oapi-codegen-extra-tags":{db:"updated_at"},type:"string",format:"date-time","x-go-type-skip-optional-pointer":true}},additionalProperties:false}}}}},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:{securitySchemes:{jwt:{type:"http",scheme:"bearer",bearerFormat:"JWT"}},parameters:{organization_id:{name:"organizationId",in:"path",description:"The ID of the organization",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"}}}},schemas:{FeaturesPage:{type:"array",items:{"x-go-type":"Feature",type:"object",required:["id","plan_id","quantity","name"],properties:{id:{"x-oapi-codegen-extra-tags":{db:"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"}},plan_id:{"x-oapi-codegen-extra-tags":{db:"plan_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"}},plan:{"x-go-type":"planv1beta1.Plan","x-go-type-import":{path:"github.com/meshery/schemas/models/v1beta1/plan",name:"planv1beta1"},"x-oapi-codegen-extra-tags":{belongs_to:"plans",fk_id:"PlanId",json:"plan,omitempty"},type:"object",properties:{id:{"x-oapi-codegen-extra-tags":{db:"id",json:"id",csv:"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"}},name:{type:"string","x-go-type":"PlanName","x-oapi-codegen-extra-tags":{db:"name",json:"name",csv:"name"},description:"Name of the plan",enum:["Free","Team Designer","Team Operator","Enterprise"]},cadence:{"x-go-type":"PlanCadence","x-oapi-codegen-extra-tags":{db:"cadence",json:"cadence",csv:"cadence"},type:"string",enum:["monthly","yearly"]},unit:{"x-go-type":"PlanUnit","x-oapi-codegen-extra-tags":{db:"unit",json:"unit",csv:"unit"},type:"string",enum:["user","free"]},minimum_units:{type:"integer",description:"Minimum number of units required for the plan","x-oapi-codegen-extra-tags":{db:"minimum_units",json:"minimum_units",csv:"minimum_units"}},price_per_unit:{type:"number",description:"Price per unit of the plan","x-oapi-codegen-extra-tags":{db:"price_per_unit",json:"price_per_unit",csv:"price_per_unit"}},currency:{"x-go-type":"Currency","x-oapi-codegen-extra-tags":{db:"currency",json:"currency",csv:"currency"},type:"string",enum:["usd"]}},required:["id","name","cadence","unit","price_per_unit","minimum_units","currency"]},name:{"x-go-type":"FeatureName","x-oapi-codegen-extra-tags":{db:"name"},type:"string","x-enum-casing-exempt":true,enum:["ComponentsInDesign","RelationshipsInDesign","DesignsInWorkspace","WorkspacesInOrganization","ImageSizeInDesign","SizePerDesign"],description:"Enumeration of possible feature types"},quantity:{type:"number",description:"Quantity of the feature allowed, use 9999999999 for unlimited","x-oapi-codegen-extra-tags":{db:"quantity"},minimum:0},created_at:{"x-oapi-codegen-extra-tags":{db:"created_at"},type:"string",format:"date-time","x-go-type-skip-optional-pointer":true},updated_at:{"x-oapi-codegen-extra-tags":{db:"updated_at"},type:"string",format:"date-time","x-go-type-skip-optional-pointer":true}},additionalProperties:false}},FeatureName:{type:"string","x-enum-casing-exempt":true,enum:["ComponentsInDesign","RelationshipsInDesign","DesignsInWorkspace","WorkspacesInOrganization","ImageSizeInDesign","SizePerDesign"],description:"Enumeration of possible feature types"},Feature:{type:"object",required:["id","plan_id","quantity","name"],properties:{id:{"x-oapi-codegen-extra-tags":{db:"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"}},plan_id:{"x-oapi-codegen-extra-tags":{db:"plan_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"}},plan:{"x-go-type":"planv1beta1.Plan","x-go-type-import":{path:"github.com/meshery/schemas/models/v1beta1/plan",name:"planv1beta1"},"x-oapi-codegen-extra-tags":{belongs_to:"plans",fk_id:"PlanId",json:"plan,omitempty"},type:"object",properties:{id:{"x-oapi-codegen-extra-tags":{db:"id",json:"id",csv:"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"}},name:{type:"string","x-go-type":"PlanName","x-oapi-codegen-extra-tags":{db:"name",json:"name",csv:"name"},description:"Name of the plan",enum:["Free","Team Designer","Team Operator","Enterprise"]},cadence:{"x-go-type":"PlanCadence","x-oapi-codegen-extra-tags":{db:"cadence",json:"cadence",csv:"cadence"},type:"string",enum:["monthly","yearly"]},unit:{"x-go-type":"PlanUnit","x-oapi-codegen-extra-tags":{db:"unit",json:"unit",csv:"unit"},type:"string",enum:["user","free"]},minimum_units:{type:"integer",description:"Minimum number of units required for the plan","x-oapi-codegen-extra-tags":{db:"minimum_units",json:"minimum_units",csv:"minimum_units"}},price_per_unit:{type:"number",description:"Price per unit of the plan","x-oapi-codegen-extra-tags":{db:"price_per_unit",json:"price_per_unit",csv:"price_per_unit"}},currency:{"x-go-type":"Currency","x-oapi-codegen-extra-tags":{db:"currency",json:"currency",csv:"currency"},type:"string",enum:["usd"]}},required:["id","name","cadence","unit","price_per_unit","minimum_units","currency"]},name:{"x-go-type":"FeatureName","x-oapi-codegen-extra-tags":{db:"name"},type:"string","x-enum-casing-exempt":true,enum:["ComponentsInDesign","RelationshipsInDesign","DesignsInWorkspace","WorkspacesInOrganization","ImageSizeInDesign","SizePerDesign"],description:"Enumeration of possible feature types"},quantity:{type:"number",description:"Quantity of the feature allowed, use 9999999999 for unlimited","x-oapi-codegen-extra-tags":{db:"quantity"},minimum:0},created_at:{"x-oapi-codegen-extra-tags":{db:"created_at"},type:"string",format:"date-time","x-go-type-skip-optional-pointer":true},updated_at:{"x-oapi-codegen-extra-tags":{db:"updated_at"},type:"string",format:"date-time","x-go-type-skip-optional-pointer":true}},additionalProperties:false}}}},t=e;
|
|
1
|
+
'use strict';var e={openapi:"3.0.0",info:{title:"Feature",description:"OpenAPI schema for the Features construct - the quantified entitlements granted by Meshery Cloud subscription plans.",version:"v1beta1",contact:{name:"Meshery Maintainers",email:"maintainers@meshery.io",url:"https://meshery.io"},license:{name:"Apache 2.0",url:"https://www.apache.org/licenses/LICENSE-2.0.html"}},security:[{jwt:[]}],tags:[{name:"Features",description:"Operations related to features and entitlements"}],paths:{"/api/entitlement/features":{get:{"x-internal":["cloud"],tags:["Features"],summary:"Get all features defined across plans",operationId:"getFeatures",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"}}],responses:{200:{description:"Features response",content:{"application/json":{schema:{type:"array",description:"List of features.",items:{"x-go-type":"Feature",type:"object",additionalProperties:false,description:"A feature is a quantified entitlement granted to an organization through its subscription plan, such as the number of components allowed in a design.",required:["id","plan_id","name","quantity","created_at","updated_at"],properties:{id:{description:"Unique identifier for the feature.","x-go-name":"ID","x-oapi-codegen-extra-tags":{db:"id",csv:"id"},"x-order":1,type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"}},plan_id:{description:"Identifier of the plan granting this feature.","x-go-name":"PlanId","x-oapi-codegen-extra-tags":{db:"plan_id",csv:"plan_id"},"x-order":2,type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"}},plan:{description:"The plan granting this feature. Populated only when the association is explicitly loaded.","x-go-type":"planv1beta3.Plan","x-go-type-import":{path:"github.com/meshery/schemas/models/v1beta3/plan",name:"planv1beta3"},"x-oapi-codegen-extra-tags":{belongs_to:"plans",fk_id:"PlanId",json:"plan,omitempty"},"x-order":3,type:"object",additionalProperties:false,required:["id","name","cadence","unit","pricePerUnit","minimumUnits","currency"],properties:{id:{description:"Unique identifier for the plan.","x-oapi-codegen-extra-tags":{db:"id",json:"id",csv:"id"},type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"}},name:{description:"Display name of the plan.","x-go-type":"PlanName","x-oapi-codegen-extra-tags":{db:"name",json:"name",csv:"name"},type:"string","x-enum-casing-exempt":true,enum:["Free","Team Designer","Team Operator","Enterprise"]},cadence:{description:"Billing cadence for the plan (monthly, annually, or none).","x-go-type":"PlanCadence","x-oapi-codegen-extra-tags":{db:"cadence",json:"cadence",csv:"cadence"},type:"string",enum:["none","monthly","annually"]},unit:{description:"Unit of consumption this plan charges against (e.g. user).","x-go-type":"PlanUnit","x-oapi-codegen-extra-tags":{db:"unit",json:"unit",csv:"unit"},type:"string",enum:["user","free"]},minimumUnits:{type:"integer",description:"Minimum number of units required for the plan.","x-oapi-codegen-extra-tags":{db:"minimum_units",json:"minimumUnits",csv:"minimum_units"},minimum:0},pricePerUnit:{type:"number",description:"Price per unit of the plan.","x-oapi-codegen-extra-tags":{db:"price_per_unit",json:"pricePerUnit",csv:"price_per_unit"},minimum:0},currency:{description:"Currency in which the plan is priced.","x-go-type":"Currency","x-oapi-codegen-extra-tags":{db:"currency",json:"currency",csv:"currency"},type:"string",enum:["usd"]}}},name:{description:"Name of the entitled feature.","x-go-type":"FeatureName","x-oapi-codegen-extra-tags":{db:"name",csv:"name"},"x-order":4,type:"string","x-enum-casing-exempt":true,enum:["ComponentsInDesign","RelationshipsInDesign","DesignsInWorkspace","WorkspacesInOrganization","ImageSizeInDesign","SizePerDesign"]},quantity:{type:"number",format:"double",description:"Quantity of the feature granted by the plan. The sentinel value 999999999999 denotes unlimited.",minimum:0,"x-oapi-codegen-extra-tags":{db:"quantity",csv:"quantity"},"x-order":5},created_at:{"x-order":6,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":7,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}}}}}}},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/entitlement/subscriptions/organizations/{orgId}/features":{get:{"x-internal":["cloud"],tags:["Features"],summary:"Get the active features entitled to an organization through its subscriptions",operationId:"getFeaturesByOrganization",parameters:[{name:"orgId",in:"path",description:"The ID of the organization",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:"Features response",content:{"application/json":{schema:{type:"array",description:"List of features.",items:{"x-go-type":"Feature",type:"object",additionalProperties:false,description:"A feature is a quantified entitlement granted to an organization through its subscription plan, such as the number of components allowed in a design.",required:["id","plan_id","name","quantity","created_at","updated_at"],properties:{id:{description:"Unique identifier for the feature.","x-go-name":"ID","x-oapi-codegen-extra-tags":{db:"id",csv:"id"},"x-order":1,type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"}},plan_id:{description:"Identifier of the plan granting this feature.","x-go-name":"PlanId","x-oapi-codegen-extra-tags":{db:"plan_id",csv:"plan_id"},"x-order":2,type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"}},plan:{description:"The plan granting this feature. Populated only when the association is explicitly loaded.","x-go-type":"planv1beta3.Plan","x-go-type-import":{path:"github.com/meshery/schemas/models/v1beta3/plan",name:"planv1beta3"},"x-oapi-codegen-extra-tags":{belongs_to:"plans",fk_id:"PlanId",json:"plan,omitempty"},"x-order":3,type:"object",additionalProperties:false,required:["id","name","cadence","unit","pricePerUnit","minimumUnits","currency"],properties:{id:{description:"Unique identifier for the plan.","x-oapi-codegen-extra-tags":{db:"id",json:"id",csv:"id"},type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"}},name:{description:"Display name of the plan.","x-go-type":"PlanName","x-oapi-codegen-extra-tags":{db:"name",json:"name",csv:"name"},type:"string","x-enum-casing-exempt":true,enum:["Free","Team Designer","Team Operator","Enterprise"]},cadence:{description:"Billing cadence for the plan (monthly, annually, or none).","x-go-type":"PlanCadence","x-oapi-codegen-extra-tags":{db:"cadence",json:"cadence",csv:"cadence"},type:"string",enum:["none","monthly","annually"]},unit:{description:"Unit of consumption this plan charges against (e.g. user).","x-go-type":"PlanUnit","x-oapi-codegen-extra-tags":{db:"unit",json:"unit",csv:"unit"},type:"string",enum:["user","free"]},minimumUnits:{type:"integer",description:"Minimum number of units required for the plan.","x-oapi-codegen-extra-tags":{db:"minimum_units",json:"minimumUnits",csv:"minimum_units"},minimum:0},pricePerUnit:{type:"number",description:"Price per unit of the plan.","x-oapi-codegen-extra-tags":{db:"price_per_unit",json:"pricePerUnit",csv:"price_per_unit"},minimum:0},currency:{description:"Currency in which the plan is priced.","x-go-type":"Currency","x-oapi-codegen-extra-tags":{db:"currency",json:"currency",csv:"currency"},type:"string",enum:["usd"]}}},name:{description:"Name of the entitled feature.","x-go-type":"FeatureName","x-oapi-codegen-extra-tags":{db:"name",csv:"name"},"x-order":4,type:"string","x-enum-casing-exempt":true,enum:["ComponentsInDesign","RelationshipsInDesign","DesignsInWorkspace","WorkspacesInOrganization","ImageSizeInDesign","SizePerDesign"]},quantity:{type:"number",format:"double",description:"Quantity of the feature granted by the plan. The sentinel value 999999999999 denotes unlimited.",minimum:0,"x-oapi-codegen-extra-tags":{db:"quantity",csv:"quantity"},"x-order":5},created_at:{"x-order":6,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":7,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}}}}}}},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:"The ID of the organization",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"}}},securitySchemes:{jwt:{type:"http",scheme:"bearer",bearerFormat:"JWT"}},schemas:{Feature:{type:"object",additionalProperties:false,description:"A feature is a quantified entitlement granted to an organization through its subscription plan, such as the number of components allowed in a design.",required:["id","plan_id","name","quantity","created_at","updated_at"],properties:{id:{description:"Unique identifier for the feature.","x-go-name":"ID","x-oapi-codegen-extra-tags":{db:"id",csv:"id"},"x-order":1,type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"}},plan_id:{description:"Identifier of the plan granting this feature.","x-go-name":"PlanId","x-oapi-codegen-extra-tags":{db:"plan_id",csv:"plan_id"},"x-order":2,type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"}},plan:{description:"The plan granting this feature. Populated only when the association is explicitly loaded.","x-go-type":"planv1beta3.Plan","x-go-type-import":{path:"github.com/meshery/schemas/models/v1beta3/plan",name:"planv1beta3"},"x-oapi-codegen-extra-tags":{belongs_to:"plans",fk_id:"PlanId",json:"plan,omitempty"},"x-order":3,type:"object",additionalProperties:false,required:["id","name","cadence","unit","pricePerUnit","minimumUnits","currency"],properties:{id:{description:"Unique identifier for the plan.","x-oapi-codegen-extra-tags":{db:"id",json:"id",csv:"id"},type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"}},name:{description:"Display name of the plan.","x-go-type":"PlanName","x-oapi-codegen-extra-tags":{db:"name",json:"name",csv:"name"},type:"string","x-enum-casing-exempt":true,enum:["Free","Team Designer","Team Operator","Enterprise"]},cadence:{description:"Billing cadence for the plan (monthly, annually, or none).","x-go-type":"PlanCadence","x-oapi-codegen-extra-tags":{db:"cadence",json:"cadence",csv:"cadence"},type:"string",enum:["none","monthly","annually"]},unit:{description:"Unit of consumption this plan charges against (e.g. user).","x-go-type":"PlanUnit","x-oapi-codegen-extra-tags":{db:"unit",json:"unit",csv:"unit"},type:"string",enum:["user","free"]},minimumUnits:{type:"integer",description:"Minimum number of units required for the plan.","x-oapi-codegen-extra-tags":{db:"minimum_units",json:"minimumUnits",csv:"minimum_units"},minimum:0},pricePerUnit:{type:"number",description:"Price per unit of the plan.","x-oapi-codegen-extra-tags":{db:"price_per_unit",json:"pricePerUnit",csv:"price_per_unit"},minimum:0},currency:{description:"Currency in which the plan is priced.","x-go-type":"Currency","x-oapi-codegen-extra-tags":{db:"currency",json:"currency",csv:"currency"},type:"string",enum:["usd"]}}},name:{description:"Name of the entitled feature.","x-go-type":"FeatureName","x-oapi-codegen-extra-tags":{db:"name",csv:"name"},"x-order":4,type:"string","x-enum-casing-exempt":true,enum:["ComponentsInDesign","RelationshipsInDesign","DesignsInWorkspace","WorkspacesInOrganization","ImageSizeInDesign","SizePerDesign"]},quantity:{type:"number",format:"double",description:"Quantity of the feature granted by the plan. The sentinel value 999999999999 denotes unlimited.",minimum:0,"x-oapi-codegen-extra-tags":{db:"quantity",csv:"quantity"},"x-order":5},created_at:{"x-order":6,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":7,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}}},FeatureName:{type:"string","x-enum-casing-exempt":true,enum:["ComponentsInDesign","RelationshipsInDesign","DesignsInWorkspace","WorkspacesInOrganization","ImageSizeInDesign","SizePerDesign"],description:"Enumeration of feature names that can be granted by a plan."},FeaturesPage:{type:"array",description:"List of features.",items:{"x-go-type":"Feature",type:"object",additionalProperties:false,description:"A feature is a quantified entitlement granted to an organization through its subscription plan, such as the number of components allowed in a design.",required:["id","plan_id","name","quantity","created_at","updated_at"],properties:{id:{description:"Unique identifier for the feature.","x-go-name":"ID","x-oapi-codegen-extra-tags":{db:"id",csv:"id"},"x-order":1,type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"}},plan_id:{description:"Identifier of the plan granting this feature.","x-go-name":"PlanId","x-oapi-codegen-extra-tags":{db:"plan_id",csv:"plan_id"},"x-order":2,type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"}},plan:{description:"The plan granting this feature. Populated only when the association is explicitly loaded.","x-go-type":"planv1beta3.Plan","x-go-type-import":{path:"github.com/meshery/schemas/models/v1beta3/plan",name:"planv1beta3"},"x-oapi-codegen-extra-tags":{belongs_to:"plans",fk_id:"PlanId",json:"plan,omitempty"},"x-order":3,type:"object",additionalProperties:false,required:["id","name","cadence","unit","pricePerUnit","minimumUnits","currency"],properties:{id:{description:"Unique identifier for the plan.","x-oapi-codegen-extra-tags":{db:"id",json:"id",csv:"id"},type:"string",format:"uuid","x-go-type":"uuid.UUID","x-go-type-import":{path:"github.com/gofrs/uuid"}},name:{description:"Display name of the plan.","x-go-type":"PlanName","x-oapi-codegen-extra-tags":{db:"name",json:"name",csv:"name"},type:"string","x-enum-casing-exempt":true,enum:["Free","Team Designer","Team Operator","Enterprise"]},cadence:{description:"Billing cadence for the plan (monthly, annually, or none).","x-go-type":"PlanCadence","x-oapi-codegen-extra-tags":{db:"cadence",json:"cadence",csv:"cadence"},type:"string",enum:["none","monthly","annually"]},unit:{description:"Unit of consumption this plan charges against (e.g. user).","x-go-type":"PlanUnit","x-oapi-codegen-extra-tags":{db:"unit",json:"unit",csv:"unit"},type:"string",enum:["user","free"]},minimumUnits:{type:"integer",description:"Minimum number of units required for the plan.","x-oapi-codegen-extra-tags":{db:"minimum_units",json:"minimumUnits",csv:"minimum_units"},minimum:0},pricePerUnit:{type:"number",description:"Price per unit of the plan.","x-oapi-codegen-extra-tags":{db:"price_per_unit",json:"pricePerUnit",csv:"price_per_unit"},minimum:0},currency:{description:"Currency in which the plan is priced.","x-go-type":"Currency","x-oapi-codegen-extra-tags":{db:"currency",json:"currency",csv:"currency"},type:"string",enum:["usd"]}}},name:{description:"Name of the entitled feature.","x-go-type":"FeatureName","x-oapi-codegen-extra-tags":{db:"name",csv:"name"},"x-order":4,type:"string","x-enum-casing-exempt":true,enum:["ComponentsInDesign","RelationshipsInDesign","DesignsInWorkspace","WorkspacesInOrganization","ImageSizeInDesign","SizePerDesign"]},quantity:{type:"number",format:"double",description:"Quantity of the feature granted by the plan. The sentinel value 999999999999 denotes unlimited.",minimum:0,"x-oapi-codegen-extra-tags":{db:"quantity",csv:"quantity"},"x-order":5},created_at:{"x-order":6,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":7,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}}}}}}},t=e;
|
|
2
2
|
module.exports=t;
|