@secrecy/lib
    Preparing search index...

    Function uploadData

    • Parameters

      • __namedParameters: UploadDataOptions & {
            apiClient?: TRPCClient<BuiltRouter<{}, {}>>;
            currentIdentity?:
                | {
                    appId: string;
                    identityPubKey: string;
                    kind: "USER_APP";
                    userId: string;
                }
                | {
                    groupId: string;
                    groupOwnerPubKey: string;
                    groupRole: "ADMIN"
                    | "MEMBER";
                    identityPubKey: string;
                    kind: "GROUP";
                    sharedByPubKey: string;
                    sharedToPubKey: string;
                };
            keyPairs?: Record<string, string>;
        }

      Returns Promise<
          LocalData & {
              sharing: { encryptedDataKey: string; password: string }
              | null;
          },
      >