/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import { ClientSDK, RequestOptions } from "../lib/sdks.js"; import * as operations from "../models/operations/index.js"; import { APIPromise } from "../types/async.js"; import { unwrapAsync } from "../types/fp.js"; import { PageIterator, unwrapResultIterator } from "../types/operations.js"; let issueTrackingCollectionUsersList$module: | Promise | undefined; const issueTrackingCollectionUsersList = (( ...args: Parameters< typeof import("../funcs/issueTrackingCollectionUsersList.js").issueTrackingCollectionUsersList > ) => new APIPromise( (issueTrackingCollectionUsersList$module ??= import( "../funcs/issueTrackingCollectionUsersList.js" ).catch((error: unknown) => { issueTrackingCollectionUsersList$module = undefined; throw error; })).then((module) => module.issueTrackingCollectionUsersList(...args).$inspect() ), )) as typeof import("../funcs/issueTrackingCollectionUsersList.js").issueTrackingCollectionUsersList; let issueTrackingCollectionUsersGet$module: | Promise | undefined; const issueTrackingCollectionUsersGet = (( ...args: Parameters< typeof import("../funcs/issueTrackingCollectionUsersGet.js").issueTrackingCollectionUsersGet > ) => new APIPromise( (issueTrackingCollectionUsersGet$module ??= import( "../funcs/issueTrackingCollectionUsersGet.js" ).catch((error: unknown) => { issueTrackingCollectionUsersGet$module = undefined; throw error; })).then((module) => module.issueTrackingCollectionUsersGet(...args).$inspect() ), )) as typeof import("../funcs/issueTrackingCollectionUsersGet.js").issueTrackingCollectionUsersGet; export class CollectionUsers extends ClientSDK { /** * List Users * * @remarks * List Users */ async list( request: operations.IssueTrackingCollectionUsersAllRequest, options?: RequestOptions, ): Promise< PageIterator< operations.IssueTrackingCollectionUsersAllResponse, { cursor: string } > > { return unwrapResultIterator(issueTrackingCollectionUsersList( this, request, options, )); } /** * Get user * * @remarks * Get user */ async get( request: operations.IssueTrackingCollectionUsersOneRequest, options?: RequestOptions, ): Promise { return unwrapAsync(issueTrackingCollectionUsersGet( this, request, options, )); } }