@scaleway/sdk-searchdb 1.1.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.
@@ -0,0 +1,129 @@
1
+ const CreateDeploymentRequest = {
2
+ name: {
3
+ maxLength: 255,
4
+ minLength: 1,
5
+ pattern: /^[A-Za-z0-9\-_]+$/
6
+ },
7
+ nodeType: {
8
+ maxLength: 128,
9
+ minLength: 1,
10
+ pattern: /^[A-Za-z0-9\-_]+$/
11
+ },
12
+ password: {
13
+ maxLength: 128,
14
+ minLength: 12
15
+ },
16
+ userName: {
17
+ maxLength: 63,
18
+ minLength: 1,
19
+ pattern: /^[a-zA-Z0-9_\-]*$/
20
+ },
21
+ version: {
22
+ maxLength: 128,
23
+ minLength: 1,
24
+ pattern: /^[0-9]+\.[0-9]+$/
25
+ }
26
+ };
27
+ const CreateUserRequest = {
28
+ password: {
29
+ maxLength: 128,
30
+ minLength: 8
31
+ },
32
+ username: {
33
+ maxLength: 63,
34
+ minLength: 1,
35
+ pattern: /^[a-zA-Z0-9_\-]*$/
36
+ }
37
+ };
38
+ const DeleteUserRequest = {
39
+ username: {
40
+ maxLength: 63,
41
+ minLength: 1,
42
+ pattern: /^[a-zA-Z0-9_\-]*$/
43
+ }
44
+ };
45
+ const ListDeploymentsRequest = {
46
+ name: {
47
+ maxLength: 255,
48
+ minLength: 1,
49
+ pattern: /^[A-Za-z0-9\-_]+$/
50
+ },
51
+ page: {
52
+ greaterThanOrEqual: 1
53
+ },
54
+ pageSize: {
55
+ greaterThanOrEqual: 1,
56
+ lessThanOrEqual: 100
57
+ },
58
+ version: {
59
+ maxLength: 128,
60
+ minLength: 1,
61
+ pattern: /^[A-Za-z0-9\-_]+$/
62
+ }
63
+ };
64
+ const ListNodeTypesRequest = {
65
+ page: {
66
+ greaterThanOrEqual: 1
67
+ },
68
+ pageSize: {
69
+ greaterThanOrEqual: 1,
70
+ lessThanOrEqual: 100
71
+ }
72
+ };
73
+ const ListUsersRequest = {
74
+ name: {
75
+ maxLength: 63,
76
+ minLength: 1,
77
+ pattern: /^[a-zA-Z0-9_\-]*$/
78
+ },
79
+ page: {
80
+ greaterThanOrEqual: 1
81
+ },
82
+ pageSize: {
83
+ greaterThanOrEqual: 1,
84
+ lessThanOrEqual: 100
85
+ }
86
+ };
87
+ const ListVersionsRequest = {
88
+ page: {
89
+ greaterThanOrEqual: 1
90
+ },
91
+ pageSize: {
92
+ greaterThanOrEqual: 1,
93
+ lessThanOrEqual: 100
94
+ }
95
+ };
96
+ const UpdateDeploymentRequest = {
97
+ name: {
98
+ maxLength: 255,
99
+ minLength: 1
100
+ }
101
+ };
102
+ const UpdateUserRequest = {
103
+ password: {
104
+ maxLength: 128,
105
+ minLength: 8
106
+ },
107
+ username: {
108
+ maxLength: 63,
109
+ minLength: 1,
110
+ pattern: /^[a-zA-Z0-9_\-]*$/
111
+ }
112
+ };
113
+ const Volume = {
114
+ sizeBytes: {
115
+ greaterThanOrEqual: 1e9
116
+ }
117
+ };
118
+ export {
119
+ CreateDeploymentRequest,
120
+ CreateUserRequest,
121
+ DeleteUserRequest,
122
+ ListDeploymentsRequest,
123
+ ListNodeTypesRequest,
124
+ ListUsersRequest,
125
+ ListVersionsRequest,
126
+ UpdateDeploymentRequest,
127
+ UpdateUserRequest,
128
+ Volume
129
+ };
package/package.json ADDED
@@ -0,0 +1,45 @@
1
+ {
2
+ "name": "@scaleway/sdk-searchdb",
3
+ "version": "1.1.0",
4
+ "description": "Scaleway SDK searchdb",
5
+ "license": "Apache-2.0",
6
+ "files": [
7
+ "dist",
8
+ "README.md"
9
+ ],
10
+ "type": "module",
11
+ "exports": {
12
+ ".": {
13
+ "types": "./dist/index.gen.d.ts",
14
+ "default": "./dist/index.gen.js"
15
+ },
16
+ "./*": {
17
+ "types": "./dist/*/index.gen.d.ts",
18
+ "default": "./dist/*/index.gen.js"
19
+ }
20
+ },
21
+ "repository": {
22
+ "type": "git",
23
+ "directory": "packages_generated/searchdb"
24
+ },
25
+ "engines": {
26
+ "node": ">=20.18.3"
27
+ },
28
+ "dependencies": {
29
+ "@scaleway/random-name": "5.1.1",
30
+ "@scaleway/sdk-std": "2.1.0"
31
+ },
32
+ "peerDependencies": {
33
+ "@scaleway/sdk-client": "^2.1.0"
34
+ },
35
+ "devDependencies": {
36
+ "@scaleway/sdk-client": "^2.1.0"
37
+ },
38
+ "scripts": {
39
+ "package:check": "pnpm publint",
40
+ "typecheck": "tsc --noEmit",
41
+ "type:generate": "tsc --declaration -p tsconfig.build.json",
42
+ "build": "vite build --config vite.config.ts && pnpm run type:generate",
43
+ "build:profile": "npx vite-bundle-visualizer -c vite.config.ts"
44
+ }
45
+ }