@cfxlabsinc/b2b-services
    Preparing search index...
    CustomerDashboardUserActivity: Omit<
        SelectCustomerDashboardUserActivity,
        | "id"
        | "parentId"
        | "customerId"
        | "workspaceId"
        | "workspaceExternalId"
        | "userId"
        | "userExternalId"
        | "adminUserId"
        | "adminUserExternalId"
        | "type"
        | "objectId"
        | "data"
        | "metadata",
    > & SelectCustomerDashboardUserActivity["metadata"] & {
        objectId?: NonNullable<SelectCustomerDashboardUserActivity["objectId"]>;
    } & (
        | {
            account: Pick<LedgerAccount, "id" | "name">;
            type: Extract<
                SelectCustomerDashboardUserActivity["type"],
                "account.created"
                | "account.updated",
            >;
        }
        | {
            apiKey: Pick<CustomerApiKey, "name" | "apiKey">;
            type: Extract<
                SelectCustomerDashboardUserActivity["type"],
                "apiKey.created"
                | "apiKey.deleted",
            >;
        }
        | {
            card: Pick<GirasolCard, "id">;
            type: Extract<
                SelectCustomerDashboardUserActivity["type"],
                | "card.virtual.blocked"
                | "card.virtual.created"
                | "card.virtual.revealedSensitiveInfo"
                | "card.virtual.frozen"
                | "card.virtual.unfrozen",
            >;
        }
        | {
            card: Pick<GirasolCard, "id">;
            type: Extract<
                SelectCustomerDashboardUserActivity["type"],
                | "card.physical.activated"
                | "card.physical.blocked"
                | "card.physical.created"
                | "card.physical.frozen"
                | "card.physical.unfrozen"
                | "card.physical.revealedSensitiveInfo",
            >;
        }
        | {
            type: Extract<
                SelectCustomerDashboardUserActivity["type"],
                | "customer.emailNotificationPreferences.updated"
                | "customer.logo.updated"
                | "customer.slackNotificationPreferences.updated"
                | "customer.smsNotificationPreferences.updated",
            >;
        }
        | {
            subscribed: boolean;
            type: Extract<
                SelectCustomerDashboardUserActivity["type"],
                "customer.internalEmailSubscription.updated",
            >;
        }
        | {
            termsType: CustomerTermAcceptance["type"];
            type: Extract<
                SelectCustomerDashboardUserActivity["type"],
                "customer.terms.accept",
            >;
        }
        | {
            name: string;
            type: Extract<
                SelectCustomerDashboardUserActivity["type"],
                "customer.workspaceName.updated",
            >;
        }
        | {
            depositBankMemo: Pick<DepositBankMemo, "memo">;
            type: Extract<
                SelectCustomerDashboardUserActivity["type"],
                "deposit.memo.created",
            >;
        }
        | {
            depositId: SelectDeposit["externalId"];
            type: Extract<
                SelectCustomerDashboardUserActivity["type"],
                "deposit.achDebit.accepted",
            >;
        }
        | {
            identity: Pick<Identity, "id">;
            type: Extract<
                SelectCustomerDashboardUserActivity["type"],
                "identity.created"
                | "identity.updated",
            >;
        }
        | {
            customerSlackBotInstallationId: SelectCustomerSlackBotInstallation["externalId"];
            type: Extract<
                SelectCustomerDashboardUserActivity["type"],
                "integration.slack.created"
                | "integration.slack.deleted",
            >;
        }
        | {
            channelId: SelectCustomerSlackBotChannel["channelId"];
            customerSlackBotInstallationId: SelectCustomerSlackBotInstallation["externalId"];
            type: Extract<
                SelectCustomerDashboardUserActivity["type"],
                "integration.slack.channelAdded"
                | "integration.slack.channelRemoved",
            >;
        }
        | {
            paymentInstrument: Pick<UsAchPaymentInstrument, "id">;
            type: Extract<
                SelectCustomerDashboardUserActivity["type"],
                "linkedAccount.connected"
                | "linkedAccount.removed",
            >;
        }
        | {
            organizationId: Organization["id"];
            relatedPerson: Pick<RelatedPerson, "id">;
            type: Extract<
                SelectCustomerDashboardUserActivity["type"],
                | "relatedPerson.created"
                | "relatedPerson.updated"
                | "relatedPerson.deleted",
            >;
        }
        | {
            documentId: SelectEntityDocument["externalId"];
            relatedPerson: Pick<RelatedPerson, "id">;
            type: Extract<
                SelectCustomerDashboardUserActivity["type"],
                "relatedPersonDocument.uploaded"
                | "relatedPersonDocument.deleted",
            >;
        }
        | {
            organization: Pick<Organization, "id">;
            type: Extract<
                SelectCustomerDashboardUserActivity["type"],
                "organization.created"
                | "organization.updated",
            >;
        }
        | {
            origin: Pick<CustomerOrigin, "id" | "origin">;
            type: Extract<
                SelectCustomerDashboardUserActivity["type"],
                "origin.added"
                | "origin.updated"
                | "origin.removed",
            >;
        }
        | {
            entityId: Entity["id"];
            type: Extract<
                SelectCustomerDashboardUserActivity["type"],
                | "payment.ach.created"
                | "payment.swiftWire.created"
                | "payment.usWire.created"
                | "payment.usInstant.created"
                | "payment.externalWallet.created",
            >;
            withdrawal: Pick<Withdrawal, "id">;
        }
        | {
            entityId: Entity["id"];
            paymentInstrument: Pick<UsAchPaymentInstrument, "id">;
            type: Extract<
                SelectCustomerDashboardUserActivity["type"],
                "recipient.ach.created"
                | "recipient.ach.updated",
            >;
        }
        | {
            entityId: Entity["id"];
            paymentInstrument: Pick<UsInstantPaymentInstrument, "id">;
            type: Extract<
                SelectCustomerDashboardUserActivity["type"],
                "recipient.usInstant.created"
                | "recipient.usInstant.updated",
            >;
        }
        | {
            entityId: Entity["id"];
            paymentInstrument: Pick<WalletPaymentInstrument, "id">;
            type: Extract<
                SelectCustomerDashboardUserActivity["type"],
                "recipient.externalWallet.created"
                | "recipient.externalWallet.updated",
            >;
        }
        | {
            entityId: Entity["id"];
            paymentInstrument: Pick<NetworkWalletPaymentInstrument, "id">;
            type: Extract<
                SelectCustomerDashboardUserActivity["type"],
                "recipient.networkWallet.created"
                | "recipient.networkWallet.updated",
            >;
        }
        | {
            entityId: Entity["id"];
            paymentInstrument: Pick<SwiftWirePaymentInstrument, "id">;
            type: Extract<
                SelectCustomerDashboardUserActivity["type"],
                "recipient.swiftWire.created"
                | "recipient.swiftWire.updated",
            >;
        }
        | {
            entityId: Entity["id"];
            paymentInstrument: Pick<UsWirePaymentInstrument, "id">;
            type: Extract<
                SelectCustomerDashboardUserActivity["type"],
                "recipient.usWire.created"
                | "recipient.usWire.updated",
            >;
        }
        | {
            transactionMetadata: Pick<
                TransactionMetadata,
                "transactionId"
                | "note",
            >;
            type: Extract<
                SelectCustomerDashboardUserActivity["type"],
                "transaction.metadata.created",
            >;
        }
        | {
            transactionMetadataFile: Pick<
                TransactionMetadataFile,
                "id"
                | "transactionId",
            >;
            type: Extract<
                SelectCustomerDashboardUserActivity["type"],
                "transaction.metadataFile.created"
                | "transaction.metadataFile.deleted",
            >;
        }
        | {
            approvalRequestId: SelectTransactionApprovalRequest["externalId"];
            type: Extract<
                SelectCustomerDashboardUserActivity["type"],
                | "transactionApproval.requested"
                | "transactionApproval.approved"
                | "transactionApproval.declined"
                | "transactionApproval.cancelled"
                | "transactionApproval.executed"
                | "transactionApproval.failed",
            >;
        }
        | {
            approvalRuleId: SelectTransactionApprovalRule["externalId"];
            type: Extract<
                SelectCustomerDashboardUserActivity["type"],
                "transactionApprovalRule.upserted"
                | "transactionApprovalRule.disabled",
            >;
        }
        | {
            transfer: Pick<LedgerAccountTransfer, "id">;
            type: Extract<
                SelectCustomerDashboardUserActivity["type"],
                "transfer.created"
                | "networkTransfer.created",
            >;
        }
        | {
            type: Extract<
                SelectCustomerDashboardUserActivity["type"],
                "virtualAccount.created",
            >;
            virtualAccount: Pick<VirtualAccount, "id">;
        }
        | {
            type: Extract<
                SelectCustomerDashboardUserActivity["type"],
                | "user.created"
                | "user.deleted"
                | "user.disabled"
                | "user.enabled"
                | "user.locked"
                | "user.loggedIn"
                | "user.loggedOut"
                | "user.updated"
                | "user.passwordChanged"
                | "user.mfaReplaced"
                | "user.passkeyAdded"
                | "user.signedOutEverywhere",
            >;
        }
        | {
            passkey: { createdAt?: string; name: string };
            type: Extract<
                SelectCustomerDashboardUserActivity["type"],
                "user.passkeyRemoved",
            >;
        }
        | {
            reason: SecondFactorRejection["reason"];
            type: SecondFactorRejectionType;
        }
        | {
            emailPreferences: MemberEmailPreferences;
            type: Extract<
                SelectCustomerDashboardUserActivity["type"],
                "user.emailPreferences.updated",
            >;
        }
        | {
            role: string;
            type: Extract<
                SelectCustomerDashboardUserActivity["type"],
                "user.addedToWorkspace",
            >;
        }
        | {
            role: string;
            type: Extract<
                SelectCustomerDashboardUserActivity["type"],
                "user.workspaceRoleChanged",
            >;
        } & MemberSubject
        | {
            previousStatus: "ACTIVE"
            | "DISABLED";
            status: "ACTIVE" | "DISABLED";
            type: Extract<
                SelectCustomerDashboardUserActivity["type"],
                "user.workspaceStatusChanged",
            >;
        } & MemberSubject
        | {
            type: Extract<
                SelectCustomerDashboardUserActivity["type"],
                "user.removedFromWorkspace",
            >;
        } & MemberSubject
        | {
            email: string;
            role: string;
            type: Extract<SelectCustomerDashboardUserActivity["type"], "user.invited">;
        }
        | {
            email: string;
            type: Extract<
                SelectCustomerDashboardUserActivity["type"],
                "user.inviteRevoked",
            >;
        }
    )

    Type Declaration