@wix/secrets 1.0.35 → 1.0.36

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/secrets",
3
- "version": "1.0.35",
3
+ "version": "1.0.36",
4
4
  "publishConfig": {
5
5
  "registry": "https://registry.npmjs.org/",
6
6
  "access": "public"
@@ -18,7 +18,7 @@
18
18
  "type-bundles"
19
19
  ],
20
20
  "dependencies": {
21
- "@wix/secrets_secrets": "1.0.24"
21
+ "@wix/secrets_secrets": "1.0.25"
22
22
  },
23
23
  "devDependencies": {
24
24
  "glob": "^10.4.1",
@@ -43,5 +43,5 @@
43
43
  "fqdn": ""
44
44
  }
45
45
  },
46
- "falconPackageHash": "9db7fb0ee6c40c414d1572c02de64acf9dfa604354f02c2389e3d6b5"
46
+ "falconPackageHash": "893a772393937d105c609519d705521e13bbaf9537b7f543c0009965"
47
47
  }
@@ -106,9 +106,9 @@ interface DeleteSecretRequest {
106
106
  interface DeleteSecretResponse {
107
107
  }
108
108
  interface UpdateSecretRequest {
109
- /** The unique ID of the secret to be updated. */
109
+ /** ID of the secret to update. */
110
110
  _id: string;
111
- /** The secret fields to update. */
111
+ /** Details of a secret. */
112
112
  secret: Secret;
113
113
  }
114
114
  interface UpdateSecretResponse {
@@ -359,8 +359,8 @@ interface UpdateSecretSignature {
359
359
  * > - Changing a secret's name or value will break all code using the secret.
360
360
  * > - You can't rename the secret with a name of an existing secret.
361
361
  * > - 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()`.
362
- * @param - The unique ID of the secret to be updated.
363
- * @param - The secret fields to update.
362
+ * @param - ID of the secret to update.
363
+ * @param - Details of a secret.
364
364
  * @returns Fulfilled - When the secret is updated.
365
365
  * Rejected - Error message.
366
366
  */
@@ -379,11 +379,15 @@ declare const deleteSecret: BuildRESTFunction<typeof deleteSecret$1> & typeof de
379
379
  declare const updateSecret: BuildRESTFunction<typeof updateSecret$1> & typeof updateSecret$1;
380
380
 
381
381
  type _publicOnSecretCreatedType = typeof onSecretCreated$1;
382
- /** */
382
+ /**
383
+ * Triggered when a secret is created.
384
+ */
383
385
  declare const onSecretCreated: ReturnType<typeof createEventModule<_publicOnSecretCreatedType>>;
384
386
 
385
387
  type _publicOnSecretDeletedType = typeof onSecretDeleted$1;
386
- /** */
388
+ /**
389
+ * Triggered when a secret is deleted.
390
+ */
387
391
  declare const onSecretDeleted: ReturnType<typeof createEventModule<_publicOnSecretDeletedType>>;
388
392
 
389
393
  type _publicOnSecretUpdatedType = typeof onSecretUpdated$1;
@@ -106,9 +106,9 @@ interface DeleteSecretRequest {
106
106
  interface DeleteSecretResponse {
107
107
  }
108
108
  interface UpdateSecretRequest {
109
- /** The unique ID of the secret to be updated. */
109
+ /** ID of the secret to update. */
110
110
  _id: string;
111
- /** The secret fields to update. */
111
+ /** Details of a secret. */
112
112
  secret: Secret;
113
113
  }
114
114
  interface UpdateSecretResponse {
@@ -359,8 +359,8 @@ interface UpdateSecretSignature {
359
359
  * > - Changing a secret's name or value will break all code using the secret.
360
360
  * > - You can't rename the secret with a name of an existing secret.
361
361
  * > - 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()`.
362
- * @param - The unique ID of the secret to be updated.
363
- * @param - The secret fields to update.
362
+ * @param - ID of the secret to update.
363
+ * @param - Details of a secret.
364
364
  * @returns Fulfilled - When the secret is updated.
365
365
  * Rejected - Error message.
366
366
  */
@@ -379,11 +379,15 @@ declare const deleteSecret: BuildRESTFunction<typeof deleteSecret$1> & typeof de
379
379
  declare const updateSecret: BuildRESTFunction<typeof updateSecret$1> & typeof updateSecret$1;
380
380
 
381
381
  type _publicOnSecretCreatedType = typeof onSecretCreated$1;
382
- /** */
382
+ /**
383
+ * Triggered when a secret is created.
384
+ */
383
385
  declare const onSecretCreated: ReturnType<typeof createEventModule<_publicOnSecretCreatedType>>;
384
386
 
385
387
  type _publicOnSecretDeletedType = typeof onSecretDeleted$1;
386
- /** */
388
+ /**
389
+ * Triggered when a secret is deleted.
390
+ */
387
391
  declare const onSecretDeleted: ReturnType<typeof createEventModule<_publicOnSecretDeletedType>>;
388
392
 
389
393
  type _publicOnSecretUpdatedType = typeof onSecretUpdated$1;
@@ -1,28 +1,32 @@
1
1
  interface Secret$1 {
2
2
  /**
3
- * A globally-unique, immutable identifier assigned to the secret upon creation.
3
+ * Secret ID.
4
4
  * @readonly
5
5
  */
6
6
  id?: string | null;
7
- /** A unique, human-friendly name for the secret. Used for retrieving the secret easily at runtime. */
7
+ /**
8
+ * A unique, human-friendly name for the secret. Use it to retrieve the secret value easily with the [Get Secret Value](https://dev.wix.com/docs/rest/business-management/secrets/get-secret-value) endpoint.
9
+ *
10
+ * **Note:** You can use alphanumeric characters and the following special characters: `_+=-@#$`. Spaces are not supported.
11
+ */
8
12
  name?: string | null;
9
13
  /** An optional text describing the secret's purpose or any other notes about it. */
10
14
  description?: string | null;
11
- /** The confidential value that is intended to be stored encrypted. */
15
+ /** The encrypted confidential value. */
12
16
  value?: string | null;
13
17
  /**
14
- * The creation timestamp of the secret.
18
+ * Date and time when the secret was created.
15
19
  * @readonly
16
20
  */
17
21
  createdDate?: Date;
18
22
  /**
19
- * The last-update timestamp of the secret.
23
+ * Date and time when the secret was updated.
20
24
  * @readonly
21
25
  */
22
26
  updatedDate?: Date;
23
27
  }
24
28
  interface GetSecretValueRequest$1 {
25
- /** The name of the secret to get the value of. */
29
+ /** Secret name. */
26
30
  name: string;
27
31
  }
28
32
  interface GetSecretValueResponse$1 {
@@ -32,27 +36,27 @@ interface GetSecretValueResponse$1 {
32
36
  interface ListSecretInfoRequest$1 {
33
37
  }
34
38
  interface ListSecretInfoResponse$1 {
35
- /** A list of info object for each secret, without the secret value itself */
39
+ /** A list of secrets with encrypted values. */
36
40
  secrets?: Secret$1[];
37
41
  }
38
42
  interface CreateSecretRequest$1 {
39
- /** A set of fields including info and the actual value to protect. */
43
+ /** Details of a secret. */
40
44
  secret: Secret$1;
41
45
  }
42
46
  interface CreateSecretResponse$1 {
43
- /** The globally-unique ID assigned to the secret by the service. */
47
+ /** Secret ID. */
44
48
  id?: string;
45
49
  }
46
50
  interface DeleteSecretRequest$1 {
47
- /** The unique ID of the secret to be deleted. */
51
+ /** ID of the secret to delete. */
48
52
  id: string;
49
53
  }
50
54
  interface DeleteSecretResponse$1 {
51
55
  }
52
56
  interface UpdateSecretRequest$1 {
53
- /** The unique ID of the secret to be updated. */
57
+ /** ID of the secret to update. */
54
58
  id: string;
55
- /** The secret fields to update. */
59
+ /** Details of a secret. */
56
60
  secret: Secret$1;
57
61
  }
58
62
  interface UpdateSecretResponse$1 {
@@ -128,9 +132,9 @@ interface DeleteSecretRequest {
128
132
  interface DeleteSecretResponse {
129
133
  }
130
134
  interface UpdateSecretRequest {
131
- /** The unique ID of the secret to be updated. */
135
+ /** ID of the secret to update. */
132
136
  _id: string;
133
- /** The secret fields to update. */
137
+ /** Details of a secret. */
134
138
  secret: Secret;
135
139
  }
136
140
  interface UpdateSecretResponse {