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.
@@ -130,5 +130,5 @@ export interface LegalData {
130
130
  rpAcceptedAtIP?: string;
131
131
  }
132
132
  export declare type RoleBasedScopes = AllRoleType;
133
- export declare type PermissionBasedScopes = 'consult.consults.get' | 'consult.consults.post' | 'consult.consults.put' | 'practice.assignments.post' | 'practice.emails.get' | 'practice.configs.get' | 'practice.invoices.get' | 'practice.payments.get' | 'teller.emails.post';
133
+ export declare type PermissionBasedScopes = 'consult.consults.get' | 'consult.consults.post' | 'consult.consults.put' | 'practice.assignments.post' | 'practice.emails.get' | 'practice.configs.get' | 'practice.invoices.get' | 'practice.payments.get' | 'practice.secrets.get' | 'teller.emails.post';
134
134
  export declare type AllScopes = RoleBasedScopes | PermissionBasedScopes;
@@ -529,3 +529,18 @@ export interface PracticeInvoice {
529
529
  currency: string;
530
530
  discount: number;
531
531
  }
532
+ /**
533
+ * This interface represents a practice secret
534
+ * It is used to generate a symetric key to encrypt
535
+ * practice related data
536
+ */
537
+ export interface PracticeSecret {
538
+ practiceUuid: string;
539
+ /**
540
+ * The payload is the actual base64 encoded bytes that can
541
+ * be used as the practice secret. In the db,
542
+ * this field is base64 encoded nonce+encrypted-payload.
543
+ * It's decrypted on the fly when returned by the api.
544
+ */
545
+ payload: string;
546
+ }