@gitbook/api 0.115.0 → 0.116.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.yaml CHANGED
@@ -512,6 +512,43 @@ paths:
512
512
  "404":
513
513
  description: User not found
514
514
  $ref: "#/components/responses/NotFoundError"
515
+ patch:
516
+ operationId: updateUserById
517
+ summary: Update a user by its ID
518
+ tags:
519
+ - users
520
+ - critical
521
+ security:
522
+ - user: []
523
+ description: |
524
+ Update a GitBook account's details.
525
+ parameters:
526
+ - $ref: "#/components/parameters/userId"
527
+ requestBody:
528
+ required: true
529
+ content:
530
+ application/json:
531
+ schema:
532
+ type: object
533
+ minProperties: 1
534
+ properties:
535
+ displayName:
536
+ type: string
537
+ description: Full name for the user
538
+ minLength: 1
539
+ maxLength: 64
540
+ photoURL:
541
+ $ref: "#/components/schemas/URL"
542
+ responses:
543
+ "200":
544
+ description: The user has been updated
545
+ content:
546
+ application/json:
547
+ schema:
548
+ $ref: "#/components/schemas/User"
549
+ "404":
550
+ description: User not found
551
+ $ref: "#/components/responses/NotFoundError"
515
552
  "/spaces/{spaceId}":
516
553
  get:
517
554
  operationId: getSpaceById
@@ -1819,6 +1856,7 @@ paths:
1819
1856
  - $ref: "#/components/parameters/documentFormat"
1820
1857
  - $ref: "#/components/parameters/status"
1821
1858
  - $ref: "#/components/parameters/targetPage"
1859
+ - $ref: "#/components/parameters/authors"
1822
1860
  responses:
1823
1861
  "200":
1824
1862
  description: OK
@@ -2626,6 +2664,7 @@ paths:
2626
2664
  - $ref: "#/components/parameters/status"
2627
2665
  - $ref: "#/components/parameters/documentFormat"
2628
2666
  - $ref: "#/components/parameters/targetPage"
2667
+ - $ref: "#/components/parameters/authors"
2629
2668
  responses:
2630
2669
  "200":
2631
2670
  description: OK
@@ -2830,6 +2869,67 @@ paths:
2830
2869
  responses:
2831
2870
  "205":
2832
2871
  description: The comment has been deleted.
2872
+ "/spaces/{spaceId}/commenters":
2873
+ get:
2874
+ operationId: listCommentersInSpace
2875
+ summary: List all users who commented in a space
2876
+ tags:
2877
+ - space-comments
2878
+ - critical
2879
+ security:
2880
+ - user: []
2881
+ parameters:
2882
+ - $ref: "#/components/parameters/spaceId"
2883
+ - $ref: "#/components/parameters/listPage"
2884
+ - $ref: "#/components/parameters/listLimit"
2885
+ responses:
2886
+ "200":
2887
+ description: OK
2888
+ content:
2889
+ application/json:
2890
+ schema:
2891
+ allOf:
2892
+ - $ref: "#/components/schemas/List"
2893
+ - type: object
2894
+ required:
2895
+ - items
2896
+ - total
2897
+ properties:
2898
+ items:
2899
+ type: array
2900
+ items:
2901
+ $ref: "#/components/schemas/OrganizationMember"
2902
+ "/spaces/{spaceId}/change-requests/{changeRequestId}/commenters":
2903
+ get:
2904
+ operationId: listCommentersInChangeRequest
2905
+ summary: List all users who commented in a CR
2906
+ tags:
2907
+ - change-request-comments
2908
+ - critical
2909
+ security:
2910
+ - user: []
2911
+ parameters:
2912
+ - $ref: "#/components/parameters/spaceId"
2913
+ - $ref: "#/components/parameters/changeRequestId"
2914
+ - $ref: "#/components/parameters/listPage"
2915
+ - $ref: "#/components/parameters/listLimit"
2916
+ responses:
2917
+ "200":
2918
+ description: OK
2919
+ content:
2920
+ application/json:
2921
+ schema:
2922
+ allOf:
2923
+ - $ref: "#/components/schemas/List"
2924
+ - type: object
2925
+ required:
2926
+ - items
2927
+ - total
2928
+ properties:
2929
+ items:
2930
+ type: array
2931
+ items:
2932
+ $ref: "#/components/schemas/OrganizationMember"
2833
2933
  "/spaces/{spaceId}/permissions/aggregate":
2834
2934
  get:
2835
2935
  operationId: listPermissionsAggregateInSpace
@@ -8031,6 +8131,9 @@ paths:
8031
8131
  previousResponseId:
8032
8132
  type: string
8033
8133
  description: The ID of the previous response to continue from
8134
+ instructions:
8135
+ type: string
8136
+ description: Instructions for the AI
8034
8137
  input:
8035
8138
  type: array
8036
8139
  items:
@@ -8810,6 +8913,15 @@ components:
8810
8913
  description: The target page of the comment
8811
8914
  schema:
8812
8915
  type: string
8916
+ authors:
8917
+ name: authors
8918
+ in: query
8919
+ description: User IDs to filter queried comments on
8920
+ required: false
8921
+ schema:
8922
+ type: array
8923
+ items:
8924
+ type: string
8813
8925
  commentId:
8814
8926
  name: commentId
8815
8927
  in: path
@@ -9161,6 +9273,10 @@ components:
9161
9273
  description: The actual token value.
9162
9274
  required:
9163
9275
  - token
9276
+ URL:
9277
+ type: string
9278
+ format: uri
9279
+ maxLength: 2048
9164
9280
  SpaceTitle:
9165
9281
  type: string
9166
9282
  description: Title of the space
@@ -9197,10 +9313,6 @@ components:
9197
9313
  enum:
9198
9314
  - live
9199
9315
  - locked
9200
- URL:
9201
- type: string
9202
- format: uri
9203
- maxLength: 2048
9204
9316
  GitSyncProvider:
9205
9317
  type: string
9206
9318
  description: The provider of the Git Sync installation.
@@ -11908,6 +12020,64 @@ components:
11908
12020
  - object
11909
12021
  - type
11910
12022
  - nodes
12023
+ DocumentBlockColumn:
12024
+ type: object
12025
+ properties:
12026
+ object:
12027
+ type: string
12028
+ enum:
12029
+ - block
12030
+ type:
12031
+ type: string
12032
+ enum:
12033
+ - column
12034
+ key:
12035
+ type: string
12036
+ nodes:
12037
+ type: array
12038
+ items:
12039
+ oneOf:
12040
+ - $ref: "#/components/schemas/DocumentBlocksEssentials"
12041
+ isVoid:
12042
+ type: boolean
12043
+ enum:
12044
+ - false
12045
+ required:
12046
+ - object
12047
+ - type
12048
+ - nodes
12049
+ DocumentBlockColumns:
12050
+ type: object
12051
+ properties:
12052
+ object:
12053
+ type: string
12054
+ enum:
12055
+ - block
12056
+ type:
12057
+ type: string
12058
+ enum:
12059
+ - columns
12060
+ key:
12061
+ type: string
12062
+ data:
12063
+ type: object
12064
+ properties:
12065
+ fullWidth:
12066
+ type: boolean
12067
+ nodes:
12068
+ type: array
12069
+ items:
12070
+ $ref: "#/components/schemas/DocumentBlockColumn"
12071
+ isVoid:
12072
+ type: boolean
12073
+ enum:
12074
+ - false
12075
+ required:
12076
+ - object
12077
+ - type
12078
+ - data
12079
+ - nodes
12080
+ - isVoid
11911
12081
  DocumentBlock:
11912
12082
  oneOf:
11913
12083
  - $ref: "#/components/schemas/DocumentBlockParagraph"
@@ -11940,6 +12110,8 @@ components:
11940
12110
  - $ref: "#/components/schemas/DocumentBlockReusableContent"
11941
12111
  - $ref: "#/components/schemas/DocumentBlockStepper"
11942
12112
  - $ref: "#/components/schemas/DocumentBlockStepperStep"
12113
+ - $ref: "#/components/schemas/DocumentBlockColumns"
12114
+ - $ref: "#/components/schemas/DocumentBlockColumn"
11943
12115
  DocumentInlineMention:
11944
12116
  type: object
11945
12117
  properties:
@@ -14043,30 +14215,6 @@ components:
14043
14215
  - updatedAt
14044
14216
  - count
14045
14217
  - user
14046
- ChangeRequestBrainstormStatus:
14047
- type: string
14048
- description: |
14049
- The status of the session.
14050
- - pending: The session is pending for input from the user.
14051
- - running: The session is being processed by GitBook.
14052
- - failed: The session processing has failed.
14053
- enum:
14054
- - pending
14055
- - failed
14056
- - running
14057
- ChangeRequestBrainstormActor:
14058
- type: string
14059
- enum:
14060
- - user
14061
- - agent
14062
- ChangeRequestBrainstormContext:
14063
- type: object
14064
- properties:
14065
- page:
14066
- type: string
14067
- description: Path of the page the user is currently viewing.
14068
- required:
14069
- - page
14070
14218
  RevisionPageType:
14071
14219
  type: string
14072
14220
  enum:
@@ -14089,237 +14237,22 @@ components:
14089
14237
  - id
14090
14238
  - type
14091
14239
  - title
14092
- ChangeRequestBrainstormLog:
14093
- oneOf:
14094
- - type: object
14095
- properties:
14096
- tool:
14097
- type: string
14098
- enum:
14099
- - get-page
14100
- intent:
14101
- type: string
14102
- page:
14103
- $ref: "#/components/schemas/ChangedRevisionPage"
14104
- required:
14105
- - tool
14106
- - intent
14107
- - page
14108
- - type: object
14109
- properties:
14110
- tool:
14111
- type: string
14112
- enum:
14113
- - search-keyword
14114
- intent:
14115
- type: string
14116
- query:
14117
- type: string
14118
- required:
14119
- - tool
14120
- - intent
14121
- - query
14122
- - type: object
14123
- properties:
14124
- tool:
14125
- type: string
14126
- enum:
14127
- - search-semantic
14128
- intent:
14129
- type: string
14130
- query:
14131
- type: string
14132
- required:
14133
- - tool
14134
- - intent
14135
- - query
14136
- - type: object
14137
- properties:
14138
- tool:
14139
- type: string
14140
- enum:
14141
- - create-page
14142
- page:
14143
- $ref: "#/components/schemas/ChangedRevisionPage"
14144
- required:
14145
- - tool
14146
- - page
14147
- - type: object
14148
- properties:
14149
- tool:
14150
- type: string
14151
- enum:
14152
- - delete-page
14153
- page:
14154
- $ref: "#/components/schemas/ChangedRevisionPage"
14155
- required:
14156
- - tool
14157
- - page
14158
- - type: object
14159
- properties:
14160
- tool:
14161
- type: string
14162
- enum:
14163
- - edit-page
14164
- page:
14165
- $ref: "#/components/schemas/ChangedRevisionPage"
14166
- required:
14167
- - tool
14168
- - page
14169
- ChangeRequestBrainstormPlanStatus:
14170
- type: string
14171
- description: |
14172
- The status of the plan.
14173
- - pending: The task is pending for input from the user.
14174
- - running: The task is being processed by GitBook.
14175
- - failed: The task processing has failed.
14176
- - completed: The task has been completed.
14177
- enum:
14178
- - pending
14179
- - failed
14180
- - running
14181
- - completed
14182
- ChangeRequestBrainstormPlanStepTitle:
14183
- type: string
14184
- minLength: 1
14185
- maxLength: 100
14186
- ChangeRequestBrainstormPlanStepStatus:
14187
- type: string
14188
- enum:
14189
- - pending
14190
- - succeeded
14191
- - failed
14192
- - running
14193
- ChangeRequestBrainstormPlanStep:
14240
+ RevisionSemanticChangePageCreated:
14194
14241
  type: object
14195
14242
  properties:
14196
- title:
14197
- $ref: "#/components/schemas/ChangeRequestBrainstormPlanStepTitle"
14198
- status:
14199
- $ref: "#/components/schemas/ChangeRequestBrainstormPlanStepStatus"
14200
- instruction:
14201
- $ref: "#/components/schemas/JSONDocument"
14202
- implementation:
14203
- description: Logs related to the implementation phase of the step.
14204
- type: object
14205
- properties:
14206
- summary:
14207
- description: A summary of the execution phase.
14208
- $ref: "#/components/schemas/JSONDocument"
14209
- logs:
14210
- description: Logs related to the execution phase of the step.
14211
- items:
14212
- $ref: "#/components/schemas/ChangeRequestBrainstormLog"
14213
- required:
14214
- - logs
14243
+ type:
14244
+ type: string
14245
+ enum:
14246
+ - page_created
14247
+ page:
14248
+ $ref: "#/components/schemas/ChangedRevisionPage"
14215
14249
  required:
14216
- - title
14217
- - status
14218
- - instruction
14219
- ChangeRequestBrainstormPlan:
14250
+ - type
14251
+ - page
14252
+ ChangeAttributeString:
14220
14253
  type: object
14221
14254
  properties:
14222
- status:
14223
- $ref: "#/components/schemas/ChangeRequestBrainstormPlanStatus"
14224
- title:
14225
- type: string
14226
- description: The title of the plan.
14227
- steps:
14228
- description: The steps of the plan to execute the plan.
14229
- type: array
14230
- items:
14231
- $ref: "#/components/schemas/ChangeRequestBrainstormPlanStep"
14232
- context:
14233
- $ref: "#/components/schemas/ChangeRequestBrainstormContext"
14234
- required:
14235
- - status
14236
- - title
14237
- - steps
14238
- ChangeRequestBrainstormAttachmentPlan:
14239
- type: object
14240
- properties:
14241
- type:
14242
- type: string
14243
- enum:
14244
- - plan
14245
- plan:
14246
- $ref: "#/components/schemas/ChangeRequestBrainstormPlan"
14247
- required:
14248
- - type
14249
- - plan
14250
- ChangeRequestBrainstormAttachmentMessage:
14251
- type: object
14252
- properties:
14253
- type:
14254
- type: string
14255
- enum:
14256
- - message
14257
- suggestions:
14258
- type: array
14259
- items:
14260
- type: string
14261
- required:
14262
- - type
14263
- - suggestions
14264
- ChangeRequestBrainstormAttachment:
14265
- oneOf:
14266
- - $ref: "#/components/schemas/ChangeRequestBrainstormAttachmentPlan"
14267
- - $ref: "#/components/schemas/ChangeRequestBrainstormAttachmentMessage"
14268
- ChangeRequestBrainstormMessage:
14269
- type: object
14270
- properties:
14271
- id:
14272
- type: string
14273
- description: The unique identifier of the chat message.
14274
- actor:
14275
- $ref: "#/components/schemas/ChangeRequestBrainstormActor"
14276
- message:
14277
- $ref: "#/components/schemas/JSONDocument"
14278
- context:
14279
- $ref: "#/components/schemas/ChangeRequestBrainstormContext"
14280
- logs:
14281
- description: Logs related to the processing of the message.
14282
- items:
14283
- $ref: "#/components/schemas/ChangeRequestBrainstormLog"
14284
- attachment:
14285
- $ref: "#/components/schemas/ChangeRequestBrainstormAttachment"
14286
- required:
14287
- - id
14288
- - actor
14289
- - message
14290
- ChangeRequestBrainstormSession:
14291
- type: object
14292
- properties:
14293
- id:
14294
- type: string
14295
- description: The unique identifier of the session.
14296
- status:
14297
- $ref: "#/components/schemas/ChangeRequestBrainstormStatus"
14298
- messages:
14299
- description: Conversation messages related to the brainstorming phase of the task.
14300
- type: array
14301
- items:
14302
- $ref: "#/components/schemas/ChangeRequestBrainstormMessage"
14303
- required:
14304
- - id
14305
- - status
14306
- - messages
14307
- RevisionSemanticChangePageCreated:
14308
- type: object
14309
- properties:
14310
- type:
14311
- type: string
14312
- enum:
14313
- - page_created
14314
- page:
14315
- $ref: "#/components/schemas/ChangedRevisionPage"
14316
- required:
14317
- - type
14318
- - page
14319
- ChangeAttributeString:
14320
- type: object
14321
- properties:
14322
- before:
14255
+ before:
14323
14256
  type: string
14324
14257
  after:
14325
14258
  type: string
@@ -14685,6 +14618,47 @@ components:
14685
14618
  description: Reactions to remove from the comment.
14686
14619
  items:
14687
14620
  type: string
14621
+ OrganizationMember:
14622
+ type: object
14623
+ properties:
14624
+ object:
14625
+ type: string
14626
+ description: Type of Object, always equals to "member"
14627
+ enum:
14628
+ - member
14629
+ id:
14630
+ type: string
14631
+ description: Unique identifier for the user.
14632
+ role:
14633
+ $ref: "#/components/schemas/MemberRoleOrGuest"
14634
+ user:
14635
+ $ref: "#/components/schemas/User"
14636
+ disabled:
14637
+ type: boolean
14638
+ description: Whatever the membership of this user is disabled and prevent them from accessing content.
14639
+ joinedAt:
14640
+ description: Date at which the user joined the organization.
14641
+ $ref: "#/components/schemas/Timestamp"
14642
+ lastSeenAt:
14643
+ description: Date at which the user was last seen active in the organization.
14644
+ $ref: "#/components/schemas/Timestamp"
14645
+ sso:
14646
+ type: boolean
14647
+ description: Whether the user can login with SSO.
14648
+ spaces:
14649
+ type: number
14650
+ teams:
14651
+ type: number
14652
+ required:
14653
+ - object
14654
+ - id
14655
+ - role
14656
+ - user
14657
+ - disabled
14658
+ - joinedAt
14659
+ - sso
14660
+ - spaces
14661
+ - teams
14688
14662
  IntegrationTitle:
14689
14663
  type: string
14690
14664
  description: Title of the integration
@@ -17544,47 +17518,6 @@ components:
17544
17518
  - sites
17545
17519
  - spaces
17546
17520
  - deletedSpaces
17547
- OrganizationMember:
17548
- type: object
17549
- properties:
17550
- object:
17551
- type: string
17552
- description: Type of Object, always equals to "member"
17553
- enum:
17554
- - member
17555
- id:
17556
- type: string
17557
- description: Unique identifier for the user.
17558
- role:
17559
- $ref: "#/components/schemas/MemberRoleOrGuest"
17560
- user:
17561
- $ref: "#/components/schemas/User"
17562
- disabled:
17563
- type: boolean
17564
- description: Whatever the membership of this user is disabled and prevent them from accessing content.
17565
- joinedAt:
17566
- description: Date at which the user joined the organization.
17567
- $ref: "#/components/schemas/Timestamp"
17568
- lastSeenAt:
17569
- description: Date at which the user was last seen active in the organization.
17570
- $ref: "#/components/schemas/Timestamp"
17571
- sso:
17572
- type: boolean
17573
- description: Whether the user can login with SSO.
17574
- spaces:
17575
- type: number
17576
- teams:
17577
- type: number
17578
- required:
17579
- - object
17580
- - id
17581
- - role
17582
- - user
17583
- - disabled
17584
- - joinedAt
17585
- - sso
17586
- - spaces
17587
- - teams
17588
17521
  MemberContentPermission:
17589
17522
  type: object
17590
17523
  description: Permission of a member in a content.
@@ -18119,6 +18052,15 @@ components:
18119
18052
  SAMLProviderCertificate:
18120
18053
  type: string
18121
18054
  maxLength: 10000
18055
+ SAMLProviderStatus:
18056
+ type: string
18057
+ description: |
18058
+ Status of the provider.
18059
+ - `active`: The provider is active and can be used to authenticate users.
18060
+ - `pending`: The provider is pending and is not yet fully configured.
18061
+ enum:
18062
+ - active
18063
+ - pending
18122
18064
  OrganizationSAMLProvider:
18123
18065
  type: object
18124
18066
  properties:
@@ -18145,6 +18087,8 @@ components:
18145
18087
  createdAt:
18146
18088
  description: Date at which the provider was created.
18147
18089
  $ref: "#/components/schemas/Timestamp"
18090
+ status:
18091
+ $ref: "#/components/schemas/SAMLProviderStatus"
18148
18092
  service:
18149
18093
  description: Metadata about the service provider.
18150
18094
  properties:
@@ -18181,6 +18125,7 @@ components:
18181
18125
  - certificate
18182
18126
  - defaultRole
18183
18127
  - createdAt
18128
+ - status
18184
18129
  - service
18185
18130
  - urls
18186
18131
  OrganizationSSOProviderLogin:
@@ -18750,15 +18695,6 @@ components:
18750
18695
  $ref: "#/components/schemas/BillingInvoicePreview"
18751
18696
  required:
18752
18697
  - type
18753
- - type: object
18754
- properties:
18755
- type:
18756
- description: User cannot proceed with the operation due to lack of permissions.
18757
- type: string
18758
- enum:
18759
- - no-permissions
18760
- required:
18761
- - type
18762
18698
  - type: object
18763
18699
  properties:
18764
18700
  type:
@@ -19459,7 +19395,8 @@ components:
19459
19395
  fallbackURL:
19460
19396
  type: string
19461
19397
  format: uri
19462
- description: A fallback URL that will be used if authentication fails.
19398
+ description: A fallback URL that will be used if authentication fails. If not provided, the fallback URL will not be changed. If set to null, the fallback URL will be unset.
19399
+ nullable: true
19463
19400
  SiteSearchScope:
19464
19401
  oneOf:
19465
19402
  - type: object
@@ -19608,6 +19545,7 @@ components:
19608
19545
  type: string
19609
19546
  enum:
19610
19547
  - user
19548
+ - assistant
19611
19549
  - developer
19612
19550
  AIMessageAttachmentSearch:
19613
19551
  type: object
@@ -19671,8 +19609,25 @@ components:
19671
19609
  - $ref: "#/components/schemas/AIMessageAttachmentVisitorProfile"
19672
19610
  - $ref: "#/components/schemas/AIMessageAttachmentPage"
19673
19611
  - $ref: "#/components/schemas/AIMessageAttachmentPages"
19612
+ AIMessageContext:
19613
+ type: object
19614
+ description: Context about the current user sending a message.
19615
+ properties:
19616
+ location:
19617
+ type: object
19618
+ properties:
19619
+ spaceId:
19620
+ type: string
19621
+ description: ID of the current space.
19622
+ pageId:
19623
+ type: string
19624
+ description: ID of the current page.
19625
+ required:
19626
+ - spaceId
19627
+ - pageId
19674
19628
  AIMessageInput:
19675
19629
  type: object
19630
+ description: Input version of an AI message.
19676
19631
  properties:
19677
19632
  role:
19678
19633
  $ref: "#/components/schemas/AIMessageRole"
@@ -19685,6 +19640,8 @@ components:
19685
19640
  type: array
19686
19641
  items:
19687
19642
  $ref: "#/components/schemas/AIMessageAttachment"
19643
+ context:
19644
+ $ref: "#/components/schemas/AIMessageContext"
19688
19645
  required:
19689
19646
  - role
19690
19647
  - content
@@ -19747,11 +19704,16 @@ components:
19747
19704
  type: string
19748
19705
  enum:
19749
19706
  - response_finish
19707
+ messageId:
19708
+ type: string
19709
+ description: |
19710
+ The ID of the message that this event is composing.
19750
19711
  responseId:
19751
19712
  type: string
19752
19713
  description: The ID of the response
19753
19714
  required:
19754
19715
  - type
19716
+ - messageId
19755
19717
  - responseId
19756
19718
  AIStreamResponseDocument:
19757
19719
  type: object
@@ -19762,6 +19724,14 @@ components:
19762
19724
  type: string
19763
19725
  enum:
19764
19726
  - response_document
19727
+ messageId:
19728
+ type: string
19729
+ description: |
19730
+ The ID of the message that this event is composing.
19731
+ stepIndex:
19732
+ type: integer
19733
+ description: |
19734
+ The index of the step of the message that this event is composing.
19765
19735
  operation:
19766
19736
  type: string
19767
19737
  enum:
@@ -19770,9 +19740,11 @@ components:
19770
19740
  blocks:
19771
19741
  type: array
19772
19742
  items:
19773
- $ref: "#/components/schemas/DocumentBlock"
19743
+ $ref: "#/components/schemas/DocumentBlocksTopLevels"
19774
19744
  required:
19775
19745
  - type
19746
+ - messageId
19747
+ - stepIndex
19776
19748
  - operation
19777
19749
  - blocks
19778
19750
  AIStreamResponseObject:
@@ -19784,11 +19756,16 @@ components:
19784
19756
  type: string
19785
19757
  enum:
19786
19758
  - response_object
19759
+ messageId:
19760
+ type: string
19761
+ description: |
19762
+ The ID of the message that this event is composing.
19787
19763
  jsonChunk:
19788
19764
  type: string
19789
19765
  description: The chunk of the JSON object response
19790
19766
  required:
19791
19767
  - type
19768
+ - messageId
19792
19769
  - jsonChunk
19793
19770
  AIToolCallGetPageContent:
19794
19771
  type: object
@@ -19861,11 +19838,178 @@ components:
19861
19838
  - tool
19862
19839
  - query
19863
19840
  - results
19841
+ AIToolCallEditPage:
19842
+ type: object
19843
+ properties:
19844
+ tool:
19845
+ type: string
19846
+ enum:
19847
+ - editPage
19848
+ spaceId:
19849
+ type: string
19850
+ description: The ID of the space being edited.
19851
+ page:
19852
+ $ref: "#/components/schemas/ChangedRevisionPage"
19853
+ required:
19854
+ - tool
19855
+ - spaceId
19856
+ - page
19857
+ AIToolCallCreatePage:
19858
+ type: object
19859
+ properties:
19860
+ tool:
19861
+ type: string
19862
+ enum:
19863
+ - createPage
19864
+ spaceId:
19865
+ type: string
19866
+ description: The ID of the space being edited.
19867
+ page:
19868
+ $ref: "#/components/schemas/ChangedRevisionPage"
19869
+ required:
19870
+ - tool
19871
+ - spaceId
19872
+ - page
19873
+ AIToolCallDeletePage:
19874
+ type: object
19875
+ properties:
19876
+ tool:
19877
+ type: string
19878
+ enum:
19879
+ - deletePage
19880
+ spaceId:
19881
+ type: string
19882
+ description: The ID of the space being edited.
19883
+ page:
19884
+ $ref: "#/components/schemas/ChangedRevisionPage"
19885
+ required:
19886
+ - tool
19887
+ - spaceId
19888
+ - page
19889
+ AIToolCallRenamePage:
19890
+ type: object
19891
+ properties:
19892
+ tool:
19893
+ type: string
19894
+ enum:
19895
+ - renamePage
19896
+ spaceId:
19897
+ type: string
19898
+ description: The ID of the space being edited.
19899
+ page:
19900
+ $ref: "#/components/schemas/ChangedRevisionPage"
19901
+ title:
19902
+ type: string
19903
+ description: The new title of the page.
19904
+ required:
19905
+ - tool
19906
+ - spaceId
19907
+ - page
19908
+ - title
19909
+ AIToolCallMovePage:
19910
+ type: object
19911
+ properties:
19912
+ tool:
19913
+ type: string
19914
+ enum:
19915
+ - movePage
19916
+ spaceId:
19917
+ type: string
19918
+ description: The ID of the space being edited.
19919
+ page:
19920
+ $ref: "#/components/schemas/ChangedRevisionPage"
19921
+ to:
19922
+ $ref: "#/components/schemas/ChangedRevisionPage"
19923
+ moveType:
19924
+ type: string
19925
+ description: |
19926
+ Indicates how the page was moved relative to the "to" page.
19927
+ - `within`: moved as the last child of the target page (or to the root when `to` is omitted)
19928
+ - `before`: moved directly before the target page
19929
+ - `after`: moved directly after the target page
19930
+ enum:
19931
+ - within
19932
+ - before
19933
+ - after
19934
+ required:
19935
+ - tool
19936
+ - spaceId
19937
+ - page
19938
+ - moveType
19939
+ AIToolCallListModifiedPages:
19940
+ type: object
19941
+ properties:
19942
+ tool:
19943
+ type: string
19944
+ enum:
19945
+ - listModifiedPages
19946
+ spaceId:
19947
+ type: string
19948
+ description: The ID of the space being accessed.
19949
+ required:
19950
+ - tool
19951
+ - spaceId
19952
+ AIToolCallGetPageDiff:
19953
+ type: object
19954
+ properties:
19955
+ tool:
19956
+ type: string
19957
+ enum:
19958
+ - getPageDiff
19959
+ spaceId:
19960
+ type: string
19961
+ description: The ID of the space being accessed.
19962
+ page:
19963
+ $ref: "#/components/schemas/ChangedRevisionPage"
19964
+ required:
19965
+ - tool
19966
+ - spaceId
19967
+ - page
19968
+ AIToolCallCreateAgentTask:
19969
+ type: object
19970
+ properties:
19971
+ tool:
19972
+ type: string
19973
+ enum:
19974
+ - createAgentTask
19975
+ spaceId:
19976
+ type: string
19977
+ description: The ID of the space the task belongs to.
19978
+ action:
19979
+ type: string
19980
+ enum:
19981
+ - create
19982
+ - update
19983
+ task:
19984
+ type: object
19985
+ properties:
19986
+ id:
19987
+ type: string
19988
+ description: The unique identifier of the task.
19989
+ title:
19990
+ type: string
19991
+ description: The title of the task.
19992
+ required:
19993
+ - id
19994
+ - title
19995
+ required:
19996
+ - tool
19997
+ - spaceId
19998
+ - action
19999
+ - task
19864
20000
  AIToolCall:
19865
20001
  oneOf:
19866
20002
  - $ref: "#/components/schemas/AIToolCallGetPageContent"
19867
20003
  - $ref: "#/components/schemas/AIToolCallGetPages"
19868
20004
  - $ref: "#/components/schemas/AIToolCallSearch"
20005
+ - $ref: "#/components/schemas/AIToolCallEditPage"
20006
+ - $ref: "#/components/schemas/AIToolCallCreatePage"
20007
+ - $ref: "#/components/schemas/AIToolCallDeletePage"
20008
+ - $ref: "#/components/schemas/AIToolCallRenamePage"
20009
+ - $ref: "#/components/schemas/AIToolCallMovePage"
20010
+ - $ref: "#/components/schemas/AIToolCallListModifiedPages"
20011
+ - $ref: "#/components/schemas/AIToolCallGetPageDiff"
20012
+ - $ref: "#/components/schemas/AIToolCallCreateAgentTask"
19869
20013
  AIStreamResponseToolCall:
19870
20014
  type: object
19871
20015
  description: |
@@ -19875,10 +20019,20 @@ components:
19875
20019
  type: string
19876
20020
  enum:
19877
20021
  - response_tool_call
20022
+ messageId:
20023
+ type: string
20024
+ description: |
20025
+ The ID of the message that this event is composing.
20026
+ stepIndex:
20027
+ type: integer
20028
+ description: |
20029
+ The index of the step of the message that this event is composing.
19878
20030
  toolCall:
19879
20031
  $ref: "#/components/schemas/AIToolCall"
19880
20032
  required:
19881
20033
  - type
20034
+ - messageId
20035
+ - stepIndex
19882
20036
  - toolCall
19883
20037
  AIStreamResponse:
19884
20038
  oneOf:
@@ -23699,6 +23853,206 @@ components:
23699
23853
  - member
23700
23854
  - createdAt
23701
23855
  - updatedAt
23856
+ AIMessageStep:
23857
+ type: object
23858
+ description: A step in a message from the AI agent.
23859
+ properties:
23860
+ content:
23861
+ $ref: "#/components/schemas/JSONDocument"
23862
+ toolCalls:
23863
+ type: array
23864
+ items:
23865
+ $ref: "#/components/schemas/AIToolCall"
23866
+ required:
23867
+ - content
23868
+ AIMessage:
23869
+ type: object
23870
+ properties:
23871
+ id:
23872
+ type: string
23873
+ role:
23874
+ $ref: "#/components/schemas/AIMessageRole"
23875
+ steps:
23876
+ type: array
23877
+ items:
23878
+ $ref: "#/components/schemas/AIMessageStep"
23879
+ required:
23880
+ - id
23881
+ - role
23882
+ - steps
23883
+ AgentRequestReset:
23884
+ type: object
23885
+ description: |
23886
+ Request to reset the chat.
23887
+ properties:
23888
+ type:
23889
+ type: string
23890
+ enum:
23891
+ - reset
23892
+ required:
23893
+ - type
23894
+ AgentRequestPostMessage:
23895
+ type: object
23896
+ description: |
23897
+ Request to post a message to the agent.
23898
+ properties:
23899
+ type:
23900
+ type: string
23901
+ enum:
23902
+ - post_message
23903
+ message:
23904
+ $ref: "#/components/schemas/AIMessageInput"
23905
+ required:
23906
+ - type
23907
+ - message
23908
+ AgentRequest:
23909
+ description: |
23910
+ Payload to send to the agent.
23911
+ oneOf:
23912
+ - $ref: "#/components/schemas/AgentRequestReset"
23913
+ - $ref: "#/components/schemas/AgentRequestPostMessage"
23914
+ AgentStreamMessages:
23915
+ type: object
23916
+ description: |
23917
+ Payload emitted by the agent to reset the messages.
23918
+ properties:
23919
+ type:
23920
+ type: string
23921
+ enum:
23922
+ - messages
23923
+ operation:
23924
+ type: string
23925
+ enum:
23926
+ - append
23927
+ - replace
23928
+ messages:
23929
+ type: array
23930
+ items:
23931
+ $ref: "#/components/schemas/AIMessage"
23932
+ required:
23933
+ - type
23934
+ - operation
23935
+ - messages
23936
+ AgentStreamMessageResponse:
23937
+ type: object
23938
+ description: |
23939
+ Payload emitted by the agent with a partial message.
23940
+ properties:
23941
+ type:
23942
+ type: string
23943
+ enum:
23944
+ - message_response
23945
+ response:
23946
+ $ref: "#/components/schemas/AIStreamResponse"
23947
+ required:
23948
+ - type
23949
+ - response
23950
+ AgentStatus:
23951
+ type: string
23952
+ enum:
23953
+ - idle
23954
+ - processing
23955
+ - errored
23956
+ AgentState:
23957
+ type: object
23958
+ properties:
23959
+ status:
23960
+ $ref: "#/components/schemas/AgentStatus"
23961
+ suggestions:
23962
+ type: array
23963
+ description: A list of response suggestions for the user to select from.
23964
+ items:
23965
+ type: string
23966
+ required:
23967
+ - status
23968
+ - suggestions
23969
+ AgentStreamState:
23970
+ type: object
23971
+ description: |
23972
+ Payload emitted by the agent with its current state.
23973
+ properties:
23974
+ type:
23975
+ type: string
23976
+ enum:
23977
+ - state
23978
+ state:
23979
+ $ref: "#/components/schemas/AgentState"
23980
+ required:
23981
+ - type
23982
+ - state
23983
+ AgentStream:
23984
+ oneOf:
23985
+ - $ref: "#/components/schemas/AgentStreamMessages"
23986
+ - $ref: "#/components/schemas/AgentStreamMessageResponse"
23987
+ - $ref: "#/components/schemas/AgentStreamState"
23988
+ ConversationMetadata:
23989
+ type: object
23990
+ properties:
23991
+ url:
23992
+ type: string
23993
+ description: URL to the conversation
23994
+ attributes:
23995
+ type: object
23996
+ additionalProperties:
23997
+ type: string
23998
+ createdAt:
23999
+ description: Date of the conversation creation
24000
+ $ref: "#/components/schemas/Timestamp"
24001
+ ConversationPartMessage:
24002
+ type: object
24003
+ description: A message posted in the conversation by a user or a team member.
24004
+ properties:
24005
+ type:
24006
+ type: string
24007
+ enum:
24008
+ - message
24009
+ role:
24010
+ type: string
24011
+ enum:
24012
+ - user
24013
+ - assistant
24014
+ - team-member
24015
+ body:
24016
+ type: string
24017
+ description: Markdown or HTML body of the message.
24018
+ required:
24019
+ - type
24020
+ - role
24021
+ - body
24022
+ ConversationPart:
24023
+ oneOf:
24024
+ - $ref: "#/components/schemas/ConversationPartMessage"
24025
+ ConversationInput:
24026
+ type: object
24027
+ properties:
24028
+ id:
24029
+ type: string
24030
+ minLength: 1
24031
+ maxLength: 255
24032
+ description: The unique identifier for the conversation, relative to the source in which it was created.
24033
+ metadata:
24034
+ $ref: "#/components/schemas/ConversationMetadata"
24035
+ subject:
24036
+ type: string
24037
+ maxLength: 512
24038
+ description: The subject of the conversation.
24039
+ parts:
24040
+ type: array
24041
+ items:
24042
+ $ref: "#/components/schemas/ConversationPart"
24043
+ required:
24044
+ - id
24045
+ - parts
24046
+ AgentTaskStatus:
24047
+ type: string
24048
+ description: |
24049
+ The status of the agent task. - `backlog`: The task has not been started yet, a human should review its specification. - `in-progress`: The task is in progress. - `in-review`: The task is completed, a human should review the result. - `done`: The task is completed. - `rejected`: The task has been rejected by a human.
24050
+ enum:
24051
+ - backlog
24052
+ - in-progress
24053
+ - in-review
24054
+ - done
24055
+ - rejected
23702
24056
  RequestSpaceTrackPageView:
23703
24057
  $ref: "#/components/schemas/SpaceTrackPageView"
23704
24058
  RequestSiteTrackPageView: