@agent-factory-platform/client 0.6.0 → 0.7.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.
@@ -28,10 +28,62 @@ export type AgentHealthResponse = Message<"agentfactory.agent.v1.AgentHealthResp
28
28
  * Use `create(AgentHealthResponseSchema)` to create a new message.
29
29
  */
30
30
  export declare const AgentHealthResponseSchema: GenMessage<AgentHealthResponse>;
31
+ /**
32
+ * @generated from message agentfactory.agent.v1.SessionMetadata
33
+ */
34
+ export type SessionMetadata = Message<"agentfactory.agent.v1.SessionMetadata"> & {
35
+ /**
36
+ * @generated from field: string title = 1;
37
+ */
38
+ title: string;
39
+ /**
40
+ * @generated from field: bool archived = 2;
41
+ */
42
+ archived: boolean;
43
+ /**
44
+ * @generated from field: uint64 version = 3;
45
+ */
46
+ version: bigint;
47
+ };
48
+ /**
49
+ * Describes the message agentfactory.agent.v1.SessionMetadata.
50
+ * Use `create(SessionMetadataSchema)` to create a new message.
51
+ */
52
+ export declare const SessionMetadataSchema: GenMessage<SessionMetadata>;
53
+ /**
54
+ * @generated from message agentfactory.agent.v1.UpdateSessionRequest
55
+ */
56
+ export type UpdateSessionRequest = Message<"agentfactory.agent.v1.UpdateSessionRequest"> & {
57
+ /**
58
+ * @generated from field: string session_id = 1;
59
+ */
60
+ sessionId: string;
61
+ /**
62
+ * @generated from field: uint64 expected_metadata_version = 2;
63
+ */
64
+ expectedMetadataVersion: bigint;
65
+ /**
66
+ * @generated from field: optional string title = 3;
67
+ */
68
+ title?: string;
69
+ /**
70
+ * @generated from field: optional bool archived = 4;
71
+ */
72
+ archived?: boolean;
73
+ };
74
+ /**
75
+ * Describes the message agentfactory.agent.v1.UpdateSessionRequest.
76
+ * Use `create(UpdateSessionRequestSchema)` to create a new message.
77
+ */
78
+ export declare const UpdateSessionRequestSchema: GenMessage<UpdateSessionRequest>;
31
79
  /**
32
80
  * @generated from message agentfactory.agent.v1.Session
33
81
  */
34
82
  export type Session = Message<"agentfactory.agent.v1.Session"> & {
83
+ /**
84
+ * @generated from field: agentfactory.agent.v1.SessionMetadata metadata = 7;
85
+ */
86
+ metadata?: SessionMetadata;
35
87
  /**
36
88
  * @generated from field: string id = 1;
37
89
  */
@@ -88,6 +140,10 @@ export type ListSessionsRequest = Message<"agentfactory.agent.v1.ListSessionsReq
88
140
  * @generated from field: string page_token = 2;
89
141
  */
90
142
  pageToken: string;
143
+ /**
144
+ * @generated from field: optional bool archived = 3;
145
+ */
146
+ archived?: boolean;
91
147
  };
92
148
  /**
93
149
  * Describes the message agentfactory.agent.v1.ListSessionsRequest.
@@ -301,12 +357,102 @@ export type SubmitInputRequest = Message<"agentfactory.agent.v1.SubmitInputReque
301
357
  * @generated from field: string idempotency_key = 5;
302
358
  */
303
359
  idempotencyKey: string;
360
+ /**
361
+ * @generated from field: agentfactory.agent.v1.RunOptions run_options = 6;
362
+ */
363
+ runOptions?: RunOptions;
304
364
  };
305
365
  /**
306
366
  * Describes the message agentfactory.agent.v1.SubmitInputRequest.
307
367
  * Use `create(SubmitInputRequestSchema)` to create a new message.
308
368
  */
309
369
  export declare const SubmitInputRequestSchema: GenMessage<SubmitInputRequest>;
370
+ /**
371
+ * @generated from message agentfactory.agent.v1.RunOptions
372
+ */
373
+ export type RunOptions = Message<"agentfactory.agent.v1.RunOptions"> & {
374
+ /**
375
+ * @generated from field: optional string profile_revision_id = 1;
376
+ */
377
+ profileRevisionId?: string;
378
+ /**
379
+ * @generated from field: optional string model = 2;
380
+ */
381
+ model?: string;
382
+ /**
383
+ * @generated from field: optional string reasoning = 3;
384
+ */
385
+ reasoning?: string;
386
+ /**
387
+ * @generated from field: optional string timezone = 4;
388
+ */
389
+ timezone?: string;
390
+ /**
391
+ * @generated from field: optional bool web_search = 5;
392
+ */
393
+ webSearch?: boolean;
394
+ /**
395
+ * [valid: auto | single | collaborate]
396
+ *
397
+ * @generated from field: string collaboration = 6;
398
+ */
399
+ collaboration: string;
400
+ /**
401
+ * @generated from field: google.protobuf.Value page_context = 7;
402
+ */
403
+ pageContext?: Value;
404
+ };
405
+ /**
406
+ * Describes the message agentfactory.agent.v1.RunOptions.
407
+ * Use `create(RunOptionsSchema)` to create a new message.
408
+ */
409
+ export declare const RunOptionsSchema: GenMessage<RunOptions>;
410
+ /**
411
+ * @generated from message agentfactory.agent.v1.EffectiveRunOptions
412
+ */
413
+ export type EffectiveRunOptions = Message<"agentfactory.agent.v1.EffectiveRunOptions"> & {
414
+ /**
415
+ * @generated from field: bool compact = 9;
416
+ */
417
+ compact: boolean;
418
+ /**
419
+ * @generated from field: uint32 max_images = 8;
420
+ */
421
+ maxImages: number;
422
+ /**
423
+ * @generated from field: string profile_revision_id = 1;
424
+ */
425
+ profileRevisionId: string;
426
+ /**
427
+ * @generated from field: string model = 2;
428
+ */
429
+ model: string;
430
+ /**
431
+ * @generated from field: string reasoning = 3;
432
+ */
433
+ reasoning: string;
434
+ /**
435
+ * @generated from field: string timezone = 4;
436
+ */
437
+ timezone: string;
438
+ /**
439
+ * @generated from field: agentfactory.agent.v1.ToolPolicy tools = 5;
440
+ */
441
+ tools?: ToolPolicy;
442
+ /**
443
+ * @generated from field: string collaboration = 6;
444
+ */
445
+ collaboration: string;
446
+ /**
447
+ * @generated from field: google.protobuf.Value page_context = 7;
448
+ */
449
+ pageContext?: Value;
450
+ };
451
+ /**
452
+ * Describes the message agentfactory.agent.v1.EffectiveRunOptions.
453
+ * Use `create(EffectiveRunOptionsSchema)` to create a new message.
454
+ */
455
+ export declare const EffectiveRunOptionsSchema: GenMessage<EffectiveRunOptions>;
310
456
  /**
311
457
  * @generated from message agentfactory.agent.v1.InputReceipt
312
458
  */
@@ -425,6 +571,10 @@ export type Run = Message<"agentfactory.agent.v1.Run"> & {
425
571
  * @generated from field: google.protobuf.Timestamp updated_at = 9;
426
572
  */
427
573
  updatedAt?: Timestamp;
574
+ /**
575
+ * @generated from field: agentfactory.agent.v1.EffectiveRunOptions effective_options = 10;
576
+ */
577
+ effectiveOptions?: EffectiveRunOptions;
428
578
  };
429
579
  /**
430
580
  * Describes the message agentfactory.agent.v1.Run.
@@ -526,6 +676,18 @@ export type SessionEvent = Message<"agentfactory.agent.v1.SessionEvent"> & {
526
676
  */
527
677
  value: ContextEvent;
528
678
  case: "context";
679
+ } | {
680
+ /**
681
+ * @generated from field: agentfactory.agent.v1.SessionMetadata metadata = 20;
682
+ */
683
+ value: SessionMetadata;
684
+ case: "metadata";
685
+ } | {
686
+ /**
687
+ * @generated from field: agentfactory.agent.v1.MeteringCorrectionEvent metering_correction = 21;
688
+ */
689
+ value: MeteringCorrectionEvent;
690
+ case: "meteringCorrection";
529
691
  } | {
530
692
  case: undefined;
531
693
  value?: undefined;
@@ -620,6 +782,18 @@ export type ToolEvent = Message<"agentfactory.agent.v1.ToolEvent"> & {
620
782
  * @generated from field: bool is_error = 6;
621
783
  */
622
784
  isError: boolean;
785
+ /**
786
+ * @generated from field: agentfactory.agent.v1.MeteringDetails metering = 7;
787
+ */
788
+ metering?: MeteringDetails;
789
+ /**
790
+ * @generated from field: uint64 reserved_cost_units = 8;
791
+ */
792
+ reservedCostUnits: bigint;
793
+ /**
794
+ * @generated from field: string operation_id = 9;
795
+ */
796
+ operationId: string;
623
797
  };
624
798
  /**
625
799
  * Describes the message agentfactory.agent.v1.ToolEvent.
@@ -672,12 +846,66 @@ export type UsageEvent = Message<"agentfactory.agent.v1.UsageEvent"> & {
672
846
  * @generated from field: uint64 completion_tokens = 3;
673
847
  */
674
848
  completionTokens: bigint;
849
+ /**
850
+ * @generated from field: uint64 cost_units = 4;
851
+ */
852
+ costUnits: bigint;
853
+ /**
854
+ * Absent only for legacy events. No pricing or request content.
855
+ *
856
+ * @generated from field: agentfactory.agent.v1.MeteringDetails metering = 5;
857
+ */
858
+ metering?: MeteringDetails;
675
859
  };
676
860
  /**
677
861
  * Describes the message agentfactory.agent.v1.UsageEvent.
678
862
  * Use `create(UsageEventSchema)` to create a new message.
679
863
  */
680
864
  export declare const UsageEventSchema: GenMessage<UsageEvent>;
865
+ /**
866
+ * @generated from message agentfactory.agent.v1.MeteringDetails
867
+ */
868
+ export type MeteringDetails = Message<"agentfactory.agent.v1.MeteringDetails"> & {
869
+ /**
870
+ * @generated from field: string kind = 1;
871
+ */
872
+ kind: string;
873
+ /**
874
+ * @generated from field: string model = 2;
875
+ */
876
+ model: string;
877
+ /**
878
+ * @generated from field: optional string provider = 3;
879
+ */
880
+ provider?: string;
881
+ /**
882
+ * @generated from field: string provider_attempt_id = 4;
883
+ */
884
+ providerAttemptId: string;
885
+ /**
886
+ * @generated from field: string tool_call_id = 5;
887
+ */
888
+ toolCallId: string;
889
+ /**
890
+ * @generated from field: string tool_name = 6;
891
+ */
892
+ toolName: string;
893
+ /**
894
+ * reported | estimated
895
+ *
896
+ * @generated from field: string source = 7;
897
+ */
898
+ source: string;
899
+ /**
900
+ * @generated from field: string outcome = 8;
901
+ */
902
+ outcome: string;
903
+ };
904
+ /**
905
+ * Describes the message agentfactory.agent.v1.MeteringDetails.
906
+ * Use `create(MeteringDetailsSchema)` to create a new message.
907
+ */
908
+ export declare const MeteringDetailsSchema: GenMessage<MeteringDetails>;
681
909
  /**
682
910
  * @generated from message agentfactory.agent.v1.CompactionEvent
683
911
  */
@@ -766,6 +994,22 @@ export type ModelEvent = Message<"agentfactory.agent.v1.ModelEvent"> & {
766
994
  * @generated from field: repeated agentfactory.agent.v1.PromptSectionTrace prompt_sections = 10;
767
995
  */
768
996
  promptSections: PromptSectionTrace[];
997
+ /**
998
+ * @generated from field: agentfactory.agent.v1.MeteringDetails metering = 11;
999
+ */
1000
+ metering?: MeteringDetails;
1001
+ /**
1002
+ * @generated from field: string operation_id = 12;
1003
+ */
1004
+ operationId: string;
1005
+ /**
1006
+ * @generated from field: uint64 reserved_prompt_tokens = 13;
1007
+ */
1008
+ reservedPromptTokens: bigint;
1009
+ /**
1010
+ * @generated from field: uint64 reserved_completion_tokens = 14;
1011
+ */
1012
+ reservedCompletionTokens: bigint;
769
1013
  };
770
1014
  /**
771
1015
  * Describes the message agentfactory.agent.v1.ModelEvent.
@@ -1064,6 +1308,10 @@ export type ToolPolicy = Message<"agentfactory.agent.v1.ToolPolicy"> & {
1064
1308
  * @generated from field: repeated string require_confirmation = 3;
1065
1309
  */
1066
1310
  requireConfirmation: string[];
1311
+ /**
1312
+ * @generated from field: repeated string denied = 4;
1313
+ */
1314
+ denied: string[];
1067
1315
  };
1068
1316
  /**
1069
1317
  * Describes the message agentfactory.agent.v1.ToolPolicy.
@@ -1673,6 +1921,14 @@ export type MemorySettings = Message<"agentfactory.agent.v1.MemorySettings"> & {
1673
1921
  * @generated from field: int64 ttl_days = 2;
1674
1922
  */
1675
1923
  ttlDays: bigint;
1924
+ /**
1925
+ * @generated from field: uint64 version = 3;
1926
+ */
1927
+ version: bigint;
1928
+ /**
1929
+ * @generated from field: uint64 generation = 4;
1930
+ */
1931
+ generation: bigint;
1676
1932
  };
1677
1933
  /**
1678
1934
  * Describes the message agentfactory.agent.v1.MemorySettings.
@@ -1683,6 +1939,10 @@ export declare const MemorySettingsSchema: GenMessage<MemorySettings>;
1683
1939
  * @generated from message agentfactory.agent.v1.Memory
1684
1940
  */
1685
1941
  export type Memory = Message<"agentfactory.agent.v1.Memory"> & {
1942
+ /**
1943
+ * @generated from field: uint64 version = 10;
1944
+ */
1945
+ version: bigint;
1686
1946
  /**
1687
1947
  * @generated from field: string id = 1;
1688
1948
  */
@@ -1796,6 +2056,10 @@ export type ConfirmMemoryRequest = Message<"agentfactory.agent.v1.ConfirmMemoryR
1796
2056
  * @generated from field: string memory_id = 1;
1797
2057
  */
1798
2058
  memoryId: string;
2059
+ /**
2060
+ * @generated from field: uint64 expected_version = 2;
2061
+ */
2062
+ expectedVersion: bigint;
1799
2063
  };
1800
2064
  /**
1801
2065
  * Describes the message agentfactory.agent.v1.ConfirmMemoryRequest.
@@ -2114,6 +2378,478 @@ export type CancelCollaborationRequest = Message<"agentfactory.agent.v1.CancelCo
2114
2378
  * Use `create(CancelCollaborationRequestSchema)` to create a new message.
2115
2379
  */
2116
2380
  export declare const CancelCollaborationRequestSchema: GenMessage<CancelCollaborationRequest>;
2381
+ /**
2382
+ * Explicit confirmation: neither zero/latest nor implicit all-history selection is accepted.
2383
+ *
2384
+ * @generated from message agentfactory.agent.v1.CreateSessionSnapshotRequest
2385
+ */
2386
+ export type CreateSessionSnapshotRequest = Message<"agentfactory.agent.v1.CreateSessionSnapshotRequest"> & {
2387
+ /**
2388
+ * @generated from field: string snapshot_id = 1;
2389
+ */
2390
+ snapshotId: string;
2391
+ /**
2392
+ * @generated from field: string session_id = 2;
2393
+ */
2394
+ sessionId: string;
2395
+ /**
2396
+ * @generated from field: uint64 through_seq = 3;
2397
+ */
2398
+ throughSeq: bigint;
2399
+ /**
2400
+ * @generated from field: repeated uint64 message_seqs = 4;
2401
+ */
2402
+ messageSeqs: bigint[];
2403
+ /**
2404
+ * @generated from field: repeated string reader_subject_ids = 5;
2405
+ */
2406
+ readerSubjectIds: string[];
2407
+ };
2408
+ /**
2409
+ * Describes the message agentfactory.agent.v1.CreateSessionSnapshotRequest.
2410
+ * Use `create(CreateSessionSnapshotRequestSchema)` to create a new message.
2411
+ */
2412
+ export declare const CreateSessionSnapshotRequestSchema: GenMessage<CreateSessionSnapshotRequest>;
2413
+ /**
2414
+ * @generated from message agentfactory.agent.v1.SessionSnapshotRequest
2415
+ */
2416
+ export type SessionSnapshotRequest = Message<"agentfactory.agent.v1.SessionSnapshotRequest"> & {
2417
+ /**
2418
+ * @generated from field: string snapshot_id = 1;
2419
+ */
2420
+ snapshotId: string;
2421
+ };
2422
+ /**
2423
+ * Describes the message agentfactory.agent.v1.SessionSnapshotRequest.
2424
+ * Use `create(SessionSnapshotRequestSchema)` to create a new message.
2425
+ */
2426
+ export declare const SessionSnapshotRequestSchema: GenMessage<SessionSnapshotRequest>;
2427
+ /**
2428
+ * @generated from message agentfactory.agent.v1.SnapshotMessage
2429
+ */
2430
+ export type SnapshotMessage = Message<"agentfactory.agent.v1.SnapshotMessage"> & {
2431
+ /**
2432
+ * @generated from field: uint64 seq = 1;
2433
+ */
2434
+ seq: bigint;
2435
+ /**
2436
+ * @generated from field: string role = 2;
2437
+ */
2438
+ role: string;
2439
+ /**
2440
+ * @generated from field: repeated agentfactory.agent.v1.ContentBlock content = 3;
2441
+ */
2442
+ content: ContentBlock[];
2443
+ };
2444
+ /**
2445
+ * Describes the message agentfactory.agent.v1.SnapshotMessage.
2446
+ * Use `create(SnapshotMessageSchema)` to create a new message.
2447
+ */
2448
+ export declare const SnapshotMessageSchema: GenMessage<SnapshotMessage>;
2449
+ /**
2450
+ * @generated from message agentfactory.agent.v1.SessionSnapshot
2451
+ */
2452
+ export type SessionSnapshot = Message<"agentfactory.agent.v1.SessionSnapshot"> & {
2453
+ /**
2454
+ * @generated from field: uint32 format_version = 1;
2455
+ */
2456
+ formatVersion: number;
2457
+ /**
2458
+ * @generated from field: agentfactory.agent.v1.CreateSessionSnapshotRequest selection = 2;
2459
+ */
2460
+ selection?: CreateSessionSnapshotRequest;
2461
+ /**
2462
+ * @generated from field: string tenant_id = 3;
2463
+ */
2464
+ tenantId: string;
2465
+ /**
2466
+ * @generated from field: string subject_id = 4;
2467
+ */
2468
+ subjectId: string;
2469
+ /**
2470
+ * @generated from field: string title = 5;
2471
+ */
2472
+ title: string;
2473
+ /**
2474
+ * @generated from field: repeated agentfactory.agent.v1.SnapshotMessage messages = 6;
2475
+ */
2476
+ messages: SnapshotMessage[];
2477
+ };
2478
+ /**
2479
+ * Describes the message agentfactory.agent.v1.SessionSnapshot.
2480
+ * Use `create(SessionSnapshotSchema)` to create a new message.
2481
+ */
2482
+ export declare const SessionSnapshotSchema: GenMessage<SessionSnapshot>;
2483
+ /**
2484
+ * @generated from message agentfactory.agent.v1.ReadSessionEventsRequest
2485
+ */
2486
+ export type ReadSessionEventsRequest = Message<"agentfactory.agent.v1.ReadSessionEventsRequest"> & {
2487
+ /**
2488
+ * @generated from field: string session_id = 1;
2489
+ */
2490
+ sessionId: string;
2491
+ /**
2492
+ * @generated from field: uint64 after_seq = 2;
2493
+ */
2494
+ afterSeq: bigint;
2495
+ /**
2496
+ * Zero defaults to 50; maximum 100. Cursor is exclusive.
2497
+ *
2498
+ * @generated from field: uint32 page_size = 3;
2499
+ */
2500
+ pageSize: number;
2501
+ };
2502
+ /**
2503
+ * Describes the message agentfactory.agent.v1.ReadSessionEventsRequest.
2504
+ * Use `create(ReadSessionEventsRequestSchema)` to create a new message.
2505
+ */
2506
+ export declare const ReadSessionEventsRequestSchema: GenMessage<ReadSessionEventsRequest>;
2507
+ /**
2508
+ * @generated from message agentfactory.agent.v1.ReadSessionEventsResponse
2509
+ */
2510
+ export type ReadSessionEventsResponse = Message<"agentfactory.agent.v1.ReadSessionEventsResponse"> & {
2511
+ /**
2512
+ * @generated from field: repeated agentfactory.agent.v1.SessionEvent events = 1;
2513
+ */
2514
+ events: SessionEvent[];
2515
+ /**
2516
+ * Last returned sequence, or the request cursor when empty.
2517
+ *
2518
+ * @generated from field: uint64 next_after_seq = 2;
2519
+ */
2520
+ nextAfterSeq: bigint;
2521
+ };
2522
+ /**
2523
+ * Describes the message agentfactory.agent.v1.ReadSessionEventsResponse.
2524
+ * Use `create(ReadSessionEventsResponseSchema)` to create a new message.
2525
+ */
2526
+ export declare const ReadSessionEventsResponseSchema: GenMessage<ReadSessionEventsResponse>;
2527
+ /**
2528
+ * @generated from message agentfactory.agent.v1.CompactSessionRequest
2529
+ */
2530
+ export type CompactSessionRequest = Message<"agentfactory.agent.v1.CompactSessionRequest"> & {
2531
+ /**
2532
+ * @generated from field: string session_id = 1;
2533
+ */
2534
+ sessionId: string;
2535
+ /**
2536
+ * @generated from field: string idempotency_key = 2;
2537
+ */
2538
+ idempotencyKey: string;
2539
+ };
2540
+ /**
2541
+ * Describes the message agentfactory.agent.v1.CompactSessionRequest.
2542
+ * Use `create(CompactSessionRequestSchema)` to create a new message.
2543
+ */
2544
+ export declare const CompactSessionRequestSchema: GenMessage<CompactSessionRequest>;
2545
+ /**
2546
+ * Privileged report. Actor identity and tenant are resolved from transport context.
2547
+ *
2548
+ * @generated from message agentfactory.agent.v1.CorrectMeteringRequest
2549
+ */
2550
+ export type CorrectMeteringRequest = Message<"agentfactory.agent.v1.CorrectMeteringRequest"> & {
2551
+ /**
2552
+ * @generated from field: string owner_id = 1;
2553
+ */
2554
+ ownerId: string;
2555
+ /**
2556
+ * @generated from field: string session_id = 2;
2557
+ */
2558
+ sessionId: string;
2559
+ /**
2560
+ * @generated from field: string run_id = 3;
2561
+ */
2562
+ runId: string;
2563
+ /**
2564
+ * @generated from field: string correction_id = 4;
2565
+ */
2566
+ correctionId: string;
2567
+ /**
2568
+ * @generated from field: uint64 expected_revision = 5;
2569
+ */
2570
+ expectedRevision: bigint;
2571
+ /**
2572
+ * @generated from field: agentfactory.agent.v1.UsageEvent usage = 6;
2573
+ */
2574
+ usage?: UsageEvent;
2575
+ /**
2576
+ * @generated from field: string reason = 7;
2577
+ */
2578
+ reason: string;
2579
+ };
2580
+ /**
2581
+ * Describes the message agentfactory.agent.v1.CorrectMeteringRequest.
2582
+ * Use `create(CorrectMeteringRequestSchema)` to create a new message.
2583
+ */
2584
+ export declare const CorrectMeteringRequestSchema: GenMessage<CorrectMeteringRequest>;
2585
+ /**
2586
+ * @generated from message agentfactory.agent.v1.MeteringCorrectionReceipt
2587
+ */
2588
+ export type MeteringCorrectionReceipt = Message<"agentfactory.agent.v1.MeteringCorrectionReceipt"> & {
2589
+ /**
2590
+ * @generated from field: string correction_id = 1;
2591
+ */
2592
+ correctionId: string;
2593
+ /**
2594
+ * @generated from field: uint64 accepted_seq = 2;
2595
+ */
2596
+ acceptedSeq: bigint;
2597
+ /**
2598
+ * @generated from field: uint64 revision = 3;
2599
+ */
2600
+ revision: bigint;
2601
+ /**
2602
+ * @generated from field: string actor_id = 4;
2603
+ */
2604
+ actorId: string;
2605
+ };
2606
+ /**
2607
+ * Describes the message agentfactory.agent.v1.MeteringCorrectionReceipt.
2608
+ * Use `create(MeteringCorrectionReceiptSchema)` to create a new message.
2609
+ */
2610
+ export declare const MeteringCorrectionReceiptSchema: GenMessage<MeteringCorrectionReceipt>;
2611
+ /**
2612
+ * @generated from message agentfactory.agent.v1.MeteringCorrectionEvent
2613
+ */
2614
+ export type MeteringCorrectionEvent = Message<"agentfactory.agent.v1.MeteringCorrectionEvent"> & {
2615
+ /**
2616
+ * @generated from field: string correction_id = 1;
2617
+ */
2618
+ correctionId: string;
2619
+ /**
2620
+ * @generated from field: uint64 revision = 2;
2621
+ */
2622
+ revision: bigint;
2623
+ /**
2624
+ * @generated from field: string actor_id = 3;
2625
+ */
2626
+ actorId: string;
2627
+ /**
2628
+ * @generated from field: agentfactory.agent.v1.UsageEvent usage = 4;
2629
+ */
2630
+ usage?: UsageEvent;
2631
+ /**
2632
+ * @generated from field: string reason = 5;
2633
+ */
2634
+ reason: string;
2635
+ };
2636
+ /**
2637
+ * Describes the message agentfactory.agent.v1.MeteringCorrectionEvent.
2638
+ * Use `create(MeteringCorrectionEventSchema)` to create a new message.
2639
+ */
2640
+ export declare const MeteringCorrectionEventSchema: GenMessage<MeteringCorrectionEvent>;
2641
+ /**
2642
+ * @generated from message agentfactory.agent.v1.ProfileProposal
2643
+ */
2644
+ export type ProfileProposal = Message<"agentfactory.agent.v1.ProfileProposal"> & {
2645
+ /**
2646
+ * @generated from field: string operation = 1;
2647
+ */
2648
+ operation: string;
2649
+ /**
2650
+ * @generated from field: agentfactory.agent.v1.AgentProfile profile = 2;
2651
+ */
2652
+ profile?: AgentProfile;
2653
+ /**
2654
+ * @generated from field: agentfactory.agent.v1.AgentProfileRevision revision = 3;
2655
+ */
2656
+ revision?: AgentProfileRevision;
2657
+ };
2658
+ /**
2659
+ * Describes the message agentfactory.agent.v1.ProfileProposal.
2660
+ * Use `create(ProfileProposalSchema)` to create a new message.
2661
+ */
2662
+ export declare const ProfileProposalSchema: GenMessage<ProfileProposal>;
2663
+ /**
2664
+ * @generated from message agentfactory.agent.v1.ProposeProfileRequest
2665
+ */
2666
+ export type ProposeProfileRequest = Message<"agentfactory.agent.v1.ProposeProfileRequest"> & {
2667
+ /**
2668
+ * @generated from field: string draft_id = 1;
2669
+ */
2670
+ draftId: string;
2671
+ /**
2672
+ * @generated from field: agentfactory.agent.v1.ProfileProposal proposal = 2;
2673
+ */
2674
+ proposal?: ProfileProposal;
2675
+ };
2676
+ /**
2677
+ * Describes the message agentfactory.agent.v1.ProposeProfileRequest.
2678
+ * Use `create(ProposeProfileRequestSchema)` to create a new message.
2679
+ */
2680
+ export declare const ProposeProfileRequestSchema: GenMessage<ProposeProfileRequest>;
2681
+ /**
2682
+ * @generated from message agentfactory.agent.v1.GetProfileDraftRequest
2683
+ */
2684
+ export type GetProfileDraftRequest = Message<"agentfactory.agent.v1.GetProfileDraftRequest"> & {
2685
+ /**
2686
+ * @generated from field: string draft_id = 1;
2687
+ */
2688
+ draftId: string;
2689
+ };
2690
+ /**
2691
+ * Describes the message agentfactory.agent.v1.GetProfileDraftRequest.
2692
+ * Use `create(GetProfileDraftRequestSchema)` to create a new message.
2693
+ */
2694
+ export declare const GetProfileDraftRequestSchema: GenMessage<GetProfileDraftRequest>;
2695
+ /**
2696
+ * @generated from message agentfactory.agent.v1.DecideProfileDraftRequest
2697
+ */
2698
+ export type DecideProfileDraftRequest = Message<"agentfactory.agent.v1.DecideProfileDraftRequest"> & {
2699
+ /**
2700
+ * @generated from field: string draft_id = 1;
2701
+ */
2702
+ draftId: string;
2703
+ /**
2704
+ * @generated from field: bool accept = 2;
2705
+ */
2706
+ accept: boolean;
2707
+ };
2708
+ /**
2709
+ * Describes the message agentfactory.agent.v1.DecideProfileDraftRequest.
2710
+ * Use `create(DecideProfileDraftRequestSchema)` to create a new message.
2711
+ */
2712
+ export declare const DecideProfileDraftRequestSchema: GenMessage<DecideProfileDraftRequest>;
2713
+ /**
2714
+ * @generated from message agentfactory.agent.v1.ProfileDraft
2715
+ */
2716
+ export type ProfileDraft = Message<"agentfactory.agent.v1.ProfileDraft"> & {
2717
+ /**
2718
+ * @generated from field: string id = 1;
2719
+ */
2720
+ id: string;
2721
+ /**
2722
+ * @generated from field: agentfactory.agent.v1.ProfileProposal proposal = 2;
2723
+ */
2724
+ proposal?: ProfileProposal;
2725
+ /**
2726
+ * @generated from field: string status = 3;
2727
+ */
2728
+ status: string;
2729
+ };
2730
+ /**
2731
+ * Describes the message agentfactory.agent.v1.ProfileDraft.
2732
+ * Use `create(ProfileDraftSchema)` to create a new message.
2733
+ */
2734
+ export declare const ProfileDraftSchema: GenMessage<ProfileDraft>;
2735
+ /**
2736
+ * @generated from message agentfactory.agent.v1.EditMemoryRequest
2737
+ */
2738
+ export type EditMemoryRequest = Message<"agentfactory.agent.v1.EditMemoryRequest"> & {
2739
+ /**
2740
+ * @generated from field: string memory_id = 1;
2741
+ */
2742
+ memoryId: string;
2743
+ /**
2744
+ * @generated from field: uint64 expected_version = 2;
2745
+ */
2746
+ expectedVersion: bigint;
2747
+ /**
2748
+ * @generated from field: string content = 3;
2749
+ */
2750
+ content: string;
2751
+ };
2752
+ /**
2753
+ * Describes the message agentfactory.agent.v1.EditMemoryRequest.
2754
+ * Use `create(EditMemoryRequestSchema)` to create a new message.
2755
+ */
2756
+ export declare const EditMemoryRequestSchema: GenMessage<EditMemoryRequest>;
2757
+ /**
2758
+ * @generated from message agentfactory.agent.v1.ClearMemoriesRequest
2759
+ */
2760
+ export type ClearMemoriesRequest = Message<"agentfactory.agent.v1.ClearMemoriesRequest"> & {
2761
+ /**
2762
+ * @generated from field: uint64 expected_version = 1;
2763
+ */
2764
+ expectedVersion: bigint;
2765
+ /**
2766
+ * @generated from field: string idempotency_key = 2;
2767
+ */
2768
+ idempotencyKey: string;
2769
+ };
2770
+ /**
2771
+ * Describes the message agentfactory.agent.v1.ClearMemoriesRequest.
2772
+ * Use `create(ClearMemoriesRequestSchema)` to create a new message.
2773
+ */
2774
+ export declare const ClearMemoriesRequestSchema: GenMessage<ClearMemoriesRequest>;
2775
+ /**
2776
+ * @generated from message agentfactory.agent.v1.ClearMemoriesResponse
2777
+ */
2778
+ export type ClearMemoriesResponse = Message<"agentfactory.agent.v1.ClearMemoriesResponse"> & {
2779
+ /**
2780
+ * @generated from field: agentfactory.agent.v1.MemorySettings settings = 1;
2781
+ */
2782
+ settings?: MemorySettings;
2783
+ /**
2784
+ * @generated from field: uint64 deleted = 2;
2785
+ */
2786
+ deleted: bigint;
2787
+ };
2788
+ /**
2789
+ * Describes the message agentfactory.agent.v1.ClearMemoriesResponse.
2790
+ * Use `create(ClearMemoriesResponseSchema)` to create a new message.
2791
+ */
2792
+ export declare const ClearMemoriesResponseSchema: GenMessage<ClearMemoriesResponse>;
2793
+ /**
2794
+ * The versioned JSON document is a downloadable configuration contract, not an event log.
2795
+ *
2796
+ * @generated from message agentfactory.agent.v1.ExportProfileRequest
2797
+ */
2798
+ export type ExportProfileRequest = Message<"agentfactory.agent.v1.ExportProfileRequest"> & {
2799
+ /**
2800
+ * @generated from field: string profile_revision_id = 1;
2801
+ */
2802
+ profileRevisionId: string;
2803
+ };
2804
+ /**
2805
+ * Describes the message agentfactory.agent.v1.ExportProfileRequest.
2806
+ * Use `create(ExportProfileRequestSchema)` to create a new message.
2807
+ */
2808
+ export declare const ExportProfileRequestSchema: GenMessage<ExportProfileRequest>;
2809
+ /**
2810
+ * @generated from message agentfactory.agent.v1.ExportProfileResponse
2811
+ */
2812
+ export type ExportProfileResponse = Message<"agentfactory.agent.v1.ExportProfileResponse"> & {
2813
+ /**
2814
+ * @generated from field: uint32 format_version = 1;
2815
+ */
2816
+ formatVersion: number;
2817
+ /**
2818
+ * @generated from field: bytes document_json = 2;
2819
+ */
2820
+ documentJson: Uint8Array;
2821
+ };
2822
+ /**
2823
+ * Describes the message agentfactory.agent.v1.ExportProfileResponse.
2824
+ * Use `create(ExportProfileResponseSchema)` to create a new message.
2825
+ */
2826
+ export declare const ExportProfileResponseSchema: GenMessage<ExportProfileResponse>;
2827
+ /**
2828
+ * @generated from message agentfactory.agent.v1.ImportProfileRequest
2829
+ */
2830
+ export type ImportProfileRequest = Message<"agentfactory.agent.v1.ImportProfileRequest"> & {
2831
+ /**
2832
+ * @generated from field: bytes document_json = 1;
2833
+ */
2834
+ documentJson: Uint8Array;
2835
+ /**
2836
+ * @generated from field: google.protobuf.Value bindings = 2;
2837
+ */
2838
+ bindings?: Value;
2839
+ /**
2840
+ * @generated from field: string idempotency_key = 3;
2841
+ */
2842
+ idempotencyKey: string;
2843
+ /**
2844
+ * @generated from field: bool dry_run = 4;
2845
+ */
2846
+ dryRun: boolean;
2847
+ };
2848
+ /**
2849
+ * Describes the message agentfactory.agent.v1.ImportProfileRequest.
2850
+ * Use `create(ImportProfileRequestSchema)` to create a new message.
2851
+ */
2852
+ export declare const ImportProfileRequestSchema: GenMessage<ImportProfileRequest>;
2117
2853
  /**
2118
2854
  * @generated from enum agentfactory.agent.v1.InteractionResolutionKind
2119
2855
  */
@@ -2182,6 +2918,14 @@ export declare const AgentSessionService: GenService<{
2182
2918
  input: typeof GetSessionRequestSchema;
2183
2919
  output: typeof SessionSchema;
2184
2920
  };
2921
+ /**
2922
+ * @generated from rpc agentfactory.agent.v1.AgentSessionService.UpdateSession
2923
+ */
2924
+ updateSession: {
2925
+ methodKind: "unary";
2926
+ input: typeof UpdateSessionRequestSchema;
2927
+ output: typeof SessionSchema;
2928
+ };
2185
2929
  /**
2186
2930
  * @generated from rpc agentfactory.agent.v1.AgentSessionService.DeleteSession
2187
2931
  */
@@ -2198,6 +2942,30 @@ export declare const AgentSessionService: GenService<{
2198
2942
  input: typeof ForkSessionRequestSchema;
2199
2943
  output: typeof SessionSchema;
2200
2944
  };
2945
+ /**
2946
+ * @generated from rpc agentfactory.agent.v1.AgentSessionService.CreateSessionSnapshot
2947
+ */
2948
+ createSessionSnapshot: {
2949
+ methodKind: "unary";
2950
+ input: typeof CreateSessionSnapshotRequestSchema;
2951
+ output: typeof SessionSnapshotSchema;
2952
+ };
2953
+ /**
2954
+ * @generated from rpc agentfactory.agent.v1.AgentSessionService.ReadSessionSnapshot
2955
+ */
2956
+ readSessionSnapshot: {
2957
+ methodKind: "unary";
2958
+ input: typeof SessionSnapshotRequestSchema;
2959
+ output: typeof SessionSnapshotSchema;
2960
+ };
2961
+ /**
2962
+ * @generated from rpc agentfactory.agent.v1.AgentSessionService.RevokeSessionSnapshot
2963
+ */
2964
+ revokeSessionSnapshot: {
2965
+ methodKind: "unary";
2966
+ input: typeof SessionSnapshotRequestSchema;
2967
+ output: typeof EmptySchema;
2968
+ };
2201
2969
  /**
2202
2970
  * @generated from rpc agentfactory.agent.v1.AgentSessionService.SubmitInput
2203
2971
  */
@@ -2206,6 +2974,22 @@ export declare const AgentSessionService: GenService<{
2206
2974
  input: typeof SubmitInputRequestSchema;
2207
2975
  output: typeof InputReceiptSchema;
2208
2976
  };
2977
+ /**
2978
+ * @generated from rpc agentfactory.agent.v1.AgentSessionService.CompactSession
2979
+ */
2980
+ compactSession: {
2981
+ methodKind: "unary";
2982
+ input: typeof CompactSessionRequestSchema;
2983
+ output: typeof InputReceiptSchema;
2984
+ };
2985
+ /**
2986
+ * @generated from rpc agentfactory.agent.v1.AgentSessionService.CorrectMetering
2987
+ */
2988
+ correctMetering: {
2989
+ methodKind: "unary";
2990
+ input: typeof CorrectMeteringRequestSchema;
2991
+ output: typeof MeteringCorrectionReceiptSchema;
2992
+ };
2209
2993
  /**
2210
2994
  * @generated from rpc agentfactory.agent.v1.AgentSessionService.CancelRun
2211
2995
  */
@@ -2222,6 +3006,14 @@ export declare const AgentSessionService: GenService<{
2222
3006
  input: typeof GetRunRequestSchema;
2223
3007
  output: typeof RunSchema;
2224
3008
  };
3009
+ /**
3010
+ * @generated from rpc agentfactory.agent.v1.AgentSessionService.ReadSessionEvents
3011
+ */
3012
+ readSessionEvents: {
3013
+ methodKind: "unary";
3014
+ input: typeof ReadSessionEventsRequestSchema;
3015
+ output: typeof ReadSessionEventsResponseSchema;
3016
+ };
2225
3017
  /**
2226
3018
  * @generated from rpc agentfactory.agent.v1.AgentSessionService.FollowEvents
2227
3019
  */
@@ -2235,6 +3027,46 @@ export declare const AgentSessionService: GenService<{
2235
3027
  * @generated from service agentfactory.agent.v1.AgentProfileService
2236
3028
  */
2237
3029
  export declare const AgentProfileService: GenService<{
3030
+ /**
3031
+ * @generated from rpc agentfactory.agent.v1.AgentProfileService.ExportProfile
3032
+ */
3033
+ exportProfile: {
3034
+ methodKind: "unary";
3035
+ input: typeof ExportProfileRequestSchema;
3036
+ output: typeof ExportProfileResponseSchema;
3037
+ };
3038
+ /**
3039
+ * @generated from rpc agentfactory.agent.v1.AgentProfileService.ImportProfile
3040
+ */
3041
+ importProfile: {
3042
+ methodKind: "unary";
3043
+ input: typeof ImportProfileRequestSchema;
3044
+ output: typeof ProfileDraftSchema;
3045
+ };
3046
+ /**
3047
+ * @generated from rpc agentfactory.agent.v1.AgentProfileService.ProposeProfile
3048
+ */
3049
+ proposeProfile: {
3050
+ methodKind: "unary";
3051
+ input: typeof ProposeProfileRequestSchema;
3052
+ output: typeof ProfileDraftSchema;
3053
+ };
3054
+ /**
3055
+ * @generated from rpc agentfactory.agent.v1.AgentProfileService.GetProfileDraft
3056
+ */
3057
+ getProfileDraft: {
3058
+ methodKind: "unary";
3059
+ input: typeof GetProfileDraftRequestSchema;
3060
+ output: typeof ProfileDraftSchema;
3061
+ };
3062
+ /**
3063
+ * @generated from rpc agentfactory.agent.v1.AgentProfileService.DecideProfileDraft
3064
+ */
3065
+ decideProfileDraft: {
3066
+ methodKind: "unary";
3067
+ input: typeof DecideProfileDraftRequestSchema;
3068
+ output: typeof ProfileDraftSchema;
3069
+ };
2238
3070
  /**
2239
3071
  * @generated from rpc agentfactory.agent.v1.AgentProfileService.CreateProfile
2240
3072
  */
@@ -2357,6 +3189,14 @@ export declare const AgentCapabilityService: GenService<{
2357
3189
  * @generated from service agentfactory.agent.v1.AgentMemoryService
2358
3190
  */
2359
3191
  export declare const AgentMemoryService: GenService<{
3192
+ /**
3193
+ * @generated from rpc agentfactory.agent.v1.AgentMemoryService.EditMemory
3194
+ */
3195
+ editMemory: {
3196
+ methodKind: "unary";
3197
+ input: typeof EditMemoryRequestSchema;
3198
+ output: typeof MemorySchema;
3199
+ };
2360
3200
  /**
2361
3201
  * @generated from rpc agentfactory.agent.v1.AgentMemoryService.GetMemorySettings
2362
3202
  */
@@ -2389,6 +3229,14 @@ export declare const AgentMemoryService: GenService<{
2389
3229
  input: typeof ConfirmMemoryRequestSchema;
2390
3230
  output: typeof MemorySchema;
2391
3231
  };
3232
+ /**
3233
+ * @generated from rpc agentfactory.agent.v1.AgentMemoryService.ClearMemories
3234
+ */
3235
+ clearMemories: {
3236
+ methodKind: "unary";
3237
+ input: typeof ClearMemoriesRequestSchema;
3238
+ output: typeof ClearMemoriesResponseSchema;
3239
+ };
2392
3240
  /**
2393
3241
  * @generated from rpc agentfactory.agent.v1.AgentMemoryService.DeleteMemory
2394
3242
  */