From 2045e54c14d4522e0407d5d952f1ab65cb582217 Mon Sep 17 00:00:00 2001 From: Jaume Alavedra Date: Wed, 23 Oct 2024 14:49:51 +0200 Subject: [PATCH] feat: add new chains --- .../openapi-clients/src/backend-openapi.json | 820 +++++++++++++++--- .../src/backend/.openapi-generator/FILES | 15 +- .../openapi-clients/src/backend/api.ts | 1 + .../domain/admin-authentication-api.ts | 125 ++- .../src/backend/domain/default-api.ts | 54 +- .../backend/domain/forwarder-contract-api.ts | 536 ++++++++++++ .../src/backend/domain/settings-api.ts | 127 ++- .../src/backend/domain/subscriptions-api.ts | 6 +- .../{oauth-config.ts => auth-config.ts} | 43 +- .../models/basic-auth-provider-email.ts | 30 + ...reate-developer-account-create-request.ts} | 10 +- .../create-forwarder-contract-request.ts | 42 + .../src/backend/models/email-auth-config.ts | 41 + .../models/entity-type-forwardercontract.ts | 30 + .../forwarder-contract-delete-response.ts | 47 + .../models/forwarder-contract-response.ts | 65 ++ .../backend/models/grant-oauth-response.ts | 48 + .../src/backend/models/index.ts | 14 +- .../src/backend/models/list-config-request.ts | 30 + .../models/oauth-config-list-response.ts | 6 +- .../models/test-trigger200-response.ts | 30 + ...update-developer-account-create-request.ts | 30 + sdk/package.json | 2 +- sdk/src/chains/10200.ts | 47 - sdk/src/chains/1946.ts | 24 + sdk/src/chains/204.ts | 35 + sdk/src/chains/300.ts | 29 + sdk/src/chains/3939.ts | 24 + sdk/src/chains/531050104.ts | 24 + sdk/src/chains/5611.ts | 24 + sdk/src/chains/59140.ts | 63 -- sdk/src/chains/62092.ts | 24 + sdk/src/chains/7979.ts | 24 + sdk/src/chains/index.ts | 37 +- sdk/src/version.ts | 2 +- 35 files changed, 2202 insertions(+), 307 deletions(-) create mode 100644 packages/internal/openapi-clients/src/backend/domain/forwarder-contract-api.ts rename packages/internal/openapi-clients/src/backend/models/{oauth-config.ts => auth-config.ts} (86%) create mode 100644 packages/internal/openapi-clients/src/backend/models/basic-auth-provider-email.ts rename packages/internal/openapi-clients/src/backend/models/{developer-account-create-request.ts => create-developer-account-create-request.ts} (74%) create mode 100644 packages/internal/openapi-clients/src/backend/models/create-forwarder-contract-request.ts create mode 100644 packages/internal/openapi-clients/src/backend/models/email-auth-config.ts create mode 100644 packages/internal/openapi-clients/src/backend/models/entity-type-forwardercontract.ts create mode 100644 packages/internal/openapi-clients/src/backend/models/forwarder-contract-delete-response.ts create mode 100644 packages/internal/openapi-clients/src/backend/models/forwarder-contract-response.ts create mode 100644 packages/internal/openapi-clients/src/backend/models/grant-oauth-response.ts create mode 100644 packages/internal/openapi-clients/src/backend/models/list-config-request.ts create mode 100644 packages/internal/openapi-clients/src/backend/models/test-trigger200-response.ts create mode 100644 packages/internal/openapi-clients/src/backend/models/update-developer-account-create-request.ts delete mode 100644 sdk/src/chains/10200.ts create mode 100644 sdk/src/chains/1946.ts create mode 100644 sdk/src/chains/204.ts create mode 100644 sdk/src/chains/300.ts create mode 100644 sdk/src/chains/3939.ts create mode 100644 sdk/src/chains/531050104.ts create mode 100644 sdk/src/chains/5611.ts delete mode 100644 sdk/src/chains/59140.ts create mode 100644 sdk/src/chains/62092.ts create mode 100644 sdk/src/chains/7979.ts diff --git a/packages/internal/openapi-clients/src/backend-openapi.json b/packages/internal/openapi-clients/src/backend-openapi.json index 20127c76..e8563d18 100644 --- a/packages/internal/openapi-clients/src/backend-openapi.json +++ b/packages/internal/openapi-clients/src/backend-openapi.json @@ -1173,6 +1173,40 @@ "type": "object", "additionalProperties": false }, + "ListConfigRequest": { + "properties": { + "enabled": { + "type": "boolean" + } + }, + "type": "object", + "additionalProperties": false + }, + "BasicAuthProvider.EMAIL": { + "enum": [ + "email" + ], + "type": "string" + }, + "EmailAuthConfig": { + "description": "Email auth configuration", + "properties": { + "enabled": { + "type": "boolean", + "description": "Enable OAuth provider." + }, + "provider": { + "$ref": "#/components/schemas/BasicAuthProvider.EMAIL", + "description": "OAuth provider type" + } + }, + "required": [ + "enabled", + "provider" + ], + "type": "object", + "additionalProperties": false + }, "ThirdPartyOAuthProvider.SUPABASE": { "enum": [ "supabase" @@ -1672,8 +1706,11 @@ "type": "object", "additionalProperties": false }, - "OAuthConfig": { + "AuthConfig": { "anyOf": [ + { + "$ref": "#/components/schemas/EmailAuthConfig" + }, { "$ref": "#/components/schemas/SupabaseAuthConfig" }, @@ -1721,12 +1758,20 @@ } ] }, + "OAuthConfigResponse": { + "$ref": "#/components/schemas/AuthConfig", + "description": "OAuth provider specific configuration." + }, + "OAuthConfigRequest": { + "$ref": "#/components/schemas/AuthConfig", + "description": "Request for the configuration endpoints for the OAuth providers" + }, "OAuthConfigListResponse": { "description": "Response for the OAuth config list method.", "properties": { "data": { "items": { - "$ref": "#/components/schemas/OAuthConfig" + "$ref": "#/components/schemas/AuthConfig" }, "type": "array", "description": "List of the OAuth providers configurations" @@ -1738,13 +1783,23 @@ "type": "object", "additionalProperties": false }, - "OAuthConfigResponse": { - "$ref": "#/components/schemas/OAuthConfig", - "description": "OAuth provider specific configuration." - }, - "OAuthConfigRequest": { - "$ref": "#/components/schemas/OAuthConfig", - "description": "Request for the configuration endpoints for the OAuth providers" + "GrantOAuthResponse": { + "properties": { + "authorizationCode": { + "type": "string" + }, + "accessToken": { + "type": "string" + }, + "refreshToken": { + "type": "string" + }, + "playerId": { + "type": "string" + } + }, + "type": "object", + "additionalProperties": false }, "OAuthResponse": { "properties": { @@ -5494,6 +5549,115 @@ "type": "object", "additionalProperties": false }, + "EntityType.FORWARDER_CONTRACT": { + "enum": [ + "forwarderContract" + ], + "type": "string" + }, + "ForwarderContractResponse": { + "properties": { + "id": { + "type": "string" + }, + "object": { + "$ref": "#/components/schemas/EntityType.FORWARDER_CONTRACT" + }, + "createdAt": { + "type": "integer", + "format": "int32" + }, + "address": { + "type": "string" + }, + "chainId": { + "type": "number", + "format": "double" + }, + "name": { + "type": "string" + } + }, + "required": [ + "id", + "object", + "createdAt", + "address", + "chainId" + ], + "type": "object", + "additionalProperties": false + }, + "CreateForwarderContractResponse": { + "$ref": "#/components/schemas/ForwarderContractResponse" + }, + "CreateForwarderContractRequest": { + "properties": { + "address": { + "type": "string", + "description": "Specifies the address of the paymaster", + "example": "0x7d526b7e99fbf52850a183..." + }, + "chainId": { + "type": "integer", + "format": "int32", + "description": "The chain ID. Must be a [supported chain](/chains).", + "example": 80002 + }, + "name": { + "type": "string", + "description": "Specifies the name of the paymaster" + } + }, + "required": [ + "address", + "chainId" + ], + "type": "object", + "additionalProperties": false + }, + "PagingQueries": { + "properties": { + "limit": { + "type": "integer", + "format": "int32", + "description": "Specifies the maximum number of records to return.", + "minimum": 1 + }, + "skip": { + "type": "integer", + "format": "int32", + "description": "Specifies the offset for the first records to return.", + "minimum": 0 + }, + "order": { + "$ref": "#/components/schemas/SortOrder", + "description": "Specifies the order in which to sort the results." + } + }, + "type": "object", + "additionalProperties": false + }, + "ForwarderContractDeleteResponse": { + "properties": { + "id": { + "type": "string" + }, + "object": { + "$ref": "#/components/schemas/EntityType.FORWARDER_CONTRACT" + }, + "deleted": { + "type": "boolean" + } + }, + "required": [ + "id", + "object", + "deleted" + ], + "type": "object", + "additionalProperties": false + }, "AssetType": { "enum": [ "ETH", @@ -5786,28 +5950,6 @@ "type": "object", "additionalProperties": false }, - "PagingQueries": { - "properties": { - "limit": { - "type": "integer", - "format": "int32", - "description": "Specifies the maximum number of records to return.", - "minimum": 1 - }, - "skip": { - "type": "integer", - "format": "int32", - "description": "Specifies the offset for the first records to return.", - "minimum": 0 - }, - "order": { - "$ref": "#/components/schemas/SortOrder", - "description": "Specifies the order in which to sort the results." - } - }, - "type": "object", - "additionalProperties": false - }, "PaymasterDeleteResponse": { "properties": { "id": { @@ -7439,7 +7581,7 @@ "type": "object", "additionalProperties": false }, - "DeveloperAccountCreateRequest": { + "CreateDeveloperAccountCreateRequest": { "properties": { "address": { "type": "string", @@ -7460,6 +7602,17 @@ "type": "object", "additionalProperties": false }, + "UpdateDeveloperAccountCreateRequest": { + "properties": { + "name": { + "type": "string", + "description": "The name of the account.", + "example": "Escrow account" + } + }, + "type": "object", + "additionalProperties": false + }, "DeveloperAccountGetMessageResponse": { "properties": { "message": { @@ -8279,46 +8432,6 @@ ] } }, - "/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", @@ -8735,27 +8848,24 @@ ] } }, - "/iam/v1/oauth": { + "/iam/v1/config": { "get": { - "operationId": "ListOAuthConfig", + "operationId": "List", "responses": { "200": { "description": "Ok", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/OAuthConfigListResponse" + "$ref": "#/components/schemas/AuthProviderListResponse" }, "examples": { "Example 1": { "value": { "data": [ { - "enabled": true, - "baseUrl": "https://mygame.dev.gamingservices.accelbyte.io/", - "clientId": "1234567890abcdef1234567890abcdef", - "clientSecret": "abcdef1234567890abcdef1234567890", - "provider": "accelbyte" + "provider": "firebase", + "type": "third_party" } ] } @@ -8768,23 +8878,29 @@ "description": "" } }, - "description": "List configured OAuth methods for the current project environment.", - "summary": "List of oauth configurations.", - "tags": [ - "AdminAuthentication" - ], + "description": "List configured auth methods for the current project environment.", + "summary": "List of auth configurations.", "security": [ { - "sk": [] + "pk": [] }, { "user_project": [] } ], - "parameters": [] + "parameters": [ + { + "in": "query", + "name": "enabled", + "required": false, + "schema": { + "type": "boolean" + } + } + ] }, "post": { - "operationId": "CreateOAuthConfig", + "operationId": "Create", "responses": { "200": { "description": "Successful response.", @@ -8839,7 +8955,113 @@ } } }, - "/iam/v1/oauth/{provider}": { + "/iam/v1/oauth": { + "get": { + "operationId": "ListOAuthConfig", + "responses": { + "200": { + "description": "Ok", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/OAuthConfigListResponse" + }, + "examples": { + "Example 1": { + "value": { + "data": [ + { + "enabled": true, + "baseUrl": "https://mygame.dev.gamingservices.accelbyte.io/", + "clientId": "1234567890abcdef1234567890abcdef", + "clientSecret": "abcdef1234567890abcdef1234567890", + "provider": "accelbyte" + } + ] + } + } + } + } + } + }, + "401": { + "description": "" + } + }, + "description": "List configured OAuth methods for the current project environment.", + "summary": "List of oauth configurations.", + "tags": [ + "AdminAuthentication" + ], + "deprecated": true, + "security": [ + { + "sk": [] + }, + { + "user_project": [] + } + ], + "parameters": [] + }, + "post": { + "operationId": "CreateOAuthConfig", + "responses": { + "200": { + "description": "Successful response.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/OAuthConfigResponse" + }, + "examples": { + "Example 1": { + "value": { + "enabled": true, + "baseUrl": "https://mygame.dev.gamingservices.accelbyte.io/", + "clientId": "1234567890abcdef1234567890abcdef", + "clientSecret": "abcdef1234567890abcdef1234567890", + "provider": "accelbyte" + } + } + } + } + } + }, + "401": { + "description": "Error response." + } + }, + "description": "The endpoint creates oauth configuration for the current project environment.", + "summary": "Create oauth configuration.", + "tags": [ + "AdminAuthentication" + ], + "deprecated": true, + "security": [ + { + "sk": [] + }, + { + "user_project": [] + } + ], + "parameters": [], + "requestBody": { + "description": "Specifies the oauth provider specific configuration.", + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/OAuthConfigRequest", + "description": "Specifies the oauth provider specific configuration." + } + } + } + } + } + }, + "/iam/v1/oauth/{provider}": { "get": { "operationId": "GetOAuthConfig", "responses": { @@ -8873,6 +9095,7 @@ "tags": [ "AdminAuthentication" ], + "deprecated": true, "security": [ { "sk": [] @@ -8908,6 +9131,7 @@ "tags": [ "AdminAuthentication" ], + "deprecated": true, "security": [ { "sk": [] @@ -12177,6 +12401,300 @@ } } }, + "/v1/forwarder_contracts": { + "post": { + "operationId": "CreateForwarderContract", + "responses": { + "201": { + "description": "Created", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CreateForwarderContractResponse" + }, + "examples": { + "Example 1": { + "value": { + "id": "cfo_f0f89cf2-c185-40f4-beef-2a250d7a472b", + "object": "forwarderContract", + "address": "0x7b9f89cf2c18540f4beef2a250d7a472b", + "name": "Forwarder Contract", + "chainId": 80002, + "createdAt": 1617226800 + } + } + } + } + } + }, + "401": { + "description": "Error response." + }, + "409": { + "description": "Error response." + } + }, + "description": "Create a new forwarder contract.\n\nThis object represents the forwarder contract that will be used to pay the gas fees of the transactions.", + "summary": "Create a new forwarder contract.", + "tags": [ + "ForwarderContract" + ], + "security": [ + { + "user_project": [] + }, + { + "sk": [] + } + ], + "parameters": [], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CreateForwarderContractRequest" + } + } + } + } + }, + "get": { + "operationId": "ListForwarderContracts", + "responses": { + "200": { + "description": "Successful response.", + "content": { + "application/json": { + "schema": { + "items": { + "$ref": "#/components/schemas/CreateForwarderContractResponse" + }, + "type": "array" + } + } + } + }, + "401": { + "description": "Error response." + } + }, + "description": "Returns a list of forwarder contract.\n\nThis object represents the forwarder contract that will be used to pay the gas fees for the transactions.\n\nBy default, a maximum of 10 forwarder contract are shown per page.", + "summary": "List forwarder contract.", + "tags": [ + "ForwarderContract" + ], + "security": [ + { + "user_project": [] + }, + { + "sk": [] + } + ], + "parameters": [ + { + "description": "Specifies the maximum number of records to return.", + "in": "query", + "name": "limit", + "required": false, + "schema": { + "format": "int32", + "type": "integer", + "minimum": 1 + } + }, + { + "description": "Specifies the offset for the first records to return.", + "in": "query", + "name": "skip", + "required": false, + "schema": { + "format": "int32", + "type": "integer", + "minimum": 0 + } + }, + { + "description": "Specifies the order in which to sort the results.", + "in": "query", + "name": "order", + "required": false, + "schema": { + "$ref": "#/components/schemas/SortOrder" + } + } + ] + } + }, + "/v1/forwarder_contracts/{id}": { + "post": { + "operationId": "UpdateForwarderContract", + "responses": { + "201": { + "description": "Updated", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CreateForwarderContractResponse" + }, + "examples": { + "Example 1": { + "value": { + "id": "cfo_f0f89cf2-c185-40f4-beef-2a250d7a472b", + "object": "forwarderContract", + "address": "0x7b9f89cf2c18540f4beef2a250d7a472b", + "name": "Forwarder Contract", + "chainId": 80002, + "createdAt": 1617226800 + } + } + } + } + } + }, + "401": { + "description": "Error response." + }, + "409": { + "description": "Error response." + } + }, + "description": "Update a forwarder contract.\n\nThis object represents the forwarder contract that will be used to pay the gas fees of the transactions.", + "summary": "Update a forwarder contract.", + "tags": [ + "ForwarderContract" + ], + "security": [ + { + "user_project": [] + }, + { + "sk": [] + } + ], + "parameters": [ + { + "in": "path", + "name": "id", + "required": true, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CreateForwarderContractRequest" + } + } + } + } + }, + "get": { + "operationId": "GetForwarderContract", + "responses": { + "200": { + "description": "Successful response.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CreateForwarderContractResponse" + }, + "examples": { + "Example 1": { + "value": { + "id": "cfo_f0f89cf2-c185-40f4-beef-2a250d7a472b", + "object": "forwarderContract", + "address": "0x7b9f89cf2c18540f4beef2a250d7a472b", + "name": "Forwarder Contract", + "chainId": 80002, + "createdAt": 1617226800 + } + } + } + } + } + }, + "401": { + "description": "Error response." + }, + "404": { + "description": "Error response." + } + }, + "description": "Returns the forwarder contract with the given id.\n\nThis object represents the forwarder contract that will be used to pay the gas fees for the transactions.", + "summary": "Get forwarder contract by id.", + "tags": [ + "ForwarderContract" + ], + "security": [ + { + "user_project": [] + }, + { + "sk": [] + } + ], + "parameters": [ + { + "in": "path", + "name": "id", + "required": true, + "schema": { + "type": "string" + } + } + ] + }, + "delete": { + "operationId": "DeleteForwarderContract", + "responses": { + "204": { + "description": "Deleted", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ForwarderContractDeleteResponse" + } + } + } + }, + "401": { + "description": "Error response." + }, + "404": { + "description": "Error response." + } + }, + "description": "Delete the forwarder contract with the given id.\n\nThis object represents the forwarder contract that will be used to pay the gas fees for the transactions.", + "summary": "Delete forwarder contract by id.", + "tags": [ + "ForwarderContract" + ], + "security": [ + { + "user_project": [] + }, + { + "sk": [] + } + ], + "parameters": [ + { + "in": "path", + "name": "id", + "required": true, + "schema": { + "type": "string" + } + } + ] + } + }, "/v1/players/{id}/inventory/nft": { "get": { "operationId": "GetPlayerNftInventory", @@ -15802,29 +16320,38 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/DeveloperAccountCreateRequest" + "$ref": "#/components/schemas/CreateDeveloperAccountCreateRequest" } } } } } }, - "/v1/settings/developer_accounts/message_to_sign": { - "get": { - "operationId": "GetVerificationPayload", + "/v1/settings/developer_accounts/{id}": { + "post": { + "operationId": "UpdateDeveloperAccount", "responses": { "200": { "description": "Successful response.", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/DeveloperAccountGetMessageResponse" + "$ref": "#/components/schemas/DeveloperAccountResponse" }, "examples": { "Example 1": { "value": { - "message": "I want to register 0x0000000000000000000000000000000000000000 to the project 33333333-3333-3333-3333-333333333333 for mainnets on 20231231", - "address": "0x0000000000000000000000000000000000000000" + "id": "dac_00000000-0000-0000-0000-000000000000", + "address": "0x0000000000000000000000000000000000000000", + "name": "Escrow Account", + "custodial": true, + "createdAt": 1609459200, + "object": "developerAccount", + "transactionIntents": [ + { + "id": "tin_c502d628-5bb3-42f2-b8f5-62ba4d71df3a" + } + ] } } } @@ -15838,8 +16365,8 @@ "description": "Error response." } }, - "description": "Generate message, which should be signed by the account your want to add as a developer account.", - "summary": "Generate message to sign", + "description": "Update a developer account.", + "summary": "Update a developer account.", "tags": [ "Settings" ], @@ -15853,19 +16380,25 @@ ], "parameters": [ { - "description": "Specifies the address", - "in": "query", - "name": "address", + "in": "path", + "name": "id", "required": true, "schema": { "type": "string" - }, - "example": "0x662D24Bf7Ea2dD6a7D0935F680a6056b94fE934d" + } } - ] - } - }, - "/v1/settings/developer_accounts/{id}": { + ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UpdateDeveloperAccountCreateRequest" + } + } + } + } + }, "get": { "operationId": "GetDeveloperAccount", "responses": { @@ -15997,6 +16530,62 @@ ] } }, + "/v1/settings/developer_accounts/message_to_sign": { + "get": { + "operationId": "GetVerificationPayload", + "responses": { + "200": { + "description": "Successful response.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/DeveloperAccountGetMessageResponse" + }, + "examples": { + "Example 1": { + "value": { + "message": "I want to register 0x0000000000000000000000000000000000000000 to the project 33333333-3333-3333-3333-333333333333 for mainnets on 20231231", + "address": "0x0000000000000000000000000000000000000000" + } + } + } + } + } + }, + "401": { + "description": "Error response." + }, + "409": { + "description": "Error response." + } + }, + "description": "Generate message, which should be signed by the account your want to add as a developer account.", + "summary": "Generate message to sign", + "tags": [ + "Settings" + ], + "security": [ + { + "sk": [] + }, + { + "user_project": [] + } + ], + "parameters": [ + { + "description": "Specifies the address", + "in": "query", + "name": "address", + "required": true, + "schema": { + "type": "string" + }, + "example": "0x662D24Bf7Ea2dD6a7D0935F680a6056b94fE934d" + } + ] + } + }, "/v1/subscriptions": { "get": { "operationId": "GetSubscriptions", @@ -16678,7 +17267,22 @@ "operationId": "TestTrigger", "responses": { "200": { - "description": "Successful response." + "description": "Successful response.", + "content": { + "application/json": { + "schema": { + "properties": { + "sent": { + "type": "boolean" + } + }, + "required": [ + "sent" + ], + "type": "object" + } + } + } }, "401": { "description": "Error response." diff --git a/packages/internal/openapi-clients/src/backend/.openapi-generator/FILES b/packages/internal/openapi-clients/src/backend/.openapi-generator/FILES index f7e7717b..4c3d0eae 100644 --- a/packages/internal/openapi-clients/src/backend/.openapi-generator/FILES +++ b/packages/internal/openapi-clients/src/backend/.openapi-generator/FILES @@ -12,6 +12,7 @@ domain/contracts-api.ts domain/default-api.ts domain/events-api.ts domain/exchange-api.ts +domain/forwarder-contract-api.ts domain/inventories-api.ts domain/paymaster-api.ts domain/players-api.ts @@ -49,6 +50,7 @@ models/apitopic.ts models/apitrigger-type.ts models/asset-inventory.ts models/asset-type.ts +models/auth-config.ts models/auth-player-list-queries.ts models/auth-player-list-response.ts models/auth-player-response-player.ts @@ -70,6 +72,7 @@ models/base-entity-list-response-device-response.ts models/base-entity-list-response-email-sample-response.ts models/base-entity-list-response-log-response.ts models/base-entity-list-response-trigger-response.ts +models/basic-auth-provider-email.ts models/basic-auth-provider.ts models/cancel-transfer-ownership-request.ts models/charge-custom-token-policy-strategy.ts @@ -95,11 +98,13 @@ models/create-account-request.ts models/create-api-authorized-network-request.ts models/create-auth-player-request.ts models/create-contract-request.ts +models/create-developer-account-create-request.ts models/create-device-request.ts models/create-ecosystem-configuration-request.ts models/create-email-sample-request.ts models/create-event-request.ts models/create-exchange-request.ts +models/create-forwarder-contract-request.ts models/create-paymaster-request.ts models/create-policy-request.ts models/create-policy-rule-request.ts @@ -114,7 +119,6 @@ models/custom-auth-config.ts models/delete-smtpconfig-response.ts models/deploy-request.ts models/deprecated-authenticated-player-response.ts -models/developer-account-create-request.ts models/developer-account-delete-response.ts models/developer-account-get-message-response.ts models/developer-account-list-queries.ts @@ -126,6 +130,7 @@ models/device-list-queries.ts models/device-response.ts models/discord-oauth-config.ts models/ecosystem-configuration-response.ts +models/email-auth-config.ts models/email-sample-delete-response.ts models/email-sample-response.ts models/email-type-request.ts @@ -138,6 +143,7 @@ models/entity-type-developeraccount.ts models/entity-type-device.ts models/entity-type-emailsample.ts models/entity-type-event.ts +models/entity-type-forwardercontract.ts models/entity-type-inventory.ts models/entity-type-log.ts models/entity-type-paymaster.ts @@ -166,6 +172,8 @@ models/fee.ts models/field-errors-value.ts models/firebase-oauth-config.ts models/fixed-rate-token-policy-strategy.ts +models/forwarder-contract-delete-response.ts +models/forwarder-contract-response.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 @@ -173,6 +181,7 @@ models/gas-report-transaction-intents-list-response.ts models/gas-report-transaction-intents.ts models/gas-report.ts models/google-oauth-config.ts +models/grant-oauth-response.ts models/index.ts models/init-embedded-request.ts models/interaction.ts @@ -184,6 +193,7 @@ models/jwt-key-response.ts models/jwt-key.ts models/line-oauth-config.ts models/linked-account-response.ts +models/list-config-request.ts models/list-subscription-logs-request.ts models/log-response.ts models/log.ts @@ -198,7 +208,6 @@ models/next-action-payload.ts models/next-action-response.ts models/next-action-type.ts models/oauth-config-list-response.ts -models/oauth-config.ts models/oauth-init-request-options.ts models/oauth-init-request.ts models/oauth-provders.ts @@ -305,6 +314,7 @@ models/subscription-response.ts models/supabase-auth-config.ts models/telegram-oauth-config.ts models/telegram-third-party-config.ts +models/test-trigger200-response.ts models/third-party-oauth-provider-accelbyte.ts models/third-party-oauth-provider-custom.ts models/third-party-oauth-provider-firebase.ts @@ -340,6 +350,7 @@ models/typed-domain-data.ts models/unlink-email-request.ts models/unlink-oauth-request.ts models/update-contract-request.ts +models/update-developer-account-create-request.ts models/update-email-sample-request.ts models/update-policy-request.ts models/update-policy-rule-request.ts diff --git a/packages/internal/openapi-clients/src/backend/api.ts b/packages/internal/openapi-clients/src/backend/api.ts index fd601035..6a1dd8e6 100644 --- a/packages/internal/openapi-clients/src/backend/api.ts +++ b/packages/internal/openapi-clients/src/backend/api.ts @@ -21,6 +21,7 @@ export * from './domain/contracts-api'; export * from './domain/default-api'; export * from './domain/events-api'; export * from './domain/exchange-api'; +export * from './domain/forwarder-contract-api'; export * from './domain/inventories-api'; export * from './domain/paymaster-api'; export * from './domain/players-api'; diff --git a/packages/internal/openapi-clients/src/backend/domain/admin-authentication-api.ts b/packages/internal/openapi-clients/src/backend/domain/admin-authentication-api.ts index bcb21eba..fb4fcb62 100644 --- a/packages/internal/openapi-clients/src/backend/domain/admin-authentication-api.ts +++ b/packages/internal/openapi-clients/src/backend/domain/admin-authentication-api.ts @@ -22,6 +22,8 @@ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObj // @ts-ignore import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base'; // @ts-ignore +import { AuthConfig } from '../models'; +// @ts-ignore import { AuthPlayerListResponse } from '../models'; // @ts-ignore import { AuthPlayerResponse } from '../models'; @@ -40,8 +42,6 @@ import { AuthorizePlayerRequest } from '../models'; // @ts-ignore import { CreateAuthPlayerRequest } from '../models'; // @ts-ignore -import { OAuthConfig } from '../models'; -// @ts-ignore import { OAuthConfigListResponse } from '../models'; // @ts-ignore import { OAuthProvider } from '../models'; @@ -96,6 +96,46 @@ export const AdminAuthenticationApiAxiosParamCreator = function (configuration?: options: localVarRequestOptions, }; }, + /** + * The endpoint creates oauth configuration for the current project environment. + * @summary Create oauth configuration. + * @param {AuthConfig} body Specifies the oauth provider specific configuration. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + create: async (body: AuthConfig, options: AxiosRequestConfig = {}): Promise => { + // verify required parameter 'body' is not null or undefined + assertParamExists('create', 'body', body) + const localVarPath = `/iam/v1/config`; + // 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 sk required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, /** * Creates an authenticated player. The player will be authenticated with the provider and an embedded account can be pre generated. * @summary Create an authenticated player. @@ -139,11 +179,12 @@ export const AdminAuthenticationApiAxiosParamCreator = function (configuration?: /** * The endpoint creates oauth configuration for the current project environment. * @summary Create oauth configuration. - * @param {OAuthConfig} body Specifies the oauth provider specific configuration. + * @param {AuthConfig} body Specifies the oauth provider specific configuration. * @param {*} [options] Override http request option. + * @deprecated * @throws {RequiredError} */ - createOAuthConfig: async (body: OAuthConfig, options: AxiosRequestConfig = {}): Promise => { + createOAuthConfig: async (body: AuthConfig, options: AxiosRequestConfig = {}): Promise => { // verify required parameter 'body' is not null or undefined assertParamExists('createOAuthConfig', 'body', body) const localVarPath = `/iam/v1/oauth`; @@ -219,6 +260,7 @@ export const AdminAuthenticationApiAxiosParamCreator = function (configuration?: * @summary Delete oauth configuration. * @param {OAuthProvider} provider Specifies the oauth provider type. * @param {*} [options] Override http request option. + * @deprecated * @throws {RequiredError} */ deleteOAuthConfig: async (provider: OAuthProvider, options: AxiosRequestConfig = {}): Promise => { @@ -316,6 +358,7 @@ export const AdminAuthenticationApiAxiosParamCreator = function (configuration?: * @summary Get oauth configuration. * @param {OAuthProvider} provider Specifies the oauth provider type. * @param {*} [options] Override http request option. + * @deprecated * @throws {RequiredError} */ getOAuthConfig: async (provider: OAuthProvider, options: AxiosRequestConfig = {}): Promise => { @@ -353,6 +396,7 @@ export const AdminAuthenticationApiAxiosParamCreator = function (configuration?: * List configured OAuth methods for the current project environment. * @summary List of oauth configurations. * @param {*} [options] Override http request option. + * @deprecated * @throws {RequiredError} */ listOAuthConfig: async (options: AxiosRequestConfig = {}): Promise => { @@ -529,6 +573,17 @@ export const AdminAuthenticationApiFp = function(configuration?: Configuration) const localVarAxiosArgs = await localVarAxiosParamCreator.authorize(authorizePlayerRequest, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, + /** + * The endpoint creates oauth configuration for the current project environment. + * @summary Create oauth configuration. + * @param {AuthConfig} body Specifies the oauth provider specific configuration. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async create(body: AuthConfig, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.create(body, options); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, /** * Creates an authenticated player. The player will be authenticated with the provider and an embedded account can be pre generated. * @summary Create an authenticated player. @@ -543,11 +598,12 @@ export const AdminAuthenticationApiFp = function(configuration?: Configuration) /** * The endpoint creates oauth configuration for the current project environment. * @summary Create oauth configuration. - * @param {OAuthConfig} body Specifies the oauth provider specific configuration. + * @param {AuthConfig} body Specifies the oauth provider specific configuration. * @param {*} [options] Override http request option. + * @deprecated * @throws {RequiredError} */ - async createOAuthConfig(body: OAuthConfig, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async createOAuthConfig(body: AuthConfig, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.createOAuthConfig(body, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, @@ -567,6 +623,7 @@ export const AdminAuthenticationApiFp = function(configuration?: Configuration) * @summary Delete oauth configuration. * @param {OAuthProvider} provider Specifies the oauth provider type. * @param {*} [options] Override http request option. + * @deprecated * @throws {RequiredError} */ async deleteOAuthConfig(provider: OAuthProvider, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { @@ -593,9 +650,10 @@ export const AdminAuthenticationApiFp = function(configuration?: Configuration) * @summary Get oauth configuration. * @param {OAuthProvider} provider Specifies the oauth provider type. * @param {*} [options] Override http request option. + * @deprecated * @throws {RequiredError} */ - async getOAuthConfig(provider: OAuthProvider, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async getOAuthConfig(provider: OAuthProvider, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getOAuthConfig(provider, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, @@ -603,6 +661,7 @@ export const AdminAuthenticationApiFp = function(configuration?: Configuration) * List configured OAuth methods for the current project environment. * @summary List of oauth configurations. * @param {*} [options] Override http request option. + * @deprecated * @throws {RequiredError} */ async listOAuthConfig(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { @@ -663,6 +722,16 @@ export const AdminAuthenticationApiFactory = function (configuration?: Configura authorize(requestParameters: AdminAuthenticationApiAuthorizeRequest, options?: AxiosRequestConfig): AxiosPromise { return localVarFp.authorize(requestParameters.authorizePlayerRequest, options).then((request) => request(axios, basePath)); }, + /** + * The endpoint creates oauth configuration for the current project environment. + * @summary Create oauth configuration. + * @param {AdminAuthenticationApiCreateRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + create(requestParameters: AdminAuthenticationApiCreateRequest, options?: AxiosRequestConfig): AxiosPromise { + return localVarFp.create(requestParameters.body, options).then((request) => request(axios, basePath)); + }, /** * Creates an authenticated player. The player will be authenticated with the provider and an embedded account can be pre generated. * @summary Create an authenticated player. @@ -678,9 +747,10 @@ export const AdminAuthenticationApiFactory = function (configuration?: Configura * @summary Create oauth configuration. * @param {AdminAuthenticationApiCreateOAuthConfigRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. + * @deprecated * @throws {RequiredError} */ - createOAuthConfig(requestParameters: AdminAuthenticationApiCreateOAuthConfigRequest, options?: AxiosRequestConfig): AxiosPromise { + createOAuthConfig(requestParameters: AdminAuthenticationApiCreateOAuthConfigRequest, options?: AxiosRequestConfig): AxiosPromise { return localVarFp.createOAuthConfig(requestParameters.body, options).then((request) => request(axios, basePath)); }, /** @@ -698,6 +768,7 @@ export const AdminAuthenticationApiFactory = function (configuration?: Configura * @summary Delete oauth configuration. * @param {AdminAuthenticationApiDeleteOAuthConfigRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. + * @deprecated * @throws {RequiredError} */ deleteOAuthConfig(requestParameters: AdminAuthenticationApiDeleteOAuthConfigRequest, options?: AxiosRequestConfig): AxiosPromise { @@ -718,15 +789,17 @@ export const AdminAuthenticationApiFactory = function (configuration?: Configura * @summary Get oauth configuration. * @param {AdminAuthenticationApiGetOAuthConfigRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. + * @deprecated * @throws {RequiredError} */ - getOAuthConfig(requestParameters: AdminAuthenticationApiGetOAuthConfigRequest, options?: AxiosRequestConfig): AxiosPromise { + getOAuthConfig(requestParameters: AdminAuthenticationApiGetOAuthConfigRequest, options?: AxiosRequestConfig): AxiosPromise { return localVarFp.getOAuthConfig(requestParameters.provider, options).then((request) => request(axios, basePath)); }, /** * List configured OAuth methods for the current project environment. * @summary List of oauth configurations. * @param {*} [options] Override http request option. + * @deprecated * @throws {RequiredError} */ listOAuthConfig(options?: AxiosRequestConfig): AxiosPromise { @@ -780,6 +853,20 @@ export interface AdminAuthenticationApiAuthorizeRequest { readonly authorizePlayerRequest: AuthorizePlayerRequest } +/** + * Request parameters for create operation in AdminAuthenticationApi. + * @export + * @interface AdminAuthenticationApiCreateRequest + */ +export interface AdminAuthenticationApiCreateRequest { + /** + * Specifies the oauth provider specific configuration. + * @type {AuthConfig} + * @memberof AdminAuthenticationApiCreate + */ + readonly body: AuthConfig +} + /** * Request parameters for createAuthPlayer operation in AdminAuthenticationApi. * @export @@ -802,10 +889,10 @@ export interface AdminAuthenticationApiCreateAuthPlayerRequest { export interface AdminAuthenticationApiCreateOAuthConfigRequest { /** * Specifies the oauth provider specific configuration. - * @type {OAuthConfig} + * @type {AuthConfig} * @memberof AdminAuthenticationApiCreateOAuthConfig */ - readonly body: OAuthConfig + readonly body: AuthConfig } /** @@ -959,6 +1046,18 @@ export class AdminAuthenticationApi extends BaseAPI { return AdminAuthenticationApiFp(this.configuration).authorize(requestParameters.authorizePlayerRequest, options).then((request) => request(this.axios, this.basePath)); } + /** + * The endpoint creates oauth configuration for the current project environment. + * @summary Create oauth configuration. + * @param {AdminAuthenticationApiCreateRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof AdminAuthenticationApi + */ + public create(requestParameters: AdminAuthenticationApiCreateRequest, options?: AxiosRequestConfig) { + return AdminAuthenticationApiFp(this.configuration).create(requestParameters.body, options).then((request) => request(this.axios, this.basePath)); + } + /** * Creates an authenticated player. The player will be authenticated with the provider and an embedded account can be pre generated. * @summary Create an authenticated player. @@ -976,6 +1075,7 @@ export class AdminAuthenticationApi extends BaseAPI { * @summary Create oauth configuration. * @param {AdminAuthenticationApiCreateOAuthConfigRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. + * @deprecated * @throws {RequiredError} * @memberof AdminAuthenticationApi */ @@ -1000,6 +1100,7 @@ export class AdminAuthenticationApi extends BaseAPI { * @summary Delete oauth configuration. * @param {AdminAuthenticationApiDeleteOAuthConfigRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. + * @deprecated * @throws {RequiredError} * @memberof AdminAuthenticationApi */ @@ -1024,6 +1125,7 @@ export class AdminAuthenticationApi extends BaseAPI { * @summary Get oauth configuration. * @param {AdminAuthenticationApiGetOAuthConfigRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. + * @deprecated * @throws {RequiredError} * @memberof AdminAuthenticationApi */ @@ -1035,6 +1137,7 @@ export class AdminAuthenticationApi extends BaseAPI { * List configured OAuth methods for the current project environment. * @summary List of oauth configurations. * @param {*} [options] Override http request option. + * @deprecated * @throws {RequiredError} * @memberof AdminAuthenticationApi */ diff --git a/packages/internal/openapi-clients/src/backend/domain/default-api.ts b/packages/internal/openapi-clients/src/backend/domain/default-api.ts index 734c3b1a..066a0e47 100644 --- a/packages/internal/openapi-clients/src/backend/domain/default-api.ts +++ b/packages/internal/openapi-clients/src/backend/domain/default-api.ts @@ -30,13 +30,14 @@ import { AuthProviderListResponse } from '../models'; export const DefaultApiAxiosParamCreator = function (configuration?: Configuration) { return { /** - * List available authentication methods for the current project environment. - * @summary List of available authentication methods. + * List configured auth methods for the current project environment. + * @summary List of auth configurations. + * @param {boolean} [enabled] * @param {*} [options] Override http request option. * @throws {RequiredError} */ - listAvailableAuthProviders: async (options: AxiosRequestConfig = {}): Promise => { - const localVarPath = `/iam/v1/providers`; + list: async (enabled?: boolean, options: AxiosRequestConfig = {}): Promise => { + const localVarPath = `/iam/v1/config`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; @@ -52,6 +53,10 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) + if (enabled !== undefined) { + localVarQueryParameter['enabled'] = enabled; + } + setSearchParams(localVarUrlObj, localVarQueryParameter); @@ -74,13 +79,14 @@ 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. + * List configured auth methods for the current project environment. + * @summary List of auth configurations. + * @param {boolean} [enabled] * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async listAvailableAuthProviders(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.listAvailableAuthProviders(options); + async list(enabled?: boolean, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.list(enabled, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, } @@ -94,17 +100,32 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa const localVarFp = DefaultApiFp(configuration) return { /** - * List available authentication methods for the current project environment. - * @summary List of available authentication methods. + * List configured auth methods for the current project environment. + * @summary List of auth configurations. + * @param {DefaultApiListRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ - listAvailableAuthProviders(options?: AxiosRequestConfig): AxiosPromise { - return localVarFp.listAvailableAuthProviders(options).then((request) => request(axios, basePath)); + list(requestParameters: DefaultApiListRequest = {}, options?: AxiosRequestConfig): AxiosPromise { + return localVarFp.list(requestParameters.enabled, options).then((request) => request(axios, basePath)); }, }; }; +/** + * Request parameters for list operation in DefaultApi. + * @export + * @interface DefaultApiListRequest + */ +export interface DefaultApiListRequest { + /** + * + * @type {boolean} + * @memberof DefaultApiList + */ + readonly enabled?: boolean +} + /** * DefaultApi - object-oriented interface * @export @@ -113,14 +134,15 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa */ export class DefaultApi extends BaseAPI { /** - * List available authentication methods for the current project environment. - * @summary List of available authentication methods. + * List configured auth methods for the current project environment. + * @summary List of auth configurations. + * @param {DefaultApiListRequest} requestParameters Request parameters. * @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)); + public list(requestParameters: DefaultApiListRequest = {}, options?: AxiosRequestConfig) { + return DefaultApiFp(this.configuration).list(requestParameters.enabled, options).then((request) => request(this.axios, this.basePath)); } } diff --git a/packages/internal/openapi-clients/src/backend/domain/forwarder-contract-api.ts b/packages/internal/openapi-clients/src/backend/domain/forwarder-contract-api.ts new file mode 100644 index 00000000..e3e2611e --- /dev/null +++ b/packages/internal/openapi-clients/src/backend/domain/forwarder-contract-api.ts @@ -0,0 +1,536 @@ +/* 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 { CreateForwarderContractRequest } from '../models'; +// @ts-ignore +import { ForwarderContractDeleteResponse } from '../models'; +// @ts-ignore +import { ForwarderContractResponse } from '../models'; +// @ts-ignore +import { SortOrder } from '../models'; +/** + * ForwarderContractApi - axios parameter creator + * @export + */ +export const ForwarderContractApiAxiosParamCreator = function (configuration?: Configuration) { + return { + /** + * Create a new forwarder contract. This object represents the forwarder contract that will be used to pay the gas fees of the transactions. + * @summary Create a new forwarder contract. + * @param {CreateForwarderContractRequest} createForwarderContractRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + createForwarderContract: async (createForwarderContractRequest: CreateForwarderContractRequest, options: AxiosRequestConfig = {}): Promise => { + // verify required parameter 'createForwarderContractRequest' is not null or undefined + assertParamExists('createForwarderContract', 'createForwarderContractRequest', createForwarderContractRequest) + const localVarPath = `/v1/forwarder_contracts`; + // 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 sk required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(createForwarderContractRequest, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Delete the forwarder contract with the given id. This object represents the forwarder contract that will be used to pay the gas fees for the transactions. + * @summary Delete forwarder contract by id. + * @param {string} id + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + deleteForwarderContract: async (id: string, options: AxiosRequestConfig = {}): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('deleteForwarderContract', 'id', id) + const localVarPath = `/v1/forwarder_contracts/{id}` + .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: 'DELETE', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication sk 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, + }; + }, + /** + * Returns the forwarder contract with the given id. This object represents the forwarder contract that will be used to pay the gas fees for the transactions. + * @summary Get forwarder contract by id. + * @param {string} id + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getForwarderContract: async (id: string, options: AxiosRequestConfig = {}): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('getForwarderContract', 'id', id) + const localVarPath = `/v1/forwarder_contracts/{id}` + .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) + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Returns a list of forwarder contract. This object represents the forwarder contract that will be used to pay the gas fees for the transactions. By default, a maximum of 10 forwarder contract are shown per page. + * @summary List forwarder contract. + * @param {number} [limit] Specifies the maximum number of records to return. + * @param {number} [skip] Specifies the offset for the first records to return. + * @param {SortOrder} [order] Specifies the order in which to sort the results. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + listForwarderContracts: async (limit?: number, skip?: number, order?: SortOrder, options: AxiosRequestConfig = {}): Promise => { + const localVarPath = `/v1/forwarder_contracts`; + // 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 (limit !== undefined) { + localVarQueryParameter['limit'] = limit; + } + + if (skip !== undefined) { + localVarQueryParameter['skip'] = skip; + } + + if (order !== undefined) { + localVarQueryParameter['order'] = order; + } + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Update a forwarder contract. This object represents the forwarder contract that will be used to pay the gas fees of the transactions. + * @summary Update a forwarder contract. + * @param {string} id + * @param {CreateForwarderContractRequest} createForwarderContractRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + updateForwarderContract: async (id: string, createForwarderContractRequest: CreateForwarderContractRequest, options: AxiosRequestConfig = {}): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('updateForwarderContract', 'id', id) + // verify required parameter 'createForwarderContractRequest' is not null or undefined + assertParamExists('updateForwarderContract', 'createForwarderContractRequest', createForwarderContractRequest) + const localVarPath = `/v1/forwarder_contracts/{id}` + .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: 'POST', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication sk required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(createForwarderContractRequest, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + } +}; + +/** + * ForwarderContractApi - functional programming interface + * @export + */ +export const ForwarderContractApiFp = function(configuration?: Configuration) { + const localVarAxiosParamCreator = ForwarderContractApiAxiosParamCreator(configuration) + return { + /** + * Create a new forwarder contract. This object represents the forwarder contract that will be used to pay the gas fees of the transactions. + * @summary Create a new forwarder contract. + * @param {CreateForwarderContractRequest} createForwarderContractRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async createForwarderContract(createForwarderContractRequest: CreateForwarderContractRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.createForwarderContract(createForwarderContractRequest, options); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Delete the forwarder contract with the given id. This object represents the forwarder contract that will be used to pay the gas fees for the transactions. + * @summary Delete forwarder contract by id. + * @param {string} id + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async deleteForwarderContract(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.deleteForwarderContract(id, options); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Returns the forwarder contract with the given id. This object represents the forwarder contract that will be used to pay the gas fees for the transactions. + * @summary Get forwarder contract by id. + * @param {string} id + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async getForwarderContract(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getForwarderContract(id, options); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Returns a list of forwarder contract. This object represents the forwarder contract that will be used to pay the gas fees for the transactions. By default, a maximum of 10 forwarder contract are shown per page. + * @summary List forwarder contract. + * @param {number} [limit] Specifies the maximum number of records to return. + * @param {number} [skip] Specifies the offset for the first records to return. + * @param {SortOrder} [order] Specifies the order in which to sort the results. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async listForwarderContracts(limit?: number, skip?: number, order?: SortOrder, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { + const localVarAxiosArgs = await localVarAxiosParamCreator.listForwarderContracts(limit, skip, order, options); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Update a forwarder contract. This object represents the forwarder contract that will be used to pay the gas fees of the transactions. + * @summary Update a forwarder contract. + * @param {string} id + * @param {CreateForwarderContractRequest} createForwarderContractRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async updateForwarderContract(id: string, createForwarderContractRequest: CreateForwarderContractRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.updateForwarderContract(id, createForwarderContractRequest, options); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + } +}; + +/** + * ForwarderContractApi - factory interface + * @export + */ +export const ForwarderContractApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { + const localVarFp = ForwarderContractApiFp(configuration) + return { + /** + * Create a new forwarder contract. This object represents the forwarder contract that will be used to pay the gas fees of the transactions. + * @summary Create a new forwarder contract. + * @param {ForwarderContractApiCreateForwarderContractRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + createForwarderContract(requestParameters: ForwarderContractApiCreateForwarderContractRequest, options?: AxiosRequestConfig): AxiosPromise { + return localVarFp.createForwarderContract(requestParameters.createForwarderContractRequest, options).then((request) => request(axios, basePath)); + }, + /** + * Delete the forwarder contract with the given id. This object represents the forwarder contract that will be used to pay the gas fees for the transactions. + * @summary Delete forwarder contract by id. + * @param {ForwarderContractApiDeleteForwarderContractRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + deleteForwarderContract(requestParameters: ForwarderContractApiDeleteForwarderContractRequest, options?: AxiosRequestConfig): AxiosPromise { + return localVarFp.deleteForwarderContract(requestParameters.id, options).then((request) => request(axios, basePath)); + }, + /** + * Returns the forwarder contract with the given id. This object represents the forwarder contract that will be used to pay the gas fees for the transactions. + * @summary Get forwarder contract by id. + * @param {ForwarderContractApiGetForwarderContractRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getForwarderContract(requestParameters: ForwarderContractApiGetForwarderContractRequest, options?: AxiosRequestConfig): AxiosPromise { + return localVarFp.getForwarderContract(requestParameters.id, options).then((request) => request(axios, basePath)); + }, + /** + * Returns a list of forwarder contract. This object represents the forwarder contract that will be used to pay the gas fees for the transactions. By default, a maximum of 10 forwarder contract are shown per page. + * @summary List forwarder contract. + * @param {ForwarderContractApiListForwarderContractsRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + listForwarderContracts(requestParameters: ForwarderContractApiListForwarderContractsRequest = {}, options?: AxiosRequestConfig): AxiosPromise> { + return localVarFp.listForwarderContracts(requestParameters.limit, requestParameters.skip, requestParameters.order, options).then((request) => request(axios, basePath)); + }, + /** + * Update a forwarder contract. This object represents the forwarder contract that will be used to pay the gas fees of the transactions. + * @summary Update a forwarder contract. + * @param {ForwarderContractApiUpdateForwarderContractRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + updateForwarderContract(requestParameters: ForwarderContractApiUpdateForwarderContractRequest, options?: AxiosRequestConfig): AxiosPromise { + return localVarFp.updateForwarderContract(requestParameters.id, requestParameters.createForwarderContractRequest, options).then((request) => request(axios, basePath)); + }, + }; +}; + +/** + * Request parameters for createForwarderContract operation in ForwarderContractApi. + * @export + * @interface ForwarderContractApiCreateForwarderContractRequest + */ +export interface ForwarderContractApiCreateForwarderContractRequest { + /** + * + * @type {CreateForwarderContractRequest} + * @memberof ForwarderContractApiCreateForwarderContract + */ + readonly createForwarderContractRequest: CreateForwarderContractRequest +} + +/** + * Request parameters for deleteForwarderContract operation in ForwarderContractApi. + * @export + * @interface ForwarderContractApiDeleteForwarderContractRequest + */ +export interface ForwarderContractApiDeleteForwarderContractRequest { + /** + * + * @type {string} + * @memberof ForwarderContractApiDeleteForwarderContract + */ + readonly id: string +} + +/** + * Request parameters for getForwarderContract operation in ForwarderContractApi. + * @export + * @interface ForwarderContractApiGetForwarderContractRequest + */ +export interface ForwarderContractApiGetForwarderContractRequest { + /** + * + * @type {string} + * @memberof ForwarderContractApiGetForwarderContract + */ + readonly id: string +} + +/** + * Request parameters for listForwarderContracts operation in ForwarderContractApi. + * @export + * @interface ForwarderContractApiListForwarderContractsRequest + */ +export interface ForwarderContractApiListForwarderContractsRequest { + /** + * Specifies the maximum number of records to return. + * @type {number} + * @memberof ForwarderContractApiListForwarderContracts + */ + readonly limit?: number + + /** + * Specifies the offset for the first records to return. + * @type {number} + * @memberof ForwarderContractApiListForwarderContracts + */ + readonly skip?: number + + /** + * Specifies the order in which to sort the results. + * @type {SortOrder} + * @memberof ForwarderContractApiListForwarderContracts + */ + readonly order?: SortOrder +} + +/** + * Request parameters for updateForwarderContract operation in ForwarderContractApi. + * @export + * @interface ForwarderContractApiUpdateForwarderContractRequest + */ +export interface ForwarderContractApiUpdateForwarderContractRequest { + /** + * + * @type {string} + * @memberof ForwarderContractApiUpdateForwarderContract + */ + readonly id: string + + /** + * + * @type {CreateForwarderContractRequest} + * @memberof ForwarderContractApiUpdateForwarderContract + */ + readonly createForwarderContractRequest: CreateForwarderContractRequest +} + +/** + * ForwarderContractApi - object-oriented interface + * @export + * @class ForwarderContractApi + * @extends {BaseAPI} + */ +export class ForwarderContractApi extends BaseAPI { + /** + * Create a new forwarder contract. This object represents the forwarder contract that will be used to pay the gas fees of the transactions. + * @summary Create a new forwarder contract. + * @param {ForwarderContractApiCreateForwarderContractRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ForwarderContractApi + */ + public createForwarderContract(requestParameters: ForwarderContractApiCreateForwarderContractRequest, options?: AxiosRequestConfig) { + return ForwarderContractApiFp(this.configuration).createForwarderContract(requestParameters.createForwarderContractRequest, options).then((request) => request(this.axios, this.basePath)); + } + + /** + * Delete the forwarder contract with the given id. This object represents the forwarder contract that will be used to pay the gas fees for the transactions. + * @summary Delete forwarder contract by id. + * @param {ForwarderContractApiDeleteForwarderContractRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ForwarderContractApi + */ + public deleteForwarderContract(requestParameters: ForwarderContractApiDeleteForwarderContractRequest, options?: AxiosRequestConfig) { + return ForwarderContractApiFp(this.configuration).deleteForwarderContract(requestParameters.id, options).then((request) => request(this.axios, this.basePath)); + } + + /** + * Returns the forwarder contract with the given id. This object represents the forwarder contract that will be used to pay the gas fees for the transactions. + * @summary Get forwarder contract by id. + * @param {ForwarderContractApiGetForwarderContractRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ForwarderContractApi + */ + public getForwarderContract(requestParameters: ForwarderContractApiGetForwarderContractRequest, options?: AxiosRequestConfig) { + return ForwarderContractApiFp(this.configuration).getForwarderContract(requestParameters.id, options).then((request) => request(this.axios, this.basePath)); + } + + /** + * Returns a list of forwarder contract. This object represents the forwarder contract that will be used to pay the gas fees for the transactions. By default, a maximum of 10 forwarder contract are shown per page. + * @summary List forwarder contract. + * @param {ForwarderContractApiListForwarderContractsRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ForwarderContractApi + */ + public listForwarderContracts(requestParameters: ForwarderContractApiListForwarderContractsRequest = {}, options?: AxiosRequestConfig) { + return ForwarderContractApiFp(this.configuration).listForwarderContracts(requestParameters.limit, requestParameters.skip, requestParameters.order, options).then((request) => request(this.axios, this.basePath)); + } + + /** + * Update a forwarder contract. This object represents the forwarder contract that will be used to pay the gas fees of the transactions. + * @summary Update a forwarder contract. + * @param {ForwarderContractApiUpdateForwarderContractRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ForwarderContractApi + */ + public updateForwarderContract(requestParameters: ForwarderContractApiUpdateForwarderContractRequest, options?: AxiosRequestConfig) { + return ForwarderContractApiFp(this.configuration).updateForwarderContract(requestParameters.id, requestParameters.createForwarderContractRequest, options).then((request) => request(this.axios, this.basePath)); + } +} + diff --git a/packages/internal/openapi-clients/src/backend/domain/settings-api.ts b/packages/internal/openapi-clients/src/backend/domain/settings-api.ts index 47219772..cf1d90cf 100644 --- a/packages/internal/openapi-clients/src/backend/domain/settings-api.ts +++ b/packages/internal/openapi-clients/src/backend/domain/settings-api.ts @@ -22,7 +22,7 @@ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObj // @ts-ignore import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base'; // @ts-ignore -import { DeveloperAccountCreateRequest } from '../models'; +import { CreateDeveloperAccountCreateRequest } from '../models'; // @ts-ignore import { DeveloperAccountDeleteResponse } from '../models'; // @ts-ignore @@ -35,6 +35,8 @@ import { DeveloperAccountResponse } from '../models'; import { DeveloperAccountResponseExpandable } from '../models'; // @ts-ignore import { SortOrder } from '../models'; +// @ts-ignore +import { UpdateDeveloperAccountCreateRequest } from '../models'; /** * SettingsApi - axios parameter creator * @export @@ -44,13 +46,13 @@ export const SettingsApiAxiosParamCreator = function (configuration?: Configurat /** * Create or add a developer account. Developer accounts can be used as for escrow, minting and transferring assets. To add your own external account, add a signature and the address of the account. This verified account can then be used as a verified depositor * @summary Create a developer account. - * @param {DeveloperAccountCreateRequest} developerAccountCreateRequest + * @param {CreateDeveloperAccountCreateRequest} createDeveloperAccountCreateRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ - createDeveloperAccount: async (developerAccountCreateRequest: DeveloperAccountCreateRequest, options: AxiosRequestConfig = {}): Promise => { - // verify required parameter 'developerAccountCreateRequest' is not null or undefined - assertParamExists('createDeveloperAccount', 'developerAccountCreateRequest', developerAccountCreateRequest) + createDeveloperAccount: async (createDeveloperAccountCreateRequest: CreateDeveloperAccountCreateRequest, options: AxiosRequestConfig = {}): Promise => { + // verify required parameter 'createDeveloperAccountCreateRequest' is not null or undefined + assertParamExists('createDeveloperAccount', 'createDeveloperAccountCreateRequest', createDeveloperAccountCreateRequest) const localVarPath = `/v1/settings/developer_accounts`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -74,7 +76,7 @@ export const SettingsApiAxiosParamCreator = function (configuration?: Configurat setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(developerAccountCreateRequest, localVarRequestOptions, configuration) + localVarRequestOptions.data = serializeDataIfNeeded(createDeveloperAccountCreateRequest, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), @@ -257,6 +259,50 @@ export const SettingsApiAxiosParamCreator = function (configuration?: Configurat let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Update a developer account. + * @summary Update a developer account. + * @param {string} id + * @param {UpdateDeveloperAccountCreateRequest} updateDeveloperAccountCreateRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + updateDeveloperAccount: async (id: string, updateDeveloperAccountCreateRequest: UpdateDeveloperAccountCreateRequest, options: AxiosRequestConfig = {}): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('updateDeveloperAccount', 'id', id) + // verify required parameter 'updateDeveloperAccountCreateRequest' is not null or undefined + assertParamExists('updateDeveloperAccount', 'updateDeveloperAccountCreateRequest', updateDeveloperAccountCreateRequest) + const localVarPath = `/v1/settings/developer_accounts/{id}` + .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: 'POST', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication sk required + // http bearer authentication required + await setBearerAuthToObject(localVarHeaderParameter, configuration) + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(updateDeveloperAccountCreateRequest, localVarRequestOptions, configuration) + return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, @@ -275,12 +321,12 @@ export const SettingsApiFp = function(configuration?: Configuration) { /** * Create or add a developer account. Developer accounts can be used as for escrow, minting and transferring assets. To add your own external account, add a signature and the address of the account. This verified account can then be used as a verified depositor * @summary Create a developer account. - * @param {DeveloperAccountCreateRequest} developerAccountCreateRequest + * @param {CreateDeveloperAccountCreateRequest} createDeveloperAccountCreateRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async createDeveloperAccount(developerAccountCreateRequest: DeveloperAccountCreateRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.createDeveloperAccount(developerAccountCreateRequest, options); + async createDeveloperAccount(createDeveloperAccountCreateRequest: CreateDeveloperAccountCreateRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.createDeveloperAccount(createDeveloperAccountCreateRequest, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** @@ -332,6 +378,18 @@ export const SettingsApiFp = function(configuration?: Configuration) { const localVarAxiosArgs = await localVarAxiosParamCreator.getVerificationPayload(address, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, + /** + * Update a developer account. + * @summary Update a developer account. + * @param {string} id + * @param {UpdateDeveloperAccountCreateRequest} updateDeveloperAccountCreateRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async updateDeveloperAccount(id: string, updateDeveloperAccountCreateRequest: UpdateDeveloperAccountCreateRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.updateDeveloperAccount(id, updateDeveloperAccountCreateRequest, options); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, } }; @@ -350,7 +408,7 @@ export const SettingsApiFactory = function (configuration?: Configuration, baseP * @throws {RequiredError} */ createDeveloperAccount(requestParameters: SettingsApiCreateDeveloperAccountRequest, options?: AxiosRequestConfig): AxiosPromise { - return localVarFp.createDeveloperAccount(requestParameters.developerAccountCreateRequest, options).then((request) => request(axios, basePath)); + return localVarFp.createDeveloperAccount(requestParameters.createDeveloperAccountCreateRequest, options).then((request) => request(axios, basePath)); }, /** * Delete a developer account from the current project. @@ -392,6 +450,16 @@ export const SettingsApiFactory = function (configuration?: Configuration, baseP getVerificationPayload(requestParameters: SettingsApiGetVerificationPayloadRequest, options?: AxiosRequestConfig): AxiosPromise { return localVarFp.getVerificationPayload(requestParameters.address, options).then((request) => request(axios, basePath)); }, + /** + * Update a developer account. + * @summary Update a developer account. + * @param {SettingsApiUpdateDeveloperAccountRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + updateDeveloperAccount(requestParameters: SettingsApiUpdateDeveloperAccountRequest, options?: AxiosRequestConfig): AxiosPromise { + return localVarFp.updateDeveloperAccount(requestParameters.id, requestParameters.updateDeveloperAccountCreateRequest, options).then((request) => request(axios, basePath)); + }, }; }; @@ -403,10 +471,10 @@ export const SettingsApiFactory = function (configuration?: Configuration, baseP export interface SettingsApiCreateDeveloperAccountRequest { /** * - * @type {DeveloperAccountCreateRequest} + * @type {CreateDeveloperAccountCreateRequest} * @memberof SettingsApiCreateDeveloperAccount */ - readonly developerAccountCreateRequest: DeveloperAccountCreateRequest + readonly createDeveloperAccountCreateRequest: CreateDeveloperAccountCreateRequest } /** @@ -500,6 +568,27 @@ export interface SettingsApiGetVerificationPayloadRequest { readonly address: string } +/** + * Request parameters for updateDeveloperAccount operation in SettingsApi. + * @export + * @interface SettingsApiUpdateDeveloperAccountRequest + */ +export interface SettingsApiUpdateDeveloperAccountRequest { + /** + * + * @type {string} + * @memberof SettingsApiUpdateDeveloperAccount + */ + readonly id: string + + /** + * + * @type {UpdateDeveloperAccountCreateRequest} + * @memberof SettingsApiUpdateDeveloperAccount + */ + readonly updateDeveloperAccountCreateRequest: UpdateDeveloperAccountCreateRequest +} + /** * SettingsApi - object-oriented interface * @export @@ -516,7 +605,7 @@ export class SettingsApi extends BaseAPI { * @memberof SettingsApi */ public createDeveloperAccount(requestParameters: SettingsApiCreateDeveloperAccountRequest, options?: AxiosRequestConfig) { - return SettingsApiFp(this.configuration).createDeveloperAccount(requestParameters.developerAccountCreateRequest, options).then((request) => request(this.axios, this.basePath)); + return SettingsApiFp(this.configuration).createDeveloperAccount(requestParameters.createDeveloperAccountCreateRequest, options).then((request) => request(this.axios, this.basePath)); } /** @@ -566,5 +655,17 @@ export class SettingsApi extends BaseAPI { public getVerificationPayload(requestParameters: SettingsApiGetVerificationPayloadRequest, options?: AxiosRequestConfig) { return SettingsApiFp(this.configuration).getVerificationPayload(requestParameters.address, options).then((request) => request(this.axios, this.basePath)); } + + /** + * Update a developer account. + * @summary Update a developer account. + * @param {SettingsApiUpdateDeveloperAccountRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof SettingsApi + */ + public updateDeveloperAccount(requestParameters: SettingsApiUpdateDeveloperAccountRequest, options?: AxiosRequestConfig) { + return SettingsApiFp(this.configuration).updateDeveloperAccount(requestParameters.id, requestParameters.updateDeveloperAccountCreateRequest, options).then((request) => request(this.axios, this.basePath)); + } } diff --git a/packages/internal/openapi-clients/src/backend/domain/subscriptions-api.ts b/packages/internal/openapi-clients/src/backend/domain/subscriptions-api.ts index 39ac15f2..a18aadf8 100644 --- a/packages/internal/openapi-clients/src/backend/domain/subscriptions-api.ts +++ b/packages/internal/openapi-clients/src/backend/domain/subscriptions-api.ts @@ -42,6 +42,8 @@ import { SubscriptionListResponse } from '../models'; // @ts-ignore import { SubscriptionResponse } from '../models'; // @ts-ignore +import { TestTrigger200Response } from '../models'; +// @ts-ignore import { TriggerDeleteResponse } from '../models'; // @ts-ignore import { TriggerResponse } from '../models'; @@ -605,7 +607,7 @@ export const SubscriptionsApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async testTrigger(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async testTrigger(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.testTrigger(options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, @@ -714,7 +716,7 @@ export const SubscriptionsApiFactory = function (configuration?: Configuration, * @param {*} [options] Override http request option. * @throws {RequiredError} */ - testTrigger(options?: AxiosRequestConfig): AxiosPromise { + testTrigger(options?: AxiosRequestConfig): AxiosPromise { return localVarFp.testTrigger(options).then((request) => request(axios, basePath)); }, }; diff --git a/packages/internal/openapi-clients/src/backend/models/oauth-config.ts b/packages/internal/openapi-clients/src/backend/models/auth-config.ts similarity index 86% rename from packages/internal/openapi-clients/src/backend/models/oauth-config.ts rename to packages/internal/openapi-clients/src/backend/models/auth-config.ts index 7c40d301..6b0f685c 100644 --- a/packages/internal/openapi-clients/src/backend/models/oauth-config.ts +++ b/packages/internal/openapi-clients/src/backend/models/auth-config.ts @@ -24,6 +24,9 @@ import { CustomAuthConfig } from './custom-auth-config'; import { DiscordOAuthConfig } from './discord-oauth-config'; // May contain unused imports in some cases // @ts-ignore +import { EmailAuthConfig } from './email-auth-config'; +// May contain unused imports in some cases +// @ts-ignore import { EpicGamesOAuthConfig } from './epic-games-oauth-config'; // May contain unused imports in some cases // @ts-ignore @@ -65,115 +68,115 @@ import { TwitterOAuthConfig } from './twitter-oauth-config'; /** * * @export - * @interface OAuthConfig + * @interface AuthConfig */ -export interface OAuthConfig { +export interface AuthConfig { /** * Enable OAuth provider. * @type {boolean} - * @memberof OAuthConfig + * @memberof AuthConfig */ 'enabled': boolean; /** * * @type {ThirdPartyOAuthProviderLOOTLOCKER} - * @memberof OAuthConfig + * @memberof AuthConfig */ 'provider': ThirdPartyOAuthProviderLOOTLOCKER; /** * The unique Supabase URL which is supplied when you create a new project in your project dashboard. * @type {string} - * @memberof OAuthConfig + * @memberof AuthConfig */ 'url': string; /** * The unique Supabase Key which is supplied when you create a new project in your project dashboard. * @type {string} - * @memberof OAuthConfig + * @memberof AuthConfig */ 'key': string; /** * PEM encoded public key to verify the JWT token * @type {string} - * @memberof OAuthConfig + * @memberof AuthConfig */ 'publicVerificationKey'?: string; /** * Audience of the JWT token * @type {string} - * @memberof OAuthConfig + * @memberof AuthConfig */ 'aud': string; /** * JWKS URL to fetch the public key * @type {string} - * @memberof OAuthConfig + * @memberof AuthConfig */ 'jwksUrl'?: string; /** * Base URI of your accelbyte gaming service environment. E.g. https://mygame.dev.gamingservices.accelbyte.io/ * @type {string} - * @memberof OAuthConfig + * @memberof AuthConfig */ 'baseUrl': string; /** * Epic Games API client ID. * @type {string} - * @memberof OAuthConfig + * @memberof AuthConfig */ 'clientId': string; /** * Epic Games API client secret. * @type {string} - * @memberof OAuthConfig + * @memberof AuthConfig */ 'clientSecret': string; /** * Telegram bot username. * @type {string} - * @memberof OAuthConfig + * @memberof AuthConfig */ 'botUsername': string; /** * Telegram bot token. * @type {string} - * @memberof OAuthConfig + * @memberof AuthConfig */ 'botToken': string; /** * Line Channel ID. * @type {string} - * @memberof OAuthConfig + * @memberof AuthConfig */ 'channelId': string; /** * Line Channel secret. * @type {string} - * @memberof OAuthConfig + * @memberof AuthConfig */ 'channelSecret': string; /** * Title ID of your Play Fab gaming service environment. * @type {string} - * @memberof OAuthConfig + * @memberof AuthConfig */ 'titleId': string; /** * Project ID of your Firebase service environment. * @type {string} - * @memberof OAuthConfig + * @memberof AuthConfig */ 'projectId': string; /** * Headers to send with the request * @type {string} - * @memberof OAuthConfig + * @memberof AuthConfig */ 'headers'?: string; /** * URL to send the request to to verify the payload * @type {string} - * @memberof OAuthConfig + * @memberof AuthConfig */ 'authenticationUrl': string; } diff --git a/packages/internal/openapi-clients/src/backend/models/basic-auth-provider-email.ts b/packages/internal/openapi-clients/src/backend/models/basic-auth-provider-email.ts new file mode 100644 index 00000000..a8179bda --- /dev/null +++ b/packages/internal/openapi-clients/src/backend/models/basic-auth-provider-email.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 BasicAuthProviderEMAIL = { + Email: 'email' +} as const; + +export type BasicAuthProviderEMAIL = typeof BasicAuthProviderEMAIL[keyof typeof BasicAuthProviderEMAIL]; + + + diff --git a/packages/internal/openapi-clients/src/backend/models/developer-account-create-request.ts b/packages/internal/openapi-clients/src/backend/models/create-developer-account-create-request.ts similarity index 74% rename from packages/internal/openapi-clients/src/backend/models/developer-account-create-request.ts rename to packages/internal/openapi-clients/src/backend/models/create-developer-account-create-request.ts index 438886c2..27b77f6e 100644 --- a/packages/internal/openapi-clients/src/backend/models/developer-account-create-request.ts +++ b/packages/internal/openapi-clients/src/backend/models/create-developer-account-create-request.ts @@ -17,25 +17,25 @@ /** * * @export - * @interface DeveloperAccountCreateRequest + * @interface CreateDeveloperAccountCreateRequest */ -export interface DeveloperAccountCreateRequest { +export interface CreateDeveloperAccountCreateRequest { /** * The address of the wallet that has deposited funds in the paymaster. * @type {string} - * @memberof DeveloperAccountCreateRequest + * @memberof CreateDeveloperAccountCreateRequest */ 'address'?: string; /** * Signature to verify the account ownership. * @type {string} - * @memberof DeveloperAccountCreateRequest + * @memberof CreateDeveloperAccountCreateRequest */ 'signature'?: string; /** * The name of the account. * @type {string} - * @memberof DeveloperAccountCreateRequest + * @memberof CreateDeveloperAccountCreateRequest */ 'name'?: string; } diff --git a/packages/internal/openapi-clients/src/backend/models/create-forwarder-contract-request.ts b/packages/internal/openapi-clients/src/backend/models/create-forwarder-contract-request.ts new file mode 100644 index 00000000..43a708e6 --- /dev/null +++ b/packages/internal/openapi-clients/src/backend/models/create-forwarder-contract-request.ts @@ -0,0 +1,42 @@ +/* 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 CreateForwarderContractRequest + */ +export interface CreateForwarderContractRequest { + /** + * Specifies the address of the paymaster + * @type {string} + * @memberof CreateForwarderContractRequest + */ + 'address': string; + /** + * The chain ID. Must be a [supported chain](/chains). + * @type {number} + * @memberof CreateForwarderContractRequest + */ + 'chainId': number; + /** + * Specifies the name of the paymaster + * @type {string} + * @memberof CreateForwarderContractRequest + */ + 'name'?: string; +} + diff --git a/packages/internal/openapi-clients/src/backend/models/email-auth-config.ts b/packages/internal/openapi-clients/src/backend/models/email-auth-config.ts new file mode 100644 index 00000000..fc45243f --- /dev/null +++ b/packages/internal/openapi-clients/src/backend/models/email-auth-config.ts @@ -0,0 +1,41 @@ +/* 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 { BasicAuthProviderEMAIL } from './basic-auth-provider-email'; + +/** + * Email auth configuration + * @export + * @interface EmailAuthConfig + */ +export interface EmailAuthConfig { + /** + * Enable OAuth provider. + * @type {boolean} + * @memberof EmailAuthConfig + */ + 'enabled': boolean; + /** + * + * @type {BasicAuthProviderEMAIL} + * @memberof EmailAuthConfig + */ + 'provider': BasicAuthProviderEMAIL; +} + + + diff --git a/packages/internal/openapi-clients/src/backend/models/entity-type-forwardercontract.ts b/packages/internal/openapi-clients/src/backend/models/entity-type-forwardercontract.ts new file mode 100644 index 00000000..d0cd2724 --- /dev/null +++ b/packages/internal/openapi-clients/src/backend/models/entity-type-forwardercontract.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 EntityTypeFORWARDERCONTRACT = { + ForwarderContract: 'forwarderContract' +} as const; + +export type EntityTypeFORWARDERCONTRACT = typeof EntityTypeFORWARDERCONTRACT[keyof typeof EntityTypeFORWARDERCONTRACT]; + + + diff --git a/packages/internal/openapi-clients/src/backend/models/forwarder-contract-delete-response.ts b/packages/internal/openapi-clients/src/backend/models/forwarder-contract-delete-response.ts new file mode 100644 index 00000000..4cb73d81 --- /dev/null +++ b/packages/internal/openapi-clients/src/backend/models/forwarder-contract-delete-response.ts @@ -0,0 +1,47 @@ +/* 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 { EntityTypeFORWARDERCONTRACT } from './entity-type-forwardercontract'; + +/** + * + * @export + * @interface ForwarderContractDeleteResponse + */ +export interface ForwarderContractDeleteResponse { + /** + * + * @type {string} + * @memberof ForwarderContractDeleteResponse + */ + 'id': string; + /** + * + * @type {EntityTypeFORWARDERCONTRACT} + * @memberof ForwarderContractDeleteResponse + */ + 'object': EntityTypeFORWARDERCONTRACT; + /** + * + * @type {boolean} + * @memberof ForwarderContractDeleteResponse + */ + 'deleted': boolean; +} + + + diff --git a/packages/internal/openapi-clients/src/backend/models/forwarder-contract-response.ts b/packages/internal/openapi-clients/src/backend/models/forwarder-contract-response.ts new file mode 100644 index 00000000..82c34d7d --- /dev/null +++ b/packages/internal/openapi-clients/src/backend/models/forwarder-contract-response.ts @@ -0,0 +1,65 @@ +/* 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 { EntityTypeFORWARDERCONTRACT } from './entity-type-forwardercontract'; + +/** + * + * @export + * @interface ForwarderContractResponse + */ +export interface ForwarderContractResponse { + /** + * + * @type {string} + * @memberof ForwarderContractResponse + */ + 'id': string; + /** + * + * @type {EntityTypeFORWARDERCONTRACT} + * @memberof ForwarderContractResponse + */ + 'object': EntityTypeFORWARDERCONTRACT; + /** + * + * @type {number} + * @memberof ForwarderContractResponse + */ + 'createdAt': number; + /** + * + * @type {string} + * @memberof ForwarderContractResponse + */ + 'address': string; + /** + * + * @type {number} + * @memberof ForwarderContractResponse + */ + 'chainId': number; + /** + * + * @type {string} + * @memberof ForwarderContractResponse + */ + 'name'?: string; +} + + + diff --git a/packages/internal/openapi-clients/src/backend/models/grant-oauth-response.ts b/packages/internal/openapi-clients/src/backend/models/grant-oauth-response.ts new file mode 100644 index 00000000..c507c5af --- /dev/null +++ b/packages/internal/openapi-clients/src/backend/models/grant-oauth-response.ts @@ -0,0 +1,48 @@ +/* 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 GrantOAuthResponse + */ +export interface GrantOAuthResponse { + /** + * + * @type {string} + * @memberof GrantOAuthResponse + */ + 'authorizationCode'?: string; + /** + * + * @type {string} + * @memberof GrantOAuthResponse + */ + 'accessToken'?: string; + /** + * + * @type {string} + * @memberof GrantOAuthResponse + */ + 'refreshToken'?: string; + /** + * + * @type {string} + * @memberof GrantOAuthResponse + */ + 'playerId'?: string; +} + diff --git a/packages/internal/openapi-clients/src/backend/models/index.ts b/packages/internal/openapi-clients/src/backend/models/index.ts index 66242177..c13b2b5a 100644 --- a/packages/internal/openapi-clients/src/backend/models/index.ts +++ b/packages/internal/openapi-clients/src/backend/models/index.ts @@ -24,6 +24,7 @@ export * from './api-key-response'; export * from './api-key-type'; export * from './asset-inventory'; export * from './asset-type'; +export * from './auth-config'; export * from './auth-player-list-queries'; export * from './auth-player-list-response'; export * from './auth-player-response'; @@ -46,6 +47,7 @@ export * from './base-entity-list-response-email-sample-response'; export * from './base-entity-list-response-log-response'; export * from './base-entity-list-response-trigger-response'; export * from './basic-auth-provider'; +export * from './basic-auth-provider-email'; export * from './cancel-transfer-ownership-request'; export * from './charge-custom-token-policy-strategy'; export * from './checkout-request'; @@ -70,11 +72,13 @@ export * from './create-account-request'; export * from './create-api-authorized-network-request'; export * from './create-auth-player-request'; export * from './create-contract-request'; +export * from './create-developer-account-create-request'; export * from './create-device-request'; export * from './create-ecosystem-configuration-request'; export * from './create-email-sample-request'; export * from './create-event-request'; export * from './create-exchange-request'; +export * from './create-forwarder-contract-request'; export * from './create-paymaster-request'; export * from './create-policy-request'; export * from './create-policy-rule-request'; @@ -90,7 +94,6 @@ export * from './delete-smtpconfig-response'; export * from './deploy-request'; export * from './deprecated-authenticated-player-response'; export * from './developer-account'; -export * from './developer-account-create-request'; export * from './developer-account-delete-response'; export * from './developer-account-get-message-response'; export * from './developer-account-list-queries'; @@ -101,6 +104,7 @@ export * from './device-list-queries'; export * from './device-response'; export * from './discord-oauth-config'; export * from './ecosystem-configuration-response'; +export * from './email-auth-config'; export * from './email-sample-delete-response'; export * from './email-sample-response'; export * from './email-type-request'; @@ -113,6 +117,7 @@ export * from './entity-type-developeraccount'; export * from './entity-type-device'; export * from './entity-type-emailsample'; export * from './entity-type-event'; +export * from './entity-type-forwardercontract'; export * from './entity-type-inventory'; export * from './entity-type-log'; export * from './entity-type-paymaster'; @@ -141,6 +146,8 @@ export * from './fee'; export * from './field-errors-value'; export * from './firebase-oauth-config'; export * from './fixed-rate-token-policy-strategy'; +export * from './forwarder-contract-delete-response'; +export * from './forwarder-contract-response'; export * from './gas-per-interval-limit-policy-rule-response'; export * from './gas-per-transaction-limit-policy-rule-response'; export * from './gas-report'; @@ -148,6 +155,7 @@ export * from './gas-report-list-response'; export * from './gas-report-transaction-intents'; export * from './gas-report-transaction-intents-list-response'; export * from './google-oauth-config'; +export * from './grant-oauth-response'; export * from './init-embedded-request'; export * from './interaction'; export * from './invalid-request-error'; @@ -158,6 +166,7 @@ export * from './jwt-key'; export * from './jwt-key-response'; export * from './line-oauth-config'; export * from './linked-account-response'; +export * from './list-config-request'; export * from './list-subscription-logs-request'; export * from './log'; export * from './log-response'; @@ -171,7 +180,6 @@ export * from './my-ecosystem-response'; export * from './next-action-payload'; export * from './next-action-response'; export * from './next-action-type'; -export * from './oauth-config'; export * from './oauth-config-list-response'; export * from './oauth-init-request'; export * from './oauth-init-request-options'; @@ -279,6 +287,7 @@ export * from './subscription-response-plan'; export * from './supabase-auth-config'; export * from './telegram-oauth-config'; export * from './telegram-third-party-config'; +export * from './test-trigger200-response'; export * from './third-party-oauth-provider'; export * from './third-party-oauth-provider-accelbyte'; export * from './third-party-oauth-provider-custom'; @@ -314,6 +323,7 @@ export * from './typed-domain-data'; export * from './unlink-email-request'; export * from './unlink-oauth-request'; export * from './update-contract-request'; +export * from './update-developer-account-create-request'; export * from './update-email-sample-request'; export * from './update-policy-request'; export * from './update-policy-rule-request'; diff --git a/packages/internal/openapi-clients/src/backend/models/list-config-request.ts b/packages/internal/openapi-clients/src/backend/models/list-config-request.ts new file mode 100644 index 00000000..f1ea8347 --- /dev/null +++ b/packages/internal/openapi-clients/src/backend/models/list-config-request.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 ListConfigRequest + */ +export interface ListConfigRequest { + /** + * + * @type {boolean} + * @memberof ListConfigRequest + */ + 'enabled'?: boolean; +} + diff --git a/packages/internal/openapi-clients/src/backend/models/oauth-config-list-response.ts b/packages/internal/openapi-clients/src/backend/models/oauth-config-list-response.ts index d7824276..ac08d671 100644 --- a/packages/internal/openapi-clients/src/backend/models/oauth-config-list-response.ts +++ b/packages/internal/openapi-clients/src/backend/models/oauth-config-list-response.ts @@ -15,7 +15,7 @@ // May contain unused imports in some cases // @ts-ignore -import { OAuthConfig } from './oauth-config'; +import { AuthConfig } from './auth-config'; /** * Response for the OAuth config list method. @@ -25,9 +25,9 @@ import { OAuthConfig } from './oauth-config'; export interface OAuthConfigListResponse { /** * List of the OAuth providers configurations - * @type {Array} + * @type {Array} * @memberof OAuthConfigListResponse */ - 'data': Array; + 'data': Array; } diff --git a/packages/internal/openapi-clients/src/backend/models/test-trigger200-response.ts b/packages/internal/openapi-clients/src/backend/models/test-trigger200-response.ts new file mode 100644 index 00000000..0dc8c551 --- /dev/null +++ b/packages/internal/openapi-clients/src/backend/models/test-trigger200-response.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 TestTrigger200Response + */ +export interface TestTrigger200Response { + /** + * + * @type {boolean} + * @memberof TestTrigger200Response + */ + 'sent': boolean; +} + diff --git a/packages/internal/openapi-clients/src/backend/models/update-developer-account-create-request.ts b/packages/internal/openapi-clients/src/backend/models/update-developer-account-create-request.ts new file mode 100644 index 00000000..3c72c75e --- /dev/null +++ b/packages/internal/openapi-clients/src/backend/models/update-developer-account-create-request.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 UpdateDeveloperAccountCreateRequest + */ +export interface UpdateDeveloperAccountCreateRequest { + /** + * The name of the account. + * @type {string} + * @memberof UpdateDeveloperAccountCreateRequest + */ + 'name'?: string; +} + diff --git a/sdk/package.json b/sdk/package.json index 8f34e917..6f42e217 100644 --- a/sdk/package.json +++ b/sdk/package.json @@ -1,6 +1,6 @@ { "name": "@openfort/openfort-js", - "version": "0.8.10", + "version": "0.8.11", "author": "Openfort (https://www.openfort.xyz)", "bugs": "https://github.com/openfort-xyz/openfort-js/issues", "repository": "openfort-xyz/openfort-js.git", diff --git a/sdk/src/chains/10200.ts b/sdk/src/chains/10200.ts deleted file mode 100644 index 4229ee6b..00000000 --- a/sdk/src/chains/10200.ts +++ /dev/null @@ -1,47 +0,0 @@ -const chain = { - chain: 'GNO', - chainId: 10200, - explorers: [ - { - name: 'blockscout', - url: 'https://gnosis-chiado.blockscout.com', - standard: 'EIP3091', - icon: { - url: 'ipfs://QmYtUimyqHkkFxYdbXXRbUqNg2VLPUg6Uu2C2nmFWowiZM', - width: 551, - height: 540, - format: 'png', - }, - }, - ], - faucets: ['https://gnosisfaucet.com'], - icon: { - url: 'ipfs://bafybeidk4swpgdyqmpz6shd5onvpaujvwiwthrhypufnwr6xh3dausz2dm', - width: 1800, - height: 1800, - format: 'png', - }, - infoURL: 'https://docs.gnosischain.com', - name: 'Gnosis Chiado Testnet', - nativeCurrency: { - name: 'Chiado xDAI', - symbol: 'XDAI', - decimals: 18, - }, - networkId: 10200, - rpc: [ - 'https://rpc.chiadochain.net', - 'https://rpc.chiado.gnosis.gateway.fm', - 'wss://rpc.chiadochain.net/wss', - 'https://gnosis-chiado-rpc.publicnode.com', - 'wss://gnosis-chiado-rpc.publicnode.com', - 'https://gnosis-chiado.drpc.org', - 'wss://gnosis-chiado.drpc.org', - ], - shortName: 'chi', - slip44: 1, - slug: 'gnosis-chiado-testnet', - testnet: true, -}; - -export default chain; diff --git a/sdk/src/chains/1946.ts b/sdk/src/chains/1946.ts new file mode 100644 index 00000000..82e596d7 --- /dev/null +++ b/sdk/src/chains/1946.ts @@ -0,0 +1,24 @@ +const soneiumMinato = { + name: 'Soneium Minato Testnet', + title: 'Soneium Minato Testnet', + chain: 'soneium-minato-testnet', + rpc: ['https://rpc.minato.soneium.org'], + nativeCurrency: { + name: 'Sepolia Ether', + symbol: 'ETH', + decimals: 18, + }, + shortName: 'soneium-minato', + chainId: 1946, + explorers: [ + { + name: 'Blockscout', + url: 'https://explorer-testnet.soneium.org', + standard: 'EIP3091', + }, + ], + testnet: true, + slug: 'soneium-minato-testnet', +}; + +export default soneiumMinato; diff --git a/sdk/src/chains/204.ts b/sdk/src/chains/204.ts new file mode 100644 index 00000000..34854bf2 --- /dev/null +++ b/sdk/src/chains/204.ts @@ -0,0 +1,35 @@ +export const chain = { + name: 'opBNB', + chain: 'opBNB', + rpc: [ + 'https://opbnb-mainnet-rpc.bnbchain.org', + ], + nativeCurrency: { + name: 'BNB', + symbol: 'BNB', + decimals: 18, + }, + shortName: 'opbnb', + chainId: 204, + networkId: 204, + explorers: [ + { + name: 'opBNB (BSCScan)', + url: 'https://opbnb.bscscan.com', + standard: 'EIP3091', + }, + ], + testnet: false, + slug: 'opbnb', + parent: { + chain: 'bsc', + type: 'L2', + bridges: [ + { + url: 'https://opbnb-mainnet-rpc.bnbchain.org', + }, + ], + }, +}; + +export default chain; diff --git a/sdk/src/chains/300.ts b/sdk/src/chains/300.ts new file mode 100644 index 00000000..a587ab55 --- /dev/null +++ b/sdk/src/chains/300.ts @@ -0,0 +1,29 @@ +const chain = { + name: 'ZKsync Sepolia Testnet', + title: 'ZKsync Sepolia Testnet', + chain: 'zksync-sepolia-testnet', + rpc: ['https://sepolia.era.zksync.dev'], + nativeCurrency: { + name: 'Ether', + symbol: 'ETH', + decimals: 18, + }, + shortName: 'zksync-sepolia', + chainId: 300, + explorers: [ + { + name: 'Etherscan', + url: 'https://sepolia-era.zksync.network/', + standard: 'EIP3091', + }, + { + name: 'ZKsync Explorer', + url: 'https://sepolia.explorer.zksync.io/', + standard: 'EIP3091', + }, + ], + testnet: true, + slug: 'zksync-sepolia-testnet', +}; + +export default chain; diff --git a/sdk/src/chains/3939.ts b/sdk/src/chains/3939.ts new file mode 100644 index 00000000..905c4650 --- /dev/null +++ b/sdk/src/chains/3939.ts @@ -0,0 +1,24 @@ +const dosChainTestnet = { + name: 'DOS Chain Testnet', + title: 'DOS Chain Testnet', + chain: 'dos-chain-testnet', + rpc: ['https://test.doschain.com'], + nativeCurrency: { + name: 'DOS Chain Testnet', + symbol: 'DOS', + decimals: 18, + }, + shortName: 'dos-testnet', + chainId: 3939, + explorers: [ + { + name: 'DOS Chain Testnet Explorer', + url: 'https://test.doscan.io', + standard: 'EIP3091', + }, + ], + testnet: true, + slug: 'dos-chain-testnet', +}; + +export default dosChainTestnet; diff --git a/sdk/src/chains/531050104.ts b/sdk/src/chains/531050104.ts new file mode 100644 index 00000000..5183e39a --- /dev/null +++ b/sdk/src/chains/531050104.ts @@ -0,0 +1,24 @@ +const sophonTestnet = { + name: 'Sophon Testnet', + title: 'Sophon Testnet', + chain: 'sophon-testnet', + rpc: ['https://rpc.testnet.sophon.xyz'], + nativeCurrency: { + name: 'Sophon', + symbol: 'SOPH', + decimals: 18, + }, + shortName: 'sophon-testnet', + chainId: 531050104, + explorers: [ + { + name: 'Sophon Block Explorer', + url: 'https://explorer.testnet.sophon.xyz', + standard: 'EIP3091', + }, + ], + testnet: true, + slug: 'sophon-testnet', +}; + +export default sophonTestnet; diff --git a/sdk/src/chains/5611.ts b/sdk/src/chains/5611.ts new file mode 100644 index 00000000..9019a90a --- /dev/null +++ b/sdk/src/chains/5611.ts @@ -0,0 +1,24 @@ +const opBNBTestnet = { + name: 'opBNB Testnet', + title: 'opBNB Testnet', + chain: 'opbnb-testnet', + rpc: ['https://opbnb-testnet-rpc.bnbchain.org'], + nativeCurrency: { + name: 'tBNB', + symbol: 'tBNB', + decimals: 18, + }, + shortName: 'opbnb-testnet', + chainId: 5611, + explorers: [ + { + name: 'opbnbscan', + url: 'https://testnet.opbnbscan.com', + standard: 'EIP3091', + }, + ], + testnet: true, + slug: 'opbnb-testnet', +}; + +export default opBNBTestnet; diff --git a/sdk/src/chains/59140.ts b/sdk/src/chains/59140.ts deleted file mode 100644 index 6aaded3a..00000000 --- a/sdk/src/chains/59140.ts +++ /dev/null @@ -1,63 +0,0 @@ -const chain = { - chain: 'ETH', - chainId: 59140, - explorers: [ - { - name: 'Etherscan', - url: 'https://goerli.lineascan.build', - standard: 'EIP3091', - icon: { - url: 'ipfs://QmURjritnHL7a8TwZgsFwp3f272DJmG5paaPtWDZ98QZwH', - width: 97, - height: 102, - format: 'svg', - }, - }, - { - name: 'Blockscout', - url: 'https://explorer.goerli.linea.build', - standard: 'EIP3091', - icon: { - url: 'ipfs://QmURjritnHL7a8TwZgsFwp3f272DJmG5paaPtWDZ98QZwH', - width: 97, - height: 102, - format: 'svg', - }, - }, - ], - faucets: ['https://faucetlink.to/goerli'], - icon: { - url: 'ipfs://QmURjritnHL7a8TwZgsFwp3f272DJmG5paaPtWDZ98QZwH', - width: 97, - height: 102, - format: 'svg', - }, - infoURL: 'https://linea.build', - name: 'Linea Testnet', - nativeCurrency: { - name: 'Linea Ether', - symbol: 'ETH', - decimals: 18, - }, - networkId: 59140, - parent: { - type: 'L2', - chain: 'eip155-5', - bridges: [ - { - url: 'https://goerli.hop.exchange/#/send?token=ETH&sourceNetwork=ethereum&destNetwork=linea', - }, - ], - }, - rpc: [ - 'https://rpc.goerli.linea.build', - 'wss://rpc.goerli.linea.build', - ], - shortName: 'linea-testnet', - slug: 'linea-testnet', - status: 'active', - testnet: true, - title: 'Linea Goerli Testnet', -}; - -export default chain; diff --git a/sdk/src/chains/62092.ts b/sdk/src/chains/62092.ts new file mode 100644 index 00000000..042d55d8 --- /dev/null +++ b/sdk/src/chains/62092.ts @@ -0,0 +1,24 @@ +const tiktrixTestnet = { + name: 'TikTrix Testnet', + title: 'TikTrix Testnet', + chain: 'tiktrix-testnet', + rpc: ['https://tiktrix-rpc.xyz'], + nativeCurrency: { + name: 'tTTX', + symbol: 'tTTX', + decimals: 18, + }, + shortName: 'tiktrix-testnet', + chainId: 62092, + explorers: [ + { + name: 'TikTrix Testnet Explorer', + url: 'https://tiktrix.xyz', + standard: 'EIP3091', + }, + ], + testnet: true, + slug: 'tiktrix-testnet', +}; + +export default tiktrixTestnet; diff --git a/sdk/src/chains/7979.ts b/sdk/src/chains/7979.ts new file mode 100644 index 00000000..18f2b6ee --- /dev/null +++ b/sdk/src/chains/7979.ts @@ -0,0 +1,24 @@ +const dosChain = { + name: 'DOS Chain', + title: 'DOS Chain', + chain: 'dos-chain', + rpc: ['https://main.doschain.com'], + nativeCurrency: { + name: 'DOS Chain', + symbol: 'DOS', + decimals: 18, + }, + shortName: 'dos', + chainId: 7979, + testnet: false, + explorers: [ + { + name: 'DOS Chain Explorer', + url: 'https://doscan.io', + standard: 'EIP3091', + }, + ], + slug: 'dos-chain', +}; + +export default dosChain; diff --git a/sdk/src/chains/index.ts b/sdk/src/chains/index.ts index 55755699..baafdcdf 100644 --- a/sdk/src/chains/index.ts +++ b/sdk/src/chains/index.ts @@ -12,11 +12,7 @@ import avalancheMainnet from './43114'; import sepolia from './11155111'; -import lineaGoerli from './59140'; - -import gnosisChiadoTestnet from './10200'; - -import immutableZkEVMMainnet from './13371'; +// import immutableZkEVMMainnet from './13371'; import arbitrumSepolia from './421614'; import arbitrum from './42161'; @@ -38,6 +34,16 @@ import immutableTestnet from './13473'; import optimismSepolia from './11155420'; import optimism from './10'; +import tiktrixTestnet from './62092'; + +import dosMainnet from './7979'; +import dosTestnet from './3939'; + +import opBNB from './204'; +import opBNBTestnet from './5611'; + +import soneiumMinato from './1946'; + export const chainMap: { [key: number]: Chain } = { // eslint-disable-next-line @typescript-eslint/naming-convention 56: bnb, @@ -58,10 +64,6 @@ export const chainMap: { [key: number]: Chain } = { // eslint-disable-next-line @typescript-eslint/naming-convention 11155111: sepolia, // eslint-disable-next-line @typescript-eslint/naming-convention - 59140: lineaGoerli, - // eslint-disable-next-line @typescript-eslint/naming-convention - 10200: gnosisChiadoTestnet, - // eslint-disable-next-line @typescript-eslint/naming-convention 421614: arbitrumSepolia, // eslint-disable-next-line @typescript-eslint/naming-convention 42161: arbitrum, @@ -84,11 +86,21 @@ export const chainMap: { [key: number]: Chain } = { // eslint-disable-next-line @typescript-eslint/naming-convention 13473: immutableTestnet, // eslint-disable-next-line @typescript-eslint/naming-convention - 13371: immutableZkEVMMainnet, - // eslint-disable-next-line @typescript-eslint/naming-convention 11155420: optimismSepolia, // eslint-disable-next-line @typescript-eslint/naming-convention 10: optimism, + // eslint-disable-next-line @typescript-eslint/naming-convention + 62092: tiktrixTestnet, + // eslint-disable-next-line @typescript-eslint/naming-convention + 7979: dosMainnet, + // eslint-disable-next-line @typescript-eslint/naming-convention + 3939: dosTestnet, + // eslint-disable-next-line @typescript-eslint/naming-convention + 204: opBNB, + // eslint-disable-next-line @typescript-eslint/naming-convention + 5611: opBNBTestnet, + // eslint-disable-next-line @typescript-eslint/naming-convention + 1946: soneiumMinato, }; export default [ @@ -100,13 +112,11 @@ export default [ avalancheFuji, avalancheMainnet, sepolia, - lineaGoerli, immutableTestnet, arbitrumSepolia, arbitrum, arbitrumNova, baseSepolia, - gnosisChiadoTestnet, polygon, polygonAmoy, zoraSepoliaTestnet, @@ -116,6 +126,7 @@ export default [ degenChain, optimism, optimismSepolia, + ]; export type Chain = { diff --git a/sdk/src/version.ts b/sdk/src/version.ts index 97c3563e..9e8beef2 100644 --- a/sdk/src/version.ts +++ b/sdk/src/version.ts @@ -1,2 +1,2 @@ -export const VERSION = '0.8.10'; +export const VERSION = '0.8.11'; export const PACKAGE = '@openfort/openfort-js';