oro-sdk-apis 1.38.2 → 1.39.0

Sign up to get free protection for your applications and to get access to all the features.
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.38.2",
2
+ "version": "1.39.0",
3
3
  "main": "dist/index.js",
4
4
  "typings": "dist/index.d.ts",
5
5
  "files": [
@@ -157,6 +157,7 @@ export type PermissionBasedScopes =
157
157
  | 'practice.configs.get'
158
158
  | 'practice.invoices.get'
159
159
  | 'practice.payments.get'
160
+ | 'practice.secrets.get'
160
161
  | 'teller.emails.post'
161
162
 
162
163
  export type AllScopes = RoleBasedScopes | PermissionBasedScopes
@@ -616,3 +616,19 @@ export interface PracticeInvoice {
616
616
  currency: string
617
617
  discount: number
618
618
  }
619
+
620
+ /**
621
+ * This interface represents a practice secret
622
+ * It is used to generate a symetric key to encrypt
623
+ * practice related data
624
+ */
625
+ export interface PracticeSecret {
626
+ practiceUuid: string
627
+ /**
628
+ * The payload is the actual base64 encoded bytes that can
629
+ * be used as the practice secret. In the db,
630
+ * this field is base64 encoded nonce+encrypted-payload.
631
+ * It's decrypted on the fly when returned by the api.
632
+ */
633
+ payload: string
634
+ }