diff --git a/packages/http/src/__generated__/services/coordinator/public/v1/public_api.fetcher.ts b/packages/http/src/__generated__/services/coordinator/public/v1/public_api.fetcher.ts index 11032ec5c..0b47fdf3b 100644 --- a/packages/http/src/__generated__/services/coordinator/public/v1/public_api.fetcher.ts +++ b/packages/http/src/__generated__/services/coordinator/public/v1/public_api.fetcher.ts @@ -102,6 +102,43 @@ export const postGetPolicy = (input: TPostGetPolicyInput) => body: input.body, }); +/** + * `POST /public/v1/query/get_private_key` + */ +type TPostGetPrivateKeyBody = + operations["PublicApiService_GetPrivateKey"]["parameters"]["body"]["body"]; + +/** + * `POST /public/v1/query/get_private_key` + */ +export type TPostGetPrivateKeyResponse = + operations["PublicApiService_GetPrivateKey"]["responses"]["200"]["schema"]; + +/** + * `POST /public/v1/query/get_private_key` + */ +export type TPostGetPrivateKeyInput = { body: TPostGetPrivateKeyBody }; + +/** + * Get Private Key + * + * Get details about a Private Key + * + * `POST /public/v1/query/get_private_key` + */ +export const postGetPrivateKey = (input: TPostGetPrivateKeyInput) => + request< + TPostGetPrivateKeyResponse, + TPostGetPrivateKeyBody, + never, + never, + never + >({ + uri: "/public/v1/query/get_private_key", + method: "POST", + body: input.body, + }); + /** * `POST /public/v1/query/get_user` */ @@ -710,40 +747,3 @@ export const postSignTransaction = (input: TPostSignTransactionInput) => method: "POST", body: input.body, }); - -/** - * `POST /tkhq/public/v1/query/get_private_key` - */ -type TPostGetPrivateKeyBody = - operations["PublicApiService_GetPrivateKey"]["parameters"]["body"]["body"]; - -/** - * `POST /tkhq/public/v1/query/get_private_key` - */ -export type TPostGetPrivateKeyResponse = - operations["PublicApiService_GetPrivateKey"]["responses"]["200"]["schema"]; - -/** - * `POST /tkhq/public/v1/query/get_private_key` - */ -export type TPostGetPrivateKeyInput = { body: TPostGetPrivateKeyBody }; - -/** - * Get Private Key - * - * Get details about a Private Key - * - * `POST /tkhq/public/v1/query/get_private_key` - */ -export const postGetPrivateKey = (input: TPostGetPrivateKeyInput) => - request< - TPostGetPrivateKeyResponse, - TPostGetPrivateKeyBody, - never, - never, - never - >({ - uri: "/tkhq/public/v1/query/get_private_key", - method: "POST", - body: input.body, - }); diff --git a/packages/http/src/__generated__/services/coordinator/public/v1/public_api.swagger.json b/packages/http/src/__generated__/services/coordinator/public/v1/public_api.swagger.json index b80e6a16f..6eb60b300 100644 --- a/packages/http/src/__generated__/services/coordinator/public/v1/public_api.swagger.json +++ b/packages/http/src/__generated__/services/coordinator/public/v1/public_api.swagger.json @@ -178,6 +178,59 @@ } } }, + "/public/v1/query/get_private_key": { + "post": { + "summary": "Get Private Key", + "description": "Get details about a Private Key", + "operationId": "PublicApiService_GetPrivateKey", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/v1GetPrivateKeyResponse" + } + }, + "403": { + "description": "Returned when the user does not have permission to access the resource.", + "schema": {} + }, + "404": { + "description": "Returned when the resource does not exist.", + "schema": { + "type": "string", + "format": "string" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/rpcStatus" + } + } + }, + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1GetPrivateKeyRequest" + } + } + ], + "tags": ["Private Keys"], + "x-readme": { + "code-samples": [ + { + "code": "turnkey request --host coordinator-beta.turnkey.io --path /public/v1/query/get_private_key --body '{\n\t\"organizationId\": \"'\"$ORGANIZATION_ID\"'\",\n\t\"privateKeyId\": \"'\"$PRIVATE_KEY_ID\"'\"\n}'", + "install": "brew tap tkhq/tap \u0026\u0026 brew install turnkey", + "language": "curl", + "name": "Turnkey CLI" + } + ] + } + } + }, "/public/v1/query/get_user": { "post": { "summary": "Get User", @@ -1079,59 +1132,6 @@ ] } } - }, - "/tkhq/public/v1/query/get_private_key": { - "post": { - "summary": "Get Private Key", - "description": "Get details about a Private Key", - "operationId": "PublicApiService_GetPrivateKey", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/v1GetPrivateKeyResponse" - } - }, - "403": { - "description": "Returned when the user does not have permission to access the resource.", - "schema": {} - }, - "404": { - "description": "Returned when the resource does not exist.", - "schema": { - "type": "string", - "format": "string" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/rpcStatus" - } - } - }, - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1GetPrivateKeyRequest" - } - } - ], - "tags": ["Private Keys"], - "x-readme": { - "code-samples": [ - { - "code": "turnkey request --host coordinator-beta.turnkey.io --path /public/v1/query/get_private_key --body '{\n\t\"organizationId\": \"'\"$ORGANIZATION_ID\"'\",\n\t\"privateKeyId\": \"'\"$PRIVATE_KEY_ID\"'\"\n}'", - "install": "brew tap tkhq/tap \u0026\u0026 brew install turnkey", - "language": "curl", - "name": "Turnkey CLI" - } - ] - } - } } }, "definitions": { diff --git a/packages/http/src/__generated__/services/coordinator/public/v1/public_api.types.ts b/packages/http/src/__generated__/services/coordinator/public/v1/public_api.types.ts index b248f401a..e98c59049 100644 --- a/packages/http/src/__generated__/services/coordinator/public/v1/public_api.types.ts +++ b/packages/http/src/__generated__/services/coordinator/public/v1/public_api.types.ts @@ -16,6 +16,10 @@ export type paths = { /** Get details about a Policy */ post: operations["PublicApiService_GetPolicy"]; }; + "/public/v1/query/get_private_key": { + /** Get details about a Private Key */ + post: operations["PublicApiService_GetPrivateKey"]; + }; "/public/v1/query/get_user": { /** Get details about a User */ post: operations["PublicApiService_GetUser"]; @@ -84,10 +88,6 @@ export type paths = { /** Sign a transaction with a Private Key */ post: operations["PublicApiService_SignTransaction"]; }; - "/tkhq/public/v1/query/get_private_key": { - /** Get details about a Private Key */ - post: operations["PublicApiService_GetPrivateKey"]; - }; }; export type definitions = { @@ -1401,6 +1401,32 @@ export type operations = { }; }; }; + /** Get details about a Private Key */ + PublicApiService_GetPrivateKey: { + parameters: { + body: { + body: definitions["v1GetPrivateKeyRequest"]; + }; + }; + responses: { + /** A successful response. */ + 200: { + schema: definitions["v1GetPrivateKeyResponse"]; + }; + /** Returned when the user does not have permission to access the resource. */ + 403: { + schema: unknown; + }; + /** Returned when the resource does not exist. */ + 404: { + schema: string; + }; + /** An unexpected error response. */ + default: { + schema: definitions["rpcStatus"]; + }; + }; + }; /** Get details about a User */ PublicApiService_GetUser: { parameters: { @@ -1843,32 +1869,6 @@ export type operations = { }; }; }; - /** Get details about a Private Key */ - PublicApiService_GetPrivateKey: { - parameters: { - body: { - body: definitions["v1GetPrivateKeyRequest"]; - }; - }; - responses: { - /** A successful response. */ - 200: { - schema: definitions["v1GetPrivateKeyResponse"]; - }; - /** Returned when the user does not have permission to access the resource. */ - 403: { - schema: unknown; - }; - /** Returned when the resource does not exist. */ - 404: { - schema: string; - }; - /** An unexpected error response. */ - default: { - schema: definitions["rpcStatus"]; - }; - }; - }; }; export type external = {};