@gitbook/api 0.15.0 → 0.16.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
@@ -1443,7 +1443,7 @@ export interface Capture {
1443
1443
  */
1444
1444
  export declare type CaptureTitle = string;
1445
1445
  export declare type CaptureEvent = CaptureTerminalCommandEvent | CaptureSpeechEvent | CaptureThreadMessageEvent | CaptureFileAddedEvent | CaptureFileChangedEvent | CaptureFileRemovedEvent;
1446
- export declare type CaptureContext = 'meeting' | 'thread' | 'walkthrough';
1446
+ export declare type CaptureContext = 'thread' | 'walkthrough' | 'document';
1447
1447
  export interface BaseCaptureEvent {
1448
1448
  /** The type of event */
1449
1449
  type: string;
@@ -1497,6 +1497,29 @@ export interface UpdateCaptureSchema {
1497
1497
  /** Content of the capture. */
1498
1498
  body?: Document;
1499
1499
  }
1500
+ export declare type Snippet = Document & {
1501
+ id: string;
1502
+ createdAt: string;
1503
+ editedAt?: string;
1504
+ title?: string;
1505
+ source: {
1506
+ sourceId: string;
1507
+ name: string;
1508
+ externalId?: string;
1509
+ externalUrl?: URL;
1510
+ };
1511
+ contributors: (Integration | User)[];
1512
+ urls: {
1513
+ location: URL;
1514
+ app: URL;
1515
+ };
1516
+ };
1517
+ export interface UpdateSnippetSchema {
1518
+ /** A new title for the snippet. */
1519
+ title?: string;
1520
+ /** Content of the snippet. */
1521
+ body?: Document;
1522
+ }
1500
1523
  /**
1501
1524
  * Content audit relation
1502
1525
  */
@@ -1897,6 +1920,7 @@ export declare type IntegrationSummary = string;
1897
1920
  export declare type IntegrationScopes = IntegrationScope[];
1898
1921
  export declare enum IntegrationScope {
1899
1922
  EntitiesWrite = "entities:write",
1923
+ SnippetsRead = "snippets:read",
1900
1924
  CaptureWrite = "capture:write",
1901
1925
  SpaceViewsRead = "space:views:read",
1902
1926
  SpaceContentRead = "space:content:read",
@@ -3696,11 +3720,22 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
3696
3720
  * @secure
3697
3721
  */
3698
3722
  importContent: (spaceId: string, data: RequestImportContent, params?: RequestParams) => Promise<HttpResponse<ImportContentResult, Error>>;
3723
+ /**
3724
+ * No description
3725
+ *
3726
+ * @name ListPages
3727
+ * @summary List all pages for the main revision content of a space
3728
+ * @request GET:/spaces/{spaceId}/content/pages
3729
+ * @secure
3730
+ */
3731
+ listPages: (spaceId: string, params?: RequestParams) => Promise<HttpResponse<{
3732
+ pages?: RevisionPage[];
3733
+ }, Error>>;
3699
3734
  /**
3700
3735
  * No description
3701
3736
  *
3702
3737
  * @name ListFiles
3703
- * @summary List all files for the latest primary revision content for a space
3738
+ * @summary List all files for the main revision content of a space
3704
3739
  * @request GET:/spaces/{spaceId}/content/files
3705
3740
  * @secure
3706
3741
  */
@@ -3710,6 +3745,15 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
3710
3745
  }, params?: RequestParams) => Promise<HttpResponse<List & {
3711
3746
  items: RevisionFile[];
3712
3747
  }, Error>>;
3748
+ /**
3749
+ * No description
3750
+ *
3751
+ * @name GetFileById
3752
+ * @summary Get a file by its ID in the main revision of a space
3753
+ * @request GET:/spaces/{spaceId}/content/files/{fileId}
3754
+ * @secure
3755
+ */
3756
+ getFileById: (spaceId: string, fileId: string, params?: RequestParams) => Promise<HttpResponse<RevisionFile, Error>>;
3713
3757
  /**
3714
3758
  * No description
3715
3759
  *
@@ -4028,11 +4072,22 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
4028
4072
  * @secure
4029
4073
  */
4030
4074
  importContentInChangeRequest: (spaceId: string, changeRequestId: string | number, data: RequestImportContent, params?: RequestParams) => Promise<HttpResponse<ImportContentResult, Error>>;
4075
+ /**
4076
+ * No description
4077
+ *
4078
+ * @name ListPagesInChangeRequest
4079
+ * @summary List all pages in the content of a change request
4080
+ * @request GET:/spaces/{spaceId}/change-requests/{changeRequestId}/content/pages
4081
+ * @secure
4082
+ */
4083
+ listPagesInChangeRequest: (spaceId: string, changeRequestId: string | number, params?: RequestParams) => Promise<HttpResponse<{
4084
+ pages?: RevisionPage[];
4085
+ }, Error>>;
4031
4086
  /**
4032
4087
  * No description
4033
4088
  *
4034
4089
  * @name ListFilesInChangeRequestById
4035
- * @summary List all files in the latest content of the change-request
4090
+ * @summary List all files in a change request content
4036
4091
  * @request GET:/spaces/{spaceId}/change-requests/{changeRequestId}/content/files
4037
4092
  * @secure
4038
4093
  */
@@ -4042,6 +4097,15 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
4042
4097
  }, params?: RequestParams) => Promise<HttpResponse<List & {
4043
4098
  items: RevisionFile[];
4044
4099
  }, Error>>;
4100
+ /**
4101
+ * No description
4102
+ *
4103
+ * @name GetFileInChangeRequestById
4104
+ * @summary Get a file by its ID in the content of a change request
4105
+ * @request GET:/spaces/{spaceId}/change-requests/{changeRequestId}/content/files/{fileId}
4106
+ * @secure
4107
+ */
4108
+ getFileInChangeRequestById: (spaceId: string, changeRequestId: string | number, fileId: string, params?: RequestParams) => Promise<HttpResponse<RevisionFile, Error>>;
4045
4109
  /**
4046
4110
  * No description
4047
4111
  *
@@ -4097,6 +4161,17 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
4097
4161
  changes: RevisionSemanticChange[];
4098
4162
  more?: number;
4099
4163
  }, Error>>;
4164
+ /**
4165
+ * No description
4166
+ *
4167
+ * @name ListPagesInRevisionById
4168
+ * @summary List all pages in a revision
4169
+ * @request GET:/spaces/{spaceId}/revisions/{revisionId}/pages
4170
+ * @secure
4171
+ */
4172
+ listPagesInRevisionById: (spaceId: string, revisionId: string, params?: RequestParams) => Promise<HttpResponse<{
4173
+ pages?: RevisionPage[];
4174
+ }, Error>>;
4100
4175
  /**
4101
4176
  * No description
4102
4177
  *
@@ -4111,6 +4186,15 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
4111
4186
  }, params?: RequestParams) => Promise<HttpResponse<List & {
4112
4187
  items: RevisionFile[];
4113
4188
  }, Error>>;
4189
+ /**
4190
+ * No description
4191
+ *
4192
+ * @name GetFileInRevisionById
4193
+ * @summary Get a file in a revision by its ID
4194
+ * @request GET:/spaces/{spaceId}/revisions/{revisionId}/files/{fileId}
4195
+ * @secure
4196
+ */
4197
+ getFileInRevisionById: (spaceId: string, revisionId: string, fileId: string, params?: RequestParams) => Promise<HttpResponse<RevisionFile, Error>>;
4114
4198
  /**
4115
4199
  * No description
4116
4200
  *
@@ -5456,8 +5540,9 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
5456
5540
  *
5457
5541
  * @tags organizations
5458
5542
  * @name ListCaptures
5459
- * @summary List captures
5543
+ * @summary List captures. Deprecated, use listSnippets instead.
5460
5544
  * @request GET:/orgs/{organizationId}/captures
5545
+ * @deprecated
5461
5546
  * @secure
5462
5547
  */
5463
5548
  listCaptures: (organizationId: string, query?: {
@@ -5488,8 +5573,9 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
5488
5573
  *
5489
5574
  * @tags organizations
5490
5575
  * @name GetCapture
5491
- * @summary Get a capture by its ID
5576
+ * @summary Get a capture by its ID. Deprecated, use getSnippet instead.
5492
5577
  * @request GET:/orgs/{organizationId}/captures/{captureId}
5578
+ * @deprecated
5493
5579
  * @secure
5494
5580
  */
5495
5581
  getCapture: (organizationId: string, captureId: string, query?: {
@@ -5500,8 +5586,9 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
5500
5586
  *
5501
5587
  * @tags organizations
5502
5588
  * @name DeleteCapture
5503
- * @summary Delete a capture by its ID
5589
+ * @summary Delete a capture by its ID. Deprecated, use deleteSnippet.
5504
5590
  * @request DELETE:/orgs/{organizationId}/captures/{captureId}
5591
+ * @deprecated
5505
5592
  * @secure
5506
5593
  */
5507
5594
  deleteCapture: (organizationId: string, captureId: string, params?: RequestParams) => Promise<HttpResponse<void, Error>>;
@@ -5510,8 +5597,9 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
5510
5597
  *
5511
5598
  * @tags organizations
5512
5599
  * @name UpdateCapture
5513
- * @summary Update an existing capture
5600
+ * @summary Update an existing capture. Deprecated, use updateSnippet.
5514
5601
  * @request PUT:/orgs/{organizationId}/captures/{captureId}
5602
+ * @deprecated
5515
5603
  * @secure
5516
5604
  */
5517
5605
  updateCapture: (organizationId: string, captureId: string, data: UpdateCaptureSchema, params?: RequestParams) => Promise<HttpResponse<Capture, Error>>;
@@ -5542,6 +5630,65 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
5542
5630
  capture: Capture;
5543
5631
  followupQuestions?: string[];
5544
5632
  }, Error>>;
5633
+ /**
5634
+ * @description List snippets in an organization, newest first.
5635
+ *
5636
+ * @tags organizations
5637
+ * @name ListSnippets
5638
+ * @summary Lists snippets.
5639
+ * @request GET:/orgs/{organizationId}/snippets
5640
+ * @secure
5641
+ */
5642
+ listSnippets: (organizationId: string, query?: {
5643
+ format?: 'document' | 'markdown';
5644
+ page?: string;
5645
+ limit?: number;
5646
+ source?: string;
5647
+ }, params?: RequestParams) => Promise<HttpResponse<List & {
5648
+ items: Snippet[];
5649
+ }, Error>>;
5650
+ /**
5651
+ * No description
5652
+ *
5653
+ * @tags organizations
5654
+ * @name CreateSnippet
5655
+ * @summary Create a new snippet
5656
+ * @request POST:/orgs/{organizationId}/snippets
5657
+ * @secure
5658
+ */
5659
+ createSnippet: (organizationId: string, data: object, params?: RequestParams) => Promise<HttpResponse<Snippet, Error>>;
5660
+ /**
5661
+ * No description
5662
+ *
5663
+ * @tags organizations
5664
+ * @name GetSnippet
5665
+ * @summary Get a snippet by its ID
5666
+ * @request GET:/orgs/{organizationId}/snippets/{snippetId}
5667
+ * @secure
5668
+ */
5669
+ getSnippet: (organizationId: string, snippetId: string, query?: {
5670
+ format?: 'document' | 'markdown';
5671
+ }, params?: RequestParams) => Promise<HttpResponse<Snippet, Error>>;
5672
+ /**
5673
+ * No description
5674
+ *
5675
+ * @tags organizations
5676
+ * @name DeleteSnippet
5677
+ * @summary Delete a snippet by its ID.
5678
+ * @request DELETE:/orgs/{organizationId}/snippets/{snippetId}
5679
+ * @secure
5680
+ */
5681
+ deleteSnippet: (organizationId: string, snippetId: string, params?: RequestParams) => Promise<HttpResponse<void, Error>>;
5682
+ /**
5683
+ * No description
5684
+ *
5685
+ * @tags organizations
5686
+ * @name UpdateSnippet
5687
+ * @summary Update an existing snippet.
5688
+ * @request PUT:/orgs/{organizationId}/snippets/{snippetId}
5689
+ * @secure
5690
+ */
5691
+ updateSnippet: (organizationId: string, snippetId: string, data: UpdateSnippetSchema, params?: RequestParams) => Promise<HttpResponse<Snippet, Error>>;
5545
5692
  /**
5546
5693
  * No description
5547
5694
  *
@@ -5584,6 +5731,23 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
5584
5731
  message: string;
5585
5732
  };
5586
5733
  }>>;
5734
+ /**
5735
+ * No description
5736
+ *
5737
+ * @tags organizations
5738
+ * @name GetContentAuditSourceContentById
5739
+ * @summary Get the content of an audit source
5740
+ * @request GET:/orgs/{organizationId}/insights/audit-sources/{sourceId}/content
5741
+ * @secure
5742
+ */
5743
+ getContentAuditSourceContentById: (organizationId: string, sourceId: string, query?: {
5744
+ format?: 'document' | 'markdown';
5745
+ }, params?: RequestParams) => Promise<HttpResponse<Document, Error | {
5746
+ error: {
5747
+ code: 404;
5748
+ message: string;
5749
+ };
5750
+ }>>;
5587
5751
  };
5588
5752
  internal: {
5589
5753
  /**
package/dist/index.cjs CHANGED
@@ -182,6 +182,7 @@ var AnalyticsTrafficInterval = /* @__PURE__ */ ((AnalyticsTrafficInterval2) => {
182
182
  })(AnalyticsTrafficInterval || {});
183
183
  var IntegrationScope = /* @__PURE__ */ ((IntegrationScope2) => {
184
184
  IntegrationScope2["EntitiesWrite"] = "entities:write";
185
+ IntegrationScope2["SnippetsRead"] = "snippets:read";
185
186
  IntegrationScope2["CaptureWrite"] = "capture:write";
186
187
  IntegrationScope2["SpaceViewsRead"] = "space:views:read";
187
188
  IntegrationScope2["SpaceContentRead"] = "space:content:read";
@@ -686,11 +687,26 @@ var Api = class extends HttpClient {
686
687
  format: "json",
687
688
  ...params
688
689
  }),
690
+ listPages: (spaceId, params = {}) => this.request({
691
+ path: `/spaces/${spaceId}/content/pages`,
692
+ method: "GET",
693
+ secure: true,
694
+ format: "json",
695
+ ...params
696
+ }),
689
697
  listFiles: (spaceId, query, params = {}) => this.request({
690
698
  path: `/spaces/${spaceId}/content/files`,
691
699
  method: "GET",
692
700
  query,
693
701
  secure: true,
702
+ format: "json",
703
+ ...params
704
+ }),
705
+ getFileById: (spaceId, fileId, params = {}) => this.request({
706
+ path: `/spaces/${spaceId}/content/files/${fileId}`,
707
+ method: "GET",
708
+ secure: true,
709
+ format: "json",
694
710
  ...params
695
711
  }),
696
712
  getPageById: (spaceId, pageId, query, params = {}) => this.request({
@@ -894,11 +910,26 @@ var Api = class extends HttpClient {
894
910
  format: "json",
895
911
  ...params
896
912
  }),
913
+ listPagesInChangeRequest: (spaceId, changeRequestId, params = {}) => this.request({
914
+ path: `/spaces/${spaceId}/change-requests/${changeRequestId}/content/pages`,
915
+ method: "GET",
916
+ secure: true,
917
+ format: "json",
918
+ ...params
919
+ }),
897
920
  listFilesInChangeRequestById: (spaceId, changeRequestId, query, params = {}) => this.request({
898
921
  path: `/spaces/${spaceId}/change-requests/${changeRequestId}/content/files`,
899
922
  method: "GET",
900
923
  query,
901
924
  secure: true,
925
+ format: "json",
926
+ ...params
927
+ }),
928
+ getFileInChangeRequestById: (spaceId, changeRequestId, fileId, params = {}) => this.request({
929
+ path: `/spaces/${spaceId}/change-requests/${changeRequestId}/content/files/${fileId}`,
930
+ method: "GET",
931
+ secure: true,
932
+ format: "json",
902
933
  ...params
903
934
  }),
904
935
  getPageInChangeRequestById: (spaceId, changeRequestId, pageId, query, params = {}) => this.request({
@@ -941,11 +972,26 @@ var Api = class extends HttpClient {
941
972
  format: "json",
942
973
  ...params
943
974
  }),
975
+ listPagesInRevisionById: (spaceId, revisionId, params = {}) => this.request({
976
+ path: `/spaces/${spaceId}/revisions/${revisionId}/pages`,
977
+ method: "GET",
978
+ secure: true,
979
+ format: "json",
980
+ ...params
981
+ }),
944
982
  listFilesInRevisionById: (spaceId, revisionId, query, params = {}) => this.request({
945
983
  path: `/spaces/${spaceId}/revisions/${revisionId}/files`,
946
984
  method: "GET",
947
985
  query,
948
986
  secure: true,
987
+ format: "json",
988
+ ...params
989
+ }),
990
+ getFileInRevisionById: (spaceId, revisionId, fileId, params = {}) => this.request({
991
+ path: `/spaces/${spaceId}/revisions/${revisionId}/files/${fileId}`,
992
+ method: "GET",
993
+ secure: true,
994
+ format: "json",
949
995
  ...params
950
996
  }),
951
997
  getPageInRevisionById: (spaceId, revisionId, pageId, query, params = {}) => this.request({
@@ -1795,6 +1841,46 @@ var Api = class extends HttpClient {
1795
1841
  format: "json",
1796
1842
  ...params
1797
1843
  }),
1844
+ listSnippets: (organizationId, query, params = {}) => this.request({
1845
+ path: `/orgs/${organizationId}/snippets`,
1846
+ method: "GET",
1847
+ query,
1848
+ secure: true,
1849
+ format: "json",
1850
+ ...params
1851
+ }),
1852
+ createSnippet: (organizationId, data, params = {}) => this.request({
1853
+ path: `/orgs/${organizationId}/snippets`,
1854
+ method: "POST",
1855
+ body: data,
1856
+ secure: true,
1857
+ type: "application/json" /* Json */,
1858
+ format: "json",
1859
+ ...params
1860
+ }),
1861
+ getSnippet: (organizationId, snippetId, query, params = {}) => this.request({
1862
+ path: `/orgs/${organizationId}/snippets/${snippetId}`,
1863
+ method: "GET",
1864
+ query,
1865
+ secure: true,
1866
+ format: "json",
1867
+ ...params
1868
+ }),
1869
+ deleteSnippet: (organizationId, snippetId, params = {}) => this.request({
1870
+ path: `/orgs/${organizationId}/snippets/${snippetId}`,
1871
+ method: "DELETE",
1872
+ secure: true,
1873
+ ...params
1874
+ }),
1875
+ updateSnippet: (organizationId, snippetId, data, params = {}) => this.request({
1876
+ path: `/orgs/${organizationId}/snippets/${snippetId}`,
1877
+ method: "PUT",
1878
+ body: data,
1879
+ secure: true,
1880
+ type: "application/json" /* Json */,
1881
+ format: "json",
1882
+ ...params
1883
+ }),
1798
1884
  askInOrganization: (organizationId, data, params = {}) => this.request({
1799
1885
  path: `/orgs/${organizationId}/ask`,
1800
1886
  method: "POST",
@@ -1820,6 +1906,14 @@ var Api = class extends HttpClient {
1820
1906
  type: "application/json" /* Json */,
1821
1907
  format: "json",
1822
1908
  ...params
1909
+ }),
1910
+ getContentAuditSourceContentById: (organizationId, sourceId, query, params = {}) => this.request({
1911
+ path: `/orgs/${organizationId}/insights/audit-sources/${sourceId}/content`,
1912
+ method: "GET",
1913
+ query,
1914
+ secure: true,
1915
+ format: "json",
1916
+ ...params
1823
1917
  })
1824
1918
  };
1825
1919
  this.internal = {
package/dist/index.js CHANGED
@@ -117,6 +117,7 @@ var AnalyticsTrafficInterval = /* @__PURE__ */ ((AnalyticsTrafficInterval2) => {
117
117
  })(AnalyticsTrafficInterval || {});
118
118
  var IntegrationScope = /* @__PURE__ */ ((IntegrationScope2) => {
119
119
  IntegrationScope2["EntitiesWrite"] = "entities:write";
120
+ IntegrationScope2["SnippetsRead"] = "snippets:read";
120
121
  IntegrationScope2["CaptureWrite"] = "capture:write";
121
122
  IntegrationScope2["SpaceViewsRead"] = "space:views:read";
122
123
  IntegrationScope2["SpaceContentRead"] = "space:content:read";
@@ -621,11 +622,26 @@ var Api = class extends HttpClient {
621
622
  format: "json",
622
623
  ...params
623
624
  }),
625
+ listPages: (spaceId, params = {}) => this.request({
626
+ path: `/spaces/${spaceId}/content/pages`,
627
+ method: "GET",
628
+ secure: true,
629
+ format: "json",
630
+ ...params
631
+ }),
624
632
  listFiles: (spaceId, query, params = {}) => this.request({
625
633
  path: `/spaces/${spaceId}/content/files`,
626
634
  method: "GET",
627
635
  query,
628
636
  secure: true,
637
+ format: "json",
638
+ ...params
639
+ }),
640
+ getFileById: (spaceId, fileId, params = {}) => this.request({
641
+ path: `/spaces/${spaceId}/content/files/${fileId}`,
642
+ method: "GET",
643
+ secure: true,
644
+ format: "json",
629
645
  ...params
630
646
  }),
631
647
  getPageById: (spaceId, pageId, query, params = {}) => this.request({
@@ -829,11 +845,26 @@ var Api = class extends HttpClient {
829
845
  format: "json",
830
846
  ...params
831
847
  }),
848
+ listPagesInChangeRequest: (spaceId, changeRequestId, params = {}) => this.request({
849
+ path: `/spaces/${spaceId}/change-requests/${changeRequestId}/content/pages`,
850
+ method: "GET",
851
+ secure: true,
852
+ format: "json",
853
+ ...params
854
+ }),
832
855
  listFilesInChangeRequestById: (spaceId, changeRequestId, query, params = {}) => this.request({
833
856
  path: `/spaces/${spaceId}/change-requests/${changeRequestId}/content/files`,
834
857
  method: "GET",
835
858
  query,
836
859
  secure: true,
860
+ format: "json",
861
+ ...params
862
+ }),
863
+ getFileInChangeRequestById: (spaceId, changeRequestId, fileId, params = {}) => this.request({
864
+ path: `/spaces/${spaceId}/change-requests/${changeRequestId}/content/files/${fileId}`,
865
+ method: "GET",
866
+ secure: true,
867
+ format: "json",
837
868
  ...params
838
869
  }),
839
870
  getPageInChangeRequestById: (spaceId, changeRequestId, pageId, query, params = {}) => this.request({
@@ -876,11 +907,26 @@ var Api = class extends HttpClient {
876
907
  format: "json",
877
908
  ...params
878
909
  }),
910
+ listPagesInRevisionById: (spaceId, revisionId, params = {}) => this.request({
911
+ path: `/spaces/${spaceId}/revisions/${revisionId}/pages`,
912
+ method: "GET",
913
+ secure: true,
914
+ format: "json",
915
+ ...params
916
+ }),
879
917
  listFilesInRevisionById: (spaceId, revisionId, query, params = {}) => this.request({
880
918
  path: `/spaces/${spaceId}/revisions/${revisionId}/files`,
881
919
  method: "GET",
882
920
  query,
883
921
  secure: true,
922
+ format: "json",
923
+ ...params
924
+ }),
925
+ getFileInRevisionById: (spaceId, revisionId, fileId, params = {}) => this.request({
926
+ path: `/spaces/${spaceId}/revisions/${revisionId}/files/${fileId}`,
927
+ method: "GET",
928
+ secure: true,
929
+ format: "json",
884
930
  ...params
885
931
  }),
886
932
  getPageInRevisionById: (spaceId, revisionId, pageId, query, params = {}) => this.request({
@@ -1730,6 +1776,46 @@ var Api = class extends HttpClient {
1730
1776
  format: "json",
1731
1777
  ...params
1732
1778
  }),
1779
+ listSnippets: (organizationId, query, params = {}) => this.request({
1780
+ path: `/orgs/${organizationId}/snippets`,
1781
+ method: "GET",
1782
+ query,
1783
+ secure: true,
1784
+ format: "json",
1785
+ ...params
1786
+ }),
1787
+ createSnippet: (organizationId, data, params = {}) => this.request({
1788
+ path: `/orgs/${organizationId}/snippets`,
1789
+ method: "POST",
1790
+ body: data,
1791
+ secure: true,
1792
+ type: "application/json" /* Json */,
1793
+ format: "json",
1794
+ ...params
1795
+ }),
1796
+ getSnippet: (organizationId, snippetId, query, params = {}) => this.request({
1797
+ path: `/orgs/${organizationId}/snippets/${snippetId}`,
1798
+ method: "GET",
1799
+ query,
1800
+ secure: true,
1801
+ format: "json",
1802
+ ...params
1803
+ }),
1804
+ deleteSnippet: (organizationId, snippetId, params = {}) => this.request({
1805
+ path: `/orgs/${organizationId}/snippets/${snippetId}`,
1806
+ method: "DELETE",
1807
+ secure: true,
1808
+ ...params
1809
+ }),
1810
+ updateSnippet: (organizationId, snippetId, data, params = {}) => this.request({
1811
+ path: `/orgs/${organizationId}/snippets/${snippetId}`,
1812
+ method: "PUT",
1813
+ body: data,
1814
+ secure: true,
1815
+ type: "application/json" /* Json */,
1816
+ format: "json",
1817
+ ...params
1818
+ }),
1733
1819
  askInOrganization: (organizationId, data, params = {}) => this.request({
1734
1820
  path: `/orgs/${organizationId}/ask`,
1735
1821
  method: "POST",
@@ -1755,6 +1841,14 @@ var Api = class extends HttpClient {
1755
1841
  type: "application/json" /* Json */,
1756
1842
  format: "json",
1757
1843
  ...params
1844
+ }),
1845
+ getContentAuditSourceContentById: (organizationId, sourceId, query, params = {}) => this.request({
1846
+ path: `/orgs/${organizationId}/insights/audit-sources/${sourceId}/content`,
1847
+ method: "GET",
1848
+ query,
1849
+ secure: true,
1850
+ format: "json",
1851
+ ...params
1758
1852
  })
1759
1853
  };
1760
1854
  this.internal = {
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.15.0",
7
+ "version": "0.16.0",
8
8
  "sideEffects": false,
9
9
  "files": [
10
10
  "README.md",