@wix/secrets 1.0.43 → 1.0.44

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.43",
3
+ "version": "1.0.44",
4
4
  "publishConfig": {
5
5
  "registry": "https://registry.npmjs.org/",
6
6
  "access": "public"
@@ -21,7 +21,7 @@
21
21
  "type-bundles"
22
22
  ],
23
23
  "dependencies": {
24
- "@wix/secrets_secrets": "1.0.31"
24
+ "@wix/secrets_secrets": "1.0.32"
25
25
  },
26
26
  "devDependencies": {
27
27
  "glob": "^10.4.1",
@@ -46,5 +46,5 @@
46
46
  "fqdn": ""
47
47
  }
48
48
  },
49
- "falconPackageHash": "bf2d19c272a275b1f50acdac9db19522b5c2761b8a820f30ae969993"
49
+ "falconPackageHash": "ce8a0745a45eb834a2f0e808ab7d328822eb59657cfeef8ec6312850"
50
50
  }
@@ -478,17 +478,17 @@ type MaybeContext<T extends Descriptors> = globalThis.ContextualClient extends {
478
478
 
479
479
  interface Secret {
480
480
  /**
481
- * Secret ID.
481
+ * Unique secret ID.
482
482
  * @readonly
483
483
  */
484
484
  _id?: string | null;
485
485
  /**
486
- * 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.
486
+ * A unique, human-friendly name for the secret. Use it to retrieve the secret value with Get Secret Value.
487
487
  *
488
488
  * **Note:** You can use alphanumeric characters and the following special characters: `_+=-@#$`. Spaces are not supported.
489
489
  */
490
490
  name?: string | null;
491
- /** An optional text describing the secret's purpose or any other notes about it. */
491
+ /** Optional text describing the secret's purpose or any other notes about it. */
492
492
  description?: string | null;
493
493
  /** The encrypted confidential value. */
494
494
  value?: string | null;
@@ -508,7 +508,7 @@ interface GetSecretValueRequest {
508
508
  name: string;
509
509
  }
510
510
  interface GetSecretValueResponse {
511
- /** The plaintext, unencrypted value of the secret. */
511
+ /** The confidential value to protect, such as an API key. */
512
512
  value?: string;
513
513
  }
514
514
  interface ListSecretInfoRequest {
@@ -522,7 +522,7 @@ interface CreateSecretRequest {
522
522
  secret: Secret;
523
523
  }
524
524
  interface CreateSecretResponse {
525
- /** Secret ID. */
525
+ /** Unique secret ID. */
526
526
  _id?: string;
527
527
  }
528
528
  interface DeleteSecretRequest {
@@ -717,6 +717,11 @@ declare function getSecretValue$1(httpClient: HttpClient): GetSecretValueSignatu
717
717
  interface GetSecretValueSignature {
718
718
  /**
719
719
  * Retrieves a secret value by name.
720
+ *
721
+ * <blockquote class="caution">
722
+ * __Caution:__
723
+ * Only use a secret's value in the backend code. Returning the secret value in the frontend is a security risk.
724
+ * </blockquote>
720
725
  * @param - The name of the secret to get the value of.
721
726
  */
722
727
  (name: string): Promise<GetSecretValueResponse & GetSecretValueResponseNonNullableFields>;
@@ -726,7 +731,7 @@ interface ListSecretInfoSignature {
726
731
  /**
727
732
  * Retrieves a list of secrets.
728
733
  *
729
- * >**Note:** This endpoint doesn't return the secret's value for security reasons. To retrieve the value, call [Get Secret Value](https://dev.wix.com/docs/rest/business-management/secrets/get-secret-value).
734
+ * > **Note:** This method doesn't return the secret's value for security reasons. To retrieve the value, call [Get Secret Value](https://dev.wix.com/docs/rest/business-management/secrets/get-secret-value).
730
735
  */
731
736
  (): Promise<ListSecretInfoResponse>;
732
737
  }
@@ -735,7 +740,7 @@ interface CreateSecretSignature {
735
740
  /**
736
741
  * Creates a secret.
737
742
  * @param - Fields of a new secret.
738
- * @returns Secret ID.
743
+ * @returns Unique secret ID.
739
744
  */
740
745
  (secret: Secret): Promise<string>;
741
746
  }
@@ -743,6 +748,11 @@ declare function deleteSecret$1(httpClient: HttpClient): DeleteSecretSignature;
743
748
  interface DeleteSecretSignature {
744
749
  /**
745
750
  * Deletes a secret.
751
+ *
752
+ * <blockquote class="warning">
753
+ * __Warning:__
754
+ * Deleting a secret is irreversible and will break all code using the secret.
755
+ * </blockquote>
746
756
  * @param - The unique ID of the secret to be deleted.
747
757
  */
748
758
  (_id: string): Promise<void>;
@@ -478,17 +478,17 @@ type MaybeContext<T extends Descriptors> = globalThis.ContextualClient extends {
478
478
 
479
479
  interface Secret {
480
480
  /**
481
- * Secret ID.
481
+ * Unique secret ID.
482
482
  * @readonly
483
483
  */
484
484
  _id?: string | null;
485
485
  /**
486
- * 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.
486
+ * A unique, human-friendly name for the secret. Use it to retrieve the secret value with Get Secret Value.
487
487
  *
488
488
  * **Note:** You can use alphanumeric characters and the following special characters: `_+=-@#$`. Spaces are not supported.
489
489
  */
490
490
  name?: string | null;
491
- /** An optional text describing the secret's purpose or any other notes about it. */
491
+ /** Optional text describing the secret's purpose or any other notes about it. */
492
492
  description?: string | null;
493
493
  /** The encrypted confidential value. */
494
494
  value?: string | null;
@@ -508,7 +508,7 @@ interface GetSecretValueRequest {
508
508
  name: string;
509
509
  }
510
510
  interface GetSecretValueResponse {
511
- /** The plaintext, unencrypted value of the secret. */
511
+ /** The confidential value to protect, such as an API key. */
512
512
  value?: string;
513
513
  }
514
514
  interface ListSecretInfoRequest {
@@ -522,7 +522,7 @@ interface CreateSecretRequest {
522
522
  secret: Secret;
523
523
  }
524
524
  interface CreateSecretResponse {
525
- /** Secret ID. */
525
+ /** Unique secret ID. */
526
526
  _id?: string;
527
527
  }
528
528
  interface DeleteSecretRequest {
@@ -717,6 +717,11 @@ declare function getSecretValue$1(httpClient: HttpClient): GetSecretValueSignatu
717
717
  interface GetSecretValueSignature {
718
718
  /**
719
719
  * Retrieves a secret value by name.
720
+ *
721
+ * <blockquote class="caution">
722
+ * __Caution:__
723
+ * Only use a secret's value in the backend code. Returning the secret value in the frontend is a security risk.
724
+ * </blockquote>
720
725
  * @param - The name of the secret to get the value of.
721
726
  */
722
727
  (name: string): Promise<GetSecretValueResponse & GetSecretValueResponseNonNullableFields>;
@@ -726,7 +731,7 @@ interface ListSecretInfoSignature {
726
731
  /**
727
732
  * Retrieves a list of secrets.
728
733
  *
729
- * >**Note:** This endpoint doesn't return the secret's value for security reasons. To retrieve the value, call [Get Secret Value](https://dev.wix.com/docs/rest/business-management/secrets/get-secret-value).
734
+ * > **Note:** This method doesn't return the secret's value for security reasons. To retrieve the value, call [Get Secret Value](https://dev.wix.com/docs/rest/business-management/secrets/get-secret-value).
730
735
  */
731
736
  (): Promise<ListSecretInfoResponse>;
732
737
  }
@@ -735,7 +740,7 @@ interface CreateSecretSignature {
735
740
  /**
736
741
  * Creates a secret.
737
742
  * @param - Fields of a new secret.
738
- * @returns Secret ID.
743
+ * @returns Unique secret ID.
739
744
  */
740
745
  (secret: Secret): Promise<string>;
741
746
  }
@@ -743,6 +748,11 @@ declare function deleteSecret$1(httpClient: HttpClient): DeleteSecretSignature;
743
748
  interface DeleteSecretSignature {
744
749
  /**
745
750
  * Deletes a secret.
751
+ *
752
+ * <blockquote class="warning">
753
+ * __Warning:__
754
+ * Deleting a secret is irreversible and will break all code using the secret.
755
+ * </blockquote>
746
756
  * @param - The unique ID of the secret to be deleted.
747
757
  */
748
758
  (_id: string): Promise<void>;
@@ -1,16 +1,16 @@
1
1
  interface Secret$1 {
2
2
  /**
3
- * Secret ID.
3
+ * Unique secret ID.
4
4
  * @readonly
5
5
  */
6
6
  id?: string | null;
7
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.
8
+ * A unique, human-friendly name for the secret. Use it to retrieve the secret value with Get Secret Value.
9
9
  *
10
10
  * **Note:** You can use alphanumeric characters and the following special characters: `_+=-@#$`. Spaces are not supported.
11
11
  */
12
12
  name?: string | null;
13
- /** An optional text describing the secret's purpose or any other notes about it. */
13
+ /** Optional text describing the secret's purpose or any other notes about it. */
14
14
  description?: string | null;
15
15
  /** The encrypted confidential value. */
16
16
  value?: string | null;
@@ -30,7 +30,7 @@ interface GetSecretValueRequest$1 {
30
30
  name: string;
31
31
  }
32
32
  interface GetSecretValueResponse$1 {
33
- /** The plaintext, unencrypted value of the secret. */
33
+ /** The confidential value to protect, such as an API key. */
34
34
  value?: string;
35
35
  }
36
36
  interface ListSecretInfoRequest$1 {
@@ -44,7 +44,7 @@ interface CreateSecretRequest$1 {
44
44
  secret: Secret$1;
45
45
  }
46
46
  interface CreateSecretResponse$1 {
47
- /** Secret ID. */
47
+ /** Unique secret ID. */
48
48
  id?: string;
49
49
  }
50
50
  interface DeleteSecretRequest$1 {
@@ -70,17 +70,17 @@ interface CreateSecretResponseNonNullableFields$1 {
70
70
 
71
71
  interface Secret {
72
72
  /**
73
- * Secret ID.
73
+ * Unique secret ID.
74
74
  * @readonly
75
75
  */
76
76
  _id?: string | null;
77
77
  /**
78
- * 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.
78
+ * A unique, human-friendly name for the secret. Use it to retrieve the secret value with Get Secret Value.
79
79
  *
80
80
  * **Note:** You can use alphanumeric characters and the following special characters: `_+=-@#$`. Spaces are not supported.
81
81
  */
82
82
  name?: string | null;
83
- /** An optional text describing the secret's purpose or any other notes about it. */
83
+ /** Optional text describing the secret's purpose or any other notes about it. */
84
84
  description?: string | null;
85
85
  /** The encrypted confidential value. */
86
86
  value?: string | null;
@@ -100,7 +100,7 @@ interface GetSecretValueRequest {
100
100
  name: string;
101
101
  }
102
102
  interface GetSecretValueResponse {
103
- /** The plaintext, unencrypted value of the secret. */
103
+ /** The confidential value to protect, such as an API key. */
104
104
  value?: string;
105
105
  }
106
106
  interface ListSecretInfoRequest {
@@ -114,7 +114,7 @@ interface CreateSecretRequest {
114
114
  secret: Secret;
115
115
  }
116
116
  interface CreateSecretResponse {
117
- /** Secret ID. */
117
+ /** Unique secret ID. */
118
118
  _id?: string;
119
119
  }
120
120
  interface DeleteSecretRequest {