@gitbook/api 0.135.0 → 0.137.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/client.d.ts CHANGED
@@ -104,6 +104,7 @@ export declare enum TranslationLanguage {
104
104
  Ru = "ru",
105
105
  Ja = "ja",
106
106
  Zh = "zh",
107
+ Yue = "yue",
107
108
  Ko = "ko",
108
109
  Ar = "ar",
109
110
  Hi = "hi",
@@ -796,10 +797,15 @@ export interface DocumentTableDefinitionBase {
796
797
  /** Title for the column */
797
798
  title: string;
798
799
  }
800
+ export declare enum VerticalAlignment {
801
+ Top = "top",
802
+ Middle = "middle",
803
+ Bottom = "bottom"
804
+ }
799
805
  export type DocumentTableDefinitionText = DocumentTableDefinitionBase & {
800
806
  type: 'text';
801
807
  textAlignment: 'center' | 'right' | 'left';
802
- verticalAlignment?: 'top' | 'middle' | 'bottom';
808
+ verticalAlignment?: VerticalAlignment;
803
809
  };
804
810
  export type DocumentTableDefinitionNumber = DocumentTableDefinitionBase & {
805
811
  type: 'number';
@@ -1195,6 +1201,7 @@ export interface DocumentBlockColumn {
1195
1201
  isVoid?: false;
1196
1202
  data: {
1197
1203
  width?: Length;
1204
+ verticalAlignment?: VerticalAlignment;
1198
1205
  };
1199
1206
  }
1200
1207
  export interface DocumentBlockColumns {
@@ -2879,6 +2886,15 @@ export type InstallationSetupEvent = InstallationEvent & {
2879
2886
  configuration?: object;
2880
2887
  };
2881
2888
  };
2889
+ /** Event received when integration has been uninstalled from an organization. */
2890
+ export type InstallationDeletedEvent = InstallationEvent & {
2891
+ type: 'installation_deleted';
2892
+ /** The state of the installation before it was deleted. */
2893
+ previous: {
2894
+ /** The previous configuration of the installation. */
2895
+ configuration?: object;
2896
+ };
2897
+ };
2882
2898
  /** Common properties for all events related to a specific space. */
2883
2899
  export type SpaceEvent = InstallationEvent & {
2884
2900
  /** ID of the space */
@@ -3136,7 +3152,7 @@ export type ContentComputeRevisionEvent = ContentComputeEvent & {
3136
3152
  type: 'content_compute_revision';
3137
3153
  };
3138
3154
  /** Any event that can be received from GitBook. */
3139
- export type Event = InstallationSetupEvent | SpaceInstallationSetupEvent | SpaceInstallationDeletedEvent | SiteInstallationSetupEvent | SiteInstallationDeletedEvent | SpaceViewEvent | SiteViewEvent | SpaceContentUpdatedEvent | SpaceGitSyncCompletedEvent | SpaceGitSyncStartedEvent | SpaceVisibilityUpdatedEvent | FetchEvent | FetchPublishedScriptEvent | FetchVisitorAuthenticationEvent | UIRenderEvent | ContentComputeDocumentEvent | ContentComputeRevisionEvent;
3155
+ export type Event = InstallationSetupEvent | InstallationDeletedEvent | SpaceInstallationSetupEvent | SpaceInstallationDeletedEvent | SiteInstallationSetupEvent | SiteInstallationDeletedEvent | SpaceViewEvent | SiteViewEvent | SpaceContentUpdatedEvent | SpaceGitSyncCompletedEvent | SpaceGitSyncStartedEvent | SpaceVisibilityUpdatedEvent | FetchEvent | FetchPublishedScriptEvent | FetchVisitorAuthenticationEvent | UIRenderEvent | ContentComputeDocumentEvent | ContentComputeRevisionEvent;
3140
3156
  export interface IntegrationEvent {
3141
3157
  /** Unique ID of the event. */
3142
3158
  id: string;
@@ -5353,13 +5369,6 @@ export declare enum AIModel {
5353
5369
  ReasoningMedium = "reasoning-medium",
5354
5370
  ReasoningHigh = "reasoning-high"
5355
5371
  }
5356
- /** Confirmation to display to the user when the AI requires the user to confirm a tool call. */
5357
- export interface AIToolConfirmation {
5358
- /** Label to display in the UI when the user is prompted to confirm this tool. */
5359
- label: string;
5360
- /** Icon to display in the UI when the user is prompted to confirm this tool. */
5361
- icon?: Icon;
5362
- }
5363
5372
  /** Description of a tool that can be called from an AI agent. */
5364
5373
  export interface AIToolDefinition {
5365
5374
  /** The name of the tool. It should be unique within the agent. */
@@ -5376,8 +5385,6 @@ export interface AIToolDefinition {
5376
5385
  [key: string]: any;
5377
5386
  }>;
5378
5387
  };
5379
- /** Confirmation to display to the user when the AI requires the user to confirm a tool call. */
5380
- confirmation: AIToolConfirmation;
5381
5388
  }
5382
5389
  /** Summary of a generic tool call. */
5383
5390
  export interface AIToolCallOtherSummary {
@@ -5395,7 +5402,7 @@ export interface AIToolCallResult {
5395
5402
  /** The output to the tool call. */
5396
5403
  output: object;
5397
5404
  /** Summary of a generic tool call. */
5398
- summary: AIToolCallOtherSummary;
5405
+ summary?: AIToolCallOtherSummary;
5399
5406
  }
5400
5407
  /** Message emitted by the server to indicate the end of the AI response. It contains the ID of the response to be referenced for followup requests. */
5401
5408
  export interface AIStreamResponseFinish {
@@ -5549,24 +5556,22 @@ export interface AIStreamResponseToolCall {
5549
5556
  stepIndex: number;
5550
5557
  toolCall: AIToolCall;
5551
5558
  }
5552
- /** Message emitted by the server to indicate that the AI requires the user to confirm a tool call. */
5553
- export interface AIStreamResponseToolConfirm {
5554
- type: 'response_tool_confirm';
5559
+ /** Message emitted by the server to indicate that the AI is calling a client-side tool. */
5560
+ export interface AIStreamResponseToolCallPending {
5561
+ type: 'response_tool_call_pending';
5555
5562
  /** The ID of the message that this event is composing. */
5556
5563
  messageId: string;
5557
5564
  /** The index of the step of the message that this event is composing. */
5558
5565
  stepIndex: number;
5559
- /** The tool call that the AI requires the user to confirm. */
5566
+ /** The tool call that the AI is calling. */
5560
5567
  toolCall: {
5561
- /** The name of the tool that the AI requires the user to confirm. */
5568
+ /** The name of the tool that the AI is calling. */
5562
5569
  tool: string;
5563
5570
  /** The input to the tool call. */
5564
5571
  input: object;
5565
5572
  };
5566
- /** The ID of the tool call that the AI requires the user to confirm. */
5573
+ /** The ID of the tool call that the AI is calling. */
5567
5574
  toolCallId: string;
5568
- /** Confirmation to display to the user when the AI requires the user to confirm a tool call. */
5569
- toolConfirmation: AIToolConfirmation;
5570
5575
  }
5571
5576
  /** Message emitted by the server to suggest a followup message the user could respond with. */
5572
5577
  export interface AIStreamResponseFollowupSuggestion {
@@ -5575,7 +5580,7 @@ export interface AIStreamResponseFollowupSuggestion {
5575
5580
  messageId: string;
5576
5581
  suggestions: string[];
5577
5582
  }
5578
- export type AIStreamResponse = AIStreamResponseFinish | AIStreamResponseDocument | AIStreamResponseObject | AIStreamResponseToolCall | AIStreamResponseToolConfirm | AIStreamResponseFollowupSuggestion;
5583
+ export type AIStreamResponse = AIStreamResponseFinish | AIStreamResponseDocument | AIStreamResponseObject | AIStreamResponseToolCall | AIStreamResponseToolCallPending | AIStreamResponseFollowupSuggestion;
5579
5584
  /** Analytics info on the GitBook's site session. */
5580
5585
  export interface SiteInsightsEventSession {
5581
5586
  /** GitBook's unique identifier of the visitor. */
@@ -5634,7 +5639,7 @@ export interface SiteInsightsEventBase {
5634
5639
  session: SiteInsightsEventSession;
5635
5640
  /** Location of the event. */
5636
5641
  location: SiteInsightsEventLocation;
5637
- /** Optional timestamp of the event. If not provided, the current timestamp will be used. */
5642
+ /** Optional timestamp of the event. If not provided, the current timestamp will be used. Must be within 5 minutes of the current time. */
5638
5643
  timestamp?: Timestamp;
5639
5644
  }
5640
5645
  export type SiteInsightsEventPageView = SiteInsightsEventBase & {
package/dist/index.cjs CHANGED
@@ -273,13 +273,14 @@ __export(src_exports, {
273
273
  TeamMemberRole: () => TeamMemberRole,
274
274
  TextAlignment: () => TextAlignment,
275
275
  TranslationLanguage: () => TranslationLanguage,
276
- TranslationStatus: () => TranslationStatus
276
+ TranslationStatus: () => TranslationStatus,
277
+ VerticalAlignment: () => VerticalAlignment
277
278
  });
278
279
  module.exports = __toCommonJS(src_exports);
279
280
 
280
281
  // package.json
281
282
  var name = "@gitbook/api";
282
- var version = "0.135.0";
283
+ var version = "0.137.0";
283
284
 
284
285
  // src/client.ts
285
286
  var import_event_iterator = __toESM(require_node(), 1);
@@ -404,6 +405,7 @@ var TranslationLanguage = /* @__PURE__ */ ((TranslationLanguage2) => {
404
405
  TranslationLanguage2["Ru"] = "ru";
405
406
  TranslationLanguage2["Ja"] = "ja";
406
407
  TranslationLanguage2["Zh"] = "zh";
408
+ TranslationLanguage2["Yue"] = "yue";
407
409
  TranslationLanguage2["Ko"] = "ko";
408
410
  TranslationLanguage2["Ar"] = "ar";
409
411
  TranslationLanguage2["Hi"] = "hi";
@@ -454,6 +456,12 @@ var TextAlignment = /* @__PURE__ */ ((TextAlignment2) => {
454
456
  TextAlignment2["End"] = "end";
455
457
  return TextAlignment2;
456
458
  })(TextAlignment || {});
459
+ var VerticalAlignment = /* @__PURE__ */ ((VerticalAlignment2) => {
460
+ VerticalAlignment2["Top"] = "top";
461
+ VerticalAlignment2["Middle"] = "middle";
462
+ VerticalAlignment2["Bottom"] = "bottom";
463
+ return VerticalAlignment2;
464
+ })(VerticalAlignment || {});
457
465
  var RevisionPageLayoutOptionsWidth = /* @__PURE__ */ ((RevisionPageLayoutOptionsWidth2) => {
458
466
  RevisionPageLayoutOptionsWidth2["Default"] = "default";
459
467
  RevisionPageLayoutOptionsWidth2["Wide"] = "wide";
@@ -3905,5 +3913,6 @@ var GitBookAPI = class extends Api {
3905
3913
  TeamMemberRole,
3906
3914
  TextAlignment,
3907
3915
  TranslationLanguage,
3908
- TranslationStatus
3916
+ TranslationStatus,
3917
+ VerticalAlignment
3909
3918
  });
package/dist/index.js CHANGED
@@ -172,7 +172,7 @@ var require_node = __commonJS({
172
172
 
173
173
  // package.json
174
174
  var name = "@gitbook/api";
175
- var version = "0.135.0";
175
+ var version = "0.137.0";
176
176
 
177
177
  // src/client.ts
178
178
  var import_event_iterator = __toESM(require_node(), 1);
@@ -297,6 +297,7 @@ var TranslationLanguage = /* @__PURE__ */ ((TranslationLanguage2) => {
297
297
  TranslationLanguage2["Ru"] = "ru";
298
298
  TranslationLanguage2["Ja"] = "ja";
299
299
  TranslationLanguage2["Zh"] = "zh";
300
+ TranslationLanguage2["Yue"] = "yue";
300
301
  TranslationLanguage2["Ko"] = "ko";
301
302
  TranslationLanguage2["Ar"] = "ar";
302
303
  TranslationLanguage2["Hi"] = "hi";
@@ -347,6 +348,12 @@ var TextAlignment = /* @__PURE__ */ ((TextAlignment2) => {
347
348
  TextAlignment2["End"] = "end";
348
349
  return TextAlignment2;
349
350
  })(TextAlignment || {});
351
+ var VerticalAlignment = /* @__PURE__ */ ((VerticalAlignment2) => {
352
+ VerticalAlignment2["Top"] = "top";
353
+ VerticalAlignment2["Middle"] = "middle";
354
+ VerticalAlignment2["Bottom"] = "bottom";
355
+ return VerticalAlignment2;
356
+ })(VerticalAlignment || {});
350
357
  var RevisionPageLayoutOptionsWidth = /* @__PURE__ */ ((RevisionPageLayoutOptionsWidth2) => {
351
358
  RevisionPageLayoutOptionsWidth2["Default"] = "default";
352
359
  RevisionPageLayoutOptionsWidth2["Wide"] = "wide";
@@ -3797,5 +3804,6 @@ export {
3797
3804
  TeamMemberRole,
3798
3805
  TextAlignment,
3799
3806
  TranslationLanguage,
3800
- TranslationStatus
3807
+ TranslationStatus,
3808
+ VerticalAlignment
3801
3809
  };
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "main": "./dist/index.cjs",
5
5
  "module": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
7
- "version": "0.135.0",
7
+ "version": "0.137.0",
8
8
  "sideEffects": false,
9
9
  "files": [
10
10
  "README.md",
package/spec/openapi.json CHANGED
@@ -17220,6 +17220,7 @@
17220
17220
  "ru",
17221
17221
  "ja",
17222
17222
  "zh",
17223
+ "yue",
17223
17224
  "ko",
17224
17225
  "ar",
17225
17226
  "hi",
@@ -19623,6 +19624,14 @@
19623
19624
  "title"
19624
19625
  ]
19625
19626
  },
19627
+ "VerticalAlignment": {
19628
+ "type": "string",
19629
+ "enum": [
19630
+ "top",
19631
+ "middle",
19632
+ "bottom"
19633
+ ]
19634
+ },
19626
19635
  "DocumentTableDefinitionText": {
19627
19636
  "allOf": [
19628
19637
  {
@@ -19646,12 +19655,7 @@
19646
19655
  ]
19647
19656
  },
19648
19657
  "verticalAlignment": {
19649
- "type": "string",
19650
- "enum": [
19651
- "top",
19652
- "middle",
19653
- "bottom"
19654
- ]
19658
+ "$ref": "#/components/schemas/VerticalAlignment"
19655
19659
  }
19656
19660
  },
19657
19661
  "required": [
@@ -21797,6 +21801,9 @@
21797
21801
  "properties": {
21798
21802
  "width": {
21799
21803
  "$ref": "#/components/schemas/Length"
21804
+ },
21805
+ "verticalAlignment": {
21806
+ "$ref": "#/components/schemas/VerticalAlignment"
21800
21807
  }
21801
21808
  },
21802
21809
  "additionalProperties": false
@@ -26777,6 +26784,39 @@
26777
26784
  }
26778
26785
  ]
26779
26786
  },
26787
+ "InstallationDeletedEvent": {
26788
+ "allOf": [
26789
+ {
26790
+ "$ref": "#/components/schemas/InstallationEvent"
26791
+ },
26792
+ {
26793
+ "type": "object",
26794
+ "description": "Event received when integration has been uninstalled from an organization.",
26795
+ "properties": {
26796
+ "type": {
26797
+ "type": "string",
26798
+ "enum": [
26799
+ "installation_deleted"
26800
+ ]
26801
+ },
26802
+ "previous": {
26803
+ "type": "object",
26804
+ "description": "The state of the installation before it was deleted.",
26805
+ "properties": {
26806
+ "configuration": {
26807
+ "type": "object",
26808
+ "description": "The previous configuration of the installation."
26809
+ }
26810
+ }
26811
+ }
26812
+ },
26813
+ "required": [
26814
+ "type",
26815
+ "previous"
26816
+ ]
26817
+ }
26818
+ ]
26819
+ },
26780
26820
  "SpaceEvent": {
26781
26821
  "allOf": [
26782
26822
  {
@@ -27713,6 +27753,9 @@
27713
27753
  {
27714
27754
  "$ref": "#/components/schemas/InstallationSetupEvent"
27715
27755
  },
27756
+ {
27757
+ "$ref": "#/components/schemas/InstallationDeletedEvent"
27758
+ },
27716
27759
  {
27717
27760
  "$ref": "#/components/schemas/SpaceInstallationSetupEvent"
27718
27761
  },
@@ -34018,23 +34061,6 @@
34018
34061
  "reasoning-high"
34019
34062
  ]
34020
34063
  },
34021
- "AIToolConfirmation": {
34022
- "type": "object",
34023
- "description": "Confirmation to display to the user when the AI requires the user to confirm a tool call.",
34024
- "properties": {
34025
- "label": {
34026
- "type": "string",
34027
- "description": "Label to display in the UI when the user is prompted to confirm this tool."
34028
- },
34029
- "icon": {
34030
- "description": "Icon to display in the UI when the user is prompted to confirm this tool.",
34031
- "$ref": "#/components/schemas/Icon"
34032
- }
34033
- },
34034
- "required": [
34035
- "label"
34036
- ]
34037
- },
34038
34064
  "AIToolDefinition": {
34039
34065
  "type": "object",
34040
34066
  "description": "Description of a tool that can be called from an AI agent.",
@@ -34089,9 +34115,6 @@
34089
34115
  "type",
34090
34116
  "properties"
34091
34117
  ]
34092
- },
34093
- "confirmation": {
34094
- "$ref": "#/components/schemas/AIToolConfirmation"
34095
34118
  }
34096
34119
  },
34097
34120
  "required": [
@@ -34123,8 +34146,7 @@
34123
34146
  "required": [
34124
34147
  "tool",
34125
34148
  "toolCallId",
34126
- "output",
34127
- "summary"
34149
+ "output"
34128
34150
  ],
34129
34151
  "properties": {
34130
34152
  "tool": {
@@ -34690,14 +34712,14 @@
34690
34712
  "toolCall"
34691
34713
  ]
34692
34714
  },
34693
- "AIStreamResponseToolConfirm": {
34715
+ "AIStreamResponseToolCallPending": {
34694
34716
  "type": "object",
34695
- "description": "Message emitted by the server to indicate that the AI requires the user to confirm a tool call.\n",
34717
+ "description": "Message emitted by the server to indicate that the AI is calling a client-side tool.\n",
34696
34718
  "properties": {
34697
34719
  "type": {
34698
34720
  "type": "string",
34699
34721
  "enum": [
34700
- "response_tool_confirm"
34722
+ "response_tool_call_pending"
34701
34723
  ]
34702
34724
  },
34703
34725
  "messageId": {
@@ -34710,7 +34732,7 @@
34710
34732
  },
34711
34733
  "toolCall": {
34712
34734
  "type": "object",
34713
- "description": "The tool call that the AI requires the user to confirm.",
34735
+ "description": "The tool call that the AI is calling.",
34714
34736
  "required": [
34715
34737
  "tool",
34716
34738
  "input"
@@ -34718,7 +34740,7 @@
34718
34740
  "properties": {
34719
34741
  "tool": {
34720
34742
  "type": "string",
34721
- "description": "The name of the tool that the AI requires the user to confirm."
34743
+ "description": "The name of the tool that the AI is calling."
34722
34744
  },
34723
34745
  "input": {
34724
34746
  "type": "object",
@@ -34728,10 +34750,7 @@
34728
34750
  },
34729
34751
  "toolCallId": {
34730
34752
  "type": "string",
34731
- "description": "The ID of the tool call that the AI requires the user to confirm."
34732
- },
34733
- "toolConfirmation": {
34734
- "$ref": "#/components/schemas/AIToolConfirmation"
34753
+ "description": "The ID of the tool call that the AI is calling."
34735
34754
  }
34736
34755
  },
34737
34756
  "required": [
@@ -34739,8 +34758,7 @@
34739
34758
  "messageId",
34740
34759
  "stepIndex",
34741
34760
  "toolCall",
34742
- "toolCallId",
34743
- "toolConfirmation"
34761
+ "toolCallId"
34744
34762
  ]
34745
34763
  },
34746
34764
  "AIStreamResponseFollowupSuggestion": {
@@ -34786,7 +34804,7 @@
34786
34804
  "$ref": "#/components/schemas/AIStreamResponseToolCall"
34787
34805
  },
34788
34806
  {
34789
- "$ref": "#/components/schemas/AIStreamResponseToolConfirm"
34807
+ "$ref": "#/components/schemas/AIStreamResponseToolCallPending"
34790
34808
  },
34791
34809
  {
34792
34810
  "$ref": "#/components/schemas/AIStreamResponseFollowupSuggestion"
@@ -34920,7 +34938,7 @@
34920
34938
  "$ref": "#/components/schemas/SiteInsightsEventLocation"
34921
34939
  },
34922
34940
  "timestamp": {
34923
- "description": "Optional timestamp of the event. If not provided, the current timestamp will be used.",
34941
+ "description": "Optional timestamp of the event. If not provided, the current timestamp will be used. Must be within 5 minutes of the current time.",
34924
34942
  "$ref": "#/components/schemas/Timestamp"
34925
34943
  }
34926
34944
  },
package/spec/openapi.yaml CHANGED
@@ -9911,6 +9911,7 @@ components:
9911
9911
  - ru
9912
9912
  - ja
9913
9913
  - zh
9914
+ - yue
9914
9915
  - ko
9915
9916
  - ar
9916
9917
  - hi
@@ -11525,6 +11526,12 @@ components:
11525
11526
  required:
11526
11527
  - id
11527
11528
  - title
11529
+ VerticalAlignment:
11530
+ type: string
11531
+ enum:
11532
+ - top
11533
+ - middle
11534
+ - bottom
11528
11535
  DocumentTableDefinitionText:
11529
11536
  allOf:
11530
11537
  - $ref: "#/components/schemas/DocumentTableDefinitionBase"
@@ -11541,11 +11548,7 @@ components:
11541
11548
  - right
11542
11549
  - left
11543
11550
  verticalAlignment:
11544
- type: string
11545
- enum:
11546
- - top
11547
- - middle
11548
- - bottom
11551
+ $ref: "#/components/schemas/VerticalAlignment"
11549
11552
  required:
11550
11553
  - type
11551
11554
  - textAlignment
@@ -12839,6 +12842,8 @@ components:
12839
12842
  properties:
12840
12843
  width:
12841
12844
  $ref: "#/components/schemas/Length"
12845
+ verticalAlignment:
12846
+ $ref: "#/components/schemas/VerticalAlignment"
12842
12847
  additionalProperties: false
12843
12848
  required:
12844
12849
  - object
@@ -16165,6 +16170,26 @@ components:
16165
16170
  required:
16166
16171
  - type
16167
16172
  - status
16173
+ InstallationDeletedEvent:
16174
+ allOf:
16175
+ - $ref: "#/components/schemas/InstallationEvent"
16176
+ - type: object
16177
+ description: Event received when integration has been uninstalled from an organization.
16178
+ properties:
16179
+ type:
16180
+ type: string
16181
+ enum:
16182
+ - installation_deleted
16183
+ previous:
16184
+ type: object
16185
+ description: The state of the installation before it was deleted.
16186
+ properties:
16187
+ configuration:
16188
+ type: object
16189
+ description: The previous configuration of the installation.
16190
+ required:
16191
+ - type
16192
+ - previous
16168
16193
  SpaceEvent:
16169
16194
  allOf:
16170
16195
  - $ref: "#/components/schemas/InstallationEvent"
@@ -16743,6 +16768,7 @@ components:
16743
16768
  description: Any event that can be received from GitBook.
16744
16769
  oneOf:
16745
16770
  - $ref: "#/components/schemas/InstallationSetupEvent"
16771
+ - $ref: "#/components/schemas/InstallationDeletedEvent"
16746
16772
  - $ref: "#/components/schemas/SpaceInstallationSetupEvent"
16747
16773
  - $ref: "#/components/schemas/SpaceInstallationDeletedEvent"
16748
16774
  - $ref: "#/components/schemas/SiteInstallationSetupEvent"
@@ -21042,18 +21068,6 @@ components:
21042
21068
  - reasoning-low
21043
21069
  - reasoning-medium
21044
21070
  - reasoning-high
21045
- AIToolConfirmation:
21046
- type: object
21047
- description: Confirmation to display to the user when the AI requires the user to confirm a tool call.
21048
- properties:
21049
- label:
21050
- type: string
21051
- description: Label to display in the UI when the user is prompted to confirm this tool.
21052
- icon:
21053
- description: Icon to display in the UI when the user is prompted to confirm this tool.
21054
- $ref: "#/components/schemas/Icon"
21055
- required:
21056
- - label
21057
21071
  AIToolDefinition:
21058
21072
  type: object
21059
21073
  description: Description of a tool that can be called from an AI agent.
@@ -21095,8 +21109,6 @@ components:
21095
21109
  required:
21096
21110
  - type
21097
21111
  - properties
21098
- confirmation:
21099
- $ref: "#/components/schemas/AIToolConfirmation"
21100
21112
  required:
21101
21113
  - name
21102
21114
  - description
@@ -21120,7 +21132,6 @@ components:
21120
21132
  - tool
21121
21133
  - toolCallId
21122
21134
  - output
21123
- - summary
21124
21135
  properties:
21125
21136
  tool:
21126
21137
  type: string
@@ -21521,15 +21532,15 @@ components:
21521
21532
  - messageId
21522
21533
  - stepIndex
21523
21534
  - toolCall
21524
- AIStreamResponseToolConfirm:
21535
+ AIStreamResponseToolCallPending:
21525
21536
  type: object
21526
21537
  description: |
21527
- Message emitted by the server to indicate that the AI requires the user to confirm a tool call.
21538
+ Message emitted by the server to indicate that the AI is calling a client-side tool.
21528
21539
  properties:
21529
21540
  type:
21530
21541
  type: string
21531
21542
  enum:
21532
- - response_tool_confirm
21543
+ - response_tool_call_pending
21533
21544
  messageId:
21534
21545
  type: string
21535
21546
  description: |
@@ -21540,29 +21551,26 @@ components:
21540
21551
  The index of the step of the message that this event is composing.
21541
21552
  toolCall:
21542
21553
  type: object
21543
- description: The tool call that the AI requires the user to confirm.
21554
+ description: The tool call that the AI is calling.
21544
21555
  required:
21545
21556
  - tool
21546
21557
  - input
21547
21558
  properties:
21548
21559
  tool:
21549
21560
  type: string
21550
- description: The name of the tool that the AI requires the user to confirm.
21561
+ description: The name of the tool that the AI is calling.
21551
21562
  input:
21552
21563
  type: object
21553
21564
  description: The input to the tool call.
21554
21565
  toolCallId:
21555
21566
  type: string
21556
- description: The ID of the tool call that the AI requires the user to confirm.
21557
- toolConfirmation:
21558
- $ref: "#/components/schemas/AIToolConfirmation"
21567
+ description: The ID of the tool call that the AI is calling.
21559
21568
  required:
21560
21569
  - type
21561
21570
  - messageId
21562
21571
  - stepIndex
21563
21572
  - toolCall
21564
21573
  - toolCallId
21565
- - toolConfirmation
21566
21574
  AIStreamResponseFollowupSuggestion:
21567
21575
  type: object
21568
21576
  description: |
@@ -21592,7 +21600,7 @@ components:
21592
21600
  - $ref: "#/components/schemas/AIStreamResponseDocument"
21593
21601
  - $ref: "#/components/schemas/AIStreamResponseObject"
21594
21602
  - $ref: "#/components/schemas/AIStreamResponseToolCall"
21595
- - $ref: "#/components/schemas/AIStreamResponseToolConfirm"
21603
+ - $ref: "#/components/schemas/AIStreamResponseToolCallPending"
21596
21604
  - $ref: "#/components/schemas/AIStreamResponseFollowupSuggestion"
21597
21605
  SiteInsightsEventSession:
21598
21606
  type: object
@@ -21698,7 +21706,7 @@ components:
21698
21706
  location:
21699
21707
  $ref: "#/components/schemas/SiteInsightsEventLocation"
21700
21708
  timestamp:
21701
- description: Optional timestamp of the event. If not provided, the current timestamp will be used.
21709
+ description: Optional timestamp of the event. If not provided, the current timestamp will be used. Must be within 5 minutes of the current time.
21702
21710
  $ref: "#/components/schemas/Timestamp"
21703
21711
  required:
21704
21712
  - session