@scaleway/sdk-kafka 2.1.1

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,104 @@
1
+ const CreateClusterRequest = {
2
+ name: {
3
+ maxLength: 255,
4
+ minLength: 1,
5
+ pattern: /^[A-Za-z0-9\-_]+$/
6
+ },
7
+ nodeAmount: {
8
+ greaterThanOrEqual: 1,
9
+ lessThanOrEqual: 30
10
+ },
11
+ nodeType: {
12
+ maxLength: 128,
13
+ minLength: 1,
14
+ pattern: /^[A-Za-z0-9\-_]+$/
15
+ },
16
+ password: {
17
+ maxLength: 128,
18
+ minLength: 12
19
+ },
20
+ userName: {
21
+ maxLength: 63,
22
+ minLength: 1,
23
+ pattern: /^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$/
24
+ },
25
+ version: {
26
+ pattern: /^[0-9]+\.[0-9]+\.[0-9]+$/
27
+ }
28
+ };
29
+ const ListClustersRequest = {
30
+ name: {
31
+ maxLength: 255,
32
+ minLength: 1,
33
+ pattern: /^[A-Za-z0-9\-_]+$/
34
+ },
35
+ page: {
36
+ greaterThanOrEqual: 1
37
+ },
38
+ pageSize: {
39
+ greaterThanOrEqual: 1,
40
+ lessThanOrEqual: 100
41
+ }
42
+ };
43
+ const ListNodeTypesRequest = {
44
+ page: {
45
+ greaterThanOrEqual: 1
46
+ },
47
+ pageSize: {
48
+ greaterThanOrEqual: 1,
49
+ lessThanOrEqual: 100
50
+ }
51
+ };
52
+ const ListUsersRequest = {
53
+ name: {
54
+ maxLength: 63,
55
+ minLength: 1,
56
+ pattern: /^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$/
57
+ },
58
+ page: {
59
+ greaterThanOrEqual: 1
60
+ },
61
+ pageSize: {
62
+ greaterThanOrEqual: 1,
63
+ lessThanOrEqual: 100
64
+ }
65
+ };
66
+ const ListVersionsRequest = {
67
+ page: {
68
+ greaterThanOrEqual: 1
69
+ },
70
+ pageSize: {
71
+ greaterThanOrEqual: 1,
72
+ lessThanOrEqual: 100
73
+ },
74
+ version: {
75
+ pattern: /^[0-9]+\.[0-9]+\.[0-9]+$/
76
+ }
77
+ };
78
+ const UpdateClusterRequest = {
79
+ name: {
80
+ maxLength: 255,
81
+ minLength: 1,
82
+ pattern: /^[A-Za-z0-9\-_]+$/
83
+ }
84
+ };
85
+ const UpdateUserRequest = {
86
+ password: {
87
+ maxLength: 128,
88
+ minLength: 8
89
+ },
90
+ username: {
91
+ maxLength: 63,
92
+ minLength: 1,
93
+ pattern: /^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$/
94
+ }
95
+ };
96
+ export {
97
+ CreateClusterRequest,
98
+ ListClustersRequest,
99
+ ListNodeTypesRequest,
100
+ ListUsersRequest,
101
+ ListVersionsRequest,
102
+ UpdateClusterRequest,
103
+ UpdateUserRequest
104
+ };
package/package.json ADDED
@@ -0,0 +1,45 @@
1
+ {
2
+ "name": "@scaleway/sdk-kafka",
3
+ "version": "2.1.1",
4
+ "description": "Scaleway SDK kafka",
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/kafka"
24
+ },
25
+ "engines": {
26
+ "node": ">=20.19.6"
27
+ },
28
+ "dependencies": {
29
+ "@scaleway/random-name": "5.1.2",
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
+ }