contentful-management 11.49.0-beta.1 → 11.49.0
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/contentful-management.browser.js +830 -264
- package/dist/contentful-management.browser.js.map +1 -1
- package/dist/contentful-management.browser.min.js +1 -1
- package/dist/contentful-management.node.js +806 -257
- package/dist/contentful-management.node.js.map +1 -1
- package/dist/contentful-management.node.min.js +1 -1
- package/dist/es-modules/adapters/REST/endpoints/ai-action-invocation.js +6 -0
- package/dist/es-modules/adapters/REST/endpoints/ai-action.js +61 -0
- package/dist/es-modules/adapters/REST/endpoints/index.js +4 -0
- package/dist/es-modules/adapters/REST/make-request.js +1 -5
- package/dist/es-modules/contentful-management.js +1 -1
- package/dist/es-modules/create-environment-api.js +61 -0
- package/dist/es-modules/create-space-api.js +186 -0
- package/dist/es-modules/entities/ai-action-invocation.js +46 -0
- package/dist/es-modules/entities/ai-action.js +85 -0
- package/dist/es-modules/entities/index.js +4 -0
- package/dist/es-modules/plain/entities/ai-action-invocation.js +1 -0
- package/dist/es-modules/plain/entities/ai-action.js +1 -0
- package/dist/es-modules/plain/plain-client.js +13 -0
- package/dist/typings/adapters/REST/endpoints/ai-action-invocation.d.ts +2 -0
- package/dist/typings/adapters/REST/endpoints/ai-action.d.ts +9 -0
- package/dist/typings/adapters/REST/endpoints/index.d.ts +4 -0
- package/dist/typings/common-types.d.ts +75 -0
- package/dist/typings/constants/editor-interface-defaults/controls-defaults.d.ts +1 -1
- package/dist/typings/create-environment-api.d.ts +37 -0
- package/dist/typings/create-space-api.d.ts +100 -0
- package/dist/typings/entities/ai-action-invocation.d.ts +90 -0
- package/dist/typings/entities/ai-action.d.ts +97 -0
- package/dist/typings/entities/app-event-subscription.d.ts +8 -2
- package/dist/typings/entities/index.d.ts +4 -0
- package/dist/typings/export-types.d.ts +2 -0
- package/dist/typings/plain/common-types.d.ts +5 -0
- package/dist/typings/plain/entities/ai-action-invocation.d.ts +18 -0
- package/dist/typings/plain/entities/ai-action.d.ts +84 -0
- package/dist/typings/plain/entities/app-event-subscription.d.ts +25 -0
- package/package.json +2 -2
|
@@ -623,6 +623,111 @@ const getManyForOrganization = (http, params) => {
|
|
|
623
623
|
|
|
624
624
|
/***/ }),
|
|
625
625
|
|
|
626
|
+
/***/ "./adapters/REST/endpoints/ai-action-invocation.ts":
|
|
627
|
+
/*!*********************************************************!*\
|
|
628
|
+
!*** ./adapters/REST/endpoints/ai-action-invocation.ts ***!
|
|
629
|
+
\*********************************************************/
|
|
630
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
631
|
+
|
|
632
|
+
"use strict";
|
|
633
|
+
__webpack_require__.r(__webpack_exports__);
|
|
634
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
635
|
+
/* harmony export */ get: () => (/* binding */ get)
|
|
636
|
+
/* harmony export */ });
|
|
637
|
+
/* harmony import */ var _raw__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./raw */ "./adapters/REST/endpoints/raw.ts");
|
|
638
|
+
|
|
639
|
+
const get = (http, params, headers) => {
|
|
640
|
+
return _raw__WEBPACK_IMPORTED_MODULE_0__.get(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/ai/actions/${params.aiActionId}/invocations/${params.invocationId}`, {
|
|
641
|
+
headers
|
|
642
|
+
});
|
|
643
|
+
};
|
|
644
|
+
|
|
645
|
+
/***/ }),
|
|
646
|
+
|
|
647
|
+
/***/ "./adapters/REST/endpoints/ai-action.ts":
|
|
648
|
+
/*!**********************************************!*\
|
|
649
|
+
!*** ./adapters/REST/endpoints/ai-action.ts ***!
|
|
650
|
+
\**********************************************/
|
|
651
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
652
|
+
|
|
653
|
+
"use strict";
|
|
654
|
+
__webpack_require__.r(__webpack_exports__);
|
|
655
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
656
|
+
/* harmony export */ create: () => (/* binding */ create),
|
|
657
|
+
/* harmony export */ del: () => (/* binding */ del),
|
|
658
|
+
/* harmony export */ get: () => (/* binding */ get),
|
|
659
|
+
/* harmony export */ getMany: () => (/* binding */ getMany),
|
|
660
|
+
/* harmony export */ invoke: () => (/* binding */ invoke),
|
|
661
|
+
/* harmony export */ publish: () => (/* binding */ publish),
|
|
662
|
+
/* harmony export */ unpublish: () => (/* binding */ unpublish),
|
|
663
|
+
/* harmony export */ update: () => (/* binding */ update)
|
|
664
|
+
/* harmony export */ });
|
|
665
|
+
/* harmony import */ var fast_copy__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! fast-copy */ "../node_modules/fast-copy/dist/esm/index.mjs");
|
|
666
|
+
/* harmony import */ var _raw__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./raw */ "./adapters/REST/endpoints/raw.ts");
|
|
667
|
+
const _excluded = ["sys"];
|
|
668
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
669
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
670
|
+
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
671
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
672
|
+
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
673
|
+
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
|
|
674
|
+
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
|
|
675
|
+
|
|
676
|
+
|
|
677
|
+
const get = (http, params, headers) => {
|
|
678
|
+
return _raw__WEBPACK_IMPORTED_MODULE_1__.get(http, `/spaces/${params.spaceId}/ai/actions/${params.aiActionId}`, {
|
|
679
|
+
headers
|
|
680
|
+
});
|
|
681
|
+
};
|
|
682
|
+
const getMany = (http, params, headers) => {
|
|
683
|
+
return _raw__WEBPACK_IMPORTED_MODULE_1__.get(http, `/spaces/${params.spaceId}/ai/actions`, {
|
|
684
|
+
params: params.query,
|
|
685
|
+
headers
|
|
686
|
+
});
|
|
687
|
+
};
|
|
688
|
+
const create = (http, params, data, headers) => {
|
|
689
|
+
return _raw__WEBPACK_IMPORTED_MODULE_1__.post(http, `/spaces/${params.spaceId}/ai/actions`, data, {
|
|
690
|
+
headers
|
|
691
|
+
});
|
|
692
|
+
};
|
|
693
|
+
const update = (http, params, rawData, headers) => {
|
|
694
|
+
var _rawData$sys$version;
|
|
695
|
+
const data = (0,fast_copy__WEBPACK_IMPORTED_MODULE_0__["default"])(rawData);
|
|
696
|
+
const {
|
|
697
|
+
sys
|
|
698
|
+
} = data,
|
|
699
|
+
payload = _objectWithoutProperties(data, _excluded);
|
|
700
|
+
return _raw__WEBPACK_IMPORTED_MODULE_1__.put(http, `/spaces/${params.spaceId}/ai/actions/${params.aiActionId}`, payload, {
|
|
701
|
+
headers: _objectSpread({
|
|
702
|
+
'X-Contentful-Version': (_rawData$sys$version = rawData.sys.version) !== null && _rawData$sys$version !== void 0 ? _rawData$sys$version : 0
|
|
703
|
+
}, headers)
|
|
704
|
+
});
|
|
705
|
+
};
|
|
706
|
+
const del = (http, params, headers) => {
|
|
707
|
+
return _raw__WEBPACK_IMPORTED_MODULE_1__.del(http, `/spaces/${params.spaceId}/ai/actions/${params.aiActionId}`, {
|
|
708
|
+
headers
|
|
709
|
+
});
|
|
710
|
+
};
|
|
711
|
+
const publish = (http, params, rawData, headers) => {
|
|
712
|
+
return _raw__WEBPACK_IMPORTED_MODULE_1__.put(http, `/spaces/${params.spaceId}/ai/actions/${params.aiActionId}/published`, null, {
|
|
713
|
+
headers: _objectSpread({
|
|
714
|
+
'X-Contentful-Version': rawData.sys.version
|
|
715
|
+
}, headers)
|
|
716
|
+
});
|
|
717
|
+
};
|
|
718
|
+
const unpublish = (http, params, headers) => {
|
|
719
|
+
return _raw__WEBPACK_IMPORTED_MODULE_1__.del(http, `/spaces/${params.spaceId}/ai/actions/${params.aiActionId}/published`, {
|
|
720
|
+
headers
|
|
721
|
+
});
|
|
722
|
+
};
|
|
723
|
+
const invoke = (http, params, data, headers) => {
|
|
724
|
+
return _raw__WEBPACK_IMPORTED_MODULE_1__.post(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/ai/actions/${params.aiActionId}/invoke`, data, {
|
|
725
|
+
headers
|
|
726
|
+
});
|
|
727
|
+
};
|
|
728
|
+
|
|
729
|
+
/***/ }),
|
|
730
|
+
|
|
626
731
|
/***/ "./adapters/REST/endpoints/api-key.ts":
|
|
627
732
|
/*!********************************************!*\
|
|
628
733
|
!*** ./adapters/REST/endpoints/api-key.ts ***!
|
|
@@ -2633,70 +2738,74 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
2633
2738
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
2634
2739
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
2635
2740
|
/* harmony export */ });
|
|
2636
|
-
/* harmony import */ var
|
|
2637
|
-
/* harmony import */ var
|
|
2638
|
-
/* harmony import */ var
|
|
2639
|
-
/* harmony import */ var
|
|
2640
|
-
/* harmony import */ var
|
|
2641
|
-
/* harmony import */ var
|
|
2642
|
-
/* harmony import */ var
|
|
2643
|
-
/* harmony import */ var
|
|
2644
|
-
/* harmony import */ var
|
|
2645
|
-
/* harmony import */ var
|
|
2646
|
-
/* harmony import */ var
|
|
2647
|
-
/* harmony import */ var
|
|
2648
|
-
/* harmony import */ var
|
|
2649
|
-
/* harmony import */ var
|
|
2650
|
-
/* harmony import */ var
|
|
2651
|
-
/* harmony import */ var
|
|
2652
|
-
/* harmony import */ var
|
|
2653
|
-
/* harmony import */ var
|
|
2654
|
-
/* harmony import */ var
|
|
2655
|
-
/* harmony import */ var
|
|
2656
|
-
/* harmony import */ var
|
|
2657
|
-
/* harmony import */ var
|
|
2658
|
-
/* harmony import */ var
|
|
2659
|
-
/* harmony import */ var
|
|
2660
|
-
/* harmony import */ var
|
|
2661
|
-
/* harmony import */ var
|
|
2662
|
-
/* harmony import */ var
|
|
2663
|
-
/* harmony import */ var
|
|
2664
|
-
/* harmony import */ var
|
|
2665
|
-
/* harmony import */ var
|
|
2666
|
-
/* harmony import */ var
|
|
2667
|
-
/* harmony import */ var
|
|
2668
|
-
/* harmony import */ var
|
|
2669
|
-
/* harmony import */ var
|
|
2670
|
-
/* harmony import */ var
|
|
2671
|
-
/* harmony import */ var
|
|
2672
|
-
/* harmony import */ var
|
|
2673
|
-
/* harmony import */ var
|
|
2674
|
-
/* harmony import */ var
|
|
2675
|
-
/* harmony import */ var
|
|
2676
|
-
/* harmony import */ var
|
|
2677
|
-
/* harmony import */ var
|
|
2678
|
-
/* harmony import */ var
|
|
2679
|
-
/* harmony import */ var
|
|
2680
|
-
/* harmony import */ var
|
|
2681
|
-
/* harmony import */ var
|
|
2682
|
-
/* harmony import */ var
|
|
2683
|
-
/* harmony import */ var
|
|
2684
|
-
/* harmony import */ var
|
|
2685
|
-
/* harmony import */ var
|
|
2686
|
-
/* harmony import */ var
|
|
2687
|
-
/* harmony import */ var
|
|
2688
|
-
/* harmony import */ var
|
|
2689
|
-
/* harmony import */ var
|
|
2690
|
-
/* harmony import */ var
|
|
2691
|
-
/* harmony import */ var
|
|
2692
|
-
/* harmony import */ var
|
|
2693
|
-
/* harmony import */ var
|
|
2694
|
-
/* harmony import */ var
|
|
2695
|
-
/* harmony import */ var
|
|
2696
|
-
/* harmony import */ var
|
|
2697
|
-
/* harmony import */ var
|
|
2698
|
-
/* harmony import */ var
|
|
2699
|
-
/* harmony import */ var
|
|
2741
|
+
/* harmony import */ var _ai_action__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./ai-action */ "./adapters/REST/endpoints/ai-action.ts");
|
|
2742
|
+
/* harmony import */ var _ai_action_invocation__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./ai-action-invocation */ "./adapters/REST/endpoints/ai-action-invocation.ts");
|
|
2743
|
+
/* harmony import */ var _access_token__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./access-token */ "./adapters/REST/endpoints/access-token.ts");
|
|
2744
|
+
/* harmony import */ var _api_key__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./api-key */ "./adapters/REST/endpoints/api-key.ts");
|
|
2745
|
+
/* harmony import */ var _app_access_token__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./app-access-token */ "./adapters/REST/endpoints/app-access-token.ts");
|
|
2746
|
+
/* harmony import */ var _app_action__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./app-action */ "./adapters/REST/endpoints/app-action.ts");
|
|
2747
|
+
/* harmony import */ var _app_action_call__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./app-action-call */ "./adapters/REST/endpoints/app-action-call.ts");
|
|
2748
|
+
/* harmony import */ var _app_bundle__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./app-bundle */ "./adapters/REST/endpoints/app-bundle.ts");
|
|
2749
|
+
/* harmony import */ var _app_definition__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./app-definition */ "./adapters/REST/endpoints/app-definition.ts");
|
|
2750
|
+
/* harmony import */ var _app_details__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./app-details */ "./adapters/REST/endpoints/app-details.ts");
|
|
2751
|
+
/* harmony import */ var _app_event_subscription__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./app-event-subscription */ "./adapters/REST/endpoints/app-event-subscription.ts");
|
|
2752
|
+
/* harmony import */ var _app_installation__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./app-installation */ "./adapters/REST/endpoints/app-installation.ts");
|
|
2753
|
+
/* harmony import */ var _app_key__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./app-key */ "./adapters/REST/endpoints/app-key.ts");
|
|
2754
|
+
/* harmony import */ var _app_signed_request__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./app-signed-request */ "./adapters/REST/endpoints/app-signed-request.ts");
|
|
2755
|
+
/* harmony import */ var _app_signing_secret__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./app-signing-secret */ "./adapters/REST/endpoints/app-signing-secret.ts");
|
|
2756
|
+
/* harmony import */ var _app_upload__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./app-upload */ "./adapters/REST/endpoints/app-upload.ts");
|
|
2757
|
+
/* harmony import */ var _asset__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./asset */ "./adapters/REST/endpoints/asset.ts");
|
|
2758
|
+
/* harmony import */ var _asset_key__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./asset-key */ "./adapters/REST/endpoints/asset-key.ts");
|
|
2759
|
+
/* harmony import */ var _bulk_action__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./bulk-action */ "./adapters/REST/endpoints/bulk-action.ts");
|
|
2760
|
+
/* harmony import */ var _comment__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ./comment */ "./adapters/REST/endpoints/comment.ts");
|
|
2761
|
+
/* harmony import */ var _concept__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ./concept */ "./adapters/REST/endpoints/concept.ts");
|
|
2762
|
+
/* harmony import */ var _concept_scheme__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ./concept-scheme */ "./adapters/REST/endpoints/concept-scheme.ts");
|
|
2763
|
+
/* harmony import */ var _content_type__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ./content-type */ "./adapters/REST/endpoints/content-type.ts");
|
|
2764
|
+
/* harmony import */ var _editor_interface__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ./editor-interface */ "./adapters/REST/endpoints/editor-interface.ts");
|
|
2765
|
+
/* harmony import */ var _entry__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! ./entry */ "./adapters/REST/endpoints/entry.ts");
|
|
2766
|
+
/* harmony import */ var _environment__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! ./environment */ "./adapters/REST/endpoints/environment.ts");
|
|
2767
|
+
/* harmony import */ var _environment_alias__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! ./environment-alias */ "./adapters/REST/endpoints/environment-alias.ts");
|
|
2768
|
+
/* harmony import */ var _environment_template__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! ./environment-template */ "./adapters/REST/endpoints/environment-template.ts");
|
|
2769
|
+
/* harmony import */ var _environment_template_installation__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(/*! ./environment-template-installation */ "./adapters/REST/endpoints/environment-template-installation.ts");
|
|
2770
|
+
/* harmony import */ var _extension__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(/*! ./extension */ "./adapters/REST/endpoints/extension.ts");
|
|
2771
|
+
/* harmony import */ var _function__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(/*! ./function */ "./adapters/REST/endpoints/function.ts");
|
|
2772
|
+
/* harmony import */ var _function_log__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(/*! ./function-log */ "./adapters/REST/endpoints/function-log.ts");
|
|
2773
|
+
/* harmony import */ var _http__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(/*! ./http */ "./adapters/REST/endpoints/http.ts");
|
|
2774
|
+
/* harmony import */ var _locale__WEBPACK_IMPORTED_MODULE_33__ = __webpack_require__(/*! ./locale */ "./adapters/REST/endpoints/locale.ts");
|
|
2775
|
+
/* harmony import */ var _organization__WEBPACK_IMPORTED_MODULE_34__ = __webpack_require__(/*! ./organization */ "./adapters/REST/endpoints/organization.ts");
|
|
2776
|
+
/* harmony import */ var _organization_invitation__WEBPACK_IMPORTED_MODULE_35__ = __webpack_require__(/*! ./organization-invitation */ "./adapters/REST/endpoints/organization-invitation.ts");
|
|
2777
|
+
/* harmony import */ var _organization_membership__WEBPACK_IMPORTED_MODULE_36__ = __webpack_require__(/*! ./organization-membership */ "./adapters/REST/endpoints/organization-membership.ts");
|
|
2778
|
+
/* harmony import */ var _oauth_application__WEBPACK_IMPORTED_MODULE_37__ = __webpack_require__(/*! ./oauth-application */ "./adapters/REST/endpoints/oauth-application.ts");
|
|
2779
|
+
/* harmony import */ var _personal_access_token__WEBPACK_IMPORTED_MODULE_38__ = __webpack_require__(/*! ./personal-access-token */ "./adapters/REST/endpoints/personal-access-token.ts");
|
|
2780
|
+
/* harmony import */ var _preview_api_key__WEBPACK_IMPORTED_MODULE_39__ = __webpack_require__(/*! ./preview-api-key */ "./adapters/REST/endpoints/preview-api-key.ts");
|
|
2781
|
+
/* harmony import */ var _release__WEBPACK_IMPORTED_MODULE_40__ = __webpack_require__(/*! ./release */ "./adapters/REST/endpoints/release.ts");
|
|
2782
|
+
/* harmony import */ var _release_action__WEBPACK_IMPORTED_MODULE_41__ = __webpack_require__(/*! ./release-action */ "./adapters/REST/endpoints/release-action.ts");
|
|
2783
|
+
/* harmony import */ var _resource__WEBPACK_IMPORTED_MODULE_42__ = __webpack_require__(/*! ./resource */ "./adapters/REST/endpoints/resource.ts");
|
|
2784
|
+
/* harmony import */ var _resource_provider__WEBPACK_IMPORTED_MODULE_43__ = __webpack_require__(/*! ./resource-provider */ "./adapters/REST/endpoints/resource-provider.ts");
|
|
2785
|
+
/* harmony import */ var _resource_type__WEBPACK_IMPORTED_MODULE_44__ = __webpack_require__(/*! ./resource-type */ "./adapters/REST/endpoints/resource-type.ts");
|
|
2786
|
+
/* harmony import */ var _role__WEBPACK_IMPORTED_MODULE_45__ = __webpack_require__(/*! ./role */ "./adapters/REST/endpoints/role.ts");
|
|
2787
|
+
/* harmony import */ var _scheduled_action__WEBPACK_IMPORTED_MODULE_46__ = __webpack_require__(/*! ./scheduled-action */ "./adapters/REST/endpoints/scheduled-action.ts");
|
|
2788
|
+
/* harmony import */ var _snapshot__WEBPACK_IMPORTED_MODULE_47__ = __webpack_require__(/*! ./snapshot */ "./adapters/REST/endpoints/snapshot.ts");
|
|
2789
|
+
/* harmony import */ var _space__WEBPACK_IMPORTED_MODULE_48__ = __webpack_require__(/*! ./space */ "./adapters/REST/endpoints/space.ts");
|
|
2790
|
+
/* harmony import */ var _space_member__WEBPACK_IMPORTED_MODULE_49__ = __webpack_require__(/*! ./space-member */ "./adapters/REST/endpoints/space-member.ts");
|
|
2791
|
+
/* harmony import */ var _space_membership__WEBPACK_IMPORTED_MODULE_50__ = __webpack_require__(/*! ./space-membership */ "./adapters/REST/endpoints/space-membership.ts");
|
|
2792
|
+
/* harmony import */ var _tag__WEBPACK_IMPORTED_MODULE_51__ = __webpack_require__(/*! ./tag */ "./adapters/REST/endpoints/tag.ts");
|
|
2793
|
+
/* harmony import */ var _task__WEBPACK_IMPORTED_MODULE_52__ = __webpack_require__(/*! ./task */ "./adapters/REST/endpoints/task.ts");
|
|
2794
|
+
/* harmony import */ var _team__WEBPACK_IMPORTED_MODULE_53__ = __webpack_require__(/*! ./team */ "./adapters/REST/endpoints/team.ts");
|
|
2795
|
+
/* harmony import */ var _team_membership__WEBPACK_IMPORTED_MODULE_54__ = __webpack_require__(/*! ./team-membership */ "./adapters/REST/endpoints/team-membership.ts");
|
|
2796
|
+
/* harmony import */ var _team_space_membership__WEBPACK_IMPORTED_MODULE_55__ = __webpack_require__(/*! ./team-space-membership */ "./adapters/REST/endpoints/team-space-membership.ts");
|
|
2797
|
+
/* harmony import */ var _ui_config__WEBPACK_IMPORTED_MODULE_56__ = __webpack_require__(/*! ./ui-config */ "./adapters/REST/endpoints/ui-config.ts");
|
|
2798
|
+
/* harmony import */ var _upload__WEBPACK_IMPORTED_MODULE_57__ = __webpack_require__(/*! ./upload */ "./adapters/REST/endpoints/upload.ts");
|
|
2799
|
+
/* harmony import */ var _upload_credentials__WEBPACK_IMPORTED_MODULE_58__ = __webpack_require__(/*! ./upload-credentials */ "./adapters/REST/endpoints/upload-credentials.ts");
|
|
2800
|
+
/* harmony import */ var _usage__WEBPACK_IMPORTED_MODULE_59__ = __webpack_require__(/*! ./usage */ "./adapters/REST/endpoints/usage.ts");
|
|
2801
|
+
/* harmony import */ var _user__WEBPACK_IMPORTED_MODULE_60__ = __webpack_require__(/*! ./user */ "./adapters/REST/endpoints/user.ts");
|
|
2802
|
+
/* harmony import */ var _user_ui_config__WEBPACK_IMPORTED_MODULE_61__ = __webpack_require__(/*! ./user-ui-config */ "./adapters/REST/endpoints/user-ui-config.ts");
|
|
2803
|
+
/* harmony import */ var _webhook__WEBPACK_IMPORTED_MODULE_62__ = __webpack_require__(/*! ./webhook */ "./adapters/REST/endpoints/webhook.ts");
|
|
2804
|
+
/* harmony import */ var _workflow__WEBPACK_IMPORTED_MODULE_63__ = __webpack_require__(/*! ./workflow */ "./adapters/REST/endpoints/workflow.ts");
|
|
2805
|
+
/* harmony import */ var _workflow_definition__WEBPACK_IMPORTED_MODULE_64__ = __webpack_require__(/*! ./workflow-definition */ "./adapters/REST/endpoints/workflow-definition.ts");
|
|
2806
|
+
/* harmony import */ var _workflows_changelog__WEBPACK_IMPORTED_MODULE_65__ = __webpack_require__(/*! ./workflows-changelog */ "./adapters/REST/endpoints/workflows-changelog.ts");
|
|
2807
|
+
|
|
2808
|
+
|
|
2700
2809
|
|
|
2701
2810
|
|
|
2702
2811
|
|
|
@@ -2762,70 +2871,72 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
2762
2871
|
|
|
2763
2872
|
|
|
2764
2873
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({
|
|
2765
|
-
|
|
2766
|
-
|
|
2767
|
-
|
|
2768
|
-
|
|
2769
|
-
|
|
2770
|
-
|
|
2771
|
-
|
|
2772
|
-
|
|
2773
|
-
|
|
2774
|
-
|
|
2775
|
-
|
|
2776
|
-
|
|
2777
|
-
|
|
2778
|
-
|
|
2779
|
-
|
|
2780
|
-
|
|
2781
|
-
|
|
2782
|
-
|
|
2783
|
-
|
|
2784
|
-
|
|
2785
|
-
|
|
2786
|
-
|
|
2787
|
-
|
|
2788
|
-
|
|
2789
|
-
|
|
2790
|
-
|
|
2791
|
-
|
|
2792
|
-
|
|
2793
|
-
|
|
2794
|
-
|
|
2795
|
-
|
|
2796
|
-
|
|
2797
|
-
|
|
2798
|
-
|
|
2799
|
-
|
|
2800
|
-
|
|
2801
|
-
|
|
2802
|
-
|
|
2803
|
-
|
|
2804
|
-
|
|
2805
|
-
|
|
2806
|
-
|
|
2807
|
-
|
|
2808
|
-
|
|
2809
|
-
|
|
2810
|
-
|
|
2811
|
-
|
|
2812
|
-
|
|
2813
|
-
|
|
2814
|
-
|
|
2815
|
-
|
|
2816
|
-
|
|
2817
|
-
|
|
2818
|
-
|
|
2819
|
-
|
|
2820
|
-
|
|
2821
|
-
|
|
2822
|
-
|
|
2823
|
-
|
|
2824
|
-
|
|
2825
|
-
|
|
2826
|
-
|
|
2827
|
-
|
|
2828
|
-
|
|
2874
|
+
AiAction: _ai_action__WEBPACK_IMPORTED_MODULE_0__,
|
|
2875
|
+
AiActionInvocation: _ai_action_invocation__WEBPACK_IMPORTED_MODULE_1__,
|
|
2876
|
+
ApiKey: _api_key__WEBPACK_IMPORTED_MODULE_3__,
|
|
2877
|
+
AppAction: _app_action__WEBPACK_IMPORTED_MODULE_5__,
|
|
2878
|
+
AppActionCall: _app_action_call__WEBPACK_IMPORTED_MODULE_6__,
|
|
2879
|
+
AppBundle: _app_bundle__WEBPACK_IMPORTED_MODULE_7__,
|
|
2880
|
+
AppDefinition: _app_definition__WEBPACK_IMPORTED_MODULE_8__,
|
|
2881
|
+
AppInstallation: _app_installation__WEBPACK_IMPORTED_MODULE_11__,
|
|
2882
|
+
AppUpload: _app_upload__WEBPACK_IMPORTED_MODULE_15__,
|
|
2883
|
+
AppSignedRequest: _app_signed_request__WEBPACK_IMPORTED_MODULE_13__,
|
|
2884
|
+
AppSigningSecret: _app_signing_secret__WEBPACK_IMPORTED_MODULE_14__,
|
|
2885
|
+
AppEventSubscription: _app_event_subscription__WEBPACK_IMPORTED_MODULE_10__,
|
|
2886
|
+
AppKey: _app_key__WEBPACK_IMPORTED_MODULE_12__,
|
|
2887
|
+
AppAccessToken: _app_access_token__WEBPACK_IMPORTED_MODULE_4__,
|
|
2888
|
+
AppDetails: _app_details__WEBPACK_IMPORTED_MODULE_9__,
|
|
2889
|
+
Asset: _asset__WEBPACK_IMPORTED_MODULE_16__,
|
|
2890
|
+
AssetKey: _asset_key__WEBPACK_IMPORTED_MODULE_17__,
|
|
2891
|
+
BulkAction: _bulk_action__WEBPACK_IMPORTED_MODULE_18__,
|
|
2892
|
+
Comment: _comment__WEBPACK_IMPORTED_MODULE_19__,
|
|
2893
|
+
Concept: _concept__WEBPACK_IMPORTED_MODULE_20__,
|
|
2894
|
+
ConceptScheme: _concept_scheme__WEBPACK_IMPORTED_MODULE_21__,
|
|
2895
|
+
ContentType: _content_type__WEBPACK_IMPORTED_MODULE_22__,
|
|
2896
|
+
EditorInterface: _editor_interface__WEBPACK_IMPORTED_MODULE_23__,
|
|
2897
|
+
Entry: _entry__WEBPACK_IMPORTED_MODULE_24__,
|
|
2898
|
+
Environment: _environment__WEBPACK_IMPORTED_MODULE_25__,
|
|
2899
|
+
EnvironmentAlias: _environment_alias__WEBPACK_IMPORTED_MODULE_26__,
|
|
2900
|
+
EnvironmentTemplate: _environment_template__WEBPACK_IMPORTED_MODULE_27__,
|
|
2901
|
+
EnvironmentTemplateInstallation: _environment_template_installation__WEBPACK_IMPORTED_MODULE_28__,
|
|
2902
|
+
Extension: _extension__WEBPACK_IMPORTED_MODULE_29__,
|
|
2903
|
+
Function: _function__WEBPACK_IMPORTED_MODULE_30__,
|
|
2904
|
+
FunctionLog: _function_log__WEBPACK_IMPORTED_MODULE_31__,
|
|
2905
|
+
Http: _http__WEBPACK_IMPORTED_MODULE_32__,
|
|
2906
|
+
Locale: _locale__WEBPACK_IMPORTED_MODULE_33__,
|
|
2907
|
+
Organization: _organization__WEBPACK_IMPORTED_MODULE_34__,
|
|
2908
|
+
OrganizationInvitation: _organization_invitation__WEBPACK_IMPORTED_MODULE_35__,
|
|
2909
|
+
OrganizationMembership: _organization_membership__WEBPACK_IMPORTED_MODULE_36__,
|
|
2910
|
+
OAuthApplication: _oauth_application__WEBPACK_IMPORTED_MODULE_37__,
|
|
2911
|
+
PersonalAccessToken: _personal_access_token__WEBPACK_IMPORTED_MODULE_38__,
|
|
2912
|
+
AccessToken: _access_token__WEBPACK_IMPORTED_MODULE_2__,
|
|
2913
|
+
PreviewApiKey: _preview_api_key__WEBPACK_IMPORTED_MODULE_39__,
|
|
2914
|
+
Release: _release__WEBPACK_IMPORTED_MODULE_40__,
|
|
2915
|
+
ReleaseAction: _release_action__WEBPACK_IMPORTED_MODULE_41__,
|
|
2916
|
+
Resource: _resource__WEBPACK_IMPORTED_MODULE_42__,
|
|
2917
|
+
ResourceProvider: _resource_provider__WEBPACK_IMPORTED_MODULE_43__,
|
|
2918
|
+
ResourceType: _resource_type__WEBPACK_IMPORTED_MODULE_44__,
|
|
2919
|
+
Role: _role__WEBPACK_IMPORTED_MODULE_45__,
|
|
2920
|
+
ScheduledAction: _scheduled_action__WEBPACK_IMPORTED_MODULE_46__,
|
|
2921
|
+
Snapshot: _snapshot__WEBPACK_IMPORTED_MODULE_47__,
|
|
2922
|
+
Space: _space__WEBPACK_IMPORTED_MODULE_48__,
|
|
2923
|
+
SpaceMember: _space_member__WEBPACK_IMPORTED_MODULE_49__,
|
|
2924
|
+
SpaceMembership: _space_membership__WEBPACK_IMPORTED_MODULE_50__,
|
|
2925
|
+
Tag: _tag__WEBPACK_IMPORTED_MODULE_51__,
|
|
2926
|
+
Task: _task__WEBPACK_IMPORTED_MODULE_52__,
|
|
2927
|
+
Team: _team__WEBPACK_IMPORTED_MODULE_53__,
|
|
2928
|
+
TeamMembership: _team_membership__WEBPACK_IMPORTED_MODULE_54__,
|
|
2929
|
+
TeamSpaceMembership: _team_space_membership__WEBPACK_IMPORTED_MODULE_55__,
|
|
2930
|
+
UIConfig: _ui_config__WEBPACK_IMPORTED_MODULE_56__,
|
|
2931
|
+
Upload: _upload__WEBPACK_IMPORTED_MODULE_57__,
|
|
2932
|
+
UploadCredential: _upload_credentials__WEBPACK_IMPORTED_MODULE_58__,
|
|
2933
|
+
Usage: _usage__WEBPACK_IMPORTED_MODULE_59__,
|
|
2934
|
+
User: _user__WEBPACK_IMPORTED_MODULE_60__,
|
|
2935
|
+
UserUIConfig: _user_ui_config__WEBPACK_IMPORTED_MODULE_61__,
|
|
2936
|
+
Webhook: _webhook__WEBPACK_IMPORTED_MODULE_62__,
|
|
2937
|
+
WorkflowDefinition: _workflow_definition__WEBPACK_IMPORTED_MODULE_64__,
|
|
2938
|
+
Workflow: _workflow__WEBPACK_IMPORTED_MODULE_63__,
|
|
2939
|
+
WorkflowsChangelog: _workflows_changelog__WEBPACK_IMPORTED_MODULE_65__
|
|
2829
2940
|
});
|
|
2830
2941
|
|
|
2831
2942
|
/***/ }),
|
|
@@ -4746,13 +4857,9 @@ const makeRequest = async ({
|
|
|
4746
4857
|
if (endpoint === undefined) {
|
|
4747
4858
|
throw new Error('Unknown endpoint');
|
|
4748
4859
|
}
|
|
4749
|
-
|
|
4860
|
+
return await endpoint(axiosInstance, params, payload, _objectSpread(_objectSpread({}, headers), userAgent ? {
|
|
4750
4861
|
'X-Contentful-User-Agent': userAgent
|
|
4751
4862
|
} : {}));
|
|
4752
|
-
if (response instanceof ReadableStream) {
|
|
4753
|
-
return await new Response(response).json();
|
|
4754
|
-
}
|
|
4755
|
-
return response;
|
|
4756
4863
|
};
|
|
4757
4864
|
|
|
4758
4865
|
/***/ }),
|
|
@@ -6970,6 +7077,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
6970
7077
|
/* harmony import */ var _entities_environment_template_installation__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./entities/environment-template-installation */ "./entities/environment-template-installation.ts");
|
|
6971
7078
|
/* harmony import */ var _entities_function__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./entities/function */ "./entities/function.ts");
|
|
6972
7079
|
/* harmony import */ var _entities_function_log__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./entities/function-log */ "./entities/function-log.ts");
|
|
7080
|
+
/* harmony import */ var _entities_ai_action_invocation__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./entities/ai-action-invocation */ "./entities/ai-action-invocation.ts");
|
|
6973
7081
|
const _excluded = ["installationId"];
|
|
6974
7082
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
6975
7083
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
@@ -6989,6 +7097,7 @@ function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t =
|
|
|
6989
7097
|
|
|
6990
7098
|
|
|
6991
7099
|
|
|
7100
|
+
|
|
6992
7101
|
/**
|
|
6993
7102
|
* @private
|
|
6994
7103
|
*/
|
|
@@ -9431,6 +9540,66 @@ function createEnvironmentApi(makeRequest) {
|
|
|
9431
9540
|
resourceTypeId
|
|
9432
9541
|
}
|
|
9433
9542
|
}).then(data => wrapResourceCollection(makeRequest, data));
|
|
9543
|
+
},
|
|
9544
|
+
/**
|
|
9545
|
+
* Invokes an AI Action.
|
|
9546
|
+
* @param aiActionId - The ID of the AI Action to invoke.
|
|
9547
|
+
* @param payload - The invocation payload.
|
|
9548
|
+
* @returns Promise for an AI Action Invocation.
|
|
9549
|
+
* @example ```javascript
|
|
9550
|
+
* client.getSpace('<space_id>')
|
|
9551
|
+
* .then(space => space.getEnvironment('<environment_id>'))
|
|
9552
|
+
* .then(environment => environment.invokeAiAction('<ai_action_id>', {
|
|
9553
|
+
* variables: [ ... ],
|
|
9554
|
+
* outputFormat: 'RichText'
|
|
9555
|
+
* }))
|
|
9556
|
+
* .then(invocation => console.log(invocation))
|
|
9557
|
+
* .catch(console.error)
|
|
9558
|
+
* ```
|
|
9559
|
+
*/
|
|
9560
|
+
invokeAiAction(aiActionId, payload) {
|
|
9561
|
+
const raw = this.toPlainObject();
|
|
9562
|
+
return makeRequest({
|
|
9563
|
+
entityType: 'AiAction',
|
|
9564
|
+
action: 'invoke',
|
|
9565
|
+
params: {
|
|
9566
|
+
spaceId: raw.sys.space.sys.id,
|
|
9567
|
+
environmentId: raw.sys.id,
|
|
9568
|
+
aiActionId
|
|
9569
|
+
},
|
|
9570
|
+
payload
|
|
9571
|
+
}).then(data => (0,_entities_ai_action_invocation__WEBPACK_IMPORTED_MODULE_10__.wrapAiActionInvocation)(makeRequest, data));
|
|
9572
|
+
},
|
|
9573
|
+
/**
|
|
9574
|
+
* Retrieves an AI Action Invocation.
|
|
9575
|
+
* @param params - Object containing the AI Action ID and the Invocation ID.
|
|
9576
|
+
* @returns Promise for an AI Action Invocation.
|
|
9577
|
+
* @example ```javascript
|
|
9578
|
+
* client.getSpace('<space_id>')
|
|
9579
|
+
* .then(space => space.getEnvironment('<environment_id>'))
|
|
9580
|
+
* .then(environment => environment.getAiActionInvocation({
|
|
9581
|
+
* aiActionId: '<ai_action_id>',
|
|
9582
|
+
* invocationId: '<invocation_id>'
|
|
9583
|
+
* }))
|
|
9584
|
+
* .then(invocation => console.log(invocation))
|
|
9585
|
+
* .catch(console.error)
|
|
9586
|
+
* ```
|
|
9587
|
+
*/
|
|
9588
|
+
getAiActionInvocation({
|
|
9589
|
+
aiActionId,
|
|
9590
|
+
invocationId
|
|
9591
|
+
}) {
|
|
9592
|
+
const raw = this.toPlainObject();
|
|
9593
|
+
return makeRequest({
|
|
9594
|
+
entityType: 'AiActionInvocation',
|
|
9595
|
+
action: 'get',
|
|
9596
|
+
params: {
|
|
9597
|
+
spaceId: raw.sys.space.sys.id,
|
|
9598
|
+
environmentId: raw.sys.id,
|
|
9599
|
+
aiActionId,
|
|
9600
|
+
invocationId
|
|
9601
|
+
}
|
|
9602
|
+
}).then(data => (0,_entities_ai_action_invocation__WEBPACK_IMPORTED_MODULE_10__.wrapAiActionInvocation)(makeRequest, data));
|
|
9434
9603
|
}
|
|
9435
9604
|
};
|
|
9436
9605
|
}
|
|
@@ -11173,6 +11342,14 @@ function createSpaceApi(makeRequest) {
|
|
|
11173
11342
|
wrapScheduledAction,
|
|
11174
11343
|
wrapScheduledActionCollection
|
|
11175
11344
|
} = _entities__WEBPACK_IMPORTED_MODULE_1__["default"].scheduledAction;
|
|
11345
|
+
const {
|
|
11346
|
+
wrapAiAction,
|
|
11347
|
+
wrapAiActionCollection
|
|
11348
|
+
} = _entities__WEBPACK_IMPORTED_MODULE_1__["default"].aiAction;
|
|
11349
|
+
const {
|
|
11350
|
+
wrapAiActionInvocation,
|
|
11351
|
+
wrapAiActionInvocationCollection
|
|
11352
|
+
} = _entities__WEBPACK_IMPORTED_MODULE_1__["default"].aiActionInvocation;
|
|
11176
11353
|
return {
|
|
11177
11354
|
/**
|
|
11178
11355
|
* Deletes the space
|
|
@@ -12666,6 +12843,184 @@ function createSpaceApi(makeRequest) {
|
|
|
12666
12843
|
scheduledActionId
|
|
12667
12844
|
}
|
|
12668
12845
|
}).then(response => wrapScheduledAction(makeRequest, response));
|
|
12846
|
+
},
|
|
12847
|
+
/**
|
|
12848
|
+
* Gets a single AI Action.
|
|
12849
|
+
* @param aiActionId - AI Action ID
|
|
12850
|
+
* @return Promise for an AI Action
|
|
12851
|
+
* @example
|
|
12852
|
+
* ```javascript
|
|
12853
|
+
* client.getSpace('<space_id>')
|
|
12854
|
+
* .then((space) => space.getAiAction('<ai_action_id>'))
|
|
12855
|
+
* .then((aiAction) => console.log(aiAction))
|
|
12856
|
+
* .catch(console.error)
|
|
12857
|
+
* ```
|
|
12858
|
+
*/
|
|
12859
|
+
getAiAction(aiActionId) {
|
|
12860
|
+
const raw = this.toPlainObject();
|
|
12861
|
+
return makeRequest({
|
|
12862
|
+
entityType: 'AiAction',
|
|
12863
|
+
action: 'get',
|
|
12864
|
+
params: {
|
|
12865
|
+
spaceId: raw.sys.id,
|
|
12866
|
+
aiActionId
|
|
12867
|
+
}
|
|
12868
|
+
}).then(data => wrapAiAction(makeRequest, data));
|
|
12869
|
+
},
|
|
12870
|
+
/**
|
|
12871
|
+
* Gets a collection of AI Actions.
|
|
12872
|
+
* @param query - Object with search parameters.
|
|
12873
|
+
* @return Promise for a collection of AI Actions
|
|
12874
|
+
* @example
|
|
12875
|
+
* ```javascript
|
|
12876
|
+
* client.getSpace('<space_id>')
|
|
12877
|
+
* .then((space) => space.getAiActions({ limit: 10 }))
|
|
12878
|
+
* .then((response) => console.log(response.items))
|
|
12879
|
+
* .catch(console.error)
|
|
12880
|
+
* ```
|
|
12881
|
+
*/
|
|
12882
|
+
getAiActions(query = {}) {
|
|
12883
|
+
const raw = this.toPlainObject();
|
|
12884
|
+
return makeRequest({
|
|
12885
|
+
entityType: 'AiAction',
|
|
12886
|
+
action: 'getMany',
|
|
12887
|
+
params: {
|
|
12888
|
+
spaceId: raw.sys.id,
|
|
12889
|
+
query
|
|
12890
|
+
}
|
|
12891
|
+
}).then(data => wrapAiActionCollection(makeRequest, data));
|
|
12892
|
+
},
|
|
12893
|
+
/**
|
|
12894
|
+
* Creates an AI Action.
|
|
12895
|
+
* @param data - Object representation of the AI Action to be created
|
|
12896
|
+
* @return Promise for the newly created AI Action
|
|
12897
|
+
* @example
|
|
12898
|
+
* ```javascript
|
|
12899
|
+
* client.getSpace('<space_id>')
|
|
12900
|
+
* .then((space) => space.createAiAction({
|
|
12901
|
+
* name: 'My AI Action',
|
|
12902
|
+
* description: 'Description here',
|
|
12903
|
+
* configuration: { modelType: 'model-x', modelTemperature: 0.7 },
|
|
12904
|
+
* instruction: { template: 'Do something: {{var.input}}', variables: [], conditions: [] },
|
|
12905
|
+
* testCases: []
|
|
12906
|
+
* }))
|
|
12907
|
+
* .then((aiAction) => console.log(aiAction))
|
|
12908
|
+
* .catch(console.error)
|
|
12909
|
+
* ```
|
|
12910
|
+
*/
|
|
12911
|
+
createAiAction(data) {
|
|
12912
|
+
const raw = this.toPlainObject();
|
|
12913
|
+
return makeRequest({
|
|
12914
|
+
entityType: 'AiAction',
|
|
12915
|
+
action: 'create',
|
|
12916
|
+
params: {
|
|
12917
|
+
spaceId: raw.sys.id
|
|
12918
|
+
},
|
|
12919
|
+
payload: data
|
|
12920
|
+
}).then(response => wrapAiAction(makeRequest, response));
|
|
12921
|
+
},
|
|
12922
|
+
/**
|
|
12923
|
+
* Updates an AI Action.
|
|
12924
|
+
* @param aiActionId - AI Action ID
|
|
12925
|
+
* @param data - Object representation of the AI Action update
|
|
12926
|
+
* @return Promise for the updated AI Action
|
|
12927
|
+
* @example
|
|
12928
|
+
* ```javascript
|
|
12929
|
+
* client.getSpace('<space_id>')
|
|
12930
|
+
* .then((space) => space.updateAiAction('<ai_action_id>', { name: 'New Name', ... }))
|
|
12931
|
+
* .then((aiAction) => console.log(aiAction))
|
|
12932
|
+
* .catch(console.error)
|
|
12933
|
+
* ```
|
|
12934
|
+
*/
|
|
12935
|
+
updateAiAction(aiActionId, data) {
|
|
12936
|
+
var _data$sys$version;
|
|
12937
|
+
const raw = this.toPlainObject();
|
|
12938
|
+
return makeRequest({
|
|
12939
|
+
entityType: 'AiAction',
|
|
12940
|
+
action: 'update',
|
|
12941
|
+
params: {
|
|
12942
|
+
spaceId: raw.sys.id,
|
|
12943
|
+
aiActionId
|
|
12944
|
+
},
|
|
12945
|
+
payload: data,
|
|
12946
|
+
headers: {
|
|
12947
|
+
'X-Contentful-Version': (_data$sys$version = data.sys.version) !== null && _data$sys$version !== void 0 ? _data$sys$version : 0
|
|
12948
|
+
}
|
|
12949
|
+
}).then(response => wrapAiAction(makeRequest, response));
|
|
12950
|
+
},
|
|
12951
|
+
/**
|
|
12952
|
+
* Publishes an AI Action.
|
|
12953
|
+
* @param aiActionId - AI Action ID
|
|
12954
|
+
* @param data - Object representation of the AI Action to be published
|
|
12955
|
+
* @return Promise for the published AI Action
|
|
12956
|
+
* @example
|
|
12957
|
+
* ```javascript
|
|
12958
|
+
* client.getSpace('<space_id>')
|
|
12959
|
+
* .then((space) => space.publishAiAction('<ai_action_id>', { ... }))
|
|
12960
|
+
* .then((aiAction) => console.log(aiAction))
|
|
12961
|
+
* .catch(console.error)
|
|
12962
|
+
* ```
|
|
12963
|
+
*/
|
|
12964
|
+
publishAiAction(aiActionId, data) {
|
|
12965
|
+
const raw = this.toPlainObject();
|
|
12966
|
+
return makeRequest({
|
|
12967
|
+
entityType: 'AiAction',
|
|
12968
|
+
action: 'publish',
|
|
12969
|
+
params: {
|
|
12970
|
+
spaceId: raw.sys.id,
|
|
12971
|
+
aiActionId
|
|
12972
|
+
},
|
|
12973
|
+
payload: data,
|
|
12974
|
+
headers: {
|
|
12975
|
+
'X-Contentful-Version': data.sys.version
|
|
12976
|
+
}
|
|
12977
|
+
}).then(response => wrapAiAction(makeRequest, response));
|
|
12978
|
+
},
|
|
12979
|
+
/**
|
|
12980
|
+
* Unpublishes an AI Action.
|
|
12981
|
+
* @param aiActionId - AI Action ID
|
|
12982
|
+
* @return Promise for the unpublished AI Action
|
|
12983
|
+
* @example
|
|
12984
|
+
* ```javascript
|
|
12985
|
+
* client.getSpace('<space_id>')
|
|
12986
|
+
* .then((space) => space.unpublishAiAction('<ai_action_id>'))
|
|
12987
|
+
* .then((aiAction) => console.log(aiAction))
|
|
12988
|
+
* .catch(console.error)
|
|
12989
|
+
* ```
|
|
12990
|
+
*/
|
|
12991
|
+
unpublishAiAction(aiActionId) {
|
|
12992
|
+
const raw = this.toPlainObject();
|
|
12993
|
+
return makeRequest({
|
|
12994
|
+
entityType: 'AiAction',
|
|
12995
|
+
action: 'unpublish',
|
|
12996
|
+
params: {
|
|
12997
|
+
spaceId: raw.sys.id,
|
|
12998
|
+
aiActionId
|
|
12999
|
+
}
|
|
13000
|
+
}).then(response => wrapAiAction(makeRequest, response));
|
|
13001
|
+
},
|
|
13002
|
+
/**
|
|
13003
|
+
* Deletes an AI Action.
|
|
13004
|
+
* @param aiActionId - AI Action ID
|
|
13005
|
+
* @return Promise for deletion (void)
|
|
13006
|
+
* @example
|
|
13007
|
+
* ```javascript
|
|
13008
|
+
* client.getSpace('<space_id>')
|
|
13009
|
+
* .then((space) => space.deleteAiAction('<ai_action_id>'))
|
|
13010
|
+
* .then(() => console.log('AI Action deleted'))
|
|
13011
|
+
* .catch(console.error)
|
|
13012
|
+
* ```
|
|
13013
|
+
*/
|
|
13014
|
+
deleteAiAction(aiActionId) {
|
|
13015
|
+
const raw = this.toPlainObject();
|
|
13016
|
+
return makeRequest({
|
|
13017
|
+
entityType: 'AiAction',
|
|
13018
|
+
action: 'delete',
|
|
13019
|
+
params: {
|
|
13020
|
+
spaceId: raw.sys.id,
|
|
13021
|
+
aiActionId
|
|
13022
|
+
}
|
|
13023
|
+
});
|
|
12669
13024
|
}
|
|
12670
13025
|
};
|
|
12671
13026
|
}
|
|
@@ -12915,6 +13270,181 @@ const wrapAccessTokenCollection = (0,_common_utils__WEBPACK_IMPORTED_MODULE_3__.
|
|
|
12915
13270
|
|
|
12916
13271
|
/***/ }),
|
|
12917
13272
|
|
|
13273
|
+
/***/ "./entities/ai-action-invocation.ts":
|
|
13274
|
+
/*!******************************************!*\
|
|
13275
|
+
!*** ./entities/ai-action-invocation.ts ***!
|
|
13276
|
+
\******************************************/
|
|
13277
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
13278
|
+
|
|
13279
|
+
"use strict";
|
|
13280
|
+
__webpack_require__.r(__webpack_exports__);
|
|
13281
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
13282
|
+
/* harmony export */ AiActionOutputFormat: () => (/* binding */ AiActionOutputFormat),
|
|
13283
|
+
/* harmony export */ InvocationResultType: () => (/* binding */ InvocationResultType),
|
|
13284
|
+
/* harmony export */ InvocationStatus: () => (/* binding */ InvocationStatus),
|
|
13285
|
+
/* harmony export */ wrapAiActionInvocation: () => (/* binding */ wrapAiActionInvocation),
|
|
13286
|
+
/* harmony export */ wrapAiActionInvocationCollection: () => (/* binding */ wrapAiActionInvocationCollection)
|
|
13287
|
+
/* harmony export */ });
|
|
13288
|
+
/* harmony import */ var contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! contentful-sdk-core */ "../node_modules/contentful-sdk-core/dist/index.js");
|
|
13289
|
+
/* harmony import */ var fast_copy__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! fast-copy */ "../node_modules/fast-copy/dist/esm/index.mjs");
|
|
13290
|
+
/* harmony import */ var _common_utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../common-utils */ "./common-utils.ts");
|
|
13291
|
+
|
|
13292
|
+
|
|
13293
|
+
|
|
13294
|
+
let InvocationStatus = /*#__PURE__*/function (InvocationStatus) {
|
|
13295
|
+
InvocationStatus["Scheduled"] = "SCHEDULED";
|
|
13296
|
+
InvocationStatus["InProgress"] = "IN_PROGRESS";
|
|
13297
|
+
InvocationStatus["Failed"] = "FAILED";
|
|
13298
|
+
InvocationStatus["Completed"] = "COMPLETED";
|
|
13299
|
+
InvocationStatus["Cancelled"] = "CANCELLED";
|
|
13300
|
+
return InvocationStatus;
|
|
13301
|
+
}({});
|
|
13302
|
+
let InvocationResultType = /*#__PURE__*/function (InvocationResultType) {
|
|
13303
|
+
InvocationResultType["Text"] = "text";
|
|
13304
|
+
return InvocationResultType;
|
|
13305
|
+
}({});
|
|
13306
|
+
const AiActionOutputFormat = {
|
|
13307
|
+
RichText: 'RichText',
|
|
13308
|
+
Markdown: 'Markdown',
|
|
13309
|
+
PlainText: 'PlainText'
|
|
13310
|
+
};
|
|
13311
|
+
|
|
13312
|
+
/**
|
|
13313
|
+
* The AI Action Invocation entity.
|
|
13314
|
+
* This entity is read-only and primarily used to inspect the result of an AI action invocation.
|
|
13315
|
+
*/
|
|
13316
|
+
|
|
13317
|
+
/**
|
|
13318
|
+
* Wraps raw AI Action Invocation data with SDK helper methods.
|
|
13319
|
+
*
|
|
13320
|
+
* @param makeRequest - Function to make API requests.
|
|
13321
|
+
* @param data - Raw AI Action Invocation data.
|
|
13322
|
+
* @returns The AI Action Invocation entity.
|
|
13323
|
+
*/
|
|
13324
|
+
function wrapAiActionInvocation(makeRequest, data) {
|
|
13325
|
+
const invocation = (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__.toPlainObject)((0,fast_copy__WEBPACK_IMPORTED_MODULE_1__["default"])(data));
|
|
13326
|
+
return (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__.freezeSys)(invocation);
|
|
13327
|
+
}
|
|
13328
|
+
|
|
13329
|
+
/**
|
|
13330
|
+
* Wraps a collection of raw AI Action Invocation data.
|
|
13331
|
+
*
|
|
13332
|
+
* @param makeRequest - Function to make API requests.
|
|
13333
|
+
* @param data - Raw collection data.
|
|
13334
|
+
* @returns A collection of AI Action Invocation entities.
|
|
13335
|
+
*/
|
|
13336
|
+
const wrapAiActionInvocationCollection = (0,_common_utils__WEBPACK_IMPORTED_MODULE_2__.wrapCollection)(wrapAiActionInvocation);
|
|
13337
|
+
|
|
13338
|
+
/***/ }),
|
|
13339
|
+
|
|
13340
|
+
/***/ "./entities/ai-action.ts":
|
|
13341
|
+
/*!*******************************!*\
|
|
13342
|
+
!*** ./entities/ai-action.ts ***!
|
|
13343
|
+
\*******************************/
|
|
13344
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
13345
|
+
|
|
13346
|
+
"use strict";
|
|
13347
|
+
__webpack_require__.r(__webpack_exports__);
|
|
13348
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
13349
|
+
/* harmony export */ EntityTypeEntry: () => (/* binding */ EntityTypeEntry),
|
|
13350
|
+
/* harmony export */ StatusFilter: () => (/* binding */ StatusFilter),
|
|
13351
|
+
/* harmony export */ VariableType: () => (/* binding */ VariableType),
|
|
13352
|
+
/* harmony export */ wrapAiAction: () => (/* binding */ wrapAiAction),
|
|
13353
|
+
/* harmony export */ wrapAiActionCollection: () => (/* binding */ wrapAiActionCollection)
|
|
13354
|
+
/* harmony export */ });
|
|
13355
|
+
/* harmony import */ var contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! contentful-sdk-core */ "../node_modules/contentful-sdk-core/dist/index.js");
|
|
13356
|
+
/* harmony import */ var fast_copy__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! fast-copy */ "../node_modules/fast-copy/dist/esm/index.mjs");
|
|
13357
|
+
/* harmony import */ var _common_utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../common-utils */ "./common-utils.ts");
|
|
13358
|
+
/* harmony import */ var _enhance_with_methods__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../enhance-with-methods */ "./enhance-with-methods.ts");
|
|
13359
|
+
/* harmony import */ var _ai_action_invocation__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./ai-action-invocation */ "./entities/ai-action-invocation.ts");
|
|
13360
|
+
|
|
13361
|
+
|
|
13362
|
+
|
|
13363
|
+
|
|
13364
|
+
|
|
13365
|
+
let StatusFilter = /*#__PURE__*/function (StatusFilter) {
|
|
13366
|
+
StatusFilter["ALL"] = "all";
|
|
13367
|
+
StatusFilter["PUBLISHED"] = "published";
|
|
13368
|
+
return StatusFilter;
|
|
13369
|
+
}({});
|
|
13370
|
+
let VariableType = /*#__PURE__*/function (VariableType) {
|
|
13371
|
+
VariableType["RESOURCE_LINK"] = "ResourceLink";
|
|
13372
|
+
VariableType["TEXT"] = "Text";
|
|
13373
|
+
VariableType["STANDARD_INPUT"] = "StandardInput";
|
|
13374
|
+
VariableType["LOCALE"] = "Locale";
|
|
13375
|
+
VariableType["MEDIA_REFERENCE"] = "MediaReference";
|
|
13376
|
+
VariableType["REFERENCE"] = "Reference";
|
|
13377
|
+
VariableType["SMART_CONTEXT"] = "SmartContext";
|
|
13378
|
+
return VariableType;
|
|
13379
|
+
}({});
|
|
13380
|
+
let EntityTypeEntry = /*#__PURE__*/function (EntityTypeEntry) {
|
|
13381
|
+
EntityTypeEntry["ENTRY"] = "Entry";
|
|
13382
|
+
return EntityTypeEntry;
|
|
13383
|
+
}({});
|
|
13384
|
+
function createAiActionApi(makeRequest) {
|
|
13385
|
+
const getParams = data => ({
|
|
13386
|
+
spaceId: data.sys.space.sys.id,
|
|
13387
|
+
aiActionId: data.sys.id
|
|
13388
|
+
});
|
|
13389
|
+
return {
|
|
13390
|
+
update: function update() {
|
|
13391
|
+
const self = this;
|
|
13392
|
+
return makeRequest({
|
|
13393
|
+
entityType: 'AiAction',
|
|
13394
|
+
action: 'update',
|
|
13395
|
+
params: getParams(self),
|
|
13396
|
+
payload: self
|
|
13397
|
+
}).then(data => wrapAiAction(makeRequest, data));
|
|
13398
|
+
},
|
|
13399
|
+
delete: function del() {
|
|
13400
|
+
const self = this;
|
|
13401
|
+
return makeRequest({
|
|
13402
|
+
entityType: 'AiAction',
|
|
13403
|
+
action: 'delete',
|
|
13404
|
+
params: getParams(self)
|
|
13405
|
+
});
|
|
13406
|
+
},
|
|
13407
|
+
publish: function publish() {
|
|
13408
|
+
const self = this;
|
|
13409
|
+
return makeRequest({
|
|
13410
|
+
entityType: 'AiAction',
|
|
13411
|
+
action: 'publish',
|
|
13412
|
+
params: getParams(self),
|
|
13413
|
+
payload: self
|
|
13414
|
+
}).then(data => wrapAiAction(makeRequest, data));
|
|
13415
|
+
},
|
|
13416
|
+
unpublish: function unpublish() {
|
|
13417
|
+
const self = this;
|
|
13418
|
+
return makeRequest({
|
|
13419
|
+
entityType: 'AiAction',
|
|
13420
|
+
action: 'unpublish',
|
|
13421
|
+
params: getParams(self)
|
|
13422
|
+
}).then(data => wrapAiAction(makeRequest, data));
|
|
13423
|
+
},
|
|
13424
|
+
invoke: function invoke(environmentId, payload) {
|
|
13425
|
+
const self = this;
|
|
13426
|
+
return makeRequest({
|
|
13427
|
+
entityType: 'AiAction',
|
|
13428
|
+
action: 'invoke',
|
|
13429
|
+
params: {
|
|
13430
|
+
spaceId: self.sys.space.sys.id,
|
|
13431
|
+
environmentId,
|
|
13432
|
+
aiActionId: self.sys.id
|
|
13433
|
+
},
|
|
13434
|
+
payload
|
|
13435
|
+
}).then(data => (0,_ai_action_invocation__WEBPACK_IMPORTED_MODULE_4__.wrapAiActionInvocation)(makeRequest, data));
|
|
13436
|
+
}
|
|
13437
|
+
};
|
|
13438
|
+
}
|
|
13439
|
+
function wrapAiAction(makeRequest, data) {
|
|
13440
|
+
const aiAction = (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__.toPlainObject)((0,fast_copy__WEBPACK_IMPORTED_MODULE_1__["default"])(data));
|
|
13441
|
+
const aiActionWithMethods = (0,_enhance_with_methods__WEBPACK_IMPORTED_MODULE_3__["default"])(aiAction, createAiActionApi(makeRequest));
|
|
13442
|
+
return (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__.freezeSys)(aiActionWithMethods);
|
|
13443
|
+
}
|
|
13444
|
+
const wrapAiActionCollection = (0,_common_utils__WEBPACK_IMPORTED_MODULE_2__.wrapCollection)(wrapAiAction);
|
|
13445
|
+
|
|
13446
|
+
/***/ }),
|
|
13447
|
+
|
|
12918
13448
|
/***/ "./entities/api-key.ts":
|
|
12919
13449
|
/*!*****************************!*\
|
|
12920
13450
|
!*** ./entities/api-key.ts ***!
|
|
@@ -14695,66 +15225,70 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
14695
15225
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
14696
15226
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
14697
15227
|
/* harmony export */ });
|
|
14698
|
-
/* harmony import */ var
|
|
14699
|
-
/* harmony import */ var
|
|
14700
|
-
/* harmony import */ var
|
|
14701
|
-
/* harmony import */ var
|
|
14702
|
-
/* harmony import */ var
|
|
14703
|
-
/* harmony import */ var
|
|
14704
|
-
/* harmony import */ var
|
|
14705
|
-
/* harmony import */ var
|
|
14706
|
-
/* harmony import */ var
|
|
14707
|
-
/* harmony import */ var
|
|
14708
|
-
/* harmony import */ var
|
|
14709
|
-
/* harmony import */ var
|
|
14710
|
-
/* harmony import */ var
|
|
14711
|
-
/* harmony import */ var
|
|
14712
|
-
/* harmony import */ var
|
|
14713
|
-
/* harmony import */ var
|
|
14714
|
-
/* harmony import */ var
|
|
14715
|
-
/* harmony import */ var
|
|
14716
|
-
/* harmony import */ var
|
|
14717
|
-
/* harmony import */ var
|
|
14718
|
-
/* harmony import */ var
|
|
14719
|
-
/* harmony import */ var
|
|
14720
|
-
/* harmony import */ var
|
|
14721
|
-
/* harmony import */ var
|
|
14722
|
-
/* harmony import */ var
|
|
14723
|
-
/* harmony import */ var
|
|
14724
|
-
/* harmony import */ var
|
|
14725
|
-
/* harmony import */ var
|
|
14726
|
-
/* harmony import */ var
|
|
14727
|
-
/* harmony import */ var
|
|
14728
|
-
/* harmony import */ var
|
|
14729
|
-
/* harmony import */ var
|
|
14730
|
-
/* harmony import */ var
|
|
14731
|
-
/* harmony import */ var
|
|
14732
|
-
/* harmony import */ var
|
|
14733
|
-
/* harmony import */ var
|
|
14734
|
-
/* harmony import */ var
|
|
14735
|
-
/* harmony import */ var
|
|
14736
|
-
/* harmony import */ var
|
|
14737
|
-
/* harmony import */ var
|
|
14738
|
-
/* harmony import */ var
|
|
14739
|
-
/* harmony import */ var
|
|
14740
|
-
/* harmony import */ var
|
|
14741
|
-
/* harmony import */ var
|
|
14742
|
-
/* harmony import */ var
|
|
14743
|
-
/* harmony import */ var
|
|
14744
|
-
/* harmony import */ var
|
|
14745
|
-
/* harmony import */ var
|
|
14746
|
-
/* harmony import */ var
|
|
14747
|
-
/* harmony import */ var
|
|
14748
|
-
/* harmony import */ var
|
|
14749
|
-
/* harmony import */ var
|
|
14750
|
-
/* harmony import */ var
|
|
14751
|
-
/* harmony import */ var
|
|
14752
|
-
/* harmony import */ var
|
|
14753
|
-
/* harmony import */ var
|
|
14754
|
-
/* harmony import */ var
|
|
14755
|
-
/* harmony import */ var
|
|
14756
|
-
/* harmony import */ var
|
|
14757
|
-
/* harmony import */ var
|
|
15228
|
+
/* harmony import */ var _ai_action__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./ai-action */ "./entities/ai-action.ts");
|
|
15229
|
+
/* harmony import */ var _ai_action_invocation__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./ai-action-invocation */ "./entities/ai-action-invocation.ts");
|
|
15230
|
+
/* harmony import */ var _api_key__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./api-key */ "./entities/api-key.ts");
|
|
15231
|
+
/* harmony import */ var _app_action__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./app-action */ "./entities/app-action.ts");
|
|
15232
|
+
/* harmony import */ var _app_action_call__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./app-action-call */ "./entities/app-action-call.ts");
|
|
15233
|
+
/* harmony import */ var _app_bundle__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./app-bundle */ "./entities/app-bundle.ts");
|
|
15234
|
+
/* harmony import */ var _app_definition__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./app-definition */ "./entities/app-definition.ts");
|
|
15235
|
+
/* harmony import */ var _app_details__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./app-details */ "./entities/app-details.ts");
|
|
15236
|
+
/* harmony import */ var _app_installation__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./app-installation */ "./entities/app-installation.ts");
|
|
15237
|
+
/* harmony import */ var _app_signed_request__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./app-signed-request */ "./entities/app-signed-request.ts");
|
|
15238
|
+
/* harmony import */ var _app_signing_secret__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./app-signing-secret */ "./entities/app-signing-secret.ts");
|
|
15239
|
+
/* harmony import */ var _app_event_subscription__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./app-event-subscription */ "./entities/app-event-subscription.ts");
|
|
15240
|
+
/* harmony import */ var _app_key__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./app-key */ "./entities/app-key.ts");
|
|
15241
|
+
/* harmony import */ var _app_access_token__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./app-access-token */ "./entities/app-access-token.ts");
|
|
15242
|
+
/* harmony import */ var _app_upload__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./app-upload */ "./entities/app-upload.ts");
|
|
15243
|
+
/* harmony import */ var _asset__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./asset */ "./entities/asset.ts");
|
|
15244
|
+
/* harmony import */ var _asset_key__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./asset-key */ "./entities/asset-key.ts");
|
|
15245
|
+
/* harmony import */ var _bulk_action__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./bulk-action */ "./entities/bulk-action.ts");
|
|
15246
|
+
/* harmony import */ var _comment__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./comment */ "./entities/comment.ts");
|
|
15247
|
+
/* harmony import */ var _content_type__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ./content-type */ "./entities/content-type.ts");
|
|
15248
|
+
/* harmony import */ var _editor_interface__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ./editor-interface */ "./entities/editor-interface.ts");
|
|
15249
|
+
/* harmony import */ var _entry__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ./entry */ "./entities/entry.ts");
|
|
15250
|
+
/* harmony import */ var _environment__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ./environment */ "./entities/environment.ts");
|
|
15251
|
+
/* harmony import */ var _environment_alias__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ./environment-alias */ "./entities/environment-alias.ts");
|
|
15252
|
+
/* harmony import */ var _environment_template__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! ./environment-template */ "./entities/environment-template.ts");
|
|
15253
|
+
/* harmony import */ var _environment_template_installation__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! ./environment-template-installation */ "./entities/environment-template-installation.ts");
|
|
15254
|
+
/* harmony import */ var _extension__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! ./extension */ "./entities/extension.ts");
|
|
15255
|
+
/* harmony import */ var _function__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! ./function */ "./entities/function.ts");
|
|
15256
|
+
/* harmony import */ var _function_log__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(/*! ./function-log */ "./entities/function-log.ts");
|
|
15257
|
+
/* harmony import */ var _locale__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(/*! ./locale */ "./entities/locale.ts");
|
|
15258
|
+
/* harmony import */ var _oauth_application__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(/*! ./oauth-application */ "./entities/oauth-application.ts");
|
|
15259
|
+
/* harmony import */ var _organization__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(/*! ./organization */ "./entities/organization.ts");
|
|
15260
|
+
/* harmony import */ var _organization_invitation__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(/*! ./organization-invitation */ "./entities/organization-invitation.ts");
|
|
15261
|
+
/* harmony import */ var _organization_membership__WEBPACK_IMPORTED_MODULE_33__ = __webpack_require__(/*! ./organization-membership */ "./entities/organization-membership.ts");
|
|
15262
|
+
/* harmony import */ var _personal_access_token__WEBPACK_IMPORTED_MODULE_34__ = __webpack_require__(/*! ./personal-access-token */ "./entities/personal-access-token.ts");
|
|
15263
|
+
/* harmony import */ var _access_token__WEBPACK_IMPORTED_MODULE_35__ = __webpack_require__(/*! ./access-token */ "./entities/access-token.ts");
|
|
15264
|
+
/* harmony import */ var _preview_api_key__WEBPACK_IMPORTED_MODULE_36__ = __webpack_require__(/*! ./preview-api-key */ "./entities/preview-api-key.ts");
|
|
15265
|
+
/* harmony import */ var _release__WEBPACK_IMPORTED_MODULE_37__ = __webpack_require__(/*! ./release */ "./entities/release.ts");
|
|
15266
|
+
/* harmony import */ var _release_action__WEBPACK_IMPORTED_MODULE_38__ = __webpack_require__(/*! ./release-action */ "./entities/release-action.ts");
|
|
15267
|
+
/* harmony import */ var _role__WEBPACK_IMPORTED_MODULE_39__ = __webpack_require__(/*! ./role */ "./entities/role.ts");
|
|
15268
|
+
/* harmony import */ var _scheduled_action__WEBPACK_IMPORTED_MODULE_40__ = __webpack_require__(/*! ./scheduled-action */ "./entities/scheduled-action.ts");
|
|
15269
|
+
/* harmony import */ var _snapshot__WEBPACK_IMPORTED_MODULE_41__ = __webpack_require__(/*! ./snapshot */ "./entities/snapshot.ts");
|
|
15270
|
+
/* harmony import */ var _space__WEBPACK_IMPORTED_MODULE_42__ = __webpack_require__(/*! ./space */ "./entities/space.ts");
|
|
15271
|
+
/* harmony import */ var _space_member__WEBPACK_IMPORTED_MODULE_43__ = __webpack_require__(/*! ./space-member */ "./entities/space-member.ts");
|
|
15272
|
+
/* harmony import */ var _space_membership__WEBPACK_IMPORTED_MODULE_44__ = __webpack_require__(/*! ./space-membership */ "./entities/space-membership.ts");
|
|
15273
|
+
/* harmony import */ var _tag__WEBPACK_IMPORTED_MODULE_45__ = __webpack_require__(/*! ./tag */ "./entities/tag.ts");
|
|
15274
|
+
/* harmony import */ var _task__WEBPACK_IMPORTED_MODULE_46__ = __webpack_require__(/*! ./task */ "./entities/task.ts");
|
|
15275
|
+
/* harmony import */ var _team__WEBPACK_IMPORTED_MODULE_47__ = __webpack_require__(/*! ./team */ "./entities/team.ts");
|
|
15276
|
+
/* harmony import */ var _team_membership__WEBPACK_IMPORTED_MODULE_48__ = __webpack_require__(/*! ./team-membership */ "./entities/team-membership.ts");
|
|
15277
|
+
/* harmony import */ var _team_space_membership__WEBPACK_IMPORTED_MODULE_49__ = __webpack_require__(/*! ./team-space-membership */ "./entities/team-space-membership.ts");
|
|
15278
|
+
/* harmony import */ var _ui_config__WEBPACK_IMPORTED_MODULE_50__ = __webpack_require__(/*! ./ui-config */ "./entities/ui-config.ts");
|
|
15279
|
+
/* harmony import */ var _upload__WEBPACK_IMPORTED_MODULE_51__ = __webpack_require__(/*! ./upload */ "./entities/upload.ts");
|
|
15280
|
+
/* harmony import */ var _usage__WEBPACK_IMPORTED_MODULE_52__ = __webpack_require__(/*! ./usage */ "./entities/usage.ts");
|
|
15281
|
+
/* harmony import */ var _user__WEBPACK_IMPORTED_MODULE_53__ = __webpack_require__(/*! ./user */ "./entities/user.ts");
|
|
15282
|
+
/* harmony import */ var _user_ui_config__WEBPACK_IMPORTED_MODULE_54__ = __webpack_require__(/*! ./user-ui-config */ "./entities/user-ui-config.ts");
|
|
15283
|
+
/* harmony import */ var _webhook__WEBPACK_IMPORTED_MODULE_55__ = __webpack_require__(/*! ./webhook */ "./entities/webhook.ts");
|
|
15284
|
+
/* harmony import */ var _workflow_definition__WEBPACK_IMPORTED_MODULE_56__ = __webpack_require__(/*! ./workflow-definition */ "./entities/workflow-definition.ts");
|
|
15285
|
+
/* harmony import */ var _concept__WEBPACK_IMPORTED_MODULE_57__ = __webpack_require__(/*! ./concept */ "./entities/concept.ts");
|
|
15286
|
+
/* harmony import */ var _concept_scheme__WEBPACK_IMPORTED_MODULE_58__ = __webpack_require__(/*! ./concept-scheme */ "./entities/concept-scheme.ts");
|
|
15287
|
+
/* harmony import */ var _resource_provider__WEBPACK_IMPORTED_MODULE_59__ = __webpack_require__(/*! ./resource-provider */ "./entities/resource-provider.ts");
|
|
15288
|
+
/* harmony import */ var _resource_type__WEBPACK_IMPORTED_MODULE_60__ = __webpack_require__(/*! ./resource-type */ "./entities/resource-type.ts");
|
|
15289
|
+
/* harmony import */ var _resource__WEBPACK_IMPORTED_MODULE_61__ = __webpack_require__(/*! ./resource */ "./entities/resource.ts");
|
|
15290
|
+
|
|
15291
|
+
|
|
14758
15292
|
|
|
14759
15293
|
|
|
14760
15294
|
|
|
@@ -14816,66 +15350,68 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
14816
15350
|
|
|
14817
15351
|
|
|
14818
15352
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({
|
|
14819
|
-
|
|
14820
|
-
|
|
14821
|
-
|
|
14822
|
-
|
|
14823
|
-
|
|
14824
|
-
|
|
14825
|
-
|
|
14826
|
-
|
|
14827
|
-
|
|
14828
|
-
|
|
14829
|
-
|
|
14830
|
-
|
|
14831
|
-
|
|
14832
|
-
|
|
14833
|
-
|
|
14834
|
-
|
|
14835
|
-
|
|
14836
|
-
|
|
14837
|
-
|
|
14838
|
-
|
|
14839
|
-
|
|
14840
|
-
|
|
14841
|
-
|
|
14842
|
-
|
|
14843
|
-
|
|
14844
|
-
|
|
14845
|
-
|
|
14846
|
-
|
|
14847
|
-
|
|
14848
|
-
|
|
14849
|
-
|
|
14850
|
-
|
|
14851
|
-
|
|
14852
|
-
|
|
14853
|
-
|
|
14854
|
-
|
|
14855
|
-
|
|
14856
|
-
|
|
14857
|
-
|
|
14858
|
-
|
|
14859
|
-
|
|
14860
|
-
|
|
14861
|
-
|
|
14862
|
-
|
|
14863
|
-
|
|
14864
|
-
|
|
14865
|
-
|
|
14866
|
-
|
|
14867
|
-
|
|
14868
|
-
|
|
14869
|
-
|
|
14870
|
-
|
|
14871
|
-
|
|
14872
|
-
|
|
14873
|
-
|
|
14874
|
-
|
|
14875
|
-
|
|
14876
|
-
|
|
14877
|
-
|
|
14878
|
-
|
|
15353
|
+
aiAction: _ai_action__WEBPACK_IMPORTED_MODULE_0__,
|
|
15354
|
+
aiActionInvocation: _ai_action_invocation__WEBPACK_IMPORTED_MODULE_1__,
|
|
15355
|
+
accessToken: _access_token__WEBPACK_IMPORTED_MODULE_35__,
|
|
15356
|
+
appAction: _app_action__WEBPACK_IMPORTED_MODULE_3__,
|
|
15357
|
+
appActionCall: _app_action_call__WEBPACK_IMPORTED_MODULE_4__,
|
|
15358
|
+
appBundle: _app_bundle__WEBPACK_IMPORTED_MODULE_5__,
|
|
15359
|
+
apiKey: _api_key__WEBPACK_IMPORTED_MODULE_2__,
|
|
15360
|
+
appDefinition: _app_definition__WEBPACK_IMPORTED_MODULE_6__,
|
|
15361
|
+
appInstallation: _app_installation__WEBPACK_IMPORTED_MODULE_8__,
|
|
15362
|
+
appUpload: _app_upload__WEBPACK_IMPORTED_MODULE_14__,
|
|
15363
|
+
appDetails: _app_details__WEBPACK_IMPORTED_MODULE_7__,
|
|
15364
|
+
appSignedRequest: _app_signed_request__WEBPACK_IMPORTED_MODULE_9__,
|
|
15365
|
+
appSigningSecret: _app_signing_secret__WEBPACK_IMPORTED_MODULE_10__,
|
|
15366
|
+
appEventSubscription: _app_event_subscription__WEBPACK_IMPORTED_MODULE_11__,
|
|
15367
|
+
appKey: _app_key__WEBPACK_IMPORTED_MODULE_12__,
|
|
15368
|
+
appAccessToken: _app_access_token__WEBPACK_IMPORTED_MODULE_13__,
|
|
15369
|
+
asset: _asset__WEBPACK_IMPORTED_MODULE_15__,
|
|
15370
|
+
assetKey: _asset_key__WEBPACK_IMPORTED_MODULE_16__,
|
|
15371
|
+
bulkAction: _bulk_action__WEBPACK_IMPORTED_MODULE_17__,
|
|
15372
|
+
comment: _comment__WEBPACK_IMPORTED_MODULE_18__,
|
|
15373
|
+
concept: _concept__WEBPACK_IMPORTED_MODULE_57__,
|
|
15374
|
+
conceptScheme: _concept_scheme__WEBPACK_IMPORTED_MODULE_58__,
|
|
15375
|
+
contentType: _content_type__WEBPACK_IMPORTED_MODULE_19__,
|
|
15376
|
+
editorInterface: _editor_interface__WEBPACK_IMPORTED_MODULE_20__,
|
|
15377
|
+
entry: _entry__WEBPACK_IMPORTED_MODULE_21__,
|
|
15378
|
+
environment: _environment__WEBPACK_IMPORTED_MODULE_22__,
|
|
15379
|
+
environmentAlias: _environment_alias__WEBPACK_IMPORTED_MODULE_23__,
|
|
15380
|
+
environmentTemplate: _environment_template__WEBPACK_IMPORTED_MODULE_24__,
|
|
15381
|
+
environmentTemplateInstallation: _environment_template_installation__WEBPACK_IMPORTED_MODULE_25__,
|
|
15382
|
+
extension: _extension__WEBPACK_IMPORTED_MODULE_26__,
|
|
15383
|
+
func: _function__WEBPACK_IMPORTED_MODULE_27__,
|
|
15384
|
+
functionLog: _function_log__WEBPACK_IMPORTED_MODULE_28__,
|
|
15385
|
+
locale: _locale__WEBPACK_IMPORTED_MODULE_29__,
|
|
15386
|
+
oauthApplication: _oauth_application__WEBPACK_IMPORTED_MODULE_30__,
|
|
15387
|
+
organization: _organization__WEBPACK_IMPORTED_MODULE_31__,
|
|
15388
|
+
organizationInvitation: _organization_invitation__WEBPACK_IMPORTED_MODULE_32__,
|
|
15389
|
+
organizationMembership: _organization_membership__WEBPACK_IMPORTED_MODULE_33__,
|
|
15390
|
+
personalAccessToken: _personal_access_token__WEBPACK_IMPORTED_MODULE_34__,
|
|
15391
|
+
previewApiKey: _preview_api_key__WEBPACK_IMPORTED_MODULE_36__,
|
|
15392
|
+
release: _release__WEBPACK_IMPORTED_MODULE_37__,
|
|
15393
|
+
releaseAction: _release_action__WEBPACK_IMPORTED_MODULE_38__,
|
|
15394
|
+
resourceProvider: _resource_provider__WEBPACK_IMPORTED_MODULE_59__,
|
|
15395
|
+
resourceType: _resource_type__WEBPACK_IMPORTED_MODULE_60__,
|
|
15396
|
+
resource: _resource__WEBPACK_IMPORTED_MODULE_61__,
|
|
15397
|
+
role: _role__WEBPACK_IMPORTED_MODULE_39__,
|
|
15398
|
+
scheduledAction: _scheduled_action__WEBPACK_IMPORTED_MODULE_40__,
|
|
15399
|
+
snapshot: _snapshot__WEBPACK_IMPORTED_MODULE_41__,
|
|
15400
|
+
space: _space__WEBPACK_IMPORTED_MODULE_42__,
|
|
15401
|
+
spaceMember: _space_member__WEBPACK_IMPORTED_MODULE_43__,
|
|
15402
|
+
spaceMembership: _space_membership__WEBPACK_IMPORTED_MODULE_44__,
|
|
15403
|
+
tag: _tag__WEBPACK_IMPORTED_MODULE_45__,
|
|
15404
|
+
task: _task__WEBPACK_IMPORTED_MODULE_46__,
|
|
15405
|
+
team: _team__WEBPACK_IMPORTED_MODULE_47__,
|
|
15406
|
+
teamMembership: _team_membership__WEBPACK_IMPORTED_MODULE_48__,
|
|
15407
|
+
teamSpaceMembership: _team_space_membership__WEBPACK_IMPORTED_MODULE_49__,
|
|
15408
|
+
uiConfig: _ui_config__WEBPACK_IMPORTED_MODULE_50__,
|
|
15409
|
+
upload: _upload__WEBPACK_IMPORTED_MODULE_51__,
|
|
15410
|
+
usage: _usage__WEBPACK_IMPORTED_MODULE_52__,
|
|
15411
|
+
user: _user__WEBPACK_IMPORTED_MODULE_53__,
|
|
15412
|
+
userUIConfig: _user_ui_config__WEBPACK_IMPORTED_MODULE_54__,
|
|
15413
|
+
webhook: _webhook__WEBPACK_IMPORTED_MODULE_55__,
|
|
15414
|
+
workflowDefinition: _workflow_definition__WEBPACK_IMPORTED_MODULE_56__
|
|
14879
15415
|
});
|
|
14880
15416
|
|
|
14881
15417
|
/***/ }),
|
|
@@ -17439,6 +17975,19 @@ const createPlainClient = (makeRequest, defaults) => {
|
|
|
17439
17975
|
}
|
|
17440
17976
|
})
|
|
17441
17977
|
},
|
|
17978
|
+
aiAction: {
|
|
17979
|
+
get: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'AiAction', 'get'),
|
|
17980
|
+
getMany: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'AiAction', 'getMany'),
|
|
17981
|
+
create: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'AiAction', 'create'),
|
|
17982
|
+
update: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'AiAction', 'update'),
|
|
17983
|
+
delete: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'AiAction', 'delete'),
|
|
17984
|
+
publish: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'AiAction', 'publish'),
|
|
17985
|
+
unpublish: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'AiAction', 'unpublish'),
|
|
17986
|
+
invoke: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'AiAction', 'invoke')
|
|
17987
|
+
},
|
|
17988
|
+
aiActionInvocation: {
|
|
17989
|
+
get: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'AiActionInvocation', 'get')
|
|
17990
|
+
},
|
|
17442
17991
|
appAction: {
|
|
17443
17992
|
get: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'AppAction', 'get'),
|
|
17444
17993
|
getMany: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'AppAction', 'getMany'),
|
|
@@ -27114,7 +27663,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
27114
27663
|
*/
|
|
27115
27664
|
function buildFullPath(baseURL, requestedURL, allowAbsoluteUrls) {
|
|
27116
27665
|
let isRelativeUrl = !(0,_helpers_isAbsoluteURL_js__WEBPACK_IMPORTED_MODULE_0__["default"])(requestedURL);
|
|
27117
|
-
if (baseURL && isRelativeUrl || allowAbsoluteUrls == false) {
|
|
27666
|
+
if (baseURL && (isRelativeUrl || allowAbsoluteUrls == false)) {
|
|
27118
27667
|
return (0,_helpers_combineURLs_js__WEBPACK_IMPORTED_MODULE_1__["default"])(baseURL, requestedURL);
|
|
27119
27668
|
}
|
|
27120
27669
|
return requestedURL;
|
|
@@ -27653,7 +28202,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
27653
28202
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
27654
28203
|
/* harmony export */ VERSION: () => (/* binding */ VERSION)
|
|
27655
28204
|
/* harmony export */ });
|
|
27656
|
-
const VERSION = "1.8.
|
|
28205
|
+
const VERSION = "1.8.4";
|
|
27657
28206
|
|
|
27658
28207
|
/***/ }),
|
|
27659
28208
|
|
|
@@ -28941,7 +29490,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
28941
29490
|
|
|
28942
29491
|
newConfig.headers = headers = _core_AxiosHeaders_js__WEBPACK_IMPORTED_MODULE_1__["default"].from(headers);
|
|
28943
29492
|
|
|
28944
|
-
newConfig.url = (0,_buildURL_js__WEBPACK_IMPORTED_MODULE_2__["default"])((0,_core_buildFullPath_js__WEBPACK_IMPORTED_MODULE_3__["default"])(newConfig.baseURL, newConfig.url), config.params, config.paramsSerializer);
|
|
29493
|
+
newConfig.url = (0,_buildURL_js__WEBPACK_IMPORTED_MODULE_2__["default"])((0,_core_buildFullPath_js__WEBPACK_IMPORTED_MODULE_3__["default"])(newConfig.baseURL, newConfig.url, newConfig.allowAbsoluteUrls), config.params, config.paramsSerializer);
|
|
28945
29494
|
|
|
28946
29495
|
// HTTP basic authentication
|
|
28947
29496
|
if (auth) {
|
|
@@ -32040,7 +32589,7 @@ function createClient(params, opts = {}) {
|
|
|
32040
32589
|
const sdkMain = opts.type === 'plain' ? 'contentful-management-plain.js' : 'contentful-management.js';
|
|
32041
32590
|
const userAgent = (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__.getUserAgentHeader)(
|
|
32042
32591
|
// @ts-expect-error
|
|
32043
|
-
`${sdkMain}/${"11.49.0
|
|
32592
|
+
`${sdkMain}/${"11.49.0"}`, params.application, params.integration, params.feature);
|
|
32044
32593
|
const adapter = (0,_create_adapter__WEBPACK_IMPORTED_MODULE_1__.createAdapter)(_objectSpread(_objectSpread({}, params), {}, {
|
|
32045
32594
|
userAgent
|
|
32046
32595
|
}));
|