contentful-management 11.66.0 → 11.67.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/README.md +13 -10
- package/dist/contentful-management.browser.js +633 -272
- package/dist/contentful-management.browser.js.map +1 -1
- package/dist/contentful-management.browser.min.js +1 -1
- package/dist/contentful-management.node.js +618 -272
- 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/agent-run.js +20 -0
- package/dist/es-modules/adapters/REST/endpoints/agent.js +24 -0
- package/dist/es-modules/adapters/REST/endpoints/index.js +4 -0
- package/dist/es-modules/create-environment-api.js +173 -0
- package/dist/es-modules/entities/agent-run.js +8 -0
- package/dist/es-modules/entities/agent.js +29 -0
- package/dist/es-modules/entities/index.js +4 -0
- package/dist/es-modules/plain/entities/agent-run.js +1 -0
- package/dist/es-modules/plain/entities/agent.js +1 -0
- package/dist/es-modules/plain/plain-client.js +9 -0
- package/dist/typings/adapters/REST/endpoints/agent-run.d.ts +3 -0
- package/dist/typings/adapters/REST/endpoints/agent.d.ts +4 -0
- package/dist/typings/adapters/REST/endpoints/index.d.ts +4 -0
- package/dist/typings/common-types.d.ts +45 -0
- package/dist/typings/create-environment-api.d.ts +112 -0
- package/dist/typings/entities/agent-run.d.ts +47 -0
- package/dist/typings/entities/agent.d.ts +49 -0
- 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 +4 -0
- package/dist/typings/plain/entities/agent-run.d.ts +27 -0
- package/dist/typings/plain/entities/agent.d.ts +34 -0
- package/package.json +1 -1
|
@@ -623,6 +623,83 @@ const getManyForOrganization = (http, params) => {
|
|
|
623
623
|
|
|
624
624
|
/***/ }),
|
|
625
625
|
|
|
626
|
+
/***/ "./adapters/REST/endpoints/agent-run.ts":
|
|
627
|
+
/*!**********************************************!*\
|
|
628
|
+
!*** ./adapters/REST/endpoints/agent-run.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 */ getMany: () => (/* binding */ getMany)
|
|
637
|
+
/* harmony export */ });
|
|
638
|
+
/* harmony import */ var _raw__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./raw */ "./adapters/REST/endpoints/raw.ts");
|
|
639
|
+
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; }
|
|
640
|
+
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; }
|
|
641
|
+
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; }
|
|
642
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
643
|
+
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); }
|
|
644
|
+
|
|
645
|
+
const AgentRunAlphaHeaders = {
|
|
646
|
+
'x-contentful-enable-alpha-feature': 'agents-api'
|
|
647
|
+
};
|
|
648
|
+
const get = (http, params, headers) => {
|
|
649
|
+
return _raw__WEBPACK_IMPORTED_MODULE_0__.get(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/ai_agents/runs/${params.runId}`, {
|
|
650
|
+
headers: _objectSpread(_objectSpread({}, AgentRunAlphaHeaders), headers)
|
|
651
|
+
});
|
|
652
|
+
};
|
|
653
|
+
const getMany = (http, params, headers) => {
|
|
654
|
+
return _raw__WEBPACK_IMPORTED_MODULE_0__.get(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/ai_agents/runs`, {
|
|
655
|
+
params: params.query,
|
|
656
|
+
headers: _objectSpread(_objectSpread({}, AgentRunAlphaHeaders), headers)
|
|
657
|
+
});
|
|
658
|
+
};
|
|
659
|
+
|
|
660
|
+
/***/ }),
|
|
661
|
+
|
|
662
|
+
/***/ "./adapters/REST/endpoints/agent.ts":
|
|
663
|
+
/*!******************************************!*\
|
|
664
|
+
!*** ./adapters/REST/endpoints/agent.ts ***!
|
|
665
|
+
\******************************************/
|
|
666
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
667
|
+
|
|
668
|
+
"use strict";
|
|
669
|
+
__webpack_require__.r(__webpack_exports__);
|
|
670
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
671
|
+
/* harmony export */ generate: () => (/* binding */ generate),
|
|
672
|
+
/* harmony export */ get: () => (/* binding */ get),
|
|
673
|
+
/* harmony export */ getMany: () => (/* binding */ getMany)
|
|
674
|
+
/* harmony export */ });
|
|
675
|
+
/* harmony import */ var _raw__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./raw */ "./adapters/REST/endpoints/raw.ts");
|
|
676
|
+
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; }
|
|
677
|
+
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; }
|
|
678
|
+
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; }
|
|
679
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
680
|
+
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); }
|
|
681
|
+
|
|
682
|
+
const AgentAlphaHeaders = {
|
|
683
|
+
'x-contentful-enable-alpha-feature': 'agents-api'
|
|
684
|
+
};
|
|
685
|
+
const get = (http, params, headers) => {
|
|
686
|
+
return _raw__WEBPACK_IMPORTED_MODULE_0__.get(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/ai_agents/agents/${params.agentId}`, {
|
|
687
|
+
headers: _objectSpread(_objectSpread({}, AgentAlphaHeaders), headers)
|
|
688
|
+
});
|
|
689
|
+
};
|
|
690
|
+
const getMany = (http, params, headers) => {
|
|
691
|
+
return _raw__WEBPACK_IMPORTED_MODULE_0__.get(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/ai_agents/agents`, {
|
|
692
|
+
headers: _objectSpread(_objectSpread({}, AgentAlphaHeaders), headers)
|
|
693
|
+
});
|
|
694
|
+
};
|
|
695
|
+
const generate = (http, params, data, headers) => {
|
|
696
|
+
return _raw__WEBPACK_IMPORTED_MODULE_0__.post(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/ai_agents/agents/${params.agentId}/generate`, data, {
|
|
697
|
+
headers: _objectSpread(_objectSpread({}, AgentAlphaHeaders), headers)
|
|
698
|
+
});
|
|
699
|
+
};
|
|
700
|
+
|
|
701
|
+
/***/ }),
|
|
702
|
+
|
|
626
703
|
/***/ "./adapters/REST/endpoints/ai-action-invocation.ts":
|
|
627
704
|
/*!*********************************************************!*\
|
|
628
705
|
!*** ./adapters/REST/endpoints/ai-action-invocation.ts ***!
|
|
@@ -2873,77 +2950,81 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
2873
2950
|
/* harmony export */ });
|
|
2874
2951
|
/* harmony import */ var _ai_action__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./ai-action */ "./adapters/REST/endpoints/ai-action.ts");
|
|
2875
2952
|
/* harmony import */ var _ai_action_invocation__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./ai-action-invocation */ "./adapters/REST/endpoints/ai-action-invocation.ts");
|
|
2876
|
-
/* harmony import */ var
|
|
2877
|
-
/* harmony import */ var
|
|
2878
|
-
/* harmony import */ var
|
|
2879
|
-
/* harmony import */ var
|
|
2880
|
-
/* harmony import */ var
|
|
2881
|
-
/* harmony import */ var
|
|
2882
|
-
/* harmony import */ var
|
|
2883
|
-
/* harmony import */ var
|
|
2884
|
-
/* harmony import */ var
|
|
2885
|
-
/* harmony import */ var
|
|
2886
|
-
/* harmony import */ var
|
|
2887
|
-
/* harmony import */ var
|
|
2888
|
-
/* harmony import */ var
|
|
2889
|
-
/* harmony import */ var
|
|
2890
|
-
/* harmony import */ var
|
|
2891
|
-
/* harmony import */ var
|
|
2892
|
-
/* harmony import */ var
|
|
2893
|
-
/* harmony import */ var
|
|
2894
|
-
/* harmony import */ var
|
|
2895
|
-
/* harmony import */ var
|
|
2896
|
-
/* harmony import */ var
|
|
2897
|
-
/* harmony import */ var
|
|
2898
|
-
/* harmony import */ var
|
|
2899
|
-
/* harmony import */ var
|
|
2900
|
-
/* harmony import */ var
|
|
2901
|
-
/* harmony import */ var
|
|
2902
|
-
/* harmony import */ var
|
|
2903
|
-
/* harmony import */ var
|
|
2904
|
-
/* harmony import */ var
|
|
2905
|
-
/* harmony import */ var
|
|
2906
|
-
/* harmony import */ var
|
|
2907
|
-
/* harmony import */ var
|
|
2908
|
-
/* harmony import */ var
|
|
2909
|
-
/* harmony import */ var
|
|
2910
|
-
/* harmony import */ var
|
|
2911
|
-
/* harmony import */ var
|
|
2912
|
-
/* harmony import */ var
|
|
2913
|
-
/* harmony import */ var
|
|
2914
|
-
/* harmony import */ var
|
|
2915
|
-
/* harmony import */ var
|
|
2916
|
-
/* harmony import */ var
|
|
2917
|
-
/* harmony import */ var
|
|
2918
|
-
/* harmony import */ var
|
|
2919
|
-
/* harmony import */ var
|
|
2920
|
-
/* harmony import */ var
|
|
2921
|
-
/* harmony import */ var
|
|
2922
|
-
/* harmony import */ var
|
|
2923
|
-
/* harmony import */ var
|
|
2924
|
-
/* harmony import */ var
|
|
2925
|
-
/* harmony import */ var
|
|
2926
|
-
/* harmony import */ var
|
|
2927
|
-
/* harmony import */ var
|
|
2928
|
-
/* harmony import */ var
|
|
2929
|
-
/* harmony import */ var
|
|
2930
|
-
/* harmony import */ var
|
|
2931
|
-
/* harmony import */ var
|
|
2932
|
-
/* harmony import */ var
|
|
2933
|
-
/* harmony import */ var
|
|
2934
|
-
/* harmony import */ var
|
|
2935
|
-
/* harmony import */ var
|
|
2936
|
-
/* harmony import */ var
|
|
2937
|
-
/* harmony import */ var
|
|
2938
|
-
/* harmony import */ var
|
|
2939
|
-
/* harmony import */ var
|
|
2940
|
-
/* harmony import */ var
|
|
2941
|
-
/* harmony import */ var
|
|
2942
|
-
/* harmony import */ var
|
|
2943
|
-
/* harmony import */ var
|
|
2944
|
-
/* harmony import */ var
|
|
2945
|
-
/* harmony import */ var
|
|
2946
|
-
/* harmony import */ var
|
|
2953
|
+
/* harmony import */ var _agent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./agent */ "./adapters/REST/endpoints/agent.ts");
|
|
2954
|
+
/* harmony import */ var _agent_run__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./agent-run */ "./adapters/REST/endpoints/agent-run.ts");
|
|
2955
|
+
/* harmony import */ var _access_token__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./access-token */ "./adapters/REST/endpoints/access-token.ts");
|
|
2956
|
+
/* harmony import */ var _api_key__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./api-key */ "./adapters/REST/endpoints/api-key.ts");
|
|
2957
|
+
/* harmony import */ var _app_access_token__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./app-access-token */ "./adapters/REST/endpoints/app-access-token.ts");
|
|
2958
|
+
/* harmony import */ var _app_action__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./app-action */ "./adapters/REST/endpoints/app-action.ts");
|
|
2959
|
+
/* harmony import */ var _app_action_call__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./app-action-call */ "./adapters/REST/endpoints/app-action-call.ts");
|
|
2960
|
+
/* harmony import */ var _app_bundle__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./app-bundle */ "./adapters/REST/endpoints/app-bundle.ts");
|
|
2961
|
+
/* harmony import */ var _app_definition__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./app-definition */ "./adapters/REST/endpoints/app-definition.ts");
|
|
2962
|
+
/* harmony import */ var _app_details__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./app-details */ "./adapters/REST/endpoints/app-details.ts");
|
|
2963
|
+
/* harmony import */ var _app_event_subscription__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./app-event-subscription */ "./adapters/REST/endpoints/app-event-subscription.ts");
|
|
2964
|
+
/* harmony import */ var _app_installation__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./app-installation */ "./adapters/REST/endpoints/app-installation.ts");
|
|
2965
|
+
/* harmony import */ var _app_key__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./app-key */ "./adapters/REST/endpoints/app-key.ts");
|
|
2966
|
+
/* harmony import */ var _app_signed_request__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./app-signed-request */ "./adapters/REST/endpoints/app-signed-request.ts");
|
|
2967
|
+
/* harmony import */ var _app_signing_secret__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./app-signing-secret */ "./adapters/REST/endpoints/app-signing-secret.ts");
|
|
2968
|
+
/* harmony import */ var _app_upload__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./app-upload */ "./adapters/REST/endpoints/app-upload.ts");
|
|
2969
|
+
/* harmony import */ var _asset__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./asset */ "./adapters/REST/endpoints/asset.ts");
|
|
2970
|
+
/* harmony import */ var _asset_key__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ./asset-key */ "./adapters/REST/endpoints/asset-key.ts");
|
|
2971
|
+
/* harmony import */ var _bulk_action__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ./bulk-action */ "./adapters/REST/endpoints/bulk-action.ts");
|
|
2972
|
+
/* harmony import */ var _comment__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ./comment */ "./adapters/REST/endpoints/comment.ts");
|
|
2973
|
+
/* harmony import */ var _concept__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ./concept */ "./adapters/REST/endpoints/concept.ts");
|
|
2974
|
+
/* harmony import */ var _concept_scheme__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ./concept-scheme */ "./adapters/REST/endpoints/concept-scheme.ts");
|
|
2975
|
+
/* harmony import */ var _content_type__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! ./content-type */ "./adapters/REST/endpoints/content-type.ts");
|
|
2976
|
+
/* harmony import */ var _editor_interface__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! ./editor-interface */ "./adapters/REST/endpoints/editor-interface.ts");
|
|
2977
|
+
/* harmony import */ var _entry__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! ./entry */ "./adapters/REST/endpoints/entry.ts");
|
|
2978
|
+
/* harmony import */ var _environment__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! ./environment */ "./adapters/REST/endpoints/environment.ts");
|
|
2979
|
+
/* harmony import */ var _environment_alias__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(/*! ./environment-alias */ "./adapters/REST/endpoints/environment-alias.ts");
|
|
2980
|
+
/* harmony import */ var _environment_template__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(/*! ./environment-template */ "./adapters/REST/endpoints/environment-template.ts");
|
|
2981
|
+
/* harmony import */ var _environment_template_installation__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(/*! ./environment-template-installation */ "./adapters/REST/endpoints/environment-template-installation.ts");
|
|
2982
|
+
/* harmony import */ var _extension__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(/*! ./extension */ "./adapters/REST/endpoints/extension.ts");
|
|
2983
|
+
/* harmony import */ var _function__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(/*! ./function */ "./adapters/REST/endpoints/function.ts");
|
|
2984
|
+
/* harmony import */ var _function_log__WEBPACK_IMPORTED_MODULE_33__ = __webpack_require__(/*! ./function-log */ "./adapters/REST/endpoints/function-log.ts");
|
|
2985
|
+
/* harmony import */ var _http__WEBPACK_IMPORTED_MODULE_34__ = __webpack_require__(/*! ./http */ "./adapters/REST/endpoints/http.ts");
|
|
2986
|
+
/* harmony import */ var _locale__WEBPACK_IMPORTED_MODULE_35__ = __webpack_require__(/*! ./locale */ "./adapters/REST/endpoints/locale.ts");
|
|
2987
|
+
/* harmony import */ var _organization__WEBPACK_IMPORTED_MODULE_36__ = __webpack_require__(/*! ./organization */ "./adapters/REST/endpoints/organization.ts");
|
|
2988
|
+
/* harmony import */ var _organization_invitation__WEBPACK_IMPORTED_MODULE_37__ = __webpack_require__(/*! ./organization-invitation */ "./adapters/REST/endpoints/organization-invitation.ts");
|
|
2989
|
+
/* harmony import */ var _organization_membership__WEBPACK_IMPORTED_MODULE_38__ = __webpack_require__(/*! ./organization-membership */ "./adapters/REST/endpoints/organization-membership.ts");
|
|
2990
|
+
/* harmony import */ var _oauth_application__WEBPACK_IMPORTED_MODULE_39__ = __webpack_require__(/*! ./oauth-application */ "./adapters/REST/endpoints/oauth-application.ts");
|
|
2991
|
+
/* harmony import */ var _personal_access_token__WEBPACK_IMPORTED_MODULE_40__ = __webpack_require__(/*! ./personal-access-token */ "./adapters/REST/endpoints/personal-access-token.ts");
|
|
2992
|
+
/* harmony import */ var _preview_api_key__WEBPACK_IMPORTED_MODULE_41__ = __webpack_require__(/*! ./preview-api-key */ "./adapters/REST/endpoints/preview-api-key.ts");
|
|
2993
|
+
/* harmony import */ var _release__WEBPACK_IMPORTED_MODULE_42__ = __webpack_require__(/*! ./release */ "./adapters/REST/endpoints/release.ts");
|
|
2994
|
+
/* harmony import */ var _release_asset__WEBPACK_IMPORTED_MODULE_43__ = __webpack_require__(/*! ./release-asset */ "./adapters/REST/endpoints/release-asset.ts");
|
|
2995
|
+
/* harmony import */ var _release_entry__WEBPACK_IMPORTED_MODULE_44__ = __webpack_require__(/*! ./release-entry */ "./adapters/REST/endpoints/release-entry.ts");
|
|
2996
|
+
/* harmony import */ var _release_action__WEBPACK_IMPORTED_MODULE_45__ = __webpack_require__(/*! ./release-action */ "./adapters/REST/endpoints/release-action.ts");
|
|
2997
|
+
/* harmony import */ var _resource__WEBPACK_IMPORTED_MODULE_46__ = __webpack_require__(/*! ./resource */ "./adapters/REST/endpoints/resource.ts");
|
|
2998
|
+
/* harmony import */ var _resource_provider__WEBPACK_IMPORTED_MODULE_47__ = __webpack_require__(/*! ./resource-provider */ "./adapters/REST/endpoints/resource-provider.ts");
|
|
2999
|
+
/* harmony import */ var _resource_type__WEBPACK_IMPORTED_MODULE_48__ = __webpack_require__(/*! ./resource-type */ "./adapters/REST/endpoints/resource-type.ts");
|
|
3000
|
+
/* harmony import */ var _role__WEBPACK_IMPORTED_MODULE_49__ = __webpack_require__(/*! ./role */ "./adapters/REST/endpoints/role.ts");
|
|
3001
|
+
/* harmony import */ var _scheduled_action__WEBPACK_IMPORTED_MODULE_50__ = __webpack_require__(/*! ./scheduled-action */ "./adapters/REST/endpoints/scheduled-action.ts");
|
|
3002
|
+
/* harmony import */ var _semantic_duplicates__WEBPACK_IMPORTED_MODULE_51__ = __webpack_require__(/*! ./semantic-duplicates */ "./adapters/REST/endpoints/semantic-duplicates.ts");
|
|
3003
|
+
/* harmony import */ var _semantic_recommendations__WEBPACK_IMPORTED_MODULE_52__ = __webpack_require__(/*! ./semantic-recommendations */ "./adapters/REST/endpoints/semantic-recommendations.ts");
|
|
3004
|
+
/* harmony import */ var _semantic_reference_suggestions__WEBPACK_IMPORTED_MODULE_53__ = __webpack_require__(/*! ./semantic-reference-suggestions */ "./adapters/REST/endpoints/semantic-reference-suggestions.ts");
|
|
3005
|
+
/* harmony import */ var _semantic_search__WEBPACK_IMPORTED_MODULE_54__ = __webpack_require__(/*! ./semantic-search */ "./adapters/REST/endpoints/semantic-search.ts");
|
|
3006
|
+
/* harmony import */ var _snapshot__WEBPACK_IMPORTED_MODULE_55__ = __webpack_require__(/*! ./snapshot */ "./adapters/REST/endpoints/snapshot.ts");
|
|
3007
|
+
/* harmony import */ var _space__WEBPACK_IMPORTED_MODULE_56__ = __webpack_require__(/*! ./space */ "./adapters/REST/endpoints/space.ts");
|
|
3008
|
+
/* harmony import */ var _space_member__WEBPACK_IMPORTED_MODULE_57__ = __webpack_require__(/*! ./space-member */ "./adapters/REST/endpoints/space-member.ts");
|
|
3009
|
+
/* harmony import */ var _space_membership__WEBPACK_IMPORTED_MODULE_58__ = __webpack_require__(/*! ./space-membership */ "./adapters/REST/endpoints/space-membership.ts");
|
|
3010
|
+
/* harmony import */ var _tag__WEBPACK_IMPORTED_MODULE_59__ = __webpack_require__(/*! ./tag */ "./adapters/REST/endpoints/tag.ts");
|
|
3011
|
+
/* harmony import */ var _task__WEBPACK_IMPORTED_MODULE_60__ = __webpack_require__(/*! ./task */ "./adapters/REST/endpoints/task.ts");
|
|
3012
|
+
/* harmony import */ var _team__WEBPACK_IMPORTED_MODULE_61__ = __webpack_require__(/*! ./team */ "./adapters/REST/endpoints/team.ts");
|
|
3013
|
+
/* harmony import */ var _team_membership__WEBPACK_IMPORTED_MODULE_62__ = __webpack_require__(/*! ./team-membership */ "./adapters/REST/endpoints/team-membership.ts");
|
|
3014
|
+
/* harmony import */ var _team_space_membership__WEBPACK_IMPORTED_MODULE_63__ = __webpack_require__(/*! ./team-space-membership */ "./adapters/REST/endpoints/team-space-membership.ts");
|
|
3015
|
+
/* harmony import */ var _ui_config__WEBPACK_IMPORTED_MODULE_64__ = __webpack_require__(/*! ./ui-config */ "./adapters/REST/endpoints/ui-config.ts");
|
|
3016
|
+
/* harmony import */ var _upload__WEBPACK_IMPORTED_MODULE_65__ = __webpack_require__(/*! ./upload */ "./adapters/REST/endpoints/upload.ts");
|
|
3017
|
+
/* harmony import */ var _upload_credentials__WEBPACK_IMPORTED_MODULE_66__ = __webpack_require__(/*! ./upload-credentials */ "./adapters/REST/endpoints/upload-credentials.ts");
|
|
3018
|
+
/* harmony import */ var _usage__WEBPACK_IMPORTED_MODULE_67__ = __webpack_require__(/*! ./usage */ "./adapters/REST/endpoints/usage.ts");
|
|
3019
|
+
/* harmony import */ var _user__WEBPACK_IMPORTED_MODULE_68__ = __webpack_require__(/*! ./user */ "./adapters/REST/endpoints/user.ts");
|
|
3020
|
+
/* harmony import */ var _user_ui_config__WEBPACK_IMPORTED_MODULE_69__ = __webpack_require__(/*! ./user-ui-config */ "./adapters/REST/endpoints/user-ui-config.ts");
|
|
3021
|
+
/* harmony import */ var _vectorization_status__WEBPACK_IMPORTED_MODULE_70__ = __webpack_require__(/*! ./vectorization-status */ "./adapters/REST/endpoints/vectorization-status.ts");
|
|
3022
|
+
/* harmony import */ var _webhook__WEBPACK_IMPORTED_MODULE_71__ = __webpack_require__(/*! ./webhook */ "./adapters/REST/endpoints/webhook.ts");
|
|
3023
|
+
/* harmony import */ var _workflow__WEBPACK_IMPORTED_MODULE_72__ = __webpack_require__(/*! ./workflow */ "./adapters/REST/endpoints/workflow.ts");
|
|
3024
|
+
/* harmony import */ var _workflow_definition__WEBPACK_IMPORTED_MODULE_73__ = __webpack_require__(/*! ./workflow-definition */ "./adapters/REST/endpoints/workflow-definition.ts");
|
|
3025
|
+
/* harmony import */ var _workflows_changelog__WEBPACK_IMPORTED_MODULE_74__ = __webpack_require__(/*! ./workflows-changelog */ "./adapters/REST/endpoints/workflows-changelog.ts");
|
|
3026
|
+
|
|
3027
|
+
|
|
2947
3028
|
|
|
2948
3029
|
|
|
2949
3030
|
|
|
@@ -3020,77 +3101,79 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
3020
3101
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({
|
|
3021
3102
|
AiAction: _ai_action__WEBPACK_IMPORTED_MODULE_0__,
|
|
3022
3103
|
AiActionInvocation: _ai_action_invocation__WEBPACK_IMPORTED_MODULE_1__,
|
|
3023
|
-
|
|
3024
|
-
|
|
3025
|
-
|
|
3026
|
-
|
|
3027
|
-
|
|
3028
|
-
|
|
3029
|
-
|
|
3030
|
-
|
|
3031
|
-
|
|
3032
|
-
|
|
3033
|
-
|
|
3034
|
-
|
|
3035
|
-
|
|
3036
|
-
|
|
3037
|
-
|
|
3038
|
-
|
|
3039
|
-
|
|
3040
|
-
|
|
3041
|
-
|
|
3042
|
-
|
|
3043
|
-
|
|
3044
|
-
|
|
3045
|
-
|
|
3046
|
-
|
|
3047
|
-
|
|
3048
|
-
|
|
3049
|
-
|
|
3050
|
-
|
|
3051
|
-
|
|
3052
|
-
|
|
3053
|
-
|
|
3054
|
-
|
|
3055
|
-
|
|
3056
|
-
|
|
3057
|
-
|
|
3058
|
-
|
|
3059
|
-
|
|
3060
|
-
|
|
3061
|
-
|
|
3062
|
-
|
|
3063
|
-
|
|
3064
|
-
|
|
3065
|
-
|
|
3066
|
-
|
|
3067
|
-
|
|
3068
|
-
|
|
3069
|
-
|
|
3070
|
-
|
|
3071
|
-
|
|
3072
|
-
|
|
3073
|
-
|
|
3074
|
-
|
|
3075
|
-
|
|
3076
|
-
|
|
3077
|
-
|
|
3078
|
-
|
|
3079
|
-
|
|
3080
|
-
|
|
3081
|
-
|
|
3082
|
-
|
|
3083
|
-
|
|
3084
|
-
|
|
3085
|
-
|
|
3086
|
-
|
|
3087
|
-
|
|
3088
|
-
|
|
3089
|
-
|
|
3090
|
-
|
|
3091
|
-
|
|
3092
|
-
|
|
3093
|
-
|
|
3104
|
+
Agent: _agent__WEBPACK_IMPORTED_MODULE_2__,
|
|
3105
|
+
AgentRun: _agent_run__WEBPACK_IMPORTED_MODULE_3__,
|
|
3106
|
+
ApiKey: _api_key__WEBPACK_IMPORTED_MODULE_5__,
|
|
3107
|
+
AppAction: _app_action__WEBPACK_IMPORTED_MODULE_7__,
|
|
3108
|
+
AppActionCall: _app_action_call__WEBPACK_IMPORTED_MODULE_8__,
|
|
3109
|
+
AppBundle: _app_bundle__WEBPACK_IMPORTED_MODULE_9__,
|
|
3110
|
+
AppDefinition: _app_definition__WEBPACK_IMPORTED_MODULE_10__,
|
|
3111
|
+
AppInstallation: _app_installation__WEBPACK_IMPORTED_MODULE_13__,
|
|
3112
|
+
AppUpload: _app_upload__WEBPACK_IMPORTED_MODULE_17__,
|
|
3113
|
+
AppSignedRequest: _app_signed_request__WEBPACK_IMPORTED_MODULE_15__,
|
|
3114
|
+
AppSigningSecret: _app_signing_secret__WEBPACK_IMPORTED_MODULE_16__,
|
|
3115
|
+
AppEventSubscription: _app_event_subscription__WEBPACK_IMPORTED_MODULE_12__,
|
|
3116
|
+
AppKey: _app_key__WEBPACK_IMPORTED_MODULE_14__,
|
|
3117
|
+
AppAccessToken: _app_access_token__WEBPACK_IMPORTED_MODULE_6__,
|
|
3118
|
+
AppDetails: _app_details__WEBPACK_IMPORTED_MODULE_11__,
|
|
3119
|
+
Asset: _asset__WEBPACK_IMPORTED_MODULE_18__,
|
|
3120
|
+
AssetKey: _asset_key__WEBPACK_IMPORTED_MODULE_19__,
|
|
3121
|
+
BulkAction: _bulk_action__WEBPACK_IMPORTED_MODULE_20__,
|
|
3122
|
+
Comment: _comment__WEBPACK_IMPORTED_MODULE_21__,
|
|
3123
|
+
Concept: _concept__WEBPACK_IMPORTED_MODULE_22__,
|
|
3124
|
+
ConceptScheme: _concept_scheme__WEBPACK_IMPORTED_MODULE_23__,
|
|
3125
|
+
ContentType: _content_type__WEBPACK_IMPORTED_MODULE_24__,
|
|
3126
|
+
EditorInterface: _editor_interface__WEBPACK_IMPORTED_MODULE_25__,
|
|
3127
|
+
Entry: _entry__WEBPACK_IMPORTED_MODULE_26__,
|
|
3128
|
+
Environment: _environment__WEBPACK_IMPORTED_MODULE_27__,
|
|
3129
|
+
EnvironmentAlias: _environment_alias__WEBPACK_IMPORTED_MODULE_28__,
|
|
3130
|
+
EnvironmentTemplate: _environment_template__WEBPACK_IMPORTED_MODULE_29__,
|
|
3131
|
+
EnvironmentTemplateInstallation: _environment_template_installation__WEBPACK_IMPORTED_MODULE_30__,
|
|
3132
|
+
Extension: _extension__WEBPACK_IMPORTED_MODULE_31__,
|
|
3133
|
+
Function: _function__WEBPACK_IMPORTED_MODULE_32__,
|
|
3134
|
+
FunctionLog: _function_log__WEBPACK_IMPORTED_MODULE_33__,
|
|
3135
|
+
Http: _http__WEBPACK_IMPORTED_MODULE_34__,
|
|
3136
|
+
Locale: _locale__WEBPACK_IMPORTED_MODULE_35__,
|
|
3137
|
+
Organization: _organization__WEBPACK_IMPORTED_MODULE_36__,
|
|
3138
|
+
OrganizationInvitation: _organization_invitation__WEBPACK_IMPORTED_MODULE_37__,
|
|
3139
|
+
OrganizationMembership: _organization_membership__WEBPACK_IMPORTED_MODULE_38__,
|
|
3140
|
+
OAuthApplication: _oauth_application__WEBPACK_IMPORTED_MODULE_39__,
|
|
3141
|
+
PersonalAccessToken: _personal_access_token__WEBPACK_IMPORTED_MODULE_40__,
|
|
3142
|
+
AccessToken: _access_token__WEBPACK_IMPORTED_MODULE_4__,
|
|
3143
|
+
PreviewApiKey: _preview_api_key__WEBPACK_IMPORTED_MODULE_41__,
|
|
3144
|
+
Release: _release__WEBPACK_IMPORTED_MODULE_42__,
|
|
3145
|
+
ReleaseAsset: _release_asset__WEBPACK_IMPORTED_MODULE_43__,
|
|
3146
|
+
ReleaseEntry: _release_entry__WEBPACK_IMPORTED_MODULE_44__,
|
|
3147
|
+
ReleaseAction: _release_action__WEBPACK_IMPORTED_MODULE_45__,
|
|
3148
|
+
Resource: _resource__WEBPACK_IMPORTED_MODULE_46__,
|
|
3149
|
+
ResourceProvider: _resource_provider__WEBPACK_IMPORTED_MODULE_47__,
|
|
3150
|
+
ResourceType: _resource_type__WEBPACK_IMPORTED_MODULE_48__,
|
|
3151
|
+
Role: _role__WEBPACK_IMPORTED_MODULE_49__,
|
|
3152
|
+
ScheduledAction: _scheduled_action__WEBPACK_IMPORTED_MODULE_50__,
|
|
3153
|
+
SemanticDuplicates: _semantic_duplicates__WEBPACK_IMPORTED_MODULE_51__,
|
|
3154
|
+
SemanticRecommendations: _semantic_recommendations__WEBPACK_IMPORTED_MODULE_52__,
|
|
3155
|
+
SemanticReferenceSuggestions: _semantic_reference_suggestions__WEBPACK_IMPORTED_MODULE_53__,
|
|
3156
|
+
SemanticSearch: _semantic_search__WEBPACK_IMPORTED_MODULE_54__,
|
|
3157
|
+
Snapshot: _snapshot__WEBPACK_IMPORTED_MODULE_55__,
|
|
3158
|
+
Space: _space__WEBPACK_IMPORTED_MODULE_56__,
|
|
3159
|
+
SpaceMember: _space_member__WEBPACK_IMPORTED_MODULE_57__,
|
|
3160
|
+
SpaceMembership: _space_membership__WEBPACK_IMPORTED_MODULE_58__,
|
|
3161
|
+
Tag: _tag__WEBPACK_IMPORTED_MODULE_59__,
|
|
3162
|
+
Task: _task__WEBPACK_IMPORTED_MODULE_60__,
|
|
3163
|
+
Team: _team__WEBPACK_IMPORTED_MODULE_61__,
|
|
3164
|
+
TeamMembership: _team_membership__WEBPACK_IMPORTED_MODULE_62__,
|
|
3165
|
+
TeamSpaceMembership: _team_space_membership__WEBPACK_IMPORTED_MODULE_63__,
|
|
3166
|
+
UIConfig: _ui_config__WEBPACK_IMPORTED_MODULE_64__,
|
|
3167
|
+
Upload: _upload__WEBPACK_IMPORTED_MODULE_65__,
|
|
3168
|
+
UploadCredential: _upload_credentials__WEBPACK_IMPORTED_MODULE_66__,
|
|
3169
|
+
Usage: _usage__WEBPACK_IMPORTED_MODULE_67__,
|
|
3170
|
+
User: _user__WEBPACK_IMPORTED_MODULE_68__,
|
|
3171
|
+
UserUIConfig: _user_ui_config__WEBPACK_IMPORTED_MODULE_69__,
|
|
3172
|
+
VectorizationStatus: _vectorization_status__WEBPACK_IMPORTED_MODULE_70__,
|
|
3173
|
+
Webhook: _webhook__WEBPACK_IMPORTED_MODULE_71__,
|
|
3174
|
+
WorkflowDefinition: _workflow_definition__WEBPACK_IMPORTED_MODULE_73__,
|
|
3175
|
+
Workflow: _workflow__WEBPACK_IMPORTED_MODULE_72__,
|
|
3176
|
+
WorkflowsChangelog: _workflows_changelog__WEBPACK_IMPORTED_MODULE_74__
|
|
3094
3177
|
});
|
|
3095
3178
|
|
|
3096
3179
|
/***/ }),
|
|
@@ -7786,6 +7869,14 @@ function createEnvironmentApi(makeRequest) {
|
|
|
7786
7869
|
const {
|
|
7787
7870
|
wrapAppAccessToken
|
|
7788
7871
|
} = _entities__WEBPACK_IMPORTED_MODULE_2__["default"].appAccessToken;
|
|
7872
|
+
const {
|
|
7873
|
+
wrapAgent,
|
|
7874
|
+
wrapAgentCollection
|
|
7875
|
+
} = _entities__WEBPACK_IMPORTED_MODULE_2__["default"].agent;
|
|
7876
|
+
const {
|
|
7877
|
+
wrapAgentRun,
|
|
7878
|
+
wrapAgentRunCollection
|
|
7879
|
+
} = _entities__WEBPACK_IMPORTED_MODULE_2__["default"].agentRun;
|
|
7789
7880
|
const {
|
|
7790
7881
|
wrapResourceTypesForEnvironmentCollection
|
|
7791
7882
|
} = _entities__WEBPACK_IMPORTED_MODULE_2__["default"].resourceType;
|
|
@@ -10546,6 +10637,171 @@ function createEnvironmentApi(makeRequest) {
|
|
|
10546
10637
|
},
|
|
10547
10638
|
payload
|
|
10548
10639
|
}).then(data => wrapSemanticSearch(makeRequest, data));
|
|
10640
|
+
},
|
|
10641
|
+
/**
|
|
10642
|
+
* Gets an AI Agent
|
|
10643
|
+
* @param agentId - AI Agent ID
|
|
10644
|
+
* @return Promise for an AI Agent
|
|
10645
|
+
* @example ```javascript
|
|
10646
|
+
* const contentful = require('contentful-management')
|
|
10647
|
+
*
|
|
10648
|
+
* const client = contentful.createClient({
|
|
10649
|
+
* accessToken: '<content_management_api_key>'
|
|
10650
|
+
* })
|
|
10651
|
+
*
|
|
10652
|
+
* client.getSpace('<space_id>')
|
|
10653
|
+
* .then((space) => space.getEnvironment('<environment_id>'))
|
|
10654
|
+
* .then((environment) => environment.getAgent('<agent_id>'))
|
|
10655
|
+
* .then((agent) => console.log(agent))
|
|
10656
|
+
* .catch(console.error)
|
|
10657
|
+
* ```
|
|
10658
|
+
*/
|
|
10659
|
+
getAgent(agentId) {
|
|
10660
|
+
const raw = this.toPlainObject();
|
|
10661
|
+
return makeRequest({
|
|
10662
|
+
entityType: 'Agent',
|
|
10663
|
+
action: 'get',
|
|
10664
|
+
params: {
|
|
10665
|
+
spaceId: raw.sys.space.sys.id,
|
|
10666
|
+
environmentId: raw.sys.id,
|
|
10667
|
+
agentId
|
|
10668
|
+
}
|
|
10669
|
+
}).then(data => wrapAgent(makeRequest, data));
|
|
10670
|
+
},
|
|
10671
|
+
/**
|
|
10672
|
+
* Gets a collection of AI Agents
|
|
10673
|
+
* @return Promise for a collection of AI Agents
|
|
10674
|
+
* @example ```javascript
|
|
10675
|
+
* const contentful = require('contentful-management')
|
|
10676
|
+
*
|
|
10677
|
+
* const client = contentful.createClient({
|
|
10678
|
+
* accessToken: '<content_management_api_key>'
|
|
10679
|
+
* })
|
|
10680
|
+
*
|
|
10681
|
+
* client.getSpace('<space_id>')
|
|
10682
|
+
* .then((space) => space.getEnvironment('<environment_id>'))
|
|
10683
|
+
* .then((environment) => environment.getAgents())
|
|
10684
|
+
* .then((response) => console.log(response.items))
|
|
10685
|
+
* .catch(console.error)
|
|
10686
|
+
* ```
|
|
10687
|
+
*/
|
|
10688
|
+
getAgents() {
|
|
10689
|
+
const raw = this.toPlainObject();
|
|
10690
|
+
return makeRequest({
|
|
10691
|
+
entityType: 'Agent',
|
|
10692
|
+
action: 'getMany',
|
|
10693
|
+
params: {
|
|
10694
|
+
spaceId: raw.sys.space.sys.id,
|
|
10695
|
+
environmentId: raw.sys.id
|
|
10696
|
+
}
|
|
10697
|
+
}).then(data => wrapAgentCollection(makeRequest, data));
|
|
10698
|
+
},
|
|
10699
|
+
/**
|
|
10700
|
+
* Generates content using an AI Agent
|
|
10701
|
+
* @param agentId - AI Agent ID
|
|
10702
|
+
* @param payload - Generation payload
|
|
10703
|
+
* @return Promise for the generation response
|
|
10704
|
+
* @example ```javascript
|
|
10705
|
+
* const contentful = require('contentful-management')
|
|
10706
|
+
*
|
|
10707
|
+
* const client = contentful.createClient({
|
|
10708
|
+
* accessToken: '<content_management_api_key>'
|
|
10709
|
+
* })
|
|
10710
|
+
*
|
|
10711
|
+
* client.getSpace('<space_id>')
|
|
10712
|
+
* .then((space) => space.getEnvironment('<environment_id>'))
|
|
10713
|
+
* .then((environment) => environment.generateWithAgent('<agent_id>', {
|
|
10714
|
+
* messages: [
|
|
10715
|
+
* {
|
|
10716
|
+
* parts: [
|
|
10717
|
+
* {
|
|
10718
|
+
* type: 'text',
|
|
10719
|
+
* text: 'Write a short poem about Contentful'
|
|
10720
|
+
* }
|
|
10721
|
+
* ],
|
|
10722
|
+
* role: 'user'
|
|
10723
|
+
* }
|
|
10724
|
+
* ]
|
|
10725
|
+
* }))
|
|
10726
|
+
* .then((result) => console.log(result))
|
|
10727
|
+
* .catch(console.error)
|
|
10728
|
+
* ```
|
|
10729
|
+
*/
|
|
10730
|
+
generateWithAgent(agentId, payload) {
|
|
10731
|
+
const raw = this.toPlainObject();
|
|
10732
|
+
return makeRequest({
|
|
10733
|
+
entityType: 'Agent',
|
|
10734
|
+
action: 'generate',
|
|
10735
|
+
params: {
|
|
10736
|
+
spaceId: raw.sys.space.sys.id,
|
|
10737
|
+
environmentId: raw.sys.id,
|
|
10738
|
+
agentId
|
|
10739
|
+
},
|
|
10740
|
+
payload
|
|
10741
|
+
}).then(data => wrapAgentRun(makeRequest, data));
|
|
10742
|
+
},
|
|
10743
|
+
/**
|
|
10744
|
+
* Gets an AI Agent Run
|
|
10745
|
+
* @param runId - AI Agent Run ID
|
|
10746
|
+
* @return Promise for an AI Agent Run
|
|
10747
|
+
* @example ```javascript
|
|
10748
|
+
* const contentful = require('contentful-management')
|
|
10749
|
+
*
|
|
10750
|
+
* const client = contentful.createClient({
|
|
10751
|
+
* accessToken: '<content_management_api_key>'
|
|
10752
|
+
* })
|
|
10753
|
+
*
|
|
10754
|
+
* client.getSpace('<space_id>')
|
|
10755
|
+
* .then((space) => space.getEnvironment('<environment_id>'))
|
|
10756
|
+
* .then((environment) => environment.getAgentRun('<run_id>'))
|
|
10757
|
+
* .then((run) => console.log(run))
|
|
10758
|
+
* .catch(console.error)
|
|
10759
|
+
* ```
|
|
10760
|
+
*/
|
|
10761
|
+
getAgentRun(runId) {
|
|
10762
|
+
const raw = this.toPlainObject();
|
|
10763
|
+
return makeRequest({
|
|
10764
|
+
entityType: 'AgentRun',
|
|
10765
|
+
action: 'get',
|
|
10766
|
+
params: {
|
|
10767
|
+
spaceId: raw.sys.space.sys.id,
|
|
10768
|
+
environmentId: raw.sys.id,
|
|
10769
|
+
runId
|
|
10770
|
+
}
|
|
10771
|
+
}).then(data => wrapAgentRun(makeRequest, data));
|
|
10772
|
+
},
|
|
10773
|
+
/**
|
|
10774
|
+
* Gets a collection of AI Agent Runs with optional filtering
|
|
10775
|
+
* @param query - Object with search parameters (agentIn, statusIn)
|
|
10776
|
+
* @return Promise for a collection of AI Agent Runs
|
|
10777
|
+
* @example ```javascript
|
|
10778
|
+
* const contentful = require('contentful-management')
|
|
10779
|
+
*
|
|
10780
|
+
* const client = contentful.createClient({
|
|
10781
|
+
* accessToken: '<content_management_api_key>'
|
|
10782
|
+
* })
|
|
10783
|
+
*
|
|
10784
|
+
* client.getSpace('<space_id>')
|
|
10785
|
+
* .then((space) => space.getEnvironment('<environment_id>'))
|
|
10786
|
+
* .then((environment) => environment.getAgentRuns({
|
|
10787
|
+
* agentIn: ['agent1', 'agent2'],
|
|
10788
|
+
* statusIn: ['COMPLETED', 'IN_PROGRESS']
|
|
10789
|
+
* }))
|
|
10790
|
+
* .then((response) => console.log(response.items))
|
|
10791
|
+
* .catch(console.error)
|
|
10792
|
+
* ```
|
|
10793
|
+
*/
|
|
10794
|
+
getAgentRuns(query = {}) {
|
|
10795
|
+
const raw = this.toPlainObject();
|
|
10796
|
+
return makeRequest({
|
|
10797
|
+
entityType: 'AgentRun',
|
|
10798
|
+
action: 'getMany',
|
|
10799
|
+
params: {
|
|
10800
|
+
spaceId: raw.sys.space.sys.id,
|
|
10801
|
+
environmentId: raw.sys.id,
|
|
10802
|
+
query
|
|
10803
|
+
}
|
|
10804
|
+
}).then(data => wrapAgentRunCollection(makeRequest, data));
|
|
10549
10805
|
}
|
|
10550
10806
|
};
|
|
10551
10807
|
}
|
|
@@ -14269,6 +14525,81 @@ const wrapAccessTokenCollection = (0,_common_utils__WEBPACK_IMPORTED_MODULE_3__.
|
|
|
14269
14525
|
|
|
14270
14526
|
/***/ }),
|
|
14271
14527
|
|
|
14528
|
+
/***/ "./entities/agent-run.ts":
|
|
14529
|
+
/*!*******************************!*\
|
|
14530
|
+
!*** ./entities/agent-run.ts ***!
|
|
14531
|
+
\*******************************/
|
|
14532
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
14533
|
+
|
|
14534
|
+
"use strict";
|
|
14535
|
+
__webpack_require__.r(__webpack_exports__);
|
|
14536
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
14537
|
+
/* harmony export */ wrapAgentRun: () => (/* binding */ wrapAgentRun),
|
|
14538
|
+
/* harmony export */ wrapAgentRunCollection: () => (/* binding */ wrapAgentRunCollection)
|
|
14539
|
+
/* harmony export */ });
|
|
14540
|
+
/* harmony import */ var contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! contentful-sdk-core */ "../node_modules/contentful-sdk-core/dist/index.js");
|
|
14541
|
+
/* harmony import */ var fast_copy__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! fast-copy */ "../node_modules/fast-copy/dist/esm/index.mjs");
|
|
14542
|
+
/* harmony import */ var _common_utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../common-utils */ "./common-utils.ts");
|
|
14543
|
+
|
|
14544
|
+
|
|
14545
|
+
|
|
14546
|
+
function wrapAgentRun(_makeRequest, data) {
|
|
14547
|
+
const agentRun = (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__.toPlainObject)((0,fast_copy__WEBPACK_IMPORTED_MODULE_1__["default"])(data));
|
|
14548
|
+
return (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__.freezeSys)(agentRun);
|
|
14549
|
+
}
|
|
14550
|
+
const wrapAgentRunCollection = (0,_common_utils__WEBPACK_IMPORTED_MODULE_2__.wrapCollection)(wrapAgentRun);
|
|
14551
|
+
|
|
14552
|
+
/***/ }),
|
|
14553
|
+
|
|
14554
|
+
/***/ "./entities/agent.ts":
|
|
14555
|
+
/*!***************************!*\
|
|
14556
|
+
!*** ./entities/agent.ts ***!
|
|
14557
|
+
\***************************/
|
|
14558
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
14559
|
+
|
|
14560
|
+
"use strict";
|
|
14561
|
+
__webpack_require__.r(__webpack_exports__);
|
|
14562
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
14563
|
+
/* harmony export */ wrapAgent: () => (/* binding */ wrapAgent),
|
|
14564
|
+
/* harmony export */ wrapAgentCollection: () => (/* binding */ wrapAgentCollection)
|
|
14565
|
+
/* harmony export */ });
|
|
14566
|
+
/* harmony import */ var contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! contentful-sdk-core */ "../node_modules/contentful-sdk-core/dist/index.js");
|
|
14567
|
+
/* harmony import */ var fast_copy__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! fast-copy */ "../node_modules/fast-copy/dist/esm/index.mjs");
|
|
14568
|
+
/* harmony import */ var _common_utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../common-utils */ "./common-utils.ts");
|
|
14569
|
+
/* harmony import */ var _enhance_with_methods__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../enhance-with-methods */ "./enhance-with-methods.ts");
|
|
14570
|
+
/* harmony import */ var _agent_run__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./agent-run */ "./entities/agent-run.ts");
|
|
14571
|
+
|
|
14572
|
+
|
|
14573
|
+
|
|
14574
|
+
|
|
14575
|
+
|
|
14576
|
+
function createAgentApi(makeRequest) {
|
|
14577
|
+
const getParams = data => ({
|
|
14578
|
+
spaceId: data.sys.space.sys.id,
|
|
14579
|
+
environmentId: data.sys.environment.sys.id,
|
|
14580
|
+
agentId: data.sys.id
|
|
14581
|
+
});
|
|
14582
|
+
return {
|
|
14583
|
+
generate: function generate(payload) {
|
|
14584
|
+
const self = this;
|
|
14585
|
+
return makeRequest({
|
|
14586
|
+
entityType: 'Agent',
|
|
14587
|
+
action: 'generate',
|
|
14588
|
+
params: getParams(self),
|
|
14589
|
+
payload
|
|
14590
|
+
}).then(data => (0,_agent_run__WEBPACK_IMPORTED_MODULE_4__.wrapAgentRun)(makeRequest, data));
|
|
14591
|
+
}
|
|
14592
|
+
};
|
|
14593
|
+
}
|
|
14594
|
+
function wrapAgent(makeRequest, data) {
|
|
14595
|
+
const agent = (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__.toPlainObject)((0,fast_copy__WEBPACK_IMPORTED_MODULE_1__["default"])(data));
|
|
14596
|
+
const agentWithMethods = (0,_enhance_with_methods__WEBPACK_IMPORTED_MODULE_3__["default"])(agent, createAgentApi(makeRequest));
|
|
14597
|
+
return (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__.freezeSys)(agentWithMethods);
|
|
14598
|
+
}
|
|
14599
|
+
const wrapAgentCollection = (0,_common_utils__WEBPACK_IMPORTED_MODULE_2__.wrapCollection)(wrapAgent);
|
|
14600
|
+
|
|
14601
|
+
/***/ }),
|
|
14602
|
+
|
|
14272
14603
|
/***/ "./entities/ai-action-invocation.ts":
|
|
14273
14604
|
/*!******************************************!*\
|
|
14274
14605
|
!*** ./entities/ai-action-invocation.ts ***!
|
|
@@ -16217,71 +16548,75 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
16217
16548
|
/* harmony export */ });
|
|
16218
16549
|
/* harmony import */ var _ai_action__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./ai-action */ "./entities/ai-action.ts");
|
|
16219
16550
|
/* harmony import */ var _ai_action_invocation__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./ai-action-invocation */ "./entities/ai-action-invocation.ts");
|
|
16220
|
-
/* harmony import */ var
|
|
16221
|
-
/* harmony import */ var
|
|
16222
|
-
/* harmony import */ var
|
|
16223
|
-
/* harmony import */ var
|
|
16224
|
-
/* harmony import */ var
|
|
16225
|
-
/* harmony import */ var
|
|
16226
|
-
/* harmony import */ var
|
|
16227
|
-
/* harmony import */ var
|
|
16228
|
-
/* harmony import */ var
|
|
16229
|
-
/* harmony import */ var
|
|
16230
|
-
/* harmony import */ var
|
|
16231
|
-
/* harmony import */ var
|
|
16232
|
-
/* harmony import */ var
|
|
16233
|
-
/* harmony import */ var
|
|
16234
|
-
/* harmony import */ var
|
|
16235
|
-
/* harmony import */ var
|
|
16236
|
-
/* harmony import */ var
|
|
16237
|
-
/* harmony import */ var
|
|
16238
|
-
/* harmony import */ var
|
|
16239
|
-
/* harmony import */ var
|
|
16240
|
-
/* harmony import */ var
|
|
16241
|
-
/* harmony import */ var
|
|
16242
|
-
/* harmony import */ var
|
|
16243
|
-
/* harmony import */ var
|
|
16244
|
-
/* harmony import */ var
|
|
16245
|
-
/* harmony import */ var
|
|
16246
|
-
/* harmony import */ var
|
|
16247
|
-
/* harmony import */ var
|
|
16248
|
-
/* harmony import */ var
|
|
16249
|
-
/* harmony import */ var
|
|
16250
|
-
/* harmony import */ var
|
|
16251
|
-
/* harmony import */ var
|
|
16252
|
-
/* harmony import */ var
|
|
16253
|
-
/* harmony import */ var
|
|
16254
|
-
/* harmony import */ var
|
|
16255
|
-
/* harmony import */ var
|
|
16256
|
-
/* harmony import */ var
|
|
16257
|
-
/* harmony import */ var
|
|
16258
|
-
/* harmony import */ var
|
|
16259
|
-
/* harmony import */ var
|
|
16260
|
-
/* harmony import */ var
|
|
16261
|
-
/* harmony import */ var
|
|
16262
|
-
/* harmony import */ var
|
|
16263
|
-
/* harmony import */ var
|
|
16264
|
-
/* harmony import */ var
|
|
16265
|
-
/* harmony import */ var
|
|
16266
|
-
/* harmony import */ var
|
|
16267
|
-
/* harmony import */ var
|
|
16268
|
-
/* harmony import */ var
|
|
16269
|
-
/* harmony import */ var
|
|
16270
|
-
/* harmony import */ var
|
|
16271
|
-
/* harmony import */ var
|
|
16272
|
-
/* harmony import */ var
|
|
16273
|
-
/* harmony import */ var
|
|
16274
|
-
/* harmony import */ var
|
|
16275
|
-
/* harmony import */ var
|
|
16276
|
-
/* harmony import */ var
|
|
16277
|
-
/* harmony import */ var
|
|
16278
|
-
/* harmony import */ var
|
|
16279
|
-
/* harmony import */ var
|
|
16280
|
-
/* harmony import */ var
|
|
16281
|
-
/* harmony import */ var
|
|
16282
|
-
/* harmony import */ var
|
|
16283
|
-
/* harmony import */ var
|
|
16284
|
-
/* harmony import */ var
|
|
16551
|
+
/* harmony import */ var _agent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./agent */ "./entities/agent.ts");
|
|
16552
|
+
/* harmony import */ var _agent_run__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./agent-run */ "./entities/agent-run.ts");
|
|
16553
|
+
/* harmony import */ var _api_key__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./api-key */ "./entities/api-key.ts");
|
|
16554
|
+
/* harmony import */ var _app_action__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./app-action */ "./entities/app-action.ts");
|
|
16555
|
+
/* harmony import */ var _app_action_call__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./app-action-call */ "./entities/app-action-call.ts");
|
|
16556
|
+
/* harmony import */ var _app_bundle__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./app-bundle */ "./entities/app-bundle.ts");
|
|
16557
|
+
/* harmony import */ var _app_definition__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./app-definition */ "./entities/app-definition.ts");
|
|
16558
|
+
/* harmony import */ var _app_details__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./app-details */ "./entities/app-details.ts");
|
|
16559
|
+
/* harmony import */ var _app_installation__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./app-installation */ "./entities/app-installation.ts");
|
|
16560
|
+
/* harmony import */ var _app_signed_request__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./app-signed-request */ "./entities/app-signed-request.ts");
|
|
16561
|
+
/* harmony import */ var _app_signing_secret__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./app-signing-secret */ "./entities/app-signing-secret.ts");
|
|
16562
|
+
/* harmony import */ var _app_event_subscription__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./app-event-subscription */ "./entities/app-event-subscription.ts");
|
|
16563
|
+
/* harmony import */ var _app_key__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./app-key */ "./entities/app-key.ts");
|
|
16564
|
+
/* harmony import */ var _app_access_token__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./app-access-token */ "./entities/app-access-token.ts");
|
|
16565
|
+
/* harmony import */ var _app_upload__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./app-upload */ "./entities/app-upload.ts");
|
|
16566
|
+
/* harmony import */ var _asset__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./asset */ "./entities/asset.ts");
|
|
16567
|
+
/* harmony import */ var _asset_key__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./asset-key */ "./entities/asset-key.ts");
|
|
16568
|
+
/* harmony import */ var _bulk_action__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ./bulk-action */ "./entities/bulk-action.ts");
|
|
16569
|
+
/* harmony import */ var _comment__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ./comment */ "./entities/comment.ts");
|
|
16570
|
+
/* harmony import */ var _content_type__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ./content-type */ "./entities/content-type.ts");
|
|
16571
|
+
/* harmony import */ var _editor_interface__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ./editor-interface */ "./entities/editor-interface.ts");
|
|
16572
|
+
/* harmony import */ var _entry__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ./entry */ "./entities/entry.ts");
|
|
16573
|
+
/* harmony import */ var _environment__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! ./environment */ "./entities/environment.ts");
|
|
16574
|
+
/* harmony import */ var _environment_alias__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! ./environment-alias */ "./entities/environment-alias.ts");
|
|
16575
|
+
/* harmony import */ var _environment_template__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! ./environment-template */ "./entities/environment-template.ts");
|
|
16576
|
+
/* harmony import */ var _environment_template_installation__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! ./environment-template-installation */ "./entities/environment-template-installation.ts");
|
|
16577
|
+
/* harmony import */ var _extension__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(/*! ./extension */ "./entities/extension.ts");
|
|
16578
|
+
/* harmony import */ var _function__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(/*! ./function */ "./entities/function.ts");
|
|
16579
|
+
/* harmony import */ var _function_log__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(/*! ./function-log */ "./entities/function-log.ts");
|
|
16580
|
+
/* harmony import */ var _locale__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(/*! ./locale */ "./entities/locale.ts");
|
|
16581
|
+
/* harmony import */ var _oauth_application__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(/*! ./oauth-application */ "./entities/oauth-application.ts");
|
|
16582
|
+
/* harmony import */ var _organization__WEBPACK_IMPORTED_MODULE_33__ = __webpack_require__(/*! ./organization */ "./entities/organization.ts");
|
|
16583
|
+
/* harmony import */ var _organization_invitation__WEBPACK_IMPORTED_MODULE_34__ = __webpack_require__(/*! ./organization-invitation */ "./entities/organization-invitation.ts");
|
|
16584
|
+
/* harmony import */ var _organization_membership__WEBPACK_IMPORTED_MODULE_35__ = __webpack_require__(/*! ./organization-membership */ "./entities/organization-membership.ts");
|
|
16585
|
+
/* harmony import */ var _personal_access_token__WEBPACK_IMPORTED_MODULE_36__ = __webpack_require__(/*! ./personal-access-token */ "./entities/personal-access-token.ts");
|
|
16586
|
+
/* harmony import */ var _access_token__WEBPACK_IMPORTED_MODULE_37__ = __webpack_require__(/*! ./access-token */ "./entities/access-token.ts");
|
|
16587
|
+
/* harmony import */ var _preview_api_key__WEBPACK_IMPORTED_MODULE_38__ = __webpack_require__(/*! ./preview-api-key */ "./entities/preview-api-key.ts");
|
|
16588
|
+
/* harmony import */ var _release__WEBPACK_IMPORTED_MODULE_39__ = __webpack_require__(/*! ./release */ "./entities/release.ts");
|
|
16589
|
+
/* harmony import */ var _release_action__WEBPACK_IMPORTED_MODULE_40__ = __webpack_require__(/*! ./release-action */ "./entities/release-action.ts");
|
|
16590
|
+
/* harmony import */ var _role__WEBPACK_IMPORTED_MODULE_41__ = __webpack_require__(/*! ./role */ "./entities/role.ts");
|
|
16591
|
+
/* harmony import */ var _scheduled_action__WEBPACK_IMPORTED_MODULE_42__ = __webpack_require__(/*! ./scheduled-action */ "./entities/scheduled-action.ts");
|
|
16592
|
+
/* harmony import */ var _semantic_duplicates__WEBPACK_IMPORTED_MODULE_43__ = __webpack_require__(/*! ./semantic-duplicates */ "./entities/semantic-duplicates.ts");
|
|
16593
|
+
/* harmony import */ var _semantic_recommendations__WEBPACK_IMPORTED_MODULE_44__ = __webpack_require__(/*! ./semantic-recommendations */ "./entities/semantic-recommendations.ts");
|
|
16594
|
+
/* harmony import */ var _semantic_reference_suggestions__WEBPACK_IMPORTED_MODULE_45__ = __webpack_require__(/*! ./semantic-reference-suggestions */ "./entities/semantic-reference-suggestions.ts");
|
|
16595
|
+
/* harmony import */ var _semantic_search__WEBPACK_IMPORTED_MODULE_46__ = __webpack_require__(/*! ./semantic-search */ "./entities/semantic-search.ts");
|
|
16596
|
+
/* harmony import */ var _snapshot__WEBPACK_IMPORTED_MODULE_47__ = __webpack_require__(/*! ./snapshot */ "./entities/snapshot.ts");
|
|
16597
|
+
/* harmony import */ var _space__WEBPACK_IMPORTED_MODULE_48__ = __webpack_require__(/*! ./space */ "./entities/space.ts");
|
|
16598
|
+
/* harmony import */ var _space_member__WEBPACK_IMPORTED_MODULE_49__ = __webpack_require__(/*! ./space-member */ "./entities/space-member.ts");
|
|
16599
|
+
/* harmony import */ var _space_membership__WEBPACK_IMPORTED_MODULE_50__ = __webpack_require__(/*! ./space-membership */ "./entities/space-membership.ts");
|
|
16600
|
+
/* harmony import */ var _tag__WEBPACK_IMPORTED_MODULE_51__ = __webpack_require__(/*! ./tag */ "./entities/tag.ts");
|
|
16601
|
+
/* harmony import */ var _task__WEBPACK_IMPORTED_MODULE_52__ = __webpack_require__(/*! ./task */ "./entities/task.ts");
|
|
16602
|
+
/* harmony import */ var _team__WEBPACK_IMPORTED_MODULE_53__ = __webpack_require__(/*! ./team */ "./entities/team.ts");
|
|
16603
|
+
/* harmony import */ var _team_membership__WEBPACK_IMPORTED_MODULE_54__ = __webpack_require__(/*! ./team-membership */ "./entities/team-membership.ts");
|
|
16604
|
+
/* harmony import */ var _team_space_membership__WEBPACK_IMPORTED_MODULE_55__ = __webpack_require__(/*! ./team-space-membership */ "./entities/team-space-membership.ts");
|
|
16605
|
+
/* harmony import */ var _ui_config__WEBPACK_IMPORTED_MODULE_56__ = __webpack_require__(/*! ./ui-config */ "./entities/ui-config.ts");
|
|
16606
|
+
/* harmony import */ var _upload__WEBPACK_IMPORTED_MODULE_57__ = __webpack_require__(/*! ./upload */ "./entities/upload.ts");
|
|
16607
|
+
/* harmony import */ var _usage__WEBPACK_IMPORTED_MODULE_58__ = __webpack_require__(/*! ./usage */ "./entities/usage.ts");
|
|
16608
|
+
/* harmony import */ var _user__WEBPACK_IMPORTED_MODULE_59__ = __webpack_require__(/*! ./user */ "./entities/user.ts");
|
|
16609
|
+
/* harmony import */ var _user_ui_config__WEBPACK_IMPORTED_MODULE_60__ = __webpack_require__(/*! ./user-ui-config */ "./entities/user-ui-config.ts");
|
|
16610
|
+
/* harmony import */ var _vectorization_status__WEBPACK_IMPORTED_MODULE_61__ = __webpack_require__(/*! ./vectorization-status */ "./entities/vectorization-status.ts");
|
|
16611
|
+
/* harmony import */ var _webhook__WEBPACK_IMPORTED_MODULE_62__ = __webpack_require__(/*! ./webhook */ "./entities/webhook.ts");
|
|
16612
|
+
/* harmony import */ var _workflow_definition__WEBPACK_IMPORTED_MODULE_63__ = __webpack_require__(/*! ./workflow-definition */ "./entities/workflow-definition.ts");
|
|
16613
|
+
/* harmony import */ var _concept__WEBPACK_IMPORTED_MODULE_64__ = __webpack_require__(/*! ./concept */ "./entities/concept.ts");
|
|
16614
|
+
/* harmony import */ var _concept_scheme__WEBPACK_IMPORTED_MODULE_65__ = __webpack_require__(/*! ./concept-scheme */ "./entities/concept-scheme.ts");
|
|
16615
|
+
/* harmony import */ var _resource_provider__WEBPACK_IMPORTED_MODULE_66__ = __webpack_require__(/*! ./resource-provider */ "./entities/resource-provider.ts");
|
|
16616
|
+
/* harmony import */ var _resource_type__WEBPACK_IMPORTED_MODULE_67__ = __webpack_require__(/*! ./resource-type */ "./entities/resource-type.ts");
|
|
16617
|
+
/* harmony import */ var _resource__WEBPACK_IMPORTED_MODULE_68__ = __webpack_require__(/*! ./resource */ "./entities/resource.ts");
|
|
16618
|
+
|
|
16619
|
+
|
|
16285
16620
|
|
|
16286
16621
|
|
|
16287
16622
|
|
|
@@ -16352,71 +16687,73 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
16352
16687
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({
|
|
16353
16688
|
aiAction: _ai_action__WEBPACK_IMPORTED_MODULE_0__,
|
|
16354
16689
|
aiActionInvocation: _ai_action_invocation__WEBPACK_IMPORTED_MODULE_1__,
|
|
16355
|
-
|
|
16356
|
-
|
|
16357
|
-
|
|
16358
|
-
|
|
16359
|
-
|
|
16360
|
-
|
|
16361
|
-
|
|
16362
|
-
|
|
16363
|
-
|
|
16364
|
-
|
|
16365
|
-
|
|
16366
|
-
|
|
16367
|
-
|
|
16368
|
-
|
|
16369
|
-
|
|
16370
|
-
|
|
16371
|
-
|
|
16372
|
-
|
|
16373
|
-
|
|
16374
|
-
|
|
16375
|
-
|
|
16376
|
-
|
|
16377
|
-
|
|
16378
|
-
|
|
16379
|
-
|
|
16380
|
-
|
|
16381
|
-
|
|
16382
|
-
|
|
16383
|
-
|
|
16384
|
-
|
|
16385
|
-
|
|
16386
|
-
|
|
16387
|
-
|
|
16388
|
-
|
|
16389
|
-
|
|
16390
|
-
|
|
16391
|
-
|
|
16392
|
-
|
|
16393
|
-
|
|
16394
|
-
|
|
16395
|
-
|
|
16396
|
-
|
|
16397
|
-
|
|
16398
|
-
|
|
16399
|
-
|
|
16400
|
-
|
|
16401
|
-
|
|
16402
|
-
|
|
16403
|
-
|
|
16404
|
-
|
|
16405
|
-
|
|
16406
|
-
|
|
16407
|
-
|
|
16408
|
-
|
|
16409
|
-
|
|
16410
|
-
|
|
16411
|
-
|
|
16412
|
-
|
|
16413
|
-
|
|
16414
|
-
|
|
16415
|
-
|
|
16416
|
-
|
|
16417
|
-
|
|
16418
|
-
|
|
16419
|
-
|
|
16690
|
+
agent: _agent__WEBPACK_IMPORTED_MODULE_2__,
|
|
16691
|
+
agentRun: _agent_run__WEBPACK_IMPORTED_MODULE_3__,
|
|
16692
|
+
accessToken: _access_token__WEBPACK_IMPORTED_MODULE_37__,
|
|
16693
|
+
appAction: _app_action__WEBPACK_IMPORTED_MODULE_5__,
|
|
16694
|
+
appActionCall: _app_action_call__WEBPACK_IMPORTED_MODULE_6__,
|
|
16695
|
+
appBundle: _app_bundle__WEBPACK_IMPORTED_MODULE_7__,
|
|
16696
|
+
apiKey: _api_key__WEBPACK_IMPORTED_MODULE_4__,
|
|
16697
|
+
appDefinition: _app_definition__WEBPACK_IMPORTED_MODULE_8__,
|
|
16698
|
+
appInstallation: _app_installation__WEBPACK_IMPORTED_MODULE_10__,
|
|
16699
|
+
appUpload: _app_upload__WEBPACK_IMPORTED_MODULE_16__,
|
|
16700
|
+
appDetails: _app_details__WEBPACK_IMPORTED_MODULE_9__,
|
|
16701
|
+
appSignedRequest: _app_signed_request__WEBPACK_IMPORTED_MODULE_11__,
|
|
16702
|
+
appSigningSecret: _app_signing_secret__WEBPACK_IMPORTED_MODULE_12__,
|
|
16703
|
+
appEventSubscription: _app_event_subscription__WEBPACK_IMPORTED_MODULE_13__,
|
|
16704
|
+
appKey: _app_key__WEBPACK_IMPORTED_MODULE_14__,
|
|
16705
|
+
appAccessToken: _app_access_token__WEBPACK_IMPORTED_MODULE_15__,
|
|
16706
|
+
asset: _asset__WEBPACK_IMPORTED_MODULE_17__,
|
|
16707
|
+
assetKey: _asset_key__WEBPACK_IMPORTED_MODULE_18__,
|
|
16708
|
+
bulkAction: _bulk_action__WEBPACK_IMPORTED_MODULE_19__,
|
|
16709
|
+
comment: _comment__WEBPACK_IMPORTED_MODULE_20__,
|
|
16710
|
+
concept: _concept__WEBPACK_IMPORTED_MODULE_64__,
|
|
16711
|
+
conceptScheme: _concept_scheme__WEBPACK_IMPORTED_MODULE_65__,
|
|
16712
|
+
contentType: _content_type__WEBPACK_IMPORTED_MODULE_21__,
|
|
16713
|
+
editorInterface: _editor_interface__WEBPACK_IMPORTED_MODULE_22__,
|
|
16714
|
+
entry: _entry__WEBPACK_IMPORTED_MODULE_23__,
|
|
16715
|
+
environment: _environment__WEBPACK_IMPORTED_MODULE_24__,
|
|
16716
|
+
environmentAlias: _environment_alias__WEBPACK_IMPORTED_MODULE_25__,
|
|
16717
|
+
environmentTemplate: _environment_template__WEBPACK_IMPORTED_MODULE_26__,
|
|
16718
|
+
environmentTemplateInstallation: _environment_template_installation__WEBPACK_IMPORTED_MODULE_27__,
|
|
16719
|
+
extension: _extension__WEBPACK_IMPORTED_MODULE_28__,
|
|
16720
|
+
func: _function__WEBPACK_IMPORTED_MODULE_29__,
|
|
16721
|
+
functionLog: _function_log__WEBPACK_IMPORTED_MODULE_30__,
|
|
16722
|
+
locale: _locale__WEBPACK_IMPORTED_MODULE_31__,
|
|
16723
|
+
oauthApplication: _oauth_application__WEBPACK_IMPORTED_MODULE_32__,
|
|
16724
|
+
organization: _organization__WEBPACK_IMPORTED_MODULE_33__,
|
|
16725
|
+
organizationInvitation: _organization_invitation__WEBPACK_IMPORTED_MODULE_34__,
|
|
16726
|
+
organizationMembership: _organization_membership__WEBPACK_IMPORTED_MODULE_35__,
|
|
16727
|
+
personalAccessToken: _personal_access_token__WEBPACK_IMPORTED_MODULE_36__,
|
|
16728
|
+
previewApiKey: _preview_api_key__WEBPACK_IMPORTED_MODULE_38__,
|
|
16729
|
+
release: _release__WEBPACK_IMPORTED_MODULE_39__,
|
|
16730
|
+
releaseAction: _release_action__WEBPACK_IMPORTED_MODULE_40__,
|
|
16731
|
+
resourceProvider: _resource_provider__WEBPACK_IMPORTED_MODULE_66__,
|
|
16732
|
+
resourceType: _resource_type__WEBPACK_IMPORTED_MODULE_67__,
|
|
16733
|
+
resource: _resource__WEBPACK_IMPORTED_MODULE_68__,
|
|
16734
|
+
role: _role__WEBPACK_IMPORTED_MODULE_41__,
|
|
16735
|
+
scheduledAction: _scheduled_action__WEBPACK_IMPORTED_MODULE_42__,
|
|
16736
|
+
semanticDuplicates: _semantic_duplicates__WEBPACK_IMPORTED_MODULE_43__,
|
|
16737
|
+
semanticRecommendations: _semantic_recommendations__WEBPACK_IMPORTED_MODULE_44__,
|
|
16738
|
+
semanticReferenceSuggestions: _semantic_reference_suggestions__WEBPACK_IMPORTED_MODULE_45__,
|
|
16739
|
+
semanticSearch: _semantic_search__WEBPACK_IMPORTED_MODULE_46__,
|
|
16740
|
+
snapshot: _snapshot__WEBPACK_IMPORTED_MODULE_47__,
|
|
16741
|
+
space: _space__WEBPACK_IMPORTED_MODULE_48__,
|
|
16742
|
+
spaceMember: _space_member__WEBPACK_IMPORTED_MODULE_49__,
|
|
16743
|
+
spaceMembership: _space_membership__WEBPACK_IMPORTED_MODULE_50__,
|
|
16744
|
+
tag: _tag__WEBPACK_IMPORTED_MODULE_51__,
|
|
16745
|
+
task: _task__WEBPACK_IMPORTED_MODULE_52__,
|
|
16746
|
+
team: _team__WEBPACK_IMPORTED_MODULE_53__,
|
|
16747
|
+
teamMembership: _team_membership__WEBPACK_IMPORTED_MODULE_54__,
|
|
16748
|
+
teamSpaceMembership: _team_space_membership__WEBPACK_IMPORTED_MODULE_55__,
|
|
16749
|
+
uiConfig: _ui_config__WEBPACK_IMPORTED_MODULE_56__,
|
|
16750
|
+
upload: _upload__WEBPACK_IMPORTED_MODULE_57__,
|
|
16751
|
+
usage: _usage__WEBPACK_IMPORTED_MODULE_58__,
|
|
16752
|
+
user: _user__WEBPACK_IMPORTED_MODULE_59__,
|
|
16753
|
+
userUIConfig: _user_ui_config__WEBPACK_IMPORTED_MODULE_60__,
|
|
16754
|
+
vectorizationStatus: _vectorization_status__WEBPACK_IMPORTED_MODULE_61__,
|
|
16755
|
+
webhook: _webhook__WEBPACK_IMPORTED_MODULE_62__,
|
|
16756
|
+
workflowDefinition: _workflow_definition__WEBPACK_IMPORTED_MODULE_63__
|
|
16420
16757
|
});
|
|
16421
16758
|
|
|
16422
16759
|
/***/ }),
|
|
@@ -19112,6 +19449,15 @@ const createPlainClient = (makeRequest, defaults) => {
|
|
|
19112
19449
|
aiActionInvocation: {
|
|
19113
19450
|
get: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'AiActionInvocation', 'get')
|
|
19114
19451
|
},
|
|
19452
|
+
agent: {
|
|
19453
|
+
get: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'Agent', 'get'),
|
|
19454
|
+
getMany: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'Agent', 'getMany'),
|
|
19455
|
+
generate: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'Agent', 'generate')
|
|
19456
|
+
},
|
|
19457
|
+
agentRun: {
|
|
19458
|
+
get: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'AgentRun', 'get'),
|
|
19459
|
+
getMany: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'AgentRun', 'getMany')
|
|
19460
|
+
},
|
|
19115
19461
|
appAction: {
|
|
19116
19462
|
get: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'AppAction', 'get'),
|
|
19117
19463
|
getMany: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'AppAction', 'getMany'),
|