@gitbook/api 0.36.0 → 0.37.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -238,7 +238,7 @@ module.exports = __toCommonJS(src_exports);
238
238
 
239
239
  // package.json
240
240
  var name = "@gitbook/api";
241
- var version = "0.36.0";
241
+ var version = "0.37.0";
242
242
 
243
243
  // src/client.ts
244
244
  var import_event_iterator = __toESM(require_node(), 1);
@@ -1489,6 +1489,14 @@ var Api = class extends HttpClient {
1489
1489
  format: "json",
1490
1490
  ...params
1491
1491
  }),
1492
+ getChangeRequestPdf: (spaceId, changeRequestId, query, params = {}) => this.request({
1493
+ path: `/spaces/${spaceId}/change-requests/${changeRequestId}/pdf`,
1494
+ method: "GET",
1495
+ query,
1496
+ secure: true,
1497
+ format: "json",
1498
+ ...params
1499
+ }),
1492
1500
  getRevisionById: (spaceId, revisionId, query, params = {}) => this.request({
1493
1501
  path: `/spaces/${spaceId}/revisions/${revisionId}`,
1494
1502
  method: "GET",
@@ -1756,6 +1764,14 @@ var Api = class extends HttpClient {
1756
1764
  method: "DELETE",
1757
1765
  secure: true,
1758
1766
  ...params
1767
+ }),
1768
+ listSpaceLinks: (spaceId, query, params = {}) => this.request({
1769
+ path: `/spaces/${spaceId}/links`,
1770
+ method: "GET",
1771
+ query,
1772
+ secure: true,
1773
+ format: "json",
1774
+ ...params
1759
1775
  })
1760
1776
  };
1761
1777
  this.collections = {
@@ -2049,6 +2065,45 @@ var Api = class extends HttpClient {
2049
2065
  method: "DELETE",
2050
2066
  secure: true,
2051
2067
  ...params
2068
+ }),
2069
+ listIntegrationInstallationSites: (integrationName, installationId, query, params = {}) => this.request({
2070
+ path: `/integrations/${integrationName}/installations/${installationId}/sites`,
2071
+ method: "GET",
2072
+ query,
2073
+ secure: true,
2074
+ format: "json",
2075
+ ...params
2076
+ }),
2077
+ installIntegrationOnSite: (integrationName, installationId, data, params = {}) => this.request({
2078
+ path: `/integrations/${integrationName}/installations/${installationId}/sites`,
2079
+ method: "POST",
2080
+ body: data,
2081
+ secure: true,
2082
+ type: "application/json" /* Json */,
2083
+ format: "json",
2084
+ ...params
2085
+ }),
2086
+ getIntegrationSiteInstallation: (integrationName, installationId, siteId, params = {}) => this.request({
2087
+ path: `/integrations/${integrationName}/installations/${installationId}/sites/${siteId}`,
2088
+ method: "GET",
2089
+ secure: true,
2090
+ format: "json",
2091
+ ...params
2092
+ }),
2093
+ updateIntegrationSiteInstallation: (integrationName, installationId, siteId, data, params = {}) => this.request({
2094
+ path: `/integrations/${integrationName}/installations/${installationId}/sites/${siteId}`,
2095
+ method: "PATCH",
2096
+ body: data,
2097
+ secure: true,
2098
+ type: "application/json" /* Json */,
2099
+ format: "json",
2100
+ ...params
2101
+ }),
2102
+ uninstallIntegrationFromSite: (integrationName, installationId, siteId, params = {}) => this.request({
2103
+ path: `/integrations/${integrationName}/installations/${installationId}/sites/${siteId}`,
2104
+ method: "DELETE",
2105
+ secure: true,
2106
+ ...params
2052
2107
  })
2053
2108
  };
2054
2109
  this.orgs = {
@@ -2418,6 +2473,62 @@ var Api = class extends HttpClient {
2418
2473
  type: "application/json" /* Json */,
2419
2474
  ...params
2420
2475
  }),
2476
+ getUsageForOrganizationById: (organizationId, params = {}) => this.request({
2477
+ path: `/orgs/${organizationId}/usage`,
2478
+ method: "GET",
2479
+ secure: true,
2480
+ format: "json",
2481
+ ...params
2482
+ }),
2483
+ getCollectionsUsageForOrganizationById: (organizationId, params = {}) => this.request({
2484
+ path: `/orgs/${organizationId}/usage/collections`,
2485
+ method: "GET",
2486
+ secure: true,
2487
+ format: "json",
2488
+ ...params
2489
+ }),
2490
+ getSpacesUsageForOrganizationById: (organizationId, params = {}) => this.request({
2491
+ path: `/orgs/${organizationId}/usage/spaces`,
2492
+ method: "GET",
2493
+ secure: true,
2494
+ format: "json",
2495
+ ...params
2496
+ }),
2497
+ getSitesUsageForOrganizationById: (organizationId, params = {}) => this.request({
2498
+ path: `/orgs/${organizationId}/usage/sites`,
2499
+ method: "GET",
2500
+ secure: true,
2501
+ format: "json",
2502
+ ...params
2503
+ }),
2504
+ getTeamsUsageForOrganizationById: (organizationId, params = {}) => this.request({
2505
+ path: `/orgs/${organizationId}/usage/teams`,
2506
+ method: "GET",
2507
+ secure: true,
2508
+ format: "json",
2509
+ ...params
2510
+ }),
2511
+ getMembersUsageForOrganizationById: (organizationId, params = {}) => this.request({
2512
+ path: `/orgs/${organizationId}/usage/members`,
2513
+ method: "GET",
2514
+ secure: true,
2515
+ format: "json",
2516
+ ...params
2517
+ }),
2518
+ getTeamMembersUsageForOrganizationById: (organizationId, params = {}) => this.request({
2519
+ path: `/orgs/${organizationId}/usage/team-members`,
2520
+ method: "GET",
2521
+ secure: true,
2522
+ format: "json",
2523
+ ...params
2524
+ }),
2525
+ getSeatsUsageForOrganizationById: (organizationId, params = {}) => this.request({
2526
+ path: `/orgs/${organizationId}/usage/seats`,
2527
+ method: "GET",
2528
+ secure: true,
2529
+ format: "json",
2530
+ ...params
2531
+ }),
2421
2532
  listEntitySchemas: (organizationId, query, params = {}) => this.request({
2422
2533
  path: `/orgs/${organizationId}/schemas`,
2423
2534
  method: "GET",
@@ -2593,6 +2704,14 @@ var Api = class extends HttpClient {
2593
2704
  type: "application/json" /* Json */,
2594
2705
  ...params
2595
2706
  }),
2707
+ getSyncedBlockBacklinks: (organizationId, syncedBlockId, query, params = {}) => this.request({
2708
+ path: `/orgs/${organizationId}/synced-blocks/${syncedBlockId}/backlinks`,
2709
+ method: "GET",
2710
+ query,
2711
+ secure: true,
2712
+ format: "json",
2713
+ ...params
2714
+ }),
2596
2715
  askInOrganization: (organizationId, data, query, params = {}) => this.request({
2597
2716
  path: `/orgs/${organizationId}/ask`,
2598
2717
  method: "POST",
@@ -2694,6 +2813,38 @@ var Api = class extends HttpClient {
2694
2813
  secure: true,
2695
2814
  ...params
2696
2815
  }),
2816
+ listSiteShareLinks: (organizationId, siteId, query, params = {}) => this.request({
2817
+ path: `/orgs/${organizationId}/sites/${siteId}/share-links`,
2818
+ method: "GET",
2819
+ query,
2820
+ secure: true,
2821
+ format: "json",
2822
+ ...params
2823
+ }),
2824
+ createSiteShareLink: (organizationId, siteId, data, params = {}) => this.request({
2825
+ path: `/orgs/${organizationId}/sites/${siteId}/share-links`,
2826
+ method: "POST",
2827
+ body: data,
2828
+ secure: true,
2829
+ type: "application/json" /* Json */,
2830
+ format: "json",
2831
+ ...params
2832
+ }),
2833
+ updateSiteShareLinkById: (organizationId, siteId, shareLinkId, data, params = {}) => this.request({
2834
+ path: `/orgs/${organizationId}/sites/${siteId}/share-links/${shareLinkId}`,
2835
+ method: "PATCH",
2836
+ body: data,
2837
+ secure: true,
2838
+ type: "application/json" /* Json */,
2839
+ format: "json",
2840
+ ...params
2841
+ }),
2842
+ deleteSiteShareLinkById: (organizationId, siteId, shareLinkId, params = {}) => this.request({
2843
+ path: `/orgs/${organizationId}/sites/${siteId}/share-links/${shareLinkId}`,
2844
+ method: "DELETE",
2845
+ secure: true,
2846
+ ...params
2847
+ }),
2697
2848
  getSitePublishingAuthSettings: (organizationId, siteId, params = {}) => this.request({
2698
2849
  path: `/orgs/${organizationId}/sites/${siteId}/publishing/auth`,
2699
2850
  method: "GET",
@@ -2701,6 +2852,31 @@ var Api = class extends HttpClient {
2701
2852
  format: "json",
2702
2853
  ...params
2703
2854
  }),
2855
+ updateSitePublishingAuthSettings: (organizationId, siteId, data, params = {}) => this.request({
2856
+ path: `/orgs/${organizationId}/sites/${siteId}/publishing/auth`,
2857
+ method: "PATCH",
2858
+ body: data,
2859
+ secure: true,
2860
+ type: "application/json" /* Json */,
2861
+ format: "json",
2862
+ ...params
2863
+ }),
2864
+ getSiteCustomizationById: (organizationId, siteId, params = {}) => this.request({
2865
+ path: `/orgs/${organizationId}/sites/${siteId}/customization`,
2866
+ method: "GET",
2867
+ secure: true,
2868
+ format: "json",
2869
+ ...params
2870
+ }),
2871
+ updateSiteCustomizationById: (organizationId, siteId, data, params = {}) => this.request({
2872
+ path: `/orgs/${organizationId}/sites/${siteId}/customization`,
2873
+ method: "PUT",
2874
+ body: data,
2875
+ secure: true,
2876
+ type: "application/json" /* Json */,
2877
+ format: "json",
2878
+ ...params
2879
+ }),
2704
2880
  addSpaceToSite: (organizationId, siteId, data, params = {}) => this.request({
2705
2881
  path: `/orgs/${organizationId}/sites/${siteId}/spaces`,
2706
2882
  method: "POST",
@@ -2732,6 +2908,71 @@ var Api = class extends HttpClient {
2732
2908
  method: "DELETE",
2733
2909
  secure: true,
2734
2910
  ...params
2911
+ }),
2912
+ getSiteSpaceCustomizationById: (organizationId, siteId, siteSpaceId, params = {}) => this.request({
2913
+ path: `/orgs/${organizationId}/sites/${siteId}/spaces/${siteSpaceId}/customization`,
2914
+ method: "GET",
2915
+ secure: true,
2916
+ format: "json",
2917
+ ...params
2918
+ }),
2919
+ listSeatsInOrganizationById: (organizationId, params = {}) => this.request({
2920
+ path: `/orgs/${organizationId}/seats`,
2921
+ method: "GET",
2922
+ secure: true,
2923
+ format: "json",
2924
+ ...params
2925
+ }),
2926
+ addSeatsToOrganizationById: (organizationId, data, params = {}) => this.request({
2927
+ path: `/orgs/${organizationId}/seats`,
2928
+ method: "POST",
2929
+ body: data,
2930
+ secure: true,
2931
+ type: "application/json" /* Json */,
2932
+ ...params
2933
+ }),
2934
+ removeSeatsFromOrganizationById: (organizationId, data, params = {}) => this.request({
2935
+ path: `/orgs/${organizationId}/seats`,
2936
+ method: "DELETE",
2937
+ body: data,
2938
+ secure: true,
2939
+ type: "application/json" /* Json */,
2940
+ ...params
2941
+ }),
2942
+ assignSeatsToMembersInOrganizationById: (organizationId, data, params = {}) => this.request({
2943
+ path: `/orgs/${organizationId}/seats/members`,
2944
+ method: "PUT",
2945
+ body: data,
2946
+ secure: true,
2947
+ type: "application/json" /* Json */,
2948
+ ...params
2949
+ }),
2950
+ revokeSeatsFromMembersInOrganizationById: (organizationId, data, params = {}) => this.request({
2951
+ path: `/orgs/${organizationId}/seats/members`,
2952
+ method: "DELETE",
2953
+ body: data,
2954
+ secure: true,
2955
+ type: "application/json" /* Json */,
2956
+ ...params
2957
+ }),
2958
+ getSeatForMemberInOrganizationById: (organizationId, userId, params = {}) => this.request({
2959
+ path: `/orgs/${organizationId}/seats/members/${userId}`,
2960
+ method: "GET",
2961
+ secure: true,
2962
+ format: "json",
2963
+ ...params
2964
+ }),
2965
+ assignSeatToMemberInOrganizationById: (organizationId, userId, params = {}) => this.request({
2966
+ path: `/orgs/${organizationId}/seats/members/${userId}`,
2967
+ method: "PUT",
2968
+ secure: true,
2969
+ ...params
2970
+ }),
2971
+ revokeSeatFromMemberInOrganizationById: (organizationId, userId, params = {}) => this.request({
2972
+ path: `/orgs/${organizationId}/seats/members/${userId}`,
2973
+ method: "DELETE",
2974
+ secure: true,
2975
+ ...params
2735
2976
  })
2736
2977
  };
2737
2978
  this.customHostnames = {
package/dist/index.js CHANGED
@@ -172,7 +172,7 @@ var require_node = __commonJS({
172
172
 
173
173
  // package.json
174
174
  var name = "@gitbook/api";
175
- var version = "0.36.0";
175
+ var version = "0.37.0";
176
176
 
177
177
  // src/client.ts
178
178
  var import_event_iterator = __toESM(require_node(), 1);
@@ -1423,6 +1423,14 @@ var Api = class extends HttpClient {
1423
1423
  format: "json",
1424
1424
  ...params
1425
1425
  }),
1426
+ getChangeRequestPdf: (spaceId, changeRequestId, query, params = {}) => this.request({
1427
+ path: `/spaces/${spaceId}/change-requests/${changeRequestId}/pdf`,
1428
+ method: "GET",
1429
+ query,
1430
+ secure: true,
1431
+ format: "json",
1432
+ ...params
1433
+ }),
1426
1434
  getRevisionById: (spaceId, revisionId, query, params = {}) => this.request({
1427
1435
  path: `/spaces/${spaceId}/revisions/${revisionId}`,
1428
1436
  method: "GET",
@@ -1690,6 +1698,14 @@ var Api = class extends HttpClient {
1690
1698
  method: "DELETE",
1691
1699
  secure: true,
1692
1700
  ...params
1701
+ }),
1702
+ listSpaceLinks: (spaceId, query, params = {}) => this.request({
1703
+ path: `/spaces/${spaceId}/links`,
1704
+ method: "GET",
1705
+ query,
1706
+ secure: true,
1707
+ format: "json",
1708
+ ...params
1693
1709
  })
1694
1710
  };
1695
1711
  this.collections = {
@@ -1983,6 +1999,45 @@ var Api = class extends HttpClient {
1983
1999
  method: "DELETE",
1984
2000
  secure: true,
1985
2001
  ...params
2002
+ }),
2003
+ listIntegrationInstallationSites: (integrationName, installationId, query, params = {}) => this.request({
2004
+ path: `/integrations/${integrationName}/installations/${installationId}/sites`,
2005
+ method: "GET",
2006
+ query,
2007
+ secure: true,
2008
+ format: "json",
2009
+ ...params
2010
+ }),
2011
+ installIntegrationOnSite: (integrationName, installationId, data, params = {}) => this.request({
2012
+ path: `/integrations/${integrationName}/installations/${installationId}/sites`,
2013
+ method: "POST",
2014
+ body: data,
2015
+ secure: true,
2016
+ type: "application/json" /* Json */,
2017
+ format: "json",
2018
+ ...params
2019
+ }),
2020
+ getIntegrationSiteInstallation: (integrationName, installationId, siteId, params = {}) => this.request({
2021
+ path: `/integrations/${integrationName}/installations/${installationId}/sites/${siteId}`,
2022
+ method: "GET",
2023
+ secure: true,
2024
+ format: "json",
2025
+ ...params
2026
+ }),
2027
+ updateIntegrationSiteInstallation: (integrationName, installationId, siteId, data, params = {}) => this.request({
2028
+ path: `/integrations/${integrationName}/installations/${installationId}/sites/${siteId}`,
2029
+ method: "PATCH",
2030
+ body: data,
2031
+ secure: true,
2032
+ type: "application/json" /* Json */,
2033
+ format: "json",
2034
+ ...params
2035
+ }),
2036
+ uninstallIntegrationFromSite: (integrationName, installationId, siteId, params = {}) => this.request({
2037
+ path: `/integrations/${integrationName}/installations/${installationId}/sites/${siteId}`,
2038
+ method: "DELETE",
2039
+ secure: true,
2040
+ ...params
1986
2041
  })
1987
2042
  };
1988
2043
  this.orgs = {
@@ -2352,6 +2407,62 @@ var Api = class extends HttpClient {
2352
2407
  type: "application/json" /* Json */,
2353
2408
  ...params
2354
2409
  }),
2410
+ getUsageForOrganizationById: (organizationId, params = {}) => this.request({
2411
+ path: `/orgs/${organizationId}/usage`,
2412
+ method: "GET",
2413
+ secure: true,
2414
+ format: "json",
2415
+ ...params
2416
+ }),
2417
+ getCollectionsUsageForOrganizationById: (organizationId, params = {}) => this.request({
2418
+ path: `/orgs/${organizationId}/usage/collections`,
2419
+ method: "GET",
2420
+ secure: true,
2421
+ format: "json",
2422
+ ...params
2423
+ }),
2424
+ getSpacesUsageForOrganizationById: (organizationId, params = {}) => this.request({
2425
+ path: `/orgs/${organizationId}/usage/spaces`,
2426
+ method: "GET",
2427
+ secure: true,
2428
+ format: "json",
2429
+ ...params
2430
+ }),
2431
+ getSitesUsageForOrganizationById: (organizationId, params = {}) => this.request({
2432
+ path: `/orgs/${organizationId}/usage/sites`,
2433
+ method: "GET",
2434
+ secure: true,
2435
+ format: "json",
2436
+ ...params
2437
+ }),
2438
+ getTeamsUsageForOrganizationById: (organizationId, params = {}) => this.request({
2439
+ path: `/orgs/${organizationId}/usage/teams`,
2440
+ method: "GET",
2441
+ secure: true,
2442
+ format: "json",
2443
+ ...params
2444
+ }),
2445
+ getMembersUsageForOrganizationById: (organizationId, params = {}) => this.request({
2446
+ path: `/orgs/${organizationId}/usage/members`,
2447
+ method: "GET",
2448
+ secure: true,
2449
+ format: "json",
2450
+ ...params
2451
+ }),
2452
+ getTeamMembersUsageForOrganizationById: (organizationId, params = {}) => this.request({
2453
+ path: `/orgs/${organizationId}/usage/team-members`,
2454
+ method: "GET",
2455
+ secure: true,
2456
+ format: "json",
2457
+ ...params
2458
+ }),
2459
+ getSeatsUsageForOrganizationById: (organizationId, params = {}) => this.request({
2460
+ path: `/orgs/${organizationId}/usage/seats`,
2461
+ method: "GET",
2462
+ secure: true,
2463
+ format: "json",
2464
+ ...params
2465
+ }),
2355
2466
  listEntitySchemas: (organizationId, query, params = {}) => this.request({
2356
2467
  path: `/orgs/${organizationId}/schemas`,
2357
2468
  method: "GET",
@@ -2527,6 +2638,14 @@ var Api = class extends HttpClient {
2527
2638
  type: "application/json" /* Json */,
2528
2639
  ...params
2529
2640
  }),
2641
+ getSyncedBlockBacklinks: (organizationId, syncedBlockId, query, params = {}) => this.request({
2642
+ path: `/orgs/${organizationId}/synced-blocks/${syncedBlockId}/backlinks`,
2643
+ method: "GET",
2644
+ query,
2645
+ secure: true,
2646
+ format: "json",
2647
+ ...params
2648
+ }),
2530
2649
  askInOrganization: (organizationId, data, query, params = {}) => this.request({
2531
2650
  path: `/orgs/${organizationId}/ask`,
2532
2651
  method: "POST",
@@ -2628,6 +2747,38 @@ var Api = class extends HttpClient {
2628
2747
  secure: true,
2629
2748
  ...params
2630
2749
  }),
2750
+ listSiteShareLinks: (organizationId, siteId, query, params = {}) => this.request({
2751
+ path: `/orgs/${organizationId}/sites/${siteId}/share-links`,
2752
+ method: "GET",
2753
+ query,
2754
+ secure: true,
2755
+ format: "json",
2756
+ ...params
2757
+ }),
2758
+ createSiteShareLink: (organizationId, siteId, data, params = {}) => this.request({
2759
+ path: `/orgs/${organizationId}/sites/${siteId}/share-links`,
2760
+ method: "POST",
2761
+ body: data,
2762
+ secure: true,
2763
+ type: "application/json" /* Json */,
2764
+ format: "json",
2765
+ ...params
2766
+ }),
2767
+ updateSiteShareLinkById: (organizationId, siteId, shareLinkId, data, params = {}) => this.request({
2768
+ path: `/orgs/${organizationId}/sites/${siteId}/share-links/${shareLinkId}`,
2769
+ method: "PATCH",
2770
+ body: data,
2771
+ secure: true,
2772
+ type: "application/json" /* Json */,
2773
+ format: "json",
2774
+ ...params
2775
+ }),
2776
+ deleteSiteShareLinkById: (organizationId, siteId, shareLinkId, params = {}) => this.request({
2777
+ path: `/orgs/${organizationId}/sites/${siteId}/share-links/${shareLinkId}`,
2778
+ method: "DELETE",
2779
+ secure: true,
2780
+ ...params
2781
+ }),
2631
2782
  getSitePublishingAuthSettings: (organizationId, siteId, params = {}) => this.request({
2632
2783
  path: `/orgs/${organizationId}/sites/${siteId}/publishing/auth`,
2633
2784
  method: "GET",
@@ -2635,6 +2786,31 @@ var Api = class extends HttpClient {
2635
2786
  format: "json",
2636
2787
  ...params
2637
2788
  }),
2789
+ updateSitePublishingAuthSettings: (organizationId, siteId, data, params = {}) => this.request({
2790
+ path: `/orgs/${organizationId}/sites/${siteId}/publishing/auth`,
2791
+ method: "PATCH",
2792
+ body: data,
2793
+ secure: true,
2794
+ type: "application/json" /* Json */,
2795
+ format: "json",
2796
+ ...params
2797
+ }),
2798
+ getSiteCustomizationById: (organizationId, siteId, params = {}) => this.request({
2799
+ path: `/orgs/${organizationId}/sites/${siteId}/customization`,
2800
+ method: "GET",
2801
+ secure: true,
2802
+ format: "json",
2803
+ ...params
2804
+ }),
2805
+ updateSiteCustomizationById: (organizationId, siteId, data, params = {}) => this.request({
2806
+ path: `/orgs/${organizationId}/sites/${siteId}/customization`,
2807
+ method: "PUT",
2808
+ body: data,
2809
+ secure: true,
2810
+ type: "application/json" /* Json */,
2811
+ format: "json",
2812
+ ...params
2813
+ }),
2638
2814
  addSpaceToSite: (organizationId, siteId, data, params = {}) => this.request({
2639
2815
  path: `/orgs/${organizationId}/sites/${siteId}/spaces`,
2640
2816
  method: "POST",
@@ -2666,6 +2842,71 @@ var Api = class extends HttpClient {
2666
2842
  method: "DELETE",
2667
2843
  secure: true,
2668
2844
  ...params
2845
+ }),
2846
+ getSiteSpaceCustomizationById: (organizationId, siteId, siteSpaceId, params = {}) => this.request({
2847
+ path: `/orgs/${organizationId}/sites/${siteId}/spaces/${siteSpaceId}/customization`,
2848
+ method: "GET",
2849
+ secure: true,
2850
+ format: "json",
2851
+ ...params
2852
+ }),
2853
+ listSeatsInOrganizationById: (organizationId, params = {}) => this.request({
2854
+ path: `/orgs/${organizationId}/seats`,
2855
+ method: "GET",
2856
+ secure: true,
2857
+ format: "json",
2858
+ ...params
2859
+ }),
2860
+ addSeatsToOrganizationById: (organizationId, data, params = {}) => this.request({
2861
+ path: `/orgs/${organizationId}/seats`,
2862
+ method: "POST",
2863
+ body: data,
2864
+ secure: true,
2865
+ type: "application/json" /* Json */,
2866
+ ...params
2867
+ }),
2868
+ removeSeatsFromOrganizationById: (organizationId, data, params = {}) => this.request({
2869
+ path: `/orgs/${organizationId}/seats`,
2870
+ method: "DELETE",
2871
+ body: data,
2872
+ secure: true,
2873
+ type: "application/json" /* Json */,
2874
+ ...params
2875
+ }),
2876
+ assignSeatsToMembersInOrganizationById: (organizationId, data, params = {}) => this.request({
2877
+ path: `/orgs/${organizationId}/seats/members`,
2878
+ method: "PUT",
2879
+ body: data,
2880
+ secure: true,
2881
+ type: "application/json" /* Json */,
2882
+ ...params
2883
+ }),
2884
+ revokeSeatsFromMembersInOrganizationById: (organizationId, data, params = {}) => this.request({
2885
+ path: `/orgs/${organizationId}/seats/members`,
2886
+ method: "DELETE",
2887
+ body: data,
2888
+ secure: true,
2889
+ type: "application/json" /* Json */,
2890
+ ...params
2891
+ }),
2892
+ getSeatForMemberInOrganizationById: (organizationId, userId, params = {}) => this.request({
2893
+ path: `/orgs/${organizationId}/seats/members/${userId}`,
2894
+ method: "GET",
2895
+ secure: true,
2896
+ format: "json",
2897
+ ...params
2898
+ }),
2899
+ assignSeatToMemberInOrganizationById: (organizationId, userId, params = {}) => this.request({
2900
+ path: `/orgs/${organizationId}/seats/members/${userId}`,
2901
+ method: "PUT",
2902
+ secure: true,
2903
+ ...params
2904
+ }),
2905
+ revokeSeatFromMemberInOrganizationById: (organizationId, userId, params = {}) => this.request({
2906
+ path: `/orgs/${organizationId}/seats/members/${userId}`,
2907
+ method: "DELETE",
2908
+ secure: true,
2909
+ ...params
2669
2910
  })
2670
2911
  };
2671
2912
  this.customHostnames = {
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "main": "./dist/index.cjs",
5
5
  "module": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
7
- "version": "0.36.0",
7
+ "version": "0.37.0",
8
8
  "sideEffects": false,
9
9
  "files": [
10
10
  "README.md",