diff --git a/apify-api/openapi/components/schemas/users/EffectivePlatformFeature.yaml b/apify-api/openapi/components/schemas/users/EffectivePlatformFeature.yaml new file mode 100644 index 0000000000..cbb3ce41a2 --- /dev/null +++ b/apify-api/openapi/components/schemas/users/EffectivePlatformFeature.yaml @@ -0,0 +1,27 @@ +title: EffectivePlatformFeature +required: + - isEnabled + - disabledReason + - disabledReasonType + - isTrial + - trialExpirationAt +type: object +properties: + isEnabled: + type: boolean + example: true + disabledReason: + type: string + example: "The \"Selected public Actors for developers\" feature is not enabled for your account. Please upgrade your plan or contact support@apify.com" + nullable: true + disabledReasonType: + type: string + example: "DISABLED" + nullable: true + isTrial: + type: boolean + example: false + trialExpirationAt: + type: string + example: "2025-01-01T14:00:00.000Z" + nullable: true diff --git a/apify-api/openapi/components/schemas/users/EffectivePlatformFeatures.yaml b/apify-api/openapi/components/schemas/users/EffectivePlatformFeatures.yaml new file mode 100644 index 0000000000..f28e859b97 --- /dev/null +++ b/apify-api/openapi/components/schemas/users/EffectivePlatformFeatures.yaml @@ -0,0 +1,34 @@ +title: EffectivePlatformFeatures +required: + - ACTORS + - STORAGE + - SCHEDULER + - PROXY + - PROXY_EXTERNAL_ACCESS + - PROXY_RESIDENTIAL + - PROXY_SERPS + - WEBHOOKS + - ACTORS_PUBLIC_ALL + - ACTORS_PUBLIC_DEVELOPER +type: object +properties: + ACTORS: + $ref: './EffectivePlatformFeature.yaml' + STORAGE: + $ref: './EffectivePlatformFeature.yaml' + SCHEDULER: + $ref: './EffectivePlatformFeature.yaml' + PROXY: + $ref: './EffectivePlatformFeature.yaml' + PROXY_EXTERNAL_ACCESS: + $ref: './EffectivePlatformFeature.yaml' + PROXY_RESIDENTIAL: + $ref: './EffectivePlatformFeature.yaml' + PROXY_SERPS: + $ref: './EffectivePlatformFeature.yaml' + WEBHOOKS: + $ref: './EffectivePlatformFeature.yaml' + ACTORS_PUBLIC_ALL: + $ref: './EffectivePlatformFeature.yaml' + ACTORS_PUBLIC_DEVELOPER: + $ref: './EffectivePlatformFeature.yaml' diff --git a/apify-api/openapi/components/schemas/users/UserPrivateInfo.yaml b/apify-api/openapi/components/schemas/users/UserPrivateInfo.yaml index 213b3f5f96..35b9aa984c 100644 --- a/apify-api/openapi/components/schemas/users/UserPrivateInfo.yaml +++ b/apify-api/openapi/components/schemas/users/UserPrivateInfo.yaml @@ -6,6 +6,9 @@ required: - email - proxy - plan + - effectivePlatformFeatures + - createdAt + - isPaying type: object properties: id: @@ -23,3 +26,11 @@ properties: $ref: ./Proxy.yaml plan: $ref: ./Plan.yaml + effectivePlatformFeatures: + $ref: ./EffectivePlatformFeatures.yaml + createdAt: + type: string + example: "2022-11-29T14:48:29.381Z" + isPaying: + type: boolean + example: true \ No newline at end of file