@gitbook/api 0.65.0 → 0.67.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
@@ -1989,8 +1989,8 @@
1989
1989
  }
1990
1990
  },
1991
1991
  "/spaces/{spaceId}/content/computed/document": {
1992
- "post": {
1993
- "operationId": "computePageDocument",
1992
+ "get": {
1993
+ "operationId": "getComputedDocument",
1994
1994
  "summary": "Get the document for a page in a computed content.",
1995
1995
  "security": [
1996
1996
  {
@@ -2003,33 +2003,85 @@
2003
2003
  },
2004
2004
  {
2005
2005
  "$ref": "#/components/parameters/documentFormat"
2006
+ },
2007
+ {
2008
+ "name": "request",
2009
+ "in": "query",
2010
+ "required": true,
2011
+ "description": "LZ-string compressed JSON request",
2012
+ "schema": {
2013
+ "type": "string"
2014
+ }
2006
2015
  }
2007
2016
  ],
2008
- "requestBody": {
2009
- "required": true,
2010
- "content": {
2011
- "application/json": {
2012
- "schema": {
2013
- "type": "object",
2014
- "properties": {
2015
- "source": {
2016
- "$ref": "#/components/schemas/ComputedContentSource"
2017
- }
2018
- },
2019
- "required": [
2020
- "source"
2021
- ]
2017
+ "responses": {
2018
+ "200": {
2019
+ "description": "Document computed",
2020
+ "content": {
2021
+ "application/json": {
2022
+ "schema": {
2023
+ "$ref": "#/components/schemas/Document"
2024
+ }
2022
2025
  }
2023
2026
  }
2027
+ },
2028
+ "default": {
2029
+ "$ref": "#/components/responses/UnexpectedError"
2024
2030
  }
2025
- },
2031
+ }
2032
+ }
2033
+ },
2034
+ "/spaces/{spaceId}/content/computed/page": {
2035
+ "get": {
2036
+ "operationId": "getComputedPage",
2037
+ "summary": "Get the computed pages for a page in a computed content.",
2038
+ "security": [
2039
+ {
2040
+ "user": []
2041
+ }
2042
+ ],
2043
+ "parameters": [
2044
+ {
2045
+ "$ref": "#/components/parameters/spaceId"
2046
+ },
2047
+ {
2048
+ "$ref": "#/components/parameters/documentFormat"
2049
+ },
2050
+ {
2051
+ "name": "request",
2052
+ "in": "query",
2053
+ "required": true,
2054
+ "description": "LZ-string compressed JSON request",
2055
+ "schema": {
2056
+ "type": "string"
2057
+ }
2058
+ }
2059
+ ],
2026
2060
  "responses": {
2027
2061
  "200": {
2028
- "description": "Document computed",
2062
+ "description": "Computed pages and their associated files",
2029
2063
  "content": {
2030
2064
  "application/json": {
2031
2065
  "schema": {
2032
- "$ref": "#/components/schemas/Document"
2066
+ "type": "object",
2067
+ "properties": {
2068
+ "pages": {
2069
+ "type": "array",
2070
+ "items": {
2071
+ "$ref": "#/components/schemas/RevisionPage"
2072
+ }
2073
+ },
2074
+ "files": {
2075
+ "type": "array",
2076
+ "items": {
2077
+ "$ref": "#/components/schemas/RevisionFile"
2078
+ }
2079
+ }
2080
+ },
2081
+ "required": [
2082
+ "pages",
2083
+ "files"
2084
+ ]
2033
2085
  }
2034
2086
  }
2035
2087
  }
@@ -4042,6 +4094,65 @@
4042
4094
  }
4043
4095
  }
4044
4096
  },
4097
+ "/spaces/{spaceId}/change-requests/{changeRequestId}/synced-blocks/{syncedBlockId}/content": {
4098
+ "get": {
4099
+ "operationId": "getSyncedBlockContentInChangeRequest",
4100
+ "summary": "Get the content of a synced block in the context of a change request.",
4101
+ "tags": [
4102
+ "spaces"
4103
+ ],
4104
+ "security": [
4105
+ {
4106
+ "user": []
4107
+ }
4108
+ ],
4109
+ "parameters": [
4110
+ {
4111
+ "$ref": "#/components/parameters/spaceId"
4112
+ },
4113
+ {
4114
+ "$ref": "#/components/parameters/changeRequestId"
4115
+ },
4116
+ {
4117
+ "$ref": "#/components/parameters/syncedBlockId"
4118
+ }
4119
+ ],
4120
+ "responses": {
4121
+ "200": {
4122
+ "description": "OK",
4123
+ "content": {
4124
+ "application/json": {
4125
+ "schema": {
4126
+ "type": "object",
4127
+ "properties": {
4128
+ "document": {
4129
+ "$ref": "#/components/schemas/JSONDocument"
4130
+ },
4131
+ "files": {
4132
+ "type": "array",
4133
+ "items": {
4134
+ "$ref": "#/components/schemas/RevisionFile"
4135
+ }
4136
+ }
4137
+ },
4138
+ "required": [
4139
+ "document",
4140
+ "files"
4141
+ ]
4142
+ }
4143
+ }
4144
+ }
4145
+ },
4146
+ "404": {
4147
+ "description": "The space, change request, synced block or its content could not be found.",
4148
+ "$ref": "#/components/responses/NotFoundError"
4149
+ },
4150
+ "default": {
4151
+ "$ref": "#/components/responses/UnexpectedError"
4152
+ }
4153
+ }
4154
+ }
4155
+ },
4045
4156
  "/spaces/{spaceId}/revisions/{revisionId}": {
4046
4157
  "get": {
4047
4158
  "operationId": "getRevisionById",
@@ -8668,7 +8779,144 @@
8668
8779
  }
8669
8780
  }
8670
8781
  },
8782
+ "/orgs/{organizationId}/content-link-invites": {
8783
+ "get": {
8784
+ "operationId": "listOrganizationContentInviteLinks",
8785
+ "summary": "List invite links to content in an organization",
8786
+ "tags": [
8787
+ "organizations"
8788
+ ],
8789
+ "security": [
8790
+ {
8791
+ "user-internal": []
8792
+ }
8793
+ ],
8794
+ "parameters": [
8795
+ {
8796
+ "$ref": "#/components/parameters/organizationId"
8797
+ },
8798
+ {
8799
+ "$ref": "#/components/parameters/listPage"
8800
+ },
8801
+ {
8802
+ "$ref": "#/components/parameters/listLimit"
8803
+ },
8804
+ {
8805
+ "name": "space",
8806
+ "in": "query",
8807
+ "description": "If specified, only return invite links that provide specific permissions on the given space.",
8808
+ "schema": {
8809
+ "type": "string"
8810
+ }
8811
+ },
8812
+ {
8813
+ "name": "collection",
8814
+ "in": "query",
8815
+ "description": "If specified, only return invite links that provide permissions on the given collection.",
8816
+ "schema": {
8817
+ "type": "string"
8818
+ }
8819
+ }
8820
+ ],
8821
+ "responses": {
8822
+ "200": {
8823
+ "description": "List of invite links to content in the organization.",
8824
+ "content": {
8825
+ "application/json": {
8826
+ "schema": {
8827
+ "allOf": [
8828
+ {
8829
+ "$ref": "#/components/schemas/List"
8830
+ },
8831
+ {
8832
+ "type": "object",
8833
+ "required": [
8834
+ "items"
8835
+ ],
8836
+ "properties": {
8837
+ "items": {
8838
+ "type": "array",
8839
+ "items": {
8840
+ "oneOf": [
8841
+ {
8842
+ "$ref": "#/components/schemas/InviteLinkToCollection"
8843
+ },
8844
+ {
8845
+ "$ref": "#/components/schemas/InviteLinkToSpace"
8846
+ }
8847
+ ]
8848
+ }
8849
+ }
8850
+ }
8851
+ }
8852
+ ]
8853
+ }
8854
+ }
8855
+ }
8856
+ },
8857
+ "default": {
8858
+ "$ref": "#/components/responses/UnexpectedError"
8859
+ }
8860
+ }
8861
+ }
8862
+ },
8671
8863
  "/orgs/{organizationId}/link-invites": {
8864
+ "get": {
8865
+ "operationId": "listOrganizationInviteLinks",
8866
+ "summary": "List invite links to an organization",
8867
+ "tags": [
8868
+ "organizations"
8869
+ ],
8870
+ "security": [
8871
+ {
8872
+ "user": []
8873
+ }
8874
+ ],
8875
+ "parameters": [
8876
+ {
8877
+ "$ref": "#/components/parameters/organizationId"
8878
+ },
8879
+ {
8880
+ "$ref": "#/components/parameters/listPage"
8881
+ },
8882
+ {
8883
+ "$ref": "#/components/parameters/listLimit"
8884
+ }
8885
+ ],
8886
+ "responses": {
8887
+ "200": {
8888
+ "description": "List of invite links in the organization.",
8889
+ "content": {
8890
+ "application/json": {
8891
+ "schema": {
8892
+ "allOf": [
8893
+ {
8894
+ "$ref": "#/components/schemas/List"
8895
+ },
8896
+ {
8897
+ "type": "object",
8898
+ "required": [
8899
+ "items"
8900
+ ],
8901
+ "properties": {
8902
+ "items": {
8903
+ "type": "array",
8904
+ "items": {
8905
+ "$ref": "#/components/schemas/InviteLinkToOrganization"
8906
+ }
8907
+ }
8908
+ }
8909
+ }
8910
+ ]
8911
+ }
8912
+ }
8913
+ }
8914
+ },
8915
+ "default": {
8916
+ "$ref": "#/components/responses/UnexpectedError"
8917
+ }
8918
+ }
8919
+ },
8672
8920
  "post": {
8673
8921
  "operationId": "createOrganizationInvite",
8674
8922
  "summary": "Create a new organization invite",
@@ -8701,7 +8949,7 @@
8701
8949
  "content": {
8702
8950
  "application/json": {
8703
8951
  "schema": {
8704
- "$ref": "#/components/schemas/OrganizationInvite"
8952
+ "$ref": "#/components/schemas/OrganizationInviteLink"
8705
8953
  }
8706
8954
  }
8707
8955
  }
@@ -8773,7 +9021,7 @@
8773
9021
  "content": {
8774
9022
  "application/json": {
8775
9023
  "schema": {
8776
- "$ref": "#/components/schemas/OrganizationInvite"
9024
+ "$ref": "#/components/schemas/OrganizationInviteLink"
8777
9025
  }
8778
9026
  }
8779
9027
  }
@@ -9093,14 +9341,6 @@
9093
9341
  },
9094
9342
  {
9095
9343
  "$ref": "#/components/parameters/listLimit"
9096
- },
9097
- {
9098
- "name": "visibility",
9099
- "in": "query",
9100
- "description": "If defined, only content with this visibility will be returned.",
9101
- "schema": {
9102
- "$ref": "#/components/schemas/ContentVisibility"
9103
- }
9104
9344
  }
9105
9345
  ],
9106
9346
  "responses": {
@@ -11498,7 +11738,7 @@
11498
11738
  "/orgs/{organizationId}/synced-blocks/{syncedBlockId}/content": {
11499
11739
  "get": {
11500
11740
  "operationId": "getSyncedBlockContent",
11501
- "summary": "Get a synced block content",
11741
+ "summary": "Get the content of a synced block.",
11502
11742
  "tags": [
11503
11743
  "organizations"
11504
11744
  ],
@@ -11541,6 +11781,10 @@
11541
11781
  }
11542
11782
  }
11543
11783
  },
11784
+ "404": {
11785
+ "description": "The synced block or its content could not be found.",
11786
+ "$ref": "#/components/responses/NotFoundError"
11787
+ },
11544
11788
  "default": {
11545
11789
  "$ref": "#/components/responses/UnexpectedError"
11546
11790
  }
@@ -15542,6 +15786,15 @@
15542
15786
  "type": "string"
15543
15787
  }
15544
15788
  },
15789
+ "syncedBlockId": {
15790
+ "name": "syncedBlockId",
15791
+ "in": "path",
15792
+ "required": true,
15793
+ "description": "The unique id of a synced block",
15794
+ "schema": {
15795
+ "type": "string"
15796
+ }
15797
+ },
15545
15798
  "revisionId": {
15546
15799
  "name": "revisionId",
15547
15800
  "in": "path",
@@ -15694,15 +15947,6 @@
15694
15947
  "format": "date-time"
15695
15948
  }
15696
15949
  },
15697
- "syncedBlockId": {
15698
- "name": "syncedBlockId",
15699
- "in": "path",
15700
- "required": true,
15701
- "description": "The unique id of a synced block",
15702
- "schema": {
15703
- "type": "string"
15704
- }
15705
- },
15706
15950
  "siteCustomizationUnmasked": {
15707
15951
  "name": "unmasked",
15708
15952
  "in": "query",
@@ -18419,12 +18663,12 @@
18419
18663
  },
18420
18664
  {
18421
18665
  "type": "object",
18422
- "description": "Action to submit the current flow the user is in.",
18666
+ "description": "Action to complete the current flow the user is in.",
18423
18667
  "properties": {
18424
18668
  "action": {
18425
18669
  "type": "string",
18426
18670
  "enum": [
18427
- "@ui.submit"
18671
+ "@ui.complete"
18428
18672
  ]
18429
18673
  },
18430
18674
  "returnValue": {
@@ -22334,12 +22578,23 @@
22334
22578
  "broken"
22335
22579
  ]
22336
22580
  },
22581
+ "ContentReferenceRelation": {
22582
+ "type": "string",
22583
+ "enum": [
22584
+ "reference",
22585
+ "dependsOn"
22586
+ ],
22587
+ "description": "Indicator of the relationship with the content ref target.\n- `reference` - The content soft-references the ref target\n- `dependsOn` - The content depends on the ref target\n"
22588
+ },
22337
22589
  "ContentReferenceUsage": {
22338
22590
  "type": "object",
22339
22591
  "properties": {
22340
22592
  "status": {
22341
22593
  "$ref": "#/components/schemas/ContentReferenceStatus"
22342
22594
  },
22595
+ "relation": {
22596
+ "$ref": "#/components/schemas/ContentReferenceRelation"
22597
+ },
22343
22598
  "targetReference": {
22344
22599
  "description": "The reference target where a list of pages are pointing at",
22345
22600
  "$ref": "#/components/schemas/ContentLocation"
@@ -22353,6 +22608,7 @@
22353
22608
  }
22354
22609
  },
22355
22610
  "required": [
22611
+ "relation",
22356
22612
  "status",
22357
22613
  "locationReferences"
22358
22614
  ]
@@ -23349,6 +23605,94 @@
23349
23605
  "customFields"
23350
23606
  ]
23351
23607
  },
23608
+ "ChangedRevisionReusableContent": {
23609
+ "type": "object",
23610
+ "properties": {
23611
+ "id": {
23612
+ "type": "string"
23613
+ },
23614
+ "title": {
23615
+ "type": "string"
23616
+ },
23617
+ "document": {
23618
+ "type": "string"
23619
+ }
23620
+ },
23621
+ "required": [
23622
+ "id",
23623
+ "title"
23624
+ ]
23625
+ },
23626
+ "RevisionSemanticChangeReusableContentCreated": {
23627
+ "type": "object",
23628
+ "properties": {
23629
+ "type": {
23630
+ "type": "string",
23631
+ "enum": [
23632
+ "reusable_content_created"
23633
+ ]
23634
+ },
23635
+ "reusableContent": {
23636
+ "$ref": "#/components/schemas/ChangedRevisionReusableContent"
23637
+ }
23638
+ },
23639
+ "required": [
23640
+ "type",
23641
+ "reusableContent"
23642
+ ]
23643
+ },
23644
+ "RevisionSemanticChangeReusableContentDeleted": {
23645
+ "type": "object",
23646
+ "properties": {
23647
+ "type": {
23648
+ "type": "string",
23649
+ "enum": [
23650
+ "reusable_content_deleted"
23651
+ ]
23652
+ },
23653
+ "reusableContent": {
23654
+ "$ref": "#/components/schemas/ChangedRevisionReusableContent"
23655
+ }
23656
+ },
23657
+ "required": [
23658
+ "type",
23659
+ "reusableContent"
23660
+ ]
23661
+ },
23662
+ "RevisionReusableContentChangeAttributes": {
23663
+ "type": "object",
23664
+ "minProperties": 1,
23665
+ "properties": {
23666
+ "title": {
23667
+ "$ref": "#/components/schemas/ChangeAttributeString"
23668
+ },
23669
+ "document": {
23670
+ "$ref": "#/components/schemas/ChangeAttributeString"
23671
+ }
23672
+ }
23673
+ },
23674
+ "RevisionSemanticChangeReusableContentEdited": {
23675
+ "type": "object",
23676
+ "properties": {
23677
+ "type": {
23678
+ "type": "string",
23679
+ "enum": [
23680
+ "reusable_content_edited"
23681
+ ]
23682
+ },
23683
+ "reusableContent": {
23684
+ "$ref": "#/components/schemas/ChangedRevisionReusableContent"
23685
+ },
23686
+ "attributes": {
23687
+ "$ref": "#/components/schemas/RevisionReusableContentChangeAttributes"
23688
+ }
23689
+ },
23690
+ "required": [
23691
+ "type",
23692
+ "reusableContent",
23693
+ "attributes"
23694
+ ]
23695
+ },
23352
23696
  "RevisionSemanticChange": {
23353
23697
  "oneOf": [
23354
23698
  {
@@ -23374,6 +23718,15 @@
23374
23718
  },
23375
23719
  {
23376
23720
  "$ref": "#/components/schemas/RevisionSemanticChangeCustomFieldsEdited"
23721
+ },
23722
+ {
23723
+ "$ref": "#/components/schemas/RevisionSemanticChangeReusableContentCreated"
23724
+ },
23725
+ {
23726
+ "$ref": "#/components/schemas/RevisionSemanticChangeReusableContentDeleted"
23727
+ },
23728
+ {
23729
+ "$ref": "#/components/schemas/RevisionSemanticChangeReusableContentEdited"
23377
23730
  }
23378
23731
  ]
23379
23732
  },
@@ -25172,6 +25525,10 @@
25172
25525
  "organizationId": {
25173
25526
  "type": "string",
25174
25527
  "description": "ID of the organization the content source installation configuration is in."
25528
+ },
25529
+ "spaceId": {
25530
+ "type": "string",
25531
+ "description": "Optional ID of the space the content source installation configuration is in."
25175
25532
  }
25176
25533
  },
25177
25534
  "required": [
@@ -26789,10 +27146,16 @@
26789
27146
  "propertyName": "type"
26790
27147
  }
26791
27148
  },
26792
- "ContentKitRenderOutput": {
27149
+ "ContentKitRenderOutputElement": {
26793
27150
  "type": "object",
26794
- "description": "Output of the integration when rendering an UI.",
27151
+ "description": "Output of type element in the lifecycle of the component.",
26795
27152
  "properties": {
27153
+ "type": {
27154
+ "type": "string",
27155
+ "enum": [
27156
+ "element"
27157
+ ]
27158
+ },
26796
27159
  "element": {
26797
27160
  "$ref": "#/components/schemas/ContentKitRootElement"
26798
27161
  },
@@ -26809,6 +27172,36 @@
26809
27172
  "props"
26810
27173
  ]
26811
27174
  },
27175
+ "ContentKitRenderOutputComplete": {
27176
+ "type": "object",
27177
+ "description": "Output of completed lifecycle of the component.",
27178
+ "properties": {
27179
+ "type": {
27180
+ "type": "string",
27181
+ "enum": [
27182
+ "complete"
27183
+ ]
27184
+ },
27185
+ "returnValue": {
27186
+ "type": "object"
27187
+ }
27188
+ },
27189
+ "required": [
27190
+ "type"
27191
+ ]
27192
+ },
27193
+ "ContentKitRenderOutput": {
27194
+ "type": "object",
27195
+ "description": "Output of the integration when rendering a UI.",
27196
+ "oneOf": [
27197
+ {
27198
+ "$ref": "#/components/schemas/ContentKitRenderOutputElement"
27199
+ },
27200
+ {
27201
+ "$ref": "#/components/schemas/ContentKitRenderOutputComplete"
27202
+ }
27203
+ ]
27204
+ },
26812
27205
  "RenderIntegrationUI": {
26813
27206
  "type": "object",
26814
27207
  "properties": {
@@ -27184,66 +27577,97 @@
27184
27577
  "emails"
27185
27578
  ]
27186
27579
  },
27187
- "CreateInviteToOrganization": {
27580
+ "InviteLinkToCollection": {
27188
27581
  "type": "object",
27582
+ "description": "An invite link to a specific collection in an organization",
27189
27583
  "properties": {
27190
- "role": {
27584
+ "object": {
27585
+ "type": "string",
27586
+ "description": "Type of Object, always equals to \"invite\"",
27587
+ "enum": [
27588
+ "invite"
27589
+ ]
27590
+ },
27591
+ "id": {
27592
+ "type": "string",
27593
+ "description": "Unique identifier for the invite link to the collection"
27594
+ },
27595
+ "level": {
27191
27596
  "$ref": "#/components/schemas/MemberRoleOrGuest",
27192
- "description": "The role of the member in the organization"
27597
+ "description": "The level of the member in the target collection"
27598
+ },
27599
+ "collection": {
27600
+ "$ref": "#/components/schemas/Collection",
27601
+ "description": "The collection the member has been invited to"
27193
27602
  }
27194
27603
  },
27195
27604
  "required": [
27196
- "role"
27605
+ "object",
27606
+ "id",
27607
+ "target",
27608
+ "level",
27609
+ "collection"
27197
27610
  ]
27198
27611
  },
27199
- "CreateInviteToSpace": {
27612
+ "InviteLinkToSpace": {
27200
27613
  "type": "object",
27614
+ "description": "An invite link to a specific space in an organization",
27201
27615
  "properties": {
27616
+ "object": {
27617
+ "type": "string",
27618
+ "description": "Type of Object, always equals to \"invite\"",
27619
+ "enum": [
27620
+ "invite"
27621
+ ]
27622
+ },
27623
+ "id": {
27624
+ "type": "string",
27625
+ "description": "Unique identifier for the invite link to the space"
27626
+ },
27202
27627
  "level": {
27203
27628
  "$ref": "#/components/schemas/MemberRoleOrGuest",
27204
27629
  "description": "The level of the member in the target space"
27205
27630
  },
27206
27631
  "space": {
27207
- "type": "string",
27208
- "description": "The ID of space the member has been invited to"
27632
+ "$ref": "#/components/schemas/Space",
27633
+ "description": "The space the member has been invited to"
27209
27634
  }
27210
27635
  },
27211
27636
  "required": [
27637
+ "object",
27638
+ "id",
27639
+ "target",
27212
27640
  "level",
27213
27641
  "space"
27214
27642
  ]
27215
27643
  },
27216
- "CreateInviteToCollection": {
27644
+ "InviteLinkToOrganization": {
27217
27645
  "type": "object",
27646
+ "description": "An invite link to an organization",
27218
27647
  "properties": {
27219
- "level": {
27220
- "$ref": "#/components/schemas/MemberRoleOrGuest",
27221
- "description": "The level of the member in the target collection"
27648
+ "object": {
27649
+ "type": "string",
27650
+ "description": "Type of Object, always equals to \"invite\"",
27651
+ "enum": [
27652
+ "invite"
27653
+ ]
27222
27654
  },
27223
- "collection": {
27655
+ "id": {
27224
27656
  "type": "string",
27225
- "description": "The ID of collection the member has been invited to"
27657
+ "description": "Unique identifier for the invite link to the organization"
27658
+ },
27659
+ "role": {
27660
+ "$ref": "#/components/schemas/MemberRoleOrGuest",
27661
+ "description": "The role of the member in the organization"
27226
27662
  }
27227
27663
  },
27228
27664
  "required": [
27229
- "level",
27230
- "collection"
27231
- ]
27232
- },
27233
- "CreateOrganizationInvite": {
27234
- "oneOf": [
27235
- {
27236
- "$ref": "#/components/schemas/CreateInviteToOrganization"
27237
- },
27238
- {
27239
- "$ref": "#/components/schemas/CreateInviteToSpace"
27240
- },
27241
- {
27242
- "$ref": "#/components/schemas/CreateInviteToCollection"
27243
- }
27665
+ "object",
27666
+ "id",
27667
+ "role"
27244
27668
  ]
27245
27669
  },
27246
- "InviteToOrganization": {
27670
+ "CreateInviteToOrganization": {
27247
27671
  "type": "object",
27248
27672
  "properties": {
27249
27673
  "role": {
@@ -27255,7 +27679,7 @@
27255
27679
  "role"
27256
27680
  ]
27257
27681
  },
27258
- "InviteToSpace": {
27682
+ "CreateInviteToSpace": {
27259
27683
  "type": "object",
27260
27684
  "properties": {
27261
27685
  "level": {
@@ -27263,8 +27687,8 @@
27263
27687
  "description": "The level of the member in the target space"
27264
27688
  },
27265
27689
  "space": {
27266
- "$ref": "#/components/schemas/Space",
27267
- "description": "The space the member has been invited to"
27690
+ "type": "string",
27691
+ "description": "The ID of space the member has been invited to"
27268
27692
  }
27269
27693
  },
27270
27694
  "required": [
@@ -27272,7 +27696,7 @@
27272
27696
  "space"
27273
27697
  ]
27274
27698
  },
27275
- "InviteToCollection": {
27699
+ "CreateInviteToCollection": {
27276
27700
  "type": "object",
27277
27701
  "properties": {
27278
27702
  "level": {
@@ -27280,8 +27704,8 @@
27280
27704
  "description": "The level of the member in the target collection"
27281
27705
  },
27282
27706
  "collection": {
27283
- "$ref": "#/components/schemas/Collection",
27284
- "description": "The collection the member has been invited to"
27707
+ "type": "string",
27708
+ "description": "The ID of collection the member has been invited to"
27285
27709
  }
27286
27710
  },
27287
27711
  "required": [
@@ -27289,40 +27713,31 @@
27289
27713
  "collection"
27290
27714
  ]
27291
27715
  },
27292
- "OrganizationInvite": {
27293
- "allOf": [
27716
+ "CreateOrganizationInvite": {
27717
+ "oneOf": [
27294
27718
  {
27295
- "type": "object",
27296
- "properties": {
27297
- "object": {
27298
- "type": "string",
27299
- "description": "Type of Object, always equals to \"invite\"",
27300
- "enum": [
27301
- "invite"
27302
- ]
27303
- },
27304
- "id": {
27305
- "type": "string",
27306
- "description": "Unique identifier for the organization invite"
27307
- }
27308
- },
27309
- "required": [
27310
- "object",
27311
- "id"
27312
- ]
27719
+ "$ref": "#/components/schemas/CreateInviteToOrganization"
27313
27720
  },
27314
27721
  {
27315
- "oneOf": [
27316
- {
27317
- "$ref": "#/components/schemas/InviteToOrganization"
27318
- },
27319
- {
27320
- "$ref": "#/components/schemas/InviteToSpace"
27321
- },
27322
- {
27323
- "$ref": "#/components/schemas/InviteToCollection"
27324
- }
27325
- ]
27722
+ "$ref": "#/components/schemas/CreateInviteToSpace"
27723
+ },
27724
+ {
27725
+ "$ref": "#/components/schemas/CreateInviteToCollection"
27726
+ }
27727
+ ]
27728
+ },
27729
+ "OrganizationInviteLink": {
27730
+ "type": "object",
27731
+ "description": "An invite link created in an organization",
27732
+ "oneOf": [
27733
+ {
27734
+ "$ref": "#/components/schemas/InviteLinkToOrganization"
27735
+ },
27736
+ {
27737
+ "$ref": "#/components/schemas/InviteLinkToSpace"
27738
+ },
27739
+ {
27740
+ "$ref": "#/components/schemas/InviteLinkToCollection"
27326
27741
  }
27327
27742
  ]
27328
27743
  },
@@ -27806,13 +28221,18 @@
27806
28221
  "ultimate": {
27807
28222
  "description": "Count of all ultimate sites",
27808
28223
  "type": "number"
28224
+ },
28225
+ "sponsored": {
28226
+ "description": "Count of all sponsored sites",
28227
+ "type": "number"
27809
28228
  }
27810
28229
  },
27811
28230
  "required": [
27812
28231
  "total",
27813
28232
  "basic",
27814
28233
  "premium",
27815
- "ultimate"
28234
+ "ultimate",
28235
+ "sponsored"
27816
28236
  ]
27817
28237
  }
27818
28238
  ]
@@ -28320,6 +28740,7 @@
28320
28740
  "basic",
28321
28741
  "premium",
28322
28742
  "ultimate",
28743
+ "sponsored",
28323
28744
  "legacy-basic",
28324
28745
  "legacy-premium"
28325
28746
  ]
@@ -29861,6 +30282,70 @@
29861
30282
  }
29862
30283
  ]
29863
30284
  },
30285
+ "PublishedSiteContent": {
30286
+ "type": "object",
30287
+ "title": "Site Content",
30288
+ "properties": {
30289
+ "site": {
30290
+ "type": "string",
30291
+ "description": "ID of the site matching."
30292
+ },
30293
+ "siteSection": {
30294
+ "type": "string",
30295
+ "description": "ID of the site-section matching."
30296
+ },
30297
+ "siteSpace": {
30298
+ "type": "string",
30299
+ "description": "ID of the site-space matching."
30300
+ },
30301
+ "space": {
30302
+ "type": "string",
30303
+ "description": "ID of the space matching."
30304
+ },
30305
+ "changeRequest": {
30306
+ "type": "string",
30307
+ "description": "Identifier of the change request being previewed in this URL."
30308
+ },
30309
+ "revision": {
30310
+ "type": "string",
30311
+ "description": "Identifier of the revision being previewed in this URL."
30312
+ },
30313
+ "pathname": {
30314
+ "type": "string",
30315
+ "description": "Path of the content relative to the space"
30316
+ },
30317
+ "basePath": {
30318
+ "type": "string",
30319
+ "description": "Prefix of the path in the URL dedicated to the space"
30320
+ },
30321
+ "apiToken": {
30322
+ "type": "string",
30323
+ "description": "Short-lived API token to fetch content related to the space in the context of the URL."
30324
+ },
30325
+ "organization": {
30326
+ "type": "string",
30327
+ "description": "ID of the organization."
30328
+ },
30329
+ "shareKey": {
30330
+ "type": "string",
30331
+ "description": "Share link key of the site in case the site was published with share-links."
30332
+ },
30333
+ "complete": {
30334
+ "type": "boolean",
30335
+ "description": "Whether the resolved site URL is complete and at it's terminal point, meaning no more site path segments can be further expected before any page path segments."
30336
+ }
30337
+ },
30338
+ "required": [
30339
+ "site",
30340
+ "siteSpace",
30341
+ "space",
30342
+ "pathname",
30343
+ "basePath",
30344
+ "apiToken",
30345
+ "organization",
30346
+ "complete"
30347
+ ]
30348
+ },
29864
30349
  "PublishedSiteContentLookup": {
29865
30350
  "oneOf": [
29866
30351
  {
@@ -29886,64 +30371,7 @@
29886
30371
  ]
29887
30372
  },
29888
30373
  {
29889
- "type": "object",
29890
- "title": "Content",
29891
- "properties": {
29892
- "site": {
29893
- "type": "string",
29894
- "description": "ID of the site matching."
29895
- },
29896
- "siteSpace": {
29897
- "type": "string",
29898
- "description": "ID of the site-space matching."
29899
- },
29900
- "space": {
29901
- "type": "string",
29902
- "description": "ID of the space matching."
29903
- },
29904
- "changeRequest": {
29905
- "type": "string",
29906
- "description": "Identifier of the change request being previewed in this URL."
29907
- },
29908
- "revision": {
29909
- "type": "string",
29910
- "description": "Identifier of the revision being previewed in this URL."
29911
- },
29912
- "pathname": {
29913
- "type": "string",
29914
- "description": "Path of the content relative to the space"
29915
- },
29916
- "basePath": {
29917
- "type": "string",
29918
- "description": "Prefix of the path in the URL dedicated to the space"
29919
- },
29920
- "apiToken": {
29921
- "type": "string",
29922
- "description": "Short-lived API token to fetch content related to the space in the context of the URL."
29923
- },
29924
- "organization": {
29925
- "type": "string",
29926
- "description": "ID of the organization."
29927
- },
29928
- "shareKey": {
29929
- "type": "string",
29930
- "description": "Share link key of the site in case the site was published with share-links."
29931
- },
29932
- "complete": {
29933
- "type": "boolean",
29934
- "description": "Whether the resolved site URL is complete and at it's terminal point, meaning no more site path segments can be further expected before any page path segments."
29935
- }
29936
- },
29937
- "required": [
29938
- "site",
29939
- "siteSpace",
29940
- "space",
29941
- "pathname",
29942
- "basePath",
29943
- "apiToken",
29944
- "organization",
29945
- "complete"
29946
- ]
30374
+ "$ref": "#/components/schemas/PublishedSiteContent"
29947
30375
  }
29948
30376
  ]
29949
30377
  },
@@ -30981,6 +31409,24 @@
30981
31409
  "organization"
30982
31410
  ]
30983
31411
  },
31412
+ "OrganizationInviteLinksChannel": {
31413
+ "type": "object",
31414
+ "properties": {
31415
+ "channel": {
31416
+ "type": "string",
31417
+ "enum": [
31418
+ "organization-link-invites"
31419
+ ]
31420
+ },
31421
+ "organization": {
31422
+ "type": "string"
31423
+ }
31424
+ },
31425
+ "required": [
31426
+ "channel",
31427
+ "organization"
31428
+ ]
31429
+ },
30984
31430
  "OrganizationMembersChannel": {
30985
31431
  "type": "object",
30986
31432
  "properties": {
@@ -31827,6 +32273,9 @@
31827
32273
  {
31828
32274
  "$ref": "#/components/schemas/OrganizationInfoChannel"
31829
32275
  },
32276
+ {
32277
+ "$ref": "#/components/schemas/OrganizationInviteLinksChannel"
32278
+ },
31830
32279
  {
31831
32280
  "$ref": "#/components/schemas/OrganizationMembersChannel"
31832
32281
  },