UNPKG

altair-static

Version:

Static package for altair graphql client

7 lines (4 loc) 1.96 kB
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="3466d750-8d31-5916-82ca-14942fa2d8e6")}catch(e){}}(); import{a as e,b as a,g as t,k as s,m as i,n}from"./chunk-74A26AAT.js";import{j as r}from"./chunk-B7YGBANW.js";var c=t({access_token:e().meta({description:"The access token issued by the authorization server"}),token_type:e().meta({description:"The type of the token issued"}),state:e().meta({description:"The exact value of the state parameter passed by the client in the authorization request"}),expires_in:a().meta({description:"The lifetime in seconds of the access token"}).optional(),refresh_token:e().meta({description:"The refresh token issued by the authorization server"}).optional(),id_token:e().meta({description:"The ID token issued by the authorization server"}).optional(),scope:e().meta({description:"The scopes granted by the access token"}).optional()}),m=t({error:e().meta({description:"A single ASCII error code"}),state:e().meta({description:"The exact value of the state parameter passed by the client in the authorization request"}),error_description:e().meta({description:"Human-readable ASCII text providing additional information about the error"}).optional(),error_uri:e().meta({description:"A URI identifying a human-readable web page with information about the error"}).optional()});var b=i.extend({type:s("oauth2"),data:t({accessTokenResponse:c.meta({description:"OAuth2 access token response"})})}),p=class extends n{execute(o){return r(this,null,function*(){return o.data?.accessTokenResponse?{headers:{Authorization:`Bearer ${this.hydrate(o.data.accessTokenResponse.access_token)}`}}:{headers:{}}})}};export{b as a,p as b}; //# sourceMappingURL=chunk-Q5PBMANM.js.map //# debugId=3466d750-8d31-5916-82ca-14942fa2d8e6