@globus/sdk 6.1.0 → 6.2.0-next.9.9c8bf24
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/core/authorization/index.js +1 -1
- package/dist/cjs/core/authorization/index.js.map +1 -1
- package/dist/cjs/core/info/index.js +1 -1
- package/dist/cjs/core/info/index.js.map +1 -1
- package/dist/cjs/index.js +246 -120
- package/dist/cjs/index.js.map +4 -4
- package/dist/cjs/services/globus-connect-server/client.js +1 -1
- package/dist/cjs/services/globus-connect-server/client.js.map +1 -1
- package/dist/esm/core/info/version.d.ts +1 -1
- package/dist/esm/core/info/version.js +1 -1
- package/dist/esm/open-api/types/compute.d.ts +356 -88
- package/dist/esm/open-api/types/compute.d.ts.map +1 -1
- package/dist/esm/open-api/types/flows.d.ts +210 -262
- package/dist/esm/open-api/types/flows.d.ts.map +1 -1
- package/dist/esm/open-api/types/gcs/v5.4.d.ts +2536 -2276
- package/dist/esm/open-api/types/gcs/v5.4.d.ts.map +1 -1
- package/dist/esm/open-api/types/search.d.ts +131 -65
- package/dist/esm/open-api/types/search.d.ts.map +1 -1
- package/dist/esm/open-api/types/timers.d.ts +12 -6
- package/dist/esm/open-api/types/timers.d.ts.map +1 -1
- package/dist/esm/open-api/types/transfer.d.ts +798 -0
- package/dist/esm/open-api/types/transfer.d.ts.map +1 -0
- package/dist/esm/open-api/types/transfer.js +2 -0
- package/dist/esm/open-api/types/transfer.js.map +1 -0
- package/dist/esm/package.json +1 -1
- package/dist/esm/services/compute/index.d.ts +1 -1
- package/dist/esm/services/compute/index.js +1 -1
- package/dist/esm/services/globus-connect-server/client.d.ts +4 -4
- package/dist/esm/services/globus-connect-server/client.d.ts.map +1 -1
- package/dist/esm/services/search/service/query.d.ts +2 -5
- package/dist/esm/services/search/service/query.d.ts.map +1 -1
- package/dist/esm/services/search/service/query.js.map +1 -1
- package/dist/esm/services/transfer/index.d.ts +2 -0
- package/dist/esm/services/transfer/index.d.ts.map +1 -1
- package/dist/esm/services/transfer/index.js +2 -0
- package/dist/esm/services/transfer/index.js.map +1 -1
- package/dist/esm/services/transfer/service/endpoint-search.d.ts +5 -3
- package/dist/esm/services/transfer/service/endpoint-search.d.ts.map +1 -1
- package/dist/esm/services/transfer/service/endpoint-search.js.map +1 -1
- package/dist/esm/services/transfer/service/stream-access-point.d.ts +23 -0
- package/dist/esm/services/transfer/service/stream-access-point.d.ts.map +1 -0
- package/dist/esm/services/transfer/service/stream-access-point.js +26 -0
- package/dist/esm/services/transfer/service/stream-access-point.js.map +1 -0
- package/dist/esm/services/transfer/service/tunnel.d.ts +75 -0
- package/dist/esm/services/transfer/service/tunnel.d.ts.map +1 -0
- package/dist/esm/services/transfer/service/tunnel.js +80 -0
- package/dist/esm/services/transfer/service/tunnel.js.map +1 -0
- package/dist/umd/globus.production.js +2 -2
- package/dist/umd/globus.production.js.map +4 -4
- package/package.json +2 -2
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../src/services/globus-connect-server/client.ts", "../../../../src/services/shared.ts", "../../../../src/core/info/private.ts", "../../../../src/core/info/version.ts", "../../../../src/core/info/index.ts", "../../../../src/services/transfer/config.ts", "../../../../src/services/flows/config.ts", "../../../../src/services/timers/config.ts", "../../../../src/services/groups/config.ts", "../../../../src/services/search/config.ts", "../../../../src/services/compute/config.ts", "../../../../src/services/auth/config.ts", "../../../../src/core/errors.ts", "../../../../src/core/logger.ts", "../../../../src/core/global.ts", "../../../../src/core/url.ts", "../../../../src/services/auth/index.ts", "../../../../src/services/globus-connect-server/service/collections.ts", "../../../../src/services/globus-connect-server/service/endpoint.ts", "../../../../src/services/globus-connect-server/service/https.ts", "../../../../src/services/globus-connect-server/service/nodes.ts", "../../../../src/services/globus-connect-server/service/roles.ts", "../../../../src/services/globus-connect-server/service/storage-gateways.ts", "../../../../src/services/globus-connect-server/service/user-credentials.ts", "../../../../src/services/globus-connect-server/service/versioning.ts"],
|
|
4
|
-
"sourcesContent": ["/**\n * @module Client - Globus Connect Server Manager API\n * @category Client\n * @description A wrapper around the Globus Connect Server Manager API that binds various Globus Connect Server resources\n * to a single configuration object (GCSConfiguration).\n *\n * @example\n * import { getClient } from \"@globus/sdk/lib/services/globus-connect-server/client\";\n *\n * const client = getClient({\n * host: \"https://fa5e.bd7c.data.globus.org\",\n * endpoint_id: \"ac9cb54b-fc48-4824-b801-1388baf0a909\",\n * });\n *\n * const result = await client.endpoint.get();\n */\nimport { type GCSConfiguration } from './index.js';\n\nimport * as collections from './service/collections.js';\nimport * as endpoint from './service/endpoint.js';\nimport * as https from './service/https.js';\nimport * as nodes from './service/nodes.js';\nimport * as roles from './service/roles.js';\nimport * as storageGateways from './service/storage-gateways.js';\nimport * as userCredentials from './service/user-credentials.js';\nimport * as versioning from './service/versioning.js';\n\ntype TailOfTuple<T extends unknown[], Head extends unknown[]> = T extends [...Head, ...infer Tail]\n ? Tail\n : never;\n\n/**\n * Bind arguments to a method (partial application).\n * @param method The method arguments will be bound to.\n * @param bound The arguments to bind to the method.\n */\nfunction bind<M extends (...args: any[]) => ReturnType<M>, Args extends any[]>(\n method: M,\n ...bound: Args\n) {\n return function (...args: TailOfTuple<Parameters<M>, Args>) {\n return method(...bound, ...args);\n };\n}\n\n/**\n * Create a Globus Connect Server Manager client. This client is used to\n * create a SDK context that is bound to a specific Globus Connect Server.\n */\nexport function getClient(configuration: GCSConfiguration) {\n return {\n configuration,\n endpoint: {\n get: bind(endpoint.get, configuration),\n update: bind(endpoint.update, configuration),\n patch: bind(endpoint.patch, configuration),\n updateSubscriptionId: bind(endpoint.updateSubscriptionId, configuration),\n updateOwner: bind(endpoint.updateOwner, configuration),\n updateOwnerString: bind(endpoint.updateOwnerString, configuration),\n resetOwnerString: bind(endpoint.resetOwnerString, configuration),\n },\n versioning: {\n info: bind(versioning.info, configuration),\n },\n collections: {\n get: bind(collections.get, configuration),\n getAll: bind(collections.getAll, configuration),\n create: bind(collections.create, configuration),\n remove: bind(collections.remove, configuration),\n update: bind(collections.update, configuration),\n patch: bind(collections.patch, configuration),\n updateOwnerString: bind(collections.updateOwnerString, configuration),\n resetOwnerString: bind(collections.resetOwnerString, configuration),\n },\n nodes: {\n get: bind(nodes.get, configuration),\n getAll: bind(nodes.getAll, configuration),\n create: bind(nodes.create, configuration),\n remove: bind(nodes.remove, configuration),\n update: bind(nodes.update, configuration),\n patch: bind(nodes.patch, configuration),\n },\n userCredentials: {\n get: bind(userCredentials.get, configuration),\n getAll: bind(userCredentials.getAll, configuration),\n create: bind(userCredentials.create, configuration),\n remove: bind(userCredentials.remove, configuration),\n update: bind(userCredentials.update, configuration),\n patch: bind(userCredentials.patch, configuration),\n },\n storageGateways: {\n get: bind(storageGateways.get, configuration),\n getAll: bind(storageGateways.getAll, configuration),\n create: bind(storageGateways.create, configuration),\n remove: bind(storageGateways.remove, configuration),\n update: bind(storageGateways.update, configuration),\n patch: bind(storageGateways.patch, configuration),\n },\n roles: {\n get: bind(roles.get, configuration),\n getAll: bind(roles.getAll, configuration),\n create: bind(roles.create, configuration),\n remove: bind(roles.remove, configuration),\n },\n https: {\n get: bind(https.get, configuration),\n remove: bind(https.remove, configuration),\n update: bind(https.update, configuration),\n },\n };\n}\n", "import _fetch from 'cross-fetch';\nimport { getClientInfoRequestHeaders } from '../core/info/index.js';\nimport { build } from '../core/url.js';\nimport { getSDKOptions, Service } from '../core/global.js';\nimport { isAuthorizationRequirementsError } from '../core/errors.js';\nimport { RESOURCE_SERVERS } from './auth/config.js';\nimport { isRefreshToken } from './auth/index.js';\nimport type { ServiceMethodOptions, SDKOptions } from './types.js';\nimport type {\n GCSConfiguration,\n UnauthenticatedGCSConfiguration,\n} from '../services/globus-connect-server/index.js';\n\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport enum HTTP_METHODS {\n POST = 'POST',\n GET = 'GET',\n DELETE = 'DELETE',\n PUT = 'PUT',\n PATCH = 'PATCH',\n}\n\n/**\n * Our domain-specific language for describing service requests.\n * @private\n */\ntype ServiceRequestDSL = {\n /**\n * The service that the request will be made to.\n */\n service: Service | GCSConfiguration | UnauthenticatedGCSConfiguration;\n /**\n * A specific scope that is required for the request. If a scope is provided,\n * the `serviceRequest` function will attempt to get a token for the request\n * based on the the `service` => `resource_server` mapping.\n * @deprecated Define using `resource_server` instead.\n */\n scope?: string;\n /**\n * The resource server that the request will be made to. This can be provided\n * instead of (or addition to) the `scope` property. If this is provided, the\n * `serviceRequest` function will attempt to get a token for the resource server\n * when a `manager` instance is provided in the SDK options.\n */\n resource_server?: string;\n /**\n * The path of the resource (appended to the service's host).\n */\n path: string;\n /**\n * The HTTP method to use for the request.\n */\n method?: HTTP_METHODS;\n /**\n * For some resources, it doesn't make sense for requests to be retried.\n * Setting this to `true` will prevent any retry logic from being applied.\n */\n preventRetry?: boolean;\n};\n\n/**\n * A helper function for making service requests that will handle the arguments\n * of `ServiceMethod` and `ServiceMethodDynamicSegments` functions in a uniform\n * way.\n *\n * @example\n * ```ts\n * export const get = function (flow_id, options?, sdkOptions?) {\n * return serviceRequest({\n * service: FLOWS.ID,\n * scope: SCOPES.VIEW_FLOWS,\n * path: `/flows/${flow_id}`,\n * }, options, sdkOptions);\n * } satisfies ServiceMethodDynamicSegments<string, Record<string, any>>;\n * ```\n *\n * @private\n * @param config The ServiceRequestDSL for the request.\n * @param options The options passed to the service method.\n * @param passedSdkOptions The SDK options passed to the service method.\n * @returns\n */\nexport async function serviceRequest(\n this: unknown,\n config: ServiceRequestDSL,\n options?: ServiceMethodOptions,\n passedSdkOptions?: SDKOptions,\n): Promise<Response> {\n /**\n * Get the SDK options, merging any passed options with the global options.\n */\n const sdkOptions = getSDKOptions(passedSdkOptions);\n const injectedFetchOptions = sdkOptions?.fetch?.options || {};\n\n const headers: Record<string, string> = {\n ...getClientInfoRequestHeaders(),\n ...options?.headers,\n /**\n * Key/value pairs found in the `fetch` options override those found in the\n * service method options.\n */\n ...injectedFetchOptions.headers,\n };\n\n /**\n * The `AuthorizationManager` instance provided with the call.\n */\n const manager = options?.manager || sdkOptions?.manager;\n\n let token;\n /**\n * If a `resource_server` was provided, and the SDK is configured with a `manager`\n * instance, we'll try to get a token for the resource server and use it.\n */\n if (config.resource_server && manager) {\n token = manager.tokens.getByResourceServer(config.resource_server);\n if (token) {\n headers['Authorization'] = `Bearer ${token.access_token}`;\n }\n }\n /**\n * If the `scope` property is provided, and the SDK is configured with a `manager`,\n * we'll try to map the service to a resource server. This is mostly to support\n * backwards compatibility of the `scope` property being used in the `ServiceRequestDSL`.\n *\n * @todo This condition will likely be removed in a future version in favor of using `resource_server` to\n * configure a service request.\n */\n if (\n config.scope &&\n manager &&\n /**\n * Only attempt to get a token if the `service` property is a string or has an `endpoint_id` property (GCSConfiguration).\n */\n (typeof config.service === 'string' || 'endpoint_id' in config.service)\n ) {\n const resourceServer =\n typeof config.service === 'string'\n ? RESOURCE_SERVERS[config.service]\n : // For `GCSConfiguration` objects, the `endpoint_id` is the resource server.\n config.service.endpoint_id;\n\n token = manager.tokens.getByResourceServer(resourceServer);\n if (token) {\n headers['Authorization'] = `Bearer ${token.access_token}`;\n }\n }\n\n /**\n * If a raw body was provided, use that. Otherwise, if a payload was provided, serialize it.\n */\n let body = options?.body;\n if (!body && options?.payload) {\n body = JSON.stringify(options.payload);\n }\n\n /**\n * If `Content-Type` header was not provided, and there is a body, we assume it is JSON.\n */\n if (!headers?.['Content-Type'] && body) {\n headers['Content-Type'] = 'application/json';\n }\n\n const url = build(\n config.service,\n config.path,\n {\n search: options?.query,\n },\n sdkOptions,\n );\n\n const init = {\n method: config.method,\n body,\n ...injectedFetchOptions,\n /**\n * Merge the headers from the options and SDK options.\n */\n headers,\n };\n\n /**\n * The request handler for the fetch call. This can be overridden by providing a\n * `__callable` property in the `fetch` options.\n */\n let handler = _fetch;\n /* eslint-disable no-underscore-dangle */\n if (injectedFetchOptions?.__callable) {\n handler = injectedFetchOptions.__callable.bind(this);\n /**\n * Remove the `__callable` property from the `fetch` options before passing the options along.\n */\n delete init.__callable;\n }\n /* eslint-enable no-underscore-dangle */\n\n /**\n * If the resource is configured to prevent retries, there is no `manager` instance,\n * or token, the request will be made as-is.\n */\n if (config.preventRetry || !manager || !token || !isRefreshToken(token)) {\n return handler(url, init);\n }\n\n /**\n * Automatic Retry Handling\n */\n\n const initialResponse = await handler(url, init);\n /**\n * If the response is \"ok\", we can return it as-is.\n */\n if (initialResponse.ok) {\n return initialResponse;\n }\n /**\n * Do a safe check to see if the response contains any authorization requirements.\n */\n let hasAuthorizationRequirements;\n try {\n hasAuthorizationRequirements = isAuthorizationRequirementsError(\n /**\n * It is important to clone the response before calling `json` avoid\n * `body used already for [...]` errors when the initial response is\n * returned.\n */\n await initialResponse.clone().json(),\n );\n } catch (_e) {\n hasAuthorizationRequirements = false;\n }\n /**\n * We only attempt to refresh the original token supplied with teh request, if the\n * response status is 401 and the response does not contain any authorization requirements.\n */\n const shouldAttemptTokenRefresh = initialResponse.status === 401 && !hasAuthorizationRequirements;\n if (shouldAttemptTokenRefresh) {\n const newToken = await manager.refreshToken(token);\n if (!newToken) {\n return initialResponse;\n }\n /**\n * Retry the request with the new token.\n */\n return handler(url, {\n ...init,\n headers: {\n ...init.headers,\n Authorization: `Bearer ${newToken.access_token}`,\n },\n });\n }\n /**\n * No retry was attempted, return the initial response.\n */\n return initialResponse;\n}\n", "import type { Info } from './index.js';\n\n/**\n * @private\n */\nexport const CLIENT_INFO_HEADER = `X-Globus-Client-Info`;\n\nlet ENABLED = true;\n/**\n * Disable the client information header from being included in requests (enabled by default).\n * @private\n */\nexport function disable() {\n ENABLED = false;\n}\n\n/**\n * Enables the client information header to be included in requests.\n * @private\n */\nexport function enable() {\n ENABLED = true;\n}\n\n/**\n * Whether or not the client information header should be sent with requests.\n * @private\n */\nexport function isEnabled() {\n return ENABLED;\n}\n\nconst INFOS_SEPERATOR = ';';\nconst INFO_ITEM_SEPARATOR = ',';\n\n/**\n * Exported for test purposes only.\n * @private\n */\nexport function toString(info: Info | Info[]) {\n const infos = Array.isArray(info) ? info : [info];\n return infos\n .map((i) =>\n Object.entries(i)\n .map(([key, value]) => `${key}=${value}`)\n .join(INFO_ITEM_SEPARATOR),\n )\n .join(INFOS_SEPERATOR);\n}\n", "// x-release-please-start-version\nexport const VERSION = '6.1.0';\n// x-release-please-end\n", "/**\n * @module Information\n * @description This module is mostly intended for internal use, but can be helpful\n * identifying information about the SDK package you are using at runtime.\n */\nimport { toString, isEnabled, CLIENT_INFO_HEADER } from './private.js';\nimport { VERSION as _VERSION } from './version.js';\n\nexport type Version = string;\n\n/**\n * The version of the `@globus/sdk` package that is in use.\n */\nexport const VERSION: Version = _VERSION;\n\nexport type Info = {\n product: string;\n version: Version;\n};\n\n/**\n * The client information identifier for this package.\n */\nexport const CLIENT_INFO: Info = {\n product: 'javascript-sdk',\n version: VERSION,\n};\n\nlet INFOS: Info[] = [CLIENT_INFO];\n\n/**\n * Add a client information identifier to the existing SDK information.\n */\nexport function addClientInfo(info: Info) {\n INFOS = INFOS.concat(info);\n}\n/**\n * Get the current client information as a string.\n */\nexport function getClientInfo(): string {\n return toString(INFOS);\n}\n\nexport function getClientInfoRequestHeaders(): Record<string, string> {\n if (!isEnabled()) {\n return {};\n }\n return {\n [CLIENT_INFO_HEADER]: getClientInfo(),\n };\n}\n", "import type { Environment } from '../../core/global.js';\n\nexport const ID = 'TRANSFER' as const;\n\nexport const SCOPES = {\n ALL: 'urn:globus:auth:scope:transfer.api.globus.org:all',\n};\n\nexport const HOSTS: Partial<Record<Environment, string>> = {\n sandbox: 'transfer.api.sandbox.globuscs.info',\n production: 'transfer.api.globusonline.org',\n staging: 'transfer.api.staging.globuscs.info',\n integration: 'transfer.api.integration.globuscs.info',\n test: 'transfer.api.test.globuscs.info',\n preview: 'transfer.api.preview.globus.org',\n};\n", "import type { Environment } from '../../core/global.js';\n\nexport const ID = 'FLOWS' as const;\nexport const HOSTS: Partial<Record<Environment, string>> = {\n sandbox: 'sandbox.flows.automate.globus.org',\n production: 'flows.globus.org',\n staging: 'staging.flows.automate.globus.org',\n integration: 'integration.flows.automate.globus.org',\n test: 'test.flows.automate.globus.org',\n preview: 'preview.flows.automate.globus.org',\n};\n\n/**\n * @see https://docs.globus.org/api/flows/overview/#scopes\n */\nexport const SCOPES = {\n MANAGE_FLOWS: 'https://auth.globus.org/scopes/eec9b274-0c81-4334-bdc2-54e90e689b9a/manage_flows',\n VIEW_FLOWS: 'https://auth.globus.org/scopes/eec9b274-0c81-4334-bdc2-54e90e689b9a/view_flows',\n RUN: 'https://auth.globus.org/scopes/eec9b274-0c81-4334-bdc2-54e90e689b9a/run',\n RUN_STATUS: 'https://auth.globus.org/scopes/eec9b274-0c81-4334-bdc2-54e90e689b9a/run_status',\n RUN_MANAGE: 'https://auth.globus.org/scopes/eec9b274-0c81-4334-bdc2-54e90e689b9a/run_manage',\n};\n", "import type { Environment } from '../../core/global.js';\n\nexport const ID = 'TIMERS' as const;\nexport const HOSTS: Partial<Record<Environment, string>> = {\n sandbox: 'sandbox.timer.automate.globus.org',\n production: 'timer.automate.globus.org',\n staging: 'staging.timer.automate.globus.org',\n integration: 'integration.timer.automate.globus.org',\n test: 'test.timer.automate.globus.org',\n preview: 'preview.timer.automate.globus.org',\n};\n", "import type { Environment } from '../../core/global.js';\n\nexport const ID = 'GROUPS' as const;\nexport const HOSTS: Partial<Record<Environment, string>> = {\n sandbox: 'groups.api.sandbox.globuscs.info',\n production: 'groups.api.globus.org',\n staging: 'groups.api.staging.globuscs.info',\n integration: 'groups.api.integration.globuscs.info',\n test: 'groups.api.test.globuscs.info',\n preview: 'groups.api.preview.globuscs.info',\n};\n\n/**\n * @see https://docs.globus.org/api/groups/#scopes\n */\nexport const SCOPES = {\n ALL: 'urn:globus:auth:scope:groups.api.globus.org:all',\n VIEW_MY: 'urn:globus:auth:scope:groups.api.globus.org:view_my_groups_and_membership',\n};\n", "import type { Environment } from '../../core/global.js';\n\nexport const ID = 'SEARCH' as const;\nexport const HOSTS: Partial<Record<Environment, string>> = {\n sandbox: 'search.api.sandbox.globuscs.info',\n production: 'search.api.globus.org',\n staging: 'search.api.staging.globuscs.info',\n integration: 'search.api.integration.globuscs.info',\n test: 'search.api.test.globuscs.info',\n preview: 'search.api.preview.globus.org',\n};\n\n/**\n * @see https://docs.globus.org/api/search/api_usage/#scopes\n */\nexport const SCOPES = {\n ALL: 'urn:globus:auth:scope:search.api.globus.org:all',\n INGEST: 'urn:globus:auth:scope:search.api.globus.org:ingest',\n SEARCH: 'urn:globus:auth:scope:search.api.globus.org:search',\n};\n", "import type { Environment } from '../../core/global.js';\n\nexport const ID = 'COMPUTE' as const;\nexport const HOSTS: Partial<Record<Environment, string>> = {\n sandbox: 'compute.api.sandbox.globuscs.info',\n production: 'compute.api.globus.org',\n staging: 'compute.api.staging.globuscs.info',\n integration: 'compute.api.integration.globuscs.info',\n test: 'compute.api.test.globuscs.info',\n preview: 'compute.api.preview.globus.org',\n};\n\nexport const SCOPES = {\n ALL: 'https://auth.globus.org/scopes/facd7ccc-c5f4-42aa-916b-a0e270e2c2a9/all',\n};\n", "import { ID as TRANSFER } from '../transfer/config.js';\nimport { ID as FLOWS } from '../flows/config.js';\nimport { ID as TIMERS } from '../timers/config.js';\nimport { ID as GROUPS } from '../groups/config.js';\nimport { ID as SEARCH } from '../search/config.js';\nimport { ID as COMPUTE } from '../compute/config.js';\n\nimport type { Environment } from '../../core/global.js';\n\nexport const ID = 'AUTH' as const;\nexport const HOSTS: Partial<Record<Environment, string>> = {\n integration: 'auth.integration.globuscs.info',\n sandbox: 'auth.sandbox.globuscs.info',\n production: 'auth.globus.org',\n test: 'auth.test.globuscs.info',\n staging: 'auth.staging.globuscs.info',\n preview: 'auth.preview.globus.org',\n};\n\nexport const SCOPES = {\n VIEW_IDENTITIES: 'urn:globus:auth:scope:auth.globus.org:view_identities',\n};\n\nexport const RESOURCE_SERVERS = {\n [ID]: 'auth.globus.org',\n [TRANSFER]: 'transfer.api.globus.org',\n [FLOWS]: 'flows.globus.org',\n [GROUPS]: 'groups.api.globus.org',\n [SEARCH]: 'search.api.globus.org',\n [TIMERS]: '524230d7-ea86-4a52-8312-86065a9e0417',\n [COMPUTE]: 'funcx_service',\n};\n", "/**\n * @module Errors\n * @example\n * import { errors } from \"globus/sdk\";\n * if (errors.isConsentRequiredError(...)) { ... }\n */\nimport type { AuthorizationQueryParameters } from '../services/auth/index.js';\nimport type { AuthorizationRequestParameters } from './authorization/pkce.js';\n\nexport class EnvironmentConfigurationError extends Error {\n override name = 'EnvironmentConfigurationError';\n\n constructor(variable: string, value: unknown) {\n super();\n // eslint-disable-next-line @typescript-eslint/restrict-template-expressions\n this.message = `Invalid configuration value provided for ${variable} (${value}).`;\n }\n}\n\nexport type WellFormedError = {\n code: string;\n message: string;\n};\n\n/**\n * Test an unknown argument to determine if it can be further parsed as a potentnial known error.\n */\nexport function isErrorWellFormed(test: unknown): test is WellFormedError {\n return typeof test === 'object' && test !== null && 'code' in test && 'message' in test;\n}\n\n/**\n * An error that indicates that the user must provide consent for additional scopes.\n * - This error typically encountered when interacting with Globus Transfer or Globus Connect Server.\n * - Many instances of `code: \"ConsentRequire\"` in the Globus platform are being migrated to `AuthorizationRequirementsError`.\n */\nexport type ConsentRequiredError = {\n code: 'ConsentRequired';\n required_scopes: string[];\n [key: string]: unknown;\n};\n\n/**\n * Whether or not the provide object is recognized as a `ConsentRequiredError`.\n * @see {@link ConsentRequiredError}\n */\nexport function isConsentRequiredError(test: unknown): test is ConsentRequiredError {\n return (\n isErrorWellFormed(test) &&\n test.code === 'ConsentRequired' &&\n 'required_scopes' in test &&\n Array.isArray(test.required_scopes)\n );\n}\n\n/**\n * An error that includes an `authorization_parameters` property, a.k.a \"G.A.R.E\".\n *\n * A well-known error shape is provided by services when additional authorization requirements must be met by the session.\n * This object can be converted to parameters accepted by Globus Auth using `sdk.errors.toAuthorizationQueryParams()`.\n */\nexport type AuthorizationRequirementsError = {\n authorization_parameters: {\n session_message?: string;\n session_required_identities?: string[];\n session_required_mfa?: boolean;\n session_required_single_domain?: string[];\n session_required_policies?: string[];\n prompt?: string;\n required_scopes?: string[];\n };\n /**\n * @todo At the moment, most Globus services do not guarentee a `code` property for this error type.\n * Once it becomes more common, this type (and the `isAuthorizationRequirementsError` function) should be updated.\n * @see https://globus-sdk-python.readthedocs.io/en/stable/experimental/auth_requirements_errors.html\n */\n // code: string;\n [key: string]: unknown;\n};\n/**\n * Keys that should not be included in the query string object (not recognized by Globus Auth),\n * but are found on the `AuthorizationRequirementsError` object.\n */\nconst NO_OP_KEYS: (keyof AuthorizationRequirementsError)[] = ['required_scopes'];\n/**\n * Convert an `AuthorizationRequirementsError` to a query string object accepted by Globus Auth.\n */\nexport function toAuthorizationQueryParams(\n error: AuthorizationRequirementsError,\n): AuthorizationQueryParameters & Partial<AuthorizationRequestParameters> {\n /**\n * Map properties from the `AuthorizationRequirementsError` to accepted query parameters.\n */\n const mapped = {\n /**\n * `required_scopes` isn't a query parameter accepted by Globus Auth, but\n * in most cases the `required_scopes` represented in the error are intended\n * to be included in the `scopes` (OAuth) parameter.\n * @see https://docs.globus.org/api/auth/sessions/#client-initiated-authns\n */\n scope: error.authorization_parameters.required_scopes?.join(' '),\n /**\n * We still include the entire `authorization_parameters` object in addition to the mapped values for parsing.\n */\n ...error.authorization_parameters,\n };\n\n return Object.entries(mapped).reduce((acc, [key, v]) => {\n /**\n * Remove keys that are not recognized by Globus Auth and empty values.\n */\n if (NO_OP_KEYS.includes(key) || v === undefined || v === null) {\n return acc;\n }\n /**\n * All other values are converted to strings.\n */\n let value = v;\n if (Array.isArray(value)) {\n value = value.join(',');\n } else if (typeof v === 'boolean') {\n value = value ? 'true' : 'false';\n }\n return { ...acc, [key]: value };\n }, {});\n}\n\n/**\n * Check if an object is an `AuthorizationRequirementsError`.\n * @see {@link AuthorizationRequirementsError}\n */\nexport function isAuthorizationRequirementsError(\n test: unknown,\n): test is AuthorizationRequirementsError {\n return (\n typeof test === 'object' &&\n test !== null &&\n 'authorization_parameters' in test &&\n typeof test.authorization_parameters === 'object' &&\n test.authorization_parameters !== null\n );\n}\n", "const LOG_LEVELS = ['debug', 'info', 'warn', 'error'] as const;\n\ntype LogLevel = (typeof LOG_LEVELS)[number];\n\ntype LogHandler = (...args: unknown[]) => void;\n\ntype Logger = {\n log: LogHandler;\n error?: LogHandler;\n warn?: LogHandler;\n info?: LogHandler;\n debug?: LogHandler;\n};\n/**\n * No logger is set by default.\n */\nlet logger: Logger | undefined;\n/**\n * By default, the logger is set to `error`.\n */\nlet level: number = LOG_LEVELS.indexOf('error');\n/**\n * Set the global logger for the SDK.\n * @param logMechanism The logger to use.\n * @example `log.setLogger(console)`\n */\nexport function setLogger(logMechanism: Logger) {\n logger = logMechanism;\n}\n/**\n * Set the global log level for the logger.\n * @param severity The severity to set the logger to.\n * @example `log.setLogLevel('info')`\n */\nexport function setLogLevel(severity: LogLevel) {\n level = LOG_LEVELS.indexOf(severity);\n}\n/**\n * Log a message to the logger.\n * @param severity The severity of the log entry.\n * @param args The message to log.\n * @private\n */\nexport function log(severity: LogLevel, ...args: unknown[]) {\n if (!logger) return;\n /**\n * If the severity of the entry is less than the logger's configured severity, do not log.\n */\n if (LOG_LEVELS.indexOf(severity) < level) {\n return;\n }\n /**\n * If the logger does not have a handler for the specified severity, use the default `log` handler.\n */\n const handler = logger[severity] ?? logger.log;\n handler(...args);\n}\n", "import * as AUTH from '../services/auth/config.js';\nimport * as TRANSFER from '../services/transfer/config.js';\nimport * as FLOWS from '../services/flows/config.js';\nimport * as GROUPS from '../services/groups/config.js';\nimport * as SEARCH from '../services/search/config.js';\nimport * as TIMERS from '../services/timers/config.js';\nimport * as COMPUTE from '../services/compute/config.js';\n\nimport { EnvironmentConfigurationError } from './errors.js';\nimport { SDKOptions } from '../services/types.js';\nimport { log } from './logger.js';\n\nfunction getRuntime() {\n return typeof window !== 'undefined' ? window : process;\n}\n\nfunction isBrowser(runtime: Window | NodeJS.Process): runtime is Window {\n return typeof window === typeof runtime;\n}\n\nfunction env<T>(key: string, fallback: T): T {\n const runtime = getRuntime();\n let envConfiguration;\n if (isBrowser(runtime)) {\n envConfiguration = runtime;\n } else {\n envConfiguration = runtime.env;\n }\n if (key in envConfiguration) {\n return (envConfiguration as Record<typeof key, T>)[key];\n }\n return fallback;\n}\n\n/**\n * Handlers for: GLOBUS_SDK_ENVIRONMENT\n */\nexport const ENVIRONMENTS = {\n PRODUCTION: 'production',\n PREVIEW: 'preview',\n STAGING: 'staging',\n SANDBOX: 'sandbox',\n INTEGRATION: 'integration',\n TEST: 'test',\n} as const;\n\nexport type Environment = (typeof ENVIRONMENTS)[keyof typeof ENVIRONMENTS];\n\nexport const SERVICES = {\n [AUTH.ID]: AUTH.ID,\n [TRANSFER.ID]: TRANSFER.ID,\n [FLOWS.ID]: FLOWS.ID,\n [GROUPS.ID]: GROUPS.ID,\n [SEARCH.ID]: SEARCH.ID,\n [TIMERS.ID]: TIMERS.ID,\n [COMPUTE.ID]: COMPUTE.ID,\n};\n\nexport type Service = keyof typeof SERVICES;\n\nexport const SERVICE_HOSTS: Record<Service, Partial<Record<Environment, string>>> = {\n [AUTH.ID]: AUTH.HOSTS,\n [TRANSFER.ID]: TRANSFER.HOSTS,\n [FLOWS.ID]: FLOWS.HOSTS,\n [GROUPS.ID]: GROUPS.HOSTS,\n [SEARCH.ID]: SEARCH.HOSTS,\n [TIMERS.ID]: TIMERS.HOSTS,\n [COMPUTE.ID]: COMPUTE.HOSTS,\n};\n\n/**\n * Get the computed SDK options based on the runtime.\n * This should be used any time we're referencing the SDK options in\n * methods to ensure we're including any global overrides.\n */\nexport function getSDKOptions(options?: SDKOptions) {\n let globalOptions = env<string | SDKOptions>('GLOBUS_SDK_OPTIONS', {});\n if (typeof globalOptions === 'string') {\n globalOptions = JSON.parse(globalOptions) as SDKOptions;\n }\n return {\n ...globalOptions,\n ...options,\n fetch: {\n ...globalOptions?.fetch,\n ...options?.fetch,\n options: {\n ...globalOptions?.fetch?.options,\n ...options?.fetch?.options,\n headers: {\n ...globalOptions?.fetch?.options?.headers,\n ...options?.fetch?.options?.headers,\n },\n },\n },\n };\n}\n\nexport function getEnvironment(): Environment {\n const globalOptions = getSDKOptions();\n const environment = env<Environment>(\n 'GLOBUS_SDK_ENVIRONMENT',\n globalOptions?.environment ?? ENVIRONMENTS.PRODUCTION,\n );\n if (globalOptions?.environment && environment !== globalOptions.environment) {\n log(\n 'debug',\n 'GLOBUS_SDK_ENVIRONMENT and GLOBUS_SDK_OPTIONS.environment are set to different values. GLOBUS_SDK_ENVIRONMENT will take precedence',\n );\n }\n if (!environment || !Object.values(ENVIRONMENTS).includes(environment)) {\n throw new EnvironmentConfigurationError('GLOBUS_SDK_ENVIRONMENT', environment);\n }\n return environment;\n}\n\n/**\n * Handlers for: GLOBUS_SDK_VERIFY_SSL\n * Since disabling SSL is at least not-recommended, we consider\n * this value to always be true, but provide a warning when it set\n * to one of the falsey values for informational purposes.\n *\n * Taking direction from `globus-sdk-python` for possible false values\n * @see https://github.com/globus/globus-sdk-python/blob/18eced9c12e2ec41745d1be183148845198b999c/src/globus_sdk/config/env_vars.py#L20\n */\nexport function getVerifySSL(): boolean {\n const verifySSLTemp = env<string>('GLOBUS_SDK_VERIFY_SSL', 'true').toLowerCase();\n if (['n', 'no', 'f', 'false', 'off', '0'].includes(verifySSLTemp)) {\n log(\n 'warn',\n 'Setting GLOBUS_SDK_VERIFY_SSL to false is disallowed in the Globus JavaScript SDK. It will always true in this context',\n );\n }\n return true;\n}\n\n/**\n * Handlers for: GLOBUS_SDK_HTTP_TIMEOUT\n */\nexport function getHttpTimeout() {\n const timeout = Number(env<string | number>('GLOBUS_SDK_HTTP_TIMEOUT', 60));\n if (timeout === -1) {\n return null;\n }\n return timeout;\n}\n\nexport function getServiceHost(service: Service, environment: Environment = getEnvironment()) {\n return SERVICE_HOSTS[service][environment];\n}\n\nexport function getServiceBaseUrl(service: Service, environment: Environment = getEnvironment()) {\n const host = getServiceHost(service, environment);\n return env(`GLOBUS_SDK_SERVICE_URL_${service}`, host ? `https://${host}` : undefined);\n}\n", "import { getServiceBaseUrl, getEnvironment, Environment, Service } from './global.js';\nimport type {\n GCSConfiguration,\n UnauthenticatedGCSConfiguration,\n} from '../services/globus-connect-server/index.js';\nimport { SDKOptions } from '../services/types.js';\n\n/**\n * An extremely simplified parameter serializer based on our current needs.\n *\n * **This is intended for internal @globus/sdk use only.**\n *\n * @private\n */\nexport function stringifyParameters(parameters: {\n [key: string]:\n | string\n | number\n | boolean\n | Array<string | number | null | undefined>\n | null\n | undefined;\n}) {\n const search = new URLSearchParams();\n\n Array.from(Object.entries(parameters)).forEach(([key, value]) => {\n if (Array.isArray(value)) {\n /**\n * Arrays are converted to comma-separated strings.\n */\n search.set(key, value.join(','));\n } else if (value !== undefined) {\n search.set(key, String(value));\n }\n });\n\n return search.toString();\n}\n\n/**\n * Return the base URL for a service (based on the environment).\n * @param service The service to build the URL for.\n * @param path The path to the resource.\n * @param environment The environment to use.\n */\nexport function getServiceURL(\n service: Service,\n path = '',\n environment: Environment = getEnvironment(),\n): URL {\n const base = getServiceBaseUrl(service, environment);\n return new URL(path, base);\n}\n\n/**\n * Build a URL for a service or GCSConfiguration.\n *\n * @param service The service identifier or GCSConfiguration object to build the URL for.\n * @param path The path to the resource.\n * @param options Additional options for the URL.\n */\nexport function build(\n serviceOrConfiguration: Service | GCSConfiguration | UnauthenticatedGCSConfiguration,\n path: string,\n options?: {\n search?: Parameters<typeof stringifyParameters>[0];\n },\n sdkOptions?: SDKOptions,\n): string {\n let url;\n if (typeof serviceOrConfiguration === 'object') {\n url = new URL(path, serviceOrConfiguration.host);\n } else {\n url = getServiceURL(serviceOrConfiguration, path, sdkOptions?.environment);\n }\n if (options && options.search) {\n url.search = stringifyParameters(options.search);\n }\n return url.toString();\n}\n", "/**\n * @description A wrapper around the Globus Auth service.\n * @group Service\n * @see [Globus Auth API Documentation](https://docs.globus.org/api/auth/)\n * @module\n */\nimport { build } from '../../core/url.js';\n\nimport * as AUTH from './config.js';\n\nimport type { Token, TokenWithRefresh, TokenResponse } from './types.js';\n\n/**\n * @private\n * @internal\n */\nexport const CONFIG = AUTH;\n\nexport type * from './types.js';\n\n/**\n * Query parameters that can be passed to the authorization endpoint.\n * @see https://docs.globus.org/api/auth/reference/#authorization_code_grant_preferred\n * @see https://docs.globus.org/api/auth/sessions/#client-initiated-authns\n */\nexport type AuthorizationQueryParameters = {\n prompt?: string;\n session_message?: string;\n session_required_identities?: string;\n session_required_single_domain?: string;\n session_required_mfa?: 'true' | 'false';\n session_required_policies?: string;\n};\n\nexport function getAuthorizationEndpoint() {\n return build(AUTH.ID, '/v2/oauth2/authorize');\n}\n\nexport function getTokenEndpoint() {\n return build(AUTH.ID, '/v2/oauth2/token');\n}\n\nexport * as identities from './service/identities/index.js';\nexport * as oauth2 from './service/oauth2/index.js';\n\nexport function isToken(check: unknown): check is Token {\n return typeof check === 'object' && check !== null && 'access_token' in check;\n}\n\nexport function isRefreshToken(check: unknown): check is TokenWithRefresh {\n return isToken(check) && check !== null && 'refresh_token' in check;\n}\n\nexport function isGlobusAuthTokenResponse(check: unknown): check is TokenResponse {\n /**\n * @todo This could be made more robust by checking whether the `resource_server` is a well-known value.\n */\n return isToken(check) && check !== null && 'resource_server' in check;\n}\n\nexport * as utils from './utils.js';\n", "import { HTTP_METHODS, serviceRequest } from '../../shared.js';\n\nimport type { OpenAPI, GCSServiceMethod, GCSServiceMethodDynamicSegments } from '../index.js';\n\nimport type { JSONFetchResponse } from '../../types.js';\n\n/**\n * @see https://docs.globus.org/globus-connect-server/v5.4/api/openapi_Collections/#listCollections\n */\nexport const getAll = function (\n configuration,\n options?,\n sdkOptions?,\n): Promise<\n JSONFetchResponse<\n OpenAPI.operations['listCollections']['responses']['200']['content']['application/json']\n >\n> {\n return serviceRequest(\n {\n service: configuration,\n resource_server: configuration.endpoint_id,\n path: `/api/collections`,\n },\n options,\n sdkOptions,\n );\n} satisfies GCSServiceMethod<{\n query?: OpenAPI.operations['listCollections']['parameters']['query'];\n}>;\n\n/**\n * @see https://docs.globus.org/globus-connect-server/v5.4/api/openapi_Collections/#getCollection\n */\nexport const get = function (\n configuration,\n collection_id,\n options?,\n sdkOptions?,\n): Promise<\n JSONFetchResponse<\n OpenAPI.operations['getCollection']['responses']['200']['content']['application/json']\n >\n> {\n return serviceRequest(\n {\n service: configuration,\n resource_server: configuration.endpoint_id,\n path: `/api/collections/${collection_id}`,\n },\n options,\n sdkOptions,\n );\n} satisfies GCSServiceMethodDynamicSegments<\n OpenAPI.operations['getCollection']['parameters']['path']['collection_id'],\n {\n query?: OpenAPI.operations['getCollection']['parameters']['query'];\n }\n>;\n\n/**\n * @see https://docs.globus.org/globus-connect-server/v5.4/api/openapi_Collections/#deleteCollection\n */\nexport const remove = function (\n configuration,\n collection_id,\n options?,\n sdkOptions?,\n): Promise<\n JSONFetchResponse<\n OpenAPI.operations['deleteCollection']['responses']['200']['content']['application/json']\n >\n> {\n return serviceRequest(\n {\n service: configuration,\n resource_server: configuration.endpoint_id,\n path: `/api/collections/${collection_id}`,\n method: HTTP_METHODS.DELETE,\n },\n options,\n sdkOptions,\n );\n} satisfies GCSServiceMethodDynamicSegments<\n OpenAPI.operations['deleteCollection']['parameters']['path']['collection_id'],\n {\n query?: never;\n payload?: never;\n }\n>;\n\n/**\n * @see https://docs.globus.org/globus-connect-server/v5.4/api/openapi_Collections/#postCollection\n */\nexport const create = function (\n configuration,\n options,\n sdkOptions?,\n): Promise<\n JSONFetchResponse<\n OpenAPI.operations['postCollection']['responses']['201']['content']['application/json']\n >\n> {\n return serviceRequest(\n {\n service: configuration,\n resource_server: configuration.endpoint_id,\n path: `/api/collections`,\n method: HTTP_METHODS.POST,\n },\n options,\n sdkOptions,\n );\n} satisfies GCSServiceMethod<{\n payload: OpenAPI.operations['postCollection']['requestBody']['content']['application/json'];\n}>;\n\n/**\n * @see https://docs.globus.org/globus-connect-server/v5.4/api/openapi_Collections/#putCollection\n */\nexport const update = function (\n configuration,\n collection_id,\n options,\n sdkOptions?,\n): Promise<\n JSONFetchResponse<\n OpenAPI.operations['putCollection']['responses']['200']['content']['application/json']\n >\n> {\n return serviceRequest(\n {\n service: configuration,\n resource_server: configuration.endpoint_id,\n path: `/api/collections/${collection_id}`,\n method: HTTP_METHODS.PUT,\n },\n options,\n sdkOptions,\n );\n} satisfies GCSServiceMethodDynamicSegments<\n OpenAPI.operations['putCollection']['parameters']['path']['collection_id'],\n {\n payload: OpenAPI.operations['putCollection']['requestBody']['content']['application/json'];\n }\n>;\n\n/**\n * @see https://docs.globus.org/globus-connect-server/v5.4/api/openapi_Collections/#patchCollection\n */\nexport const patch = function (\n configuration,\n collection_id,\n options,\n sdkOptions?,\n): Promise<\n JSONFetchResponse<\n OpenAPI.operations['patchCollection']['responses']['200']['content']['application/json']\n >\n> {\n return serviceRequest(\n {\n service: configuration,\n resource_server: configuration.endpoint_id,\n path: `/api/collections/${collection_id}`,\n method: HTTP_METHODS.PATCH,\n },\n options,\n sdkOptions,\n );\n} satisfies GCSServiceMethodDynamicSegments<\n OpenAPI.operations['patchCollection']['parameters']['path']['collection_id'],\n {\n payload: Partial<\n OpenAPI.operations['patchCollection']['requestBody']['content']['application/json']\n >;\n }\n>;\n\n/**\n * @see https://docs.globus.org/globus-connect-server/v5.4/api/openapi_Collections/#putCollectionOwnerString\n */\nexport const updateOwnerString = function (\n configuration,\n collection_id,\n options,\n sdkOptions?,\n): Promise<\n JSONFetchResponse<\n OpenAPI.operations['putCollectionOwnerString']['responses']['200']['content']['application/json']\n >\n> {\n return serviceRequest(\n {\n service: configuration,\n resource_server: configuration.endpoint_id,\n path: `/api/collections/${collection_id}/owner_string`,\n method: HTTP_METHODS.PUT,\n },\n options,\n sdkOptions,\n );\n} satisfies GCSServiceMethodDynamicSegments<\n OpenAPI.operations['putCollectionOwnerString']['parameters']['path']['collection_id'],\n {\n payload: Partial<\n OpenAPI.operations['putCollectionOwnerString']['requestBody']['content']['application/json']\n >;\n }\n>;\n\n/**\n * @see https://docs.globus.org/globus-connect-server/v5.4/api/openapi_Collections/#deleteCollectionOwnerString\n */\nexport const resetOwnerString = function (\n configuration,\n collection_id,\n options,\n sdkOptions?,\n): Promise<\n JSONFetchResponse<\n OpenAPI.operations['deleteCollectionOwnerString']['responses']['200']['content']['application/json']\n >\n> {\n return serviceRequest(\n {\n service: configuration,\n resource_server: configuration.endpoint_id,\n path: `/api/collections/${collection_id}/owner_string`,\n method: HTTP_METHODS.DELETE,\n },\n options,\n sdkOptions,\n );\n} satisfies GCSServiceMethodDynamicSegments<\n OpenAPI.operations['deleteCollectionOwnerString']['parameters']['path']['collection_id'],\n {}\n>;\n", "import { HTTP_METHODS, serviceRequest } from '../../shared.js';\n\nimport type { OpenAPI, GCSServiceMethod } from '../index.js';\nimport type { JSONFetchResponse } from '../../types.js';\n\n/**\n * @see https://docs.globus.org/globus-connect-server/v5.4/api/openapi_Endpoint/#getEndpoint\n */\nexport const get = function (\n configuration,\n options?,\n sdkOptions?,\n): Promise<\n JSONFetchResponse<\n OpenAPI.operations['getEndpoint']['responses']['200']['content']['application/json']\n >\n> {\n return serviceRequest(\n {\n service: configuration,\n resource_server: configuration.endpoint_id,\n path: `/api/endpoint`,\n },\n options,\n sdkOptions,\n );\n} satisfies GCSServiceMethod<{\n query?: never;\n payload?: never;\n}>;\n\n/**\n * @see https://docs.globus.org/globus-connect-server/v5.4/api/openapi_Endpoint/#putEndpoint\n */\nexport const update = function (\n configuration,\n options?,\n sdkOptions?,\n): Promise<\n JSONFetchResponse<\n OpenAPI.operations['putEndpoint']['responses']['200']['content']['application/json']\n >\n> {\n return serviceRequest(\n {\n service: configuration,\n resource_server: configuration.endpoint_id,\n path: `/api/endpoint`,\n method: HTTP_METHODS.PUT,\n },\n options,\n sdkOptions,\n );\n} satisfies GCSServiceMethod<{\n payload: Partial<OpenAPI.operations['putEndpoint']['requestBody']['content']['application/json']>;\n}>;\n\n/**\n * @see https://docs.globus.org/globus-connect-server/v5.4/api/openapi_Endpoint/#patchEndpoint\n */\nexport const patch = function (\n configuration,\n options?,\n sdkOptions?,\n): Promise<\n JSONFetchResponse<\n OpenAPI.operations['patchEndpoint']['responses']['200']['content']['application/json']\n >\n> {\n return serviceRequest(\n {\n service: configuration,\n resource_server: configuration.endpoint_id,\n path: `/api/endpoint`,\n method: HTTP_METHODS.PATCH,\n },\n options,\n sdkOptions,\n );\n} satisfies GCSServiceMethod<{\n /**\n * @todo The generated PATCH type is resolving to the Endpoint document, which\n * has some properties that are required (i.e. `display_name`). For now, we're\n * just allowing unknown properties to be passed in, but we should fix this\n * when the auotgenerated types are corrected.\n */\n payload:\n | OpenAPI.operations['patchEndpoint']['requestBody']['content']['application/json']\n | Record<string, unknown>;\n}>;\n\n/**\n * @see https://docs.globus.org/globus-connect-server/v5.4/api/openapi_Endpoint/#putEndpointSubscriptionId\n */\nexport const updateSubscriptionId = function (\n configuration,\n options?,\n sdkOptions?,\n): Promise<\n JSONFetchResponse<\n OpenAPI.operations['putEndpointSubscriptionId']['responses']['200']['content']['application/json']\n >\n> {\n return serviceRequest(\n {\n service: configuration,\n resource_server: configuration.endpoint_id,\n path: `/api/endpoint/subscription_id`,\n method: HTTP_METHODS.PUT,\n },\n options,\n sdkOptions,\n );\n} satisfies GCSServiceMethod<{\n payload: OpenAPI.operations['putEndpointSubscriptionId']['requestBody']['content']['application/json'];\n}>;\n\n/**\n * @see https://docs.globus.org/globus-connect-server/v5.4/api/openapi_Endpoint/#putEndpointOwner\n */\nexport const updateOwner = function (\n configuration,\n options?,\n sdkOptions?,\n): Promise<\n JSONFetchResponse<\n OpenAPI.operations['putEndpointOwner']['responses']['200']['content']['application/json']\n >\n> {\n return serviceRequest(\n {\n service: configuration,\n resource_server: configuration.endpoint_id,\n path: `/api/endpoint/owner`,\n method: HTTP_METHODS.PUT,\n },\n options,\n sdkOptions,\n );\n} satisfies GCSServiceMethod<{\n payload: OpenAPI.operations['putEndpointOwner']['requestBody']['content']['application/json'];\n}>;\n\n/**\n * @see https://docs.globus.org/globus-connect-server/v5.4/api/openapi_Endpoint/#putEndpointOwnerString\n */\nexport const updateOwnerString = function (\n configuration,\n options?,\n sdkOptions?,\n): Promise<\n JSONFetchResponse<\n OpenAPI.operations['putEndpointOwnerString']['responses']['200']['content']['application/json']\n >\n> {\n return serviceRequest(\n {\n service: configuration,\n resource_server: configuration.endpoint_id,\n path: `/api/endpoint/owner_string`,\n method: HTTP_METHODS.PUT,\n },\n options,\n sdkOptions,\n );\n} satisfies GCSServiceMethod<{\n payload: OpenAPI.operations['putEndpointOwnerString']['requestBody']['content']['application/json'];\n}>;\n\n/**\n * @see https://docs.globus.org/globus-connect-server/v5.4/api/openapi_Endpoint/#deleteEndpointOwnerString\n */\nexport const resetOwnerString = function (\n configuration,\n options,\n sdkOptions?,\n): Promise<\n JSONFetchResponse<\n OpenAPI.operations['deleteEndpointOwnerString']['responses']['200']['content']['application/json']\n >\n> {\n return serviceRequest(\n {\n service: configuration,\n resource_server: configuration.endpoint_id,\n path: `/api/endpoint/owner_string`,\n method: HTTP_METHODS.DELETE,\n },\n options,\n sdkOptions,\n );\n} satisfies GCSServiceMethod<{}>;\n", "import { HTTP_METHODS, serviceRequest } from '../../shared.js';\n\nimport type { GCSServiceMethodDynamicSegments } from '../index.js';\n\n/**\n * @see https://docs.globus.org/globus-connect-server/v5.4/https-access-collections/\n */\nexport const get = function (configuration, path, options?, sdkOptions?): Promise<Response> {\n return serviceRequest(\n {\n service: configuration,\n resource_server: configuration.endpoint_id,\n path,\n },\n options,\n sdkOptions,\n );\n} satisfies GCSServiceMethodDynamicSegments<\n string,\n {\n query?: {\n /**\n * @see https://docs.globus.org/globus-connect-server/v5.4/https-access-collections/#request_a_browser_download\n */\n download?: boolean;\n };\n }\n>;\n\n/**\n * @see https://docs.globus.org/globus-connect-server/v5.4/https-access-collections/\n */\nexport const remove = function (configuration, path, options?, sdkOptions?): Promise<Response> {\n return serviceRequest(\n {\n service: configuration,\n resource_server: configuration.endpoint_id,\n path,\n method: HTTP_METHODS.DELETE,\n },\n options,\n sdkOptions,\n );\n} satisfies GCSServiceMethodDynamicSegments<\n string,\n {\n query?: never;\n payload?: never;\n }\n>;\n\n/**\n * @see https://docs.globus.org/globus-connect-server/v5.4/https-access-collections/\n */\nexport const update = function (configuration, path, options, sdkOptions?): Promise<Response> {\n return serviceRequest(\n {\n service: configuration,\n resource_server: configuration.endpoint_id,\n path,\n method: HTTP_METHODS.PUT,\n },\n options,\n sdkOptions,\n );\n} satisfies GCSServiceMethodDynamicSegments<\n string,\n {\n query?: never;\n payload?: never;\n }\n>;\n", "import { HTTP_METHODS, serviceRequest } from '../../../services/shared.js';\n\nimport type { OpenAPI, GCSServiceMethod, GCSServiceMethodDynamicSegments } from '../index.js';\n\nimport type { JSONFetchResponse } from '../../types.js';\n\n/**\n * @see https://docs.globus.org/globus-connect-server/v5.4/api/openapi_Nodes/#listNodes\n */\nexport const getAll = function (\n configuration,\n options?,\n sdkOptions?,\n): Promise<\n JSONFetchResponse<\n OpenAPI.operations['listNodes']['responses']['200']['content']['application/json']\n >\n> {\n return serviceRequest(\n {\n service: configuration,\n resource_server: configuration.endpoint_id,\n path: `/api/nodes`,\n },\n options,\n sdkOptions,\n );\n} satisfies GCSServiceMethod<{\n query?: OpenAPI.operations['listNodes']['parameters']['query'];\n}>;\n\n/**\n * @see https://docs.globus.org/globus-connect-server/v5.4/api/openapi_Nodes/#getNode\n */\nexport const get = function (\n configuration,\n node_id,\n options?,\n sdkOptions?,\n): Promise<\n JSONFetchResponse<\n OpenAPI.operations['getNode']['responses']['200']['content']['application/json']\n >\n> {\n return serviceRequest(\n {\n service: configuration,\n resource_server: configuration.endpoint_id,\n path: `/api/nodes/${node_id}`,\n },\n options,\n sdkOptions,\n );\n} satisfies GCSServiceMethodDynamicSegments<\n OpenAPI.operations['getNode']['parameters']['path']['node_id'],\n {\n query?: never;\n payload?: never;\n }\n>;\n\n/**\n * @see https://docs.globus.org/globus-connect-server/v5.4/api/openapi_Nodes/#deleteNode\n */\nexport const remove = function (\n configuration,\n node_id,\n options?,\n sdkOptions?,\n): Promise<\n JSONFetchResponse<\n OpenAPI.operations['deleteNode']['responses']['200']['content']['application/json']\n >\n> {\n return serviceRequest(\n {\n service: configuration,\n resource_server: configuration.endpoint_id,\n path: `/api/nodes/${node_id}`,\n method: HTTP_METHODS.DELETE,\n },\n options,\n sdkOptions,\n );\n} satisfies GCSServiceMethodDynamicSegments<\n OpenAPI.operations['deleteNode']['parameters']['path']['node_id'],\n {\n query?: never;\n payload?: never;\n }\n>;\n\n/**\n * @see https://docs.globus.org/globus-connect-server/v5.4/api/openapi_Nodes/#postNodes\n */\nexport const create = function (\n configuration,\n options,\n sdkOptions?,\n): Promise<\n JSONFetchResponse<\n OpenAPI.operations['postNode']['responses']['200']['content']['application/json']\n >\n> {\n return serviceRequest(\n {\n service: configuration,\n resource_server: configuration.endpoint_id,\n path: `/api/nodes`,\n method: HTTP_METHODS.POST,\n },\n options,\n sdkOptions,\n );\n} satisfies GCSServiceMethod<{\n payload: OpenAPI.operations['postNode']['requestBody']['content']['application/json'];\n}>;\n\n/**\n * @see https://docs.globus.org/globus-connect-server/v5.4/api/openapi_Nodes/#putNode\n */\nexport const update = function (\n configuration,\n node_id,\n options,\n sdkOptions?,\n): Promise<\n JSONFetchResponse<\n OpenAPI.operations['putNode']['responses']['200']['content']['application/json']\n >\n> {\n return serviceRequest(\n {\n service: configuration,\n resource_server: configuration.endpoint_id,\n path: `/api/nodes/${node_id}`,\n method: HTTP_METHODS.PUT,\n },\n options,\n sdkOptions,\n );\n} satisfies GCSServiceMethodDynamicSegments<\n OpenAPI.operations['putNode']['parameters']['path']['node_id'],\n {\n payload: OpenAPI.operations['putNode']['requestBody']['content']['application/json'];\n }\n>;\n\n/**\n * @see https://docs.globus.org/globus-connect-server/v5.4/api/openapi_Nodes/#patchNode\n */\nexport const patch = function (\n configuration,\n node_id,\n options,\n sdkOptions?,\n): Promise<\n JSONFetchResponse<\n OpenAPI.operations['patchNode']['responses']['200']['content']['application/json']\n >\n> {\n return serviceRequest(\n {\n service: configuration,\n resource_server: configuration.endpoint_id,\n path: `/api/nodes/${node_id}`,\n method: HTTP_METHODS.PATCH,\n },\n options,\n sdkOptions,\n );\n} satisfies GCSServiceMethodDynamicSegments<\n OpenAPI.operations['patchNode']['parameters']['path']['node_id'],\n {\n payload: Partial<OpenAPI.operations['patchNode']['requestBody']['content']['application/json']>;\n }\n>;\n", "import { HTTP_METHODS, serviceRequest } from '../../../services/shared.js';\n\nimport type { OpenAPI, GCSServiceMethod, GCSServiceMethodDynamicSegments } from '../index.js';\n\nimport type { JSONFetchResponse } from '../../types.js';\n/**\n * @see https://docs.globus.org/globus-connect-server/v5.4/api/openapi_Roles/#listRoles\n */\nexport const getAll = function (\n configuration,\n options?,\n sdkOptions?,\n): Promise<\n JSONFetchResponse<\n OpenAPI.operations['listRoles']['responses']['200']['content']['application/json']\n >\n> {\n return serviceRequest(\n {\n service: configuration,\n resource_server: configuration.endpoint_id,\n path: `/api/roles`,\n },\n options,\n sdkOptions,\n );\n} satisfies GCSServiceMethod<{\n query?: OpenAPI.operations['listRoles']['parameters']['query'];\n}>;\n\n/**\n * @see https://docs.globus.org/globus-connect-server/v5.4/api/openapi_Roles/#getRole\n */\nexport const get = function (\n configuration,\n role_id,\n options?,\n sdkOptions?,\n): Promise<\n JSONFetchResponse<\n OpenAPI.operations['getRole']['responses']['200']['content']['application/json']\n >\n> {\n return serviceRequest(\n {\n service: configuration,\n resource_server: configuration.endpoint_id,\n path: `/api/roles/${role_id}`,\n },\n options,\n sdkOptions,\n );\n} satisfies GCSServiceMethodDynamicSegments<\n OpenAPI.operations['getRole']['parameters']['path']['role_id'],\n {\n query?: never;\n payload?: never;\n }\n>;\n\n/**\n * @see https://docs.globus.org/globus-connect-server/v5.4/api/openapi_Roles/#deleteRole\n */\nexport const remove = function (\n configuration,\n role_id,\n options?,\n sdkOptions?,\n): Promise<\n JSONFetchResponse<\n OpenAPI.operations['deleteRole']['responses']['200']['content']['application/json']\n >\n> {\n return serviceRequest(\n {\n service: configuration,\n resource_server: configuration.endpoint_id,\n path: `/api/roles/${role_id}`,\n method: HTTP_METHODS.DELETE,\n },\n options,\n sdkOptions,\n );\n} satisfies GCSServiceMethodDynamicSegments<\n OpenAPI.operations['deleteRole']['parameters']['path']['role_id'],\n {\n query?: never;\n payload?: never;\n }\n>;\n\n/**\n * @see https://docs.globus.org/globus-connect-server/v5.4/api/openapi_Roles/#postRoles\n */\nexport const create = function (\n configuration,\n options,\n sdkOptions?,\n): Promise<\n JSONFetchResponse<\n OpenAPI.operations['postRoles']['responses']['200']['content']['application/json']\n >\n> {\n return serviceRequest(\n {\n service: configuration,\n resource_server: configuration.endpoint_id,\n path: `/api/roles`,\n method: HTTP_METHODS.POST,\n },\n options,\n sdkOptions,\n );\n} satisfies GCSServiceMethod<{\n payload: OpenAPI.operations['postRoles']['requestBody']['content']['application/json'];\n}>;\n", "import { HTTP_METHODS, serviceRequest } from '../../../services/shared.js';\n\nimport type { OpenAPI, GCSServiceMethod, GCSServiceMethodDynamicSegments } from '../index.js';\n\nimport type { JSONFetchResponse } from '../../types.js';\n/**\n * @see https://docs.globus.org/globus-connect-server/v5.4/api/openapi_Storage_Gateways/#listStorageGateways\n */\nexport const getAll = function (\n configuration,\n options?,\n sdkOptions?,\n): Promise<\n JSONFetchResponse<\n OpenAPI.operations['listStorageGateways']['responses']['200']['content']['application/json']\n >\n> {\n return serviceRequest(\n {\n service: configuration,\n resource_server: configuration.endpoint_id,\n path: `/api/storage_gateways`,\n },\n options,\n sdkOptions,\n );\n} satisfies GCSServiceMethod<{\n query?: OpenAPI.operations['listStorageGateways']['parameters']['query'];\n}>;\n\n/**\n * @see https://docs.globus.org/globus-connect-server/v5.4/api/openapi_Storage_Gateways/#getStorageGateway\n */\nexport const get = function (\n configuration,\n storage_gateway_id,\n options?,\n sdkOptions?,\n): Promise<\n JSONFetchResponse<\n OpenAPI.operations['getStorageGateway']['responses']['200']['content']['application/json']\n >\n> {\n return serviceRequest(\n {\n service: configuration,\n resource_server: configuration.endpoint_id,\n path: `/api/storage_gateways/${storage_gateway_id}`,\n },\n options,\n sdkOptions,\n );\n} satisfies GCSServiceMethodDynamicSegments<\n OpenAPI.operations['getStorageGateway']['parameters']['path']['storage_gateway_id'],\n {\n query?: OpenAPI.operations['getStorageGateway']['parameters']['query'];\n }\n>;\n\n/**\n * @see https://docs.globus.org/globus-connect-server/v5.4/api/openapi_Storage_Gateways/#deleteStorageGateway\n */\nexport const remove = function (\n configuration,\n storage_gateway_id,\n options?,\n sdkOptions?,\n): Promise<\n JSONFetchResponse<\n OpenAPI.operations['deleteStorageGateway']['responses']['200']['content']['application/json']\n >\n> {\n return serviceRequest(\n {\n service: configuration,\n resource_server: configuration.endpoint_id,\n path: `/api/storage_gateways/${storage_gateway_id}`,\n method: HTTP_METHODS.DELETE,\n },\n options,\n sdkOptions,\n );\n} satisfies GCSServiceMethodDynamicSegments<\n OpenAPI.operations['deleteStorageGateway']['parameters']['path']['storage_gateway_id'],\n {\n query?: never;\n payload?: never;\n }\n>;\n\n/**\n * @see https://docs.globus.org/globus-connect-server/v5.4/api/openapi_Storage_Gateways/#postStorageGateway\n */\nexport const create = function (\n configuration,\n options,\n sdkOptions?,\n): Promise<\n JSONFetchResponse<\n OpenAPI.operations['postStorageGateway']['responses']['201']['content']['application/json']\n >\n> {\n return serviceRequest(\n {\n service: configuration,\n resource_server: configuration.endpoint_id,\n path: `/api/storage_gateways`,\n method: HTTP_METHODS.POST,\n },\n options,\n sdkOptions,\n );\n} satisfies GCSServiceMethod<{\n payload: OpenAPI.operations['postStorageGateway']['requestBody']['content']['application/json'];\n}>;\n\n/**\n * @see https://docs.globus.org/globus-connect-server/v5.4/api/openapi_Storage_Gateways/#putStorageGateway\n */\nexport const update = function (\n configuration,\n storage_gateway_id,\n options,\n sdkOptions?,\n): Promise<\n JSONFetchResponse<\n OpenAPI.operations['putStorageGateway']['responses']['200']['content']['application/json']\n >\n> {\n return serviceRequest(\n {\n service: configuration,\n resource_server: configuration.endpoint_id,\n path: `/api/storage_gateways/${storage_gateway_id}`,\n method: HTTP_METHODS.PUT,\n },\n options,\n sdkOptions,\n );\n} satisfies GCSServiceMethodDynamicSegments<\n OpenAPI.operations['putStorageGateway']['parameters']['path']['storage_gateway_id'],\n {\n payload: OpenAPI.operations['putStorageGateway']['requestBody']['content']['application/json'];\n }\n>;\n\n/**\n * @see https://docs.globus.org/globus-connect-server/v5.4/api/openapi_Storage_Gateways/#patchStorageGateway\n */\nexport const patch = function (\n configuration,\n storage_gateway_id,\n options,\n sdkOptions?,\n): Promise<\n JSONFetchResponse<\n OpenAPI.operations['patchStorageGateway']['responses']['200']['content']['application/json']\n >\n> {\n return serviceRequest(\n {\n service: configuration,\n resource_server: configuration.endpoint_id,\n path: `/api/storage_gateways/${storage_gateway_id}`,\n method: HTTP_METHODS.PATCH,\n },\n options,\n sdkOptions,\n );\n} satisfies GCSServiceMethodDynamicSegments<\n OpenAPI.operations['patchStorageGateway']['parameters']['path']['storage_gateway_id'],\n {\n payload: Partial<\n OpenAPI.operations['patchStorageGateway']['requestBody']['content']['application/json']\n >;\n }\n>;\n", "import { HTTP_METHODS, serviceRequest } from '../../../services/shared.js';\n\nimport type { OpenAPI, GCSServiceMethod, GCSServiceMethodDynamicSegments } from '../index.js';\n\nimport type { JSONFetchResponse } from '../../types.js';\n/**\n * @see https://docs.globus.org/globus-connect-server/v5.4/api/openapi_User_Credentials/#listUserCredentials\n */\nexport const getAll = function (\n configuration,\n options?,\n sdkOptions?,\n): Promise<\n JSONFetchResponse<\n OpenAPI.operations['listUserCredentials']['responses']['200']['content']['application/json']\n >\n> {\n return serviceRequest(\n {\n service: configuration,\n resource_server: configuration.endpoint_id,\n path: `/api/user_credentials`,\n },\n options,\n sdkOptions,\n );\n} satisfies GCSServiceMethod<{\n query?: OpenAPI.operations['listUserCredentials']['parameters']['query'];\n}>;\n\n/**\n * @see https://docs.globus.org/globus-connect-server/v5.4/api/openapi_User_Credentials/#getUserCredential\n */\nexport const get = function (\n configuration,\n user_credential_id,\n options?,\n sdkOptions?,\n): Promise<\n JSONFetchResponse<\n OpenAPI.operations['getCollection']['responses']['200']['content']['application/json']\n >\n> {\n return serviceRequest(\n {\n service: configuration,\n resource_server: configuration.endpoint_id,\n path: `/api/user_credentials/${user_credential_id}`,\n },\n options,\n sdkOptions,\n );\n} satisfies GCSServiceMethodDynamicSegments<\n OpenAPI.operations['getUserCredential']['parameters']['path']['user_credential_id'],\n {\n query?: never;\n payload?: never;\n }\n>;\n\n/**\n * @see https://docs.globus.org/globus-connect-server/v5.4/api/openapi_User_Credentials/#deleteUserCredential\n */\nexport const remove = function (\n configuration,\n user_credential_id,\n options?,\n sdkOptions?,\n): Promise<\n JSONFetchResponse<\n OpenAPI.operations['deleteUserCredential']['responses']['200']['content']['application/json']\n >\n> {\n return serviceRequest(\n {\n service: configuration,\n resource_server: configuration.endpoint_id,\n path: `/api/user_credentials/${user_credential_id}`,\n method: HTTP_METHODS.DELETE,\n },\n options,\n sdkOptions,\n );\n} satisfies GCSServiceMethodDynamicSegments<\n OpenAPI.operations['deleteUserCredential']['parameters']['path']['user_credential_id'],\n {\n query?: never;\n payload?: never;\n }\n>;\n\n/**\n * @see https://docs.globus.org/globus-connect-server/v5.4/api/openapi_User_Credentials/#postUserCredential\n */\nexport const create = function (\n configuration,\n options,\n sdkOptions?,\n): Promise<\n JSONFetchResponse<\n OpenAPI.operations['postUserCredential']['responses']['201']['content']['application/json']\n >\n> {\n return serviceRequest(\n {\n service: configuration,\n resource_server: configuration.endpoint_id,\n path: `/api/user_credentials`,\n method: HTTP_METHODS.POST,\n },\n options,\n sdkOptions,\n );\n} satisfies GCSServiceMethod<{\n payload: OpenAPI.operations['postUserCredential']['requestBody']['content']['application/json'];\n}>;\n\n/**\n * @see https://docs.globus.org/globus-connect-server/v5.4/api/openapi_User_Credentials/#putUserCredential\n */\nexport const update = function (\n configuration,\n user_credential_id,\n options,\n sdkOptions?,\n): Promise<\n JSONFetchResponse<\n OpenAPI.operations['putUserCredential']['responses']['200']['content']['application/json']\n >\n> {\n return serviceRequest(\n {\n service: configuration,\n resource_server: configuration.endpoint_id,\n path: `/api/user_credentials/${user_credential_id}`,\n method: HTTP_METHODS.PUT,\n },\n options,\n sdkOptions,\n );\n} satisfies GCSServiceMethodDynamicSegments<\n OpenAPI.operations['putUserCredential']['parameters']['path']['user_credential_id'],\n {\n payload: OpenAPI.operations['putUserCredential']['requestBody']['content']['application/json'];\n }\n>;\n\n/**\n * @see https://docs.globus.org/globus-connect-server/v5.4/api/openapi_User_Credentials/#patchUserCredential\n */\nexport const patch = function (\n configuration,\n user_credential_id,\n options,\n sdkOptions?,\n): Promise<\n JSONFetchResponse<\n OpenAPI.operations['patchUserCredential']['responses']['200']['content']['application/json']\n >\n> {\n return serviceRequest(\n {\n service: configuration,\n resource_server: configuration.endpoint_id,\n path: `/api/user_credentials/${user_credential_id}`,\n method: HTTP_METHODS.PATCH,\n },\n options,\n sdkOptions,\n );\n} satisfies GCSServiceMethodDynamicSegments<\n OpenAPI.operations['patchUserCredential']['parameters']['path']['user_credential_id'],\n {\n payload: Partial<\n OpenAPI.operations['patchUserCredential']['requestBody']['content']['application/json']\n >;\n }\n>;\n", "import { serviceRequest } from '../../../services/shared.js';\n\nimport type { OpenAPI, GCSServiceMethod } from '../index.js';\nimport type { JSONFetchResponse } from '../../types.js';\n\n/**\n * **This operation can be performed without an `Authorization` header.**\n * @see https://docs.globus.org/globus-connect-server/v5.4/api/openapi_Versioning/#getInfo\n */\nexport const info = function (\n configuration,\n options?,\n sdkOptions?,\n): Promise<\n JSONFetchResponse<\n OpenAPI.operations['getInfo']['responses']['200']['content']['application/json']\n >\n> {\n return serviceRequest(\n {\n service: configuration,\n path: `/api/info`,\n },\n options,\n sdkOptions,\n );\n} satisfies GCSServiceMethod<\n {\n query?: never;\n payload?: never;\n },\n Response,\n true\n>;\n"],
|
|
4
|
+
"sourcesContent": ["/**\n * @module Client - Globus Connect Server Manager API\n * @category Client\n * @description A wrapper around the Globus Connect Server Manager API that binds various Globus Connect Server resources\n * to a single configuration object (GCSConfiguration).\n *\n * @example\n * import { getClient } from \"@globus/sdk/lib/services/globus-connect-server/client\";\n *\n * const client = getClient({\n * host: \"https://fa5e.bd7c.data.globus.org\",\n * endpoint_id: \"ac9cb54b-fc48-4824-b801-1388baf0a909\",\n * });\n *\n * const result = await client.endpoint.get();\n */\nimport { type GCSConfiguration } from './index.js';\n\nimport * as collections from './service/collections.js';\nimport * as endpoint from './service/endpoint.js';\nimport * as https from './service/https.js';\nimport * as nodes from './service/nodes.js';\nimport * as roles from './service/roles.js';\nimport * as storageGateways from './service/storage-gateways.js';\nimport * as userCredentials from './service/user-credentials.js';\nimport * as versioning from './service/versioning.js';\n\ntype TailOfTuple<T extends unknown[], Head extends unknown[]> = T extends [...Head, ...infer Tail]\n ? Tail\n : never;\n\n/**\n * Bind arguments to a method (partial application).\n * @param method The method arguments will be bound to.\n * @param bound The arguments to bind to the method.\n */\nfunction bind<M extends (...args: any[]) => ReturnType<M>, Args extends any[]>(\n method: M,\n ...bound: Args\n) {\n return function (...args: TailOfTuple<Parameters<M>, Args>) {\n return method(...bound, ...args);\n };\n}\n\n/**\n * Create a Globus Connect Server Manager client. This client is used to\n * create a SDK context that is bound to a specific Globus Connect Server.\n */\nexport function getClient(configuration: GCSConfiguration) {\n return {\n configuration,\n endpoint: {\n get: bind(endpoint.get, configuration),\n update: bind(endpoint.update, configuration),\n patch: bind(endpoint.patch, configuration),\n updateSubscriptionId: bind(endpoint.updateSubscriptionId, configuration),\n updateOwner: bind(endpoint.updateOwner, configuration),\n updateOwnerString: bind(endpoint.updateOwnerString, configuration),\n resetOwnerString: bind(endpoint.resetOwnerString, configuration),\n },\n versioning: {\n info: bind(versioning.info, configuration),\n },\n collections: {\n get: bind(collections.get, configuration),\n getAll: bind(collections.getAll, configuration),\n create: bind(collections.create, configuration),\n remove: bind(collections.remove, configuration),\n update: bind(collections.update, configuration),\n patch: bind(collections.patch, configuration),\n updateOwnerString: bind(collections.updateOwnerString, configuration),\n resetOwnerString: bind(collections.resetOwnerString, configuration),\n },\n nodes: {\n get: bind(nodes.get, configuration),\n getAll: bind(nodes.getAll, configuration),\n create: bind(nodes.create, configuration),\n remove: bind(nodes.remove, configuration),\n update: bind(nodes.update, configuration),\n patch: bind(nodes.patch, configuration),\n },\n userCredentials: {\n get: bind(userCredentials.get, configuration),\n getAll: bind(userCredentials.getAll, configuration),\n create: bind(userCredentials.create, configuration),\n remove: bind(userCredentials.remove, configuration),\n update: bind(userCredentials.update, configuration),\n patch: bind(userCredentials.patch, configuration),\n },\n storageGateways: {\n get: bind(storageGateways.get, configuration),\n getAll: bind(storageGateways.getAll, configuration),\n create: bind(storageGateways.create, configuration),\n remove: bind(storageGateways.remove, configuration),\n update: bind(storageGateways.update, configuration),\n patch: bind(storageGateways.patch, configuration),\n },\n roles: {\n get: bind(roles.get, configuration),\n getAll: bind(roles.getAll, configuration),\n create: bind(roles.create, configuration),\n remove: bind(roles.remove, configuration),\n },\n https: {\n get: bind(https.get, configuration),\n remove: bind(https.remove, configuration),\n update: bind(https.update, configuration),\n },\n };\n}\n", "import _fetch from 'cross-fetch';\nimport { getClientInfoRequestHeaders } from '../core/info/index.js';\nimport { build } from '../core/url.js';\nimport { getSDKOptions, Service } from '../core/global.js';\nimport { isAuthorizationRequirementsError } from '../core/errors.js';\nimport { RESOURCE_SERVERS } from './auth/config.js';\nimport { isRefreshToken } from './auth/index.js';\nimport type { ServiceMethodOptions, SDKOptions } from './types.js';\nimport type {\n GCSConfiguration,\n UnauthenticatedGCSConfiguration,\n} from '../services/globus-connect-server/index.js';\n\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport enum HTTP_METHODS {\n POST = 'POST',\n GET = 'GET',\n DELETE = 'DELETE',\n PUT = 'PUT',\n PATCH = 'PATCH',\n}\n\n/**\n * Our domain-specific language for describing service requests.\n * @private\n */\ntype ServiceRequestDSL = {\n /**\n * The service that the request will be made to.\n */\n service: Service | GCSConfiguration | UnauthenticatedGCSConfiguration;\n /**\n * A specific scope that is required for the request. If a scope is provided,\n * the `serviceRequest` function will attempt to get a token for the request\n * based on the the `service` => `resource_server` mapping.\n * @deprecated Define using `resource_server` instead.\n */\n scope?: string;\n /**\n * The resource server that the request will be made to. This can be provided\n * instead of (or addition to) the `scope` property. If this is provided, the\n * `serviceRequest` function will attempt to get a token for the resource server\n * when a `manager` instance is provided in the SDK options.\n */\n resource_server?: string;\n /**\n * The path of the resource (appended to the service's host).\n */\n path: string;\n /**\n * The HTTP method to use for the request.\n */\n method?: HTTP_METHODS;\n /**\n * For some resources, it doesn't make sense for requests to be retried.\n * Setting this to `true` will prevent any retry logic from being applied.\n */\n preventRetry?: boolean;\n};\n\n/**\n * A helper function for making service requests that will handle the arguments\n * of `ServiceMethod` and `ServiceMethodDynamicSegments` functions in a uniform\n * way.\n *\n * @example\n * ```ts\n * export const get = function (flow_id, options?, sdkOptions?) {\n * return serviceRequest({\n * service: FLOWS.ID,\n * scope: SCOPES.VIEW_FLOWS,\n * path: `/flows/${flow_id}`,\n * }, options, sdkOptions);\n * } satisfies ServiceMethodDynamicSegments<string, Record<string, any>>;\n * ```\n *\n * @private\n * @param config The ServiceRequestDSL for the request.\n * @param options The options passed to the service method.\n * @param passedSdkOptions The SDK options passed to the service method.\n * @returns\n */\nexport async function serviceRequest(\n this: unknown,\n config: ServiceRequestDSL,\n options?: ServiceMethodOptions,\n passedSdkOptions?: SDKOptions,\n): Promise<Response> {\n /**\n * Get the SDK options, merging any passed options with the global options.\n */\n const sdkOptions = getSDKOptions(passedSdkOptions);\n const injectedFetchOptions = sdkOptions?.fetch?.options || {};\n\n const headers: Record<string, string> = {\n ...getClientInfoRequestHeaders(),\n ...options?.headers,\n /**\n * Key/value pairs found in the `fetch` options override those found in the\n * service method options.\n */\n ...injectedFetchOptions.headers,\n };\n\n /**\n * The `AuthorizationManager` instance provided with the call.\n */\n const manager = options?.manager || sdkOptions?.manager;\n\n let token;\n /**\n * If a `resource_server` was provided, and the SDK is configured with a `manager`\n * instance, we'll try to get a token for the resource server and use it.\n */\n if (config.resource_server && manager) {\n token = manager.tokens.getByResourceServer(config.resource_server);\n if (token) {\n headers['Authorization'] = `Bearer ${token.access_token}`;\n }\n }\n /**\n * If the `scope` property is provided, and the SDK is configured with a `manager`,\n * we'll try to map the service to a resource server. This is mostly to support\n * backwards compatibility of the `scope` property being used in the `ServiceRequestDSL`.\n *\n * @todo This condition will likely be removed in a future version in favor of using `resource_server` to\n * configure a service request.\n */\n if (\n config.scope &&\n manager &&\n /**\n * Only attempt to get a token if the `service` property is a string or has an `endpoint_id` property (GCSConfiguration).\n */\n (typeof config.service === 'string' || 'endpoint_id' in config.service)\n ) {\n const resourceServer =\n typeof config.service === 'string'\n ? RESOURCE_SERVERS[config.service]\n : // For `GCSConfiguration` objects, the `endpoint_id` is the resource server.\n config.service.endpoint_id;\n\n token = manager.tokens.getByResourceServer(resourceServer);\n if (token) {\n headers['Authorization'] = `Bearer ${token.access_token}`;\n }\n }\n\n /**\n * If a raw body was provided, use that. Otherwise, if a payload was provided, serialize it.\n */\n let body = options?.body;\n if (!body && options?.payload) {\n body = JSON.stringify(options.payload);\n }\n\n /**\n * If `Content-Type` header was not provided, and there is a body, we assume it is JSON.\n */\n if (!headers?.['Content-Type'] && body) {\n headers['Content-Type'] = 'application/json';\n }\n\n const url = build(\n config.service,\n config.path,\n {\n search: options?.query,\n },\n sdkOptions,\n );\n\n const init = {\n method: config.method,\n body,\n ...injectedFetchOptions,\n /**\n * Merge the headers from the options and SDK options.\n */\n headers,\n };\n\n /**\n * The request handler for the fetch call. This can be overridden by providing a\n * `__callable` property in the `fetch` options.\n */\n let handler = _fetch;\n /* eslint-disable no-underscore-dangle */\n if (injectedFetchOptions?.__callable) {\n handler = injectedFetchOptions.__callable.bind(this);\n /**\n * Remove the `__callable` property from the `fetch` options before passing the options along.\n */\n delete init.__callable;\n }\n /* eslint-enable no-underscore-dangle */\n\n /**\n * If the resource is configured to prevent retries, there is no `manager` instance,\n * or token, the request will be made as-is.\n */\n if (config.preventRetry || !manager || !token || !isRefreshToken(token)) {\n return handler(url, init);\n }\n\n /**\n * Automatic Retry Handling\n */\n\n const initialResponse = await handler(url, init);\n /**\n * If the response is \"ok\", we can return it as-is.\n */\n if (initialResponse.ok) {\n return initialResponse;\n }\n /**\n * Do a safe check to see if the response contains any authorization requirements.\n */\n let hasAuthorizationRequirements;\n try {\n hasAuthorizationRequirements = isAuthorizationRequirementsError(\n /**\n * It is important to clone the response before calling `json` avoid\n * `body used already for [...]` errors when the initial response is\n * returned.\n */\n await initialResponse.clone().json(),\n );\n } catch (_e) {\n hasAuthorizationRequirements = false;\n }\n /**\n * We only attempt to refresh the original token supplied with teh request, if the\n * response status is 401 and the response does not contain any authorization requirements.\n */\n const shouldAttemptTokenRefresh = initialResponse.status === 401 && !hasAuthorizationRequirements;\n if (shouldAttemptTokenRefresh) {\n const newToken = await manager.refreshToken(token);\n if (!newToken) {\n return initialResponse;\n }\n /**\n * Retry the request with the new token.\n */\n return handler(url, {\n ...init,\n headers: {\n ...init.headers,\n Authorization: `Bearer ${newToken.access_token}`,\n },\n });\n }\n /**\n * No retry was attempted, return the initial response.\n */\n return initialResponse;\n}\n", "import type { Info } from './index.js';\n\n/**\n * @private\n */\nexport const CLIENT_INFO_HEADER = `X-Globus-Client-Info`;\n\nlet ENABLED = true;\n/**\n * Disable the client information header from being included in requests (enabled by default).\n * @private\n */\nexport function disable() {\n ENABLED = false;\n}\n\n/**\n * Enables the client information header to be included in requests.\n * @private\n */\nexport function enable() {\n ENABLED = true;\n}\n\n/**\n * Whether or not the client information header should be sent with requests.\n * @private\n */\nexport function isEnabled() {\n return ENABLED;\n}\n\nconst INFOS_SEPERATOR = ';';\nconst INFO_ITEM_SEPARATOR = ',';\n\n/**\n * Exported for test purposes only.\n * @private\n */\nexport function toString(info: Info | Info[]) {\n const infos = Array.isArray(info) ? info : [info];\n return infos\n .map((i) =>\n Object.entries(i)\n .map(([key, value]) => `${key}=${value}`)\n .join(INFO_ITEM_SEPARATOR),\n )\n .join(INFOS_SEPERATOR);\n}\n", "// x-release-please-start-version\nexport const VERSION = '6.2.0';\n// x-release-please-end\n", "/**\n * @module Information\n * @description This module is mostly intended for internal use, but can be helpful\n * identifying information about the SDK package you are using at runtime.\n */\nimport { toString, isEnabled, CLIENT_INFO_HEADER } from './private.js';\nimport { VERSION as _VERSION } from './version.js';\n\nexport type Version = string;\n\n/**\n * The version of the `@globus/sdk` package that is in use.\n */\nexport const VERSION: Version = _VERSION;\n\nexport type Info = {\n product: string;\n version: Version;\n};\n\n/**\n * The client information identifier for this package.\n */\nexport const CLIENT_INFO: Info = {\n product: 'javascript-sdk',\n version: VERSION,\n};\n\nlet INFOS: Info[] = [CLIENT_INFO];\n\n/**\n * Add a client information identifier to the existing SDK information.\n */\nexport function addClientInfo(info: Info) {\n INFOS = INFOS.concat(info);\n}\n/**\n * Get the current client information as a string.\n */\nexport function getClientInfo(): string {\n return toString(INFOS);\n}\n\nexport function getClientInfoRequestHeaders(): Record<string, string> {\n if (!isEnabled()) {\n return {};\n }\n return {\n [CLIENT_INFO_HEADER]: getClientInfo(),\n };\n}\n", "import type { Environment } from '../../core/global.js';\n\nexport const ID = 'TRANSFER' as const;\n\nexport const SCOPES = {\n ALL: 'urn:globus:auth:scope:transfer.api.globus.org:all',\n};\n\nexport const HOSTS: Partial<Record<Environment, string>> = {\n sandbox: 'transfer.api.sandbox.globuscs.info',\n production: 'transfer.api.globusonline.org',\n staging: 'transfer.api.staging.globuscs.info',\n integration: 'transfer.api.integration.globuscs.info',\n test: 'transfer.api.test.globuscs.info',\n preview: 'transfer.api.preview.globus.org',\n};\n", "import type { Environment } from '../../core/global.js';\n\nexport const ID = 'FLOWS' as const;\nexport const HOSTS: Partial<Record<Environment, string>> = {\n sandbox: 'sandbox.flows.automate.globus.org',\n production: 'flows.globus.org',\n staging: 'staging.flows.automate.globus.org',\n integration: 'integration.flows.automate.globus.org',\n test: 'test.flows.automate.globus.org',\n preview: 'preview.flows.automate.globus.org',\n};\n\n/**\n * @see https://docs.globus.org/api/flows/overview/#scopes\n */\nexport const SCOPES = {\n MANAGE_FLOWS: 'https://auth.globus.org/scopes/eec9b274-0c81-4334-bdc2-54e90e689b9a/manage_flows',\n VIEW_FLOWS: 'https://auth.globus.org/scopes/eec9b274-0c81-4334-bdc2-54e90e689b9a/view_flows',\n RUN: 'https://auth.globus.org/scopes/eec9b274-0c81-4334-bdc2-54e90e689b9a/run',\n RUN_STATUS: 'https://auth.globus.org/scopes/eec9b274-0c81-4334-bdc2-54e90e689b9a/run_status',\n RUN_MANAGE: 'https://auth.globus.org/scopes/eec9b274-0c81-4334-bdc2-54e90e689b9a/run_manage',\n};\n", "import type { Environment } from '../../core/global.js';\n\nexport const ID = 'TIMERS' as const;\nexport const HOSTS: Partial<Record<Environment, string>> = {\n sandbox: 'sandbox.timer.automate.globus.org',\n production: 'timer.automate.globus.org',\n staging: 'staging.timer.automate.globus.org',\n integration: 'integration.timer.automate.globus.org',\n test: 'test.timer.automate.globus.org',\n preview: 'preview.timer.automate.globus.org',\n};\n", "import type { Environment } from '../../core/global.js';\n\nexport const ID = 'GROUPS' as const;\nexport const HOSTS: Partial<Record<Environment, string>> = {\n sandbox: 'groups.api.sandbox.globuscs.info',\n production: 'groups.api.globus.org',\n staging: 'groups.api.staging.globuscs.info',\n integration: 'groups.api.integration.globuscs.info',\n test: 'groups.api.test.globuscs.info',\n preview: 'groups.api.preview.globuscs.info',\n};\n\n/**\n * @see https://docs.globus.org/api/groups/#scopes\n */\nexport const SCOPES = {\n ALL: 'urn:globus:auth:scope:groups.api.globus.org:all',\n VIEW_MY: 'urn:globus:auth:scope:groups.api.globus.org:view_my_groups_and_membership',\n};\n", "import type { Environment } from '../../core/global.js';\n\nexport const ID = 'SEARCH' as const;\nexport const HOSTS: Partial<Record<Environment, string>> = {\n sandbox: 'search.api.sandbox.globuscs.info',\n production: 'search.api.globus.org',\n staging: 'search.api.staging.globuscs.info',\n integration: 'search.api.integration.globuscs.info',\n test: 'search.api.test.globuscs.info',\n preview: 'search.api.preview.globus.org',\n};\n\n/**\n * @see https://docs.globus.org/api/search/api_usage/#scopes\n */\nexport const SCOPES = {\n ALL: 'urn:globus:auth:scope:search.api.globus.org:all',\n INGEST: 'urn:globus:auth:scope:search.api.globus.org:ingest',\n SEARCH: 'urn:globus:auth:scope:search.api.globus.org:search',\n};\n", "import type { Environment } from '../../core/global.js';\n\nexport const ID = 'COMPUTE' as const;\nexport const HOSTS: Partial<Record<Environment, string>> = {\n sandbox: 'compute.api.sandbox.globuscs.info',\n production: 'compute.api.globus.org',\n staging: 'compute.api.staging.globuscs.info',\n integration: 'compute.api.integration.globuscs.info',\n test: 'compute.api.test.globuscs.info',\n preview: 'compute.api.preview.globus.org',\n};\n\nexport const SCOPES = {\n ALL: 'https://auth.globus.org/scopes/facd7ccc-c5f4-42aa-916b-a0e270e2c2a9/all',\n};\n", "import { ID as TRANSFER } from '../transfer/config.js';\nimport { ID as FLOWS } from '../flows/config.js';\nimport { ID as TIMERS } from '../timers/config.js';\nimport { ID as GROUPS } from '../groups/config.js';\nimport { ID as SEARCH } from '../search/config.js';\nimport { ID as COMPUTE } from '../compute/config.js';\n\nimport type { Environment } from '../../core/global.js';\n\nexport const ID = 'AUTH' as const;\nexport const HOSTS: Partial<Record<Environment, string>> = {\n integration: 'auth.integration.globuscs.info',\n sandbox: 'auth.sandbox.globuscs.info',\n production: 'auth.globus.org',\n test: 'auth.test.globuscs.info',\n staging: 'auth.staging.globuscs.info',\n preview: 'auth.preview.globus.org',\n};\n\nexport const SCOPES = {\n VIEW_IDENTITIES: 'urn:globus:auth:scope:auth.globus.org:view_identities',\n};\n\nexport const RESOURCE_SERVERS = {\n [ID]: 'auth.globus.org',\n [TRANSFER]: 'transfer.api.globus.org',\n [FLOWS]: 'flows.globus.org',\n [GROUPS]: 'groups.api.globus.org',\n [SEARCH]: 'search.api.globus.org',\n [TIMERS]: '524230d7-ea86-4a52-8312-86065a9e0417',\n [COMPUTE]: 'funcx_service',\n};\n", "/**\n * @module Errors\n * @example\n * import { errors } from \"globus/sdk\";\n * if (errors.isConsentRequiredError(...)) { ... }\n */\nimport type { AuthorizationQueryParameters } from '../services/auth/index.js';\nimport type { AuthorizationRequestParameters } from './authorization/pkce.js';\n\nexport class EnvironmentConfigurationError extends Error {\n override name = 'EnvironmentConfigurationError';\n\n constructor(variable: string, value: unknown) {\n super();\n // eslint-disable-next-line @typescript-eslint/restrict-template-expressions\n this.message = `Invalid configuration value provided for ${variable} (${value}).`;\n }\n}\n\nexport type WellFormedError = {\n code: string;\n message: string;\n};\n\n/**\n * Test an unknown argument to determine if it can be further parsed as a potentnial known error.\n */\nexport function isErrorWellFormed(test: unknown): test is WellFormedError {\n return typeof test === 'object' && test !== null && 'code' in test && 'message' in test;\n}\n\n/**\n * An error that indicates that the user must provide consent for additional scopes.\n * - This error typically encountered when interacting with Globus Transfer or Globus Connect Server.\n * - Many instances of `code: \"ConsentRequire\"` in the Globus platform are being migrated to `AuthorizationRequirementsError`.\n */\nexport type ConsentRequiredError = {\n code: 'ConsentRequired';\n required_scopes: string[];\n [key: string]: unknown;\n};\n\n/**\n * Whether or not the provide object is recognized as a `ConsentRequiredError`.\n * @see {@link ConsentRequiredError}\n */\nexport function isConsentRequiredError(test: unknown): test is ConsentRequiredError {\n return (\n isErrorWellFormed(test) &&\n test.code === 'ConsentRequired' &&\n 'required_scopes' in test &&\n Array.isArray(test.required_scopes)\n );\n}\n\n/**\n * An error that includes an `authorization_parameters` property, a.k.a \"G.A.R.E\".\n *\n * A well-known error shape is provided by services when additional authorization requirements must be met by the session.\n * This object can be converted to parameters accepted by Globus Auth using `sdk.errors.toAuthorizationQueryParams()`.\n */\nexport type AuthorizationRequirementsError = {\n authorization_parameters: {\n session_message?: string;\n session_required_identities?: string[];\n session_required_mfa?: boolean;\n session_required_single_domain?: string[];\n session_required_policies?: string[];\n prompt?: string;\n required_scopes?: string[];\n };\n /**\n * @todo At the moment, most Globus services do not guarentee a `code` property for this error type.\n * Once it becomes more common, this type (and the `isAuthorizationRequirementsError` function) should be updated.\n * @see https://globus-sdk-python.readthedocs.io/en/stable/experimental/auth_requirements_errors.html\n */\n // code: string;\n [key: string]: unknown;\n};\n/**\n * Keys that should not be included in the query string object (not recognized by Globus Auth),\n * but are found on the `AuthorizationRequirementsError` object.\n */\nconst NO_OP_KEYS: (keyof AuthorizationRequirementsError)[] = ['required_scopes'];\n/**\n * Convert an `AuthorizationRequirementsError` to a query string object accepted by Globus Auth.\n */\nexport function toAuthorizationQueryParams(\n error: AuthorizationRequirementsError,\n): AuthorizationQueryParameters & Partial<AuthorizationRequestParameters> {\n /**\n * Map properties from the `AuthorizationRequirementsError` to accepted query parameters.\n */\n const mapped = {\n /**\n * `required_scopes` isn't a query parameter accepted by Globus Auth, but\n * in most cases the `required_scopes` represented in the error are intended\n * to be included in the `scopes` (OAuth) parameter.\n * @see https://docs.globus.org/api/auth/sessions/#client-initiated-authns\n */\n scope: error.authorization_parameters.required_scopes?.join(' '),\n /**\n * We still include the entire `authorization_parameters` object in addition to the mapped values for parsing.\n */\n ...error.authorization_parameters,\n };\n\n return Object.entries(mapped).reduce((acc, [key, v]) => {\n /**\n * Remove keys that are not recognized by Globus Auth and empty values.\n */\n if (NO_OP_KEYS.includes(key) || v === undefined || v === null) {\n return acc;\n }\n /**\n * All other values are converted to strings.\n */\n let value = v;\n if (Array.isArray(value)) {\n value = value.join(',');\n } else if (typeof v === 'boolean') {\n value = value ? 'true' : 'false';\n }\n return { ...acc, [key]: value };\n }, {});\n}\n\n/**\n * Check if an object is an `AuthorizationRequirementsError`.\n * @see {@link AuthorizationRequirementsError}\n */\nexport function isAuthorizationRequirementsError(\n test: unknown,\n): test is AuthorizationRequirementsError {\n return (\n typeof test === 'object' &&\n test !== null &&\n 'authorization_parameters' in test &&\n typeof test.authorization_parameters === 'object' &&\n test.authorization_parameters !== null\n );\n}\n", "const LOG_LEVELS = ['debug', 'info', 'warn', 'error'] as const;\n\ntype LogLevel = (typeof LOG_LEVELS)[number];\n\ntype LogHandler = (...args: unknown[]) => void;\n\ntype Logger = {\n log: LogHandler;\n error?: LogHandler;\n warn?: LogHandler;\n info?: LogHandler;\n debug?: LogHandler;\n};\n/**\n * No logger is set by default.\n */\nlet logger: Logger | undefined;\n/**\n * By default, the logger is set to `error`.\n */\nlet level: number = LOG_LEVELS.indexOf('error');\n/**\n * Set the global logger for the SDK.\n * @param logMechanism The logger to use.\n * @example `log.setLogger(console)`\n */\nexport function setLogger(logMechanism: Logger) {\n logger = logMechanism;\n}\n/**\n * Set the global log level for the logger.\n * @param severity The severity to set the logger to.\n * @example `log.setLogLevel('info')`\n */\nexport function setLogLevel(severity: LogLevel) {\n level = LOG_LEVELS.indexOf(severity);\n}\n/**\n * Log a message to the logger.\n * @param severity The severity of the log entry.\n * @param args The message to log.\n * @private\n */\nexport function log(severity: LogLevel, ...args: unknown[]) {\n if (!logger) return;\n /**\n * If the severity of the entry is less than the logger's configured severity, do not log.\n */\n if (LOG_LEVELS.indexOf(severity) < level) {\n return;\n }\n /**\n * If the logger does not have a handler for the specified severity, use the default `log` handler.\n */\n const handler = logger[severity] ?? logger.log;\n handler(...args);\n}\n", "import * as AUTH from '../services/auth/config.js';\nimport * as TRANSFER from '../services/transfer/config.js';\nimport * as FLOWS from '../services/flows/config.js';\nimport * as GROUPS from '../services/groups/config.js';\nimport * as SEARCH from '../services/search/config.js';\nimport * as TIMERS from '../services/timers/config.js';\nimport * as COMPUTE from '../services/compute/config.js';\n\nimport { EnvironmentConfigurationError } from './errors.js';\nimport { SDKOptions } from '../services/types.js';\nimport { log } from './logger.js';\n\nfunction getRuntime() {\n return typeof window !== 'undefined' ? window : process;\n}\n\nfunction isBrowser(runtime: Window | NodeJS.Process): runtime is Window {\n return typeof window === typeof runtime;\n}\n\nfunction env<T>(key: string, fallback: T): T {\n const runtime = getRuntime();\n let envConfiguration;\n if (isBrowser(runtime)) {\n envConfiguration = runtime;\n } else {\n envConfiguration = runtime.env;\n }\n if (key in envConfiguration) {\n return (envConfiguration as Record<typeof key, T>)[key];\n }\n return fallback;\n}\n\n/**\n * Handlers for: GLOBUS_SDK_ENVIRONMENT\n */\nexport const ENVIRONMENTS = {\n PRODUCTION: 'production',\n PREVIEW: 'preview',\n STAGING: 'staging',\n SANDBOX: 'sandbox',\n INTEGRATION: 'integration',\n TEST: 'test',\n} as const;\n\nexport type Environment = (typeof ENVIRONMENTS)[keyof typeof ENVIRONMENTS];\n\nexport const SERVICES = {\n [AUTH.ID]: AUTH.ID,\n [TRANSFER.ID]: TRANSFER.ID,\n [FLOWS.ID]: FLOWS.ID,\n [GROUPS.ID]: GROUPS.ID,\n [SEARCH.ID]: SEARCH.ID,\n [TIMERS.ID]: TIMERS.ID,\n [COMPUTE.ID]: COMPUTE.ID,\n};\n\nexport type Service = keyof typeof SERVICES;\n\nexport const SERVICE_HOSTS: Record<Service, Partial<Record<Environment, string>>> = {\n [AUTH.ID]: AUTH.HOSTS,\n [TRANSFER.ID]: TRANSFER.HOSTS,\n [FLOWS.ID]: FLOWS.HOSTS,\n [GROUPS.ID]: GROUPS.HOSTS,\n [SEARCH.ID]: SEARCH.HOSTS,\n [TIMERS.ID]: TIMERS.HOSTS,\n [COMPUTE.ID]: COMPUTE.HOSTS,\n};\n\n/**\n * Get the computed SDK options based on the runtime.\n * This should be used any time we're referencing the SDK options in\n * methods to ensure we're including any global overrides.\n */\nexport function getSDKOptions(options?: SDKOptions) {\n let globalOptions = env<string | SDKOptions>('GLOBUS_SDK_OPTIONS', {});\n if (typeof globalOptions === 'string') {\n globalOptions = JSON.parse(globalOptions) as SDKOptions;\n }\n return {\n ...globalOptions,\n ...options,\n fetch: {\n ...globalOptions?.fetch,\n ...options?.fetch,\n options: {\n ...globalOptions?.fetch?.options,\n ...options?.fetch?.options,\n headers: {\n ...globalOptions?.fetch?.options?.headers,\n ...options?.fetch?.options?.headers,\n },\n },\n },\n };\n}\n\nexport function getEnvironment(): Environment {\n const globalOptions = getSDKOptions();\n const environment = env<Environment>(\n 'GLOBUS_SDK_ENVIRONMENT',\n globalOptions?.environment ?? ENVIRONMENTS.PRODUCTION,\n );\n if (globalOptions?.environment && environment !== globalOptions.environment) {\n log(\n 'debug',\n 'GLOBUS_SDK_ENVIRONMENT and GLOBUS_SDK_OPTIONS.environment are set to different values. GLOBUS_SDK_ENVIRONMENT will take precedence',\n );\n }\n if (!environment || !Object.values(ENVIRONMENTS).includes(environment)) {\n throw new EnvironmentConfigurationError('GLOBUS_SDK_ENVIRONMENT', environment);\n }\n return environment;\n}\n\n/**\n * Handlers for: GLOBUS_SDK_VERIFY_SSL\n * Since disabling SSL is at least not-recommended, we consider\n * this value to always be true, but provide a warning when it set\n * to one of the falsey values for informational purposes.\n *\n * Taking direction from `globus-sdk-python` for possible false values\n * @see https://github.com/globus/globus-sdk-python/blob/18eced9c12e2ec41745d1be183148845198b999c/src/globus_sdk/config/env_vars.py#L20\n */\nexport function getVerifySSL(): boolean {\n const verifySSLTemp = env<string>('GLOBUS_SDK_VERIFY_SSL', 'true').toLowerCase();\n if (['n', 'no', 'f', 'false', 'off', '0'].includes(verifySSLTemp)) {\n log(\n 'warn',\n 'Setting GLOBUS_SDK_VERIFY_SSL to false is disallowed in the Globus JavaScript SDK. It will always true in this context',\n );\n }\n return true;\n}\n\n/**\n * Handlers for: GLOBUS_SDK_HTTP_TIMEOUT\n */\nexport function getHttpTimeout() {\n const timeout = Number(env<string | number>('GLOBUS_SDK_HTTP_TIMEOUT', 60));\n if (timeout === -1) {\n return null;\n }\n return timeout;\n}\n\nexport function getServiceHost(service: Service, environment: Environment = getEnvironment()) {\n return SERVICE_HOSTS[service][environment];\n}\n\nexport function getServiceBaseUrl(service: Service, environment: Environment = getEnvironment()) {\n const host = getServiceHost(service, environment);\n return env(`GLOBUS_SDK_SERVICE_URL_${service}`, host ? `https://${host}` : undefined);\n}\n", "import { getServiceBaseUrl, getEnvironment, Environment, Service } from './global.js';\nimport type {\n GCSConfiguration,\n UnauthenticatedGCSConfiguration,\n} from '../services/globus-connect-server/index.js';\nimport { SDKOptions } from '../services/types.js';\n\n/**\n * An extremely simplified parameter serializer based on our current needs.\n *\n * **This is intended for internal @globus/sdk use only.**\n *\n * @private\n */\nexport function stringifyParameters(parameters: {\n [key: string]:\n | string\n | number\n | boolean\n | Array<string | number | null | undefined>\n | null\n | undefined;\n}) {\n const search = new URLSearchParams();\n\n Array.from(Object.entries(parameters)).forEach(([key, value]) => {\n if (Array.isArray(value)) {\n /**\n * Arrays are converted to comma-separated strings.\n */\n search.set(key, value.join(','));\n } else if (value !== undefined) {\n search.set(key, String(value));\n }\n });\n\n return search.toString();\n}\n\n/**\n * Return the base URL for a service (based on the environment).\n * @param service The service to build the URL for.\n * @param path The path to the resource.\n * @param environment The environment to use.\n */\nexport function getServiceURL(\n service: Service,\n path = '',\n environment: Environment = getEnvironment(),\n): URL {\n const base = getServiceBaseUrl(service, environment);\n return new URL(path, base);\n}\n\n/**\n * Build a URL for a service or GCSConfiguration.\n *\n * @param service The service identifier or GCSConfiguration object to build the URL for.\n * @param path The path to the resource.\n * @param options Additional options for the URL.\n */\nexport function build(\n serviceOrConfiguration: Service | GCSConfiguration | UnauthenticatedGCSConfiguration,\n path: string,\n options?: {\n search?: Parameters<typeof stringifyParameters>[0];\n },\n sdkOptions?: SDKOptions,\n): string {\n let url;\n if (typeof serviceOrConfiguration === 'object') {\n url = new URL(path, serviceOrConfiguration.host);\n } else {\n url = getServiceURL(serviceOrConfiguration, path, sdkOptions?.environment);\n }\n if (options && options.search) {\n url.search = stringifyParameters(options.search);\n }\n return url.toString();\n}\n", "/**\n * @description A wrapper around the Globus Auth service.\n * @group Service\n * @see [Globus Auth API Documentation](https://docs.globus.org/api/auth/)\n * @module\n */\nimport { build } from '../../core/url.js';\n\nimport * as AUTH from './config.js';\n\nimport type { Token, TokenWithRefresh, TokenResponse } from './types.js';\n\n/**\n * @private\n * @internal\n */\nexport const CONFIG = AUTH;\n\nexport type * from './types.js';\n\n/**\n * Query parameters that can be passed to the authorization endpoint.\n * @see https://docs.globus.org/api/auth/reference/#authorization_code_grant_preferred\n * @see https://docs.globus.org/api/auth/sessions/#client-initiated-authns\n */\nexport type AuthorizationQueryParameters = {\n prompt?: string;\n session_message?: string;\n session_required_identities?: string;\n session_required_single_domain?: string;\n session_required_mfa?: 'true' | 'false';\n session_required_policies?: string;\n};\n\nexport function getAuthorizationEndpoint() {\n return build(AUTH.ID, '/v2/oauth2/authorize');\n}\n\nexport function getTokenEndpoint() {\n return build(AUTH.ID, '/v2/oauth2/token');\n}\n\nexport * as identities from './service/identities/index.js';\nexport * as oauth2 from './service/oauth2/index.js';\n\nexport function isToken(check: unknown): check is Token {\n return typeof check === 'object' && check !== null && 'access_token' in check;\n}\n\nexport function isRefreshToken(check: unknown): check is TokenWithRefresh {\n return isToken(check) && check !== null && 'refresh_token' in check;\n}\n\nexport function isGlobusAuthTokenResponse(check: unknown): check is TokenResponse {\n /**\n * @todo This could be made more robust by checking whether the `resource_server` is a well-known value.\n */\n return isToken(check) && check !== null && 'resource_server' in check;\n}\n\nexport * as utils from './utils.js';\n", "import { HTTP_METHODS, serviceRequest } from '../../shared.js';\n\nimport type { OpenAPI, GCSServiceMethod, GCSServiceMethodDynamicSegments } from '../index.js';\n\nimport type { JSONFetchResponse } from '../../types.js';\n\n/**\n * @see https://docs.globus.org/globus-connect-server/v5.4/api/openapi_Collections/#listCollections\n */\nexport const getAll = function (\n configuration,\n options?,\n sdkOptions?,\n): Promise<\n JSONFetchResponse<\n OpenAPI.operations['listCollections']['responses']['200']['content']['application/json']\n >\n> {\n return serviceRequest(\n {\n service: configuration,\n resource_server: configuration.endpoint_id,\n path: `/api/collections`,\n },\n options,\n sdkOptions,\n );\n} satisfies GCSServiceMethod<{\n query?: OpenAPI.operations['listCollections']['parameters']['query'];\n}>;\n\n/**\n * @see https://docs.globus.org/globus-connect-server/v5.4/api/openapi_Collections/#getCollection\n */\nexport const get = function (\n configuration,\n collection_id,\n options?,\n sdkOptions?,\n): Promise<\n JSONFetchResponse<\n OpenAPI.operations['getCollection']['responses']['200']['content']['application/json']\n >\n> {\n return serviceRequest(\n {\n service: configuration,\n resource_server: configuration.endpoint_id,\n path: `/api/collections/${collection_id}`,\n },\n options,\n sdkOptions,\n );\n} satisfies GCSServiceMethodDynamicSegments<\n OpenAPI.operations['getCollection']['parameters']['path']['collection_id'],\n {\n query?: OpenAPI.operations['getCollection']['parameters']['query'];\n }\n>;\n\n/**\n * @see https://docs.globus.org/globus-connect-server/v5.4/api/openapi_Collections/#deleteCollection\n */\nexport const remove = function (\n configuration,\n collection_id,\n options?,\n sdkOptions?,\n): Promise<\n JSONFetchResponse<\n OpenAPI.operations['deleteCollection']['responses']['200']['content']['application/json']\n >\n> {\n return serviceRequest(\n {\n service: configuration,\n resource_server: configuration.endpoint_id,\n path: `/api/collections/${collection_id}`,\n method: HTTP_METHODS.DELETE,\n },\n options,\n sdkOptions,\n );\n} satisfies GCSServiceMethodDynamicSegments<\n OpenAPI.operations['deleteCollection']['parameters']['path']['collection_id'],\n {\n query?: never;\n payload?: never;\n }\n>;\n\n/**\n * @see https://docs.globus.org/globus-connect-server/v5.4/api/openapi_Collections/#postCollection\n */\nexport const create = function (\n configuration,\n options,\n sdkOptions?,\n): Promise<\n JSONFetchResponse<\n OpenAPI.operations['postCollection']['responses']['201']['content']['application/json']\n >\n> {\n return serviceRequest(\n {\n service: configuration,\n resource_server: configuration.endpoint_id,\n path: `/api/collections`,\n method: HTTP_METHODS.POST,\n },\n options,\n sdkOptions,\n );\n} satisfies GCSServiceMethod<{\n payload: OpenAPI.operations['postCollection']['requestBody']['content']['application/json'];\n}>;\n\n/**\n * @see https://docs.globus.org/globus-connect-server/v5.4/api/openapi_Collections/#putCollection\n */\nexport const update = function (\n configuration,\n collection_id,\n options,\n sdkOptions?,\n): Promise<\n JSONFetchResponse<\n OpenAPI.operations['putCollection']['responses']['200']['content']['application/json']\n >\n> {\n return serviceRequest(\n {\n service: configuration,\n resource_server: configuration.endpoint_id,\n path: `/api/collections/${collection_id}`,\n method: HTTP_METHODS.PUT,\n },\n options,\n sdkOptions,\n );\n} satisfies GCSServiceMethodDynamicSegments<\n OpenAPI.operations['putCollection']['parameters']['path']['collection_id'],\n {\n payload: OpenAPI.operations['putCollection']['requestBody']['content']['application/json'];\n }\n>;\n\n/**\n * @see https://docs.globus.org/globus-connect-server/v5.4/api/openapi_Collections/#patchCollection\n */\nexport const patch = function (\n configuration,\n collection_id,\n options,\n sdkOptions?,\n): Promise<\n JSONFetchResponse<\n OpenAPI.operations['patchCollection']['responses']['200']['content']['application/json']\n >\n> {\n return serviceRequest(\n {\n service: configuration,\n resource_server: configuration.endpoint_id,\n path: `/api/collections/${collection_id}`,\n method: HTTP_METHODS.PATCH,\n },\n options,\n sdkOptions,\n );\n} satisfies GCSServiceMethodDynamicSegments<\n OpenAPI.operations['patchCollection']['parameters']['path']['collection_id'],\n {\n payload: Partial<\n OpenAPI.operations['patchCollection']['requestBody']['content']['application/json']\n >;\n }\n>;\n\n/**\n * @see https://docs.globus.org/globus-connect-server/v5.4/api/openapi_Collections/#putCollectionOwnerString\n */\nexport const updateOwnerString = function (\n configuration,\n collection_id,\n options,\n sdkOptions?,\n): Promise<\n JSONFetchResponse<\n OpenAPI.operations['putCollectionOwnerString']['responses']['200']['content']['application/json']\n >\n> {\n return serviceRequest(\n {\n service: configuration,\n resource_server: configuration.endpoint_id,\n path: `/api/collections/${collection_id}/owner_string`,\n method: HTTP_METHODS.PUT,\n },\n options,\n sdkOptions,\n );\n} satisfies GCSServiceMethodDynamicSegments<\n OpenAPI.operations['putCollectionOwnerString']['parameters']['path']['collection_id'],\n {\n payload: Partial<\n OpenAPI.operations['putCollectionOwnerString']['requestBody']['content']['application/json']\n >;\n }\n>;\n\n/**\n * @see https://docs.globus.org/globus-connect-server/v5.4/api/openapi_Collections/#deleteCollectionOwnerString\n */\nexport const resetOwnerString = function (\n configuration,\n collection_id,\n options,\n sdkOptions?,\n): Promise<\n JSONFetchResponse<\n OpenAPI.operations['deleteCollectionOwnerString']['responses']['200']['content']['application/json']\n >\n> {\n return serviceRequest(\n {\n service: configuration,\n resource_server: configuration.endpoint_id,\n path: `/api/collections/${collection_id}/owner_string`,\n method: HTTP_METHODS.DELETE,\n },\n options,\n sdkOptions,\n );\n} satisfies GCSServiceMethodDynamicSegments<\n OpenAPI.operations['deleteCollectionOwnerString']['parameters']['path']['collection_id'],\n {}\n>;\n", "import { HTTP_METHODS, serviceRequest } from '../../shared.js';\n\nimport type { OpenAPI, GCSServiceMethod } from '../index.js';\nimport type { JSONFetchResponse } from '../../types.js';\n\n/**\n * @see https://docs.globus.org/globus-connect-server/v5.4/api/openapi_Endpoint/#getEndpoint\n */\nexport const get = function (\n configuration,\n options?,\n sdkOptions?,\n): Promise<\n JSONFetchResponse<\n OpenAPI.operations['getEndpoint']['responses']['200']['content']['application/json']\n >\n> {\n return serviceRequest(\n {\n service: configuration,\n resource_server: configuration.endpoint_id,\n path: `/api/endpoint`,\n },\n options,\n sdkOptions,\n );\n} satisfies GCSServiceMethod<{\n query?: never;\n payload?: never;\n}>;\n\n/**\n * @see https://docs.globus.org/globus-connect-server/v5.4/api/openapi_Endpoint/#putEndpoint\n */\nexport const update = function (\n configuration,\n options?,\n sdkOptions?,\n): Promise<\n JSONFetchResponse<\n OpenAPI.operations['putEndpoint']['responses']['200']['content']['application/json']\n >\n> {\n return serviceRequest(\n {\n service: configuration,\n resource_server: configuration.endpoint_id,\n path: `/api/endpoint`,\n method: HTTP_METHODS.PUT,\n },\n options,\n sdkOptions,\n );\n} satisfies GCSServiceMethod<{\n payload: Partial<OpenAPI.operations['putEndpoint']['requestBody']['content']['application/json']>;\n}>;\n\n/**\n * @see https://docs.globus.org/globus-connect-server/v5.4/api/openapi_Endpoint/#patchEndpoint\n */\nexport const patch = function (\n configuration,\n options?,\n sdkOptions?,\n): Promise<\n JSONFetchResponse<\n OpenAPI.operations['patchEndpoint']['responses']['200']['content']['application/json']\n >\n> {\n return serviceRequest(\n {\n service: configuration,\n resource_server: configuration.endpoint_id,\n path: `/api/endpoint`,\n method: HTTP_METHODS.PATCH,\n },\n options,\n sdkOptions,\n );\n} satisfies GCSServiceMethod<{\n /**\n * @todo The generated PATCH type is resolving to the Endpoint document, which\n * has some properties that are required (i.e. `display_name`). For now, we're\n * just allowing unknown properties to be passed in, but we should fix this\n * when the auotgenerated types are corrected.\n */\n payload:\n | OpenAPI.operations['patchEndpoint']['requestBody']['content']['application/json']\n | Record<string, unknown>;\n}>;\n\n/**\n * @see https://docs.globus.org/globus-connect-server/v5.4/api/openapi_Endpoint/#putEndpointSubscriptionId\n */\nexport const updateSubscriptionId = function (\n configuration,\n options?,\n sdkOptions?,\n): Promise<\n JSONFetchResponse<\n OpenAPI.operations['putEndpointSubscriptionId']['responses']['200']['content']['application/json']\n >\n> {\n return serviceRequest(\n {\n service: configuration,\n resource_server: configuration.endpoint_id,\n path: `/api/endpoint/subscription_id`,\n method: HTTP_METHODS.PUT,\n },\n options,\n sdkOptions,\n );\n} satisfies GCSServiceMethod<{\n payload: OpenAPI.operations['putEndpointSubscriptionId']['requestBody']['content']['application/json'];\n}>;\n\n/**\n * @see https://docs.globus.org/globus-connect-server/v5.4/api/openapi_Endpoint/#putEndpointOwner\n */\nexport const updateOwner = function (\n configuration,\n options?,\n sdkOptions?,\n): Promise<\n JSONFetchResponse<\n OpenAPI.operations['putEndpointOwner']['responses']['200']['content']['application/json']\n >\n> {\n return serviceRequest(\n {\n service: configuration,\n resource_server: configuration.endpoint_id,\n path: `/api/endpoint/owner`,\n method: HTTP_METHODS.PUT,\n },\n options,\n sdkOptions,\n );\n} satisfies GCSServiceMethod<{\n payload: OpenAPI.operations['putEndpointOwner']['requestBody']['content']['application/json'];\n}>;\n\n/**\n * @see https://docs.globus.org/globus-connect-server/v5.4/api/openapi_Endpoint/#putEndpointOwnerString\n */\nexport const updateOwnerString = function (\n configuration,\n options?,\n sdkOptions?,\n): Promise<\n JSONFetchResponse<\n OpenAPI.operations['putEndpointOwnerString']['responses']['200']['content']['application/json']\n >\n> {\n return serviceRequest(\n {\n service: configuration,\n resource_server: configuration.endpoint_id,\n path: `/api/endpoint/owner_string`,\n method: HTTP_METHODS.PUT,\n },\n options,\n sdkOptions,\n );\n} satisfies GCSServiceMethod<{\n payload: OpenAPI.operations['putEndpointOwnerString']['requestBody']['content']['application/json'];\n}>;\n\n/**\n * @see https://docs.globus.org/globus-connect-server/v5.4/api/openapi_Endpoint/#deleteEndpointOwnerString\n */\nexport const resetOwnerString = function (\n configuration,\n options,\n sdkOptions?,\n): Promise<\n JSONFetchResponse<\n OpenAPI.operations['deleteEndpointOwnerString']['responses']['200']['content']['application/json']\n >\n> {\n return serviceRequest(\n {\n service: configuration,\n resource_server: configuration.endpoint_id,\n path: `/api/endpoint/owner_string`,\n method: HTTP_METHODS.DELETE,\n },\n options,\n sdkOptions,\n );\n} satisfies GCSServiceMethod<{}>;\n", "import { HTTP_METHODS, serviceRequest } from '../../shared.js';\n\nimport type { GCSServiceMethodDynamicSegments } from '../index.js';\n\n/**\n * @see https://docs.globus.org/globus-connect-server/v5.4/https-access-collections/\n */\nexport const get = function (configuration, path, options?, sdkOptions?): Promise<Response> {\n return serviceRequest(\n {\n service: configuration,\n resource_server: configuration.endpoint_id,\n path,\n },\n options,\n sdkOptions,\n );\n} satisfies GCSServiceMethodDynamicSegments<\n string,\n {\n query?: {\n /**\n * @see https://docs.globus.org/globus-connect-server/v5.4/https-access-collections/#request_a_browser_download\n */\n download?: boolean;\n };\n }\n>;\n\n/**\n * @see https://docs.globus.org/globus-connect-server/v5.4/https-access-collections/\n */\nexport const remove = function (configuration, path, options?, sdkOptions?): Promise<Response> {\n return serviceRequest(\n {\n service: configuration,\n resource_server: configuration.endpoint_id,\n path,\n method: HTTP_METHODS.DELETE,\n },\n options,\n sdkOptions,\n );\n} satisfies GCSServiceMethodDynamicSegments<\n string,\n {\n query?: never;\n payload?: never;\n }\n>;\n\n/**\n * @see https://docs.globus.org/globus-connect-server/v5.4/https-access-collections/\n */\nexport const update = function (configuration, path, options, sdkOptions?): Promise<Response> {\n return serviceRequest(\n {\n service: configuration,\n resource_server: configuration.endpoint_id,\n path,\n method: HTTP_METHODS.PUT,\n },\n options,\n sdkOptions,\n );\n} satisfies GCSServiceMethodDynamicSegments<\n string,\n {\n query?: never;\n payload?: never;\n }\n>;\n", "import { HTTP_METHODS, serviceRequest } from '../../../services/shared.js';\n\nimport type { OpenAPI, GCSServiceMethod, GCSServiceMethodDynamicSegments } from '../index.js';\n\nimport type { JSONFetchResponse } from '../../types.js';\n\n/**\n * @see https://docs.globus.org/globus-connect-server/v5.4/api/openapi_Nodes/#listNodes\n */\nexport const getAll = function (\n configuration,\n options?,\n sdkOptions?,\n): Promise<\n JSONFetchResponse<\n OpenAPI.operations['listNodes']['responses']['200']['content']['application/json']\n >\n> {\n return serviceRequest(\n {\n service: configuration,\n resource_server: configuration.endpoint_id,\n path: `/api/nodes`,\n },\n options,\n sdkOptions,\n );\n} satisfies GCSServiceMethod<{\n query?: OpenAPI.operations['listNodes']['parameters']['query'];\n}>;\n\n/**\n * @see https://docs.globus.org/globus-connect-server/v5.4/api/openapi_Nodes/#getNode\n */\nexport const get = function (\n configuration,\n node_id,\n options?,\n sdkOptions?,\n): Promise<\n JSONFetchResponse<\n OpenAPI.operations['getNode']['responses']['200']['content']['application/json']\n >\n> {\n return serviceRequest(\n {\n service: configuration,\n resource_server: configuration.endpoint_id,\n path: `/api/nodes/${node_id}`,\n },\n options,\n sdkOptions,\n );\n} satisfies GCSServiceMethodDynamicSegments<\n OpenAPI.operations['getNode']['parameters']['path']['node_id'],\n {\n query?: never;\n payload?: never;\n }\n>;\n\n/**\n * @see https://docs.globus.org/globus-connect-server/v5.4/api/openapi_Nodes/#deleteNode\n */\nexport const remove = function (\n configuration,\n node_id,\n options?,\n sdkOptions?,\n): Promise<\n JSONFetchResponse<\n OpenAPI.operations['deleteNode']['responses']['200']['content']['application/json']\n >\n> {\n return serviceRequest(\n {\n service: configuration,\n resource_server: configuration.endpoint_id,\n path: `/api/nodes/${node_id}`,\n method: HTTP_METHODS.DELETE,\n },\n options,\n sdkOptions,\n );\n} satisfies GCSServiceMethodDynamicSegments<\n OpenAPI.operations['deleteNode']['parameters']['path']['node_id'],\n {\n query?: never;\n payload?: never;\n }\n>;\n\n/**\n * @see https://docs.globus.org/globus-connect-server/v5.4/api/openapi_Nodes/#postNodes\n */\nexport const create = function (\n configuration,\n options,\n sdkOptions?,\n): Promise<\n JSONFetchResponse<\n OpenAPI.operations['postNode']['responses']['200']['content']['application/json']\n >\n> {\n return serviceRequest(\n {\n service: configuration,\n resource_server: configuration.endpoint_id,\n path: `/api/nodes`,\n method: HTTP_METHODS.POST,\n },\n options,\n sdkOptions,\n );\n} satisfies GCSServiceMethod<{\n payload: OpenAPI.operations['postNode']['requestBody']['content']['application/json'];\n}>;\n\n/**\n * @see https://docs.globus.org/globus-connect-server/v5.4/api/openapi_Nodes/#putNode\n */\nexport const update = function (\n configuration,\n node_id,\n options,\n sdkOptions?,\n): Promise<\n JSONFetchResponse<\n OpenAPI.operations['putNode']['responses']['200']['content']['application/json']\n >\n> {\n return serviceRequest(\n {\n service: configuration,\n resource_server: configuration.endpoint_id,\n path: `/api/nodes/${node_id}`,\n method: HTTP_METHODS.PUT,\n },\n options,\n sdkOptions,\n );\n} satisfies GCSServiceMethodDynamicSegments<\n OpenAPI.operations['putNode']['parameters']['path']['node_id'],\n {\n payload: OpenAPI.operations['putNode']['requestBody']['content']['application/json'];\n }\n>;\n\n/**\n * @see https://docs.globus.org/globus-connect-server/v5.4/api/openapi_Nodes/#patchNode\n */\nexport const patch = function (\n configuration,\n node_id,\n options,\n sdkOptions?,\n): Promise<\n JSONFetchResponse<\n OpenAPI.operations['patchNode']['responses']['200']['content']['application/json']\n >\n> {\n return serviceRequest(\n {\n service: configuration,\n resource_server: configuration.endpoint_id,\n path: `/api/nodes/${node_id}`,\n method: HTTP_METHODS.PATCH,\n },\n options,\n sdkOptions,\n );\n} satisfies GCSServiceMethodDynamicSegments<\n OpenAPI.operations['patchNode']['parameters']['path']['node_id'],\n {\n payload: Partial<OpenAPI.operations['patchNode']['requestBody']['content']['application/json']>;\n }\n>;\n", "import { HTTP_METHODS, serviceRequest } from '../../../services/shared.js';\n\nimport type { OpenAPI, GCSServiceMethod, GCSServiceMethodDynamicSegments } from '../index.js';\n\nimport type { JSONFetchResponse } from '../../types.js';\n/**\n * @see https://docs.globus.org/globus-connect-server/v5.4/api/openapi_Roles/#listRoles\n */\nexport const getAll = function (\n configuration,\n options?,\n sdkOptions?,\n): Promise<\n JSONFetchResponse<\n OpenAPI.operations['listRoles']['responses']['200']['content']['application/json']\n >\n> {\n return serviceRequest(\n {\n service: configuration,\n resource_server: configuration.endpoint_id,\n path: `/api/roles`,\n },\n options,\n sdkOptions,\n );\n} satisfies GCSServiceMethod<{\n query?: OpenAPI.operations['listRoles']['parameters']['query'];\n}>;\n\n/**\n * @see https://docs.globus.org/globus-connect-server/v5.4/api/openapi_Roles/#getRole\n */\nexport const get = function (\n configuration,\n role_id,\n options?,\n sdkOptions?,\n): Promise<\n JSONFetchResponse<\n OpenAPI.operations['getRole']['responses']['200']['content']['application/json']\n >\n> {\n return serviceRequest(\n {\n service: configuration,\n resource_server: configuration.endpoint_id,\n path: `/api/roles/${role_id}`,\n },\n options,\n sdkOptions,\n );\n} satisfies GCSServiceMethodDynamicSegments<\n OpenAPI.operations['getRole']['parameters']['path']['role_id'],\n {\n query?: never;\n payload?: never;\n }\n>;\n\n/**\n * @see https://docs.globus.org/globus-connect-server/v5.4/api/openapi_Roles/#deleteRole\n */\nexport const remove = function (\n configuration,\n role_id,\n options?,\n sdkOptions?,\n): Promise<\n JSONFetchResponse<\n OpenAPI.operations['deleteRole']['responses']['200']['content']['application/json']\n >\n> {\n return serviceRequest(\n {\n service: configuration,\n resource_server: configuration.endpoint_id,\n path: `/api/roles/${role_id}`,\n method: HTTP_METHODS.DELETE,\n },\n options,\n sdkOptions,\n );\n} satisfies GCSServiceMethodDynamicSegments<\n OpenAPI.operations['deleteRole']['parameters']['path']['role_id'],\n {\n query?: never;\n payload?: never;\n }\n>;\n\n/**\n * @see https://docs.globus.org/globus-connect-server/v5.4/api/openapi_Roles/#postRoles\n */\nexport const create = function (\n configuration,\n options,\n sdkOptions?,\n): Promise<\n JSONFetchResponse<\n OpenAPI.operations['postRoles']['responses']['200']['content']['application/json']\n >\n> {\n return serviceRequest(\n {\n service: configuration,\n resource_server: configuration.endpoint_id,\n path: `/api/roles`,\n method: HTTP_METHODS.POST,\n },\n options,\n sdkOptions,\n );\n} satisfies GCSServiceMethod<{\n payload: OpenAPI.operations['postRoles']['requestBody']['content']['application/json'];\n}>;\n", "import { HTTP_METHODS, serviceRequest } from '../../../services/shared.js';\n\nimport type { OpenAPI, GCSServiceMethod, GCSServiceMethodDynamicSegments } from '../index.js';\n\nimport type { JSONFetchResponse } from '../../types.js';\n/**\n * @see https://docs.globus.org/globus-connect-server/v5.4/api/openapi_Storage_Gateways/#listStorageGateways\n */\nexport const getAll = function (\n configuration,\n options?,\n sdkOptions?,\n): Promise<\n JSONFetchResponse<\n OpenAPI.operations['listStorageGateways']['responses']['200']['content']['application/json']\n >\n> {\n return serviceRequest(\n {\n service: configuration,\n resource_server: configuration.endpoint_id,\n path: `/api/storage_gateways`,\n },\n options,\n sdkOptions,\n );\n} satisfies GCSServiceMethod<{\n query?: OpenAPI.operations['listStorageGateways']['parameters']['query'];\n}>;\n\n/**\n * @see https://docs.globus.org/globus-connect-server/v5.4/api/openapi_Storage_Gateways/#getStorageGateway\n */\nexport const get = function (\n configuration,\n storage_gateway_id,\n options?,\n sdkOptions?,\n): Promise<\n JSONFetchResponse<\n OpenAPI.operations['getStorageGateway']['responses']['200']['content']['application/json']\n >\n> {\n return serviceRequest(\n {\n service: configuration,\n resource_server: configuration.endpoint_id,\n path: `/api/storage_gateways/${storage_gateway_id}`,\n },\n options,\n sdkOptions,\n );\n} satisfies GCSServiceMethodDynamicSegments<\n OpenAPI.operations['getStorageGateway']['parameters']['path']['storage_gateway_id'],\n {\n query?: OpenAPI.operations['getStorageGateway']['parameters']['query'];\n }\n>;\n\n/**\n * @see https://docs.globus.org/globus-connect-server/v5.4/api/openapi_Storage_Gateways/#deleteStorageGateway\n */\nexport const remove = function (\n configuration,\n storage_gateway_id,\n options?,\n sdkOptions?,\n): Promise<\n JSONFetchResponse<\n OpenAPI.operations['deleteStorageGateway']['responses']['200']['content']['application/json']\n >\n> {\n return serviceRequest(\n {\n service: configuration,\n resource_server: configuration.endpoint_id,\n path: `/api/storage_gateways/${storage_gateway_id}`,\n method: HTTP_METHODS.DELETE,\n },\n options,\n sdkOptions,\n );\n} satisfies GCSServiceMethodDynamicSegments<\n OpenAPI.operations['deleteStorageGateway']['parameters']['path']['storage_gateway_id'],\n {\n query?: never;\n payload?: never;\n }\n>;\n\n/**\n * @see https://docs.globus.org/globus-connect-server/v5.4/api/openapi_Storage_Gateways/#postStorageGateway\n */\nexport const create = function (\n configuration,\n options,\n sdkOptions?,\n): Promise<\n JSONFetchResponse<\n OpenAPI.operations['postStorageGateway']['responses']['201']['content']['application/json']\n >\n> {\n return serviceRequest(\n {\n service: configuration,\n resource_server: configuration.endpoint_id,\n path: `/api/storage_gateways`,\n method: HTTP_METHODS.POST,\n },\n options,\n sdkOptions,\n );\n} satisfies GCSServiceMethod<{\n payload: OpenAPI.operations['postStorageGateway']['requestBody']['content']['application/json'];\n}>;\n\n/**\n * @see https://docs.globus.org/globus-connect-server/v5.4/api/openapi_Storage_Gateways/#putStorageGateway\n */\nexport const update = function (\n configuration,\n storage_gateway_id,\n options,\n sdkOptions?,\n): Promise<\n JSONFetchResponse<\n OpenAPI.operations['putStorageGateway']['responses']['200']['content']['application/json']\n >\n> {\n return serviceRequest(\n {\n service: configuration,\n resource_server: configuration.endpoint_id,\n path: `/api/storage_gateways/${storage_gateway_id}`,\n method: HTTP_METHODS.PUT,\n },\n options,\n sdkOptions,\n );\n} satisfies GCSServiceMethodDynamicSegments<\n OpenAPI.operations['putStorageGateway']['parameters']['path']['storage_gateway_id'],\n {\n payload: OpenAPI.operations['putStorageGateway']['requestBody']['content']['application/json'];\n }\n>;\n\n/**\n * @see https://docs.globus.org/globus-connect-server/v5.4/api/openapi_Storage_Gateways/#patchStorageGateway\n */\nexport const patch = function (\n configuration,\n storage_gateway_id,\n options,\n sdkOptions?,\n): Promise<\n JSONFetchResponse<\n OpenAPI.operations['patchStorageGateway']['responses']['200']['content']['application/json']\n >\n> {\n return serviceRequest(\n {\n service: configuration,\n resource_server: configuration.endpoint_id,\n path: `/api/storage_gateways/${storage_gateway_id}`,\n method: HTTP_METHODS.PATCH,\n },\n options,\n sdkOptions,\n );\n} satisfies GCSServiceMethodDynamicSegments<\n OpenAPI.operations['patchStorageGateway']['parameters']['path']['storage_gateway_id'],\n {\n payload: Partial<\n OpenAPI.operations['patchStorageGateway']['requestBody']['content']['application/json']\n >;\n }\n>;\n", "import { HTTP_METHODS, serviceRequest } from '../../../services/shared.js';\n\nimport type { OpenAPI, GCSServiceMethod, GCSServiceMethodDynamicSegments } from '../index.js';\n\nimport type { JSONFetchResponse } from '../../types.js';\n/**\n * @see https://docs.globus.org/globus-connect-server/v5.4/api/openapi_User_Credentials/#listUserCredentials\n */\nexport const getAll = function (\n configuration,\n options?,\n sdkOptions?,\n): Promise<\n JSONFetchResponse<\n OpenAPI.operations['listUserCredentials']['responses']['200']['content']['application/json']\n >\n> {\n return serviceRequest(\n {\n service: configuration,\n resource_server: configuration.endpoint_id,\n path: `/api/user_credentials`,\n },\n options,\n sdkOptions,\n );\n} satisfies GCSServiceMethod<{\n query?: OpenAPI.operations['listUserCredentials']['parameters']['query'];\n}>;\n\n/**\n * @see https://docs.globus.org/globus-connect-server/v5.4/api/openapi_User_Credentials/#getUserCredential\n */\nexport const get = function (\n configuration,\n user_credential_id,\n options?,\n sdkOptions?,\n): Promise<\n JSONFetchResponse<\n OpenAPI.operations['getCollection']['responses']['200']['content']['application/json']\n >\n> {\n return serviceRequest(\n {\n service: configuration,\n resource_server: configuration.endpoint_id,\n path: `/api/user_credentials/${user_credential_id}`,\n },\n options,\n sdkOptions,\n );\n} satisfies GCSServiceMethodDynamicSegments<\n OpenAPI.operations['getUserCredential']['parameters']['path']['user_credential_id'],\n {\n query?: never;\n payload?: never;\n }\n>;\n\n/**\n * @see https://docs.globus.org/globus-connect-server/v5.4/api/openapi_User_Credentials/#deleteUserCredential\n */\nexport const remove = function (\n configuration,\n user_credential_id,\n options?,\n sdkOptions?,\n): Promise<\n JSONFetchResponse<\n OpenAPI.operations['deleteUserCredential']['responses']['200']['content']['application/json']\n >\n> {\n return serviceRequest(\n {\n service: configuration,\n resource_server: configuration.endpoint_id,\n path: `/api/user_credentials/${user_credential_id}`,\n method: HTTP_METHODS.DELETE,\n },\n options,\n sdkOptions,\n );\n} satisfies GCSServiceMethodDynamicSegments<\n OpenAPI.operations['deleteUserCredential']['parameters']['path']['user_credential_id'],\n {\n query?: never;\n payload?: never;\n }\n>;\n\n/**\n * @see https://docs.globus.org/globus-connect-server/v5.4/api/openapi_User_Credentials/#postUserCredential\n */\nexport const create = function (\n configuration,\n options,\n sdkOptions?,\n): Promise<\n JSONFetchResponse<\n OpenAPI.operations['postUserCredential']['responses']['201']['content']['application/json']\n >\n> {\n return serviceRequest(\n {\n service: configuration,\n resource_server: configuration.endpoint_id,\n path: `/api/user_credentials`,\n method: HTTP_METHODS.POST,\n },\n options,\n sdkOptions,\n );\n} satisfies GCSServiceMethod<{\n payload: OpenAPI.operations['postUserCredential']['requestBody']['content']['application/json'];\n}>;\n\n/**\n * @see https://docs.globus.org/globus-connect-server/v5.4/api/openapi_User_Credentials/#putUserCredential\n */\nexport const update = function (\n configuration,\n user_credential_id,\n options,\n sdkOptions?,\n): Promise<\n JSONFetchResponse<\n OpenAPI.operations['putUserCredential']['responses']['200']['content']['application/json']\n >\n> {\n return serviceRequest(\n {\n service: configuration,\n resource_server: configuration.endpoint_id,\n path: `/api/user_credentials/${user_credential_id}`,\n method: HTTP_METHODS.PUT,\n },\n options,\n sdkOptions,\n );\n} satisfies GCSServiceMethodDynamicSegments<\n OpenAPI.operations['putUserCredential']['parameters']['path']['user_credential_id'],\n {\n payload: OpenAPI.operations['putUserCredential']['requestBody']['content']['application/json'];\n }\n>;\n\n/**\n * @see https://docs.globus.org/globus-connect-server/v5.4/api/openapi_User_Credentials/#patchUserCredential\n */\nexport const patch = function (\n configuration,\n user_credential_id,\n options,\n sdkOptions?,\n): Promise<\n JSONFetchResponse<\n OpenAPI.operations['patchUserCredential']['responses']['200']['content']['application/json']\n >\n> {\n return serviceRequest(\n {\n service: configuration,\n resource_server: configuration.endpoint_id,\n path: `/api/user_credentials/${user_credential_id}`,\n method: HTTP_METHODS.PATCH,\n },\n options,\n sdkOptions,\n );\n} satisfies GCSServiceMethodDynamicSegments<\n OpenAPI.operations['patchUserCredential']['parameters']['path']['user_credential_id'],\n {\n payload: Partial<\n OpenAPI.operations['patchUserCredential']['requestBody']['content']['application/json']\n >;\n }\n>;\n", "import { serviceRequest } from '../../../services/shared.js';\n\nimport type { OpenAPI, GCSServiceMethod } from '../index.js';\nimport type { JSONFetchResponse } from '../../types.js';\n\n/**\n * **This operation can be performed without an `Authorization` header.**\n * @see https://docs.globus.org/globus-connect-server/v5.4/api/openapi_Versioning/#getInfo\n */\nexport const info = function (\n configuration,\n options?,\n sdkOptions?,\n): Promise<\n JSONFetchResponse<\n OpenAPI.operations['getInfo']['responses']['200']['content']['application/json']\n >\n> {\n return serviceRequest(\n {\n service: configuration,\n path: `/api/info`,\n },\n options,\n sdkOptions,\n );\n} satisfies GCSServiceMethod<\n {\n query?: never;\n payload?: never;\n },\n Response,\n true\n>;\n"],
|
|
5
5
|
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAA,yBAAmB;;;ACKZ,IAAM,qBAAqB;AA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MAAK,aAAa;AAAA,MAClC,QAAQ,KAAWK,SAAQ,aAAa;AAAA,MACxC,QAAQ,KAAWC,SAAQ,aAAa;AAAA,MACxC,QAAQ,KAAWC,SAAQ,aAAa;AAAA,IAC1C;AAAA,IACA,OAAO;AAAA,MACL,KAAK,KAAWP,MAAK,aAAa;AAAA,MAClC,QAAQ,KAAWO,SAAQ,aAAa;AAAA,MACxC,QAAQ,KAAWN,SAAQ,aAAa;AAAA,IAC1C;AAAA,EACF;AACF;",
|
|
6
6
|
"names": ["info", "VERSION", "ID", "HOSTS", "ID", "HOSTS", "ID", "HOSTS", "ID", "HOSTS", "ID", "HOSTS", "ID", "HOSTS", "ID", "ID", "HOSTS", "_fetch", "get", "update", "patch", "updateOwnerString", "resetOwnerString", "get", "remove", "update", "getAll", "get", "remove", "create", "update", "patch", "getAll", "get", "remove", "create", "getAll", "get", "remove", "create", "update", "patch", "getAll", "get", "remove", "create", "update", "patch", "get", "update", "patch", "updateOwnerString", "resetOwnerString", "getAll", "create", "remove"]
|
|
7
7
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "6.
|
|
1
|
+
export declare const VERSION = "6.2.0";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|