@cloudfleet/sdk 0.0.1-0010e2d → 0.0.1-028b8fa
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/@tanstack/react-query.gen.d.ts +1139 -0
- package/dist/@tanstack/react-query.gen.d.ts.map +1 -0
- package/dist/@tanstack/react-query.gen.js +1167 -0
- package/dist/@tanstack/react-query.gen.js.map +1 -0
- package/dist/client/client.gen.d.ts +3 -0
- package/dist/client/client.gen.d.ts.map +1 -0
- package/dist/client/client.gen.js +220 -0
- package/dist/client/client.gen.js.map +1 -0
- package/dist/client/index.d.ts +8 -7
- package/dist/client/index.d.ts.map +1 -1
- package/dist/client/index.js +6 -4
- package/dist/client/index.js.map +1 -1
- package/dist/client/{types.d.ts → types.gen.d.ts} +23 -22
- package/dist/client/types.gen.d.ts.map +1 -0
- package/dist/client/types.gen.js +3 -0
- package/dist/client/types.gen.js.map +1 -0
- package/dist/client/{utils.d.ts → utils.gen.d.ts} +15 -23
- package/dist/client/utils.gen.d.ts.map +1 -0
- package/dist/client/{utils.js → utils.gen.js} +63 -119
- package/dist/client/utils.gen.js.map +1 -0
- package/dist/client.gen.d.ts +3 -3
- package/dist/client.gen.d.ts.map +1 -1
- package/dist/client.gen.js +1 -3
- package/dist/client.gen.js.map +1 -1
- package/dist/core/{auth.d.ts → auth.gen.d.ts} +1 -1
- package/dist/core/auth.gen.d.ts.map +1 -0
- package/dist/core/{auth.js → auth.gen.js} +2 -1
- package/dist/core/auth.gen.js.map +1 -0
- package/dist/core/bodySerializer.gen.d.ts +26 -0
- package/dist/core/bodySerializer.gen.d.ts.map +1 -0
- package/dist/core/{bodySerializer.js → bodySerializer.gen.js} +6 -2
- package/dist/core/bodySerializer.gen.js.map +1 -0
- package/dist/core/{params.d.ts → params.gen.d.ts} +11 -1
- package/dist/core/params.gen.d.ts.map +1 -0
- package/dist/core/{params.js → params.gen.js} +20 -7
- package/dist/core/params.gen.js.map +1 -0
- package/dist/core/{pathSerializer.d.ts → pathSerializer.gen.d.ts} +1 -1
- package/dist/core/pathSerializer.gen.d.ts.map +1 -0
- package/dist/core/{pathSerializer.js → pathSerializer.gen.js} +5 -12
- package/dist/core/pathSerializer.gen.js.map +1 -0
- package/dist/core/queryKeySerializer.gen.d.ts +19 -0
- package/dist/core/queryKeySerializer.gen.d.ts.map +1 -0
- package/dist/core/queryKeySerializer.gen.js +93 -0
- package/dist/core/queryKeySerializer.gen.js.map +1 -0
- package/dist/core/serverSentEvents.gen.d.ts +72 -0
- package/dist/core/serverSentEvents.gen.d.ts.map +1 -0
- package/dist/core/serverSentEvents.gen.js +133 -0
- package/dist/core/serverSentEvents.gen.js.map +1 -0
- package/dist/core/{types.d.ts → types.gen.d.ts} +16 -16
- package/dist/core/types.gen.d.ts.map +1 -0
- package/dist/core/types.gen.js +3 -0
- package/dist/core/types.gen.js.map +1 -0
- package/dist/core/utils.gen.d.ts +20 -0
- package/dist/core/utils.gen.d.ts.map +1 -0
- package/dist/core/utils.gen.js +88 -0
- package/dist/core/utils.gen.js.map +1 -0
- package/dist/schemas.gen.d.ts +1343 -600
- package/dist/schemas.gen.d.ts.map +1 -1
- package/dist/schemas.gen.js +2670 -688
- package/dist/schemas.gen.js.map +1 -1
- package/dist/sdk.gen.d.ts +146 -22
- package/dist/sdk.gen.d.ts.map +1 -1
- package/dist/sdk.gen.js +236 -165
- package/dist/sdk.gen.js.map +1 -1
- package/dist/services/kubernetes/api.d.ts +20 -20
- package/dist/types.gen.d.ts +1146 -370
- package/dist/types.gen.d.ts.map +1 -1
- package/dist/zod.gen.d.ts +3557 -3615
- package/dist/zod.gen.d.ts.map +1 -1
- package/dist/zod.gen.js +1215 -1066
- package/dist/zod.gen.js.map +1 -1
- package/package.json +29 -6
- package/dist/client/client.d.ts +0 -3
- package/dist/client/client.d.ts.map +0 -1
- package/dist/client/client.js +0 -146
- package/dist/client/client.js.map +0 -1
- package/dist/client/types.d.ts.map +0 -1
- package/dist/client/types.js +0 -2
- package/dist/client/types.js.map +0 -1
- package/dist/client/utils.d.ts.map +0 -1
- package/dist/client/utils.js.map +0 -1
- package/dist/core/auth.d.ts.map +0 -1
- package/dist/core/auth.js.map +0 -1
- package/dist/core/bodySerializer.d.ts +0 -18
- package/dist/core/bodySerializer.d.ts.map +0 -1
- package/dist/core/bodySerializer.js.map +0 -1
- package/dist/core/params.d.ts.map +0 -1
- package/dist/core/params.js.map +0 -1
- package/dist/core/pathSerializer.d.ts.map +0 -1
- package/dist/core/pathSerializer.js.map +0 -1
- package/dist/core/types.d.ts.map +0 -1
- package/dist/core/types.js +0 -2
- package/dist/core/types.js.map +0 -1
package/dist/schemas.gen.js
CHANGED
|
@@ -2,6 +2,15 @@
|
|
|
2
2
|
export const BillingContactSchema = {
|
|
3
3
|
type: 'object',
|
|
4
4
|
properties: {
|
|
5
|
+
type: {
|
|
6
|
+
type: 'string',
|
|
7
|
+
description: 'Type of the organization. `business` for legal entities, `personal` for individuals.',
|
|
8
|
+
example: 'business',
|
|
9
|
+
enum: [
|
|
10
|
+
'business',
|
|
11
|
+
'personal'
|
|
12
|
+
]
|
|
13
|
+
},
|
|
5
14
|
company: {
|
|
6
15
|
type: 'string',
|
|
7
16
|
maxLength: 120,
|
|
@@ -58,15 +67,10 @@ export const BillingContactSchema = {
|
|
|
58
67
|
description: 'Email address used for billing as a string.',
|
|
59
68
|
example: 'email@example.com'
|
|
60
69
|
},
|
|
61
|
-
|
|
62
|
-
type: 'string',
|
|
63
|
-
description: 'First name of the billing contact person.',
|
|
64
|
-
example: 'John'
|
|
65
|
-
},
|
|
66
|
-
last_name: {
|
|
70
|
+
individual_name: {
|
|
67
71
|
type: 'string',
|
|
68
|
-
description: '
|
|
69
|
-
example: 'Doe'
|
|
72
|
+
description: 'Name of the billing contact person.',
|
|
73
|
+
example: 'John Doe'
|
|
70
74
|
},
|
|
71
75
|
tax_id: {
|
|
72
76
|
type: 'string',
|
|
@@ -79,10 +83,143 @@ export const BillingContactSchema = {
|
|
|
79
83
|
nullable: true,
|
|
80
84
|
description: 'Type of the tax ID.',
|
|
81
85
|
example: 'de_vat',
|
|
82
|
-
enum: [
|
|
86
|
+
enum: [
|
|
87
|
+
'ad_nrt',
|
|
88
|
+
'ae_trn',
|
|
89
|
+
'al_tin',
|
|
90
|
+
'am_tin',
|
|
91
|
+
'ao_tin',
|
|
92
|
+
'ar_cuit',
|
|
93
|
+
'at_vat',
|
|
94
|
+
'au_abn',
|
|
95
|
+
'au_arn',
|
|
96
|
+
'ba_tin',
|
|
97
|
+
'bb_tin',
|
|
98
|
+
'be_vat',
|
|
99
|
+
'bg_uic',
|
|
100
|
+
'bg_vat',
|
|
101
|
+
'bh_vat',
|
|
102
|
+
'bo_tin',
|
|
103
|
+
'br_cnpj',
|
|
104
|
+
'br_cpf',
|
|
105
|
+
'bs_tin',
|
|
106
|
+
'by_tin',
|
|
107
|
+
'ca_bn',
|
|
108
|
+
'ca_gst_hst',
|
|
109
|
+
'ca_pst_bc',
|
|
110
|
+
'ca_pst_mb',
|
|
111
|
+
'ca_pst_sk',
|
|
112
|
+
'ca_qst',
|
|
113
|
+
'cd_nif',
|
|
114
|
+
'ch_uid',
|
|
115
|
+
'ch_vat',
|
|
116
|
+
'cl_tin',
|
|
117
|
+
'cn_tin',
|
|
118
|
+
'co_nit',
|
|
119
|
+
'cr_tin',
|
|
120
|
+
'cy_vat',
|
|
121
|
+
'cz_vat',
|
|
122
|
+
'de_stn',
|
|
123
|
+
'de_vat',
|
|
124
|
+
'dk_vat',
|
|
125
|
+
'do_rcn',
|
|
126
|
+
'ec_ruc',
|
|
127
|
+
'ee_vat',
|
|
128
|
+
'eg_tin',
|
|
129
|
+
'es_cif',
|
|
130
|
+
'es_vat',
|
|
131
|
+
'eu_oss_vat',
|
|
132
|
+
'fi_vat',
|
|
133
|
+
'fr_vat',
|
|
134
|
+
'gb_vat',
|
|
135
|
+
'ge_vat',
|
|
136
|
+
'gn_nif',
|
|
137
|
+
'gr_vat',
|
|
138
|
+
'hk_br',
|
|
139
|
+
'hr_oib',
|
|
140
|
+
'hr_vat',
|
|
141
|
+
'hu_tin',
|
|
142
|
+
'hu_vat',
|
|
143
|
+
'id_npwp',
|
|
144
|
+
'ie_vat',
|
|
145
|
+
'il_vat',
|
|
146
|
+
'in_gst',
|
|
147
|
+
'is_vat',
|
|
148
|
+
'it_vat',
|
|
149
|
+
'jp_cn',
|
|
150
|
+
'jp_rn',
|
|
151
|
+
'jp_trn',
|
|
152
|
+
'ke_pin',
|
|
153
|
+
'kh_tin',
|
|
154
|
+
'kr_brn',
|
|
155
|
+
'kz_bin',
|
|
156
|
+
'li_uid',
|
|
157
|
+
'li_vat',
|
|
158
|
+
'lt_vat',
|
|
159
|
+
'lu_vat',
|
|
160
|
+
'lv_vat',
|
|
161
|
+
'ma_vat',
|
|
162
|
+
'md_vat',
|
|
163
|
+
'me_pib',
|
|
164
|
+
'mk_vat',
|
|
165
|
+
'mr_nif',
|
|
166
|
+
'mt_vat',
|
|
167
|
+
'mx_rfc',
|
|
168
|
+
'my_frp',
|
|
169
|
+
'my_itn',
|
|
170
|
+
'my_sst',
|
|
171
|
+
'ng_tin',
|
|
172
|
+
'nl_vat',
|
|
173
|
+
'no_vat',
|
|
174
|
+
'no_voec',
|
|
175
|
+
'np_pan',
|
|
176
|
+
'nz_gst',
|
|
177
|
+
'om_vat',
|
|
178
|
+
'pe_ruc',
|
|
179
|
+
'ph_tin',
|
|
180
|
+
'pl_vat',
|
|
181
|
+
'pt_vat',
|
|
182
|
+
'ro_tin',
|
|
183
|
+
'ro_vat',
|
|
184
|
+
'rs_pib',
|
|
185
|
+
'ru_inn',
|
|
186
|
+
'ru_kpp',
|
|
187
|
+
'sa_vat',
|
|
188
|
+
'se_vat',
|
|
189
|
+
'sg_gst',
|
|
190
|
+
'sg_uen',
|
|
191
|
+
'si_tin',
|
|
192
|
+
'si_vat',
|
|
193
|
+
'sk_vat',
|
|
194
|
+
'sn_ninea',
|
|
195
|
+
'sr_fin',
|
|
196
|
+
'sv_nit',
|
|
197
|
+
'th_vat',
|
|
198
|
+
'tj_tin',
|
|
199
|
+
'tr_tin',
|
|
200
|
+
'tw_vat',
|
|
201
|
+
'tz_vat',
|
|
202
|
+
'ua_vat',
|
|
203
|
+
'ug_tin',
|
|
204
|
+
'us_ein',
|
|
205
|
+
'uy_ruc',
|
|
206
|
+
'uz_tin',
|
|
207
|
+
'uz_vat',
|
|
208
|
+
've_rif',
|
|
209
|
+
'vn_tin',
|
|
210
|
+
'xi_vat',
|
|
211
|
+
'za_vat',
|
|
212
|
+
'zm_tin',
|
|
213
|
+
'zw_tin',
|
|
214
|
+
''
|
|
215
|
+
]
|
|
83
216
|
}
|
|
84
217
|
},
|
|
85
|
-
required: [
|
|
218
|
+
required: [
|
|
219
|
+
'type',
|
|
220
|
+
'email',
|
|
221
|
+
'individual_name'
|
|
222
|
+
],
|
|
86
223
|
additionalProperties: false
|
|
87
224
|
};
|
|
88
225
|
export const BillingCreditsSchema = {
|
|
@@ -93,10 +230,25 @@ export const BillingCreditsSchema = {
|
|
|
93
230
|
description: 'Generated unique identifier of the promotional code.',
|
|
94
231
|
example: '7kUZnH7nnKUFfvc4NK2KQF'
|
|
95
232
|
},
|
|
96
|
-
|
|
233
|
+
type: {
|
|
234
|
+
type: 'string',
|
|
235
|
+
description: 'Type of the promotional code.',
|
|
236
|
+
example: 'credit',
|
|
237
|
+
enum: [
|
|
238
|
+
'credit',
|
|
239
|
+
'discount'
|
|
240
|
+
]
|
|
241
|
+
},
|
|
242
|
+
date_start: {
|
|
243
|
+
type: 'string',
|
|
244
|
+
format: 'date-time',
|
|
245
|
+
description: 'Timestamp when the credit becomes active. ISO 8601 date string in the UTC timezone.',
|
|
246
|
+
example: '2023-12-20T13:53:32.000Z'
|
|
247
|
+
},
|
|
248
|
+
date_end: {
|
|
97
249
|
type: 'string',
|
|
98
250
|
format: 'date-time',
|
|
99
|
-
description: '
|
|
251
|
+
description: 'Timestamp when the credit expires or becomes inactive. ISO 8601 date string in the UTC timezone.',
|
|
100
252
|
example: '2023-12-20T13:53:32.000Z'
|
|
101
253
|
},
|
|
102
254
|
code: {
|
|
@@ -109,40 +261,25 @@ export const BillingCreditsSchema = {
|
|
|
109
261
|
description: 'Description of the promotional code.',
|
|
110
262
|
example: '10% off on all products'
|
|
111
263
|
},
|
|
112
|
-
|
|
113
|
-
type: 'array',
|
|
114
|
-
items: {
|
|
115
|
-
type: 'string'
|
|
116
|
-
},
|
|
117
|
-
description: 'List of product SKUs that the promotional code can be used on.',
|
|
118
|
-
example: ['cfke_controlplane', 'cfke_connected_nodes', 'infra_compute', 'infra_storage', 'infra_loadbalancing', 'infra_traffic', 'cfcr_storage']
|
|
119
|
-
},
|
|
120
|
-
type: {
|
|
121
|
-
type: 'string',
|
|
122
|
-
description: 'Type of the promotional code.',
|
|
123
|
-
example: 'credit',
|
|
124
|
-
enum: ['credit', 'discount']
|
|
125
|
-
},
|
|
126
|
-
value: {
|
|
264
|
+
value_total: {
|
|
127
265
|
type: 'number',
|
|
128
266
|
format: 'float',
|
|
129
|
-
description: '
|
|
267
|
+
description: 'Total value of the promotional code.',
|
|
130
268
|
example: 10
|
|
131
269
|
},
|
|
132
|
-
billing_period: {
|
|
133
|
-
type: 'string',
|
|
134
|
-
format: 'date-time',
|
|
135
|
-
description: 'Date of the billing cycle. An ISO 8601 date string in the UTC timezone.',
|
|
136
|
-
example: '2023-12-20T13:53:32.000Z'
|
|
137
|
-
},
|
|
138
270
|
value_remaining: {
|
|
139
271
|
type: 'number',
|
|
140
272
|
format: 'float',
|
|
141
|
-
description: '
|
|
142
|
-
example:
|
|
273
|
+
description: 'Remaining value of the promotional code.',
|
|
274
|
+
example: 8
|
|
143
275
|
}
|
|
144
276
|
},
|
|
145
|
-
required: [
|
|
277
|
+
required: [
|
|
278
|
+
'type',
|
|
279
|
+
'date_start',
|
|
280
|
+
'code',
|
|
281
|
+
'value_total'
|
|
282
|
+
],
|
|
146
283
|
additionalProperties: false
|
|
147
284
|
};
|
|
148
285
|
export const ChartCreateInputSchema = {
|
|
@@ -183,7 +320,13 @@ export const ChartCreateInputSchema = {
|
|
|
183
320
|
example: 'postgresql'
|
|
184
321
|
}
|
|
185
322
|
},
|
|
186
|
-
required: [
|
|
323
|
+
required: [
|
|
324
|
+
'values',
|
|
325
|
+
'version_channel',
|
|
326
|
+
'name',
|
|
327
|
+
'namespace',
|
|
328
|
+
'chart'
|
|
329
|
+
],
|
|
187
330
|
additionalProperties: false
|
|
188
331
|
};
|
|
189
332
|
export const ChartSchema = {
|
|
@@ -227,7 +370,22 @@ export const ChartSchema = {
|
|
|
227
370
|
type: 'string',
|
|
228
371
|
description: 'Status of the chart deployment.',
|
|
229
372
|
example: 'active',
|
|
230
|
-
enum: [
|
|
373
|
+
enum: [
|
|
374
|
+
'InstallSucceeded',
|
|
375
|
+
'InstallFailed',
|
|
376
|
+
'UpgradeSucceeded',
|
|
377
|
+
'UpgradeFailed',
|
|
378
|
+
'TestSucceeded',
|
|
379
|
+
'TestFailed',
|
|
380
|
+
'RollbackSucceeded',
|
|
381
|
+
'RollbackFailed',
|
|
382
|
+
'UninstallSucceeded',
|
|
383
|
+
'UninstallFailed',
|
|
384
|
+
'ArtifactFailed',
|
|
385
|
+
'DependencyNotReady',
|
|
386
|
+
'Progressing',
|
|
387
|
+
'SourceNotReady'
|
|
388
|
+
]
|
|
231
389
|
},
|
|
232
390
|
version_current: {
|
|
233
391
|
type: 'string',
|
|
@@ -250,7 +408,18 @@ export const ChartSchema = {
|
|
|
250
408
|
example: true
|
|
251
409
|
}
|
|
252
410
|
},
|
|
253
|
-
required: [
|
|
411
|
+
required: [
|
|
412
|
+
'values',
|
|
413
|
+
'version_channel',
|
|
414
|
+
'name',
|
|
415
|
+
'namespace',
|
|
416
|
+
'chart',
|
|
417
|
+
'status',
|
|
418
|
+
'version_current',
|
|
419
|
+
'created_at',
|
|
420
|
+
'updated_at',
|
|
421
|
+
'ready'
|
|
422
|
+
],
|
|
254
423
|
additionalProperties: false
|
|
255
424
|
};
|
|
256
425
|
export const ChartUpdateInputSchema = {
|
|
@@ -267,7 +436,10 @@ export const ChartUpdateInputSchema = {
|
|
|
267
436
|
example: '2.x.x-cfke.x'
|
|
268
437
|
}
|
|
269
438
|
},
|
|
270
|
-
required: [
|
|
439
|
+
required: [
|
|
440
|
+
'values',
|
|
441
|
+
'version_channel'
|
|
442
|
+
],
|
|
271
443
|
additionalProperties: false
|
|
272
444
|
};
|
|
273
445
|
export const ClusterCreateInputSchema = {
|
|
@@ -285,24 +457,41 @@ export const ClusterCreateInputSchema = {
|
|
|
285
457
|
type: 'string',
|
|
286
458
|
description: 'Tier of the cluster.',
|
|
287
459
|
example: 'pro',
|
|
288
|
-
enum: [
|
|
460
|
+
enum: [
|
|
461
|
+
'basic',
|
|
462
|
+
'pro'
|
|
463
|
+
]
|
|
289
464
|
},
|
|
290
465
|
region: {
|
|
291
466
|
type: 'string',
|
|
292
|
-
description: 'Cloudfleet control plane region. One of "staging", "northamerica-central-1", "europe-central-1a". This field can not be updated after creation.',
|
|
293
|
-
default: 'staging',
|
|
294
|
-
example: 'northamerica-central-
|
|
295
|
-
enum: [
|
|
467
|
+
description: 'Cloudfleet control plane region. One of "staging-1a", "northamerica-central-1", "europe-central-1a", "northamerica-central-1a". This field can not be updated after creation.',
|
|
468
|
+
default: 'staging-1a',
|
|
469
|
+
example: 'northamerica-central-1a',
|
|
470
|
+
enum: [
|
|
471
|
+
'staging-1a',
|
|
472
|
+
'northamerica-central-1',
|
|
473
|
+
'europe-central-1a',
|
|
474
|
+
'northamerica-central-1a'
|
|
475
|
+
]
|
|
296
476
|
},
|
|
297
477
|
version_channel: {
|
|
298
478
|
type: 'string',
|
|
299
479
|
pattern: '^(x|X|0|[1-9]\\d*)\\.(x|X|0|[1-9]\\d*)\\.(x|X|0|[1-9]\\d*)(?:-((?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\\.(?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\\+([0-9a-zA-Z-]+(?:\\.[0-9a-zA-Z-]+)*))?$',
|
|
300
480
|
description: 'Version of the kubernetes cluster.',
|
|
301
481
|
default: '1.x.x-cfke.x',
|
|
302
|
-
example: '1.
|
|
482
|
+
example: '1.x.x-cfke.x',
|
|
483
|
+
enum: [
|
|
484
|
+
'1.x.x-cfke.x',
|
|
485
|
+
'1.31.x-cfke.x',
|
|
486
|
+
'1.32.x-cfke.x',
|
|
487
|
+
'1.33.x-cfke.x'
|
|
488
|
+
]
|
|
303
489
|
}
|
|
304
490
|
},
|
|
305
|
-
required: [
|
|
491
|
+
required: [
|
|
492
|
+
'name',
|
|
493
|
+
'tier'
|
|
494
|
+
],
|
|
306
495
|
additionalProperties: false
|
|
307
496
|
};
|
|
308
497
|
export const ClusterJoinInformationSchema = {
|
|
@@ -311,8 +500,7 @@ export const ClusterJoinInformationSchema = {
|
|
|
311
500
|
certificate_authority: {
|
|
312
501
|
type: 'string',
|
|
313
502
|
description: 'Certificate authority data for the kubernetes cluster. This is the root certificate authority for the cluster.',
|
|
314
|
-
example:
|
|
315
|
-
MIIC0DCCAbigAwIBAgI...`
|
|
503
|
+
example: '-----BEGIN CERTIFICATE-----\nMIIC0DCCAbigAwIBAgI...'
|
|
316
504
|
},
|
|
317
505
|
endpoint: {
|
|
318
506
|
type: 'string',
|
|
@@ -320,6 +508,11 @@ MIIC0DCCAbigAwIBAgI...`
|
|
|
320
508
|
description: 'Internal URL of the Kubernetes cluster control plane. This is the endpoint that kubelet uses to connect to the cluster.',
|
|
321
509
|
example: 'https://10.31.64.7:6443'
|
|
322
510
|
},
|
|
511
|
+
cluster_dns: {
|
|
512
|
+
type: 'string',
|
|
513
|
+
description: 'Cluster DNS IP address. This is the IP address of the kube-dns service in the cluster.',
|
|
514
|
+
example: '10.96.0.10'
|
|
515
|
+
},
|
|
323
516
|
auth_key: {
|
|
324
517
|
type: 'string',
|
|
325
518
|
description: 'Authentication key for the cluster.',
|
|
@@ -336,7 +529,7 @@ MIIC0DCCAbigAwIBAgI...`
|
|
|
336
529
|
kubernetes: {
|
|
337
530
|
type: 'string',
|
|
338
531
|
description: 'Kubernetes version of the cluster.',
|
|
339
|
-
example: '1.
|
|
532
|
+
example: '1.33.7'
|
|
340
533
|
},
|
|
341
534
|
tailscale: {
|
|
342
535
|
type: 'string',
|
|
@@ -354,7 +547,12 @@ MIIC0DCCAbigAwIBAgI...`
|
|
|
354
547
|
example: '565.0.0'
|
|
355
548
|
}
|
|
356
549
|
},
|
|
357
|
-
required: [
|
|
550
|
+
required: [
|
|
551
|
+
'kubernetes',
|
|
552
|
+
'tailscale',
|
|
553
|
+
'containerd',
|
|
554
|
+
'nvidia_driver'
|
|
555
|
+
],
|
|
358
556
|
additionalProperties: false,
|
|
359
557
|
description: 'Versions of the different components of the cluster.'
|
|
360
558
|
},
|
|
@@ -377,12 +575,24 @@ MIIC0DCCAbigAwIBAgI...`
|
|
|
377
575
|
example: '//iam.googleapis.com/projects/89014267864/locations/global/workloadIdentityPools/cfke/providers/oidc'
|
|
378
576
|
}
|
|
379
577
|
},
|
|
380
|
-
required: [
|
|
578
|
+
required: [
|
|
579
|
+
'metadata_url',
|
|
580
|
+
'aws_role_arn',
|
|
581
|
+
'gcp_workload_identity_provider'
|
|
582
|
+
],
|
|
381
583
|
additionalProperties: false,
|
|
382
|
-
description:
|
|
584
|
+
description: 'OIDC Information for hosts to access to third party API\'s.'
|
|
383
585
|
}
|
|
384
586
|
},
|
|
385
|
-
required: [
|
|
587
|
+
required: [
|
|
588
|
+
'certificate_authority',
|
|
589
|
+
'endpoint',
|
|
590
|
+
'cluster_dns',
|
|
591
|
+
'auth_key',
|
|
592
|
+
'bootstrap_token',
|
|
593
|
+
'versions',
|
|
594
|
+
'third_party_api_access_config'
|
|
595
|
+
],
|
|
386
596
|
additionalProperties: false
|
|
387
597
|
};
|
|
388
598
|
export const ClusterSchema = {
|
|
@@ -400,21 +610,22 @@ export const ClusterSchema = {
|
|
|
400
610
|
type: 'string',
|
|
401
611
|
description: 'Tier of the cluster.',
|
|
402
612
|
example: 'pro',
|
|
403
|
-
enum: [
|
|
613
|
+
enum: [
|
|
614
|
+
'basic',
|
|
615
|
+
'pro'
|
|
616
|
+
]
|
|
404
617
|
},
|
|
405
618
|
region: {
|
|
406
619
|
type: 'string',
|
|
407
|
-
description: 'Cloudfleet control plane region. One of "staging", "northamerica-central-1", "europe-central-1a". This field can not be updated after creation.',
|
|
408
|
-
default: 'staging',
|
|
409
|
-
example: 'northamerica-central-
|
|
410
|
-
enum: [
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
default: '1.x.x-cfke.x',
|
|
417
|
-
example: '1.29.x-cfke.x'
|
|
620
|
+
description: 'Cloudfleet control plane region. One of "staging-1a", "northamerica-central-1", "europe-central-1a", "northamerica-central-1a". This field can not be updated after creation.',
|
|
621
|
+
default: 'staging-1a',
|
|
622
|
+
example: 'northamerica-central-1a',
|
|
623
|
+
enum: [
|
|
624
|
+
'staging-1a',
|
|
625
|
+
'northamerica-central-1',
|
|
626
|
+
'europe-central-1a',
|
|
627
|
+
'northamerica-central-1a'
|
|
628
|
+
]
|
|
418
629
|
},
|
|
419
630
|
id: {
|
|
420
631
|
type: 'string',
|
|
@@ -426,32 +637,57 @@ export const ClusterSchema = {
|
|
|
426
637
|
type: 'string',
|
|
427
638
|
description: 'Status of the cluster. When creating a new cluster, set to `active`. When deleting a clusters, set to `deleted`.',
|
|
428
639
|
example: 'active',
|
|
429
|
-
enum: [
|
|
640
|
+
enum: [
|
|
641
|
+
'active',
|
|
642
|
+
'disabled',
|
|
643
|
+
'deleted',
|
|
644
|
+
'creating',
|
|
645
|
+
'deployed',
|
|
646
|
+
'failed',
|
|
647
|
+
'updating'
|
|
648
|
+
]
|
|
430
649
|
},
|
|
431
650
|
endpoint: {
|
|
432
651
|
anyOf: [
|
|
433
652
|
{
|
|
434
653
|
type: 'string',
|
|
435
654
|
format: 'uri',
|
|
436
|
-
description: 'URL of the Kubernetes cluster control plane. This is the endpoint that kubectl uses to connect to the cluster.',
|
|
655
|
+
description: 'URL signed by the private CA of the Kubernetes cluster control plane. This is the endpoint that kubectl uses to connect to the cluster. (Deprecated, use endpoint_public instead)',
|
|
437
656
|
example: 'https://2ae6557c-c61f-49c6-b4c1-a65473470a03.staging.cfke.cloudfleet.dev:6443'
|
|
438
657
|
},
|
|
439
658
|
{
|
|
440
659
|
type: 'string',
|
|
441
|
-
enum: [
|
|
660
|
+
enum: [
|
|
661
|
+
''
|
|
662
|
+
]
|
|
663
|
+
}
|
|
664
|
+
]
|
|
665
|
+
},
|
|
666
|
+
endpoint_public: {
|
|
667
|
+
anyOf: [
|
|
668
|
+
{
|
|
669
|
+
type: 'string',
|
|
670
|
+
format: 'uri',
|
|
671
|
+
description: 'URL signed by a public CA of the Kubernetes cluster control plane. This is the endpoint that kubectl uses to connect to the cluster.',
|
|
672
|
+
example: 'https://2ae6557c-c61f-49c6-b4c1-a65473470a03.staging.cfke.io'
|
|
673
|
+
},
|
|
674
|
+
{
|
|
675
|
+
type: 'string',
|
|
676
|
+
enum: [
|
|
677
|
+
''
|
|
678
|
+
]
|
|
442
679
|
}
|
|
443
680
|
]
|
|
444
681
|
},
|
|
445
682
|
certificate_ca: {
|
|
446
683
|
type: 'string',
|
|
447
684
|
description: 'Certificate authority data for the kubernetes cluster. This is the root certificate authority for the cluster.',
|
|
448
|
-
example:
|
|
449
|
-
MIIC0DCCAbigAwIBAgI...`
|
|
685
|
+
example: '-----BEGIN CERTIFICATE-----\nMIIC0DCCAbigAwIBAgI...'
|
|
450
686
|
},
|
|
451
687
|
version_current: {
|
|
452
688
|
type: 'string',
|
|
453
689
|
description: 'Current version of the cluster.',
|
|
454
|
-
example: '1.
|
|
690
|
+
example: '1.33.7-cfke.264'
|
|
455
691
|
},
|
|
456
692
|
created_at: {
|
|
457
693
|
type: 'string',
|
|
@@ -467,9 +703,20 @@ MIIC0DCCAbigAwIBAgI...`
|
|
|
467
703
|
type: 'boolean',
|
|
468
704
|
description: 'Indicates if the cluster is ready to be used.',
|
|
469
705
|
example: true
|
|
706
|
+
},
|
|
707
|
+
version_channel: {
|
|
708
|
+
type: 'string',
|
|
709
|
+
pattern: '^(x|X|0|[1-9]\\d*)\\.(x|X|0|[1-9]\\d*)\\.(x|X|0|[1-9]\\d*)(?:-((?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\\.(?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\\+([0-9a-zA-Z-]+(?:\\.[0-9a-zA-Z-]+)*))?$',
|
|
710
|
+
description: 'Version of the kubernetes cluster.',
|
|
711
|
+
example: '1.x.x-cfke.x'
|
|
470
712
|
}
|
|
471
713
|
},
|
|
472
|
-
required: [
|
|
714
|
+
required: [
|
|
715
|
+
'name',
|
|
716
|
+
'tier',
|
|
717
|
+
'id',
|
|
718
|
+
'status'
|
|
719
|
+
],
|
|
473
720
|
additionalProperties: false
|
|
474
721
|
};
|
|
475
722
|
export const ClusterUpdateInputSchema = {
|
|
@@ -487,16 +734,21 @@ export const ClusterUpdateInputSchema = {
|
|
|
487
734
|
type: 'string',
|
|
488
735
|
description: 'Tier of the cluster.',
|
|
489
736
|
example: 'pro',
|
|
490
|
-
enum: [
|
|
737
|
+
enum: [
|
|
738
|
+
'basic',
|
|
739
|
+
'pro'
|
|
740
|
+
]
|
|
491
741
|
},
|
|
492
742
|
version_channel: {
|
|
493
743
|
type: 'string',
|
|
494
744
|
pattern: '^(x|X|0|[1-9]\\d*)\\.(x|X|0|[1-9]\\d*)\\.(x|X|0|[1-9]\\d*)(?:-((?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\\.(?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\\+([0-9a-zA-Z-]+(?:\\.[0-9a-zA-Z-]+)*))?$',
|
|
495
745
|
description: 'Version of the kubernetes cluster.',
|
|
496
|
-
example: '1.
|
|
746
|
+
example: '1.x.x-cfke.x'
|
|
497
747
|
}
|
|
498
748
|
},
|
|
499
|
-
required: [
|
|
749
|
+
required: [
|
|
750
|
+
'tier'
|
|
751
|
+
],
|
|
500
752
|
additionalProperties: false
|
|
501
753
|
};
|
|
502
754
|
export const FleetCreateInputSchema = {
|
|
@@ -506,13 +758,12 @@ export const FleetCreateInputSchema = {
|
|
|
506
758
|
type: 'object',
|
|
507
759
|
properties: {
|
|
508
760
|
cpu: {
|
|
509
|
-
type: '
|
|
510
|
-
format: 'float',
|
|
761
|
+
type: 'integer',
|
|
511
762
|
minimum: 0,
|
|
512
|
-
|
|
763
|
+
maximum: 100000,
|
|
764
|
+
description: 'CPU limit in cores. Maximum 100,000.'
|
|
513
765
|
}
|
|
514
766
|
},
|
|
515
|
-
required: ['cpu'],
|
|
516
767
|
additionalProperties: false,
|
|
517
768
|
description: 'Limits define a set of bounds for provisioning capacity.'
|
|
518
769
|
},
|
|
@@ -520,47 +771,345 @@ export const FleetCreateInputSchema = {
|
|
|
520
771
|
type: 'object',
|
|
521
772
|
properties: {
|
|
522
773
|
enabled: {
|
|
523
|
-
type: 'boolean'
|
|
524
|
-
default: true
|
|
774
|
+
type: 'boolean'
|
|
525
775
|
},
|
|
526
776
|
project: {
|
|
527
777
|
type: 'string',
|
|
528
|
-
|
|
778
|
+
pattern: '^[a-z][a-z0-9-]{4,28}[a-z0-9]$',
|
|
779
|
+
description: 'GCP project ID to deploy instances into. 6-30 chars, lowercase letters/digits/hyphens, must start with a letter and not end with a hyphen. Omit when GCP is disabled.',
|
|
780
|
+
example: 'my-cloudfleet-project'
|
|
529
781
|
}
|
|
530
782
|
},
|
|
531
|
-
required: [
|
|
783
|
+
required: [
|
|
784
|
+
'enabled'
|
|
785
|
+
],
|
|
532
786
|
additionalProperties: false
|
|
533
787
|
},
|
|
534
788
|
hetzner: {
|
|
535
789
|
type: 'object',
|
|
536
790
|
properties: {
|
|
537
791
|
enabled: {
|
|
538
|
-
type: 'boolean'
|
|
539
|
-
default: true
|
|
792
|
+
type: 'boolean'
|
|
540
793
|
},
|
|
541
794
|
apiKey: {
|
|
542
795
|
type: 'string',
|
|
543
|
-
|
|
796
|
+
maxLength: 64,
|
|
797
|
+
minLength: 64,
|
|
798
|
+
pattern: '^[A-Za-z0-9]+$',
|
|
799
|
+
description: 'Hetzner Cloud API token with read / write access (64 alphanumeric characters). Omit this field to keep the existing value.'
|
|
544
800
|
}
|
|
545
801
|
},
|
|
546
|
-
required: [
|
|
802
|
+
required: [
|
|
803
|
+
'enabled'
|
|
804
|
+
],
|
|
547
805
|
additionalProperties: false
|
|
548
806
|
},
|
|
549
807
|
aws: {
|
|
550
808
|
type: 'object',
|
|
551
809
|
properties: {
|
|
552
810
|
enabled: {
|
|
553
|
-
type: 'boolean'
|
|
554
|
-
default: true
|
|
811
|
+
type: 'boolean'
|
|
555
812
|
},
|
|
556
813
|
controllerRoleArn: {
|
|
557
814
|
type: 'string',
|
|
558
|
-
|
|
815
|
+
pattern: '^arn:aws(-[a-z]+)*:iam::\\d{12}:role\\/[\\w+=,.@/-]+$',
|
|
816
|
+
description: 'AWS IAM role ARN that Karpenter uses to manage resources. Omit when AWS is disabled.',
|
|
817
|
+
example: 'arn:aws:iam::123456789012:role/Cloudfleet'
|
|
559
818
|
}
|
|
560
819
|
},
|
|
561
|
-
required: [
|
|
820
|
+
required: [
|
|
821
|
+
'enabled'
|
|
822
|
+
],
|
|
562
823
|
additionalProperties: false
|
|
563
824
|
},
|
|
825
|
+
constraints: {
|
|
826
|
+
type: 'object',
|
|
827
|
+
properties: {
|
|
828
|
+
'karpenter.sh/capacity-type': {
|
|
829
|
+
type: 'array',
|
|
830
|
+
items: {
|
|
831
|
+
type: 'string',
|
|
832
|
+
enum: [
|
|
833
|
+
'on-demand',
|
|
834
|
+
'spot'
|
|
835
|
+
]
|
|
836
|
+
},
|
|
837
|
+
minItems: 1,
|
|
838
|
+
description: 'Allowed values for `karpenter.sh/capacity-type`.',
|
|
839
|
+
default: [
|
|
840
|
+
'on-demand',
|
|
841
|
+
'spot'
|
|
842
|
+
]
|
|
843
|
+
},
|
|
844
|
+
'kubernetes.io/arch': {
|
|
845
|
+
type: 'array',
|
|
846
|
+
items: {
|
|
847
|
+
type: 'string',
|
|
848
|
+
enum: [
|
|
849
|
+
'amd64',
|
|
850
|
+
'arm64'
|
|
851
|
+
]
|
|
852
|
+
},
|
|
853
|
+
minItems: 1,
|
|
854
|
+
description: 'Allowed values for `kubernetes.io/arch`.',
|
|
855
|
+
default: [
|
|
856
|
+
'amd64'
|
|
857
|
+
]
|
|
858
|
+
},
|
|
859
|
+
'cfke.io/instance-family': {
|
|
860
|
+
type: 'array',
|
|
861
|
+
items: {
|
|
862
|
+
type: 'string',
|
|
863
|
+
enum: [
|
|
864
|
+
'a1',
|
|
865
|
+
'a2',
|
|
866
|
+
'a3',
|
|
867
|
+
'a4',
|
|
868
|
+
'c1',
|
|
869
|
+
'c2',
|
|
870
|
+
'c2d',
|
|
871
|
+
'c3',
|
|
872
|
+
'c3d',
|
|
873
|
+
'c4',
|
|
874
|
+
'c4a',
|
|
875
|
+
'c4d',
|
|
876
|
+
'c5',
|
|
877
|
+
'c5a',
|
|
878
|
+
'c5ad',
|
|
879
|
+
'c5d',
|
|
880
|
+
'c5n',
|
|
881
|
+
'c6a',
|
|
882
|
+
'c6g',
|
|
883
|
+
'c6gd',
|
|
884
|
+
'c6gn',
|
|
885
|
+
'c6i',
|
|
886
|
+
'c6id',
|
|
887
|
+
'c6in',
|
|
888
|
+
'c7a',
|
|
889
|
+
'c7g',
|
|
890
|
+
'c7gd',
|
|
891
|
+
'c7gn',
|
|
892
|
+
'c7i',
|
|
893
|
+
'c7i-flex',
|
|
894
|
+
'c8g',
|
|
895
|
+
'c8gd',
|
|
896
|
+
'cax',
|
|
897
|
+
'ccx',
|
|
898
|
+
'cpx',
|
|
899
|
+
'cx',
|
|
900
|
+
'd2',
|
|
901
|
+
'd3',
|
|
902
|
+
'd3en',
|
|
903
|
+
'dl1',
|
|
904
|
+
'dl2q',
|
|
905
|
+
'e2',
|
|
906
|
+
'f1',
|
|
907
|
+
'f2',
|
|
908
|
+
'g1',
|
|
909
|
+
'g2',
|
|
910
|
+
'g4ad',
|
|
911
|
+
'g4dn',
|
|
912
|
+
'g5',
|
|
913
|
+
'g5g',
|
|
914
|
+
'g6',
|
|
915
|
+
'g6e',
|
|
916
|
+
'gr6',
|
|
917
|
+
'h1',
|
|
918
|
+
'h3',
|
|
919
|
+
'hpc6a',
|
|
920
|
+
'hpc6id',
|
|
921
|
+
'hpc7a',
|
|
922
|
+
'hpc7g',
|
|
923
|
+
'i2',
|
|
924
|
+
'i3',
|
|
925
|
+
'i3en',
|
|
926
|
+
'i4g',
|
|
927
|
+
'i4i',
|
|
928
|
+
'i7i',
|
|
929
|
+
'i7ie',
|
|
930
|
+
'i8g',
|
|
931
|
+
'im4gn',
|
|
932
|
+
'inf1',
|
|
933
|
+
'inf2',
|
|
934
|
+
'is4gen',
|
|
935
|
+
'm1',
|
|
936
|
+
'm2',
|
|
937
|
+
'm3',
|
|
938
|
+
'm4',
|
|
939
|
+
'm5',
|
|
940
|
+
'm5a',
|
|
941
|
+
'm5ad',
|
|
942
|
+
'm5d',
|
|
943
|
+
'm5dn',
|
|
944
|
+
'm5n',
|
|
945
|
+
'm5zn',
|
|
946
|
+
'm6a',
|
|
947
|
+
'm6g',
|
|
948
|
+
'm6gd',
|
|
949
|
+
'm6i',
|
|
950
|
+
'm6id',
|
|
951
|
+
'm6idn',
|
|
952
|
+
'm6in',
|
|
953
|
+
'm7a',
|
|
954
|
+
'm7g',
|
|
955
|
+
'm7gd',
|
|
956
|
+
'm7i',
|
|
957
|
+
'm7i-flex',
|
|
958
|
+
'm8g',
|
|
959
|
+
'm8gd',
|
|
960
|
+
'n1',
|
|
961
|
+
'n2',
|
|
962
|
+
'n2d',
|
|
963
|
+
'n4',
|
|
964
|
+
'p3',
|
|
965
|
+
'p3dn',
|
|
966
|
+
'p4d',
|
|
967
|
+
'p4de',
|
|
968
|
+
'p5',
|
|
969
|
+
'p5e',
|
|
970
|
+
'p5en',
|
|
971
|
+
'p6-b200',
|
|
972
|
+
'r3',
|
|
973
|
+
'r4',
|
|
974
|
+
'r5',
|
|
975
|
+
'r5a',
|
|
976
|
+
'r5ad',
|
|
977
|
+
'r5b',
|
|
978
|
+
'r5d',
|
|
979
|
+
'r5dn',
|
|
980
|
+
'r5n',
|
|
981
|
+
'r6a',
|
|
982
|
+
'r6g',
|
|
983
|
+
'r6gd',
|
|
984
|
+
'r6i',
|
|
985
|
+
'r6id',
|
|
986
|
+
'r6idn',
|
|
987
|
+
'r6in',
|
|
988
|
+
'r7a',
|
|
989
|
+
'r7g',
|
|
990
|
+
'r7gd',
|
|
991
|
+
'r7i',
|
|
992
|
+
'r7iz',
|
|
993
|
+
'r8g',
|
|
994
|
+
'r8gd',
|
|
995
|
+
't2',
|
|
996
|
+
't2a',
|
|
997
|
+
't2d',
|
|
998
|
+
't3',
|
|
999
|
+
't3a',
|
|
1000
|
+
't4g',
|
|
1001
|
+
'trn1',
|
|
1002
|
+
'trn1n',
|
|
1003
|
+
'u-3tb1',
|
|
1004
|
+
'u-6tb1',
|
|
1005
|
+
'u7i-12tb',
|
|
1006
|
+
'u7i-6tb',
|
|
1007
|
+
'u7i-8tb',
|
|
1008
|
+
'u7in-16tb',
|
|
1009
|
+
'u7in-24tb',
|
|
1010
|
+
'u7in-32tb',
|
|
1011
|
+
'vt1',
|
|
1012
|
+
'x1',
|
|
1013
|
+
'x1e',
|
|
1014
|
+
'x2gd',
|
|
1015
|
+
'x2idn',
|
|
1016
|
+
'x2iedn',
|
|
1017
|
+
'x2iezn',
|
|
1018
|
+
'x4',
|
|
1019
|
+
'x8g',
|
|
1020
|
+
'z1d',
|
|
1021
|
+
'z3'
|
|
1022
|
+
]
|
|
1023
|
+
},
|
|
1024
|
+
description: 'Allowed values for `cfke.io/instance-family`.'
|
|
1025
|
+
},
|
|
1026
|
+
'topology.kubernetes.io/region': {
|
|
1027
|
+
type: 'array',
|
|
1028
|
+
items: {
|
|
1029
|
+
type: 'string',
|
|
1030
|
+
enum: [
|
|
1031
|
+
'africa-south1',
|
|
1032
|
+
'ap-northeast-1',
|
|
1033
|
+
'ap-northeast-2',
|
|
1034
|
+
'ap-northeast-3',
|
|
1035
|
+
'ap-south-1',
|
|
1036
|
+
'ap-southeast-1',
|
|
1037
|
+
'ap-southeast-2',
|
|
1038
|
+
'ash',
|
|
1039
|
+
'asia-east1',
|
|
1040
|
+
'asia-east2',
|
|
1041
|
+
'asia-northeast1',
|
|
1042
|
+
'asia-northeast2',
|
|
1043
|
+
'asia-northeast3',
|
|
1044
|
+
'asia-south1',
|
|
1045
|
+
'asia-south2',
|
|
1046
|
+
'asia-southeast1',
|
|
1047
|
+
'asia-southeast2',
|
|
1048
|
+
'australia-southeast1',
|
|
1049
|
+
'australia-southeast2',
|
|
1050
|
+
'ca-central-1',
|
|
1051
|
+
'eu-central-1',
|
|
1052
|
+
'eu-central-2',
|
|
1053
|
+
'eu-north-1',
|
|
1054
|
+
'eu-west-1',
|
|
1055
|
+
'eu-west-2',
|
|
1056
|
+
'eu-west-3',
|
|
1057
|
+
'europe-central2',
|
|
1058
|
+
'europe-north1',
|
|
1059
|
+
'europe-southwest1',
|
|
1060
|
+
'europe-west1',
|
|
1061
|
+
'europe-west10',
|
|
1062
|
+
'europe-west12',
|
|
1063
|
+
'europe-west2',
|
|
1064
|
+
'europe-west3',
|
|
1065
|
+
'europe-west4',
|
|
1066
|
+
'europe-west6',
|
|
1067
|
+
'europe-west8',
|
|
1068
|
+
'europe-west9',
|
|
1069
|
+
'fsn1',
|
|
1070
|
+
'hel1',
|
|
1071
|
+
'hil',
|
|
1072
|
+
'me-central1',
|
|
1073
|
+
'me-central2',
|
|
1074
|
+
'me-west1',
|
|
1075
|
+
'nbg1',
|
|
1076
|
+
'northamerica-northeast1',
|
|
1077
|
+
'northamerica-northeast2',
|
|
1078
|
+
'sa-east-1',
|
|
1079
|
+
'sin',
|
|
1080
|
+
'southamerica-east1',
|
|
1081
|
+
'southamerica-west1',
|
|
1082
|
+
'us-central1',
|
|
1083
|
+
'us-east-1',
|
|
1084
|
+
'us-east-2',
|
|
1085
|
+
'us-east1',
|
|
1086
|
+
'us-east4',
|
|
1087
|
+
'us-east5',
|
|
1088
|
+
'us-south1',
|
|
1089
|
+
'us-west-1',
|
|
1090
|
+
'us-west-2',
|
|
1091
|
+
'us-west1',
|
|
1092
|
+
'us-west2',
|
|
1093
|
+
'us-west3',
|
|
1094
|
+
'us-west4'
|
|
1095
|
+
]
|
|
1096
|
+
},
|
|
1097
|
+
description: 'Allowed values for `topology.kubernetes.io/region`.'
|
|
1098
|
+
}
|
|
1099
|
+
},
|
|
1100
|
+
additionalProperties: false,
|
|
1101
|
+
description: 'Constraints define scheduling and provisioning requirements for the fleet. Each field restricts the values allowed for a given Kubernetes label key. Multiple constraints are ANDed together. Omit a field to place no restriction on that key.'
|
|
1102
|
+
},
|
|
1103
|
+
scalingProfile: {
|
|
1104
|
+
type: 'string',
|
|
1105
|
+
description: 'Controls scale-up / scale-down responsiveness. `aggressive` prioritizes cost-optimization. `conservative` prioritizes stability of the fleet.',
|
|
1106
|
+
default: 'conservative',
|
|
1107
|
+
example: 'conservative',
|
|
1108
|
+
enum: [
|
|
1109
|
+
'aggressive',
|
|
1110
|
+
'conservative'
|
|
1111
|
+
]
|
|
1112
|
+
},
|
|
564
1113
|
id: {
|
|
565
1114
|
type: 'string',
|
|
566
1115
|
maxLength: 63,
|
|
@@ -570,7 +1119,9 @@ export const FleetCreateInputSchema = {
|
|
|
570
1119
|
example: 'new-clouds-fleet'
|
|
571
1120
|
}
|
|
572
1121
|
},
|
|
573
|
-
required: [
|
|
1122
|
+
required: [
|
|
1123
|
+
'id'
|
|
1124
|
+
],
|
|
574
1125
|
additionalProperties: false
|
|
575
1126
|
};
|
|
576
1127
|
export const FleetSchema = {
|
|
@@ -580,13 +1131,12 @@ export const FleetSchema = {
|
|
|
580
1131
|
type: 'object',
|
|
581
1132
|
properties: {
|
|
582
1133
|
cpu: {
|
|
583
|
-
type: '
|
|
584
|
-
format: 'float',
|
|
1134
|
+
type: 'integer',
|
|
585
1135
|
minimum: 0,
|
|
586
|
-
|
|
1136
|
+
maximum: 100000,
|
|
1137
|
+
description: 'CPU limit in cores. Maximum 100,000.'
|
|
587
1138
|
}
|
|
588
1139
|
},
|
|
589
|
-
required: ['cpu'],
|
|
590
1140
|
additionalProperties: false,
|
|
591
1141
|
description: 'Limits define a set of bounds for provisioning capacity.'
|
|
592
1142
|
},
|
|
@@ -594,47 +1144,343 @@ export const FleetSchema = {
|
|
|
594
1144
|
type: 'object',
|
|
595
1145
|
properties: {
|
|
596
1146
|
enabled: {
|
|
597
|
-
type: 'boolean'
|
|
598
|
-
default: true
|
|
1147
|
+
type: 'boolean'
|
|
599
1148
|
},
|
|
600
1149
|
project: {
|
|
601
1150
|
type: 'string',
|
|
602
|
-
|
|
1151
|
+
pattern: '^[a-z][a-z0-9-]{4,28}[a-z0-9]$',
|
|
1152
|
+
description: 'GCP project ID to deploy instances into. 6-30 chars, lowercase letters/digits/hyphens, must start with a letter and not end with a hyphen. Omit when GCP is disabled.',
|
|
1153
|
+
example: 'my-cloudfleet-project'
|
|
603
1154
|
}
|
|
604
1155
|
},
|
|
605
|
-
required: [
|
|
1156
|
+
required: [
|
|
1157
|
+
'enabled'
|
|
1158
|
+
],
|
|
606
1159
|
additionalProperties: false
|
|
607
1160
|
},
|
|
608
1161
|
hetzner: {
|
|
609
1162
|
type: 'object',
|
|
610
1163
|
properties: {
|
|
611
1164
|
enabled: {
|
|
612
|
-
type: 'boolean'
|
|
613
|
-
default: true
|
|
1165
|
+
type: 'boolean'
|
|
614
1166
|
},
|
|
615
1167
|
apiKey: {
|
|
616
1168
|
type: 'string',
|
|
617
|
-
|
|
1169
|
+
pattern: '^\\*{64}$',
|
|
1170
|
+
description: 'Redacted Hetzner API token. Returned as 64 asterisks when a token is configured; omitted otherwise. The real value is never echoed by the API.'
|
|
618
1171
|
}
|
|
619
1172
|
},
|
|
620
|
-
required: [
|
|
1173
|
+
required: [
|
|
1174
|
+
'enabled'
|
|
1175
|
+
],
|
|
621
1176
|
additionalProperties: false
|
|
622
1177
|
},
|
|
623
1178
|
aws: {
|
|
624
1179
|
type: 'object',
|
|
625
1180
|
properties: {
|
|
626
1181
|
enabled: {
|
|
627
|
-
type: 'boolean'
|
|
628
|
-
default: true
|
|
1182
|
+
type: 'boolean'
|
|
629
1183
|
},
|
|
630
1184
|
controllerRoleArn: {
|
|
631
1185
|
type: 'string',
|
|
632
|
-
|
|
1186
|
+
pattern: '^arn:aws(-[a-z]+)*:iam::\\d{12}:role\\/[\\w+=,.@/-]+$',
|
|
1187
|
+
description: 'AWS IAM role ARN that Karpenter uses to manage resources. Omit when AWS is disabled.',
|
|
1188
|
+
example: 'arn:aws:iam::123456789012:role/Cloudfleet'
|
|
633
1189
|
}
|
|
634
1190
|
},
|
|
635
|
-
required: [
|
|
1191
|
+
required: [
|
|
1192
|
+
'enabled'
|
|
1193
|
+
],
|
|
636
1194
|
additionalProperties: false
|
|
637
1195
|
},
|
|
1196
|
+
constraints: {
|
|
1197
|
+
type: 'object',
|
|
1198
|
+
properties: {
|
|
1199
|
+
'karpenter.sh/capacity-type': {
|
|
1200
|
+
type: 'array',
|
|
1201
|
+
items: {
|
|
1202
|
+
type: 'string',
|
|
1203
|
+
enum: [
|
|
1204
|
+
'on-demand',
|
|
1205
|
+
'spot'
|
|
1206
|
+
]
|
|
1207
|
+
},
|
|
1208
|
+
minItems: 1,
|
|
1209
|
+
description: 'Allowed values for `karpenter.sh/capacity-type`.',
|
|
1210
|
+
default: [
|
|
1211
|
+
'on-demand',
|
|
1212
|
+
'spot'
|
|
1213
|
+
]
|
|
1214
|
+
},
|
|
1215
|
+
'kubernetes.io/arch': {
|
|
1216
|
+
type: 'array',
|
|
1217
|
+
items: {
|
|
1218
|
+
type: 'string',
|
|
1219
|
+
enum: [
|
|
1220
|
+
'amd64',
|
|
1221
|
+
'arm64'
|
|
1222
|
+
]
|
|
1223
|
+
},
|
|
1224
|
+
minItems: 1,
|
|
1225
|
+
description: 'Allowed values for `kubernetes.io/arch`.',
|
|
1226
|
+
default: [
|
|
1227
|
+
'amd64'
|
|
1228
|
+
]
|
|
1229
|
+
},
|
|
1230
|
+
'cfke.io/instance-family': {
|
|
1231
|
+
type: 'array',
|
|
1232
|
+
items: {
|
|
1233
|
+
type: 'string',
|
|
1234
|
+
enum: [
|
|
1235
|
+
'a1',
|
|
1236
|
+
'a2',
|
|
1237
|
+
'a3',
|
|
1238
|
+
'a4',
|
|
1239
|
+
'c1',
|
|
1240
|
+
'c2',
|
|
1241
|
+
'c2d',
|
|
1242
|
+
'c3',
|
|
1243
|
+
'c3d',
|
|
1244
|
+
'c4',
|
|
1245
|
+
'c4a',
|
|
1246
|
+
'c4d',
|
|
1247
|
+
'c5',
|
|
1248
|
+
'c5a',
|
|
1249
|
+
'c5ad',
|
|
1250
|
+
'c5d',
|
|
1251
|
+
'c5n',
|
|
1252
|
+
'c6a',
|
|
1253
|
+
'c6g',
|
|
1254
|
+
'c6gd',
|
|
1255
|
+
'c6gn',
|
|
1256
|
+
'c6i',
|
|
1257
|
+
'c6id',
|
|
1258
|
+
'c6in',
|
|
1259
|
+
'c7a',
|
|
1260
|
+
'c7g',
|
|
1261
|
+
'c7gd',
|
|
1262
|
+
'c7gn',
|
|
1263
|
+
'c7i',
|
|
1264
|
+
'c7i-flex',
|
|
1265
|
+
'c8g',
|
|
1266
|
+
'c8gd',
|
|
1267
|
+
'cax',
|
|
1268
|
+
'ccx',
|
|
1269
|
+
'cpx',
|
|
1270
|
+
'cx',
|
|
1271
|
+
'd2',
|
|
1272
|
+
'd3',
|
|
1273
|
+
'd3en',
|
|
1274
|
+
'dl1',
|
|
1275
|
+
'dl2q',
|
|
1276
|
+
'e2',
|
|
1277
|
+
'f1',
|
|
1278
|
+
'f2',
|
|
1279
|
+
'g1',
|
|
1280
|
+
'g2',
|
|
1281
|
+
'g4ad',
|
|
1282
|
+
'g4dn',
|
|
1283
|
+
'g5',
|
|
1284
|
+
'g5g',
|
|
1285
|
+
'g6',
|
|
1286
|
+
'g6e',
|
|
1287
|
+
'gr6',
|
|
1288
|
+
'h1',
|
|
1289
|
+
'h3',
|
|
1290
|
+
'hpc6a',
|
|
1291
|
+
'hpc6id',
|
|
1292
|
+
'hpc7a',
|
|
1293
|
+
'hpc7g',
|
|
1294
|
+
'i2',
|
|
1295
|
+
'i3',
|
|
1296
|
+
'i3en',
|
|
1297
|
+
'i4g',
|
|
1298
|
+
'i4i',
|
|
1299
|
+
'i7i',
|
|
1300
|
+
'i7ie',
|
|
1301
|
+
'i8g',
|
|
1302
|
+
'im4gn',
|
|
1303
|
+
'inf1',
|
|
1304
|
+
'inf2',
|
|
1305
|
+
'is4gen',
|
|
1306
|
+
'm1',
|
|
1307
|
+
'm2',
|
|
1308
|
+
'm3',
|
|
1309
|
+
'm4',
|
|
1310
|
+
'm5',
|
|
1311
|
+
'm5a',
|
|
1312
|
+
'm5ad',
|
|
1313
|
+
'm5d',
|
|
1314
|
+
'm5dn',
|
|
1315
|
+
'm5n',
|
|
1316
|
+
'm5zn',
|
|
1317
|
+
'm6a',
|
|
1318
|
+
'm6g',
|
|
1319
|
+
'm6gd',
|
|
1320
|
+
'm6i',
|
|
1321
|
+
'm6id',
|
|
1322
|
+
'm6idn',
|
|
1323
|
+
'm6in',
|
|
1324
|
+
'm7a',
|
|
1325
|
+
'm7g',
|
|
1326
|
+
'm7gd',
|
|
1327
|
+
'm7i',
|
|
1328
|
+
'm7i-flex',
|
|
1329
|
+
'm8g',
|
|
1330
|
+
'm8gd',
|
|
1331
|
+
'n1',
|
|
1332
|
+
'n2',
|
|
1333
|
+
'n2d',
|
|
1334
|
+
'n4',
|
|
1335
|
+
'p3',
|
|
1336
|
+
'p3dn',
|
|
1337
|
+
'p4d',
|
|
1338
|
+
'p4de',
|
|
1339
|
+
'p5',
|
|
1340
|
+
'p5e',
|
|
1341
|
+
'p5en',
|
|
1342
|
+
'p6-b200',
|
|
1343
|
+
'r3',
|
|
1344
|
+
'r4',
|
|
1345
|
+
'r5',
|
|
1346
|
+
'r5a',
|
|
1347
|
+
'r5ad',
|
|
1348
|
+
'r5b',
|
|
1349
|
+
'r5d',
|
|
1350
|
+
'r5dn',
|
|
1351
|
+
'r5n',
|
|
1352
|
+
'r6a',
|
|
1353
|
+
'r6g',
|
|
1354
|
+
'r6gd',
|
|
1355
|
+
'r6i',
|
|
1356
|
+
'r6id',
|
|
1357
|
+
'r6idn',
|
|
1358
|
+
'r6in',
|
|
1359
|
+
'r7a',
|
|
1360
|
+
'r7g',
|
|
1361
|
+
'r7gd',
|
|
1362
|
+
'r7i',
|
|
1363
|
+
'r7iz',
|
|
1364
|
+
'r8g',
|
|
1365
|
+
'r8gd',
|
|
1366
|
+
't2',
|
|
1367
|
+
't2a',
|
|
1368
|
+
't2d',
|
|
1369
|
+
't3',
|
|
1370
|
+
't3a',
|
|
1371
|
+
't4g',
|
|
1372
|
+
'trn1',
|
|
1373
|
+
'trn1n',
|
|
1374
|
+
'u-3tb1',
|
|
1375
|
+
'u-6tb1',
|
|
1376
|
+
'u7i-12tb',
|
|
1377
|
+
'u7i-6tb',
|
|
1378
|
+
'u7i-8tb',
|
|
1379
|
+
'u7in-16tb',
|
|
1380
|
+
'u7in-24tb',
|
|
1381
|
+
'u7in-32tb',
|
|
1382
|
+
'vt1',
|
|
1383
|
+
'x1',
|
|
1384
|
+
'x1e',
|
|
1385
|
+
'x2gd',
|
|
1386
|
+
'x2idn',
|
|
1387
|
+
'x2iedn',
|
|
1388
|
+
'x2iezn',
|
|
1389
|
+
'x4',
|
|
1390
|
+
'x8g',
|
|
1391
|
+
'z1d',
|
|
1392
|
+
'z3'
|
|
1393
|
+
]
|
|
1394
|
+
},
|
|
1395
|
+
description: 'Allowed values for `cfke.io/instance-family`.'
|
|
1396
|
+
},
|
|
1397
|
+
'topology.kubernetes.io/region': {
|
|
1398
|
+
type: 'array',
|
|
1399
|
+
items: {
|
|
1400
|
+
type: 'string',
|
|
1401
|
+
enum: [
|
|
1402
|
+
'africa-south1',
|
|
1403
|
+
'ap-northeast-1',
|
|
1404
|
+
'ap-northeast-2',
|
|
1405
|
+
'ap-northeast-3',
|
|
1406
|
+
'ap-south-1',
|
|
1407
|
+
'ap-southeast-1',
|
|
1408
|
+
'ap-southeast-2',
|
|
1409
|
+
'ash',
|
|
1410
|
+
'asia-east1',
|
|
1411
|
+
'asia-east2',
|
|
1412
|
+
'asia-northeast1',
|
|
1413
|
+
'asia-northeast2',
|
|
1414
|
+
'asia-northeast3',
|
|
1415
|
+
'asia-south1',
|
|
1416
|
+
'asia-south2',
|
|
1417
|
+
'asia-southeast1',
|
|
1418
|
+
'asia-southeast2',
|
|
1419
|
+
'australia-southeast1',
|
|
1420
|
+
'australia-southeast2',
|
|
1421
|
+
'ca-central-1',
|
|
1422
|
+
'eu-central-1',
|
|
1423
|
+
'eu-central-2',
|
|
1424
|
+
'eu-north-1',
|
|
1425
|
+
'eu-west-1',
|
|
1426
|
+
'eu-west-2',
|
|
1427
|
+
'eu-west-3',
|
|
1428
|
+
'europe-central2',
|
|
1429
|
+
'europe-north1',
|
|
1430
|
+
'europe-southwest1',
|
|
1431
|
+
'europe-west1',
|
|
1432
|
+
'europe-west10',
|
|
1433
|
+
'europe-west12',
|
|
1434
|
+
'europe-west2',
|
|
1435
|
+
'europe-west3',
|
|
1436
|
+
'europe-west4',
|
|
1437
|
+
'europe-west6',
|
|
1438
|
+
'europe-west8',
|
|
1439
|
+
'europe-west9',
|
|
1440
|
+
'fsn1',
|
|
1441
|
+
'hel1',
|
|
1442
|
+
'hil',
|
|
1443
|
+
'me-central1',
|
|
1444
|
+
'me-central2',
|
|
1445
|
+
'me-west1',
|
|
1446
|
+
'nbg1',
|
|
1447
|
+
'northamerica-northeast1',
|
|
1448
|
+
'northamerica-northeast2',
|
|
1449
|
+
'sa-east-1',
|
|
1450
|
+
'sin',
|
|
1451
|
+
'southamerica-east1',
|
|
1452
|
+
'southamerica-west1',
|
|
1453
|
+
'us-central1',
|
|
1454
|
+
'us-east-1',
|
|
1455
|
+
'us-east-2',
|
|
1456
|
+
'us-east1',
|
|
1457
|
+
'us-east4',
|
|
1458
|
+
'us-east5',
|
|
1459
|
+
'us-south1',
|
|
1460
|
+
'us-west-1',
|
|
1461
|
+
'us-west-2',
|
|
1462
|
+
'us-west1',
|
|
1463
|
+
'us-west2',
|
|
1464
|
+
'us-west3',
|
|
1465
|
+
'us-west4'
|
|
1466
|
+
]
|
|
1467
|
+
},
|
|
1468
|
+
description: 'Allowed values for `topology.kubernetes.io/region`.'
|
|
1469
|
+
}
|
|
1470
|
+
},
|
|
1471
|
+
additionalProperties: false,
|
|
1472
|
+
description: 'Constraints define scheduling and provisioning requirements for the fleet. Each field restricts the values allowed for a given Kubernetes label key. Multiple constraints are ANDed together. Omit a field to place no restriction on that key.'
|
|
1473
|
+
},
|
|
1474
|
+
scalingProfile: {
|
|
1475
|
+
type: 'string',
|
|
1476
|
+
description: 'Controls scale-up / scale-down responsiveness. `aggressive` prioritizes cost-optimization. `conservative` prioritizes stability of the fleet.',
|
|
1477
|
+
default: 'conservative',
|
|
1478
|
+
example: 'conservative',
|
|
1479
|
+
enum: [
|
|
1480
|
+
'aggressive',
|
|
1481
|
+
'conservative'
|
|
1482
|
+
]
|
|
1483
|
+
},
|
|
638
1484
|
id: {
|
|
639
1485
|
type: 'string',
|
|
640
1486
|
maxLength: 63,
|
|
@@ -644,7 +1490,10 @@ export const FleetSchema = {
|
|
|
644
1490
|
example: 'new-clouds-fleet'
|
|
645
1491
|
}
|
|
646
1492
|
},
|
|
647
|
-
required: [
|
|
1493
|
+
required: [
|
|
1494
|
+
'scalingProfile',
|
|
1495
|
+
'id'
|
|
1496
|
+
],
|
|
648
1497
|
additionalProperties: false
|
|
649
1498
|
};
|
|
650
1499
|
export const FleetUpdateInputSchema = {
|
|
@@ -654,13 +1503,12 @@ export const FleetUpdateInputSchema = {
|
|
|
654
1503
|
type: 'object',
|
|
655
1504
|
properties: {
|
|
656
1505
|
cpu: {
|
|
657
|
-
type: '
|
|
658
|
-
format: 'float',
|
|
1506
|
+
type: 'integer',
|
|
659
1507
|
minimum: 0,
|
|
660
|
-
|
|
1508
|
+
maximum: 100000,
|
|
1509
|
+
description: 'CPU limit in cores. Maximum 100,000.'
|
|
661
1510
|
}
|
|
662
1511
|
},
|
|
663
|
-
required: ['cpu'],
|
|
664
1512
|
additionalProperties: false,
|
|
665
1513
|
description: 'Limits define a set of bounds for provisioning capacity.'
|
|
666
1514
|
},
|
|
@@ -668,48 +1516,341 @@ export const FleetUpdateInputSchema = {
|
|
|
668
1516
|
type: 'object',
|
|
669
1517
|
properties: {
|
|
670
1518
|
enabled: {
|
|
671
|
-
type: 'boolean'
|
|
672
|
-
default: true
|
|
1519
|
+
type: 'boolean'
|
|
673
1520
|
},
|
|
674
1521
|
project: {
|
|
675
1522
|
type: 'string',
|
|
676
|
-
|
|
1523
|
+
pattern: '^[a-z][a-z0-9-]{4,28}[a-z0-9]$',
|
|
1524
|
+
description: 'GCP project ID to deploy instances into. 6-30 chars, lowercase letters/digits/hyphens, must start with a letter and not end with a hyphen. Omit when GCP is disabled.',
|
|
1525
|
+
example: 'my-cloudfleet-project'
|
|
677
1526
|
}
|
|
678
1527
|
},
|
|
679
|
-
required: [
|
|
1528
|
+
required: [
|
|
1529
|
+
'enabled'
|
|
1530
|
+
],
|
|
680
1531
|
additionalProperties: false
|
|
681
1532
|
},
|
|
682
1533
|
hetzner: {
|
|
683
1534
|
type: 'object',
|
|
684
1535
|
properties: {
|
|
685
1536
|
enabled: {
|
|
686
|
-
type: 'boolean'
|
|
687
|
-
default: true
|
|
1537
|
+
type: 'boolean'
|
|
688
1538
|
},
|
|
689
1539
|
apiKey: {
|
|
690
1540
|
type: 'string',
|
|
691
|
-
|
|
1541
|
+
maxLength: 64,
|
|
1542
|
+
minLength: 64,
|
|
1543
|
+
pattern: '^[A-Za-z0-9]+$',
|
|
1544
|
+
description: 'Hetzner Cloud API token with read / write access (64 alphanumeric characters). Omit this field to keep the existing value.'
|
|
692
1545
|
}
|
|
693
1546
|
},
|
|
694
|
-
required: [
|
|
1547
|
+
required: [
|
|
1548
|
+
'enabled'
|
|
1549
|
+
],
|
|
695
1550
|
additionalProperties: false
|
|
696
1551
|
},
|
|
697
1552
|
aws: {
|
|
698
1553
|
type: 'object',
|
|
699
1554
|
properties: {
|
|
700
1555
|
enabled: {
|
|
701
|
-
type: 'boolean'
|
|
702
|
-
default: true
|
|
1556
|
+
type: 'boolean'
|
|
703
1557
|
},
|
|
704
1558
|
controllerRoleArn: {
|
|
705
1559
|
type: 'string',
|
|
706
|
-
|
|
1560
|
+
pattern: '^arn:aws(-[a-z]+)*:iam::\\d{12}:role\\/[\\w+=,.@/-]+$',
|
|
1561
|
+
description: 'AWS IAM role ARN that Karpenter uses to manage resources. Omit when AWS is disabled.',
|
|
1562
|
+
example: 'arn:aws:iam::123456789012:role/Cloudfleet'
|
|
707
1563
|
}
|
|
708
1564
|
},
|
|
709
|
-
required: [
|
|
1565
|
+
required: [
|
|
1566
|
+
'enabled'
|
|
1567
|
+
],
|
|
710
1568
|
additionalProperties: false
|
|
1569
|
+
},
|
|
1570
|
+
constraints: {
|
|
1571
|
+
type: 'object',
|
|
1572
|
+
properties: {
|
|
1573
|
+
'karpenter.sh/capacity-type': {
|
|
1574
|
+
type: 'array',
|
|
1575
|
+
items: {
|
|
1576
|
+
type: 'string',
|
|
1577
|
+
enum: [
|
|
1578
|
+
'on-demand',
|
|
1579
|
+
'spot'
|
|
1580
|
+
]
|
|
1581
|
+
},
|
|
1582
|
+
minItems: 1,
|
|
1583
|
+
description: 'Allowed values for `karpenter.sh/capacity-type`.'
|
|
1584
|
+
},
|
|
1585
|
+
'kubernetes.io/arch': {
|
|
1586
|
+
type: 'array',
|
|
1587
|
+
items: {
|
|
1588
|
+
type: 'string',
|
|
1589
|
+
enum: [
|
|
1590
|
+
'amd64',
|
|
1591
|
+
'arm64'
|
|
1592
|
+
]
|
|
1593
|
+
},
|
|
1594
|
+
minItems: 1,
|
|
1595
|
+
description: 'Allowed values for `kubernetes.io/arch`.'
|
|
1596
|
+
},
|
|
1597
|
+
'cfke.io/instance-family': {
|
|
1598
|
+
type: 'array',
|
|
1599
|
+
items: {
|
|
1600
|
+
type: 'string',
|
|
1601
|
+
enum: [
|
|
1602
|
+
'a1',
|
|
1603
|
+
'a2',
|
|
1604
|
+
'a3',
|
|
1605
|
+
'a4',
|
|
1606
|
+
'c1',
|
|
1607
|
+
'c2',
|
|
1608
|
+
'c2d',
|
|
1609
|
+
'c3',
|
|
1610
|
+
'c3d',
|
|
1611
|
+
'c4',
|
|
1612
|
+
'c4a',
|
|
1613
|
+
'c4d',
|
|
1614
|
+
'c5',
|
|
1615
|
+
'c5a',
|
|
1616
|
+
'c5ad',
|
|
1617
|
+
'c5d',
|
|
1618
|
+
'c5n',
|
|
1619
|
+
'c6a',
|
|
1620
|
+
'c6g',
|
|
1621
|
+
'c6gd',
|
|
1622
|
+
'c6gn',
|
|
1623
|
+
'c6i',
|
|
1624
|
+
'c6id',
|
|
1625
|
+
'c6in',
|
|
1626
|
+
'c7a',
|
|
1627
|
+
'c7g',
|
|
1628
|
+
'c7gd',
|
|
1629
|
+
'c7gn',
|
|
1630
|
+
'c7i',
|
|
1631
|
+
'c7i-flex',
|
|
1632
|
+
'c8g',
|
|
1633
|
+
'c8gd',
|
|
1634
|
+
'cax',
|
|
1635
|
+
'ccx',
|
|
1636
|
+
'cpx',
|
|
1637
|
+
'cx',
|
|
1638
|
+
'd2',
|
|
1639
|
+
'd3',
|
|
1640
|
+
'd3en',
|
|
1641
|
+
'dl1',
|
|
1642
|
+
'dl2q',
|
|
1643
|
+
'e2',
|
|
1644
|
+
'f1',
|
|
1645
|
+
'f2',
|
|
1646
|
+
'g1',
|
|
1647
|
+
'g2',
|
|
1648
|
+
'g4ad',
|
|
1649
|
+
'g4dn',
|
|
1650
|
+
'g5',
|
|
1651
|
+
'g5g',
|
|
1652
|
+
'g6',
|
|
1653
|
+
'g6e',
|
|
1654
|
+
'gr6',
|
|
1655
|
+
'h1',
|
|
1656
|
+
'h3',
|
|
1657
|
+
'hpc6a',
|
|
1658
|
+
'hpc6id',
|
|
1659
|
+
'hpc7a',
|
|
1660
|
+
'hpc7g',
|
|
1661
|
+
'i2',
|
|
1662
|
+
'i3',
|
|
1663
|
+
'i3en',
|
|
1664
|
+
'i4g',
|
|
1665
|
+
'i4i',
|
|
1666
|
+
'i7i',
|
|
1667
|
+
'i7ie',
|
|
1668
|
+
'i8g',
|
|
1669
|
+
'im4gn',
|
|
1670
|
+
'inf1',
|
|
1671
|
+
'inf2',
|
|
1672
|
+
'is4gen',
|
|
1673
|
+
'm1',
|
|
1674
|
+
'm2',
|
|
1675
|
+
'm3',
|
|
1676
|
+
'm4',
|
|
1677
|
+
'm5',
|
|
1678
|
+
'm5a',
|
|
1679
|
+
'm5ad',
|
|
1680
|
+
'm5d',
|
|
1681
|
+
'm5dn',
|
|
1682
|
+
'm5n',
|
|
1683
|
+
'm5zn',
|
|
1684
|
+
'm6a',
|
|
1685
|
+
'm6g',
|
|
1686
|
+
'm6gd',
|
|
1687
|
+
'm6i',
|
|
1688
|
+
'm6id',
|
|
1689
|
+
'm6idn',
|
|
1690
|
+
'm6in',
|
|
1691
|
+
'm7a',
|
|
1692
|
+
'm7g',
|
|
1693
|
+
'm7gd',
|
|
1694
|
+
'm7i',
|
|
1695
|
+
'm7i-flex',
|
|
1696
|
+
'm8g',
|
|
1697
|
+
'm8gd',
|
|
1698
|
+
'n1',
|
|
1699
|
+
'n2',
|
|
1700
|
+
'n2d',
|
|
1701
|
+
'n4',
|
|
1702
|
+
'p3',
|
|
1703
|
+
'p3dn',
|
|
1704
|
+
'p4d',
|
|
1705
|
+
'p4de',
|
|
1706
|
+
'p5',
|
|
1707
|
+
'p5e',
|
|
1708
|
+
'p5en',
|
|
1709
|
+
'p6-b200',
|
|
1710
|
+
'r3',
|
|
1711
|
+
'r4',
|
|
1712
|
+
'r5',
|
|
1713
|
+
'r5a',
|
|
1714
|
+
'r5ad',
|
|
1715
|
+
'r5b',
|
|
1716
|
+
'r5d',
|
|
1717
|
+
'r5dn',
|
|
1718
|
+
'r5n',
|
|
1719
|
+
'r6a',
|
|
1720
|
+
'r6g',
|
|
1721
|
+
'r6gd',
|
|
1722
|
+
'r6i',
|
|
1723
|
+
'r6id',
|
|
1724
|
+
'r6idn',
|
|
1725
|
+
'r6in',
|
|
1726
|
+
'r7a',
|
|
1727
|
+
'r7g',
|
|
1728
|
+
'r7gd',
|
|
1729
|
+
'r7i',
|
|
1730
|
+
'r7iz',
|
|
1731
|
+
'r8g',
|
|
1732
|
+
'r8gd',
|
|
1733
|
+
't2',
|
|
1734
|
+
't2a',
|
|
1735
|
+
't2d',
|
|
1736
|
+
't3',
|
|
1737
|
+
't3a',
|
|
1738
|
+
't4g',
|
|
1739
|
+
'trn1',
|
|
1740
|
+
'trn1n',
|
|
1741
|
+
'u-3tb1',
|
|
1742
|
+
'u-6tb1',
|
|
1743
|
+
'u7i-12tb',
|
|
1744
|
+
'u7i-6tb',
|
|
1745
|
+
'u7i-8tb',
|
|
1746
|
+
'u7in-16tb',
|
|
1747
|
+
'u7in-24tb',
|
|
1748
|
+
'u7in-32tb',
|
|
1749
|
+
'vt1',
|
|
1750
|
+
'x1',
|
|
1751
|
+
'x1e',
|
|
1752
|
+
'x2gd',
|
|
1753
|
+
'x2idn',
|
|
1754
|
+
'x2iedn',
|
|
1755
|
+
'x2iezn',
|
|
1756
|
+
'x4',
|
|
1757
|
+
'x8g',
|
|
1758
|
+
'z1d',
|
|
1759
|
+
'z3'
|
|
1760
|
+
]
|
|
1761
|
+
},
|
|
1762
|
+
description: 'Allowed values for `cfke.io/instance-family`.'
|
|
1763
|
+
},
|
|
1764
|
+
'topology.kubernetes.io/region': {
|
|
1765
|
+
type: 'array',
|
|
1766
|
+
items: {
|
|
1767
|
+
type: 'string',
|
|
1768
|
+
enum: [
|
|
1769
|
+
'africa-south1',
|
|
1770
|
+
'ap-northeast-1',
|
|
1771
|
+
'ap-northeast-2',
|
|
1772
|
+
'ap-northeast-3',
|
|
1773
|
+
'ap-south-1',
|
|
1774
|
+
'ap-southeast-1',
|
|
1775
|
+
'ap-southeast-2',
|
|
1776
|
+
'ash',
|
|
1777
|
+
'asia-east1',
|
|
1778
|
+
'asia-east2',
|
|
1779
|
+
'asia-northeast1',
|
|
1780
|
+
'asia-northeast2',
|
|
1781
|
+
'asia-northeast3',
|
|
1782
|
+
'asia-south1',
|
|
1783
|
+
'asia-south2',
|
|
1784
|
+
'asia-southeast1',
|
|
1785
|
+
'asia-southeast2',
|
|
1786
|
+
'australia-southeast1',
|
|
1787
|
+
'australia-southeast2',
|
|
1788
|
+
'ca-central-1',
|
|
1789
|
+
'eu-central-1',
|
|
1790
|
+
'eu-central-2',
|
|
1791
|
+
'eu-north-1',
|
|
1792
|
+
'eu-west-1',
|
|
1793
|
+
'eu-west-2',
|
|
1794
|
+
'eu-west-3',
|
|
1795
|
+
'europe-central2',
|
|
1796
|
+
'europe-north1',
|
|
1797
|
+
'europe-southwest1',
|
|
1798
|
+
'europe-west1',
|
|
1799
|
+
'europe-west10',
|
|
1800
|
+
'europe-west12',
|
|
1801
|
+
'europe-west2',
|
|
1802
|
+
'europe-west3',
|
|
1803
|
+
'europe-west4',
|
|
1804
|
+
'europe-west6',
|
|
1805
|
+
'europe-west8',
|
|
1806
|
+
'europe-west9',
|
|
1807
|
+
'fsn1',
|
|
1808
|
+
'hel1',
|
|
1809
|
+
'hil',
|
|
1810
|
+
'me-central1',
|
|
1811
|
+
'me-central2',
|
|
1812
|
+
'me-west1',
|
|
1813
|
+
'nbg1',
|
|
1814
|
+
'northamerica-northeast1',
|
|
1815
|
+
'northamerica-northeast2',
|
|
1816
|
+
'sa-east-1',
|
|
1817
|
+
'sin',
|
|
1818
|
+
'southamerica-east1',
|
|
1819
|
+
'southamerica-west1',
|
|
1820
|
+
'us-central1',
|
|
1821
|
+
'us-east-1',
|
|
1822
|
+
'us-east-2',
|
|
1823
|
+
'us-east1',
|
|
1824
|
+
'us-east4',
|
|
1825
|
+
'us-east5',
|
|
1826
|
+
'us-south1',
|
|
1827
|
+
'us-west-1',
|
|
1828
|
+
'us-west-2',
|
|
1829
|
+
'us-west1',
|
|
1830
|
+
'us-west2',
|
|
1831
|
+
'us-west3',
|
|
1832
|
+
'us-west4'
|
|
1833
|
+
]
|
|
1834
|
+
},
|
|
1835
|
+
description: 'Allowed values for `topology.kubernetes.io/region`.'
|
|
1836
|
+
}
|
|
1837
|
+
},
|
|
1838
|
+
additionalProperties: false,
|
|
1839
|
+
description: 'Constraints define scheduling and provisioning requirements for the fleet. Each field restricts the values allowed for a given Kubernetes label key. Multiple constraints are ANDed together. Omit a field to place no restriction on that key.'
|
|
1840
|
+
},
|
|
1841
|
+
scalingProfile: {
|
|
1842
|
+
type: 'string',
|
|
1843
|
+
description: 'Controls scale-up / scale-down responsiveness. `aggressive` prioritizes cost-optimization. `conservative` prioritizes stability of the fleet.',
|
|
1844
|
+
example: 'conservative',
|
|
1845
|
+
enum: [
|
|
1846
|
+
'aggressive',
|
|
1847
|
+
'conservative'
|
|
1848
|
+
]
|
|
711
1849
|
}
|
|
712
1850
|
},
|
|
1851
|
+
required: [
|
|
1852
|
+
'scalingProfile'
|
|
1853
|
+
],
|
|
713
1854
|
additionalProperties: false
|
|
714
1855
|
};
|
|
715
1856
|
export const InviteSchema = {
|
|
@@ -744,7 +1885,9 @@ export const InviteSchema = {
|
|
|
744
1885
|
example: '7kUZnH7nnKUFfvc4NK2KQF'
|
|
745
1886
|
}
|
|
746
1887
|
},
|
|
747
|
-
required: [
|
|
1888
|
+
required: [
|
|
1889
|
+
'date_created'
|
|
1890
|
+
],
|
|
748
1891
|
additionalProperties: false
|
|
749
1892
|
};
|
|
750
1893
|
export const InvoiceSchema = {
|
|
@@ -752,23 +1895,18 @@ export const InvoiceSchema = {
|
|
|
752
1895
|
properties: {
|
|
753
1896
|
id: {
|
|
754
1897
|
type: 'string',
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
example: '415026b6-f00f-44f8-968d-fc6ef4d0fc6d'
|
|
1898
|
+
description: 'Unique identifier of the invoice.',
|
|
1899
|
+
example: 'in_1234567890xCrwxghOTj1234'
|
|
758
1900
|
},
|
|
759
|
-
|
|
760
|
-
type: 'string'
|
|
761
|
-
format: 'uuid',
|
|
762
|
-
description: 'Unique identifier of the organization. UUID v4 string in canonical form',
|
|
763
|
-
example: '415026b6-f00f-44f8-968d-fc6ef4d0fc6d'
|
|
1901
|
+
number: {
|
|
1902
|
+
type: 'string'
|
|
764
1903
|
},
|
|
765
1904
|
status: {
|
|
766
1905
|
type: 'string',
|
|
767
1906
|
description: 'Status of the invoice',
|
|
768
|
-
example: '
|
|
769
|
-
enum: ['DRAFT', 'COMMITTED', 'VOID']
|
|
1907
|
+
example: 'paid'
|
|
770
1908
|
},
|
|
771
|
-
|
|
1909
|
+
total: {
|
|
772
1910
|
type: 'number',
|
|
773
1911
|
format: 'float',
|
|
774
1912
|
description: 'Total amount of the invoice',
|
|
@@ -777,418 +1915,203 @@ export const InvoiceSchema = {
|
|
|
777
1915
|
currency: {
|
|
778
1916
|
type: 'string',
|
|
779
1917
|
description: 'Currency of the invoice',
|
|
780
|
-
example: '
|
|
781
|
-
enum: ['AED', 'AFN', 'ALL', 'AMD', 'ANG', 'AOA', 'ARS', 'AUD', 'AWG', 'AZN', 'BAM', 'BBD', 'BDT', 'BGN', 'BHD', 'BIF', 'BMD', 'BND', 'BOB', 'BRL', 'BSD', 'BTN', 'BWP', 'BYR', 'BZD', 'CAD', 'CDF', 'CHF', 'CLP', 'CNY', 'COP', 'CRC', 'CUC', 'CUP', 'CVE', 'CZK', 'DJF', 'DKK', 'DOP', 'DZD', 'EGP', 'ERN', 'ETB', 'EUR', 'FJD', 'FKP', 'GBP', 'GEL', 'GGP', 'GHS', 'GIP', 'GMD', 'GNF', 'GTQ', 'GYD', 'HKD', 'HNL', 'HRK', 'HTG', 'HUF', 'IDR', 'ILS', 'IMP', 'INR', 'IQD', 'IRR', 'ISK', 'JEP', 'JMD', 'JOD', 'JPY', 'KES', 'KGS', 'KHR', 'KMF', 'KPW', 'KRW', 'KWD', 'KYD', 'KZT', 'LAK', 'LBP', 'LKR', 'LRD', 'LSL', 'LTL', 'LVL', 'LYD', 'MAD', 'MDL', 'MGA', 'MKD', 'MMK', 'MNT', 'MOP', 'MRO', 'MUR', 'MVR', 'MWK', 'MXN', 'MYR', 'MZN', 'NAD', 'NGN', 'NIO', 'NOK', 'NPR', 'NZD', 'OMR', 'PAB', 'PEN', 'PGK', 'PHP', 'PKR', 'PLN', 'PYG', 'QAR', 'RON', 'RSD', 'RUB', 'RWF', 'SAR', 'SBD', 'SCR', 'SDG', 'SEK', 'SGD', 'SHP', 'SLL', 'SOS', 'SPL', 'SRD', 'STD', 'SVC', 'SYP', 'SZL', 'THB', 'TJS', 'TMT', 'TND', 'TOP', 'TRY', 'TTD', 'TVD', 'TWD', 'TZS', 'UAH', 'UGX', 'USD', 'UYU', 'UZS', 'VEF', 'VND', 'VUV', 'WST', 'XAF', 'XCD', 'XDR', 'XOF', 'XPF', 'YER', 'ZAR', 'ZMW', 'ZWD', 'BTC']
|
|
782
|
-
},
|
|
783
|
-
creditAdj: {
|
|
784
|
-
type: 'number',
|
|
785
|
-
format: 'float',
|
|
786
|
-
description: 'Total amount of credit adjustments',
|
|
787
|
-
example: 0
|
|
1918
|
+
example: 'usd'
|
|
788
1919
|
},
|
|
789
|
-
|
|
790
|
-
type: '
|
|
791
|
-
format: '
|
|
792
|
-
description: '
|
|
793
|
-
example:
|
|
1920
|
+
created: {
|
|
1921
|
+
type: 'string',
|
|
1922
|
+
format: 'date-time',
|
|
1923
|
+
description: 'Timestamp when the invoice was issued. ISO 8601 date string in the UTC timezone.',
|
|
1924
|
+
example: '2023-12-20T13:53:32.000Z'
|
|
794
1925
|
},
|
|
795
|
-
|
|
1926
|
+
period_start: {
|
|
796
1927
|
type: 'string',
|
|
797
|
-
|
|
798
|
-
|
|
1928
|
+
format: 'date-time',
|
|
1929
|
+
description: 'Billing period start timestamp. ISO 8601 date string in the UTC timezone.',
|
|
1930
|
+
example: '2023-12-20T13:53:32.000Z'
|
|
799
1931
|
},
|
|
800
|
-
|
|
1932
|
+
period_end: {
|
|
801
1933
|
type: 'string',
|
|
802
|
-
|
|
803
|
-
|
|
1934
|
+
format: 'date-time',
|
|
1935
|
+
description: 'Billing period end timestamp. ISO 8601 date string in the UTC timezone.',
|
|
1936
|
+
example: '2023-12-20T13:53:32.000Z'
|
|
804
1937
|
},
|
|
805
|
-
|
|
1938
|
+
invoice_pdf: {
|
|
1939
|
+
type: 'string'
|
|
1940
|
+
}
|
|
1941
|
+
},
|
|
1942
|
+
required: [
|
|
1943
|
+
'created',
|
|
1944
|
+
'period_start',
|
|
1945
|
+
'period_end'
|
|
1946
|
+
],
|
|
1947
|
+
additionalProperties: false
|
|
1948
|
+
};
|
|
1949
|
+
export const MarketplaceListingFilesSchema = {
|
|
1950
|
+
type: 'object',
|
|
1951
|
+
properties: {
|
|
1952
|
+
chartYaml: {
|
|
806
1953
|
type: 'string',
|
|
807
|
-
description: '
|
|
808
|
-
example: '
|
|
1954
|
+
description: 'Raw Chart.yaml content from the Helm chart',
|
|
1955
|
+
example: 'apiVersion: v2\nname: nginx-ingress\nversion: 1.18.2-cfke.45\nappVersion: 1.9.4'
|
|
809
1956
|
},
|
|
810
|
-
|
|
811
|
-
type: '
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
example: 100
|
|
1957
|
+
valuesYaml: {
|
|
1958
|
+
type: 'string',
|
|
1959
|
+
description: 'Raw values.yaml content from the Helm chart',
|
|
1960
|
+
example: 'replicaCount: 1\nimage:\n repository: nginx\n tag: latest'
|
|
815
1961
|
},
|
|
816
|
-
|
|
1962
|
+
valuesSchemaJson: {
|
|
1963
|
+
type: 'string',
|
|
1964
|
+
description: 'JSON schema for values.yaml as a string',
|
|
1965
|
+
example: '{"type":"object","properties":{"replicaCount":{"type":"number"}}}'
|
|
1966
|
+
}
|
|
1967
|
+
},
|
|
1968
|
+
additionalProperties: false
|
|
1969
|
+
};
|
|
1970
|
+
export const MarketplaceListingSchema = {
|
|
1971
|
+
type: 'object',
|
|
1972
|
+
properties: {
|
|
1973
|
+
name: {
|
|
817
1974
|
type: 'string',
|
|
818
|
-
description: '
|
|
819
|
-
example: '
|
|
1975
|
+
description: 'Name of the chart',
|
|
1976
|
+
example: 'nginx-ingress'
|
|
820
1977
|
},
|
|
821
|
-
|
|
1978
|
+
versions: {
|
|
822
1979
|
type: 'array',
|
|
823
1980
|
items: {
|
|
824
|
-
type: '
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
1981
|
+
type: 'string',
|
|
1982
|
+
pattern: '^(0|[1-9]\\d*)\\.(0|[1-9]\\d*)\\.(0|[1-9]\\d*)(?:-((?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\\.(?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\\+([0-9a-zA-Z-]+(?:\\.[0-9a-zA-Z-]+)*))?$',
|
|
1983
|
+
description: 'Specific version of the chart',
|
|
1984
|
+
example: '1.18.2-cfke.45'
|
|
1985
|
+
},
|
|
1986
|
+
description: 'Available versions of the chart'
|
|
1987
|
+
},
|
|
1988
|
+
version_channels: {
|
|
1989
|
+
type: 'array',
|
|
1990
|
+
items: {
|
|
1991
|
+
type: 'string',
|
|
1992
|
+
pattern: '^(x|X|0|[1-9]\\d*)\\.(x|X|0|[1-9]\\d*)\\.(x|X|0|[1-9]\\d*)(?:-((?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\\.(?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\\+([0-9a-zA-Z-]+(?:\\.[0-9a-zA-Z-]+)*))?$',
|
|
1993
|
+
description: 'Version channel pattern',
|
|
1994
|
+
example: '1.18.x-cfke.x'
|
|
1995
|
+
},
|
|
1996
|
+
description: 'Version channels for the chart'
|
|
1997
|
+
},
|
|
1998
|
+
latestVersion: {
|
|
1999
|
+
type: 'string',
|
|
2000
|
+
description: 'Latest version of the chart',
|
|
2001
|
+
example: '1.18.2-cfke.45'
|
|
2002
|
+
},
|
|
2003
|
+
metadata: {
|
|
2004
|
+
type: 'object',
|
|
2005
|
+
properties: {
|
|
2006
|
+
name: {
|
|
2007
|
+
type: 'string',
|
|
2008
|
+
description: 'Chart name from metadata',
|
|
2009
|
+
example: 'nginx-ingress'
|
|
2010
|
+
},
|
|
2011
|
+
version: {
|
|
2012
|
+
type: 'string',
|
|
2013
|
+
description: 'Chart version from metadata',
|
|
2014
|
+
example: '1.18.2-cfke.45'
|
|
2015
|
+
},
|
|
2016
|
+
description: {
|
|
2017
|
+
type: 'string',
|
|
2018
|
+
description: 'Chart description',
|
|
2019
|
+
example: 'NGINX Ingress Controller for Kubernetes'
|
|
2020
|
+
},
|
|
2021
|
+
appVersion: {
|
|
2022
|
+
type: 'string',
|
|
2023
|
+
description: 'Application version',
|
|
2024
|
+
example: '1.9.4'
|
|
2025
|
+
},
|
|
2026
|
+
apiVersion: {
|
|
2027
|
+
type: 'string',
|
|
2028
|
+
description: 'Helm API version',
|
|
2029
|
+
example: 'v2'
|
|
2030
|
+
},
|
|
2031
|
+
keywords: {
|
|
2032
|
+
type: 'array',
|
|
2033
|
+
items: {
|
|
2034
|
+
type: 'string'
|
|
852
2035
|
},
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
2036
|
+
description: 'Chart keywords',
|
|
2037
|
+
example: [
|
|
2038
|
+
'ingress',
|
|
2039
|
+
'nginx',
|
|
2040
|
+
'load-balancer'
|
|
2041
|
+
]
|
|
2042
|
+
},
|
|
2043
|
+
home: {
|
|
2044
|
+
type: 'string',
|
|
2045
|
+
description: 'Chart home URL',
|
|
2046
|
+
example: 'https://kubernetes.github.io/ingress-nginx/'
|
|
2047
|
+
},
|
|
2048
|
+
icon: {
|
|
2049
|
+
type: 'string',
|
|
2050
|
+
description: 'A URL to an SVG or PNG image to be used as an icon',
|
|
2051
|
+
example: 'https://cloudfleet.ai/images/marketplace/icons/ingress-nginx.png'
|
|
2052
|
+
},
|
|
2053
|
+
sources: {
|
|
2054
|
+
type: 'array',
|
|
2055
|
+
items: {
|
|
2056
|
+
type: 'string'
|
|
857
2057
|
},
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
},
|
|
863
|
-
prettyPlanName: {
|
|
864
|
-
type: 'string',
|
|
865
|
-
description: 'Pretty name of the plan',
|
|
866
|
-
example: 'Plan A'
|
|
867
|
-
},
|
|
868
|
-
prettyPhaseName: {
|
|
869
|
-
type: 'string',
|
|
870
|
-
description: 'Pretty name of the phase',
|
|
871
|
-
example: 'Phase A'
|
|
872
|
-
},
|
|
873
|
-
prettyUsageName: {
|
|
874
|
-
type: 'string',
|
|
875
|
-
description: 'Pretty name of the usage',
|
|
876
|
-
example: 'Usage A'
|
|
877
|
-
},
|
|
878
|
-
itemType: {
|
|
879
|
-
type: 'string',
|
|
880
|
-
description: 'Type of the invoice item',
|
|
881
|
-
example: 'EXTERNAL_CHARGE',
|
|
882
|
-
enum: ['EXTERNAL_CHARGE', 'FIXED', 'RECURRING', 'REPAIR_ADJ', 'CBA_ADJ', 'CREDIT_ADJ', 'ITEM_ADJ', 'USAGE', 'TAX', 'PARENT_SUMMARY']
|
|
883
|
-
},
|
|
884
|
-
description: {
|
|
885
|
-
type: 'string',
|
|
886
|
-
description: 'Description of the invoice item',
|
|
887
|
-
example: 'Description of the invoice item'
|
|
888
|
-
},
|
|
889
|
-
startDate: {
|
|
890
|
-
type: 'string',
|
|
891
|
-
description: 'Start date of the invoice item',
|
|
892
|
-
example: '2019-01-01T00:00:00.000Z'
|
|
893
|
-
},
|
|
894
|
-
endDate: {
|
|
895
|
-
type: 'string',
|
|
896
|
-
description: 'End date of the invoice item',
|
|
897
|
-
example: '2019-01-01T00:00:00.000Z'
|
|
898
|
-
},
|
|
899
|
-
amount: {
|
|
900
|
-
type: 'number',
|
|
901
|
-
format: 'float',
|
|
902
|
-
description: 'Amount of the invoice item',
|
|
903
|
-
example: 100
|
|
904
|
-
},
|
|
905
|
-
rate: {
|
|
906
|
-
type: 'number',
|
|
907
|
-
format: 'float',
|
|
908
|
-
description: 'Rate of the invoice item',
|
|
909
|
-
example: 100
|
|
910
|
-
},
|
|
911
|
-
currency: {
|
|
912
|
-
type: 'string',
|
|
913
|
-
description: 'Currency of the invoice item',
|
|
914
|
-
example: 'USD',
|
|
915
|
-
enum: ['AED', 'AFN', 'ALL', 'AMD', 'ANG', 'AOA', 'ARS', 'AUD', 'AWG', 'AZN', 'BAM', 'BBD', 'BDT', 'BGN', 'BHD', 'BIF', 'BMD', 'BND', 'BOB', 'BRL', 'BSD', 'BTN', 'BWP', 'BYR', 'BZD', 'CAD', 'CDF', 'CHF', 'CLP', 'CNY', 'COP', 'CRC', 'CUC', 'CUP', 'CVE', 'CZK', 'DJF', 'DKK', 'DOP', 'DZD', 'EGP', 'ERN', 'ETB', 'EUR', 'FJD', 'FKP', 'GBP', 'GEL', 'GGP', 'GHS', 'GIP', 'GMD', 'GNF', 'GTQ', 'GYD', 'HKD', 'HNL', 'HRK', 'HTG', 'HUF', 'IDR', 'ILS', 'IMP', 'INR', 'IQD', 'IRR', 'ISK', 'JEP', 'JMD', 'JOD', 'JPY', 'KES', 'KGS', 'KHR', 'KMF', 'KPW', 'KRW', 'KWD', 'KYD', 'KZT', 'LAK', 'LBP', 'LKR', 'LRD', 'LSL', 'LTL', 'LVL', 'LYD', 'MAD', 'MDL', 'MGA', 'MKD', 'MMK', 'MNT', 'MOP', 'MRO', 'MUR', 'MVR', 'MWK', 'MXN', 'MYR', 'MZN', 'NAD', 'NGN', 'NIO', 'NOK', 'NPR', 'NZD', 'OMR', 'PAB', 'PEN', 'PGK', 'PHP', 'PKR', 'PLN', 'PYG', 'QAR', 'RON', 'RSD', 'RUB', 'RWF', 'SAR', 'SBD', 'SCR', 'SDG', 'SEK', 'SGD', 'SHP', 'SLL', 'SOS', 'SPL', 'SRD', 'STD', 'SVC', 'SYP', 'SZL', 'THB', 'TJS', 'TMT', 'TND', 'TOP', 'TRY', 'TTD', 'TVD', 'TWD', 'TZS', 'UAH', 'UGX', 'USD', 'UYU', 'UZS', 'VEF', 'VND', 'VUV', 'WST', 'XAF', 'XCD', 'XDR', 'XOF', 'XPF', 'YER', 'ZAR', 'ZMW', 'ZWD', 'BTC']
|
|
916
|
-
},
|
|
917
|
-
quantity: {
|
|
918
|
-
type: 'number',
|
|
919
|
-
format: 'float',
|
|
920
|
-
description: 'Quantity of the invoice item',
|
|
921
|
-
example: 1
|
|
922
|
-
},
|
|
923
|
-
itemDetails: {
|
|
924
|
-
type: 'string',
|
|
925
|
-
description: 'Details of the invoice item',
|
|
926
|
-
example: 'Details of the invoice item'
|
|
927
|
-
},
|
|
928
|
-
catalogEffectiveDate: {
|
|
929
|
-
type: 'string',
|
|
930
|
-
description: 'Effective date of the catalog',
|
|
931
|
-
example: '2019-01-01T00:00:00.000Z'
|
|
932
|
-
},
|
|
933
|
-
childItems: {
|
|
934
|
-
type: 'array',
|
|
935
|
-
items: {
|
|
936
|
-
oneOf: [
|
|
937
|
-
{
|
|
938
|
-
type: 'array'
|
|
939
|
-
},
|
|
940
|
-
{
|
|
941
|
-
type: 'boolean'
|
|
942
|
-
},
|
|
943
|
-
{
|
|
944
|
-
type: 'number'
|
|
945
|
-
},
|
|
946
|
-
{
|
|
947
|
-
type: 'object',
|
|
948
|
-
additionalProperties: true
|
|
949
|
-
},
|
|
950
|
-
{
|
|
951
|
-
type: 'string'
|
|
952
|
-
}
|
|
953
|
-
]
|
|
954
|
-
},
|
|
955
|
-
description: 'Child items of the invoice item'
|
|
956
|
-
}
|
|
2058
|
+
description: 'Chart source URLs',
|
|
2059
|
+
example: [
|
|
2060
|
+
'https://github.com/kubernetes/ingress-nginx'
|
|
2061
|
+
]
|
|
957
2062
|
},
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
linkedInvoiceItemId: {
|
|
974
|
-
type: 'string',
|
|
975
|
-
format: 'uuid',
|
|
976
|
-
description: 'Unique identifier of the linked invoice item. UUID v4 string in canonical form',
|
|
977
|
-
example: '415026b6-f00f-44f8-968d-fc6ef4d0fc6d'
|
|
978
|
-
},
|
|
979
|
-
productName: {
|
|
980
|
-
type: 'string',
|
|
981
|
-
description: 'Name of the product',
|
|
982
|
-
example: 'Research team'
|
|
983
|
-
},
|
|
984
|
-
planName: {
|
|
985
|
-
type: 'string',
|
|
986
|
-
description: 'Name of the plan',
|
|
987
|
-
example: 'Plan A'
|
|
988
|
-
},
|
|
989
|
-
phaseName: {
|
|
990
|
-
type: 'string',
|
|
991
|
-
description: 'Name of the phase',
|
|
992
|
-
example: 'Phase A'
|
|
993
|
-
},
|
|
994
|
-
usageName: {
|
|
995
|
-
type: 'string',
|
|
996
|
-
description: 'Name of the usage',
|
|
997
|
-
example: 'Usage A'
|
|
998
|
-
},
|
|
999
|
-
prettyProductName: {
|
|
1000
|
-
type: 'string',
|
|
1001
|
-
description: 'Pretty name of the product',
|
|
1002
|
-
example: 'Research team'
|
|
1003
|
-
},
|
|
1004
|
-
prettyPlanName: {
|
|
1005
|
-
type: 'string',
|
|
1006
|
-
description: 'Pretty name of the plan',
|
|
1007
|
-
example: 'Plan A'
|
|
1008
|
-
},
|
|
1009
|
-
prettyPhaseName: {
|
|
1010
|
-
type: 'string',
|
|
1011
|
-
description: 'Pretty name of the phase',
|
|
1012
|
-
example: 'Phase A'
|
|
1013
|
-
},
|
|
1014
|
-
prettyUsageName: {
|
|
1015
|
-
type: 'string',
|
|
1016
|
-
description: 'Pretty name of the usage',
|
|
1017
|
-
example: 'Usage A'
|
|
1018
|
-
},
|
|
1019
|
-
itemType: {
|
|
1020
|
-
type: 'string',
|
|
1021
|
-
description: 'Type of the invoice item',
|
|
1022
|
-
example: 'EXTERNAL_CHARGE',
|
|
1023
|
-
enum: ['EXTERNAL_CHARGE', 'FIXED', 'RECURRING', 'REPAIR_ADJ', 'CBA_ADJ', 'CREDIT_ADJ', 'ITEM_ADJ', 'USAGE', 'TAX', 'PARENT_SUMMARY']
|
|
1024
|
-
},
|
|
1025
|
-
description: {
|
|
1026
|
-
type: 'string',
|
|
1027
|
-
description: 'Description of the invoice item',
|
|
1028
|
-
example: 'Description of the invoice item'
|
|
1029
|
-
},
|
|
1030
|
-
startDate: {
|
|
1031
|
-
type: 'string',
|
|
1032
|
-
description: 'Start date of the invoice item',
|
|
1033
|
-
example: '2019-01-01T00:00:00.000Z'
|
|
1034
|
-
},
|
|
1035
|
-
endDate: {
|
|
1036
|
-
type: 'string',
|
|
1037
|
-
description: 'End date of the invoice item',
|
|
1038
|
-
example: '2019-01-01T00:00:00.000Z'
|
|
1039
|
-
},
|
|
1040
|
-
amount: {
|
|
1041
|
-
type: 'number',
|
|
1042
|
-
format: 'float',
|
|
1043
|
-
description: 'Amount of the invoice item',
|
|
1044
|
-
example: 100
|
|
1045
|
-
},
|
|
1046
|
-
rate: {
|
|
1047
|
-
type: 'number',
|
|
1048
|
-
format: 'float',
|
|
1049
|
-
description: 'Rate of the invoice item',
|
|
1050
|
-
example: 100
|
|
1051
|
-
},
|
|
1052
|
-
currency: {
|
|
1053
|
-
type: 'string',
|
|
1054
|
-
description: 'Currency of the invoice item',
|
|
1055
|
-
example: 'USD',
|
|
1056
|
-
enum: ['AED', 'AFN', 'ALL', 'AMD', 'ANG', 'AOA', 'ARS', 'AUD', 'AWG', 'AZN', 'BAM', 'BBD', 'BDT', 'BGN', 'BHD', 'BIF', 'BMD', 'BND', 'BOB', 'BRL', 'BSD', 'BTN', 'BWP', 'BYR', 'BZD', 'CAD', 'CDF', 'CHF', 'CLP', 'CNY', 'COP', 'CRC', 'CUC', 'CUP', 'CVE', 'CZK', 'DJF', 'DKK', 'DOP', 'DZD', 'EGP', 'ERN', 'ETB', 'EUR', 'FJD', 'FKP', 'GBP', 'GEL', 'GGP', 'GHS', 'GIP', 'GMD', 'GNF', 'GTQ', 'GYD', 'HKD', 'HNL', 'HRK', 'HTG', 'HUF', 'IDR', 'ILS', 'IMP', 'INR', 'IQD', 'IRR', 'ISK', 'JEP', 'JMD', 'JOD', 'JPY', 'KES', 'KGS', 'KHR', 'KMF', 'KPW', 'KRW', 'KWD', 'KYD', 'KZT', 'LAK', 'LBP', 'LKR', 'LRD', 'LSL', 'LTL', 'LVL', 'LYD', 'MAD', 'MDL', 'MGA', 'MKD', 'MMK', 'MNT', 'MOP', 'MRO', 'MUR', 'MVR', 'MWK', 'MXN', 'MYR', 'MZN', 'NAD', 'NGN', 'NIO', 'NOK', 'NPR', 'NZD', 'OMR', 'PAB', 'PEN', 'PGK', 'PHP', 'PKR', 'PLN', 'PYG', 'QAR', 'RON', 'RSD', 'RUB', 'RWF', 'SAR', 'SBD', 'SCR', 'SDG', 'SEK', 'SGD', 'SHP', 'SLL', 'SOS', 'SPL', 'SRD', 'STD', 'SVC', 'SYP', 'SZL', 'THB', 'TJS', 'TMT', 'TND', 'TOP', 'TRY', 'TTD', 'TVD', 'TWD', 'TZS', 'UAH', 'UGX', 'USD', 'UYU', 'UZS', 'VEF', 'VND', 'VUV', 'WST', 'XAF', 'XCD', 'XDR', 'XOF', 'XPF', 'YER', 'ZAR', 'ZMW', 'ZWD', 'BTC']
|
|
1057
|
-
},
|
|
1058
|
-
quantity: {
|
|
1059
|
-
type: 'number',
|
|
1060
|
-
format: 'float',
|
|
1061
|
-
description: 'Quantity of the invoice item',
|
|
1062
|
-
example: 1
|
|
1063
|
-
},
|
|
1064
|
-
itemDetails: {
|
|
1065
|
-
type: 'string',
|
|
1066
|
-
description: 'Details of the invoice item',
|
|
1067
|
-
example: 'Details of the invoice item'
|
|
1068
|
-
},
|
|
1069
|
-
catalogEffectiveDate: {
|
|
1070
|
-
type: 'string',
|
|
1071
|
-
description: 'Effective date of the catalog',
|
|
1072
|
-
example: '2019-01-01T00:00:00.000Z'
|
|
1073
|
-
},
|
|
1074
|
-
childItems: {
|
|
1075
|
-
type: 'array',
|
|
1076
|
-
items: {
|
|
1077
|
-
oneOf: [
|
|
1078
|
-
{
|
|
1079
|
-
type: 'array'
|
|
1080
|
-
},
|
|
1081
|
-
{
|
|
1082
|
-
type: 'boolean'
|
|
1083
|
-
},
|
|
1084
|
-
{
|
|
1085
|
-
type: 'number'
|
|
1086
|
-
},
|
|
1087
|
-
{
|
|
1088
|
-
type: 'object',
|
|
1089
|
-
additionalProperties: true
|
|
1090
|
-
},
|
|
1091
|
-
{
|
|
1092
|
-
type: 'string'
|
|
1093
|
-
}
|
|
1094
|
-
]
|
|
2063
|
+
maintainers: {
|
|
2064
|
+
type: 'array',
|
|
2065
|
+
items: {
|
|
2066
|
+
type: 'object',
|
|
2067
|
+
properties: {
|
|
2068
|
+
name: {
|
|
2069
|
+
type: 'string',
|
|
2070
|
+
description: 'Maintainer name',
|
|
2071
|
+
example: 'NGINX Team'
|
|
2072
|
+
},
|
|
2073
|
+
email: {
|
|
2074
|
+
type: 'string',
|
|
2075
|
+
description: 'Maintainer email',
|
|
2076
|
+
example: 'support@nginx.org'
|
|
2077
|
+
}
|
|
1095
2078
|
},
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
2079
|
+
required: [
|
|
2080
|
+
'name'
|
|
2081
|
+
],
|
|
2082
|
+
additionalProperties: false
|
|
2083
|
+
},
|
|
2084
|
+
description: 'Chart maintainers'
|
|
2085
|
+
}
|
|
1100
2086
|
},
|
|
1101
|
-
|
|
2087
|
+
required: [
|
|
2088
|
+
'name',
|
|
2089
|
+
'version'
|
|
2090
|
+
],
|
|
2091
|
+
additionalProperties: false,
|
|
2092
|
+
description: 'Chart metadata'
|
|
1102
2093
|
}
|
|
1103
2094
|
},
|
|
2095
|
+
required: [
|
|
2096
|
+
'name',
|
|
2097
|
+
'versions',
|
|
2098
|
+
'version_channels',
|
|
2099
|
+
'latestVersion'
|
|
2100
|
+
],
|
|
1104
2101
|
additionalProperties: false
|
|
1105
2102
|
};
|
|
1106
|
-
export const
|
|
2103
|
+
export const OrganizationCreateInputSchema = {
|
|
1107
2104
|
type: 'object',
|
|
1108
2105
|
properties: {
|
|
1109
|
-
|
|
1110
|
-
type: 'string',
|
|
1111
|
-
maxLength: 63,
|
|
1112
|
-
minLength: 1,
|
|
1113
|
-
pattern: '^[a-z0-9]([-a-z0-9]*[a-z0-9])?$',
|
|
1114
|
-
description: 'Id of the chart listing',
|
|
1115
|
-
example: 'portworx-enterprise-disaster-recovery-baremetal'
|
|
1116
|
-
},
|
|
1117
|
-
name: {
|
|
1118
|
-
type: 'string',
|
|
1119
|
-
description: 'Name of the chart listing',
|
|
1120
|
-
example: 'Portworx Enterprise + Disaster Recovery - Baremetal'
|
|
1121
|
-
},
|
|
1122
|
-
developer: {
|
|
1123
|
-
type: 'string',
|
|
1124
|
-
description: 'Author of the chart listing',
|
|
1125
|
-
example: 'Portworx'
|
|
1126
|
-
},
|
|
1127
|
-
description: {
|
|
1128
|
-
type: 'string',
|
|
1129
|
-
description: 'Short description of the chart listing',
|
|
1130
|
-
example: 'Run Kubernetes with unmatched scalability, availability, and self-service access to any storage'
|
|
1131
|
-
},
|
|
1132
|
-
logoUrl: {
|
|
1133
|
-
type: 'string',
|
|
1134
|
-
description: 'Logo of the chart listing',
|
|
1135
|
-
example: 'https://portworx.com/wp-content/themes/portworx/assets/images/header/portworx-logo.png'
|
|
1136
|
-
},
|
|
1137
|
-
longDescription: {
|
|
2106
|
+
type: {
|
|
1138
2107
|
type: 'string',
|
|
1139
|
-
description: '
|
|
1140
|
-
example: '
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
type: 'string',
|
|
1146
|
-
example: 'AI & Machine Learning'
|
|
1147
|
-
},
|
|
1148
|
-
description: 'Tags of the chart'
|
|
1149
|
-
},
|
|
1150
|
-
version_channels: {
|
|
1151
|
-
type: 'array',
|
|
1152
|
-
items: {
|
|
1153
|
-
type: 'string',
|
|
1154
|
-
pattern: '^(x|X|0|[1-9]\\d*)\\.(x|X|0|[1-9]\\d*)\\.(x|X|0|[1-9]\\d*)(?:-((?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\\.(?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\\+([0-9a-zA-Z-]+(?:\\.[0-9a-zA-Z-]+)*))?$',
|
|
1155
|
-
description: 'Version of the chart.',
|
|
1156
|
-
example: '2.x.x-cfke.x'
|
|
1157
|
-
}
|
|
2108
|
+
description: 'Type of the organization. `business` for legal entities, `personal` for individuals.',
|
|
2109
|
+
example: 'business',
|
|
2110
|
+
enum: [
|
|
2111
|
+
'business',
|
|
2112
|
+
'personal'
|
|
2113
|
+
]
|
|
1158
2114
|
},
|
|
1159
|
-
value_schemas: {
|
|
1160
|
-
type: 'array',
|
|
1161
|
-
items: {
|
|
1162
|
-
type: 'object',
|
|
1163
|
-
properties: {
|
|
1164
|
-
version: {
|
|
1165
|
-
type: 'string',
|
|
1166
|
-
pattern: '^(x|X|0|[1-9]\\d*)\\.(x|X|0|[1-9]\\d*)\\.(x|X|0|[1-9]\\d*)(?:-((?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\\.(?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\\+([0-9a-zA-Z-]+(?:\\.[0-9a-zA-Z-]+)*))?$',
|
|
1167
|
-
description: 'Version of the chart.',
|
|
1168
|
-
example: '2.1.1-cfke.123'
|
|
1169
|
-
},
|
|
1170
|
-
schema: {
|
|
1171
|
-
type: 'string',
|
|
1172
|
-
description: 'Schema of the chart values. JSON Schema as string'
|
|
1173
|
-
},
|
|
1174
|
-
placeholder: {
|
|
1175
|
-
type: 'string',
|
|
1176
|
-
description: 'Schema of the chart values',
|
|
1177
|
-
example: `foo: 1
|
|
1178
|
-
bar: example`
|
|
1179
|
-
}
|
|
1180
|
-
},
|
|
1181
|
-
required: ['version', 'schema', 'placeholder'],
|
|
1182
|
-
additionalProperties: false
|
|
1183
|
-
}
|
|
1184
|
-
}
|
|
1185
|
-
},
|
|
1186
|
-
required: ['id', 'name', 'developer', 'description', 'logoUrl', 'longDescription', 'categories', 'version_channels', 'value_schemas'],
|
|
1187
|
-
additionalProperties: false
|
|
1188
|
-
};
|
|
1189
|
-
export const OrganizationCreateInputSchema = {
|
|
1190
|
-
type: 'object',
|
|
1191
|
-
properties: {
|
|
1192
2115
|
email: {
|
|
1193
2116
|
type: 'string',
|
|
1194
2117
|
format: 'email',
|
|
@@ -1197,11 +2120,13 @@ export const OrganizationCreateInputSchema = {
|
|
|
1197
2120
|
},
|
|
1198
2121
|
first_name: {
|
|
1199
2122
|
type: 'string',
|
|
2123
|
+
minLength: 1,
|
|
1200
2124
|
description: 'First name of the billing contact person.',
|
|
1201
2125
|
example: 'John'
|
|
1202
2126
|
},
|
|
1203
2127
|
last_name: {
|
|
1204
2128
|
type: 'string',
|
|
2129
|
+
minLength: 1,
|
|
1205
2130
|
description: 'Last name of the billing contact person.',
|
|
1206
2131
|
example: 'Doe'
|
|
1207
2132
|
},
|
|
@@ -1219,7 +2144,28 @@ export const OrganizationCreateInputSchema = {
|
|
|
1219
2144
|
description: 'Password for the root account. Must be at least 8 characters long and contain at least one uppercase letter, one lowercase letter, one number and one special character.'
|
|
1220
2145
|
}
|
|
1221
2146
|
},
|
|
1222
|
-
required: [
|
|
2147
|
+
required: [
|
|
2148
|
+
'type',
|
|
2149
|
+
'email',
|
|
2150
|
+
'first_name',
|
|
2151
|
+
'last_name',
|
|
2152
|
+
'company_name',
|
|
2153
|
+
'password'
|
|
2154
|
+
],
|
|
2155
|
+
additionalProperties: false
|
|
2156
|
+
};
|
|
2157
|
+
export const OrganizationCreateOutputSchema = {
|
|
2158
|
+
type: 'object',
|
|
2159
|
+
properties: {
|
|
2160
|
+
id: {
|
|
2161
|
+
type: 'string',
|
|
2162
|
+
description: 'Unique identifier of the newly created organization. Generated by the API and safe to use for client-side tracking immediately.',
|
|
2163
|
+
example: 'organization-id'
|
|
2164
|
+
}
|
|
2165
|
+
},
|
|
2166
|
+
required: [
|
|
2167
|
+
'id'
|
|
2168
|
+
],
|
|
1223
2169
|
additionalProperties: false
|
|
1224
2170
|
};
|
|
1225
2171
|
export const OrganizationSchema = {
|
|
@@ -1238,6 +2184,15 @@ export const OrganizationSchema = {
|
|
|
1238
2184
|
description: 'Name of the legal entity. This name will be used in invoices. Use your first and last name for individual accounts.',
|
|
1239
2185
|
example: 'ACME Corp.'
|
|
1240
2186
|
},
|
|
2187
|
+
type: {
|
|
2188
|
+
type: 'string',
|
|
2189
|
+
description: 'Type of the organization. `business` for legal entities, `personal` for individuals.',
|
|
2190
|
+
example: 'business',
|
|
2191
|
+
enum: [
|
|
2192
|
+
'business',
|
|
2193
|
+
'personal'
|
|
2194
|
+
]
|
|
2195
|
+
},
|
|
1241
2196
|
date_created: {
|
|
1242
2197
|
type: 'string',
|
|
1243
2198
|
format: 'date-time',
|
|
@@ -1279,107 +2234,1021 @@ export const OrganizationSchema = {
|
|
|
1279
2234
|
type: 'array',
|
|
1280
2235
|
items: {
|
|
1281
2236
|
type: 'string',
|
|
1282
|
-
example: 'basic'
|
|
2237
|
+
example: 'basic'
|
|
2238
|
+
},
|
|
2239
|
+
minItems: 0,
|
|
2240
|
+
description: 'List of Cloudfleet cluster tiers available for the organization.'
|
|
2241
|
+
},
|
|
2242
|
+
regions: {
|
|
2243
|
+
type: 'array',
|
|
2244
|
+
items: {
|
|
2245
|
+
type: 'string',
|
|
2246
|
+
example: 'northamerica-central-1'
|
|
2247
|
+
},
|
|
2248
|
+
minItems: 1,
|
|
2249
|
+
description: 'List of Cloudfleet control plane regions available for the organization.'
|
|
2250
|
+
},
|
|
2251
|
+
versions: {
|
|
2252
|
+
type: 'array',
|
|
2253
|
+
items: {
|
|
2254
|
+
type: 'object',
|
|
2255
|
+
properties: {
|
|
2256
|
+
id: {
|
|
2257
|
+
type: 'string',
|
|
2258
|
+
description: 'Id of the control plane version. Used in API calls.',
|
|
2259
|
+
example: '1.33.x-cfke.x'
|
|
2260
|
+
},
|
|
2261
|
+
label: {
|
|
2262
|
+
type: 'string',
|
|
2263
|
+
description: 'Label of the control plane version. Used in frontent UI.',
|
|
2264
|
+
example: '1.33.x (Always latest 1.33 patch version)'
|
|
2265
|
+
}
|
|
2266
|
+
},
|
|
2267
|
+
required: [
|
|
2268
|
+
'id',
|
|
2269
|
+
'label'
|
|
2270
|
+
],
|
|
2271
|
+
additionalProperties: false
|
|
2272
|
+
},
|
|
2273
|
+
minItems: 1,
|
|
2274
|
+
description: 'List of CFKE control plane versions available for the organization.'
|
|
2275
|
+
},
|
|
2276
|
+
cfcr_storage_gb: {
|
|
2277
|
+
type: 'integer',
|
|
2278
|
+
minimum: -1,
|
|
2279
|
+
description: 'Organization-level maximum CFCR storage volume in GB. -1 means no limit.',
|
|
2280
|
+
example: 500
|
|
2281
|
+
}
|
|
2282
|
+
},
|
|
2283
|
+
required: [
|
|
2284
|
+
'basic_clusters_max',
|
|
2285
|
+
'basic_clusters_available',
|
|
2286
|
+
'pro_clusters_max',
|
|
2287
|
+
'pro_clusters_available',
|
|
2288
|
+
'fleets_max',
|
|
2289
|
+
'cluster_tiers',
|
|
2290
|
+
'regions',
|
|
2291
|
+
'versions',
|
|
2292
|
+
'cfcr_storage_gb'
|
|
2293
|
+
],
|
|
2294
|
+
additionalProperties: false,
|
|
2295
|
+
description: 'For security reasons, platform quota is controlled by Cloudfleet and can be updated only by Cloudfleet administrators. Please open a support ticket if you need to change the platform quota.'
|
|
2296
|
+
},
|
|
2297
|
+
status: {
|
|
2298
|
+
type: 'string',
|
|
2299
|
+
description: 'Status of the organization. Can be `active` or `closed`, or `suspended`.',
|
|
2300
|
+
enum: [
|
|
2301
|
+
'active',
|
|
2302
|
+
'closed',
|
|
2303
|
+
'suspended'
|
|
2304
|
+
]
|
|
2305
|
+
},
|
|
2306
|
+
verification: {
|
|
2307
|
+
type: 'string',
|
|
2308
|
+
description: 'Verification status of the organization, which determines the assigned quota. `none` when billing information is incomplete, `submitted` when billing information is complete but the organization is not yet verified, `verified` when the organization is verified.',
|
|
2309
|
+
example: 'verified',
|
|
2310
|
+
enum: [
|
|
2311
|
+
'none',
|
|
2312
|
+
'submitted',
|
|
2313
|
+
'verified'
|
|
2314
|
+
]
|
|
2315
|
+
}
|
|
2316
|
+
},
|
|
2317
|
+
required: [
|
|
2318
|
+
'id',
|
|
2319
|
+
'type',
|
|
2320
|
+
'date_created',
|
|
2321
|
+
'quota',
|
|
2322
|
+
'status',
|
|
2323
|
+
'verification'
|
|
2324
|
+
],
|
|
2325
|
+
additionalProperties: false
|
|
2326
|
+
};
|
|
2327
|
+
export const PaymentMethodSchema = {
|
|
2328
|
+
type: 'object',
|
|
2329
|
+
properties: {
|
|
2330
|
+
id: {
|
|
2331
|
+
type: 'string',
|
|
2332
|
+
description: 'Payment method identifier. Stripe payment method id for cards/SEPA; the constant `bank_transfer` for the invoice/bank-transfer method. Used to set as default or delete the payment method.',
|
|
2333
|
+
example: 'pm_1MtwBwLkdIwHu7ix28a3tqPa'
|
|
2334
|
+
},
|
|
2335
|
+
type: {
|
|
2336
|
+
type: 'string',
|
|
2337
|
+
description: 'Payment method type. `card`, `sepa_debit` for SEPA Direct Debit (business accounts only), or `bank_transfer` for paying invoices by bank transfer.',
|
|
2338
|
+
example: 'card',
|
|
2339
|
+
enum: [
|
|
2340
|
+
'card',
|
|
2341
|
+
'sepa_debit',
|
|
2342
|
+
'bank_transfer'
|
|
2343
|
+
]
|
|
2344
|
+
},
|
|
2345
|
+
last4: {
|
|
2346
|
+
type: 'string',
|
|
2347
|
+
nullable: true,
|
|
2348
|
+
description: 'Last 4 digits of the payment card number, of the bank account (IBAN) for SEPA Direct Debit, or of the destination IBAN for bank transfer.',
|
|
2349
|
+
example: '4242'
|
|
2350
|
+
},
|
|
2351
|
+
exp_month: {
|
|
2352
|
+
type: 'integer',
|
|
2353
|
+
minimum: 1,
|
|
2354
|
+
maximum: 12,
|
|
2355
|
+
nullable: true,
|
|
2356
|
+
description: 'Two-digit number representing the card\'s expiration month. Null for SEPA Direct Debit and bank transfer.',
|
|
2357
|
+
example: 12
|
|
2358
|
+
},
|
|
2359
|
+
exp_year: {
|
|
2360
|
+
type: 'integer',
|
|
2361
|
+
nullable: true,
|
|
2362
|
+
description: 'Four-digit number representing the card\'s expiration year. May be in the past for an expired card still on file. Null for SEPA Direct Debit and bank transfer.',
|
|
2363
|
+
example: 2028
|
|
2364
|
+
},
|
|
2365
|
+
brand: {
|
|
2366
|
+
type: 'string',
|
|
2367
|
+
nullable: true,
|
|
2368
|
+
description: 'Payment card brand as reported by Stripe, e.g. `visa`, `mastercard`, `amex`, `cartes_bancaires`, or `unknown`. Null for SEPA Direct Debit and bank transfer.',
|
|
2369
|
+
example: 'visa'
|
|
2370
|
+
},
|
|
2371
|
+
iban: {
|
|
2372
|
+
type: 'string',
|
|
2373
|
+
nullable: true,
|
|
2374
|
+
description: 'Full destination IBAN to send bank transfers to. Set only for `bank_transfer`; null otherwise. This is Cloudfleet\'s virtual receiving account, shown in full so the customer can pay into it.',
|
|
2375
|
+
example: 'DE11243015658023127510'
|
|
2376
|
+
},
|
|
2377
|
+
bic: {
|
|
2378
|
+
type: 'string',
|
|
2379
|
+
nullable: true,
|
|
2380
|
+
description: 'BIC/SWIFT of the destination bank for bank transfers. Set only for `bank_transfer`; null otherwise.',
|
|
2381
|
+
example: 'SOGEDEFFXXX'
|
|
2382
|
+
},
|
|
2383
|
+
account_holder_name: {
|
|
2384
|
+
type: 'string',
|
|
2385
|
+
nullable: true,
|
|
2386
|
+
description: 'Account holder name of the destination bank account for bank transfers. Set only for `bank_transfer`; null otherwise.',
|
|
2387
|
+
example: 'Cloudfleet GmbH'
|
|
2388
|
+
},
|
|
2389
|
+
is_default: {
|
|
2390
|
+
type: 'boolean',
|
|
2391
|
+
description: 'Whether this payment method is the default used for invoices and active subscriptions. Always false for `bank_transfer` (it cannot be a Stripe default payment method).',
|
|
2392
|
+
example: true
|
|
2393
|
+
}
|
|
2394
|
+
},
|
|
2395
|
+
required: [
|
|
2396
|
+
'id',
|
|
2397
|
+
'type',
|
|
2398
|
+
'last4',
|
|
2399
|
+
'exp_month',
|
|
2400
|
+
'exp_year',
|
|
2401
|
+
'brand',
|
|
2402
|
+
'iban',
|
|
2403
|
+
'bic',
|
|
2404
|
+
'account_holder_name',
|
|
2405
|
+
'is_default'
|
|
2406
|
+
],
|
|
2407
|
+
additionalProperties: false
|
|
2408
|
+
};
|
|
2409
|
+
export const PlatformQuotaSchema = {
|
|
2410
|
+
type: 'object',
|
|
2411
|
+
properties: {
|
|
2412
|
+
basic_clusters_max: {
|
|
2413
|
+
type: 'integer',
|
|
2414
|
+
minimum: 0,
|
|
2415
|
+
description: 'Maximum number of Basic clusters that can be created.',
|
|
2416
|
+
example: 999
|
|
2417
|
+
},
|
|
2418
|
+
basic_clusters_available: {
|
|
2419
|
+
type: 'integer',
|
|
2420
|
+
description: 'Available number of Basic clusters that can be created.',
|
|
2421
|
+
example: 999
|
|
2422
|
+
},
|
|
2423
|
+
pro_clusters_max: {
|
|
2424
|
+
type: 'integer',
|
|
2425
|
+
minimum: 0,
|
|
2426
|
+
description: 'Maximum number of Pro clusters that can be created.',
|
|
2427
|
+
example: 999
|
|
2428
|
+
},
|
|
2429
|
+
pro_clusters_available: {
|
|
2430
|
+
type: 'integer',
|
|
2431
|
+
description: 'Available number of Pro clusters that can be created.',
|
|
2432
|
+
example: 999
|
|
2433
|
+
},
|
|
2434
|
+
fleets_max: {
|
|
2435
|
+
type: 'integer',
|
|
2436
|
+
minimum: 0,
|
|
2437
|
+
description: 'Maximum number of fleets that can be created per cluster.',
|
|
2438
|
+
example: 999
|
|
2439
|
+
},
|
|
2440
|
+
cluster_tiers: {
|
|
2441
|
+
type: 'array',
|
|
2442
|
+
items: {
|
|
2443
|
+
type: 'string',
|
|
2444
|
+
example: 'basic'
|
|
2445
|
+
},
|
|
2446
|
+
minItems: 0,
|
|
2447
|
+
description: 'List of Cloudfleet cluster tiers available for the organization.'
|
|
2448
|
+
},
|
|
2449
|
+
regions: {
|
|
2450
|
+
type: 'array',
|
|
2451
|
+
items: {
|
|
2452
|
+
type: 'string',
|
|
2453
|
+
example: 'northamerica-central-1'
|
|
2454
|
+
},
|
|
2455
|
+
minItems: 1,
|
|
2456
|
+
description: 'List of Cloudfleet control plane regions available for the organization.'
|
|
2457
|
+
},
|
|
2458
|
+
versions: {
|
|
2459
|
+
type: 'array',
|
|
2460
|
+
items: {
|
|
2461
|
+
type: 'object',
|
|
2462
|
+
properties: {
|
|
2463
|
+
id: {
|
|
2464
|
+
type: 'string',
|
|
2465
|
+
description: 'Id of the control plane version. Used in API calls.',
|
|
2466
|
+
example: '1.33.x-cfke.x'
|
|
2467
|
+
},
|
|
2468
|
+
label: {
|
|
2469
|
+
type: 'string',
|
|
2470
|
+
description: 'Label of the control plane version. Used in frontent UI.',
|
|
2471
|
+
example: '1.33.x (Always latest 1.33 patch version)'
|
|
2472
|
+
}
|
|
2473
|
+
},
|
|
2474
|
+
required: [
|
|
2475
|
+
'id',
|
|
2476
|
+
'label'
|
|
2477
|
+
],
|
|
2478
|
+
additionalProperties: false
|
|
2479
|
+
},
|
|
2480
|
+
minItems: 1,
|
|
2481
|
+
description: 'List of CFKE control plane versions available for the organization.'
|
|
2482
|
+
},
|
|
2483
|
+
cfcr_storage_gb: {
|
|
2484
|
+
type: 'integer',
|
|
2485
|
+
minimum: -1,
|
|
2486
|
+
description: 'Organization-level maximum CFCR storage volume in GB. -1 means no limit.',
|
|
2487
|
+
example: 500
|
|
2488
|
+
}
|
|
2489
|
+
},
|
|
2490
|
+
required: [
|
|
2491
|
+
'basic_clusters_max',
|
|
2492
|
+
'basic_clusters_available',
|
|
2493
|
+
'pro_clusters_max',
|
|
2494
|
+
'pro_clusters_available',
|
|
2495
|
+
'fleets_max',
|
|
2496
|
+
'cluster_tiers',
|
|
2497
|
+
'regions',
|
|
2498
|
+
'versions',
|
|
2499
|
+
'cfcr_storage_gb'
|
|
2500
|
+
],
|
|
2501
|
+
additionalProperties: false
|
|
2502
|
+
};
|
|
2503
|
+
export const RegistryRepositorySchema = {
|
|
2504
|
+
type: 'object',
|
|
2505
|
+
properties: {
|
|
2506
|
+
name: {
|
|
2507
|
+
type: 'string',
|
|
2508
|
+
description: 'Repository name.',
|
|
2509
|
+
example: 'my-app'
|
|
2510
|
+
},
|
|
2511
|
+
region: {
|
|
2512
|
+
type: 'string',
|
|
2513
|
+
description: 'Registry region.',
|
|
2514
|
+
example: 'northamerica'
|
|
2515
|
+
},
|
|
2516
|
+
uri: {
|
|
2517
|
+
type: 'string',
|
|
2518
|
+
description: 'Full URI of the repository.',
|
|
2519
|
+
example: 'ssds123e-6651-4e5d-9c04-079f6532989b.northamerica.registry.cloudfleet.dev/my-app'
|
|
2520
|
+
}
|
|
2521
|
+
},
|
|
2522
|
+
required: [
|
|
2523
|
+
'name',
|
|
2524
|
+
'region',
|
|
2525
|
+
'uri'
|
|
2526
|
+
],
|
|
2527
|
+
additionalProperties: false
|
|
2528
|
+
};
|
|
2529
|
+
export const RegistryRepositoryWithTagsSchema = {
|
|
2530
|
+
type: 'object',
|
|
2531
|
+
properties: {
|
|
2532
|
+
name: {
|
|
2533
|
+
type: 'string',
|
|
2534
|
+
description: 'Repository name.',
|
|
2535
|
+
example: 'my-app'
|
|
2536
|
+
},
|
|
2537
|
+
region: {
|
|
2538
|
+
type: 'string',
|
|
2539
|
+
description: 'Registry region.',
|
|
2540
|
+
example: 'northamerica'
|
|
2541
|
+
},
|
|
2542
|
+
uri: {
|
|
2543
|
+
type: 'string',
|
|
2544
|
+
description: 'Full URI of the repository.',
|
|
2545
|
+
example: 'ssds123e-6651-4e5d-9c04-079f6532989b.northamerica.registry.cloudfleet.dev/my-app'
|
|
2546
|
+
},
|
|
2547
|
+
tags: {
|
|
2548
|
+
type: 'array',
|
|
2549
|
+
items: {
|
|
2550
|
+
type: 'object',
|
|
2551
|
+
properties: {
|
|
2552
|
+
name: {
|
|
2553
|
+
type: 'string',
|
|
2554
|
+
description: 'Tag name.',
|
|
2555
|
+
example: 'latest'
|
|
2556
|
+
},
|
|
2557
|
+
size: {
|
|
2558
|
+
type: 'number',
|
|
2559
|
+
format: 'float',
|
|
2560
|
+
description: 'Size of the tag in bytes.',
|
|
2561
|
+
example: 123456789
|
|
2562
|
+
},
|
|
2563
|
+
mediaType: {
|
|
2564
|
+
type: 'string',
|
|
2565
|
+
description: 'Media type of the manifest.',
|
|
2566
|
+
example: 'application/vnd.docker.distribution.manifest.v2+json'
|
|
2567
|
+
},
|
|
2568
|
+
platforms: {
|
|
2569
|
+
type: 'array',
|
|
2570
|
+
items: {
|
|
2571
|
+
type: 'string'
|
|
2572
|
+
},
|
|
2573
|
+
description: 'Array of platform strings for multi-arch images (e.g., linux/amd64, linux/arm64).',
|
|
2574
|
+
example: [
|
|
2575
|
+
'linux/amd64',
|
|
2576
|
+
'linux/arm64'
|
|
2577
|
+
]
|
|
2578
|
+
}
|
|
2579
|
+
},
|
|
2580
|
+
required: [
|
|
2581
|
+
'name',
|
|
2582
|
+
'size'
|
|
2583
|
+
],
|
|
2584
|
+
additionalProperties: false
|
|
2585
|
+
},
|
|
2586
|
+
description: 'Array of tags in the repository.'
|
|
2587
|
+
},
|
|
2588
|
+
totalSize: {
|
|
2589
|
+
type: 'number',
|
|
2590
|
+
format: 'float',
|
|
2591
|
+
description: 'Total size of all tags in the repository in bytes.',
|
|
2592
|
+
example: 987654321
|
|
2593
|
+
}
|
|
2594
|
+
},
|
|
2595
|
+
required: [
|
|
2596
|
+
'name',
|
|
2597
|
+
'region',
|
|
2598
|
+
'uri',
|
|
2599
|
+
'tags',
|
|
2600
|
+
'totalSize'
|
|
2601
|
+
],
|
|
2602
|
+
additionalProperties: false
|
|
2603
|
+
};
|
|
2604
|
+
export const RegistryTagSchema = {
|
|
2605
|
+
type: 'object',
|
|
2606
|
+
properties: {
|
|
2607
|
+
name: {
|
|
2608
|
+
type: 'string',
|
|
2609
|
+
description: 'Tag name.',
|
|
2610
|
+
example: 'latest'
|
|
2611
|
+
},
|
|
2612
|
+
digest: {
|
|
2613
|
+
type: 'string',
|
|
2614
|
+
description: 'Manifest digest for pulling by digest.',
|
|
2615
|
+
example: 'sha256:abcd1234ef567890abcd1234ef567890abcd1234ef567890abcd1234ef567890'
|
|
2616
|
+
},
|
|
2617
|
+
mediaType: {
|
|
2618
|
+
type: 'string',
|
|
2619
|
+
description: 'Media type of the manifest.',
|
|
2620
|
+
example: 'application/vnd.docker.distribution.manifest.v2+json'
|
|
2621
|
+
},
|
|
2622
|
+
config: {
|
|
2623
|
+
type: 'object',
|
|
2624
|
+
properties: {
|
|
2625
|
+
size: {
|
|
2626
|
+
type: 'number',
|
|
2627
|
+
format: 'float',
|
|
2628
|
+
description: 'Size of the config in bytes.',
|
|
2629
|
+
example: 1234
|
|
2630
|
+
}
|
|
2631
|
+
},
|
|
2632
|
+
required: [
|
|
2633
|
+
'size'
|
|
2634
|
+
],
|
|
2635
|
+
additionalProperties: false,
|
|
2636
|
+
description: 'Manifest config metadata.'
|
|
2637
|
+
},
|
|
2638
|
+
layers: {
|
|
2639
|
+
type: 'array',
|
|
2640
|
+
items: {
|
|
2641
|
+
type: 'object',
|
|
2642
|
+
properties: {
|
|
2643
|
+
digest: {
|
|
2644
|
+
type: 'string',
|
|
2645
|
+
description: 'Digest of the layer.',
|
|
2646
|
+
example: 'sha256:abcd1234ef567890abcd1234ef567890abcd1234ef567890abcd1234ef567890'
|
|
2647
|
+
},
|
|
2648
|
+
size: {
|
|
2649
|
+
type: 'number',
|
|
2650
|
+
format: 'float',
|
|
2651
|
+
description: 'Size of the layer in bytes.',
|
|
2652
|
+
example: 5678
|
|
2653
|
+
}
|
|
2654
|
+
},
|
|
2655
|
+
required: [
|
|
2656
|
+
'size'
|
|
2657
|
+
],
|
|
2658
|
+
additionalProperties: false
|
|
2659
|
+
},
|
|
2660
|
+
description: 'Array of layer metadata.'
|
|
2661
|
+
},
|
|
2662
|
+
manifests: {
|
|
2663
|
+
type: 'array',
|
|
2664
|
+
items: {
|
|
2665
|
+
type: 'object',
|
|
2666
|
+
properties: {
|
|
2667
|
+
digest: {
|
|
2668
|
+
type: 'string',
|
|
2669
|
+
description: 'Digest of the manifest.',
|
|
2670
|
+
example: 'sha256:abcd1234ef567890abcd1234ef567890abcd1234ef567890abcd1234ef567890'
|
|
2671
|
+
},
|
|
2672
|
+
platform: {
|
|
2673
|
+
type: 'object',
|
|
2674
|
+
properties: {
|
|
2675
|
+
architecture: {
|
|
2676
|
+
type: 'string',
|
|
2677
|
+
description: 'Architecture of the platform.',
|
|
2678
|
+
example: 'amd64'
|
|
2679
|
+
},
|
|
2680
|
+
os: {
|
|
2681
|
+
type: 'string',
|
|
2682
|
+
description: 'Operating system of the platform.',
|
|
2683
|
+
example: 'linux'
|
|
2684
|
+
},
|
|
2685
|
+
variant: {
|
|
2686
|
+
type: 'string',
|
|
2687
|
+
description: 'Variant of the platform (e.g., v7, v8 for ARM).',
|
|
2688
|
+
example: 'v8'
|
|
2689
|
+
}
|
|
2690
|
+
},
|
|
2691
|
+
required: [
|
|
2692
|
+
'architecture',
|
|
2693
|
+
'os'
|
|
2694
|
+
],
|
|
2695
|
+
additionalProperties: false,
|
|
2696
|
+
description: 'Platform information for the manifest.'
|
|
2697
|
+
},
|
|
2698
|
+
layers: {
|
|
2699
|
+
type: 'array',
|
|
2700
|
+
items: {
|
|
2701
|
+
type: 'object',
|
|
2702
|
+
properties: {
|
|
2703
|
+
digest: {
|
|
2704
|
+
type: 'string',
|
|
2705
|
+
description: 'Digest of the layer.',
|
|
2706
|
+
example: 'sha256:abcd1234ef567890abcd1234ef567890abcd1234ef567890abcd1234ef567890'
|
|
2707
|
+
},
|
|
2708
|
+
size: {
|
|
2709
|
+
type: 'number',
|
|
2710
|
+
format: 'float',
|
|
2711
|
+
description: 'Size of the layer in bytes.',
|
|
2712
|
+
example: 5678
|
|
2713
|
+
}
|
|
2714
|
+
},
|
|
2715
|
+
required: [
|
|
2716
|
+
'size'
|
|
2717
|
+
],
|
|
2718
|
+
additionalProperties: false
|
|
2719
|
+
},
|
|
2720
|
+
description: 'Layers for this platform.'
|
|
2721
|
+
},
|
|
2722
|
+
size: {
|
|
2723
|
+
type: 'number',
|
|
2724
|
+
format: 'float',
|
|
2725
|
+
description: 'Total size of this platform manifest in bytes.',
|
|
2726
|
+
example: 12345678
|
|
2727
|
+
}
|
|
2728
|
+
},
|
|
2729
|
+
required: [
|
|
2730
|
+
'digest'
|
|
2731
|
+
],
|
|
2732
|
+
additionalProperties: false
|
|
2733
|
+
},
|
|
2734
|
+
description: 'Array of manifests for multi-arch images.'
|
|
2735
|
+
},
|
|
2736
|
+
size: {
|
|
2737
|
+
type: 'number',
|
|
2738
|
+
format: 'float',
|
|
2739
|
+
description: 'Total size of the tag in bytes.',
|
|
2740
|
+
example: 123456789
|
|
2741
|
+
},
|
|
2742
|
+
region: {
|
|
2743
|
+
type: 'string',
|
|
2744
|
+
description: 'Registry region.',
|
|
2745
|
+
example: 'northamerica'
|
|
2746
|
+
},
|
|
2747
|
+
repository: {
|
|
2748
|
+
type: 'string',
|
|
2749
|
+
description: 'Repository name.',
|
|
2750
|
+
example: 'my-app'
|
|
2751
|
+
},
|
|
2752
|
+
uri: {
|
|
2753
|
+
type: 'string',
|
|
2754
|
+
description: 'Full URI of the tag.',
|
|
2755
|
+
example: 'ssds123e-6651-4e5d-9c04-079f6532989b.northamerica.registry.cloudfleet.dev/my-app:latest'
|
|
2756
|
+
}
|
|
2757
|
+
},
|
|
2758
|
+
required: [
|
|
2759
|
+
'name',
|
|
2760
|
+
'digest',
|
|
2761
|
+
'size',
|
|
2762
|
+
'region',
|
|
2763
|
+
'repository',
|
|
2764
|
+
'uri'
|
|
2765
|
+
],
|
|
2766
|
+
additionalProperties: false
|
|
2767
|
+
};
|
|
2768
|
+
export const TicketAttachmentSchema = {
|
|
2769
|
+
type: 'object',
|
|
2770
|
+
properties: {
|
|
2771
|
+
id: {
|
|
2772
|
+
type: 'string',
|
|
2773
|
+
description: 'Unique identifier of the attachment (Mongo ObjectId).',
|
|
2774
|
+
example: '60c72b2f9f1b2c001f8e4d3c'
|
|
2775
|
+
},
|
|
2776
|
+
filename: {
|
|
2777
|
+
type: 'string',
|
|
2778
|
+
description: 'Original filename as uploaded.',
|
|
2779
|
+
example: 'debug.log'
|
|
2780
|
+
},
|
|
2781
|
+
content_type: {
|
|
2782
|
+
type: 'string',
|
|
2783
|
+
description: 'MIME content type of the attachment.',
|
|
2784
|
+
example: 'text/plain'
|
|
2785
|
+
},
|
|
2786
|
+
size: {
|
|
2787
|
+
type: 'integer',
|
|
2788
|
+
description: 'Size of the attachment in bytes.',
|
|
2789
|
+
example: 12345
|
|
2790
|
+
}
|
|
2791
|
+
},
|
|
2792
|
+
required: [
|
|
2793
|
+
'id',
|
|
2794
|
+
'filename',
|
|
2795
|
+
'content_type',
|
|
2796
|
+
'size'
|
|
2797
|
+
],
|
|
2798
|
+
additionalProperties: false
|
|
2799
|
+
};
|
|
2800
|
+
export const TicketCreateInputSchema = {
|
|
2801
|
+
type: 'object',
|
|
2802
|
+
properties: {
|
|
2803
|
+
category: {
|
|
2804
|
+
type: 'string',
|
|
2805
|
+
description: 'Ticket category. Drives auto-assignment and may carry a subcategory in `properties`.',
|
|
2806
|
+
example: 'technical',
|
|
2807
|
+
enum: [
|
|
2808
|
+
'billing',
|
|
2809
|
+
'technical',
|
|
2810
|
+
'general'
|
|
2811
|
+
]
|
|
2812
|
+
},
|
|
2813
|
+
body: {
|
|
2814
|
+
type: 'string',
|
|
2815
|
+
maxLength: 50000,
|
|
2816
|
+
minLength: 1,
|
|
2817
|
+
pattern: '\\S',
|
|
2818
|
+
description: 'Initial message body in markdown. There is no separate subject — the first message body is the description.',
|
|
2819
|
+
example: 'My cluster cannot reach the registry. Logs attached.'
|
|
2820
|
+
},
|
|
2821
|
+
properties: {
|
|
2822
|
+
type: 'object',
|
|
2823
|
+
additionalProperties: true,
|
|
2824
|
+
description: 'Free-form key/value bag set by the UI (e.g. `subcategory`, `cluster_id`, `cluster_name`, `region`).',
|
|
2825
|
+
example: {
|
|
2826
|
+
subcategory: 'cluster-question',
|
|
2827
|
+
cluster_id: '60c72b2f9f1b2c001f8e4d3a'
|
|
2828
|
+
}
|
|
2829
|
+
}
|
|
2830
|
+
},
|
|
2831
|
+
required: [
|
|
2832
|
+
'category',
|
|
2833
|
+
'body'
|
|
2834
|
+
],
|
|
2835
|
+
additionalProperties: false
|
|
2836
|
+
};
|
|
2837
|
+
export const TicketListResponseSchema = {
|
|
2838
|
+
type: 'object',
|
|
2839
|
+
properties: {
|
|
2840
|
+
items: {
|
|
2841
|
+
type: 'array',
|
|
2842
|
+
items: {
|
|
2843
|
+
type: 'object',
|
|
2844
|
+
properties: {
|
|
2845
|
+
id: {
|
|
2846
|
+
type: 'string',
|
|
2847
|
+
description: 'Unique identifier of the ticket (Mongo ObjectId).',
|
|
2848
|
+
example: '60c72b2f9f1b2c001f8e4d3a'
|
|
2849
|
+
},
|
|
2850
|
+
status: {
|
|
2851
|
+
type: 'string',
|
|
2852
|
+
description: 'Current state of the ticket.',
|
|
2853
|
+
example: 'waiting_on_us',
|
|
2854
|
+
enum: [
|
|
2855
|
+
'waiting_on_us',
|
|
2856
|
+
'waiting_on_user',
|
|
2857
|
+
'closed'
|
|
2858
|
+
]
|
|
2859
|
+
},
|
|
2860
|
+
category: {
|
|
2861
|
+
type: 'string',
|
|
2862
|
+
description: 'Ticket category.',
|
|
2863
|
+
example: 'technical',
|
|
2864
|
+
enum: [
|
|
2865
|
+
'billing',
|
|
2866
|
+
'technical',
|
|
2867
|
+
'general'
|
|
2868
|
+
]
|
|
2869
|
+
},
|
|
2870
|
+
summary: {
|
|
2871
|
+
type: 'string',
|
|
2872
|
+
description: 'First 128 characters of the initial message body, with markdown formatting and newlines stripped. Used for ticket list previews.',
|
|
2873
|
+
example: 'My cluster cannot reach the registry. Logs attached.'
|
|
2874
|
+
},
|
|
2875
|
+
closed_at: {
|
|
2876
|
+
type: 'string',
|
|
2877
|
+
format: 'date-time',
|
|
2878
|
+
nullable: true,
|
|
2879
|
+
description: 'Closure timestamp. Null while the ticket is open.',
|
|
2880
|
+
example: '2026-05-18T16:08:14.338Z'
|
|
2881
|
+
},
|
|
2882
|
+
date_created: {
|
|
2883
|
+
type: 'string',
|
|
2884
|
+
format: 'date-time',
|
|
2885
|
+
description: 'Creation date of the ticket. ISO 8601 UTC.',
|
|
2886
|
+
example: '2026-05-11T16:08:14.338Z'
|
|
2887
|
+
},
|
|
2888
|
+
date_updated: {
|
|
2889
|
+
type: 'string',
|
|
2890
|
+
format: 'date-time',
|
|
2891
|
+
description: 'Last update date of the ticket. ISO 8601 UTC.',
|
|
2892
|
+
example: '2026-05-11T16:08:14.338Z'
|
|
2893
|
+
},
|
|
2894
|
+
messages: {
|
|
2895
|
+
type: 'array',
|
|
2896
|
+
items: {
|
|
2897
|
+
type: 'object',
|
|
2898
|
+
properties: {
|
|
2899
|
+
id: {
|
|
2900
|
+
type: 'string',
|
|
2901
|
+
description: 'Unique identifier of the message (Mongo ObjectId).',
|
|
2902
|
+
example: '60c72b2f9f1b2c001f8e4d3b'
|
|
2903
|
+
},
|
|
2904
|
+
type: {
|
|
2905
|
+
type: 'string',
|
|
2906
|
+
description: 'Message type. Internal notes are filtered out of customer-facing responses.',
|
|
2907
|
+
example: 'customer_reply',
|
|
2908
|
+
enum: [
|
|
2909
|
+
'customer_reply',
|
|
2910
|
+
'agent_reply'
|
|
2911
|
+
]
|
|
2912
|
+
},
|
|
2913
|
+
body: {
|
|
2914
|
+
type: 'string',
|
|
2915
|
+
description: 'Message body in markdown.',
|
|
2916
|
+
example: 'Thanks — that resolved it on my side.'
|
|
2917
|
+
},
|
|
2918
|
+
author_first_name: {
|
|
2919
|
+
type: 'string',
|
|
2920
|
+
nullable: true,
|
|
2921
|
+
description: 'First name of the author. Null when not provided.',
|
|
2922
|
+
example: 'Jane'
|
|
2923
|
+
},
|
|
2924
|
+
author_last_name: {
|
|
2925
|
+
type: 'string',
|
|
2926
|
+
nullable: true,
|
|
2927
|
+
description: 'Last name of the author. Null when not provided.',
|
|
2928
|
+
example: 'Doe'
|
|
2929
|
+
},
|
|
2930
|
+
attachments: {
|
|
2931
|
+
type: 'array',
|
|
2932
|
+
items: {
|
|
2933
|
+
type: 'object',
|
|
2934
|
+
properties: {
|
|
2935
|
+
id: {
|
|
2936
|
+
type: 'string',
|
|
2937
|
+
description: 'Unique identifier of the attachment (Mongo ObjectId).',
|
|
2938
|
+
example: '60c72b2f9f1b2c001f8e4d3c'
|
|
2939
|
+
},
|
|
2940
|
+
filename: {
|
|
2941
|
+
type: 'string',
|
|
2942
|
+
description: 'Original filename as uploaded.',
|
|
2943
|
+
example: 'debug.log'
|
|
2944
|
+
},
|
|
2945
|
+
content_type: {
|
|
2946
|
+
type: 'string',
|
|
2947
|
+
description: 'MIME content type of the attachment.',
|
|
2948
|
+
example: 'text/plain'
|
|
2949
|
+
},
|
|
2950
|
+
size: {
|
|
2951
|
+
type: 'integer',
|
|
2952
|
+
description: 'Size of the attachment in bytes.',
|
|
2953
|
+
example: 12345
|
|
2954
|
+
}
|
|
2955
|
+
},
|
|
2956
|
+
required: [
|
|
2957
|
+
'id',
|
|
2958
|
+
'filename',
|
|
2959
|
+
'content_type',
|
|
2960
|
+
'size'
|
|
2961
|
+
],
|
|
2962
|
+
additionalProperties: false
|
|
2963
|
+
},
|
|
2964
|
+
description: 'Attachments associated with this message.',
|
|
2965
|
+
example: []
|
|
2966
|
+
},
|
|
2967
|
+
date_created: {
|
|
2968
|
+
type: 'string',
|
|
2969
|
+
format: 'date-time',
|
|
2970
|
+
description: 'Creation date of the message. ISO 8601 UTC.',
|
|
2971
|
+
example: '2026-05-11T16:08:14.338Z'
|
|
2972
|
+
}
|
|
2973
|
+
},
|
|
2974
|
+
required: [
|
|
2975
|
+
'id',
|
|
2976
|
+
'type',
|
|
2977
|
+
'body',
|
|
2978
|
+
'date_created'
|
|
2979
|
+
],
|
|
2980
|
+
additionalProperties: false
|
|
2981
|
+
},
|
|
2982
|
+
description: 'Messages on the ticket in chronological order. Internal notes are excluded. Returned by the detail endpoint only.'
|
|
2983
|
+
}
|
|
2984
|
+
},
|
|
2985
|
+
required: [
|
|
2986
|
+
'id',
|
|
2987
|
+
'status',
|
|
2988
|
+
'category',
|
|
2989
|
+
'summary',
|
|
2990
|
+
'date_created',
|
|
2991
|
+
'date_updated'
|
|
2992
|
+
],
|
|
2993
|
+
additionalProperties: false
|
|
2994
|
+
},
|
|
2995
|
+
description: 'Tickets for the organization, ordered newest first. Messages are omitted from list responses.'
|
|
2996
|
+
}
|
|
2997
|
+
},
|
|
2998
|
+
required: [
|
|
2999
|
+
'items'
|
|
3000
|
+
],
|
|
3001
|
+
additionalProperties: false
|
|
3002
|
+
};
|
|
3003
|
+
export const TicketMessageInputSchema = {
|
|
3004
|
+
type: 'object',
|
|
3005
|
+
properties: {
|
|
3006
|
+
body: {
|
|
3007
|
+
type: 'string',
|
|
3008
|
+
maxLength: 50000,
|
|
3009
|
+
minLength: 1,
|
|
3010
|
+
pattern: '\\S',
|
|
3011
|
+
description: 'Reply body in markdown.',
|
|
3012
|
+
example: 'Thanks — that resolved it on my side.'
|
|
3013
|
+
}
|
|
3014
|
+
},
|
|
3015
|
+
required: [
|
|
3016
|
+
'body'
|
|
3017
|
+
],
|
|
3018
|
+
additionalProperties: false
|
|
3019
|
+
};
|
|
3020
|
+
export const TicketMessageSchema = {
|
|
3021
|
+
type: 'object',
|
|
3022
|
+
properties: {
|
|
3023
|
+
id: {
|
|
3024
|
+
type: 'string',
|
|
3025
|
+
description: 'Unique identifier of the message (Mongo ObjectId).',
|
|
3026
|
+
example: '60c72b2f9f1b2c001f8e4d3b'
|
|
3027
|
+
},
|
|
3028
|
+
type: {
|
|
3029
|
+
type: 'string',
|
|
3030
|
+
description: 'Message type. Internal notes are filtered out of customer-facing responses.',
|
|
3031
|
+
example: 'customer_reply',
|
|
3032
|
+
enum: [
|
|
3033
|
+
'customer_reply',
|
|
3034
|
+
'agent_reply'
|
|
3035
|
+
]
|
|
3036
|
+
},
|
|
3037
|
+
body: {
|
|
3038
|
+
type: 'string',
|
|
3039
|
+
description: 'Message body in markdown.',
|
|
3040
|
+
example: 'Thanks — that resolved it on my side.'
|
|
3041
|
+
},
|
|
3042
|
+
author_first_name: {
|
|
3043
|
+
type: 'string',
|
|
3044
|
+
description: 'First name of the author. Null when not provided.',
|
|
3045
|
+
example: 'Jane'
|
|
3046
|
+
},
|
|
3047
|
+
author_last_name: {
|
|
3048
|
+
type: 'string',
|
|
3049
|
+
description: 'Last name of the author. Null when not provided.',
|
|
3050
|
+
example: 'Doe'
|
|
3051
|
+
},
|
|
3052
|
+
attachments: {
|
|
3053
|
+
type: 'array',
|
|
3054
|
+
items: {
|
|
3055
|
+
type: 'object',
|
|
3056
|
+
properties: {
|
|
3057
|
+
id: {
|
|
3058
|
+
type: 'string',
|
|
3059
|
+
description: 'Unique identifier of the attachment (Mongo ObjectId).',
|
|
3060
|
+
example: '60c72b2f9f1b2c001f8e4d3c'
|
|
1283
3061
|
},
|
|
1284
|
-
|
|
1285
|
-
description: 'List of Cloudfleet cluster tiers available for the organization.'
|
|
1286
|
-
},
|
|
1287
|
-
regions: {
|
|
1288
|
-
type: 'array',
|
|
1289
|
-
items: {
|
|
3062
|
+
filename: {
|
|
1290
3063
|
type: 'string',
|
|
1291
|
-
|
|
3064
|
+
description: 'Original filename as uploaded.',
|
|
3065
|
+
example: 'debug.log'
|
|
1292
3066
|
},
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
type: 'array',
|
|
1298
|
-
items: {
|
|
1299
|
-
type: 'object',
|
|
1300
|
-
properties: {
|
|
1301
|
-
id: {
|
|
1302
|
-
type: 'string',
|
|
1303
|
-
description: 'Id of the control plane version. Used in API calls.',
|
|
1304
|
-
example: '1.29.x-cfke.x'
|
|
1305
|
-
},
|
|
1306
|
-
label: {
|
|
1307
|
-
type: 'string',
|
|
1308
|
-
description: 'Label of the control plane version. Used in frontent UI.',
|
|
1309
|
-
example: '1.29.x (Always latest 1.29 patch version)'
|
|
1310
|
-
}
|
|
1311
|
-
},
|
|
1312
|
-
required: ['id', 'label'],
|
|
1313
|
-
additionalProperties: false
|
|
3067
|
+
content_type: {
|
|
3068
|
+
type: 'string',
|
|
3069
|
+
description: 'MIME content type of the attachment.',
|
|
3070
|
+
example: 'text/plain'
|
|
1314
3071
|
},
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
|
|
3072
|
+
size: {
|
|
3073
|
+
type: 'integer',
|
|
3074
|
+
description: 'Size of the attachment in bytes.',
|
|
3075
|
+
example: 12345
|
|
3076
|
+
}
|
|
3077
|
+
},
|
|
3078
|
+
required: [
|
|
3079
|
+
'id',
|
|
3080
|
+
'filename',
|
|
3081
|
+
'content_type',
|
|
3082
|
+
'size'
|
|
3083
|
+
],
|
|
3084
|
+
additionalProperties: false
|
|
1318
3085
|
},
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
description: 'For security reasons, platform quota is controlled by Cloudfleet and can be updated only by Cloudfleet administrators. Please open a support ticket if you need to change the platform quota.'
|
|
3086
|
+
description: 'Attachments associated with this message.',
|
|
3087
|
+
example: []
|
|
1322
3088
|
},
|
|
1323
|
-
|
|
3089
|
+
date_created: {
|
|
1324
3090
|
type: 'string',
|
|
1325
|
-
|
|
1326
|
-
|
|
3091
|
+
format: 'date-time',
|
|
3092
|
+
description: 'Creation date of the message. ISO 8601 UTC.',
|
|
3093
|
+
example: '2026-05-11T16:08:14.338Z'
|
|
1327
3094
|
}
|
|
1328
3095
|
},
|
|
1329
|
-
required: [
|
|
3096
|
+
required: [
|
|
3097
|
+
'id',
|
|
3098
|
+
'type',
|
|
3099
|
+
'body',
|
|
3100
|
+
'date_created'
|
|
3101
|
+
],
|
|
1330
3102
|
additionalProperties: false
|
|
1331
3103
|
};
|
|
1332
|
-
export const
|
|
3104
|
+
export const TicketSchema = {
|
|
1333
3105
|
type: 'object',
|
|
1334
3106
|
properties: {
|
|
1335
3107
|
id: {
|
|
1336
3108
|
type: 'string',
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
example: 'e94d30ec-a2dd-4dcb-832c-ac2be144ba91'
|
|
3109
|
+
description: 'Unique identifier of the ticket (Mongo ObjectId).',
|
|
3110
|
+
example: '60c72b2f9f1b2c001f8e4d3a'
|
|
1340
3111
|
},
|
|
1341
|
-
|
|
1342
|
-
type: '
|
|
1343
|
-
description: '
|
|
1344
|
-
example:
|
|
3112
|
+
status: {
|
|
3113
|
+
type: 'string',
|
|
3114
|
+
description: 'Current state of the ticket.',
|
|
3115
|
+
example: 'waiting_on_us',
|
|
3116
|
+
enum: [
|
|
3117
|
+
'waiting_on_us',
|
|
3118
|
+
'waiting_on_user',
|
|
3119
|
+
'closed'
|
|
3120
|
+
]
|
|
1345
3121
|
},
|
|
1346
|
-
|
|
3122
|
+
category: {
|
|
1347
3123
|
type: 'string',
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
|
|
3124
|
+
description: 'Ticket category.',
|
|
3125
|
+
example: 'technical',
|
|
3126
|
+
enum: [
|
|
3127
|
+
'billing',
|
|
3128
|
+
'technical',
|
|
3129
|
+
'general'
|
|
3130
|
+
]
|
|
1352
3131
|
},
|
|
1353
|
-
|
|
3132
|
+
summary: {
|
|
1354
3133
|
type: 'string',
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
example: '4242'
|
|
3134
|
+
description: 'First 128 characters of the initial message body, with markdown formatting and newlines stripped. Used for ticket list previews.',
|
|
3135
|
+
example: 'My cluster cannot reach the registry. Logs attached.'
|
|
1358
3136
|
},
|
|
1359
|
-
|
|
1360
|
-
type: '
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
description: "Two-digit number representing the card's expiration month.",
|
|
1365
|
-
example: '12'
|
|
3137
|
+
closed_at: {
|
|
3138
|
+
type: 'string',
|
|
3139
|
+
format: 'date-time',
|
|
3140
|
+
description: 'Closure timestamp. Null while the ticket is open.',
|
|
3141
|
+
example: '2026-05-18T16:08:14.338Z'
|
|
1366
3142
|
},
|
|
1367
|
-
|
|
1368
|
-
type: '
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
example: '2028'
|
|
3143
|
+
date_created: {
|
|
3144
|
+
type: 'string',
|
|
3145
|
+
format: 'date-time',
|
|
3146
|
+
description: 'Creation date of the ticket. ISO 8601 UTC.',
|
|
3147
|
+
example: '2026-05-11T16:08:14.338Z'
|
|
1373
3148
|
},
|
|
1374
|
-
|
|
3149
|
+
date_updated: {
|
|
1375
3150
|
type: 'string',
|
|
1376
|
-
|
|
1377
|
-
description: '
|
|
1378
|
-
example: '
|
|
1379
|
-
|
|
3151
|
+
format: 'date-time',
|
|
3152
|
+
description: 'Last update date of the ticket. ISO 8601 UTC.',
|
|
3153
|
+
example: '2026-05-11T16:08:14.338Z'
|
|
3154
|
+
},
|
|
3155
|
+
messages: {
|
|
3156
|
+
type: 'array',
|
|
3157
|
+
items: {
|
|
3158
|
+
type: 'object',
|
|
3159
|
+
properties: {
|
|
3160
|
+
id: {
|
|
3161
|
+
type: 'string',
|
|
3162
|
+
description: 'Unique identifier of the message (Mongo ObjectId).',
|
|
3163
|
+
example: '60c72b2f9f1b2c001f8e4d3b'
|
|
3164
|
+
},
|
|
3165
|
+
type: {
|
|
3166
|
+
type: 'string',
|
|
3167
|
+
description: 'Message type. Internal notes are filtered out of customer-facing responses.',
|
|
3168
|
+
example: 'customer_reply',
|
|
3169
|
+
enum: [
|
|
3170
|
+
'customer_reply',
|
|
3171
|
+
'agent_reply'
|
|
3172
|
+
]
|
|
3173
|
+
},
|
|
3174
|
+
body: {
|
|
3175
|
+
type: 'string',
|
|
3176
|
+
description: 'Message body in markdown.',
|
|
3177
|
+
example: 'Thanks — that resolved it on my side.'
|
|
3178
|
+
},
|
|
3179
|
+
author_first_name: {
|
|
3180
|
+
type: 'string',
|
|
3181
|
+
description: 'First name of the author. Null when not provided.',
|
|
3182
|
+
example: 'Jane'
|
|
3183
|
+
},
|
|
3184
|
+
author_last_name: {
|
|
3185
|
+
type: 'string',
|
|
3186
|
+
description: 'Last name of the author. Null when not provided.',
|
|
3187
|
+
example: 'Doe'
|
|
3188
|
+
},
|
|
3189
|
+
attachments: {
|
|
3190
|
+
type: 'array',
|
|
3191
|
+
items: {
|
|
3192
|
+
type: 'object',
|
|
3193
|
+
properties: {
|
|
3194
|
+
id: {
|
|
3195
|
+
type: 'string',
|
|
3196
|
+
description: 'Unique identifier of the attachment (Mongo ObjectId).',
|
|
3197
|
+
example: '60c72b2f9f1b2c001f8e4d3c'
|
|
3198
|
+
},
|
|
3199
|
+
filename: {
|
|
3200
|
+
type: 'string',
|
|
3201
|
+
description: 'Original filename as uploaded.',
|
|
3202
|
+
example: 'debug.log'
|
|
3203
|
+
},
|
|
3204
|
+
content_type: {
|
|
3205
|
+
type: 'string',
|
|
3206
|
+
description: 'MIME content type of the attachment.',
|
|
3207
|
+
example: 'text/plain'
|
|
3208
|
+
},
|
|
3209
|
+
size: {
|
|
3210
|
+
type: 'integer',
|
|
3211
|
+
description: 'Size of the attachment in bytes.',
|
|
3212
|
+
example: 12345
|
|
3213
|
+
}
|
|
3214
|
+
},
|
|
3215
|
+
required: [
|
|
3216
|
+
'id',
|
|
3217
|
+
'filename',
|
|
3218
|
+
'content_type',
|
|
3219
|
+
'size'
|
|
3220
|
+
],
|
|
3221
|
+
additionalProperties: false
|
|
3222
|
+
},
|
|
3223
|
+
description: 'Attachments associated with this message.',
|
|
3224
|
+
example: []
|
|
3225
|
+
},
|
|
3226
|
+
date_created: {
|
|
3227
|
+
type: 'string',
|
|
3228
|
+
format: 'date-time',
|
|
3229
|
+
description: 'Creation date of the message. ISO 8601 UTC.',
|
|
3230
|
+
example: '2026-05-11T16:08:14.338Z'
|
|
3231
|
+
}
|
|
3232
|
+
},
|
|
3233
|
+
required: [
|
|
3234
|
+
'id',
|
|
3235
|
+
'type',
|
|
3236
|
+
'body',
|
|
3237
|
+
'date_created'
|
|
3238
|
+
],
|
|
3239
|
+
additionalProperties: false
|
|
3240
|
+
},
|
|
3241
|
+
description: 'Messages on the ticket in chronological order. Internal notes are excluded. Returned by the detail endpoint only.'
|
|
1380
3242
|
}
|
|
1381
3243
|
},
|
|
1382
|
-
required: [
|
|
3244
|
+
required: [
|
|
3245
|
+
'id',
|
|
3246
|
+
'status',
|
|
3247
|
+
'category',
|
|
3248
|
+
'summary',
|
|
3249
|
+
'date_created',
|
|
3250
|
+
'date_updated'
|
|
3251
|
+
],
|
|
1383
3252
|
additionalProperties: false
|
|
1384
3253
|
};
|
|
1385
3254
|
export const TokenCreateInputSchema = {
|
|
@@ -1397,10 +3266,16 @@ export const TokenCreateInputSchema = {
|
|
|
1397
3266
|
type: 'string',
|
|
1398
3267
|
description: 'Role assumed by the token.',
|
|
1399
3268
|
example: 'User',
|
|
1400
|
-
enum: [
|
|
3269
|
+
enum: [
|
|
3270
|
+
'Administrator',
|
|
3271
|
+
'User'
|
|
3272
|
+
]
|
|
1401
3273
|
}
|
|
1402
3274
|
},
|
|
1403
|
-
required: [
|
|
3275
|
+
required: [
|
|
3276
|
+
'name',
|
|
3277
|
+
'role'
|
|
3278
|
+
],
|
|
1404
3279
|
additionalProperties: false
|
|
1405
3280
|
};
|
|
1406
3281
|
export const TokenSchema = {
|
|
@@ -1418,7 +3293,10 @@ export const TokenSchema = {
|
|
|
1418
3293
|
type: 'string',
|
|
1419
3294
|
description: 'Role assumed by the token.',
|
|
1420
3295
|
example: 'User',
|
|
1421
|
-
enum: [
|
|
3296
|
+
enum: [
|
|
3297
|
+
'Administrator',
|
|
3298
|
+
'User'
|
|
3299
|
+
]
|
|
1422
3300
|
},
|
|
1423
3301
|
id: {
|
|
1424
3302
|
type: 'string',
|
|
@@ -1437,7 +3315,11 @@ export const TokenSchema = {
|
|
|
1437
3315
|
example: '2023-12-20T13:53:32.000Z'
|
|
1438
3316
|
}
|
|
1439
3317
|
},
|
|
1440
|
-
required: [
|
|
3318
|
+
required: [
|
|
3319
|
+
'name',
|
|
3320
|
+
'role',
|
|
3321
|
+
'date_created'
|
|
3322
|
+
],
|
|
1441
3323
|
additionalProperties: false
|
|
1442
3324
|
};
|
|
1443
3325
|
export const TokenUpdateInputSchema = {
|
|
@@ -1455,9 +3337,127 @@ export const TokenUpdateInputSchema = {
|
|
|
1455
3337
|
type: 'string',
|
|
1456
3338
|
description: 'Role assumed by the token.',
|
|
1457
3339
|
example: 'User',
|
|
1458
|
-
enum: [
|
|
3340
|
+
enum: [
|
|
3341
|
+
'Administrator',
|
|
3342
|
+
'User'
|
|
3343
|
+
]
|
|
3344
|
+
}
|
|
3345
|
+
},
|
|
3346
|
+
additionalProperties: false
|
|
3347
|
+
};
|
|
3348
|
+
export const UsageFacetsSchema = {
|
|
3349
|
+
type: 'object',
|
|
3350
|
+
properties: {
|
|
3351
|
+
cluster_id: {
|
|
3352
|
+
type: 'array',
|
|
3353
|
+
items: {
|
|
3354
|
+
type: 'string'
|
|
3355
|
+
},
|
|
3356
|
+
description: 'List of unique cluster IDs',
|
|
3357
|
+
example: [
|
|
3358
|
+
'6b5439b1-923a-4f2b-a371-d554e5ea23fa'
|
|
3359
|
+
]
|
|
3360
|
+
},
|
|
3361
|
+
product: {
|
|
3362
|
+
type: 'array',
|
|
3363
|
+
items: {
|
|
3364
|
+
type: 'string'
|
|
3365
|
+
},
|
|
3366
|
+
description: 'List of unique products',
|
|
3367
|
+
example: [
|
|
3368
|
+
'cfke_controlplane',
|
|
3369
|
+
'cfke_connected_nodes'
|
|
3370
|
+
]
|
|
3371
|
+
}
|
|
3372
|
+
},
|
|
3373
|
+
additionalProperties: false
|
|
3374
|
+
};
|
|
3375
|
+
export const UsageResponseSchema = {
|
|
3376
|
+
type: 'object',
|
|
3377
|
+
properties: {
|
|
3378
|
+
data: {
|
|
3379
|
+
type: 'array',
|
|
3380
|
+
items: {
|
|
3381
|
+
type: 'object',
|
|
3382
|
+
properties: {
|
|
3383
|
+
hour: {
|
|
3384
|
+
type: 'string',
|
|
3385
|
+
description: 'Hour of the usage',
|
|
3386
|
+
example: '2019-01-01T00:00:00.000Z'
|
|
3387
|
+
},
|
|
3388
|
+
cluster_id: {
|
|
3389
|
+
type: 'string',
|
|
3390
|
+
description: 'Unique identifier of the kubernetes cluster. UUID v4 string in canonical form',
|
|
3391
|
+
example: '6b5439b1-923a-4f2b-a371-d554e5ea23fa'
|
|
3392
|
+
},
|
|
3393
|
+
product: {
|
|
3394
|
+
type: 'string',
|
|
3395
|
+
description: 'The product the usage is associated with',
|
|
3396
|
+
example: 'cfke_controlplane'
|
|
3397
|
+
},
|
|
3398
|
+
value: {
|
|
3399
|
+
type: 'number',
|
|
3400
|
+
format: 'float',
|
|
3401
|
+
description: 'Consumption',
|
|
3402
|
+
example: 4
|
|
3403
|
+
},
|
|
3404
|
+
price: {
|
|
3405
|
+
type: 'number',
|
|
3406
|
+
format: 'float',
|
|
3407
|
+
description: 'Price per unit',
|
|
3408
|
+
example: 0.01
|
|
3409
|
+
},
|
|
3410
|
+
total: {
|
|
3411
|
+
type: 'number',
|
|
3412
|
+
format: 'float',
|
|
3413
|
+
description: 'Total cost'
|
|
3414
|
+
}
|
|
3415
|
+
},
|
|
3416
|
+
required: [
|
|
3417
|
+
'hour',
|
|
3418
|
+
'cluster_id',
|
|
3419
|
+
'product',
|
|
3420
|
+
'value',
|
|
3421
|
+
'price',
|
|
3422
|
+
'total'
|
|
3423
|
+
],
|
|
3424
|
+
additionalProperties: false
|
|
3425
|
+
},
|
|
3426
|
+
description: 'Usage data'
|
|
3427
|
+
},
|
|
3428
|
+
facets: {
|
|
3429
|
+
type: 'object',
|
|
3430
|
+
properties: {
|
|
3431
|
+
cluster_id: {
|
|
3432
|
+
type: 'array',
|
|
3433
|
+
items: {
|
|
3434
|
+
type: 'string'
|
|
3435
|
+
},
|
|
3436
|
+
description: 'List of unique cluster IDs',
|
|
3437
|
+
example: [
|
|
3438
|
+
'6b5439b1-923a-4f2b-a371-d554e5ea23fa'
|
|
3439
|
+
]
|
|
3440
|
+
},
|
|
3441
|
+
product: {
|
|
3442
|
+
type: 'array',
|
|
3443
|
+
items: {
|
|
3444
|
+
type: 'string'
|
|
3445
|
+
},
|
|
3446
|
+
description: 'List of unique products',
|
|
3447
|
+
example: [
|
|
3448
|
+
'cfke_controlplane',
|
|
3449
|
+
'cfke_connected_nodes'
|
|
3450
|
+
]
|
|
3451
|
+
}
|
|
3452
|
+
},
|
|
3453
|
+
additionalProperties: false,
|
|
3454
|
+
description: 'Facets for filtering'
|
|
1459
3455
|
}
|
|
1460
3456
|
},
|
|
3457
|
+
required: [
|
|
3458
|
+
'data',
|
|
3459
|
+
'facets'
|
|
3460
|
+
],
|
|
1461
3461
|
additionalProperties: false
|
|
1462
3462
|
};
|
|
1463
3463
|
export const UsageSchema = {
|
|
@@ -1470,90 +3470,40 @@ export const UsageSchema = {
|
|
|
1470
3470
|
},
|
|
1471
3471
|
cluster_id: {
|
|
1472
3472
|
type: 'string',
|
|
1473
|
-
format: 'uuid',
|
|
1474
3473
|
description: 'Unique identifier of the kubernetes cluster. UUID v4 string in canonical form',
|
|
1475
3474
|
example: '6b5439b1-923a-4f2b-a371-d554e5ea23fa'
|
|
1476
3475
|
},
|
|
1477
|
-
cluster_tier: {
|
|
1478
|
-
type: 'string',
|
|
1479
|
-
description: 'Tier of the cluster.',
|
|
1480
|
-
example: 'pro',
|
|
1481
|
-
enum: ['basic', 'pro', '']
|
|
1482
|
-
},
|
|
1483
3476
|
product: {
|
|
1484
3477
|
type: 'string',
|
|
1485
3478
|
description: 'The product the usage is associated with',
|
|
1486
|
-
example: 'cfke_controlplane'
|
|
1487
|
-
enum: ['cfke_controlplane', 'cfke_connected_nodes', 'infra_compute', 'infra_storage', 'infra_loadbalancing', 'infra_traffic', 'cfcr_storage']
|
|
1488
|
-
},
|
|
1489
|
-
node_name: {
|
|
1490
|
-
type: 'string',
|
|
1491
|
-
description: 'Name of the Kubernetes node',
|
|
1492
|
-
example: 'flexible-moth-956037384'
|
|
1493
|
-
},
|
|
1494
|
-
sku: {
|
|
1495
|
-
type: 'string',
|
|
1496
|
-
description: 'SKU of the Kubernetes node',
|
|
1497
|
-
example: 'GCP-NORTHAMERICA-NORTHEAST1-A-G1-SMALL-SPOT'
|
|
3479
|
+
example: 'cfke_controlplane'
|
|
1498
3480
|
},
|
|
1499
|
-
|
|
1500
|
-
|
|
1501
|
-
|
|
1502
|
-
|
|
1503
|
-
|
|
1504
|
-
description: 'CPU core count of the node',
|
|
1505
|
-
example: 4
|
|
1506
|
-
},
|
|
1507
|
-
{
|
|
1508
|
-
type: 'string',
|
|
1509
|
-
enum: ['']
|
|
1510
|
-
}
|
|
1511
|
-
]
|
|
3481
|
+
value: {
|
|
3482
|
+
type: 'number',
|
|
3483
|
+
format: 'float',
|
|
3484
|
+
description: 'Consumption',
|
|
3485
|
+
example: 4
|
|
1512
3486
|
},
|
|
1513
3487
|
price: {
|
|
1514
|
-
|
|
1515
|
-
|
|
1516
|
-
|
|
1517
|
-
|
|
1518
|
-
description: 'Price',
|
|
1519
|
-
example: 4
|
|
1520
|
-
},
|
|
1521
|
-
{
|
|
1522
|
-
type: 'string',
|
|
1523
|
-
enum: ['']
|
|
1524
|
-
}
|
|
1525
|
-
]
|
|
1526
|
-
},
|
|
1527
|
-
value: {
|
|
1528
|
-
anyOf: [
|
|
1529
|
-
{
|
|
1530
|
-
type: 'number',
|
|
1531
|
-
format: 'float',
|
|
1532
|
-
description: 'Value',
|
|
1533
|
-
example: 4
|
|
1534
|
-
},
|
|
1535
|
-
{
|
|
1536
|
-
type: 'string',
|
|
1537
|
-
enum: ['']
|
|
1538
|
-
}
|
|
1539
|
-
]
|
|
3488
|
+
type: 'number',
|
|
3489
|
+
format: 'float',
|
|
3490
|
+
description: 'Price per unit',
|
|
3491
|
+
example: 0.01
|
|
1540
3492
|
},
|
|
1541
3493
|
total: {
|
|
1542
|
-
|
|
1543
|
-
|
|
1544
|
-
|
|
1545
|
-
format: 'float',
|
|
1546
|
-
description: 'Total',
|
|
1547
|
-
example: 4
|
|
1548
|
-
},
|
|
1549
|
-
{
|
|
1550
|
-
type: 'string',
|
|
1551
|
-
enum: ['']
|
|
1552
|
-
}
|
|
1553
|
-
]
|
|
3494
|
+
type: 'number',
|
|
3495
|
+
format: 'float',
|
|
3496
|
+
description: 'Total cost'
|
|
1554
3497
|
}
|
|
1555
3498
|
},
|
|
1556
|
-
required: [
|
|
3499
|
+
required: [
|
|
3500
|
+
'hour',
|
|
3501
|
+
'cluster_id',
|
|
3502
|
+
'product',
|
|
3503
|
+
'value',
|
|
3504
|
+
'price',
|
|
3505
|
+
'total'
|
|
3506
|
+
],
|
|
1557
3507
|
additionalProperties: false
|
|
1558
3508
|
};
|
|
1559
3509
|
export const UserCreateInputSchema = {
|
|
@@ -1594,16 +3544,28 @@ export const UserCreateInputSchema = {
|
|
|
1594
3544
|
type: 'string',
|
|
1595
3545
|
description: 'Status of the user. Can be `active` or `inactive`. Inactive users cannot log in or manage organization resources.',
|
|
1596
3546
|
example: 'active',
|
|
1597
|
-
enum: [
|
|
3547
|
+
enum: [
|
|
3548
|
+
'active',
|
|
3549
|
+
'inactive'
|
|
3550
|
+
]
|
|
1598
3551
|
},
|
|
1599
3552
|
role: {
|
|
1600
3553
|
type: 'string',
|
|
1601
|
-
description:
|
|
3554
|
+
description: 'User role. Can be \'Administrator\', \'User\'.',
|
|
1602
3555
|
example: 'User',
|
|
1603
|
-
enum: [
|
|
3556
|
+
enum: [
|
|
3557
|
+
'Administrator',
|
|
3558
|
+
'User'
|
|
3559
|
+
]
|
|
1604
3560
|
}
|
|
1605
3561
|
},
|
|
1606
|
-
required: [
|
|
3562
|
+
required: [
|
|
3563
|
+
'email',
|
|
3564
|
+
'first_name',
|
|
3565
|
+
'last_name',
|
|
3566
|
+
'code',
|
|
3567
|
+
'password'
|
|
3568
|
+
],
|
|
1607
3569
|
additionalProperties: false
|
|
1608
3570
|
};
|
|
1609
3571
|
export const UserSchema = {
|
|
@@ -1631,15 +3593,21 @@ export const UserSchema = {
|
|
|
1631
3593
|
},
|
|
1632
3594
|
role: {
|
|
1633
3595
|
type: 'string',
|
|
1634
|
-
description:
|
|
3596
|
+
description: 'User role. Can be \'Administrator\', \'User\'.',
|
|
1635
3597
|
example: 'User',
|
|
1636
|
-
enum: [
|
|
3598
|
+
enum: [
|
|
3599
|
+
'Administrator',
|
|
3600
|
+
'User'
|
|
3601
|
+
]
|
|
1637
3602
|
},
|
|
1638
3603
|
status: {
|
|
1639
3604
|
type: 'string',
|
|
1640
3605
|
description: 'Status of the user. Can be `active` or `inactive`. Inactive users cannot log in or manage organization resources.',
|
|
1641
3606
|
example: 'active',
|
|
1642
|
-
enum: [
|
|
3607
|
+
enum: [
|
|
3608
|
+
'active',
|
|
3609
|
+
'inactive'
|
|
3610
|
+
]
|
|
1643
3611
|
},
|
|
1644
3612
|
id: {
|
|
1645
3613
|
type: 'string',
|
|
@@ -1654,7 +3622,15 @@ export const UserSchema = {
|
|
|
1654
3622
|
example: '2023-11-02T16:08:14.338Z'
|
|
1655
3623
|
}
|
|
1656
3624
|
},
|
|
1657
|
-
required: [
|
|
3625
|
+
required: [
|
|
3626
|
+
'email',
|
|
3627
|
+
'first_name',
|
|
3628
|
+
'last_name',
|
|
3629
|
+
'role',
|
|
3630
|
+
'status',
|
|
3631
|
+
'id',
|
|
3632
|
+
'date_created'
|
|
3633
|
+
],
|
|
1658
3634
|
additionalProperties: false
|
|
1659
3635
|
};
|
|
1660
3636
|
export const UserUpdateInputSchema = {
|
|
@@ -1682,15 +3658,21 @@ export const UserUpdateInputSchema = {
|
|
|
1682
3658
|
},
|
|
1683
3659
|
role: {
|
|
1684
3660
|
type: 'string',
|
|
1685
|
-
description:
|
|
3661
|
+
description: 'User role. Can be \'Administrator\', \'User\'.',
|
|
1686
3662
|
example: 'User',
|
|
1687
|
-
enum: [
|
|
3663
|
+
enum: [
|
|
3664
|
+
'Administrator',
|
|
3665
|
+
'User'
|
|
3666
|
+
]
|
|
1688
3667
|
},
|
|
1689
3668
|
status: {
|
|
1690
3669
|
type: 'string',
|
|
1691
3670
|
description: 'Status of the user. Can be `active` or `inactive`. Inactive users cannot log in or manage organization resources.',
|
|
1692
3671
|
example: 'active',
|
|
1693
|
-
enum: [
|
|
3672
|
+
enum: [
|
|
3673
|
+
'active',
|
|
3674
|
+
'inactive'
|
|
3675
|
+
]
|
|
1694
3676
|
}
|
|
1695
3677
|
},
|
|
1696
3678
|
additionalProperties: false
|