From df1563908116aba136ba4c51b584f2d70da2f1bd Mon Sep 17 00:00:00 2001 From: stepskop Date: Mon, 21 Jul 2025 16:11:10 +0200 Subject: [PATCH 1/4] chore: add userIsPaying to the env var interface --- packages/apify/src/actor.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/packages/apify/src/actor.ts b/packages/apify/src/actor.ts index 627cacaefb..f3ff877301 100644 --- a/packages/apify/src/actor.ts +++ b/packages/apify/src/actor.ts @@ -111,6 +111,11 @@ export interface ApifyEnv { */ userId: string | null; + /** + * If set to "1", the user calling the Actor is as paying user (APIFY_USER_IS_PAYING) + */ + userIsPaying: string | null; + /** * Authentication token representing privileges given to the Actor run, * it can be passed to various Apify APIs (APIFY_TOKEN) From 7ec74ba4f7f2c5e95cb19b199e49ad279070712f Mon Sep 17 00:00:00 2001 From: stepskop Date: Mon, 21 Jul 2025 16:19:46 +0200 Subject: [PATCH 2/4] fix: comment --- packages/apify/src/actor.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/apify/src/actor.ts b/packages/apify/src/actor.ts index f3ff877301..83fe25eb19 100644 --- a/packages/apify/src/actor.ts +++ b/packages/apify/src/actor.ts @@ -112,7 +112,7 @@ export interface ApifyEnv { userId: string | null; /** - * If set to "1", the user calling the Actor is as paying user (APIFY_USER_IS_PAYING) + * If set to "1", the user calling the Actor is paying user (APIFY_USER_IS_PAYING) */ userIsPaying: string | null; From bd8bcc5f773039b64d3bb6ec9f044a9017f5d22a Mon Sep 17 00:00:00 2001 From: stepskop Date: Mon, 21 Jul 2025 17:16:17 +0200 Subject: [PATCH 3/4] chore: add var to env map --- packages/apify/src/configuration.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/apify/src/configuration.ts b/packages/apify/src/configuration.ts index b8dfacd42c..bc66fa6c79 100644 --- a/packages/apify/src/configuration.ts +++ b/packages/apify/src/configuration.ts @@ -106,6 +106,7 @@ export interface ConfigurationOptions extends CoreConfigurationOptions { * `proxyPort` | `APIFY_PROXY_PORT` | `8000` * `proxyStatusUrl` | `APIFY_PROXY_STATUS_URL` | `'http://proxy.apify.com'` * `userId` | `APIFY_USER_ID` | - + * `userIsPaying` | `APIFY_USER_IS_PAYING` | - * `xvfb` | `APIFY_XVFB` | - * `standbyPort` | `ACTOR_STANDBY_PORT` | `4321` * `standbyUrl` | `ACTOR_STANDBY_URL` | - @@ -151,6 +152,7 @@ export class Configuration extends CoreConfiguration { APIFY_CONTAINER_PORT: 'containerPort', APIFY_CONTAINER_URL: 'containerUrl', APIFY_USER_ID: 'userId', + APIFY_USER_IS_PAYING: 'userIsPaying', APIFY_PROXY_HOSTNAME: 'proxyHostname', APIFY_PROXY_PASSWORD: 'proxyPassword', APIFY_PROXY_STATUS_URL: 'proxyStatusUrl', From f18d22c858e90c0dd98f68fdeb0e0bf262a0d10c Mon Sep 17 00:00:00 2001 From: stepskop Date: Mon, 28 Jul 2025 10:58:19 +0200 Subject: [PATCH 4/4] docs: update comment to make it unified --- packages/apify/src/actor.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/apify/src/actor.ts b/packages/apify/src/actor.ts index 83fe25eb19..356ce01c5f 100644 --- a/packages/apify/src/actor.ts +++ b/packages/apify/src/actor.ts @@ -112,7 +112,7 @@ export interface ApifyEnv { userId: string | null; /** - * If set to "1", the user calling the Actor is paying user (APIFY_USER_IS_PAYING) + * If it is `1`, it means that the user who started the Actor is a paying user. (APIFY_USER_IS_PAYING) */ userIsPaying: string | null;