@gitbook/api 0.65.0 → 0.67.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
@@ -530,7 +530,7 @@ export type ContentKitDefaultAction = {
530
530
  action: '@ui.modal.close';
531
531
  returnValue: PlainObject;
532
532
  } | {
533
- action: '@ui.submit';
533
+ action: '@ui.complete';
534
534
  returnValue: PlainObject;
535
535
  } | {
536
536
  action: '@ui.url.open';
@@ -1949,6 +1949,15 @@ export interface ContentReferencesStats {
1949
1949
  changeRequest?: number;
1950
1950
  };
1951
1951
  }
1952
+ /**
1953
+ * Indicator of the relationship with the content ref target.
1954
+ * - `reference` - The content soft-references the ref target
1955
+ * - `dependsOn` - The content depends on the ref target
1956
+ */
1957
+ export declare enum ContentReferenceRelation {
1958
+ Reference = "reference",
1959
+ DependsOn = "dependsOn"
1960
+ }
1952
1961
  export interface ContentReferenceUsage {
1953
1962
  /**
1954
1963
  * Text to display to represent the reference. Possible values include:
@@ -1957,6 +1966,12 @@ export interface ContentReferenceUsage {
1957
1966
  * - `in-app` - The target is a URL link pointing to an internal location in the app.
1958
1967
  */
1959
1968
  status: ContentReferenceStatus;
1969
+ /**
1970
+ * Indicator of the relationship with the content ref target.
1971
+ * - `reference` - The content soft-references the ref target
1972
+ * - `dependsOn` - The content depends on the ref target
1973
+ */
1974
+ relation: ContentReferenceRelation;
1960
1975
  /** The reference target where a list of pages are pointing at */
1961
1976
  targetReference?: ContentLocation;
1962
1977
  /** Pages locations where a link to the target is found. */
@@ -2262,7 +2277,29 @@ export interface RevisionSemanticChangeCustomFieldsEdited {
2262
2277
  type: 'custom_fields_edited';
2263
2278
  customFields: ChangeAttributeCustomFields;
2264
2279
  }
2265
- export type RevisionSemanticChange = RevisionSemanticChangePageCreated | RevisionSemanticChangePageEdited | RevisionSemanticChangePageDeleted | RevisionSemanticChangePageMoved | RevisionSemanticChangeFileCreated | RevisionSemanticChangeFileEdited | RevisionSemanticChangeFileDeleted | RevisionSemanticChangeCustomFieldsEdited;
2280
+ export interface ChangedRevisionReusableContent {
2281
+ id: string;
2282
+ title: string;
2283
+ document?: string;
2284
+ }
2285
+ export interface RevisionSemanticChangeReusableContentCreated {
2286
+ type: 'reusable_content_created';
2287
+ reusableContent: ChangedRevisionReusableContent;
2288
+ }
2289
+ export interface RevisionSemanticChangeReusableContentDeleted {
2290
+ type: 'reusable_content_deleted';
2291
+ reusableContent: ChangedRevisionReusableContent;
2292
+ }
2293
+ export interface RevisionReusableContentChangeAttributes {
2294
+ title?: ChangeAttributeString;
2295
+ document?: ChangeAttributeString;
2296
+ }
2297
+ export interface RevisionSemanticChangeReusableContentEdited {
2298
+ type: 'reusable_content_edited';
2299
+ reusableContent: ChangedRevisionReusableContent;
2300
+ attributes: RevisionReusableContentChangeAttributes;
2301
+ }
2302
+ export type RevisionSemanticChange = RevisionSemanticChangePageCreated | RevisionSemanticChangePageEdited | RevisionSemanticChangePageDeleted | RevisionSemanticChangePageMoved | RevisionSemanticChangeFileCreated | RevisionSemanticChangeFileEdited | RevisionSemanticChangeFileDeleted | RevisionSemanticChangeCustomFieldsEdited | RevisionSemanticChangeReusableContentCreated | RevisionSemanticChangeReusableContentDeleted | RevisionSemanticChangeReusableContentEdited;
2266
2303
  export interface RevisionSemanticChanges {
2267
2304
  changes: RevisionSemanticChange[];
2268
2305
  /** How many changes were omitted because above the result limit */
@@ -2881,6 +2918,8 @@ export type ContentKitContextConfigurationContentSource = ContentKitContextBase
2881
2918
  type: 'configuration_contentsource';
2882
2919
  /** ID of the organization the content source installation configuration is in. */
2883
2920
  organizationId: string;
2921
+ /** Optional ID of the space the content source installation configuration is in. */
2922
+ spaceId?: string;
2884
2923
  };
2885
2924
  /** Context while rendering in a document. */
2886
2925
  export type ContentKitContextDocument = ContentKitContextBase & {
@@ -3298,13 +3337,21 @@ export interface ContentKitConfiguration {
3298
3337
  }
3299
3338
  /** Element used as root */
3300
3339
  export type ContentKitRootElement = ContentKitBlock | ContentKitModal | ContentKitConfiguration;
3301
- /** Output of the integration when rendering an UI. */
3302
- export interface ContentKitRenderOutput {
3340
+ /** Output of type element in the lifecycle of the component. */
3341
+ export interface ContentKitRenderOutputElement {
3342
+ type?: 'element';
3303
3343
  /** Element used as root */
3304
3344
  element: ContentKitRootElement;
3305
3345
  state: object;
3306
3346
  props: PlainObject;
3307
3347
  }
3348
+ /** Output of completed lifecycle of the component. */
3349
+ export interface ContentKitRenderOutputComplete {
3350
+ type: 'complete';
3351
+ returnValue?: object;
3352
+ }
3353
+ /** Output of the integration when rendering a UI. */
3354
+ export type ContentKitRenderOutput = ContentKitRenderOutputElement | ContentKitRenderOutputComplete;
3308
3355
  export interface RenderIntegrationUI {
3309
3356
  /** ID of the component to render in the integration. */
3310
3357
  componentId: string;
@@ -3469,6 +3516,37 @@ export interface InviteUsersToOrganization {
3469
3516
  /** If true, invites the user as an SSO user of the organization. Defaults to false. */
3470
3517
  sso?: boolean;
3471
3518
  }
3519
+ /** An invite link to a specific collection in an organization */
3520
+ export interface InviteLinkToCollection {
3521
+ /** Type of Object, always equals to "invite" */
3522
+ object: 'invite';
3523
+ /** Unique identifier for the invite link to the collection */
3524
+ id: string;
3525
+ /** The level of the member in the target collection */
3526
+ level: MemberRoleOrGuest;
3527
+ /** The collection the member has been invited to */
3528
+ collection: Collection;
3529
+ }
3530
+ /** An invite link to a specific space in an organization */
3531
+ export interface InviteLinkToSpace {
3532
+ /** Type of Object, always equals to "invite" */
3533
+ object: 'invite';
3534
+ /** Unique identifier for the invite link to the space */
3535
+ id: string;
3536
+ /** The level of the member in the target space */
3537
+ level: MemberRoleOrGuest;
3538
+ /** The space the member has been invited to */
3539
+ space: Space;
3540
+ }
3541
+ /** An invite link to an organization */
3542
+ export interface InviteLinkToOrganization {
3543
+ /** Type of Object, always equals to "invite" */
3544
+ object: 'invite';
3545
+ /** Unique identifier for the invite link to the organization */
3546
+ id: string;
3547
+ /** The role of the member in the organization */
3548
+ role: MemberRoleOrGuest;
3549
+ }
3472
3550
  export interface CreateInviteToOrganization {
3473
3551
  /** The role of the member in the organization */
3474
3552
  role: MemberRoleOrGuest;
@@ -3486,28 +3564,8 @@ export interface CreateInviteToCollection {
3486
3564
  collection: string;
3487
3565
  }
3488
3566
  export type CreateOrganizationInvite = CreateInviteToOrganization | CreateInviteToSpace | CreateInviteToCollection;
3489
- export interface InviteToOrganization {
3490
- /** The role of the member in the organization */
3491
- role: MemberRoleOrGuest;
3492
- }
3493
- export interface InviteToSpace {
3494
- /** The level of the member in the target space */
3495
- level: MemberRoleOrGuest;
3496
- /** The space the member has been invited to */
3497
- space: Space;
3498
- }
3499
- export interface InviteToCollection {
3500
- /** The level of the member in the target collection */
3501
- level: MemberRoleOrGuest;
3502
- /** The collection the member has been invited to */
3503
- collection: Collection;
3504
- }
3505
- export type OrganizationInvite = {
3506
- /** Type of Object, always equals to "invite" */
3507
- object: 'invite';
3508
- /** Unique identifier for the organization invite */
3509
- id: string;
3510
- } & (InviteToOrganization | InviteToSpace | InviteToCollection);
3567
+ /** An invite link created in an organization */
3568
+ export type OrganizationInviteLink = InviteLinkToOrganization | InviteLinkToSpace | InviteLinkToCollection;
3511
3569
  export interface BillingPortal {
3512
3570
  /** URL to the billing portal for an organization */
3513
3571
  url: string;
@@ -3678,6 +3736,8 @@ export type OrganizationUsageSites = {
3678
3736
  premium: number;
3679
3737
  /** Count of all ultimate sites */
3680
3738
  ultimate: number;
3739
+ /** Count of all sponsored sites */
3740
+ sponsored: number;
3681
3741
  };
3682
3742
  /** Team members usage metrics of an organization */
3683
3743
  export interface OrganizationUsageTeams {
@@ -3843,6 +3903,7 @@ export declare enum SiteType {
3843
3903
  Basic = "basic",
3844
3904
  Premium = "premium",
3845
3905
  Ultimate = "ultimate",
3906
+ Sponsored = "sponsored",
3846
3907
  LegacyBasic = "legacy-basic",
3847
3908
  LegacyPremium = "legacy-premium"
3848
3909
  }
@@ -4410,13 +4471,12 @@ export type BackOfficeSite = Site & {
4410
4471
  /** ID of the organization owning this site */
4411
4472
  organization: string;
4412
4473
  };
4413
- export type PublishedSiteContentLookup = {
4414
- /** Type of target for the redirect */
4415
- target: 'application' | 'content' | 'external';
4416
- redirect: URL;
4417
- } | {
4474
+ /** Site Content */
4475
+ export interface PublishedSiteContent {
4418
4476
  /** ID of the site matching. */
4419
4477
  site: string;
4478
+ /** ID of the site-section matching. */
4479
+ siteSection?: string;
4420
4480
  /** ID of the site-space matching. */
4421
4481
  siteSpace: string;
4422
4482
  /** ID of the space matching. */
@@ -4437,7 +4497,12 @@ export type PublishedSiteContentLookup = {
4437
4497
  shareKey?: string;
4438
4498
  /** Whether the resolved site URL is complete and at it's terminal point, meaning no more site path segments can be further expected before any page path segments. */
4439
4499
  complete: boolean;
4440
- };
4500
+ }
4501
+ export type PublishedSiteContentLookup = {
4502
+ /** Type of target for the redirect */
4503
+ target: 'application' | 'content' | 'external';
4504
+ redirect: URL;
4505
+ } | PublishedSiteContent;
4441
4506
  export interface UpdateContentPublishingAuth {
4442
4507
  /**
4443
4508
  * A fallback URL that will be used if authentication fails.
@@ -4713,6 +4778,10 @@ export interface OrganizationInfoChannel {
4713
4778
  channel: 'organization';
4714
4779
  organization: string;
4715
4780
  }
4781
+ export interface OrganizationInviteLinksChannel {
4782
+ channel: 'organization-link-invites';
4783
+ organization: string;
4784
+ }
4716
4785
  export interface OrganizationMembersChannel {
4717
4786
  channel: 'organization-members';
4718
4787
  organization: string;
@@ -4898,7 +4967,7 @@ export interface CustomHostnameChannel {
4898
4967
  customHostname: string;
4899
4968
  }
4900
4969
  /** Channel to subscribe to for API updates. */
4901
- export type SubscriptionChannel = SpaceInfoChannel | SpaceGitInfoChannel | SpacePublishingAuthChannel | SpacePublishingCustomizationChannel | SpaceCustomFieldsChannel | SpaceBrokenLinksChannel | BackofficeUserInfoChannel | SpaceIntegrationsChannel | OrganizationCustomFieldsChannel | UserAPITokensChannel | UserOrganizationsChannel | UserProfileChannel | ChangeRequestChannel | ChangeRequestsChannel | ChangeRequestReviewsChannel | ChangeRequestBrokenLinksChannel | CollectionChannel | CollectionPublishingCustomizationChannel | OrganizationInfoChannel | OrganizationMembersChannel | OrganizationMemberChannel | OrganizationSAMLChannel | OrganizationTeamsChannel | OrganizationTeamChannel | OrganizationTeamMembersChannel | OrganizationTeamMemberChannel | OrganizationSpacesChannel | OrganizationCollectionsChannel | OrganizationCapturesChannel | OrganizationIntegrationsChannel | OrganizationInstallationsChannel | OrganizationSitesChannel | OrganizationExperimentalFeaturesChannel | OrganizationSyncedBlocksChannel | OrganizationSyncedBlockChannel | CommentsChannel | CommentInfoChannel | CommentReplyInfoChannel | CommentRepliesChannel | IntegrationChannel | IntegrationInstallationChannel | IntegrationSpaceInstallationChannel | IntegrationSpaceInstallationsChannel | IntegrationSiteInstallationChannel | IntegrationSiteInstallationsChannel | SiteChannel | SiteCustomizationChannel | SiteIntegrationsChannel | SiteSpaceChannel | SiteSpaceCustomizationChannel | SiteSpacesChannel | SitePublishingAuthChannel | SiteShareLinksChannel | SiteShareLinkChannel | SiteSectionsChannel | SiteSectionChannel | CustomHostnameChannel;
4970
+ export type SubscriptionChannel = SpaceInfoChannel | SpaceGitInfoChannel | SpacePublishingAuthChannel | SpacePublishingCustomizationChannel | SpaceCustomFieldsChannel | SpaceBrokenLinksChannel | BackofficeUserInfoChannel | SpaceIntegrationsChannel | OrganizationCustomFieldsChannel | UserAPITokensChannel | UserOrganizationsChannel | UserProfileChannel | ChangeRequestChannel | ChangeRequestsChannel | ChangeRequestReviewsChannel | ChangeRequestBrokenLinksChannel | CollectionChannel | CollectionPublishingCustomizationChannel | OrganizationInfoChannel | OrganizationInviteLinksChannel | OrganizationMembersChannel | OrganizationMemberChannel | OrganizationSAMLChannel | OrganizationTeamsChannel | OrganizationTeamChannel | OrganizationTeamMembersChannel | OrganizationTeamMemberChannel | OrganizationSpacesChannel | OrganizationCollectionsChannel | OrganizationCapturesChannel | OrganizationIntegrationsChannel | OrganizationInstallationsChannel | OrganizationSitesChannel | OrganizationExperimentalFeaturesChannel | OrganizationSyncedBlocksChannel | OrganizationSyncedBlockChannel | CommentsChannel | CommentInfoChannel | CommentReplyInfoChannel | CommentRepliesChannel | IntegrationChannel | IntegrationInstallationChannel | IntegrationSpaceInstallationChannel | IntegrationSpaceInstallationsChannel | IntegrationSiteInstallationChannel | IntegrationSiteInstallationsChannel | SiteChannel | SiteCustomizationChannel | SiteIntegrationsChannel | SiteSpaceChannel | SiteSpaceCustomizationChannel | SiteSpacesChannel | SitePublishingAuthChannel | SiteShareLinksChannel | SiteShareLinkChannel | SiteSectionsChannel | SiteSectionChannel | CustomHostnameChannel;
4902
4971
  /** The status of ads on the site */
4903
4972
  export declare enum SiteAdsStatus {
4904
4973
  Pending = "pending",
@@ -5717,18 +5786,34 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
5717
5786
  /**
5718
5787
  * No description
5719
5788
  *
5720
- * @name ComputePageDocument
5789
+ * @name GetComputedDocument
5721
5790
  * @summary Get the document for a page in a computed content.
5722
- * @request POST:/spaces/{spaceId}/content/computed/document
5791
+ * @request GET:/spaces/{spaceId}/content/computed/document
5723
5792
  * @secure
5724
5793
  */
5725
- computePageDocument: (spaceId: string, data: {
5726
- /** Parameters for a computed content */
5727
- source: ComputedContentSource;
5728
- }, query?: {
5794
+ getComputedDocument: (spaceId: string, query: {
5729
5795
  /** Output format for the content. */
5730
5796
  format?: "document" | "markdown";
5797
+ /** LZ-string compressed JSON request */
5798
+ request: string;
5731
5799
  }, params?: RequestParams) => Promise<HttpResponse<Document, Error>>;
5800
+ /**
5801
+ * No description
5802
+ *
5803
+ * @name GetComputedPage
5804
+ * @summary Get the computed pages for a page in a computed content.
5805
+ * @request GET:/spaces/{spaceId}/content/computed/page
5806
+ * @secure
5807
+ */
5808
+ getComputedPage: (spaceId: string, query: {
5809
+ /** Output format for the content. */
5810
+ format?: "document" | "markdown";
5811
+ /** LZ-string compressed JSON request */
5812
+ request: string;
5813
+ }, params?: RequestParams) => Promise<HttpResponse<{
5814
+ pages: RevisionPage[];
5815
+ files: RevisionFile[];
5816
+ }, Error>>;
5732
5817
  /**
5733
5818
  * No description
5734
5819
  *
@@ -6372,6 +6457,25 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
6372
6457
  /** Temporary URL to print the content. The URL will work for 1h. */
6373
6458
  url: URL;
6374
6459
  }, Error>>;
6460
+ /**
6461
+ * No description
6462
+ *
6463
+ * @tags spaces
6464
+ * @name GetSyncedBlockContentInChangeRequest
6465
+ * @summary Get the content of a synced block in the context of a change request.
6466
+ * @request GET:/spaces/{spaceId}/change-requests/{changeRequestId}/synced-blocks/{syncedBlockId}/content
6467
+ * @secure
6468
+ */
6469
+ getSyncedBlockContentInChangeRequest: (spaceId: string, changeRequestId: string, syncedBlockId: string, params?: RequestParams) => Promise<HttpResponse<{
6470
+ document: JSONDocument;
6471
+ files: RevisionFile[];
6472
+ }, Error | {
6473
+ error: {
6474
+ /** @format int32 */
6475
+ code: 404;
6476
+ message: string;
6477
+ };
6478
+ }>>;
6375
6479
  /**
6376
6480
  * No description
6377
6481
  *
@@ -7995,6 +8099,52 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
7995
8099
  * @secure
7996
8100
  */
7997
8101
  joinOrganizationWithInvite: (organizationId: string, inviteId: string, params?: RequestParams) => Promise<HttpResponse<object, Error>>;
8102
+ /**
8103
+ * No description
8104
+ *
8105
+ * @tags organizations
8106
+ * @name ListOrganizationContentInviteLinks
8107
+ * @summary List invite links to content in an organization
8108
+ * @request GET:/orgs/{organizationId}/content-link-invites
8109
+ * @secure
8110
+ */
8111
+ listOrganizationContentInviteLinks: (organizationId: string, query?: {
8112
+ /** Identifier of the page results to fetch. */
8113
+ page?: string;
8114
+ /**
8115
+ * The number of results per page
8116
+ * @min 0
8117
+ * @max 1000
8118
+ */
8119
+ limit?: number;
8120
+ /** If specified, only return invite links that provide specific permissions on the given space. */
8121
+ space?: string;
8122
+ /** If specified, only return invite links that provide permissions on the given collection. */
8123
+ collection?: string;
8124
+ }, params?: RequestParams) => Promise<HttpResponse<List & {
8125
+ items: (InviteLinkToCollection | InviteLinkToSpace)[];
8126
+ }, Error>>;
8127
+ /**
8128
+ * No description
8129
+ *
8130
+ * @tags organizations
8131
+ * @name ListOrganizationInviteLinks
8132
+ * @summary List invite links to an organization
8133
+ * @request GET:/orgs/{organizationId}/link-invites
8134
+ * @secure
8135
+ */
8136
+ listOrganizationInviteLinks: (organizationId: string, query?: {
8137
+ /** Identifier of the page results to fetch. */
8138
+ page?: string;
8139
+ /**
8140
+ * The number of results per page
8141
+ * @min 0
8142
+ * @max 1000
8143
+ */
8144
+ limit?: number;
8145
+ }, params?: RequestParams) => Promise<HttpResponse<List & {
8146
+ items: InviteLinkToOrganization[];
8147
+ }, Error>>;
7998
8148
  /**
7999
8149
  * No description
8000
8150
  *
@@ -8004,7 +8154,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
8004
8154
  * @request POST:/orgs/{organizationId}/link-invites
8005
8155
  * @secure
8006
8156
  */
8007
- createOrganizationInvite: (organizationId: string, data: CreateOrganizationInvite, params?: RequestParams) => Promise<HttpResponse<OrganizationInvite, Error>>;
8157
+ createOrganizationInvite: (organizationId: string, data: CreateOrganizationInvite, params?: RequestParams) => Promise<HttpResponse<OrganizationInviteLink, Error>>;
8008
8158
  /**
8009
8159
  * No description
8010
8160
  *
@@ -8020,7 +8170,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
8020
8170
  } | {
8021
8171
  /** The role of a member in an organization, null for guests */
8022
8172
  level: MemberRoleOrGuest;
8023
- }, params?: RequestParams) => Promise<HttpResponse<OrganizationInvite, Error>>;
8173
+ }, params?: RequestParams) => Promise<HttpResponse<OrganizationInviteLink, Error>>;
8024
8174
  /**
8025
8175
  * No description
8026
8176
  *
@@ -8127,8 +8277,6 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
8127
8277
  * @max 1000
8128
8278
  */
8129
8279
  limit?: number;
8130
- /** If defined, only content with this visibility will be returned. */
8131
- visibility?: ContentVisibility;
8132
8280
  }, params?: RequestParams) => Promise<HttpResponse<List & {
8133
8281
  items: Space[];
8134
8282
  }, Error>>;
@@ -8857,14 +9005,20 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
8857
9005
  *
8858
9006
  * @tags organizations
8859
9007
  * @name GetSyncedBlockContent
8860
- * @summary Get a synced block content
9008
+ * @summary Get the content of a synced block.
8861
9009
  * @request GET:/orgs/{organizationId}/synced-blocks/{syncedBlockId}/content
8862
9010
  * @secure
8863
9011
  */
8864
9012
  getSyncedBlockContent: (organizationId: string, syncedBlockId: string, params?: RequestParams) => Promise<HttpResponse<{
8865
9013
  document: JSONDocument;
8866
9014
  files: RevisionFile[];
8867
- }, Error>>;
9015
+ }, Error | {
9016
+ error: {
9017
+ /** @format int32 */
9018
+ code: 404;
9019
+ message: string;
9020
+ };
9021
+ }>>;
8868
9022
  /**
8869
9023
  * No description
8870
9024
  *
package/dist/index.cjs CHANGED
@@ -192,6 +192,7 @@ __export(src_exports, {
192
192
  CloudflareHostnameTLSStatus: () => CloudflareHostnameTLSStatus,
193
193
  CloudflareHostnameTLSValidationMethod: () => CloudflareHostnameTLSValidationMethod,
194
194
  ContentKitIcon: () => ContentKitIcon,
195
+ ContentReferenceRelation: () => ContentReferenceRelation,
195
196
  ContentReferenceStatus: () => ContentReferenceStatus,
196
197
  ContentType: () => ContentType,
197
198
  ContentVisibility: () => ContentVisibility,
@@ -241,7 +242,7 @@ module.exports = __toCommonJS(src_exports);
241
242
 
242
243
  // package.json
243
244
  var name = "@gitbook/api";
244
- var version = "0.65.0";
245
+ var version = "0.67.0";
245
246
 
246
247
  // src/client.ts
247
248
  var import_event_iterator = __toESM(require_node(), 1);
@@ -505,6 +506,11 @@ var ContentReferenceStatus = /* @__PURE__ */ ((ContentReferenceStatus2) => {
505
506
  ContentReferenceStatus2["InApp"] = "in-app";
506
507
  return ContentReferenceStatus2;
507
508
  })(ContentReferenceStatus || {});
509
+ var ContentReferenceRelation = /* @__PURE__ */ ((ContentReferenceRelation2) => {
510
+ ContentReferenceRelation2["Reference"] = "reference";
511
+ ContentReferenceRelation2["DependsOn"] = "dependsOn";
512
+ return ContentReferenceRelation2;
513
+ })(ContentReferenceRelation || {});
508
514
  var ChangeRequestReviewStatus = /* @__PURE__ */ ((ChangeRequestReviewStatus2) => {
509
515
  ChangeRequestReviewStatus2["ChangesRequested"] = "changes-requested";
510
516
  ChangeRequestReviewStatus2["Approved"] = "approved";
@@ -654,6 +660,7 @@ var SiteType = /* @__PURE__ */ ((SiteType2) => {
654
660
  SiteType2["Basic"] = "basic";
655
661
  SiteType2["Premium"] = "premium";
656
662
  SiteType2["Ultimate"] = "ultimate";
663
+ SiteType2["Sponsored"] = "sponsored";
657
664
  SiteType2["LegacyBasic"] = "legacy-basic";
658
665
  SiteType2["LegacyPremium"] = "legacy-premium";
659
666
  return SiteType2;
@@ -1306,13 +1313,19 @@ var Api = class extends HttpClient {
1306
1313
  format: "json",
1307
1314
  ...params
1308
1315
  }),
1309
- computePageDocument: (spaceId, data, query, params = {}) => this.request({
1316
+ getComputedDocument: (spaceId, query, params = {}) => this.request({
1310
1317
  path: `/spaces/${spaceId}/content/computed/document`,
1311
- method: "POST",
1318
+ method: "GET",
1319
+ query,
1320
+ secure: true,
1321
+ format: "json",
1322
+ ...params
1323
+ }),
1324
+ getComputedPage: (spaceId, query, params = {}) => this.request({
1325
+ path: `/spaces/${spaceId}/content/computed/page`,
1326
+ method: "GET",
1312
1327
  query,
1313
- body: data,
1314
1328
  secure: true,
1315
- type: "application/json" /* Json */,
1316
1329
  format: "json",
1317
1330
  ...params
1318
1331
  }),
@@ -1608,6 +1621,13 @@ var Api = class extends HttpClient {
1608
1621
  format: "json",
1609
1622
  ...params
1610
1623
  }),
1624
+ getSyncedBlockContentInChangeRequest: (spaceId, changeRequestId, syncedBlockId, params = {}) => this.request({
1625
+ path: `/spaces/${spaceId}/change-requests/${changeRequestId}/synced-blocks/${syncedBlockId}/content`,
1626
+ method: "GET",
1627
+ secure: true,
1628
+ format: "json",
1629
+ ...params
1630
+ }),
1611
1631
  getRevisionById: (spaceId, revisionId, query, params = {}) => this.request({
1612
1632
  path: `/spaces/${spaceId}/revisions/${revisionId}`,
1613
1633
  method: "GET",
@@ -2362,6 +2382,22 @@ var Api = class extends HttpClient {
2362
2382
  format: "json",
2363
2383
  ...params
2364
2384
  }),
2385
+ listOrganizationContentInviteLinks: (organizationId, query, params = {}) => this.request({
2386
+ path: `/orgs/${organizationId}/content-link-invites`,
2387
+ method: "GET",
2388
+ query,
2389
+ secure: true,
2390
+ format: "json",
2391
+ ...params
2392
+ }),
2393
+ listOrganizationInviteLinks: (organizationId, query, params = {}) => this.request({
2394
+ path: `/orgs/${organizationId}/link-invites`,
2395
+ method: "GET",
2396
+ query,
2397
+ secure: true,
2398
+ format: "json",
2399
+ ...params
2400
+ }),
2365
2401
  createOrganizationInvite: (organizationId, data, params = {}) => this.request({
2366
2402
  path: `/orgs/${organizationId}/link-invites`,
2367
2403
  method: "POST",
@@ -3371,6 +3407,7 @@ var GitBookAPI = class extends Api {
3371
3407
  CloudflareHostnameTLSStatus,
3372
3408
  CloudflareHostnameTLSValidationMethod,
3373
3409
  ContentKitIcon,
3410
+ ContentReferenceRelation,
3374
3411
  ContentReferenceStatus,
3375
3412
  ContentType,
3376
3413
  ContentVisibility,
package/dist/index.js CHANGED
@@ -172,7 +172,7 @@ var require_node = __commonJS({
172
172
 
173
173
  // package.json
174
174
  var name = "@gitbook/api";
175
- var version = "0.65.0";
175
+ var version = "0.67.0";
176
176
 
177
177
  // src/client.ts
178
178
  var import_event_iterator = __toESM(require_node(), 1);
@@ -436,6 +436,11 @@ var ContentReferenceStatus = /* @__PURE__ */ ((ContentReferenceStatus2) => {
436
436
  ContentReferenceStatus2["InApp"] = "in-app";
437
437
  return ContentReferenceStatus2;
438
438
  })(ContentReferenceStatus || {});
439
+ var ContentReferenceRelation = /* @__PURE__ */ ((ContentReferenceRelation2) => {
440
+ ContentReferenceRelation2["Reference"] = "reference";
441
+ ContentReferenceRelation2["DependsOn"] = "dependsOn";
442
+ return ContentReferenceRelation2;
443
+ })(ContentReferenceRelation || {});
439
444
  var ChangeRequestReviewStatus = /* @__PURE__ */ ((ChangeRequestReviewStatus2) => {
440
445
  ChangeRequestReviewStatus2["ChangesRequested"] = "changes-requested";
441
446
  ChangeRequestReviewStatus2["Approved"] = "approved";
@@ -585,6 +590,7 @@ var SiteType = /* @__PURE__ */ ((SiteType2) => {
585
590
  SiteType2["Basic"] = "basic";
586
591
  SiteType2["Premium"] = "premium";
587
592
  SiteType2["Ultimate"] = "ultimate";
593
+ SiteType2["Sponsored"] = "sponsored";
588
594
  SiteType2["LegacyBasic"] = "legacy-basic";
589
595
  SiteType2["LegacyPremium"] = "legacy-premium";
590
596
  return SiteType2;
@@ -1237,13 +1243,19 @@ var Api = class extends HttpClient {
1237
1243
  format: "json",
1238
1244
  ...params
1239
1245
  }),
1240
- computePageDocument: (spaceId, data, query, params = {}) => this.request({
1246
+ getComputedDocument: (spaceId, query, params = {}) => this.request({
1241
1247
  path: `/spaces/${spaceId}/content/computed/document`,
1242
- method: "POST",
1248
+ method: "GET",
1249
+ query,
1250
+ secure: true,
1251
+ format: "json",
1252
+ ...params
1253
+ }),
1254
+ getComputedPage: (spaceId, query, params = {}) => this.request({
1255
+ path: `/spaces/${spaceId}/content/computed/page`,
1256
+ method: "GET",
1243
1257
  query,
1244
- body: data,
1245
1258
  secure: true,
1246
- type: "application/json" /* Json */,
1247
1259
  format: "json",
1248
1260
  ...params
1249
1261
  }),
@@ -1539,6 +1551,13 @@ var Api = class extends HttpClient {
1539
1551
  format: "json",
1540
1552
  ...params
1541
1553
  }),
1554
+ getSyncedBlockContentInChangeRequest: (spaceId, changeRequestId, syncedBlockId, params = {}) => this.request({
1555
+ path: `/spaces/${spaceId}/change-requests/${changeRequestId}/synced-blocks/${syncedBlockId}/content`,
1556
+ method: "GET",
1557
+ secure: true,
1558
+ format: "json",
1559
+ ...params
1560
+ }),
1542
1561
  getRevisionById: (spaceId, revisionId, query, params = {}) => this.request({
1543
1562
  path: `/spaces/${spaceId}/revisions/${revisionId}`,
1544
1563
  method: "GET",
@@ -2293,6 +2312,22 @@ var Api = class extends HttpClient {
2293
2312
  format: "json",
2294
2313
  ...params
2295
2314
  }),
2315
+ listOrganizationContentInviteLinks: (organizationId, query, params = {}) => this.request({
2316
+ path: `/orgs/${organizationId}/content-link-invites`,
2317
+ method: "GET",
2318
+ query,
2319
+ secure: true,
2320
+ format: "json",
2321
+ ...params
2322
+ }),
2323
+ listOrganizationInviteLinks: (organizationId, query, params = {}) => this.request({
2324
+ path: `/orgs/${organizationId}/link-invites`,
2325
+ method: "GET",
2326
+ query,
2327
+ secure: true,
2328
+ format: "json",
2329
+ ...params
2330
+ }),
2296
2331
  createOrganizationInvite: (organizationId, data, params = {}) => this.request({
2297
2332
  path: `/orgs/${organizationId}/link-invites`,
2298
2333
  method: "POST",
@@ -3301,6 +3336,7 @@ export {
3301
3336
  CloudflareHostnameTLSStatus,
3302
3337
  CloudflareHostnameTLSValidationMethod,
3303
3338
  ContentKitIcon,
3339
+ ContentReferenceRelation,
3304
3340
  ContentReferenceStatus,
3305
3341
  ContentType,
3306
3342
  ContentVisibility,
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.65.0",
7
+ "version": "0.67.0",
8
8
  "sideEffects": false,
9
9
  "files": [
10
10
  "README.md",