npm package diff
Package: @forge/runtime
Versions: 6.0.0-next.0-experimental-97e4b11 - 6.0.0-next.1
File: package/out/request.js
Index: package/out/request.js
===================================================================
--- package/out/request.js
+++ package/out/request.js
@@ -1,132 +1,2 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
-exports.InvocationType = exports.ExternalRequestBodyType = exports.LicenseType = void 0;
-const tslib_1 = require("tslib");
-const t = tslib_1.__importStar(require("io-ts"));
-const Remote = t.type({
- baseUrl: t.string,
- key: t.string
-});
-const ExternalAuthMetaDataAccount = t.intersection([
- t.type({
- id: t.string,
- externalAccountId: t.string,
- displayName: t.string,
- scopes: t.array(t.string)
- }),
- t.partial({
- avatarUrl: t.string
- })
-]);
-const ExternalAuthMetaData = t.type({
- service: t.string,
- remotes: t.array(Remote),
- accounts: t.array(ExternalAuthMetaDataAccount)
-});
-const XisRequestTokenType = t.intersection([
- t.type({
- id: t.string,
- service: t.string,
- token: t.string
- }),
- t.partial({
- externalAccountId: t.string,
- displayName: t.string,
- avatarUrl: t.union([t.string, t.undefined]),
- scopes: t.array(t.string)
- })
-]);
-exports.LicenseType = t.intersection([
- t.type({
- isActive: t.boolean
- }),
- t.partial({
- billingPeriod: t.union([t.string, t.null]),
- capabilitySet: t.union([t.string, t.null]),
- ccpEntitlementId: t.union([t.string, t.null]),
- ccpEntitlementSlug: t.union([t.string, t.null]),
- isEvaluation: t.union([t.boolean, t.null]),
- subscriptionEndDate: t.union([t.string, t.null]),
- supportEntitlementNumber: t.union([t.string, t.null]),
- trialEndDate: t.union([t.string, t.null]),
- type: t.union([t.string, t.null])
- })
-]);
-const AppContext = t.intersection([
- t.type({
- appId: t.string,
- appVersion: t.string,
- environmentId: t.string,
- environmentType: t.string,
- invocationId: t.string,
- installationId: t.string,
- functionKey: t.string,
- moduleType: t.string,
- moduleKey: t.string
- }),
- t.partial({
- license: exports.LicenseType
- })
-]);
-const MetadataType = t.intersection([
- t.type({
- apiAuth: t.type({
- env: t.string,
- objects: t.string
- }),
- clientId: t.string,
- contextAri: t.string,
- tokens: t.array(XisRequestTokenType),
- appContext: AppContext,
- tracing: t.type({
- traceId: t.string,
- spanId: t.string
- })
- }),
- t.partial({
- aaid: t.string,
- featureFlags: t.array(t.string),
- appToken: t.string,
- proxy: t.intersection([
- t.type({
- token: t.string,
- url: t.string
- }),
- t.partial({
- host: t.string
- })
- ]),
- timeout: t.number,
- rms: t.type({
- url: t.string,
- host: t.string
- }),
- limits: t.record(t.string, t.number),
- license: exports.LicenseType,
- fetchAllowList: t.array(t.string),
- externalAuth: t.array(ExternalAuthMetaData)
- })
-]);
-const VariableType = t.type({
- secure: t.boolean,
- key: t.string,
- value: t.union([t.string, t.undefined])
-});
-exports.ExternalRequestBodyType = t.intersection([
- t.type({
- _meta: MetadataType,
- body: t.Dictionary,
- handler: t.string
- }),
- t.partial({
- variables: t.array(VariableType)
- })
-]);
-exports.InvocationType = t.type({
- request: exports.ExternalRequestBodyType,
- ctx: t.type({
- requestId: t.string,
- timeout: t.number,
- traceId: t.string
- })
-});