@gitbook/api 0.99.0 → 0.101.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 +440 -313
- package/dist/index.cjs +103 -80
- package/dist/index.js +103 -80
- package/package.json +1 -1
- package/spec/openapi.json +1789 -1449
- package/spec/openapi.yaml +2047 -1831
package/dist/client.d.ts
CHANGED
|
@@ -571,14 +571,31 @@ export interface DocumentInlineMath {
|
|
|
571
571
|
};
|
|
572
572
|
isVoid: true;
|
|
573
573
|
}
|
|
574
|
-
export
|
|
575
|
-
|
|
576
|
-
|
|
574
|
+
export interface DocumentBlockParagraph {
|
|
575
|
+
object: 'block';
|
|
576
|
+
type: 'paragraph';
|
|
577
577
|
key?: string;
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
578
|
+
nodes: (DocumentInline | DocumentText)[];
|
|
579
|
+
isVoid?: false;
|
|
580
|
+
data?: object;
|
|
581
|
+
}
|
|
582
|
+
export type DocumentInline = DocumentInlineLink | DocumentInlineEmoji | DocumentInlineMath | DocumentInlineImage | DocumentInlineAnnotation | DocumentInlineMention;
|
|
583
|
+
export interface DocumentBlockHeading {
|
|
584
|
+
object: 'block';
|
|
585
|
+
type: 'heading-1' | 'heading-2' | 'heading-3';
|
|
586
|
+
key?: string;
|
|
587
|
+
nodes: (DocumentInline | DocumentText)[];
|
|
588
|
+
data: {
|
|
589
|
+
/** @pattern ^[-a-z0-9.+_]+$ */
|
|
590
|
+
id?: string;
|
|
591
|
+
};
|
|
592
|
+
meta?: {
|
|
593
|
+
/** Unique ID to be used in an URL for the block. */
|
|
594
|
+
id: string;
|
|
595
|
+
};
|
|
596
|
+
isVoid?: false;
|
|
581
597
|
}
|
|
598
|
+
export type DocumentBlocksEssentials = DocumentBlockParagraph | DocumentBlockHeading | DocumentBlockListOrdered | DocumentBlockListUnordered | DocumentBlockListTasks | DocumentBlockDivider;
|
|
582
599
|
export interface DocumentInlineAnnotation {
|
|
583
600
|
object: 'inline';
|
|
584
601
|
type: 'annotation';
|
|
@@ -617,40 +634,6 @@ export interface DocumentBlockCode {
|
|
|
617
634
|
nodes: DocumentBlockCodeLine[];
|
|
618
635
|
isVoid?: false;
|
|
619
636
|
}
|
|
620
|
-
export interface DocumentInlineMention {
|
|
621
|
-
object: 'inline';
|
|
622
|
-
type: 'mention';
|
|
623
|
-
key?: string;
|
|
624
|
-
data: {
|
|
625
|
-
/** A relative reference to content in GitBook. */
|
|
626
|
-
ref: ContentRef;
|
|
627
|
-
};
|
|
628
|
-
isVoid: true;
|
|
629
|
-
}
|
|
630
|
-
export type DocumentInline = DocumentInlineLink | DocumentInlineEmoji | DocumentInlineMath | DocumentInlineImage | DocumentInlineAnnotation | DocumentInlineMention;
|
|
631
|
-
export interface DocumentBlockParagraph {
|
|
632
|
-
object: 'block';
|
|
633
|
-
type: 'paragraph';
|
|
634
|
-
key?: string;
|
|
635
|
-
nodes: (DocumentInline | DocumentText)[];
|
|
636
|
-
isVoid?: false;
|
|
637
|
-
data?: object;
|
|
638
|
-
}
|
|
639
|
-
export interface DocumentBlockHeading {
|
|
640
|
-
object: 'block';
|
|
641
|
-
type: 'heading-1' | 'heading-2' | 'heading-3';
|
|
642
|
-
key?: string;
|
|
643
|
-
nodes: (DocumentInline | DocumentText)[];
|
|
644
|
-
data: {
|
|
645
|
-
/** @pattern ^[-a-z0-9.+_]+$ */
|
|
646
|
-
id?: string;
|
|
647
|
-
};
|
|
648
|
-
meta?: {
|
|
649
|
-
/** Unique ID to be used in an URL for the block. */
|
|
650
|
-
id: string;
|
|
651
|
-
};
|
|
652
|
-
isVoid?: false;
|
|
653
|
-
}
|
|
654
637
|
export interface DocumentBlockHint {
|
|
655
638
|
object: 'block';
|
|
656
639
|
type: 'hint';
|
|
@@ -759,6 +742,13 @@ export type DocumentTableDefinitionContentRef = DocumentTableDefinitionBase & {
|
|
|
759
742
|
type: 'content-ref';
|
|
760
743
|
};
|
|
761
744
|
export type DocumentTableDefinition = DocumentTableDefinitionText | DocumentTableDefinitionNumber | DocumentTableDefinitionCheckbox | DocumentTableDefinitionFiles | DocumentTableDefinitionUsers | DocumentTableDefinitionRating | DocumentTableDefinitionSelect | DocumentTableDefinitionContentRef;
|
|
745
|
+
export interface DocumentFragment {
|
|
746
|
+
object: 'fragment';
|
|
747
|
+
key?: string;
|
|
748
|
+
fragment?: string;
|
|
749
|
+
type?: string;
|
|
750
|
+
nodes: DocumentBlock[];
|
|
751
|
+
}
|
|
762
752
|
export interface DocumentBlockTable {
|
|
763
753
|
object: 'block';
|
|
764
754
|
type: 'table';
|
|
@@ -877,6 +867,15 @@ export interface DocumentBlockEmbed {
|
|
|
877
867
|
};
|
|
878
868
|
isVoid: true;
|
|
879
869
|
}
|
|
870
|
+
export interface DocumentBlockReusableContent {
|
|
871
|
+
object: 'block';
|
|
872
|
+
type: 'reusable-content';
|
|
873
|
+
key?: string;
|
|
874
|
+
data: {
|
|
875
|
+
ref: ContentRefReusableContent;
|
|
876
|
+
};
|
|
877
|
+
isVoid: true;
|
|
878
|
+
}
|
|
880
879
|
export interface DocumentBlockExpandable {
|
|
881
880
|
object: 'block';
|
|
882
881
|
type: 'expandable';
|
|
@@ -895,7 +894,7 @@ export interface DocumentBlockExpandable {
|
|
|
895
894
|
fragment: 'expandable-body';
|
|
896
895
|
type: 'expandable-body';
|
|
897
896
|
/** @minItems 1 */
|
|
898
|
-
nodes: (DocumentBlocksEssentials | DocumentBlockCode)[];
|
|
897
|
+
nodes: (DocumentBlocksEssentials | DocumentBlockCode | DocumentBlockTable | DocumentBlockHint | DocumentBlockQuote | DocumentBlockReusableContent)[];
|
|
899
898
|
}))[];
|
|
900
899
|
meta?: {
|
|
901
900
|
/** Unique ID to be used in an URL for the block. */
|
|
@@ -1035,15 +1034,6 @@ export interface DocumentBlockOpenAPISchemas {
|
|
|
1035
1034
|
id: string;
|
|
1036
1035
|
};
|
|
1037
1036
|
}
|
|
1038
|
-
export interface DocumentBlockReusableContent {
|
|
1039
|
-
object: 'block';
|
|
1040
|
-
type: 'reusable-content';
|
|
1041
|
-
key?: string;
|
|
1042
|
-
data: {
|
|
1043
|
-
ref: ContentRefReusableContent;
|
|
1044
|
-
};
|
|
1045
|
-
isVoid: true;
|
|
1046
|
-
}
|
|
1047
1037
|
export interface DocumentBlockStepperStep {
|
|
1048
1038
|
object: 'block';
|
|
1049
1039
|
type: 'stepper-step';
|
|
@@ -1062,6 +1052,17 @@ export interface DocumentBlockStepper {
|
|
|
1062
1052
|
isVoid?: false;
|
|
1063
1053
|
data?: object;
|
|
1064
1054
|
}
|
|
1055
|
+
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 | DocumentBlockOpenAPISchemas | DocumentBlockContentRef | DocumentBlockIntegration | DocumentBlockReusableContent | DocumentBlockStepper | DocumentBlockStepperStep;
|
|
1056
|
+
export interface DocumentInlineMention {
|
|
1057
|
+
object: 'inline';
|
|
1058
|
+
type: 'mention';
|
|
1059
|
+
key?: string;
|
|
1060
|
+
data: {
|
|
1061
|
+
/** A relative reference to content in GitBook. */
|
|
1062
|
+
ref: ContentRef;
|
|
1063
|
+
};
|
|
1064
|
+
isVoid: true;
|
|
1065
|
+
}
|
|
1065
1066
|
export type DocumentBlocksTopLevels = DocumentBlocksEssentials | DocumentBlockQuote | DocumentBlockHint | DocumentBlockImages | DocumentBlockFile | DocumentBlockDrawing | DocumentBlockEmbed | DocumentBlockCode | DocumentBlockMath | DocumentBlockExpandable | DocumentBlockTabs | DocumentBlockTable | DocumentBlockOpenAPI | DocumentBlockOpenAPIOperation | DocumentBlockOpenAPISchemas | DocumentBlockContentRef | DocumentBlockIntegration | DocumentBlockReusableContent | DocumentBlockStepper;
|
|
1066
1067
|
export interface JSONDocument {
|
|
1067
1068
|
object: 'document';
|
|
@@ -1109,9 +1110,15 @@ export type RevisionPageDocument = RevisionPageBase & Document & {
|
|
|
1109
1110
|
* @default false
|
|
1110
1111
|
*/
|
|
1111
1112
|
noRobotsIndex?: boolean;
|
|
1112
|
-
|
|
1113
|
-
computed
|
|
1114
|
-
|
|
1113
|
+
} & ({
|
|
1114
|
+
/** Parameters for a computed content */
|
|
1115
|
+
computed: ComputedContentSource;
|
|
1116
|
+
/** Seed to use for the generation of IDs. */
|
|
1117
|
+
computedSeed: string;
|
|
1118
|
+
} | {
|
|
1119
|
+
/** ID of the document with the page body. If undefined, the page is empty. */
|
|
1120
|
+
documentId?: string;
|
|
1121
|
+
});
|
|
1115
1122
|
export type RevisionPageLink = RevisionPageBase & {
|
|
1116
1123
|
/** @deprecated */
|
|
1117
1124
|
kind: 'link';
|
|
@@ -3397,6 +3404,7 @@ export type SiteAds = {
|
|
|
3397
3404
|
export declare enum SiteCustomizationFeature {
|
|
3398
3405
|
HeaderLogo = "header-logo",
|
|
3399
3406
|
ThemePreset = "theme-preset",
|
|
3407
|
+
PremiumFonts = "premium-fonts",
|
|
3400
3408
|
CustomFonts = "custom-fonts",
|
|
3401
3409
|
CustomIcons = "custom-icons",
|
|
3402
3410
|
FooterLogo = "footer-logo",
|
|
@@ -3833,6 +3841,10 @@ export interface SiteToMigrate {
|
|
|
3833
3841
|
site: Site;
|
|
3834
3842
|
/** The new type of the site */
|
|
3835
3843
|
newType: SiteType;
|
|
3844
|
+
traffic: {
|
|
3845
|
+
/** Number of pageviews in the past 30 days */
|
|
3846
|
+
pageviews: number;
|
|
3847
|
+
};
|
|
3836
3848
|
features: SiteFeature[];
|
|
3837
3849
|
}
|
|
3838
3850
|
export interface BillingPortal {
|
|
@@ -4038,6 +4050,95 @@ export interface SearchAIAnswerStream {
|
|
|
4038
4050
|
/** Answer from AI for a question asked on a content. */
|
|
4039
4051
|
answer: SearchAIAnswer;
|
|
4040
4052
|
}
|
|
4053
|
+
export interface OpenAPISpecVersion {
|
|
4054
|
+
/** The object type, which is always "openapi-spec-version" */
|
|
4055
|
+
object: 'openapi-spec-version';
|
|
4056
|
+
/** Unique identifier */
|
|
4057
|
+
id: string;
|
|
4058
|
+
/** Date of creation */
|
|
4059
|
+
createdAt?: Timestamp;
|
|
4060
|
+
/** URL where the specification is accessible. */
|
|
4061
|
+
url: URL;
|
|
4062
|
+
/** URLs associated with the object */
|
|
4063
|
+
urls: {
|
|
4064
|
+
/** URL of the OpenAPI specification version in the API */
|
|
4065
|
+
location: URL;
|
|
4066
|
+
/** URL of the OpenAPI specification version in the application */
|
|
4067
|
+
app: URL;
|
|
4068
|
+
};
|
|
4069
|
+
}
|
|
4070
|
+
/** Content of the specification available through filesystem or public URL. */
|
|
4071
|
+
export interface OpenAPISpecContent {
|
|
4072
|
+
/** Filesystem containing all specifications. */
|
|
4073
|
+
filesystem: object;
|
|
4074
|
+
url: URL;
|
|
4075
|
+
}
|
|
4076
|
+
export interface StorageFileMetadata {
|
|
4077
|
+
/** Original filename */
|
|
4078
|
+
name: string;
|
|
4079
|
+
/** MIME type of the file */
|
|
4080
|
+
type: string;
|
|
4081
|
+
/** Size of the file in bytes */
|
|
4082
|
+
size: number;
|
|
4083
|
+
}
|
|
4084
|
+
export declare enum StorageUploadKind {
|
|
4085
|
+
CustomizationFont = "customization_font"
|
|
4086
|
+
}
|
|
4087
|
+
export interface StorageUploadURL {
|
|
4088
|
+
/** The kind of file to upload */
|
|
4089
|
+
object: 'storage-signed-url';
|
|
4090
|
+
/** Presigned URL for uploading the file */
|
|
4091
|
+
url: URL;
|
|
4092
|
+
/** The bucket object key for the file */
|
|
4093
|
+
key: string;
|
|
4094
|
+
}
|
|
4095
|
+
/**
|
|
4096
|
+
* The human-readable font-family name used in CSS (e.g., "Open Sans", "Playfair Display").
|
|
4097
|
+
* @minLength 1
|
|
4098
|
+
* @maxLength 50
|
|
4099
|
+
*/
|
|
4100
|
+
export type FontFamily = string;
|
|
4101
|
+
/**
|
|
4102
|
+
* Numeric representation of the font weight (400=regular, 500=medium, 700=bold, 900=black).
|
|
4103
|
+
* @min 1
|
|
4104
|
+
* @max 1000
|
|
4105
|
+
*/
|
|
4106
|
+
export type FontWeight = number;
|
|
4107
|
+
/** A font file referenced within a font-face declaration, specifying the file's location and format. */
|
|
4108
|
+
export interface FontSource {
|
|
4109
|
+
/** The absolute or relative URL pointing to the font file. */
|
|
4110
|
+
url: URL;
|
|
4111
|
+
/** The format of the font file. Prefer 'woff2' for modern browsers. */
|
|
4112
|
+
format?: 'woff2' | 'woff';
|
|
4113
|
+
}
|
|
4114
|
+
/** A single font-face declaration specifying the weight and source files for a particular variation of the font. */
|
|
4115
|
+
export interface FontFace {
|
|
4116
|
+
/** Numeric representation of the font weight (400=regular, 500=medium, 700=bold, 900=black). */
|
|
4117
|
+
weight: FontWeight;
|
|
4118
|
+
/**
|
|
4119
|
+
* Font source files provided in supported formats (e.g., woff2, woff).
|
|
4120
|
+
* @minItems 1
|
|
4121
|
+
*/
|
|
4122
|
+
sources: FontSource[];
|
|
4123
|
+
}
|
|
4124
|
+
/** Defines a font family along with its various font-face declarations for use in CSS '@font-face' rules. */
|
|
4125
|
+
export interface CustomizationFontDefinition {
|
|
4126
|
+
/** A globally unique identifier for the font definition. */
|
|
4127
|
+
id: string;
|
|
4128
|
+
/** The human-readable font-family name used in CSS (e.g., "Open Sans", "Playfair Display"). */
|
|
4129
|
+
fontFamily: FontFamily;
|
|
4130
|
+
/**
|
|
4131
|
+
* A list of font-face definitions, specifying variations such as weight and style.
|
|
4132
|
+
* @minItems 1
|
|
4133
|
+
*/
|
|
4134
|
+
fontFaces: FontFace[];
|
|
4135
|
+
}
|
|
4136
|
+
/**
|
|
4137
|
+
* The path of the file in the storage bucket
|
|
4138
|
+
* @minLength 1
|
|
4139
|
+
* @maxLength 512
|
|
4140
|
+
*/
|
|
4141
|
+
export type StorageFileKey = string;
|
|
4041
4142
|
/** A response to a request to preview a paid operation or action. A user might preview an operation before executing it to see which billing steps would be required (if any). This schema defines the response of that preview request. */
|
|
4042
4143
|
export type BillingOperationPreviewResponse = {
|
|
4043
4144
|
/** User can go ahead with the operation without any additional steps. Their subscription will be updated to reflect the new changes. */
|
|
@@ -4111,7 +4212,7 @@ export declare enum CustomizationDefaultFont {
|
|
|
4111
4212
|
Poppins = "Poppins",
|
|
4112
4213
|
FiraSans = "FiraSans"
|
|
4113
4214
|
}
|
|
4114
|
-
export type CustomizationFont = CustomizationDefaultFont;
|
|
4215
|
+
export type CustomizationFont = CustomizationDefaultFont | CustomizationFontDefinition;
|
|
4115
4216
|
/**
|
|
4116
4217
|
* The background style has been deprecated and will be removed in a future release. Use the `tint` settings instead.
|
|
4117
4218
|
* @deprecated
|
|
@@ -4957,25 +5058,6 @@ export interface SiteRedirect {
|
|
|
4957
5058
|
source: SiteRedirectSourcePath;
|
|
4958
5059
|
destination: SiteRedirectDestination;
|
|
4959
5060
|
}
|
|
4960
|
-
export interface StorageFileMetadata {
|
|
4961
|
-
/** Original filename */
|
|
4962
|
-
name: string;
|
|
4963
|
-
/** MIME type of the file */
|
|
4964
|
-
type: string;
|
|
4965
|
-
/** Size of the file in bytes */
|
|
4966
|
-
size: number;
|
|
4967
|
-
}
|
|
4968
|
-
export declare enum StorageUploadKind {
|
|
4969
|
-
CustomizationFont = "customization_font"
|
|
4970
|
-
}
|
|
4971
|
-
export interface StorageUploadURL {
|
|
4972
|
-
/** The kind of file to upload */
|
|
4973
|
-
object: 'storage-signed-url';
|
|
4974
|
-
/** Presigned URL for uploading the file */
|
|
4975
|
-
url: URL;
|
|
4976
|
-
/** The bucket object key for the file */
|
|
4977
|
-
key: string;
|
|
4978
|
-
}
|
|
4979
5061
|
export declare enum CustomHostnameDnsStatus {
|
|
4980
5062
|
DnsPassed = "dns_passed",
|
|
4981
5063
|
DnsWrongCname = "dns_wrong_cname",
|
|
@@ -5185,6 +5267,8 @@ export interface PublishedSiteContent {
|
|
|
5185
5267
|
pathname: string;
|
|
5186
5268
|
/** Prefix of the path in the URL dedicated to the space */
|
|
5187
5269
|
basePath: string;
|
|
5270
|
+
/** Prefix of the path in the URL dedicated to the site */
|
|
5271
|
+
siteBasePath: string;
|
|
5188
5272
|
/** Short-lived API token to fetch content related to the space in the context of the URL. */
|
|
5189
5273
|
apiToken: string;
|
|
5190
5274
|
/** ID of the organization. */
|
|
@@ -5201,29 +5285,6 @@ export type PublishedSiteContentLookup = {
|
|
|
5201
5285
|
target: 'application' | 'content' | 'external';
|
|
5202
5286
|
redirect: URL;
|
|
5203
5287
|
} | PublishedSiteContent;
|
|
5204
|
-
export interface OpenAPISpecVersion {
|
|
5205
|
-
/** The object type, which is always "openapi-spec-version" */
|
|
5206
|
-
object: 'openapi-spec-version';
|
|
5207
|
-
/** Unique identifier */
|
|
5208
|
-
id: string;
|
|
5209
|
-
/** Date of creation */
|
|
5210
|
-
createdAt?: Timestamp;
|
|
5211
|
-
/** URL where the specification is accessible. */
|
|
5212
|
-
url: URL;
|
|
5213
|
-
/** URLs associated with the object */
|
|
5214
|
-
urls: {
|
|
5215
|
-
/** URL of the OpenAPI specification version in the API */
|
|
5216
|
-
location: URL;
|
|
5217
|
-
/** URL of the OpenAPI specification version in the application */
|
|
5218
|
-
app: URL;
|
|
5219
|
-
};
|
|
5220
|
-
}
|
|
5221
|
-
/** Content of the specification available through filesystem or public URL. */
|
|
5222
|
-
export interface OpenAPISpecContent {
|
|
5223
|
-
/** Filesystem containing all specifications. */
|
|
5224
|
-
filesystem: object;
|
|
5225
|
-
url: URL;
|
|
5226
|
-
}
|
|
5227
5288
|
/**
|
|
5228
5289
|
* @minLength 64
|
|
5229
5290
|
* @maxLength 64
|
|
@@ -5322,7 +5383,6 @@ export interface ContentPublishingAuth {
|
|
|
5322
5383
|
*/
|
|
5323
5384
|
fallbackURL?: string;
|
|
5324
5385
|
}
|
|
5325
|
-
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 | DocumentBlockOpenAPISchemas | DocumentBlockContentRef | DocumentBlockIntegration | DocumentBlockReusableContent | DocumentBlockStepper | DocumentBlockStepperStep;
|
|
5326
5386
|
/** Dependency for a computation, before its resolution. */
|
|
5327
5387
|
export interface ComputedContentDependency {
|
|
5328
5388
|
ref: ComputedContentDependencyRef;
|
|
@@ -5707,6 +5767,11 @@ export interface OrganizationOpenAPISpecsChannel {
|
|
|
5707
5767
|
channel: 'organization-openapi-specs';
|
|
5708
5768
|
organization: string;
|
|
5709
5769
|
}
|
|
5770
|
+
/** Subscription channel for changes in custom fonts in an organization. */
|
|
5771
|
+
export interface OrganizationCustomFontsChannel {
|
|
5772
|
+
channel: 'organization-fonts';
|
|
5773
|
+
organization: string;
|
|
5774
|
+
}
|
|
5710
5775
|
export interface SpaceCommentsChannel {
|
|
5711
5776
|
channel: 'space-comments';
|
|
5712
5777
|
space: string;
|
|
@@ -5835,7 +5900,7 @@ export interface OpenAPISpecChannel {
|
|
|
5835
5900
|
openAPISpec: string;
|
|
5836
5901
|
}
|
|
5837
5902
|
/** Channel to subscribe to for realtime updates. */
|
|
5838
|
-
export type SubscriptionChannel = SpaceInfoChannel | SpaceContentChannel | SpaceGitInfoChannel | SpacePublishingAuthChannel | SpacePublishingCustomizationChannel | SpaceCustomFieldsChannel | SpaceContentRefsChannel | SpaceIntegrationsChannel | OrganizationCustomFieldsChannel | UserAPITokensChannel | UserOrganizationsChannel | UserProfileChannel | ChangeRequestChannel | ChangeRequestsChannel | ChangeRequestReviewsChannel | ChangeRequestContentRefsChannel | CollectionChannel | CollectionPublishingCustomizationChannel | OrganizationInfoChannel | OrganizationInviteLinksChannel | OrganizationMembersChannel | OrganizationMemberChannel | OrganizationSAMLChannel | OrganizationTeamsChannel | OrganizationTeamChannel | OrganizationTeamMembersChannel | OrganizationTeamMemberChannel | OrganizationSpacesChannel | OrganizationCollectionsChannel | OrganizationIntegrationsChannel | OrganizationInstallationsChannel | OrganizationSitesChannel | OrganizationAIIndexationChannel | OrganizationOpenAPISpecsChannel | SpaceCommentsChannel | ChangeRequestCommentsChannel | CommentInfoChannel | CommentReplyInfoChannel | CommentRepliesChannel | IntegrationChannel | IntegrationInstallationChannel | IntegrationSpaceInstallationChannel | IntegrationSpaceInstallationsChannel | IntegrationSiteInstallationChannel | IntegrationSiteInstallationsChannel | PublishedContentSiteChannel | SiteRedirectsChannel | SiteChannel | SiteCustomizationChannel | SiteIntegrationsChannel | SiteSpaceChannel | SiteSpaceCustomizationChannel | SiteStructureChannel | SitePublishingAuthChannel | SiteShareLinksChannel | SiteShareLinkChannel | SiteSectionChannel | CustomHostnameChannel | GitSyncSettingsChannel | GitSyncOperationChannel | OpenAPISpecChannel;
|
|
5903
|
+
export type SubscriptionChannel = SpaceInfoChannel | SpaceContentChannel | SpaceGitInfoChannel | SpacePublishingAuthChannel | SpacePublishingCustomizationChannel | SpaceCustomFieldsChannel | SpaceContentRefsChannel | SpaceIntegrationsChannel | OrganizationCustomFieldsChannel | UserAPITokensChannel | UserOrganizationsChannel | UserProfileChannel | ChangeRequestChannel | ChangeRequestsChannel | ChangeRequestReviewsChannel | ChangeRequestContentRefsChannel | CollectionChannel | CollectionPublishingCustomizationChannel | OrganizationInfoChannel | OrganizationInviteLinksChannel | OrganizationMembersChannel | OrganizationMemberChannel | OrganizationSAMLChannel | OrganizationTeamsChannel | OrganizationTeamChannel | OrganizationTeamMembersChannel | OrganizationTeamMemberChannel | OrganizationSpacesChannel | OrganizationCollectionsChannel | OrganizationIntegrationsChannel | OrganizationInstallationsChannel | OrganizationSitesChannel | OrganizationAIIndexationChannel | OrganizationOpenAPISpecsChannel | OrganizationCustomFontsChannel | SpaceCommentsChannel | ChangeRequestCommentsChannel | CommentInfoChannel | CommentReplyInfoChannel | CommentRepliesChannel | IntegrationChannel | IntegrationInstallationChannel | IntegrationSpaceInstallationChannel | IntegrationSpaceInstallationsChannel | IntegrationSiteInstallationChannel | IntegrationSiteInstallationsChannel | PublishedContentSiteChannel | SiteRedirectsChannel | SiteChannel | SiteCustomizationChannel | SiteIntegrationsChannel | SiteSpaceChannel | SiteSpaceCustomizationChannel | SiteStructureChannel | SitePublishingAuthChannel | SiteShareLinksChannel | SiteShareLinkChannel | SiteSectionChannel | CustomHostnameChannel | GitSyncSettingsChannel | GitSyncOperationChannel | OpenAPISpecChannel;
|
|
5839
5904
|
export interface GitSyncOperationChannelData {
|
|
5840
5905
|
channel: 'space-gitsync-operation';
|
|
5841
5906
|
data: GitSyncOperation;
|
|
@@ -5949,12 +6014,6 @@ export interface CustomizationSettings {
|
|
|
5949
6014
|
url?: URL;
|
|
5950
6015
|
};
|
|
5951
6016
|
}
|
|
5952
|
-
/**
|
|
5953
|
-
* A user friendly name for the font family (e.g., "Open Sans", "Playfair Display")
|
|
5954
|
-
* @minLength 1
|
|
5955
|
-
* @maxLength 50
|
|
5956
|
-
*/
|
|
5957
|
-
export type CustomizationFontFamilyName = string;
|
|
5958
6017
|
/** The status of ads on the site */
|
|
5959
6018
|
export declare enum SiteAdsStatus {
|
|
5960
6019
|
Pending = "pending",
|
|
@@ -5963,12 +6022,6 @@ export declare enum SiteAdsStatus {
|
|
|
5963
6022
|
Rejected = "rejected",
|
|
5964
6023
|
Disabled = "disabled"
|
|
5965
6024
|
}
|
|
5966
|
-
/**
|
|
5967
|
-
* The path of the file in the storage bucket
|
|
5968
|
-
* @minLength 1
|
|
5969
|
-
* @maxLength 512
|
|
5970
|
-
*/
|
|
5971
|
-
export type StorageFileKey = string;
|
|
5972
6025
|
export interface Seat {
|
|
5973
6026
|
object: 'seat';
|
|
5974
6027
|
/** The unique ID of the organization */
|
|
@@ -6741,6 +6794,8 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
6741
6794
|
getComputedDocument: (spaceId: string, data: {
|
|
6742
6795
|
/** Parameters for a computed content */
|
|
6743
6796
|
source: ComputedContentSource;
|
|
6797
|
+
/** Seed to use for the generation of IDs. */
|
|
6798
|
+
seed: string;
|
|
6744
6799
|
}, query?: {
|
|
6745
6800
|
/** Version of the schema used for the document. */
|
|
6746
6801
|
schema?: "current" | "next";
|
|
@@ -6757,6 +6812,8 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
6757
6812
|
getComputedRevision: (spaceId: string, data: {
|
|
6758
6813
|
/** Parameters for a computed content */
|
|
6759
6814
|
source: ComputedContentSource;
|
|
6815
|
+
/** Seed to use for the generation of IDs. */
|
|
6816
|
+
seed: string;
|
|
6760
6817
|
}, params?: RequestParams) => Promise<HttpResponse<{
|
|
6761
6818
|
pages: RevisionPage[];
|
|
6762
6819
|
files: RevisionFile[];
|
|
@@ -9607,13 +9664,13 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
9607
9664
|
/**
|
|
9608
9665
|
* No description
|
|
9609
9666
|
*
|
|
9610
|
-
* @tags
|
|
9611
|
-
* @name
|
|
9612
|
-
* @summary List all the
|
|
9613
|
-
* @request GET:/orgs/{organizationId}/
|
|
9667
|
+
* @tags openapi
|
|
9668
|
+
* @name ListOpenApiSpecs
|
|
9669
|
+
* @summary List all the OpenAPI specifications in the organization
|
|
9670
|
+
* @request GET:/orgs/{organizationId}/openapi
|
|
9614
9671
|
* @secure
|
|
9615
9672
|
*/
|
|
9616
|
-
|
|
9673
|
+
listOpenApiSpecs: (organizationId: string, query?: {
|
|
9617
9674
|
/** Identifier of the page results to fetch. */
|
|
9618
9675
|
page?: string;
|
|
9619
9676
|
/**
|
|
@@ -9622,27 +9679,281 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
9622
9679
|
* @max 1000
|
|
9623
9680
|
*/
|
|
9624
9681
|
limit?: number;
|
|
9625
|
-
/** Identifier of the space to filter the sites by */
|
|
9626
|
-
space?: string;
|
|
9627
|
-
/** Filter sites by their title */
|
|
9628
|
-
title?: string;
|
|
9629
|
-
/** Filter sites by their published status */
|
|
9630
|
-
published?: boolean;
|
|
9631
|
-
/** Filter by site type */
|
|
9632
|
-
type?: SiteType[];
|
|
9633
9682
|
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
9634
|
-
items:
|
|
9683
|
+
items: OpenAPISpec[];
|
|
9635
9684
|
}, Error>>;
|
|
9636
9685
|
/**
|
|
9637
9686
|
* No description
|
|
9638
9687
|
*
|
|
9639
|
-
* @tags
|
|
9640
|
-
* @name
|
|
9641
|
-
* @summary
|
|
9642
|
-
* @request
|
|
9688
|
+
* @tags openapi
|
|
9689
|
+
* @name GetOpenApiSpecBySlug
|
|
9690
|
+
* @summary Get an organization OpenAPI specification by its slug
|
|
9691
|
+
* @request GET:/orgs/{organizationId}/openapi/{specSlug}
|
|
9643
9692
|
* @secure
|
|
9644
9693
|
*/
|
|
9645
|
-
|
|
9694
|
+
getOpenApiSpecBySlug: (organizationId: string, specSlug: string, params?: RequestParams) => Promise<HttpResponse<OpenAPISpec, Error | {
|
|
9695
|
+
error: {
|
|
9696
|
+
/** @format int32 */
|
|
9697
|
+
code: 404;
|
|
9698
|
+
message: string;
|
|
9699
|
+
};
|
|
9700
|
+
}>>;
|
|
9701
|
+
/**
|
|
9702
|
+
* No description
|
|
9703
|
+
*
|
|
9704
|
+
* @tags openapi
|
|
9705
|
+
* @name CreateOrUpdateOpenApiSpecBySlug
|
|
9706
|
+
* @summary Create or update an organization OpenAPI specification by its slug
|
|
9707
|
+
* @request PUT:/orgs/{organizationId}/openapi/{specSlug}
|
|
9708
|
+
* @secure
|
|
9709
|
+
*/
|
|
9710
|
+
createOrUpdateOpenApiSpecBySlug: (organizationId: string, specSlug: string, data: {
|
|
9711
|
+
/** Create a specification from an URL */
|
|
9712
|
+
source: {
|
|
9713
|
+
url: URL;
|
|
9714
|
+
} | {
|
|
9715
|
+
/**
|
|
9716
|
+
* OpenAPI specification as text
|
|
9717
|
+
* @minLength 1
|
|
9718
|
+
*/
|
|
9719
|
+
text: string;
|
|
9720
|
+
};
|
|
9721
|
+
}, params?: RequestParams) => Promise<HttpResponse<OpenAPISpec, Error | {
|
|
9722
|
+
error: {
|
|
9723
|
+
/** @format int32 */
|
|
9724
|
+
code: 400;
|
|
9725
|
+
message: string;
|
|
9726
|
+
};
|
|
9727
|
+
}>>;
|
|
9728
|
+
/**
|
|
9729
|
+
* No description
|
|
9730
|
+
*
|
|
9731
|
+
* @tags openapi
|
|
9732
|
+
* @name DeleteOpenApiSpecBySlug
|
|
9733
|
+
* @summary Delete an organization OpenAPI specification by its slug
|
|
9734
|
+
* @request DELETE:/orgs/{organizationId}/openapi/{specSlug}
|
|
9735
|
+
* @secure
|
|
9736
|
+
*/
|
|
9737
|
+
deleteOpenApiSpecBySlug: (organizationId: string, specSlug: string, params?: RequestParams) => Promise<HttpResponse<void, Error>>;
|
|
9738
|
+
/**
|
|
9739
|
+
* No description
|
|
9740
|
+
*
|
|
9741
|
+
* @tags openapi
|
|
9742
|
+
* @name ListOpenApiSpecVersions
|
|
9743
|
+
* @summary List all the OpenAPI specification versions
|
|
9744
|
+
* @request GET:/orgs/{organizationId}/openapi/{specSlug}/versions
|
|
9745
|
+
* @secure
|
|
9746
|
+
*/
|
|
9747
|
+
listOpenApiSpecVersions: (organizationId: string, specSlug: string, query?: {
|
|
9748
|
+
/** Identifier of the page results to fetch. */
|
|
9749
|
+
page?: string;
|
|
9750
|
+
/**
|
|
9751
|
+
* The number of results per page
|
|
9752
|
+
* @min 0
|
|
9753
|
+
* @max 1000
|
|
9754
|
+
*/
|
|
9755
|
+
limit?: number;
|
|
9756
|
+
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
9757
|
+
items: OpenAPISpecVersion[];
|
|
9758
|
+
}, Error | {
|
|
9759
|
+
error: {
|
|
9760
|
+
/** @format int32 */
|
|
9761
|
+
code: 404;
|
|
9762
|
+
message: string;
|
|
9763
|
+
};
|
|
9764
|
+
}>>;
|
|
9765
|
+
/**
|
|
9766
|
+
* No description
|
|
9767
|
+
*
|
|
9768
|
+
* @tags openapi
|
|
9769
|
+
* @name GetLatestOpenApiSpecVersion
|
|
9770
|
+
* @summary Get the latest OpenAPI specification version
|
|
9771
|
+
* @request GET:/orgs/{organizationId}/openapi/{specSlug}/versions/latest
|
|
9772
|
+
* @secure
|
|
9773
|
+
*/
|
|
9774
|
+
getLatestOpenApiSpecVersion: (organizationId: string, specSlug: string, params?: RequestParams) => Promise<HttpResponse<OpenAPISpecVersion, Error | {
|
|
9775
|
+
error: {
|
|
9776
|
+
/** @format int32 */
|
|
9777
|
+
code: 404;
|
|
9778
|
+
message: string;
|
|
9779
|
+
};
|
|
9780
|
+
}>>;
|
|
9781
|
+
/**
|
|
9782
|
+
* No description
|
|
9783
|
+
*
|
|
9784
|
+
* @tags openapi
|
|
9785
|
+
* @name GetLatestOpenApiSpecVersionContent
|
|
9786
|
+
* @summary Get the latest OpenAPI specification version content
|
|
9787
|
+
* @request GET:/orgs/{organizationId}/openapi/{specSlug}/versions/latest/content
|
|
9788
|
+
* @secure
|
|
9789
|
+
*/
|
|
9790
|
+
getLatestOpenApiSpecVersionContent: (organizationId: string, specSlug: string, params?: RequestParams) => Promise<HttpResponse<OpenAPISpecContent, Error | {
|
|
9791
|
+
error: {
|
|
9792
|
+
/** @format int32 */
|
|
9793
|
+
code: 404;
|
|
9794
|
+
message: string;
|
|
9795
|
+
};
|
|
9796
|
+
}>>;
|
|
9797
|
+
/**
|
|
9798
|
+
* No description
|
|
9799
|
+
*
|
|
9800
|
+
* @tags openapi
|
|
9801
|
+
* @name GetOpenApiSpecVersionById
|
|
9802
|
+
* @summary Get an OpenAPI specification version by its ID
|
|
9803
|
+
* @request GET:/orgs/{organizationId}/openapi/{specSlug}/versions/{versionId}
|
|
9804
|
+
* @secure
|
|
9805
|
+
*/
|
|
9806
|
+
getOpenApiSpecVersionById: (organizationId: string, specSlug: string, versionId: string, params?: RequestParams) => Promise<HttpResponse<OpenAPISpecVersion, Error | {
|
|
9807
|
+
error: {
|
|
9808
|
+
/** @format int32 */
|
|
9809
|
+
code: 404;
|
|
9810
|
+
message: string;
|
|
9811
|
+
};
|
|
9812
|
+
}>>;
|
|
9813
|
+
/**
|
|
9814
|
+
* No description
|
|
9815
|
+
*
|
|
9816
|
+
* @tags openapi
|
|
9817
|
+
* @name GetOpenApiSpecVersionContentById
|
|
9818
|
+
* @summary Get an OpenAPI specification version content by its ID
|
|
9819
|
+
* @request GET:/orgs/{organizationId}/openapi/{specSlug}/versions/{versionId}/content
|
|
9820
|
+
* @secure
|
|
9821
|
+
*/
|
|
9822
|
+
getOpenApiSpecVersionContentById: (organizationId: string, specSlug: string, versionId: string, params?: RequestParams) => Promise<HttpResponse<OpenAPISpecContent, Error | {
|
|
9823
|
+
error: {
|
|
9824
|
+
/** @format int32 */
|
|
9825
|
+
code: 404;
|
|
9826
|
+
message: string;
|
|
9827
|
+
};
|
|
9828
|
+
}>>;
|
|
9829
|
+
/**
|
|
9830
|
+
* @description Generate a pre-signed URL that can be used to upload a file to storage
|
|
9831
|
+
*
|
|
9832
|
+
* @tags organizations
|
|
9833
|
+
* @name GenerateStorageUploadUrl
|
|
9834
|
+
* @summary Create a signed URL to upload a file
|
|
9835
|
+
* @request POST:/orgs/{organizationId}/storage/upload
|
|
9836
|
+
* @secure
|
|
9837
|
+
*/
|
|
9838
|
+
generateStorageUploadUrl: (organizationId: string, data: {
|
|
9839
|
+
file: StorageFileMetadata;
|
|
9840
|
+
kind: StorageUploadKind;
|
|
9841
|
+
}, params?: RequestParams) => Promise<HttpResponse<StorageUploadURL, Error | {
|
|
9842
|
+
error: {
|
|
9843
|
+
/** @format int32 */
|
|
9844
|
+
code: 400;
|
|
9845
|
+
message: string;
|
|
9846
|
+
};
|
|
9847
|
+
}>>;
|
|
9848
|
+
/**
|
|
9849
|
+
* No description
|
|
9850
|
+
*
|
|
9851
|
+
* @tags organizations
|
|
9852
|
+
* @name ListCustomFonts
|
|
9853
|
+
* @summary List custom fonts in organization
|
|
9854
|
+
* @request GET:/orgs/{organizationId}/fonts
|
|
9855
|
+
* @secure
|
|
9856
|
+
*/
|
|
9857
|
+
listCustomFonts: (organizationId: string, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
9858
|
+
items: CustomizationFontDefinition[];
|
|
9859
|
+
}, Error | {
|
|
9860
|
+
error: {
|
|
9861
|
+
/** @format int32 */
|
|
9862
|
+
code: 404;
|
|
9863
|
+
message: string;
|
|
9864
|
+
};
|
|
9865
|
+
}>>;
|
|
9866
|
+
/**
|
|
9867
|
+
* No description
|
|
9868
|
+
*
|
|
9869
|
+
* @tags organizations
|
|
9870
|
+
* @name CreateCustomFont
|
|
9871
|
+
* @summary Create a custom font in organization
|
|
9872
|
+
* @request PUT:/orgs/{organizationId}/fonts
|
|
9873
|
+
* @secure
|
|
9874
|
+
*/
|
|
9875
|
+
createCustomFont: (organizationId: string, data: {
|
|
9876
|
+
/** The human-readable font-family name used in CSS (e.g., "Open Sans", "Playfair Display"). */
|
|
9877
|
+
fontFamily: FontFamily;
|
|
9878
|
+
/**
|
|
9879
|
+
* Array of font faces specifying weights and their corresponding storage keys.
|
|
9880
|
+
* At least one font face with weight 400 (regular) must be provided.
|
|
9881
|
+
* @minItems 1
|
|
9882
|
+
*/
|
|
9883
|
+
fontFaces: {
|
|
9884
|
+
/** Numeric representation of the font weight (400=regular, 500=medium, 700=bold, 900=black). */
|
|
9885
|
+
weight: FontWeight;
|
|
9886
|
+
/** The path of the file in the storage bucket */
|
|
9887
|
+
storageKey: StorageFileKey;
|
|
9888
|
+
}[];
|
|
9889
|
+
}, params?: RequestParams) => Promise<HttpResponse<CustomizationFontDefinition, Error | {
|
|
9890
|
+
error: {
|
|
9891
|
+
/** @format int32 */
|
|
9892
|
+
code: 404;
|
|
9893
|
+
message: string;
|
|
9894
|
+
};
|
|
9895
|
+
} | {
|
|
9896
|
+
error: {
|
|
9897
|
+
/** @format int32 */
|
|
9898
|
+
code: 412;
|
|
9899
|
+
message: string;
|
|
9900
|
+
};
|
|
9901
|
+
}>>;
|
|
9902
|
+
/**
|
|
9903
|
+
* No description
|
|
9904
|
+
*
|
|
9905
|
+
* @tags organizations
|
|
9906
|
+
* @name DeleteCustomFont
|
|
9907
|
+
* @summary Delete a custom font from an organization
|
|
9908
|
+
* @request DELETE:/orgs/{organizationId}/fonts/{fontId}
|
|
9909
|
+
* @secure
|
|
9910
|
+
*/
|
|
9911
|
+
deleteCustomFont: (organizationId: string, fontId: string, params?: RequestParams) => Promise<HttpResponse<void, Error | {
|
|
9912
|
+
error: {
|
|
9913
|
+
/** @format int32 */
|
|
9914
|
+
code: 404;
|
|
9915
|
+
message: string;
|
|
9916
|
+
};
|
|
9917
|
+
}>>;
|
|
9918
|
+
/**
|
|
9919
|
+
* No description
|
|
9920
|
+
*
|
|
9921
|
+
* @tags sites, critical
|
|
9922
|
+
* @name ListSites
|
|
9923
|
+
* @summary List all the sites created in an organization
|
|
9924
|
+
* @request GET:/orgs/{organizationId}/sites
|
|
9925
|
+
* @secure
|
|
9926
|
+
*/
|
|
9927
|
+
listSites: (organizationId: string, query?: {
|
|
9928
|
+
/** Identifier of the page results to fetch. */
|
|
9929
|
+
page?: string;
|
|
9930
|
+
/**
|
|
9931
|
+
* The number of results per page
|
|
9932
|
+
* @min 0
|
|
9933
|
+
* @max 1000
|
|
9934
|
+
*/
|
|
9935
|
+
limit?: number;
|
|
9936
|
+
/** Identifier of the space to filter the sites by */
|
|
9937
|
+
space?: string;
|
|
9938
|
+
/** Filter sites by their title */
|
|
9939
|
+
title?: string;
|
|
9940
|
+
/** Filter sites by their published status */
|
|
9941
|
+
published?: boolean;
|
|
9942
|
+
/** Filter by site type */
|
|
9943
|
+
type?: SiteType[];
|
|
9944
|
+
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
9945
|
+
items: Site[];
|
|
9946
|
+
}, Error>>;
|
|
9947
|
+
/**
|
|
9948
|
+
* No description
|
|
9949
|
+
*
|
|
9950
|
+
* @tags sites
|
|
9951
|
+
* @name CreateSite
|
|
9952
|
+
* @summary Create a site in an organization
|
|
9953
|
+
* @request POST:/orgs/{organizationId}/sites
|
|
9954
|
+
* @secure
|
|
9955
|
+
*/
|
|
9956
|
+
createSite: (organizationId: string, data: {
|
|
9646
9957
|
/** The type of the site, defaults to Basic */
|
|
9647
9958
|
type?: SiteType;
|
|
9648
9959
|
/** Title of the site */
|
|
@@ -10669,190 +10980,6 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
10669
10980
|
message: string;
|
|
10670
10981
|
};
|
|
10671
10982
|
}>>;
|
|
10672
|
-
/**
|
|
10673
|
-
* @description Generate a pre-signed URL that can be used to upload a file to storage
|
|
10674
|
-
*
|
|
10675
|
-
* @tags organization
|
|
10676
|
-
* @name GenerateSiteStorageUploadUrl
|
|
10677
|
-
* @summary Create a signed URL to upload a file
|
|
10678
|
-
* @request POST:/orgs/{organizationId}/sites/{siteId}/storage/upload
|
|
10679
|
-
* @secure
|
|
10680
|
-
*/
|
|
10681
|
-
generateSiteStorageUploadUrl: (organizationId: string, siteId: string, data: {
|
|
10682
|
-
file: StorageFileMetadata;
|
|
10683
|
-
kind: StorageUploadKind;
|
|
10684
|
-
}, params?: RequestParams) => Promise<HttpResponse<StorageUploadURL, Error | {
|
|
10685
|
-
error: {
|
|
10686
|
-
/** @format int32 */
|
|
10687
|
-
code: 400;
|
|
10688
|
-
message: string;
|
|
10689
|
-
};
|
|
10690
|
-
}>>;
|
|
10691
|
-
/**
|
|
10692
|
-
* No description
|
|
10693
|
-
*
|
|
10694
|
-
* @tags openapi
|
|
10695
|
-
* @name ListOpenApiSpecs
|
|
10696
|
-
* @summary List all the OpenAPI specifications in the organization
|
|
10697
|
-
* @request GET:/orgs/{organizationId}/openapi
|
|
10698
|
-
* @secure
|
|
10699
|
-
*/
|
|
10700
|
-
listOpenApiSpecs: (organizationId: string, query?: {
|
|
10701
|
-
/** Identifier of the page results to fetch. */
|
|
10702
|
-
page?: string;
|
|
10703
|
-
/**
|
|
10704
|
-
* The number of results per page
|
|
10705
|
-
* @min 0
|
|
10706
|
-
* @max 1000
|
|
10707
|
-
*/
|
|
10708
|
-
limit?: number;
|
|
10709
|
-
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
10710
|
-
items: OpenAPISpec[];
|
|
10711
|
-
}, Error>>;
|
|
10712
|
-
/**
|
|
10713
|
-
* No description
|
|
10714
|
-
*
|
|
10715
|
-
* @tags openapi
|
|
10716
|
-
* @name GetOpenApiSpecBySlug
|
|
10717
|
-
* @summary Get an organization OpenAPI specification by its slug
|
|
10718
|
-
* @request GET:/orgs/{organizationId}/openapi/{specSlug}
|
|
10719
|
-
* @secure
|
|
10720
|
-
*/
|
|
10721
|
-
getOpenApiSpecBySlug: (organizationId: string, specSlug: string, params?: RequestParams) => Promise<HttpResponse<OpenAPISpec, Error | {
|
|
10722
|
-
error: {
|
|
10723
|
-
/** @format int32 */
|
|
10724
|
-
code: 404;
|
|
10725
|
-
message: string;
|
|
10726
|
-
};
|
|
10727
|
-
}>>;
|
|
10728
|
-
/**
|
|
10729
|
-
* No description
|
|
10730
|
-
*
|
|
10731
|
-
* @tags openapi
|
|
10732
|
-
* @name CreateOrUpdateOpenApiSpecBySlug
|
|
10733
|
-
* @summary Create or update an organization OpenAPI specification by its slug
|
|
10734
|
-
* @request PUT:/orgs/{organizationId}/openapi/{specSlug}
|
|
10735
|
-
* @secure
|
|
10736
|
-
*/
|
|
10737
|
-
createOrUpdateOpenApiSpecBySlug: (organizationId: string, specSlug: string, data: {
|
|
10738
|
-
/** Create a specification from an URL */
|
|
10739
|
-
source: {
|
|
10740
|
-
url: URL;
|
|
10741
|
-
} | {
|
|
10742
|
-
/**
|
|
10743
|
-
* OpenAPI specification as text
|
|
10744
|
-
* @minLength 1
|
|
10745
|
-
*/
|
|
10746
|
-
text: string;
|
|
10747
|
-
};
|
|
10748
|
-
}, params?: RequestParams) => Promise<HttpResponse<OpenAPISpec, Error | {
|
|
10749
|
-
error: {
|
|
10750
|
-
/** @format int32 */
|
|
10751
|
-
code: 400;
|
|
10752
|
-
message: string;
|
|
10753
|
-
};
|
|
10754
|
-
}>>;
|
|
10755
|
-
/**
|
|
10756
|
-
* No description
|
|
10757
|
-
*
|
|
10758
|
-
* @tags openapi
|
|
10759
|
-
* @name DeleteOpenApiSpecBySlug
|
|
10760
|
-
* @summary Delete an organization OpenAPI specification by its slug
|
|
10761
|
-
* @request DELETE:/orgs/{organizationId}/openapi/{specSlug}
|
|
10762
|
-
* @secure
|
|
10763
|
-
*/
|
|
10764
|
-
deleteOpenApiSpecBySlug: (organizationId: string, specSlug: string, params?: RequestParams) => Promise<HttpResponse<void, Error>>;
|
|
10765
|
-
/**
|
|
10766
|
-
* No description
|
|
10767
|
-
*
|
|
10768
|
-
* @tags openapi
|
|
10769
|
-
* @name ListOpenApiSpecVersions
|
|
10770
|
-
* @summary List all the OpenAPI specification versions
|
|
10771
|
-
* @request GET:/orgs/{organizationId}/openapi/{specSlug}/versions
|
|
10772
|
-
* @secure
|
|
10773
|
-
*/
|
|
10774
|
-
listOpenApiSpecVersions: (organizationId: string, specSlug: string, query?: {
|
|
10775
|
-
/** Identifier of the page results to fetch. */
|
|
10776
|
-
page?: string;
|
|
10777
|
-
/**
|
|
10778
|
-
* The number of results per page
|
|
10779
|
-
* @min 0
|
|
10780
|
-
* @max 1000
|
|
10781
|
-
*/
|
|
10782
|
-
limit?: number;
|
|
10783
|
-
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
10784
|
-
items: OpenAPISpecVersion[];
|
|
10785
|
-
}, Error | {
|
|
10786
|
-
error: {
|
|
10787
|
-
/** @format int32 */
|
|
10788
|
-
code: 404;
|
|
10789
|
-
message: string;
|
|
10790
|
-
};
|
|
10791
|
-
}>>;
|
|
10792
|
-
/**
|
|
10793
|
-
* No description
|
|
10794
|
-
*
|
|
10795
|
-
* @tags openapi
|
|
10796
|
-
* @name GetLatestOpenApiSpecVersion
|
|
10797
|
-
* @summary Get the latest OpenAPI specification version
|
|
10798
|
-
* @request GET:/orgs/{organizationId}/openapi/{specSlug}/versions/latest
|
|
10799
|
-
* @secure
|
|
10800
|
-
*/
|
|
10801
|
-
getLatestOpenApiSpecVersion: (organizationId: string, specSlug: string, params?: RequestParams) => Promise<HttpResponse<OpenAPISpecVersion, Error | {
|
|
10802
|
-
error: {
|
|
10803
|
-
/** @format int32 */
|
|
10804
|
-
code: 404;
|
|
10805
|
-
message: string;
|
|
10806
|
-
};
|
|
10807
|
-
}>>;
|
|
10808
|
-
/**
|
|
10809
|
-
* No description
|
|
10810
|
-
*
|
|
10811
|
-
* @tags openapi
|
|
10812
|
-
* @name GetLatestOpenApiSpecVersionContent
|
|
10813
|
-
* @summary Get the latest OpenAPI specification version content
|
|
10814
|
-
* @request GET:/orgs/{organizationId}/openapi/{specSlug}/versions/latest/content
|
|
10815
|
-
* @secure
|
|
10816
|
-
*/
|
|
10817
|
-
getLatestOpenApiSpecVersionContent: (organizationId: string, specSlug: string, params?: RequestParams) => Promise<HttpResponse<OpenAPISpecContent, Error | {
|
|
10818
|
-
error: {
|
|
10819
|
-
/** @format int32 */
|
|
10820
|
-
code: 404;
|
|
10821
|
-
message: string;
|
|
10822
|
-
};
|
|
10823
|
-
}>>;
|
|
10824
|
-
/**
|
|
10825
|
-
* No description
|
|
10826
|
-
*
|
|
10827
|
-
* @tags openapi
|
|
10828
|
-
* @name GetOpenApiSpecVersionById
|
|
10829
|
-
* @summary Get an OpenAPI specification version by its ID
|
|
10830
|
-
* @request GET:/orgs/{organizationId}/openapi/{specSlug}/versions/{versionId}
|
|
10831
|
-
* @secure
|
|
10832
|
-
*/
|
|
10833
|
-
getOpenApiSpecVersionById: (organizationId: string, specSlug: string, versionId: string, params?: RequestParams) => Promise<HttpResponse<OpenAPISpecVersion, Error | {
|
|
10834
|
-
error: {
|
|
10835
|
-
/** @format int32 */
|
|
10836
|
-
code: 404;
|
|
10837
|
-
message: string;
|
|
10838
|
-
};
|
|
10839
|
-
}>>;
|
|
10840
|
-
/**
|
|
10841
|
-
* No description
|
|
10842
|
-
*
|
|
10843
|
-
* @tags openapi
|
|
10844
|
-
* @name GetOpenApiSpecVersionContentById
|
|
10845
|
-
* @summary Get an OpenAPI specification version content by its ID
|
|
10846
|
-
* @request GET:/orgs/{organizationId}/openapi/{specSlug}/versions/{versionId}/content
|
|
10847
|
-
* @secure
|
|
10848
|
-
*/
|
|
10849
|
-
getOpenApiSpecVersionContentById: (organizationId: string, specSlug: string, versionId: string, params?: RequestParams) => Promise<HttpResponse<OpenAPISpecContent, Error | {
|
|
10850
|
-
error: {
|
|
10851
|
-
/** @format int32 */
|
|
10852
|
-
code: 404;
|
|
10853
|
-
message: string;
|
|
10854
|
-
};
|
|
10855
|
-
}>>;
|
|
10856
10983
|
};
|
|
10857
10984
|
customHostnames: {
|
|
10858
10985
|
/**
|