@scaleway/sdk-secret 2.3.1 → 2.4.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.
- package/dist/_virtual/_rolldown/runtime.js +2 -0
- package/dist/v1beta1/api.gen.js +5 -3
- package/dist/v1beta1/index.gen.js +3 -1
- package/dist/v1beta1/marshalling.gen.js +15 -13
- package/dist/v1beta1/metadata.gen.d.ts +72 -0
- package/dist/v1beta1/metadata.gen.js +81 -0
- package/dist/v1beta1/types.gen.js +0 -0
- package/dist/v1beta1/validation-rules.gen.js +4 -2
- package/package.json +5 -5
|
@@ -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,12 +1,13 @@
|
|
|
1
1
|
import { marshalAddSecretOwnerRequest, marshalCreateSecretRequest, marshalCreateSecretVersionRequest, marshalUpdateSecretRequest, marshalUpdateSecretVersionRequest, unmarshalAccessSecretVersionResponse, unmarshalBrowseSecretsResponse, unmarshalListSecretTypesResponse, unmarshalListSecretVersionsResponse, unmarshalListSecretsResponse, unmarshalListTagsResponse, unmarshalSecret, unmarshalSecretVersion } from "./marshalling.gen.js";
|
|
2
|
-
import { API, enrichForPagination, toApiLocality, urlParams, validatePathParam } from "@scaleway/sdk-client";
|
|
2
|
+
import { API as API$1, 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
|
* Secret Manager API.
|
|
6
7
|
|
|
7
8
|
This API allows you to manage your Secret Manager services, for storing, accessing and sharing sensitive data such as passwords, API keys and certificates.
|
|
8
9
|
*/
|
|
9
|
-
var API
|
|
10
|
+
var API = class extends API$1 {
|
|
10
11
|
/**
|
|
11
12
|
* Locality of this API.
|
|
12
13
|
* type ∈ {'zone','region','global','unspecified'}
|
|
@@ -266,4 +267,5 @@ var API$1 = class extends API {
|
|
|
266
267
|
path: `/secret-manager/v1beta1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/secrets/${validatePathParam("secretId", request.secretId)}/restore`
|
|
267
268
|
}, unmarshalSecret);
|
|
268
269
|
};
|
|
269
|
-
|
|
270
|
+
//#endregion
|
|
271
|
+
export { API };
|
|
@@ -2,6 +2,7 @@ import { __exportAll } from "../_virtual/_rolldown/runtime.js";
|
|
|
2
2
|
import { marshalAddSecretOwnerRequest, marshalCreateSecretRequest, marshalCreateSecretVersionRequest, marshalUpdateSecretRequest, marshalUpdateSecretVersionRequest, unmarshalAccessSecretVersionResponse, unmarshalBrowseSecretsResponse, unmarshalListSecretTypesResponse, unmarshalListSecretVersionsResponse, unmarshalListSecretsResponse, unmarshalListTagsResponse, unmarshalSecret, unmarshalSecretVersion } from "./marshalling.gen.js";
|
|
3
3
|
import { API } 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
|
API: () => API,
|
|
7
8
|
ValidationRules: () => validation_rules_gen_exports,
|
|
@@ -19,4 +20,5 @@ var index_gen_exports = /* @__PURE__ */ __exportAll({
|
|
|
19
20
|
unmarshalSecret: () => unmarshalSecret,
|
|
20
21
|
unmarshalSecretVersion: () => unmarshalSecretVersion
|
|
21
22
|
});
|
|
22
|
-
|
|
23
|
+
//#endregion
|
|
24
|
+
export { API, validation_rules_gen_exports as ValidationRules, index_gen_exports, marshalAddSecretOwnerRequest, marshalCreateSecretRequest, marshalCreateSecretVersionRequest, marshalUpdateSecretRequest, marshalUpdateSecretVersionRequest, unmarshalAccessSecretVersionResponse, unmarshalBrowseSecretsResponse, unmarshalListSecretTypesResponse, unmarshalListSecretVersionsResponse, unmarshalListSecretsResponse, unmarshalListTagsResponse, unmarshalSecret, unmarshalSecretVersion };
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { isJSONObject, unmarshalArrayOfObject, unmarshalDate } from "@scaleway/sdk-client";
|
|
2
|
+
//#region src/v1beta1/marshalling.gen.ts
|
|
2
3
|
var unmarshalEphemeralProperties = (data) => {
|
|
3
4
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'EphemeralProperties' failed as data isn't a dictionary.`);
|
|
4
5
|
return {
|
|
@@ -7,7 +8,7 @@ var unmarshalEphemeralProperties = (data) => {
|
|
|
7
8
|
expiresOnceAccessed: data.expires_once_accessed
|
|
8
9
|
};
|
|
9
10
|
};
|
|
10
|
-
|
|
11
|
+
var unmarshalSecretVersion = (data) => {
|
|
11
12
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'SecretVersion' failed as data isn't a dictionary.`);
|
|
12
13
|
return {
|
|
13
14
|
createdAt: unmarshalDate(data.created_at),
|
|
@@ -31,7 +32,7 @@ var unmarshalEphemeralPolicy = (data) => {
|
|
|
31
32
|
timeToLive: data.time_to_live
|
|
32
33
|
};
|
|
33
34
|
};
|
|
34
|
-
|
|
35
|
+
var unmarshalSecret = (data) => {
|
|
35
36
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'Secret' failed as data isn't a dictionary.`);
|
|
36
37
|
return {
|
|
37
38
|
createdAt: unmarshalDate(data.created_at),
|
|
@@ -54,7 +55,7 @@ const unmarshalSecret = (data) => {
|
|
|
54
55
|
versionCount: data.version_count
|
|
55
56
|
};
|
|
56
57
|
};
|
|
57
|
-
|
|
58
|
+
var unmarshalAccessSecretVersionResponse = (data) => {
|
|
58
59
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'AccessSecretVersionResponse' failed as data isn't a dictionary.`);
|
|
59
60
|
return {
|
|
60
61
|
data: data.data,
|
|
@@ -89,7 +90,7 @@ var unmarshalBrowseSecretsResponseItem = (data) => {
|
|
|
89
90
|
updatedAt: unmarshalDate(data.updated_at)
|
|
90
91
|
};
|
|
91
92
|
};
|
|
92
|
-
|
|
93
|
+
var unmarshalBrowseSecretsResponse = (data) => {
|
|
93
94
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'BrowseSecretsResponse' failed as data isn't a dictionary.`);
|
|
94
95
|
return {
|
|
95
96
|
currentPath: data.current_path,
|
|
@@ -97,41 +98,41 @@ const unmarshalBrowseSecretsResponse = (data) => {
|
|
|
97
98
|
totalCount: data.total_count
|
|
98
99
|
};
|
|
99
100
|
};
|
|
100
|
-
|
|
101
|
+
var unmarshalListSecretTypesResponse = (data) => {
|
|
101
102
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListSecretTypesResponse' failed as data isn't a dictionary.`);
|
|
102
103
|
return {
|
|
103
104
|
totalCount: data.total_count,
|
|
104
105
|
types: data.types
|
|
105
106
|
};
|
|
106
107
|
};
|
|
107
|
-
|
|
108
|
+
var unmarshalListSecretVersionsResponse = (data) => {
|
|
108
109
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListSecretVersionsResponse' failed as data isn't a dictionary.`);
|
|
109
110
|
return {
|
|
110
111
|
totalCount: data.total_count,
|
|
111
112
|
versions: unmarshalArrayOfObject(data.versions, unmarshalSecretVersion)
|
|
112
113
|
};
|
|
113
114
|
};
|
|
114
|
-
|
|
115
|
+
var unmarshalListSecretsResponse = (data) => {
|
|
115
116
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListSecretsResponse' failed as data isn't a dictionary.`);
|
|
116
117
|
return {
|
|
117
118
|
secrets: unmarshalArrayOfObject(data.secrets, unmarshalSecret),
|
|
118
119
|
totalCount: data.total_count
|
|
119
120
|
};
|
|
120
121
|
};
|
|
121
|
-
|
|
122
|
+
var unmarshalListTagsResponse = (data) => {
|
|
122
123
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListTagsResponse' failed as data isn't a dictionary.`);
|
|
123
124
|
return {
|
|
124
125
|
tags: data.tags,
|
|
125
126
|
totalCount: data.total_count
|
|
126
127
|
};
|
|
127
128
|
};
|
|
128
|
-
|
|
129
|
+
var marshalAddSecretOwnerRequest = (request, defaults) => ({ product: request.product });
|
|
129
130
|
var marshalEphemeralPolicy = (request, defaults) => ({
|
|
130
131
|
action: request.action,
|
|
131
132
|
expires_once_accessed: request.expiresOnceAccessed,
|
|
132
133
|
time_to_live: request.timeToLive
|
|
133
134
|
});
|
|
134
|
-
|
|
135
|
+
var marshalCreateSecretRequest = (request, defaults) => ({
|
|
135
136
|
description: request.description,
|
|
136
137
|
ephemeral_policy: request.ephemeralPolicy !== void 0 ? marshalEphemeralPolicy(request.ephemeralPolicy, defaults) : void 0,
|
|
137
138
|
key_id: request.keyId,
|
|
@@ -142,13 +143,13 @@ const marshalCreateSecretRequest = (request, defaults) => ({
|
|
|
142
143
|
tags: request.tags,
|
|
143
144
|
type: request.type
|
|
144
145
|
});
|
|
145
|
-
|
|
146
|
+
var marshalCreateSecretVersionRequest = (request, defaults) => ({
|
|
146
147
|
data: request.data,
|
|
147
148
|
data_crc32: request.dataCrc32,
|
|
148
149
|
description: request.description,
|
|
149
150
|
disable_previous: request.disablePrevious
|
|
150
151
|
});
|
|
151
|
-
|
|
152
|
+
var marshalUpdateSecretRequest = (request, defaults) => ({
|
|
152
153
|
description: request.description,
|
|
153
154
|
ephemeral_policy: request.ephemeralPolicy !== void 0 ? marshalEphemeralPolicy(request.ephemeralPolicy, defaults) : void 0,
|
|
154
155
|
name: request.name,
|
|
@@ -160,8 +161,9 @@ var marshalEphemeralProperties = (request, defaults) => ({
|
|
|
160
161
|
expires_at: request.expiresAt,
|
|
161
162
|
expires_once_accessed: request.expiresOnceAccessed
|
|
162
163
|
});
|
|
163
|
-
|
|
164
|
+
var marshalUpdateSecretVersionRequest = (request, defaults) => ({
|
|
164
165
|
description: request.description,
|
|
165
166
|
ephemeral_properties: request.ephemeralProperties !== void 0 ? marshalEphemeralProperties(request.ephemeralProperties, defaults) : void 0
|
|
166
167
|
});
|
|
168
|
+
//#endregion
|
|
167
169
|
export { marshalAddSecretOwnerRequest, marshalCreateSecretRequest, marshalCreateSecretVersionRequest, marshalUpdateSecretRequest, marshalUpdateSecretVersionRequest, unmarshalAccessSecretVersionResponse, unmarshalBrowseSecretsResponse, unmarshalListSecretTypesResponse, unmarshalListSecretVersionsResponse, unmarshalListSecretsResponse, unmarshalListTagsResponse, unmarshalSecret, unmarshalSecretVersion };
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
export declare const queriesMetadata: {
|
|
2
|
+
readonly namespace: "secret";
|
|
3
|
+
readonly version: "v1beta1";
|
|
4
|
+
readonly folderName: "secretv1beta1";
|
|
5
|
+
readonly services: readonly [{
|
|
6
|
+
readonly apiClass: "API";
|
|
7
|
+
readonly methods: readonly [{
|
|
8
|
+
readonly methodName: "getSecret";
|
|
9
|
+
readonly protoName: "GetSecret";
|
|
10
|
+
readonly paramsType: "GetSecretRequest";
|
|
11
|
+
readonly returnType: "Secret";
|
|
12
|
+
readonly isList: false;
|
|
13
|
+
readonly paginationType: "none";
|
|
14
|
+
readonly isPrivate: false;
|
|
15
|
+
readonly description: "\"";
|
|
16
|
+
}, {
|
|
17
|
+
readonly methodName: "listSecrets";
|
|
18
|
+
readonly protoName: "ListSecrets";
|
|
19
|
+
readonly paramsType: "ListSecretsRequest";
|
|
20
|
+
readonly returnType: "ListSecretsResponse";
|
|
21
|
+
readonly isList: true;
|
|
22
|
+
readonly paginationType: "offset";
|
|
23
|
+
readonly pageParamKey: "page";
|
|
24
|
+
readonly listItemType: "Secret";
|
|
25
|
+
readonly isPrivate: false;
|
|
26
|
+
readonly description: "\"";
|
|
27
|
+
}, {
|
|
28
|
+
readonly methodName: "getSecretVersion";
|
|
29
|
+
readonly protoName: "GetSecretVersion";
|
|
30
|
+
readonly paramsType: "GetSecretVersionRequest";
|
|
31
|
+
readonly returnType: "SecretVersion";
|
|
32
|
+
readonly isList: false;
|
|
33
|
+
readonly paginationType: "none";
|
|
34
|
+
readonly isPrivate: false;
|
|
35
|
+
readonly description: "\"";
|
|
36
|
+
}, {
|
|
37
|
+
readonly methodName: "listSecretVersions";
|
|
38
|
+
readonly protoName: "ListSecretVersions";
|
|
39
|
+
readonly paramsType: "ListSecretVersionsRequest";
|
|
40
|
+
readonly returnType: "ListSecretVersionsResponse";
|
|
41
|
+
readonly isList: true;
|
|
42
|
+
readonly paginationType: "offset";
|
|
43
|
+
readonly pageParamKey: "page";
|
|
44
|
+
readonly listItemType: "SecretVersion";
|
|
45
|
+
readonly isPrivate: false;
|
|
46
|
+
readonly description: "\"";
|
|
47
|
+
}, {
|
|
48
|
+
readonly methodName: "listTags";
|
|
49
|
+
readonly protoName: "ListTags";
|
|
50
|
+
readonly paramsType: "ListTagsRequest";
|
|
51
|
+
readonly returnType: "ListTagsResponse";
|
|
52
|
+
readonly isList: true;
|
|
53
|
+
readonly paginationType: "offset";
|
|
54
|
+
readonly pageParamKey: "page";
|
|
55
|
+
readonly listItemType: "string";
|
|
56
|
+
readonly isPrivate: false;
|
|
57
|
+
readonly description: "\"";
|
|
58
|
+
}, {
|
|
59
|
+
readonly methodName: "listSecretTypes";
|
|
60
|
+
readonly protoName: "ListSecretTypes";
|
|
61
|
+
readonly paramsType: "ListSecretTypesRequest";
|
|
62
|
+
readonly returnType: "ListSecretTypesResponse";
|
|
63
|
+
readonly isList: true;
|
|
64
|
+
readonly paginationType: "offset";
|
|
65
|
+
readonly pageParamKey: "page";
|
|
66
|
+
readonly listItemType: "SecretType";
|
|
67
|
+
readonly isPrivate: false;
|
|
68
|
+
readonly description: "\"";
|
|
69
|
+
}];
|
|
70
|
+
}];
|
|
71
|
+
};
|
|
72
|
+
export type QueriesMetadata = typeof queriesMetadata;
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
//#region src/v1beta1/metadata.gen.ts
|
|
2
|
+
var queriesMetadata = {
|
|
3
|
+
namespace: "secret",
|
|
4
|
+
version: "v1beta1",
|
|
5
|
+
folderName: "secretv1beta1",
|
|
6
|
+
services: [{
|
|
7
|
+
apiClass: "API",
|
|
8
|
+
methods: [
|
|
9
|
+
{
|
|
10
|
+
methodName: "getSecret",
|
|
11
|
+
protoName: "GetSecret",
|
|
12
|
+
paramsType: "GetSecretRequest",
|
|
13
|
+
returnType: "Secret",
|
|
14
|
+
isList: false,
|
|
15
|
+
paginationType: "none",
|
|
16
|
+
isPrivate: false,
|
|
17
|
+
description: "\""
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
methodName: "listSecrets",
|
|
21
|
+
protoName: "ListSecrets",
|
|
22
|
+
paramsType: "ListSecretsRequest",
|
|
23
|
+
returnType: "ListSecretsResponse",
|
|
24
|
+
isList: true,
|
|
25
|
+
paginationType: "offset",
|
|
26
|
+
pageParamKey: "page",
|
|
27
|
+
listItemType: "Secret",
|
|
28
|
+
isPrivate: false,
|
|
29
|
+
description: "\""
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
methodName: "getSecretVersion",
|
|
33
|
+
protoName: "GetSecretVersion",
|
|
34
|
+
paramsType: "GetSecretVersionRequest",
|
|
35
|
+
returnType: "SecretVersion",
|
|
36
|
+
isList: false,
|
|
37
|
+
paginationType: "none",
|
|
38
|
+
isPrivate: false,
|
|
39
|
+
description: "\""
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
methodName: "listSecretVersions",
|
|
43
|
+
protoName: "ListSecretVersions",
|
|
44
|
+
paramsType: "ListSecretVersionsRequest",
|
|
45
|
+
returnType: "ListSecretVersionsResponse",
|
|
46
|
+
isList: true,
|
|
47
|
+
paginationType: "offset",
|
|
48
|
+
pageParamKey: "page",
|
|
49
|
+
listItemType: "SecretVersion",
|
|
50
|
+
isPrivate: false,
|
|
51
|
+
description: "\""
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
methodName: "listTags",
|
|
55
|
+
protoName: "ListTags",
|
|
56
|
+
paramsType: "ListTagsRequest",
|
|
57
|
+
returnType: "ListTagsResponse",
|
|
58
|
+
isList: true,
|
|
59
|
+
paginationType: "offset",
|
|
60
|
+
pageParamKey: "page",
|
|
61
|
+
listItemType: "string",
|
|
62
|
+
isPrivate: false,
|
|
63
|
+
description: "\""
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
methodName: "listSecretTypes",
|
|
67
|
+
protoName: "ListSecretTypes",
|
|
68
|
+
paramsType: "ListSecretTypesRequest",
|
|
69
|
+
returnType: "ListSecretTypesResponse",
|
|
70
|
+
isList: true,
|
|
71
|
+
paginationType: "offset",
|
|
72
|
+
pageParamKey: "page",
|
|
73
|
+
listItemType: "SecretType",
|
|
74
|
+
isPrivate: false,
|
|
75
|
+
description: "\""
|
|
76
|
+
}
|
|
77
|
+
]
|
|
78
|
+
}]
|
|
79
|
+
};
|
|
80
|
+
//#endregion
|
|
81
|
+
export { queriesMetadata };
|
|
File without changes
|
|
@@ -1,4 +1,6 @@
|
|
|
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({ DatabaseCredentials: () => DatabaseCredentials });
|
|
3
|
-
|
|
4
|
-
|
|
4
|
+
var DatabaseCredentials = { port: { pattern: /^[0-9]+$/ } };
|
|
5
|
+
//#endregion
|
|
6
|
+
export { DatabaseCredentials, validation_rules_gen_exports };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@scaleway/sdk-secret",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.4.0",
|
|
4
4
|
"description": "Scaleway SDK secret",
|
|
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",
|