@alis-build/alis-adk-sessions-v1 1.23.0 → 1.26.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.
@@ -1,7 +1,32 @@
1
- // @generated by protoc-gen-es v2.13.0 with parameter "target=js+dts,import_extension=js,json_types=true"
1
+ // @generated by protoc-gen-es v2.16.0 with parameter "target=js+dts,import_extension=js,json_types=true"
2
2
  // @generated from file alis/adk/sessions/v1/sessions.proto (package alis.adk.sessions.v1, syntax proto3)
3
3
  /* eslint-disable */
4
4
 
5
+ // Stores agent sessions: conversations between a user and an agent, the
6
+ // ordered events that make them up, and the state carried across them.
7
+ //
8
+ // `SessionService` manages two resources:
9
+ //
10
+ // - `Session` (`sessions/{session}`): one conversation, owned by a `user_id`
11
+ // within an `app_name`, with a key-value `state` and an expiry set through
12
+ // `expire_time` or `ttl`.
13
+ // - `SessionEvent` (`sessions/{session}/events/{event}`): one message from the
14
+ // user or an agent, with its `Content`, model response metadata, and the
15
+ // `EventActions` the agent took (state deltas, artifact updates, agent
16
+ // transfers, tool confirmations, context compaction). Events are added with
17
+ // `AppendEvent`; events that share an `invocation_id` belong to the same
18
+ // agent invocation.
19
+ //
20
+ // `AppState` and `UserState` hold state shared across all sessions of an app,
21
+ // or of one user within an app. Their keys appear with the `app:` and `user:`
22
+ // prefixes in the merged session state view; no RPC in this package takes
23
+ // them directly.
24
+ //
25
+ // `Content` and `Part` carry multi-part message content (text, media, function
26
+ // calls and responses, executable code). The remaining messages describe model
27
+ // output: grounding, citations, token usage, log probabilities, and why
28
+ // generation stopped.
29
+
5
30
  import type { GenEnum, GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
6
31
  import type { JsonObject, Message } from "@bufbuild/protobuf";
7
32
  import type { Duration, DurationJson, EmptySchema, FieldMask, FieldMaskJson, StructJson, Timestamp, TimestampJson, Value, ValueJson } from "@bufbuild/protobuf/wkt";
@@ -13,45 +38,70 @@ import type { Date, DateJson } from "@alis-build/google-type/google/type/date_pb
13
38
  export declare const file_alis_adk_sessions_v1_sessions: GenFile;
14
39
 
15
40
  /**
41
+ * Session represents a conversation session between a user and an agent.
42
+ *
43
+ * A session contains a set of actions between users and agents, including
44
+ * the session state, events, and metadata.
45
+ *
16
46
  * @generated from message alis.adk.sessions.v1.Session
17
47
  */
18
48
  export declare type Session = Message<"alis.adk.sessions.v1.Session"> & {
19
49
  /**
50
+ * Identifier. The ID of the session.
51
+ * Format: `{session}`
52
+ *
20
53
  * @generated from field: string id = 1;
21
54
  */
22
55
  id: string;
23
56
 
24
57
  /**
58
+ * Required. The name of the application associated with this session.
59
+ *
25
60
  * @generated from field: string app_name = 2;
26
61
  */
27
62
  appName: string;
28
63
 
29
64
  /**
65
+ * Required. Immutable. The user ID who owns this session.
66
+ *
30
67
  * @generated from field: string user_id = 3;
31
68
  */
32
69
  userId: string;
33
70
 
34
71
  /**
72
+ * Optional. The display name of the session.
73
+ *
35
74
  * @generated from field: optional string display_name = 4;
36
75
  */
37
76
  displayName?: string | undefined;
38
77
 
39
78
  /**
79
+ * Optional. Session-specific state which stores key conversation points.
80
+ * This is a key-value store that persists across events in the session.
81
+ *
40
82
  * @generated from field: google.protobuf.Struct state = 10;
41
83
  */
42
84
  state?: JsonObject | undefined;
43
85
 
44
86
  /**
87
+ * The expiration configuration for the session.
88
+ *
45
89
  * @generated from oneof alis.adk.sessions.v1.Session.expiration
46
90
  */
47
91
  expiration: {
48
92
  /**
93
+ * Optional. Timestamp of when this session is considered expired.
94
+ * This is always provided on output, regardless of what was sent on input.
95
+ *
49
96
  * @generated from field: google.protobuf.Timestamp expire_time = 96;
50
97
  */
51
98
  value: Timestamp;
52
99
  case: "expireTime";
53
100
  } | {
54
101
  /**
102
+ * Optional. Input only. The TTL (time-to-live) for this session.
103
+ * When provided on input, the service will calculate expire_time.
104
+ *
55
105
  * @generated from field: google.protobuf.Duration ttl = 97;
56
106
  */
57
107
  value: Duration;
@@ -59,61 +109,92 @@ export declare type Session = Message<"alis.adk.sessions.v1.Session"> & {
59
109
  } | { case: undefined; value?: undefined };
60
110
 
61
111
  /**
112
+ * Output only. Timestamp when the session was created.
113
+ *
62
114
  * @generated from field: google.protobuf.Timestamp create_time = 98;
63
115
  */
64
116
  createTime?: Timestamp | undefined;
65
117
 
66
118
  /**
119
+ * Output only. Timestamp when the session was last updated.
120
+ *
67
121
  * @generated from field: google.protobuf.Timestamp update_time = 99;
68
122
  */
69
123
  updateTime?: Timestamp | undefined;
70
124
  };
71
125
 
72
126
  /**
127
+ * Session represents a conversation session between a user and an agent.
128
+ *
129
+ * A session contains a set of actions between users and agents, including
130
+ * the session state, events, and metadata.
131
+ *
73
132
  * @generated from message alis.adk.sessions.v1.Session
74
133
  */
75
134
  export declare type SessionJson = {
76
135
  /**
136
+ * Identifier. The ID of the session.
137
+ * Format: `{session}`
138
+ *
77
139
  * @generated from field: string id = 1;
78
140
  */
79
141
  id?: string;
80
142
 
81
143
  /**
144
+ * Required. The name of the application associated with this session.
145
+ *
82
146
  * @generated from field: string app_name = 2;
83
147
  */
84
148
  appName?: string;
85
149
 
86
150
  /**
151
+ * Required. Immutable. The user ID who owns this session.
152
+ *
87
153
  * @generated from field: string user_id = 3;
88
154
  */
89
155
  userId?: string;
90
156
 
91
157
  /**
158
+ * Optional. The display name of the session.
159
+ *
92
160
  * @generated from field: optional string display_name = 4;
93
161
  */
94
162
  displayName?: string;
95
163
 
96
164
  /**
165
+ * Optional. Session-specific state which stores key conversation points.
166
+ * This is a key-value store that persists across events in the session.
167
+ *
97
168
  * @generated from field: google.protobuf.Struct state = 10;
98
169
  */
99
170
  state?: StructJson;
100
171
 
101
172
  /**
173
+ * Optional. Timestamp of when this session is considered expired.
174
+ * This is always provided on output, regardless of what was sent on input.
175
+ *
102
176
  * @generated from field: google.protobuf.Timestamp expire_time = 96;
103
177
  */
104
178
  expireTime?: TimestampJson;
105
179
 
106
180
  /**
181
+ * Optional. Input only. The TTL (time-to-live) for this session.
182
+ * When provided on input, the service will calculate expire_time.
183
+ *
107
184
  * @generated from field: google.protobuf.Duration ttl = 97;
108
185
  */
109
186
  ttl?: DurationJson;
110
187
 
111
188
  /**
189
+ * Output only. Timestamp when the session was created.
190
+ *
112
191
  * @generated from field: google.protobuf.Timestamp create_time = 98;
113
192
  */
114
193
  createTime?: TimestampJson;
115
194
 
116
195
  /**
196
+ * Output only. Timestamp when the session was last updated.
197
+ *
117
198
  * @generated from field: google.protobuf.Timestamp update_time = 99;
118
199
  */
119
200
  updateTime?: TimestampJson;
@@ -126,40 +207,64 @@ export declare type SessionJson = {
126
207
  export declare const SessionSchema: GenMessage<Session, {jsonType: SessionJson}>;
127
208
 
128
209
  /**
210
+ * AppState represents application-level state shared across all users and
211
+ * sessions within an application.
212
+ *
213
+ * Keys use the "app:" prefix in the merged session state view. Stored in
214
+ * a separate table keyed by app_name.
215
+ *
129
216
  * @generated from message alis.adk.sessions.v1.AppState
130
217
  */
131
218
  export declare type AppState = Message<"alis.adk.sessions.v1.AppState"> & {
132
219
  /**
220
+ * Required. The name of the application.
221
+ *
133
222
  * @generated from field: string app_name = 1;
134
223
  */
135
224
  appName: string;
136
225
 
137
226
  /**
227
+ * Optional. Key-value state shared across all users and sessions of the app.
228
+ *
138
229
  * @generated from field: google.protobuf.Struct state = 2;
139
230
  */
140
231
  state?: JsonObject | undefined;
141
232
 
142
233
  /**
234
+ * Output only. Timestamp when this app state was last updated.
235
+ *
143
236
  * @generated from field: google.protobuf.Timestamp update_time = 99;
144
237
  */
145
238
  updateTime?: Timestamp | undefined;
146
239
  };
147
240
 
148
241
  /**
242
+ * AppState represents application-level state shared across all users and
243
+ * sessions within an application.
244
+ *
245
+ * Keys use the "app:" prefix in the merged session state view. Stored in
246
+ * a separate table keyed by app_name.
247
+ *
149
248
  * @generated from message alis.adk.sessions.v1.AppState
150
249
  */
151
250
  export declare type AppStateJson = {
152
251
  /**
252
+ * Required. The name of the application.
253
+ *
153
254
  * @generated from field: string app_name = 1;
154
255
  */
155
256
  appName?: string;
156
257
 
157
258
  /**
259
+ * Optional. Key-value state shared across all users and sessions of the app.
260
+ *
158
261
  * @generated from field: google.protobuf.Struct state = 2;
159
262
  */
160
263
  state?: StructJson;
161
264
 
162
265
  /**
266
+ * Output only. Timestamp when this app state was last updated.
267
+ *
163
268
  * @generated from field: google.protobuf.Timestamp update_time = 99;
164
269
  */
165
270
  updateTime?: TimestampJson;
@@ -172,50 +277,80 @@ export declare type AppStateJson = {
172
277
  export declare const AppStateSchema: GenMessage<AppState, {jsonType: AppStateJson}>;
173
278
 
174
279
  /**
280
+ * UserState represents user-level state shared across all sessions of a user
281
+ * within an application.
282
+ *
283
+ * Keys use the "user:" prefix in the merged session state view. Stored in
284
+ * a separate table keyed by (app_name, user_id).
285
+ *
175
286
  * @generated from message alis.adk.sessions.v1.UserState
176
287
  */
177
288
  export declare type UserState = Message<"alis.adk.sessions.v1.UserState"> & {
178
289
  /**
290
+ * Required. The name of the application.
291
+ *
179
292
  * @generated from field: string app_name = 1;
180
293
  */
181
294
  appName: string;
182
295
 
183
296
  /**
297
+ * Required. The user ID who owns this state.
298
+ *
184
299
  * @generated from field: string user_id = 2;
185
300
  */
186
301
  userId: string;
187
302
 
188
303
  /**
304
+ * Optional. Key-value state shared across all sessions of this user in the
305
+ * app.
306
+ *
189
307
  * @generated from field: google.protobuf.Struct state = 3;
190
308
  */
191
309
  state?: JsonObject | undefined;
192
310
 
193
311
  /**
312
+ * Output only. Timestamp when this user state was last updated.
313
+ *
194
314
  * @generated from field: google.protobuf.Timestamp update_time = 99;
195
315
  */
196
316
  updateTime?: Timestamp | undefined;
197
317
  };
198
318
 
199
319
  /**
320
+ * UserState represents user-level state shared across all sessions of a user
321
+ * within an application.
322
+ *
323
+ * Keys use the "user:" prefix in the merged session state view. Stored in
324
+ * a separate table keyed by (app_name, user_id).
325
+ *
200
326
  * @generated from message alis.adk.sessions.v1.UserState
201
327
  */
202
328
  export declare type UserStateJson = {
203
329
  /**
330
+ * Required. The name of the application.
331
+ *
204
332
  * @generated from field: string app_name = 1;
205
333
  */
206
334
  appName?: string;
207
335
 
208
336
  /**
337
+ * Required. The user ID who owns this state.
338
+ *
209
339
  * @generated from field: string user_id = 2;
210
340
  */
211
341
  userId?: string;
212
342
 
213
343
  /**
344
+ * Optional. Key-value state shared across all sessions of this user in the
345
+ * app.
346
+ *
214
347
  * @generated from field: google.protobuf.Struct state = 3;
215
348
  */
216
349
  state?: StructJson;
217
350
 
218
351
  /**
352
+ * Output only. Timestamp when this user state was last updated.
353
+ *
219
354
  * @generated from field: google.protobuf.Timestamp update_time = 99;
220
355
  */
221
356
  updateTime?: TimestampJson;
@@ -228,250 +363,456 @@ export declare type UserStateJson = {
228
363
  export declare const UserStateSchema: GenMessage<UserState, {jsonType: UserStateJson}>;
229
364
 
230
365
  /**
366
+ * SessionEvent represents a message from either the user or agent.
367
+ *
368
+ * Events are the fundamental unit of interaction in a session, containing
369
+ * content, metadata, and actions taken by the agent.
370
+ *
231
371
  * @generated from message alis.adk.sessions.v1.SessionEvent
232
372
  */
233
373
  export declare type SessionEvent = Message<"alis.adk.sessions.v1.SessionEvent"> & {
234
374
  /**
375
+ * Identifier. The ID of the event.
376
+ * Format: `{event}`
377
+ *
235
378
  * @generated from field: string id = 1;
236
379
  */
237
380
  id: string;
238
381
 
239
382
  /**
383
+ * Required. The name of the application associated with this event.
384
+ *
240
385
  * @generated from field: string app_name = 2;
241
386
  */
242
387
  appName: string;
243
388
 
244
389
  /**
390
+ * Required. The user ID who owns the session this event belongs to.
391
+ *
245
392
  * @generated from field: string user_id = 3;
246
393
  */
247
394
  userId: string;
248
395
 
249
396
  /**
397
+ * Required. The ID of the session this event belongs to.
398
+ *
250
399
  * @generated from field: string session_id = 4;
251
400
  */
252
401
  sessionId: string;
253
402
 
254
403
  /**
404
+ * Required. The invocation ID of the event.
405
+ * Multiple events can have the same invocation ID, representing events
406
+ * that are part of the same agent invocation.
407
+ *
255
408
  * @generated from field: string invocation_id = 5;
256
409
  */
257
410
  invocationId: string;
258
411
 
259
412
  /**
413
+ * Required. The name of the agent that sent the event, or the user
414
+ * identifier.
415
+ *
260
416
  * @generated from field: string author = 6;
261
417
  */
262
418
  author: string;
263
419
 
264
420
  /**
421
+ * Optional. Actions executed by the agent as part of this event.
422
+ *
265
423
  * @generated from field: alis.adk.sessions.v1.EventActions actions = 7;
266
424
  */
267
425
  actions?: EventActions | undefined;
268
426
 
269
427
  /**
428
+ * Optional. IDs of long-running function calls. Used for function call
429
+ * events.
430
+ *
270
431
  * @generated from field: repeated string long_running_tool_ids = 8;
271
432
  */
272
433
  longRunningToolIds: string[];
273
434
 
274
435
  /**
436
+ * Optional. The branch of the event. Format: `agent_1.agent_2.agent_3` for
437
+ * nested agent hierarchies. Used when child agents should not see siblings'
438
+ * history.
439
+ *
275
440
  * @generated from field: optional string branch = 9;
276
441
  */
277
442
  branch?: string | undefined;
278
443
 
279
444
  /**
445
+ * Optional. Content of the event provided by the author.
446
+ *
280
447
  * @generated from field: alis.adk.sessions.v1.Content content = 10;
281
448
  */
282
449
  content?: Content | undefined;
283
450
 
284
451
  /**
452
+ * Optional. Metadata returned when grounding is enabled (e.g. web search,
453
+ * RAG).
454
+ *
285
455
  * @generated from field: alis.adk.sessions.v1.GroundingMetadata grounding_metadata = 11;
286
456
  */
287
457
  groundingMetadata?: GroundingMetadata | undefined;
288
458
 
289
459
  /**
460
+ * Optional. Custom metadata of the LLM response.
461
+ *
290
462
  * @generated from field: google.protobuf.Struct custom_metadata = 12;
291
463
  */
292
464
  customMetadata?: JsonObject | undefined;
293
465
 
294
466
  /**
467
+ * Optional. Token usage metadata from the model.
468
+ *
295
469
  * @generated from field: alis.adk.sessions.v1.UsageMetadata usage_metadata = 13;
296
470
  */
297
471
  usageMetadata?: UsageMetadata | undefined;
298
472
 
299
473
  /**
474
+ * Optional. Citation metadata for sourced content.
475
+ *
300
476
  * @generated from field: alis.adk.sessions.v1.CitationMetadata citation_metadata = 14;
301
477
  */
302
478
  citationMetadata?: CitationMetadata | undefined;
303
479
 
304
480
  /**
481
+ * Optional. Indicates whether the content is part of an unfinished text
482
+ * stream.
483
+ *
305
484
  * @generated from field: optional bool partial = 15;
306
485
  */
307
486
  partial?: boolean | undefined;
308
487
 
309
488
  /**
489
+ * Optional. Indicates whether the response from the model is complete.
490
+ *
310
491
  * @generated from field: optional bool turn_complete = 16;
311
492
  */
312
493
  turnComplete?: boolean | undefined;
313
494
 
314
495
  /**
496
+ * Optional. Error code if the response is an error. Code varies by model.
497
+ *
315
498
  * @generated from field: optional string error_code = 17;
316
499
  */
317
500
  errorCode?: string | undefined;
318
501
 
319
502
  /**
503
+ * Optional. Error message if the response is an error.
504
+ *
320
505
  * @generated from field: optional string error_message = 18;
321
506
  */
322
507
  errorMessage?: string | undefined;
323
508
 
324
509
  /**
510
+ * Optional. Indicates the LLM was interrupted when generating (e.g. user
511
+ * stop).
512
+ *
325
513
  * @generated from field: optional bool interrupted = 19;
326
514
  */
327
515
  interrupted?: boolean | undefined;
328
516
 
329
517
  /**
518
+ * Optional. The reason the LLM stopped generating.
519
+ *
330
520
  * @generated from field: alis.adk.sessions.v1.FinishReason finish_reason = 20;
331
521
  */
332
522
  finishReason: FinishReason;
333
523
 
334
524
  /**
525
+ * Optional. The average log probability of the tokens in the response.
526
+ *
335
527
  * @generated from field: optional double avg_logprobs = 21;
336
528
  */
337
529
  avgLogprobs?: number | undefined;
338
530
 
339
531
  /**
532
+ * Optional. The version of the model that generated the response.
533
+ *
340
534
  * @generated from field: optional string model_version = 22;
341
535
  */
342
536
  modelVersion?: string | undefined;
343
537
 
344
538
  /**
539
+ * Optional. The logprobs result of the response.
540
+ *
345
541
  * @generated from field: alis.adk.sessions.v1.LogprobsResult logprobs_result = 23;
346
542
  */
347
543
  logprobsResult?: LogprobsResult | undefined;
348
544
 
349
545
  /**
546
+ * Optional. When set, restricts which agent contexts include this event in
547
+ * LLM prompt history: an event is visible only when its isolation scope
548
+ * equals the agent's isolation scope (exact match; empty sees only empty).
549
+ *
550
+ * @generated from field: optional string isolation_scope = 24;
551
+ */
552
+ isolationScope?: string | undefined;
553
+
554
+ /**
555
+ * Optional. Routing information for workflow execution.
556
+ *
557
+ * @generated from field: repeated string routes = 25;
558
+ */
559
+ routes: string[];
560
+
561
+ /**
562
+ * Optional. When set, signals that the workflow node emitting this event is
563
+ * asking for human input and is about to pause. At most one event per node
564
+ * activation may carry this field.
565
+ *
566
+ * @generated from field: alis.adk.sessions.v1.RequestInput requested_input = 26;
567
+ */
568
+ requestedInput?: RequestInput | undefined;
569
+
570
+ /**
571
+ * Optional. Generic data output from a workflow node, as a JSON value.
572
+ *
573
+ * @generated from field: google.protobuf.Value output = 27;
574
+ */
575
+ output?: Value | undefined;
576
+
577
+ /**
578
+ * Optional. Workflow-node metadata for events emitted inside a workflow.
579
+ * Absent for non-workflow events.
580
+ *
581
+ * @generated from field: alis.adk.sessions.v1.NodeInfo node_info = 28;
582
+ */
583
+ nodeInfo?: NodeInfo | undefined;
584
+
585
+ /**
586
+ * Required. Timestamp when the event was created on the client side.
587
+ *
350
588
  * @generated from field: google.protobuf.Timestamp timestamp = 98;
351
589
  */
352
590
  timestamp?: Timestamp | undefined;
353
591
  };
354
592
 
355
593
  /**
594
+ * SessionEvent represents a message from either the user or agent.
595
+ *
596
+ * Events are the fundamental unit of interaction in a session, containing
597
+ * content, metadata, and actions taken by the agent.
598
+ *
356
599
  * @generated from message alis.adk.sessions.v1.SessionEvent
357
600
  */
358
601
  export declare type SessionEventJson = {
359
602
  /**
603
+ * Identifier. The ID of the event.
604
+ * Format: `{event}`
605
+ *
360
606
  * @generated from field: string id = 1;
361
607
  */
362
608
  id?: string;
363
609
 
364
610
  /**
611
+ * Required. The name of the application associated with this event.
612
+ *
365
613
  * @generated from field: string app_name = 2;
366
614
  */
367
615
  appName?: string;
368
616
 
369
617
  /**
618
+ * Required. The user ID who owns the session this event belongs to.
619
+ *
370
620
  * @generated from field: string user_id = 3;
371
621
  */
372
622
  userId?: string;
373
623
 
374
624
  /**
625
+ * Required. The ID of the session this event belongs to.
626
+ *
375
627
  * @generated from field: string session_id = 4;
376
628
  */
377
629
  sessionId?: string;
378
630
 
379
631
  /**
632
+ * Required. The invocation ID of the event.
633
+ * Multiple events can have the same invocation ID, representing events
634
+ * that are part of the same agent invocation.
635
+ *
380
636
  * @generated from field: string invocation_id = 5;
381
637
  */
382
638
  invocationId?: string;
383
639
 
384
640
  /**
641
+ * Required. The name of the agent that sent the event, or the user
642
+ * identifier.
643
+ *
385
644
  * @generated from field: string author = 6;
386
645
  */
387
646
  author?: string;
388
647
 
389
648
  /**
649
+ * Optional. Actions executed by the agent as part of this event.
650
+ *
390
651
  * @generated from field: alis.adk.sessions.v1.EventActions actions = 7;
391
652
  */
392
653
  actions?: EventActionsJson;
393
654
 
394
655
  /**
656
+ * Optional. IDs of long-running function calls. Used for function call
657
+ * events.
658
+ *
395
659
  * @generated from field: repeated string long_running_tool_ids = 8;
396
660
  */
397
661
  longRunningToolIds?: string[];
398
662
 
399
663
  /**
664
+ * Optional. The branch of the event. Format: `agent_1.agent_2.agent_3` for
665
+ * nested agent hierarchies. Used when child agents should not see siblings'
666
+ * history.
667
+ *
400
668
  * @generated from field: optional string branch = 9;
401
669
  */
402
670
  branch?: string;
403
671
 
404
672
  /**
673
+ * Optional. Content of the event provided by the author.
674
+ *
405
675
  * @generated from field: alis.adk.sessions.v1.Content content = 10;
406
676
  */
407
677
  content?: ContentJson;
408
678
 
409
679
  /**
680
+ * Optional. Metadata returned when grounding is enabled (e.g. web search,
681
+ * RAG).
682
+ *
410
683
  * @generated from field: alis.adk.sessions.v1.GroundingMetadata grounding_metadata = 11;
411
684
  */
412
685
  groundingMetadata?: GroundingMetadataJson;
413
686
 
414
687
  /**
688
+ * Optional. Custom metadata of the LLM response.
689
+ *
415
690
  * @generated from field: google.protobuf.Struct custom_metadata = 12;
416
691
  */
417
692
  customMetadata?: StructJson;
418
693
 
419
694
  /**
695
+ * Optional. Token usage metadata from the model.
696
+ *
420
697
  * @generated from field: alis.adk.sessions.v1.UsageMetadata usage_metadata = 13;
421
698
  */
422
699
  usageMetadata?: UsageMetadataJson;
423
700
 
424
701
  /**
702
+ * Optional. Citation metadata for sourced content.
703
+ *
425
704
  * @generated from field: alis.adk.sessions.v1.CitationMetadata citation_metadata = 14;
426
705
  */
427
706
  citationMetadata?: CitationMetadataJson;
428
707
 
429
708
  /**
709
+ * Optional. Indicates whether the content is part of an unfinished text
710
+ * stream.
711
+ *
430
712
  * @generated from field: optional bool partial = 15;
431
713
  */
432
714
  partial?: boolean;
433
715
 
434
716
  /**
717
+ * Optional. Indicates whether the response from the model is complete.
718
+ *
435
719
  * @generated from field: optional bool turn_complete = 16;
436
720
  */
437
721
  turnComplete?: boolean;
438
722
 
439
723
  /**
724
+ * Optional. Error code if the response is an error. Code varies by model.
725
+ *
440
726
  * @generated from field: optional string error_code = 17;
441
727
  */
442
728
  errorCode?: string;
443
729
 
444
730
  /**
731
+ * Optional. Error message if the response is an error.
732
+ *
445
733
  * @generated from field: optional string error_message = 18;
446
734
  */
447
735
  errorMessage?: string;
448
736
 
449
737
  /**
738
+ * Optional. Indicates the LLM was interrupted when generating (e.g. user
739
+ * stop).
740
+ *
450
741
  * @generated from field: optional bool interrupted = 19;
451
742
  */
452
743
  interrupted?: boolean;
453
744
 
454
745
  /**
746
+ * Optional. The reason the LLM stopped generating.
747
+ *
455
748
  * @generated from field: alis.adk.sessions.v1.FinishReason finish_reason = 20;
456
749
  */
457
750
  finishReason?: FinishReasonJson;
458
751
 
459
752
  /**
753
+ * Optional. The average log probability of the tokens in the response.
754
+ *
460
755
  * @generated from field: optional double avg_logprobs = 21;
461
756
  */
462
757
  avgLogprobs?: number | "NaN" | "Infinity" | "-Infinity";
463
758
 
464
759
  /**
760
+ * Optional. The version of the model that generated the response.
761
+ *
465
762
  * @generated from field: optional string model_version = 22;
466
763
  */
467
764
  modelVersion?: string;
468
765
 
469
766
  /**
767
+ * Optional. The logprobs result of the response.
768
+ *
470
769
  * @generated from field: alis.adk.sessions.v1.LogprobsResult logprobs_result = 23;
471
770
  */
472
771
  logprobsResult?: LogprobsResultJson;
473
772
 
474
773
  /**
774
+ * Optional. When set, restricts which agent contexts include this event in
775
+ * LLM prompt history: an event is visible only when its isolation scope
776
+ * equals the agent's isolation scope (exact match; empty sees only empty).
777
+ *
778
+ * @generated from field: optional string isolation_scope = 24;
779
+ */
780
+ isolationScope?: string;
781
+
782
+ /**
783
+ * Optional. Routing information for workflow execution.
784
+ *
785
+ * @generated from field: repeated string routes = 25;
786
+ */
787
+ routes?: string[];
788
+
789
+ /**
790
+ * Optional. When set, signals that the workflow node emitting this event is
791
+ * asking for human input and is about to pause. At most one event per node
792
+ * activation may carry this field.
793
+ *
794
+ * @generated from field: alis.adk.sessions.v1.RequestInput requested_input = 26;
795
+ */
796
+ requestedInput?: RequestInputJson;
797
+
798
+ /**
799
+ * Optional. Generic data output from a workflow node, as a JSON value.
800
+ *
801
+ * @generated from field: google.protobuf.Value output = 27;
802
+ */
803
+ output?: ValueJson;
804
+
805
+ /**
806
+ * Optional. Workflow-node metadata for events emitted inside a workflow.
807
+ * Absent for non-workflow events.
808
+ *
809
+ * @generated from field: alis.adk.sessions.v1.NodeInfo node_info = 28;
810
+ */
811
+ nodeInfo?: NodeInfoJson;
812
+
813
+ /**
814
+ * Required. Timestamp when the event was created on the client side.
815
+ *
475
816
  * @generated from field: google.protobuf.Timestamp timestamp = 98;
476
817
  */
477
818
  timestamp?: TimestampJson;
@@ -484,30 +825,44 @@ export declare type SessionEventJson = {
484
825
  export declare const SessionEventSchema: GenMessage<SessionEvent, {jsonType: SessionEventJson}>;
485
826
 
486
827
  /**
828
+ * Request message for SessionService.CreateSession.
829
+ *
487
830
  * @generated from message alis.adk.sessions.v1.CreateSessionRequest
488
831
  */
489
832
  export declare type CreateSessionRequest = Message<"alis.adk.sessions.v1.CreateSessionRequest"> & {
490
833
  /**
834
+ * Required. The session to create.
835
+ *
491
836
  * @generated from field: alis.adk.sessions.v1.Session session = 1;
492
837
  */
493
838
  session?: Session | undefined;
494
839
 
495
840
  /**
841
+ * Optional. The session ID to create.
842
+ * If not provided, a new session ID will be generated.
843
+ *
496
844
  * @generated from field: string session_id = 2;
497
845
  */
498
846
  sessionId: string;
499
847
  };
500
848
 
501
849
  /**
850
+ * Request message for SessionService.CreateSession.
851
+ *
502
852
  * @generated from message alis.adk.sessions.v1.CreateSessionRequest
503
853
  */
504
854
  export declare type CreateSessionRequestJson = {
505
855
  /**
856
+ * Required. The session to create.
857
+ *
506
858
  * @generated from field: alis.adk.sessions.v1.Session session = 1;
507
859
  */
508
860
  session?: SessionJson;
509
861
 
510
862
  /**
863
+ * Optional. The session ID to create.
864
+ * If not provided, a new session ID will be generated.
865
+ *
511
866
  * @generated from field: string session_id = 2;
512
867
  */
513
868
  sessionId?: string;
@@ -520,20 +875,30 @@ export declare type CreateSessionRequestJson = {
520
875
  export declare const CreateSessionRequestSchema: GenMessage<CreateSessionRequest, {jsonType: CreateSessionRequestJson}>;
521
876
 
522
877
  /**
878
+ * Request message for SessionService.GetSession.
879
+ *
523
880
  * @generated from message alis.adk.sessions.v1.GetSessionRequest
524
881
  */
525
882
  export declare type GetSessionRequest = Message<"alis.adk.sessions.v1.GetSessionRequest"> & {
526
883
  /**
884
+ * Required. The resource name of the session.
885
+ * Format: `sessions/{session}`
886
+ *
527
887
  * @generated from field: string name = 1;
528
888
  */
529
889
  name: string;
530
890
  };
531
891
 
532
892
  /**
893
+ * Request message for SessionService.GetSession.
894
+ *
533
895
  * @generated from message alis.adk.sessions.v1.GetSessionRequest
534
896
  */
535
897
  export declare type GetSessionRequestJson = {
536
898
  /**
899
+ * Required. The resource name of the session.
900
+ * Format: `sessions/{session}`
901
+ *
537
902
  * @generated from field: string name = 1;
538
903
  */
539
904
  name?: string;
@@ -546,50 +911,92 @@ export declare type GetSessionRequestJson = {
546
911
  export declare const GetSessionRequestSchema: GenMessage<GetSessionRequest, {jsonType: GetSessionRequestJson}>;
547
912
 
548
913
  /**
914
+ * Request message for SessionService.ListSessions.
915
+ *
549
916
  * @generated from message alis.adk.sessions.v1.ListSessionsRequest
550
917
  */
551
918
  export declare type ListSessionsRequest = Message<"alis.adk.sessions.v1.ListSessionsRequest"> & {
552
919
  /**
920
+ * Optional. The maximum number of sessions to return.
921
+ * The service may return fewer than this value.
922
+ * If unspecified, at most 100 sessions will be returned.
923
+ *
553
924
  * @generated from field: int32 page_size = 1;
554
925
  */
555
926
  pageSize: number;
556
927
 
557
928
  /**
929
+ * Optional. A page token, received from a previous ListSessions call.
930
+ * Provide this to retrieve the next page of results.
931
+ *
558
932
  * @generated from field: string page_token = 2;
559
933
  */
560
934
  pageToken: string;
561
935
 
562
936
  /**
937
+ * Optional. The standard list filter.
938
+ * Supported fields:
939
+ * - `display_name`
940
+ * - `user_id`
941
+ * - `app_name`
942
+ *
563
943
  * @generated from field: string filter = 3;
564
944
  */
565
945
  filter: string;
566
946
 
567
947
  /**
948
+ * Optional. A comma-separated list of fields to order by, sorted in ascending
949
+ * order. Use "desc" after a field name for descending.
950
+ * Supported fields:
951
+ * - `create_time`
952
+ * - `update_time`
953
+ *
568
954
  * @generated from field: string order_by = 4;
569
955
  */
570
956
  orderBy: string;
571
957
  };
572
958
 
573
959
  /**
960
+ * Request message for SessionService.ListSessions.
961
+ *
574
962
  * @generated from message alis.adk.sessions.v1.ListSessionsRequest
575
963
  */
576
964
  export declare type ListSessionsRequestJson = {
577
965
  /**
966
+ * Optional. The maximum number of sessions to return.
967
+ * The service may return fewer than this value.
968
+ * If unspecified, at most 100 sessions will be returned.
969
+ *
578
970
  * @generated from field: int32 page_size = 1;
579
971
  */
580
972
  pageSize?: number;
581
973
 
582
974
  /**
975
+ * Optional. A page token, received from a previous ListSessions call.
976
+ * Provide this to retrieve the next page of results.
977
+ *
583
978
  * @generated from field: string page_token = 2;
584
979
  */
585
980
  pageToken?: string;
586
981
 
587
982
  /**
983
+ * Optional. The standard list filter.
984
+ * Supported fields:
985
+ * - `display_name`
986
+ * - `user_id`
987
+ * - `app_name`
988
+ *
588
989
  * @generated from field: string filter = 3;
589
990
  */
590
991
  filter?: string;
591
992
 
592
993
  /**
994
+ * Optional. A comma-separated list of fields to order by, sorted in ascending
995
+ * order. Use "desc" after a field name for descending.
996
+ * Supported fields:
997
+ * - `create_time`
998
+ * - `update_time`
999
+ *
593
1000
  * @generated from field: string order_by = 4;
594
1001
  */
595
1002
  orderBy?: string;
@@ -602,30 +1009,46 @@ export declare type ListSessionsRequestJson = {
602
1009
  export declare const ListSessionsRequestSchema: GenMessage<ListSessionsRequest, {jsonType: ListSessionsRequestJson}>;
603
1010
 
604
1011
  /**
1012
+ * Response message for SessionService.ListSessions.
1013
+ *
605
1014
  * @generated from message alis.adk.sessions.v1.ListSessionsResponse
606
1015
  */
607
1016
  export declare type ListSessionsResponse = Message<"alis.adk.sessions.v1.ListSessionsResponse"> & {
608
1017
  /**
1018
+ * A list of sessions matching the request.
1019
+ *
609
1020
  * @generated from field: repeated alis.adk.sessions.v1.Session sessions = 1;
610
1021
  */
611
1022
  sessions: Session[];
612
1023
 
613
1024
  /**
1025
+ * A token, which can be sent as ListSessionsRequest.page_token to retrieve
1026
+ * the next page. Absence of this field indicates there are no subsequent
1027
+ * pages.
1028
+ *
614
1029
  * @generated from field: string next_page_token = 2;
615
1030
  */
616
1031
  nextPageToken: string;
617
1032
  };
618
1033
 
619
1034
  /**
1035
+ * Response message for SessionService.ListSessions.
1036
+ *
620
1037
  * @generated from message alis.adk.sessions.v1.ListSessionsResponse
621
1038
  */
622
1039
  export declare type ListSessionsResponseJson = {
623
1040
  /**
1041
+ * A list of sessions matching the request.
1042
+ *
624
1043
  * @generated from field: repeated alis.adk.sessions.v1.Session sessions = 1;
625
1044
  */
626
1045
  sessions?: SessionJson[];
627
1046
 
628
1047
  /**
1048
+ * A token, which can be sent as ListSessionsRequest.page_token to retrieve
1049
+ * the next page. Absence of this field indicates there are no subsequent
1050
+ * pages.
1051
+ *
629
1052
  * @generated from field: string next_page_token = 2;
630
1053
  */
631
1054
  nextPageToken?: string;
@@ -638,30 +1061,42 @@ export declare type ListSessionsResponseJson = {
638
1061
  export declare const ListSessionsResponseSchema: GenMessage<ListSessionsResponse, {jsonType: ListSessionsResponseJson}>;
639
1062
 
640
1063
  /**
1064
+ * Request message for SessionService.UpdateSession.
1065
+ *
641
1066
  * @generated from message alis.adk.sessions.v1.UpdateSessionRequest
642
1067
  */
643
1068
  export declare type UpdateSessionRequest = Message<"alis.adk.sessions.v1.UpdateSessionRequest"> & {
644
1069
  /**
1070
+ * Required. The session to update.
1071
+ *
645
1072
  * @generated from field: alis.adk.sessions.v1.Session session = 1;
646
1073
  */
647
1074
  session?: Session | undefined;
648
1075
 
649
1076
  /**
1077
+ * Required. The list of fields to update.
1078
+ *
650
1079
  * @generated from field: google.protobuf.FieldMask update_mask = 2;
651
1080
  */
652
1081
  updateMask?: FieldMask | undefined;
653
1082
  };
654
1083
 
655
1084
  /**
1085
+ * Request message for SessionService.UpdateSession.
1086
+ *
656
1087
  * @generated from message alis.adk.sessions.v1.UpdateSessionRequest
657
1088
  */
658
1089
  export declare type UpdateSessionRequestJson = {
659
1090
  /**
1091
+ * Required. The session to update.
1092
+ *
660
1093
  * @generated from field: alis.adk.sessions.v1.Session session = 1;
661
1094
  */
662
1095
  session?: SessionJson;
663
1096
 
664
1097
  /**
1098
+ * Required. The list of fields to update.
1099
+ *
665
1100
  * @generated from field: google.protobuf.FieldMask update_mask = 2;
666
1101
  */
667
1102
  updateMask?: FieldMaskJson;
@@ -674,20 +1109,30 @@ export declare type UpdateSessionRequestJson = {
674
1109
  export declare const UpdateSessionRequestSchema: GenMessage<UpdateSessionRequest, {jsonType: UpdateSessionRequestJson}>;
675
1110
 
676
1111
  /**
1112
+ * Request message for SessionService.DeleteSession.
1113
+ *
677
1114
  * @generated from message alis.adk.sessions.v1.DeleteSessionRequest
678
1115
  */
679
1116
  export declare type DeleteSessionRequest = Message<"alis.adk.sessions.v1.DeleteSessionRequest"> & {
680
1117
  /**
1118
+ * Required. The resource name of the session.
1119
+ * Format: `sessions/{session}`
1120
+ *
681
1121
  * @generated from field: string name = 1;
682
1122
  */
683
1123
  name: string;
684
1124
  };
685
1125
 
686
1126
  /**
1127
+ * Request message for SessionService.DeleteSession.
1128
+ *
687
1129
  * @generated from message alis.adk.sessions.v1.DeleteSessionRequest
688
1130
  */
689
1131
  export declare type DeleteSessionRequestJson = {
690
1132
  /**
1133
+ * Required. The resource name of the session.
1134
+ * Format: `sessions/{session}`
1135
+ *
691
1136
  * @generated from field: string name = 1;
692
1137
  */
693
1138
  name?: string;
@@ -700,20 +1145,30 @@ export declare type DeleteSessionRequestJson = {
700
1145
  export declare const DeleteSessionRequestSchema: GenMessage<DeleteSessionRequest, {jsonType: DeleteSessionRequestJson}>;
701
1146
 
702
1147
  /**
1148
+ * Request message for SessionService.GetEvent.
1149
+ *
703
1150
  * @generated from message alis.adk.sessions.v1.GetEventRequest
704
1151
  */
705
1152
  export declare type GetEventRequest = Message<"alis.adk.sessions.v1.GetEventRequest"> & {
706
1153
  /**
1154
+ * Required. The resource name of the event.
1155
+ * Format: `sessions/{session}/events/{event}`
1156
+ *
707
1157
  * @generated from field: string name = 1;
708
1158
  */
709
1159
  name: string;
710
1160
  };
711
1161
 
712
1162
  /**
1163
+ * Request message for SessionService.GetEvent.
1164
+ *
713
1165
  * @generated from message alis.adk.sessions.v1.GetEventRequest
714
1166
  */
715
1167
  export declare type GetEventRequestJson = {
716
1168
  /**
1169
+ * Required. The resource name of the event.
1170
+ * Format: `sessions/{session}/events/{event}`
1171
+ *
717
1172
  * @generated from field: string name = 1;
718
1173
  */
719
1174
  name?: string;
@@ -726,60 +1181,102 @@ export declare type GetEventRequestJson = {
726
1181
  export declare const GetEventRequestSchema: GenMessage<GetEventRequest, {jsonType: GetEventRequestJson}>;
727
1182
 
728
1183
  /**
1184
+ * Request message for SessionService.ListEvents.
1185
+ *
729
1186
  * @generated from message alis.adk.sessions.v1.ListEventsRequest
730
1187
  */
731
1188
  export declare type ListEventsRequest = Message<"alis.adk.sessions.v1.ListEventsRequest"> & {
732
1189
  /**
1190
+ * Required. The resource name of the session to list events from.
1191
+ * Format: `sessions/{session}`
1192
+ *
733
1193
  * @generated from field: string parent = 1;
734
1194
  */
735
1195
  parent: string;
736
1196
 
737
1197
  /**
1198
+ * Optional. The maximum number of events to return.
1199
+ * The service may return fewer than this value.
1200
+ * If unspecified, at most 100 events will be returned.
1201
+ *
738
1202
  * @generated from field: int32 page_size = 2;
739
1203
  */
740
1204
  pageSize: number;
741
1205
 
742
1206
  /**
1207
+ * Optional. A page token, received from a previous ListEvents call.
1208
+ * Provide this to retrieve the next page of results.
1209
+ *
743
1210
  * @generated from field: string page_token = 3;
744
1211
  */
745
1212
  pageToken: string;
746
1213
 
747
1214
  /**
1215
+ * Optional. The standard list filter.
1216
+ * Supported fields:
1217
+ * - `timestamp` range in RFC 3339 format.
1218
+ *
748
1219
  * @generated from field: string filter = 4;
749
1220
  */
750
1221
  filter: string;
751
1222
 
752
1223
  /**
1224
+ * Optional. A comma-separated list of fields to order by, sorted in ascending
1225
+ * order. Use "desc" after a field name for descending.
1226
+ * Supported fields:
1227
+ * - `timestamp`
1228
+ *
753
1229
  * @generated from field: string order_by = 5;
754
1230
  */
755
1231
  orderBy: string;
756
1232
  };
757
1233
 
758
1234
  /**
1235
+ * Request message for SessionService.ListEvents.
1236
+ *
759
1237
  * @generated from message alis.adk.sessions.v1.ListEventsRequest
760
1238
  */
761
1239
  export declare type ListEventsRequestJson = {
762
1240
  /**
1241
+ * Required. The resource name of the session to list events from.
1242
+ * Format: `sessions/{session}`
1243
+ *
763
1244
  * @generated from field: string parent = 1;
764
1245
  */
765
1246
  parent?: string;
766
1247
 
767
1248
  /**
1249
+ * Optional. The maximum number of events to return.
1250
+ * The service may return fewer than this value.
1251
+ * If unspecified, at most 100 events will be returned.
1252
+ *
768
1253
  * @generated from field: int32 page_size = 2;
769
1254
  */
770
1255
  pageSize?: number;
771
1256
 
772
1257
  /**
1258
+ * Optional. A page token, received from a previous ListEvents call.
1259
+ * Provide this to retrieve the next page of results.
1260
+ *
773
1261
  * @generated from field: string page_token = 3;
774
1262
  */
775
1263
  pageToken?: string;
776
1264
 
777
1265
  /**
1266
+ * Optional. The standard list filter.
1267
+ * Supported fields:
1268
+ * - `timestamp` range in RFC 3339 format.
1269
+ *
778
1270
  * @generated from field: string filter = 4;
779
1271
  */
780
1272
  filter?: string;
781
1273
 
782
1274
  /**
1275
+ * Optional. A comma-separated list of fields to order by, sorted in ascending
1276
+ * order. Use "desc" after a field name for descending.
1277
+ * Supported fields:
1278
+ * - `timestamp`
1279
+ *
783
1280
  * @generated from field: string order_by = 5;
784
1281
  */
785
1282
  orderBy?: string;
@@ -792,30 +1289,46 @@ export declare type ListEventsRequestJson = {
792
1289
  export declare const ListEventsRequestSchema: GenMessage<ListEventsRequest, {jsonType: ListEventsRequestJson}>;
793
1290
 
794
1291
  /**
1292
+ * Response message for SessionService.ListEvents.
1293
+ *
795
1294
  * @generated from message alis.adk.sessions.v1.ListEventsResponse
796
1295
  */
797
1296
  export declare type ListEventsResponse = Message<"alis.adk.sessions.v1.ListEventsResponse"> & {
798
1297
  /**
1298
+ * A list of events matching the request.
1299
+ *
799
1300
  * @generated from field: repeated alis.adk.sessions.v1.SessionEvent session_events = 1;
800
1301
  */
801
1302
  sessionEvents: SessionEvent[];
802
1303
 
803
1304
  /**
1305
+ * A token, which can be sent as ListEventsRequest.page_token to retrieve
1306
+ * the next page. Absence of this field indicates there are no subsequent
1307
+ * pages.
1308
+ *
804
1309
  * @generated from field: string next_page_token = 2;
805
1310
  */
806
1311
  nextPageToken: string;
807
1312
  };
808
1313
 
809
1314
  /**
1315
+ * Response message for SessionService.ListEvents.
1316
+ *
810
1317
  * @generated from message alis.adk.sessions.v1.ListEventsResponse
811
1318
  */
812
1319
  export declare type ListEventsResponseJson = {
813
1320
  /**
1321
+ * A list of events matching the request.
1322
+ *
814
1323
  * @generated from field: repeated alis.adk.sessions.v1.SessionEvent session_events = 1;
815
1324
  */
816
1325
  sessionEvents?: SessionEventJson[];
817
1326
 
818
1327
  /**
1328
+ * A token, which can be sent as ListEventsRequest.page_token to retrieve
1329
+ * the next page. Absence of this field indicates there are no subsequent
1330
+ * pages.
1331
+ *
819
1332
  * @generated from field: string next_page_token = 2;
820
1333
  */
821
1334
  nextPageToken?: string;
@@ -828,30 +1341,44 @@ export declare type ListEventsResponseJson = {
828
1341
  export declare const ListEventsResponseSchema: GenMessage<ListEventsResponse, {jsonType: ListEventsResponseJson}>;
829
1342
 
830
1343
  /**
1344
+ * Request message for SessionService.AppendEvent.
1345
+ *
831
1346
  * @generated from message alis.adk.sessions.v1.AppendEventRequest
832
1347
  */
833
1348
  export declare type AppendEventRequest = Message<"alis.adk.sessions.v1.AppendEventRequest"> & {
834
1349
  /**
1350
+ * Required. The resource name of the session to append the event to.
1351
+ * Format: `sessions/{session}`
1352
+ *
835
1353
  * @generated from field: string name = 1;
836
1354
  */
837
1355
  name: string;
838
1356
 
839
1357
  /**
1358
+ * Required. The event to append.
1359
+ *
840
1360
  * @generated from field: alis.adk.sessions.v1.SessionEvent event = 2;
841
1361
  */
842
1362
  event?: SessionEvent | undefined;
843
1363
  };
844
1364
 
845
1365
  /**
1366
+ * Request message for SessionService.AppendEvent.
1367
+ *
846
1368
  * @generated from message alis.adk.sessions.v1.AppendEventRequest
847
1369
  */
848
1370
  export declare type AppendEventRequestJson = {
849
1371
  /**
1372
+ * Required. The resource name of the session to append the event to.
1373
+ * Format: `sessions/{session}`
1374
+ *
850
1375
  * @generated from field: string name = 1;
851
1376
  */
852
1377
  name?: string;
853
1378
 
854
1379
  /**
1380
+ * Required. The event to append.
1381
+ *
855
1382
  * @generated from field: alis.adk.sessions.v1.SessionEvent event = 2;
856
1383
  */
857
1384
  event?: SessionEventJson;
@@ -864,12 +1391,16 @@ export declare type AppendEventRequestJson = {
864
1391
  export declare const AppendEventRequestSchema: GenMessage<AppendEventRequest, {jsonType: AppendEventRequestJson}>;
865
1392
 
866
1393
  /**
1394
+ * Response message for SessionService.AppendEvent.
1395
+ *
867
1396
  * @generated from message alis.adk.sessions.v1.AppendEventResponse
868
1397
  */
869
1398
  export declare type AppendEventResponse = Message<"alis.adk.sessions.v1.AppendEventResponse"> & {
870
1399
  };
871
1400
 
872
1401
  /**
1402
+ * Response message for SessionService.AppendEvent.
1403
+ *
873
1404
  * @generated from message alis.adk.sessions.v1.AppendEventResponse
874
1405
  */
875
1406
  export declare type AppendEventResponseJson = {
@@ -882,80 +1413,130 @@ export declare type AppendEventResponseJson = {
882
1413
  export declare const AppendEventResponseSchema: GenMessage<AppendEventResponse, {jsonType: AppendEventResponseJson}>;
883
1414
 
884
1415
  /**
1416
+ * EventMetadata contains metadata relating to an LLM response event.
1417
+ *
885
1418
  * @generated from message alis.adk.sessions.v1.EventMetadata
886
1419
  */
887
1420
  export declare type EventMetadata = Message<"alis.adk.sessions.v1.EventMetadata"> & {
888
1421
  /**
1422
+ * Optional. Metadata returned to client when grounding is enabled.
1423
+ *
889
1424
  * @generated from field: alis.adk.sessions.v1.GroundingMetadata grounding_metadata = 1;
890
1425
  */
891
1426
  groundingMetadata?: GroundingMetadata | undefined;
892
1427
 
893
1428
  /**
1429
+ * Optional. Indicates whether the text content is part of an unfinished text
1430
+ * stream. Only used for streaming mode and when the content is plain text.
1431
+ *
894
1432
  * @generated from field: bool partial = 2;
895
1433
  */
896
1434
  partial: boolean;
897
1435
 
898
1436
  /**
1437
+ * Optional. Indicates whether the response from the model is complete.
1438
+ * Only used for streaming mode.
1439
+ *
899
1440
  * @generated from field: bool turn_complete = 3;
900
1441
  */
901
1442
  turnComplete: boolean;
902
1443
 
903
1444
  /**
1445
+ * Optional. Flag indicating that LLM was interrupted when generating the
1446
+ * content. Usually due to user interruption during bidirectional streaming.
1447
+ *
904
1448
  * @generated from field: bool interrupted = 4;
905
1449
  */
906
1450
  interrupted: boolean;
907
1451
 
908
1452
  /**
1453
+ * Optional. Set of IDs of the long-running function calls.
1454
+ * Agent client will know from this field which function call is long-running.
1455
+ * Only valid for function call events.
1456
+ *
909
1457
  * @generated from field: repeated string long_running_tool_ids = 5;
910
1458
  */
911
1459
  longRunningToolIds: string[];
912
1460
 
913
1461
  /**
1462
+ * Optional. The branch of the event.
1463
+ * The format is like `agent_1.agent_2.agent_3`, where agent_1 is the parent
1464
+ * of agent_2, and agent_2 is the parent of agent_3.
1465
+ * Branch is used when multiple child agents shouldn't see their siblings'
1466
+ * conversation history.
1467
+ *
914
1468
  * @generated from field: string branch = 6;
915
1469
  */
916
1470
  branch: string;
917
1471
 
918
1472
  /**
1473
+ * Optional. Custom metadata of the LLM response.
1474
+ *
919
1475
  * @generated from field: google.protobuf.Struct custom_metadata = 7;
920
1476
  */
921
1477
  customMetadata?: JsonObject | undefined;
922
1478
  };
923
1479
 
924
1480
  /**
1481
+ * EventMetadata contains metadata relating to an LLM response event.
1482
+ *
925
1483
  * @generated from message alis.adk.sessions.v1.EventMetadata
926
1484
  */
927
1485
  export declare type EventMetadataJson = {
928
1486
  /**
1487
+ * Optional. Metadata returned to client when grounding is enabled.
1488
+ *
929
1489
  * @generated from field: alis.adk.sessions.v1.GroundingMetadata grounding_metadata = 1;
930
1490
  */
931
1491
  groundingMetadata?: GroundingMetadataJson;
932
1492
 
933
1493
  /**
1494
+ * Optional. Indicates whether the text content is part of an unfinished text
1495
+ * stream. Only used for streaming mode and when the content is plain text.
1496
+ *
934
1497
  * @generated from field: bool partial = 2;
935
1498
  */
936
1499
  partial?: boolean;
937
1500
 
938
1501
  /**
1502
+ * Optional. Indicates whether the response from the model is complete.
1503
+ * Only used for streaming mode.
1504
+ *
939
1505
  * @generated from field: bool turn_complete = 3;
940
1506
  */
941
1507
  turnComplete?: boolean;
942
1508
 
943
1509
  /**
1510
+ * Optional. Flag indicating that LLM was interrupted when generating the
1511
+ * content. Usually due to user interruption during bidirectional streaming.
1512
+ *
944
1513
  * @generated from field: bool interrupted = 4;
945
1514
  */
946
1515
  interrupted?: boolean;
947
1516
 
948
1517
  /**
1518
+ * Optional. Set of IDs of the long-running function calls.
1519
+ * Agent client will know from this field which function call is long-running.
1520
+ * Only valid for function call events.
1521
+ *
949
1522
  * @generated from field: repeated string long_running_tool_ids = 5;
950
1523
  */
951
1524
  longRunningToolIds?: string[];
952
1525
 
953
1526
  /**
1527
+ * Optional. The branch of the event.
1528
+ * The format is like `agent_1.agent_2.agent_3`, where agent_1 is the parent
1529
+ * of agent_2, and agent_2 is the parent of agent_3.
1530
+ * Branch is used when multiple child agents shouldn't see their siblings'
1531
+ * conversation history.
1532
+ *
954
1533
  * @generated from field: string branch = 6;
955
1534
  */
956
1535
  branch?: string;
957
1536
 
958
1537
  /**
1538
+ * Optional. Custom metadata of the LLM response.
1539
+ *
959
1540
  * @generated from field: google.protobuf.Struct custom_metadata = 7;
960
1541
  */
961
1542
  customMetadata?: StructJson;
@@ -968,73 +1549,135 @@ export declare type EventMetadataJson = {
968
1549
  export declare const EventMetadataSchema: GenMessage<EventMetadata, {jsonType: EventMetadataJson}>;
969
1550
 
970
1551
  /**
1552
+ * EventActions represent actions executed by the agent as part of an event.
1553
+ *
971
1554
  * @generated from message alis.adk.sessions.v1.EventActions
972
1555
  */
973
1556
  export declare type EventActions = Message<"alis.adk.sessions.v1.EventActions"> & {
974
1557
  /**
1558
+ * Optional. If true, the model will not summarize the function response.
1559
+ * Only used for function_response events.
1560
+ *
975
1561
  * @generated from field: bool skip_summarization = 1;
976
1562
  */
977
1563
  skipSummarization: boolean;
978
1564
 
979
1565
  /**
1566
+ * Optional. Indicates that the event is updating the state with the given
1567
+ * delta. The delta contains key-value pairs representing state changes.
1568
+ *
980
1569
  * @generated from field: google.protobuf.Struct state_delta = 2;
981
1570
  */
982
1571
  stateDelta?: JsonObject | undefined;
983
1572
 
984
1573
  /**
1574
+ * Optional. Indicates that the event is updating artifacts.
1575
+ * Key is the filename, value is the version number.
1576
+ *
985
1577
  * @generated from field: map<string, int64> artifact_delta = 3;
986
1578
  */
987
1579
  artifactDelta: { [key: string]: bigint };
988
1580
 
989
1581
  /**
1582
+ * Optional. The agent is escalating to a higher level agent.
1583
+ *
990
1584
  * @generated from field: bool escalate = 6;
991
1585
  */
992
1586
  escalate: boolean;
993
1587
 
994
1588
  /**
1589
+ * Optional. Will only be set by a tool response requesting that the user
1590
+ * confirm a tool execution.
1591
+ * Map key is the function call ID since one function call response (from
1592
+ * model) could correspond to multiple function calls.
1593
+ * Map value is the confirmation request for that function call.
1594
+ *
995
1595
  * @generated from field: map<string, alis.adk.sessions.v1.ToolConfirmation> requested_tool_confirmations = 7;
996
1596
  */
997
1597
  requestedToolConfirmations: { [key: string]: ToolConfirmation };
998
1598
 
999
1599
  /**
1600
+ * Optional. If set, the event transfers control to the specified agent.
1601
+ *
1000
1602
  * @generated from field: string transfer_agent = 8;
1001
1603
  */
1002
1604
  transferAgent: string;
1605
+
1606
+ /**
1607
+ * Optional. When set, marks this event as a context-compaction summary
1608
+ * standing in for a contiguous range of earlier events. Written by the
1609
+ * framework; prompt assembly drops the covered events and shows the
1610
+ * compacted content in their place.
1611
+ *
1612
+ * @generated from field: alis.adk.sessions.v1.EventCompaction compaction = 9;
1613
+ */
1614
+ compaction?: EventCompaction | undefined;
1003
1615
  };
1004
1616
 
1005
1617
  /**
1618
+ * EventActions represent actions executed by the agent as part of an event.
1619
+ *
1006
1620
  * @generated from message alis.adk.sessions.v1.EventActions
1007
1621
  */
1008
1622
  export declare type EventActionsJson = {
1009
1623
  /**
1624
+ * Optional. If true, the model will not summarize the function response.
1625
+ * Only used for function_response events.
1626
+ *
1010
1627
  * @generated from field: bool skip_summarization = 1;
1011
1628
  */
1012
1629
  skipSummarization?: boolean;
1013
1630
 
1014
1631
  /**
1632
+ * Optional. Indicates that the event is updating the state with the given
1633
+ * delta. The delta contains key-value pairs representing state changes.
1634
+ *
1015
1635
  * @generated from field: google.protobuf.Struct state_delta = 2;
1016
1636
  */
1017
1637
  stateDelta?: StructJson;
1018
1638
 
1019
1639
  /**
1640
+ * Optional. Indicates that the event is updating artifacts.
1641
+ * Key is the filename, value is the version number.
1642
+ *
1020
1643
  * @generated from field: map<string, int64> artifact_delta = 3;
1021
1644
  */
1022
1645
  artifactDelta?: { [key: string]: string };
1023
1646
 
1024
1647
  /**
1648
+ * Optional. The agent is escalating to a higher level agent.
1649
+ *
1025
1650
  * @generated from field: bool escalate = 6;
1026
1651
  */
1027
1652
  escalate?: boolean;
1028
1653
 
1029
1654
  /**
1655
+ * Optional. Will only be set by a tool response requesting that the user
1656
+ * confirm a tool execution.
1657
+ * Map key is the function call ID since one function call response (from
1658
+ * model) could correspond to multiple function calls.
1659
+ * Map value is the confirmation request for that function call.
1660
+ *
1030
1661
  * @generated from field: map<string, alis.adk.sessions.v1.ToolConfirmation> requested_tool_confirmations = 7;
1031
1662
  */
1032
1663
  requestedToolConfirmations?: { [key: string]: ToolConfirmationJson };
1033
1664
 
1034
1665
  /**
1666
+ * Optional. If set, the event transfers control to the specified agent.
1667
+ *
1035
1668
  * @generated from field: string transfer_agent = 8;
1036
1669
  */
1037
1670
  transferAgent?: string;
1671
+
1672
+ /**
1673
+ * Optional. When set, marks this event as a context-compaction summary
1674
+ * standing in for a contiguous range of earlier events. Written by the
1675
+ * framework; prompt assembly drops the covered events and shows the
1676
+ * compacted content in their place.
1677
+ *
1678
+ * @generated from field: alis.adk.sessions.v1.EventCompaction compaction = 9;
1679
+ */
1680
+ compaction?: EventCompactionJson;
1038
1681
  };
1039
1682
 
1040
1683
  /**
@@ -1044,30 +1687,366 @@ export declare type EventActionsJson = {
1044
1687
  export declare const EventActionsSchema: GenMessage<EventActions, {jsonType: EventActionsJson}>;
1045
1688
 
1046
1689
  /**
1690
+ * EventCompaction records that a contiguous range of session events has been
1691
+ * replaced by a single piece of compacted content, typically a
1692
+ * model-generated summary. The covered events are left untouched in the
1693
+ * session; prompt assembly skips them and inserts compacted_content instead.
1694
+ *
1695
+ * @generated from message alis.adk.sessions.v1.EventCompaction
1696
+ */
1697
+ export declare type EventCompaction = Message<"alis.adk.sessions.v1.EventCompaction"> & {
1698
+ /**
1699
+ * Required. Timestamp of the earliest covered event (inclusive).
1700
+ *
1701
+ * @generated from field: google.protobuf.Timestamp start_timestamp = 1;
1702
+ */
1703
+ startTimestamp?: Timestamp | undefined;
1704
+
1705
+ /**
1706
+ * Required. Timestamp of the latest covered event (inclusive). Never before
1707
+ * start_timestamp.
1708
+ *
1709
+ * @generated from field: google.protobuf.Timestamp end_timestamp = 2;
1710
+ */
1711
+ endTimestamp?: Timestamp | undefined;
1712
+
1713
+ /**
1714
+ * Required. The content that replaces the covered events in the prompt.
1715
+ *
1716
+ * @generated from field: alis.adk.sessions.v1.Content compacted_content = 3;
1717
+ */
1718
+ compactedContent?: Content | undefined;
1719
+
1720
+ /**
1721
+ * Optional. Events inside the range that this summary does NOT stand in
1722
+ * for. Everything else in the range is covered. Keyed on invocation and
1723
+ * timestamp rather than event ID because event IDs do not survive every
1724
+ * storage backend. Timestamps must be stored at full precision: a
1725
+ * reference that stops matching its event is read as no hole at all.
1726
+ *
1727
+ * @generated from field: repeated alis.adk.sessions.v1.EventRef excluded_events = 4;
1728
+ */
1729
+ excludedEvents: EventRef[];
1730
+ };
1731
+
1732
+ /**
1733
+ * EventCompaction records that a contiguous range of session events has been
1734
+ * replaced by a single piece of compacted content, typically a
1735
+ * model-generated summary. The covered events are left untouched in the
1736
+ * session; prompt assembly skips them and inserts compacted_content instead.
1737
+ *
1738
+ * @generated from message alis.adk.sessions.v1.EventCompaction
1739
+ */
1740
+ export declare type EventCompactionJson = {
1741
+ /**
1742
+ * Required. Timestamp of the earliest covered event (inclusive).
1743
+ *
1744
+ * @generated from field: google.protobuf.Timestamp start_timestamp = 1;
1745
+ */
1746
+ startTimestamp?: TimestampJson;
1747
+
1748
+ /**
1749
+ * Required. Timestamp of the latest covered event (inclusive). Never before
1750
+ * start_timestamp.
1751
+ *
1752
+ * @generated from field: google.protobuf.Timestamp end_timestamp = 2;
1753
+ */
1754
+ endTimestamp?: TimestampJson;
1755
+
1756
+ /**
1757
+ * Required. The content that replaces the covered events in the prompt.
1758
+ *
1759
+ * @generated from field: alis.adk.sessions.v1.Content compacted_content = 3;
1760
+ */
1761
+ compactedContent?: ContentJson;
1762
+
1763
+ /**
1764
+ * Optional. Events inside the range that this summary does NOT stand in
1765
+ * for. Everything else in the range is covered. Keyed on invocation and
1766
+ * timestamp rather than event ID because event IDs do not survive every
1767
+ * storage backend. Timestamps must be stored at full precision: a
1768
+ * reference that stops matching its event is read as no hole at all.
1769
+ *
1770
+ * @generated from field: repeated alis.adk.sessions.v1.EventRef excluded_events = 4;
1771
+ */
1772
+ excludedEvents?: EventRefJson[];
1773
+ };
1774
+
1775
+ /**
1776
+ * Describes the message alis.adk.sessions.v1.EventCompaction.
1777
+ * Use `create(EventCompactionSchema)` to create a new message.
1778
+ */
1779
+ export declare const EventCompactionSchema: GenMessage<EventCompaction, {jsonType: EventCompactionJson}>;
1780
+
1781
+ /**
1782
+ * EventRef identifies a stored event by fields that survive a storage round
1783
+ * trip. The pair is not guaranteed unique: two events of one invocation can
1784
+ * share a timestamp, and a reference then names both.
1785
+ *
1786
+ * @generated from message alis.adk.sessions.v1.EventRef
1787
+ */
1788
+ export declare type EventRef = Message<"alis.adk.sessions.v1.EventRef"> & {
1789
+ /**
1790
+ * Required. The invocation ID of the referenced event.
1791
+ *
1792
+ * @generated from field: string invocation_id = 1;
1793
+ */
1794
+ invocationId: string;
1795
+
1796
+ /**
1797
+ * Required. The timestamp of the referenced event.
1798
+ *
1799
+ * @generated from field: google.protobuf.Timestamp timestamp = 2;
1800
+ */
1801
+ timestamp?: Timestamp | undefined;
1802
+ };
1803
+
1804
+ /**
1805
+ * EventRef identifies a stored event by fields that survive a storage round
1806
+ * trip. The pair is not guaranteed unique: two events of one invocation can
1807
+ * share a timestamp, and a reference then names both.
1808
+ *
1809
+ * @generated from message alis.adk.sessions.v1.EventRef
1810
+ */
1811
+ export declare type EventRefJson = {
1812
+ /**
1813
+ * Required. The invocation ID of the referenced event.
1814
+ *
1815
+ * @generated from field: string invocation_id = 1;
1816
+ */
1817
+ invocationId?: string;
1818
+
1819
+ /**
1820
+ * Required. The timestamp of the referenced event.
1821
+ *
1822
+ * @generated from field: google.protobuf.Timestamp timestamp = 2;
1823
+ */
1824
+ timestamp?: TimestampJson;
1825
+ };
1826
+
1827
+ /**
1828
+ * Describes the message alis.adk.sessions.v1.EventRef.
1829
+ * Use `create(EventRefSchema)` to create a new message.
1830
+ */
1831
+ export declare const EventRefSchema: GenMessage<EventRef, {jsonType: EventRefJson}>;
1832
+
1833
+ /**
1834
+ * RequestInput describes a single human-in-the-loop prompt emitted by a
1835
+ * workflow node. It travels on SessionEvent.requested_input from the node,
1836
+ * through the scheduler, out to the UI surface; the matching response is
1837
+ * routed back by interrupt_id.
1838
+ *
1839
+ * @generated from message alis.adk.sessions.v1.RequestInput
1840
+ */
1841
+ export declare type RequestInput = Message<"alis.adk.sessions.v1.RequestInput"> & {
1842
+ /**
1843
+ * Required. Correlates this request with the response that resumes it.
1844
+ *
1845
+ * @generated from field: string interrupt_id = 1;
1846
+ */
1847
+ interruptId: string;
1848
+
1849
+ /**
1850
+ * Optional. Human-readable description of what is being asked. Surfaced in
1851
+ * UI as the prompt text.
1852
+ *
1853
+ * @generated from field: string message = 2;
1854
+ */
1855
+ message: string;
1856
+
1857
+ /**
1858
+ * Optional. JSON schema the user's response payload must conform to,
1859
+ * encoded as its JSON object form.
1860
+ *
1861
+ * @generated from field: google.protobuf.Struct response_schema = 3;
1862
+ */
1863
+ responseSchema?: JsonObject | undefined;
1864
+
1865
+ /**
1866
+ * Optional. Context the UI may render alongside the prompt (e.g. the
1867
+ * document to approve). Carried through opaquely as a JSON value.
1868
+ *
1869
+ * @generated from field: google.protobuf.Value payload = 4;
1870
+ */
1871
+ payload?: Value | undefined;
1872
+ };
1873
+
1874
+ /**
1875
+ * RequestInput describes a single human-in-the-loop prompt emitted by a
1876
+ * workflow node. It travels on SessionEvent.requested_input from the node,
1877
+ * through the scheduler, out to the UI surface; the matching response is
1878
+ * routed back by interrupt_id.
1879
+ *
1880
+ * @generated from message alis.adk.sessions.v1.RequestInput
1881
+ */
1882
+ export declare type RequestInputJson = {
1883
+ /**
1884
+ * Required. Correlates this request with the response that resumes it.
1885
+ *
1886
+ * @generated from field: string interrupt_id = 1;
1887
+ */
1888
+ interruptId?: string;
1889
+
1890
+ /**
1891
+ * Optional. Human-readable description of what is being asked. Surfaced in
1892
+ * UI as the prompt text.
1893
+ *
1894
+ * @generated from field: string message = 2;
1895
+ */
1896
+ message?: string;
1897
+
1898
+ /**
1899
+ * Optional. JSON schema the user's response payload must conform to,
1900
+ * encoded as its JSON object form.
1901
+ *
1902
+ * @generated from field: google.protobuf.Struct response_schema = 3;
1903
+ */
1904
+ responseSchema?: StructJson;
1905
+
1906
+ /**
1907
+ * Optional. Context the UI may render alongside the prompt (e.g. the
1908
+ * document to approve). Carried through opaquely as a JSON value.
1909
+ *
1910
+ * @generated from field: google.protobuf.Value payload = 4;
1911
+ */
1912
+ payload?: ValueJson;
1913
+ };
1914
+
1915
+ /**
1916
+ * Describes the message alis.adk.sessions.v1.RequestInput.
1917
+ * Use `create(RequestInputSchema)` to create a new message.
1918
+ */
1919
+ export declare const RequestInputSchema: GenMessage<RequestInput, {jsonType: RequestInputJson}>;
1920
+
1921
+ /**
1922
+ * NodeInfo carries the per-event metadata identifying which node in a
1923
+ * workflow activation emitted it. Absent for non-workflow events.
1924
+ *
1925
+ * @generated from message alis.adk.sessions.v1.NodeInfo
1926
+ */
1927
+ export declare type NodeInfo = Message<"alis.adk.sessions.v1.NodeInfo"> & {
1928
+ /**
1929
+ * Optional. Composite path of the emitting node within its workflow
1930
+ * activation. Empty for top-level static nodes;
1931
+ * "<parent_path>/<child_name>@<run_id>" for dynamic children.
1932
+ *
1933
+ * @generated from field: string path = 1;
1934
+ */
1935
+ path: string;
1936
+
1937
+ /**
1938
+ * Optional. Marks that this event's content IS the node's output: when set
1939
+ * and output is unset, readers derive the node output from the event's
1940
+ * model text.
1941
+ *
1942
+ * @generated from field: bool message_as_output = 2;
1943
+ */
1944
+ messageAsOutput: boolean;
1945
+
1946
+ /**
1947
+ * Optional. Node paths this event's output counts for: the emitter plus any
1948
+ * delegating ancestors, so one event stands in for a whole delegation chain.
1949
+ *
1950
+ * @generated from field: repeated string output_for = 3;
1951
+ */
1952
+ outputFor: string[];
1953
+ };
1954
+
1955
+ /**
1956
+ * NodeInfo carries the per-event metadata identifying which node in a
1957
+ * workflow activation emitted it. Absent for non-workflow events.
1958
+ *
1959
+ * @generated from message alis.adk.sessions.v1.NodeInfo
1960
+ */
1961
+ export declare type NodeInfoJson = {
1962
+ /**
1963
+ * Optional. Composite path of the emitting node within its workflow
1964
+ * activation. Empty for top-level static nodes;
1965
+ * "<parent_path>/<child_name>@<run_id>" for dynamic children.
1966
+ *
1967
+ * @generated from field: string path = 1;
1968
+ */
1969
+ path?: string;
1970
+
1971
+ /**
1972
+ * Optional. Marks that this event's content IS the node's output: when set
1973
+ * and output is unset, readers derive the node output from the event's
1974
+ * model text.
1975
+ *
1976
+ * @generated from field: bool message_as_output = 2;
1977
+ */
1978
+ messageAsOutput?: boolean;
1979
+
1980
+ /**
1981
+ * Optional. Node paths this event's output counts for: the emitter plus any
1982
+ * delegating ancestors, so one event stands in for a whole delegation chain.
1983
+ *
1984
+ * @generated from field: repeated string output_for = 3;
1985
+ */
1986
+ outputFor?: string[];
1987
+ };
1988
+
1989
+ /**
1990
+ * Describes the message alis.adk.sessions.v1.NodeInfo.
1991
+ * Use `create(NodeInfoSchema)` to create a new message.
1992
+ */
1993
+ export declare const NodeInfoSchema: GenMessage<NodeInfo, {jsonType: NodeInfoJson}>;
1994
+
1995
+ /**
1996
+ * Content represents the base structured datatype containing multi-part content
1997
+ * of a message.
1998
+ *
1999
+ * A Content includes a role field designating the producer of the Content
2000
+ * and a parts field containing multi-part data that contains the content of
2001
+ * the message turn.
2002
+ *
1047
2003
  * @generated from message alis.adk.sessions.v1.Content
1048
2004
  */
1049
2005
  export declare type Content = Message<"alis.adk.sessions.v1.Content"> & {
1050
2006
  /**
2007
+ * Optional. The producer of the content. Must be either 'user' or 'model'.
2008
+ *
2009
+ * Useful to set for multi-turn conversations, otherwise can be left blank
2010
+ * or unset.
2011
+ *
1051
2012
  * @generated from field: string role = 1;
1052
2013
  */
1053
2014
  role: string;
1054
2015
 
1055
2016
  /**
2017
+ * Required. Ordered Parts that constitute a single message.
2018
+ * Parts may have different IANA MIME types.
2019
+ *
1056
2020
  * @generated from field: repeated alis.adk.sessions.v1.Part parts = 2;
1057
2021
  */
1058
2022
  parts: Part[];
1059
2023
  };
1060
2024
 
1061
2025
  /**
2026
+ * Content represents the base structured datatype containing multi-part content
2027
+ * of a message.
2028
+ *
2029
+ * A Content includes a role field designating the producer of the Content
2030
+ * and a parts field containing multi-part data that contains the content of
2031
+ * the message turn.
2032
+ *
1062
2033
  * @generated from message alis.adk.sessions.v1.Content
1063
2034
  */
1064
2035
  export declare type ContentJson = {
1065
2036
  /**
2037
+ * Optional. The producer of the content. Must be either 'user' or 'model'.
2038
+ *
2039
+ * Useful to set for multi-turn conversations, otherwise can be left blank
2040
+ * or unset.
2041
+ *
1066
2042
  * @generated from field: string role = 1;
1067
2043
  */
1068
2044
  role?: string;
1069
2045
 
1070
2046
  /**
2047
+ * Required. Ordered Parts that constitute a single message.
2048
+ * Parts may have different IANA MIME types.
2049
+ *
1071
2050
  * @generated from field: repeated alis.adk.sessions.v1.Part parts = 2;
1072
2051
  */
1073
2052
  parts?: PartJson[];
@@ -1080,50 +2059,81 @@ export declare type ContentJson = {
1080
2059
  export declare const ContentSchema: GenMessage<Content, {jsonType: ContentJson}>;
1081
2060
 
1082
2061
  /**
2062
+ * Part represents a datatype containing media that is part of a multi-part
2063
+ * Content message.
2064
+ *
2065
+ * A Part consists of data which has an associated datatype. A Part can only
2066
+ * contain one of the accepted types in Part.data.
2067
+ *
2068
+ * A Part must have a fixed IANA MIME type identifying the type and subtype
2069
+ * of the media if inline_data or file_data field is filled with raw bytes.
2070
+ *
1083
2071
  * @generated from message alis.adk.sessions.v1.Part
1084
2072
  */
1085
2073
  export declare type Part = Message<"alis.adk.sessions.v1.Part"> & {
1086
2074
  /**
2075
+ * The data carried by this part: text, inline or URI-based media, a
2076
+ * function call or response, or executable code and its result.
2077
+ *
1087
2078
  * @generated from oneof alis.adk.sessions.v1.Part.data
1088
2079
  */
1089
2080
  data: {
1090
2081
  /**
2082
+ * Optional. Text part (can be code).
2083
+ *
1091
2084
  * @generated from field: string text = 1;
1092
2085
  */
1093
2086
  value: string;
1094
2087
  case: "text";
1095
2088
  } | {
1096
2089
  /**
2090
+ * Optional. Inlined bytes data.
2091
+ *
1097
2092
  * @generated from field: alis.adk.sessions.v1.Blob inline_data = 2;
1098
2093
  */
1099
2094
  value: Blob;
1100
2095
  case: "inlineData";
1101
2096
  } | {
1102
2097
  /**
2098
+ * Optional. URI-based data.
2099
+ *
1103
2100
  * @generated from field: alis.adk.sessions.v1.FileData file_data = 3;
1104
2101
  */
1105
2102
  value: FileData;
1106
2103
  case: "fileData";
1107
2104
  } | {
1108
2105
  /**
2106
+ * Optional. A predicted FunctionCall returned from the model that
2107
+ * contains a string representing the FunctionDeclaration.name with the
2108
+ * parameters and their values.
2109
+ *
1109
2110
  * @generated from field: alis.adk.sessions.v1.FunctionCall function_call = 5;
1110
2111
  */
1111
2112
  value: FunctionCall;
1112
2113
  case: "functionCall";
1113
2114
  } | {
1114
2115
  /**
2116
+ * Optional. The result output of a FunctionCall that contains a string
2117
+ * representing the FunctionDeclaration.name and a structured JSON object
2118
+ * containing any output from the function call. It is used as context to
2119
+ * the model.
2120
+ *
1115
2121
  * @generated from field: alis.adk.sessions.v1.FunctionResponse function_response = 6;
1116
2122
  */
1117
2123
  value: FunctionResponse;
1118
2124
  case: "functionResponse";
1119
2125
  } | {
1120
2126
  /**
2127
+ * Optional. Code generated by the model that is meant to be executed.
2128
+ *
1121
2129
  * @generated from field: alis.adk.sessions.v1.ExecutableCode executable_code = 8;
1122
2130
  */
1123
2131
  value: ExecutableCode;
1124
2132
  case: "executableCode";
1125
2133
  } | {
1126
2134
  /**
2135
+ * Optional. Result of executing the ExecutableCode.
2136
+ *
1127
2137
  * @generated from field: alis.adk.sessions.v1.CodeExecutionResult code_execution_result = 9;
1128
2138
  */
1129
2139
  value: CodeExecutionResult;
@@ -1131,10 +2141,16 @@ export declare type Part = Message<"alis.adk.sessions.v1.Part"> & {
1131
2141
  } | { case: undefined; value?: undefined };
1132
2142
 
1133
2143
  /**
2144
+ * Metadata describing the media in `data`. `video_metadata` is the only
2145
+ * option.
2146
+ *
1134
2147
  * @generated from oneof alis.adk.sessions.v1.Part.metadata
1135
2148
  */
1136
2149
  metadata: {
1137
2150
  /**
2151
+ * Optional. Video metadata. The metadata should only be specified while the
2152
+ * video data is presented in inline_data or file_data.
2153
+ *
1138
2154
  * @generated from field: alis.adk.sessions.v1.VideoMetadata video_metadata = 4;
1139
2155
  */
1140
2156
  value: VideoMetadata;
@@ -1142,66 +2158,107 @@ export declare type Part = Message<"alis.adk.sessions.v1.Part"> & {
1142
2158
  } | { case: undefined; value?: undefined };
1143
2159
 
1144
2160
  /**
2161
+ * Optional. Indicates if the part is a thought from the model.
2162
+ *
1145
2163
  * @generated from field: bool thought = 10;
1146
2164
  */
1147
2165
  thought: boolean;
1148
2166
 
1149
2167
  /**
2168
+ * Optional. An opaque signature for the thought so it can be reused in
2169
+ * subsequent requests.
2170
+ *
1150
2171
  * @generated from field: bytes thought_signature = 11;
1151
2172
  */
1152
2173
  thoughtSignature: Uint8Array;
1153
2174
  };
1154
2175
 
1155
2176
  /**
2177
+ * Part represents a datatype containing media that is part of a multi-part
2178
+ * Content message.
2179
+ *
2180
+ * A Part consists of data which has an associated datatype. A Part can only
2181
+ * contain one of the accepted types in Part.data.
2182
+ *
2183
+ * A Part must have a fixed IANA MIME type identifying the type and subtype
2184
+ * of the media if inline_data or file_data field is filled with raw bytes.
2185
+ *
1156
2186
  * @generated from message alis.adk.sessions.v1.Part
1157
2187
  */
1158
2188
  export declare type PartJson = {
1159
2189
  /**
2190
+ * Optional. Text part (can be code).
2191
+ *
1160
2192
  * @generated from field: string text = 1;
1161
2193
  */
1162
2194
  text?: string;
1163
2195
 
1164
2196
  /**
2197
+ * Optional. Inlined bytes data.
2198
+ *
1165
2199
  * @generated from field: alis.adk.sessions.v1.Blob inline_data = 2;
1166
2200
  */
1167
2201
  inlineData?: BlobJson;
1168
2202
 
1169
2203
  /**
2204
+ * Optional. URI-based data.
2205
+ *
1170
2206
  * @generated from field: alis.adk.sessions.v1.FileData file_data = 3;
1171
2207
  */
1172
2208
  fileData?: FileDataJson;
1173
2209
 
1174
2210
  /**
2211
+ * Optional. A predicted FunctionCall returned from the model that
2212
+ * contains a string representing the FunctionDeclaration.name with the
2213
+ * parameters and their values.
2214
+ *
1175
2215
  * @generated from field: alis.adk.sessions.v1.FunctionCall function_call = 5;
1176
2216
  */
1177
2217
  functionCall?: FunctionCallJson;
1178
2218
 
1179
2219
  /**
2220
+ * Optional. The result output of a FunctionCall that contains a string
2221
+ * representing the FunctionDeclaration.name and a structured JSON object
2222
+ * containing any output from the function call. It is used as context to
2223
+ * the model.
2224
+ *
1180
2225
  * @generated from field: alis.adk.sessions.v1.FunctionResponse function_response = 6;
1181
2226
  */
1182
2227
  functionResponse?: FunctionResponseJson;
1183
2228
 
1184
2229
  /**
2230
+ * Optional. Code generated by the model that is meant to be executed.
2231
+ *
1185
2232
  * @generated from field: alis.adk.sessions.v1.ExecutableCode executable_code = 8;
1186
2233
  */
1187
2234
  executableCode?: ExecutableCodeJson;
1188
2235
 
1189
2236
  /**
2237
+ * Optional. Result of executing the ExecutableCode.
2238
+ *
1190
2239
  * @generated from field: alis.adk.sessions.v1.CodeExecutionResult code_execution_result = 9;
1191
2240
  */
1192
2241
  codeExecutionResult?: CodeExecutionResultJson;
1193
2242
 
1194
2243
  /**
2244
+ * Optional. Video metadata. The metadata should only be specified while the
2245
+ * video data is presented in inline_data or file_data.
2246
+ *
1195
2247
  * @generated from field: alis.adk.sessions.v1.VideoMetadata video_metadata = 4;
1196
2248
  */
1197
2249
  videoMetadata?: VideoMetadataJson;
1198
2250
 
1199
2251
  /**
2252
+ * Optional. Indicates if the part is a thought from the model.
2253
+ *
1200
2254
  * @generated from field: bool thought = 10;
1201
2255
  */
1202
2256
  thought?: boolean;
1203
2257
 
1204
2258
  /**
2259
+ * Optional. An opaque signature for the thought so it can be reused in
2260
+ * subsequent requests.
2261
+ *
1205
2262
  * @generated from field: bytes thought_signature = 11;
1206
2263
  */
1207
2264
  thoughtSignature?: string;
@@ -1214,33 +2271,65 @@ export declare type PartJson = {
1214
2271
  export declare const PartSchema: GenMessage<Part, {jsonType: PartJson}>;
1215
2272
 
1216
2273
  /**
2274
+ * Blob represents inline binary data.
2275
+ *
2276
+ * It's preferred to send text directly rather than raw bytes.
2277
+ *
1217
2278
  * @generated from message alis.adk.sessions.v1.Blob
1218
2279
  */
1219
2280
  export declare type Blob = Message<"alis.adk.sessions.v1.Blob"> & {
1220
2281
  /**
2282
+ * Required. The IANA standard MIME type of the source data.
2283
+ *
1221
2284
  * @generated from field: string mime_type = 1;
1222
2285
  */
1223
2286
  mimeType: string;
1224
2287
 
1225
2288
  /**
2289
+ * Required. Raw bytes.
2290
+ *
1226
2291
  * @generated from field: bytes data = 2;
1227
2292
  */
1228
2293
  data: Uint8Array;
2294
+
2295
+ /**
2296
+ * Optional. Display name of the blob. Used to provide a label or filename
2297
+ * to distinguish blobs.
2298
+ *
2299
+ * @generated from field: optional string display_name = 3;
2300
+ */
2301
+ displayName?: string | undefined;
1229
2302
  };
1230
2303
 
1231
2304
  /**
2305
+ * Blob represents inline binary data.
2306
+ *
2307
+ * It's preferred to send text directly rather than raw bytes.
2308
+ *
1232
2309
  * @generated from message alis.adk.sessions.v1.Blob
1233
2310
  */
1234
2311
  export declare type BlobJson = {
1235
2312
  /**
2313
+ * Required. The IANA standard MIME type of the source data.
2314
+ *
1236
2315
  * @generated from field: string mime_type = 1;
1237
2316
  */
1238
2317
  mimeType?: string;
1239
2318
 
1240
2319
  /**
2320
+ * Required. Raw bytes.
2321
+ *
1241
2322
  * @generated from field: bytes data = 2;
1242
2323
  */
1243
2324
  data?: string;
2325
+
2326
+ /**
2327
+ * Optional. Display name of the blob. Used to provide a label or filename
2328
+ * to distinguish blobs.
2329
+ *
2330
+ * @generated from field: optional string display_name = 3;
2331
+ */
2332
+ displayName?: string;
1244
2333
  };
1245
2334
 
1246
2335
  /**
@@ -1250,40 +2339,56 @@ export declare type BlobJson = {
1250
2339
  export declare const BlobSchema: GenMessage<Blob, {jsonType: BlobJson}>;
1251
2340
 
1252
2341
  /**
2342
+ * FileData represents URI-based data.
2343
+ *
1253
2344
  * @generated from message alis.adk.sessions.v1.FileData
1254
2345
  */
1255
2346
  export declare type FileData = Message<"alis.adk.sessions.v1.FileData"> & {
1256
2347
  /**
2348
+ * Required. The IANA standard MIME type of the source data.
2349
+ *
1257
2350
  * @generated from field: string mime_type = 1;
1258
2351
  */
1259
2352
  mimeType: string;
1260
2353
 
1261
2354
  /**
2355
+ * Required. URI.
2356
+ *
1262
2357
  * @generated from field: string file_uri = 2;
1263
2358
  */
1264
2359
  fileUri: string;
1265
2360
 
1266
2361
  /**
2362
+ * Optional. The display name of the file.
2363
+ *
1267
2364
  * @generated from field: string display_name = 3;
1268
2365
  */
1269
2366
  displayName: string;
1270
2367
  };
1271
2368
 
1272
2369
  /**
2370
+ * FileData represents URI-based data.
2371
+ *
1273
2372
  * @generated from message alis.adk.sessions.v1.FileData
1274
2373
  */
1275
2374
  export declare type FileDataJson = {
1276
2375
  /**
2376
+ * Required. The IANA standard MIME type of the source data.
2377
+ *
1277
2378
  * @generated from field: string mime_type = 1;
1278
2379
  */
1279
2380
  mimeType?: string;
1280
2381
 
1281
2382
  /**
2383
+ * Required. URI.
2384
+ *
1282
2385
  * @generated from field: string file_uri = 2;
1283
2386
  */
1284
2387
  fileUri?: string;
1285
2388
 
1286
2389
  /**
2390
+ * Optional. The display name of the file.
2391
+ *
1287
2392
  * @generated from field: string display_name = 3;
1288
2393
  */
1289
2394
  displayName?: string;
@@ -1296,30 +2401,42 @@ export declare type FileDataJson = {
1296
2401
  export declare const FileDataSchema: GenMessage<FileData, {jsonType: FileDataJson}>;
1297
2402
 
1298
2403
  /**
2404
+ * VideoMetadata describes the input video content.
2405
+ *
1299
2406
  * @generated from message alis.adk.sessions.v1.VideoMetadata
1300
2407
  */
1301
2408
  export declare type VideoMetadata = Message<"alis.adk.sessions.v1.VideoMetadata"> & {
1302
2409
  /**
2410
+ * Optional. The start offset of the video.
2411
+ *
1303
2412
  * @generated from field: google.protobuf.Duration start_offset = 1;
1304
2413
  */
1305
2414
  startOffset?: Duration | undefined;
1306
2415
 
1307
2416
  /**
2417
+ * Optional. The end offset of the video.
2418
+ *
1308
2419
  * @generated from field: google.protobuf.Duration end_offset = 2;
1309
2420
  */
1310
2421
  endOffset?: Duration | undefined;
1311
2422
  };
1312
2423
 
1313
2424
  /**
2425
+ * VideoMetadata describes the input video content.
2426
+ *
1314
2427
  * @generated from message alis.adk.sessions.v1.VideoMetadata
1315
2428
  */
1316
2429
  export declare type VideoMetadataJson = {
1317
2430
  /**
2431
+ * Optional. The start offset of the video.
2432
+ *
1318
2433
  * @generated from field: google.protobuf.Duration start_offset = 1;
1319
2434
  */
1320
2435
  startOffset?: DurationJson;
1321
2436
 
1322
2437
  /**
2438
+ * Optional. The end offset of the video.
2439
+ *
1323
2440
  * @generated from field: google.protobuf.Duration end_offset = 2;
1324
2441
  */
1325
2442
  endOffset?: DurationJson;
@@ -1332,40 +2449,68 @@ export declare type VideoMetadataJson = {
1332
2449
  export declare const VideoMetadataSchema: GenMessage<VideoMetadata, {jsonType: VideoMetadataJson}>;
1333
2450
 
1334
2451
  /**
2452
+ * FunctionCall represents a predicted function call returned from the model
2453
+ * that contains a string representing the FunctionDeclaration.name and a
2454
+ * structured JSON object containing the parameters and their values.
2455
+ *
1335
2456
  * @generated from message alis.adk.sessions.v1.FunctionCall
1336
2457
  */
1337
2458
  export declare type FunctionCall = Message<"alis.adk.sessions.v1.FunctionCall"> & {
1338
2459
  /**
2460
+ * Required. The name of the function to call.
2461
+ * Matches FunctionDeclaration.name.
2462
+ *
1339
2463
  * @generated from field: string name = 1;
1340
2464
  */
1341
2465
  name: string;
1342
2466
 
1343
2467
  /**
2468
+ * Required. The function parameters and values in JSON object format.
2469
+ * See FunctionDeclaration.parameters for parameter details.
2470
+ *
1344
2471
  * @generated from field: google.protobuf.Struct args = 2;
1345
2472
  */
1346
2473
  args?: JsonObject | undefined;
1347
2474
 
1348
2475
  /**
2476
+ * Optional. The unique ID of the function call. If populated, the client
2477
+ * should execute the function_call and return the response with the matching
2478
+ * id.
2479
+ *
1349
2480
  * @generated from field: string id = 3;
1350
2481
  */
1351
2482
  id: string;
1352
2483
  };
1353
2484
 
1354
2485
  /**
2486
+ * FunctionCall represents a predicted function call returned from the model
2487
+ * that contains a string representing the FunctionDeclaration.name and a
2488
+ * structured JSON object containing the parameters and their values.
2489
+ *
1355
2490
  * @generated from message alis.adk.sessions.v1.FunctionCall
1356
2491
  */
1357
2492
  export declare type FunctionCallJson = {
1358
2493
  /**
2494
+ * Required. The name of the function to call.
2495
+ * Matches FunctionDeclaration.name.
2496
+ *
1359
2497
  * @generated from field: string name = 1;
1360
2498
  */
1361
2499
  name?: string;
1362
2500
 
1363
2501
  /**
2502
+ * Required. The function parameters and values in JSON object format.
2503
+ * See FunctionDeclaration.parameters for parameter details.
2504
+ *
1364
2505
  * @generated from field: google.protobuf.Struct args = 2;
1365
2506
  */
1366
2507
  args?: StructJson;
1367
2508
 
1368
2509
  /**
2510
+ * Optional. The unique ID of the function call. If populated, the client
2511
+ * should execute the function_call and return the response with the matching
2512
+ * id.
2513
+ *
1369
2514
  * @generated from field: string id = 3;
1370
2515
  */
1371
2516
  id?: string;
@@ -1378,50 +2523,94 @@ export declare type FunctionCallJson = {
1378
2523
  export declare const FunctionCallSchema: GenMessage<FunctionCall, {jsonType: FunctionCallJson}>;
1379
2524
 
1380
2525
  /**
2526
+ * FunctionResponse represents the result output from a FunctionCall that
2527
+ * contains a string representing the FunctionDeclaration.name and a structured
2528
+ * JSON object containing any output from the function. This is used as context
2529
+ * to the model.
2530
+ *
2531
+ * This should contain the result of a FunctionCall made based on model
2532
+ * prediction.
2533
+ *
1381
2534
  * @generated from message alis.adk.sessions.v1.FunctionResponse
1382
2535
  */
1383
2536
  export declare type FunctionResponse = Message<"alis.adk.sessions.v1.FunctionResponse"> & {
1384
2537
  /**
2538
+ * Required. The name of the function that was called.
2539
+ * Matches FunctionDeclaration.name and FunctionCall.name.
2540
+ *
1385
2541
  * @generated from field: string name = 1;
1386
2542
  */
1387
2543
  name: string;
1388
2544
 
1389
2545
  /**
2546
+ * Required. The function response in JSON object format.
2547
+ * Use "output" key to specify function output and "error" key to specify
2548
+ * error details (if any). If "output" and "error" keys are not specified,
2549
+ * then the whole "response" is treated as function output.
2550
+ *
1390
2551
  * @generated from field: google.protobuf.Struct response = 2;
1391
2552
  */
1392
2553
  response?: JsonObject | undefined;
1393
2554
 
1394
2555
  /**
2556
+ * Optional. The ID of the function call this response is for. Populated by
2557
+ * the client to match the corresponding function call id.
2558
+ *
1395
2559
  * @generated from field: string id = 3;
1396
2560
  */
1397
2561
  id: string;
1398
2562
 
1399
2563
  /**
2564
+ * Optional. Ordered Parts that constitute a function response.
2565
+ * Parts may have different IANA MIME types.
2566
+ *
1400
2567
  * @generated from field: repeated alis.adk.sessions.v1.FunctionResponsePart parts = 4;
1401
2568
  */
1402
2569
  parts: FunctionResponsePart[];
1403
2570
  };
1404
2571
 
1405
2572
  /**
2573
+ * FunctionResponse represents the result output from a FunctionCall that
2574
+ * contains a string representing the FunctionDeclaration.name and a structured
2575
+ * JSON object containing any output from the function. This is used as context
2576
+ * to the model.
2577
+ *
2578
+ * This should contain the result of a FunctionCall made based on model
2579
+ * prediction.
2580
+ *
1406
2581
  * @generated from message alis.adk.sessions.v1.FunctionResponse
1407
2582
  */
1408
2583
  export declare type FunctionResponseJson = {
1409
2584
  /**
2585
+ * Required. The name of the function that was called.
2586
+ * Matches FunctionDeclaration.name and FunctionCall.name.
2587
+ *
1410
2588
  * @generated from field: string name = 1;
1411
2589
  */
1412
2590
  name?: string;
1413
2591
 
1414
2592
  /**
2593
+ * Required. The function response in JSON object format.
2594
+ * Use "output" key to specify function output and "error" key to specify
2595
+ * error details (if any). If "output" and "error" keys are not specified,
2596
+ * then the whole "response" is treated as function output.
2597
+ *
1415
2598
  * @generated from field: google.protobuf.Struct response = 2;
1416
2599
  */
1417
2600
  response?: StructJson;
1418
2601
 
1419
2602
  /**
2603
+ * Optional. The ID of the function call this response is for. Populated by
2604
+ * the client to match the corresponding function call id.
2605
+ *
1420
2606
  * @generated from field: string id = 3;
1421
2607
  */
1422
2608
  id?: string;
1423
2609
 
1424
2610
  /**
2611
+ * Optional. Ordered Parts that constitute a function response.
2612
+ * Parts may have different IANA MIME types.
2613
+ *
1425
2614
  * @generated from field: repeated alis.adk.sessions.v1.FunctionResponsePart parts = 4;
1426
2615
  */
1427
2616
  parts?: FunctionResponsePartJson[];
@@ -1434,20 +2623,37 @@ export declare type FunctionResponseJson = {
1434
2623
  export declare const FunctionResponseSchema: GenMessage<FunctionResponse, {jsonType: FunctionResponseJson}>;
1435
2624
 
1436
2625
  /**
2626
+ * FunctionResponsePart represents a datatype containing media that is part of
2627
+ * a FunctionResponse message.
2628
+ *
2629
+ * A FunctionResponsePart consists of data which has an associated datatype.
2630
+ * A FunctionResponsePart can only contain one of the accepted types in
2631
+ * FunctionResponsePart.data.
2632
+ *
2633
+ * A FunctionResponsePart must have a fixed IANA MIME type identifying the
2634
+ * type and subtype of the media if the inline_data field is filled with raw
2635
+ * bytes.
2636
+ *
1437
2637
  * @generated from message alis.adk.sessions.v1.FunctionResponsePart
1438
2638
  */
1439
2639
  export declare type FunctionResponsePart = Message<"alis.adk.sessions.v1.FunctionResponsePart"> & {
1440
2640
  /**
2641
+ * The media carried by this part, as inline bytes or a URI reference.
2642
+ *
1441
2643
  * @generated from oneof alis.adk.sessions.v1.FunctionResponsePart.data
1442
2644
  */
1443
2645
  data: {
1444
2646
  /**
2647
+ * Inline media bytes.
2648
+ *
1445
2649
  * @generated from field: alis.adk.sessions.v1.FunctionResponseBlob inline_data = 1;
1446
2650
  */
1447
2651
  value: FunctionResponseBlob;
1448
2652
  case: "inlineData";
1449
2653
  } | {
1450
2654
  /**
2655
+ * URI-based data.
2656
+ *
1451
2657
  * @generated from field: alis.adk.sessions.v1.FunctionResponseFileData file_data = 2;
1452
2658
  */
1453
2659
  value: FunctionResponseFileData;
@@ -1456,15 +2662,30 @@ export declare type FunctionResponsePart = Message<"alis.adk.sessions.v1.Functio
1456
2662
  };
1457
2663
 
1458
2664
  /**
2665
+ * FunctionResponsePart represents a datatype containing media that is part of
2666
+ * a FunctionResponse message.
2667
+ *
2668
+ * A FunctionResponsePart consists of data which has an associated datatype.
2669
+ * A FunctionResponsePart can only contain one of the accepted types in
2670
+ * FunctionResponsePart.data.
2671
+ *
2672
+ * A FunctionResponsePart must have a fixed IANA MIME type identifying the
2673
+ * type and subtype of the media if the inline_data field is filled with raw
2674
+ * bytes.
2675
+ *
1459
2676
  * @generated from message alis.adk.sessions.v1.FunctionResponsePart
1460
2677
  */
1461
2678
  export declare type FunctionResponsePartJson = {
1462
2679
  /**
2680
+ * Inline media bytes.
2681
+ *
1463
2682
  * @generated from field: alis.adk.sessions.v1.FunctionResponseBlob inline_data = 1;
1464
2683
  */
1465
2684
  inlineData?: FunctionResponseBlobJson;
1466
2685
 
1467
2686
  /**
2687
+ * URI-based data.
2688
+ *
1468
2689
  * @generated from field: alis.adk.sessions.v1.FunctionResponseFileData file_data = 2;
1469
2690
  */
1470
2691
  fileData?: FunctionResponseFileDataJson;
@@ -1477,40 +2698,72 @@ export declare type FunctionResponsePartJson = {
1477
2698
  export declare const FunctionResponsePartSchema: GenMessage<FunctionResponsePart, {jsonType: FunctionResponsePartJson}>;
1478
2699
 
1479
2700
  /**
2701
+ * FunctionResponseBlob represents raw media bytes for function response.
2702
+ *
2703
+ * Text should not be sent as raw bytes; use the 'text' field instead.
2704
+ *
1480
2705
  * @generated from message alis.adk.sessions.v1.FunctionResponseBlob
1481
2706
  */
1482
2707
  export declare type FunctionResponseBlob = Message<"alis.adk.sessions.v1.FunctionResponseBlob"> & {
1483
2708
  /**
2709
+ * Required. The IANA standard MIME type of the source data.
2710
+ *
1484
2711
  * @generated from field: string mime_type = 1;
1485
2712
  */
1486
2713
  mimeType: string;
1487
2714
 
1488
2715
  /**
2716
+ * Required. Raw bytes.
2717
+ *
1489
2718
  * @generated from field: bytes data = 2;
1490
2719
  */
1491
2720
  data: Uint8Array;
1492
2721
 
1493
2722
  /**
2723
+ * Optional. Display name of the blob.
2724
+ *
2725
+ * Used to provide a label or filename to distinguish blobs.
2726
+ *
2727
+ * This field is only returned in PromptMessage for prompt management.
2728
+ * It is currently used in the Gemini GenerateContent calls only when server
2729
+ * side tools (code_execution, google_search, and url_context) are enabled.
2730
+ *
1494
2731
  * @generated from field: string display_name = 4;
1495
2732
  */
1496
2733
  displayName: string;
1497
2734
  };
1498
2735
 
1499
2736
  /**
2737
+ * FunctionResponseBlob represents raw media bytes for function response.
2738
+ *
2739
+ * Text should not be sent as raw bytes; use the 'text' field instead.
2740
+ *
1500
2741
  * @generated from message alis.adk.sessions.v1.FunctionResponseBlob
1501
2742
  */
1502
2743
  export declare type FunctionResponseBlobJson = {
1503
2744
  /**
2745
+ * Required. The IANA standard MIME type of the source data.
2746
+ *
1504
2747
  * @generated from field: string mime_type = 1;
1505
2748
  */
1506
2749
  mimeType?: string;
1507
2750
 
1508
2751
  /**
2752
+ * Required. Raw bytes.
2753
+ *
1509
2754
  * @generated from field: bytes data = 2;
1510
2755
  */
1511
2756
  data?: string;
1512
2757
 
1513
2758
  /**
2759
+ * Optional. Display name of the blob.
2760
+ *
2761
+ * Used to provide a label or filename to distinguish blobs.
2762
+ *
2763
+ * This field is only returned in PromptMessage for prompt management.
2764
+ * It is currently used in the Gemini GenerateContent calls only when server
2765
+ * side tools (code_execution, google_search, and url_context) are enabled.
2766
+ *
1514
2767
  * @generated from field: string display_name = 4;
1515
2768
  */
1516
2769
  displayName?: string;
@@ -1523,40 +2776,68 @@ export declare type FunctionResponseBlobJson = {
1523
2776
  export declare const FunctionResponseBlobSchema: GenMessage<FunctionResponseBlob, {jsonType: FunctionResponseBlobJson}>;
1524
2777
 
1525
2778
  /**
2779
+ * FunctionResponseFileData represents URI-based data for function response.
2780
+ *
1526
2781
  * @generated from message alis.adk.sessions.v1.FunctionResponseFileData
1527
2782
  */
1528
2783
  export declare type FunctionResponseFileData = Message<"alis.adk.sessions.v1.FunctionResponseFileData"> & {
1529
2784
  /**
2785
+ * Required. The IANA standard MIME type of the source data.
2786
+ *
1530
2787
  * @generated from field: string mime_type = 1;
1531
2788
  */
1532
2789
  mimeType: string;
1533
2790
 
1534
2791
  /**
2792
+ * Required. URI.
2793
+ *
1535
2794
  * @generated from field: string file_uri = 2;
1536
2795
  */
1537
2796
  fileUri: string;
1538
2797
 
1539
2798
  /**
2799
+ * Optional. Display name of the file data.
2800
+ *
2801
+ * Used to provide a label or filename to distinguish file data.
2802
+ *
2803
+ * This field is only returned in PromptMessage for prompt management.
2804
+ * It is currently used in the Gemini GenerateContent calls only when server
2805
+ * side tools (code_execution, google_search, and url_context) are enabled.
2806
+ *
1540
2807
  * @generated from field: string display_name = 3;
1541
2808
  */
1542
2809
  displayName: string;
1543
2810
  };
1544
2811
 
1545
2812
  /**
2813
+ * FunctionResponseFileData represents URI-based data for function response.
2814
+ *
1546
2815
  * @generated from message alis.adk.sessions.v1.FunctionResponseFileData
1547
2816
  */
1548
2817
  export declare type FunctionResponseFileDataJson = {
1549
2818
  /**
2819
+ * Required. The IANA standard MIME type of the source data.
2820
+ *
1550
2821
  * @generated from field: string mime_type = 1;
1551
2822
  */
1552
2823
  mimeType?: string;
1553
2824
 
1554
2825
  /**
2826
+ * Required. URI.
2827
+ *
1555
2828
  * @generated from field: string file_uri = 2;
1556
2829
  */
1557
2830
  fileUri?: string;
1558
2831
 
1559
2832
  /**
2833
+ * Optional. Display name of the file data.
2834
+ *
2835
+ * Used to provide a label or filename to distinguish file data.
2836
+ *
2837
+ * This field is only returned in PromptMessage for prompt management.
2838
+ * It is currently used in the Gemini GenerateContent calls only when server
2839
+ * side tools (code_execution, google_search, and url_context) are enabled.
2840
+ *
1560
2841
  * @generated from field: string display_name = 3;
1561
2842
  */
1562
2843
  displayName?: string;
@@ -1569,30 +2850,50 @@ export declare type FunctionResponseFileDataJson = {
1569
2850
  export declare const FunctionResponseFileDataSchema: GenMessage<FunctionResponseFileData, {jsonType: FunctionResponseFileDataJson}>;
1570
2851
 
1571
2852
  /**
2853
+ * ExecutableCode represents code generated by the model that is meant to be
2854
+ * executed, and the result returned to the model.
2855
+ *
2856
+ * Generated when using the FunctionDeclaration tool and FunctionCallingConfig
2857
+ * mode is set to Mode.CODE.
2858
+ *
1572
2859
  * @generated from message alis.adk.sessions.v1.ExecutableCode
1573
2860
  */
1574
2861
  export declare type ExecutableCode = Message<"alis.adk.sessions.v1.ExecutableCode"> & {
1575
2862
  /**
2863
+ * Required. Programming language of the code.
2864
+ *
1576
2865
  * @generated from field: alis.adk.sessions.v1.ExecutableCode.Language language = 1;
1577
2866
  */
1578
2867
  language: ExecutableCode_Language;
1579
2868
 
1580
2869
  /**
2870
+ * Required. The code to be executed.
2871
+ *
1581
2872
  * @generated from field: string code = 2;
1582
2873
  */
1583
2874
  code: string;
1584
2875
  };
1585
2876
 
1586
2877
  /**
2878
+ * ExecutableCode represents code generated by the model that is meant to be
2879
+ * executed, and the result returned to the model.
2880
+ *
2881
+ * Generated when using the FunctionDeclaration tool and FunctionCallingConfig
2882
+ * mode is set to Mode.CODE.
2883
+ *
1587
2884
  * @generated from message alis.adk.sessions.v1.ExecutableCode
1588
2885
  */
1589
2886
  export declare type ExecutableCodeJson = {
1590
2887
  /**
2888
+ * Required. Programming language of the code.
2889
+ *
1591
2890
  * @generated from field: alis.adk.sessions.v1.ExecutableCode.Language language = 1;
1592
2891
  */
1593
2892
  language?: ExecutableCode_LanguageJson;
1594
2893
 
1595
2894
  /**
2895
+ * Required. The code to be executed.
2896
+ *
1596
2897
  * @generated from field: string code = 2;
1597
2898
  */
1598
2899
  code?: string;
@@ -1605,21 +2906,29 @@ export declare type ExecutableCodeJson = {
1605
2906
  export declare const ExecutableCodeSchema: GenMessage<ExecutableCode, {jsonType: ExecutableCodeJson}>;
1606
2907
 
1607
2908
  /**
2909
+ * Supported programming languages for the generated code.
2910
+ *
1608
2911
  * @generated from enum alis.adk.sessions.v1.ExecutableCode.Language
1609
2912
  */
1610
2913
  export enum ExecutableCode_Language {
1611
2914
  /**
2915
+ * Unspecified language. This value should not be used.
2916
+ *
1612
2917
  * @generated from enum value: LANGUAGE_UNSPECIFIED = 0;
1613
2918
  */
1614
2919
  LANGUAGE_UNSPECIFIED = 0,
1615
2920
 
1616
2921
  /**
2922
+ * Python >= 3.10, with numpy and simpy available.
2923
+ *
1617
2924
  * @generated from enum value: PYTHON = 1;
1618
2925
  */
1619
2926
  PYTHON = 1,
1620
2927
  }
1621
2928
 
1622
2929
  /**
2930
+ * Supported programming languages for the generated code.
2931
+ *
1623
2932
  * @generated from enum alis.adk.sessions.v1.ExecutableCode.Language
1624
2933
  */
1625
2934
  export declare type ExecutableCode_LanguageJson = "LANGUAGE_UNSPECIFIED" | "PYTHON";
@@ -1630,30 +2939,48 @@ export declare type ExecutableCode_LanguageJson = "LANGUAGE_UNSPECIFIED" | "PYTH
1630
2939
  export declare const ExecutableCode_LanguageSchema: GenEnum<ExecutableCode_Language, ExecutableCode_LanguageJson>;
1631
2940
 
1632
2941
  /**
2942
+ * CodeExecutionResult represents the result of executing ExecutableCode.
2943
+ *
2944
+ * Always follows a part containing the ExecutableCode.
2945
+ *
1633
2946
  * @generated from message alis.adk.sessions.v1.CodeExecutionResult
1634
2947
  */
1635
2948
  export declare type CodeExecutionResult = Message<"alis.adk.sessions.v1.CodeExecutionResult"> & {
1636
2949
  /**
2950
+ * Required. Outcome of the code execution.
2951
+ *
1637
2952
  * @generated from field: alis.adk.sessions.v1.CodeExecutionResult.Outcome outcome = 1;
1638
2953
  */
1639
2954
  outcome: CodeExecutionResult_Outcome;
1640
2955
 
1641
2956
  /**
2957
+ * Optional. Contains stdout when code execution is successful, stderr or
2958
+ * other description otherwise.
2959
+ *
1642
2960
  * @generated from field: string output = 2;
1643
2961
  */
1644
2962
  output: string;
1645
2963
  };
1646
2964
 
1647
2965
  /**
2966
+ * CodeExecutionResult represents the result of executing ExecutableCode.
2967
+ *
2968
+ * Always follows a part containing the ExecutableCode.
2969
+ *
1648
2970
  * @generated from message alis.adk.sessions.v1.CodeExecutionResult
1649
2971
  */
1650
2972
  export declare type CodeExecutionResultJson = {
1651
2973
  /**
2974
+ * Required. Outcome of the code execution.
2975
+ *
1652
2976
  * @generated from field: alis.adk.sessions.v1.CodeExecutionResult.Outcome outcome = 1;
1653
2977
  */
1654
2978
  outcome?: CodeExecutionResult_OutcomeJson;
1655
2979
 
1656
2980
  /**
2981
+ * Optional. Contains stdout when code execution is successful, stderr or
2982
+ * other description otherwise.
2983
+ *
1657
2984
  * @generated from field: string output = 2;
1658
2985
  */
1659
2986
  output?: string;
@@ -1666,31 +2993,45 @@ export declare type CodeExecutionResultJson = {
1666
2993
  export declare const CodeExecutionResultSchema: GenMessage<CodeExecutionResult, {jsonType: CodeExecutionResultJson}>;
1667
2994
 
1668
2995
  /**
2996
+ * Enumeration of possible outcomes of the code execution.
2997
+ *
1669
2998
  * @generated from enum alis.adk.sessions.v1.CodeExecutionResult.Outcome
1670
2999
  */
1671
3000
  export enum CodeExecutionResult_Outcome {
1672
3001
  /**
3002
+ * Unspecified status. This value should not be used.
3003
+ *
1673
3004
  * @generated from enum value: OUTCOME_UNSPECIFIED = 0;
1674
3005
  */
1675
3006
  UNSPECIFIED = 0,
1676
3007
 
1677
3008
  /**
3009
+ * Code execution completed successfully.
3010
+ *
1678
3011
  * @generated from enum value: OUTCOME_OK = 1;
1679
3012
  */
1680
3013
  OK = 1,
1681
3014
 
1682
3015
  /**
3016
+ * Code execution finished but with a failure. stderr should contain the
3017
+ * reason.
3018
+ *
1683
3019
  * @generated from enum value: OUTCOME_FAILED = 2;
1684
3020
  */
1685
3021
  FAILED = 2,
1686
3022
 
1687
3023
  /**
3024
+ * Code execution ran for too long, and was cancelled. There may or may not
3025
+ * be a partial output present.
3026
+ *
1688
3027
  * @generated from enum value: OUTCOME_DEADLINE_EXCEEDED = 3;
1689
3028
  */
1690
3029
  DEADLINE_EXCEEDED = 3,
1691
3030
  }
1692
3031
 
1693
3032
  /**
3033
+ * Enumeration of possible outcomes of the code execution.
3034
+ *
1694
3035
  * @generated from enum alis.adk.sessions.v1.CodeExecutionResult.Outcome
1695
3036
  */
1696
3037
  export declare type CodeExecutionResult_OutcomeJson = "OUTCOME_UNSPECIFIED" | "OUTCOME_OK" | "OUTCOME_FAILED" | "OUTCOME_DEADLINE_EXCEEDED";
@@ -1701,90 +3042,134 @@ export declare type CodeExecutionResult_OutcomeJson = "OUTCOME_UNSPECIFIED" | "O
1701
3042
  export declare const CodeExecutionResult_OutcomeSchema: GenEnum<CodeExecutionResult_Outcome, CodeExecutionResult_OutcomeJson>;
1702
3043
 
1703
3044
  /**
3045
+ * GroundingMetadata contains metadata returned to client when grounding is
3046
+ * enabled.
3047
+ *
1704
3048
  * @generated from message alis.adk.sessions.v1.GroundingMetadata
1705
3049
  */
1706
3050
  export declare type GroundingMetadata = Message<"alis.adk.sessions.v1.GroundingMetadata"> & {
1707
3051
  /**
3052
+ * Optional. Web search queries for the following-up web search.
3053
+ *
1708
3054
  * @generated from field: repeated string web_search_queries = 1;
1709
3055
  */
1710
3056
  webSearchQueries: string[];
1711
3057
 
1712
3058
  /**
3059
+ * Optional. Queries executed by the retrieval tools.
3060
+ *
1713
3061
  * @generated from field: repeated string retrieval_queries = 3;
1714
3062
  */
1715
3063
  retrievalQueries: string[];
1716
3064
 
1717
3065
  /**
3066
+ * Optional. Google search entry for the following-up web searches.
3067
+ *
1718
3068
  * @generated from field: alis.adk.sessions.v1.SearchEntryPoint search_entry_point = 4;
1719
3069
  */
1720
3070
  searchEntryPoint?: SearchEntryPoint | undefined;
1721
3071
 
1722
3072
  /**
3073
+ * List of supporting references retrieved from specified grounding source.
3074
+ *
1723
3075
  * @generated from field: repeated alis.adk.sessions.v1.GroundingChunk grounding_chunks = 5;
1724
3076
  */
1725
3077
  groundingChunks: GroundingChunk[];
1726
3078
 
1727
3079
  /**
3080
+ * Optional. List of grounding support.
3081
+ *
1728
3082
  * @generated from field: repeated alis.adk.sessions.v1.GroundingSupport grounding_supports = 6;
1729
3083
  */
1730
3084
  groundingSupports: GroundingSupport[];
1731
3085
 
1732
3086
  /**
3087
+ * Optional. Output only. Retrieval metadata.
3088
+ *
1733
3089
  * @generated from field: alis.adk.sessions.v1.RetrievalMetadata retrieval_metadata = 7;
1734
3090
  */
1735
3091
  retrievalMetadata?: RetrievalMetadata | undefined;
1736
3092
 
1737
3093
  /**
3094
+ * Optional. Output only. Resource name of the Google Maps widget context
3095
+ * token to be used with the PlacesContextElement widget to render contextual
3096
+ * data. This is populated only for Google Maps grounding.
3097
+ *
1738
3098
  * @generated from field: string google_maps_widget_context_token = 8;
1739
3099
  */
1740
3100
  googleMapsWidgetContextToken: string;
1741
3101
 
1742
3102
  /**
3103
+ * List of source flagging URIs. This is currently populated only for Google
3104
+ * Maps grounding.
3105
+ *
1743
3106
  * @generated from field: repeated alis.adk.sessions.v1.GroundingMetadata.SourceFlaggingUri source_flagging_uris = 9;
1744
3107
  */
1745
3108
  sourceFlaggingUris: GroundingMetadata_SourceFlaggingUri[];
1746
3109
  };
1747
3110
 
1748
3111
  /**
3112
+ * GroundingMetadata contains metadata returned to client when grounding is
3113
+ * enabled.
3114
+ *
1749
3115
  * @generated from message alis.adk.sessions.v1.GroundingMetadata
1750
3116
  */
1751
3117
  export declare type GroundingMetadataJson = {
1752
3118
  /**
3119
+ * Optional. Web search queries for the following-up web search.
3120
+ *
1753
3121
  * @generated from field: repeated string web_search_queries = 1;
1754
3122
  */
1755
3123
  webSearchQueries?: string[];
1756
3124
 
1757
3125
  /**
3126
+ * Optional. Queries executed by the retrieval tools.
3127
+ *
1758
3128
  * @generated from field: repeated string retrieval_queries = 3;
1759
3129
  */
1760
3130
  retrievalQueries?: string[];
1761
3131
 
1762
3132
  /**
3133
+ * Optional. Google search entry for the following-up web searches.
3134
+ *
1763
3135
  * @generated from field: alis.adk.sessions.v1.SearchEntryPoint search_entry_point = 4;
1764
3136
  */
1765
3137
  searchEntryPoint?: SearchEntryPointJson;
1766
3138
 
1767
3139
  /**
3140
+ * List of supporting references retrieved from specified grounding source.
3141
+ *
1768
3142
  * @generated from field: repeated alis.adk.sessions.v1.GroundingChunk grounding_chunks = 5;
1769
3143
  */
1770
3144
  groundingChunks?: GroundingChunkJson[];
1771
3145
 
1772
3146
  /**
3147
+ * Optional. List of grounding support.
3148
+ *
1773
3149
  * @generated from field: repeated alis.adk.sessions.v1.GroundingSupport grounding_supports = 6;
1774
3150
  */
1775
3151
  groundingSupports?: GroundingSupportJson[];
1776
3152
 
1777
3153
  /**
3154
+ * Optional. Output only. Retrieval metadata.
3155
+ *
1778
3156
  * @generated from field: alis.adk.sessions.v1.RetrievalMetadata retrieval_metadata = 7;
1779
3157
  */
1780
3158
  retrievalMetadata?: RetrievalMetadataJson;
1781
3159
 
1782
3160
  /**
3161
+ * Optional. Output only. Resource name of the Google Maps widget context
3162
+ * token to be used with the PlacesContextElement widget to render contextual
3163
+ * data. This is populated only for Google Maps grounding.
3164
+ *
1783
3165
  * @generated from field: string google_maps_widget_context_token = 8;
1784
3166
  */
1785
3167
  googleMapsWidgetContextToken?: string;
1786
3168
 
1787
3169
  /**
3170
+ * List of source flagging URIs. This is currently populated only for Google
3171
+ * Maps grounding.
3172
+ *
1788
3173
  * @generated from field: repeated alis.adk.sessions.v1.GroundingMetadata.SourceFlaggingUri source_flagging_uris = 9;
1789
3174
  */
1790
3175
  sourceFlaggingUris?: GroundingMetadata_SourceFlaggingUriJson[];
@@ -1797,30 +3182,50 @@ export declare type GroundingMetadataJson = {
1797
3182
  export declare const GroundingMetadataSchema: GenMessage<GroundingMetadata, {jsonType: GroundingMetadataJson}>;
1798
3183
 
1799
3184
  /**
3185
+ * SourceFlaggingUri represents a source content flagging URI for a place or
3186
+ * review. This is currently populated only for Google Maps grounding.
3187
+ *
1800
3188
  * @generated from message alis.adk.sessions.v1.GroundingMetadata.SourceFlaggingUri
1801
3189
  */
1802
3190
  export declare type GroundingMetadata_SourceFlaggingUri = Message<"alis.adk.sessions.v1.GroundingMetadata.SourceFlaggingUri"> & {
1803
3191
  /**
3192
+ * ID of the place or review.
3193
+ *
1804
3194
  * @generated from field: string source_id = 1;
1805
3195
  */
1806
3196
  sourceId: string;
1807
3197
 
1808
3198
  /**
3199
+ * A link where users can flag a problem with the source (place or review).
3200
+ * The link is generated by Google and it does not contain information from
3201
+ * the user query. It may contain information of the content it is flagging,
3202
+ * which can be used to identify places.
3203
+ *
1809
3204
  * @generated from field: string flag_content_uri = 2;
1810
3205
  */
1811
3206
  flagContentUri: string;
1812
3207
  };
1813
3208
 
1814
3209
  /**
3210
+ * SourceFlaggingUri represents a source content flagging URI for a place or
3211
+ * review. This is currently populated only for Google Maps grounding.
3212
+ *
1815
3213
  * @generated from message alis.adk.sessions.v1.GroundingMetadata.SourceFlaggingUri
1816
3214
  */
1817
3215
  export declare type GroundingMetadata_SourceFlaggingUriJson = {
1818
3216
  /**
3217
+ * ID of the place or review.
3218
+ *
1819
3219
  * @generated from field: string source_id = 1;
1820
3220
  */
1821
3221
  sourceId?: string;
1822
3222
 
1823
3223
  /**
3224
+ * A link where users can flag a problem with the source (place or review).
3225
+ * The link is generated by Google and it does not contain information from
3226
+ * the user query. It may contain information of the content it is flagging,
3227
+ * which can be used to identify places.
3228
+ *
1824
3229
  * @generated from field: string flag_content_uri = 2;
1825
3230
  */
1826
3231
  flagContentUri?: string;
@@ -1833,26 +3238,37 @@ export declare type GroundingMetadata_SourceFlaggingUriJson = {
1833
3238
  export declare const GroundingMetadata_SourceFlaggingUriSchema: GenMessage<GroundingMetadata_SourceFlaggingUri, {jsonType: GroundingMetadata_SourceFlaggingUriJson}>;
1834
3239
 
1835
3240
  /**
3241
+ * GroundingChunk represents a chunk of grounding information from various
3242
+ * sources.
3243
+ *
1836
3244
  * @generated from message alis.adk.sessions.v1.GroundingChunk
1837
3245
  */
1838
3246
  export declare type GroundingChunk = Message<"alis.adk.sessions.v1.GroundingChunk"> & {
1839
3247
  /**
3248
+ * Chunk type.
3249
+ *
1840
3250
  * @generated from oneof alis.adk.sessions.v1.GroundingChunk.chunk_type
1841
3251
  */
1842
3252
  chunkType: {
1843
3253
  /**
3254
+ * Grounding chunk from the web.
3255
+ *
1844
3256
  * @generated from field: alis.adk.sessions.v1.GroundingChunk.Web web = 1;
1845
3257
  */
1846
3258
  value: GroundingChunk_Web;
1847
3259
  case: "web";
1848
3260
  } | {
1849
3261
  /**
3262
+ * Grounding chunk from context retrieved by the retrieval tools.
3263
+ *
1850
3264
  * @generated from field: alis.adk.sessions.v1.GroundingChunk.RetrievedContext retrieved_context = 2;
1851
3265
  */
1852
3266
  value: GroundingChunk_RetrievedContext;
1853
3267
  case: "retrievedContext";
1854
3268
  } | {
1855
3269
  /**
3270
+ * Grounding chunk from Google Maps.
3271
+ *
1856
3272
  * @generated from field: alis.adk.sessions.v1.GroundingChunk.Maps maps = 3;
1857
3273
  */
1858
3274
  value: GroundingChunk_Maps;
@@ -1861,20 +3277,29 @@ export declare type GroundingChunk = Message<"alis.adk.sessions.v1.GroundingChun
1861
3277
  };
1862
3278
 
1863
3279
  /**
3280
+ * GroundingChunk represents a chunk of grounding information from various
3281
+ * sources.
3282
+ *
1864
3283
  * @generated from message alis.adk.sessions.v1.GroundingChunk
1865
3284
  */
1866
3285
  export declare type GroundingChunkJson = {
1867
3286
  /**
3287
+ * Grounding chunk from the web.
3288
+ *
1868
3289
  * @generated from field: alis.adk.sessions.v1.GroundingChunk.Web web = 1;
1869
3290
  */
1870
3291
  web?: GroundingChunk_WebJson;
1871
3292
 
1872
3293
  /**
3294
+ * Grounding chunk from context retrieved by the retrieval tools.
3295
+ *
1873
3296
  * @generated from field: alis.adk.sessions.v1.GroundingChunk.RetrievedContext retrieved_context = 2;
1874
3297
  */
1875
3298
  retrievedContext?: GroundingChunk_RetrievedContextJson;
1876
3299
 
1877
3300
  /**
3301
+ * Grounding chunk from Google Maps.
3302
+ *
1878
3303
  * @generated from field: alis.adk.sessions.v1.GroundingChunk.Maps maps = 3;
1879
3304
  */
1880
3305
  maps?: GroundingChunk_MapsJson;
@@ -1887,40 +3312,56 @@ export declare type GroundingChunkJson = {
1887
3312
  export declare const GroundingChunkSchema: GenMessage<GroundingChunk, {jsonType: GroundingChunkJson}>;
1888
3313
 
1889
3314
  /**
3315
+ * Web represents a chunk from the web.
3316
+ *
1890
3317
  * @generated from message alis.adk.sessions.v1.GroundingChunk.Web
1891
3318
  */
1892
3319
  export declare type GroundingChunk_Web = Message<"alis.adk.sessions.v1.GroundingChunk.Web"> & {
1893
3320
  /**
3321
+ * Optional. Domain of the chunk.
3322
+ *
1894
3323
  * @generated from field: string domain = 1;
1895
3324
  */
1896
3325
  domain: string;
1897
3326
 
1898
3327
  /**
3328
+ * Optional. URI reference of the chunk.
3329
+ *
1899
3330
  * @generated from field: string uri = 2;
1900
3331
  */
1901
3332
  uri: string;
1902
3333
 
1903
3334
  /**
3335
+ * Optional. Title of the chunk.
3336
+ *
1904
3337
  * @generated from field: string title = 3;
1905
3338
  */
1906
3339
  title: string;
1907
3340
  };
1908
3341
 
1909
3342
  /**
3343
+ * Web represents a chunk from the web.
3344
+ *
1910
3345
  * @generated from message alis.adk.sessions.v1.GroundingChunk.Web
1911
3346
  */
1912
3347
  export declare type GroundingChunk_WebJson = {
1913
3348
  /**
3349
+ * Optional. Domain of the chunk.
3350
+ *
1914
3351
  * @generated from field: string domain = 1;
1915
3352
  */
1916
3353
  domain?: string;
1917
3354
 
1918
3355
  /**
3356
+ * Optional. URI reference of the chunk.
3357
+ *
1919
3358
  * @generated from field: string uri = 2;
1920
3359
  */
1921
3360
  uri?: string;
1922
3361
 
1923
3362
  /**
3363
+ * Optional. Title of the chunk.
3364
+ *
1924
3365
  * @generated from field: string title = 3;
1925
3366
  */
1926
3367
  title?: string;
@@ -1933,29 +3374,43 @@ export declare type GroundingChunk_WebJson = {
1933
3374
  export declare const GroundingChunk_WebSchema: GenMessage<GroundingChunk_Web, {jsonType: GroundingChunk_WebJson}>;
1934
3375
 
1935
3376
  /**
3377
+ * RetrievedContext represents a chunk from context retrieved by the retrieval
3378
+ * tools.
3379
+ *
1936
3380
  * @generated from message alis.adk.sessions.v1.GroundingChunk.RetrievedContext
1937
3381
  */
1938
3382
  export declare type GroundingChunk_RetrievedContext = Message<"alis.adk.sessions.v1.GroundingChunk.RetrievedContext"> & {
1939
3383
  /**
3384
+ * Optional. URI reference of the attribution.
3385
+ *
1940
3386
  * @generated from field: string uri = 1;
1941
3387
  */
1942
3388
  uri: string;
1943
3389
 
1944
3390
  /**
3391
+ * Optional. Title of the attribution.
3392
+ *
1945
3393
  * @generated from field: string title = 2;
1946
3394
  */
1947
3395
  title: string;
1948
3396
 
1949
3397
  /**
3398
+ * Optional. Text of the attribution.
3399
+ *
1950
3400
  * @generated from field: string text = 3;
1951
3401
  */
1952
3402
  text: string;
1953
3403
 
1954
3404
  /**
3405
+ * Tool-specific details about the retrieved context.
3406
+ *
1955
3407
  * @generated from oneof alis.adk.sessions.v1.GroundingChunk.RetrievedContext.context_details
1956
3408
  */
1957
3409
  contextDetails: {
1958
3410
  /**
3411
+ * Additional context for the RAG retrieval result. This is only populated
3412
+ * when using the RAG retrieval tool.
3413
+ *
1959
3414
  * @generated from field: alis.adk.sessions.v1.RagChunk rag_chunk = 4;
1960
3415
  */
1961
3416
  value: RagChunk;
@@ -1963,36 +3418,54 @@ export declare type GroundingChunk_RetrievedContext = Message<"alis.adk.sessions
1963
3418
  } | { case: undefined; value?: undefined };
1964
3419
 
1965
3420
  /**
3421
+ * Optional. Output only. The full document name for the referenced Vertex
3422
+ * AI Search document.
3423
+ *
1966
3424
  * @generated from field: string document_name = 6;
1967
3425
  */
1968
3426
  documentName: string;
1969
3427
  };
1970
3428
 
1971
3429
  /**
3430
+ * RetrievedContext represents a chunk from context retrieved by the retrieval
3431
+ * tools.
3432
+ *
1972
3433
  * @generated from message alis.adk.sessions.v1.GroundingChunk.RetrievedContext
1973
3434
  */
1974
3435
  export declare type GroundingChunk_RetrievedContextJson = {
1975
3436
  /**
3437
+ * Optional. URI reference of the attribution.
3438
+ *
1976
3439
  * @generated from field: string uri = 1;
1977
3440
  */
1978
3441
  uri?: string;
1979
3442
 
1980
3443
  /**
3444
+ * Optional. Title of the attribution.
3445
+ *
1981
3446
  * @generated from field: string title = 2;
1982
3447
  */
1983
3448
  title?: string;
1984
3449
 
1985
3450
  /**
3451
+ * Optional. Text of the attribution.
3452
+ *
1986
3453
  * @generated from field: string text = 3;
1987
3454
  */
1988
3455
  text?: string;
1989
3456
 
1990
3457
  /**
3458
+ * Additional context for the RAG retrieval result. This is only populated
3459
+ * when using the RAG retrieval tool.
3460
+ *
1991
3461
  * @generated from field: alis.adk.sessions.v1.RagChunk rag_chunk = 4;
1992
3462
  */
1993
3463
  ragChunk?: RagChunkJson;
1994
3464
 
1995
3465
  /**
3466
+ * Optional. Output only. The full document name for the referenced Vertex
3467
+ * AI Search document.
3468
+ *
1996
3469
  * @generated from field: string document_name = 6;
1997
3470
  */
1998
3471
  documentName?: string;
@@ -2005,60 +3478,90 @@ export declare type GroundingChunk_RetrievedContextJson = {
2005
3478
  export declare const GroundingChunk_RetrievedContextSchema: GenMessage<GroundingChunk_RetrievedContext, {jsonType: GroundingChunk_RetrievedContextJson}>;
2006
3479
 
2007
3480
  /**
3481
+ * Maps represents a chunk from Google Maps.
3482
+ *
2008
3483
  * @generated from message alis.adk.sessions.v1.GroundingChunk.Maps
2009
3484
  */
2010
3485
  export declare type GroundingChunk_Maps = Message<"alis.adk.sessions.v1.GroundingChunk.Maps"> & {
2011
3486
  /**
3487
+ * Optional. URI reference of the chunk.
3488
+ *
2012
3489
  * @generated from field: string uri = 1;
2013
3490
  */
2014
3491
  uri: string;
2015
3492
 
2016
3493
  /**
3494
+ * Optional. Title of the chunk.
3495
+ *
2017
3496
  * @generated from field: string title = 2;
2018
3497
  */
2019
3498
  title: string;
2020
3499
 
2021
3500
  /**
3501
+ * Optional. Text of the chunk.
3502
+ *
2022
3503
  * @generated from field: string text = 3;
2023
3504
  */
2024
3505
  text: string;
2025
3506
 
2026
3507
  /**
3508
+ * Optional. This Place's resource name, in `places/{place_id}` format.
3509
+ * Can be used to look up the Place.
3510
+ *
2027
3511
  * @generated from field: string place_id = 4;
2028
3512
  */
2029
3513
  placeId: string;
2030
3514
 
2031
3515
  /**
3516
+ * Sources used to generate the place answer.
3517
+ * This includes review snippets and photos that were used to generate the
3518
+ * answer, as well as URIs to flag content.
3519
+ *
2032
3520
  * @generated from field: alis.adk.sessions.v1.GroundingChunk.Maps.PlaceAnswerSources place_answer_sources = 5;
2033
3521
  */
2034
3522
  placeAnswerSources?: GroundingChunk_Maps_PlaceAnswerSources | undefined;
2035
3523
  };
2036
3524
 
2037
3525
  /**
3526
+ * Maps represents a chunk from Google Maps.
3527
+ *
2038
3528
  * @generated from message alis.adk.sessions.v1.GroundingChunk.Maps
2039
3529
  */
2040
3530
  export declare type GroundingChunk_MapsJson = {
2041
3531
  /**
3532
+ * Optional. URI reference of the chunk.
3533
+ *
2042
3534
  * @generated from field: string uri = 1;
2043
3535
  */
2044
3536
  uri?: string;
2045
3537
 
2046
3538
  /**
3539
+ * Optional. Title of the chunk.
3540
+ *
2047
3541
  * @generated from field: string title = 2;
2048
3542
  */
2049
3543
  title?: string;
2050
3544
 
2051
3545
  /**
3546
+ * Optional. Text of the chunk.
3547
+ *
2052
3548
  * @generated from field: string text = 3;
2053
3549
  */
2054
3550
  text?: string;
2055
3551
 
2056
3552
  /**
3553
+ * Optional. This Place's resource name, in `places/{place_id}` format.
3554
+ * Can be used to look up the Place.
3555
+ *
2057
3556
  * @generated from field: string place_id = 4;
2058
3557
  */
2059
3558
  placeId?: string;
2060
3559
 
2061
3560
  /**
3561
+ * Sources used to generate the place answer.
3562
+ * This includes review snippets and photos that were used to generate the
3563
+ * answer, as well as URIs to flag content.
3564
+ *
2062
3565
  * @generated from field: alis.adk.sessions.v1.GroundingChunk.Maps.PlaceAnswerSources place_answer_sources = 5;
2063
3566
  */
2064
3567
  placeAnswerSources?: GroundingChunk_Maps_PlaceAnswerSourcesJson;
@@ -2071,30 +3574,42 @@ export declare type GroundingChunk_MapsJson = {
2071
3574
  export declare const GroundingChunk_MapsSchema: GenMessage<GroundingChunk_Maps, {jsonType: GroundingChunk_MapsJson}>;
2072
3575
 
2073
3576
  /**
3577
+ * PlaceAnswerSources contains sources used to generate the place answer.
3578
+ *
2074
3579
  * @generated from message alis.adk.sessions.v1.GroundingChunk.Maps.PlaceAnswerSources
2075
3580
  */
2076
3581
  export declare type GroundingChunk_Maps_PlaceAnswerSources = Message<"alis.adk.sessions.v1.GroundingChunk.Maps.PlaceAnswerSources"> & {
2077
3582
  /**
3583
+ * Snippets of reviews that are used to generate the answer.
3584
+ *
2078
3585
  * @generated from field: repeated alis.adk.sessions.v1.GroundingChunk.Maps.PlaceAnswerSources.ReviewSnippet review_snippets = 1;
2079
3586
  */
2080
3587
  reviewSnippets: GroundingChunk_Maps_PlaceAnswerSources_ReviewSnippet[];
2081
3588
 
2082
3589
  /**
3590
+ * A link where users can flag a problem with the generated answer.
3591
+ *
2083
3592
  * @generated from field: string flag_content_uri = 2;
2084
3593
  */
2085
3594
  flagContentUri: string;
2086
3595
  };
2087
3596
 
2088
3597
  /**
3598
+ * PlaceAnswerSources contains sources used to generate the place answer.
3599
+ *
2089
3600
  * @generated from message alis.adk.sessions.v1.GroundingChunk.Maps.PlaceAnswerSources
2090
3601
  */
2091
3602
  export declare type GroundingChunk_Maps_PlaceAnswerSourcesJson = {
2092
3603
  /**
3604
+ * Snippets of reviews that are used to generate the answer.
3605
+ *
2093
3606
  * @generated from field: repeated alis.adk.sessions.v1.GroundingChunk.Maps.PlaceAnswerSources.ReviewSnippet review_snippets = 1;
2094
3607
  */
2095
3608
  reviewSnippets?: GroundingChunk_Maps_PlaceAnswerSources_ReviewSnippetJson[];
2096
3609
 
2097
3610
  /**
3611
+ * A link where users can flag a problem with the generated answer.
3612
+ *
2098
3613
  * @generated from field: string flag_content_uri = 2;
2099
3614
  */
2100
3615
  flagContentUri?: string;
@@ -2107,70 +3622,104 @@ export declare type GroundingChunk_Maps_PlaceAnswerSourcesJson = {
2107
3622
  export declare const GroundingChunk_Maps_PlaceAnswerSourcesSchema: GenMessage<GroundingChunk_Maps_PlaceAnswerSources, {jsonType: GroundingChunk_Maps_PlaceAnswerSourcesJson}>;
2108
3623
 
2109
3624
  /**
3625
+ * ReviewSnippet encapsulates a review snippet.
3626
+ *
2110
3627
  * @generated from message alis.adk.sessions.v1.GroundingChunk.Maps.PlaceAnswerSources.ReviewSnippet
2111
3628
  */
2112
3629
  export declare type GroundingChunk_Maps_PlaceAnswerSources_ReviewSnippet = Message<"alis.adk.sessions.v1.GroundingChunk.Maps.PlaceAnswerSources.ReviewSnippet"> & {
2113
3630
  /**
3631
+ * ID of the review referencing the place.
3632
+ *
2114
3633
  * @generated from field: string review_id = 1;
2115
3634
  */
2116
3635
  reviewId: string;
2117
3636
 
2118
3637
  /**
3638
+ * A link to show the review on Google Maps.
3639
+ *
2119
3640
  * @generated from field: string google_maps_uri = 2;
2120
3641
  */
2121
3642
  googleMapsUri: string;
2122
3643
 
2123
3644
  /**
3645
+ * Title of the review.
3646
+ *
2124
3647
  * @generated from field: string title = 3;
2125
3648
  */
2126
3649
  title: string;
2127
3650
 
2128
3651
  /**
3652
+ * A reference representing this place review which may be used to look
3653
+ * up this place review again.
3654
+ *
2129
3655
  * @generated from field: string review = 4;
2130
3656
  */
2131
3657
  review: string;
2132
3658
 
2133
3659
  /**
3660
+ * A link where users can flag a problem with the generated answer.
3661
+ *
2134
3662
  * @generated from field: string flag_content_uri = 5;
2135
3663
  */
2136
3664
  flagContentUri: string;
2137
3665
 
2138
3666
  /**
3667
+ * A string of formatted recent time, expressing the review time
3668
+ * relative to the current time in a form appropriate for the language
3669
+ * and country.
3670
+ *
2139
3671
  * @generated from field: string relative_publish_time_description = 6;
2140
3672
  */
2141
3673
  relativePublishTimeDescription: string;
2142
3674
  };
2143
3675
 
2144
3676
  /**
3677
+ * ReviewSnippet encapsulates a review snippet.
3678
+ *
2145
3679
  * @generated from message alis.adk.sessions.v1.GroundingChunk.Maps.PlaceAnswerSources.ReviewSnippet
2146
3680
  */
2147
3681
  export declare type GroundingChunk_Maps_PlaceAnswerSources_ReviewSnippetJson = {
2148
3682
  /**
3683
+ * ID of the review referencing the place.
3684
+ *
2149
3685
  * @generated from field: string review_id = 1;
2150
3686
  */
2151
3687
  reviewId?: string;
2152
3688
 
2153
3689
  /**
3690
+ * A link to show the review on Google Maps.
3691
+ *
2154
3692
  * @generated from field: string google_maps_uri = 2;
2155
3693
  */
2156
3694
  googleMapsUri?: string;
2157
3695
 
2158
3696
  /**
3697
+ * Title of the review.
3698
+ *
2159
3699
  * @generated from field: string title = 3;
2160
3700
  */
2161
3701
  title?: string;
2162
3702
 
2163
3703
  /**
3704
+ * A reference representing this place review which may be used to look
3705
+ * up this place review again.
3706
+ *
2164
3707
  * @generated from field: string review = 4;
2165
3708
  */
2166
3709
  review?: string;
2167
3710
 
2168
3711
  /**
3712
+ * A link where users can flag a problem with the generated answer.
3713
+ *
2169
3714
  * @generated from field: string flag_content_uri = 5;
2170
3715
  */
2171
3716
  flagContentUri?: string;
2172
3717
 
2173
3718
  /**
3719
+ * A string of formatted recent time, expressing the review time
3720
+ * relative to the current time in a form appropriate for the language
3721
+ * and country.
3722
+ *
2174
3723
  * @generated from field: string relative_publish_time_description = 6;
2175
3724
  */
2176
3725
  relativePublishTimeDescription?: string;
@@ -2183,40 +3732,66 @@ export declare type GroundingChunk_Maps_PlaceAnswerSources_ReviewSnippetJson = {
2183
3732
  export declare const GroundingChunk_Maps_PlaceAnswerSources_ReviewSnippetSchema: GenMessage<GroundingChunk_Maps_PlaceAnswerSources_ReviewSnippet, {jsonType: GroundingChunk_Maps_PlaceAnswerSources_ReviewSnippetJson}>;
2184
3733
 
2185
3734
  /**
3735
+ * GroundingSupport represents grounding support for a claim in the content.
3736
+ *
2186
3737
  * @generated from message alis.adk.sessions.v1.GroundingSupport
2187
3738
  */
2188
3739
  export declare type GroundingSupport = Message<"alis.adk.sessions.v1.GroundingSupport"> & {
2189
3740
  /**
3741
+ * Optional. Segment of the content this support belongs to.
3742
+ *
2190
3743
  * @generated from field: alis.adk.sessions.v1.Segment segment = 1;
2191
3744
  */
2192
3745
  segment?: Segment | undefined;
2193
3746
 
2194
3747
  /**
3748
+ * A list of indices (into 'grounding_chunk') specifying the citations
3749
+ * associated with the claim. For instance [1,3,4] means that
3750
+ * grounding_chunk[1], grounding_chunk[3], grounding_chunk[4] are the
3751
+ * retrieved content attributed to the claim.
3752
+ *
2195
3753
  * @generated from field: repeated int32 grounding_chunk_indices = 2;
2196
3754
  */
2197
3755
  groundingChunkIndices: number[];
2198
3756
 
2199
3757
  /**
3758
+ * Confidence score of the support references. Ranges from 0 to 1. 1 is the
3759
+ * most confident. This list must have the same size as the
3760
+ * grounding_chunk_indices.
3761
+ *
2200
3762
  * @generated from field: repeated float confidence_scores = 3;
2201
3763
  */
2202
3764
  confidenceScores: number[];
2203
3765
  };
2204
3766
 
2205
3767
  /**
3768
+ * GroundingSupport represents grounding support for a claim in the content.
3769
+ *
2206
3770
  * @generated from message alis.adk.sessions.v1.GroundingSupport
2207
3771
  */
2208
3772
  export declare type GroundingSupportJson = {
2209
3773
  /**
3774
+ * Optional. Segment of the content this support belongs to.
3775
+ *
2210
3776
  * @generated from field: alis.adk.sessions.v1.Segment segment = 1;
2211
3777
  */
2212
3778
  segment?: SegmentJson;
2213
3779
 
2214
3780
  /**
3781
+ * A list of indices (into 'grounding_chunk') specifying the citations
3782
+ * associated with the claim. For instance [1,3,4] means that
3783
+ * grounding_chunk[1], grounding_chunk[3], grounding_chunk[4] are the
3784
+ * retrieved content attributed to the claim.
3785
+ *
2215
3786
  * @generated from field: repeated int32 grounding_chunk_indices = 2;
2216
3787
  */
2217
3788
  groundingChunkIndices?: number[];
2218
3789
 
2219
3790
  /**
3791
+ * Confidence score of the support references. Ranges from 0 to 1. 1 is the
3792
+ * most confident. This list must have the same size as the
3793
+ * grounding_chunk_indices.
3794
+ *
2220
3795
  * @generated from field: repeated float confidence_scores = 3;
2221
3796
  */
2222
3797
  confidenceScores?: (number | "NaN" | "Infinity" | "-Infinity")[];
@@ -2229,50 +3804,74 @@ export declare type GroundingSupportJson = {
2229
3804
  export declare const GroundingSupportSchema: GenMessage<GroundingSupport, {jsonType: GroundingSupportJson}>;
2230
3805
 
2231
3806
  /**
3807
+ * Segment represents a segment of the content.
3808
+ *
2232
3809
  * @generated from message alis.adk.sessions.v1.Segment
2233
3810
  */
2234
3811
  export declare type Segment = Message<"alis.adk.sessions.v1.Segment"> & {
2235
3812
  /**
3813
+ * Output only. The index of a Part object within its parent Content object.
3814
+ *
2236
3815
  * @generated from field: int32 part_index = 1;
2237
3816
  */
2238
3817
  partIndex: number;
2239
3818
 
2240
3819
  /**
3820
+ * Output only. Start index in the given Part, measured in bytes. Offset from
3821
+ * the start of the Part, inclusive, starting at zero.
3822
+ *
2241
3823
  * @generated from field: int32 start_index = 2;
2242
3824
  */
2243
3825
  startIndex: number;
2244
3826
 
2245
3827
  /**
3828
+ * Output only. End index in the given Part, measured in bytes. Offset from
3829
+ * the start of the Part, exclusive, starting at zero.
3830
+ *
2246
3831
  * @generated from field: int32 end_index = 3;
2247
3832
  */
2248
3833
  endIndex: number;
2249
3834
 
2250
3835
  /**
3836
+ * Output only. The text corresponding to the segment from the response.
3837
+ *
2251
3838
  * @generated from field: string text = 4;
2252
3839
  */
2253
3840
  text: string;
2254
3841
  };
2255
3842
 
2256
3843
  /**
3844
+ * Segment represents a segment of the content.
3845
+ *
2257
3846
  * @generated from message alis.adk.sessions.v1.Segment
2258
3847
  */
2259
3848
  export declare type SegmentJson = {
2260
3849
  /**
3850
+ * Output only. The index of a Part object within its parent Content object.
3851
+ *
2261
3852
  * @generated from field: int32 part_index = 1;
2262
3853
  */
2263
3854
  partIndex?: number;
2264
3855
 
2265
3856
  /**
3857
+ * Output only. Start index in the given Part, measured in bytes. Offset from
3858
+ * the start of the Part, inclusive, starting at zero.
3859
+ *
2266
3860
  * @generated from field: int32 start_index = 2;
2267
3861
  */
2268
3862
  startIndex?: number;
2269
3863
 
2270
3864
  /**
3865
+ * Output only. End index in the given Part, measured in bytes. Offset from
3866
+ * the start of the Part, exclusive, starting at zero.
3867
+ *
2271
3868
  * @generated from field: int32 end_index = 3;
2272
3869
  */
2273
3870
  endIndex?: number;
2274
3871
 
2275
3872
  /**
3873
+ * Output only. The text corresponding to the segment from the response.
3874
+ *
2276
3875
  * @generated from field: string text = 4;
2277
3876
  */
2278
3877
  text?: string;
@@ -2285,30 +3884,46 @@ export declare type SegmentJson = {
2285
3884
  export declare const SegmentSchema: GenMessage<Segment, {jsonType: SegmentJson}>;
2286
3885
 
2287
3886
  /**
3887
+ * SearchEntryPoint represents a Google search entry point.
3888
+ *
2288
3889
  * @generated from message alis.adk.sessions.v1.SearchEntryPoint
2289
3890
  */
2290
3891
  export declare type SearchEntryPoint = Message<"alis.adk.sessions.v1.SearchEntryPoint"> & {
2291
3892
  /**
3893
+ * Optional. Web content snippet that can be embedded in a web page or an app
3894
+ * webview.
3895
+ *
2292
3896
  * @generated from field: string rendered_content = 1;
2293
3897
  */
2294
3898
  renderedContent: string;
2295
3899
 
2296
3900
  /**
3901
+ * Optional. Base64 encoded JSON representing array of <search term, search
3902
+ * url> tuple.
3903
+ *
2297
3904
  * @generated from field: bytes sdk_blob = 2;
2298
3905
  */
2299
3906
  sdkBlob: Uint8Array;
2300
3907
  };
2301
3908
 
2302
3909
  /**
3910
+ * SearchEntryPoint represents a Google search entry point.
3911
+ *
2303
3912
  * @generated from message alis.adk.sessions.v1.SearchEntryPoint
2304
3913
  */
2305
3914
  export declare type SearchEntryPointJson = {
2306
3915
  /**
3916
+ * Optional. Web content snippet that can be embedded in a web page or an app
3917
+ * webview.
3918
+ *
2307
3919
  * @generated from field: string rendered_content = 1;
2308
3920
  */
2309
3921
  renderedContent?: string;
2310
3922
 
2311
3923
  /**
3924
+ * Optional. Base64 encoded JSON representing array of <search term, search
3925
+ * url> tuple.
3926
+ *
2312
3927
  * @generated from field: bytes sdk_blob = 2;
2313
3928
  */
2314
3929
  sdkBlob?: string;
@@ -2321,20 +3936,38 @@ export declare type SearchEntryPointJson = {
2321
3936
  export declare const SearchEntryPointSchema: GenMessage<SearchEntryPoint, {jsonType: SearchEntryPointJson}>;
2322
3937
 
2323
3938
  /**
3939
+ * RetrievalMetadata contains metadata related to retrieval in the grounding
3940
+ * flow.
3941
+ *
2324
3942
  * @generated from message alis.adk.sessions.v1.RetrievalMetadata
2325
3943
  */
2326
3944
  export declare type RetrievalMetadata = Message<"alis.adk.sessions.v1.RetrievalMetadata"> & {
2327
3945
  /**
3946
+ * Optional. Score indicating how likely information from Google Search could
3947
+ * help answer the prompt. The score is in the range [0, 1], where 0 is the
3948
+ * least likely and 1 is the most likely. This score is only populated when
3949
+ * Google Search grounding and dynamic retrieval is enabled. It will be
3950
+ * compared to the threshold to determine whether to trigger Google Search.
3951
+ *
2328
3952
  * @generated from field: float google_search_dynamic_retrieval_score = 2;
2329
3953
  */
2330
3954
  googleSearchDynamicRetrievalScore: number;
2331
3955
  };
2332
3956
 
2333
3957
  /**
3958
+ * RetrievalMetadata contains metadata related to retrieval in the grounding
3959
+ * flow.
3960
+ *
2334
3961
  * @generated from message alis.adk.sessions.v1.RetrievalMetadata
2335
3962
  */
2336
3963
  export declare type RetrievalMetadataJson = {
2337
3964
  /**
3965
+ * Optional. Score indicating how likely information from Google Search could
3966
+ * help answer the prompt. The score is in the range [0, 1], where 0 is the
3967
+ * least likely and 1 is the most likely. This score is only populated when
3968
+ * Google Search grounding and dynamic retrieval is enabled. It will be
3969
+ * compared to the threshold to determine whether to trigger Google Search.
3970
+ *
2338
3971
  * @generated from field: float google_search_dynamic_retrieval_score = 2;
2339
3972
  */
2340
3973
  googleSearchDynamicRetrievalScore?: number | "NaN" | "Infinity" | "-Infinity";
@@ -2347,30 +3980,46 @@ export declare type RetrievalMetadataJson = {
2347
3980
  export declare const RetrievalMetadataSchema: GenMessage<RetrievalMetadata, {jsonType: RetrievalMetadataJson}>;
2348
3981
 
2349
3982
  /**
3983
+ * RagChunk includes the content of a chunk of a RagFile, and associated
3984
+ * metadata.
3985
+ *
2350
3986
  * @generated from message alis.adk.sessions.v1.RagChunk
2351
3987
  */
2352
3988
  export declare type RagChunk = Message<"alis.adk.sessions.v1.RagChunk"> & {
2353
3989
  /**
3990
+ * The content of the chunk.
3991
+ *
2354
3992
  * @generated from field: string text = 1;
2355
3993
  */
2356
3994
  text: string;
2357
3995
 
2358
3996
  /**
3997
+ * Optional. If populated, represents where the chunk starts and ends in the
3998
+ * document.
3999
+ *
2359
4000
  * @generated from field: alis.adk.sessions.v1.RagChunk.PageSpan page_span = 2;
2360
4001
  */
2361
4002
  pageSpan?: RagChunk_PageSpan | undefined;
2362
4003
  };
2363
4004
 
2364
4005
  /**
4006
+ * RagChunk includes the content of a chunk of a RagFile, and associated
4007
+ * metadata.
4008
+ *
2365
4009
  * @generated from message alis.adk.sessions.v1.RagChunk
2366
4010
  */
2367
4011
  export declare type RagChunkJson = {
2368
4012
  /**
4013
+ * The content of the chunk.
4014
+ *
2369
4015
  * @generated from field: string text = 1;
2370
4016
  */
2371
4017
  text?: string;
2372
4018
 
2373
4019
  /**
4020
+ * Optional. If populated, represents where the chunk starts and ends in the
4021
+ * document.
4022
+ *
2374
4023
  * @generated from field: alis.adk.sessions.v1.RagChunk.PageSpan page_span = 2;
2375
4024
  */
2376
4025
  pageSpan?: RagChunk_PageSpanJson;
@@ -2383,30 +4032,42 @@ export declare type RagChunkJson = {
2383
4032
  export declare const RagChunkSchema: GenMessage<RagChunk, {jsonType: RagChunkJson}>;
2384
4033
 
2385
4034
  /**
4035
+ * PageSpan represents where the chunk starts and ends in the document.
4036
+ *
2386
4037
  * @generated from message alis.adk.sessions.v1.RagChunk.PageSpan
2387
4038
  */
2388
4039
  export declare type RagChunk_PageSpan = Message<"alis.adk.sessions.v1.RagChunk.PageSpan"> & {
2389
4040
  /**
4041
+ * Page where chunk starts in the document. Inclusive. 1-indexed.
4042
+ *
2390
4043
  * @generated from field: int32 first_page = 1;
2391
4044
  */
2392
4045
  firstPage: number;
2393
4046
 
2394
4047
  /**
4048
+ * Page where chunk ends in the document. Inclusive. 1-indexed.
4049
+ *
2395
4050
  * @generated from field: int32 last_page = 2;
2396
4051
  */
2397
4052
  lastPage: number;
2398
4053
  };
2399
4054
 
2400
4055
  /**
4056
+ * PageSpan represents where the chunk starts and ends in the document.
4057
+ *
2401
4058
  * @generated from message alis.adk.sessions.v1.RagChunk.PageSpan
2402
4059
  */
2403
4060
  export declare type RagChunk_PageSpanJson = {
2404
4061
  /**
4062
+ * Page where chunk starts in the document. Inclusive. 1-indexed.
4063
+ *
2405
4064
  * @generated from field: int32 first_page = 1;
2406
4065
  */
2407
4066
  firstPage?: number;
2408
4067
 
2409
4068
  /**
4069
+ * Page where chunk ends in the document. Inclusive. 1-indexed.
4070
+ *
2410
4071
  * @generated from field: int32 last_page = 2;
2411
4072
  */
2412
4073
  lastPage?: number;
@@ -2419,120 +4080,194 @@ export declare type RagChunk_PageSpanJson = {
2419
4080
  export declare const RagChunk_PageSpanSchema: GenMessage<RagChunk_PageSpan, {jsonType: RagChunk_PageSpanJson}>;
2420
4081
 
2421
4082
  /**
4083
+ * UsageMetadata contains token accounting details for a model request and
4084
+ * response.
4085
+ *
2422
4086
  * @generated from message alis.adk.sessions.v1.UsageMetadata
2423
4087
  */
2424
4088
  export declare type UsageMetadata = Message<"alis.adk.sessions.v1.UsageMetadata"> & {
2425
4089
  /**
4090
+ * Output only. A detailed breakdown of the token count for each modality in
4091
+ * the cached content.
4092
+ *
2426
4093
  * @generated from field: repeated alis.adk.sessions.v1.ModalityTokenCount cache_tokens_details = 1;
2427
4094
  */
2428
4095
  cacheTokensDetails: ModalityTokenCount[];
2429
4096
 
2430
4097
  /**
4098
+ * Output only. The number of tokens in the cached content that was used for
4099
+ * this request.
4100
+ *
2431
4101
  * @generated from field: int32 cached_content_token_count = 2;
2432
4102
  */
2433
4103
  cachedContentTokenCount: number;
2434
4104
 
2435
4105
  /**
4106
+ * The total number of tokens in the generated candidates. This includes all
4107
+ * the generated response candidates.
4108
+ *
2436
4109
  * @generated from field: int32 candidates_token_count = 3;
2437
4110
  */
2438
4111
  candidatesTokenCount: number;
2439
4112
 
2440
4113
  /**
4114
+ * Output only. A detailed breakdown of the token count for each modality in
4115
+ * the generated candidates.
4116
+ *
2441
4117
  * @generated from field: repeated alis.adk.sessions.v1.ModalityTokenCount candidates_tokens_details = 4;
2442
4118
  */
2443
4119
  candidatesTokensDetails: ModalityTokenCount[];
2444
4120
 
2445
4121
  /**
4122
+ * Number of tokens in the prompt. When cached_content is set, this is still
4123
+ * the total effective prompt size meaning this includes the number of tokens
4124
+ * in the cached content.
4125
+ *
2446
4126
  * @generated from field: int32 prompt_token_count = 5;
2447
4127
  */
2448
4128
  promptTokenCount: number;
2449
4129
 
2450
4130
  /**
4131
+ * Output only. A detailed breakdown of the token count for each modality in
4132
+ * the prompt.
4133
+ *
2451
4134
  * @generated from field: repeated alis.adk.sessions.v1.ModalityTokenCount prompt_tokens_details = 6;
2452
4135
  */
2453
4136
  promptTokensDetails: ModalityTokenCount[];
2454
4137
 
2455
4138
  /**
4139
+ * Output only. The number of tokens that were part of the model's generated
4140
+ * "thoughts" output, if applicable.
4141
+ *
2456
4142
  * @generated from field: int32 thoughts_token_count = 7;
2457
4143
  */
2458
4144
  thoughtsTokenCount: number;
2459
4145
 
2460
4146
  /**
4147
+ * Output only. The number of tokens in the results from tool executions,
4148
+ * which are provided back to the model as input, if applicable.
4149
+ *
2461
4150
  * @generated from field: int32 tool_use_prompt_token_count = 8;
2462
4151
  */
2463
4152
  toolUsePromptTokenCount: number;
2464
4153
 
2465
4154
  /**
4155
+ * Output only. A detailed breakdown by modality of the token counts from the
4156
+ * results of tool executions, which are provided back to the model as input.
4157
+ *
2466
4158
  * @generated from field: repeated alis.adk.sessions.v1.ModalityTokenCount tool_use_prompt_tokens_details = 9;
2467
4159
  */
2468
4160
  toolUsePromptTokensDetails: ModalityTokenCount[];
2469
4161
 
2470
4162
  /**
4163
+ * The total number of tokens for the entire request. This is the sum of
4164
+ * `prompt_token_count`, `candidates_token_count`,
4165
+ * `tool_use_prompt_token_count`, and `thoughts_token_count`.
4166
+ *
2471
4167
  * @generated from field: int32 total_token_count = 10;
2472
4168
  */
2473
4169
  totalTokenCount: number;
2474
4170
 
2475
4171
  /**
4172
+ * Output only. The traffic type for this request.
4173
+ *
2476
4174
  * @generated from field: alis.adk.sessions.v1.TrafficType traffic_type = 11;
2477
4175
  */
2478
4176
  trafficType: TrafficType;
2479
4177
  };
2480
4178
 
2481
4179
  /**
4180
+ * UsageMetadata contains token accounting details for a model request and
4181
+ * response.
4182
+ *
2482
4183
  * @generated from message alis.adk.sessions.v1.UsageMetadata
2483
4184
  */
2484
4185
  export declare type UsageMetadataJson = {
2485
4186
  /**
4187
+ * Output only. A detailed breakdown of the token count for each modality in
4188
+ * the cached content.
4189
+ *
2486
4190
  * @generated from field: repeated alis.adk.sessions.v1.ModalityTokenCount cache_tokens_details = 1;
2487
4191
  */
2488
4192
  cacheTokensDetails?: ModalityTokenCountJson[];
2489
4193
 
2490
4194
  /**
4195
+ * Output only. The number of tokens in the cached content that was used for
4196
+ * this request.
4197
+ *
2491
4198
  * @generated from field: int32 cached_content_token_count = 2;
2492
4199
  */
2493
4200
  cachedContentTokenCount?: number;
2494
4201
 
2495
4202
  /**
4203
+ * The total number of tokens in the generated candidates. This includes all
4204
+ * the generated response candidates.
4205
+ *
2496
4206
  * @generated from field: int32 candidates_token_count = 3;
2497
4207
  */
2498
4208
  candidatesTokenCount?: number;
2499
4209
 
2500
4210
  /**
4211
+ * Output only. A detailed breakdown of the token count for each modality in
4212
+ * the generated candidates.
4213
+ *
2501
4214
  * @generated from field: repeated alis.adk.sessions.v1.ModalityTokenCount candidates_tokens_details = 4;
2502
4215
  */
2503
4216
  candidatesTokensDetails?: ModalityTokenCountJson[];
2504
4217
 
2505
4218
  /**
4219
+ * Number of tokens in the prompt. When cached_content is set, this is still
4220
+ * the total effective prompt size meaning this includes the number of tokens
4221
+ * in the cached content.
4222
+ *
2506
4223
  * @generated from field: int32 prompt_token_count = 5;
2507
4224
  */
2508
4225
  promptTokenCount?: number;
2509
4226
 
2510
4227
  /**
4228
+ * Output only. A detailed breakdown of the token count for each modality in
4229
+ * the prompt.
4230
+ *
2511
4231
  * @generated from field: repeated alis.adk.sessions.v1.ModalityTokenCount prompt_tokens_details = 6;
2512
4232
  */
2513
4233
  promptTokensDetails?: ModalityTokenCountJson[];
2514
4234
 
2515
4235
  /**
4236
+ * Output only. The number of tokens that were part of the model's generated
4237
+ * "thoughts" output, if applicable.
4238
+ *
2516
4239
  * @generated from field: int32 thoughts_token_count = 7;
2517
4240
  */
2518
4241
  thoughtsTokenCount?: number;
2519
4242
 
2520
4243
  /**
4244
+ * Output only. The number of tokens in the results from tool executions,
4245
+ * which are provided back to the model as input, if applicable.
4246
+ *
2521
4247
  * @generated from field: int32 tool_use_prompt_token_count = 8;
2522
4248
  */
2523
4249
  toolUsePromptTokenCount?: number;
2524
4250
 
2525
4251
  /**
4252
+ * Output only. A detailed breakdown by modality of the token counts from the
4253
+ * results of tool executions, which are provided back to the model as input.
4254
+ *
2526
4255
  * @generated from field: repeated alis.adk.sessions.v1.ModalityTokenCount tool_use_prompt_tokens_details = 9;
2527
4256
  */
2528
4257
  toolUsePromptTokensDetails?: ModalityTokenCountJson[];
2529
4258
 
2530
4259
  /**
4260
+ * The total number of tokens for the entire request. This is the sum of
4261
+ * `prompt_token_count`, `candidates_token_count`,
4262
+ * `tool_use_prompt_token_count`, and `thoughts_token_count`.
4263
+ *
2531
4264
  * @generated from field: int32 total_token_count = 10;
2532
4265
  */
2533
4266
  totalTokenCount?: number;
2534
4267
 
2535
4268
  /**
4269
+ * Output only. The traffic type for this request.
4270
+ *
2536
4271
  * @generated from field: alis.adk.sessions.v1.TrafficType traffic_type = 11;
2537
4272
  */
2538
4273
  trafficType?: TrafficTypeJson;
@@ -2545,30 +4280,42 @@ export declare type UsageMetadataJson = {
2545
4280
  export declare const UsageMetadataSchema: GenMessage<UsageMetadata, {jsonType: UsageMetadataJson}>;
2546
4281
 
2547
4282
  /**
4283
+ * Represents token counting info for a single modality.
4284
+ *
2548
4285
  * @generated from message alis.adk.sessions.v1.ModalityTokenCount
2549
4286
  */
2550
4287
  export declare type ModalityTokenCount = Message<"alis.adk.sessions.v1.ModalityTokenCount"> & {
2551
4288
  /**
4289
+ * Optional. The modality associated with this token count.
4290
+ *
2552
4291
  * @generated from field: alis.adk.sessions.v1.MediaModality modality = 1;
2553
4292
  */
2554
4293
  modality: MediaModality;
2555
4294
 
2556
4295
  /**
4296
+ * Number of tokens.
4297
+ *
2557
4298
  * @generated from field: int32 token_count = 2;
2558
4299
  */
2559
4300
  tokenCount: number;
2560
4301
  };
2561
4302
 
2562
4303
  /**
4304
+ * Represents token counting info for a single modality.
4305
+ *
2563
4306
  * @generated from message alis.adk.sessions.v1.ModalityTokenCount
2564
4307
  */
2565
4308
  export declare type ModalityTokenCountJson = {
2566
4309
  /**
4310
+ * Optional. The modality associated with this token count.
4311
+ *
2567
4312
  * @generated from field: alis.adk.sessions.v1.MediaModality modality = 1;
2568
4313
  */
2569
4314
  modality?: MediaModalityJson;
2570
4315
 
2571
4316
  /**
4317
+ * Number of tokens.
4318
+ *
2572
4319
  * @generated from field: int32 token_count = 2;
2573
4320
  */
2574
4321
  tokenCount?: number;
@@ -2581,20 +4328,34 @@ export declare type ModalityTokenCountJson = {
2581
4328
  export declare const ModalityTokenCountSchema: GenMessage<ModalityTokenCount, {jsonType: ModalityTokenCountJson}>;
2582
4329
 
2583
4330
  /**
4331
+ * CitationMetadata contains citation details for sourced or quoted content in
4332
+ * a model response.
4333
+ *
2584
4334
  * @generated from message alis.adk.sessions.v1.CitationMetadata
2585
4335
  */
2586
4336
  export declare type CitationMetadata = Message<"alis.adk.sessions.v1.CitationMetadata"> & {
2587
4337
  /**
4338
+ * Optional. Contains citation information when the model directly quotes, at
4339
+ * length, from another source. Can include traditional websites and code
4340
+ * repositories.
4341
+ *
2588
4342
  * @generated from field: repeated alis.adk.sessions.v1.CitationMetadata.Citation citations = 1;
2589
4343
  */
2590
4344
  citations: CitationMetadata_Citation[];
2591
4345
  };
2592
4346
 
2593
4347
  /**
4348
+ * CitationMetadata contains citation details for sourced or quoted content in
4349
+ * a model response.
4350
+ *
2594
4351
  * @generated from message alis.adk.sessions.v1.CitationMetadata
2595
4352
  */
2596
4353
  export declare type CitationMetadataJson = {
2597
4354
  /**
4355
+ * Optional. Contains citation information when the model directly quotes, at
4356
+ * length, from another source. Can include traditional websites and code
4357
+ * repositories.
4358
+ *
2598
4359
  * @generated from field: repeated alis.adk.sessions.v1.CitationMetadata.Citation citations = 1;
2599
4360
  */
2600
4361
  citations?: CitationMetadata_CitationJson[];
@@ -2607,70 +4368,98 @@ export declare type CitationMetadataJson = {
2607
4368
  export declare const CitationMetadataSchema: GenMessage<CitationMetadata, {jsonType: CitationMetadataJson}>;
2608
4369
 
2609
4370
  /**
4371
+ * Citation information when the model quotes another source.
4372
+ *
2610
4373
  * @generated from message alis.adk.sessions.v1.CitationMetadata.Citation
2611
4374
  */
2612
4375
  export declare type CitationMetadata_Citation = Message<"alis.adk.sessions.v1.CitationMetadata.Citation"> & {
2613
4376
  /**
4377
+ * Output only. End index into the content.
4378
+ *
2614
4379
  * @generated from field: int32 end_index = 1;
2615
4380
  */
2616
4381
  endIndex: number;
2617
4382
 
2618
4383
  /**
4384
+ * Output only. License of the attribution.
4385
+ *
2619
4386
  * @generated from field: string license = 2;
2620
4387
  */
2621
4388
  license: string;
2622
4389
 
2623
4390
  /**
4391
+ * Output only. Publication date of the attribution.
4392
+ *
2624
4393
  * @generated from field: google.type.Date publication_date = 3;
2625
4394
  */
2626
4395
  publicationDate?: Date | undefined;
2627
4396
 
2628
4397
  /**
4398
+ * Output only. Start index into the content.
4399
+ *
2629
4400
  * @generated from field: int32 start_index = 4;
2630
4401
  */
2631
4402
  startIndex: number;
2632
4403
 
2633
4404
  /**
4405
+ * Output only. Title of the attribution.
4406
+ *
2634
4407
  * @generated from field: string title = 5;
2635
4408
  */
2636
4409
  title: string;
2637
4410
 
2638
4411
  /**
4412
+ * Output only. URL reference of the attribution.
4413
+ *
2639
4414
  * @generated from field: string uri = 6;
2640
4415
  */
2641
4416
  uri: string;
2642
4417
  };
2643
4418
 
2644
4419
  /**
4420
+ * Citation information when the model quotes another source.
4421
+ *
2645
4422
  * @generated from message alis.adk.sessions.v1.CitationMetadata.Citation
2646
4423
  */
2647
4424
  export declare type CitationMetadata_CitationJson = {
2648
4425
  /**
4426
+ * Output only. End index into the content.
4427
+ *
2649
4428
  * @generated from field: int32 end_index = 1;
2650
4429
  */
2651
4430
  endIndex?: number;
2652
4431
 
2653
4432
  /**
4433
+ * Output only. License of the attribution.
4434
+ *
2654
4435
  * @generated from field: string license = 2;
2655
4436
  */
2656
4437
  license?: string;
2657
4438
 
2658
4439
  /**
4440
+ * Output only. Publication date of the attribution.
4441
+ *
2659
4442
  * @generated from field: google.type.Date publication_date = 3;
2660
4443
  */
2661
4444
  publicationDate?: DateJson;
2662
4445
 
2663
4446
  /**
4447
+ * Output only. Start index into the content.
4448
+ *
2664
4449
  * @generated from field: int32 start_index = 4;
2665
4450
  */
2666
4451
  startIndex?: number;
2667
4452
 
2668
4453
  /**
4454
+ * Output only. Title of the attribution.
4455
+ *
2669
4456
  * @generated from field: string title = 5;
2670
4457
  */
2671
4458
  title?: string;
2672
4459
 
2673
4460
  /**
4461
+ * Output only. URL reference of the attribution.
4462
+ *
2674
4463
  * @generated from field: string uri = 6;
2675
4464
  */
2676
4465
  uri?: string;
@@ -2683,40 +4472,66 @@ export declare type CitationMetadata_CitationJson = {
2683
4472
  export declare const CitationMetadata_CitationSchema: GenMessage<CitationMetadata_Citation, {jsonType: CitationMetadata_CitationJson}>;
2684
4473
 
2685
4474
  /**
4475
+ * ToolConfirmation represents a confirmation request for a tool execution.
4476
+ *
2686
4477
  * @generated from message alis.adk.sessions.v1.ToolConfirmation
2687
4478
  */
2688
4479
  export declare type ToolConfirmation = Message<"alis.adk.sessions.v1.ToolConfirmation"> & {
2689
4480
  /**
4481
+ * Hint is the message provided to the user to explain why the confirmation
4482
+ * is needed and what action is being confirmed.
4483
+ *
2690
4484
  * @generated from field: string hint = 1;
2691
4485
  */
2692
4486
  hint: string;
2693
4487
 
2694
4488
  /**
4489
+ * Confirmed indicates the user's decision.
4490
+ * true if the user approved the action, false if they denied it.
4491
+ * The state before the user has responded is typically handled outside
4492
+ * this struct (e.g., by the absence of a result or a pending status).
4493
+ *
2695
4494
  * @generated from field: bool confirmed = 2;
2696
4495
  */
2697
4496
  confirmed: boolean;
2698
4497
 
2699
4498
  /**
4499
+ * Payload contains any additional data or context related to the confirmation
4500
+ * request. The structure of the Payload is application-specific.
4501
+ *
2700
4502
  * @generated from field: google.protobuf.Value payload = 3;
2701
4503
  */
2702
4504
  payload?: Value | undefined;
2703
4505
  };
2704
4506
 
2705
4507
  /**
4508
+ * ToolConfirmation represents a confirmation request for a tool execution.
4509
+ *
2706
4510
  * @generated from message alis.adk.sessions.v1.ToolConfirmation
2707
4511
  */
2708
4512
  export declare type ToolConfirmationJson = {
2709
4513
  /**
4514
+ * Hint is the message provided to the user to explain why the confirmation
4515
+ * is needed and what action is being confirmed.
4516
+ *
2710
4517
  * @generated from field: string hint = 1;
2711
4518
  */
2712
4519
  hint?: string;
2713
4520
 
2714
4521
  /**
4522
+ * Confirmed indicates the user's decision.
4523
+ * true if the user approved the action, false if they denied it.
4524
+ * The state before the user has responded is typically handled outside
4525
+ * this struct (e.g., by the absence of a result or a pending status).
4526
+ *
2715
4527
  * @generated from field: bool confirmed = 2;
2716
4528
  */
2717
4529
  confirmed?: boolean;
2718
4530
 
2719
4531
  /**
4532
+ * Payload contains any additional data or context related to the confirmation
4533
+ * request. The structure of the Payload is application-specific.
4534
+ *
2720
4535
  * @generated from field: google.protobuf.Value payload = 3;
2721
4536
  */
2722
4537
  payload?: ValueJson;
@@ -2729,40 +4544,56 @@ export declare type ToolConfirmationJson = {
2729
4544
  export declare const ToolConfirmationSchema: GenMessage<ToolConfirmation, {jsonType: ToolConfirmationJson}>;
2730
4545
 
2731
4546
  /**
4547
+ * LogprobsResultCandidate represents a candidate for a logprobs result.
4548
+ *
2732
4549
  * @generated from message alis.adk.sessions.v1.LogprobsResultCandidate
2733
4550
  */
2734
4551
  export declare type LogprobsResultCandidate = Message<"alis.adk.sessions.v1.LogprobsResultCandidate"> & {
2735
4552
  /**
4553
+ * The candidate's log probability.
4554
+ *
2736
4555
  * @generated from field: float log_probability = 1;
2737
4556
  */
2738
4557
  logProbability: number;
2739
4558
 
2740
4559
  /**
4560
+ * The candidate's token string value.
4561
+ *
2741
4562
  * @generated from field: string token = 2;
2742
4563
  */
2743
4564
  token: string;
2744
4565
 
2745
4566
  /**
4567
+ * The candidate's token ID value.
4568
+ *
2746
4569
  * @generated from field: int32 token_id = 3;
2747
4570
  */
2748
4571
  tokenId: number;
2749
4572
  };
2750
4573
 
2751
4574
  /**
4575
+ * LogprobsResultCandidate represents a candidate for a logprobs result.
4576
+ *
2752
4577
  * @generated from message alis.adk.sessions.v1.LogprobsResultCandidate
2753
4578
  */
2754
4579
  export declare type LogprobsResultCandidateJson = {
2755
4580
  /**
4581
+ * The candidate's log probability.
4582
+ *
2756
4583
  * @generated from field: float log_probability = 1;
2757
4584
  */
2758
4585
  logProbability?: number | "NaN" | "Infinity" | "-Infinity";
2759
4586
 
2760
4587
  /**
4588
+ * The candidate's token string value.
4589
+ *
2761
4590
  * @generated from field: string token = 2;
2762
4591
  */
2763
4592
  token?: string;
2764
4593
 
2765
4594
  /**
4595
+ * The candidate's token ID value.
4596
+ *
2766
4597
  * @generated from field: int32 token_id = 3;
2767
4598
  */
2768
4599
  tokenId?: number;
@@ -2775,20 +4606,28 @@ export declare type LogprobsResultCandidateJson = {
2775
4606
  export declare const LogprobsResultCandidateSchema: GenMessage<LogprobsResultCandidate, {jsonType: LogprobsResultCandidateJson}>;
2776
4607
 
2777
4608
  /**
4609
+ * LogprobsResultTopCandidates represents the top candidates for a logprobs result.
4610
+ *
2778
4611
  * @generated from message alis.adk.sessions.v1.LogprobsResultTopCandidates
2779
4612
  */
2780
4613
  export declare type LogprobsResultTopCandidates = Message<"alis.adk.sessions.v1.LogprobsResultTopCandidates"> & {
2781
4614
  /**
4615
+ * Sorted by log probability in descending order.
4616
+ *
2782
4617
  * @generated from field: repeated alis.adk.sessions.v1.LogprobsResultCandidate candidates = 1;
2783
4618
  */
2784
4619
  candidates: LogprobsResultCandidate[];
2785
4620
  };
2786
4621
 
2787
4622
  /**
4623
+ * LogprobsResultTopCandidates represents the top candidates for a logprobs result.
4624
+ *
2788
4625
  * @generated from message alis.adk.sessions.v1.LogprobsResultTopCandidates
2789
4626
  */
2790
4627
  export declare type LogprobsResultTopCandidatesJson = {
2791
4628
  /**
4629
+ * Sorted by log probability in descending order.
4630
+ *
2792
4631
  * @generated from field: repeated alis.adk.sessions.v1.LogprobsResultCandidate candidates = 1;
2793
4632
  */
2794
4633
  candidates?: LogprobsResultCandidateJson[];
@@ -2801,30 +4640,44 @@ export declare type LogprobsResultTopCandidatesJson = {
2801
4640
  export declare const LogprobsResultTopCandidatesSchema: GenMessage<LogprobsResultTopCandidates, {jsonType: LogprobsResultTopCandidatesJson}>;
2802
4641
 
2803
4642
  /**
4643
+ * LogprobsResult represents the logprobs result for a model response.
4644
+ *
2804
4645
  * @generated from message alis.adk.sessions.v1.LogprobsResult
2805
4646
  */
2806
4647
  export declare type LogprobsResult = Message<"alis.adk.sessions.v1.LogprobsResult"> & {
2807
4648
  /**
4649
+ * Length = total number of decoding steps. The chosen candidates may or may
4650
+ * not be in top_candidates.
4651
+ *
2808
4652
  * @generated from field: repeated alis.adk.sessions.v1.LogprobsResultCandidate chosen_candidates = 1;
2809
4653
  */
2810
4654
  chosenCandidates: LogprobsResultCandidate[];
2811
4655
 
2812
4656
  /**
4657
+ * Length = total number of decoding steps.
4658
+ *
2813
4659
  * @generated from field: repeated alis.adk.sessions.v1.LogprobsResultTopCandidates top_candidates = 2;
2814
4660
  */
2815
4661
  topCandidates: LogprobsResultTopCandidates[];
2816
4662
  };
2817
4663
 
2818
4664
  /**
4665
+ * LogprobsResult represents the logprobs result for a model response.
4666
+ *
2819
4667
  * @generated from message alis.adk.sessions.v1.LogprobsResult
2820
4668
  */
2821
4669
  export declare type LogprobsResultJson = {
2822
4670
  /**
4671
+ * Length = total number of decoding steps. The chosen candidates may or may
4672
+ * not be in top_candidates.
4673
+ *
2823
4674
  * @generated from field: repeated alis.adk.sessions.v1.LogprobsResultCandidate chosen_candidates = 1;
2824
4675
  */
2825
4676
  chosenCandidates?: LogprobsResultCandidateJson[];
2826
4677
 
2827
4678
  /**
4679
+ * Length = total number of decoding steps.
4680
+ *
2828
4681
  * @generated from field: repeated alis.adk.sessions.v1.LogprobsResultTopCandidates top_candidates = 2;
2829
4682
  */
2830
4683
  topCandidates?: LogprobsResultTopCandidatesJson[];
@@ -2837,41 +4690,57 @@ export declare type LogprobsResultJson = {
2837
4690
  export declare const LogprobsResultSchema: GenMessage<LogprobsResult, {jsonType: LogprobsResultJson}>;
2838
4691
 
2839
4692
  /**
4693
+ * Enumeration of possible media modalities.
4694
+ *
2840
4695
  * @generated from enum alis.adk.sessions.v1.MediaModality
2841
4696
  */
2842
4697
  export enum MediaModality {
2843
4698
  /**
4699
+ * The modality is unspecified.
4700
+ *
2844
4701
  * @generated from enum value: MEDIA_MODALITY_UNSPECIFIED = 0;
2845
4702
  */
2846
4703
  UNSPECIFIED = 0,
2847
4704
 
2848
4705
  /**
4706
+ * Plain text.
4707
+ *
2849
4708
  * @generated from enum value: MEDIA_MODALITY_TEXT = 1;
2850
4709
  */
2851
4710
  TEXT = 1,
2852
4711
 
2853
4712
  /**
4713
+ * Images.
4714
+ *
2854
4715
  * @generated from enum value: MEDIA_MODALITY_IMAGE = 2;
2855
4716
  */
2856
4717
  IMAGE = 2,
2857
4718
 
2858
4719
  /**
4720
+ * Video.
4721
+ *
2859
4722
  * @generated from enum value: MEDIA_MODALITY_VIDEO = 3;
2860
4723
  */
2861
4724
  VIDEO = 3,
2862
4725
 
2863
4726
  /**
4727
+ * Audio.
4728
+ *
2864
4729
  * @generated from enum value: MEDIA_MODALITY_AUDIO = 4;
2865
4730
  */
2866
4731
  AUDIO = 4,
2867
4732
 
2868
4733
  /**
4734
+ * Document, e.g. PDF.
4735
+ *
2869
4736
  * @generated from enum value: MEDIA_MODALITY_DOCUMENT = 5;
2870
4737
  */
2871
4738
  DOCUMENT = 5,
2872
4739
  }
2873
4740
 
2874
4741
  /**
4742
+ * Enumeration of possible media modalities.
4743
+ *
2875
4744
  * @generated from enum alis.adk.sessions.v1.MediaModality
2876
4745
  */
2877
4746
  export declare type MediaModalityJson = "MEDIA_MODALITY_UNSPECIFIED" | "MEDIA_MODALITY_TEXT" | "MEDIA_MODALITY_IMAGE" | "MEDIA_MODALITY_VIDEO" | "MEDIA_MODALITY_AUDIO" | "MEDIA_MODALITY_DOCUMENT";
@@ -2882,26 +4751,36 @@ export declare type MediaModalityJson = "MEDIA_MODALITY_UNSPECIFIED" | "MEDIA_MO
2882
4751
  export declare const MediaModalitySchema: GenEnum<MediaModality, MediaModalityJson>;
2883
4752
 
2884
4753
  /**
4754
+ * Enumeration of possible traffic types.
4755
+ *
2885
4756
  * @generated from enum alis.adk.sessions.v1.TrafficType
2886
4757
  */
2887
4758
  export enum TrafficType {
2888
4759
  /**
4760
+ * The traffic type is unspecified.
4761
+ *
2889
4762
  * @generated from enum value: TRAFFIC_TYPE_UNSPECIFIED = 0;
2890
4763
  */
2891
4764
  UNSPECIFIED = 0,
2892
4765
 
2893
4766
  /**
4767
+ * The request was processed using Pay-As-You-Go quota.
4768
+ *
2894
4769
  * @generated from enum value: TRAFFIC_TYPE_ON_DEMAND = 1;
2895
4770
  */
2896
4771
  ON_DEMAND = 1,
2897
4772
 
2898
4773
  /**
4774
+ * Type for Provisioned Throughput traffic.
4775
+ *
2899
4776
  * @generated from enum value: TRAFFIC_TYPE_PROVISIONED_THROUGHPUT = 2;
2900
4777
  */
2901
4778
  PROVISIONED_THROUGHPUT = 2,
2902
4779
  }
2903
4780
 
2904
4781
  /**
4782
+ * Enumeration of possible traffic types.
4783
+ *
2905
4784
  * @generated from enum alis.adk.sessions.v1.TrafficType
2906
4785
  */
2907
4786
  export declare type TrafficTypeJson = "TRAFFIC_TYPE_UNSPECIFIED" | "TRAFFIC_TYPE_ON_DEMAND" | "TRAFFIC_TYPE_PROVISIONED_THROUGHPUT";
@@ -2912,96 +4791,140 @@ export declare type TrafficTypeJson = "TRAFFIC_TYPE_UNSPECIFIED" | "TRAFFIC_TYPE
2912
4791
  export declare const TrafficTypeSchema: GenEnum<TrafficType, TrafficTypeJson>;
2913
4792
 
2914
4793
  /**
4794
+ * FinishReason describes why the model stopped generating a response.
4795
+ *
2915
4796
  * @generated from enum alis.adk.sessions.v1.FinishReason
2916
4797
  */
2917
4798
  export enum FinishReason {
2918
4799
  /**
4800
+ * The finish reason is unspecified.
4801
+ *
2919
4802
  * @generated from enum value: FINISH_REASON_UNSPECIFIED = 0;
2920
4803
  */
2921
4804
  UNSPECIFIED = 0,
2922
4805
 
2923
4806
  /**
4807
+ * Token generation reached a natural stopping point or a configured stop
4808
+ * sequence.
4809
+ *
2924
4810
  * @generated from enum value: FINISH_REASON_STOP = 1;
2925
4811
  */
2926
4812
  STOP = 1,
2927
4813
 
2928
4814
  /**
4815
+ * Token generation reached the configured maximum output tokens.
4816
+ *
2929
4817
  * @generated from enum value: FINISH_REASON_MAX_TOKENS = 2;
2930
4818
  */
2931
4819
  MAX_TOKENS = 2,
2932
4820
 
2933
4821
  /**
4822
+ * Token generation stopped because the content potentially contains safety
4823
+ * violations. NOTE: When streaming, [content][] is empty if content filters
4824
+ * blocks the output.
4825
+ *
2934
4826
  * @generated from enum value: FINISH_REASON_SAFETY = 3;
2935
4827
  */
2936
4828
  SAFETY = 3,
2937
4829
 
2938
4830
  /**
4831
+ * The token generation stopped because of potential recitation.
4832
+ *
2939
4833
  * @generated from enum value: FINISH_REASON_RECITATION = 4;
2940
4834
  */
2941
4835
  RECITATION = 4,
2942
4836
 
2943
4837
  /**
4838
+ * The token generation stopped because of using an unsupported language.
4839
+ *
2944
4840
  * @generated from enum value: FINISH_REASON_LANGUAGE = 5;
2945
4841
  */
2946
4842
  LANGUAGE = 5,
2947
4843
 
2948
4844
  /**
4845
+ * All other reasons that stopped the token generation.
4846
+ *
2949
4847
  * @generated from enum value: FINISH_REASON_OTHER = 6;
2950
4848
  */
2951
4849
  OTHER = 6,
2952
4850
 
2953
4851
  /**
4852
+ * Token generation stopped because the content contains forbidden terms.
4853
+ *
2954
4854
  * @generated from enum value: FINISH_REASON_BLOCKLIST = 7;
2955
4855
  */
2956
4856
  BLOCKLIST = 7,
2957
4857
 
2958
4858
  /**
4859
+ * Token generation stopped for potentially containing prohibited content.
4860
+ *
2959
4861
  * @generated from enum value: FINISH_REASON_PROHIBITED_CONTENT = 8;
2960
4862
  */
2961
4863
  PROHIBITED_CONTENT = 8,
2962
4864
 
2963
4865
  /**
4866
+ * Token generation stopped because the content potentially contains Sensitive
4867
+ * Personally Identifiable Information (SPII).
4868
+ *
2964
4869
  * @generated from enum value: FINISH_REASON_SPII = 9;
2965
4870
  */
2966
4871
  SPII = 9,
2967
4872
 
2968
4873
  /**
4874
+ * The function call generated by the model is invalid.
4875
+ *
2969
4876
  * @generated from enum value: FINISH_REASON_MALFORMED_FUNCTION_CALL = 10;
2970
4877
  */
2971
4878
  MALFORMED_FUNCTION_CALL = 10,
2972
4879
 
2973
4880
  /**
4881
+ * Token generation stopped because generated images have safety violations.
4882
+ *
2974
4883
  * @generated from enum value: FINISH_REASON_IMAGE_SAFETY = 11;
2975
4884
  */
2976
4885
  IMAGE_SAFETY = 11,
2977
4886
 
2978
4887
  /**
4888
+ * The tool call generated by the model is invalid.
4889
+ *
2979
4890
  * @generated from enum value: FINISH_REASON_UNEXPECTED_TOOL_CALL = 12;
2980
4891
  */
2981
4892
  UNEXPECTED_TOOL_CALL = 12,
2982
4893
 
2983
4894
  /**
4895
+ * Image generation stopped because the generated images have prohibited
4896
+ * content.
4897
+ *
2984
4898
  * @generated from enum value: FINISH_REASON_IMAGE_PROHIBITED_CONTENT = 13;
2985
4899
  */
2986
4900
  IMAGE_PROHIBITED_CONTENT = 13,
2987
4901
 
2988
4902
  /**
4903
+ * The model was expected to generate an image, but none was generated.
4904
+ *
2989
4905
  * @generated from enum value: FINISH_REASON_NO_IMAGE = 14;
2990
4906
  */
2991
4907
  NO_IMAGE = 14,
2992
4908
 
2993
4909
  /**
4910
+ * Image generation stopped because the generated image may be a recitation
4911
+ * from a source.
4912
+ *
2994
4913
  * @generated from enum value: FINISH_REASON_IMAGE_RECITATION = 15;
2995
4914
  */
2996
4915
  IMAGE_RECITATION = 15,
2997
4916
 
2998
4917
  /**
4918
+ * Image generation stopped for a reason not otherwise specified.
4919
+ *
2999
4920
  * @generated from enum value: FINISH_REASON_IMAGE_OTHER = 16;
3000
4921
  */
3001
4922
  IMAGE_OTHER = 16,
3002
4923
  }
3003
4924
 
3004
4925
  /**
4926
+ * FinishReason describes why the model stopped generating a response.
4927
+ *
3005
4928
  * @generated from enum alis.adk.sessions.v1.FinishReason
3006
4929
  */
3007
4930
  export declare type FinishReasonJson = "FINISH_REASON_UNSPECIFIED" | "FINISH_REASON_STOP" | "FINISH_REASON_MAX_TOKENS" | "FINISH_REASON_SAFETY" | "FINISH_REASON_RECITATION" | "FINISH_REASON_LANGUAGE" | "FINISH_REASON_OTHER" | "FINISH_REASON_BLOCKLIST" | "FINISH_REASON_PROHIBITED_CONTENT" | "FINISH_REASON_SPII" | "FINISH_REASON_MALFORMED_FUNCTION_CALL" | "FINISH_REASON_IMAGE_SAFETY" | "FINISH_REASON_UNEXPECTED_TOOL_CALL" | "FINISH_REASON_IMAGE_PROHIBITED_CONTENT" | "FINISH_REASON_NO_IMAGE" | "FINISH_REASON_IMAGE_RECITATION" | "FINISH_REASON_IMAGE_OTHER";
@@ -3012,10 +4935,14 @@ export declare type FinishReasonJson = "FINISH_REASON_UNSPECIFIED" | "FINISH_REA
3012
4935
  export declare const FinishReasonSchema: GenEnum<FinishReason, FinishReasonJson>;
3013
4936
 
3014
4937
  /**
4938
+ * SessionService manages agent sessions and session events.
4939
+ *
3015
4940
  * @generated from service alis.adk.sessions.v1.SessionService
3016
4941
  */
3017
4942
  export declare const SessionService: GenService<{
3018
4943
  /**
4944
+ * Creates a new session.
4945
+ *
3019
4946
  * @generated from rpc alis.adk.sessions.v1.SessionService.CreateSession
3020
4947
  */
3021
4948
  createSession: {
@@ -3024,6 +4951,8 @@ export declare const SessionService: GenService<{
3024
4951
  output: typeof SessionSchema;
3025
4952
  },
3026
4953
  /**
4954
+ * Gets details of a specific session.
4955
+ *
3027
4956
  * @generated from rpc alis.adk.sessions.v1.SessionService.GetSession
3028
4957
  */
3029
4958
  getSession: {
@@ -3032,6 +4961,8 @@ export declare const SessionService: GenService<{
3032
4961
  output: typeof SessionSchema;
3033
4962
  },
3034
4963
  /**
4964
+ * Lists sessions with optional filtering and ordering.
4965
+ *
3035
4966
  * @generated from rpc alis.adk.sessions.v1.SessionService.ListSessions
3036
4967
  */
3037
4968
  listSessions: {
@@ -3040,6 +4971,8 @@ export declare const SessionService: GenService<{
3040
4971
  output: typeof ListSessionsResponseSchema;
3041
4972
  },
3042
4973
  /**
4974
+ * Updates a specific session.
4975
+ *
3043
4976
  * @generated from rpc alis.adk.sessions.v1.SessionService.UpdateSession
3044
4977
  */
3045
4978
  updateSession: {
@@ -3048,6 +4981,8 @@ export declare const SessionService: GenService<{
3048
4981
  output: typeof SessionSchema;
3049
4982
  },
3050
4983
  /**
4984
+ * Deletes a specific session.
4985
+ *
3051
4986
  * @generated from rpc alis.adk.sessions.v1.SessionService.DeleteSession
3052
4987
  */
3053
4988
  deleteSession: {
@@ -3056,6 +4991,8 @@ export declare const SessionService: GenService<{
3056
4991
  output: typeof EmptySchema;
3057
4992
  },
3058
4993
  /**
4994
+ * Gets a specific event from a session.
4995
+ *
3059
4996
  * @generated from rpc alis.adk.sessions.v1.SessionService.GetEvent
3060
4997
  */
3061
4998
  getEvent: {
@@ -3064,6 +5001,8 @@ export declare const SessionService: GenService<{
3064
5001
  output: typeof SessionEventSchema;
3065
5002
  },
3066
5003
  /**
5004
+ * Lists events in a given session with optional filtering and ordering.
5005
+ *
3067
5006
  * @generated from rpc alis.adk.sessions.v1.SessionService.ListEvents
3068
5007
  */
3069
5008
  listEvents: {
@@ -3072,6 +5011,8 @@ export declare const SessionService: GenService<{
3072
5011
  output: typeof ListEventsResponseSchema;
3073
5012
  },
3074
5013
  /**
5014
+ * Appends an event to a given session.
5015
+ *
3075
5016
  * @generated from rpc alis.adk.sessions.v1.SessionService.AppendEvent
3076
5017
  */
3077
5018
  appendEvent: {