MCPcopy Create free account
hub / github.com/chieapp/chie / createAPIForCredential

Method createAPIForCredential

src/controller/api-manager.ts:81–85  ·  view source on GitHub ↗
(credential: APICredential)

Source from the content-addressed store, hash-verified

79 }
80
81 createAPIForCredential(credential: APICredential) {
82 if (!(credential.type in this.#apis))
83 throw new Error(`Unable to find API implementation for credential ${credential.type}.`);
84 return new (this.#apis[credential.type].apiClass)(credential);
85 }
86
87 addCredential(credential: APICredential) {
88 if (credential.id)

Callers 7

chat-view-test.tsFile · 0.80
enterConversationFunction · 0.80
cloneFunction · 0.80
deserializeMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected