@scaleway/sdk-product-catalog 2.21.0 → 2.22.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.
@@ -1,4 +1,4 @@
1
1
  export { PublicCatalogAPI, } from './api.gen.js';
2
2
  export * from './marshalling.gen.js';
3
- export type { ListPublicCatalogProductsRequestProductType, ListPublicCatalogProductsRequestStatus, ListPublicCatalogProductsResponse, PublicCatalogApiListPublicCatalogProductsRequest, PublicCatalogProduct, PublicCatalogProductEnvironmentalImpactEstimation, PublicCatalogProductLocality, PublicCatalogProductPrice, PublicCatalogProductProductBadge, PublicCatalogProductProperties, PublicCatalogProductPropertiesApacheKafka, PublicCatalogProductPropertiesAppleSilicon, PublicCatalogProductPropertiesBlockStorage, PublicCatalogProductPropertiesBlockStorageSnapshotType, PublicCatalogProductPropertiesBlockStorageVolumeType, PublicCatalogProductPropertiesDedibox, PublicCatalogProductPropertiesElasticMetal, PublicCatalogProductPropertiesGenerativeApis, PublicCatalogProductPropertiesGenerativeApisConsumptionMode, PublicCatalogProductPropertiesGenerativeApisTask, PublicCatalogProductPropertiesGenerativeApisTokenType, PublicCatalogProductPropertiesHardware, PublicCatalogProductPropertiesHardwareCPU, PublicCatalogProductPropertiesHardwareCPUArch, PublicCatalogProductPropertiesHardwareCPUPhysical, PublicCatalogProductPropertiesHardwareCPUVirtual, PublicCatalogProductPropertiesHardwareGPU, PublicCatalogProductPropertiesHardwareNetwork, PublicCatalogProductPropertiesHardwareRAM, PublicCatalogProductPropertiesHardwareRAMECCType, PublicCatalogProductPropertiesHardwareStorage, PublicCatalogProductPropertiesInstance, PublicCatalogProductPropertiesInstanceLocalSSDSnapshot, PublicCatalogProductPropertiesInstanceLocalSSDStorage, PublicCatalogProductPropertiesKeyManager, PublicCatalogProductPropertiesKubernetes, PublicCatalogProductPropertiesKubernetesKapsuleControlPlaneType, PublicCatalogProductPropertiesKubernetesKosmosControlPlaneType, PublicCatalogProductPropertiesKubernetesKosmosNodeType, PublicCatalogProductPropertiesLoadBalancer, PublicCatalogProductPropertiesLoadBalancerIPV4Type, PublicCatalogProductPropertiesLoadBalancerNodeType, PublicCatalogProductPropertiesManagedInference, PublicCatalogProductPropertiesManagedInferenceManagedInferenceCustomModelStorage, PublicCatalogProductPropertiesManagedInferenceManagedInferenceDeployment, PublicCatalogProductPropertiesManagedMongoDB, PublicCatalogProductPropertiesManagedMongoDBManagementType, PublicCatalogProductPropertiesManagedMongoDBNodeType, PublicCatalogProductPropertiesManagedMongoDBStorageType, PublicCatalogProductPropertiesManagedMongoDBStorageTypeStorageClass, PublicCatalogProductPropertiesManagedRedisDatabase, PublicCatalogProductPropertiesManagedRelationalDatabase, PublicCatalogProductPropertiesManagedRelationalDatabaseManagementType, PublicCatalogProductPropertiesManagedRelationalDatabaseMultiAzType, PublicCatalogProductPropertiesManagedRelationalDatabaseNodeType, PublicCatalogProductPropertiesManagedRelationalDatabaseStorageType, PublicCatalogProductPropertiesManagedRelationalDatabaseStorageTypeStorageClass, PublicCatalogProductPropertiesObjectStorage, PublicCatalogProductPropertiesObjectStorageClassType, PublicCatalogProductPropertiesObjectStorageClassTypeStorageClass, PublicCatalogProductPropertiesObjectStorageInternetTrafficType, PublicCatalogProductPropertiesObjectStorageInternetTrafficTypeTrafficType, PublicCatalogProductPropertiesObjectStorageRegionTrafficType, PublicCatalogProductPropertiesObjectStorageRestoreType, PublicCatalogProductPropertiesObjectStorageRestoreTypeRestoreType, PublicCatalogProductPropertiesOpenSearch, PublicCatalogProductPropertiesSecretManager, PublicCatalogProductPropertiesServerlessContainers, PublicCatalogProductPropertiesServerlessContainersCPUType, PublicCatalogProductPropertiesServerlessContainersMemoryType, PublicCatalogProductPropertiesServerlessFunctions, PublicCatalogProductPropertiesServerlessFunctionsConsumptionType, PublicCatalogProductPropertiesServerlessFunctionsFreeTierType, PublicCatalogProductPropertiesServerlessFunctionsProvisionType, PublicCatalogProductPropertiesServerlessFunctionsRequestType, PublicCatalogProductPropertiesServerlessFunctionsRuntimeResource, PublicCatalogProductPropertiesServerlessJobs, PublicCatalogProductPropertiesServerlessJobsCPUType, PublicCatalogProductPropertiesServerlessJobsMemoryType, PublicCatalogProductStatus, PublicCatalogProductUnitOfMeasure, PublicCatalogProductUnitOfMeasureCountableUnit, } from './types.gen.js';
3
+ export type { ListPublicCatalogProductsRequestProductType, ListPublicCatalogProductsRequestStatus, ListPublicCatalogProductsResponse, PublicCatalogApiListPublicCatalogProductsRequest, PublicCatalogProduct, PublicCatalogProductEnvironmentalImpactEstimation, PublicCatalogProductLocality, PublicCatalogProductPrice, PublicCatalogProductProductBadge, PublicCatalogProductProperties, PublicCatalogProductPropertiesApacheKafka, PublicCatalogProductPropertiesApacheKafkaAvailableVolumeType, PublicCatalogProductPropertiesApacheKafkaNodeType, PublicCatalogProductPropertiesApacheKafkaStorageType, PublicCatalogProductPropertiesAppleSilicon, PublicCatalogProductPropertiesBlockStorage, PublicCatalogProductPropertiesBlockStorageSnapshotType, PublicCatalogProductPropertiesBlockStorageVolumeType, PublicCatalogProductPropertiesDedibox, PublicCatalogProductPropertiesElasticMetal, PublicCatalogProductPropertiesGenerativeApis, PublicCatalogProductPropertiesGenerativeApisConsumptionMode, PublicCatalogProductPropertiesGenerativeApisTask, PublicCatalogProductPropertiesGenerativeApisTokenType, PublicCatalogProductPropertiesHardware, PublicCatalogProductPropertiesHardwareCPU, PublicCatalogProductPropertiesHardwareCPUArch, PublicCatalogProductPropertiesHardwareCPUPhysical, PublicCatalogProductPropertiesHardwareCPUVirtual, PublicCatalogProductPropertiesHardwareGPU, PublicCatalogProductPropertiesHardwareNetwork, PublicCatalogProductPropertiesHardwareRAM, PublicCatalogProductPropertiesHardwareRAMECCType, PublicCatalogProductPropertiesHardwareStorage, PublicCatalogProductPropertiesInstance, PublicCatalogProductPropertiesInstanceLocalSSDSnapshot, PublicCatalogProductPropertiesInstanceLocalSSDStorage, PublicCatalogProductPropertiesKeyManager, PublicCatalogProductPropertiesKubernetes, PublicCatalogProductPropertiesKubernetesKapsuleControlPlaneType, PublicCatalogProductPropertiesKubernetesKosmosControlPlaneType, PublicCatalogProductPropertiesKubernetesKosmosNodeType, PublicCatalogProductPropertiesLoadBalancer, PublicCatalogProductPropertiesLoadBalancerIPV4Type, PublicCatalogProductPropertiesLoadBalancerNodeType, PublicCatalogProductPropertiesManagedInference, PublicCatalogProductPropertiesManagedInferenceManagedInferenceCustomModelStorage, PublicCatalogProductPropertiesManagedInferenceManagedInferenceDeployment, PublicCatalogProductPropertiesManagedMongoDB, PublicCatalogProductPropertiesManagedMongoDBManagementType, PublicCatalogProductPropertiesManagedMongoDBNodeType, PublicCatalogProductPropertiesManagedMongoDBStorageType, PublicCatalogProductPropertiesManagedMongoDBStorageTypeStorageClass, PublicCatalogProductPropertiesManagedRedisDatabase, PublicCatalogProductPropertiesManagedRelationalDatabase, PublicCatalogProductPropertiesManagedRelationalDatabaseManagementType, PublicCatalogProductPropertiesManagedRelationalDatabaseMultiAzType, PublicCatalogProductPropertiesManagedRelationalDatabaseNodeType, PublicCatalogProductPropertiesManagedRelationalDatabaseStorageType, PublicCatalogProductPropertiesManagedRelationalDatabaseStorageTypeStorageClass, PublicCatalogProductPropertiesObjectStorage, PublicCatalogProductPropertiesObjectStorageClassType, PublicCatalogProductPropertiesObjectStorageClassTypeStorageClass, PublicCatalogProductPropertiesObjectStorageInternetTrafficType, PublicCatalogProductPropertiesObjectStorageInternetTrafficTypeTrafficType, PublicCatalogProductPropertiesObjectStorageRegionTrafficType, PublicCatalogProductPropertiesObjectStorageRestoreType, PublicCatalogProductPropertiesObjectStorageRestoreTypeRestoreType, PublicCatalogProductPropertiesOpenSearch, PublicCatalogProductPropertiesSecretManager, PublicCatalogProductPropertiesServerlessContainers, PublicCatalogProductPropertiesServerlessContainersCPUType, PublicCatalogProductPropertiesServerlessContainersMemoryType, PublicCatalogProductPropertiesServerlessFunctions, PublicCatalogProductPropertiesServerlessFunctionsConsumptionType, PublicCatalogProductPropertiesServerlessFunctionsFreeTierType, PublicCatalogProductPropertiesServerlessFunctionsProvisionType, PublicCatalogProductPropertiesServerlessFunctionsRequestType, PublicCatalogProductPropertiesServerlessFunctionsRuntimeResource, PublicCatalogProductPropertiesServerlessJobs, PublicCatalogProductPropertiesServerlessJobsCPUType, PublicCatalogProductPropertiesServerlessJobsMemoryType, PublicCatalogProductStatus, PublicCatalogProductUnitOfMeasure, PublicCatalogProductUnitOfMeasureCountableUnit, } from './types.gen.js';
4
4
  export * as ValidationRules from './validation-rules.gen.js';
@@ -14,6 +14,24 @@ const unmarshalPublicCatalogProductPropertiesHardwareCPUVirtual = (data) => {
14
14
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'PublicCatalogProductPropertiesHardwareCPUVirtual' failed as data isn't a dictionary.`);
15
15
  return { count: data.count };
16
16
  };
17
+ const unmarshalPublicCatalogProductPropertiesApacheKafkaNodeType = (data) => {
18
+ if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'PublicCatalogProductPropertiesApacheKafkaNodeType' failed as data isn't a dictionary.`);
19
+ return {
20
+ isMultiAz: data.is_multi_az,
21
+ memorySize: data.memory_size,
22
+ vcpuCount: data.vcpu_count,
23
+ versions: data.versions
24
+ };
25
+ };
26
+ const unmarshalPublicCatalogProductPropertiesApacheKafkaStorageType = (data) => {
27
+ if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'PublicCatalogProductPropertiesApacheKafkaStorageType' failed as data isn't a dictionary.`);
28
+ return {
29
+ isMultiAz: data.is_multi_az,
30
+ maxSize: data.max_size,
31
+ minSize: data.min_size,
32
+ type: data.type
33
+ };
34
+ };
17
35
  const unmarshalPublicCatalogProductPropertiesBlockStorageSnapshotType = (data) => {
18
36
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'PublicCatalogProductPropertiesBlockStorageSnapshotType' failed as data isn't a dictionary.`);
19
37
  return {};
@@ -187,7 +205,10 @@ const unmarshalPublicCatalogProductPropertiesServerlessJobsMemoryType = (data) =
187
205
  };
188
206
  const unmarshalPublicCatalogProductPropertiesApacheKafka = (data) => {
189
207
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'PublicCatalogProductPropertiesApacheKafka' failed as data isn't a dictionary.`);
190
- return {};
208
+ return {
209
+ node: data.node ? unmarshalPublicCatalogProductPropertiesApacheKafkaNodeType(data.node) : void 0,
210
+ storage: data.storage ? unmarshalPublicCatalogProductPropertiesApacheKafkaStorageType(data.storage) : void 0
211
+ };
191
212
  };
192
213
  const unmarshalPublicCatalogProductPropertiesAppleSilicon = (data) => {
193
214
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'PublicCatalogProductPropertiesAppleSilicon' failed as data isn't a dictionary.`);
@@ -2,6 +2,7 @@ import type { Money, Region as ScwRegion, Zone as ScwZone } from '@scaleway/sdk-
2
2
  export type ListPublicCatalogProductsRequestProductType = 'unknown_product_type' | 'instance' | 'apple_silicon' | 'elastic_metal' | 'dedibox' | 'block_storage' | 'object_storage' | 'managed_inference' | 'generative_apis' | 'load_balancer' | 'secret_manager' | 'key_manager' | 'managed_redis_database' | 'kubernetes' | 'managed_relational_database' | 'managed_mongodb' | 'serverless_functions' | 'serverless_containers' | 'serverless_jobs' | 'apache_kafka' | 'open_search' | 'instance_local_ssd_snapshot' | 'instance_local_ssd_storage';
3
3
  export type ListPublicCatalogProductsRequestStatus = 'unknown_status' | 'public_beta' | 'preview' | 'general_availability' | 'end_of_new_features' | 'end_of_growth' | 'end_of_deployment' | 'end_of_support' | 'end_of_sale' | 'end_of_life' | 'retired';
4
4
  export type PublicCatalogProductProductBadge = 'unknown_product_badge' | 'new_product' | 'best_seller' | 'best_value' | 'popular' | 'no_kvm';
5
+ export type PublicCatalogProductPropertiesApacheKafkaAvailableVolumeType = 'unknown_type' | 'sbs_5k' | 'sbs_15k';
5
6
  export type PublicCatalogProductPropertiesGenerativeApisConsumptionMode = 'unknown_consumption_mode' | 'realtime' | 'batch';
6
7
  export type PublicCatalogProductPropertiesGenerativeApisTask = 'unknown_task' | 'chat' | 'embeddings' | 'vision' | 'audio_transcription' | 'code';
7
8
  export type PublicCatalogProductPropertiesGenerativeApisTokenType = 'unknown_token_type' | 'input_token' | 'output_token' | 'input_duration' | 'input_cached_token' | 'input_audio';
@@ -42,6 +43,42 @@ export interface PublicCatalogProductPropertiesHardwareCPUVirtual {
42
43
  */
43
44
  count: number;
44
45
  }
46
+ export interface PublicCatalogProductPropertiesApacheKafkaNodeType {
47
+ /**
48
+ * The list of available versions for the Kafka node.
49
+ */
50
+ versions: string[];
51
+ /**
52
+ * Number of virtual CPUs.
53
+ */
54
+ vcpuCount: number;
55
+ /**
56
+ * Whether or not this Kafka product is multi AZ.
57
+ */
58
+ isMultiAz: boolean;
59
+ /**
60
+ * Memory size in bytes.
61
+ */
62
+ memorySize: number;
63
+ }
64
+ export interface PublicCatalogProductPropertiesApacheKafkaStorageType {
65
+ /**
66
+ * The type of volume.
67
+ */
68
+ type: PublicCatalogProductPropertiesApacheKafkaAvailableVolumeType;
69
+ /**
70
+ * The minimum size of the volume in bytes.
71
+ */
72
+ minSize: number;
73
+ /**
74
+ * The maximum size of the volume in bytes.
75
+ */
76
+ maxSize: number;
77
+ /**
78
+ * Whether or not this Kafka product is multi AZ.
79
+ */
80
+ isMultiAz: boolean;
81
+ }
45
82
  export interface PublicCatalogProductPropertiesBlockStorageSnapshotType {
46
83
  }
47
84
  export interface PublicCatalogProductPropertiesBlockStorageVolumeType {
@@ -267,6 +304,18 @@ export interface PublicCatalogProductPropertiesServerlessJobsMemoryType {
267
304
  sizes: number[];
268
305
  }
269
306
  export interface PublicCatalogProductPropertiesApacheKafka {
307
+ /**
308
+ * The properties related to Kafka node products.
309
+ *
310
+ * One-of ('type'): at most one of 'node', 'storage' could be set.
311
+ */
312
+ node?: PublicCatalogProductPropertiesApacheKafkaNodeType;
313
+ /**
314
+ * The properties related to Kafka storage products.
315
+ *
316
+ * One-of ('type'): at most one of 'node', 'storage' could be set.
317
+ */
318
+ storage?: PublicCatalogProductPropertiesApacheKafkaStorageType;
270
319
  }
271
320
  export interface PublicCatalogProductPropertiesAppleSilicon {
272
321
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@scaleway/sdk-product-catalog",
3
- "version": "2.21.0",
3
+ "version": "2.22.0",
4
4
  "description": "Scaleway SDK product-catalog",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -36,8 +36,8 @@
36
36
  "@scaleway/sdk-std": "2.6.0"
37
37
  },
38
38
  "devDependencies": {
39
- "@repo/configs": "^0.1.1",
40
- "@scaleway/sdk-client": "^2.6.0"
39
+ "@scaleway/sdk-client": "^2.6.0",
40
+ "@repo/configs": "^0.1.1"
41
41
  },
42
42
  "peerDependencies": {
43
43
  "@scaleway/sdk-client": "^2.6.0"