From 37b4f904703a180f9d5801b4f7729c585b379fff Mon Sep 17 00:00:00 2001 From: gllm-dev Date: Fri, 11 Oct 2024 16:05:48 +0200 Subject: [PATCH] chore: add telegram oauth provider --- .../openapi-clients/src/backend-openapi.json | 827 ++++++++++++++---- .../src/backend/.openapi-generator/FILES | 13 +- .../openapi-clients/src/backend/api.ts | 1 + .../src/backend/domain/authentication-api.ts | 102 +++ .../src/backend/domain/default-api.ts | 126 +++ .../src/backend/domain/policies-api.ts | 153 +++- .../backend/domain/transaction-intents-api.ts | 16 +- .../models/auth-provider-list-response.ts | 33 + .../auth-provider-with-type-response.ts | 44 + .../src/backend/models/authentication-type.ts | 32 + .../create-ecosystem-configuration-request.ts | 39 + .../ecosystem-configuration-response.ts | 39 + ...eport-transaction-intents-list-response.ts | 68 ++ ...r.ts => gas-report-transaction-intents.ts} | 22 +- .../src/backend/models/gas-report.ts | 7 +- .../src/backend/models/index.ts | 12 +- .../src/backend/models/login-oidcrequest.ts | 30 + .../backend/models/my-ecosystem-response.ts | 45 + .../src/backend/models/oauth-config.ts | 15 + .../backend/models/oauth-provider-telegram.ts | 30 + .../src/backend/models/oauth-provider.ts | 3 +- .../backend/models/policy-report-queries.ts | 36 + ...licy-report-transaction-intents-queries.ts | 36 + .../backend/models/telegram-oauth-config.ts | 53 ++ 24 files changed, 1605 insertions(+), 177 deletions(-) create mode 100644 packages/internal/openapi-clients/src/backend/domain/default-api.ts create mode 100644 packages/internal/openapi-clients/src/backend/models/auth-provider-list-response.ts create mode 100644 packages/internal/openapi-clients/src/backend/models/auth-provider-with-type-response.ts create mode 100644 packages/internal/openapi-clients/src/backend/models/authentication-type.ts create mode 100644 packages/internal/openapi-clients/src/backend/models/gas-report-transaction-intents-list-response.ts rename packages/internal/openapi-clients/src/backend/models/{gas-report-transaction-intents-inner.ts => gas-report-transaction-intents.ts} (69%) create mode 100644 packages/internal/openapi-clients/src/backend/models/login-oidcrequest.ts create mode 100644 packages/internal/openapi-clients/src/backend/models/my-ecosystem-response.ts create mode 100644 packages/internal/openapi-clients/src/backend/models/oauth-provider-telegram.ts create mode 100644 packages/internal/openapi-clients/src/backend/models/policy-report-queries.ts create mode 100644 packages/internal/openapi-clients/src/backend/models/policy-report-transaction-intents-queries.ts create mode 100644 packages/internal/openapi-clients/src/backend/models/telegram-oauth-config.ts diff --git a/packages/internal/openapi-clients/src/backend-openapi.json b/packages/internal/openapi-clients/src/backend-openapi.json index 743c7741..d8d158c1 100644 --- a/packages/internal/openapi-clients/src/backend-openapi.json +++ b/packages/internal/openapi-clients/src/backend-openapi.json @@ -44,6 +44,91 @@ "type": "object", "additionalProperties": false }, + "OAuthProvider": { + "description": "Enum of the supporting OAuth providers.", + "enum": [ + "google", + "twitter", + "facebook", + "discord", + "epic_games", + "telegram" + ], + "type": "string" + }, + "ThirdPartyOAuthProvider": { + "description": "Enum of the supporting third party auth providers.", + "enum": [ + "accelbyte", + "firebase", + "lootlocker", + "playfab", + "supabase", + "custom", + "oidc" + ], + "type": "string" + }, + "BasicAuthProvider": { + "description": "Enum of the supporting Basic Auth providers.", + "enum": [ + "email", + "wallet" + ], + "type": "string" + }, + "AuthProvider": { + "anyOf": [ + { + "$ref": "#/components/schemas/OAuthProvider" + }, + { + "$ref": "#/components/schemas/ThirdPartyOAuthProvider" + }, + { + "$ref": "#/components/schemas/BasicAuthProvider" + } + ], + "description": "Enum of the supporting Auth providers." + }, + "AuthenticationType": { + "enum": [ + "oauth", + "basic", + "third_party" + ], + "type": "string" + }, + "AuthProviderWithTypeResponse": { + "properties": { + "type": { + "$ref": "#/components/schemas/AuthenticationType" + }, + "provider": { + "$ref": "#/components/schemas/AuthProvider" + } + }, + "required": [ + "type", + "provider" + ], + "type": "object" + }, + "AuthProviderListResponse": { + "properties": { + "data": { + "items": { + "$ref": "#/components/schemas/AuthProviderWithTypeResponse" + }, + "type": "array" + } + }, + "required": [ + "data" + ], + "type": "object", + "additionalProperties": false + }, "JwtKey": { "properties": { "kty": { @@ -967,19 +1052,6 @@ "type": "object", "additionalProperties": false }, - "ThirdPartyOAuthProvider": { - "description": "Enum of the supporting third party auth providers.", - "enum": [ - "accelbyte", - "firebase", - "lootlocker", - "playfab", - "supabase", - "custom", - "oidc" - ], - "type": "string" - }, "CreateAuthPlayerRequest": { "properties": { "thirdPartyUserId": { @@ -1105,39 +1177,6 @@ ], "type": "string" }, - "OAuthProvider": { - "description": "Enum of the supporting OAuth providers.", - "enum": [ - "google", - "twitter", - "facebook", - "discord", - "epic_games" - ], - "type": "string" - }, - "BasicAuthProvider": { - "description": "Enum of the supporting Basic Auth providers.", - "enum": [ - "email", - "wallet" - ], - "type": "string" - }, - "AuthProvider": { - "anyOf": [ - { - "$ref": "#/components/schemas/OAuthProvider" - }, - { - "$ref": "#/components/schemas/ThirdPartyOAuthProvider" - }, - { - "$ref": "#/components/schemas/BasicAuthProvider" - } - ], - "description": "Enum of the supporting Auth providers." - }, "SupabaseAuthConfig": { "description": "Supabase oauth configuration", "properties": { @@ -1314,6 +1353,40 @@ "type": "object", "additionalProperties": false }, + "OAuthProvider.TELEGRAM": { + "enum": [ + "telegram" + ], + "type": "string" + }, + "TelegramOAuthConfig": { + "properties": { + "enabled": { + "type": "boolean", + "description": "Enable OAuth provider." + }, + "provider": { + "$ref": "#/components/schemas/OAuthProvider.TELEGRAM", + "description": "OAuth provider type" + }, + "botUsername": { + "type": "string", + "description": "Telegram bot username." + }, + "botToken": { + "type": "string", + "description": "Telegram bot token." + } + }, + "required": [ + "enabled", + "provider", + "botUsername", + "botToken" + ], + "type": "object", + "additionalProperties": false + }, "OAuthProvider.FACEBOOK": { "enum": [ "facebook" @@ -1551,6 +1624,9 @@ { "$ref": "#/components/schemas/TwitterOAuthConfig" }, + { + "$ref": "#/components/schemas/TelegramOAuthConfig" + }, { "$ref": "#/components/schemas/FacebookOAuthConfig" }, @@ -1792,6 +1868,20 @@ "type": "object", "additionalProperties": false }, + "LoginOIDCRequest": { + "properties": { + "identityToken": { + "type": "string", + "description": "The identity token of the user.", + "example": "token" + } + }, + "required": [ + "identityToken" + ], + "type": "object", + "additionalProperties": false + }, "SignupRequest": { "properties": { "email": { @@ -3225,6 +3315,183 @@ "type": "object", "additionalProperties": false }, + "EcosystemMetadata": { + "properties": {}, + "type": "object", + "additionalProperties": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "number", + "format": "double" + } + ] + } + }, + "EcosystemConfigurationResponse": { + "properties": { + "customDomain": { + "type": "string", + "description": "Subdomain of the ecosystem." + }, + "primaryColor": { + "type": "string", + "description": "Primary color of the ecosystem." + }, + "primaryColorForeground": { + "type": "string", + "description": "Primary color foreground of the ecosystem." + }, + "radius": { + "type": "string", + "description": "Radius of the ecosystem." + }, + "logoUrl": { + "type": "string", + "description": "Logo URL of the ecosystem." + }, + "ecosystemWalletDomains": { + "items": { + "type": "string" + }, + "type": "array", + "description": "Whitelisted frontend domains of the ecosystem." + }, + "termsOfServiceUrl": { + "type": "string", + "description": "Terms of service URL", + "example": "https://example.com/terms" + }, + "privacyPolicyUrl": { + "type": "string", + "description": "Privacy policy URL", + "example": "https://example.com/privacy" + }, + "faviconUrl": { + "type": "string", + "description": "Favicon URL", + "example": "https://example.com/favicon.ico" + }, + "dashboardExamples": { + "items": { + "$ref": "#/components/schemas/EcosystemMetadata" + }, + "type": "array", + "description": "Examples of the ecosystem.", + "example": [] + }, + "dashboardSDKs": { + "items": { + "$ref": "#/components/schemas/EcosystemMetadata" + }, + "type": "array", + "description": "SDKs of the ecosystem.", + "example": [] + } + }, + "required": [ + "customDomain", + "primaryColor", + "primaryColorForeground", + "radius", + "logoUrl", + "ecosystemWalletDomains" + ], + "type": "object", + "additionalProperties": false + }, + "CreateEcosystemConfigurationRequest": { + "properties": { + "customDomain": { + "type": "string", + "description": "Custom domain of the ecosystem." + }, + "primaryColor": { + "type": "string", + "description": "Primary color of the ecosystem." + }, + "primaryColorForeground": { + "type": "string", + "description": "Primary color foreground of the ecosystem." + }, + "radius": { + "type": "string", + "description": "Radius of the ecosystem." + }, + "logoUrl": { + "type": "string", + "description": "Logo URL of the ecosystem." + }, + "ecosystemWalletDomains": { + "items": { + "type": "string" + }, + "type": "array", + "description": "URLs where the ecosystem wallet is hosted." + }, + "termsOfServiceUrl": { + "type": "string", + "description": "Terms of service URL", + "example": "https://example.com/terms" + }, + "privacyPolicyUrl": { + "type": "string", + "description": "Privacy policy URL", + "example": "https://example.com/privacy" + }, + "faviconUrl": { + "type": "string", + "description": "Favicon URL", + "example": "https://example.com/favicon.ico" + }, + "dashboardExamples": { + "items": { + "$ref": "#/components/schemas/EcosystemMetadata" + }, + "type": "array", + "description": "Examples of the ecosystem.", + "example": [] + }, + "dashboardSDKs": { + "items": { + "$ref": "#/components/schemas/EcosystemMetadata" + }, + "type": "array", + "description": "SDKs of the ecosystem.", + "example": [] + } + }, + "required": [ + "customDomain", + "primaryColor", + "primaryColorForeground", + "radius", + "logoUrl" + ], + "type": "object", + "additionalProperties": false + }, + "MyEcosystemResponse": { + "properties": { + "publishableKey": { + "type": "string" + }, + "name": { + "type": "string" + }, + "configuration": { + "$ref": "#/components/schemas/EcosystemConfigurationResponse" + } + }, + "required": [ + "publishableKey", + "name" + ], + "type": "object", + "additionalProperties": false + }, "EntityType.SMTP_CONFIG": { "enum": [ "smtpConfig" @@ -3512,72 +3779,6 @@ "type": "object", "additionalProperties": false }, - "EcosystemConfigurationResponse": { - "properties": { - "customDomain": { - "type": "string", - "description": "Subdomain of the ecosystem." - }, - "primaryColor": { - "type": "string", - "description": "Primary color of the ecosystem." - }, - "primaryColorForeground": { - "type": "string", - "description": "Primary color foreground of the ecosystem." - }, - "radius": { - "type": "string", - "description": "Radius of the ecosystem." - }, - "logoUrl": { - "type": "string", - "description": "Logo URL of the ecosystem." - } - }, - "required": [ - "customDomain", - "primaryColor", - "primaryColorForeground", - "radius", - "logoUrl" - ], - "type": "object", - "additionalProperties": false - }, - "CreateEcosystemConfigurationRequest": { - "properties": { - "customDomain": { - "type": "string", - "description": "Custom domain of the ecosystem." - }, - "primaryColor": { - "type": "string", - "description": "Primary color of the ecosystem." - }, - "primaryColorForeground": { - "type": "string", - "description": "Primary color foreground of the ecosystem." - }, - "radius": { - "type": "string", - "description": "Radius of the ecosystem." - }, - "logoUrl": { - "type": "string", - "description": "Logo URL of the ecosystem." - } - }, - "required": [ - "customDomain", - "primaryColor", - "primaryColorForeground", - "radius", - "logoUrl" - ], - "type": "object", - "additionalProperties": false - }, "ProjectListResponse": { "properties": { "object": { @@ -6326,6 +6527,34 @@ "type": "object", "additionalProperties": false }, + "GasReportTransactionIntents": { + "properties": { + "id": { + "type": "string" + }, + "gasFee": { + "type": "string" + }, + "gasPrice": { + "type": "string" + }, + "gasUsed": { + "type": "string" + }, + "gasFeeInUSD": { + "type": "string" + } + }, + "required": [ + "id", + "gasFee", + "gasPrice", + "gasUsed", + "gasFeeInUSD" + ], + "type": "object", + "additionalProperties": false + }, "GasReport": { "properties": { "period": { @@ -6345,47 +6574,80 @@ }, "transactionIntents": { "items": { - "properties": { - "gasFeeInUSD": { - "type": "string" - }, - "gasUsed": { - "type": "string" - }, - "gasPrice": { - "type": "string" - }, - "gasFee": { - "type": "string" - }, - "id": { - "type": "string" - } - }, - "required": [ - "gasFeeInUSD", - "gasUsed", - "gasPrice", - "gasFee", - "id" - ], - "type": "object" + "$ref": "#/components/schemas/GasReportTransactionIntents" + }, + "type": "array", + "deprecated": true + } + }, + "required": [ + "period", + "averageTransactionFee", + "totalTransactionFeeInCustomTokens", + "totalTransactionFee", + "totalTransactionFeeInUSD", + "transactionIntents" + ], + "type": "object", + "additionalProperties": false + }, + "GasReportListResponse": { + "properties": { + "object": { + "$ref": "#/components/schemas/ResponseType.LIST" + }, + "url": { + "type": "string" + }, + "data": { + "items": { + "$ref": "#/components/schemas/GasReport" }, "type": "array" + }, + "start": { + "type": "integer", + "format": "int32" + }, + "end": { + "type": "integer", + "format": "int32" + }, + "total": { + "type": "integer", + "format": "int32" } }, "required": [ - "period", - "averageTransactionFee", - "totalTransactionFeeInCustomTokens", - "totalTransactionFee", - "totalTransactionFeeInUSD", - "transactionIntents" + "object", + "url", + "data", + "start", + "end", + "total" ], "type": "object", "additionalProperties": false }, - "GasReportListResponse": { + "PolicyReportQueries": { + "properties": { + "to": { + "type": "number", + "format": "double", + "description": "The start date of the period in unix timestamp.", + "example": 1612137600 + }, + "from": { + "type": "number", + "format": "double", + "description": "The end date of the period in unix timestamp.", + "example": 1612137600 + } + }, + "type": "object", + "additionalProperties": false + }, + "GasReportTransactionIntentsListResponse": { "properties": { "object": { "$ref": "#/components/schemas/ResponseType.LIST" @@ -6395,7 +6657,7 @@ }, "data": { "items": { - "$ref": "#/components/schemas/GasReport" + "$ref": "#/components/schemas/GasReportTransactionIntents" }, "type": "array" }, @@ -6423,6 +6685,28 @@ "type": "object", "additionalProperties": false }, + "PolicyReportTransactionIntentsQueries": { + "properties": { + "to": { + "type": "number", + "format": "double", + "description": "The start date of the period in unix timestamp.", + "example": 1612137600 + }, + "from": { + "type": "number", + "format": "double", + "description": "The end date of the period in unix timestamp.", + "example": 1612137600 + } + }, + "required": [ + "to", + "from" + ], + "type": "object", + "additionalProperties": false + }, "PolicyBalanceWithdrawResponse": { "properties": { "policy": { @@ -7913,6 +8197,46 @@ ] } }, + "/iam/v1/providers": { + "get": { + "operationId": "ListAvailableAuthProviders", + "responses": { + "200": { + "description": "Ok", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AuthProviderListResponse" + }, + "examples": { + "Example 1": { + "value": { + "data": [ + { + "provider": "firebase", + "type": "third_party" + } + ] + } + } + } + } + } + }, + "401": { + "description": "" + } + }, + "description": "List available authentication methods for the current project environment.", + "summary": "List of available authentication methods.", + "security": [ + { + "pk": [] + } + ], + "parameters": [] + } + }, "/iam/v1/{publishable_key}/jwks.json": { "get": { "operationId": "GetJwks", @@ -8072,6 +8396,9 @@ "security": [ { "sk": [] + }, + { + "pk_guardian_gate": [] } ], "parameters": [], @@ -9053,6 +9380,76 @@ } } }, + "/iam/v1/oidc/login": { + "post": { + "operationId": "LoginOIDC", + "responses": { + "200": { + "description": "Ok", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AuthResponse" + }, + "examples": { + "Example 1": { + "value": { + "player": { + "id": "pla_...", + "object": "player", + "createdAt": 1234567890, + "linkedAccounts": [ + { + "provider": "email", + "email": "jaume@openfort.xyz", + "disabled": false + } + ] + }, + "token": "abcd....", + "refreshToken": "efgh...." + } + } + } + } + } + }, + "401": { + "description": "" + } + }, + "description": "Authenticate a player from an identity token.", + "summary": "OIDC Identity token.", + "tags": [ + "Authentication" + ], + "security": [ + { + "pk": [] + } + ], + "parameters": [ + { + "in": "header", + "name": "x-game", + "required": false, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/LoginOIDCRequest" + } + } + } + } + } + }, "/iam/v1/password/signup": { "post": { "operationId": "SignupEmailPassword", @@ -13919,6 +14316,124 @@ "type": "string" }, "example": "pol_48eeba57-2cd5-4159-a2cb-057a23a35e65" + }, + { + "description": "The start date of the period in unix timestamp.", + "in": "query", + "name": "to", + "required": false, + "schema": { + "format": "double", + "type": "number" + }, + "example": 1612137600 + }, + { + "description": "The end date of the period in unix timestamp.", + "in": "query", + "name": "from", + "required": false, + "schema": { + "format": "double", + "type": "number" + }, + "example": 1612137600 + } + ] + } + }, + "/v1/policies/{id}/reports/transaction_intents": { + "get": { + "operationId": "GetPolicyReportTransactionIntents", + "responses": { + "200": { + "description": "Successful response.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GasReportTransactionIntentsListResponse" + }, + "examples": { + "Example 1": { + "value": { + "data": [ + { + "id": "tin_47eed6b7-...-ce4a602c5f17", + "gasFee": "0.00421644", + "gasPrice": "0.34918179665034244", + "gasUsed": "0.000000000000421644", + "gasFeeInUSD": "0.00148" + }, + { + "id": "tin_6d3b4a95-...-f63927018815", + "gasFee": "0.00122705", + "gasPrice": "0.34918179665034244", + "gasUsed": "0.000000000000122705", + "gasFeeInUSD": "0.00043" + } + ], + "start": 0, + "end": 1, + "total": 1, + "url": "/v1/policies/pol_48eeba57-2cd5-4159-a2cb-057a23a35e65/reports", + "object": "list" + } + } + } + } + } + }, + "400": { + "description": "" + }, + "404": { + "description": "" + } + }, + "summary": "List transaction intents of a policy report.", + "tags": [ + "Policies" + ], + "security": [ + { + "sk": [] + }, + { + "user_project": [] + } + ], + "parameters": [ + { + "description": "Specifies the unique policy ID (starts with pol_).", + "in": "path", + "name": "id", + "required": true, + "schema": { + "type": "string" + }, + "example": "pol_48eeba57-2cd5-4159-a2cb-057a23a35e65" + }, + { + "description": "The start date of the period in unix timestamp.", + "in": "query", + "name": "to", + "required": true, + "schema": { + "format": "double", + "type": "number" + }, + "example": 1612137600 + }, + { + "description": "The end date of the period in unix timestamp.", + "in": "query", + "name": "from", + "required": true, + "schema": { + "format": "double", + "type": "number" + }, + "example": 1612137600 } ] } @@ -14679,6 +15194,9 @@ "security": [ { "sk": [] + }, + { + "pk_identity_token": [] } ], "parameters": [ @@ -14771,6 +15289,9 @@ "security": [ { "sk": [] + }, + { + "pk_identity_token": [] } ], "parameters": [ @@ -14866,6 +15387,9 @@ }, { "sk": [] + }, + { + "pk_identity_token": [] } ], "parameters": [ @@ -16530,6 +17054,9 @@ }, { "pk_access_token": [] + }, + { + "pk_identity_token": [] } ], "parameters": [ @@ -16771,6 +17298,9 @@ "security": [ { "sk": [] + }, + { + "pk_identity_token": [] } ], "parameters": [], @@ -16890,8 +17420,8 @@ } } }, - "description": "Broadcasts a signed TransactionIntent to the blockchain.\n\nUse this endpoint to send the signed `userOperationHash`. Openfort will then put it on-chain.", - "summary": "Send a signed transaction userOperationHash.", + "description": "Broadcasts a signed TransactionIntent to the blockchain.\n\nUse this endpoint to send the signed `signableHash`. Openfort will then put it on-chain.", + "summary": "Send a signed transaction signableHash.", "tags": [ "TransactionIntents" ], @@ -16901,6 +17431,9 @@ }, { "sk": [] + }, + { + "pk_identity_token": [] } ], "parameters": [ diff --git a/packages/internal/openapi-clients/src/backend/.openapi-generator/FILES b/packages/internal/openapi-clients/src/backend/.openapi-generator/FILES index 9e1a0df4..71db99e3 100644 --- a/packages/internal/openapi-clients/src/backend/.openapi-generator/FILES +++ b/packages/internal/openapi-clients/src/backend/.openapi-generator/FILES @@ -9,6 +9,7 @@ domain/accounts-api.ts domain/admin-authentication-api.ts domain/authentication-api.ts domain/contracts-api.ts +domain/default-api.ts domain/events-api.ts domain/exchange-api.ts domain/inventories-api.ts @@ -53,11 +54,14 @@ models/auth-player-list-response.ts models/auth-player-response-player.ts models/auth-player-response-with-recovery-share.ts models/auth-player-response.ts +models/auth-provider-list-response.ts models/auth-provider-response.ts +models/auth-provider-with-type-response.ts models/auth-provider.ts models/auth-response.ts models/auth-session-response.ts models/authenticate-oauth-request.ts +models/authentication-type.ts models/authorize-player-request.ts models/authorize200-response.ts models/balance-event-response.ts @@ -165,7 +169,8 @@ models/fixed-rate-token-policy-strategy.ts models/gas-per-interval-limit-policy-rule-response.ts models/gas-per-transaction-limit-policy-rule-response.ts models/gas-report-list-response.ts -models/gas-report-transaction-intents-inner.ts +models/gas-report-transaction-intents-list-response.ts +models/gas-report-transaction-intents.ts models/gas-report.ts models/google-oauth-config.ts models/index.ts @@ -181,11 +186,13 @@ models/linked-account-response.ts models/list-subscription-logs-request.ts models/log-response.ts models/log.ts +models/login-oidcrequest.ts models/login-request.ts models/logout-request.ts models/loot-locker-oauth-config.ts models/money.ts models/month-range.ts +models/my-ecosystem-response.ts models/next-action-payload.ts models/next-action-response.ts models/next-action-type.ts @@ -198,6 +205,7 @@ models/oauth-provider-discord.ts models/oauth-provider-epicgames.ts models/oauth-provider-facebook.ts models/oauth-provider-google.ts +models/oauth-provider-telegram.ts models/oauth-provider-twitter.ts models/oauth-provider.ts models/oauth-request.ts @@ -235,6 +243,8 @@ models/policy-rate-limit-countperinterval.ts models/policy-rate-limit-gasperinterval.ts models/policy-rate-limit-gaspertransaction.ts models/policy-rate-limit.ts +models/policy-report-queries.ts +models/policy-report-transaction-intents-queries.ts models/policy-response-expandable.ts models/policy-response-policy-rules-inner.ts models/policy-response.ts @@ -291,6 +301,7 @@ models/subscription-list-response.ts models/subscription-response-plan.ts models/subscription-response.ts models/supabase-auth-config.ts +models/telegram-oauth-config.ts models/third-party-oauth-provider-accelbyte.ts models/third-party-oauth-provider-custom.ts models/third-party-oauth-provider-firebase.ts diff --git a/packages/internal/openapi-clients/src/backend/api.ts b/packages/internal/openapi-clients/src/backend/api.ts index 20e2bce1..fd601035 100644 --- a/packages/internal/openapi-clients/src/backend/api.ts +++ b/packages/internal/openapi-clients/src/backend/api.ts @@ -18,6 +18,7 @@ export * from './domain/accounts-api'; export * from './domain/admin-authentication-api'; export * from './domain/authentication-api'; export * from './domain/contracts-api'; +export * from './domain/default-api'; export * from './domain/events-api'; export * from './domain/exchange-api'; export * from './domain/inventories-api'; diff --git a/packages/internal/openapi-clients/src/backend/domain/authentication-api.ts b/packages/internal/openapi-clients/src/backend/domain/authentication-api.ts index fbd980c9..9c592e6f 100644 --- a/packages/internal/openapi-clients/src/backend/domain/authentication-api.ts +++ b/packages/internal/openapi-clients/src/backend/domain/authentication-api.ts @@ -34,6 +34,8 @@ import { DeprecatedAuthenticatedPlayerResponse } from '../models'; // @ts-ignore import { JwtKeyResponse } from '../models'; // @ts-ignore +import { LoginOIDCRequest } from '../models'; +// @ts-ignore import { LoginRequest } from '../models'; // @ts-ignore import { LogoutRequest } from '../models'; @@ -491,6 +493,51 @@ export const AuthenticationApiAxiosParamCreator = function (configuration?: Conf options: localVarRequestOptions, }; }, + /** + * Authenticate a player from an identity token. + * @summary OIDC Identity token. + * @param {LoginOIDCRequest} loginOIDCRequest + * @param {string} [xGame] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + loginOIDC: async (loginOIDCRequest: LoginOIDCRequest, xGame?: string, options: AxiosRequestConfig = {}): Promise => { + // verify required parameter 'loginOIDCRequest' is not null or undefined + assertParamExists('loginOIDC', 'loginOIDCRequest', loginOIDCRequest) + const localVarPath = `/iam/v1/oidc/login`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication pk required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + if (xGame != null) { + localVarHeaderParameter['x-game'] = String(xGame); + } + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(loginOIDCRequest, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, /** * When using Openfort Auth, the endpoint logs out the player. * @summary Log out a player. @@ -1206,6 +1253,18 @@ export const AuthenticationApiFp = function(configuration?: Configuration) { const localVarAxiosArgs = await localVarAxiosParamCreator.loginEmailPassword(loginRequest, xGame, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, + /** + * Authenticate a player from an identity token. + * @summary OIDC Identity token. + * @param {LoginOIDCRequest} loginOIDCRequest + * @param {string} [xGame] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async loginOIDC(loginOIDCRequest: LoginOIDCRequest, xGame?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.loginOIDC(loginOIDCRequest, xGame, options); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, /** * When using Openfort Auth, the endpoint logs out the player. * @summary Log out a player. @@ -1483,6 +1542,16 @@ export const AuthenticationApiFactory = function (configuration?: Configuration, loginEmailPassword(requestParameters: AuthenticationApiLoginEmailPasswordRequest, options?: AxiosRequestConfig): AxiosPromise { return localVarFp.loginEmailPassword(requestParameters.loginRequest, requestParameters.xGame, options).then((request) => request(axios, basePath)); }, + /** + * Authenticate a player from an identity token. + * @summary OIDC Identity token. + * @param {AuthenticationApiLoginOIDCRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + loginOIDC(requestParameters: AuthenticationApiLoginOIDCRequest, options?: AxiosRequestConfig): AxiosPromise { + return localVarFp.loginOIDC(requestParameters.loginOIDCRequest, requestParameters.xGame, options).then((request) => request(axios, basePath)); + }, /** * When using Openfort Auth, the endpoint logs out the player. * @summary Log out a player. @@ -1816,6 +1885,27 @@ export interface AuthenticationApiLoginEmailPasswordRequest { readonly xGame?: string } +/** + * Request parameters for loginOIDC operation in AuthenticationApi. + * @export + * @interface AuthenticationApiLoginOIDCRequest + */ +export interface AuthenticationApiLoginOIDCRequest { + /** + * + * @type {LoginOIDCRequest} + * @memberof AuthenticationApiLoginOIDC + */ + readonly loginOIDCRequest: LoginOIDCRequest + + /** + * + * @type {string} + * @memberof AuthenticationApiLoginOIDC + */ + readonly xGame?: string +} + /** * Request parameters for logout operation in AuthenticationApi. * @export @@ -2161,6 +2251,18 @@ export class AuthenticationApi extends BaseAPI { return AuthenticationApiFp(this.configuration).loginEmailPassword(requestParameters.loginRequest, requestParameters.xGame, options).then((request) => request(this.axios, this.basePath)); } + /** + * Authenticate a player from an identity token. + * @summary OIDC Identity token. + * @param {AuthenticationApiLoginOIDCRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof AuthenticationApi + */ + public loginOIDC(requestParameters: AuthenticationApiLoginOIDCRequest, options?: AxiosRequestConfig) { + return AuthenticationApiFp(this.configuration).loginOIDC(requestParameters.loginOIDCRequest, requestParameters.xGame, options).then((request) => request(this.axios, this.basePath)); + } + /** * When using Openfort Auth, the endpoint logs out the player. * @summary Log out a player. diff --git a/packages/internal/openapi-clients/src/backend/domain/default-api.ts b/packages/internal/openapi-clients/src/backend/domain/default-api.ts new file mode 100644 index 00000000..734c3b1a --- /dev/null +++ b/packages/internal/openapi-clients/src/backend/domain/default-api.ts @@ -0,0 +1,126 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Openfort API + * Complete Openfort API references and guides can be found at: https://openfort.xyz/docs + * + * The version of the OpenAPI document: 1.0.0 + * Contact: founders@openfort.xyz + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +import type { Configuration } from '../configuration'; +import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios'; +import globalAxios from 'axios'; +// Some imports not used depending on template conditions +// @ts-ignore +import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common'; +// @ts-ignore +import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base'; +// @ts-ignore +import { AuthProviderListResponse } from '../models'; +/** + * DefaultApi - axios parameter creator + * @export + */ +export const DefaultApiAxiosParamCreator = function (configuration?: Configuration) { + return { + /** + * List available authentication methods for the current project environment. + * @summary List of available authentication methods. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + listAvailableAuthProviders: async (options: AxiosRequestConfig = {}): Promise => { + const localVarPath = `/iam/v1/providers`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication pk required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + } +}; + +/** + * DefaultApi - functional programming interface + * @export + */ +export const DefaultApiFp = function(configuration?: Configuration) { + const localVarAxiosParamCreator = DefaultApiAxiosParamCreator(configuration) + return { + /** + * List available authentication methods for the current project environment. + * @summary List of available authentication methods. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async listAvailableAuthProviders(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.listAvailableAuthProviders(options); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + } +}; + +/** + * DefaultApi - factory interface + * @export + */ +export const DefaultApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { + const localVarFp = DefaultApiFp(configuration) + return { + /** + * List available authentication methods for the current project environment. + * @summary List of available authentication methods. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + listAvailableAuthProviders(options?: AxiosRequestConfig): AxiosPromise { + return localVarFp.listAvailableAuthProviders(options).then((request) => request(axios, basePath)); + }, + }; +}; + +/** + * DefaultApi - object-oriented interface + * @export + * @class DefaultApi + * @extends {BaseAPI} + */ +export class DefaultApi extends BaseAPI { + /** + * List available authentication methods for the current project environment. + * @summary List of available authentication methods. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof DefaultApi + */ + public listAvailableAuthProviders(options?: AxiosRequestConfig) { + return DefaultApiFp(this.configuration).listAvailableAuthProviders(options).then((request) => request(this.axios, this.basePath)); + } +} + diff --git a/packages/internal/openapi-clients/src/backend/domain/policies-api.ts b/packages/internal/openapi-clients/src/backend/domain/policies-api.ts index c5519a1b..0957cf72 100644 --- a/packages/internal/openapi-clients/src/backend/domain/policies-api.ts +++ b/packages/internal/openapi-clients/src/backend/domain/policies-api.ts @@ -26,6 +26,8 @@ import { CreatePolicyRequest } from '../models'; // @ts-ignore import { GasReportListResponse } from '../models'; // @ts-ignore +import { GasReportTransactionIntentsListResponse } from '../models'; +// @ts-ignore import { PolicyBalanceWithdrawResponse } from '../models'; // @ts-ignore import { PolicyDeleteResponse } from '../models'; @@ -393,6 +395,58 @@ export const PoliciesApiAxiosParamCreator = function (configuration?: Configurat + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @summary List transaction intents of a policy report. + * @param {string} id Specifies the unique policy ID (starts with pol_). + * @param {number} to The start date of the period in unix timestamp. + * @param {number} from The end date of the period in unix timestamp. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getPolicyReportTransactionIntents: async (id: string, to: number, from: number, options: AxiosRequestConfig = {}): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('getPolicyReportTransactionIntents', 'id', id) + // verify required parameter 'to' is not null or undefined + assertParamExists('getPolicyReportTransactionIntents', 'to', to) + // verify required parameter 'from' is not null or undefined + assertParamExists('getPolicyReportTransactionIntents', 'from', from) + const localVarPath = `/v1/policies/{id}/reports/transaction_intents` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication sk required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + if (to !== undefined) { + localVarQueryParameter['to'] = to; + } + + if (from !== undefined) { + localVarQueryParameter['from'] = from; + } + + + setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -406,10 +460,12 @@ export const PoliciesApiAxiosParamCreator = function (configuration?: Configurat * * @summary List all gas reports of a policy. * @param {string} id Specifies the unique policy ID (starts with pol_). + * @param {number} [to] The start date of the period in unix timestamp. + * @param {number} [from] The end date of the period in unix timestamp. * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getPolicyTotalGasUsage: async (id: string, options: AxiosRequestConfig = {}): Promise => { + getPolicyTotalGasUsage: async (id: string, to?: number, from?: number, options: AxiosRequestConfig = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('getPolicyTotalGasUsage', 'id', id) const localVarPath = `/v1/policies/{id}/reports` @@ -429,6 +485,14 @@ export const PoliciesApiAxiosParamCreator = function (configuration?: Configurat // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) + if (to !== undefined) { + localVarQueryParameter['to'] = to; + } + + if (from !== undefined) { + localVarQueryParameter['from'] = from; + } + setSearchParams(localVarUrlObj, localVarQueryParameter); @@ -591,15 +655,30 @@ export const PoliciesApiFp = function(configuration?: Configuration) { const localVarAxiosArgs = await localVarAxiosParamCreator.getPolicyBalance(id, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, + /** + * + * @summary List transaction intents of a policy report. + * @param {string} id Specifies the unique policy ID (starts with pol_). + * @param {number} to The start date of the period in unix timestamp. + * @param {number} from The end date of the period in unix timestamp. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async getPolicyReportTransactionIntents(id: string, to: number, from: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getPolicyReportTransactionIntents(id, to, from, options); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, /** * * @summary List all gas reports of a policy. * @param {string} id Specifies the unique policy ID (starts with pol_). + * @param {number} [to] The start date of the period in unix timestamp. + * @param {number} [from] The end date of the period in unix timestamp. * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async getPolicyTotalGasUsage(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.getPolicyTotalGasUsage(id, options); + async getPolicyTotalGasUsage(id: string, to?: number, from?: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getPolicyTotalGasUsage(id, to, from, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** @@ -704,6 +783,16 @@ export const PoliciesApiFactory = function (configuration?: Configuration, baseP getPolicyBalance(requestParameters: PoliciesApiGetPolicyBalanceRequest, options?: AxiosRequestConfig): AxiosPromise { return localVarFp.getPolicyBalance(requestParameters.id, options).then((request) => request(axios, basePath)); }, + /** + * + * @summary List transaction intents of a policy report. + * @param {PoliciesApiGetPolicyReportTransactionIntentsRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getPolicyReportTransactionIntents(requestParameters: PoliciesApiGetPolicyReportTransactionIntentsRequest, options?: AxiosRequestConfig): AxiosPromise { + return localVarFp.getPolicyReportTransactionIntents(requestParameters.id, requestParameters.to, requestParameters.from, options).then((request) => request(axios, basePath)); + }, /** * * @summary List all gas reports of a policy. @@ -712,7 +801,7 @@ export const PoliciesApiFactory = function (configuration?: Configuration, baseP * @throws {RequiredError} */ getPolicyTotalGasUsage(requestParameters: PoliciesApiGetPolicyTotalGasUsageRequest, options?: AxiosRequestConfig): AxiosPromise { - return localVarFp.getPolicyTotalGasUsage(requestParameters.id, options).then((request) => request(axios, basePath)); + return localVarFp.getPolicyTotalGasUsage(requestParameters.id, requestParameters.to, requestParameters.from, options).then((request) => request(axios, basePath)); }, /** * @@ -902,6 +991,34 @@ export interface PoliciesApiGetPolicyBalanceRequest { readonly id: string } +/** + * Request parameters for getPolicyReportTransactionIntents operation in PoliciesApi. + * @export + * @interface PoliciesApiGetPolicyReportTransactionIntentsRequest + */ +export interface PoliciesApiGetPolicyReportTransactionIntentsRequest { + /** + * Specifies the unique policy ID (starts with pol_). + * @type {string} + * @memberof PoliciesApiGetPolicyReportTransactionIntents + */ + readonly id: string + + /** + * The start date of the period in unix timestamp. + * @type {number} + * @memberof PoliciesApiGetPolicyReportTransactionIntents + */ + readonly to: number + + /** + * The end date of the period in unix timestamp. + * @type {number} + * @memberof PoliciesApiGetPolicyReportTransactionIntents + */ + readonly from: number +} + /** * Request parameters for getPolicyTotalGasUsage operation in PoliciesApi. * @export @@ -914,6 +1031,20 @@ export interface PoliciesApiGetPolicyTotalGasUsageRequest { * @memberof PoliciesApiGetPolicyTotalGasUsage */ readonly id: string + + /** + * The start date of the period in unix timestamp. + * @type {number} + * @memberof PoliciesApiGetPolicyTotalGasUsage + */ + readonly to?: number + + /** + * The end date of the period in unix timestamp. + * @type {number} + * @memberof PoliciesApiGetPolicyTotalGasUsage + */ + readonly from?: number } /** @@ -1040,6 +1171,18 @@ export class PoliciesApi extends BaseAPI { return PoliciesApiFp(this.configuration).getPolicyBalance(requestParameters.id, options).then((request) => request(this.axios, this.basePath)); } + /** + * + * @summary List transaction intents of a policy report. + * @param {PoliciesApiGetPolicyReportTransactionIntentsRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof PoliciesApi + */ + public getPolicyReportTransactionIntents(requestParameters: PoliciesApiGetPolicyReportTransactionIntentsRequest, options?: AxiosRequestConfig) { + return PoliciesApiFp(this.configuration).getPolicyReportTransactionIntents(requestParameters.id, requestParameters.to, requestParameters.from, options).then((request) => request(this.axios, this.basePath)); + } + /** * * @summary List all gas reports of a policy. @@ -1049,7 +1192,7 @@ export class PoliciesApi extends BaseAPI { * @memberof PoliciesApi */ public getPolicyTotalGasUsage(requestParameters: PoliciesApiGetPolicyTotalGasUsageRequest, options?: AxiosRequestConfig) { - return PoliciesApiFp(this.configuration).getPolicyTotalGasUsage(requestParameters.id, options).then((request) => request(this.axios, this.basePath)); + return PoliciesApiFp(this.configuration).getPolicyTotalGasUsage(requestParameters.id, requestParameters.to, requestParameters.from, options).then((request) => request(this.axios, this.basePath)); } /** diff --git a/packages/internal/openapi-clients/src/backend/domain/transaction-intents-api.ts b/packages/internal/openapi-clients/src/backend/domain/transaction-intents-api.ts index 12623e2b..93425428 100644 --- a/packages/internal/openapi-clients/src/backend/domain/transaction-intents-api.ts +++ b/packages/internal/openapi-clients/src/backend/domain/transaction-intents-api.ts @@ -251,8 +251,8 @@ export const TransactionIntentsApiAxiosParamCreator = function (configuration?: }; }, /** - * Broadcasts a signed TransactionIntent to the blockchain. Use this endpoint to send the signed `userOperationHash`. Openfort will then put it on-chain. - * @summary Send a signed transaction userOperationHash. + * Broadcasts a signed TransactionIntent to the blockchain. Use this endpoint to send the signed `signableHash`. Openfort will then put it on-chain. + * @summary Send a signed transaction signableHash. * @param {string} id Specifies the unique transaction intent ID (starts with tin_). * @param {SignatureRequest} signatureRequest * @param {*} [options] Override http request option. @@ -363,8 +363,8 @@ export const TransactionIntentsApiFp = function(configuration?: Configuration) { return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * Broadcasts a signed TransactionIntent to the blockchain. Use this endpoint to send the signed `userOperationHash`. Openfort will then put it on-chain. - * @summary Send a signed transaction userOperationHash. + * Broadcasts a signed TransactionIntent to the blockchain. Use this endpoint to send the signed `signableHash`. Openfort will then put it on-chain. + * @summary Send a signed transaction signableHash. * @param {string} id Specifies the unique transaction intent ID (starts with tin_). * @param {SignatureRequest} signatureRequest * @param {*} [options] Override http request option. @@ -425,8 +425,8 @@ export const TransactionIntentsApiFactory = function (configuration?: Configurat return localVarFp.getTransactionIntents(requestParameters.limit, requestParameters.skip, requestParameters.order, requestParameters.expand, requestParameters.chainId, requestParameters.account, requestParameters.player, requestParameters.status, requestParameters.policy, options).then((request) => request(axios, basePath)); }, /** - * Broadcasts a signed TransactionIntent to the blockchain. Use this endpoint to send the signed `userOperationHash`. Openfort will then put it on-chain. - * @summary Send a signed transaction userOperationHash. + * Broadcasts a signed TransactionIntent to the blockchain. Use this endpoint to send the signed `signableHash`. Openfort will then put it on-chain. + * @summary Send a signed transaction signableHash. * @param {TransactionIntentsApiSignatureRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} @@ -640,8 +640,8 @@ export class TransactionIntentsApi extends BaseAPI { } /** - * Broadcasts a signed TransactionIntent to the blockchain. Use this endpoint to send the signed `userOperationHash`. Openfort will then put it on-chain. - * @summary Send a signed transaction userOperationHash. + * Broadcasts a signed TransactionIntent to the blockchain. Use this endpoint to send the signed `signableHash`. Openfort will then put it on-chain. + * @summary Send a signed transaction signableHash. * @param {TransactionIntentsApiSignatureRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} diff --git a/packages/internal/openapi-clients/src/backend/models/auth-provider-list-response.ts b/packages/internal/openapi-clients/src/backend/models/auth-provider-list-response.ts new file mode 100644 index 00000000..90b24277 --- /dev/null +++ b/packages/internal/openapi-clients/src/backend/models/auth-provider-list-response.ts @@ -0,0 +1,33 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Openfort API + * Complete Openfort API references and guides can be found at: https://openfort.xyz/docs + * + * The version of the OpenAPI document: 1.0.0 + * Contact: founders@openfort.xyz + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { AuthProviderWithTypeResponse } from './auth-provider-with-type-response'; + +/** + * + * @export + * @interface AuthProviderListResponse + */ +export interface AuthProviderListResponse { + /** + * + * @type {Array} + * @memberof AuthProviderListResponse + */ + 'data': Array; +} + diff --git a/packages/internal/openapi-clients/src/backend/models/auth-provider-with-type-response.ts b/packages/internal/openapi-clients/src/backend/models/auth-provider-with-type-response.ts new file mode 100644 index 00000000..4ca6d40c --- /dev/null +++ b/packages/internal/openapi-clients/src/backend/models/auth-provider-with-type-response.ts @@ -0,0 +1,44 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Openfort API + * Complete Openfort API references and guides can be found at: https://openfort.xyz/docs + * + * The version of the OpenAPI document: 1.0.0 + * Contact: founders@openfort.xyz + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { AuthProvider } from './auth-provider'; +// May contain unused imports in some cases +// @ts-ignore +import { AuthenticationType } from './authentication-type'; + +/** + * + * @export + * @interface AuthProviderWithTypeResponse + */ +export interface AuthProviderWithTypeResponse { + /** + * + * @type {AuthenticationType} + * @memberof AuthProviderWithTypeResponse + */ + 'type': AuthenticationType; + /** + * + * @type {AuthProvider} + * @memberof AuthProviderWithTypeResponse + */ + 'provider': AuthProvider; +} + + + diff --git a/packages/internal/openapi-clients/src/backend/models/authentication-type.ts b/packages/internal/openapi-clients/src/backend/models/authentication-type.ts new file mode 100644 index 00000000..5ec130b0 --- /dev/null +++ b/packages/internal/openapi-clients/src/backend/models/authentication-type.ts @@ -0,0 +1,32 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Openfort API + * Complete Openfort API references and guides can be found at: https://openfort.xyz/docs + * + * The version of the OpenAPI document: 1.0.0 + * Contact: founders@openfort.xyz + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * + * @export + * @enum {string} + */ + +export const AuthenticationType = { + Oauth: 'oauth', + Basic: 'basic', + ThirdParty: 'third_party' +} as const; + +export type AuthenticationType = typeof AuthenticationType[keyof typeof AuthenticationType]; + + + diff --git a/packages/internal/openapi-clients/src/backend/models/create-ecosystem-configuration-request.ts b/packages/internal/openapi-clients/src/backend/models/create-ecosystem-configuration-request.ts index df46e1c0..e9b9a6a2 100644 --- a/packages/internal/openapi-clients/src/backend/models/create-ecosystem-configuration-request.ts +++ b/packages/internal/openapi-clients/src/backend/models/create-ecosystem-configuration-request.ts @@ -13,6 +13,9 @@ */ +// May contain unused imports in some cases +// @ts-ignore +import { PlayerMetadataValue } from './player-metadata-value'; /** * @@ -50,5 +53,41 @@ export interface CreateEcosystemConfigurationRequest { * @memberof CreateEcosystemConfigurationRequest */ 'logoUrl': string; + /** + * URLs where the ecosystem wallet is hosted. + * @type {Array} + * @memberof CreateEcosystemConfigurationRequest + */ + 'ecosystemWalletDomains'?: Array; + /** + * Terms of service URL + * @type {string} + * @memberof CreateEcosystemConfigurationRequest + */ + 'termsOfServiceUrl'?: string; + /** + * Privacy policy URL + * @type {string} + * @memberof CreateEcosystemConfigurationRequest + */ + 'privacyPolicyUrl'?: string; + /** + * Favicon URL + * @type {string} + * @memberof CreateEcosystemConfigurationRequest + */ + 'faviconUrl'?: string; + /** + * Examples of the ecosystem. + * @type {Array<{ [key: string]: PlayerMetadataValue; }>} + * @memberof CreateEcosystemConfigurationRequest + */ + 'dashboardExamples'?: Array<{ [key: string]: PlayerMetadataValue; }>; + /** + * SDKs of the ecosystem. + * @type {Array<{ [key: string]: PlayerMetadataValue; }>} + * @memberof CreateEcosystemConfigurationRequest + */ + 'dashboardSDKs'?: Array<{ [key: string]: PlayerMetadataValue; }>; } diff --git a/packages/internal/openapi-clients/src/backend/models/ecosystem-configuration-response.ts b/packages/internal/openapi-clients/src/backend/models/ecosystem-configuration-response.ts index f8cbf8ef..b20cecee 100644 --- a/packages/internal/openapi-clients/src/backend/models/ecosystem-configuration-response.ts +++ b/packages/internal/openapi-clients/src/backend/models/ecosystem-configuration-response.ts @@ -13,6 +13,9 @@ */ +// May contain unused imports in some cases +// @ts-ignore +import { PlayerMetadataValue } from './player-metadata-value'; /** * @@ -50,5 +53,41 @@ export interface EcosystemConfigurationResponse { * @memberof EcosystemConfigurationResponse */ 'logoUrl': string; + /** + * Whitelisted frontend domains of the ecosystem. + * @type {Array} + * @memberof EcosystemConfigurationResponse + */ + 'ecosystemWalletDomains': Array; + /** + * Terms of service URL + * @type {string} + * @memberof EcosystemConfigurationResponse + */ + 'termsOfServiceUrl'?: string; + /** + * Privacy policy URL + * @type {string} + * @memberof EcosystemConfigurationResponse + */ + 'privacyPolicyUrl'?: string; + /** + * Favicon URL + * @type {string} + * @memberof EcosystemConfigurationResponse + */ + 'faviconUrl'?: string; + /** + * Examples of the ecosystem. + * @type {Array<{ [key: string]: PlayerMetadataValue; }>} + * @memberof EcosystemConfigurationResponse + */ + 'dashboardExamples'?: Array<{ [key: string]: PlayerMetadataValue; }>; + /** + * SDKs of the ecosystem. + * @type {Array<{ [key: string]: PlayerMetadataValue; }>} + * @memberof EcosystemConfigurationResponse + */ + 'dashboardSDKs'?: Array<{ [key: string]: PlayerMetadataValue; }>; } diff --git a/packages/internal/openapi-clients/src/backend/models/gas-report-transaction-intents-list-response.ts b/packages/internal/openapi-clients/src/backend/models/gas-report-transaction-intents-list-response.ts new file mode 100644 index 00000000..3358b8d4 --- /dev/null +++ b/packages/internal/openapi-clients/src/backend/models/gas-report-transaction-intents-list-response.ts @@ -0,0 +1,68 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Openfort API + * Complete Openfort API references and guides can be found at: https://openfort.xyz/docs + * + * The version of the OpenAPI document: 1.0.0 + * Contact: founders@openfort.xyz + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { GasReportTransactionIntents } from './gas-report-transaction-intents'; +// May contain unused imports in some cases +// @ts-ignore +import { ResponseTypeLIST } from './response-type-list'; + +/** + * + * @export + * @interface GasReportTransactionIntentsListResponse + */ +export interface GasReportTransactionIntentsListResponse { + /** + * + * @type {ResponseTypeLIST} + * @memberof GasReportTransactionIntentsListResponse + */ + 'object': ResponseTypeLIST; + /** + * + * @type {string} + * @memberof GasReportTransactionIntentsListResponse + */ + 'url': string; + /** + * + * @type {Array} + * @memberof GasReportTransactionIntentsListResponse + */ + 'data': Array; + /** + * + * @type {number} + * @memberof GasReportTransactionIntentsListResponse + */ + 'start': number; + /** + * + * @type {number} + * @memberof GasReportTransactionIntentsListResponse + */ + 'end': number; + /** + * + * @type {number} + * @memberof GasReportTransactionIntentsListResponse + */ + 'total': number; +} + + + diff --git a/packages/internal/openapi-clients/src/backend/models/gas-report-transaction-intents-inner.ts b/packages/internal/openapi-clients/src/backend/models/gas-report-transaction-intents.ts similarity index 69% rename from packages/internal/openapi-clients/src/backend/models/gas-report-transaction-intents-inner.ts rename to packages/internal/openapi-clients/src/backend/models/gas-report-transaction-intents.ts index 616f93b9..7fa407e3 100644 --- a/packages/internal/openapi-clients/src/backend/models/gas-report-transaction-intents-inner.ts +++ b/packages/internal/openapi-clients/src/backend/models/gas-report-transaction-intents.ts @@ -17,38 +17,38 @@ /** * * @export - * @interface GasReportTransactionIntentsInner + * @interface GasReportTransactionIntents */ -export interface GasReportTransactionIntentsInner { +export interface GasReportTransactionIntents { /** * * @type {string} - * @memberof GasReportTransactionIntentsInner + * @memberof GasReportTransactionIntents */ - 'gasFeeInUSD': string; + 'id': string; /** * * @type {string} - * @memberof GasReportTransactionIntentsInner + * @memberof GasReportTransactionIntents */ - 'gasUsed': string; + 'gasFee': string; /** * * @type {string} - * @memberof GasReportTransactionIntentsInner + * @memberof GasReportTransactionIntents */ 'gasPrice': string; /** * * @type {string} - * @memberof GasReportTransactionIntentsInner + * @memberof GasReportTransactionIntents */ - 'gasFee': string; + 'gasUsed': string; /** * * @type {string} - * @memberof GasReportTransactionIntentsInner + * @memberof GasReportTransactionIntents */ - 'id': string; + 'gasFeeInUSD': string; } diff --git a/packages/internal/openapi-clients/src/backend/models/gas-report.ts b/packages/internal/openapi-clients/src/backend/models/gas-report.ts index 1f2a1241..a033193d 100644 --- a/packages/internal/openapi-clients/src/backend/models/gas-report.ts +++ b/packages/internal/openapi-clients/src/backend/models/gas-report.ts @@ -15,7 +15,7 @@ // May contain unused imports in some cases // @ts-ignore -import { GasReportTransactionIntentsInner } from './gas-report-transaction-intents-inner'; +import { GasReportTransactionIntents } from './gas-report-transaction-intents'; // May contain unused imports in some cases // @ts-ignore import { MonthRange } from './month-range'; @@ -58,9 +58,10 @@ export interface GasReport { 'totalTransactionFeeInUSD': string; /** * - * @type {Array} + * @type {Array} * @memberof GasReport + * @deprecated */ - 'transactionIntents': Array; + 'transactionIntents': Array; } diff --git a/packages/internal/openapi-clients/src/backend/models/index.ts b/packages/internal/openapi-clients/src/backend/models/index.ts index dc429209..c5d0c5b0 100644 --- a/packages/internal/openapi-clients/src/backend/models/index.ts +++ b/packages/internal/openapi-clients/src/backend/models/index.ts @@ -30,10 +30,13 @@ export * from './auth-player-response'; export * from './auth-player-response-player'; export * from './auth-player-response-with-recovery-share'; export * from './auth-provider'; +export * from './auth-provider-list-response'; export * from './auth-provider-response'; +export * from './auth-provider-with-type-response'; export * from './auth-response'; export * from './auth-session-response'; export * from './authenticate-oauth-request'; +export * from './authentication-type'; export * from './authorize200-response'; export * from './authorize-player-request'; export * from './balance-event-response'; @@ -142,7 +145,8 @@ export * from './gas-per-interval-limit-policy-rule-response'; export * from './gas-per-transaction-limit-policy-rule-response'; export * from './gas-report'; export * from './gas-report-list-response'; -export * from './gas-report-transaction-intents-inner'; +export * from './gas-report-transaction-intents'; +export * from './gas-report-transaction-intents-list-response'; export * from './google-oauth-config'; export * from './init-embedded-request'; export * from './interaction'; @@ -156,11 +160,13 @@ export * from './linked-account-response'; export * from './list-subscription-logs-request'; export * from './log'; export * from './log-response'; +export * from './login-oidcrequest'; export * from './login-request'; export * from './logout-request'; export * from './loot-locker-oauth-config'; export * from './money'; export * from './month-range'; +export * from './my-ecosystem-response'; export * from './next-action-payload'; export * from './next-action-response'; export * from './next-action-type'; @@ -174,6 +180,7 @@ export * from './oauth-provider-discord'; export * from './oauth-provider-epicgames'; export * from './oauth-provider-facebook'; export * from './oauth-provider-google'; +export * from './oauth-provider-telegram'; export * from './oauth-provider-twitter'; export * from './oauth-request'; export * from './oauth-response'; @@ -211,6 +218,8 @@ export * from './policy-rate-limit'; export * from './policy-rate-limit-countperinterval'; export * from './policy-rate-limit-gasperinterval'; export * from './policy-rate-limit-gaspertransaction'; +export * from './policy-report-queries'; +export * from './policy-report-transaction-intents-queries'; export * from './policy-response'; export * from './policy-response-expandable'; export * from './policy-response-policy-rules-inner'; @@ -266,6 +275,7 @@ export * from './subscription-list-response'; export * from './subscription-response'; export * from './subscription-response-plan'; export * from './supabase-auth-config'; +export * from './telegram-oauth-config'; export * from './third-party-oauth-provider'; export * from './third-party-oauth-provider-accelbyte'; export * from './third-party-oauth-provider-custom'; diff --git a/packages/internal/openapi-clients/src/backend/models/login-oidcrequest.ts b/packages/internal/openapi-clients/src/backend/models/login-oidcrequest.ts new file mode 100644 index 00000000..fcb72688 --- /dev/null +++ b/packages/internal/openapi-clients/src/backend/models/login-oidcrequest.ts @@ -0,0 +1,30 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Openfort API + * Complete Openfort API references and guides can be found at: https://openfort.xyz/docs + * + * The version of the OpenAPI document: 1.0.0 + * Contact: founders@openfort.xyz + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * + * @export + * @interface LoginOIDCRequest + */ +export interface LoginOIDCRequest { + /** + * The identity token of the user. + * @type {string} + * @memberof LoginOIDCRequest + */ + 'identityToken': string; +} + diff --git a/packages/internal/openapi-clients/src/backend/models/my-ecosystem-response.ts b/packages/internal/openapi-clients/src/backend/models/my-ecosystem-response.ts new file mode 100644 index 00000000..17320d2b --- /dev/null +++ b/packages/internal/openapi-clients/src/backend/models/my-ecosystem-response.ts @@ -0,0 +1,45 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Openfort API + * Complete Openfort API references and guides can be found at: https://openfort.xyz/docs + * + * The version of the OpenAPI document: 1.0.0 + * Contact: founders@openfort.xyz + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { EcosystemConfigurationResponse } from './ecosystem-configuration-response'; + +/** + * + * @export + * @interface MyEcosystemResponse + */ +export interface MyEcosystemResponse { + /** + * + * @type {string} + * @memberof MyEcosystemResponse + */ + 'publishableKey': string; + /** + * + * @type {string} + * @memberof MyEcosystemResponse + */ + 'name': string; + /** + * + * @type {EcosystemConfigurationResponse} + * @memberof MyEcosystemResponse + */ + 'configuration'?: EcosystemConfigurationResponse; +} + diff --git a/packages/internal/openapi-clients/src/backend/models/oauth-config.ts b/packages/internal/openapi-clients/src/backend/models/oauth-config.ts index 6642b4dd..0e525a3e 100644 --- a/packages/internal/openapi-clients/src/backend/models/oauth-config.ts +++ b/packages/internal/openapi-clients/src/backend/models/oauth-config.ts @@ -48,6 +48,9 @@ import { PlayFabOAuthConfig } from './play-fab-oauth-config'; import { SupabaseAuthConfig } from './supabase-auth-config'; // May contain unused imports in some cases // @ts-ignore +import { TelegramOAuthConfig } from './telegram-oauth-config'; +// May contain unused imports in some cases +// @ts-ignore import { ThirdPartyOAuthProviderLOOTLOCKER } from './third-party-oauth-provider-lootlocker'; // May contain unused imports in some cases // @ts-ignore @@ -119,6 +122,18 @@ export interface OAuthConfig { * @memberof OAuthConfig */ 'clientSecret': string; + /** + * Telegram bot username. + * @type {string} + * @memberof OAuthConfig + */ + 'botUsername': string; + /** + * Telegram bot token. + * @type {string} + * @memberof OAuthConfig + */ + 'botToken': string; /** * Title ID of your Play Fab gaming service environment. * @type {string} diff --git a/packages/internal/openapi-clients/src/backend/models/oauth-provider-telegram.ts b/packages/internal/openapi-clients/src/backend/models/oauth-provider-telegram.ts new file mode 100644 index 00000000..469a64a7 --- /dev/null +++ b/packages/internal/openapi-clients/src/backend/models/oauth-provider-telegram.ts @@ -0,0 +1,30 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Openfort API + * Complete Openfort API references and guides can be found at: https://openfort.xyz/docs + * + * The version of the OpenAPI document: 1.0.0 + * Contact: founders@openfort.xyz + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * + * @export + * @enum {string} + */ + +export const OAuthProviderTELEGRAM = { + Telegram: 'telegram' +} as const; + +export type OAuthProviderTELEGRAM = typeof OAuthProviderTELEGRAM[keyof typeof OAuthProviderTELEGRAM]; + + + diff --git a/packages/internal/openapi-clients/src/backend/models/oauth-provider.ts b/packages/internal/openapi-clients/src/backend/models/oauth-provider.ts index ee5706f2..32edfa47 100644 --- a/packages/internal/openapi-clients/src/backend/models/oauth-provider.ts +++ b/packages/internal/openapi-clients/src/backend/models/oauth-provider.ts @@ -25,7 +25,8 @@ export const OAuthProvider = { Twitter: 'twitter', Facebook: 'facebook', Discord: 'discord', - EpicGames: 'epic_games' + EpicGames: 'epic_games', + Telegram: 'telegram' } as const; export type OAuthProvider = typeof OAuthProvider[keyof typeof OAuthProvider]; diff --git a/packages/internal/openapi-clients/src/backend/models/policy-report-queries.ts b/packages/internal/openapi-clients/src/backend/models/policy-report-queries.ts new file mode 100644 index 00000000..d78c01df --- /dev/null +++ b/packages/internal/openapi-clients/src/backend/models/policy-report-queries.ts @@ -0,0 +1,36 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Openfort API + * Complete Openfort API references and guides can be found at: https://openfort.xyz/docs + * + * The version of the OpenAPI document: 1.0.0 + * Contact: founders@openfort.xyz + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * + * @export + * @interface PolicyReportQueries + */ +export interface PolicyReportQueries { + /** + * The start date of the period in unix timestamp. + * @type {number} + * @memberof PolicyReportQueries + */ + 'to'?: number; + /** + * The end date of the period in unix timestamp. + * @type {number} + * @memberof PolicyReportQueries + */ + 'from'?: number; +} + diff --git a/packages/internal/openapi-clients/src/backend/models/policy-report-transaction-intents-queries.ts b/packages/internal/openapi-clients/src/backend/models/policy-report-transaction-intents-queries.ts new file mode 100644 index 00000000..2e716f69 --- /dev/null +++ b/packages/internal/openapi-clients/src/backend/models/policy-report-transaction-intents-queries.ts @@ -0,0 +1,36 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Openfort API + * Complete Openfort API references and guides can be found at: https://openfort.xyz/docs + * + * The version of the OpenAPI document: 1.0.0 + * Contact: founders@openfort.xyz + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * + * @export + * @interface PolicyReportTransactionIntentsQueries + */ +export interface PolicyReportTransactionIntentsQueries { + /** + * The start date of the period in unix timestamp. + * @type {number} + * @memberof PolicyReportTransactionIntentsQueries + */ + 'to': number; + /** + * The end date of the period in unix timestamp. + * @type {number} + * @memberof PolicyReportTransactionIntentsQueries + */ + 'from': number; +} + diff --git a/packages/internal/openapi-clients/src/backend/models/telegram-oauth-config.ts b/packages/internal/openapi-clients/src/backend/models/telegram-oauth-config.ts new file mode 100644 index 00000000..4f8fb433 --- /dev/null +++ b/packages/internal/openapi-clients/src/backend/models/telegram-oauth-config.ts @@ -0,0 +1,53 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Openfort API + * Complete Openfort API references and guides can be found at: https://openfort.xyz/docs + * + * The version of the OpenAPI document: 1.0.0 + * Contact: founders@openfort.xyz + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { OAuthProviderTELEGRAM } from './oauth-provider-telegram'; + +/** + * + * @export + * @interface TelegramOAuthConfig + */ +export interface TelegramOAuthConfig { + /** + * Enable OAuth provider. + * @type {boolean} + * @memberof TelegramOAuthConfig + */ + 'enabled': boolean; + /** + * + * @type {OAuthProviderTELEGRAM} + * @memberof TelegramOAuthConfig + */ + 'provider': OAuthProviderTELEGRAM; + /** + * Telegram bot username. + * @type {string} + * @memberof TelegramOAuthConfig + */ + 'botUsername': string; + /** + * Telegram bot token. + * @type {string} + * @memberof TelegramOAuthConfig + */ + 'botToken': string; +} + + +