@scaleway/sdk-searchdb 1.2.1 → 1.2.2

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,3 +1,4 @@
1
+ //#region \0rolldown/runtime.js
1
2
  var __defProp = Object.defineProperty;
2
3
  var __exportAll = (all, no_symbols) => {
3
4
  let target = {};
@@ -8,4 +9,5 @@ var __exportAll = (all, no_symbols) => {
8
9
  if (!no_symbols) __defProp(target, Symbol.toStringTag, { value: "Module" });
9
10
  return target;
10
11
  };
12
+ //#endregion
11
13
  export { __exportAll };
@@ -1,13 +1,14 @@
1
1
  import { DEPLOYMENT_TRANSIENT_STATUSES } from "./content.gen.js";
2
2
  import { marshalCreateDeploymentRequest, marshalCreateEndpointRequest, marshalCreateUserRequest, marshalUpdateDeploymentRequest, marshalUpdateUserRequest, marshalUpgradeDeploymentRequest, unmarshalDeployment, unmarshalEndpoint, unmarshalListDeploymentsResponse, unmarshalListNodeTypesResponse, unmarshalListUsersResponse, unmarshalListVersionsResponse, unmarshalUser } from "./marshalling.gen.js";
3
- import { API, enrichForPagination, toApiLocality, urlParams, validatePathParam, waitForResource } from "@scaleway/sdk-client";
3
+ import { API as API$1, enrichForPagination, toApiLocality, urlParams, validatePathParam, waitForResource } from "@scaleway/sdk-client";
4
+ //#region src/v1alpha1/api.gen.ts
4
5
  var jsonContentHeaders = { "Content-Type": "application/json; charset=utf-8" };
5
6
  /**
6
7
  * Cloud Essentials for Opensearch API.
7
8
 
8
9
  The Cloud Essentials for Opensearch API allows you to manage your Opensearch resources.
9
10
  */
10
- var API$1 = class extends API {
11
+ var API = class extends API$1 {
11
12
  /**
12
13
  * Locality of this API.
13
14
  * type ∈ {'zone','region','global','unspecified'}
@@ -186,4 +187,5 @@ var API$1 = class extends API {
186
187
  responseType: "blob"
187
188
  });
188
189
  };
189
- export { API$1 as API };
190
+ //#endregion
191
+ export { API };
@@ -1,5 +1,6 @@
1
+ //#region src/v1alpha1/content.gen.ts
1
2
  /** Lists transient statutes of the enum {@link DeploymentStatus}. */
2
- const DEPLOYMENT_TRANSIENT_STATUSES = [
3
+ var DEPLOYMENT_TRANSIENT_STATUSES = [
3
4
  "creating",
4
5
  "initializing",
5
6
  "upgrading",
@@ -7,4 +8,5 @@ const DEPLOYMENT_TRANSIENT_STATUSES = [
7
8
  "locking",
8
9
  "unlocking"
9
10
  ];
11
+ //#endregion
10
12
  export { DEPLOYMENT_TRANSIENT_STATUSES };
@@ -3,6 +3,7 @@ import { DEPLOYMENT_TRANSIENT_STATUSES } from "./content.gen.js";
3
3
  import { marshalCreateDeploymentRequest, marshalCreateEndpointRequest, marshalCreateUserRequest, marshalUpdateDeploymentRequest, marshalUpdateUserRequest, marshalUpgradeDeploymentRequest, unmarshalDeployment, unmarshalEndpoint, unmarshalListDeploymentsResponse, unmarshalListNodeTypesResponse, unmarshalListUsersResponse, unmarshalListVersionsResponse, unmarshalUser } from "./marshalling.gen.js";
4
4
  import { API } from "./api.gen.js";
5
5
  import { validation_rules_gen_exports } from "./validation-rules.gen.js";
6
+ //#region src/v1alpha1/index.gen.ts
6
7
  var index_gen_exports = /* @__PURE__ */ __exportAll({
7
8
  API: () => API,
8
9
  DEPLOYMENT_TRANSIENT_STATUSES: () => DEPLOYMENT_TRANSIENT_STATUSES,
@@ -21,4 +22,5 @@ var index_gen_exports = /* @__PURE__ */ __exportAll({
21
22
  unmarshalListVersionsResponse: () => unmarshalListVersionsResponse,
22
23
  unmarshalUser: () => unmarshalUser
23
24
  });
24
- export { index_gen_exports };
25
+ //#endregion
26
+ export { API, DEPLOYMENT_TRANSIENT_STATUSES, validation_rules_gen_exports as ValidationRules, index_gen_exports, marshalCreateDeploymentRequest, marshalCreateEndpointRequest, marshalCreateUserRequest, marshalUpdateDeploymentRequest, marshalUpdateUserRequest, marshalUpgradeDeploymentRequest, unmarshalDeployment, unmarshalEndpoint, unmarshalListDeploymentsResponse, unmarshalListNodeTypesResponse, unmarshalListUsersResponse, unmarshalListVersionsResponse, unmarshalUser };
@@ -1,4 +1,5 @@
1
1
  import { isJSONObject, resolveOneOf, unmarshalArrayOfObject, unmarshalDate } from "@scaleway/sdk-client";
2
+ //#region src/v1alpha1/marshalling.gen.ts
2
3
  var unmarshalEndpointPrivateNetworkDetails = (data) => {
3
4
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'EndpointPrivateNetworkDetails' failed as data isn't a dictionary.`);
4
5
  return { privateNetworkId: data.private_network_id };
@@ -15,7 +16,7 @@ var unmarshalEndpointService = (data) => {
15
16
  url: data.url
16
17
  };
17
18
  };
18
- const unmarshalEndpoint = (data) => {
19
+ var unmarshalEndpoint = (data) => {
19
20
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'Endpoint' failed as data isn't a dictionary.`);
20
21
  return {
21
22
  dnsRecord: data.dns_record,
@@ -32,7 +33,7 @@ var unmarshalVolume = (data) => {
32
33
  type: data.type
33
34
  };
34
35
  };
35
- const unmarshalDeployment = (data) => {
36
+ var unmarshalDeployment = (data) => {
36
37
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'Deployment' failed as data isn't a dictionary.`);
37
38
  return {
38
39
  createdAt: unmarshalDate(data.created_at),
@@ -51,11 +52,11 @@ const unmarshalDeployment = (data) => {
51
52
  volume: data.volume ? unmarshalVolume(data.volume) : void 0
52
53
  };
53
54
  };
54
- const unmarshalUser = (data) => {
55
+ var unmarshalUser = (data) => {
55
56
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'User' failed as data isn't a dictionary.`);
56
57
  return { username: data.username };
57
58
  };
58
- const unmarshalListDeploymentsResponse = (data) => {
59
+ var unmarshalListDeploymentsResponse = (data) => {
59
60
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListDeploymentsResponse' failed as data isn't a dictionary.`);
60
61
  return {
61
62
  deployments: unmarshalArrayOfObject(data.deployments, unmarshalDeployment),
@@ -86,14 +87,14 @@ var unmarshalNodeType = (data) => {
86
87
  vcpus: data.vcpus
87
88
  };
88
89
  };
89
- const unmarshalListNodeTypesResponse = (data) => {
90
+ var unmarshalListNodeTypesResponse = (data) => {
90
91
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListNodeTypesResponse' failed as data isn't a dictionary.`);
91
92
  return {
92
93
  nodeTypes: unmarshalArrayOfObject(data.node_types, unmarshalNodeType),
93
94
  totalCount: data.total_count
94
95
  };
95
96
  };
96
- const unmarshalListUsersResponse = (data) => {
97
+ var unmarshalListUsersResponse = (data) => {
97
98
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListUsersResponse' failed as data isn't a dictionary.`);
98
99
  return {
99
100
  totalCount: data.total_count,
@@ -109,7 +110,7 @@ var unmarshalVersion = (data) => {
109
110
  version: data.version
110
111
  };
111
112
  };
112
- const unmarshalListVersionsResponse = (data) => {
113
+ var unmarshalListVersionsResponse = (data) => {
113
114
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListVersionsResponse' failed as data isn't a dictionary.`);
114
115
  return {
115
116
  totalCount: data.total_count,
@@ -129,7 +130,7 @@ var marshalVolume = (request, defaults) => ({
129
130
  size_bytes: request.sizeBytes,
130
131
  type: request.type
131
132
  });
132
- const marshalCreateDeploymentRequest = (request, defaults) => ({
133
+ var marshalCreateDeploymentRequest = (request, defaults) => ({
133
134
  endpoints: request.endpoints !== void 0 ? request.endpoints.map((elt) => marshalEndpointSpec(elt, defaults)) : void 0,
134
135
  name: request.name,
135
136
  node_amount: request.nodeAmount,
@@ -141,24 +142,25 @@ const marshalCreateDeploymentRequest = (request, defaults) => ({
141
142
  version: request.version,
142
143
  volume: request.volume !== void 0 ? marshalVolume(request.volume, defaults) : void 0
143
144
  });
144
- const marshalCreateEndpointRequest = (request, defaults) => ({
145
+ var marshalCreateEndpointRequest = (request, defaults) => ({
145
146
  deployment_id: request.deploymentId,
146
147
  endpoint_spec: request.endpointSpec !== void 0 ? marshalEndpointSpec(request.endpointSpec, defaults) : void 0
147
148
  });
148
- const marshalCreateUserRequest = (request, defaults) => ({
149
+ var marshalCreateUserRequest = (request, defaults) => ({
149
150
  password: request.password,
150
151
  username: request.username
151
152
  });
152
- const marshalUpdateDeploymentRequest = (request, defaults) => ({
153
+ var marshalUpdateDeploymentRequest = (request, defaults) => ({
153
154
  name: request.name,
154
155
  tags: request.tags
155
156
  });
156
- const marshalUpdateUserRequest = (request, defaults) => ({ password: request.password });
157
- const marshalUpgradeDeploymentRequest = (request, defaults) => ({ ...resolveOneOf([{
157
+ var marshalUpdateUserRequest = (request, defaults) => ({ password: request.password });
158
+ var marshalUpgradeDeploymentRequest = (request, defaults) => ({ ...resolveOneOf([{
158
159
  param: "node_amount",
159
160
  value: request.nodeAmount
160
161
  }, {
161
162
  param: "volume_size_bytes",
162
163
  value: request.volumeSizeBytes
163
164
  }]) });
165
+ //#endregion
164
166
  export { marshalCreateDeploymentRequest, marshalCreateEndpointRequest, marshalCreateUserRequest, marshalUpdateDeploymentRequest, marshalUpdateUserRequest, marshalUpgradeDeploymentRequest, unmarshalDeployment, unmarshalEndpoint, unmarshalListDeploymentsResponse, unmarshalListNodeTypesResponse, unmarshalListUsersResponse, unmarshalListVersionsResponse, unmarshalUser };
File without changes
@@ -1,4 +1,5 @@
1
1
  import { __exportAll } from "../_virtual/_rolldown/runtime.js";
2
+ //#region src/v1alpha1/validation-rules.gen.ts
2
3
  var validation_rules_gen_exports = /* @__PURE__ */ __exportAll({
3
4
  CreateDeploymentRequest: () => CreateDeploymentRequest,
4
5
  CreateUserRequest: () => CreateUserRequest,
@@ -11,7 +12,7 @@ var validation_rules_gen_exports = /* @__PURE__ */ __exportAll({
11
12
  UpdateUserRequest: () => UpdateUserRequest,
12
13
  Volume: () => Volume
13
14
  });
14
- const CreateDeploymentRequest = {
15
+ var CreateDeploymentRequest = {
15
16
  name: {
16
17
  maxLength: 255,
17
18
  minLength: 1,
@@ -37,7 +38,7 @@ const CreateDeploymentRequest = {
37
38
  pattern: /^[0-9]+\.[0-9]+$/
38
39
  }
39
40
  };
40
- const CreateUserRequest = {
41
+ var CreateUserRequest = {
41
42
  password: {
42
43
  maxLength: 128,
43
44
  minLength: 8
@@ -48,12 +49,12 @@ const CreateUserRequest = {
48
49
  pattern: /^[a-zA-Z0-9_\-]*$/
49
50
  }
50
51
  };
51
- const DeleteUserRequest = { username: {
52
+ var DeleteUserRequest = { username: {
52
53
  maxLength: 63,
53
54
  minLength: 1,
54
55
  pattern: /^[a-zA-Z0-9_\-]*$/
55
56
  } };
56
- const ListDeploymentsRequest = {
57
+ var ListDeploymentsRequest = {
57
58
  name: {
58
59
  maxLength: 255,
59
60
  minLength: 1,
@@ -70,14 +71,14 @@ const ListDeploymentsRequest = {
70
71
  pattern: /^[A-Za-z0-9\-_]+$/
71
72
  }
72
73
  };
73
- const ListNodeTypesRequest = {
74
+ var ListNodeTypesRequest = {
74
75
  page: { greaterThanOrEqual: 1 },
75
76
  pageSize: {
76
77
  greaterThanOrEqual: 1,
77
78
  lessThanOrEqual: 100
78
79
  }
79
80
  };
80
- const ListUsersRequest = {
81
+ var ListUsersRequest = {
81
82
  name: {
82
83
  maxLength: 63,
83
84
  minLength: 1,
@@ -89,18 +90,18 @@ const ListUsersRequest = {
89
90
  lessThanOrEqual: 100
90
91
  }
91
92
  };
92
- const ListVersionsRequest = {
93
+ var ListVersionsRequest = {
93
94
  page: { greaterThanOrEqual: 1 },
94
95
  pageSize: {
95
96
  greaterThanOrEqual: 1,
96
97
  lessThanOrEqual: 100
97
98
  }
98
99
  };
99
- const UpdateDeploymentRequest = { name: {
100
+ var UpdateDeploymentRequest = { name: {
100
101
  maxLength: 255,
101
102
  minLength: 1
102
103
  } };
103
- const UpdateUserRequest = {
104
+ var UpdateUserRequest = {
104
105
  password: {
105
106
  maxLength: 128,
106
107
  minLength: 8
@@ -111,5 +112,6 @@ const UpdateUserRequest = {
111
112
  pattern: /^[a-zA-Z0-9_\-]*$/
112
113
  }
113
114
  };
114
- const Volume = { sizeBytes: { greaterThanOrEqual: 1e9 } };
115
- export { validation_rules_gen_exports };
115
+ var Volume = { sizeBytes: { greaterThanOrEqual: 1e9 } };
116
+ //#endregion
117
+ export { CreateDeploymentRequest, CreateUserRequest, DeleteUserRequest, ListDeploymentsRequest, ListNodeTypesRequest, ListUsersRequest, ListVersionsRequest, UpdateDeploymentRequest, UpdateUserRequest, Volume, validation_rules_gen_exports };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@scaleway/sdk-searchdb",
3
- "version": "1.2.1",
3
+ "version": "1.2.2",
4
4
  "description": "Scaleway SDK searchdb",
5
5
  "license": "Apache-2.0",
6
6
  "files": [
@@ -26,14 +26,14 @@
26
26
  "node": ">=20.18.3"
27
27
  },
28
28
  "dependencies": {
29
- "@scaleway/random-name": "5.1.2",
30
- "@scaleway/sdk-std": "2.2.1"
29
+ "@scaleway/random-name": "5.1.4",
30
+ "@scaleway/sdk-std": "2.2.2"
31
31
  },
32
32
  "peerDependencies": {
33
- "@scaleway/sdk-client": "^2.2.1"
33
+ "@scaleway/sdk-client": "^2.2.2"
34
34
  },
35
35
  "devDependencies": {
36
- "@scaleway/sdk-client": "^2.2.1"
36
+ "@scaleway/sdk-client": "^2.2.2"
37
37
  },
38
38
  "scripts": {
39
39
  "package:check": "pnpm publint",