@scaleway/sdk-mnq 2.3.0 → 2.3.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 };
|
package/dist/v1beta1/api.gen.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { marshalNatsApiCreateNatsAccountRequest, marshalNatsApiCreateNatsCredentialsRequest, marshalNatsApiUpdateNatsAccountRequest, marshalSnsApiActivateSnsRequest, marshalSnsApiCreateSnsCredentialsRequest, marshalSnsApiDeactivateSnsRequest, marshalSnsApiUpdateSnsCredentialsRequest, marshalSqsApiActivateSqsRequest, marshalSqsApiCreateSqsCredentialsRequest, marshalSqsApiDeactivateSqsRequest, marshalSqsApiUpdateSqsCredentialsRequest, unmarshalListNatsAccountsResponse, unmarshalListNatsCredentialsResponse, unmarshalListSnsCredentialsResponse, unmarshalListSqsCredentialsResponse, unmarshalNatsAccount, unmarshalNatsCredentials, unmarshalSnsCredentials, unmarshalSnsInfo, unmarshalSqsCredentials, unmarshalSqsInfo } from "./marshalling.gen.js";
|
|
2
2
|
import { API, enrichForPagination, toApiLocality, urlParams, validatePathParam } from "@scaleway/sdk-client";
|
|
3
|
+
//#region src/v1beta1/api.gen.ts
|
|
3
4
|
var jsonContentHeaders = { "Content-Type": "application/json; charset=utf-8" };
|
|
4
5
|
/**
|
|
5
6
|
* NATS API.
|
|
@@ -315,4 +316,5 @@ var SqsAPI = class extends API {
|
|
|
315
316
|
*/
|
|
316
317
|
listSqsCredentials = (request = {}) => enrichForPagination("sqsCredentials", this.pageOfListSqsCredentials, request);
|
|
317
318
|
};
|
|
319
|
+
//#endregion
|
|
318
320
|
export { NatsAPI, SnsAPI, SqsAPI };
|
|
@@ -2,6 +2,7 @@ import { __exportAll } from "../_virtual/_rolldown/runtime.js";
|
|
|
2
2
|
import { marshalNatsApiCreateNatsAccountRequest, marshalNatsApiCreateNatsCredentialsRequest, marshalNatsApiUpdateNatsAccountRequest, marshalSnsApiActivateSnsRequest, marshalSnsApiCreateSnsCredentialsRequest, marshalSnsApiDeactivateSnsRequest, marshalSnsApiUpdateSnsCredentialsRequest, marshalSqsApiActivateSqsRequest, marshalSqsApiCreateSqsCredentialsRequest, marshalSqsApiDeactivateSqsRequest, marshalSqsApiUpdateSqsCredentialsRequest, unmarshalListNatsAccountsResponse, unmarshalListNatsCredentialsResponse, unmarshalListSnsCredentialsResponse, unmarshalListSqsCredentialsResponse, unmarshalNatsAccount, unmarshalNatsCredentials, unmarshalSnsCredentials, unmarshalSnsInfo, unmarshalSqsCredentials, unmarshalSqsInfo } from "./marshalling.gen.js";
|
|
3
3
|
import { NatsAPI, SnsAPI, SqsAPI } from "./api.gen.js";
|
|
4
4
|
import { validation_rules_gen_exports } from "./validation-rules.gen.js";
|
|
5
|
+
//#region src/v1beta1/index.gen.ts
|
|
5
6
|
var index_gen_exports = /* @__PURE__ */ __exportAll({
|
|
6
7
|
NatsAPI: () => NatsAPI,
|
|
7
8
|
SnsAPI: () => SnsAPI,
|
|
@@ -29,4 +30,5 @@ var index_gen_exports = /* @__PURE__ */ __exportAll({
|
|
|
29
30
|
unmarshalSqsCredentials: () => unmarshalSqsCredentials,
|
|
30
31
|
unmarshalSqsInfo: () => unmarshalSqsInfo
|
|
31
32
|
});
|
|
32
|
-
|
|
33
|
+
//#endregion
|
|
34
|
+
export { NatsAPI, SnsAPI, SqsAPI, validation_rules_gen_exports as ValidationRules, index_gen_exports, marshalNatsApiCreateNatsAccountRequest, marshalNatsApiCreateNatsCredentialsRequest, marshalNatsApiUpdateNatsAccountRequest, marshalSnsApiActivateSnsRequest, marshalSnsApiCreateSnsCredentialsRequest, marshalSnsApiDeactivateSnsRequest, marshalSnsApiUpdateSnsCredentialsRequest, marshalSqsApiActivateSqsRequest, marshalSqsApiCreateSqsCredentialsRequest, marshalSqsApiDeactivateSqsRequest, marshalSqsApiUpdateSqsCredentialsRequest, unmarshalListNatsAccountsResponse, unmarshalListNatsCredentialsResponse, unmarshalListSnsCredentialsResponse, unmarshalListSqsCredentialsResponse, unmarshalNatsAccount, unmarshalNatsCredentials, unmarshalSnsCredentials, unmarshalSnsInfo, unmarshalSqsCredentials, unmarshalSqsInfo };
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { isJSONObject, unmarshalArrayOfObject, unmarshalDate } from "@scaleway/sdk-client";
|
|
2
2
|
import randomName from "@scaleway/random-name";
|
|
3
|
-
|
|
3
|
+
//#region src/v1beta1/marshalling.gen.ts
|
|
4
|
+
var unmarshalNatsAccount = (data) => {
|
|
4
5
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'NatsAccount' failed as data isn't a dictionary.`);
|
|
5
6
|
return {
|
|
6
7
|
createdAt: unmarshalDate(data.created_at),
|
|
@@ -19,7 +20,7 @@ var unmarshalFile = (data) => {
|
|
|
19
20
|
name: data.name
|
|
20
21
|
};
|
|
21
22
|
};
|
|
22
|
-
|
|
23
|
+
var unmarshalNatsCredentials = (data) => {
|
|
23
24
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'NatsCredentials' failed as data isn't a dictionary.`);
|
|
24
25
|
return {
|
|
25
26
|
checksum: data.checksum,
|
|
@@ -40,7 +41,7 @@ var unmarshalSnsPermissions = (data) => {
|
|
|
40
41
|
canReceive: data.can_receive
|
|
41
42
|
};
|
|
42
43
|
};
|
|
43
|
-
|
|
44
|
+
var unmarshalSnsCredentials = (data) => {
|
|
44
45
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'SnsCredentials' failed as data isn't a dictionary.`);
|
|
45
46
|
return {
|
|
46
47
|
accessKey: data.access_key,
|
|
@@ -63,7 +64,7 @@ var unmarshalSqsPermissions = (data) => {
|
|
|
63
64
|
canReceive: data.can_receive
|
|
64
65
|
};
|
|
65
66
|
};
|
|
66
|
-
|
|
67
|
+
var unmarshalSqsCredentials = (data) => {
|
|
67
68
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'SqsCredentials' failed as data isn't a dictionary.`);
|
|
68
69
|
return {
|
|
69
70
|
accessKey: data.access_key,
|
|
@@ -78,35 +79,35 @@ const unmarshalSqsCredentials = (data) => {
|
|
|
78
79
|
updatedAt: unmarshalDate(data.updated_at)
|
|
79
80
|
};
|
|
80
81
|
};
|
|
81
|
-
|
|
82
|
+
var unmarshalListNatsAccountsResponse = (data) => {
|
|
82
83
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListNatsAccountsResponse' failed as data isn't a dictionary.`);
|
|
83
84
|
return {
|
|
84
85
|
natsAccounts: unmarshalArrayOfObject(data.nats_accounts, unmarshalNatsAccount),
|
|
85
86
|
totalCount: data.total_count
|
|
86
87
|
};
|
|
87
88
|
};
|
|
88
|
-
|
|
89
|
+
var unmarshalListNatsCredentialsResponse = (data) => {
|
|
89
90
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListNatsCredentialsResponse' failed as data isn't a dictionary.`);
|
|
90
91
|
return {
|
|
91
92
|
natsCredentials: unmarshalArrayOfObject(data.nats_credentials, unmarshalNatsCredentials),
|
|
92
93
|
totalCount: data.total_count
|
|
93
94
|
};
|
|
94
95
|
};
|
|
95
|
-
|
|
96
|
+
var unmarshalListSnsCredentialsResponse = (data) => {
|
|
96
97
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListSnsCredentialsResponse' failed as data isn't a dictionary.`);
|
|
97
98
|
return {
|
|
98
99
|
snsCredentials: unmarshalArrayOfObject(data.sns_credentials, unmarshalSnsCredentials),
|
|
99
100
|
totalCount: data.total_count
|
|
100
101
|
};
|
|
101
102
|
};
|
|
102
|
-
|
|
103
|
+
var unmarshalListSqsCredentialsResponse = (data) => {
|
|
103
104
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListSqsCredentialsResponse' failed as data isn't a dictionary.`);
|
|
104
105
|
return {
|
|
105
106
|
sqsCredentials: unmarshalArrayOfObject(data.sqs_credentials, unmarshalSqsCredentials),
|
|
106
107
|
totalCount: data.total_count
|
|
107
108
|
};
|
|
108
109
|
};
|
|
109
|
-
|
|
110
|
+
var unmarshalSnsInfo = (data) => {
|
|
110
111
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'SnsInfo' failed as data isn't a dictionary.`);
|
|
111
112
|
return {
|
|
112
113
|
createdAt: unmarshalDate(data.created_at),
|
|
@@ -117,7 +118,7 @@ const unmarshalSnsInfo = (data) => {
|
|
|
117
118
|
updatedAt: unmarshalDate(data.updated_at)
|
|
118
119
|
};
|
|
119
120
|
};
|
|
120
|
-
|
|
121
|
+
var unmarshalSqsInfo = (data) => {
|
|
121
122
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'SqsInfo' failed as data isn't a dictionary.`);
|
|
122
123
|
return {
|
|
123
124
|
createdAt: unmarshalDate(data.created_at),
|
|
@@ -128,45 +129,46 @@ const unmarshalSqsInfo = (data) => {
|
|
|
128
129
|
updatedAt: unmarshalDate(data.updated_at)
|
|
129
130
|
};
|
|
130
131
|
};
|
|
131
|
-
|
|
132
|
+
var marshalNatsApiCreateNatsAccountRequest = (request, defaults) => ({
|
|
132
133
|
name: request.name || randomName("mnq"),
|
|
133
134
|
project_id: request.projectId ?? defaults.defaultProjectId
|
|
134
135
|
});
|
|
135
|
-
|
|
136
|
+
var marshalNatsApiCreateNatsCredentialsRequest = (request, defaults) => ({
|
|
136
137
|
name: request.name || randomName("mnq"),
|
|
137
138
|
nats_account_id: request.natsAccountId
|
|
138
139
|
});
|
|
139
|
-
|
|
140
|
-
|
|
140
|
+
var marshalNatsApiUpdateNatsAccountRequest = (request, defaults) => ({ name: request.name });
|
|
141
|
+
var marshalSnsApiActivateSnsRequest = (request, defaults) => ({ project_id: request.projectId ?? defaults.defaultProjectId });
|
|
141
142
|
var marshalSnsPermissions = (request, defaults) => ({
|
|
142
143
|
can_manage: request.canManage,
|
|
143
144
|
can_publish: request.canPublish,
|
|
144
145
|
can_receive: request.canReceive
|
|
145
146
|
});
|
|
146
|
-
|
|
147
|
+
var marshalSnsApiCreateSnsCredentialsRequest = (request, defaults) => ({
|
|
147
148
|
name: request.name || randomName("mnq_sns"),
|
|
148
149
|
permissions: request.permissions !== void 0 ? marshalSnsPermissions(request.permissions, defaults) : void 0,
|
|
149
150
|
project_id: request.projectId ?? defaults.defaultProjectId
|
|
150
151
|
});
|
|
151
|
-
|
|
152
|
-
|
|
152
|
+
var marshalSnsApiDeactivateSnsRequest = (request, defaults) => ({ project_id: request.projectId ?? defaults.defaultProjectId });
|
|
153
|
+
var marshalSnsApiUpdateSnsCredentialsRequest = (request, defaults) => ({
|
|
153
154
|
name: request.name,
|
|
154
155
|
permissions: request.permissions !== void 0 ? marshalSnsPermissions(request.permissions, defaults) : void 0
|
|
155
156
|
});
|
|
156
|
-
|
|
157
|
+
var marshalSqsApiActivateSqsRequest = (request, defaults) => ({ project_id: request.projectId ?? defaults.defaultProjectId });
|
|
157
158
|
var marshalSqsPermissions = (request, defaults) => ({
|
|
158
159
|
can_manage: request.canManage,
|
|
159
160
|
can_publish: request.canPublish,
|
|
160
161
|
can_receive: request.canReceive
|
|
161
162
|
});
|
|
162
|
-
|
|
163
|
+
var marshalSqsApiCreateSqsCredentialsRequest = (request, defaults) => ({
|
|
163
164
|
name: request.name || randomName("mnq_sqs"),
|
|
164
165
|
permissions: request.permissions !== void 0 ? marshalSqsPermissions(request.permissions, defaults) : void 0,
|
|
165
166
|
project_id: request.projectId ?? defaults.defaultProjectId
|
|
166
167
|
});
|
|
167
|
-
|
|
168
|
-
|
|
168
|
+
var marshalSqsApiDeactivateSqsRequest = (request, defaults) => ({ project_id: request.projectId ?? defaults.defaultProjectId });
|
|
169
|
+
var marshalSqsApiUpdateSqsCredentialsRequest = (request, defaults) => ({
|
|
169
170
|
name: request.name,
|
|
170
171
|
permissions: request.permissions !== void 0 ? marshalSqsPermissions(request.permissions, defaults) : void 0
|
|
171
172
|
});
|
|
173
|
+
//#endregion
|
|
172
174
|
export { marshalNatsApiCreateNatsAccountRequest, marshalNatsApiCreateNatsCredentialsRequest, marshalNatsApiUpdateNatsAccountRequest, marshalSnsApiActivateSnsRequest, marshalSnsApiCreateSnsCredentialsRequest, marshalSnsApiDeactivateSnsRequest, marshalSnsApiUpdateSnsCredentialsRequest, marshalSqsApiActivateSqsRequest, marshalSqsApiCreateSqsCredentialsRequest, marshalSqsApiDeactivateSqsRequest, marshalSqsApiUpdateSqsCredentialsRequest, unmarshalListNatsAccountsResponse, unmarshalListNatsCredentialsResponse, unmarshalListSnsCredentialsResponse, unmarshalListSqsCredentialsResponse, unmarshalNatsAccount, unmarshalNatsCredentials, unmarshalSnsCredentials, unmarshalSnsInfo, unmarshalSqsCredentials, unmarshalSqsInfo };
|
|
File without changes
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { __exportAll } from "../_virtual/_rolldown/runtime.js";
|
|
2
|
+
//#region src/v1beta1/validation-rules.gen.ts
|
|
2
3
|
var validation_rules_gen_exports = /* @__PURE__ */ __exportAll({
|
|
3
4
|
NatsAccount: () => NatsAccount,
|
|
4
5
|
NatsApiCreateNatsAccountRequest: () => NatsApiCreateNatsAccountRequest,
|
|
@@ -12,54 +13,55 @@ var validation_rules_gen_exports = /* @__PURE__ */ __exportAll({
|
|
|
12
13
|
SqsApiUpdateSqsCredentialsRequest: () => SqsApiUpdateSqsCredentialsRequest,
|
|
13
14
|
SqsCredentials: () => SqsCredentials
|
|
14
15
|
});
|
|
15
|
-
|
|
16
|
+
var NatsAccount = { name: {
|
|
16
17
|
maxLength: 64,
|
|
17
18
|
minLength: 1
|
|
18
19
|
} };
|
|
19
|
-
|
|
20
|
+
var NatsApiCreateNatsAccountRequest = { name: {
|
|
20
21
|
maxLength: 64,
|
|
21
22
|
minLength: 1
|
|
22
23
|
} };
|
|
23
|
-
|
|
24
|
+
var NatsApiCreateNatsCredentialsRequest = { name: {
|
|
24
25
|
maxLength: 500,
|
|
25
26
|
minLength: 1
|
|
26
27
|
} };
|
|
27
|
-
|
|
28
|
+
var NatsApiUpdateNatsAccountRequest = { name: {
|
|
28
29
|
maxLength: 64,
|
|
29
30
|
minLength: 1
|
|
30
31
|
} };
|
|
31
|
-
|
|
32
|
+
var NatsCredentials = { name: {
|
|
32
33
|
maxLength: 500,
|
|
33
34
|
minLength: 1
|
|
34
35
|
} };
|
|
35
|
-
|
|
36
|
+
var SnsApiCreateSnsCredentialsRequest = { name: {
|
|
36
37
|
maxLength: 500,
|
|
37
38
|
minLength: 1
|
|
38
39
|
} };
|
|
39
|
-
|
|
40
|
+
var SnsApiUpdateSnsCredentialsRequest = { name: {
|
|
40
41
|
maxLength: 500,
|
|
41
42
|
minLength: 1
|
|
42
43
|
} };
|
|
43
|
-
|
|
44
|
+
var SnsCredentials = {
|
|
44
45
|
accessKey: { minLength: 1 },
|
|
45
46
|
name: {
|
|
46
47
|
maxLength: 500,
|
|
47
48
|
minLength: 1
|
|
48
49
|
}
|
|
49
50
|
};
|
|
50
|
-
|
|
51
|
+
var SqsApiCreateSqsCredentialsRequest = { name: {
|
|
51
52
|
maxLength: 500,
|
|
52
53
|
minLength: 1
|
|
53
54
|
} };
|
|
54
|
-
|
|
55
|
+
var SqsApiUpdateSqsCredentialsRequest = { name: {
|
|
55
56
|
maxLength: 500,
|
|
56
57
|
minLength: 1
|
|
57
58
|
} };
|
|
58
|
-
|
|
59
|
+
var SqsCredentials = {
|
|
59
60
|
accessKey: { minLength: 1 },
|
|
60
61
|
name: {
|
|
61
62
|
maxLength: 500,
|
|
62
63
|
minLength: 1
|
|
63
64
|
}
|
|
64
65
|
};
|
|
65
|
-
|
|
66
|
+
//#endregion
|
|
67
|
+
export { NatsAccount, NatsApiCreateNatsAccountRequest, NatsApiCreateNatsCredentialsRequest, NatsApiUpdateNatsAccountRequest, NatsCredentials, SnsApiCreateSnsCredentialsRequest, SnsApiUpdateSnsCredentialsRequest, SnsCredentials, SqsApiCreateSqsCredentialsRequest, SqsApiUpdateSqsCredentialsRequest, SqsCredentials, validation_rules_gen_exports };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@scaleway/sdk-mnq",
|
|
3
|
-
"version": "2.3.
|
|
3
|
+
"version": "2.3.2",
|
|
4
4
|
"description": "Scaleway SDK mnq",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"files": [
|
|
@@ -26,14 +26,14 @@
|
|
|
26
26
|
"node": ">=20.19.6"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@scaleway/random-name": "5.1.
|
|
30
|
-
"@scaleway/sdk-std": "2.2.
|
|
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.
|
|
33
|
+
"@scaleway/sdk-client": "^2.2.2"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
|
-
"@scaleway/sdk-client": "^2.2.
|
|
36
|
+
"@scaleway/sdk-client": "^2.2.2"
|
|
37
37
|
},
|
|
38
38
|
"scripts": {
|
|
39
39
|
"package:check": "pnpm publint",
|