@wix/secrets 1.0.18 → 1.0.20
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/build/cjs/context.d.ts +1 -1
- package/build/cjs/context.js +1 -1
- package/build/cjs/context.js.map +1 -1
- package/build/cjs/index.d.ts +1 -1
- package/build/cjs/index.js +1 -1
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/meta.d.ts +1 -1
- package/build/cjs/meta.js +1 -1
- package/build/cjs/meta.js.map +1 -1
- package/build/es/context.d.ts +1 -1
- package/build/es/context.js +1 -1
- package/build/es/context.js.map +1 -1
- package/build/es/index.d.ts +1 -1
- package/build/es/index.js +1 -1
- package/build/es/index.js.map +1 -1
- package/build/es/meta.d.ts +1 -1
- package/build/es/meta.js +1 -1
- package/build/es/meta.js.map +1 -1
- package/package.json +11 -9
- package/build/cjs/index.typings.d.ts +0 -1
- package/build/cjs/index.typings.js +0 -28
- package/build/cjs/index.typings.js.map +0 -1
- package/build/cjs/src/velo-secrets-vault-v1-secret.context.d.ts +0 -7
- package/build/cjs/src/velo-secrets-vault-v1-secret.context.js +0 -60
- package/build/cjs/src/velo-secrets-vault-v1-secret.context.js.map +0 -1
- package/build/cjs/src/velo-secrets-vault-v1-secret.http.d.ts +0 -54
- package/build/cjs/src/velo-secrets-vault-v1-secret.http.js +0 -202
- package/build/cjs/src/velo-secrets-vault-v1-secret.http.js.map +0 -1
- package/build/cjs/src/velo-secrets-vault-v1-secret.meta.d.ts +0 -23
- package/build/cjs/src/velo-secrets-vault-v1-secret.meta.js +0 -123
- package/build/cjs/src/velo-secrets-vault-v1-secret.meta.js.map +0 -1
- package/build/cjs/src/velo-secrets-vault-v1-secret.public.d.ts +0 -12
- package/build/cjs/src/velo-secrets-vault-v1-secret.public.js +0 -40
- package/build/cjs/src/velo-secrets-vault-v1-secret.public.js.map +0 -1
- package/build/cjs/src/velo-secrets-vault-v1-secret.types.d.ts +0 -135
- package/build/cjs/src/velo-secrets-vault-v1-secret.types.js +0 -3
- package/build/cjs/src/velo-secrets-vault-v1-secret.types.js.map +0 -1
- package/build/cjs/src/velo-secrets-vault-v1-secret.universal.d.ts +0 -250
- package/build/cjs/src/velo-secrets-vault-v1-secret.universal.js +0 -364
- package/build/cjs/src/velo-secrets-vault-v1-secret.universal.js.map +0 -1
- package/build/es/index.typings.d.ts +0 -1
- package/build/es/index.typings.js +0 -2
- package/build/es/index.typings.js.map +0 -1
- package/build/es/src/velo-secrets-vault-v1-secret.context.d.ts +0 -7
- package/build/es/src/velo-secrets-vault-v1-secret.context.js +0 -52
- package/build/es/src/velo-secrets-vault-v1-secret.context.js.map +0 -1
- package/build/es/src/velo-secrets-vault-v1-secret.http.d.ts +0 -54
- package/build/es/src/velo-secrets-vault-v1-secret.http.js +0 -194
- package/build/es/src/velo-secrets-vault-v1-secret.http.js.map +0 -1
- package/build/es/src/velo-secrets-vault-v1-secret.meta.d.ts +0 -23
- package/build/es/src/velo-secrets-vault-v1-secret.meta.js +0 -92
- package/build/es/src/velo-secrets-vault-v1-secret.meta.js.map +0 -1
- package/build/es/src/velo-secrets-vault-v1-secret.public.d.ts +0 -12
- package/build/es/src/velo-secrets-vault-v1-secret.public.js +0 -29
- package/build/es/src/velo-secrets-vault-v1-secret.public.js.map +0 -1
- package/build/es/src/velo-secrets-vault-v1-secret.types.d.ts +0 -135
- package/build/es/src/velo-secrets-vault-v1-secret.types.js +0 -2
- package/build/es/src/velo-secrets-vault-v1-secret.types.js.map +0 -1
- package/build/es/src/velo-secrets-vault-v1-secret.universal.d.ts +0 -250
- package/build/es/src/velo-secrets-vault-v1-secret.universal.js +0 -333
- package/build/es/src/velo-secrets-vault-v1-secret.universal.js.map +0 -1
|
@@ -1,250 +0,0 @@
|
|
|
1
|
-
import { EventDefinition } from '@wix/sdk-types';
|
|
2
|
-
export interface Secret {
|
|
3
|
-
/**
|
|
4
|
-
* The secret's unique ID.
|
|
5
|
-
* @readonly
|
|
6
|
-
*/
|
|
7
|
-
_id?: string | null;
|
|
8
|
-
/**
|
|
9
|
-
* A unique, meaningful name used for retrieving the secret at runtime with the `getSecretValue()` function. You can use alphanumeric characters and the following special characters: `_+=-@#$`. Spaces are not supported.
|
|
10
|
-
*
|
|
11
|
-
*/
|
|
12
|
-
name?: string | null;
|
|
13
|
-
/** An optional text describing the secret's purpose or any other notes about it. */
|
|
14
|
-
description?: string | null;
|
|
15
|
-
/** The confidential value to protect, such as an API key. */
|
|
16
|
-
value?: string | null;
|
|
17
|
-
/**
|
|
18
|
-
* The date and time the secreted was created.
|
|
19
|
-
* @readonly
|
|
20
|
-
*/
|
|
21
|
-
_createdDate?: Date;
|
|
22
|
-
/**
|
|
23
|
-
* The date and time the secret was last updated.
|
|
24
|
-
* @readonly
|
|
25
|
-
*/
|
|
26
|
-
_updatedDate?: Date;
|
|
27
|
-
}
|
|
28
|
-
export interface GetSecretValueRequest {
|
|
29
|
-
/** The name of the secret to get the value of. */
|
|
30
|
-
name: string;
|
|
31
|
-
}
|
|
32
|
-
export interface GetSecretValueResponse {
|
|
33
|
-
/**
|
|
34
|
-
* The plaintext, unencrypted value of the secret.
|
|
35
|
-
*
|
|
36
|
-
*/
|
|
37
|
-
value?: string;
|
|
38
|
-
}
|
|
39
|
-
export interface ListSecretInfoRequest {
|
|
40
|
-
}
|
|
41
|
-
export interface ListSecretInfoResponse {
|
|
42
|
-
/** Object containing information for each secret. */
|
|
43
|
-
secrets?: Secret[];
|
|
44
|
-
}
|
|
45
|
-
export interface CreateSecretRequest {
|
|
46
|
-
/** The object including the fields of a new secret. */
|
|
47
|
-
secret: Secret;
|
|
48
|
-
}
|
|
49
|
-
export interface CreateSecretResponse {
|
|
50
|
-
/**
|
|
51
|
-
* The globally-unique ID assigned to the secret.
|
|
52
|
-
*
|
|
53
|
-
*/
|
|
54
|
-
_id?: string;
|
|
55
|
-
}
|
|
56
|
-
export interface DeleteSecretRequest {
|
|
57
|
-
/**
|
|
58
|
-
* The unique ID of the secret to be deleted.
|
|
59
|
-
*
|
|
60
|
-
*/
|
|
61
|
-
_id: string;
|
|
62
|
-
}
|
|
63
|
-
export interface DeleteSecretResponse {
|
|
64
|
-
}
|
|
65
|
-
export interface UpdateSecretRequest {
|
|
66
|
-
/** The unique ID of the secret to be updated. */
|
|
67
|
-
_id: string;
|
|
68
|
-
/** The secret fields to update. */
|
|
69
|
-
secret: Secret;
|
|
70
|
-
}
|
|
71
|
-
export interface UpdateSecretResponse {
|
|
72
|
-
}
|
|
73
|
-
export interface DomainEvent<T = string> extends DomainEventBodyOneOf<T> {
|
|
74
|
-
createdEvent?: EntityCreatedEvent<T>;
|
|
75
|
-
updatedEvent?: EntityUpdatedEvent<T>;
|
|
76
|
-
deletedEvent?: EntityDeletedEvent<T>;
|
|
77
|
-
actionEvent?: ActionEvent<T>;
|
|
78
|
-
/**
|
|
79
|
-
* Unique event ID.
|
|
80
|
-
* Allows clients to ignore duplicate webhooks.
|
|
81
|
-
*/
|
|
82
|
-
_id?: string;
|
|
83
|
-
/**
|
|
84
|
-
* Assumes actions are also always typed to an entity_type
|
|
85
|
-
* Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction
|
|
86
|
-
*/
|
|
87
|
-
entityFqdn?: string;
|
|
88
|
-
/**
|
|
89
|
-
* This is top level to ease client code dispatching of messages (switch on entity_fqdn+slug)
|
|
90
|
-
* This is although the created/updated/deleted notion is duplication of the oneof types
|
|
91
|
-
* Example: created/updated/deleted/started/completed/email_opened
|
|
92
|
-
*/
|
|
93
|
-
slug?: string;
|
|
94
|
-
/** ID of the entity associated with the event. */
|
|
95
|
-
entityId?: string;
|
|
96
|
-
/** Event timestamp. */
|
|
97
|
-
eventTime?: Date;
|
|
98
|
-
/**
|
|
99
|
-
* Whether the event was triggered as a result of a privacy regulation application
|
|
100
|
-
* (for example, GDPR).
|
|
101
|
-
*/
|
|
102
|
-
triggeredByAnonymizeRequest?: boolean | null;
|
|
103
|
-
/** If present, indicates the action that triggered the event. */
|
|
104
|
-
originatedFrom?: string | null;
|
|
105
|
-
/**
|
|
106
|
-
* A sequence number defining the order of updates to the underlying entity.
|
|
107
|
-
* For example, given that some entity was updated at 16:00 and than again at 16:01,
|
|
108
|
-
* it is guaranteed that the sequence number of the second update is strictly higher than the first.
|
|
109
|
-
* As the consumer, you can use this value to ensure that you handle messages in the correct order.
|
|
110
|
-
* To do so, you will need to persist this number on your end, and compare the sequence number from the
|
|
111
|
-
* message against the one you have stored. Given that the stored number is higher, you should ignore the message.
|
|
112
|
-
*/
|
|
113
|
-
entityEventSequence?: string | null;
|
|
114
|
-
}
|
|
115
|
-
export interface DomainCreatedEvent<T> extends Omit<DomainEvent<T>, 'deletedEvent' | 'updatedEvent' | 'actionEvent'> {
|
|
116
|
-
}
|
|
117
|
-
export interface DomainDeletedEvent<T> extends Omit<DomainEvent<T>, 'createdEvent' | 'updatedEvent' | 'actionEvent'> {
|
|
118
|
-
}
|
|
119
|
-
export interface DomainUpdatedEvent<T> extends Omit<DomainEvent<T>, 'createdEvent' | 'deletedEvent' | 'actionEvent'> {
|
|
120
|
-
}
|
|
121
|
-
export interface DomainActionEvent<T> extends Omit<DomainEvent<T>, 'createdEvent' | 'deletedEvent' | 'updatedEvent'> {
|
|
122
|
-
}
|
|
123
|
-
/** @oneof */
|
|
124
|
-
export interface DomainEventBodyOneOf<T> {
|
|
125
|
-
createdEvent?: EntityCreatedEvent<T>;
|
|
126
|
-
updatedEvent?: EntityUpdatedEvent<T>;
|
|
127
|
-
deletedEvent?: EntityDeletedEvent<T>;
|
|
128
|
-
actionEvent?: ActionEvent<T>;
|
|
129
|
-
}
|
|
130
|
-
export interface EntityCreatedEvent<T> {
|
|
131
|
-
entity?: T;
|
|
132
|
-
}
|
|
133
|
-
export interface EntityUpdatedEvent<T> {
|
|
134
|
-
/**
|
|
135
|
-
* Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
|
|
136
|
-
* This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
|
|
137
|
-
* We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
|
|
138
|
-
*/
|
|
139
|
-
currentEntity?: T;
|
|
140
|
-
}
|
|
141
|
-
export interface EntityDeletedEvent<T> {
|
|
142
|
-
/** Entity that was deleted */
|
|
143
|
-
deletedEntity?: T | null;
|
|
144
|
-
}
|
|
145
|
-
export interface ActionEvent<T> {
|
|
146
|
-
body?: T;
|
|
147
|
-
}
|
|
148
|
-
export interface GetSecretValueResponseNonNullableFields {
|
|
149
|
-
value: string;
|
|
150
|
-
}
|
|
151
|
-
export interface ListSecretInfoResponseNonNullableFields {
|
|
152
|
-
secrets: Secret[];
|
|
153
|
-
}
|
|
154
|
-
export interface CreateSecretResponseNonNullableFields {
|
|
155
|
-
_id: string;
|
|
156
|
-
}
|
|
157
|
-
export declare const onSecretCreated: EventDefinition<DomainCreatedEvent<Secret>, "wix.velo.secrets_vault.v1.secret_created">;
|
|
158
|
-
export declare const onSecretDeleted: EventDefinition<DomainDeletedEvent<Secret>, "wix.velo.secrets_vault.v1.secret_deleted">;
|
|
159
|
-
export declare const onSecretUpdated: EventDefinition<DomainUpdatedEvent<Secret>, "wix.velo.secrets_vault.v1.secret_updated">;
|
|
160
|
-
/**
|
|
161
|
-
* Retrieves the secret value specified by the secret name.
|
|
162
|
-
*
|
|
163
|
-
* The `getSecretValue()` function returns a Promise that resolves to the value of the secret with the specified given name.
|
|
164
|
-
*
|
|
165
|
-
* >**Note:**
|
|
166
|
-
* > Only use a secret's value in the backend code. Returning the secret value in the frontend is a security risk.
|
|
167
|
-
* @public
|
|
168
|
-
* @requiredField name
|
|
169
|
-
* @param name - The name of the secret to get the value of.
|
|
170
|
-
* @permissionScope Manage Secrets
|
|
171
|
-
* @permissionScopeId SCOPE.VELO.MANAGE_SECRETS
|
|
172
|
-
* @applicableIdentity APP
|
|
173
|
-
* @returns Fulfilled - The value of the secret. Rejected - Error message.
|
|
174
|
-
*/
|
|
175
|
-
export declare function getSecretValue(name: string): Promise<GetSecretValueResponse & GetSecretValueResponseNonNullableFields>;
|
|
176
|
-
/**
|
|
177
|
-
* Retrieves a list of objects containing information about all secrets.
|
|
178
|
-
*
|
|
179
|
-
* The `listSecretInfo()` function returns a Promise that resolves to a list containing information about all secrets stored on your site.
|
|
180
|
-
*
|
|
181
|
-
* > **Note:**
|
|
182
|
-
* > - The secret's value does not get returned for security reasons. To retrieve a secret's value, use the [`getSecretValue()`](#getSecretValue) function.
|
|
183
|
-
* @public
|
|
184
|
-
* @permissionScope Manage Secrets
|
|
185
|
-
* @permissionScopeId SCOPE.VELO.MANAGE_SECRETS
|
|
186
|
-
* @applicableIdentity APP
|
|
187
|
-
* @returns Fulfilled - A list of objects containing information about your site's secrets. Rejected - Error message.
|
|
188
|
-
*/
|
|
189
|
-
export declare function listSecretInfo(): Promise<ListSecretInfoResponse & ListSecretInfoResponseNonNullableFields>;
|
|
190
|
-
/**
|
|
191
|
-
* Creates a new secret.
|
|
192
|
-
*
|
|
193
|
-
* The `createSecret()` function returns a Promise that resolves secret ID when the secret is created.
|
|
194
|
-
*
|
|
195
|
-
* >**Notes:**
|
|
196
|
-
* > - The secret's name cannot start with `'wix'` or be identical to an existing secret's name.
|
|
197
|
-
* > - Don't leave private keys in your code. Leaving them in your code is a security risk. Make sure to delete the keys from the code after running `createSecret()`.
|
|
198
|
-
* @public
|
|
199
|
-
* @requiredField secret
|
|
200
|
-
* @requiredField secret.name
|
|
201
|
-
* @requiredField secret.value
|
|
202
|
-
* @param secret - Fields of a new secret.
|
|
203
|
-
* @permissionScope Manage Secrets
|
|
204
|
-
* @permissionScopeId SCOPE.VELO.MANAGE_SECRETS
|
|
205
|
-
* @applicableIdentity APP
|
|
206
|
-
* @returns Fulfilled - The ID of the created secret.
|
|
207
|
-
* Rejected - Error message.
|
|
208
|
-
*/
|
|
209
|
-
export declare function createSecret(secret: Secret): Promise<string>;
|
|
210
|
-
/**
|
|
211
|
-
* Deletes an existing secret by ID.
|
|
212
|
-
*
|
|
213
|
-
* The `deleteSecret()` function returns a Promise that resolves when the secret is deleted. You can retrieve the secret `_id` using the [`listSecretInfo()`](#listsecretinfo) function.
|
|
214
|
-
*
|
|
215
|
-
* >**Note:**
|
|
216
|
-
* > Deleting a secret is irreversible and will break all code using the secret.
|
|
217
|
-
*
|
|
218
|
-
* @public
|
|
219
|
-
* @requiredField _id
|
|
220
|
-
* @param _id - The unique ID of the secret to be deleted.
|
|
221
|
-
* @permissionScope Manage Secrets
|
|
222
|
-
* @permissionScopeId SCOPE.VELO.MANAGE_SECRETS
|
|
223
|
-
* @applicableIdentity APP
|
|
224
|
-
* @returns Fulfilled - When the secret is successfully deleted. Rejected - Error message.
|
|
225
|
-
*/
|
|
226
|
-
export declare function deleteSecret(_id: string): Promise<void>;
|
|
227
|
-
/**
|
|
228
|
-
* Updates the specified fields of an existing secret by ID.
|
|
229
|
-
*
|
|
230
|
-
*
|
|
231
|
-
* The `updateSecret()` function returns a Promise that resolves when the secret is successfully updated. You can update one or more fields. Only fields passed in the `secret` object will be updated. All other properties will remain unchanged.
|
|
232
|
-
*
|
|
233
|
-
* You can retrieve the `_id` parameter from the [`listSecretInfo()`](#listsecretinfo) function. The secret `_id` is different from the secret `name` used by the [`getSecretValue()`](#getsecretvalue) function.
|
|
234
|
-
*
|
|
235
|
-
* > **Notes:**
|
|
236
|
-
* > - Changing a secret's name or value will break all code using the secret.
|
|
237
|
-
* > - You can't rename the secret with a name of an existing secret.
|
|
238
|
-
* > - Don't leave private keys in your code! Leaving them in is a security risk. Make sure to delete the keys from the code after running `updateSecret()`.
|
|
239
|
-
* @param _id - The unique ID of the secret to be updated.
|
|
240
|
-
* @param secret - The secret fields to update.
|
|
241
|
-
* @public
|
|
242
|
-
* @requiredField _id
|
|
243
|
-
* @requiredField secret
|
|
244
|
-
* @permissionScope Manage Secrets
|
|
245
|
-
* @permissionScopeId SCOPE.VELO.MANAGE_SECRETS
|
|
246
|
-
* @applicableIdentity APP
|
|
247
|
-
* @returns Fulfilled - When the secret is updated.
|
|
248
|
-
* Rejected - Error message.
|
|
249
|
-
*/
|
|
250
|
-
export declare function updateSecret(_id: string, secret: Secret): Promise<void>;
|
|
@@ -1,333 +0,0 @@
|
|
|
1
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
2
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
3
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
4
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
5
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
6
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
7
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
8
|
-
});
|
|
9
|
-
};
|
|
10
|
-
import { serializer } from '@wix/metro-runtime/velo';
|
|
11
|
-
import { transformError as sdkTransformError } from '@wix/sdk-runtime/transform-error';
|
|
12
|
-
import { EventDefinition } from '@wix/sdk-types';
|
|
13
|
-
import * as ambassadorWixVeloSecretsVaultV1Secret from './velo-secrets-vault-v1-secret.http';
|
|
14
|
-
const _toVeloEntity = '$';
|
|
15
|
-
const _fromVeloEntity = '$';
|
|
16
|
-
const _createSecretRequest = {};
|
|
17
|
-
const _createSecretResponse = {};
|
|
18
|
-
const _deleteSecretRequest = {};
|
|
19
|
-
const _deleteSecretResponse = {};
|
|
20
|
-
const _getSecretValueRequest = {};
|
|
21
|
-
const _getSecretValueResponse = {};
|
|
22
|
-
const _listSecretInfoRequest = {};
|
|
23
|
-
const _listSecretInfoResponse = {};
|
|
24
|
-
const _updateSecretRequest = {};
|
|
25
|
-
const _updateSecretResponse = {};
|
|
26
|
-
export const onSecretCreated = EventDefinition('wix.velo.secrets_vault.v1.secret_created')();
|
|
27
|
-
export const onSecretDeleted = EventDefinition('wix.velo.secrets_vault.v1.secret_deleted')();
|
|
28
|
-
export const onSecretUpdated = EventDefinition('wix.velo.secrets_vault.v1.secret_updated')();
|
|
29
|
-
/**
|
|
30
|
-
* Retrieves the secret value specified by the secret name.
|
|
31
|
-
*
|
|
32
|
-
* The `getSecretValue()` function returns a Promise that resolves to the value of the secret with the specified given name.
|
|
33
|
-
*
|
|
34
|
-
* >**Note:**
|
|
35
|
-
* > Only use a secret's value in the backend code. Returning the secret value in the frontend is a security risk.
|
|
36
|
-
* @public
|
|
37
|
-
* @requiredField name
|
|
38
|
-
* @param name - The name of the secret to get the value of.
|
|
39
|
-
* @permissionScope Manage Secrets
|
|
40
|
-
* @permissionScopeId SCOPE.VELO.MANAGE_SECRETS
|
|
41
|
-
* @applicableIdentity APP
|
|
42
|
-
* @returns Fulfilled - The value of the secret. Rejected - Error message.
|
|
43
|
-
*/
|
|
44
|
-
export function getSecretValue(name) {
|
|
45
|
-
var _a, _b, _c;
|
|
46
|
-
return __awaiter(this, arguments, void 0, function* () {
|
|
47
|
-
const requestTransformation = { name: '$[0]' };
|
|
48
|
-
const responseTransformation = '$';
|
|
49
|
-
// @ts-ignore
|
|
50
|
-
const { httpClient, sideEffects } = arguments[1];
|
|
51
|
-
const { toAmbassadorRequest } = serializer({
|
|
52
|
-
rootSchema: _getSecretValueRequest,
|
|
53
|
-
depSchemas: {},
|
|
54
|
-
fqdnTransformation: {
|
|
55
|
-
paths: [],
|
|
56
|
-
transformation: _fromVeloEntity,
|
|
57
|
-
},
|
|
58
|
-
customTransformation: requestTransformation,
|
|
59
|
-
});
|
|
60
|
-
const { fromJSON } = serializer({
|
|
61
|
-
rootSchema: _getSecretValueResponse,
|
|
62
|
-
depSchemas: {},
|
|
63
|
-
fqdnTransformation: {
|
|
64
|
-
paths: [],
|
|
65
|
-
transformation: _toVeloEntity,
|
|
66
|
-
},
|
|
67
|
-
customTransformation: responseTransformation,
|
|
68
|
-
});
|
|
69
|
-
const payload = toAmbassadorRequest([name]);
|
|
70
|
-
const reqOpts = ambassadorWixVeloSecretsVaultV1Secret.getSecretValue(payload);
|
|
71
|
-
(_a = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSiteCall) === null || _a === void 0 ? void 0 : _a.call(sideEffects);
|
|
72
|
-
try {
|
|
73
|
-
const result = yield httpClient.request(reqOpts);
|
|
74
|
-
(_b = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSuccess) === null || _b === void 0 ? void 0 : _b.call(sideEffects, result);
|
|
75
|
-
return fromJSON(result.data);
|
|
76
|
-
}
|
|
77
|
-
catch (err) {
|
|
78
|
-
const transformedError = sdkTransformError(err, {
|
|
79
|
-
spreadPathsToArguments: {},
|
|
80
|
-
explicitPathsToArguments: { name: '$[0]' },
|
|
81
|
-
singleArgumentUnchanged: false,
|
|
82
|
-
}, ['name']);
|
|
83
|
-
(_c = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onError) === null || _c === void 0 ? void 0 : _c.call(sideEffects, err);
|
|
84
|
-
throw transformedError;
|
|
85
|
-
}
|
|
86
|
-
});
|
|
87
|
-
}
|
|
88
|
-
/**
|
|
89
|
-
* Retrieves a list of objects containing information about all secrets.
|
|
90
|
-
*
|
|
91
|
-
* The `listSecretInfo()` function returns a Promise that resolves to a list containing information about all secrets stored on your site.
|
|
92
|
-
*
|
|
93
|
-
* > **Note:**
|
|
94
|
-
* > - The secret's value does not get returned for security reasons. To retrieve a secret's value, use the [`getSecretValue()`](#getSecretValue) function.
|
|
95
|
-
* @public
|
|
96
|
-
* @permissionScope Manage Secrets
|
|
97
|
-
* @permissionScopeId SCOPE.VELO.MANAGE_SECRETS
|
|
98
|
-
* @applicableIdentity APP
|
|
99
|
-
* @returns Fulfilled - A list of objects containing information about your site's secrets. Rejected - Error message.
|
|
100
|
-
*/
|
|
101
|
-
export function listSecretInfo() {
|
|
102
|
-
var _a, _b, _c;
|
|
103
|
-
return __awaiter(this, arguments, void 0, function* () {
|
|
104
|
-
const requestTransformation = {};
|
|
105
|
-
const responseTransformation = '$';
|
|
106
|
-
// @ts-ignore
|
|
107
|
-
const { httpClient, sideEffects } = arguments[0];
|
|
108
|
-
const { toAmbassadorRequest } = serializer({
|
|
109
|
-
rootSchema: _listSecretInfoRequest,
|
|
110
|
-
depSchemas: {},
|
|
111
|
-
fqdnTransformation: {
|
|
112
|
-
paths: [],
|
|
113
|
-
transformation: _fromVeloEntity,
|
|
114
|
-
},
|
|
115
|
-
customTransformation: requestTransformation,
|
|
116
|
-
});
|
|
117
|
-
const { fromJSON } = serializer({
|
|
118
|
-
rootSchema: _listSecretInfoResponse,
|
|
119
|
-
depSchemas: {},
|
|
120
|
-
fqdnTransformation: {
|
|
121
|
-
paths: [...['Array#secrets']],
|
|
122
|
-
transformation: _toVeloEntity,
|
|
123
|
-
},
|
|
124
|
-
customTransformation: responseTransformation,
|
|
125
|
-
});
|
|
126
|
-
const payload = toAmbassadorRequest([]);
|
|
127
|
-
const reqOpts = ambassadorWixVeloSecretsVaultV1Secret.listSecretInfo(payload);
|
|
128
|
-
(_a = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSiteCall) === null || _a === void 0 ? void 0 : _a.call(sideEffects);
|
|
129
|
-
try {
|
|
130
|
-
const result = yield httpClient.request(reqOpts);
|
|
131
|
-
(_b = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSuccess) === null || _b === void 0 ? void 0 : _b.call(sideEffects, result);
|
|
132
|
-
return fromJSON(result.data);
|
|
133
|
-
}
|
|
134
|
-
catch (err) {
|
|
135
|
-
const transformedError = sdkTransformError(err, {
|
|
136
|
-
spreadPathsToArguments: {},
|
|
137
|
-
explicitPathsToArguments: {},
|
|
138
|
-
singleArgumentUnchanged: false,
|
|
139
|
-
}, []);
|
|
140
|
-
(_c = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onError) === null || _c === void 0 ? void 0 : _c.call(sideEffects, err);
|
|
141
|
-
throw transformedError;
|
|
142
|
-
}
|
|
143
|
-
});
|
|
144
|
-
}
|
|
145
|
-
/**
|
|
146
|
-
* Creates a new secret.
|
|
147
|
-
*
|
|
148
|
-
* The `createSecret()` function returns a Promise that resolves secret ID when the secret is created.
|
|
149
|
-
*
|
|
150
|
-
* >**Notes:**
|
|
151
|
-
* > - The secret's name cannot start with `'wix'` or be identical to an existing secret's name.
|
|
152
|
-
* > - Don't leave private keys in your code. Leaving them in your code is a security risk. Make sure to delete the keys from the code after running `createSecret()`.
|
|
153
|
-
* @public
|
|
154
|
-
* @requiredField secret
|
|
155
|
-
* @requiredField secret.name
|
|
156
|
-
* @requiredField secret.value
|
|
157
|
-
* @param secret - Fields of a new secret.
|
|
158
|
-
* @permissionScope Manage Secrets
|
|
159
|
-
* @permissionScopeId SCOPE.VELO.MANAGE_SECRETS
|
|
160
|
-
* @applicableIdentity APP
|
|
161
|
-
* @returns Fulfilled - The ID of the created secret.
|
|
162
|
-
* Rejected - Error message.
|
|
163
|
-
*/
|
|
164
|
-
export function createSecret(secret) {
|
|
165
|
-
var _a, _b, _c;
|
|
166
|
-
return __awaiter(this, arguments, void 0, function* () {
|
|
167
|
-
const requestTransformation = { secret: '$[0]' };
|
|
168
|
-
const responseTransformation = '$._id';
|
|
169
|
-
// @ts-ignore
|
|
170
|
-
const { httpClient, sideEffects } = arguments[1];
|
|
171
|
-
const { toAmbassadorRequest } = serializer({
|
|
172
|
-
rootSchema: _createSecretRequest,
|
|
173
|
-
depSchemas: {},
|
|
174
|
-
fqdnTransformation: {
|
|
175
|
-
paths: [...['secret']],
|
|
176
|
-
transformation: _fromVeloEntity,
|
|
177
|
-
},
|
|
178
|
-
customTransformation: requestTransformation,
|
|
179
|
-
});
|
|
180
|
-
const { fromJSON } = serializer({
|
|
181
|
-
rootSchema: _createSecretResponse,
|
|
182
|
-
depSchemas: {},
|
|
183
|
-
fqdnTransformation: {
|
|
184
|
-
paths: [],
|
|
185
|
-
transformation: _toVeloEntity,
|
|
186
|
-
},
|
|
187
|
-
customTransformation: responseTransformation,
|
|
188
|
-
});
|
|
189
|
-
const payload = toAmbassadorRequest([secret]);
|
|
190
|
-
const reqOpts = ambassadorWixVeloSecretsVaultV1Secret.createSecret(payload);
|
|
191
|
-
(_a = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSiteCall) === null || _a === void 0 ? void 0 : _a.call(sideEffects);
|
|
192
|
-
try {
|
|
193
|
-
const result = yield httpClient.request(reqOpts);
|
|
194
|
-
(_b = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSuccess) === null || _b === void 0 ? void 0 : _b.call(sideEffects, result);
|
|
195
|
-
return fromJSON(result.data);
|
|
196
|
-
}
|
|
197
|
-
catch (err) {
|
|
198
|
-
const transformedError = sdkTransformError(err, {
|
|
199
|
-
spreadPathsToArguments: {},
|
|
200
|
-
explicitPathsToArguments: { secret: '$[0]' },
|
|
201
|
-
singleArgumentUnchanged: false,
|
|
202
|
-
}, ['secret']);
|
|
203
|
-
(_c = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onError) === null || _c === void 0 ? void 0 : _c.call(sideEffects, err);
|
|
204
|
-
throw transformedError;
|
|
205
|
-
}
|
|
206
|
-
});
|
|
207
|
-
}
|
|
208
|
-
/**
|
|
209
|
-
* Deletes an existing secret by ID.
|
|
210
|
-
*
|
|
211
|
-
* The `deleteSecret()` function returns a Promise that resolves when the secret is deleted. You can retrieve the secret `_id` using the [`listSecretInfo()`](#listsecretinfo) function.
|
|
212
|
-
*
|
|
213
|
-
* >**Note:**
|
|
214
|
-
* > Deleting a secret is irreversible and will break all code using the secret.
|
|
215
|
-
*
|
|
216
|
-
* @public
|
|
217
|
-
* @requiredField _id
|
|
218
|
-
* @param _id - The unique ID of the secret to be deleted.
|
|
219
|
-
* @permissionScope Manage Secrets
|
|
220
|
-
* @permissionScopeId SCOPE.VELO.MANAGE_SECRETS
|
|
221
|
-
* @applicableIdentity APP
|
|
222
|
-
* @returns Fulfilled - When the secret is successfully deleted. Rejected - Error message.
|
|
223
|
-
*/
|
|
224
|
-
export function deleteSecret(_id) {
|
|
225
|
-
var _a, _b, _c;
|
|
226
|
-
return __awaiter(this, arguments, void 0, function* () {
|
|
227
|
-
const requestTransformation = { id: '$[0]' };
|
|
228
|
-
const responseTransformation = '$';
|
|
229
|
-
// @ts-ignore
|
|
230
|
-
const { httpClient, sideEffects } = arguments[1];
|
|
231
|
-
const { toAmbassadorRequest } = serializer({
|
|
232
|
-
rootSchema: _deleteSecretRequest,
|
|
233
|
-
depSchemas: {},
|
|
234
|
-
fqdnTransformation: {
|
|
235
|
-
paths: [],
|
|
236
|
-
transformation: _fromVeloEntity,
|
|
237
|
-
},
|
|
238
|
-
customTransformation: requestTransformation,
|
|
239
|
-
});
|
|
240
|
-
const { fromJSON } = serializer({
|
|
241
|
-
rootSchema: _deleteSecretResponse,
|
|
242
|
-
depSchemas: {},
|
|
243
|
-
fqdnTransformation: {
|
|
244
|
-
paths: [],
|
|
245
|
-
transformation: _toVeloEntity,
|
|
246
|
-
},
|
|
247
|
-
customTransformation: responseTransformation,
|
|
248
|
-
});
|
|
249
|
-
const payload = toAmbassadorRequest([_id]);
|
|
250
|
-
const reqOpts = ambassadorWixVeloSecretsVaultV1Secret.deleteSecret(payload);
|
|
251
|
-
(_a = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSiteCall) === null || _a === void 0 ? void 0 : _a.call(sideEffects);
|
|
252
|
-
try {
|
|
253
|
-
const result = yield httpClient.request(reqOpts);
|
|
254
|
-
(_b = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSuccess) === null || _b === void 0 ? void 0 : _b.call(sideEffects, result);
|
|
255
|
-
}
|
|
256
|
-
catch (err) {
|
|
257
|
-
const transformedError = sdkTransformError(err, {
|
|
258
|
-
spreadPathsToArguments: {},
|
|
259
|
-
explicitPathsToArguments: { id: '$[0]' },
|
|
260
|
-
singleArgumentUnchanged: false,
|
|
261
|
-
}, ['_id']);
|
|
262
|
-
(_c = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onError) === null || _c === void 0 ? void 0 : _c.call(sideEffects, err);
|
|
263
|
-
throw transformedError;
|
|
264
|
-
}
|
|
265
|
-
});
|
|
266
|
-
}
|
|
267
|
-
/**
|
|
268
|
-
* Updates the specified fields of an existing secret by ID.
|
|
269
|
-
*
|
|
270
|
-
*
|
|
271
|
-
* The `updateSecret()` function returns a Promise that resolves when the secret is successfully updated. You can update one or more fields. Only fields passed in the `secret` object will be updated. All other properties will remain unchanged.
|
|
272
|
-
*
|
|
273
|
-
* You can retrieve the `_id` parameter from the [`listSecretInfo()`](#listsecretinfo) function. The secret `_id` is different from the secret `name` used by the [`getSecretValue()`](#getsecretvalue) function.
|
|
274
|
-
*
|
|
275
|
-
* > **Notes:**
|
|
276
|
-
* > - Changing a secret's name or value will break all code using the secret.
|
|
277
|
-
* > - You can't rename the secret with a name of an existing secret.
|
|
278
|
-
* > - Don't leave private keys in your code! Leaving them in is a security risk. Make sure to delete the keys from the code after running `updateSecret()`.
|
|
279
|
-
* @param _id - The unique ID of the secret to be updated.
|
|
280
|
-
* @param secret - The secret fields to update.
|
|
281
|
-
* @public
|
|
282
|
-
* @requiredField _id
|
|
283
|
-
* @requiredField secret
|
|
284
|
-
* @permissionScope Manage Secrets
|
|
285
|
-
* @permissionScopeId SCOPE.VELO.MANAGE_SECRETS
|
|
286
|
-
* @applicableIdentity APP
|
|
287
|
-
* @returns Fulfilled - When the secret is updated.
|
|
288
|
-
* Rejected - Error message.
|
|
289
|
-
*/
|
|
290
|
-
export function updateSecret(_id, secret) {
|
|
291
|
-
var _a, _b, _c;
|
|
292
|
-
return __awaiter(this, arguments, void 0, function* () {
|
|
293
|
-
const requestTransformation = { id: '$[0]', secret: '$[1]' };
|
|
294
|
-
const responseTransformation = '$';
|
|
295
|
-
// @ts-ignore
|
|
296
|
-
const { httpClient, sideEffects } = arguments[2];
|
|
297
|
-
const { toAmbassadorRequest } = serializer({
|
|
298
|
-
rootSchema: _updateSecretRequest,
|
|
299
|
-
depSchemas: {},
|
|
300
|
-
fqdnTransformation: {
|
|
301
|
-
paths: [...['secret']],
|
|
302
|
-
transformation: _fromVeloEntity,
|
|
303
|
-
},
|
|
304
|
-
customTransformation: requestTransformation,
|
|
305
|
-
});
|
|
306
|
-
const { fromJSON } = serializer({
|
|
307
|
-
rootSchema: _updateSecretResponse,
|
|
308
|
-
depSchemas: {},
|
|
309
|
-
fqdnTransformation: {
|
|
310
|
-
paths: [],
|
|
311
|
-
transformation: _toVeloEntity,
|
|
312
|
-
},
|
|
313
|
-
customTransformation: responseTransformation,
|
|
314
|
-
});
|
|
315
|
-
const payload = toAmbassadorRequest([_id, secret]);
|
|
316
|
-
const reqOpts = ambassadorWixVeloSecretsVaultV1Secret.partiallyUpdateSecret(payload);
|
|
317
|
-
(_a = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSiteCall) === null || _a === void 0 ? void 0 : _a.call(sideEffects);
|
|
318
|
-
try {
|
|
319
|
-
const result = yield httpClient.request(reqOpts);
|
|
320
|
-
(_b = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSuccess) === null || _b === void 0 ? void 0 : _b.call(sideEffects, result);
|
|
321
|
-
}
|
|
322
|
-
catch (err) {
|
|
323
|
-
const transformedError = sdkTransformError(err, {
|
|
324
|
-
spreadPathsToArguments: {},
|
|
325
|
-
explicitPathsToArguments: { id: '$[0]', secret: '$[1]' },
|
|
326
|
-
singleArgumentUnchanged: false,
|
|
327
|
-
}, ['_id', 'secret']);
|
|
328
|
-
(_c = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onError) === null || _c === void 0 ? void 0 : _c.call(sideEffects, err);
|
|
329
|
-
throw transformedError;
|
|
330
|
-
}
|
|
331
|
-
});
|
|
332
|
-
}
|
|
333
|
-
//# sourceMappingURL=velo-secrets-vault-v1-secret.universal.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"velo-secrets-vault-v1-secret.universal.js","sourceRoot":"","sources":["../../../src/velo-secrets-vault-v1-secret.universal.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO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