diff --git a/packages/console/package.json b/packages/console/package.json
index 31f9e7c22..f39caca86 100644
--- a/packages/console/package.json
+++ b/packages/console/package.json
@@ -26,7 +26,7 @@
"@fontsource/roboto-mono": "^5.0.0",
"@jest/types": "^29.5.0",
"@logto/app-insights": "workspace:^1.3.1",
- "@logto/cloud": "0.2.5-8065345",
+ "@logto/cloud": "0.2.5-1795c3d",
"@logto/connector-kit": "workspace:^1.1.1",
"@logto/core-kit": "workspace:^2.0.1",
"@logto/language-kit": "workspace:^1.0.0",
diff --git a/packages/console/src/components/CreateConnectorForm/Footer/index.tsx b/packages/console/src/components/CreateConnectorForm/Footer/index.tsx
index 1247a12e8..63d84ff5e 100644
--- a/packages/console/src/components/CreateConnectorForm/Footer/index.tsx
+++ b/packages/console/src/components/CreateConnectorForm/Footer/index.tsx
@@ -80,7 +80,7 @@ function Footer({
: t(
planId === ReservedPlanId.pro ? 'standard_connectors_pro' : 'standard_connectors',
{
- count: quota.standardConnectorsLimit,
+ count: quota.standardConnectorsLimit ?? 0,
}
)}
diff --git a/packages/console/src/pages/ApiResourceDetails/ApiResourcePermissions/components/CreatePermissionModal/index.tsx b/packages/console/src/pages/ApiResourceDetails/ApiResourcePermissions/components/CreatePermissionModal/index.tsx
index 88fc3329a..8d1d46de0 100644
--- a/packages/console/src/pages/ApiResourceDetails/ApiResourcePermissions/components/CreatePermissionModal/index.tsx
+++ b/packages/console/src/pages/ApiResourceDetails/ApiResourcePermissions/components/CreatePermissionModal/index.tsx
@@ -83,7 +83,7 @@ function CreatePermissionModal({ resourceId, totalResourceCount, onClose }: Prop
}}
>
{t('upsell.paywall.scopes_per_resource', {
- count: currentPlan.quota.scopesPerResourceLimit,
+ count: currentPlan.quota.scopesPerResourceLimit ?? 0,
})}
diff --git a/packages/console/src/pages/ApiResources/components/CreateForm/index.tsx b/packages/console/src/pages/ApiResources/components/CreateForm/index.tsx
index 982427f05..731e5c5d2 100644
--- a/packages/console/src/pages/ApiResources/components/CreateForm/index.tsx
+++ b/packages/console/src/pages/ApiResources/components/CreateForm/index.tsx
@@ -76,7 +76,7 @@ function CreateForm({ onClose }: Props) {
}}
>
{t('upsell.paywall.resources', {
- count: currentPlan.quota.resourcesLimit,
+ count: currentPlan.quota.resourcesLimit ?? 0,
})}
diff --git a/packages/console/src/pages/Applications/components/CreateForm/Footer/index.tsx b/packages/console/src/pages/Applications/components/CreateForm/Footer/index.tsx
index 5ba2a1339..e90ceafec 100644
--- a/packages/console/src/pages/Applications/components/CreateForm/Footer/index.tsx
+++ b/packages/console/src/pages/Applications/components/CreateForm/Footer/index.tsx
@@ -65,7 +65,7 @@ function Footer({ selectedType, isLoading, onClickCreate }: Props) {
planName: ,
}}
>
- {t('machine_to_machine', { count: quota.machineToMachineLimit })}
+ {t('machine_to_machine', { count: quota.machineToMachineLimit ?? 0 })}
)}
@@ -81,7 +81,7 @@ function Footer({ selectedType, isLoading, onClickCreate }: Props) {
planName: ,
}}
>
- {t('applications', { count: quota.applicationsLimit })}
+ {t('applications', { count: quota.applicationsLimit ?? 0 })}
);
diff --git a/packages/console/src/pages/Roles/components/CreateRoleForm/index.tsx b/packages/console/src/pages/Roles/components/CreateRoleForm/index.tsx
index a7cdc20bc..c63a28dda 100644
--- a/packages/console/src/pages/Roles/components/CreateRoleForm/index.tsx
+++ b/packages/console/src/pages/Roles/components/CreateRoleForm/index.tsx
@@ -101,7 +101,7 @@ function CreateRoleForm({ totalRoleCount, onClose }: Props) {
planName: ,
}}
>
- {t('upsell.paywall.roles', { count: currentPlan.quota.rolesLimit })}
+ {t('upsell.paywall.roles', { count: currentPlan.quota.rolesLimit ?? 0 })}
)}
diff --git a/packages/console/src/pages/Webhooks/components/CreateFormModal/CreateForm.tsx b/packages/console/src/pages/Webhooks/components/CreateFormModal/CreateForm.tsx
index 27de22ed7..5231a0a3c 100644
--- a/packages/console/src/pages/Webhooks/components/CreateFormModal/CreateForm.tsx
+++ b/packages/console/src/pages/Webhooks/components/CreateFormModal/CreateForm.tsx
@@ -77,7 +77,7 @@ function CreateForm({ totalWebhookCount, onClose }: Props) {
planName: ,
}}
>
- {t('upsell.paywall.hooks', { count: currentPlan.quota.hooksLimit })}
+ {t('upsell.paywall.hooks', { count: currentPlan.quota.hooksLimit ?? 0 })}
) : (
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index a03631d8d..ef07b7918 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -2755,8 +2755,8 @@ importers:
specifier: workspace:^1.3.1
version: link:../app-insights
'@logto/cloud':
- specifier: 0.2.5-8065345
- version: 0.2.5-8065345(zod@3.20.2)
+ specifier: 0.2.5-1795c3d
+ version: 0.2.5-1795c3d(zod@3.20.2)
'@logto/connector-kit':
specifier: workspace:^1.1.1
version: link:../toolkit/connector-kit
@@ -7224,6 +7224,16 @@ packages:
jose: 4.14.4
dev: true
+ /@logto/cloud@0.2.5-1795c3d(zod@3.20.2):
+ resolution: {integrity: sha512-zxy9zr5swOxbzYJNYtKXofj2tSIS9565d+1pT6RSbmx3Hn+JG6uzsb75PZXW9vlmmm7p1sGZeTQ+xVzKNFPsMg==}
+ engines: {node: ^18.12.0}
+ dependencies:
+ '@silverhand/essentials': 2.7.0
+ '@withtyped/server': 0.12.8(zod@3.20.2)
+ transitivePeerDependencies:
+ - zod
+ dev: true
+
/@logto/cloud@0.2.5-4d5e389(zod@3.20.2):
resolution: {integrity: sha512-vRJZGc0WvjE1rFJ0DNLaOHkhpe4TMdui/pvcTwGb/bDKzw/NM+4HtUoZj1a1DZ8Qqn24ex1WkTjxY8XGd3EruQ==}
engines: {node: ^18.12.0}
@@ -7234,16 +7244,6 @@ packages:
- zod
dev: true
- /@logto/cloud@0.2.5-8065345(zod@3.20.2):
- resolution: {integrity: sha512-qZWtGd2InkSddNPt3lKO0Ti/UZtQvzul5R7uJbnZgl0xiIpoMYEiHVI9gXQ8O+V47qtPpkS3ykTb2zj4K4Sk+w==}
- engines: {node: ^18.12.0}
- dependencies:
- '@silverhand/essentials': 2.7.0
- '@withtyped/server': 0.12.8(zod@3.20.2)
- transitivePeerDependencies:
- - zod
- dev: true
-
/@logto/js@2.1.1:
resolution: {integrity: sha512-PHikheavVK+l4ivgtzi14p184hEPgXjqQEAom1Gme1MZoopx+WlwxvHSEQBsmyvVqRtI0oiojhoU5tgYi1FKJw==}
dependencies: