@gitbook/api 0.27.0 → 0.29.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
@@ -241,6 +241,10 @@ export interface ApiInformation {
241
241
  /** Date of the latest release in ISO format */
242
242
  build: string;
243
243
  }
244
+ /** The context to send when blocking/unblocking */
245
+ export interface BlockContext {
246
+ block: boolean;
247
+ }
244
248
  /** The context to send when purging the CDN Cache */
245
249
  export interface RequestPurgeCDNCacheContext {
246
250
  /** The type of purge, e.g by tags or hosts */
@@ -248,10 +252,6 @@ export interface RequestPurgeCDNCacheContext {
248
252
  /** The list of tags or hosts to purge */
249
253
  values: string[];
250
254
  }
251
- /** The context to send when blocking/unblocking a user */
252
- export interface RequestBlockUserContext {
253
- block: boolean;
254
- }
255
255
  /** The context to send when triggering a content indexing. */
256
256
  export interface TriggerContentIndexingContext {
257
257
  /** The unique identifier of the Space to index. */
@@ -450,6 +450,21 @@ export declare type PublishedContentLookup = {
450
450
  /** Short-lived API token to fetch content related to the space in the context of the URL. */
451
451
  apiToken: string;
452
452
  };
453
+ export interface SpacePointer {
454
+ type: 'space';
455
+ /** Unique identifier for the space */
456
+ space: string;
457
+ }
458
+ export interface CollectionPointer {
459
+ type: 'collection';
460
+ /** Unique identifier for the collection */
461
+ collection: string;
462
+ }
463
+ /** Position at which to insert an item */
464
+ export interface ContentPosition {
465
+ before?: SpacePointer | CollectionPointer;
466
+ after?: SpacePointer | CollectionPointer;
467
+ }
453
468
  export declare type Document = MarkdownDocument | {
454
469
  document: JSONDocument;
455
470
  } | object;
@@ -459,7 +474,11 @@ export interface MarkdownDocument {
459
474
  }
460
475
  export interface JSONDocument {
461
476
  object: 'document';
462
- data: object;
477
+ data: {
478
+ /** The schema version of the document. If undefined, the document is considered to be of the latest schema version. */
479
+ schemaVersion?: number;
480
+ [key: string]: any;
481
+ };
463
482
  nodes: DocumentBlocksTopLevels[];
464
483
  }
465
484
  export declare type DocumentBlock = DocumentBlockParagraph | DocumentBlockHeading | DocumentBlockListOrdered | DocumentBlockListUnordered | DocumentBlockListTasks | DocumentBlockListItem | DocumentBlockDivider | DocumentBlockQuote | DocumentBlockHint | DocumentBlockImages | DocumentBlockImage | DocumentBlockFile | DocumentBlockDrawing | DocumentBlockEmbed | DocumentBlockCode | DocumentBlockCodeLine | DocumentBlockMath | DocumentBlockExpandable | DocumentBlockTabs | DocumentBlockTabsItem | DocumentBlockTable | DocumentBlockSwagger | DocumentBlockContentRef | DocumentBlockIntegration;
@@ -1049,6 +1068,8 @@ export interface Space {
1049
1068
  /** Name of integration being used as the backend for Visitor Authentication */
1050
1069
  integration: string;
1051
1070
  };
1071
+ /** ID of the active revision in the space. */
1072
+ revision: string;
1052
1073
  }
1053
1074
  /**
1054
1075
  * Determines how a Space can be edited.
@@ -1421,6 +1442,16 @@ export interface Organization {
1421
1442
  type: OrganizationType;
1422
1443
  useCase?: OrganizationUseCase;
1423
1444
  communityType?: OrganizationCommunityType;
1445
+ /** The role of a member in an organization, null for guests */
1446
+ defaultRole?: MemberRoleOrGuest;
1447
+ /** The default content for the organization */
1448
+ defaultContent?: OrganizationDefaultContent;
1449
+ /** Whether SSO is enforced organization wide */
1450
+ sso?: boolean;
1451
+ /** If true, the organization is configured to use our AI-powered natural language search */
1452
+ aiSearch?: boolean;
1453
+ /** If true, the organization is configured to run content audits on any space update */
1454
+ aiInsights?: boolean;
1424
1455
  /** URLs associated with the object */
1425
1456
  urls: {
1426
1457
  /**
@@ -1433,6 +1464,8 @@ export interface Organization {
1433
1464
  * @format uri
1434
1465
  */
1435
1466
  app: string;
1467
+ /** URL of the logo of this organization, if defined. */
1468
+ logo?: URL;
1436
1469
  };
1437
1470
  }
1438
1471
  export declare enum OrganizationType {
@@ -1555,6 +1588,38 @@ export interface OrganizationTeamMember {
1555
1588
  organization: OrganizationMember;
1556
1589
  team: TeamMember;
1557
1590
  }
1591
+ /** The default content for the organization */
1592
+ export declare type OrganizationDefaultContent = SpacePointer | CollectionPointer;
1593
+ export declare type OrganizationInvite = {
1594
+ /** Type of Object, always equals to "invite" */
1595
+ object: 'invite';
1596
+ /** Unique identifier for the organization invite */
1597
+ id: string;
1598
+ /** The role of the member in the organization */
1599
+ role: MemberRoleOrGuest;
1600
+ } | {
1601
+ /** Type of Object, always equals to "invite" */
1602
+ object: 'invite';
1603
+ /** Unique identifier for the organization invite */
1604
+ id: string;
1605
+ /** The role of the member in the organization */
1606
+ role: MemberRoleOrGuest;
1607
+ /** The role of the member in the target space */
1608
+ contentLevel: MemberRoleOrGuest;
1609
+ /** The space the member has been invited to */
1610
+ space: Space;
1611
+ } | {
1612
+ /** Type of Object, always equals to "invite" */
1613
+ object: 'invite';
1614
+ /** Unique identifier for the organization invite */
1615
+ id: string;
1616
+ /** The role of the member in the organization */
1617
+ role: MemberRoleOrGuest;
1618
+ /** The role of the member in the target collection */
1619
+ contentLevel: MemberRoleOrGuest;
1620
+ /** The collection the member has been invited to */
1621
+ collection: Collection;
1622
+ };
1558
1623
  export interface Capture {
1559
1624
  /** Unique identifier for the capture */
1560
1625
  id: string;
@@ -1660,13 +1725,7 @@ export declare type CaptureFileRemovedEvent = BaseCaptureEvent & {
1660
1725
  filename: string;
1661
1726
  fileSnapshot: string;
1662
1727
  };
1663
- export interface UpdateCaptureSchema {
1664
- /** A new title for the capture. */
1665
- title?: string;
1666
- /** Content of the capture. */
1667
- body?: Document;
1668
- }
1669
- export declare type Snippet = Document & {
1728
+ export interface Snippet {
1670
1729
  /** Unique identifier for the snippet */
1671
1730
  id: string;
1672
1731
  /** ID of the organization owning this snippet */
@@ -1708,12 +1767,10 @@ export declare type Snippet = Document & {
1708
1767
  /** URL of the snippet in the app */
1709
1768
  app: URL;
1710
1769
  };
1711
- };
1770
+ }
1712
1771
  export interface UpdateSnippetSchema {
1713
1772
  /** A new title for the snippet. */
1714
1773
  title?: string;
1715
- /** Content of the snippet. */
1716
- body?: Document;
1717
1774
  }
1718
1775
  /** Content audit relation */
1719
1776
  export interface ContentAuditRelation {
@@ -1759,15 +1816,13 @@ export interface ChangeRequest {
1759
1816
  /** Incremental identifier of the change request */
1760
1817
  number: number;
1761
1818
  status: ChangeRequestStatus;
1762
- /**
1763
- * Subject of the change request
1764
- * @minLength 0
1765
- * @maxLength 100
1766
- */
1767
- subject: string;
1819
+ /** Subject of the change request */
1820
+ subject: ChangeRequestSubject;
1768
1821
  createdBy: User;
1769
1822
  createdAt: Timestamp;
1770
1823
  updatedAt: Timestamp;
1824
+ /** ID of the active revision in the change request. */
1825
+ revision: string;
1771
1826
  /** URLs associated with the object */
1772
1827
  urls: {
1773
1828
  /**
@@ -1822,6 +1877,12 @@ export declare type ChangeRequestRequestedReviewer = {
1822
1877
  /** The team who was requested to review. */
1823
1878
  team: Team;
1824
1879
  });
1880
+ /**
1881
+ * Subject of the change request
1882
+ * @minLength 0
1883
+ * @maxLength 100
1884
+ */
1885
+ export declare type ChangeRequestSubject = string;
1825
1886
  export interface UpdateCommentSchema {
1826
1887
  /** Whether the comment is resolved or not. */
1827
1888
  resolved?: boolean;
@@ -2013,8 +2074,7 @@ export interface AnalyticsContentPages {
2013
2074
  }
2014
2075
  /** Page entry in the content analytics. */
2015
2076
  export interface AnalyticsContentPage {
2016
- page: string;
2017
- title: string;
2077
+ page: RevisionPageDocument;
2018
2078
  pageViews: number;
2019
2079
  feedbacks?: {
2020
2080
  /** Score based on each rating (+1 for 'good', -0.5 for 'ok', -2 for 'bad'). */
@@ -2194,6 +2254,8 @@ export declare enum IntegrationScope {
2194
2254
  SpaceGitSync = "space:git:sync",
2195
2255
  SpaceVisitorAuth = "space:visitor:auth"
2196
2256
  }
2257
+ /** A search string to filter integrations by name */
2258
+ export declare type IntegrationSearchQuery = any;
2197
2259
  /** Categories for which the integration is listed in the marketplace */
2198
2260
  export declare type IntegrationCategories = IntegrationCategory[];
2199
2261
  /** Format the custom block as a codeblock */
@@ -2394,8 +2456,19 @@ export interface IntegrationEnvironment {
2394
2456
  spaceInstallation?: IntegrationSpaceInstallation;
2395
2457
  /** Secrets stored on the integration and passed at runtime. */
2396
2458
  secrets: IntegrationSecrets;
2397
- /** Secret that can be used to verify the authenticity of incoming HTTP requests to the integration. */
2459
+ /**
2460
+ * Secret that can be used to verify the authenticity of incoming HTTP requests to the integration.
2461
+ * @deprecated
2462
+ */
2398
2463
  signingSecret?: string;
2464
+ signingSecrets: {
2465
+ /** Secret that can be used to verify the authenticity of incoming HTTP requests to the integration. */
2466
+ integration: string;
2467
+ /** Secret that can be used to verify the authenticity of incoming HTTP requests to the installation. */
2468
+ installation?: string;
2469
+ /** Secret that can be used to verify the authenticity of incoming HTTP requests to the space installation. */
2470
+ spaceInstallation?: string;
2471
+ };
2399
2472
  /** URL of the HTTP API */
2400
2473
  apiEndpoint: string;
2401
2474
  apiTokens: {
@@ -2940,6 +3013,14 @@ export interface UserRiskEvaluation {
2940
3013
  emailVerified: boolean;
2941
3014
  activeDaysRemaining: number;
2942
3015
  }
3016
+ /** Reason for a space to be blocked */
3017
+ export declare enum SpaceBlockReason {
3018
+ DMCA = "DMCA",
3019
+ THREAT_TYPE_UNSPECIFIED = "THREAT_TYPE_UNSPECIFIED",
3020
+ MALWARE = "MALWARE",
3021
+ SOCIAL_ENGINEERING = "SOCIAL_ENGINEERING",
3022
+ UNWANTED_SOFTWARE = "UNWANTED_SOFTWARE"
3023
+ }
2943
3024
  /** JWT tokens to authenticate in Hive for all content. */
2944
3025
  export interface HiveAccessToken {
2945
3026
  contents: Record<string, string>;
@@ -3300,7 +3381,7 @@ export interface ContentKitURL {
3300
3381
  query?: Record<string, string | ContentKitDynamicBinding>;
3301
3382
  }
3302
3383
  /** Channel to subscribe to for API updates. */
3303
- export declare type SubscriptionChannel = SpaceInfoChannel | SpaceGitInfoChannel | SpacePublishingAuthChannel | SpacePublishingCustomizationChannel | SpaceEntitiesChannel | SpaceCustomFieldsChannel | BackofficeUserInfoChannel | SpaceIntegrationsChannel | OrganizationCustomFieldsChannel | UserAPITokensChannel | UserOrganizationsChannel | UserProfileChannel | ChangeRequestReviewsChannel | CollectionChannel | CollectionPublishingCustomizationChannel | {
3384
+ export declare type SubscriptionChannel = SpaceInfoChannel | SpaceGitInfoChannel | SpacePublishingAuthChannel | SpacePublishingCustomizationChannel | SpaceEntitiesChannel | SpaceCustomFieldsChannel | BackofficeUserInfoChannel | SpaceIntegrationsChannel | OrganizationCustomFieldsChannel | UserAPITokensChannel | UserOrganizationsChannel | UserProfileChannel | ChangeRequestChannel | ChangeRequestsChannel | ChangeRequestReviewsChannel | CollectionChannel | CollectionPublishingCustomizationChannel | {
3304
3385
  channel: 'organization';
3305
3386
  organization: string;
3306
3387
  } | OrganizationMembersChannel | OrganizationMemberChannel | OrganizationTeamsChannel | OrganizationTeamChannel | OrganizationTeamMembersChannel | OrganizationTeamMemberChannel | OrganizationSpacesChannel | OrganizationCollectionsChannel | OrganizationEntitiesChannel | OrganizationSchemasChannel | OrganizationCapturesChannel | OrganizationContentAuditsChannel | OrganizationIntegrationsChannel | OrganizationInstallationsChannel | {
@@ -3379,6 +3460,15 @@ export interface CollectionPublishingCustomizationChannel {
3379
3460
  channel: 'collection-publishing-customization';
3380
3461
  collection: string;
3381
3462
  }
3463
+ export interface ChangeRequestChannel {
3464
+ channel: 'space-change-request';
3465
+ space: string;
3466
+ changeRequest: string;
3467
+ }
3468
+ export interface ChangeRequestsChannel {
3469
+ channel: 'space-change-requests';
3470
+ space: string;
3471
+ }
3382
3472
  export interface ChangeRequestReviewsChannel {
3383
3473
  channel: 'space-change-request-reviews';
3384
3474
  space: string;
@@ -3539,6 +3629,7 @@ export interface CustomizationSettings {
3539
3629
  primaryColor: CustomizationThemedColor;
3540
3630
  corners: CustomizationCorners;
3541
3631
  font: CustomizationFont;
3632
+ background?: CustomizationBackground;
3542
3633
  };
3543
3634
  internationalization: {
3544
3635
  /** Language for the UI element */
@@ -3658,6 +3749,10 @@ export declare enum CustomizationCorners {
3658
3749
  Straight = "straight",
3659
3750
  Rounded = "rounded"
3660
3751
  }
3752
+ export declare enum CustomizationBackground {
3753
+ Plain = "plain",
3754
+ Match = "match"
3755
+ }
3661
3756
  export interface CustomizationThemedURL {
3662
3757
  light: URL;
3663
3758
  dark: URL;
@@ -3688,6 +3783,22 @@ export declare enum PageFeedbackRating {
3688
3783
  Ok = "ok",
3689
3784
  Good = "good"
3690
3785
  }
3786
+ export interface ShareLink {
3787
+ /** Type of Object, always equals to "share-link" */
3788
+ object: 'share-link';
3789
+ /** Unique identifier for the share-link */
3790
+ id: string;
3791
+ createdAt: Timestamp;
3792
+ /** Name of the share link */
3793
+ name?: ShareLinkName;
3794
+ active?: boolean;
3795
+ }
3796
+ /**
3797
+ * Name of the share link
3798
+ * @minLength 0
3799
+ * @maxLength 50
3800
+ */
3801
+ export declare type ShareLinkName = string;
3691
3802
  export declare type QueryParamsType = Record<string | number, any>;
3692
3803
  export declare type ResponseFormat = keyof Omit<Body, 'body' | 'bodyUsed'>;
3693
3804
  export interface FullRequestParams extends Omit<RequestInit, 'body'> {
@@ -3948,6 +4059,64 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
3948
4059
  * @secure
3949
4060
  */
3950
4061
  restoreSpace: (spaceId: string, params?: RequestParams) => Promise<HttpResponse<Space, Error>>;
4062
+ /**
4063
+ * No description
4064
+ *
4065
+ * @tags spaces
4066
+ * @name MoveSpace
4067
+ * @summary Move a space to a new position.
4068
+ * @request POST:/spaces/{spaceId}/move
4069
+ * @secure
4070
+ */
4071
+ moveSpace: (spaceId: string, data: {
4072
+ /** The unique id of the parent collection */
4073
+ parent?: string | null;
4074
+ /** Where to move the space. By default, it will be moved at the end. */
4075
+ position?: ContentPosition;
4076
+ }, params?: RequestParams) => Promise<HttpResponse<Space, Error | {
4077
+ error: {
4078
+ /** @format int32 */
4079
+ code: 400;
4080
+ message: string;
4081
+ };
4082
+ } | {
4083
+ error: {
4084
+ /** @format int32 */
4085
+ code: 404;
4086
+ message: string;
4087
+ };
4088
+ } | {
4089
+ error: {
4090
+ /** @format int32 */
4091
+ code: 409;
4092
+ message: string;
4093
+ };
4094
+ }>>;
4095
+ /**
4096
+ * No description
4097
+ *
4098
+ * @tags spaces
4099
+ * @name TransferSpace
4100
+ * @summary Transfer a space to another organization, collection or both.
4101
+ * @request POST:/spaces/{spaceId}/transfer
4102
+ * @secure
4103
+ */
4104
+ transferSpace: (spaceId: string, data: {
4105
+ /** The unique id of the target organization */
4106
+ organization: string;
4107
+ }, params?: RequestParams) => Promise<HttpResponse<Space, Error | {
4108
+ error: {
4109
+ /** @format int32 */
4110
+ code: 404;
4111
+ message: string;
4112
+ };
4113
+ } | {
4114
+ error: {
4115
+ /** @format int32 */
4116
+ code: 409;
4117
+ message: string;
4118
+ };
4119
+ }>>;
3951
4120
  /**
3952
4121
  * No description
3953
4122
  *
@@ -4190,10 +4359,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
4190
4359
  * @request POST:/spaces/{spaceId}/change-requests
4191
4360
  * @secure
4192
4361
  */
4193
- createChangeRequest: (spaceId: string, data: RequestCreateChangeRequest, params?: RequestParams) => Promise<HttpResponse<ChangeRequest & {
4194
- /** @deprecated */
4195
- changeRequest: string;
4196
- }, Error>>;
4362
+ createChangeRequest: (spaceId: string, data: RequestCreateChangeRequest, params?: RequestParams) => Promise<HttpResponse<ChangeRequest, Error>>;
4197
4363
  /**
4198
4364
  * No description
4199
4365
  *
@@ -4232,6 +4398,19 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
4232
4398
  message: string;
4233
4399
  };
4234
4400
  }>>;
4401
+ /**
4402
+ * No description
4403
+ *
4404
+ * @tags spaces
4405
+ * @name UpdateChangeRequestById
4406
+ * @summary Update the details of a change request
4407
+ * @request PATCH:/spaces/{spaceId}/change-requests/{changeRequestId}
4408
+ * @secure
4409
+ */
4410
+ updateChangeRequestById: (spaceId: string, changeRequestId: string | number, data: {
4411
+ /** Subject of the change request */
4412
+ subject?: ChangeRequestSubject;
4413
+ }, params?: RequestParams) => Promise<HttpResponse<ChangeRequest, Error>>;
4235
4414
  /**
4236
4415
  * No description
4237
4416
  *
@@ -4983,6 +5162,43 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
4983
5162
  /** Temporary URL to print the content. The URL will work for 1h. */
4984
5163
  url: URL;
4985
5164
  }, Error>>;
5165
+ /**
5166
+ * No description
5167
+ *
5168
+ * @tags spaces
5169
+ * @name CreateSpaceShareLink
5170
+ * @summary Creates a new space share link
5171
+ * @request POST:/spaces/{spaceId}/share-links
5172
+ * @secure
5173
+ */
5174
+ createSpaceShareLink: (spaceId: string, data: {
5175
+ /** Name of the share link */
5176
+ name: ShareLinkName;
5177
+ }, params?: RequestParams) => Promise<HttpResponse<ShareLink, Error>>;
5178
+ /**
5179
+ * No description
5180
+ *
5181
+ * @tags spaces
5182
+ * @name UpdateSpaceShareLinkById
5183
+ * @summary Update the details of a space share link
5184
+ * @request PATCH:/spaces/{spaceId}/share-links/{shareLinkId}
5185
+ * @secure
5186
+ */
5187
+ updateSpaceShareLinkById: (spaceId: string, shareLinkId: string, data: {
5188
+ active?: boolean;
5189
+ /** Name of the share link */
5190
+ name?: ShareLinkName;
5191
+ }, params?: RequestParams) => Promise<HttpResponse<ShareLink, Error>>;
5192
+ /**
5193
+ * No description
5194
+ *
5195
+ * @tags spaces
5196
+ * @name DeleteSpaceShareLinkById
5197
+ * @summary Deletes a space share link
5198
+ * @request DELETE:/spaces/{spaceId}/share-links/{shareLinkId}
5199
+ * @secure
5200
+ */
5201
+ deleteSpaceShareLinkById: (spaceId: string, shareLinkId: string, params?: RequestParams) => Promise<HttpResponse<void, Error>>;
4986
5202
  };
4987
5203
  collections: {
4988
5204
  /**
@@ -5047,6 +5263,64 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
5047
5263
  }, params?: RequestParams) => Promise<HttpResponse<List & {
5048
5264
  items: Space[];
5049
5265
  }, Error>>;
5266
+ /**
5267
+ * No description
5268
+ *
5269
+ * @tags collections
5270
+ * @name MoveCollection
5271
+ * @summary Move a collection to a new position.
5272
+ * @request POST:/collections/{collectionId}/move
5273
+ * @secure
5274
+ */
5275
+ moveCollection: (collectionId: string, data: {
5276
+ /** The unique id of the parent collection */
5277
+ parent?: string | null;
5278
+ /** Where to move the collection. By default, it will be moved at the end. */
5279
+ position?: ContentPosition;
5280
+ }, params?: RequestParams) => Promise<HttpResponse<Collection, Error | {
5281
+ error: {
5282
+ /** @format int32 */
5283
+ code: 400;
5284
+ message: string;
5285
+ };
5286
+ } | {
5287
+ error: {
5288
+ /** @format int32 */
5289
+ code: 404;
5290
+ message: string;
5291
+ };
5292
+ } | {
5293
+ error: {
5294
+ /** @format int32 */
5295
+ code: 409;
5296
+ message: string;
5297
+ };
5298
+ }>>;
5299
+ /**
5300
+ * No description
5301
+ *
5302
+ * @tags collections
5303
+ * @name TransferCollection
5304
+ * @summary Transfer a collection to another organization.
5305
+ * @request POST:/collections/{collectionId}/transfer
5306
+ * @secure
5307
+ */
5308
+ transferCollection: (collectionId: string, data: {
5309
+ /** The unique id of the target organization */
5310
+ organization: string;
5311
+ }, params?: RequestParams) => Promise<HttpResponse<Collection, Error | {
5312
+ error: {
5313
+ /** @format int32 */
5314
+ code: 404;
5315
+ message: string;
5316
+ };
5317
+ } | {
5318
+ error: {
5319
+ /** @format int32 */
5320
+ code: 409;
5321
+ message: string;
5322
+ };
5323
+ }>>;
5050
5324
  /**
5051
5325
  * No description
5052
5326
  *
@@ -5130,6 +5404,43 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
5130
5404
  message: string;
5131
5405
  };
5132
5406
  }>>;
5407
+ /**
5408
+ * No description
5409
+ *
5410
+ * @tags collections
5411
+ * @name CreateCollectionShareLink
5412
+ * @summary Creates a new collection share link
5413
+ * @request POST:/collections/{collectionId}/share-links
5414
+ * @secure
5415
+ */
5416
+ createCollectionShareLink: (collectionId: string, data: {
5417
+ /** Name of the share link */
5418
+ name: ShareLinkName;
5419
+ }, params?: RequestParams) => Promise<HttpResponse<ShareLink, Error>>;
5420
+ /**
5421
+ * No description
5422
+ *
5423
+ * @tags collections
5424
+ * @name UpdateCollectionShareLinkById
5425
+ * @summary Update the details of a collection share link
5426
+ * @request PATCH:/collections/{collectionId}/share-links/{shareLinkId}
5427
+ * @secure
5428
+ */
5429
+ updateCollectionShareLinkById: (collectionId: string, shareLinkId: string, data: {
5430
+ active?: boolean;
5431
+ /** Name of the share link */
5432
+ name?: ShareLinkName;
5433
+ }, params?: RequestParams) => Promise<HttpResponse<ShareLink, Error>>;
5434
+ /**
5435
+ * No description
5436
+ *
5437
+ * @tags collections
5438
+ * @name DeleteCollectionShareLinkById
5439
+ * @summary Deletes a collection share link
5440
+ * @request DELETE:/collections/{collectionId}/share-links/{shareLinkId}
5441
+ * @secure
5442
+ */
5443
+ deleteCollectionShareLinkById: (collectionId: string, shareLinkId: string, params?: RequestParams) => Promise<HttpResponse<void, Error>>;
5133
5444
  };
5134
5445
  integrations: {
5135
5446
  /**
@@ -5146,6 +5457,8 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
5146
5457
  page?: string;
5147
5458
  /** The number of results per page */
5148
5459
  limit?: number;
5460
+ /** A search string to filter integrations by name */
5461
+ search?: any;
5149
5462
  /** Filter the integrations by category */
5150
5463
  category?: IntegrationCategory;
5151
5464
  /**
@@ -5562,6 +5875,33 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
5562
5875
  message: string;
5563
5876
  };
5564
5877
  }>>;
5878
+ /**
5879
+ * No description
5880
+ *
5881
+ * @tags organizations
5882
+ * @name UpdateOrganizationById
5883
+ * @summary Update an organization by its ID
5884
+ * @request PATCH:/orgs/{organizationId}
5885
+ * @secure
5886
+ */
5887
+ updateOrganizationById: (organizationId: string, data: {
5888
+ /** Name of the organization */
5889
+ title?: OrganizationTitle;
5890
+ emailDomains?: OrganizationEmailDomains;
5891
+ /** The role of a member in an organization, null for guests */
5892
+ defaultRole?: MemberRoleOrGuest;
5893
+ defaultContent?: OrganizationDefaultContent | null;
5894
+ logo?: URL | null;
5895
+ sso?: boolean;
5896
+ aiSearch?: boolean;
5897
+ aiInsights?: boolean;
5898
+ }, params?: RequestParams) => Promise<HttpResponse<Organization, Error | {
5899
+ error: {
5900
+ /** @format int32 */
5901
+ code: 400;
5902
+ message: string;
5903
+ };
5904
+ }>>;
5565
5905
  /**
5566
5906
  * @description Lists members for the specified organization.
5567
5907
  *
@@ -5832,6 +6172,31 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
5832
6172
  * @secure
5833
6173
  */
5834
6174
  joinOrganizationWithInvite: (organizationId: string, inviteId: string, params?: RequestParams) => Promise<HttpResponse<object, Error>>;
6175
+ /**
6176
+ * No description
6177
+ *
6178
+ * @tags organizations
6179
+ * @name UpdateOrganizationInviteById
6180
+ * @summary Update an organization invite.
6181
+ * @request PATCH:/orgs/{organizationId}/invites/{inviteId}
6182
+ * @secure
6183
+ */
6184
+ updateOrganizationInviteById: (organizationId: string, inviteId: string, data: {
6185
+ /** The role of a member in an organization, null for guests */
6186
+ role?: MemberRoleOrGuest;
6187
+ /** The role of a member in an organization, null for guests */
6188
+ contentLevel?: MemberRoleOrGuest;
6189
+ }, params?: RequestParams) => Promise<HttpResponse<OrganizationInvite, Error>>;
6190
+ /**
6191
+ * No description
6192
+ *
6193
+ * @tags organizations
6194
+ * @name DeleteOrganizationInviteById
6195
+ * @summary Deletes an organization invite.
6196
+ * @request DELETE:/orgs/{organizationId}/invites/{inviteId}
6197
+ * @secure
6198
+ */
6199
+ deleteOrganizationInviteById: (organizationId: string, inviteId: string, params?: RequestParams) => Promise<HttpResponse<void, Error>>;
5835
6200
  /**
5836
6201
  * No description
5837
6202
  *
@@ -6078,6 +6443,8 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
6078
6443
  page?: string;
6079
6444
  /** The number of results per page */
6080
6445
  limit?: number;
6446
+ /** A search string to filter integrations by name */
6447
+ search?: any;
6081
6448
  }, params?: RequestParams) => Promise<HttpResponse<List & {
6082
6449
  items: Integration[];
6083
6450
  }, Error>>;
@@ -6113,6 +6480,8 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
6113
6480
  page?: string;
6114
6481
  /** The number of results per page */
6115
6482
  limit?: number;
6483
+ /** A search string to filter integrations by name */
6484
+ search?: any;
6116
6485
  }, params?: RequestParams) => Promise<HttpResponse<List & {
6117
6486
  items: {
6118
6487
  /** Installation of an integration on an account */
@@ -6288,28 +6657,6 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
6288
6657
  /** Output format for the content. */
6289
6658
  format?: 'document' | 'markdown';
6290
6659
  }, params?: RequestParams) => Promise<HttpResponse<Capture, Error>>;
6291
- /**
6292
- * No description
6293
- *
6294
- * @tags organizations
6295
- * @name DeleteCapture
6296
- * @summary Delete a capture by its ID. Deprecated, use deleteSnippet.
6297
- * @request DELETE:/orgs/{organizationId}/captures/{captureId}
6298
- * @deprecated
6299
- * @secure
6300
- */
6301
- deleteCapture: (organizationId: string, captureId: string, params?: RequestParams) => Promise<HttpResponse<void, Error>>;
6302
- /**
6303
- * No description
6304
- *
6305
- * @tags organizations
6306
- * @name UpdateCapture
6307
- * @summary Update an existing capture. Deprecated, use updateSnippet.
6308
- * @request PUT:/orgs/{organizationId}/captures/{captureId}
6309
- * @deprecated
6310
- * @secure
6311
- */
6312
- updateCapture: (organizationId: string, captureId: string, data: UpdateCaptureSchema, params?: RequestParams) => Promise<HttpResponse<Capture, Error>>;
6313
6660
  /**
6314
6661
  * No description
6315
6662
  *
@@ -6349,8 +6696,6 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
6349
6696
  * @secure
6350
6697
  */
6351
6698
  listSnippets: (organizationId: string, query?: {
6352
- /** Output format for the content. */
6353
- format?: 'document' | 'markdown';
6354
6699
  /** Identifier of the page results to fetch. */
6355
6700
  page?: string;
6356
6701
  /** The number of results per page */
@@ -6379,10 +6724,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
6379
6724
  * @request GET:/orgs/{organizationId}/snippets/{snippetId}
6380
6725
  * @secure
6381
6726
  */
6382
- getSnippet: (organizationId: string, snippetId: string, query?: {
6383
- /** Output format for the content. */
6384
- format?: 'document' | 'markdown';
6385
- }, params?: RequestParams) => Promise<HttpResponse<Snippet, Error>>;
6727
+ getSnippet: (organizationId: string, snippetId: string, params?: RequestParams) => Promise<HttpResponse<Snippet, Error>>;
6386
6728
  /**
6387
6729
  * No description
6388
6730
  *