@gitbook/api 0.38.0 → 0.39.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 +98 -8
- package/dist/index.cjs +24 -1
- package/dist/index.js +23 -1
- package/package.json +1 -1
- package/spec/openapi.json +315 -20
- package/spec/openapi.yaml +184 -14
package/dist/client.d.ts
CHANGED
|
@@ -1076,7 +1076,6 @@ export interface ContentRefSnippet {
|
|
|
1076
1076
|
export interface ContentRefSyncedBlock {
|
|
1077
1077
|
kind: 'synced-block';
|
|
1078
1078
|
syncedBlock: string;
|
|
1079
|
-
organization: string;
|
|
1080
1079
|
}
|
|
1081
1080
|
/** An absolute reference to content in GitBook. */
|
|
1082
1081
|
export declare type ContentLocation = ContentLocationFile | ContentLocationURL | ContentLocationPage | ContentLocationUser | ContentLocationCollection | ContentLocationSpace | ContentLocationSnippet | ContentLocationSyncedBlock;
|
|
@@ -1089,6 +1088,7 @@ export interface ContentLocationFile {
|
|
|
1089
1088
|
organization: Organization;
|
|
1090
1089
|
space: Space;
|
|
1091
1090
|
changeRequest?: ChangeRequest;
|
|
1091
|
+
revision?: Revision;
|
|
1092
1092
|
file: RevisionFile;
|
|
1093
1093
|
}
|
|
1094
1094
|
export interface ContentLocationPage {
|
|
@@ -1097,7 +1097,11 @@ export interface ContentLocationPage {
|
|
|
1097
1097
|
page: RevisionPage;
|
|
1098
1098
|
space: Space;
|
|
1099
1099
|
changeRequest?: ChangeRequest;
|
|
1100
|
+
revision?: Revision;
|
|
1101
|
+
/** The anchor within the page. */
|
|
1100
1102
|
anchor?: string;
|
|
1103
|
+
/** The node id within the page. */
|
|
1104
|
+
node?: string;
|
|
1101
1105
|
}
|
|
1102
1106
|
export interface ContentLocationUser {
|
|
1103
1107
|
kind: 'user';
|
|
@@ -1998,8 +2002,6 @@ export interface SyncedBlock {
|
|
|
1998
2002
|
/** URL of the synced block in the API */
|
|
1999
2003
|
location: URL;
|
|
2000
2004
|
};
|
|
2001
|
-
document: JSONDocument;
|
|
2002
|
-
files?: RevisionFile[];
|
|
2003
2005
|
}
|
|
2004
2006
|
/** Content audit relation */
|
|
2005
2007
|
export interface ContentAuditRelation {
|
|
@@ -2548,6 +2550,7 @@ export declare enum IntegrationScope {
|
|
|
2548
2550
|
SpaceScriptCookies = "space:script:cookies",
|
|
2549
2551
|
SpaceGitSync = "space:git:sync",
|
|
2550
2552
|
SpaceVisitorAuth = "space:visitor:auth",
|
|
2553
|
+
SiteScriptInject = "site:script:inject",
|
|
2551
2554
|
SiteVisitorAuth = "site:visitor:auth"
|
|
2552
2555
|
}
|
|
2553
2556
|
/** A search string to filter integrations by name */
|
|
@@ -2621,6 +2624,11 @@ export declare enum IntegrationInstallationSpaceSelection {
|
|
|
2621
2624
|
All = "all",
|
|
2622
2625
|
Selected = "selected"
|
|
2623
2626
|
}
|
|
2627
|
+
/** Describe whether all sites have been selected or there's a selection involved */
|
|
2628
|
+
export declare enum IntegrationInstallationSiteSelection {
|
|
2629
|
+
All = "all",
|
|
2630
|
+
Selected = "selected"
|
|
2631
|
+
}
|
|
2624
2632
|
export declare enum IntegrationCategory {
|
|
2625
2633
|
Analytics = "analytics",
|
|
2626
2634
|
Captures = "captures",
|
|
@@ -2633,6 +2641,7 @@ export declare enum IntegrationCategory {
|
|
|
2633
2641
|
export interface IntegrationConfigurations {
|
|
2634
2642
|
account?: IntegrationConfiguration;
|
|
2635
2643
|
space?: IntegrationConfiguration;
|
|
2644
|
+
site?: IntegrationConfiguration;
|
|
2636
2645
|
}
|
|
2637
2646
|
export declare type IntegrationConfiguration = IntegrationConfigurationSchema | IntegrationConfigurationComponent;
|
|
2638
2647
|
/** Schema for a configuration */
|
|
@@ -2777,6 +2786,8 @@ export interface IntegrationEnvironment {
|
|
|
2777
2786
|
installation?: IntegrationInstallation;
|
|
2778
2787
|
/** Installation of an integration at a space level */
|
|
2779
2788
|
spaceInstallation?: IntegrationSpaceInstallation;
|
|
2789
|
+
/** Installation of an integration at a site level */
|
|
2790
|
+
siteInstallation?: IntegrationSiteInstallation;
|
|
2780
2791
|
/** Secrets stored on the integration and passed at runtime. */
|
|
2781
2792
|
secrets: IntegrationSecrets;
|
|
2782
2793
|
/**
|
|
@@ -2791,6 +2802,8 @@ export interface IntegrationEnvironment {
|
|
|
2791
2802
|
installation?: string;
|
|
2792
2803
|
/** Secret that can be used to verify the authenticity of incoming HTTP requests to the space installation. */
|
|
2793
2804
|
spaceInstallation?: string;
|
|
2805
|
+
/** Secret that can be used to verify the authenticity of incoming HTTP requests to the site installation. */
|
|
2806
|
+
siteInstallation?: string;
|
|
2794
2807
|
};
|
|
2795
2808
|
/** URL of the HTTP API */
|
|
2796
2809
|
apiEndpoint: string;
|
|
@@ -2972,7 +2985,23 @@ export declare type EntityPropertySchema = {
|
|
|
2972
2985
|
};
|
|
2973
2986
|
});
|
|
2974
2987
|
/** Any event that can be received from GitBook. */
|
|
2975
|
-
export declare type Event = InstallationSetupEvent | SpaceInstallationSetupEvent | SpaceInstallationDeletedEvent |
|
|
2988
|
+
export declare type Event = InstallationSetupEvent | SpaceInstallationSetupEvent | SpaceInstallationDeletedEvent | (SiteEvent & {
|
|
2989
|
+
type: 'site_installation_setup';
|
|
2990
|
+
status: IntegrationInstallationStatus;
|
|
2991
|
+
/** The state of the site installation before it was updated. */
|
|
2992
|
+
previous?: {
|
|
2993
|
+
status: IntegrationInstallationStatus;
|
|
2994
|
+
/** The previous configuration of the site installation. */
|
|
2995
|
+
configuration?: object;
|
|
2996
|
+
};
|
|
2997
|
+
}) | (SiteEvent & {
|
|
2998
|
+
type: 'site_installation_deleted';
|
|
2999
|
+
/** The state of the site installation before it was deleted. */
|
|
3000
|
+
previous: {
|
|
3001
|
+
/** The previous configuration of the site installation. */
|
|
3002
|
+
configuration?: object;
|
|
3003
|
+
};
|
|
3004
|
+
}) | SiteViewEvent | SpaceContentUpdatedEvent | SpaceGitSyncCompletedEvent | SpaceGitSyncStartedEvent | SpaceVisibilityUpdatedEvent | FetchEvent | FetchPublishedScriptEvent | FetchVisitorAuthenticationEvent | UIRenderEvent;
|
|
2976
3005
|
/** Common properties for all events. */
|
|
2977
3006
|
export interface BaseEvent {
|
|
2978
3007
|
/** Unique identifier for the event. */
|
|
@@ -2990,6 +3019,11 @@ export declare type SpaceEvent = InstallationEvent & {
|
|
|
2990
3019
|
/** ID of the space */
|
|
2991
3020
|
spaceId: string;
|
|
2992
3021
|
};
|
|
3022
|
+
/** Common properties for all events related to a specific site. */
|
|
3023
|
+
export declare type SiteEvent = InstallationEvent & {
|
|
3024
|
+
/** ID of the site */
|
|
3025
|
+
siteId: string;
|
|
3026
|
+
};
|
|
2993
3027
|
/** Event received when integration has been installed or updated. */
|
|
2994
3028
|
export declare type InstallationSetupEvent = InstallationEvent & {
|
|
2995
3029
|
type: 'installation_setup';
|
|
@@ -3021,8 +3055,9 @@ export declare type SpaceInstallationDeletedEvent = SpaceEvent & {
|
|
|
3021
3055
|
configuration?: object;
|
|
3022
3056
|
};
|
|
3023
3057
|
};
|
|
3058
|
+
export declare type SpaceViewEvent = SiteViewEvent;
|
|
3024
3059
|
/** Event received when a page has been visited. */
|
|
3025
|
-
export declare type
|
|
3060
|
+
export declare type SiteViewEvent = SpaceEvent & {
|
|
3026
3061
|
type: 'space_view';
|
|
3027
3062
|
/** Unique identifier of the visited page. */
|
|
3028
3063
|
pageId?: string;
|
|
@@ -3100,6 +3135,8 @@ export interface FetchRequest {
|
|
|
3100
3135
|
export declare type FetchEvent = BaseEvent & {
|
|
3101
3136
|
/** The space ID, if requests are specific to a single space */
|
|
3102
3137
|
spaceId?: string;
|
|
3138
|
+
/** The site ID, if requests are specific to a single site */
|
|
3139
|
+
siteId?: string;
|
|
3103
3140
|
/** The installation ID, if requests are specific to a single installation */
|
|
3104
3141
|
installationId?: string;
|
|
3105
3142
|
auth?: {
|
|
@@ -3110,16 +3147,16 @@ export declare type FetchEvent = BaseEvent & {
|
|
|
3110
3147
|
request: FetchRequest;
|
|
3111
3148
|
};
|
|
3112
3149
|
/** Common properties for all events related to fetching a published script from an installation */
|
|
3113
|
-
export declare type FetchPublishedScriptEvent = SpaceEvent & {
|
|
3150
|
+
export declare type FetchPublishedScriptEvent = (SpaceEvent | SiteEvent) & {
|
|
3114
3151
|
type: 'fetch_published_script';
|
|
3115
3152
|
};
|
|
3116
3153
|
/** Common properties for all events related to visitor authentication from an installation */
|
|
3117
|
-
export declare type FetchVisitorAuthenticationEvent = SpaceEvent & {
|
|
3154
|
+
export declare type FetchVisitorAuthenticationEvent = (SpaceEvent | SiteEvent) & {
|
|
3118
3155
|
type: 'fetch_visitor_authentication';
|
|
3119
3156
|
location?: string;
|
|
3120
3157
|
};
|
|
3121
3158
|
/** Event generated when rendering a UI */
|
|
3122
|
-
export declare type UIRenderEvent = (SpaceEvent | InstallationEvent) & {
|
|
3159
|
+
export declare type UIRenderEvent = (SpaceEvent | SiteEvent | InstallationEvent) & {
|
|
3123
3160
|
auth?: {
|
|
3124
3161
|
/** The user's ID. */
|
|
3125
3162
|
userId: string;
|
|
@@ -5235,6 +5272,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
5235
5272
|
updateChangeRequestById: (spaceId: string, changeRequestId: string, data: {
|
|
5236
5273
|
/** Subject of the change request */
|
|
5237
5274
|
subject?: ChangeRequestSubject;
|
|
5275
|
+
status?: 'draft' | 'open' | 'archived';
|
|
5238
5276
|
}, params?: RequestParams) => Promise<HttpResponse<ChangeRequest, Error>>;
|
|
5239
5277
|
/**
|
|
5240
5278
|
* No description
|
|
@@ -8190,6 +8228,19 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
8190
8228
|
/** A new title for the Synced Block. */
|
|
8191
8229
|
title?: string;
|
|
8192
8230
|
}, params?: RequestParams) => Promise<HttpResponse<void, Error>>;
|
|
8231
|
+
/**
|
|
8232
|
+
* No description
|
|
8233
|
+
*
|
|
8234
|
+
* @tags organizations
|
|
8235
|
+
* @name GetSyncedBlockContent
|
|
8236
|
+
* @summary Get a synced block content
|
|
8237
|
+
* @request GET:/orgs/{organizationId}/synced-blocks/{syncedBlockId}/content
|
|
8238
|
+
* @secure
|
|
8239
|
+
*/
|
|
8240
|
+
getSyncedBlockContent: (organizationId: string, syncedBlockId: string, params?: RequestParams) => Promise<HttpResponse<{
|
|
8241
|
+
document: JSONDocument;
|
|
8242
|
+
files: RevisionFile[];
|
|
8243
|
+
}, Error>>;
|
|
8193
8244
|
/**
|
|
8194
8245
|
* No description
|
|
8195
8246
|
*
|
|
@@ -8649,6 +8700,43 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
8649
8700
|
message: string;
|
|
8650
8701
|
};
|
|
8651
8702
|
}>>;
|
|
8703
|
+
/**
|
|
8704
|
+
* No description
|
|
8705
|
+
*
|
|
8706
|
+
* @tags permissions, sites
|
|
8707
|
+
* @name ListPermissionsAggregateInSite
|
|
8708
|
+
* @summary List permissions for all users of a site.
|
|
8709
|
+
* @request GET:/orgs/{organizationId}/sites/{siteId}/permissions/aggregate
|
|
8710
|
+
* @secure
|
|
8711
|
+
*/
|
|
8712
|
+
listPermissionsAggregateInSite: (organizationId: string, siteId: string, query?: {
|
|
8713
|
+
/** Identifier of the page results to fetch. */
|
|
8714
|
+
page?: string;
|
|
8715
|
+
/**
|
|
8716
|
+
* The number of results per page
|
|
8717
|
+
* @min 0
|
|
8718
|
+
* @max 1000
|
|
8719
|
+
*/
|
|
8720
|
+
limit?: number;
|
|
8721
|
+
/** If defined, only members with this role will be returned. */
|
|
8722
|
+
role?: MemberRole;
|
|
8723
|
+
}, params?: RequestParams) => Promise<HttpResponse<List & {
|
|
8724
|
+
items: {
|
|
8725
|
+
/**
|
|
8726
|
+
* "The role of a member in an organization.
|
|
8727
|
+
* "admin": Can administrate the content: create, delete spaces, ...
|
|
8728
|
+
* "create": Can create content.
|
|
8729
|
+
* "review": Can review content.
|
|
8730
|
+
* "edit": Can edit the content (live or change requests).
|
|
8731
|
+
* "comment": Can access the content and its discussions.
|
|
8732
|
+
* "read": Can access the content, but cannot update it in any way.
|
|
8733
|
+
*/
|
|
8734
|
+
permission: MemberRole;
|
|
8735
|
+
user: User;
|
|
8736
|
+
/** The content or organization that enforced this permission level. */
|
|
8737
|
+
origin: SpacePointer;
|
|
8738
|
+
}[];
|
|
8739
|
+
}, Error>>;
|
|
8652
8740
|
/**
|
|
8653
8741
|
* No description
|
|
8654
8742
|
*
|
|
@@ -8865,7 +8953,9 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
8865
8953
|
* @secure
|
|
8866
8954
|
*/
|
|
8867
8955
|
generateHiveAccessToken: (data?: {
|
|
8956
|
+
/** @deprecated */
|
|
8868
8957
|
spaces?: string[];
|
|
8958
|
+
contentIds?: string[];
|
|
8869
8959
|
}, params?: RequestParams) => Promise<HttpResponse<HiveAccessToken, Error>>;
|
|
8870
8960
|
};
|
|
8871
8961
|
urls: {
|
package/dist/index.cjs
CHANGED
|
@@ -212,6 +212,7 @@ __export(src_exports, {
|
|
|
212
212
|
HttpClient: () => HttpClient,
|
|
213
213
|
ImportContentSource: () => ImportContentSource,
|
|
214
214
|
IntegrationCategory: () => IntegrationCategory,
|
|
215
|
+
IntegrationInstallationSiteSelection: () => IntegrationInstallationSiteSelection,
|
|
215
216
|
IntegrationInstallationSpaceSelection: () => IntegrationInstallationSpaceSelection,
|
|
216
217
|
IntegrationInstallationStatus: () => IntegrationInstallationStatus,
|
|
217
218
|
IntegrationScope: () => IntegrationScope,
|
|
@@ -238,7 +239,7 @@ module.exports = __toCommonJS(src_exports);
|
|
|
238
239
|
|
|
239
240
|
// package.json
|
|
240
241
|
var name = "@gitbook/api";
|
|
241
|
-
var version = "0.
|
|
242
|
+
var version = "0.39.0";
|
|
242
243
|
|
|
243
244
|
// src/client.ts
|
|
244
245
|
var import_event_iterator = __toESM(require_node(), 1);
|
|
@@ -514,6 +515,7 @@ var IntegrationScope = /* @__PURE__ */ ((IntegrationScope2) => {
|
|
|
514
515
|
IntegrationScope2["SpaceScriptCookies"] = "space:script:cookies";
|
|
515
516
|
IntegrationScope2["SpaceGitSync"] = "space:git:sync";
|
|
516
517
|
IntegrationScope2["SpaceVisitorAuth"] = "space:visitor:auth";
|
|
518
|
+
IntegrationScope2["SiteScriptInject"] = "site:script:inject";
|
|
517
519
|
IntegrationScope2["SiteVisitorAuth"] = "site:visitor:auth";
|
|
518
520
|
return IntegrationScope2;
|
|
519
521
|
})(IntegrationScope || {});
|
|
@@ -522,6 +524,11 @@ var IntegrationInstallationSpaceSelection = /* @__PURE__ */ ((IntegrationInstall
|
|
|
522
524
|
IntegrationInstallationSpaceSelection2["Selected"] = "selected";
|
|
523
525
|
return IntegrationInstallationSpaceSelection2;
|
|
524
526
|
})(IntegrationInstallationSpaceSelection || {});
|
|
527
|
+
var IntegrationInstallationSiteSelection = /* @__PURE__ */ ((IntegrationInstallationSiteSelection2) => {
|
|
528
|
+
IntegrationInstallationSiteSelection2["All"] = "all";
|
|
529
|
+
IntegrationInstallationSiteSelection2["Selected"] = "selected";
|
|
530
|
+
return IntegrationInstallationSiteSelection2;
|
|
531
|
+
})(IntegrationInstallationSiteSelection || {});
|
|
525
532
|
var IntegrationCategory = /* @__PURE__ */ ((IntegrationCategory2) => {
|
|
526
533
|
IntegrationCategory2["Analytics"] = "analytics";
|
|
527
534
|
IntegrationCategory2["Captures"] = "captures";
|
|
@@ -2708,6 +2715,13 @@ var Api = class extends HttpClient {
|
|
|
2708
2715
|
type: "application/json" /* Json */,
|
|
2709
2716
|
...params
|
|
2710
2717
|
}),
|
|
2718
|
+
getSyncedBlockContent: (organizationId, syncedBlockId, params = {}) => this.request({
|
|
2719
|
+
path: `/orgs/${organizationId}/synced-blocks/${syncedBlockId}/content`,
|
|
2720
|
+
method: "GET",
|
|
2721
|
+
secure: true,
|
|
2722
|
+
format: "json",
|
|
2723
|
+
...params
|
|
2724
|
+
}),
|
|
2711
2725
|
getSyncedBlockBacklinks: (organizationId, syncedBlockId, query, params = {}) => this.request({
|
|
2712
2726
|
path: `/orgs/${organizationId}/synced-blocks/${syncedBlockId}/backlinks`,
|
|
2713
2727
|
method: "GET",
|
|
@@ -2929,6 +2943,14 @@ var Api = class extends HttpClient {
|
|
|
2929
2943
|
format: "json",
|
|
2930
2944
|
...params
|
|
2931
2945
|
}),
|
|
2946
|
+
listPermissionsAggregateInSite: (organizationId, siteId, query, params = {}) => this.request({
|
|
2947
|
+
path: `/orgs/${organizationId}/sites/${siteId}/permissions/aggregate`,
|
|
2948
|
+
method: "GET",
|
|
2949
|
+
query,
|
|
2950
|
+
secure: true,
|
|
2951
|
+
format: "json",
|
|
2952
|
+
...params
|
|
2953
|
+
}),
|
|
2932
2954
|
listSeatsInOrganizationById: (organizationId, params = {}) => this.request({
|
|
2933
2955
|
path: `/orgs/${organizationId}/seats`,
|
|
2934
2956
|
method: "GET",
|
|
@@ -3173,6 +3195,7 @@ var GitBookAPI = class extends Api {
|
|
|
3173
3195
|
HttpClient,
|
|
3174
3196
|
ImportContentSource,
|
|
3175
3197
|
IntegrationCategory,
|
|
3198
|
+
IntegrationInstallationSiteSelection,
|
|
3176
3199
|
IntegrationInstallationSpaceSelection,
|
|
3177
3200
|
IntegrationInstallationStatus,
|
|
3178
3201
|
IntegrationScope,
|
package/dist/index.js
CHANGED
|
@@ -172,7 +172,7 @@ var require_node = __commonJS({
|
|
|
172
172
|
|
|
173
173
|
// package.json
|
|
174
174
|
var name = "@gitbook/api";
|
|
175
|
-
var version = "0.
|
|
175
|
+
var version = "0.39.0";
|
|
176
176
|
|
|
177
177
|
// src/client.ts
|
|
178
178
|
var import_event_iterator = __toESM(require_node(), 1);
|
|
@@ -448,6 +448,7 @@ var IntegrationScope = /* @__PURE__ */ ((IntegrationScope2) => {
|
|
|
448
448
|
IntegrationScope2["SpaceScriptCookies"] = "space:script:cookies";
|
|
449
449
|
IntegrationScope2["SpaceGitSync"] = "space:git:sync";
|
|
450
450
|
IntegrationScope2["SpaceVisitorAuth"] = "space:visitor:auth";
|
|
451
|
+
IntegrationScope2["SiteScriptInject"] = "site:script:inject";
|
|
451
452
|
IntegrationScope2["SiteVisitorAuth"] = "site:visitor:auth";
|
|
452
453
|
return IntegrationScope2;
|
|
453
454
|
})(IntegrationScope || {});
|
|
@@ -456,6 +457,11 @@ var IntegrationInstallationSpaceSelection = /* @__PURE__ */ ((IntegrationInstall
|
|
|
456
457
|
IntegrationInstallationSpaceSelection2["Selected"] = "selected";
|
|
457
458
|
return IntegrationInstallationSpaceSelection2;
|
|
458
459
|
})(IntegrationInstallationSpaceSelection || {});
|
|
460
|
+
var IntegrationInstallationSiteSelection = /* @__PURE__ */ ((IntegrationInstallationSiteSelection2) => {
|
|
461
|
+
IntegrationInstallationSiteSelection2["All"] = "all";
|
|
462
|
+
IntegrationInstallationSiteSelection2["Selected"] = "selected";
|
|
463
|
+
return IntegrationInstallationSiteSelection2;
|
|
464
|
+
})(IntegrationInstallationSiteSelection || {});
|
|
459
465
|
var IntegrationCategory = /* @__PURE__ */ ((IntegrationCategory2) => {
|
|
460
466
|
IntegrationCategory2["Analytics"] = "analytics";
|
|
461
467
|
IntegrationCategory2["Captures"] = "captures";
|
|
@@ -2642,6 +2648,13 @@ var Api = class extends HttpClient {
|
|
|
2642
2648
|
type: "application/json" /* Json */,
|
|
2643
2649
|
...params
|
|
2644
2650
|
}),
|
|
2651
|
+
getSyncedBlockContent: (organizationId, syncedBlockId, params = {}) => this.request({
|
|
2652
|
+
path: `/orgs/${organizationId}/synced-blocks/${syncedBlockId}/content`,
|
|
2653
|
+
method: "GET",
|
|
2654
|
+
secure: true,
|
|
2655
|
+
format: "json",
|
|
2656
|
+
...params
|
|
2657
|
+
}),
|
|
2645
2658
|
getSyncedBlockBacklinks: (organizationId, syncedBlockId, query, params = {}) => this.request({
|
|
2646
2659
|
path: `/orgs/${organizationId}/synced-blocks/${syncedBlockId}/backlinks`,
|
|
2647
2660
|
method: "GET",
|
|
@@ -2863,6 +2876,14 @@ var Api = class extends HttpClient {
|
|
|
2863
2876
|
format: "json",
|
|
2864
2877
|
...params
|
|
2865
2878
|
}),
|
|
2879
|
+
listPermissionsAggregateInSite: (organizationId, siteId, query, params = {}) => this.request({
|
|
2880
|
+
path: `/orgs/${organizationId}/sites/${siteId}/permissions/aggregate`,
|
|
2881
|
+
method: "GET",
|
|
2882
|
+
query,
|
|
2883
|
+
secure: true,
|
|
2884
|
+
format: "json",
|
|
2885
|
+
...params
|
|
2886
|
+
}),
|
|
2866
2887
|
listSeatsInOrganizationById: (organizationId, params = {}) => this.request({
|
|
2867
2888
|
path: `/orgs/${organizationId}/seats`,
|
|
2868
2889
|
method: "GET",
|
|
@@ -3106,6 +3127,7 @@ export {
|
|
|
3106
3127
|
HttpClient,
|
|
3107
3128
|
ImportContentSource,
|
|
3108
3129
|
IntegrationCategory,
|
|
3130
|
+
IntegrationInstallationSiteSelection,
|
|
3109
3131
|
IntegrationInstallationSpaceSelection,
|
|
3110
3132
|
IntegrationInstallationStatus,
|
|
3111
3133
|
IntegrationScope,
|
package/package.json
CHANGED
package/spec/openapi.json
CHANGED
|
@@ -4706,15 +4706,11 @@
|
|
|
4706
4706
|
},
|
|
4707
4707
|
"syncedBlock": {
|
|
4708
4708
|
"type": "string"
|
|
4709
|
-
},
|
|
4710
|
-
"organization": {
|
|
4711
|
-
"type": "string"
|
|
4712
4709
|
}
|
|
4713
4710
|
},
|
|
4714
4711
|
"required": [
|
|
4715
4712
|
"kind",
|
|
4716
|
-
"syncedBlock"
|
|
4717
|
-
"organization"
|
|
4713
|
+
"syncedBlock"
|
|
4718
4714
|
]
|
|
4719
4715
|
},
|
|
4720
4716
|
"ContentLocation": {
|
|
@@ -4782,6 +4778,9 @@
|
|
|
4782
4778
|
"changeRequest": {
|
|
4783
4779
|
"$ref": "#/components/schemas/ChangeRequest"
|
|
4784
4780
|
},
|
|
4781
|
+
"revision": {
|
|
4782
|
+
"$ref": "#/components/schemas/Revision"
|
|
4783
|
+
},
|
|
4785
4784
|
"file": {
|
|
4786
4785
|
"$ref": "#/components/schemas/RevisionFile"
|
|
4787
4786
|
}
|
|
@@ -4814,7 +4813,15 @@
|
|
|
4814
4813
|
"changeRequest": {
|
|
4815
4814
|
"$ref": "#/components/schemas/ChangeRequest"
|
|
4816
4815
|
},
|
|
4816
|
+
"revision": {
|
|
4817
|
+
"$ref": "#/components/schemas/Revision"
|
|
4818
|
+
},
|
|
4817
4819
|
"anchor": {
|
|
4820
|
+
"description": "The anchor within the page.",
|
|
4821
|
+
"type": "string"
|
|
4822
|
+
},
|
|
4823
|
+
"node": {
|
|
4824
|
+
"description": "The node id within the page.",
|
|
4818
4825
|
"type": "string"
|
|
4819
4826
|
}
|
|
4820
4827
|
},
|
|
@@ -7373,15 +7380,6 @@
|
|
|
7373
7380
|
"required": [
|
|
7374
7381
|
"location"
|
|
7375
7382
|
]
|
|
7376
|
-
},
|
|
7377
|
-
"document": {
|
|
7378
|
-
"$ref": "#/components/schemas/JSONDocument"
|
|
7379
|
-
},
|
|
7380
|
-
"files": {
|
|
7381
|
-
"type": "array",
|
|
7382
|
-
"items": {
|
|
7383
|
-
"$ref": "#/components/schemas/RevisionFile"
|
|
7384
|
-
}
|
|
7385
7383
|
}
|
|
7386
7384
|
},
|
|
7387
7385
|
"required": [
|
|
@@ -7389,8 +7387,7 @@
|
|
|
7389
7387
|
"organization",
|
|
7390
7388
|
"source",
|
|
7391
7389
|
"createdAt",
|
|
7392
|
-
"urls"
|
|
7393
|
-
"document"
|
|
7390
|
+
"urls"
|
|
7394
7391
|
]
|
|
7395
7392
|
},
|
|
7396
7393
|
"ContentAuditRelation": {
|
|
@@ -8729,6 +8726,7 @@
|
|
|
8729
8726
|
"space:script:cookies",
|
|
8730
8727
|
"space:git:sync",
|
|
8731
8728
|
"space:visitor:auth",
|
|
8729
|
+
"site:script:inject",
|
|
8732
8730
|
"site:visitor:auth"
|
|
8733
8731
|
]
|
|
8734
8732
|
},
|
|
@@ -8917,6 +8915,14 @@
|
|
|
8917
8915
|
"selected"
|
|
8918
8916
|
]
|
|
8919
8917
|
},
|
|
8918
|
+
"IntegrationInstallationSiteSelection": {
|
|
8919
|
+
"type": "string",
|
|
8920
|
+
"description": "Describe whether all sites have been selected or there's a selection involved",
|
|
8921
|
+
"enum": [
|
|
8922
|
+
"all",
|
|
8923
|
+
"selected"
|
|
8924
|
+
]
|
|
8925
|
+
},
|
|
8920
8926
|
"IntegrationCategory": {
|
|
8921
8927
|
"type": "string",
|
|
8922
8928
|
"enum": [
|
|
@@ -8937,6 +8943,9 @@
|
|
|
8937
8943
|
},
|
|
8938
8944
|
"space": {
|
|
8939
8945
|
"$ref": "#/components/schemas/IntegrationConfiguration"
|
|
8946
|
+
},
|
|
8947
|
+
"site": {
|
|
8948
|
+
"$ref": "#/components/schemas/IntegrationConfiguration"
|
|
8940
8949
|
}
|
|
8941
8950
|
}
|
|
8942
8951
|
},
|
|
@@ -9306,6 +9315,9 @@
|
|
|
9306
9315
|
"spaceInstallation": {
|
|
9307
9316
|
"$ref": "#/components/schemas/IntegrationSpaceInstallation"
|
|
9308
9317
|
},
|
|
9318
|
+
"siteInstallation": {
|
|
9319
|
+
"$ref": "#/components/schemas/IntegrationSiteInstallation"
|
|
9320
|
+
},
|
|
9309
9321
|
"secrets": {
|
|
9310
9322
|
"$ref": "#/components/schemas/IntegrationSecrets"
|
|
9311
9323
|
},
|
|
@@ -9328,6 +9340,10 @@
|
|
|
9328
9340
|
"spaceInstallation": {
|
|
9329
9341
|
"type": "string",
|
|
9330
9342
|
"description": "Secret that can be used to verify the authenticity of incoming HTTP requests to the space installation."
|
|
9343
|
+
},
|
|
9344
|
+
"siteInstallation": {
|
|
9345
|
+
"type": "string",
|
|
9346
|
+
"description": "Secret that can be used to verify the authenticity of incoming HTTP requests to the site installation."
|
|
9331
9347
|
}
|
|
9332
9348
|
},
|
|
9333
9349
|
"required": [
|
|
@@ -9939,7 +9955,82 @@
|
|
|
9939
9955
|
"$ref": "#/components/schemas/SpaceInstallationDeletedEvent"
|
|
9940
9956
|
},
|
|
9941
9957
|
{
|
|
9942
|
-
"
|
|
9958
|
+
"allOf": [
|
|
9959
|
+
{
|
|
9960
|
+
"$ref": "#/components/schemas/SiteEvent"
|
|
9961
|
+
},
|
|
9962
|
+
{
|
|
9963
|
+
"type": "object",
|
|
9964
|
+
"description": "Event received when integration has been installed or updated on a site.",
|
|
9965
|
+
"properties": {
|
|
9966
|
+
"type": {
|
|
9967
|
+
"type": "string",
|
|
9968
|
+
"enum": [
|
|
9969
|
+
"site_installation_setup"
|
|
9970
|
+
]
|
|
9971
|
+
},
|
|
9972
|
+
"status": {
|
|
9973
|
+
"$ref": "#/components/schemas/IntegrationInstallationStatus"
|
|
9974
|
+
},
|
|
9975
|
+
"previous": {
|
|
9976
|
+
"type": "object",
|
|
9977
|
+
"description": "The state of the site installation before it was updated.",
|
|
9978
|
+
"properties": {
|
|
9979
|
+
"status": {
|
|
9980
|
+
"$ref": "#/components/schemas/IntegrationInstallationStatus"
|
|
9981
|
+
},
|
|
9982
|
+
"configuration": {
|
|
9983
|
+
"type": "object",
|
|
9984
|
+
"description": "The previous configuration of the site installation."
|
|
9985
|
+
}
|
|
9986
|
+
},
|
|
9987
|
+
"required": [
|
|
9988
|
+
"status"
|
|
9989
|
+
]
|
|
9990
|
+
}
|
|
9991
|
+
},
|
|
9992
|
+
"required": [
|
|
9993
|
+
"type",
|
|
9994
|
+
"status"
|
|
9995
|
+
]
|
|
9996
|
+
}
|
|
9997
|
+
]
|
|
9998
|
+
},
|
|
9999
|
+
{
|
|
10000
|
+
"allOf": [
|
|
10001
|
+
{
|
|
10002
|
+
"$ref": "#/components/schemas/SiteEvent"
|
|
10003
|
+
},
|
|
10004
|
+
{
|
|
10005
|
+
"type": "object",
|
|
10006
|
+
"description": "Event received when integration has been uninstalled from a site.",
|
|
10007
|
+
"properties": {
|
|
10008
|
+
"type": {
|
|
10009
|
+
"type": "string",
|
|
10010
|
+
"enum": [
|
|
10011
|
+
"site_installation_deleted"
|
|
10012
|
+
]
|
|
10013
|
+
},
|
|
10014
|
+
"previous": {
|
|
10015
|
+
"type": "object",
|
|
10016
|
+
"description": "The state of the site installation before it was deleted.",
|
|
10017
|
+
"properties": {
|
|
10018
|
+
"configuration": {
|
|
10019
|
+
"type": "object",
|
|
10020
|
+
"description": "The previous configuration of the site installation."
|
|
10021
|
+
}
|
|
10022
|
+
}
|
|
10023
|
+
}
|
|
10024
|
+
},
|
|
10025
|
+
"required": [
|
|
10026
|
+
"type",
|
|
10027
|
+
"previous"
|
|
10028
|
+
]
|
|
10029
|
+
}
|
|
10030
|
+
]
|
|
10031
|
+
},
|
|
10032
|
+
{
|
|
10033
|
+
"$ref": "#/components/schemas/SiteViewEvent"
|
|
9943
10034
|
},
|
|
9944
10035
|
{
|
|
9945
10036
|
"$ref": "#/components/schemas/SpaceContentUpdatedEvent"
|
|
@@ -10028,6 +10119,26 @@
|
|
|
10028
10119
|
}
|
|
10029
10120
|
]
|
|
10030
10121
|
},
|
|
10122
|
+
"SiteEvent": {
|
|
10123
|
+
"allOf": [
|
|
10124
|
+
{
|
|
10125
|
+
"$ref": "#/components/schemas/InstallationEvent"
|
|
10126
|
+
},
|
|
10127
|
+
{
|
|
10128
|
+
"type": "object",
|
|
10129
|
+
"description": "Common properties for all events related to a specific site.",
|
|
10130
|
+
"properties": {
|
|
10131
|
+
"siteId": {
|
|
10132
|
+
"type": "string",
|
|
10133
|
+
"description": "ID of the site"
|
|
10134
|
+
}
|
|
10135
|
+
},
|
|
10136
|
+
"required": [
|
|
10137
|
+
"siteId"
|
|
10138
|
+
]
|
|
10139
|
+
}
|
|
10140
|
+
]
|
|
10141
|
+
},
|
|
10031
10142
|
"InstallationSetupEvent": {
|
|
10032
10143
|
"allOf": [
|
|
10033
10144
|
{
|
|
@@ -10146,6 +10257,9 @@
|
|
|
10146
10257
|
]
|
|
10147
10258
|
},
|
|
10148
10259
|
"SpaceViewEvent": {
|
|
10260
|
+
"$ref": "#/components/schemas/SiteViewEvent"
|
|
10261
|
+
},
|
|
10262
|
+
"SiteViewEvent": {
|
|
10149
10263
|
"allOf": [
|
|
10150
10264
|
{
|
|
10151
10265
|
"$ref": "#/components/schemas/SpaceEvent"
|
|
@@ -10387,6 +10501,10 @@
|
|
|
10387
10501
|
"type": "string",
|
|
10388
10502
|
"description": "The space ID, if requests are specific to a single space"
|
|
10389
10503
|
},
|
|
10504
|
+
"siteId": {
|
|
10505
|
+
"type": "string",
|
|
10506
|
+
"description": "The site ID, if requests are specific to a single site"
|
|
10507
|
+
},
|
|
10390
10508
|
"installationId": {
|
|
10391
10509
|
"type": "string",
|
|
10392
10510
|
"description": "The installation ID, if requests are specific to a single installation"
|
|
@@ -10423,7 +10541,14 @@
|
|
|
10423
10541
|
"FetchPublishedScriptEvent": {
|
|
10424
10542
|
"allOf": [
|
|
10425
10543
|
{
|
|
10426
|
-
"
|
|
10544
|
+
"oneOf": [
|
|
10545
|
+
{
|
|
10546
|
+
"$ref": "#/components/schemas/SpaceEvent"
|
|
10547
|
+
},
|
|
10548
|
+
{
|
|
10549
|
+
"$ref": "#/components/schemas/SiteEvent"
|
|
10550
|
+
}
|
|
10551
|
+
]
|
|
10427
10552
|
},
|
|
10428
10553
|
{
|
|
10429
10554
|
"type": "object",
|
|
@@ -10445,7 +10570,14 @@
|
|
|
10445
10570
|
"FetchVisitorAuthenticationEvent": {
|
|
10446
10571
|
"allOf": [
|
|
10447
10572
|
{
|
|
10448
|
-
"
|
|
10573
|
+
"oneOf": [
|
|
10574
|
+
{
|
|
10575
|
+
"$ref": "#/components/schemas/SpaceEvent"
|
|
10576
|
+
},
|
|
10577
|
+
{
|
|
10578
|
+
"$ref": "#/components/schemas/SiteEvent"
|
|
10579
|
+
}
|
|
10580
|
+
]
|
|
10449
10581
|
},
|
|
10450
10582
|
{
|
|
10451
10583
|
"type": "object",
|
|
@@ -10474,6 +10606,9 @@
|
|
|
10474
10606
|
{
|
|
10475
10607
|
"$ref": "#/components/schemas/SpaceEvent"
|
|
10476
10608
|
},
|
|
10609
|
+
{
|
|
10610
|
+
"$ref": "#/components/schemas/SiteEvent"
|
|
10611
|
+
},
|
|
10477
10612
|
{
|
|
10478
10613
|
"$ref": "#/components/schemas/InstallationEvent"
|
|
10479
10614
|
}
|
|
@@ -17537,6 +17672,14 @@
|
|
|
17537
17672
|
"properties": {
|
|
17538
17673
|
"subject": {
|
|
17539
17674
|
"$ref": "#/components/schemas/ChangeRequestSubject"
|
|
17675
|
+
},
|
|
17676
|
+
"status": {
|
|
17677
|
+
"type": "string",
|
|
17678
|
+
"enum": [
|
|
17679
|
+
"draft",
|
|
17680
|
+
"open",
|
|
17681
|
+
"archived"
|
|
17682
|
+
]
|
|
17540
17683
|
}
|
|
17541
17684
|
}
|
|
17542
17685
|
}
|
|
@@ -26707,6 +26850,58 @@
|
|
|
26707
26850
|
}
|
|
26708
26851
|
}
|
|
26709
26852
|
},
|
|
26853
|
+
"/orgs/{organizationId}/synced-blocks/{syncedBlockId}/content": {
|
|
26854
|
+
"get": {
|
|
26855
|
+
"operationId": "getSyncedBlockContent",
|
|
26856
|
+
"summary": "Get a synced block content",
|
|
26857
|
+
"tags": [
|
|
26858
|
+
"organizations"
|
|
26859
|
+
],
|
|
26860
|
+
"security": [
|
|
26861
|
+
{
|
|
26862
|
+
"user": []
|
|
26863
|
+
}
|
|
26864
|
+
],
|
|
26865
|
+
"parameters": [
|
|
26866
|
+
{
|
|
26867
|
+
"$ref": "#/components/parameters/organizationId"
|
|
26868
|
+
},
|
|
26869
|
+
{
|
|
26870
|
+
"$ref": "#/components/parameters/syncedBlockId"
|
|
26871
|
+
}
|
|
26872
|
+
],
|
|
26873
|
+
"responses": {
|
|
26874
|
+
"200": {
|
|
26875
|
+
"description": "OK",
|
|
26876
|
+
"content": {
|
|
26877
|
+
"application/json": {
|
|
26878
|
+
"schema": {
|
|
26879
|
+
"type": "object",
|
|
26880
|
+
"properties": {
|
|
26881
|
+
"document": {
|
|
26882
|
+
"$ref": "#/components/schemas/JSONDocument"
|
|
26883
|
+
},
|
|
26884
|
+
"files": {
|
|
26885
|
+
"type": "array",
|
|
26886
|
+
"items": {
|
|
26887
|
+
"$ref": "#/components/schemas/RevisionFile"
|
|
26888
|
+
}
|
|
26889
|
+
}
|
|
26890
|
+
},
|
|
26891
|
+
"required": [
|
|
26892
|
+
"document",
|
|
26893
|
+
"files"
|
|
26894
|
+
]
|
|
26895
|
+
}
|
|
26896
|
+
}
|
|
26897
|
+
}
|
|
26898
|
+
},
|
|
26899
|
+
"default": {
|
|
26900
|
+
"$ref": "#/components/responses/UnexpectedError"
|
|
26901
|
+
}
|
|
26902
|
+
}
|
|
26903
|
+
}
|
|
26904
|
+
},
|
|
26710
26905
|
"/orgs/{organizationId}/synced-blocks/{syncedBlockId}/backlinks": {
|
|
26711
26906
|
"get": {
|
|
26712
26907
|
"operationId": "getSyncedBlockBacklinks",
|
|
@@ -28121,6 +28316,98 @@
|
|
|
28121
28316
|
}
|
|
28122
28317
|
}
|
|
28123
28318
|
},
|
|
28319
|
+
"/orgs/{organizationId}/sites/{siteId}/permissions/aggregate": {
|
|
28320
|
+
"get": {
|
|
28321
|
+
"operationId": "listPermissionsAggregateInSite",
|
|
28322
|
+
"summary": "List permissions for all users of a site.",
|
|
28323
|
+
"tags": [
|
|
28324
|
+
"permissions",
|
|
28325
|
+
"sites"
|
|
28326
|
+
],
|
|
28327
|
+
"security": [
|
|
28328
|
+
{
|
|
28329
|
+
"user": []
|
|
28330
|
+
}
|
|
28331
|
+
],
|
|
28332
|
+
"parameters": [
|
|
28333
|
+
{
|
|
28334
|
+
"$ref": "#/components/parameters/organizationId"
|
|
28335
|
+
},
|
|
28336
|
+
{
|
|
28337
|
+
"$ref": "#/components/parameters/siteId"
|
|
28338
|
+
},
|
|
28339
|
+
{
|
|
28340
|
+
"$ref": "#/components/parameters/listPage"
|
|
28341
|
+
},
|
|
28342
|
+
{
|
|
28343
|
+
"$ref": "#/components/parameters/listLimit"
|
|
28344
|
+
},
|
|
28345
|
+
{
|
|
28346
|
+
"name": "role",
|
|
28347
|
+
"in": "query",
|
|
28348
|
+
"description": "If defined, only members with this role will be returned.",
|
|
28349
|
+
"schema": {
|
|
28350
|
+
"$ref": "#/components/schemas/MemberRole"
|
|
28351
|
+
}
|
|
28352
|
+
}
|
|
28353
|
+
],
|
|
28354
|
+
"responses": {
|
|
28355
|
+
"200": {
|
|
28356
|
+
"description": "Listing of users who can access the site.",
|
|
28357
|
+
"content": {
|
|
28358
|
+
"application/json": {
|
|
28359
|
+
"schema": {
|
|
28360
|
+
"allOf": [
|
|
28361
|
+
{
|
|
28362
|
+
"$ref": "#/components/schemas/List"
|
|
28363
|
+
},
|
|
28364
|
+
{
|
|
28365
|
+
"type": "object",
|
|
28366
|
+
"required": [
|
|
28367
|
+
"items"
|
|
28368
|
+
],
|
|
28369
|
+
"properties": {
|
|
28370
|
+
"items": {
|
|
28371
|
+
"type": "array",
|
|
28372
|
+
"items": {
|
|
28373
|
+
"type": "object",
|
|
28374
|
+
"description": "Permission of a user in a site.",
|
|
28375
|
+
"properties": {
|
|
28376
|
+
"permission": {
|
|
28377
|
+
"$ref": "#/components/schemas/MemberRole"
|
|
28378
|
+
},
|
|
28379
|
+
"user": {
|
|
28380
|
+
"$ref": "#/components/schemas/User"
|
|
28381
|
+
},
|
|
28382
|
+
"origin": {
|
|
28383
|
+
"description": "The content or organization that enforced this permission level.",
|
|
28384
|
+
"oneOf": [
|
|
28385
|
+
{
|
|
28386
|
+
"$ref": "#/components/schemas/SpacePointer"
|
|
28387
|
+
}
|
|
28388
|
+
]
|
|
28389
|
+
}
|
|
28390
|
+
},
|
|
28391
|
+
"required": [
|
|
28392
|
+
"permission",
|
|
28393
|
+
"user",
|
|
28394
|
+
"origin"
|
|
28395
|
+
]
|
|
28396
|
+
}
|
|
28397
|
+
}
|
|
28398
|
+
}
|
|
28399
|
+
}
|
|
28400
|
+
]
|
|
28401
|
+
}
|
|
28402
|
+
}
|
|
28403
|
+
}
|
|
28404
|
+
},
|
|
28405
|
+
"default": {
|
|
28406
|
+
"$ref": "#/components/responses/UnexpectedError"
|
|
28407
|
+
}
|
|
28408
|
+
}
|
|
28409
|
+
}
|
|
28410
|
+
},
|
|
28124
28411
|
"/orgs/{organizationId}/seats": {
|
|
28125
28412
|
"get": {
|
|
28126
28413
|
"operationId": "listSeatsInOrganizationById",
|
|
@@ -28725,9 +29012,17 @@
|
|
|
28725
29012
|
"type": "object",
|
|
28726
29013
|
"properties": {
|
|
28727
29014
|
"spaces": {
|
|
29015
|
+
"deprecated": true,
|
|
29016
|
+
"type": "array",
|
|
29017
|
+
"items": {
|
|
29018
|
+
"description": "Deprecated. Use contentIds.",
|
|
29019
|
+
"type": "string"
|
|
29020
|
+
}
|
|
29021
|
+
},
|
|
29022
|
+
"contentIds": {
|
|
28728
29023
|
"type": "array",
|
|
28729
29024
|
"items": {
|
|
28730
|
-
"description": "
|
|
29025
|
+
"description": "Content IDs to retrieve permissions for.",
|
|
28731
29026
|
"type": "string"
|
|
28732
29027
|
}
|
|
28733
29028
|
}
|
package/spec/openapi.yaml
CHANGED
|
@@ -3084,12 +3084,9 @@ components:
|
|
|
3084
3084
|
- synced-block
|
|
3085
3085
|
syncedBlock:
|
|
3086
3086
|
type: string
|
|
3087
|
-
organization:
|
|
3088
|
-
type: string
|
|
3089
3087
|
required:
|
|
3090
3088
|
- kind
|
|
3091
3089
|
- syncedBlock
|
|
3092
|
-
- organization
|
|
3093
3090
|
ContentLocation:
|
|
3094
3091
|
description: An absolute reference to content in GitBook.
|
|
3095
3092
|
oneOf:
|
|
@@ -3126,6 +3123,8 @@ components:
|
|
|
3126
3123
|
$ref: "#/components/schemas/Space"
|
|
3127
3124
|
changeRequest:
|
|
3128
3125
|
$ref: "#/components/schemas/ChangeRequest"
|
|
3126
|
+
revision:
|
|
3127
|
+
$ref: "#/components/schemas/Revision"
|
|
3129
3128
|
file:
|
|
3130
3129
|
$ref: "#/components/schemas/RevisionFile"
|
|
3131
3130
|
required:
|
|
@@ -3148,7 +3147,13 @@ components:
|
|
|
3148
3147
|
$ref: "#/components/schemas/Space"
|
|
3149
3148
|
changeRequest:
|
|
3150
3149
|
$ref: "#/components/schemas/ChangeRequest"
|
|
3150
|
+
revision:
|
|
3151
|
+
$ref: "#/components/schemas/Revision"
|
|
3151
3152
|
anchor:
|
|
3153
|
+
description: The anchor within the page.
|
|
3154
|
+
type: string
|
|
3155
|
+
node:
|
|
3156
|
+
description: The node id within the page.
|
|
3152
3157
|
type: string
|
|
3153
3158
|
required:
|
|
3154
3159
|
- kind
|
|
@@ -4872,19 +4877,12 @@ components:
|
|
|
4872
4877
|
$ref: "#/components/schemas/URL"
|
|
4873
4878
|
required:
|
|
4874
4879
|
- location
|
|
4875
|
-
document:
|
|
4876
|
-
$ref: "#/components/schemas/JSONDocument"
|
|
4877
|
-
files:
|
|
4878
|
-
type: array
|
|
4879
|
-
items:
|
|
4880
|
-
$ref: "#/components/schemas/RevisionFile"
|
|
4881
4880
|
required:
|
|
4882
4881
|
- id
|
|
4883
4882
|
- organization
|
|
4884
4883
|
- source
|
|
4885
4884
|
- createdAt
|
|
4886
4885
|
- urls
|
|
4887
|
-
- document
|
|
4888
4886
|
ContentAuditRelation:
|
|
4889
4887
|
type: object
|
|
4890
4888
|
description: Content audit relation
|
|
@@ -5843,6 +5841,7 @@ components:
|
|
|
5843
5841
|
- space:script:cookies
|
|
5844
5842
|
- space:git:sync
|
|
5845
5843
|
- space:visitor:auth
|
|
5844
|
+
- site:script:inject
|
|
5846
5845
|
- site:visitor:auth
|
|
5847
5846
|
IntegrationSearchQuery:
|
|
5848
5847
|
name: search
|
|
@@ -5977,6 +5976,12 @@ components:
|
|
|
5977
5976
|
enum:
|
|
5978
5977
|
- all
|
|
5979
5978
|
- selected
|
|
5979
|
+
IntegrationInstallationSiteSelection:
|
|
5980
|
+
type: string
|
|
5981
|
+
description: Describe whether all sites have been selected or there's a selection involved
|
|
5982
|
+
enum:
|
|
5983
|
+
- all
|
|
5984
|
+
- selected
|
|
5980
5985
|
IntegrationCategory:
|
|
5981
5986
|
type: string
|
|
5982
5987
|
enum:
|
|
@@ -5994,6 +5999,8 @@ components:
|
|
|
5994
5999
|
$ref: "#/components/schemas/IntegrationConfiguration"
|
|
5995
6000
|
space:
|
|
5996
6001
|
$ref: "#/components/schemas/IntegrationConfiguration"
|
|
6002
|
+
site:
|
|
6003
|
+
$ref: "#/components/schemas/IntegrationConfiguration"
|
|
5997
6004
|
IntegrationConfiguration:
|
|
5998
6005
|
oneOf:
|
|
5999
6006
|
- $ref: "#/components/schemas/IntegrationConfigurationSchema"
|
|
@@ -6249,6 +6256,8 @@ components:
|
|
|
6249
6256
|
$ref: "#/components/schemas/IntegrationInstallation"
|
|
6250
6257
|
spaceInstallation:
|
|
6251
6258
|
$ref: "#/components/schemas/IntegrationSpaceInstallation"
|
|
6259
|
+
siteInstallation:
|
|
6260
|
+
$ref: "#/components/schemas/IntegrationSiteInstallation"
|
|
6252
6261
|
secrets:
|
|
6253
6262
|
$ref: "#/components/schemas/IntegrationSecrets"
|
|
6254
6263
|
signingSecret:
|
|
@@ -6267,6 +6276,9 @@ components:
|
|
|
6267
6276
|
spaceInstallation:
|
|
6268
6277
|
type: string
|
|
6269
6278
|
description: Secret that can be used to verify the authenticity of incoming HTTP requests to the space installation.
|
|
6279
|
+
siteInstallation:
|
|
6280
|
+
type: string
|
|
6281
|
+
description: Secret that can be used to verify the authenticity of incoming HTTP requests to the site installation.
|
|
6270
6282
|
required:
|
|
6271
6283
|
- integration
|
|
6272
6284
|
apiEndpoint:
|
|
@@ -6656,7 +6668,51 @@ components:
|
|
|
6656
6668
|
- $ref: "#/components/schemas/InstallationSetupEvent"
|
|
6657
6669
|
- $ref: "#/components/schemas/SpaceInstallationSetupEvent"
|
|
6658
6670
|
- $ref: "#/components/schemas/SpaceInstallationDeletedEvent"
|
|
6659
|
-
-
|
|
6671
|
+
- allOf:
|
|
6672
|
+
- $ref: "#/components/schemas/SiteEvent"
|
|
6673
|
+
- type: object
|
|
6674
|
+
description: Event received when integration has been installed or updated on a site.
|
|
6675
|
+
properties:
|
|
6676
|
+
type:
|
|
6677
|
+
type: string
|
|
6678
|
+
enum:
|
|
6679
|
+
- site_installation_setup
|
|
6680
|
+
status:
|
|
6681
|
+
$ref: "#/components/schemas/IntegrationInstallationStatus"
|
|
6682
|
+
previous:
|
|
6683
|
+
type: object
|
|
6684
|
+
description: The state of the site installation before it was updated.
|
|
6685
|
+
properties:
|
|
6686
|
+
status:
|
|
6687
|
+
$ref: "#/components/schemas/IntegrationInstallationStatus"
|
|
6688
|
+
configuration:
|
|
6689
|
+
type: object
|
|
6690
|
+
description: The previous configuration of the site installation.
|
|
6691
|
+
required:
|
|
6692
|
+
- status
|
|
6693
|
+
required:
|
|
6694
|
+
- type
|
|
6695
|
+
- status
|
|
6696
|
+
- allOf:
|
|
6697
|
+
- $ref: "#/components/schemas/SiteEvent"
|
|
6698
|
+
- type: object
|
|
6699
|
+
description: Event received when integration has been uninstalled from a site.
|
|
6700
|
+
properties:
|
|
6701
|
+
type:
|
|
6702
|
+
type: string
|
|
6703
|
+
enum:
|
|
6704
|
+
- site_installation_deleted
|
|
6705
|
+
previous:
|
|
6706
|
+
type: object
|
|
6707
|
+
description: The state of the site installation before it was deleted.
|
|
6708
|
+
properties:
|
|
6709
|
+
configuration:
|
|
6710
|
+
type: object
|
|
6711
|
+
description: The previous configuration of the site installation.
|
|
6712
|
+
required:
|
|
6713
|
+
- type
|
|
6714
|
+
- previous
|
|
6715
|
+
- $ref: "#/components/schemas/SiteViewEvent"
|
|
6660
6716
|
- $ref: "#/components/schemas/SpaceContentUpdatedEvent"
|
|
6661
6717
|
- $ref: "#/components/schemas/SpaceGitSyncCompletedEvent"
|
|
6662
6718
|
- $ref: "#/components/schemas/SpaceGitSyncStartedEvent"
|
|
@@ -6702,6 +6758,17 @@ components:
|
|
|
6702
6758
|
description: ID of the space
|
|
6703
6759
|
required:
|
|
6704
6760
|
- spaceId
|
|
6761
|
+
SiteEvent:
|
|
6762
|
+
allOf:
|
|
6763
|
+
- $ref: "#/components/schemas/InstallationEvent"
|
|
6764
|
+
- type: object
|
|
6765
|
+
description: Common properties for all events related to a specific site.
|
|
6766
|
+
properties:
|
|
6767
|
+
siteId:
|
|
6768
|
+
type: string
|
|
6769
|
+
description: ID of the site
|
|
6770
|
+
required:
|
|
6771
|
+
- siteId
|
|
6705
6772
|
InstallationSetupEvent:
|
|
6706
6773
|
allOf:
|
|
6707
6774
|
- $ref: "#/components/schemas/InstallationEvent"
|
|
@@ -6775,6 +6842,8 @@ components:
|
|
|
6775
6842
|
- type
|
|
6776
6843
|
- previous
|
|
6777
6844
|
SpaceViewEvent:
|
|
6845
|
+
$ref: "#/components/schemas/SiteViewEvent"
|
|
6846
|
+
SiteViewEvent:
|
|
6778
6847
|
allOf:
|
|
6779
6848
|
- $ref: "#/components/schemas/SpaceEvent"
|
|
6780
6849
|
- type: object
|
|
@@ -6933,6 +7002,9 @@ components:
|
|
|
6933
7002
|
spaceId:
|
|
6934
7003
|
type: string
|
|
6935
7004
|
description: The space ID, if requests are specific to a single space
|
|
7005
|
+
siteId:
|
|
7006
|
+
type: string
|
|
7007
|
+
description: The site ID, if requests are specific to a single site
|
|
6936
7008
|
installationId:
|
|
6937
7009
|
type: string
|
|
6938
7010
|
description: The installation ID, if requests are specific to a single installation
|
|
@@ -6955,7 +7027,9 @@ components:
|
|
|
6955
7027
|
- request
|
|
6956
7028
|
FetchPublishedScriptEvent:
|
|
6957
7029
|
allOf:
|
|
6958
|
-
-
|
|
7030
|
+
- oneOf:
|
|
7031
|
+
- $ref: "#/components/schemas/SpaceEvent"
|
|
7032
|
+
- $ref: "#/components/schemas/SiteEvent"
|
|
6959
7033
|
- type: object
|
|
6960
7034
|
description: Common properties for all events related to fetching a published script from an installation
|
|
6961
7035
|
properties:
|
|
@@ -6967,7 +7041,9 @@ components:
|
|
|
6967
7041
|
- type
|
|
6968
7042
|
FetchVisitorAuthenticationEvent:
|
|
6969
7043
|
allOf:
|
|
6970
|
-
-
|
|
7044
|
+
- oneOf:
|
|
7045
|
+
- $ref: "#/components/schemas/SpaceEvent"
|
|
7046
|
+
- $ref: "#/components/schemas/SiteEvent"
|
|
6971
7047
|
- type: object
|
|
6972
7048
|
description: Common properties for all events related to visitor authentication from an installation
|
|
6973
7049
|
properties:
|
|
@@ -6983,6 +7059,7 @@ components:
|
|
|
6983
7059
|
allOf:
|
|
6984
7060
|
- oneOf:
|
|
6985
7061
|
- $ref: "#/components/schemas/SpaceEvent"
|
|
7062
|
+
- $ref: "#/components/schemas/SiteEvent"
|
|
6986
7063
|
- $ref: "#/components/schemas/InstallationEvent"
|
|
6987
7064
|
- type: object
|
|
6988
7065
|
description: Event generated when rendering a UI
|
|
@@ -11412,6 +11489,12 @@ paths:
|
|
|
11412
11489
|
properties:
|
|
11413
11490
|
subject:
|
|
11414
11491
|
$ref: "#/components/schemas/ChangeRequestSubject"
|
|
11492
|
+
status:
|
|
11493
|
+
type: string
|
|
11494
|
+
enum:
|
|
11495
|
+
- draft
|
|
11496
|
+
- open
|
|
11497
|
+
- archived
|
|
11415
11498
|
responses:
|
|
11416
11499
|
"200":
|
|
11417
11500
|
description: The change request has been updated
|
|
@@ -16519,6 +16602,36 @@ paths:
|
|
|
16519
16602
|
description: OK
|
|
16520
16603
|
default:
|
|
16521
16604
|
$ref: "#/components/responses/UnexpectedError"
|
|
16605
|
+
"/orgs/{organizationId}/synced-blocks/{syncedBlockId}/content":
|
|
16606
|
+
get:
|
|
16607
|
+
operationId: getSyncedBlockContent
|
|
16608
|
+
summary: Get a synced block content
|
|
16609
|
+
tags:
|
|
16610
|
+
- organizations
|
|
16611
|
+
security:
|
|
16612
|
+
- user: []
|
|
16613
|
+
parameters:
|
|
16614
|
+
- $ref: "#/components/parameters/organizationId"
|
|
16615
|
+
- $ref: "#/components/parameters/syncedBlockId"
|
|
16616
|
+
responses:
|
|
16617
|
+
"200":
|
|
16618
|
+
description: OK
|
|
16619
|
+
content:
|
|
16620
|
+
application/json:
|
|
16621
|
+
schema:
|
|
16622
|
+
type: object
|
|
16623
|
+
properties:
|
|
16624
|
+
document:
|
|
16625
|
+
$ref: "#/components/schemas/JSONDocument"
|
|
16626
|
+
files:
|
|
16627
|
+
type: array
|
|
16628
|
+
items:
|
|
16629
|
+
$ref: "#/components/schemas/RevisionFile"
|
|
16630
|
+
required:
|
|
16631
|
+
- document
|
|
16632
|
+
- files
|
|
16633
|
+
default:
|
|
16634
|
+
$ref: "#/components/responses/UnexpectedError"
|
|
16522
16635
|
"/orgs/{organizationId}/synced-blocks/{syncedBlockId}/backlinks":
|
|
16523
16636
|
get:
|
|
16524
16637
|
operationId: getSyncedBlockBacklinks
|
|
@@ -17298,6 +17411,57 @@ paths:
|
|
|
17298
17411
|
$ref: "#/components/responses/BadRequestError"
|
|
17299
17412
|
default:
|
|
17300
17413
|
$ref: "#/components/responses/UnexpectedError"
|
|
17414
|
+
"/orgs/{organizationId}/sites/{siteId}/permissions/aggregate":
|
|
17415
|
+
get:
|
|
17416
|
+
operationId: listPermissionsAggregateInSite
|
|
17417
|
+
summary: List permissions for all users of a site.
|
|
17418
|
+
tags:
|
|
17419
|
+
- permissions
|
|
17420
|
+
- sites
|
|
17421
|
+
security:
|
|
17422
|
+
- user: []
|
|
17423
|
+
parameters:
|
|
17424
|
+
- $ref: "#/components/parameters/organizationId"
|
|
17425
|
+
- $ref: "#/components/parameters/siteId"
|
|
17426
|
+
- $ref: "#/components/parameters/listPage"
|
|
17427
|
+
- $ref: "#/components/parameters/listLimit"
|
|
17428
|
+
- name: role
|
|
17429
|
+
in: query
|
|
17430
|
+
description: If defined, only members with this role will be returned.
|
|
17431
|
+
schema:
|
|
17432
|
+
$ref: "#/components/schemas/MemberRole"
|
|
17433
|
+
responses:
|
|
17434
|
+
"200":
|
|
17435
|
+
description: Listing of users who can access the site.
|
|
17436
|
+
content:
|
|
17437
|
+
application/json:
|
|
17438
|
+
schema:
|
|
17439
|
+
allOf:
|
|
17440
|
+
- $ref: "#/components/schemas/List"
|
|
17441
|
+
- type: object
|
|
17442
|
+
required:
|
|
17443
|
+
- items
|
|
17444
|
+
properties:
|
|
17445
|
+
items:
|
|
17446
|
+
type: array
|
|
17447
|
+
items:
|
|
17448
|
+
type: object
|
|
17449
|
+
description: Permission of a user in a site.
|
|
17450
|
+
properties:
|
|
17451
|
+
permission:
|
|
17452
|
+
$ref: "#/components/schemas/MemberRole"
|
|
17453
|
+
user:
|
|
17454
|
+
$ref: "#/components/schemas/User"
|
|
17455
|
+
origin:
|
|
17456
|
+
description: The content or organization that enforced this permission level.
|
|
17457
|
+
oneOf:
|
|
17458
|
+
- $ref: "#/components/schemas/SpacePointer"
|
|
17459
|
+
required:
|
|
17460
|
+
- permission
|
|
17461
|
+
- user
|
|
17462
|
+
- origin
|
|
17463
|
+
default:
|
|
17464
|
+
$ref: "#/components/responses/UnexpectedError"
|
|
17301
17465
|
"/orgs/{organizationId}/seats":
|
|
17302
17466
|
get:
|
|
17303
17467
|
operationId: listSeatsInOrganizationById
|
|
@@ -17648,9 +17812,15 @@ paths:
|
|
|
17648
17812
|
type: object
|
|
17649
17813
|
properties:
|
|
17650
17814
|
spaces:
|
|
17815
|
+
deprecated: true
|
|
17816
|
+
type: array
|
|
17817
|
+
items:
|
|
17818
|
+
description: Deprecated. Use contentIds.
|
|
17819
|
+
type: string
|
|
17820
|
+
contentIds:
|
|
17651
17821
|
type: array
|
|
17652
17822
|
items:
|
|
17653
|
-
description:
|
|
17823
|
+
description: Content IDs to retrieve permissions for.
|
|
17654
17824
|
type: string
|
|
17655
17825
|
responses:
|
|
17656
17826
|
"200":
|