cloudflare
Version:
The official TypeScript library for the Cloudflare API
74 lines (68 loc) • 2.64 kB
text/typescript
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
import { APIResource } from '../../../core/resource';
import * as ApplicationsAPI from './applications';
import {
ApplicationCreateParams,
ApplicationCreateResponse,
ApplicationDeleteParams,
ApplicationDeleteResponse,
ApplicationGetParams,
ApplicationGetResponse,
ApplicationListParams,
ApplicationListResponse,
ApplicationListResponsesSinglePage,
ApplicationUpdateParams,
ApplicationUpdateResponse,
Applications,
BaseApplications,
} from './applications';
import * as CategoriesAPI from './categories';
import {
BaseCategories,
Categories,
CategoryGetParams,
CategoryGetResponse,
CategoryListParams,
CategoryListResponse,
CategoryListResponsesSinglePage,
} from './categories';
export class BaseResourceLibrary extends APIResource {
static override readonly _key: readonly ['zeroTrust', 'resourceLibrary'] = Object.freeze([
'zeroTrust',
'resourceLibrary',
] as const);
}
export class ResourceLibrary extends BaseResourceLibrary {
applications: ApplicationsAPI.Applications = new ApplicationsAPI.Applications(this._client);
categories: CategoriesAPI.Categories = new CategoriesAPI.Categories(this._client);
}
ResourceLibrary.Applications = Applications;
ResourceLibrary.BaseApplications = BaseApplications;
ResourceLibrary.Categories = Categories;
ResourceLibrary.BaseCategories = BaseCategories;
export declare namespace ResourceLibrary {
export {
Applications as Applications,
BaseApplications as BaseApplications,
type ApplicationCreateResponse as ApplicationCreateResponse,
type ApplicationUpdateResponse as ApplicationUpdateResponse,
type ApplicationListResponse as ApplicationListResponse,
type ApplicationDeleteResponse as ApplicationDeleteResponse,
type ApplicationGetResponse as ApplicationGetResponse,
type ApplicationListResponsesSinglePage as ApplicationListResponsesSinglePage,
type ApplicationCreateParams as ApplicationCreateParams,
type ApplicationUpdateParams as ApplicationUpdateParams,
type ApplicationListParams as ApplicationListParams,
type ApplicationDeleteParams as ApplicationDeleteParams,
type ApplicationGetParams as ApplicationGetParams,
};
export {
Categories as Categories,
BaseCategories as BaseCategories,
type CategoryListResponse as CategoryListResponse,
type CategoryGetResponse as CategoryGetResponse,
type CategoryListResponsesSinglePage as CategoryListResponsesSinglePage,
type CategoryListParams as CategoryListParams,
type CategoryGetParams as CategoryGetParams,
};
}