@scaleway/sdk 2.37.0 → 2.38.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,7 +1,7 @@
1
1
  import type { Region } from '../../../bridge';
2
2
  export type DeploymentStatus = 'unknown_status' | 'creating' | 'deploying' | 'ready' | 'error' | 'deleting' | 'locked';
3
3
  export type ListDeploymentsRequestOrderBy = 'created_at_desc' | 'created_at_asc' | 'name_asc' | 'name_desc';
4
- export type ListModelsRequestOrderBy = 'created_at_asc' | 'created_at_desc' | 'name_asc' | 'name_desc';
4
+ export type ListModelsRequestOrderBy = 'display_rank_asc' | 'created_at_asc' | 'created_at_desc' | 'name_asc' | 'name_desc';
5
5
  export type NodeTypeStock = 'unknown_stock' | 'low_stock' | 'out_of_stock' | 'available';
6
6
  export interface EndpointPrivateNetworkDetails {
7
7
  /** ID of the Private Network. */
@@ -97,6 +97,7 @@ class API extends api.API {
97
97
  ["resource_id", request.resourceId],
98
98
  ["resource_name", request.resourceName],
99
99
  ["resource_type", request.resourceType],
100
+ ["resource_types", request.resourceTypes],
100
101
  ["tags", request.tags],
101
102
  ["vpc_id", request.vpcId],
102
103
  ...Object.entries(
@@ -95,6 +95,7 @@ class API extends API$1 {
95
95
  ["resource_id", request.resourceId],
96
96
  ["resource_name", request.resourceName],
97
97
  ["resource_type", request.resourceType],
98
+ ["resource_types", request.resourceTypes],
98
99
  ["tags", request.tags],
99
100
  ["vpc_id", request.vpcId],
100
101
  ...Object.entries(
@@ -177,6 +177,11 @@ export type ListIPsRequest = {
177
177
  * this string within their name will be returned.
178
178
  */
179
179
  resourceName?: string;
180
+ /**
181
+ * Resource types to filter for. Only IPs attached to these types of resources
182
+ * will be returned.
183
+ */
184
+ resourceTypes?: ResourceType[];
180
185
  };
181
186
  export interface ListIPsResponse {
182
187
  totalCount: number;
@@ -100,6 +100,7 @@ const unmarshalBrowseSecretsResponseItemSecretDetails = (data) => {
100
100
  id: data.id,
101
101
  protected: data.protected,
102
102
  tags: data.tags,
103
+ type: data.type,
103
104
  versionCount: data.version_count
104
105
  };
105
106
  };
@@ -98,6 +98,7 @@ const unmarshalBrowseSecretsResponseItemSecretDetails = (data) => {
98
98
  id: data.id,
99
99
  protected: data.protected,
100
100
  tags: data.tags,
101
+ type: data.type,
101
102
  versionCount: data.version_count
102
103
  };
103
104
  };
@@ -25,6 +25,7 @@ export interface BrowseSecretsResponseItemSecretDetails {
25
25
  versionCount: number;
26
26
  protected: boolean;
27
27
  ephemeralPolicy?: EphemeralPolicy;
28
+ type: SecretType;
28
29
  }
29
30
  export interface EphemeralProperties {
30
31
  /** (Optional.) If not specified, the version does not have an expiration date. */
package/dist/bridge.d.ts CHANGED
@@ -5,7 +5,8 @@ export type { WaitForOptions } from './internal/async/interval-retrier';
5
5
  export { API } from './scw/api';
6
6
  export type { DefaultValues } from './scw/client-settings';
7
7
  export type { Money, ServiceInfo, ScwFile, TimeSeries, } from './scw/custom-types';
8
- export { marshalScwFile, marshalMoney, marshalTimeSeries, unmarshalMoney, unmarshalScwFile, unmarshalServiceInfo, unmarshalTimeSeries, unmarshalTimeSeriesPoint, } from './scw/custom-marshalling';
8
+ export { Decimal } from './scw/custom-types';
9
+ export { marshalScwFile, marshalMoney, marshalTimeSeries, marshalDecimal, unmarshalMoney, unmarshalScwFile, unmarshalServiceInfo, unmarshalTimeSeries, unmarshalTimeSeriesPoint, unmarshalDecimal, } from './scw/custom-marshalling';
9
10
  export { enrichForPagination } from './scw/fetch/resource-paginator';
10
11
  export type { Region, Zone } from './scw/locality';
11
12
  export { resolveOneOf, unmarshalDate, unmarshalArrayOfObject, unmarshalMapOfObject, urlParams, validatePathParam, } from './helpers/marshalling';
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const version = "v2.36.0";
3
+ const version = "v2.37.0";
4
4
  const userAgent = `scaleway-sdk-js/${version}`;
5
5
  exports.userAgent = userAgent;
6
6
  exports.version = version;
@@ -1,2 +1,2 @@
1
- export declare const version = "v2.36.0";
2
- export declare const userAgent = "scaleway-sdk-js/v2.36.0";
1
+ export declare const version = "v2.37.0";
2
+ export declare const userAgent = "scaleway-sdk-js/v2.37.0";
@@ -1,4 +1,4 @@
1
- const version = "v2.36.0";
1
+ const version = "v2.37.0";
2
2
  const userAgent = `scaleway-sdk-js/${version}`;
3
3
  export {
4
4
  userAgent,
@@ -1,4 +1,5 @@
1
1
  import type { Money, ScwFile, ServiceInfo, TimeSeries, TimeSeriesPoint } from './custom-types';
2
+ import { Decimal } from './custom-types';
2
3
  /**
3
4
  * Unmarshals {@link Money}
4
5
  *
@@ -33,6 +34,12 @@ export declare const unmarshalTimeSeriesPoint: (data: unknown) => TimeSeriesPoin
33
34
  * @internal
34
35
  */
35
36
  export declare const unmarshalTimeSeries: (data: unknown) => TimeSeries;
37
+ /**
38
+ * Unmarshals {@link Decimal}
39
+ *
40
+ * @internal
41
+ */
42
+ export declare const unmarshalDecimal: (data: unknown) => Decimal;
36
43
  /**
37
44
  * Marshals {@link ScwFile}.
38
45
  *
@@ -57,3 +64,9 @@ export declare const marshalTimeSeriesPoint: (obj: TimeSeriesPoint) => Record<st
57
64
  * @internal
58
65
  */
59
66
  export declare const marshalTimeSeries: (obj: TimeSeries) => Record<string, unknown>;
67
+ /**
68
+ * Marshals {@link Decimal}
69
+ *
70
+ * @internal
71
+ */
72
+ export declare const marshalDecimal: (obj: Decimal) => string;
@@ -63,3 +63,11 @@ export interface ScwFile {
63
63
  /** Content of the file in base64. */
64
64
  content: string;
65
65
  }
66
+ /** A representation of a decimal value, such as 2.5.
67
+ * Comparable to language-native decimal formats, such as Java's BigDecimal or Python's decimal.Decimal.
68
+ * Lookup protobuf google.type.Decimal for details */
69
+ export declare class Decimal {
70
+ private readonly str;
71
+ constructor(v: string);
72
+ toString: () => string;
73
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@scaleway/sdk",
3
- "version": "2.37.0",
3
+ "version": "2.38.0",
4
4
  "license": "Apache-2.0",
5
5
  "description": "Scaleway SDK.",
6
6
  "keywords": [
@@ -39,5 +39,5 @@
39
39
  "bundledDependencies": [
40
40
  "@scaleway/random-name"
41
41
  ],
42
- "gitHead": "fb39b9b96d5ff0529761595d665fea05b9893ce7"
42
+ "gitHead": "21d0735f42beb56422452c9cf68095a212c94dc8"
43
43
  }