@gitbook/api 0.15.0 → 0.16.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
@@ -214,6 +214,15 @@
214
214
  "type": "string"
215
215
  }
216
216
  },
217
+ "snippetId": {
218
+ "name": "snippetId",
219
+ "in": "path",
220
+ "required": true,
221
+ "description": "The unique id of a snippet",
222
+ "schema": {
223
+ "type": "string"
224
+ }
225
+ },
217
226
  "userId": {
218
227
  "name": "userId",
219
228
  "in": "path",
@@ -241,6 +250,15 @@
241
250
  "type": "string"
242
251
  }
243
252
  },
253
+ "fileId": {
254
+ "name": "fileId",
255
+ "in": "path",
256
+ "required": true,
257
+ "description": "The unique id of the file",
258
+ "schema": {
259
+ "type": "string"
260
+ }
261
+ },
244
262
  "pagePath": {
245
263
  "name": "pagePath",
246
264
  "in": "path",
@@ -5875,9 +5893,9 @@
5875
5893
  {
5876
5894
  "type": "string",
5877
5895
  "enum": [
5878
- "meeting",
5879
5896
  "thread",
5880
- "walkthrough"
5897
+ "walkthrough",
5898
+ "document"
5881
5899
  ]
5882
5900
  }
5883
5901
  ]
@@ -6123,6 +6141,115 @@
6123
6141
  }
6124
6142
  }
6125
6143
  },
6144
+ "Snippet": {
6145
+ "allOf": [
6146
+ {
6147
+ "$ref": "#/components/schemas/Document"
6148
+ },
6149
+ {
6150
+ "type": "object",
6151
+ "properties": {
6152
+ "id": {
6153
+ "type": "string",
6154
+ "description": "Unique identifier for the snippet"
6155
+ },
6156
+ "createdAt": {
6157
+ "type": "string",
6158
+ "format": "date-time"
6159
+ },
6160
+ "editedAt": {
6161
+ "type": "string",
6162
+ "format": "date-time",
6163
+ "description": "Timestamp of when the snippet was last edited, if it has been edited since its creation."
6164
+ },
6165
+ "title": {
6166
+ "type": "string",
6167
+ "description": "Title describing the snippet.",
6168
+ "maxLength": 100
6169
+ },
6170
+ "source": {
6171
+ "description": "The source of the snippet.",
6172
+ "type": "object",
6173
+ "properties": {
6174
+ "sourceId": {
6175
+ "type": "string",
6176
+ "description": "An ID identifying the source, unique across all sources."
6177
+ },
6178
+ "name": {
6179
+ "type": "string",
6180
+ "description": "A display name for the source."
6181
+ },
6182
+ "externalId": {
6183
+ "type": "string",
6184
+ "description": "An ID identifying the snippet in the source system, if available."
6185
+ },
6186
+ "externalUrl": {
6187
+ "description": "URL of the snippet in the source system, if available.",
6188
+ "$ref": "#/components/schemas/URL"
6189
+ }
6190
+ },
6191
+ "required": [
6192
+ "sourceId",
6193
+ "name"
6194
+ ]
6195
+ },
6196
+ "contributors": {
6197
+ "description": "An array of contributors to the snippet, which can be either users or integrations. The first contributor is the one who created the snippet.",
6198
+ "type": "array",
6199
+ "minItems": 1,
6200
+ "items": {
6201
+ "oneOf": [
6202
+ {
6203
+ "$ref": "#/components/schemas/Integration"
6204
+ },
6205
+ {
6206
+ "$ref": "#/components/schemas/User"
6207
+ }
6208
+ ]
6209
+ }
6210
+ },
6211
+ "urls": {
6212
+ "type": "object",
6213
+ "description": "URLs associated with the object",
6214
+ "properties": {
6215
+ "location": {
6216
+ "description": "URL of the snippet in the API",
6217
+ "$ref": "#/components/schemas/URL"
6218
+ },
6219
+ "app": {
6220
+ "description": "URL of the snippet in the app",
6221
+ "$ref": "#/components/schemas/URL"
6222
+ }
6223
+ },
6224
+ "required": [
6225
+ "location",
6226
+ "app"
6227
+ ]
6228
+ }
6229
+ },
6230
+ "required": [
6231
+ "id",
6232
+ "source",
6233
+ "createdAt",
6234
+ "contributors",
6235
+ "urls"
6236
+ ]
6237
+ }
6238
+ ]
6239
+ },
6240
+ "UpdateSnippetSchema": {
6241
+ "type": "object",
6242
+ "properties": {
6243
+ "title": {
6244
+ "type": "string",
6245
+ "description": "A new title for the snippet."
6246
+ },
6247
+ "body": {
6248
+ "description": "Content of the snippet.",
6249
+ "$ref": "#/components/schemas/Document"
6250
+ }
6251
+ }
6252
+ },
6126
6253
  "ContentAuditRelation": {
6127
6254
  "type": "object",
6128
6255
  "description": "Content audit relation",
@@ -7269,6 +7396,7 @@
7269
7396
  "type": "string",
7270
7397
  "enum": [
7271
7398
  "entities:write",
7399
+ "snippets:read",
7272
7400
  "capture:write",
7273
7401
  "space:views:read",
7274
7402
  "space:content:read",
@@ -12413,34 +12541,6 @@
12413
12541
  }
12414
12542
  }
12415
12543
  }
12416
- },
12417
- "ContentFilesResponse": {
12418
- "description": "OK",
12419
- "content": {
12420
- "application/json": {
12421
- "schema": {
12422
- "allOf": [
12423
- {
12424
- "$ref": "#/components/schemas/List"
12425
- },
12426
- {
12427
- "type": "object",
12428
- "required": [
12429
- "items"
12430
- ],
12431
- "properties": {
12432
- "items": {
12433
- "type": "array",
12434
- "items": {
12435
- "$ref": "#/components/schemas/RevisionFile"
12436
- }
12437
- }
12438
- }
12439
- }
12440
- ]
12441
- }
12442
- }
12443
- }
12444
12544
  }
12445
12545
  }
12446
12546
  },
@@ -13397,9 +13497,48 @@
13397
13497
  }
13398
13498
  }
13399
13499
  },
13500
+ "/spaces/{spaceId}/content/pages": {
13501
+ "get": {
13502
+ "summary": "List all pages for the main revision content of a space",
13503
+ "operationId": "listPages",
13504
+ "security": [
13505
+ {
13506
+ "user": []
13507
+ }
13508
+ ],
13509
+ "parameters": [
13510
+ {
13511
+ "$ref": "#/components/parameters/spaceId"
13512
+ }
13513
+ ],
13514
+ "responses": {
13515
+ "200": {
13516
+ "description": "OK",
13517
+ "content": {
13518
+ "application/json": {
13519
+ "schema": {
13520
+ "type": "object",
13521
+ "properties": {
13522
+ "pages": {
13523
+ "type": "array",
13524
+ "items": {
13525
+ "$ref": "#/components/schemas/RevisionPage"
13526
+ }
13527
+ }
13528
+ }
13529
+ }
13530
+ }
13531
+ }
13532
+ },
13533
+ "default": {
13534
+ "$ref": "#/components/responses/UnexpectedError"
13535
+ }
13536
+ }
13537
+ }
13538
+ },
13400
13539
  "/spaces/{spaceId}/content/files": {
13401
13540
  "get": {
13402
- "summary": "List all files for the latest primary revision content for a space",
13541
+ "summary": "List all files for the main revision content of a space",
13403
13542
  "operationId": "listFiles",
13404
13543
  "security": [
13405
13544
  {
@@ -13419,7 +13558,66 @@
13419
13558
  ],
13420
13559
  "responses": {
13421
13560
  "200": {
13422
- "$ref": "#/components/responses/ContentFilesResponse"
13561
+ "description": "OK",
13562
+ "content": {
13563
+ "application/json": {
13564
+ "schema": {
13565
+ "allOf": [
13566
+ {
13567
+ "$ref": "#/components/schemas/List"
13568
+ },
13569
+ {
13570
+ "type": "object",
13571
+ "required": [
13572
+ "items"
13573
+ ],
13574
+ "properties": {
13575
+ "items": {
13576
+ "type": "array",
13577
+ "items": {
13578
+ "$ref": "#/components/schemas/RevisionFile"
13579
+ }
13580
+ }
13581
+ }
13582
+ }
13583
+ ]
13584
+ }
13585
+ }
13586
+ }
13587
+ },
13588
+ "default": {
13589
+ "$ref": "#/components/responses/UnexpectedError"
13590
+ }
13591
+ }
13592
+ }
13593
+ },
13594
+ "/spaces/{spaceId}/content/files/{fileId}": {
13595
+ "get": {
13596
+ "summary": "Get a file by its ID in the main revision of a space",
13597
+ "operationId": "getFileById",
13598
+ "security": [
13599
+ {
13600
+ "user": []
13601
+ }
13602
+ ],
13603
+ "parameters": [
13604
+ {
13605
+ "$ref": "#/components/parameters/spaceId"
13606
+ },
13607
+ {
13608
+ "$ref": "#/components/parameters/fileId"
13609
+ }
13610
+ ],
13611
+ "responses": {
13612
+ "200": {
13613
+ "description": "OK",
13614
+ "content": {
13615
+ "application/json": {
13616
+ "schema": {
13617
+ "$ref": "#/components/schemas/RevisionFile"
13618
+ }
13619
+ }
13620
+ }
13423
13621
  },
13424
13622
  "default": {
13425
13623
  "$ref": "#/components/responses/UnexpectedError"
@@ -14736,10 +14934,10 @@
14736
14934
  }
14737
14935
  }
14738
14936
  },
14739
- "/spaces/{spaceId}/change-requests/{changeRequestId}/content/files": {
14937
+ "/spaces/{spaceId}/change-requests/{changeRequestId}/content/pages": {
14740
14938
  "get": {
14741
- "summary": "List all files in the latest content of the change-request",
14742
- "operationId": "listFilesInChangeRequestById",
14939
+ "summary": "List all pages in the content of a change request",
14940
+ "operationId": "listPagesInChangeRequest",
14743
14941
  "security": [
14744
14942
  {
14745
14943
  "user": []
@@ -14751,17 +14949,26 @@
14751
14949
  },
14752
14950
  {
14753
14951
  "$ref": "#/components/parameters/changeRequestId"
14754
- },
14755
- {
14756
- "$ref": "#/components/parameters/listPage"
14757
- },
14758
- {
14759
- "$ref": "#/components/parameters/listLimit"
14760
14952
  }
14761
14953
  ],
14762
14954
  "responses": {
14763
14955
  "200": {
14764
- "$ref": "#/components/responses/ContentFilesResponse"
14956
+ "description": "OK",
14957
+ "content": {
14958
+ "application/json": {
14959
+ "schema": {
14960
+ "type": "object",
14961
+ "properties": {
14962
+ "pages": {
14963
+ "type": "array",
14964
+ "items": {
14965
+ "$ref": "#/components/schemas/RevisionPage"
14966
+ }
14967
+ }
14968
+ }
14969
+ }
14970
+ }
14971
+ }
14765
14972
  },
14766
14973
  "default": {
14767
14974
  "$ref": "#/components/responses/UnexpectedError"
@@ -14769,10 +14976,10 @@
14769
14976
  }
14770
14977
  }
14771
14978
  },
14772
- "/spaces/{spaceId}/change-requests/{changeRequestId}/content/page/{pageId}": {
14979
+ "/spaces/{spaceId}/change-requests/{changeRequestId}/content/files": {
14773
14980
  "get": {
14774
- "operationId": "getPageInChangeRequestById",
14775
- "summary": "Get a page by its ID in a change request.",
14981
+ "summary": "List all files in a change request content",
14982
+ "operationId": "listFilesInChangeRequestById",
14776
14983
  "security": [
14777
14984
  {
14778
14985
  "user": []
@@ -14786,10 +14993,10 @@
14786
14993
  "$ref": "#/components/parameters/changeRequestId"
14787
14994
  },
14788
14995
  {
14789
- "$ref": "#/components/parameters/pageId"
14996
+ "$ref": "#/components/parameters/listPage"
14790
14997
  },
14791
14998
  {
14792
- "$ref": "#/components/parameters/pageFormat"
14999
+ "$ref": "#/components/parameters/listLimit"
14793
15000
  }
14794
15001
  ],
14795
15002
  "responses": {
@@ -14798,7 +15005,25 @@
14798
15005
  "content": {
14799
15006
  "application/json": {
14800
15007
  "schema": {
14801
- "$ref": "#/components/schemas/RevisionPage"
15008
+ "allOf": [
15009
+ {
15010
+ "$ref": "#/components/schemas/List"
15011
+ },
15012
+ {
15013
+ "type": "object",
15014
+ "required": [
15015
+ "items"
15016
+ ],
15017
+ "properties": {
15018
+ "items": {
15019
+ "type": "array",
15020
+ "items": {
15021
+ "$ref": "#/components/schemas/RevisionFile"
15022
+ }
15023
+ }
15024
+ }
15025
+ }
15026
+ ]
14802
15027
  }
14803
15028
  }
14804
15029
  }
@@ -14809,10 +15034,10 @@
14809
15034
  }
14810
15035
  }
14811
15036
  },
14812
- "/spaces/{spaceId}/change-requests/{changeRequestId}/content/page/{pageId}/import": {
14813
- "post": {
14814
- "operationId": "importContentInChangeRequestPageById",
14815
- "summary": "Import external content into a page of a change-request by its ID.",
15037
+ "/spaces/{spaceId}/change-requests/{changeRequestId}/content/files/{fileId}": {
15038
+ "get": {
15039
+ "summary": "Get a file by its ID in the content of a change request",
15040
+ "operationId": "getFileInChangeRequestById",
14816
15041
  "security": [
14817
15042
  {
14818
15043
  "user": []
@@ -14826,13 +15051,90 @@
14826
15051
  "$ref": "#/components/parameters/changeRequestId"
14827
15052
  },
14828
15053
  {
14829
- "$ref": "#/components/parameters/pageId"
15054
+ "$ref": "#/components/parameters/fileId"
14830
15055
  }
14831
15056
  ],
14832
15057
  "responses": {
14833
- "201": {
14834
- "description": "Content imported in a new revision",
14835
- "headers": {
15058
+ "200": {
15059
+ "description": "OK",
15060
+ "content": {
15061
+ "application/json": {
15062
+ "schema": {
15063
+ "$ref": "#/components/schemas/RevisionFile"
15064
+ }
15065
+ }
15066
+ }
15067
+ },
15068
+ "default": {
15069
+ "$ref": "#/components/responses/UnexpectedError"
15070
+ }
15071
+ }
15072
+ }
15073
+ },
15074
+ "/spaces/{spaceId}/change-requests/{changeRequestId}/content/page/{pageId}": {
15075
+ "get": {
15076
+ "operationId": "getPageInChangeRequestById",
15077
+ "summary": "Get a page by its ID in a change request.",
15078
+ "security": [
15079
+ {
15080
+ "user": []
15081
+ }
15082
+ ],
15083
+ "parameters": [
15084
+ {
15085
+ "$ref": "#/components/parameters/spaceId"
15086
+ },
15087
+ {
15088
+ "$ref": "#/components/parameters/changeRequestId"
15089
+ },
15090
+ {
15091
+ "$ref": "#/components/parameters/pageId"
15092
+ },
15093
+ {
15094
+ "$ref": "#/components/parameters/pageFormat"
15095
+ }
15096
+ ],
15097
+ "responses": {
15098
+ "200": {
15099
+ "description": "OK",
15100
+ "content": {
15101
+ "application/json": {
15102
+ "schema": {
15103
+ "$ref": "#/components/schemas/RevisionPage"
15104
+ }
15105
+ }
15106
+ }
15107
+ },
15108
+ "default": {
15109
+ "$ref": "#/components/responses/UnexpectedError"
15110
+ }
15111
+ }
15112
+ }
15113
+ },
15114
+ "/spaces/{spaceId}/change-requests/{changeRequestId}/content/page/{pageId}/import": {
15115
+ "post": {
15116
+ "operationId": "importContentInChangeRequestPageById",
15117
+ "summary": "Import external content into a page of a change-request by its ID.",
15118
+ "security": [
15119
+ {
15120
+ "user": []
15121
+ }
15122
+ ],
15123
+ "parameters": [
15124
+ {
15125
+ "$ref": "#/components/parameters/spaceId"
15126
+ },
15127
+ {
15128
+ "$ref": "#/components/parameters/changeRequestId"
15129
+ },
15130
+ {
15131
+ "$ref": "#/components/parameters/pageId"
15132
+ }
15133
+ ],
15134
+ "responses": {
15135
+ "201": {
15136
+ "description": "Content imported in a new revision",
15137
+ "headers": {
14836
15138
  "Location": {
14837
15139
  "description": "API URL for the newly created revision",
14838
15140
  "schema": {
@@ -15012,6 +15314,45 @@
15012
15314
  }
15013
15315
  }
15014
15316
  },
15317
+ "/spaces/{spaceId}/revisions/{revisionId}/pages": {
15318
+ "get": {
15319
+ "summary": "List all pages in a revision",
15320
+ "operationId": "listPagesInRevisionById",
15321
+ "security": [
15322
+ {
15323
+ "user": []
15324
+ }
15325
+ ],
15326
+ "parameters": [
15327
+ {
15328
+ "$ref": "#/components/parameters/spaceId"
15329
+ }
15330
+ ],
15331
+ "responses": {
15332
+ "200": {
15333
+ "description": "OK",
15334
+ "content": {
15335
+ "application/json": {
15336
+ "schema": {
15337
+ "type": "object",
15338
+ "properties": {
15339
+ "pages": {
15340
+ "type": "array",
15341
+ "items": {
15342
+ "$ref": "#/components/schemas/RevisionPage"
15343
+ }
15344
+ }
15345
+ }
15346
+ }
15347
+ }
15348
+ }
15349
+ },
15350
+ "default": {
15351
+ "$ref": "#/components/responses/UnexpectedError"
15352
+ }
15353
+ }
15354
+ }
15355
+ },
15015
15356
  "/spaces/{spaceId}/revisions/{revisionId}/files": {
15016
15357
  "get": {
15017
15358
  "summary": "List all files in a revision",
@@ -15037,7 +15378,69 @@
15037
15378
  ],
15038
15379
  "responses": {
15039
15380
  "200": {
15040
- "$ref": "#/components/responses/ContentFilesResponse"
15381
+ "description": "OK",
15382
+ "content": {
15383
+ "application/json": {
15384
+ "schema": {
15385
+ "allOf": [
15386
+ {
15387
+ "$ref": "#/components/schemas/List"
15388
+ },
15389
+ {
15390
+ "type": "object",
15391
+ "required": [
15392
+ "items"
15393
+ ],
15394
+ "properties": {
15395
+ "items": {
15396
+ "type": "array",
15397
+ "items": {
15398
+ "$ref": "#/components/schemas/RevisionFile"
15399
+ }
15400
+ }
15401
+ }
15402
+ }
15403
+ ]
15404
+ }
15405
+ }
15406
+ }
15407
+ },
15408
+ "default": {
15409
+ "$ref": "#/components/responses/UnexpectedError"
15410
+ }
15411
+ }
15412
+ }
15413
+ },
15414
+ "/spaces/{spaceId}/revisions/{revisionId}/files/{fileId}": {
15415
+ "get": {
15416
+ "summary": "Get a file in a revision by its ID",
15417
+ "operationId": "getFileInRevisionById",
15418
+ "security": [
15419
+ {
15420
+ "user": []
15421
+ }
15422
+ ],
15423
+ "parameters": [
15424
+ {
15425
+ "$ref": "#/components/parameters/spaceId"
15426
+ },
15427
+ {
15428
+ "$ref": "#/components/parameters/revisionId"
15429
+ },
15430
+ {
15431
+ "$ref": "#/components/parameters/fileId"
15432
+ }
15433
+ ],
15434
+ "responses": {
15435
+ "200": {
15436
+ "description": "OK",
15437
+ "content": {
15438
+ "application/json": {
15439
+ "schema": {
15440
+ "$ref": "#/components/schemas/RevisionFile"
15441
+ }
15442
+ }
15443
+ }
15041
15444
  },
15042
15445
  "default": {
15043
15446
  "$ref": "#/components/responses/UnexpectedError"
@@ -19935,7 +20338,8 @@
19935
20338
  "/orgs/{organizationId}/captures": {
19936
20339
  "get": {
19937
20340
  "operationId": "listCaptures",
19938
- "summary": "List captures",
20341
+ "deprecated": true,
20342
+ "summary": "List captures. Deprecated, use listSnippets instead.",
19939
20343
  "description": "List captures in an organization, newest first.\n",
19940
20344
  "tags": [
19941
20345
  "organizations"
@@ -20078,7 +20482,8 @@
20078
20482
  "/orgs/{organizationId}/captures/{captureId}": {
20079
20483
  "get": {
20080
20484
  "operationId": "getCapture",
20081
- "summary": "Get a capture by its ID",
20485
+ "deprecated": true,
20486
+ "summary": "Get a capture by its ID. Deprecated, use getSnippet instead.",
20082
20487
  "tags": [
20083
20488
  "organizations"
20084
20489
  ],
@@ -20116,7 +20521,8 @@
20116
20521
  },
20117
20522
  "delete": {
20118
20523
  "operationId": "deleteCapture",
20119
- "summary": "Delete a capture by its ID",
20524
+ "deprecated": true,
20525
+ "summary": "Delete a capture by its ID. Deprecated, use deleteSnippet.",
20120
20526
  "tags": [
20121
20527
  "organizations"
20122
20528
  ],
@@ -20144,7 +20550,8 @@
20144
20550
  },
20145
20551
  "put": {
20146
20552
  "operationId": "updateCapture",
20147
- "summary": "Update an existing capture",
20553
+ "deprecated": true,
20554
+ "summary": "Update an existing capture. Deprecated, use updateSnippet.",
20148
20555
  "tags": [
20149
20556
  "organizations"
20150
20557
  ],
@@ -20306,6 +20713,241 @@
20306
20713
  }
20307
20714
  }
20308
20715
  },
20716
+ "/orgs/{organizationId}/snippets": {
20717
+ "get": {
20718
+ "operationId": "listSnippets",
20719
+ "summary": "Lists snippets.",
20720
+ "description": "List snippets in an organization, newest first.\n",
20721
+ "tags": [
20722
+ "organizations"
20723
+ ],
20724
+ "security": [
20725
+ {
20726
+ "user": []
20727
+ }
20728
+ ],
20729
+ "parameters": [
20730
+ {
20731
+ "$ref": "#/components/parameters/organizationId"
20732
+ },
20733
+ {
20734
+ "$ref": "#/components/parameters/pageFormat"
20735
+ },
20736
+ {
20737
+ "$ref": "#/components/parameters/listPage"
20738
+ },
20739
+ {
20740
+ "$ref": "#/components/parameters/listLimit"
20741
+ },
20742
+ {
20743
+ "name": "source",
20744
+ "in": "query",
20745
+ "description": "If specified, only snippets from the specified source will be returned.",
20746
+ "schema": {
20747
+ "type": "string"
20748
+ }
20749
+ }
20750
+ ],
20751
+ "responses": {
20752
+ "200": {
20753
+ "description": "OK",
20754
+ "content": {
20755
+ "application/json": {
20756
+ "schema": {
20757
+ "allOf": [
20758
+ {
20759
+ "$ref": "#/components/schemas/List"
20760
+ },
20761
+ {
20762
+ "type": "object",
20763
+ "required": [
20764
+ "items"
20765
+ ],
20766
+ "properties": {
20767
+ "items": {
20768
+ "type": "array",
20769
+ "items": {
20770
+ "$ref": "#/components/schemas/Snippet"
20771
+ }
20772
+ }
20773
+ }
20774
+ }
20775
+ ]
20776
+ }
20777
+ }
20778
+ }
20779
+ },
20780
+ "default": {
20781
+ "$ref": "#/components/responses/UnexpectedError"
20782
+ }
20783
+ }
20784
+ },
20785
+ "post": {
20786
+ "operationId": "createSnippet",
20787
+ "summary": "Create a new snippet",
20788
+ "tags": [
20789
+ "organizations"
20790
+ ],
20791
+ "security": [
20792
+ {
20793
+ "user": []
20794
+ }
20795
+ ],
20796
+ "parameters": [
20797
+ {
20798
+ "$ref": "#/components/parameters/organizationId"
20799
+ }
20800
+ ],
20801
+ "requestBody": {
20802
+ "content": {
20803
+ "application/json": {
20804
+ "schema": {
20805
+ "type": "object"
20806
+ }
20807
+ }
20808
+ }
20809
+ },
20810
+ "responses": {
20811
+ "201": {
20812
+ "description": "Snippet created",
20813
+ "headers": {
20814
+ "Location": {
20815
+ "description": "API URL for the newly created snippet",
20816
+ "schema": {
20817
+ "type": "string"
20818
+ }
20819
+ }
20820
+ },
20821
+ "content": {
20822
+ "application/json": {
20823
+ "schema": {
20824
+ "$ref": "#/components/schemas/Snippet"
20825
+ }
20826
+ }
20827
+ }
20828
+ },
20829
+ "default": {
20830
+ "$ref": "#/components/responses/UnexpectedError"
20831
+ }
20832
+ }
20833
+ }
20834
+ },
20835
+ "/orgs/{organizationId}/snippets/{snippetId}": {
20836
+ "get": {
20837
+ "operationId": "getSnippet",
20838
+ "summary": "Get a snippet by its ID",
20839
+ "tags": [
20840
+ "organizations"
20841
+ ],
20842
+ "security": [
20843
+ {
20844
+ "user": []
20845
+ }
20846
+ ],
20847
+ "parameters": [
20848
+ {
20849
+ "$ref": "#/components/parameters/organizationId"
20850
+ },
20851
+ {
20852
+ "$ref": "#/components/parameters/snippetId"
20853
+ },
20854
+ {
20855
+ "$ref": "#/components/parameters/pageFormat"
20856
+ }
20857
+ ],
20858
+ "responses": {
20859
+ "200": {
20860
+ "description": "OK",
20861
+ "content": {
20862
+ "application/json": {
20863
+ "schema": {
20864
+ "$ref": "#/components/schemas/Snippet"
20865
+ }
20866
+ }
20867
+ }
20868
+ },
20869
+ "default": {
20870
+ "$ref": "#/components/responses/UnexpectedError"
20871
+ }
20872
+ }
20873
+ },
20874
+ "delete": {
20875
+ "operationId": "deleteSnippet",
20876
+ "summary": "Delete a snippet by its ID.",
20877
+ "tags": [
20878
+ "organizations"
20879
+ ],
20880
+ "security": [
20881
+ {
20882
+ "user": []
20883
+ }
20884
+ ],
20885
+ "parameters": [
20886
+ {
20887
+ "$ref": "#/components/parameters/organizationId"
20888
+ },
20889
+ {
20890
+ "$ref": "#/components/parameters/snippetId"
20891
+ }
20892
+ ],
20893
+ "responses": {
20894
+ "200": {
20895
+ "description": "OK"
20896
+ },
20897
+ "default": {
20898
+ "$ref": "#/components/responses/UnexpectedError"
20899
+ }
20900
+ }
20901
+ },
20902
+ "put": {
20903
+ "operationId": "updateSnippet",
20904
+ "summary": "Update an existing snippet.",
20905
+ "tags": [
20906
+ "organizations"
20907
+ ],
20908
+ "security": [
20909
+ {
20910
+ "user": []
20911
+ }
20912
+ ],
20913
+ "parameters": [
20914
+ {
20915
+ "$ref": "#/components/parameters/organizationId"
20916
+ },
20917
+ {
20918
+ "$ref": "#/components/parameters/snippetId"
20919
+ },
20920
+ {
20921
+ "$ref": "#/components/parameters/ifUnmodifiedSince"
20922
+ }
20923
+ ],
20924
+ "requestBody": {
20925
+ "required": true,
20926
+ "content": {
20927
+ "application/json": {
20928
+ "schema": {
20929
+ "$ref": "#/components/schemas/UpdateSnippetSchema"
20930
+ }
20931
+ }
20932
+ }
20933
+ },
20934
+ "responses": {
20935
+ "200": {
20936
+ "description": "OK",
20937
+ "content": {
20938
+ "application/json": {
20939
+ "schema": {
20940
+ "$ref": "#/components/schemas/Snippet"
20941
+ }
20942
+ }
20943
+ }
20944
+ },
20945
+ "default": {
20946
+ "$ref": "#/components/responses/UnexpectedError"
20947
+ }
20948
+ }
20949
+ }
20950
+ },
20309
20951
  "/orgs/{organizationId}/ask": {
20310
20952
  "post": {
20311
20953
  "operationId": "askInOrganization",
@@ -20480,6 +21122,56 @@
20480
21122
  }
20481
21123
  }
20482
21124
  },
21125
+ "/orgs/{organizationId}/insights/audit-sources/{sourceId}/content": {
21126
+ "get": {
21127
+ "operationId": "getContentAuditSourceContentById",
21128
+ "summary": "Get the content of an audit source",
21129
+ "tags": [
21130
+ "organizations"
21131
+ ],
21132
+ "security": [
21133
+ {
21134
+ "user": []
21135
+ }
21136
+ ],
21137
+ "parameters": [
21138
+ {
21139
+ "$ref": "#/components/parameters/organizationId"
21140
+ },
21141
+ {
21142
+ "name": "sourceId",
21143
+ "in": "path",
21144
+ "required": true,
21145
+ "description": "The id of the content audit source",
21146
+ "schema": {
21147
+ "type": "string"
21148
+ }
21149
+ },
21150
+ {
21151
+ "$ref": "#/components/parameters/pageFormat"
21152
+ }
21153
+ ],
21154
+ "responses": {
21155
+ "200": {
21156
+ "description": "OK",
21157
+ "content": {
21158
+ "application/json": {
21159
+ "schema": {
21160
+ "$ref": "#/components/schemas/Document"
21161
+ }
21162
+ }
21163
+ }
21164
+ },
21165
+ "404": {
21166
+ "description": "No matching content source found for given ID",
21167
+ "$ref": "#/components/responses/NotFoundError"
21168
+ },
21169
+ "default": {
21170
+ "$ref": "#/components/responses/UnexpectedError"
21171
+ }
21172
+ }
21173
+ }
21174
+ },
20483
21175
  "/internal/hive/token": {
20484
21176
  "post": {
20485
21177
  "operationId": "generateHiveAccessToken",