@gitbook/api 0.52.0 → 0.54.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
@@ -1367,7 +1367,7 @@ export interface ImportContentResult {
1367
1367
  /**
1368
1368
  * Name of the organization
1369
1369
  * @minLength 2
1370
- * @maxLength 300
1370
+ * @maxLength 255
1371
1371
  */
1372
1372
  export declare type OrganizationTitle = string;
1373
1373
  export declare type OrganizationEmailDomains = string[];
@@ -3488,6 +3488,8 @@ export declare type BillingUpgrade = {
3488
3488
  result: 'upgraded';
3489
3489
  } | {
3490
3490
  result: 'downgraded';
3491
+ } | {
3492
+ result: 'interval_changed';
3491
3493
  };
3492
3494
  export interface CreateSpace {
3493
3495
  /** @maxLength 50 */
@@ -3792,7 +3794,7 @@ export declare enum SiteType {
3792
3794
  /**
3793
3795
  * Title of the site
3794
3796
  * @minLength 2
3795
- * @maxLength 50
3797
+ * @maxLength 128
3796
3798
  */
3797
3799
  export declare type SiteTitle = string;
3798
3800
  /**
@@ -3819,6 +3821,11 @@ export declare enum SiteVisibility {
3819
3821
  ShareLink = "share-link",
3820
3822
  VisitorAuth = "visitor-auth"
3821
3823
  }
3824
+ /** The configuration for serving ads in the site */
3825
+ export interface SiteAdsConfig {
3826
+ /** The ad network zone ID */
3827
+ zone: string;
3828
+ }
3822
3829
  export interface Site {
3823
3830
  object: 'site';
3824
3831
  /** Unique identifier of the site */
@@ -3844,6 +3851,8 @@ export interface Site {
3844
3851
  siteSpaces: number;
3845
3852
  /** @format date-time */
3846
3853
  createdAt: string;
3854
+ /** The configuration for serving ads in the site */
3855
+ ads?: SiteAdsConfig;
3847
3856
  /** URLs associated with the object */
3848
3857
  urls: {
3849
3858
  /**
@@ -5423,7 +5432,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
5423
5432
  * @tags spaces
5424
5433
  * @name ListSpacePageBacklinks
5425
5434
  * @summary Get backlink locations for a page existing in a space.
5426
- * @request GET:/spaces/{spaceId}/content/files/{pageId}/backlinks
5435
+ * @request GET:/spaces/{spaceId}/content/pages/{pageId}/backlinks
5427
5436
  * @secure
5428
5437
  */
5429
5438
  listSpacePageBacklinks: (spaceId: string, pageId: string, query?: {
@@ -7446,6 +7455,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
7446
7455
  * @max 1000
7447
7456
  */
7448
7457
  limit?: number;
7458
+ /**
7459
+ * An order for the items in the list
7460
+ * @default "desc"
7461
+ */
7462
+ order?: 'asc' | 'desc';
7449
7463
  /** The Role to filter the member list by */
7450
7464
  role?: MemberRole | 'guest';
7451
7465
  /** A query to filter the member list (displayName and email) */
@@ -7590,6 +7604,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
7590
7604
  createOrganizationTeam: (organizationId: string, data: {
7591
7605
  /** Title of the team */
7592
7606
  title: OrganizationTeamTitle;
7607
+ /** A list of organization member identifiers */
7593
7608
  members?: string[];
7594
7609
  }, params?: RequestParams) => Promise<HttpResponse<OrganizationTeam, Error>>;
7595
7610
  /**
@@ -8739,7 +8754,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
8739
8754
  */
8740
8755
  visibility?: SiteVisibility;
8741
8756
  /** ID of spaces to be added to the site */
8742
- spaces?: string[];
8757
+ spaces?: string[] | 'sample' | 'empty';
8743
8758
  }, params?: RequestParams) => Promise<HttpResponse<Site, Error>>;
8744
8759
  /**
8745
8760
  * No description
@@ -8882,6 +8897,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
8882
8897
  updateSitePlan: (organizationId: string, siteId: string, data: {
8883
8898
  /** The type of the site */
8884
8899
  plan: SiteType;
8900
+ /** Desired interval for new subscriptions. Defaults to the existing billing interval. */
8901
+ interval?: BillingInterval;
8902
+ }, query?: {
8903
+ /** The app screen URL to bring the user back to after checkout. */
8904
+ checkoutReturnURL?: string;
8885
8905
  }, params?: RequestParams) => Promise<HttpResponse<{
8886
8906
  type: 'legacy-checkout';
8887
8907
  /** Stripe payment session ID */
@@ -9151,6 +9171,29 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
9151
9171
  }, params?: RequestParams) => Promise<HttpResponse<List & {
9152
9172
  items: SiteSpace[];
9153
9173
  }, Error>>;
9174
+ /**
9175
+ * No description
9176
+ *
9177
+ * @name SearchSiteContent
9178
+ * @summary Search content in a site
9179
+ * @request POST:/orgs/{organizationId}/sites/{siteId}/search
9180
+ * @secure
9181
+ */
9182
+ searchSiteContent: (organizationId: string, siteId: string, data: {
9183
+ query: string;
9184
+ siteSpaceIds?: string[];
9185
+ }, query?: {
9186
+ /** Identifier of the page results to fetch. */
9187
+ page?: string;
9188
+ /**
9189
+ * The number of results per page
9190
+ * @min 0
9191
+ * @max 1000
9192
+ */
9193
+ limit?: number;
9194
+ }, params?: RequestParams) => Promise<HttpResponse<List & {
9195
+ items: SearchSpaceResult[];
9196
+ }, Error>>;
9154
9197
  /**
9155
9198
  * No description
9156
9199
  *
@@ -9229,6 +9272,16 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
9229
9272
  message: string;
9230
9273
  };
9231
9274
  }>>;
9275
+ /**
9276
+ * No description
9277
+ *
9278
+ * @tags analytics, sites
9279
+ * @name GetContentAnalyticsForSiteSpaceById
9280
+ * @summary Get page traffic and ratings for a given site space.
9281
+ * @request GET:/orgs/{organizationId}/sites/{siteId}/site-spaces/{siteSpaceId}/insights/content
9282
+ * @secure
9283
+ */
9284
+ getContentAnalyticsForSiteSpaceById: (organizationId: string, siteId: string, siteSpaceId: string, params?: RequestParams) => Promise<HttpResponse<AnalyticsContentPages, Error>>;
9232
9285
  /**
9233
9286
  * No description
9234
9287
  *
package/dist/index.cjs CHANGED
@@ -238,7 +238,7 @@ module.exports = __toCommonJS(src_exports);
238
238
 
239
239
  // package.json
240
240
  var name = "@gitbook/api";
241
- var version = "0.52.0";
241
+ var version = "0.54.0";
242
242
 
243
243
  // src/client.ts
244
244
  var import_event_iterator = __toESM(require_node(), 1);
@@ -1238,7 +1238,7 @@ var Api = class extends HttpClient {
1238
1238
  ...params
1239
1239
  }),
1240
1240
  listSpacePageBacklinks: (spaceId, pageId, query, params = {}) => this.request({
1241
- path: `/spaces/${spaceId}/content/files/${pageId}/backlinks`,
1241
+ path: `/spaces/${spaceId}/content/pages/${pageId}/backlinks`,
1242
1242
  method: "GET",
1243
1243
  query,
1244
1244
  secure: true,
@@ -2907,9 +2907,10 @@ var Api = class extends HttpClient {
2907
2907
  secure: true,
2908
2908
  ...params
2909
2909
  }),
2910
- updateSitePlan: (organizationId, siteId, data, params = {}) => this.request({
2910
+ updateSitePlan: (organizationId, siteId, data, query, params = {}) => this.request({
2911
2911
  path: `/orgs/${organizationId}/sites/${siteId}/plan`,
2912
2912
  method: "POST",
2913
+ query,
2913
2914
  body: data,
2914
2915
  secure: true,
2915
2916
  type: "application/json" /* Json */,
@@ -3018,6 +3019,16 @@ var Api = class extends HttpClient {
3018
3019
  format: "json",
3019
3020
  ...params
3020
3021
  }),
3022
+ searchSiteContent: (organizationId, siteId, data, query, params = {}) => this.request({
3023
+ path: `/orgs/${organizationId}/sites/${siteId}/search`,
3024
+ method: "POST",
3025
+ query,
3026
+ body: data,
3027
+ secure: true,
3028
+ type: "application/json" /* Json */,
3029
+ format: "json",
3030
+ ...params
3031
+ }),
3021
3032
  updateSiteSpaceById: (organizationId, siteId, siteSpaceId, data, params = {}) => this.request({
3022
3033
  path: `/orgs/${organizationId}/sites/${siteId}/site-spaces/${siteSpaceId}`,
3023
3034
  method: "PATCH",
@@ -3057,6 +3068,13 @@ var Api = class extends HttpClient {
3057
3068
  format: "json",
3058
3069
  ...params
3059
3070
  }),
3071
+ getContentAnalyticsForSiteSpaceById: (organizationId, siteId, siteSpaceId, params = {}) => this.request({
3072
+ path: `/orgs/${organizationId}/sites/${siteId}/site-spaces/${siteSpaceId}/insights/content`,
3073
+ method: "GET",
3074
+ secure: true,
3075
+ format: "json",
3076
+ ...params
3077
+ }),
3060
3078
  moveSiteSpace: (organizationId, siteId, siteSpaceId, data, params = {}) => this.request({
3061
3079
  path: `/orgs/${organizationId}/sites/${siteId}/site-spaces/${siteSpaceId}/move`,
3062
3080
  method: "POST",
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.52.0";
175
+ var version = "0.54.0";
176
176
 
177
177
  // src/client.ts
178
178
  var import_event_iterator = __toESM(require_node(), 1);
@@ -1172,7 +1172,7 @@ var Api = class extends HttpClient {
1172
1172
  ...params
1173
1173
  }),
1174
1174
  listSpacePageBacklinks: (spaceId, pageId, query, params = {}) => this.request({
1175
- path: `/spaces/${spaceId}/content/files/${pageId}/backlinks`,
1175
+ path: `/spaces/${spaceId}/content/pages/${pageId}/backlinks`,
1176
1176
  method: "GET",
1177
1177
  query,
1178
1178
  secure: true,
@@ -2841,9 +2841,10 @@ var Api = class extends HttpClient {
2841
2841
  secure: true,
2842
2842
  ...params
2843
2843
  }),
2844
- updateSitePlan: (organizationId, siteId, data, params = {}) => this.request({
2844
+ updateSitePlan: (organizationId, siteId, data, query, params = {}) => this.request({
2845
2845
  path: `/orgs/${organizationId}/sites/${siteId}/plan`,
2846
2846
  method: "POST",
2847
+ query,
2847
2848
  body: data,
2848
2849
  secure: true,
2849
2850
  type: "application/json" /* Json */,
@@ -2952,6 +2953,16 @@ var Api = class extends HttpClient {
2952
2953
  format: "json",
2953
2954
  ...params
2954
2955
  }),
2956
+ searchSiteContent: (organizationId, siteId, data, query, params = {}) => this.request({
2957
+ path: `/orgs/${organizationId}/sites/${siteId}/search`,
2958
+ method: "POST",
2959
+ query,
2960
+ body: data,
2961
+ secure: true,
2962
+ type: "application/json" /* Json */,
2963
+ format: "json",
2964
+ ...params
2965
+ }),
2955
2966
  updateSiteSpaceById: (organizationId, siteId, siteSpaceId, data, params = {}) => this.request({
2956
2967
  path: `/orgs/${organizationId}/sites/${siteId}/site-spaces/${siteSpaceId}`,
2957
2968
  method: "PATCH",
@@ -2991,6 +3002,13 @@ var Api = class extends HttpClient {
2991
3002
  format: "json",
2992
3003
  ...params
2993
3004
  }),
3005
+ getContentAnalyticsForSiteSpaceById: (organizationId, siteId, siteSpaceId, params = {}) => this.request({
3006
+ path: `/orgs/${organizationId}/sites/${siteId}/site-spaces/${siteSpaceId}/insights/content`,
3007
+ method: "GET",
3008
+ secure: true,
3009
+ format: "json",
3010
+ ...params
3011
+ }),
2994
3012
  moveSiteSpace: (organizationId, siteId, siteSpaceId, data, params = {}) => this.request({
2995
3013
  path: `/orgs/${organizationId}/sites/${siteId}/site-spaces/${siteSpaceId}/move`,
2996
3014
  method: "POST",
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.52.0",
7
+ "version": "0.54.0",
8
8
  "sideEffects": false,
9
9
  "files": [
10
10
  "README.md",
package/spec/openapi.json CHANGED
@@ -1662,7 +1662,7 @@
1662
1662
  }
1663
1663
  }
1664
1664
  },
1665
- "/spaces/{spaceId}/content/files/{pageId}/backlinks": {
1665
+ "/spaces/{spaceId}/content/pages/{pageId}/backlinks": {
1666
1666
  "get": {
1667
1667
  "operationId": "listSpacePageBacklinks",
1668
1668
  "summary": "Get backlink locations for a page existing in a space.",
@@ -7605,6 +7605,9 @@
7605
7605
  {
7606
7606
  "$ref": "#/components/parameters/listLimit"
7607
7607
  },
7608
+ {
7609
+ "$ref": "#/components/parameters/listOrder"
7610
+ },
7608
7611
  {
7609
7612
  "name": "role",
7610
7613
  "description": "The Role to filter the member list by",
@@ -8110,6 +8113,7 @@
8110
8113
  "$ref": "#/components/schemas/OrganizationTeamTitle"
8111
8114
  },
8112
8115
  "members": {
8116
+ "description": "A list of organization member identifiers",
8113
8117
  "type": "array",
8114
8118
  "items": {
8115
8119
  "type": "string"
@@ -11878,11 +11882,23 @@
11878
11882
  "$ref": "#/components/schemas/SiteVisibility"
11879
11883
  },
11880
11884
  "spaces": {
11881
- "type": "array",
11882
- "description": "ID of spaces to be added to the site",
11883
- "items": {
11884
- "type": "string"
11885
- }
11885
+ "oneOf": [
11886
+ {
11887
+ "type": "array",
11888
+ "description": "ID of spaces to be added to the site",
11889
+ "items": {
11890
+ "type": "string"
11891
+ }
11892
+ },
11893
+ {
11894
+ "type": "string",
11895
+ "description": "Create a new space associated to the site",
11896
+ "enum": [
11897
+ "sample",
11898
+ "empty"
11899
+ ]
11900
+ }
11901
+ ]
11886
11902
  }
11887
11903
  }
11888
11904
  }
@@ -12347,6 +12363,14 @@
12347
12363
  },
12348
12364
  {
12349
12365
  "$ref": "#/components/parameters/siteId"
12366
+ },
12367
+ {
12368
+ "in": "query",
12369
+ "name": "checkoutReturnURL",
12370
+ "description": "The app screen URL to bring the user back to after checkout.",
12371
+ "schema": {
12372
+ "type": "string"
12373
+ }
12350
12374
  }
12351
12375
  ],
12352
12376
  "requestBody": {
@@ -12358,6 +12382,10 @@
12358
12382
  "properties": {
12359
12383
  "plan": {
12360
12384
  "$ref": "#/components/schemas/SiteType"
12385
+ },
12386
+ "interval": {
12387
+ "description": "Desired interval for new subscriptions. Defaults to the existing billing interval.",
12388
+ "$ref": "#/components/schemas/BillingInterval"
12361
12389
  }
12362
12390
  },
12363
12391
  "required": [
@@ -13203,6 +13231,88 @@
13203
13231
  }
13204
13232
  }
13205
13233
  },
13234
+ "/orgs/{organizationId}/sites/{siteId}/search": {
13235
+ "post": {
13236
+ "operationId": "searchSiteContent",
13237
+ "summary": "Search content in a site",
13238
+ "security": [
13239
+ {
13240
+ "user": []
13241
+ }
13242
+ ],
13243
+ "parameters": [
13244
+ {
13245
+ "$ref": "#/components/parameters/organizationId"
13246
+ },
13247
+ {
13248
+ "$ref": "#/components/parameters/siteId"
13249
+ },
13250
+ {
13251
+ "$ref": "#/components/parameters/listPage"
13252
+ },
13253
+ {
13254
+ "$ref": "#/components/parameters/listLimit"
13255
+ }
13256
+ ],
13257
+ "requestBody": {
13258
+ "required": true,
13259
+ "content": {
13260
+ "application/json": {
13261
+ "schema": {
13262
+ "type": "object",
13263
+ "properties": {
13264
+ "query": {
13265
+ "type": "string"
13266
+ },
13267
+ "siteSpaceIds": {
13268
+ "type": "array",
13269
+ "items": {
13270
+ "type": "string"
13271
+ }
13272
+ }
13273
+ },
13274
+ "required": [
13275
+ "query"
13276
+ ]
13277
+ }
13278
+ }
13279
+ }
13280
+ },
13281
+ "responses": {
13282
+ "200": {
13283
+ "description": "OK",
13284
+ "content": {
13285
+ "application/json": {
13286
+ "schema": {
13287
+ "allOf": [
13288
+ {
13289
+ "$ref": "#/components/schemas/List"
13290
+ },
13291
+ {
13292
+ "type": "object",
13293
+ "required": [
13294
+ "items"
13295
+ ],
13296
+ "properties": {
13297
+ "items": {
13298
+ "type": "array",
13299
+ "items": {
13300
+ "$ref": "#/components/schemas/SearchSpaceResult"
13301
+ }
13302
+ }
13303
+ }
13304
+ }
13305
+ ]
13306
+ }
13307
+ }
13308
+ }
13309
+ },
13310
+ "default": {
13311
+ "$ref": "#/components/responses/UnexpectedError"
13312
+ }
13313
+ }
13314
+ }
13315
+ },
13206
13316
  "/orgs/{organizationId}/sites/{siteId}/site-spaces/{siteSpaceId}": {
13207
13317
  "patch": {
13208
13318
  "operationId": "updateSiteSpaceById",
@@ -13430,6 +13540,47 @@
13430
13540
  }
13431
13541
  }
13432
13542
  },
13543
+ "/orgs/{organizationId}/sites/{siteId}/site-spaces/{siteSpaceId}/insights/content": {
13544
+ "get": {
13545
+ "operationId": "getContentAnalyticsForSiteSpaceById",
13546
+ "summary": "Get page traffic and ratings for a given site space.",
13547
+ "tags": [
13548
+ "analytics",
13549
+ "sites"
13550
+ ],
13551
+ "security": [
13552
+ {
13553
+ "user": []
13554
+ }
13555
+ ],
13556
+ "parameters": [
13557
+ {
13558
+ "$ref": "#/components/parameters/organizationId"
13559
+ },
13560
+ {
13561
+ "$ref": "#/components/parameters/siteId"
13562
+ },
13563
+ {
13564
+ "$ref": "#/components/parameters/siteSpaceId"
13565
+ }
13566
+ ],
13567
+ "responses": {
13568
+ "200": {
13569
+ "description": "Content analytics per page.",
13570
+ "content": {
13571
+ "application/json": {
13572
+ "schema": {
13573
+ "$ref": "#/components/schemas/AnalyticsContentPages"
13574
+ }
13575
+ }
13576
+ }
13577
+ },
13578
+ "default": {
13579
+ "$ref": "#/components/responses/UnexpectedError"
13580
+ }
13581
+ }
13582
+ }
13583
+ },
13433
13584
  "/orgs/{organizationId}/sites/{siteId}/site-spaces/{siteSpaceId}/move": {
13434
13585
  "post": {
13435
13586
  "operationId": "moveSiteSpace",
@@ -19550,7 +19701,7 @@
19550
19701
  "type": "string",
19551
19702
  "description": "Name of the organization",
19552
19703
  "minLength": 2,
19553
- "maxLength": 300
19704
+ "maxLength": 255
19554
19705
  },
19555
19706
  "OrganizationEmailDomains": {
19556
19707
  "type": "array",
@@ -26034,6 +26185,20 @@
26034
26185
  "required": [
26035
26186
  "result"
26036
26187
  ]
26188
+ },
26189
+ {
26190
+ "type": "object",
26191
+ "properties": {
26192
+ "result": {
26193
+ "type": "string",
26194
+ "enum": [
26195
+ "interval_changed"
26196
+ ]
26197
+ }
26198
+ },
26199
+ "required": [
26200
+ "result"
26201
+ ]
26037
26202
  }
26038
26203
  ]
26039
26204
  },
@@ -26904,7 +27069,7 @@
26904
27069
  "type": "string",
26905
27070
  "description": "Title of the site",
26906
27071
  "minLength": 2,
26907
- "maxLength": 50
27072
+ "maxLength": 128
26908
27073
  },
26909
27074
  "SiteHostname": {
26910
27075
  "type": "string",
@@ -26927,6 +27092,19 @@
26927
27092
  "visitor-auth"
26928
27093
  ]
26929
27094
  },
27095
+ "SiteAdsConfig": {
27096
+ "type": "object",
27097
+ "description": "The configuration for serving ads in the site",
27098
+ "properties": {
27099
+ "zone": {
27100
+ "type": "string",
27101
+ "description": "The ad network zone ID"
27102
+ }
27103
+ },
27104
+ "required": [
27105
+ "zone"
27106
+ ]
27107
+ },
26930
27108
  "Site": {
26931
27109
  "type": "object",
26932
27110
  "properties": {
@@ -26966,6 +27144,9 @@
26966
27144
  "type": "string",
26967
27145
  "format": "date-time"
26968
27146
  },
27147
+ "ads": {
27148
+ "$ref": "#/components/schemas/SiteAdsConfig"
27149
+ },
26969
27150
  "urls": {
26970
27151
  "type": "object",
26971
27152
  "description": "URLs associated with the object",
package/spec/openapi.yaml CHANGED
@@ -948,7 +948,7 @@ paths:
948
948
  $ref: "#/components/schemas/RevisionPage"
949
949
  default:
950
950
  $ref: "#/components/responses/UnexpectedError"
951
- "/spaces/{spaceId}/content/files/{pageId}/backlinks":
951
+ "/spaces/{spaceId}/content/pages/{pageId}/backlinks":
952
952
  get:
953
953
  operationId: listSpacePageBacklinks
954
954
  summary: Get backlink locations for a page existing in a space.
@@ -4215,6 +4215,7 @@ paths:
4215
4215
  - $ref: "#/components/parameters/organizationId"
4216
4216
  - $ref: "#/components/parameters/listPage"
4217
4217
  - $ref: "#/components/parameters/listLimit"
4218
+ - $ref: "#/components/parameters/listOrder"
4218
4219
  - name: role
4219
4220
  description: The Role to filter the member list by
4220
4221
  in: query
@@ -4501,6 +4502,7 @@ paths:
4501
4502
  title:
4502
4503
  $ref: "#/components/schemas/OrganizationTeamTitle"
4503
4504
  members:
4505
+ description: A list of organization member identifiers
4504
4506
  type: array
4505
4507
  items:
4506
4508
  type: string
@@ -6620,10 +6622,16 @@ paths:
6620
6622
  visibility:
6621
6623
  $ref: "#/components/schemas/SiteVisibility"
6622
6624
  spaces:
6623
- type: array
6624
- description: ID of spaces to be added to the site
6625
- items:
6626
- type: string
6625
+ oneOf:
6626
+ - type: array
6627
+ description: ID of spaces to be added to the site
6628
+ items:
6629
+ type: string
6630
+ - type: string
6631
+ description: Create a new space associated to the site
6632
+ enum:
6633
+ - sample
6634
+ - empty
6627
6635
  responses:
6628
6636
  "201":
6629
6637
  description: Site created
@@ -6877,6 +6885,11 @@ paths:
6877
6885
  parameters:
6878
6886
  - $ref: "#/components/parameters/organizationId"
6879
6887
  - $ref: "#/components/parameters/siteId"
6888
+ - in: query
6889
+ name: checkoutReturnURL
6890
+ description: The app screen URL to bring the user back to after checkout.
6891
+ schema:
6892
+ type: string
6880
6893
  requestBody:
6881
6894
  required: true
6882
6895
  content:
@@ -6886,6 +6899,9 @@ paths:
6886
6899
  properties:
6887
6900
  plan:
6888
6901
  $ref: "#/components/schemas/SiteType"
6902
+ interval:
6903
+ description: Desired interval for new subscriptions. Defaults to the existing billing interval.
6904
+ $ref: "#/components/schemas/BillingInterval"
6889
6905
  required:
6890
6906
  - plan
6891
6907
  responses:
@@ -7362,6 +7378,50 @@ paths:
7362
7378
  $ref: "#/components/schemas/SiteSpace"
7363
7379
  default:
7364
7380
  $ref: "#/components/responses/UnexpectedError"
7381
+ "/orgs/{organizationId}/sites/{siteId}/search":
7382
+ post:
7383
+ operationId: searchSiteContent
7384
+ summary: Search content in a site
7385
+ security:
7386
+ - user: []
7387
+ parameters:
7388
+ - $ref: "#/components/parameters/organizationId"
7389
+ - $ref: "#/components/parameters/siteId"
7390
+ - $ref: "#/components/parameters/listPage"
7391
+ - $ref: "#/components/parameters/listLimit"
7392
+ requestBody:
7393
+ required: true
7394
+ content:
7395
+ application/json:
7396
+ schema:
7397
+ type: object
7398
+ properties:
7399
+ query:
7400
+ type: string
7401
+ siteSpaceIds:
7402
+ type: array
7403
+ items:
7404
+ type: string
7405
+ required:
7406
+ - query
7407
+ responses:
7408
+ "200":
7409
+ description: OK
7410
+ content:
7411
+ application/json:
7412
+ schema:
7413
+ allOf:
7414
+ - $ref: "#/components/schemas/List"
7415
+ - type: object
7416
+ required:
7417
+ - items
7418
+ properties:
7419
+ items:
7420
+ type: array
7421
+ items:
7422
+ $ref: "#/components/schemas/SearchSpaceResult"
7423
+ default:
7424
+ $ref: "#/components/responses/UnexpectedError"
7365
7425
  "/orgs/{organizationId}/sites/{siteId}/site-spaces/{siteSpaceId}":
7366
7426
  patch:
7367
7427
  operationId: updateSiteSpaceById
@@ -7484,6 +7544,28 @@ paths:
7484
7544
  $ref: "#/components/responses/BadRequestError"
7485
7545
  default:
7486
7546
  $ref: "#/components/responses/UnexpectedError"
7547
+ "/orgs/{organizationId}/sites/{siteId}/site-spaces/{siteSpaceId}/insights/content":
7548
+ get:
7549
+ operationId: getContentAnalyticsForSiteSpaceById
7550
+ summary: Get page traffic and ratings for a given site space.
7551
+ tags:
7552
+ - analytics
7553
+ - sites
7554
+ security:
7555
+ - user: []
7556
+ parameters:
7557
+ - $ref: "#/components/parameters/organizationId"
7558
+ - $ref: "#/components/parameters/siteId"
7559
+ - $ref: "#/components/parameters/siteSpaceId"
7560
+ responses:
7561
+ "200":
7562
+ description: Content analytics per page.
7563
+ content:
7564
+ application/json:
7565
+ schema:
7566
+ $ref: "#/components/schemas/AnalyticsContentPages"
7567
+ default:
7568
+ $ref: "#/components/responses/UnexpectedError"
7487
7569
  "/orgs/{organizationId}/sites/{siteId}/site-spaces/{siteSpaceId}/move":
7488
7570
  post:
7489
7571
  operationId: moveSiteSpace
@@ -11500,7 +11582,7 @@ components:
11500
11582
  type: string
11501
11583
  description: Name of the organization
11502
11584
  minLength: 2
11503
- maxLength: 300
11585
+ maxLength: 255
11504
11586
  OrganizationEmailDomains:
11505
11587
  type: array
11506
11588
  items:
@@ -15784,6 +15866,14 @@ components:
15784
15866
  - downgraded
15785
15867
  required:
15786
15868
  - result
15869
+ - type: object
15870
+ properties:
15871
+ result:
15872
+ type: string
15873
+ enum:
15874
+ - interval_changed
15875
+ required:
15876
+ - result
15787
15877
  CreateSpace:
15788
15878
  type: object
15789
15879
  properties:
@@ -16359,7 +16449,7 @@ components:
16359
16449
  type: string
16360
16450
  description: Title of the site
16361
16451
  minLength: 2
16362
- maxLength: 50
16452
+ maxLength: 128
16363
16453
  SiteHostname:
16364
16454
  type: string
16365
16455
  description: Custom hostname for the site, for e.g. docs.mycompany.com
@@ -16382,6 +16472,15 @@ components:
16382
16472
  - unlisted
16383
16473
  - share-link
16384
16474
  - visitor-auth
16475
+ SiteAdsConfig:
16476
+ type: object
16477
+ description: The configuration for serving ads in the site
16478
+ properties:
16479
+ zone:
16480
+ type: string
16481
+ description: The ad network zone ID
16482
+ required:
16483
+ - zone
16385
16484
  Site:
16386
16485
  type: object
16387
16486
  properties:
@@ -16410,6 +16509,8 @@ components:
16410
16509
  createdAt:
16411
16510
  type: string
16412
16511
  format: date-time
16512
+ ads:
16513
+ $ref: "#/components/schemas/SiteAdsConfig"
16413
16514
  urls:
16414
16515
  type: object
16415
16516
  description: URLs associated with the object