@gitbook/api 0.4.0 → 0.6.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 +317 -26
- package/dist/index.cjs +59 -0
- package/dist/index.js +59 -0
- package/package.json +1 -1
- package/spec/openapi.json +1123 -60
- package/spec/openapi.yaml +664 -34
package/dist/client.d.ts
CHANGED
|
@@ -136,6 +136,8 @@ export interface RequestImportGitRepository {
|
|
|
136
136
|
force?: boolean;
|
|
137
137
|
/** If true, the import will generate a revision without updating the space primary content. */
|
|
138
138
|
standalone?: boolean;
|
|
139
|
+
/** Optional metadata to store on the space about the Git provider */
|
|
140
|
+
gitInfo?: RequestUpdateSpaceGitInfo;
|
|
139
141
|
}
|
|
140
142
|
export interface RequestExportToGitRepository {
|
|
141
143
|
/** URL of the Git repository to export to. It can contain basic auth credentials. */
|
|
@@ -153,6 +155,8 @@ export interface RequestExportToGitRepository {
|
|
|
153
155
|
/** Path to a root directory for the project in the repository. */
|
|
154
156
|
repoProjectDirectory?: string;
|
|
155
157
|
force?: boolean;
|
|
158
|
+
/** Optional metadata to store on the space about the Git provider */
|
|
159
|
+
gitInfo?: RequestUpdateSpaceGitInfo;
|
|
156
160
|
}
|
|
157
161
|
export interface RequestImportContent {
|
|
158
162
|
/** URL of the content to import. */
|
|
@@ -186,12 +190,11 @@ export interface RequestCreateChangeRequest {
|
|
|
186
190
|
export interface RequestRenderIntegrationUI {
|
|
187
191
|
/** ID of the component to render in the integration. */
|
|
188
192
|
componentId: string;
|
|
189
|
-
/** ID of the space to render. */
|
|
190
|
-
spaceId: string;
|
|
191
193
|
/** Current properties of the UI. */
|
|
192
194
|
props: object;
|
|
193
195
|
/** Current local state of the UI. */
|
|
194
196
|
state?: object;
|
|
197
|
+
/** Object representing the context in which a ContentKit component is rendered. */
|
|
195
198
|
context: ContentKitContext;
|
|
196
199
|
/** Custom action to re-render the block. */
|
|
197
200
|
action?: ContentKitAction;
|
|
@@ -210,6 +213,15 @@ export interface RequestCreateOrganization {
|
|
|
210
213
|
type?: OrganizationType;
|
|
211
214
|
useCase?: OrganizationUseCase;
|
|
212
215
|
}
|
|
216
|
+
/**
|
|
217
|
+
* Update metadata about the Git provider on the space
|
|
218
|
+
*/
|
|
219
|
+
export interface RequestUpdateSpaceGitInfo {
|
|
220
|
+
/** The git provider */
|
|
221
|
+
provider?: 'github' | 'gitlab';
|
|
222
|
+
/** The repository's tree URL */
|
|
223
|
+
url?: string;
|
|
224
|
+
}
|
|
213
225
|
export interface ApiInformation {
|
|
214
226
|
/** Current release of GitBook */
|
|
215
227
|
version: string;
|
|
@@ -414,6 +426,7 @@ export interface Space {
|
|
|
414
426
|
visibility: ContentVisibility;
|
|
415
427
|
createdAt: Date;
|
|
416
428
|
updatedAt: Date;
|
|
429
|
+
deletedAt?: Date;
|
|
417
430
|
/** URLs associated with the object */
|
|
418
431
|
urls: {
|
|
419
432
|
location: string;
|
|
@@ -499,7 +512,7 @@ export interface SpaceEntity {
|
|
|
499
512
|
location: string;
|
|
500
513
|
};
|
|
501
514
|
}
|
|
502
|
-
export interface
|
|
515
|
+
export interface RevisionBase {
|
|
503
516
|
/** Type of Object, always equals to "revision" */
|
|
504
517
|
object: 'revision';
|
|
505
518
|
/** Unique identifier for the revision */
|
|
@@ -521,6 +534,20 @@ export interface Revision {
|
|
|
521
534
|
public?: string;
|
|
522
535
|
};
|
|
523
536
|
}
|
|
537
|
+
export declare type RevisionTypeMerge = RevisionBase & {
|
|
538
|
+
type: 'merge';
|
|
539
|
+
mergedFrom: ChangeRequest;
|
|
540
|
+
};
|
|
541
|
+
export declare type RevisionTypeRollback = RevisionBase & {
|
|
542
|
+
type: 'rollback';
|
|
543
|
+
};
|
|
544
|
+
export declare type RevisionTypeUpdate = RevisionBase & {
|
|
545
|
+
type: 'update';
|
|
546
|
+
};
|
|
547
|
+
export declare type RevisionTypeEdits = RevisionBase & {
|
|
548
|
+
type: 'edits';
|
|
549
|
+
};
|
|
550
|
+
export declare type Revision = RevisionTypeEdits | RevisionTypeMerge | RevisionTypeRollback | RevisionTypeUpdate;
|
|
524
551
|
export declare type RevisionPage = RevisionPageDocument | RevisionPageGroup | RevisionPageLink;
|
|
525
552
|
export interface RevisionPageBase {
|
|
526
553
|
/** Unique identifier for the page in the revision */
|
|
@@ -572,8 +599,10 @@ export interface GitSyncState {
|
|
|
572
599
|
/** The provider of the Git Sync installation. */
|
|
573
600
|
installationProvider?: string;
|
|
574
601
|
operation?: GitSyncOperation;
|
|
575
|
-
/** The URL to the repository, used when rendering public content. */
|
|
602
|
+
/** The URL to the repository tree, used when rendering public content. */
|
|
576
603
|
url?: string;
|
|
604
|
+
/** When the Git provider details were last updated */
|
|
605
|
+
updatedAt?: Date;
|
|
577
606
|
}
|
|
578
607
|
export interface GitSyncOperation {
|
|
579
608
|
/**
|
|
@@ -723,6 +752,8 @@ export interface OrganizationTeam {
|
|
|
723
752
|
title: string;
|
|
724
753
|
/** Count of members in this team. */
|
|
725
754
|
members: number;
|
|
755
|
+
/** Count of spaces this team has access to. */
|
|
756
|
+
spaces: number;
|
|
726
757
|
/** Date at which the team was created. */
|
|
727
758
|
createdAt: Date;
|
|
728
759
|
}
|
|
@@ -744,6 +775,80 @@ export declare enum TeamMemberRole {
|
|
|
744
775
|
Admin = "admin",
|
|
745
776
|
Participant = "participant"
|
|
746
777
|
}
|
|
778
|
+
export interface Recording {
|
|
779
|
+
/** Type of Object, always equals to "recording" */
|
|
780
|
+
object: 'recording';
|
|
781
|
+
/** Unique identifier for the recording */
|
|
782
|
+
id: string;
|
|
783
|
+
/** Optional title describing the recording */
|
|
784
|
+
title: RecordingTitle;
|
|
785
|
+
context: RecordingContext;
|
|
786
|
+
/** ID in the original source of the recording. */
|
|
787
|
+
externalId?: string;
|
|
788
|
+
/**
|
|
789
|
+
* URL of the source from which the recording originated
|
|
790
|
+
* @format uri
|
|
791
|
+
*/
|
|
792
|
+
externalURL?: string;
|
|
793
|
+
/** @format date-time */
|
|
794
|
+
createdAt: string;
|
|
795
|
+
/** @format date-time */
|
|
796
|
+
stoppedAt?: string;
|
|
797
|
+
/** Count of events recorded. */
|
|
798
|
+
events: {
|
|
799
|
+
'terminal.command'?: number;
|
|
800
|
+
speech?: number;
|
|
801
|
+
};
|
|
802
|
+
contributors: (Integration | User)[];
|
|
803
|
+
/** Output document for the recording. Is not set when recording is not finished, the user has not access to the space, or content has been deleted. */
|
|
804
|
+
output?: RecordingOutput;
|
|
805
|
+
/** URLs associated with the object */
|
|
806
|
+
urls: {
|
|
807
|
+
location: string;
|
|
808
|
+
};
|
|
809
|
+
}
|
|
810
|
+
/**
|
|
811
|
+
* Optional title describing the recording
|
|
812
|
+
*/
|
|
813
|
+
export declare type RecordingTitle = string;
|
|
814
|
+
export interface RecordingOutput {
|
|
815
|
+
/**
|
|
816
|
+
* URL of the generated page
|
|
817
|
+
* @format uri
|
|
818
|
+
*/
|
|
819
|
+
url: string;
|
|
820
|
+
space: Space;
|
|
821
|
+
page: RevisionPageDocument;
|
|
822
|
+
}
|
|
823
|
+
export declare type RecordingEvent = RecordingTerminalCommandEvent | RecordingSpeechEvent;
|
|
824
|
+
export declare type RecordingContext = 'meeting' | 'conversation' | 'walkthrough';
|
|
825
|
+
export interface BaseRecordingEvent {
|
|
826
|
+
/** The type of event */
|
|
827
|
+
type: string;
|
|
828
|
+
/**
|
|
829
|
+
* When the event happened
|
|
830
|
+
* @format date-time
|
|
831
|
+
*/
|
|
832
|
+
timestamp: string;
|
|
833
|
+
/** Optionally, provide the source of the event. GitBook may use this to improve the generated content. */
|
|
834
|
+
source?: string;
|
|
835
|
+
/** Optionally, provide the actor of the event, in the context of multiple people contributing to the recording. */
|
|
836
|
+
actor?: {
|
|
837
|
+
name: string;
|
|
838
|
+
};
|
|
839
|
+
}
|
|
840
|
+
export declare type RecordingSpeechEvent = BaseRecordingEvent & {
|
|
841
|
+
type: 'speech';
|
|
842
|
+
} & ({
|
|
843
|
+
audio: string;
|
|
844
|
+
} | {
|
|
845
|
+
transcript: string;
|
|
846
|
+
});
|
|
847
|
+
export declare type RecordingTerminalCommandEvent = BaseRecordingEvent & {
|
|
848
|
+
type: 'terminal.command';
|
|
849
|
+
command: string;
|
|
850
|
+
stdout: string;
|
|
851
|
+
};
|
|
747
852
|
export interface ChangeRequest {
|
|
748
853
|
/** Type of Object, always equals to "change-request" */
|
|
749
854
|
object: 'change-request';
|
|
@@ -1066,13 +1171,15 @@ export declare type IntegrationSummary = string;
|
|
|
1066
1171
|
export declare type IntegrationScopes = IntegrationScope[];
|
|
1067
1172
|
export declare enum IntegrationScope {
|
|
1068
1173
|
OrganizationEntitiesWrite = "organization:entities:write",
|
|
1174
|
+
RecordingWrite = "recording:write",
|
|
1069
1175
|
SpaceViewsRead = "space:views:read",
|
|
1070
1176
|
SpaceContentRead = "space:content:read",
|
|
1071
1177
|
SpaceContentWrite = "space:content:write",
|
|
1072
1178
|
SpaceMetadataRead = "space:metadata:read",
|
|
1073
1179
|
SpaceMetadataWrite = "space:metadata:write",
|
|
1074
1180
|
SpaceScriptInject = "space:script:inject",
|
|
1075
|
-
SpaceScriptCookies = "space:script:cookies"
|
|
1181
|
+
SpaceScriptCookies = "space:script:cookies",
|
|
1182
|
+
SpaceGitSync = "space:git:sync"
|
|
1076
1183
|
}
|
|
1077
1184
|
/**
|
|
1078
1185
|
* Categories for which the integration is listed in the marketplace
|
|
@@ -1148,8 +1255,7 @@ export declare enum IntegrationCategory {
|
|
|
1148
1255
|
Other = "other"
|
|
1149
1256
|
}
|
|
1150
1257
|
export interface IntegrationConfigurations {
|
|
1151
|
-
|
|
1152
|
-
account?: IntegrationConfigurationSchema;
|
|
1258
|
+
account?: IntegrationConfiguration;
|
|
1153
1259
|
space?: IntegrationConfiguration;
|
|
1154
1260
|
}
|
|
1155
1261
|
export declare type IntegrationConfiguration = IntegrationConfigurationSchema | IntegrationConfigurationComponent;
|
|
@@ -1237,9 +1343,7 @@ export declare type IntegrationSecrets = Record<string, string>;
|
|
|
1237
1343
|
* Runtime environment provided during the execution of integration's code.
|
|
1238
1344
|
*/
|
|
1239
1345
|
export interface IntegrationEnvironment {
|
|
1240
|
-
/**
|
|
1241
|
-
apiEndpoint: string;
|
|
1242
|
-
/** Authentication token to use with the HTTP API */
|
|
1346
|
+
/** Authentication token to use with the HTTP API. Depending on the context, the token might be representing the installation or the integration. */
|
|
1243
1347
|
authToken?: string;
|
|
1244
1348
|
integration: Integration;
|
|
1245
1349
|
/** Installation of an integration on an account */
|
|
@@ -1248,6 +1352,12 @@ export interface IntegrationEnvironment {
|
|
|
1248
1352
|
spaceInstallation?: IntegrationSpaceInstallation;
|
|
1249
1353
|
/** Secrets stored on the integration and passed at runtime. */
|
|
1250
1354
|
secrets: IntegrationSecrets;
|
|
1355
|
+
/** URL of the HTTP API */
|
|
1356
|
+
apiEndpoint: string;
|
|
1357
|
+
apiTokens: {
|
|
1358
|
+
integration: string;
|
|
1359
|
+
installation?: string;
|
|
1360
|
+
};
|
|
1251
1361
|
}
|
|
1252
1362
|
export declare type IntegrationInstallationTarget = UserTarget | OrganizationTarget;
|
|
1253
1363
|
/**
|
|
@@ -1444,7 +1554,7 @@ export declare type FetchPublishedScriptEvent = SpaceEvent & {
|
|
|
1444
1554
|
/**
|
|
1445
1555
|
* Event generated when rendering a UI
|
|
1446
1556
|
*/
|
|
1447
|
-
export declare type UIRenderEvent = SpaceEvent & {
|
|
1557
|
+
export declare type UIRenderEvent = (SpaceEvent | InstallationEvent) & {
|
|
1448
1558
|
auth?: {
|
|
1449
1559
|
userId: string;
|
|
1450
1560
|
};
|
|
@@ -1681,10 +1791,37 @@ export interface APITemporaryToken {
|
|
|
1681
1791
|
/** Temporary access token to authenticate with the API */
|
|
1682
1792
|
token: string;
|
|
1683
1793
|
}
|
|
1684
|
-
|
|
1685
|
-
|
|
1686
|
-
|
|
1794
|
+
/**
|
|
1795
|
+
* Common properties for ContentKit context.
|
|
1796
|
+
*/
|
|
1797
|
+
export interface ContentKitContextBase {
|
|
1687
1798
|
theme: 'dark' | 'light';
|
|
1799
|
+
}
|
|
1800
|
+
/**
|
|
1801
|
+
* Object representing the context in which a ContentKit component is rendered.
|
|
1802
|
+
*/
|
|
1803
|
+
export declare type ContentKitContext = ContentKitContextConfigurationAccount | ContentKitContextConfigurationSpace | ContentKitContextDocument;
|
|
1804
|
+
/**
|
|
1805
|
+
* Context while rendering in an account installation's configuration.
|
|
1806
|
+
*/
|
|
1807
|
+
export declare type ContentKitContextConfigurationAccount = ContentKitContextBase & {
|
|
1808
|
+
type: 'configuration_account';
|
|
1809
|
+
organizationId: string;
|
|
1810
|
+
};
|
|
1811
|
+
/**
|
|
1812
|
+
* Context while rendering in a space-installation's configuration.
|
|
1813
|
+
*/
|
|
1814
|
+
export declare type ContentKitContextConfigurationSpace = ContentKitContextBase & {
|
|
1815
|
+
type: 'configuration_space';
|
|
1816
|
+
spaceId: string;
|
|
1817
|
+
};
|
|
1818
|
+
/**
|
|
1819
|
+
* Context while rendering in a document.
|
|
1820
|
+
*/
|
|
1821
|
+
export declare type ContentKitContextDocument = ContentKitContextBase & {
|
|
1822
|
+
type: 'document';
|
|
1823
|
+
spaceId: string;
|
|
1824
|
+
editable: boolean;
|
|
1688
1825
|
};
|
|
1689
1826
|
/**
|
|
1690
1827
|
* Binding between a property and a state value.
|
|
@@ -1721,6 +1858,7 @@ export interface ContentKitButton {
|
|
|
1721
1858
|
/** Custom action to re-render the block. */
|
|
1722
1859
|
onPress: ContentKitAction;
|
|
1723
1860
|
icon?: ContentKitIcon;
|
|
1861
|
+
trailingIcon?: ContentKitIcon;
|
|
1724
1862
|
label?: string;
|
|
1725
1863
|
tooltip?: string;
|
|
1726
1864
|
/** A confirm object that defines an optional confirmation dialog after the input is clicked. */
|
|
@@ -1746,7 +1884,7 @@ export interface ContentKitTextInput {
|
|
|
1746
1884
|
export interface ContentKitText {
|
|
1747
1885
|
type: 'text';
|
|
1748
1886
|
style?: 'bold' | 'italic' | 'code' | 'strikethrough';
|
|
1749
|
-
children: (string | ContentKitText)[];
|
|
1887
|
+
children: string | (string | ContentKitText | ContentKitLink)[];
|
|
1750
1888
|
}
|
|
1751
1889
|
export interface ContentKitBox {
|
|
1752
1890
|
type: 'box';
|
|
@@ -1754,6 +1892,13 @@ export interface ContentKitBox {
|
|
|
1754
1892
|
grow?: number;
|
|
1755
1893
|
children: ContentKitDescendantElement[];
|
|
1756
1894
|
}
|
|
1895
|
+
/**
|
|
1896
|
+
* Element used to contextualize other elements or info.
|
|
1897
|
+
*/
|
|
1898
|
+
export interface ContentKitHint {
|
|
1899
|
+
type: 'hint';
|
|
1900
|
+
children: ContentKitInlineElement[];
|
|
1901
|
+
}
|
|
1757
1902
|
/**
|
|
1758
1903
|
* Horizontal stack of boxes.
|
|
1759
1904
|
*/
|
|
@@ -1811,6 +1956,7 @@ export declare enum ContentKitIcon {
|
|
|
1811
1956
|
Close = "close",
|
|
1812
1957
|
Edit = "edit",
|
|
1813
1958
|
Github = "github",
|
|
1959
|
+
Gitlab = "gitlab",
|
|
1814
1960
|
Maximize = "maximize",
|
|
1815
1961
|
Email = "email",
|
|
1816
1962
|
Settings = "settings",
|
|
@@ -1819,7 +1965,8 @@ export declare enum ContentKitIcon {
|
|
|
1819
1965
|
Star = "star",
|
|
1820
1966
|
Warning = "warning",
|
|
1821
1967
|
Link = "link",
|
|
1822
|
-
LinkExternal = "link-external"
|
|
1968
|
+
LinkExternal = "link-external",
|
|
1969
|
+
Eye = "eye"
|
|
1823
1970
|
}
|
|
1824
1971
|
/**
|
|
1825
1972
|
* Overlay modal.
|
|
@@ -1908,6 +2055,13 @@ export interface ContentKitImage {
|
|
|
1908
2055
|
};
|
|
1909
2056
|
aspectRatio: number;
|
|
1910
2057
|
}
|
|
2058
|
+
export interface ContentKitLink {
|
|
2059
|
+
type: 'link';
|
|
2060
|
+
target: {
|
|
2061
|
+
url: string | ContentKitURL;
|
|
2062
|
+
};
|
|
2063
|
+
children: string[];
|
|
2064
|
+
}
|
|
1911
2065
|
/**
|
|
1912
2066
|
* Field for an input.
|
|
1913
2067
|
*/
|
|
@@ -1924,6 +2078,7 @@ export interface ContentKitInput {
|
|
|
1924
2078
|
export interface ContentKitSelectOption {
|
|
1925
2079
|
id: string;
|
|
1926
2080
|
label: string;
|
|
2081
|
+
icon?: ContentKitIcon | ContentKitImage;
|
|
1927
2082
|
}
|
|
1928
2083
|
/**
|
|
1929
2084
|
* Creates a drop down menu with a list of options for a user to choose.
|
|
@@ -1934,13 +2089,17 @@ export interface ContentKitSelect {
|
|
|
1934
2089
|
state: string;
|
|
1935
2090
|
/** Value to initialize the select with. */
|
|
1936
2091
|
initialValue?: string | string[];
|
|
2092
|
+
/** Custom action to re-render the block. */
|
|
2093
|
+
onValueChange?: ContentKitAction;
|
|
1937
2094
|
/** Text that appears in the form control when it has no value set */
|
|
1938
2095
|
placeholder?: string;
|
|
1939
2096
|
/** Should the select accept the selection of multiple options. If true, the state will be an array. */
|
|
1940
2097
|
multiple?: boolean;
|
|
1941
|
-
/**
|
|
2098
|
+
/** Should the filter input be allowed to be selected as an option. */
|
|
2099
|
+
acceptInput?: boolean;
|
|
2100
|
+
/** Array of options to display in the select. */
|
|
1942
2101
|
options: ContentKitSelectOption[] | {
|
|
1943
|
-
url: string;
|
|
2102
|
+
url: string | ContentKitURL;
|
|
1944
2103
|
};
|
|
1945
2104
|
}
|
|
1946
2105
|
/**
|
|
@@ -1952,6 +2111,8 @@ export interface ContentKitSwitch {
|
|
|
1952
2111
|
state: string;
|
|
1953
2112
|
/** Value to initialize the switch with. */
|
|
1954
2113
|
initialValue?: boolean;
|
|
2114
|
+
/** Custom action to re-render the block. */
|
|
2115
|
+
onValueChange?: ContentKitAction;
|
|
1955
2116
|
/** A confirm object that defines an optional confirmation dialog after the input is clicked. */
|
|
1956
2117
|
confirm?: ContentKitConfirm;
|
|
1957
2118
|
}
|
|
@@ -1992,15 +2153,31 @@ export declare type ContentKitRootElement = ContentKitBlock | ContentKitModal;
|
|
|
1992
2153
|
/**
|
|
1993
2154
|
* Any element that can be used as children.
|
|
1994
2155
|
*/
|
|
1995
|
-
export declare type ContentKitDescendantElement = ContentKitButton | ContentKitTextInput | ContentKitHStack | ContentKitVStack | ContentKitBox | ContentKitDivider | ContentKitWebFrame | ContentKitCodeBlock | ContentKitMarkdown | ContentKitCard | ContentKitImage | ContentKitInput | ContentKitSelect | ContentKitSwitch | ContentKitCheckbox | ContentKitRadio | ContentKitText;
|
|
2156
|
+
export declare type ContentKitDescendantElement = ContentKitButton | ContentKitTextInput | ContentKitHStack | ContentKitVStack | ContentKitBox | ContentKitDivider | ContentKitWebFrame | ContentKitCodeBlock | ContentKitMarkdown | ContentKitCard | ContentKitImage | ContentKitInput | ContentKitSelect | ContentKitSwitch | ContentKitCheckbox | ContentKitRadio | ContentKitText | ContentKitHint | ContentKitLink;
|
|
1996
2157
|
/**
|
|
1997
2158
|
* Any element that is inline.
|
|
1998
2159
|
*/
|
|
1999
|
-
export declare type ContentKitInlineElement = ContentKitText | ContentKitImage;
|
|
2160
|
+
export declare type ContentKitInlineElement = ContentKitText | ContentKitImage | ContentKitLink;
|
|
2161
|
+
/**
|
|
2162
|
+
* Specification for an URL in ContentKit.
|
|
2163
|
+
*/
|
|
2164
|
+
export interface ContentKitURL {
|
|
2165
|
+
/**
|
|
2166
|
+
* Hostname of the URL along with the port number if required.
|
|
2167
|
+
* @example api.example.com
|
|
2168
|
+
*/
|
|
2169
|
+
host: string;
|
|
2170
|
+
/**
|
|
2171
|
+
* Path of the URL prefixed with a `/`.
|
|
2172
|
+
* @example /v1/options
|
|
2173
|
+
*/
|
|
2174
|
+
pathname: string;
|
|
2175
|
+
query?: Record<string, string | ContentKitDynamicBinding>;
|
|
2176
|
+
}
|
|
2000
2177
|
/**
|
|
2001
2178
|
* Channel to subscribe to for API updates.
|
|
2002
2179
|
*/
|
|
2003
|
-
export declare type SubscriptionChannel = SpaceInfoChannel | SpacePublishingAuthChannel | SpaceRelationsChannel | SpaceEntitiesChannel | SpaceCustomFieldsChannel | BackofficeUserInfoChannel | SpaceIntegrationsChannel | OrganizationCustomFieldsChannel | OrganizationEnvironmentsChannel | UserAPITokensChannel | ChangeRequestReviewsChannel | OrganizationMembersChannel | OrganizationMemberChannel | OrganizationTeamsChannel | OrganizationTeamChannel | OrganizationTeamMembersChannel | OrganizationTeamMemberChannel | OrganizationSpaceRelationsChannel | OrganizationSpacesChannel | OrganizationEntitiesChannel | {
|
|
2180
|
+
export declare type SubscriptionChannel = SpaceInfoChannel | SpaceGitInfoChannel | SpacePublishingAuthChannel | SpaceRelationsChannel | SpaceEntitiesChannel | SpaceCustomFieldsChannel | BackofficeUserInfoChannel | SpaceIntegrationsChannel | OrganizationCustomFieldsChannel | OrganizationEnvironmentsChannel | UserAPITokensChannel | ChangeRequestReviewsChannel | OrganizationMembersChannel | OrganizationMemberChannel | OrganizationTeamsChannel | OrganizationTeamChannel | OrganizationTeamMembersChannel | OrganizationTeamMemberChannel | OrganizationSpaceRelationsChannel | OrganizationSpacesChannel | OrganizationEntitiesChannel | OrganizationRecordingsChannel | {
|
|
2004
2181
|
channel: 'space-comments';
|
|
2005
2182
|
space: string;
|
|
2006
2183
|
changeRequest?: string;
|
|
@@ -2025,6 +2202,10 @@ export interface SpaceInfoChannel {
|
|
|
2025
2202
|
channel: 'space';
|
|
2026
2203
|
space: string;
|
|
2027
2204
|
}
|
|
2205
|
+
export interface SpaceGitInfoChannel {
|
|
2206
|
+
channel: 'space-git-info';
|
|
2207
|
+
space: string;
|
|
2208
|
+
}
|
|
2028
2209
|
export interface SpacePublishingAuthChannel {
|
|
2029
2210
|
channel: 'space-publishing-auth';
|
|
2030
2211
|
space: string;
|
|
@@ -2116,6 +2297,10 @@ export interface OrganizationEnvironmentsChannel {
|
|
|
2116
2297
|
channel: 'organization-environments';
|
|
2117
2298
|
organization: string;
|
|
2118
2299
|
}
|
|
2300
|
+
export interface OrganizationRecordingsChannel {
|
|
2301
|
+
channel: 'organization-recordings';
|
|
2302
|
+
organization: string;
|
|
2303
|
+
}
|
|
2119
2304
|
/**
|
|
2120
2305
|
* Custom field
|
|
2121
2306
|
*/
|
|
@@ -2164,13 +2349,17 @@ export interface Environment {
|
|
|
2164
2349
|
* Whether or not an environment is considered to have elevated responsibilities over other environments. Useful for distinguishing a production environment from a staging environment. Multiple primary environments are allowed. Your organization must have at least one primary environment.
|
|
2165
2350
|
*
|
|
2166
2351
|
*/
|
|
2167
|
-
primary:
|
|
2352
|
+
primary: EnvironmentPrimary;
|
|
2168
2353
|
/** URLs associated with the object */
|
|
2169
2354
|
urls: {
|
|
2170
2355
|
location: string;
|
|
2171
2356
|
};
|
|
2172
2357
|
}
|
|
2173
2358
|
export declare type EnvironmentTitle = string;
|
|
2359
|
+
/**
|
|
2360
|
+
* Whether or not an environment is considered to have elevated responsibilities over other environments. Useful for distinguishing a production environment from a staging environment. Multiple primary environments are allowed. Your organization must have at least one primary environment.
|
|
2361
|
+
*/
|
|
2362
|
+
export declare type EnvironmentPrimary = boolean;
|
|
2174
2363
|
/**
|
|
2175
2364
|
* @pattern ^[a-zA-Z_\-0-9]+$
|
|
2176
2365
|
*/
|
|
@@ -2178,14 +2367,22 @@ export declare type EnvironmentName = string;
|
|
|
2178
2367
|
export interface CreateEnvironment {
|
|
2179
2368
|
name: EnvironmentName;
|
|
2180
2369
|
title: EnvironmentTitle;
|
|
2181
|
-
|
|
2370
|
+
/**
|
|
2371
|
+
* Whether or not an environment is considered to have elevated responsibilities over other environments. Useful for distinguishing a production environment from a staging environment. Multiple primary environments are allowed. Your organization must have at least one primary environment.
|
|
2372
|
+
*
|
|
2373
|
+
*/
|
|
2374
|
+
primary?: EnvironmentPrimary;
|
|
2182
2375
|
}
|
|
2183
2376
|
/**
|
|
2184
2377
|
* An object containing the new title for an Environment
|
|
2185
2378
|
*/
|
|
2186
2379
|
export interface UpdateEnvironment {
|
|
2187
2380
|
title?: EnvironmentTitle;
|
|
2188
|
-
|
|
2381
|
+
/**
|
|
2382
|
+
* Whether or not an environment is considered to have elevated responsibilities over other environments. Useful for distinguishing a production environment from a staging environment. Multiple primary environments are allowed. Your organization must have at least one primary environment.
|
|
2383
|
+
*
|
|
2384
|
+
*/
|
|
2385
|
+
primary?: EnvironmentPrimary;
|
|
2189
2386
|
}
|
|
2190
2387
|
export declare type QueryParamsType = Record<string | number, any>;
|
|
2191
2388
|
export declare type ResponseFormat = keyof Omit<Body, 'body' | 'bodyUsed'>;
|
|
@@ -2470,6 +2667,21 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
2470
2667
|
* @secure
|
|
2471
2668
|
*/
|
|
2472
2669
|
exportToGitRepository: (spaceId: string, data: RequestExportToGitRepository, params?: RequestParams) => Promise<HttpResponse<void, Error>>;
|
|
2670
|
+
/**
|
|
2671
|
+
* No description
|
|
2672
|
+
*
|
|
2673
|
+
* @tags spaces
|
|
2674
|
+
* @name GetSpaceGitInfo
|
|
2675
|
+
* @summary Get metadata about the Git Sync provider currently set up on the space
|
|
2676
|
+
* @request GET:/spaces/{spaceId}/git/info
|
|
2677
|
+
* @secure
|
|
2678
|
+
*/
|
|
2679
|
+
getSpaceGitInfo: (spaceId: string, params?: RequestParams) => Promise<HttpResponse<GitSyncState, Error | {
|
|
2680
|
+
error: {
|
|
2681
|
+
code: 404;
|
|
2682
|
+
message: string;
|
|
2683
|
+
};
|
|
2684
|
+
}>>;
|
|
2473
2685
|
/**
|
|
2474
2686
|
* No description
|
|
2475
2687
|
*
|
|
@@ -3541,6 +3753,21 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
3541
3753
|
* @secure
|
|
3542
3754
|
*/
|
|
3543
3755
|
renderIntegrationUiWithPost: (integrationName: string, data: RequestRenderIntegrationUI, params?: RequestParams) => Promise<HttpResponse<ContentKitRenderOutput, Error>>;
|
|
3756
|
+
/**
|
|
3757
|
+
* No description
|
|
3758
|
+
*
|
|
3759
|
+
* @tags integrations
|
|
3760
|
+
* @name GetIntegrationInstallationById
|
|
3761
|
+
* @summary Get a specific integration's installation by its ID
|
|
3762
|
+
* @request GET:/integrations/{integrationName}/installations/{installationId}
|
|
3763
|
+
* @secure
|
|
3764
|
+
*/
|
|
3765
|
+
getIntegrationInstallationById: (integrationName: string, installationId: string, params?: RequestParams) => Promise<HttpResponse<IntegrationInstallation, Error | {
|
|
3766
|
+
error: {
|
|
3767
|
+
code: 404;
|
|
3768
|
+
message: string;
|
|
3769
|
+
};
|
|
3770
|
+
}>>;
|
|
3544
3771
|
/**
|
|
3545
3772
|
* No description
|
|
3546
3773
|
*
|
|
@@ -3633,11 +3860,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
3633
3860
|
};
|
|
3634
3861
|
}>>;
|
|
3635
3862
|
/**
|
|
3636
|
-
*
|
|
3863
|
+
* @description Update all entities for an integration installation. Entities will be created and updated, missing entities will be deleted.
|
|
3637
3864
|
*
|
|
3638
3865
|
* @tags integrations
|
|
3639
3866
|
* @name SyncIntegrationEntities
|
|
3640
|
-
* @summary Update all entities for an integration installation.
|
|
3867
|
+
* @summary Update all entities for an integration installation.
|
|
3641
3868
|
* @request POST:/integrations/{integrationName}/installations/{installationId}/entities
|
|
3642
3869
|
* @secure
|
|
3643
3870
|
*/
|
|
@@ -4252,6 +4479,70 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
4252
4479
|
* @secure
|
|
4253
4480
|
*/
|
|
4254
4481
|
deleteEnvironment: (organizationId: string, environmentName: string, params?: RequestParams) => Promise<HttpResponse<void, Error>>;
|
|
4482
|
+
/**
|
|
4483
|
+
* @description List recordings in an organization.
|
|
4484
|
+
*
|
|
4485
|
+
* @tags organizations
|
|
4486
|
+
* @name ListRecordings
|
|
4487
|
+
* @summary List recordings
|
|
4488
|
+
* @request GET:/orgs/{organizationId}/recordings
|
|
4489
|
+
* @secure
|
|
4490
|
+
*/
|
|
4491
|
+
listRecordings: (organizationId: string, query?: {
|
|
4492
|
+
page?: string;
|
|
4493
|
+
limit?: number;
|
|
4494
|
+
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
4495
|
+
items: Recording[];
|
|
4496
|
+
}, Error>>;
|
|
4497
|
+
/**
|
|
4498
|
+
* No description
|
|
4499
|
+
*
|
|
4500
|
+
* @tags organizations
|
|
4501
|
+
* @name StartRecording
|
|
4502
|
+
* @summary Start a recording
|
|
4503
|
+
* @request POST:/orgs/{organizationId}/recordings
|
|
4504
|
+
* @secure
|
|
4505
|
+
*/
|
|
4506
|
+
startRecording: (organizationId: string, data: {
|
|
4507
|
+
title?: RecordingTitle;
|
|
4508
|
+
context: RecordingContext;
|
|
4509
|
+
externalId?: string;
|
|
4510
|
+
externalURL?: string;
|
|
4511
|
+
}, params?: RequestParams) => Promise<HttpResponse<Recording, Error>>;
|
|
4512
|
+
/**
|
|
4513
|
+
* No description
|
|
4514
|
+
*
|
|
4515
|
+
* @tags organizations
|
|
4516
|
+
* @name GetRecording
|
|
4517
|
+
* @summary Get a recording by its ID
|
|
4518
|
+
* @request GET:/orgs/{organizationId}/recordings/{recordingId}
|
|
4519
|
+
* @secure
|
|
4520
|
+
*/
|
|
4521
|
+
getRecording: (organizationId: string, recordingId: string, params?: RequestParams) => Promise<HttpResponse<Recording, Error>>;
|
|
4522
|
+
/**
|
|
4523
|
+
* No description
|
|
4524
|
+
*
|
|
4525
|
+
* @tags organizations
|
|
4526
|
+
* @name AddEventsToRecording
|
|
4527
|
+
* @summary Add events to a running recording
|
|
4528
|
+
* @request POST:/orgs/{organizationId}/recordings/{recordingId}/events
|
|
4529
|
+
* @secure
|
|
4530
|
+
*/
|
|
4531
|
+
addEventsToRecording: (organizationId: string, recordingId: string, data: {
|
|
4532
|
+
events: RecordingEvent[];
|
|
4533
|
+
}, params?: RequestParams) => Promise<HttpResponse<void, Error>>;
|
|
4534
|
+
/**
|
|
4535
|
+
* No description
|
|
4536
|
+
*
|
|
4537
|
+
* @tags organizations
|
|
4538
|
+
* @name StopRecording
|
|
4539
|
+
* @summary Stop a recording
|
|
4540
|
+
* @request POST:/orgs/{organizationId}/recordings/{recordingId}/stop
|
|
4541
|
+
* @secure
|
|
4542
|
+
*/
|
|
4543
|
+
stopRecording: (organizationId: string, recordingId: string, data: {
|
|
4544
|
+
space: string;
|
|
4545
|
+
}, params?: RequestParams) => Promise<HttpResponse<RecordingOutput, Error>>;
|
|
4255
4546
|
};
|
|
4256
4547
|
internal: {
|
|
4257
4548
|
/**
|