feat(plugins): add hosted web search client
This commit is contained in:
@@ -192,6 +192,11 @@ function capabilityBilling(value: unknown): CapabilityBillingReceiptV1 | null {
|
||||
? { mode: 'external_account', status: 'external' }
|
||||
: null;
|
||||
}
|
||||
if (billing.mode === 'platform_metered' && billing.status === 'receipt_unavailable') {
|
||||
return exactKeys(billing, ['mode', 'status'])
|
||||
? { mode: 'platform_metered', status: 'receipt_unavailable' }
|
||||
: null;
|
||||
}
|
||||
if (billing.mode !== 'platform_metered' || typeof billing.reserved_points !== 'string'
|
||||
|| !CAPABILITY_DECIMAL_PATTERN.test(billing.reserved_points)
|
||||
|| billing.reserved_points.length > 32) return null;
|
||||
|
||||
Reference in New Issue
Block a user