@gitbook/api 0.4.0 → 0.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/client.d.ts CHANGED
@@ -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;
@@ -572,8 +585,10 @@ export interface GitSyncState {
572
585
  /** The provider of the Git Sync installation. */
573
586
  installationProvider?: string;
574
587
  operation?: GitSyncOperation;
575
- /** The URL to the repository, used when rendering public content. */
588
+ /** The URL to the repository tree, used when rendering public content. */
576
589
  url?: string;
590
+ /** When the Git provider details were last updated */
591
+ updatedAt?: Date;
577
592
  }
578
593
  export interface GitSyncOperation {
579
594
  /**
@@ -723,6 +738,8 @@ export interface OrganizationTeam {
723
738
  title: string;
724
739
  /** Count of members in this team. */
725
740
  members: number;
741
+ /** Count of spaces this team has access to. */
742
+ spaces: number;
726
743
  /** Date at which the team was created. */
727
744
  createdAt: Date;
728
745
  }
@@ -744,6 +761,48 @@ export declare enum TeamMemberRole {
744
761
  Admin = "admin",
745
762
  Participant = "participant"
746
763
  }
764
+ export interface Recording {
765
+ /** Unique identifier for the recording */
766
+ id: string;
767
+ context: RecordingContext;
768
+ /** @format date-time */
769
+ startedAt: string;
770
+ /** @format date-time */
771
+ stoppedAt?: string;
772
+ }
773
+ export declare type RecordingEvent = RecordingTerminalCommandEvent | RecordingSpeechEvent;
774
+ export declare enum RecordingContext {
775
+ Meeting = "meeting",
776
+ Conversation = "conversation",
777
+ Walkthrough = "walkthrough"
778
+ }
779
+ export interface BaseRecordingEvent {
780
+ /** The type of event */
781
+ type: string;
782
+ /**
783
+ * When the event happened
784
+ * @format date-time
785
+ */
786
+ timestamp: string;
787
+ /** Optionally, provide the source of the event. GitBook may use this to improve the generated content. */
788
+ source?: string;
789
+ /** Optionally, provide the actor of the event, in the context of multiple people contributing to the recording. */
790
+ actor?: {
791
+ name: string;
792
+ };
793
+ }
794
+ export declare type RecordingSpeechEvent = BaseRecordingEvent & {
795
+ type: 'speech';
796
+ } & ({
797
+ audio: string;
798
+ } | {
799
+ transcript: string;
800
+ });
801
+ export declare type RecordingTerminalCommandEvent = BaseRecordingEvent & {
802
+ type: 'terminal.command';
803
+ command: string;
804
+ stdout: string;
805
+ };
747
806
  export interface ChangeRequest {
748
807
  /** Type of Object, always equals to "change-request" */
749
808
  object: 'change-request';
@@ -1072,7 +1131,8 @@ export declare enum IntegrationScope {
1072
1131
  SpaceMetadataRead = "space:metadata:read",
1073
1132
  SpaceMetadataWrite = "space:metadata:write",
1074
1133
  SpaceScriptInject = "space:script:inject",
1075
- SpaceScriptCookies = "space:script:cookies"
1134
+ SpaceScriptCookies = "space:script:cookies",
1135
+ SpaceGitSync = "space:git:sync"
1076
1136
  }
1077
1137
  /**
1078
1138
  * Categories for which the integration is listed in the marketplace
@@ -1148,8 +1208,7 @@ export declare enum IntegrationCategory {
1148
1208
  Other = "other"
1149
1209
  }
1150
1210
  export interface IntegrationConfigurations {
1151
- /** Schema for a configuration */
1152
- account?: IntegrationConfigurationSchema;
1211
+ account?: IntegrationConfiguration;
1153
1212
  space?: IntegrationConfiguration;
1154
1213
  }
1155
1214
  export declare type IntegrationConfiguration = IntegrationConfigurationSchema | IntegrationConfigurationComponent;
@@ -1237,9 +1296,7 @@ export declare type IntegrationSecrets = Record<string, string>;
1237
1296
  * Runtime environment provided during the execution of integration's code.
1238
1297
  */
1239
1298
  export interface IntegrationEnvironment {
1240
- /** URL of the HTTP API */
1241
- apiEndpoint: string;
1242
- /** Authentication token to use with the HTTP API */
1299
+ /** Authentication token to use with the HTTP API. Depending on the context, the token might be representing the installation or the integration. */
1243
1300
  authToken?: string;
1244
1301
  integration: Integration;
1245
1302
  /** Installation of an integration on an account */
@@ -1248,6 +1305,12 @@ export interface IntegrationEnvironment {
1248
1305
  spaceInstallation?: IntegrationSpaceInstallation;
1249
1306
  /** Secrets stored on the integration and passed at runtime. */
1250
1307
  secrets: IntegrationSecrets;
1308
+ /** URL of the HTTP API */
1309
+ apiEndpoint: string;
1310
+ apiTokens: {
1311
+ integration: string;
1312
+ installation?: string;
1313
+ };
1251
1314
  }
1252
1315
  export declare type IntegrationInstallationTarget = UserTarget | OrganizationTarget;
1253
1316
  /**
@@ -1444,7 +1507,7 @@ export declare type FetchPublishedScriptEvent = SpaceEvent & {
1444
1507
  /**
1445
1508
  * Event generated when rendering a UI
1446
1509
  */
1447
- export declare type UIRenderEvent = SpaceEvent & {
1510
+ export declare type UIRenderEvent = (SpaceEvent | InstallationEvent) & {
1448
1511
  auth?: {
1449
1512
  userId: string;
1450
1513
  };
@@ -1681,10 +1744,37 @@ export interface APITemporaryToken {
1681
1744
  /** Temporary access token to authenticate with the API */
1682
1745
  token: string;
1683
1746
  }
1684
- export declare type ContentKitContext = {
1685
- type: 'document' | 'configuration_space';
1686
- editable: boolean;
1747
+ /**
1748
+ * Common properties for ContentKit context.
1749
+ */
1750
+ export interface ContentKitContextBase {
1687
1751
  theme: 'dark' | 'light';
1752
+ }
1753
+ /**
1754
+ * Object representing the context in which a ContentKit component is rendered.
1755
+ */
1756
+ export declare type ContentKitContext = ContentKitContextConfigurationAccount | ContentKitContextConfigurationSpace | ContentKitContextDocument;
1757
+ /**
1758
+ * Context while rendering in an account installation's configuration.
1759
+ */
1760
+ export declare type ContentKitContextConfigurationAccount = ContentKitContextBase & {
1761
+ type: 'configuration_account';
1762
+ organizationId: string;
1763
+ };
1764
+ /**
1765
+ * Context while rendering in a space-installation's configuration.
1766
+ */
1767
+ export declare type ContentKitContextConfigurationSpace = ContentKitContextBase & {
1768
+ type: 'configuration_space';
1769
+ spaceId: string;
1770
+ };
1771
+ /**
1772
+ * Context while rendering in a document.
1773
+ */
1774
+ export declare type ContentKitContextDocument = ContentKitContextBase & {
1775
+ type: 'document';
1776
+ spaceId: string;
1777
+ editable: boolean;
1688
1778
  };
1689
1779
  /**
1690
1780
  * Binding between a property and a state value.
@@ -1721,6 +1811,7 @@ export interface ContentKitButton {
1721
1811
  /** Custom action to re-render the block. */
1722
1812
  onPress: ContentKitAction;
1723
1813
  icon?: ContentKitIcon;
1814
+ trailingIcon?: ContentKitIcon;
1724
1815
  label?: string;
1725
1816
  tooltip?: string;
1726
1817
  /** A confirm object that defines an optional confirmation dialog after the input is clicked. */
@@ -1754,6 +1845,13 @@ export interface ContentKitBox {
1754
1845
  grow?: number;
1755
1846
  children: ContentKitDescendantElement[];
1756
1847
  }
1848
+ /**
1849
+ * Element used to contextualize other elements or info.
1850
+ */
1851
+ export interface ContentKitHint {
1852
+ type: 'hint';
1853
+ children: ContentKitInlineElement[];
1854
+ }
1757
1855
  /**
1758
1856
  * Horizontal stack of boxes.
1759
1857
  */
@@ -1924,6 +2022,7 @@ export interface ContentKitInput {
1924
2022
  export interface ContentKitSelectOption {
1925
2023
  id: string;
1926
2024
  label: string;
2025
+ icon?: ContentKitIcon | ContentKitImage;
1927
2026
  }
1928
2027
  /**
1929
2028
  * Creates a drop down menu with a list of options for a user to choose.
@@ -1934,13 +2033,15 @@ export interface ContentKitSelect {
1934
2033
  state: string;
1935
2034
  /** Value to initialize the select with. */
1936
2035
  initialValue?: string | string[];
2036
+ /** Custom action to re-render the block. */
2037
+ onValueChange?: ContentKitAction;
1937
2038
  /** Text that appears in the form control when it has no value set */
1938
2039
  placeholder?: string;
1939
2040
  /** Should the select accept the selection of multiple options. If true, the state will be an array. */
1940
2041
  multiple?: boolean;
1941
- /** Static list of options */
2042
+ /** Array of options to display in the select. */
1942
2043
  options: ContentKitSelectOption[] | {
1943
- url: string;
2044
+ url: string | ContentKitURL;
1944
2045
  };
1945
2046
  }
1946
2047
  /**
@@ -1952,6 +2053,8 @@ export interface ContentKitSwitch {
1952
2053
  state: string;
1953
2054
  /** Value to initialize the switch with. */
1954
2055
  initialValue?: boolean;
2056
+ /** Custom action to re-render the block. */
2057
+ onValueChange?: ContentKitAction;
1955
2058
  /** A confirm object that defines an optional confirmation dialog after the input is clicked. */
1956
2059
  confirm?: ContentKitConfirm;
1957
2060
  }
@@ -1992,15 +2095,31 @@ export declare type ContentKitRootElement = ContentKitBlock | ContentKitModal;
1992
2095
  /**
1993
2096
  * Any element that can be used as children.
1994
2097
  */
1995
- export declare type ContentKitDescendantElement = ContentKitButton | ContentKitTextInput | ContentKitHStack | ContentKitVStack | ContentKitBox | ContentKitDivider | ContentKitWebFrame | ContentKitCodeBlock | ContentKitMarkdown | ContentKitCard | ContentKitImage | ContentKitInput | ContentKitSelect | ContentKitSwitch | ContentKitCheckbox | ContentKitRadio | ContentKitText;
2098
+ export declare type ContentKitDescendantElement = ContentKitButton | ContentKitTextInput | ContentKitHStack | ContentKitVStack | ContentKitBox | ContentKitDivider | ContentKitWebFrame | ContentKitCodeBlock | ContentKitMarkdown | ContentKitCard | ContentKitImage | ContentKitInput | ContentKitSelect | ContentKitSwitch | ContentKitCheckbox | ContentKitRadio | ContentKitText | ContentKitHint;
1996
2099
  /**
1997
2100
  * Any element that is inline.
1998
2101
  */
1999
2102
  export declare type ContentKitInlineElement = ContentKitText | ContentKitImage;
2103
+ /**
2104
+ * Specification for an URL in ContentKit.
2105
+ */
2106
+ export interface ContentKitURL {
2107
+ /**
2108
+ * Hostname of the URL along with the port number if required.
2109
+ * @example api.example.com
2110
+ */
2111
+ host: string;
2112
+ /**
2113
+ * Path of the URL prefixed with a `/`.
2114
+ * @example /v1/options
2115
+ */
2116
+ pathname: string;
2117
+ query?: Record<string, string | ContentKitDynamicBinding>;
2118
+ }
2000
2119
  /**
2001
2120
  * Channel to subscribe to for API updates.
2002
2121
  */
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 | {
2122
+ 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 | {
2004
2123
  channel: 'space-comments';
2005
2124
  space: string;
2006
2125
  changeRequest?: string;
@@ -2025,6 +2144,10 @@ export interface SpaceInfoChannel {
2025
2144
  channel: 'space';
2026
2145
  space: string;
2027
2146
  }
2147
+ export interface SpaceGitInfoChannel {
2148
+ channel: 'space-git-info';
2149
+ space: string;
2150
+ }
2028
2151
  export interface SpacePublishingAuthChannel {
2029
2152
  channel: 'space-publishing-auth';
2030
2153
  space: string;
@@ -2164,13 +2287,17 @@ export interface Environment {
2164
2287
  * 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
2288
  *
2166
2289
  */
2167
- primary: boolean;
2290
+ primary: EnvironmentPrimary;
2168
2291
  /** URLs associated with the object */
2169
2292
  urls: {
2170
2293
  location: string;
2171
2294
  };
2172
2295
  }
2173
2296
  export declare type EnvironmentTitle = string;
2297
+ /**
2298
+ * 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.
2299
+ */
2300
+ export declare type EnvironmentPrimary = boolean;
2174
2301
  /**
2175
2302
  * @pattern ^[a-zA-Z_\-0-9]+$
2176
2303
  */
@@ -2178,14 +2305,22 @@ export declare type EnvironmentName = string;
2178
2305
  export interface CreateEnvironment {
2179
2306
  name: EnvironmentName;
2180
2307
  title: EnvironmentTitle;
2181
- primary?: any;
2308
+ /**
2309
+ * 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.
2310
+ *
2311
+ */
2312
+ primary?: EnvironmentPrimary;
2182
2313
  }
2183
2314
  /**
2184
2315
  * An object containing the new title for an Environment
2185
2316
  */
2186
2317
  export interface UpdateEnvironment {
2187
2318
  title?: EnvironmentTitle;
2188
- primary?: any;
2319
+ /**
2320
+ * 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.
2321
+ *
2322
+ */
2323
+ primary?: EnvironmentPrimary;
2189
2324
  }
2190
2325
  export declare type QueryParamsType = Record<string | number, any>;
2191
2326
  export declare type ResponseFormat = keyof Omit<Body, 'body' | 'bodyUsed'>;
@@ -2470,6 +2605,21 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
2470
2605
  * @secure
2471
2606
  */
2472
2607
  exportToGitRepository: (spaceId: string, data: RequestExportToGitRepository, params?: RequestParams) => Promise<HttpResponse<void, Error>>;
2608
+ /**
2609
+ * No description
2610
+ *
2611
+ * @tags spaces
2612
+ * @name GetSpaceGitInfo
2613
+ * @summary Get metadata about the Git Sync provider currently set up on the space
2614
+ * @request GET:/spaces/{spaceId}/git/info
2615
+ * @secure
2616
+ */
2617
+ getSpaceGitInfo: (spaceId: string, params?: RequestParams) => Promise<HttpResponse<GitSyncState, Error | {
2618
+ error: {
2619
+ code: 404;
2620
+ message: string;
2621
+ };
2622
+ }>>;
2473
2623
  /**
2474
2624
  * No description
2475
2625
  *
@@ -3541,6 +3691,21 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
3541
3691
  * @secure
3542
3692
  */
3543
3693
  renderIntegrationUiWithPost: (integrationName: string, data: RequestRenderIntegrationUI, params?: RequestParams) => Promise<HttpResponse<ContentKitRenderOutput, Error>>;
3694
+ /**
3695
+ * No description
3696
+ *
3697
+ * @tags integrations
3698
+ * @name GetIntegrationInstallationById
3699
+ * @summary Get a specific integration's installation by its ID
3700
+ * @request GET:/integrations/{integrationName}/installations/{installationId}
3701
+ * @secure
3702
+ */
3703
+ getIntegrationInstallationById: (integrationName: string, installationId: string, params?: RequestParams) => Promise<HttpResponse<IntegrationInstallation, Error | {
3704
+ error: {
3705
+ code: 404;
3706
+ message: string;
3707
+ };
3708
+ }>>;
3544
3709
  /**
3545
3710
  * No description
3546
3711
  *
@@ -3633,11 +3798,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
3633
3798
  };
3634
3799
  }>>;
3635
3800
  /**
3636
- * No description
3801
+ * @description Update all entities for an integration installation. Entities will be created and updated, missing entities will be deleted.
3637
3802
  *
3638
3803
  * @tags integrations
3639
3804
  * @name SyncIntegrationEntities
3640
- * @summary Update all entities for an integration installation. Entities will be created and updated, missing entities will be deleted.
3805
+ * @summary Update all entities for an integration installation.
3641
3806
  * @request POST:/integrations/{integrationName}/installations/{installationId}/entities
3642
3807
  * @secure
3643
3808
  */
@@ -4252,6 +4417,43 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
4252
4417
  * @secure
4253
4418
  */
4254
4419
  deleteEnvironment: (organizationId: string, environmentName: string, params?: RequestParams) => Promise<HttpResponse<void, Error>>;
4420
+ /**
4421
+ * No description
4422
+ *
4423
+ * @tags organizations
4424
+ * @name StartRecording
4425
+ * @summary Start a recording
4426
+ * @request POST:/orgs/{organizationId}/recordings
4427
+ * @secure
4428
+ */
4429
+ startRecording: (organizationId: string, data: {
4430
+ space: string;
4431
+ context: RecordingContext;
4432
+ }, params?: RequestParams) => Promise<HttpResponse<Recording, Error>>;
4433
+ /**
4434
+ * No description
4435
+ *
4436
+ * @tags organizations
4437
+ * @name AddEventsToRecording
4438
+ * @summary Add events to a running recording
4439
+ * @request POST:/orgs/{organizationId}/recordings/{recordingId}/events
4440
+ * @secure
4441
+ */
4442
+ addEventsToRecording: (organizationId: string, recordingId: string, data: {
4443
+ events: RecordingEvent[];
4444
+ }, params?: RequestParams) => Promise<HttpResponse<void, Error>>;
4445
+ /**
4446
+ * No description
4447
+ *
4448
+ * @tags organizations
4449
+ * @name StopRecording
4450
+ * @summary Stop a recording
4451
+ * @request POST:/orgs/{organizationId}/recordings/{recordingId}/stop
4452
+ * @secure
4453
+ */
4454
+ stopRecording: (organizationId: string, recordingId: string, params?: RequestParams) => Promise<HttpResponse<{
4455
+ url: string;
4456
+ }, Error>>;
4255
4457
  };
4256
4458
  internal: {
4257
4459
  /**
package/dist/index.cjs CHANGED
@@ -49,6 +49,7 @@ __export(src_exports, {
49
49
  OrganizationType: () => OrganizationType,
50
50
  OrganizationUseCase: () => OrganizationUseCase,
51
51
  PurgeCDNCacheContextType: () => PurgeCDNCacheContextType,
52
+ RecordingContext: () => RecordingContext,
52
53
  SpaceRelationType: () => SpaceRelationType,
53
54
  SpaceType: () => SpaceType,
54
55
  TeamMemberRole: () => TeamMemberRole
@@ -137,6 +138,12 @@ var TeamMemberRole = /* @__PURE__ */ ((TeamMemberRole2) => {
137
138
  TeamMemberRole2["Participant"] = "participant";
138
139
  return TeamMemberRole2;
139
140
  })(TeamMemberRole || {});
141
+ var RecordingContext = /* @__PURE__ */ ((RecordingContext2) => {
142
+ RecordingContext2["Meeting"] = "meeting";
143
+ RecordingContext2["Conversation"] = "conversation";
144
+ RecordingContext2["Walkthrough"] = "walkthrough";
145
+ return RecordingContext2;
146
+ })(RecordingContext || {});
140
147
  var ChangeRequestStatus = /* @__PURE__ */ ((ChangeRequestStatus2) => {
141
148
  ChangeRequestStatus2["Draft"] = "draft";
142
149
  ChangeRequestStatus2["Open"] = "open";
@@ -170,6 +177,7 @@ var IntegrationScope = /* @__PURE__ */ ((IntegrationScope2) => {
170
177
  IntegrationScope2["SpaceMetadataWrite"] = "space:metadata:write";
171
178
  IntegrationScope2["SpaceScriptInject"] = "space:script:inject";
172
179
  IntegrationScope2["SpaceScriptCookies"] = "space:script:cookies";
180
+ IntegrationScope2["SpaceGitSync"] = "space:git:sync";
173
181
  return IntegrationScope2;
174
182
  })(IntegrationScope || {});
175
183
  var IntegrationInstallationSpaceSelection = /* @__PURE__ */ ((IntegrationInstallationSpaceSelection2) => {
@@ -563,6 +571,13 @@ var Api = class extends HttpClient {
563
571
  type: "application/json" /* Json */,
564
572
  ...params
565
573
  }),
574
+ getSpaceGitInfo: (spaceId, params = {}) => this.request({
575
+ path: `/spaces/${spaceId}/git/info`,
576
+ method: "GET",
577
+ secure: true,
578
+ format: "json",
579
+ ...params
580
+ }),
566
581
  getContentAnalyticsForSpaceById: (spaceId, params = {}) => this.request({
567
582
  path: `/spaces/${spaceId}/insights/content`,
568
583
  method: "GET",
@@ -1228,6 +1243,13 @@ var Api = class extends HttpClient {
1228
1243
  format: "json",
1229
1244
  ...params
1230
1245
  }),
1246
+ getIntegrationInstallationById: (integrationName, installationId, params = {}) => this.request({
1247
+ path: `/integrations/${integrationName}/installations/${installationId}`,
1248
+ method: "GET",
1249
+ secure: true,
1250
+ format: "json",
1251
+ ...params
1252
+ }),
1231
1253
  updateIntegrationInstallation: (integrationName, installationId, data, params = {}) => this.request({
1232
1254
  path: `/integrations/${integrationName}/installations/${installationId}`,
1233
1255
  method: "PATCH",
@@ -1650,6 +1672,30 @@ var Api = class extends HttpClient {
1650
1672
  method: "DELETE",
1651
1673
  secure: true,
1652
1674
  ...params
1675
+ }),
1676
+ startRecording: (organizationId, data, params = {}) => this.request({
1677
+ path: `/orgs/${organizationId}/recordings`,
1678
+ method: "POST",
1679
+ body: data,
1680
+ secure: true,
1681
+ type: "application/json" /* Json */,
1682
+ format: "json",
1683
+ ...params
1684
+ }),
1685
+ addEventsToRecording: (organizationId, recordingId, data, params = {}) => this.request({
1686
+ path: `/orgs/${organizationId}/recordings/${recordingId}/events`,
1687
+ method: "POST",
1688
+ body: data,
1689
+ secure: true,
1690
+ type: "application/json" /* Json */,
1691
+ ...params
1692
+ }),
1693
+ stopRecording: (organizationId, recordingId, params = {}) => this.request({
1694
+ path: `/orgs/${organizationId}/recordings/${recordingId}/stop`,
1695
+ method: "POST",
1696
+ secure: true,
1697
+ format: "json",
1698
+ ...params
1653
1699
  })
1654
1700
  };
1655
1701
  this.internal = {
@@ -1764,6 +1810,7 @@ var GitBookAPI = class extends Api {
1764
1810
  OrganizationType,
1765
1811
  OrganizationUseCase,
1766
1812
  PurgeCDNCacheContextType,
1813
+ RecordingContext,
1767
1814
  SpaceRelationType,
1768
1815
  SpaceType,
1769
1816
  TeamMemberRole
package/dist/index.js CHANGED
@@ -80,6 +80,12 @@ var TeamMemberRole = /* @__PURE__ */ ((TeamMemberRole2) => {
80
80
  TeamMemberRole2["Participant"] = "participant";
81
81
  return TeamMemberRole2;
82
82
  })(TeamMemberRole || {});
83
+ var RecordingContext = /* @__PURE__ */ ((RecordingContext2) => {
84
+ RecordingContext2["Meeting"] = "meeting";
85
+ RecordingContext2["Conversation"] = "conversation";
86
+ RecordingContext2["Walkthrough"] = "walkthrough";
87
+ return RecordingContext2;
88
+ })(RecordingContext || {});
83
89
  var ChangeRequestStatus = /* @__PURE__ */ ((ChangeRequestStatus2) => {
84
90
  ChangeRequestStatus2["Draft"] = "draft";
85
91
  ChangeRequestStatus2["Open"] = "open";
@@ -113,6 +119,7 @@ var IntegrationScope = /* @__PURE__ */ ((IntegrationScope2) => {
113
119
  IntegrationScope2["SpaceMetadataWrite"] = "space:metadata:write";
114
120
  IntegrationScope2["SpaceScriptInject"] = "space:script:inject";
115
121
  IntegrationScope2["SpaceScriptCookies"] = "space:script:cookies";
122
+ IntegrationScope2["SpaceGitSync"] = "space:git:sync";
116
123
  return IntegrationScope2;
117
124
  })(IntegrationScope || {});
118
125
  var IntegrationInstallationSpaceSelection = /* @__PURE__ */ ((IntegrationInstallationSpaceSelection2) => {
@@ -506,6 +513,13 @@ var Api = class extends HttpClient {
506
513
  type: "application/json" /* Json */,
507
514
  ...params
508
515
  }),
516
+ getSpaceGitInfo: (spaceId, params = {}) => this.request({
517
+ path: `/spaces/${spaceId}/git/info`,
518
+ method: "GET",
519
+ secure: true,
520
+ format: "json",
521
+ ...params
522
+ }),
509
523
  getContentAnalyticsForSpaceById: (spaceId, params = {}) => this.request({
510
524
  path: `/spaces/${spaceId}/insights/content`,
511
525
  method: "GET",
@@ -1171,6 +1185,13 @@ var Api = class extends HttpClient {
1171
1185
  format: "json",
1172
1186
  ...params
1173
1187
  }),
1188
+ getIntegrationInstallationById: (integrationName, installationId, params = {}) => this.request({
1189
+ path: `/integrations/${integrationName}/installations/${installationId}`,
1190
+ method: "GET",
1191
+ secure: true,
1192
+ format: "json",
1193
+ ...params
1194
+ }),
1174
1195
  updateIntegrationInstallation: (integrationName, installationId, data, params = {}) => this.request({
1175
1196
  path: `/integrations/${integrationName}/installations/${installationId}`,
1176
1197
  method: "PATCH",
@@ -1593,6 +1614,30 @@ var Api = class extends HttpClient {
1593
1614
  method: "DELETE",
1594
1615
  secure: true,
1595
1616
  ...params
1617
+ }),
1618
+ startRecording: (organizationId, data, params = {}) => this.request({
1619
+ path: `/orgs/${organizationId}/recordings`,
1620
+ method: "POST",
1621
+ body: data,
1622
+ secure: true,
1623
+ type: "application/json" /* Json */,
1624
+ format: "json",
1625
+ ...params
1626
+ }),
1627
+ addEventsToRecording: (organizationId, recordingId, data, params = {}) => this.request({
1628
+ path: `/orgs/${organizationId}/recordings/${recordingId}/events`,
1629
+ method: "POST",
1630
+ body: data,
1631
+ secure: true,
1632
+ type: "application/json" /* Json */,
1633
+ ...params
1634
+ }),
1635
+ stopRecording: (organizationId, recordingId, params = {}) => this.request({
1636
+ path: `/orgs/${organizationId}/recordings/${recordingId}/stop`,
1637
+ method: "POST",
1638
+ secure: true,
1639
+ format: "json",
1640
+ ...params
1596
1641
  })
1597
1642
  };
1598
1643
  this.internal = {
@@ -1706,6 +1751,7 @@ export {
1706
1751
  OrganizationType,
1707
1752
  OrganizationUseCase,
1708
1753
  PurgeCDNCacheContextType,
1754
+ RecordingContext,
1709
1755
  SpaceRelationType,
1710
1756
  SpaceType,
1711
1757
  TeamMemberRole
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "main": "./dist/index.cjs",
5
5
  "module": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
7
- "version": "0.4.0",
7
+ "version": "0.5.0",
8
8
  "sideEffects": false,
9
9
  "files": [
10
10
  "spec/**",