@cloudfleet/sdk 0.0.1-f55e163 → 0.0.1-fd8cadf
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/client/client.gen.d.ts +3 -0
- package/dist/client/client.gen.d.ts.map +1 -0
- package/dist/client/client.gen.js +205 -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 +125 -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 +34 -0
- package/dist/client/utils.gen.d.ts.map +1 -0
- package/dist/client/utils.gen.js +231 -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 +1 -1
- 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 +18 -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 +34 -0
- package/dist/core/params.gen.d.ts.map +1 -0
- package/dist/core/params.gen.js +89 -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 +115 -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 +100 -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 +136 -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/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/dist/schemas.gen.d.ts +761 -491
- package/dist/schemas.gen.d.ts.map +1 -1
- package/dist/schemas.gen.js +772 -529
- package/dist/schemas.gen.js.map +1 -1
- package/dist/sdk.gen.d.ts +202 -81
- package/dist/sdk.gen.d.ts.map +1 -1
- package/dist/sdk.gen.js +298 -108
- package/dist/sdk.gen.js.map +1 -1
- package/dist/services/kubernetes/api.d.ts +196 -0
- package/dist/services/kubernetes/api.d.ts.map +1 -0
- package/dist/services/kubernetes/api.js +140 -0
- package/dist/services/kubernetes/api.js.map +1 -0
- package/dist/services/kubernetes/index.d.ts +44 -0
- package/dist/services/kubernetes/index.d.ts.map +1 -0
- package/dist/services/kubernetes/index.js +68 -0
- package/dist/services/kubernetes/index.js.map +1 -0
- package/dist/services/kubernetes/types.d.ts +1335 -0
- package/dist/services/kubernetes/types.d.ts.map +1 -0
- package/dist/services/kubernetes/types.js +2 -0
- package/dist/services/kubernetes/types.js.map +1 -0
- package/dist/types.gen.d.ts +838 -359
- package/dist/types.gen.d.ts.map +1 -1
- package/dist/zod.gen.d.ts +1836 -2092
- package/dist/zod.gen.d.ts.map +1 -1
- package/dist/zod.gen.js +907 -772
- package/dist/zod.gen.js.map +1 -1
- package/package.json +8 -5
package/dist/schemas.gen.js
CHANGED
|
@@ -58,18 +58,203 @@ export const BillingContactSchema = {
|
|
|
58
58
|
description: 'Email address used for billing as a string.',
|
|
59
59
|
example: 'email@example.com'
|
|
60
60
|
},
|
|
61
|
-
|
|
61
|
+
individual_name: {
|
|
62
62
|
type: 'string',
|
|
63
|
-
description: '
|
|
64
|
-
example: 'John'
|
|
63
|
+
description: 'Name of the billing contact person.',
|
|
64
|
+
example: 'John Doe'
|
|
65
65
|
},
|
|
66
|
-
|
|
66
|
+
tax_id: {
|
|
67
67
|
type: 'string',
|
|
68
|
-
|
|
69
|
-
|
|
68
|
+
nullable: true,
|
|
69
|
+
description: 'Tax ID of the organization.',
|
|
70
|
+
example: 'DE123456789'
|
|
71
|
+
},
|
|
72
|
+
tax_id_type: {
|
|
73
|
+
type: 'string',
|
|
74
|
+
nullable: true,
|
|
75
|
+
description: 'Type of the tax ID.',
|
|
76
|
+
example: 'de_vat',
|
|
77
|
+
enum: ['ad_nrt', 'ae_trn', 'al_tin', 'am_tin', 'ao_tin', 'ar_cuit', 'at_vat', 'au_abn', 'au_arn', 'ba_tin', 'bb_tin', 'be_vat', 'bg_uic', 'bg_vat', 'bh_vat', 'bo_tin', 'br_cnpj', 'br_cpf', 'bs_tin', 'by_tin', 'ca_bn', 'ca_gst_hst', 'ca_pst_bc', 'ca_pst_mb', 'ca_pst_sk', 'ca_qst', 'cd_nif', 'ch_uid', 'ch_vat', 'cl_tin', 'cn_tin', 'co_nit', 'cr_tin', 'cy_vat', 'cz_vat', 'de_stn', 'de_vat', 'dk_vat', 'do_rcn', 'ec_ruc', 'ee_vat', 'eg_tin', 'es_cif', 'es_vat', 'eu_oss_vat', 'fi_vat', 'fr_vat', 'gb_vat', 'ge_vat', 'gn_nif', 'gr_vat', 'hk_br', 'hr_oib', 'hr_vat', 'hu_tin', 'hu_vat', 'id_npwp', 'ie_vat', 'il_vat', 'in_gst', 'is_vat', 'it_vat', 'jp_cn', 'jp_rn', 'jp_trn', 'ke_pin', 'kh_tin', 'kr_brn', 'kz_bin', 'li_uid', 'li_vat', 'lt_vat', 'lu_vat', 'lv_vat', 'ma_vat', 'md_vat', 'me_pib', 'mk_vat', 'mr_nif', 'mt_vat', 'mx_rfc', 'my_frp', 'my_itn', 'my_sst', 'ng_tin', 'nl_vat', 'no_vat', 'no_voec', 'np_pan', 'nz_gst', 'om_vat', 'pe_ruc', 'ph_tin', 'pl_vat', 'pt_vat', 'ro_tin', 'ro_vat', 'rs_pib', 'ru_inn', 'ru_kpp', 'sa_vat', 'se_vat', 'sg_gst', 'sg_uen', 'si_tin', 'si_vat', 'sk_vat', 'sn_ninea', 'sr_fin', 'sv_nit', 'th_vat', 'tj_tin', 'tr_tin', 'tw_vat', 'tz_vat', 'ua_vat', 'ug_tin', 'us_ein', 'uy_ruc', 'uz_tin', 'uz_vat', 've_rif', 'vn_tin', 'xi_vat', 'za_vat', 'zm_tin', 'zw_tin', '']
|
|
78
|
+
}
|
|
79
|
+
},
|
|
80
|
+
required: ['email', 'individual_name'],
|
|
81
|
+
additionalProperties: false
|
|
82
|
+
};
|
|
83
|
+
export const BillingCreditsSchema = {
|
|
84
|
+
type: 'object',
|
|
85
|
+
properties: {
|
|
86
|
+
id: {
|
|
87
|
+
type: 'string',
|
|
88
|
+
description: 'Generated unique identifier of the promotional code.',
|
|
89
|
+
example: '7kUZnH7nnKUFfvc4NK2KQF'
|
|
90
|
+
},
|
|
91
|
+
type: {
|
|
92
|
+
type: 'string',
|
|
93
|
+
description: 'Type of the promotional code.',
|
|
94
|
+
example: 'credit',
|
|
95
|
+
enum: ['credit', 'discount']
|
|
96
|
+
},
|
|
97
|
+
date_start: {
|
|
98
|
+
type: 'string',
|
|
99
|
+
format: 'date-time',
|
|
100
|
+
description: 'Timestamp when the credit becomes active. ISO 8601 date string in the UTC timezone.',
|
|
101
|
+
example: '2023-12-20T13:53:32.000Z'
|
|
102
|
+
},
|
|
103
|
+
date_end: {
|
|
104
|
+
type: 'string',
|
|
105
|
+
format: 'date-time',
|
|
106
|
+
description: 'Timestamp when the credit expires or becomes inactive. ISO 8601 date string in the UTC timezone.',
|
|
107
|
+
example: '2023-12-20T13:53:32.000Z'
|
|
108
|
+
},
|
|
109
|
+
code: {
|
|
110
|
+
type: 'string',
|
|
111
|
+
description: 'Promotional code used by the customer.',
|
|
112
|
+
example: 'VQ4SCMB'
|
|
113
|
+
},
|
|
114
|
+
description: {
|
|
115
|
+
type: 'string',
|
|
116
|
+
description: 'Description of the promotional code.',
|
|
117
|
+
example: '10% off on all products'
|
|
118
|
+
},
|
|
119
|
+
value_total: {
|
|
120
|
+
type: 'number',
|
|
121
|
+
format: 'float',
|
|
122
|
+
description: 'Total value of the promotional code.',
|
|
123
|
+
example: 10
|
|
124
|
+
},
|
|
125
|
+
value_remaining: {
|
|
126
|
+
type: 'number',
|
|
127
|
+
format: 'float',
|
|
128
|
+
description: 'Remaining value of the promotional code.',
|
|
129
|
+
example: 8
|
|
130
|
+
}
|
|
131
|
+
},
|
|
132
|
+
required: ['type', 'date_start', 'code', 'value_total'],
|
|
133
|
+
additionalProperties: false
|
|
134
|
+
};
|
|
135
|
+
export const ChartCreateInputSchema = {
|
|
136
|
+
type: 'object',
|
|
137
|
+
properties: {
|
|
138
|
+
values: {
|
|
139
|
+
type: 'string',
|
|
140
|
+
description: 'Values to be used in the chart encoded as a JSON string.'
|
|
141
|
+
},
|
|
142
|
+
version_channel: {
|
|
143
|
+
type: 'string',
|
|
144
|
+
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-]+)*))?$',
|
|
145
|
+
description: 'Desired version range or channel for the chart.',
|
|
146
|
+
example: '2.x.x-cfke.x'
|
|
147
|
+
},
|
|
148
|
+
name: {
|
|
149
|
+
type: 'string',
|
|
150
|
+
maxLength: 63,
|
|
151
|
+
minLength: 1,
|
|
152
|
+
pattern: '^[a-z0-9]([-a-z0-9]*[a-z0-9])?$',
|
|
153
|
+
description: 'Unique identifier of the chart deployment aka name of the helm release.',
|
|
154
|
+
example: 'postgresql-0'
|
|
155
|
+
},
|
|
156
|
+
namespace: {
|
|
157
|
+
type: 'string',
|
|
158
|
+
maxLength: 63,
|
|
159
|
+
minLength: 1,
|
|
160
|
+
pattern: '^[a-z0-9]([-a-z0-9]*[a-z0-9])?$',
|
|
161
|
+
description: 'Namespace of the chart deployment',
|
|
162
|
+
example: 'default'
|
|
163
|
+
},
|
|
164
|
+
chart: {
|
|
165
|
+
type: 'string',
|
|
166
|
+
maxLength: 63,
|
|
167
|
+
minLength: 1,
|
|
168
|
+
pattern: '^[a-z0-9]([-a-z0-9]*[a-z0-9])?$',
|
|
169
|
+
description: 'Name of the chart listing',
|
|
170
|
+
example: 'postgresql'
|
|
171
|
+
}
|
|
172
|
+
},
|
|
173
|
+
required: ['values', 'version_channel', 'name', 'namespace', 'chart'],
|
|
174
|
+
additionalProperties: false
|
|
175
|
+
};
|
|
176
|
+
export const ChartSchema = {
|
|
177
|
+
type: 'object',
|
|
178
|
+
properties: {
|
|
179
|
+
values: {
|
|
180
|
+
type: 'string',
|
|
181
|
+
description: 'Values to be used in the chart encoded as a JSON string.'
|
|
182
|
+
},
|
|
183
|
+
version_channel: {
|
|
184
|
+
type: 'string',
|
|
185
|
+
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-]+)*))?$',
|
|
186
|
+
description: 'Desired version range or channel for the chart.',
|
|
187
|
+
example: '2.x.x-cfke.x'
|
|
188
|
+
},
|
|
189
|
+
name: {
|
|
190
|
+
type: 'string',
|
|
191
|
+
maxLength: 63,
|
|
192
|
+
minLength: 1,
|
|
193
|
+
pattern: '^[a-z0-9]([-a-z0-9]*[a-z0-9])?$',
|
|
194
|
+
description: 'Unique identifier of the chart deployment aka name of the helm release.',
|
|
195
|
+
example: 'postgresql-0'
|
|
196
|
+
},
|
|
197
|
+
namespace: {
|
|
198
|
+
type: 'string',
|
|
199
|
+
maxLength: 63,
|
|
200
|
+
minLength: 1,
|
|
201
|
+
pattern: '^[a-z0-9]([-a-z0-9]*[a-z0-9])?$',
|
|
202
|
+
description: 'Namespace of the chart deployment',
|
|
203
|
+
example: 'default'
|
|
204
|
+
},
|
|
205
|
+
chart: {
|
|
206
|
+
type: 'string',
|
|
207
|
+
maxLength: 63,
|
|
208
|
+
minLength: 1,
|
|
209
|
+
pattern: '^[a-z0-9]([-a-z0-9]*[a-z0-9])?$',
|
|
210
|
+
description: 'Name of the chart listing',
|
|
211
|
+
example: 'postgresql'
|
|
212
|
+
},
|
|
213
|
+
status: {
|
|
214
|
+
type: 'string',
|
|
215
|
+
description: 'Status of the chart deployment.',
|
|
216
|
+
example: 'active',
|
|
217
|
+
enum: ['InstallSucceeded', 'InstallFailed', 'UpgradeSucceeded', 'UpgradeFailed', 'TestSucceeded', 'TestFailed', 'RollbackSucceeded', 'RollbackFailed', 'UninstallSucceeded', 'UninstallFailed', 'ArtifactFailed', 'DependencyNotReady', 'Progressing', 'SourceNotReady']
|
|
218
|
+
},
|
|
219
|
+
version_current: {
|
|
220
|
+
type: 'string',
|
|
221
|
+
description: 'Current version of the chart deployment.',
|
|
222
|
+
example: '2.1.33-cfke.11'
|
|
223
|
+
},
|
|
224
|
+
created_at: {
|
|
225
|
+
type: 'string',
|
|
226
|
+
description: 'Creation date and time of the chart deployment.',
|
|
227
|
+
example: '2024-09-12T09:11:27Z'
|
|
228
|
+
},
|
|
229
|
+
updated_at: {
|
|
230
|
+
type: 'string',
|
|
231
|
+
description: 'Last update date and time of the chart deployment.',
|
|
232
|
+
example: '2024-09-12T09:11:27Z'
|
|
233
|
+
},
|
|
234
|
+
ready: {
|
|
235
|
+
type: 'boolean',
|
|
236
|
+
description: 'Indicates if the chart deployment is ready to be used.',
|
|
237
|
+
example: true
|
|
238
|
+
}
|
|
239
|
+
},
|
|
240
|
+
required: ['values', 'version_channel', 'name', 'namespace', 'chart', 'status', 'version_current', 'created_at', 'updated_at', 'ready'],
|
|
241
|
+
additionalProperties: false
|
|
242
|
+
};
|
|
243
|
+
export const ChartUpdateInputSchema = {
|
|
244
|
+
type: 'object',
|
|
245
|
+
properties: {
|
|
246
|
+
values: {
|
|
247
|
+
type: 'string',
|
|
248
|
+
description: 'Values to be used in the chart encoded as a JSON string.'
|
|
249
|
+
},
|
|
250
|
+
version_channel: {
|
|
251
|
+
type: 'string',
|
|
252
|
+
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-]+)*))?$',
|
|
253
|
+
description: 'Desired version range or channel for the chart.',
|
|
254
|
+
example: '2.x.x-cfke.x'
|
|
70
255
|
}
|
|
71
256
|
},
|
|
72
|
-
required: ['
|
|
257
|
+
required: ['values', 'version_channel'],
|
|
73
258
|
additionalProperties: false
|
|
74
259
|
};
|
|
75
260
|
export const ClusterCreateInputSchema = {
|
|
@@ -83,25 +268,25 @@ export const ClusterCreateInputSchema = {
|
|
|
83
268
|
description: 'Name of the cluster.',
|
|
84
269
|
example: 'production-cluster'
|
|
85
270
|
},
|
|
86
|
-
region: {
|
|
87
|
-
type: 'string',
|
|
88
|
-
description: 'Cloudfleet control plane region. One of "staging", "northamerica-central-1". This field can not be updated after creation.',
|
|
89
|
-
default: 'staging',
|
|
90
|
-
example: 'northamerica-central-1',
|
|
91
|
-
enum: ['staging', 'northamerica-central-1']
|
|
92
|
-
},
|
|
93
271
|
tier: {
|
|
94
272
|
type: 'string',
|
|
95
273
|
description: 'Tier of the cluster.',
|
|
96
274
|
example: 'pro',
|
|
97
275
|
enum: ['basic', 'pro']
|
|
98
276
|
},
|
|
277
|
+
region: {
|
|
278
|
+
type: 'string',
|
|
279
|
+
description: 'Cloudfleet control plane region. One of "staging", "northamerica-central-1", "europe-central-1a", "northamerica-central-1a". This field can not be updated after creation.',
|
|
280
|
+
default: 'staging',
|
|
281
|
+
example: 'northamerica-central-1a',
|
|
282
|
+
enum: ['staging', 'northamerica-central-1', 'europe-central-1a', 'northamerica-central-1a']
|
|
283
|
+
},
|
|
99
284
|
version_channel: {
|
|
100
285
|
type: 'string',
|
|
101
286
|
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-]+)*))?$',
|
|
102
287
|
description: 'Version of the kubernetes cluster.',
|
|
103
288
|
default: '1.x.x-cfke.x',
|
|
104
|
-
example: '1.
|
|
289
|
+
example: '1.33.x-cfke.x'
|
|
105
290
|
}
|
|
106
291
|
},
|
|
107
292
|
required: ['name', 'tier'],
|
|
@@ -138,7 +323,7 @@ MIIC0DCCAbigAwIBAgI...`
|
|
|
138
323
|
kubernetes: {
|
|
139
324
|
type: 'string',
|
|
140
325
|
description: 'Kubernetes version of the cluster.',
|
|
141
|
-
example: '1.
|
|
326
|
+
example: '1.33.7'
|
|
142
327
|
},
|
|
143
328
|
tailscale: {
|
|
144
329
|
type: 'string',
|
|
@@ -149,9 +334,14 @@ MIIC0DCCAbigAwIBAgI...`
|
|
|
149
334
|
type: 'string',
|
|
150
335
|
description: 'Containerd version of the cluster.',
|
|
151
336
|
example: '1.7.19'
|
|
337
|
+
},
|
|
338
|
+
nvidia_driver: {
|
|
339
|
+
type: 'string',
|
|
340
|
+
description: 'NVIDIA driver version of the cluster.',
|
|
341
|
+
example: '565.0.0'
|
|
152
342
|
}
|
|
153
343
|
},
|
|
154
|
-
required: ['kubernetes', 'tailscale', 'containerd'],
|
|
344
|
+
required: ['kubernetes', 'tailscale', 'containerd', 'nvidia_driver'],
|
|
155
345
|
additionalProperties: false,
|
|
156
346
|
description: 'Versions of the different components of the cluster.'
|
|
157
347
|
},
|
|
@@ -193,25 +383,25 @@ export const ClusterSchema = {
|
|
|
193
383
|
description: 'Name of the cluster.',
|
|
194
384
|
example: 'production-cluster'
|
|
195
385
|
},
|
|
196
|
-
region: {
|
|
197
|
-
type: 'string',
|
|
198
|
-
description: 'Cloudfleet control plane region. One of "staging", "northamerica-central-1". This field can not be updated after creation.',
|
|
199
|
-
default: 'staging',
|
|
200
|
-
example: 'northamerica-central-1',
|
|
201
|
-
enum: ['staging', 'northamerica-central-1']
|
|
202
|
-
},
|
|
203
386
|
tier: {
|
|
204
387
|
type: 'string',
|
|
205
388
|
description: 'Tier of the cluster.',
|
|
206
389
|
example: 'pro',
|
|
207
390
|
enum: ['basic', 'pro']
|
|
208
391
|
},
|
|
392
|
+
region: {
|
|
393
|
+
type: 'string',
|
|
394
|
+
description: 'Cloudfleet control plane region. One of "staging", "northamerica-central-1", "europe-central-1a", "northamerica-central-1a". This field can not be updated after creation.',
|
|
395
|
+
default: 'staging',
|
|
396
|
+
example: 'northamerica-central-1a',
|
|
397
|
+
enum: ['staging', 'northamerica-central-1', 'europe-central-1a', 'northamerica-central-1a']
|
|
398
|
+
},
|
|
209
399
|
version_channel: {
|
|
210
400
|
type: 'string',
|
|
211
401
|
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-]+)*))?$',
|
|
212
402
|
description: 'Version of the kubernetes cluster.',
|
|
213
403
|
default: '1.x.x-cfke.x',
|
|
214
|
-
example: '1.
|
|
404
|
+
example: '1.33.x-cfke.x'
|
|
215
405
|
},
|
|
216
406
|
id: {
|
|
217
407
|
type: 'string',
|
|
@@ -223,7 +413,7 @@ export const ClusterSchema = {
|
|
|
223
413
|
type: 'string',
|
|
224
414
|
description: 'Status of the cluster. When creating a new cluster, set to `active`. When deleting a clusters, set to `deleted`.',
|
|
225
415
|
example: 'active',
|
|
226
|
-
enum: ['active', 'deleted', 'creating', 'deployed', 'failed', 'updating']
|
|
416
|
+
enum: ['active', 'disabled', 'deleted', 'creating', 'deployed', 'failed', 'updating']
|
|
227
417
|
},
|
|
228
418
|
endpoint: {
|
|
229
419
|
anyOf: [
|
|
@@ -248,7 +438,7 @@ MIIC0DCCAbigAwIBAgI...`
|
|
|
248
438
|
version_current: {
|
|
249
439
|
type: 'string',
|
|
250
440
|
description: 'Current version of the cluster.',
|
|
251
|
-
example: '1.
|
|
441
|
+
example: '1.33.7-cfke.264'
|
|
252
442
|
},
|
|
253
443
|
created_at: {
|
|
254
444
|
type: 'string',
|
|
@@ -280,13 +470,20 @@ export const ClusterUpdateInputSchema = {
|
|
|
280
470
|
description: 'Name of the cluster.',
|
|
281
471
|
example: 'production-cluster'
|
|
282
472
|
},
|
|
473
|
+
tier: {
|
|
474
|
+
type: 'string',
|
|
475
|
+
description: 'Tier of the cluster.',
|
|
476
|
+
example: 'pro',
|
|
477
|
+
enum: ['basic', 'pro']
|
|
478
|
+
},
|
|
283
479
|
version_channel: {
|
|
284
480
|
type: 'string',
|
|
285
481
|
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-]+)*))?$',
|
|
286
482
|
description: 'Version of the kubernetes cluster.',
|
|
287
|
-
example: '1.
|
|
483
|
+
example: '1.33.x-cfke.x'
|
|
288
484
|
}
|
|
289
485
|
},
|
|
486
|
+
required: ['tier'],
|
|
290
487
|
additionalProperties: false
|
|
291
488
|
};
|
|
292
489
|
export const FleetCreateInputSchema = {
|
|
@@ -322,34 +519,19 @@ export const FleetCreateInputSchema = {
|
|
|
322
519
|
additionalProperties: false
|
|
323
520
|
},
|
|
324
521
|
hetzner: {
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
type: 'boolean',
|
|
331
|
-
default: true
|
|
332
|
-
},
|
|
333
|
-
apiKey: {
|
|
334
|
-
type: 'string'
|
|
335
|
-
}
|
|
336
|
-
},
|
|
337
|
-
additionalProperties: false
|
|
522
|
+
type: 'object',
|
|
523
|
+
properties: {
|
|
524
|
+
enabled: {
|
|
525
|
+
type: 'boolean',
|
|
526
|
+
default: true
|
|
338
527
|
},
|
|
339
|
-
{
|
|
340
|
-
type: '
|
|
341
|
-
|
|
342
|
-
apiKey: {
|
|
343
|
-
type: 'string'
|
|
344
|
-
},
|
|
345
|
-
enabled: {
|
|
346
|
-
type: 'boolean',
|
|
347
|
-
default: true
|
|
348
|
-
}
|
|
349
|
-
},
|
|
350
|
-
additionalProperties: false
|
|
528
|
+
apiKey: {
|
|
529
|
+
type: 'string',
|
|
530
|
+
description: 'Hetzner Cloud API key with read / write access'
|
|
351
531
|
}
|
|
352
|
-
|
|
532
|
+
},
|
|
533
|
+
required: ['apiKey'],
|
|
534
|
+
additionalProperties: false
|
|
353
535
|
},
|
|
354
536
|
aws: {
|
|
355
537
|
type: 'object',
|
|
@@ -373,14 +555,9 @@ export const FleetCreateInputSchema = {
|
|
|
373
555
|
pattern: '^[a-z0-9]([-a-z0-9]*[a-z0-9])?$',
|
|
374
556
|
description: 'Unique identifier of the kubernetes fleet.',
|
|
375
557
|
example: 'new-clouds-fleet'
|
|
376
|
-
},
|
|
377
|
-
type: {
|
|
378
|
-
type: 'string',
|
|
379
|
-
description: 'Specifies the fleet type: infrastructure managed by Cloudfleet or Connected Fleets.',
|
|
380
|
-
enum: ['managed', 'connected']
|
|
381
558
|
}
|
|
382
559
|
},
|
|
383
|
-
required: ['id'
|
|
560
|
+
required: ['id'],
|
|
384
561
|
additionalProperties: false
|
|
385
562
|
};
|
|
386
563
|
export const FleetSchema = {
|
|
@@ -416,34 +593,19 @@ export const FleetSchema = {
|
|
|
416
593
|
additionalProperties: false
|
|
417
594
|
},
|
|
418
595
|
hetzner: {
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
type: 'boolean',
|
|
425
|
-
default: true
|
|
426
|
-
},
|
|
427
|
-
apiKey: {
|
|
428
|
-
type: 'string'
|
|
429
|
-
}
|
|
430
|
-
},
|
|
431
|
-
additionalProperties: false
|
|
596
|
+
type: 'object',
|
|
597
|
+
properties: {
|
|
598
|
+
enabled: {
|
|
599
|
+
type: 'boolean',
|
|
600
|
+
default: true
|
|
432
601
|
},
|
|
433
|
-
{
|
|
434
|
-
type: '
|
|
435
|
-
|
|
436
|
-
apiKey: {
|
|
437
|
-
type: 'string'
|
|
438
|
-
},
|
|
439
|
-
enabled: {
|
|
440
|
-
type: 'boolean',
|
|
441
|
-
default: true
|
|
442
|
-
}
|
|
443
|
-
},
|
|
444
|
-
additionalProperties: false
|
|
602
|
+
apiKey: {
|
|
603
|
+
type: 'string',
|
|
604
|
+
description: 'Hetzner Cloud API key with read / write access'
|
|
445
605
|
}
|
|
446
|
-
|
|
606
|
+
},
|
|
607
|
+
required: ['apiKey'],
|
|
608
|
+
additionalProperties: false
|
|
447
609
|
},
|
|
448
610
|
aws: {
|
|
449
611
|
type: 'object',
|
|
@@ -467,14 +629,9 @@ export const FleetSchema = {
|
|
|
467
629
|
pattern: '^[a-z0-9]([-a-z0-9]*[a-z0-9])?$',
|
|
468
630
|
description: 'Unique identifier of the kubernetes fleet.',
|
|
469
631
|
example: 'new-clouds-fleet'
|
|
470
|
-
},
|
|
471
|
-
type: {
|
|
472
|
-
type: 'string',
|
|
473
|
-
description: 'Specifies the fleet type: infrastructure managed by Cloudfleet or Connected Fleets.',
|
|
474
|
-
enum: ['managed', 'connected']
|
|
475
632
|
}
|
|
476
633
|
},
|
|
477
|
-
required: ['id'
|
|
634
|
+
required: ['id'],
|
|
478
635
|
additionalProperties: false
|
|
479
636
|
};
|
|
480
637
|
export const FleetUpdateInputSchema = {
|
|
@@ -510,34 +667,19 @@ export const FleetUpdateInputSchema = {
|
|
|
510
667
|
additionalProperties: false
|
|
511
668
|
},
|
|
512
669
|
hetzner: {
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
type: 'boolean',
|
|
519
|
-
default: true
|
|
520
|
-
},
|
|
521
|
-
apiKey: {
|
|
522
|
-
type: 'string'
|
|
523
|
-
}
|
|
524
|
-
},
|
|
525
|
-
additionalProperties: false
|
|
670
|
+
type: 'object',
|
|
671
|
+
properties: {
|
|
672
|
+
enabled: {
|
|
673
|
+
type: 'boolean',
|
|
674
|
+
default: true
|
|
526
675
|
},
|
|
527
|
-
{
|
|
528
|
-
type: '
|
|
529
|
-
|
|
530
|
-
apiKey: {
|
|
531
|
-
type: 'string'
|
|
532
|
-
},
|
|
533
|
-
enabled: {
|
|
534
|
-
type: 'boolean',
|
|
535
|
-
default: true
|
|
536
|
-
}
|
|
537
|
-
},
|
|
538
|
-
additionalProperties: false
|
|
676
|
+
apiKey: {
|
|
677
|
+
type: 'string',
|
|
678
|
+
description: 'Hetzner Cloud API key with read / write access'
|
|
539
679
|
}
|
|
540
|
-
|
|
680
|
+
},
|
|
681
|
+
required: ['apiKey'],
|
|
682
|
+
additionalProperties: false
|
|
541
683
|
},
|
|
542
684
|
aws: {
|
|
543
685
|
type: 'object',
|
|
@@ -601,19 +743,15 @@ export const InvoiceSchema = {
|
|
|
601
743
|
description: 'Unique identifier of the invoice. UUID v4 string in canonical form',
|
|
602
744
|
example: '415026b6-f00f-44f8-968d-fc6ef4d0fc6d'
|
|
603
745
|
},
|
|
604
|
-
|
|
605
|
-
type: 'string'
|
|
606
|
-
format: 'uuid',
|
|
607
|
-
description: 'Unique identifier of the organization. UUID v4 string in canonical form',
|
|
608
|
-
example: '415026b6-f00f-44f8-968d-fc6ef4d0fc6d'
|
|
746
|
+
number: {
|
|
747
|
+
type: 'string'
|
|
609
748
|
},
|
|
610
749
|
status: {
|
|
611
750
|
type: 'string',
|
|
612
751
|
description: 'Status of the invoice',
|
|
613
|
-
example: '
|
|
614
|
-
enum: ['DRAFT', 'COMMITTED', 'VOID']
|
|
752
|
+
example: 'paid'
|
|
615
753
|
},
|
|
616
|
-
|
|
754
|
+
total: {
|
|
617
755
|
type: 'number',
|
|
618
756
|
format: 'float',
|
|
619
757
|
description: 'Total amount of the invoice',
|
|
@@ -622,330 +760,170 @@ export const InvoiceSchema = {
|
|
|
622
760
|
currency: {
|
|
623
761
|
type: 'string',
|
|
624
762
|
description: 'Currency of the invoice',
|
|
625
|
-
example: '
|
|
626
|
-
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']
|
|
627
|
-
},
|
|
628
|
-
creditAdj: {
|
|
629
|
-
type: 'number',
|
|
630
|
-
format: 'float',
|
|
631
|
-
description: 'Total amount of credit adjustments',
|
|
632
|
-
example: 0
|
|
763
|
+
example: 'usd'
|
|
633
764
|
},
|
|
634
|
-
|
|
635
|
-
type: '
|
|
636
|
-
format: '
|
|
637
|
-
description: '
|
|
638
|
-
example:
|
|
765
|
+
created: {
|
|
766
|
+
type: 'string',
|
|
767
|
+
format: 'date-time',
|
|
768
|
+
description: 'Timestamp when the invoice was issued. ISO 8601 date string in the UTC timezone.',
|
|
769
|
+
example: '2023-12-20T13:53:32.000Z'
|
|
639
770
|
},
|
|
640
|
-
|
|
771
|
+
period_start: {
|
|
641
772
|
type: 'string',
|
|
642
|
-
|
|
643
|
-
|
|
773
|
+
format: 'date-time',
|
|
774
|
+
description: 'Billing period start timestamp. ISO 8601 date string in the UTC timezone.',
|
|
775
|
+
example: '2023-12-20T13:53:32.000Z'
|
|
644
776
|
},
|
|
645
|
-
|
|
777
|
+
period_end: {
|
|
646
778
|
type: 'string',
|
|
647
|
-
|
|
648
|
-
|
|
779
|
+
format: 'date-time',
|
|
780
|
+
description: 'Billing period end timestamp. ISO 8601 date string in the UTC timezone.',
|
|
781
|
+
example: '2023-12-20T13:53:32.000Z'
|
|
649
782
|
},
|
|
650
|
-
|
|
783
|
+
invoice_pdf: {
|
|
784
|
+
type: 'string'
|
|
785
|
+
}
|
|
786
|
+
},
|
|
787
|
+
required: ['created', 'period_start', 'period_end'],
|
|
788
|
+
additionalProperties: false
|
|
789
|
+
};
|
|
790
|
+
export const MarketplaceListingFilesSchema = {
|
|
791
|
+
type: 'object',
|
|
792
|
+
properties: {
|
|
793
|
+
chartYaml: {
|
|
651
794
|
type: 'string',
|
|
652
|
-
description: '
|
|
653
|
-
example:
|
|
795
|
+
description: 'Raw Chart.yaml content from the Helm chart',
|
|
796
|
+
example: `apiVersion: v2
|
|
797
|
+
name: nginx-ingress
|
|
798
|
+
version: 1.18.2-cfke.45
|
|
799
|
+
appVersion: 1.9.4`
|
|
654
800
|
},
|
|
655
|
-
|
|
656
|
-
type: '
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
801
|
+
valuesYaml: {
|
|
802
|
+
type: 'string',
|
|
803
|
+
description: 'Raw values.yaml content from the Helm chart',
|
|
804
|
+
example: `replicaCount: 1
|
|
805
|
+
image:
|
|
806
|
+
repository: nginx
|
|
807
|
+
tag: latest`
|
|
660
808
|
},
|
|
661
|
-
|
|
809
|
+
valuesSchemaJson: {
|
|
810
|
+
type: 'string',
|
|
811
|
+
description: 'JSON schema for values.yaml as a string',
|
|
812
|
+
example: '{"type":"object","properties":{"replicaCount":{"type":"number"}}}'
|
|
813
|
+
}
|
|
814
|
+
},
|
|
815
|
+
additionalProperties: false
|
|
816
|
+
};
|
|
817
|
+
export const MarketplaceListingSchema = {
|
|
818
|
+
type: 'object',
|
|
819
|
+
properties: {
|
|
820
|
+
name: {
|
|
662
821
|
type: 'string',
|
|
663
|
-
description: '
|
|
664
|
-
example: '
|
|
822
|
+
description: 'Name of the chart',
|
|
823
|
+
example: 'nginx-ingress'
|
|
665
824
|
},
|
|
666
|
-
|
|
825
|
+
versions: {
|
|
667
826
|
type: 'array',
|
|
668
827
|
items: {
|
|
669
|
-
type: '
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
format: 'uuid',
|
|
674
|
-
description: 'Unique identifier of the invoice item. UUID v4 string in canonical form',
|
|
675
|
-
example: '415026b6-f00f-44f8-968d-fc6ef4d0fc6d'
|
|
676
|
-
},
|
|
677
|
-
linkedInvoiceItemId: {
|
|
678
|
-
type: 'string',
|
|
679
|
-
format: 'uuid',
|
|
680
|
-
description: 'Unique identifier of the linked invoice item. UUID v4 string in canonical form',
|
|
681
|
-
example: '415026b6-f00f-44f8-968d-fc6ef4d0fc6d'
|
|
682
|
-
},
|
|
683
|
-
productName: {
|
|
684
|
-
type: 'string',
|
|
685
|
-
description: 'Name of the product',
|
|
686
|
-
example: 'Research team'
|
|
687
|
-
},
|
|
688
|
-
planName: {
|
|
689
|
-
type: 'string',
|
|
690
|
-
description: 'Name of the plan',
|
|
691
|
-
example: 'Plan A'
|
|
692
|
-
},
|
|
693
|
-
phaseName: {
|
|
694
|
-
type: 'string',
|
|
695
|
-
description: 'Name of the phase',
|
|
696
|
-
example: 'Phase A'
|
|
697
|
-
},
|
|
698
|
-
usageName: {
|
|
699
|
-
type: 'string',
|
|
700
|
-
description: 'Name of the usage',
|
|
701
|
-
example: 'Usage A'
|
|
702
|
-
},
|
|
703
|
-
prettyProductName: {
|
|
704
|
-
type: 'string',
|
|
705
|
-
description: 'Pretty name of the product',
|
|
706
|
-
example: 'Research team'
|
|
707
|
-
},
|
|
708
|
-
prettyPlanName: {
|
|
709
|
-
type: 'string',
|
|
710
|
-
description: 'Pretty name of the plan',
|
|
711
|
-
example: 'Plan A'
|
|
712
|
-
},
|
|
713
|
-
prettyPhaseName: {
|
|
714
|
-
type: 'string',
|
|
715
|
-
description: 'Pretty name of the phase',
|
|
716
|
-
example: 'Phase A'
|
|
717
|
-
},
|
|
718
|
-
prettyUsageName: {
|
|
719
|
-
type: 'string',
|
|
720
|
-
description: 'Pretty name of the usage',
|
|
721
|
-
example: 'Usage A'
|
|
722
|
-
},
|
|
723
|
-
itemType: {
|
|
724
|
-
type: 'string',
|
|
725
|
-
description: 'Type of the invoice item',
|
|
726
|
-
example: 'EXTERNAL_CHARGE',
|
|
727
|
-
enum: ['EXTERNAL_CHARGE', 'FIXED', 'RECURRING', 'REPAIR_ADJ', 'CBA_ADJ', 'CREDIT_ADJ', 'ITEM_ADJ', 'USAGE', 'TAX', 'PARENT_SUMMARY']
|
|
728
|
-
},
|
|
729
|
-
description: {
|
|
730
|
-
type: 'string',
|
|
731
|
-
description: 'Description of the invoice item',
|
|
732
|
-
example: 'Description of the invoice item'
|
|
733
|
-
},
|
|
734
|
-
startDate: {
|
|
735
|
-
type: 'string',
|
|
736
|
-
description: 'Start date of the invoice item',
|
|
737
|
-
example: '2019-01-01T00:00:00.000Z'
|
|
738
|
-
},
|
|
739
|
-
endDate: {
|
|
740
|
-
type: 'string',
|
|
741
|
-
description: 'End date of the invoice item',
|
|
742
|
-
example: '2019-01-01T00:00:00.000Z'
|
|
743
|
-
},
|
|
744
|
-
amount: {
|
|
745
|
-
type: 'number',
|
|
746
|
-
format: 'float',
|
|
747
|
-
description: 'Amount of the invoice item',
|
|
748
|
-
example: 100
|
|
749
|
-
},
|
|
750
|
-
rate: {
|
|
751
|
-
type: 'number',
|
|
752
|
-
format: 'float',
|
|
753
|
-
description: 'Rate of the invoice item',
|
|
754
|
-
example: 100
|
|
755
|
-
},
|
|
756
|
-
currency: {
|
|
757
|
-
type: 'string',
|
|
758
|
-
description: 'Currency of the invoice item',
|
|
759
|
-
example: 'USD',
|
|
760
|
-
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']
|
|
761
|
-
},
|
|
762
|
-
quantity: {
|
|
763
|
-
type: 'number',
|
|
764
|
-
format: 'float',
|
|
765
|
-
description: 'Quantity of the invoice item',
|
|
766
|
-
example: 1
|
|
767
|
-
},
|
|
768
|
-
itemDetails: {
|
|
769
|
-
type: 'string',
|
|
770
|
-
description: 'Details of the invoice item',
|
|
771
|
-
example: 'Details of the invoice item'
|
|
772
|
-
},
|
|
773
|
-
catalogEffectiveDate: {
|
|
774
|
-
type: 'string',
|
|
775
|
-
description: 'Effective date of the catalog',
|
|
776
|
-
example: '2019-01-01T00:00:00.000Z'
|
|
777
|
-
},
|
|
778
|
-
childItems: {
|
|
779
|
-
type: 'array',
|
|
780
|
-
items: {
|
|
781
|
-
oneOf: [
|
|
782
|
-
{
|
|
783
|
-
type: 'array'
|
|
784
|
-
},
|
|
785
|
-
{
|
|
786
|
-
type: 'boolean'
|
|
787
|
-
},
|
|
788
|
-
{
|
|
789
|
-
type: 'number'
|
|
790
|
-
},
|
|
791
|
-
{
|
|
792
|
-
type: 'object',
|
|
793
|
-
additionalProperties: true
|
|
794
|
-
},
|
|
795
|
-
{
|
|
796
|
-
type: 'string'
|
|
797
|
-
}
|
|
798
|
-
]
|
|
799
|
-
},
|
|
800
|
-
description: 'Child items of the invoice item'
|
|
801
|
-
}
|
|
802
|
-
},
|
|
803
|
-
additionalProperties: false
|
|
828
|
+
type: 'string',
|
|
829
|
+
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-]+)*))?$',
|
|
830
|
+
description: 'Specific version of the chart',
|
|
831
|
+
example: '1.18.2-cfke.45'
|
|
804
832
|
},
|
|
805
|
-
description: '
|
|
833
|
+
description: 'Available versions of the chart'
|
|
806
834
|
},
|
|
807
|
-
|
|
835
|
+
version_channels: {
|
|
808
836
|
type: 'array',
|
|
809
837
|
items: {
|
|
810
|
-
type: '
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
prettyPhaseName: {
|
|
855
|
-
type: 'string',
|
|
856
|
-
description: 'Pretty name of the phase',
|
|
857
|
-
example: 'Phase A'
|
|
858
|
-
},
|
|
859
|
-
prettyUsageName: {
|
|
860
|
-
type: 'string',
|
|
861
|
-
description: 'Pretty name of the usage',
|
|
862
|
-
example: 'Usage A'
|
|
863
|
-
},
|
|
864
|
-
itemType: {
|
|
865
|
-
type: 'string',
|
|
866
|
-
description: 'Type of the invoice item',
|
|
867
|
-
example: 'EXTERNAL_CHARGE',
|
|
868
|
-
enum: ['EXTERNAL_CHARGE', 'FIXED', 'RECURRING', 'REPAIR_ADJ', 'CBA_ADJ', 'CREDIT_ADJ', 'ITEM_ADJ', 'USAGE', 'TAX', 'PARENT_SUMMARY']
|
|
869
|
-
},
|
|
870
|
-
description: {
|
|
871
|
-
type: 'string',
|
|
872
|
-
description: 'Description of the invoice item',
|
|
873
|
-
example: 'Description of the invoice item'
|
|
874
|
-
},
|
|
875
|
-
startDate: {
|
|
876
|
-
type: 'string',
|
|
877
|
-
description: 'Start date of the invoice item',
|
|
878
|
-
example: '2019-01-01T00:00:00.000Z'
|
|
879
|
-
},
|
|
880
|
-
endDate: {
|
|
881
|
-
type: 'string',
|
|
882
|
-
description: 'End date of the invoice item',
|
|
883
|
-
example: '2019-01-01T00:00:00.000Z'
|
|
884
|
-
},
|
|
885
|
-
amount: {
|
|
886
|
-
type: 'number',
|
|
887
|
-
format: 'float',
|
|
888
|
-
description: 'Amount of the invoice item',
|
|
889
|
-
example: 100
|
|
890
|
-
},
|
|
891
|
-
rate: {
|
|
892
|
-
type: 'number',
|
|
893
|
-
format: 'float',
|
|
894
|
-
description: 'Rate of the invoice item',
|
|
895
|
-
example: 100
|
|
896
|
-
},
|
|
897
|
-
currency: {
|
|
898
|
-
type: 'string',
|
|
899
|
-
description: 'Currency of the invoice item',
|
|
900
|
-
example: 'USD',
|
|
901
|
-
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']
|
|
902
|
-
},
|
|
903
|
-
quantity: {
|
|
904
|
-
type: 'number',
|
|
905
|
-
format: 'float',
|
|
906
|
-
description: 'Quantity of the invoice item',
|
|
907
|
-
example: 1
|
|
908
|
-
},
|
|
909
|
-
itemDetails: {
|
|
910
|
-
type: 'string',
|
|
911
|
-
description: 'Details of the invoice item',
|
|
912
|
-
example: 'Details of the invoice item'
|
|
838
|
+
type: 'string',
|
|
839
|
+
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-]+)*))?$',
|
|
840
|
+
description: 'Version channel pattern',
|
|
841
|
+
example: '1.18.x-cfke.x'
|
|
842
|
+
},
|
|
843
|
+
description: 'Version channels for the chart'
|
|
844
|
+
},
|
|
845
|
+
latestVersion: {
|
|
846
|
+
type: 'string',
|
|
847
|
+
description: 'Latest version of the chart',
|
|
848
|
+
example: '1.18.2-cfke.45'
|
|
849
|
+
},
|
|
850
|
+
metadata: {
|
|
851
|
+
type: 'object',
|
|
852
|
+
properties: {
|
|
853
|
+
name: {
|
|
854
|
+
type: 'string',
|
|
855
|
+
description: 'Chart name from metadata',
|
|
856
|
+
example: 'nginx-ingress'
|
|
857
|
+
},
|
|
858
|
+
version: {
|
|
859
|
+
type: 'string',
|
|
860
|
+
description: 'Chart version from metadata',
|
|
861
|
+
example: '1.18.2-cfke.45'
|
|
862
|
+
},
|
|
863
|
+
description: {
|
|
864
|
+
type: 'string',
|
|
865
|
+
description: 'Chart description',
|
|
866
|
+
example: 'NGINX Ingress Controller for Kubernetes'
|
|
867
|
+
},
|
|
868
|
+
appVersion: {
|
|
869
|
+
type: 'string',
|
|
870
|
+
description: 'Application version',
|
|
871
|
+
example: '1.9.4'
|
|
872
|
+
},
|
|
873
|
+
apiVersion: {
|
|
874
|
+
type: 'string',
|
|
875
|
+
description: 'Helm API version',
|
|
876
|
+
example: 'v2'
|
|
877
|
+
},
|
|
878
|
+
keywords: {
|
|
879
|
+
type: 'array',
|
|
880
|
+
items: {
|
|
881
|
+
type: 'string'
|
|
913
882
|
},
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
883
|
+
description: 'Chart keywords',
|
|
884
|
+
example: ['ingress', 'nginx', 'load-balancer']
|
|
885
|
+
},
|
|
886
|
+
home: {
|
|
887
|
+
type: 'string',
|
|
888
|
+
description: 'Chart home URL',
|
|
889
|
+
example: 'https://kubernetes.github.io/ingress-nginx/'
|
|
890
|
+
},
|
|
891
|
+
sources: {
|
|
892
|
+
type: 'array',
|
|
893
|
+
items: {
|
|
894
|
+
type: 'string'
|
|
918
895
|
},
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
items: {
|
|
922
|
-
oneOf: [
|
|
923
|
-
{
|
|
924
|
-
type: 'array'
|
|
925
|
-
},
|
|
926
|
-
{
|
|
927
|
-
type: 'boolean'
|
|
928
|
-
},
|
|
929
|
-
{
|
|
930
|
-
type: 'number'
|
|
931
|
-
},
|
|
932
|
-
{
|
|
933
|
-
type: 'object',
|
|
934
|
-
additionalProperties: true
|
|
935
|
-
},
|
|
936
|
-
{
|
|
937
|
-
type: 'string'
|
|
938
|
-
}
|
|
939
|
-
]
|
|
940
|
-
},
|
|
941
|
-
description: 'Child items of the invoice item'
|
|
942
|
-
}
|
|
896
|
+
description: 'Chart source URLs',
|
|
897
|
+
example: ['https://github.com/kubernetes/ingress-nginx']
|
|
943
898
|
},
|
|
944
|
-
|
|
899
|
+
maintainers: {
|
|
900
|
+
type: 'array',
|
|
901
|
+
items: {
|
|
902
|
+
type: 'object',
|
|
903
|
+
properties: {
|
|
904
|
+
name: {
|
|
905
|
+
type: 'string',
|
|
906
|
+
description: 'Maintainer name',
|
|
907
|
+
example: 'NGINX Team'
|
|
908
|
+
},
|
|
909
|
+
email: {
|
|
910
|
+
type: 'string',
|
|
911
|
+
description: 'Maintainer email',
|
|
912
|
+
example: 'support@nginx.org'
|
|
913
|
+
}
|
|
914
|
+
},
|
|
915
|
+
required: ['name'],
|
|
916
|
+
additionalProperties: false
|
|
917
|
+
},
|
|
918
|
+
description: 'Chart maintainers'
|
|
919
|
+
}
|
|
945
920
|
},
|
|
946
|
-
|
|
921
|
+
required: ['name', 'version'],
|
|
922
|
+
additionalProperties: false,
|
|
923
|
+
description: 'Chart metadata'
|
|
947
924
|
}
|
|
948
925
|
},
|
|
926
|
+
required: ['name', 'versions', 'version_channels', 'latestVersion'],
|
|
949
927
|
additionalProperties: false
|
|
950
928
|
};
|
|
951
929
|
export const OrganizationCreateInputSchema = {
|
|
@@ -1037,12 +1015,6 @@ export const OrganizationSchema = {
|
|
|
1037
1015
|
description: 'Maximum number of fleets that can be created per cluster.',
|
|
1038
1016
|
example: 999
|
|
1039
1017
|
},
|
|
1040
|
-
managed_fleets_cpu_max: {
|
|
1041
|
-
type: 'integer',
|
|
1042
|
-
minimum: 0,
|
|
1043
|
-
description: 'Maximum number of CPU cores per managed fleet.',
|
|
1044
|
-
example: 999
|
|
1045
|
-
},
|
|
1046
1018
|
cluster_tiers: {
|
|
1047
1019
|
type: 'array',
|
|
1048
1020
|
items: {
|
|
@@ -1069,12 +1041,12 @@ export const OrganizationSchema = {
|
|
|
1069
1041
|
id: {
|
|
1070
1042
|
type: 'string',
|
|
1071
1043
|
description: 'Id of the control plane version. Used in API calls.',
|
|
1072
|
-
example: '1.
|
|
1044
|
+
example: '1.33.x-cfke.x'
|
|
1073
1045
|
},
|
|
1074
1046
|
label: {
|
|
1075
1047
|
type: 'string',
|
|
1076
1048
|
description: 'Label of the control plane version. Used in frontent UI.',
|
|
1077
|
-
example: '1.
|
|
1049
|
+
example: '1.33.x (Always latest 1.33 patch version)'
|
|
1078
1050
|
}
|
|
1079
1051
|
},
|
|
1080
1052
|
required: ['id', 'label'],
|
|
@@ -1084,7 +1056,7 @@ export const OrganizationSchema = {
|
|
|
1084
1056
|
description: 'List of CFKE control plane versions available for the organization.'
|
|
1085
1057
|
}
|
|
1086
1058
|
},
|
|
1087
|
-
required: ['basic_clusters_max', 'basic_clusters_available', 'pro_clusters_max', 'pro_clusters_available', 'fleets_max', '
|
|
1059
|
+
required: ['basic_clusters_max', 'basic_clusters_available', 'pro_clusters_max', 'pro_clusters_available', 'fleets_max', 'cluster_tiers', 'regions', 'versions'],
|
|
1088
1060
|
additionalProperties: false,
|
|
1089
1061
|
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.'
|
|
1090
1062
|
},
|
|
@@ -1150,6 +1122,261 @@ export const PaymentMethodSchema = {
|
|
|
1150
1122
|
required: ['id', 'setup', 'type', 'last4', 'exp_month', 'exp_year', 'brand'],
|
|
1151
1123
|
additionalProperties: false
|
|
1152
1124
|
};
|
|
1125
|
+
export const PlatformQuotaSchema = {
|
|
1126
|
+
type: 'object',
|
|
1127
|
+
properties: {
|
|
1128
|
+
basic_clusters_max: {
|
|
1129
|
+
type: 'integer',
|
|
1130
|
+
minimum: 0,
|
|
1131
|
+
description: 'Maximum number of Basic clusters that can be created.',
|
|
1132
|
+
example: 999
|
|
1133
|
+
},
|
|
1134
|
+
basic_clusters_available: {
|
|
1135
|
+
type: 'integer',
|
|
1136
|
+
description: 'Available number of Basic clusters that can be created.',
|
|
1137
|
+
example: 999
|
|
1138
|
+
},
|
|
1139
|
+
pro_clusters_max: {
|
|
1140
|
+
type: 'integer',
|
|
1141
|
+
minimum: 0,
|
|
1142
|
+
description: 'Maximum number of Pro clusters that can be created.',
|
|
1143
|
+
example: 999
|
|
1144
|
+
},
|
|
1145
|
+
pro_clusters_available: {
|
|
1146
|
+
type: 'integer',
|
|
1147
|
+
description: 'Available number of Pro clusters that can be created.',
|
|
1148
|
+
example: 999
|
|
1149
|
+
},
|
|
1150
|
+
fleets_max: {
|
|
1151
|
+
type: 'integer',
|
|
1152
|
+
minimum: 0,
|
|
1153
|
+
description: 'Maximum number of fleets that can be created per cluster.',
|
|
1154
|
+
example: 999
|
|
1155
|
+
},
|
|
1156
|
+
cluster_tiers: {
|
|
1157
|
+
type: 'array',
|
|
1158
|
+
items: {
|
|
1159
|
+
type: 'string',
|
|
1160
|
+
example: 'basic'
|
|
1161
|
+
},
|
|
1162
|
+
minItems: 0,
|
|
1163
|
+
description: 'List of Cloudfleet cluster tiers available for the organization.'
|
|
1164
|
+
},
|
|
1165
|
+
regions: {
|
|
1166
|
+
type: 'array',
|
|
1167
|
+
items: {
|
|
1168
|
+
type: 'string',
|
|
1169
|
+
example: 'northamerica-central-1'
|
|
1170
|
+
},
|
|
1171
|
+
minItems: 1,
|
|
1172
|
+
description: 'List of Cloudfleet control plane regions available for the organization.'
|
|
1173
|
+
},
|
|
1174
|
+
versions: {
|
|
1175
|
+
type: 'array',
|
|
1176
|
+
items: {
|
|
1177
|
+
type: 'object',
|
|
1178
|
+
properties: {
|
|
1179
|
+
id: {
|
|
1180
|
+
type: 'string',
|
|
1181
|
+
description: 'Id of the control plane version. Used in API calls.',
|
|
1182
|
+
example: '1.33.x-cfke.x'
|
|
1183
|
+
},
|
|
1184
|
+
label: {
|
|
1185
|
+
type: 'string',
|
|
1186
|
+
description: 'Label of the control plane version. Used in frontent UI.',
|
|
1187
|
+
example: '1.33.x (Always latest 1.33 patch version)'
|
|
1188
|
+
}
|
|
1189
|
+
},
|
|
1190
|
+
required: ['id', 'label'],
|
|
1191
|
+
additionalProperties: false
|
|
1192
|
+
},
|
|
1193
|
+
minItems: 1,
|
|
1194
|
+
description: 'List of CFKE control plane versions available for the organization.'
|
|
1195
|
+
}
|
|
1196
|
+
},
|
|
1197
|
+
required: ['basic_clusters_max', 'basic_clusters_available', 'pro_clusters_max', 'pro_clusters_available', 'fleets_max', 'cluster_tiers', 'regions', 'versions'],
|
|
1198
|
+
additionalProperties: false
|
|
1199
|
+
};
|
|
1200
|
+
export const RegistryRepositorySchema = {
|
|
1201
|
+
type: 'object',
|
|
1202
|
+
properties: {
|
|
1203
|
+
name: {
|
|
1204
|
+
type: 'string',
|
|
1205
|
+
description: 'Repository name.',
|
|
1206
|
+
example: 'my-app'
|
|
1207
|
+
},
|
|
1208
|
+
region: {
|
|
1209
|
+
type: 'string',
|
|
1210
|
+
description: 'Registry region.',
|
|
1211
|
+
example: 'northamerica'
|
|
1212
|
+
},
|
|
1213
|
+
uri: {
|
|
1214
|
+
type: 'string',
|
|
1215
|
+
description: 'Full URI of the repository.',
|
|
1216
|
+
example: 'ssds123e-6651-4e5d-9c04-079f6532989b.northamerica.registry.cloudfleet.dev/v2/my-app'
|
|
1217
|
+
}
|
|
1218
|
+
},
|
|
1219
|
+
required: ['name', 'region', 'uri'],
|
|
1220
|
+
additionalProperties: false
|
|
1221
|
+
};
|
|
1222
|
+
export const RegistryRepositoryWithTagsSchema = {
|
|
1223
|
+
type: 'object',
|
|
1224
|
+
properties: {
|
|
1225
|
+
name: {
|
|
1226
|
+
type: 'string',
|
|
1227
|
+
description: 'Repository name.',
|
|
1228
|
+
example: 'my-app'
|
|
1229
|
+
},
|
|
1230
|
+
region: {
|
|
1231
|
+
type: 'string',
|
|
1232
|
+
description: 'Registry region.',
|
|
1233
|
+
example: 'northamerica'
|
|
1234
|
+
},
|
|
1235
|
+
uri: {
|
|
1236
|
+
type: 'string',
|
|
1237
|
+
description: 'Full URI of the repository.',
|
|
1238
|
+
example: 'ssds123e-6651-4e5d-9c04-079f6532989b.northamerica.registry.cloudfleet.dev/v2/my-app'
|
|
1239
|
+
},
|
|
1240
|
+
tags: {
|
|
1241
|
+
type: 'array',
|
|
1242
|
+
items: {
|
|
1243
|
+
type: 'object',
|
|
1244
|
+
properties: {
|
|
1245
|
+
name: {
|
|
1246
|
+
type: 'string',
|
|
1247
|
+
description: 'Tag name.',
|
|
1248
|
+
example: 'latest'
|
|
1249
|
+
},
|
|
1250
|
+
size: {
|
|
1251
|
+
type: 'number',
|
|
1252
|
+
format: 'float',
|
|
1253
|
+
description: 'Size of the tag in bytes.',
|
|
1254
|
+
example: 123456789
|
|
1255
|
+
},
|
|
1256
|
+
mediaType: {
|
|
1257
|
+
type: 'string',
|
|
1258
|
+
description: 'Media type of the manifest.',
|
|
1259
|
+
example: 'application/vnd.docker.distribution.manifest.v2+json'
|
|
1260
|
+
}
|
|
1261
|
+
},
|
|
1262
|
+
required: ['name', 'size'],
|
|
1263
|
+
additionalProperties: false
|
|
1264
|
+
},
|
|
1265
|
+
description: 'Array of tags in the repository.'
|
|
1266
|
+
},
|
|
1267
|
+
totalSize: {
|
|
1268
|
+
type: 'number',
|
|
1269
|
+
format: 'float',
|
|
1270
|
+
description: 'Total size of all tags in the repository in bytes.',
|
|
1271
|
+
example: 987654321
|
|
1272
|
+
}
|
|
1273
|
+
},
|
|
1274
|
+
required: ['name', 'region', 'uri', 'tags', 'totalSize'],
|
|
1275
|
+
additionalProperties: false
|
|
1276
|
+
};
|
|
1277
|
+
export const RegistryTagSchema = {
|
|
1278
|
+
type: 'object',
|
|
1279
|
+
properties: {
|
|
1280
|
+
name: {
|
|
1281
|
+
type: 'string',
|
|
1282
|
+
description: 'Tag name.',
|
|
1283
|
+
example: 'latest'
|
|
1284
|
+
},
|
|
1285
|
+
mediaType: {
|
|
1286
|
+
type: 'string',
|
|
1287
|
+
description: 'Media type of the manifest.',
|
|
1288
|
+
example: 'application/vnd.docker.distribution.manifest.v2+json'
|
|
1289
|
+
},
|
|
1290
|
+
config: {
|
|
1291
|
+
type: 'object',
|
|
1292
|
+
properties: {
|
|
1293
|
+
size: {
|
|
1294
|
+
type: 'number',
|
|
1295
|
+
format: 'float',
|
|
1296
|
+
description: 'Size of the config in bytes.',
|
|
1297
|
+
example: 1234
|
|
1298
|
+
}
|
|
1299
|
+
},
|
|
1300
|
+
required: ['size'],
|
|
1301
|
+
additionalProperties: false,
|
|
1302
|
+
description: 'Manifest config metadata.'
|
|
1303
|
+
},
|
|
1304
|
+
layers: {
|
|
1305
|
+
type: 'array',
|
|
1306
|
+
items: {
|
|
1307
|
+
type: 'object',
|
|
1308
|
+
properties: {
|
|
1309
|
+
size: {
|
|
1310
|
+
type: 'number',
|
|
1311
|
+
format: 'float',
|
|
1312
|
+
description: 'Size of the layer in bytes.',
|
|
1313
|
+
example: 5678
|
|
1314
|
+
}
|
|
1315
|
+
},
|
|
1316
|
+
required: ['size'],
|
|
1317
|
+
additionalProperties: false
|
|
1318
|
+
},
|
|
1319
|
+
description: 'Array of layer metadata.'
|
|
1320
|
+
},
|
|
1321
|
+
manifests: {
|
|
1322
|
+
type: 'array',
|
|
1323
|
+
items: {
|
|
1324
|
+
type: 'object',
|
|
1325
|
+
properties: {
|
|
1326
|
+
digest: {
|
|
1327
|
+
type: 'string',
|
|
1328
|
+
description: 'Digest of the manifest.',
|
|
1329
|
+
example: 'sha256:abcd1234ef567890abcd1234ef567890abcd1234ef567890abcd1234ef567890'
|
|
1330
|
+
},
|
|
1331
|
+
platform: {
|
|
1332
|
+
type: 'object',
|
|
1333
|
+
properties: {
|
|
1334
|
+
architecture: {
|
|
1335
|
+
type: 'string',
|
|
1336
|
+
description: 'Architecture of the platform.',
|
|
1337
|
+
example: 'amd64'
|
|
1338
|
+
},
|
|
1339
|
+
os: {
|
|
1340
|
+
type: 'string',
|
|
1341
|
+
description: 'Operating system of the platform.',
|
|
1342
|
+
example: 'linux'
|
|
1343
|
+
}
|
|
1344
|
+
},
|
|
1345
|
+
required: ['architecture', 'os'],
|
|
1346
|
+
additionalProperties: false,
|
|
1347
|
+
description: 'Platform information for the manifest.'
|
|
1348
|
+
}
|
|
1349
|
+
},
|
|
1350
|
+
required: ['digest'],
|
|
1351
|
+
additionalProperties: false
|
|
1352
|
+
},
|
|
1353
|
+
description: 'Array of manifests for multi-arch images.'
|
|
1354
|
+
},
|
|
1355
|
+
size: {
|
|
1356
|
+
type: 'number',
|
|
1357
|
+
format: 'float',
|
|
1358
|
+
description: 'Total size of the tag in bytes.',
|
|
1359
|
+
example: 123456789
|
|
1360
|
+
},
|
|
1361
|
+
region: {
|
|
1362
|
+
type: 'string',
|
|
1363
|
+
description: 'Registry region.',
|
|
1364
|
+
example: 'northamerica'
|
|
1365
|
+
},
|
|
1366
|
+
repository: {
|
|
1367
|
+
type: 'string',
|
|
1368
|
+
description: 'Repository name.',
|
|
1369
|
+
example: 'my-app'
|
|
1370
|
+
},
|
|
1371
|
+
uri: {
|
|
1372
|
+
type: 'string',
|
|
1373
|
+
description: 'Full URI of the tag.',
|
|
1374
|
+
example: 'ssds123e-6651-4e5d-9c04-079f6532989b.northamerica.registry.cloudfleet.dev/my-app:latest'
|
|
1375
|
+
}
|
|
1376
|
+
},
|
|
1377
|
+
required: ['name', 'size', 'region', 'repository', 'uri'],
|
|
1378
|
+
additionalProperties: false
|
|
1379
|
+
};
|
|
1153
1380
|
export const TokenCreateInputSchema = {
|
|
1154
1381
|
type: 'object',
|
|
1155
1382
|
properties: {
|
|
@@ -1228,6 +1455,101 @@ export const TokenUpdateInputSchema = {
|
|
|
1228
1455
|
},
|
|
1229
1456
|
additionalProperties: false
|
|
1230
1457
|
};
|
|
1458
|
+
export const UsageFacetsSchema = {
|
|
1459
|
+
type: 'object',
|
|
1460
|
+
properties: {
|
|
1461
|
+
cluster_id: {
|
|
1462
|
+
type: 'array',
|
|
1463
|
+
items: {
|
|
1464
|
+
type: 'string'
|
|
1465
|
+
},
|
|
1466
|
+
description: 'List of unique cluster IDs',
|
|
1467
|
+
example: ['6b5439b1-923a-4f2b-a371-d554e5ea23fa']
|
|
1468
|
+
},
|
|
1469
|
+
product: {
|
|
1470
|
+
type: 'array',
|
|
1471
|
+
items: {
|
|
1472
|
+
type: 'string'
|
|
1473
|
+
},
|
|
1474
|
+
description: 'List of unique products',
|
|
1475
|
+
example: ['cfke_controlplane', 'cfke_connected_nodes']
|
|
1476
|
+
}
|
|
1477
|
+
},
|
|
1478
|
+
additionalProperties: false
|
|
1479
|
+
};
|
|
1480
|
+
export const UsageResponseSchema = {
|
|
1481
|
+
type: 'object',
|
|
1482
|
+
properties: {
|
|
1483
|
+
data: {
|
|
1484
|
+
type: 'array',
|
|
1485
|
+
items: {
|
|
1486
|
+
type: 'object',
|
|
1487
|
+
properties: {
|
|
1488
|
+
hour: {
|
|
1489
|
+
type: 'string',
|
|
1490
|
+
description: 'Hour of the usage',
|
|
1491
|
+
example: '2019-01-01T00:00:00.000Z'
|
|
1492
|
+
},
|
|
1493
|
+
cluster_id: {
|
|
1494
|
+
type: 'string',
|
|
1495
|
+
description: 'Unique identifier of the kubernetes cluster. UUID v4 string in canonical form',
|
|
1496
|
+
example: '6b5439b1-923a-4f2b-a371-d554e5ea23fa'
|
|
1497
|
+
},
|
|
1498
|
+
product: {
|
|
1499
|
+
type: 'string',
|
|
1500
|
+
description: 'The product the usage is associated with',
|
|
1501
|
+
example: 'cfke_controlplane'
|
|
1502
|
+
},
|
|
1503
|
+
value: {
|
|
1504
|
+
type: 'number',
|
|
1505
|
+
format: 'float',
|
|
1506
|
+
description: 'Consumption',
|
|
1507
|
+
example: 4
|
|
1508
|
+
},
|
|
1509
|
+
price: {
|
|
1510
|
+
type: 'number',
|
|
1511
|
+
format: 'float',
|
|
1512
|
+
description: 'Price per unit',
|
|
1513
|
+
example: 0.01
|
|
1514
|
+
},
|
|
1515
|
+
total: {
|
|
1516
|
+
type: 'number',
|
|
1517
|
+
format: 'float',
|
|
1518
|
+
description: 'Total cost'
|
|
1519
|
+
}
|
|
1520
|
+
},
|
|
1521
|
+
required: ['hour', 'cluster_id', 'product', 'value', 'price', 'total'],
|
|
1522
|
+
additionalProperties: false
|
|
1523
|
+
},
|
|
1524
|
+
description: 'Usage data'
|
|
1525
|
+
},
|
|
1526
|
+
facets: {
|
|
1527
|
+
type: 'object',
|
|
1528
|
+
properties: {
|
|
1529
|
+
cluster_id: {
|
|
1530
|
+
type: 'array',
|
|
1531
|
+
items: {
|
|
1532
|
+
type: 'string'
|
|
1533
|
+
},
|
|
1534
|
+
description: 'List of unique cluster IDs',
|
|
1535
|
+
example: ['6b5439b1-923a-4f2b-a371-d554e5ea23fa']
|
|
1536
|
+
},
|
|
1537
|
+
product: {
|
|
1538
|
+
type: 'array',
|
|
1539
|
+
items: {
|
|
1540
|
+
type: 'string'
|
|
1541
|
+
},
|
|
1542
|
+
description: 'List of unique products',
|
|
1543
|
+
example: ['cfke_controlplane', 'cfke_connected_nodes']
|
|
1544
|
+
}
|
|
1545
|
+
},
|
|
1546
|
+
additionalProperties: false,
|
|
1547
|
+
description: 'Facets for filtering'
|
|
1548
|
+
}
|
|
1549
|
+
},
|
|
1550
|
+
required: ['data', 'facets'],
|
|
1551
|
+
additionalProperties: false
|
|
1552
|
+
};
|
|
1231
1553
|
export const UsageSchema = {
|
|
1232
1554
|
type: 'object',
|
|
1233
1555
|
properties: {
|
|
@@ -1238,90 +1560,33 @@ export const UsageSchema = {
|
|
|
1238
1560
|
},
|
|
1239
1561
|
cluster_id: {
|
|
1240
1562
|
type: 'string',
|
|
1241
|
-
format: 'uuid',
|
|
1242
1563
|
description: 'Unique identifier of the kubernetes cluster. UUID v4 string in canonical form',
|
|
1243
1564
|
example: '6b5439b1-923a-4f2b-a371-d554e5ea23fa'
|
|
1244
1565
|
},
|
|
1245
|
-
cluster_tier: {
|
|
1246
|
-
type: 'string',
|
|
1247
|
-
description: 'Tier of the cluster.',
|
|
1248
|
-
example: 'pro',
|
|
1249
|
-
enum: ['']
|
|
1250
|
-
},
|
|
1251
1566
|
product: {
|
|
1252
1567
|
type: 'string',
|
|
1253
1568
|
description: 'The product the usage is associated with',
|
|
1254
|
-
example: '
|
|
1255
|
-
enum: ['cfke_infra_compute', 'cfke_nodes', 'cfke_controlplane']
|
|
1256
|
-
},
|
|
1257
|
-
node_name: {
|
|
1258
|
-
type: 'string',
|
|
1259
|
-
description: 'Name of the Kubernetes node',
|
|
1260
|
-
example: 'flexible-moth-956037384'
|
|
1569
|
+
example: 'cfke_controlplane'
|
|
1261
1570
|
},
|
|
1262
|
-
|
|
1263
|
-
type: '
|
|
1264
|
-
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
cpu: {
|
|
1268
|
-
anyOf: [
|
|
1269
|
-
{
|
|
1270
|
-
type: 'number',
|
|
1271
|
-
format: 'float',
|
|
1272
|
-
description: 'CPU core count of the node',
|
|
1273
|
-
example: 4
|
|
1274
|
-
},
|
|
1275
|
-
{
|
|
1276
|
-
type: 'string',
|
|
1277
|
-
enum: ['']
|
|
1278
|
-
}
|
|
1279
|
-
]
|
|
1571
|
+
value: {
|
|
1572
|
+
type: 'number',
|
|
1573
|
+
format: 'float',
|
|
1574
|
+
description: 'Consumption',
|
|
1575
|
+
example: 4
|
|
1280
1576
|
},
|
|
1281
1577
|
price: {
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
description: 'Price',
|
|
1287
|
-
example: 4
|
|
1288
|
-
},
|
|
1289
|
-
{
|
|
1290
|
-
type: 'string',
|
|
1291
|
-
enum: ['']
|
|
1292
|
-
}
|
|
1293
|
-
]
|
|
1294
|
-
},
|
|
1295
|
-
value: {
|
|
1296
|
-
anyOf: [
|
|
1297
|
-
{
|
|
1298
|
-
type: 'number',
|
|
1299
|
-
format: 'float',
|
|
1300
|
-
description: 'Value',
|
|
1301
|
-
example: 4
|
|
1302
|
-
},
|
|
1303
|
-
{
|
|
1304
|
-
type: 'string',
|
|
1305
|
-
enum: ['']
|
|
1306
|
-
}
|
|
1307
|
-
]
|
|
1578
|
+
type: 'number',
|
|
1579
|
+
format: 'float',
|
|
1580
|
+
description: 'Price per unit',
|
|
1581
|
+
example: 0.01
|
|
1308
1582
|
},
|
|
1309
1583
|
total: {
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
format: 'float',
|
|
1314
|
-
description: 'Total',
|
|
1315
|
-
example: 4
|
|
1316
|
-
},
|
|
1317
|
-
{
|
|
1318
|
-
type: 'string',
|
|
1319
|
-
enum: ['']
|
|
1320
|
-
}
|
|
1321
|
-
]
|
|
1584
|
+
type: 'number',
|
|
1585
|
+
format: 'float',
|
|
1586
|
+
description: 'Total cost'
|
|
1322
1587
|
}
|
|
1323
1588
|
},
|
|
1324
|
-
required: ['
|
|
1589
|
+
required: ['hour', 'cluster_id', 'product', 'value', 'price', 'total'],
|
|
1325
1590
|
additionalProperties: false
|
|
1326
1591
|
};
|
|
1327
1592
|
export const UserCreateInputSchema = {
|
|
@@ -1420,28 +1685,6 @@ export const UserSchema = {
|
|
|
1420
1685
|
format: 'date-time',
|
|
1421
1686
|
description: 'Creation date of the user. ISO 8601 date string in UTC timezone',
|
|
1422
1687
|
example: '2023-11-02T16:08:14.338Z'
|
|
1423
|
-
},
|
|
1424
|
-
cluster_permissions: {
|
|
1425
|
-
type: 'array',
|
|
1426
|
-
items: {
|
|
1427
|
-
type: 'object',
|
|
1428
|
-
properties: {
|
|
1429
|
-
cluster_id: {
|
|
1430
|
-
type: 'string',
|
|
1431
|
-
format: 'uuid',
|
|
1432
|
-
description: 'Unique identifier of the cluster. UUID v4 string in canonical form',
|
|
1433
|
-
example: '035ce46d-44d8-4e58-a8a2-b0192d1c27df'
|
|
1434
|
-
},
|
|
1435
|
-
permissions: {
|
|
1436
|
-
type: 'string',
|
|
1437
|
-
description: 'User permissions to access the cluster. Can be `readwrite` or `readonly`.',
|
|
1438
|
-
example: 'readwrite',
|
|
1439
|
-
enum: ['readwrite', 'readonly']
|
|
1440
|
-
}
|
|
1441
|
-
},
|
|
1442
|
-
required: ['cluster_id', 'permissions'],
|
|
1443
|
-
additionalProperties: false
|
|
1444
|
-
}
|
|
1445
1688
|
}
|
|
1446
1689
|
},
|
|
1447
1690
|
required: ['email', 'first_name', 'last_name', 'role', 'status', 'id', 'date_created'],
|