diff --git a/packages/apify/src/actor.ts b/packages/apify/src/actor.ts index 627cacaefb..356ce01c5f 100644 --- a/packages/apify/src/actor.ts +++ b/packages/apify/src/actor.ts @@ -111,6 +111,11 @@ export interface ApifyEnv { */ userId: string | null; + /** + * If it is `1`, it means that the user who started the Actor is a 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) 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',