@cloudfleet/sdk 0.0.1-2bdeb58 → 0.0.1-2c9b8db
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/README.md +26 -2
- package/dist/@tanstack/react-query.gen.d.ts +1159 -0
- package/dist/@tanstack/react-query.gen.d.ts.map +1 -0
- package/dist/@tanstack/react-query.gen.js +1175 -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 +217 -0
- package/dist/client/client.gen.js.map +1 -0
- package/dist/client/index.d.ts +9 -0
- package/dist/client/index.d.ts.map +1 -0
- package/dist/client/index.js +7 -0
- package/dist/client/index.js.map +1 -0
- package/dist/client/types.gen.d.ts +121 -0
- 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.gen.d.ts +38 -0
- package/dist/client/utils.gen.d.ts.map +1 -0
- package/dist/client/utils.gen.js +229 -0
- package/dist/client/utils.gen.js.map +1 -0
- package/dist/client.gen.d.ts +4 -4
- package/dist/client.gen.d.ts.map +1 -1
- package/dist/client.gen.js +2 -4
- package/dist/client.gen.js.map +1 -1
- package/dist/core/auth.gen.d.ts +19 -0
- package/dist/core/auth.gen.d.ts.map +1 -0
- package/dist/core/auth.gen.js +15 -0
- 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.gen.js +58 -0
- package/dist/core/bodySerializer.gen.js.map +1 -0
- package/dist/core/params.gen.d.ts +44 -0
- package/dist/core/params.gen.d.ts.map +1 -0
- package/dist/core/params.gen.js +101 -0
- package/dist/core/params.gen.js.map +1 -0
- package/dist/core/pathSerializer.gen.d.ts +34 -0
- package/dist/core/pathSerializer.gen.d.ts.map +1 -0
- package/dist/core/pathSerializer.gen.js +107 -0
- 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.gen.d.ts +79 -0
- 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 +1739 -746
- package/dist/schemas.gen.d.ts.map +1 -1
- package/dist/schemas.gen.js +3068 -803
- package/dist/schemas.gen.js.map +1 -1
- package/dist/sdk.gen.d.ts +301 -176
- package/dist/sdk.gen.d.ts.map +1 -1
- package/dist/sdk.gen.js +430 -351
- package/dist/sdk.gen.js.map +1 -1
- package/dist/services/kubernetes/api.d.ts +20 -20
- package/dist/types.gen.d.ts +1843 -831
- package/dist/types.gen.d.ts.map +1 -1
- package/dist/zod.gen.d.ts +3887 -2328
- package/dist/zod.gen.d.ts.map +1 -1
- package/dist/zod.gen.js +1562 -852
- package/dist/zod.gen.js.map +1 -1
- package/package.json +28 -9
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',
|
|
@@ -76,12 +80,146 @@ export const BillingContactSchema = {
|
|
|
76
80
|
},
|
|
77
81
|
tax_id_type: {
|
|
78
82
|
type: 'string',
|
|
83
|
+
nullable: true,
|
|
79
84
|
description: 'Type of the tax ID.',
|
|
80
85
|
example: 'de_vat',
|
|
81
|
-
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
|
+
]
|
|
82
216
|
}
|
|
83
217
|
},
|
|
84
|
-
required: [
|
|
218
|
+
required: [
|
|
219
|
+
'type',
|
|
220
|
+
'email',
|
|
221
|
+
'individual_name'
|
|
222
|
+
],
|
|
85
223
|
additionalProperties: false
|
|
86
224
|
};
|
|
87
225
|
export const BillingCreditsSchema = {
|
|
@@ -92,10 +230,25 @@ export const BillingCreditsSchema = {
|
|
|
92
230
|
description: 'Generated unique identifier of the promotional code.',
|
|
93
231
|
example: '7kUZnH7nnKUFfvc4NK2KQF'
|
|
94
232
|
},
|
|
95
|
-
|
|
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: {
|
|
96
249
|
type: 'string',
|
|
97
250
|
format: 'date-time',
|
|
98
|
-
description: '
|
|
251
|
+
description: 'Timestamp when the credit expires or becomes inactive. ISO 8601 date string in the UTC timezone.',
|
|
99
252
|
example: '2023-12-20T13:53:32.000Z'
|
|
100
253
|
},
|
|
101
254
|
code: {
|
|
@@ -108,40 +261,25 @@ export const BillingCreditsSchema = {
|
|
|
108
261
|
description: 'Description of the promotional code.',
|
|
109
262
|
example: '10% off on all products'
|
|
110
263
|
},
|
|
111
|
-
|
|
112
|
-
type: 'array',
|
|
113
|
-
items: {
|
|
114
|
-
type: 'string'
|
|
115
|
-
},
|
|
116
|
-
description: 'List of product SKUs that the promotional code can be used on.',
|
|
117
|
-
example: ['SKU123', 'SKU456']
|
|
118
|
-
},
|
|
119
|
-
type: {
|
|
120
|
-
type: 'string',
|
|
121
|
-
description: 'Type of the promotional code.',
|
|
122
|
-
example: 'credit',
|
|
123
|
-
enum: ['credit', 'discount']
|
|
124
|
-
},
|
|
125
|
-
value: {
|
|
264
|
+
value_total: {
|
|
126
265
|
type: 'number',
|
|
127
266
|
format: 'float',
|
|
128
|
-
description: '
|
|
267
|
+
description: 'Total value of the promotional code.',
|
|
129
268
|
example: 10
|
|
130
269
|
},
|
|
131
|
-
billing_period: {
|
|
132
|
-
type: 'string',
|
|
133
|
-
format: 'date-time',
|
|
134
|
-
description: 'Date of the billing cycle. An ISO 8601 date string in the UTC timezone.',
|
|
135
|
-
example: '2023-12-20T13:53:32.000Z'
|
|
136
|
-
},
|
|
137
270
|
value_remaining: {
|
|
138
271
|
type: 'number',
|
|
139
272
|
format: 'float',
|
|
140
|
-
description: '
|
|
141
|
-
example:
|
|
273
|
+
description: 'Remaining value of the promotional code.',
|
|
274
|
+
example: 8
|
|
142
275
|
}
|
|
143
276
|
},
|
|
144
|
-
required: [
|
|
277
|
+
required: [
|
|
278
|
+
'type',
|
|
279
|
+
'date_start',
|
|
280
|
+
'code',
|
|
281
|
+
'value_total'
|
|
282
|
+
],
|
|
145
283
|
additionalProperties: false
|
|
146
284
|
};
|
|
147
285
|
export const ChartCreateInputSchema = {
|
|
@@ -149,12 +287,12 @@ export const ChartCreateInputSchema = {
|
|
|
149
287
|
properties: {
|
|
150
288
|
values: {
|
|
151
289
|
type: 'string',
|
|
152
|
-
description: 'Values to be used in the chart.'
|
|
290
|
+
description: 'Values to be used in the chart encoded as a JSON string.'
|
|
153
291
|
},
|
|
154
292
|
version_channel: {
|
|
155
293
|
type: 'string',
|
|
156
294
|
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-]+)*))?$',
|
|
157
|
-
description: '
|
|
295
|
+
description: 'Desired version range or channel for the chart.',
|
|
158
296
|
example: '2.x.x-cfke.x'
|
|
159
297
|
},
|
|
160
298
|
name: {
|
|
@@ -182,7 +320,13 @@ export const ChartCreateInputSchema = {
|
|
|
182
320
|
example: 'postgresql'
|
|
183
321
|
}
|
|
184
322
|
},
|
|
185
|
-
required: [
|
|
323
|
+
required: [
|
|
324
|
+
'values',
|
|
325
|
+
'version_channel',
|
|
326
|
+
'name',
|
|
327
|
+
'namespace',
|
|
328
|
+
'chart'
|
|
329
|
+
],
|
|
186
330
|
additionalProperties: false
|
|
187
331
|
};
|
|
188
332
|
export const ChartSchema = {
|
|
@@ -190,12 +334,12 @@ export const ChartSchema = {
|
|
|
190
334
|
properties: {
|
|
191
335
|
values: {
|
|
192
336
|
type: 'string',
|
|
193
|
-
description: 'Values to be used in the chart.'
|
|
337
|
+
description: 'Values to be used in the chart encoded as a JSON string.'
|
|
194
338
|
},
|
|
195
339
|
version_channel: {
|
|
196
340
|
type: 'string',
|
|
197
341
|
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-]+)*))?$',
|
|
198
|
-
description: '
|
|
342
|
+
description: 'Desired version range or channel for the chart.',
|
|
199
343
|
example: '2.x.x-cfke.x'
|
|
200
344
|
},
|
|
201
345
|
name: {
|
|
@@ -224,9 +368,8 @@ export const ChartSchema = {
|
|
|
224
368
|
},
|
|
225
369
|
status: {
|
|
226
370
|
type: 'string',
|
|
227
|
-
description: 'Status of the chart deployment.',
|
|
228
|
-
example: '
|
|
229
|
-
enum: ['InstallSucceeded', 'InstallFailed', 'UpgradeSucceeded', 'UpgradeFailed', 'TestSucceeded', 'TestFailed', 'RollbackSucceeded', 'RollbackFailed', 'UninstallSucceeded', 'UninstallFailed', 'ArtifactFailed', 'DependencyNotReady', 'Progressing']
|
|
371
|
+
description: 'Status of the chart deployment (Flux HelmRelease Ready condition reason, e.g. InstallSucceeded, UpgradeFailed, Progressing).',
|
|
372
|
+
example: 'InstallSucceeded'
|
|
230
373
|
},
|
|
231
374
|
version_current: {
|
|
232
375
|
type: 'string',
|
|
@@ -249,7 +392,18 @@ export const ChartSchema = {
|
|
|
249
392
|
example: true
|
|
250
393
|
}
|
|
251
394
|
},
|
|
252
|
-
required: [
|
|
395
|
+
required: [
|
|
396
|
+
'values',
|
|
397
|
+
'version_channel',
|
|
398
|
+
'name',
|
|
399
|
+
'namespace',
|
|
400
|
+
'chart',
|
|
401
|
+
'status',
|
|
402
|
+
'version_current',
|
|
403
|
+
'created_at',
|
|
404
|
+
'updated_at',
|
|
405
|
+
'ready'
|
|
406
|
+
],
|
|
253
407
|
additionalProperties: false
|
|
254
408
|
};
|
|
255
409
|
export const ChartUpdateInputSchema = {
|
|
@@ -257,16 +411,19 @@ export const ChartUpdateInputSchema = {
|
|
|
257
411
|
properties: {
|
|
258
412
|
values: {
|
|
259
413
|
type: 'string',
|
|
260
|
-
description: 'Values to be used in the chart.'
|
|
414
|
+
description: 'Values to be used in the chart encoded as a JSON string.'
|
|
261
415
|
},
|
|
262
416
|
version_channel: {
|
|
263
417
|
type: 'string',
|
|
264
418
|
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-]+)*))?$',
|
|
265
|
-
description: '
|
|
419
|
+
description: 'Desired version range or channel for the chart.',
|
|
266
420
|
example: '2.x.x-cfke.x'
|
|
267
421
|
}
|
|
268
422
|
},
|
|
269
|
-
required: [
|
|
423
|
+
required: [
|
|
424
|
+
'values',
|
|
425
|
+
'version_channel'
|
|
426
|
+
],
|
|
270
427
|
additionalProperties: false
|
|
271
428
|
};
|
|
272
429
|
export const ClusterCreateInputSchema = {
|
|
@@ -280,29 +437,121 @@ export const ClusterCreateInputSchema = {
|
|
|
280
437
|
description: 'Name of the cluster.',
|
|
281
438
|
example: 'production-cluster'
|
|
282
439
|
},
|
|
283
|
-
region: {
|
|
284
|
-
type: 'string',
|
|
285
|
-
description: 'Cloudfleet control plane region. One of "staging", "northamerica-central-1". This field can not be updated after creation.',
|
|
286
|
-
default: 'staging',
|
|
287
|
-
example: 'northamerica-central-1',
|
|
288
|
-
enum: ['staging', 'northamerica-central-1']
|
|
289
|
-
},
|
|
290
440
|
tier: {
|
|
291
441
|
type: 'string',
|
|
292
442
|
description: 'Tier of the cluster.',
|
|
443
|
+
default: 'basic',
|
|
293
444
|
example: 'pro',
|
|
294
|
-
enum: [
|
|
445
|
+
enum: [
|
|
446
|
+
'basic',
|
|
447
|
+
'pro',
|
|
448
|
+
'enterprise'
|
|
449
|
+
]
|
|
295
450
|
},
|
|
296
451
|
version_channel: {
|
|
297
452
|
type: 'string',
|
|
298
453
|
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-]+)*))?$',
|
|
299
454
|
description: 'Version of the kubernetes cluster.',
|
|
300
455
|
default: '1.x.x-cfke.x',
|
|
301
|
-
example: '1.
|
|
456
|
+
example: '1.x.x-cfke.x'
|
|
457
|
+
},
|
|
458
|
+
release_channel: {
|
|
459
|
+
type: 'string',
|
|
460
|
+
description: 'Release channel for the cluster\'s control plane.',
|
|
461
|
+
default: 'rapid',
|
|
462
|
+
example: 'rapid',
|
|
463
|
+
enum: [
|
|
464
|
+
'rapid',
|
|
465
|
+
'stable',
|
|
466
|
+
'extended'
|
|
467
|
+
]
|
|
468
|
+
},
|
|
469
|
+
features: {
|
|
470
|
+
type: 'object',
|
|
471
|
+
properties: {
|
|
472
|
+
gpu_sharing_strategy: {
|
|
473
|
+
type: 'string',
|
|
474
|
+
description: 'GPU sharing strategy.',
|
|
475
|
+
default: 'none',
|
|
476
|
+
example: 'none',
|
|
477
|
+
enum: [
|
|
478
|
+
'none',
|
|
479
|
+
'mps',
|
|
480
|
+
'time_slicing'
|
|
481
|
+
]
|
|
482
|
+
},
|
|
483
|
+
gpu_max_shared_clients_per_gpu: {
|
|
484
|
+
type: 'integer',
|
|
485
|
+
minimum: 2,
|
|
486
|
+
maximum: 48,
|
|
487
|
+
description: 'Maximum number of pods that may share a single GPU.',
|
|
488
|
+
default: 4,
|
|
489
|
+
example: 10
|
|
490
|
+
},
|
|
491
|
+
cilium_socket_lb_host_namespace_only: {
|
|
492
|
+
type: 'boolean',
|
|
493
|
+
description: 'Restrict Cilium socket load-balancing to the host namespace. Required for the Tailscale operator and Istio.',
|
|
494
|
+
example: false
|
|
495
|
+
}
|
|
496
|
+
},
|
|
497
|
+
additionalProperties: false,
|
|
498
|
+
description: 'Cluster feature toggles.',
|
|
499
|
+
default: {
|
|
500
|
+
gpu_sharing_strategy: 'none',
|
|
501
|
+
gpu_max_shared_clients_per_gpu: 4,
|
|
502
|
+
cilium_socket_lb_host_namespace_only: false
|
|
503
|
+
}
|
|
504
|
+
},
|
|
505
|
+
region: {
|
|
506
|
+
type: 'string',
|
|
507
|
+
description: 'Cloudfleet control plane region. This field can not be updated after creation.',
|
|
508
|
+
example: 'europe-central-1a'
|
|
509
|
+
},
|
|
510
|
+
networking: {
|
|
511
|
+
type: 'object',
|
|
512
|
+
properties: {
|
|
513
|
+
pod_cidr: {
|
|
514
|
+
type: 'string',
|
|
515
|
+
description: 'CIDR block for pod IPs.',
|
|
516
|
+
default: '10.244.0.0/16'
|
|
517
|
+
},
|
|
518
|
+
service_cidr: {
|
|
519
|
+
type: 'string',
|
|
520
|
+
description: 'CIDR block for service IPs.',
|
|
521
|
+
default: '10.96.0.0/12'
|
|
522
|
+
},
|
|
523
|
+
dual_stack: {
|
|
524
|
+
type: 'boolean',
|
|
525
|
+
description: 'Enable IPv4+IPv6 dual-stack networking.'
|
|
526
|
+
},
|
|
527
|
+
pod_cidr_v6: {
|
|
528
|
+
type: 'string',
|
|
529
|
+
description: 'IPv6 pod CIDR. Requires dual_stack.',
|
|
530
|
+
default: '2001:db8:1:2::/48'
|
|
531
|
+
},
|
|
532
|
+
service_cidr_v6: {
|
|
533
|
+
type: 'string',
|
|
534
|
+
description: 'IPv6 service CIDR. Requires dual_stack.',
|
|
535
|
+
default: '2001:db8:1:1::/112'
|
|
536
|
+
}
|
|
537
|
+
},
|
|
538
|
+
additionalProperties: false,
|
|
539
|
+
description: 'Cluster networking configuration. Immutable after creation.',
|
|
540
|
+
default: {
|
|
541
|
+
pod_cidr: '10.244.0.0/16',
|
|
542
|
+
service_cidr: '10.96.0.0/12',
|
|
543
|
+
dual_stack: false,
|
|
544
|
+
pod_cidr_v6: '2001:db8:1:2::/48',
|
|
545
|
+
service_cidr_v6: '2001:db8:1:1::/112'
|
|
546
|
+
}
|
|
302
547
|
}
|
|
303
548
|
},
|
|
304
|
-
required: [
|
|
305
|
-
|
|
549
|
+
required: [
|
|
550
|
+
'name',
|
|
551
|
+
'region'
|
|
552
|
+
],
|
|
553
|
+
additionalProperties: false,
|
|
554
|
+
description: 'Mutable cluster configuration. Applied as a full overwrite: any omitted field is reset to its default rather than left unchanged.'
|
|
306
555
|
};
|
|
307
556
|
export const ClusterJoinInformationSchema = {
|
|
308
557
|
type: 'object',
|
|
@@ -310,8 +559,7 @@ export const ClusterJoinInformationSchema = {
|
|
|
310
559
|
certificate_authority: {
|
|
311
560
|
type: 'string',
|
|
312
561
|
description: 'Certificate authority data for the kubernetes cluster. This is the root certificate authority for the cluster.',
|
|
313
|
-
example:
|
|
314
|
-
MIIC0DCCAbigAwIBAgI...`
|
|
562
|
+
example: '-----BEGIN CERTIFICATE-----\nMIIC0DCCAbigAwIBAgI...'
|
|
315
563
|
},
|
|
316
564
|
endpoint: {
|
|
317
565
|
type: 'string',
|
|
@@ -319,6 +567,16 @@ MIIC0DCCAbigAwIBAgI...`
|
|
|
319
567
|
description: 'Internal URL of the Kubernetes cluster control plane. This is the endpoint that kubelet uses to connect to the cluster.',
|
|
320
568
|
example: 'https://10.31.64.7:6443'
|
|
321
569
|
},
|
|
570
|
+
cluster_dns: {
|
|
571
|
+
type: 'string',
|
|
572
|
+
description: 'Cluster DNS IP address. This is the IP address of the kube-dns service in the cluster.',
|
|
573
|
+
example: '10.96.0.10'
|
|
574
|
+
},
|
|
575
|
+
pod_cidr: {
|
|
576
|
+
type: 'string',
|
|
577
|
+
description: 'Pod CIDR for the cluster. Used to configure iptables rules on nodes to prevent Tailscale routing loops.',
|
|
578
|
+
example: '10.244.0.0/16'
|
|
579
|
+
},
|
|
322
580
|
auth_key: {
|
|
323
581
|
type: 'string',
|
|
324
582
|
description: 'Authentication key for the cluster.',
|
|
@@ -335,7 +593,7 @@ MIIC0DCCAbigAwIBAgI...`
|
|
|
335
593
|
kubernetes: {
|
|
336
594
|
type: 'string',
|
|
337
595
|
description: 'Kubernetes version of the cluster.',
|
|
338
|
-
example: '1.
|
|
596
|
+
example: '1.33.7'
|
|
339
597
|
},
|
|
340
598
|
tailscale: {
|
|
341
599
|
type: 'string',
|
|
@@ -346,9 +604,19 @@ MIIC0DCCAbigAwIBAgI...`
|
|
|
346
604
|
type: 'string',
|
|
347
605
|
description: 'Containerd version of the cluster.',
|
|
348
606
|
example: '1.7.19'
|
|
607
|
+
},
|
|
608
|
+
nvidia_driver: {
|
|
609
|
+
type: 'string',
|
|
610
|
+
description: 'NVIDIA driver version of the cluster.',
|
|
611
|
+
example: '565.0.0'
|
|
349
612
|
}
|
|
350
613
|
},
|
|
351
|
-
required: [
|
|
614
|
+
required: [
|
|
615
|
+
'kubernetes',
|
|
616
|
+
'tailscale',
|
|
617
|
+
'containerd',
|
|
618
|
+
'nvidia_driver'
|
|
619
|
+
],
|
|
352
620
|
additionalProperties: false,
|
|
353
621
|
description: 'Versions of the different components of the cluster.'
|
|
354
622
|
},
|
|
@@ -371,12 +639,25 @@ MIIC0DCCAbigAwIBAgI...`
|
|
|
371
639
|
example: '//iam.googleapis.com/projects/89014267864/locations/global/workloadIdentityPools/cfke/providers/oidc'
|
|
372
640
|
}
|
|
373
641
|
},
|
|
374
|
-
required: [
|
|
642
|
+
required: [
|
|
643
|
+
'metadata_url',
|
|
644
|
+
'aws_role_arn',
|
|
645
|
+
'gcp_workload_identity_provider'
|
|
646
|
+
],
|
|
375
647
|
additionalProperties: false,
|
|
376
|
-
description:
|
|
648
|
+
description: 'OIDC Information for hosts to access to third party API\'s.'
|
|
377
649
|
}
|
|
378
650
|
},
|
|
379
|
-
required: [
|
|
651
|
+
required: [
|
|
652
|
+
'certificate_authority',
|
|
653
|
+
'endpoint',
|
|
654
|
+
'cluster_dns',
|
|
655
|
+
'pod_cidr',
|
|
656
|
+
'auth_key',
|
|
657
|
+
'bootstrap_token',
|
|
658
|
+
'versions',
|
|
659
|
+
'third_party_api_access_config'
|
|
660
|
+
],
|
|
380
661
|
additionalProperties: false
|
|
381
662
|
};
|
|
382
663
|
export const ClusterSchema = {
|
|
@@ -390,25 +671,125 @@ export const ClusterSchema = {
|
|
|
390
671
|
description: 'Name of the cluster.',
|
|
391
672
|
example: 'production-cluster'
|
|
392
673
|
},
|
|
393
|
-
region: {
|
|
394
|
-
type: 'string',
|
|
395
|
-
description: 'Cloudfleet control plane region. One of "staging", "northamerica-central-1". This field can not be updated after creation.',
|
|
396
|
-
default: 'staging',
|
|
397
|
-
example: 'northamerica-central-1',
|
|
398
|
-
enum: ['staging', 'northamerica-central-1']
|
|
399
|
-
},
|
|
400
674
|
tier: {
|
|
401
675
|
type: 'string',
|
|
402
676
|
description: 'Tier of the cluster.',
|
|
677
|
+
default: 'basic',
|
|
403
678
|
example: 'pro',
|
|
404
|
-
enum: [
|
|
679
|
+
enum: [
|
|
680
|
+
'basic',
|
|
681
|
+
'pro',
|
|
682
|
+
'enterprise'
|
|
683
|
+
]
|
|
405
684
|
},
|
|
406
685
|
version_channel: {
|
|
407
686
|
type: 'string',
|
|
408
687
|
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-]+)*))?$',
|
|
409
688
|
description: 'Version of the kubernetes cluster.',
|
|
410
689
|
default: '1.x.x-cfke.x',
|
|
411
|
-
example: '1.
|
|
690
|
+
example: '1.x.x-cfke.x'
|
|
691
|
+
},
|
|
692
|
+
release_channel: {
|
|
693
|
+
type: 'string',
|
|
694
|
+
description: 'Release channel for the cluster\'s control plane.',
|
|
695
|
+
default: 'rapid',
|
|
696
|
+
example: 'rapid',
|
|
697
|
+
enum: [
|
|
698
|
+
'rapid',
|
|
699
|
+
'stable',
|
|
700
|
+
'extended'
|
|
701
|
+
]
|
|
702
|
+
},
|
|
703
|
+
features: {
|
|
704
|
+
type: 'object',
|
|
705
|
+
properties: {
|
|
706
|
+
gpu_sharing_strategy: {
|
|
707
|
+
type: 'string',
|
|
708
|
+
description: 'GPU sharing strategy.',
|
|
709
|
+
default: 'none',
|
|
710
|
+
example: 'none',
|
|
711
|
+
enum: [
|
|
712
|
+
'none',
|
|
713
|
+
'mps',
|
|
714
|
+
'time_slicing'
|
|
715
|
+
]
|
|
716
|
+
},
|
|
717
|
+
gpu_max_shared_clients_per_gpu: {
|
|
718
|
+
type: 'integer',
|
|
719
|
+
minimum: 2,
|
|
720
|
+
maximum: 48,
|
|
721
|
+
description: 'Maximum number of pods that may share a single GPU.',
|
|
722
|
+
default: 4,
|
|
723
|
+
example: 10
|
|
724
|
+
},
|
|
725
|
+
cilium_socket_lb_host_namespace_only: {
|
|
726
|
+
type: 'boolean',
|
|
727
|
+
description: 'Restrict Cilium socket load-balancing to the host namespace. Required for the Tailscale operator and Istio.',
|
|
728
|
+
example: false
|
|
729
|
+
}
|
|
730
|
+
},
|
|
731
|
+
required: [
|
|
732
|
+
'gpu_sharing_strategy',
|
|
733
|
+
'gpu_max_shared_clients_per_gpu',
|
|
734
|
+
'cilium_socket_lb_host_namespace_only'
|
|
735
|
+
],
|
|
736
|
+
additionalProperties: false,
|
|
737
|
+
description: 'Cluster feature toggles.',
|
|
738
|
+
default: {
|
|
739
|
+
gpu_sharing_strategy: 'none',
|
|
740
|
+
gpu_max_shared_clients_per_gpu: 4,
|
|
741
|
+
cilium_socket_lb_host_namespace_only: false
|
|
742
|
+
}
|
|
743
|
+
},
|
|
744
|
+
region: {
|
|
745
|
+
type: 'string',
|
|
746
|
+
description: 'Cloudfleet control plane region. This field can not be updated after creation.',
|
|
747
|
+
example: 'europe-central-1a'
|
|
748
|
+
},
|
|
749
|
+
networking: {
|
|
750
|
+
type: 'object',
|
|
751
|
+
properties: {
|
|
752
|
+
pod_cidr: {
|
|
753
|
+
type: 'string',
|
|
754
|
+
description: 'CIDR block for pod IPs.',
|
|
755
|
+
default: '10.244.0.0/16'
|
|
756
|
+
},
|
|
757
|
+
service_cidr: {
|
|
758
|
+
type: 'string',
|
|
759
|
+
description: 'CIDR block for service IPs.',
|
|
760
|
+
default: '10.96.0.0/12'
|
|
761
|
+
},
|
|
762
|
+
dual_stack: {
|
|
763
|
+
type: 'boolean',
|
|
764
|
+
description: 'Enable IPv4+IPv6 dual-stack networking.'
|
|
765
|
+
},
|
|
766
|
+
pod_cidr_v6: {
|
|
767
|
+
type: 'string',
|
|
768
|
+
description: 'IPv6 pod CIDR. Requires dual_stack.',
|
|
769
|
+
default: '2001:db8:1:2::/48'
|
|
770
|
+
},
|
|
771
|
+
service_cidr_v6: {
|
|
772
|
+
type: 'string',
|
|
773
|
+
description: 'IPv6 service CIDR. Requires dual_stack.',
|
|
774
|
+
default: '2001:db8:1:1::/112'
|
|
775
|
+
}
|
|
776
|
+
},
|
|
777
|
+
required: [
|
|
778
|
+
'pod_cidr',
|
|
779
|
+
'service_cidr',
|
|
780
|
+
'dual_stack',
|
|
781
|
+
'pod_cidr_v6',
|
|
782
|
+
'service_cidr_v6'
|
|
783
|
+
],
|
|
784
|
+
additionalProperties: false,
|
|
785
|
+
description: 'Cluster networking configuration. Immutable after creation.',
|
|
786
|
+
default: {
|
|
787
|
+
pod_cidr: '10.244.0.0/16',
|
|
788
|
+
service_cidr: '10.96.0.0/12',
|
|
789
|
+
dual_stack: false,
|
|
790
|
+
pod_cidr_v6: '2001:db8:1:2::/48',
|
|
791
|
+
service_cidr_v6: '2001:db8:1:1::/112'
|
|
792
|
+
}
|
|
412
793
|
},
|
|
413
794
|
id: {
|
|
414
795
|
type: 'string',
|
|
@@ -418,34 +799,56 @@ export const ClusterSchema = {
|
|
|
418
799
|
},
|
|
419
800
|
status: {
|
|
420
801
|
type: 'string',
|
|
421
|
-
description: 'Status of the cluster.
|
|
422
|
-
example: '
|
|
423
|
-
enum: [
|
|
802
|
+
description: 'Status of the cluster.',
|
|
803
|
+
example: 'deployed',
|
|
804
|
+
enum: [
|
|
805
|
+
'creating',
|
|
806
|
+
'deployed',
|
|
807
|
+
'updating',
|
|
808
|
+
'disabled'
|
|
809
|
+
]
|
|
424
810
|
},
|
|
425
811
|
endpoint: {
|
|
426
812
|
anyOf: [
|
|
427
813
|
{
|
|
428
814
|
type: 'string',
|
|
429
815
|
format: 'uri',
|
|
430
|
-
description: 'URL of the Kubernetes cluster control plane. This is the endpoint that kubectl uses to connect to the cluster.',
|
|
431
|
-
example: 'https://2ae6557c-c61f-49c6-b4c1-a65473470a03.staging.cfke.
|
|
816
|
+
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.',
|
|
817
|
+
example: 'https://2ae6557c-c61f-49c6-b4c1-a65473470a03.staging.cfke.io'
|
|
818
|
+
},
|
|
819
|
+
{
|
|
820
|
+
type: 'string',
|
|
821
|
+
enum: [
|
|
822
|
+
''
|
|
823
|
+
]
|
|
824
|
+
}
|
|
825
|
+
]
|
|
826
|
+
},
|
|
827
|
+
endpoint_public: {
|
|
828
|
+
anyOf: [
|
|
829
|
+
{
|
|
830
|
+
type: 'string',
|
|
831
|
+
format: 'uri',
|
|
832
|
+
description: 'Deprecated alias of `endpoint`; retained for backward compatibility.',
|
|
833
|
+
example: 'https://2ae6557c-c61f-49c6-b4c1-a65473470a03.staging.cfke.io'
|
|
432
834
|
},
|
|
433
835
|
{
|
|
434
836
|
type: 'string',
|
|
435
|
-
enum: [
|
|
837
|
+
enum: [
|
|
838
|
+
''
|
|
839
|
+
]
|
|
436
840
|
}
|
|
437
841
|
]
|
|
438
842
|
},
|
|
439
843
|
certificate_ca: {
|
|
440
844
|
type: 'string',
|
|
441
845
|
description: 'Certificate authority data for the kubernetes cluster. This is the root certificate authority for the cluster.',
|
|
442
|
-
example:
|
|
443
|
-
MIIC0DCCAbigAwIBAgI...`
|
|
846
|
+
example: '-----BEGIN CERTIFICATE-----\nMIIC0DCCAbigAwIBAgI...'
|
|
444
847
|
},
|
|
445
848
|
version_current: {
|
|
446
849
|
type: 'string',
|
|
447
850
|
description: 'Current version of the cluster.',
|
|
448
|
-
example: '1.
|
|
851
|
+
example: '1.33.7-cfke.264'
|
|
449
852
|
},
|
|
450
853
|
created_at: {
|
|
451
854
|
type: 'string',
|
|
@@ -463,8 +866,20 @@ MIIC0DCCAbigAwIBAgI...`
|
|
|
463
866
|
example: true
|
|
464
867
|
}
|
|
465
868
|
},
|
|
466
|
-
required: [
|
|
467
|
-
|
|
869
|
+
required: [
|
|
870
|
+
'name',
|
|
871
|
+
'tier',
|
|
872
|
+
'version_channel',
|
|
873
|
+
'release_channel',
|
|
874
|
+
'features',
|
|
875
|
+
'region',
|
|
876
|
+
'networking',
|
|
877
|
+
'id',
|
|
878
|
+
'status',
|
|
879
|
+
'ready'
|
|
880
|
+
],
|
|
881
|
+
additionalProperties: false,
|
|
882
|
+
description: 'Mutable cluster configuration. Applied as a full overwrite: any omitted field is reset to its default rather than left unchanged.'
|
|
468
883
|
};
|
|
469
884
|
export const ClusterUpdateInputSchema = {
|
|
470
885
|
type: 'object',
|
|
@@ -477,14 +892,77 @@ export const ClusterUpdateInputSchema = {
|
|
|
477
892
|
description: 'Name of the cluster.',
|
|
478
893
|
example: 'production-cluster'
|
|
479
894
|
},
|
|
895
|
+
tier: {
|
|
896
|
+
type: 'string',
|
|
897
|
+
description: 'Tier of the cluster.',
|
|
898
|
+
default: 'basic',
|
|
899
|
+
example: 'pro',
|
|
900
|
+
enum: [
|
|
901
|
+
'basic',
|
|
902
|
+
'pro',
|
|
903
|
+
'enterprise'
|
|
904
|
+
]
|
|
905
|
+
},
|
|
480
906
|
version_channel: {
|
|
481
907
|
type: 'string',
|
|
482
908
|
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-]+)*))?$',
|
|
483
909
|
description: 'Version of the kubernetes cluster.',
|
|
484
|
-
|
|
910
|
+
default: '1.x.x-cfke.x',
|
|
911
|
+
example: '1.x.x-cfke.x'
|
|
912
|
+
},
|
|
913
|
+
release_channel: {
|
|
914
|
+
type: 'string',
|
|
915
|
+
description: 'Release channel for the cluster\'s control plane.',
|
|
916
|
+
default: 'rapid',
|
|
917
|
+
example: 'rapid',
|
|
918
|
+
enum: [
|
|
919
|
+
'rapid',
|
|
920
|
+
'stable',
|
|
921
|
+
'extended'
|
|
922
|
+
]
|
|
923
|
+
},
|
|
924
|
+
features: {
|
|
925
|
+
type: 'object',
|
|
926
|
+
properties: {
|
|
927
|
+
gpu_sharing_strategy: {
|
|
928
|
+
type: 'string',
|
|
929
|
+
description: 'GPU sharing strategy.',
|
|
930
|
+
default: 'none',
|
|
931
|
+
example: 'none',
|
|
932
|
+
enum: [
|
|
933
|
+
'none',
|
|
934
|
+
'mps',
|
|
935
|
+
'time_slicing'
|
|
936
|
+
]
|
|
937
|
+
},
|
|
938
|
+
gpu_max_shared_clients_per_gpu: {
|
|
939
|
+
type: 'integer',
|
|
940
|
+
minimum: 2,
|
|
941
|
+
maximum: 48,
|
|
942
|
+
description: 'Maximum number of pods that may share a single GPU.',
|
|
943
|
+
default: 4,
|
|
944
|
+
example: 10
|
|
945
|
+
},
|
|
946
|
+
cilium_socket_lb_host_namespace_only: {
|
|
947
|
+
type: 'boolean',
|
|
948
|
+
description: 'Restrict Cilium socket load-balancing to the host namespace. Required for the Tailscale operator and Istio.',
|
|
949
|
+
example: false
|
|
950
|
+
}
|
|
951
|
+
},
|
|
952
|
+
additionalProperties: false,
|
|
953
|
+
description: 'Cluster feature toggles.',
|
|
954
|
+
default: {
|
|
955
|
+
gpu_sharing_strategy: 'none',
|
|
956
|
+
gpu_max_shared_clients_per_gpu: 4,
|
|
957
|
+
cilium_socket_lb_host_namespace_only: false
|
|
958
|
+
}
|
|
485
959
|
}
|
|
486
960
|
},
|
|
487
|
-
|
|
961
|
+
required: [
|
|
962
|
+
'name'
|
|
963
|
+
],
|
|
964
|
+
additionalProperties: false,
|
|
965
|
+
description: 'Mutable cluster configuration. Applied as a full overwrite: any omitted field is reset to its default rather than left unchanged.'
|
|
488
966
|
};
|
|
489
967
|
export const FleetCreateInputSchema = {
|
|
490
968
|
type: 'object',
|
|
@@ -493,13 +971,12 @@ export const FleetCreateInputSchema = {
|
|
|
493
971
|
type: 'object',
|
|
494
972
|
properties: {
|
|
495
973
|
cpu: {
|
|
496
|
-
type: '
|
|
497
|
-
format: 'float',
|
|
974
|
+
type: 'integer',
|
|
498
975
|
minimum: 0,
|
|
499
|
-
|
|
976
|
+
maximum: 100000,
|
|
977
|
+
description: 'CPU limit in cores. Maximum 100,000.'
|
|
500
978
|
}
|
|
501
979
|
},
|
|
502
|
-
required: ['cpu'],
|
|
503
980
|
additionalProperties: false,
|
|
504
981
|
description: 'Limits define a set of bounds for provisioning capacity.'
|
|
505
982
|
},
|
|
@@ -507,62 +984,358 @@ export const FleetCreateInputSchema = {
|
|
|
507
984
|
type: 'object',
|
|
508
985
|
properties: {
|
|
509
986
|
enabled: {
|
|
510
|
-
type: 'boolean'
|
|
511
|
-
default: true
|
|
987
|
+
type: 'boolean'
|
|
512
988
|
},
|
|
513
989
|
project: {
|
|
514
990
|
type: 'string',
|
|
515
|
-
|
|
991
|
+
pattern: '^[a-z][a-z0-9-]{4,28}[a-z0-9]$',
|
|
992
|
+
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.',
|
|
993
|
+
example: 'my-cloudfleet-project'
|
|
516
994
|
}
|
|
517
995
|
},
|
|
518
|
-
required: [
|
|
996
|
+
required: [
|
|
997
|
+
'enabled'
|
|
998
|
+
],
|
|
519
999
|
additionalProperties: false
|
|
520
1000
|
},
|
|
521
1001
|
hetzner: {
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
enabled: {
|
|
527
|
-
type: 'boolean',
|
|
528
|
-
default: true
|
|
529
|
-
},
|
|
530
|
-
apiKey: {
|
|
531
|
-
type: 'string'
|
|
532
|
-
}
|
|
533
|
-
},
|
|
534
|
-
additionalProperties: false
|
|
1002
|
+
type: 'object',
|
|
1003
|
+
properties: {
|
|
1004
|
+
enabled: {
|
|
1005
|
+
type: 'boolean'
|
|
535
1006
|
},
|
|
536
|
-
{
|
|
537
|
-
type: '
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
enabled: {
|
|
543
|
-
type: 'boolean',
|
|
544
|
-
default: true
|
|
545
|
-
}
|
|
546
|
-
},
|
|
547
|
-
additionalProperties: false
|
|
1007
|
+
apiKey: {
|
|
1008
|
+
type: 'string',
|
|
1009
|
+
maxLength: 64,
|
|
1010
|
+
minLength: 64,
|
|
1011
|
+
pattern: '^([A-Za-z0-9]{64}|\\*{64})$',
|
|
1012
|
+
description: 'Hetzner Cloud API token with read/write access (64 alphanumeric characters). Write-only: reads return a redacted placeholder, never the token. Omit the field, or send the placeholder back unchanged, to keep the existing key. Send a new value to rotate it.'
|
|
548
1013
|
}
|
|
549
|
-
|
|
1014
|
+
},
|
|
1015
|
+
required: [
|
|
1016
|
+
'enabled'
|
|
1017
|
+
],
|
|
1018
|
+
additionalProperties: false
|
|
550
1019
|
},
|
|
551
1020
|
aws: {
|
|
552
1021
|
type: 'object',
|
|
553
1022
|
properties: {
|
|
554
1023
|
enabled: {
|
|
555
|
-
type: 'boolean'
|
|
556
|
-
default: true
|
|
1024
|
+
type: 'boolean'
|
|
557
1025
|
},
|
|
558
1026
|
controllerRoleArn: {
|
|
559
1027
|
type: 'string',
|
|
560
|
-
|
|
1028
|
+
pattern: '^arn:aws(-[a-z]+)*:iam::\\d{12}:role\\/[\\w+=,.@/-]+$',
|
|
1029
|
+
description: 'AWS IAM role ARN that Karpenter uses to manage resources. Omit when AWS is disabled.',
|
|
1030
|
+
example: 'arn:aws:iam::123456789012:role/Cloudfleet'
|
|
561
1031
|
}
|
|
562
1032
|
},
|
|
563
|
-
required: [
|
|
1033
|
+
required: [
|
|
1034
|
+
'enabled'
|
|
1035
|
+
],
|
|
564
1036
|
additionalProperties: false
|
|
565
1037
|
},
|
|
1038
|
+
constraints: {
|
|
1039
|
+
type: 'object',
|
|
1040
|
+
properties: {
|
|
1041
|
+
'karpenter.sh/capacity-type': {
|
|
1042
|
+
type: 'array',
|
|
1043
|
+
items: {
|
|
1044
|
+
type: 'string',
|
|
1045
|
+
enum: [
|
|
1046
|
+
'on-demand',
|
|
1047
|
+
'spot'
|
|
1048
|
+
]
|
|
1049
|
+
},
|
|
1050
|
+
minItems: 1,
|
|
1051
|
+
description: 'Allowed values for `karpenter.sh/capacity-type`.',
|
|
1052
|
+
default: [
|
|
1053
|
+
'on-demand',
|
|
1054
|
+
'spot'
|
|
1055
|
+
]
|
|
1056
|
+
},
|
|
1057
|
+
'kubernetes.io/arch': {
|
|
1058
|
+
type: 'array',
|
|
1059
|
+
items: {
|
|
1060
|
+
type: 'string',
|
|
1061
|
+
enum: [
|
|
1062
|
+
'amd64',
|
|
1063
|
+
'arm64'
|
|
1064
|
+
]
|
|
1065
|
+
},
|
|
1066
|
+
minItems: 1,
|
|
1067
|
+
description: 'Allowed values for `kubernetes.io/arch`.',
|
|
1068
|
+
default: [
|
|
1069
|
+
'amd64'
|
|
1070
|
+
]
|
|
1071
|
+
},
|
|
1072
|
+
'cfke.io/instance-family': {
|
|
1073
|
+
type: 'array',
|
|
1074
|
+
items: {
|
|
1075
|
+
type: 'string',
|
|
1076
|
+
enum: [
|
|
1077
|
+
'a1',
|
|
1078
|
+
'a2',
|
|
1079
|
+
'a3',
|
|
1080
|
+
'a4',
|
|
1081
|
+
'c1',
|
|
1082
|
+
'c2',
|
|
1083
|
+
'c2d',
|
|
1084
|
+
'c3',
|
|
1085
|
+
'c3d',
|
|
1086
|
+
'c4',
|
|
1087
|
+
'c4a',
|
|
1088
|
+
'c4d',
|
|
1089
|
+
'c5',
|
|
1090
|
+
'c5a',
|
|
1091
|
+
'c5ad',
|
|
1092
|
+
'c5d',
|
|
1093
|
+
'c5n',
|
|
1094
|
+
'c6a',
|
|
1095
|
+
'c6g',
|
|
1096
|
+
'c6gd',
|
|
1097
|
+
'c6gn',
|
|
1098
|
+
'c6i',
|
|
1099
|
+
'c6id',
|
|
1100
|
+
'c6in',
|
|
1101
|
+
'c7a',
|
|
1102
|
+
'c7g',
|
|
1103
|
+
'c7gd',
|
|
1104
|
+
'c7gn',
|
|
1105
|
+
'c7i',
|
|
1106
|
+
'c7i-flex',
|
|
1107
|
+
'c8g',
|
|
1108
|
+
'c8gd',
|
|
1109
|
+
'cax',
|
|
1110
|
+
'ccx',
|
|
1111
|
+
'cpx',
|
|
1112
|
+
'cx',
|
|
1113
|
+
'd2',
|
|
1114
|
+
'd3',
|
|
1115
|
+
'd3en',
|
|
1116
|
+
'dl1',
|
|
1117
|
+
'dl2q',
|
|
1118
|
+
'e2',
|
|
1119
|
+
'f1',
|
|
1120
|
+
'f2',
|
|
1121
|
+
'g1',
|
|
1122
|
+
'g2',
|
|
1123
|
+
'g4ad',
|
|
1124
|
+
'g4dn',
|
|
1125
|
+
'g5',
|
|
1126
|
+
'g5g',
|
|
1127
|
+
'g6',
|
|
1128
|
+
'g6e',
|
|
1129
|
+
'gr6',
|
|
1130
|
+
'h1',
|
|
1131
|
+
'h3',
|
|
1132
|
+
'hpc6a',
|
|
1133
|
+
'hpc6id',
|
|
1134
|
+
'hpc7a',
|
|
1135
|
+
'hpc7g',
|
|
1136
|
+
'i2',
|
|
1137
|
+
'i3',
|
|
1138
|
+
'i3en',
|
|
1139
|
+
'i4g',
|
|
1140
|
+
'i4i',
|
|
1141
|
+
'i7i',
|
|
1142
|
+
'i7ie',
|
|
1143
|
+
'i8g',
|
|
1144
|
+
'im4gn',
|
|
1145
|
+
'inf1',
|
|
1146
|
+
'inf2',
|
|
1147
|
+
'is4gen',
|
|
1148
|
+
'm1',
|
|
1149
|
+
'm2',
|
|
1150
|
+
'm3',
|
|
1151
|
+
'm4',
|
|
1152
|
+
'm5',
|
|
1153
|
+
'm5a',
|
|
1154
|
+
'm5ad',
|
|
1155
|
+
'm5d',
|
|
1156
|
+
'm5dn',
|
|
1157
|
+
'm5n',
|
|
1158
|
+
'm5zn',
|
|
1159
|
+
'm6a',
|
|
1160
|
+
'm6g',
|
|
1161
|
+
'm6gd',
|
|
1162
|
+
'm6i',
|
|
1163
|
+
'm6id',
|
|
1164
|
+
'm6idn',
|
|
1165
|
+
'm6in',
|
|
1166
|
+
'm7a',
|
|
1167
|
+
'm7g',
|
|
1168
|
+
'm7gd',
|
|
1169
|
+
'm7i',
|
|
1170
|
+
'm7i-flex',
|
|
1171
|
+
'm8g',
|
|
1172
|
+
'm8gd',
|
|
1173
|
+
'n1',
|
|
1174
|
+
'n2',
|
|
1175
|
+
'n2d',
|
|
1176
|
+
'n4',
|
|
1177
|
+
'p3',
|
|
1178
|
+
'p3dn',
|
|
1179
|
+
'p4d',
|
|
1180
|
+
'p4de',
|
|
1181
|
+
'p5',
|
|
1182
|
+
'p5e',
|
|
1183
|
+
'p5en',
|
|
1184
|
+
'p6-b200',
|
|
1185
|
+
'r3',
|
|
1186
|
+
'r4',
|
|
1187
|
+
'r5',
|
|
1188
|
+
'r5a',
|
|
1189
|
+
'r5ad',
|
|
1190
|
+
'r5b',
|
|
1191
|
+
'r5d',
|
|
1192
|
+
'r5dn',
|
|
1193
|
+
'r5n',
|
|
1194
|
+
'r6a',
|
|
1195
|
+
'r6g',
|
|
1196
|
+
'r6gd',
|
|
1197
|
+
'r6i',
|
|
1198
|
+
'r6id',
|
|
1199
|
+
'r6idn',
|
|
1200
|
+
'r6in',
|
|
1201
|
+
'r7a',
|
|
1202
|
+
'r7g',
|
|
1203
|
+
'r7gd',
|
|
1204
|
+
'r7i',
|
|
1205
|
+
'r7iz',
|
|
1206
|
+
'r8g',
|
|
1207
|
+
'r8gd',
|
|
1208
|
+
't2',
|
|
1209
|
+
't2a',
|
|
1210
|
+
't2d',
|
|
1211
|
+
't3',
|
|
1212
|
+
't3a',
|
|
1213
|
+
't4g',
|
|
1214
|
+
'trn1',
|
|
1215
|
+
'trn1n',
|
|
1216
|
+
'u-3tb1',
|
|
1217
|
+
'u-6tb1',
|
|
1218
|
+
'u7i-12tb',
|
|
1219
|
+
'u7i-6tb',
|
|
1220
|
+
'u7i-8tb',
|
|
1221
|
+
'u7in-16tb',
|
|
1222
|
+
'u7in-24tb',
|
|
1223
|
+
'u7in-32tb',
|
|
1224
|
+
'vt1',
|
|
1225
|
+
'x1',
|
|
1226
|
+
'x1e',
|
|
1227
|
+
'x2gd',
|
|
1228
|
+
'x2idn',
|
|
1229
|
+
'x2iedn',
|
|
1230
|
+
'x2iezn',
|
|
1231
|
+
'x4',
|
|
1232
|
+
'x8g',
|
|
1233
|
+
'z1d',
|
|
1234
|
+
'z3'
|
|
1235
|
+
]
|
|
1236
|
+
},
|
|
1237
|
+
description: 'Allowed values for `cfke.io/instance-family`.',
|
|
1238
|
+
default: []
|
|
1239
|
+
},
|
|
1240
|
+
'topology.kubernetes.io/region': {
|
|
1241
|
+
type: 'array',
|
|
1242
|
+
items: {
|
|
1243
|
+
type: 'string',
|
|
1244
|
+
enum: [
|
|
1245
|
+
'africa-south1',
|
|
1246
|
+
'ap-northeast-1',
|
|
1247
|
+
'ap-northeast-2',
|
|
1248
|
+
'ap-northeast-3',
|
|
1249
|
+
'ap-south-1',
|
|
1250
|
+
'ap-southeast-1',
|
|
1251
|
+
'ap-southeast-2',
|
|
1252
|
+
'ash',
|
|
1253
|
+
'asia-east1',
|
|
1254
|
+
'asia-east2',
|
|
1255
|
+
'asia-northeast1',
|
|
1256
|
+
'asia-northeast2',
|
|
1257
|
+
'asia-northeast3',
|
|
1258
|
+
'asia-south1',
|
|
1259
|
+
'asia-south2',
|
|
1260
|
+
'asia-southeast1',
|
|
1261
|
+
'asia-southeast2',
|
|
1262
|
+
'australia-southeast1',
|
|
1263
|
+
'australia-southeast2',
|
|
1264
|
+
'ca-central-1',
|
|
1265
|
+
'eu-central-1',
|
|
1266
|
+
'eu-central-2',
|
|
1267
|
+
'eu-north-1',
|
|
1268
|
+
'eu-west-1',
|
|
1269
|
+
'eu-west-2',
|
|
1270
|
+
'eu-west-3',
|
|
1271
|
+
'europe-central2',
|
|
1272
|
+
'europe-north1',
|
|
1273
|
+
'europe-southwest1',
|
|
1274
|
+
'europe-west1',
|
|
1275
|
+
'europe-west10',
|
|
1276
|
+
'europe-west12',
|
|
1277
|
+
'europe-west2',
|
|
1278
|
+
'europe-west3',
|
|
1279
|
+
'europe-west4',
|
|
1280
|
+
'europe-west6',
|
|
1281
|
+
'europe-west8',
|
|
1282
|
+
'europe-west9',
|
|
1283
|
+
'fsn1',
|
|
1284
|
+
'hel1',
|
|
1285
|
+
'hil',
|
|
1286
|
+
'me-central1',
|
|
1287
|
+
'me-central2',
|
|
1288
|
+
'me-west1',
|
|
1289
|
+
'nbg1',
|
|
1290
|
+
'northamerica-northeast1',
|
|
1291
|
+
'northamerica-northeast2',
|
|
1292
|
+
'sa-east-1',
|
|
1293
|
+
'sin',
|
|
1294
|
+
'southamerica-east1',
|
|
1295
|
+
'southamerica-west1',
|
|
1296
|
+
'us-central1',
|
|
1297
|
+
'us-east-1',
|
|
1298
|
+
'us-east-2',
|
|
1299
|
+
'us-east1',
|
|
1300
|
+
'us-east4',
|
|
1301
|
+
'us-east5',
|
|
1302
|
+
'us-south1',
|
|
1303
|
+
'us-west-1',
|
|
1304
|
+
'us-west-2',
|
|
1305
|
+
'us-west1',
|
|
1306
|
+
'us-west2',
|
|
1307
|
+
'us-west3',
|
|
1308
|
+
'us-west4'
|
|
1309
|
+
]
|
|
1310
|
+
},
|
|
1311
|
+
description: 'Allowed values for `topology.kubernetes.io/region`.',
|
|
1312
|
+
default: []
|
|
1313
|
+
}
|
|
1314
|
+
},
|
|
1315
|
+
additionalProperties: false,
|
|
1316
|
+
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.',
|
|
1317
|
+
default: {
|
|
1318
|
+
'karpenter.sh/capacity-type': [
|
|
1319
|
+
'on-demand',
|
|
1320
|
+
'spot'
|
|
1321
|
+
],
|
|
1322
|
+
'kubernetes.io/arch': [
|
|
1323
|
+
'amd64'
|
|
1324
|
+
],
|
|
1325
|
+
'cfke.io/instance-family': [],
|
|
1326
|
+
'topology.kubernetes.io/region': []
|
|
1327
|
+
}
|
|
1328
|
+
},
|
|
1329
|
+
scalingProfile: {
|
|
1330
|
+
type: 'string',
|
|
1331
|
+
description: 'Controls scale-up / scale-down responsiveness. `aggressive` prioritizes cost-optimization. `conservative` prioritizes stability of the fleet. Full-overwrite: omit to reset to the default (`conservative`).',
|
|
1332
|
+
default: 'conservative',
|
|
1333
|
+
example: 'conservative',
|
|
1334
|
+
enum: [
|
|
1335
|
+
'aggressive',
|
|
1336
|
+
'conservative'
|
|
1337
|
+
]
|
|
1338
|
+
},
|
|
566
1339
|
id: {
|
|
567
1340
|
type: 'string',
|
|
568
1341
|
maxLength: 63,
|
|
@@ -570,15 +1343,13 @@ export const FleetCreateInputSchema = {
|
|
|
570
1343
|
pattern: '^[a-z0-9]([-a-z0-9]*[a-z0-9])?$',
|
|
571
1344
|
description: 'Unique identifier of the kubernetes fleet.',
|
|
572
1345
|
example: 'new-clouds-fleet'
|
|
573
|
-
},
|
|
574
|
-
type: {
|
|
575
|
-
type: 'string',
|
|
576
|
-
description: 'Specifies the fleet type: infrastructure managed by Cloudfleet or Connected Fleets.',
|
|
577
|
-
enum: ['managed', 'connected']
|
|
578
1346
|
}
|
|
579
1347
|
},
|
|
580
|
-
required: [
|
|
581
|
-
|
|
1348
|
+
required: [
|
|
1349
|
+
'id'
|
|
1350
|
+
],
|
|
1351
|
+
additionalProperties: false,
|
|
1352
|
+
description: 'Mutable fleet configuration. Applied as a full overwrite: any omitted field is reset to its default rather than left unchanged.'
|
|
582
1353
|
};
|
|
583
1354
|
export const FleetSchema = {
|
|
584
1355
|
type: 'object',
|
|
@@ -587,13 +1358,12 @@ export const FleetSchema = {
|
|
|
587
1358
|
type: 'object',
|
|
588
1359
|
properties: {
|
|
589
1360
|
cpu: {
|
|
590
|
-
type: '
|
|
591
|
-
format: 'float',
|
|
1361
|
+
type: 'integer',
|
|
592
1362
|
minimum: 0,
|
|
593
|
-
|
|
1363
|
+
maximum: 100000,
|
|
1364
|
+
description: 'CPU limit in cores. Maximum 100,000.'
|
|
594
1365
|
}
|
|
595
1366
|
},
|
|
596
|
-
required: ['cpu'],
|
|
597
1367
|
additionalProperties: false,
|
|
598
1368
|
description: 'Limits define a set of bounds for provisioning capacity.'
|
|
599
1369
|
},
|
|
@@ -601,93 +1371,413 @@ export const FleetSchema = {
|
|
|
601
1371
|
type: 'object',
|
|
602
1372
|
properties: {
|
|
603
1373
|
enabled: {
|
|
604
|
-
type: 'boolean'
|
|
605
|
-
default: true
|
|
1374
|
+
type: 'boolean'
|
|
606
1375
|
},
|
|
607
1376
|
project: {
|
|
608
1377
|
type: 'string',
|
|
609
|
-
|
|
1378
|
+
pattern: '^[a-z][a-z0-9-]{4,28}[a-z0-9]$',
|
|
1379
|
+
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.',
|
|
1380
|
+
example: 'my-cloudfleet-project'
|
|
610
1381
|
}
|
|
611
1382
|
},
|
|
612
|
-
required: [
|
|
1383
|
+
required: [
|
|
1384
|
+
'enabled'
|
|
1385
|
+
],
|
|
613
1386
|
additionalProperties: false
|
|
614
1387
|
},
|
|
615
1388
|
hetzner: {
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
enabled: {
|
|
621
|
-
type: 'boolean',
|
|
622
|
-
default: true
|
|
623
|
-
},
|
|
624
|
-
apiKey: {
|
|
625
|
-
type: 'string'
|
|
626
|
-
}
|
|
627
|
-
},
|
|
628
|
-
additionalProperties: false
|
|
1389
|
+
type: 'object',
|
|
1390
|
+
properties: {
|
|
1391
|
+
enabled: {
|
|
1392
|
+
type: 'boolean'
|
|
629
1393
|
},
|
|
630
|
-
{
|
|
631
|
-
type: '
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
type: 'string'
|
|
635
|
-
},
|
|
636
|
-
enabled: {
|
|
637
|
-
type: 'boolean',
|
|
638
|
-
default: true
|
|
639
|
-
}
|
|
640
|
-
},
|
|
641
|
-
additionalProperties: false
|
|
1394
|
+
apiKey: {
|
|
1395
|
+
type: 'string',
|
|
1396
|
+
pattern: '^\\*{64}$',
|
|
1397
|
+
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.'
|
|
642
1398
|
}
|
|
643
|
-
|
|
1399
|
+
},
|
|
1400
|
+
required: [
|
|
1401
|
+
'enabled'
|
|
1402
|
+
],
|
|
1403
|
+
additionalProperties: false
|
|
644
1404
|
},
|
|
645
1405
|
aws: {
|
|
646
1406
|
type: 'object',
|
|
647
1407
|
properties: {
|
|
648
1408
|
enabled: {
|
|
649
|
-
type: 'boolean'
|
|
650
|
-
default: true
|
|
1409
|
+
type: 'boolean'
|
|
651
1410
|
},
|
|
652
1411
|
controllerRoleArn: {
|
|
653
1412
|
type: 'string',
|
|
654
|
-
|
|
1413
|
+
pattern: '^arn:aws(-[a-z]+)*:iam::\\d{12}:role\\/[\\w+=,.@/-]+$',
|
|
1414
|
+
description: 'AWS IAM role ARN that Karpenter uses to manage resources. Omit when AWS is disabled.',
|
|
1415
|
+
example: 'arn:aws:iam::123456789012:role/Cloudfleet'
|
|
655
1416
|
}
|
|
656
1417
|
},
|
|
657
|
-
required: [
|
|
1418
|
+
required: [
|
|
1419
|
+
'enabled'
|
|
1420
|
+
],
|
|
658
1421
|
additionalProperties: false
|
|
659
1422
|
},
|
|
660
|
-
|
|
661
|
-
type: 'string',
|
|
662
|
-
maxLength: 63,
|
|
663
|
-
minLength: 1,
|
|
664
|
-
pattern: '^[a-z0-9]([-a-z0-9]*[a-z0-9])?$',
|
|
665
|
-
description: 'Unique identifier of the kubernetes fleet.',
|
|
666
|
-
example: 'new-clouds-fleet'
|
|
667
|
-
},
|
|
668
|
-
type: {
|
|
669
|
-
type: 'string',
|
|
670
|
-
description: 'Specifies the fleet type: infrastructure managed by Cloudfleet or Connected Fleets.',
|
|
671
|
-
enum: ['managed', 'connected']
|
|
672
|
-
}
|
|
673
|
-
},
|
|
674
|
-
required: ['id', 'type'],
|
|
675
|
-
additionalProperties: false
|
|
676
|
-
};
|
|
677
|
-
export const FleetUpdateInputSchema = {
|
|
678
|
-
type: 'object',
|
|
679
|
-
properties: {
|
|
680
|
-
limits: {
|
|
1423
|
+
constraints: {
|
|
681
1424
|
type: 'object',
|
|
682
1425
|
properties: {
|
|
683
|
-
|
|
684
|
-
type: '
|
|
685
|
-
|
|
1426
|
+
'karpenter.sh/capacity-type': {
|
|
1427
|
+
type: 'array',
|
|
1428
|
+
items: {
|
|
1429
|
+
type: 'string',
|
|
1430
|
+
enum: [
|
|
1431
|
+
'on-demand',
|
|
1432
|
+
'spot'
|
|
1433
|
+
]
|
|
1434
|
+
},
|
|
1435
|
+
minItems: 1,
|
|
1436
|
+
description: 'Allowed values for `karpenter.sh/capacity-type`.',
|
|
1437
|
+
default: [
|
|
1438
|
+
'on-demand',
|
|
1439
|
+
'spot'
|
|
1440
|
+
]
|
|
1441
|
+
},
|
|
1442
|
+
'kubernetes.io/arch': {
|
|
1443
|
+
type: 'array',
|
|
1444
|
+
items: {
|
|
1445
|
+
type: 'string',
|
|
1446
|
+
enum: [
|
|
1447
|
+
'amd64',
|
|
1448
|
+
'arm64'
|
|
1449
|
+
]
|
|
1450
|
+
},
|
|
1451
|
+
minItems: 1,
|
|
1452
|
+
description: 'Allowed values for `kubernetes.io/arch`.',
|
|
1453
|
+
default: [
|
|
1454
|
+
'amd64'
|
|
1455
|
+
]
|
|
1456
|
+
},
|
|
1457
|
+
'cfke.io/instance-family': {
|
|
1458
|
+
type: 'array',
|
|
1459
|
+
items: {
|
|
1460
|
+
type: 'string',
|
|
1461
|
+
enum: [
|
|
1462
|
+
'a1',
|
|
1463
|
+
'a2',
|
|
1464
|
+
'a3',
|
|
1465
|
+
'a4',
|
|
1466
|
+
'c1',
|
|
1467
|
+
'c2',
|
|
1468
|
+
'c2d',
|
|
1469
|
+
'c3',
|
|
1470
|
+
'c3d',
|
|
1471
|
+
'c4',
|
|
1472
|
+
'c4a',
|
|
1473
|
+
'c4d',
|
|
1474
|
+
'c5',
|
|
1475
|
+
'c5a',
|
|
1476
|
+
'c5ad',
|
|
1477
|
+
'c5d',
|
|
1478
|
+
'c5n',
|
|
1479
|
+
'c6a',
|
|
1480
|
+
'c6g',
|
|
1481
|
+
'c6gd',
|
|
1482
|
+
'c6gn',
|
|
1483
|
+
'c6i',
|
|
1484
|
+
'c6id',
|
|
1485
|
+
'c6in',
|
|
1486
|
+
'c7a',
|
|
1487
|
+
'c7g',
|
|
1488
|
+
'c7gd',
|
|
1489
|
+
'c7gn',
|
|
1490
|
+
'c7i',
|
|
1491
|
+
'c7i-flex',
|
|
1492
|
+
'c8g',
|
|
1493
|
+
'c8gd',
|
|
1494
|
+
'cax',
|
|
1495
|
+
'ccx',
|
|
1496
|
+
'cpx',
|
|
1497
|
+
'cx',
|
|
1498
|
+
'd2',
|
|
1499
|
+
'd3',
|
|
1500
|
+
'd3en',
|
|
1501
|
+
'dl1',
|
|
1502
|
+
'dl2q',
|
|
1503
|
+
'e2',
|
|
1504
|
+
'f1',
|
|
1505
|
+
'f2',
|
|
1506
|
+
'g1',
|
|
1507
|
+
'g2',
|
|
1508
|
+
'g4ad',
|
|
1509
|
+
'g4dn',
|
|
1510
|
+
'g5',
|
|
1511
|
+
'g5g',
|
|
1512
|
+
'g6',
|
|
1513
|
+
'g6e',
|
|
1514
|
+
'gr6',
|
|
1515
|
+
'h1',
|
|
1516
|
+
'h3',
|
|
1517
|
+
'hpc6a',
|
|
1518
|
+
'hpc6id',
|
|
1519
|
+
'hpc7a',
|
|
1520
|
+
'hpc7g',
|
|
1521
|
+
'i2',
|
|
1522
|
+
'i3',
|
|
1523
|
+
'i3en',
|
|
1524
|
+
'i4g',
|
|
1525
|
+
'i4i',
|
|
1526
|
+
'i7i',
|
|
1527
|
+
'i7ie',
|
|
1528
|
+
'i8g',
|
|
1529
|
+
'im4gn',
|
|
1530
|
+
'inf1',
|
|
1531
|
+
'inf2',
|
|
1532
|
+
'is4gen',
|
|
1533
|
+
'm1',
|
|
1534
|
+
'm2',
|
|
1535
|
+
'm3',
|
|
1536
|
+
'm4',
|
|
1537
|
+
'm5',
|
|
1538
|
+
'm5a',
|
|
1539
|
+
'm5ad',
|
|
1540
|
+
'm5d',
|
|
1541
|
+
'm5dn',
|
|
1542
|
+
'm5n',
|
|
1543
|
+
'm5zn',
|
|
1544
|
+
'm6a',
|
|
1545
|
+
'm6g',
|
|
1546
|
+
'm6gd',
|
|
1547
|
+
'm6i',
|
|
1548
|
+
'm6id',
|
|
1549
|
+
'm6idn',
|
|
1550
|
+
'm6in',
|
|
1551
|
+
'm7a',
|
|
1552
|
+
'm7g',
|
|
1553
|
+
'm7gd',
|
|
1554
|
+
'm7i',
|
|
1555
|
+
'm7i-flex',
|
|
1556
|
+
'm8g',
|
|
1557
|
+
'm8gd',
|
|
1558
|
+
'n1',
|
|
1559
|
+
'n2',
|
|
1560
|
+
'n2d',
|
|
1561
|
+
'n4',
|
|
1562
|
+
'p3',
|
|
1563
|
+
'p3dn',
|
|
1564
|
+
'p4d',
|
|
1565
|
+
'p4de',
|
|
1566
|
+
'p5',
|
|
1567
|
+
'p5e',
|
|
1568
|
+
'p5en',
|
|
1569
|
+
'p6-b200',
|
|
1570
|
+
'r3',
|
|
1571
|
+
'r4',
|
|
1572
|
+
'r5',
|
|
1573
|
+
'r5a',
|
|
1574
|
+
'r5ad',
|
|
1575
|
+
'r5b',
|
|
1576
|
+
'r5d',
|
|
1577
|
+
'r5dn',
|
|
1578
|
+
'r5n',
|
|
1579
|
+
'r6a',
|
|
1580
|
+
'r6g',
|
|
1581
|
+
'r6gd',
|
|
1582
|
+
'r6i',
|
|
1583
|
+
'r6id',
|
|
1584
|
+
'r6idn',
|
|
1585
|
+
'r6in',
|
|
1586
|
+
'r7a',
|
|
1587
|
+
'r7g',
|
|
1588
|
+
'r7gd',
|
|
1589
|
+
'r7i',
|
|
1590
|
+
'r7iz',
|
|
1591
|
+
'r8g',
|
|
1592
|
+
'r8gd',
|
|
1593
|
+
't2',
|
|
1594
|
+
't2a',
|
|
1595
|
+
't2d',
|
|
1596
|
+
't3',
|
|
1597
|
+
't3a',
|
|
1598
|
+
't4g',
|
|
1599
|
+
'trn1',
|
|
1600
|
+
'trn1n',
|
|
1601
|
+
'u-3tb1',
|
|
1602
|
+
'u-6tb1',
|
|
1603
|
+
'u7i-12tb',
|
|
1604
|
+
'u7i-6tb',
|
|
1605
|
+
'u7i-8tb',
|
|
1606
|
+
'u7in-16tb',
|
|
1607
|
+
'u7in-24tb',
|
|
1608
|
+
'u7in-32tb',
|
|
1609
|
+
'vt1',
|
|
1610
|
+
'x1',
|
|
1611
|
+
'x1e',
|
|
1612
|
+
'x2gd',
|
|
1613
|
+
'x2idn',
|
|
1614
|
+
'x2iedn',
|
|
1615
|
+
'x2iezn',
|
|
1616
|
+
'x4',
|
|
1617
|
+
'x8g',
|
|
1618
|
+
'z1d',
|
|
1619
|
+
'z3'
|
|
1620
|
+
]
|
|
1621
|
+
},
|
|
1622
|
+
description: 'Allowed values for `cfke.io/instance-family`.',
|
|
1623
|
+
default: []
|
|
1624
|
+
},
|
|
1625
|
+
'topology.kubernetes.io/region': {
|
|
1626
|
+
type: 'array',
|
|
1627
|
+
items: {
|
|
1628
|
+
type: 'string',
|
|
1629
|
+
enum: [
|
|
1630
|
+
'africa-south1',
|
|
1631
|
+
'ap-northeast-1',
|
|
1632
|
+
'ap-northeast-2',
|
|
1633
|
+
'ap-northeast-3',
|
|
1634
|
+
'ap-south-1',
|
|
1635
|
+
'ap-southeast-1',
|
|
1636
|
+
'ap-southeast-2',
|
|
1637
|
+
'ash',
|
|
1638
|
+
'asia-east1',
|
|
1639
|
+
'asia-east2',
|
|
1640
|
+
'asia-northeast1',
|
|
1641
|
+
'asia-northeast2',
|
|
1642
|
+
'asia-northeast3',
|
|
1643
|
+
'asia-south1',
|
|
1644
|
+
'asia-south2',
|
|
1645
|
+
'asia-southeast1',
|
|
1646
|
+
'asia-southeast2',
|
|
1647
|
+
'australia-southeast1',
|
|
1648
|
+
'australia-southeast2',
|
|
1649
|
+
'ca-central-1',
|
|
1650
|
+
'eu-central-1',
|
|
1651
|
+
'eu-central-2',
|
|
1652
|
+
'eu-north-1',
|
|
1653
|
+
'eu-west-1',
|
|
1654
|
+
'eu-west-2',
|
|
1655
|
+
'eu-west-3',
|
|
1656
|
+
'europe-central2',
|
|
1657
|
+
'europe-north1',
|
|
1658
|
+
'europe-southwest1',
|
|
1659
|
+
'europe-west1',
|
|
1660
|
+
'europe-west10',
|
|
1661
|
+
'europe-west12',
|
|
1662
|
+
'europe-west2',
|
|
1663
|
+
'europe-west3',
|
|
1664
|
+
'europe-west4',
|
|
1665
|
+
'europe-west6',
|
|
1666
|
+
'europe-west8',
|
|
1667
|
+
'europe-west9',
|
|
1668
|
+
'fsn1',
|
|
1669
|
+
'hel1',
|
|
1670
|
+
'hil',
|
|
1671
|
+
'me-central1',
|
|
1672
|
+
'me-central2',
|
|
1673
|
+
'me-west1',
|
|
1674
|
+
'nbg1',
|
|
1675
|
+
'northamerica-northeast1',
|
|
1676
|
+
'northamerica-northeast2',
|
|
1677
|
+
'sa-east-1',
|
|
1678
|
+
'sin',
|
|
1679
|
+
'southamerica-east1',
|
|
1680
|
+
'southamerica-west1',
|
|
1681
|
+
'us-central1',
|
|
1682
|
+
'us-east-1',
|
|
1683
|
+
'us-east-2',
|
|
1684
|
+
'us-east1',
|
|
1685
|
+
'us-east4',
|
|
1686
|
+
'us-east5',
|
|
1687
|
+
'us-south1',
|
|
1688
|
+
'us-west-1',
|
|
1689
|
+
'us-west-2',
|
|
1690
|
+
'us-west1',
|
|
1691
|
+
'us-west2',
|
|
1692
|
+
'us-west3',
|
|
1693
|
+
'us-west4'
|
|
1694
|
+
]
|
|
1695
|
+
},
|
|
1696
|
+
description: 'Allowed values for `topology.kubernetes.io/region`.',
|
|
1697
|
+
default: []
|
|
1698
|
+
}
|
|
1699
|
+
},
|
|
1700
|
+
required: [
|
|
1701
|
+
'karpenter.sh/capacity-type',
|
|
1702
|
+
'kubernetes.io/arch'
|
|
1703
|
+
],
|
|
1704
|
+
additionalProperties: false,
|
|
1705
|
+
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.',
|
|
1706
|
+
default: {
|
|
1707
|
+
'karpenter.sh/capacity-type': [
|
|
1708
|
+
'on-demand',
|
|
1709
|
+
'spot'
|
|
1710
|
+
],
|
|
1711
|
+
'kubernetes.io/arch': [
|
|
1712
|
+
'amd64'
|
|
1713
|
+
],
|
|
1714
|
+
'cfke.io/instance-family': [],
|
|
1715
|
+
'topology.kubernetes.io/region': []
|
|
1716
|
+
}
|
|
1717
|
+
},
|
|
1718
|
+
scalingProfile: {
|
|
1719
|
+
type: 'string',
|
|
1720
|
+
description: 'Controls scale-up / scale-down responsiveness. `aggressive` prioritizes cost-optimization. `conservative` prioritizes stability of the fleet. Full-overwrite: omit to reset to the default (`conservative`).',
|
|
1721
|
+
default: 'conservative',
|
|
1722
|
+
example: 'conservative',
|
|
1723
|
+
enum: [
|
|
1724
|
+
'aggressive',
|
|
1725
|
+
'conservative'
|
|
1726
|
+
]
|
|
1727
|
+
},
|
|
1728
|
+
id: {
|
|
1729
|
+
type: 'string',
|
|
1730
|
+
maxLength: 63,
|
|
1731
|
+
minLength: 1,
|
|
1732
|
+
pattern: '^[a-z0-9]([-a-z0-9]*[a-z0-9])?$',
|
|
1733
|
+
description: 'Unique identifier of the kubernetes fleet.',
|
|
1734
|
+
example: 'new-clouds-fleet'
|
|
1735
|
+
},
|
|
1736
|
+
ready: {
|
|
1737
|
+
type: 'boolean',
|
|
1738
|
+
description: 'Indicates whether the fleet configuration is healthy.',
|
|
1739
|
+
example: true
|
|
1740
|
+
},
|
|
1741
|
+
status_message: {
|
|
1742
|
+
type: 'string',
|
|
1743
|
+
description: 'Human-readable reason the fleet is not ready. Present only when `ready` is false.',
|
|
1744
|
+
example: 'Invalid provider permissions.'
|
|
1745
|
+
},
|
|
1746
|
+
created_at: {
|
|
1747
|
+
type: 'string',
|
|
1748
|
+
description: 'Creation date and time of the fleet.',
|
|
1749
|
+
example: '2024-09-12T09:11:27Z'
|
|
1750
|
+
},
|
|
1751
|
+
updated_at: {
|
|
1752
|
+
type: 'string',
|
|
1753
|
+
description: 'Date and time the fleet was last updated.',
|
|
1754
|
+
example: '2024-09-12T09:11:27Z'
|
|
1755
|
+
}
|
|
1756
|
+
},
|
|
1757
|
+
required: [
|
|
1758
|
+
'constraints',
|
|
1759
|
+
'scalingProfile',
|
|
1760
|
+
'id',
|
|
1761
|
+
'ready',
|
|
1762
|
+
'created_at',
|
|
1763
|
+
'updated_at'
|
|
1764
|
+
],
|
|
1765
|
+
additionalProperties: false,
|
|
1766
|
+
description: 'Mutable fleet configuration. Applied as a full overwrite: any omitted field is reset to its default rather than left unchanged.'
|
|
1767
|
+
};
|
|
1768
|
+
export const FleetUpdateInputSchema = {
|
|
1769
|
+
type: 'object',
|
|
1770
|
+
properties: {
|
|
1771
|
+
limits: {
|
|
1772
|
+
type: 'object',
|
|
1773
|
+
properties: {
|
|
1774
|
+
cpu: {
|
|
1775
|
+
type: 'integer',
|
|
686
1776
|
minimum: 0,
|
|
687
|
-
|
|
1777
|
+
maximum: 100000,
|
|
1778
|
+
description: 'CPU limit in cores. Maximum 100,000.'
|
|
688
1779
|
}
|
|
689
1780
|
},
|
|
690
|
-
required: ['cpu'],
|
|
691
1781
|
additionalProperties: false,
|
|
692
1782
|
description: 'Limits define a set of bounds for provisioning capacity.'
|
|
693
1783
|
},
|
|
@@ -695,63 +1785,385 @@ export const FleetUpdateInputSchema = {
|
|
|
695
1785
|
type: 'object',
|
|
696
1786
|
properties: {
|
|
697
1787
|
enabled: {
|
|
698
|
-
type: 'boolean'
|
|
699
|
-
default: true
|
|
1788
|
+
type: 'boolean'
|
|
700
1789
|
},
|
|
701
1790
|
project: {
|
|
702
1791
|
type: 'string',
|
|
703
|
-
|
|
1792
|
+
pattern: '^[a-z][a-z0-9-]{4,28}[a-z0-9]$',
|
|
1793
|
+
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.',
|
|
1794
|
+
example: 'my-cloudfleet-project'
|
|
704
1795
|
}
|
|
705
1796
|
},
|
|
706
|
-
required: [
|
|
1797
|
+
required: [
|
|
1798
|
+
'enabled'
|
|
1799
|
+
],
|
|
707
1800
|
additionalProperties: false
|
|
708
1801
|
},
|
|
709
1802
|
hetzner: {
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
enabled: {
|
|
715
|
-
type: 'boolean',
|
|
716
|
-
default: true
|
|
717
|
-
},
|
|
718
|
-
apiKey: {
|
|
719
|
-
type: 'string'
|
|
720
|
-
}
|
|
721
|
-
},
|
|
722
|
-
additionalProperties: false
|
|
1803
|
+
type: 'object',
|
|
1804
|
+
properties: {
|
|
1805
|
+
enabled: {
|
|
1806
|
+
type: 'boolean'
|
|
723
1807
|
},
|
|
724
|
-
{
|
|
725
|
-
type: '
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
enabled: {
|
|
731
|
-
type: 'boolean',
|
|
732
|
-
default: true
|
|
733
|
-
}
|
|
734
|
-
},
|
|
735
|
-
additionalProperties: false
|
|
1808
|
+
apiKey: {
|
|
1809
|
+
type: 'string',
|
|
1810
|
+
maxLength: 64,
|
|
1811
|
+
minLength: 64,
|
|
1812
|
+
pattern: '^([A-Za-z0-9]{64}|\\*{64})$',
|
|
1813
|
+
description: 'Hetzner Cloud API token with read/write access (64 alphanumeric characters). Write-only: reads return a redacted placeholder, never the token. Omit the field, or send the placeholder back unchanged, to keep the existing key. Send a new value to rotate it.'
|
|
736
1814
|
}
|
|
737
|
-
|
|
1815
|
+
},
|
|
1816
|
+
required: [
|
|
1817
|
+
'enabled'
|
|
1818
|
+
],
|
|
1819
|
+
additionalProperties: false
|
|
738
1820
|
},
|
|
739
1821
|
aws: {
|
|
740
1822
|
type: 'object',
|
|
741
1823
|
properties: {
|
|
742
1824
|
enabled: {
|
|
743
|
-
type: 'boolean'
|
|
744
|
-
default: true
|
|
1825
|
+
type: 'boolean'
|
|
745
1826
|
},
|
|
746
1827
|
controllerRoleArn: {
|
|
747
1828
|
type: 'string',
|
|
748
|
-
|
|
1829
|
+
pattern: '^arn:aws(-[a-z]+)*:iam::\\d{12}:role\\/[\\w+=,.@/-]+$',
|
|
1830
|
+
description: 'AWS IAM role ARN that Karpenter uses to manage resources. Omit when AWS is disabled.',
|
|
1831
|
+
example: 'arn:aws:iam::123456789012:role/Cloudfleet'
|
|
749
1832
|
}
|
|
750
1833
|
},
|
|
751
|
-
required: [
|
|
1834
|
+
required: [
|
|
1835
|
+
'enabled'
|
|
1836
|
+
],
|
|
752
1837
|
additionalProperties: false
|
|
1838
|
+
},
|
|
1839
|
+
constraints: {
|
|
1840
|
+
type: 'object',
|
|
1841
|
+
properties: {
|
|
1842
|
+
'karpenter.sh/capacity-type': {
|
|
1843
|
+
type: 'array',
|
|
1844
|
+
items: {
|
|
1845
|
+
type: 'string',
|
|
1846
|
+
enum: [
|
|
1847
|
+
'on-demand',
|
|
1848
|
+
'spot'
|
|
1849
|
+
]
|
|
1850
|
+
},
|
|
1851
|
+
minItems: 1,
|
|
1852
|
+
description: 'Allowed values for `karpenter.sh/capacity-type`.',
|
|
1853
|
+
default: [
|
|
1854
|
+
'on-demand',
|
|
1855
|
+
'spot'
|
|
1856
|
+
]
|
|
1857
|
+
},
|
|
1858
|
+
'kubernetes.io/arch': {
|
|
1859
|
+
type: 'array',
|
|
1860
|
+
items: {
|
|
1861
|
+
type: 'string',
|
|
1862
|
+
enum: [
|
|
1863
|
+
'amd64',
|
|
1864
|
+
'arm64'
|
|
1865
|
+
]
|
|
1866
|
+
},
|
|
1867
|
+
minItems: 1,
|
|
1868
|
+
description: 'Allowed values for `kubernetes.io/arch`.',
|
|
1869
|
+
default: [
|
|
1870
|
+
'amd64'
|
|
1871
|
+
]
|
|
1872
|
+
},
|
|
1873
|
+
'cfke.io/instance-family': {
|
|
1874
|
+
type: 'array',
|
|
1875
|
+
items: {
|
|
1876
|
+
type: 'string',
|
|
1877
|
+
enum: [
|
|
1878
|
+
'a1',
|
|
1879
|
+
'a2',
|
|
1880
|
+
'a3',
|
|
1881
|
+
'a4',
|
|
1882
|
+
'c1',
|
|
1883
|
+
'c2',
|
|
1884
|
+
'c2d',
|
|
1885
|
+
'c3',
|
|
1886
|
+
'c3d',
|
|
1887
|
+
'c4',
|
|
1888
|
+
'c4a',
|
|
1889
|
+
'c4d',
|
|
1890
|
+
'c5',
|
|
1891
|
+
'c5a',
|
|
1892
|
+
'c5ad',
|
|
1893
|
+
'c5d',
|
|
1894
|
+
'c5n',
|
|
1895
|
+
'c6a',
|
|
1896
|
+
'c6g',
|
|
1897
|
+
'c6gd',
|
|
1898
|
+
'c6gn',
|
|
1899
|
+
'c6i',
|
|
1900
|
+
'c6id',
|
|
1901
|
+
'c6in',
|
|
1902
|
+
'c7a',
|
|
1903
|
+
'c7g',
|
|
1904
|
+
'c7gd',
|
|
1905
|
+
'c7gn',
|
|
1906
|
+
'c7i',
|
|
1907
|
+
'c7i-flex',
|
|
1908
|
+
'c8g',
|
|
1909
|
+
'c8gd',
|
|
1910
|
+
'cax',
|
|
1911
|
+
'ccx',
|
|
1912
|
+
'cpx',
|
|
1913
|
+
'cx',
|
|
1914
|
+
'd2',
|
|
1915
|
+
'd3',
|
|
1916
|
+
'd3en',
|
|
1917
|
+
'dl1',
|
|
1918
|
+
'dl2q',
|
|
1919
|
+
'e2',
|
|
1920
|
+
'f1',
|
|
1921
|
+
'f2',
|
|
1922
|
+
'g1',
|
|
1923
|
+
'g2',
|
|
1924
|
+
'g4ad',
|
|
1925
|
+
'g4dn',
|
|
1926
|
+
'g5',
|
|
1927
|
+
'g5g',
|
|
1928
|
+
'g6',
|
|
1929
|
+
'g6e',
|
|
1930
|
+
'gr6',
|
|
1931
|
+
'h1',
|
|
1932
|
+
'h3',
|
|
1933
|
+
'hpc6a',
|
|
1934
|
+
'hpc6id',
|
|
1935
|
+
'hpc7a',
|
|
1936
|
+
'hpc7g',
|
|
1937
|
+
'i2',
|
|
1938
|
+
'i3',
|
|
1939
|
+
'i3en',
|
|
1940
|
+
'i4g',
|
|
1941
|
+
'i4i',
|
|
1942
|
+
'i7i',
|
|
1943
|
+
'i7ie',
|
|
1944
|
+
'i8g',
|
|
1945
|
+
'im4gn',
|
|
1946
|
+
'inf1',
|
|
1947
|
+
'inf2',
|
|
1948
|
+
'is4gen',
|
|
1949
|
+
'm1',
|
|
1950
|
+
'm2',
|
|
1951
|
+
'm3',
|
|
1952
|
+
'm4',
|
|
1953
|
+
'm5',
|
|
1954
|
+
'm5a',
|
|
1955
|
+
'm5ad',
|
|
1956
|
+
'm5d',
|
|
1957
|
+
'm5dn',
|
|
1958
|
+
'm5n',
|
|
1959
|
+
'm5zn',
|
|
1960
|
+
'm6a',
|
|
1961
|
+
'm6g',
|
|
1962
|
+
'm6gd',
|
|
1963
|
+
'm6i',
|
|
1964
|
+
'm6id',
|
|
1965
|
+
'm6idn',
|
|
1966
|
+
'm6in',
|
|
1967
|
+
'm7a',
|
|
1968
|
+
'm7g',
|
|
1969
|
+
'm7gd',
|
|
1970
|
+
'm7i',
|
|
1971
|
+
'm7i-flex',
|
|
1972
|
+
'm8g',
|
|
1973
|
+
'm8gd',
|
|
1974
|
+
'n1',
|
|
1975
|
+
'n2',
|
|
1976
|
+
'n2d',
|
|
1977
|
+
'n4',
|
|
1978
|
+
'p3',
|
|
1979
|
+
'p3dn',
|
|
1980
|
+
'p4d',
|
|
1981
|
+
'p4de',
|
|
1982
|
+
'p5',
|
|
1983
|
+
'p5e',
|
|
1984
|
+
'p5en',
|
|
1985
|
+
'p6-b200',
|
|
1986
|
+
'r3',
|
|
1987
|
+
'r4',
|
|
1988
|
+
'r5',
|
|
1989
|
+
'r5a',
|
|
1990
|
+
'r5ad',
|
|
1991
|
+
'r5b',
|
|
1992
|
+
'r5d',
|
|
1993
|
+
'r5dn',
|
|
1994
|
+
'r5n',
|
|
1995
|
+
'r6a',
|
|
1996
|
+
'r6g',
|
|
1997
|
+
'r6gd',
|
|
1998
|
+
'r6i',
|
|
1999
|
+
'r6id',
|
|
2000
|
+
'r6idn',
|
|
2001
|
+
'r6in',
|
|
2002
|
+
'r7a',
|
|
2003
|
+
'r7g',
|
|
2004
|
+
'r7gd',
|
|
2005
|
+
'r7i',
|
|
2006
|
+
'r7iz',
|
|
2007
|
+
'r8g',
|
|
2008
|
+
'r8gd',
|
|
2009
|
+
't2',
|
|
2010
|
+
't2a',
|
|
2011
|
+
't2d',
|
|
2012
|
+
't3',
|
|
2013
|
+
't3a',
|
|
2014
|
+
't4g',
|
|
2015
|
+
'trn1',
|
|
2016
|
+
'trn1n',
|
|
2017
|
+
'u-3tb1',
|
|
2018
|
+
'u-6tb1',
|
|
2019
|
+
'u7i-12tb',
|
|
2020
|
+
'u7i-6tb',
|
|
2021
|
+
'u7i-8tb',
|
|
2022
|
+
'u7in-16tb',
|
|
2023
|
+
'u7in-24tb',
|
|
2024
|
+
'u7in-32tb',
|
|
2025
|
+
'vt1',
|
|
2026
|
+
'x1',
|
|
2027
|
+
'x1e',
|
|
2028
|
+
'x2gd',
|
|
2029
|
+
'x2idn',
|
|
2030
|
+
'x2iedn',
|
|
2031
|
+
'x2iezn',
|
|
2032
|
+
'x4',
|
|
2033
|
+
'x8g',
|
|
2034
|
+
'z1d',
|
|
2035
|
+
'z3'
|
|
2036
|
+
]
|
|
2037
|
+
},
|
|
2038
|
+
description: 'Allowed values for `cfke.io/instance-family`.',
|
|
2039
|
+
default: []
|
|
2040
|
+
},
|
|
2041
|
+
'topology.kubernetes.io/region': {
|
|
2042
|
+
type: 'array',
|
|
2043
|
+
items: {
|
|
2044
|
+
type: 'string',
|
|
2045
|
+
enum: [
|
|
2046
|
+
'africa-south1',
|
|
2047
|
+
'ap-northeast-1',
|
|
2048
|
+
'ap-northeast-2',
|
|
2049
|
+
'ap-northeast-3',
|
|
2050
|
+
'ap-south-1',
|
|
2051
|
+
'ap-southeast-1',
|
|
2052
|
+
'ap-southeast-2',
|
|
2053
|
+
'ash',
|
|
2054
|
+
'asia-east1',
|
|
2055
|
+
'asia-east2',
|
|
2056
|
+
'asia-northeast1',
|
|
2057
|
+
'asia-northeast2',
|
|
2058
|
+
'asia-northeast3',
|
|
2059
|
+
'asia-south1',
|
|
2060
|
+
'asia-south2',
|
|
2061
|
+
'asia-southeast1',
|
|
2062
|
+
'asia-southeast2',
|
|
2063
|
+
'australia-southeast1',
|
|
2064
|
+
'australia-southeast2',
|
|
2065
|
+
'ca-central-1',
|
|
2066
|
+
'eu-central-1',
|
|
2067
|
+
'eu-central-2',
|
|
2068
|
+
'eu-north-1',
|
|
2069
|
+
'eu-west-1',
|
|
2070
|
+
'eu-west-2',
|
|
2071
|
+
'eu-west-3',
|
|
2072
|
+
'europe-central2',
|
|
2073
|
+
'europe-north1',
|
|
2074
|
+
'europe-southwest1',
|
|
2075
|
+
'europe-west1',
|
|
2076
|
+
'europe-west10',
|
|
2077
|
+
'europe-west12',
|
|
2078
|
+
'europe-west2',
|
|
2079
|
+
'europe-west3',
|
|
2080
|
+
'europe-west4',
|
|
2081
|
+
'europe-west6',
|
|
2082
|
+
'europe-west8',
|
|
2083
|
+
'europe-west9',
|
|
2084
|
+
'fsn1',
|
|
2085
|
+
'hel1',
|
|
2086
|
+
'hil',
|
|
2087
|
+
'me-central1',
|
|
2088
|
+
'me-central2',
|
|
2089
|
+
'me-west1',
|
|
2090
|
+
'nbg1',
|
|
2091
|
+
'northamerica-northeast1',
|
|
2092
|
+
'northamerica-northeast2',
|
|
2093
|
+
'sa-east-1',
|
|
2094
|
+
'sin',
|
|
2095
|
+
'southamerica-east1',
|
|
2096
|
+
'southamerica-west1',
|
|
2097
|
+
'us-central1',
|
|
2098
|
+
'us-east-1',
|
|
2099
|
+
'us-east-2',
|
|
2100
|
+
'us-east1',
|
|
2101
|
+
'us-east4',
|
|
2102
|
+
'us-east5',
|
|
2103
|
+
'us-south1',
|
|
2104
|
+
'us-west-1',
|
|
2105
|
+
'us-west-2',
|
|
2106
|
+
'us-west1',
|
|
2107
|
+
'us-west2',
|
|
2108
|
+
'us-west3',
|
|
2109
|
+
'us-west4'
|
|
2110
|
+
]
|
|
2111
|
+
},
|
|
2112
|
+
description: 'Allowed values for `topology.kubernetes.io/region`.',
|
|
2113
|
+
default: []
|
|
2114
|
+
}
|
|
2115
|
+
},
|
|
2116
|
+
additionalProperties: false,
|
|
2117
|
+
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.',
|
|
2118
|
+
default: {
|
|
2119
|
+
'karpenter.sh/capacity-type': [
|
|
2120
|
+
'on-demand',
|
|
2121
|
+
'spot'
|
|
2122
|
+
],
|
|
2123
|
+
'kubernetes.io/arch': [
|
|
2124
|
+
'amd64'
|
|
2125
|
+
],
|
|
2126
|
+
'cfke.io/instance-family': [],
|
|
2127
|
+
'topology.kubernetes.io/region': []
|
|
2128
|
+
}
|
|
2129
|
+
},
|
|
2130
|
+
scalingProfile: {
|
|
2131
|
+
type: 'string',
|
|
2132
|
+
description: 'Controls scale-up / scale-down responsiveness. `aggressive` prioritizes cost-optimization. `conservative` prioritizes stability of the fleet. Full-overwrite: omit to reset to the default (`conservative`).',
|
|
2133
|
+
default: 'conservative',
|
|
2134
|
+
example: 'conservative',
|
|
2135
|
+
enum: [
|
|
2136
|
+
'aggressive',
|
|
2137
|
+
'conservative'
|
|
2138
|
+
]
|
|
2139
|
+
}
|
|
2140
|
+
},
|
|
2141
|
+
additionalProperties: false,
|
|
2142
|
+
description: 'Mutable fleet configuration. Applied as a full overwrite: any omitted field is reset to its default rather than left unchanged.'
|
|
2143
|
+
};
|
|
2144
|
+
export const InviteCreateInputSchema = {
|
|
2145
|
+
type: 'object',
|
|
2146
|
+
properties: {
|
|
2147
|
+
email: {
|
|
2148
|
+
type: 'string',
|
|
2149
|
+
format: 'email',
|
|
2150
|
+
description: 'Email address of the user to invite.',
|
|
2151
|
+
example: 'email@example.com'
|
|
2152
|
+
},
|
|
2153
|
+
role: {
|
|
2154
|
+
type: 'string',
|
|
2155
|
+
description: 'Role the invited user will be assigned on redemption. Can be \'Administrator\' or \'User\'.',
|
|
2156
|
+
default: 'User',
|
|
2157
|
+
example: 'User',
|
|
2158
|
+
enum: [
|
|
2159
|
+
'Administrator',
|
|
2160
|
+
'User'
|
|
2161
|
+
]
|
|
753
2162
|
}
|
|
754
2163
|
},
|
|
2164
|
+
required: [
|
|
2165
|
+
'email'
|
|
2166
|
+
],
|
|
755
2167
|
additionalProperties: false
|
|
756
2168
|
};
|
|
757
2169
|
export const InviteSchema = {
|
|
@@ -784,9 +2196,21 @@ export const InviteSchema = {
|
|
|
784
2196
|
type: 'string',
|
|
785
2197
|
description: 'Generated unique invite code.',
|
|
786
2198
|
example: '7kUZnH7nnKUFfvc4NK2KQF'
|
|
2199
|
+
},
|
|
2200
|
+
role: {
|
|
2201
|
+
type: 'string',
|
|
2202
|
+
description: 'Role the invited user will be assigned on redemption. Can be \'Administrator\' or \'User\'.',
|
|
2203
|
+
default: 'User',
|
|
2204
|
+
example: 'User',
|
|
2205
|
+
enum: [
|
|
2206
|
+
'Administrator',
|
|
2207
|
+
'User'
|
|
2208
|
+
]
|
|
787
2209
|
}
|
|
788
2210
|
},
|
|
789
|
-
required: [
|
|
2211
|
+
required: [
|
|
2212
|
+
'date_created'
|
|
2213
|
+
],
|
|
790
2214
|
additionalProperties: false
|
|
791
2215
|
};
|
|
792
2216
|
export const InvoiceSchema = {
|
|
@@ -794,23 +2218,18 @@ export const InvoiceSchema = {
|
|
|
794
2218
|
properties: {
|
|
795
2219
|
id: {
|
|
796
2220
|
type: 'string',
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
example: '415026b6-f00f-44f8-968d-fc6ef4d0fc6d'
|
|
2221
|
+
description: 'Unique identifier of the invoice.',
|
|
2222
|
+
example: 'in_1234567890xCrwxghOTj1234'
|
|
800
2223
|
},
|
|
801
|
-
|
|
802
|
-
type: 'string'
|
|
803
|
-
format: 'uuid',
|
|
804
|
-
description: 'Unique identifier of the organization. UUID v4 string in canonical form',
|
|
805
|
-
example: '415026b6-f00f-44f8-968d-fc6ef4d0fc6d'
|
|
2224
|
+
number: {
|
|
2225
|
+
type: 'string'
|
|
806
2226
|
},
|
|
807
2227
|
status: {
|
|
808
2228
|
type: 'string',
|
|
809
2229
|
description: 'Status of the invoice',
|
|
810
|
-
example: '
|
|
811
|
-
enum: ['DRAFT', 'COMMITTED', 'VOID']
|
|
2230
|
+
example: 'paid'
|
|
812
2231
|
},
|
|
813
|
-
|
|
2232
|
+
total: {
|
|
814
2233
|
type: 'number',
|
|
815
2234
|
format: 'float',
|
|
816
2235
|
description: 'Total amount of the invoice',
|
|
@@ -819,418 +2238,203 @@ export const InvoiceSchema = {
|
|
|
819
2238
|
currency: {
|
|
820
2239
|
type: 'string',
|
|
821
2240
|
description: 'Currency of the invoice',
|
|
822
|
-
example: '
|
|
823
|
-
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']
|
|
824
|
-
},
|
|
825
|
-
creditAdj: {
|
|
826
|
-
type: 'number',
|
|
827
|
-
format: 'float',
|
|
828
|
-
description: 'Total amount of credit adjustments',
|
|
829
|
-
example: 0
|
|
2241
|
+
example: 'usd'
|
|
830
2242
|
},
|
|
831
|
-
|
|
832
|
-
type: '
|
|
833
|
-
format: '
|
|
834
|
-
description: '
|
|
835
|
-
example:
|
|
2243
|
+
created: {
|
|
2244
|
+
type: 'string',
|
|
2245
|
+
format: 'date-time',
|
|
2246
|
+
description: 'Timestamp when the invoice was issued. ISO 8601 date string in the UTC timezone.',
|
|
2247
|
+
example: '2023-12-20T13:53:32.000Z'
|
|
836
2248
|
},
|
|
837
|
-
|
|
2249
|
+
period_start: {
|
|
838
2250
|
type: 'string',
|
|
839
|
-
|
|
840
|
-
|
|
2251
|
+
format: 'date-time',
|
|
2252
|
+
description: 'Billing period start timestamp. ISO 8601 date string in the UTC timezone.',
|
|
2253
|
+
example: '2023-12-20T13:53:32.000Z'
|
|
841
2254
|
},
|
|
842
|
-
|
|
2255
|
+
period_end: {
|
|
843
2256
|
type: 'string',
|
|
844
|
-
|
|
845
|
-
|
|
2257
|
+
format: 'date-time',
|
|
2258
|
+
description: 'Billing period end timestamp. ISO 8601 date string in the UTC timezone.',
|
|
2259
|
+
example: '2023-12-20T13:53:32.000Z'
|
|
846
2260
|
},
|
|
847
|
-
|
|
2261
|
+
invoice_pdf: {
|
|
2262
|
+
type: 'string'
|
|
2263
|
+
}
|
|
2264
|
+
},
|
|
2265
|
+
required: [
|
|
2266
|
+
'created',
|
|
2267
|
+
'period_start',
|
|
2268
|
+
'period_end'
|
|
2269
|
+
],
|
|
2270
|
+
additionalProperties: false
|
|
2271
|
+
};
|
|
2272
|
+
export const MarketplaceListingFilesSchema = {
|
|
2273
|
+
type: 'object',
|
|
2274
|
+
properties: {
|
|
2275
|
+
chartYaml: {
|
|
848
2276
|
type: 'string',
|
|
849
|
-
description: '
|
|
850
|
-
example: '
|
|
2277
|
+
description: 'Raw Chart.yaml content from the Helm chart',
|
|
2278
|
+
example: 'apiVersion: v2\nname: nginx-ingress\nversion: 1.18.2-cfke.45\nappVersion: 1.9.4'
|
|
851
2279
|
},
|
|
852
|
-
|
|
853
|
-
type: '
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
example: 100
|
|
2280
|
+
valuesYaml: {
|
|
2281
|
+
type: 'string',
|
|
2282
|
+
description: 'Raw values.yaml content from the Helm chart',
|
|
2283
|
+
example: 'replicaCount: 1\nimage:\n repository: nginx\n tag: latest'
|
|
857
2284
|
},
|
|
858
|
-
|
|
2285
|
+
valuesSchemaJson: {
|
|
2286
|
+
type: 'string',
|
|
2287
|
+
description: 'JSON schema for values.yaml as a string',
|
|
2288
|
+
example: '{"type":"object","properties":{"replicaCount":{"type":"number"}}}'
|
|
2289
|
+
}
|
|
2290
|
+
},
|
|
2291
|
+
additionalProperties: false
|
|
2292
|
+
};
|
|
2293
|
+
export const MarketplaceListingSchema = {
|
|
2294
|
+
type: 'object',
|
|
2295
|
+
properties: {
|
|
2296
|
+
name: {
|
|
859
2297
|
type: 'string',
|
|
860
|
-
description: '
|
|
861
|
-
example: '
|
|
2298
|
+
description: 'Name of the chart',
|
|
2299
|
+
example: 'nginx-ingress'
|
|
862
2300
|
},
|
|
863
|
-
|
|
2301
|
+
versions: {
|
|
864
2302
|
type: 'array',
|
|
865
2303
|
items: {
|
|
866
|
-
type: '
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
format: 'uuid',
|
|
871
|
-
description: 'Unique identifier of the invoice item. UUID v4 string in canonical form',
|
|
872
|
-
example: '415026b6-f00f-44f8-968d-fc6ef4d0fc6d'
|
|
873
|
-
},
|
|
874
|
-
linkedInvoiceItemId: {
|
|
875
|
-
type: 'string',
|
|
876
|
-
format: 'uuid',
|
|
877
|
-
description: 'Unique identifier of the linked invoice item. UUID v4 string in canonical form',
|
|
878
|
-
example: '415026b6-f00f-44f8-968d-fc6ef4d0fc6d'
|
|
879
|
-
},
|
|
880
|
-
productName: {
|
|
881
|
-
type: 'string',
|
|
882
|
-
description: 'Name of the product',
|
|
883
|
-
example: 'Research team'
|
|
884
|
-
},
|
|
885
|
-
planName: {
|
|
886
|
-
type: 'string',
|
|
887
|
-
description: 'Name of the plan',
|
|
888
|
-
example: 'Plan A'
|
|
889
|
-
},
|
|
890
|
-
phaseName: {
|
|
891
|
-
type: 'string',
|
|
892
|
-
description: 'Name of the phase',
|
|
893
|
-
example: 'Phase A'
|
|
894
|
-
},
|
|
895
|
-
usageName: {
|
|
896
|
-
type: 'string',
|
|
897
|
-
description: 'Name of the usage',
|
|
898
|
-
example: 'Usage A'
|
|
899
|
-
},
|
|
900
|
-
prettyProductName: {
|
|
901
|
-
type: 'string',
|
|
902
|
-
description: 'Pretty name of the product',
|
|
903
|
-
example: 'Research team'
|
|
904
|
-
},
|
|
905
|
-
prettyPlanName: {
|
|
906
|
-
type: 'string',
|
|
907
|
-
description: 'Pretty name of the plan',
|
|
908
|
-
example: 'Plan A'
|
|
909
|
-
},
|
|
910
|
-
prettyPhaseName: {
|
|
911
|
-
type: 'string',
|
|
912
|
-
description: 'Pretty name of the phase',
|
|
913
|
-
example: 'Phase A'
|
|
914
|
-
},
|
|
915
|
-
prettyUsageName: {
|
|
916
|
-
type: 'string',
|
|
917
|
-
description: 'Pretty name of the usage',
|
|
918
|
-
example: 'Usage A'
|
|
919
|
-
},
|
|
920
|
-
itemType: {
|
|
921
|
-
type: 'string',
|
|
922
|
-
description: 'Type of the invoice item',
|
|
923
|
-
example: 'EXTERNAL_CHARGE',
|
|
924
|
-
enum: ['EXTERNAL_CHARGE', 'FIXED', 'RECURRING', 'REPAIR_ADJ', 'CBA_ADJ', 'CREDIT_ADJ', 'ITEM_ADJ', 'USAGE', 'TAX', 'PARENT_SUMMARY']
|
|
925
|
-
},
|
|
926
|
-
description: {
|
|
927
|
-
type: 'string',
|
|
928
|
-
description: 'Description of the invoice item',
|
|
929
|
-
example: 'Description of the invoice item'
|
|
930
|
-
},
|
|
931
|
-
startDate: {
|
|
932
|
-
type: 'string',
|
|
933
|
-
description: 'Start date of the invoice item',
|
|
934
|
-
example: '2019-01-01T00:00:00.000Z'
|
|
935
|
-
},
|
|
936
|
-
endDate: {
|
|
937
|
-
type: 'string',
|
|
938
|
-
description: 'End date of the invoice item',
|
|
939
|
-
example: '2019-01-01T00:00:00.000Z'
|
|
940
|
-
},
|
|
941
|
-
amount: {
|
|
942
|
-
type: 'number',
|
|
943
|
-
format: 'float',
|
|
944
|
-
description: 'Amount of the invoice item',
|
|
945
|
-
example: 100
|
|
946
|
-
},
|
|
947
|
-
rate: {
|
|
948
|
-
type: 'number',
|
|
949
|
-
format: 'float',
|
|
950
|
-
description: 'Rate of the invoice item',
|
|
951
|
-
example: 100
|
|
952
|
-
},
|
|
953
|
-
currency: {
|
|
954
|
-
type: 'string',
|
|
955
|
-
description: 'Currency of the invoice item',
|
|
956
|
-
example: 'USD',
|
|
957
|
-
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']
|
|
958
|
-
},
|
|
959
|
-
quantity: {
|
|
960
|
-
type: 'number',
|
|
961
|
-
format: 'float',
|
|
962
|
-
description: 'Quantity of the invoice item',
|
|
963
|
-
example: 1
|
|
964
|
-
},
|
|
965
|
-
itemDetails: {
|
|
966
|
-
type: 'string',
|
|
967
|
-
description: 'Details of the invoice item',
|
|
968
|
-
example: 'Details of the invoice item'
|
|
969
|
-
},
|
|
970
|
-
catalogEffectiveDate: {
|
|
971
|
-
type: 'string',
|
|
972
|
-
description: 'Effective date of the catalog',
|
|
973
|
-
example: '2019-01-01T00:00:00.000Z'
|
|
974
|
-
},
|
|
975
|
-
childItems: {
|
|
976
|
-
type: 'array',
|
|
977
|
-
items: {
|
|
978
|
-
oneOf: [
|
|
979
|
-
{
|
|
980
|
-
type: 'array'
|
|
981
|
-
},
|
|
982
|
-
{
|
|
983
|
-
type: 'boolean'
|
|
984
|
-
},
|
|
985
|
-
{
|
|
986
|
-
type: 'number'
|
|
987
|
-
},
|
|
988
|
-
{
|
|
989
|
-
type: 'object',
|
|
990
|
-
additionalProperties: true
|
|
991
|
-
},
|
|
992
|
-
{
|
|
993
|
-
type: 'string'
|
|
994
|
-
}
|
|
995
|
-
]
|
|
996
|
-
},
|
|
997
|
-
description: 'Child items of the invoice item'
|
|
998
|
-
}
|
|
999
|
-
},
|
|
1000
|
-
additionalProperties: false
|
|
2304
|
+
type: 'string',
|
|
2305
|
+
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-]+)*))?$',
|
|
2306
|
+
description: 'Specific version of the chart',
|
|
2307
|
+
example: '1.18.2-cfke.45'
|
|
1001
2308
|
},
|
|
1002
|
-
description: '
|
|
2309
|
+
description: 'Available versions of the chart'
|
|
1003
2310
|
},
|
|
1004
|
-
|
|
2311
|
+
version_channels: {
|
|
1005
2312
|
type: 'array',
|
|
1006
2313
|
items: {
|
|
1007
|
-
type: '
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
2314
|
+
type: 'string',
|
|
2315
|
+
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-]+)*))?$',
|
|
2316
|
+
description: 'Version channel pattern',
|
|
2317
|
+
example: '1.18.x-cfke.x'
|
|
2318
|
+
},
|
|
2319
|
+
description: 'Version channels for the chart'
|
|
2320
|
+
},
|
|
2321
|
+
latestVersion: {
|
|
2322
|
+
type: 'string',
|
|
2323
|
+
description: 'Latest version of the chart',
|
|
2324
|
+
example: '1.18.2-cfke.45'
|
|
2325
|
+
},
|
|
2326
|
+
metadata: {
|
|
2327
|
+
type: 'object',
|
|
2328
|
+
properties: {
|
|
2329
|
+
name: {
|
|
2330
|
+
type: 'string',
|
|
2331
|
+
description: 'Chart name from metadata',
|
|
2332
|
+
example: 'nginx-ingress'
|
|
2333
|
+
},
|
|
2334
|
+
version: {
|
|
2335
|
+
type: 'string',
|
|
2336
|
+
description: 'Chart version from metadata',
|
|
2337
|
+
example: '1.18.2-cfke.45'
|
|
2338
|
+
},
|
|
2339
|
+
description: {
|
|
2340
|
+
type: 'string',
|
|
2341
|
+
description: 'Chart description',
|
|
2342
|
+
example: 'NGINX Ingress Controller for Kubernetes'
|
|
2343
|
+
},
|
|
2344
|
+
appVersion: {
|
|
2345
|
+
type: 'string',
|
|
2346
|
+
description: 'Application version',
|
|
2347
|
+
example: '1.9.4'
|
|
2348
|
+
},
|
|
2349
|
+
apiVersion: {
|
|
2350
|
+
type: 'string',
|
|
2351
|
+
description: 'Helm API version',
|
|
2352
|
+
example: 'v2'
|
|
2353
|
+
},
|
|
2354
|
+
keywords: {
|
|
2355
|
+
type: 'array',
|
|
2356
|
+
items: {
|
|
2357
|
+
type: 'string'
|
|
1014
2358
|
},
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
usageName: {
|
|
1037
|
-
type: 'string',
|
|
1038
|
-
description: 'Name of the usage',
|
|
1039
|
-
example: 'Usage A'
|
|
1040
|
-
},
|
|
1041
|
-
prettyProductName: {
|
|
1042
|
-
type: 'string',
|
|
1043
|
-
description: 'Pretty name of the product',
|
|
1044
|
-
example: 'Research team'
|
|
1045
|
-
},
|
|
1046
|
-
prettyPlanName: {
|
|
1047
|
-
type: 'string',
|
|
1048
|
-
description: 'Pretty name of the plan',
|
|
1049
|
-
example: 'Plan A'
|
|
1050
|
-
},
|
|
1051
|
-
prettyPhaseName: {
|
|
1052
|
-
type: 'string',
|
|
1053
|
-
description: 'Pretty name of the phase',
|
|
1054
|
-
example: 'Phase A'
|
|
1055
|
-
},
|
|
1056
|
-
prettyUsageName: {
|
|
1057
|
-
type: 'string',
|
|
1058
|
-
description: 'Pretty name of the usage',
|
|
1059
|
-
example: 'Usage A'
|
|
1060
|
-
},
|
|
1061
|
-
itemType: {
|
|
1062
|
-
type: 'string',
|
|
1063
|
-
description: 'Type of the invoice item',
|
|
1064
|
-
example: 'EXTERNAL_CHARGE',
|
|
1065
|
-
enum: ['EXTERNAL_CHARGE', 'FIXED', 'RECURRING', 'REPAIR_ADJ', 'CBA_ADJ', 'CREDIT_ADJ', 'ITEM_ADJ', 'USAGE', 'TAX', 'PARENT_SUMMARY']
|
|
1066
|
-
},
|
|
1067
|
-
description: {
|
|
1068
|
-
type: 'string',
|
|
1069
|
-
description: 'Description of the invoice item',
|
|
1070
|
-
example: 'Description of the invoice item'
|
|
1071
|
-
},
|
|
1072
|
-
startDate: {
|
|
1073
|
-
type: 'string',
|
|
1074
|
-
description: 'Start date of the invoice item',
|
|
1075
|
-
example: '2019-01-01T00:00:00.000Z'
|
|
1076
|
-
},
|
|
1077
|
-
endDate: {
|
|
1078
|
-
type: 'string',
|
|
1079
|
-
description: 'End date of the invoice item',
|
|
1080
|
-
example: '2019-01-01T00:00:00.000Z'
|
|
1081
|
-
},
|
|
1082
|
-
amount: {
|
|
1083
|
-
type: 'number',
|
|
1084
|
-
format: 'float',
|
|
1085
|
-
description: 'Amount of the invoice item',
|
|
1086
|
-
example: 100
|
|
1087
|
-
},
|
|
1088
|
-
rate: {
|
|
1089
|
-
type: 'number',
|
|
1090
|
-
format: 'float',
|
|
1091
|
-
description: 'Rate of the invoice item',
|
|
1092
|
-
example: 100
|
|
1093
|
-
},
|
|
1094
|
-
currency: {
|
|
1095
|
-
type: 'string',
|
|
1096
|
-
description: 'Currency of the invoice item',
|
|
1097
|
-
example: 'USD',
|
|
1098
|
-
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']
|
|
1099
|
-
},
|
|
1100
|
-
quantity: {
|
|
1101
|
-
type: 'number',
|
|
1102
|
-
format: 'float',
|
|
1103
|
-
description: 'Quantity of the invoice item',
|
|
1104
|
-
example: 1
|
|
1105
|
-
},
|
|
1106
|
-
itemDetails: {
|
|
1107
|
-
type: 'string',
|
|
1108
|
-
description: 'Details of the invoice item',
|
|
1109
|
-
example: 'Details of the invoice item'
|
|
1110
|
-
},
|
|
1111
|
-
catalogEffectiveDate: {
|
|
1112
|
-
type: 'string',
|
|
1113
|
-
description: 'Effective date of the catalog',
|
|
1114
|
-
example: '2019-01-01T00:00:00.000Z'
|
|
2359
|
+
description: 'Chart keywords',
|
|
2360
|
+
example: [
|
|
2361
|
+
'ingress',
|
|
2362
|
+
'nginx',
|
|
2363
|
+
'load-balancer'
|
|
2364
|
+
]
|
|
2365
|
+
},
|
|
2366
|
+
home: {
|
|
2367
|
+
type: 'string',
|
|
2368
|
+
description: 'Chart home URL',
|
|
2369
|
+
example: 'https://kubernetes.github.io/ingress-nginx/'
|
|
2370
|
+
},
|
|
2371
|
+
icon: {
|
|
2372
|
+
type: 'string',
|
|
2373
|
+
description: 'A URL to an SVG or PNG image to be used as an icon',
|
|
2374
|
+
example: 'https://cloudfleet.ai/images/marketplace/icons/ingress-nginx.png'
|
|
2375
|
+
},
|
|
2376
|
+
sources: {
|
|
2377
|
+
type: 'array',
|
|
2378
|
+
items: {
|
|
2379
|
+
type: 'string'
|
|
1115
2380
|
},
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
{
|
|
1121
|
-
type: 'array'
|
|
1122
|
-
},
|
|
1123
|
-
{
|
|
1124
|
-
type: 'boolean'
|
|
1125
|
-
},
|
|
1126
|
-
{
|
|
1127
|
-
type: 'number'
|
|
1128
|
-
},
|
|
1129
|
-
{
|
|
1130
|
-
type: 'object',
|
|
1131
|
-
additionalProperties: true
|
|
1132
|
-
},
|
|
1133
|
-
{
|
|
1134
|
-
type: 'string'
|
|
1135
|
-
}
|
|
1136
|
-
]
|
|
1137
|
-
},
|
|
1138
|
-
description: 'Child items of the invoice item'
|
|
1139
|
-
}
|
|
2381
|
+
description: 'Chart source URLs',
|
|
2382
|
+
example: [
|
|
2383
|
+
'https://github.com/kubernetes/ingress-nginx'
|
|
2384
|
+
]
|
|
1140
2385
|
},
|
|
1141
|
-
|
|
2386
|
+
maintainers: {
|
|
2387
|
+
type: 'array',
|
|
2388
|
+
items: {
|
|
2389
|
+
type: 'object',
|
|
2390
|
+
properties: {
|
|
2391
|
+
name: {
|
|
2392
|
+
type: 'string',
|
|
2393
|
+
description: 'Maintainer name',
|
|
2394
|
+
example: 'NGINX Team'
|
|
2395
|
+
},
|
|
2396
|
+
email: {
|
|
2397
|
+
type: 'string',
|
|
2398
|
+
description: 'Maintainer email',
|
|
2399
|
+
example: 'support@nginx.org'
|
|
2400
|
+
}
|
|
2401
|
+
},
|
|
2402
|
+
required: [
|
|
2403
|
+
'name'
|
|
2404
|
+
],
|
|
2405
|
+
additionalProperties: false
|
|
2406
|
+
},
|
|
2407
|
+
description: 'Chart maintainers'
|
|
2408
|
+
}
|
|
1142
2409
|
},
|
|
1143
|
-
|
|
2410
|
+
required: [
|
|
2411
|
+
'name',
|
|
2412
|
+
'version'
|
|
2413
|
+
],
|
|
2414
|
+
additionalProperties: false,
|
|
2415
|
+
description: 'Chart metadata'
|
|
1144
2416
|
}
|
|
1145
2417
|
},
|
|
2418
|
+
required: [
|
|
2419
|
+
'name',
|
|
2420
|
+
'versions',
|
|
2421
|
+
'version_channels',
|
|
2422
|
+
'latestVersion'
|
|
2423
|
+
],
|
|
1146
2424
|
additionalProperties: false
|
|
1147
2425
|
};
|
|
1148
|
-
export const
|
|
2426
|
+
export const OrganizationCreateInputSchema = {
|
|
1149
2427
|
type: 'object',
|
|
1150
2428
|
properties: {
|
|
1151
|
-
|
|
1152
|
-
type: 'string',
|
|
1153
|
-
maxLength: 63,
|
|
1154
|
-
minLength: 1,
|
|
1155
|
-
pattern: '^[a-z0-9]([-a-z0-9]*[a-z0-9])?$',
|
|
1156
|
-
description: 'Id of the chart listing',
|
|
1157
|
-
example: 'portworx-enterprise-disaster-recovery-baremetal'
|
|
1158
|
-
},
|
|
1159
|
-
name: {
|
|
1160
|
-
type: 'string',
|
|
1161
|
-
description: 'Name of the chart listing',
|
|
1162
|
-
example: 'Portworx Enterprise + Disaster Recovery - Baremetal'
|
|
1163
|
-
},
|
|
1164
|
-
developer: {
|
|
1165
|
-
type: 'string',
|
|
1166
|
-
description: 'Author of the chart listing',
|
|
1167
|
-
example: 'Portworx'
|
|
1168
|
-
},
|
|
1169
|
-
description: {
|
|
1170
|
-
type: 'string',
|
|
1171
|
-
description: 'Short description of the chart listing',
|
|
1172
|
-
example: 'Run Kubernetes with unmatched scalability, availability, and self-service access to any storage'
|
|
1173
|
-
},
|
|
1174
|
-
logoUrl: {
|
|
1175
|
-
type: 'string',
|
|
1176
|
-
description: 'Logo of the chart listing',
|
|
1177
|
-
example: 'https://portworx.com/wp-content/themes/portworx/assets/images/header/portworx-logo.png'
|
|
1178
|
-
},
|
|
1179
|
-
longDescription: {
|
|
2429
|
+
type: {
|
|
1180
2430
|
type: 'string',
|
|
1181
|
-
description: '
|
|
1182
|
-
example: '
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
type: 'string',
|
|
1188
|
-
example: 'AI & Machine Learning'
|
|
1189
|
-
},
|
|
1190
|
-
description: 'Tags of the chart'
|
|
1191
|
-
},
|
|
1192
|
-
version_channels: {
|
|
1193
|
-
type: 'array',
|
|
1194
|
-
items: {
|
|
1195
|
-
type: 'string',
|
|
1196
|
-
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-]+)*))?$',
|
|
1197
|
-
description: 'Version of the chart.',
|
|
1198
|
-
example: '2.x.x-cfke.x'
|
|
1199
|
-
}
|
|
2431
|
+
description: 'Type of the organization. `business` for legal entities, `personal` for individuals.',
|
|
2432
|
+
example: 'business',
|
|
2433
|
+
enum: [
|
|
2434
|
+
'business',
|
|
2435
|
+
'personal'
|
|
2436
|
+
]
|
|
1200
2437
|
},
|
|
1201
|
-
value_schemas: {
|
|
1202
|
-
type: 'array',
|
|
1203
|
-
items: {
|
|
1204
|
-
type: 'object',
|
|
1205
|
-
properties: {
|
|
1206
|
-
version: {
|
|
1207
|
-
type: 'string',
|
|
1208
|
-
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-]+)*))?$',
|
|
1209
|
-
description: 'Version of the chart.',
|
|
1210
|
-
example: '2.1.1-cfke.123'
|
|
1211
|
-
},
|
|
1212
|
-
schema: {
|
|
1213
|
-
type: 'string',
|
|
1214
|
-
description: 'Schema of the chart values. JSON Schema as string'
|
|
1215
|
-
},
|
|
1216
|
-
placeholder: {
|
|
1217
|
-
type: 'string',
|
|
1218
|
-
description: 'Schema of the chart values',
|
|
1219
|
-
example: `foo: 1
|
|
1220
|
-
bar: example`
|
|
1221
|
-
}
|
|
1222
|
-
},
|
|
1223
|
-
required: ['version', 'schema', 'placeholder'],
|
|
1224
|
-
additionalProperties: false
|
|
1225
|
-
}
|
|
1226
|
-
}
|
|
1227
|
-
},
|
|
1228
|
-
required: ['id', 'name', 'developer', 'description', 'logoUrl', 'longDescription', 'categories', 'version_channels', 'value_schemas'],
|
|
1229
|
-
additionalProperties: false
|
|
1230
|
-
};
|
|
1231
|
-
export const OrganizationCreateInputSchema = {
|
|
1232
|
-
type: 'object',
|
|
1233
|
-
properties: {
|
|
1234
2438
|
email: {
|
|
1235
2439
|
type: 'string',
|
|
1236
2440
|
format: 'email',
|
|
@@ -1239,11 +2443,13 @@ export const OrganizationCreateInputSchema = {
|
|
|
1239
2443
|
},
|
|
1240
2444
|
first_name: {
|
|
1241
2445
|
type: 'string',
|
|
2446
|
+
minLength: 1,
|
|
1242
2447
|
description: 'First name of the billing contact person.',
|
|
1243
2448
|
example: 'John'
|
|
1244
2449
|
},
|
|
1245
2450
|
last_name: {
|
|
1246
2451
|
type: 'string',
|
|
2452
|
+
minLength: 1,
|
|
1247
2453
|
description: 'Last name of the billing contact person.',
|
|
1248
2454
|
example: 'Doe'
|
|
1249
2455
|
},
|
|
@@ -1261,7 +2467,28 @@ export const OrganizationCreateInputSchema = {
|
|
|
1261
2467
|
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.'
|
|
1262
2468
|
}
|
|
1263
2469
|
},
|
|
1264
|
-
required: [
|
|
2470
|
+
required: [
|
|
2471
|
+
'type',
|
|
2472
|
+
'email',
|
|
2473
|
+
'first_name',
|
|
2474
|
+
'last_name',
|
|
2475
|
+
'company_name',
|
|
2476
|
+
'password'
|
|
2477
|
+
],
|
|
2478
|
+
additionalProperties: false
|
|
2479
|
+
};
|
|
2480
|
+
export const OrganizationCreateOutputSchema = {
|
|
2481
|
+
type: 'object',
|
|
2482
|
+
properties: {
|
|
2483
|
+
id: {
|
|
2484
|
+
type: 'string',
|
|
2485
|
+
description: 'Unique identifier of the newly created organization. Generated by the API and safe to use for client-side tracking immediately.',
|
|
2486
|
+
example: 'organization-id'
|
|
2487
|
+
}
|
|
2488
|
+
},
|
|
2489
|
+
required: [
|
|
2490
|
+
'id'
|
|
2491
|
+
],
|
|
1265
2492
|
additionalProperties: false
|
|
1266
2493
|
};
|
|
1267
2494
|
export const OrganizationSchema = {
|
|
@@ -1280,6 +2507,15 @@ export const OrganizationSchema = {
|
|
|
1280
2507
|
description: 'Name of the legal entity. This name will be used in invoices. Use your first and last name for individual accounts.',
|
|
1281
2508
|
example: 'ACME Corp.'
|
|
1282
2509
|
},
|
|
2510
|
+
type: {
|
|
2511
|
+
type: 'string',
|
|
2512
|
+
description: 'Type of the organization. `business` for legal entities, `personal` for individuals.',
|
|
2513
|
+
example: 'business',
|
|
2514
|
+
enum: [
|
|
2515
|
+
'business',
|
|
2516
|
+
'personal'
|
|
2517
|
+
]
|
|
2518
|
+
},
|
|
1283
2519
|
date_created: {
|
|
1284
2520
|
type: 'string',
|
|
1285
2521
|
format: 'date-time',
|
|
@@ -1311,123 +2547,1057 @@ export const OrganizationSchema = {
|
|
|
1311
2547
|
description: 'Available number of Pro clusters that can be created.',
|
|
1312
2548
|
example: 999
|
|
1313
2549
|
},
|
|
1314
|
-
|
|
2550
|
+
enterprise_clusters_max: {
|
|
1315
2551
|
type: 'integer',
|
|
1316
2552
|
minimum: 0,
|
|
1317
|
-
description: 'Maximum number of
|
|
2553
|
+
description: 'Maximum number of Enterprise clusters that can be created.',
|
|
1318
2554
|
example: 999
|
|
1319
2555
|
},
|
|
1320
|
-
|
|
2556
|
+
enterprise_clusters_available: {
|
|
2557
|
+
type: 'integer',
|
|
2558
|
+
description: 'Available number of Enterprise clusters that can be created.',
|
|
2559
|
+
example: 999
|
|
2560
|
+
},
|
|
2561
|
+
fleets_max: {
|
|
1321
2562
|
type: 'integer',
|
|
1322
2563
|
minimum: 0,
|
|
1323
|
-
description: 'Maximum number of
|
|
2564
|
+
description: 'Maximum number of fleets that can be created per cluster.',
|
|
1324
2565
|
example: 999
|
|
1325
2566
|
},
|
|
1326
2567
|
cluster_tiers: {
|
|
1327
2568
|
type: 'array',
|
|
1328
2569
|
items: {
|
|
1329
2570
|
type: 'string',
|
|
1330
|
-
example: 'basic'
|
|
2571
|
+
example: 'basic'
|
|
2572
|
+
},
|
|
2573
|
+
minItems: 0,
|
|
2574
|
+
description: 'List of Cloudfleet cluster tiers available for the organization.'
|
|
2575
|
+
},
|
|
2576
|
+
regions: {
|
|
2577
|
+
type: 'array',
|
|
2578
|
+
items: {
|
|
2579
|
+
type: 'string',
|
|
2580
|
+
example: 'northamerica-central-1a'
|
|
2581
|
+
},
|
|
2582
|
+
minItems: 1,
|
|
2583
|
+
description: 'List of Cloudfleet control plane regions available for the organization.'
|
|
2584
|
+
},
|
|
2585
|
+
versions: {
|
|
2586
|
+
type: 'array',
|
|
2587
|
+
items: {
|
|
2588
|
+
type: 'object',
|
|
2589
|
+
properties: {
|
|
2590
|
+
id: {
|
|
2591
|
+
type: 'string',
|
|
2592
|
+
description: 'Id of the control plane version. Used in API calls.',
|
|
2593
|
+
example: '1.33.x-cfke.x'
|
|
2594
|
+
},
|
|
2595
|
+
label: {
|
|
2596
|
+
type: 'string',
|
|
2597
|
+
description: 'Label of the control plane version. Used in frontent UI.',
|
|
2598
|
+
example: '1.33.x (Always latest 1.33 patch version)'
|
|
2599
|
+
}
|
|
2600
|
+
},
|
|
2601
|
+
required: [
|
|
2602
|
+
'id',
|
|
2603
|
+
'label'
|
|
2604
|
+
],
|
|
2605
|
+
additionalProperties: false
|
|
2606
|
+
},
|
|
2607
|
+
minItems: 1,
|
|
2608
|
+
description: 'List of CFKE control plane versions available for the organization.'
|
|
2609
|
+
},
|
|
2610
|
+
cfcr_storage_gb: {
|
|
2611
|
+
type: 'integer',
|
|
2612
|
+
minimum: -1,
|
|
2613
|
+
description: 'Organization-level maximum CFCR storage volume in GB. -1 means no limit.',
|
|
2614
|
+
example: 500
|
|
2615
|
+
}
|
|
2616
|
+
},
|
|
2617
|
+
required: [
|
|
2618
|
+
'basic_clusters_max',
|
|
2619
|
+
'basic_clusters_available',
|
|
2620
|
+
'pro_clusters_max',
|
|
2621
|
+
'pro_clusters_available',
|
|
2622
|
+
'enterprise_clusters_max',
|
|
2623
|
+
'enterprise_clusters_available',
|
|
2624
|
+
'fleets_max',
|
|
2625
|
+
'cluster_tiers',
|
|
2626
|
+
'regions',
|
|
2627
|
+
'versions',
|
|
2628
|
+
'cfcr_storage_gb'
|
|
2629
|
+
],
|
|
2630
|
+
additionalProperties: false,
|
|
2631
|
+
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.'
|
|
2632
|
+
},
|
|
2633
|
+
status: {
|
|
2634
|
+
type: 'string',
|
|
2635
|
+
description: 'Status of the organization. Can be `active` or `closed`, or `suspended`.',
|
|
2636
|
+
enum: [
|
|
2637
|
+
'active',
|
|
2638
|
+
'closed',
|
|
2639
|
+
'suspended'
|
|
2640
|
+
]
|
|
2641
|
+
},
|
|
2642
|
+
verification: {
|
|
2643
|
+
type: 'string',
|
|
2644
|
+
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.',
|
|
2645
|
+
example: 'verified',
|
|
2646
|
+
enum: [
|
|
2647
|
+
'none',
|
|
2648
|
+
'submitted',
|
|
2649
|
+
'verified'
|
|
2650
|
+
]
|
|
2651
|
+
}
|
|
2652
|
+
},
|
|
2653
|
+
required: [
|
|
2654
|
+
'id',
|
|
2655
|
+
'type',
|
|
2656
|
+
'date_created',
|
|
2657
|
+
'quota',
|
|
2658
|
+
'status',
|
|
2659
|
+
'verification'
|
|
2660
|
+
],
|
|
2661
|
+
additionalProperties: false
|
|
2662
|
+
};
|
|
2663
|
+
export const PaymentMethodSchema = {
|
|
2664
|
+
type: 'object',
|
|
2665
|
+
properties: {
|
|
2666
|
+
id: {
|
|
2667
|
+
type: 'string',
|
|
2668
|
+
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.',
|
|
2669
|
+
example: 'pm_1MtwBwLkdIwHu7ix28a3tqPa'
|
|
2670
|
+
},
|
|
2671
|
+
type: {
|
|
2672
|
+
type: 'string',
|
|
2673
|
+
description: 'Payment method type. `card`, `sepa_debit` for SEPA Direct Debit (business accounts only), or `bank_transfer` for paying invoices by bank transfer.',
|
|
2674
|
+
example: 'card',
|
|
2675
|
+
enum: [
|
|
2676
|
+
'card',
|
|
2677
|
+
'sepa_debit',
|
|
2678
|
+
'bank_transfer'
|
|
2679
|
+
]
|
|
2680
|
+
},
|
|
2681
|
+
last4: {
|
|
2682
|
+
type: 'string',
|
|
2683
|
+
nullable: true,
|
|
2684
|
+
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.',
|
|
2685
|
+
example: '4242'
|
|
2686
|
+
},
|
|
2687
|
+
exp_month: {
|
|
2688
|
+
type: 'integer',
|
|
2689
|
+
minimum: 1,
|
|
2690
|
+
maximum: 12,
|
|
2691
|
+
nullable: true,
|
|
2692
|
+
description: 'Two-digit number representing the card\'s expiration month. Null for SEPA Direct Debit and bank transfer.',
|
|
2693
|
+
example: 12
|
|
2694
|
+
},
|
|
2695
|
+
exp_year: {
|
|
2696
|
+
type: 'integer',
|
|
2697
|
+
nullable: true,
|
|
2698
|
+
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.',
|
|
2699
|
+
example: 2028
|
|
2700
|
+
},
|
|
2701
|
+
brand: {
|
|
2702
|
+
type: 'string',
|
|
2703
|
+
nullable: true,
|
|
2704
|
+
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.',
|
|
2705
|
+
example: 'visa'
|
|
2706
|
+
},
|
|
2707
|
+
iban: {
|
|
2708
|
+
type: 'string',
|
|
2709
|
+
nullable: true,
|
|
2710
|
+
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.',
|
|
2711
|
+
example: 'DE11243015658023127510'
|
|
2712
|
+
},
|
|
2713
|
+
bic: {
|
|
2714
|
+
type: 'string',
|
|
2715
|
+
nullable: true,
|
|
2716
|
+
description: 'BIC/SWIFT of the destination bank for bank transfers. Set only for `bank_transfer`; null otherwise.',
|
|
2717
|
+
example: 'SOGEDEFFXXX'
|
|
2718
|
+
},
|
|
2719
|
+
account_holder_name: {
|
|
2720
|
+
type: 'string',
|
|
2721
|
+
nullable: true,
|
|
2722
|
+
description: 'Account holder name of the destination bank account for bank transfers. Set only for `bank_transfer`; null otherwise.',
|
|
2723
|
+
example: 'Cloudfleet GmbH'
|
|
2724
|
+
},
|
|
2725
|
+
is_default: {
|
|
2726
|
+
type: 'boolean',
|
|
2727
|
+
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).',
|
|
2728
|
+
example: true
|
|
2729
|
+
}
|
|
2730
|
+
},
|
|
2731
|
+
required: [
|
|
2732
|
+
'id',
|
|
2733
|
+
'type',
|
|
2734
|
+
'last4',
|
|
2735
|
+
'exp_month',
|
|
2736
|
+
'exp_year',
|
|
2737
|
+
'brand',
|
|
2738
|
+
'iban',
|
|
2739
|
+
'bic',
|
|
2740
|
+
'account_holder_name',
|
|
2741
|
+
'is_default'
|
|
2742
|
+
],
|
|
2743
|
+
additionalProperties: false
|
|
2744
|
+
};
|
|
2745
|
+
export const PlatformQuotaSchema = {
|
|
2746
|
+
type: 'object',
|
|
2747
|
+
properties: {
|
|
2748
|
+
basic_clusters_max: {
|
|
2749
|
+
type: 'integer',
|
|
2750
|
+
minimum: 0,
|
|
2751
|
+
description: 'Maximum number of Basic clusters that can be created.',
|
|
2752
|
+
example: 999
|
|
2753
|
+
},
|
|
2754
|
+
basic_clusters_available: {
|
|
2755
|
+
type: 'integer',
|
|
2756
|
+
description: 'Available number of Basic clusters that can be created.',
|
|
2757
|
+
example: 999
|
|
2758
|
+
},
|
|
2759
|
+
pro_clusters_max: {
|
|
2760
|
+
type: 'integer',
|
|
2761
|
+
minimum: 0,
|
|
2762
|
+
description: 'Maximum number of Pro clusters that can be created.',
|
|
2763
|
+
example: 999
|
|
2764
|
+
},
|
|
2765
|
+
pro_clusters_available: {
|
|
2766
|
+
type: 'integer',
|
|
2767
|
+
description: 'Available number of Pro clusters that can be created.',
|
|
2768
|
+
example: 999
|
|
2769
|
+
},
|
|
2770
|
+
enterprise_clusters_max: {
|
|
2771
|
+
type: 'integer',
|
|
2772
|
+
minimum: 0,
|
|
2773
|
+
description: 'Maximum number of Enterprise clusters that can be created.',
|
|
2774
|
+
example: 999
|
|
2775
|
+
},
|
|
2776
|
+
enterprise_clusters_available: {
|
|
2777
|
+
type: 'integer',
|
|
2778
|
+
description: 'Available number of Enterprise clusters that can be created.',
|
|
2779
|
+
example: 999
|
|
2780
|
+
},
|
|
2781
|
+
fleets_max: {
|
|
2782
|
+
type: 'integer',
|
|
2783
|
+
minimum: 0,
|
|
2784
|
+
description: 'Maximum number of fleets that can be created per cluster.',
|
|
2785
|
+
example: 999
|
|
2786
|
+
},
|
|
2787
|
+
cluster_tiers: {
|
|
2788
|
+
type: 'array',
|
|
2789
|
+
items: {
|
|
2790
|
+
type: 'string',
|
|
2791
|
+
example: 'basic'
|
|
2792
|
+
},
|
|
2793
|
+
minItems: 0,
|
|
2794
|
+
description: 'List of Cloudfleet cluster tiers available for the organization.'
|
|
2795
|
+
},
|
|
2796
|
+
regions: {
|
|
2797
|
+
type: 'array',
|
|
2798
|
+
items: {
|
|
2799
|
+
type: 'string',
|
|
2800
|
+
example: 'northamerica-central-1a'
|
|
2801
|
+
},
|
|
2802
|
+
minItems: 1,
|
|
2803
|
+
description: 'List of Cloudfleet control plane regions available for the organization.'
|
|
2804
|
+
},
|
|
2805
|
+
versions: {
|
|
2806
|
+
type: 'array',
|
|
2807
|
+
items: {
|
|
2808
|
+
type: 'object',
|
|
2809
|
+
properties: {
|
|
2810
|
+
id: {
|
|
2811
|
+
type: 'string',
|
|
2812
|
+
description: 'Id of the control plane version. Used in API calls.',
|
|
2813
|
+
example: '1.33.x-cfke.x'
|
|
2814
|
+
},
|
|
2815
|
+
label: {
|
|
2816
|
+
type: 'string',
|
|
2817
|
+
description: 'Label of the control plane version. Used in frontent UI.',
|
|
2818
|
+
example: '1.33.x (Always latest 1.33 patch version)'
|
|
2819
|
+
}
|
|
2820
|
+
},
|
|
2821
|
+
required: [
|
|
2822
|
+
'id',
|
|
2823
|
+
'label'
|
|
2824
|
+
],
|
|
2825
|
+
additionalProperties: false
|
|
2826
|
+
},
|
|
2827
|
+
minItems: 1,
|
|
2828
|
+
description: 'List of CFKE control plane versions available for the organization.'
|
|
2829
|
+
},
|
|
2830
|
+
cfcr_storage_gb: {
|
|
2831
|
+
type: 'integer',
|
|
2832
|
+
minimum: -1,
|
|
2833
|
+
description: 'Organization-level maximum CFCR storage volume in GB. -1 means no limit.',
|
|
2834
|
+
example: 500
|
|
2835
|
+
}
|
|
2836
|
+
},
|
|
2837
|
+
required: [
|
|
2838
|
+
'basic_clusters_max',
|
|
2839
|
+
'basic_clusters_available',
|
|
2840
|
+
'pro_clusters_max',
|
|
2841
|
+
'pro_clusters_available',
|
|
2842
|
+
'enterprise_clusters_max',
|
|
2843
|
+
'enterprise_clusters_available',
|
|
2844
|
+
'fleets_max',
|
|
2845
|
+
'cluster_tiers',
|
|
2846
|
+
'regions',
|
|
2847
|
+
'versions',
|
|
2848
|
+
'cfcr_storage_gb'
|
|
2849
|
+
],
|
|
2850
|
+
additionalProperties: false
|
|
2851
|
+
};
|
|
2852
|
+
export const RegistryRepositorySchema = {
|
|
2853
|
+
type: 'object',
|
|
2854
|
+
properties: {
|
|
2855
|
+
name: {
|
|
2856
|
+
type: 'string',
|
|
2857
|
+
description: 'Repository name.',
|
|
2858
|
+
example: 'my-app'
|
|
2859
|
+
},
|
|
2860
|
+
region: {
|
|
2861
|
+
type: 'string',
|
|
2862
|
+
description: 'Registry region.',
|
|
2863
|
+
example: 'northamerica'
|
|
2864
|
+
},
|
|
2865
|
+
uri: {
|
|
2866
|
+
type: 'string',
|
|
2867
|
+
description: 'Full URI of the repository.',
|
|
2868
|
+
example: 'ssds123e-6651-4e5d-9c04-079f6532989b.northamerica.registry.cloudfleet.dev/my-app'
|
|
2869
|
+
}
|
|
2870
|
+
},
|
|
2871
|
+
required: [
|
|
2872
|
+
'name',
|
|
2873
|
+
'region',
|
|
2874
|
+
'uri'
|
|
2875
|
+
],
|
|
2876
|
+
additionalProperties: false
|
|
2877
|
+
};
|
|
2878
|
+
export const RegistryRepositoryWithTagsSchema = {
|
|
2879
|
+
type: 'object',
|
|
2880
|
+
properties: {
|
|
2881
|
+
name: {
|
|
2882
|
+
type: 'string',
|
|
2883
|
+
description: 'Repository name.',
|
|
2884
|
+
example: 'my-app'
|
|
2885
|
+
},
|
|
2886
|
+
region: {
|
|
2887
|
+
type: 'string',
|
|
2888
|
+
description: 'Registry region.',
|
|
2889
|
+
example: 'northamerica'
|
|
2890
|
+
},
|
|
2891
|
+
uri: {
|
|
2892
|
+
type: 'string',
|
|
2893
|
+
description: 'Full URI of the repository.',
|
|
2894
|
+
example: 'ssds123e-6651-4e5d-9c04-079f6532989b.northamerica.registry.cloudfleet.dev/my-app'
|
|
2895
|
+
},
|
|
2896
|
+
tags: {
|
|
2897
|
+
type: 'array',
|
|
2898
|
+
items: {
|
|
2899
|
+
type: 'object',
|
|
2900
|
+
properties: {
|
|
2901
|
+
name: {
|
|
2902
|
+
type: 'string',
|
|
2903
|
+
description: 'Tag name.',
|
|
2904
|
+
example: 'latest'
|
|
2905
|
+
},
|
|
2906
|
+
size: {
|
|
2907
|
+
type: 'number',
|
|
2908
|
+
format: 'float',
|
|
2909
|
+
description: 'Size of the tag in bytes.',
|
|
2910
|
+
example: 123456789
|
|
2911
|
+
},
|
|
2912
|
+
mediaType: {
|
|
2913
|
+
type: 'string',
|
|
2914
|
+
description: 'Media type of the manifest.',
|
|
2915
|
+
example: 'application/vnd.docker.distribution.manifest.v2+json'
|
|
2916
|
+
},
|
|
2917
|
+
platforms: {
|
|
2918
|
+
type: 'array',
|
|
2919
|
+
items: {
|
|
2920
|
+
type: 'string'
|
|
2921
|
+
},
|
|
2922
|
+
description: 'Array of platform strings for multi-arch images (e.g., linux/amd64, linux/arm64).',
|
|
2923
|
+
example: [
|
|
2924
|
+
'linux/amd64',
|
|
2925
|
+
'linux/arm64'
|
|
2926
|
+
]
|
|
2927
|
+
}
|
|
2928
|
+
},
|
|
2929
|
+
required: [
|
|
2930
|
+
'name',
|
|
2931
|
+
'size'
|
|
2932
|
+
],
|
|
2933
|
+
additionalProperties: false
|
|
2934
|
+
},
|
|
2935
|
+
description: 'Array of tags in the repository.'
|
|
2936
|
+
},
|
|
2937
|
+
totalSize: {
|
|
2938
|
+
type: 'number',
|
|
2939
|
+
format: 'float',
|
|
2940
|
+
description: 'Total size of all tags in the repository in bytes.',
|
|
2941
|
+
example: 987654321
|
|
2942
|
+
}
|
|
2943
|
+
},
|
|
2944
|
+
required: [
|
|
2945
|
+
'name',
|
|
2946
|
+
'region',
|
|
2947
|
+
'uri',
|
|
2948
|
+
'tags',
|
|
2949
|
+
'totalSize'
|
|
2950
|
+
],
|
|
2951
|
+
additionalProperties: false
|
|
2952
|
+
};
|
|
2953
|
+
export const RegistryTagSchema = {
|
|
2954
|
+
type: 'object',
|
|
2955
|
+
properties: {
|
|
2956
|
+
name: {
|
|
2957
|
+
type: 'string',
|
|
2958
|
+
description: 'Tag name.',
|
|
2959
|
+
example: 'latest'
|
|
2960
|
+
},
|
|
2961
|
+
digest: {
|
|
2962
|
+
type: 'string',
|
|
2963
|
+
description: 'Manifest digest for pulling by digest.',
|
|
2964
|
+
example: 'sha256:abcd1234ef567890abcd1234ef567890abcd1234ef567890abcd1234ef567890'
|
|
2965
|
+
},
|
|
2966
|
+
mediaType: {
|
|
2967
|
+
type: 'string',
|
|
2968
|
+
description: 'Media type of the manifest.',
|
|
2969
|
+
example: 'application/vnd.docker.distribution.manifest.v2+json'
|
|
2970
|
+
},
|
|
2971
|
+
config: {
|
|
2972
|
+
type: 'object',
|
|
2973
|
+
properties: {
|
|
2974
|
+
size: {
|
|
2975
|
+
type: 'number',
|
|
2976
|
+
format: 'float',
|
|
2977
|
+
description: 'Size of the config in bytes.',
|
|
2978
|
+
example: 1234
|
|
2979
|
+
}
|
|
2980
|
+
},
|
|
2981
|
+
required: [
|
|
2982
|
+
'size'
|
|
2983
|
+
],
|
|
2984
|
+
additionalProperties: false,
|
|
2985
|
+
description: 'Manifest config metadata.'
|
|
2986
|
+
},
|
|
2987
|
+
layers: {
|
|
2988
|
+
type: 'array',
|
|
2989
|
+
items: {
|
|
2990
|
+
type: 'object',
|
|
2991
|
+
properties: {
|
|
2992
|
+
digest: {
|
|
2993
|
+
type: 'string',
|
|
2994
|
+
description: 'Digest of the layer.',
|
|
2995
|
+
example: 'sha256:abcd1234ef567890abcd1234ef567890abcd1234ef567890abcd1234ef567890'
|
|
2996
|
+
},
|
|
2997
|
+
size: {
|
|
2998
|
+
type: 'number',
|
|
2999
|
+
format: 'float',
|
|
3000
|
+
description: 'Size of the layer in bytes.',
|
|
3001
|
+
example: 5678
|
|
3002
|
+
}
|
|
3003
|
+
},
|
|
3004
|
+
required: [
|
|
3005
|
+
'size'
|
|
3006
|
+
],
|
|
3007
|
+
additionalProperties: false
|
|
3008
|
+
},
|
|
3009
|
+
description: 'Array of layer metadata.'
|
|
3010
|
+
},
|
|
3011
|
+
manifests: {
|
|
3012
|
+
type: 'array',
|
|
3013
|
+
items: {
|
|
3014
|
+
type: 'object',
|
|
3015
|
+
properties: {
|
|
3016
|
+
digest: {
|
|
3017
|
+
type: 'string',
|
|
3018
|
+
description: 'Digest of the manifest.',
|
|
3019
|
+
example: 'sha256:abcd1234ef567890abcd1234ef567890abcd1234ef567890abcd1234ef567890'
|
|
3020
|
+
},
|
|
3021
|
+
platform: {
|
|
3022
|
+
type: 'object',
|
|
3023
|
+
properties: {
|
|
3024
|
+
architecture: {
|
|
3025
|
+
type: 'string',
|
|
3026
|
+
description: 'Architecture of the platform.',
|
|
3027
|
+
example: 'amd64'
|
|
3028
|
+
},
|
|
3029
|
+
os: {
|
|
3030
|
+
type: 'string',
|
|
3031
|
+
description: 'Operating system of the platform.',
|
|
3032
|
+
example: 'linux'
|
|
3033
|
+
},
|
|
3034
|
+
variant: {
|
|
3035
|
+
type: 'string',
|
|
3036
|
+
description: 'Variant of the platform (e.g., v7, v8 for ARM).',
|
|
3037
|
+
example: 'v8'
|
|
3038
|
+
}
|
|
3039
|
+
},
|
|
3040
|
+
required: [
|
|
3041
|
+
'architecture',
|
|
3042
|
+
'os'
|
|
3043
|
+
],
|
|
3044
|
+
additionalProperties: false,
|
|
3045
|
+
description: 'Platform information for the manifest.'
|
|
3046
|
+
},
|
|
3047
|
+
layers: {
|
|
3048
|
+
type: 'array',
|
|
3049
|
+
items: {
|
|
3050
|
+
type: 'object',
|
|
3051
|
+
properties: {
|
|
3052
|
+
digest: {
|
|
3053
|
+
type: 'string',
|
|
3054
|
+
description: 'Digest of the layer.',
|
|
3055
|
+
example: 'sha256:abcd1234ef567890abcd1234ef567890abcd1234ef567890abcd1234ef567890'
|
|
3056
|
+
},
|
|
3057
|
+
size: {
|
|
3058
|
+
type: 'number',
|
|
3059
|
+
format: 'float',
|
|
3060
|
+
description: 'Size of the layer in bytes.',
|
|
3061
|
+
example: 5678
|
|
3062
|
+
}
|
|
3063
|
+
},
|
|
3064
|
+
required: [
|
|
3065
|
+
'size'
|
|
3066
|
+
],
|
|
3067
|
+
additionalProperties: false
|
|
3068
|
+
},
|
|
3069
|
+
description: 'Layers for this platform.'
|
|
3070
|
+
},
|
|
3071
|
+
size: {
|
|
3072
|
+
type: 'number',
|
|
3073
|
+
format: 'float',
|
|
3074
|
+
description: 'Total size of this platform manifest in bytes.',
|
|
3075
|
+
example: 12345678
|
|
3076
|
+
}
|
|
3077
|
+
},
|
|
3078
|
+
required: [
|
|
3079
|
+
'digest'
|
|
3080
|
+
],
|
|
3081
|
+
additionalProperties: false
|
|
3082
|
+
},
|
|
3083
|
+
description: 'Array of manifests for multi-arch images.'
|
|
3084
|
+
},
|
|
3085
|
+
size: {
|
|
3086
|
+
type: 'number',
|
|
3087
|
+
format: 'float',
|
|
3088
|
+
description: 'Total size of the tag in bytes.',
|
|
3089
|
+
example: 123456789
|
|
3090
|
+
},
|
|
3091
|
+
region: {
|
|
3092
|
+
type: 'string',
|
|
3093
|
+
description: 'Registry region.',
|
|
3094
|
+
example: 'northamerica'
|
|
3095
|
+
},
|
|
3096
|
+
repository: {
|
|
3097
|
+
type: 'string',
|
|
3098
|
+
description: 'Repository name.',
|
|
3099
|
+
example: 'my-app'
|
|
3100
|
+
},
|
|
3101
|
+
uri: {
|
|
3102
|
+
type: 'string',
|
|
3103
|
+
description: 'Full URI of the tag.',
|
|
3104
|
+
example: 'ssds123e-6651-4e5d-9c04-079f6532989b.northamerica.registry.cloudfleet.dev/my-app:latest'
|
|
3105
|
+
}
|
|
3106
|
+
},
|
|
3107
|
+
required: [
|
|
3108
|
+
'name',
|
|
3109
|
+
'digest',
|
|
3110
|
+
'size',
|
|
3111
|
+
'region',
|
|
3112
|
+
'repository',
|
|
3113
|
+
'uri'
|
|
3114
|
+
],
|
|
3115
|
+
additionalProperties: false
|
|
3116
|
+
};
|
|
3117
|
+
export const TicketAttachmentSchema = {
|
|
3118
|
+
type: 'object',
|
|
3119
|
+
properties: {
|
|
3120
|
+
id: {
|
|
3121
|
+
type: 'string',
|
|
3122
|
+
description: 'Unique identifier of the attachment (Mongo ObjectId).',
|
|
3123
|
+
example: '60c72b2f9f1b2c001f8e4d3c'
|
|
3124
|
+
},
|
|
3125
|
+
filename: {
|
|
3126
|
+
type: 'string',
|
|
3127
|
+
description: 'Original filename as uploaded.',
|
|
3128
|
+
example: 'debug.log'
|
|
3129
|
+
},
|
|
3130
|
+
content_type: {
|
|
3131
|
+
type: 'string',
|
|
3132
|
+
description: 'MIME content type of the attachment.',
|
|
3133
|
+
example: 'text/plain'
|
|
3134
|
+
},
|
|
3135
|
+
size: {
|
|
3136
|
+
type: 'integer',
|
|
3137
|
+
description: 'Size of the attachment in bytes.',
|
|
3138
|
+
example: 12345
|
|
3139
|
+
}
|
|
3140
|
+
},
|
|
3141
|
+
required: [
|
|
3142
|
+
'id',
|
|
3143
|
+
'filename',
|
|
3144
|
+
'content_type',
|
|
3145
|
+
'size'
|
|
3146
|
+
],
|
|
3147
|
+
additionalProperties: false
|
|
3148
|
+
};
|
|
3149
|
+
export const TicketCreateInputSchema = {
|
|
3150
|
+
type: 'object',
|
|
3151
|
+
properties: {
|
|
3152
|
+
category: {
|
|
3153
|
+
type: 'string',
|
|
3154
|
+
description: 'Ticket category. Drives auto-assignment and may carry a subcategory in `properties`.',
|
|
3155
|
+
example: 'technical',
|
|
3156
|
+
enum: [
|
|
3157
|
+
'billing',
|
|
3158
|
+
'technical',
|
|
3159
|
+
'general'
|
|
3160
|
+
]
|
|
3161
|
+
},
|
|
3162
|
+
body: {
|
|
3163
|
+
type: 'string',
|
|
3164
|
+
maxLength: 50000,
|
|
3165
|
+
minLength: 1,
|
|
3166
|
+
pattern: '\\S',
|
|
3167
|
+
description: 'Initial message body in markdown. There is no separate subject — the first message body is the description.',
|
|
3168
|
+
example: 'My cluster cannot reach the registry. Logs attached.'
|
|
3169
|
+
},
|
|
3170
|
+
properties: {
|
|
3171
|
+
type: 'object',
|
|
3172
|
+
additionalProperties: true,
|
|
3173
|
+
description: 'Free-form key/value bag set by the UI (e.g. `subcategory`, `cluster_id`, `cluster_name`, `region`).',
|
|
3174
|
+
example: {
|
|
3175
|
+
subcategory: 'cluster-question',
|
|
3176
|
+
cluster_id: '60c72b2f9f1b2c001f8e4d3a'
|
|
3177
|
+
}
|
|
3178
|
+
}
|
|
3179
|
+
},
|
|
3180
|
+
required: [
|
|
3181
|
+
'category',
|
|
3182
|
+
'body'
|
|
3183
|
+
],
|
|
3184
|
+
additionalProperties: false
|
|
3185
|
+
};
|
|
3186
|
+
export const TicketListResponseSchema = {
|
|
3187
|
+
type: 'object',
|
|
3188
|
+
properties: {
|
|
3189
|
+
items: {
|
|
3190
|
+
type: 'array',
|
|
3191
|
+
items: {
|
|
3192
|
+
type: 'object',
|
|
3193
|
+
properties: {
|
|
3194
|
+
id: {
|
|
3195
|
+
type: 'string',
|
|
3196
|
+
description: 'Unique identifier of the ticket (Mongo ObjectId).',
|
|
3197
|
+
example: '60c72b2f9f1b2c001f8e4d3a'
|
|
3198
|
+
},
|
|
3199
|
+
status: {
|
|
3200
|
+
type: 'string',
|
|
3201
|
+
description: 'Current state of the ticket.',
|
|
3202
|
+
example: 'waiting_on_us',
|
|
3203
|
+
enum: [
|
|
3204
|
+
'waiting_on_us',
|
|
3205
|
+
'waiting_on_user',
|
|
3206
|
+
'closed'
|
|
3207
|
+
]
|
|
3208
|
+
},
|
|
3209
|
+
category: {
|
|
3210
|
+
type: 'string',
|
|
3211
|
+
description: 'Ticket category.',
|
|
3212
|
+
example: 'technical',
|
|
3213
|
+
enum: [
|
|
3214
|
+
'billing',
|
|
3215
|
+
'technical',
|
|
3216
|
+
'general'
|
|
3217
|
+
]
|
|
3218
|
+
},
|
|
3219
|
+
summary: {
|
|
3220
|
+
type: 'string',
|
|
3221
|
+
description: 'First 128 characters of the initial message body, with markdown formatting and newlines stripped. Used for ticket list previews.',
|
|
3222
|
+
example: 'My cluster cannot reach the registry. Logs attached.'
|
|
3223
|
+
},
|
|
3224
|
+
closed_at: {
|
|
3225
|
+
type: 'string',
|
|
3226
|
+
format: 'date-time',
|
|
3227
|
+
nullable: true,
|
|
3228
|
+
description: 'Closure timestamp. Null while the ticket is open.',
|
|
3229
|
+
example: '2026-05-18T16:08:14.338Z'
|
|
3230
|
+
},
|
|
3231
|
+
date_created: {
|
|
3232
|
+
type: 'string',
|
|
3233
|
+
format: 'date-time',
|
|
3234
|
+
description: 'Creation date of the ticket. ISO 8601 UTC.',
|
|
3235
|
+
example: '2026-05-11T16:08:14.338Z'
|
|
3236
|
+
},
|
|
3237
|
+
date_updated: {
|
|
3238
|
+
type: 'string',
|
|
3239
|
+
format: 'date-time',
|
|
3240
|
+
description: 'Last update date of the ticket. ISO 8601 UTC.',
|
|
3241
|
+
example: '2026-05-11T16:08:14.338Z'
|
|
3242
|
+
},
|
|
3243
|
+
messages: {
|
|
3244
|
+
type: 'array',
|
|
3245
|
+
items: {
|
|
3246
|
+
type: 'object',
|
|
3247
|
+
properties: {
|
|
3248
|
+
id: {
|
|
3249
|
+
type: 'string',
|
|
3250
|
+
description: 'Unique identifier of the message (Mongo ObjectId).',
|
|
3251
|
+
example: '60c72b2f9f1b2c001f8e4d3b'
|
|
3252
|
+
},
|
|
3253
|
+
type: {
|
|
3254
|
+
type: 'string',
|
|
3255
|
+
description: 'Message type. Internal notes are filtered out of customer-facing responses.',
|
|
3256
|
+
example: 'customer_reply',
|
|
3257
|
+
enum: [
|
|
3258
|
+
'customer_reply',
|
|
3259
|
+
'agent_reply'
|
|
3260
|
+
]
|
|
3261
|
+
},
|
|
3262
|
+
body: {
|
|
3263
|
+
type: 'string',
|
|
3264
|
+
description: 'Message body in markdown.',
|
|
3265
|
+
example: 'Thanks — that resolved it on my side.'
|
|
3266
|
+
},
|
|
3267
|
+
author_first_name: {
|
|
3268
|
+
type: 'string',
|
|
3269
|
+
nullable: true,
|
|
3270
|
+
description: 'First name of the author. Null when not provided.',
|
|
3271
|
+
example: 'Jane'
|
|
3272
|
+
},
|
|
3273
|
+
author_last_name: {
|
|
3274
|
+
type: 'string',
|
|
3275
|
+
nullable: true,
|
|
3276
|
+
description: 'Last name of the author. Null when not provided.',
|
|
3277
|
+
example: 'Doe'
|
|
3278
|
+
},
|
|
3279
|
+
attachments: {
|
|
3280
|
+
type: 'array',
|
|
3281
|
+
items: {
|
|
3282
|
+
type: 'object',
|
|
3283
|
+
properties: {
|
|
3284
|
+
id: {
|
|
3285
|
+
type: 'string',
|
|
3286
|
+
description: 'Unique identifier of the attachment (Mongo ObjectId).',
|
|
3287
|
+
example: '60c72b2f9f1b2c001f8e4d3c'
|
|
3288
|
+
},
|
|
3289
|
+
filename: {
|
|
3290
|
+
type: 'string',
|
|
3291
|
+
description: 'Original filename as uploaded.',
|
|
3292
|
+
example: 'debug.log'
|
|
3293
|
+
},
|
|
3294
|
+
content_type: {
|
|
3295
|
+
type: 'string',
|
|
3296
|
+
description: 'MIME content type of the attachment.',
|
|
3297
|
+
example: 'text/plain'
|
|
3298
|
+
},
|
|
3299
|
+
size: {
|
|
3300
|
+
type: 'integer',
|
|
3301
|
+
description: 'Size of the attachment in bytes.',
|
|
3302
|
+
example: 12345
|
|
3303
|
+
}
|
|
3304
|
+
},
|
|
3305
|
+
required: [
|
|
3306
|
+
'id',
|
|
3307
|
+
'filename',
|
|
3308
|
+
'content_type',
|
|
3309
|
+
'size'
|
|
3310
|
+
],
|
|
3311
|
+
additionalProperties: false
|
|
3312
|
+
},
|
|
3313
|
+
description: 'Attachments associated with this message.',
|
|
3314
|
+
example: []
|
|
3315
|
+
},
|
|
3316
|
+
date_created: {
|
|
3317
|
+
type: 'string',
|
|
3318
|
+
format: 'date-time',
|
|
3319
|
+
description: 'Creation date of the message. ISO 8601 UTC.',
|
|
3320
|
+
example: '2026-05-11T16:08:14.338Z'
|
|
3321
|
+
}
|
|
3322
|
+
},
|
|
3323
|
+
required: [
|
|
3324
|
+
'id',
|
|
3325
|
+
'type',
|
|
3326
|
+
'body',
|
|
3327
|
+
'date_created'
|
|
3328
|
+
],
|
|
3329
|
+
additionalProperties: false
|
|
3330
|
+
},
|
|
3331
|
+
description: 'Messages on the ticket in chronological order. Internal notes are excluded. Returned by the detail endpoint only.'
|
|
3332
|
+
}
|
|
3333
|
+
},
|
|
3334
|
+
required: [
|
|
3335
|
+
'id',
|
|
3336
|
+
'status',
|
|
3337
|
+
'category',
|
|
3338
|
+
'summary',
|
|
3339
|
+
'date_created',
|
|
3340
|
+
'date_updated'
|
|
3341
|
+
],
|
|
3342
|
+
additionalProperties: false
|
|
3343
|
+
},
|
|
3344
|
+
description: 'Tickets for the organization, ordered newest first. Messages are omitted from list responses.'
|
|
3345
|
+
}
|
|
3346
|
+
},
|
|
3347
|
+
required: [
|
|
3348
|
+
'items'
|
|
3349
|
+
],
|
|
3350
|
+
additionalProperties: false
|
|
3351
|
+
};
|
|
3352
|
+
export const TicketMessageInputSchema = {
|
|
3353
|
+
type: 'object',
|
|
3354
|
+
properties: {
|
|
3355
|
+
body: {
|
|
3356
|
+
type: 'string',
|
|
3357
|
+
maxLength: 50000,
|
|
3358
|
+
minLength: 1,
|
|
3359
|
+
pattern: '\\S',
|
|
3360
|
+
description: 'Reply body in markdown.',
|
|
3361
|
+
example: 'Thanks — that resolved it on my side.'
|
|
3362
|
+
}
|
|
3363
|
+
},
|
|
3364
|
+
required: [
|
|
3365
|
+
'body'
|
|
3366
|
+
],
|
|
3367
|
+
additionalProperties: false
|
|
3368
|
+
};
|
|
3369
|
+
export const TicketMessageSchema = {
|
|
3370
|
+
type: 'object',
|
|
3371
|
+
properties: {
|
|
3372
|
+
id: {
|
|
3373
|
+
type: 'string',
|
|
3374
|
+
description: 'Unique identifier of the message (Mongo ObjectId).',
|
|
3375
|
+
example: '60c72b2f9f1b2c001f8e4d3b'
|
|
3376
|
+
},
|
|
3377
|
+
type: {
|
|
3378
|
+
type: 'string',
|
|
3379
|
+
description: 'Message type. Internal notes are filtered out of customer-facing responses.',
|
|
3380
|
+
example: 'customer_reply',
|
|
3381
|
+
enum: [
|
|
3382
|
+
'customer_reply',
|
|
3383
|
+
'agent_reply'
|
|
3384
|
+
]
|
|
3385
|
+
},
|
|
3386
|
+
body: {
|
|
3387
|
+
type: 'string',
|
|
3388
|
+
description: 'Message body in markdown.',
|
|
3389
|
+
example: 'Thanks — that resolved it on my side.'
|
|
3390
|
+
},
|
|
3391
|
+
author_first_name: {
|
|
3392
|
+
type: 'string',
|
|
3393
|
+
description: 'First name of the author. Null when not provided.',
|
|
3394
|
+
example: 'Jane'
|
|
3395
|
+
},
|
|
3396
|
+
author_last_name: {
|
|
3397
|
+
type: 'string',
|
|
3398
|
+
description: 'Last name of the author. Null when not provided.',
|
|
3399
|
+
example: 'Doe'
|
|
3400
|
+
},
|
|
3401
|
+
attachments: {
|
|
3402
|
+
type: 'array',
|
|
3403
|
+
items: {
|
|
3404
|
+
type: 'object',
|
|
3405
|
+
properties: {
|
|
3406
|
+
id: {
|
|
3407
|
+
type: 'string',
|
|
3408
|
+
description: 'Unique identifier of the attachment (Mongo ObjectId).',
|
|
3409
|
+
example: '60c72b2f9f1b2c001f8e4d3c'
|
|
1331
3410
|
},
|
|
1332
|
-
|
|
1333
|
-
description: 'List of Cloudfleet cluster tiers available for the organization.'
|
|
1334
|
-
},
|
|
1335
|
-
regions: {
|
|
1336
|
-
type: 'array',
|
|
1337
|
-
items: {
|
|
3411
|
+
filename: {
|
|
1338
3412
|
type: 'string',
|
|
1339
|
-
|
|
3413
|
+
description: 'Original filename as uploaded.',
|
|
3414
|
+
example: 'debug.log'
|
|
1340
3415
|
},
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
type: 'array',
|
|
1346
|
-
items: {
|
|
1347
|
-
type: 'object',
|
|
1348
|
-
properties: {
|
|
1349
|
-
id: {
|
|
1350
|
-
type: 'string',
|
|
1351
|
-
description: 'Id of the control plane version. Used in API calls.',
|
|
1352
|
-
example: '1.29.x-cfke.x'
|
|
1353
|
-
},
|
|
1354
|
-
label: {
|
|
1355
|
-
type: 'string',
|
|
1356
|
-
description: 'Label of the control plane version. Used in frontent UI.',
|
|
1357
|
-
example: '1.29.x (Always latest 1.29 patch version)'
|
|
1358
|
-
}
|
|
1359
|
-
},
|
|
1360
|
-
required: ['id', 'label'],
|
|
1361
|
-
additionalProperties: false
|
|
3416
|
+
content_type: {
|
|
3417
|
+
type: 'string',
|
|
3418
|
+
description: 'MIME content type of the attachment.',
|
|
3419
|
+
example: 'text/plain'
|
|
1362
3420
|
},
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
|
|
3421
|
+
size: {
|
|
3422
|
+
type: 'integer',
|
|
3423
|
+
description: 'Size of the attachment in bytes.',
|
|
3424
|
+
example: 12345
|
|
3425
|
+
}
|
|
3426
|
+
},
|
|
3427
|
+
required: [
|
|
3428
|
+
'id',
|
|
3429
|
+
'filename',
|
|
3430
|
+
'content_type',
|
|
3431
|
+
'size'
|
|
3432
|
+
],
|
|
3433
|
+
additionalProperties: false
|
|
1366
3434
|
},
|
|
1367
|
-
|
|
1368
|
-
|
|
1369
|
-
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.'
|
|
3435
|
+
description: 'Attachments associated with this message.',
|
|
3436
|
+
example: []
|
|
1370
3437
|
},
|
|
1371
|
-
|
|
3438
|
+
date_created: {
|
|
1372
3439
|
type: 'string',
|
|
1373
|
-
|
|
1374
|
-
|
|
3440
|
+
format: 'date-time',
|
|
3441
|
+
description: 'Creation date of the message. ISO 8601 UTC.',
|
|
3442
|
+
example: '2026-05-11T16:08:14.338Z'
|
|
1375
3443
|
}
|
|
1376
3444
|
},
|
|
1377
|
-
required: [
|
|
3445
|
+
required: [
|
|
3446
|
+
'id',
|
|
3447
|
+
'type',
|
|
3448
|
+
'body',
|
|
3449
|
+
'date_created'
|
|
3450
|
+
],
|
|
1378
3451
|
additionalProperties: false
|
|
1379
3452
|
};
|
|
1380
|
-
export const
|
|
3453
|
+
export const TicketSchema = {
|
|
1381
3454
|
type: 'object',
|
|
1382
3455
|
properties: {
|
|
1383
3456
|
id: {
|
|
1384
3457
|
type: 'string',
|
|
1385
|
-
|
|
1386
|
-
|
|
1387
|
-
example: 'e94d30ec-a2dd-4dcb-832c-ac2be144ba91'
|
|
3458
|
+
description: 'Unique identifier of the ticket (Mongo ObjectId).',
|
|
3459
|
+
example: '60c72b2f9f1b2c001f8e4d3a'
|
|
1388
3460
|
},
|
|
1389
|
-
|
|
1390
|
-
type: '
|
|
1391
|
-
description: '
|
|
1392
|
-
example:
|
|
3461
|
+
status: {
|
|
3462
|
+
type: 'string',
|
|
3463
|
+
description: 'Current state of the ticket.',
|
|
3464
|
+
example: 'waiting_on_us',
|
|
3465
|
+
enum: [
|
|
3466
|
+
'waiting_on_us',
|
|
3467
|
+
'waiting_on_user',
|
|
3468
|
+
'closed'
|
|
3469
|
+
]
|
|
1393
3470
|
},
|
|
1394
|
-
|
|
3471
|
+
category: {
|
|
1395
3472
|
type: 'string',
|
|
1396
|
-
|
|
1397
|
-
|
|
1398
|
-
|
|
1399
|
-
|
|
3473
|
+
description: 'Ticket category.',
|
|
3474
|
+
example: 'technical',
|
|
3475
|
+
enum: [
|
|
3476
|
+
'billing',
|
|
3477
|
+
'technical',
|
|
3478
|
+
'general'
|
|
3479
|
+
]
|
|
1400
3480
|
},
|
|
1401
|
-
|
|
3481
|
+
summary: {
|
|
1402
3482
|
type: 'string',
|
|
1403
|
-
|
|
1404
|
-
|
|
1405
|
-
example: '4242'
|
|
3483
|
+
description: 'First 128 characters of the initial message body, with markdown formatting and newlines stripped. Used for ticket list previews.',
|
|
3484
|
+
example: 'My cluster cannot reach the registry. Logs attached.'
|
|
1406
3485
|
},
|
|
1407
|
-
|
|
1408
|
-
type: '
|
|
1409
|
-
|
|
1410
|
-
|
|
1411
|
-
|
|
1412
|
-
description: "Two-digit number representing the card's expiration month.",
|
|
1413
|
-
example: '12'
|
|
3486
|
+
closed_at: {
|
|
3487
|
+
type: 'string',
|
|
3488
|
+
format: 'date-time',
|
|
3489
|
+
description: 'Closure timestamp. Null while the ticket is open.',
|
|
3490
|
+
example: '2026-05-18T16:08:14.338Z'
|
|
1414
3491
|
},
|
|
1415
|
-
|
|
1416
|
-
type: '
|
|
1417
|
-
|
|
1418
|
-
|
|
1419
|
-
|
|
1420
|
-
example: '2028'
|
|
3492
|
+
date_created: {
|
|
3493
|
+
type: 'string',
|
|
3494
|
+
format: 'date-time',
|
|
3495
|
+
description: 'Creation date of the ticket. ISO 8601 UTC.',
|
|
3496
|
+
example: '2026-05-11T16:08:14.338Z'
|
|
1421
3497
|
},
|
|
1422
|
-
|
|
3498
|
+
date_updated: {
|
|
1423
3499
|
type: 'string',
|
|
1424
|
-
|
|
1425
|
-
description: '
|
|
1426
|
-
example: '
|
|
1427
|
-
|
|
3500
|
+
format: 'date-time',
|
|
3501
|
+
description: 'Last update date of the ticket. ISO 8601 UTC.',
|
|
3502
|
+
example: '2026-05-11T16:08:14.338Z'
|
|
3503
|
+
},
|
|
3504
|
+
messages: {
|
|
3505
|
+
type: 'array',
|
|
3506
|
+
items: {
|
|
3507
|
+
type: 'object',
|
|
3508
|
+
properties: {
|
|
3509
|
+
id: {
|
|
3510
|
+
type: 'string',
|
|
3511
|
+
description: 'Unique identifier of the message (Mongo ObjectId).',
|
|
3512
|
+
example: '60c72b2f9f1b2c001f8e4d3b'
|
|
3513
|
+
},
|
|
3514
|
+
type: {
|
|
3515
|
+
type: 'string',
|
|
3516
|
+
description: 'Message type. Internal notes are filtered out of customer-facing responses.',
|
|
3517
|
+
example: 'customer_reply',
|
|
3518
|
+
enum: [
|
|
3519
|
+
'customer_reply',
|
|
3520
|
+
'agent_reply'
|
|
3521
|
+
]
|
|
3522
|
+
},
|
|
3523
|
+
body: {
|
|
3524
|
+
type: 'string',
|
|
3525
|
+
description: 'Message body in markdown.',
|
|
3526
|
+
example: 'Thanks — that resolved it on my side.'
|
|
3527
|
+
},
|
|
3528
|
+
author_first_name: {
|
|
3529
|
+
type: 'string',
|
|
3530
|
+
description: 'First name of the author. Null when not provided.',
|
|
3531
|
+
example: 'Jane'
|
|
3532
|
+
},
|
|
3533
|
+
author_last_name: {
|
|
3534
|
+
type: 'string',
|
|
3535
|
+
description: 'Last name of the author. Null when not provided.',
|
|
3536
|
+
example: 'Doe'
|
|
3537
|
+
},
|
|
3538
|
+
attachments: {
|
|
3539
|
+
type: 'array',
|
|
3540
|
+
items: {
|
|
3541
|
+
type: 'object',
|
|
3542
|
+
properties: {
|
|
3543
|
+
id: {
|
|
3544
|
+
type: 'string',
|
|
3545
|
+
description: 'Unique identifier of the attachment (Mongo ObjectId).',
|
|
3546
|
+
example: '60c72b2f9f1b2c001f8e4d3c'
|
|
3547
|
+
},
|
|
3548
|
+
filename: {
|
|
3549
|
+
type: 'string',
|
|
3550
|
+
description: 'Original filename as uploaded.',
|
|
3551
|
+
example: 'debug.log'
|
|
3552
|
+
},
|
|
3553
|
+
content_type: {
|
|
3554
|
+
type: 'string',
|
|
3555
|
+
description: 'MIME content type of the attachment.',
|
|
3556
|
+
example: 'text/plain'
|
|
3557
|
+
},
|
|
3558
|
+
size: {
|
|
3559
|
+
type: 'integer',
|
|
3560
|
+
description: 'Size of the attachment in bytes.',
|
|
3561
|
+
example: 12345
|
|
3562
|
+
}
|
|
3563
|
+
},
|
|
3564
|
+
required: [
|
|
3565
|
+
'id',
|
|
3566
|
+
'filename',
|
|
3567
|
+
'content_type',
|
|
3568
|
+
'size'
|
|
3569
|
+
],
|
|
3570
|
+
additionalProperties: false
|
|
3571
|
+
},
|
|
3572
|
+
description: 'Attachments associated with this message.',
|
|
3573
|
+
example: []
|
|
3574
|
+
},
|
|
3575
|
+
date_created: {
|
|
3576
|
+
type: 'string',
|
|
3577
|
+
format: 'date-time',
|
|
3578
|
+
description: 'Creation date of the message. ISO 8601 UTC.',
|
|
3579
|
+
example: '2026-05-11T16:08:14.338Z'
|
|
3580
|
+
}
|
|
3581
|
+
},
|
|
3582
|
+
required: [
|
|
3583
|
+
'id',
|
|
3584
|
+
'type',
|
|
3585
|
+
'body',
|
|
3586
|
+
'date_created'
|
|
3587
|
+
],
|
|
3588
|
+
additionalProperties: false
|
|
3589
|
+
},
|
|
3590
|
+
description: 'Messages on the ticket in chronological order. Internal notes are excluded. Returned by the detail endpoint only.'
|
|
1428
3591
|
}
|
|
1429
3592
|
},
|
|
1430
|
-
required: [
|
|
3593
|
+
required: [
|
|
3594
|
+
'id',
|
|
3595
|
+
'status',
|
|
3596
|
+
'category',
|
|
3597
|
+
'summary',
|
|
3598
|
+
'date_created',
|
|
3599
|
+
'date_updated'
|
|
3600
|
+
],
|
|
1431
3601
|
additionalProperties: false
|
|
1432
3602
|
};
|
|
1433
3603
|
export const TokenCreateInputSchema = {
|
|
@@ -1445,10 +3615,16 @@ export const TokenCreateInputSchema = {
|
|
|
1445
3615
|
type: 'string',
|
|
1446
3616
|
description: 'Role assumed by the token.',
|
|
1447
3617
|
example: 'User',
|
|
1448
|
-
enum: [
|
|
3618
|
+
enum: [
|
|
3619
|
+
'Administrator',
|
|
3620
|
+
'User'
|
|
3621
|
+
]
|
|
1449
3622
|
}
|
|
1450
3623
|
},
|
|
1451
|
-
required: [
|
|
3624
|
+
required: [
|
|
3625
|
+
'name',
|
|
3626
|
+
'role'
|
|
3627
|
+
],
|
|
1452
3628
|
additionalProperties: false
|
|
1453
3629
|
};
|
|
1454
3630
|
export const TokenSchema = {
|
|
@@ -1466,7 +3642,10 @@ export const TokenSchema = {
|
|
|
1466
3642
|
type: 'string',
|
|
1467
3643
|
description: 'Role assumed by the token.',
|
|
1468
3644
|
example: 'User',
|
|
1469
|
-
enum: [
|
|
3645
|
+
enum: [
|
|
3646
|
+
'Administrator',
|
|
3647
|
+
'User'
|
|
3648
|
+
]
|
|
1470
3649
|
},
|
|
1471
3650
|
id: {
|
|
1472
3651
|
type: 'string',
|
|
@@ -1485,7 +3664,11 @@ export const TokenSchema = {
|
|
|
1485
3664
|
example: '2023-12-20T13:53:32.000Z'
|
|
1486
3665
|
}
|
|
1487
3666
|
},
|
|
1488
|
-
required: [
|
|
3667
|
+
required: [
|
|
3668
|
+
'name',
|
|
3669
|
+
'role',
|
|
3670
|
+
'date_created'
|
|
3671
|
+
],
|
|
1489
3672
|
additionalProperties: false
|
|
1490
3673
|
};
|
|
1491
3674
|
export const TokenUpdateInputSchema = {
|
|
@@ -1503,11 +3686,129 @@ export const TokenUpdateInputSchema = {
|
|
|
1503
3686
|
type: 'string',
|
|
1504
3687
|
description: 'Role assumed by the token.',
|
|
1505
3688
|
example: 'User',
|
|
1506
|
-
enum: [
|
|
3689
|
+
enum: [
|
|
3690
|
+
'Administrator',
|
|
3691
|
+
'User'
|
|
3692
|
+
]
|
|
1507
3693
|
}
|
|
1508
3694
|
},
|
|
1509
3695
|
additionalProperties: false
|
|
1510
3696
|
};
|
|
3697
|
+
export const UsageFacetsSchema = {
|
|
3698
|
+
type: 'object',
|
|
3699
|
+
properties: {
|
|
3700
|
+
cluster_id: {
|
|
3701
|
+
type: 'array',
|
|
3702
|
+
items: {
|
|
3703
|
+
type: 'string'
|
|
3704
|
+
},
|
|
3705
|
+
description: 'List of unique cluster IDs',
|
|
3706
|
+
example: [
|
|
3707
|
+
'6b5439b1-923a-4f2b-a371-d554e5ea23fa'
|
|
3708
|
+
]
|
|
3709
|
+
},
|
|
3710
|
+
product: {
|
|
3711
|
+
type: 'array',
|
|
3712
|
+
items: {
|
|
3713
|
+
type: 'string'
|
|
3714
|
+
},
|
|
3715
|
+
description: 'List of unique products',
|
|
3716
|
+
example: [
|
|
3717
|
+
'cfke_controlplane',
|
|
3718
|
+
'cfke_connected_nodes'
|
|
3719
|
+
]
|
|
3720
|
+
}
|
|
3721
|
+
},
|
|
3722
|
+
additionalProperties: false
|
|
3723
|
+
};
|
|
3724
|
+
export const UsageResponseSchema = {
|
|
3725
|
+
type: 'object',
|
|
3726
|
+
properties: {
|
|
3727
|
+
data: {
|
|
3728
|
+
type: 'array',
|
|
3729
|
+
items: {
|
|
3730
|
+
type: 'object',
|
|
3731
|
+
properties: {
|
|
3732
|
+
hour: {
|
|
3733
|
+
type: 'string',
|
|
3734
|
+
description: 'Hour of the usage',
|
|
3735
|
+
example: '2019-01-01T00:00:00.000Z'
|
|
3736
|
+
},
|
|
3737
|
+
cluster_id: {
|
|
3738
|
+
type: 'string',
|
|
3739
|
+
description: 'Unique identifier of the kubernetes cluster. UUID v4 string in canonical form',
|
|
3740
|
+
example: '6b5439b1-923a-4f2b-a371-d554e5ea23fa'
|
|
3741
|
+
},
|
|
3742
|
+
product: {
|
|
3743
|
+
type: 'string',
|
|
3744
|
+
description: 'The product the usage is associated with',
|
|
3745
|
+
example: 'cfke_controlplane'
|
|
3746
|
+
},
|
|
3747
|
+
value: {
|
|
3748
|
+
type: 'number',
|
|
3749
|
+
format: 'float',
|
|
3750
|
+
description: 'Consumption',
|
|
3751
|
+
example: 4
|
|
3752
|
+
},
|
|
3753
|
+
price: {
|
|
3754
|
+
type: 'number',
|
|
3755
|
+
format: 'float',
|
|
3756
|
+
description: 'Price per unit',
|
|
3757
|
+
example: 0.01
|
|
3758
|
+
},
|
|
3759
|
+
total: {
|
|
3760
|
+
type: 'number',
|
|
3761
|
+
format: 'float',
|
|
3762
|
+
description: 'Total cost'
|
|
3763
|
+
}
|
|
3764
|
+
},
|
|
3765
|
+
required: [
|
|
3766
|
+
'hour',
|
|
3767
|
+
'cluster_id',
|
|
3768
|
+
'product',
|
|
3769
|
+
'value',
|
|
3770
|
+
'price',
|
|
3771
|
+
'total'
|
|
3772
|
+
],
|
|
3773
|
+
additionalProperties: false
|
|
3774
|
+
},
|
|
3775
|
+
description: 'Usage data'
|
|
3776
|
+
},
|
|
3777
|
+
facets: {
|
|
3778
|
+
type: 'object',
|
|
3779
|
+
properties: {
|
|
3780
|
+
cluster_id: {
|
|
3781
|
+
type: 'array',
|
|
3782
|
+
items: {
|
|
3783
|
+
type: 'string'
|
|
3784
|
+
},
|
|
3785
|
+
description: 'List of unique cluster IDs',
|
|
3786
|
+
example: [
|
|
3787
|
+
'6b5439b1-923a-4f2b-a371-d554e5ea23fa'
|
|
3788
|
+
]
|
|
3789
|
+
},
|
|
3790
|
+
product: {
|
|
3791
|
+
type: 'array',
|
|
3792
|
+
items: {
|
|
3793
|
+
type: 'string'
|
|
3794
|
+
},
|
|
3795
|
+
description: 'List of unique products',
|
|
3796
|
+
example: [
|
|
3797
|
+
'cfke_controlplane',
|
|
3798
|
+
'cfke_connected_nodes'
|
|
3799
|
+
]
|
|
3800
|
+
}
|
|
3801
|
+
},
|
|
3802
|
+
additionalProperties: false,
|
|
3803
|
+
description: 'Facets for filtering'
|
|
3804
|
+
}
|
|
3805
|
+
},
|
|
3806
|
+
required: [
|
|
3807
|
+
'data',
|
|
3808
|
+
'facets'
|
|
3809
|
+
],
|
|
3810
|
+
additionalProperties: false
|
|
3811
|
+
};
|
|
1511
3812
|
export const UsageSchema = {
|
|
1512
3813
|
type: 'object',
|
|
1513
3814
|
properties: {
|
|
@@ -1518,90 +3819,40 @@ export const UsageSchema = {
|
|
|
1518
3819
|
},
|
|
1519
3820
|
cluster_id: {
|
|
1520
3821
|
type: 'string',
|
|
1521
|
-
format: 'uuid',
|
|
1522
3822
|
description: 'Unique identifier of the kubernetes cluster. UUID v4 string in canonical form',
|
|
1523
3823
|
example: '6b5439b1-923a-4f2b-a371-d554e5ea23fa'
|
|
1524
3824
|
},
|
|
1525
|
-
cluster_tier: {
|
|
1526
|
-
type: 'string',
|
|
1527
|
-
description: 'Tier of the cluster.',
|
|
1528
|
-
example: 'pro',
|
|
1529
|
-
enum: ['']
|
|
1530
|
-
},
|
|
1531
3825
|
product: {
|
|
1532
3826
|
type: 'string',
|
|
1533
3827
|
description: 'The product the usage is associated with',
|
|
1534
|
-
example: '
|
|
1535
|
-
enum: ['cfke_infra_compute', 'cfke_nodes', 'cfke_controlplane']
|
|
1536
|
-
},
|
|
1537
|
-
node_name: {
|
|
1538
|
-
type: 'string',
|
|
1539
|
-
description: 'Name of the Kubernetes node',
|
|
1540
|
-
example: 'flexible-moth-956037384'
|
|
3828
|
+
example: 'cfke_controlplane'
|
|
1541
3829
|
},
|
|
1542
|
-
|
|
1543
|
-
type: '
|
|
1544
|
-
|
|
1545
|
-
|
|
1546
|
-
|
|
1547
|
-
cpu: {
|
|
1548
|
-
anyOf: [
|
|
1549
|
-
{
|
|
1550
|
-
type: 'number',
|
|
1551
|
-
format: 'float',
|
|
1552
|
-
description: 'CPU core count of the node',
|
|
1553
|
-
example: 4
|
|
1554
|
-
},
|
|
1555
|
-
{
|
|
1556
|
-
type: 'string',
|
|
1557
|
-
enum: ['']
|
|
1558
|
-
}
|
|
1559
|
-
]
|
|
3830
|
+
value: {
|
|
3831
|
+
type: 'number',
|
|
3832
|
+
format: 'float',
|
|
3833
|
+
description: 'Consumption',
|
|
3834
|
+
example: 4
|
|
1560
3835
|
},
|
|
1561
3836
|
price: {
|
|
1562
|
-
|
|
1563
|
-
|
|
1564
|
-
|
|
1565
|
-
|
|
1566
|
-
description: 'Price',
|
|
1567
|
-
example: 4
|
|
1568
|
-
},
|
|
1569
|
-
{
|
|
1570
|
-
type: 'string',
|
|
1571
|
-
enum: ['']
|
|
1572
|
-
}
|
|
1573
|
-
]
|
|
1574
|
-
},
|
|
1575
|
-
value: {
|
|
1576
|
-
anyOf: [
|
|
1577
|
-
{
|
|
1578
|
-
type: 'number',
|
|
1579
|
-
format: 'float',
|
|
1580
|
-
description: 'Value',
|
|
1581
|
-
example: 4
|
|
1582
|
-
},
|
|
1583
|
-
{
|
|
1584
|
-
type: 'string',
|
|
1585
|
-
enum: ['']
|
|
1586
|
-
}
|
|
1587
|
-
]
|
|
3837
|
+
type: 'number',
|
|
3838
|
+
format: 'float',
|
|
3839
|
+
description: 'Price per unit',
|
|
3840
|
+
example: 0.01
|
|
1588
3841
|
},
|
|
1589
3842
|
total: {
|
|
1590
|
-
|
|
1591
|
-
|
|
1592
|
-
|
|
1593
|
-
format: 'float',
|
|
1594
|
-
description: 'Total',
|
|
1595
|
-
example: 4
|
|
1596
|
-
},
|
|
1597
|
-
{
|
|
1598
|
-
type: 'string',
|
|
1599
|
-
enum: ['']
|
|
1600
|
-
}
|
|
1601
|
-
]
|
|
3843
|
+
type: 'number',
|
|
3844
|
+
format: 'float',
|
|
3845
|
+
description: 'Total cost'
|
|
1602
3846
|
}
|
|
1603
3847
|
},
|
|
1604
|
-
required: [
|
|
3848
|
+
required: [
|
|
3849
|
+
'hour',
|
|
3850
|
+
'cluster_id',
|
|
3851
|
+
'product',
|
|
3852
|
+
'value',
|
|
3853
|
+
'price',
|
|
3854
|
+
'total'
|
|
3855
|
+
],
|
|
1605
3856
|
additionalProperties: false
|
|
1606
3857
|
};
|
|
1607
3858
|
export const UserCreateInputSchema = {
|
|
@@ -1637,21 +3888,15 @@ export const UserCreateInputSchema = {
|
|
|
1637
3888
|
type: 'string',
|
|
1638
3889
|
minLength: 8,
|
|
1639
3890
|
description: 'User password. Must be at least 8 characters long.'
|
|
1640
|
-
},
|
|
1641
|
-
status: {
|
|
1642
|
-
type: 'string',
|
|
1643
|
-
description: 'Status of the user. Can be `active` or `inactive`. Inactive users cannot log in or manage organization resources.',
|
|
1644
|
-
example: 'active',
|
|
1645
|
-
enum: ['active', 'inactive']
|
|
1646
|
-
},
|
|
1647
|
-
role: {
|
|
1648
|
-
type: 'string',
|
|
1649
|
-
description: "User role. Can be 'Administrator', 'User'.",
|
|
1650
|
-
example: 'User',
|
|
1651
|
-
enum: ['Administrator', 'User']
|
|
1652
3891
|
}
|
|
1653
3892
|
},
|
|
1654
|
-
required: [
|
|
3893
|
+
required: [
|
|
3894
|
+
'email',
|
|
3895
|
+
'first_name',
|
|
3896
|
+
'last_name',
|
|
3897
|
+
'code',
|
|
3898
|
+
'password'
|
|
3899
|
+
],
|
|
1655
3900
|
additionalProperties: false
|
|
1656
3901
|
};
|
|
1657
3902
|
export const UserSchema = {
|
|
@@ -1679,15 +3924,21 @@ export const UserSchema = {
|
|
|
1679
3924
|
},
|
|
1680
3925
|
role: {
|
|
1681
3926
|
type: 'string',
|
|
1682
|
-
description:
|
|
3927
|
+
description: 'User role. Can be \'Administrator\', \'User\'.',
|
|
1683
3928
|
example: 'User',
|
|
1684
|
-
enum: [
|
|
3929
|
+
enum: [
|
|
3930
|
+
'Administrator',
|
|
3931
|
+
'User'
|
|
3932
|
+
]
|
|
1685
3933
|
},
|
|
1686
3934
|
status: {
|
|
1687
3935
|
type: 'string',
|
|
1688
3936
|
description: 'Status of the user. Can be `active` or `inactive`. Inactive users cannot log in or manage organization resources.',
|
|
1689
3937
|
example: 'active',
|
|
1690
|
-
enum: [
|
|
3938
|
+
enum: [
|
|
3939
|
+
'active',
|
|
3940
|
+
'inactive'
|
|
3941
|
+
]
|
|
1691
3942
|
},
|
|
1692
3943
|
id: {
|
|
1693
3944
|
type: 'string',
|
|
@@ -1702,7 +3953,15 @@ export const UserSchema = {
|
|
|
1702
3953
|
example: '2023-11-02T16:08:14.338Z'
|
|
1703
3954
|
}
|
|
1704
3955
|
},
|
|
1705
|
-
required: [
|
|
3956
|
+
required: [
|
|
3957
|
+
'email',
|
|
3958
|
+
'first_name',
|
|
3959
|
+
'last_name',
|
|
3960
|
+
'role',
|
|
3961
|
+
'status',
|
|
3962
|
+
'id',
|
|
3963
|
+
'date_created'
|
|
3964
|
+
],
|
|
1706
3965
|
additionalProperties: false
|
|
1707
3966
|
};
|
|
1708
3967
|
export const UserUpdateInputSchema = {
|
|
@@ -1730,15 +3989,21 @@ export const UserUpdateInputSchema = {
|
|
|
1730
3989
|
},
|
|
1731
3990
|
role: {
|
|
1732
3991
|
type: 'string',
|
|
1733
|
-
description:
|
|
3992
|
+
description: 'User role. Can be \'Administrator\', \'User\'.',
|
|
1734
3993
|
example: 'User',
|
|
1735
|
-
enum: [
|
|
3994
|
+
enum: [
|
|
3995
|
+
'Administrator',
|
|
3996
|
+
'User'
|
|
3997
|
+
]
|
|
1736
3998
|
},
|
|
1737
3999
|
status: {
|
|
1738
4000
|
type: 'string',
|
|
1739
4001
|
description: 'Status of the user. Can be `active` or `inactive`. Inactive users cannot log in or manage organization resources.',
|
|
1740
4002
|
example: 'active',
|
|
1741
|
-
enum: [
|
|
4003
|
+
enum: [
|
|
4004
|
+
'active',
|
|
4005
|
+
'inactive'
|
|
4006
|
+
]
|
|
1742
4007
|
}
|
|
1743
4008
|
},
|
|
1744
4009
|
additionalProperties: false
|