Skip to content
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions packages/apify/src/actor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,11 @@ export interface ApifyEnv {
*/
userId: string | null;

/**
* If set to "1", the user calling the Actor is 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)
Expand Down
2 changes: 2 additions & 0 deletions packages/apify/src/configuration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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` | -
Expand Down Expand Up @@ -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',
Expand Down
Loading