MCPcopy Index your code
hub / github.com/commandoperator/cmdop-sdk / list

Method list

node/src/resources/keys.ts:16–25  ·  view source on GitHub ↗
(opts: ListPageOptions & { fleetId?: string } = {})

Source from the content-addressed store, hash-verified

14
15export class KeysResource extends BaseResource {
16 async list(opts: ListPageOptions & { fleetId?: string } = {}): Promise<ApiKeyList> {
17 const fid = this.fleet(opts.fleetId);
18 const env = await this.unary(
19 this.req({
20 case: "listKeysReq",
21 value: { fleetId: fid, page: this.offsetPage(opts.page, opts.perPage) },
22 }),
23 );
24 return env.payload.value as ApiKeyList;
25 }
26
27 iter(opts: KeysListOptions = {}): AsyncGenerator<ApiKeySummary> {
28 return this.paginateOffset((page) =>

Callers 3

iterMethod · 0.95
pagesMethod · 0.95
skills.test.tsFile · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected