oci-vault 2.78.0 → 2.79.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.
- package/lib/client.d.ts +33 -12
- package/lib/client.js +138 -62
- package/lib/client.js.map +1 -1
- package/lib/model/adb-target-system-details.d.ts +30 -0
- package/lib/model/adb-target-system-details.js +54 -0
- package/lib/model/adb-target-system-details.js.map +1 -0
- package/lib/model/create-secret-details.d.ts +2 -1
- package/lib/model/create-secret-details.js +6 -0
- package/lib/model/create-secret-details.js.map +1 -1
- package/lib/model/function-target-system-details.d.ts +30 -0
- package/lib/model/function-target-system-details.js +54 -0
- package/lib/model/function-target-system-details.js.map +1 -0
- package/lib/model/index.d.ts +8 -0
- package/lib/model/index.js +9 -1
- package/lib/model/index.js.map +1 -1
- package/lib/model/rotation-config.d.ts +35 -0
- package/lib/model/rotation-config.js +57 -0
- package/lib/model/rotation-config.js.map +1 -0
- package/lib/model/secret-content-details.js +2 -4
- package/lib/model/secret-content-details.js.map +1 -1
- package/lib/model/secret-rule.js +2 -4
- package/lib/model/secret-rule.js.map +1 -1
- package/lib/model/secret-summary.d.ts +29 -0
- package/lib/model/secret-summary.js +30 -2
- package/lib/model/secret-summary.js.map +1 -1
- package/lib/model/secret-version-summary.d.ts +11 -0
- package/lib/model/secret-version-summary.js.map +1 -1
- package/lib/model/secret.d.ts +28 -0
- package/lib/model/secret.js +18 -0
- package/lib/model/secret.js.map +1 -1
- package/lib/model/target-system-details.d.ts +23 -0
- package/lib/model/target-system-details.js +70 -0
- package/lib/model/target-system-details.js.map +1 -0
- package/lib/model/update-secret-details.d.ts +1 -0
- package/lib/model/update-secret-details.js +6 -0
- package/lib/model/update-secret-details.js.map +1 -1
- package/lib/request/cancel-secret-deletion-request.d.ts +1 -1
- package/lib/request/cancel-secret-rotation-request.d.ts +38 -0
- package/lib/request/cancel-secret-rotation-request.js +15 -0
- package/lib/request/cancel-secret-rotation-request.js.map +1 -0
- package/lib/request/cancel-secret-version-deletion-request.d.ts +1 -1
- package/lib/request/change-secret-compartment-request.d.ts +1 -1
- package/lib/request/create-secret-request.d.ts +1 -1
- package/lib/request/get-secret-request.d.ts +1 -1
- package/lib/request/get-secret-version-request.d.ts +1 -1
- package/lib/request/index.d.ts +4 -0
- package/lib/request/index.js.map +1 -1
- package/lib/request/list-secret-versions-request.d.ts +1 -1
- package/lib/request/list-secrets-request.d.ts +1 -1
- package/lib/request/rotate-secret-request.d.ts +48 -0
- package/lib/request/rotate-secret-request.js +15 -0
- package/lib/request/rotate-secret-request.js.map +1 -0
- package/lib/request/schedule-secret-deletion-request.d.ts +1 -1
- package/lib/request/schedule-secret-version-deletion-request.d.ts +1 -1
- package/lib/request/update-secret-request.d.ts +1 -1
- package/lib/response/cancel-secret-deletion-response.d.ts +1 -2
- package/lib/response/cancel-secret-rotation-response.d.ts +19 -0
- package/lib/response/cancel-secret-rotation-response.js +15 -0
- package/lib/response/cancel-secret-rotation-response.js.map +1 -0
- package/lib/response/cancel-secret-version-deletion-response.d.ts +1 -2
- package/lib/response/change-secret-compartment-response.d.ts +1 -2
- package/lib/response/create-secret-response.d.ts +1 -2
- package/lib/response/get-secret-response.d.ts +1 -2
- package/lib/response/get-secret-version-response.d.ts +1 -2
- package/lib/response/index.d.ts +4 -0
- package/lib/response/list-secret-versions-response.d.ts +1 -2
- package/lib/response/list-secrets-response.d.ts +1 -2
- package/lib/response/rotate-secret-response.d.ts +24 -0
- package/lib/response/rotate-secret-response.js +15 -0
- package/lib/response/rotate-secret-response.js.map +1 -0
- package/lib/response/schedule-secret-deletion-response.d.ts +1 -2
- package/lib/response/schedule-secret-version-deletion-response.d.ts +1 -2
- package/lib/response/update-secret-response.d.ts +1 -2
- package/lib/vaults-waiter.d.ts +11 -1
- package/lib/vaults-waiter.js +16 -0
- package/lib/vaults-waiter.js.map +1 -1
- package/package.json +3 -3
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cancel-secret-rotation-response.js","sourceRoot":"","sources":["../../../../../lib/vault/lib/response/cancel-secret-rotation-response.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;GAWG"}
|
|
@@ -16,8 +16,7 @@ export interface CancelSecretVersionDeletionResponse {
|
|
|
16
16
|
*/
|
|
17
17
|
"etag": string;
|
|
18
18
|
/**
|
|
19
|
-
* Unique Oracle-assigned identifier for the request. If you need to contact Oracle about
|
|
20
|
-
* a particular request, please provide the request ID.
|
|
19
|
+
* Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.
|
|
21
20
|
*
|
|
22
21
|
*/
|
|
23
22
|
"opcRequestId": string;
|
|
@@ -16,8 +16,7 @@ export interface ChangeSecretCompartmentResponse {
|
|
|
16
16
|
*/
|
|
17
17
|
"etag": string;
|
|
18
18
|
/**
|
|
19
|
-
* Unique Oracle-assigned identifier for the request. If you need to contact Oracle about
|
|
20
|
-
* a particular request, please provide the request ID.
|
|
19
|
+
* Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.
|
|
21
20
|
*
|
|
22
21
|
*/
|
|
23
22
|
"opcRequestId": string;
|
|
@@ -17,8 +17,7 @@ export interface CreateSecretResponse {
|
|
|
17
17
|
*/
|
|
18
18
|
"etag": string;
|
|
19
19
|
/**
|
|
20
|
-
* Unique Oracle-assigned identifier for the request. If you need to contact Oracle about
|
|
21
|
-
* a particular request, please provide the request ID.
|
|
20
|
+
* Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.
|
|
22
21
|
*
|
|
23
22
|
*/
|
|
24
23
|
"opcRequestId": string;
|
|
@@ -17,8 +17,7 @@ export interface GetSecretResponse {
|
|
|
17
17
|
*/
|
|
18
18
|
"etag": string;
|
|
19
19
|
/**
|
|
20
|
-
* Unique Oracle-assigned identifier for the request. If you need to contact Oracle about
|
|
21
|
-
* a particular request, please provide the request ID.
|
|
20
|
+
* Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.
|
|
22
21
|
*
|
|
23
22
|
*/
|
|
24
23
|
"opcRequestId": string;
|
|
@@ -17,8 +17,7 @@ export interface GetSecretVersionResponse {
|
|
|
17
17
|
*/
|
|
18
18
|
"etag": string;
|
|
19
19
|
/**
|
|
20
|
-
* Unique Oracle-assigned identifier for the request. If you need to contact Oracle about
|
|
21
|
-
* a particular request, please provide the request ID.
|
|
20
|
+
* Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.
|
|
22
21
|
*
|
|
23
22
|
*/
|
|
24
23
|
"opcRequestId": string;
|
package/lib/response/index.d.ts
CHANGED
|
@@ -12,6 +12,8 @@
|
|
|
12
12
|
*/
|
|
13
13
|
import * as CancelSecretDeletionResponse from "./cancel-secret-deletion-response";
|
|
14
14
|
export import CancelSecretDeletionResponse = CancelSecretDeletionResponse.CancelSecretDeletionResponse;
|
|
15
|
+
import * as CancelSecretRotationResponse from "./cancel-secret-rotation-response";
|
|
16
|
+
export import CancelSecretRotationResponse = CancelSecretRotationResponse.CancelSecretRotationResponse;
|
|
15
17
|
import * as CancelSecretVersionDeletionResponse from "./cancel-secret-version-deletion-response";
|
|
16
18
|
export import CancelSecretVersionDeletionResponse = CancelSecretVersionDeletionResponse.CancelSecretVersionDeletionResponse;
|
|
17
19
|
import * as ChangeSecretCompartmentResponse from "./change-secret-compartment-response";
|
|
@@ -26,6 +28,8 @@ import * as ListSecretVersionsResponse from "./list-secret-versions-response";
|
|
|
26
28
|
export import ListSecretVersionsResponse = ListSecretVersionsResponse.ListSecretVersionsResponse;
|
|
27
29
|
import * as ListSecretsResponse from "./list-secrets-response";
|
|
28
30
|
export import ListSecretsResponse = ListSecretsResponse.ListSecretsResponse;
|
|
31
|
+
import * as RotateSecretResponse from "./rotate-secret-response";
|
|
32
|
+
export import RotateSecretResponse = RotateSecretResponse.RotateSecretResponse;
|
|
29
33
|
import * as ScheduleSecretDeletionResponse from "./schedule-secret-deletion-response";
|
|
30
34
|
export import ScheduleSecretDeletionResponse = ScheduleSecretDeletionResponse.ScheduleSecretDeletionResponse;
|
|
31
35
|
import * as ScheduleSecretVersionDeletionResponse from "./schedule-secret-version-deletion-response";
|
|
@@ -21,8 +21,7 @@ export interface ListSecretVersionsResponse {
|
|
|
21
21
|
*/
|
|
22
22
|
"opcNextPage": string;
|
|
23
23
|
/**
|
|
24
|
-
* Unique Oracle-assigned identifier for the request. If you need to contact Oracle about
|
|
25
|
-
* a particular request, please provide the request ID.
|
|
24
|
+
* Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.
|
|
26
25
|
*
|
|
27
26
|
*/
|
|
28
27
|
"opcRequestId": string;
|
|
@@ -21,8 +21,7 @@ export interface ListSecretsResponse {
|
|
|
21
21
|
*/
|
|
22
22
|
"opcNextPage": string;
|
|
23
23
|
/**
|
|
24
|
-
* Unique Oracle-assigned identifier for the request. If you need to contact Oracle about
|
|
25
|
-
* a particular request, please provide the request ID.
|
|
24
|
+
* Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.
|
|
26
25
|
*
|
|
27
26
|
*/
|
|
28
27
|
"opcRequestId": string;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
*
|
|
3
|
+
*
|
|
4
|
+
* OpenAPI spec version: 20180608
|
|
5
|
+
*
|
|
6
|
+
*
|
|
7
|
+
* NOTE: This class is auto generated by OracleSDKGenerator.
|
|
8
|
+
* Do not edit the class manually.
|
|
9
|
+
*
|
|
10
|
+
* Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved.
|
|
11
|
+
* This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
|
|
12
|
+
*/
|
|
13
|
+
export interface RotateSecretResponse {
|
|
14
|
+
/**
|
|
15
|
+
* Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.
|
|
16
|
+
*
|
|
17
|
+
*/
|
|
18
|
+
"opcRequestId": string;
|
|
19
|
+
/**
|
|
20
|
+
* The OCID of the work request. Use GetWorkRequest with this OCID to track the status of the request.
|
|
21
|
+
*
|
|
22
|
+
*/
|
|
23
|
+
"opcWorkRequestId": string;
|
|
24
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
*
|
|
4
|
+
*
|
|
5
|
+
* OpenAPI spec version: 20180608
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OracleSDKGenerator.
|
|
9
|
+
* Do not edit the class manually.
|
|
10
|
+
*
|
|
11
|
+
* Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved.
|
|
12
|
+
* This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
|
|
13
|
+
*/
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
//# sourceMappingURL=rotate-secret-response.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rotate-secret-response.js","sourceRoot":"","sources":["../../../../../lib/vault/lib/response/rotate-secret-response.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;GAWG"}
|
|
@@ -16,8 +16,7 @@ export interface ScheduleSecretDeletionResponse {
|
|
|
16
16
|
*/
|
|
17
17
|
"etag": string;
|
|
18
18
|
/**
|
|
19
|
-
* Unique Oracle-assigned identifier for the request. If you need to contact Oracle about
|
|
20
|
-
* a particular request, please provide the request ID.
|
|
19
|
+
* Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.
|
|
21
20
|
*
|
|
22
21
|
*/
|
|
23
22
|
"opcRequestId": string;
|
|
@@ -16,8 +16,7 @@ export interface ScheduleSecretVersionDeletionResponse {
|
|
|
16
16
|
*/
|
|
17
17
|
"etag": string;
|
|
18
18
|
/**
|
|
19
|
-
* Unique Oracle-assigned identifier for the request. If you need to contact Oracle about
|
|
20
|
-
* a particular request, please provide the request ID.
|
|
19
|
+
* Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.
|
|
21
20
|
*
|
|
22
21
|
*/
|
|
23
22
|
"opcRequestId": string;
|
|
@@ -17,8 +17,7 @@ export interface UpdateSecretResponse {
|
|
|
17
17
|
*/
|
|
18
18
|
"etag": string;
|
|
19
19
|
/**
|
|
20
|
-
* Unique Oracle-assigned identifier for the request. If you need to contact Oracle about
|
|
21
|
-
* a particular request, please provide the request ID.
|
|
20
|
+
* Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.
|
|
22
21
|
*
|
|
23
22
|
*/
|
|
24
23
|
"opcRequestId": string;
|
package/lib/vaults-waiter.d.ts
CHANGED
|
@@ -14,7 +14,7 @@ import * as serviceRequests from "./request";
|
|
|
14
14
|
import * as serviceResponses from "./response";
|
|
15
15
|
import * as models from "./model";
|
|
16
16
|
import { VaultsClient } from "./client";
|
|
17
|
-
import { WorkRequestClient } from "oci-workrequests";
|
|
17
|
+
import { WorkRequestClient, responses } from "oci-workrequests";
|
|
18
18
|
export declare class VaultsWaiter {
|
|
19
19
|
private client;
|
|
20
20
|
private workRequestClient;
|
|
@@ -28,4 +28,14 @@ export declare class VaultsWaiter {
|
|
|
28
28
|
* @return response returns GetSecretResponse | null (null in case of 404 response)
|
|
29
29
|
*/
|
|
30
30
|
forSecret(request: serviceRequests.GetSecretRequest, ...targetStates: models.Secret.LifecycleState[]): Promise<serviceResponses.GetSecretResponse | null>;
|
|
31
|
+
/**
|
|
32
|
+
* Waits forRotateSecret
|
|
33
|
+
*
|
|
34
|
+
* @param request the request to send
|
|
35
|
+
* @return response returns RotateSecretResponse, GetWorkRequestResponse tuple
|
|
36
|
+
*/
|
|
37
|
+
forRotateSecret(request: serviceRequests.RotateSecretRequest): Promise<{
|
|
38
|
+
response: serviceResponses.RotateSecretResponse;
|
|
39
|
+
workRequestResponse: responses.GetWorkRequestResponse;
|
|
40
|
+
}>;
|
|
31
41
|
}
|
package/lib/vaults-waiter.js
CHANGED
|
@@ -43,6 +43,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
43
43
|
exports.VaultsWaiter = void 0;
|
|
44
44
|
const models = __importStar(require("./model"));
|
|
45
45
|
const oci_common_1 = require("oci-common");
|
|
46
|
+
const oci_workrequests_1 = require("oci-workrequests");
|
|
46
47
|
class VaultsWaiter {
|
|
47
48
|
constructor(client, workRequestClient, config) {
|
|
48
49
|
this.client = client;
|
|
@@ -61,6 +62,21 @@ class VaultsWaiter {
|
|
|
61
62
|
return oci_common_1.genericTerminalConditionWaiter(this.config, () => this.client.getSecret(request), response => targetStates.includes(response.secret.lifecycleState), targetStates.includes(models.Secret.LifecycleState.Deleted));
|
|
62
63
|
});
|
|
63
64
|
}
|
|
65
|
+
/**
|
|
66
|
+
* Waits forRotateSecret
|
|
67
|
+
*
|
|
68
|
+
* @param request the request to send
|
|
69
|
+
* @return response returns RotateSecretResponse, GetWorkRequestResponse tuple
|
|
70
|
+
*/
|
|
71
|
+
forRotateSecret(request) {
|
|
72
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
73
|
+
const rotateSecretResponse = yield this.client.rotateSecret(request);
|
|
74
|
+
if (rotateSecretResponse.opcWorkRequestId === undefined)
|
|
75
|
+
return { response: rotateSecretResponse, workRequestResponse: undefined };
|
|
76
|
+
const getWorkRequestResponse = yield oci_workrequests_1.waitForWorkRequest(this.config, this.workRequestClient, rotateSecretResponse.opcWorkRequestId);
|
|
77
|
+
return { response: rotateSecretResponse, workRequestResponse: getWorkRequestResponse };
|
|
78
|
+
});
|
|
79
|
+
}
|
|
64
80
|
}
|
|
65
81
|
exports.VaultsWaiter = VaultsWaiter;
|
|
66
82
|
//# sourceMappingURL=vaults-waiter.js.map
|
package/lib/vaults-waiter.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vaults-waiter.js","sourceRoot":"","sources":["../../../../lib/vault/lib/vaults-waiter.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;GAWG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIH,gDAAkC;AAElC,2CAAgG;
|
|
1
|
+
{"version":3,"file":"vaults-waiter.js","sourceRoot":"","sources":["../../../../lib/vault/lib/vaults-waiter.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;GAWG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIH,gDAAkC;AAElC,2CAAgG;AAChG,uDAAoF;AAEpF,MAAa,YAAY;IACvB,YACU,MAAoB,EACpB,iBAAoC,EAC3B,MAA4B;QAFrC,WAAM,GAAN,MAAM,CAAc;QACpB,sBAAiB,GAAjB,iBAAiB,CAAmB;QAC3B,WAAM,GAAN,MAAM,CAAsB;IAC5C,CAAC;IAEJ;;;;;;OAMG;IACU,SAAS,CACpB,OAAyC,EACzC,GAAG,YAA4C;;YAE/C,OAAO,2CAA8B,CACnC,IAAI,CAAC,MAAM,EACX,GAAG,EAAE,CAAC,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC,OAAO,CAAC,EACpC,QAAQ,CAAC,EAAE,CAAC,YAAY,CAAC,QAAQ,CAAC,QAAQ,CAAC,MAAM,CAAC,cAAe,CAAC,EAClE,YAAY,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC,cAAc,CAAC,OAAO,CAAC,CAC5D,CAAC;QACJ,CAAC;KAAA;IAED;;;;;OAKG;IACU,eAAe,CAC1B,OAA4C;;YAK5C,MAAM,oBAAoB,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,YAAY,CAAC,OAAO,CAAC,CAAC;YACrE,IAAI,oBAAoB,CAAC,gBAAgB,KAAK,SAAS;gBACrD,OAAO,EAAE,QAAQ,EAAE,oBAAoB,EAAE,mBAAmB,EAAE,SAAgB,EAAE,CAAC;YACnF,MAAM,sBAAsB,GAAG,MAAM,qCAAkB,CACrD,IAAI,CAAC,MAAM,EACX,IAAI,CAAC,iBAAiB,EACtB,oBAAoB,CAAC,gBAAgB,CACtC,CAAC;YACF,OAAO,EAAE,QAAQ,EAAE,oBAAoB,EAAE,mBAAmB,EAAE,sBAAsB,EAAE,CAAC;QACzF,CAAC;KAAA;CACF;AAhDD,oCAgDC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "oci-vault",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.79.1",
|
|
4
4
|
"description": "OCI NodeJS client for Vault Service",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -15,8 +15,8 @@
|
|
|
15
15
|
},
|
|
16
16
|
"license": "(UPL-1.0 OR Apache-2.0)",
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"oci-common": "2.
|
|
19
|
-
"oci-workrequests": "2.
|
|
18
|
+
"oci-common": "2.79.1",
|
|
19
|
+
"oci-workrequests": "2.79.1"
|
|
20
20
|
},
|
|
21
21
|
"publishConfig": {
|
|
22
22
|
"registry": "https://registry.npmjs.org"
|