@gitbook/api 0.119.0 → 0.120.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/spec/openapi.json CHANGED
@@ -340,13 +340,6 @@
340
340
  "x-page-description": "Bring your own fonts to personalize your documentation style.",
341
341
  "description": "Upload and manage custom fonts for branding or aesthetic purposes. Once added, fonts can be applied to your spaces or sites to achieve a unique look.\n\n{% openapi-schemas spec=\"gitbook\" schemas=\"CustomizationFontDefinition\" grouped=\"false\" %}\n The CustomizationFontDefinition object\n{% endopenapi-schemas %}\n"
342
342
  },
343
- {
344
- "name": "custom-fields",
345
- "x-page-icon": "table-columns",
346
- "x-page-title": "Custom fields",
347
- "x-page-description": "Append specialized metadata to your content through user-defined fields.",
348
- "description": "This API provides structured ways to enrich your docs with extra attributes. You can create and manage custom fields to store additional data.\n\n{% openapi-schemas spec=\"gitbook\" schemas=\"CustomFieldValues\" grouped=\"false\" %}\n The CustomFieldValues object\n{% endopenapi-schemas %}\n"
349
- },
350
343
  {
351
344
  "name": "billing",
352
345
  "x-page-icon": "credit-card",
@@ -1772,6 +1765,9 @@
1772
1765
  {
1773
1766
  "$ref": "#/components/parameters/documentFormat"
1774
1767
  },
1768
+ {
1769
+ "$ref": "#/components/parameters/documentEvaluated"
1770
+ },
1775
1771
  {
1776
1772
  "$ref": "#/components/parameters/revisionMetadata"
1777
1773
  },
@@ -1996,6 +1992,9 @@
1996
1992
  {
1997
1993
  "$ref": "#/components/parameters/documentFormat"
1998
1994
  },
1995
+ {
1996
+ "$ref": "#/components/parameters/documentEvaluated"
1997
+ },
1999
1998
  {
2000
1999
  "$ref": "#/components/parameters/revisionMetadata"
2001
2000
  },
@@ -3757,6 +3756,9 @@
3757
3756
  {
3758
3757
  "$ref": "#/components/parameters/documentFormat"
3759
3758
  },
3759
+ {
3760
+ "$ref": "#/components/parameters/documentEvaluated"
3761
+ },
3760
3762
  {
3761
3763
  "$ref": "#/components/parameters/revisionMetadata"
3762
3764
  },
@@ -3985,6 +3987,9 @@
3985
3987
  {
3986
3988
  "$ref": "#/components/parameters/documentFormat"
3987
3989
  },
3990
+ {
3991
+ "$ref": "#/components/parameters/documentEvaluated"
3992
+ },
3988
3993
  {
3989
3994
  "$ref": "#/components/parameters/revisionMetadata"
3990
3995
  },
@@ -4388,6 +4393,9 @@
4388
4393
  {
4389
4394
  "$ref": "#/components/parameters/documentFormat"
4390
4395
  },
4396
+ {
4397
+ "$ref": "#/components/parameters/documentEvaluated"
4398
+ },
4391
4399
  {
4392
4400
  "$ref": "#/components/parameters/revisionMetadata"
4393
4401
  },
@@ -4409,6 +4417,46 @@
4409
4417
  }
4410
4418
  }
4411
4419
  },
4420
+ "/spaces/{spaceId}/revisions/{revisionId}/page/{pageId}/document": {
4421
+ "get": {
4422
+ "operationId": "getPageDocumentInRevisionById",
4423
+ "summary": "Get the document of a page in a revision",
4424
+ "tags": [
4425
+ "space-content"
4426
+ ],
4427
+ "security": [
4428
+ {
4429
+ "user": []
4430
+ }
4431
+ ],
4432
+ "parameters": [
4433
+ {
4434
+ "$ref": "#/components/parameters/spaceId"
4435
+ },
4436
+ {
4437
+ "$ref": "#/components/parameters/revisionId"
4438
+ },
4439
+ {
4440
+ "$ref": "#/components/parameters/pageId"
4441
+ },
4442
+ {
4443
+ "$ref": "#/components/parameters/documentEvaluated"
4444
+ }
4445
+ ],
4446
+ "responses": {
4447
+ "200": {
4448
+ "description": "OK",
4449
+ "content": {
4450
+ "application/json": {
4451
+ "schema": {
4452
+ "$ref": "#/components/schemas/JSONDocument"
4453
+ }
4454
+ }
4455
+ }
4456
+ }
4457
+ }
4458
+ }
4459
+ },
4412
4460
  "/spaces/{spaceId}/revisions/{revisionId}/path/{pagePath}": {
4413
4461
  "get": {
4414
4462
  "operationId": "getPageInRevisionByPath",
@@ -4434,6 +4482,9 @@
4434
4482
  {
4435
4483
  "$ref": "#/components/parameters/documentFormat"
4436
4484
  },
4485
+ {
4486
+ "$ref": "#/components/parameters/documentEvaluated"
4487
+ },
4437
4488
  {
4438
4489
  "$ref": "#/components/parameters/revisionMetadata"
4439
4490
  },
@@ -5233,69 +5284,6 @@
5233
5284
  }
5234
5285
  }
5235
5286
  },
5236
- "/spaces/{spaceId}/custom-fields": {
5237
- "get": {
5238
- "operationId": "getSpaceCustomFields",
5239
- "summary": "Get a space custom fields",
5240
- "tags": [
5241
- "custom-fields"
5242
- ],
5243
- "security": [
5244
- {
5245
- "user": []
5246
- }
5247
- ],
5248
- "parameters": [
5249
- {
5250
- "$ref": "#/components/parameters/spaceId"
5251
- }
5252
- ],
5253
- "responses": {
5254
- "200": {
5255
- "description": "OK",
5256
- "content": {
5257
- "application/json": {
5258
- "schema": {
5259
- "$ref": "#/components/schemas/CustomFieldValues"
5260
- }
5261
- }
5262
- }
5263
- }
5264
- }
5265
- },
5266
- "patch": {
5267
- "operationId": "updateSpaceCustomFields",
5268
- "summary": "Update a space custom fields",
5269
- "tags": [
5270
- "custom-fields"
5271
- ],
5272
- "security": [
5273
- {
5274
- "user": []
5275
- }
5276
- ],
5277
- "parameters": [
5278
- {
5279
- "$ref": "#/components/parameters/spaceId"
5280
- }
5281
- ],
5282
- "requestBody": {
5283
- "required": true,
5284
- "content": {
5285
- "application/json": {
5286
- "schema": {
5287
- "$ref": "#/components/schemas/UpdateCustomFieldValues"
5288
- }
5289
- }
5290
- }
5291
- },
5292
- "responses": {
5293
- "204": {
5294
- "description": "Custom fields updated"
5295
- }
5296
- }
5297
- }
5298
- },
5299
5287
  "/spaces/{spaceId}/pdf": {
5300
5288
  "get": {
5301
5289
  "operationId": "getSpacePDF",
@@ -9044,269 +9032,6 @@
9044
9032
  }
9045
9033
  }
9046
9034
  },
9047
- "/orgs/{organizationId}/custom-fields": {
9048
- "get": {
9049
- "operationId": "listOrganizationCustomFields",
9050
- "summary": "List all custom fields",
9051
- "tags": [
9052
- "custom-fields"
9053
- ],
9054
- "security": [
9055
- {
9056
- "user": []
9057
- }
9058
- ],
9059
- "parameters": [
9060
- {
9061
- "$ref": "#/components/parameters/organizationId"
9062
- },
9063
- {
9064
- "$ref": "#/components/parameters/listPage"
9065
- },
9066
- {
9067
- "$ref": "#/components/parameters/listLimit"
9068
- }
9069
- ],
9070
- "responses": {
9071
- "200": {
9072
- "description": "OK",
9073
- "content": {
9074
- "application/json": {
9075
- "schema": {
9076
- "allOf": [
9077
- {
9078
- "$ref": "#/components/schemas/List"
9079
- },
9080
- {
9081
- "type": "object",
9082
- "required": [
9083
- "items"
9084
- ],
9085
- "properties": {
9086
- "items": {
9087
- "type": "array",
9088
- "items": {
9089
- "$ref": "#/components/schemas/CustomField"
9090
- }
9091
- }
9092
- }
9093
- }
9094
- ]
9095
- }
9096
- }
9097
- }
9098
- }
9099
- }
9100
- },
9101
- "post": {
9102
- "operationId": "createOrganizationCustomField",
9103
- "summary": "Create a custom field",
9104
- "tags": [
9105
- "custom-fields"
9106
- ],
9107
- "security": [
9108
- {
9109
- "user": []
9110
- }
9111
- ],
9112
- "parameters": [
9113
- {
9114
- "$ref": "#/components/parameters/organizationId"
9115
- }
9116
- ],
9117
- "requestBody": {
9118
- "required": true,
9119
- "content": {
9120
- "application/json": {
9121
- "schema": {
9122
- "type": "object",
9123
- "properties": {
9124
- "name": {
9125
- "$ref": "#/components/schemas/CustomFieldName"
9126
- },
9127
- "type": {
9128
- "$ref": "#/components/schemas/CustomFieldType"
9129
- },
9130
- "title": {
9131
- "$ref": "#/components/schemas/CustomFieldTitle"
9132
- },
9133
- "description": {
9134
- "$ref": "#/components/schemas/CustomFieldDescription"
9135
- },
9136
- "placeholder": {
9137
- "$ref": "#/components/schemas/CustomFieldPlaceholder"
9138
- },
9139
- "options": {
9140
- "$ref": "#/components/schemas/CustomFieldOptions"
9141
- }
9142
- },
9143
- "required": [
9144
- "name",
9145
- "type"
9146
- ]
9147
- }
9148
- }
9149
- }
9150
- },
9151
- "responses": {
9152
- "201": {
9153
- "description": "Custom field created",
9154
- "headers": {
9155
- "Location": {
9156
- "description": "API URL for the newly created custom field",
9157
- "schema": {
9158
- "type": "string"
9159
- }
9160
- }
9161
- },
9162
- "content": {
9163
- "application/json": {
9164
- "schema": {
9165
- "$ref": "#/components/schemas/CustomField"
9166
- }
9167
- }
9168
- }
9169
- }
9170
- }
9171
- }
9172
- },
9173
- "/orgs/{organizationId}/custom-fields/{fieldName}": {
9174
- "get": {
9175
- "operationId": "getOrganizationCustomFieldByName",
9176
- "summary": "Get a custom field by its name",
9177
- "tags": [
9178
- "custom-fields"
9179
- ],
9180
- "security": [
9181
- {
9182
- "user": []
9183
- }
9184
- ],
9185
- "parameters": [
9186
- {
9187
- "$ref": "#/components/parameters/organizationId"
9188
- },
9189
- {
9190
- "name": "fieldName",
9191
- "in": "path",
9192
- "required": true,
9193
- "description": "The name of the custom field",
9194
- "schema": {
9195
- "type": "string"
9196
- }
9197
- }
9198
- ],
9199
- "responses": {
9200
- "200": {
9201
- "description": "OK",
9202
- "content": {
9203
- "application/json": {
9204
- "schema": {
9205
- "$ref": "#/components/schemas/CustomField"
9206
- }
9207
- }
9208
- }
9209
- },
9210
- "404": {
9211
- "description": "No matching custom field found",
9212
- "$ref": "#/components/responses/NotFoundError"
9213
- }
9214
- }
9215
- },
9216
- "patch": {
9217
- "operationId": "updateOrganizationCustomField",
9218
- "summary": "Update a custom field",
9219
- "tags": [
9220
- "custom-fields"
9221
- ],
9222
- "security": [
9223
- {
9224
- "user": []
9225
- }
9226
- ],
9227
- "parameters": [
9228
- {
9229
- "$ref": "#/components/parameters/organizationId"
9230
- },
9231
- {
9232
- "name": "fieldName",
9233
- "in": "path",
9234
- "required": true,
9235
- "description": "The name of the custom field",
9236
- "schema": {
9237
- "type": "string"
9238
- }
9239
- }
9240
- ],
9241
- "requestBody": {
9242
- "required": true,
9243
- "content": {
9244
- "application/json": {
9245
- "schema": {
9246
- "type": "object",
9247
- "properties": {
9248
- "title": {
9249
- "$ref": "#/components/schemas/CustomFieldTitle"
9250
- },
9251
- "description": {
9252
- "$ref": "#/components/schemas/CustomFieldDescription"
9253
- },
9254
- "placeholder": {
9255
- "$ref": "#/components/schemas/CustomFieldPlaceholder"
9256
- },
9257
- "options": {
9258
- "$ref": "#/components/schemas/CustomFieldOptions"
9259
- }
9260
- }
9261
- }
9262
- }
9263
- }
9264
- },
9265
- "responses": {
9266
- "200": {
9267
- "description": "OK",
9268
- "content": {
9269
- "application/json": {
9270
- "schema": {
9271
- "$ref": "#/components/schemas/CustomField"
9272
- }
9273
- }
9274
- }
9275
- }
9276
- }
9277
- },
9278
- "delete": {
9279
- "operationId": "deleteOrganizationCustomField",
9280
- "summary": "Delete a custom field",
9281
- "tags": [
9282
- "custom-fields"
9283
- ],
9284
- "security": [
9285
- {
9286
- "user": []
9287
- }
9288
- ],
9289
- "parameters": [
9290
- {
9291
- "$ref": "#/components/parameters/organizationId"
9292
- },
9293
- {
9294
- "name": "fieldName",
9295
- "in": "path",
9296
- "required": true,
9297
- "description": "The name of the custom field",
9298
- "schema": {
9299
- "type": "string"
9300
- }
9301
- }
9302
- ],
9303
- "responses": {
9304
- "204": {
9305
- "description": "Custom field has been deleted"
9306
- }
9307
- }
9308
- }
9309
- },
9310
9035
  "/orgs/{organizationId}/integrations": {
9311
9036
  "get": {
9312
9037
  "operationId": "listOrganizationIntegrations",
@@ -12097,6 +11822,46 @@
12097
11822
  }
12098
11823
  }
12099
11824
  },
11825
+ "/orgs/{organizationId}/sites/{siteId}/adaptive-schema/template-conditions": {
11826
+ "get": {
11827
+ "operationId": "listSiteAdaptiveTemplateConditions",
11828
+ "summary": "List templates of conditions generated based on the site visitor schema that can be used in adaptive content expressions.",
11829
+ "tags": [
11830
+ "sites"
11831
+ ],
11832
+ "parameters": [
11833
+ {
11834
+ "$ref": "#/components/parameters/organizationId"
11835
+ },
11836
+ {
11837
+ "$ref": "#/components/parameters/siteId"
11838
+ }
11839
+ ],
11840
+ "responses": {
11841
+ "200": {
11842
+ "description": "List of template conditions generated based on the site visitor schema.",
11843
+ "content": {
11844
+ "application/json": {
11845
+ "schema": {
11846
+ "type": "object",
11847
+ "properties": {
11848
+ "items": {
11849
+ "type": "array",
11850
+ "items": {
11851
+ "$ref": "#/components/schemas/SiteAdaptiveTemplateCondition"
11852
+ }
11853
+ }
11854
+ },
11855
+ "required": [
11856
+ "items"
11857
+ ]
11858
+ }
11859
+ }
11860
+ }
11861
+ }
11862
+ }
11863
+ }
11864
+ },
12100
11865
  "/orgs/{organizationId}/sites/{siteId}/published": {
12101
11866
  "get": {
12102
11867
  "operationId": "getPublishedContentSite",
@@ -16082,6 +15847,15 @@
16082
15847
  ]
16083
15848
  }
16084
15849
  },
15850
+ "documentEvaluated": {
15851
+ "name": "evaluated",
15852
+ "in": "query",
15853
+ "description": "If `true` is passed, the document will be evaluated",
15854
+ "schema": {
15855
+ "type": "boolean",
15856
+ "default": false
15857
+ }
15858
+ },
16085
15859
  "pagePath": {
16086
15860
  "name": "pagePath",
16087
15861
  "in": "path",
@@ -18253,6 +18027,49 @@
18253
18027
  "isVoid"
18254
18028
  ]
18255
18029
  },
18030
+ "DocumentInlineExpression": {
18031
+ "type": "object",
18032
+ "properties": {
18033
+ "object": {
18034
+ "type": "string",
18035
+ "enum": [
18036
+ "inline"
18037
+ ]
18038
+ },
18039
+ "type": {
18040
+ "type": "string",
18041
+ "enum": [
18042
+ "expression"
18043
+ ]
18044
+ },
18045
+ "key": {
18046
+ "type": "string"
18047
+ },
18048
+ "data": {
18049
+ "type": "object",
18050
+ "properties": {
18051
+ "expression": {
18052
+ "type": "string"
18053
+ }
18054
+ },
18055
+ "required": [
18056
+ "expression"
18057
+ ]
18058
+ },
18059
+ "isVoid": {
18060
+ "type": "boolean",
18061
+ "enum": [
18062
+ true
18063
+ ]
18064
+ }
18065
+ },
18066
+ "required": [
18067
+ "object",
18068
+ "type",
18069
+ "data",
18070
+ "isVoid"
18071
+ ]
18072
+ },
18256
18073
  "DocumentInlineMath": {
18257
18074
  "type": "object",
18258
18075
  "properties": {
@@ -18353,6 +18170,9 @@
18353
18170
  {
18354
18171
  "$ref": "#/components/schemas/DocumentInlineEmoji"
18355
18172
  },
18173
+ {
18174
+ "$ref": "#/components/schemas/DocumentInlineExpression"
18175
+ },
18356
18176
  {
18357
18177
  "$ref": "#/components/schemas/DocumentInlineMath"
18358
18178
  },
@@ -21419,6 +21239,9 @@
21419
21239
  "cover": {
21420
21240
  "$ref": "#/components/schemas/RevisionPageDocumentCover"
21421
21241
  },
21242
+ "variables": {
21243
+ "$ref": "#/components/schemas/Variables"
21244
+ },
21422
21245
  "hidden": {
21423
21246
  "type": "boolean",
21424
21247
  "description": "If true, the page is not displayed in the navigation, while still being accessible.",
@@ -22038,13 +21861,34 @@
22038
21861
  },
22039
21862
  "yPos": {
22040
21863
  "description": "Vertical position of the cover image.",
22041
- "type": "number"
21864
+ "type": "number",
21865
+ "default": 0
22042
21866
  }
22043
21867
  },
22044
21868
  "required": [
22045
21869
  "yPos"
22046
21870
  ]
22047
21871
  },
21872
+ "VariableValue": {
21873
+ "oneOf": [
21874
+ {
21875
+ "type": "string",
21876
+ "maxLength": 256
21877
+ },
21878
+ {
21879
+ "type": "number"
21880
+ },
21881
+ {
21882
+ "type": "boolean"
21883
+ }
21884
+ ]
21885
+ },
21886
+ "Variables": {
21887
+ "type": "object",
21888
+ "additionalProperties": {
21889
+ "$ref": "#/components/schemas/VariableValue"
21890
+ }
21891
+ },
22048
21892
  "ComputedContentSourceDocumentOpenAPI": {
22049
21893
  "allOf": [
22050
21894
  {
@@ -22368,6 +22212,9 @@
22368
22212
  "$ref": "#/components/schemas/RevisionReusableContent"
22369
22213
  }
22370
22214
  },
22215
+ "variables": {
22216
+ "$ref": "#/components/schemas/Variables"
22217
+ },
22371
22218
  "createdAt": {
22372
22219
  "description": "When the revision was created.",
22373
22220
  "$ref": "#/components/schemas/Timestamp"
@@ -24366,57 +24213,14 @@
24366
24213
  }
24367
24214
  }
24368
24215
  },
24369
- "CustomFieldValue": {
24370
- "oneOf": [
24371
- {
24372
- "type": "string",
24373
- "maxLength": 256
24374
- },
24375
- {
24376
- "type": "number"
24377
- },
24378
- {
24379
- "type": "boolean"
24380
- },
24381
- {
24382
- "type": "array",
24383
- "items": {
24384
- "type": "string",
24385
- "maxLength": 256
24386
- }
24387
- }
24388
- ]
24389
- },
24390
- "ChangeAttributeCustomFields": {
24216
+ "ChangeAttributeVariables": {
24391
24217
  "type": "object",
24392
24218
  "properties": {
24393
24219
  "before": {
24394
- "type": "object",
24395
- "additionalProperties": {
24396
- "type": "object",
24397
- "properties": {
24398
- "value": {
24399
- "$ref": "#/components/schemas/CustomFieldValue"
24400
- }
24401
- },
24402
- "required": [
24403
- "value"
24404
- ]
24405
- }
24220
+ "$ref": "#/components/schemas/Variables"
24406
24221
  },
24407
24222
  "after": {
24408
- "type": "object",
24409
- "additionalProperties": {
24410
- "type": "object",
24411
- "properties": {
24412
- "value": {
24413
- "$ref": "#/components/schemas/CustomFieldValue"
24414
- }
24415
- },
24416
- "required": [
24417
- "value"
24418
- ]
24419
- }
24223
+ "$ref": "#/components/schemas/Variables"
24420
24224
  }
24421
24225
  }
24422
24226
  },
@@ -24445,8 +24249,8 @@
24445
24249
  "layout": {
24446
24250
  "$ref": "#/components/schemas/ChangeAttributeRevisionPageLayout"
24447
24251
  },
24448
- "customFields": {
24449
- "$ref": "#/components/schemas/ChangeAttributeCustomFields"
24252
+ "variables": {
24253
+ "$ref": "#/components/schemas/ChangeAttributeVariables"
24450
24254
  }
24451
24255
  }
24452
24256
  },
@@ -24462,9 +24266,6 @@
24462
24266
  },
24463
24267
  "slug": {
24464
24268
  "$ref": "#/components/schemas/ChangeAttributeString"
24465
- },
24466
- "customFields": {
24467
- "$ref": "#/components/schemas/ChangeAttributeCustomFields"
24468
24269
  }
24469
24270
  }
24470
24271
  },
@@ -24491,9 +24292,6 @@
24491
24292
  },
24492
24293
  "target": {
24493
24294
  "$ref": "#/components/schemas/ChangeAttributeContentReference"
24494
- },
24495
- "customFields": {
24496
- "$ref": "#/components/schemas/ChangeAttributeCustomFields"
24497
24295
  }
24498
24296
  }
24499
24297
  },
@@ -24716,22 +24514,36 @@
24716
24514
  "file"
24717
24515
  ]
24718
24516
  },
24719
- "RevisionSemanticChangeCustomFieldsEdited": {
24517
+ "ChangeAttributeVariable": {
24518
+ "type": "object",
24519
+ "properties": {
24520
+ "before": {
24521
+ "$ref": "#/components/schemas/VariableValue"
24522
+ },
24523
+ "after": {
24524
+ "$ref": "#/components/schemas/VariableValue"
24525
+ }
24526
+ }
24527
+ },
24528
+ "RevisionSemanticChangeVariablesEdited": {
24720
24529
  "type": "object",
24721
24530
  "properties": {
24722
24531
  "type": {
24723
24532
  "type": "string",
24724
24533
  "enum": [
24725
- "custom_fields_edited"
24534
+ "variables_edited"
24726
24535
  ]
24727
24536
  },
24728
- "customFields": {
24729
- "$ref": "#/components/schemas/ChangeAttributeCustomFields"
24537
+ "variables": {
24538
+ "type": "object",
24539
+ "additionalProperties": {
24540
+ "$ref": "#/components/schemas/ChangeAttributeVariable"
24541
+ }
24730
24542
  }
24731
24543
  },
24732
24544
  "required": [
24733
24545
  "type",
24734
- "customFields"
24546
+ "variables"
24735
24547
  ]
24736
24548
  },
24737
24549
  "ChangedRevisionReusableContent": {
@@ -24846,7 +24658,7 @@
24846
24658
  "$ref": "#/components/schemas/RevisionSemanticChangeFileDeleted"
24847
24659
  },
24848
24660
  {
24849
- "$ref": "#/components/schemas/RevisionSemanticChangeCustomFieldsEdited"
24661
+ "$ref": "#/components/schemas/RevisionSemanticChangeVariablesEdited"
24850
24662
  },
24851
24663
  {
24852
24664
  "$ref": "#/components/schemas/RevisionSemanticChangeReusableContentCreated"
@@ -25553,161 +25365,6 @@
25553
25365
  "cookies"
25554
25366
  ]
25555
25367
  },
25556
- "CustomFieldName": {
25557
- "type": "string",
25558
- "pattern": "^[a-z_\\-0-9]+$",
25559
- "minLength": 1,
25560
- "maxLength": 50
25561
- },
25562
- "CustomFieldTitle": {
25563
- "type": "string",
25564
- "maxLength": 100
25565
- },
25566
- "CustomFieldDescription": {
25567
- "type": "string",
25568
- "maxLength": 200
25569
- },
25570
- "CustomFieldType": {
25571
- "type": "string",
25572
- "enum": [
25573
- "text",
25574
- "number",
25575
- "boolean",
25576
- "tags",
25577
- "select:multi",
25578
- "select:single"
25579
- ]
25580
- },
25581
- "CustomFieldPlaceholder": {
25582
- "type": "string",
25583
- "maxLength": 100
25584
- },
25585
- "CustomFieldOptions": {
25586
- "type": "array",
25587
- "minItems": 1,
25588
- "maxItems": 50,
25589
- "items": {
25590
- "type": "string",
25591
- "minLength": 1,
25592
- "maxLength": 40
25593
- }
25594
- },
25595
- "CustomField": {
25596
- "type": "object",
25597
- "description": "Custom field",
25598
- "properties": {
25599
- "id": {
25600
- "type": "string"
25601
- },
25602
- "name": {
25603
- "$ref": "#/components/schemas/CustomFieldName"
25604
- },
25605
- "title": {
25606
- "$ref": "#/components/schemas/CustomFieldTitle"
25607
- },
25608
- "description": {
25609
- "$ref": "#/components/schemas/CustomFieldDescription"
25610
- },
25611
- "type": {
25612
- "$ref": "#/components/schemas/CustomFieldType"
25613
- },
25614
- "placeholder": {
25615
- "$ref": "#/components/schemas/CustomFieldPlaceholder"
25616
- },
25617
- "options": {
25618
- "$ref": "#/components/schemas/CustomFieldOptions"
25619
- },
25620
- "createdAt": {
25621
- "$ref": "#/components/schemas/Timestamp"
25622
- },
25623
- "updatedAt": {
25624
- "$ref": "#/components/schemas/Timestamp"
25625
- },
25626
- "urls": {
25627
- "type": "object",
25628
- "description": "URLs associated with the object",
25629
- "properties": {
25630
- "location": {
25631
- "type": "string",
25632
- "description": "URL of the custom field in the API",
25633
- "format": "uri"
25634
- }
25635
- },
25636
- "required": [
25637
- "location"
25638
- ]
25639
- },
25640
- "permissions": {
25641
- "type": "object",
25642
- "properties": {
25643
- "view": {
25644
- "type": "boolean",
25645
- "description": "Whether the user can view the object"
25646
- },
25647
- "edit": {
25648
- "type": "boolean",
25649
- "description": "Whether the user can edit the object"
25650
- }
25651
- },
25652
- "required": [
25653
- "view",
25654
- "edit"
25655
- ]
25656
- }
25657
- },
25658
- "required": [
25659
- "id",
25660
- "name",
25661
- "title",
25662
- "description",
25663
- "placeholder",
25664
- "type",
25665
- "createdAt",
25666
- "updatedAt",
25667
- "urls"
25668
- ]
25669
- },
25670
- "CustomFieldValues": {
25671
- "type": "array",
25672
- "items": {
25673
- "type": "object",
25674
- "properties": {
25675
- "customField": {
25676
- "$ref": "#/components/schemas/CustomField"
25677
- },
25678
- "value": {
25679
- "$ref": "#/components/schemas/CustomFieldValue"
25680
- }
25681
- },
25682
- "required": [
25683
- "customField"
25684
- ]
25685
- }
25686
- },
25687
- "UpdateCustomFieldValues": {
25688
- "type": "object",
25689
- "properties": {
25690
- "values": {
25691
- "type": "object",
25692
- "additionalProperties": {
25693
- "type": "object",
25694
- "maxProperties": 100,
25695
- "minProperties": 1,
25696
- "properties": {
25697
- "value": {
25698
- "$ref": "#/components/schemas/CustomFieldValue"
25699
- }
25700
- },
25701
- "required": [
25702
- "value"
25703
- ]
25704
- }
25705
- }
25706
- },
25707
- "required": [
25708
- "values"
25709
- ]
25710
- },
25711
25368
  "IntegrationSecrets": {
25712
25369
  "type": "object",
25713
25370
  "description": "Secrets stored on the integration and passed at runtime.",
@@ -31538,29 +31195,6 @@
31538
31195
  "required": [
31539
31196
  "type"
31540
31197
  ]
31541
- },
31542
- {
31543
- "type": "object",
31544
- "properties": {
31545
- "type": {
31546
- "description": "User needs to go through the legacy upgrade flow.",
31547
- "type": "string",
31548
- "enum": [
31549
- "legacy-upgrade"
31550
- ]
31551
- },
31552
- "plan": {
31553
- "description": "The plan the user must upgrade to.",
31554
- "$ref": "#/components/schemas/BillingProduct"
31555
- },
31556
- "invoice": {
31557
- "$ref": "#/components/schemas/BillingInvoicePreview"
31558
- }
31559
- },
31560
- "required": [
31561
- "type",
31562
- "plan"
31563
- ]
31564
31198
  }
31565
31199
  ]
31566
31200
  },
@@ -31746,6 +31380,24 @@
31746
31380
  "updatedAt"
31747
31381
  ]
31748
31382
  },
31383
+ "SiteAdaptiveTemplateCondition": {
31384
+ "type": "object",
31385
+ "description": "A template condition based on the site visitor schema.",
31386
+ "properties": {
31387
+ "description": {
31388
+ "type": "string",
31389
+ "description": "A short description of the suggested condition."
31390
+ },
31391
+ "condition": {
31392
+ "type": "string",
31393
+ "description": "The suggested condition."
31394
+ }
31395
+ },
31396
+ "required": [
31397
+ "description",
31398
+ "condition"
31399
+ ]
31400
+ },
31749
31401
  "CustomizationTheme": {
31750
31402
  "type": "string",
31751
31403
  "description": "The theme to apply to the site. Supercedes the old header preset themes.\n- `clean`: Modern theme featuring translucency and minimally-styled elements.\n- `muted`: Sophisticated theme with decreased contrast between elements.\n- `bold`: High-impact theme with prominent colors and strong contrasts.\n- `gradient`: Trendy theme featuring colorful gradients and splashes of color.\n",
@@ -37574,24 +37226,6 @@
37574
37226
  "space"
37575
37227
  ]
37576
37228
  },
37577
- "SpaceCustomFieldsChannel": {
37578
- "type": "object",
37579
- "properties": {
37580
- "channel": {
37581
- "type": "string",
37582
- "enum": [
37583
- "space-customfields"
37584
- ]
37585
- },
37586
- "space": {
37587
- "type": "string"
37588
- }
37589
- },
37590
- "required": [
37591
- "channel",
37592
- "space"
37593
- ]
37594
- },
37595
37229
  "SpaceContentRefsChannel": {
37596
37230
  "type": "object",
37597
37231
  "properties": {
@@ -37628,24 +37262,6 @@
37628
37262
  "space"
37629
37263
  ]
37630
37264
  },
37631
- "OrganizationCustomFieldsChannel": {
37632
- "type": "object",
37633
- "properties": {
37634
- "channel": {
37635
- "type": "string",
37636
- "enum": [
37637
- "organization-customfields"
37638
- ]
37639
- },
37640
- "organization": {
37641
- "type": "string"
37642
- }
37643
- },
37644
- "required": [
37645
- "channel",
37646
- "organization"
37647
- ]
37648
- },
37649
37265
  "UserAPITokensChannel": {
37650
37266
  "type": "object",
37651
37267
  "properties": {
@@ -38840,18 +38456,12 @@
38840
38456
  {
38841
38457
  "$ref": "#/components/schemas/SpacePublishingCustomizationChannel"
38842
38458
  },
38843
- {
38844
- "$ref": "#/components/schemas/SpaceCustomFieldsChannel"
38845
- },
38846
38459
  {
38847
38460
  "$ref": "#/components/schemas/SpaceContentRefsChannel"
38848
38461
  },
38849
38462
  {
38850
38463
  "$ref": "#/components/schemas/SpaceIntegrationsChannel"
38851
38464
  },
38852
- {
38853
- "$ref": "#/components/schemas/OrganizationCustomFieldsChannel"
38854
- },
38855
38465
  {
38856
38466
  "$ref": "#/components/schemas/UserAPITokensChannel"
38857
38467
  },
@@ -39194,6 +38804,12 @@
39194
38804
  "propertyName": "channel"
39195
38805
  }
39196
38806
  },
38807
+ "VariableName": {
38808
+ "type": "string",
38809
+ "pattern": "^[a-z_\\-0-9]+$",
38810
+ "minLength": 1,
38811
+ "maxLength": 50
38812
+ },
39197
38813
  "CustomizationSettings": {
39198
38814
  "type": "object",
39199
38815
  "properties": {
@@ -39232,15 +38848,10 @@
39232
38848
  "properties": {
39233
38849
  "locale": {
39234
38850
  "$ref": "#/components/schemas/CustomizationLocale"
39235
- },
39236
- "inherit": {
39237
- "type": "boolean",
39238
- "description": "Inherit locale from the parent collection."
39239
38851
  }
39240
38852
  },
39241
38853
  "required": [
39242
- "locale",
39243
- "inherit"
38854
+ "locale"
39244
38855
  ]
39245
38856
  },
39246
38857
  "favicon": {