@secrecy/lib
    Preparing search index...

    Class SecrecyClient

    Hierarchy (View Summary)

    Index
    client: TRPCClient
    secrecyUrls: SecrecyUrls
    sessionId: string
    • set currentGroup(groupId: string | null): void

      Parameters

      • groupId: string | null

      Returns void

    • get currentIdentity(): Readonly<
          | {
              appId: string;
              identityPubKey: string;
              kind: "USER_APP";
              userId: string;
          }
          | {
              groupId: string;
              groupOwnerPubKey: string;
              groupRole: "ADMIN"
              | "MEMBER";
              identityPubKey: string;
              kind: "GROUP";
              sharedByPubKey: string;
              sharedToPubKey: string;
          },
      >

      Returns Readonly<
          | {
              appId: string;
              identityPubKey: string;
              kind: "USER_APP";
              userId: string;
          }
          | {
              groupId: string;
              groupOwnerPubKey: string;
              groupRole: "ADMIN"
              | "MEMBER";
              identityPubKey: string;
              kind: "GROUP";
              sharedByPubKey: string;
              sharedToPubKey: string;
          },
      >

    • get groupIdentities(): readonly Readonly<
          {
              groupId: string;
              groupOwnerPubKey: string;
              groupRole: "ADMIN"
              | "MEMBER";
              identityPubKey: string;
              kind: "GROUP";
              sharedByPubKey: string;
              sharedToPubKey: string;
          },
      >[]

      Returns readonly Readonly<
          {
              groupId: string;
              groupOwnerPubKey: string;
              groupRole: "ADMIN"
              | "MEMBER";
              identityPubKey: string;
              kind: "GROUP";
              sharedByPubKey: string;
              sharedToPubKey: string;
          },
      >[]

    • get keyPairs(): Readonly<Record<string, string>>

      Returns Readonly<Record<string, string>>

    • Parameters

      • data: Uint8Array

      Returns Uint8Array

    • Parameters

      • pubKey: string

      Returns string

    • Parameters

      • __namedParameters: { backUrl: string }

      Returns Promise<string | null>

    • Parameters

      • __namedParameters: {
            opts?: CreateTrpcClientOptions;
            paymentRequestId: string;
            secrecyIdSeller: string;
        }

      Returns Promise<Record<string, unknown>>