MCPcopy Create free account
hub / github.com/langgenius/dify / constructor

Method constructor

cli/src/api/workspaces.ts:9–14  ·  view source on GitHub ↗
(http: HttpClient)

Source from the content-addressed store, hash-verified

7 private readonly orpc: OpenApiClient
8
9 constructor(http: HttpClient) {
10 // oRPC client over the same transport (UA+bearer / retry / timeout / error-map) — SPEC §4.4:
11 // one transport, a contract facade. Both methods are standard unary JSON, so both go through
12 // the generated contract.
13 this.orpc = createOpenApiClient(http)
14 }
15
16 async list(): Promise<WorkspaceListResponse> {
17 return this.orpc.workspaces.get()

Callers

nothing calls this directly

Calls 1

createOpenApiClientFunction · 0.90

Tested by

no test coverage detected