/** * This file was auto-generated by openapi-typescript and ts-morph. * Do not make direct changes to the file. */ export interface paths { readonly "/customer/current.jwt": { readonly parameters: { readonly query?: never; readonly header: { /** @description The [MIME type](https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types) of the response body. */ readonly Accept: components["parameters"]["Accept"]; }; readonly path?: never; readonly cookie?: never; }; /** * Get Current Customer * @description Identify signed-in customers securely by requesting and decoding a BigCommerce-generated JWT. * * The response body will contain a JWT. * * > #### Note * > The Send a Test Request feature is not currently supported for this endpoint. */ readonly get: operations["getCurrentCustomer"]; }; } export type webhooks = Record; export interface components { schemas: never; responses: never; parameters: { /** @description The [MIME type](https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types) of the response body. */ readonly Accept: string; /** @description This is the client ID of an app-level API account you generate when you create an app in the Developer Portal. */ readonly AppClientId: string; }; requestBodies: never; headers: never; pathItems: never; } export type $defs = Record; export interface operations { readonly getCurrentCustomer: { readonly parameters: { readonly query: { /** @description This is the client ID of an app-level API account you generate when you create an app in the Developer Portal. */ readonly app_client_id: components["parameters"]["AppClientId"]; }; readonly header?: { /** @description The [MIME type](https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types) of the response body. */ readonly Accept?: components["parameters"]["Accept"]; }; readonly path?: never; readonly cookie?: never; }; readonly requestBody?: never; readonly responses: { /** @description A JWT to decode using the client secret that corresponds with the app client ID you sent as a query parameter. * * After you decode the JWT, the payload resembles the following: * * ```json * { * "customer": { * "id": 4927, * "email": "john.doe@gmail.com", * "group_id": "6", * }, * "iss": "bc/apps", * "sub": "abc123", * "iat": 1480831863, * "exp": 1480832763, * "version": 1, * "aud": "6sv16tfx3j5gsopm42ss5dd67g2srvq", * "application_id": "6sv16tasdgr2b5hs5dd67g2srvq", * "store_hash": "abc123", * "operation": "current_customer" * } * ``` */ readonly 200: { headers: { readonly [name: string]: unknown; }; content: { readonly "application/json": string; }; }; }; }; }