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