@gitbook/api 0.20.1 → 0.21.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/client.d.ts CHANGED
@@ -1077,6 +1077,10 @@ export declare type RevisionPageDocument = RevisionPageBase & Document & {
1077
1077
  /** @deprecated */
1078
1078
  kind: 'sheet';
1079
1079
  type: 'document';
1080
+ urls: {
1081
+ /** Location of the page in the app */
1082
+ app: URL;
1083
+ };
1080
1084
  /** Page's slug in its direct parent */
1081
1085
  slug: string;
1082
1086
  /** Complete path to access the page in the revision. */
@@ -1430,26 +1434,6 @@ export interface OrganizationTransferResponse {
1430
1434
  /** The new hostname if the source organization needed to change hostname. */
1431
1435
  newSourceHostname?: string;
1432
1436
  }
1433
- export interface OrganizationDirectorySyncGroup {
1434
- /** The unique identifier of this group in WorkOS. Not the unique ID from GitBook. */
1435
- id: string;
1436
- /** The identity provider's unique ID for this group, should be used to generate the team's unique ID when syncing the groups. */
1437
- idp_id: string;
1438
- /** The unique ID of the directory this group is owned by in WorkOS. Is not a unique ID from our database. */
1439
- directory_id: string;
1440
- /** The name of the group from the identity provider, it should always be set according to the WorkOS documentation. */
1441
- name: string;
1442
- /** The unique ID of the GitBook team already synced to this group, if applicable. */
1443
- teamKey?: string;
1444
- }
1445
- export declare type OrganizationDirectorySyncGroupTeamStatus = {
1446
- success: true;
1447
- group_id: string;
1448
- team_id: string;
1449
- } | {
1450
- success: false;
1451
- error: string;
1452
- };
1453
1437
  export interface OrganizationTarget {
1454
1438
  organization: string;
1455
1439
  }
@@ -1635,6 +1619,8 @@ export declare type Snippet = Document & {
1635
1619
  * @format date-time
1636
1620
  */
1637
1621
  editedAt?: string;
1622
+ /** Whether the snippet is archived. Archived snippets don't appear in search results or in the app. */
1623
+ archived: boolean;
1638
1624
  /**
1639
1625
  * Title describing the snippet.
1640
1626
  * @maxLength 100
@@ -2401,6 +2387,14 @@ export declare type SpaceIntegrationBlocks = {
2401
2387
  name: string;
2402
2388
  blocks: IntegrationBlock[];
2403
2389
  }[];
2390
+ export interface SpaceIntegrationScript {
2391
+ /** Script URL to load. */
2392
+ script: URL;
2393
+ /** Content Security Policy to secure the loading of this script. */
2394
+ contentSecurityPolicy?: string;
2395
+ /** If true, the script will potentially load use cookies and visitors should be aware. */
2396
+ cookies: boolean;
2397
+ }
2404
2398
  /** Entity to create or update in an integration's installation. */
2405
2399
  export interface UpsertEntity {
2406
2400
  /** Unique ID of the entity in the context of the integration's entity type */
@@ -3589,6 +3583,28 @@ export interface CustomizationThemedColor {
3589
3583
  light: Color;
3590
3584
  dark: Color;
3591
3585
  }
3586
+ export interface PageFeedback {
3587
+ /** Type of Object, always equal to "page-feedback" */
3588
+ object: 'page-feedback';
3589
+ visitorId: string;
3590
+ rating: PageFeedbackRating;
3591
+ createdAt: Date;
3592
+ /** ID of the revision when the rating was created */
3593
+ revision: string;
3594
+ /** URLs associated with the object */
3595
+ urls: {
3596
+ /**
3597
+ * URL of the page feedback in the API
3598
+ * @format uri
3599
+ */
3600
+ location: string;
3601
+ };
3602
+ }
3603
+ export declare enum PageFeedbackRating {
3604
+ Bad = "bad",
3605
+ Ok = "ok",
3606
+ Good = "good"
3607
+ }
3592
3608
  export declare type QueryParamsType = Record<string | number, any>;
3593
3609
  export declare type ResponseFormat = keyof Omit<Body, 'body' | 'bodyUsed'>;
3594
3610
  export interface FullRequestParams extends Omit<RequestInit, 'body'> {
@@ -3717,8 +3733,9 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
3717
3733
  * No description
3718
3734
  *
3719
3735
  * @name GetRecommendedQuestions
3720
- * @summary Get a list of questions recommended by AI for a list of content.
3736
+ * @summary Get a list of questions recommended by AI for a list of content. Deprecated, use getRecommendedQuestionsInOrganization instead.
3721
3737
  * @request POST:/search/questions
3738
+ * @deprecated
3722
3739
  * @secure
3723
3740
  */
3724
3741
  getRecommendedQuestions: (data: {
@@ -4201,6 +4218,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
4201
4218
  page?: string;
4202
4219
  /** The number of results per page */
4203
4220
  limit?: number;
4221
+ /**
4222
+ * An order for the items in the list
4223
+ * @default "desc"
4224
+ */
4225
+ order?: 'asc' | 'desc';
4204
4226
  /** Output format for the content. */
4205
4227
  format?: 'document' | 'markdown';
4206
4228
  /**
@@ -4208,6 +4230,8 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
4208
4230
  * @default "all"
4209
4231
  */
4210
4232
  status?: 'all' | 'open' | 'resolved';
4233
+ /** The target page of the comment */
4234
+ targetPage?: string;
4211
4235
  }, params?: RequestParams) => Promise<HttpResponse<List & {
4212
4236
  items: Comment[];
4213
4237
  }, Error>>;
@@ -4531,6 +4555,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
4531
4555
  page?: string;
4532
4556
  /** The number of results per page */
4533
4557
  limit?: number;
4558
+ /**
4559
+ * An order for the items in the list
4560
+ * @default "desc"
4561
+ */
4562
+ order?: 'asc' | 'desc';
4534
4563
  /**
4535
4564
  * When provided, only comments with the given status are returned. Defaults to "all".
4536
4565
  * @default "all"
@@ -4538,6 +4567,8 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
4538
4567
  status?: 'all' | 'open' | 'resolved';
4539
4568
  /** Output format for the content. */
4540
4569
  format?: 'document' | 'markdown';
4570
+ /** The target page of the comment */
4571
+ targetPage?: string;
4541
4572
  }, params?: RequestParams) => Promise<HttpResponse<List & {
4542
4573
  items: Comment[];
4543
4574
  }, Error>>;
@@ -4745,6 +4776,22 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
4745
4776
  message: string;
4746
4777
  };
4747
4778
  }>>;
4779
+ /**
4780
+ * No description
4781
+ *
4782
+ * @tags spaces
4783
+ * @name ListSpaceIntegrationScripts
4784
+ * @summary List the scripts to embed in published content for a space.
4785
+ * @request GET:/spaces/{spaceId}/integration-scripts
4786
+ * @secure
4787
+ */
4788
+ listSpaceIntegrationScripts: (spaceId: string, params?: RequestParams) => Promise<HttpResponse<SpaceIntegrationScript[], Error | {
4789
+ error: {
4790
+ /** @format int32 */
4791
+ code: 400;
4792
+ message: string;
4793
+ };
4794
+ }>>;
4748
4795
  /**
4749
4796
  * No description
4750
4797
  *
@@ -4765,6 +4812,28 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
4765
4812
  * @secure
4766
4813
  */
4767
4814
  updateSpaceCustomFields: (spaceId: string, data: UpdateCustomFieldValues, params?: RequestParams) => Promise<HttpResponse<void, Error>>;
4815
+ /**
4816
+ * No description
4817
+ *
4818
+ * @tags spaces
4819
+ * @name GetPageFeedback
4820
+ * @summary Get a page feedback by a visitor.
4821
+ * @request GET:/spaces/{spaceId}/pages/{pageId}/feedbacks/{visitorId}
4822
+ * @secure
4823
+ */
4824
+ getPageFeedback: (spaceId: string, pageId: string, visitorId: string, params?: RequestParams) => Promise<HttpResponse<PageFeedback, Error>>;
4825
+ /**
4826
+ * No description
4827
+ *
4828
+ * @tags spaces
4829
+ * @name CreatePageFeedback
4830
+ * @summary Create a page feedback by a visitor.
4831
+ * @request PUT:/spaces/{spaceId}/pages/{pageId}/feedbacks/{visitorId}
4832
+ * @secure
4833
+ */
4834
+ createPageFeedback: (spaceId: string, pageId: string, visitorId: string, data: {
4835
+ rating: PageFeedbackRating;
4836
+ }, params?: RequestParams) => Promise<HttpResponse<PageFeedback, Error>>;
4768
4837
  };
4769
4838
  collections: {
4770
4839
  /**
@@ -5756,60 +5825,6 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
5756
5825
  /** ID of a parent collection */
5757
5826
  parent?: string;
5758
5827
  }, params?: RequestParams) => Promise<HttpResponse<Collection, Error>>;
5759
- /**
5760
- * No description
5761
- *
5762
- * @tags organizations, dsync
5763
- * @name SetupDirectorySync
5764
- * @summary Set up Directory Sync in an organization.
5765
- * @request POST:/orgs/{organizationId}/dsync
5766
- * @secure
5767
- */
5768
- setupDirectorySync: (organizationId: string, params?: RequestParams) => Promise<HttpResponse<{
5769
- /** The URL to navigate to to continue Directory Sync setup. */
5770
- setupUrl: string;
5771
- }, Error>>;
5772
- /**
5773
- * No description
5774
- *
5775
- * @tags organizations, dsync
5776
- * @name ListDirectorySyncGroups
5777
- * @summary Lists the groups exposed to the synced Directory on an organization.
5778
- * @request GET:/orgs/{organizationId}/dsync/groups
5779
- * @secure
5780
- */
5781
- listDirectorySyncGroups: (organizationId: string, params?: RequestParams) => Promise<HttpResponse<{
5782
- groups: OrganizationDirectorySyncGroup[];
5783
- }, Error>>;
5784
- /**
5785
- * @description Each pair will lead the team being synced to the group (unless it is already synced to another) and the members of the group will then be synced to the team. Each sync is independent, the endpoint will still succeed if some of the syncs fail. Check the response to know more about the success or failure of the entire sync.
5786
- *
5787
- * @tags organizations, dsync
5788
- * @name SyncDirectorySyncGroupsToTeams
5789
- * @summary Syncs a list of group/team unique identifiers pairs together.
5790
- * @request POST:/orgs/{organizationId}/dsync/teams
5791
- * @secure
5792
- */
5793
- syncDirectorySyncGroupsToTeams: (organizationId: string, data: {
5794
- /**
5795
- * A list of groups to teams pairs to sync.
5796
- * The group_id is required and the team_id is optional.
5797
- * If the latter is omitted, a new team will be created from the group's data.
5798
- */
5799
- to_sync: {
5800
- /** The unique identifier of the group for the given identity provider. */
5801
- group_id: string;
5802
- /** The unique identifier of the team for the given identity provider. */
5803
- team_id?: string;
5804
- }[];
5805
- }, params?: RequestParams) => Promise<HttpResponse<{
5806
- /**
5807
- * The list of synced pairs, mapped to the original pairs given to the sync parameters.
5808
- * Either the group_id and team_id will be defined, or the error will be defined to describe why it failed.
5809
- * Use the success parameter to know if the pair sync was sucessful or not.
5810
- */
5811
- synced: OrganizationDirectorySyncGroupTeamStatus[];
5812
- }, Error>>;
5813
5828
  /**
5814
5829
  * No description
5815
5830
  *
@@ -6224,6 +6239,31 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
6224
6239
  * @secure
6225
6240
  */
6226
6241
  updateSnippet: (organizationId: string, snippetId: string, data: UpdateSnippetSchema, params?: RequestParams) => Promise<HttpResponse<Snippet, Error>>;
6242
+ /**
6243
+ * No description
6244
+ *
6245
+ * @tags organizations
6246
+ * @name MoveSnippet
6247
+ * @summary Move a snippet into a destination. The snippet will be archived in the process.
6248
+ * @request POST:/orgs/{organizationId}/snippets/{snippetId}/move
6249
+ * @secure
6250
+ */
6251
+ moveSnippet: (organizationId: string, snippetId: string, data: {
6252
+ /** Intended destination for the page */
6253
+ target: {
6254
+ /** The id of the target space */
6255
+ space: string;
6256
+ position?: {
6257
+ /** The parent of the page in the target space. If undefined, the page will be inserted at the root of the space. */
6258
+ parent?: string;
6259
+ /** The index of the page in the parent. If undefined, the page will be inserted at the end of the parent's current children. */
6260
+ index?: number;
6261
+ };
6262
+ };
6263
+ }, params?: RequestParams) => Promise<HttpResponse<{
6264
+ page: RevisionPageDocument;
6265
+ changeRequest?: ChangeRequest;
6266
+ }, Error>>;
6227
6267
  /**
6228
6268
  * No description
6229
6269
  *
@@ -6236,6 +6276,15 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
6236
6276
  /** Answer from AI for a question asked on a content. */
6237
6277
  answer?: SearchAIAnswer;
6238
6278
  }, Error>>;
6279
+ /**
6280
+ * No description
6281
+ *
6282
+ * @name GetRecommendedQuestionsInOrganization
6283
+ * @summary Get a list of questions recommended to be asked in an organization.
6284
+ * @request GET:/orgs/{organizationId}/ask/questions
6285
+ * @secure
6286
+ */
6287
+ getRecommendedQuestionsInOrganization: (organizationId: string, params?: RequestParams) => Promise<HttpResponse<SearchAIRecommendedQuestions, Error>>;
6239
6288
  /**
6240
6289
  * No description
6241
6290
  *
package/dist/index.cjs CHANGED
@@ -57,6 +57,7 @@ __export(src_exports, {
57
57
  OrganizationCommunityType: () => OrganizationCommunityType,
58
58
  OrganizationType: () => OrganizationType,
59
59
  OrganizationUseCase: () => OrganizationUseCase,
60
+ PageFeedbackRating: () => PageFeedbackRating,
60
61
  PurgeCDNCacheContextType: () => PurgeCDNCacheContextType,
61
62
  RevisionPageLayoutOptionsCoverSize: () => RevisionPageLayoutOptionsCoverSize,
62
63
  RevisionPageLayoutPreset: () => RevisionPageLayoutPreset,
@@ -363,6 +364,12 @@ var CustomizationCorners = /* @__PURE__ */ ((CustomizationCorners2) => {
363
364
  CustomizationCorners2["Rounded"] = "rounded";
364
365
  return CustomizationCorners2;
365
366
  })(CustomizationCorners || {});
367
+ var PageFeedbackRating = /* @__PURE__ */ ((PageFeedbackRating2) => {
368
+ PageFeedbackRating2["Bad"] = "bad";
369
+ PageFeedbackRating2["Ok"] = "ok";
370
+ PageFeedbackRating2["Good"] = "good";
371
+ return PageFeedbackRating2;
372
+ })(PageFeedbackRating || {});
366
373
  var ContentType = /* @__PURE__ */ ((ContentType2) => {
367
374
  ContentType2["Json"] = "application/json";
368
375
  ContentType2["FormData"] = "multipart/form-data";
@@ -1157,6 +1164,13 @@ var Api = class extends HttpClient {
1157
1164
  format: "json",
1158
1165
  ...params
1159
1166
  }),
1167
+ listSpaceIntegrationScripts: (spaceId, params = {}) => this.request({
1168
+ path: `/spaces/${spaceId}/integration-scripts`,
1169
+ method: "GET",
1170
+ secure: true,
1171
+ format: "json",
1172
+ ...params
1173
+ }),
1160
1174
  getSpaceCustomFields: (spaceId, params = {}) => this.request({
1161
1175
  path: `/spaces/${spaceId}/custom-fields`,
1162
1176
  method: "GET",
@@ -1171,6 +1185,22 @@ var Api = class extends HttpClient {
1171
1185
  secure: true,
1172
1186
  type: "application/json" /* Json */,
1173
1187
  ...params
1188
+ }),
1189
+ getPageFeedback: (spaceId, pageId, visitorId, params = {}) => this.request({
1190
+ path: `/spaces/${spaceId}/pages/${pageId}/feedbacks/${visitorId}`,
1191
+ method: "GET",
1192
+ secure: true,
1193
+ format: "json",
1194
+ ...params
1195
+ }),
1196
+ createPageFeedback: (spaceId, pageId, visitorId, data, params = {}) => this.request({
1197
+ path: `/spaces/${spaceId}/pages/${pageId}/feedbacks/${visitorId}`,
1198
+ method: "PUT",
1199
+ body: data,
1200
+ secure: true,
1201
+ type: "application/json" /* Json */,
1202
+ format: "json",
1203
+ ...params
1174
1204
  })
1175
1205
  };
1176
1206
  this.collections = {
@@ -1675,29 +1705,6 @@ var Api = class extends HttpClient {
1675
1705
  format: "json",
1676
1706
  ...params
1677
1707
  }),
1678
- setupDirectorySync: (organizationId, params = {}) => this.request({
1679
- path: `/orgs/${organizationId}/dsync`,
1680
- method: "POST",
1681
- secure: true,
1682
- format: "json",
1683
- ...params
1684
- }),
1685
- listDirectorySyncGroups: (organizationId, params = {}) => this.request({
1686
- path: `/orgs/${organizationId}/dsync/groups`,
1687
- method: "GET",
1688
- secure: true,
1689
- format: "json",
1690
- ...params
1691
- }),
1692
- syncDirectorySyncGroupsToTeams: (organizationId, data, params = {}) => this.request({
1693
- path: `/orgs/${organizationId}/dsync/teams`,
1694
- method: "POST",
1695
- body: data,
1696
- secure: true,
1697
- type: "application/json" /* Json */,
1698
- format: "json",
1699
- ...params
1700
- }),
1701
1708
  listOrganizationCustomFields: (organizationId, query, params = {}) => this.request({
1702
1709
  path: `/orgs/${organizationId}/custom-fields`,
1703
1710
  method: "GET",
@@ -1925,6 +1932,15 @@ var Api = class extends HttpClient {
1925
1932
  format: "json",
1926
1933
  ...params
1927
1934
  }),
1935
+ moveSnippet: (organizationId, snippetId, data, params = {}) => this.request({
1936
+ path: `/orgs/${organizationId}/snippets/${snippetId}/move`,
1937
+ method: "POST",
1938
+ body: data,
1939
+ secure: true,
1940
+ type: "application/json" /* Json */,
1941
+ format: "json",
1942
+ ...params
1943
+ }),
1928
1944
  askInOrganization: (organizationId, data, params = {}) => this.request({
1929
1945
  path: `/orgs/${organizationId}/ask`,
1930
1946
  method: "POST",
@@ -1934,6 +1950,13 @@ var Api = class extends HttpClient {
1934
1950
  format: "json",
1935
1951
  ...params
1936
1952
  }),
1953
+ getRecommendedQuestionsInOrganization: (organizationId, params = {}) => this.request({
1954
+ path: `/orgs/${organizationId}/ask/questions`,
1955
+ method: "GET",
1956
+ secure: true,
1957
+ format: "json",
1958
+ ...params
1959
+ }),
1937
1960
  listContentAuditRelations: (organizationId, query, params = {}) => this.request({
1938
1961
  path: `/orgs/${organizationId}/insights/audit-relations`,
1939
1962
  method: "GET",
@@ -2109,6 +2132,7 @@ var GitBookAPI = class extends Api {
2109
2132
  OrganizationCommunityType,
2110
2133
  OrganizationType,
2111
2134
  OrganizationUseCase,
2135
+ PageFeedbackRating,
2112
2136
  PurgeCDNCacheContextType,
2113
2137
  RevisionPageLayoutOptionsCoverSize,
2114
2138
  RevisionPageLayoutPreset,
package/dist/index.js CHANGED
@@ -295,6 +295,12 @@ var CustomizationCorners = /* @__PURE__ */ ((CustomizationCorners2) => {
295
295
  CustomizationCorners2["Rounded"] = "rounded";
296
296
  return CustomizationCorners2;
297
297
  })(CustomizationCorners || {});
298
+ var PageFeedbackRating = /* @__PURE__ */ ((PageFeedbackRating2) => {
299
+ PageFeedbackRating2["Bad"] = "bad";
300
+ PageFeedbackRating2["Ok"] = "ok";
301
+ PageFeedbackRating2["Good"] = "good";
302
+ return PageFeedbackRating2;
303
+ })(PageFeedbackRating || {});
298
304
  var ContentType = /* @__PURE__ */ ((ContentType2) => {
299
305
  ContentType2["Json"] = "application/json";
300
306
  ContentType2["FormData"] = "multipart/form-data";
@@ -1089,6 +1095,13 @@ var Api = class extends HttpClient {
1089
1095
  format: "json",
1090
1096
  ...params
1091
1097
  }),
1098
+ listSpaceIntegrationScripts: (spaceId, params = {}) => this.request({
1099
+ path: `/spaces/${spaceId}/integration-scripts`,
1100
+ method: "GET",
1101
+ secure: true,
1102
+ format: "json",
1103
+ ...params
1104
+ }),
1092
1105
  getSpaceCustomFields: (spaceId, params = {}) => this.request({
1093
1106
  path: `/spaces/${spaceId}/custom-fields`,
1094
1107
  method: "GET",
@@ -1103,6 +1116,22 @@ var Api = class extends HttpClient {
1103
1116
  secure: true,
1104
1117
  type: "application/json" /* Json */,
1105
1118
  ...params
1119
+ }),
1120
+ getPageFeedback: (spaceId, pageId, visitorId, params = {}) => this.request({
1121
+ path: `/spaces/${spaceId}/pages/${pageId}/feedbacks/${visitorId}`,
1122
+ method: "GET",
1123
+ secure: true,
1124
+ format: "json",
1125
+ ...params
1126
+ }),
1127
+ createPageFeedback: (spaceId, pageId, visitorId, data, params = {}) => this.request({
1128
+ path: `/spaces/${spaceId}/pages/${pageId}/feedbacks/${visitorId}`,
1129
+ method: "PUT",
1130
+ body: data,
1131
+ secure: true,
1132
+ type: "application/json" /* Json */,
1133
+ format: "json",
1134
+ ...params
1106
1135
  })
1107
1136
  };
1108
1137
  this.collections = {
@@ -1607,29 +1636,6 @@ var Api = class extends HttpClient {
1607
1636
  format: "json",
1608
1637
  ...params
1609
1638
  }),
1610
- setupDirectorySync: (organizationId, params = {}) => this.request({
1611
- path: `/orgs/${organizationId}/dsync`,
1612
- method: "POST",
1613
- secure: true,
1614
- format: "json",
1615
- ...params
1616
- }),
1617
- listDirectorySyncGroups: (organizationId, params = {}) => this.request({
1618
- path: `/orgs/${organizationId}/dsync/groups`,
1619
- method: "GET",
1620
- secure: true,
1621
- format: "json",
1622
- ...params
1623
- }),
1624
- syncDirectorySyncGroupsToTeams: (organizationId, data, params = {}) => this.request({
1625
- path: `/orgs/${organizationId}/dsync/teams`,
1626
- method: "POST",
1627
- body: data,
1628
- secure: true,
1629
- type: "application/json" /* Json */,
1630
- format: "json",
1631
- ...params
1632
- }),
1633
1639
  listOrganizationCustomFields: (organizationId, query, params = {}) => this.request({
1634
1640
  path: `/orgs/${organizationId}/custom-fields`,
1635
1641
  method: "GET",
@@ -1857,6 +1863,15 @@ var Api = class extends HttpClient {
1857
1863
  format: "json",
1858
1864
  ...params
1859
1865
  }),
1866
+ moveSnippet: (organizationId, snippetId, data, params = {}) => this.request({
1867
+ path: `/orgs/${organizationId}/snippets/${snippetId}/move`,
1868
+ method: "POST",
1869
+ body: data,
1870
+ secure: true,
1871
+ type: "application/json" /* Json */,
1872
+ format: "json",
1873
+ ...params
1874
+ }),
1860
1875
  askInOrganization: (organizationId, data, params = {}) => this.request({
1861
1876
  path: `/orgs/${organizationId}/ask`,
1862
1877
  method: "POST",
@@ -1866,6 +1881,13 @@ var Api = class extends HttpClient {
1866
1881
  format: "json",
1867
1882
  ...params
1868
1883
  }),
1884
+ getRecommendedQuestionsInOrganization: (organizationId, params = {}) => this.request({
1885
+ path: `/orgs/${organizationId}/ask/questions`,
1886
+ method: "GET",
1887
+ secure: true,
1888
+ format: "json",
1889
+ ...params
1890
+ }),
1869
1891
  listContentAuditRelations: (organizationId, query, params = {}) => this.request({
1870
1892
  path: `/orgs/${organizationId}/insights/audit-relations`,
1871
1893
  method: "GET",
@@ -2040,6 +2062,7 @@ export {
2040
2062
  OrganizationCommunityType,
2041
2063
  OrganizationType,
2042
2064
  OrganizationUseCase,
2065
+ PageFeedbackRating,
2043
2066
  PurgeCDNCacheContextType,
2044
2067
  RevisionPageLayoutOptionsCoverSize,
2045
2068
  RevisionPageLayoutPreset,
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.20.1",
7
+ "version": "0.21.0",
8
8
  "sideEffects": false,
9
9
  "files": [
10
10
  "README.md",