contentful-management 11.45.1 → 11.47.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.
Files changed (30) hide show
  1. package/dist/contentful-management.browser.js +567 -149
  2. package/dist/contentful-management.browser.js.map +1 -1
  3. package/dist/contentful-management.browser.min.js +1 -1
  4. package/dist/contentful-management.node.js +519 -146
  5. package/dist/contentful-management.node.js.map +1 -1
  6. package/dist/contentful-management.node.min.js +1 -1
  7. package/dist/es-modules/adapters/REST/endpoints/index.js +2 -0
  8. package/dist/es-modules/adapters/REST/endpoints/oauth-application.js +142 -0
  9. package/dist/es-modules/adapters/REST/make-request.js +28 -0
  10. package/dist/es-modules/adapters/REST/rest-adapter.js +5 -21
  11. package/dist/es-modules/contentful-management.js +2 -1
  12. package/dist/es-modules/create-contentful-api.js +87 -0
  13. package/dist/es-modules/entities/index.js +2 -0
  14. package/dist/es-modules/entities/oauth-application.js +62 -0
  15. package/dist/es-modules/plain/entities/oauth-application.js +1 -0
  16. package/dist/es-modules/plain/plain-client.js +7 -0
  17. package/dist/typings/adapters/REST/endpoints/index.d.ts +2 -0
  18. package/dist/typings/adapters/REST/endpoints/oauth-application.d.ts +122 -0
  19. package/dist/typings/adapters/REST/make-request.d.ts +7 -0
  20. package/dist/typings/adapters/REST/rest-adapter.d.ts +1 -1
  21. package/dist/typings/common-types.d.ts +39 -0
  22. package/dist/typings/contentful-management.d.ts +2 -0
  23. package/dist/typings/create-contentful-api.d.ts +62 -6
  24. package/dist/typings/entities/content-type.d.ts +7 -1
  25. package/dist/typings/entities/index.d.ts +2 -0
  26. package/dist/typings/entities/oauth-application.d.ts +56 -0
  27. package/dist/typings/export-types.d.ts +1 -0
  28. package/dist/typings/plain/common-types.d.ts +2 -0
  29. package/dist/typings/plain/entities/oauth-application.d.ts +90 -0
  30. package/package.json +1 -1
@@ -2431,34 +2431,36 @@ __webpack_require__.r(__webpack_exports__);
2431
2431
  /* harmony import */ var _organization__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(/*! ./organization */ "./adapters/REST/endpoints/organization.ts");
2432
2432
  /* harmony import */ var _organization_invitation__WEBPACK_IMPORTED_MODULE_33__ = __webpack_require__(/*! ./organization-invitation */ "./adapters/REST/endpoints/organization-invitation.ts");
2433
2433
  /* harmony import */ var _organization_membership__WEBPACK_IMPORTED_MODULE_34__ = __webpack_require__(/*! ./organization-membership */ "./adapters/REST/endpoints/organization-membership.ts");
2434
- /* harmony import */ var _personal_access_token__WEBPACK_IMPORTED_MODULE_35__ = __webpack_require__(/*! ./personal-access-token */ "./adapters/REST/endpoints/personal-access-token.ts");
2435
- /* harmony import */ var _preview_api_key__WEBPACK_IMPORTED_MODULE_36__ = __webpack_require__(/*! ./preview-api-key */ "./adapters/REST/endpoints/preview-api-key.ts");
2436
- /* harmony import */ var _release__WEBPACK_IMPORTED_MODULE_37__ = __webpack_require__(/*! ./release */ "./adapters/REST/endpoints/release.ts");
2437
- /* harmony import */ var _release_action__WEBPACK_IMPORTED_MODULE_38__ = __webpack_require__(/*! ./release-action */ "./adapters/REST/endpoints/release-action.ts");
2438
- /* harmony import */ var _resource__WEBPACK_IMPORTED_MODULE_39__ = __webpack_require__(/*! ./resource */ "./adapters/REST/endpoints/resource.ts");
2439
- /* harmony import */ var _resource_provider__WEBPACK_IMPORTED_MODULE_40__ = __webpack_require__(/*! ./resource-provider */ "./adapters/REST/endpoints/resource-provider.ts");
2440
- /* harmony import */ var _resource_type__WEBPACK_IMPORTED_MODULE_41__ = __webpack_require__(/*! ./resource-type */ "./adapters/REST/endpoints/resource-type.ts");
2441
- /* harmony import */ var _role__WEBPACK_IMPORTED_MODULE_42__ = __webpack_require__(/*! ./role */ "./adapters/REST/endpoints/role.ts");
2442
- /* harmony import */ var _scheduled_action__WEBPACK_IMPORTED_MODULE_43__ = __webpack_require__(/*! ./scheduled-action */ "./adapters/REST/endpoints/scheduled-action.ts");
2443
- /* harmony import */ var _snapshot__WEBPACK_IMPORTED_MODULE_44__ = __webpack_require__(/*! ./snapshot */ "./adapters/REST/endpoints/snapshot.ts");
2444
- /* harmony import */ var _space__WEBPACK_IMPORTED_MODULE_45__ = __webpack_require__(/*! ./space */ "./adapters/REST/endpoints/space.ts");
2445
- /* harmony import */ var _space_member__WEBPACK_IMPORTED_MODULE_46__ = __webpack_require__(/*! ./space-member */ "./adapters/REST/endpoints/space-member.ts");
2446
- /* harmony import */ var _space_membership__WEBPACK_IMPORTED_MODULE_47__ = __webpack_require__(/*! ./space-membership */ "./adapters/REST/endpoints/space-membership.ts");
2447
- /* harmony import */ var _tag__WEBPACK_IMPORTED_MODULE_48__ = __webpack_require__(/*! ./tag */ "./adapters/REST/endpoints/tag.ts");
2448
- /* harmony import */ var _task__WEBPACK_IMPORTED_MODULE_49__ = __webpack_require__(/*! ./task */ "./adapters/REST/endpoints/task.ts");
2449
- /* harmony import */ var _team__WEBPACK_IMPORTED_MODULE_50__ = __webpack_require__(/*! ./team */ "./adapters/REST/endpoints/team.ts");
2450
- /* harmony import */ var _team_membership__WEBPACK_IMPORTED_MODULE_51__ = __webpack_require__(/*! ./team-membership */ "./adapters/REST/endpoints/team-membership.ts");
2451
- /* harmony import */ var _team_space_membership__WEBPACK_IMPORTED_MODULE_52__ = __webpack_require__(/*! ./team-space-membership */ "./adapters/REST/endpoints/team-space-membership.ts");
2452
- /* harmony import */ var _ui_config__WEBPACK_IMPORTED_MODULE_53__ = __webpack_require__(/*! ./ui-config */ "./adapters/REST/endpoints/ui-config.ts");
2453
- /* harmony import */ var _upload__WEBPACK_IMPORTED_MODULE_54__ = __webpack_require__(/*! ./upload */ "./adapters/REST/endpoints/upload.ts");
2454
- /* harmony import */ var _upload_credentials__WEBPACK_IMPORTED_MODULE_55__ = __webpack_require__(/*! ./upload-credentials */ "./adapters/REST/endpoints/upload-credentials.ts");
2455
- /* harmony import */ var _usage__WEBPACK_IMPORTED_MODULE_56__ = __webpack_require__(/*! ./usage */ "./adapters/REST/endpoints/usage.ts");
2456
- /* harmony import */ var _user__WEBPACK_IMPORTED_MODULE_57__ = __webpack_require__(/*! ./user */ "./adapters/REST/endpoints/user.ts");
2457
- /* harmony import */ var _user_ui_config__WEBPACK_IMPORTED_MODULE_58__ = __webpack_require__(/*! ./user-ui-config */ "./adapters/REST/endpoints/user-ui-config.ts");
2458
- /* harmony import */ var _webhook__WEBPACK_IMPORTED_MODULE_59__ = __webpack_require__(/*! ./webhook */ "./adapters/REST/endpoints/webhook.ts");
2459
- /* harmony import */ var _workflow__WEBPACK_IMPORTED_MODULE_60__ = __webpack_require__(/*! ./workflow */ "./adapters/REST/endpoints/workflow.ts");
2460
- /* harmony import */ var _workflow_definition__WEBPACK_IMPORTED_MODULE_61__ = __webpack_require__(/*! ./workflow-definition */ "./adapters/REST/endpoints/workflow-definition.ts");
2461
- /* harmony import */ var _workflows_changelog__WEBPACK_IMPORTED_MODULE_62__ = __webpack_require__(/*! ./workflows-changelog */ "./adapters/REST/endpoints/workflows-changelog.ts");
2434
+ /* harmony import */ var _oauth_application__WEBPACK_IMPORTED_MODULE_35__ = __webpack_require__(/*! ./oauth-application */ "./adapters/REST/endpoints/oauth-application.ts");
2435
+ /* harmony import */ var _personal_access_token__WEBPACK_IMPORTED_MODULE_36__ = __webpack_require__(/*! ./personal-access-token */ "./adapters/REST/endpoints/personal-access-token.ts");
2436
+ /* harmony import */ var _preview_api_key__WEBPACK_IMPORTED_MODULE_37__ = __webpack_require__(/*! ./preview-api-key */ "./adapters/REST/endpoints/preview-api-key.ts");
2437
+ /* harmony import */ var _release__WEBPACK_IMPORTED_MODULE_38__ = __webpack_require__(/*! ./release */ "./adapters/REST/endpoints/release.ts");
2438
+ /* harmony import */ var _release_action__WEBPACK_IMPORTED_MODULE_39__ = __webpack_require__(/*! ./release-action */ "./adapters/REST/endpoints/release-action.ts");
2439
+ /* harmony import */ var _resource__WEBPACK_IMPORTED_MODULE_40__ = __webpack_require__(/*! ./resource */ "./adapters/REST/endpoints/resource.ts");
2440
+ /* harmony import */ var _resource_provider__WEBPACK_IMPORTED_MODULE_41__ = __webpack_require__(/*! ./resource-provider */ "./adapters/REST/endpoints/resource-provider.ts");
2441
+ /* harmony import */ var _resource_type__WEBPACK_IMPORTED_MODULE_42__ = __webpack_require__(/*! ./resource-type */ "./adapters/REST/endpoints/resource-type.ts");
2442
+ /* harmony import */ var _role__WEBPACK_IMPORTED_MODULE_43__ = __webpack_require__(/*! ./role */ "./adapters/REST/endpoints/role.ts");
2443
+ /* harmony import */ var _scheduled_action__WEBPACK_IMPORTED_MODULE_44__ = __webpack_require__(/*! ./scheduled-action */ "./adapters/REST/endpoints/scheduled-action.ts");
2444
+ /* harmony import */ var _snapshot__WEBPACK_IMPORTED_MODULE_45__ = __webpack_require__(/*! ./snapshot */ "./adapters/REST/endpoints/snapshot.ts");
2445
+ /* harmony import */ var _space__WEBPACK_IMPORTED_MODULE_46__ = __webpack_require__(/*! ./space */ "./adapters/REST/endpoints/space.ts");
2446
+ /* harmony import */ var _space_member__WEBPACK_IMPORTED_MODULE_47__ = __webpack_require__(/*! ./space-member */ "./adapters/REST/endpoints/space-member.ts");
2447
+ /* harmony import */ var _space_membership__WEBPACK_IMPORTED_MODULE_48__ = __webpack_require__(/*! ./space-membership */ "./adapters/REST/endpoints/space-membership.ts");
2448
+ /* harmony import */ var _tag__WEBPACK_IMPORTED_MODULE_49__ = __webpack_require__(/*! ./tag */ "./adapters/REST/endpoints/tag.ts");
2449
+ /* harmony import */ var _task__WEBPACK_IMPORTED_MODULE_50__ = __webpack_require__(/*! ./task */ "./adapters/REST/endpoints/task.ts");
2450
+ /* harmony import */ var _team__WEBPACK_IMPORTED_MODULE_51__ = __webpack_require__(/*! ./team */ "./adapters/REST/endpoints/team.ts");
2451
+ /* harmony import */ var _team_membership__WEBPACK_IMPORTED_MODULE_52__ = __webpack_require__(/*! ./team-membership */ "./adapters/REST/endpoints/team-membership.ts");
2452
+ /* harmony import */ var _team_space_membership__WEBPACK_IMPORTED_MODULE_53__ = __webpack_require__(/*! ./team-space-membership */ "./adapters/REST/endpoints/team-space-membership.ts");
2453
+ /* harmony import */ var _ui_config__WEBPACK_IMPORTED_MODULE_54__ = __webpack_require__(/*! ./ui-config */ "./adapters/REST/endpoints/ui-config.ts");
2454
+ /* harmony import */ var _upload__WEBPACK_IMPORTED_MODULE_55__ = __webpack_require__(/*! ./upload */ "./adapters/REST/endpoints/upload.ts");
2455
+ /* harmony import */ var _upload_credentials__WEBPACK_IMPORTED_MODULE_56__ = __webpack_require__(/*! ./upload-credentials */ "./adapters/REST/endpoints/upload-credentials.ts");
2456
+ /* harmony import */ var _usage__WEBPACK_IMPORTED_MODULE_57__ = __webpack_require__(/*! ./usage */ "./adapters/REST/endpoints/usage.ts");
2457
+ /* harmony import */ var _user__WEBPACK_IMPORTED_MODULE_58__ = __webpack_require__(/*! ./user */ "./adapters/REST/endpoints/user.ts");
2458
+ /* harmony import */ var _user_ui_config__WEBPACK_IMPORTED_MODULE_59__ = __webpack_require__(/*! ./user-ui-config */ "./adapters/REST/endpoints/user-ui-config.ts");
2459
+ /* harmony import */ var _webhook__WEBPACK_IMPORTED_MODULE_60__ = __webpack_require__(/*! ./webhook */ "./adapters/REST/endpoints/webhook.ts");
2460
+ /* harmony import */ var _workflow__WEBPACK_IMPORTED_MODULE_61__ = __webpack_require__(/*! ./workflow */ "./adapters/REST/endpoints/workflow.ts");
2461
+ /* harmony import */ var _workflow_definition__WEBPACK_IMPORTED_MODULE_62__ = __webpack_require__(/*! ./workflow-definition */ "./adapters/REST/endpoints/workflow-definition.ts");
2462
+ /* harmony import */ var _workflows_changelog__WEBPACK_IMPORTED_MODULE_63__ = __webpack_require__(/*! ./workflows-changelog */ "./adapters/REST/endpoints/workflows-changelog.ts");
2463
+
2462
2464
 
2463
2465
 
2464
2466
 
@@ -2557,35 +2559,36 @@ __webpack_require__.r(__webpack_exports__);
2557
2559
  Organization: _organization__WEBPACK_IMPORTED_MODULE_32__,
2558
2560
  OrganizationInvitation: _organization_invitation__WEBPACK_IMPORTED_MODULE_33__,
2559
2561
  OrganizationMembership: _organization_membership__WEBPACK_IMPORTED_MODULE_34__,
2560
- PersonalAccessToken: _personal_access_token__WEBPACK_IMPORTED_MODULE_35__,
2562
+ OAuthApplication: _oauth_application__WEBPACK_IMPORTED_MODULE_35__,
2563
+ PersonalAccessToken: _personal_access_token__WEBPACK_IMPORTED_MODULE_36__,
2561
2564
  AccessToken: _access_token__WEBPACK_IMPORTED_MODULE_0__,
2562
- PreviewApiKey: _preview_api_key__WEBPACK_IMPORTED_MODULE_36__,
2563
- Release: _release__WEBPACK_IMPORTED_MODULE_37__,
2564
- ReleaseAction: _release_action__WEBPACK_IMPORTED_MODULE_38__,
2565
- Resource: _resource__WEBPACK_IMPORTED_MODULE_39__,
2566
- ResourceProvider: _resource_provider__WEBPACK_IMPORTED_MODULE_40__,
2567
- ResourceType: _resource_type__WEBPACK_IMPORTED_MODULE_41__,
2568
- Role: _role__WEBPACK_IMPORTED_MODULE_42__,
2569
- ScheduledAction: _scheduled_action__WEBPACK_IMPORTED_MODULE_43__,
2570
- Snapshot: _snapshot__WEBPACK_IMPORTED_MODULE_44__,
2571
- Space: _space__WEBPACK_IMPORTED_MODULE_45__,
2572
- SpaceMember: _space_member__WEBPACK_IMPORTED_MODULE_46__,
2573
- SpaceMembership: _space_membership__WEBPACK_IMPORTED_MODULE_47__,
2574
- Tag: _tag__WEBPACK_IMPORTED_MODULE_48__,
2575
- Task: _task__WEBPACK_IMPORTED_MODULE_49__,
2576
- Team: _team__WEBPACK_IMPORTED_MODULE_50__,
2577
- TeamMembership: _team_membership__WEBPACK_IMPORTED_MODULE_51__,
2578
- TeamSpaceMembership: _team_space_membership__WEBPACK_IMPORTED_MODULE_52__,
2579
- UIConfig: _ui_config__WEBPACK_IMPORTED_MODULE_53__,
2580
- Upload: _upload__WEBPACK_IMPORTED_MODULE_54__,
2581
- UploadCredential: _upload_credentials__WEBPACK_IMPORTED_MODULE_55__,
2582
- Usage: _usage__WEBPACK_IMPORTED_MODULE_56__,
2583
- User: _user__WEBPACK_IMPORTED_MODULE_57__,
2584
- UserUIConfig: _user_ui_config__WEBPACK_IMPORTED_MODULE_58__,
2585
- Webhook: _webhook__WEBPACK_IMPORTED_MODULE_59__,
2586
- WorkflowDefinition: _workflow_definition__WEBPACK_IMPORTED_MODULE_61__,
2587
- Workflow: _workflow__WEBPACK_IMPORTED_MODULE_60__,
2588
- WorkflowsChangelog: _workflows_changelog__WEBPACK_IMPORTED_MODULE_62__
2565
+ PreviewApiKey: _preview_api_key__WEBPACK_IMPORTED_MODULE_37__,
2566
+ Release: _release__WEBPACK_IMPORTED_MODULE_38__,
2567
+ ReleaseAction: _release_action__WEBPACK_IMPORTED_MODULE_39__,
2568
+ Resource: _resource__WEBPACK_IMPORTED_MODULE_40__,
2569
+ ResourceProvider: _resource_provider__WEBPACK_IMPORTED_MODULE_41__,
2570
+ ResourceType: _resource_type__WEBPACK_IMPORTED_MODULE_42__,
2571
+ Role: _role__WEBPACK_IMPORTED_MODULE_43__,
2572
+ ScheduledAction: _scheduled_action__WEBPACK_IMPORTED_MODULE_44__,
2573
+ Snapshot: _snapshot__WEBPACK_IMPORTED_MODULE_45__,
2574
+ Space: _space__WEBPACK_IMPORTED_MODULE_46__,
2575
+ SpaceMember: _space_member__WEBPACK_IMPORTED_MODULE_47__,
2576
+ SpaceMembership: _space_membership__WEBPACK_IMPORTED_MODULE_48__,
2577
+ Tag: _tag__WEBPACK_IMPORTED_MODULE_49__,
2578
+ Task: _task__WEBPACK_IMPORTED_MODULE_50__,
2579
+ Team: _team__WEBPACK_IMPORTED_MODULE_51__,
2580
+ TeamMembership: _team_membership__WEBPACK_IMPORTED_MODULE_52__,
2581
+ TeamSpaceMembership: _team_space_membership__WEBPACK_IMPORTED_MODULE_53__,
2582
+ UIConfig: _ui_config__WEBPACK_IMPORTED_MODULE_54__,
2583
+ Upload: _upload__WEBPACK_IMPORTED_MODULE_55__,
2584
+ UploadCredential: _upload_credentials__WEBPACK_IMPORTED_MODULE_56__,
2585
+ Usage: _usage__WEBPACK_IMPORTED_MODULE_57__,
2586
+ User: _user__WEBPACK_IMPORTED_MODULE_58__,
2587
+ UserUIConfig: _user_ui_config__WEBPACK_IMPORTED_MODULE_59__,
2588
+ Webhook: _webhook__WEBPACK_IMPORTED_MODULE_60__,
2589
+ WorkflowDefinition: _workflow_definition__WEBPACK_IMPORTED_MODULE_62__,
2590
+ Workflow: _workflow__WEBPACK_IMPORTED_MODULE_61__,
2591
+ WorkflowsChangelog: _workflows_changelog__WEBPACK_IMPORTED_MODULE_63__
2589
2592
  });
2590
2593
 
2591
2594
  /***/ }),
@@ -2647,6 +2650,167 @@ var del = function del(http, params) {
2647
2650
 
2648
2651
  /***/ }),
2649
2652
 
2653
+ /***/ "./adapters/REST/endpoints/oauth-application.ts":
2654
+ /*!******************************************************!*\
2655
+ !*** ./adapters/REST/endpoints/oauth-application.ts ***!
2656
+ \******************************************************/
2657
+ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
2658
+
2659
+ "use strict";
2660
+ __webpack_require__.r(__webpack_exports__);
2661
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
2662
+ /* harmony export */ create: function() { return /* binding */ create; },
2663
+ /* harmony export */ del: function() { return /* binding */ del; },
2664
+ /* harmony export */ get: function() { return /* binding */ get; },
2665
+ /* harmony export */ getManyForUser: function() { return /* binding */ getManyForUser; },
2666
+ /* harmony export */ update: function() { return /* binding */ update; }
2667
+ /* harmony export */ });
2668
+ /* harmony import */ var _raw__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./raw */ "./adapters/REST/endpoints/raw.ts");
2669
+
2670
+ /**
2671
+ * Retrieves details of a specific OAuth application. by its unique user ID and oauth application ID.
2672
+ *
2673
+ * @param {AxiosInstance} http - An Axios HTTP client instance.
2674
+ * @param {Object} params - Parameters for the request.
2675
+ * @param {string} params.userId - The unique user ID of the user.
2676
+ * @param {string} params.oauthApplicationId - The unique application ID of the OAuth application.
2677
+ * @returns {Promise<OAuthApplicationProps>} A Promise that resolves with the retrieved OAuth Application.
2678
+ * @example ```javascript
2679
+ * const contentful = require('contentful-management')
2680
+ *
2681
+ * const plainClient = contentful.createClient(
2682
+ * {
2683
+ * accessToken: '<content_management_api_key>'
2684
+ * },
2685
+ * { type: 'plain' }
2686
+ * )
2687
+ * plainClient.get({userId: 'TestUserId', oauthApplicationId: 'TestOAuthAppId'})
2688
+ * .then(oauthApplication => console.log(oauthApplication))
2689
+ * .catch(console.error)
2690
+ * ```
2691
+ */
2692
+ var get = function get(http, params) {
2693
+ return _raw__WEBPACK_IMPORTED_MODULE_0__.get(http, "/users/".concat(params.userId, "/oauth_applications/").concat(params.oauthApplicationId));
2694
+ };
2695
+
2696
+ /**
2697
+ * Retrieves a list of OAuth applications associated with the current user.
2698
+ *
2699
+ * @param {AxiosInstance} http - An Axios HTTP client instance.
2700
+ * @param {Object} params - Parameters for the request.
2701
+ * @param {string} params.userId - The unique user ID of the user.
2702
+ * @param {QueryParams} params - Query parameters to filter and customize the request.
2703
+ * @returns {Promise<CursorPaginatedCollectionProp<OAuthApplicationProps>>} A Promise that resolves with a collection of oauth application properties.
2704
+ * @example ```javascript
2705
+ * const contentful = require('contentful-management')
2706
+ *
2707
+ * const plainClient = contentful.createClient(
2708
+ * {
2709
+ * accessToken: '<content_management_api_key>'
2710
+ * },
2711
+ * { type: 'plain' }
2712
+ * )
2713
+ * plainClient.getManyForUser({userId: 'TestUserId'})
2714
+ * .then(result => console.log(result.items))
2715
+ * .catch(console.error)
2716
+ * ```
2717
+ */
2718
+ var getManyForUser = function getManyForUser(http, params) {
2719
+ return _raw__WEBPACK_IMPORTED_MODULE_0__.get(http, "/users/".concat(params.userId, "/oauth_applications"), {
2720
+ params: params.query
2721
+ });
2722
+ };
2723
+
2724
+ /**
2725
+ * Creates a new OAuth application for current authenticated user.
2726
+ *
2727
+ * @param {AxiosInstance} http - Axios instance for making the HTTP request.
2728
+ * @param {Object} params - Parameters for the request.
2729
+ * @param {string} params.userId - The unique user ID of the user.
2730
+ * @param {RawAxiosRequestHeaders} [headers] - Optional HTTP headers for the request.
2731
+ * @returns {Promise<OAuthApplicationProps>} A Promise that resolves with the created oauth application.
2732
+ * @example ```javascript
2733
+ * const contentful = require('contentful-management')
2734
+ *
2735
+ * const plainClient = contentful.createClient(
2736
+ * {
2737
+ * accessToken: '<content_management_api_key>',
2738
+ * },
2739
+ * { type: 'plain' }
2740
+ * )
2741
+ * plainClient.create(
2742
+ * {userId: 'TestUserId'},
2743
+ * {name: 'Test-Name', description: 'Test-Desc', scopes: ['content_management_manage'], redirectUri: 'https://redirect.uri.com', confidential: true}
2744
+ * )
2745
+ * .then(oauthApplication => console.log(oauthApplication))
2746
+ * .catch(console.error)
2747
+ * ```
2748
+ */
2749
+ var create = function create(http, params, rawData, headers) {
2750
+ return _raw__WEBPACK_IMPORTED_MODULE_0__.post(http, "/users/".concat(params.userId, "/oauth_applications"), rawData, {
2751
+ headers: headers
2752
+ });
2753
+ };
2754
+
2755
+ /**
2756
+ * Updates details of a specific OAuth application.
2757
+ *
2758
+ * @param {AxiosInstance} http - The Axios HTTP client instance.
2759
+ * @param {Object} params - The parameters for updating oauth application.
2760
+ * @param {string} params.userId - The unique user ID of the user.
2761
+ * @param {string} params.oauthApplicationId - The unique application ID of the OAuth application.
2762
+ * @returns {Promise<OAuthApplicationProps>} A Promise that resolves with the updated oauth application.
2763
+ * @example ```javascript
2764
+ * const contentful = require('contentful-management')
2765
+ *
2766
+ * const plainClient = contentful.createClient(
2767
+ * {
2768
+ * accessToken: '<content_management_api_key>'
2769
+ * },
2770
+ * { type: 'plain' }
2771
+ * )
2772
+ * plainClient.update(
2773
+ * {userId: 'TestUserId', oauthApplicationId: 'TestOAuthAppId'},
2774
+ * {name: 'Test-Name', description: 'Test-Desc', scope: ['content_management_manage'], redirectUri: 'https://redirect.uri.com', confidential: true}
2775
+ * )
2776
+ * .then(oauthApplication => console.log(oauthApplication))
2777
+ * .catch(console.error)
2778
+ * ```
2779
+ */
2780
+ var update = function update(http, params, rawData, headers) {
2781
+ return _raw__WEBPACK_IMPORTED_MODULE_0__.put(http, "/users/".concat(params.userId, "/oauth_applications/").concat(params.oauthApplicationId), rawData, {
2782
+ headers: headers
2783
+ });
2784
+ };
2785
+
2786
+ /**
2787
+ * Deletes a specific OAuth application.
2788
+ *
2789
+ * @param {AxiosInstance} http - The Axios HTTP client instance.
2790
+ * @param {Object} params - The parameters for deleting oauth application.
2791
+ * @param {string} params.userId - The unique user ID of the user.
2792
+ * @param {string} params.oauthApplicationId - The unique application ID of the OAuth application.
2793
+ * @returns {Promise<void>}
2794
+ * @example ```javascript
2795
+ * const contentful = require('contentful-management')
2796
+ *
2797
+ * const plainClient = contentful.createClient(
2798
+ * {
2799
+ * accessToken: '<content_management_api_key>'
2800
+ * },
2801
+ * { type: 'plain' }
2802
+ * )
2803
+ * plainClient.del({userId: 'TestUserId', oauthApplicationId: 'TestOAuthAppId'}) })
2804
+ * .then(result => console.log(result.items))
2805
+ * .catch(console.error)
2806
+ * ```
2807
+ */
2808
+ var del = function del(http, params) {
2809
+ return _raw__WEBPACK_IMPORTED_MODULE_0__.del(http, "/users/".concat(params.userId, "/oauth_applications/").concat(params.oauthApplicationId));
2810
+ };
2811
+
2812
+ /***/ }),
2813
+
2650
2814
  /***/ "./adapters/REST/endpoints/organization-invitation.ts":
2651
2815
  /*!************************************************************!*\
2652
2816
  !*** ./adapters/REST/endpoints/organization-invitation.ts ***!
@@ -4526,6 +4690,66 @@ var getMany = function getMany(http, params, headers) {
4526
4690
 
4527
4691
  /***/ }),
4528
4692
 
4693
+ /***/ "./adapters/REST/make-request.ts":
4694
+ /*!***************************************!*\
4695
+ !*** ./adapters/REST/make-request.ts ***!
4696
+ \***************************************/
4697
+ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
4698
+
4699
+ "use strict";
4700
+ __webpack_require__.r(__webpack_exports__);
4701
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
4702
+ /* harmony export */ makeRequest: function() { return /* binding */ makeRequest; }
4703
+ /* harmony export */ });
4704
+ /* harmony import */ var _endpoints__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./endpoints */ "./adapters/REST/endpoints/index.ts");
4705
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
4706
+ function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return e; }; var t, e = {}, r = Object.prototype, n = r.hasOwnProperty, o = Object.defineProperty || function (t, e, r) { t[e] = r.value; }, i = "function" == typeof Symbol ? Symbol : {}, a = i.iterator || "@@iterator", c = i.asyncIterator || "@@asyncIterator", u = i.toStringTag || "@@toStringTag"; function define(t, e, r) { return Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }), t[e]; } try { define({}, ""); } catch (t) { define = function define(t, e, r) { return t[e] = r; }; } function wrap(t, e, r, n) { var i = e && e.prototype instanceof Generator ? e : Generator, a = Object.create(i.prototype), c = new Context(n || []); return o(a, "_invoke", { value: makeInvokeMethod(t, r, c) }), a; } function tryCatch(t, e, r) { try { return { type: "normal", arg: t.call(e, r) }; } catch (t) { return { type: "throw", arg: t }; } } e.wrap = wrap; var h = "suspendedStart", l = "suspendedYield", f = "executing", s = "completed", y = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var p = {}; define(p, a, function () { return this; }); var d = Object.getPrototypeOf, v = d && d(d(values([]))); v && v !== r && n.call(v, a) && (p = v); var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p); function defineIteratorMethods(t) { ["next", "throw", "return"].forEach(function (e) { define(t, e, function (t) { return this._invoke(e, t); }); }); } function AsyncIterator(t, e) { function invoke(r, o, i, a) { var c = tryCatch(t[r], t, o); if ("throw" !== c.type) { var u = c.arg, h = u.value; return h && "object" == _typeof(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) { invoke("next", t, i, a); }, function (t) { invoke("throw", t, i, a); }) : e.resolve(h).then(function (t) { u.value = t, i(u); }, function (t) { return invoke("throw", t, i, a); }); } a(c.arg); } var r; o(this, "_invoke", { value: function value(t, n) { function callInvokeWithMethodAndArg() { return new e(function (e, r) { invoke(t, n, e, r); }); } return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(e, r, n) { var o = h; return function (i, a) { if (o === f) throw Error("Generator is already running"); if (o === s) { if ("throw" === i) throw a; return { value: t, done: !0 }; } for (n.method = i, n.arg = a;;) { var c = n.delegate; if (c) { var u = maybeInvokeDelegate(c, n); if (u) { if (u === y) continue; return u; } } if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) { if (o === h) throw o = s, n.arg; n.dispatchException(n.arg); } else "return" === n.method && n.abrupt("return", n.arg); o = f; var p = tryCatch(e, r, n); if ("normal" === p.type) { if (o = n.done ? s : l, p.arg === y) continue; return { value: p.arg, done: n.done }; } "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg); } }; } function maybeInvokeDelegate(e, r) { var n = r.method, o = e.iterator[n]; if (o === t) return r.delegate = null, "throw" === n && e.iterator.return && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y; var i = tryCatch(o, e.iterator, r.arg); if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y; var a = i.arg; return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y); } function pushTryEntry(t) { var e = { tryLoc: t[0] }; 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e); } function resetTryEntry(t) { var e = t.completion || {}; e.type = "normal", delete e.arg, t.completion = e; } function Context(t) { this.tryEntries = [{ tryLoc: "root" }], t.forEach(pushTryEntry, this), this.reset(!0); } function values(e) { if (e || "" === e) { var r = e[a]; if (r) return r.call(e); if ("function" == typeof e.next) return e; if (!isNaN(e.length)) { var o = -1, i = function next() { for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next; return next.value = t, next.done = !0, next; }; return i.next = i; } } throw new TypeError(_typeof(e) + " is not iterable"); } return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), o(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) { var e = "function" == typeof t && t.constructor; return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name)); }, e.mark = function (t) { return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t; }, e.awrap = function (t) { return { __await: t }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () { return this; }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) { void 0 === i && (i = Promise); var a = new AsyncIterator(wrap(t, r, n, o), i); return e.isGeneratorFunction(r) ? a : a.next().then(function (t) { return t.done ? t.value : a.next(); }); }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () { return this; }), define(g, "toString", function () { return "[object Generator]"; }), e.keys = function (t) { var e = Object(t), r = []; for (var n in e) r.push(n); return r.reverse(), function next() { for (; r.length;) { var t = r.pop(); if (t in e) return next.value = t, next.done = !1, next; } return next.done = !0, next; }; }, e.values = values, Context.prototype = { constructor: Context, reset: function reset(e) { if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t); }, stop: function stop() { this.done = !0; var t = this.tryEntries[0].completion; if ("throw" === t.type) throw t.arg; return this.rval; }, dispatchException: function dispatchException(e) { if (this.done) throw e; var r = this; function handle(n, o) { return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o; } for (var o = this.tryEntries.length - 1; o >= 0; --o) { var i = this.tryEntries[o], a = i.completion; if ("root" === i.tryLoc) return handle("end"); if (i.tryLoc <= this.prev) { var c = n.call(i, "catchLoc"), u = n.call(i, "finallyLoc"); if (c && u) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } else if (c) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); } else { if (!u) throw Error("try statement without catch or finally"); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } } } }, abrupt: function abrupt(t, e) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var o = this.tryEntries[r]; if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) { var i = o; break; } } i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null); var a = i ? i.completion : {}; return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a); }, complete: function complete(t, e) { if ("throw" === t.type) throw t.arg; return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y; }, finish: function finish(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y; } }, catch: function _catch(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.tryLoc === t) { var n = r.completion; if ("throw" === n.type) { var o = n.arg; resetTryEntry(r); } return o; } } throw Error("illegal catch attempt"); }, delegateYield: function delegateYield(e, r, n) { return this.delegate = { iterator: values(e), resultName: r, nextLoc: n }, "next" === this.method && (this.arg = t), y; } }, e; }
4707
+ 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; }
4708
+ 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; }
4709
+ 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; }
4710
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
4711
+ 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); }
4712
+ function asyncGeneratorStep(n, t, e, r, o, a, c) { try { var i = n[a](c), u = i.value; } catch (n) { return void e(n); } i.done ? t(u) : Promise.resolve(u).then(r, o); }
4713
+ function _asyncToGenerator(n) { return function () { var t = this, e = arguments; return new Promise(function (r, o) { var a = n.apply(t, e); function _next(n) { asyncGeneratorStep(a, r, o, _next, _throw, "next", n); } function _throw(n) { asyncGeneratorStep(a, r, o, _next, _throw, "throw", n); } _next(void 0); }); }; }
4714
+
4715
+ var makeRequest = /*#__PURE__*/function () {
4716
+ var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(_ref) {
4717
+ var _endpoints$entityType;
4718
+ var axiosInstance, entityType, actionInput, params, payload, headers, userAgent, action, endpoint;
4719
+ return _regeneratorRuntime().wrap(function _callee$(_context) {
4720
+ while (1) switch (_context.prev = _context.next) {
4721
+ case 0:
4722
+ axiosInstance = _ref.axiosInstance, entityType = _ref.entityType, actionInput = _ref.action, params = _ref.params, payload = _ref.payload, headers = _ref.headers, userAgent = _ref.userAgent;
4723
+ // `delete` is a reserved keyword. Therefore, the methods are called `del`.
4724
+ action = actionInput === 'delete' ? 'del' : actionInput;
4725
+ endpoint = // eslint-disable-next-line @typescript-eslint/ban-ts-comment
4726
+ // @ts-ignore
4727
+ (_endpoints$entityType = _endpoints__WEBPACK_IMPORTED_MODULE_0__["default"][entityType]) === null || _endpoints$entityType === void 0 ? void 0 : _endpoints$entityType[action];
4728
+ if (!(endpoint === undefined)) {
4729
+ _context.next = 5;
4730
+ break;
4731
+ }
4732
+ throw new Error('Unknown endpoint');
4733
+ case 5:
4734
+ _context.next = 7;
4735
+ return endpoint(axiosInstance, params, payload, _objectSpread(_objectSpread({}, headers), userAgent ? {
4736
+ 'X-Contentful-User-Agent': userAgent
4737
+ } : {}));
4738
+ case 7:
4739
+ return _context.abrupt("return", _context.sent);
4740
+ case 8:
4741
+ case "end":
4742
+ return _context.stop();
4743
+ }
4744
+ }, _callee);
4745
+ }));
4746
+ return function makeRequest(_x) {
4747
+ return _ref2.apply(this, arguments);
4748
+ };
4749
+ }();
4750
+
4751
+ /***/ }),
4752
+
4529
4753
  /***/ "./adapters/REST/rest-adapter.ts":
4530
4754
  /*!***************************************!*\
4531
4755
  !*** ./adapters/REST/rest-adapter.ts ***!
@@ -4540,7 +4764,7 @@ __webpack_require__.r(__webpack_exports__);
4540
4764
  /* harmony import */ var axios__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! axios */ "../node_modules/axios/lib/axios.js");
4541
4765
  /* harmony import */ var contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! contentful-sdk-core */ "../node_modules/contentful-sdk-core/dist/index.js");
4542
4766
  /* harmony import */ var fast_copy__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! fast-copy */ "../node_modules/fast-copy/dist/esm/index.mjs");
4543
- /* harmony import */ var _endpoints__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./endpoints */ "./adapters/REST/endpoints/index.ts");
4767
+ /* harmony import */ var _make_request__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./make-request */ "./adapters/REST/make-request.ts");
4544
4768
  function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
4545
4769
  function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return e; }; var t, e = {}, r = Object.prototype, n = r.hasOwnProperty, o = Object.defineProperty || function (t, e, r) { t[e] = r.value; }, i = "function" == typeof Symbol ? Symbol : {}, a = i.iterator || "@@iterator", c = i.asyncIterator || "@@asyncIterator", u = i.toStringTag || "@@toStringTag"; function define(t, e, r) { return Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }), t[e]; } try { define({}, ""); } catch (t) { define = function define(t, e, r) { return t[e] = r; }; } function wrap(t, e, r, n) { var i = e && e.prototype instanceof Generator ? e : Generator, a = Object.create(i.prototype), c = new Context(n || []); return o(a, "_invoke", { value: makeInvokeMethod(t, r, c) }), a; } function tryCatch(t, e, r) { try { return { type: "normal", arg: t.call(e, r) }; } catch (t) { return { type: "throw", arg: t }; } } e.wrap = wrap; var h = "suspendedStart", l = "suspendedYield", f = "executing", s = "completed", y = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var p = {}; define(p, a, function () { return this; }); var d = Object.getPrototypeOf, v = d && d(d(values([]))); v && v !== r && n.call(v, a) && (p = v); var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p); function defineIteratorMethods(t) { ["next", "throw", "return"].forEach(function (e) { define(t, e, function (t) { return this._invoke(e, t); }); }); } function AsyncIterator(t, e) { function invoke(r, o, i, a) { var c = tryCatch(t[r], t, o); if ("throw" !== c.type) { var u = c.arg, h = u.value; return h && "object" == _typeof(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) { invoke("next", t, i, a); }, function (t) { invoke("throw", t, i, a); }) : e.resolve(h).then(function (t) { u.value = t, i(u); }, function (t) { return invoke("throw", t, i, a); }); } a(c.arg); } var r; o(this, "_invoke", { value: function value(t, n) { function callInvokeWithMethodAndArg() { return new e(function (e, r) { invoke(t, n, e, r); }); } return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(e, r, n) { var o = h; return function (i, a) { if (o === f) throw Error("Generator is already running"); if (o === s) { if ("throw" === i) throw a; return { value: t, done: !0 }; } for (n.method = i, n.arg = a;;) { var c = n.delegate; if (c) { var u = maybeInvokeDelegate(c, n); if (u) { if (u === y) continue; return u; } } if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) { if (o === h) throw o = s, n.arg; n.dispatchException(n.arg); } else "return" === n.method && n.abrupt("return", n.arg); o = f; var p = tryCatch(e, r, n); if ("normal" === p.type) { if (o = n.done ? s : l, p.arg === y) continue; return { value: p.arg, done: n.done }; } "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg); } }; } function maybeInvokeDelegate(e, r) { var n = r.method, o = e.iterator[n]; if (o === t) return r.delegate = null, "throw" === n && e.iterator.return && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y; var i = tryCatch(o, e.iterator, r.arg); if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y; var a = i.arg; return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y); } function pushTryEntry(t) { var e = { tryLoc: t[0] }; 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e); } function resetTryEntry(t) { var e = t.completion || {}; e.type = "normal", delete e.arg, t.completion = e; } function Context(t) { this.tryEntries = [{ tryLoc: "root" }], t.forEach(pushTryEntry, this), this.reset(!0); } function values(e) { if (e || "" === e) { var r = e[a]; if (r) return r.call(e); if ("function" == typeof e.next) return e; if (!isNaN(e.length)) { var o = -1, i = function next() { for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next; return next.value = t, next.done = !0, next; }; return i.next = i; } } throw new TypeError(_typeof(e) + " is not iterable"); } return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), o(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) { var e = "function" == typeof t && t.constructor; return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name)); }, e.mark = function (t) { return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t; }, e.awrap = function (t) { return { __await: t }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () { return this; }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) { void 0 === i && (i = Promise); var a = new AsyncIterator(wrap(t, r, n, o), i); return e.isGeneratorFunction(r) ? a : a.next().then(function (t) { return t.done ? t.value : a.next(); }); }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () { return this; }), define(g, "toString", function () { return "[object Generator]"; }), e.keys = function (t) { var e = Object(t), r = []; for (var n in e) r.push(n); return r.reverse(), function next() { for (; r.length;) { var t = r.pop(); if (t in e) return next.value = t, next.done = !1, next; } return next.done = !0, next; }; }, e.values = values, Context.prototype = { constructor: Context, reset: function reset(e) { if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t); }, stop: function stop() { this.done = !0; var t = this.tryEntries[0].completion; if ("throw" === t.type) throw t.arg; return this.rval; }, dispatchException: function dispatchException(e) { if (this.done) throw e; var r = this; function handle(n, o) { return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o; } for (var o = this.tryEntries.length - 1; o >= 0; --o) { var i = this.tryEntries[o], a = i.completion; if ("root" === i.tryLoc) return handle("end"); if (i.tryLoc <= this.prev) { var c = n.call(i, "catchLoc"), u = n.call(i, "finallyLoc"); if (c && u) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } else if (c) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); } else { if (!u) throw Error("try statement without catch or finally"); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } } } }, abrupt: function abrupt(t, e) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var o = this.tryEntries[r]; if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) { var i = o; break; } } i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null); var a = i ? i.completion : {}; return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a); }, complete: function complete(t, e) { if ("throw" === t.type) throw t.arg; return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y; }, finish: function finish(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y; } }, catch: function _catch(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.tryLoc === t) { var n = r.completion; if ("throw" === n.type) { var o = n.arg; resetTryEntry(r); } return o; } } throw Error("illegal catch attempt"); }, delegateYield: function delegateYield(e, r, n) { return this.delegate = { iterator: values(e), resultName: r, nextLoc: n }, "next" === this.method && (this.arg = t), y; } }, e; }
4546
4770
  function asyncGeneratorStep(n, t, e, r, o, a, c) { try { var i = n[a](c), u = i.value; } catch (n) { return void e(n); } i.done ? t(u) : Promise.resolve(u).then(r, o); }
@@ -4588,38 +4812,21 @@ var RestAdapter = /*#__PURE__*/function () {
4588
4812
  return _createClass(RestAdapter, [{
4589
4813
  key: "makeRequest",
4590
4814
  value: function () {
4591
- var _makeRequest = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(_ref) {
4592
- var _endpoints$entityType;
4593
- var entityType, actionInput, params, payload, headers, userAgent, action, endpoint;
4815
+ var _makeRequest2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(opts) {
4594
4816
  return _regeneratorRuntime().wrap(function _callee$(_context) {
4595
4817
  while (1) switch (_context.prev = _context.next) {
4596
4818
  case 0:
4597
- entityType = _ref.entityType, actionInput = _ref.action, params = _ref.params, payload = _ref.payload, headers = _ref.headers, userAgent = _ref.userAgent;
4598
- // `delete` is a reserved keyword. Therefore, the methods are called `del`.
4599
- action = actionInput === 'delete' ? 'del' : actionInput;
4600
- endpoint = // eslint-disable-next-line @typescript-eslint/ban-ts-comment
4601
- // @ts-ignore
4602
- (_endpoints$entityType = _endpoints__WEBPACK_IMPORTED_MODULE_2__["default"][entityType]) === null || _endpoints$entityType === void 0 ? void 0 : _endpoints$entityType[action];
4603
- if (!(endpoint === undefined)) {
4604
- _context.next = 5;
4605
- break;
4606
- }
4607
- throw new Error('Unknown endpoint');
4608
- case 5:
4609
- _context.next = 7;
4610
- return endpoint(this.axiosInstance, params, payload, _objectSpread(_objectSpread({}, headers), userAgent ? {
4611
- 'X-Contentful-User-Agent': userAgent
4612
- } : {}));
4613
- case 7:
4614
- return _context.abrupt("return", _context.sent);
4615
- case 8:
4819
+ return _context.abrupt("return", (0,_make_request__WEBPACK_IMPORTED_MODULE_2__.makeRequest)(_objectSpread(_objectSpread({}, opts), {}, {
4820
+ axiosInstance: this.axiosInstance
4821
+ })));
4822
+ case 1:
4616
4823
  case "end":
4617
4824
  return _context.stop();
4618
4825
  }
4619
4826
  }, _callee, this);
4620
4827
  }));
4621
4828
  function makeRequest(_x) {
4622
- return _makeRequest.apply(this, arguments);
4829
+ return _makeRequest2.apply(this, arguments);
4623
4830
  }
4624
4831
  return makeRequest;
4625
4832
  }()
@@ -5602,6 +5809,9 @@ function createClientApi(makeRequest) {
5602
5809
  var _entities$environment = _entities__WEBPACK_IMPORTED_MODULE_1__["default"].environmentTemplate,
5603
5810
  wrapEnvironmentTemplate = _entities$environment.wrapEnvironmentTemplate,
5604
5811
  wrapEnvironmentTemplateCollection = _entities$environment.wrapEnvironmentTemplateCollection;
5812
+ var _entities$oauthApplic = _entities__WEBPACK_IMPORTED_MODULE_1__["default"].oauthApplication,
5813
+ wrapOAuthApplication = _entities$oauthApplic.wrapOAuthApplication,
5814
+ wrapOAuthApplicationCollection = _entities$oauthApplic.wrapOAuthApplicationCollection;
5605
5815
  return {
5606
5816
  /**
5607
5817
  * Gets all environment templates for a given organization with the lasted version
@@ -5873,6 +6083,89 @@ function createClientApi(makeRequest) {
5873
6083
  return wrapUser(makeRequest, data);
5874
6084
  });
5875
6085
  },
6086
+ /**
6087
+ *
6088
+ * @param params
6089
+ * @returns Promise of a OAuthApplication
6090
+ * @example ```javascript
6091
+ * const contentful = require('contentful-management')
6092
+ *
6093
+ * const client = contentful.createClient({
6094
+ * accessToken: '<content_management_api_key>'
6095
+ * })
6096
+ *
6097
+ * client.getOAuthApplication({
6098
+ * userId: '<user_id>'
6099
+ * oauthApplicationId: '<oauth_application_id>'
6100
+ * }).then(oauthApplication => console.log(oauthApplication))
6101
+ * .catch(console.error)
6102
+ */
6103
+ getOAuthApplication: function getOAuthApplication(params) {
6104
+ var userId = params.userId;
6105
+ return makeRequest({
6106
+ entityType: 'OAuthApplication',
6107
+ action: 'get',
6108
+ params: params
6109
+ }).then(function (data) {
6110
+ return wrapOAuthApplication(makeRequest, data, userId);
6111
+ });
6112
+ },
6113
+ /**
6114
+ *
6115
+ * @param params
6116
+ * @returns Promise of list of user's OAuthApplications
6117
+ * @example ```javascript
6118
+ * const contentful = require('contentful-management')
6119
+ *
6120
+ * const client = contentful.createClient({
6121
+ * accessToken: '<content_management_api_key>'
6122
+ * })
6123
+ *
6124
+ * client.getOAuthApplications({
6125
+ * userId: '<user_id>'}).then(oauthApplications => console.log(oauthApplications))
6126
+ * .catch(console.error)
6127
+ */
6128
+ getOAuthApplications: function getOAuthApplications(params) {
6129
+ var userId = params.userId;
6130
+ return makeRequest({
6131
+ entityType: 'OAuthApplication',
6132
+ action: 'getManyForUser',
6133
+ params: params
6134
+ }).then(function (data) {
6135
+ return wrapOAuthApplicationCollection(makeRequest, data, userId);
6136
+ });
6137
+ },
6138
+ /**
6139
+ *
6140
+ * @param params
6141
+ * @returns Promise of a new OAuth application.
6142
+ * @example ```javascript
6143
+ * const contentful = require('contentful-management')
6144
+ *
6145
+ * const client = contentful.createClient({
6146
+ * accessToken: '<content_management_api_key>'
6147
+ * })
6148
+ *
6149
+ * client.createOAuthApplication({
6150
+ * userId: '<user_id>'},
6151
+ * { name: '<name>',
6152
+ * description: '<description>',
6153
+ * scopes: ['scope'],
6154
+ * redirectUri: '<redirectUri>',
6155
+ * confidential: '<true/false>'}).then(oauthApplications => console.log(oauthApplications))
6156
+ * .catch(console.error)
6157
+ */
6158
+ createOAuthApplication: function createOAuthApplication(params, rawData) {
6159
+ var userId = params.userId;
6160
+ return makeRequest({
6161
+ entityType: 'OAuthApplication',
6162
+ action: 'create',
6163
+ params: params,
6164
+ payload: rawData
6165
+ }).then(function (data) {
6166
+ return wrapOAuthApplication(makeRequest, data, userId);
6167
+ });
6168
+ },
5876
6169
  /**
5877
6170
  * Gets App Definition
5878
6171
  * @return Promise for App Definition
@@ -14991,37 +15284,39 @@ __webpack_require__.r(__webpack_exports__);
14991
15284
  /* harmony import */ var _function__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! ./function */ "./entities/function.ts");
14992
15285
  /* harmony import */ var _function_log__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! ./function-log */ "./entities/function-log.ts");
14993
15286
  /* harmony import */ var _locale__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! ./locale */ "./entities/locale.ts");
14994
- /* harmony import */ var _organization__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(/*! ./organization */ "./entities/organization.ts");
14995
- /* harmony import */ var _organization_invitation__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(/*! ./organization-invitation */ "./entities/organization-invitation.ts");
14996
- /* harmony import */ var _organization_membership__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(/*! ./organization-membership */ "./entities/organization-membership.ts");
14997
- /* harmony import */ var _personal_access_token__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(/*! ./personal-access-token */ "./entities/personal-access-token.ts");
14998
- /* harmony import */ var _access_token__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(/*! ./access-token */ "./entities/access-token.ts");
14999
- /* harmony import */ var _preview_api_key__WEBPACK_IMPORTED_MODULE_33__ = __webpack_require__(/*! ./preview-api-key */ "./entities/preview-api-key.ts");
15000
- /* harmony import */ var _release__WEBPACK_IMPORTED_MODULE_34__ = __webpack_require__(/*! ./release */ "./entities/release.ts");
15001
- /* harmony import */ var _release_action__WEBPACK_IMPORTED_MODULE_35__ = __webpack_require__(/*! ./release-action */ "./entities/release-action.ts");
15002
- /* harmony import */ var _role__WEBPACK_IMPORTED_MODULE_36__ = __webpack_require__(/*! ./role */ "./entities/role.ts");
15003
- /* harmony import */ var _scheduled_action__WEBPACK_IMPORTED_MODULE_37__ = __webpack_require__(/*! ./scheduled-action */ "./entities/scheduled-action.ts");
15004
- /* harmony import */ var _snapshot__WEBPACK_IMPORTED_MODULE_38__ = __webpack_require__(/*! ./snapshot */ "./entities/snapshot.ts");
15005
- /* harmony import */ var _space__WEBPACK_IMPORTED_MODULE_39__ = __webpack_require__(/*! ./space */ "./entities/space.ts");
15006
- /* harmony import */ var _space_member__WEBPACK_IMPORTED_MODULE_40__ = __webpack_require__(/*! ./space-member */ "./entities/space-member.ts");
15007
- /* harmony import */ var _space_membership__WEBPACK_IMPORTED_MODULE_41__ = __webpack_require__(/*! ./space-membership */ "./entities/space-membership.ts");
15008
- /* harmony import */ var _tag__WEBPACK_IMPORTED_MODULE_42__ = __webpack_require__(/*! ./tag */ "./entities/tag.ts");
15009
- /* harmony import */ var _task__WEBPACK_IMPORTED_MODULE_43__ = __webpack_require__(/*! ./task */ "./entities/task.ts");
15010
- /* harmony import */ var _team__WEBPACK_IMPORTED_MODULE_44__ = __webpack_require__(/*! ./team */ "./entities/team.ts");
15011
- /* harmony import */ var _team_membership__WEBPACK_IMPORTED_MODULE_45__ = __webpack_require__(/*! ./team-membership */ "./entities/team-membership.ts");
15012
- /* harmony import */ var _team_space_membership__WEBPACK_IMPORTED_MODULE_46__ = __webpack_require__(/*! ./team-space-membership */ "./entities/team-space-membership.ts");
15013
- /* harmony import */ var _ui_config__WEBPACK_IMPORTED_MODULE_47__ = __webpack_require__(/*! ./ui-config */ "./entities/ui-config.ts");
15014
- /* harmony import */ var _upload__WEBPACK_IMPORTED_MODULE_48__ = __webpack_require__(/*! ./upload */ "./entities/upload.ts");
15015
- /* harmony import */ var _usage__WEBPACK_IMPORTED_MODULE_49__ = __webpack_require__(/*! ./usage */ "./entities/usage.ts");
15016
- /* harmony import */ var _user__WEBPACK_IMPORTED_MODULE_50__ = __webpack_require__(/*! ./user */ "./entities/user.ts");
15017
- /* harmony import */ var _user_ui_config__WEBPACK_IMPORTED_MODULE_51__ = __webpack_require__(/*! ./user-ui-config */ "./entities/user-ui-config.ts");
15018
- /* harmony import */ var _webhook__WEBPACK_IMPORTED_MODULE_52__ = __webpack_require__(/*! ./webhook */ "./entities/webhook.ts");
15019
- /* harmony import */ var _workflow_definition__WEBPACK_IMPORTED_MODULE_53__ = __webpack_require__(/*! ./workflow-definition */ "./entities/workflow-definition.ts");
15020
- /* harmony import */ var _concept__WEBPACK_IMPORTED_MODULE_54__ = __webpack_require__(/*! ./concept */ "./entities/concept.ts");
15021
- /* harmony import */ var _concept_scheme__WEBPACK_IMPORTED_MODULE_55__ = __webpack_require__(/*! ./concept-scheme */ "./entities/concept-scheme.ts");
15022
- /* harmony import */ var _resource_provider__WEBPACK_IMPORTED_MODULE_56__ = __webpack_require__(/*! ./resource-provider */ "./entities/resource-provider.ts");
15023
- /* harmony import */ var _resource_type__WEBPACK_IMPORTED_MODULE_57__ = __webpack_require__(/*! ./resource-type */ "./entities/resource-type.ts");
15024
- /* harmony import */ var _resource__WEBPACK_IMPORTED_MODULE_58__ = __webpack_require__(/*! ./resource */ "./entities/resource.ts");
15287
+ /* harmony import */ var _oauth_application__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(/*! ./oauth-application */ "./entities/oauth-application.ts");
15288
+ /* harmony import */ var _organization__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(/*! ./organization */ "./entities/organization.ts");
15289
+ /* harmony import */ var _organization_invitation__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(/*! ./organization-invitation */ "./entities/organization-invitation.ts");
15290
+ /* harmony import */ var _organization_membership__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(/*! ./organization-membership */ "./entities/organization-membership.ts");
15291
+ /* harmony import */ var _personal_access_token__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(/*! ./personal-access-token */ "./entities/personal-access-token.ts");
15292
+ /* harmony import */ var _access_token__WEBPACK_IMPORTED_MODULE_33__ = __webpack_require__(/*! ./access-token */ "./entities/access-token.ts");
15293
+ /* harmony import */ var _preview_api_key__WEBPACK_IMPORTED_MODULE_34__ = __webpack_require__(/*! ./preview-api-key */ "./entities/preview-api-key.ts");
15294
+ /* harmony import */ var _release__WEBPACK_IMPORTED_MODULE_35__ = __webpack_require__(/*! ./release */ "./entities/release.ts");
15295
+ /* harmony import */ var _release_action__WEBPACK_IMPORTED_MODULE_36__ = __webpack_require__(/*! ./release-action */ "./entities/release-action.ts");
15296
+ /* harmony import */ var _role__WEBPACK_IMPORTED_MODULE_37__ = __webpack_require__(/*! ./role */ "./entities/role.ts");
15297
+ /* harmony import */ var _scheduled_action__WEBPACK_IMPORTED_MODULE_38__ = __webpack_require__(/*! ./scheduled-action */ "./entities/scheduled-action.ts");
15298
+ /* harmony import */ var _snapshot__WEBPACK_IMPORTED_MODULE_39__ = __webpack_require__(/*! ./snapshot */ "./entities/snapshot.ts");
15299
+ /* harmony import */ var _space__WEBPACK_IMPORTED_MODULE_40__ = __webpack_require__(/*! ./space */ "./entities/space.ts");
15300
+ /* harmony import */ var _space_member__WEBPACK_IMPORTED_MODULE_41__ = __webpack_require__(/*! ./space-member */ "./entities/space-member.ts");
15301
+ /* harmony import */ var _space_membership__WEBPACK_IMPORTED_MODULE_42__ = __webpack_require__(/*! ./space-membership */ "./entities/space-membership.ts");
15302
+ /* harmony import */ var _tag__WEBPACK_IMPORTED_MODULE_43__ = __webpack_require__(/*! ./tag */ "./entities/tag.ts");
15303
+ /* harmony import */ var _task__WEBPACK_IMPORTED_MODULE_44__ = __webpack_require__(/*! ./task */ "./entities/task.ts");
15304
+ /* harmony import */ var _team__WEBPACK_IMPORTED_MODULE_45__ = __webpack_require__(/*! ./team */ "./entities/team.ts");
15305
+ /* harmony import */ var _team_membership__WEBPACK_IMPORTED_MODULE_46__ = __webpack_require__(/*! ./team-membership */ "./entities/team-membership.ts");
15306
+ /* harmony import */ var _team_space_membership__WEBPACK_IMPORTED_MODULE_47__ = __webpack_require__(/*! ./team-space-membership */ "./entities/team-space-membership.ts");
15307
+ /* harmony import */ var _ui_config__WEBPACK_IMPORTED_MODULE_48__ = __webpack_require__(/*! ./ui-config */ "./entities/ui-config.ts");
15308
+ /* harmony import */ var _upload__WEBPACK_IMPORTED_MODULE_49__ = __webpack_require__(/*! ./upload */ "./entities/upload.ts");
15309
+ /* harmony import */ var _usage__WEBPACK_IMPORTED_MODULE_50__ = __webpack_require__(/*! ./usage */ "./entities/usage.ts");
15310
+ /* harmony import */ var _user__WEBPACK_IMPORTED_MODULE_51__ = __webpack_require__(/*! ./user */ "./entities/user.ts");
15311
+ /* harmony import */ var _user_ui_config__WEBPACK_IMPORTED_MODULE_52__ = __webpack_require__(/*! ./user-ui-config */ "./entities/user-ui-config.ts");
15312
+ /* harmony import */ var _webhook__WEBPACK_IMPORTED_MODULE_53__ = __webpack_require__(/*! ./webhook */ "./entities/webhook.ts");
15313
+ /* harmony import */ var _workflow_definition__WEBPACK_IMPORTED_MODULE_54__ = __webpack_require__(/*! ./workflow-definition */ "./entities/workflow-definition.ts");
15314
+ /* harmony import */ var _concept__WEBPACK_IMPORTED_MODULE_55__ = __webpack_require__(/*! ./concept */ "./entities/concept.ts");
15315
+ /* harmony import */ var _concept_scheme__WEBPACK_IMPORTED_MODULE_56__ = __webpack_require__(/*! ./concept-scheme */ "./entities/concept-scheme.ts");
15316
+ /* harmony import */ var _resource_provider__WEBPACK_IMPORTED_MODULE_57__ = __webpack_require__(/*! ./resource-provider */ "./entities/resource-provider.ts");
15317
+ /* harmony import */ var _resource_type__WEBPACK_IMPORTED_MODULE_58__ = __webpack_require__(/*! ./resource-type */ "./entities/resource-type.ts");
15318
+ /* harmony import */ var _resource__WEBPACK_IMPORTED_MODULE_59__ = __webpack_require__(/*! ./resource */ "./entities/resource.ts");
15319
+
15025
15320
 
15026
15321
 
15027
15322
 
@@ -15082,7 +15377,7 @@ __webpack_require__.r(__webpack_exports__);
15082
15377
 
15083
15378
 
15084
15379
  /* harmony default export */ __webpack_exports__["default"] = ({
15085
- accessToken: _access_token__WEBPACK_IMPORTED_MODULE_32__,
15380
+ accessToken: _access_token__WEBPACK_IMPORTED_MODULE_33__,
15086
15381
  appAction: _app_action__WEBPACK_IMPORTED_MODULE_1__,
15087
15382
  appActionCall: _app_action_call__WEBPACK_IMPORTED_MODULE_2__,
15088
15383
  appBundle: _app_bundle__WEBPACK_IMPORTED_MODULE_3__,
@@ -15100,8 +15395,8 @@ __webpack_require__.r(__webpack_exports__);
15100
15395
  assetKey: _asset_key__WEBPACK_IMPORTED_MODULE_14__,
15101
15396
  bulkAction: _bulk_action__WEBPACK_IMPORTED_MODULE_15__,
15102
15397
  comment: _comment__WEBPACK_IMPORTED_MODULE_16__,
15103
- concept: _concept__WEBPACK_IMPORTED_MODULE_54__,
15104
- conceptScheme: _concept_scheme__WEBPACK_IMPORTED_MODULE_55__,
15398
+ concept: _concept__WEBPACK_IMPORTED_MODULE_55__,
15399
+ conceptScheme: _concept_scheme__WEBPACK_IMPORTED_MODULE_56__,
15105
15400
  contentType: _content_type__WEBPACK_IMPORTED_MODULE_17__,
15106
15401
  editorInterface: _editor_interface__WEBPACK_IMPORTED_MODULE_18__,
15107
15402
  entry: _entry__WEBPACK_IMPORTED_MODULE_19__,
@@ -15113,34 +15408,35 @@ __webpack_require__.r(__webpack_exports__);
15113
15408
  func: _function__WEBPACK_IMPORTED_MODULE_25__,
15114
15409
  functionLog: _function_log__WEBPACK_IMPORTED_MODULE_26__,
15115
15410
  locale: _locale__WEBPACK_IMPORTED_MODULE_27__,
15116
- organization: _organization__WEBPACK_IMPORTED_MODULE_28__,
15117
- organizationInvitation: _organization_invitation__WEBPACK_IMPORTED_MODULE_29__,
15118
- organizationMembership: _organization_membership__WEBPACK_IMPORTED_MODULE_30__,
15119
- personalAccessToken: _personal_access_token__WEBPACK_IMPORTED_MODULE_31__,
15120
- previewApiKey: _preview_api_key__WEBPACK_IMPORTED_MODULE_33__,
15121
- release: _release__WEBPACK_IMPORTED_MODULE_34__,
15122
- releaseAction: _release_action__WEBPACK_IMPORTED_MODULE_35__,
15123
- resourceProvider: _resource_provider__WEBPACK_IMPORTED_MODULE_56__,
15124
- resourceType: _resource_type__WEBPACK_IMPORTED_MODULE_57__,
15125
- resource: _resource__WEBPACK_IMPORTED_MODULE_58__,
15126
- role: _role__WEBPACK_IMPORTED_MODULE_36__,
15127
- scheduledAction: _scheduled_action__WEBPACK_IMPORTED_MODULE_37__,
15128
- snapshot: _snapshot__WEBPACK_IMPORTED_MODULE_38__,
15129
- space: _space__WEBPACK_IMPORTED_MODULE_39__,
15130
- spaceMember: _space_member__WEBPACK_IMPORTED_MODULE_40__,
15131
- spaceMembership: _space_membership__WEBPACK_IMPORTED_MODULE_41__,
15132
- tag: _tag__WEBPACK_IMPORTED_MODULE_42__,
15133
- task: _task__WEBPACK_IMPORTED_MODULE_43__,
15134
- team: _team__WEBPACK_IMPORTED_MODULE_44__,
15135
- teamMembership: _team_membership__WEBPACK_IMPORTED_MODULE_45__,
15136
- teamSpaceMembership: _team_space_membership__WEBPACK_IMPORTED_MODULE_46__,
15137
- uiConfig: _ui_config__WEBPACK_IMPORTED_MODULE_47__,
15138
- upload: _upload__WEBPACK_IMPORTED_MODULE_48__,
15139
- usage: _usage__WEBPACK_IMPORTED_MODULE_49__,
15140
- user: _user__WEBPACK_IMPORTED_MODULE_50__,
15141
- userUIConfig: _user_ui_config__WEBPACK_IMPORTED_MODULE_51__,
15142
- webhook: _webhook__WEBPACK_IMPORTED_MODULE_52__,
15143
- workflowDefinition: _workflow_definition__WEBPACK_IMPORTED_MODULE_53__
15411
+ oauthApplication: _oauth_application__WEBPACK_IMPORTED_MODULE_28__,
15412
+ organization: _organization__WEBPACK_IMPORTED_MODULE_29__,
15413
+ organizationInvitation: _organization_invitation__WEBPACK_IMPORTED_MODULE_30__,
15414
+ organizationMembership: _organization_membership__WEBPACK_IMPORTED_MODULE_31__,
15415
+ personalAccessToken: _personal_access_token__WEBPACK_IMPORTED_MODULE_32__,
15416
+ previewApiKey: _preview_api_key__WEBPACK_IMPORTED_MODULE_34__,
15417
+ release: _release__WEBPACK_IMPORTED_MODULE_35__,
15418
+ releaseAction: _release_action__WEBPACK_IMPORTED_MODULE_36__,
15419
+ resourceProvider: _resource_provider__WEBPACK_IMPORTED_MODULE_57__,
15420
+ resourceType: _resource_type__WEBPACK_IMPORTED_MODULE_58__,
15421
+ resource: _resource__WEBPACK_IMPORTED_MODULE_59__,
15422
+ role: _role__WEBPACK_IMPORTED_MODULE_37__,
15423
+ scheduledAction: _scheduled_action__WEBPACK_IMPORTED_MODULE_38__,
15424
+ snapshot: _snapshot__WEBPACK_IMPORTED_MODULE_39__,
15425
+ space: _space__WEBPACK_IMPORTED_MODULE_40__,
15426
+ spaceMember: _space_member__WEBPACK_IMPORTED_MODULE_41__,
15427
+ spaceMembership: _space_membership__WEBPACK_IMPORTED_MODULE_42__,
15428
+ tag: _tag__WEBPACK_IMPORTED_MODULE_43__,
15429
+ task: _task__WEBPACK_IMPORTED_MODULE_44__,
15430
+ team: _team__WEBPACK_IMPORTED_MODULE_45__,
15431
+ teamMembership: _team_membership__WEBPACK_IMPORTED_MODULE_46__,
15432
+ teamSpaceMembership: _team_space_membership__WEBPACK_IMPORTED_MODULE_47__,
15433
+ uiConfig: _ui_config__WEBPACK_IMPORTED_MODULE_48__,
15434
+ upload: _upload__WEBPACK_IMPORTED_MODULE_49__,
15435
+ usage: _usage__WEBPACK_IMPORTED_MODULE_50__,
15436
+ user: _user__WEBPACK_IMPORTED_MODULE_51__,
15437
+ userUIConfig: _user_ui_config__WEBPACK_IMPORTED_MODULE_52__,
15438
+ webhook: _webhook__WEBPACK_IMPORTED_MODULE_53__,
15439
+ workflowDefinition: _workflow_definition__WEBPACK_IMPORTED_MODULE_54__
15144
15440
  });
15145
15441
 
15146
15442
  /***/ }),
@@ -15221,6 +15517,118 @@ var wrapLocaleCollection = (0,_common_utils__WEBPACK_IMPORTED_MODULE_3__.wrapCol
15221
15517
 
15222
15518
  /***/ }),
15223
15519
 
15520
+ /***/ "./entities/oauth-application.ts":
15521
+ /*!***************************************!*\
15522
+ !*** ./entities/oauth-application.ts ***!
15523
+ \***************************************/
15524
+ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
15525
+
15526
+ "use strict";
15527
+ __webpack_require__.r(__webpack_exports__);
15528
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
15529
+ /* harmony export */ ScopeValues: function() { return /* binding */ ScopeValues; },
15530
+ /* harmony export */ wrapOAuthApplication: function() { return /* binding */ wrapOAuthApplication; },
15531
+ /* harmony export */ wrapOAuthApplicationCollection: function() { return /* binding */ wrapOAuthApplicationCollection; }
15532
+ /* harmony export */ });
15533
+ /* harmony import */ var contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! contentful-sdk-core */ "../node_modules/contentful-sdk-core/dist/index.js");
15534
+ /* harmony import */ var _enhance_with_methods__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../enhance-with-methods */ "./enhance-with-methods.ts");
15535
+ /* harmony import */ var fast_copy__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! fast-copy */ "../node_modules/fast-copy/dist/esm/index.mjs");
15536
+ /* harmony import */ var _common_utils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../common-utils */ "./common-utils.ts");
15537
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
15538
+ function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return e; }; var t, e = {}, r = Object.prototype, n = r.hasOwnProperty, o = Object.defineProperty || function (t, e, r) { t[e] = r.value; }, i = "function" == typeof Symbol ? Symbol : {}, a = i.iterator || "@@iterator", c = i.asyncIterator || "@@asyncIterator", u = i.toStringTag || "@@toStringTag"; function define(t, e, r) { return Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }), t[e]; } try { define({}, ""); } catch (t) { define = function define(t, e, r) { return t[e] = r; }; } function wrap(t, e, r, n) { var i = e && e.prototype instanceof Generator ? e : Generator, a = Object.create(i.prototype), c = new Context(n || []); return o(a, "_invoke", { value: makeInvokeMethod(t, r, c) }), a; } function tryCatch(t, e, r) { try { return { type: "normal", arg: t.call(e, r) }; } catch (t) { return { type: "throw", arg: t }; } } e.wrap = wrap; var h = "suspendedStart", l = "suspendedYield", f = "executing", s = "completed", y = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var p = {}; define(p, a, function () { return this; }); var d = Object.getPrototypeOf, v = d && d(d(values([]))); v && v !== r && n.call(v, a) && (p = v); var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p); function defineIteratorMethods(t) { ["next", "throw", "return"].forEach(function (e) { define(t, e, function (t) { return this._invoke(e, t); }); }); } function AsyncIterator(t, e) { function invoke(r, o, i, a) { var c = tryCatch(t[r], t, o); if ("throw" !== c.type) { var u = c.arg, h = u.value; return h && "object" == _typeof(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) { invoke("next", t, i, a); }, function (t) { invoke("throw", t, i, a); }) : e.resolve(h).then(function (t) { u.value = t, i(u); }, function (t) { return invoke("throw", t, i, a); }); } a(c.arg); } var r; o(this, "_invoke", { value: function value(t, n) { function callInvokeWithMethodAndArg() { return new e(function (e, r) { invoke(t, n, e, r); }); } return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(e, r, n) { var o = h; return function (i, a) { if (o === f) throw Error("Generator is already running"); if (o === s) { if ("throw" === i) throw a; return { value: t, done: !0 }; } for (n.method = i, n.arg = a;;) { var c = n.delegate; if (c) { var u = maybeInvokeDelegate(c, n); if (u) { if (u === y) continue; return u; } } if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) { if (o === h) throw o = s, n.arg; n.dispatchException(n.arg); } else "return" === n.method && n.abrupt("return", n.arg); o = f; var p = tryCatch(e, r, n); if ("normal" === p.type) { if (o = n.done ? s : l, p.arg === y) continue; return { value: p.arg, done: n.done }; } "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg); } }; } function maybeInvokeDelegate(e, r) { var n = r.method, o = e.iterator[n]; if (o === t) return r.delegate = null, "throw" === n && e.iterator.return && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y; var i = tryCatch(o, e.iterator, r.arg); if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y; var a = i.arg; return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y); } function pushTryEntry(t) { var e = { tryLoc: t[0] }; 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e); } function resetTryEntry(t) { var e = t.completion || {}; e.type = "normal", delete e.arg, t.completion = e; } function Context(t) { this.tryEntries = [{ tryLoc: "root" }], t.forEach(pushTryEntry, this), this.reset(!0); } function values(e) { if (e || "" === e) { var r = e[a]; if (r) return r.call(e); if ("function" == typeof e.next) return e; if (!isNaN(e.length)) { var o = -1, i = function next() { for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next; return next.value = t, next.done = !0, next; }; return i.next = i; } } throw new TypeError(_typeof(e) + " is not iterable"); } return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), o(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) { var e = "function" == typeof t && t.constructor; return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name)); }, e.mark = function (t) { return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t; }, e.awrap = function (t) { return { __await: t }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () { return this; }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) { void 0 === i && (i = Promise); var a = new AsyncIterator(wrap(t, r, n, o), i); return e.isGeneratorFunction(r) ? a : a.next().then(function (t) { return t.done ? t.value : a.next(); }); }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () { return this; }), define(g, "toString", function () { return "[object Generator]"; }), e.keys = function (t) { var e = Object(t), r = []; for (var n in e) r.push(n); return r.reverse(), function next() { for (; r.length;) { var t = r.pop(); if (t in e) return next.value = t, next.done = !1, next; } return next.done = !0, next; }; }, e.values = values, Context.prototype = { constructor: Context, reset: function reset(e) { if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t); }, stop: function stop() { this.done = !0; var t = this.tryEntries[0].completion; if ("throw" === t.type) throw t.arg; return this.rval; }, dispatchException: function dispatchException(e) { if (this.done) throw e; var r = this; function handle(n, o) { return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o; } for (var o = this.tryEntries.length - 1; o >= 0; --o) { var i = this.tryEntries[o], a = i.completion; if ("root" === i.tryLoc) return handle("end"); if (i.tryLoc <= this.prev) { var c = n.call(i, "catchLoc"), u = n.call(i, "finallyLoc"); if (c && u) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } else if (c) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); } else { if (!u) throw Error("try statement without catch or finally"); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } } } }, abrupt: function abrupt(t, e) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var o = this.tryEntries[r]; if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) { var i = o; break; } } i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null); var a = i ? i.completion : {}; return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a); }, complete: function complete(t, e) { if ("throw" === t.type) throw t.arg; return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y; }, finish: function finish(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y; } }, catch: function _catch(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.tryLoc === t) { var n = r.completion; if ("throw" === n.type) { var o = n.arg; resetTryEntry(r); } return o; } } throw Error("illegal catch attempt"); }, delegateYield: function delegateYield(e, r, n) { return this.delegate = { iterator: values(e), resultName: r, nextLoc: n }, "next" === this.method && (this.arg = t), y; } }, e; }
15539
+ function asyncGeneratorStep(n, t, e, r, o, a, c) { try { var i = n[a](c), u = i.value; } catch (n) { return void e(n); } i.done ? t(u) : Promise.resolve(u).then(r, o); }
15540
+ function _asyncToGenerator(n) { return function () { var t = this, e = arguments; return new Promise(function (r, o) { var a = n.apply(t, e); function _next(n) { asyncGeneratorStep(a, r, o, _next, _throw, "next", n); } function _throw(n) { asyncGeneratorStep(a, r, o, _next, _throw, "throw", n); } _next(void 0); }); }; }
15541
+
15542
+
15543
+
15544
+
15545
+ var ScopeValues = /*#__PURE__*/function (ScopeValues) {
15546
+ ScopeValues["Read"] = "content_management_read";
15547
+ ScopeValues["Manage"] = "content_management_manage";
15548
+ return ScopeValues;
15549
+ }({});
15550
+ /**
15551
+ * @private
15552
+ */
15553
+ function createOAuthApplicationApi(makeRequest, userId) {
15554
+ var getParams = function getParams(data) {
15555
+ return {
15556
+ userId: userId,
15557
+ oauthApplicationId: data.sys.id
15558
+ };
15559
+ };
15560
+ return {
15561
+ /**
15562
+ * Updates an OAuth application
15563
+ * @return Promise for the updated OAuth application
15564
+ */
15565
+ update: function update() {
15566
+ var _this = this;
15567
+ return _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
15568
+ var raw;
15569
+ return _regeneratorRuntime().wrap(function _callee$(_context) {
15570
+ while (1) switch (_context.prev = _context.next) {
15571
+ case 0:
15572
+ raw = _this.toPlainObject();
15573
+ return _context.abrupt("return", makeRequest({
15574
+ entityType: 'OAuthApplication',
15575
+ action: 'update',
15576
+ params: getParams(raw),
15577
+ payload: raw
15578
+ }));
15579
+ case 2:
15580
+ case "end":
15581
+ return _context.stop();
15582
+ }
15583
+ }, _callee);
15584
+ }))();
15585
+ },
15586
+ /**
15587
+ * Deletes an OAuth application
15588
+ * @return Promise for the deleted OAuth application
15589
+ */
15590
+ delete: function _delete() {
15591
+ var _this2 = this;
15592
+ return _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
15593
+ var raw;
15594
+ return _regeneratorRuntime().wrap(function _callee2$(_context2) {
15595
+ while (1) switch (_context2.prev = _context2.next) {
15596
+ case 0:
15597
+ raw = _this2.toPlainObject();
15598
+ return _context2.abrupt("return", makeRequest({
15599
+ entityType: 'OAuthApplication',
15600
+ action: 'delete',
15601
+ params: getParams(raw)
15602
+ }));
15603
+ case 2:
15604
+ case "end":
15605
+ return _context2.stop();
15606
+ }
15607
+ }, _callee2);
15608
+ }))();
15609
+ }
15610
+ };
15611
+ }
15612
+
15613
+ /**
15614
+ * @private
15615
+ * @param makeRequest - function to make requests via an adapter
15616
+ * @param data - Raw OAuth application data
15617
+ * @return Wrapped OAuth application data
15618
+ */
15619
+ function wrapOAuthApplication(makeRequest, data, userId) {
15620
+ var oauthApplication = (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__.toPlainObject)((0,fast_copy__WEBPACK_IMPORTED_MODULE_2__["default"])(data));
15621
+ var oauthApplicationWithMethods = (0,_enhance_with_methods__WEBPACK_IMPORTED_MODULE_1__["default"])(oauthApplication, createOAuthApplicationApi(makeRequest, userId));
15622
+ return (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__.freezeSys)(oauthApplicationWithMethods);
15623
+ }
15624
+
15625
+ /**
15626
+ * @private
15627
+ */
15628
+ var wrapOAuthApplicationCollection = (0,_common_utils__WEBPACK_IMPORTED_MODULE_3__.wrapCursorPaginatedCollection)(wrapOAuthApplication);
15629
+
15630
+ /***/ }),
15631
+
15224
15632
  /***/ "./entities/organization-invitation.ts":
15225
15633
  /*!*********************************************!*\
15226
15634
  !*** ./entities/organization-invitation.ts ***!
@@ -18434,6 +18842,13 @@ var createPlainClient = function createPlainClient(makeRequest, defaults) {
18434
18842
  update: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'OrganizationMembership', 'update'),
18435
18843
  delete: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'OrganizationMembership', 'delete')
18436
18844
  },
18845
+ oauthApplication: {
18846
+ get: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'OAuthApplication', 'get'),
18847
+ getManyForUser: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'OAuthApplication', 'getManyForUser'),
18848
+ update: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'OAuthApplication', 'update'),
18849
+ delete: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'OAuthApplication', 'delete'),
18850
+ create: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'OAuthApplication', 'create')
18851
+ },
18437
18852
  spaceMember: {
18438
18853
  get: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'SpaceMember', 'get'),
18439
18854
  getMany: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'SpaceMember', 'getMany')
@@ -28159,17 +28574,18 @@ var __webpack_exports__ = {};
28159
28574
  __webpack_require__.r(__webpack_exports__);
28160
28575
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
28161
28576
  /* harmony export */ RestAdapter: function() { return /* reexport safe */ _adapters_REST_rest_adapter__WEBPACK_IMPORTED_MODULE_8__.RestAdapter; },
28162
- /* harmony export */ ScheduledActionReferenceFilters: function() { return /* reexport safe */ _export_types__WEBPACK_IMPORTED_MODULE_9__.ScheduledActionReferenceFilters; },
28163
- /* harmony export */ WorkflowStepPermissionAction: function() { return /* reexport safe */ _export_types__WEBPACK_IMPORTED_MODULE_9__.WorkflowStepPermissionAction; },
28164
- /* harmony export */ WorkflowStepPermissionEffect: function() { return /* reexport safe */ _export_types__WEBPACK_IMPORTED_MODULE_9__.WorkflowStepPermissionEffect; },
28165
- /* harmony export */ WorkflowStepPermissionType: function() { return /* reexport safe */ _export_types__WEBPACK_IMPORTED_MODULE_9__.WorkflowStepPermissionType; },
28577
+ /* harmony export */ ScheduledActionReferenceFilters: function() { return /* reexport safe */ _export_types__WEBPACK_IMPORTED_MODULE_10__.ScheduledActionReferenceFilters; },
28578
+ /* harmony export */ WorkflowStepPermissionAction: function() { return /* reexport safe */ _export_types__WEBPACK_IMPORTED_MODULE_10__.WorkflowStepPermissionAction; },
28579
+ /* harmony export */ WorkflowStepPermissionEffect: function() { return /* reexport safe */ _export_types__WEBPACK_IMPORTED_MODULE_10__.WorkflowStepPermissionEffect; },
28580
+ /* harmony export */ WorkflowStepPermissionType: function() { return /* reexport safe */ _export_types__WEBPACK_IMPORTED_MODULE_10__.WorkflowStepPermissionType; },
28166
28581
  /* harmony export */ asIterator: function() { return /* reexport safe */ _plain_as_iterator__WEBPACK_IMPORTED_MODULE_5__.asIterator; },
28167
28582
  /* harmony export */ createClient: function() { return /* binding */ createClient; },
28168
28583
  /* harmony export */ editorInterfaceDefaults: function() { return /* reexport module object */ _constants_editor_interface_defaults__WEBPACK_IMPORTED_MODULE_4__; },
28169
28584
  /* harmony export */ fetchAll: function() { return /* reexport safe */ _plain_pagination_helper__WEBPACK_IMPORTED_MODULE_6__.fetchAll; },
28170
28585
  /* harmony export */ isDraft: function() { return /* reexport safe */ _plain_checks__WEBPACK_IMPORTED_MODULE_7__.isDraft; },
28171
28586
  /* harmony export */ isPublished: function() { return /* reexport safe */ _plain_checks__WEBPACK_IMPORTED_MODULE_7__.isPublished; },
28172
- /* harmony export */ isUpdated: function() { return /* reexport safe */ _plain_checks__WEBPACK_IMPORTED_MODULE_7__.isUpdated; }
28587
+ /* harmony export */ isUpdated: function() { return /* reexport safe */ _plain_checks__WEBPACK_IMPORTED_MODULE_7__.isUpdated; },
28588
+ /* harmony export */ makeRequest: function() { return /* reexport safe */ _adapters_REST_make_request__WEBPACK_IMPORTED_MODULE_9__.makeRequest; }
28173
28589
  /* harmony export */ });
28174
28590
  /* harmony import */ var contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! contentful-sdk-core */ "../node_modules/contentful-sdk-core/dist/index.js");
28175
28591
  /* harmony import */ var _create_adapter__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./create-adapter */ "./create-adapter.ts");
@@ -28180,7 +28596,8 @@ __webpack_require__.r(__webpack_exports__);
28180
28596
  /* harmony import */ var _plain_pagination_helper__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./plain/pagination-helper */ "./plain/pagination-helper.ts");
28181
28597
  /* harmony import */ var _plain_checks__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./plain/checks */ "./plain/checks.ts");
28182
28598
  /* harmony import */ var _adapters_REST_rest_adapter__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./adapters/REST/rest-adapter */ "./adapters/REST/rest-adapter.ts");
28183
- /* harmony import */ var _export_types__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./export-types */ "./export-types.ts");
28599
+ /* harmony import */ var _adapters_REST_make_request__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./adapters/REST/make-request */ "./adapters/REST/make-request.ts");
28600
+ /* harmony import */ var _export_types__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./export-types */ "./export-types.ts");
28184
28601
  function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
28185
28602
  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; }
28186
28603
  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; }
@@ -28206,6 +28623,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
28206
28623
 
28207
28624
 
28208
28625
 
28626
+
28209
28627
  /**
28210
28628
  * @deprecated
28211
28629
  */
@@ -28230,7 +28648,7 @@ function createClient(params) {
28230
28648
  var opts = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
28231
28649
  var sdkMain = opts.type === 'plain' ? 'contentful-management-plain.js' : 'contentful-management.js';
28232
28650
  var userAgent = (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__.getUserAgentHeader)(// @ts-expect-error
28233
- "".concat(sdkMain, "/").concat("11.45.1"), params.application, params.integration, params.feature);
28651
+ "".concat(sdkMain, "/").concat("11.47.0"), params.application, params.integration, params.feature);
28234
28652
  var adapter = (0,_create_adapter__WEBPACK_IMPORTED_MODULE_1__.createAdapter)(_objectSpread(_objectSpread({}, params), {}, {
28235
28653
  userAgent: userAgent
28236
28654
  }));