@mintlify/http-client
Advanced tools
Comparing version 0.0.191 to 0.0.192
import type { ServerStaticProps } from '@mintlify/models'; | ||
import { BaseClient } from '../client/index.js'; | ||
import { LlmsTxtResponseType, LoginMetadataResponseType } from './types.js'; | ||
import { DecoratedNavigationResponseType, LlmsTxtResponseType, LoginMetadataResponseType } from './types.js'; | ||
export declare class LeavesClient extends BaseClient { | ||
@@ -12,2 +12,3 @@ readonly subdomain: string; | ||
getLoginMetadata(): Promise<LoginMetadataResponseType>; | ||
getNavigation(): Promise<DecoratedNavigationResponseType>; | ||
} | ||
@@ -14,0 +15,0 @@ export declare const getLeavesClient: (subdomain: string, host?: string, reqInit?: { |
@@ -28,2 +28,6 @@ import { BaseClient } from '../client/index.js'; | ||
} | ||
getNavigation() { | ||
const path = this.getPath('client', 'navigation', this.subdomain); | ||
return this.json(path); | ||
} | ||
} | ||
@@ -30,0 +34,0 @@ export const getLeavesClient = (subdomain, host = ENDPOINT, reqInit = { headers: HEADERS }) => new LeavesClient(subdomain, host, reqInit); |
@@ -1,2 +0,2 @@ | ||
import { CustomerPageType, DeploymentType, MintConfig } from '@mintlify/models'; | ||
import { CustomerPageType, DecoratedNavigation, DeploymentType, MintConfig } from '@mintlify/models'; | ||
export type PagePropsResponseType = CustomerPageType & DeploymentType & { | ||
@@ -26,2 +26,5 @@ redirect?: { | ||
}; | ||
export type DecoratedNavigationResponseType = { | ||
navigation: DecoratedNavigation; | ||
}; | ||
//# sourceMappingURL=types.d.ts.map |
{ | ||
"name": "@mintlify/http-client", | ||
"version": "0.0.191", | ||
"version": "0.0.192", | ||
"type": "module", | ||
@@ -43,3 +43,3 @@ "description": "The Mintlify http client package", | ||
"dependencies": { | ||
"@mintlify/models": "0.0.158" | ||
"@mintlify/models": "0.0.159" | ||
}, | ||
@@ -63,3 +63,3 @@ "devDependencies": { | ||
}, | ||
"gitHead": "7e6b4dcbb2a5b66dc6e2a6e974e7dcd3a8ff2920" | ||
"gitHead": "d352e2cd2255194c1f6fdd22394fb64cc6dc4aa3" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
84483
498
+ Added@mintlify/models@0.0.159(transitive)
- Removed@mintlify/models@0.0.158(transitive)
Updated@mintlify/models@0.0.159