UNPKG

cloudflare

Version:

The official TypeScript library for the Cloudflare API

38 lines • 1.75 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.R2 = exports.BaseR2 = void 0; const tslib_1 = require("../../internal/tslib.js"); // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. const resource_1 = require("../../core/resource.js"); const TemporaryCredentialsAPI = tslib_1.__importStar(require("./temporary-credentials.js")); const temporary_credentials_1 = require("./temporary-credentials.js"); const BucketsAPI = tslib_1.__importStar(require("./buckets/buckets.js")); const buckets_1 = require("./buckets/buckets.js"); const SuperSlurperAPI = tslib_1.__importStar(require("./super-slurper/super-slurper.js")); const super_slurper_1 = require("./super-slurper/super-slurper.js"); var BaseR2 = /* @__PURE__ */ (() => { class BaseR2 extends resource_1.APIResource { } BaseR2._key = Object.freeze(['r2']); return BaseR2; })(); exports.BaseR2 = BaseR2; var R2 = /* @__PURE__ */ (() => { class R2 extends BaseR2 { constructor() { super(...arguments); this.buckets = new BucketsAPI.Buckets(this._client); this.temporaryCredentials = new TemporaryCredentialsAPI.TemporaryCredentials(this._client); this.superSlurper = new SuperSlurperAPI.SuperSlurper(this._client); } } R2.Buckets = buckets_1.Buckets; R2.BaseBuckets = buckets_1.BaseBuckets; R2.TemporaryCredentials = temporary_credentials_1.TemporaryCredentials; R2.BaseTemporaryCredentials = temporary_credentials_1.BaseTemporaryCredentials; R2.SuperSlurper = super_slurper_1.SuperSlurper; R2.BaseSuperSlurper = super_slurper_1.BaseSuperSlurper; return R2; })(); exports.R2 = R2; //# sourceMappingURL=r2.js.map