@gitbook/api 0.100.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 +421 -334
- package/dist/index.cjs +102 -80
- package/dist/index.js +102 -80
- package/package.json +1 -1
- package/spec/openapi.json +3432 -3183
- package/spec/openapi.yaml +1113 -962
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';
|
|
@@ -4043,6 +4050,95 @@ export interface SearchAIAnswerStream {
|
|
|
4043
4050
|
/** Answer from AI for a question asked on a content. */
|
|
4044
4051
|
answer: SearchAIAnswer;
|
|
4045
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;
|
|
4046
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. */
|
|
4047
4143
|
export type BillingOperationPreviewResponse = {
|
|
4048
4144
|
/** User can go ahead with the operation without any additional steps. Their subscription will be updated to reflect the new changes. */
|
|
@@ -4116,47 +4212,6 @@ export declare enum CustomizationDefaultFont {
|
|
|
4116
4212
|
Poppins = "Poppins",
|
|
4117
4213
|
FiraSans = "FiraSans"
|
|
4118
4214
|
}
|
|
4119
|
-
/**
|
|
4120
|
-
* The human-readable font-family name used in CSS (e.g., "Open Sans", "Playfair Display").
|
|
4121
|
-
* @minLength 1
|
|
4122
|
-
* @maxLength 50
|
|
4123
|
-
*/
|
|
4124
|
-
export type FontFamily = string;
|
|
4125
|
-
/**
|
|
4126
|
-
* Numeric representation of the font weight (400=regular, 500=medium, 700=bold, 900=black).
|
|
4127
|
-
* @min 1
|
|
4128
|
-
* @max 1000
|
|
4129
|
-
*/
|
|
4130
|
-
export type FontWeight = number;
|
|
4131
|
-
/** A font file referenced within a font-face declaration, specifying the file's location and format. */
|
|
4132
|
-
export interface FontSource {
|
|
4133
|
-
/** The absolute or relative URL pointing to the font file. */
|
|
4134
|
-
url: URL;
|
|
4135
|
-
/** The format of the font file. Prefer 'woff2' for modern browsers. */
|
|
4136
|
-
format?: 'woff2' | 'woff';
|
|
4137
|
-
}
|
|
4138
|
-
/** A single font-face declaration specifying the weight and source files for a particular variation of the font. */
|
|
4139
|
-
export interface FontFace {
|
|
4140
|
-
/** Numeric representation of the font weight (400=regular, 500=medium, 700=bold, 900=black). */
|
|
4141
|
-
weight: FontWeight;
|
|
4142
|
-
/**
|
|
4143
|
-
* Font source files provided in supported formats (e.g., woff2, woff).
|
|
4144
|
-
* @minItems 1
|
|
4145
|
-
*/
|
|
4146
|
-
sources: FontSource[];
|
|
4147
|
-
}
|
|
4148
|
-
/** Defines a font family along with its various font-face declarations for use in CSS '@font-face' rules. */
|
|
4149
|
-
export interface CustomizationFontDefinition {
|
|
4150
|
-
/** A globally unique identifier for the font definition. */
|
|
4151
|
-
id: string;
|
|
4152
|
-
/** The human-readable font-family name used in CSS (e.g., "Open Sans", "Playfair Display"). */
|
|
4153
|
-
fontFamily: FontFamily;
|
|
4154
|
-
/**
|
|
4155
|
-
* A list of font-face definitions, specifying variations such as weight and style.
|
|
4156
|
-
* @minItems 1
|
|
4157
|
-
*/
|
|
4158
|
-
fontFaces: FontFace[];
|
|
4159
|
-
}
|
|
4160
4215
|
export type CustomizationFont = CustomizationDefaultFont | CustomizationFontDefinition;
|
|
4161
4216
|
/**
|
|
4162
4217
|
* The background style has been deprecated and will be removed in a future release. Use the `tint` settings instead.
|
|
@@ -5003,31 +5058,12 @@ export interface SiteRedirect {
|
|
|
5003
5058
|
source: SiteRedirectSourcePath;
|
|
5004
5059
|
destination: SiteRedirectDestination;
|
|
5005
5060
|
}
|
|
5006
|
-
export
|
|
5007
|
-
|
|
5008
|
-
|
|
5009
|
-
|
|
5010
|
-
|
|
5011
|
-
|
|
5012
|
-
size: number;
|
|
5013
|
-
}
|
|
5014
|
-
export declare enum StorageUploadKind {
|
|
5015
|
-
CustomizationFont = "customization_font"
|
|
5016
|
-
}
|
|
5017
|
-
export interface StorageUploadURL {
|
|
5018
|
-
/** The kind of file to upload */
|
|
5019
|
-
object: 'storage-signed-url';
|
|
5020
|
-
/** Presigned URL for uploading the file */
|
|
5021
|
-
url: URL;
|
|
5022
|
-
/** The bucket object key for the file */
|
|
5023
|
-
key: string;
|
|
5024
|
-
}
|
|
5025
|
-
export declare enum CustomHostnameDnsStatus {
|
|
5026
|
-
DnsPassed = "dns_passed",
|
|
5027
|
-
DnsWrongCname = "dns_wrong_cname",
|
|
5028
|
-
DnsNoCname = "dns_no_cname",
|
|
5029
|
-
DnsCloudflareProxied = "dns_cloudflare_proxied",
|
|
5030
|
-
DnsWrongCaa = "dns_wrong_caa"
|
|
5061
|
+
export declare enum CustomHostnameDnsStatus {
|
|
5062
|
+
DnsPassed = "dns_passed",
|
|
5063
|
+
DnsWrongCname = "dns_wrong_cname",
|
|
5064
|
+
DnsNoCname = "dns_no_cname",
|
|
5065
|
+
DnsCloudflareProxied = "dns_cloudflare_proxied",
|
|
5066
|
+
DnsWrongCaa = "dns_wrong_caa"
|
|
5031
5067
|
}
|
|
5032
5068
|
export declare enum CustomHostnameSslStatus {
|
|
5033
5069
|
Live = "live",
|
|
@@ -5231,6 +5267,8 @@ export interface PublishedSiteContent {
|
|
|
5231
5267
|
pathname: string;
|
|
5232
5268
|
/** Prefix of the path in the URL dedicated to the space */
|
|
5233
5269
|
basePath: string;
|
|
5270
|
+
/** Prefix of the path in the URL dedicated to the site */
|
|
5271
|
+
siteBasePath: string;
|
|
5234
5272
|
/** Short-lived API token to fetch content related to the space in the context of the URL. */
|
|
5235
5273
|
apiToken: string;
|
|
5236
5274
|
/** ID of the organization. */
|
|
@@ -5247,29 +5285,6 @@ export type PublishedSiteContentLookup = {
|
|
|
5247
5285
|
target: 'application' | 'content' | 'external';
|
|
5248
5286
|
redirect: URL;
|
|
5249
5287
|
} | PublishedSiteContent;
|
|
5250
|
-
export interface OpenAPISpecVersion {
|
|
5251
|
-
/** The object type, which is always "openapi-spec-version" */
|
|
5252
|
-
object: 'openapi-spec-version';
|
|
5253
|
-
/** Unique identifier */
|
|
5254
|
-
id: string;
|
|
5255
|
-
/** Date of creation */
|
|
5256
|
-
createdAt?: Timestamp;
|
|
5257
|
-
/** URL where the specification is accessible. */
|
|
5258
|
-
url: URL;
|
|
5259
|
-
/** URLs associated with the object */
|
|
5260
|
-
urls: {
|
|
5261
|
-
/** URL of the OpenAPI specification version in the API */
|
|
5262
|
-
location: URL;
|
|
5263
|
-
/** URL of the OpenAPI specification version in the application */
|
|
5264
|
-
app: URL;
|
|
5265
|
-
};
|
|
5266
|
-
}
|
|
5267
|
-
/** Content of the specification available through filesystem or public URL. */
|
|
5268
|
-
export interface OpenAPISpecContent {
|
|
5269
|
-
/** Filesystem containing all specifications. */
|
|
5270
|
-
filesystem: object;
|
|
5271
|
-
url: URL;
|
|
5272
|
-
}
|
|
5273
5288
|
/**
|
|
5274
5289
|
* @minLength 64
|
|
5275
5290
|
* @maxLength 64
|
|
@@ -5368,7 +5383,6 @@ export interface ContentPublishingAuth {
|
|
|
5368
5383
|
*/
|
|
5369
5384
|
fallbackURL?: string;
|
|
5370
5385
|
}
|
|
5371
|
-
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;
|
|
5372
5386
|
/** Dependency for a computation, before its resolution. */
|
|
5373
5387
|
export interface ComputedContentDependency {
|
|
5374
5388
|
ref: ComputedContentDependencyRef;
|
|
@@ -5753,6 +5767,11 @@ export interface OrganizationOpenAPISpecsChannel {
|
|
|
5753
5767
|
channel: 'organization-openapi-specs';
|
|
5754
5768
|
organization: string;
|
|
5755
5769
|
}
|
|
5770
|
+
/** Subscription channel for changes in custom fonts in an organization. */
|
|
5771
|
+
export interface OrganizationCustomFontsChannel {
|
|
5772
|
+
channel: 'organization-fonts';
|
|
5773
|
+
organization: string;
|
|
5774
|
+
}
|
|
5756
5775
|
export interface SpaceCommentsChannel {
|
|
5757
5776
|
channel: 'space-comments';
|
|
5758
5777
|
space: string;
|
|
@@ -5881,7 +5900,7 @@ export interface OpenAPISpecChannel {
|
|
|
5881
5900
|
openAPISpec: string;
|
|
5882
5901
|
}
|
|
5883
5902
|
/** Channel to subscribe to for realtime updates. */
|
|
5884
|
-
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;
|
|
5885
5904
|
export interface GitSyncOperationChannelData {
|
|
5886
5905
|
channel: 'space-gitsync-operation';
|
|
5887
5906
|
data: GitSyncOperation;
|
|
@@ -6003,12 +6022,6 @@ export declare enum SiteAdsStatus {
|
|
|
6003
6022
|
Rejected = "rejected",
|
|
6004
6023
|
Disabled = "disabled"
|
|
6005
6024
|
}
|
|
6006
|
-
/**
|
|
6007
|
-
* The path of the file in the storage bucket
|
|
6008
|
-
* @minLength 1
|
|
6009
|
-
* @maxLength 512
|
|
6010
|
-
*/
|
|
6011
|
-
export type StorageFileKey = string;
|
|
6012
6025
|
export interface Seat {
|
|
6013
6026
|
object: 'seat';
|
|
6014
6027
|
/** The unique ID of the organization */
|
|
@@ -6781,6 +6794,8 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
6781
6794
|
getComputedDocument: (spaceId: string, data: {
|
|
6782
6795
|
/** Parameters for a computed content */
|
|
6783
6796
|
source: ComputedContentSource;
|
|
6797
|
+
/** Seed to use for the generation of IDs. */
|
|
6798
|
+
seed: string;
|
|
6784
6799
|
}, query?: {
|
|
6785
6800
|
/** Version of the schema used for the document. */
|
|
6786
6801
|
schema?: "current" | "next";
|
|
@@ -6797,6 +6812,8 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
6797
6812
|
getComputedRevision: (spaceId: string, data: {
|
|
6798
6813
|
/** Parameters for a computed content */
|
|
6799
6814
|
source: ComputedContentSource;
|
|
6815
|
+
/** Seed to use for the generation of IDs. */
|
|
6816
|
+
seed: string;
|
|
6800
6817
|
}, params?: RequestParams) => Promise<HttpResponse<{
|
|
6801
6818
|
pages: RevisionPage[];
|
|
6802
6819
|
files: RevisionFile[];
|
|
@@ -9644,6 +9661,260 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
9644
9661
|
/** Return query details in the result */
|
|
9645
9662
|
details?: boolean;
|
|
9646
9663
|
}, params?: RequestParams) => EventIterator<SearchAIAnswerStream>;
|
|
9664
|
+
/**
|
|
9665
|
+
* No description
|
|
9666
|
+
*
|
|
9667
|
+
* @tags openapi
|
|
9668
|
+
* @name ListOpenApiSpecs
|
|
9669
|
+
* @summary List all the OpenAPI specifications in the organization
|
|
9670
|
+
* @request GET:/orgs/{organizationId}/openapi
|
|
9671
|
+
* @secure
|
|
9672
|
+
*/
|
|
9673
|
+
listOpenApiSpecs: (organizationId: string, query?: {
|
|
9674
|
+
/** Identifier of the page results to fetch. */
|
|
9675
|
+
page?: string;
|
|
9676
|
+
/**
|
|
9677
|
+
* The number of results per page
|
|
9678
|
+
* @min 0
|
|
9679
|
+
* @max 1000
|
|
9680
|
+
*/
|
|
9681
|
+
limit?: number;
|
|
9682
|
+
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
9683
|
+
items: OpenAPISpec[];
|
|
9684
|
+
}, Error>>;
|
|
9685
|
+
/**
|
|
9686
|
+
* No description
|
|
9687
|
+
*
|
|
9688
|
+
* @tags openapi
|
|
9689
|
+
* @name GetOpenApiSpecBySlug
|
|
9690
|
+
* @summary Get an organization OpenAPI specification by its slug
|
|
9691
|
+
* @request GET:/orgs/{organizationId}/openapi/{specSlug}
|
|
9692
|
+
* @secure
|
|
9693
|
+
*/
|
|
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
|
+
}>>;
|
|
9647
9918
|
/**
|
|
9648
9919
|
* No description
|
|
9649
9920
|
*
|
|
@@ -10709,190 +10980,6 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
10709
10980
|
message: string;
|
|
10710
10981
|
};
|
|
10711
10982
|
}>>;
|
|
10712
|
-
/**
|
|
10713
|
-
* @description Generate a pre-signed URL that can be used to upload a file to storage
|
|
10714
|
-
*
|
|
10715
|
-
* @tags organization
|
|
10716
|
-
* @name GenerateSiteStorageUploadUrl
|
|
10717
|
-
* @summary Create a signed URL to upload a file
|
|
10718
|
-
* @request POST:/orgs/{organizationId}/sites/{siteId}/storage/upload
|
|
10719
|
-
* @secure
|
|
10720
|
-
*/
|
|
10721
|
-
generateSiteStorageUploadUrl: (organizationId: string, siteId: string, data: {
|
|
10722
|
-
file: StorageFileMetadata;
|
|
10723
|
-
kind: StorageUploadKind;
|
|
10724
|
-
}, params?: RequestParams) => Promise<HttpResponse<StorageUploadURL, Error | {
|
|
10725
|
-
error: {
|
|
10726
|
-
/** @format int32 */
|
|
10727
|
-
code: 400;
|
|
10728
|
-
message: string;
|
|
10729
|
-
};
|
|
10730
|
-
}>>;
|
|
10731
|
-
/**
|
|
10732
|
-
* No description
|
|
10733
|
-
*
|
|
10734
|
-
* @tags openapi
|
|
10735
|
-
* @name ListOpenApiSpecs
|
|
10736
|
-
* @summary List all the OpenAPI specifications in the organization
|
|
10737
|
-
* @request GET:/orgs/{organizationId}/openapi
|
|
10738
|
-
* @secure
|
|
10739
|
-
*/
|
|
10740
|
-
listOpenApiSpecs: (organizationId: string, query?: {
|
|
10741
|
-
/** Identifier of the page results to fetch. */
|
|
10742
|
-
page?: string;
|
|
10743
|
-
/**
|
|
10744
|
-
* The number of results per page
|
|
10745
|
-
* @min 0
|
|
10746
|
-
* @max 1000
|
|
10747
|
-
*/
|
|
10748
|
-
limit?: number;
|
|
10749
|
-
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
10750
|
-
items: OpenAPISpec[];
|
|
10751
|
-
}, Error>>;
|
|
10752
|
-
/**
|
|
10753
|
-
* No description
|
|
10754
|
-
*
|
|
10755
|
-
* @tags openapi
|
|
10756
|
-
* @name GetOpenApiSpecBySlug
|
|
10757
|
-
* @summary Get an organization OpenAPI specification by its slug
|
|
10758
|
-
* @request GET:/orgs/{organizationId}/openapi/{specSlug}
|
|
10759
|
-
* @secure
|
|
10760
|
-
*/
|
|
10761
|
-
getOpenApiSpecBySlug: (organizationId: string, specSlug: string, params?: RequestParams) => Promise<HttpResponse<OpenAPISpec, Error | {
|
|
10762
|
-
error: {
|
|
10763
|
-
/** @format int32 */
|
|
10764
|
-
code: 404;
|
|
10765
|
-
message: string;
|
|
10766
|
-
};
|
|
10767
|
-
}>>;
|
|
10768
|
-
/**
|
|
10769
|
-
* No description
|
|
10770
|
-
*
|
|
10771
|
-
* @tags openapi
|
|
10772
|
-
* @name CreateOrUpdateOpenApiSpecBySlug
|
|
10773
|
-
* @summary Create or update an organization OpenAPI specification by its slug
|
|
10774
|
-
* @request PUT:/orgs/{organizationId}/openapi/{specSlug}
|
|
10775
|
-
* @secure
|
|
10776
|
-
*/
|
|
10777
|
-
createOrUpdateOpenApiSpecBySlug: (organizationId: string, specSlug: string, data: {
|
|
10778
|
-
/** Create a specification from an URL */
|
|
10779
|
-
source: {
|
|
10780
|
-
url: URL;
|
|
10781
|
-
} | {
|
|
10782
|
-
/**
|
|
10783
|
-
* OpenAPI specification as text
|
|
10784
|
-
* @minLength 1
|
|
10785
|
-
*/
|
|
10786
|
-
text: string;
|
|
10787
|
-
};
|
|
10788
|
-
}, params?: RequestParams) => Promise<HttpResponse<OpenAPISpec, Error | {
|
|
10789
|
-
error: {
|
|
10790
|
-
/** @format int32 */
|
|
10791
|
-
code: 400;
|
|
10792
|
-
message: string;
|
|
10793
|
-
};
|
|
10794
|
-
}>>;
|
|
10795
|
-
/**
|
|
10796
|
-
* No description
|
|
10797
|
-
*
|
|
10798
|
-
* @tags openapi
|
|
10799
|
-
* @name DeleteOpenApiSpecBySlug
|
|
10800
|
-
* @summary Delete an organization OpenAPI specification by its slug
|
|
10801
|
-
* @request DELETE:/orgs/{organizationId}/openapi/{specSlug}
|
|
10802
|
-
* @secure
|
|
10803
|
-
*/
|
|
10804
|
-
deleteOpenApiSpecBySlug: (organizationId: string, specSlug: string, params?: RequestParams) => Promise<HttpResponse<void, Error>>;
|
|
10805
|
-
/**
|
|
10806
|
-
* No description
|
|
10807
|
-
*
|
|
10808
|
-
* @tags openapi
|
|
10809
|
-
* @name ListOpenApiSpecVersions
|
|
10810
|
-
* @summary List all the OpenAPI specification versions
|
|
10811
|
-
* @request GET:/orgs/{organizationId}/openapi/{specSlug}/versions
|
|
10812
|
-
* @secure
|
|
10813
|
-
*/
|
|
10814
|
-
listOpenApiSpecVersions: (organizationId: string, specSlug: string, query?: {
|
|
10815
|
-
/** Identifier of the page results to fetch. */
|
|
10816
|
-
page?: string;
|
|
10817
|
-
/**
|
|
10818
|
-
* The number of results per page
|
|
10819
|
-
* @min 0
|
|
10820
|
-
* @max 1000
|
|
10821
|
-
*/
|
|
10822
|
-
limit?: number;
|
|
10823
|
-
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
10824
|
-
items: OpenAPISpecVersion[];
|
|
10825
|
-
}, Error | {
|
|
10826
|
-
error: {
|
|
10827
|
-
/** @format int32 */
|
|
10828
|
-
code: 404;
|
|
10829
|
-
message: string;
|
|
10830
|
-
};
|
|
10831
|
-
}>>;
|
|
10832
|
-
/**
|
|
10833
|
-
* No description
|
|
10834
|
-
*
|
|
10835
|
-
* @tags openapi
|
|
10836
|
-
* @name GetLatestOpenApiSpecVersion
|
|
10837
|
-
* @summary Get the latest OpenAPI specification version
|
|
10838
|
-
* @request GET:/orgs/{organizationId}/openapi/{specSlug}/versions/latest
|
|
10839
|
-
* @secure
|
|
10840
|
-
*/
|
|
10841
|
-
getLatestOpenApiSpecVersion: (organizationId: string, specSlug: string, params?: RequestParams) => Promise<HttpResponse<OpenAPISpecVersion, Error | {
|
|
10842
|
-
error: {
|
|
10843
|
-
/** @format int32 */
|
|
10844
|
-
code: 404;
|
|
10845
|
-
message: string;
|
|
10846
|
-
};
|
|
10847
|
-
}>>;
|
|
10848
|
-
/**
|
|
10849
|
-
* No description
|
|
10850
|
-
*
|
|
10851
|
-
* @tags openapi
|
|
10852
|
-
* @name GetLatestOpenApiSpecVersionContent
|
|
10853
|
-
* @summary Get the latest OpenAPI specification version content
|
|
10854
|
-
* @request GET:/orgs/{organizationId}/openapi/{specSlug}/versions/latest/content
|
|
10855
|
-
* @secure
|
|
10856
|
-
*/
|
|
10857
|
-
getLatestOpenApiSpecVersionContent: (organizationId: string, specSlug: string, params?: RequestParams) => Promise<HttpResponse<OpenAPISpecContent, Error | {
|
|
10858
|
-
error: {
|
|
10859
|
-
/** @format int32 */
|
|
10860
|
-
code: 404;
|
|
10861
|
-
message: string;
|
|
10862
|
-
};
|
|
10863
|
-
}>>;
|
|
10864
|
-
/**
|
|
10865
|
-
* No description
|
|
10866
|
-
*
|
|
10867
|
-
* @tags openapi
|
|
10868
|
-
* @name GetOpenApiSpecVersionById
|
|
10869
|
-
* @summary Get an OpenAPI specification version by its ID
|
|
10870
|
-
* @request GET:/orgs/{organizationId}/openapi/{specSlug}/versions/{versionId}
|
|
10871
|
-
* @secure
|
|
10872
|
-
*/
|
|
10873
|
-
getOpenApiSpecVersionById: (organizationId: string, specSlug: string, versionId: string, params?: RequestParams) => Promise<HttpResponse<OpenAPISpecVersion, Error | {
|
|
10874
|
-
error: {
|
|
10875
|
-
/** @format int32 */
|
|
10876
|
-
code: 404;
|
|
10877
|
-
message: string;
|
|
10878
|
-
};
|
|
10879
|
-
}>>;
|
|
10880
|
-
/**
|
|
10881
|
-
* No description
|
|
10882
|
-
*
|
|
10883
|
-
* @tags openapi
|
|
10884
|
-
* @name GetOpenApiSpecVersionContentById
|
|
10885
|
-
* @summary Get an OpenAPI specification version content by its ID
|
|
10886
|
-
* @request GET:/orgs/{organizationId}/openapi/{specSlug}/versions/{versionId}/content
|
|
10887
|
-
* @secure
|
|
10888
|
-
*/
|
|
10889
|
-
getOpenApiSpecVersionContentById: (organizationId: string, specSlug: string, versionId: string, params?: RequestParams) => Promise<HttpResponse<OpenAPISpecContent, Error | {
|
|
10890
|
-
error: {
|
|
10891
|
-
/** @format int32 */
|
|
10892
|
-
code: 404;
|
|
10893
|
-
message: string;
|
|
10894
|
-
};
|
|
10895
|
-
}>>;
|
|
10896
10983
|
};
|
|
10897
10984
|
customHostnames: {
|
|
10898
10985
|
/**
|