feat(chat): add support action cards and live entitlements

This commit is contained in:
Codex
2026-07-24 17:59:57 +08:00
parent 19b8fc51d6
commit 76bffc1a0d
52 changed files with 1151 additions and 40 deletions
@@ -63,6 +63,7 @@ export class PaymentRepository implements IPaymentRepository {
autoRenew: boolean,
recipientCharacterId?: string,
commercialOfferId?: string,
chatActionId?: string,
): Promise<Result<CreatePaymentOrderResponse>> {
const request = CreatePaymentOrderRequestSchema.parse({
planId,
@@ -70,6 +71,7 @@ export class PaymentRepository implements IPaymentRepository {
autoRenew,
...(recipientCharacterId ? { recipientCharacterId } : {}),
...(commercialOfferId ? { commercialOfferId } : {}),
...(chatActionId ? { chatActionId } : {}),
});
return Result.wrap(() => this.api.createOrder(request));
}