@scaleway/sdk 2.67.0 → 2.69.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.
Files changed (136) hide show
  1. package/dist/api/audit_trail/v1alpha1/api.gen.cjs +6 -1
  2. package/dist/api/audit_trail/v1alpha1/api.gen.js +6 -1
  3. package/dist/api/audit_trail/v1alpha1/marshalling.gen.cjs +6 -0
  4. package/dist/api/audit_trail/v1alpha1/marshalling.gen.js +6 -0
  5. package/dist/api/audit_trail/v1alpha1/types.gen.d.ts +55 -15
  6. package/dist/api/audit_trail/v1alpha1/validation-rules.gen.cjs +3 -0
  7. package/dist/api/audit_trail/v1alpha1/validation-rules.gen.d.ts +3 -0
  8. package/dist/api/audit_trail/v1alpha1/validation-rules.gen.js +3 -0
  9. package/dist/api/baremetal/v1/api.gen.cjs +13 -0
  10. package/dist/api/baremetal/v1/api.gen.d.ts +8 -1
  11. package/dist/api/baremetal/v1/api.gen.js +13 -0
  12. package/dist/api/baremetal/v1/content.gen.cjs +2 -1
  13. package/dist/api/baremetal/v1/content.gen.js +2 -1
  14. package/dist/api/baremetal/v1/index.gen.d.ts +1 -1
  15. package/dist/api/baremetal/v1/marshalling.gen.cjs +1 -0
  16. package/dist/api/baremetal/v1/marshalling.gen.js +1 -0
  17. package/dist/api/baremetal/v1/types.gen.d.ts +9 -1
  18. package/dist/api/billing/v2beta1/api.gen.cjs +9 -2
  19. package/dist/api/billing/v2beta1/api.gen.d.ts +9 -2
  20. package/dist/api/billing/v2beta1/api.gen.js +9 -2
  21. package/dist/api/billing/v2beta1/types.gen.d.ts +1 -1
  22. package/dist/api/block/index.gen.cjs +4 -2
  23. package/dist/api/block/index.gen.d.ts +1 -0
  24. package/dist/api/block/index.gen.js +4 -2
  25. package/dist/api/block/v1/api.gen.cjs +303 -0
  26. package/dist/api/block/v1/api.gen.d.ts +152 -0
  27. package/dist/api/block/v1/api.gen.js +303 -0
  28. package/dist/api/block/v1/content.gen.cjs +22 -0
  29. package/dist/api/block/v1/content.gen.d.ts +7 -0
  30. package/dist/api/block/v1/content.gen.js +22 -0
  31. package/dist/api/block/v1/index.gen.cjs +10 -0
  32. package/dist/api/block/v1/index.gen.d.ts +4 -0
  33. package/dist/api/block/v1/index.gen.js +10 -0
  34. package/dist/api/block/v1/marshalling.gen.cjs +200 -0
  35. package/dist/api/block/v1/marshalling.gen.d.ts +14 -0
  36. package/dist/api/block/v1/marshalling.gen.js +200 -0
  37. package/dist/api/block/v1/types.gen.d.ts +335 -0
  38. package/dist/api/block/v1/validation-rules.gen.cjs +56 -0
  39. package/dist/api/block/v1/validation-rules.gen.d.ts +47 -0
  40. package/dist/api/block/v1/validation-rules.gen.js +56 -0
  41. package/dist/api/block/v1alpha1/api.gen.cjs +1 -0
  42. package/dist/api/block/v1alpha1/api.gen.js +1 -0
  43. package/dist/api/block/v1alpha1/types.gen.d.ts +5 -0
  44. package/dist/api/edge_services/index.gen.cjs +2 -0
  45. package/dist/api/edge_services/index.gen.d.ts +1 -0
  46. package/dist/api/edge_services/index.gen.js +3 -1
  47. package/dist/api/edge_services/v1beta1/api.gen.cjs +941 -0
  48. package/dist/api/edge_services/v1beta1/api.gen.d.ts +454 -0
  49. package/dist/api/edge_services/v1beta1/api.gen.js +941 -0
  50. package/dist/api/edge_services/v1beta1/content.gen.cjs +8 -0
  51. package/dist/api/edge_services/v1beta1/content.gen.d.ts +5 -0
  52. package/dist/api/edge_services/v1beta1/content.gen.js +8 -0
  53. package/dist/api/{webhosting/v1alpha1 → edge_services/v1beta1}/index.gen.cjs +2 -2
  54. package/dist/api/edge_services/v1beta1/index.gen.d.ts +4 -0
  55. package/dist/api/edge_services/v1beta1/index.gen.js +9 -0
  56. package/dist/api/edge_services/v1beta1/marshalling.gen.cjs +809 -0
  57. package/dist/api/edge_services/v1beta1/marshalling.gen.d.ts +54 -0
  58. package/dist/api/edge_services/v1beta1/marshalling.gen.js +809 -0
  59. package/dist/api/edge_services/v1beta1/types.gen.d.ts +1218 -0
  60. package/dist/api/edge_services/v1beta1/validation-rules.gen.cjs +23 -0
  61. package/dist/api/edge_services/v1beta1/validation-rules.gen.d.ts +18 -0
  62. package/dist/api/edge_services/v1beta1/validation-rules.gen.js +23 -0
  63. package/dist/api/iam/v1alpha1/api.gen.cjs +7 -0
  64. package/dist/api/iam/v1alpha1/api.gen.d.ts +2 -1
  65. package/dist/api/iam/v1alpha1/api.gen.js +8 -1
  66. package/dist/api/iam/v1alpha1/index.gen.d.ts +1 -1
  67. package/dist/api/iam/v1alpha1/marshalling.gen.cjs +51 -0
  68. package/dist/api/iam/v1alpha1/marshalling.gen.d.ts +2 -1
  69. package/dist/api/iam/v1alpha1/marshalling.gen.js +51 -0
  70. package/dist/api/iam/v1alpha1/types.gen.d.ts +24 -0
  71. package/dist/api/instance/v1/api.gen.cjs +18 -0
  72. package/dist/api/instance/v1/api.gen.d.ts +13 -1
  73. package/dist/api/instance/v1/api.gen.js +19 -1
  74. package/dist/api/instance/v1/index.gen.d.ts +1 -1
  75. package/dist/api/instance/v1/marshalling.gen.cjs +12 -0
  76. package/dist/api/instance/v1/marshalling.gen.d.ts +2 -1
  77. package/dist/api/instance/v1/marshalling.gen.js +12 -0
  78. package/dist/api/instance/v1/types.gen.d.ts +12 -0
  79. package/dist/api/lb/v1/marshalling.gen.cjs +2 -0
  80. package/dist/api/lb/v1/marshalling.gen.js +2 -0
  81. package/dist/api/lb/v1/types.gen.d.ts +2 -0
  82. package/dist/api/mongodb/v1alpha1/api.gen.cjs +11 -0
  83. package/dist/api/mongodb/v1alpha1/api.gen.d.ts +2 -1
  84. package/dist/api/mongodb/v1alpha1/api.gen.js +12 -1
  85. package/dist/api/mongodb/v1alpha1/index.gen.d.ts +1 -1
  86. package/dist/api/mongodb/v1alpha1/marshalling.gen.cjs +26 -1
  87. package/dist/api/mongodb/v1alpha1/marshalling.gen.d.ts +2 -1
  88. package/dist/api/mongodb/v1alpha1/marshalling.gen.js +26 -1
  89. package/dist/api/mongodb/v1alpha1/types.gen.d.ts +29 -0
  90. package/dist/api/mongodb/v1alpha1/validation-rules.gen.cjs +8 -0
  91. package/dist/api/mongodb/v1alpha1/validation-rules.gen.d.ts +7 -0
  92. package/dist/api/mongodb/v1alpha1/validation-rules.gen.js +8 -0
  93. package/dist/api/secret/v1beta1/api.gen.cjs +2 -34
  94. package/dist/api/secret/v1beta1/api.gen.d.ts +3 -19
  95. package/dist/api/secret/v1beta1/api.gen.js +2 -34
  96. package/dist/api/secret/v1beta1/index.gen.d.ts +1 -1
  97. package/dist/api/secret/v1beta1/types.gen.d.ts +3 -19
  98. package/dist/api/tem/v1alpha1/types.gen.d.ts +5 -5
  99. package/dist/api/vpcgw/v1/api.gen.cjs +7 -0
  100. package/dist/api/vpcgw/v1/api.gen.d.ts +7 -0
  101. package/dist/api/vpcgw/v1/api.gen.js +7 -0
  102. package/dist/api/vpcgw/v1/types.gen.d.ts +1 -0
  103. package/dist/api/webhosting/index.gen.cjs +0 -2
  104. package/dist/api/webhosting/index.gen.d.ts +0 -1
  105. package/dist/api/webhosting/index.gen.js +1 -3
  106. package/dist/api/webhosting/v1/content.gen.cjs +0 -6
  107. package/dist/api/webhosting/v1/content.gen.d.ts +1 -3
  108. package/dist/api/webhosting/v1/content.gen.js +0 -6
  109. package/dist/api/webhosting/v1/index.gen.cjs +0 -1
  110. package/dist/api/webhosting/v1/index.gen.d.ts +1 -1
  111. package/dist/api/webhosting/v1/index.gen.js +1 -2
  112. package/dist/api/webhosting/v1/marshalling.gen.cjs +1 -2
  113. package/dist/api/webhosting/v1/marshalling.gen.js +1 -2
  114. package/dist/api/webhosting/v1/types.gen.d.ts +3 -6
  115. package/dist/scw/constants.cjs +1 -1
  116. package/dist/scw/constants.d.ts +2 -2
  117. package/dist/scw/constants.js +1 -1
  118. package/dist/scw/errors/standard/quotas-exceeded-error.cjs +1 -1
  119. package/dist/scw/errors/standard/quotas-exceeded-error.d.ts +4 -4
  120. package/dist/scw/errors/standard/quotas-exceeded-error.js +1 -1
  121. package/package.json +2 -2
  122. package/dist/api/webhosting/v1alpha1/api.gen.cjs +0 -339
  123. package/dist/api/webhosting/v1alpha1/api.gen.d.ts +0 -168
  124. package/dist/api/webhosting/v1alpha1/api.gen.js +0 -339
  125. package/dist/api/webhosting/v1alpha1/content.gen.cjs +0 -8
  126. package/dist/api/webhosting/v1alpha1/content.gen.d.ts +0 -3
  127. package/dist/api/webhosting/v1alpha1/content.gen.js +0 -8
  128. package/dist/api/webhosting/v1alpha1/index.gen.d.ts +0 -4
  129. package/dist/api/webhosting/v1alpha1/index.gen.js +0 -9
  130. package/dist/api/webhosting/v1alpha1/marshalling.gen.cjs +0 -300
  131. package/dist/api/webhosting/v1alpha1/marshalling.gen.d.ts +0 -17
  132. package/dist/api/webhosting/v1alpha1/marshalling.gen.js +0 -300
  133. package/dist/api/webhosting/v1alpha1/types.gen.d.ts +0 -480
  134. package/dist/api/webhosting/v1alpha1/validation-rules.gen.cjs +0 -32
  135. package/dist/api/webhosting/v1alpha1/validation-rules.gen.d.ts +0 -27
  136. package/dist/api/webhosting/v1alpha1/validation-rules.gen.js +0 -32
@@ -36,6 +36,7 @@ class API extends api.API {
36
36
  ["recorded_after", request.recordedAfter],
37
37
  ["recorded_before", request.recordedBefore],
38
38
  ["resource_type", request.resourceType],
39
+ ["service_name", request.serviceName],
39
40
  ["status", request.status]
40
41
  )
41
42
  },
@@ -51,7 +52,11 @@ class API extends api.API {
51
52
  listProducts = (request = {}) => this.client.fetch(
52
53
  {
53
54
  method: "GET",
54
- path: `/audit-trail/v1alpha1/regions/${marshalling.validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/products`
55
+ path: `/audit-trail/v1alpha1/regions/${marshalling.validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/products`,
56
+ urlParams: marshalling.urlParams([
57
+ "organization_id",
58
+ request.organizationId ?? this.client.settings.defaultOrganizationId
59
+ ])
55
60
  },
56
61
  marshalling_gen.unmarshalListProductsResponse
57
62
  );
@@ -34,6 +34,7 @@ class API extends API$1 {
34
34
  ["recorded_after", request.recordedAfter],
35
35
  ["recorded_before", request.recordedBefore],
36
36
  ["resource_type", request.resourceType],
37
+ ["service_name", request.serviceName],
37
38
  ["status", request.status]
38
39
  )
39
40
  },
@@ -49,7 +50,11 @@ class API extends API$1 {
49
50
  listProducts = (request = {}) => this.client.fetch(
50
51
  {
51
52
  method: "GET",
52
- path: `/audit-trail/v1alpha1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/products`
53
+ path: `/audit-trail/v1alpha1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/products`,
54
+ urlParams: urlParams([
55
+ "organization_id",
56
+ request.organizationId ?? this.client.settings.defaultOrganizationId
57
+ ])
53
58
  },
54
59
  unmarshalListProductsResponse
55
60
  );
@@ -89,6 +89,7 @@ const unmarshalResource = (data) => {
89
89
  createdAt: marshalling.unmarshalDate(data.created_at),
90
90
  deletedAt: marshalling.unmarshalDate(data.deleted_at),
91
91
  id: data.id,
92
+ keyManagerKeyInfo: data.key_manager_key_info ? unmarshalKeyManagerKeyInfo(data.key_manager_key_info) : void 0,
92
93
  keymKeyInfo: data.keym_key_info ? unmarshalKeyManagerKeyInfo(data.keym_key_info) : void 0,
93
94
  kubeAclInfo: data.kube_acl_info ? unmarshalKubernetesACLInfo(data.kube_acl_info) : void 0,
94
95
  kubeClusterInfo: data.kube_cluster_info ? unmarshalKubernetesClusterInfo(data.kube_cluster_info) : void 0,
@@ -97,6 +98,10 @@ const unmarshalResource = (data) => {
97
98
  name: data.name,
98
99
  secmSecretInfo: data.secm_secret_info ? unmarshalSecretManagerSecretInfo(data.secm_secret_info) : void 0,
99
100
  secmSecretVersionInfo: data.secm_secret_version_info ? unmarshalSecretManagerSecretVersionInfo(data.secm_secret_version_info) : void 0,
101
+ secretManagerSecretInfo: data.secret_manager_secret_info ? unmarshalSecretManagerSecretInfo(data.secret_manager_secret_info) : void 0,
102
+ secretManagerVersionInfo: data.secret_manager_version_info ? unmarshalSecretManagerSecretVersionInfo(
103
+ data.secret_manager_version_info
104
+ ) : void 0,
100
105
  type: data.type,
101
106
  updatedAt: marshalling.unmarshalDate(data.updated_at)
102
107
  };
@@ -119,6 +124,7 @@ const unmarshalEvent = (data) => {
119
124
  requestBody: data.request_body,
120
125
  requestId: data.request_id,
121
126
  resource: data.resource ? unmarshalResource(data.resource) : void 0,
127
+ resources: marshalling.unmarshalArrayOfObject(data.resources, unmarshalResource),
122
128
  serviceName: data.service_name,
123
129
  sourceIp: data.source_ip,
124
130
  statusCode: data.status_code,
@@ -87,6 +87,7 @@ const unmarshalResource = (data) => {
87
87
  createdAt: unmarshalDate(data.created_at),
88
88
  deletedAt: unmarshalDate(data.deleted_at),
89
89
  id: data.id,
90
+ keyManagerKeyInfo: data.key_manager_key_info ? unmarshalKeyManagerKeyInfo(data.key_manager_key_info) : void 0,
90
91
  keymKeyInfo: data.keym_key_info ? unmarshalKeyManagerKeyInfo(data.keym_key_info) : void 0,
91
92
  kubeAclInfo: data.kube_acl_info ? unmarshalKubernetesACLInfo(data.kube_acl_info) : void 0,
92
93
  kubeClusterInfo: data.kube_cluster_info ? unmarshalKubernetesClusterInfo(data.kube_cluster_info) : void 0,
@@ -95,6 +96,10 @@ const unmarshalResource = (data) => {
95
96
  name: data.name,
96
97
  secmSecretInfo: data.secm_secret_info ? unmarshalSecretManagerSecretInfo(data.secm_secret_info) : void 0,
97
98
  secmSecretVersionInfo: data.secm_secret_version_info ? unmarshalSecretManagerSecretVersionInfo(data.secm_secret_version_info) : void 0,
99
+ secretManagerSecretInfo: data.secret_manager_secret_info ? unmarshalSecretManagerSecretInfo(data.secret_manager_secret_info) : void 0,
100
+ secretManagerVersionInfo: data.secret_manager_version_info ? unmarshalSecretManagerSecretVersionInfo(
101
+ data.secret_manager_version_info
102
+ ) : void 0,
98
103
  type: data.type,
99
104
  updatedAt: unmarshalDate(data.updated_at)
100
105
  };
@@ -117,6 +122,7 @@ const unmarshalEvent = (data) => {
117
122
  requestBody: data.request_body,
118
123
  requestId: data.request_id,
119
124
  resource: data.resource ? unmarshalResource(data.resource) : void 0,
125
+ resources: unmarshalArrayOfObject(data.resources, unmarshalResource),
120
126
  serviceName: data.service_name,
121
127
  sourceIp: data.source_ip,
122
128
  statusCode: data.status_code,
@@ -1,6 +1,6 @@
1
1
  import type { Region as ScwRegion } from '../../../bridge';
2
2
  export type ListEventsRequestOrderBy = 'recorded_at_desc' | 'recorded_at_asc';
3
- export type ResourceType = 'unknown_type' | 'secm_secret' | 'secm_secret_version' | 'kube_cluster' | 'kube_pool' | 'kube_node' | 'kube_acl' | 'keym_key' | 'iamx_user' | 'iamx_application' | 'iamx_group' | 'iamx_policy' | 'iamx_api_key' | 'iamx_ssh_key';
3
+ export type ResourceType = 'unknown_type' | 'secm_secret' | 'secm_secret_version' | 'kube_cluster' | 'kube_pool' | 'kube_node' | 'kube_acl' | 'keym_key' | 'iam_user' | 'iam_application' | 'iam_group' | 'iam_policy' | 'iam_api_key' | 'iam_ssh_key' | 'iam_rule' | 'secret_manager_secret' | 'secret_manager_version' | 'key_manager_key';
4
4
  export interface KeyManagerKeyInfo {
5
5
  }
6
6
  export interface KubernetesACLInfo {
@@ -32,47 +32,81 @@ export interface Resource {
32
32
  deletedAt?: Date;
33
33
  name?: string;
34
34
  /**
35
- * One-of ('info'): at most one of 'secmSecretInfo', 'secmSecretVersionInfo',
36
- * 'kubeClusterInfo', 'kubePoolInfo', 'kubeNodeInfo', 'kubeAclInfo',
37
- * 'keymKeyInfo' could be set.
35
+ * @deprecated
36
+ *
37
+ * One-of ('info'): at most one of 'secmSecretInfo', 'secmSecretVersionInfo',
38
+ * 'kubeClusterInfo', 'kubePoolInfo', 'kubeNodeInfo', 'kubeAclInfo',
39
+ * 'keymKeyInfo', 'secretManagerSecretInfo', 'secretManagerVersionInfo',
40
+ * 'keyManagerKeyInfo' could be set.
38
41
  */
39
42
  secmSecretInfo?: SecretManagerSecretInfo;
40
43
  /**
41
- * One-of ('info'): at most one of 'secmSecretInfo', 'secmSecretVersionInfo',
42
- * 'kubeClusterInfo', 'kubePoolInfo', 'kubeNodeInfo', 'kubeAclInfo',
43
- * 'keymKeyInfo' could be set.
44
+ * @deprecated
45
+ *
46
+ * One-of ('info'): at most one of 'secmSecretInfo', 'secmSecretVersionInfo',
47
+ * 'kubeClusterInfo', 'kubePoolInfo', 'kubeNodeInfo', 'kubeAclInfo',
48
+ * 'keymKeyInfo', 'secretManagerSecretInfo', 'secretManagerVersionInfo',
49
+ * 'keyManagerKeyInfo' could be set.
44
50
  */
45
51
  secmSecretVersionInfo?: SecretManagerSecretVersionInfo;
46
52
  /**
47
53
  * One-of ('info'): at most one of 'secmSecretInfo', 'secmSecretVersionInfo',
48
54
  * 'kubeClusterInfo', 'kubePoolInfo', 'kubeNodeInfo', 'kubeAclInfo',
49
- * 'keymKeyInfo' could be set.
55
+ * 'keymKeyInfo', 'secretManagerSecretInfo', 'secretManagerVersionInfo',
56
+ * 'keyManagerKeyInfo' could be set.
50
57
  */
51
58
  kubeClusterInfo?: KubernetesClusterInfo;
52
59
  /**
53
60
  * One-of ('info'): at most one of 'secmSecretInfo', 'secmSecretVersionInfo',
54
61
  * 'kubeClusterInfo', 'kubePoolInfo', 'kubeNodeInfo', 'kubeAclInfo',
55
- * 'keymKeyInfo' could be set.
62
+ * 'keymKeyInfo', 'secretManagerSecretInfo', 'secretManagerVersionInfo',
63
+ * 'keyManagerKeyInfo' could be set.
56
64
  */
57
65
  kubePoolInfo?: KubernetesPoolInfo;
58
66
  /**
59
67
  * One-of ('info'): at most one of 'secmSecretInfo', 'secmSecretVersionInfo',
60
68
  * 'kubeClusterInfo', 'kubePoolInfo', 'kubeNodeInfo', 'kubeAclInfo',
61
- * 'keymKeyInfo' could be set.
69
+ * 'keymKeyInfo', 'secretManagerSecretInfo', 'secretManagerVersionInfo',
70
+ * 'keyManagerKeyInfo' could be set.
62
71
  */
63
72
  kubeNodeInfo?: KubernetesNodeInfo;
64
73
  /**
65
74
  * One-of ('info'): at most one of 'secmSecretInfo', 'secmSecretVersionInfo',
66
75
  * 'kubeClusterInfo', 'kubePoolInfo', 'kubeNodeInfo', 'kubeAclInfo',
67
- * 'keymKeyInfo' could be set.
76
+ * 'keymKeyInfo', 'secretManagerSecretInfo', 'secretManagerVersionInfo',
77
+ * 'keyManagerKeyInfo' could be set.
68
78
  */
69
79
  kubeAclInfo?: KubernetesACLInfo;
80
+ /**
81
+ * @deprecated
82
+ *
83
+ * One-of ('info'): at most one of 'secmSecretInfo', 'secmSecretVersionInfo',
84
+ * 'kubeClusterInfo', 'kubePoolInfo', 'kubeNodeInfo', 'kubeAclInfo',
85
+ * 'keymKeyInfo', 'secretManagerSecretInfo', 'secretManagerVersionInfo',
86
+ * 'keyManagerKeyInfo' could be set.
87
+ */
88
+ keymKeyInfo?: KeyManagerKeyInfo;
70
89
  /**
71
90
  * One-of ('info'): at most one of 'secmSecretInfo', 'secmSecretVersionInfo',
72
91
  * 'kubeClusterInfo', 'kubePoolInfo', 'kubeNodeInfo', 'kubeAclInfo',
73
- * 'keymKeyInfo' could be set.
92
+ * 'keymKeyInfo', 'secretManagerSecretInfo', 'secretManagerVersionInfo',
93
+ * 'keyManagerKeyInfo' could be set.
74
94
  */
75
- keymKeyInfo?: KeyManagerKeyInfo;
95
+ secretManagerSecretInfo?: SecretManagerSecretInfo;
96
+ /**
97
+ * One-of ('info'): at most one of 'secmSecretInfo', 'secmSecretVersionInfo',
98
+ * 'kubeClusterInfo', 'kubePoolInfo', 'kubeNodeInfo', 'kubeAclInfo',
99
+ * 'keymKeyInfo', 'secretManagerSecretInfo', 'secretManagerVersionInfo',
100
+ * 'keyManagerKeyInfo' could be set.
101
+ */
102
+ secretManagerVersionInfo?: SecretManagerSecretVersionInfo;
103
+ /**
104
+ * One-of ('info'): at most one of 'secmSecretInfo', 'secmSecretVersionInfo',
105
+ * 'kubeClusterInfo', 'kubePoolInfo', 'kubeNodeInfo', 'kubeAclInfo',
106
+ * 'keymKeyInfo', 'secretManagerSecretInfo', 'secretManagerVersionInfo',
107
+ * 'keyManagerKeyInfo' could be set.
108
+ */
109
+ keyManagerKeyInfo?: KeyManagerKeyInfo;
76
110
  }
77
111
  export interface ProductService {
78
112
  name: string;
@@ -101,8 +135,10 @@ export interface Event {
101
135
  serviceName: string;
102
136
  /** API method called to trigger the event. */
103
137
  methodName: string;
104
- /** Resource attached to the event. */
138
+ /** @deprecated Resource attached to the event. */
105
139
  resource?: Resource;
140
+ /** Resources attached to the event. */
141
+ resources: Resource[];
106
142
  /** Unique identifier of the request at the origin of the event. */
107
143
  requestId: string;
108
144
  /** Request at the origin of the event. */
@@ -133,7 +169,7 @@ export type ListEventsRequest = {
133
169
  organizationId?: string;
134
170
  /** (Optional) Returns a paginated list of Scaleway resources' features. */
135
171
  resourceType?: ResourceType;
136
- /** (Optional) Name of the method or the API call performed. */
172
+ /** (Optional) Name of the method of the API call performed. */
137
173
  methodName?: string;
138
174
  /**
139
175
  * (Optional) HTTP status code of the request. Returns either `200` if the
@@ -156,6 +192,8 @@ export type ListEventsRequest = {
156
192
  pageToken?: string;
157
193
  /** (Optional) Name of the Scaleway resource in a hyphenated format. */
158
194
  productName?: string;
195
+ /** (Optional) Name of the service of the API call performed. */
196
+ serviceName?: string;
159
197
  };
160
198
  export interface ListEventsResponse {
161
199
  /** Single page of events matching the requested criteria. */
@@ -169,6 +207,8 @@ export type ListProductsRequest = {
169
207
  * config.
170
208
  */
171
209
  region?: ScwRegion;
210
+ /** ID of the Organization containing the Audit Trail events. */
211
+ organizationId?: string;
172
212
  };
173
213
  export interface ListProductsResponse {
174
214
  /** List of all products integrated with Audit Trail. */
@@ -11,6 +11,9 @@ const ListEventsRequest = {
11
11
  productName: {
12
12
  pattern: /^[a-z]+(-[a-z]+)*$/
13
13
  },
14
+ serviceName: {
15
+ pattern: /^scaleway(\.[a-zA-Z0-9_-]*)*$/
16
+ },
14
17
  status: {
15
18
  greaterThanOrEqual: 200,
16
19
  lessThan: 600
@@ -9,6 +9,9 @@ export declare const ListEventsRequest: {
9
9
  productName: {
10
10
  pattern: RegExp;
11
11
  };
12
+ serviceName: {
13
+ pattern: RegExp;
14
+ };
12
15
  status: {
13
16
  greaterThanOrEqual: number;
14
17
  lessThan: number;
@@ -9,6 +9,9 @@ const ListEventsRequest = {
9
9
  productName: {
10
10
  pattern: /^[a-z]+(-[a-z]+)*$/
11
11
  },
12
+ serviceName: {
13
+ pattern: /^scaleway(\.[a-zA-Z0-9_-]*)*$/
14
+ },
12
15
  status: {
13
16
  greaterThanOrEqual: 200,
14
17
  lessThan: 600
@@ -369,6 +369,19 @@ class API extends api.API {
369
369
  },
370
370
  marshalling_gen.unmarshalServer
371
371
  );
372
+ /**
373
+ * Migrate server offer. Migrate server with hourly offer to monthly offer.
374
+ *
375
+ * @param request - The request {@link MigrateServerToMonthlyOfferRequest}
376
+ * @returns A Promise of Server
377
+ */
378
+ migrateServerToMonthlyOffer = (request) => this.client.fetch(
379
+ {
380
+ method: "POST",
381
+ path: `/baremetal/v1/zones/${marshalling.validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/servers/${marshalling.validatePathParam("serverId", request.serverId)}/migrate-offer-monthly`
382
+ },
383
+ marshalling_gen.unmarshalServer
384
+ );
372
385
  pageOfListOffers = (request = {}) => this.client.fetch(
373
386
  {
374
387
  method: "GET",
@@ -1,6 +1,6 @@
1
1
  import { API as ParentAPI } from '../../../bridge';
2
2
  import type { Zone as ScwZone, WaitForOptions } from '../../../bridge';
3
- import type { AddOptionServerRequest, BMCAccess, CreateServerRequest, DeleteOptionServerRequest, DeleteServerRequest, GetBMCAccessRequest, GetDefaultPartitioningSchemaRequest, GetOSRequest, GetOfferRequest, GetOptionRequest, GetServerMetricsRequest, GetServerMetricsResponse, GetServerRequest, IP, InstallServerRequest, ListOSRequest, ListOSResponse, ListOffersRequest, ListOffersResponse, ListOptionsRequest, ListOptionsResponse, ListServerEventsRequest, ListServerEventsResponse, ListServerPrivateNetworksResponse, ListServersRequest, ListServersResponse, ListSettingsRequest, ListSettingsResponse, OS, Offer, Option, PrivateNetworkApiAddServerPrivateNetworkRequest, PrivateNetworkApiDeleteServerPrivateNetworkRequest, PrivateNetworkApiListServerPrivateNetworksRequest, PrivateNetworkApiSetServerPrivateNetworksRequest, RebootServerRequest, Schema, Server, ServerPrivateNetwork, SetServerPrivateNetworksResponse, Setting, StartBMCAccessRequest, StartServerRequest, StopBMCAccessRequest, StopServerRequest, UpdateIPRequest, UpdateServerRequest, UpdateSettingRequest, ValidatePartitioningSchemaRequest } from './types.gen';
3
+ import type { AddOptionServerRequest, BMCAccess, CreateServerRequest, DeleteOptionServerRequest, DeleteServerRequest, GetBMCAccessRequest, GetDefaultPartitioningSchemaRequest, GetOSRequest, GetOfferRequest, GetOptionRequest, GetServerMetricsRequest, GetServerMetricsResponse, GetServerRequest, IP, InstallServerRequest, ListOSRequest, ListOSResponse, ListOffersRequest, ListOffersResponse, ListOptionsRequest, ListOptionsResponse, ListServerEventsRequest, ListServerEventsResponse, ListServerPrivateNetworksResponse, ListServersRequest, ListServersResponse, ListSettingsRequest, ListSettingsResponse, MigrateServerToMonthlyOfferRequest, OS, Offer, Option, PrivateNetworkApiAddServerPrivateNetworkRequest, PrivateNetworkApiDeleteServerPrivateNetworkRequest, PrivateNetworkApiListServerPrivateNetworksRequest, PrivateNetworkApiSetServerPrivateNetworksRequest, RebootServerRequest, Schema, Server, ServerPrivateNetwork, SetServerPrivateNetworksResponse, Setting, StartBMCAccessRequest, StartServerRequest, StopBMCAccessRequest, StopServerRequest, UpdateIPRequest, UpdateServerRequest, UpdateSettingRequest, ValidatePartitioningSchemaRequest } from './types.gen';
4
4
  /**
5
5
  * Elastic Metal API.
6
6
  *
@@ -187,6 +187,13 @@ export declare class API extends ParentAPI {
187
187
  * @returns A Promise of Server
188
188
  */
189
189
  deleteOptionServer: (request: Readonly<DeleteOptionServerRequest>) => Promise<Server>;
190
+ /**
191
+ * Migrate server offer. Migrate server with hourly offer to monthly offer.
192
+ *
193
+ * @param request - The request {@link MigrateServerToMonthlyOfferRequest}
194
+ * @returns A Promise of Server
195
+ */
196
+ migrateServerToMonthlyOffer: (request: Readonly<MigrateServerToMonthlyOfferRequest>) => Promise<Server>;
190
197
  protected pageOfListOffers: (request?: Readonly<ListOffersRequest>) => Promise<ListOffersResponse>;
191
198
  /**
192
199
  * List offers. List all available Elastic Metal server configurations.
@@ -367,6 +367,19 @@ class API extends API$1 {
367
367
  },
368
368
  unmarshalServer
369
369
  );
370
+ /**
371
+ * Migrate server offer. Migrate server with hourly offer to monthly offer.
372
+ *
373
+ * @param request - The request {@link MigrateServerToMonthlyOfferRequest}
374
+ * @returns A Promise of Server
375
+ */
376
+ migrateServerToMonthlyOffer = (request) => this.client.fetch(
377
+ {
378
+ method: "POST",
379
+ path: `/baremetal/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/servers/${validatePathParam("serverId", request.serverId)}/migrate-offer-monthly`
380
+ },
381
+ unmarshalServer
382
+ );
370
383
  pageOfListOffers = (request = {}) => this.client.fetch(
371
384
  {
372
385
  method: "GET",
@@ -11,7 +11,8 @@ const SERVER_TRANSIENT_STATUSES = [
11
11
  "starting",
12
12
  "deleting",
13
13
  "ordered",
14
- "resetting"
14
+ "resetting",
15
+ "migrating"
15
16
  ];
16
17
  exports.SERVER_INSTALL_TRANSIENT_STATUSES = SERVER_INSTALL_TRANSIENT_STATUSES;
17
18
  exports.SERVER_PRIVATE_NETWORK_TRANSIENT_STATUSES = SERVER_PRIVATE_NETWORK_TRANSIENT_STATUSES;
@@ -9,7 +9,8 @@ const SERVER_TRANSIENT_STATUSES = [
9
9
  "starting",
10
10
  "deleting",
11
11
  "ordered",
12
- "resetting"
12
+ "resetting",
13
+ "migrating"
13
14
  ];
14
15
  export {
15
16
  SERVER_INSTALL_TRANSIENT_STATUSES,
@@ -1,4 +1,4 @@
1
1
  export { API, PrivateNetworkAPI } from './api.gen.js';
2
2
  export * from './content.gen.js';
3
- export type { AddOptionServerRequest, BMCAccess, CPU, CertificationOption, CreateServerRequest, CreateServerRequestInstall, DeleteOptionServerRequest, DeleteServerRequest, Disk, GPU, GetBMCAccessRequest, GetDefaultPartitioningSchemaRequest, GetOSRequest, GetOfferRequest, GetOptionRequest, GetServerMetricsRequest, GetServerMetricsResponse, GetServerRequest, IP, IPReverseStatus, IPVersion, InstallServerRequest, LicenseOption, ListOSRequest, ListOSResponse, ListOffersRequest, ListOffersResponse, ListOptionsRequest, ListOptionsResponse, ListServerEventsRequest, ListServerEventsRequestOrderBy, ListServerEventsResponse, ListServerPrivateNetworksRequestOrderBy, ListServerPrivateNetworksResponse, ListServersRequest, ListServersRequestOrderBy, ListServersResponse, ListSettingsRequest, ListSettingsRequestOrderBy, ListSettingsResponse, Memory, OS, OSOSField, Offer, OfferOptionOffer, OfferStock, OfferSubscriptionPeriod, Option, PersistentMemory, PrivateNetworkApiAddServerPrivateNetworkRequest, PrivateNetworkApiDeleteServerPrivateNetworkRequest, PrivateNetworkApiListServerPrivateNetworksRequest, PrivateNetworkApiSetServerPrivateNetworksRequest, PrivateNetworkOption, PublicBandwidthOption, RaidController, RebootServerRequest, RemoteAccessOption, Schema, SchemaDisk, SchemaFilesystem, SchemaFilesystemFormat, SchemaPartition, SchemaPartitionLabel, SchemaPool, SchemaPoolType, SchemaRAID, SchemaRAIDLevel, SchemaZFS, Server, ServerBootType, ServerEvent, ServerInstall, ServerInstallStatus, ServerOption, ServerOptionOptionStatus, ServerPingStatus, ServerPrivateNetwork, ServerPrivateNetworkStatus, ServerRescueServer, ServerStatus, SetServerPrivateNetworksResponse, Setting, SettingType, StartBMCAccessRequest, StartServerRequest, StopBMCAccessRequest, StopServerRequest, UpdateIPRequest, UpdateServerRequest, UpdateSettingRequest, ValidatePartitioningSchemaRequest, } from './types.gen';
3
+ export type { AddOptionServerRequest, BMCAccess, CPU, CertificationOption, CreateServerRequest, CreateServerRequestInstall, DeleteOptionServerRequest, DeleteServerRequest, Disk, GPU, GetBMCAccessRequest, GetDefaultPartitioningSchemaRequest, GetOSRequest, GetOfferRequest, GetOptionRequest, GetServerMetricsRequest, GetServerMetricsResponse, GetServerRequest, IP, IPReverseStatus, IPVersion, InstallServerRequest, LicenseOption, ListOSRequest, ListOSResponse, ListOffersRequest, ListOffersResponse, ListOptionsRequest, ListOptionsResponse, ListServerEventsRequest, ListServerEventsRequestOrderBy, ListServerEventsResponse, ListServerPrivateNetworksRequestOrderBy, ListServerPrivateNetworksResponse, ListServersRequest, ListServersRequestOrderBy, ListServersResponse, ListSettingsRequest, ListSettingsRequestOrderBy, ListSettingsResponse, Memory, MigrateServerToMonthlyOfferRequest, OS, OSOSField, Offer, OfferOptionOffer, OfferStock, OfferSubscriptionPeriod, Option, PersistentMemory, PrivateNetworkApiAddServerPrivateNetworkRequest, PrivateNetworkApiDeleteServerPrivateNetworkRequest, PrivateNetworkApiListServerPrivateNetworksRequest, PrivateNetworkApiSetServerPrivateNetworksRequest, PrivateNetworkOption, PublicBandwidthOption, RaidController, RebootServerRequest, RemoteAccessOption, Schema, SchemaDisk, SchemaFilesystem, SchemaFilesystemFormat, SchemaPartition, SchemaPartitionLabel, SchemaPool, SchemaPoolType, SchemaRAID, SchemaRAIDLevel, SchemaZFS, Server, ServerBootType, ServerEvent, ServerInstall, ServerInstallStatus, ServerOption, ServerOptionOptionStatus, ServerPingStatus, ServerPrivateNetwork, ServerPrivateNetworkStatus, ServerRescueServer, ServerStatus, SetServerPrivateNetworksResponse, Setting, SettingType, StartBMCAccessRequest, StartServerRequest, StopBMCAccessRequest, StopServerRequest, UpdateIPRequest, UpdateServerRequest, UpdateSettingRequest, ValidatePartitioningSchemaRequest, } from './types.gen';
4
4
  export * as ValidationRules from './validation-rules.gen.js';
@@ -299,6 +299,7 @@ const unmarshalOffer = (data) => {
299
299
  incompatibleOsIds: data.incompatible_os_ids,
300
300
  maxBandwidth: data.max_bandwidth,
301
301
  memories: marshalling.unmarshalArrayOfObject(data.memories, unmarshalMemory),
302
+ monthlyOfferId: data.monthly_offer_id,
302
303
  name: data.name,
303
304
  operationPath: data.operation_path,
304
305
  options: marshalling.unmarshalArrayOfObject(data.options, unmarshalOfferOptionOffer),
@@ -297,6 +297,7 @@ const unmarshalOffer = (data) => {
297
297
  incompatibleOsIds: data.incompatible_os_ids,
298
298
  maxBandwidth: data.max_bandwidth,
299
299
  memories: unmarshalArrayOfObject(data.memories, unmarshalMemory),
300
+ monthlyOfferId: data.monthly_offer_id,
300
301
  name: data.name,
301
302
  operationPath: data.operation_path,
302
303
  options: unmarshalArrayOfObject(data.options, unmarshalOfferOptionOffer),
@@ -16,7 +16,7 @@ export type ServerInstallStatus = 'unknown' | 'to_install' | 'installing' | 'com
16
16
  export type ServerOptionOptionStatus = 'option_status_unknown' | 'option_status_enable' | 'option_status_enabling' | 'option_status_disabling' | 'option_status_error';
17
17
  export type ServerPingStatus = 'ping_status_unknown' | 'ping_status_up' | 'ping_status_down';
18
18
  export type ServerPrivateNetworkStatus = 'unknown' | 'attaching' | 'attached' | 'error' | 'detaching' | 'locked';
19
- export type ServerStatus = 'unknown' | 'delivering' | 'ready' | 'stopping' | 'stopped' | 'starting' | 'error' | 'deleting' | 'locked' | 'out_of_stock' | 'ordered' | 'resetting';
19
+ export type ServerStatus = 'unknown' | 'delivering' | 'ready' | 'stopping' | 'stopped' | 'starting' | 'error' | 'deleting' | 'locked' | 'out_of_stock' | 'ordered' | 'resetting' | 'migrating';
20
20
  export type SettingType = 'unknown' | 'smtp';
21
21
  export interface SchemaPartition {
22
22
  label: SchemaPartitionLabel;
@@ -366,6 +366,8 @@ export interface Offer {
366
366
  tags: string[];
367
367
  /** GPU specifications of the offer. */
368
368
  gpus: GPU[];
369
+ /** Exist only for hourly offers, to migrate to the monthly offer. */
370
+ monthlyOfferId?: string;
369
371
  }
370
372
  export interface Option {
371
373
  /** ID of the option. */
@@ -754,6 +756,12 @@ export interface ListSettingsResponse {
754
756
  /** Settings that match filters. */
755
757
  settings: Setting[];
756
758
  }
759
+ export type MigrateServerToMonthlyOfferRequest = {
760
+ /** Zone to target. If none is passed will use default zone from the config. */
761
+ zone?: ScwZone;
762
+ /** ID of the server. */
763
+ serverId: string;
764
+ };
757
765
  export type PrivateNetworkApiAddServerPrivateNetworkRequest = {
758
766
  /** Zone to target. If none is passed will use default zone from the config. */
759
767
  zone?: ScwZone;
@@ -164,9 +164,16 @@ class API extends api.API {
164
164
  marshalling_gen.unmarshalListDiscountsResponse
165
165
  );
166
166
  /**
167
- * List discounts. List all discounts for your organization and usable
167
+ * List discounts. List all discounts for your Organization and usable
168
168
  * categories, products, offers, references, regions and zones where the
169
- * discount can be applied.
169
+ * discount can be applied. As a reseller:
170
+ *
171
+ * - If you do not specify an `organization_id` you will list the discounts
172
+ * applied to your own Organization and your customers
173
+ * - If you indicate your `organization_id` you will list only the discounts
174
+ * applied to your Organization
175
+ * - If you indicate `the organization_id` of one of your customers, you will
176
+ * list the discounts applied to their Organization.
170
177
  *
171
178
  * @param request - The request {@link ListDiscountsRequest}
172
179
  * @returns A Promise of ListDiscountsResponse
@@ -66,9 +66,16 @@ export declare class API extends ParentAPI {
66
66
  downloadInvoice: (request: Readonly<DownloadInvoiceRequest>) => Promise<Blob>;
67
67
  protected pageOfListDiscounts: (request?: Readonly<ListDiscountsRequest>) => Promise<ListDiscountsResponse>;
68
68
  /**
69
- * List discounts. List all discounts for your organization and usable
69
+ * List discounts. List all discounts for your Organization and usable
70
70
  * categories, products, offers, references, regions and zones where the
71
- * discount can be applied.
71
+ * discount can be applied. As a reseller:
72
+ *
73
+ * - If you do not specify an `organization_id` you will list the discounts
74
+ * applied to your own Organization and your customers
75
+ * - If you indicate your `organization_id` you will list only the discounts
76
+ * applied to your Organization
77
+ * - If you indicate `the organization_id` of one of your customers, you will
78
+ * list the discounts applied to their Organization.
72
79
  *
73
80
  * @param request - The request {@link ListDiscountsRequest}
74
81
  * @returns A Promise of ListDiscountsResponse
@@ -162,9 +162,16 @@ class API extends API$1 {
162
162
  unmarshalListDiscountsResponse
163
163
  );
164
164
  /**
165
- * List discounts. List all discounts for your organization and usable
165
+ * List discounts. List all discounts for your Organization and usable
166
166
  * categories, products, offers, references, regions and zones where the
167
- * discount can be applied.
167
+ * discount can be applied. As a reseller:
168
+ *
169
+ * - If you do not specify an `organization_id` you will list the discounts
170
+ * applied to your own Organization and your customers
171
+ * - If you indicate your `organization_id` you will list only the discounts
172
+ * applied to your Organization
173
+ * - If you indicate `the organization_id` of one of your customers, you will
174
+ * list the discounts applied to their Organization.
168
175
  *
169
176
  * @param request - The request {@link ListDiscountsRequest}
170
177
  * @returns A Promise of ListDiscountsResponse
@@ -50,7 +50,7 @@ export interface Discount {
50
50
  id: string;
51
51
  /** The creation date of the discount. */
52
52
  creationDate?: Date;
53
- /** The organization ID of the discount. */
53
+ /** The Organization ID of the discount. */
54
54
  organizationId: string;
55
55
  /** The description of the discount. */
56
56
  description: string;
@@ -1,4 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const index_gen = require("./v1alpha1/index.gen.cjs");
4
- exports.v1alpha1 = index_gen;
3
+ const index_gen = require("./v1/index.gen.cjs");
4
+ const index_gen$1 = require("./v1alpha1/index.gen.cjs");
5
+ exports.v1 = index_gen;
6
+ exports.v1alpha1 = index_gen$1;
@@ -2,4 +2,5 @@
2
2
  * This file is automatically generated from /scripts/generate.js PLEASE DO NOT
3
3
  * EDIT HERE
4
4
  */
5
+ export * as v1 from './v1/index.gen.js';
5
6
  export * as v1alpha1 from './v1alpha1/index.gen.js';
@@ -1,4 +1,6 @@
1
- import * as index_gen from "./v1alpha1/index.gen.js";
1
+ import * as index_gen from "./v1/index.gen.js";
2
+ import * as index_gen$1 from "./v1alpha1/index.gen.js";
2
3
  export {
3
- index_gen as v1alpha1
4
+ index_gen as v1,
5
+ index_gen$1 as v1alpha1
4
6
  };