@scaleway/sdk-client
Version:
Scaleway SDK Client
59 lines (58 loc) • 2.23 kB
JavaScript
import { enableConsoleLogger, setLogger } from "./internal/logger/index.js";
import { isJSONObject } from "./helpers/json.js";
import { resolveOneOf, unmarshalArrayOfObject, unmarshalDate, unmarshalMapOfObject, urlParams, validatePathParam } from "./helpers/marshalling.js";
import { createExponentialBackoffStrategy, tryAtIntervals, waitForResource } from "./internal/async/interval-retrier.js";
import { addAsyncHeaderInterceptor } from "./internal/interceptors/helpers.js";
import { API } from "./scw/api.js";
import { authenticateWithSessionToken } from "./scw/auth.js";
import { marshalBlobToScwFile, marshalDecimal, marshalMoney, marshalScwFile, marshalTimeSeries, unmarshalAnyRes, unmarshalDecimal, unmarshalMoney, unmarshalScwFile, unmarshalServiceInfo, unmarshalTimeSeries, unmarshalTimeSeriesPoint } from "./scw/custom-marshalling.js";
import { enrichForPagination } from "./scw/fetch/resource-paginator.js";
import { createAdvancedClient, createClient } from "./scw/client.js";
import { withAdditionalInterceptors, withDefaultPageSize, withHTTPClient, withProfile, withUserAgent, withUserAgentSuffix } from "./scw/client-ini-factory.js";
import { AUTH_HEADER_KEY, SESSION_HEADER_KEY } from "./scw/constants.js";
import { Decimal } from "./scw/custom-types.js";
import * as index from "./scw/errors/standard/index.js";
import { toApiLocality } from "./scw/locality.js";
export {
API,
AUTH_HEADER_KEY,
Decimal,
index as Errors,
SESSION_HEADER_KEY,
addAsyncHeaderInterceptor,
authenticateWithSessionToken,
createAdvancedClient,
createClient,
createExponentialBackoffStrategy,
enableConsoleLogger,
enrichForPagination,
isJSONObject,
marshalBlobToScwFile,
marshalDecimal,
marshalMoney,
marshalScwFile,
marshalTimeSeries,
resolveOneOf,
setLogger,
toApiLocality,
tryAtIntervals,
unmarshalAnyRes,
unmarshalArrayOfObject,
unmarshalDate,
unmarshalDecimal,
unmarshalMapOfObject,
unmarshalMoney,
unmarshalScwFile,
unmarshalServiceInfo,
unmarshalTimeSeries,
unmarshalTimeSeriesPoint,
urlParams,
validatePathParam,
waitForResource,
withAdditionalInterceptors,
withDefaultPageSize,
withHTTPClient,
withProfile,
withUserAgent,
withUserAgentSuffix
};