@gitbook/api 0.96.0 → 0.96.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
@@ -606,7 +606,7 @@ export interface DocumentBlockOpenAPI {
606
606
  type: 'swagger';
607
607
  key?: string;
608
608
  data: OpenAPIOperationPointer & {
609
- ref: ContentRefFile | ContentRefURL | ContentRefOpenAPI;
609
+ ref: ContentRefFile | ContentRefURL;
610
610
  /** If true, the block is opened by default. */
611
611
  expanded?: boolean;
612
612
  fullWidth?: boolean;
@@ -617,6 +617,19 @@ export interface DocumentBlockOpenAPI {
617
617
  id: string;
618
618
  };
619
619
  }
620
+ export interface DocumentBlockOpenAPIOperation {
621
+ object: 'block';
622
+ type: 'openapi-operation';
623
+ key?: string;
624
+ data: OpenAPIOperationPointer & {
625
+ ref: ContentRefOpenAPI;
626
+ };
627
+ isVoid: true;
628
+ meta?: {
629
+ /** Unique ID to be used in an URL for the block. */
630
+ id: string;
631
+ };
632
+ }
620
633
  export interface DocumentBlockReusableContent {
621
634
  object: 'block';
622
635
  type: 'reusable-content';
@@ -644,7 +657,7 @@ export interface DocumentBlockStepper {
644
657
  isVoid?: false;
645
658
  data?: object;
646
659
  }
647
- export type DocumentBlocksTopLevels = DocumentBlocksEssentials | DocumentBlockQuote | DocumentBlockHint | DocumentBlockImages | DocumentBlockFile | DocumentBlockDrawing | DocumentBlockEmbed | DocumentBlockCode | DocumentBlockMath | DocumentBlockExpandable | DocumentBlockTabs | DocumentBlockTable | DocumentBlockOpenAPI | DocumentBlockContentRef | DocumentBlockIntegration | DocumentBlockReusableContent | DocumentBlockStepper;
660
+ export type DocumentBlocksTopLevels = DocumentBlocksEssentials | DocumentBlockQuote | DocumentBlockHint | DocumentBlockImages | DocumentBlockFile | DocumentBlockDrawing | DocumentBlockEmbed | DocumentBlockCode | DocumentBlockMath | DocumentBlockExpandable | DocumentBlockTabs | DocumentBlockTable | DocumentBlockOpenAPI | DocumentBlockOpenAPIOperation | DocumentBlockContentRef | DocumentBlockIntegration | DocumentBlockReusableContent | DocumentBlockStepper;
648
661
  export interface JSONDocument {
649
662
  object: 'document';
650
663
  data: {
@@ -1569,6 +1582,14 @@ export declare enum BillingProduct {
1569
1582
  TeamDec2021 = "team_dec_2021",
1570
1583
  BusinessDec2021 = "business_dec_2021"
1571
1584
  }
1585
+ /** - notapplicable, no trial can be started for this organization. - none, no trial has been started yet. - active, trial is active. - ended, the trial has ended and the user has choosen to stay on the free plan or has upgraded to a paid plan. - expired, the trial has ended but the user hasn't deciced yet what to do. */
1586
+ export declare enum BillingTrialStatus {
1587
+ Notapplicable = "notapplicable",
1588
+ None = "none",
1589
+ Active = "active",
1590
+ Ended = "ended",
1591
+ Expired = "expired"
1592
+ }
1572
1593
  export declare enum OrganizationBlockReason {
1573
1594
  Security = "security"
1574
1595
  }
@@ -1613,8 +1634,14 @@ export interface Organization {
1613
1634
  /** URL of the logo of this organization, if defined. */
1614
1635
  logo?: URL;
1615
1636
  };
1616
- /** The decision taken by the user at the end of the trial */
1617
- trialDecision?: 'downgrade';
1637
+ trial: {
1638
+ /** - notapplicable, no trial can be started for this organization. - none, no trial has been started yet. - active, trial is active. - ended, the trial has ended and the user has choosen to stay on the free plan or has upgraded to a paid plan. - expired, the trial has ended but the user hasn't deciced yet what to do. */
1639
+ status: BillingTrialStatus;
1640
+ /** The trial's end date, if the organization has or had a trial. */
1641
+ endDate?: Timestamp;
1642
+ /** The decision taken by the user at the end of the trial */
1643
+ decision?: 'downgrade';
1644
+ };
1618
1645
  /** Custom hostname linked to this organization */
1619
1646
  customHostname?: string;
1620
1647
  /** If the organization is blocked, information about the block will appear here */
@@ -3288,7 +3315,7 @@ export interface ContentKitTextInput {
3288
3315
  placeholder?: string;
3289
3316
  multiline?: boolean;
3290
3317
  /** @default "text" */
3291
- inputType?: 'text' | 'password';
3318
+ inputType?: 'text' | 'password' | 'email';
3292
3319
  }
3293
3320
  /** Any element that can be used as children. */
3294
3321
  export type ContentKitDescendantElement = ContentKitButton | ContentKitTextInput | ContentKitHStack | ContentKitVStack | ContentKitBox | ContentKitDivider | ContentKitWebFrame | ContentKitCodeBlock | ContentKitMarkdown | ContentKitCard | ContentKitImage | ContentKitInput | ContentKitSelect | ContentKitSwitch | ContentKitCheckbox | ContentKitRadio | ContentKitText | ContentKitHint | ContentKitLink | ContentKitStepperStep;
@@ -5143,6 +5170,25 @@ export interface SiteRedirect {
5143
5170
  source: SiteRedirectSourcePath;
5144
5171
  destination: SiteRedirectDestination;
5145
5172
  }
5173
+ export interface StorageFileMetadata {
5174
+ /** Original filename */
5175
+ name: string;
5176
+ /** MIME type of the file */
5177
+ type: string;
5178
+ /** Size of the file in bytes */
5179
+ size: number;
5180
+ }
5181
+ export declare enum StorageUploadKind {
5182
+ CustomizationFont = "customization_font"
5183
+ }
5184
+ export interface StorageUploadURL {
5185
+ /** The kind of file to upload */
5186
+ object: 'storage-signed-url';
5187
+ /** Presigned URL for uploading the file */
5188
+ url: URL;
5189
+ /** The bucket object key for the file */
5190
+ key: string;
5191
+ }
5146
5192
  export declare enum CustomHostnameDnsStatus {
5147
5193
  DnsPassed = "dns_passed",
5148
5194
  DnsWrongCname = "dns_wrong_cname",
@@ -5430,7 +5476,7 @@ export interface ContentPublishingAuth {
5430
5476
  */
5431
5477
  fallbackURL?: string;
5432
5478
  }
5433
- export type DocumentBlock = DocumentBlockParagraph | DocumentBlockHeading | DocumentBlockListOrdered | DocumentBlockListUnordered | DocumentBlockListTasks | DocumentBlockListItem | DocumentBlockDivider | DocumentBlockQuote | DocumentBlockHint | DocumentBlockImages | DocumentBlockImage | DocumentBlockFile | DocumentBlockDrawing | DocumentBlockEmbed | DocumentBlockCode | DocumentBlockCodeLine | DocumentBlockMath | DocumentBlockExpandable | DocumentBlockTabs | DocumentBlockTabsItem | DocumentBlockTable | DocumentBlockOpenAPI | DocumentBlockContentRef | DocumentBlockIntegration | DocumentBlockReusableContent | DocumentBlockStepper | DocumentBlockStepperStep;
5479
+ export type DocumentBlock = DocumentBlockParagraph | DocumentBlockHeading | DocumentBlockListOrdered | DocumentBlockListUnordered | DocumentBlockListTasks | DocumentBlockListItem | DocumentBlockDivider | DocumentBlockQuote | DocumentBlockHint | DocumentBlockImages | DocumentBlockImage | DocumentBlockFile | DocumentBlockDrawing | DocumentBlockEmbed | DocumentBlockCode | DocumentBlockCodeLine | DocumentBlockMath | DocumentBlockExpandable | DocumentBlockTabs | DocumentBlockTabsItem | DocumentBlockTable | DocumentBlockOpenAPI | DocumentBlockOpenAPIOperation | DocumentBlockContentRef | DocumentBlockIntegration | DocumentBlockReusableContent | DocumentBlockStepper | DocumentBlockStepperStep;
5434
5480
  /** Dependency for a computation, before its resolution. */
5435
5481
  export interface ComputedContentDependency {
5436
5482
  ref: ComputedContentDependencyRef;
@@ -5623,13 +5669,6 @@ export interface ContentComputeRevisionEventResponse {
5623
5669
  pages?: InputPage[];
5624
5670
  files?: InputFile[];
5625
5671
  }
5626
- export declare enum BillingTrialStatus {
5627
- Notapplicable = "notapplicable",
5628
- None = "none",
5629
- Active = "active",
5630
- Ended = "ended",
5631
- Expired = "expired"
5632
- }
5633
5672
  export declare enum APIIntegrationScope {
5634
5673
  IntegrationRead = "integration:read",
5635
5674
  IntegrationUpdate = "integration:update",
@@ -6140,6 +6179,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
6140
6179
  /**
6141
6180
  * No description
6142
6181
  *
6182
+ * @tags search
6143
6183
  * @name AskQueryWithGet
6144
6184
  * @summary Ask a question to an AI across spaces that is accessible by the currently authenticated target.
6145
6185
  * @request GET:/search/ask
@@ -6159,6 +6199,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
6159
6199
  /**
6160
6200
  * No description
6161
6201
  *
6202
+ * @tags search
6162
6203
  * @name AskQuery
6163
6204
  * @summary Ask a question to an AI across spaces that is accessible by the currently authenticated target.
6164
6205
  * @request POST:/search/ask
@@ -6177,6 +6218,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
6177
6218
  /**
6178
6219
  * No description
6179
6220
  *
6221
+ * @tags search
6180
6222
  * @name GetRecommendedQuestions
6181
6223
  * @summary Get a list of questions recommended by AI for a list of content. Deprecated, use getRecommendedQuestionsInOrganization instead.
6182
6224
  * @request POST:/search/questions
@@ -6368,6 +6410,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
6368
6410
  /**
6369
6411
  * No description
6370
6412
  *
6413
+ * @tags search
6371
6414
  * @name SearchSpaceContent
6372
6415
  * @summary Search content in a space
6373
6416
  * @request GET:/spaces/{spaceId}/search
@@ -6390,6 +6433,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
6390
6433
  /**
6391
6434
  * No description
6392
6435
  *
6436
+ * @tags search
6393
6437
  * @name AskQueryInSpaceWithGet
6394
6438
  * @summary Ask a question to an AI within the context of the space.
6395
6439
  * @request GET:/spaces/{spaceId}/search/ask
@@ -6409,6 +6453,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
6409
6453
  /**
6410
6454
  * No description
6411
6455
  *
6456
+ * @tags ask
6412
6457
  * @name AskQueryInSpace
6413
6458
  * @summary Ask a question to an AI within the context of the space.
6414
6459
  * @request POST:/spaces/{spaceId}/search/ask
@@ -6426,6 +6471,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
6426
6471
  /**
6427
6472
  * No description
6428
6473
  *
6474
+ * @tags search
6429
6475
  * @name StreamAskInSpace
6430
6476
  * @summary Ask a question to an AI within the context of the space and stream the answer as a Server-Sent Events URL.
6431
6477
  * @request GET:/spaces/{spaceId}/search/ask/stream
@@ -6441,6 +6487,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
6441
6487
  /**
6442
6488
  * No description
6443
6489
  *
6490
+ * @tags search
6444
6491
  * @name GetRecommendedQuestionsInSpace
6445
6492
  * @summary Get a list of questions that can be asked in a space.
6446
6493
  * @request GET:/spaces/{spaceId}/search/questions
@@ -6451,6 +6498,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
6451
6498
  /**
6452
6499
  * No description
6453
6500
  *
6501
+ * @tags search
6454
6502
  * @name StreamRecommendedQuestionsInSpace
6455
6503
  * @summary Stream a list of questions that can be asked in a space.
6456
6504
  * @request GET:/spaces/{spaceId}/search/questions/stream
@@ -6703,6 +6751,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
6703
6751
  /**
6704
6752
  * No description
6705
6753
  *
6754
+ * @tags spaces
6706
6755
  * @name GetCurrentRevision
6707
6756
  * @summary Get the current primary content revision for a space
6708
6757
  * @request GET:/spaces/{spaceId}/content
@@ -6723,6 +6772,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
6723
6772
  /**
6724
6773
  * No description
6725
6774
  *
6775
+ * @tags spaces
6726
6776
  * @name ImportContent
6727
6777
  * @summary Import content in a space.
6728
6778
  * @request POST:/spaces/{spaceId}/content/import
@@ -6732,6 +6782,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
6732
6782
  /**
6733
6783
  * No description
6734
6784
  *
6785
+ * @tags spaces
6735
6786
  * @name ListPages
6736
6787
  * @summary List all pages for the main revision content of a space
6737
6788
  * @request GET:/spaces/{spaceId}/content/pages
@@ -6754,6 +6805,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
6754
6805
  /**
6755
6806
  * No description
6756
6807
  *
6808
+ * @tags spaces
6757
6809
  * @name ListFiles
6758
6810
  * @summary List all files for the main revision content of a space
6759
6811
  * @request GET:/spaces/{spaceId}/content/files
@@ -6784,6 +6836,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
6784
6836
  /**
6785
6837
  * No description
6786
6838
  *
6839
+ * @tags spaces
6787
6840
  * @name GetFileById
6788
6841
  * @summary Get a file by its ID in the main revision of a space
6789
6842
  * @request GET:/spaces/{spaceId}/content/files/{fileId}
@@ -6825,6 +6878,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
6825
6878
  /**
6826
6879
  * No description
6827
6880
  *
6881
+ * @tags spaces
6828
6882
  * @name GetPageById
6829
6883
  * @summary Get a page by its ID in the primary content.
6830
6884
  * @request GET:/spaces/{spaceId}/content/page/{pageId}
@@ -6897,6 +6951,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
6897
6951
  /**
6898
6952
  * No description
6899
6953
  *
6954
+ * @tags spaces
6900
6955
  * @name ImportContentInPageById
6901
6956
  * @summary Import external content into a page by its ID.
6902
6957
  * @request POST:/spaces/{spaceId}/content/page/{pageId}/import
@@ -6906,6 +6961,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
6906
6961
  /**
6907
6962
  * No description
6908
6963
  *
6964
+ * @tags spaces
6909
6965
  * @name GetPageByPath
6910
6966
  * @summary Get a page by its path in the primary content.
6911
6967
  * @request GET:/spaces/{spaceId}/content/path/{pagePath}
@@ -6928,6 +6984,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
6928
6984
  /**
6929
6985
  * No description
6930
6986
  *
6987
+ * @tags spaces
6931
6988
  * @name GetReusableContentById
6932
6989
  * @summary Get a reusable content by its ID in the main revision of a space
6933
6990
  * @request GET:/spaces/{spaceId}/content/reusable-contents/{reusableContentId}
@@ -6948,6 +7005,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
6948
7005
  /**
6949
7006
  * No description
6950
7007
  *
7008
+ * @tags computed-content
6951
7009
  * @name GetComputedDocument
6952
7010
  * @summary Generate a document for a page in a computed content.
6953
7011
  * @request POST:/spaces/{spaceId}/content/computed/document
@@ -6963,6 +7021,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
6963
7021
  /**
6964
7022
  * No description
6965
7023
  *
7024
+ * @tags computed-content
6966
7025
  * @name GetComputedRevision
6967
7026
  * @summary Get the computed content for a source in a computed content.
6968
7027
  * @request POST:/spaces/{spaceId}/content/computed/revision
@@ -6978,6 +7037,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
6978
7037
  /**
6979
7038
  * No description
6980
7039
  *
7040
+ * @tags spaces
6981
7041
  * @name GetDocumentById
6982
7042
  * @summary Get a document by its ID in a space.
6983
7043
  * @request GET:/spaces/{spaceId}/documents/{documentId}
@@ -6990,7 +7050,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
6990
7050
  /**
6991
7051
  * No description
6992
7052
  *
6993
- * @tags spaces
7053
+ * @tags change-requests
6994
7054
  * @name CreateChangeRequest
6995
7055
  * @summary Create a new change request for a space.
6996
7056
  * @request POST:/spaces/{spaceId}/change-requests
@@ -7028,7 +7088,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
7028
7088
  /**
7029
7089
  * No description
7030
7090
  *
7031
- * @tags spaces
7091
+ * @tags change-requests
7032
7092
  * @name GetChangeRequestById
7033
7093
  * @summary Get the change request with the given id.
7034
7094
  * @request GET:/spaces/{spaceId}/change-requests/{changeRequestId}
@@ -7044,7 +7104,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
7044
7104
  /**
7045
7105
  * No description
7046
7106
  *
7047
- * @tags spaces
7107
+ * @tags change-requests
7048
7108
  * @name UpdateChangeRequestById
7049
7109
  * @summary Update the details of a change request
7050
7110
  * @request PATCH:/spaces/{spaceId}/change-requests/{changeRequestId}
@@ -7058,7 +7118,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
7058
7118
  /**
7059
7119
  * No description
7060
7120
  *
7061
- * @tags spaces
7121
+ * @tags change-requests
7062
7122
  * @name MergeChangeRequest
7063
7123
  * @summary Merge a change request in the primary content of a space.
7064
7124
  * @request POST:/spaces/{spaceId}/change-requests/{changeRequestId}/merge
@@ -7072,7 +7132,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
7072
7132
  /**
7073
7133
  * No description
7074
7134
  *
7075
- * @tags spaces
7135
+ * @tags change-requests
7076
7136
  * @name UpdateChangeRequest
7077
7137
  * @summary Update a change-request with changes from primary content.
7078
7138
  * @request POST:/spaces/{spaceId}/change-requests/{changeRequestId}/update
@@ -7086,7 +7146,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
7086
7146
  /**
7087
7147
  * No description
7088
7148
  *
7089
- * @tags spaces
7149
+ * @tags change-requests
7090
7150
  * @name GetReviewsByChangeRequestId
7091
7151
  * @summary Get all reviews for a change request.
7092
7152
  * @request GET:/spaces/{spaceId}/change-requests/{changeRequestId}/reviews
@@ -7115,7 +7175,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
7115
7175
  /**
7116
7176
  * No description
7117
7177
  *
7118
- * @tags spaces
7178
+ * @tags change-requests
7119
7179
  * @name SubmitChangeRequestReview
7120
7180
  * @summary Submit a review for a change request.
7121
7181
  * @request POST:/spaces/{spaceId}/change-requests/{changeRequestId}/reviews
@@ -7169,7 +7229,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
7169
7229
  /**
7170
7230
  * No description
7171
7231
  *
7172
- * @tags spaces, links
7232
+ * @tags change-requests, links
7173
7233
  * @name ListChangeRequestLinks
7174
7234
  * @summary Get all links in the context of a change request including their status and location where they appear.
7175
7235
  * @request GET:/spaces/{spaceId}/change-requests/{changeRequestId}/links
@@ -7205,7 +7265,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
7205
7265
  /**
7206
7266
  * No description
7207
7267
  *
7208
- * @tags spaces
7268
+ * @tags comments
7209
7269
  * @name ListCommentsInChangeRequest
7210
7270
  * @summary List all the comments in a change request.
7211
7271
  * @request GET:/spaces/{spaceId}/change-requests/{changeRequestId}/comments
@@ -7240,7 +7300,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
7240
7300
  /**
7241
7301
  * No description
7242
7302
  *
7243
- * @tags spaces
7303
+ * @tags comments
7244
7304
  * @name PostCommentInChangeRequest
7245
7305
  * @summary Post a new comment in a change request.
7246
7306
  * @request POST:/spaces/{spaceId}/change-requests/{changeRequestId}/comments
@@ -7250,7 +7310,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
7250
7310
  /**
7251
7311
  * No description
7252
7312
  *
7253
- * @tags spaces
7313
+ * @tags comments
7254
7314
  * @name GetCommentInChangeRequest
7255
7315
  * @summary Get a comment in a change request.
7256
7316
  * @request GET:/spaces/{spaceId}/change-requests/{changeRequestId}/comments/{commentId}
@@ -7263,7 +7323,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
7263
7323
  /**
7264
7324
  * No description
7265
7325
  *
7266
- * @tags spaces
7326
+ * @tags comments
7267
7327
  * @name DeleteCommentInChangeRequest
7268
7328
  * @summary Delete a comment in a change request.
7269
7329
  * @request DELETE:/spaces/{spaceId}/change-requests/{changeRequestId}/comments/{commentId}
@@ -7273,7 +7333,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
7273
7333
  /**
7274
7334
  * No description
7275
7335
  *
7276
- * @tags spaces
7336
+ * @tags comments
7277
7337
  * @name UpdateCommentInChangeRequest
7278
7338
  * @summary Update a comment in a change request.
7279
7339
  * @request PUT:/spaces/{spaceId}/change-requests/{changeRequestId}/comments/{commentId}
@@ -7283,7 +7343,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
7283
7343
  /**
7284
7344
  * No description
7285
7345
  *
7286
- * @tags spaces
7346
+ * @tags comments
7287
7347
  * @name ListCommentRepliesInChangeRequest
7288
7348
  * @summary List all the replies to a comment in a change request.
7289
7349
  * @request GET:/spaces/{spaceId}/change-requests/{changeRequestId}/comments/{commentId}/replies
@@ -7306,7 +7366,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
7306
7366
  /**
7307
7367
  * No description
7308
7368
  *
7309
- * @tags spaces
7369
+ * @tags comments
7310
7370
  * @name PostCommentReplyInChangeRequest
7311
7371
  * @summary Post a new reply to a comment in a change request.
7312
7372
  * @request POST:/spaces/{spaceId}/change-requests/{changeRequestId}/comments/{commentId}/replies
@@ -7319,7 +7379,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
7319
7379
  /**
7320
7380
  * No description
7321
7381
  *
7322
- * @tags spaces
7382
+ * @tags comments
7323
7383
  * @name GetCommentReplyInChangeRequest
7324
7384
  * @summary Get a comment reply in a change request.
7325
7385
  * @request GET:/spaces/{spaceId}/change-requests/{changeRequestId}/comments/{commentId}/replies/{commentReplyId}
@@ -7332,7 +7392,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
7332
7392
  /**
7333
7393
  * No description
7334
7394
  *
7335
- * @tags spaces
7395
+ * @tags comments
7336
7396
  * @name UpdateCommentReplyInChangeRequest
7337
7397
  * @summary Update a comment reply in a change request.
7338
7398
  * @request PUT:/spaces/{spaceId}/change-requests/{changeRequestId}/comments/{commentId}/replies/{commentReplyId}
@@ -7342,7 +7402,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
7342
7402
  /**
7343
7403
  * No description
7344
7404
  *
7345
- * @tags spaces
7405
+ * @tags comments
7346
7406
  * @name DeleteCommentReplyInChangeRequest
7347
7407
  * @summary Delete a comment reply in a change request.
7348
7408
  * @request DELETE:/spaces/{spaceId}/change-requests/{changeRequestId}/comments/{commentId}/replies/{commentReplyId}
@@ -7352,7 +7412,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
7352
7412
  /**
7353
7413
  * No description
7354
7414
  *
7355
- * @tags spaces
7415
+ * @tags change-requests
7356
7416
  * @name GetContributorsByChangeRequestId
7357
7417
  * @summary Get all contributors for the change request with the given id.
7358
7418
  * @request GET:/spaces/{spaceId}/change-requests/{changeRequestId}/contributors
@@ -7370,6 +7430,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
7370
7430
  /**
7371
7431
  * No description
7372
7432
  *
7433
+ * @tags change-requests
7373
7434
  * @name GetRevisionOfChangeRequestById
7374
7435
  * @summary Get the latest content revision for a change request.
7375
7436
  * @request GET:/spaces/{spaceId}/change-requests/{changeRequestId}/content
@@ -7390,6 +7451,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
7390
7451
  /**
7391
7452
  * No description
7392
7453
  *
7454
+ * @tags change-requests
7393
7455
  * @name ImportContentInChangeRequest
7394
7456
  * @summary Import content in a change request.
7395
7457
  * @request POST:/spaces/{spaceId}/change-requests/{changeRequestId}/content/import
@@ -7399,6 +7461,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
7399
7461
  /**
7400
7462
  * No description
7401
7463
  *
7464
+ * @tags change-requests
7402
7465
  * @name ListPagesInChangeRequest
7403
7466
  * @summary List all pages in the content of a change request
7404
7467
  * @request GET:/spaces/{spaceId}/change-requests/{changeRequestId}/content/pages
@@ -7421,6 +7484,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
7421
7484
  /**
7422
7485
  * No description
7423
7486
  *
7487
+ * @tags change-requests
7424
7488
  * @name ListFilesInChangeRequestById
7425
7489
  * @summary List all files in a change request content
7426
7490
  * @request GET:/spaces/{spaceId}/change-requests/{changeRequestId}/content/files
@@ -7451,6 +7515,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
7451
7515
  /**
7452
7516
  * No description
7453
7517
  *
7518
+ * @tags change-requests
7454
7519
  * @name GetFileInChangeRequestById
7455
7520
  * @summary Get a file by its ID in the content of a change request
7456
7521
  * @request GET:/spaces/{spaceId}/change-requests/{changeRequestId}/content/files/{fileId}
@@ -7471,7 +7536,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
7471
7536
  /**
7472
7537
  * No description
7473
7538
  *
7474
- * @tags spaces
7539
+ * @tags change-requests
7475
7540
  * @name ListChangeRequestFileBacklinks
7476
7541
  * @summary Get backlink locations for a file existing in a change request.
7477
7542
  * @request GET:/spaces/{spaceId}/change-requests/{changeRequestId}/content/files/{fileId}/backlinks
@@ -7492,6 +7557,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
7492
7557
  /**
7493
7558
  * No description
7494
7559
  *
7560
+ * @tags change-requests
7495
7561
  * @name GetPageInChangeRequestById
7496
7562
  * @summary Get a page by its ID in a change request.
7497
7563
  * @request GET:/spaces/{spaceId}/change-requests/{changeRequestId}/content/page/{pageId}
@@ -7514,7 +7580,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
7514
7580
  /**
7515
7581
  * No description
7516
7582
  *
7517
- * @tags spaces
7583
+ * @tags change-requests
7518
7584
  * @name ListPageLinksInChangeRequest
7519
7585
  * @summary List all links in a page inside a change request.
7520
7586
  * @request GET:/spaces/{spaceId}/change-requests/{changeRequestId}/content/page/{pageId}/links
@@ -7536,7 +7602,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
7536
7602
  /**
7537
7603
  * No description
7538
7604
  *
7539
- * @tags spaces
7605
+ * @tags change-requests
7540
7606
  * @name ListChangeRequestPageBacklinks
7541
7607
  * @summary Get backlink locations for a page existing in a change request.
7542
7608
  * @request GET:/spaces/{spaceId}/change-requests/{changeRequestId}/content/page/{pageId}/backlinks
@@ -7557,6 +7623,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
7557
7623
  /**
7558
7624
  * No description
7559
7625
  *
7626
+ * @tags change-requests
7560
7627
  * @name ImportContentInChangeRequestPageById
7561
7628
  * @summary Import external content into a page of a change-request by its ID.
7562
7629
  * @request POST:/spaces/{spaceId}/change-requests/{changeRequestId}/content/page/{pageId}/import
@@ -7566,6 +7633,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
7566
7633
  /**
7567
7634
  * No description
7568
7635
  *
7636
+ * @tags change-requests
7569
7637
  * @name GetPageInChangeRequestByPath
7570
7638
  * @summary Get a page by its path in a change request.
7571
7639
  * @request GET:/spaces/{spaceId}/change-requests/{changeRequestId}/content/path/{pagePath}
@@ -7588,6 +7656,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
7588
7656
  /**
7589
7657
  * No description
7590
7658
  *
7659
+ * @tags change-requests
7591
7660
  * @name GetReusableContentInChangeRequestById
7592
7661
  * @summary Get a reusable content by its ID in the content of a change request
7593
7662
  * @request GET:/spaces/{spaceId}/change-requests/{changeRequestId}/content/reusable-contents/{reusableContentId}
@@ -7608,7 +7677,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
7608
7677
  /**
7609
7678
  * No description
7610
7679
  *
7611
- * @tags spaces
7680
+ * @tags change-requests
7612
7681
  * @name GetChangeRequestPdf
7613
7682
  * @summary Generate a URL to export the content of a change request as a PDF.
7614
7683
  * @request GET:/spaces/{spaceId}/change-requests/{changeRequestId}/pdf
@@ -7626,7 +7695,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
7626
7695
  /**
7627
7696
  * No description
7628
7697
  *
7629
- * @tags spaces
7698
+ * @tags change-requests
7630
7699
  * @name StreamBrainstormChangeRequest
7631
7700
  * @summary Brainstorm with AI on a change request and stream the results as a Server-Sent Events.
7632
7701
  * @request POST:/spaces/{spaceId}/change-requests/{changeRequestId}/task/brainstorm
@@ -7639,7 +7708,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
7639
7708
  /**
7640
7709
  * No description
7641
7710
  *
7642
- * @tags spaces
7711
+ * @tags change-requests
7643
7712
  * @name StreamImplementChangeRequestTask
7644
7713
  * @summary Implement a task on a change request and stream the results as a Server-Sent Events.
7645
7714
  * @request POST:/spaces/{spaceId}/change-requests/{changeRequestId}/task/implement
@@ -7652,6 +7721,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
7652
7721
  /**
7653
7722
  * No description
7654
7723
  *
7724
+ * @tags revisions
7655
7725
  * @name GetRevisionById
7656
7726
  * @summary Get a specific revision in a space
7657
7727
  * @request GET:/spaces/{spaceId}/revisions/{revisionId}
@@ -7672,6 +7742,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
7672
7742
  /**
7673
7743
  * No description
7674
7744
  *
7745
+ * @tags revisions
7675
7746
  * @name GetRevisionSemanticChanges
7676
7747
  * @summary Return the semantic changes between a revision and its parent.
7677
7748
  * @request GET:/spaces/{spaceId}/revisions/{revisionId}/changes
@@ -7697,6 +7768,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
7697
7768
  /**
7698
7769
  * No description
7699
7770
  *
7771
+ * @tags revisions
7700
7772
  * @name ListPagesInRevisionById
7701
7773
  * @summary List all pages in a revision
7702
7774
  * @request GET:/spaces/{spaceId}/revisions/{revisionId}/pages
@@ -7719,6 +7791,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
7719
7791
  /**
7720
7792
  * No description
7721
7793
  *
7794
+ * @tags revisions
7722
7795
  * @name ListFilesInRevisionById
7723
7796
  * @summary List all files in a revision
7724
7797
  * @request GET:/spaces/{spaceId}/revisions/{revisionId}/files
@@ -7749,6 +7822,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
7749
7822
  /**
7750
7823
  * No description
7751
7824
  *
7825
+ * @tags revisions
7752
7826
  * @name GetFileInRevisionById
7753
7827
  * @summary Get a file in a revision by its ID
7754
7828
  * @request GET:/spaces/{spaceId}/revisions/{revisionId}/files/{fileId}
@@ -7769,6 +7843,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
7769
7843
  /**
7770
7844
  * No description
7771
7845
  *
7846
+ * @tags revisions
7772
7847
  * @name GetPageInRevisionById
7773
7848
  * @summary Get a page by its ID in a revision.
7774
7849
  * @request GET:/spaces/{spaceId}/revisions/{revisionId}/page/{pageId}
@@ -7791,6 +7866,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
7791
7866
  /**
7792
7867
  * No description
7793
7868
  *
7869
+ * @tags revisions
7794
7870
  * @name GetPageInRevisionByPath
7795
7871
  * @summary Get a page by its path in a revision.
7796
7872
  * @request GET:/spaces/{spaceId}/revisions/{revisionId}/path/{pagePath}
@@ -7813,8 +7889,9 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
7813
7889
  /**
7814
7890
  * No description
7815
7891
  *
7892
+ * @tags revisions
7816
7893
  * @name GetReusableContentInRevisionById
7817
- * @summary Get reusbale content in a revision by its ID
7894
+ * @summary Get reusable content in a revision by its ID
7818
7895
  * @request GET:/spaces/{spaceId}/revisions/{revisionId}/reusable-contents/{reusableContentId}
7819
7896
  * @secure
7820
7897
  */
@@ -7833,7 +7910,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
7833
7910
  /**
7834
7911
  * No description
7835
7912
  *
7836
- * @tags spaces
7913
+ * @tags comments
7837
7914
  * @name ListCommentsInSpace
7838
7915
  * @summary List all the comments in a space.
7839
7916
  * @request GET:/spaces/{spaceId}/comments
@@ -7868,7 +7945,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
7868
7945
  /**
7869
7946
  * No description
7870
7947
  *
7871
- * @tags spaces
7948
+ * @tags comments
7872
7949
  * @name PostCommentInSpace
7873
7950
  * @summary Post a new comment in a space.
7874
7951
  * @request POST:/spaces/{spaceId}/comments
@@ -7878,7 +7955,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
7878
7955
  /**
7879
7956
  * No description
7880
7957
  *
7881
- * @tags spaces
7958
+ * @tags comments
7882
7959
  * @name GetCommentInSpace
7883
7960
  * @summary Get a comment in a space.
7884
7961
  * @request GET:/spaces/{spaceId}/comments/{commentId}
@@ -7891,7 +7968,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
7891
7968
  /**
7892
7969
  * No description
7893
7970
  *
7894
- * @tags spaces
7971
+ * @tags comments
7895
7972
  * @name DeleteCommentInSpace
7896
7973
  * @summary Delete a comment in a space.
7897
7974
  * @request DELETE:/spaces/{spaceId}/comments/{commentId}
@@ -7911,7 +7988,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
7911
7988
  /**
7912
7989
  * No description
7913
7990
  *
7914
- * @tags spaces
7991
+ * @tags comments
7915
7992
  * @name ListCommentRepliesInSpace
7916
7993
  * @summary List all the replies to a comment in a space.
7917
7994
  * @request GET:/spaces/{spaceId}/comments/{commentId}/replies
@@ -7934,7 +8011,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
7934
8011
  /**
7935
8012
  * No description
7936
8013
  *
7937
- * @tags spaces
8014
+ * @tags comments
7938
8015
  * @name PostCommentReplyInSpace
7939
8016
  * @summary Post a new reply to a comment in a space.
7940
8017
  * @request POST:/spaces/{spaceId}/comments/{commentId}/replies
@@ -7944,7 +8021,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
7944
8021
  /**
7945
8022
  * No description
7946
8023
  *
7947
- * @tags spaces
8024
+ * @tags comments
7948
8025
  * @name GetCommentReplyInSpace
7949
8026
  * @summary Get a comment reply in a space.
7950
8027
  * @request GET:/spaces/{spaceId}/comments/{commentId}/replies/{commentReplyId}
@@ -7957,7 +8034,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
7957
8034
  /**
7958
8035
  * No description
7959
8036
  *
7960
- * @tags spaces
8037
+ * @tags comments
7961
8038
  * @name UpdateCommentReplyInSpace
7962
8039
  * @summary Update a comment reply in a space.
7963
8040
  * @request PUT:/spaces/{spaceId}/comments/{commentId}/replies/{commentReplyId}
@@ -7967,7 +8044,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
7967
8044
  /**
7968
8045
  * No description
7969
8046
  *
7970
- * @tags spaces
8047
+ * @tags comments
7971
8048
  * @name DeleteCommentReplyInSpace
7972
8049
  * @summary Delete a comment reply in a space.
7973
8050
  * @request DELETE:/spaces/{spaceId}/comments/{commentId}/replies/{commentReplyId}
@@ -8498,6 +8575,8 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
8498
8575
  blockDomain?: string;
8499
8576
  /** If true, returns only integrations with blocks. If false, returns only integrations without blocks. */
8500
8577
  blocks?: boolean;
8578
+ /** If true, returns only integrations with contentSources. If false, returns only integrations without contentSources. */
8579
+ contentSources?: boolean;
8501
8580
  }, params?: RequestParams) => Promise<HttpResponse<List & {
8502
8581
  items: Integration[];
8503
8582
  }, Error>>;
@@ -8691,6 +8770,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
8691
8770
  /**
8692
8771
  * No description
8693
8772
  *
8773
+ * @tags integrations
8694
8774
  * @name RenderIntegrationUiWithGet
8695
8775
  * @summary Render an integration UI in the context of an installation.
8696
8776
  * @request GET:/integrations/{integrationName}/render
@@ -8703,6 +8783,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
8703
8783
  /**
8704
8784
  * No description
8705
8785
  *
8786
+ * @tags integrations
8706
8787
  * @name RenderIntegrationUiWithPost
8707
8788
  * @summary Render an integration UI in the context of an installation.
8708
8789
  * @request POST:/integrations/{integrationName}/render
@@ -8867,6 +8948,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
8867
8948
  /**
8868
8949
  * No description
8869
8950
  *
8951
+ * @tags integrations
8870
8952
  * @name UpdateIntegrationSpaceInstallation
8871
8953
  * @summary Update external IDs and configurations of an integration's installation for a space
8872
8954
  * @request PATCH:/integrations/{integrationName}/installations/{installationId}/spaces/{spaceId}
@@ -8882,6 +8964,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
8882
8964
  /**
8883
8965
  * No description
8884
8966
  *
8967
+ * @tags integrations
8885
8968
  * @name UninstallIntegrationFromSpace
8886
8969
  * @summary Uninstall the integration from a space
8887
8970
  * @request DELETE:/integrations/{integrationName}/installations/{installationId}/spaces/{spaceId}
@@ -8964,6 +9047,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
8964
9047
  /**
8965
9048
  * No description
8966
9049
  *
9050
+ * @tags integrations
8967
9051
  * @name UpdateIntegrationSiteInstallation
8968
9052
  * @summary Update external IDs and configurations of an integration's installation for a site
8969
9053
  * @request PATCH:/integrations/{integrationName}/installations/{installationId}/sites/{siteId}
@@ -8979,6 +9063,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
8979
9063
  /**
8980
9064
  * No description
8981
9065
  *
9066
+ * @tags integrations
8982
9067
  * @name UninstallIntegrationFromSite
8983
9068
  * @summary Uninstall the integration from a site
8984
9069
  * @request DELETE:/integrations/{integrationName}/installations/{installationId}/sites/{siteId}
@@ -9008,16 +9093,6 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
9008
9093
  }, params?: RequestParams) => Promise<HttpResponse<List & {
9009
9094
  items: Organization[];
9010
9095
  }, Error>>;
9011
- /**
9012
- * No description
9013
- *
9014
- * @tags organizations
9015
- * @name CreateOrganization
9016
- * @summary Create an organization
9017
- * @request POST:/orgs
9018
- * @secure
9019
- */
9020
- createOrganization: (data: CreateOrganization, params?: RequestParams) => Promise<HttpResponse<Organization, Error>>;
9021
9096
  /**
9022
9097
  * No description
9023
9098
  *
@@ -9034,22 +9109,6 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
9034
9109
  message: string;
9035
9110
  };
9036
9111
  }>>;
9037
- /**
9038
- * No description
9039
- *
9040
- * @tags organizations
9041
- * @name DeleteOrganizationById
9042
- * @summary Delete an organization by its ID
9043
- * @request DELETE:/orgs/{organizationId}
9044
- * @secure
9045
- */
9046
- deleteOrganizationById: (organizationId: string, params?: RequestParams) => Promise<HttpResponse<void, Error | {
9047
- error: {
9048
- /** @format int32 */
9049
- code: 404;
9050
- message: string;
9051
- };
9052
- }>>;
9053
9112
  /**
9054
9113
  * No description
9055
9114
  *
@@ -9079,16 +9138,6 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
9079
9138
  message: string;
9080
9139
  };
9081
9140
  }>>;
9082
- /**
9083
- * @description Lists all spaces, collections, sites accessible by current user in the current organization. This endpoint is internal for now as the data structure is optimized for the sidebar.
9084
- *
9085
- * @tags organizations, critical
9086
- * @name GetOrganizationAllContent
9087
- * @summary List all content in an organization
9088
- * @request GET:/orgs/{organizationId}/content
9089
- * @secure
9090
- */
9091
- getOrganizationAllContent: (organizationId: string, params?: RequestParams) => Promise<HttpResponse<OrganizationAllContent, Error>>;
9092
9141
  /**
9093
9142
  * @description Lists members for the specified organization.
9094
9143
  *
@@ -9394,31 +9443,6 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
9394
9443
  * @secure
9395
9444
  */
9396
9445
  joinOrganizationWithInvite: (organizationId: string, inviteId: string, params?: RequestParams) => Promise<HttpResponse<object, Error>>;
9397
- /**
9398
- * No description
9399
- *
9400
- * @tags organizations
9401
- * @name ListOrganizationContentInviteLinks
9402
- * @summary List invite links to content in an organization
9403
- * @request GET:/orgs/{organizationId}/content-link-invites
9404
- * @secure
9405
- */
9406
- listOrganizationContentInviteLinks: (organizationId: string, query?: {
9407
- /** Identifier of the page results to fetch. */
9408
- page?: string;
9409
- /**
9410
- * The number of results per page
9411
- * @min 0
9412
- * @max 1000
9413
- */
9414
- limit?: number;
9415
- /** If specified, only return invite links that provide specific permissions on the given space. */
9416
- space?: string;
9417
- /** If specified, only return invite links that provide permissions on the given collection. */
9418
- collection?: string;
9419
- }, params?: RequestParams) => Promise<HttpResponse<List & {
9420
- items: (InviteLinkToCollection | InviteLinkToSpace)[];
9421
- }, Error>>;
9422
9446
  /**
9423
9447
  * No description
9424
9448
  *
@@ -9476,114 +9500,6 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
9476
9500
  * @secure
9477
9501
  */
9478
9502
  deleteOrganizationInviteById: (organizationId: string, inviteId: string, params?: RequestParams) => Promise<HttpResponse<void, Error>>;
9479
- /**
9480
- * No description
9481
- *
9482
- * @tags organizations
9483
- * @name UpgradeOrganizationPlan
9484
- * @summary Upgrade an organization's billing plan
9485
- * @request POST:/orgs/{organizationId}/billing
9486
- * @secure
9487
- */
9488
- upgradeOrganizationPlan: (organizationId: string, data: UpgradeOrganizationBilling, query?: {
9489
- /** The app screen URL to bring the user back to after a successful checkout. */
9490
- successReturnURL?: string;
9491
- /** The app screen URL to bring the user back to after a canceled checkout. */
9492
- cancelReturnURL?: string;
9493
- }, params?: RequestParams) => Promise<HttpResponse<BillingUpgrade, Error>>;
9494
- /**
9495
- * No description
9496
- *
9497
- * @tags organizations
9498
- * @name MigrateOrganizationPlan
9499
- * @summary Migrate an organization's legacy billing plan to new pricing
9500
- * @request POST:/orgs/{organizationId}/billing/migrate
9501
- * @secure
9502
- */
9503
- migrateOrganizationPlan: (organizationId: string, data: MigrateOrganizationParameters, params?: RequestParams) => Promise<HttpResponse<void, Error>>;
9504
- /**
9505
- * No description
9506
- *
9507
- * @tags organizations
9508
- * @name PreviewMigrateOrganizationPlan
9509
- * @summary Preview a migration of an organization to new pricing.
9510
- * @request POST:/orgs/{organizationId}/billing/migrate/preview
9511
- * @secure
9512
- */
9513
- previewMigrateOrganizationPlan: (organizationId: string, data: MigrateOrganizationParameters, params?: RequestParams) => Promise<HttpResponse<{
9514
- totals: {
9515
- /** Count of all members */
9516
- members: number;
9517
- /** Count of all premium sites */
9518
- premiumSites: number;
9519
- /** Count of all ultimate sites */
9520
- ultimateSites: number;
9521
- };
9522
- invoice?: BillingInvoicePreview;
9523
- discount?: BillingDiscount;
9524
- }, Error>>;
9525
- /**
9526
- * No description
9527
- *
9528
- * @tags organizations, sites
9529
- * @name ListSitesToMigrate
9530
- * @summary Lists all legacy sites of an org and computes their new type and contributing features
9531
- * @request GET:/orgs/{organizationId}/billing/migrate/sites
9532
- * @secure
9533
- */
9534
- listSitesToMigrate: (organizationId: string, query?: {
9535
- /** Identifier of the page results to fetch. */
9536
- page?: string;
9537
- /**
9538
- * The number of results per page
9539
- * @min 0
9540
- * @max 1000
9541
- */
9542
- limit?: number;
9543
- }, params?: RequestParams) => Promise<HttpResponse<List & {
9544
- items: SiteToMigrate[];
9545
- }, Error>>;
9546
- /**
9547
- * No description
9548
- *
9549
- * @tags organizations
9550
- * @name GetOrganizationBillingPortal
9551
- * @summary Get the billing portal for an organization
9552
- * @request GET:/orgs/{organizationId}/billing/portal
9553
- * @secure
9554
- */
9555
- getOrganizationBillingPortal: (organizationId: string, params?: RequestParams) => Promise<HttpResponse<BillingPortal, Error>>;
9556
- /**
9557
- * No description
9558
- *
9559
- * @tags organizations
9560
- * @name PreviewBillingInvoice
9561
- * @summary Generates a billing invoice preview for organizations without an active subscription
9562
- * @request GET:/orgs/{organizationId}/billing/preview
9563
- * @secure
9564
- */
9565
- previewBillingInvoice: (organizationId: string, query: {
9566
- /** The desired billing interval plan */
9567
- interval: BillingInterval;
9568
- /** The desired core plan */
9569
- product: BillingProduct;
9570
- /** The desired amount of members in the organization */
9571
- members?: number;
9572
- /** The desired amount of published premium sites */
9573
- premiumSites?: number;
9574
- /** The desired amount of published ultimate sites */
9575
- ultimateSites?: number;
9576
- }, params?: RequestParams) => Promise<HttpResponse<BillingInvoicePreview, Error>>;
9577
- /**
9578
- * No description
9579
- *
9580
- * @tags organizations
9581
- * @name RequestOrganizationUpgrade
9582
- * @summary Send a request to ask the organization's admin to upgrade it.
9583
- * @request POST:/orgs/{organizationId}/request_upgrade
9584
- * @secure
9585
- */
9586
- requestOrganizationUpgrade: (organizationId: string, params?: RequestParams) => Promise<HttpResponse<object, Error>>;
9587
9503
  /**
9588
9504
  * No description
9589
9505
  *
@@ -9950,94 +9866,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
9950
9866
  /**
9951
9867
  * No description
9952
9868
  *
9953
- * @tags organizations, usage
9954
- * @name GetUsageForOrganizationById
9955
- * @summary Get all usage metrics for an organization
9956
- * @request GET:/orgs/{organizationId}/usage
9957
- * @secure
9958
- */
9959
- getUsageForOrganizationById: (organizationId: string, params?: RequestParams) => Promise<HttpResponse<OrganizationUsage, Error>>;
9960
- /**
9961
- * No description
9962
- *
9963
- * @tags organizations, usage
9964
- * @name GetCollectionsUsageForOrganizationById
9965
- * @summary Get collections usage metrics for an organization
9966
- * @request GET:/orgs/{organizationId}/usage/collections
9967
- * @secure
9968
- */
9969
- getCollectionsUsageForOrganizationById: (organizationId: string, params?: RequestParams) => Promise<HttpResponse<{
9970
- /** Collections usage metrics of an organization */
9971
- collections: OrganizationUsageCollections;
9972
- }, Error>>;
9973
- /**
9974
- * No description
9975
- *
9976
- * @tags organizations, usage
9977
- * @name GetSpacesUsageForOrganizationById
9978
- * @summary Get spaces usage metrics for an organization
9979
- * @request GET:/orgs/{organizationId}/usage/spaces
9980
- * @secure
9981
- */
9982
- getSpacesUsageForOrganizationById: (organizationId: string, params?: RequestParams) => Promise<HttpResponse<{
9983
- /** Spaces usage metrics of an organization */
9984
- spaces: OrganizationUsageSpaces;
9985
- }, Error>>;
9986
- /**
9987
- * No description
9988
- *
9989
- * @tags organizations, usage
9990
- * @name GetSitesUsageForOrganizationById
9991
- * @summary Get sites usage metrics for an organization
9992
- * @request GET:/orgs/{organizationId}/usage/sites
9993
- * @secure
9994
- */
9995
- getSitesUsageForOrganizationById: (organizationId: string, params?: RequestParams) => Promise<HttpResponse<{
9996
- /** Sites usage metrics of an organization */
9997
- sites: OrganizationUsageSites;
9998
- }, Error>>;
9999
- /**
10000
- * No description
10001
- *
10002
- * @tags organizations, usage
10003
- * @name GetTeamsUsageForOrganizationById
10004
- * @summary Get teams usage metrics for an organization
10005
- * @request GET:/orgs/{organizationId}/usage/teams
10006
- * @secure
10007
- */
10008
- getTeamsUsageForOrganizationById: (organizationId: string, params?: RequestParams) => Promise<HttpResponse<{
10009
- /** Team members usage metrics of an organization */
10010
- teams: OrganizationUsageTeams;
10011
- }, Error>>;
10012
- /**
10013
- * No description
10014
- *
10015
- * @tags organizations, usage
10016
- * @name GetMembersUsageForOrganizationById
10017
- * @summary Get members usage metrics for an organization
10018
- * @request GET:/orgs/{organizationId}/usage/members
10019
- * @secure
10020
- */
10021
- getMembersUsageForOrganizationById: (organizationId: string, params?: RequestParams) => Promise<HttpResponse<{
10022
- /** Members usage metrics of an organization */
10023
- members: OrganizationUsageMembers;
10024
- }, Error>>;
10025
- /**
10026
- * No description
10027
- *
10028
- * @tags organizations, usage
10029
- * @name GetTeamMembersUsageForOrganizationById
10030
- * @summary Get team members usage metrics for an organization
10031
- * @request GET:/orgs/{organizationId}/usage/team-members
10032
- * @secure
10033
- */
10034
- getTeamMembersUsageForOrganizationById: (organizationId: string, params?: RequestParams) => Promise<HttpResponse<{
10035
- /** Team members usage metrics of an organization */
10036
- teamMembers: OrganizationUsageTeamMembers;
10037
- }, Error>>;
10038
- /**
10039
- * No description
10040
- *
9869
+ * @tags search
10041
9870
  * @name AskInOrganization
10042
9871
  * @summary Ask a question.
10043
9872
  * @request POST:/orgs/{organizationId}/ask
@@ -10055,6 +9884,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
10055
9884
  /**
10056
9885
  * No description
10057
9886
  *
9887
+ * @tags search
10058
9888
  * @name GetRecommendedQuestionsInOrganization
10059
9889
  * @summary Get a list of questions recommended to be asked in an organization.
10060
9890
  * @request GET:/orgs/{organizationId}/ask/questions
@@ -10064,6 +9894,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
10064
9894
  /**
10065
9895
  * No description
10066
9896
  *
9897
+ * @tags search
10067
9898
  * @name StreamRecommendedQuestionsInOrganization
10068
9899
  * @summary Stream a list of questions recommended to be asked in an organization.
10069
9900
  * @request GET:/orgs/{organizationId}/ask/questions/stream
@@ -10073,6 +9904,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
10073
9904
  /**
10074
9905
  * No description
10075
9906
  *
9907
+ * @tags search
10076
9908
  * @name StreamAskInOrganization
10077
9909
  * @summary Ask a question to an AI across spaces that is accessible by the currently authenticated target and stream the answer as a Server-Sent Events URL.
10078
9910
  * @request GET:/orgs/{organizationId}/ask/stream
@@ -10139,19 +9971,6 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
10139
9971
  /** ID of spaces to be added to the site */
10140
9972
  spaces?: string[] | "sample" | "empty";
10141
9973
  }, params?: RequestParams) => Promise<HttpResponse<Site, Error>>;
10142
- /**
10143
- * No description
10144
- *
10145
- * @tags sites
10146
- * @name PreviewSitePublishCheckout
10147
- * @summary Preview checkout information upon publishing a site in the organization.
10148
- * @request GET:/orgs/{organizationId}/sites/publishing/checkout
10149
- * @secure
10150
- */
10151
- previewSitePublishCheckout: (organizationId: string, query: {
10152
- /** The plan of the site to preview the checkout information for. */
10153
- plan: SiteType;
10154
- }, params?: RequestParams) => Promise<HttpResponse<BillingOperationPreviewResponse, Error>>;
10155
9974
  /**
10156
9975
  * No description
10157
9976
  *
@@ -10331,66 +10150,6 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
10331
10150
  message: string;
10332
10151
  };
10333
10152
  }>>;
10334
- /**
10335
- * No description
10336
- *
10337
- * @tags sites
10338
- * @name UpdateSitePlan
10339
- * @summary Update the site plan.
10340
- * @request POST:/orgs/{organizationId}/sites/{siteId}/plan
10341
- * @secure
10342
- */
10343
- updateSitePlan: (organizationId: string, siteId: string, data: {
10344
- /** The type of the site */
10345
- plan: SiteType;
10346
- /** Desired interval for new subscriptions. Defaults to the existing billing interval. */
10347
- interval?: BillingInterval;
10348
- /** Reason that triggered the billing upgrade */
10349
- reason?: string;
10350
- }, query?: {
10351
- /** The app screen URL to bring the user back to after a successful checkout. */
10352
- successReturnURL?: string;
10353
- /** The app screen URL to bring the user back to after a canceled checkout. */
10354
- cancelReturnURL?: string;
10355
- }, params?: RequestParams) => Promise<HttpResponse<{
10356
- /** User must checkout to complete the update. */
10357
- type: "checkout";
10358
- /** Stripe payment session ID */
10359
- sessionId: string;
10360
- } | {
10361
- /** User needs to go through the legacy update flow. */
10362
- type: "legacy-checkout";
10363
- /** Stripe payment session ID */
10364
- sessionId: string;
10365
- } | {
10366
- /** The site plan was successfully updated. */
10367
- type: "success";
10368
- /**
10369
- * * `upgraded`: Subscription was upgraded to include the site
10370
- * * `downgraded`: Subscription was downgraded by removing the site
10371
- * * `no-payment-changes`: No impact on subscription (e.g. trial, unpublished)
10372
- */
10373
- outcome?: "upgraded" | "downgraded" | "no-payment-changes";
10374
- }, Error>>;
10375
- /**
10376
- * No description
10377
- *
10378
- * @tags sites
10379
- * @name PreviewSitePlanUpdate
10380
- * @summary Preview an upgrade to a site plan, returning checkout information.
10381
- * @request GET:/orgs/{organizationId}/sites/{siteId}/plan
10382
- * @secure
10383
- */
10384
- previewSitePlanUpdate: (organizationId: string, siteId: string, query: {
10385
- /** The desired site plan */
10386
- plan: SiteType;
10387
- }, params?: RequestParams) => Promise<HttpResponse<BillingOperationPreviewResponse, Error | {
10388
- error: {
10389
- /** @format int32 */
10390
- code: 404;
10391
- message: string;
10392
- };
10393
- }>>;
10394
10153
  /**
10395
10154
  * No description
10396
10155
  *
@@ -10501,22 +10260,6 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
10501
10260
  message: string;
10502
10261
  };
10503
10262
  }>>;
10504
- /**
10505
- * No description
10506
- *
10507
- * @tags sites
10508
- * @name GetSiteRawCustomizationById
10509
- * @summary Get the raw customization settings of a site.
10510
- * @request GET:/orgs/{organizationId}/sites/{siteId}/customization/raw
10511
- * @secure
10512
- */
10513
- getSiteRawCustomizationById: (organizationId: string, siteId: string, params?: RequestParams) => Promise<HttpResponse<SiteCustomizationSettings, Error | {
10514
- error: {
10515
- /** @format int32 */
10516
- code: 400;
10517
- message: string;
10518
- };
10519
- }>>;
10520
10263
  /**
10521
10264
  * No description
10522
10265
  *
@@ -10747,6 +10490,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
10747
10490
  /**
10748
10491
  * No description
10749
10492
  *
10493
+ * @tags sites
10750
10494
  * @name SearchSiteContent
10751
10495
  * @summary Search content in a site
10752
10496
  * @request POST:/orgs/{organizationId}/sites/{siteId}/search
@@ -10794,6 +10538,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
10794
10538
  /**
10795
10539
  * No description
10796
10540
  *
10541
+ * @tags search
10797
10542
  * @name StreamAskInSite
10798
10543
  * @summary Ask a question in a site. The response is streamed.
10799
10544
  * @request POST:/orgs/{organizationId}/sites/{siteId}/ask
@@ -10814,6 +10559,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
10814
10559
  /**
10815
10560
  * No description
10816
10561
  *
10562
+ * @tags search
10817
10563
  * @name StreamRecommendedQuestionsInSite
10818
10564
  * @summary Stream a list of questions that can be asked in a site.
10819
10565
  * @request GET:/orgs/{organizationId}/sites/{siteId}/ask/questions
@@ -11006,22 +10752,6 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
11006
10752
  message: string;
11007
10753
  };
11008
10754
  }>>;
11009
- /**
11010
- * No description
11011
- *
11012
- * @tags sites
11013
- * @name GetSiteSpaceRawCustomizationById
11014
- * @summary Get the raw customization settings of a site space.
11015
- * @request GET:/orgs/{organizationId}/sites/{siteId}/site-spaces/{siteSpaceId}/customization/raw
11016
- * @secure
11017
- */
11018
- getSiteSpaceRawCustomizationById: (organizationId: string, siteId: string, siteSpaceId: string, params?: RequestParams) => Promise<HttpResponse<SiteSpaceCustomizationSettings, Error | {
11019
- error: {
11020
- /** @format int32 */
11021
- code: 400;
11022
- message: string;
11023
- };
11024
- }>>;
11025
10755
  /**
11026
10756
  * No description
11027
10757
  *
@@ -11187,45 +10917,6 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
11187
10917
  listSiteVisitorSegments: (organizationId: string, siteId: string, params?: RequestParams) => Promise<HttpResponse<List & {
11188
10918
  items: SiteInsightsVisitorSegment[];
11189
10919
  }, any>>;
11190
- /**
11191
- * No description
11192
- *
11193
- * @tags analytics, sites
11194
- * @name GetAdsInsightsForSiteById
11195
- * @summary Get analytics insights of ads on a site.
11196
- * @request GET:/orgs/{organizationId}/sites/{siteId}/insights/ads
11197
- * @secure
11198
- */
11199
- getAdsInsightsForSiteById: (organizationId: string, siteId: string, query?: {
11200
- /** The interval for grouping the results */
11201
- interval?: InsightsInterval;
11202
- /**
11203
- * The earliest timestamp for any data returned
11204
- * @format date-time
11205
- */
11206
- start?: string;
11207
- /**
11208
- * The latest timestamp for any data returned
11209
- * @format date-time
11210
- */
11211
- end?: string;
11212
- }, params?: RequestParams) => Promise<HttpResponse<{
11213
- /** A time serie of the ads stats over the provided period */
11214
- values: {
11215
- /**
11216
- * The start date of this interval
11217
- * @format date-time
11218
- */
11219
- date: string;
11220
- stats: SiteAdsStats;
11221
- }[];
11222
- account: {
11223
- /** Email address on the Ads platform. */
11224
- email: string;
11225
- /** URL to configure payout. */
11226
- url: string;
11227
- };
11228
- }, Error>>;
11229
10920
  /**
11230
10921
  * No description
11231
10922
  *
@@ -11338,6 +11029,25 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
11338
11029
  message: string;
11339
11030
  };
11340
11031
  }>>;
11032
+ /**
11033
+ * @description Generate a pre-signed URL that can be used to upload a file to storage
11034
+ *
11035
+ * @tags organization
11036
+ * @name GenerateSiteStorageUploadUrl
11037
+ * @summary Create a signed URL to upload a file
11038
+ * @request POST:/orgs/{organizationId}/sites/{siteId}/storage/upload
11039
+ * @secure
11040
+ */
11041
+ generateSiteStorageUploadUrl: (organizationId: string, siteId: string, data: {
11042
+ file: StorageFileMetadata;
11043
+ kind: StorageUploadKind;
11044
+ }, params?: RequestParams) => Promise<HttpResponse<StorageUploadURL, Error | {
11045
+ error: {
11046
+ /** @format int32 */
11047
+ code: 400;
11048
+ message: string;
11049
+ };
11050
+ }>>;
11341
11051
  /**
11342
11052
  * No description
11343
11053
  *
@@ -11515,24 +11225,6 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
11515
11225
  * @secure
11516
11226
  */
11517
11227
  getCustomHostname: (hostname: string, params?: RequestParams) => Promise<HttpResponse<CustomHostname, Error>>;
11518
- /**
11519
- * No description
11520
- *
11521
- * @tags custom-hostnames
11522
- * @name SetupCustomHostname
11523
- * @summary Setup a custom hostname on a site or an organization. Any previously set custom hostname will continue pointing to the target but marked as available for use with another target.
11524
- * @request POST:/custom-hostnames/{hostname}
11525
- * @secure
11526
- */
11527
- setupCustomHostname: (hostname: string, data: {
11528
- target: OrganizationPointer | SitePointer;
11529
- }, params?: RequestParams) => Promise<HttpResponse<CustomHostname, Error | {
11530
- error: {
11531
- /** @format int32 */
11532
- code: 409;
11533
- message: string;
11534
- };
11535
- }>>;
11536
11228
  /**
11537
11229
  * No description
11538
11230
  *
@@ -11559,30 +11251,6 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
11559
11251
  * @secure
11560
11252
  */
11561
11253
  removeCustomHostname: (hostname: string, params?: RequestParams) => Promise<HttpResponse<void, Error>>;
11562
- /**
11563
- * No description
11564
- *
11565
- * @tags custom-hostnames
11566
- * @name TestCustomHostname
11567
- * @summary Test if a custom hostname can be used for a site or organization.
11568
- * @request POST:/custom-hostnames/{hostname}/test
11569
- * @secure
11570
- */
11571
- testCustomHostname: (hostname: string, data: {
11572
- target: OrganizationPointer | SitePointer;
11573
- }, params?: RequestParams) => Promise<HttpResponse<void, Error | {
11574
- error: {
11575
- /** @format int32 */
11576
- code: 400;
11577
- message: string;
11578
- };
11579
- } | {
11580
- error: {
11581
- /** @format int32 */
11582
- code: 409;
11583
- message: string;
11584
- };
11585
- }>>;
11586
11254
  };
11587
11255
  ads: {
11588
11256
  /**
@@ -11653,22 +11321,6 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
11653
11321
  status: "pending";
11654
11322
  }, params?: RequestParams) => Promise<HttpResponse<void, Error>>;
11655
11323
  };
11656
- internal: {
11657
- /**
11658
- * No description
11659
- *
11660
- * @tags hive, critical
11661
- * @name GenerateHiveAccessToken
11662
- * @summary Returns a token to authenticate with Hive.
11663
- * @request POST:/internal/hive/token
11664
- * @secure
11665
- */
11666
- generateHiveAccessToken: (data?: {
11667
- /** @deprecated */
11668
- spaces?: string[];
11669
- contentIds?: string[];
11670
- }, params?: RequestParams) => Promise<HttpResponse<HiveAccessToken, Error>>;
11671
- };
11672
11324
  urls: {
11673
11325
  /**
11674
11326
  * No description