@wix/secrets 1.0.1 → 1.0.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.
@@ -32,7 +32,7 @@ export declare function createSecret(payload: CreateSecretRequest): RequestOptio
32
32
  /**
33
33
  * Deletes an existing secret by ID.
34
34
  *
35
- * The `deleteSecret()` function returns a Promise that resolves when a secret from the [Secrets Manager](https://support.wix.com/en/article/velo-working-with-the-secrets-manager) is deleted. You can retrieve the `_id` parameter using the [`listSecretInfo`](#listSecretInfo) function.
35
+ * The `deleteSecret()` function returns a Promise that resolves when a secret from the [Secrets Manager](https://support.wix.com/en/article/velo-working-with-the-secrets-manager) is deleted. You can retrieve the `_id` parameter using the [`listSecretInfo()`](#listSecretInfo) function.
36
36
  *
37
37
  * >**Note:**
38
38
  * > Deleting a secret is irreversible and will break all code using the secret.
@@ -147,7 +147,7 @@ exports.createSecret = createSecret;
147
147
  /**
148
148
  * Deletes an existing secret by ID.
149
149
  *
150
- * The `deleteSecret()` function returns a Promise that resolves when a secret from the [Secrets Manager](https://support.wix.com/en/article/velo-working-with-the-secrets-manager) is deleted. You can retrieve the `_id` parameter using the [`listSecretInfo`](#listSecretInfo) function.
150
+ * The `deleteSecret()` function returns a Promise that resolves when a secret from the [Secrets Manager](https://support.wix.com/en/article/velo-working-with-the-secrets-manager) is deleted. You can retrieve the `_id` parameter using the [`listSecretInfo()`](#listSecretInfo) function.
151
151
  *
152
152
  * >**Note:**
153
153
  * > Deleting a secret is irreversible and will break all code using the secret.
@@ -22,11 +22,11 @@ export interface Secret {
22
22
  updatedDate?: Date;
23
23
  }
24
24
  export interface GetSecretValueRequest {
25
- /** The name of the secret to get the value for */
25
+ /** The name of the secret to get the value of. */
26
26
  name: string;
27
27
  }
28
28
  export interface GetSecretValueResponse {
29
- /** The plaintext, unencrypted value of the secret */
29
+ /** The plaintext, unencrypted value of the secret. */
30
30
  value?: string;
31
31
  }
32
32
  export interface ListSecretInfoRequest {
@@ -36,23 +36,23 @@ export interface ListSecretInfoResponse {
36
36
  secrets?: Secret[];
37
37
  }
38
38
  export interface CreateSecretRequest {
39
- /** A set of fields including info and the actual value to protect */
39
+ /** A set of fields including info and the actual value to protect. */
40
40
  secret: Secret;
41
41
  }
42
42
  export interface CreateSecretResponse {
43
- /** The globally-unique id assigned to the secret by the service */
43
+ /** The globally-unique ID assigned to the secret by the service. */
44
44
  id?: string;
45
45
  }
46
46
  export interface DeleteSecretRequest {
47
- /** The unique id of the secret to be deleted */
47
+ /** The unique ID of the secret to be deleted. */
48
48
  id: string;
49
49
  }
50
50
  export interface DeleteSecretResponse {
51
51
  }
52
52
  export interface UpdateSecretRequest {
53
- /** The unique id of the secret to be updated */
53
+ /** The unique ID of the secret to be updated. */
54
54
  id: string;
55
- /** The secret fields with the desired new values */
55
+ /** The secret fields to update. */
56
56
  secret: Secret;
57
57
  }
58
58
  export interface UpdateSecretResponse {
@@ -68,9 +68,9 @@ export interface DeleteSecretRequest {
68
68
  export interface DeleteSecretResponse {
69
69
  }
70
70
  export interface UpdateSecretRequest {
71
- /** The unique id of the secret to be updated */
71
+ /** The unique ID of the secret to be updated. */
72
72
  _id: string;
73
- /** The secret fields with the desired new values */
73
+ /** The secret fields to update. */
74
74
  secret: Secret;
75
75
  }
76
76
  export interface UpdateSecretResponse {
@@ -123,7 +123,7 @@ export declare function createSecret(secret: Secret): Promise<CreateSecretRespon
123
123
  /**
124
124
  * Deletes an existing secret by ID.
125
125
  *
126
- * The `deleteSecret()` function returns a Promise that resolves when a secret from the [Secrets Manager](https://support.wix.com/en/article/velo-working-with-the-secrets-manager) is deleted. You can retrieve the `_id` parameter using the [`listSecretInfo`](#listSecretInfo) function.
126
+ * The `deleteSecret()` function returns a Promise that resolves when a secret from the [Secrets Manager](https://support.wix.com/en/article/velo-working-with-the-secrets-manager) is deleted. You can retrieve the `_id` parameter using the [`listSecretInfo()`](#listSecretInfo) function.
127
127
  *
128
128
  * >**Note:**
129
129
  * > Deleting a secret is irreversible and will break all code using the secret.
@@ -137,8 +137,8 @@ export declare function createSecret(secret: Secret): Promise<CreateSecretRespon
137
137
  export declare function deleteSecret(_id: string): Promise<void>;
138
138
  /**
139
139
  * Updates all the fields of an existing secret at once
140
- * @param _id - The unique id of the secret to be updated
141
- * @param secret - The secret fields with the desired new values
140
+ * @param _id - The unique ID of the secret to be updated.
141
+ * @param secret - The secret fields to update.
142
142
  * @public
143
143
  * @documentationMaturity preview
144
144
  * @requiredField _id
@@ -149,8 +149,8 @@ export declare function deleteSecret(_id: string): Promise<void>;
149
149
  export declare function updateSecret(_id: string, secret: Secret): Promise<void>;
150
150
  /**
151
151
  * Updates some or all of the fields of an existing secret
152
- * @param _id - The unique id of the secret to be updated
153
- * @param secret - The secret fields with the desired new values
152
+ * @param _id - The unique ID of the secret to be updated.
153
+ * @param secret - The secret fields to update.
154
154
  * @public
155
155
  * @documentationMaturity preview
156
156
  * @requiredField _id
@@ -231,7 +231,7 @@ exports.createSecret = createSecret;
231
231
  /**
232
232
  * Deletes an existing secret by ID.
233
233
  *
234
- * The `deleteSecret()` function returns a Promise that resolves when a secret from the [Secrets Manager](https://support.wix.com/en/article/velo-working-with-the-secrets-manager) is deleted. You can retrieve the `_id` parameter using the [`listSecretInfo`](#listSecretInfo) function.
234
+ * The `deleteSecret()` function returns a Promise that resolves when a secret from the [Secrets Manager](https://support.wix.com/en/article/velo-working-with-the-secrets-manager) is deleted. You can retrieve the `_id` parameter using the [`listSecretInfo()`](#listSecretInfo) function.
235
235
  *
236
236
  * >**Note:**
237
237
  * > Deleting a secret is irreversible and will break all code using the secret.
@@ -288,8 +288,8 @@ function deleteSecret(_id) {
288
288
  exports.deleteSecret = deleteSecret;
289
289
  /**
290
290
  * Updates all the fields of an existing secret at once
291
- * @param _id - The unique id of the secret to be updated
292
- * @param secret - The secret fields with the desired new values
291
+ * @param _id - The unique ID of the secret to be updated.
292
+ * @param secret - The secret fields to update.
293
293
  * @public
294
294
  * @documentationMaturity preview
295
295
  * @requiredField _id
@@ -344,8 +344,8 @@ function updateSecret(_id, secret) {
344
344
  exports.updateSecret = updateSecret;
345
345
  /**
346
346
  * Updates some or all of the fields of an existing secret
347
- * @param _id - The unique id of the secret to be updated
348
- * @param secret - The secret fields with the desired new values
347
+ * @param _id - The unique ID of the secret to be updated.
348
+ * @param secret - The secret fields to update.
349
349
  * @public
350
350
  * @documentationMaturity preview
351
351
  * @requiredField _id
@@ -32,7 +32,7 @@ export declare function createSecret(payload: CreateSecretRequest): RequestOptio
32
32
  /**
33
33
  * Deletes an existing secret by ID.
34
34
  *
35
- * The `deleteSecret()` function returns a Promise that resolves when a secret from the [Secrets Manager](https://support.wix.com/en/article/velo-working-with-the-secrets-manager) is deleted. You can retrieve the `_id` parameter using the [`listSecretInfo`](#listSecretInfo) function.
35
+ * The `deleteSecret()` function returns a Promise that resolves when a secret from the [Secrets Manager](https://support.wix.com/en/article/velo-working-with-the-secrets-manager) is deleted. You can retrieve the `_id` parameter using the [`listSecretInfo()`](#listSecretInfo) function.
36
36
  *
37
37
  * >**Note:**
38
38
  * > Deleting a secret is irreversible and will break all code using the secret.
@@ -141,7 +141,7 @@ export function createSecret(payload) {
141
141
  /**
142
142
  * Deletes an existing secret by ID.
143
143
  *
144
- * The `deleteSecret()` function returns a Promise that resolves when a secret from the [Secrets Manager](https://support.wix.com/en/article/velo-working-with-the-secrets-manager) is deleted. You can retrieve the `_id` parameter using the [`listSecretInfo`](#listSecretInfo) function.
144
+ * The `deleteSecret()` function returns a Promise that resolves when a secret from the [Secrets Manager](https://support.wix.com/en/article/velo-working-with-the-secrets-manager) is deleted. You can retrieve the `_id` parameter using the [`listSecretInfo()`](#listSecretInfo) function.
145
145
  *
146
146
  * >**Note:**
147
147
  * > Deleting a secret is irreversible and will break all code using the secret.
@@ -22,11 +22,11 @@ export interface Secret {
22
22
  updatedDate?: Date;
23
23
  }
24
24
  export interface GetSecretValueRequest {
25
- /** The name of the secret to get the value for */
25
+ /** The name of the secret to get the value of. */
26
26
  name: string;
27
27
  }
28
28
  export interface GetSecretValueResponse {
29
- /** The plaintext, unencrypted value of the secret */
29
+ /** The plaintext, unencrypted value of the secret. */
30
30
  value?: string;
31
31
  }
32
32
  export interface ListSecretInfoRequest {
@@ -36,23 +36,23 @@ export interface ListSecretInfoResponse {
36
36
  secrets?: Secret[];
37
37
  }
38
38
  export interface CreateSecretRequest {
39
- /** A set of fields including info and the actual value to protect */
39
+ /** A set of fields including info and the actual value to protect. */
40
40
  secret: Secret;
41
41
  }
42
42
  export interface CreateSecretResponse {
43
- /** The globally-unique id assigned to the secret by the service */
43
+ /** The globally-unique ID assigned to the secret by the service. */
44
44
  id?: string;
45
45
  }
46
46
  export interface DeleteSecretRequest {
47
- /** The unique id of the secret to be deleted */
47
+ /** The unique ID of the secret to be deleted. */
48
48
  id: string;
49
49
  }
50
50
  export interface DeleteSecretResponse {
51
51
  }
52
52
  export interface UpdateSecretRequest {
53
- /** The unique id of the secret to be updated */
53
+ /** The unique ID of the secret to be updated. */
54
54
  id: string;
55
- /** The secret fields with the desired new values */
55
+ /** The secret fields to update. */
56
56
  secret: Secret;
57
57
  }
58
58
  export interface UpdateSecretResponse {
@@ -68,9 +68,9 @@ export interface DeleteSecretRequest {
68
68
  export interface DeleteSecretResponse {
69
69
  }
70
70
  export interface UpdateSecretRequest {
71
- /** The unique id of the secret to be updated */
71
+ /** The unique ID of the secret to be updated. */
72
72
  _id: string;
73
- /** The secret fields with the desired new values */
73
+ /** The secret fields to update. */
74
74
  secret: Secret;
75
75
  }
76
76
  export interface UpdateSecretResponse {
@@ -123,7 +123,7 @@ export declare function createSecret(secret: Secret): Promise<CreateSecretRespon
123
123
  /**
124
124
  * Deletes an existing secret by ID.
125
125
  *
126
- * The `deleteSecret()` function returns a Promise that resolves when a secret from the [Secrets Manager](https://support.wix.com/en/article/velo-working-with-the-secrets-manager) is deleted. You can retrieve the `_id` parameter using the [`listSecretInfo`](#listSecretInfo) function.
126
+ * The `deleteSecret()` function returns a Promise that resolves when a secret from the [Secrets Manager](https://support.wix.com/en/article/velo-working-with-the-secrets-manager) is deleted. You can retrieve the `_id` parameter using the [`listSecretInfo()`](#listSecretInfo) function.
127
127
  *
128
128
  * >**Note:**
129
129
  * > Deleting a secret is irreversible and will break all code using the secret.
@@ -137,8 +137,8 @@ export declare function createSecret(secret: Secret): Promise<CreateSecretRespon
137
137
  export declare function deleteSecret(_id: string): Promise<void>;
138
138
  /**
139
139
  * Updates all the fields of an existing secret at once
140
- * @param _id - The unique id of the secret to be updated
141
- * @param secret - The secret fields with the desired new values
140
+ * @param _id - The unique ID of the secret to be updated.
141
+ * @param secret - The secret fields to update.
142
142
  * @public
143
143
  * @documentationMaturity preview
144
144
  * @requiredField _id
@@ -149,8 +149,8 @@ export declare function deleteSecret(_id: string): Promise<void>;
149
149
  export declare function updateSecret(_id: string, secret: Secret): Promise<void>;
150
150
  /**
151
151
  * Updates some or all of the fields of an existing secret
152
- * @param _id - The unique id of the secret to be updated
153
- * @param secret - The secret fields with the desired new values
152
+ * @param _id - The unique ID of the secret to be updated.
153
+ * @param secret - The secret fields to update.
154
154
  * @public
155
155
  * @documentationMaturity preview
156
156
  * @requiredField _id
@@ -206,7 +206,7 @@ export function createSecret(secret) {
206
206
  /**
207
207
  * Deletes an existing secret by ID.
208
208
  *
209
- * The `deleteSecret()` function returns a Promise that resolves when a secret from the [Secrets Manager](https://support.wix.com/en/article/velo-working-with-the-secrets-manager) is deleted. You can retrieve the `_id` parameter using the [`listSecretInfo`](#listSecretInfo) function.
209
+ * The `deleteSecret()` function returns a Promise that resolves when a secret from the [Secrets Manager](https://support.wix.com/en/article/velo-working-with-the-secrets-manager) is deleted. You can retrieve the `_id` parameter using the [`listSecretInfo()`](#listSecretInfo) function.
210
210
  *
211
211
  * >**Note:**
212
212
  * > Deleting a secret is irreversible and will break all code using the secret.
@@ -262,8 +262,8 @@ export function deleteSecret(_id) {
262
262
  }
263
263
  /**
264
264
  * Updates all the fields of an existing secret at once
265
- * @param _id - The unique id of the secret to be updated
266
- * @param secret - The secret fields with the desired new values
265
+ * @param _id - The unique ID of the secret to be updated.
266
+ * @param secret - The secret fields to update.
267
267
  * @public
268
268
  * @documentationMaturity preview
269
269
  * @requiredField _id
@@ -317,8 +317,8 @@ export function updateSecret(_id, secret) {
317
317
  }
318
318
  /**
319
319
  * Updates some or all of the fields of an existing secret
320
- * @param _id - The unique id of the secret to be updated
321
- * @param secret - The secret fields with the desired new values
320
+ * @param _id - The unique ID of the secret to be updated.
321
+ * @param secret - The secret fields to update.
322
322
  * @public
323
323
  * @documentationMaturity preview
324
324
  * @requiredField _id
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/secrets",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "publishConfig": {
5
5
  "registry": "https://registry.npmjs.org/",
6
6
  "access": "public"
@@ -33,5 +33,5 @@
33
33
  "groupId": "com.wixpress.public-sdk-autogen"
34
34
  }
35
35
  },
36
- "falconPackageHash": "d0ad85ec80b5d3124469ced81a77386308aee454671314d340e65804"
36
+ "falconPackageHash": "9445cd7ccd32bf280e54c4fcb592b47f99ad8d4b1234c0144905c51f"
37
37
  }