@ariestools/cli 0.1.19 → 0.1.22

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.
@@ -98,16 +98,19 @@ export interface TokenRequest {
98
98
  ttlSeconds?: number
99
99
  }
100
100
 
101
- export interface StoredCredentials {
102
- authToken: string
103
- baseUrl: string
104
- userId?: string
101
+ export interface WalletJwtCredentials {
102
+ controlAudience?: string
103
+ offset?: string
104
+ ttlSeconds?: number
105
105
  }
106
106
 
107
- export interface WalletJwtCredentials {
107
+ export interface StoredCredentials {
108
+ authToken?: string
108
109
  baseUrl: string
109
- walletJwt: true
110
+ expiresAt?: string
111
+ refreshToken?: string
110
112
  userId?: string
113
+ walletJwt?: WalletJwtCredentials
111
114
  }
112
115
 
113
116
  export interface CreateDatalakeClientOptions {
@@ -155,6 +158,39 @@ export interface DatalakeUsageReport {
155
158
  }
156
159
  }
157
160
 
161
+ export type DatalakeDevServerStatus =
162
+ | 'healthy'
163
+ | 'degraded'
164
+ | 'unresponsive'
165
+ | 'stale'
166
+ | 'stopped'
167
+
168
+ export type DatalakeDevServerExitCode = 0 | 2 | 3
169
+
170
+ export interface DatalakeDevServerEndpointReport {
171
+ healthy: boolean
172
+ url: string
173
+ }
174
+
175
+ export interface DatalakeDevServerReport {
176
+ schemaVersion: 1
177
+ status: DatalakeDevServerStatus
178
+ exitCode: DatalakeDevServerExitCode
179
+ process: {
180
+ running: boolean
181
+ pid: number | null
182
+ startedAt: string | null
183
+ }
184
+ endpoints: {
185
+ control: DatalakeDevServerEndpointReport | null
186
+ plane: DatalakeDevServerEndpointReport | null
187
+ }
188
+ }
189
+
190
+ export interface InspectDatalakeDevServerOptions {
191
+ timeoutMs?: number
192
+ }
193
+
158
194
  export interface PayloadsClient {
159
195
  clear(): Promise<{ removed: number }>
160
196
  delete(hash: string): Promise<void>
@@ -181,6 +217,9 @@ export interface DatalakeClient {
181
217
  }
182
218
 
183
219
  export declare function createDatalakeClient(options?: CreateDatalakeClientOptions): DatalakeClient
220
+ export declare function inspectDatalakeDevServer(
221
+ options?: InspectDatalakeDevServerOptions,
222
+ ): Promise<DatalakeDevServerReport>
184
223
  export declare class LocalDatalakeClient implements DatalakeClient {
185
224
  create(request: CreateDatalakeRequest): Promise<DatalakeDescriptor>
186
225
  describe(idOrName: string): Promise<DatalakeDescriptor>
@@ -216,10 +255,10 @@ export declare class RestPayloadsClient implements PayloadsClient {
216
255
  usage(): Promise<DatalakeUsageReport>
217
256
  }
218
257
 
219
- export declare function loadCredentials(): StoredCredentials | WalletJwtCredentials | undefined
220
- export declare function saveCredentials(credentials: StoredCredentials | WalletJwtCredentials): void
258
+ export declare function loadCredentials(): StoredCredentials | undefined
259
+ export declare function saveCredentials(credentials: StoredCredentials): void
221
260
  export declare function clearCredentials(): void
222
261
  export declare function getCredentialsLocation(): string
223
262
  export declare function getDefaultDatalake(): string | undefined
224
- export declare function setDefaultDatalake(id: string): void
263
+ export declare function setDefaultDatalake(name: string, id?: string): void
225
264
  export declare function clearDefaultDatalake(): void