@lark-codem/codem-cli 0.1.282-dev.100104692058.0.g531ddd8 → 0.1.282-dev.100104694445.0.g18c5dac

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,19 @@
1
+ export interface UserAccessTokenIdentity {
2
+ readonly userId: string
3
+ readonly tenantId: string
4
+ readonly serverOrigin: 'https://codem.feishu.cn' | 'https://codem.feishu-boe.cn'
5
+ readonly revision: string
6
+ }
7
+ export interface UserAccessTokenProvider {
8
+ getValidUserAccessToken(): Promise<{ readonly userAccessToken: string; readonly expiresAt: string }>
9
+ dispose(): void
10
+ }
11
+ export class CodeMUserAccessTokenError extends Error {
12
+ readonly code: string
13
+ }
14
+ export function createUserAccessTokenProvider(options: {
15
+ readonly home: string
16
+ readonly identity: UserAccessTokenIdentity
17
+ readonly ttEnv: string | null
18
+ readonly fetchImpl?: typeof fetch
19
+ }): UserAccessTokenProvider