@gitbook/api 0.20.0 → 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";
@@ -452,18 +459,15 @@ var HttpClient = class {
452
459
  if (r.ok) {
453
460
  r.data = data2;
454
461
  } else {
455
- r.error = data2;
462
+ throw new Error(`${response.status} ${response.statusText}`);
456
463
  }
457
464
  return r;
458
- }).catch((e) => {
459
- r.error = e;
460
- return r;
461
465
  });
462
466
  if (cancelToken) {
463
467
  this.abortControllers.delete(cancelToken);
464
468
  }
465
469
  if (!response.ok)
466
- throw data;
470
+ throw new Error(`${response.status} ${response.statusText}`);
467
471
  return data;
468
472
  });
469
473
  };
@@ -1160,6 +1164,13 @@ var Api = class extends HttpClient {
1160
1164
  format: "json",
1161
1165
  ...params
1162
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
+ }),
1163
1174
  getSpaceCustomFields: (spaceId, params = {}) => this.request({
1164
1175
  path: `/spaces/${spaceId}/custom-fields`,
1165
1176
  method: "GET",
@@ -1174,6 +1185,22 @@ var Api = class extends HttpClient {
1174
1185
  secure: true,
1175
1186
  type: "application/json" /* Json */,
1176
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
1177
1204
  })
1178
1205
  };
1179
1206
  this.collections = {
@@ -1678,29 +1705,6 @@ var Api = class extends HttpClient {
1678
1705
  format: "json",
1679
1706
  ...params
1680
1707
  }),
1681
- setupDirectorySync: (organizationId, params = {}) => this.request({
1682
- path: `/orgs/${organizationId}/dsync`,
1683
- method: "POST",
1684
- secure: true,
1685
- format: "json",
1686
- ...params
1687
- }),
1688
- listDirectorySyncGroups: (organizationId, params = {}) => this.request({
1689
- path: `/orgs/${organizationId}/dsync/groups`,
1690
- method: "GET",
1691
- secure: true,
1692
- format: "json",
1693
- ...params
1694
- }),
1695
- syncDirectorySyncGroupsToTeams: (organizationId, data, params = {}) => this.request({
1696
- path: `/orgs/${organizationId}/dsync/teams`,
1697
- method: "POST",
1698
- body: data,
1699
- secure: true,
1700
- type: "application/json" /* Json */,
1701
- format: "json",
1702
- ...params
1703
- }),
1704
1708
  listOrganizationCustomFields: (organizationId, query, params = {}) => this.request({
1705
1709
  path: `/orgs/${organizationId}/custom-fields`,
1706
1710
  method: "GET",
@@ -1928,6 +1932,15 @@ var Api = class extends HttpClient {
1928
1932
  format: "json",
1929
1933
  ...params
1930
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
+ }),
1931
1944
  askInOrganization: (organizationId, data, params = {}) => this.request({
1932
1945
  path: `/orgs/${organizationId}/ask`,
1933
1946
  method: "POST",
@@ -1937,6 +1950,13 @@ var Api = class extends HttpClient {
1937
1950
  format: "json",
1938
1951
  ...params
1939
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
+ }),
1940
1960
  listContentAuditRelations: (organizationId, query, params = {}) => this.request({
1941
1961
  path: `/orgs/${organizationId}/insights/audit-relations`,
1942
1962
  method: "GET",
@@ -2112,6 +2132,7 @@ var GitBookAPI = class extends Api {
2112
2132
  OrganizationCommunityType,
2113
2133
  OrganizationType,
2114
2134
  OrganizationUseCase,
2135
+ PageFeedbackRating,
2115
2136
  PurgeCDNCacheContextType,
2116
2137
  RevisionPageLayoutOptionsCoverSize,
2117
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";
@@ -384,18 +390,15 @@ var HttpClient = class {
384
390
  if (r.ok) {
385
391
  r.data = data2;
386
392
  } else {
387
- r.error = data2;
393
+ throw new Error(`${response.status} ${response.statusText}`);
388
394
  }
389
395
  return r;
390
- }).catch((e) => {
391
- r.error = e;
392
- return r;
393
396
  });
394
397
  if (cancelToken) {
395
398
  this.abortControllers.delete(cancelToken);
396
399
  }
397
400
  if (!response.ok)
398
- throw data;
401
+ throw new Error(`${response.status} ${response.statusText}`);
399
402
  return data;
400
403
  });
401
404
  };
@@ -1092,6 +1095,13 @@ var Api = class extends HttpClient {
1092
1095
  format: "json",
1093
1096
  ...params
1094
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
+ }),
1095
1105
  getSpaceCustomFields: (spaceId, params = {}) => this.request({
1096
1106
  path: `/spaces/${spaceId}/custom-fields`,
1097
1107
  method: "GET",
@@ -1106,6 +1116,22 @@ var Api = class extends HttpClient {
1106
1116
  secure: true,
1107
1117
  type: "application/json" /* Json */,
1108
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
1109
1135
  })
1110
1136
  };
1111
1137
  this.collections = {
@@ -1610,29 +1636,6 @@ var Api = class extends HttpClient {
1610
1636
  format: "json",
1611
1637
  ...params
1612
1638
  }),
1613
- setupDirectorySync: (organizationId, params = {}) => this.request({
1614
- path: `/orgs/${organizationId}/dsync`,
1615
- method: "POST",
1616
- secure: true,
1617
- format: "json",
1618
- ...params
1619
- }),
1620
- listDirectorySyncGroups: (organizationId, params = {}) => this.request({
1621
- path: `/orgs/${organizationId}/dsync/groups`,
1622
- method: "GET",
1623
- secure: true,
1624
- format: "json",
1625
- ...params
1626
- }),
1627
- syncDirectorySyncGroupsToTeams: (organizationId, data, params = {}) => this.request({
1628
- path: `/orgs/${organizationId}/dsync/teams`,
1629
- method: "POST",
1630
- body: data,
1631
- secure: true,
1632
- type: "application/json" /* Json */,
1633
- format: "json",
1634
- ...params
1635
- }),
1636
1639
  listOrganizationCustomFields: (organizationId, query, params = {}) => this.request({
1637
1640
  path: `/orgs/${organizationId}/custom-fields`,
1638
1641
  method: "GET",
@@ -1860,6 +1863,15 @@ var Api = class extends HttpClient {
1860
1863
  format: "json",
1861
1864
  ...params
1862
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
+ }),
1863
1875
  askInOrganization: (organizationId, data, params = {}) => this.request({
1864
1876
  path: `/orgs/${organizationId}/ask`,
1865
1877
  method: "POST",
@@ -1869,6 +1881,13 @@ var Api = class extends HttpClient {
1869
1881
  format: "json",
1870
1882
  ...params
1871
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
+ }),
1872
1891
  listContentAuditRelations: (organizationId, query, params = {}) => this.request({
1873
1892
  path: `/orgs/${organizationId}/insights/audit-relations`,
1874
1893
  method: "GET",
@@ -2043,6 +2062,7 @@ export {
2043
2062
  OrganizationCommunityType,
2044
2063
  OrganizationType,
2045
2064
  OrganizationUseCase,
2065
+ PageFeedbackRating,
2046
2066
  PurgeCDNCacheContextType,
2047
2067
  RevisionPageLayoutOptionsCoverSize,
2048
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.0",
7
+ "version": "0.21.0",
8
8
  "sideEffects": false,
9
9
  "files": [
10
10
  "README.md",