From 5bd21e39253947c74b3002d0f67d90f368e7ac2a Mon Sep 17 00:00:00 2001 From: Sam McCord Date: Mon, 20 Apr 2026 10:52:14 -0600 Subject: [PATCH 01/13] feat: add getEndUserByEmail to TypeScript, Python, and Java SDKs Adds wrapper methods around the new getEndUserByEmail OpenAPI operation across all three language clients. Searches end users by email across email, Google, Apple, and GitHub authentication methods. Closes CDPSDK-2561 Co-Authored-By: Claude Opus 4.7 --- java/changelog.d/CDPSDK-2561.feature.md | 1 + .../cdp/client/enduser/EndUserClient.java | 13 + .../cdp/openapi/api/EndUserAccountsApi.java | 84 ++++++ openapi.yaml | 44 +++ python/cdp/end_user_client.py | 21 ++ .../api/end_user_accounts_api.py | 270 ++++++++++++++++++ .../test/test_end_user_accounts_api.py | 7 + python/changelog.d/CDPSDK-2561.feature.md | 1 + .../.changeset/get-end-user-by-email.md | 5 + typescript/src/client/end-user/endUser.ts | 26 ++ .../src/client/end-user/endUser.types.ts | 10 + .../end-user-accounts/end-user-accounts.ts | 13 + 12 files changed, 495 insertions(+) create mode 100644 java/changelog.d/CDPSDK-2561.feature.md create mode 100644 python/changelog.d/CDPSDK-2561.feature.md create mode 100644 typescript/.changeset/get-end-user-by-email.md diff --git a/java/changelog.d/CDPSDK-2561.feature.md b/java/changelog.d/CDPSDK-2561.feature.md new file mode 100644 index 000000000..4554edca2 --- /dev/null +++ b/java/changelog.d/CDPSDK-2561.feature.md @@ -0,0 +1 @@ +Added `getEndUserByEmail` to `EndUserClient` for looking up end users by email across all email-based authentication methods. diff --git a/java/src/main/java/com/coinbase/cdp/client/enduser/EndUserClient.java b/java/src/main/java/com/coinbase/cdp/client/enduser/EndUserClient.java index b08cc93ea..02102ee99 100644 --- a/java/src/main/java/com/coinbase/cdp/client/enduser/EndUserClient.java +++ b/java/src/main/java/com/coinbase/cdp/client/enduser/EndUserClient.java @@ -181,6 +181,19 @@ public EndUser getEndUser(String userId) throws ApiException { return endUserAccountsApi.getEndUser(userId); } + /** + * Gets an end user by email address. + * + *

Searches across all email-based authentication methods (email, Google, Apple, GitHub). + * + * @param email the email address to search for + * @return the end user + * @throws ApiException if the API call fails + */ + public EndUser getEndUserByEmail(String email) throws ApiException { + return endUserAccountsApi.getEndUserByEmail(email); + } + /** * Validates an end user's access token. * diff --git a/java/src/main/java/com/coinbase/cdp/openapi/api/EndUserAccountsApi.java b/java/src/main/java/com/coinbase/cdp/openapi/api/EndUserAccountsApi.java index c7c9923b2..b67907ceb 100644 --- a/java/src/main/java/com/coinbase/cdp/openapi/api/EndUserAccountsApi.java +++ b/java/src/main/java/com/coinbase/cdp/openapi/api/EndUserAccountsApi.java @@ -575,6 +575,90 @@ private HttpRequest.Builder getEndUserRequestBuilder(String userId) throws ApiEx return localVarRequestBuilder; } + /** + * Get an end user by email + * Gets an end user by email address. Searches across all email-based authentication methods (email, Google, Apple, GitHub). This API is intended to be used by the developer's own backend, and is authenticated using the developer's CDP API key. + * @param email The email address to search for across all authentication methods. (required) + * @return EndUser + * @throws ApiException if fails to make API call + */ + public EndUser getEndUserByEmail(String email) throws ApiException { + ApiResponse localVarResponse = getEndUserByEmailWithHttpInfo(email); + return localVarResponse.getData(); + } + + /** + * Get an end user by email + * Gets an end user by email address. Searches across all email-based authentication methods (email, Google, Apple, GitHub). This API is intended to be used by the developer's own backend, and is authenticated using the developer's CDP API key. + * @param email The email address to search for across all authentication methods. (required) + * @return ApiResponse<EndUser> + * @throws ApiException if fails to make API call + */ + public ApiResponse getEndUserByEmailWithHttpInfo(String email) throws ApiException { + HttpRequest.Builder localVarRequestBuilder = getEndUserByEmailRequestBuilder(email); + try { + HttpResponse localVarResponse = memberVarHttpClient.send( + localVarRequestBuilder.build(), + HttpResponse.BodyHandlers.ofInputStream()); + if (memberVarResponseInterceptor != null) { + memberVarResponseInterceptor.accept(localVarResponse); + } + try { + if (localVarResponse.statusCode()/ 100 != 2) { + throw getApiException("getEndUserByEmail", localVarResponse); + } + if (localVarResponse.body() == null) { + return new ApiResponse( + localVarResponse.statusCode(), + localVarResponse.headers().map(), + null + ); + } + + String responseBody = new String(localVarResponse.body().readAllBytes()); + localVarResponse.body().close(); + + return new ApiResponse( + localVarResponse.statusCode(), + localVarResponse.headers().map(), + responseBody.isBlank()? null: memberVarObjectMapper.readValue(responseBody, new TypeReference() {}) + ); + } finally { + } + } catch (IOException e) { + throw new ApiException(e); + } + catch (InterruptedException e) { + Thread.currentThread().interrupt(); + throw new ApiException(e); + } + } + + private HttpRequest.Builder getEndUserByEmailRequestBuilder(String email) throws ApiException { + // verify the required parameter 'email' is set + if (email == null) { + throw new ApiException(400, "Missing the required parameter 'email' when calling getEndUserByEmail"); + } + + HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder(); + + String localVarPath = "/v2/end-users/by-email/{email}" + .replace("{email}", ApiClient.urlEncode(email.toString())); + + localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath)); + + localVarRequestBuilder.header("Accept", "application/json"); + + localVarRequestBuilder.method("GET", HttpRequest.BodyPublishers.noBody()); + if (memberVarReadTimeout != null) { + localVarRequestBuilder.timeout(memberVarReadTimeout); + } + if (memberVarInterceptor != null) { + memberVarInterceptor.accept(localVarRequestBuilder); + } + return localVarRequestBuilder; + } + /** * Import a private key for an end user * Imports an existing private key for an end user into the developer's CDP Project. The private key must be encrypted using the CDP SDK's encryption scheme before being sent to this endpoint. This API should be called from the [CDP SDK](https://github.com/coinbase/cdp-sdk) to ensure that the associated private key is properly encrypted. This endpoint allows developers to import existing keys for their end users, supporting both EVM and Solana key types. The end user must have at least one authentication method configured. diff --git a/openapi.yaml b/openapi.yaml index 187af056c..8b75e3285 100644 --- a/openapi.yaml +++ b/openapi.yaml @@ -1079,6 +1079,50 @@ paths: errorMessage: End user with the given ID not found. '500': $ref: '#/components/responses/InternalServerError' + /v2/end-users/by-email/{email}: + get: + x-audience: development + summary: Get an end user by email + description: |- + Gets an end user by email address. Searches across all email-based authentication methods (email, Google, Apple, GitHub). + + This API is intended to be used by the developer's own backend, and is authenticated using the developer's CDP API key. + operationId: getEndUserByEmail + tags: + - End User Accounts + security: + - apiKeyAuth: [] + parameters: + - name: email + in: path + required: true + description: The email address to search for across all authentication methods. + schema: + type: string + format: email + example: user@example.com + responses: + '200': + description: Successfully got end user. + content: + application/json: + schema: + $ref: '#/components/schemas/EndUser' + '401': + $ref: '#/components/responses/UnauthorizedError' + '404': + description: Not found. + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + examples: + not_found: + value: + errorType: not_found + errorMessage: End user with the given email not found. + '500': + $ref: '#/components/responses/InternalServerError' /v2/end-users/{userId}/evm: post: summary: Add an EVM account to an end user diff --git a/python/cdp/end_user_client.py b/python/cdp/end_user_client.py index a2b47b0b6..4cf7467ba 100644 --- a/python/cdp/end_user_client.py +++ b/python/cdp/end_user_client.py @@ -199,6 +199,27 @@ async def list_end_users( next_page_token=response.next_page_token, ) + async def get_end_user_by_email( + self, + email: str, + ) -> EndUserAccount: + """Get an end user by email address. + + Searches across all email-based authentication methods (email, Google, Apple, GitHub). + + Args: + email: The email address to search for across all authentication methods. + + Returns: + EndUserAccount: The end user with action methods. + + """ + track_action(action="get_end_user_by_email") + + end_user = await self.api_clients.end_user.get_end_user_by_email(email=email) + + return EndUserAccount(end_user, self.api_clients) + async def validate_access_token( self, access_token: str, diff --git a/python/cdp/openapi_client/api/end_user_accounts_api.py b/python/cdp/openapi_client/api/end_user_accounts_api.py index cfb91ae4e..f0de934e6 100644 --- a/python/cdp/openapi_client/api/end_user_accounts_api.py +++ b/python/cdp/openapi_client/api/end_user_accounts_api.py @@ -1663,6 +1663,276 @@ def _get_end_user_serialize( + @validate_call + async def get_end_user_by_email( + self, + email: Annotated[StrictStr, Field(description="The email address to search for across all authentication methods.")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> EndUser: + """Get an end user by email + + Gets an end user by email address. Searches across all email-based authentication methods (email, Google, Apple, GitHub). This API is intended to be used by the developer's own backend, and is authenticated using the developer's CDP API key. + + :param email: The email address to search for across all authentication methods. (required) + :type email: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_end_user_by_email_serialize( + email=email, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "EndUser", + '401': "Error", + '404': "Error", + '500': "Error", + } + response_data = await self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + await response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + async def get_end_user_by_email_with_http_info( + self, + email: Annotated[StrictStr, Field(description="The email address to search for across all authentication methods.")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[EndUser]: + """Get an end user by email + + Gets an end user by email address. Searches across all email-based authentication methods (email, Google, Apple, GitHub). This API is intended to be used by the developer's own backend, and is authenticated using the developer's CDP API key. + + :param email: The email address to search for across all authentication methods. (required) + :type email: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_end_user_by_email_serialize( + email=email, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "EndUser", + '401': "Error", + '404': "Error", + '500': "Error", + } + response_data = await self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + await response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + async def get_end_user_by_email_without_preload_content( + self, + email: Annotated[StrictStr, Field(description="The email address to search for across all authentication methods.")], + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """Get an end user by email + + Gets an end user by email address. Searches across all email-based authentication methods (email, Google, Apple, GitHub). This API is intended to be used by the developer's own backend, and is authenticated using the developer's CDP API key. + + :param email: The email address to search for across all authentication methods. (required) + :type email: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_end_user_by_email_serialize( + email=email, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "EndUser", + '401': "Error", + '404': "Error", + '500': "Error", + } + response_data = await self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _get_end_user_by_email_serialize( + self, + email, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if email is not None: + _path_params['email'] = email + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'apiKeyAuth' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/v2/end-users/by-email/{email}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + @validate_call async def import_end_user( self, diff --git a/python/cdp/openapi_client/test/test_end_user_accounts_api.py b/python/cdp/openapi_client/test/test_end_user_accounts_api.py index 60309743a..179167343 100644 --- a/python/cdp/openapi_client/test/test_end_user_accounts_api.py +++ b/python/cdp/openapi_client/test/test_end_user_accounts_api.py @@ -62,6 +62,13 @@ async def test_get_end_user(self) -> None: """ pass + async def test_get_end_user_by_email(self) -> None: + """Test case for get_end_user_by_email + + Get an end user by email + """ + pass + async def test_import_end_user(self) -> None: """Test case for import_end_user diff --git a/python/changelog.d/CDPSDK-2561.feature.md b/python/changelog.d/CDPSDK-2561.feature.md new file mode 100644 index 000000000..1cf68d803 --- /dev/null +++ b/python/changelog.d/CDPSDK-2561.feature.md @@ -0,0 +1 @@ +Added `get_end_user_by_email` to `EndUserClient` for looking up end users by email across all email-based authentication methods. diff --git a/typescript/.changeset/get-end-user-by-email.md b/typescript/.changeset/get-end-user-by-email.md new file mode 100644 index 000000000..0d451fee5 --- /dev/null +++ b/typescript/.changeset/get-end-user-by-email.md @@ -0,0 +1,5 @@ +--- +"@coinbase/cdp-sdk": minor +--- + +Added `getEndUserByEmail` to `EndUserClient` for looking up end users by email across all email-based authentication methods. diff --git a/typescript/src/client/end-user/endUser.ts b/typescript/src/client/end-user/endUser.ts index 9ef4f8eee..95e5cee55 100644 --- a/typescript/src/client/end-user/endUser.ts +++ b/typescript/src/client/end-user/endUser.ts @@ -7,6 +7,7 @@ import { type ListEndUsersOptions, type CreateEndUserOptions, type GetEndUserOptions, + type GetEndUserByEmailOptions, type ImportEndUserOptions, type AddEndUserEvmAccountOptions, type AddEndUserEvmAccountResult, @@ -167,6 +168,31 @@ export class EndUserClient { return toEndUserAccount(CdpOpenApiClient, { endUser }); } + /** + * Gets an end user by email address. Searches across all email-based authentication methods (email, Google, Apple, GitHub). + * + * @param options - The options for getting an end user by email. + * + * @returns A promise that resolves to the end user. + * + * @example **Get an end user by email** + * ```ts + * const endUser = await cdp.endUser.getEndUserByEmail({ + * email: "user@example.com" + * }); + * console.log(endUser.userId); + * ``` + */ + async getEndUserByEmail(options: GetEndUserByEmailOptions): Promise { + Analytics.trackAction({ + action: "get_end_user_by_email", + }); + + const endUser = await CdpOpenApiClient.getEndUserByEmail(options.email); + + return toEndUserAccount(CdpOpenApiClient, { endUser }); + } + /** * Adds an EVM EOA (Externally Owned Account) to an existing end user. End users can have up to 10 EVM accounts. * diff --git a/typescript/src/client/end-user/endUser.types.ts b/typescript/src/client/end-user/endUser.types.ts index 2d9eb2fb5..3ad6d6014 100644 --- a/typescript/src/client/end-user/endUser.types.ts +++ b/typescript/src/client/end-user/endUser.types.ts @@ -50,6 +50,16 @@ export interface GetEndUserOptions { userId: string; } +/** + * The options for getting an end user by email. + */ +export interface GetEndUserByEmailOptions { + /** + * The email address to search for across all authentication methods (email, Google, Apple, GitHub). + */ + email: string; +} + /** * The options for listing end users. */ diff --git a/typescript/src/openapi-client/generated/end-user-accounts/end-user-accounts.ts b/typescript/src/openapi-client/generated/end-user-accounts/end-user-accounts.ts index 18182c99d..638369995 100644 --- a/typescript/src/openapi-client/generated/end-user-accounts/end-user-accounts.ts +++ b/typescript/src/openapi-client/generated/end-user-accounts/end-user-accounts.ts @@ -86,6 +86,18 @@ export const getEndUser = ( ) => { return cdpApiClient({ url: `/v2/end-users/${userId}`, method: "GET" }, options); }; +/** + * Gets an end user by email address. Searches across all email-based authentication methods (email, Google, Apple, GitHub). + +This API is intended to be used by the developer's own backend, and is authenticated using the developer's CDP API key. + * @summary Get an end user by email + */ +export const getEndUserByEmail = ( + email: string, + options?: SecondParameter>, +) => { + return cdpApiClient({ url: `/v2/end-users/by-email/${email}`, method: "GET" }, options); +}; /** * Adds a new EVM EOA account to an existing end user. End users can have up to 10 EVM accounts. This API is intended to be used by the developer's own backend, and is authenticated using the developer's CDP API key. @@ -172,6 +184,7 @@ export type ValidateEndUserAccessTokenResult = NonNullable< Awaited> >; export type GetEndUserResult = NonNullable>>; +export type GetEndUserByEmailResult = NonNullable>>; export type AddEndUserEvmAccountResult = NonNullable< Awaited> >; From 20dd78b9189bb6939c626898baf0d372b0305cc3 Mon Sep 17 00:00:00 2001 From: Sam McCord Date: Tue, 21 Apr 2026 15:02:13 -0600 Subject: [PATCH 02/13] refactor: rename getEndUserByEmail to lookupEndUser across all SDKs Align SDK wrapper methods with the OpenAPI operationId (lookupEndUser). Renames method, types, analytics actions, internal API calls, and changelog entries in TypeScript, Python, and Java. --- go/openapi/client.gen.go | 150 +++++++ java/changelog.d/CDPSDK-2561.feature.md | 2 +- .../cdp/client/enduser/EndUserClient.java | 6 +- .../cdp/openapi/api/EndUserAccountsApi.java | 182 ++++---- .../cdp/openapi/model/OnrampLimitType.java | 2 +- openapi.yaml | 24 +- python/cdp/end_user_client.py | 8 +- .../api/end_user_accounts_api.py | 410 +++++++++--------- .../models/onramp_limit_type.py | 2 +- .../test/test_end_user_accounts_api.py | 14 +- python/changelog.d/CDPSDK-2561.feature.md | 2 +- rust/src/api.rs | 92 +++- .../.changeset/get-end-user-by-email.md | 2 +- typescript/src/client/end-user/endUser.ts | 16 +- .../src/client/end-user/endUser.types.ts | 4 +- .../coinbaseDeveloperPlatformAPIs.schemas.ts | 15 +- .../end-user-accounts/end-user-accounts.ts | 15 +- 17 files changed, 604 insertions(+), 342 deletions(-) diff --git a/go/openapi/client.gen.go b/go/openapi/client.gen.go index 726440c03..5651454cf 100644 --- a/go/openapi/client.gen.go +++ b/go/openapi/client.gen.go @@ -4432,6 +4432,12 @@ type ImportEndUserParams struct { // ImportEndUserJSONBodyKeyType defines parameters for ImportEndUser. type ImportEndUserJSONBodyKeyType string +// LookupEndUserParams defines parameters for LookupEndUser. +type LookupEndUserParams struct { + // Email The email address to search for across all authentication methods. + Email openapi_types.Email `form:"email" json:"email"` +} + // AddEndUserEvmAccountJSONBody defines parameters for AddEndUserEvmAccount. type AddEndUserEvmAccountJSONBody = map[string]interface{} @@ -9064,6 +9070,9 @@ type ClientInterface interface { ImportEndUser(ctx context.Context, params *ImportEndUserParams, body ImportEndUserJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + // LookupEndUser request + LookupEndUser(ctx context.Context, params *LookupEndUserParams, reqEditors ...RequestEditorFn) (*http.Response, error) + // GetEndUser request GetEndUser(ctx context.Context, userId string, reqEditors ...RequestEditorFn) (*http.Response, error) @@ -9875,6 +9884,18 @@ func (c *CDPClient) ImportEndUser(ctx context.Context, params *ImportEndUserPara return c.Client.Do(req) } +func (c *CDPClient) LookupEndUser(ctx context.Context, params *LookupEndUserParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewLookupEndUserRequest(c.Server, params) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + func (c *CDPClient) GetEndUser(ctx context.Context, userId string, reqEditors ...RequestEditorFn) (*http.Response, error) { req, err := NewGetEndUserRequest(c.Server, userId) if err != nil { @@ -13233,6 +13254,51 @@ func NewImportEndUserRequestWithBody(server string, params *ImportEndUserParams, return req, nil } +// NewLookupEndUserRequest generates requests for LookupEndUser +func NewLookupEndUserRequest(server string, params *LookupEndUserParams) (*http.Request, error) { + var err error + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v2/end-users/lookup") + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + if params != nil { + queryValues := queryURL.Query() + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "email", runtime.ParamLocationQuery, params.Email); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + queryURL.RawQuery = queryValues.Encode() + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + // NewGetEndUserRequest generates requests for GetEndUser func NewGetEndUserRequest(server string, userId string) (*http.Request, error) { var err error @@ -16923,6 +16989,9 @@ type ClientWithResponsesInterface interface { ImportEndUserWithResponse(ctx context.Context, params *ImportEndUserParams, body ImportEndUserJSONRequestBody, reqEditors ...RequestEditorFn) (*ImportEndUserResponse, error) + // LookupEndUserWithResponse request + LookupEndUserWithResponse(ctx context.Context, params *LookupEndUserParams, reqEditors ...RequestEditorFn) (*LookupEndUserResponse, error) + // GetEndUserWithResponse request GetEndUserWithResponse(ctx context.Context, userId string, reqEditors ...RequestEditorFn) (*GetEndUserResponse, error) @@ -18024,6 +18093,31 @@ func (r ImportEndUserResponse) StatusCode() int { return 0 } +type LookupEndUserResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *EndUser + JSON401 *UnauthorizedError + JSON404 *Error + JSON500 *InternalServerError +} + +// Status returns HTTPResponse.Status +func (r LookupEndUserResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r LookupEndUserResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + type GetEndUserResponse struct { Body []byte HTTPResponse *http.Response @@ -20227,6 +20321,15 @@ func (c *ClientWithResponses) ImportEndUserWithResponse(ctx context.Context, par return ParseImportEndUserResponse(rsp) } +// LookupEndUserWithResponse request returning *LookupEndUserResponse +func (c *ClientWithResponses) LookupEndUserWithResponse(ctx context.Context, params *LookupEndUserParams, reqEditors ...RequestEditorFn) (*LookupEndUserResponse, error) { + rsp, err := c.LookupEndUser(ctx, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseLookupEndUserResponse(rsp) +} + // GetEndUserWithResponse request returning *GetEndUserResponse func (c *ClientWithResponses) GetEndUserWithResponse(ctx context.Context, userId string, reqEditors ...RequestEditorFn) (*GetEndUserResponse, error) { rsp, err := c.GetEndUser(ctx, userId, reqEditors...) @@ -23101,6 +23204,53 @@ func ParseImportEndUserResponse(rsp *http.Response) (*ImportEndUserResponse, err return response, nil } +// ParseLookupEndUserResponse parses an HTTP response from a LookupEndUserWithResponse call +func ParseLookupEndUserResponse(rsp *http.Response) (*LookupEndUserResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &LookupEndUserResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest EndUser + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 401: + var dest UnauthorizedError + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON401 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + var dest Error + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON404 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: + var dest InternalServerError + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON500 = &dest + + } + + return response, nil +} + // ParseGetEndUserResponse parses an HTTP response from a GetEndUserWithResponse call func ParseGetEndUserResponse(rsp *http.Response) (*GetEndUserResponse, error) { bodyBytes, err := io.ReadAll(rsp.Body) diff --git a/java/changelog.d/CDPSDK-2561.feature.md b/java/changelog.d/CDPSDK-2561.feature.md index 4554edca2..e7d931363 100644 --- a/java/changelog.d/CDPSDK-2561.feature.md +++ b/java/changelog.d/CDPSDK-2561.feature.md @@ -1 +1 @@ -Added `getEndUserByEmail` to `EndUserClient` for looking up end users by email across all email-based authentication methods. +Added `lookupEndUser` to `EndUserClient` for looking up end users by email across all email-based authentication methods. diff --git a/java/src/main/java/com/coinbase/cdp/client/enduser/EndUserClient.java b/java/src/main/java/com/coinbase/cdp/client/enduser/EndUserClient.java index 02102ee99..893fb4682 100644 --- a/java/src/main/java/com/coinbase/cdp/client/enduser/EndUserClient.java +++ b/java/src/main/java/com/coinbase/cdp/client/enduser/EndUserClient.java @@ -182,7 +182,7 @@ public EndUser getEndUser(String userId) throws ApiException { } /** - * Gets an end user by email address. + * Looks up an end user by email address. * *

Searches across all email-based authentication methods (email, Google, Apple, GitHub). * @@ -190,8 +190,8 @@ public EndUser getEndUser(String userId) throws ApiException { * @return the end user * @throws ApiException if the API call fails */ - public EndUser getEndUserByEmail(String email) throws ApiException { - return endUserAccountsApi.getEndUserByEmail(email); + public EndUser lookupEndUser(String email) throws ApiException { + return endUserAccountsApi.lookupEndUser(email); } /** diff --git a/java/src/main/java/com/coinbase/cdp/openapi/api/EndUserAccountsApi.java b/java/src/main/java/com/coinbase/cdp/openapi/api/EndUserAccountsApi.java index b67907ceb..5b06910d6 100644 --- a/java/src/main/java/com/coinbase/cdp/openapi/api/EndUserAccountsApi.java +++ b/java/src/main/java/com/coinbase/cdp/openapi/api/EndUserAccountsApi.java @@ -296,7 +296,7 @@ private HttpRequest.Builder addEndUserEvmSmartAccountRequestBuilder(String userI /** * Add a Solana account to an end user - * Adds a new Solana account to an existing end user. End users can have up to 10 Solana accounts. This API is intended to be used by the developer's own backend, and is authenticated using the developer's CDP API key. + * Adds a new Solana account to an existing end user. End users can have up to 10 Solana accounts. This API is intended to be used by the developer's own backend, and is authenticated using the developer's CDP API key. * @param userId The ID of the end user to add the account to. (required) * @param xWalletAuth A JWT signed using your Wallet Secret, encoded in base64. Refer to the [Generate Wallet Token](https://docs.cdp.coinbase.com/api-reference/v2/authentication#2-generate-wallet-token) section of our Authentication docs for more details on how to generate your Wallet Token. (optional) * @param xIdempotencyKey An optional string request header for making requests safely retryable. When included, duplicate requests with the same key will return identical responses. Refer to our [Idempotency docs](https://docs.cdp.coinbase.com/api-reference/v2/idempotency) for more information on using idempotency keys. (optional) @@ -311,7 +311,7 @@ public AddEndUserSolanaAccount201Response addEndUserSolanaAccount(String userId, /** * Add a Solana account to an end user - * Adds a new Solana account to an existing end user. End users can have up to 10 Solana accounts. This API is intended to be used by the developer's own backend, and is authenticated using the developer's CDP API key. + * Adds a new Solana account to an existing end user. End users can have up to 10 Solana accounts. This API is intended to be used by the developer's own backend, and is authenticated using the developer's CDP API key. * @param userId The ID of the end user to add the account to. (required) * @param xWalletAuth A JWT signed using your Wallet Secret, encoded in base64. Refer to the [Generate Wallet Token](https://docs.cdp.coinbase.com/api-reference/v2/authentication#2-generate-wallet-token) section of our Authentication docs for more details on how to generate your Wallet Token. (optional) * @param xIdempotencyKey An optional string request header for making requests safely retryable. When included, duplicate requests with the same key will return identical responses. Refer to our [Idempotency docs](https://docs.cdp.coinbase.com/api-reference/v2/idempotency) for more information on using idempotency keys. (optional) @@ -576,26 +576,30 @@ private HttpRequest.Builder getEndUserRequestBuilder(String userId) throws ApiEx } /** - * Get an end user by email - * Gets an end user by email address. Searches across all email-based authentication methods (email, Google, Apple, GitHub). This API is intended to be used by the developer's own backend, and is authenticated using the developer's CDP API key. - * @param email The email address to search for across all authentication methods. (required) + * Import a private key for an end user + * Imports an existing private key for an end user into the developer's CDP Project. The private key must be encrypted using the CDP SDK's encryption scheme before being sent to this endpoint. This API should be called from the [CDP SDK](https://github.com/coinbase/cdp-sdk) to ensure that the associated private key is properly encrypted. This endpoint allows developers to import existing keys for their end users, supporting both EVM and Solana key types. The end user must have at least one authentication method configured. + * @param xWalletAuth A JWT signed using your Wallet Secret, encoded in base64. Refer to the [Generate Wallet Token](https://docs.cdp.coinbase.com/api-reference/v2/authentication#2-generate-wallet-token) section of our Authentication docs for more details on how to generate your Wallet Token. (optional) + * @param xIdempotencyKey An optional string request header for making requests safely retryable. When included, duplicate requests with the same key will return identical responses. Refer to our [Idempotency docs](https://docs.cdp.coinbase.com/api-reference/v2/idempotency) for more information on using idempotency keys. (optional) + * @param importEndUserRequest (optional) * @return EndUser * @throws ApiException if fails to make API call */ - public EndUser getEndUserByEmail(String email) throws ApiException { - ApiResponse localVarResponse = getEndUserByEmailWithHttpInfo(email); + public EndUser importEndUser(String xWalletAuth, String xIdempotencyKey, ImportEndUserRequest importEndUserRequest) throws ApiException { + ApiResponse localVarResponse = importEndUserWithHttpInfo(xWalletAuth, xIdempotencyKey, importEndUserRequest); return localVarResponse.getData(); } /** - * Get an end user by email - * Gets an end user by email address. Searches across all email-based authentication methods (email, Google, Apple, GitHub). This API is intended to be used by the developer's own backend, and is authenticated using the developer's CDP API key. - * @param email The email address to search for across all authentication methods. (required) + * Import a private key for an end user + * Imports an existing private key for an end user into the developer's CDP Project. The private key must be encrypted using the CDP SDK's encryption scheme before being sent to this endpoint. This API should be called from the [CDP SDK](https://github.com/coinbase/cdp-sdk) to ensure that the associated private key is properly encrypted. This endpoint allows developers to import existing keys for their end users, supporting both EVM and Solana key types. The end user must have at least one authentication method configured. + * @param xWalletAuth A JWT signed using your Wallet Secret, encoded in base64. Refer to the [Generate Wallet Token](https://docs.cdp.coinbase.com/api-reference/v2/authentication#2-generate-wallet-token) section of our Authentication docs for more details on how to generate your Wallet Token. (optional) + * @param xIdempotencyKey An optional string request header for making requests safely retryable. When included, duplicate requests with the same key will return identical responses. Refer to our [Idempotency docs](https://docs.cdp.coinbase.com/api-reference/v2/idempotency) for more information on using idempotency keys. (optional) + * @param importEndUserRequest (optional) * @return ApiResponse<EndUser> * @throws ApiException if fails to make API call */ - public ApiResponse getEndUserByEmailWithHttpInfo(String email) throws ApiException { - HttpRequest.Builder localVarRequestBuilder = getEndUserByEmailRequestBuilder(email); + public ApiResponse importEndUserWithHttpInfo(String xWalletAuth, String xIdempotencyKey, ImportEndUserRequest importEndUserRequest) throws ApiException { + HttpRequest.Builder localVarRequestBuilder = importEndUserRequestBuilder(xWalletAuth, xIdempotencyKey, importEndUserRequest); try { HttpResponse localVarResponse = memberVarHttpClient.send( localVarRequestBuilder.build(), @@ -605,7 +609,7 @@ public ApiResponse getEndUserByEmailWithHttpInfo(String email) throws A } try { if (localVarResponse.statusCode()/ 100 != 2) { - throw getApiException("getEndUserByEmail", localVarResponse); + throw getApiException("importEndUser", localVarResponse); } if (localVarResponse.body() == null) { return new ApiResponse( @@ -634,22 +638,29 @@ public ApiResponse getEndUserByEmailWithHttpInfo(String email) throws A } } - private HttpRequest.Builder getEndUserByEmailRequestBuilder(String email) throws ApiException { - // verify the required parameter 'email' is set - if (email == null) { - throw new ApiException(400, "Missing the required parameter 'email' when calling getEndUserByEmail"); - } + private HttpRequest.Builder importEndUserRequestBuilder(String xWalletAuth, String xIdempotencyKey, ImportEndUserRequest importEndUserRequest) throws ApiException { HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder(); - String localVarPath = "/v2/end-users/by-email/{email}" - .replace("{email}", ApiClient.urlEncode(email.toString())); + String localVarPath = "/v2/end-users/import"; localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath)); + if (xWalletAuth != null) { + localVarRequestBuilder.header("X-Wallet-Auth", xWalletAuth.toString()); + } + if (xIdempotencyKey != null) { + localVarRequestBuilder.header("X-Idempotency-Key", xIdempotencyKey.toString()); + } + localVarRequestBuilder.header("Content-Type", "application/json"); localVarRequestBuilder.header("Accept", "application/json"); - localVarRequestBuilder.method("GET", HttpRequest.BodyPublishers.noBody()); + try { + byte[] localVarPostBody = memberVarObjectMapper.writeValueAsBytes(importEndUserRequest); + localVarRequestBuilder.method("POST", HttpRequest.BodyPublishers.ofByteArray(localVarPostBody)); + } catch (IOException e) { + throw new ApiException(e); + } if (memberVarReadTimeout != null) { localVarRequestBuilder.timeout(memberVarReadTimeout); } @@ -660,30 +671,30 @@ private HttpRequest.Builder getEndUserByEmailRequestBuilder(String email) throws } /** - * Import a private key for an end user - * Imports an existing private key for an end user into the developer's CDP Project. The private key must be encrypted using the CDP SDK's encryption scheme before being sent to this endpoint. This API should be called from the [CDP SDK](https://github.com/coinbase/cdp-sdk) to ensure that the associated private key is properly encrypted. This endpoint allows developers to import existing keys for their end users, supporting both EVM and Solana key types. The end user must have at least one authentication method configured. - * @param xWalletAuth A JWT signed using your Wallet Secret, encoded in base64. Refer to the [Generate Wallet Token](https://docs.cdp.coinbase.com/api-reference/v2/authentication#2-generate-wallet-token) section of our Authentication docs for more details on how to generate your Wallet Token. (optional) - * @param xIdempotencyKey An optional string request header for making requests safely retryable. When included, duplicate requests with the same key will return identical responses. Refer to our [Idempotency docs](https://docs.cdp.coinbase.com/api-reference/v2/idempotency) for more information on using idempotency keys. (optional) - * @param importEndUserRequest (optional) - * @return EndUser + * List end users + * Lists the end users belonging to the developer's CDP Project. By default, the response is sorted by creation date in ascending order and paginated to 20 users per page. + * @param pageSize The number of end users to return per page. (optional, default to 20) + * @param pageToken The token for the desired page of end users. Will be empty if there are no more end users to fetch. (optional) + * @param sort Sort end users. Defaults to ascending order (oldest first). (optional) + * @return ListEndUsers200Response * @throws ApiException if fails to make API call */ - public EndUser importEndUser(String xWalletAuth, String xIdempotencyKey, ImportEndUserRequest importEndUserRequest) throws ApiException { - ApiResponse localVarResponse = importEndUserWithHttpInfo(xWalletAuth, xIdempotencyKey, importEndUserRequest); + public ListEndUsers200Response listEndUsers(Integer pageSize, String pageToken, List sort) throws ApiException { + ApiResponse localVarResponse = listEndUsersWithHttpInfo(pageSize, pageToken, sort); return localVarResponse.getData(); } /** - * Import a private key for an end user - * Imports an existing private key for an end user into the developer's CDP Project. The private key must be encrypted using the CDP SDK's encryption scheme before being sent to this endpoint. This API should be called from the [CDP SDK](https://github.com/coinbase/cdp-sdk) to ensure that the associated private key is properly encrypted. This endpoint allows developers to import existing keys for their end users, supporting both EVM and Solana key types. The end user must have at least one authentication method configured. - * @param xWalletAuth A JWT signed using your Wallet Secret, encoded in base64. Refer to the [Generate Wallet Token](https://docs.cdp.coinbase.com/api-reference/v2/authentication#2-generate-wallet-token) section of our Authentication docs for more details on how to generate your Wallet Token. (optional) - * @param xIdempotencyKey An optional string request header for making requests safely retryable. When included, duplicate requests with the same key will return identical responses. Refer to our [Idempotency docs](https://docs.cdp.coinbase.com/api-reference/v2/idempotency) for more information on using idempotency keys. (optional) - * @param importEndUserRequest (optional) - * @return ApiResponse<EndUser> + * List end users + * Lists the end users belonging to the developer's CDP Project. By default, the response is sorted by creation date in ascending order and paginated to 20 users per page. + * @param pageSize The number of end users to return per page. (optional, default to 20) + * @param pageToken The token for the desired page of end users. Will be empty if there are no more end users to fetch. (optional) + * @param sort Sort end users. Defaults to ascending order (oldest first). (optional) + * @return ApiResponse<ListEndUsers200Response> * @throws ApiException if fails to make API call */ - public ApiResponse importEndUserWithHttpInfo(String xWalletAuth, String xIdempotencyKey, ImportEndUserRequest importEndUserRequest) throws ApiException { - HttpRequest.Builder localVarRequestBuilder = importEndUserRequestBuilder(xWalletAuth, xIdempotencyKey, importEndUserRequest); + public ApiResponse listEndUsersWithHttpInfo(Integer pageSize, String pageToken, List sort) throws ApiException { + HttpRequest.Builder localVarRequestBuilder = listEndUsersRequestBuilder(pageSize, pageToken, sort); try { HttpResponse localVarResponse = memberVarHttpClient.send( localVarRequestBuilder.build(), @@ -693,10 +704,10 @@ public ApiResponse importEndUserWithHttpInfo(String xWalletAuth, String } try { if (localVarResponse.statusCode()/ 100 != 2) { - throw getApiException("importEndUser", localVarResponse); + throw getApiException("listEndUsers", localVarResponse); } if (localVarResponse.body() == null) { - return new ApiResponse( + return new ApiResponse( localVarResponse.statusCode(), localVarResponse.headers().map(), null @@ -706,10 +717,10 @@ public ApiResponse importEndUserWithHttpInfo(String xWalletAuth, String String responseBody = new String(localVarResponse.body().readAllBytes()); localVarResponse.body().close(); - return new ApiResponse( + return new ApiResponse( localVarResponse.statusCode(), localVarResponse.headers().map(), - responseBody.isBlank()? null: memberVarObjectMapper.readValue(responseBody, new TypeReference() {}) + responseBody.isBlank()? null: memberVarObjectMapper.readValue(responseBody, new TypeReference() {}) ); } finally { } @@ -722,29 +733,36 @@ public ApiResponse importEndUserWithHttpInfo(String xWalletAuth, String } } - private HttpRequest.Builder importEndUserRequestBuilder(String xWalletAuth, String xIdempotencyKey, ImportEndUserRequest importEndUserRequest) throws ApiException { + private HttpRequest.Builder listEndUsersRequestBuilder(Integer pageSize, String pageToken, List sort) throws ApiException { HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder(); - String localVarPath = "/v2/end-users/import"; + String localVarPath = "/v2/end-users"; - localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath)); + List localVarQueryParams = new ArrayList<>(); + StringJoiner localVarQueryStringJoiner = new StringJoiner("&"); + String localVarQueryParameterBaseName; + localVarQueryParameterBaseName = "pageSize"; + localVarQueryParams.addAll(ApiClient.parameterToPairs("pageSize", pageSize)); + localVarQueryParameterBaseName = "pageToken"; + localVarQueryParams.addAll(ApiClient.parameterToPairs("pageToken", pageToken)); + localVarQueryParameterBaseName = "sort"; + localVarQueryParams.addAll(ApiClient.parameterToPairs("csv", "sort", sort)); - if (xWalletAuth != null) { - localVarRequestBuilder.header("X-Wallet-Auth", xWalletAuth.toString()); - } - if (xIdempotencyKey != null) { - localVarRequestBuilder.header("X-Idempotency-Key", xIdempotencyKey.toString()); + if (!localVarQueryParams.isEmpty() || localVarQueryStringJoiner.length() != 0) { + StringJoiner queryJoiner = new StringJoiner("&"); + localVarQueryParams.forEach(p -> queryJoiner.add(p.getName() + '=' + p.getValue())); + if (localVarQueryStringJoiner.length() != 0) { + queryJoiner.add(localVarQueryStringJoiner.toString()); + } + localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath + '?' + queryJoiner.toString())); + } else { + localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath)); } - localVarRequestBuilder.header("Content-Type", "application/json"); + localVarRequestBuilder.header("Accept", "application/json"); - try { - byte[] localVarPostBody = memberVarObjectMapper.writeValueAsBytes(importEndUserRequest); - localVarRequestBuilder.method("POST", HttpRequest.BodyPublishers.ofByteArray(localVarPostBody)); - } catch (IOException e) { - throw new ApiException(e); - } + localVarRequestBuilder.method("GET", HttpRequest.BodyPublishers.noBody()); if (memberVarReadTimeout != null) { localVarRequestBuilder.timeout(memberVarReadTimeout); } @@ -755,30 +773,26 @@ private HttpRequest.Builder importEndUserRequestBuilder(String xWalletAuth, Stri } /** - * List end users - * Lists the end users belonging to the developer's CDP Project. By default, the response is sorted by creation date in ascending order and paginated to 20 users per page. - * @param pageSize The number of end users to return per page. (optional, default to 20) - * @param pageToken The token for the desired page of end users. Will be empty if there are no more end users to fetch. (optional) - * @param sort Sort end users. Defaults to ascending order (oldest first). (optional) - * @return ListEndUsers200Response + * Look up an end user + * Looks up an end user by authentication method field. Currently supports lookup by email address, which searches across all email-based authentication methods (email, Google, Apple, GitHub). This API is intended to be used by the developer's own backend, and is authenticated using the developer's CDP API key. + * @param email The email address to search for across all authentication methods. (required) + * @return EndUser * @throws ApiException if fails to make API call */ - public ListEndUsers200Response listEndUsers(Integer pageSize, String pageToken, List sort) throws ApiException { - ApiResponse localVarResponse = listEndUsersWithHttpInfo(pageSize, pageToken, sort); + public EndUser lookupEndUser(String email) throws ApiException { + ApiResponse localVarResponse = lookupEndUserWithHttpInfo(email); return localVarResponse.getData(); } /** - * List end users - * Lists the end users belonging to the developer's CDP Project. By default, the response is sorted by creation date in ascending order and paginated to 20 users per page. - * @param pageSize The number of end users to return per page. (optional, default to 20) - * @param pageToken The token for the desired page of end users. Will be empty if there are no more end users to fetch. (optional) - * @param sort Sort end users. Defaults to ascending order (oldest first). (optional) - * @return ApiResponse<ListEndUsers200Response> + * Look up an end user + * Looks up an end user by authentication method field. Currently supports lookup by email address, which searches across all email-based authentication methods (email, Google, Apple, GitHub). This API is intended to be used by the developer's own backend, and is authenticated using the developer's CDP API key. + * @param email The email address to search for across all authentication methods. (required) + * @return ApiResponse<EndUser> * @throws ApiException if fails to make API call */ - public ApiResponse listEndUsersWithHttpInfo(Integer pageSize, String pageToken, List sort) throws ApiException { - HttpRequest.Builder localVarRequestBuilder = listEndUsersRequestBuilder(pageSize, pageToken, sort); + public ApiResponse lookupEndUserWithHttpInfo(String email) throws ApiException { + HttpRequest.Builder localVarRequestBuilder = lookupEndUserRequestBuilder(email); try { HttpResponse localVarResponse = memberVarHttpClient.send( localVarRequestBuilder.build(), @@ -788,10 +802,10 @@ public ApiResponse listEndUsersWithHttpInfo(Integer pag } try { if (localVarResponse.statusCode()/ 100 != 2) { - throw getApiException("listEndUsers", localVarResponse); + throw getApiException("lookupEndUser", localVarResponse); } if (localVarResponse.body() == null) { - return new ApiResponse( + return new ApiResponse( localVarResponse.statusCode(), localVarResponse.headers().map(), null @@ -801,10 +815,10 @@ public ApiResponse listEndUsersWithHttpInfo(Integer pag String responseBody = new String(localVarResponse.body().readAllBytes()); localVarResponse.body().close(); - return new ApiResponse( + return new ApiResponse( localVarResponse.statusCode(), localVarResponse.headers().map(), - responseBody.isBlank()? null: memberVarObjectMapper.readValue(responseBody, new TypeReference() {}) + responseBody.isBlank()? null: memberVarObjectMapper.readValue(responseBody, new TypeReference() {}) ); } finally { } @@ -817,21 +831,21 @@ public ApiResponse listEndUsersWithHttpInfo(Integer pag } } - private HttpRequest.Builder listEndUsersRequestBuilder(Integer pageSize, String pageToken, List sort) throws ApiException { + private HttpRequest.Builder lookupEndUserRequestBuilder(String email) throws ApiException { + // verify the required parameter 'email' is set + if (email == null) { + throw new ApiException(400, "Missing the required parameter 'email' when calling lookupEndUser"); + } HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder(); - String localVarPath = "/v2/end-users"; + String localVarPath = "/v2/end-users/lookup"; List localVarQueryParams = new ArrayList<>(); StringJoiner localVarQueryStringJoiner = new StringJoiner("&"); String localVarQueryParameterBaseName; - localVarQueryParameterBaseName = "pageSize"; - localVarQueryParams.addAll(ApiClient.parameterToPairs("pageSize", pageSize)); - localVarQueryParameterBaseName = "pageToken"; - localVarQueryParams.addAll(ApiClient.parameterToPairs("pageToken", pageToken)); - localVarQueryParameterBaseName = "sort"; - localVarQueryParams.addAll(ApiClient.parameterToPairs("csv", "sort", sort)); + localVarQueryParameterBaseName = "email"; + localVarQueryParams.addAll(ApiClient.parameterToPairs("email", email)); if (!localVarQueryParams.isEmpty() || localVarQueryStringJoiner.length() != 0) { StringJoiner queryJoiner = new StringJoiner("&"); diff --git a/java/src/main/java/com/coinbase/cdp/openapi/model/OnrampLimitType.java b/java/src/main/java/com/coinbase/cdp/openapi/model/OnrampLimitType.java index 5f719b483..bc637d6e6 100644 --- a/java/src/main/java/com/coinbase/cdp/openapi/model/OnrampLimitType.java +++ b/java/src/main/java/com/coinbase/cdp/openapi/model/OnrampLimitType.java @@ -26,7 +26,7 @@ import com.fasterxml.jackson.annotation.JsonValue; /** - * The type of limit: - `weekly_spending`: Rolling 7-day spending limit. The limit applies to the sum of all completed transactions within a sliding 168-hour (7-day) window. As time passes, older transactions naturally expire from the window. $500 is the default limit. - `lifetime_transactions`: All-time transaction count limit. Tracks the total number of completed transactions across the user's entire history with no time-based expiration. Once the limit is reached, no further transactions are allowed. 15 is the default limit. + * The type of limit: - `weekly_spending`: Rolling 7-day spending limit. The limit applies to the sum of all completed transactions within a sliding 168-hour (7-day) window. As time passes, older transactions naturally expire from the window. $500 is the default limit. - `lifetime_transactions`: All-time transaction count limit. Tracks the total number of completed transactions across the user's entire history with no time-based expiration. Once the limit is reached, no further transactions are allowed. 15 is the default limit. */ public enum OnrampLimitType { diff --git a/openapi.yaml b/openapi.yaml index 8b75e3285..36db45027 100644 --- a/openapi.yaml +++ b/openapi.yaml @@ -1079,22 +1079,22 @@ paths: errorMessage: End user with the given ID not found. '500': $ref: '#/components/responses/InternalServerError' - /v2/end-users/by-email/{email}: + /v2/end-users/lookup: get: - x-audience: development - summary: Get an end user by email + x-audience: public + summary: Look up an end user description: |- - Gets an end user by email address. Searches across all email-based authentication methods (email, Google, Apple, GitHub). + Looks up an end user by authentication method field. Currently supports lookup by email address, which searches across all email-based authentication methods (email, Google, Apple, GitHub). This API is intended to be used by the developer's own backend, and is authenticated using the developer's CDP API key. - operationId: getEndUserByEmail + operationId: lookupEndUser tags: - End User Accounts security: - apiKeyAuth: [] parameters: - name: email - in: path + in: query required: true description: The email address to search for across all authentication methods. schema: @@ -1120,7 +1120,7 @@ paths: not_found: value: errorType: not_found - errorMessage: End user with the given email not found. + errorMessage: End user not found. '500': $ref: '#/components/responses/InternalServerError' /v2/end-users/{userId}/evm: @@ -1329,7 +1329,7 @@ paths: post: summary: Add a Solana account to an end user description: |- - Adds a new Solana account to an existing end user. End users can have up to 10 Solana accounts. + Adds a new Solana account to an existing end user. End users can have up to 10 Solana accounts. This API is intended to be used by the developer's own backend, and is authenticated using the developer's CDP API key. operationId: addEndUserSolanaAccount tags: @@ -14530,11 +14530,11 @@ components: type: string description: | The type of limit: - - `weekly_spending`: Rolling 7-day spending limit. The limit applies to the sum of all completed transactions - within a sliding 168-hour (7-day) window. As time passes, older transactions naturally expire from the window. + - `weekly_spending`: Rolling 7-day spending limit. The limit applies to the sum of all completed transactions + within a sliding 168-hour (7-day) window. As time passes, older transactions naturally expire from the window. $500 is the default limit. - - `lifetime_transactions`: All-time transaction count limit. Tracks the total number of completed transactions - across the user's entire history with no time-based expiration. Once the limit is reached, no further + - `lifetime_transactions`: All-time transaction count limit. Tracks the total number of completed transactions + across the user's entire history with no time-based expiration. Once the limit is reached, no further transactions are allowed. 15 is the default limit. enum: - weekly_spending diff --git a/python/cdp/end_user_client.py b/python/cdp/end_user_client.py index 4cf7467ba..bd2158645 100644 --- a/python/cdp/end_user_client.py +++ b/python/cdp/end_user_client.py @@ -199,11 +199,11 @@ async def list_end_users( next_page_token=response.next_page_token, ) - async def get_end_user_by_email( + async def lookup_end_user( self, email: str, ) -> EndUserAccount: - """Get an end user by email address. + """Look up an end user by email address. Searches across all email-based authentication methods (email, Google, Apple, GitHub). @@ -214,9 +214,9 @@ async def get_end_user_by_email( EndUserAccount: The end user with action methods. """ - track_action(action="get_end_user_by_email") + track_action(action="lookup_end_user") - end_user = await self.api_clients.end_user.get_end_user_by_email(email=email) + end_user = await self.api_clients.end_user.lookup_end_user(email=email) return EndUserAccount(end_user, self.api_clients) diff --git a/python/cdp/openapi_client/api/end_user_accounts_api.py b/python/cdp/openapi_client/api/end_user_accounts_api.py index f0de934e6..175a00778 100644 --- a/python/cdp/openapi_client/api/end_user_accounts_api.py +++ b/python/cdp/openapi_client/api/end_user_accounts_api.py @@ -756,7 +756,7 @@ async def add_end_user_solana_account( ) -> AddEndUserSolanaAccount201Response: """Add a Solana account to an end user - Adds a new Solana account to an existing end user. End users can have up to 10 Solana accounts. This API is intended to be used by the developer's own backend, and is authenticated using the developer's CDP API key. + Adds a new Solana account to an existing end user. End users can have up to 10 Solana accounts. This API is intended to be used by the developer's own backend, and is authenticated using the developer's CDP API key. :param user_id: The ID of the end user to add the account to. (required) :type user_id: str @@ -843,7 +843,7 @@ async def add_end_user_solana_account_with_http_info( ) -> ApiResponse[AddEndUserSolanaAccount201Response]: """Add a Solana account to an end user - Adds a new Solana account to an existing end user. End users can have up to 10 Solana accounts. This API is intended to be used by the developer's own backend, and is authenticated using the developer's CDP API key. + Adds a new Solana account to an existing end user. End users can have up to 10 Solana accounts. This API is intended to be used by the developer's own backend, and is authenticated using the developer's CDP API key. :param user_id: The ID of the end user to add the account to. (required) :type user_id: str @@ -930,7 +930,7 @@ async def add_end_user_solana_account_without_preload_content( ) -> RESTResponseType: """Add a Solana account to an end user - Adds a new Solana account to an existing end user. End users can have up to 10 Solana accounts. This API is intended to be used by the developer's own backend, and is authenticated using the developer's CDP API key. + Adds a new Solana account to an existing end user. End users can have up to 10 Solana accounts. This API is intended to be used by the developer's own backend, and is authenticated using the developer's CDP API key. :param user_id: The ID of the end user to add the account to. (required) :type user_id: str @@ -1664,9 +1664,11 @@ def _get_end_user_serialize( @validate_call - async def get_end_user_by_email( + async def import_end_user( self, - email: Annotated[StrictStr, Field(description="The email address to search for across all authentication methods.")], + x_wallet_auth: Annotated[Optional[StrictStr], Field(description="A JWT signed using your Wallet Secret, encoded in base64. Refer to the [Generate Wallet Token](https://docs.cdp.coinbase.com/api-reference/v2/authentication#2-generate-wallet-token) section of our Authentication docs for more details on how to generate your Wallet Token. ")] = None, + x_idempotency_key: Annotated[Optional[Annotated[str, Field(min_length=1, strict=True, max_length=128)]], Field(description="An optional string request header for making requests safely retryable. When included, duplicate requests with the same key will return identical responses. Refer to our [Idempotency docs](https://docs.cdp.coinbase.com/api-reference/v2/idempotency) for more information on using idempotency keys. ")] = None, + import_end_user_request: Optional[ImportEndUserRequest] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1680,12 +1682,16 @@ async def get_end_user_by_email( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> EndUser: - """Get an end user by email + """Import a private key for an end user - Gets an end user by email address. Searches across all email-based authentication methods (email, Google, Apple, GitHub). This API is intended to be used by the developer's own backend, and is authenticated using the developer's CDP API key. + Imports an existing private key for an end user into the developer's CDP Project. The private key must be encrypted using the CDP SDK's encryption scheme before being sent to this endpoint. This API should be called from the [CDP SDK](https://github.com/coinbase/cdp-sdk) to ensure that the associated private key is properly encrypted. This endpoint allows developers to import existing keys for their end users, supporting both EVM and Solana key types. The end user must have at least one authentication method configured. - :param email: The email address to search for across all authentication methods. (required) - :type email: str + :param x_wallet_auth: A JWT signed using your Wallet Secret, encoded in base64. Refer to the [Generate Wallet Token](https://docs.cdp.coinbase.com/api-reference/v2/authentication#2-generate-wallet-token) section of our Authentication docs for more details on how to generate your Wallet Token. + :type x_wallet_auth: str + :param x_idempotency_key: An optional string request header for making requests safely retryable. When included, duplicate requests with the same key will return identical responses. Refer to our [Idempotency docs](https://docs.cdp.coinbase.com/api-reference/v2/idempotency) for more information on using idempotency keys. + :type x_idempotency_key: str + :param import_end_user_request: + :type import_end_user_request: ImportEndUserRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -1708,8 +1714,10 @@ async def get_end_user_by_email( :return: Returns the result object. """ # noqa: E501 - _param = self._get_end_user_by_email_serialize( - email=email, + _param = self._import_end_user_serialize( + x_wallet_auth=x_wallet_auth, + x_idempotency_key=x_idempotency_key, + import_end_user_request=import_end_user_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1717,10 +1725,15 @@ async def get_end_user_by_email( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "EndUser", + '201': "EndUser", + '400': "Error", '401': "Error", - '404': "Error", + '402': "Error", + '409': "Error", + '422': "Error", '500': "Error", + '502': "Error", + '503': "Error", } response_data = await self.api_client.call_api( *_param, @@ -1734,9 +1747,11 @@ async def get_end_user_by_email( @validate_call - async def get_end_user_by_email_with_http_info( + async def import_end_user_with_http_info( self, - email: Annotated[StrictStr, Field(description="The email address to search for across all authentication methods.")], + x_wallet_auth: Annotated[Optional[StrictStr], Field(description="A JWT signed using your Wallet Secret, encoded in base64. Refer to the [Generate Wallet Token](https://docs.cdp.coinbase.com/api-reference/v2/authentication#2-generate-wallet-token) section of our Authentication docs for more details on how to generate your Wallet Token. ")] = None, + x_idempotency_key: Annotated[Optional[Annotated[str, Field(min_length=1, strict=True, max_length=128)]], Field(description="An optional string request header for making requests safely retryable. When included, duplicate requests with the same key will return identical responses. Refer to our [Idempotency docs](https://docs.cdp.coinbase.com/api-reference/v2/idempotency) for more information on using idempotency keys. ")] = None, + import_end_user_request: Optional[ImportEndUserRequest] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1750,12 +1765,16 @@ async def get_end_user_by_email_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[EndUser]: - """Get an end user by email + """Import a private key for an end user - Gets an end user by email address. Searches across all email-based authentication methods (email, Google, Apple, GitHub). This API is intended to be used by the developer's own backend, and is authenticated using the developer's CDP API key. + Imports an existing private key for an end user into the developer's CDP Project. The private key must be encrypted using the CDP SDK's encryption scheme before being sent to this endpoint. This API should be called from the [CDP SDK](https://github.com/coinbase/cdp-sdk) to ensure that the associated private key is properly encrypted. This endpoint allows developers to import existing keys for their end users, supporting both EVM and Solana key types. The end user must have at least one authentication method configured. - :param email: The email address to search for across all authentication methods. (required) - :type email: str + :param x_wallet_auth: A JWT signed using your Wallet Secret, encoded in base64. Refer to the [Generate Wallet Token](https://docs.cdp.coinbase.com/api-reference/v2/authentication#2-generate-wallet-token) section of our Authentication docs for more details on how to generate your Wallet Token. + :type x_wallet_auth: str + :param x_idempotency_key: An optional string request header for making requests safely retryable. When included, duplicate requests with the same key will return identical responses. Refer to our [Idempotency docs](https://docs.cdp.coinbase.com/api-reference/v2/idempotency) for more information on using idempotency keys. + :type x_idempotency_key: str + :param import_end_user_request: + :type import_end_user_request: ImportEndUserRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -1778,8 +1797,10 @@ async def get_end_user_by_email_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_end_user_by_email_serialize( - email=email, + _param = self._import_end_user_serialize( + x_wallet_auth=x_wallet_auth, + x_idempotency_key=x_idempotency_key, + import_end_user_request=import_end_user_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1787,10 +1808,15 @@ async def get_end_user_by_email_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "EndUser", + '201': "EndUser", + '400': "Error", '401': "Error", - '404': "Error", + '402': "Error", + '409': "Error", + '422': "Error", '500': "Error", + '502': "Error", + '503': "Error", } response_data = await self.api_client.call_api( *_param, @@ -1804,9 +1830,11 @@ async def get_end_user_by_email_with_http_info( @validate_call - async def get_end_user_by_email_without_preload_content( + async def import_end_user_without_preload_content( self, - email: Annotated[StrictStr, Field(description="The email address to search for across all authentication methods.")], + x_wallet_auth: Annotated[Optional[StrictStr], Field(description="A JWT signed using your Wallet Secret, encoded in base64. Refer to the [Generate Wallet Token](https://docs.cdp.coinbase.com/api-reference/v2/authentication#2-generate-wallet-token) section of our Authentication docs for more details on how to generate your Wallet Token. ")] = None, + x_idempotency_key: Annotated[Optional[Annotated[str, Field(min_length=1, strict=True, max_length=128)]], Field(description="An optional string request header for making requests safely retryable. When included, duplicate requests with the same key will return identical responses. Refer to our [Idempotency docs](https://docs.cdp.coinbase.com/api-reference/v2/idempotency) for more information on using idempotency keys. ")] = None, + import_end_user_request: Optional[ImportEndUserRequest] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1820,12 +1848,16 @@ async def get_end_user_by_email_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """Get an end user by email + """Import a private key for an end user - Gets an end user by email address. Searches across all email-based authentication methods (email, Google, Apple, GitHub). This API is intended to be used by the developer's own backend, and is authenticated using the developer's CDP API key. + Imports an existing private key for an end user into the developer's CDP Project. The private key must be encrypted using the CDP SDK's encryption scheme before being sent to this endpoint. This API should be called from the [CDP SDK](https://github.com/coinbase/cdp-sdk) to ensure that the associated private key is properly encrypted. This endpoint allows developers to import existing keys for their end users, supporting both EVM and Solana key types. The end user must have at least one authentication method configured. - :param email: The email address to search for across all authentication methods. (required) - :type email: str + :param x_wallet_auth: A JWT signed using your Wallet Secret, encoded in base64. Refer to the [Generate Wallet Token](https://docs.cdp.coinbase.com/api-reference/v2/authentication#2-generate-wallet-token) section of our Authentication docs for more details on how to generate your Wallet Token. + :type x_wallet_auth: str + :param x_idempotency_key: An optional string request header for making requests safely retryable. When included, duplicate requests with the same key will return identical responses. Refer to our [Idempotency docs](https://docs.cdp.coinbase.com/api-reference/v2/idempotency) for more information on using idempotency keys. + :type x_idempotency_key: str + :param import_end_user_request: + :type import_end_user_request: ImportEndUserRequest :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -1848,8 +1880,10 @@ async def get_end_user_by_email_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_end_user_by_email_serialize( - email=email, + _param = self._import_end_user_serialize( + x_wallet_auth=x_wallet_auth, + x_idempotency_key=x_idempotency_key, + import_end_user_request=import_end_user_request, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1857,10 +1891,15 @@ async def get_end_user_by_email_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "EndUser", + '201': "EndUser", + '400': "Error", '401': "Error", - '404': "Error", + '402': "Error", + '409': "Error", + '422': "Error", '500': "Error", + '502': "Error", + '503': "Error", } response_data = await self.api_client.call_api( *_param, @@ -1869,9 +1908,11 @@ async def get_end_user_by_email_without_preload_content( return response_data.response - def _get_end_user_by_email_serialize( + def _import_end_user_serialize( self, - email, + x_wallet_auth, + x_idempotency_key, + import_end_user_request, _request_auth, _content_type, _headers, @@ -1893,12 +1934,16 @@ def _get_end_user_by_email_serialize( _body_params: Optional[bytes] = None # process the path parameters - if email is not None: - _path_params['email'] = email # process the query parameters # process the header parameters + if x_wallet_auth is not None: + _header_params['X-Wallet-Auth'] = x_wallet_auth + if x_idempotency_key is not None: + _header_params['X-Idempotency-Key'] = x_idempotency_key # process the form parameters # process the body parameter + if import_end_user_request is not None: + _body_params = import_end_user_request # set the HTTP header `Accept` @@ -1909,6 +1954,19 @@ def _get_end_user_by_email_serialize( ] ) + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -1916,8 +1974,8 @@ def _get_end_user_by_email_serialize( ] return self.api_client.param_serialize( - method='GET', - resource_path='/v2/end-users/by-email/{email}', + method='POST', + resource_path='/v2/end-users/import', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -1934,11 +1992,11 @@ def _get_end_user_by_email_serialize( @validate_call - async def import_end_user( + async def list_end_users( self, - x_wallet_auth: Annotated[Optional[StrictStr], Field(description="A JWT signed using your Wallet Secret, encoded in base64. Refer to the [Generate Wallet Token](https://docs.cdp.coinbase.com/api-reference/v2/authentication#2-generate-wallet-token) section of our Authentication docs for more details on how to generate your Wallet Token. ")] = None, - x_idempotency_key: Annotated[Optional[Annotated[str, Field(min_length=1, strict=True, max_length=128)]], Field(description="An optional string request header for making requests safely retryable. When included, duplicate requests with the same key will return identical responses. Refer to our [Idempotency docs](https://docs.cdp.coinbase.com/api-reference/v2/idempotency) for more information on using idempotency keys. ")] = None, - import_end_user_request: Optional[ImportEndUserRequest] = None, + page_size: Annotated[Optional[Annotated[int, Field(le=100, strict=True, ge=1)]], Field(description="The number of end users to return per page.")] = None, + page_token: Annotated[Optional[StrictStr], Field(description="The token for the desired page of end users. Will be empty if there are no more end users to fetch.")] = None, + sort: Annotated[Optional[List[StrictStr]], Field(description="Sort end users. Defaults to ascending order (oldest first).")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1951,17 +2009,17 @@ async def import_end_user( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> EndUser: - """Import a private key for an end user + ) -> ListEndUsers200Response: + """List end users - Imports an existing private key for an end user into the developer's CDP Project. The private key must be encrypted using the CDP SDK's encryption scheme before being sent to this endpoint. This API should be called from the [CDP SDK](https://github.com/coinbase/cdp-sdk) to ensure that the associated private key is properly encrypted. This endpoint allows developers to import existing keys for their end users, supporting both EVM and Solana key types. The end user must have at least one authentication method configured. + Lists the end users belonging to the developer's CDP Project. By default, the response is sorted by creation date in ascending order and paginated to 20 users per page. - :param x_wallet_auth: A JWT signed using your Wallet Secret, encoded in base64. Refer to the [Generate Wallet Token](https://docs.cdp.coinbase.com/api-reference/v2/authentication#2-generate-wallet-token) section of our Authentication docs for more details on how to generate your Wallet Token. - :type x_wallet_auth: str - :param x_idempotency_key: An optional string request header for making requests safely retryable. When included, duplicate requests with the same key will return identical responses. Refer to our [Idempotency docs](https://docs.cdp.coinbase.com/api-reference/v2/idempotency) for more information on using idempotency keys. - :type x_idempotency_key: str - :param import_end_user_request: - :type import_end_user_request: ImportEndUserRequest + :param page_size: The number of end users to return per page. + :type page_size: int + :param page_token: The token for the desired page of end users. Will be empty if there are no more end users to fetch. + :type page_token: str + :param sort: Sort end users. Defaults to ascending order (oldest first). + :type sort: List[str] :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -1984,10 +2042,10 @@ async def import_end_user( :return: Returns the result object. """ # noqa: E501 - _param = self._import_end_user_serialize( - x_wallet_auth=x_wallet_auth, - x_idempotency_key=x_idempotency_key, - import_end_user_request=import_end_user_request, + _param = self._list_end_users_serialize( + page_size=page_size, + page_token=page_token, + sort=sort, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1995,12 +2053,9 @@ async def import_end_user( ) _response_types_map: Dict[str, Optional[str]] = { - '201': "EndUser", + '200': "ListEndUsers200Response", '400': "Error", '401': "Error", - '402': "Error", - '409': "Error", - '422': "Error", '500': "Error", '502': "Error", '503': "Error", @@ -2017,11 +2072,11 @@ async def import_end_user( @validate_call - async def import_end_user_with_http_info( + async def list_end_users_with_http_info( self, - x_wallet_auth: Annotated[Optional[StrictStr], Field(description="A JWT signed using your Wallet Secret, encoded in base64. Refer to the [Generate Wallet Token](https://docs.cdp.coinbase.com/api-reference/v2/authentication#2-generate-wallet-token) section of our Authentication docs for more details on how to generate your Wallet Token. ")] = None, - x_idempotency_key: Annotated[Optional[Annotated[str, Field(min_length=1, strict=True, max_length=128)]], Field(description="An optional string request header for making requests safely retryable. When included, duplicate requests with the same key will return identical responses. Refer to our [Idempotency docs](https://docs.cdp.coinbase.com/api-reference/v2/idempotency) for more information on using idempotency keys. ")] = None, - import_end_user_request: Optional[ImportEndUserRequest] = None, + page_size: Annotated[Optional[Annotated[int, Field(le=100, strict=True, ge=1)]], Field(description="The number of end users to return per page.")] = None, + page_token: Annotated[Optional[StrictStr], Field(description="The token for the desired page of end users. Will be empty if there are no more end users to fetch.")] = None, + sort: Annotated[Optional[List[StrictStr]], Field(description="Sort end users. Defaults to ascending order (oldest first).")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2034,17 +2089,17 @@ async def import_end_user_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[EndUser]: - """Import a private key for an end user + ) -> ApiResponse[ListEndUsers200Response]: + """List end users - Imports an existing private key for an end user into the developer's CDP Project. The private key must be encrypted using the CDP SDK's encryption scheme before being sent to this endpoint. This API should be called from the [CDP SDK](https://github.com/coinbase/cdp-sdk) to ensure that the associated private key is properly encrypted. This endpoint allows developers to import existing keys for their end users, supporting both EVM and Solana key types. The end user must have at least one authentication method configured. + Lists the end users belonging to the developer's CDP Project. By default, the response is sorted by creation date in ascending order and paginated to 20 users per page. - :param x_wallet_auth: A JWT signed using your Wallet Secret, encoded in base64. Refer to the [Generate Wallet Token](https://docs.cdp.coinbase.com/api-reference/v2/authentication#2-generate-wallet-token) section of our Authentication docs for more details on how to generate your Wallet Token. - :type x_wallet_auth: str - :param x_idempotency_key: An optional string request header for making requests safely retryable. When included, duplicate requests with the same key will return identical responses. Refer to our [Idempotency docs](https://docs.cdp.coinbase.com/api-reference/v2/idempotency) for more information on using idempotency keys. - :type x_idempotency_key: str - :param import_end_user_request: - :type import_end_user_request: ImportEndUserRequest + :param page_size: The number of end users to return per page. + :type page_size: int + :param page_token: The token for the desired page of end users. Will be empty if there are no more end users to fetch. + :type page_token: str + :param sort: Sort end users. Defaults to ascending order (oldest first). + :type sort: List[str] :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -2067,10 +2122,10 @@ async def import_end_user_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._import_end_user_serialize( - x_wallet_auth=x_wallet_auth, - x_idempotency_key=x_idempotency_key, - import_end_user_request=import_end_user_request, + _param = self._list_end_users_serialize( + page_size=page_size, + page_token=page_token, + sort=sort, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2078,12 +2133,9 @@ async def import_end_user_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '201': "EndUser", + '200': "ListEndUsers200Response", '400': "Error", '401': "Error", - '402': "Error", - '409': "Error", - '422': "Error", '500': "Error", '502': "Error", '503': "Error", @@ -2100,11 +2152,11 @@ async def import_end_user_with_http_info( @validate_call - async def import_end_user_without_preload_content( + async def list_end_users_without_preload_content( self, - x_wallet_auth: Annotated[Optional[StrictStr], Field(description="A JWT signed using your Wallet Secret, encoded in base64. Refer to the [Generate Wallet Token](https://docs.cdp.coinbase.com/api-reference/v2/authentication#2-generate-wallet-token) section of our Authentication docs for more details on how to generate your Wallet Token. ")] = None, - x_idempotency_key: Annotated[Optional[Annotated[str, Field(min_length=1, strict=True, max_length=128)]], Field(description="An optional string request header for making requests safely retryable. When included, duplicate requests with the same key will return identical responses. Refer to our [Idempotency docs](https://docs.cdp.coinbase.com/api-reference/v2/idempotency) for more information on using idempotency keys. ")] = None, - import_end_user_request: Optional[ImportEndUserRequest] = None, + page_size: Annotated[Optional[Annotated[int, Field(le=100, strict=True, ge=1)]], Field(description="The number of end users to return per page.")] = None, + page_token: Annotated[Optional[StrictStr], Field(description="The token for the desired page of end users. Will be empty if there are no more end users to fetch.")] = None, + sort: Annotated[Optional[List[StrictStr]], Field(description="Sort end users. Defaults to ascending order (oldest first).")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2118,16 +2170,16 @@ async def import_end_user_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """Import a private key for an end user + """List end users - Imports an existing private key for an end user into the developer's CDP Project. The private key must be encrypted using the CDP SDK's encryption scheme before being sent to this endpoint. This API should be called from the [CDP SDK](https://github.com/coinbase/cdp-sdk) to ensure that the associated private key is properly encrypted. This endpoint allows developers to import existing keys for their end users, supporting both EVM and Solana key types. The end user must have at least one authentication method configured. + Lists the end users belonging to the developer's CDP Project. By default, the response is sorted by creation date in ascending order and paginated to 20 users per page. - :param x_wallet_auth: A JWT signed using your Wallet Secret, encoded in base64. Refer to the [Generate Wallet Token](https://docs.cdp.coinbase.com/api-reference/v2/authentication#2-generate-wallet-token) section of our Authentication docs for more details on how to generate your Wallet Token. - :type x_wallet_auth: str - :param x_idempotency_key: An optional string request header for making requests safely retryable. When included, duplicate requests with the same key will return identical responses. Refer to our [Idempotency docs](https://docs.cdp.coinbase.com/api-reference/v2/idempotency) for more information on using idempotency keys. - :type x_idempotency_key: str - :param import_end_user_request: - :type import_end_user_request: ImportEndUserRequest + :param page_size: The number of end users to return per page. + :type page_size: int + :param page_token: The token for the desired page of end users. Will be empty if there are no more end users to fetch. + :type page_token: str + :param sort: Sort end users. Defaults to ascending order (oldest first). + :type sort: List[str] :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -2150,10 +2202,10 @@ async def import_end_user_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._import_end_user_serialize( - x_wallet_auth=x_wallet_auth, - x_idempotency_key=x_idempotency_key, - import_end_user_request=import_end_user_request, + _param = self._list_end_users_serialize( + page_size=page_size, + page_token=page_token, + sort=sort, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2161,12 +2213,9 @@ async def import_end_user_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '201': "EndUser", + '200': "ListEndUsers200Response", '400': "Error", '401': "Error", - '402': "Error", - '409': "Error", - '422': "Error", '500': "Error", '502': "Error", '503': "Error", @@ -2178,11 +2227,11 @@ async def import_end_user_without_preload_content( return response_data.response - def _import_end_user_serialize( + def _list_end_users_serialize( self, - x_wallet_auth, - x_idempotency_key, - import_end_user_request, + page_size, + page_token, + sort, _request_auth, _content_type, _headers, @@ -2192,6 +2241,7 @@ def _import_end_user_serialize( _host = None _collection_formats: Dict[str, str] = { + 'sort': 'csv', } _path_params: Dict[str, str] = {} @@ -2205,15 +2255,21 @@ def _import_end_user_serialize( # process the path parameters # process the query parameters + if page_size is not None: + + _query_params.append(('pageSize', page_size)) + + if page_token is not None: + + _query_params.append(('pageToken', page_token)) + + if sort is not None: + + _query_params.append(('sort', sort)) + # process the header parameters - if x_wallet_auth is not None: - _header_params['X-Wallet-Auth'] = x_wallet_auth - if x_idempotency_key is not None: - _header_params['X-Idempotency-Key'] = x_idempotency_key # process the form parameters # process the body parameter - if import_end_user_request is not None: - _body_params = import_end_user_request # set the HTTP header `Accept` @@ -2224,19 +2280,6 @@ def _import_end_user_serialize( ] ) - # set the HTTP header `Content-Type` - if _content_type: - _header_params['Content-Type'] = _content_type - else: - _default_content_type = ( - self.api_client.select_header_content_type( - [ - 'application/json' - ] - ) - ) - if _default_content_type is not None: - _header_params['Content-Type'] = _default_content_type # authentication setting _auth_settings: List[str] = [ @@ -2244,8 +2287,8 @@ def _import_end_user_serialize( ] return self.api_client.param_serialize( - method='POST', - resource_path='/v2/end-users/import', + method='GET', + resource_path='/v2/end-users', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -2262,11 +2305,9 @@ def _import_end_user_serialize( @validate_call - async def list_end_users( + async def lookup_end_user( self, - page_size: Annotated[Optional[Annotated[int, Field(le=100, strict=True, ge=1)]], Field(description="The number of end users to return per page.")] = None, - page_token: Annotated[Optional[StrictStr], Field(description="The token for the desired page of end users. Will be empty if there are no more end users to fetch.")] = None, - sort: Annotated[Optional[List[StrictStr]], Field(description="Sort end users. Defaults to ascending order (oldest first).")] = None, + email: Annotated[StrictStr, Field(description="The email address to search for across all authentication methods.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2279,17 +2320,13 @@ async def list_end_users( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ListEndUsers200Response: - """List end users + ) -> EndUser: + """Look up an end user - Lists the end users belonging to the developer's CDP Project. By default, the response is sorted by creation date in ascending order and paginated to 20 users per page. + Looks up an end user by authentication method field. Currently supports lookup by email address, which searches across all email-based authentication methods (email, Google, Apple, GitHub). This API is intended to be used by the developer's own backend, and is authenticated using the developer's CDP API key. - :param page_size: The number of end users to return per page. - :type page_size: int - :param page_token: The token for the desired page of end users. Will be empty if there are no more end users to fetch. - :type page_token: str - :param sort: Sort end users. Defaults to ascending order (oldest first). - :type sort: List[str] + :param email: The email address to search for across all authentication methods. (required) + :type email: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -2312,10 +2349,8 @@ async def list_end_users( :return: Returns the result object. """ # noqa: E501 - _param = self._list_end_users_serialize( - page_size=page_size, - page_token=page_token, - sort=sort, + _param = self._lookup_end_user_serialize( + email=email, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2323,12 +2358,10 @@ async def list_end_users( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ListEndUsers200Response", - '400': "Error", + '200': "EndUser", '401': "Error", + '404': "Error", '500': "Error", - '502': "Error", - '503': "Error", } response_data = await self.api_client.call_api( *_param, @@ -2342,11 +2375,9 @@ async def list_end_users( @validate_call - async def list_end_users_with_http_info( + async def lookup_end_user_with_http_info( self, - page_size: Annotated[Optional[Annotated[int, Field(le=100, strict=True, ge=1)]], Field(description="The number of end users to return per page.")] = None, - page_token: Annotated[Optional[StrictStr], Field(description="The token for the desired page of end users. Will be empty if there are no more end users to fetch.")] = None, - sort: Annotated[Optional[List[StrictStr]], Field(description="Sort end users. Defaults to ascending order (oldest first).")] = None, + email: Annotated[StrictStr, Field(description="The email address to search for across all authentication methods.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2359,17 +2390,13 @@ async def list_end_users_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[ListEndUsers200Response]: - """List end users + ) -> ApiResponse[EndUser]: + """Look up an end user - Lists the end users belonging to the developer's CDP Project. By default, the response is sorted by creation date in ascending order and paginated to 20 users per page. + Looks up an end user by authentication method field. Currently supports lookup by email address, which searches across all email-based authentication methods (email, Google, Apple, GitHub). This API is intended to be used by the developer's own backend, and is authenticated using the developer's CDP API key. - :param page_size: The number of end users to return per page. - :type page_size: int - :param page_token: The token for the desired page of end users. Will be empty if there are no more end users to fetch. - :type page_token: str - :param sort: Sort end users. Defaults to ascending order (oldest first). - :type sort: List[str] + :param email: The email address to search for across all authentication methods. (required) + :type email: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -2392,10 +2419,8 @@ async def list_end_users_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._list_end_users_serialize( - page_size=page_size, - page_token=page_token, - sort=sort, + _param = self._lookup_end_user_serialize( + email=email, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2403,12 +2428,10 @@ async def list_end_users_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ListEndUsers200Response", - '400': "Error", + '200': "EndUser", '401': "Error", + '404': "Error", '500': "Error", - '502': "Error", - '503': "Error", } response_data = await self.api_client.call_api( *_param, @@ -2422,11 +2445,9 @@ async def list_end_users_with_http_info( @validate_call - async def list_end_users_without_preload_content( + async def lookup_end_user_without_preload_content( self, - page_size: Annotated[Optional[Annotated[int, Field(le=100, strict=True, ge=1)]], Field(description="The number of end users to return per page.")] = None, - page_token: Annotated[Optional[StrictStr], Field(description="The token for the desired page of end users. Will be empty if there are no more end users to fetch.")] = None, - sort: Annotated[Optional[List[StrictStr]], Field(description="Sort end users. Defaults to ascending order (oldest first).")] = None, + email: Annotated[StrictStr, Field(description="The email address to search for across all authentication methods.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2440,16 +2461,12 @@ async def list_end_users_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """List end users + """Look up an end user - Lists the end users belonging to the developer's CDP Project. By default, the response is sorted by creation date in ascending order and paginated to 20 users per page. + Looks up an end user by authentication method field. Currently supports lookup by email address, which searches across all email-based authentication methods (email, Google, Apple, GitHub). This API is intended to be used by the developer's own backend, and is authenticated using the developer's CDP API key. - :param page_size: The number of end users to return per page. - :type page_size: int - :param page_token: The token for the desired page of end users. Will be empty if there are no more end users to fetch. - :type page_token: str - :param sort: Sort end users. Defaults to ascending order (oldest first). - :type sort: List[str] + :param email: The email address to search for across all authentication methods. (required) + :type email: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -2472,10 +2489,8 @@ async def list_end_users_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._list_end_users_serialize( - page_size=page_size, - page_token=page_token, - sort=sort, + _param = self._lookup_end_user_serialize( + email=email, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -2483,12 +2498,10 @@ async def list_end_users_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ListEndUsers200Response", - '400': "Error", + '200': "EndUser", '401': "Error", + '404': "Error", '500': "Error", - '502': "Error", - '503': "Error", } response_data = await self.api_client.call_api( *_param, @@ -2497,11 +2510,9 @@ async def list_end_users_without_preload_content( return response_data.response - def _list_end_users_serialize( + def _lookup_end_user_serialize( self, - page_size, - page_token, - sort, + email, _request_auth, _content_type, _headers, @@ -2511,7 +2522,6 @@ def _list_end_users_serialize( _host = None _collection_formats: Dict[str, str] = { - 'sort': 'csv', } _path_params: Dict[str, str] = {} @@ -2525,17 +2535,9 @@ def _list_end_users_serialize( # process the path parameters # process the query parameters - if page_size is not None: - - _query_params.append(('pageSize', page_size)) - - if page_token is not None: - - _query_params.append(('pageToken', page_token)) + if email is not None: - if sort is not None: - - _query_params.append(('sort', sort)) + _query_params.append(('email', email)) # process the header parameters # process the form parameters @@ -2558,7 +2560,7 @@ def _list_end_users_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/v2/end-users', + resource_path='/v2/end-users/lookup', path_params=_path_params, query_params=_query_params, header_params=_header_params, diff --git a/python/cdp/openapi_client/models/onramp_limit_type.py b/python/cdp/openapi_client/models/onramp_limit_type.py index 42bd783a3..77fa1c39b 100644 --- a/python/cdp/openapi_client/models/onramp_limit_type.py +++ b/python/cdp/openapi_client/models/onramp_limit_type.py @@ -21,7 +21,7 @@ class OnrampLimitType(str, Enum): """ - The type of limit: - `weekly_spending`: Rolling 7-day spending limit. The limit applies to the sum of all completed transactions within a sliding 168-hour (7-day) window. As time passes, older transactions naturally expire from the window. $500 is the default limit. - `lifetime_transactions`: All-time transaction count limit. Tracks the total number of completed transactions across the user's entire history with no time-based expiration. Once the limit is reached, no further transactions are allowed. 15 is the default limit. + The type of limit: - `weekly_spending`: Rolling 7-day spending limit. The limit applies to the sum of all completed transactions within a sliding 168-hour (7-day) window. As time passes, older transactions naturally expire from the window. $500 is the default limit. - `lifetime_transactions`: All-time transaction count limit. Tracks the total number of completed transactions across the user's entire history with no time-based expiration. Once the limit is reached, no further transactions are allowed. 15 is the default limit. """ """ diff --git a/python/cdp/openapi_client/test/test_end_user_accounts_api.py b/python/cdp/openapi_client/test/test_end_user_accounts_api.py index 179167343..50e08a6b6 100644 --- a/python/cdp/openapi_client/test/test_end_user_accounts_api.py +++ b/python/cdp/openapi_client/test/test_end_user_accounts_api.py @@ -62,13 +62,6 @@ async def test_get_end_user(self) -> None: """ pass - async def test_get_end_user_by_email(self) -> None: - """Test case for get_end_user_by_email - - Get an end user by email - """ - pass - async def test_import_end_user(self) -> None: """Test case for import_end_user @@ -83,6 +76,13 @@ async def test_list_end_users(self) -> None: """ pass + async def test_lookup_end_user(self) -> None: + """Test case for lookup_end_user + + Look up an end user + """ + pass + async def test_validate_end_user_access_token(self) -> None: """Test case for validate_end_user_access_token diff --git a/python/changelog.d/CDPSDK-2561.feature.md b/python/changelog.d/CDPSDK-2561.feature.md index 1cf68d803..d3257036f 100644 --- a/python/changelog.d/CDPSDK-2561.feature.md +++ b/python/changelog.d/CDPSDK-2561.feature.md @@ -1 +1 @@ -Added `get_end_user_by_email` to `EndUserClient` for looking up end users by email across all email-based authentication methods. +Added `lookup_end_user` to `EndUserClient` for looking up end users by email across all email-based authentication methods. diff --git a/rust/src/api.rs b/rust/src/api.rs index e0ad16008..356fda85e 100644 --- a/rust/src/api.rs +++ b/rust/src/api.rs @@ -24839,7 +24839,7 @@ pub mod types { /// /// ```json ///{ - /// "description": "The type of limit:\n- `weekly_spending`: Rolling 7-day spending limit. The limit applies to the sum of all completed transactions \n within a sliding 168-hour (7-day) window. As time passes, older transactions naturally expire from the window. \n $500 is the default limit.\n- `lifetime_transactions`: All-time transaction count limit. Tracks the total number of completed transactions \n across the user's entire history with no time-based expiration. Once the limit is reached, no further \n transactions are allowed. 15 is the default limit.\n", + /// "description": "The type of limit:\n- `weekly_spending`: Rolling 7-day spending limit. The limit applies to the sum of all completed transactions\n within a sliding 168-hour (7-day) window. As time passes, older transactions naturally expire from the window.\n $500 is the default limit.\n- `lifetime_transactions`: All-time transaction count limit. Tracks the total number of completed transactions\n across the user's entire history with no time-based expiration. Once the limit is reached, no further\n transactions are allowed. 15 is the default limit.\n", /// "examples": [ /// "weekly_spending" /// ], @@ -77369,6 +77369,25 @@ impl Client { pub fn import_end_user(&self) -> builder::ImportEndUser<'_> { builder::ImportEndUser::new(self) } + /**Look up an end user + + Looks up an end user by authentication method field. Currently supports lookup by email address, which searches across all email-based authentication methods (email, Google, Apple, GitHub). + + This API is intended to be used by the developer's own backend, and is authenticated using the developer's CDP API key. + + Sends a `GET` request to `/v2/end-users/lookup` + + Arguments: + - `email`: The email address to search for across all authentication methods. + ```ignore + let response = client.lookup_end_user() + .email(email) + .send() + .await; + ```*/ + pub fn lookup_end_user(&self) -> builder::LookupEndUser<'_> { + builder::LookupEndUser::new(self) + } /**Get an end user Gets an end user by ID. @@ -77450,7 +77469,7 @@ impl Client { } /**Add a Solana account to an end user - Adds a new Solana account to an existing end user. End users can have up to 10 Solana accounts. + Adds a new Solana account to an existing end user. End users can have up to 10 Solana accounts. This API is intended to be used by the developer's own backend, and is authenticated using the developer's CDP API key. Sends a `POST` request to `/v2/end-users/{userId}/solana` @@ -82977,6 +82996,75 @@ pub mod builder { } } } + /**Builder for [`Client::lookup_end_user`] + + [`Client::lookup_end_user`]: super::Client::lookup_end_user*/ + #[derive(Debug, Clone)] + pub struct LookupEndUser<'a> { + client: &'a super::Client, + email: Result<::std::string::String, String>, + } + impl<'a> LookupEndUser<'a> { + pub fn new(client: &'a super::Client) -> Self { + Self { + client: client, + email: Err("email was not initialized".to_string()), + } + } + pub fn email(mut self, value: V) -> Self + where + V: std::convert::TryInto<::std::string::String>, + { + self.email = value.try_into().map_err(|_| { + "conversion to `:: std :: string :: String` for email failed".to_string() + }); + self + } + ///Sends a `GET` request to `/v2/end-users/lookup` + pub async fn send(self) -> Result, Error> { + let Self { client, email } = self; + let email = email.map_err(Error::InvalidRequest)?; + let url = format!("{}/v2/end-users/lookup", client.baseurl,); + let mut header_map = ::reqwest::header::HeaderMap::with_capacity(1usize); + header_map.append( + ::reqwest::header::HeaderName::from_static("api-version"), + ::reqwest::header::HeaderValue::from_static(super::Client::api_version()), + ); + #[allow(unused_mut)] + let mut request = client + .client + .get(url) + .header( + ::reqwest::header::ACCEPT, + ::reqwest::header::HeaderValue::from_static("application/json"), + ) + .query(&progenitor_middleware_client::QueryParam::new( + "email", &email, + )) + .headers(header_map) + .build()?; + let info = OperationInfo { + operation_id: "lookup_end_user", + }; + client.pre(&mut request, &info).await?; + let result = client.exec(request, &info).await; + client.post(&result, &info).await?; + let response = result?; + match response.status().as_u16() { + 200u16 => ResponseValue::from_response::(response).await, + 401u16 => Err(Error::ErrorResponse( + ResponseValue::from_response(response).await?, + )), + 404u16 => Err(Error::ErrorResponse( + ResponseValue::from_response(response).await?, + )), + 500u16 => Err(Error::ErrorResponse( + ResponseValue::from_response(response).await?, + )), + _ => Err(Error::UnexpectedResponse(response)), + } + } + } /**Builder for [`Client::get_end_user`] [`Client::get_end_user`]: super::Client::get_end_user*/ diff --git a/typescript/.changeset/get-end-user-by-email.md b/typescript/.changeset/get-end-user-by-email.md index 0d451fee5..6defd01ad 100644 --- a/typescript/.changeset/get-end-user-by-email.md +++ b/typescript/.changeset/get-end-user-by-email.md @@ -2,4 +2,4 @@ "@coinbase/cdp-sdk": minor --- -Added `getEndUserByEmail` to `EndUserClient` for looking up end users by email across all email-based authentication methods. +Added `lookupEndUser` to `EndUserClient` for looking up end users by email across all email-based authentication methods. diff --git a/typescript/src/client/end-user/endUser.ts b/typescript/src/client/end-user/endUser.ts index 95e5cee55..d3ae5c64d 100644 --- a/typescript/src/client/end-user/endUser.ts +++ b/typescript/src/client/end-user/endUser.ts @@ -7,7 +7,7 @@ import { type ListEndUsersOptions, type CreateEndUserOptions, type GetEndUserOptions, - type GetEndUserByEmailOptions, + type LookupEndUserOptions, type ImportEndUserOptions, type AddEndUserEvmAccountOptions, type AddEndUserEvmAccountResult, @@ -169,26 +169,26 @@ export class EndUserClient { } /** - * Gets an end user by email address. Searches across all email-based authentication methods (email, Google, Apple, GitHub). + * Looks up an end user by email address. Searches across all email-based authentication methods (email, Google, Apple, GitHub). * - * @param options - The options for getting an end user by email. + * @param options - The options for looking up an end user. * * @returns A promise that resolves to the end user. * - * @example **Get an end user by email** + * @example **Look up an end user by email** * ```ts - * const endUser = await cdp.endUser.getEndUserByEmail({ + * const endUser = await cdp.endUser.lookupEndUser({ * email: "user@example.com" * }); * console.log(endUser.userId); * ``` */ - async getEndUserByEmail(options: GetEndUserByEmailOptions): Promise { + async lookupEndUser(options: LookupEndUserOptions): Promise { Analytics.trackAction({ - action: "get_end_user_by_email", + action: "lookup_end_user", }); - const endUser = await CdpOpenApiClient.getEndUserByEmail(options.email); + const endUser = await CdpOpenApiClient.lookupEndUser({ email: options.email }); return toEndUserAccount(CdpOpenApiClient, { endUser }); } diff --git a/typescript/src/client/end-user/endUser.types.ts b/typescript/src/client/end-user/endUser.types.ts index 3ad6d6014..41a772362 100644 --- a/typescript/src/client/end-user/endUser.types.ts +++ b/typescript/src/client/end-user/endUser.types.ts @@ -51,9 +51,9 @@ export interface GetEndUserOptions { } /** - * The options for getting an end user by email. + * The options for looking up an end user. */ -export interface GetEndUserByEmailOptions { +export interface LookupEndUserOptions { /** * The email address to search for across all authentication methods (email, Google, Apple, GitHub). */ diff --git a/typescript/src/openapi-client/generated/coinbaseDeveloperPlatformAPIs.schemas.ts b/typescript/src/openapi-client/generated/coinbaseDeveloperPlatformAPIs.schemas.ts index bc3cb0970..ff20b1361 100644 --- a/typescript/src/openapi-client/generated/coinbaseDeveloperPlatformAPIs.schemas.ts +++ b/typescript/src/openapi-client/generated/coinbaseDeveloperPlatformAPIs.schemas.ts @@ -4085,11 +4085,11 @@ export const OnrampUserIdType = { /** * The type of limit: -- `weekly_spending`: Rolling 7-day spending limit. The limit applies to the sum of all completed transactions - within a sliding 168-hour (7-day) window. As time passes, older transactions naturally expire from the window. +- `weekly_spending`: Rolling 7-day spending limit. The limit applies to the sum of all completed transactions + within a sliding 168-hour (7-day) window. As time passes, older transactions naturally expire from the window. $500 is the default limit. -- `lifetime_transactions`: All-time transaction count limit. Tracks the total number of completed transactions - across the user's entire history with no time-based expiration. Once the limit is reached, no further +- `lifetime_transactions`: All-time transaction count limit. Tracks the total number of completed transactions + across the user's entire history with no time-based expiration. Once the limit is reached, no further transactions are allowed. 15 is the default limit. */ @@ -4358,6 +4358,13 @@ export type ValidateEndUserAccessTokenBody = { accessToken: string; }; +export type LookupEndUserParams = { + /** + * The email address to search for across all authentication methods. + */ + email: string; +}; + export type AddEndUserEvmAccountBody = { [key: string]: unknown }; export type AddEndUserEvmAccount201 = { diff --git a/typescript/src/openapi-client/generated/end-user-accounts/end-user-accounts.ts b/typescript/src/openapi-client/generated/end-user-accounts/end-user-accounts.ts index 638369995..80c98e8da 100644 --- a/typescript/src/openapi-client/generated/end-user-accounts/end-user-accounts.ts +++ b/typescript/src/openapi-client/generated/end-user-accounts/end-user-accounts.ts @@ -17,6 +17,7 @@ import type { ImportEndUserBody, ListEndUsers200, ListEndUsersParams, + LookupEndUserParams, ValidateEndUserAccessTokenBody, } from "../coinbaseDeveloperPlatformAPIs.schemas.js"; @@ -87,16 +88,16 @@ export const getEndUser = ( return cdpApiClient({ url: `/v2/end-users/${userId}`, method: "GET" }, options); }; /** - * Gets an end user by email address. Searches across all email-based authentication methods (email, Google, Apple, GitHub). + * Looks up an end user by authentication method field. Currently supports lookup by email address, which searches across all email-based authentication methods (email, Google, Apple, GitHub). This API is intended to be used by the developer's own backend, and is authenticated using the developer's CDP API key. - * @summary Get an end user by email + * @summary Look up an end user */ -export const getEndUserByEmail = ( - email: string, +export const lookupEndUser = ( + params: LookupEndUserParams, options?: SecondParameter>, ) => { - return cdpApiClient({ url: `/v2/end-users/by-email/${email}`, method: "GET" }, options); + return cdpApiClient({ url: `/v2/end-users/lookup`, method: "GET", params }, options); }; /** * Adds a new EVM EOA account to an existing end user. End users can have up to 10 EVM accounts. @@ -139,7 +140,7 @@ export const addEndUserEvmSmartAccount = ( ); }; /** - * Adds a new Solana account to an existing end user. End users can have up to 10 Solana accounts. + * Adds a new Solana account to an existing end user. End users can have up to 10 Solana accounts. This API is intended to be used by the developer's own backend, and is authenticated using the developer's CDP API key. * @summary Add a Solana account to an end user */ @@ -184,7 +185,7 @@ export type ValidateEndUserAccessTokenResult = NonNullable< Awaited> >; export type GetEndUserResult = NonNullable>>; -export type GetEndUserByEmailResult = NonNullable>>; +export type LookupEndUserResult = NonNullable>>; export type AddEndUserEvmAccountResult = NonNullable< Awaited> >; From 9736393f3f41bec51e58b8b6933477c4989f2370 Mon Sep 17 00:00:00 2001 From: Sam McCord Date: Wed, 22 Apr 2026 20:32:32 -0600 Subject: [PATCH 03/13] chore: use latest spec, EndUser[] responses --- .../typescript/end-users/signEvmTypedData.ts | 2 +- go/openapi/client.gen.go | 22 +- .../cdp/openapi/api/EndUserAccountsApi.java | 25 +- .../model/LookupEndUser200Response.java | 221 ++++++++++++++++++ openapi.yaml | 80 +++++-- python/cdp/openapi_client/__init__.py | 1 + .../api/end_user_accounts_api.py | 26 +-- python/cdp/openapi_client/models/__init__.py | 1 + .../models/lookup_end_user200_response.py | 96 ++++++++ .../test/test_end_user_accounts_api.py | 2 +- .../test/test_lookup_end_user200_response.py | 77 ++++++ .../test/test_x402_payment_payload.py | 2 +- .../test/test_x402_v2_payment_payload.py | 2 +- rust/src/api.rs | 98 +++++++- .../src/client/end-user/endUser.test.ts | 138 +++++++++++ .../coinbaseDeveloperPlatformAPIs.schemas.ts | 5 + .../end-user-accounts/end-user-accounts.ts | 12 +- 17 files changed, 741 insertions(+), 69 deletions(-) create mode 100644 java/src/main/java/com/coinbase/cdp/openapi/model/LookupEndUser200Response.java create mode 100644 python/cdp/openapi_client/models/lookup_end_user200_response.py create mode 100644 python/cdp/openapi_client/test/test_lookup_end_user200_response.py create mode 100644 typescript/src/client/end-user/endUser.test.ts diff --git a/examples/typescript/end-users/signEvmTypedData.ts b/examples/typescript/end-users/signEvmTypedData.ts index fc2ffc5e3..e64a8c252 100644 --- a/examples/typescript/end-users/signEvmTypedData.ts +++ b/examples/typescript/end-users/signEvmTypedData.ts @@ -11,7 +11,7 @@ if (!userId) { process.exit(1); } -const cdp = new CdpClient(); +const cdp = new CdpClient({ basePath: 'https://cloud-api-dev.cbhq.net/platform'}); try { const endUser = await cdp.endUser.getEndUser({ userId }); diff --git a/go/openapi/client.gen.go b/go/openapi/client.gen.go index 5651454cf..e28568725 100644 --- a/go/openapi/client.gen.go +++ b/go/openapi/client.gen.go @@ -18096,10 +18096,12 @@ func (r ImportEndUserResponse) StatusCode() int { type LookupEndUserResponse struct { Body []byte HTTPResponse *http.Response - JSON200 *EndUser - JSON401 *UnauthorizedError - JSON404 *Error - JSON500 *InternalServerError + JSON200 *struct { + // EndUsers The list of end users matching the email lookup. + EndUsers []EndUser `json:"endUsers"` + } + JSON401 *UnauthorizedError + JSON500 *InternalServerError } // Status returns HTTPResponse.Status @@ -23219,7 +23221,10 @@ func ParseLookupEndUserResponse(rsp *http.Response) (*LookupEndUserResponse, err switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest EndUser + var dest struct { + // EndUsers The list of end users matching the email lookup. + EndUsers []EndUser `json:"endUsers"` + } if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -23232,13 +23237,6 @@ func ParseLookupEndUserResponse(rsp *http.Response) (*LookupEndUserResponse, err } response.JSON401 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: - var dest Error - if err := json.Unmarshal(bodyBytes, &dest); err != nil { - return nil, err - } - response.JSON404 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 500: var dest InternalServerError if err := json.Unmarshal(bodyBytes, &dest); err != nil { diff --git a/java/src/main/java/com/coinbase/cdp/openapi/api/EndUserAccountsApi.java b/java/src/main/java/com/coinbase/cdp/openapi/api/EndUserAccountsApi.java index 5b06910d6..7691b12a3 100644 --- a/java/src/main/java/com/coinbase/cdp/openapi/api/EndUserAccountsApi.java +++ b/java/src/main/java/com/coinbase/cdp/openapi/api/EndUserAccountsApi.java @@ -26,6 +26,7 @@ import com.coinbase.cdp.openapi.model.Error; import com.coinbase.cdp.openapi.model.ImportEndUserRequest; import com.coinbase.cdp.openapi.model.ListEndUsers200Response; +import com.coinbase.cdp.openapi.model.LookupEndUser200Response; import com.coinbase.cdp.openapi.model.ValidateEndUserAccessTokenRequest; import com.fasterxml.jackson.core.type.TypeReference; @@ -773,25 +774,25 @@ private HttpRequest.Builder listEndUsersRequestBuilder(Integer pageSize, String } /** - * Look up an end user - * Looks up an end user by authentication method field. Currently supports lookup by email address, which searches across all email-based authentication methods (email, Google, Apple, GitHub). This API is intended to be used by the developer's own backend, and is authenticated using the developer's CDP API key. + * Look up end users by email + * Looks up end users by email address, searching across all email-based authentication methods (email, Google, Apple, GitHub). Returns all matching end users. If no end users match, an empty array is returned. This API is intended to be used by the developer's own backend, and is authenticated using the developer's CDP API key. * @param email The email address to search for across all authentication methods. (required) - * @return EndUser + * @return LookupEndUser200Response * @throws ApiException if fails to make API call */ - public EndUser lookupEndUser(String email) throws ApiException { - ApiResponse localVarResponse = lookupEndUserWithHttpInfo(email); + public LookupEndUser200Response lookupEndUser(String email) throws ApiException { + ApiResponse localVarResponse = lookupEndUserWithHttpInfo(email); return localVarResponse.getData(); } /** - * Look up an end user - * Looks up an end user by authentication method field. Currently supports lookup by email address, which searches across all email-based authentication methods (email, Google, Apple, GitHub). This API is intended to be used by the developer's own backend, and is authenticated using the developer's CDP API key. + * Look up end users by email + * Looks up end users by email address, searching across all email-based authentication methods (email, Google, Apple, GitHub). Returns all matching end users. If no end users match, an empty array is returned. This API is intended to be used by the developer's own backend, and is authenticated using the developer's CDP API key. * @param email The email address to search for across all authentication methods. (required) - * @return ApiResponse<EndUser> + * @return ApiResponse<LookupEndUser200Response> * @throws ApiException if fails to make API call */ - public ApiResponse lookupEndUserWithHttpInfo(String email) throws ApiException { + public ApiResponse lookupEndUserWithHttpInfo(String email) throws ApiException { HttpRequest.Builder localVarRequestBuilder = lookupEndUserRequestBuilder(email); try { HttpResponse localVarResponse = memberVarHttpClient.send( @@ -805,7 +806,7 @@ public ApiResponse lookupEndUserWithHttpInfo(String email) throws ApiEx throw getApiException("lookupEndUser", localVarResponse); } if (localVarResponse.body() == null) { - return new ApiResponse( + return new ApiResponse( localVarResponse.statusCode(), localVarResponse.headers().map(), null @@ -815,10 +816,10 @@ public ApiResponse lookupEndUserWithHttpInfo(String email) throws ApiEx String responseBody = new String(localVarResponse.body().readAllBytes()); localVarResponse.body().close(); - return new ApiResponse( + return new ApiResponse( localVarResponse.statusCode(), localVarResponse.headers().map(), - responseBody.isBlank()? null: memberVarObjectMapper.readValue(responseBody, new TypeReference() {}) + responseBody.isBlank()? null: memberVarObjectMapper.readValue(responseBody, new TypeReference() {}) ); } finally { } diff --git a/java/src/main/java/com/coinbase/cdp/openapi/model/LookupEndUser200Response.java b/java/src/main/java/com/coinbase/cdp/openapi/model/LookupEndUser200Response.java new file mode 100644 index 000000000..11e830564 --- /dev/null +++ b/java/src/main/java/com/coinbase/cdp/openapi/model/LookupEndUser200Response.java @@ -0,0 +1,221 @@ +/* + * Coinbase Developer Platform APIs + * The Coinbase Developer Platform APIs - leading the world's transition onchain. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: cdp@coinbase.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.coinbase.cdp.openapi.model; + +import java.net.URLEncoder; +import java.nio.charset.StandardCharsets; +import java.util.StringJoiner; +import java.util.Objects; +import java.util.Map; +import java.util.HashMap; +import com.coinbase.cdp.openapi.model.EndUser; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; + + +import com.coinbase.cdp.openapi.ApiClient; +/** + * LookupEndUser200Response + */ +@JsonPropertyOrder({ + LookupEndUser200Response.JSON_PROPERTY_END_USERS +}) +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.11.0") +public class LookupEndUser200Response { + public static final String JSON_PROPERTY_END_USERS = "endUsers"; + @jakarta.annotation.Nonnull + private List endUsers = new ArrayList<>(); + + public LookupEndUser200Response() { + } + + public LookupEndUser200Response endUsers(@jakarta.annotation.Nonnull List endUsers) { + this.endUsers = endUsers; + return this; + } + + public LookupEndUser200Response addEndUsersItem(EndUser endUsersItem) { + if (this.endUsers == null) { + this.endUsers = new ArrayList<>(); + } + this.endUsers.add(endUsersItem); + return this; + } + + /** + * The list of end users matching the email lookup. + * @return endUsers + */ + @jakarta.annotation.Nonnull + @JsonProperty(JSON_PROPERTY_END_USERS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public List getEndUsers() { + return endUsers; + } + + + @JsonProperty(JSON_PROPERTY_END_USERS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setEndUsers(@jakarta.annotation.Nonnull List endUsers) { + this.endUsers = endUsers; + } + + + /** + * Return true if this lookupEndUser_200_response object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + LookupEndUser200Response lookupEndUser200Response = (LookupEndUser200Response) o; + return Objects.equals(this.endUsers, lookupEndUser200Response.endUsers); + } + + @Override + public int hashCode() { + return Objects.hash(endUsers); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class LookupEndUser200Response {\n"); + sb.append(" endUsers: ").append(toIndentedString(endUsers)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + /** + * Convert the instance into URL query string. + * + * @return URL query string + */ + public String toUrlQueryString() { + return toUrlQueryString(null); + } + + /** + * Convert the instance into URL query string. + * + * @param prefix prefix of the query string + * @return URL query string + */ + public String toUrlQueryString(String prefix) { + String suffix = ""; + String containerSuffix = ""; + String containerPrefix = ""; + if (prefix == null) { + // style=form, explode=true, e.g. /pet?name=cat&type=manx + prefix = ""; + } else { + // deepObject style e.g. /pet?id[name]=cat&id[type]=manx + prefix = prefix + "["; + suffix = "]"; + containerSuffix = "]"; + containerPrefix = "["; + } + + StringJoiner joiner = new StringJoiner("&"); + + // add `endUsers` to the URL query string + if (getEndUsers() != null) { + for (int i = 0; i < getEndUsers().size(); i++) { + if (getEndUsers().get(i) != null) { + joiner.add(getEndUsers().get(i).toUrlQueryString(String.format("%sendUsers%s%s", prefix, suffix, + "".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, i, containerSuffix)))); + } + } + } + + return joiner.toString(); + } + + public static class Builder { + + private LookupEndUser200Response instance; + + public Builder() { + this(new LookupEndUser200Response()); + } + + protected Builder(LookupEndUser200Response instance) { + this.instance = instance; + } + + public LookupEndUser200Response.Builder endUsers(List endUsers) { + this.instance.endUsers = endUsers; + return this; + } + + + /** + * returns a built LookupEndUser200Response instance. + * + * The builder is not reusable. + */ + public LookupEndUser200Response build() { + try { + return this.instance; + } finally { + // ensure that this.instance is not reused + this.instance = null; + } + } + + @Override + public String toString() { + return getClass() + "=(" + instance + ")"; + } + } + + /** + * Create a builder with no initialized field. + */ + public static LookupEndUser200Response.Builder builder() { + return new LookupEndUser200Response.Builder(); + } + + /** + * Create a builder with a shallow copy of this instance. + */ + public LookupEndUser200Response.Builder toBuilder() { + return new LookupEndUser200Response.Builder() + .endUsers(getEndUsers()); + } + +} + diff --git a/openapi.yaml b/openapi.yaml index 36db45027..381a41095 100644 --- a/openapi.yaml +++ b/openapi.yaml @@ -1082,9 +1082,9 @@ paths: /v2/end-users/lookup: get: x-audience: public - summary: Look up an end user + summary: Look up end users by email description: |- - Looks up an end user by authentication method field. Currently supports lookup by email address, which searches across all email-based authentication methods (email, Google, Apple, GitHub). + Looks up end users by email address, searching across all email-based authentication methods (email, Google, Apple, GitHub). Returns all matching end users. If no end users match, an empty array is returned. This API is intended to be used by the developer's own backend, and is authenticated using the developer's CDP API key. operationId: lookupEndUser @@ -1103,24 +1103,68 @@ paths: example: user@example.com responses: '200': - description: Successfully got end user. + description: Successfully looked up end users. content: application/json: schema: - $ref: '#/components/schemas/EndUser' + type: object + required: + - endUsers + properties: + endUsers: + type: array + description: The list of end users matching the email lookup. + items: + $ref: '#/components/schemas/EndUser' + examples: + single_match: + summary: Single end user found + value: + endUsers: + - userId: user-001 + authenticationMethods: + - type: email + email: user@example.com + evmAccounts: [] + evmAccountObjects: [] + evmSmartAccounts: [] + evmSmartAccountObjects: [] + solanaAccounts: [] + solanaAccountObjects: [] + createdAt: '2025-11-17T10:00:00Z' + multiple_matches: + summary: Multiple end users with same email across auth methods + value: + endUsers: + - userId: user-001 + authenticationMethods: + - type: email + email: user@example.com + evmAccounts: [] + evmAccountObjects: [] + evmSmartAccounts: [] + evmSmartAccountObjects: [] + solanaAccounts: [] + solanaAccountObjects: [] + createdAt: '2025-11-17T10:00:00Z' + - userId: user-002 + authenticationMethods: + - type: google + sub: google-sub-123 + email: user@example.com + evmAccounts: [] + evmAccountObjects: [] + evmSmartAccounts: [] + evmSmartAccountObjects: [] + solanaAccounts: [] + solanaAccountObjects: [] + createdAt: '2025-11-17T11:00:00Z' + no_matches: + summary: No end users found + value: + endUsers: [] '401': $ref: '#/components/responses/UnauthorizedError' - '404': - description: Not found. - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - examples: - not_found: - value: - errorType: not_found - errorMessage: End user not found. '500': $ref: '#/components/responses/InternalServerError' /v2/end-users/{userId}/evm: @@ -13870,7 +13914,11 @@ components: additionalProperties: true example: bazaar: - discoveryEnabled: true + info: + input: + type: http + method: GET + schema: {} example: x402Version: 2 accepted: diff --git a/python/cdp/openapi_client/__init__.py b/python/cdp/openapi_client/__init__.py index 31f388913..76e312df2 100644 --- a/python/cdp/openapi_client/__init__.py +++ b/python/cdp/openapi_client/__init__.py @@ -147,6 +147,7 @@ from cdp.openapi_client.models.list_solana_token_balances200_response import ListSolanaTokenBalances200Response from cdp.openapi_client.models.list_solana_token_balances_network import ListSolanaTokenBalancesNetwork from cdp.openapi_client.models.list_spend_permissions200_response import ListSpendPermissions200Response +from cdp.openapi_client.models.lookup_end_user200_response import LookupEndUser200Response from cdp.openapi_client.models.mfa_methods import MFAMethods from cdp.openapi_client.models.mfa_methods_sms import MFAMethodsSms from cdp.openapi_client.models.mfa_methods_totp import MFAMethodsTotp diff --git a/python/cdp/openapi_client/api/end_user_accounts_api.py b/python/cdp/openapi_client/api/end_user_accounts_api.py index 175a00778..990f454b5 100644 --- a/python/cdp/openapi_client/api/end_user_accounts_api.py +++ b/python/cdp/openapi_client/api/end_user_accounts_api.py @@ -28,6 +28,7 @@ from cdp.openapi_client.models.end_user import EndUser from cdp.openapi_client.models.import_end_user_request import ImportEndUserRequest from cdp.openapi_client.models.list_end_users200_response import ListEndUsers200Response +from cdp.openapi_client.models.lookup_end_user200_response import LookupEndUser200Response from cdp.openapi_client.models.validate_end_user_access_token_request import ValidateEndUserAccessTokenRequest from cdp.openapi_client.api_client import ApiClient, RequestSerialized @@ -2320,10 +2321,10 @@ async def lookup_end_user( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> EndUser: - """Look up an end user + ) -> LookupEndUser200Response: + """Look up end users by email - Looks up an end user by authentication method field. Currently supports lookup by email address, which searches across all email-based authentication methods (email, Google, Apple, GitHub). This API is intended to be used by the developer's own backend, and is authenticated using the developer's CDP API key. + Looks up end users by email address, searching across all email-based authentication methods (email, Google, Apple, GitHub). Returns all matching end users. If no end users match, an empty array is returned. This API is intended to be used by the developer's own backend, and is authenticated using the developer's CDP API key. :param email: The email address to search for across all authentication methods. (required) :type email: str @@ -2358,9 +2359,8 @@ async def lookup_end_user( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "EndUser", + '200': "LookupEndUser200Response", '401': "Error", - '404': "Error", '500': "Error", } response_data = await self.api_client.call_api( @@ -2390,10 +2390,10 @@ async def lookup_end_user_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[EndUser]: - """Look up an end user + ) -> ApiResponse[LookupEndUser200Response]: + """Look up end users by email - Looks up an end user by authentication method field. Currently supports lookup by email address, which searches across all email-based authentication methods (email, Google, Apple, GitHub). This API is intended to be used by the developer's own backend, and is authenticated using the developer's CDP API key. + Looks up end users by email address, searching across all email-based authentication methods (email, Google, Apple, GitHub). Returns all matching end users. If no end users match, an empty array is returned. This API is intended to be used by the developer's own backend, and is authenticated using the developer's CDP API key. :param email: The email address to search for across all authentication methods. (required) :type email: str @@ -2428,9 +2428,8 @@ async def lookup_end_user_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "EndUser", + '200': "LookupEndUser200Response", '401': "Error", - '404': "Error", '500': "Error", } response_data = await self.api_client.call_api( @@ -2461,9 +2460,9 @@ async def lookup_end_user_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """Look up an end user + """Look up end users by email - Looks up an end user by authentication method field. Currently supports lookup by email address, which searches across all email-based authentication methods (email, Google, Apple, GitHub). This API is intended to be used by the developer's own backend, and is authenticated using the developer's CDP API key. + Looks up end users by email address, searching across all email-based authentication methods (email, Google, Apple, GitHub). Returns all matching end users. If no end users match, an empty array is returned. This API is intended to be used by the developer's own backend, and is authenticated using the developer's CDP API key. :param email: The email address to search for across all authentication methods. (required) :type email: str @@ -2498,9 +2497,8 @@ async def lookup_end_user_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "EndUser", + '200': "LookupEndUser200Response", '401': "Error", - '404': "Error", '500': "Error", } response_data = await self.api_client.call_api( diff --git a/python/cdp/openapi_client/models/__init__.py b/python/cdp/openapi_client/models/__init__.py index 3b0300e42..f9573b808 100644 --- a/python/cdp/openapi_client/models/__init__.py +++ b/python/cdp/openapi_client/models/__init__.py @@ -115,6 +115,7 @@ from cdp.openapi_client.models.list_solana_token_balances200_response import ListSolanaTokenBalances200Response from cdp.openapi_client.models.list_solana_token_balances_network import ListSolanaTokenBalancesNetwork from cdp.openapi_client.models.list_spend_permissions200_response import ListSpendPermissions200Response +from cdp.openapi_client.models.lookup_end_user200_response import LookupEndUser200Response from cdp.openapi_client.models.mfa_methods import MFAMethods from cdp.openapi_client.models.mfa_methods_sms import MFAMethodsSms from cdp.openapi_client.models.mfa_methods_totp import MFAMethodsTotp diff --git a/python/cdp/openapi_client/models/lookup_end_user200_response.py b/python/cdp/openapi_client/models/lookup_end_user200_response.py new file mode 100644 index 000000000..f9e3ac17a --- /dev/null +++ b/python/cdp/openapi_client/models/lookup_end_user200_response.py @@ -0,0 +1,96 @@ +# coding: utf-8 + +""" + Coinbase Developer Platform APIs + + The Coinbase Developer Platform APIs - leading the world's transition onchain. + + The version of the OpenAPI document: 2.0.0 + Contact: cdp@coinbase.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field +from typing import Any, ClassVar, Dict, List +from cdp.openapi_client.models.end_user import EndUser +from typing import Optional, Set +from typing_extensions import Self + +class LookupEndUser200Response(BaseModel): + """ + LookupEndUser200Response + """ # noqa: E501 + end_users: List[EndUser] = Field(description="The list of end users matching the email lookup.", alias="endUsers") + __properties: ClassVar[List[str]] = ["endUsers"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of LookupEndUser200Response from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in end_users (list) + _items = [] + if self.end_users: + for _item_end_users in self.end_users: + if _item_end_users: + _items.append(_item_end_users.to_dict()) + _dict['endUsers'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of LookupEndUser200Response from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "endUsers": [EndUser.from_dict(_item) for _item in obj["endUsers"]] if obj.get("endUsers") is not None else None + }) + return _obj + + diff --git a/python/cdp/openapi_client/test/test_end_user_accounts_api.py b/python/cdp/openapi_client/test/test_end_user_accounts_api.py index 50e08a6b6..4e40e103b 100644 --- a/python/cdp/openapi_client/test/test_end_user_accounts_api.py +++ b/python/cdp/openapi_client/test/test_end_user_accounts_api.py @@ -79,7 +79,7 @@ async def test_list_end_users(self) -> None: async def test_lookup_end_user(self) -> None: """Test case for lookup_end_user - Look up an end user + Look up end users by email """ pass diff --git a/python/cdp/openapi_client/test/test_lookup_end_user200_response.py b/python/cdp/openapi_client/test/test_lookup_end_user200_response.py new file mode 100644 index 000000000..4d1705b4d --- /dev/null +++ b/python/cdp/openapi_client/test/test_lookup_end_user200_response.py @@ -0,0 +1,77 @@ +# coding: utf-8 + +""" + Coinbase Developer Platform APIs + + The Coinbase Developer Platform APIs - leading the world's transition onchain. + + The version of the OpenAPI document: 2.0.0 + Contact: cdp@coinbase.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cdp.openapi_client.models.lookup_end_user200_response import LookupEndUser200Response + +class TestLookupEndUser200Response(unittest.TestCase): + """LookupEndUser200Response unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> LookupEndUser200Response: + """Test LookupEndUser200Response + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `LookupEndUser200Response` + """ + model = LookupEndUser200Response() + if include_optional: + return LookupEndUser200Response( + end_users = [ + cdp.openapi_client.models.end_user.EndUser( + user_id = 'e051beeb-7163-4527-a5b6-35e301529ff2', + authentication_methods = [{type=email, email=user@example.com}, {type=sms, phoneNumber=+12055555555}, {type=jwt, sub=e051beeb-7163-4527-a5b6-35e301529ff2, kid=NjVBRjY5MDlCMUIwNzU4RTA2QzZFMDQ4QzQ2MDAyQjVDNjk1RTM2Qg}, {type=google, sub=115346410074741490243, email=test.user@gmail.com}, {type=telegram, id=1223456, firstName=Satoshi, lastName=Nakamoto, photoUrl=https://image.url/profile.jpg, authDate=1770681412, username=satoshinakamoto}, {type=siwe, address=0x742d35Cc6634C0532925a3b844Bc454e4438f44e}], + mfa_methods = {enrollmentPromptedAt=2025-01-15T10:30:00Z, totp={enrolledAt=2025-01-15T10:30:00Z}, sms={enrolledAt=2025-01-15T10:30:00Z}}, + evm_accounts = [0x742d35Cc6634C0532925a3b844Bc454e4438f44e], + evm_account_objects = [{address=0x742d35Cc6634C0532925a3b844Bc454e4438f44e, createdAt=2025-01-15T10:30:00Z}, {address=0x1234567890abcdef1234567890abcdef12345678, createdAt=2025-01-15T11:00:00Z}], + evm_smart_accounts = [0x742d35Cc6634C0532925a3b844Bc454e4438f44e], + evm_smart_account_objects = [{address=0x742d35Cc6634C0532925a3b844Bc454e4438f44e, ownerAddresses=[0x1234567890abcdef1234567890abcdef12345678, 0xabcdefabcdefabcdefabcdefabcdefabcdefabcd], createdAt=2025-01-15T12:00:00Z}], + solana_accounts = [HpabPRRCFbBKSuJr5PdkVvQc85FyxyTWkFM2obBRSvHT], + solana_account_objects = [{address=HpabPRRCFbBKSuJr5PdkVvQc85FyxyTWkFM2obBRSvHT, createdAt=2025-01-15T10:30:00Z}, {address=9xQeWvG816bUx9EPjHmaT23yvVM2ZWbrrpZb9PusVFin, createdAt=2025-01-15T11:30:00Z}], + created_at = '2025-01-15T10:30:00Z', ) + ] + ) + else: + return LookupEndUser200Response( + end_users = [ + cdp.openapi_client.models.end_user.EndUser( + user_id = 'e051beeb-7163-4527-a5b6-35e301529ff2', + authentication_methods = [{type=email, email=user@example.com}, {type=sms, phoneNumber=+12055555555}, {type=jwt, sub=e051beeb-7163-4527-a5b6-35e301529ff2, kid=NjVBRjY5MDlCMUIwNzU4RTA2QzZFMDQ4QzQ2MDAyQjVDNjk1RTM2Qg}, {type=google, sub=115346410074741490243, email=test.user@gmail.com}, {type=telegram, id=1223456, firstName=Satoshi, lastName=Nakamoto, photoUrl=https://image.url/profile.jpg, authDate=1770681412, username=satoshinakamoto}, {type=siwe, address=0x742d35Cc6634C0532925a3b844Bc454e4438f44e}], + mfa_methods = {enrollmentPromptedAt=2025-01-15T10:30:00Z, totp={enrolledAt=2025-01-15T10:30:00Z}, sms={enrolledAt=2025-01-15T10:30:00Z}}, + evm_accounts = [0x742d35Cc6634C0532925a3b844Bc454e4438f44e], + evm_account_objects = [{address=0x742d35Cc6634C0532925a3b844Bc454e4438f44e, createdAt=2025-01-15T10:30:00Z}, {address=0x1234567890abcdef1234567890abcdef12345678, createdAt=2025-01-15T11:00:00Z}], + evm_smart_accounts = [0x742d35Cc6634C0532925a3b844Bc454e4438f44e], + evm_smart_account_objects = [{address=0x742d35Cc6634C0532925a3b844Bc454e4438f44e, ownerAddresses=[0x1234567890abcdef1234567890abcdef12345678, 0xabcdefabcdefabcdefabcdefabcdefabcdefabcd], createdAt=2025-01-15T12:00:00Z}], + solana_accounts = [HpabPRRCFbBKSuJr5PdkVvQc85FyxyTWkFM2obBRSvHT], + solana_account_objects = [{address=HpabPRRCFbBKSuJr5PdkVvQc85FyxyTWkFM2obBRSvHT, createdAt=2025-01-15T10:30:00Z}, {address=9xQeWvG816bUx9EPjHmaT23yvVM2ZWbrrpZb9PusVFin, createdAt=2025-01-15T11:30:00Z}], + created_at = '2025-01-15T10:30:00Z', ) + ], + ) + """ + + def testLookupEndUser200Response(self): + """Test LookupEndUser200Response""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/python/cdp/openapi_client/test/test_x402_payment_payload.py b/python/cdp/openapi_client/test/test_x402_payment_payload.py index bd13eafed..91f2be0e6 100644 --- a/python/cdp/openapi_client/test/test_x402_payment_payload.py +++ b/python/cdp/openapi_client/test/test_x402_payment_payload.py @@ -50,7 +50,7 @@ def make_instance(self, include_optional) -> X402PaymentPayload: url = 'https://api.example.com/premium/resource/123', description = Premium API access for data analysis, mime_type = 'application/json', ), - extensions = {bazaar={discoveryEnabled=true}}, + extensions = {bazaar={info={input={type=http, method=GET}}, schema={}}}, scheme = 'exact', network = 'base' ) diff --git a/python/cdp/openapi_client/test/test_x402_v2_payment_payload.py b/python/cdp/openapi_client/test/test_x402_v2_payment_payload.py index 98539aeb7..830853c84 100644 --- a/python/cdp/openapi_client/test/test_x402_v2_payment_payload.py +++ b/python/cdp/openapi_client/test/test_x402_v2_payment_payload.py @@ -50,7 +50,7 @@ def make_instance(self, include_optional) -> X402V2PaymentPayload: url = 'https://api.example.com/premium/resource/123', description = Premium API access for data analysis, mime_type = 'application/json', ), - extensions = {bazaar={discoveryEnabled=true}} + extensions = {bazaar={info={input={type=http, method=GET}}, schema={}}} ) else: return X402V2PaymentPayload( diff --git a/rust/src/api.rs b/rust/src/api.rs index 356fda85e..d08d72c73 100644 --- a/rust/src/api.rs +++ b/rust/src/api.rs @@ -22780,6 +22780,44 @@ pub mod types { value.parse() } } + ///`LookupEndUserResponse` + /// + ///

JSON schema + /// + /// ```json + ///{ + /// "type": "object", + /// "required": [ + /// "endUsers" + /// ], + /// "properties": { + /// "endUsers": { + /// "description": "The list of end users matching the email lookup.", + /// "type": "array", + /// "items": { + /// "$ref": "#/components/schemas/EndUser" + /// } + /// } + /// } + ///} + /// ``` + ///
+ #[derive(::serde::Deserialize, ::serde::Serialize, Clone, Debug)] + pub struct LookupEndUserResponse { + ///The list of end users matching the email lookup. + #[serde(rename = "endUsers")] + pub end_users: ::std::vec::Vec, + } + impl ::std::convert::From<&LookupEndUserResponse> for LookupEndUserResponse { + fn from(value: &LookupEndUserResponse) -> Self { + value.clone() + } + } + impl LookupEndUserResponse { + pub fn builder() -> builder::LookupEndUserResponse { + Default::default() + } + } ///Optional metadata as key-value pairs. Use this to store additional structured information on a resource, such as customer IDs, order references, or any application-specific data. Up to 10 key/value pairs may be provided. Keys and values are both strings. Keys must be ≤ 40 characters; values must be ≤ 500 characters. /// ///
JSON schema @@ -55295,7 +55333,13 @@ pub mod types { /// "examples": [ /// { /// "bazaar": { - /// "discoveryEnabled": true + /// "info": { + /// "input": { + /// "method": "GET", + /// "type": "http" + /// } + /// }, + /// "schema": {} /// } /// } /// ], @@ -64963,6 +65007,47 @@ pub mod types { } } #[derive(Clone, Debug)] + pub struct LookupEndUserResponse { + end_users: + ::std::result::Result<::std::vec::Vec, ::std::string::String>, + } + impl ::std::default::Default for LookupEndUserResponse { + fn default() -> Self { + Self { + end_users: Err("no value supplied for end_users".to_string()), + } + } + } + impl LookupEndUserResponse { + pub fn end_users(mut self, value: T) -> Self + where + T: ::std::convert::TryInto<::std::vec::Vec>, + T::Error: ::std::fmt::Display, + { + self.end_users = value + .try_into() + .map_err(|e| format!("error converting supplied value for end_users: {}", e)); + self + } + } + impl ::std::convert::TryFrom for super::LookupEndUserResponse { + type Error = super::error::ConversionError; + fn try_from( + value: LookupEndUserResponse, + ) -> ::std::result::Result { + Ok(Self { + end_users: value.end_users?, + }) + } + } + impl ::std::convert::From for LookupEndUserResponse { + fn from(value: super::LookupEndUserResponse) -> Self { + Self { + end_users: Ok(value.end_users), + } + } + } + #[derive(Clone, Debug)] pub struct MfaMethods { enrollment_prompted_at: ::std::result::Result< ::std::option::Option<::chrono::DateTime<::chrono::offset::Utc>>, @@ -77369,9 +77454,9 @@ impl Client { pub fn import_end_user(&self) -> builder::ImportEndUser<'_> { builder::ImportEndUser::new(self) } - /**Look up an end user + /**Look up end users by email - Looks up an end user by authentication method field. Currently supports lookup by email address, which searches across all email-based authentication methods (email, Google, Apple, GitHub). + Looks up end users by email address, searching across all email-based authentication methods (email, Google, Apple, GitHub). Returns all matching end users. If no end users match, an empty array is returned. This API is intended to be used by the developer's own backend, and is authenticated using the developer's CDP API key. @@ -83021,7 +83106,9 @@ pub mod builder { self } ///Sends a `GET` request to `/v2/end-users/lookup` - pub async fn send(self) -> Result, Error> { + pub async fn send( + self, + ) -> Result, Error> { let Self { client, email } = self; let email = email.map_err(Error::InvalidRequest)?; let url = format!("{}/v2/end-users/lookup", client.baseurl,); @@ -83055,9 +83142,6 @@ pub mod builder { 401u16 => Err(Error::ErrorResponse( ResponseValue::from_response(response).await?, )), - 404u16 => Err(Error::ErrorResponse( - ResponseValue::from_response(response).await?, - )), 500u16 => Err(Error::ErrorResponse( ResponseValue::from_response(response).await?, )), diff --git a/typescript/src/client/end-user/endUser.test.ts b/typescript/src/client/end-user/endUser.test.ts new file mode 100644 index 000000000..03dc7d24a --- /dev/null +++ b/typescript/src/client/end-user/endUser.test.ts @@ -0,0 +1,138 @@ +import { describe, it, expect, vi, beforeEach, MockedFunction } from "vitest"; + +import { CdpOpenApiClient, type ListEndUsers200, type EndUser } from "../../openapi-client/index.js"; + +import { EndUserClient } from "./endUser.js"; + +vi.mock("../../openapi-client/index.js", () => { + return { + CdpOpenApiClient: { + listEndUsers: vi.fn(), + }, + }; +}); + +vi.mock("../../analytics.js", () => ({ + Analytics: { + trackAction: vi.fn(), + }, +})); + +describe("EndUserClient", () => { + let client: EndUserClient; + + const mockEndUser: EndUser = { + userId: "user-123", + authenticationMethods: { + emailMethods: [], + smsMethods: [], + googleMethods: [], + appleMethods: [], + githubMethods: [], + }, + evmAccounts: [], + evmAccountObjects: [], + evmSmartAccounts: [], + evmSmartAccountObjects: [], + solanaAccounts: [], + solanaAccountObjects: [], + createdAt: "2024-01-01T00:00:00Z", + }; + + const mockEndUser2: EndUser = { + ...mockEndUser, + userId: "user-456", + }; + + beforeEach(() => { + vi.clearAllMocks(); + client = new EndUserClient(); + }); + + describe("listEndUsers", () => { + it("should list end users with default options", async () => { + const listEndUsersMock = CdpOpenApiClient.listEndUsers as MockedFunction< + typeof CdpOpenApiClient.listEndUsers + >; + + const mockResponse: ListEndUsers200 = { + endUsers: [mockEndUser, mockEndUser2], + nextPageToken: "next-token", + }; + + listEndUsersMock.mockResolvedValue(mockResponse); + + const result = await client.listEndUsers(); + + expect(result).toEqual(mockResponse); + expect(result.endUsers).toHaveLength(2); + expect(result.endUsers[0].userId).toBe("user-123"); + expect(result.endUsers[1].userId).toBe("user-456"); + expect(result.nextPageToken).toBe("next-token"); + expect(listEndUsersMock).toHaveBeenCalledWith({}); + }); + + it("should list end users with pagination parameters", async () => { + const listEndUsersMock = CdpOpenApiClient.listEndUsers as MockedFunction< + typeof CdpOpenApiClient.listEndUsers + >; + + const mockResponse: ListEndUsers200 = { + endUsers: [mockEndUser], + nextPageToken: undefined, + }; + + listEndUsersMock.mockResolvedValue(mockResponse); + + const result = await client.listEndUsers({ + pageSize: 10, + pageToken: "page-token-123", + }); + + expect(result.endUsers).toHaveLength(1); + expect(result.nextPageToken).toBeUndefined(); + expect(listEndUsersMock).toHaveBeenCalledWith({ + pageSize: 10, + pageToken: "page-token-123", + }); + }); + + it("should join sort array into comma-separated string", async () => { + const listEndUsersMock = CdpOpenApiClient.listEndUsers as MockedFunction< + typeof CdpOpenApiClient.listEndUsers + >; + + const mockResponse: ListEndUsers200 = { + endUsers: [mockEndUser], + }; + + listEndUsersMock.mockResolvedValue(mockResponse); + + await client.listEndUsers({ + sort: ["createdAt=desc"], + }); + + expect(listEndUsersMock).toHaveBeenCalledWith({ + sort: "createdAt=desc", + }); + }); + + it("should return empty endUsers array when no end users exist", async () => { + const listEndUsersMock = CdpOpenApiClient.listEndUsers as MockedFunction< + typeof CdpOpenApiClient.listEndUsers + >; + + const mockResponse: ListEndUsers200 = { + endUsers: [], + }; + + listEndUsersMock.mockResolvedValue(mockResponse); + + const result = await client.listEndUsers(); + + expect(result.endUsers).toEqual([]); + expect(result.nextPageToken).toBeUndefined(); + expect(listEndUsersMock).toHaveBeenCalledWith({}); + }); + }); +}); diff --git a/typescript/src/openapi-client/generated/coinbaseDeveloperPlatformAPIs.schemas.ts b/typescript/src/openapi-client/generated/coinbaseDeveloperPlatformAPIs.schemas.ts index ff20b1361..42fd1febd 100644 --- a/typescript/src/openapi-client/generated/coinbaseDeveloperPlatformAPIs.schemas.ts +++ b/typescript/src/openapi-client/generated/coinbaseDeveloperPlatformAPIs.schemas.ts @@ -4365,6 +4365,11 @@ export type LookupEndUserParams = { email: string; }; +export type LookupEndUser200 = { + /** The list of end users matching the email lookup. */ + endUsers: EndUser[]; +}; + export type AddEndUserEvmAccountBody = { [key: string]: unknown }; export type AddEndUserEvmAccount201 = { diff --git a/typescript/src/openapi-client/generated/end-user-accounts/end-user-accounts.ts b/typescript/src/openapi-client/generated/end-user-accounts/end-user-accounts.ts index 80c98e8da..eefc7c68f 100644 --- a/typescript/src/openapi-client/generated/end-user-accounts/end-user-accounts.ts +++ b/typescript/src/openapi-client/generated/end-user-accounts/end-user-accounts.ts @@ -17,6 +17,7 @@ import type { ImportEndUserBody, ListEndUsers200, ListEndUsersParams, + LookupEndUser200, LookupEndUserParams, ValidateEndUserAccessTokenBody, } from "../coinbaseDeveloperPlatformAPIs.schemas.js"; @@ -88,16 +89,19 @@ export const getEndUser = ( return cdpApiClient({ url: `/v2/end-users/${userId}`, method: "GET" }, options); }; /** - * Looks up an end user by authentication method field. Currently supports lookup by email address, which searches across all email-based authentication methods (email, Google, Apple, GitHub). + * Looks up end users by email address, searching across all email-based authentication methods (email, Google, Apple, GitHub). Returns all matching end users. If no end users match, an empty array is returned. This API is intended to be used by the developer's own backend, and is authenticated using the developer's CDP API key. - * @summary Look up an end user + * @summary Look up end users by email */ export const lookupEndUser = ( params: LookupEndUserParams, - options?: SecondParameter>, + options?: SecondParameter>, ) => { - return cdpApiClient({ url: `/v2/end-users/lookup`, method: "GET", params }, options); + return cdpApiClient( + { url: `/v2/end-users/lookup`, method: "GET", params }, + options, + ); }; /** * Adds a new EVM EOA account to an existing end user. End users can have up to 10 EVM accounts. From 27dc17ffe93313d45c180d61f990aa15ce792602 Mon Sep 17 00:00:00 2001 From: Sam McCord Date: Wed, 22 Apr 2026 20:50:03 -0600 Subject: [PATCH 04/13] fix: update lookupEndUser to return EndUser[] across all SDKs The API spec changed lookupEndUser from returning a singular EndUser to { endUsers: EndUser[] }. Update TypeScript, Python, and Java SDK wrappers to handle the array response and add unit tests for all three. --- .../cdp/client/enduser/EndUserClient.java | 7 ++- .../cdp/client/enduser/EndUserClientTest.java | 17 +++++ python/cdp/end_user_client.py | 10 +-- python/cdp/test/factories/end_user_factory.py | 18 ++++++ python/cdp/test/test_end_user_client.py | 63 +++++++++++++++++++ .../src/client/end-user/endUser.test.ts | 63 ++++++++++++++++++- typescript/src/client/end-user/endUser.ts | 24 ++++--- 7 files changed, 183 insertions(+), 19 deletions(-) diff --git a/java/src/main/java/com/coinbase/cdp/client/enduser/EndUserClient.java b/java/src/main/java/com/coinbase/cdp/client/enduser/EndUserClient.java index 893fb4682..9a6a18446 100644 --- a/java/src/main/java/com/coinbase/cdp/client/enduser/EndUserClient.java +++ b/java/src/main/java/com/coinbase/cdp/client/enduser/EndUserClient.java @@ -19,6 +19,7 @@ import com.coinbase.cdp.openapi.model.GetDelegationForEndUser200Response; import com.coinbase.cdp.openapi.model.ImportEndUserRequest; import com.coinbase.cdp.openapi.model.ListEndUsers200Response; +import com.coinbase.cdp.openapi.model.LookupEndUser200Response; import com.coinbase.cdp.openapi.model.RevokeDelegationForEndUserRequest; import com.coinbase.cdp.openapi.model.SendEvmAssetWithEndUserAccount200Response; import com.coinbase.cdp.openapi.model.SendEvmAssetWithEndUserAccountRequest; @@ -182,15 +183,15 @@ public EndUser getEndUser(String userId) throws ApiException { } /** - * Looks up an end user by email address. + * Looks up end users by email address. * *

Searches across all email-based authentication methods (email, Google, Apple, GitHub). * * @param email the email address to search for - * @return the end user + * @return the lookup response containing matching end users * @throws ApiException if the API call fails */ - public EndUser lookupEndUser(String email) throws ApiException { + public LookupEndUser200Response lookupEndUser(String email) throws ApiException { return endUserAccountsApi.lookupEndUser(email); } diff --git a/java/src/test/java/com/coinbase/cdp/client/enduser/EndUserClientTest.java b/java/src/test/java/com/coinbase/cdp/client/enduser/EndUserClientTest.java index bbe29fc9d..102295856 100644 --- a/java/src/test/java/com/coinbase/cdp/client/enduser/EndUserClientTest.java +++ b/java/src/test/java/com/coinbase/cdp/client/enduser/EndUserClientTest.java @@ -138,6 +138,23 @@ void getsEndUserById() throws ApiException { } } + @Nested + class LookupEndUserTest { + @Test + void looksUpEndUserByEmail() throws ApiException { + LookupEndUser200Response expected = new LookupEndUser200Response(); + expected.addEndUsersItem(new EndUser().userId(USER_ID)); + when(endUserAccountsApi.lookupEndUser("user@example.com")).thenReturn(expected); + + LookupEndUser200Response result = client.lookupEndUser("user@example.com"); + + assertThat(result).isEqualTo(expected); + assertThat(result.getEndUsers()).hasSize(1); + assertThat(result.getEndUsers().get(0).getUserId()).isEqualTo(USER_ID); + verify(endUserAccountsApi).lookupEndUser("user@example.com"); + } + } + @Nested class ValidateAccessTokenTest { @Test diff --git a/python/cdp/end_user_client.py b/python/cdp/end_user_client.py index bd2158645..ec3050dbb 100644 --- a/python/cdp/end_user_client.py +++ b/python/cdp/end_user_client.py @@ -202,8 +202,8 @@ async def list_end_users( async def lookup_end_user( self, email: str, - ) -> EndUserAccount: - """Look up an end user by email address. + ) -> list[EndUserAccount]: + """Look up end users by email address. Searches across all email-based authentication methods (email, Google, Apple, GitHub). @@ -211,14 +211,14 @@ async def lookup_end_user( email: The email address to search for across all authentication methods. Returns: - EndUserAccount: The end user with action methods. + list[EndUserAccount]: The matching end users with action methods. """ track_action(action="lookup_end_user") - end_user = await self.api_clients.end_user.lookup_end_user(email=email) + response = await self.api_clients.end_user.lookup_end_user(email=email) - return EndUserAccount(end_user, self.api_clients) + return [EndUserAccount(end_user, self.api_clients) for end_user in response.end_users] async def validate_access_token( self, diff --git a/python/cdp/test/factories/end_user_factory.py b/python/cdp/test/factories/end_user_factory.py index 4b34b9ebf..a488ad89d 100644 --- a/python/cdp/test/factories/end_user_factory.py +++ b/python/cdp/test/factories/end_user_factory.py @@ -16,6 +16,7 @@ from cdp.openapi_client.models.end_user_evm_smart_account import EndUserEvmSmartAccount from cdp.openapi_client.models.end_user_solana_account import EndUserSolanaAccount from cdp.openapi_client.models.list_end_users200_response import ListEndUsers200Response +from cdp.openapi_client.models.lookup_end_user200_response import LookupEndUser200Response @pytest.fixture @@ -59,6 +60,23 @@ def _create_list_end_users_response( return _create_list_end_users_response +@pytest.fixture +def lookup_end_user_response_factory(): + """Create and return a factory for Lookup End User response fixtures.""" + + def _create_lookup_end_user_response( + end_users=None, + ): + if end_users is None: + end_users = [] + + return LookupEndUser200Response( + end_users=end_users, + ) + + return _create_lookup_end_user_response + + @pytest.fixture def add_end_user_evm_account_response_factory(): """Create and return a factory for Add End User EVM Account response fixtures.""" diff --git a/python/cdp/test/test_end_user_client.py b/python/cdp/test/test_end_user_client.py index 5ccc964ee..a87e5b899 100644 --- a/python/cdp/test/test_end_user_client.py +++ b/python/cdp/test/test_end_user_client.py @@ -139,6 +139,69 @@ async def test_list_end_users_with_sort(end_user_model_factory, list_end_users_r ) +@pytest.mark.asyncio +async def test_lookup_end_user_returns_list( + end_user_model_factory, lookup_end_user_response_factory +): + """Test that lookup_end_user returns a list of EndUserAccount objects.""" + from cdp.end_user_account import EndUserAccount + + mock_end_user_1 = end_user_model_factory(user_id="user1") + mock_end_user_2 = end_user_model_factory(user_id="user2") + mock_response = lookup_end_user_response_factory( + end_users=[mock_end_user_1, mock_end_user_2], + ) + + mock_api_clients = AsyncMock() + mock_api_clients.end_user.lookup_end_user = AsyncMock(return_value=mock_response) + + client = EndUserClient(api_clients=mock_api_clients) + + result = await client.lookup_end_user(email="user@example.com") + + assert len(result) == 2 + assert isinstance(result[0], EndUserAccount) + assert isinstance(result[1], EndUserAccount) + assert result[0].user_id == "user1" + assert result[1].user_id == "user2" + mock_api_clients.end_user.lookup_end_user.assert_called_once_with(email="user@example.com") + + +@pytest.mark.asyncio +async def test_lookup_end_user_single_match( + end_user_model_factory, lookup_end_user_response_factory +): + """Test lookup_end_user with a single matching end user.""" + mock_end_user = end_user_model_factory(user_id="user1") + mock_response = lookup_end_user_response_factory(end_users=[mock_end_user]) + + mock_api_clients = AsyncMock() + mock_api_clients.end_user.lookup_end_user = AsyncMock(return_value=mock_response) + + client = EndUserClient(api_clients=mock_api_clients) + + result = await client.lookup_end_user(email="user@example.com") + + assert len(result) == 1 + assert result[0].user_id == "user1" + + +@pytest.mark.asyncio +async def test_lookup_end_user_no_matches(lookup_end_user_response_factory): + """Test lookup_end_user with no matching end users.""" + mock_response = lookup_end_user_response_factory(end_users=[]) + + mock_api_clients = AsyncMock() + mock_api_clients.end_user.lookup_end_user = AsyncMock(return_value=mock_response) + + client = EndUserClient(api_clients=mock_api_clients) + + result = await client.lookup_end_user(email="nobody@example.com") + + assert result == [] + mock_api_clients.end_user.lookup_end_user.assert_called_once_with(email="nobody@example.com") + + @pytest.mark.asyncio async def test_create_end_user_with_provided_user_id(end_user_model_factory): """Test creating an end user with a provided user_id.""" diff --git a/typescript/src/client/end-user/endUser.test.ts b/typescript/src/client/end-user/endUser.test.ts index 03dc7d24a..14b98404d 100644 --- a/typescript/src/client/end-user/endUser.test.ts +++ b/typescript/src/client/end-user/endUser.test.ts @@ -1,6 +1,11 @@ import { describe, it, expect, vi, beforeEach, MockedFunction } from "vitest"; -import { CdpOpenApiClient, type ListEndUsers200, type EndUser } from "../../openapi-client/index.js"; +import { + CdpOpenApiClient, + type ListEndUsers200, + type LookupEndUser200, + type EndUser, +} from "../../openapi-client/index.js"; import { EndUserClient } from "./endUser.js"; @@ -8,6 +13,7 @@ vi.mock("../../openapi-client/index.js", () => { return { CdpOpenApiClient: { listEndUsers: vi.fn(), + lookupEndUser: vi.fn(), }, }; }); @@ -135,4 +141,59 @@ describe("EndUserClient", () => { expect(listEndUsersMock).toHaveBeenCalledWith({}); }); }); + + describe("lookupEndUser", () => { + it("should return an array of matching end users", async () => { + const lookupEndUserMock = CdpOpenApiClient.lookupEndUser as MockedFunction< + typeof CdpOpenApiClient.lookupEndUser + >; + + const mockResponse: LookupEndUser200 = { + endUsers: [mockEndUser, mockEndUser2], + }; + + lookupEndUserMock.mockResolvedValue(mockResponse); + + const result = await client.lookupEndUser({ email: "user@example.com" }); + + expect(result).toHaveLength(2); + expect(result[0].userId).toBe("user-123"); + expect(result[1].userId).toBe("user-456"); + expect(lookupEndUserMock).toHaveBeenCalledWith({ email: "user@example.com" }); + }); + + it("should return a single-element array when one user matches", async () => { + const lookupEndUserMock = CdpOpenApiClient.lookupEndUser as MockedFunction< + typeof CdpOpenApiClient.lookupEndUser + >; + + const mockResponse: LookupEndUser200 = { + endUsers: [mockEndUser], + }; + + lookupEndUserMock.mockResolvedValue(mockResponse); + + const result = await client.lookupEndUser({ email: "user@example.com" }); + + expect(result).toHaveLength(1); + expect(result[0].userId).toBe("user-123"); + }); + + it("should return an empty array when no users match", async () => { + const lookupEndUserMock = CdpOpenApiClient.lookupEndUser as MockedFunction< + typeof CdpOpenApiClient.lookupEndUser + >; + + const mockResponse: LookupEndUser200 = { + endUsers: [], + }; + + lookupEndUserMock.mockResolvedValue(mockResponse); + + const result = await client.lookupEndUser({ email: "nobody@example.com" }); + + expect(result).toEqual([]); + expect(lookupEndUserMock).toHaveBeenCalledWith({ email: "nobody@example.com" }); + }); + }); }); diff --git a/typescript/src/client/end-user/endUser.ts b/typescript/src/client/end-user/endUser.ts index d3ae5c64d..15fd9a1fc 100644 --- a/typescript/src/client/end-user/endUser.ts +++ b/typescript/src/client/end-user/endUser.ts @@ -46,7 +46,11 @@ import { toEndUserAccount } from "./toEndUserAccount.js"; import { Analytics } from "../../analytics.js"; import { ImportAccountPublicRSAKey } from "../../constants.js"; import { UserInputValidationError } from "../../errors.js"; -import { CdpOpenApiClient, type ListEndUsers200 } from "../../openapi-client/index.js"; +import { + CdpOpenApiClient, + type ListEndUsers200, + type LookupEndUser200, +} from "../../openapi-client/index.js"; /** * The CDP end user client. @@ -169,28 +173,28 @@ export class EndUserClient { } /** - * Looks up an end user by email address. Searches across all email-based authentication methods (email, Google, Apple, GitHub). + * Looks up end users by email address. Searches across all email-based authentication methods (email, Google, Apple, GitHub). * - * @param options - The options for looking up an end user. + * @param options - The options for looking up end users. * - * @returns A promise that resolves to the end user. + * @returns A promise that resolves to an array of matching end users. * - * @example **Look up an end user by email** + * @example **Look up end users by email** * ```ts - * const endUser = await cdp.endUser.lookupEndUser({ + * const endUsers = await cdp.endUser.lookupEndUser({ * email: "user@example.com" * }); - * console.log(endUser.userId); + * endUsers.forEach(endUser => console.log(endUser.userId)); * ``` */ - async lookupEndUser(options: LookupEndUserOptions): Promise { + async lookupEndUser(options: LookupEndUserOptions): Promise { Analytics.trackAction({ action: "lookup_end_user", }); - const endUser = await CdpOpenApiClient.lookupEndUser({ email: options.email }); + const response = await CdpOpenApiClient.lookupEndUser({ email: options.email }); - return toEndUserAccount(CdpOpenApiClient, { endUser }); + return response.endUsers.map((endUser) => toEndUserAccount(CdpOpenApiClient, { endUser })); } /** From d6b76ce7aa534b67f49f6ac22aafebda8c4343aa Mon Sep 17 00:00:00 2001 From: Sam McCord Date: Wed, 22 Apr 2026 20:51:48 -0600 Subject: [PATCH 05/13] chore: format --- typescript/src/client/end-user/endUser.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/typescript/src/client/end-user/endUser.ts b/typescript/src/client/end-user/endUser.ts index 15fd9a1fc..b07bfc7ac 100644 --- a/typescript/src/client/end-user/endUser.ts +++ b/typescript/src/client/end-user/endUser.ts @@ -194,7 +194,7 @@ export class EndUserClient { const response = await CdpOpenApiClient.lookupEndUser({ email: options.email }); - return response.endUsers.map((endUser) => toEndUserAccount(CdpOpenApiClient, { endUser })); + return response.endUsers.map(endUser => toEndUserAccount(CdpOpenApiClient, { endUser })); } /** From 7a397c658a373bd03373f33b77cfb17b9a6c619e Mon Sep 17 00:00:00 2001 From: Sam McCord Date: Thu, 23 Apr 2026 11:10:11 -0600 Subject: [PATCH 06/13] chore: use latest api --- .../com/coinbase/cdp/openapi/model/OnrampLimitType.java | 2 +- openapi.yaml | 8 ++++---- python/cdp/openapi_client/models/onramp_limit_type.py | 2 +- rust/src/api.rs | 2 +- .../generated/coinbaseDeveloperPlatformAPIs.schemas.ts | 8 ++++---- 5 files changed, 11 insertions(+), 11 deletions(-) diff --git a/java/src/main/java/com/coinbase/cdp/openapi/model/OnrampLimitType.java b/java/src/main/java/com/coinbase/cdp/openapi/model/OnrampLimitType.java index bc637d6e6..5f719b483 100644 --- a/java/src/main/java/com/coinbase/cdp/openapi/model/OnrampLimitType.java +++ b/java/src/main/java/com/coinbase/cdp/openapi/model/OnrampLimitType.java @@ -26,7 +26,7 @@ import com.fasterxml.jackson.annotation.JsonValue; /** - * The type of limit: - `weekly_spending`: Rolling 7-day spending limit. The limit applies to the sum of all completed transactions within a sliding 168-hour (7-day) window. As time passes, older transactions naturally expire from the window. $500 is the default limit. - `lifetime_transactions`: All-time transaction count limit. Tracks the total number of completed transactions across the user's entire history with no time-based expiration. Once the limit is reached, no further transactions are allowed. 15 is the default limit. + * The type of limit: - `weekly_spending`: Rolling 7-day spending limit. The limit applies to the sum of all completed transactions within a sliding 168-hour (7-day) window. As time passes, older transactions naturally expire from the window. $500 is the default limit. - `lifetime_transactions`: All-time transaction count limit. Tracks the total number of completed transactions across the user's entire history with no time-based expiration. Once the limit is reached, no further transactions are allowed. 15 is the default limit. */ public enum OnrampLimitType { diff --git a/openapi.yaml b/openapi.yaml index 381a41095..27f5c959e 100644 --- a/openapi.yaml +++ b/openapi.yaml @@ -14578,11 +14578,11 @@ components: type: string description: | The type of limit: - - `weekly_spending`: Rolling 7-day spending limit. The limit applies to the sum of all completed transactions - within a sliding 168-hour (7-day) window. As time passes, older transactions naturally expire from the window. + - `weekly_spending`: Rolling 7-day spending limit. The limit applies to the sum of all completed transactions + within a sliding 168-hour (7-day) window. As time passes, older transactions naturally expire from the window. $500 is the default limit. - - `lifetime_transactions`: All-time transaction count limit. Tracks the total number of completed transactions - across the user's entire history with no time-based expiration. Once the limit is reached, no further + - `lifetime_transactions`: All-time transaction count limit. Tracks the total number of completed transactions + across the user's entire history with no time-based expiration. Once the limit is reached, no further transactions are allowed. 15 is the default limit. enum: - weekly_spending diff --git a/python/cdp/openapi_client/models/onramp_limit_type.py b/python/cdp/openapi_client/models/onramp_limit_type.py index 77fa1c39b..42bd783a3 100644 --- a/python/cdp/openapi_client/models/onramp_limit_type.py +++ b/python/cdp/openapi_client/models/onramp_limit_type.py @@ -21,7 +21,7 @@ class OnrampLimitType(str, Enum): """ - The type of limit: - `weekly_spending`: Rolling 7-day spending limit. The limit applies to the sum of all completed transactions within a sliding 168-hour (7-day) window. As time passes, older transactions naturally expire from the window. $500 is the default limit. - `lifetime_transactions`: All-time transaction count limit. Tracks the total number of completed transactions across the user's entire history with no time-based expiration. Once the limit is reached, no further transactions are allowed. 15 is the default limit. + The type of limit: - `weekly_spending`: Rolling 7-day spending limit. The limit applies to the sum of all completed transactions within a sliding 168-hour (7-day) window. As time passes, older transactions naturally expire from the window. $500 is the default limit. - `lifetime_transactions`: All-time transaction count limit. Tracks the total number of completed transactions across the user's entire history with no time-based expiration. Once the limit is reached, no further transactions are allowed. 15 is the default limit. """ """ diff --git a/rust/src/api.rs b/rust/src/api.rs index d08d72c73..8c0848660 100644 --- a/rust/src/api.rs +++ b/rust/src/api.rs @@ -24877,7 +24877,7 @@ pub mod types { /// /// ```json ///{ - /// "description": "The type of limit:\n- `weekly_spending`: Rolling 7-day spending limit. The limit applies to the sum of all completed transactions\n within a sliding 168-hour (7-day) window. As time passes, older transactions naturally expire from the window.\n $500 is the default limit.\n- `lifetime_transactions`: All-time transaction count limit. Tracks the total number of completed transactions\n across the user's entire history with no time-based expiration. Once the limit is reached, no further\n transactions are allowed. 15 is the default limit.\n", + /// "description": "The type of limit:\n- `weekly_spending`: Rolling 7-day spending limit. The limit applies to the sum of all completed transactions \n within a sliding 168-hour (7-day) window. As time passes, older transactions naturally expire from the window. \n $500 is the default limit.\n- `lifetime_transactions`: All-time transaction count limit. Tracks the total number of completed transactions \n across the user's entire history with no time-based expiration. Once the limit is reached, no further \n transactions are allowed. 15 is the default limit.\n", /// "examples": [ /// "weekly_spending" /// ], diff --git a/typescript/src/openapi-client/generated/coinbaseDeveloperPlatformAPIs.schemas.ts b/typescript/src/openapi-client/generated/coinbaseDeveloperPlatformAPIs.schemas.ts index 42fd1febd..dfbb0a513 100644 --- a/typescript/src/openapi-client/generated/coinbaseDeveloperPlatformAPIs.schemas.ts +++ b/typescript/src/openapi-client/generated/coinbaseDeveloperPlatformAPIs.schemas.ts @@ -4085,11 +4085,11 @@ export const OnrampUserIdType = { /** * The type of limit: -- `weekly_spending`: Rolling 7-day spending limit. The limit applies to the sum of all completed transactions - within a sliding 168-hour (7-day) window. As time passes, older transactions naturally expire from the window. +- `weekly_spending`: Rolling 7-day spending limit. The limit applies to the sum of all completed transactions + within a sliding 168-hour (7-day) window. As time passes, older transactions naturally expire from the window. $500 is the default limit. -- `lifetime_transactions`: All-time transaction count limit. Tracks the total number of completed transactions - across the user's entire history with no time-based expiration. Once the limit is reached, no further +- `lifetime_transactions`: All-time transaction count limit. Tracks the total number of completed transactions + across the user's entire history with no time-based expiration. Once the limit is reached, no further transactions are allowed. 15 is the default limit. */ From e96bed1271cf1385a64e83cd3a8915198d88f6b9 Mon Sep 17 00:00:00 2001 From: Sam McCord Date: Thu, 23 Apr 2026 11:58:53 -0600 Subject: [PATCH 07/13] chore: latest cdp-api --- go/openapi/client.gen.go | 2852 ++++++++++++++--- .../cdp/openapi/api/EmbeddedWalletsApi.java | 29 +- .../model/X402SupportedPaymentKind.java | 12 +- openapi.yaml | 6 + .../api/embedded_wallets_api.py | 17 + .../models/x402_supported_payment_kind.py | 4 +- rust/src/api.rs | 142 +- .../coinbaseDeveloperPlatformAPIs.schemas.ts | 13 + .../embedded-wallets/embedded-wallets.ts | 3 + 9 files changed, 2693 insertions(+), 385 deletions(-) diff --git a/go/openapi/client.gen.go b/go/openapi/client.gen.go index e28568725..56148cf71 100644 --- a/go/openapi/client.gen.go +++ b/go/openapi/client.gen.go @@ -1,6 +1,6 @@ // Package openapi provides primitives to interact with the openapi HTTP API. // -// Code generated by github.com/deepmap/oapi-codegen version v1.16.3 DO NOT EDIT. +// Code generated by github.com/oapi-codegen/oapi-codegen/v2 version v2.6.0 DO NOT EDIT. package openapi import ( @@ -28,6 +28,16 @@ const ( Function AbiFunctionType = "function" ) +// Valid indicates whether the value is a known member of the AbiFunctionType enum. +func (e AbiFunctionType) Valid() bool { + switch e { + case Function: + return true + default: + return false + } +} + // Defines values for AbiInputType. const ( AbiInputTypeConstructor AbiInputType = "constructor" @@ -37,6 +47,24 @@ const ( AbiInputTypeReceive AbiInputType = "receive" ) +// Valid indicates whether the value is a known member of the AbiInputType enum. +func (e AbiInputType) Valid() bool { + switch e { + case AbiInputTypeConstructor: + return true + case AbiInputTypeError: + return true + case AbiInputTypeEvent: + return true + case AbiInputTypeFallback: + return true + case AbiInputTypeReceive: + return true + default: + return false + } +} + // Defines values for AbiStateMutability. const ( Nonpayable AbiStateMutability = "nonpayable" @@ -45,26 +73,82 @@ const ( View AbiStateMutability = "view" ) +// Valid indicates whether the value is a known member of the AbiStateMutability enum. +func (e AbiStateMutability) Valid() bool { + switch e { + case Nonpayable: + return true + case Payable: + return true + case Pure: + return true + case View: + return true + default: + return false + } +} + // Defines values for CommonSwapResponseLiquidityAvailable. const ( CommonSwapResponseLiquidityAvailableTrue CommonSwapResponseLiquidityAvailable = true ) +// Valid indicates whether the value is a known member of the CommonSwapResponseLiquidityAvailable enum. +func (e CommonSwapResponseLiquidityAvailable) Valid() bool { + switch e { + case CommonSwapResponseLiquidityAvailableTrue: + return true + default: + return false + } +} + // Defines values for CreateSwapQuoteResponseLiquidityAvailable. const ( CreateSwapQuoteResponseLiquidityAvailableTrue CreateSwapQuoteResponseLiquidityAvailable = true ) +// Valid indicates whether the value is a known member of the CreateSwapQuoteResponseLiquidityAvailable enum. +func (e CreateSwapQuoteResponseLiquidityAvailable) Valid() bool { + switch e { + case CreateSwapQuoteResponseLiquidityAvailableTrue: + return true + default: + return false + } +} + // Defines values for DeveloperJWTAuthenticationType. const ( Jwt DeveloperJWTAuthenticationType = "jwt" ) +// Valid indicates whether the value is a known member of the DeveloperJWTAuthenticationType enum. +func (e DeveloperJWTAuthenticationType) Valid() bool { + switch e { + case Jwt: + return true + default: + return false + } +} + // Defines values for EmailAuthenticationType. const ( Email EmailAuthenticationType = "email" ) +// Valid indicates whether the value is a known member of the EmailAuthenticationType enum. +func (e EmailAuthenticationType) Valid() bool { + switch e { + case Email: + return true + default: + return false + } +} + // Defines values for ErrorType. const ( ErrorTypeAccountLimitExceeded ErrorType = "account_limit_exceeded" @@ -133,51 +217,277 @@ const ( ErrorTypeUnauthorized ErrorType = "unauthorized" ) +// Valid indicates whether the value is a known member of the ErrorType enum. +func (e ErrorType) Valid() bool { + switch e { + case ErrorTypeAccountLimitExceeded: + return true + case ErrorTypeAccountNotReady: + return true + case ErrorTypeAlreadyExists: + return true + case ErrorTypeAssetMismatch: + return true + case ErrorTypeAuthorizationExpired: + return true + case ErrorTypeBadGateway: + return true + case ErrorTypeCaptureExpired: + return true + case ErrorTypeClientClosedRequest: + return true + case ErrorTypeDocumentVerificationFailed: + return true + case ErrorTypeFaucetLimitExceeded: + return true + case ErrorTypeForbidden: + return true + case ErrorTypeGuestPermissionDenied: + return true + case ErrorTypeGuestRegionForbidden: + return true + case ErrorTypeGuestTransactionCount: + return true + case ErrorTypeGuestTransactionLimit: + return true + case ErrorTypeIdempotencyError: + return true + case ErrorTypeInsufficientAllowance: + return true + case ErrorTypeInsufficientBalance: + return true + case ErrorTypeInsufficientLiquidity: + return true + case ErrorTypeInternalServerError: + return true + case ErrorTypeInvalidRequest: + return true + case ErrorTypeInvalidSignature: + return true + case ErrorTypeInvalidSqlQuery: + return true + case ErrorTypeMalformedTransaction: + return true + case ErrorTypeMetadataKeyTooLong: + return true + case ErrorTypeMetadataTooManyEntries: + return true + case ErrorTypeMetadataValueTooLong: + return true + case ErrorTypeMfaAlreadyEnrolled: + return true + case ErrorTypeMfaFlowExpired: + return true + case ErrorTypeMfaInvalidCode: + return true + case ErrorTypeMfaNotEnrolled: + return true + case ErrorTypeMfaRequired: + return true + case ErrorTypeNetworkNotTradable: + return true + case ErrorTypeNotFound: + return true + case ErrorTypeOrderAlreadyCanceled: + return true + case ErrorTypeOrderAlreadyFilled: + return true + case ErrorTypeOrderQuoteExpired: + return true + case ErrorTypePaymentMethodRequired: + return true + case ErrorTypePaymentRequired: + return true + case ErrorTypePhoneNumberVerificationExpired: + return true + case ErrorTypePolicyInUse: + return true + case ErrorTypePolicyViolation: + return true + case ErrorTypeRateLimitExceeded: + return true + case ErrorTypeRecipientAllowlistPending: + return true + case ErrorTypeRecipientAllowlistViolation: + return true + case ErrorTypeRefundExpired: + return true + case ErrorTypeRequestCanceled: + return true + case ErrorTypeServiceUnavailable: + return true + case ErrorTypeSettlementFailed: + return true + case ErrorTypeSourceAccountInvalid: + return true + case ErrorTypeSourceAccountNotFound: + return true + case ErrorTypeSourceAssetNotSupported: + return true + case ErrorTypeTargetAccountInvalid: + return true + case ErrorTypeTargetAccountNotFound: + return true + case ErrorTypeTargetAssetNotSupported: + return true + case ErrorTypeTargetEmailInvalid: + return true + case ErrorTypeTargetOnchainAddressInvalid: + return true + case ErrorTypeTimedOut: + return true + case ErrorTypeTransactionSimulationFailed: + return true + case ErrorTypeTransferAmountInvalid: + return true + case ErrorTypeTransferAssetNotSupported: + return true + case ErrorTypeTravelRulesFieldMissing: + return true + case ErrorTypeTravelRulesRecipientViolation: + return true + case ErrorTypeUnauthorized: + return true + default: + return false + } +} + // Defines values for EthValueCriterionOperator. const ( - EthValueCriterionOperatorEmpty EthValueCriterionOperator = ">" - EthValueCriterionOperatorEqualEqual EthValueCriterionOperator = "==" - EthValueCriterionOperatorN1 EthValueCriterionOperator = ">=" - EthValueCriterionOperatorN2 EthValueCriterionOperator = "<" - EthValueCriterionOperatorN3 EthValueCriterionOperator = "<=" + EthValueCriterionOperatorEqualEqual EthValueCriterionOperator = "==" + EthValueCriterionOperatorGreaterThan EthValueCriterionOperator = ">" + EthValueCriterionOperatorGreaterThanEqual EthValueCriterionOperator = ">=" + EthValueCriterionOperatorLessThan EthValueCriterionOperator = "<" + EthValueCriterionOperatorLessThanEqual EthValueCriterionOperator = "<=" ) +// Valid indicates whether the value is a known member of the EthValueCriterionOperator enum. +func (e EthValueCriterionOperator) Valid() bool { + switch e { + case EthValueCriterionOperatorEqualEqual: + return true + case EthValueCriterionOperatorGreaterThan: + return true + case EthValueCriterionOperatorGreaterThanEqual: + return true + case EthValueCriterionOperatorLessThan: + return true + case EthValueCriterionOperatorLessThanEqual: + return true + default: + return false + } +} + // Defines values for EthValueCriterionType. const ( EthValue EthValueCriterionType = "ethValue" ) +// Valid indicates whether the value is a known member of the EthValueCriterionType enum. +func (e EthValueCriterionType) Valid() bool { + switch e { + case EthValue: + return true + default: + return false + } +} + // Defines values for EvmAddressCriterionOperator. const ( EvmAddressCriterionOperatorIn EvmAddressCriterionOperator = "in" EvmAddressCriterionOperatorNotIn EvmAddressCriterionOperator = "not in" ) +// Valid indicates whether the value is a known member of the EvmAddressCriterionOperator enum. +func (e EvmAddressCriterionOperator) Valid() bool { + switch e { + case EvmAddressCriterionOperatorIn: + return true + case EvmAddressCriterionOperatorNotIn: + return true + default: + return false + } +} + // Defines values for EvmAddressCriterionType. const ( EvmAddress EvmAddressCriterionType = "evmAddress" ) +// Valid indicates whether the value is a known member of the EvmAddressCriterionType enum. +func (e EvmAddressCriterionType) Valid() bool { + switch e { + case EvmAddress: + return true + default: + return false + } +} + // Defines values for EvmDataCriterionType. const ( EvmData EvmDataCriterionType = "evmData" ) +// Valid indicates whether the value is a known member of the EvmDataCriterionType enum. +func (e EvmDataCriterionType) Valid() bool { + switch e { + case EvmData: + return true + default: + return false + } +} + // Defines values for EvmDataParameterConditionOperator. const ( - EvmDataParameterConditionOperatorEmpty EvmDataParameterConditionOperator = ">" - EvmDataParameterConditionOperatorEqualEqual EvmDataParameterConditionOperator = "==" - EvmDataParameterConditionOperatorN1 EvmDataParameterConditionOperator = ">=" - EvmDataParameterConditionOperatorN2 EvmDataParameterConditionOperator = "<" - EvmDataParameterConditionOperatorN3 EvmDataParameterConditionOperator = "<=" + EvmDataParameterConditionOperatorEqualEqual EvmDataParameterConditionOperator = "==" + EvmDataParameterConditionOperatorGreaterThan EvmDataParameterConditionOperator = ">" + EvmDataParameterConditionOperatorGreaterThanEqual EvmDataParameterConditionOperator = ">=" + EvmDataParameterConditionOperatorLessThan EvmDataParameterConditionOperator = "<" + EvmDataParameterConditionOperatorLessThanEqual EvmDataParameterConditionOperator = "<=" ) +// Valid indicates whether the value is a known member of the EvmDataParameterConditionOperator enum. +func (e EvmDataParameterConditionOperator) Valid() bool { + switch e { + case EvmDataParameterConditionOperatorEqualEqual: + return true + case EvmDataParameterConditionOperatorGreaterThan: + return true + case EvmDataParameterConditionOperatorGreaterThanEqual: + return true + case EvmDataParameterConditionOperatorLessThan: + return true + case EvmDataParameterConditionOperatorLessThanEqual: + return true + default: + return false + } +} + // Defines values for EvmDataParameterConditionListOperator. const ( EvmDataParameterConditionListOperatorIn EvmDataParameterConditionListOperator = "in" EvmDataParameterConditionListOperatorNotIn EvmDataParameterConditionListOperator = "not in" ) +// Valid indicates whether the value is a known member of the EvmDataParameterConditionListOperator enum. +func (e EvmDataParameterConditionListOperator) Valid() bool { + switch e { + case EvmDataParameterConditionListOperatorIn: + return true + case EvmDataParameterConditionListOperatorNotIn: + return true + default: + return false + } +} + // Defines values for EvmEip7702DelegationNetwork. const ( EvmEip7702DelegationNetworkArbitrum EvmEip7702DelegationNetwork = "arbitrum" @@ -189,6 +499,28 @@ const ( EvmEip7702DelegationNetworkPolygon EvmEip7702DelegationNetwork = "polygon" ) +// Valid indicates whether the value is a known member of the EvmEip7702DelegationNetwork enum. +func (e EvmEip7702DelegationNetwork) Valid() bool { + switch e { + case EvmEip7702DelegationNetworkArbitrum: + return true + case EvmEip7702DelegationNetworkBase: + return true + case EvmEip7702DelegationNetworkBaseSepolia: + return true + case EvmEip7702DelegationNetworkEthereum: + return true + case EvmEip7702DelegationNetworkEthereumSepolia: + return true + case EvmEip7702DelegationNetworkOptimism: + return true + case EvmEip7702DelegationNetworkPolygon: + return true + default: + return false + } +} + // Defines values for EvmEip7702DelegationOperationStatus. const ( COMPLETED EvmEip7702DelegationOperationStatus = "COMPLETED" @@ -198,11 +530,39 @@ const ( UNSPECIFIED EvmEip7702DelegationOperationStatus = "UNSPECIFIED" ) +// Valid indicates whether the value is a known member of the EvmEip7702DelegationOperationStatus enum. +func (e EvmEip7702DelegationOperationStatus) Valid() bool { + switch e { + case COMPLETED: + return true + case FAILED: + return true + case PENDING: + return true + case SUBMITTED: + return true + case UNSPECIFIED: + return true + default: + return false + } +} + // Defines values for EvmMessageCriterionType. const ( EvmMessage EvmMessageCriterionType = "evmMessage" ) +// Valid indicates whether the value is a known member of the EvmMessageCriterionType enum. +func (e EvmMessageCriterionType) Valid() bool { + switch e { + case EvmMessage: + return true + default: + return false + } +} + // Defines values for EvmNetworkCriterionNetworks. const ( EvmNetworkCriterionNetworksArbitrum EvmNetworkCriterionNetworks = "arbitrum" @@ -220,17 +580,73 @@ const ( EvmNetworkCriterionNetworksZora EvmNetworkCriterionNetworks = "zora" ) +// Valid indicates whether the value is a known member of the EvmNetworkCriterionNetworks enum. +func (e EvmNetworkCriterionNetworks) Valid() bool { + switch e { + case EvmNetworkCriterionNetworksArbitrum: + return true + case EvmNetworkCriterionNetworksArbitrumSepolia: + return true + case EvmNetworkCriterionNetworksAvalanche: + return true + case EvmNetworkCriterionNetworksBase: + return true + case EvmNetworkCriterionNetworksBaseSepolia: + return true + case EvmNetworkCriterionNetworksBnb: + return true + case EvmNetworkCriterionNetworksEthereum: + return true + case EvmNetworkCriterionNetworksEthereumSepolia: + return true + case EvmNetworkCriterionNetworksOptimism: + return true + case EvmNetworkCriterionNetworksPolygon: + return true + case EvmNetworkCriterionNetworksWorld: + return true + case EvmNetworkCriterionNetworksWorldSepolia: + return true + case EvmNetworkCriterionNetworksZora: + return true + default: + return false + } +} + // Defines values for EvmNetworkCriterionOperator. const ( EvmNetworkCriterionOperatorIn EvmNetworkCriterionOperator = "in" EvmNetworkCriterionOperatorNotIn EvmNetworkCriterionOperator = "not in" ) +// Valid indicates whether the value is a known member of the EvmNetworkCriterionOperator enum. +func (e EvmNetworkCriterionOperator) Valid() bool { + switch e { + case EvmNetworkCriterionOperatorIn: + return true + case EvmNetworkCriterionOperatorNotIn: + return true + default: + return false + } +} + // Defines values for EvmNetworkCriterionType. const ( EvmNetwork EvmNetworkCriterionType = "evmNetwork" ) +// Valid indicates whether the value is a known member of the EvmNetworkCriterionType enum. +func (e EvmNetworkCriterionType) Valid() bool { + switch e { + case EvmNetwork: + return true + default: + return false + } +} + // Defines values for EvmSwapsNetwork. const ( EvmSwapsNetworkArbitrum EvmSwapsNetwork = "arbitrum" @@ -240,21 +656,69 @@ const ( EvmSwapsNetworkPolygon EvmSwapsNetwork = "polygon" ) +// Valid indicates whether the value is a known member of the EvmSwapsNetwork enum. +func (e EvmSwapsNetwork) Valid() bool { + switch e { + case EvmSwapsNetworkArbitrum: + return true + case EvmSwapsNetworkBase: + return true + case EvmSwapsNetworkEthereum: + return true + case EvmSwapsNetworkOptimism: + return true + case EvmSwapsNetworkPolygon: + return true + default: + return false + } +} + // Defines values for EvmTypedAddressConditionOperator. const ( EvmTypedAddressConditionOperatorIn EvmTypedAddressConditionOperator = "in" EvmTypedAddressConditionOperatorNotIn EvmTypedAddressConditionOperator = "not in" ) +// Valid indicates whether the value is a known member of the EvmTypedAddressConditionOperator enum. +func (e EvmTypedAddressConditionOperator) Valid() bool { + switch e { + case EvmTypedAddressConditionOperatorIn: + return true + case EvmTypedAddressConditionOperatorNotIn: + return true + default: + return false + } +} + // Defines values for EvmTypedNumericalConditionOperator. const ( - EvmTypedNumericalConditionOperatorEmpty EvmTypedNumericalConditionOperator = ">" - EvmTypedNumericalConditionOperatorEqualEqual EvmTypedNumericalConditionOperator = "==" - EvmTypedNumericalConditionOperatorN1 EvmTypedNumericalConditionOperator = ">=" - EvmTypedNumericalConditionOperatorN2 EvmTypedNumericalConditionOperator = "<" - EvmTypedNumericalConditionOperatorN3 EvmTypedNumericalConditionOperator = "<=" + EvmTypedNumericalConditionOperatorEqualEqual EvmTypedNumericalConditionOperator = "==" + EvmTypedNumericalConditionOperatorGreaterThan EvmTypedNumericalConditionOperator = ">" + EvmTypedNumericalConditionOperatorGreaterThanEqual EvmTypedNumericalConditionOperator = ">=" + EvmTypedNumericalConditionOperatorLessThan EvmTypedNumericalConditionOperator = "<" + EvmTypedNumericalConditionOperatorLessThanEqual EvmTypedNumericalConditionOperator = "<=" ) +// Valid indicates whether the value is a known member of the EvmTypedNumericalConditionOperator enum. +func (e EvmTypedNumericalConditionOperator) Valid() bool { + switch e { + case EvmTypedNumericalConditionOperatorEqualEqual: + return true + case EvmTypedNumericalConditionOperatorGreaterThan: + return true + case EvmTypedNumericalConditionOperatorGreaterThanEqual: + return true + case EvmTypedNumericalConditionOperatorLessThan: + return true + case EvmTypedNumericalConditionOperatorLessThanEqual: + return true + default: + return false + } +} + // Defines values for EvmUserOperationStatus. const ( EvmUserOperationStatusBroadcast EvmUserOperationStatus = "broadcast" @@ -265,6 +729,26 @@ const ( EvmUserOperationStatusSigned EvmUserOperationStatus = "signed" ) +// Valid indicates whether the value is a known member of the EvmUserOperationStatus enum. +func (e EvmUserOperationStatus) Valid() bool { + switch e { + case EvmUserOperationStatusBroadcast: + return true + case EvmUserOperationStatusComplete: + return true + case EvmUserOperationStatusDropped: + return true + case EvmUserOperationStatusFailed: + return true + case EvmUserOperationStatusPending: + return true + case EvmUserOperationStatusSigned: + return true + default: + return false + } +} + // Defines values for EvmUserOperationNetwork. const ( EvmUserOperationNetworkArbitrum EvmUserOperationNetwork = "arbitrum" @@ -279,11 +763,49 @@ const ( EvmUserOperationNetworkZora EvmUserOperationNetwork = "zora" ) +// Valid indicates whether the value is a known member of the EvmUserOperationNetwork enum. +func (e EvmUserOperationNetwork) Valid() bool { + switch e { + case EvmUserOperationNetworkArbitrum: + return true + case EvmUserOperationNetworkAvalanche: + return true + case EvmUserOperationNetworkBase: + return true + case EvmUserOperationNetworkBaseSepolia: + return true + case EvmUserOperationNetworkBnb: + return true + case EvmUserOperationNetworkEthereum: + return true + case EvmUserOperationNetworkEthereumSepolia: + return true + case EvmUserOperationNetworkOptimism: + return true + case EvmUserOperationNetworkPolygon: + return true + case EvmUserOperationNetworkZora: + return true + default: + return false + } +} + // Defines values for GetSwapPriceResponseLiquidityAvailable. const ( True GetSwapPriceResponseLiquidityAvailable = true ) +// Valid indicates whether the value is a known member of the GetSwapPriceResponseLiquidityAvailable enum. +func (e GetSwapPriceResponseLiquidityAvailable) Valid() bool { + switch e { + case True: + return true + default: + return false + } +} + // Defines values for KnownAbiType. const ( Erc1155 KnownAbiType = "erc1155" @@ -291,6 +813,20 @@ const ( Erc721 KnownAbiType = "erc721" ) +// Valid indicates whether the value is a known member of the KnownAbiType enum. +func (e KnownAbiType) Valid() bool { + switch e { + case Erc1155: + return true + case Erc20: + return true + case Erc721: + return true + default: + return false + } +} + // Defines values for KnownIdlType. const ( AssociatedTokenProgram KnownIdlType = "AssociatedTokenProgram" @@ -298,6 +834,20 @@ const ( TokenProgram KnownIdlType = "TokenProgram" ) +// Valid indicates whether the value is a known member of the KnownIdlType enum. +func (e KnownIdlType) Valid() bool { + switch e { + case AssociatedTokenProgram: + return true + case SystemProgram: + return true + case TokenProgram: + return true + default: + return false + } +} + // Defines values for ListEvmTokenBalancesNetwork. const ( ListEvmTokenBalancesNetworkBase ListEvmTokenBalancesNetwork = "base" @@ -305,37 +855,113 @@ const ( ListEvmTokenBalancesNetworkEthereum ListEvmTokenBalancesNetwork = "ethereum" ) +// Valid indicates whether the value is a known member of the ListEvmTokenBalancesNetwork enum. +func (e ListEvmTokenBalancesNetwork) Valid() bool { + switch e { + case ListEvmTokenBalancesNetworkBase: + return true + case ListEvmTokenBalancesNetworkBaseSepolia: + return true + case ListEvmTokenBalancesNetworkEthereum: + return true + default: + return false + } +} + // Defines values for ListSolanaTokenBalancesNetwork. const ( ListSolanaTokenBalancesNetworkSolana ListSolanaTokenBalancesNetwork = "solana" ListSolanaTokenBalancesNetworkSolanaDevnet ListSolanaTokenBalancesNetwork = "solana-devnet" ) +// Valid indicates whether the value is a known member of the ListSolanaTokenBalancesNetwork enum. +func (e ListSolanaTokenBalancesNetwork) Valid() bool { + switch e { + case ListSolanaTokenBalancesNetworkSolana: + return true + case ListSolanaTokenBalancesNetworkSolanaDevnet: + return true + default: + return false + } +} + // Defines values for MintAddressCriterionOperator. const ( MintAddressCriterionOperatorIn MintAddressCriterionOperator = "in" MintAddressCriterionOperatorNotIn MintAddressCriterionOperator = "not in" ) +// Valid indicates whether the value is a known member of the MintAddressCriterionOperator enum. +func (e MintAddressCriterionOperator) Valid() bool { + switch e { + case MintAddressCriterionOperatorIn: + return true + case MintAddressCriterionOperatorNotIn: + return true + default: + return false + } +} + // Defines values for MintAddressCriterionType. const ( MintAddress MintAddressCriterionType = "mintAddress" ) +// Valid indicates whether the value is a known member of the MintAddressCriterionType enum. +func (e MintAddressCriterionType) Valid() bool { + switch e { + case MintAddress: + return true + default: + return false + } +} + // Defines values for NetUSDChangeCriterionOperator. const ( - NetUSDChangeCriterionOperatorEmpty NetUSDChangeCriterionOperator = ">" - NetUSDChangeCriterionOperatorEqualEqual NetUSDChangeCriterionOperator = "==" - NetUSDChangeCriterionOperatorN1 NetUSDChangeCriterionOperator = ">=" - NetUSDChangeCriterionOperatorN2 NetUSDChangeCriterionOperator = "<" - NetUSDChangeCriterionOperatorN3 NetUSDChangeCriterionOperator = "<=" + NetUSDChangeCriterionOperatorEqualEqual NetUSDChangeCriterionOperator = "==" + NetUSDChangeCriterionOperatorGreaterThan NetUSDChangeCriterionOperator = ">" + NetUSDChangeCriterionOperatorGreaterThanEqual NetUSDChangeCriterionOperator = ">=" + NetUSDChangeCriterionOperatorLessThan NetUSDChangeCriterionOperator = "<" + NetUSDChangeCriterionOperatorLessThanEqual NetUSDChangeCriterionOperator = "<=" ) +// Valid indicates whether the value is a known member of the NetUSDChangeCriterionOperator enum. +func (e NetUSDChangeCriterionOperator) Valid() bool { + switch e { + case NetUSDChangeCriterionOperatorEqualEqual: + return true + case NetUSDChangeCriterionOperatorGreaterThan: + return true + case NetUSDChangeCriterionOperatorGreaterThanEqual: + return true + case NetUSDChangeCriterionOperatorLessThan: + return true + case NetUSDChangeCriterionOperatorLessThanEqual: + return true + default: + return false + } +} + // Defines values for NetUSDChangeCriterionType. const ( NetUSDChange NetUSDChangeCriterionType = "netUSDChange" ) +// Valid indicates whether the value is a known member of the NetUSDChangeCriterionType enum. +func (e NetUSDChangeCriterionType) Valid() bool { + switch e { + case NetUSDChange: + return true + default: + return false + } +} + // Defines values for OAuth2ProviderType. const ( Apple OAuth2ProviderType = "apple" @@ -345,6 +971,24 @@ const ( X OAuth2ProviderType = "x" ) +// Valid indicates whether the value is a known member of the OAuth2ProviderType enum. +func (e OAuth2ProviderType) Valid() bool { + switch e { + case Apple: + return true + case Github: + return true + case Google: + return true + case Telegram: + return true + case X: + return true + default: + return false + } +} + // Defines values for OnchainDataResultSchemaColumnsType. const ( Bool OnchainDataResultSchemaColumnsType = "Bool" @@ -369,24 +1013,108 @@ const ( UUID OnchainDataResultSchemaColumnsType = "UUID" ) +// Valid indicates whether the value is a known member of the OnchainDataResultSchemaColumnsType enum. +func (e OnchainDataResultSchemaColumnsType) Valid() bool { + switch e { + case Bool: + return true + case Date: + return true + case DateTime: + return true + case DateTime64: + return true + case Float32: + return true + case Float64: + return true + case Int128: + return true + case Int16: + return true + case Int256: + return true + case Int32: + return true + case Int64: + return true + case Int8: + return true + case String: + return true + case UInt128: + return true + case UInt16: + return true + case UInt256: + return true + case UInt32: + return true + case UInt64: + return true + case UInt8: + return true + case UUID: + return true + default: + return false + } +} + // Defines values for OnrampLimitType. const ( LifetimeTransactions OnrampLimitType = "lifetime_transactions" WeeklySpending OnrampLimitType = "weekly_spending" ) +// Valid indicates whether the value is a known member of the OnrampLimitType enum. +func (e OnrampLimitType) Valid() bool { + switch e { + case LifetimeTransactions: + return true + case WeeklySpending: + return true + default: + return false + } +} + // Defines values for OnrampOrderFeeType. const ( FEETYPEEXCHANGE OnrampOrderFeeType = "FEE_TYPE_EXCHANGE" FEETYPENETWORK OnrampOrderFeeType = "FEE_TYPE_NETWORK" ) +// Valid indicates whether the value is a known member of the OnrampOrderFeeType enum. +func (e OnrampOrderFeeType) Valid() bool { + switch e { + case FEETYPEEXCHANGE: + return true + case FEETYPENETWORK: + return true + default: + return false + } +} + // Defines values for OnrampOrderPaymentMethodTypeId. const ( GUESTCHECKOUTAPPLEPAY OnrampOrderPaymentMethodTypeId = "GUEST_CHECKOUT_APPLE_PAY" GUESTCHECKOUTGOOGLEPAY OnrampOrderPaymentMethodTypeId = "GUEST_CHECKOUT_GOOGLE_PAY" ) +// Valid indicates whether the value is a known member of the OnrampOrderPaymentMethodTypeId enum. +func (e OnrampOrderPaymentMethodTypeId) Valid() bool { + switch e { + case GUESTCHECKOUTAPPLEPAY: + return true + case GUESTCHECKOUTGOOGLEPAY: + return true + default: + return false + } +} + // Defines values for OnrampOrderStatus. const ( ONRAMPORDERSTATUSCOMPLETED OnrampOrderStatus = "ONRAMP_ORDER_STATUS_COMPLETED" @@ -396,11 +1124,39 @@ const ( ONRAMPORDERSTATUSPROCESSING OnrampOrderStatus = "ONRAMP_ORDER_STATUS_PROCESSING" ) +// Valid indicates whether the value is a known member of the OnrampOrderStatus enum. +func (e OnrampOrderStatus) Valid() bool { + switch e { + case ONRAMPORDERSTATUSCOMPLETED: + return true + case ONRAMPORDERSTATUSFAILED: + return true + case ONRAMPORDERSTATUSPENDINGAUTH: + return true + case ONRAMPORDERSTATUSPENDINGPAYMENT: + return true + case ONRAMPORDERSTATUSPROCESSING: + return true + default: + return false + } +} + // Defines values for OnrampPaymentLinkType. const ( PAYMENTLINKTYPEAPPLEPAYBUTTON OnrampPaymentLinkType = "PAYMENT_LINK_TYPE_APPLE_PAY_BUTTON" ) +// Valid indicates whether the value is a known member of the OnrampPaymentLinkType enum. +func (e OnrampPaymentLinkType) Valid() bool { + switch e { + case PAYMENTLINKTYPEAPPLEPAYBUTTON: + return true + default: + return false + } +} + // Defines values for OnrampQuotePaymentMethodTypeId. const ( ACH OnrampQuotePaymentMethodTypeId = "ACH" @@ -411,319 +1167,965 @@ const ( PAYPAL OnrampQuotePaymentMethodTypeId = "PAYPAL" ) +// Valid indicates whether the value is a known member of the OnrampQuotePaymentMethodTypeId enum. +func (e OnrampQuotePaymentMethodTypeId) Valid() bool { + switch e { + case ACH: + return true + case APPLEPAY: + return true + case CARD: + return true + case CRYPTOWALLET: + return true + case FIATWALLET: + return true + case PAYPAL: + return true + default: + return false + } +} + // Defines values for OnrampUserIdType. const ( PhoneNumber OnrampUserIdType = "phone_number" ) +// Valid indicates whether the value is a known member of the OnrampUserIdType enum. +func (e OnrampUserIdType) Valid() bool { + switch e { + case PhoneNumber: + return true + default: + return false + } +} + // Defines values for PolicyScope. const ( PolicyScopeAccount PolicyScope = "account" PolicyScopeProject PolicyScope = "project" ) +// Valid indicates whether the value is a known member of the PolicyScope enum. +func (e PolicyScope) Valid() bool { + switch e { + case PolicyScopeAccount: + return true + case PolicyScopeProject: + return true + default: + return false + } +} + // Defines values for PrepareUserOperationRuleAction. const ( PrepareUserOperationRuleActionAccept PrepareUserOperationRuleAction = "accept" PrepareUserOperationRuleActionReject PrepareUserOperationRuleAction = "reject" ) +// Valid indicates whether the value is a known member of the PrepareUserOperationRuleAction enum. +func (e PrepareUserOperationRuleAction) Valid() bool { + switch e { + case PrepareUserOperationRuleActionAccept: + return true + case PrepareUserOperationRuleActionReject: + return true + default: + return false + } +} + // Defines values for PrepareUserOperationRuleOperation. const ( PrepareUserOperation PrepareUserOperationRuleOperation = "prepareUserOperation" ) +// Valid indicates whether the value is a known member of the PrepareUserOperationRuleOperation enum. +func (e PrepareUserOperationRuleOperation) Valid() bool { + switch e { + case PrepareUserOperation: + return true + default: + return false + } +} + // Defines values for ProgramIdCriterionOperator. const ( ProgramIdCriterionOperatorIn ProgramIdCriterionOperator = "in" ProgramIdCriterionOperatorNotIn ProgramIdCriterionOperator = "not in" ) +// Valid indicates whether the value is a known member of the ProgramIdCriterionOperator enum. +func (e ProgramIdCriterionOperator) Valid() bool { + switch e { + case ProgramIdCriterionOperatorIn: + return true + case ProgramIdCriterionOperatorNotIn: + return true + default: + return false + } +} + // Defines values for ProgramIdCriterionType. const ( ProgramId ProgramIdCriterionType = "programId" ) +// Valid indicates whether the value is a known member of the ProgramIdCriterionType enum. +func (e ProgramIdCriterionType) Valid() bool { + switch e { + case ProgramId: + return true + default: + return false + } +} + // Defines values for SendEndUserEvmTransactionRuleAction. const ( SendEndUserEvmTransactionRuleActionAccept SendEndUserEvmTransactionRuleAction = "accept" SendEndUserEvmTransactionRuleActionReject SendEndUserEvmTransactionRuleAction = "reject" ) +// Valid indicates whether the value is a known member of the SendEndUserEvmTransactionRuleAction enum. +func (e SendEndUserEvmTransactionRuleAction) Valid() bool { + switch e { + case SendEndUserEvmTransactionRuleActionAccept: + return true + case SendEndUserEvmTransactionRuleActionReject: + return true + default: + return false + } +} + // Defines values for SendEndUserEvmTransactionRuleOperation. const ( SendEndUserEvmTransaction SendEndUserEvmTransactionRuleOperation = "sendEndUserEvmTransaction" ) +// Valid indicates whether the value is a known member of the SendEndUserEvmTransactionRuleOperation enum. +func (e SendEndUserEvmTransactionRuleOperation) Valid() bool { + switch e { + case SendEndUserEvmTransaction: + return true + default: + return false + } +} + // Defines values for SendEndUserSolTransactionRuleAction. const ( SendEndUserSolTransactionRuleActionAccept SendEndUserSolTransactionRuleAction = "accept" SendEndUserSolTransactionRuleActionReject SendEndUserSolTransactionRuleAction = "reject" ) +// Valid indicates whether the value is a known member of the SendEndUserSolTransactionRuleAction enum. +func (e SendEndUserSolTransactionRuleAction) Valid() bool { + switch e { + case SendEndUserSolTransactionRuleActionAccept: + return true + case SendEndUserSolTransactionRuleActionReject: + return true + default: + return false + } +} + // Defines values for SendEndUserSolTransactionRuleOperation. const ( SendEndUserSolTransaction SendEndUserSolTransactionRuleOperation = "sendEndUserSolTransaction" ) +// Valid indicates whether the value is a known member of the SendEndUserSolTransactionRuleOperation enum. +func (e SendEndUserSolTransactionRuleOperation) Valid() bool { + switch e { + case SendEndUserSolTransaction: + return true + default: + return false + } +} + // Defines values for SendEvmTransactionRuleAction. const ( SendEvmTransactionRuleActionAccept SendEvmTransactionRuleAction = "accept" SendEvmTransactionRuleActionReject SendEvmTransactionRuleAction = "reject" ) +// Valid indicates whether the value is a known member of the SendEvmTransactionRuleAction enum. +func (e SendEvmTransactionRuleAction) Valid() bool { + switch e { + case SendEvmTransactionRuleActionAccept: + return true + case SendEvmTransactionRuleActionReject: + return true + default: + return false + } +} + // Defines values for SendEvmTransactionRuleOperation. const ( SendEvmTransaction SendEvmTransactionRuleOperation = "sendEvmTransaction" ) +// Valid indicates whether the value is a known member of the SendEvmTransactionRuleOperation enum. +func (e SendEvmTransactionRuleOperation) Valid() bool { + switch e { + case SendEvmTransaction: + return true + default: + return false + } +} + // Defines values for SendSolTransactionRuleAction. const ( SendSolTransactionRuleActionAccept SendSolTransactionRuleAction = "accept" SendSolTransactionRuleActionReject SendSolTransactionRuleAction = "reject" ) +// Valid indicates whether the value is a known member of the SendSolTransactionRuleAction enum. +func (e SendSolTransactionRuleAction) Valid() bool { + switch e { + case SendSolTransactionRuleActionAccept: + return true + case SendSolTransactionRuleActionReject: + return true + default: + return false + } +} + // Defines values for SendSolTransactionRuleOperation. const ( SendSolTransaction SendSolTransactionRuleOperation = "sendSolTransaction" ) +// Valid indicates whether the value is a known member of the SendSolTransactionRuleOperation enum. +func (e SendSolTransactionRuleOperation) Valid() bool { + switch e { + case SendSolTransaction: + return true + default: + return false + } +} + // Defines values for SendUserOperationRuleAction. const ( SendUserOperationRuleActionAccept SendUserOperationRuleAction = "accept" SendUserOperationRuleActionReject SendUserOperationRuleAction = "reject" ) +// Valid indicates whether the value is a known member of the SendUserOperationRuleAction enum. +func (e SendUserOperationRuleAction) Valid() bool { + switch e { + case SendUserOperationRuleActionAccept: + return true + case SendUserOperationRuleActionReject: + return true + default: + return false + } +} + // Defines values for SendUserOperationRuleOperation. const ( SendUserOperation SendUserOperationRuleOperation = "sendUserOperation" ) +// Valid indicates whether the value is a known member of the SendUserOperationRuleOperation enum. +func (e SendUserOperationRuleOperation) Valid() bool { + switch e { + case SendUserOperation: + return true + default: + return false + } +} + // Defines values for SignEndUserEvmHashRuleAction. const ( SignEndUserEvmHashRuleActionAccept SignEndUserEvmHashRuleAction = "accept" SignEndUserEvmHashRuleActionReject SignEndUserEvmHashRuleAction = "reject" ) +// Valid indicates whether the value is a known member of the SignEndUserEvmHashRuleAction enum. +func (e SignEndUserEvmHashRuleAction) Valid() bool { + switch e { + case SignEndUserEvmHashRuleActionAccept: + return true + case SignEndUserEvmHashRuleActionReject: + return true + default: + return false + } +} + // Defines values for SignEndUserEvmHashRuleOperation. const ( SignEndUserEvmHash SignEndUserEvmHashRuleOperation = "signEndUserEvmHash" ) +// Valid indicates whether the value is a known member of the SignEndUserEvmHashRuleOperation enum. +func (e SignEndUserEvmHashRuleOperation) Valid() bool { + switch e { + case SignEndUserEvmHash: + return true + default: + return false + } +} + // Defines values for SignEndUserEvmMessageRuleAction. const ( SignEndUserEvmMessageRuleActionAccept SignEndUserEvmMessageRuleAction = "accept" SignEndUserEvmMessageRuleActionReject SignEndUserEvmMessageRuleAction = "reject" ) +// Valid indicates whether the value is a known member of the SignEndUserEvmMessageRuleAction enum. +func (e SignEndUserEvmMessageRuleAction) Valid() bool { + switch e { + case SignEndUserEvmMessageRuleActionAccept: + return true + case SignEndUserEvmMessageRuleActionReject: + return true + default: + return false + } +} + // Defines values for SignEndUserEvmMessageRuleOperation. const ( SignEndUserEvmMessage SignEndUserEvmMessageRuleOperation = "signEndUserEvmMessage" ) +// Valid indicates whether the value is a known member of the SignEndUserEvmMessageRuleOperation enum. +func (e SignEndUserEvmMessageRuleOperation) Valid() bool { + switch e { + case SignEndUserEvmMessage: + return true + default: + return false + } +} + // Defines values for SignEndUserEvmTransactionRuleAction. const ( SignEndUserEvmTransactionRuleActionAccept SignEndUserEvmTransactionRuleAction = "accept" SignEndUserEvmTransactionRuleActionReject SignEndUserEvmTransactionRuleAction = "reject" ) +// Valid indicates whether the value is a known member of the SignEndUserEvmTransactionRuleAction enum. +func (e SignEndUserEvmTransactionRuleAction) Valid() bool { + switch e { + case SignEndUserEvmTransactionRuleActionAccept: + return true + case SignEndUserEvmTransactionRuleActionReject: + return true + default: + return false + } +} + // Defines values for SignEndUserEvmTransactionRuleOperation. const ( SignEndUserEvmTransaction SignEndUserEvmTransactionRuleOperation = "signEndUserEvmTransaction" ) +// Valid indicates whether the value is a known member of the SignEndUserEvmTransactionRuleOperation enum. +func (e SignEndUserEvmTransactionRuleOperation) Valid() bool { + switch e { + case SignEndUserEvmTransaction: + return true + default: + return false + } +} + // Defines values for SignEndUserEvmTypedDataRuleAction. const ( SignEndUserEvmTypedDataRuleActionAccept SignEndUserEvmTypedDataRuleAction = "accept" SignEndUserEvmTypedDataRuleActionReject SignEndUserEvmTypedDataRuleAction = "reject" ) +// Valid indicates whether the value is a known member of the SignEndUserEvmTypedDataRuleAction enum. +func (e SignEndUserEvmTypedDataRuleAction) Valid() bool { + switch e { + case SignEndUserEvmTypedDataRuleActionAccept: + return true + case SignEndUserEvmTypedDataRuleActionReject: + return true + default: + return false + } +} + // Defines values for SignEndUserEvmTypedDataRuleOperation. const ( SignEndUserEvmTypedData SignEndUserEvmTypedDataRuleOperation = "signEndUserEvmTypedData" ) +// Valid indicates whether the value is a known member of the SignEndUserEvmTypedDataRuleOperation enum. +func (e SignEndUserEvmTypedDataRuleOperation) Valid() bool { + switch e { + case SignEndUserEvmTypedData: + return true + default: + return false + } +} + // Defines values for SignEndUserSolMessageRuleAction. const ( SignEndUserSolMessageRuleActionAccept SignEndUserSolMessageRuleAction = "accept" SignEndUserSolMessageRuleActionReject SignEndUserSolMessageRuleAction = "reject" ) +// Valid indicates whether the value is a known member of the SignEndUserSolMessageRuleAction enum. +func (e SignEndUserSolMessageRuleAction) Valid() bool { + switch e { + case SignEndUserSolMessageRuleActionAccept: + return true + case SignEndUserSolMessageRuleActionReject: + return true + default: + return false + } +} + // Defines values for SignEndUserSolMessageRuleOperation. const ( SignEndUserSolMessage SignEndUserSolMessageRuleOperation = "signEndUserSolMessage" ) +// Valid indicates whether the value is a known member of the SignEndUserSolMessageRuleOperation enum. +func (e SignEndUserSolMessageRuleOperation) Valid() bool { + switch e { + case SignEndUserSolMessage: + return true + default: + return false + } +} + // Defines values for SignEndUserSolTransactionRuleAction. const ( SignEndUserSolTransactionRuleActionAccept SignEndUserSolTransactionRuleAction = "accept" SignEndUserSolTransactionRuleActionReject SignEndUserSolTransactionRuleAction = "reject" ) +// Valid indicates whether the value is a known member of the SignEndUserSolTransactionRuleAction enum. +func (e SignEndUserSolTransactionRuleAction) Valid() bool { + switch e { + case SignEndUserSolTransactionRuleActionAccept: + return true + case SignEndUserSolTransactionRuleActionReject: + return true + default: + return false + } +} + // Defines values for SignEndUserSolTransactionRuleOperation. const ( SignEndUserSolTransaction SignEndUserSolTransactionRuleOperation = "signEndUserSolTransaction" ) +// Valid indicates whether the value is a known member of the SignEndUserSolTransactionRuleOperation enum. +func (e SignEndUserSolTransactionRuleOperation) Valid() bool { + switch e { + case SignEndUserSolTransaction: + return true + default: + return false + } +} + // Defines values for SignEvmHashRuleAction. const ( SignEvmHashRuleActionAccept SignEvmHashRuleAction = "accept" SignEvmHashRuleActionReject SignEvmHashRuleAction = "reject" ) +// Valid indicates whether the value is a known member of the SignEvmHashRuleAction enum. +func (e SignEvmHashRuleAction) Valid() bool { + switch e { + case SignEvmHashRuleActionAccept: + return true + case SignEvmHashRuleActionReject: + return true + default: + return false + } +} + // Defines values for SignEvmHashRuleOperation. const ( SignEvmHash SignEvmHashRuleOperation = "signEvmHash" ) +// Valid indicates whether the value is a known member of the SignEvmHashRuleOperation enum. +func (e SignEvmHashRuleOperation) Valid() bool { + switch e { + case SignEvmHash: + return true + default: + return false + } +} + // Defines values for SignEvmMessageRuleAction. const ( SignEvmMessageRuleActionAccept SignEvmMessageRuleAction = "accept" SignEvmMessageRuleActionReject SignEvmMessageRuleAction = "reject" ) +// Valid indicates whether the value is a known member of the SignEvmMessageRuleAction enum. +func (e SignEvmMessageRuleAction) Valid() bool { + switch e { + case SignEvmMessageRuleActionAccept: + return true + case SignEvmMessageRuleActionReject: + return true + default: + return false + } +} + // Defines values for SignEvmMessageRuleOperation. const ( SignEvmMessage SignEvmMessageRuleOperation = "signEvmMessage" ) +// Valid indicates whether the value is a known member of the SignEvmMessageRuleOperation enum. +func (e SignEvmMessageRuleOperation) Valid() bool { + switch e { + case SignEvmMessage: + return true + default: + return false + } +} + // Defines values for SignEvmTransactionRuleAction. const ( SignEvmTransactionRuleActionAccept SignEvmTransactionRuleAction = "accept" SignEvmTransactionRuleActionReject SignEvmTransactionRuleAction = "reject" ) +// Valid indicates whether the value is a known member of the SignEvmTransactionRuleAction enum. +func (e SignEvmTransactionRuleAction) Valid() bool { + switch e { + case SignEvmTransactionRuleActionAccept: + return true + case SignEvmTransactionRuleActionReject: + return true + default: + return false + } +} + // Defines values for SignEvmTransactionRuleOperation. const ( SignEvmTransaction SignEvmTransactionRuleOperation = "signEvmTransaction" ) +// Valid indicates whether the value is a known member of the SignEvmTransactionRuleOperation enum. +func (e SignEvmTransactionRuleOperation) Valid() bool { + switch e { + case SignEvmTransaction: + return true + default: + return false + } +} + // Defines values for SignEvmTypedDataFieldCriterionType. const ( EvmTypedDataField SignEvmTypedDataFieldCriterionType = "evmTypedDataField" ) +// Valid indicates whether the value is a known member of the SignEvmTypedDataFieldCriterionType enum. +func (e SignEvmTypedDataFieldCriterionType) Valid() bool { + switch e { + case EvmTypedDataField: + return true + default: + return false + } +} + // Defines values for SignEvmTypedDataRuleAction. const ( SignEvmTypedDataRuleActionAccept SignEvmTypedDataRuleAction = "accept" SignEvmTypedDataRuleActionReject SignEvmTypedDataRuleAction = "reject" ) +// Valid indicates whether the value is a known member of the SignEvmTypedDataRuleAction enum. +func (e SignEvmTypedDataRuleAction) Valid() bool { + switch e { + case SignEvmTypedDataRuleActionAccept: + return true + case SignEvmTypedDataRuleActionReject: + return true + default: + return false + } +} + // Defines values for SignEvmTypedDataRuleOperation. const ( SignEvmTypedData SignEvmTypedDataRuleOperation = "signEvmTypedData" ) +// Valid indicates whether the value is a known member of the SignEvmTypedDataRuleOperation enum. +func (e SignEvmTypedDataRuleOperation) Valid() bool { + switch e { + case SignEvmTypedData: + return true + default: + return false + } +} + // Defines values for SignEvmTypedDataVerifyingContractCriterionOperator. const ( SignEvmTypedDataVerifyingContractCriterionOperatorIn SignEvmTypedDataVerifyingContractCriterionOperator = "in" SignEvmTypedDataVerifyingContractCriterionOperatorNotIn SignEvmTypedDataVerifyingContractCriterionOperator = "not in" ) +// Valid indicates whether the value is a known member of the SignEvmTypedDataVerifyingContractCriterionOperator enum. +func (e SignEvmTypedDataVerifyingContractCriterionOperator) Valid() bool { + switch e { + case SignEvmTypedDataVerifyingContractCriterionOperatorIn: + return true + case SignEvmTypedDataVerifyingContractCriterionOperatorNotIn: + return true + default: + return false + } +} + // Defines values for SignEvmTypedDataVerifyingContractCriterionType. const ( EvmTypedDataVerifyingContract SignEvmTypedDataVerifyingContractCriterionType = "evmTypedDataVerifyingContract" ) +// Valid indicates whether the value is a known member of the SignEvmTypedDataVerifyingContractCriterionType enum. +func (e SignEvmTypedDataVerifyingContractCriterionType) Valid() bool { + switch e { + case EvmTypedDataVerifyingContract: + return true + default: + return false + } +} + // Defines values for SignSolMessageRuleAction. const ( SignSolMessageRuleActionAccept SignSolMessageRuleAction = "accept" SignSolMessageRuleActionReject SignSolMessageRuleAction = "reject" ) +// Valid indicates whether the value is a known member of the SignSolMessageRuleAction enum. +func (e SignSolMessageRuleAction) Valid() bool { + switch e { + case SignSolMessageRuleActionAccept: + return true + case SignSolMessageRuleActionReject: + return true + default: + return false + } +} + // Defines values for SignSolMessageRuleOperation. const ( SignSolMessage SignSolMessageRuleOperation = "signSolMessage" ) +// Valid indicates whether the value is a known member of the SignSolMessageRuleOperation enum. +func (e SignSolMessageRuleOperation) Valid() bool { + switch e { + case SignSolMessage: + return true + default: + return false + } +} + // Defines values for SignSolTransactionRuleAction. const ( SignSolTransactionRuleActionAccept SignSolTransactionRuleAction = "accept" SignSolTransactionRuleActionReject SignSolTransactionRuleAction = "reject" ) +// Valid indicates whether the value is a known member of the SignSolTransactionRuleAction enum. +func (e SignSolTransactionRuleAction) Valid() bool { + switch e { + case SignSolTransactionRuleActionAccept: + return true + case SignSolTransactionRuleActionReject: + return true + default: + return false + } +} + // Defines values for SignSolTransactionRuleOperation. const ( SignSolTransaction SignSolTransactionRuleOperation = "signSolTransaction" ) +// Valid indicates whether the value is a known member of the SignSolTransactionRuleOperation enum. +func (e SignSolTransactionRuleOperation) Valid() bool { + switch e { + case SignSolTransaction: + return true + default: + return false + } +} + // Defines values for SiweAuthenticationType. const ( Siwe SiweAuthenticationType = "siwe" ) +// Valid indicates whether the value is a known member of the SiweAuthenticationType enum. +func (e SiweAuthenticationType) Valid() bool { + switch e { + case Siwe: + return true + default: + return false + } +} + // Defines values for SmsAuthenticationType. const ( Sms SmsAuthenticationType = "sms" ) +// Valid indicates whether the value is a known member of the SmsAuthenticationType enum. +func (e SmsAuthenticationType) Valid() bool { + switch e { + case Sms: + return true + default: + return false + } +} + // Defines values for SolAddressCriterionOperator. const ( SolAddressCriterionOperatorIn SolAddressCriterionOperator = "in" SolAddressCriterionOperatorNotIn SolAddressCriterionOperator = "not in" ) +// Valid indicates whether the value is a known member of the SolAddressCriterionOperator enum. +func (e SolAddressCriterionOperator) Valid() bool { + switch e { + case SolAddressCriterionOperatorIn: + return true + case SolAddressCriterionOperatorNotIn: + return true + default: + return false + } +} + // Defines values for SolAddressCriterionType. const ( SolAddress SolAddressCriterionType = "solAddress" ) +// Valid indicates whether the value is a known member of the SolAddressCriterionType enum. +func (e SolAddressCriterionType) Valid() bool { + switch e { + case SolAddress: + return true + default: + return false + } +} + // Defines values for SolDataCriterionType. const ( SolData SolDataCriterionType = "solData" ) +// Valid indicates whether the value is a known member of the SolDataCriterionType enum. +func (e SolDataCriterionType) Valid() bool { + switch e { + case SolData: + return true + default: + return false + } +} + // Defines values for SolDataParameterConditionOperator. const ( - SolDataParameterConditionOperatorEmpty SolDataParameterConditionOperator = ">" - SolDataParameterConditionOperatorEqualEqual SolDataParameterConditionOperator = "==" - SolDataParameterConditionOperatorN1 SolDataParameterConditionOperator = ">=" - SolDataParameterConditionOperatorN2 SolDataParameterConditionOperator = "<" - SolDataParameterConditionOperatorN3 SolDataParameterConditionOperator = "<=" + SolDataParameterConditionOperatorEqualEqual SolDataParameterConditionOperator = "==" + SolDataParameterConditionOperatorGreaterThan SolDataParameterConditionOperator = ">" + SolDataParameterConditionOperatorGreaterThanEqual SolDataParameterConditionOperator = ">=" + SolDataParameterConditionOperatorLessThan SolDataParameterConditionOperator = "<" + SolDataParameterConditionOperatorLessThanEqual SolDataParameterConditionOperator = "<=" ) +// Valid indicates whether the value is a known member of the SolDataParameterConditionOperator enum. +func (e SolDataParameterConditionOperator) Valid() bool { + switch e { + case SolDataParameterConditionOperatorEqualEqual: + return true + case SolDataParameterConditionOperatorGreaterThan: + return true + case SolDataParameterConditionOperatorGreaterThanEqual: + return true + case SolDataParameterConditionOperatorLessThan: + return true + case SolDataParameterConditionOperatorLessThanEqual: + return true + default: + return false + } +} + // Defines values for SolDataParameterConditionListOperator. const ( SolDataParameterConditionListOperatorIn SolDataParameterConditionListOperator = "in" SolDataParameterConditionListOperatorNotIn SolDataParameterConditionListOperator = "not in" ) +// Valid indicates whether the value is a known member of the SolDataParameterConditionListOperator enum. +func (e SolDataParameterConditionListOperator) Valid() bool { + switch e { + case SolDataParameterConditionListOperatorIn: + return true + case SolDataParameterConditionListOperatorNotIn: + return true + default: + return false + } +} + // Defines values for SolMessageCriterionType. const ( SolMessage SolMessageCriterionType = "solMessage" ) +// Valid indicates whether the value is a known member of the SolMessageCriterionType enum. +func (e SolMessageCriterionType) Valid() bool { + switch e { + case SolMessage: + return true + default: + return false + } +} + // Defines values for SolNetworkCriterionNetworks. const ( SolNetworkCriterionNetworksSolana SolNetworkCriterionNetworks = "solana" SolNetworkCriterionNetworksSolanaDevnet SolNetworkCriterionNetworks = "solana-devnet" ) +// Valid indicates whether the value is a known member of the SolNetworkCriterionNetworks enum. +func (e SolNetworkCriterionNetworks) Valid() bool { + switch e { + case SolNetworkCriterionNetworksSolana: + return true + case SolNetworkCriterionNetworksSolanaDevnet: + return true + default: + return false + } +} + // Defines values for SolNetworkCriterionOperator. const ( SolNetworkCriterionOperatorIn SolNetworkCriterionOperator = "in" SolNetworkCriterionOperatorNotIn SolNetworkCriterionOperator = "not in" ) +// Valid indicates whether the value is a known member of the SolNetworkCriterionOperator enum. +func (e SolNetworkCriterionOperator) Valid() bool { + switch e { + case SolNetworkCriterionOperatorIn: + return true + case SolNetworkCriterionOperatorNotIn: + return true + default: + return false + } +} + // Defines values for SolNetworkCriterionType. const ( SolNetwork SolNetworkCriterionType = "solNetwork" ) +// Valid indicates whether the value is a known member of the SolNetworkCriterionType enum. +func (e SolNetworkCriterionType) Valid() bool { + switch e { + case SolNetwork: + return true + default: + return false + } +} + // Defines values for SolValueCriterionOperator. const ( - SolValueCriterionOperatorEmpty SolValueCriterionOperator = ">" - SolValueCriterionOperatorEqualEqual SolValueCriterionOperator = "==" - SolValueCriterionOperatorN1 SolValueCriterionOperator = ">=" - SolValueCriterionOperatorN2 SolValueCriterionOperator = "<" - SolValueCriterionOperatorN3 SolValueCriterionOperator = "<=" + SolValueCriterionOperatorEqualEqual SolValueCriterionOperator = "==" + SolValueCriterionOperatorGreaterThan SolValueCriterionOperator = ">" + SolValueCriterionOperatorGreaterThanEqual SolValueCriterionOperator = ">=" + SolValueCriterionOperatorLessThan SolValueCriterionOperator = "<" + SolValueCriterionOperatorLessThanEqual SolValueCriterionOperator = "<=" ) +// Valid indicates whether the value is a known member of the SolValueCriterionOperator enum. +func (e SolValueCriterionOperator) Valid() bool { + switch e { + case SolValueCriterionOperatorEqualEqual: + return true + case SolValueCriterionOperatorGreaterThan: + return true + case SolValueCriterionOperatorGreaterThanEqual: + return true + case SolValueCriterionOperatorLessThan: + return true + case SolValueCriterionOperatorLessThanEqual: + return true + default: + return false + } +} + // Defines values for SolValueCriterionType. const ( SolValue SolValueCriterionType = "solValue" ) +// Valid indicates whether the value is a known member of the SolValueCriterionType enum. +func (e SolValueCriterionType) Valid() bool { + switch e { + case SolValue: + return true + default: + return false + } +} + // Defines values for SpendPermissionNetwork. const ( SpendPermissionNetworkArbitrum SpendPermissionNetwork = "arbitrum" @@ -736,36 +2138,120 @@ const ( SpendPermissionNetworkPolygon SpendPermissionNetwork = "polygon" ) +// Valid indicates whether the value is a known member of the SpendPermissionNetwork enum. +func (e SpendPermissionNetwork) Valid() bool { + switch e { + case SpendPermissionNetworkArbitrum: + return true + case SpendPermissionNetworkAvalanche: + return true + case SpendPermissionNetworkBase: + return true + case SpendPermissionNetworkBaseSepolia: + return true + case SpendPermissionNetworkEthereum: + return true + case SpendPermissionNetworkEthereumSepolia: + return true + case SpendPermissionNetworkOptimism: + return true + case SpendPermissionNetworkPolygon: + return true + default: + return false + } +} + // Defines values for SplAddressCriterionOperator. const ( In SplAddressCriterionOperator = "in" NotIn SplAddressCriterionOperator = "not in" ) +// Valid indicates whether the value is a known member of the SplAddressCriterionOperator enum. +func (e SplAddressCriterionOperator) Valid() bool { + switch e { + case In: + return true + case NotIn: + return true + default: + return false + } +} + // Defines values for SplAddressCriterionType. const ( SplAddress SplAddressCriterionType = "splAddress" ) +// Valid indicates whether the value is a known member of the SplAddressCriterionType enum. +func (e SplAddressCriterionType) Valid() bool { + switch e { + case SplAddress: + return true + default: + return false + } +} + // Defines values for SplValueCriterionOperator. const ( - SplValueCriterionOperatorEmpty SplValueCriterionOperator = ">" - SplValueCriterionOperatorEqualEqual SplValueCriterionOperator = "==" - SplValueCriterionOperatorN1 SplValueCriterionOperator = ">=" - SplValueCriterionOperatorN2 SplValueCriterionOperator = "<" - SplValueCriterionOperatorN3 SplValueCriterionOperator = "<=" + EqualEqual SplValueCriterionOperator = "==" + GreaterThan SplValueCriterionOperator = ">" + GreaterThanEqual SplValueCriterionOperator = ">=" + LessThan SplValueCriterionOperator = "<" + LessThanEqual SplValueCriterionOperator = "<=" ) +// Valid indicates whether the value is a known member of the SplValueCriterionOperator enum. +func (e SplValueCriterionOperator) Valid() bool { + switch e { + case EqualEqual: + return true + case GreaterThan: + return true + case GreaterThanEqual: + return true + case LessThan: + return true + case LessThanEqual: + return true + default: + return false + } +} + // Defines values for SplValueCriterionType. const ( SplValue SplValueCriterionType = "splValue" ) +// Valid indicates whether the value is a known member of the SplValueCriterionType enum. +func (e SplValueCriterionType) Valid() bool { + switch e { + case SplValue: + return true + default: + return false + } +} + // Defines values for SwapUnavailableResponseLiquidityAvailable. const ( False SwapUnavailableResponseLiquidityAvailable = false ) +// Valid indicates whether the value is a known member of the SwapUnavailableResponseLiquidityAvailable enum. +func (e SwapUnavailableResponseLiquidityAvailable) Valid() bool { + switch e { + case False: + return true + default: + return false + } +} + // Defines values for WebhookEventResponseStatus. const ( WebhookEventResponseStatusFailed WebhookEventResponseStatus = "failed" @@ -775,12 +2261,42 @@ const ( WebhookEventResponseStatusSucceeded WebhookEventResponseStatus = "succeeded" ) +// Valid indicates whether the value is a known member of the WebhookEventResponseStatus enum. +func (e WebhookEventResponseStatus) Valid() bool { + switch e { + case WebhookEventResponseStatusFailed: + return true + case WebhookEventResponseStatusPending: + return true + case WebhookEventResponseStatusProcessing: + return true + case WebhookEventResponseStatusRetrying: + return true + case WebhookEventResponseStatusSucceeded: + return true + default: + return false + } +} + // Defines values for X402Version. const ( - X402VersionN1 X402Version = 1 - X402VersionN2 X402Version = 2 + N1 X402Version = 1 + N2 X402Version = 2 ) +// Valid indicates whether the value is a known member of the X402Version enum. +func (e X402Version) Valid() bool { + switch e { + case N1: + return true + case N2: + return true + default: + return false + } +} + // Defines values for X402SettleErrorReason. const ( X402SettleErrorReasonInsufficientFunds X402SettleErrorReason = "insufficient_funds" @@ -833,8 +2349,115 @@ const ( X402SettleErrorReasonUnknownError X402SettleErrorReason = "unknown_error" ) +// Valid indicates whether the value is a known member of the X402SettleErrorReason enum. +func (e X402SettleErrorReason) Valid() bool { + switch e { + case X402SettleErrorReasonInsufficientFunds: + return true + case X402SettleErrorReasonInvalidExactEvmPayloadAuthorizationFromAddressKyt: + return true + case X402SettleErrorReasonInvalidExactEvmPayloadAuthorizationToAddressKyt: + return true + case X402SettleErrorReasonInvalidExactEvmPayloadAuthorizationTypedDataMessage: + return true + case X402SettleErrorReasonInvalidExactEvmPayloadAuthorizationValidAfter: + return true + case X402SettleErrorReasonInvalidExactEvmPayloadAuthorizationValidBefore: + return true + case X402SettleErrorReasonInvalidExactEvmPayloadAuthorizationValue: + return true + case X402SettleErrorReasonInvalidExactEvmPayloadAuthorizationValueTooLow: + return true + case X402SettleErrorReasonInvalidExactEvmPayloadSignature: + return true + case X402SettleErrorReasonInvalidExactEvmPayloadSignatureAddress: + return true + case X402SettleErrorReasonInvalidExactEvmPermit2PayloadAllowanceRequired: + return true + case X402SettleErrorReasonInvalidExactEvmPermit2PayloadAmount: + return true + case X402SettleErrorReasonInvalidExactEvmPermit2PayloadDeadline: + return true + case X402SettleErrorReasonInvalidExactEvmPermit2PayloadRecipient: + return true + case X402SettleErrorReasonInvalidExactEvmPermit2PayloadSignature: + return true + case X402SettleErrorReasonInvalidExactEvmPermit2PayloadSpender: + return true + case X402SettleErrorReasonInvalidExactEvmPermit2PayloadValidAfter: + return true + case X402SettleErrorReasonInvalidExactSvmPayloadTransaction: + return true + case X402SettleErrorReasonInvalidExactSvmPayloadTransactionAmountMismatch: + return true + case X402SettleErrorReasonInvalidExactSvmPayloadTransactionCannotDeriveReceiverAta: + return true + case X402SettleErrorReasonInvalidExactSvmPayloadTransactionCreateAtaInstruction: + return true + case X402SettleErrorReasonInvalidExactSvmPayloadTransactionCreateAtaInstructionIncorrectAsset: + return true + case X402SettleErrorReasonInvalidExactSvmPayloadTransactionCreateAtaInstructionIncorrectPayee: + return true + case X402SettleErrorReasonInvalidExactSvmPayloadTransactionFeePayerIncludedInInstructionAccounts: + return true + case X402SettleErrorReasonInvalidExactSvmPayloadTransactionFeePayerTransferringFunds: + return true + case X402SettleErrorReasonInvalidExactSvmPayloadTransactionInstructionNotSplTokenTransferChecked: + return true + case X402SettleErrorReasonInvalidExactSvmPayloadTransactionInstructionNotToken2022TransferChecked: + return true + case X402SettleErrorReasonInvalidExactSvmPayloadTransactionInstructions: + return true + case X402SettleErrorReasonInvalidExactSvmPayloadTransactionInstructionsComputeLimitInstruction: + return true + case X402SettleErrorReasonInvalidExactSvmPayloadTransactionInstructionsComputePriceInstruction: + return true + case X402SettleErrorReasonInvalidExactSvmPayloadTransactionInstructionsComputePriceInstructionTooHigh: + return true + case X402SettleErrorReasonInvalidExactSvmPayloadTransactionInstructionsLength: + return true + case X402SettleErrorReasonInvalidExactSvmPayloadTransactionNotATransferInstruction: + return true + case X402SettleErrorReasonInvalidExactSvmPayloadTransactionReceiverAtaNotFound: + return true + case X402SettleErrorReasonInvalidExactSvmPayloadTransactionSenderAtaNotFound: + return true + case X402SettleErrorReasonInvalidExactSvmPayloadTransactionSimulationFailed: + return true + case X402SettleErrorReasonInvalidExactSvmPayloadTransactionTransferToIncorrectAta: + return true + case X402SettleErrorReasonInvalidNetwork: + return true + case X402SettleErrorReasonInvalidPayload: + return true + case X402SettleErrorReasonInvalidPaymentRequirements: + return true + case X402SettleErrorReasonInvalidScheme: + return true + case X402SettleErrorReasonInvalidX402Version: + return true + case X402SettleErrorReasonSettleExactEvmTransactionConfirmationTimedOut: + return true + case X402SettleErrorReasonSettleExactFailedOnchain: + return true + case X402SettleErrorReasonSettleExactNodeFailure: + return true + case X402SettleErrorReasonSettleExactSvmBlockHeightExceeded: + return true + case X402SettleErrorReasonSettleExactSvmTransactionConfirmationTimedOut: + return true + case X402SettleErrorReasonUnknownError: + return true + default: + return false + } +} + // Defines values for X402SupportedPaymentKindNetwork. const ( + X402SupportedPaymentKindNetworkArbitrum X402SupportedPaymentKindNetwork = "arbitrum" + X402SupportedPaymentKindNetworkArbitrumSepolia X402SupportedPaymentKindNetwork = "arbitrum-sepolia" + X402SupportedPaymentKindNetworkAvalanche X402SupportedPaymentKindNetwork = "avalanche" X402SupportedPaymentKindNetworkBase X402SupportedPaymentKindNetwork = "base" X402SupportedPaymentKindNetworkBaseSepolia X402SupportedPaymentKindNetwork = "base-sepolia" X402SupportedPaymentKindNetworkEip155137 X402SupportedPaymentKindNetwork = "eip155:137" @@ -845,14 +2468,66 @@ const ( X402SupportedPaymentKindNetworkSolana5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp X402SupportedPaymentKindNetwork = "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp" X402SupportedPaymentKindNetworkSolanaDevnet X402SupportedPaymentKindNetwork = "solana-devnet" X402SupportedPaymentKindNetworkSolanaEtWTRABZaYq6iMfeYKouRu166VU2xqa1 X402SupportedPaymentKindNetwork = "solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1" + X402SupportedPaymentKindNetworkWorld X402SupportedPaymentKindNetwork = "world" + X402SupportedPaymentKindNetworkWorldSepolia X402SupportedPaymentKindNetwork = "world-sepolia" ) +// Valid indicates whether the value is a known member of the X402SupportedPaymentKindNetwork enum. +func (e X402SupportedPaymentKindNetwork) Valid() bool { + switch e { + case X402SupportedPaymentKindNetworkArbitrum: + return true + case X402SupportedPaymentKindNetworkArbitrumSepolia: + return true + case X402SupportedPaymentKindNetworkAvalanche: + return true + case X402SupportedPaymentKindNetworkBase: + return true + case X402SupportedPaymentKindNetworkBaseSepolia: + return true + case X402SupportedPaymentKindNetworkEip155137: + return true + case X402SupportedPaymentKindNetworkEip1558453: + return true + case X402SupportedPaymentKindNetworkEip15584532: + return true + case X402SupportedPaymentKindNetworkPolygon: + return true + case X402SupportedPaymentKindNetworkSolana: + return true + case X402SupportedPaymentKindNetworkSolana5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp: + return true + case X402SupportedPaymentKindNetworkSolanaDevnet: + return true + case X402SupportedPaymentKindNetworkSolanaEtWTRABZaYq6iMfeYKouRu166VU2xqa1: + return true + case X402SupportedPaymentKindNetworkWorld: + return true + case X402SupportedPaymentKindNetworkWorldSepolia: + return true + default: + return false + } +} + // Defines values for X402SupportedPaymentKindScheme. const ( X402SupportedPaymentKindSchemeExact X402SupportedPaymentKindScheme = "exact" X402SupportedPaymentKindSchemeUpto X402SupportedPaymentKindScheme = "upto" ) +// Valid indicates whether the value is a known member of the X402SupportedPaymentKindScheme enum. +func (e X402SupportedPaymentKindScheme) Valid() bool { + switch e { + case X402SupportedPaymentKindSchemeExact: + return true + case X402SupportedPaymentKindSchemeUpto: + return true + default: + return false + } +} + // Defines values for X402V1PaymentPayloadNetwork. const ( X402V1PaymentPayloadNetworkBase X402V1PaymentPayloadNetwork = "base" @@ -862,11 +2537,39 @@ const ( X402V1PaymentPayloadNetworkSolanaDevnet X402V1PaymentPayloadNetwork = "solana-devnet" ) +// Valid indicates whether the value is a known member of the X402V1PaymentPayloadNetwork enum. +func (e X402V1PaymentPayloadNetwork) Valid() bool { + switch e { + case X402V1PaymentPayloadNetworkBase: + return true + case X402V1PaymentPayloadNetworkBaseSepolia: + return true + case X402V1PaymentPayloadNetworkPolygon: + return true + case X402V1PaymentPayloadNetworkSolana: + return true + case X402V1PaymentPayloadNetworkSolanaDevnet: + return true + default: + return false + } +} + // Defines values for X402V1PaymentPayloadScheme. const ( X402V1PaymentPayloadSchemeExact X402V1PaymentPayloadScheme = "exact" ) +// Valid indicates whether the value is a known member of the X402V1PaymentPayloadScheme enum. +func (e X402V1PaymentPayloadScheme) Valid() bool { + switch e { + case X402V1PaymentPayloadSchemeExact: + return true + default: + return false + } +} + // Defines values for X402V1PaymentRequirementsNetwork. const ( X402V1PaymentRequirementsNetworkBase X402V1PaymentRequirementsNetwork = "base" @@ -876,17 +2579,57 @@ const ( X402V1PaymentRequirementsNetworkSolanaDevnet X402V1PaymentRequirementsNetwork = "solana-devnet" ) +// Valid indicates whether the value is a known member of the X402V1PaymentRequirementsNetwork enum. +func (e X402V1PaymentRequirementsNetwork) Valid() bool { + switch e { + case X402V1PaymentRequirementsNetworkBase: + return true + case X402V1PaymentRequirementsNetworkBaseSepolia: + return true + case X402V1PaymentRequirementsNetworkPolygon: + return true + case X402V1PaymentRequirementsNetworkSolana: + return true + case X402V1PaymentRequirementsNetworkSolanaDevnet: + return true + default: + return false + } +} + // Defines values for X402V1PaymentRequirementsScheme. const ( X402V1PaymentRequirementsSchemeExact X402V1PaymentRequirementsScheme = "exact" ) +// Valid indicates whether the value is a known member of the X402V1PaymentRequirementsScheme enum. +func (e X402V1PaymentRequirementsScheme) Valid() bool { + switch e { + case X402V1PaymentRequirementsSchemeExact: + return true + default: + return false + } +} + // Defines values for X402V2PaymentRequirementsScheme. const ( X402V2PaymentRequirementsSchemeExact X402V2PaymentRequirementsScheme = "exact" X402V2PaymentRequirementsSchemeUpto X402V2PaymentRequirementsScheme = "upto" ) +// Valid indicates whether the value is a known member of the X402V2PaymentRequirementsScheme enum. +func (e X402V2PaymentRequirementsScheme) Valid() bool { + switch e { + case X402V2PaymentRequirementsSchemeExact: + return true + case X402V2PaymentRequirementsSchemeUpto: + return true + default: + return false + } +} + // Defines values for X402VerifyInvalidReason. const ( X402VerifyInvalidReasonInsufficientFunds X402VerifyInvalidReason = "insufficient_funds" @@ -934,18 +2677,136 @@ const ( X402VerifyInvalidReasonUnknownError X402VerifyInvalidReason = "unknown_error" ) +// Valid indicates whether the value is a known member of the X402VerifyInvalidReason enum. +func (e X402VerifyInvalidReason) Valid() bool { + switch e { + case X402VerifyInvalidReasonInsufficientFunds: + return true + case X402VerifyInvalidReasonInvalidExactEvmPayloadAuthorizationFromAddressKyt: + return true + case X402VerifyInvalidReasonInvalidExactEvmPayloadAuthorizationToAddressKyt: + return true + case X402VerifyInvalidReasonInvalidExactEvmPayloadAuthorizationTypedDataMessage: + return true + case X402VerifyInvalidReasonInvalidExactEvmPayloadAuthorizationValidAfter: + return true + case X402VerifyInvalidReasonInvalidExactEvmPayloadAuthorizationValidBefore: + return true + case X402VerifyInvalidReasonInvalidExactEvmPayloadAuthorizationValue: + return true + case X402VerifyInvalidReasonInvalidExactEvmPayloadAuthorizationValueTooLow: + return true + case X402VerifyInvalidReasonInvalidExactEvmPayloadSignature: + return true + case X402VerifyInvalidReasonInvalidExactEvmPayloadSignatureAddress: + return true + case X402VerifyInvalidReasonInvalidExactEvmPermit2PayloadAllowanceRequired: + return true + case X402VerifyInvalidReasonInvalidExactEvmPermit2PayloadAmount: + return true + case X402VerifyInvalidReasonInvalidExactEvmPermit2PayloadDeadline: + return true + case X402VerifyInvalidReasonInvalidExactEvmPermit2PayloadRecipient: + return true + case X402VerifyInvalidReasonInvalidExactEvmPermit2PayloadSignature: + return true + case X402VerifyInvalidReasonInvalidExactEvmPermit2PayloadSpender: + return true + case X402VerifyInvalidReasonInvalidExactEvmPermit2PayloadValidAfter: + return true + case X402VerifyInvalidReasonInvalidExactSvmPayloadTransaction: + return true + case X402VerifyInvalidReasonInvalidExactSvmPayloadTransactionAmountMismatch: + return true + case X402VerifyInvalidReasonInvalidExactSvmPayloadTransactionCannotDeriveReceiverAta: + return true + case X402VerifyInvalidReasonInvalidExactSvmPayloadTransactionCreateAtaInstruction: + return true + case X402VerifyInvalidReasonInvalidExactSvmPayloadTransactionCreateAtaInstructionIncorrectAsset: + return true + case X402VerifyInvalidReasonInvalidExactSvmPayloadTransactionCreateAtaInstructionIncorrectPayee: + return true + case X402VerifyInvalidReasonInvalidExactSvmPayloadTransactionFeePayerIncludedInInstructionAccounts: + return true + case X402VerifyInvalidReasonInvalidExactSvmPayloadTransactionFeePayerTransferringFunds: + return true + case X402VerifyInvalidReasonInvalidExactSvmPayloadTransactionInstructionNotSplTokenTransferChecked: + return true + case X402VerifyInvalidReasonInvalidExactSvmPayloadTransactionInstructionNotToken2022TransferChecked: + return true + case X402VerifyInvalidReasonInvalidExactSvmPayloadTransactionInstructions: + return true + case X402VerifyInvalidReasonInvalidExactSvmPayloadTransactionInstructionsComputeLimitInstruction: + return true + case X402VerifyInvalidReasonInvalidExactSvmPayloadTransactionInstructionsComputePriceInstruction: + return true + case X402VerifyInvalidReasonInvalidExactSvmPayloadTransactionInstructionsComputePriceInstructionTooHigh: + return true + case X402VerifyInvalidReasonInvalidExactSvmPayloadTransactionInstructionsLength: + return true + case X402VerifyInvalidReasonInvalidExactSvmPayloadTransactionNotATransferInstruction: + return true + case X402VerifyInvalidReasonInvalidExactSvmPayloadTransactionReceiverAtaNotFound: + return true + case X402VerifyInvalidReasonInvalidExactSvmPayloadTransactionSenderAtaNotFound: + return true + case X402VerifyInvalidReasonInvalidExactSvmPayloadTransactionSimulationFailed: + return true + case X402VerifyInvalidReasonInvalidExactSvmPayloadTransactionTransferToIncorrectAta: + return true + case X402VerifyInvalidReasonInvalidNetwork: + return true + case X402VerifyInvalidReasonInvalidPayload: + return true + case X402VerifyInvalidReasonInvalidPaymentRequirements: + return true + case X402VerifyInvalidReasonInvalidScheme: + return true + case X402VerifyInvalidReasonInvalidX402Version: + return true + case X402VerifyInvalidReasonUnknownError: + return true + default: + return false + } +} + // Defines values for ListTokensForAccountParamsNetwork. const ( ListTokensForAccountParamsNetworkBase ListTokensForAccountParamsNetwork = "base" ListTokensForAccountParamsNetworkBaseSepolia ListTokensForAccountParamsNetwork = "base-sepolia" ) +// Valid indicates whether the value is a known member of the ListTokensForAccountParamsNetwork enum. +func (e ListTokensForAccountParamsNetwork) Valid() bool { + switch e { + case ListTokensForAccountParamsNetworkBase: + return true + case ListTokensForAccountParamsNetworkBaseSepolia: + return true + default: + return false + } +} + // Defines values for GetSQLSchemaParamsDatabase. const ( GetSQLSchemaParamsDatabaseBase GetSQLSchemaParamsDatabase = "base" GetSQLSchemaParamsDatabaseBaseSepolia GetSQLSchemaParamsDatabase = "base_sepolia" ) +// Valid indicates whether the value is a known member of the GetSQLSchemaParamsDatabase enum. +func (e GetSQLSchemaParamsDatabase) Valid() bool { + switch e { + case GetSQLSchemaParamsDatabaseBase: + return true + case GetSQLSchemaParamsDatabaseBaseSepolia: + return true + default: + return false + } +} + // Defines values for SendEvmTransactionWithEndUserAccountJSONBodyNetwork. const ( SendEvmTransactionWithEndUserAccountJSONBodyNetworkArbitrum SendEvmTransactionWithEndUserAccountJSONBodyNetwork = "arbitrum" @@ -961,6 +2822,36 @@ const ( SendEvmTransactionWithEndUserAccountJSONBodyNetworkWorldSepolia SendEvmTransactionWithEndUserAccountJSONBodyNetwork = "world-sepolia" ) +// Valid indicates whether the value is a known member of the SendEvmTransactionWithEndUserAccountJSONBodyNetwork enum. +func (e SendEvmTransactionWithEndUserAccountJSONBodyNetwork) Valid() bool { + switch e { + case SendEvmTransactionWithEndUserAccountJSONBodyNetworkArbitrum: + return true + case SendEvmTransactionWithEndUserAccountJSONBodyNetworkArbitrumSepolia: + return true + case SendEvmTransactionWithEndUserAccountJSONBodyNetworkAvalanche: + return true + case SendEvmTransactionWithEndUserAccountJSONBodyNetworkBase: + return true + case SendEvmTransactionWithEndUserAccountJSONBodyNetworkBaseSepolia: + return true + case SendEvmTransactionWithEndUserAccountJSONBodyNetworkEthereum: + return true + case SendEvmTransactionWithEndUserAccountJSONBodyNetworkEthereumSepolia: + return true + case SendEvmTransactionWithEndUserAccountJSONBodyNetworkOptimism: + return true + case SendEvmTransactionWithEndUserAccountJSONBodyNetworkPolygon: + return true + case SendEvmTransactionWithEndUserAccountJSONBodyNetworkWorld: + return true + case SendEvmTransactionWithEndUserAccountJSONBodyNetworkWorldSepolia: + return true + default: + return false + } +} + // Defines values for SendEvmAssetWithEndUserAccountJSONBodyNetwork. const ( SendEvmAssetWithEndUserAccountJSONBodyNetworkArbitrum SendEvmAssetWithEndUserAccountJSONBodyNetwork = "arbitrum" @@ -976,30 +2867,108 @@ const ( SendEvmAssetWithEndUserAccountJSONBodyNetworkWorldSepolia SendEvmAssetWithEndUserAccountJSONBodyNetwork = "world-sepolia" ) +// Valid indicates whether the value is a known member of the SendEvmAssetWithEndUserAccountJSONBodyNetwork enum. +func (e SendEvmAssetWithEndUserAccountJSONBodyNetwork) Valid() bool { + switch e { + case SendEvmAssetWithEndUserAccountJSONBodyNetworkArbitrum: + return true + case SendEvmAssetWithEndUserAccountJSONBodyNetworkArbitrumSepolia: + return true + case SendEvmAssetWithEndUserAccountJSONBodyNetworkAvalanche: + return true + case SendEvmAssetWithEndUserAccountJSONBodyNetworkBase: + return true + case SendEvmAssetWithEndUserAccountJSONBodyNetworkBaseSepolia: + return true + case SendEvmAssetWithEndUserAccountJSONBodyNetworkEthereum: + return true + case SendEvmAssetWithEndUserAccountJSONBodyNetworkEthereumSepolia: + return true + case SendEvmAssetWithEndUserAccountJSONBodyNetworkOptimism: + return true + case SendEvmAssetWithEndUserAccountJSONBodyNetworkPolygon: + return true + case SendEvmAssetWithEndUserAccountJSONBodyNetworkWorld: + return true + case SendEvmAssetWithEndUserAccountJSONBodyNetworkWorldSepolia: + return true + default: + return false + } +} + // Defines values for SendSolanaTransactionWithEndUserAccountJSONBodyNetwork. const ( SendSolanaTransactionWithEndUserAccountJSONBodyNetworkSolana SendSolanaTransactionWithEndUserAccountJSONBodyNetwork = "solana" SendSolanaTransactionWithEndUserAccountJSONBodyNetworkSolanaDevnet SendSolanaTransactionWithEndUserAccountJSONBodyNetwork = "solana-devnet" ) +// Valid indicates whether the value is a known member of the SendSolanaTransactionWithEndUserAccountJSONBodyNetwork enum. +func (e SendSolanaTransactionWithEndUserAccountJSONBodyNetwork) Valid() bool { + switch e { + case SendSolanaTransactionWithEndUserAccountJSONBodyNetworkSolana: + return true + case SendSolanaTransactionWithEndUserAccountJSONBodyNetworkSolanaDevnet: + return true + default: + return false + } +} + // Defines values for SendSolanaAssetWithEndUserAccountJSONBodyNetwork. const ( SendSolanaAssetWithEndUserAccountJSONBodyNetworkSolana SendSolanaAssetWithEndUserAccountJSONBodyNetwork = "solana" SendSolanaAssetWithEndUserAccountJSONBodyNetworkSolanaDevnet SendSolanaAssetWithEndUserAccountJSONBodyNetwork = "solana-devnet" ) +// Valid indicates whether the value is a known member of the SendSolanaAssetWithEndUserAccountJSONBodyNetwork enum. +func (e SendSolanaAssetWithEndUserAccountJSONBodyNetwork) Valid() bool { + switch e { + case SendSolanaAssetWithEndUserAccountJSONBodyNetworkSolana: + return true + case SendSolanaAssetWithEndUserAccountJSONBodyNetworkSolanaDevnet: + return true + default: + return false + } +} + // Defines values for ListEndUsersParamsSort. const ( CreatedAtAsc ListEndUsersParamsSort = "createdAt=asc" CreatedAtDesc ListEndUsersParamsSort = "createdAt=desc" ) +// Valid indicates whether the value is a known member of the ListEndUsersParamsSort enum. +func (e ListEndUsersParamsSort) Valid() bool { + switch e { + case CreatedAtAsc: + return true + case CreatedAtDesc: + return true + default: + return false + } +} + // Defines values for ImportEndUserJSONBodyKeyType. const ( ImportEndUserJSONBodyKeyTypeEvm ImportEndUserJSONBodyKeyType = "evm" ImportEndUserJSONBodyKeyTypeSolana ImportEndUserJSONBodyKeyType = "solana" ) +// Valid indicates whether the value is a known member of the ImportEndUserJSONBodyKeyType enum. +func (e ImportEndUserJSONBodyKeyType) Valid() bool { + switch e { + case ImportEndUserJSONBodyKeyTypeEvm: + return true + case ImportEndUserJSONBodyKeyTypeSolana: + return true + default: + return false + } +} + // Defines values for SendEvmTransactionJSONBodyNetwork. const ( SendEvmTransactionJSONBodyNetworkArbitrum SendEvmTransactionJSONBodyNetwork = "arbitrum" @@ -1015,6 +2984,36 @@ const ( SendEvmTransactionJSONBodyNetworkWorldSepolia SendEvmTransactionJSONBodyNetwork = "world-sepolia" ) +// Valid indicates whether the value is a known member of the SendEvmTransactionJSONBodyNetwork enum. +func (e SendEvmTransactionJSONBodyNetwork) Valid() bool { + switch e { + case SendEvmTransactionJSONBodyNetworkArbitrum: + return true + case SendEvmTransactionJSONBodyNetworkArbitrumSepolia: + return true + case SendEvmTransactionJSONBodyNetworkAvalanche: + return true + case SendEvmTransactionJSONBodyNetworkBase: + return true + case SendEvmTransactionJSONBodyNetworkBaseSepolia: + return true + case SendEvmTransactionJSONBodyNetworkEthereum: + return true + case SendEvmTransactionJSONBodyNetworkEthereumSepolia: + return true + case SendEvmTransactionJSONBodyNetworkOptimism: + return true + case SendEvmTransactionJSONBodyNetworkPolygon: + return true + case SendEvmTransactionJSONBodyNetworkWorld: + return true + case SendEvmTransactionJSONBodyNetworkWorldSepolia: + return true + default: + return false + } +} + // Defines values for RequestEvmFaucetJSONBodyNetwork. const ( BaseSepolia RequestEvmFaucetJSONBodyNetwork = "base-sepolia" @@ -1022,6 +3021,20 @@ const ( EthereumSepolia RequestEvmFaucetJSONBodyNetwork = "ethereum-sepolia" ) +// Valid indicates whether the value is a known member of the RequestEvmFaucetJSONBodyNetwork enum. +func (e RequestEvmFaucetJSONBodyNetwork) Valid() bool { + switch e { + case BaseSepolia: + return true + case EthereumHoodi: + return true + case EthereumSepolia: + return true + default: + return false + } +} + // Defines values for RequestEvmFaucetJSONBodyToken. const ( RequestEvmFaucetJSONBodyTokenCbbtc RequestEvmFaucetJSONBodyToken = "cbbtc" @@ -1030,24 +3043,76 @@ const ( RequestEvmFaucetJSONBodyTokenUsdc RequestEvmFaucetJSONBodyToken = "usdc" ) +// Valid indicates whether the value is a known member of the RequestEvmFaucetJSONBodyToken enum. +func (e RequestEvmFaucetJSONBodyToken) Valid() bool { + switch e { + case RequestEvmFaucetJSONBodyTokenCbbtc: + return true + case RequestEvmFaucetJSONBodyTokenEth: + return true + case RequestEvmFaucetJSONBodyTokenEurc: + return true + case RequestEvmFaucetJSONBodyTokenUsdc: + return true + default: + return false + } +} + // Defines values for ListPoliciesParamsScope. const ( ListPoliciesParamsScopeAccount ListPoliciesParamsScope = "account" ListPoliciesParamsScopeProject ListPoliciesParamsScope = "project" ) +// Valid indicates whether the value is a known member of the ListPoliciesParamsScope enum. +func (e ListPoliciesParamsScope) Valid() bool { + switch e { + case ListPoliciesParamsScopeAccount: + return true + case ListPoliciesParamsScopeProject: + return true + default: + return false + } +} + // Defines values for CreatePolicyJSONBodyScope. const ( Account CreatePolicyJSONBodyScope = "account" Project CreatePolicyJSONBodyScope = "project" ) +// Valid indicates whether the value is a known member of the CreatePolicyJSONBodyScope enum. +func (e CreatePolicyJSONBodyScope) Valid() bool { + switch e { + case Account: + return true + case Project: + return true + default: + return false + } +} + // Defines values for SendSolanaTransactionJSONBodyNetwork. const ( SendSolanaTransactionJSONBodyNetworkSolana SendSolanaTransactionJSONBodyNetwork = "solana" SendSolanaTransactionJSONBodyNetworkSolanaDevnet SendSolanaTransactionJSONBodyNetwork = "solana-devnet" ) +// Valid indicates whether the value is a known member of the SendSolanaTransactionJSONBodyNetwork enum. +func (e SendSolanaTransactionJSONBodyNetwork) Valid() bool { + switch e { + case SendSolanaTransactionJSONBodyNetworkSolana: + return true + case SendSolanaTransactionJSONBodyNetworkSolanaDevnet: + return true + default: + return false + } +} + // Defines values for RequestSolanaFaucetJSONBodyToken. const ( RequestSolanaFaucetJSONBodyTokenCbtusd RequestSolanaFaucetJSONBodyToken = "cbtusd" @@ -1055,6 +3120,20 @@ const ( RequestSolanaFaucetJSONBodyTokenUsdc RequestSolanaFaucetJSONBodyToken = "usdc" ) +// Valid indicates whether the value is a known member of the RequestSolanaFaucetJSONBodyToken enum. +func (e RequestSolanaFaucetJSONBodyToken) Valid() bool { + switch e { + case RequestSolanaFaucetJSONBodyTokenCbtusd: + return true + case RequestSolanaFaucetJSONBodyTokenSol: + return true + case RequestSolanaFaucetJSONBodyTokenUsdc: + return true + default: + return false + } +} + // Abi Contract ABI Specification following Solidity's external JSON interface format. type Abi = []Abi_Item @@ -1096,7 +3175,7 @@ type AbiFunctionType string // AbiInput Generic ABI item type encapsulating all other types besides `function`. type AbiInput struct { // AdditionalProperties For additional information on the ABI JSON specification, see [the Solidity documentation](https://docs.soliditylang.org/en/latest/abi-spec.html#json). - AdditionalProperties *interface{} `json:"additionalProperties,omitempty"` + AdditionalProperties interface{} `json:"additionalProperties,omitempty"` // Type The type of the ABI item. Type AbiInputType `json:"type"` @@ -1420,14 +3499,14 @@ type EndUser struct { EvmAccountObjects []EndUserEvmAccount `json:"evmAccountObjects"` // EvmAccounts **DEPRECATED**: Use `evmAccountObjects` instead for richer account information. The list of EVM account addresses associated with the end user. End users can have up to 10 EVM accounts. - // Deprecated: + // Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set EvmAccounts []string `json:"evmAccounts"` // EvmSmartAccountObjects The list of EVM smart accounts associated with the end user. Each EVM EOA can own one smart account. EvmSmartAccountObjects []EndUserEvmSmartAccount `json:"evmSmartAccountObjects"` // EvmSmartAccounts **DEPRECATED**: Use `evmSmartAccountObjects` instead for richer account information including owner relationships. The list of EVM smart account addresses associated with the end user. Each EVM EOA can own one smart account. - // Deprecated: + // Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set EvmSmartAccounts []string `json:"evmSmartAccounts"` // MfaMethods Information about the end user's MFA enrollments. @@ -1437,7 +3516,7 @@ type EndUser struct { SolanaAccountObjects []EndUserSolanaAccount `json:"solanaAccountObjects"` // SolanaAccounts **DEPRECATED**: Use `solanaAccountObjects` instead for richer account information. The list of Solana account addresses associated with the end user. End users can have up to 10 Solana accounts. - // Deprecated: + // Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set SolanaAccounts []string `json:"solanaAccounts"` // UserId A stable, unique identifier for the end user. The `userId` must be unique across all end users in the developer's CDP Project. It must be between 1 and 100 characters long and can only contain alphanumeric characters and hyphens. @@ -3356,7 +5435,7 @@ type WebhookSubscriptionResponse struct { // WebhookSubscriptionResponse_Metadata defines model for WebhookSubscriptionResponse.Metadata. type WebhookSubscriptionResponse_Metadata struct { // Secret Use the root-level `secret` field instead. Maintained for backward compatibility only. - // Deprecated: + // Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set Secret *openapi_types.UUID `json:"secret,omitempty"` AdditionalProperties map[string]string `json:"-"` } @@ -3905,6 +5984,9 @@ type RevokeDelegationForEndUserJSONBody struct { // RevokeDelegationForEndUserParams defines parameters for RevokeDelegationForEndUser. type RevokeDelegationForEndUserParams struct { + // ProjectID The ID of the CDP Project. Required for end users authenticated using custom auth (i.e. a non-CDP JWT provider). + ProjectID *ProjectIDOptional `form:"projectID,omitempty" json:"projectID,omitempty"` + // XWalletAuth A JWT signed using your Wallet Secret, encoded in base64. Refer to the // [Generate Wallet Token](https://docs.cdp.coinbase.com/api-reference/v2/authentication#2-generate-wallet-token) // section of our Authentication docs for more details on how to generate your Wallet Token. @@ -5582,7 +7664,7 @@ func (t *Abi_Item) MergeAbiFunction(v AbiFunction) error { return err } - merged, err := runtime.JsonMerge(t.union, b) + merged, err := runtime.JSONMerge(t.union, b) t.union = merged return err } @@ -5608,7 +7690,7 @@ func (t *Abi_Item) MergeAbiInput(v AbiInput) error { return err } - merged, err := runtime.JsonMerge(t.union, b) + merged, err := runtime.JSONMerge(t.union, b) t.union = merged return err } @@ -5644,7 +7726,7 @@ func (t *AuthenticationMethod) MergeEmailAuthentication(v EmailAuthentication) e return err } - merged, err := runtime.JsonMerge(t.union, b) + merged, err := runtime.JSONMerge(t.union, b) t.union = merged return err } @@ -5670,7 +7752,7 @@ func (t *AuthenticationMethod) MergeSmsAuthentication(v SmsAuthentication) error return err } - merged, err := runtime.JsonMerge(t.union, b) + merged, err := runtime.JSONMerge(t.union, b) t.union = merged return err } @@ -5696,7 +7778,7 @@ func (t *AuthenticationMethod) MergeDeveloperJWTAuthentication(v DeveloperJWTAut return err } - merged, err := runtime.JsonMerge(t.union, b) + merged, err := runtime.JSONMerge(t.union, b) t.union = merged return err } @@ -5722,7 +7804,7 @@ func (t *AuthenticationMethod) MergeOAuth2Authentication(v OAuth2Authentication) return err } - merged, err := runtime.JsonMerge(t.union, b) + merged, err := runtime.JSONMerge(t.union, b) t.union = merged return err } @@ -5748,7 +7830,7 @@ func (t *AuthenticationMethod) MergeTelegramAuthentication(v TelegramAuthenticat return err } - merged, err := runtime.JsonMerge(t.union, b) + merged, err := runtime.JSONMerge(t.union, b) t.union = merged return err } @@ -5774,7 +7856,7 @@ func (t *AuthenticationMethod) MergeSiweAuthentication(v SiweAuthentication) err return err } - merged, err := runtime.JsonMerge(t.union, b) + merged, err := runtime.JSONMerge(t.union, b) t.union = merged return err } @@ -5810,7 +7892,7 @@ func (t *CreateSwapQuoteResponseWrapper) MergeCreateSwapQuoteResponse(v CreateSw return err } - merged, err := runtime.JsonMerge(t.union, b) + merged, err := runtime.JSONMerge(t.union, b) t.union = merged return err } @@ -5836,7 +7918,7 @@ func (t *CreateSwapQuoteResponseWrapper) MergeSwapUnavailableResponse(v SwapUnav return err } - merged, err := runtime.JsonMerge(t.union, b) + merged, err := runtime.JSONMerge(t.union, b) t.union = merged return err } @@ -5872,7 +7954,7 @@ func (t *EvmDataCondition_Params_Item) MergeEvmDataParameterCondition(v EvmDataP return err } - merged, err := runtime.JsonMerge(t.union, b) + merged, err := runtime.JSONMerge(t.union, b) t.union = merged return err } @@ -5898,7 +7980,7 @@ func (t *EvmDataCondition_Params_Item) MergeEvmDataParameterConditionList(v EvmD return err } - merged, err := runtime.JsonMerge(t.union, b) + merged, err := runtime.JSONMerge(t.union, b) t.union = merged return err } @@ -5934,7 +8016,7 @@ func (t *EvmDataCriterion_Abi) MergeKnownAbiType(v KnownAbiType) error { return err } - merged, err := runtime.JsonMerge(t.union, b) + merged, err := runtime.JSONMerge(t.union, b) t.union = merged return err } @@ -5960,7 +8042,7 @@ func (t *EvmDataCriterion_Abi) MergeAbi(v Abi) error { return err } - merged, err := runtime.JsonMerge(t.union, b) + merged, err := runtime.JSONMerge(t.union, b) t.union = merged return err } @@ -5996,7 +8078,7 @@ func (t *GetSwapPriceResponseWrapper) MergeGetSwapPriceResponse(v GetSwapPriceRe return err } - merged, err := runtime.JsonMerge(t.union, b) + merged, err := runtime.JSONMerge(t.union, b) t.union = merged return err } @@ -6022,7 +8104,7 @@ func (t *GetSwapPriceResponseWrapper) MergeSwapUnavailableResponse(v SwapUnavail return err } - merged, err := runtime.JsonMerge(t.union, b) + merged, err := runtime.JSONMerge(t.union, b) t.union = merged return err } @@ -6058,7 +8140,7 @@ func (t *PrepareUserOperationCriteria_Item) MergeEthValueCriterion(v EthValueCri return err } - merged, err := runtime.JsonMerge(t.union, b) + merged, err := runtime.JSONMerge(t.union, b) t.union = merged return err } @@ -6084,7 +8166,7 @@ func (t *PrepareUserOperationCriteria_Item) MergeEvmAddressCriterion(v EvmAddres return err } - merged, err := runtime.JsonMerge(t.union, b) + merged, err := runtime.JSONMerge(t.union, b) t.union = merged return err } @@ -6110,7 +8192,7 @@ func (t *PrepareUserOperationCriteria_Item) MergeEvmNetworkCriterion(v EvmNetwor return err } - merged, err := runtime.JsonMerge(t.union, b) + merged, err := runtime.JSONMerge(t.union, b) t.union = merged return err } @@ -6136,7 +8218,7 @@ func (t *PrepareUserOperationCriteria_Item) MergeEvmDataCriterion(v EvmDataCrite return err } - merged, err := runtime.JsonMerge(t.union, b) + merged, err := runtime.JSONMerge(t.union, b) t.union = merged return err } @@ -6162,7 +8244,7 @@ func (t *PrepareUserOperationCriteria_Item) MergeNetUSDChangeCriterion(v NetUSDC return err } - merged, err := runtime.JsonMerge(t.union, b) + merged, err := runtime.JSONMerge(t.union, b) t.union = merged return err } @@ -6198,7 +8280,7 @@ func (t *Rule) MergeSignEvmTransactionRule(v SignEvmTransactionRule) error { return err } - merged, err := runtime.JsonMerge(t.union, b) + merged, err := runtime.JSONMerge(t.union, b) t.union = merged return err } @@ -6224,7 +8306,7 @@ func (t *Rule) MergeSendEvmTransactionRule(v SendEvmTransactionRule) error { return err } - merged, err := runtime.JsonMerge(t.union, b) + merged, err := runtime.JSONMerge(t.union, b) t.union = merged return err } @@ -6250,7 +8332,7 @@ func (t *Rule) MergeSignEvmMessageRule(v SignEvmMessageRule) error { return err } - merged, err := runtime.JsonMerge(t.union, b) + merged, err := runtime.JSONMerge(t.union, b) t.union = merged return err } @@ -6276,7 +8358,7 @@ func (t *Rule) MergeSignEvmTypedDataRule(v SignEvmTypedDataRule) error { return err } - merged, err := runtime.JsonMerge(t.union, b) + merged, err := runtime.JSONMerge(t.union, b) t.union = merged return err } @@ -6302,7 +8384,7 @@ func (t *Rule) MergeSignSolTransactionRule(v SignSolTransactionRule) error { return err } - merged, err := runtime.JsonMerge(t.union, b) + merged, err := runtime.JSONMerge(t.union, b) t.union = merged return err } @@ -6328,7 +8410,7 @@ func (t *Rule) MergeSendSolTransactionRule(v SendSolTransactionRule) error { return err } - merged, err := runtime.JsonMerge(t.union, b) + merged, err := runtime.JSONMerge(t.union, b) t.union = merged return err } @@ -6354,7 +8436,7 @@ func (t *Rule) MergeSignSolMessageRule(v SignSolMessageRule) error { return err } - merged, err := runtime.JsonMerge(t.union, b) + merged, err := runtime.JSONMerge(t.union, b) t.union = merged return err } @@ -6380,7 +8462,7 @@ func (t *Rule) MergeSignEvmHashRule(v SignEvmHashRule) error { return err } - merged, err := runtime.JsonMerge(t.union, b) + merged, err := runtime.JSONMerge(t.union, b) t.union = merged return err } @@ -6406,7 +8488,7 @@ func (t *Rule) MergePrepareUserOperationRule(v PrepareUserOperationRule) error { return err } - merged, err := runtime.JsonMerge(t.union, b) + merged, err := runtime.JSONMerge(t.union, b) t.union = merged return err } @@ -6432,7 +8514,7 @@ func (t *Rule) MergeSendUserOperationRule(v SendUserOperationRule) error { return err } - merged, err := runtime.JsonMerge(t.union, b) + merged, err := runtime.JSONMerge(t.union, b) t.union = merged return err } @@ -6458,7 +8540,7 @@ func (t *Rule) MergeSignEndUserEvmTransactionRule(v SignEndUserEvmTransactionRul return err } - merged, err := runtime.JsonMerge(t.union, b) + merged, err := runtime.JSONMerge(t.union, b) t.union = merged return err } @@ -6484,7 +8566,7 @@ func (t *Rule) MergeSendEndUserEvmTransactionRule(v SendEndUserEvmTransactionRul return err } - merged, err := runtime.JsonMerge(t.union, b) + merged, err := runtime.JSONMerge(t.union, b) t.union = merged return err } @@ -6510,7 +8592,7 @@ func (t *Rule) MergeSignEndUserEvmMessageRule(v SignEndUserEvmMessageRule) error return err } - merged, err := runtime.JsonMerge(t.union, b) + merged, err := runtime.JSONMerge(t.union, b) t.union = merged return err } @@ -6536,7 +8618,7 @@ func (t *Rule) MergeSignEndUserEvmTypedDataRule(v SignEndUserEvmTypedDataRule) e return err } - merged, err := runtime.JsonMerge(t.union, b) + merged, err := runtime.JSONMerge(t.union, b) t.union = merged return err } @@ -6562,7 +8644,7 @@ func (t *Rule) MergeSignEndUserEvmHashRule(v SignEndUserEvmHashRule) error { return err } - merged, err := runtime.JsonMerge(t.union, b) + merged, err := runtime.JSONMerge(t.union, b) t.union = merged return err } @@ -6588,7 +8670,7 @@ func (t *Rule) MergeSignEndUserSolTransactionRule(v SignEndUserSolTransactionRul return err } - merged, err := runtime.JsonMerge(t.union, b) + merged, err := runtime.JSONMerge(t.union, b) t.union = merged return err } @@ -6614,7 +8696,7 @@ func (t *Rule) MergeSendEndUserSolTransactionRule(v SendEndUserSolTransactionRul return err } - merged, err := runtime.JsonMerge(t.union, b) + merged, err := runtime.JSONMerge(t.union, b) t.union = merged return err } @@ -6640,7 +8722,7 @@ func (t *Rule) MergeSignEndUserSolMessageRule(v SignEndUserSolMessageRule) error return err } - merged, err := runtime.JsonMerge(t.union, b) + merged, err := runtime.JSONMerge(t.union, b) t.union = merged return err } @@ -6676,7 +8758,7 @@ func (t *SendEndUserEvmTransactionCriteria_Item) MergeEthValueCriterion(v EthVal return err } - merged, err := runtime.JsonMerge(t.union, b) + merged, err := runtime.JSONMerge(t.union, b) t.union = merged return err } @@ -6702,7 +8784,7 @@ func (t *SendEndUserEvmTransactionCriteria_Item) MergeEvmAddressCriterion(v EvmA return err } - merged, err := runtime.JsonMerge(t.union, b) + merged, err := runtime.JSONMerge(t.union, b) t.union = merged return err } @@ -6728,7 +8810,7 @@ func (t *SendEndUserEvmTransactionCriteria_Item) MergeEvmNetworkCriterion(v EvmN return err } - merged, err := runtime.JsonMerge(t.union, b) + merged, err := runtime.JSONMerge(t.union, b) t.union = merged return err } @@ -6754,7 +8836,7 @@ func (t *SendEndUserEvmTransactionCriteria_Item) MergeEvmDataCriterion(v EvmData return err } - merged, err := runtime.JsonMerge(t.union, b) + merged, err := runtime.JSONMerge(t.union, b) t.union = merged return err } @@ -6780,7 +8862,7 @@ func (t *SendEndUserEvmTransactionCriteria_Item) MergeNetUSDChangeCriterion(v Ne return err } - merged, err := runtime.JsonMerge(t.union, b) + merged, err := runtime.JSONMerge(t.union, b) t.union = merged return err } @@ -6816,7 +8898,7 @@ func (t *SendEndUserSolTransactionCriteria_Item) MergeSolAddressCriterion(v SolA return err } - merged, err := runtime.JsonMerge(t.union, b) + merged, err := runtime.JSONMerge(t.union, b) t.union = merged return err } @@ -6842,7 +8924,7 @@ func (t *SendEndUserSolTransactionCriteria_Item) MergeSolValueCriterion(v SolVal return err } - merged, err := runtime.JsonMerge(t.union, b) + merged, err := runtime.JSONMerge(t.union, b) t.union = merged return err } @@ -6868,7 +8950,7 @@ func (t *SendEndUserSolTransactionCriteria_Item) MergeSplAddressCriterion(v SplA return err } - merged, err := runtime.JsonMerge(t.union, b) + merged, err := runtime.JSONMerge(t.union, b) t.union = merged return err } @@ -6894,7 +8976,7 @@ func (t *SendEndUserSolTransactionCriteria_Item) MergeSplValueCriterion(v SplVal return err } - merged, err := runtime.JsonMerge(t.union, b) + merged, err := runtime.JSONMerge(t.union, b) t.union = merged return err } @@ -6920,7 +9002,7 @@ func (t *SendEndUserSolTransactionCriteria_Item) MergeMintAddressCriterion(v Min return err } - merged, err := runtime.JsonMerge(t.union, b) + merged, err := runtime.JSONMerge(t.union, b) t.union = merged return err } @@ -6946,7 +9028,7 @@ func (t *SendEndUserSolTransactionCriteria_Item) MergeSolDataCriterion(v SolData return err } - merged, err := runtime.JsonMerge(t.union, b) + merged, err := runtime.JSONMerge(t.union, b) t.union = merged return err } @@ -6972,7 +9054,7 @@ func (t *SendEndUserSolTransactionCriteria_Item) MergeProgramIdCriterion(v Progr return err } - merged, err := runtime.JsonMerge(t.union, b) + merged, err := runtime.JSONMerge(t.union, b) t.union = merged return err } @@ -6998,7 +9080,7 @@ func (t *SendEndUserSolTransactionCriteria_Item) MergeSolNetworkCriterion(v SolN return err } - merged, err := runtime.JsonMerge(t.union, b) + merged, err := runtime.JSONMerge(t.union, b) t.union = merged return err } @@ -7034,7 +9116,7 @@ func (t *SendEvmTransactionCriteria_Item) MergeEthValueCriterion(v EthValueCrite return err } - merged, err := runtime.JsonMerge(t.union, b) + merged, err := runtime.JSONMerge(t.union, b) t.union = merged return err } @@ -7060,7 +9142,7 @@ func (t *SendEvmTransactionCriteria_Item) MergeEvmAddressCriterion(v EvmAddressC return err } - merged, err := runtime.JsonMerge(t.union, b) + merged, err := runtime.JSONMerge(t.union, b) t.union = merged return err } @@ -7086,7 +9168,7 @@ func (t *SendEvmTransactionCriteria_Item) MergeEvmNetworkCriterion(v EvmNetworkC return err } - merged, err := runtime.JsonMerge(t.union, b) + merged, err := runtime.JSONMerge(t.union, b) t.union = merged return err } @@ -7112,7 +9194,7 @@ func (t *SendEvmTransactionCriteria_Item) MergeEvmDataCriterion(v EvmDataCriteri return err } - merged, err := runtime.JsonMerge(t.union, b) + merged, err := runtime.JSONMerge(t.union, b) t.union = merged return err } @@ -7138,7 +9220,7 @@ func (t *SendEvmTransactionCriteria_Item) MergeNetUSDChangeCriterion(v NetUSDCha return err } - merged, err := runtime.JsonMerge(t.union, b) + merged, err := runtime.JSONMerge(t.union, b) t.union = merged return err } @@ -7174,7 +9256,7 @@ func (t *SendSolTransactionCriteria_Item) MergeSolAddressCriterion(v SolAddressC return err } - merged, err := runtime.JsonMerge(t.union, b) + merged, err := runtime.JSONMerge(t.union, b) t.union = merged return err } @@ -7200,7 +9282,7 @@ func (t *SendSolTransactionCriteria_Item) MergeSolValueCriterion(v SolValueCrite return err } - merged, err := runtime.JsonMerge(t.union, b) + merged, err := runtime.JSONMerge(t.union, b) t.union = merged return err } @@ -7226,7 +9308,7 @@ func (t *SendSolTransactionCriteria_Item) MergeSplAddressCriterion(v SplAddressC return err } - merged, err := runtime.JsonMerge(t.union, b) + merged, err := runtime.JSONMerge(t.union, b) t.union = merged return err } @@ -7252,7 +9334,7 @@ func (t *SendSolTransactionCriteria_Item) MergeSplValueCriterion(v SplValueCrite return err } - merged, err := runtime.JsonMerge(t.union, b) + merged, err := runtime.JSONMerge(t.union, b) t.union = merged return err } @@ -7278,7 +9360,7 @@ func (t *SendSolTransactionCriteria_Item) MergeMintAddressCriterion(v MintAddres return err } - merged, err := runtime.JsonMerge(t.union, b) + merged, err := runtime.JSONMerge(t.union, b) t.union = merged return err } @@ -7304,7 +9386,7 @@ func (t *SendSolTransactionCriteria_Item) MergeSolDataCriterion(v SolDataCriteri return err } - merged, err := runtime.JsonMerge(t.union, b) + merged, err := runtime.JSONMerge(t.union, b) t.union = merged return err } @@ -7330,7 +9412,7 @@ func (t *SendSolTransactionCriteria_Item) MergeProgramIdCriterion(v ProgramIdCri return err } - merged, err := runtime.JsonMerge(t.union, b) + merged, err := runtime.JSONMerge(t.union, b) t.union = merged return err } @@ -7356,7 +9438,7 @@ func (t *SendSolTransactionCriteria_Item) MergeSolNetworkCriterion(v SolNetworkC return err } - merged, err := runtime.JsonMerge(t.union, b) + merged, err := runtime.JSONMerge(t.union, b) t.union = merged return err } @@ -7392,7 +9474,7 @@ func (t *SendUserOperationCriteria_Item) MergeEthValueCriterion(v EthValueCriter return err } - merged, err := runtime.JsonMerge(t.union, b) + merged, err := runtime.JSONMerge(t.union, b) t.union = merged return err } @@ -7418,7 +9500,7 @@ func (t *SendUserOperationCriteria_Item) MergeEvmAddressCriterion(v EvmAddressCr return err } - merged, err := runtime.JsonMerge(t.union, b) + merged, err := runtime.JSONMerge(t.union, b) t.union = merged return err } @@ -7444,7 +9526,7 @@ func (t *SendUserOperationCriteria_Item) MergeEvmDataCriterion(v EvmDataCriterio return err } - merged, err := runtime.JsonMerge(t.union, b) + merged, err := runtime.JSONMerge(t.union, b) t.union = merged return err } @@ -7470,7 +9552,7 @@ func (t *SendUserOperationCriteria_Item) MergeNetUSDChangeCriterion(v NetUSDChan return err } - merged, err := runtime.JsonMerge(t.union, b) + merged, err := runtime.JSONMerge(t.union, b) t.union = merged return err } @@ -7506,7 +9588,7 @@ func (t *SignEndUserEvmMessageCriteria_Item) MergeEvmMessageCriterion(v EvmMessa return err } - merged, err := runtime.JsonMerge(t.union, b) + merged, err := runtime.JSONMerge(t.union, b) t.union = merged return err } @@ -7542,7 +9624,7 @@ func (t *SignEndUserEvmTransactionCriteria_Item) MergeEthValueCriterion(v EthVal return err } - merged, err := runtime.JsonMerge(t.union, b) + merged, err := runtime.JSONMerge(t.union, b) t.union = merged return err } @@ -7568,7 +9650,7 @@ func (t *SignEndUserEvmTransactionCriteria_Item) MergeEvmAddressCriterion(v EvmA return err } - merged, err := runtime.JsonMerge(t.union, b) + merged, err := runtime.JSONMerge(t.union, b) t.union = merged return err } @@ -7594,7 +9676,7 @@ func (t *SignEndUserEvmTransactionCriteria_Item) MergeEvmDataCriterion(v EvmData return err } - merged, err := runtime.JsonMerge(t.union, b) + merged, err := runtime.JSONMerge(t.union, b) t.union = merged return err } @@ -7620,7 +9702,7 @@ func (t *SignEndUserEvmTransactionCriteria_Item) MergeNetUSDChangeCriterion(v Ne return err } - merged, err := runtime.JsonMerge(t.union, b) + merged, err := runtime.JSONMerge(t.union, b) t.union = merged return err } @@ -7656,7 +9738,7 @@ func (t *SignEndUserEvmTypedDataCriteria_Item) MergeSignEvmTypedDataFieldCriteri return err } - merged, err := runtime.JsonMerge(t.union, b) + merged, err := runtime.JSONMerge(t.union, b) t.union = merged return err } @@ -7682,7 +9764,7 @@ func (t *SignEndUserEvmTypedDataCriteria_Item) MergeSignEvmTypedDataVerifyingCon return err } - merged, err := runtime.JsonMerge(t.union, b) + merged, err := runtime.JSONMerge(t.union, b) t.union = merged return err } @@ -7718,7 +9800,7 @@ func (t *SignEndUserSolMessageCriteria_Item) MergeSolMessageCriterion(v SolMessa return err } - merged, err := runtime.JsonMerge(t.union, b) + merged, err := runtime.JSONMerge(t.union, b) t.union = merged return err } @@ -7754,7 +9836,7 @@ func (t *SignEndUserSolTransactionCriteria_Item) MergeSolAddressCriterion(v SolA return err } - merged, err := runtime.JsonMerge(t.union, b) + merged, err := runtime.JSONMerge(t.union, b) t.union = merged return err } @@ -7780,7 +9862,7 @@ func (t *SignEndUserSolTransactionCriteria_Item) MergeSolValueCriterion(v SolVal return err } - merged, err := runtime.JsonMerge(t.union, b) + merged, err := runtime.JSONMerge(t.union, b) t.union = merged return err } @@ -7806,7 +9888,7 @@ func (t *SignEndUserSolTransactionCriteria_Item) MergeSplAddressCriterion(v SplA return err } - merged, err := runtime.JsonMerge(t.union, b) + merged, err := runtime.JSONMerge(t.union, b) t.union = merged return err } @@ -7832,7 +9914,7 @@ func (t *SignEndUserSolTransactionCriteria_Item) MergeSplValueCriterion(v SplVal return err } - merged, err := runtime.JsonMerge(t.union, b) + merged, err := runtime.JSONMerge(t.union, b) t.union = merged return err } @@ -7858,7 +9940,7 @@ func (t *SignEndUserSolTransactionCriteria_Item) MergeMintAddressCriterion(v Min return err } - merged, err := runtime.JsonMerge(t.union, b) + merged, err := runtime.JSONMerge(t.union, b) t.union = merged return err } @@ -7884,7 +9966,7 @@ func (t *SignEndUserSolTransactionCriteria_Item) MergeSolDataCriterion(v SolData return err } - merged, err := runtime.JsonMerge(t.union, b) + merged, err := runtime.JSONMerge(t.union, b) t.union = merged return err } @@ -7910,7 +9992,7 @@ func (t *SignEndUserSolTransactionCriteria_Item) MergeProgramIdCriterion(v Progr return err } - merged, err := runtime.JsonMerge(t.union, b) + merged, err := runtime.JSONMerge(t.union, b) t.union = merged return err } @@ -7946,7 +10028,7 @@ func (t *SignEvmMessageCriteria_Item) MergeEvmMessageCriterion(v EvmMessageCrite return err } - merged, err := runtime.JsonMerge(t.union, b) + merged, err := runtime.JSONMerge(t.union, b) t.union = merged return err } @@ -7982,7 +10064,7 @@ func (t *SignEvmTransactionCriteria_Item) MergeEthValueCriterion(v EthValueCrite return err } - merged, err := runtime.JsonMerge(t.union, b) + merged, err := runtime.JSONMerge(t.union, b) t.union = merged return err } @@ -8008,7 +10090,7 @@ func (t *SignEvmTransactionCriteria_Item) MergeEvmAddressCriterion(v EvmAddressC return err } - merged, err := runtime.JsonMerge(t.union, b) + merged, err := runtime.JSONMerge(t.union, b) t.union = merged return err } @@ -8034,7 +10116,7 @@ func (t *SignEvmTransactionCriteria_Item) MergeEvmDataCriterion(v EvmDataCriteri return err } - merged, err := runtime.JsonMerge(t.union, b) + merged, err := runtime.JSONMerge(t.union, b) t.union = merged return err } @@ -8060,7 +10142,7 @@ func (t *SignEvmTransactionCriteria_Item) MergeNetUSDChangeCriterion(v NetUSDCha return err } - merged, err := runtime.JsonMerge(t.union, b) + merged, err := runtime.JSONMerge(t.union, b) t.union = merged return err } @@ -8096,7 +10178,7 @@ func (t *SignEvmTypedDataCriteria_Item) MergeSignEvmTypedDataFieldCriterion(v Si return err } - merged, err := runtime.JsonMerge(t.union, b) + merged, err := runtime.JSONMerge(t.union, b) t.union = merged return err } @@ -8122,7 +10204,7 @@ func (t *SignEvmTypedDataCriteria_Item) MergeSignEvmTypedDataVerifyingContractCr return err } - merged, err := runtime.JsonMerge(t.union, b) + merged, err := runtime.JSONMerge(t.union, b) t.union = merged return err } @@ -8158,7 +10240,7 @@ func (t *SignEvmTypedDataFieldCriterion_Conditions_Item) MergeEvmTypedAddressCon return err } - merged, err := runtime.JsonMerge(t.union, b) + merged, err := runtime.JSONMerge(t.union, b) t.union = merged return err } @@ -8184,7 +10266,7 @@ func (t *SignEvmTypedDataFieldCriterion_Conditions_Item) MergeEvmTypedNumericalC return err } - merged, err := runtime.JsonMerge(t.union, b) + merged, err := runtime.JSONMerge(t.union, b) t.union = merged return err } @@ -8210,7 +10292,7 @@ func (t *SignEvmTypedDataFieldCriterion_Conditions_Item) MergeEvmTypedStringCond return err } - merged, err := runtime.JsonMerge(t.union, b) + merged, err := runtime.JSONMerge(t.union, b) t.union = merged return err } @@ -8246,7 +10328,7 @@ func (t *SignSolMessageCriteria_Item) MergeSolMessageCriterion(v SolMessageCrite return err } - merged, err := runtime.JsonMerge(t.union, b) + merged, err := runtime.JSONMerge(t.union, b) t.union = merged return err } @@ -8282,7 +10364,7 @@ func (t *SignSolTransactionCriteria_Item) MergeSolAddressCriterion(v SolAddressC return err } - merged, err := runtime.JsonMerge(t.union, b) + merged, err := runtime.JSONMerge(t.union, b) t.union = merged return err } @@ -8308,7 +10390,7 @@ func (t *SignSolTransactionCriteria_Item) MergeSolValueCriterion(v SolValueCrite return err } - merged, err := runtime.JsonMerge(t.union, b) + merged, err := runtime.JSONMerge(t.union, b) t.union = merged return err } @@ -8334,7 +10416,7 @@ func (t *SignSolTransactionCriteria_Item) MergeSplAddressCriterion(v SplAddressC return err } - merged, err := runtime.JsonMerge(t.union, b) + merged, err := runtime.JSONMerge(t.union, b) t.union = merged return err } @@ -8360,7 +10442,7 @@ func (t *SignSolTransactionCriteria_Item) MergeSplValueCriterion(v SplValueCrite return err } - merged, err := runtime.JsonMerge(t.union, b) + merged, err := runtime.JSONMerge(t.union, b) t.union = merged return err } @@ -8386,7 +10468,7 @@ func (t *SignSolTransactionCriteria_Item) MergeMintAddressCriterion(v MintAddres return err } - merged, err := runtime.JsonMerge(t.union, b) + merged, err := runtime.JSONMerge(t.union, b) t.union = merged return err } @@ -8412,7 +10494,7 @@ func (t *SignSolTransactionCriteria_Item) MergeSolDataCriterion(v SolDataCriteri return err } - merged, err := runtime.JsonMerge(t.union, b) + merged, err := runtime.JSONMerge(t.union, b) t.union = merged return err } @@ -8438,7 +10520,7 @@ func (t *SignSolTransactionCriteria_Item) MergeProgramIdCriterion(v ProgramIdCri return err } - merged, err := runtime.JsonMerge(t.union, b) + merged, err := runtime.JSONMerge(t.union, b) t.union = merged return err } @@ -8474,7 +10556,7 @@ func (t *SolDataCondition_Params_Item) MergeSolDataParameterCondition(v SolDataP return err } - merged, err := runtime.JsonMerge(t.union, b) + merged, err := runtime.JSONMerge(t.union, b) t.union = merged return err } @@ -8500,7 +10582,7 @@ func (t *SolDataCondition_Params_Item) MergeSolDataParameterConditionList(v SolD return err } - merged, err := runtime.JsonMerge(t.union, b) + merged, err := runtime.JSONMerge(t.union, b) t.union = merged return err } @@ -8536,7 +10618,7 @@ func (t *SolDataCriterion_Idls_Item) MergeKnownIdlType(v KnownIdlType) error { return err } - merged, err := runtime.JsonMerge(t.union, b) + merged, err := runtime.JSONMerge(t.union, b) t.union = merged return err } @@ -8562,7 +10644,7 @@ func (t *SolDataCriterion_Idls_Item) MergeIdl(v Idl) error { return err } - merged, err := runtime.JsonMerge(t.union, b) + merged, err := runtime.JSONMerge(t.union, b) t.union = merged return err } @@ -8598,7 +10680,7 @@ func (t *X402PaymentPayload) MergeX402V2PaymentPayload(v X402V2PaymentPayload) e return err } - merged, err := runtime.JsonMerge(t.union, b) + merged, err := runtime.JSONMerge(t.union, b) t.union = merged return err } @@ -8624,7 +10706,7 @@ func (t *X402PaymentPayload) MergeX402V1PaymentPayload(v X402V1PaymentPayload) e return err } - merged, err := runtime.JsonMerge(t.union, b) + merged, err := runtime.JSONMerge(t.union, b) t.union = merged return err } @@ -8660,7 +10742,7 @@ func (t *X402PaymentRequirements) MergeX402V2PaymentRequirements(v X402V2Payment return err } - merged, err := runtime.JsonMerge(t.union, b) + merged, err := runtime.JSONMerge(t.union, b) t.union = merged return err } @@ -8686,7 +10768,7 @@ func (t *X402PaymentRequirements) MergeX402V1PaymentRequirements(v X402V1Payment return err } - merged, err := runtime.JsonMerge(t.union, b) + merged, err := runtime.JSONMerge(t.union, b) t.union = merged return err } @@ -8722,7 +10804,7 @@ func (t *X402V1PaymentPayload_Payload) MergeX402ExactEvmPayload(v X402ExactEvmPa return err } - merged, err := runtime.JsonMerge(t.union, b) + merged, err := runtime.JSONMerge(t.union, b) t.union = merged return err } @@ -8748,7 +10830,7 @@ func (t *X402V1PaymentPayload_Payload) MergeX402ExactEvmPermit2Payload(v X402Exa return err } - merged, err := runtime.JsonMerge(t.union, b) + merged, err := runtime.JSONMerge(t.union, b) t.union = merged return err } @@ -8774,7 +10856,7 @@ func (t *X402V1PaymentPayload_Payload) MergeX402ExactSolanaPayload(v X402ExactSo return err } - merged, err := runtime.JsonMerge(t.union, b) + merged, err := runtime.JSONMerge(t.union, b) t.union = merged return err } @@ -8810,7 +10892,7 @@ func (t *X402V2PaymentPayload_Payload) MergeX402ExactEvmPayload(v X402ExactEvmPa return err } - merged, err := runtime.JsonMerge(t.union, b) + merged, err := runtime.JSONMerge(t.union, b) t.union = merged return err } @@ -8836,7 +10918,7 @@ func (t *X402V2PaymentPayload_Payload) MergeX402ExactEvmPermit2Payload(v X402Exa return err } - merged, err := runtime.JsonMerge(t.union, b) + merged, err := runtime.JSONMerge(t.union, b) t.union = merged return err } @@ -8862,7 +10944,7 @@ func (t *X402V2PaymentPayload_Payload) MergeX402ExactSolanaPayload(v X402ExactSo return err } - merged, err := runtime.JsonMerge(t.union, b) + merged, err := runtime.JSONMerge(t.union, b) t.union = merged return err } @@ -11090,14 +13172,14 @@ func NewListDataTokenBalancesRequest(server string, network ListEvmTokenBalances var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "network", runtime.ParamLocationPath, network) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "network", network, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "address", runtime.ParamLocationPath, address) + pathParam1, err = runtime.StyleParamWithOptions("simple", false, "address", address, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -11122,7 +13204,7 @@ func NewListDataTokenBalancesRequest(server string, network ListEvmTokenBalances if params.PageSize != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "pageSize", runtime.ParamLocationQuery, *params.PageSize); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "pageSize", *params.PageSize, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err @@ -11138,7 +13220,7 @@ func NewListDataTokenBalancesRequest(server string, network ListEvmTokenBalances if params.PageToken != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "pageToken", runtime.ParamLocationQuery, *params.PageToken); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "pageToken", *params.PageToken, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err @@ -11169,14 +13251,14 @@ func NewListTokensForAccountRequest(server string, network ListTokensForAccountP var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "network", runtime.ParamLocationPath, network) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "network", network, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "address", runtime.ParamLocationPath, address) + pathParam1, err = runtime.StyleParamWithOptions("simple", false, "address", address, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -11295,7 +13377,7 @@ func NewGetSQLSchemaRequest(server string, params *GetSQLSchemaParams) (*http.Re if params.Database != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "database", runtime.ParamLocationQuery, *params.Database); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "database", *params.Database, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err @@ -11311,7 +13393,7 @@ func NewGetSQLSchemaRequest(server string, params *GetSQLSchemaParams) (*http.Re if params.Table != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "table", runtime.ParamLocationQuery, *params.Table); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "table", *params.Table, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err @@ -11360,7 +13442,7 @@ func NewListWebhookSubscriptionsRequest(server string, params *ListWebhookSubscr if params.PageSize != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "pageSize", runtime.ParamLocationQuery, *params.PageSize); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "pageSize", *params.PageSize, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err @@ -11376,7 +13458,7 @@ func NewListWebhookSubscriptionsRequest(server string, params *ListWebhookSubscr if params.PageToken != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "pageToken", runtime.ParamLocationQuery, *params.PageToken); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "pageToken", *params.PageToken, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err @@ -11447,7 +13529,7 @@ func NewDeleteWebhookSubscriptionRequest(server string, subscriptionId openapi_t var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "subscriptionId", runtime.ParamLocationPath, subscriptionId) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "subscriptionId", subscriptionId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } @@ -11481,7 +13563,7 @@ func NewGetWebhookSubscriptionRequest(server string, subscriptionId openapi_type var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "subscriptionId", runtime.ParamLocationPath, subscriptionId) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "subscriptionId", subscriptionId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } @@ -11526,7 +13608,7 @@ func NewUpdateWebhookSubscriptionRequestWithBody(server string, subscriptionId o var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "subscriptionId", runtime.ParamLocationPath, subscriptionId) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "subscriptionId", subscriptionId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } @@ -11562,7 +13644,7 @@ func NewListWebhookSubscriptionEventsRequest(server string, subscriptionId opena var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "subscriptionId", runtime.ParamLocationPath, subscriptionId) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "subscriptionId", subscriptionId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } @@ -11587,7 +13669,7 @@ func NewListWebhookSubscriptionEventsRequest(server string, subscriptionId opena if params.EventId != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "eventId", runtime.ParamLocationQuery, *params.EventId); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "eventId", *params.EventId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: "uuid"}); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err @@ -11603,7 +13685,7 @@ func NewListWebhookSubscriptionEventsRequest(server string, subscriptionId opena if params.MinCreatedAt != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "minCreatedAt", runtime.ParamLocationQuery, *params.MinCreatedAt); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "minCreatedAt", *params.MinCreatedAt, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: "date-time"}); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err @@ -11619,7 +13701,7 @@ func NewListWebhookSubscriptionEventsRequest(server string, subscriptionId opena if params.MaxCreatedAt != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "maxCreatedAt", runtime.ParamLocationQuery, *params.MaxCreatedAt); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "maxCreatedAt", *params.MaxCreatedAt, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: "date-time"}); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err @@ -11635,7 +13717,7 @@ func NewListWebhookSubscriptionEventsRequest(server string, subscriptionId opena if params.EventTypeNames != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "eventTypeNames", runtime.ParamLocationQuery, *params.EventTypeNames); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "eventTypeNames", *params.EventTypeNames, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err @@ -11677,7 +13759,7 @@ func NewRevokeDelegationForEndUserRequestWithBody(server string, userId string, var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "userId", runtime.ParamLocationPath, userId) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "userId", userId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -11697,6 +13779,28 @@ func NewRevokeDelegationForEndUserRequestWithBody(server string, userId string, return nil, err } + if params != nil { + queryValues := queryURL.Query() + + if params.ProjectID != nil { + + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "projectID", *params.ProjectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + queryURL.RawQuery = queryValues.Encode() + } + req, err := http.NewRequest("DELETE", queryURL.String(), body) if err != nil { return nil, err @@ -11709,7 +13813,7 @@ func NewRevokeDelegationForEndUserRequestWithBody(server string, userId string, if params.XWalletAuth != nil { var headerParam0 string - headerParam0, err = runtime.StyleParamWithLocation("simple", false, "X-Wallet-Auth", runtime.ParamLocationHeader, *params.XWalletAuth) + headerParam0, err = runtime.StyleParamWithOptions("simple", false, "X-Wallet-Auth", *params.XWalletAuth, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationHeader, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -11720,7 +13824,7 @@ func NewRevokeDelegationForEndUserRequestWithBody(server string, userId string, if params.XDeveloperAuth != nil { var headerParam1 string - headerParam1, err = runtime.StyleParamWithLocation("simple", false, "X-Developer-Auth", runtime.ParamLocationHeader, *params.XDeveloperAuth) + headerParam1, err = runtime.StyleParamWithOptions("simple", false, "X-Developer-Auth", *params.XDeveloperAuth, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationHeader, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -11731,7 +13835,7 @@ func NewRevokeDelegationForEndUserRequestWithBody(server string, userId string, if params.XIdempotencyKey != nil { var headerParam2 string - headerParam2, err = runtime.StyleParamWithLocation("simple", false, "X-Idempotency-Key", runtime.ParamLocationHeader, *params.XIdempotencyKey) + headerParam2, err = runtime.StyleParamWithOptions("simple", false, "X-Idempotency-Key", *params.XIdempotencyKey, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationHeader, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -11750,7 +13854,7 @@ func NewGetDelegationForEndUserRequest(server string, userId string, params *Get var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "userId", runtime.ParamLocationPath, userId) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "userId", userId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -11775,7 +13879,7 @@ func NewGetDelegationForEndUserRequest(server string, userId string, params *Get if params.ProjectID != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "projectID", runtime.ParamLocationQuery, *params.ProjectID); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "projectID", *params.ProjectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err @@ -11817,7 +13921,7 @@ func NewCreateEvmEip7702DelegationWithEndUserAccountRequestWithBody(server strin var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "userId", runtime.ParamLocationPath, userId) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "userId", userId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -11842,7 +13946,7 @@ func NewCreateEvmEip7702DelegationWithEndUserAccountRequestWithBody(server strin if params.ProjectID != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "projectID", runtime.ParamLocationQuery, *params.ProjectID); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "projectID", *params.ProjectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err @@ -11871,7 +13975,7 @@ func NewCreateEvmEip7702DelegationWithEndUserAccountRequestWithBody(server strin if params.XWalletAuth != nil { var headerParam0 string - headerParam0, err = runtime.StyleParamWithLocation("simple", false, "X-Wallet-Auth", runtime.ParamLocationHeader, *params.XWalletAuth) + headerParam0, err = runtime.StyleParamWithOptions("simple", false, "X-Wallet-Auth", *params.XWalletAuth, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationHeader, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -11882,7 +13986,7 @@ func NewCreateEvmEip7702DelegationWithEndUserAccountRequestWithBody(server strin if params.XIdempotencyKey != nil { var headerParam1 string - headerParam1, err = runtime.StyleParamWithLocation("simple", false, "X-Idempotency-Key", runtime.ParamLocationHeader, *params.XIdempotencyKey) + headerParam1, err = runtime.StyleParamWithOptions("simple", false, "X-Idempotency-Key", *params.XIdempotencyKey, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationHeader, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -11893,7 +13997,7 @@ func NewCreateEvmEip7702DelegationWithEndUserAccountRequestWithBody(server strin if params.XDeveloperAuth != nil { var headerParam2 string - headerParam2, err = runtime.StyleParamWithLocation("simple", false, "X-Developer-Auth", runtime.ParamLocationHeader, *params.XDeveloperAuth) + headerParam2, err = runtime.StyleParamWithOptions("simple", false, "X-Developer-Auth", *params.XDeveloperAuth, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationHeader, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -11923,7 +14027,7 @@ func NewSendEvmTransactionWithEndUserAccountRequestWithBody(server string, userI var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "userId", runtime.ParamLocationPath, userId) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "userId", userId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -11948,7 +14052,7 @@ func NewSendEvmTransactionWithEndUserAccountRequestWithBody(server string, userI if params.ProjectID != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "projectID", runtime.ParamLocationQuery, *params.ProjectID); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "projectID", *params.ProjectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err @@ -11977,7 +14081,7 @@ func NewSendEvmTransactionWithEndUserAccountRequestWithBody(server string, userI if params.XWalletAuth != nil { var headerParam0 string - headerParam0, err = runtime.StyleParamWithLocation("simple", false, "X-Wallet-Auth", runtime.ParamLocationHeader, *params.XWalletAuth) + headerParam0, err = runtime.StyleParamWithOptions("simple", false, "X-Wallet-Auth", *params.XWalletAuth, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationHeader, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -11988,7 +14092,7 @@ func NewSendEvmTransactionWithEndUserAccountRequestWithBody(server string, userI if params.XIdempotencyKey != nil { var headerParam1 string - headerParam1, err = runtime.StyleParamWithLocation("simple", false, "X-Idempotency-Key", runtime.ParamLocationHeader, *params.XIdempotencyKey) + headerParam1, err = runtime.StyleParamWithOptions("simple", false, "X-Idempotency-Key", *params.XIdempotencyKey, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationHeader, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -11999,7 +14103,7 @@ func NewSendEvmTransactionWithEndUserAccountRequestWithBody(server string, userI if params.XDeveloperAuth != nil { var headerParam2 string - headerParam2, err = runtime.StyleParamWithLocation("simple", false, "X-Developer-Auth", runtime.ParamLocationHeader, *params.XDeveloperAuth) + headerParam2, err = runtime.StyleParamWithOptions("simple", false, "X-Developer-Auth", *params.XDeveloperAuth, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationHeader, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -12029,7 +14133,7 @@ func NewSignEvmMessageWithEndUserAccountRequestWithBody(server string, userId st var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "userId", runtime.ParamLocationPath, userId) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "userId", userId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -12054,7 +14158,7 @@ func NewSignEvmMessageWithEndUserAccountRequestWithBody(server string, userId st if params.ProjectID != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "projectID", runtime.ParamLocationQuery, *params.ProjectID); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "projectID", *params.ProjectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err @@ -12083,7 +14187,7 @@ func NewSignEvmMessageWithEndUserAccountRequestWithBody(server string, userId st if params.XWalletAuth != nil { var headerParam0 string - headerParam0, err = runtime.StyleParamWithLocation("simple", false, "X-Wallet-Auth", runtime.ParamLocationHeader, *params.XWalletAuth) + headerParam0, err = runtime.StyleParamWithOptions("simple", false, "X-Wallet-Auth", *params.XWalletAuth, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationHeader, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -12094,7 +14198,7 @@ func NewSignEvmMessageWithEndUserAccountRequestWithBody(server string, userId st if params.XIdempotencyKey != nil { var headerParam1 string - headerParam1, err = runtime.StyleParamWithLocation("simple", false, "X-Idempotency-Key", runtime.ParamLocationHeader, *params.XIdempotencyKey) + headerParam1, err = runtime.StyleParamWithOptions("simple", false, "X-Idempotency-Key", *params.XIdempotencyKey, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationHeader, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -12105,7 +14209,7 @@ func NewSignEvmMessageWithEndUserAccountRequestWithBody(server string, userId st if params.XDeveloperAuth != nil { var headerParam2 string - headerParam2, err = runtime.StyleParamWithLocation("simple", false, "X-Developer-Auth", runtime.ParamLocationHeader, *params.XDeveloperAuth) + headerParam2, err = runtime.StyleParamWithOptions("simple", false, "X-Developer-Auth", *params.XDeveloperAuth, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationHeader, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -12135,7 +14239,7 @@ func NewSignEvmTransactionWithEndUserAccountRequestWithBody(server string, userI var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "userId", runtime.ParamLocationPath, userId) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "userId", userId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -12160,7 +14264,7 @@ func NewSignEvmTransactionWithEndUserAccountRequestWithBody(server string, userI if params.ProjectID != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "projectID", runtime.ParamLocationQuery, *params.ProjectID); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "projectID", *params.ProjectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err @@ -12189,7 +14293,7 @@ func NewSignEvmTransactionWithEndUserAccountRequestWithBody(server string, userI if params.XWalletAuth != nil { var headerParam0 string - headerParam0, err = runtime.StyleParamWithLocation("simple", false, "X-Wallet-Auth", runtime.ParamLocationHeader, *params.XWalletAuth) + headerParam0, err = runtime.StyleParamWithOptions("simple", false, "X-Wallet-Auth", *params.XWalletAuth, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationHeader, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -12200,7 +14304,7 @@ func NewSignEvmTransactionWithEndUserAccountRequestWithBody(server string, userI if params.XIdempotencyKey != nil { var headerParam1 string - headerParam1, err = runtime.StyleParamWithLocation("simple", false, "X-Idempotency-Key", runtime.ParamLocationHeader, *params.XIdempotencyKey) + headerParam1, err = runtime.StyleParamWithOptions("simple", false, "X-Idempotency-Key", *params.XIdempotencyKey, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationHeader, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -12211,7 +14315,7 @@ func NewSignEvmTransactionWithEndUserAccountRequestWithBody(server string, userI if params.XDeveloperAuth != nil { var headerParam2 string - headerParam2, err = runtime.StyleParamWithLocation("simple", false, "X-Developer-Auth", runtime.ParamLocationHeader, *params.XDeveloperAuth) + headerParam2, err = runtime.StyleParamWithOptions("simple", false, "X-Developer-Auth", *params.XDeveloperAuth, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationHeader, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -12241,7 +14345,7 @@ func NewSignEvmTypedDataWithEndUserAccountRequestWithBody(server string, userId var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "userId", runtime.ParamLocationPath, userId) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "userId", userId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -12266,7 +14370,7 @@ func NewSignEvmTypedDataWithEndUserAccountRequestWithBody(server string, userId if params.ProjectID != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "projectID", runtime.ParamLocationQuery, *params.ProjectID); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "projectID", *params.ProjectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err @@ -12295,7 +14399,7 @@ func NewSignEvmTypedDataWithEndUserAccountRequestWithBody(server string, userId if params.XWalletAuth != nil { var headerParam0 string - headerParam0, err = runtime.StyleParamWithLocation("simple", false, "X-Wallet-Auth", runtime.ParamLocationHeader, *params.XWalletAuth) + headerParam0, err = runtime.StyleParamWithOptions("simple", false, "X-Wallet-Auth", *params.XWalletAuth, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationHeader, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -12306,7 +14410,7 @@ func NewSignEvmTypedDataWithEndUserAccountRequestWithBody(server string, userId if params.XIdempotencyKey != nil { var headerParam1 string - headerParam1, err = runtime.StyleParamWithLocation("simple", false, "X-Idempotency-Key", runtime.ParamLocationHeader, *params.XIdempotencyKey) + headerParam1, err = runtime.StyleParamWithOptions("simple", false, "X-Idempotency-Key", *params.XIdempotencyKey, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationHeader, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -12317,7 +14421,7 @@ func NewSignEvmTypedDataWithEndUserAccountRequestWithBody(server string, userId if params.XDeveloperAuth != nil { var headerParam2 string - headerParam2, err = runtime.StyleParamWithLocation("simple", false, "X-Developer-Auth", runtime.ParamLocationHeader, *params.XDeveloperAuth) + headerParam2, err = runtime.StyleParamWithOptions("simple", false, "X-Developer-Auth", *params.XDeveloperAuth, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationHeader, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -12347,14 +14451,14 @@ func NewSendUserOperationWithEndUserAccountRequestWithBody(server string, userId var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "userId", runtime.ParamLocationPath, userId) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "userId", userId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "address", runtime.ParamLocationPath, address) + pathParam1, err = runtime.StyleParamWithOptions("simple", false, "address", address, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -12379,7 +14483,7 @@ func NewSendUserOperationWithEndUserAccountRequestWithBody(server string, userId if params.ProjectID != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "projectID", runtime.ParamLocationQuery, *params.ProjectID); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "projectID", *params.ProjectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err @@ -12408,7 +14512,7 @@ func NewSendUserOperationWithEndUserAccountRequestWithBody(server string, userId if params.XIdempotencyKey != nil { var headerParam0 string - headerParam0, err = runtime.StyleParamWithLocation("simple", false, "X-Idempotency-Key", runtime.ParamLocationHeader, *params.XIdempotencyKey) + headerParam0, err = runtime.StyleParamWithOptions("simple", false, "X-Idempotency-Key", *params.XIdempotencyKey, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationHeader, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -12419,7 +14523,7 @@ func NewSendUserOperationWithEndUserAccountRequestWithBody(server string, userId if params.XWalletAuth != nil { var headerParam1 string - headerParam1, err = runtime.StyleParamWithLocation("simple", false, "X-Wallet-Auth", runtime.ParamLocationHeader, *params.XWalletAuth) + headerParam1, err = runtime.StyleParamWithOptions("simple", false, "X-Wallet-Auth", *params.XWalletAuth, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationHeader, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -12430,7 +14534,7 @@ func NewSendUserOperationWithEndUserAccountRequestWithBody(server string, userId if params.XDeveloperAuth != nil { var headerParam2 string - headerParam2, err = runtime.StyleParamWithLocation("simple", false, "X-Developer-Auth", runtime.ParamLocationHeader, *params.XDeveloperAuth) + headerParam2, err = runtime.StyleParamWithOptions("simple", false, "X-Developer-Auth", *params.XDeveloperAuth, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationHeader, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -12460,21 +14564,21 @@ func NewSendEvmAssetWithEndUserAccountRequestWithBody(server string, userId stri var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "userId", runtime.ParamLocationPath, userId) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "userId", userId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "address", runtime.ParamLocationPath, address) + pathParam1, err = runtime.StyleParamWithOptions("simple", false, "address", address, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "", Format: ""}) if err != nil { return nil, err } var pathParam2 string - pathParam2, err = runtime.StyleParamWithLocation("simple", false, "asset", runtime.ParamLocationPath, asset) + pathParam2, err = runtime.StyleParamWithOptions("simple", false, "asset", asset, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "", Format: ""}) if err != nil { return nil, err } @@ -12499,7 +14603,7 @@ func NewSendEvmAssetWithEndUserAccountRequestWithBody(server string, userId stri if params.ProjectID != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "projectID", runtime.ParamLocationQuery, *params.ProjectID); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "projectID", *params.ProjectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err @@ -12528,7 +14632,7 @@ func NewSendEvmAssetWithEndUserAccountRequestWithBody(server string, userId stri if params.XWalletAuth != nil { var headerParam0 string - headerParam0, err = runtime.StyleParamWithLocation("simple", false, "X-Wallet-Auth", runtime.ParamLocationHeader, *params.XWalletAuth) + headerParam0, err = runtime.StyleParamWithOptions("simple", false, "X-Wallet-Auth", *params.XWalletAuth, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationHeader, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -12539,7 +14643,7 @@ func NewSendEvmAssetWithEndUserAccountRequestWithBody(server string, userId stri if params.XIdempotencyKey != nil { var headerParam1 string - headerParam1, err = runtime.StyleParamWithLocation("simple", false, "X-Idempotency-Key", runtime.ParamLocationHeader, *params.XIdempotencyKey) + headerParam1, err = runtime.StyleParamWithOptions("simple", false, "X-Idempotency-Key", *params.XIdempotencyKey, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationHeader, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -12550,7 +14654,7 @@ func NewSendEvmAssetWithEndUserAccountRequestWithBody(server string, userId stri if params.XDeveloperAuth != nil { var headerParam2 string - headerParam2, err = runtime.StyleParamWithLocation("simple", false, "X-Developer-Auth", runtime.ParamLocationHeader, *params.XDeveloperAuth) + headerParam2, err = runtime.StyleParamWithOptions("simple", false, "X-Developer-Auth", *params.XDeveloperAuth, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationHeader, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -12580,7 +14684,7 @@ func NewSendSolanaTransactionWithEndUserAccountRequestWithBody(server string, us var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "userId", runtime.ParamLocationPath, userId) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "userId", userId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -12605,7 +14709,7 @@ func NewSendSolanaTransactionWithEndUserAccountRequestWithBody(server string, us if params.ProjectID != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "projectID", runtime.ParamLocationQuery, *params.ProjectID); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "projectID", *params.ProjectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err @@ -12634,7 +14738,7 @@ func NewSendSolanaTransactionWithEndUserAccountRequestWithBody(server string, us if params.XWalletAuth != nil { var headerParam0 string - headerParam0, err = runtime.StyleParamWithLocation("simple", false, "X-Wallet-Auth", runtime.ParamLocationHeader, *params.XWalletAuth) + headerParam0, err = runtime.StyleParamWithOptions("simple", false, "X-Wallet-Auth", *params.XWalletAuth, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationHeader, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -12645,7 +14749,7 @@ func NewSendSolanaTransactionWithEndUserAccountRequestWithBody(server string, us if params.XIdempotencyKey != nil { var headerParam1 string - headerParam1, err = runtime.StyleParamWithLocation("simple", false, "X-Idempotency-Key", runtime.ParamLocationHeader, *params.XIdempotencyKey) + headerParam1, err = runtime.StyleParamWithOptions("simple", false, "X-Idempotency-Key", *params.XIdempotencyKey, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationHeader, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -12656,7 +14760,7 @@ func NewSendSolanaTransactionWithEndUserAccountRequestWithBody(server string, us if params.XDeveloperAuth != nil { var headerParam2 string - headerParam2, err = runtime.StyleParamWithLocation("simple", false, "X-Developer-Auth", runtime.ParamLocationHeader, *params.XDeveloperAuth) + headerParam2, err = runtime.StyleParamWithOptions("simple", false, "X-Developer-Auth", *params.XDeveloperAuth, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationHeader, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -12686,7 +14790,7 @@ func NewSignSolanaMessageWithEndUserAccountRequestWithBody(server string, userId var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "userId", runtime.ParamLocationPath, userId) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "userId", userId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -12711,7 +14815,7 @@ func NewSignSolanaMessageWithEndUserAccountRequestWithBody(server string, userId if params.ProjectID != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "projectID", runtime.ParamLocationQuery, *params.ProjectID); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "projectID", *params.ProjectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err @@ -12740,7 +14844,7 @@ func NewSignSolanaMessageWithEndUserAccountRequestWithBody(server string, userId if params.XWalletAuth != nil { var headerParam0 string - headerParam0, err = runtime.StyleParamWithLocation("simple", false, "X-Wallet-Auth", runtime.ParamLocationHeader, *params.XWalletAuth) + headerParam0, err = runtime.StyleParamWithOptions("simple", false, "X-Wallet-Auth", *params.XWalletAuth, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationHeader, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -12751,7 +14855,7 @@ func NewSignSolanaMessageWithEndUserAccountRequestWithBody(server string, userId if params.XIdempotencyKey != nil { var headerParam1 string - headerParam1, err = runtime.StyleParamWithLocation("simple", false, "X-Idempotency-Key", runtime.ParamLocationHeader, *params.XIdempotencyKey) + headerParam1, err = runtime.StyleParamWithOptions("simple", false, "X-Idempotency-Key", *params.XIdempotencyKey, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationHeader, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -12762,7 +14866,7 @@ func NewSignSolanaMessageWithEndUserAccountRequestWithBody(server string, userId if params.XDeveloperAuth != nil { var headerParam2 string - headerParam2, err = runtime.StyleParamWithLocation("simple", false, "X-Developer-Auth", runtime.ParamLocationHeader, *params.XDeveloperAuth) + headerParam2, err = runtime.StyleParamWithOptions("simple", false, "X-Developer-Auth", *params.XDeveloperAuth, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationHeader, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -12792,7 +14896,7 @@ func NewSignSolanaTransactionWithEndUserAccountRequestWithBody(server string, us var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "userId", runtime.ParamLocationPath, userId) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "userId", userId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -12817,7 +14921,7 @@ func NewSignSolanaTransactionWithEndUserAccountRequestWithBody(server string, us if params.ProjectID != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "projectID", runtime.ParamLocationQuery, *params.ProjectID); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "projectID", *params.ProjectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err @@ -12846,7 +14950,7 @@ func NewSignSolanaTransactionWithEndUserAccountRequestWithBody(server string, us if params.XWalletAuth != nil { var headerParam0 string - headerParam0, err = runtime.StyleParamWithLocation("simple", false, "X-Wallet-Auth", runtime.ParamLocationHeader, *params.XWalletAuth) + headerParam0, err = runtime.StyleParamWithOptions("simple", false, "X-Wallet-Auth", *params.XWalletAuth, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationHeader, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -12857,7 +14961,7 @@ func NewSignSolanaTransactionWithEndUserAccountRequestWithBody(server string, us if params.XIdempotencyKey != nil { var headerParam1 string - headerParam1, err = runtime.StyleParamWithLocation("simple", false, "X-Idempotency-Key", runtime.ParamLocationHeader, *params.XIdempotencyKey) + headerParam1, err = runtime.StyleParamWithOptions("simple", false, "X-Idempotency-Key", *params.XIdempotencyKey, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationHeader, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -12868,7 +14972,7 @@ func NewSignSolanaTransactionWithEndUserAccountRequestWithBody(server string, us if params.XDeveloperAuth != nil { var headerParam2 string - headerParam2, err = runtime.StyleParamWithLocation("simple", false, "X-Developer-Auth", runtime.ParamLocationHeader, *params.XDeveloperAuth) + headerParam2, err = runtime.StyleParamWithOptions("simple", false, "X-Developer-Auth", *params.XDeveloperAuth, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationHeader, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -12898,21 +15002,21 @@ func NewSendSolanaAssetWithEndUserAccountRequestWithBody(server string, userId s var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "userId", runtime.ParamLocationPath, userId) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "userId", userId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "address", runtime.ParamLocationPath, address) + pathParam1, err = runtime.StyleParamWithOptions("simple", false, "address", address, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "", Format: ""}) if err != nil { return nil, err } var pathParam2 string - pathParam2, err = runtime.StyleParamWithLocation("simple", false, "asset", runtime.ParamLocationPath, asset) + pathParam2, err = runtime.StyleParamWithOptions("simple", false, "asset", asset, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "", Format: ""}) if err != nil { return nil, err } @@ -12937,7 +15041,7 @@ func NewSendSolanaAssetWithEndUserAccountRequestWithBody(server string, userId s if params.ProjectID != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "projectID", runtime.ParamLocationQuery, *params.ProjectID); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "projectID", *params.ProjectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err @@ -12966,7 +15070,7 @@ func NewSendSolanaAssetWithEndUserAccountRequestWithBody(server string, userId s if params.XWalletAuth != nil { var headerParam0 string - headerParam0, err = runtime.StyleParamWithLocation("simple", false, "X-Wallet-Auth", runtime.ParamLocationHeader, *params.XWalletAuth) + headerParam0, err = runtime.StyleParamWithOptions("simple", false, "X-Wallet-Auth", *params.XWalletAuth, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationHeader, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -12977,7 +15081,7 @@ func NewSendSolanaAssetWithEndUserAccountRequestWithBody(server string, userId s if params.XIdempotencyKey != nil { var headerParam1 string - headerParam1, err = runtime.StyleParamWithLocation("simple", false, "X-Idempotency-Key", runtime.ParamLocationHeader, *params.XIdempotencyKey) + headerParam1, err = runtime.StyleParamWithOptions("simple", false, "X-Idempotency-Key", *params.XIdempotencyKey, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationHeader, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -12988,7 +15092,7 @@ func NewSendSolanaAssetWithEndUserAccountRequestWithBody(server string, userId s if params.XDeveloperAuth != nil { var headerParam2 string - headerParam2, err = runtime.StyleParamWithLocation("simple", false, "X-Developer-Auth", runtime.ParamLocationHeader, *params.XDeveloperAuth) + headerParam2, err = runtime.StyleParamWithOptions("simple", false, "X-Developer-Auth", *params.XDeveloperAuth, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationHeader, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -13025,7 +15129,7 @@ func NewListEndUsersRequest(server string, params *ListEndUsersParams) (*http.Re if params.PageSize != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "pageSize", runtime.ParamLocationQuery, *params.PageSize); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "pageSize", *params.PageSize, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err @@ -13041,7 +15145,7 @@ func NewListEndUsersRequest(server string, params *ListEndUsersParams) (*http.Re if params.PageToken != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "pageToken", runtime.ParamLocationQuery, *params.PageToken); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "pageToken", *params.PageToken, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err @@ -13057,7 +15161,7 @@ func NewListEndUsersRequest(server string, params *ListEndUsersParams) (*http.Re if params.Sort != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", false, "sort", runtime.ParamLocationQuery, *params.Sort); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", false, "sort", *params.Sort, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "array", Format: ""}); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err @@ -13124,7 +15228,7 @@ func NewCreateEndUserRequestWithBody(server string, params *CreateEndUserParams, if params.XWalletAuth != nil { var headerParam0 string - headerParam0, err = runtime.StyleParamWithLocation("simple", false, "X-Wallet-Auth", runtime.ParamLocationHeader, *params.XWalletAuth) + headerParam0, err = runtime.StyleParamWithOptions("simple", false, "X-Wallet-Auth", *params.XWalletAuth, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationHeader, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -13135,7 +15239,7 @@ func NewCreateEndUserRequestWithBody(server string, params *CreateEndUserParams, if params.XIdempotencyKey != nil { var headerParam1 string - headerParam1, err = runtime.StyleParamWithLocation("simple", false, "X-Idempotency-Key", runtime.ParamLocationHeader, *params.XIdempotencyKey) + headerParam1, err = runtime.StyleParamWithOptions("simple", false, "X-Idempotency-Key", *params.XIdempotencyKey, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationHeader, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -13230,7 +15334,7 @@ func NewImportEndUserRequestWithBody(server string, params *ImportEndUserParams, if params.XWalletAuth != nil { var headerParam0 string - headerParam0, err = runtime.StyleParamWithLocation("simple", false, "X-Wallet-Auth", runtime.ParamLocationHeader, *params.XWalletAuth) + headerParam0, err = runtime.StyleParamWithOptions("simple", false, "X-Wallet-Auth", *params.XWalletAuth, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationHeader, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -13241,7 +15345,7 @@ func NewImportEndUserRequestWithBody(server string, params *ImportEndUserParams, if params.XIdempotencyKey != nil { var headerParam1 string - headerParam1, err = runtime.StyleParamWithLocation("simple", false, "X-Idempotency-Key", runtime.ParamLocationHeader, *params.XIdempotencyKey) + headerParam1, err = runtime.StyleParamWithOptions("simple", false, "X-Idempotency-Key", *params.XIdempotencyKey, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationHeader, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -13276,7 +15380,7 @@ func NewLookupEndUserRequest(server string, params *LookupEndUserParams) (*http. if params != nil { queryValues := queryURL.Query() - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "email", runtime.ParamLocationQuery, params.Email); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "email", params.Email, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: "email"}); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err @@ -13305,7 +15409,7 @@ func NewGetEndUserRequest(server string, userId string) (*http.Request, error) { var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "userId", runtime.ParamLocationPath, userId) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "userId", userId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -13350,7 +15454,7 @@ func NewAddEndUserEvmAccountRequestWithBody(server string, userId string, params var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "userId", runtime.ParamLocationPath, userId) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "userId", userId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -13382,7 +15486,7 @@ func NewAddEndUserEvmAccountRequestWithBody(server string, userId string, params if params.XWalletAuth != nil { var headerParam0 string - headerParam0, err = runtime.StyleParamWithLocation("simple", false, "X-Wallet-Auth", runtime.ParamLocationHeader, *params.XWalletAuth) + headerParam0, err = runtime.StyleParamWithOptions("simple", false, "X-Wallet-Auth", *params.XWalletAuth, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationHeader, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -13393,7 +15497,7 @@ func NewAddEndUserEvmAccountRequestWithBody(server string, userId string, params if params.XIdempotencyKey != nil { var headerParam1 string - headerParam1, err = runtime.StyleParamWithLocation("simple", false, "X-Idempotency-Key", runtime.ParamLocationHeader, *params.XIdempotencyKey) + headerParam1, err = runtime.StyleParamWithOptions("simple", false, "X-Idempotency-Key", *params.XIdempotencyKey, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationHeader, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -13423,7 +15527,7 @@ func NewAddEndUserEvmSmartAccountRequestWithBody(server string, userId string, p var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "userId", runtime.ParamLocationPath, userId) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "userId", userId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -13455,7 +15559,7 @@ func NewAddEndUserEvmSmartAccountRequestWithBody(server string, userId string, p if params.XWalletAuth != nil { var headerParam0 string - headerParam0, err = runtime.StyleParamWithLocation("simple", false, "X-Wallet-Auth", runtime.ParamLocationHeader, *params.XWalletAuth) + headerParam0, err = runtime.StyleParamWithOptions("simple", false, "X-Wallet-Auth", *params.XWalletAuth, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationHeader, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -13466,7 +15570,7 @@ func NewAddEndUserEvmSmartAccountRequestWithBody(server string, userId string, p if params.XIdempotencyKey != nil { var headerParam1 string - headerParam1, err = runtime.StyleParamWithLocation("simple", false, "X-Idempotency-Key", runtime.ParamLocationHeader, *params.XIdempotencyKey) + headerParam1, err = runtime.StyleParamWithOptions("simple", false, "X-Idempotency-Key", *params.XIdempotencyKey, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationHeader, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -13496,7 +15600,7 @@ func NewAddEndUserSolanaAccountRequestWithBody(server string, userId string, par var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "userId", runtime.ParamLocationPath, userId) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "userId", userId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -13528,7 +15632,7 @@ func NewAddEndUserSolanaAccountRequestWithBody(server string, userId string, par if params.XWalletAuth != nil { var headerParam0 string - headerParam0, err = runtime.StyleParamWithLocation("simple", false, "X-Wallet-Auth", runtime.ParamLocationHeader, *params.XWalletAuth) + headerParam0, err = runtime.StyleParamWithOptions("simple", false, "X-Wallet-Auth", *params.XWalletAuth, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationHeader, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -13539,7 +15643,7 @@ func NewAddEndUserSolanaAccountRequestWithBody(server string, userId string, par if params.XIdempotencyKey != nil { var headerParam1 string - headerParam1, err = runtime.StyleParamWithLocation("simple", false, "X-Idempotency-Key", runtime.ParamLocationHeader, *params.XIdempotencyKey) + headerParam1, err = runtime.StyleParamWithOptions("simple", false, "X-Idempotency-Key", *params.XIdempotencyKey, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationHeader, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -13576,7 +15680,7 @@ func NewListEvmAccountsRequest(server string, params *ListEvmAccountsParams) (*h if params.PageSize != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "pageSize", runtime.ParamLocationQuery, *params.PageSize); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "pageSize", *params.PageSize, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err @@ -13592,7 +15696,7 @@ func NewListEvmAccountsRequest(server string, params *ListEvmAccountsParams) (*h if params.PageToken != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "pageToken", runtime.ParamLocationQuery, *params.PageToken); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "pageToken", *params.PageToken, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err @@ -13659,7 +15763,7 @@ func NewCreateEvmAccountRequestWithBody(server string, params *CreateEvmAccountP if params.XWalletAuth != nil { var headerParam0 string - headerParam0, err = runtime.StyleParamWithLocation("simple", false, "X-Wallet-Auth", runtime.ParamLocationHeader, *params.XWalletAuth) + headerParam0, err = runtime.StyleParamWithOptions("simple", false, "X-Wallet-Auth", *params.XWalletAuth, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationHeader, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -13670,7 +15774,7 @@ func NewCreateEvmAccountRequestWithBody(server string, params *CreateEvmAccountP if params.XIdempotencyKey != nil { var headerParam1 string - headerParam1, err = runtime.StyleParamWithLocation("simple", false, "X-Idempotency-Key", runtime.ParamLocationHeader, *params.XIdempotencyKey) + headerParam1, err = runtime.StyleParamWithOptions("simple", false, "X-Idempotency-Key", *params.XIdempotencyKey, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationHeader, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -13689,7 +15793,7 @@ func NewGetEvmAccountByNameRequest(server string, name string) (*http.Request, e var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "name", runtime.ParamLocationPath, name) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "name", name, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -13734,7 +15838,7 @@ func NewExportEvmAccountByNameRequestWithBody(server string, name string, params var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "name", runtime.ParamLocationPath, name) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "name", name, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -13766,7 +15870,7 @@ func NewExportEvmAccountByNameRequestWithBody(server string, name string, params if params.XWalletAuth != nil { var headerParam0 string - headerParam0, err = runtime.StyleParamWithLocation("simple", false, "X-Wallet-Auth", runtime.ParamLocationHeader, *params.XWalletAuth) + headerParam0, err = runtime.StyleParamWithOptions("simple", false, "X-Wallet-Auth", *params.XWalletAuth, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationHeader, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -13777,7 +15881,7 @@ func NewExportEvmAccountByNameRequestWithBody(server string, name string, params if params.XIdempotencyKey != nil { var headerParam1 string - headerParam1, err = runtime.StyleParamWithLocation("simple", false, "X-Idempotency-Key", runtime.ParamLocationHeader, *params.XIdempotencyKey) + headerParam1, err = runtime.StyleParamWithOptions("simple", false, "X-Idempotency-Key", *params.XIdempotencyKey, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationHeader, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -13832,7 +15936,7 @@ func NewImportEvmAccountRequestWithBody(server string, params *ImportEvmAccountP if params.XWalletAuth != nil { var headerParam0 string - headerParam0, err = runtime.StyleParamWithLocation("simple", false, "X-Wallet-Auth", runtime.ParamLocationHeader, *params.XWalletAuth) + headerParam0, err = runtime.StyleParamWithOptions("simple", false, "X-Wallet-Auth", *params.XWalletAuth, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationHeader, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -13843,7 +15947,7 @@ func NewImportEvmAccountRequestWithBody(server string, params *ImportEvmAccountP if params.XIdempotencyKey != nil { var headerParam1 string - headerParam1, err = runtime.StyleParamWithLocation("simple", false, "X-Idempotency-Key", runtime.ParamLocationHeader, *params.XIdempotencyKey) + headerParam1, err = runtime.StyleParamWithOptions("simple", false, "X-Idempotency-Key", *params.XIdempotencyKey, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationHeader, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -13862,7 +15966,7 @@ func NewGetEvmAccountRequest(server string, address string) (*http.Request, erro var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "address", runtime.ParamLocationPath, address) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "address", address, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -13907,7 +16011,7 @@ func NewUpdateEvmAccountRequestWithBody(server string, address string, params *U var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "address", runtime.ParamLocationPath, address) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "address", address, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -13939,7 +16043,7 @@ func NewUpdateEvmAccountRequestWithBody(server string, address string, params *U if params.XIdempotencyKey != nil { var headerParam0 string - headerParam0, err = runtime.StyleParamWithLocation("simple", false, "X-Idempotency-Key", runtime.ParamLocationHeader, *params.XIdempotencyKey) + headerParam0, err = runtime.StyleParamWithOptions("simple", false, "X-Idempotency-Key", *params.XIdempotencyKey, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationHeader, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -13969,7 +16073,7 @@ func NewCreateEvmEip7702DelegationRequestWithBody(server string, address string, var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "address", runtime.ParamLocationPath, address) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "address", address, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -14001,7 +16105,7 @@ func NewCreateEvmEip7702DelegationRequestWithBody(server string, address string, if params.XWalletAuth != nil { var headerParam0 string - headerParam0, err = runtime.StyleParamWithLocation("simple", false, "X-Wallet-Auth", runtime.ParamLocationHeader, *params.XWalletAuth) + headerParam0, err = runtime.StyleParamWithOptions("simple", false, "X-Wallet-Auth", *params.XWalletAuth, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationHeader, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -14012,7 +16116,7 @@ func NewCreateEvmEip7702DelegationRequestWithBody(server string, address string, if params.XIdempotencyKey != nil { var headerParam1 string - headerParam1, err = runtime.StyleParamWithLocation("simple", false, "X-Idempotency-Key", runtime.ParamLocationHeader, *params.XIdempotencyKey) + headerParam1, err = runtime.StyleParamWithOptions("simple", false, "X-Idempotency-Key", *params.XIdempotencyKey, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationHeader, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -14042,7 +16146,7 @@ func NewExportEvmAccountRequestWithBody(server string, address string, params *E var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "address", runtime.ParamLocationPath, address) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "address", address, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -14074,7 +16178,7 @@ func NewExportEvmAccountRequestWithBody(server string, address string, params *E if params.XWalletAuth != nil { var headerParam0 string - headerParam0, err = runtime.StyleParamWithLocation("simple", false, "X-Wallet-Auth", runtime.ParamLocationHeader, *params.XWalletAuth) + headerParam0, err = runtime.StyleParamWithOptions("simple", false, "X-Wallet-Auth", *params.XWalletAuth, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationHeader, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -14085,7 +16189,7 @@ func NewExportEvmAccountRequestWithBody(server string, address string, params *E if params.XIdempotencyKey != nil { var headerParam1 string - headerParam1, err = runtime.StyleParamWithLocation("simple", false, "X-Idempotency-Key", runtime.ParamLocationHeader, *params.XIdempotencyKey) + headerParam1, err = runtime.StyleParamWithOptions("simple", false, "X-Idempotency-Key", *params.XIdempotencyKey, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationHeader, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -14115,7 +16219,7 @@ func NewSendEvmTransactionRequestWithBody(server string, address string, params var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "address", runtime.ParamLocationPath, address) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "address", address, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -14147,7 +16251,7 @@ func NewSendEvmTransactionRequestWithBody(server string, address string, params if params.XWalletAuth != nil { var headerParam0 string - headerParam0, err = runtime.StyleParamWithLocation("simple", false, "X-Wallet-Auth", runtime.ParamLocationHeader, *params.XWalletAuth) + headerParam0, err = runtime.StyleParamWithOptions("simple", false, "X-Wallet-Auth", *params.XWalletAuth, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationHeader, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -14158,7 +16262,7 @@ func NewSendEvmTransactionRequestWithBody(server string, address string, params if params.XIdempotencyKey != nil { var headerParam1 string - headerParam1, err = runtime.StyleParamWithLocation("simple", false, "X-Idempotency-Key", runtime.ParamLocationHeader, *params.XIdempotencyKey) + headerParam1, err = runtime.StyleParamWithOptions("simple", false, "X-Idempotency-Key", *params.XIdempotencyKey, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationHeader, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -14188,7 +16292,7 @@ func NewSignEvmHashRequestWithBody(server string, address string, params *SignEv var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "address", runtime.ParamLocationPath, address) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "address", address, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -14220,7 +16324,7 @@ func NewSignEvmHashRequestWithBody(server string, address string, params *SignEv if params.XWalletAuth != nil { var headerParam0 string - headerParam0, err = runtime.StyleParamWithLocation("simple", false, "X-Wallet-Auth", runtime.ParamLocationHeader, *params.XWalletAuth) + headerParam0, err = runtime.StyleParamWithOptions("simple", false, "X-Wallet-Auth", *params.XWalletAuth, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationHeader, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -14231,7 +16335,7 @@ func NewSignEvmHashRequestWithBody(server string, address string, params *SignEv if params.XIdempotencyKey != nil { var headerParam1 string - headerParam1, err = runtime.StyleParamWithLocation("simple", false, "X-Idempotency-Key", runtime.ParamLocationHeader, *params.XIdempotencyKey) + headerParam1, err = runtime.StyleParamWithOptions("simple", false, "X-Idempotency-Key", *params.XIdempotencyKey, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationHeader, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -14261,7 +16365,7 @@ func NewSignEvmMessageRequestWithBody(server string, address string, params *Sig var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "address", runtime.ParamLocationPath, address) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "address", address, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -14293,7 +16397,7 @@ func NewSignEvmMessageRequestWithBody(server string, address string, params *Sig if params.XWalletAuth != nil { var headerParam0 string - headerParam0, err = runtime.StyleParamWithLocation("simple", false, "X-Wallet-Auth", runtime.ParamLocationHeader, *params.XWalletAuth) + headerParam0, err = runtime.StyleParamWithOptions("simple", false, "X-Wallet-Auth", *params.XWalletAuth, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationHeader, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -14304,7 +16408,7 @@ func NewSignEvmMessageRequestWithBody(server string, address string, params *Sig if params.XIdempotencyKey != nil { var headerParam1 string - headerParam1, err = runtime.StyleParamWithLocation("simple", false, "X-Idempotency-Key", runtime.ParamLocationHeader, *params.XIdempotencyKey) + headerParam1, err = runtime.StyleParamWithOptions("simple", false, "X-Idempotency-Key", *params.XIdempotencyKey, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationHeader, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -14334,7 +16438,7 @@ func NewSignEvmTransactionRequestWithBody(server string, address string, params var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "address", runtime.ParamLocationPath, address) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "address", address, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -14366,7 +16470,7 @@ func NewSignEvmTransactionRequestWithBody(server string, address string, params if params.XWalletAuth != nil { var headerParam0 string - headerParam0, err = runtime.StyleParamWithLocation("simple", false, "X-Wallet-Auth", runtime.ParamLocationHeader, *params.XWalletAuth) + headerParam0, err = runtime.StyleParamWithOptions("simple", false, "X-Wallet-Auth", *params.XWalletAuth, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationHeader, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -14377,7 +16481,7 @@ func NewSignEvmTransactionRequestWithBody(server string, address string, params if params.XIdempotencyKey != nil { var headerParam1 string - headerParam1, err = runtime.StyleParamWithLocation("simple", false, "X-Idempotency-Key", runtime.ParamLocationHeader, *params.XIdempotencyKey) + headerParam1, err = runtime.StyleParamWithOptions("simple", false, "X-Idempotency-Key", *params.XIdempotencyKey, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationHeader, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -14407,7 +16511,7 @@ func NewSignEvmTypedDataRequestWithBody(server string, address string, params *S var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "address", runtime.ParamLocationPath, address) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "address", address, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -14439,7 +16543,7 @@ func NewSignEvmTypedDataRequestWithBody(server string, address string, params *S if params.XWalletAuth != nil { var headerParam0 string - headerParam0, err = runtime.StyleParamWithLocation("simple", false, "X-Wallet-Auth", runtime.ParamLocationHeader, *params.XWalletAuth) + headerParam0, err = runtime.StyleParamWithOptions("simple", false, "X-Wallet-Auth", *params.XWalletAuth, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationHeader, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -14450,7 +16554,7 @@ func NewSignEvmTypedDataRequestWithBody(server string, address string, params *S if params.XIdempotencyKey != nil { var headerParam1 string - headerParam1, err = runtime.StyleParamWithLocation("simple", false, "X-Idempotency-Key", runtime.ParamLocationHeader, *params.XIdempotencyKey) + headerParam1, err = runtime.StyleParamWithOptions("simple", false, "X-Idempotency-Key", *params.XIdempotencyKey, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationHeader, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -14469,7 +16573,7 @@ func NewGetEvmEip7702DelegationOperationByIdRequest(server string, delegationOpe var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "delegationOperationId", runtime.ParamLocationPath, delegationOperationId) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "delegationOperationId", delegationOperationId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } @@ -14561,7 +16665,7 @@ func NewListEvmSmartAccountsRequest(server string, params *ListEvmSmartAccountsP if params.PageSize != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "pageSize", runtime.ParamLocationQuery, *params.PageSize); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "pageSize", *params.PageSize, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err @@ -14577,7 +16681,7 @@ func NewListEvmSmartAccountsRequest(server string, params *ListEvmSmartAccountsP if params.PageToken != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "pageToken", runtime.ParamLocationQuery, *params.PageToken); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "pageToken", *params.PageToken, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err @@ -14644,7 +16748,7 @@ func NewCreateEvmSmartAccountRequestWithBody(server string, params *CreateEvmSma if params.XIdempotencyKey != nil { var headerParam0 string - headerParam0, err = runtime.StyleParamWithLocation("simple", false, "X-Idempotency-Key", runtime.ParamLocationHeader, *params.XIdempotencyKey) + headerParam0, err = runtime.StyleParamWithOptions("simple", false, "X-Idempotency-Key", *params.XIdempotencyKey, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationHeader, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -14663,7 +16767,7 @@ func NewGetEvmSmartAccountByNameRequest(server string, name string) (*http.Reque var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "name", runtime.ParamLocationPath, name) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "name", name, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -14697,7 +16801,7 @@ func NewGetEvmSmartAccountRequest(server string, address string) (*http.Request, var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "address", runtime.ParamLocationPath, address) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "address", address, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -14742,7 +16846,7 @@ func NewUpdateEvmSmartAccountRequestWithBody(server string, address string, cont var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "address", runtime.ParamLocationPath, address) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "address", address, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -14789,7 +16893,7 @@ func NewCreateSpendPermissionRequestWithBody(server string, address string, para var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "address", runtime.ParamLocationPath, address) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "address", address, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -14821,7 +16925,7 @@ func NewCreateSpendPermissionRequestWithBody(server string, address string, para if params.XWalletAuth != nil { var headerParam0 string - headerParam0, err = runtime.StyleParamWithLocation("simple", false, "X-Wallet-Auth", runtime.ParamLocationHeader, *params.XWalletAuth) + headerParam0, err = runtime.StyleParamWithOptions("simple", false, "X-Wallet-Auth", *params.XWalletAuth, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationHeader, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -14832,7 +16936,7 @@ func NewCreateSpendPermissionRequestWithBody(server string, address string, para if params.XIdempotencyKey != nil { var headerParam1 string - headerParam1, err = runtime.StyleParamWithLocation("simple", false, "X-Idempotency-Key", runtime.ParamLocationHeader, *params.XIdempotencyKey) + headerParam1, err = runtime.StyleParamWithOptions("simple", false, "X-Idempotency-Key", *params.XIdempotencyKey, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationHeader, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -14851,7 +16955,7 @@ func NewListSpendPermissionsRequest(server string, address string, params *ListS var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "address", runtime.ParamLocationPath, address) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "address", address, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -14876,7 +16980,7 @@ func NewListSpendPermissionsRequest(server string, address string, params *ListS if params.PageSize != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "pageSize", runtime.ParamLocationQuery, *params.PageSize); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "pageSize", *params.PageSize, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err @@ -14892,7 +16996,7 @@ func NewListSpendPermissionsRequest(server string, address string, params *ListS if params.PageToken != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "pageToken", runtime.ParamLocationQuery, *params.PageToken); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "pageToken", *params.PageToken, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err @@ -14934,7 +17038,7 @@ func NewRevokeSpendPermissionRequestWithBody(server string, address string, para var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "address", runtime.ParamLocationPath, address) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "address", address, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -14966,7 +17070,7 @@ func NewRevokeSpendPermissionRequestWithBody(server string, address string, para if params.XWalletAuth != nil { var headerParam0 string - headerParam0, err = runtime.StyleParamWithLocation("simple", false, "X-Wallet-Auth", runtime.ParamLocationHeader, *params.XWalletAuth) + headerParam0, err = runtime.StyleParamWithOptions("simple", false, "X-Wallet-Auth", *params.XWalletAuth, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationHeader, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -14977,7 +17081,7 @@ func NewRevokeSpendPermissionRequestWithBody(server string, address string, para if params.XIdempotencyKey != nil { var headerParam1 string - headerParam1, err = runtime.StyleParamWithLocation("simple", false, "X-Idempotency-Key", runtime.ParamLocationHeader, *params.XIdempotencyKey) + headerParam1, err = runtime.StyleParamWithOptions("simple", false, "X-Idempotency-Key", *params.XIdempotencyKey, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationHeader, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -15007,7 +17111,7 @@ func NewPrepareUserOperationRequestWithBody(server string, address string, conte var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "address", runtime.ParamLocationPath, address) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "address", address, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -15054,7 +17158,7 @@ func NewPrepareAndSendUserOperationRequestWithBody(server string, address string var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "address", runtime.ParamLocationPath, address) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "address", address, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -15086,7 +17190,7 @@ func NewPrepareAndSendUserOperationRequestWithBody(server string, address string if params.XIdempotencyKey != nil { var headerParam0 string - headerParam0, err = runtime.StyleParamWithLocation("simple", false, "X-Idempotency-Key", runtime.ParamLocationHeader, *params.XIdempotencyKey) + headerParam0, err = runtime.StyleParamWithOptions("simple", false, "X-Idempotency-Key", *params.XIdempotencyKey, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationHeader, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -15097,7 +17201,7 @@ func NewPrepareAndSendUserOperationRequestWithBody(server string, address string if params.XWalletAuth != nil { var headerParam1 string - headerParam1, err = runtime.StyleParamWithLocation("simple", false, "X-Wallet-Auth", runtime.ParamLocationHeader, *params.XWalletAuth) + headerParam1, err = runtime.StyleParamWithOptions("simple", false, "X-Wallet-Auth", *params.XWalletAuth, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationHeader, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -15116,14 +17220,14 @@ func NewGetUserOperationRequest(server string, address string, userOpHash string var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "address", runtime.ParamLocationPath, address) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "address", address, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "userOpHash", runtime.ParamLocationPath, userOpHash) + pathParam1, err = runtime.StyleParamWithOptions("simple", false, "userOpHash", userOpHash, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -15168,14 +17272,14 @@ func NewSendUserOperationRequestWithBody(server string, address string, userOpHa var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "address", runtime.ParamLocationPath, address) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "address", address, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "userOpHash", runtime.ParamLocationPath, userOpHash) + pathParam1, err = runtime.StyleParamWithOptions("simple", false, "userOpHash", userOpHash, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -15247,7 +17351,7 @@ func NewCreateEvmSwapQuoteRequestWithBody(server string, params *CreateEvmSwapQu if params.XIdempotencyKey != nil { var headerParam0 string - headerParam0, err = runtime.StyleParamWithLocation("simple", false, "X-Idempotency-Key", runtime.ParamLocationHeader, *params.XIdempotencyKey) + headerParam0, err = runtime.StyleParamWithOptions("simple", false, "X-Idempotency-Key", *params.XIdempotencyKey, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationHeader, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -15282,7 +17386,7 @@ func NewGetEvmSwapPriceRequest(server string, params *GetEvmSwapPriceParams) (*h if params != nil { queryValues := queryURL.Query() - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "network", runtime.ParamLocationQuery, params.Network); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "network", params.Network, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err @@ -15294,7 +17398,7 @@ func NewGetEvmSwapPriceRequest(server string, params *GetEvmSwapPriceParams) (*h } } - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "toToken", runtime.ParamLocationQuery, params.ToToken); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "toToken", params.ToToken, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err @@ -15306,7 +17410,7 @@ func NewGetEvmSwapPriceRequest(server string, params *GetEvmSwapPriceParams) (*h } } - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "fromToken", runtime.ParamLocationQuery, params.FromToken); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "fromToken", params.FromToken, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err @@ -15318,7 +17422,7 @@ func NewGetEvmSwapPriceRequest(server string, params *GetEvmSwapPriceParams) (*h } } - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "fromAmount", runtime.ParamLocationQuery, params.FromAmount); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "fromAmount", params.FromAmount, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err @@ -15330,7 +17434,7 @@ func NewGetEvmSwapPriceRequest(server string, params *GetEvmSwapPriceParams) (*h } } - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "taker", runtime.ParamLocationQuery, params.Taker); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "taker", params.Taker, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err @@ -15344,7 +17448,7 @@ func NewGetEvmSwapPriceRequest(server string, params *GetEvmSwapPriceParams) (*h if params.SignerAddress != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "signerAddress", runtime.ParamLocationQuery, *params.SignerAddress); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "signerAddress", *params.SignerAddress, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err @@ -15360,7 +17464,7 @@ func NewGetEvmSwapPriceRequest(server string, params *GetEvmSwapPriceParams) (*h if params.GasPrice != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "gasPrice", runtime.ParamLocationQuery, *params.GasPrice); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "gasPrice", *params.GasPrice, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err @@ -15376,7 +17480,7 @@ func NewGetEvmSwapPriceRequest(server string, params *GetEvmSwapPriceParams) (*h if params.SlippageBps != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slippageBps", runtime.ParamLocationQuery, *params.SlippageBps); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "slippageBps", *params.SlippageBps, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err @@ -15407,14 +17511,14 @@ func NewListEvmTokenBalancesRequest(server string, network ListEvmTokenBalancesN var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "network", runtime.ParamLocationPath, network) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "network", network, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "address", runtime.ParamLocationPath, address) + pathParam1, err = runtime.StyleParamWithOptions("simple", false, "address", address, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -15439,7 +17543,7 @@ func NewListEvmTokenBalancesRequest(server string, network ListEvmTokenBalancesN if params.PageSize != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "pageSize", runtime.ParamLocationQuery, *params.PageSize); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "pageSize", *params.PageSize, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err @@ -15455,7 +17559,7 @@ func NewListEvmTokenBalancesRequest(server string, network ListEvmTokenBalancesN if params.PageToken != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "pageToken", runtime.ParamLocationQuery, *params.PageToken); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "pageToken", *params.PageToken, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err @@ -15566,7 +17670,7 @@ func NewGetOnrampOrderByIdRequest(server string, orderId string) (*http.Request, var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "orderId", runtime.ParamLocationPath, orderId) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "orderId", orderId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -15658,7 +17762,7 @@ func NewListPoliciesRequest(server string, params *ListPoliciesParams) (*http.Re if params.PageSize != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "pageSize", runtime.ParamLocationQuery, *params.PageSize); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "pageSize", *params.PageSize, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err @@ -15674,7 +17778,7 @@ func NewListPoliciesRequest(server string, params *ListPoliciesParams) (*http.Re if params.PageToken != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "pageToken", runtime.ParamLocationQuery, *params.PageToken); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "pageToken", *params.PageToken, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err @@ -15690,7 +17794,7 @@ func NewListPoliciesRequest(server string, params *ListPoliciesParams) (*http.Re if params.Scope != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "scope", runtime.ParamLocationQuery, *params.Scope); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "scope", *params.Scope, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err @@ -15757,7 +17861,7 @@ func NewCreatePolicyRequestWithBody(server string, params *CreatePolicyParams, c if params.XIdempotencyKey != nil { var headerParam0 string - headerParam0, err = runtime.StyleParamWithLocation("simple", false, "X-Idempotency-Key", runtime.ParamLocationHeader, *params.XIdempotencyKey) + headerParam0, err = runtime.StyleParamWithOptions("simple", false, "X-Idempotency-Key", *params.XIdempotencyKey, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationHeader, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -15776,7 +17880,7 @@ func NewDeletePolicyRequest(server string, policyId string, params *DeletePolicy var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "policyId", runtime.ParamLocationPath, policyId) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "policyId", policyId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -15806,7 +17910,7 @@ func NewDeletePolicyRequest(server string, policyId string, params *DeletePolicy if params.XIdempotencyKey != nil { var headerParam0 string - headerParam0, err = runtime.StyleParamWithLocation("simple", false, "X-Idempotency-Key", runtime.ParamLocationHeader, *params.XIdempotencyKey) + headerParam0, err = runtime.StyleParamWithOptions("simple", false, "X-Idempotency-Key", *params.XIdempotencyKey, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationHeader, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -15825,7 +17929,7 @@ func NewGetPolicyByIdRequest(server string, policyId string) (*http.Request, err var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "policyId", runtime.ParamLocationPath, policyId) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "policyId", policyId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -15870,7 +17974,7 @@ func NewUpdatePolicyRequestWithBody(server string, policyId string, params *Upda var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "policyId", runtime.ParamLocationPath, policyId) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "policyId", policyId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -15902,7 +18006,7 @@ func NewUpdatePolicyRequestWithBody(server string, policyId string, params *Upda if params.XIdempotencyKey != nil { var headerParam0 string - headerParam0, err = runtime.StyleParamWithLocation("simple", false, "X-Idempotency-Key", runtime.ParamLocationHeader, *params.XIdempotencyKey) + headerParam0, err = runtime.StyleParamWithOptions("simple", false, "X-Idempotency-Key", *params.XIdempotencyKey, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationHeader, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -15939,7 +18043,7 @@ func NewListSolanaAccountsRequest(server string, params *ListSolanaAccountsParam if params.PageSize != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "pageSize", runtime.ParamLocationQuery, *params.PageSize); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "pageSize", *params.PageSize, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err @@ -15955,7 +18059,7 @@ func NewListSolanaAccountsRequest(server string, params *ListSolanaAccountsParam if params.PageToken != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "pageToken", runtime.ParamLocationQuery, *params.PageToken); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "pageToken", *params.PageToken, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err @@ -16022,7 +18126,7 @@ func NewCreateSolanaAccountRequestWithBody(server string, params *CreateSolanaAc if params.XWalletAuth != nil { var headerParam0 string - headerParam0, err = runtime.StyleParamWithLocation("simple", false, "X-Wallet-Auth", runtime.ParamLocationHeader, *params.XWalletAuth) + headerParam0, err = runtime.StyleParamWithOptions("simple", false, "X-Wallet-Auth", *params.XWalletAuth, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationHeader, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -16033,7 +18137,7 @@ func NewCreateSolanaAccountRequestWithBody(server string, params *CreateSolanaAc if params.XIdempotencyKey != nil { var headerParam1 string - headerParam1, err = runtime.StyleParamWithLocation("simple", false, "X-Idempotency-Key", runtime.ParamLocationHeader, *params.XIdempotencyKey) + headerParam1, err = runtime.StyleParamWithOptions("simple", false, "X-Idempotency-Key", *params.XIdempotencyKey, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationHeader, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -16052,7 +18156,7 @@ func NewGetSolanaAccountByNameRequest(server string, name string) (*http.Request var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "name", runtime.ParamLocationPath, name) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "name", name, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -16097,7 +18201,7 @@ func NewExportSolanaAccountByNameRequestWithBody(server string, name string, par var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "name", runtime.ParamLocationPath, name) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "name", name, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -16129,7 +18233,7 @@ func NewExportSolanaAccountByNameRequestWithBody(server string, name string, par if params.XWalletAuth != nil { var headerParam0 string - headerParam0, err = runtime.StyleParamWithLocation("simple", false, "X-Wallet-Auth", runtime.ParamLocationHeader, *params.XWalletAuth) + headerParam0, err = runtime.StyleParamWithOptions("simple", false, "X-Wallet-Auth", *params.XWalletAuth, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationHeader, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -16140,7 +18244,7 @@ func NewExportSolanaAccountByNameRequestWithBody(server string, name string, par if params.XIdempotencyKey != nil { var headerParam1 string - headerParam1, err = runtime.StyleParamWithLocation("simple", false, "X-Idempotency-Key", runtime.ParamLocationHeader, *params.XIdempotencyKey) + headerParam1, err = runtime.StyleParamWithOptions("simple", false, "X-Idempotency-Key", *params.XIdempotencyKey, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationHeader, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -16195,7 +18299,7 @@ func NewImportSolanaAccountRequestWithBody(server string, params *ImportSolanaAc if params.XWalletAuth != nil { var headerParam0 string - headerParam0, err = runtime.StyleParamWithLocation("simple", false, "X-Wallet-Auth", runtime.ParamLocationHeader, *params.XWalletAuth) + headerParam0, err = runtime.StyleParamWithOptions("simple", false, "X-Wallet-Auth", *params.XWalletAuth, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationHeader, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -16206,7 +18310,7 @@ func NewImportSolanaAccountRequestWithBody(server string, params *ImportSolanaAc if params.XIdempotencyKey != nil { var headerParam1 string - headerParam1, err = runtime.StyleParamWithLocation("simple", false, "X-Idempotency-Key", runtime.ParamLocationHeader, *params.XIdempotencyKey) + headerParam1, err = runtime.StyleParamWithOptions("simple", false, "X-Idempotency-Key", *params.XIdempotencyKey, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationHeader, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -16261,7 +18365,7 @@ func NewSendSolanaTransactionRequestWithBody(server string, params *SendSolanaTr if params.XWalletAuth != nil { var headerParam0 string - headerParam0, err = runtime.StyleParamWithLocation("simple", false, "X-Wallet-Auth", runtime.ParamLocationHeader, *params.XWalletAuth) + headerParam0, err = runtime.StyleParamWithOptions("simple", false, "X-Wallet-Auth", *params.XWalletAuth, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationHeader, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -16272,7 +18376,7 @@ func NewSendSolanaTransactionRequestWithBody(server string, params *SendSolanaTr if params.XIdempotencyKey != nil { var headerParam1 string - headerParam1, err = runtime.StyleParamWithLocation("simple", false, "X-Idempotency-Key", runtime.ParamLocationHeader, *params.XIdempotencyKey) + headerParam1, err = runtime.StyleParamWithOptions("simple", false, "X-Idempotency-Key", *params.XIdempotencyKey, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationHeader, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -16291,7 +18395,7 @@ func NewGetSolanaAccountRequest(server string, address string) (*http.Request, e var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "address", runtime.ParamLocationPath, address) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "address", address, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -16336,7 +18440,7 @@ func NewUpdateSolanaAccountRequestWithBody(server string, address string, params var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "address", runtime.ParamLocationPath, address) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "address", address, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -16368,7 +18472,7 @@ func NewUpdateSolanaAccountRequestWithBody(server string, address string, params if params.XIdempotencyKey != nil { var headerParam0 string - headerParam0, err = runtime.StyleParamWithLocation("simple", false, "X-Idempotency-Key", runtime.ParamLocationHeader, *params.XIdempotencyKey) + headerParam0, err = runtime.StyleParamWithOptions("simple", false, "X-Idempotency-Key", *params.XIdempotencyKey, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationHeader, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -16398,7 +18502,7 @@ func NewExportSolanaAccountRequestWithBody(server string, address string, params var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "address", runtime.ParamLocationPath, address) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "address", address, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -16430,7 +18534,7 @@ func NewExportSolanaAccountRequestWithBody(server string, address string, params if params.XWalletAuth != nil { var headerParam0 string - headerParam0, err = runtime.StyleParamWithLocation("simple", false, "X-Wallet-Auth", runtime.ParamLocationHeader, *params.XWalletAuth) + headerParam0, err = runtime.StyleParamWithOptions("simple", false, "X-Wallet-Auth", *params.XWalletAuth, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationHeader, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -16441,7 +18545,7 @@ func NewExportSolanaAccountRequestWithBody(server string, address string, params if params.XIdempotencyKey != nil { var headerParam1 string - headerParam1, err = runtime.StyleParamWithLocation("simple", false, "X-Idempotency-Key", runtime.ParamLocationHeader, *params.XIdempotencyKey) + headerParam1, err = runtime.StyleParamWithOptions("simple", false, "X-Idempotency-Key", *params.XIdempotencyKey, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationHeader, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -16471,7 +18575,7 @@ func NewSignSolanaMessageRequestWithBody(server string, address string, params * var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "address", runtime.ParamLocationPath, address) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "address", address, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -16503,7 +18607,7 @@ func NewSignSolanaMessageRequestWithBody(server string, address string, params * if params.XWalletAuth != nil { var headerParam0 string - headerParam0, err = runtime.StyleParamWithLocation("simple", false, "X-Wallet-Auth", runtime.ParamLocationHeader, *params.XWalletAuth) + headerParam0, err = runtime.StyleParamWithOptions("simple", false, "X-Wallet-Auth", *params.XWalletAuth, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationHeader, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -16514,7 +18618,7 @@ func NewSignSolanaMessageRequestWithBody(server string, address string, params * if params.XIdempotencyKey != nil { var headerParam1 string - headerParam1, err = runtime.StyleParamWithLocation("simple", false, "X-Idempotency-Key", runtime.ParamLocationHeader, *params.XIdempotencyKey) + headerParam1, err = runtime.StyleParamWithOptions("simple", false, "X-Idempotency-Key", *params.XIdempotencyKey, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationHeader, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -16544,7 +18648,7 @@ func NewSignSolanaTransactionRequestWithBody(server string, address string, para var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "address", runtime.ParamLocationPath, address) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "address", address, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -16576,7 +18680,7 @@ func NewSignSolanaTransactionRequestWithBody(server string, address string, para if params.XWalletAuth != nil { var headerParam0 string - headerParam0, err = runtime.StyleParamWithLocation("simple", false, "X-Wallet-Auth", runtime.ParamLocationHeader, *params.XWalletAuth) + headerParam0, err = runtime.StyleParamWithOptions("simple", false, "X-Wallet-Auth", *params.XWalletAuth, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationHeader, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -16587,7 +18691,7 @@ func NewSignSolanaTransactionRequestWithBody(server string, address string, para if params.XIdempotencyKey != nil { var headerParam1 string - headerParam1, err = runtime.StyleParamWithLocation("simple", false, "X-Idempotency-Key", runtime.ParamLocationHeader, *params.XIdempotencyKey) + headerParam1, err = runtime.StyleParamWithOptions("simple", false, "X-Idempotency-Key", *params.XIdempotencyKey, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationHeader, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -16646,14 +18750,14 @@ func NewListSolanaTokenBalancesRequest(server string, network ListSolanaTokenBal var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "network", runtime.ParamLocationPath, network) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "network", network, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "address", runtime.ParamLocationPath, address) + pathParam1, err = runtime.StyleParamWithOptions("simple", false, "address", address, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -16678,7 +18782,7 @@ func NewListSolanaTokenBalancesRequest(server string, network ListSolanaTokenBal if params.PageSize != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "pageSize", runtime.ParamLocationQuery, *params.PageSize); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "pageSize", *params.PageSize, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err @@ -16694,7 +18798,7 @@ func NewListSolanaTokenBalancesRequest(server string, network ListSolanaTokenBal if params.PageToken != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "pageToken", runtime.ParamLocationQuery, *params.PageToken); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "pageToken", *params.PageToken, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err @@ -17810,10 +19914,10 @@ type SendEvmAssetWithEndUserAccountResponse struct { HTTPResponse *http.Response JSON200 *struct { // TransactionHash The hash of the transaction, as a 0x-prefixed hex string. Populated for EOA accounts. Null for Smart Accounts (use userOpHash instead). - TransactionHash *string `json:"transactionHash"` + TransactionHash *string `json:"transactionHash,omitempty"` // UserOpHash The hash of the user operation, as a 0x-prefixed hex string. Populated for Smart Accounts. Null for EOA accounts (use transactionHash instead). - UserOpHash *string `json:"userOpHash"` + UserOpHash *string `json:"userOpHash,omitempty"` } JSON400 *Error JSON401 *UnauthorizedError @@ -22503,10 +24607,10 @@ func ParseSendEvmAssetWithEndUserAccountResponse(rsp *http.Response) (*SendEvmAs case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: var dest struct { // TransactionHash The hash of the transaction, as a 0x-prefixed hex string. Populated for EOA accounts. Null for Smart Accounts (use userOpHash instead). - TransactionHash *string `json:"transactionHash"` + TransactionHash *string `json:"transactionHash,omitempty"` // UserOpHash The hash of the user operation, as a 0x-prefixed hex string. Populated for Smart Accounts. Null for EOA accounts (use transactionHash instead). - UserOpHash *string `json:"userOpHash"` + UserOpHash *string `json:"userOpHash,omitempty"` } if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err diff --git a/java/src/main/java/com/coinbase/cdp/openapi/api/EmbeddedWalletsApi.java b/java/src/main/java/com/coinbase/cdp/openapi/api/EmbeddedWalletsApi.java index 71dba1eb4..b75b27bf9 100644 --- a/java/src/main/java/com/coinbase/cdp/openapi/api/EmbeddedWalletsApi.java +++ b/java/src/main/java/com/coinbase/cdp/openapi/api/EmbeddedWalletsApi.java @@ -341,10 +341,11 @@ private HttpRequest.Builder getDelegationForEndUserRequestBuilder(String userId, * @param xWalletAuth A JWT signed using your Wallet Secret, encoded in base64. Refer to the [Generate Wallet Token](https://docs.cdp.coinbase.com/api-reference/v2/authentication#2-generate-wallet-token) section of our Authentication docs for more details on how to generate your Wallet Token. (optional) * @param xDeveloperAuth A JWT signed using your Wallet Secret, encoded in base64. Refer to the [Generate Wallet Token](https://docs.cdp.coinbase.com/api-reference/v2/authentication#2-generate-wallet-token) section of our Authentication docs for more details on how to generate your Wallet Token. (optional) * @param xIdempotencyKey An optional string request header for making requests safely retryable. When included, duplicate requests with the same key will return identical responses. Refer to our [Idempotency docs](https://docs.cdp.coinbase.com/api-reference/v2/idempotency) for more information on using idempotency keys. (optional) + * @param projectID The ID of the CDP Project. Required for end users authenticated using custom auth (i.e. a non-CDP JWT provider). (optional) * @throws ApiException if fails to make API call */ - public void revokeDelegationForEndUser(String userId, RevokeDelegationForEndUserRequest revokeDelegationForEndUserRequest, String xWalletAuth, String xDeveloperAuth, String xIdempotencyKey) throws ApiException { - revokeDelegationForEndUserWithHttpInfo(userId, revokeDelegationForEndUserRequest, xWalletAuth, xDeveloperAuth, xIdempotencyKey); + public void revokeDelegationForEndUser(String userId, RevokeDelegationForEndUserRequest revokeDelegationForEndUserRequest, String xWalletAuth, String xDeveloperAuth, String xIdempotencyKey, String projectID) throws ApiException { + revokeDelegationForEndUserWithHttpInfo(userId, revokeDelegationForEndUserRequest, xWalletAuth, xDeveloperAuth, xIdempotencyKey, projectID); } /** @@ -355,11 +356,12 @@ public void revokeDelegationForEndUser(String userId, RevokeDelegationForEndUser * @param xWalletAuth A JWT signed using your Wallet Secret, encoded in base64. Refer to the [Generate Wallet Token](https://docs.cdp.coinbase.com/api-reference/v2/authentication#2-generate-wallet-token) section of our Authentication docs for more details on how to generate your Wallet Token. (optional) * @param xDeveloperAuth A JWT signed using your Wallet Secret, encoded in base64. Refer to the [Generate Wallet Token](https://docs.cdp.coinbase.com/api-reference/v2/authentication#2-generate-wallet-token) section of our Authentication docs for more details on how to generate your Wallet Token. (optional) * @param xIdempotencyKey An optional string request header for making requests safely retryable. When included, duplicate requests with the same key will return identical responses. Refer to our [Idempotency docs](https://docs.cdp.coinbase.com/api-reference/v2/idempotency) for more information on using idempotency keys. (optional) + * @param projectID The ID of the CDP Project. Required for end users authenticated using custom auth (i.e. a non-CDP JWT provider). (optional) * @return ApiResponse<Void> * @throws ApiException if fails to make API call */ - public ApiResponse revokeDelegationForEndUserWithHttpInfo(String userId, RevokeDelegationForEndUserRequest revokeDelegationForEndUserRequest, String xWalletAuth, String xDeveloperAuth, String xIdempotencyKey) throws ApiException { - HttpRequest.Builder localVarRequestBuilder = revokeDelegationForEndUserRequestBuilder(userId, revokeDelegationForEndUserRequest, xWalletAuth, xDeveloperAuth, xIdempotencyKey); + public ApiResponse revokeDelegationForEndUserWithHttpInfo(String userId, RevokeDelegationForEndUserRequest revokeDelegationForEndUserRequest, String xWalletAuth, String xDeveloperAuth, String xIdempotencyKey, String projectID) throws ApiException { + HttpRequest.Builder localVarRequestBuilder = revokeDelegationForEndUserRequestBuilder(userId, revokeDelegationForEndUserRequest, xWalletAuth, xDeveloperAuth, xIdempotencyKey, projectID); try { HttpResponse localVarResponse = memberVarHttpClient.send( localVarRequestBuilder.build(), @@ -392,7 +394,7 @@ public ApiResponse revokeDelegationForEndUserWithHttpInfo(String userId, R } } - private HttpRequest.Builder revokeDelegationForEndUserRequestBuilder(String userId, RevokeDelegationForEndUserRequest revokeDelegationForEndUserRequest, String xWalletAuth, String xDeveloperAuth, String xIdempotencyKey) throws ApiException { + private HttpRequest.Builder revokeDelegationForEndUserRequestBuilder(String userId, RevokeDelegationForEndUserRequest revokeDelegationForEndUserRequest, String xWalletAuth, String xDeveloperAuth, String xIdempotencyKey, String projectID) throws ApiException { // verify the required parameter 'userId' is set if (userId == null) { throw new ApiException(400, "Missing the required parameter 'userId' when calling revokeDelegationForEndUser"); @@ -407,7 +409,22 @@ private HttpRequest.Builder revokeDelegationForEndUserRequestBuilder(String user String localVarPath = "/v2/embedded-wallet-api/end-users/{userId}/delegation" .replace("{userId}", ApiClient.urlEncode(userId.toString())); - localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath)); + List localVarQueryParams = new ArrayList<>(); + StringJoiner localVarQueryStringJoiner = new StringJoiner("&"); + String localVarQueryParameterBaseName; + localVarQueryParameterBaseName = "projectID"; + localVarQueryParams.addAll(ApiClient.parameterToPairs("projectID", projectID)); + + if (!localVarQueryParams.isEmpty() || localVarQueryStringJoiner.length() != 0) { + StringJoiner queryJoiner = new StringJoiner("&"); + localVarQueryParams.forEach(p -> queryJoiner.add(p.getName() + '=' + p.getValue())); + if (localVarQueryStringJoiner.length() != 0) { + queryJoiner.add(localVarQueryStringJoiner.toString()); + } + localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath + '?' + queryJoiner.toString())); + } else { + localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath)); + } if (xWalletAuth != null) { localVarRequestBuilder.header("X-Wallet-Auth", xWalletAuth.toString()); diff --git a/java/src/main/java/com/coinbase/cdp/openapi/model/X402SupportedPaymentKind.java b/java/src/main/java/com/coinbase/cdp/openapi/model/X402SupportedPaymentKind.java index 64ddd2d9e..61d95bc64 100644 --- a/java/src/main/java/com/coinbase/cdp/openapi/model/X402SupportedPaymentKind.java +++ b/java/src/main/java/com/coinbase/cdp/openapi/model/X402SupportedPaymentKind.java @@ -108,7 +108,17 @@ public enum NetworkEnum { SOLANA_5EYKT4_US_FV8_P8_NJD_TREP_Y1VZQ_KQ_Z_KVDP(String.valueOf("solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp")), - SOLANA_ET_WTRABZA_YQ6I_MFE_Y_KOU_RU166_VU2XQA1(String.valueOf("solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1")); + SOLANA_ET_WTRABZA_YQ6I_MFE_Y_KOU_RU166_VU2XQA1(String.valueOf("solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1")), + + AVALANCHE(String.valueOf("avalanche")), + + ARBITRUM(String.valueOf("arbitrum")), + + ARBITRUM_SEPOLIA(String.valueOf("arbitrum-sepolia")), + + WORLD(String.valueOf("world")), + + WORLD_SEPOLIA(String.valueOf("world-sepolia")); private String value; diff --git a/openapi.yaml b/openapi.yaml index 27f5c959e..08ffeee51 100644 --- a/openapi.yaml +++ b/openapi.yaml @@ -2369,6 +2369,7 @@ paths: type: string pattern: ^[a-zA-Z0-9-]{1,100}$ example: e051beeb-7163-4527-a5b6-35e301529ff2 + - $ref: '#/components/parameters/ProjectIDOptional' requestBody: required: true content: @@ -14305,6 +14306,11 @@ components: - eip155:137 - solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp - solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1 + - avalanche + - arbitrum + - arbitrum-sepolia + - world + - world-sepolia extra: type: object description: The optional additional scheme-specific payment info. diff --git a/python/cdp/openapi_client/api/embedded_wallets_api.py b/python/cdp/openapi_client/api/embedded_wallets_api.py index bc1dff32f..cb23484ba 100644 --- a/python/cdp/openapi_client/api/embedded_wallets_api.py +++ b/python/cdp/openapi_client/api/embedded_wallets_api.py @@ -746,6 +746,7 @@ async def revoke_delegation_for_end_user( x_wallet_auth: Annotated[Optional[StrictStr], Field(description="A JWT signed using your Wallet Secret, encoded in base64. Refer to the [Generate Wallet Token](https://docs.cdp.coinbase.com/api-reference/v2/authentication#2-generate-wallet-token) section of our Authentication docs for more details on how to generate your Wallet Token. ")] = None, x_developer_auth: Annotated[Optional[StrictStr], Field(description="A JWT signed using your Wallet Secret, encoded in base64. Refer to the [Generate Wallet Token](https://docs.cdp.coinbase.com/api-reference/v2/authentication#2-generate-wallet-token) section of our Authentication docs for more details on how to generate your Wallet Token. ")] = None, x_idempotency_key: Annotated[Optional[Annotated[str, Field(min_length=1, strict=True, max_length=128)]], Field(description="An optional string request header for making requests safely retryable. When included, duplicate requests with the same key will return identical responses. Refer to our [Idempotency docs](https://docs.cdp.coinbase.com/api-reference/v2/idempotency) for more information on using idempotency keys. ")] = None, + project_id: Annotated[Optional[Annotated[str, Field(strict=True)]], Field(description="The ID of the CDP Project. Required for end users authenticated using custom auth (i.e. a non-CDP JWT provider).")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -773,6 +774,8 @@ async def revoke_delegation_for_end_user( :type x_developer_auth: str :param x_idempotency_key: An optional string request header for making requests safely retryable. When included, duplicate requests with the same key will return identical responses. Refer to our [Idempotency docs](https://docs.cdp.coinbase.com/api-reference/v2/idempotency) for more information on using idempotency keys. :type x_idempotency_key: str + :param project_id: The ID of the CDP Project. Required for end users authenticated using custom auth (i.e. a non-CDP JWT provider). + :type project_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -801,6 +804,7 @@ async def revoke_delegation_for_end_user( x_wallet_auth=x_wallet_auth, x_developer_auth=x_developer_auth, x_idempotency_key=x_idempotency_key, + project_id=project_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -834,6 +838,7 @@ async def revoke_delegation_for_end_user_with_http_info( x_wallet_auth: Annotated[Optional[StrictStr], Field(description="A JWT signed using your Wallet Secret, encoded in base64. Refer to the [Generate Wallet Token](https://docs.cdp.coinbase.com/api-reference/v2/authentication#2-generate-wallet-token) section of our Authentication docs for more details on how to generate your Wallet Token. ")] = None, x_developer_auth: Annotated[Optional[StrictStr], Field(description="A JWT signed using your Wallet Secret, encoded in base64. Refer to the [Generate Wallet Token](https://docs.cdp.coinbase.com/api-reference/v2/authentication#2-generate-wallet-token) section of our Authentication docs for more details on how to generate your Wallet Token. ")] = None, x_idempotency_key: Annotated[Optional[Annotated[str, Field(min_length=1, strict=True, max_length=128)]], Field(description="An optional string request header for making requests safely retryable. When included, duplicate requests with the same key will return identical responses. Refer to our [Idempotency docs](https://docs.cdp.coinbase.com/api-reference/v2/idempotency) for more information on using idempotency keys. ")] = None, + project_id: Annotated[Optional[Annotated[str, Field(strict=True)]], Field(description="The ID of the CDP Project. Required for end users authenticated using custom auth (i.e. a non-CDP JWT provider).")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -861,6 +866,8 @@ async def revoke_delegation_for_end_user_with_http_info( :type x_developer_auth: str :param x_idempotency_key: An optional string request header for making requests safely retryable. When included, duplicate requests with the same key will return identical responses. Refer to our [Idempotency docs](https://docs.cdp.coinbase.com/api-reference/v2/idempotency) for more information on using idempotency keys. :type x_idempotency_key: str + :param project_id: The ID of the CDP Project. Required for end users authenticated using custom auth (i.e. a non-CDP JWT provider). + :type project_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -889,6 +896,7 @@ async def revoke_delegation_for_end_user_with_http_info( x_wallet_auth=x_wallet_auth, x_developer_auth=x_developer_auth, x_idempotency_key=x_idempotency_key, + project_id=project_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -922,6 +930,7 @@ async def revoke_delegation_for_end_user_without_preload_content( x_wallet_auth: Annotated[Optional[StrictStr], Field(description="A JWT signed using your Wallet Secret, encoded in base64. Refer to the [Generate Wallet Token](https://docs.cdp.coinbase.com/api-reference/v2/authentication#2-generate-wallet-token) section of our Authentication docs for more details on how to generate your Wallet Token. ")] = None, x_developer_auth: Annotated[Optional[StrictStr], Field(description="A JWT signed using your Wallet Secret, encoded in base64. Refer to the [Generate Wallet Token](https://docs.cdp.coinbase.com/api-reference/v2/authentication#2-generate-wallet-token) section of our Authentication docs for more details on how to generate your Wallet Token. ")] = None, x_idempotency_key: Annotated[Optional[Annotated[str, Field(min_length=1, strict=True, max_length=128)]], Field(description="An optional string request header for making requests safely retryable. When included, duplicate requests with the same key will return identical responses. Refer to our [Idempotency docs](https://docs.cdp.coinbase.com/api-reference/v2/idempotency) for more information on using idempotency keys. ")] = None, + project_id: Annotated[Optional[Annotated[str, Field(strict=True)]], Field(description="The ID of the CDP Project. Required for end users authenticated using custom auth (i.e. a non-CDP JWT provider).")] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -949,6 +958,8 @@ async def revoke_delegation_for_end_user_without_preload_content( :type x_developer_auth: str :param x_idempotency_key: An optional string request header for making requests safely retryable. When included, duplicate requests with the same key will return identical responses. Refer to our [Idempotency docs](https://docs.cdp.coinbase.com/api-reference/v2/idempotency) for more information on using idempotency keys. :type x_idempotency_key: str + :param project_id: The ID of the CDP Project. Required for end users authenticated using custom auth (i.e. a non-CDP JWT provider). + :type project_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -977,6 +988,7 @@ async def revoke_delegation_for_end_user_without_preload_content( x_wallet_auth=x_wallet_auth, x_developer_auth=x_developer_auth, x_idempotency_key=x_idempotency_key, + project_id=project_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1005,6 +1017,7 @@ def _revoke_delegation_for_end_user_serialize( x_wallet_auth, x_developer_auth, x_idempotency_key, + project_id, _request_auth, _content_type, _headers, @@ -1029,6 +1042,10 @@ def _revoke_delegation_for_end_user_serialize( if user_id is not None: _path_params['userId'] = user_id # process the query parameters + if project_id is not None: + + _query_params.append(('projectID', project_id)) + # process the header parameters if x_wallet_auth is not None: _header_params['X-Wallet-Auth'] = x_wallet_auth diff --git a/python/cdp/openapi_client/models/x402_supported_payment_kind.py b/python/cdp/openapi_client/models/x402_supported_payment_kind.py index 915fb4d51..40d210d8e 100644 --- a/python/cdp/openapi_client/models/x402_supported_payment_kind.py +++ b/python/cdp/openapi_client/models/x402_supported_payment_kind.py @@ -44,8 +44,8 @@ def scheme_validate_enum(cls, value): @field_validator('network') def network_validate_enum(cls, value): """Validates the enum""" - if value not in set(['base-sepolia', 'base', 'solana-devnet', 'solana', 'polygon', 'eip155:8453', 'eip155:84532', 'eip155:137', 'solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp', 'solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1']): - raise ValueError("must be one of enum values ('base-sepolia', 'base', 'solana-devnet', 'solana', 'polygon', 'eip155:8453', 'eip155:84532', 'eip155:137', 'solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp', 'solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1')") + if value not in set(['base-sepolia', 'base', 'solana-devnet', 'solana', 'polygon', 'eip155:8453', 'eip155:84532', 'eip155:137', 'solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp', 'solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1', 'avalanche', 'arbitrum', 'arbitrum-sepolia', 'world', 'world-sepolia']): + raise ValueError("must be one of enum values ('base-sepolia', 'base', 'solana-devnet', 'solana', 'polygon', 'eip155:8453', 'eip155:84532', 'eip155:137', 'solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp', 'solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1', 'avalanche', 'arbitrum', 'arbitrum-sepolia', 'world', 'world-sepolia')") return value model_config = ConfigDict( diff --git a/rust/src/api.rs b/rust/src/api.rs index 8c0848660..552dff235 100644 --- a/rust/src/api.rs +++ b/rust/src/api.rs @@ -28382,6 +28382,94 @@ pub mod types { }) } } + ///`RevokeDelegationForEndUserProjectId` + /// + ///

JSON schema + /// + /// ```json + ///{ + /// "examples": [ + /// "8e03978e-40d5-43e8-bc93-6894a57f9324" + /// ], + /// "type": "string", + /// "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$" + ///} + /// ``` + ///
+ #[derive(::serde::Serialize, Clone, Debug, Eq, Hash, Ord, PartialEq, PartialOrd)] + #[serde(transparent)] + pub struct RevokeDelegationForEndUserProjectId(::std::string::String); + impl ::std::ops::Deref for RevokeDelegationForEndUserProjectId { + type Target = ::std::string::String; + fn deref(&self) -> &::std::string::String { + &self.0 + } + } + impl ::std::convert::From for ::std::string::String { + fn from(value: RevokeDelegationForEndUserProjectId) -> Self { + value.0 + } + } + impl ::std::convert::From<&RevokeDelegationForEndUserProjectId> + for RevokeDelegationForEndUserProjectId + { + fn from(value: &RevokeDelegationForEndUserProjectId) -> Self { + value.clone() + } + } + impl ::std::str::FromStr for RevokeDelegationForEndUserProjectId { + type Err = self::error::ConversionError; + fn from_str(value: &str) -> ::std::result::Result { + static PATTERN: ::std::sync::LazyLock<::regress::Regex> = + ::std::sync::LazyLock::new(|| { + ::regress::Regex::new( + "^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$", + ) + .unwrap() + }); + if PATTERN.find(value).is_none() { + return Err( + "doesn't match pattern \"^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$\"" + .into(), + ); + } + Ok(Self(value.to_string())) + } + } + impl ::std::convert::TryFrom<&str> for RevokeDelegationForEndUserProjectId { + type Error = self::error::ConversionError; + fn try_from(value: &str) -> ::std::result::Result { + value.parse() + } + } + impl ::std::convert::TryFrom<&::std::string::String> for RevokeDelegationForEndUserProjectId { + type Error = self::error::ConversionError; + fn try_from( + value: &::std::string::String, + ) -> ::std::result::Result { + value.parse() + } + } + impl ::std::convert::TryFrom<::std::string::String> for RevokeDelegationForEndUserProjectId { + type Error = self::error::ConversionError; + fn try_from( + value: ::std::string::String, + ) -> ::std::result::Result { + value.parse() + } + } + impl<'de> ::serde::Deserialize<'de> for RevokeDelegationForEndUserProjectId { + fn deserialize(deserializer: D) -> ::std::result::Result + where + D: ::serde::Deserializer<'de>, + { + ::std::string::String::deserialize(deserializer)? + .parse() + .map_err(|e: self::error::ConversionError| { + ::custom(e.to_string()) + }) + } + } ///`RevokeDelegationForEndUserUserId` /// ///
JSON schema @@ -54736,7 +54824,12 @@ pub mod types { /// "eip155:84532", /// "eip155:137", /// "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp", - /// "solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1" + /// "solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1", + /// "avalanche", + /// "arbitrum", + /// "arbitrum-sepolia", + /// "world", + /// "world-sepolia" /// ] /// }, /// "scheme": { @@ -54800,7 +54893,12 @@ pub mod types { /// "eip155:84532", /// "eip155:137", /// "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp", - /// "solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1" + /// "solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1", + /// "avalanche", + /// "arbitrum", + /// "arbitrum-sepolia", + /// "world", + /// "world-sepolia" /// ] ///} /// ``` @@ -54838,6 +54936,16 @@ pub mod types { Solana5eykt4UsFv8P8nJdTrEpY1vzqKqZKvdp, #[serde(rename = "solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1")] SolanaEtWtrabZaYq6iMfeYKouRu166Vu2xqa1, + #[serde(rename = "avalanche")] + Avalanche, + #[serde(rename = "arbitrum")] + Arbitrum, + #[serde(rename = "arbitrum-sepolia")] + ArbitrumSepolia, + #[serde(rename = "world")] + World, + #[serde(rename = "world-sepolia")] + WorldSepolia, } impl ::std::convert::From<&Self> for X402SupportedPaymentKindNetwork { fn from(value: &X402SupportedPaymentKindNetwork) -> Self { @@ -54861,6 +54969,11 @@ pub mod types { Self::SolanaEtWtrabZaYq6iMfeYKouRu166Vu2xqa1 => { f.write_str("solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1") } + Self::Avalanche => f.write_str("avalanche"), + Self::Arbitrum => f.write_str("arbitrum"), + Self::ArbitrumSepolia => f.write_str("arbitrum-sepolia"), + Self::World => f.write_str("world"), + Self::WorldSepolia => f.write_str("world-sepolia"), } } } @@ -54882,6 +54995,11 @@ pub mod types { "solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1" => { Ok(Self::SolanaEtWtrabZaYq6iMfeYKouRu166Vu2xqa1) } + "avalanche" => Ok(Self::Avalanche), + "arbitrum" => Ok(Self::Arbitrum), + "arbitrum-sepolia" => Ok(Self::ArbitrumSepolia), + "world" => Ok(Self::World), + "world-sepolia" => Ok(Self::WorldSepolia), _ => Err("invalid value".into()), } } @@ -76843,6 +76961,7 @@ impl Client { Arguments: - `user_id`: The ID of the end user. + - `project_id`: The ID of the CDP Project. Required for end users authenticated using custom auth (i.e. a non-CDP JWT provider). - `x_developer_auth`: A JWT signed using your Wallet Secret, encoded in base64. Refer to the [Generate Wallet Token](https://docs.cdp.coinbase.com/api-reference/v2/authentication#2-generate-wallet-token) section of our Authentication docs for more details on how to generate your Wallet Token. @@ -76859,6 +76978,7 @@ impl Client { ```ignore let response = client.revoke_delegation_for_end_user() .user_id(user_id) + .project_id(project_id) .x_developer_auth(x_developer_auth) .x_idempotency_key(x_idempotency_key) .x_wallet_auth(x_wallet_auth) @@ -80153,6 +80273,7 @@ pub mod builder { pub struct RevokeDelegationForEndUser<'a> { client: &'a super::Client, user_id: Result, + project_id: Result, String>, x_developer_auth: Result, String>, x_idempotency_key: Result, String>, x_wallet_auth: Result, String>, @@ -80163,6 +80284,7 @@ pub mod builder { Self { client: client, user_id: Err("user_id was not initialized".to_string()), + project_id: Ok(None), x_developer_auth: Ok(None), x_idempotency_key: Ok(None), x_wallet_auth: Ok(None), @@ -80178,6 +80300,16 @@ pub mod builder { }); self } + pub fn project_id(mut self, value: V) -> Self + where + V: std::convert::TryInto, + { + self.project_id = value.try_into().map(Some).map_err(|_| { + "conversion to `RevokeDelegationForEndUserProjectId` for project_id failed" + .to_string() + }); + self + } pub fn x_developer_auth(mut self, value: V) -> Self where V: std::convert::TryInto<::std::string::String>, @@ -80237,12 +80369,14 @@ pub mod builder { let Self { client, user_id, + project_id, x_developer_auth, x_idempotency_key, x_wallet_auth, body, } = self; let user_id = user_id.map_err(Error::InvalidRequest)?; + let project_id = project_id.map_err(Error::InvalidRequest)?; let x_developer_auth = x_developer_auth.map_err(Error::InvalidRequest)?; let x_idempotency_key = x_idempotency_key.map_err(Error::InvalidRequest)?; let x_wallet_auth = x_wallet_auth.map_err(Error::InvalidRequest)?; @@ -80279,6 +80413,10 @@ pub mod builder { ::reqwest::header::HeaderValue::from_static("application/json"), ) .json(&body) + .query(&progenitor_middleware_client::QueryParam::new( + "projectID", + &project_id, + )) .headers(header_map) .build()?; let info = OperationInfo { diff --git a/typescript/src/openapi-client/generated/coinbaseDeveloperPlatformAPIs.schemas.ts b/typescript/src/openapi-client/generated/coinbaseDeveloperPlatformAPIs.schemas.ts index dfbb0a513..9c2f0a082 100644 --- a/typescript/src/openapi-client/generated/coinbaseDeveloperPlatformAPIs.schemas.ts +++ b/typescript/src/openapi-client/generated/coinbaseDeveloperPlatformAPIs.schemas.ts @@ -3890,6 +3890,11 @@ export const X402SupportedPaymentKindNetwork = { "eip155:137": "eip155:137", "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp": "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp", "solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1": "solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1", + avalanche: "avalanche", + arbitrum: "arbitrum", + "arbitrum-sepolia": "arbitrum-sepolia", + world: "world", + "world-sepolia": "world-sepolia", } as const; /** @@ -4630,6 +4635,14 @@ export type GetDelegationForEndUser200 = { expiresAt: string; }; +export type RevokeDelegationForEndUserParams = { + /** + * The ID of the CDP Project. Required for end users authenticated using custom auth (i.e. a non-CDP JWT provider). + * @pattern ^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$ + */ + projectID?: ProjectIDOptionalParameter; +}; + export type RevokeDelegationForEndUserBody = { /** * When revoking with a wallet authentication scheme, the ID of the Temporary Wallet Secret that was used to sign the X-Wallet-Auth Header. diff --git a/typescript/src/openapi-client/generated/embedded-wallets/embedded-wallets.ts b/typescript/src/openapi-client/generated/embedded-wallets/embedded-wallets.ts index dbe11063f..45c180844 100644 --- a/typescript/src/openapi-client/generated/embedded-wallets/embedded-wallets.ts +++ b/typescript/src/openapi-client/generated/embedded-wallets/embedded-wallets.ts @@ -14,6 +14,7 @@ import type { GetDelegationForEndUser200, GetDelegationForEndUserParams, RevokeDelegationForEndUserBody, + RevokeDelegationForEndUserParams, SendEvmAssetWithEndUserAccount200, SendEvmAssetWithEndUserAccountBody, SendEvmAssetWithEndUserAccountParams, @@ -208,6 +209,7 @@ export const getDelegationForEndUser = ( export const revokeDelegationForEndUser = ( userId: string, revokeDelegationForEndUserBody: RevokeDelegationForEndUserBody, + params?: RevokeDelegationForEndUserParams, options?: SecondParameter>, ) => { return cdpApiClient( @@ -216,6 +218,7 @@ export const revokeDelegationForEndUser = ( method: "DELETE", headers: { "Content-Type": "application/json" }, data: revokeDelegationForEndUserBody, + params, }, options, ); From aee23ee05746e1566cf54dea809b4f07c16980d7 Mon Sep 17 00:00:00 2001 From: Sam McCord Date: Thu, 23 Apr 2026 12:05:13 -0600 Subject: [PATCH 08/13] chore: resolve issues --- examples/typescript/end-users/signEvmTypedData.ts | 2 +- typescript/src/client/end-user/endUser.ts | 6 +----- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/examples/typescript/end-users/signEvmTypedData.ts b/examples/typescript/end-users/signEvmTypedData.ts index e64a8c252..fc2ffc5e3 100644 --- a/examples/typescript/end-users/signEvmTypedData.ts +++ b/examples/typescript/end-users/signEvmTypedData.ts @@ -11,7 +11,7 @@ if (!userId) { process.exit(1); } -const cdp = new CdpClient({ basePath: 'https://cloud-api-dev.cbhq.net/platform'}); +const cdp = new CdpClient(); try { const endUser = await cdp.endUser.getEndUser({ userId }); diff --git a/typescript/src/client/end-user/endUser.ts b/typescript/src/client/end-user/endUser.ts index b07bfc7ac..69864b302 100644 --- a/typescript/src/client/end-user/endUser.ts +++ b/typescript/src/client/end-user/endUser.ts @@ -46,11 +46,7 @@ import { toEndUserAccount } from "./toEndUserAccount.js"; import { Analytics } from "../../analytics.js"; import { ImportAccountPublicRSAKey } from "../../constants.js"; import { UserInputValidationError } from "../../errors.js"; -import { - CdpOpenApiClient, - type ListEndUsers200, - type LookupEndUser200, -} from "../../openapi-client/index.js"; +import { CdpOpenApiClient, type ListEndUsers200 } from "../../openapi-client/index.js"; /** * The CDP end user client. From aa77cb2a717a7f739492bf38aa161590d8fa1947 Mon Sep 17 00:00:00 2001 From: Sam McCord Date: Thu, 23 Apr 2026 12:10:43 -0600 Subject: [PATCH 09/13] chore: use correct go codegen, fix java enduser client --- go/openapi/client.gen.go | 2824 +++-------------- .../cdp/client/enduser/EndUserClient.java | 2 +- 2 files changed, 376 insertions(+), 2450 deletions(-) diff --git a/go/openapi/client.gen.go b/go/openapi/client.gen.go index 56148cf71..2d3fe33b1 100644 --- a/go/openapi/client.gen.go +++ b/go/openapi/client.gen.go @@ -1,6 +1,6 @@ // Package openapi provides primitives to interact with the openapi HTTP API. // -// Code generated by github.com/oapi-codegen/oapi-codegen/v2 version v2.6.0 DO NOT EDIT. +// Code generated by github.com/deepmap/oapi-codegen version v1.16.3 DO NOT EDIT. package openapi import ( @@ -28,16 +28,6 @@ const ( Function AbiFunctionType = "function" ) -// Valid indicates whether the value is a known member of the AbiFunctionType enum. -func (e AbiFunctionType) Valid() bool { - switch e { - case Function: - return true - default: - return false - } -} - // Defines values for AbiInputType. const ( AbiInputTypeConstructor AbiInputType = "constructor" @@ -47,24 +37,6 @@ const ( AbiInputTypeReceive AbiInputType = "receive" ) -// Valid indicates whether the value is a known member of the AbiInputType enum. -func (e AbiInputType) Valid() bool { - switch e { - case AbiInputTypeConstructor: - return true - case AbiInputTypeError: - return true - case AbiInputTypeEvent: - return true - case AbiInputTypeFallback: - return true - case AbiInputTypeReceive: - return true - default: - return false - } -} - // Defines values for AbiStateMutability. const ( Nonpayable AbiStateMutability = "nonpayable" @@ -73,82 +45,26 @@ const ( View AbiStateMutability = "view" ) -// Valid indicates whether the value is a known member of the AbiStateMutability enum. -func (e AbiStateMutability) Valid() bool { - switch e { - case Nonpayable: - return true - case Payable: - return true - case Pure: - return true - case View: - return true - default: - return false - } -} - // Defines values for CommonSwapResponseLiquidityAvailable. const ( CommonSwapResponseLiquidityAvailableTrue CommonSwapResponseLiquidityAvailable = true ) -// Valid indicates whether the value is a known member of the CommonSwapResponseLiquidityAvailable enum. -func (e CommonSwapResponseLiquidityAvailable) Valid() bool { - switch e { - case CommonSwapResponseLiquidityAvailableTrue: - return true - default: - return false - } -} - // Defines values for CreateSwapQuoteResponseLiquidityAvailable. const ( CreateSwapQuoteResponseLiquidityAvailableTrue CreateSwapQuoteResponseLiquidityAvailable = true ) -// Valid indicates whether the value is a known member of the CreateSwapQuoteResponseLiquidityAvailable enum. -func (e CreateSwapQuoteResponseLiquidityAvailable) Valid() bool { - switch e { - case CreateSwapQuoteResponseLiquidityAvailableTrue: - return true - default: - return false - } -} - // Defines values for DeveloperJWTAuthenticationType. const ( Jwt DeveloperJWTAuthenticationType = "jwt" ) -// Valid indicates whether the value is a known member of the DeveloperJWTAuthenticationType enum. -func (e DeveloperJWTAuthenticationType) Valid() bool { - switch e { - case Jwt: - return true - default: - return false - } -} - // Defines values for EmailAuthenticationType. const ( Email EmailAuthenticationType = "email" ) -// Valid indicates whether the value is a known member of the EmailAuthenticationType enum. -func (e EmailAuthenticationType) Valid() bool { - switch e { - case Email: - return true - default: - return false - } -} - // Defines values for ErrorType. const ( ErrorTypeAccountLimitExceeded ErrorType = "account_limit_exceeded" @@ -217,277 +133,51 @@ const ( ErrorTypeUnauthorized ErrorType = "unauthorized" ) -// Valid indicates whether the value is a known member of the ErrorType enum. -func (e ErrorType) Valid() bool { - switch e { - case ErrorTypeAccountLimitExceeded: - return true - case ErrorTypeAccountNotReady: - return true - case ErrorTypeAlreadyExists: - return true - case ErrorTypeAssetMismatch: - return true - case ErrorTypeAuthorizationExpired: - return true - case ErrorTypeBadGateway: - return true - case ErrorTypeCaptureExpired: - return true - case ErrorTypeClientClosedRequest: - return true - case ErrorTypeDocumentVerificationFailed: - return true - case ErrorTypeFaucetLimitExceeded: - return true - case ErrorTypeForbidden: - return true - case ErrorTypeGuestPermissionDenied: - return true - case ErrorTypeGuestRegionForbidden: - return true - case ErrorTypeGuestTransactionCount: - return true - case ErrorTypeGuestTransactionLimit: - return true - case ErrorTypeIdempotencyError: - return true - case ErrorTypeInsufficientAllowance: - return true - case ErrorTypeInsufficientBalance: - return true - case ErrorTypeInsufficientLiquidity: - return true - case ErrorTypeInternalServerError: - return true - case ErrorTypeInvalidRequest: - return true - case ErrorTypeInvalidSignature: - return true - case ErrorTypeInvalidSqlQuery: - return true - case ErrorTypeMalformedTransaction: - return true - case ErrorTypeMetadataKeyTooLong: - return true - case ErrorTypeMetadataTooManyEntries: - return true - case ErrorTypeMetadataValueTooLong: - return true - case ErrorTypeMfaAlreadyEnrolled: - return true - case ErrorTypeMfaFlowExpired: - return true - case ErrorTypeMfaInvalidCode: - return true - case ErrorTypeMfaNotEnrolled: - return true - case ErrorTypeMfaRequired: - return true - case ErrorTypeNetworkNotTradable: - return true - case ErrorTypeNotFound: - return true - case ErrorTypeOrderAlreadyCanceled: - return true - case ErrorTypeOrderAlreadyFilled: - return true - case ErrorTypeOrderQuoteExpired: - return true - case ErrorTypePaymentMethodRequired: - return true - case ErrorTypePaymentRequired: - return true - case ErrorTypePhoneNumberVerificationExpired: - return true - case ErrorTypePolicyInUse: - return true - case ErrorTypePolicyViolation: - return true - case ErrorTypeRateLimitExceeded: - return true - case ErrorTypeRecipientAllowlistPending: - return true - case ErrorTypeRecipientAllowlistViolation: - return true - case ErrorTypeRefundExpired: - return true - case ErrorTypeRequestCanceled: - return true - case ErrorTypeServiceUnavailable: - return true - case ErrorTypeSettlementFailed: - return true - case ErrorTypeSourceAccountInvalid: - return true - case ErrorTypeSourceAccountNotFound: - return true - case ErrorTypeSourceAssetNotSupported: - return true - case ErrorTypeTargetAccountInvalid: - return true - case ErrorTypeTargetAccountNotFound: - return true - case ErrorTypeTargetAssetNotSupported: - return true - case ErrorTypeTargetEmailInvalid: - return true - case ErrorTypeTargetOnchainAddressInvalid: - return true - case ErrorTypeTimedOut: - return true - case ErrorTypeTransactionSimulationFailed: - return true - case ErrorTypeTransferAmountInvalid: - return true - case ErrorTypeTransferAssetNotSupported: - return true - case ErrorTypeTravelRulesFieldMissing: - return true - case ErrorTypeTravelRulesRecipientViolation: - return true - case ErrorTypeUnauthorized: - return true - default: - return false - } -} - // Defines values for EthValueCriterionOperator. const ( - EthValueCriterionOperatorEqualEqual EthValueCriterionOperator = "==" - EthValueCriterionOperatorGreaterThan EthValueCriterionOperator = ">" - EthValueCriterionOperatorGreaterThanEqual EthValueCriterionOperator = ">=" - EthValueCriterionOperatorLessThan EthValueCriterionOperator = "<" - EthValueCriterionOperatorLessThanEqual EthValueCriterionOperator = "<=" + EthValueCriterionOperatorEmpty EthValueCriterionOperator = ">" + EthValueCriterionOperatorEqualEqual EthValueCriterionOperator = "==" + EthValueCriterionOperatorN1 EthValueCriterionOperator = ">=" + EthValueCriterionOperatorN2 EthValueCriterionOperator = "<" + EthValueCriterionOperatorN3 EthValueCriterionOperator = "<=" ) -// Valid indicates whether the value is a known member of the EthValueCriterionOperator enum. -func (e EthValueCriterionOperator) Valid() bool { - switch e { - case EthValueCriterionOperatorEqualEqual: - return true - case EthValueCriterionOperatorGreaterThan: - return true - case EthValueCriterionOperatorGreaterThanEqual: - return true - case EthValueCriterionOperatorLessThan: - return true - case EthValueCriterionOperatorLessThanEqual: - return true - default: - return false - } -} - // Defines values for EthValueCriterionType. const ( EthValue EthValueCriterionType = "ethValue" ) -// Valid indicates whether the value is a known member of the EthValueCriterionType enum. -func (e EthValueCriterionType) Valid() bool { - switch e { - case EthValue: - return true - default: - return false - } -} - // Defines values for EvmAddressCriterionOperator. const ( EvmAddressCriterionOperatorIn EvmAddressCriterionOperator = "in" EvmAddressCriterionOperatorNotIn EvmAddressCriterionOperator = "not in" ) -// Valid indicates whether the value is a known member of the EvmAddressCriterionOperator enum. -func (e EvmAddressCriterionOperator) Valid() bool { - switch e { - case EvmAddressCriterionOperatorIn: - return true - case EvmAddressCriterionOperatorNotIn: - return true - default: - return false - } -} - // Defines values for EvmAddressCriterionType. const ( EvmAddress EvmAddressCriterionType = "evmAddress" ) -// Valid indicates whether the value is a known member of the EvmAddressCriterionType enum. -func (e EvmAddressCriterionType) Valid() bool { - switch e { - case EvmAddress: - return true - default: - return false - } -} - // Defines values for EvmDataCriterionType. const ( EvmData EvmDataCriterionType = "evmData" ) -// Valid indicates whether the value is a known member of the EvmDataCriterionType enum. -func (e EvmDataCriterionType) Valid() bool { - switch e { - case EvmData: - return true - default: - return false - } -} - // Defines values for EvmDataParameterConditionOperator. const ( - EvmDataParameterConditionOperatorEqualEqual EvmDataParameterConditionOperator = "==" - EvmDataParameterConditionOperatorGreaterThan EvmDataParameterConditionOperator = ">" - EvmDataParameterConditionOperatorGreaterThanEqual EvmDataParameterConditionOperator = ">=" - EvmDataParameterConditionOperatorLessThan EvmDataParameterConditionOperator = "<" - EvmDataParameterConditionOperatorLessThanEqual EvmDataParameterConditionOperator = "<=" + EvmDataParameterConditionOperatorEmpty EvmDataParameterConditionOperator = ">" + EvmDataParameterConditionOperatorEqualEqual EvmDataParameterConditionOperator = "==" + EvmDataParameterConditionOperatorN1 EvmDataParameterConditionOperator = ">=" + EvmDataParameterConditionOperatorN2 EvmDataParameterConditionOperator = "<" + EvmDataParameterConditionOperatorN3 EvmDataParameterConditionOperator = "<=" ) -// Valid indicates whether the value is a known member of the EvmDataParameterConditionOperator enum. -func (e EvmDataParameterConditionOperator) Valid() bool { - switch e { - case EvmDataParameterConditionOperatorEqualEqual: - return true - case EvmDataParameterConditionOperatorGreaterThan: - return true - case EvmDataParameterConditionOperatorGreaterThanEqual: - return true - case EvmDataParameterConditionOperatorLessThan: - return true - case EvmDataParameterConditionOperatorLessThanEqual: - return true - default: - return false - } -} - // Defines values for EvmDataParameterConditionListOperator. const ( EvmDataParameterConditionListOperatorIn EvmDataParameterConditionListOperator = "in" EvmDataParameterConditionListOperatorNotIn EvmDataParameterConditionListOperator = "not in" ) -// Valid indicates whether the value is a known member of the EvmDataParameterConditionListOperator enum. -func (e EvmDataParameterConditionListOperator) Valid() bool { - switch e { - case EvmDataParameterConditionListOperatorIn: - return true - case EvmDataParameterConditionListOperatorNotIn: - return true - default: - return false - } -} - // Defines values for EvmEip7702DelegationNetwork. const ( EvmEip7702DelegationNetworkArbitrum EvmEip7702DelegationNetwork = "arbitrum" @@ -499,28 +189,6 @@ const ( EvmEip7702DelegationNetworkPolygon EvmEip7702DelegationNetwork = "polygon" ) -// Valid indicates whether the value is a known member of the EvmEip7702DelegationNetwork enum. -func (e EvmEip7702DelegationNetwork) Valid() bool { - switch e { - case EvmEip7702DelegationNetworkArbitrum: - return true - case EvmEip7702DelegationNetworkBase: - return true - case EvmEip7702DelegationNetworkBaseSepolia: - return true - case EvmEip7702DelegationNetworkEthereum: - return true - case EvmEip7702DelegationNetworkEthereumSepolia: - return true - case EvmEip7702DelegationNetworkOptimism: - return true - case EvmEip7702DelegationNetworkPolygon: - return true - default: - return false - } -} - // Defines values for EvmEip7702DelegationOperationStatus. const ( COMPLETED EvmEip7702DelegationOperationStatus = "COMPLETED" @@ -530,39 +198,11 @@ const ( UNSPECIFIED EvmEip7702DelegationOperationStatus = "UNSPECIFIED" ) -// Valid indicates whether the value is a known member of the EvmEip7702DelegationOperationStatus enum. -func (e EvmEip7702DelegationOperationStatus) Valid() bool { - switch e { - case COMPLETED: - return true - case FAILED: - return true - case PENDING: - return true - case SUBMITTED: - return true - case UNSPECIFIED: - return true - default: - return false - } -} - // Defines values for EvmMessageCriterionType. const ( EvmMessage EvmMessageCriterionType = "evmMessage" ) -// Valid indicates whether the value is a known member of the EvmMessageCriterionType enum. -func (e EvmMessageCriterionType) Valid() bool { - switch e { - case EvmMessage: - return true - default: - return false - } -} - // Defines values for EvmNetworkCriterionNetworks. const ( EvmNetworkCriterionNetworksArbitrum EvmNetworkCriterionNetworks = "arbitrum" @@ -580,73 +220,17 @@ const ( EvmNetworkCriterionNetworksZora EvmNetworkCriterionNetworks = "zora" ) -// Valid indicates whether the value is a known member of the EvmNetworkCriterionNetworks enum. -func (e EvmNetworkCriterionNetworks) Valid() bool { - switch e { - case EvmNetworkCriterionNetworksArbitrum: - return true - case EvmNetworkCriterionNetworksArbitrumSepolia: - return true - case EvmNetworkCriterionNetworksAvalanche: - return true - case EvmNetworkCriterionNetworksBase: - return true - case EvmNetworkCriterionNetworksBaseSepolia: - return true - case EvmNetworkCriterionNetworksBnb: - return true - case EvmNetworkCriterionNetworksEthereum: - return true - case EvmNetworkCriterionNetworksEthereumSepolia: - return true - case EvmNetworkCriterionNetworksOptimism: - return true - case EvmNetworkCriterionNetworksPolygon: - return true - case EvmNetworkCriterionNetworksWorld: - return true - case EvmNetworkCriterionNetworksWorldSepolia: - return true - case EvmNetworkCriterionNetworksZora: - return true - default: - return false - } -} - // Defines values for EvmNetworkCriterionOperator. const ( EvmNetworkCriterionOperatorIn EvmNetworkCriterionOperator = "in" EvmNetworkCriterionOperatorNotIn EvmNetworkCriterionOperator = "not in" ) -// Valid indicates whether the value is a known member of the EvmNetworkCriterionOperator enum. -func (e EvmNetworkCriterionOperator) Valid() bool { - switch e { - case EvmNetworkCriterionOperatorIn: - return true - case EvmNetworkCriterionOperatorNotIn: - return true - default: - return false - } -} - // Defines values for EvmNetworkCriterionType. const ( EvmNetwork EvmNetworkCriterionType = "evmNetwork" ) -// Valid indicates whether the value is a known member of the EvmNetworkCriterionType enum. -func (e EvmNetworkCriterionType) Valid() bool { - switch e { - case EvmNetwork: - return true - default: - return false - } -} - // Defines values for EvmSwapsNetwork. const ( EvmSwapsNetworkArbitrum EvmSwapsNetwork = "arbitrum" @@ -656,69 +240,21 @@ const ( EvmSwapsNetworkPolygon EvmSwapsNetwork = "polygon" ) -// Valid indicates whether the value is a known member of the EvmSwapsNetwork enum. -func (e EvmSwapsNetwork) Valid() bool { - switch e { - case EvmSwapsNetworkArbitrum: - return true - case EvmSwapsNetworkBase: - return true - case EvmSwapsNetworkEthereum: - return true - case EvmSwapsNetworkOptimism: - return true - case EvmSwapsNetworkPolygon: - return true - default: - return false - } -} - // Defines values for EvmTypedAddressConditionOperator. const ( EvmTypedAddressConditionOperatorIn EvmTypedAddressConditionOperator = "in" EvmTypedAddressConditionOperatorNotIn EvmTypedAddressConditionOperator = "not in" ) -// Valid indicates whether the value is a known member of the EvmTypedAddressConditionOperator enum. -func (e EvmTypedAddressConditionOperator) Valid() bool { - switch e { - case EvmTypedAddressConditionOperatorIn: - return true - case EvmTypedAddressConditionOperatorNotIn: - return true - default: - return false - } -} - // Defines values for EvmTypedNumericalConditionOperator. const ( - EvmTypedNumericalConditionOperatorEqualEqual EvmTypedNumericalConditionOperator = "==" - EvmTypedNumericalConditionOperatorGreaterThan EvmTypedNumericalConditionOperator = ">" - EvmTypedNumericalConditionOperatorGreaterThanEqual EvmTypedNumericalConditionOperator = ">=" - EvmTypedNumericalConditionOperatorLessThan EvmTypedNumericalConditionOperator = "<" - EvmTypedNumericalConditionOperatorLessThanEqual EvmTypedNumericalConditionOperator = "<=" + EvmTypedNumericalConditionOperatorEmpty EvmTypedNumericalConditionOperator = ">" + EvmTypedNumericalConditionOperatorEqualEqual EvmTypedNumericalConditionOperator = "==" + EvmTypedNumericalConditionOperatorN1 EvmTypedNumericalConditionOperator = ">=" + EvmTypedNumericalConditionOperatorN2 EvmTypedNumericalConditionOperator = "<" + EvmTypedNumericalConditionOperatorN3 EvmTypedNumericalConditionOperator = "<=" ) -// Valid indicates whether the value is a known member of the EvmTypedNumericalConditionOperator enum. -func (e EvmTypedNumericalConditionOperator) Valid() bool { - switch e { - case EvmTypedNumericalConditionOperatorEqualEqual: - return true - case EvmTypedNumericalConditionOperatorGreaterThan: - return true - case EvmTypedNumericalConditionOperatorGreaterThanEqual: - return true - case EvmTypedNumericalConditionOperatorLessThan: - return true - case EvmTypedNumericalConditionOperatorLessThanEqual: - return true - default: - return false - } -} - // Defines values for EvmUserOperationStatus. const ( EvmUserOperationStatusBroadcast EvmUserOperationStatus = "broadcast" @@ -729,26 +265,6 @@ const ( EvmUserOperationStatusSigned EvmUserOperationStatus = "signed" ) -// Valid indicates whether the value is a known member of the EvmUserOperationStatus enum. -func (e EvmUserOperationStatus) Valid() bool { - switch e { - case EvmUserOperationStatusBroadcast: - return true - case EvmUserOperationStatusComplete: - return true - case EvmUserOperationStatusDropped: - return true - case EvmUserOperationStatusFailed: - return true - case EvmUserOperationStatusPending: - return true - case EvmUserOperationStatusSigned: - return true - default: - return false - } -} - // Defines values for EvmUserOperationNetwork. const ( EvmUserOperationNetworkArbitrum EvmUserOperationNetwork = "arbitrum" @@ -763,49 +279,11 @@ const ( EvmUserOperationNetworkZora EvmUserOperationNetwork = "zora" ) -// Valid indicates whether the value is a known member of the EvmUserOperationNetwork enum. -func (e EvmUserOperationNetwork) Valid() bool { - switch e { - case EvmUserOperationNetworkArbitrum: - return true - case EvmUserOperationNetworkAvalanche: - return true - case EvmUserOperationNetworkBase: - return true - case EvmUserOperationNetworkBaseSepolia: - return true - case EvmUserOperationNetworkBnb: - return true - case EvmUserOperationNetworkEthereum: - return true - case EvmUserOperationNetworkEthereumSepolia: - return true - case EvmUserOperationNetworkOptimism: - return true - case EvmUserOperationNetworkPolygon: - return true - case EvmUserOperationNetworkZora: - return true - default: - return false - } -} - // Defines values for GetSwapPriceResponseLiquidityAvailable. const ( True GetSwapPriceResponseLiquidityAvailable = true ) -// Valid indicates whether the value is a known member of the GetSwapPriceResponseLiquidityAvailable enum. -func (e GetSwapPriceResponseLiquidityAvailable) Valid() bool { - switch e { - case True: - return true - default: - return false - } -} - // Defines values for KnownAbiType. const ( Erc1155 KnownAbiType = "erc1155" @@ -813,20 +291,6 @@ const ( Erc721 KnownAbiType = "erc721" ) -// Valid indicates whether the value is a known member of the KnownAbiType enum. -func (e KnownAbiType) Valid() bool { - switch e { - case Erc1155: - return true - case Erc20: - return true - case Erc721: - return true - default: - return false - } -} - // Defines values for KnownIdlType. const ( AssociatedTokenProgram KnownIdlType = "AssociatedTokenProgram" @@ -834,20 +298,6 @@ const ( TokenProgram KnownIdlType = "TokenProgram" ) -// Valid indicates whether the value is a known member of the KnownIdlType enum. -func (e KnownIdlType) Valid() bool { - switch e { - case AssociatedTokenProgram: - return true - case SystemProgram: - return true - case TokenProgram: - return true - default: - return false - } -} - // Defines values for ListEvmTokenBalancesNetwork. const ( ListEvmTokenBalancesNetworkBase ListEvmTokenBalancesNetwork = "base" @@ -855,113 +305,37 @@ const ( ListEvmTokenBalancesNetworkEthereum ListEvmTokenBalancesNetwork = "ethereum" ) -// Valid indicates whether the value is a known member of the ListEvmTokenBalancesNetwork enum. -func (e ListEvmTokenBalancesNetwork) Valid() bool { - switch e { - case ListEvmTokenBalancesNetworkBase: - return true - case ListEvmTokenBalancesNetworkBaseSepolia: - return true - case ListEvmTokenBalancesNetworkEthereum: - return true - default: - return false - } -} - // Defines values for ListSolanaTokenBalancesNetwork. const ( ListSolanaTokenBalancesNetworkSolana ListSolanaTokenBalancesNetwork = "solana" ListSolanaTokenBalancesNetworkSolanaDevnet ListSolanaTokenBalancesNetwork = "solana-devnet" ) -// Valid indicates whether the value is a known member of the ListSolanaTokenBalancesNetwork enum. -func (e ListSolanaTokenBalancesNetwork) Valid() bool { - switch e { - case ListSolanaTokenBalancesNetworkSolana: - return true - case ListSolanaTokenBalancesNetworkSolanaDevnet: - return true - default: - return false - } -} - // Defines values for MintAddressCriterionOperator. const ( MintAddressCriterionOperatorIn MintAddressCriterionOperator = "in" MintAddressCriterionOperatorNotIn MintAddressCriterionOperator = "not in" ) -// Valid indicates whether the value is a known member of the MintAddressCriterionOperator enum. -func (e MintAddressCriterionOperator) Valid() bool { - switch e { - case MintAddressCriterionOperatorIn: - return true - case MintAddressCriterionOperatorNotIn: - return true - default: - return false - } -} - // Defines values for MintAddressCriterionType. const ( MintAddress MintAddressCriterionType = "mintAddress" ) -// Valid indicates whether the value is a known member of the MintAddressCriterionType enum. -func (e MintAddressCriterionType) Valid() bool { - switch e { - case MintAddress: - return true - default: - return false - } -} - // Defines values for NetUSDChangeCriterionOperator. const ( - NetUSDChangeCriterionOperatorEqualEqual NetUSDChangeCriterionOperator = "==" - NetUSDChangeCriterionOperatorGreaterThan NetUSDChangeCriterionOperator = ">" - NetUSDChangeCriterionOperatorGreaterThanEqual NetUSDChangeCriterionOperator = ">=" - NetUSDChangeCriterionOperatorLessThan NetUSDChangeCriterionOperator = "<" - NetUSDChangeCriterionOperatorLessThanEqual NetUSDChangeCriterionOperator = "<=" + NetUSDChangeCriterionOperatorEmpty NetUSDChangeCriterionOperator = ">" + NetUSDChangeCriterionOperatorEqualEqual NetUSDChangeCriterionOperator = "==" + NetUSDChangeCriterionOperatorN1 NetUSDChangeCriterionOperator = ">=" + NetUSDChangeCriterionOperatorN2 NetUSDChangeCriterionOperator = "<" + NetUSDChangeCriterionOperatorN3 NetUSDChangeCriterionOperator = "<=" ) -// Valid indicates whether the value is a known member of the NetUSDChangeCriterionOperator enum. -func (e NetUSDChangeCriterionOperator) Valid() bool { - switch e { - case NetUSDChangeCriterionOperatorEqualEqual: - return true - case NetUSDChangeCriterionOperatorGreaterThan: - return true - case NetUSDChangeCriterionOperatorGreaterThanEqual: - return true - case NetUSDChangeCriterionOperatorLessThan: - return true - case NetUSDChangeCriterionOperatorLessThanEqual: - return true - default: - return false - } -} - // Defines values for NetUSDChangeCriterionType. const ( NetUSDChange NetUSDChangeCriterionType = "netUSDChange" ) -// Valid indicates whether the value is a known member of the NetUSDChangeCriterionType enum. -func (e NetUSDChangeCriterionType) Valid() bool { - switch e { - case NetUSDChange: - return true - default: - return false - } -} - // Defines values for OAuth2ProviderType. const ( Apple OAuth2ProviderType = "apple" @@ -971,24 +345,6 @@ const ( X OAuth2ProviderType = "x" ) -// Valid indicates whether the value is a known member of the OAuth2ProviderType enum. -func (e OAuth2ProviderType) Valid() bool { - switch e { - case Apple: - return true - case Github: - return true - case Google: - return true - case Telegram: - return true - case X: - return true - default: - return false - } -} - // Defines values for OnchainDataResultSchemaColumnsType. const ( Bool OnchainDataResultSchemaColumnsType = "Bool" @@ -1013,108 +369,24 @@ const ( UUID OnchainDataResultSchemaColumnsType = "UUID" ) -// Valid indicates whether the value is a known member of the OnchainDataResultSchemaColumnsType enum. -func (e OnchainDataResultSchemaColumnsType) Valid() bool { - switch e { - case Bool: - return true - case Date: - return true - case DateTime: - return true - case DateTime64: - return true - case Float32: - return true - case Float64: - return true - case Int128: - return true - case Int16: - return true - case Int256: - return true - case Int32: - return true - case Int64: - return true - case Int8: - return true - case String: - return true - case UInt128: - return true - case UInt16: - return true - case UInt256: - return true - case UInt32: - return true - case UInt64: - return true - case UInt8: - return true - case UUID: - return true - default: - return false - } -} - // Defines values for OnrampLimitType. const ( LifetimeTransactions OnrampLimitType = "lifetime_transactions" WeeklySpending OnrampLimitType = "weekly_spending" ) -// Valid indicates whether the value is a known member of the OnrampLimitType enum. -func (e OnrampLimitType) Valid() bool { - switch e { - case LifetimeTransactions: - return true - case WeeklySpending: - return true - default: - return false - } -} - // Defines values for OnrampOrderFeeType. const ( FEETYPEEXCHANGE OnrampOrderFeeType = "FEE_TYPE_EXCHANGE" FEETYPENETWORK OnrampOrderFeeType = "FEE_TYPE_NETWORK" ) -// Valid indicates whether the value is a known member of the OnrampOrderFeeType enum. -func (e OnrampOrderFeeType) Valid() bool { - switch e { - case FEETYPEEXCHANGE: - return true - case FEETYPENETWORK: - return true - default: - return false - } -} - // Defines values for OnrampOrderPaymentMethodTypeId. const ( GUESTCHECKOUTAPPLEPAY OnrampOrderPaymentMethodTypeId = "GUEST_CHECKOUT_APPLE_PAY" GUESTCHECKOUTGOOGLEPAY OnrampOrderPaymentMethodTypeId = "GUEST_CHECKOUT_GOOGLE_PAY" ) -// Valid indicates whether the value is a known member of the OnrampOrderPaymentMethodTypeId enum. -func (e OnrampOrderPaymentMethodTypeId) Valid() bool { - switch e { - case GUESTCHECKOUTAPPLEPAY: - return true - case GUESTCHECKOUTGOOGLEPAY: - return true - default: - return false - } -} - // Defines values for OnrampOrderStatus. const ( ONRAMPORDERSTATUSCOMPLETED OnrampOrderStatus = "ONRAMP_ORDER_STATUS_COMPLETED" @@ -1124,39 +396,11 @@ const ( ONRAMPORDERSTATUSPROCESSING OnrampOrderStatus = "ONRAMP_ORDER_STATUS_PROCESSING" ) -// Valid indicates whether the value is a known member of the OnrampOrderStatus enum. -func (e OnrampOrderStatus) Valid() bool { - switch e { - case ONRAMPORDERSTATUSCOMPLETED: - return true - case ONRAMPORDERSTATUSFAILED: - return true - case ONRAMPORDERSTATUSPENDINGAUTH: - return true - case ONRAMPORDERSTATUSPENDINGPAYMENT: - return true - case ONRAMPORDERSTATUSPROCESSING: - return true - default: - return false - } -} - // Defines values for OnrampPaymentLinkType. const ( PAYMENTLINKTYPEAPPLEPAYBUTTON OnrampPaymentLinkType = "PAYMENT_LINK_TYPE_APPLE_PAY_BUTTON" ) -// Valid indicates whether the value is a known member of the OnrampPaymentLinkType enum. -func (e OnrampPaymentLinkType) Valid() bool { - switch e { - case PAYMENTLINKTYPEAPPLEPAYBUTTON: - return true - default: - return false - } -} - // Defines values for OnrampQuotePaymentMethodTypeId. const ( ACH OnrampQuotePaymentMethodTypeId = "ACH" @@ -1167,965 +411,319 @@ const ( PAYPAL OnrampQuotePaymentMethodTypeId = "PAYPAL" ) -// Valid indicates whether the value is a known member of the OnrampQuotePaymentMethodTypeId enum. -func (e OnrampQuotePaymentMethodTypeId) Valid() bool { - switch e { - case ACH: - return true - case APPLEPAY: - return true - case CARD: - return true - case CRYPTOWALLET: - return true - case FIATWALLET: - return true - case PAYPAL: - return true - default: - return false - } -} - // Defines values for OnrampUserIdType. const ( PhoneNumber OnrampUserIdType = "phone_number" ) -// Valid indicates whether the value is a known member of the OnrampUserIdType enum. -func (e OnrampUserIdType) Valid() bool { - switch e { - case PhoneNumber: - return true - default: - return false - } -} - // Defines values for PolicyScope. const ( PolicyScopeAccount PolicyScope = "account" PolicyScopeProject PolicyScope = "project" ) -// Valid indicates whether the value is a known member of the PolicyScope enum. -func (e PolicyScope) Valid() bool { - switch e { - case PolicyScopeAccount: - return true - case PolicyScopeProject: - return true - default: - return false - } -} - // Defines values for PrepareUserOperationRuleAction. const ( PrepareUserOperationRuleActionAccept PrepareUserOperationRuleAction = "accept" PrepareUserOperationRuleActionReject PrepareUserOperationRuleAction = "reject" ) -// Valid indicates whether the value is a known member of the PrepareUserOperationRuleAction enum. -func (e PrepareUserOperationRuleAction) Valid() bool { - switch e { - case PrepareUserOperationRuleActionAccept: - return true - case PrepareUserOperationRuleActionReject: - return true - default: - return false - } -} - // Defines values for PrepareUserOperationRuleOperation. const ( PrepareUserOperation PrepareUserOperationRuleOperation = "prepareUserOperation" ) -// Valid indicates whether the value is a known member of the PrepareUserOperationRuleOperation enum. -func (e PrepareUserOperationRuleOperation) Valid() bool { - switch e { - case PrepareUserOperation: - return true - default: - return false - } -} - // Defines values for ProgramIdCriterionOperator. const ( ProgramIdCriterionOperatorIn ProgramIdCriterionOperator = "in" ProgramIdCriterionOperatorNotIn ProgramIdCriterionOperator = "not in" ) -// Valid indicates whether the value is a known member of the ProgramIdCriterionOperator enum. -func (e ProgramIdCriterionOperator) Valid() bool { - switch e { - case ProgramIdCriterionOperatorIn: - return true - case ProgramIdCriterionOperatorNotIn: - return true - default: - return false - } -} - // Defines values for ProgramIdCriterionType. const ( ProgramId ProgramIdCriterionType = "programId" ) -// Valid indicates whether the value is a known member of the ProgramIdCriterionType enum. -func (e ProgramIdCriterionType) Valid() bool { - switch e { - case ProgramId: - return true - default: - return false - } -} - // Defines values for SendEndUserEvmTransactionRuleAction. const ( SendEndUserEvmTransactionRuleActionAccept SendEndUserEvmTransactionRuleAction = "accept" SendEndUserEvmTransactionRuleActionReject SendEndUserEvmTransactionRuleAction = "reject" ) -// Valid indicates whether the value is a known member of the SendEndUserEvmTransactionRuleAction enum. -func (e SendEndUserEvmTransactionRuleAction) Valid() bool { - switch e { - case SendEndUserEvmTransactionRuleActionAccept: - return true - case SendEndUserEvmTransactionRuleActionReject: - return true - default: - return false - } -} - // Defines values for SendEndUserEvmTransactionRuleOperation. const ( SendEndUserEvmTransaction SendEndUserEvmTransactionRuleOperation = "sendEndUserEvmTransaction" ) -// Valid indicates whether the value is a known member of the SendEndUserEvmTransactionRuleOperation enum. -func (e SendEndUserEvmTransactionRuleOperation) Valid() bool { - switch e { - case SendEndUserEvmTransaction: - return true - default: - return false - } -} - // Defines values for SendEndUserSolTransactionRuleAction. const ( SendEndUserSolTransactionRuleActionAccept SendEndUserSolTransactionRuleAction = "accept" SendEndUserSolTransactionRuleActionReject SendEndUserSolTransactionRuleAction = "reject" ) -// Valid indicates whether the value is a known member of the SendEndUserSolTransactionRuleAction enum. -func (e SendEndUserSolTransactionRuleAction) Valid() bool { - switch e { - case SendEndUserSolTransactionRuleActionAccept: - return true - case SendEndUserSolTransactionRuleActionReject: - return true - default: - return false - } -} - // Defines values for SendEndUserSolTransactionRuleOperation. const ( SendEndUserSolTransaction SendEndUserSolTransactionRuleOperation = "sendEndUserSolTransaction" ) -// Valid indicates whether the value is a known member of the SendEndUserSolTransactionRuleOperation enum. -func (e SendEndUserSolTransactionRuleOperation) Valid() bool { - switch e { - case SendEndUserSolTransaction: - return true - default: - return false - } -} - // Defines values for SendEvmTransactionRuleAction. const ( SendEvmTransactionRuleActionAccept SendEvmTransactionRuleAction = "accept" SendEvmTransactionRuleActionReject SendEvmTransactionRuleAction = "reject" ) -// Valid indicates whether the value is a known member of the SendEvmTransactionRuleAction enum. -func (e SendEvmTransactionRuleAction) Valid() bool { - switch e { - case SendEvmTransactionRuleActionAccept: - return true - case SendEvmTransactionRuleActionReject: - return true - default: - return false - } -} - // Defines values for SendEvmTransactionRuleOperation. const ( SendEvmTransaction SendEvmTransactionRuleOperation = "sendEvmTransaction" ) -// Valid indicates whether the value is a known member of the SendEvmTransactionRuleOperation enum. -func (e SendEvmTransactionRuleOperation) Valid() bool { - switch e { - case SendEvmTransaction: - return true - default: - return false - } -} - // Defines values for SendSolTransactionRuleAction. const ( SendSolTransactionRuleActionAccept SendSolTransactionRuleAction = "accept" SendSolTransactionRuleActionReject SendSolTransactionRuleAction = "reject" ) -// Valid indicates whether the value is a known member of the SendSolTransactionRuleAction enum. -func (e SendSolTransactionRuleAction) Valid() bool { - switch e { - case SendSolTransactionRuleActionAccept: - return true - case SendSolTransactionRuleActionReject: - return true - default: - return false - } -} - // Defines values for SendSolTransactionRuleOperation. const ( SendSolTransaction SendSolTransactionRuleOperation = "sendSolTransaction" ) -// Valid indicates whether the value is a known member of the SendSolTransactionRuleOperation enum. -func (e SendSolTransactionRuleOperation) Valid() bool { - switch e { - case SendSolTransaction: - return true - default: - return false - } -} - // Defines values for SendUserOperationRuleAction. const ( SendUserOperationRuleActionAccept SendUserOperationRuleAction = "accept" SendUserOperationRuleActionReject SendUserOperationRuleAction = "reject" ) -// Valid indicates whether the value is a known member of the SendUserOperationRuleAction enum. -func (e SendUserOperationRuleAction) Valid() bool { - switch e { - case SendUserOperationRuleActionAccept: - return true - case SendUserOperationRuleActionReject: - return true - default: - return false - } -} - // Defines values for SendUserOperationRuleOperation. const ( SendUserOperation SendUserOperationRuleOperation = "sendUserOperation" ) -// Valid indicates whether the value is a known member of the SendUserOperationRuleOperation enum. -func (e SendUserOperationRuleOperation) Valid() bool { - switch e { - case SendUserOperation: - return true - default: - return false - } -} - // Defines values for SignEndUserEvmHashRuleAction. const ( SignEndUserEvmHashRuleActionAccept SignEndUserEvmHashRuleAction = "accept" SignEndUserEvmHashRuleActionReject SignEndUserEvmHashRuleAction = "reject" ) -// Valid indicates whether the value is a known member of the SignEndUserEvmHashRuleAction enum. -func (e SignEndUserEvmHashRuleAction) Valid() bool { - switch e { - case SignEndUserEvmHashRuleActionAccept: - return true - case SignEndUserEvmHashRuleActionReject: - return true - default: - return false - } -} - // Defines values for SignEndUserEvmHashRuleOperation. const ( SignEndUserEvmHash SignEndUserEvmHashRuleOperation = "signEndUserEvmHash" ) -// Valid indicates whether the value is a known member of the SignEndUserEvmHashRuleOperation enum. -func (e SignEndUserEvmHashRuleOperation) Valid() bool { - switch e { - case SignEndUserEvmHash: - return true - default: - return false - } -} - // Defines values for SignEndUserEvmMessageRuleAction. const ( SignEndUserEvmMessageRuleActionAccept SignEndUserEvmMessageRuleAction = "accept" SignEndUserEvmMessageRuleActionReject SignEndUserEvmMessageRuleAction = "reject" ) -// Valid indicates whether the value is a known member of the SignEndUserEvmMessageRuleAction enum. -func (e SignEndUserEvmMessageRuleAction) Valid() bool { - switch e { - case SignEndUserEvmMessageRuleActionAccept: - return true - case SignEndUserEvmMessageRuleActionReject: - return true - default: - return false - } -} - // Defines values for SignEndUserEvmMessageRuleOperation. const ( SignEndUserEvmMessage SignEndUserEvmMessageRuleOperation = "signEndUserEvmMessage" ) -// Valid indicates whether the value is a known member of the SignEndUserEvmMessageRuleOperation enum. -func (e SignEndUserEvmMessageRuleOperation) Valid() bool { - switch e { - case SignEndUserEvmMessage: - return true - default: - return false - } -} - // Defines values for SignEndUserEvmTransactionRuleAction. const ( SignEndUserEvmTransactionRuleActionAccept SignEndUserEvmTransactionRuleAction = "accept" SignEndUserEvmTransactionRuleActionReject SignEndUserEvmTransactionRuleAction = "reject" ) -// Valid indicates whether the value is a known member of the SignEndUserEvmTransactionRuleAction enum. -func (e SignEndUserEvmTransactionRuleAction) Valid() bool { - switch e { - case SignEndUserEvmTransactionRuleActionAccept: - return true - case SignEndUserEvmTransactionRuleActionReject: - return true - default: - return false - } -} - // Defines values for SignEndUserEvmTransactionRuleOperation. const ( SignEndUserEvmTransaction SignEndUserEvmTransactionRuleOperation = "signEndUserEvmTransaction" ) -// Valid indicates whether the value is a known member of the SignEndUserEvmTransactionRuleOperation enum. -func (e SignEndUserEvmTransactionRuleOperation) Valid() bool { - switch e { - case SignEndUserEvmTransaction: - return true - default: - return false - } -} - // Defines values for SignEndUserEvmTypedDataRuleAction. const ( SignEndUserEvmTypedDataRuleActionAccept SignEndUserEvmTypedDataRuleAction = "accept" SignEndUserEvmTypedDataRuleActionReject SignEndUserEvmTypedDataRuleAction = "reject" ) -// Valid indicates whether the value is a known member of the SignEndUserEvmTypedDataRuleAction enum. -func (e SignEndUserEvmTypedDataRuleAction) Valid() bool { - switch e { - case SignEndUserEvmTypedDataRuleActionAccept: - return true - case SignEndUserEvmTypedDataRuleActionReject: - return true - default: - return false - } -} - // Defines values for SignEndUserEvmTypedDataRuleOperation. const ( SignEndUserEvmTypedData SignEndUserEvmTypedDataRuleOperation = "signEndUserEvmTypedData" ) -// Valid indicates whether the value is a known member of the SignEndUserEvmTypedDataRuleOperation enum. -func (e SignEndUserEvmTypedDataRuleOperation) Valid() bool { - switch e { - case SignEndUserEvmTypedData: - return true - default: - return false - } -} - // Defines values for SignEndUserSolMessageRuleAction. const ( SignEndUserSolMessageRuleActionAccept SignEndUserSolMessageRuleAction = "accept" SignEndUserSolMessageRuleActionReject SignEndUserSolMessageRuleAction = "reject" ) -// Valid indicates whether the value is a known member of the SignEndUserSolMessageRuleAction enum. -func (e SignEndUserSolMessageRuleAction) Valid() bool { - switch e { - case SignEndUserSolMessageRuleActionAccept: - return true - case SignEndUserSolMessageRuleActionReject: - return true - default: - return false - } -} - // Defines values for SignEndUserSolMessageRuleOperation. const ( SignEndUserSolMessage SignEndUserSolMessageRuleOperation = "signEndUserSolMessage" ) -// Valid indicates whether the value is a known member of the SignEndUserSolMessageRuleOperation enum. -func (e SignEndUserSolMessageRuleOperation) Valid() bool { - switch e { - case SignEndUserSolMessage: - return true - default: - return false - } -} - // Defines values for SignEndUserSolTransactionRuleAction. const ( SignEndUserSolTransactionRuleActionAccept SignEndUserSolTransactionRuleAction = "accept" SignEndUserSolTransactionRuleActionReject SignEndUserSolTransactionRuleAction = "reject" ) -// Valid indicates whether the value is a known member of the SignEndUserSolTransactionRuleAction enum. -func (e SignEndUserSolTransactionRuleAction) Valid() bool { - switch e { - case SignEndUserSolTransactionRuleActionAccept: - return true - case SignEndUserSolTransactionRuleActionReject: - return true - default: - return false - } -} - // Defines values for SignEndUserSolTransactionRuleOperation. const ( SignEndUserSolTransaction SignEndUserSolTransactionRuleOperation = "signEndUserSolTransaction" ) -// Valid indicates whether the value is a known member of the SignEndUserSolTransactionRuleOperation enum. -func (e SignEndUserSolTransactionRuleOperation) Valid() bool { - switch e { - case SignEndUserSolTransaction: - return true - default: - return false - } -} - // Defines values for SignEvmHashRuleAction. const ( SignEvmHashRuleActionAccept SignEvmHashRuleAction = "accept" SignEvmHashRuleActionReject SignEvmHashRuleAction = "reject" ) -// Valid indicates whether the value is a known member of the SignEvmHashRuleAction enum. -func (e SignEvmHashRuleAction) Valid() bool { - switch e { - case SignEvmHashRuleActionAccept: - return true - case SignEvmHashRuleActionReject: - return true - default: - return false - } -} - // Defines values for SignEvmHashRuleOperation. const ( SignEvmHash SignEvmHashRuleOperation = "signEvmHash" ) -// Valid indicates whether the value is a known member of the SignEvmHashRuleOperation enum. -func (e SignEvmHashRuleOperation) Valid() bool { - switch e { - case SignEvmHash: - return true - default: - return false - } -} - // Defines values for SignEvmMessageRuleAction. const ( SignEvmMessageRuleActionAccept SignEvmMessageRuleAction = "accept" SignEvmMessageRuleActionReject SignEvmMessageRuleAction = "reject" ) -// Valid indicates whether the value is a known member of the SignEvmMessageRuleAction enum. -func (e SignEvmMessageRuleAction) Valid() bool { - switch e { - case SignEvmMessageRuleActionAccept: - return true - case SignEvmMessageRuleActionReject: - return true - default: - return false - } -} - // Defines values for SignEvmMessageRuleOperation. const ( SignEvmMessage SignEvmMessageRuleOperation = "signEvmMessage" ) -// Valid indicates whether the value is a known member of the SignEvmMessageRuleOperation enum. -func (e SignEvmMessageRuleOperation) Valid() bool { - switch e { - case SignEvmMessage: - return true - default: - return false - } -} - // Defines values for SignEvmTransactionRuleAction. const ( SignEvmTransactionRuleActionAccept SignEvmTransactionRuleAction = "accept" SignEvmTransactionRuleActionReject SignEvmTransactionRuleAction = "reject" ) -// Valid indicates whether the value is a known member of the SignEvmTransactionRuleAction enum. -func (e SignEvmTransactionRuleAction) Valid() bool { - switch e { - case SignEvmTransactionRuleActionAccept: - return true - case SignEvmTransactionRuleActionReject: - return true - default: - return false - } -} - // Defines values for SignEvmTransactionRuleOperation. const ( SignEvmTransaction SignEvmTransactionRuleOperation = "signEvmTransaction" ) -// Valid indicates whether the value is a known member of the SignEvmTransactionRuleOperation enum. -func (e SignEvmTransactionRuleOperation) Valid() bool { - switch e { - case SignEvmTransaction: - return true - default: - return false - } -} - // Defines values for SignEvmTypedDataFieldCriterionType. const ( EvmTypedDataField SignEvmTypedDataFieldCriterionType = "evmTypedDataField" ) -// Valid indicates whether the value is a known member of the SignEvmTypedDataFieldCriterionType enum. -func (e SignEvmTypedDataFieldCriterionType) Valid() bool { - switch e { - case EvmTypedDataField: - return true - default: - return false - } -} - // Defines values for SignEvmTypedDataRuleAction. const ( SignEvmTypedDataRuleActionAccept SignEvmTypedDataRuleAction = "accept" SignEvmTypedDataRuleActionReject SignEvmTypedDataRuleAction = "reject" ) -// Valid indicates whether the value is a known member of the SignEvmTypedDataRuleAction enum. -func (e SignEvmTypedDataRuleAction) Valid() bool { - switch e { - case SignEvmTypedDataRuleActionAccept: - return true - case SignEvmTypedDataRuleActionReject: - return true - default: - return false - } -} - // Defines values for SignEvmTypedDataRuleOperation. const ( SignEvmTypedData SignEvmTypedDataRuleOperation = "signEvmTypedData" ) -// Valid indicates whether the value is a known member of the SignEvmTypedDataRuleOperation enum. -func (e SignEvmTypedDataRuleOperation) Valid() bool { - switch e { - case SignEvmTypedData: - return true - default: - return false - } -} - // Defines values for SignEvmTypedDataVerifyingContractCriterionOperator. const ( SignEvmTypedDataVerifyingContractCriterionOperatorIn SignEvmTypedDataVerifyingContractCriterionOperator = "in" SignEvmTypedDataVerifyingContractCriterionOperatorNotIn SignEvmTypedDataVerifyingContractCriterionOperator = "not in" ) -// Valid indicates whether the value is a known member of the SignEvmTypedDataVerifyingContractCriterionOperator enum. -func (e SignEvmTypedDataVerifyingContractCriterionOperator) Valid() bool { - switch e { - case SignEvmTypedDataVerifyingContractCriterionOperatorIn: - return true - case SignEvmTypedDataVerifyingContractCriterionOperatorNotIn: - return true - default: - return false - } -} - // Defines values for SignEvmTypedDataVerifyingContractCriterionType. const ( EvmTypedDataVerifyingContract SignEvmTypedDataVerifyingContractCriterionType = "evmTypedDataVerifyingContract" ) -// Valid indicates whether the value is a known member of the SignEvmTypedDataVerifyingContractCriterionType enum. -func (e SignEvmTypedDataVerifyingContractCriterionType) Valid() bool { - switch e { - case EvmTypedDataVerifyingContract: - return true - default: - return false - } -} - // Defines values for SignSolMessageRuleAction. const ( SignSolMessageRuleActionAccept SignSolMessageRuleAction = "accept" SignSolMessageRuleActionReject SignSolMessageRuleAction = "reject" ) -// Valid indicates whether the value is a known member of the SignSolMessageRuleAction enum. -func (e SignSolMessageRuleAction) Valid() bool { - switch e { - case SignSolMessageRuleActionAccept: - return true - case SignSolMessageRuleActionReject: - return true - default: - return false - } -} - // Defines values for SignSolMessageRuleOperation. const ( SignSolMessage SignSolMessageRuleOperation = "signSolMessage" ) -// Valid indicates whether the value is a known member of the SignSolMessageRuleOperation enum. -func (e SignSolMessageRuleOperation) Valid() bool { - switch e { - case SignSolMessage: - return true - default: - return false - } -} - // Defines values for SignSolTransactionRuleAction. const ( SignSolTransactionRuleActionAccept SignSolTransactionRuleAction = "accept" SignSolTransactionRuleActionReject SignSolTransactionRuleAction = "reject" ) -// Valid indicates whether the value is a known member of the SignSolTransactionRuleAction enum. -func (e SignSolTransactionRuleAction) Valid() bool { - switch e { - case SignSolTransactionRuleActionAccept: - return true - case SignSolTransactionRuleActionReject: - return true - default: - return false - } -} - // Defines values for SignSolTransactionRuleOperation. const ( SignSolTransaction SignSolTransactionRuleOperation = "signSolTransaction" ) -// Valid indicates whether the value is a known member of the SignSolTransactionRuleOperation enum. -func (e SignSolTransactionRuleOperation) Valid() bool { - switch e { - case SignSolTransaction: - return true - default: - return false - } -} - // Defines values for SiweAuthenticationType. const ( Siwe SiweAuthenticationType = "siwe" ) -// Valid indicates whether the value is a known member of the SiweAuthenticationType enum. -func (e SiweAuthenticationType) Valid() bool { - switch e { - case Siwe: - return true - default: - return false - } -} - // Defines values for SmsAuthenticationType. const ( Sms SmsAuthenticationType = "sms" ) -// Valid indicates whether the value is a known member of the SmsAuthenticationType enum. -func (e SmsAuthenticationType) Valid() bool { - switch e { - case Sms: - return true - default: - return false - } -} - // Defines values for SolAddressCriterionOperator. const ( SolAddressCriterionOperatorIn SolAddressCriterionOperator = "in" SolAddressCriterionOperatorNotIn SolAddressCriterionOperator = "not in" ) -// Valid indicates whether the value is a known member of the SolAddressCriterionOperator enum. -func (e SolAddressCriterionOperator) Valid() bool { - switch e { - case SolAddressCriterionOperatorIn: - return true - case SolAddressCriterionOperatorNotIn: - return true - default: - return false - } -} - // Defines values for SolAddressCriterionType. const ( SolAddress SolAddressCriterionType = "solAddress" ) -// Valid indicates whether the value is a known member of the SolAddressCriterionType enum. -func (e SolAddressCriterionType) Valid() bool { - switch e { - case SolAddress: - return true - default: - return false - } -} - // Defines values for SolDataCriterionType. const ( SolData SolDataCriterionType = "solData" ) -// Valid indicates whether the value is a known member of the SolDataCriterionType enum. -func (e SolDataCriterionType) Valid() bool { - switch e { - case SolData: - return true - default: - return false - } -} - // Defines values for SolDataParameterConditionOperator. const ( - SolDataParameterConditionOperatorEqualEqual SolDataParameterConditionOperator = "==" - SolDataParameterConditionOperatorGreaterThan SolDataParameterConditionOperator = ">" - SolDataParameterConditionOperatorGreaterThanEqual SolDataParameterConditionOperator = ">=" - SolDataParameterConditionOperatorLessThan SolDataParameterConditionOperator = "<" - SolDataParameterConditionOperatorLessThanEqual SolDataParameterConditionOperator = "<=" + SolDataParameterConditionOperatorEmpty SolDataParameterConditionOperator = ">" + SolDataParameterConditionOperatorEqualEqual SolDataParameterConditionOperator = "==" + SolDataParameterConditionOperatorN1 SolDataParameterConditionOperator = ">=" + SolDataParameterConditionOperatorN2 SolDataParameterConditionOperator = "<" + SolDataParameterConditionOperatorN3 SolDataParameterConditionOperator = "<=" ) -// Valid indicates whether the value is a known member of the SolDataParameterConditionOperator enum. -func (e SolDataParameterConditionOperator) Valid() bool { - switch e { - case SolDataParameterConditionOperatorEqualEqual: - return true - case SolDataParameterConditionOperatorGreaterThan: - return true - case SolDataParameterConditionOperatorGreaterThanEqual: - return true - case SolDataParameterConditionOperatorLessThan: - return true - case SolDataParameterConditionOperatorLessThanEqual: - return true - default: - return false - } -} - // Defines values for SolDataParameterConditionListOperator. const ( SolDataParameterConditionListOperatorIn SolDataParameterConditionListOperator = "in" SolDataParameterConditionListOperatorNotIn SolDataParameterConditionListOperator = "not in" ) -// Valid indicates whether the value is a known member of the SolDataParameterConditionListOperator enum. -func (e SolDataParameterConditionListOperator) Valid() bool { - switch e { - case SolDataParameterConditionListOperatorIn: - return true - case SolDataParameterConditionListOperatorNotIn: - return true - default: - return false - } -} - // Defines values for SolMessageCriterionType. const ( SolMessage SolMessageCriterionType = "solMessage" ) -// Valid indicates whether the value is a known member of the SolMessageCriterionType enum. -func (e SolMessageCriterionType) Valid() bool { - switch e { - case SolMessage: - return true - default: - return false - } -} - // Defines values for SolNetworkCriterionNetworks. const ( SolNetworkCriterionNetworksSolana SolNetworkCriterionNetworks = "solana" SolNetworkCriterionNetworksSolanaDevnet SolNetworkCriterionNetworks = "solana-devnet" ) -// Valid indicates whether the value is a known member of the SolNetworkCriterionNetworks enum. -func (e SolNetworkCriterionNetworks) Valid() bool { - switch e { - case SolNetworkCriterionNetworksSolana: - return true - case SolNetworkCriterionNetworksSolanaDevnet: - return true - default: - return false - } -} - // Defines values for SolNetworkCriterionOperator. const ( SolNetworkCriterionOperatorIn SolNetworkCriterionOperator = "in" SolNetworkCriterionOperatorNotIn SolNetworkCriterionOperator = "not in" ) -// Valid indicates whether the value is a known member of the SolNetworkCriterionOperator enum. -func (e SolNetworkCriterionOperator) Valid() bool { - switch e { - case SolNetworkCriterionOperatorIn: - return true - case SolNetworkCriterionOperatorNotIn: - return true - default: - return false - } -} - // Defines values for SolNetworkCriterionType. const ( SolNetwork SolNetworkCriterionType = "solNetwork" ) -// Valid indicates whether the value is a known member of the SolNetworkCriterionType enum. -func (e SolNetworkCriterionType) Valid() bool { - switch e { - case SolNetwork: - return true - default: - return false - } -} - // Defines values for SolValueCriterionOperator. const ( - SolValueCriterionOperatorEqualEqual SolValueCriterionOperator = "==" - SolValueCriterionOperatorGreaterThan SolValueCriterionOperator = ">" - SolValueCriterionOperatorGreaterThanEqual SolValueCriterionOperator = ">=" - SolValueCriterionOperatorLessThan SolValueCriterionOperator = "<" - SolValueCriterionOperatorLessThanEqual SolValueCriterionOperator = "<=" + SolValueCriterionOperatorEmpty SolValueCriterionOperator = ">" + SolValueCriterionOperatorEqualEqual SolValueCriterionOperator = "==" + SolValueCriterionOperatorN1 SolValueCriterionOperator = ">=" + SolValueCriterionOperatorN2 SolValueCriterionOperator = "<" + SolValueCriterionOperatorN3 SolValueCriterionOperator = "<=" ) -// Valid indicates whether the value is a known member of the SolValueCriterionOperator enum. -func (e SolValueCriterionOperator) Valid() bool { - switch e { - case SolValueCriterionOperatorEqualEqual: - return true - case SolValueCriterionOperatorGreaterThan: - return true - case SolValueCriterionOperatorGreaterThanEqual: - return true - case SolValueCriterionOperatorLessThan: - return true - case SolValueCriterionOperatorLessThanEqual: - return true - default: - return false - } -} - // Defines values for SolValueCriterionType. const ( SolValue SolValueCriterionType = "solValue" ) -// Valid indicates whether the value is a known member of the SolValueCriterionType enum. -func (e SolValueCriterionType) Valid() bool { - switch e { - case SolValue: - return true - default: - return false - } -} - // Defines values for SpendPermissionNetwork. const ( SpendPermissionNetworkArbitrum SpendPermissionNetwork = "arbitrum" @@ -2138,120 +736,36 @@ const ( SpendPermissionNetworkPolygon SpendPermissionNetwork = "polygon" ) -// Valid indicates whether the value is a known member of the SpendPermissionNetwork enum. -func (e SpendPermissionNetwork) Valid() bool { - switch e { - case SpendPermissionNetworkArbitrum: - return true - case SpendPermissionNetworkAvalanche: - return true - case SpendPermissionNetworkBase: - return true - case SpendPermissionNetworkBaseSepolia: - return true - case SpendPermissionNetworkEthereum: - return true - case SpendPermissionNetworkEthereumSepolia: - return true - case SpendPermissionNetworkOptimism: - return true - case SpendPermissionNetworkPolygon: - return true - default: - return false - } -} - // Defines values for SplAddressCriterionOperator. const ( In SplAddressCriterionOperator = "in" NotIn SplAddressCriterionOperator = "not in" ) -// Valid indicates whether the value is a known member of the SplAddressCriterionOperator enum. -func (e SplAddressCriterionOperator) Valid() bool { - switch e { - case In: - return true - case NotIn: - return true - default: - return false - } -} - // Defines values for SplAddressCriterionType. const ( SplAddress SplAddressCriterionType = "splAddress" ) -// Valid indicates whether the value is a known member of the SplAddressCriterionType enum. -func (e SplAddressCriterionType) Valid() bool { - switch e { - case SplAddress: - return true - default: - return false - } -} - // Defines values for SplValueCriterionOperator. const ( - EqualEqual SplValueCriterionOperator = "==" - GreaterThan SplValueCriterionOperator = ">" - GreaterThanEqual SplValueCriterionOperator = ">=" - LessThan SplValueCriterionOperator = "<" - LessThanEqual SplValueCriterionOperator = "<=" + SplValueCriterionOperatorEmpty SplValueCriterionOperator = ">" + SplValueCriterionOperatorEqualEqual SplValueCriterionOperator = "==" + SplValueCriterionOperatorN1 SplValueCriterionOperator = ">=" + SplValueCriterionOperatorN2 SplValueCriterionOperator = "<" + SplValueCriterionOperatorN3 SplValueCriterionOperator = "<=" ) -// Valid indicates whether the value is a known member of the SplValueCriterionOperator enum. -func (e SplValueCriterionOperator) Valid() bool { - switch e { - case EqualEqual: - return true - case GreaterThan: - return true - case GreaterThanEqual: - return true - case LessThan: - return true - case LessThanEqual: - return true - default: - return false - } -} - // Defines values for SplValueCriterionType. const ( SplValue SplValueCriterionType = "splValue" ) -// Valid indicates whether the value is a known member of the SplValueCriterionType enum. -func (e SplValueCriterionType) Valid() bool { - switch e { - case SplValue: - return true - default: - return false - } -} - // Defines values for SwapUnavailableResponseLiquidityAvailable. const ( False SwapUnavailableResponseLiquidityAvailable = false ) -// Valid indicates whether the value is a known member of the SwapUnavailableResponseLiquidityAvailable enum. -func (e SwapUnavailableResponseLiquidityAvailable) Valid() bool { - switch e { - case False: - return true - default: - return false - } -} - // Defines values for WebhookEventResponseStatus. const ( WebhookEventResponseStatusFailed WebhookEventResponseStatus = "failed" @@ -2261,42 +775,12 @@ const ( WebhookEventResponseStatusSucceeded WebhookEventResponseStatus = "succeeded" ) -// Valid indicates whether the value is a known member of the WebhookEventResponseStatus enum. -func (e WebhookEventResponseStatus) Valid() bool { - switch e { - case WebhookEventResponseStatusFailed: - return true - case WebhookEventResponseStatusPending: - return true - case WebhookEventResponseStatusProcessing: - return true - case WebhookEventResponseStatusRetrying: - return true - case WebhookEventResponseStatusSucceeded: - return true - default: - return false - } -} - // Defines values for X402Version. const ( - N1 X402Version = 1 - N2 X402Version = 2 + X402VersionN1 X402Version = 1 + X402VersionN2 X402Version = 2 ) -// Valid indicates whether the value is a known member of the X402Version enum. -func (e X402Version) Valid() bool { - switch e { - case N1: - return true - case N2: - return true - default: - return false - } -} - // Defines values for X402SettleErrorReason. const ( X402SettleErrorReasonInsufficientFunds X402SettleErrorReason = "insufficient_funds" @@ -2349,110 +833,6 @@ const ( X402SettleErrorReasonUnknownError X402SettleErrorReason = "unknown_error" ) -// Valid indicates whether the value is a known member of the X402SettleErrorReason enum. -func (e X402SettleErrorReason) Valid() bool { - switch e { - case X402SettleErrorReasonInsufficientFunds: - return true - case X402SettleErrorReasonInvalidExactEvmPayloadAuthorizationFromAddressKyt: - return true - case X402SettleErrorReasonInvalidExactEvmPayloadAuthorizationToAddressKyt: - return true - case X402SettleErrorReasonInvalidExactEvmPayloadAuthorizationTypedDataMessage: - return true - case X402SettleErrorReasonInvalidExactEvmPayloadAuthorizationValidAfter: - return true - case X402SettleErrorReasonInvalidExactEvmPayloadAuthorizationValidBefore: - return true - case X402SettleErrorReasonInvalidExactEvmPayloadAuthorizationValue: - return true - case X402SettleErrorReasonInvalidExactEvmPayloadAuthorizationValueTooLow: - return true - case X402SettleErrorReasonInvalidExactEvmPayloadSignature: - return true - case X402SettleErrorReasonInvalidExactEvmPayloadSignatureAddress: - return true - case X402SettleErrorReasonInvalidExactEvmPermit2PayloadAllowanceRequired: - return true - case X402SettleErrorReasonInvalidExactEvmPermit2PayloadAmount: - return true - case X402SettleErrorReasonInvalidExactEvmPermit2PayloadDeadline: - return true - case X402SettleErrorReasonInvalidExactEvmPermit2PayloadRecipient: - return true - case X402SettleErrorReasonInvalidExactEvmPermit2PayloadSignature: - return true - case X402SettleErrorReasonInvalidExactEvmPermit2PayloadSpender: - return true - case X402SettleErrorReasonInvalidExactEvmPermit2PayloadValidAfter: - return true - case X402SettleErrorReasonInvalidExactSvmPayloadTransaction: - return true - case X402SettleErrorReasonInvalidExactSvmPayloadTransactionAmountMismatch: - return true - case X402SettleErrorReasonInvalidExactSvmPayloadTransactionCannotDeriveReceiverAta: - return true - case X402SettleErrorReasonInvalidExactSvmPayloadTransactionCreateAtaInstruction: - return true - case X402SettleErrorReasonInvalidExactSvmPayloadTransactionCreateAtaInstructionIncorrectAsset: - return true - case X402SettleErrorReasonInvalidExactSvmPayloadTransactionCreateAtaInstructionIncorrectPayee: - return true - case X402SettleErrorReasonInvalidExactSvmPayloadTransactionFeePayerIncludedInInstructionAccounts: - return true - case X402SettleErrorReasonInvalidExactSvmPayloadTransactionFeePayerTransferringFunds: - return true - case X402SettleErrorReasonInvalidExactSvmPayloadTransactionInstructionNotSplTokenTransferChecked: - return true - case X402SettleErrorReasonInvalidExactSvmPayloadTransactionInstructionNotToken2022TransferChecked: - return true - case X402SettleErrorReasonInvalidExactSvmPayloadTransactionInstructions: - return true - case X402SettleErrorReasonInvalidExactSvmPayloadTransactionInstructionsComputeLimitInstruction: - return true - case X402SettleErrorReasonInvalidExactSvmPayloadTransactionInstructionsComputePriceInstruction: - return true - case X402SettleErrorReasonInvalidExactSvmPayloadTransactionInstructionsComputePriceInstructionTooHigh: - return true - case X402SettleErrorReasonInvalidExactSvmPayloadTransactionInstructionsLength: - return true - case X402SettleErrorReasonInvalidExactSvmPayloadTransactionNotATransferInstruction: - return true - case X402SettleErrorReasonInvalidExactSvmPayloadTransactionReceiverAtaNotFound: - return true - case X402SettleErrorReasonInvalidExactSvmPayloadTransactionSenderAtaNotFound: - return true - case X402SettleErrorReasonInvalidExactSvmPayloadTransactionSimulationFailed: - return true - case X402SettleErrorReasonInvalidExactSvmPayloadTransactionTransferToIncorrectAta: - return true - case X402SettleErrorReasonInvalidNetwork: - return true - case X402SettleErrorReasonInvalidPayload: - return true - case X402SettleErrorReasonInvalidPaymentRequirements: - return true - case X402SettleErrorReasonInvalidScheme: - return true - case X402SettleErrorReasonInvalidX402Version: - return true - case X402SettleErrorReasonSettleExactEvmTransactionConfirmationTimedOut: - return true - case X402SettleErrorReasonSettleExactFailedOnchain: - return true - case X402SettleErrorReasonSettleExactNodeFailure: - return true - case X402SettleErrorReasonSettleExactSvmBlockHeightExceeded: - return true - case X402SettleErrorReasonSettleExactSvmTransactionConfirmationTimedOut: - return true - case X402SettleErrorReasonUnknownError: - return true - default: - return false - } -} - // Defines values for X402SupportedPaymentKindNetwork. const ( X402SupportedPaymentKindNetworkArbitrum X402SupportedPaymentKindNetwork = "arbitrum" @@ -2472,62 +852,12 @@ const ( X402SupportedPaymentKindNetworkWorldSepolia X402SupportedPaymentKindNetwork = "world-sepolia" ) -// Valid indicates whether the value is a known member of the X402SupportedPaymentKindNetwork enum. -func (e X402SupportedPaymentKindNetwork) Valid() bool { - switch e { - case X402SupportedPaymentKindNetworkArbitrum: - return true - case X402SupportedPaymentKindNetworkArbitrumSepolia: - return true - case X402SupportedPaymentKindNetworkAvalanche: - return true - case X402SupportedPaymentKindNetworkBase: - return true - case X402SupportedPaymentKindNetworkBaseSepolia: - return true - case X402SupportedPaymentKindNetworkEip155137: - return true - case X402SupportedPaymentKindNetworkEip1558453: - return true - case X402SupportedPaymentKindNetworkEip15584532: - return true - case X402SupportedPaymentKindNetworkPolygon: - return true - case X402SupportedPaymentKindNetworkSolana: - return true - case X402SupportedPaymentKindNetworkSolana5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp: - return true - case X402SupportedPaymentKindNetworkSolanaDevnet: - return true - case X402SupportedPaymentKindNetworkSolanaEtWTRABZaYq6iMfeYKouRu166VU2xqa1: - return true - case X402SupportedPaymentKindNetworkWorld: - return true - case X402SupportedPaymentKindNetworkWorldSepolia: - return true - default: - return false - } -} - // Defines values for X402SupportedPaymentKindScheme. const ( X402SupportedPaymentKindSchemeExact X402SupportedPaymentKindScheme = "exact" X402SupportedPaymentKindSchemeUpto X402SupportedPaymentKindScheme = "upto" ) -// Valid indicates whether the value is a known member of the X402SupportedPaymentKindScheme enum. -func (e X402SupportedPaymentKindScheme) Valid() bool { - switch e { - case X402SupportedPaymentKindSchemeExact: - return true - case X402SupportedPaymentKindSchemeUpto: - return true - default: - return false - } -} - // Defines values for X402V1PaymentPayloadNetwork. const ( X402V1PaymentPayloadNetworkBase X402V1PaymentPayloadNetwork = "base" @@ -2537,39 +867,11 @@ const ( X402V1PaymentPayloadNetworkSolanaDevnet X402V1PaymentPayloadNetwork = "solana-devnet" ) -// Valid indicates whether the value is a known member of the X402V1PaymentPayloadNetwork enum. -func (e X402V1PaymentPayloadNetwork) Valid() bool { - switch e { - case X402V1PaymentPayloadNetworkBase: - return true - case X402V1PaymentPayloadNetworkBaseSepolia: - return true - case X402V1PaymentPayloadNetworkPolygon: - return true - case X402V1PaymentPayloadNetworkSolana: - return true - case X402V1PaymentPayloadNetworkSolanaDevnet: - return true - default: - return false - } -} - // Defines values for X402V1PaymentPayloadScheme. const ( X402V1PaymentPayloadSchemeExact X402V1PaymentPayloadScheme = "exact" ) -// Valid indicates whether the value is a known member of the X402V1PaymentPayloadScheme enum. -func (e X402V1PaymentPayloadScheme) Valid() bool { - switch e { - case X402V1PaymentPayloadSchemeExact: - return true - default: - return false - } -} - // Defines values for X402V1PaymentRequirementsNetwork. const ( X402V1PaymentRequirementsNetworkBase X402V1PaymentRequirementsNetwork = "base" @@ -2579,57 +881,17 @@ const ( X402V1PaymentRequirementsNetworkSolanaDevnet X402V1PaymentRequirementsNetwork = "solana-devnet" ) -// Valid indicates whether the value is a known member of the X402V1PaymentRequirementsNetwork enum. -func (e X402V1PaymentRequirementsNetwork) Valid() bool { - switch e { - case X402V1PaymentRequirementsNetworkBase: - return true - case X402V1PaymentRequirementsNetworkBaseSepolia: - return true - case X402V1PaymentRequirementsNetworkPolygon: - return true - case X402V1PaymentRequirementsNetworkSolana: - return true - case X402V1PaymentRequirementsNetworkSolanaDevnet: - return true - default: - return false - } -} - // Defines values for X402V1PaymentRequirementsScheme. const ( X402V1PaymentRequirementsSchemeExact X402V1PaymentRequirementsScheme = "exact" ) -// Valid indicates whether the value is a known member of the X402V1PaymentRequirementsScheme enum. -func (e X402V1PaymentRequirementsScheme) Valid() bool { - switch e { - case X402V1PaymentRequirementsSchemeExact: - return true - default: - return false - } -} - // Defines values for X402V2PaymentRequirementsScheme. const ( X402V2PaymentRequirementsSchemeExact X402V2PaymentRequirementsScheme = "exact" X402V2PaymentRequirementsSchemeUpto X402V2PaymentRequirementsScheme = "upto" ) -// Valid indicates whether the value is a known member of the X402V2PaymentRequirementsScheme enum. -func (e X402V2PaymentRequirementsScheme) Valid() bool { - switch e { - case X402V2PaymentRequirementsSchemeExact: - return true - case X402V2PaymentRequirementsSchemeUpto: - return true - default: - return false - } -} - // Defines values for X402VerifyInvalidReason. const ( X402VerifyInvalidReasonInsufficientFunds X402VerifyInvalidReason = "insufficient_funds" @@ -2677,136 +939,18 @@ const ( X402VerifyInvalidReasonUnknownError X402VerifyInvalidReason = "unknown_error" ) -// Valid indicates whether the value is a known member of the X402VerifyInvalidReason enum. -func (e X402VerifyInvalidReason) Valid() bool { - switch e { - case X402VerifyInvalidReasonInsufficientFunds: - return true - case X402VerifyInvalidReasonInvalidExactEvmPayloadAuthorizationFromAddressKyt: - return true - case X402VerifyInvalidReasonInvalidExactEvmPayloadAuthorizationToAddressKyt: - return true - case X402VerifyInvalidReasonInvalidExactEvmPayloadAuthorizationTypedDataMessage: - return true - case X402VerifyInvalidReasonInvalidExactEvmPayloadAuthorizationValidAfter: - return true - case X402VerifyInvalidReasonInvalidExactEvmPayloadAuthorizationValidBefore: - return true - case X402VerifyInvalidReasonInvalidExactEvmPayloadAuthorizationValue: - return true - case X402VerifyInvalidReasonInvalidExactEvmPayloadAuthorizationValueTooLow: - return true - case X402VerifyInvalidReasonInvalidExactEvmPayloadSignature: - return true - case X402VerifyInvalidReasonInvalidExactEvmPayloadSignatureAddress: - return true - case X402VerifyInvalidReasonInvalidExactEvmPermit2PayloadAllowanceRequired: - return true - case X402VerifyInvalidReasonInvalidExactEvmPermit2PayloadAmount: - return true - case X402VerifyInvalidReasonInvalidExactEvmPermit2PayloadDeadline: - return true - case X402VerifyInvalidReasonInvalidExactEvmPermit2PayloadRecipient: - return true - case X402VerifyInvalidReasonInvalidExactEvmPermit2PayloadSignature: - return true - case X402VerifyInvalidReasonInvalidExactEvmPermit2PayloadSpender: - return true - case X402VerifyInvalidReasonInvalidExactEvmPermit2PayloadValidAfter: - return true - case X402VerifyInvalidReasonInvalidExactSvmPayloadTransaction: - return true - case X402VerifyInvalidReasonInvalidExactSvmPayloadTransactionAmountMismatch: - return true - case X402VerifyInvalidReasonInvalidExactSvmPayloadTransactionCannotDeriveReceiverAta: - return true - case X402VerifyInvalidReasonInvalidExactSvmPayloadTransactionCreateAtaInstruction: - return true - case X402VerifyInvalidReasonInvalidExactSvmPayloadTransactionCreateAtaInstructionIncorrectAsset: - return true - case X402VerifyInvalidReasonInvalidExactSvmPayloadTransactionCreateAtaInstructionIncorrectPayee: - return true - case X402VerifyInvalidReasonInvalidExactSvmPayloadTransactionFeePayerIncludedInInstructionAccounts: - return true - case X402VerifyInvalidReasonInvalidExactSvmPayloadTransactionFeePayerTransferringFunds: - return true - case X402VerifyInvalidReasonInvalidExactSvmPayloadTransactionInstructionNotSplTokenTransferChecked: - return true - case X402VerifyInvalidReasonInvalidExactSvmPayloadTransactionInstructionNotToken2022TransferChecked: - return true - case X402VerifyInvalidReasonInvalidExactSvmPayloadTransactionInstructions: - return true - case X402VerifyInvalidReasonInvalidExactSvmPayloadTransactionInstructionsComputeLimitInstruction: - return true - case X402VerifyInvalidReasonInvalidExactSvmPayloadTransactionInstructionsComputePriceInstruction: - return true - case X402VerifyInvalidReasonInvalidExactSvmPayloadTransactionInstructionsComputePriceInstructionTooHigh: - return true - case X402VerifyInvalidReasonInvalidExactSvmPayloadTransactionInstructionsLength: - return true - case X402VerifyInvalidReasonInvalidExactSvmPayloadTransactionNotATransferInstruction: - return true - case X402VerifyInvalidReasonInvalidExactSvmPayloadTransactionReceiverAtaNotFound: - return true - case X402VerifyInvalidReasonInvalidExactSvmPayloadTransactionSenderAtaNotFound: - return true - case X402VerifyInvalidReasonInvalidExactSvmPayloadTransactionSimulationFailed: - return true - case X402VerifyInvalidReasonInvalidExactSvmPayloadTransactionTransferToIncorrectAta: - return true - case X402VerifyInvalidReasonInvalidNetwork: - return true - case X402VerifyInvalidReasonInvalidPayload: - return true - case X402VerifyInvalidReasonInvalidPaymentRequirements: - return true - case X402VerifyInvalidReasonInvalidScheme: - return true - case X402VerifyInvalidReasonInvalidX402Version: - return true - case X402VerifyInvalidReasonUnknownError: - return true - default: - return false - } -} - // Defines values for ListTokensForAccountParamsNetwork. const ( ListTokensForAccountParamsNetworkBase ListTokensForAccountParamsNetwork = "base" ListTokensForAccountParamsNetworkBaseSepolia ListTokensForAccountParamsNetwork = "base-sepolia" ) -// Valid indicates whether the value is a known member of the ListTokensForAccountParamsNetwork enum. -func (e ListTokensForAccountParamsNetwork) Valid() bool { - switch e { - case ListTokensForAccountParamsNetworkBase: - return true - case ListTokensForAccountParamsNetworkBaseSepolia: - return true - default: - return false - } -} - // Defines values for GetSQLSchemaParamsDatabase. const ( GetSQLSchemaParamsDatabaseBase GetSQLSchemaParamsDatabase = "base" GetSQLSchemaParamsDatabaseBaseSepolia GetSQLSchemaParamsDatabase = "base_sepolia" ) -// Valid indicates whether the value is a known member of the GetSQLSchemaParamsDatabase enum. -func (e GetSQLSchemaParamsDatabase) Valid() bool { - switch e { - case GetSQLSchemaParamsDatabaseBase: - return true - case GetSQLSchemaParamsDatabaseBaseSepolia: - return true - default: - return false - } -} - // Defines values for SendEvmTransactionWithEndUserAccountJSONBodyNetwork. const ( SendEvmTransactionWithEndUserAccountJSONBodyNetworkArbitrum SendEvmTransactionWithEndUserAccountJSONBodyNetwork = "arbitrum" @@ -2822,36 +966,6 @@ const ( SendEvmTransactionWithEndUserAccountJSONBodyNetworkWorldSepolia SendEvmTransactionWithEndUserAccountJSONBodyNetwork = "world-sepolia" ) -// Valid indicates whether the value is a known member of the SendEvmTransactionWithEndUserAccountJSONBodyNetwork enum. -func (e SendEvmTransactionWithEndUserAccountJSONBodyNetwork) Valid() bool { - switch e { - case SendEvmTransactionWithEndUserAccountJSONBodyNetworkArbitrum: - return true - case SendEvmTransactionWithEndUserAccountJSONBodyNetworkArbitrumSepolia: - return true - case SendEvmTransactionWithEndUserAccountJSONBodyNetworkAvalanche: - return true - case SendEvmTransactionWithEndUserAccountJSONBodyNetworkBase: - return true - case SendEvmTransactionWithEndUserAccountJSONBodyNetworkBaseSepolia: - return true - case SendEvmTransactionWithEndUserAccountJSONBodyNetworkEthereum: - return true - case SendEvmTransactionWithEndUserAccountJSONBodyNetworkEthereumSepolia: - return true - case SendEvmTransactionWithEndUserAccountJSONBodyNetworkOptimism: - return true - case SendEvmTransactionWithEndUserAccountJSONBodyNetworkPolygon: - return true - case SendEvmTransactionWithEndUserAccountJSONBodyNetworkWorld: - return true - case SendEvmTransactionWithEndUserAccountJSONBodyNetworkWorldSepolia: - return true - default: - return false - } -} - // Defines values for SendEvmAssetWithEndUserAccountJSONBodyNetwork. const ( SendEvmAssetWithEndUserAccountJSONBodyNetworkArbitrum SendEvmAssetWithEndUserAccountJSONBodyNetwork = "arbitrum" @@ -2867,108 +981,30 @@ const ( SendEvmAssetWithEndUserAccountJSONBodyNetworkWorldSepolia SendEvmAssetWithEndUserAccountJSONBodyNetwork = "world-sepolia" ) -// Valid indicates whether the value is a known member of the SendEvmAssetWithEndUserAccountJSONBodyNetwork enum. -func (e SendEvmAssetWithEndUserAccountJSONBodyNetwork) Valid() bool { - switch e { - case SendEvmAssetWithEndUserAccountJSONBodyNetworkArbitrum: - return true - case SendEvmAssetWithEndUserAccountJSONBodyNetworkArbitrumSepolia: - return true - case SendEvmAssetWithEndUserAccountJSONBodyNetworkAvalanche: - return true - case SendEvmAssetWithEndUserAccountJSONBodyNetworkBase: - return true - case SendEvmAssetWithEndUserAccountJSONBodyNetworkBaseSepolia: - return true - case SendEvmAssetWithEndUserAccountJSONBodyNetworkEthereum: - return true - case SendEvmAssetWithEndUserAccountJSONBodyNetworkEthereumSepolia: - return true - case SendEvmAssetWithEndUserAccountJSONBodyNetworkOptimism: - return true - case SendEvmAssetWithEndUserAccountJSONBodyNetworkPolygon: - return true - case SendEvmAssetWithEndUserAccountJSONBodyNetworkWorld: - return true - case SendEvmAssetWithEndUserAccountJSONBodyNetworkWorldSepolia: - return true - default: - return false - } -} - // Defines values for SendSolanaTransactionWithEndUserAccountJSONBodyNetwork. const ( SendSolanaTransactionWithEndUserAccountJSONBodyNetworkSolana SendSolanaTransactionWithEndUserAccountJSONBodyNetwork = "solana" SendSolanaTransactionWithEndUserAccountJSONBodyNetworkSolanaDevnet SendSolanaTransactionWithEndUserAccountJSONBodyNetwork = "solana-devnet" ) -// Valid indicates whether the value is a known member of the SendSolanaTransactionWithEndUserAccountJSONBodyNetwork enum. -func (e SendSolanaTransactionWithEndUserAccountJSONBodyNetwork) Valid() bool { - switch e { - case SendSolanaTransactionWithEndUserAccountJSONBodyNetworkSolana: - return true - case SendSolanaTransactionWithEndUserAccountJSONBodyNetworkSolanaDevnet: - return true - default: - return false - } -} - // Defines values for SendSolanaAssetWithEndUserAccountJSONBodyNetwork. const ( SendSolanaAssetWithEndUserAccountJSONBodyNetworkSolana SendSolanaAssetWithEndUserAccountJSONBodyNetwork = "solana" SendSolanaAssetWithEndUserAccountJSONBodyNetworkSolanaDevnet SendSolanaAssetWithEndUserAccountJSONBodyNetwork = "solana-devnet" ) -// Valid indicates whether the value is a known member of the SendSolanaAssetWithEndUserAccountJSONBodyNetwork enum. -func (e SendSolanaAssetWithEndUserAccountJSONBodyNetwork) Valid() bool { - switch e { - case SendSolanaAssetWithEndUserAccountJSONBodyNetworkSolana: - return true - case SendSolanaAssetWithEndUserAccountJSONBodyNetworkSolanaDevnet: - return true - default: - return false - } -} - // Defines values for ListEndUsersParamsSort. const ( CreatedAtAsc ListEndUsersParamsSort = "createdAt=asc" CreatedAtDesc ListEndUsersParamsSort = "createdAt=desc" ) -// Valid indicates whether the value is a known member of the ListEndUsersParamsSort enum. -func (e ListEndUsersParamsSort) Valid() bool { - switch e { - case CreatedAtAsc: - return true - case CreatedAtDesc: - return true - default: - return false - } -} - // Defines values for ImportEndUserJSONBodyKeyType. const ( ImportEndUserJSONBodyKeyTypeEvm ImportEndUserJSONBodyKeyType = "evm" ImportEndUserJSONBodyKeyTypeSolana ImportEndUserJSONBodyKeyType = "solana" ) -// Valid indicates whether the value is a known member of the ImportEndUserJSONBodyKeyType enum. -func (e ImportEndUserJSONBodyKeyType) Valid() bool { - switch e { - case ImportEndUserJSONBodyKeyTypeEvm: - return true - case ImportEndUserJSONBodyKeyTypeSolana: - return true - default: - return false - } -} - // Defines values for SendEvmTransactionJSONBodyNetwork. const ( SendEvmTransactionJSONBodyNetworkArbitrum SendEvmTransactionJSONBodyNetwork = "arbitrum" @@ -2984,36 +1020,6 @@ const ( SendEvmTransactionJSONBodyNetworkWorldSepolia SendEvmTransactionJSONBodyNetwork = "world-sepolia" ) -// Valid indicates whether the value is a known member of the SendEvmTransactionJSONBodyNetwork enum. -func (e SendEvmTransactionJSONBodyNetwork) Valid() bool { - switch e { - case SendEvmTransactionJSONBodyNetworkArbitrum: - return true - case SendEvmTransactionJSONBodyNetworkArbitrumSepolia: - return true - case SendEvmTransactionJSONBodyNetworkAvalanche: - return true - case SendEvmTransactionJSONBodyNetworkBase: - return true - case SendEvmTransactionJSONBodyNetworkBaseSepolia: - return true - case SendEvmTransactionJSONBodyNetworkEthereum: - return true - case SendEvmTransactionJSONBodyNetworkEthereumSepolia: - return true - case SendEvmTransactionJSONBodyNetworkOptimism: - return true - case SendEvmTransactionJSONBodyNetworkPolygon: - return true - case SendEvmTransactionJSONBodyNetworkWorld: - return true - case SendEvmTransactionJSONBodyNetworkWorldSepolia: - return true - default: - return false - } -} - // Defines values for RequestEvmFaucetJSONBodyNetwork. const ( BaseSepolia RequestEvmFaucetJSONBodyNetwork = "base-sepolia" @@ -3021,20 +1027,6 @@ const ( EthereumSepolia RequestEvmFaucetJSONBodyNetwork = "ethereum-sepolia" ) -// Valid indicates whether the value is a known member of the RequestEvmFaucetJSONBodyNetwork enum. -func (e RequestEvmFaucetJSONBodyNetwork) Valid() bool { - switch e { - case BaseSepolia: - return true - case EthereumHoodi: - return true - case EthereumSepolia: - return true - default: - return false - } -} - // Defines values for RequestEvmFaucetJSONBodyToken. const ( RequestEvmFaucetJSONBodyTokenCbbtc RequestEvmFaucetJSONBodyToken = "cbbtc" @@ -3043,76 +1035,24 @@ const ( RequestEvmFaucetJSONBodyTokenUsdc RequestEvmFaucetJSONBodyToken = "usdc" ) -// Valid indicates whether the value is a known member of the RequestEvmFaucetJSONBodyToken enum. -func (e RequestEvmFaucetJSONBodyToken) Valid() bool { - switch e { - case RequestEvmFaucetJSONBodyTokenCbbtc: - return true - case RequestEvmFaucetJSONBodyTokenEth: - return true - case RequestEvmFaucetJSONBodyTokenEurc: - return true - case RequestEvmFaucetJSONBodyTokenUsdc: - return true - default: - return false - } -} - // Defines values for ListPoliciesParamsScope. const ( ListPoliciesParamsScopeAccount ListPoliciesParamsScope = "account" ListPoliciesParamsScopeProject ListPoliciesParamsScope = "project" ) -// Valid indicates whether the value is a known member of the ListPoliciesParamsScope enum. -func (e ListPoliciesParamsScope) Valid() bool { - switch e { - case ListPoliciesParamsScopeAccount: - return true - case ListPoliciesParamsScopeProject: - return true - default: - return false - } -} - // Defines values for CreatePolicyJSONBodyScope. const ( Account CreatePolicyJSONBodyScope = "account" Project CreatePolicyJSONBodyScope = "project" ) -// Valid indicates whether the value is a known member of the CreatePolicyJSONBodyScope enum. -func (e CreatePolicyJSONBodyScope) Valid() bool { - switch e { - case Account: - return true - case Project: - return true - default: - return false - } -} - // Defines values for SendSolanaTransactionJSONBodyNetwork. const ( SendSolanaTransactionJSONBodyNetworkSolana SendSolanaTransactionJSONBodyNetwork = "solana" SendSolanaTransactionJSONBodyNetworkSolanaDevnet SendSolanaTransactionJSONBodyNetwork = "solana-devnet" ) -// Valid indicates whether the value is a known member of the SendSolanaTransactionJSONBodyNetwork enum. -func (e SendSolanaTransactionJSONBodyNetwork) Valid() bool { - switch e { - case SendSolanaTransactionJSONBodyNetworkSolana: - return true - case SendSolanaTransactionJSONBodyNetworkSolanaDevnet: - return true - default: - return false - } -} - // Defines values for RequestSolanaFaucetJSONBodyToken. const ( RequestSolanaFaucetJSONBodyTokenCbtusd RequestSolanaFaucetJSONBodyToken = "cbtusd" @@ -3120,20 +1060,6 @@ const ( RequestSolanaFaucetJSONBodyTokenUsdc RequestSolanaFaucetJSONBodyToken = "usdc" ) -// Valid indicates whether the value is a known member of the RequestSolanaFaucetJSONBodyToken enum. -func (e RequestSolanaFaucetJSONBodyToken) Valid() bool { - switch e { - case RequestSolanaFaucetJSONBodyTokenCbtusd: - return true - case RequestSolanaFaucetJSONBodyTokenSol: - return true - case RequestSolanaFaucetJSONBodyTokenUsdc: - return true - default: - return false - } -} - // Abi Contract ABI Specification following Solidity's external JSON interface format. type Abi = []Abi_Item @@ -3175,7 +1101,7 @@ type AbiFunctionType string // AbiInput Generic ABI item type encapsulating all other types besides `function`. type AbiInput struct { // AdditionalProperties For additional information on the ABI JSON specification, see [the Solidity documentation](https://docs.soliditylang.org/en/latest/abi-spec.html#json). - AdditionalProperties interface{} `json:"additionalProperties,omitempty"` + AdditionalProperties *interface{} `json:"additionalProperties,omitempty"` // Type The type of the ABI item. Type AbiInputType `json:"type"` @@ -3499,14 +1425,14 @@ type EndUser struct { EvmAccountObjects []EndUserEvmAccount `json:"evmAccountObjects"` // EvmAccounts **DEPRECATED**: Use `evmAccountObjects` instead for richer account information. The list of EVM account addresses associated with the end user. End users can have up to 10 EVM accounts. - // Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set + // Deprecated: EvmAccounts []string `json:"evmAccounts"` // EvmSmartAccountObjects The list of EVM smart accounts associated with the end user. Each EVM EOA can own one smart account. EvmSmartAccountObjects []EndUserEvmSmartAccount `json:"evmSmartAccountObjects"` // EvmSmartAccounts **DEPRECATED**: Use `evmSmartAccountObjects` instead for richer account information including owner relationships. The list of EVM smart account addresses associated with the end user. Each EVM EOA can own one smart account. - // Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set + // Deprecated: EvmSmartAccounts []string `json:"evmSmartAccounts"` // MfaMethods Information about the end user's MFA enrollments. @@ -3516,7 +1442,7 @@ type EndUser struct { SolanaAccountObjects []EndUserSolanaAccount `json:"solanaAccountObjects"` // SolanaAccounts **DEPRECATED**: Use `solanaAccountObjects` instead for richer account information. The list of Solana account addresses associated with the end user. End users can have up to 10 Solana accounts. - // Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set + // Deprecated: SolanaAccounts []string `json:"solanaAccounts"` // UserId A stable, unique identifier for the end user. The `userId` must be unique across all end users in the developer's CDP Project. It must be between 1 and 100 characters long and can only contain alphanumeric characters and hyphens. @@ -5435,7 +3361,7 @@ type WebhookSubscriptionResponse struct { // WebhookSubscriptionResponse_Metadata defines model for WebhookSubscriptionResponse.Metadata. type WebhookSubscriptionResponse_Metadata struct { // Secret Use the root-level `secret` field instead. Maintained for backward compatibility only. - // Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set + // Deprecated: Secret *openapi_types.UUID `json:"secret,omitempty"` AdditionalProperties map[string]string `json:"-"` } @@ -7664,7 +5590,7 @@ func (t *Abi_Item) MergeAbiFunction(v AbiFunction) error { return err } - merged, err := runtime.JSONMerge(t.union, b) + merged, err := runtime.JsonMerge(t.union, b) t.union = merged return err } @@ -7690,7 +5616,7 @@ func (t *Abi_Item) MergeAbiInput(v AbiInput) error { return err } - merged, err := runtime.JSONMerge(t.union, b) + merged, err := runtime.JsonMerge(t.union, b) t.union = merged return err } @@ -7726,7 +5652,7 @@ func (t *AuthenticationMethod) MergeEmailAuthentication(v EmailAuthentication) e return err } - merged, err := runtime.JSONMerge(t.union, b) + merged, err := runtime.JsonMerge(t.union, b) t.union = merged return err } @@ -7752,7 +5678,7 @@ func (t *AuthenticationMethod) MergeSmsAuthentication(v SmsAuthentication) error return err } - merged, err := runtime.JSONMerge(t.union, b) + merged, err := runtime.JsonMerge(t.union, b) t.union = merged return err } @@ -7778,7 +5704,7 @@ func (t *AuthenticationMethod) MergeDeveloperJWTAuthentication(v DeveloperJWTAut return err } - merged, err := runtime.JSONMerge(t.union, b) + merged, err := runtime.JsonMerge(t.union, b) t.union = merged return err } @@ -7804,7 +5730,7 @@ func (t *AuthenticationMethod) MergeOAuth2Authentication(v OAuth2Authentication) return err } - merged, err := runtime.JSONMerge(t.union, b) + merged, err := runtime.JsonMerge(t.union, b) t.union = merged return err } @@ -7830,7 +5756,7 @@ func (t *AuthenticationMethod) MergeTelegramAuthentication(v TelegramAuthenticat return err } - merged, err := runtime.JSONMerge(t.union, b) + merged, err := runtime.JsonMerge(t.union, b) t.union = merged return err } @@ -7856,7 +5782,7 @@ func (t *AuthenticationMethod) MergeSiweAuthentication(v SiweAuthentication) err return err } - merged, err := runtime.JSONMerge(t.union, b) + merged, err := runtime.JsonMerge(t.union, b) t.union = merged return err } @@ -7892,7 +5818,7 @@ func (t *CreateSwapQuoteResponseWrapper) MergeCreateSwapQuoteResponse(v CreateSw return err } - merged, err := runtime.JSONMerge(t.union, b) + merged, err := runtime.JsonMerge(t.union, b) t.union = merged return err } @@ -7918,7 +5844,7 @@ func (t *CreateSwapQuoteResponseWrapper) MergeSwapUnavailableResponse(v SwapUnav return err } - merged, err := runtime.JSONMerge(t.union, b) + merged, err := runtime.JsonMerge(t.union, b) t.union = merged return err } @@ -7954,7 +5880,7 @@ func (t *EvmDataCondition_Params_Item) MergeEvmDataParameterCondition(v EvmDataP return err } - merged, err := runtime.JSONMerge(t.union, b) + merged, err := runtime.JsonMerge(t.union, b) t.union = merged return err } @@ -7980,7 +5906,7 @@ func (t *EvmDataCondition_Params_Item) MergeEvmDataParameterConditionList(v EvmD return err } - merged, err := runtime.JSONMerge(t.union, b) + merged, err := runtime.JsonMerge(t.union, b) t.union = merged return err } @@ -8016,7 +5942,7 @@ func (t *EvmDataCriterion_Abi) MergeKnownAbiType(v KnownAbiType) error { return err } - merged, err := runtime.JSONMerge(t.union, b) + merged, err := runtime.JsonMerge(t.union, b) t.union = merged return err } @@ -8042,7 +5968,7 @@ func (t *EvmDataCriterion_Abi) MergeAbi(v Abi) error { return err } - merged, err := runtime.JSONMerge(t.union, b) + merged, err := runtime.JsonMerge(t.union, b) t.union = merged return err } @@ -8078,7 +6004,7 @@ func (t *GetSwapPriceResponseWrapper) MergeGetSwapPriceResponse(v GetSwapPriceRe return err } - merged, err := runtime.JSONMerge(t.union, b) + merged, err := runtime.JsonMerge(t.union, b) t.union = merged return err } @@ -8104,7 +6030,7 @@ func (t *GetSwapPriceResponseWrapper) MergeSwapUnavailableResponse(v SwapUnavail return err } - merged, err := runtime.JSONMerge(t.union, b) + merged, err := runtime.JsonMerge(t.union, b) t.union = merged return err } @@ -8140,7 +6066,7 @@ func (t *PrepareUserOperationCriteria_Item) MergeEthValueCriterion(v EthValueCri return err } - merged, err := runtime.JSONMerge(t.union, b) + merged, err := runtime.JsonMerge(t.union, b) t.union = merged return err } @@ -8166,7 +6092,7 @@ func (t *PrepareUserOperationCriteria_Item) MergeEvmAddressCriterion(v EvmAddres return err } - merged, err := runtime.JSONMerge(t.union, b) + merged, err := runtime.JsonMerge(t.union, b) t.union = merged return err } @@ -8192,7 +6118,7 @@ func (t *PrepareUserOperationCriteria_Item) MergeEvmNetworkCriterion(v EvmNetwor return err } - merged, err := runtime.JSONMerge(t.union, b) + merged, err := runtime.JsonMerge(t.union, b) t.union = merged return err } @@ -8218,7 +6144,7 @@ func (t *PrepareUserOperationCriteria_Item) MergeEvmDataCriterion(v EvmDataCrite return err } - merged, err := runtime.JSONMerge(t.union, b) + merged, err := runtime.JsonMerge(t.union, b) t.union = merged return err } @@ -8244,7 +6170,7 @@ func (t *PrepareUserOperationCriteria_Item) MergeNetUSDChangeCriterion(v NetUSDC return err } - merged, err := runtime.JSONMerge(t.union, b) + merged, err := runtime.JsonMerge(t.union, b) t.union = merged return err } @@ -8280,7 +6206,7 @@ func (t *Rule) MergeSignEvmTransactionRule(v SignEvmTransactionRule) error { return err } - merged, err := runtime.JSONMerge(t.union, b) + merged, err := runtime.JsonMerge(t.union, b) t.union = merged return err } @@ -8306,7 +6232,7 @@ func (t *Rule) MergeSendEvmTransactionRule(v SendEvmTransactionRule) error { return err } - merged, err := runtime.JSONMerge(t.union, b) + merged, err := runtime.JsonMerge(t.union, b) t.union = merged return err } @@ -8332,7 +6258,7 @@ func (t *Rule) MergeSignEvmMessageRule(v SignEvmMessageRule) error { return err } - merged, err := runtime.JSONMerge(t.union, b) + merged, err := runtime.JsonMerge(t.union, b) t.union = merged return err } @@ -8358,7 +6284,7 @@ func (t *Rule) MergeSignEvmTypedDataRule(v SignEvmTypedDataRule) error { return err } - merged, err := runtime.JSONMerge(t.union, b) + merged, err := runtime.JsonMerge(t.union, b) t.union = merged return err } @@ -8384,7 +6310,7 @@ func (t *Rule) MergeSignSolTransactionRule(v SignSolTransactionRule) error { return err } - merged, err := runtime.JSONMerge(t.union, b) + merged, err := runtime.JsonMerge(t.union, b) t.union = merged return err } @@ -8410,7 +6336,7 @@ func (t *Rule) MergeSendSolTransactionRule(v SendSolTransactionRule) error { return err } - merged, err := runtime.JSONMerge(t.union, b) + merged, err := runtime.JsonMerge(t.union, b) t.union = merged return err } @@ -8436,7 +6362,7 @@ func (t *Rule) MergeSignSolMessageRule(v SignSolMessageRule) error { return err } - merged, err := runtime.JSONMerge(t.union, b) + merged, err := runtime.JsonMerge(t.union, b) t.union = merged return err } @@ -8462,7 +6388,7 @@ func (t *Rule) MergeSignEvmHashRule(v SignEvmHashRule) error { return err } - merged, err := runtime.JSONMerge(t.union, b) + merged, err := runtime.JsonMerge(t.union, b) t.union = merged return err } @@ -8488,7 +6414,7 @@ func (t *Rule) MergePrepareUserOperationRule(v PrepareUserOperationRule) error { return err } - merged, err := runtime.JSONMerge(t.union, b) + merged, err := runtime.JsonMerge(t.union, b) t.union = merged return err } @@ -8514,7 +6440,7 @@ func (t *Rule) MergeSendUserOperationRule(v SendUserOperationRule) error { return err } - merged, err := runtime.JSONMerge(t.union, b) + merged, err := runtime.JsonMerge(t.union, b) t.union = merged return err } @@ -8540,7 +6466,7 @@ func (t *Rule) MergeSignEndUserEvmTransactionRule(v SignEndUserEvmTransactionRul return err } - merged, err := runtime.JSONMerge(t.union, b) + merged, err := runtime.JsonMerge(t.union, b) t.union = merged return err } @@ -8566,7 +6492,7 @@ func (t *Rule) MergeSendEndUserEvmTransactionRule(v SendEndUserEvmTransactionRul return err } - merged, err := runtime.JSONMerge(t.union, b) + merged, err := runtime.JsonMerge(t.union, b) t.union = merged return err } @@ -8592,7 +6518,7 @@ func (t *Rule) MergeSignEndUserEvmMessageRule(v SignEndUserEvmMessageRule) error return err } - merged, err := runtime.JSONMerge(t.union, b) + merged, err := runtime.JsonMerge(t.union, b) t.union = merged return err } @@ -8618,7 +6544,7 @@ func (t *Rule) MergeSignEndUserEvmTypedDataRule(v SignEndUserEvmTypedDataRule) e return err } - merged, err := runtime.JSONMerge(t.union, b) + merged, err := runtime.JsonMerge(t.union, b) t.union = merged return err } @@ -8644,7 +6570,7 @@ func (t *Rule) MergeSignEndUserEvmHashRule(v SignEndUserEvmHashRule) error { return err } - merged, err := runtime.JSONMerge(t.union, b) + merged, err := runtime.JsonMerge(t.union, b) t.union = merged return err } @@ -8670,7 +6596,7 @@ func (t *Rule) MergeSignEndUserSolTransactionRule(v SignEndUserSolTransactionRul return err } - merged, err := runtime.JSONMerge(t.union, b) + merged, err := runtime.JsonMerge(t.union, b) t.union = merged return err } @@ -8696,7 +6622,7 @@ func (t *Rule) MergeSendEndUserSolTransactionRule(v SendEndUserSolTransactionRul return err } - merged, err := runtime.JSONMerge(t.union, b) + merged, err := runtime.JsonMerge(t.union, b) t.union = merged return err } @@ -8722,7 +6648,7 @@ func (t *Rule) MergeSignEndUserSolMessageRule(v SignEndUserSolMessageRule) error return err } - merged, err := runtime.JSONMerge(t.union, b) + merged, err := runtime.JsonMerge(t.union, b) t.union = merged return err } @@ -8758,7 +6684,7 @@ func (t *SendEndUserEvmTransactionCriteria_Item) MergeEthValueCriterion(v EthVal return err } - merged, err := runtime.JSONMerge(t.union, b) + merged, err := runtime.JsonMerge(t.union, b) t.union = merged return err } @@ -8784,7 +6710,7 @@ func (t *SendEndUserEvmTransactionCriteria_Item) MergeEvmAddressCriterion(v EvmA return err } - merged, err := runtime.JSONMerge(t.union, b) + merged, err := runtime.JsonMerge(t.union, b) t.union = merged return err } @@ -8810,7 +6736,7 @@ func (t *SendEndUserEvmTransactionCriteria_Item) MergeEvmNetworkCriterion(v EvmN return err } - merged, err := runtime.JSONMerge(t.union, b) + merged, err := runtime.JsonMerge(t.union, b) t.union = merged return err } @@ -8836,7 +6762,7 @@ func (t *SendEndUserEvmTransactionCriteria_Item) MergeEvmDataCriterion(v EvmData return err } - merged, err := runtime.JSONMerge(t.union, b) + merged, err := runtime.JsonMerge(t.union, b) t.union = merged return err } @@ -8862,7 +6788,7 @@ func (t *SendEndUserEvmTransactionCriteria_Item) MergeNetUSDChangeCriterion(v Ne return err } - merged, err := runtime.JSONMerge(t.union, b) + merged, err := runtime.JsonMerge(t.union, b) t.union = merged return err } @@ -8898,7 +6824,7 @@ func (t *SendEndUserSolTransactionCriteria_Item) MergeSolAddressCriterion(v SolA return err } - merged, err := runtime.JSONMerge(t.union, b) + merged, err := runtime.JsonMerge(t.union, b) t.union = merged return err } @@ -8924,7 +6850,7 @@ func (t *SendEndUserSolTransactionCriteria_Item) MergeSolValueCriterion(v SolVal return err } - merged, err := runtime.JSONMerge(t.union, b) + merged, err := runtime.JsonMerge(t.union, b) t.union = merged return err } @@ -8950,7 +6876,7 @@ func (t *SendEndUserSolTransactionCriteria_Item) MergeSplAddressCriterion(v SplA return err } - merged, err := runtime.JSONMerge(t.union, b) + merged, err := runtime.JsonMerge(t.union, b) t.union = merged return err } @@ -8976,7 +6902,7 @@ func (t *SendEndUserSolTransactionCriteria_Item) MergeSplValueCriterion(v SplVal return err } - merged, err := runtime.JSONMerge(t.union, b) + merged, err := runtime.JsonMerge(t.union, b) t.union = merged return err } @@ -9002,7 +6928,7 @@ func (t *SendEndUserSolTransactionCriteria_Item) MergeMintAddressCriterion(v Min return err } - merged, err := runtime.JSONMerge(t.union, b) + merged, err := runtime.JsonMerge(t.union, b) t.union = merged return err } @@ -9028,7 +6954,7 @@ func (t *SendEndUserSolTransactionCriteria_Item) MergeSolDataCriterion(v SolData return err } - merged, err := runtime.JSONMerge(t.union, b) + merged, err := runtime.JsonMerge(t.union, b) t.union = merged return err } @@ -9054,7 +6980,7 @@ func (t *SendEndUserSolTransactionCriteria_Item) MergeProgramIdCriterion(v Progr return err } - merged, err := runtime.JSONMerge(t.union, b) + merged, err := runtime.JsonMerge(t.union, b) t.union = merged return err } @@ -9080,7 +7006,7 @@ func (t *SendEndUserSolTransactionCriteria_Item) MergeSolNetworkCriterion(v SolN return err } - merged, err := runtime.JSONMerge(t.union, b) + merged, err := runtime.JsonMerge(t.union, b) t.union = merged return err } @@ -9116,7 +7042,7 @@ func (t *SendEvmTransactionCriteria_Item) MergeEthValueCriterion(v EthValueCrite return err } - merged, err := runtime.JSONMerge(t.union, b) + merged, err := runtime.JsonMerge(t.union, b) t.union = merged return err } @@ -9142,7 +7068,7 @@ func (t *SendEvmTransactionCriteria_Item) MergeEvmAddressCriterion(v EvmAddressC return err } - merged, err := runtime.JSONMerge(t.union, b) + merged, err := runtime.JsonMerge(t.union, b) t.union = merged return err } @@ -9168,7 +7094,7 @@ func (t *SendEvmTransactionCriteria_Item) MergeEvmNetworkCriterion(v EvmNetworkC return err } - merged, err := runtime.JSONMerge(t.union, b) + merged, err := runtime.JsonMerge(t.union, b) t.union = merged return err } @@ -9194,7 +7120,7 @@ func (t *SendEvmTransactionCriteria_Item) MergeEvmDataCriterion(v EvmDataCriteri return err } - merged, err := runtime.JSONMerge(t.union, b) + merged, err := runtime.JsonMerge(t.union, b) t.union = merged return err } @@ -9220,7 +7146,7 @@ func (t *SendEvmTransactionCriteria_Item) MergeNetUSDChangeCriterion(v NetUSDCha return err } - merged, err := runtime.JSONMerge(t.union, b) + merged, err := runtime.JsonMerge(t.union, b) t.union = merged return err } @@ -9256,7 +7182,7 @@ func (t *SendSolTransactionCriteria_Item) MergeSolAddressCriterion(v SolAddressC return err } - merged, err := runtime.JSONMerge(t.union, b) + merged, err := runtime.JsonMerge(t.union, b) t.union = merged return err } @@ -9282,7 +7208,7 @@ func (t *SendSolTransactionCriteria_Item) MergeSolValueCriterion(v SolValueCrite return err } - merged, err := runtime.JSONMerge(t.union, b) + merged, err := runtime.JsonMerge(t.union, b) t.union = merged return err } @@ -9308,7 +7234,7 @@ func (t *SendSolTransactionCriteria_Item) MergeSplAddressCriterion(v SplAddressC return err } - merged, err := runtime.JSONMerge(t.union, b) + merged, err := runtime.JsonMerge(t.union, b) t.union = merged return err } @@ -9334,7 +7260,7 @@ func (t *SendSolTransactionCriteria_Item) MergeSplValueCriterion(v SplValueCrite return err } - merged, err := runtime.JSONMerge(t.union, b) + merged, err := runtime.JsonMerge(t.union, b) t.union = merged return err } @@ -9360,7 +7286,7 @@ func (t *SendSolTransactionCriteria_Item) MergeMintAddressCriterion(v MintAddres return err } - merged, err := runtime.JSONMerge(t.union, b) + merged, err := runtime.JsonMerge(t.union, b) t.union = merged return err } @@ -9386,7 +7312,7 @@ func (t *SendSolTransactionCriteria_Item) MergeSolDataCriterion(v SolDataCriteri return err } - merged, err := runtime.JSONMerge(t.union, b) + merged, err := runtime.JsonMerge(t.union, b) t.union = merged return err } @@ -9412,7 +7338,7 @@ func (t *SendSolTransactionCriteria_Item) MergeProgramIdCriterion(v ProgramIdCri return err } - merged, err := runtime.JSONMerge(t.union, b) + merged, err := runtime.JsonMerge(t.union, b) t.union = merged return err } @@ -9438,7 +7364,7 @@ func (t *SendSolTransactionCriteria_Item) MergeSolNetworkCriterion(v SolNetworkC return err } - merged, err := runtime.JSONMerge(t.union, b) + merged, err := runtime.JsonMerge(t.union, b) t.union = merged return err } @@ -9474,7 +7400,7 @@ func (t *SendUserOperationCriteria_Item) MergeEthValueCriterion(v EthValueCriter return err } - merged, err := runtime.JSONMerge(t.union, b) + merged, err := runtime.JsonMerge(t.union, b) t.union = merged return err } @@ -9500,7 +7426,7 @@ func (t *SendUserOperationCriteria_Item) MergeEvmAddressCriterion(v EvmAddressCr return err } - merged, err := runtime.JSONMerge(t.union, b) + merged, err := runtime.JsonMerge(t.union, b) t.union = merged return err } @@ -9526,7 +7452,7 @@ func (t *SendUserOperationCriteria_Item) MergeEvmDataCriterion(v EvmDataCriterio return err } - merged, err := runtime.JSONMerge(t.union, b) + merged, err := runtime.JsonMerge(t.union, b) t.union = merged return err } @@ -9552,7 +7478,7 @@ func (t *SendUserOperationCriteria_Item) MergeNetUSDChangeCriterion(v NetUSDChan return err } - merged, err := runtime.JSONMerge(t.union, b) + merged, err := runtime.JsonMerge(t.union, b) t.union = merged return err } @@ -9588,7 +7514,7 @@ func (t *SignEndUserEvmMessageCriteria_Item) MergeEvmMessageCriterion(v EvmMessa return err } - merged, err := runtime.JSONMerge(t.union, b) + merged, err := runtime.JsonMerge(t.union, b) t.union = merged return err } @@ -9624,7 +7550,7 @@ func (t *SignEndUserEvmTransactionCriteria_Item) MergeEthValueCriterion(v EthVal return err } - merged, err := runtime.JSONMerge(t.union, b) + merged, err := runtime.JsonMerge(t.union, b) t.union = merged return err } @@ -9650,7 +7576,7 @@ func (t *SignEndUserEvmTransactionCriteria_Item) MergeEvmAddressCriterion(v EvmA return err } - merged, err := runtime.JSONMerge(t.union, b) + merged, err := runtime.JsonMerge(t.union, b) t.union = merged return err } @@ -9676,7 +7602,7 @@ func (t *SignEndUserEvmTransactionCriteria_Item) MergeEvmDataCriterion(v EvmData return err } - merged, err := runtime.JSONMerge(t.union, b) + merged, err := runtime.JsonMerge(t.union, b) t.union = merged return err } @@ -9702,7 +7628,7 @@ func (t *SignEndUserEvmTransactionCriteria_Item) MergeNetUSDChangeCriterion(v Ne return err } - merged, err := runtime.JSONMerge(t.union, b) + merged, err := runtime.JsonMerge(t.union, b) t.union = merged return err } @@ -9738,7 +7664,7 @@ func (t *SignEndUserEvmTypedDataCriteria_Item) MergeSignEvmTypedDataFieldCriteri return err } - merged, err := runtime.JSONMerge(t.union, b) + merged, err := runtime.JsonMerge(t.union, b) t.union = merged return err } @@ -9764,7 +7690,7 @@ func (t *SignEndUserEvmTypedDataCriteria_Item) MergeSignEvmTypedDataVerifyingCon return err } - merged, err := runtime.JSONMerge(t.union, b) + merged, err := runtime.JsonMerge(t.union, b) t.union = merged return err } @@ -9800,7 +7726,7 @@ func (t *SignEndUserSolMessageCriteria_Item) MergeSolMessageCriterion(v SolMessa return err } - merged, err := runtime.JSONMerge(t.union, b) + merged, err := runtime.JsonMerge(t.union, b) t.union = merged return err } @@ -9836,7 +7762,7 @@ func (t *SignEndUserSolTransactionCriteria_Item) MergeSolAddressCriterion(v SolA return err } - merged, err := runtime.JSONMerge(t.union, b) + merged, err := runtime.JsonMerge(t.union, b) t.union = merged return err } @@ -9862,7 +7788,7 @@ func (t *SignEndUserSolTransactionCriteria_Item) MergeSolValueCriterion(v SolVal return err } - merged, err := runtime.JSONMerge(t.union, b) + merged, err := runtime.JsonMerge(t.union, b) t.union = merged return err } @@ -9888,7 +7814,7 @@ func (t *SignEndUserSolTransactionCriteria_Item) MergeSplAddressCriterion(v SplA return err } - merged, err := runtime.JSONMerge(t.union, b) + merged, err := runtime.JsonMerge(t.union, b) t.union = merged return err } @@ -9914,7 +7840,7 @@ func (t *SignEndUserSolTransactionCriteria_Item) MergeSplValueCriterion(v SplVal return err } - merged, err := runtime.JSONMerge(t.union, b) + merged, err := runtime.JsonMerge(t.union, b) t.union = merged return err } @@ -9940,7 +7866,7 @@ func (t *SignEndUserSolTransactionCriteria_Item) MergeMintAddressCriterion(v Min return err } - merged, err := runtime.JSONMerge(t.union, b) + merged, err := runtime.JsonMerge(t.union, b) t.union = merged return err } @@ -9966,7 +7892,7 @@ func (t *SignEndUserSolTransactionCriteria_Item) MergeSolDataCriterion(v SolData return err } - merged, err := runtime.JSONMerge(t.union, b) + merged, err := runtime.JsonMerge(t.union, b) t.union = merged return err } @@ -9992,7 +7918,7 @@ func (t *SignEndUserSolTransactionCriteria_Item) MergeProgramIdCriterion(v Progr return err } - merged, err := runtime.JSONMerge(t.union, b) + merged, err := runtime.JsonMerge(t.union, b) t.union = merged return err } @@ -10028,7 +7954,7 @@ func (t *SignEvmMessageCriteria_Item) MergeEvmMessageCriterion(v EvmMessageCrite return err } - merged, err := runtime.JSONMerge(t.union, b) + merged, err := runtime.JsonMerge(t.union, b) t.union = merged return err } @@ -10064,7 +7990,7 @@ func (t *SignEvmTransactionCriteria_Item) MergeEthValueCriterion(v EthValueCrite return err } - merged, err := runtime.JSONMerge(t.union, b) + merged, err := runtime.JsonMerge(t.union, b) t.union = merged return err } @@ -10090,7 +8016,7 @@ func (t *SignEvmTransactionCriteria_Item) MergeEvmAddressCriterion(v EvmAddressC return err } - merged, err := runtime.JSONMerge(t.union, b) + merged, err := runtime.JsonMerge(t.union, b) t.union = merged return err } @@ -10116,7 +8042,7 @@ func (t *SignEvmTransactionCriteria_Item) MergeEvmDataCriterion(v EvmDataCriteri return err } - merged, err := runtime.JSONMerge(t.union, b) + merged, err := runtime.JsonMerge(t.union, b) t.union = merged return err } @@ -10142,7 +8068,7 @@ func (t *SignEvmTransactionCriteria_Item) MergeNetUSDChangeCriterion(v NetUSDCha return err } - merged, err := runtime.JSONMerge(t.union, b) + merged, err := runtime.JsonMerge(t.union, b) t.union = merged return err } @@ -10178,7 +8104,7 @@ func (t *SignEvmTypedDataCriteria_Item) MergeSignEvmTypedDataFieldCriterion(v Si return err } - merged, err := runtime.JSONMerge(t.union, b) + merged, err := runtime.JsonMerge(t.union, b) t.union = merged return err } @@ -10204,7 +8130,7 @@ func (t *SignEvmTypedDataCriteria_Item) MergeSignEvmTypedDataVerifyingContractCr return err } - merged, err := runtime.JSONMerge(t.union, b) + merged, err := runtime.JsonMerge(t.union, b) t.union = merged return err } @@ -10240,7 +8166,7 @@ func (t *SignEvmTypedDataFieldCriterion_Conditions_Item) MergeEvmTypedAddressCon return err } - merged, err := runtime.JSONMerge(t.union, b) + merged, err := runtime.JsonMerge(t.union, b) t.union = merged return err } @@ -10266,7 +8192,7 @@ func (t *SignEvmTypedDataFieldCriterion_Conditions_Item) MergeEvmTypedNumericalC return err } - merged, err := runtime.JSONMerge(t.union, b) + merged, err := runtime.JsonMerge(t.union, b) t.union = merged return err } @@ -10292,7 +8218,7 @@ func (t *SignEvmTypedDataFieldCriterion_Conditions_Item) MergeEvmTypedStringCond return err } - merged, err := runtime.JSONMerge(t.union, b) + merged, err := runtime.JsonMerge(t.union, b) t.union = merged return err } @@ -10328,7 +8254,7 @@ func (t *SignSolMessageCriteria_Item) MergeSolMessageCriterion(v SolMessageCrite return err } - merged, err := runtime.JSONMerge(t.union, b) + merged, err := runtime.JsonMerge(t.union, b) t.union = merged return err } @@ -10364,7 +8290,7 @@ func (t *SignSolTransactionCriteria_Item) MergeSolAddressCriterion(v SolAddressC return err } - merged, err := runtime.JSONMerge(t.union, b) + merged, err := runtime.JsonMerge(t.union, b) t.union = merged return err } @@ -10390,7 +8316,7 @@ func (t *SignSolTransactionCriteria_Item) MergeSolValueCriterion(v SolValueCrite return err } - merged, err := runtime.JSONMerge(t.union, b) + merged, err := runtime.JsonMerge(t.union, b) t.union = merged return err } @@ -10416,7 +8342,7 @@ func (t *SignSolTransactionCriteria_Item) MergeSplAddressCriterion(v SplAddressC return err } - merged, err := runtime.JSONMerge(t.union, b) + merged, err := runtime.JsonMerge(t.union, b) t.union = merged return err } @@ -10442,7 +8368,7 @@ func (t *SignSolTransactionCriteria_Item) MergeSplValueCriterion(v SplValueCrite return err } - merged, err := runtime.JSONMerge(t.union, b) + merged, err := runtime.JsonMerge(t.union, b) t.union = merged return err } @@ -10468,7 +8394,7 @@ func (t *SignSolTransactionCriteria_Item) MergeMintAddressCriterion(v MintAddres return err } - merged, err := runtime.JSONMerge(t.union, b) + merged, err := runtime.JsonMerge(t.union, b) t.union = merged return err } @@ -10494,7 +8420,7 @@ func (t *SignSolTransactionCriteria_Item) MergeSolDataCriterion(v SolDataCriteri return err } - merged, err := runtime.JSONMerge(t.union, b) + merged, err := runtime.JsonMerge(t.union, b) t.union = merged return err } @@ -10520,7 +8446,7 @@ func (t *SignSolTransactionCriteria_Item) MergeProgramIdCriterion(v ProgramIdCri return err } - merged, err := runtime.JSONMerge(t.union, b) + merged, err := runtime.JsonMerge(t.union, b) t.union = merged return err } @@ -10556,7 +8482,7 @@ func (t *SolDataCondition_Params_Item) MergeSolDataParameterCondition(v SolDataP return err } - merged, err := runtime.JSONMerge(t.union, b) + merged, err := runtime.JsonMerge(t.union, b) t.union = merged return err } @@ -10582,7 +8508,7 @@ func (t *SolDataCondition_Params_Item) MergeSolDataParameterConditionList(v SolD return err } - merged, err := runtime.JSONMerge(t.union, b) + merged, err := runtime.JsonMerge(t.union, b) t.union = merged return err } @@ -10618,7 +8544,7 @@ func (t *SolDataCriterion_Idls_Item) MergeKnownIdlType(v KnownIdlType) error { return err } - merged, err := runtime.JSONMerge(t.union, b) + merged, err := runtime.JsonMerge(t.union, b) t.union = merged return err } @@ -10644,7 +8570,7 @@ func (t *SolDataCriterion_Idls_Item) MergeIdl(v Idl) error { return err } - merged, err := runtime.JSONMerge(t.union, b) + merged, err := runtime.JsonMerge(t.union, b) t.union = merged return err } @@ -10680,7 +8606,7 @@ func (t *X402PaymentPayload) MergeX402V2PaymentPayload(v X402V2PaymentPayload) e return err } - merged, err := runtime.JSONMerge(t.union, b) + merged, err := runtime.JsonMerge(t.union, b) t.union = merged return err } @@ -10706,7 +8632,7 @@ func (t *X402PaymentPayload) MergeX402V1PaymentPayload(v X402V1PaymentPayload) e return err } - merged, err := runtime.JSONMerge(t.union, b) + merged, err := runtime.JsonMerge(t.union, b) t.union = merged return err } @@ -10742,7 +8668,7 @@ func (t *X402PaymentRequirements) MergeX402V2PaymentRequirements(v X402V2Payment return err } - merged, err := runtime.JSONMerge(t.union, b) + merged, err := runtime.JsonMerge(t.union, b) t.union = merged return err } @@ -10768,7 +8694,7 @@ func (t *X402PaymentRequirements) MergeX402V1PaymentRequirements(v X402V1Payment return err } - merged, err := runtime.JSONMerge(t.union, b) + merged, err := runtime.JsonMerge(t.union, b) t.union = merged return err } @@ -10804,7 +8730,7 @@ func (t *X402V1PaymentPayload_Payload) MergeX402ExactEvmPayload(v X402ExactEvmPa return err } - merged, err := runtime.JSONMerge(t.union, b) + merged, err := runtime.JsonMerge(t.union, b) t.union = merged return err } @@ -10830,7 +8756,7 @@ func (t *X402V1PaymentPayload_Payload) MergeX402ExactEvmPermit2Payload(v X402Exa return err } - merged, err := runtime.JSONMerge(t.union, b) + merged, err := runtime.JsonMerge(t.union, b) t.union = merged return err } @@ -10856,7 +8782,7 @@ func (t *X402V1PaymentPayload_Payload) MergeX402ExactSolanaPayload(v X402ExactSo return err } - merged, err := runtime.JSONMerge(t.union, b) + merged, err := runtime.JsonMerge(t.union, b) t.union = merged return err } @@ -10892,7 +8818,7 @@ func (t *X402V2PaymentPayload_Payload) MergeX402ExactEvmPayload(v X402ExactEvmPa return err } - merged, err := runtime.JSONMerge(t.union, b) + merged, err := runtime.JsonMerge(t.union, b) t.union = merged return err } @@ -10918,7 +8844,7 @@ func (t *X402V2PaymentPayload_Payload) MergeX402ExactEvmPermit2Payload(v X402Exa return err } - merged, err := runtime.JSONMerge(t.union, b) + merged, err := runtime.JsonMerge(t.union, b) t.union = merged return err } @@ -10944,7 +8870,7 @@ func (t *X402V2PaymentPayload_Payload) MergeX402ExactSolanaPayload(v X402ExactSo return err } - merged, err := runtime.JSONMerge(t.union, b) + merged, err := runtime.JsonMerge(t.union, b) t.union = merged return err } @@ -13172,14 +11098,14 @@ func NewListDataTokenBalancesRequest(server string, network ListEvmTokenBalances var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "network", network, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "network", runtime.ParamLocationPath, network) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithOptions("simple", false, "address", address, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "address", runtime.ParamLocationPath, address) if err != nil { return nil, err } @@ -13204,7 +11130,7 @@ func NewListDataTokenBalancesRequest(server string, network ListEvmTokenBalances if params.PageSize != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "pageSize", *params.PageSize, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "pageSize", runtime.ParamLocationQuery, *params.PageSize); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err @@ -13220,7 +11146,7 @@ func NewListDataTokenBalancesRequest(server string, network ListEvmTokenBalances if params.PageToken != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "pageToken", *params.PageToken, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "pageToken", runtime.ParamLocationQuery, *params.PageToken); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err @@ -13251,14 +11177,14 @@ func NewListTokensForAccountRequest(server string, network ListTokensForAccountP var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "network", network, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "network", runtime.ParamLocationPath, network) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithOptions("simple", false, "address", address, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "address", runtime.ParamLocationPath, address) if err != nil { return nil, err } @@ -13377,7 +11303,7 @@ func NewGetSQLSchemaRequest(server string, params *GetSQLSchemaParams) (*http.Re if params.Database != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "database", *params.Database, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "database", runtime.ParamLocationQuery, *params.Database); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err @@ -13393,7 +11319,7 @@ func NewGetSQLSchemaRequest(server string, params *GetSQLSchemaParams) (*http.Re if params.Table != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "table", *params.Table, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "table", runtime.ParamLocationQuery, *params.Table); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err @@ -13442,7 +11368,7 @@ func NewListWebhookSubscriptionsRequest(server string, params *ListWebhookSubscr if params.PageSize != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "pageSize", *params.PageSize, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "pageSize", runtime.ParamLocationQuery, *params.PageSize); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err @@ -13458,7 +11384,7 @@ func NewListWebhookSubscriptionsRequest(server string, params *ListWebhookSubscr if params.PageToken != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "pageToken", *params.PageToken, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "pageToken", runtime.ParamLocationQuery, *params.PageToken); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err @@ -13529,7 +11455,7 @@ func NewDeleteWebhookSubscriptionRequest(server string, subscriptionId openapi_t var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "subscriptionId", subscriptionId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "subscriptionId", runtime.ParamLocationPath, subscriptionId) if err != nil { return nil, err } @@ -13563,7 +11489,7 @@ func NewGetWebhookSubscriptionRequest(server string, subscriptionId openapi_type var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "subscriptionId", subscriptionId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "subscriptionId", runtime.ParamLocationPath, subscriptionId) if err != nil { return nil, err } @@ -13608,7 +11534,7 @@ func NewUpdateWebhookSubscriptionRequestWithBody(server string, subscriptionId o var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "subscriptionId", subscriptionId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "subscriptionId", runtime.ParamLocationPath, subscriptionId) if err != nil { return nil, err } @@ -13644,7 +11570,7 @@ func NewListWebhookSubscriptionEventsRequest(server string, subscriptionId opena var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "subscriptionId", subscriptionId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "subscriptionId", runtime.ParamLocationPath, subscriptionId) if err != nil { return nil, err } @@ -13669,7 +11595,7 @@ func NewListWebhookSubscriptionEventsRequest(server string, subscriptionId opena if params.EventId != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "eventId", *params.EventId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: "uuid"}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "eventId", runtime.ParamLocationQuery, *params.EventId); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err @@ -13685,7 +11611,7 @@ func NewListWebhookSubscriptionEventsRequest(server string, subscriptionId opena if params.MinCreatedAt != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "minCreatedAt", *params.MinCreatedAt, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: "date-time"}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "minCreatedAt", runtime.ParamLocationQuery, *params.MinCreatedAt); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err @@ -13701,7 +11627,7 @@ func NewListWebhookSubscriptionEventsRequest(server string, subscriptionId opena if params.MaxCreatedAt != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "maxCreatedAt", *params.MaxCreatedAt, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: "date-time"}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "maxCreatedAt", runtime.ParamLocationQuery, *params.MaxCreatedAt); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err @@ -13717,7 +11643,7 @@ func NewListWebhookSubscriptionEventsRequest(server string, subscriptionId opena if params.EventTypeNames != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "eventTypeNames", *params.EventTypeNames, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "eventTypeNames", runtime.ParamLocationQuery, *params.EventTypeNames); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err @@ -13759,7 +11685,7 @@ func NewRevokeDelegationForEndUserRequestWithBody(server string, userId string, var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "userId", userId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "userId", runtime.ParamLocationPath, userId) if err != nil { return nil, err } @@ -13784,7 +11710,7 @@ func NewRevokeDelegationForEndUserRequestWithBody(server string, userId string, if params.ProjectID != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "projectID", *params.ProjectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "projectID", runtime.ParamLocationQuery, *params.ProjectID); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err @@ -13813,7 +11739,7 @@ func NewRevokeDelegationForEndUserRequestWithBody(server string, userId string, if params.XWalletAuth != nil { var headerParam0 string - headerParam0, err = runtime.StyleParamWithOptions("simple", false, "X-Wallet-Auth", *params.XWalletAuth, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationHeader, Type: "string", Format: ""}) + headerParam0, err = runtime.StyleParamWithLocation("simple", false, "X-Wallet-Auth", runtime.ParamLocationHeader, *params.XWalletAuth) if err != nil { return nil, err } @@ -13824,7 +11750,7 @@ func NewRevokeDelegationForEndUserRequestWithBody(server string, userId string, if params.XDeveloperAuth != nil { var headerParam1 string - headerParam1, err = runtime.StyleParamWithOptions("simple", false, "X-Developer-Auth", *params.XDeveloperAuth, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationHeader, Type: "string", Format: ""}) + headerParam1, err = runtime.StyleParamWithLocation("simple", false, "X-Developer-Auth", runtime.ParamLocationHeader, *params.XDeveloperAuth) if err != nil { return nil, err } @@ -13835,7 +11761,7 @@ func NewRevokeDelegationForEndUserRequestWithBody(server string, userId string, if params.XIdempotencyKey != nil { var headerParam2 string - headerParam2, err = runtime.StyleParamWithOptions("simple", false, "X-Idempotency-Key", *params.XIdempotencyKey, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationHeader, Type: "string", Format: ""}) + headerParam2, err = runtime.StyleParamWithLocation("simple", false, "X-Idempotency-Key", runtime.ParamLocationHeader, *params.XIdempotencyKey) if err != nil { return nil, err } @@ -13854,7 +11780,7 @@ func NewGetDelegationForEndUserRequest(server string, userId string, params *Get var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "userId", userId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "userId", runtime.ParamLocationPath, userId) if err != nil { return nil, err } @@ -13879,7 +11805,7 @@ func NewGetDelegationForEndUserRequest(server string, userId string, params *Get if params.ProjectID != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "projectID", *params.ProjectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "projectID", runtime.ParamLocationQuery, *params.ProjectID); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err @@ -13921,7 +11847,7 @@ func NewCreateEvmEip7702DelegationWithEndUserAccountRequestWithBody(server strin var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "userId", userId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "userId", runtime.ParamLocationPath, userId) if err != nil { return nil, err } @@ -13946,7 +11872,7 @@ func NewCreateEvmEip7702DelegationWithEndUserAccountRequestWithBody(server strin if params.ProjectID != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "projectID", *params.ProjectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "projectID", runtime.ParamLocationQuery, *params.ProjectID); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err @@ -13975,7 +11901,7 @@ func NewCreateEvmEip7702DelegationWithEndUserAccountRequestWithBody(server strin if params.XWalletAuth != nil { var headerParam0 string - headerParam0, err = runtime.StyleParamWithOptions("simple", false, "X-Wallet-Auth", *params.XWalletAuth, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationHeader, Type: "string", Format: ""}) + headerParam0, err = runtime.StyleParamWithLocation("simple", false, "X-Wallet-Auth", runtime.ParamLocationHeader, *params.XWalletAuth) if err != nil { return nil, err } @@ -13986,7 +11912,7 @@ func NewCreateEvmEip7702DelegationWithEndUserAccountRequestWithBody(server strin if params.XIdempotencyKey != nil { var headerParam1 string - headerParam1, err = runtime.StyleParamWithOptions("simple", false, "X-Idempotency-Key", *params.XIdempotencyKey, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationHeader, Type: "string", Format: ""}) + headerParam1, err = runtime.StyleParamWithLocation("simple", false, "X-Idempotency-Key", runtime.ParamLocationHeader, *params.XIdempotencyKey) if err != nil { return nil, err } @@ -13997,7 +11923,7 @@ func NewCreateEvmEip7702DelegationWithEndUserAccountRequestWithBody(server strin if params.XDeveloperAuth != nil { var headerParam2 string - headerParam2, err = runtime.StyleParamWithOptions("simple", false, "X-Developer-Auth", *params.XDeveloperAuth, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationHeader, Type: "string", Format: ""}) + headerParam2, err = runtime.StyleParamWithLocation("simple", false, "X-Developer-Auth", runtime.ParamLocationHeader, *params.XDeveloperAuth) if err != nil { return nil, err } @@ -14027,7 +11953,7 @@ func NewSendEvmTransactionWithEndUserAccountRequestWithBody(server string, userI var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "userId", userId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "userId", runtime.ParamLocationPath, userId) if err != nil { return nil, err } @@ -14052,7 +11978,7 @@ func NewSendEvmTransactionWithEndUserAccountRequestWithBody(server string, userI if params.ProjectID != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "projectID", *params.ProjectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "projectID", runtime.ParamLocationQuery, *params.ProjectID); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err @@ -14081,7 +12007,7 @@ func NewSendEvmTransactionWithEndUserAccountRequestWithBody(server string, userI if params.XWalletAuth != nil { var headerParam0 string - headerParam0, err = runtime.StyleParamWithOptions("simple", false, "X-Wallet-Auth", *params.XWalletAuth, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationHeader, Type: "string", Format: ""}) + headerParam0, err = runtime.StyleParamWithLocation("simple", false, "X-Wallet-Auth", runtime.ParamLocationHeader, *params.XWalletAuth) if err != nil { return nil, err } @@ -14092,7 +12018,7 @@ func NewSendEvmTransactionWithEndUserAccountRequestWithBody(server string, userI if params.XIdempotencyKey != nil { var headerParam1 string - headerParam1, err = runtime.StyleParamWithOptions("simple", false, "X-Idempotency-Key", *params.XIdempotencyKey, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationHeader, Type: "string", Format: ""}) + headerParam1, err = runtime.StyleParamWithLocation("simple", false, "X-Idempotency-Key", runtime.ParamLocationHeader, *params.XIdempotencyKey) if err != nil { return nil, err } @@ -14103,7 +12029,7 @@ func NewSendEvmTransactionWithEndUserAccountRequestWithBody(server string, userI if params.XDeveloperAuth != nil { var headerParam2 string - headerParam2, err = runtime.StyleParamWithOptions("simple", false, "X-Developer-Auth", *params.XDeveloperAuth, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationHeader, Type: "string", Format: ""}) + headerParam2, err = runtime.StyleParamWithLocation("simple", false, "X-Developer-Auth", runtime.ParamLocationHeader, *params.XDeveloperAuth) if err != nil { return nil, err } @@ -14133,7 +12059,7 @@ func NewSignEvmMessageWithEndUserAccountRequestWithBody(server string, userId st var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "userId", userId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "userId", runtime.ParamLocationPath, userId) if err != nil { return nil, err } @@ -14158,7 +12084,7 @@ func NewSignEvmMessageWithEndUserAccountRequestWithBody(server string, userId st if params.ProjectID != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "projectID", *params.ProjectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "projectID", runtime.ParamLocationQuery, *params.ProjectID); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err @@ -14187,7 +12113,7 @@ func NewSignEvmMessageWithEndUserAccountRequestWithBody(server string, userId st if params.XWalletAuth != nil { var headerParam0 string - headerParam0, err = runtime.StyleParamWithOptions("simple", false, "X-Wallet-Auth", *params.XWalletAuth, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationHeader, Type: "string", Format: ""}) + headerParam0, err = runtime.StyleParamWithLocation("simple", false, "X-Wallet-Auth", runtime.ParamLocationHeader, *params.XWalletAuth) if err != nil { return nil, err } @@ -14198,7 +12124,7 @@ func NewSignEvmMessageWithEndUserAccountRequestWithBody(server string, userId st if params.XIdempotencyKey != nil { var headerParam1 string - headerParam1, err = runtime.StyleParamWithOptions("simple", false, "X-Idempotency-Key", *params.XIdempotencyKey, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationHeader, Type: "string", Format: ""}) + headerParam1, err = runtime.StyleParamWithLocation("simple", false, "X-Idempotency-Key", runtime.ParamLocationHeader, *params.XIdempotencyKey) if err != nil { return nil, err } @@ -14209,7 +12135,7 @@ func NewSignEvmMessageWithEndUserAccountRequestWithBody(server string, userId st if params.XDeveloperAuth != nil { var headerParam2 string - headerParam2, err = runtime.StyleParamWithOptions("simple", false, "X-Developer-Auth", *params.XDeveloperAuth, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationHeader, Type: "string", Format: ""}) + headerParam2, err = runtime.StyleParamWithLocation("simple", false, "X-Developer-Auth", runtime.ParamLocationHeader, *params.XDeveloperAuth) if err != nil { return nil, err } @@ -14239,7 +12165,7 @@ func NewSignEvmTransactionWithEndUserAccountRequestWithBody(server string, userI var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "userId", userId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "userId", runtime.ParamLocationPath, userId) if err != nil { return nil, err } @@ -14264,7 +12190,7 @@ func NewSignEvmTransactionWithEndUserAccountRequestWithBody(server string, userI if params.ProjectID != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "projectID", *params.ProjectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "projectID", runtime.ParamLocationQuery, *params.ProjectID); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err @@ -14293,7 +12219,7 @@ func NewSignEvmTransactionWithEndUserAccountRequestWithBody(server string, userI if params.XWalletAuth != nil { var headerParam0 string - headerParam0, err = runtime.StyleParamWithOptions("simple", false, "X-Wallet-Auth", *params.XWalletAuth, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationHeader, Type: "string", Format: ""}) + headerParam0, err = runtime.StyleParamWithLocation("simple", false, "X-Wallet-Auth", runtime.ParamLocationHeader, *params.XWalletAuth) if err != nil { return nil, err } @@ -14304,7 +12230,7 @@ func NewSignEvmTransactionWithEndUserAccountRequestWithBody(server string, userI if params.XIdempotencyKey != nil { var headerParam1 string - headerParam1, err = runtime.StyleParamWithOptions("simple", false, "X-Idempotency-Key", *params.XIdempotencyKey, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationHeader, Type: "string", Format: ""}) + headerParam1, err = runtime.StyleParamWithLocation("simple", false, "X-Idempotency-Key", runtime.ParamLocationHeader, *params.XIdempotencyKey) if err != nil { return nil, err } @@ -14315,7 +12241,7 @@ func NewSignEvmTransactionWithEndUserAccountRequestWithBody(server string, userI if params.XDeveloperAuth != nil { var headerParam2 string - headerParam2, err = runtime.StyleParamWithOptions("simple", false, "X-Developer-Auth", *params.XDeveloperAuth, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationHeader, Type: "string", Format: ""}) + headerParam2, err = runtime.StyleParamWithLocation("simple", false, "X-Developer-Auth", runtime.ParamLocationHeader, *params.XDeveloperAuth) if err != nil { return nil, err } @@ -14345,7 +12271,7 @@ func NewSignEvmTypedDataWithEndUserAccountRequestWithBody(server string, userId var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "userId", userId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "userId", runtime.ParamLocationPath, userId) if err != nil { return nil, err } @@ -14370,7 +12296,7 @@ func NewSignEvmTypedDataWithEndUserAccountRequestWithBody(server string, userId if params.ProjectID != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "projectID", *params.ProjectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "projectID", runtime.ParamLocationQuery, *params.ProjectID); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err @@ -14399,7 +12325,7 @@ func NewSignEvmTypedDataWithEndUserAccountRequestWithBody(server string, userId if params.XWalletAuth != nil { var headerParam0 string - headerParam0, err = runtime.StyleParamWithOptions("simple", false, "X-Wallet-Auth", *params.XWalletAuth, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationHeader, Type: "string", Format: ""}) + headerParam0, err = runtime.StyleParamWithLocation("simple", false, "X-Wallet-Auth", runtime.ParamLocationHeader, *params.XWalletAuth) if err != nil { return nil, err } @@ -14410,7 +12336,7 @@ func NewSignEvmTypedDataWithEndUserAccountRequestWithBody(server string, userId if params.XIdempotencyKey != nil { var headerParam1 string - headerParam1, err = runtime.StyleParamWithOptions("simple", false, "X-Idempotency-Key", *params.XIdempotencyKey, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationHeader, Type: "string", Format: ""}) + headerParam1, err = runtime.StyleParamWithLocation("simple", false, "X-Idempotency-Key", runtime.ParamLocationHeader, *params.XIdempotencyKey) if err != nil { return nil, err } @@ -14421,7 +12347,7 @@ func NewSignEvmTypedDataWithEndUserAccountRequestWithBody(server string, userId if params.XDeveloperAuth != nil { var headerParam2 string - headerParam2, err = runtime.StyleParamWithOptions("simple", false, "X-Developer-Auth", *params.XDeveloperAuth, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationHeader, Type: "string", Format: ""}) + headerParam2, err = runtime.StyleParamWithLocation("simple", false, "X-Developer-Auth", runtime.ParamLocationHeader, *params.XDeveloperAuth) if err != nil { return nil, err } @@ -14451,14 +12377,14 @@ func NewSendUserOperationWithEndUserAccountRequestWithBody(server string, userId var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "userId", userId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "userId", runtime.ParamLocationPath, userId) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithOptions("simple", false, "address", address, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "address", runtime.ParamLocationPath, address) if err != nil { return nil, err } @@ -14483,7 +12409,7 @@ func NewSendUserOperationWithEndUserAccountRequestWithBody(server string, userId if params.ProjectID != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "projectID", *params.ProjectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "projectID", runtime.ParamLocationQuery, *params.ProjectID); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err @@ -14512,7 +12438,7 @@ func NewSendUserOperationWithEndUserAccountRequestWithBody(server string, userId if params.XIdempotencyKey != nil { var headerParam0 string - headerParam0, err = runtime.StyleParamWithOptions("simple", false, "X-Idempotency-Key", *params.XIdempotencyKey, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationHeader, Type: "string", Format: ""}) + headerParam0, err = runtime.StyleParamWithLocation("simple", false, "X-Idempotency-Key", runtime.ParamLocationHeader, *params.XIdempotencyKey) if err != nil { return nil, err } @@ -14523,7 +12449,7 @@ func NewSendUserOperationWithEndUserAccountRequestWithBody(server string, userId if params.XWalletAuth != nil { var headerParam1 string - headerParam1, err = runtime.StyleParamWithOptions("simple", false, "X-Wallet-Auth", *params.XWalletAuth, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationHeader, Type: "string", Format: ""}) + headerParam1, err = runtime.StyleParamWithLocation("simple", false, "X-Wallet-Auth", runtime.ParamLocationHeader, *params.XWalletAuth) if err != nil { return nil, err } @@ -14534,7 +12460,7 @@ func NewSendUserOperationWithEndUserAccountRequestWithBody(server string, userId if params.XDeveloperAuth != nil { var headerParam2 string - headerParam2, err = runtime.StyleParamWithOptions("simple", false, "X-Developer-Auth", *params.XDeveloperAuth, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationHeader, Type: "string", Format: ""}) + headerParam2, err = runtime.StyleParamWithLocation("simple", false, "X-Developer-Auth", runtime.ParamLocationHeader, *params.XDeveloperAuth) if err != nil { return nil, err } @@ -14564,21 +12490,21 @@ func NewSendEvmAssetWithEndUserAccountRequestWithBody(server string, userId stri var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "userId", userId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "userId", runtime.ParamLocationPath, userId) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithOptions("simple", false, "address", address, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "", Format: ""}) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "address", runtime.ParamLocationPath, address) if err != nil { return nil, err } var pathParam2 string - pathParam2, err = runtime.StyleParamWithOptions("simple", false, "asset", asset, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "", Format: ""}) + pathParam2, err = runtime.StyleParamWithLocation("simple", false, "asset", runtime.ParamLocationPath, asset) if err != nil { return nil, err } @@ -14603,7 +12529,7 @@ func NewSendEvmAssetWithEndUserAccountRequestWithBody(server string, userId stri if params.ProjectID != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "projectID", *params.ProjectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "projectID", runtime.ParamLocationQuery, *params.ProjectID); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err @@ -14632,7 +12558,7 @@ func NewSendEvmAssetWithEndUserAccountRequestWithBody(server string, userId stri if params.XWalletAuth != nil { var headerParam0 string - headerParam0, err = runtime.StyleParamWithOptions("simple", false, "X-Wallet-Auth", *params.XWalletAuth, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationHeader, Type: "string", Format: ""}) + headerParam0, err = runtime.StyleParamWithLocation("simple", false, "X-Wallet-Auth", runtime.ParamLocationHeader, *params.XWalletAuth) if err != nil { return nil, err } @@ -14643,7 +12569,7 @@ func NewSendEvmAssetWithEndUserAccountRequestWithBody(server string, userId stri if params.XIdempotencyKey != nil { var headerParam1 string - headerParam1, err = runtime.StyleParamWithOptions("simple", false, "X-Idempotency-Key", *params.XIdempotencyKey, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationHeader, Type: "string", Format: ""}) + headerParam1, err = runtime.StyleParamWithLocation("simple", false, "X-Idempotency-Key", runtime.ParamLocationHeader, *params.XIdempotencyKey) if err != nil { return nil, err } @@ -14654,7 +12580,7 @@ func NewSendEvmAssetWithEndUserAccountRequestWithBody(server string, userId stri if params.XDeveloperAuth != nil { var headerParam2 string - headerParam2, err = runtime.StyleParamWithOptions("simple", false, "X-Developer-Auth", *params.XDeveloperAuth, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationHeader, Type: "string", Format: ""}) + headerParam2, err = runtime.StyleParamWithLocation("simple", false, "X-Developer-Auth", runtime.ParamLocationHeader, *params.XDeveloperAuth) if err != nil { return nil, err } @@ -14684,7 +12610,7 @@ func NewSendSolanaTransactionWithEndUserAccountRequestWithBody(server string, us var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "userId", userId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "userId", runtime.ParamLocationPath, userId) if err != nil { return nil, err } @@ -14709,7 +12635,7 @@ func NewSendSolanaTransactionWithEndUserAccountRequestWithBody(server string, us if params.ProjectID != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "projectID", *params.ProjectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "projectID", runtime.ParamLocationQuery, *params.ProjectID); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err @@ -14738,7 +12664,7 @@ func NewSendSolanaTransactionWithEndUserAccountRequestWithBody(server string, us if params.XWalletAuth != nil { var headerParam0 string - headerParam0, err = runtime.StyleParamWithOptions("simple", false, "X-Wallet-Auth", *params.XWalletAuth, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationHeader, Type: "string", Format: ""}) + headerParam0, err = runtime.StyleParamWithLocation("simple", false, "X-Wallet-Auth", runtime.ParamLocationHeader, *params.XWalletAuth) if err != nil { return nil, err } @@ -14749,7 +12675,7 @@ func NewSendSolanaTransactionWithEndUserAccountRequestWithBody(server string, us if params.XIdempotencyKey != nil { var headerParam1 string - headerParam1, err = runtime.StyleParamWithOptions("simple", false, "X-Idempotency-Key", *params.XIdempotencyKey, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationHeader, Type: "string", Format: ""}) + headerParam1, err = runtime.StyleParamWithLocation("simple", false, "X-Idempotency-Key", runtime.ParamLocationHeader, *params.XIdempotencyKey) if err != nil { return nil, err } @@ -14760,7 +12686,7 @@ func NewSendSolanaTransactionWithEndUserAccountRequestWithBody(server string, us if params.XDeveloperAuth != nil { var headerParam2 string - headerParam2, err = runtime.StyleParamWithOptions("simple", false, "X-Developer-Auth", *params.XDeveloperAuth, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationHeader, Type: "string", Format: ""}) + headerParam2, err = runtime.StyleParamWithLocation("simple", false, "X-Developer-Auth", runtime.ParamLocationHeader, *params.XDeveloperAuth) if err != nil { return nil, err } @@ -14790,7 +12716,7 @@ func NewSignSolanaMessageWithEndUserAccountRequestWithBody(server string, userId var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "userId", userId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "userId", runtime.ParamLocationPath, userId) if err != nil { return nil, err } @@ -14815,7 +12741,7 @@ func NewSignSolanaMessageWithEndUserAccountRequestWithBody(server string, userId if params.ProjectID != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "projectID", *params.ProjectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "projectID", runtime.ParamLocationQuery, *params.ProjectID); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err @@ -14844,7 +12770,7 @@ func NewSignSolanaMessageWithEndUserAccountRequestWithBody(server string, userId if params.XWalletAuth != nil { var headerParam0 string - headerParam0, err = runtime.StyleParamWithOptions("simple", false, "X-Wallet-Auth", *params.XWalletAuth, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationHeader, Type: "string", Format: ""}) + headerParam0, err = runtime.StyleParamWithLocation("simple", false, "X-Wallet-Auth", runtime.ParamLocationHeader, *params.XWalletAuth) if err != nil { return nil, err } @@ -14855,7 +12781,7 @@ func NewSignSolanaMessageWithEndUserAccountRequestWithBody(server string, userId if params.XIdempotencyKey != nil { var headerParam1 string - headerParam1, err = runtime.StyleParamWithOptions("simple", false, "X-Idempotency-Key", *params.XIdempotencyKey, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationHeader, Type: "string", Format: ""}) + headerParam1, err = runtime.StyleParamWithLocation("simple", false, "X-Idempotency-Key", runtime.ParamLocationHeader, *params.XIdempotencyKey) if err != nil { return nil, err } @@ -14866,7 +12792,7 @@ func NewSignSolanaMessageWithEndUserAccountRequestWithBody(server string, userId if params.XDeveloperAuth != nil { var headerParam2 string - headerParam2, err = runtime.StyleParamWithOptions("simple", false, "X-Developer-Auth", *params.XDeveloperAuth, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationHeader, Type: "string", Format: ""}) + headerParam2, err = runtime.StyleParamWithLocation("simple", false, "X-Developer-Auth", runtime.ParamLocationHeader, *params.XDeveloperAuth) if err != nil { return nil, err } @@ -14896,7 +12822,7 @@ func NewSignSolanaTransactionWithEndUserAccountRequestWithBody(server string, us var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "userId", userId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "userId", runtime.ParamLocationPath, userId) if err != nil { return nil, err } @@ -14921,7 +12847,7 @@ func NewSignSolanaTransactionWithEndUserAccountRequestWithBody(server string, us if params.ProjectID != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "projectID", *params.ProjectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "projectID", runtime.ParamLocationQuery, *params.ProjectID); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err @@ -14950,7 +12876,7 @@ func NewSignSolanaTransactionWithEndUserAccountRequestWithBody(server string, us if params.XWalletAuth != nil { var headerParam0 string - headerParam0, err = runtime.StyleParamWithOptions("simple", false, "X-Wallet-Auth", *params.XWalletAuth, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationHeader, Type: "string", Format: ""}) + headerParam0, err = runtime.StyleParamWithLocation("simple", false, "X-Wallet-Auth", runtime.ParamLocationHeader, *params.XWalletAuth) if err != nil { return nil, err } @@ -14961,7 +12887,7 @@ func NewSignSolanaTransactionWithEndUserAccountRequestWithBody(server string, us if params.XIdempotencyKey != nil { var headerParam1 string - headerParam1, err = runtime.StyleParamWithOptions("simple", false, "X-Idempotency-Key", *params.XIdempotencyKey, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationHeader, Type: "string", Format: ""}) + headerParam1, err = runtime.StyleParamWithLocation("simple", false, "X-Idempotency-Key", runtime.ParamLocationHeader, *params.XIdempotencyKey) if err != nil { return nil, err } @@ -14972,7 +12898,7 @@ func NewSignSolanaTransactionWithEndUserAccountRequestWithBody(server string, us if params.XDeveloperAuth != nil { var headerParam2 string - headerParam2, err = runtime.StyleParamWithOptions("simple", false, "X-Developer-Auth", *params.XDeveloperAuth, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationHeader, Type: "string", Format: ""}) + headerParam2, err = runtime.StyleParamWithLocation("simple", false, "X-Developer-Auth", runtime.ParamLocationHeader, *params.XDeveloperAuth) if err != nil { return nil, err } @@ -15002,21 +12928,21 @@ func NewSendSolanaAssetWithEndUserAccountRequestWithBody(server string, userId s var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "userId", userId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "userId", runtime.ParamLocationPath, userId) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithOptions("simple", false, "address", address, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "", Format: ""}) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "address", runtime.ParamLocationPath, address) if err != nil { return nil, err } var pathParam2 string - pathParam2, err = runtime.StyleParamWithOptions("simple", false, "asset", asset, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "", Format: ""}) + pathParam2, err = runtime.StyleParamWithLocation("simple", false, "asset", runtime.ParamLocationPath, asset) if err != nil { return nil, err } @@ -15041,7 +12967,7 @@ func NewSendSolanaAssetWithEndUserAccountRequestWithBody(server string, userId s if params.ProjectID != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "projectID", *params.ProjectID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "projectID", runtime.ParamLocationQuery, *params.ProjectID); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err @@ -15070,7 +12996,7 @@ func NewSendSolanaAssetWithEndUserAccountRequestWithBody(server string, userId s if params.XWalletAuth != nil { var headerParam0 string - headerParam0, err = runtime.StyleParamWithOptions("simple", false, "X-Wallet-Auth", *params.XWalletAuth, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationHeader, Type: "string", Format: ""}) + headerParam0, err = runtime.StyleParamWithLocation("simple", false, "X-Wallet-Auth", runtime.ParamLocationHeader, *params.XWalletAuth) if err != nil { return nil, err } @@ -15081,7 +13007,7 @@ func NewSendSolanaAssetWithEndUserAccountRequestWithBody(server string, userId s if params.XIdempotencyKey != nil { var headerParam1 string - headerParam1, err = runtime.StyleParamWithOptions("simple", false, "X-Idempotency-Key", *params.XIdempotencyKey, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationHeader, Type: "string", Format: ""}) + headerParam1, err = runtime.StyleParamWithLocation("simple", false, "X-Idempotency-Key", runtime.ParamLocationHeader, *params.XIdempotencyKey) if err != nil { return nil, err } @@ -15092,7 +13018,7 @@ func NewSendSolanaAssetWithEndUserAccountRequestWithBody(server string, userId s if params.XDeveloperAuth != nil { var headerParam2 string - headerParam2, err = runtime.StyleParamWithOptions("simple", false, "X-Developer-Auth", *params.XDeveloperAuth, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationHeader, Type: "string", Format: ""}) + headerParam2, err = runtime.StyleParamWithLocation("simple", false, "X-Developer-Auth", runtime.ParamLocationHeader, *params.XDeveloperAuth) if err != nil { return nil, err } @@ -15129,7 +13055,7 @@ func NewListEndUsersRequest(server string, params *ListEndUsersParams) (*http.Re if params.PageSize != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "pageSize", *params.PageSize, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "pageSize", runtime.ParamLocationQuery, *params.PageSize); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err @@ -15145,7 +13071,7 @@ func NewListEndUsersRequest(server string, params *ListEndUsersParams) (*http.Re if params.PageToken != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "pageToken", *params.PageToken, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "pageToken", runtime.ParamLocationQuery, *params.PageToken); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err @@ -15161,7 +13087,7 @@ func NewListEndUsersRequest(server string, params *ListEndUsersParams) (*http.Re if params.Sort != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", false, "sort", *params.Sort, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "array", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", false, "sort", runtime.ParamLocationQuery, *params.Sort); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err @@ -15228,7 +13154,7 @@ func NewCreateEndUserRequestWithBody(server string, params *CreateEndUserParams, if params.XWalletAuth != nil { var headerParam0 string - headerParam0, err = runtime.StyleParamWithOptions("simple", false, "X-Wallet-Auth", *params.XWalletAuth, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationHeader, Type: "string", Format: ""}) + headerParam0, err = runtime.StyleParamWithLocation("simple", false, "X-Wallet-Auth", runtime.ParamLocationHeader, *params.XWalletAuth) if err != nil { return nil, err } @@ -15239,7 +13165,7 @@ func NewCreateEndUserRequestWithBody(server string, params *CreateEndUserParams, if params.XIdempotencyKey != nil { var headerParam1 string - headerParam1, err = runtime.StyleParamWithOptions("simple", false, "X-Idempotency-Key", *params.XIdempotencyKey, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationHeader, Type: "string", Format: ""}) + headerParam1, err = runtime.StyleParamWithLocation("simple", false, "X-Idempotency-Key", runtime.ParamLocationHeader, *params.XIdempotencyKey) if err != nil { return nil, err } @@ -15334,7 +13260,7 @@ func NewImportEndUserRequestWithBody(server string, params *ImportEndUserParams, if params.XWalletAuth != nil { var headerParam0 string - headerParam0, err = runtime.StyleParamWithOptions("simple", false, "X-Wallet-Auth", *params.XWalletAuth, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationHeader, Type: "string", Format: ""}) + headerParam0, err = runtime.StyleParamWithLocation("simple", false, "X-Wallet-Auth", runtime.ParamLocationHeader, *params.XWalletAuth) if err != nil { return nil, err } @@ -15345,7 +13271,7 @@ func NewImportEndUserRequestWithBody(server string, params *ImportEndUserParams, if params.XIdempotencyKey != nil { var headerParam1 string - headerParam1, err = runtime.StyleParamWithOptions("simple", false, "X-Idempotency-Key", *params.XIdempotencyKey, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationHeader, Type: "string", Format: ""}) + headerParam1, err = runtime.StyleParamWithLocation("simple", false, "X-Idempotency-Key", runtime.ParamLocationHeader, *params.XIdempotencyKey) if err != nil { return nil, err } @@ -15380,7 +13306,7 @@ func NewLookupEndUserRequest(server string, params *LookupEndUserParams) (*http. if params != nil { queryValues := queryURL.Query() - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "email", params.Email, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: "email"}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "email", runtime.ParamLocationQuery, params.Email); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err @@ -15409,7 +13335,7 @@ func NewGetEndUserRequest(server string, userId string) (*http.Request, error) { var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "userId", userId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "userId", runtime.ParamLocationPath, userId) if err != nil { return nil, err } @@ -15454,7 +13380,7 @@ func NewAddEndUserEvmAccountRequestWithBody(server string, userId string, params var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "userId", userId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "userId", runtime.ParamLocationPath, userId) if err != nil { return nil, err } @@ -15486,7 +13412,7 @@ func NewAddEndUserEvmAccountRequestWithBody(server string, userId string, params if params.XWalletAuth != nil { var headerParam0 string - headerParam0, err = runtime.StyleParamWithOptions("simple", false, "X-Wallet-Auth", *params.XWalletAuth, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationHeader, Type: "string", Format: ""}) + headerParam0, err = runtime.StyleParamWithLocation("simple", false, "X-Wallet-Auth", runtime.ParamLocationHeader, *params.XWalletAuth) if err != nil { return nil, err } @@ -15497,7 +13423,7 @@ func NewAddEndUserEvmAccountRequestWithBody(server string, userId string, params if params.XIdempotencyKey != nil { var headerParam1 string - headerParam1, err = runtime.StyleParamWithOptions("simple", false, "X-Idempotency-Key", *params.XIdempotencyKey, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationHeader, Type: "string", Format: ""}) + headerParam1, err = runtime.StyleParamWithLocation("simple", false, "X-Idempotency-Key", runtime.ParamLocationHeader, *params.XIdempotencyKey) if err != nil { return nil, err } @@ -15527,7 +13453,7 @@ func NewAddEndUserEvmSmartAccountRequestWithBody(server string, userId string, p var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "userId", userId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "userId", runtime.ParamLocationPath, userId) if err != nil { return nil, err } @@ -15559,7 +13485,7 @@ func NewAddEndUserEvmSmartAccountRequestWithBody(server string, userId string, p if params.XWalletAuth != nil { var headerParam0 string - headerParam0, err = runtime.StyleParamWithOptions("simple", false, "X-Wallet-Auth", *params.XWalletAuth, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationHeader, Type: "string", Format: ""}) + headerParam0, err = runtime.StyleParamWithLocation("simple", false, "X-Wallet-Auth", runtime.ParamLocationHeader, *params.XWalletAuth) if err != nil { return nil, err } @@ -15570,7 +13496,7 @@ func NewAddEndUserEvmSmartAccountRequestWithBody(server string, userId string, p if params.XIdempotencyKey != nil { var headerParam1 string - headerParam1, err = runtime.StyleParamWithOptions("simple", false, "X-Idempotency-Key", *params.XIdempotencyKey, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationHeader, Type: "string", Format: ""}) + headerParam1, err = runtime.StyleParamWithLocation("simple", false, "X-Idempotency-Key", runtime.ParamLocationHeader, *params.XIdempotencyKey) if err != nil { return nil, err } @@ -15600,7 +13526,7 @@ func NewAddEndUserSolanaAccountRequestWithBody(server string, userId string, par var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "userId", userId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "userId", runtime.ParamLocationPath, userId) if err != nil { return nil, err } @@ -15632,7 +13558,7 @@ func NewAddEndUserSolanaAccountRequestWithBody(server string, userId string, par if params.XWalletAuth != nil { var headerParam0 string - headerParam0, err = runtime.StyleParamWithOptions("simple", false, "X-Wallet-Auth", *params.XWalletAuth, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationHeader, Type: "string", Format: ""}) + headerParam0, err = runtime.StyleParamWithLocation("simple", false, "X-Wallet-Auth", runtime.ParamLocationHeader, *params.XWalletAuth) if err != nil { return nil, err } @@ -15643,7 +13569,7 @@ func NewAddEndUserSolanaAccountRequestWithBody(server string, userId string, par if params.XIdempotencyKey != nil { var headerParam1 string - headerParam1, err = runtime.StyleParamWithOptions("simple", false, "X-Idempotency-Key", *params.XIdempotencyKey, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationHeader, Type: "string", Format: ""}) + headerParam1, err = runtime.StyleParamWithLocation("simple", false, "X-Idempotency-Key", runtime.ParamLocationHeader, *params.XIdempotencyKey) if err != nil { return nil, err } @@ -15680,7 +13606,7 @@ func NewListEvmAccountsRequest(server string, params *ListEvmAccountsParams) (*h if params.PageSize != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "pageSize", *params.PageSize, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "pageSize", runtime.ParamLocationQuery, *params.PageSize); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err @@ -15696,7 +13622,7 @@ func NewListEvmAccountsRequest(server string, params *ListEvmAccountsParams) (*h if params.PageToken != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "pageToken", *params.PageToken, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "pageToken", runtime.ParamLocationQuery, *params.PageToken); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err @@ -15763,7 +13689,7 @@ func NewCreateEvmAccountRequestWithBody(server string, params *CreateEvmAccountP if params.XWalletAuth != nil { var headerParam0 string - headerParam0, err = runtime.StyleParamWithOptions("simple", false, "X-Wallet-Auth", *params.XWalletAuth, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationHeader, Type: "string", Format: ""}) + headerParam0, err = runtime.StyleParamWithLocation("simple", false, "X-Wallet-Auth", runtime.ParamLocationHeader, *params.XWalletAuth) if err != nil { return nil, err } @@ -15774,7 +13700,7 @@ func NewCreateEvmAccountRequestWithBody(server string, params *CreateEvmAccountP if params.XIdempotencyKey != nil { var headerParam1 string - headerParam1, err = runtime.StyleParamWithOptions("simple", false, "X-Idempotency-Key", *params.XIdempotencyKey, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationHeader, Type: "string", Format: ""}) + headerParam1, err = runtime.StyleParamWithLocation("simple", false, "X-Idempotency-Key", runtime.ParamLocationHeader, *params.XIdempotencyKey) if err != nil { return nil, err } @@ -15793,7 +13719,7 @@ func NewGetEvmAccountByNameRequest(server string, name string) (*http.Request, e var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "name", name, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "name", runtime.ParamLocationPath, name) if err != nil { return nil, err } @@ -15838,7 +13764,7 @@ func NewExportEvmAccountByNameRequestWithBody(server string, name string, params var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "name", name, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "name", runtime.ParamLocationPath, name) if err != nil { return nil, err } @@ -15870,7 +13796,7 @@ func NewExportEvmAccountByNameRequestWithBody(server string, name string, params if params.XWalletAuth != nil { var headerParam0 string - headerParam0, err = runtime.StyleParamWithOptions("simple", false, "X-Wallet-Auth", *params.XWalletAuth, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationHeader, Type: "string", Format: ""}) + headerParam0, err = runtime.StyleParamWithLocation("simple", false, "X-Wallet-Auth", runtime.ParamLocationHeader, *params.XWalletAuth) if err != nil { return nil, err } @@ -15881,7 +13807,7 @@ func NewExportEvmAccountByNameRequestWithBody(server string, name string, params if params.XIdempotencyKey != nil { var headerParam1 string - headerParam1, err = runtime.StyleParamWithOptions("simple", false, "X-Idempotency-Key", *params.XIdempotencyKey, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationHeader, Type: "string", Format: ""}) + headerParam1, err = runtime.StyleParamWithLocation("simple", false, "X-Idempotency-Key", runtime.ParamLocationHeader, *params.XIdempotencyKey) if err != nil { return nil, err } @@ -15936,7 +13862,7 @@ func NewImportEvmAccountRequestWithBody(server string, params *ImportEvmAccountP if params.XWalletAuth != nil { var headerParam0 string - headerParam0, err = runtime.StyleParamWithOptions("simple", false, "X-Wallet-Auth", *params.XWalletAuth, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationHeader, Type: "string", Format: ""}) + headerParam0, err = runtime.StyleParamWithLocation("simple", false, "X-Wallet-Auth", runtime.ParamLocationHeader, *params.XWalletAuth) if err != nil { return nil, err } @@ -15947,7 +13873,7 @@ func NewImportEvmAccountRequestWithBody(server string, params *ImportEvmAccountP if params.XIdempotencyKey != nil { var headerParam1 string - headerParam1, err = runtime.StyleParamWithOptions("simple", false, "X-Idempotency-Key", *params.XIdempotencyKey, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationHeader, Type: "string", Format: ""}) + headerParam1, err = runtime.StyleParamWithLocation("simple", false, "X-Idempotency-Key", runtime.ParamLocationHeader, *params.XIdempotencyKey) if err != nil { return nil, err } @@ -15966,7 +13892,7 @@ func NewGetEvmAccountRequest(server string, address string) (*http.Request, erro var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "address", address, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "address", runtime.ParamLocationPath, address) if err != nil { return nil, err } @@ -16011,7 +13937,7 @@ func NewUpdateEvmAccountRequestWithBody(server string, address string, params *U var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "address", address, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "address", runtime.ParamLocationPath, address) if err != nil { return nil, err } @@ -16043,7 +13969,7 @@ func NewUpdateEvmAccountRequestWithBody(server string, address string, params *U if params.XIdempotencyKey != nil { var headerParam0 string - headerParam0, err = runtime.StyleParamWithOptions("simple", false, "X-Idempotency-Key", *params.XIdempotencyKey, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationHeader, Type: "string", Format: ""}) + headerParam0, err = runtime.StyleParamWithLocation("simple", false, "X-Idempotency-Key", runtime.ParamLocationHeader, *params.XIdempotencyKey) if err != nil { return nil, err } @@ -16073,7 +13999,7 @@ func NewCreateEvmEip7702DelegationRequestWithBody(server string, address string, var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "address", address, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "address", runtime.ParamLocationPath, address) if err != nil { return nil, err } @@ -16105,7 +14031,7 @@ func NewCreateEvmEip7702DelegationRequestWithBody(server string, address string, if params.XWalletAuth != nil { var headerParam0 string - headerParam0, err = runtime.StyleParamWithOptions("simple", false, "X-Wallet-Auth", *params.XWalletAuth, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationHeader, Type: "string", Format: ""}) + headerParam0, err = runtime.StyleParamWithLocation("simple", false, "X-Wallet-Auth", runtime.ParamLocationHeader, *params.XWalletAuth) if err != nil { return nil, err } @@ -16116,7 +14042,7 @@ func NewCreateEvmEip7702DelegationRequestWithBody(server string, address string, if params.XIdempotencyKey != nil { var headerParam1 string - headerParam1, err = runtime.StyleParamWithOptions("simple", false, "X-Idempotency-Key", *params.XIdempotencyKey, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationHeader, Type: "string", Format: ""}) + headerParam1, err = runtime.StyleParamWithLocation("simple", false, "X-Idempotency-Key", runtime.ParamLocationHeader, *params.XIdempotencyKey) if err != nil { return nil, err } @@ -16146,7 +14072,7 @@ func NewExportEvmAccountRequestWithBody(server string, address string, params *E var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "address", address, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "address", runtime.ParamLocationPath, address) if err != nil { return nil, err } @@ -16178,7 +14104,7 @@ func NewExportEvmAccountRequestWithBody(server string, address string, params *E if params.XWalletAuth != nil { var headerParam0 string - headerParam0, err = runtime.StyleParamWithOptions("simple", false, "X-Wallet-Auth", *params.XWalletAuth, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationHeader, Type: "string", Format: ""}) + headerParam0, err = runtime.StyleParamWithLocation("simple", false, "X-Wallet-Auth", runtime.ParamLocationHeader, *params.XWalletAuth) if err != nil { return nil, err } @@ -16189,7 +14115,7 @@ func NewExportEvmAccountRequestWithBody(server string, address string, params *E if params.XIdempotencyKey != nil { var headerParam1 string - headerParam1, err = runtime.StyleParamWithOptions("simple", false, "X-Idempotency-Key", *params.XIdempotencyKey, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationHeader, Type: "string", Format: ""}) + headerParam1, err = runtime.StyleParamWithLocation("simple", false, "X-Idempotency-Key", runtime.ParamLocationHeader, *params.XIdempotencyKey) if err != nil { return nil, err } @@ -16219,7 +14145,7 @@ func NewSendEvmTransactionRequestWithBody(server string, address string, params var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "address", address, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "address", runtime.ParamLocationPath, address) if err != nil { return nil, err } @@ -16251,7 +14177,7 @@ func NewSendEvmTransactionRequestWithBody(server string, address string, params if params.XWalletAuth != nil { var headerParam0 string - headerParam0, err = runtime.StyleParamWithOptions("simple", false, "X-Wallet-Auth", *params.XWalletAuth, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationHeader, Type: "string", Format: ""}) + headerParam0, err = runtime.StyleParamWithLocation("simple", false, "X-Wallet-Auth", runtime.ParamLocationHeader, *params.XWalletAuth) if err != nil { return nil, err } @@ -16262,7 +14188,7 @@ func NewSendEvmTransactionRequestWithBody(server string, address string, params if params.XIdempotencyKey != nil { var headerParam1 string - headerParam1, err = runtime.StyleParamWithOptions("simple", false, "X-Idempotency-Key", *params.XIdempotencyKey, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationHeader, Type: "string", Format: ""}) + headerParam1, err = runtime.StyleParamWithLocation("simple", false, "X-Idempotency-Key", runtime.ParamLocationHeader, *params.XIdempotencyKey) if err != nil { return nil, err } @@ -16292,7 +14218,7 @@ func NewSignEvmHashRequestWithBody(server string, address string, params *SignEv var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "address", address, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "address", runtime.ParamLocationPath, address) if err != nil { return nil, err } @@ -16324,7 +14250,7 @@ func NewSignEvmHashRequestWithBody(server string, address string, params *SignEv if params.XWalletAuth != nil { var headerParam0 string - headerParam0, err = runtime.StyleParamWithOptions("simple", false, "X-Wallet-Auth", *params.XWalletAuth, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationHeader, Type: "string", Format: ""}) + headerParam0, err = runtime.StyleParamWithLocation("simple", false, "X-Wallet-Auth", runtime.ParamLocationHeader, *params.XWalletAuth) if err != nil { return nil, err } @@ -16335,7 +14261,7 @@ func NewSignEvmHashRequestWithBody(server string, address string, params *SignEv if params.XIdempotencyKey != nil { var headerParam1 string - headerParam1, err = runtime.StyleParamWithOptions("simple", false, "X-Idempotency-Key", *params.XIdempotencyKey, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationHeader, Type: "string", Format: ""}) + headerParam1, err = runtime.StyleParamWithLocation("simple", false, "X-Idempotency-Key", runtime.ParamLocationHeader, *params.XIdempotencyKey) if err != nil { return nil, err } @@ -16365,7 +14291,7 @@ func NewSignEvmMessageRequestWithBody(server string, address string, params *Sig var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "address", address, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "address", runtime.ParamLocationPath, address) if err != nil { return nil, err } @@ -16397,7 +14323,7 @@ func NewSignEvmMessageRequestWithBody(server string, address string, params *Sig if params.XWalletAuth != nil { var headerParam0 string - headerParam0, err = runtime.StyleParamWithOptions("simple", false, "X-Wallet-Auth", *params.XWalletAuth, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationHeader, Type: "string", Format: ""}) + headerParam0, err = runtime.StyleParamWithLocation("simple", false, "X-Wallet-Auth", runtime.ParamLocationHeader, *params.XWalletAuth) if err != nil { return nil, err } @@ -16408,7 +14334,7 @@ func NewSignEvmMessageRequestWithBody(server string, address string, params *Sig if params.XIdempotencyKey != nil { var headerParam1 string - headerParam1, err = runtime.StyleParamWithOptions("simple", false, "X-Idempotency-Key", *params.XIdempotencyKey, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationHeader, Type: "string", Format: ""}) + headerParam1, err = runtime.StyleParamWithLocation("simple", false, "X-Idempotency-Key", runtime.ParamLocationHeader, *params.XIdempotencyKey) if err != nil { return nil, err } @@ -16438,7 +14364,7 @@ func NewSignEvmTransactionRequestWithBody(server string, address string, params var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "address", address, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "address", runtime.ParamLocationPath, address) if err != nil { return nil, err } @@ -16470,7 +14396,7 @@ func NewSignEvmTransactionRequestWithBody(server string, address string, params if params.XWalletAuth != nil { var headerParam0 string - headerParam0, err = runtime.StyleParamWithOptions("simple", false, "X-Wallet-Auth", *params.XWalletAuth, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationHeader, Type: "string", Format: ""}) + headerParam0, err = runtime.StyleParamWithLocation("simple", false, "X-Wallet-Auth", runtime.ParamLocationHeader, *params.XWalletAuth) if err != nil { return nil, err } @@ -16481,7 +14407,7 @@ func NewSignEvmTransactionRequestWithBody(server string, address string, params if params.XIdempotencyKey != nil { var headerParam1 string - headerParam1, err = runtime.StyleParamWithOptions("simple", false, "X-Idempotency-Key", *params.XIdempotencyKey, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationHeader, Type: "string", Format: ""}) + headerParam1, err = runtime.StyleParamWithLocation("simple", false, "X-Idempotency-Key", runtime.ParamLocationHeader, *params.XIdempotencyKey) if err != nil { return nil, err } @@ -16511,7 +14437,7 @@ func NewSignEvmTypedDataRequestWithBody(server string, address string, params *S var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "address", address, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "address", runtime.ParamLocationPath, address) if err != nil { return nil, err } @@ -16543,7 +14469,7 @@ func NewSignEvmTypedDataRequestWithBody(server string, address string, params *S if params.XWalletAuth != nil { var headerParam0 string - headerParam0, err = runtime.StyleParamWithOptions("simple", false, "X-Wallet-Auth", *params.XWalletAuth, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationHeader, Type: "string", Format: ""}) + headerParam0, err = runtime.StyleParamWithLocation("simple", false, "X-Wallet-Auth", runtime.ParamLocationHeader, *params.XWalletAuth) if err != nil { return nil, err } @@ -16554,7 +14480,7 @@ func NewSignEvmTypedDataRequestWithBody(server string, address string, params *S if params.XIdempotencyKey != nil { var headerParam1 string - headerParam1, err = runtime.StyleParamWithOptions("simple", false, "X-Idempotency-Key", *params.XIdempotencyKey, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationHeader, Type: "string", Format: ""}) + headerParam1, err = runtime.StyleParamWithLocation("simple", false, "X-Idempotency-Key", runtime.ParamLocationHeader, *params.XIdempotencyKey) if err != nil { return nil, err } @@ -16573,7 +14499,7 @@ func NewGetEvmEip7702DelegationOperationByIdRequest(server string, delegationOpe var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "delegationOperationId", delegationOperationId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "delegationOperationId", runtime.ParamLocationPath, delegationOperationId) if err != nil { return nil, err } @@ -16665,7 +14591,7 @@ func NewListEvmSmartAccountsRequest(server string, params *ListEvmSmartAccountsP if params.PageSize != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "pageSize", *params.PageSize, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "pageSize", runtime.ParamLocationQuery, *params.PageSize); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err @@ -16681,7 +14607,7 @@ func NewListEvmSmartAccountsRequest(server string, params *ListEvmSmartAccountsP if params.PageToken != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "pageToken", *params.PageToken, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "pageToken", runtime.ParamLocationQuery, *params.PageToken); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err @@ -16748,7 +14674,7 @@ func NewCreateEvmSmartAccountRequestWithBody(server string, params *CreateEvmSma if params.XIdempotencyKey != nil { var headerParam0 string - headerParam0, err = runtime.StyleParamWithOptions("simple", false, "X-Idempotency-Key", *params.XIdempotencyKey, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationHeader, Type: "string", Format: ""}) + headerParam0, err = runtime.StyleParamWithLocation("simple", false, "X-Idempotency-Key", runtime.ParamLocationHeader, *params.XIdempotencyKey) if err != nil { return nil, err } @@ -16767,7 +14693,7 @@ func NewGetEvmSmartAccountByNameRequest(server string, name string) (*http.Reque var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "name", name, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "name", runtime.ParamLocationPath, name) if err != nil { return nil, err } @@ -16801,7 +14727,7 @@ func NewGetEvmSmartAccountRequest(server string, address string) (*http.Request, var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "address", address, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "address", runtime.ParamLocationPath, address) if err != nil { return nil, err } @@ -16846,7 +14772,7 @@ func NewUpdateEvmSmartAccountRequestWithBody(server string, address string, cont var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "address", address, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "address", runtime.ParamLocationPath, address) if err != nil { return nil, err } @@ -16893,7 +14819,7 @@ func NewCreateSpendPermissionRequestWithBody(server string, address string, para var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "address", address, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "address", runtime.ParamLocationPath, address) if err != nil { return nil, err } @@ -16925,7 +14851,7 @@ func NewCreateSpendPermissionRequestWithBody(server string, address string, para if params.XWalletAuth != nil { var headerParam0 string - headerParam0, err = runtime.StyleParamWithOptions("simple", false, "X-Wallet-Auth", *params.XWalletAuth, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationHeader, Type: "string", Format: ""}) + headerParam0, err = runtime.StyleParamWithLocation("simple", false, "X-Wallet-Auth", runtime.ParamLocationHeader, *params.XWalletAuth) if err != nil { return nil, err } @@ -16936,7 +14862,7 @@ func NewCreateSpendPermissionRequestWithBody(server string, address string, para if params.XIdempotencyKey != nil { var headerParam1 string - headerParam1, err = runtime.StyleParamWithOptions("simple", false, "X-Idempotency-Key", *params.XIdempotencyKey, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationHeader, Type: "string", Format: ""}) + headerParam1, err = runtime.StyleParamWithLocation("simple", false, "X-Idempotency-Key", runtime.ParamLocationHeader, *params.XIdempotencyKey) if err != nil { return nil, err } @@ -16955,7 +14881,7 @@ func NewListSpendPermissionsRequest(server string, address string, params *ListS var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "address", address, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "address", runtime.ParamLocationPath, address) if err != nil { return nil, err } @@ -16980,7 +14906,7 @@ func NewListSpendPermissionsRequest(server string, address string, params *ListS if params.PageSize != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "pageSize", *params.PageSize, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "pageSize", runtime.ParamLocationQuery, *params.PageSize); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err @@ -16996,7 +14922,7 @@ func NewListSpendPermissionsRequest(server string, address string, params *ListS if params.PageToken != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "pageToken", *params.PageToken, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "pageToken", runtime.ParamLocationQuery, *params.PageToken); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err @@ -17038,7 +14964,7 @@ func NewRevokeSpendPermissionRequestWithBody(server string, address string, para var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "address", address, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "address", runtime.ParamLocationPath, address) if err != nil { return nil, err } @@ -17070,7 +14996,7 @@ func NewRevokeSpendPermissionRequestWithBody(server string, address string, para if params.XWalletAuth != nil { var headerParam0 string - headerParam0, err = runtime.StyleParamWithOptions("simple", false, "X-Wallet-Auth", *params.XWalletAuth, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationHeader, Type: "string", Format: ""}) + headerParam0, err = runtime.StyleParamWithLocation("simple", false, "X-Wallet-Auth", runtime.ParamLocationHeader, *params.XWalletAuth) if err != nil { return nil, err } @@ -17081,7 +15007,7 @@ func NewRevokeSpendPermissionRequestWithBody(server string, address string, para if params.XIdempotencyKey != nil { var headerParam1 string - headerParam1, err = runtime.StyleParamWithOptions("simple", false, "X-Idempotency-Key", *params.XIdempotencyKey, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationHeader, Type: "string", Format: ""}) + headerParam1, err = runtime.StyleParamWithLocation("simple", false, "X-Idempotency-Key", runtime.ParamLocationHeader, *params.XIdempotencyKey) if err != nil { return nil, err } @@ -17111,7 +15037,7 @@ func NewPrepareUserOperationRequestWithBody(server string, address string, conte var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "address", address, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "address", runtime.ParamLocationPath, address) if err != nil { return nil, err } @@ -17158,7 +15084,7 @@ func NewPrepareAndSendUserOperationRequestWithBody(server string, address string var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "address", address, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "address", runtime.ParamLocationPath, address) if err != nil { return nil, err } @@ -17190,7 +15116,7 @@ func NewPrepareAndSendUserOperationRequestWithBody(server string, address string if params.XIdempotencyKey != nil { var headerParam0 string - headerParam0, err = runtime.StyleParamWithOptions("simple", false, "X-Idempotency-Key", *params.XIdempotencyKey, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationHeader, Type: "string", Format: ""}) + headerParam0, err = runtime.StyleParamWithLocation("simple", false, "X-Idempotency-Key", runtime.ParamLocationHeader, *params.XIdempotencyKey) if err != nil { return nil, err } @@ -17201,7 +15127,7 @@ func NewPrepareAndSendUserOperationRequestWithBody(server string, address string if params.XWalletAuth != nil { var headerParam1 string - headerParam1, err = runtime.StyleParamWithOptions("simple", false, "X-Wallet-Auth", *params.XWalletAuth, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationHeader, Type: "string", Format: ""}) + headerParam1, err = runtime.StyleParamWithLocation("simple", false, "X-Wallet-Auth", runtime.ParamLocationHeader, *params.XWalletAuth) if err != nil { return nil, err } @@ -17220,14 +15146,14 @@ func NewGetUserOperationRequest(server string, address string, userOpHash string var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "address", address, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "address", runtime.ParamLocationPath, address) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithOptions("simple", false, "userOpHash", userOpHash, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "userOpHash", runtime.ParamLocationPath, userOpHash) if err != nil { return nil, err } @@ -17272,14 +15198,14 @@ func NewSendUserOperationRequestWithBody(server string, address string, userOpHa var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "address", address, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "address", runtime.ParamLocationPath, address) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithOptions("simple", false, "userOpHash", userOpHash, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "userOpHash", runtime.ParamLocationPath, userOpHash) if err != nil { return nil, err } @@ -17351,7 +15277,7 @@ func NewCreateEvmSwapQuoteRequestWithBody(server string, params *CreateEvmSwapQu if params.XIdempotencyKey != nil { var headerParam0 string - headerParam0, err = runtime.StyleParamWithOptions("simple", false, "X-Idempotency-Key", *params.XIdempotencyKey, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationHeader, Type: "string", Format: ""}) + headerParam0, err = runtime.StyleParamWithLocation("simple", false, "X-Idempotency-Key", runtime.ParamLocationHeader, *params.XIdempotencyKey) if err != nil { return nil, err } @@ -17386,7 +15312,7 @@ func NewGetEvmSwapPriceRequest(server string, params *GetEvmSwapPriceParams) (*h if params != nil { queryValues := queryURL.Query() - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "network", params.Network, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "network", runtime.ParamLocationQuery, params.Network); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err @@ -17398,7 +15324,7 @@ func NewGetEvmSwapPriceRequest(server string, params *GetEvmSwapPriceParams) (*h } } - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "toToken", params.ToToken, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "toToken", runtime.ParamLocationQuery, params.ToToken); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err @@ -17410,7 +15336,7 @@ func NewGetEvmSwapPriceRequest(server string, params *GetEvmSwapPriceParams) (*h } } - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "fromToken", params.FromToken, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "fromToken", runtime.ParamLocationQuery, params.FromToken); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err @@ -17422,7 +15348,7 @@ func NewGetEvmSwapPriceRequest(server string, params *GetEvmSwapPriceParams) (*h } } - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "fromAmount", params.FromAmount, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "fromAmount", runtime.ParamLocationQuery, params.FromAmount); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err @@ -17434,7 +15360,7 @@ func NewGetEvmSwapPriceRequest(server string, params *GetEvmSwapPriceParams) (*h } } - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "taker", params.Taker, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "taker", runtime.ParamLocationQuery, params.Taker); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err @@ -17448,7 +15374,7 @@ func NewGetEvmSwapPriceRequest(server string, params *GetEvmSwapPriceParams) (*h if params.SignerAddress != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "signerAddress", *params.SignerAddress, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "signerAddress", runtime.ParamLocationQuery, *params.SignerAddress); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err @@ -17464,7 +15390,7 @@ func NewGetEvmSwapPriceRequest(server string, params *GetEvmSwapPriceParams) (*h if params.GasPrice != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "gasPrice", *params.GasPrice, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "gasPrice", runtime.ParamLocationQuery, *params.GasPrice); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err @@ -17480,7 +15406,7 @@ func NewGetEvmSwapPriceRequest(server string, params *GetEvmSwapPriceParams) (*h if params.SlippageBps != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "slippageBps", *params.SlippageBps, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "slippageBps", runtime.ParamLocationQuery, *params.SlippageBps); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err @@ -17511,14 +15437,14 @@ func NewListEvmTokenBalancesRequest(server string, network ListEvmTokenBalancesN var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "network", network, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "network", runtime.ParamLocationPath, network) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithOptions("simple", false, "address", address, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "address", runtime.ParamLocationPath, address) if err != nil { return nil, err } @@ -17543,7 +15469,7 @@ func NewListEvmTokenBalancesRequest(server string, network ListEvmTokenBalancesN if params.PageSize != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "pageSize", *params.PageSize, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "pageSize", runtime.ParamLocationQuery, *params.PageSize); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err @@ -17559,7 +15485,7 @@ func NewListEvmTokenBalancesRequest(server string, network ListEvmTokenBalancesN if params.PageToken != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "pageToken", *params.PageToken, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "pageToken", runtime.ParamLocationQuery, *params.PageToken); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err @@ -17670,7 +15596,7 @@ func NewGetOnrampOrderByIdRequest(server string, orderId string) (*http.Request, var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "orderId", orderId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "orderId", runtime.ParamLocationPath, orderId) if err != nil { return nil, err } @@ -17762,7 +15688,7 @@ func NewListPoliciesRequest(server string, params *ListPoliciesParams) (*http.Re if params.PageSize != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "pageSize", *params.PageSize, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "pageSize", runtime.ParamLocationQuery, *params.PageSize); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err @@ -17778,7 +15704,7 @@ func NewListPoliciesRequest(server string, params *ListPoliciesParams) (*http.Re if params.PageToken != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "pageToken", *params.PageToken, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "pageToken", runtime.ParamLocationQuery, *params.PageToken); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err @@ -17794,7 +15720,7 @@ func NewListPoliciesRequest(server string, params *ListPoliciesParams) (*http.Re if params.Scope != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "scope", *params.Scope, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "scope", runtime.ParamLocationQuery, *params.Scope); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err @@ -17861,7 +15787,7 @@ func NewCreatePolicyRequestWithBody(server string, params *CreatePolicyParams, c if params.XIdempotencyKey != nil { var headerParam0 string - headerParam0, err = runtime.StyleParamWithOptions("simple", false, "X-Idempotency-Key", *params.XIdempotencyKey, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationHeader, Type: "string", Format: ""}) + headerParam0, err = runtime.StyleParamWithLocation("simple", false, "X-Idempotency-Key", runtime.ParamLocationHeader, *params.XIdempotencyKey) if err != nil { return nil, err } @@ -17880,7 +15806,7 @@ func NewDeletePolicyRequest(server string, policyId string, params *DeletePolicy var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "policyId", policyId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "policyId", runtime.ParamLocationPath, policyId) if err != nil { return nil, err } @@ -17910,7 +15836,7 @@ func NewDeletePolicyRequest(server string, policyId string, params *DeletePolicy if params.XIdempotencyKey != nil { var headerParam0 string - headerParam0, err = runtime.StyleParamWithOptions("simple", false, "X-Idempotency-Key", *params.XIdempotencyKey, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationHeader, Type: "string", Format: ""}) + headerParam0, err = runtime.StyleParamWithLocation("simple", false, "X-Idempotency-Key", runtime.ParamLocationHeader, *params.XIdempotencyKey) if err != nil { return nil, err } @@ -17929,7 +15855,7 @@ func NewGetPolicyByIdRequest(server string, policyId string) (*http.Request, err var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "policyId", policyId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "policyId", runtime.ParamLocationPath, policyId) if err != nil { return nil, err } @@ -17974,7 +15900,7 @@ func NewUpdatePolicyRequestWithBody(server string, policyId string, params *Upda var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "policyId", policyId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "policyId", runtime.ParamLocationPath, policyId) if err != nil { return nil, err } @@ -18006,7 +15932,7 @@ func NewUpdatePolicyRequestWithBody(server string, policyId string, params *Upda if params.XIdempotencyKey != nil { var headerParam0 string - headerParam0, err = runtime.StyleParamWithOptions("simple", false, "X-Idempotency-Key", *params.XIdempotencyKey, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationHeader, Type: "string", Format: ""}) + headerParam0, err = runtime.StyleParamWithLocation("simple", false, "X-Idempotency-Key", runtime.ParamLocationHeader, *params.XIdempotencyKey) if err != nil { return nil, err } @@ -18043,7 +15969,7 @@ func NewListSolanaAccountsRequest(server string, params *ListSolanaAccountsParam if params.PageSize != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "pageSize", *params.PageSize, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "pageSize", runtime.ParamLocationQuery, *params.PageSize); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err @@ -18059,7 +15985,7 @@ func NewListSolanaAccountsRequest(server string, params *ListSolanaAccountsParam if params.PageToken != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "pageToken", *params.PageToken, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "pageToken", runtime.ParamLocationQuery, *params.PageToken); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err @@ -18126,7 +16052,7 @@ func NewCreateSolanaAccountRequestWithBody(server string, params *CreateSolanaAc if params.XWalletAuth != nil { var headerParam0 string - headerParam0, err = runtime.StyleParamWithOptions("simple", false, "X-Wallet-Auth", *params.XWalletAuth, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationHeader, Type: "string", Format: ""}) + headerParam0, err = runtime.StyleParamWithLocation("simple", false, "X-Wallet-Auth", runtime.ParamLocationHeader, *params.XWalletAuth) if err != nil { return nil, err } @@ -18137,7 +16063,7 @@ func NewCreateSolanaAccountRequestWithBody(server string, params *CreateSolanaAc if params.XIdempotencyKey != nil { var headerParam1 string - headerParam1, err = runtime.StyleParamWithOptions("simple", false, "X-Idempotency-Key", *params.XIdempotencyKey, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationHeader, Type: "string", Format: ""}) + headerParam1, err = runtime.StyleParamWithLocation("simple", false, "X-Idempotency-Key", runtime.ParamLocationHeader, *params.XIdempotencyKey) if err != nil { return nil, err } @@ -18156,7 +16082,7 @@ func NewGetSolanaAccountByNameRequest(server string, name string) (*http.Request var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "name", name, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "name", runtime.ParamLocationPath, name) if err != nil { return nil, err } @@ -18201,7 +16127,7 @@ func NewExportSolanaAccountByNameRequestWithBody(server string, name string, par var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "name", name, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "name", runtime.ParamLocationPath, name) if err != nil { return nil, err } @@ -18233,7 +16159,7 @@ func NewExportSolanaAccountByNameRequestWithBody(server string, name string, par if params.XWalletAuth != nil { var headerParam0 string - headerParam0, err = runtime.StyleParamWithOptions("simple", false, "X-Wallet-Auth", *params.XWalletAuth, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationHeader, Type: "string", Format: ""}) + headerParam0, err = runtime.StyleParamWithLocation("simple", false, "X-Wallet-Auth", runtime.ParamLocationHeader, *params.XWalletAuth) if err != nil { return nil, err } @@ -18244,7 +16170,7 @@ func NewExportSolanaAccountByNameRequestWithBody(server string, name string, par if params.XIdempotencyKey != nil { var headerParam1 string - headerParam1, err = runtime.StyleParamWithOptions("simple", false, "X-Idempotency-Key", *params.XIdempotencyKey, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationHeader, Type: "string", Format: ""}) + headerParam1, err = runtime.StyleParamWithLocation("simple", false, "X-Idempotency-Key", runtime.ParamLocationHeader, *params.XIdempotencyKey) if err != nil { return nil, err } @@ -18299,7 +16225,7 @@ func NewImportSolanaAccountRequestWithBody(server string, params *ImportSolanaAc if params.XWalletAuth != nil { var headerParam0 string - headerParam0, err = runtime.StyleParamWithOptions("simple", false, "X-Wallet-Auth", *params.XWalletAuth, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationHeader, Type: "string", Format: ""}) + headerParam0, err = runtime.StyleParamWithLocation("simple", false, "X-Wallet-Auth", runtime.ParamLocationHeader, *params.XWalletAuth) if err != nil { return nil, err } @@ -18310,7 +16236,7 @@ func NewImportSolanaAccountRequestWithBody(server string, params *ImportSolanaAc if params.XIdempotencyKey != nil { var headerParam1 string - headerParam1, err = runtime.StyleParamWithOptions("simple", false, "X-Idempotency-Key", *params.XIdempotencyKey, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationHeader, Type: "string", Format: ""}) + headerParam1, err = runtime.StyleParamWithLocation("simple", false, "X-Idempotency-Key", runtime.ParamLocationHeader, *params.XIdempotencyKey) if err != nil { return nil, err } @@ -18365,7 +16291,7 @@ func NewSendSolanaTransactionRequestWithBody(server string, params *SendSolanaTr if params.XWalletAuth != nil { var headerParam0 string - headerParam0, err = runtime.StyleParamWithOptions("simple", false, "X-Wallet-Auth", *params.XWalletAuth, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationHeader, Type: "string", Format: ""}) + headerParam0, err = runtime.StyleParamWithLocation("simple", false, "X-Wallet-Auth", runtime.ParamLocationHeader, *params.XWalletAuth) if err != nil { return nil, err } @@ -18376,7 +16302,7 @@ func NewSendSolanaTransactionRequestWithBody(server string, params *SendSolanaTr if params.XIdempotencyKey != nil { var headerParam1 string - headerParam1, err = runtime.StyleParamWithOptions("simple", false, "X-Idempotency-Key", *params.XIdempotencyKey, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationHeader, Type: "string", Format: ""}) + headerParam1, err = runtime.StyleParamWithLocation("simple", false, "X-Idempotency-Key", runtime.ParamLocationHeader, *params.XIdempotencyKey) if err != nil { return nil, err } @@ -18395,7 +16321,7 @@ func NewGetSolanaAccountRequest(server string, address string) (*http.Request, e var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "address", address, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "address", runtime.ParamLocationPath, address) if err != nil { return nil, err } @@ -18440,7 +16366,7 @@ func NewUpdateSolanaAccountRequestWithBody(server string, address string, params var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "address", address, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "address", runtime.ParamLocationPath, address) if err != nil { return nil, err } @@ -18472,7 +16398,7 @@ func NewUpdateSolanaAccountRequestWithBody(server string, address string, params if params.XIdempotencyKey != nil { var headerParam0 string - headerParam0, err = runtime.StyleParamWithOptions("simple", false, "X-Idempotency-Key", *params.XIdempotencyKey, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationHeader, Type: "string", Format: ""}) + headerParam0, err = runtime.StyleParamWithLocation("simple", false, "X-Idempotency-Key", runtime.ParamLocationHeader, *params.XIdempotencyKey) if err != nil { return nil, err } @@ -18502,7 +16428,7 @@ func NewExportSolanaAccountRequestWithBody(server string, address string, params var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "address", address, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "address", runtime.ParamLocationPath, address) if err != nil { return nil, err } @@ -18534,7 +16460,7 @@ func NewExportSolanaAccountRequestWithBody(server string, address string, params if params.XWalletAuth != nil { var headerParam0 string - headerParam0, err = runtime.StyleParamWithOptions("simple", false, "X-Wallet-Auth", *params.XWalletAuth, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationHeader, Type: "string", Format: ""}) + headerParam0, err = runtime.StyleParamWithLocation("simple", false, "X-Wallet-Auth", runtime.ParamLocationHeader, *params.XWalletAuth) if err != nil { return nil, err } @@ -18545,7 +16471,7 @@ func NewExportSolanaAccountRequestWithBody(server string, address string, params if params.XIdempotencyKey != nil { var headerParam1 string - headerParam1, err = runtime.StyleParamWithOptions("simple", false, "X-Idempotency-Key", *params.XIdempotencyKey, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationHeader, Type: "string", Format: ""}) + headerParam1, err = runtime.StyleParamWithLocation("simple", false, "X-Idempotency-Key", runtime.ParamLocationHeader, *params.XIdempotencyKey) if err != nil { return nil, err } @@ -18575,7 +16501,7 @@ func NewSignSolanaMessageRequestWithBody(server string, address string, params * var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "address", address, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "address", runtime.ParamLocationPath, address) if err != nil { return nil, err } @@ -18607,7 +16533,7 @@ func NewSignSolanaMessageRequestWithBody(server string, address string, params * if params.XWalletAuth != nil { var headerParam0 string - headerParam0, err = runtime.StyleParamWithOptions("simple", false, "X-Wallet-Auth", *params.XWalletAuth, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationHeader, Type: "string", Format: ""}) + headerParam0, err = runtime.StyleParamWithLocation("simple", false, "X-Wallet-Auth", runtime.ParamLocationHeader, *params.XWalletAuth) if err != nil { return nil, err } @@ -18618,7 +16544,7 @@ func NewSignSolanaMessageRequestWithBody(server string, address string, params * if params.XIdempotencyKey != nil { var headerParam1 string - headerParam1, err = runtime.StyleParamWithOptions("simple", false, "X-Idempotency-Key", *params.XIdempotencyKey, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationHeader, Type: "string", Format: ""}) + headerParam1, err = runtime.StyleParamWithLocation("simple", false, "X-Idempotency-Key", runtime.ParamLocationHeader, *params.XIdempotencyKey) if err != nil { return nil, err } @@ -18648,7 +16574,7 @@ func NewSignSolanaTransactionRequestWithBody(server string, address string, para var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "address", address, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "address", runtime.ParamLocationPath, address) if err != nil { return nil, err } @@ -18680,7 +16606,7 @@ func NewSignSolanaTransactionRequestWithBody(server string, address string, para if params.XWalletAuth != nil { var headerParam0 string - headerParam0, err = runtime.StyleParamWithOptions("simple", false, "X-Wallet-Auth", *params.XWalletAuth, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationHeader, Type: "string", Format: ""}) + headerParam0, err = runtime.StyleParamWithLocation("simple", false, "X-Wallet-Auth", runtime.ParamLocationHeader, *params.XWalletAuth) if err != nil { return nil, err } @@ -18691,7 +16617,7 @@ func NewSignSolanaTransactionRequestWithBody(server string, address string, para if params.XIdempotencyKey != nil { var headerParam1 string - headerParam1, err = runtime.StyleParamWithOptions("simple", false, "X-Idempotency-Key", *params.XIdempotencyKey, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationHeader, Type: "string", Format: ""}) + headerParam1, err = runtime.StyleParamWithLocation("simple", false, "X-Idempotency-Key", runtime.ParamLocationHeader, *params.XIdempotencyKey) if err != nil { return nil, err } @@ -18750,14 +16676,14 @@ func NewListSolanaTokenBalancesRequest(server string, network ListSolanaTokenBal var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "network", network, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "network", runtime.ParamLocationPath, network) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithOptions("simple", false, "address", address, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "address", runtime.ParamLocationPath, address) if err != nil { return nil, err } @@ -18782,7 +16708,7 @@ func NewListSolanaTokenBalancesRequest(server string, network ListSolanaTokenBal if params.PageSize != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "pageSize", *params.PageSize, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "pageSize", runtime.ParamLocationQuery, *params.PageSize); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err @@ -18798,7 +16724,7 @@ func NewListSolanaTokenBalancesRequest(server string, network ListSolanaTokenBal if params.PageToken != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "pageToken", *params.PageToken, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "pageToken", runtime.ParamLocationQuery, *params.PageToken); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err @@ -19914,10 +17840,10 @@ type SendEvmAssetWithEndUserAccountResponse struct { HTTPResponse *http.Response JSON200 *struct { // TransactionHash The hash of the transaction, as a 0x-prefixed hex string. Populated for EOA accounts. Null for Smart Accounts (use userOpHash instead). - TransactionHash *string `json:"transactionHash,omitempty"` + TransactionHash *string `json:"transactionHash"` // UserOpHash The hash of the user operation, as a 0x-prefixed hex string. Populated for Smart Accounts. Null for EOA accounts (use transactionHash instead). - UserOpHash *string `json:"userOpHash,omitempty"` + UserOpHash *string `json:"userOpHash"` } JSON400 *Error JSON401 *UnauthorizedError @@ -24607,10 +22533,10 @@ func ParseSendEvmAssetWithEndUserAccountResponse(rsp *http.Response) (*SendEvmAs case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: var dest struct { // TransactionHash The hash of the transaction, as a 0x-prefixed hex string. Populated for EOA accounts. Null for Smart Accounts (use userOpHash instead). - TransactionHash *string `json:"transactionHash,omitempty"` + TransactionHash *string `json:"transactionHash"` // UserOpHash The hash of the user operation, as a 0x-prefixed hex string. Populated for Smart Accounts. Null for EOA accounts (use transactionHash instead). - UserOpHash *string `json:"userOpHash,omitempty"` + UserOpHash *string `json:"userOpHash"` } if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err diff --git a/java/src/main/java/com/coinbase/cdp/client/enduser/EndUserClient.java b/java/src/main/java/com/coinbase/cdp/client/enduser/EndUserClient.java index 9a6a18446..5bcbf76c7 100644 --- a/java/src/main/java/com/coinbase/cdp/client/enduser/EndUserClient.java +++ b/java/src/main/java/com/coinbase/cdp/client/enduser/EndUserClient.java @@ -345,7 +345,7 @@ public void revokeDelegation(String userId) throws ApiException { RevokeDelegationForEndUserRequest request = new RevokeDelegationForEndUserRequest(); String walletJwt = generateWalletJwt("POST", "/v2/end-users/" + userId + "/revoke-delegation", request); - embeddedWalletsApi.revokeDelegationForEndUser(userId, request, walletJwt, null, null); + embeddedWalletsApi.revokeDelegationForEndUser(userId, request, walletJwt, null, null, null); } // ==================== Delegated EVM Sign Methods ==================== From b328863cde0065f34800ca12f42b53bf57adb428 Mon Sep 17 00:00:00 2001 From: Sam McCord Date: Thu, 23 Apr 2026 12:18:40 -0600 Subject: [PATCH 10/13] chore: update java tests --- .../java/com/coinbase/cdp/client/enduser/EndUserClientTest.java | 1 + 1 file changed, 1 insertion(+) diff --git a/java/src/test/java/com/coinbase/cdp/client/enduser/EndUserClientTest.java b/java/src/test/java/com/coinbase/cdp/client/enduser/EndUserClientTest.java index 102295856..9aae2c81b 100644 --- a/java/src/test/java/com/coinbase/cdp/client/enduser/EndUserClientTest.java +++ b/java/src/test/java/com/coinbase/cdp/client/enduser/EndUserClientTest.java @@ -323,6 +323,7 @@ void revokesDelegation() throws ApiException { any(RevokeDelegationForEndUserRequest.class), eq(WALLET_JWT), isNull(), + isNull(), isNull()); } } From ca3dbd3b1ef190d2b8c8ede4c4eee025dbf6b32c Mon Sep 17 00:00:00 2001 From: Saliou Diallo Date: Tue, 28 Apr 2026 15:12:36 -0400 Subject: [PATCH 11/13] Make lookupEndUser extensible for future lookup types in Python and Java --- .../cdp/client/enduser/EndUserClient.java | 9 ++--- .../client/enduser/EndUserClientOptions.java | 34 ++++++++++++++++++- .../cdp/client/enduser/EndUserClientTest.java | 4 ++- python/cdp/end_user_client.py | 3 +- 4 files changed, 43 insertions(+), 7 deletions(-) diff --git a/java/src/main/java/com/coinbase/cdp/client/enduser/EndUserClient.java b/java/src/main/java/com/coinbase/cdp/client/enduser/EndUserClient.java index 5bcbf76c7..99595955f 100644 --- a/java/src/main/java/com/coinbase/cdp/client/enduser/EndUserClient.java +++ b/java/src/main/java/com/coinbase/cdp/client/enduser/EndUserClient.java @@ -3,6 +3,7 @@ import com.coinbase.cdp.CdpClient; import com.coinbase.cdp.auth.TokenProvider; import com.coinbase.cdp.client.enduser.EndUserClientOptions.ListEndUsersOptions; +import com.coinbase.cdp.client.enduser.EndUserClientOptions.LookupEndUserOptions; import com.coinbase.cdp.openapi.ApiClient; import com.coinbase.cdp.openapi.ApiException; import com.coinbase.cdp.openapi.api.EmbeddedWalletsApi; @@ -183,16 +184,16 @@ public EndUser getEndUser(String userId) throws ApiException { } /** - * Looks up end users by email address. + * Looks up end users by a single identity parameter. * *

Searches across all email-based authentication methods (email, Google, Apple, GitHub). * - * @param email the email address to search for + * @param options the lookup options specifying the identity parameter to search by * @return the lookup response containing matching end users * @throws ApiException if the API call fails */ - public LookupEndUser200Response lookupEndUser(String email) throws ApiException { - return endUserAccountsApi.lookupEndUser(email); + public LookupEndUser200Response lookupEndUser(LookupEndUserOptions options) throws ApiException { + return endUserAccountsApi.lookupEndUser(options.email()); } /** diff --git a/java/src/main/java/com/coinbase/cdp/client/enduser/EndUserClientOptions.java b/java/src/main/java/com/coinbase/cdp/client/enduser/EndUserClientOptions.java index bcc1406e4..551f9c295 100644 --- a/java/src/main/java/com/coinbase/cdp/client/enduser/EndUserClientOptions.java +++ b/java/src/main/java/com/coinbase/cdp/client/enduser/EndUserClientOptions.java @@ -6,11 +6,43 @@ * Options records for EndUser client operations. * *

For operations that accept request bodies, use the generated OpenAPI request types directly. - * This file contains only options for listing operations with pagination. + * This file contains options classes for operations that use query parameters. */ public final class EndUserClientOptions { private EndUserClientOptions() {} + /** Options for looking up end users by a single identity parameter. */ + public static final class LookupEndUserOptions { + private final String email; + + private LookupEndUserOptions(Builder builder) { + this.email = builder.email; + } + + public String email() { + return email; + } + + public static Builder builder() { + return new Builder(); + } + + public static final class Builder { + private String email; + + private Builder() {} + + public Builder email(String email) { + this.email = email; + return this; + } + + public LookupEndUserOptions build() { + return new LookupEndUserOptions(this); + } + } + } + /** Options for listing end users with pagination and sorting. */ public record ListEndUsersOptions(Integer pageSize, String pageToken, List sort) { public static Builder builder() { diff --git a/java/src/test/java/com/coinbase/cdp/client/enduser/EndUserClientTest.java b/java/src/test/java/com/coinbase/cdp/client/enduser/EndUserClientTest.java index 9aae2c81b..c991fe0ed 100644 --- a/java/src/test/java/com/coinbase/cdp/client/enduser/EndUserClientTest.java +++ b/java/src/test/java/com/coinbase/cdp/client/enduser/EndUserClientTest.java @@ -7,6 +7,7 @@ import com.coinbase.cdp.CdpClient; import com.coinbase.cdp.auth.TokenProvider; import com.coinbase.cdp.client.enduser.EndUserClientOptions.ListEndUsersOptions; +import com.coinbase.cdp.client.enduser.EndUserClientOptions.LookupEndUserOptions; import com.coinbase.cdp.openapi.ApiClient; import com.coinbase.cdp.openapi.ApiException; import com.coinbase.cdp.openapi.api.EmbeddedWalletsApi; @@ -146,7 +147,8 @@ void looksUpEndUserByEmail() throws ApiException { expected.addEndUsersItem(new EndUser().userId(USER_ID)); when(endUserAccountsApi.lookupEndUser("user@example.com")).thenReturn(expected); - LookupEndUser200Response result = client.lookupEndUser("user@example.com"); + LookupEndUserOptions options = LookupEndUserOptions.builder().email("user@example.com").build(); + LookupEndUser200Response result = client.lookupEndUser(options); assertThat(result).isEqualTo(expected); assertThat(result.getEndUsers()).hasSize(1); diff --git a/python/cdp/end_user_client.py b/python/cdp/end_user_client.py index ec3050dbb..3946f36a3 100644 --- a/python/cdp/end_user_client.py +++ b/python/cdp/end_user_client.py @@ -201,7 +201,8 @@ async def list_end_users( async def lookup_end_user( self, - email: str, + *, + email: str | None = None, ) -> list[EndUserAccount]: """Look up end users by email address. From a65b5c5fca36e8d629f4ac81ec8738f31d16109f Mon Sep 17 00:00:00 2001 From: Saliou Diallo Date: Tue, 28 Apr 2026 16:07:17 -0400 Subject: [PATCH 12/13] Lint java --- .../com/coinbase/cdp/client/enduser/EndUserClientTest.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/java/src/test/java/com/coinbase/cdp/client/enduser/EndUserClientTest.java b/java/src/test/java/com/coinbase/cdp/client/enduser/EndUserClientTest.java index c991fe0ed..b34a81feb 100644 --- a/java/src/test/java/com/coinbase/cdp/client/enduser/EndUserClientTest.java +++ b/java/src/test/java/com/coinbase/cdp/client/enduser/EndUserClientTest.java @@ -147,7 +147,8 @@ void looksUpEndUserByEmail() throws ApiException { expected.addEndUsersItem(new EndUser().userId(USER_ID)); when(endUserAccountsApi.lookupEndUser("user@example.com")).thenReturn(expected); - LookupEndUserOptions options = LookupEndUserOptions.builder().email("user@example.com").build(); + LookupEndUserOptions options = + LookupEndUserOptions.builder().email("user@example.com").build(); LookupEndUser200Response result = client.lookupEndUser(options); assertThat(result).isEqualTo(expected); From 5c1fc8f76c1edff64e69e2bac1ca0cee79eba416 Mon Sep 17 00:00:00 2001 From: Saliou Diallo Date: Tue, 28 Apr 2026 16:16:37 -0400 Subject: [PATCH 13/13] Add e2e tests for lookupEndUser by email in TypeScript and Python --- python/cdp/test/test_e2e.py | 20 ++++++++++++++++++++ typescript/src/e2e.test.ts | 15 +++++++++++++++ 2 files changed, 35 insertions(+) diff --git a/python/cdp/test/test_e2e.py b/python/cdp/test/test_e2e.py index e164d561f..78f68635f 100644 --- a/python/cdp/test/test_e2e.py +++ b/python/cdp/test/test_e2e.py @@ -154,6 +154,26 @@ async def test_create_get_and_list_accounts(cdp_client): assert account.name == random_name +@pytest.mark.e2e +@pytest.mark.asyncio +async def test_lookup_end_user_by_email(cdp_client): + """Test looking up an end user by email address.""" + random_email = f"test-{int(time.time())}-{generate_random_name()}@example.com" + + created = await cdp_client.end_user.create_end_user( + authentication_methods=[ + AuthenticationMethod(EmailAuthentication(type="email", email=random_email)) + ], + ) + + results = await cdp_client.end_user.lookup_end_user(email=random_email) + + assert len(results) == 1 + assert results[0].user_id == created.user_id + + print(f"Looked up end user: {results[0].user_id}") + + @pytest.mark.e2e @pytest.mark.asyncio async def test_create_end_user_with_accounts(cdp_client): diff --git a/typescript/src/e2e.test.ts b/typescript/src/e2e.test.ts index 30566a989..ef342a1d5 100644 --- a/typescript/src/e2e.test.ts +++ b/typescript/src/e2e.test.ts @@ -238,6 +238,21 @@ describe("CDP Client E2E Tests", () => { expect(account.name).toBe(randomName); }); + it("should look up an end user by email", async () => { + const randomEmail = `test-${Date.now()}@example.com`; + + const created = await cdp.endUser.createEndUser({ + authenticationMethods: [{ type: "email", email: randomEmail }], + }); + + const results = await cdp.endUser.lookupEndUser({ email: randomEmail }); + + expect(results).toHaveLength(1); + expect(results[0].userId).toBe(created.userId); + + logger.log("Looked up end user:", safeStringify(results)); + }); + it("should create an end user with EVM smart account and Solana account", async () => { const randomEmail = `test-${Date.now()}@example.com`;