@gitbook/api 0.10.0 → 0.11.1

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
@@ -67,6 +67,8 @@ export interface RequestPublishIntegration {
67
67
  summary?: IntegrationSummary;
68
68
  previewImages?: string[];
69
69
  visibility?: IntegrationVisibility;
70
+ /** Allowed installation target for the integration. If not specified, the integration can be installed at `all` targets (org, spaces etc) */
71
+ target?: IntegrationTarget;
70
72
  /** Permissions that should be granted to the integration */
71
73
  scopes: IntegrationScopes;
72
74
  /** Categories for which the integration is listed in the marketplace */
@@ -170,17 +172,6 @@ export interface RequestCreateSpace {
170
172
  emoji?: Emoji;
171
173
  /** Private spaces are no longer supported by GitBook. */
172
174
  private?: boolean;
173
- /**
174
- * - `application`: A fully-packaged application, like a mobile application, desktop application, or a CLI-type tool.
175
- * - `website`: A single web page or a collection of related web pages under a single domain.
176
- * - `service`: An independently-deployable software unit that is usually is operated by a person or a team.
177
- * - `library`: A reusable collection of objects, functions, and methods. A library is typically used by other spaces.
178
- * - `cloud-resource`: An entity or service provided by a cloud vendor, with consumer-managed configuration and monitoring.
179
- * - `database`: A databse entity, persisting data. A database is typically used by services or applications.
180
- * - `other`: A space that doesn’t match the service, library, or application type.
181
- *
182
- */
183
- type?: SpaceType;
184
175
  /** ID of a parent collection */
185
176
  parent?: string;
186
177
  }
@@ -269,24 +260,6 @@ export interface User {
269
260
  location?: string;
270
261
  };
271
262
  }
272
- export interface UserPreferences {
273
- /** Type of Object, always equals to "user-preferences" */
274
- object: 'user-preferences';
275
- /** Preferred theme for the application */
276
- theme: UserPreferencesTheme;
277
- /** URLs associated with the object */
278
- urls: {
279
- location?: string;
280
- };
281
- }
282
- /**
283
- * Preferred theme for the application
284
- */
285
- export declare enum UserPreferencesTheme {
286
- Light = "light",
287
- Dark = "dark",
288
- Default = "default"
289
- }
290
263
  /**
291
264
  * The API token details, excluding the token itself.
292
265
  */
@@ -356,6 +329,16 @@ export interface ImportContentResult {
356
329
  /** How many resources were processed */
357
330
  totalResources: number;
358
331
  }
332
+ export declare type Embed = {
333
+ title: string;
334
+ site: string;
335
+ icon?: string;
336
+ } & ({
337
+ type: 'link';
338
+ } | {
339
+ type: 'rich';
340
+ html: string;
341
+ });
359
342
  export declare type Comment = {
360
343
  object: 'comment';
361
344
  id: string;
@@ -412,25 +395,469 @@ export interface MarkdownDocument {
412
395
  }
413
396
  export interface JSONDocument {
414
397
  document: {
415
- nodes: object[];
398
+ object: 'document';
399
+ data: object;
400
+ nodes: DocumentBlocksTopLevels[];
401
+ };
402
+ }
403
+ export declare type DocumentBlocksEssentials = DocumentBlockParagraph | DocumentBlockHeading | DocumentBlockListOrdered | DocumentBlockListUnordered | DocumentBlockListTasks | DocumentBlockDivider;
404
+ export declare type DocumentBlocksTopLevels = DocumentBlocksEssentials | DocumentBlockQuote | DocumentBlockHint | DocumentBlockImages | DocumentBlockFile | DocumentBlockDrawing | DocumentBlockEmbed | DocumentBlockCode | DocumentBlockMath | DocumentBlockExpandable | DocumentBlockTabs | DocumentBlockTable | DocumentBlockSwagger | DocumentBlockContentRef | DocumentBlockIntegration;
405
+ export interface DocumentNodeText {
406
+ object: 'text';
407
+ key?: string;
408
+ leaves: DocumentTextLeaf[];
409
+ }
410
+ export interface DocumentNodeFragment {
411
+ object: 'fragment';
412
+ key?: string;
413
+ fragment?: string;
414
+ type?: string;
415
+ nodes: DocumentBlocksEssentials[];
416
+ }
417
+ export interface DocumentTextLeaf {
418
+ object: 'leaf';
419
+ text: string;
420
+ marks: DocumentTextMark[];
421
+ }
422
+ export declare type DocumentTextMark = {
423
+ object: 'mark';
424
+ } & ({
425
+ type: 'bold';
426
+ } | {
427
+ type: 'italic';
428
+ } | {
429
+ type: 'code';
430
+ } | {
431
+ type: 'strikethrough';
432
+ } | {
433
+ type: 'color';
434
+ data: {
435
+ text: 'default' | 'green' | 'blue' | 'red' | 'orange' | 'yellow' | 'purple';
436
+ background: 'default' | 'green' | 'blue' | 'red' | 'orange' | 'yellow' | 'purple';
437
+ };
438
+ });
439
+ export interface DocumentInlineLink {
440
+ object: 'inline';
441
+ type: 'link';
442
+ key?: string;
443
+ nodes: DocumentNodeText[];
444
+ data: {
445
+ ref: ContentRef;
446
+ };
447
+ }
448
+ export interface DocumentInlineMath {
449
+ object: 'inline';
450
+ type: 'inline-math';
451
+ key?: string;
452
+ data: {
453
+ formula: string;
454
+ };
455
+ isVoid: true;
456
+ }
457
+ export interface DocumentInlineEmoji {
458
+ object: 'inline';
459
+ type: 'emoji';
460
+ key?: string;
461
+ data: {
462
+ code: string;
463
+ };
464
+ isVoid: true;
465
+ }
466
+ export interface DocumentInlineImage {
467
+ object: 'inline';
468
+ type: 'inline-image';
469
+ key?: string;
470
+ data: {
471
+ ref: ContentRefURL | ContentRefFile;
472
+ refDark?: ContentRefURL | ContentRefFile;
473
+ caption?: string;
474
+ size?: 'original' | 'line';
475
+ };
476
+ isVoid: true;
477
+ }
478
+ export interface DocumentInlineMention {
479
+ object: 'inline';
480
+ type: 'mention';
481
+ key?: string;
482
+ data: {
483
+ ref: ContentRef;
484
+ };
485
+ isVoid: true;
486
+ }
487
+ export interface DocumentInlineAnnotation {
488
+ object: 'inline';
489
+ type: 'annotation';
490
+ key?: string;
491
+ fragments: (DocumentNodeFragment & {
492
+ type: 'annotation-body';
493
+ nodes: (DocumentBlocksEssentials | DocumentBlockCode)[];
494
+ })[];
495
+ isVoid: true;
496
+ }
497
+ export declare type DocumentInlinesRich = DocumentInlineImage;
498
+ export interface DocumentBlockParagraph {
499
+ object: 'block';
500
+ type: 'paragraph';
501
+ key?: string;
502
+ nodes: any[];
503
+ }
504
+ export interface DocumentBlockHeading {
505
+ object: 'block';
506
+ type: 'heading-1' | 'heading-2' | 'heading-3';
507
+ key?: string;
508
+ nodes: (DocumentNodeText | DocumentInlineLink | DocumentInlineEmoji | DocumentInlineMath | DocumentInlineImage | DocumentInlineAnnotation | DocumentInlineMention)[];
509
+ data: {
510
+ id?: string;
511
+ };
512
+ meta?: {
513
+ id: string;
514
+ };
515
+ }
516
+ export interface DocumentBlockQuote {
517
+ object: 'block';
518
+ type: 'quote';
519
+ key?: string;
520
+ nodes: (DocumentBlocksEssentials | DocumentBlockQuote)[];
521
+ }
522
+ export interface DocumentBlockHint {
523
+ object: 'block';
524
+ type: 'hint';
525
+ key?: string;
526
+ data: {
527
+ style: 'info' | 'warning' | 'danger' | 'success';
528
+ };
529
+ nodes: DocumentBlocksEssentials[];
530
+ }
531
+ export interface DocumentBlockListUnordered {
532
+ object: 'block';
533
+ type: 'list-unordered';
534
+ key?: string;
535
+ nodes: DocumentBlockListItem[];
536
+ }
537
+ export interface DocumentBlockListOrdered {
538
+ object: 'block';
539
+ type: 'list-ordered';
540
+ key?: string;
541
+ data: {
542
+ start?: number;
543
+ };
544
+ nodes: DocumentBlockListItem[];
545
+ }
546
+ export interface DocumentBlockListTasks {
547
+ object: 'block';
548
+ type: 'list-tasks';
549
+ key?: string;
550
+ nodes: DocumentBlockTaskListItem[];
551
+ }
552
+ export interface DocumentBlockListItem {
553
+ object: 'block';
554
+ type: 'list-item';
555
+ key?: string;
556
+ nodes: DocumentBlocksEssentials[];
557
+ }
558
+ export declare type DocumentBlockTaskListItem = DocumentBlockListItem & {
559
+ data: {
560
+ checked: boolean;
561
+ };
562
+ };
563
+ export interface DocumentBlockImages {
564
+ object: 'block';
565
+ type: 'images';
566
+ key?: string;
567
+ data: {
568
+ align?: 'center' | 'left' | 'right';
569
+ fullWidth?: boolean;
570
+ };
571
+ nodes: DocumentBlockImage[];
572
+ isVoid: true;
573
+ }
574
+ export interface DocumentBlockImage {
575
+ object: 'block';
576
+ type: 'image';
577
+ key?: string;
578
+ data: {
579
+ ref: ContentRefURL | ContentRefFile;
580
+ refDark?: ContentRefURL | ContentRefFile;
581
+ width?: number | {
582
+ unit: string;
583
+ value: number;
584
+ };
585
+ height?: any;
586
+ };
587
+ fragments: (DocumentNodeFragment & {
588
+ type: 'caption';
589
+ nodes: DocumentBlockParagraph[];
590
+ })[];
591
+ isVoid: true;
592
+ }
593
+ export interface DocumentBlockFile {
594
+ object: 'block';
595
+ type: 'file';
596
+ key?: string;
597
+ data: {
598
+ ref: ContentRefFile;
599
+ };
600
+ isVoid: true;
601
+ }
602
+ export interface DocumentBlockDrawing {
603
+ object: 'block';
604
+ type: 'drawing';
605
+ key?: string;
606
+ data: {
607
+ ref?: ContentRefFile;
608
+ };
609
+ isVoid: true;
610
+ }
611
+ export interface DocumentBlockEmbed {
612
+ object: 'block';
613
+ type: 'embed';
614
+ key?: string;
615
+ data: {
616
+ url: string;
617
+ fullWidth?: boolean;
618
+ };
619
+ isVoid: true;
620
+ }
621
+ export interface DocumentBlockCode {
622
+ object: 'block';
623
+ type: 'code';
624
+ key?: string;
625
+ data: {
626
+ syntax?: string;
627
+ title?: string;
628
+ overflow?: 'scroll' | 'wrap';
629
+ lineNumbers?: boolean;
630
+ fullWidth?: boolean;
631
+ };
632
+ nodes: DocumentBlockCodeLine[];
633
+ }
634
+ export interface DocumentBlockCodeLine {
635
+ object: 'block';
636
+ type: 'code-line';
637
+ key?: string;
638
+ nodes: (DocumentNodeText | DocumentInlineAnnotation)[];
639
+ data: {
640
+ highlighted?: boolean;
641
+ };
642
+ }
643
+ export interface DocumentBlockMath {
644
+ object: 'block';
645
+ type: 'math';
646
+ key?: string;
647
+ data: {
648
+ formula: string;
649
+ };
650
+ isVoid: true;
651
+ }
652
+ export interface DocumentBlockExpandable {
653
+ object: 'block';
654
+ type: 'expandable';
655
+ key?: string;
656
+ isVoid: true;
657
+ fragments: ((DocumentNodeFragment & {
658
+ fragment: 'expandable-title';
659
+ type: 'expandable-title';
660
+ nodes: DocumentBlockParagraph[];
661
+ }) | (DocumentNodeFragment & {
662
+ fragment: 'expandable-body';
663
+ type: 'expandable-body';
664
+ nodes: (DocumentBlocksEssentials | DocumentBlockCode)[];
665
+ }))[];
666
+ meta?: {
667
+ id: string;
668
+ };
669
+ }
670
+ export interface DocumentBlockTabs {
671
+ object: 'block';
672
+ type: 'tabs';
673
+ key?: string;
674
+ nodes: DocumentBlockTabsItem[];
675
+ }
676
+ export interface DocumentBlockSwagger {
677
+ object: 'block';
678
+ type: 'swagger';
679
+ key?: string;
680
+ data: {
681
+ ref: ContentRefFile;
682
+ path?: string;
683
+ method?: string;
684
+ expanded?: boolean;
685
+ fullWidth?: boolean;
686
+ };
687
+ isVoid: true;
688
+ meta?: {
689
+ id: string;
690
+ };
691
+ }
692
+ export interface DocumentBlockTable {
693
+ object: 'block';
694
+ type: 'table';
695
+ key?: string;
696
+ isVoid: true;
697
+ data: {
698
+ view: DocumentTableViewGrid | DocumentTableViewCards;
699
+ records: Record<string, DocumentTableRecord>;
700
+ definition: Record<string, DocumentTableDefinition>;
701
+ fullWidth?: boolean;
702
+ };
703
+ fragments: DocumentNodeFragment[];
704
+ }
705
+ export interface DocumentTableRecord {
706
+ orderIndex: string;
707
+ values: Record<string, number | string | boolean | string[] | ContentRef>;
708
+ }
709
+ export interface DocumentTableDefinitionBase {
710
+ id: string;
711
+ /** Title for the column */
712
+ title: string;
713
+ }
714
+ export declare type DocumentTableDefinition = DocumentTableDefinitionText | DocumentTableDefinitionNumber | DocumentTableDefinitionCheckbox | DocumentTableDefinitionFiles | DocumentTableDefinitionUsers | DocumentTableDefinitionRating | DocumentTableDefinitionSelect | DocumentTableDefinitionContentRef;
715
+ export declare type DocumentTableDefinitionText = DocumentTableDefinitionBase & {
716
+ type: 'text';
717
+ textAlignment: 'center' | 'right' | 'left';
718
+ };
719
+ export declare type DocumentTableDefinitionNumber = DocumentTableDefinitionBase & {
720
+ type: 'number';
721
+ };
722
+ export declare type DocumentTableDefinitionCheckbox = DocumentTableDefinitionBase & {
723
+ type: 'checkbox';
724
+ };
725
+ export declare type DocumentTableDefinitionFiles = DocumentTableDefinitionBase & {
726
+ type: 'files';
727
+ };
728
+ export declare type DocumentTableDefinitionUsers = DocumentTableDefinitionBase & {
729
+ type: 'users';
730
+ multiple: boolean;
731
+ };
732
+ export declare type DocumentTableDefinitionRating = DocumentTableDefinitionBase & {
733
+ type: 'rating';
734
+ max: number;
735
+ };
736
+ export declare type DocumentTableDefinitionSelect = DocumentTableDefinitionBase & {
737
+ type: 'select';
738
+ multiple: boolean;
739
+ options: DocumentTableSelectOption[];
740
+ };
741
+ export declare type DocumentTableDefinitionContentRef = DocumentTableDefinitionBase & {
742
+ type: 'content-ref';
743
+ };
744
+ export interface DocumentTableSelectOption {
745
+ value: string;
746
+ label: string;
747
+ color: string;
748
+ }
749
+ export interface DocumentTableViewCards {
750
+ type: 'cards';
751
+ /** Size of the cards. It indicates how many columns will be used */
752
+ cardSize: 'medium' | 'large';
753
+ /** Ordered list of the definition IDs to display */
754
+ columns: string[];
755
+ /** Definition ID to use as a target link for the card */
756
+ targetDefinition?: string;
757
+ /** Definition ID to use as a cover image */
758
+ coverDefinition?: string;
759
+ /** Should we display the column title or not */
760
+ hideColumnTitle?: boolean;
761
+ }
762
+ export interface DocumentTableViewGrid {
763
+ type: 'grid';
764
+ /** Ordered list of the definition IDs to display */
765
+ columns: string[];
766
+ /** Percent width of each column */
767
+ columnWidths?: Record<string, number>;
768
+ /** Should we display the header with column titles */
769
+ hideHeader: boolean;
770
+ /**
771
+ * Tables in GitBook originally used a scaled width approach i.e. the width defined
772
+ * in columnWidths would be scaled to ensure a 100% width table.
773
+ *
774
+ * We later changed this to treat the widths in columnWidths as exact values - they are
775
+ * never scaled. A columnWidth of 50 is rendered as 50px.
776
+ * In order to maintain backwards compatibility, we track whether or not we
777
+ * use the new system here.
778
+ * All new tables should have this value set to true, older tables will have it set
779
+ * to undefined.
780
+ */
781
+ useNewSizing?: boolean;
782
+ }
783
+ export interface DocumentBlockTabsItem {
784
+ object: 'block';
785
+ type: 'tabs-item';
786
+ key?: string;
787
+ nodes: (DocumentBlocksEssentials | DocumentBlockContentRef | DocumentBlockCode | DocumentBlockEmbed | DocumentBlockFile | DocumentBlockImages | DocumentBlockDrawing | DocumentBlockHint | DocumentBlockQuote | DocumentBlockMath | DocumentBlockIntegration)[];
788
+ data: {
789
+ title?: string;
416
790
  };
791
+ meta?: {
792
+ id: string;
793
+ };
794
+ }
795
+ export interface DocumentBlockContentRef {
796
+ object: 'block';
797
+ type: 'content-ref';
798
+ key?: string;
799
+ data: {
800
+ ref: ContentRef;
801
+ };
802
+ isVoid: true;
803
+ }
804
+ export interface DocumentBlockIntegration {
805
+ object: 'block';
806
+ type: 'integration';
807
+ key?: string;
808
+ data: {
809
+ integration: string;
810
+ block: string;
811
+ props: Record<string, any>;
812
+ action?: ContentKitAction;
813
+ url?: string;
814
+ fullWidth?: boolean;
815
+ };
816
+ isVoid: true;
817
+ }
818
+ export interface DocumentBlockDivider {
819
+ object: 'block';
820
+ type: 'divider';
821
+ key?: string;
822
+ isVoid: true;
823
+ }
824
+ export declare type ContentRef = ContentRefFile | ContentRefURL | ContentRefPage | ContentRefAnchor | ContentRefUser | ContentRefCollection | ContentRefSpace;
825
+ export interface ContentRefURL {
826
+ kind: 'url';
827
+ url: string;
828
+ }
829
+ export interface ContentRefFile {
830
+ kind: 'file';
831
+ file: string;
832
+ }
833
+ export interface ContentRefPage {
834
+ kind: 'page';
835
+ page: string;
836
+ space: string;
837
+ }
838
+ export interface ContentRefAnchor {
839
+ kind: 'anchor';
840
+ anchor: string;
841
+ space?: string;
842
+ page?: string;
843
+ }
844
+ export interface ContentRefUser {
845
+ kind: 'user';
846
+ user: string;
847
+ }
848
+ export interface ContentRefCollection {
849
+ kind: 'collection';
850
+ collection: string;
851
+ }
852
+ export interface ContentRefSpace {
853
+ kind: 'space';
854
+ space: string;
417
855
  }
418
856
  export interface Space {
419
857
  /** Type of Object, always equals to "space" */
420
858
  object: 'space';
421
859
  /** Unique identifier for the space */
422
860
  id: string;
423
- /**
424
- * - `application`: A fully-packaged application, like a mobile application, desktop application, or a CLI-type tool.
425
- * - `website`: A single web page or a collection of related web pages under a single domain.
426
- * - `service`: An independently-deployable software unit that is usually is operated by a person or a team.
427
- * - `library`: A reusable collection of objects, functions, and methods. A library is typically used by other spaces.
428
- * - `cloud-resource`: An entity or service provided by a cloud vendor, with consumer-managed configuration and monitoring.
429
- * - `database`: A databse entity, persisting data. A database is typically used by services or applications.
430
- * - `other`: A space that doesn’t match the service, library, or application type.
431
- *
432
- */
433
- type: SpaceType;
434
861
  /** Title of the space */
435
862
  title: string;
436
863
  /**
@@ -459,58 +886,6 @@ export interface Space {
459
886
  /** ID of the parent collection. */
460
887
  parent?: string;
461
888
  }
462
- /**
463
- * - `application`: A fully-packaged application, like a mobile application, desktop application, or a CLI-type tool.
464
- - `website`: A single web page or a collection of related web pages under a single domain.
465
- - `service`: An independently-deployable software unit that is usually is operated by a person or a team.
466
- - `library`: A reusable collection of objects, functions, and methods. A library is typically used by other spaces.
467
- - `cloud-resource`: An entity or service provided by a cloud vendor, with consumer-managed configuration and monitoring.
468
- - `database`: A databse entity, persisting data. A database is typically used by services or applications.
469
- - `other`: A space that doesn’t match the service, library, or application type.
470
- */
471
- export declare enum SpaceType {
472
- Application = "application",
473
- Website = "website",
474
- Service = "service",
475
- Library = "library",
476
- CloudResource = "cloud-resource",
477
- Database = "database",
478
- Other = "other"
479
- }
480
- export declare enum SpaceRelationType {
481
- DependsOn = "dependsOn",
482
- DependencyOf = "dependencyOf",
483
- PartOf = "partOf",
484
- HasPart = "hasPart"
485
- }
486
- /**
487
- * Edge of a space relation (target or source)
488
- */
489
- export interface SpaceRelationEdge {
490
- /** ID of the space */
491
- id: string;
492
- }
493
- /**
494
- * Relation between an origin space and another space
495
- */
496
- export interface SpaceRelation {
497
- id: string;
498
- type: SpaceRelationType;
499
- /** Other space in the relation. If undefined, the current user doesn't have access to it. */
500
- target: Space | SpaceRelationEdge;
501
- createdAt: Date;
502
- /** URLs associated with the object */
503
- urls: {
504
- location: string;
505
- };
506
- }
507
- /**
508
- * Relation between an origin space and another space
509
- */
510
- export declare type SpaceRelationPair = SpaceRelation & {
511
- target: SpaceRelationEdge;
512
- source: SpaceRelationEdge;
513
- };
514
889
  export interface RevisionBase {
515
890
  /** Type of Object, always equals to "revision" */
516
891
  object: 'revision';
@@ -759,20 +1134,27 @@ export interface OrganizationTeam {
759
1134
  export interface TeamMember {
760
1135
  /**
761
1136
  * "The role of a team member.
762
- * "admin": Can administrate team members.
763
- * "participant": Can participate in a team.
1137
+ * "owner": Can manage team members.
1138
+ * "member": Is a member of the team.
764
1139
  *
765
1140
  */
766
1141
  role: TeamMemberRole;
767
1142
  }
768
1143
  /**
769
1144
  * "The role of a team member.
770
- "admin": Can administrate team members.
771
- "participant": Can participate in a team.
1145
+ "owner": Can manage team members.
1146
+ "member": Is a member of the team.
772
1147
  */
773
1148
  export declare enum TeamMemberRole {
774
- Admin = "admin",
775
- Participant = "participant"
1149
+ Owner = "owner",
1150
+ Member = "member"
1151
+ }
1152
+ /**
1153
+ * A member of a team in an organization, including its relationship to it
1154
+ */
1155
+ export interface OrganizationTeamMember {
1156
+ organization: OrganizationMember;
1157
+ team: TeamMember;
776
1158
  }
777
1159
  export interface Capture {
778
1160
  /** Unique identifier for the capture */
@@ -791,6 +1173,8 @@ export interface Capture {
791
1173
  createdAt: string;
792
1174
  /** @format date-time */
793
1175
  stoppedAt?: string;
1176
+ /** @format date-time */
1177
+ editedAt?: string;
794
1178
  /** Count of events recorded. */
795
1179
  events: {
796
1180
  'terminal.command'?: number;
@@ -804,6 +1188,7 @@ export interface Capture {
804
1188
  /** URLs associated with the object */
805
1189
  urls: {
806
1190
  location: string;
1191
+ app: string;
807
1192
  };
808
1193
  }
809
1194
  /**
@@ -859,6 +1244,12 @@ export declare type CaptureFileRemovedEvent = BaseCaptureEvent & {
859
1244
  filename: string;
860
1245
  fileSnapshot: string;
861
1246
  };
1247
+ export interface UpdateCaptureSchema {
1248
+ /** A new title for the capture. */
1249
+ title?: string;
1250
+ /** Content of the capture. */
1251
+ body?: Document;
1252
+ }
862
1253
  export interface ChangeRequest {
863
1254
  /** Type of Object, always equals to "change-request" */
864
1255
  object: 'change-request';
@@ -1047,11 +1438,12 @@ export declare type SearchAIAnswerSource = {
1047
1438
  sections: string[];
1048
1439
  } | {
1049
1440
  type: 'entity';
1050
- id: string;
1441
+ entityId: string;
1442
+ entityType: EntityType;
1051
1443
  integration?: string;
1052
1444
  } | {
1053
1445
  type: 'capture';
1054
- id: string;
1446
+ captureId: string;
1055
1447
  source: string;
1056
1448
  });
1057
1449
  /**
@@ -1161,6 +1553,9 @@ export interface Integration {
1161
1553
  summary?: IntegrationSummary;
1162
1554
  /** URLs of images to showcase the integration */
1163
1555
  previewImages: string[];
1556
+ target: IntegrationTarget;
1557
+ /** If true, the integration has been verified by the GitBook team */
1558
+ verified: boolean;
1164
1559
  visibility: IntegrationVisibility;
1165
1560
  /** Permissions that should be granted to the integration */
1166
1561
  scopes: IntegrationScopes;
@@ -1171,13 +1566,19 @@ export interface Integration {
1171
1566
  configurations?: IntegrationConfigurations;
1172
1567
  /** External urls configured by the developer of the integration */
1173
1568
  externalLinks: IntegrationExternalLinks;
1569
+ owner: Organization;
1174
1570
  /** URLs associated with the object */
1175
1571
  urls: {
1572
+ location: string;
1176
1573
  icon?: string;
1177
1574
  app: string;
1178
1575
  assets: string;
1179
1576
  publicEndpoint: string;
1180
1577
  };
1578
+ /** The set of permissions for the integration */
1579
+ permissions: {
1580
+ admin: boolean;
1581
+ };
1181
1582
  /**
1182
1583
  * Security policy to validate the content of the integrations scripts and Contentkit. Will be sent as
1183
1584
  * headers when processing the script fetch event and the blocks fetch events.
@@ -1281,10 +1682,11 @@ export declare enum IntegrationInstallationSpaceSelection {
1281
1682
  }
1282
1683
  export declare enum IntegrationCategory {
1283
1684
  Analytics = "analytics",
1685
+ Captures = "captures",
1284
1686
  Collaboration = "collaboration",
1285
- Marketing = "marketing",
1286
1687
  Content = "content",
1287
1688
  Gitsync = "gitsync",
1689
+ Marketing = "marketing",
1288
1690
  Other = "other"
1289
1691
  }
1290
1692
  export interface IntegrationConfigurations {
@@ -1335,10 +1737,15 @@ export interface IntegrationInstallation {
1335
1737
  status: IntegrationInstallationStatus;
1336
1738
  /** Describe whether all spaces have been selected or there's a selection involved */
1337
1739
  space_selection: IntegrationInstallationSpaceSelection;
1740
+ /** Count of spaces, the installation is managing */
1741
+ spaces: number;
1338
1742
  /** Configuration of the integration at the account level */
1339
1743
  configuration: IntegrationInstallationConfiguration;
1744
+ createdAt: Date;
1745
+ updatedAt: Date;
1340
1746
  /** URLs associated with the object */
1341
1747
  urls: {
1748
+ location: string;
1342
1749
  app: string;
1343
1750
  publicEndpoint: string;
1344
1751
  };
@@ -1364,6 +1771,7 @@ export interface IntegrationSpaceInstallation {
1364
1771
  externalIds: IntegrationInstallationExternalIds;
1365
1772
  /** URLs associated with the object */
1366
1773
  urls: {
1774
+ location: string;
1367
1775
  publicEndpoint: string;
1368
1776
  };
1369
1777
  }
@@ -1398,6 +1806,10 @@ export interface IntegrationEnvironment {
1398
1806
  installation?: string;
1399
1807
  };
1400
1808
  }
1809
+ export declare enum IntegrationTarget {
1810
+ Organization = "organization",
1811
+ All = "all"
1812
+ }
1401
1813
  export declare type IntegrationInstallationTarget = OrganizationTarget;
1402
1814
  /**
1403
1815
  * Configuration of the integration at the account level
@@ -1465,6 +1877,7 @@ export interface UpsertEntity {
1465
1877
  export declare type Entity = UpsertEntity & {
1466
1878
  id: string;
1467
1879
  type: EntityType;
1880
+ entityType: EntityType;
1468
1881
  urls: {
1469
1882
  location: string;
1470
1883
  };
@@ -2286,7 +2699,7 @@ export interface ContentKitURL {
2286
2699
  /**
2287
2700
  * Channel to subscribe to for API updates.
2288
2701
  */
2289
- export declare type SubscriptionChannel = SpaceInfoChannel | SpaceGitInfoChannel | SpacePublishingAuthChannel | SpaceRelationsChannel | SpaceEntitiesChannel | SpaceCustomFieldsChannel | BackofficeUserInfoChannel | SpaceIntegrationsChannel | OrganizationCustomFieldsChannel | OrganizationEnvironmentsChannel | UserAPITokensChannel | UserPreferencesChannel | UserProfileChannel | ChangeRequestReviewsChannel | OrganizationMembersChannel | OrganizationMemberChannel | OrganizationTeamsChannel | OrganizationTeamChannel | OrganizationTeamMembersChannel | OrganizationTeamMemberChannel | OrganizationSpaceRelationsChannel | OrganizationSpacesChannel | OrganizationEntitiesChannel | OrganizationSchemasChannel | OrganizationCapturesChannel | {
2702
+ export declare type SubscriptionChannel = SpaceInfoChannel | SpaceGitInfoChannel | SpacePublishingAuthChannel | SpaceEntitiesChannel | SpaceCustomFieldsChannel | BackofficeUserInfoChannel | SpaceIntegrationsChannel | OrganizationCustomFieldsChannel | UserAPITokensChannel | UserProfileChannel | ChangeRequestReviewsChannel | OrganizationMembersChannel | OrganizationMemberChannel | OrganizationTeamsChannel | OrganizationTeamChannel | OrganizationTeamMembersChannel | OrganizationTeamMemberChannel | OrganizationSpacesChannel | OrganizationEntitiesChannel | OrganizationSchemasChannel | OrganizationCapturesChannel | OrganizationIntegrationsChannel | OrganizationInstallationsChannel | {
2290
2703
  channel: 'space-comments';
2291
2704
  space: string;
2292
2705
  changeRequest?: string;
@@ -2306,7 +2719,7 @@ export declare type SubscriptionChannel = SpaceInfoChannel | SpaceGitInfoChannel
2306
2719
  space: string;
2307
2720
  changeRequest?: string;
2308
2721
  comment: string;
2309
- };
2722
+ } | IntegrationChannel | IntegrationInstallationChannel | IntegrationSpaceInstallationChannel | IntegrationSpaceInstallationsChannel;
2310
2723
  export interface SpaceInfoChannel {
2311
2724
  channel: 'space';
2312
2725
  space: string;
@@ -2319,10 +2732,6 @@ export interface SpacePublishingAuthChannel {
2319
2732
  channel: 'space-publishing-auth';
2320
2733
  space: string;
2321
2734
  }
2322
- export interface SpaceRelationsChannel {
2323
- channel: 'space-relations';
2324
- space: string;
2325
- }
2326
2735
  export interface SpaceEntitiesChannel {
2327
2736
  channel: 'space-entities';
2328
2737
  space: string;
@@ -2343,10 +2752,6 @@ export interface UserAPITokensChannel {
2343
2752
  channel: 'user-api-tokens';
2344
2753
  user: string;
2345
2754
  }
2346
- export interface UserPreferencesChannel {
2347
- channel: 'user-preferences';
2348
- user: string;
2349
- }
2350
2755
  export interface UserProfileChannel {
2351
2756
  channel: 'user-profile';
2352
2757
  user: string;
@@ -2389,13 +2794,6 @@ export interface OrganizationTeamMemberChannel {
2389
2794
  team?: string;
2390
2795
  member: string;
2391
2796
  }
2392
- /**
2393
- * Subscription channel for changes in relations between spaces in an organization.
2394
- */
2395
- export interface OrganizationSpaceRelationsChannel {
2396
- channel: 'organization-space-relations';
2397
- organization: string;
2398
- }
2399
2797
  /**
2400
2798
  * Subscription channel for changes in spaces in an organization.
2401
2799
  */
@@ -2418,14 +2816,38 @@ export interface OrganizationSchemasChannel {
2418
2816
  channel: 'organization-schemas';
2419
2817
  organization: string;
2420
2818
  }
2421
- export interface OrganizationEnvironmentsChannel {
2422
- channel: 'organization-environments';
2423
- organization: string;
2424
- }
2425
2819
  export interface OrganizationCapturesChannel {
2426
2820
  channel: 'organization-captures';
2427
2821
  organization: string;
2428
2822
  }
2823
+ export interface OrganizationIntegrationsChannel {
2824
+ channel: 'organization-integrations';
2825
+ organization: string;
2826
+ }
2827
+ export interface OrganizationInstallationsChannel {
2828
+ channel: 'organization-installations';
2829
+ organization: string;
2830
+ }
2831
+ export interface IntegrationChannel {
2832
+ channel: 'integration';
2833
+ integration: string;
2834
+ }
2835
+ export interface IntegrationInstallationChannel {
2836
+ channel: 'integration-installation';
2837
+ integration: string;
2838
+ installation: string;
2839
+ }
2840
+ export interface IntegrationSpaceInstallationChannel {
2841
+ channel: 'integration-space-installation';
2842
+ integration: string;
2843
+ installation: string;
2844
+ space: string;
2845
+ }
2846
+ export interface IntegrationSpaceInstallationsChannel {
2847
+ channel: 'integration-space-installations';
2848
+ integration: string;
2849
+ installation: string;
2850
+ }
2429
2851
  /**
2430
2852
  * Custom field
2431
2853
  */
@@ -2470,52 +2892,6 @@ export interface UpdateCustomFieldValues {
2470
2892
  }
2471
2893
  export declare type CustomFieldOptions = string[];
2472
2894
  export declare type CustomFieldPlaceholder = string;
2473
- /**
2474
- * An environment
2475
- */
2476
- export interface Environment {
2477
- id: string;
2478
- name: EnvironmentName;
2479
- title: EnvironmentTitle;
2480
- /**
2481
- * Whether or not an environment is considered to have elevated responsibilities over other environments. Useful for distinguishing a production environment from a staging environment. Multiple primary environments are allowed. Your organization must have at least one primary environment.
2482
- *
2483
- */
2484
- primary: EnvironmentPrimary;
2485
- /** URLs associated with the object */
2486
- urls: {
2487
- location: string;
2488
- };
2489
- }
2490
- export declare type EnvironmentTitle = string;
2491
- /**
2492
- * Whether or not an environment is considered to have elevated responsibilities over other environments. Useful for distinguishing a production environment from a staging environment. Multiple primary environments are allowed. Your organization must have at least one primary environment.
2493
- */
2494
- export declare type EnvironmentPrimary = boolean;
2495
- /**
2496
- * @pattern ^[a-zA-Z_\-0-9]+$
2497
- */
2498
- export declare type EnvironmentName = string;
2499
- export interface CreateEnvironment {
2500
- name: EnvironmentName;
2501
- title: EnvironmentTitle;
2502
- /**
2503
- * Whether or not an environment is considered to have elevated responsibilities over other environments. Useful for distinguishing a production environment from a staging environment. Multiple primary environments are allowed. Your organization must have at least one primary environment.
2504
- *
2505
- */
2506
- primary?: EnvironmentPrimary;
2507
- }
2508
- /**
2509
- * An object containing the new title for an Environment
2510
- */
2511
- export interface UpdateEnvironment {
2512
- title?: EnvironmentTitle;
2513
- /**
2514
- * Whether or not an environment is considered to have elevated responsibilities over other environments. Useful for distinguishing a production environment from a staging environment. Multiple primary environments are allowed. Your organization must have at least one primary environment.
2515
- *
2516
- */
2517
- primary?: EnvironmentPrimary;
2518
- }
2519
2895
  export declare type QueryParamsType = Record<string | number, any>;
2520
2896
  export declare type ResponseFormat = keyof Omit<Body, 'body' | 'bodyUsed'>;
2521
2897
  export interface FullRequestParams extends Omit<RequestInit, 'body'> {
@@ -2658,28 +3034,6 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
2658
3034
  * @secure
2659
3035
  */
2660
3036
  getAuthenticatedUser: (params?: RequestParams) => Promise<HttpResponse<User, Error>>;
2661
- /**
2662
- * @description Returns the preferences for the user associated with the authentication provided in the request's authorization header.
2663
- *
2664
- * @tags users
2665
- * @name GetPreferencesForAuthenticatedUser
2666
- * @summary Get the preferences for the currently authenticated user
2667
- * @request GET:/user/preferences
2668
- * @secure
2669
- */
2670
- getPreferencesForAuthenticatedUser: (params?: RequestParams) => Promise<HttpResponse<UserPreferences, Error>>;
2671
- /**
2672
- * No description
2673
- *
2674
- * @tags users
2675
- * @name UpdatePreferencesForAuthenticatedUser
2676
- * @summary Update the preferences for the currently authenticated user
2677
- * @request PATCH:/user/preferences
2678
- * @secure
2679
- */
2680
- updatePreferencesForAuthenticatedUser: (data: {
2681
- theme: UserPreferencesTheme;
2682
- }, params?: RequestParams) => Promise<HttpResponse<UserPreferences, Error>>;
2683
3037
  };
2684
3038
  users: {
2685
3039
  /**
@@ -2715,7 +3069,6 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
2715
3069
  */
2716
3070
  updateSpaceById: (spaceId: string, data: {
2717
3071
  visibility?: ContentVisibility;
2718
- type?: SpaceType;
2719
3072
  }, params?: RequestParams) => Promise<HttpResponse<Space, Error>>;
2720
3073
  /**
2721
3074
  * No description
@@ -3482,59 +3835,6 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
3482
3835
  message: string;
3483
3836
  };
3484
3837
  }>>;
3485
- /**
3486
- * No description
3487
- *
3488
- * @tags spaces
3489
- * @name ListSpaceRelations
3490
- * @summary List all relations for a space
3491
- * @request GET:/spaces/{spaceId}/relations
3492
- * @secure
3493
- */
3494
- listSpaceRelations: (spaceId: string, query?: {
3495
- page?: string;
3496
- limit?: number;
3497
- }, params?: RequestParams) => Promise<HttpResponse<List & {
3498
- items: SpaceRelation[];
3499
- }, Error>>;
3500
- /**
3501
- * No description
3502
- *
3503
- * @tags spaces
3504
- * @name CreateSpaceRelation
3505
- * @summary Create a new relation between a source space and a target space
3506
- * @request POST:/spaces/{spaceId}/relations
3507
- * @secure
3508
- */
3509
- createSpaceRelation: (spaceId: string, data: {
3510
- target: string;
3511
- type: SpaceRelationType;
3512
- }, params?: RequestParams) => Promise<HttpResponse<SpaceRelation, Error>>;
3513
- /**
3514
- * No description
3515
- *
3516
- * @tags spaces
3517
- * @name GetSpaceRelation
3518
- * @summary Get the relation between 2 spaces.
3519
- * @request GET:/spaces/{spaceId}/relations/{targetSpaceId}
3520
- * @secure
3521
- */
3522
- getSpaceRelation: (spaceId: string, targetSpaceId: string, params?: RequestParams) => Promise<HttpResponse<SpaceRelation, Error | {
3523
- error: {
3524
- code: 404;
3525
- message: string;
3526
- };
3527
- }>>;
3528
- /**
3529
- * No description
3530
- *
3531
- * @tags spaces
3532
- * @name DeleteSpaceRelation
3533
- * @summary Delete a relation between spaces
3534
- * @request DELETE:/spaces/{spaceId}/relations/{targetSpaceId}
3535
- * @secure
3536
- */
3537
- deleteSpaceRelation: (spaceId: string, targetSpaceId: string, params?: RequestParams) => Promise<HttpResponse<void, Error>>;
3538
3838
  /**
3539
3839
  * No description
3540
3840
  *
@@ -3654,6 +3954,8 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
3654
3954
  listIntegrations: (query?: {
3655
3955
  page?: string;
3656
3956
  limit?: number;
3957
+ category?: IntegrationCategory;
3958
+ blockDomain?: string;
3657
3959
  }, params?: RequestParams) => Promise<HttpResponse<List & {
3658
3960
  items: Integration[];
3659
3961
  }, Error>>;
@@ -3902,6 +4204,21 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
3902
4204
  message: string;
3903
4205
  };
3904
4206
  }>>;
4207
+ /**
4208
+ * No description
4209
+ *
4210
+ * @tags integrations
4211
+ * @name ListIntegrationInstallationSpaces
4212
+ * @summary List installations on spaces for an integration in an organization
4213
+ * @request GET:/integrations/{integrationName}/installations/{installationId}/spaces
4214
+ * @secure
4215
+ */
4216
+ listIntegrationInstallationSpaces: (integrationName: string, installationId: string, query?: {
4217
+ page?: string;
4218
+ limit?: number;
4219
+ }, params?: RequestParams) => Promise<HttpResponse<List & {
4220
+ items: IntegrationSpaceInstallation[];
4221
+ }, Error>>;
3905
4222
  /**
3906
4223
  * No description
3907
4224
  *
@@ -4167,7 +4484,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
4167
4484
  remove?: string[];
4168
4485
  }, params?: RequestParams) => Promise<HttpResponse<void, Error>>;
4169
4486
  /**
4170
- * @description Lists members for the specified organization team.
4487
+ * @description Lists members, and their roles, for the specified organization team.
4171
4488
  *
4172
4489
  * @tags organizations
4173
4490
  * @name ListTeamMembersInOrganizationById
@@ -4179,7 +4496,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
4179
4496
  page?: string;
4180
4497
  limit?: number;
4181
4498
  }, params?: RequestParams) => Promise<HttpResponse<List & {
4182
- items: OrganizationMember[];
4499
+ items: OrganizationTeamMember[];
4183
4500
  }, Error>>;
4184
4501
  /**
4185
4502
  * @description Add or updates member in the specified organization team.
@@ -4472,77 +4789,35 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
4472
4789
  * No description
4473
4790
  *
4474
4791
  * @tags spaces
4475
- * @name ListSpaceRelationsInOrganization
4476
- * @summary List all relations between spaces in an organization
4477
- * @request GET:/orgs/{organizationId}/space-relations
4792
+ * @name ListOrganizationIntegrations
4793
+ * @summary List integrations owned by an organization
4794
+ * @request GET:/orgs/{organizationId}/integrations
4478
4795
  * @secure
4479
4796
  */
4480
- listSpaceRelationsInOrganization: (organizationId: string, query?: {
4797
+ listOrganizationIntegrations: (organizationId: string, query?: {
4481
4798
  page?: string;
4482
4799
  limit?: number;
4483
4800
  }, params?: RequestParams) => Promise<HttpResponse<List & {
4484
- items: SpaceRelationPair[];
4801
+ items: Integration[];
4485
4802
  }, Error>>;
4486
4803
  /**
4487
4804
  * No description
4488
4805
  *
4489
- * @tags organizations, environments
4490
- * @name ListEnvironments
4491
- * @summary Get the environments in an organization
4492
- * @request GET:/orgs/{organizationId}/environments
4806
+ * @tags spaces
4807
+ * @name ListOrganizationInstallations
4808
+ * @summary List installations of integrations in an organization.
4809
+ * @request GET:/orgs/{organizationId}/installations
4493
4810
  * @secure
4494
4811
  */
4495
- listEnvironments: (organizationId: string, query?: {
4812
+ listOrganizationInstallations: (organizationId: string, query?: {
4496
4813
  page?: string;
4497
4814
  limit?: number;
4498
4815
  }, params?: RequestParams) => Promise<HttpResponse<List & {
4499
- items?: Environment[];
4500
- }, any>>;
4501
- /**
4502
- * No description
4503
- *
4504
- * @tags organizations, environments
4505
- * @name CreateEnvironment
4506
- * @summary Create a new environment within an organization
4507
- * @request POST:/orgs/{organizationId}/environments
4508
- * @secure
4509
- */
4510
- createEnvironment: (organizationId: string, data: CreateEnvironment, params?: RequestParams) => Promise<HttpResponse<Environment, Error>>;
4511
- /**
4512
- * No description
4513
- *
4514
- * @tags organizations, environments
4515
- * @name GetEnvironmentByName
4516
- * @summary Get an environment by its name
4517
- * @request GET:/orgs/{organizationId}/environments/{environmentName}
4518
- * @secure
4519
- */
4520
- getEnvironmentByName: (organizationId: string, environmentName: string, params?: RequestParams) => Promise<HttpResponse<Environment, Error | {
4521
- error: {
4522
- code: 404;
4523
- message: string;
4524
- };
4525
- }>>;
4526
- /**
4527
- * No description
4528
- *
4529
- * @tags organizations, environments
4530
- * @name UpdateEnvironment
4531
- * @summary Update an existing environment within an organization
4532
- * @request PATCH:/orgs/{organizationId}/environments/{environmentName}
4533
- * @secure
4534
- */
4535
- updateEnvironment: (organizationId: string, environmentName: string, data: UpdateEnvironment, params?: RequestParams) => Promise<HttpResponse<Environment, Error>>;
4536
- /**
4537
- * No description
4538
- *
4539
- * @tags organizations, environments
4540
- * @name DeleteEnvironment
4541
- * @summary Delete an environment in an organization
4542
- * @request DELETE:/orgs/{organizationId}/environments/{environmentName}
4543
- * @secure
4544
- */
4545
- deleteEnvironment: (organizationId: string, environmentName: string, params?: RequestParams) => Promise<HttpResponse<void, Error>>;
4816
+ items: {
4817
+ installation: IntegrationInstallation;
4818
+ integration: Integration;
4819
+ }[];
4820
+ }, Error>>;
4546
4821
  /**
4547
4822
  * No description
4548
4823
  *
@@ -4628,7 +4903,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
4628
4903
  */
4629
4904
  getEntity: (organizationId: string, entityType: EntityType, entityId: EntityId, params?: RequestParams) => Promise<HttpResponse<Entity, Error>>;
4630
4905
  /**
4631
- * @description List captures in an organization.
4906
+ * @description List captures in an organization, newest first.
4632
4907
  *
4633
4908
  * @tags organizations
4634
4909
  * @name ListCaptures
@@ -4640,6 +4915,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
4640
4915
  format?: 'document' | 'markdown';
4641
4916
  page?: string;
4642
4917
  limit?: number;
4918
+ context?: 'walkthrough' | 'thread';
4643
4919
  }, params?: RequestParams) => Promise<HttpResponse<List & {
4644
4920
  items: Capture[];
4645
4921
  }, Error>>;
@@ -4670,6 +4946,26 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
4670
4946
  getCapture: (organizationId: string, captureId: string, query?: {
4671
4947
  format?: 'document' | 'markdown';
4672
4948
  }, params?: RequestParams) => Promise<HttpResponse<Capture, Error>>;
4949
+ /**
4950
+ * No description
4951
+ *
4952
+ * @tags organizations
4953
+ * @name DeleteCapture
4954
+ * @summary Delete a capture by its ID
4955
+ * @request DELETE:/orgs/{organizationId}/captures/{captureId}
4956
+ * @secure
4957
+ */
4958
+ deleteCapture: (organizationId: string, captureId: string, params?: RequestParams) => Promise<HttpResponse<void, Error>>;
4959
+ /**
4960
+ * No description
4961
+ *
4962
+ * @tags organizations
4963
+ * @name UpdateCapture
4964
+ * @summary Update an existing capture
4965
+ * @request PUT:/orgs/{organizationId}/captures/{captureId}
4966
+ * @secure
4967
+ */
4968
+ updateCapture: (organizationId: string, captureId: string, data: UpdateCaptureSchema, params?: RequestParams) => Promise<HttpResponse<Capture, Error>>;
4673
4969
  /**
4674
4970
  * No description
4675
4971
  *
@@ -4742,6 +5038,18 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
4742
5038
  changeRequest?: ChangeRequest;
4743
5039
  page?: RevisionPageDocument | RevisionPageGroup;
4744
5040
  }, Error>>;
5041
+ /**
5042
+ * No description
5043
+ *
5044
+ * @tags urls
5045
+ * @name GetEmbedByUrl
5046
+ * @summary Resolve a URL to an embed
5047
+ * @request GET:/urls/embed
5048
+ * @secure
5049
+ */
5050
+ getEmbedByUrl: (query: {
5051
+ url: string;
5052
+ }, params?: RequestParams) => Promise<HttpResponse<Embed, Error>>;
4745
5053
  };
4746
5054
  }
4747
5055
  export {};