@cloudfleet/sdk 0.5.2 → 0.6.0

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.
@@ -67,10 +67,208 @@ export declare const BillingContactSchema: {
67
67
  readonly description: "Last name of the billing contact person.";
68
68
  readonly example: "Doe";
69
69
  };
70
+ readonly tax_id: {
71
+ readonly type: "string";
72
+ readonly nullable: true;
73
+ readonly description: "Tax ID of the organization.";
74
+ readonly example: "DE123456789";
75
+ };
76
+ readonly tax_id_type: {
77
+ readonly type: "string";
78
+ readonly nullable: true;
79
+ readonly description: "Type of the tax ID.";
80
+ readonly example: "de_vat";
81
+ readonly enum: readonly ["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", ""];
82
+ };
70
83
  };
71
84
  readonly required: readonly ["email", "first_name", "last_name"];
72
85
  readonly additionalProperties: false;
73
86
  };
87
+ export declare const BillingCreditsSchema: {
88
+ readonly type: "object";
89
+ readonly properties: {
90
+ readonly id: {
91
+ readonly type: "string";
92
+ readonly description: "Generated unique identifier of the promotional code.";
93
+ readonly example: "7kUZnH7nnKUFfvc4NK2KQF";
94
+ };
95
+ readonly date_created: {
96
+ readonly type: "string";
97
+ readonly format: "date-time";
98
+ readonly description: "Date of the credit application. ISO 8601 date string in the UTC timezone.";
99
+ readonly example: "2023-12-20T13:53:32.000Z";
100
+ };
101
+ readonly code: {
102
+ readonly type: "string";
103
+ readonly description: "Promotional code used by the customer.";
104
+ readonly example: "VQ4SCMB";
105
+ };
106
+ readonly description: {
107
+ readonly type: "string";
108
+ readonly description: "Description of the promotional code.";
109
+ readonly example: "10% off on all products";
110
+ };
111
+ readonly products: {
112
+ readonly type: "array";
113
+ readonly items: {
114
+ readonly type: "string";
115
+ };
116
+ readonly description: "List of product SKUs that the promotional code can be used on.";
117
+ readonly example: readonly ["cfke_controlplane", "cfke_connected_nodes", "infra_compute", "infra_storage", "infra_loadbalancing", "infra_traffic", "cfcr_storage"];
118
+ };
119
+ readonly type: {
120
+ readonly type: "string";
121
+ readonly description: "Type of the promotional code.";
122
+ readonly example: "credit";
123
+ readonly enum: readonly ["credit", "discount"];
124
+ };
125
+ readonly value: {
126
+ readonly type: "number";
127
+ readonly format: "float";
128
+ readonly description: "Value of the promotional code.";
129
+ readonly example: 10;
130
+ };
131
+ readonly billing_period: {
132
+ readonly type: "string";
133
+ readonly format: "date-time";
134
+ readonly description: "Date of the billing cycle. An ISO 8601 date string in the UTC timezone.";
135
+ readonly example: "2023-12-20T13:53:32.000Z";
136
+ };
137
+ readonly value_remaining: {
138
+ readonly type: "number";
139
+ readonly format: "float";
140
+ readonly description: "Value of the promotional code.";
141
+ readonly example: 10;
142
+ };
143
+ };
144
+ readonly required: readonly ["date_created", "code", "type", "value", "billing_period"];
145
+ readonly additionalProperties: false;
146
+ };
147
+ export declare const ChartCreateInputSchema: {
148
+ readonly type: "object";
149
+ readonly properties: {
150
+ readonly values: {
151
+ readonly type: "string";
152
+ readonly description: "Values to be used in the chart encoded as a JSON string.";
153
+ };
154
+ readonly version_channel: {
155
+ readonly type: "string";
156
+ readonly pattern: "^(x|X|0|[1-9]\\d*)\\.(x|X|0|[1-9]\\d*)\\.(x|X|0|[1-9]\\d*)(?:-((?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\\.(?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\\+([0-9a-zA-Z-]+(?:\\.[0-9a-zA-Z-]+)*))?$";
157
+ readonly description: "Desired version range or channel for the chart.";
158
+ readonly example: "2.x.x-cfke.x";
159
+ };
160
+ readonly name: {
161
+ readonly type: "string";
162
+ readonly maxLength: 63;
163
+ readonly minLength: 1;
164
+ readonly pattern: "^[a-z0-9]([-a-z0-9]*[a-z0-9])?$";
165
+ readonly description: "Unique identifier of the chart deployment aka name of the helm release.";
166
+ readonly example: "postgresql-0";
167
+ };
168
+ readonly namespace: {
169
+ readonly type: "string";
170
+ readonly maxLength: 63;
171
+ readonly minLength: 1;
172
+ readonly pattern: "^[a-z0-9]([-a-z0-9]*[a-z0-9])?$";
173
+ readonly description: "Namespace of the chart deployment";
174
+ readonly example: "default";
175
+ };
176
+ readonly chart: {
177
+ readonly type: "string";
178
+ readonly maxLength: 63;
179
+ readonly minLength: 1;
180
+ readonly pattern: "^[a-z0-9]([-a-z0-9]*[a-z0-9])?$";
181
+ readonly description: "Name of the chart listing";
182
+ readonly example: "postgresql";
183
+ };
184
+ };
185
+ readonly required: readonly ["values", "version_channel", "name", "namespace", "chart"];
186
+ readonly additionalProperties: false;
187
+ };
188
+ export declare const ChartSchema: {
189
+ readonly type: "object";
190
+ readonly properties: {
191
+ readonly values: {
192
+ readonly type: "string";
193
+ readonly description: "Values to be used in the chart encoded as a JSON string.";
194
+ };
195
+ readonly version_channel: {
196
+ readonly type: "string";
197
+ readonly pattern: "^(x|X|0|[1-9]\\d*)\\.(x|X|0|[1-9]\\d*)\\.(x|X|0|[1-9]\\d*)(?:-((?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\\.(?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\\+([0-9a-zA-Z-]+(?:\\.[0-9a-zA-Z-]+)*))?$";
198
+ readonly description: "Desired version range or channel for the chart.";
199
+ readonly example: "2.x.x-cfke.x";
200
+ };
201
+ readonly name: {
202
+ readonly type: "string";
203
+ readonly maxLength: 63;
204
+ readonly minLength: 1;
205
+ readonly pattern: "^[a-z0-9]([-a-z0-9]*[a-z0-9])?$";
206
+ readonly description: "Unique identifier of the chart deployment aka name of the helm release.";
207
+ readonly example: "postgresql-0";
208
+ };
209
+ readonly namespace: {
210
+ readonly type: "string";
211
+ readonly maxLength: 63;
212
+ readonly minLength: 1;
213
+ readonly pattern: "^[a-z0-9]([-a-z0-9]*[a-z0-9])?$";
214
+ readonly description: "Namespace of the chart deployment";
215
+ readonly example: "default";
216
+ };
217
+ readonly chart: {
218
+ readonly type: "string";
219
+ readonly maxLength: 63;
220
+ readonly minLength: 1;
221
+ readonly pattern: "^[a-z0-9]([-a-z0-9]*[a-z0-9])?$";
222
+ readonly description: "Name of the chart listing";
223
+ readonly example: "postgresql";
224
+ };
225
+ readonly status: {
226
+ readonly type: "string";
227
+ readonly description: "Status of the chart deployment.";
228
+ readonly example: "active";
229
+ readonly enum: readonly ["InstallSucceeded", "InstallFailed", "UpgradeSucceeded", "UpgradeFailed", "TestSucceeded", "TestFailed", "RollbackSucceeded", "RollbackFailed", "UninstallSucceeded", "UninstallFailed", "ArtifactFailed", "DependencyNotReady", "Progressing", "SourceNotReady"];
230
+ };
231
+ readonly version_current: {
232
+ readonly type: "string";
233
+ readonly description: "Current version of the chart deployment.";
234
+ readonly example: "2.1.33-cfke.11";
235
+ };
236
+ readonly created_at: {
237
+ readonly type: "string";
238
+ readonly description: "Creation date and time of the chart deployment.";
239
+ readonly example: "2024-09-12T09:11:27Z";
240
+ };
241
+ readonly updated_at: {
242
+ readonly type: "string";
243
+ readonly description: "Last update date and time of the chart deployment.";
244
+ readonly example: "2024-09-12T09:11:27Z";
245
+ };
246
+ readonly ready: {
247
+ readonly type: "boolean";
248
+ readonly description: "Indicates if the chart deployment is ready to be used.";
249
+ readonly example: true;
250
+ };
251
+ };
252
+ readonly required: readonly ["values", "version_channel", "name", "namespace", "chart", "status", "version_current", "created_at", "updated_at", "ready"];
253
+ readonly additionalProperties: false;
254
+ };
255
+ export declare const ChartUpdateInputSchema: {
256
+ readonly type: "object";
257
+ readonly properties: {
258
+ readonly values: {
259
+ readonly type: "string";
260
+ readonly description: "Values to be used in the chart encoded as a JSON string.";
261
+ };
262
+ readonly version_channel: {
263
+ readonly type: "string";
264
+ readonly pattern: "^(x|X|0|[1-9]\\d*)\\.(x|X|0|[1-9]\\d*)\\.(x|X|0|[1-9]\\d*)(?:-((?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\\.(?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\\+([0-9a-zA-Z-]+(?:\\.[0-9a-zA-Z-]+)*))?$";
265
+ readonly description: "Desired version range or channel for the chart.";
266
+ readonly example: "2.x.x-cfke.x";
267
+ };
268
+ };
269
+ readonly required: readonly ["values", "version_channel"];
270
+ readonly additionalProperties: false;
271
+ };
74
272
  export declare const ClusterCreateInputSchema: {
75
273
  readonly type: "object";
76
274
  readonly properties: {
@@ -921,6 +1119,88 @@ export declare const InvoiceSchema: {
921
1119
  };
922
1120
  readonly additionalProperties: false;
923
1121
  };
1122
+ export declare const MarketplaceListingSchema: {
1123
+ readonly type: "object";
1124
+ readonly properties: {
1125
+ readonly id: {
1126
+ readonly type: "string";
1127
+ readonly maxLength: 63;
1128
+ readonly minLength: 1;
1129
+ readonly pattern: "^[a-z0-9]([-a-z0-9]*[a-z0-9])?$";
1130
+ readonly description: "Id of the chart listing";
1131
+ readonly example: "portworx-enterprise-disaster-recovery-baremetal";
1132
+ };
1133
+ readonly name: {
1134
+ readonly type: "string";
1135
+ readonly description: "Name of the chart listing";
1136
+ readonly example: "Portworx Enterprise + Disaster Recovery - Baremetal";
1137
+ };
1138
+ readonly developer: {
1139
+ readonly type: "string";
1140
+ readonly description: "Author of the chart listing";
1141
+ readonly example: "Portworx";
1142
+ };
1143
+ readonly description: {
1144
+ readonly type: "string";
1145
+ readonly description: "Short description of the chart listing";
1146
+ readonly example: "Run Kubernetes with unmatched scalability, availability, and self-service access to any storage";
1147
+ };
1148
+ readonly logoUrl: {
1149
+ readonly type: "string";
1150
+ readonly description: "Logo of the chart listing";
1151
+ readonly example: "https://portworx.com/wp-content/themes/portworx/assets/images/header/portworx-logo.png";
1152
+ };
1153
+ readonly longDescription: {
1154
+ readonly type: "string";
1155
+ readonly description: "Long description of the chart listing";
1156
+ readonly example: "Portworx-Enterprise is the complete multi-cloud ready Kubernetes storage platform for running mission-critical apps in production....";
1157
+ };
1158
+ readonly categories: {
1159
+ readonly type: "array";
1160
+ readonly items: {
1161
+ readonly type: "string";
1162
+ readonly example: "AI & Machine Learning";
1163
+ };
1164
+ readonly description: "Tags of the chart";
1165
+ };
1166
+ readonly version_channels: {
1167
+ readonly type: "array";
1168
+ readonly items: {
1169
+ readonly type: "string";
1170
+ readonly 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-]+)*))?$";
1171
+ readonly description: "Version of the chart.";
1172
+ readonly example: "2.x.x-cfke.x";
1173
+ };
1174
+ };
1175
+ readonly value_schemas: {
1176
+ readonly type: "array";
1177
+ readonly items: {
1178
+ readonly type: "object";
1179
+ readonly properties: {
1180
+ readonly version: {
1181
+ readonly type: "string";
1182
+ readonly 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-]+)*))?$";
1183
+ readonly description: "Version of the chart.";
1184
+ readonly example: "2.1.1-cfke.123";
1185
+ };
1186
+ readonly schema: {
1187
+ readonly type: "string";
1188
+ readonly description: "Schema of the chart values. JSON Schema as string";
1189
+ };
1190
+ readonly placeholder: {
1191
+ readonly type: "string";
1192
+ readonly description: "Schema of the chart values";
1193
+ readonly example: "foo: 1\nbar: example";
1194
+ };
1195
+ };
1196
+ readonly required: readonly ["version", "schema", "placeholder"];
1197
+ readonly additionalProperties: false;
1198
+ };
1199
+ };
1200
+ };
1201
+ readonly required: readonly ["id", "name", "developer", "description", "logoUrl", "longDescription", "categories", "version_channels", "value_schemas"];
1202
+ readonly additionalProperties: false;
1203
+ };
924
1204
  export declare const OrganizationCreateInputSchema: {
925
1205
  readonly type: "object";
926
1206
  readonly properties: {
@@ -1219,13 +1499,13 @@ export declare const UsageSchema: {
1219
1499
  readonly type: "string";
1220
1500
  readonly description: "Tier of the cluster.";
1221
1501
  readonly example: "pro";
1222
- readonly enum: readonly [""];
1502
+ readonly enum: readonly ["basic", "pro", ""];
1223
1503
  };
1224
1504
  readonly product: {
1225
1505
  readonly type: "string";
1226
1506
  readonly description: "The product the usage is associated with";
1227
- readonly example: "cfke_infra_compute";
1228
- readonly enum: readonly ["cfke_infra_compute", "cfke_nodes", "cfke_controlplane"];
1507
+ readonly example: "cfke_controlplane";
1508
+ readonly enum: readonly ["cfke_controlplane", "cfke_connected_nodes", "infra_compute", "infra_storage", "infra_loadbalancing", "infra_traffic", "cfcr_storage"];
1229
1509
  };
1230
1510
  readonly node_name: {
1231
1511
  readonly type: "string";
@@ -1 +1 @@
1
- {"version":3,"file":"schemas.gen.d.ts","sourceRoot":"","sources":["../src/schemas.gen.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwEvB,CAAC;AAEX,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkC3B,CAAC;AAEX,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA0E/B,CAAC;AAEX,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsFhB,CAAC;AAEX,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;CAmB3B,CAAC;AAEX,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6FzB,CAAC;AAEX,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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BAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkF3B,CAAC;AAEX,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmChC,CAAC;AAEX,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgHrB,CAAC;AAEX,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoDtB,CAAC;AAEX,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;CAoBzB,CAAC;AAEX,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoCd,CAAC;AAEX,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;CAmBzB,CAAC;AAEX,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+Fd,CAAC;AAEX,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiDxB,CAAC;AAEX,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkDb,CAAC;AAEX,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqCxB,CAAC"}
@@ -67,11 +67,209 @@ export const BillingContactSchema = {
67
67
  type: 'string',
68
68
  description: 'Last name of the billing contact person.',
69
69
  example: 'Doe'
70
+ },
71
+ tax_id: {
72
+ type: 'string',
73
+ nullable: true,
74
+ description: 'Tax ID of the organization.',
75
+ example: 'DE123456789'
76
+ },
77
+ tax_id_type: {
78
+ type: 'string',
79
+ nullable: true,
80
+ description: 'Type of the tax ID.',
81
+ example: 'de_vat',
82
+ 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', '']
70
83
  }
71
84
  },
72
85
  required: ['email', 'first_name', 'last_name'],
73
86
  additionalProperties: false
74
87
  };
88
+ export const BillingCreditsSchema = {
89
+ type: 'object',
90
+ properties: {
91
+ id: {
92
+ type: 'string',
93
+ description: 'Generated unique identifier of the promotional code.',
94
+ example: '7kUZnH7nnKUFfvc4NK2KQF'
95
+ },
96
+ date_created: {
97
+ type: 'string',
98
+ format: 'date-time',
99
+ description: 'Date of the credit application. ISO 8601 date string in the UTC timezone.',
100
+ example: '2023-12-20T13:53:32.000Z'
101
+ },
102
+ code: {
103
+ type: 'string',
104
+ description: 'Promotional code used by the customer.',
105
+ example: 'VQ4SCMB'
106
+ },
107
+ description: {
108
+ type: 'string',
109
+ description: 'Description of the promotional code.',
110
+ example: '10% off on all products'
111
+ },
112
+ products: {
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: {
127
+ type: 'number',
128
+ format: 'float',
129
+ description: 'Value of the promotional code.',
130
+ example: 10
131
+ },
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
+ value_remaining: {
139
+ type: 'number',
140
+ format: 'float',
141
+ description: 'Value of the promotional code.',
142
+ example: 10
143
+ }
144
+ },
145
+ required: ['date_created', 'code', 'type', 'value', 'billing_period'],
146
+ additionalProperties: false
147
+ };
148
+ export const ChartCreateInputSchema = {
149
+ type: 'object',
150
+ properties: {
151
+ values: {
152
+ type: 'string',
153
+ description: 'Values to be used in the chart encoded as a JSON string.'
154
+ },
155
+ version_channel: {
156
+ type: 'string',
157
+ 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-]+)*))?$',
158
+ description: 'Desired version range or channel for the chart.',
159
+ example: '2.x.x-cfke.x'
160
+ },
161
+ name: {
162
+ type: 'string',
163
+ maxLength: 63,
164
+ minLength: 1,
165
+ pattern: '^[a-z0-9]([-a-z0-9]*[a-z0-9])?$',
166
+ description: 'Unique identifier of the chart deployment aka name of the helm release.',
167
+ example: 'postgresql-0'
168
+ },
169
+ namespace: {
170
+ type: 'string',
171
+ maxLength: 63,
172
+ minLength: 1,
173
+ pattern: '^[a-z0-9]([-a-z0-9]*[a-z0-9])?$',
174
+ description: 'Namespace of the chart deployment',
175
+ example: 'default'
176
+ },
177
+ chart: {
178
+ type: 'string',
179
+ maxLength: 63,
180
+ minLength: 1,
181
+ pattern: '^[a-z0-9]([-a-z0-9]*[a-z0-9])?$',
182
+ description: 'Name of the chart listing',
183
+ example: 'postgresql'
184
+ }
185
+ },
186
+ required: ['values', 'version_channel', 'name', 'namespace', 'chart'],
187
+ additionalProperties: false
188
+ };
189
+ export const ChartSchema = {
190
+ type: 'object',
191
+ properties: {
192
+ values: {
193
+ type: 'string',
194
+ description: 'Values to be used in the chart encoded as a JSON string.'
195
+ },
196
+ version_channel: {
197
+ type: 'string',
198
+ 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-]+)*))?$',
199
+ description: 'Desired version range or channel for the chart.',
200
+ example: '2.x.x-cfke.x'
201
+ },
202
+ name: {
203
+ type: 'string',
204
+ maxLength: 63,
205
+ minLength: 1,
206
+ pattern: '^[a-z0-9]([-a-z0-9]*[a-z0-9])?$',
207
+ description: 'Unique identifier of the chart deployment aka name of the helm release.',
208
+ example: 'postgresql-0'
209
+ },
210
+ namespace: {
211
+ type: 'string',
212
+ maxLength: 63,
213
+ minLength: 1,
214
+ pattern: '^[a-z0-9]([-a-z0-9]*[a-z0-9])?$',
215
+ description: 'Namespace of the chart deployment',
216
+ example: 'default'
217
+ },
218
+ chart: {
219
+ type: 'string',
220
+ maxLength: 63,
221
+ minLength: 1,
222
+ pattern: '^[a-z0-9]([-a-z0-9]*[a-z0-9])?$',
223
+ description: 'Name of the chart listing',
224
+ example: 'postgresql'
225
+ },
226
+ status: {
227
+ type: 'string',
228
+ description: 'Status of the chart deployment.',
229
+ example: 'active',
230
+ enum: ['InstallSucceeded', 'InstallFailed', 'UpgradeSucceeded', 'UpgradeFailed', 'TestSucceeded', 'TestFailed', 'RollbackSucceeded', 'RollbackFailed', 'UninstallSucceeded', 'UninstallFailed', 'ArtifactFailed', 'DependencyNotReady', 'Progressing', 'SourceNotReady']
231
+ },
232
+ version_current: {
233
+ type: 'string',
234
+ description: 'Current version of the chart deployment.',
235
+ example: '2.1.33-cfke.11'
236
+ },
237
+ created_at: {
238
+ type: 'string',
239
+ description: 'Creation date and time of the chart deployment.',
240
+ example: '2024-09-12T09:11:27Z'
241
+ },
242
+ updated_at: {
243
+ type: 'string',
244
+ description: 'Last update date and time of the chart deployment.',
245
+ example: '2024-09-12T09:11:27Z'
246
+ },
247
+ ready: {
248
+ type: 'boolean',
249
+ description: 'Indicates if the chart deployment is ready to be used.',
250
+ example: true
251
+ }
252
+ },
253
+ required: ['values', 'version_channel', 'name', 'namespace', 'chart', 'status', 'version_current', 'created_at', 'updated_at', 'ready'],
254
+ additionalProperties: false
255
+ };
256
+ export const ChartUpdateInputSchema = {
257
+ type: 'object',
258
+ properties: {
259
+ values: {
260
+ type: 'string',
261
+ description: 'Values to be used in the chart encoded as a JSON string.'
262
+ },
263
+ version_channel: {
264
+ type: 'string',
265
+ 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-]+)*))?$',
266
+ description: 'Desired version range or channel for the chart.',
267
+ example: '2.x.x-cfke.x'
268
+ }
269
+ },
270
+ required: ['values', 'version_channel'],
271
+ additionalProperties: false
272
+ };
75
273
  export const ClusterCreateInputSchema = {
76
274
  type: 'object',
77
275
  properties: {
@@ -948,6 +1146,89 @@ export const InvoiceSchema = {
948
1146
  },
949
1147
  additionalProperties: false
950
1148
  };
1149
+ export const MarketplaceListingSchema = {
1150
+ type: 'object',
1151
+ properties: {
1152
+ id: {
1153
+ type: 'string',
1154
+ maxLength: 63,
1155
+ minLength: 1,
1156
+ pattern: '^[a-z0-9]([-a-z0-9]*[a-z0-9])?$',
1157
+ description: 'Id of the chart listing',
1158
+ example: 'portworx-enterprise-disaster-recovery-baremetal'
1159
+ },
1160
+ name: {
1161
+ type: 'string',
1162
+ description: 'Name of the chart listing',
1163
+ example: 'Portworx Enterprise + Disaster Recovery - Baremetal'
1164
+ },
1165
+ developer: {
1166
+ type: 'string',
1167
+ description: 'Author of the chart listing',
1168
+ example: 'Portworx'
1169
+ },
1170
+ description: {
1171
+ type: 'string',
1172
+ description: 'Short description of the chart listing',
1173
+ example: 'Run Kubernetes with unmatched scalability, availability, and self-service access to any storage'
1174
+ },
1175
+ logoUrl: {
1176
+ type: 'string',
1177
+ description: 'Logo of the chart listing',
1178
+ example: 'https://portworx.com/wp-content/themes/portworx/assets/images/header/portworx-logo.png'
1179
+ },
1180
+ longDescription: {
1181
+ type: 'string',
1182
+ description: 'Long description of the chart listing',
1183
+ example: 'Portworx-Enterprise is the complete multi-cloud ready Kubernetes storage platform for running mission-critical apps in production....'
1184
+ },
1185
+ categories: {
1186
+ type: 'array',
1187
+ items: {
1188
+ type: 'string',
1189
+ example: 'AI & Machine Learning'
1190
+ },
1191
+ description: 'Tags of the chart'
1192
+ },
1193
+ version_channels: {
1194
+ type: 'array',
1195
+ items: {
1196
+ type: 'string',
1197
+ 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-]+)*))?$',
1198
+ description: 'Version of the chart.',
1199
+ example: '2.x.x-cfke.x'
1200
+ }
1201
+ },
1202
+ value_schemas: {
1203
+ type: 'array',
1204
+ items: {
1205
+ type: 'object',
1206
+ properties: {
1207
+ version: {
1208
+ type: 'string',
1209
+ 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-]+)*))?$',
1210
+ description: 'Version of the chart.',
1211
+ example: '2.1.1-cfke.123'
1212
+ },
1213
+ schema: {
1214
+ type: 'string',
1215
+ description: 'Schema of the chart values. JSON Schema as string'
1216
+ },
1217
+ placeholder: {
1218
+ type: 'string',
1219
+ description: 'Schema of the chart values',
1220
+ example: `foo: 1
1221
+ bar: example`
1222
+ }
1223
+ },
1224
+ required: ['version', 'schema', 'placeholder'],
1225
+ additionalProperties: false
1226
+ }
1227
+ }
1228
+ },
1229
+ required: ['id', 'name', 'developer', 'description', 'logoUrl', 'longDescription', 'categories', 'version_channels', 'value_schemas'],
1230
+ additionalProperties: false
1231
+ };
951
1232
  export const OrganizationCreateInputSchema = {
952
1233
  type: 'object',
953
1234
  properties: {
@@ -1246,13 +1527,13 @@ export const UsageSchema = {
1246
1527
  type: 'string',
1247
1528
  description: 'Tier of the cluster.',
1248
1529
  example: 'pro',
1249
- enum: ['']
1530
+ enum: ['basic', 'pro', '']
1250
1531
  },
1251
1532
  product: {
1252
1533
  type: 'string',
1253
1534
  description: 'The product the usage is associated with',
1254
- example: 'cfke_infra_compute',
1255
- enum: ['cfke_infra_compute', 'cfke_nodes', 'cfke_controlplane']
1535
+ example: 'cfke_controlplane',
1536
+ enum: ['cfke_controlplane', 'cfke_connected_nodes', 'infra_compute', 'infra_storage', 'infra_loadbalancing', 'infra_traffic', 'cfcr_storage']
1256
1537
  },
1257
1538
  node_name: {
1258
1539
  type: 'string',