@gitbook/api 0.14.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
@@ -392,6 +392,17 @@ export interface CommentReply {
392
392
  location: string;
393
393
  };
394
394
  }
395
+ export declare type PublishedContentLookup = {
396
+ target: 'application' | 'content' | 'external';
397
+ redirect: URL;
398
+ } | {
399
+ space: string;
400
+ changeRequest?: string;
401
+ revision?: string;
402
+ pathname: string;
403
+ basePath: string;
404
+ apiToken: string;
405
+ };
395
406
  export declare type Document = MarkdownDocument | {
396
407
  document: JSONDocument;
397
408
  } | object;
@@ -604,11 +615,8 @@ export interface DocumentBlockImage {
604
615
  data: {
605
616
  ref: ContentRefURL | ContentRefFile;
606
617
  refDark?: ContentRefURL | ContentRefFile;
607
- width?: number | {
608
- unit: string;
609
- value: number;
610
- };
611
- height?: any;
618
+ width?: DocumentBlockImageDimension;
619
+ height?: DocumentBlockImageDimension;
612
620
  alt?: string;
613
621
  };
614
622
  fragments: (DocumentFragment & {
@@ -617,6 +625,10 @@ export interface DocumentBlockImage {
617
625
  })[];
618
626
  isVoid: true;
619
627
  }
628
+ export declare type DocumentBlockImageDimension = number | {
629
+ unit: string;
630
+ value: number;
631
+ };
620
632
  export interface DocumentBlockFile {
621
633
  object: 'block';
622
634
  type: 'file';
@@ -867,12 +879,15 @@ export interface ContentRefFile {
867
879
  export interface ContentRefPage {
868
880
  kind: 'page';
869
881
  page: string;
870
- space: string;
882
+ /** ID of the space the page is in. The page is considered as in the current space if none is provided. */
883
+ space?: string;
871
884
  }
872
885
  export interface ContentRefAnchor {
873
886
  kind: 'anchor';
874
887
  anchor: string;
888
+ /** ID of the space the page is in. The page is considered as in the current space if none is provided. */
875
889
  space?: string;
890
+ /** ID of the page the anchor is in. The anchor is considered as in the current page if none is provided. */
876
891
  page?: string;
877
892
  }
878
893
  export interface ContentRefUser {
@@ -971,6 +986,12 @@ export declare type RevisionPageDocument = RevisionPageBase & Document & {
971
986
  pages: (RevisionPageDocument | RevisionPageLink)[];
972
987
  git?: GitSyncBlob;
973
988
  };
989
+ export interface RevisionPageDocumentCover {
990
+ /** Content reference pointing to the source image. */
991
+ ref?: ContentRefFile;
992
+ /** Vertical position of the cover image. */
993
+ yPos: number;
994
+ }
974
995
  export declare type RevisionPageGroup = RevisionPageBase & {
975
996
  kind: 'group';
976
997
  type: 'group';
@@ -978,12 +999,49 @@ export declare type RevisionPageGroup = RevisionPageBase & {
978
999
  path: string;
979
1000
  pages: (RevisionPageDocument | RevisionPageLink)[];
980
1001
  };
1002
+ export declare type RevisionPageLayout = RevisionPageLayoutPreset | RevisionPageLayoutOptions;
1003
+ export interface RevisionPageLayoutOptions {
1004
+ /** Should the cover be visible? */
1005
+ cover?: boolean;
1006
+ /** Size of the cover image. */
1007
+ coverSize?: RevisionPageLayoutOptionsCoverSize;
1008
+ /** Should the title be visible? */
1009
+ title?: boolean;
1010
+ /** Should the description be visible? */
1011
+ description?: boolean;
1012
+ /** Should the table of contents be visible? */
1013
+ tableOfContents?: boolean;
1014
+ /** Should the outline be visible? */
1015
+ outline?: boolean;
1016
+ /** Should the pagination be visible? */
1017
+ pagination?: boolean;
1018
+ }
1019
+ /**
1020
+ * Size of the cover image.
1021
+ */
1022
+ export declare enum RevisionPageLayoutOptionsCoverSize {
1023
+ Hero = "hero",
1024
+ Full = "full"
1025
+ }
1026
+ /**
1027
+ * The core layout presets for a page.
1028
+ */
1029
+ export declare enum RevisionPageLayoutPreset {
1030
+ Docs = "docs",
1031
+ Editorial = "editorial",
1032
+ Landing = "landing"
1033
+ }
981
1034
  export declare type RevisionPageLink = RevisionPageBase & {
982
1035
  kind: 'link';
983
1036
  type: 'link';
984
1037
  target: ContentRef;
985
1038
  href?: string;
986
1039
  };
1040
+ export declare enum RevisionPageType {
1041
+ Document = "document",
1042
+ Group = "group",
1043
+ Link = "link"
1044
+ }
987
1045
  export interface RevisionFile {
988
1046
  id: string;
989
1047
  name: string;
@@ -997,6 +1055,10 @@ export interface RevisionFile {
997
1055
  };
998
1056
  git?: GitSyncBlob;
999
1057
  }
1058
+ export interface RevisionFileImageDimensions {
1059
+ height: number;
1060
+ width: number;
1061
+ }
1000
1062
  export declare enum ImportContentSource {
1001
1063
  Website = "website",
1002
1064
  Docx = "docx",
@@ -1011,6 +1073,131 @@ export declare enum ImportContentSource {
1011
1073
  GoogleDocs = "google-docs",
1012
1074
  OpenApi = "open-api"
1013
1075
  }
1076
+ export interface ChangeAttributeContentReference {
1077
+ before?: ContentRef;
1078
+ after?: ContentRef;
1079
+ }
1080
+ export interface ChangeAttributeCustomFields {
1081
+ before?: Record<string, {
1082
+ value: CustomFieldValue;
1083
+ }>;
1084
+ after?: Record<string, {
1085
+ value: CustomFieldValue;
1086
+ }>;
1087
+ }
1088
+ export interface ChangeAttributeNumber {
1089
+ before?: number;
1090
+ after?: number;
1091
+ }
1092
+ export interface ChangeAttributeRevisionFileImageDimensions {
1093
+ before?: RevisionFileImageDimensions;
1094
+ after?: RevisionFileImageDimensions;
1095
+ }
1096
+ export interface ChangeAttributeRevisionPageDocumentCover {
1097
+ before?: RevisionPageDocumentCover;
1098
+ after?: RevisionPageDocumentCover;
1099
+ }
1100
+ export interface ChangeAttributeRevisionPageLayout {
1101
+ before?: RevisionPageLayout;
1102
+ after?: RevisionPageLayout;
1103
+ }
1104
+ export interface ChangeAttributeString {
1105
+ before?: string;
1106
+ after?: string;
1107
+ }
1108
+ export interface ChangedRevisionFile {
1109
+ id: string;
1110
+ name: string;
1111
+ contentType: string;
1112
+ downloadURL: string;
1113
+ }
1114
+ export interface ChangedRevisionPage {
1115
+ id: string;
1116
+ type: RevisionPageType;
1117
+ title: string;
1118
+ path?: string;
1119
+ }
1120
+ export interface RevisionFileChangeAttributes {
1121
+ name?: ChangeAttributeString;
1122
+ downloadURL?: ChangeAttributeString;
1123
+ size?: ChangeAttributeNumber;
1124
+ contentType?: ChangeAttributeString;
1125
+ dimensions?: ChangeAttributeRevisionFileImageDimensions;
1126
+ }
1127
+ export interface RevisionPageDocumentChangeAttributes {
1128
+ title?: ChangeAttributeString;
1129
+ description?: ChangeAttributeString;
1130
+ slug?: ChangeAttributeString;
1131
+ document?: ChangeAttributeString;
1132
+ cover?: ChangeAttributeRevisionPageDocumentCover;
1133
+ emoji?: ChangeAttributeString;
1134
+ layout?: ChangeAttributeRevisionPageLayout;
1135
+ customFields?: ChangeAttributeCustomFields;
1136
+ }
1137
+ export interface RevisionPageGroupChangeAttributes {
1138
+ title?: ChangeAttributeString;
1139
+ emoji?: ChangeAttributeString;
1140
+ slug?: ChangeAttributeString;
1141
+ customFields?: ChangeAttributeCustomFields;
1142
+ }
1143
+ export interface RevisionPageLinkChangeAttributes {
1144
+ title?: ChangeAttributeString;
1145
+ emoji?: ChangeAttributeString;
1146
+ target?: ChangeAttributeContentReference;
1147
+ customFields?: ChangeAttributeCustomFields;
1148
+ }
1149
+ export declare type RevisionSemanticChange = RevisionSemanticChangePageCreated | RevisionSemanticChangePageEdited | RevisionSemanticChangePageDeleted | RevisionSemanticChangePageMoved | RevisionSemanticChangeFileCreated | RevisionSemanticChangeFileEdited | RevisionSemanticChangeFileDeleted | RevisionSemanticChangeCustomFieldsEdited;
1150
+ export interface RevisionSemanticChangeCustomFieldsEdited {
1151
+ type: 'custom_fields_edited';
1152
+ customFields: ChangeAttributeCustomFields;
1153
+ }
1154
+ export interface RevisionSemanticChangeFileCreated {
1155
+ type: 'file_created';
1156
+ file: ChangedRevisionFile;
1157
+ }
1158
+ export interface RevisionSemanticChangeFileDeleted {
1159
+ type: 'file_deleted';
1160
+ file: ChangedRevisionFile;
1161
+ }
1162
+ export interface RevisionSemanticChangeFileEdited {
1163
+ type: 'file_edited';
1164
+ file: ChangedRevisionFile;
1165
+ attributes: RevisionFileChangeAttributes;
1166
+ }
1167
+ export interface RevisionSemanticChangePageCreated {
1168
+ type: 'page_created';
1169
+ page: ChangedRevisionPage;
1170
+ }
1171
+ export interface RevisionSemanticChangePageDeleted {
1172
+ type: 'page_deleted';
1173
+ page: ChangedRevisionPage;
1174
+ }
1175
+ export interface RevisionSemanticChangePageEdited {
1176
+ type: 'page_edited';
1177
+ page: ChangedRevisionPage;
1178
+ attributes: RevisionPageDocumentChangeAttributes | RevisionPageGroupChangeAttributes | RevisionPageLinkChangeAttributes;
1179
+ }
1180
+ export interface RevisionSemanticChangePageMoved {
1181
+ type: 'page_moved';
1182
+ page: ChangedRevisionPage;
1183
+ parent: {
1184
+ before?: ChangedRevisionPage;
1185
+ after?: ChangedRevisionPage;
1186
+ };
1187
+ }
1188
+ /**
1189
+ * The type of semantic change.
1190
+ */
1191
+ export declare enum RevisionSemanticChangeType {
1192
+ PageCreated = "page_created",
1193
+ PageEdited = "page_edited",
1194
+ PageDeleted = "page_deleted",
1195
+ PageMoved = "page_moved",
1196
+ FileCreated = "file_created",
1197
+ FileEdited = "file_edited",
1198
+ FileDeleted = "file_deleted",
1199
+ CustomFieldsEdited = "custom_fields_edited"
1200
+ }
1014
1201
  export interface GitSyncState {
1015
1202
  /** The provider of the Git Sync installation. */
1016
1203
  installationProvider?: string;
@@ -1256,7 +1443,7 @@ export interface Capture {
1256
1443
  */
1257
1444
  export declare type CaptureTitle = string;
1258
1445
  export declare type CaptureEvent = CaptureTerminalCommandEvent | CaptureSpeechEvent | CaptureThreadMessageEvent | CaptureFileAddedEvent | CaptureFileChangedEvent | CaptureFileRemovedEvent;
1259
- export declare type CaptureContext = 'meeting' | 'thread' | 'walkthrough';
1446
+ export declare type CaptureContext = 'thread' | 'walkthrough' | 'document';
1260
1447
  export interface BaseCaptureEvent {
1261
1448
  /** The type of event */
1262
1449
  type: string;
@@ -1310,6 +1497,67 @@ export interface UpdateCaptureSchema {
1310
1497
  /** Content of the capture. */
1311
1498
  body?: Document;
1312
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
+ }
1523
+ /**
1524
+ * Content audit relation
1525
+ */
1526
+ export interface ContentAuditRelation {
1527
+ id: string;
1528
+ /** The sources that are related */
1529
+ sources: ContentAuditSource[];
1530
+ /** The type of the relation between the sources */
1531
+ type: ContentAuditRelationType;
1532
+ /** A human readable description of the reason for the relation */
1533
+ reason?: string;
1534
+ /** The status of the relation */
1535
+ status: ContentAuditRelationStatus;
1536
+ /** The date at which the relation was created */
1537
+ createdAt: Date;
1538
+ }
1539
+ /**
1540
+ * The type of the relation between the sources
1541
+ */
1542
+ export declare type ContentAuditRelationType = 'contradiction' | 'duplicate';
1543
+ /**
1544
+ * Status of the audit relation to filter on
1545
+ */
1546
+ export declare type ContentAuditRelationStatus = 'pending' | 'rejected';
1547
+ export interface ContentAuditRelationStatusUpdate {
1548
+ /** Status of the audit relation to filter on */
1549
+ status: ContentAuditRelationStatus;
1550
+ }
1551
+ export declare type ContentAuditSource = ContentAuditSourceSection;
1552
+ /**
1553
+ * A GitBook section source
1554
+ */
1555
+ export interface ContentAuditSourceSection {
1556
+ id: string;
1557
+ type: 'section';
1558
+ space: Space;
1559
+ page: RevisionPageDocument;
1560
+ }
1313
1561
  export interface ChangeRequest {
1314
1562
  /** Type of Object, always equals to "change-request" */
1315
1563
  object: 'change-request';
@@ -1567,7 +1815,8 @@ export interface AnalyticsContentPage {
1567
1815
  feedbacks?: {
1568
1816
  score: number;
1569
1817
  total: number;
1570
- rating: 'unknown' | 'bad' | 'ok' | 'good';
1818
+ rating: string;
1819
+ ponderedScore: number;
1571
1820
  bad: number;
1572
1821
  ok: number;
1573
1822
  good: number;
@@ -1671,6 +1920,7 @@ export declare type IntegrationSummary = string;
1671
1920
  export declare type IntegrationScopes = IntegrationScope[];
1672
1921
  export declare enum IntegrationScope {
1673
1922
  EntitiesWrite = "entities:write",
1923
+ SnippetsRead = "snippets:read",
1674
1924
  CaptureWrite = "capture:write",
1675
1925
  SpaceViewsRead = "space:views:read",
1676
1926
  SpaceContentRead = "space:content:read",
@@ -2790,7 +3040,7 @@ export interface ContentKitURL {
2790
3040
  /**
2791
3041
  * Channel to subscribe to for API updates.
2792
3042
  */
2793
- export declare type SubscriptionChannel = SpaceInfoChannel | SpaceGitInfoChannel | SpacePublishingAuthChannel | SpacePublishingCustomizationChannel | SpaceEntitiesChannel | SpaceCustomFieldsChannel | BackofficeUserInfoChannel | SpaceIntegrationsChannel | OrganizationCustomFieldsChannel | UserAPITokensChannel | UserProfileChannel | ChangeRequestReviewsChannel | CollectionPublishingCustomizationChannel | OrganizationMembersChannel | OrganizationMemberChannel | OrganizationTeamsChannel | OrganizationTeamChannel | OrganizationTeamMembersChannel | OrganizationTeamMemberChannel | OrganizationSpacesChannel | OrganizationCollectionsChannel | OrganizationEntitiesChannel | OrganizationSchemasChannel | OrganizationCapturesChannel | OrganizationIntegrationsChannel | OrganizationInstallationsChannel | {
3043
+ export declare type SubscriptionChannel = SpaceInfoChannel | SpaceGitInfoChannel | SpacePublishingAuthChannel | SpacePublishingCustomizationChannel | SpaceEntitiesChannel | SpaceCustomFieldsChannel | BackofficeUserInfoChannel | SpaceIntegrationsChannel | OrganizationCustomFieldsChannel | UserAPITokensChannel | UserProfileChannel | ChangeRequestReviewsChannel | CollectionPublishingCustomizationChannel | OrganizationMembersChannel | OrganizationMemberChannel | OrganizationTeamsChannel | OrganizationTeamChannel | OrganizationTeamMembersChannel | OrganizationTeamMemberChannel | OrganizationSpacesChannel | OrganizationCollectionsChannel | OrganizationEntitiesChannel | OrganizationSchemasChannel | OrganizationCapturesChannel | OrganizationContentAuditsChannel | OrganizationIntegrationsChannel | OrganizationInstallationsChannel | {
2794
3044
  channel: 'space-comments';
2795
3045
  space: string;
2796
3046
  changeRequest?: string;
@@ -2926,6 +3176,10 @@ export interface OrganizationCapturesChannel {
2926
3176
  channel: 'organization-captures';
2927
3177
  organization: string;
2928
3178
  }
3179
+ export interface OrganizationContentAuditsChannel {
3180
+ channel: 'organization-content-audits';
3181
+ organization: string;
3182
+ }
2929
3183
  export interface OrganizationIntegrationsChannel {
2930
3184
  channel: 'organization-integrations';
2931
3185
  organization: string;
@@ -3466,11 +3720,22 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
3466
3720
  * @secure
3467
3721
  */
3468
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>>;
3469
3734
  /**
3470
3735
  * No description
3471
3736
  *
3472
3737
  * @name ListFiles
3473
- * @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
3474
3739
  * @request GET:/spaces/{spaceId}/content/files
3475
3740
  * @secure
3476
3741
  */
@@ -3480,6 +3745,15 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
3480
3745
  }, params?: RequestParams) => Promise<HttpResponse<List & {
3481
3746
  items: RevisionFile[];
3482
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>>;
3483
3757
  /**
3484
3758
  * No description
3485
3759
  *
@@ -3798,11 +4072,22 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
3798
4072
  * @secure
3799
4073
  */
3800
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>>;
3801
4086
  /**
3802
4087
  * No description
3803
4088
  *
3804
4089
  * @name ListFilesInChangeRequestById
3805
- * @summary List all files in the latest content of the change-request
4090
+ * @summary List all files in a change request content
3806
4091
  * @request GET:/spaces/{spaceId}/change-requests/{changeRequestId}/content/files
3807
4092
  * @secure
3808
4093
  */
@@ -3812,6 +4097,15 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
3812
4097
  }, params?: RequestParams) => Promise<HttpResponse<List & {
3813
4098
  items: RevisionFile[];
3814
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>>;
3815
4109
  /**
3816
4110
  * No description
3817
4111
  *
@@ -3852,6 +4146,32 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
3852
4146
  * @secure
3853
4147
  */
3854
4148
  getRevisionById: (spaceId: string, revisionId: string, params?: RequestParams) => Promise<HttpResponse<Revision, Error>>;
4149
+ /**
4150
+ * No description
4151
+ *
4152
+ * @name GetRevisionSemanticChanges
4153
+ * @summary Return the semantic changes between a revision and its parent.
4154
+ * @request GET:/spaces/{spaceId}/revisions/{revisionId}/changes
4155
+ * @secure
4156
+ */
4157
+ getRevisionSemanticChanges: (spaceId: string, revisionId: string, query?: {
4158
+ limit?: number;
4159
+ metadata?: boolean;
4160
+ }, params?: RequestParams) => Promise<HttpResponse<{
4161
+ changes: RevisionSemanticChange[];
4162
+ more?: number;
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>>;
3855
4175
  /**
3856
4176
  * No description
3857
4177
  *
@@ -3866,6 +4186,15 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
3866
4186
  }, params?: RequestParams) => Promise<HttpResponse<List & {
3867
4187
  items: RevisionFile[];
3868
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>>;
3869
4198
  /**
3870
4199
  * No description
3871
4200
  *
@@ -5211,8 +5540,9 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
5211
5540
  *
5212
5541
  * @tags organizations
5213
5542
  * @name ListCaptures
5214
- * @summary List captures
5543
+ * @summary List captures. Deprecated, use listSnippets instead.
5215
5544
  * @request GET:/orgs/{organizationId}/captures
5545
+ * @deprecated
5216
5546
  * @secure
5217
5547
  */
5218
5548
  listCaptures: (organizationId: string, query?: {
@@ -5243,8 +5573,9 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
5243
5573
  *
5244
5574
  * @tags organizations
5245
5575
  * @name GetCapture
5246
- * @summary Get a capture by its ID
5576
+ * @summary Get a capture by its ID. Deprecated, use getSnippet instead.
5247
5577
  * @request GET:/orgs/{organizationId}/captures/{captureId}
5578
+ * @deprecated
5248
5579
  * @secure
5249
5580
  */
5250
5581
  getCapture: (organizationId: string, captureId: string, query?: {
@@ -5255,8 +5586,9 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
5255
5586
  *
5256
5587
  * @tags organizations
5257
5588
  * @name DeleteCapture
5258
- * @summary Delete a capture by its ID
5589
+ * @summary Delete a capture by its ID. Deprecated, use deleteSnippet.
5259
5590
  * @request DELETE:/orgs/{organizationId}/captures/{captureId}
5591
+ * @deprecated
5260
5592
  * @secure
5261
5593
  */
5262
5594
  deleteCapture: (organizationId: string, captureId: string, params?: RequestParams) => Promise<HttpResponse<void, Error>>;
@@ -5265,8 +5597,9 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
5265
5597
  *
5266
5598
  * @tags organizations
5267
5599
  * @name UpdateCapture
5268
- * @summary Update an existing capture
5600
+ * @summary Update an existing capture. Deprecated, use updateSnippet.
5269
5601
  * @request PUT:/orgs/{organizationId}/captures/{captureId}
5602
+ * @deprecated
5270
5603
  * @secure
5271
5604
  */
5272
5605
  updateCapture: (organizationId: string, captureId: string, data: UpdateCaptureSchema, params?: RequestParams) => Promise<HttpResponse<Capture, Error>>;
@@ -5297,6 +5630,65 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
5297
5630
  capture: Capture;
5298
5631
  followupQuestions?: string[];
5299
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>>;
5300
5692
  /**
5301
5693
  * No description
5302
5694
  *
@@ -5308,6 +5700,54 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
5308
5700
  askInOrganization: (organizationId: string, data: SearchAIQuery, params?: RequestParams) => Promise<HttpResponse<{
5309
5701
  answer?: SearchAIAnswer;
5310
5702
  }, Error>>;
5703
+ /**
5704
+ * No description
5705
+ *
5706
+ * @tags ai, spaces
5707
+ * @name ListContentAuditRelations
5708
+ * @summary List the content relations for in a given organization.
5709
+ * @request GET:/orgs/{organizationId}/insights/audit-relations
5710
+ * @secure
5711
+ */
5712
+ listContentAuditRelations: (organizationId: string, query?: {
5713
+ page?: string;
5714
+ limit?: number;
5715
+ status?: ContentAuditRelationStatus;
5716
+ }, params?: RequestParams) => Promise<HttpResponse<List & {
5717
+ items: ContentAuditRelation[];
5718
+ }, Error>>;
5719
+ /**
5720
+ * No description
5721
+ *
5722
+ * @tags organizations
5723
+ * @name UpdateContentAuditRelationStatusById
5724
+ * @summary Update an audit relation status
5725
+ * @request PATCH:/orgs/{organizationId}/insights/audit-relations/{relationId}
5726
+ * @secure
5727
+ */
5728
+ updateContentAuditRelationStatusById: (organizationId: string, relationId: string, data: ContentAuditRelationStatusUpdate, params?: RequestParams) => Promise<HttpResponse<ContentAuditRelation, Error | {
5729
+ error: {
5730
+ code: 404;
5731
+ message: string;
5732
+ };
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
+ }>>;
5311
5751
  };
5312
5752
  internal: {
5313
5753
  /**
@@ -5354,6 +5794,19 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
5354
5794
  getEmbedByUrl: (query: {
5355
5795
  url: string;
5356
5796
  }, params?: RequestParams) => Promise<HttpResponse<Embed, Error>>;
5797
+ /**
5798
+ * No description
5799
+ *
5800
+ * @tags urls
5801
+ * @name GetPublishedContentByUrl
5802
+ * @summary Resolve a URL of a published content.
5803
+ * @request GET:/urls/published
5804
+ * @secure
5805
+ */
5806
+ getPublishedContentByUrl: (query: {
5807
+ url: URL;
5808
+ visitorAuthToken?: string;
5809
+ }, params?: RequestParams) => Promise<HttpResponse<PublishedContentLookup, Error>>;
5357
5810
  };
5358
5811
  }
5359
5812
  export {};