@rightbrain/brain-api-client 0.0.1-dev.148.1322688 → 0.0.1-dev.150.56bd32f

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.
Files changed (4) hide show
  1. package/api.ts +548 -172
  2. package/dist/api.d.ts +432 -161
  3. package/dist/api.js +321 -89
  4. package/package.json +1 -1
package/api.ts CHANGED
@@ -9606,6 +9606,12 @@ export interface ScheduleTriggerCreate {
9606
9606
  * @memberof ScheduleTriggerCreate
9607
9607
  */
9608
9608
  'target_id': string;
9609
+ /**
9610
+ *
9611
+ * @type {string}
9612
+ * @memberof ScheduleTriggerCreate
9613
+ */
9614
+ 'task_agent_revision_id'?: string | null;
9609
9615
  }
9610
9616
 
9611
9617
 
@@ -9785,6 +9791,12 @@ export interface ScheduleTriggerListItem {
9785
9791
  * @memberof ScheduleTriggerListItem
9786
9792
  */
9787
9793
  'target_id': string;
9794
+ /**
9795
+ *
9796
+ * @type {string}
9797
+ * @memberof ScheduleTriggerListItem
9798
+ */
9799
+ 'task_agent_revision_id'?: string | null;
9788
9800
  /**
9789
9801
  *
9790
9802
  * @type {string}
@@ -9854,6 +9866,12 @@ export interface ScheduleTriggerResponse {
9854
9866
  * @memberof ScheduleTriggerResponse
9855
9867
  */
9856
9868
  'target_id': string;
9869
+ /**
9870
+ *
9871
+ * @type {string}
9872
+ * @memberof ScheduleTriggerResponse
9873
+ */
9874
+ 'task_agent_revision_id'?: string | null;
9857
9875
  /**
9858
9876
  *
9859
9877
  * @type {string}
@@ -9983,6 +10001,12 @@ export interface ScheduleTriggerUpdate {
9983
10001
  * @memberof ScheduleTriggerUpdate
9984
10002
  */
9985
10003
  'expires_at'?: string | null;
10004
+ /**
10005
+ *
10006
+ * @type {string}
10007
+ * @memberof ScheduleTriggerUpdate
10008
+ */
10009
+ 'task_agent_revision_id'?: string | null;
9986
10010
  }
9987
10011
 
9988
10012
 
@@ -10775,7 +10799,7 @@ export interface Tag {
10775
10799
  */
10776
10800
  'parent_id'?: string | null;
10777
10801
  /**
10778
- * The type of entity this tag applies to (task, task_revision, task_share, or skill)
10802
+ * The type of entity this tag applies to (task, task_revision, task_share, skill, or task_agent_revision)
10779
10803
  * @type {string}
10780
10804
  * @memberof Tag
10781
10805
  */
@@ -10828,7 +10852,8 @@ export const TagEntityTypeEnum = {
10828
10852
  Task: 'task',
10829
10853
  TaskRevision: 'task_revision',
10830
10854
  TaskShare: 'task_share',
10831
- Skill: 'skill'
10855
+ Skill: 'skill',
10856
+ TaskAgentRevision: 'task_agent_revision'
10832
10857
  } as const;
10833
10858
 
10834
10859
  export type TagEntityTypeEnum = typeof TagEntityTypeEnum[keyof typeof TagEntityTypeEnum];
@@ -11679,94 +11704,16 @@ export interface TaskAgentRead {
11679
11704
  'name': string;
11680
11705
  /**
11681
11706
  *
11682
- * @type {string}
11683
- * @memberof TaskAgentRead
11684
- */
11685
- 'description': string | null;
11686
- /**
11687
- *
11688
- * @type {string}
11689
- * @memberof TaskAgentRead
11690
- */
11691
- 'instruction': string;
11692
- /**
11693
- *
11694
- * @type {TaskAgentMode}
11707
+ * @type {TaskAgentRevisionSummary}
11695
11708
  * @memberof TaskAgentRead
11696
11709
  */
11697
- 'mode': TaskAgentMode;
11710
+ 'active_revision'?: TaskAgentRevisionSummary;
11698
11711
  /**
11699
11712
  *
11700
- * @type {string}
11713
+ * @type {Array<TaskAgentRevisionRead>}
11701
11714
  * @memberof TaskAgentRead
11702
11715
  */
11703
- 'llm_model_id': string | null;
11704
- /**
11705
- *
11706
- * @type {LLMModel}
11707
- * @memberof TaskAgentRead
11708
- */
11709
- 'llm_model': LLMModel;
11710
- /**
11711
- *
11712
- * @type {string}
11713
- * @memberof TaskAgentRead
11714
- */
11715
- 'fallback_llm_model_id': string | null;
11716
- /**
11717
- *
11718
- * @type {LLMModel}
11719
- * @memberof TaskAgentRead
11720
- */
11721
- 'fallback_llm_model': LLMModel;
11722
- /**
11723
- *
11724
- * @type {Array<TaskAgentTaskToolRead>}
11725
- * @memberof TaskAgentRead
11726
- */
11727
- 'task_tools'?: Array<TaskAgentTaskToolRead>;
11728
- /**
11729
- *
11730
- * @type {Array<TaskAgentIntegrationRead>}
11731
- * @memberof TaskAgentRead
11732
- */
11733
- 'integrations'?: Array<TaskAgentIntegrationRead>;
11734
- /**
11735
- *
11736
- * @type {Array<TaskAgentSkillRead>}
11737
- * @memberof TaskAgentRead
11738
- */
11739
- 'skills'?: Array<TaskAgentSkillRead>;
11740
- /**
11741
- *
11742
- * @type {Array<TaskAgentMcpServerRead>}
11743
- * @memberof TaskAgentRead
11744
- */
11745
- 'mcp_servers'?: Array<TaskAgentMcpServerRead>;
11746
- /**
11747
- *
11748
- * @type {Array<TaskAgentRegisteredToolRead>}
11749
- * @memberof TaskAgentRead
11750
- */
11751
- 'registered_tools'?: Array<TaskAgentRegisteredToolRead>;
11752
- /**
11753
- *
11754
- * @type {string}
11755
- * @memberof TaskAgentRead
11756
- */
11757
- 'memory_strategy'?: string | null;
11758
- /**
11759
- *
11760
- * @type {{ [key: string]: any; }}
11761
- * @memberof TaskAgentRead
11762
- */
11763
- 'memory_config'?: { [key: string]: any; } | null;
11764
- /**
11765
- *
11766
- * @type {number}
11767
- * @memberof TaskAgentRead
11768
- */
11769
- 'max_turns'?: number | null;
11716
+ 'revisions'?: Array<TaskAgentRevisionRead>;
11770
11717
  /**
11771
11718
  *
11772
11719
  * @type {string}
@@ -11888,6 +11835,172 @@ export const TaskAgentRegisteredToolReadProvisionSourceEnum = {
11888
11835
 
11889
11836
  export type TaskAgentRegisteredToolReadProvisionSourceEnum = typeof TaskAgentRegisteredToolReadProvisionSourceEnum[keyof typeof TaskAgentRegisteredToolReadProvisionSourceEnum];
11890
11837
 
11838
+ /**
11839
+ * Full TaskAgent revision read schema.
11840
+ * @export
11841
+ * @interface TaskAgentRevisionRead
11842
+ */
11843
+ export interface TaskAgentRevisionRead {
11844
+ /**
11845
+ *
11846
+ * @type {string}
11847
+ * @memberof TaskAgentRevisionRead
11848
+ */
11849
+ 'id': string;
11850
+ /**
11851
+ *
11852
+ * @type {string}
11853
+ * @memberof TaskAgentRevisionRead
11854
+ */
11855
+ 'task_agent_id': string;
11856
+ /**
11857
+ *
11858
+ * @type {string}
11859
+ * @memberof TaskAgentRevisionRead
11860
+ */
11861
+ 'description': string | null;
11862
+ /**
11863
+ *
11864
+ * @type {string}
11865
+ * @memberof TaskAgentRevisionRead
11866
+ */
11867
+ 'instruction': string;
11868
+ /**
11869
+ *
11870
+ * @type {TaskAgentMode}
11871
+ * @memberof TaskAgentRevisionRead
11872
+ */
11873
+ 'mode': TaskAgentMode;
11874
+ /**
11875
+ *
11876
+ * @type {string}
11877
+ * @memberof TaskAgentRevisionRead
11878
+ */
11879
+ 'llm_model_id': string | null;
11880
+ /**
11881
+ *
11882
+ * @type {LLMModel}
11883
+ * @memberof TaskAgentRevisionRead
11884
+ */
11885
+ 'llm_model'?: LLMModel;
11886
+ /**
11887
+ *
11888
+ * @type {string}
11889
+ * @memberof TaskAgentRevisionRead
11890
+ */
11891
+ 'fallback_llm_model_id': string | null;
11892
+ /**
11893
+ *
11894
+ * @type {LLMModel}
11895
+ * @memberof TaskAgentRevisionRead
11896
+ */
11897
+ 'fallback_llm_model'?: LLMModel;
11898
+ /**
11899
+ *
11900
+ * @type {Array<TaskAgentTaskToolRead>}
11901
+ * @memberof TaskAgentRevisionRead
11902
+ */
11903
+ 'task_tools'?: Array<TaskAgentTaskToolRead>;
11904
+ /**
11905
+ *
11906
+ * @type {Array<TaskAgentIntegrationRead>}
11907
+ * @memberof TaskAgentRevisionRead
11908
+ */
11909
+ 'integrations'?: Array<TaskAgentIntegrationRead>;
11910
+ /**
11911
+ *
11912
+ * @type {Array<TaskAgentSkillRead>}
11913
+ * @memberof TaskAgentRevisionRead
11914
+ */
11915
+ 'skills'?: Array<TaskAgentSkillRead>;
11916
+ /**
11917
+ *
11918
+ * @type {Array<TaskAgentMcpServerRead>}
11919
+ * @memberof TaskAgentRevisionRead
11920
+ */
11921
+ 'mcp_servers'?: Array<TaskAgentMcpServerRead>;
11922
+ /**
11923
+ *
11924
+ * @type {Array<TaskAgentRegisteredToolRead>}
11925
+ * @memberof TaskAgentRevisionRead
11926
+ */
11927
+ 'registered_tools'?: Array<TaskAgentRegisteredToolRead>;
11928
+ /**
11929
+ *
11930
+ * @type {Array<Tag>}
11931
+ * @memberof TaskAgentRevisionRead
11932
+ */
11933
+ 'tags'?: Array<Tag>;
11934
+ /**
11935
+ *
11936
+ * @type {string}
11937
+ * @memberof TaskAgentRevisionRead
11938
+ */
11939
+ 'memory_strategy'?: string | null;
11940
+ /**
11941
+ *
11942
+ * @type {{ [key: string]: any; }}
11943
+ * @memberof TaskAgentRevisionRead
11944
+ */
11945
+ 'memory_config'?: { [key: string]: any; } | null;
11946
+ /**
11947
+ *
11948
+ * @type {number}
11949
+ * @memberof TaskAgentRevisionRead
11950
+ */
11951
+ 'max_turns'?: number | null;
11952
+ /**
11953
+ *
11954
+ * @type {boolean}
11955
+ * @memberof TaskAgentRevisionRead
11956
+ */
11957
+ 'active'?: boolean;
11958
+ /**
11959
+ *
11960
+ * @type {string}
11961
+ * @memberof TaskAgentRevisionRead
11962
+ */
11963
+ 'created': string;
11964
+ /**
11965
+ *
11966
+ * @type {string}
11967
+ * @memberof TaskAgentRevisionRead
11968
+ */
11969
+ 'modified'?: string | null;
11970
+ }
11971
+
11972
+
11973
+ /**
11974
+ * Summary of the active TaskAgent revision.
11975
+ * @export
11976
+ * @interface TaskAgentRevisionSummary
11977
+ */
11978
+ export interface TaskAgentRevisionSummary {
11979
+ /**
11980
+ *
11981
+ * @type {string}
11982
+ * @memberof TaskAgentRevisionSummary
11983
+ */
11984
+ 'id': string;
11985
+ /**
11986
+ *
11987
+ * @type {string}
11988
+ * @memberof TaskAgentRevisionSummary
11989
+ */
11990
+ 'task_agent_id': string;
11991
+ /**
11992
+ *
11993
+ * @type {string}
11994
+ * @memberof TaskAgentRevisionSummary
11995
+ */
11996
+ 'created': string;
11997
+ /**
11998
+ *
11999
+ * @type {string}
12000
+ * @memberof TaskAgentRevisionSummary
12001
+ */
12002
+ 'modified'?: string | null;
12003
+ }
11891
12004
  /**
11892
12005
  * Response containing events for a TaskAgentRun.
11893
12006
  * @export
@@ -12012,6 +12125,12 @@ export interface TaskAgentRunRead {
12012
12125
  * @memberof TaskAgentRunRead
12013
12126
  */
12014
12127
  'task_agent_id': string;
12128
+ /**
12129
+ *
12130
+ * @type {string}
12131
+ * @memberof TaskAgentRunRead
12132
+ */
12133
+ 'task_agent_revision_id'?: string | null;
12015
12134
  /**
12016
12135
  * ADK session ID (string format).
12017
12136
  * @type {string}
@@ -12394,6 +12513,12 @@ export interface TaskAgentTaskToolInput {
12394
12513
  * @memberof TaskAgentTaskToolInput
12395
12514
  */
12396
12515
  'task_id': string;
12516
+ /**
12517
+ * Optional pinned TaskRevision. When omitted, the current active TaskRevision is resolved and pinned at write time.
12518
+ * @type {string}
12519
+ * @memberof TaskAgentTaskToolInput
12520
+ */
12521
+ 'task_revision_id'?: string | null;
12397
12522
  /**
12398
12523
  * Mark this task tool as the output formatter. Only one task tool per agent can be marked.
12399
12524
  * @type {boolean}
@@ -12419,6 +12544,12 @@ export interface TaskAgentTaskToolRead {
12419
12544
  * @memberof TaskAgentTaskToolRead
12420
12545
  */
12421
12546
  'task_id': string;
12547
+ /**
12548
+ * Pinned TaskRevision used when executing this task tool.
12549
+ * @type {string}
12550
+ * @memberof TaskAgentTaskToolRead
12551
+ */
12552
+ 'task_revision_id'?: string | null;
12422
12553
  /**
12423
12554
  * Name of the Task linked as a task tool.
12424
12555
  * @type {string}
@@ -12635,6 +12766,12 @@ export interface TaskAgentUpdate {
12635
12766
  * @memberof TaskAgentUpdate
12636
12767
  */
12637
12768
  'task_agent_run_visibility'?: TaskAgentUpdateTaskAgentRunVisibilityEnum | null;
12769
+ /**
12770
+ * Existing TaskAgent revision to activate. Omit to leave the active revision unchanged.
12771
+ * @type {string}
12772
+ * @memberof TaskAgentUpdate
12773
+ */
12774
+ 'active_revision_id'?: string | null;
12638
12775
  }
12639
12776
 
12640
12777
  export const TaskAgentUpdateMemoryStrategyEnum = {
@@ -14700,6 +14837,12 @@ export interface TaskToolInvocationRead {
14700
14837
  * @memberof TaskToolInvocationRead
14701
14838
  */
14702
14839
  'task_id': string;
14840
+ /**
14841
+ * TaskRevision ID used for this invocation.
14842
+ * @type {string}
14843
+ * @memberof TaskToolInvocationRead
14844
+ */
14845
+ 'task_revision_id'?: string | null;
14703
14846
  /**
14704
14847
  *
14705
14848
  * @type {string}
@@ -15548,6 +15691,12 @@ export interface WebhookTriggerCreate {
15548
15691
  * @memberof WebhookTriggerCreate
15549
15692
  */
15550
15693
  'target_id': string;
15694
+ /**
15695
+ * Optional pinned TaskAgent revision for TaskAgent triggers.
15696
+ * @type {string}
15697
+ * @memberof WebhookTriggerCreate
15698
+ */
15699
+ 'task_agent_revision_id'?: string | null;
15551
15700
  }
15552
15701
 
15553
15702
  export const WebhookTriggerCreateAuthMethodEnum = {
@@ -15812,6 +15961,12 @@ export interface WebhookTriggerListItem {
15812
15961
  * @memberof WebhookTriggerListItem
15813
15962
  */
15814
15963
  'target_id': string;
15964
+ /**
15965
+ * Optional pinned TaskAgent revision for TaskAgent triggers.
15966
+ * @type {string}
15967
+ * @memberof WebhookTriggerListItem
15968
+ */
15969
+ 'task_agent_revision_id'?: string | null;
15815
15970
  /**
15816
15971
  * The type of trigger (webhook for this endpoint).
15817
15972
  * @type {string}
@@ -15875,6 +16030,12 @@ export interface WebhookTriggerResponse {
15875
16030
  * @memberof WebhookTriggerResponse
15876
16031
  */
15877
16032
  'target_id': string;
16033
+ /**
16034
+ * Optional pinned TaskAgent revision for TaskAgent triggers.
16035
+ * @type {string}
16036
+ * @memberof WebhookTriggerResponse
16037
+ */
16038
+ 'task_agent_revision_id'?: string | null;
15878
16039
  /**
15879
16040
  * The type of trigger (webhook for this endpoint).
15880
16041
  * @type {string}
@@ -16022,6 +16183,12 @@ export interface WebhookTriggerUpdate {
16022
16183
  * @memberof WebhookTriggerUpdate
16023
16184
  */
16024
16185
  'idempotency_ttl_seconds'?: number | null;
16186
+ /**
16187
+ * Optional pinned TaskAgent revision for TaskAgent triggers.
16188
+ * @type {string}
16189
+ * @memberof WebhookTriggerUpdate
16190
+ */
16191
+ 'task_agent_revision_id'?: string | null;
16025
16192
  }
16026
16193
 
16027
16194
 
@@ -16049,6 +16216,12 @@ export interface WebhookTriggerWithSecret {
16049
16216
  * @memberof WebhookTriggerWithSecret
16050
16217
  */
16051
16218
  'target_id': string;
16219
+ /**
16220
+ * Optional pinned TaskAgent revision for TaskAgent triggers.
16221
+ * @type {string}
16222
+ * @memberof WebhookTriggerWithSecret
16223
+ */
16224
+ 'task_agent_revision_id'?: string | null;
16052
16225
  /**
16053
16226
  * The type of trigger (webhook for this endpoint).
16054
16227
  * @type {string}
@@ -37043,11 +37216,11 @@ export class SystemApi extends BaseAPI {
37043
37216
  export const TagsApiAxiosParamCreator = function (configuration?: Configuration) {
37044
37217
  return {
37045
37218
  /**
37046
- * Add a tag to multiple entities at once
37219
+ * Add a tag to multiple supported entities at once.
37047
37220
  * @summary Add Tag to Entities
37048
37221
  * @param {string} orgId The unique identifier of the organization.
37049
37222
  * @param {string} projectId The unique identifier of the project.
37050
- * @param {AddTagToEntitiesEntityTypeEnum} entityType The type of entity this tag applies to (&#x60;task&#x60;, &#x60;task_revision&#x60;, &#x60;task_share&#x60;, or &#x60;skill&#x60;).
37223
+ * @param {AddTagToEntitiesEntityTypeEnum} entityType The type of entity this tag applies to (&#x60;task&#x60;, &#x60;task_revision&#x60;, &#x60;task_share&#x60;, &#x60;skill&#x60;, or &#x60;task_agent_revision&#x60;).
37051
37224
  * @param {string} tagId The unique identifier (UUID) of the tag to operate on.
37052
37225
  * @param {TagEntityAdd} tagEntityAdd
37053
37226
  * @param {*} [options] Override http request option.
@@ -37099,11 +37272,11 @@ export const TagsApiAxiosParamCreator = function (configuration?: Configuration)
37099
37272
  };
37100
37273
  },
37101
37274
  /**
37102
- * Create a new tag for organizing resources. Tags can be applied to: - Tasks and task revisions - Collections - Documents - Other resources Tags support hierarchical organization using prefixes.
37275
+ * Create a new tag for organizing resources. Tags can be applied to supported entity types: - Tasks - Task revisions - Task shares - Skills - TaskAgent revisions Tags support hierarchical organization using prefixes.
37103
37276
  * @summary Create Tag
37104
37277
  * @param {string} orgId The unique identifier of the organization.
37105
37278
  * @param {string} projectId The unique identifier of the project.
37106
- * @param {CreateTagEntityTypeEnum} entityType The type of entity this tag applies to (&#x60;task&#x60;, &#x60;task_revision&#x60;, &#x60;task_share&#x60;, or &#x60;skill&#x60;).
37279
+ * @param {CreateTagEntityTypeEnum} entityType The type of entity this tag applies to (&#x60;task&#x60;, &#x60;task_revision&#x60;, &#x60;task_share&#x60;, &#x60;skill&#x60;, or &#x60;task_agent_revision&#x60;).
37107
37280
  * @param {TagCreate} tagCreate
37108
37281
  * @param {*} [options] Override http request option.
37109
37282
  * @throws {RequiredError}
@@ -37197,11 +37370,11 @@ export const TagsApiAxiosParamCreator = function (configuration?: Configuration)
37197
37370
  };
37198
37371
  },
37199
37372
  /**
37200
- * Get tag details
37373
+ * Get tag details for the requested entity type.
37201
37374
  * @summary Get Tag
37202
37375
  * @param {string} orgId The unique identifier of the organization.
37203
37376
  * @param {string} projectId The unique identifier of the project.
37204
- * @param {GetTagEntityTypeEnum} entityType The type of entity this tag applies to (&#x60;task&#x60;, &#x60;task_revision&#x60;, &#x60;task_share&#x60;, or &#x60;skill&#x60;).
37377
+ * @param {GetTagEntityTypeEnum} entityType The type of entity this tag applies to (&#x60;task&#x60;, &#x60;task_revision&#x60;, &#x60;task_share&#x60;, &#x60;skill&#x60;, or &#x60;task_agent_revision&#x60;).
37205
37378
  * @param {string} tagId The unique identifier (UUID) of the tag to operate on.
37206
37379
  * @param {*} [options] Override http request option.
37207
37380
  * @throws {RequiredError}
@@ -37247,11 +37420,11 @@ export const TagsApiAxiosParamCreator = function (configuration?: Configuration)
37247
37420
  };
37248
37421
  },
37249
37422
  /**
37250
- * List all tags in the project
37423
+ * List all tags in the project for the requested entity type.
37251
37424
  * @summary List Tags
37252
37425
  * @param {string} orgId The unique identifier of the organization.
37253
37426
  * @param {string} projectId The unique identifier of the project.
37254
- * @param {ListTagsEntityTypeEnum} entityType The type of entity this tag applies to (&#x60;task&#x60;, &#x60;task_revision&#x60;, &#x60;task_share&#x60;, or &#x60;skill&#x60;).
37427
+ * @param {ListTagsEntityTypeEnum} entityType The type of entity this tag applies to (&#x60;task&#x60;, &#x60;task_revision&#x60;, &#x60;task_share&#x60;, &#x60;skill&#x60;, or &#x60;task_agent_revision&#x60;).
37255
37428
  * @param {number | null} [pageLimit] The maximum number of items to return per page. Defaults to &#x60;100&#x60; if not specified.
37256
37429
  * @param {string | null} [cursor] A cursor for pagination. Use the &#x60;next_cursor&#x60; value from the previous response to get the next page of results.
37257
37430
  * @param {*} [options] Override http request option.
@@ -37303,11 +37476,11 @@ export const TagsApiAxiosParamCreator = function (configuration?: Configuration)
37303
37476
  };
37304
37477
  },
37305
37478
  /**
37306
- * Remove a tag from multiple entities at once
37479
+ * Remove a tag from multiple supported entities at once.
37307
37480
  * @summary Remove Tag from Entities
37308
37481
  * @param {string} orgId The unique identifier of the organization.
37309
37482
  * @param {string} projectId The unique identifier of the project.
37310
- * @param {RemoveTagFromEntitiesEntityTypeEnum} entityType The type of entity this tag applies to (&#x60;task&#x60;, &#x60;task_revision&#x60;, &#x60;task_share&#x60;, or &#x60;skill&#x60;).
37483
+ * @param {RemoveTagFromEntitiesEntityTypeEnum} entityType The type of entity this tag applies to (&#x60;task&#x60;, &#x60;task_revision&#x60;, &#x60;task_share&#x60;, &#x60;skill&#x60;, or &#x60;task_agent_revision&#x60;).
37311
37484
  * @param {string} tagId The unique identifier (UUID) of the tag to operate on.
37312
37485
  * @param {TagEntityRemove} tagEntityRemove
37313
37486
  * @param {*} [options] Override http request option.
@@ -37363,7 +37536,7 @@ export const TagsApiAxiosParamCreator = function (configuration?: Configuration)
37363
37536
  * @summary Update Tag
37364
37537
  * @param {string} orgId The unique identifier of the organization.
37365
37538
  * @param {string} projectId The unique identifier of the project.
37366
- * @param {UpdateTagEntityTypeEnum} entityType The type of entity this tag applies to (&#x60;task&#x60;, &#x60;task_revision&#x60;, &#x60;task_share&#x60;, or &#x60;skill&#x60;).
37539
+ * @param {UpdateTagEntityTypeEnum} entityType The type of entity this tag applies to (&#x60;task&#x60;, &#x60;task_revision&#x60;, &#x60;task_share&#x60;, &#x60;skill&#x60;, or &#x60;task_agent_revision&#x60;).
37367
37540
  * @param {string} tagId The unique identifier (UUID) of the tag to operate on.
37368
37541
  * @param {TagUpdate} tagUpdate
37369
37542
  * @param {*} [options] Override http request option.
@@ -37425,11 +37598,11 @@ export const TagsApiFp = function(configuration?: Configuration) {
37425
37598
  const localVarAxiosParamCreator = TagsApiAxiosParamCreator(configuration)
37426
37599
  return {
37427
37600
  /**
37428
- * Add a tag to multiple entities at once
37601
+ * Add a tag to multiple supported entities at once.
37429
37602
  * @summary Add Tag to Entities
37430
37603
  * @param {string} orgId The unique identifier of the organization.
37431
37604
  * @param {string} projectId The unique identifier of the project.
37432
- * @param {AddTagToEntitiesEntityTypeEnum} entityType The type of entity this tag applies to (&#x60;task&#x60;, &#x60;task_revision&#x60;, &#x60;task_share&#x60;, or &#x60;skill&#x60;).
37605
+ * @param {AddTagToEntitiesEntityTypeEnum} entityType The type of entity this tag applies to (&#x60;task&#x60;, &#x60;task_revision&#x60;, &#x60;task_share&#x60;, &#x60;skill&#x60;, or &#x60;task_agent_revision&#x60;).
37433
37606
  * @param {string} tagId The unique identifier (UUID) of the tag to operate on.
37434
37607
  * @param {TagEntityAdd} tagEntityAdd
37435
37608
  * @param {*} [options] Override http request option.
@@ -37442,11 +37615,11 @@ export const TagsApiFp = function(configuration?: Configuration) {
37442
37615
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
37443
37616
  },
37444
37617
  /**
37445
- * Create a new tag for organizing resources. Tags can be applied to: - Tasks and task revisions - Collections - Documents - Other resources Tags support hierarchical organization using prefixes.
37618
+ * Create a new tag for organizing resources. Tags can be applied to supported entity types: - Tasks - Task revisions - Task shares - Skills - TaskAgent revisions Tags support hierarchical organization using prefixes.
37446
37619
  * @summary Create Tag
37447
37620
  * @param {string} orgId The unique identifier of the organization.
37448
37621
  * @param {string} projectId The unique identifier of the project.
37449
- * @param {CreateTagEntityTypeEnum} entityType The type of entity this tag applies to (&#x60;task&#x60;, &#x60;task_revision&#x60;, &#x60;task_share&#x60;, or &#x60;skill&#x60;).
37622
+ * @param {CreateTagEntityTypeEnum} entityType The type of entity this tag applies to (&#x60;task&#x60;, &#x60;task_revision&#x60;, &#x60;task_share&#x60;, &#x60;skill&#x60;, or &#x60;task_agent_revision&#x60;).
37450
37623
  * @param {TagCreate} tagCreate
37451
37624
  * @param {*} [options] Override http request option.
37452
37625
  * @throws {RequiredError}
@@ -37473,11 +37646,11 @@ export const TagsApiFp = function(configuration?: Configuration) {
37473
37646
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
37474
37647
  },
37475
37648
  /**
37476
- * Get tag details
37649
+ * Get tag details for the requested entity type.
37477
37650
  * @summary Get Tag
37478
37651
  * @param {string} orgId The unique identifier of the organization.
37479
37652
  * @param {string} projectId The unique identifier of the project.
37480
- * @param {GetTagEntityTypeEnum} entityType The type of entity this tag applies to (&#x60;task&#x60;, &#x60;task_revision&#x60;, &#x60;task_share&#x60;, or &#x60;skill&#x60;).
37653
+ * @param {GetTagEntityTypeEnum} entityType The type of entity this tag applies to (&#x60;task&#x60;, &#x60;task_revision&#x60;, &#x60;task_share&#x60;, &#x60;skill&#x60;, or &#x60;task_agent_revision&#x60;).
37481
37654
  * @param {string} tagId The unique identifier (UUID) of the tag to operate on.
37482
37655
  * @param {*} [options] Override http request option.
37483
37656
  * @throws {RequiredError}
@@ -37489,11 +37662,11 @@ export const TagsApiFp = function(configuration?: Configuration) {
37489
37662
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
37490
37663
  },
37491
37664
  /**
37492
- * List all tags in the project
37665
+ * List all tags in the project for the requested entity type.
37493
37666
  * @summary List Tags
37494
37667
  * @param {string} orgId The unique identifier of the organization.
37495
37668
  * @param {string} projectId The unique identifier of the project.
37496
- * @param {ListTagsEntityTypeEnum} entityType The type of entity this tag applies to (&#x60;task&#x60;, &#x60;task_revision&#x60;, &#x60;task_share&#x60;, or &#x60;skill&#x60;).
37669
+ * @param {ListTagsEntityTypeEnum} entityType The type of entity this tag applies to (&#x60;task&#x60;, &#x60;task_revision&#x60;, &#x60;task_share&#x60;, &#x60;skill&#x60;, or &#x60;task_agent_revision&#x60;).
37497
37670
  * @param {number | null} [pageLimit] The maximum number of items to return per page. Defaults to &#x60;100&#x60; if not specified.
37498
37671
  * @param {string | null} [cursor] A cursor for pagination. Use the &#x60;next_cursor&#x60; value from the previous response to get the next page of results.
37499
37672
  * @param {*} [options] Override http request option.
@@ -37506,11 +37679,11 @@ export const TagsApiFp = function(configuration?: Configuration) {
37506
37679
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
37507
37680
  },
37508
37681
  /**
37509
- * Remove a tag from multiple entities at once
37682
+ * Remove a tag from multiple supported entities at once.
37510
37683
  * @summary Remove Tag from Entities
37511
37684
  * @param {string} orgId The unique identifier of the organization.
37512
37685
  * @param {string} projectId The unique identifier of the project.
37513
- * @param {RemoveTagFromEntitiesEntityTypeEnum} entityType The type of entity this tag applies to (&#x60;task&#x60;, &#x60;task_revision&#x60;, &#x60;task_share&#x60;, or &#x60;skill&#x60;).
37686
+ * @param {RemoveTagFromEntitiesEntityTypeEnum} entityType The type of entity this tag applies to (&#x60;task&#x60;, &#x60;task_revision&#x60;, &#x60;task_share&#x60;, &#x60;skill&#x60;, or &#x60;task_agent_revision&#x60;).
37514
37687
  * @param {string} tagId The unique identifier (UUID) of the tag to operate on.
37515
37688
  * @param {TagEntityRemove} tagEntityRemove
37516
37689
  * @param {*} [options] Override http request option.
@@ -37527,7 +37700,7 @@ export const TagsApiFp = function(configuration?: Configuration) {
37527
37700
  * @summary Update Tag
37528
37701
  * @param {string} orgId The unique identifier of the organization.
37529
37702
  * @param {string} projectId The unique identifier of the project.
37530
- * @param {UpdateTagEntityTypeEnum} entityType The type of entity this tag applies to (&#x60;task&#x60;, &#x60;task_revision&#x60;, &#x60;task_share&#x60;, or &#x60;skill&#x60;).
37703
+ * @param {UpdateTagEntityTypeEnum} entityType The type of entity this tag applies to (&#x60;task&#x60;, &#x60;task_revision&#x60;, &#x60;task_share&#x60;, &#x60;skill&#x60;, or &#x60;task_agent_revision&#x60;).
37531
37704
  * @param {string} tagId The unique identifier (UUID) of the tag to operate on.
37532
37705
  * @param {TagUpdate} tagUpdate
37533
37706
  * @param {*} [options] Override http request option.
@@ -37550,11 +37723,11 @@ export const TagsApiFactory = function (configuration?: Configuration, basePath?
37550
37723
  const localVarFp = TagsApiFp(configuration)
37551
37724
  return {
37552
37725
  /**
37553
- * Add a tag to multiple entities at once
37726
+ * Add a tag to multiple supported entities at once.
37554
37727
  * @summary Add Tag to Entities
37555
37728
  * @param {string} orgId The unique identifier of the organization.
37556
37729
  * @param {string} projectId The unique identifier of the project.
37557
- * @param {AddTagToEntitiesEntityTypeEnum} entityType The type of entity this tag applies to (&#x60;task&#x60;, &#x60;task_revision&#x60;, &#x60;task_share&#x60;, or &#x60;skill&#x60;).
37730
+ * @param {AddTagToEntitiesEntityTypeEnum} entityType The type of entity this tag applies to (&#x60;task&#x60;, &#x60;task_revision&#x60;, &#x60;task_share&#x60;, &#x60;skill&#x60;, or &#x60;task_agent_revision&#x60;).
37558
37731
  * @param {string} tagId The unique identifier (UUID) of the tag to operate on.
37559
37732
  * @param {TagEntityAdd} tagEntityAdd
37560
37733
  * @param {*} [options] Override http request option.
@@ -37564,11 +37737,11 @@ export const TagsApiFactory = function (configuration?: Configuration, basePath?
37564
37737
  return localVarFp.addTagToEntities(orgId, projectId, entityType, tagId, tagEntityAdd, options).then((request) => request(axios, basePath));
37565
37738
  },
37566
37739
  /**
37567
- * Create a new tag for organizing resources. Tags can be applied to: - Tasks and task revisions - Collections - Documents - Other resources Tags support hierarchical organization using prefixes.
37740
+ * Create a new tag for organizing resources. Tags can be applied to supported entity types: - Tasks - Task revisions - Task shares - Skills - TaskAgent revisions Tags support hierarchical organization using prefixes.
37568
37741
  * @summary Create Tag
37569
37742
  * @param {string} orgId The unique identifier of the organization.
37570
37743
  * @param {string} projectId The unique identifier of the project.
37571
- * @param {CreateTagEntityTypeEnum} entityType The type of entity this tag applies to (&#x60;task&#x60;, &#x60;task_revision&#x60;, &#x60;task_share&#x60;, or &#x60;skill&#x60;).
37744
+ * @param {CreateTagEntityTypeEnum} entityType The type of entity this tag applies to (&#x60;task&#x60;, &#x60;task_revision&#x60;, &#x60;task_share&#x60;, &#x60;skill&#x60;, or &#x60;task_agent_revision&#x60;).
37572
37745
  * @param {TagCreate} tagCreate
37573
37746
  * @param {*} [options] Override http request option.
37574
37747
  * @throws {RequiredError}
@@ -37589,11 +37762,11 @@ export const TagsApiFactory = function (configuration?: Configuration, basePath?
37589
37762
  return localVarFp.deleteTag(orgId, projectId, tagId, options).then((request) => request(axios, basePath));
37590
37763
  },
37591
37764
  /**
37592
- * Get tag details
37765
+ * Get tag details for the requested entity type.
37593
37766
  * @summary Get Tag
37594
37767
  * @param {string} orgId The unique identifier of the organization.
37595
37768
  * @param {string} projectId The unique identifier of the project.
37596
- * @param {GetTagEntityTypeEnum} entityType The type of entity this tag applies to (&#x60;task&#x60;, &#x60;task_revision&#x60;, &#x60;task_share&#x60;, or &#x60;skill&#x60;).
37769
+ * @param {GetTagEntityTypeEnum} entityType The type of entity this tag applies to (&#x60;task&#x60;, &#x60;task_revision&#x60;, &#x60;task_share&#x60;, &#x60;skill&#x60;, or &#x60;task_agent_revision&#x60;).
37597
37770
  * @param {string} tagId The unique identifier (UUID) of the tag to operate on.
37598
37771
  * @param {*} [options] Override http request option.
37599
37772
  * @throws {RequiredError}
@@ -37602,11 +37775,11 @@ export const TagsApiFactory = function (configuration?: Configuration, basePath?
37602
37775
  return localVarFp.getTag(orgId, projectId, entityType, tagId, options).then((request) => request(axios, basePath));
37603
37776
  },
37604
37777
  /**
37605
- * List all tags in the project
37778
+ * List all tags in the project for the requested entity type.
37606
37779
  * @summary List Tags
37607
37780
  * @param {string} orgId The unique identifier of the organization.
37608
37781
  * @param {string} projectId The unique identifier of the project.
37609
- * @param {ListTagsEntityTypeEnum} entityType The type of entity this tag applies to (&#x60;task&#x60;, &#x60;task_revision&#x60;, &#x60;task_share&#x60;, or &#x60;skill&#x60;).
37782
+ * @param {ListTagsEntityTypeEnum} entityType The type of entity this tag applies to (&#x60;task&#x60;, &#x60;task_revision&#x60;, &#x60;task_share&#x60;, &#x60;skill&#x60;, or &#x60;task_agent_revision&#x60;).
37610
37783
  * @param {number | null} [pageLimit] The maximum number of items to return per page. Defaults to &#x60;100&#x60; if not specified.
37611
37784
  * @param {string | null} [cursor] A cursor for pagination. Use the &#x60;next_cursor&#x60; value from the previous response to get the next page of results.
37612
37785
  * @param {*} [options] Override http request option.
@@ -37616,11 +37789,11 @@ export const TagsApiFactory = function (configuration?: Configuration, basePath?
37616
37789
  return localVarFp.listTags(orgId, projectId, entityType, pageLimit, cursor, options).then((request) => request(axios, basePath));
37617
37790
  },
37618
37791
  /**
37619
- * Remove a tag from multiple entities at once
37792
+ * Remove a tag from multiple supported entities at once.
37620
37793
  * @summary Remove Tag from Entities
37621
37794
  * @param {string} orgId The unique identifier of the organization.
37622
37795
  * @param {string} projectId The unique identifier of the project.
37623
- * @param {RemoveTagFromEntitiesEntityTypeEnum} entityType The type of entity this tag applies to (&#x60;task&#x60;, &#x60;task_revision&#x60;, &#x60;task_share&#x60;, or &#x60;skill&#x60;).
37796
+ * @param {RemoveTagFromEntitiesEntityTypeEnum} entityType The type of entity this tag applies to (&#x60;task&#x60;, &#x60;task_revision&#x60;, &#x60;task_share&#x60;, &#x60;skill&#x60;, or &#x60;task_agent_revision&#x60;).
37624
37797
  * @param {string} tagId The unique identifier (UUID) of the tag to operate on.
37625
37798
  * @param {TagEntityRemove} tagEntityRemove
37626
37799
  * @param {*} [options] Override http request option.
@@ -37634,7 +37807,7 @@ export const TagsApiFactory = function (configuration?: Configuration, basePath?
37634
37807
  * @summary Update Tag
37635
37808
  * @param {string} orgId The unique identifier of the organization.
37636
37809
  * @param {string} projectId The unique identifier of the project.
37637
- * @param {UpdateTagEntityTypeEnum} entityType The type of entity this tag applies to (&#x60;task&#x60;, &#x60;task_revision&#x60;, &#x60;task_share&#x60;, or &#x60;skill&#x60;).
37810
+ * @param {UpdateTagEntityTypeEnum} entityType The type of entity this tag applies to (&#x60;task&#x60;, &#x60;task_revision&#x60;, &#x60;task_share&#x60;, &#x60;skill&#x60;, or &#x60;task_agent_revision&#x60;).
37638
37811
  * @param {string} tagId The unique identifier (UUID) of the tag to operate on.
37639
37812
  * @param {TagUpdate} tagUpdate
37640
37813
  * @param {*} [options] Override http request option.
@@ -37654,11 +37827,11 @@ export const TagsApiFactory = function (configuration?: Configuration, basePath?
37654
37827
  */
37655
37828
  export class TagsApi extends BaseAPI {
37656
37829
  /**
37657
- * Add a tag to multiple entities at once
37830
+ * Add a tag to multiple supported entities at once.
37658
37831
  * @summary Add Tag to Entities
37659
37832
  * @param {string} orgId The unique identifier of the organization.
37660
37833
  * @param {string} projectId The unique identifier of the project.
37661
- * @param {AddTagToEntitiesEntityTypeEnum} entityType The type of entity this tag applies to (&#x60;task&#x60;, &#x60;task_revision&#x60;, &#x60;task_share&#x60;, or &#x60;skill&#x60;).
37834
+ * @param {AddTagToEntitiesEntityTypeEnum} entityType The type of entity this tag applies to (&#x60;task&#x60;, &#x60;task_revision&#x60;, &#x60;task_share&#x60;, &#x60;skill&#x60;, or &#x60;task_agent_revision&#x60;).
37662
37835
  * @param {string} tagId The unique identifier (UUID) of the tag to operate on.
37663
37836
  * @param {TagEntityAdd} tagEntityAdd
37664
37837
  * @param {*} [options] Override http request option.
@@ -37670,11 +37843,11 @@ export class TagsApi extends BaseAPI {
37670
37843
  }
37671
37844
 
37672
37845
  /**
37673
- * Create a new tag for organizing resources. Tags can be applied to: - Tasks and task revisions - Collections - Documents - Other resources Tags support hierarchical organization using prefixes.
37846
+ * Create a new tag for organizing resources. Tags can be applied to supported entity types: - Tasks - Task revisions - Task shares - Skills - TaskAgent revisions Tags support hierarchical organization using prefixes.
37674
37847
  * @summary Create Tag
37675
37848
  * @param {string} orgId The unique identifier of the organization.
37676
37849
  * @param {string} projectId The unique identifier of the project.
37677
- * @param {CreateTagEntityTypeEnum} entityType The type of entity this tag applies to (&#x60;task&#x60;, &#x60;task_revision&#x60;, &#x60;task_share&#x60;, or &#x60;skill&#x60;).
37850
+ * @param {CreateTagEntityTypeEnum} entityType The type of entity this tag applies to (&#x60;task&#x60;, &#x60;task_revision&#x60;, &#x60;task_share&#x60;, &#x60;skill&#x60;, or &#x60;task_agent_revision&#x60;).
37678
37851
  * @param {TagCreate} tagCreate
37679
37852
  * @param {*} [options] Override http request option.
37680
37853
  * @throws {RequiredError}
@@ -37699,11 +37872,11 @@ export class TagsApi extends BaseAPI {
37699
37872
  }
37700
37873
 
37701
37874
  /**
37702
- * Get tag details
37875
+ * Get tag details for the requested entity type.
37703
37876
  * @summary Get Tag
37704
37877
  * @param {string} orgId The unique identifier of the organization.
37705
37878
  * @param {string} projectId The unique identifier of the project.
37706
- * @param {GetTagEntityTypeEnum} entityType The type of entity this tag applies to (&#x60;task&#x60;, &#x60;task_revision&#x60;, &#x60;task_share&#x60;, or &#x60;skill&#x60;).
37879
+ * @param {GetTagEntityTypeEnum} entityType The type of entity this tag applies to (&#x60;task&#x60;, &#x60;task_revision&#x60;, &#x60;task_share&#x60;, &#x60;skill&#x60;, or &#x60;task_agent_revision&#x60;).
37707
37880
  * @param {string} tagId The unique identifier (UUID) of the tag to operate on.
37708
37881
  * @param {*} [options] Override http request option.
37709
37882
  * @throws {RequiredError}
@@ -37714,11 +37887,11 @@ export class TagsApi extends BaseAPI {
37714
37887
  }
37715
37888
 
37716
37889
  /**
37717
- * List all tags in the project
37890
+ * List all tags in the project for the requested entity type.
37718
37891
  * @summary List Tags
37719
37892
  * @param {string} orgId The unique identifier of the organization.
37720
37893
  * @param {string} projectId The unique identifier of the project.
37721
- * @param {ListTagsEntityTypeEnum} entityType The type of entity this tag applies to (&#x60;task&#x60;, &#x60;task_revision&#x60;, &#x60;task_share&#x60;, or &#x60;skill&#x60;).
37894
+ * @param {ListTagsEntityTypeEnum} entityType The type of entity this tag applies to (&#x60;task&#x60;, &#x60;task_revision&#x60;, &#x60;task_share&#x60;, &#x60;skill&#x60;, or &#x60;task_agent_revision&#x60;).
37722
37895
  * @param {number | null} [pageLimit] The maximum number of items to return per page. Defaults to &#x60;100&#x60; if not specified.
37723
37896
  * @param {string | null} [cursor] A cursor for pagination. Use the &#x60;next_cursor&#x60; value from the previous response to get the next page of results.
37724
37897
  * @param {*} [options] Override http request option.
@@ -37730,11 +37903,11 @@ export class TagsApi extends BaseAPI {
37730
37903
  }
37731
37904
 
37732
37905
  /**
37733
- * Remove a tag from multiple entities at once
37906
+ * Remove a tag from multiple supported entities at once.
37734
37907
  * @summary Remove Tag from Entities
37735
37908
  * @param {string} orgId The unique identifier of the organization.
37736
37909
  * @param {string} projectId The unique identifier of the project.
37737
- * @param {RemoveTagFromEntitiesEntityTypeEnum} entityType The type of entity this tag applies to (&#x60;task&#x60;, &#x60;task_revision&#x60;, &#x60;task_share&#x60;, or &#x60;skill&#x60;).
37910
+ * @param {RemoveTagFromEntitiesEntityTypeEnum} entityType The type of entity this tag applies to (&#x60;task&#x60;, &#x60;task_revision&#x60;, &#x60;task_share&#x60;, &#x60;skill&#x60;, or &#x60;task_agent_revision&#x60;).
37738
37911
  * @param {string} tagId The unique identifier (UUID) of the tag to operate on.
37739
37912
  * @param {TagEntityRemove} tagEntityRemove
37740
37913
  * @param {*} [options] Override http request option.
@@ -37750,7 +37923,7 @@ export class TagsApi extends BaseAPI {
37750
37923
  * @summary Update Tag
37751
37924
  * @param {string} orgId The unique identifier of the organization.
37752
37925
  * @param {string} projectId The unique identifier of the project.
37753
- * @param {UpdateTagEntityTypeEnum} entityType The type of entity this tag applies to (&#x60;task&#x60;, &#x60;task_revision&#x60;, &#x60;task_share&#x60;, or &#x60;skill&#x60;).
37926
+ * @param {UpdateTagEntityTypeEnum} entityType The type of entity this tag applies to (&#x60;task&#x60;, &#x60;task_revision&#x60;, &#x60;task_share&#x60;, &#x60;skill&#x60;, or &#x60;task_agent_revision&#x60;).
37754
37927
  * @param {string} tagId The unique identifier (UUID) of the tag to operate on.
37755
37928
  * @param {TagUpdate} tagUpdate
37756
37929
  * @param {*} [options] Override http request option.
@@ -37769,7 +37942,8 @@ export const AddTagToEntitiesEntityTypeEnum = {
37769
37942
  Task: 'task',
37770
37943
  TaskRevision: 'task_revision',
37771
37944
  TaskShare: 'task_share',
37772
- Skill: 'skill'
37945
+ Skill: 'skill',
37946
+ TaskAgentRevision: 'task_agent_revision'
37773
37947
  } as const;
37774
37948
  export type AddTagToEntitiesEntityTypeEnum = typeof AddTagToEntitiesEntityTypeEnum[keyof typeof AddTagToEntitiesEntityTypeEnum];
37775
37949
  /**
@@ -37779,7 +37953,8 @@ export const CreateTagEntityTypeEnum = {
37779
37953
  Task: 'task',
37780
37954
  TaskRevision: 'task_revision',
37781
37955
  TaskShare: 'task_share',
37782
- Skill: 'skill'
37956
+ Skill: 'skill',
37957
+ TaskAgentRevision: 'task_agent_revision'
37783
37958
  } as const;
37784
37959
  export type CreateTagEntityTypeEnum = typeof CreateTagEntityTypeEnum[keyof typeof CreateTagEntityTypeEnum];
37785
37960
  /**
@@ -37789,7 +37964,8 @@ export const GetTagEntityTypeEnum = {
37789
37964
  Task: 'task',
37790
37965
  TaskRevision: 'task_revision',
37791
37966
  TaskShare: 'task_share',
37792
- Skill: 'skill'
37967
+ Skill: 'skill',
37968
+ TaskAgentRevision: 'task_agent_revision'
37793
37969
  } as const;
37794
37970
  export type GetTagEntityTypeEnum = typeof GetTagEntityTypeEnum[keyof typeof GetTagEntityTypeEnum];
37795
37971
  /**
@@ -37799,7 +37975,8 @@ export const ListTagsEntityTypeEnum = {
37799
37975
  Task: 'task',
37800
37976
  TaskRevision: 'task_revision',
37801
37977
  TaskShare: 'task_share',
37802
- Skill: 'skill'
37978
+ Skill: 'skill',
37979
+ TaskAgentRevision: 'task_agent_revision'
37803
37980
  } as const;
37804
37981
  export type ListTagsEntityTypeEnum = typeof ListTagsEntityTypeEnum[keyof typeof ListTagsEntityTypeEnum];
37805
37982
  /**
@@ -37809,7 +37986,8 @@ export const RemoveTagFromEntitiesEntityTypeEnum = {
37809
37986
  Task: 'task',
37810
37987
  TaskRevision: 'task_revision',
37811
37988
  TaskShare: 'task_share',
37812
- Skill: 'skill'
37989
+ Skill: 'skill',
37990
+ TaskAgentRevision: 'task_agent_revision'
37813
37991
  } as const;
37814
37992
  export type RemoveTagFromEntitiesEntityTypeEnum = typeof RemoveTagFromEntitiesEntityTypeEnum[keyof typeof RemoveTagFromEntitiesEntityTypeEnum];
37815
37993
  /**
@@ -37819,7 +37997,8 @@ export const UpdateTagEntityTypeEnum = {
37819
37997
  Task: 'task',
37820
37998
  TaskRevision: 'task_revision',
37821
37999
  TaskShare: 'task_share',
37822
- Skill: 'skill'
38000
+ Skill: 'skill',
38001
+ TaskAgentRevision: 'task_agent_revision'
37823
38002
  } as const;
37824
38003
  export type UpdateTagEntityTypeEnum = typeof UpdateTagEntityTypeEnum[keyof typeof UpdateTagEntityTypeEnum];
37825
38004
 
@@ -37831,7 +38010,7 @@ export type UpdateTagEntityTypeEnum = typeof UpdateTagEntityTypeEnum[keyof typeo
37831
38010
  export const TaskAgentsApiAxiosParamCreator = function (configuration?: Configuration) {
37832
38011
  return {
37833
38012
  /**
37834
- * Create a new Task Agent for the project. Task Agents orchestrate multiple Tasks as task tools using LLM-powered reasoning. Configure: - System instruction (prompt) - LLM model for reasoning - Initial task tools (Tasks to add) - Optional MCP server bindings - Execution mode (agentic/sequential)
38013
+ * Create a new Task Agent for the project. Task Agents orchestrate multiple Tasks as task tools using LLM-powered reasoning. The request creates the root Task Agent and its initial active revision. Runtime configuration such as instructions, models, and tools is stored on revisions.
37835
38014
  * @summary Create Task Agent
37836
38015
  * @param {string} orgId The organization ID
37837
38016
  * @param {string} projectId The project ID
@@ -37879,7 +38058,7 @@ export const TaskAgentsApiAxiosParamCreator = function (configuration?: Configur
37879
38058
  };
37880
38059
  },
37881
38060
  /**
37882
- * Remove a Task Agent from the project. This will: - Remove agent configuration - Delete associated task tools - Preserve run history for auditing This action cannot be undone.
38061
+ * Remove a Task Agent from the project. This will: - Remove the agent and its revision configuration - Preserve run history for auditing This action cannot be undone.
37883
38062
  * @summary Delete Task Agent
37884
38063
  * @param {string} orgId The unique identifier of the organization.
37885
38064
  * @param {string} projectId The unique identifier of the project.
@@ -38098,7 +38277,7 @@ export const TaskAgentsApiAxiosParamCreator = function (configuration?: Configur
38098
38277
  };
38099
38278
  },
38100
38279
  /**
38101
- * Retrieve detailed information about a specific Task Agent. Returns: - Agent configuration - Available task tools (Tasks) - LLM model details - Execution statistics
38280
+ * Retrieve detailed information about a specific Task Agent. Returns root Task Agent metadata with embedded immutable revisions. Runtime configuration such as instructions, models, and tools is stored on each revision.
38102
38281
  * @summary Get Task Agent
38103
38282
  * @param {string} orgId The unique identifier of the organization.
38104
38283
  * @param {string} projectId The unique identifier of the project.
@@ -38190,6 +38369,56 @@ export const TaskAgentsApiAxiosParamCreator = function (configuration?: Configur
38190
38369
 
38191
38370
 
38192
38371
 
38372
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
38373
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
38374
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
38375
+
38376
+ return {
38377
+ url: toPathString(localVarUrlObj),
38378
+ options: localVarRequestOptions,
38379
+ };
38380
+ },
38381
+ /**
38382
+ * Retrieve an immutable executable revision for a Task Agent. The response includes the runtime configuration and concrete pinned attachments stored on that revision.
38383
+ * @summary Get Task Agent Revision
38384
+ * @param {string} orgId The organization ID
38385
+ * @param {string} projectId The project ID
38386
+ * @param {string} taskAgentId The task agent ID
38387
+ * @param {string} revisionId
38388
+ * @param {*} [options] Override http request option.
38389
+ * @throws {RequiredError}
38390
+ */
38391
+ getTaskAgentRevision: async (orgId: string, projectId: string, taskAgentId: string, revisionId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
38392
+ // verify required parameter 'orgId' is not null or undefined
38393
+ assertParamExists('getTaskAgentRevision', 'orgId', orgId)
38394
+ // verify required parameter 'projectId' is not null or undefined
38395
+ assertParamExists('getTaskAgentRevision', 'projectId', projectId)
38396
+ // verify required parameter 'taskAgentId' is not null or undefined
38397
+ assertParamExists('getTaskAgentRevision', 'taskAgentId', taskAgentId)
38398
+ // verify required parameter 'revisionId' is not null or undefined
38399
+ assertParamExists('getTaskAgentRevision', 'revisionId', revisionId)
38400
+ const localVarPath = `/org/{org_id}/project/{project_id}/task-agent/{task_agent_id}/revision/{revision_id}`
38401
+ .replace(`{${"org_id"}}`, encodeURIComponent(String(orgId)))
38402
+ .replace(`{${"project_id"}}`, encodeURIComponent(String(projectId)))
38403
+ .replace(`{${"task_agent_id"}}`, encodeURIComponent(String(taskAgentId)))
38404
+ .replace(`{${"revision_id"}}`, encodeURIComponent(String(revisionId)));
38405
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
38406
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
38407
+ let baseOptions;
38408
+ if (configuration) {
38409
+ baseOptions = configuration.baseOptions;
38410
+ }
38411
+
38412
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
38413
+ const localVarHeaderParameter = {} as any;
38414
+ const localVarQueryParameter = {} as any;
38415
+
38416
+ // authentication HTTPBearer required
38417
+ // http bearer authentication required
38418
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
38419
+
38420
+
38421
+
38193
38422
  setSearchParams(localVarUrlObj, localVarQueryParameter);
38194
38423
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
38195
38424
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -38473,6 +38702,52 @@ export const TaskAgentsApiAxiosParamCreator = function (configuration?: Configur
38473
38702
 
38474
38703
 
38475
38704
 
38705
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
38706
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
38707
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
38708
+
38709
+ return {
38710
+ url: toPathString(localVarUrlObj),
38711
+ options: localVarRequestOptions,
38712
+ };
38713
+ },
38714
+ /**
38715
+ * List immutable executable revisions for a Task Agent. Each revision contains the runtime configuration and pinned attachments that can be executed by new runs, long-lived sessions, or pinned triggers. The active revision is marked with `active`.
38716
+ * @summary List Task Agent Revisions
38717
+ * @param {string} orgId The organization ID
38718
+ * @param {string} projectId The project ID
38719
+ * @param {string} taskAgentId The task agent ID
38720
+ * @param {*} [options] Override http request option.
38721
+ * @throws {RequiredError}
38722
+ */
38723
+ listTaskAgentRevisions: async (orgId: string, projectId: string, taskAgentId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
38724
+ // verify required parameter 'orgId' is not null or undefined
38725
+ assertParamExists('listTaskAgentRevisions', 'orgId', orgId)
38726
+ // verify required parameter 'projectId' is not null or undefined
38727
+ assertParamExists('listTaskAgentRevisions', 'projectId', projectId)
38728
+ // verify required parameter 'taskAgentId' is not null or undefined
38729
+ assertParamExists('listTaskAgentRevisions', 'taskAgentId', taskAgentId)
38730
+ const localVarPath = `/org/{org_id}/project/{project_id}/task-agent/{task_agent_id}/revision`
38731
+ .replace(`{${"org_id"}}`, encodeURIComponent(String(orgId)))
38732
+ .replace(`{${"project_id"}}`, encodeURIComponent(String(projectId)))
38733
+ .replace(`{${"task_agent_id"}}`, encodeURIComponent(String(taskAgentId)));
38734
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
38735
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
38736
+ let baseOptions;
38737
+ if (configuration) {
38738
+ baseOptions = configuration.baseOptions;
38739
+ }
38740
+
38741
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
38742
+ const localVarHeaderParameter = {} as any;
38743
+ const localVarQueryParameter = {} as any;
38744
+
38745
+ // authentication HTTPBearer required
38746
+ // http bearer authentication required
38747
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
38748
+
38749
+
38750
+
38476
38751
  setSearchParams(localVarUrlObj, localVarQueryParameter);
38477
38752
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
38478
38753
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -38496,12 +38771,13 @@ export const TaskAgentsApiAxiosParamCreator = function (configuration?: Configur
38496
38771
  * @param {string | null} [createdAfter] Filter runs created at/after this timestamp.
38497
38772
  * @param {string | null} [createdBefore] Filter runs created at/before this timestamp.
38498
38773
  * @param {number | null} [minDurationMs] Filter runs with duration greater than or equal to this value.
38774
+ * @param {string | null} [taskAgentRevisionId] Filter by TaskAgent revision ID.
38499
38775
  * @param {number} [skip]
38500
38776
  * @param {number} [limit]
38501
38777
  * @param {*} [options] Override http request option.
38502
38778
  * @throws {RequiredError}
38503
38779
  */
38504
- listTaskAgentRuns: async (orgId: string, projectId: string, taskAgentId: string, sessionId?: string | null, isError?: boolean | null, hadTaskToolFail?: boolean | null, hadMcpToolFail?: boolean | null, status?: TaskAgentRunStatus, createdAfter?: string | null, createdBefore?: string | null, minDurationMs?: number | null, skip?: number, limit?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
38780
+ listTaskAgentRuns: async (orgId: string, projectId: string, taskAgentId: string, sessionId?: string | null, isError?: boolean | null, hadTaskToolFail?: boolean | null, hadMcpToolFail?: boolean | null, status?: TaskAgentRunStatus, createdAfter?: string | null, createdBefore?: string | null, minDurationMs?: number | null, taskAgentRevisionId?: string | null, skip?: number, limit?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
38505
38781
  // verify required parameter 'orgId' is not null or undefined
38506
38782
  assertParamExists('listTaskAgentRuns', 'orgId', orgId)
38507
38783
  // verify required parameter 'projectId' is not null or undefined
@@ -38563,6 +38839,10 @@ export const TaskAgentsApiAxiosParamCreator = function (configuration?: Configur
38563
38839
  localVarQueryParameter['min_duration_ms'] = minDurationMs;
38564
38840
  }
38565
38841
 
38842
+ if (taskAgentRevisionId !== undefined) {
38843
+ localVarQueryParameter['task_agent_revision_id'] = taskAgentRevisionId;
38844
+ }
38845
+
38566
38846
  if (skip !== undefined) {
38567
38847
  localVarQueryParameter['skip'] = skip;
38568
38848
  }
@@ -38629,7 +38909,7 @@ export const TaskAgentsApiAxiosParamCreator = function (configuration?: Configur
38629
38909
  };
38630
38910
  },
38631
38911
  /**
38632
- * List all Task Agents configured for the project. Returns a paginated list of Task Agents with their: - Configuration details - Available task tools (Tasks) - LLM model settings - Execution mode
38912
+ * List all Task Agents configured for the project. Returns a paginated list of Task Agents with their root metadata and embedded revision history. Runtime configuration such as instructions, models, and tools is stored on each revision.
38633
38913
  * @summary List Task Agents
38634
38914
  * @param {string} orgId The unique identifier of the organization.
38635
38915
  * @param {string} projectId The unique identifier of the project.
@@ -38681,15 +38961,16 @@ export const TaskAgentsApiAxiosParamCreator = function (configuration?: Configur
38681
38961
  };
38682
38962
  },
38683
38963
  /**
38684
- * Execute the Task Agent with a user message. The agent will: 1. Process the message using the configured LLM 2. Reason about which task tools to invoke 3. Execute relevant Tasks as needed 4. Return a streaming response Responses are streamed using Server-Sent Events (SSE). The first SSE event emitted after successful stream setup is: - `event_type: \"session_id\"` with the resolved `session_id` in `metadata` Subsequent events include tool calls/results, text responses, and the terminal `done` or `error` event.
38964
+ * Execute the Task Agent with a user message. The agent will: 1. Process the message using the configured LLM 2. Reason about which task tools to invoke 3. Execute relevant Tasks as needed 4. Return a streaming response Responses are streamed using Server-Sent Events (SSE). The first SSE event emitted after successful stream setup is: - `event_type: \"session_id\"` with the resolved `session_id` in `metadata` Use `revision_id` to execute a specific TaskAgent revision. New sessions can run any revision belonging to the TaskAgent. Existing sessions remain pinned to their original revision; passing a conflicting `revision_id` is rejected. Subsequent events include tool calls/results, text responses, and the terminal `done` or `error` event.
38685
38965
  * @summary Run Task Agent
38686
38966
  * @param {string} orgId The unique identifier of the organization.
38687
38967
  * @param {string} projectId The unique identifier of the project.
38688
38968
  * @param {string} taskAgentId The specific Task Agent to reference.
38969
+ * @param {string | null} [revisionId] Optional TaskAgent revision ID to use for execution. If omitted, new sessions use the active revision and continuations use the session\&#39;s pinned revision.
38689
38970
  * @param {*} [options] Override http request option.
38690
38971
  * @throws {RequiredError}
38691
38972
  */
38692
- runTaskAgent: async (orgId: string, projectId: string, taskAgentId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
38973
+ runTaskAgent: async (orgId: string, projectId: string, taskAgentId: string, revisionId?: string | null, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
38693
38974
  // verify required parameter 'orgId' is not null or undefined
38694
38975
  assertParamExists('runTaskAgent', 'orgId', orgId)
38695
38976
  // verify required parameter 'projectId' is not null or undefined
@@ -38715,6 +38996,10 @@ export const TaskAgentsApiAxiosParamCreator = function (configuration?: Configur
38715
38996
  // http bearer authentication required
38716
38997
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
38717
38998
 
38999
+ if (revisionId !== undefined) {
39000
+ localVarQueryParameter['revision_id'] = revisionId;
39001
+ }
39002
+
38718
39003
 
38719
39004
 
38720
39005
  setSearchParams(localVarUrlObj, localVarQueryParameter);
@@ -38936,7 +39221,7 @@ export const TaskAgentsApiAxiosParamCreator = function (configuration?: Configur
38936
39221
  };
38937
39222
  },
38938
39223
  /**
38939
- * Update Task Agent configuration. Modifiable fields: - Name and description - System instruction - LLM model - Execution mode - Task tools (full replacement) - MCP servers (full replacement) To update task tools, pass a `task_tools` array. This performs a full replacement: - Omit the field to leave task tools unchanged - Pass an empty array to remove all task tools - Pass a new array to replace all task tools (array order = execution order)
39224
+ * Update Task Agent metadata, create a new revision, or activate an existing revision. Modifiable fields: - Root metadata: name and run visibility - Revision configuration: description, instruction, LLM models, execution mode, memory settings, task tools, MCP servers, integrations, and skills - Activation: `active_revision_id` Updating revision configuration creates a new inactive revision. Activate it with a separate request that only includes `active_revision_id`. To update task tools, pass a `task_tools` array. This performs a full replacement: - Omit the field to leave task tools unchanged - Pass an empty array to remove all task tools - Pass a new array to replace all task tools (array order = execution order)
38940
39225
  * @summary Update Task Agent
38941
39226
  * @param {string} orgId The organization ID
38942
39227
  * @param {string} projectId The project ID
@@ -38998,7 +39283,7 @@ export const TaskAgentsApiFp = function(configuration?: Configuration) {
38998
39283
  const localVarAxiosParamCreator = TaskAgentsApiAxiosParamCreator(configuration)
38999
39284
  return {
39000
39285
  /**
39001
- * Create a new Task Agent for the project. Task Agents orchestrate multiple Tasks as task tools using LLM-powered reasoning. Configure: - System instruction (prompt) - LLM model for reasoning - Initial task tools (Tasks to add) - Optional MCP server bindings - Execution mode (agentic/sequential)
39286
+ * Create a new Task Agent for the project. Task Agents orchestrate multiple Tasks as task tools using LLM-powered reasoning. The request creates the root Task Agent and its initial active revision. Runtime configuration such as instructions, models, and tools is stored on revisions.
39002
39287
  * @summary Create Task Agent
39003
39288
  * @param {string} orgId The organization ID
39004
39289
  * @param {string} projectId The project ID
@@ -39013,7 +39298,7 @@ export const TaskAgentsApiFp = function(configuration?: Configuration) {
39013
39298
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
39014
39299
  },
39015
39300
  /**
39016
- * Remove a Task Agent from the project. This will: - Remove agent configuration - Delete associated task tools - Preserve run history for auditing This action cannot be undone.
39301
+ * Remove a Task Agent from the project. This will: - Remove the agent and its revision configuration - Preserve run history for auditing This action cannot be undone.
39017
39302
  * @summary Delete Task Agent
39018
39303
  * @param {string} orgId The unique identifier of the organization.
39019
39304
  * @param {string} projectId The unique identifier of the project.
@@ -39079,7 +39364,7 @@ export const TaskAgentsApiFp = function(configuration?: Configuration) {
39079
39364
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
39080
39365
  },
39081
39366
  /**
39082
- * Retrieve detailed information about a specific Task Agent. Returns: - Agent configuration - Available task tools (Tasks) - LLM model details - Execution statistics
39367
+ * Retrieve detailed information about a specific Task Agent. Returns root Task Agent metadata with embedded immutable revisions. Runtime configuration such as instructions, models, and tools is stored on each revision.
39083
39368
  * @summary Get Task Agent
39084
39369
  * @param {string} orgId The unique identifier of the organization.
39085
39370
  * @param {string} projectId The unique identifier of the project.
@@ -39110,6 +39395,22 @@ export const TaskAgentsApiFp = function(configuration?: Configuration) {
39110
39395
  const localVarOperationServerBasePath = operationServerMap['TaskAgentsApi.getTaskAgentCreditReport']?.[localVarOperationServerIndex]?.url;
39111
39396
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
39112
39397
  },
39398
+ /**
39399
+ * Retrieve an immutable executable revision for a Task Agent. The response includes the runtime configuration and concrete pinned attachments stored on that revision.
39400
+ * @summary Get Task Agent Revision
39401
+ * @param {string} orgId The organization ID
39402
+ * @param {string} projectId The project ID
39403
+ * @param {string} taskAgentId The task agent ID
39404
+ * @param {string} revisionId
39405
+ * @param {*} [options] Override http request option.
39406
+ * @throws {RequiredError}
39407
+ */
39408
+ async getTaskAgentRevision(orgId: string, projectId: string, taskAgentId: string, revisionId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TaskAgentRevisionRead>> {
39409
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getTaskAgentRevision(orgId, projectId, taskAgentId, revisionId, options);
39410
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
39411
+ const localVarOperationServerBasePath = operationServerMap['TaskAgentsApi.getTaskAgentRevision']?.[localVarOperationServerIndex]?.url;
39412
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
39413
+ },
39113
39414
  /**
39114
39415
  * Get conversation events for a specific TaskAgentRun. Returns the full conversation history from the ADK session including: - User messages - Agent responses - Tool calls and results - Error messages (if any) Events are returned in chronological order.
39115
39416
  * @summary Get Run Events
@@ -39196,6 +39497,21 @@ export const TaskAgentsApiFp = function(configuration?: Configuration) {
39196
39497
  const localVarOperationServerBasePath = operationServerMap['TaskAgentsApi.getTaskAgentUsageReport']?.[localVarOperationServerIndex]?.url;
39197
39498
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
39198
39499
  },
39500
+ /**
39501
+ * List immutable executable revisions for a Task Agent. Each revision contains the runtime configuration and pinned attachments that can be executed by new runs, long-lived sessions, or pinned triggers. The active revision is marked with `active`.
39502
+ * @summary List Task Agent Revisions
39503
+ * @param {string} orgId The organization ID
39504
+ * @param {string} projectId The project ID
39505
+ * @param {string} taskAgentId The task agent ID
39506
+ * @param {*} [options] Override http request option.
39507
+ * @throws {RequiredError}
39508
+ */
39509
+ async listTaskAgentRevisions(orgId: string, projectId: string, taskAgentId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<TaskAgentRevisionRead>>> {
39510
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listTaskAgentRevisions(orgId, projectId, taskAgentId, options);
39511
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
39512
+ const localVarOperationServerBasePath = operationServerMap['TaskAgentsApi.listTaskAgentRevisions']?.[localVarOperationServerIndex]?.url;
39513
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
39514
+ },
39199
39515
  /**
39200
39516
  * List execution runs for a Task Agent. Returns run history with: - Input message - Token usage - Status and duration - Task tools invoked - MCP tools invoked - Phase timings for LLM and tool execution
39201
39517
  * @summary List Task Agent Runs
@@ -39210,13 +39526,14 @@ export const TaskAgentsApiFp = function(configuration?: Configuration) {
39210
39526
  * @param {string | null} [createdAfter] Filter runs created at/after this timestamp.
39211
39527
  * @param {string | null} [createdBefore] Filter runs created at/before this timestamp.
39212
39528
  * @param {number | null} [minDurationMs] Filter runs with duration greater than or equal to this value.
39529
+ * @param {string | null} [taskAgentRevisionId] Filter by TaskAgent revision ID.
39213
39530
  * @param {number} [skip]
39214
39531
  * @param {number} [limit]
39215
39532
  * @param {*} [options] Override http request option.
39216
39533
  * @throws {RequiredError}
39217
39534
  */
39218
- async listTaskAgentRuns(orgId: string, projectId: string, taskAgentId: string, sessionId?: string | null, isError?: boolean | null, hadTaskToolFail?: boolean | null, hadMcpToolFail?: boolean | null, status?: TaskAgentRunStatus, createdAfter?: string | null, createdBefore?: string | null, minDurationMs?: number | null, skip?: number, limit?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<TaskAgentRunRead>>> {
39219
- const localVarAxiosArgs = await localVarAxiosParamCreator.listTaskAgentRuns(orgId, projectId, taskAgentId, sessionId, isError, hadTaskToolFail, hadMcpToolFail, status, createdAfter, createdBefore, minDurationMs, skip, limit, options);
39535
+ async listTaskAgentRuns(orgId: string, projectId: string, taskAgentId: string, sessionId?: string | null, isError?: boolean | null, hadTaskToolFail?: boolean | null, hadMcpToolFail?: boolean | null, status?: TaskAgentRunStatus, createdAfter?: string | null, createdBefore?: string | null, minDurationMs?: number | null, taskAgentRevisionId?: string | null, skip?: number, limit?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<TaskAgentRunRead>>> {
39536
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listTaskAgentRuns(orgId, projectId, taskAgentId, sessionId, isError, hadTaskToolFail, hadMcpToolFail, status, createdAfter, createdBefore, minDurationMs, taskAgentRevisionId, skip, limit, options);
39220
39537
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
39221
39538
  const localVarOperationServerBasePath = operationServerMap['TaskAgentsApi.listTaskAgentRuns']?.[localVarOperationServerIndex]?.url;
39222
39539
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -39237,7 +39554,7 @@ export const TaskAgentsApiFp = function(configuration?: Configuration) {
39237
39554
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
39238
39555
  },
39239
39556
  /**
39240
- * List all Task Agents configured for the project. Returns a paginated list of Task Agents with their: - Configuration details - Available task tools (Tasks) - LLM model settings - Execution mode
39557
+ * List all Task Agents configured for the project. Returns a paginated list of Task Agents with their root metadata and embedded revision history. Runtime configuration such as instructions, models, and tools is stored on each revision.
39241
39558
  * @summary List Task Agents
39242
39559
  * @param {string} orgId The unique identifier of the organization.
39243
39560
  * @param {string} projectId The unique identifier of the project.
@@ -39253,16 +39570,17 @@ export const TaskAgentsApiFp = function(configuration?: Configuration) {
39253
39570
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
39254
39571
  },
39255
39572
  /**
39256
- * Execute the Task Agent with a user message. The agent will: 1. Process the message using the configured LLM 2. Reason about which task tools to invoke 3. Execute relevant Tasks as needed 4. Return a streaming response Responses are streamed using Server-Sent Events (SSE). The first SSE event emitted after successful stream setup is: - `event_type: \"session_id\"` with the resolved `session_id` in `metadata` Subsequent events include tool calls/results, text responses, and the terminal `done` or `error` event.
39573
+ * Execute the Task Agent with a user message. The agent will: 1. Process the message using the configured LLM 2. Reason about which task tools to invoke 3. Execute relevant Tasks as needed 4. Return a streaming response Responses are streamed using Server-Sent Events (SSE). The first SSE event emitted after successful stream setup is: - `event_type: \"session_id\"` with the resolved `session_id` in `metadata` Use `revision_id` to execute a specific TaskAgent revision. New sessions can run any revision belonging to the TaskAgent. Existing sessions remain pinned to their original revision; passing a conflicting `revision_id` is rejected. Subsequent events include tool calls/results, text responses, and the terminal `done` or `error` event.
39257
39574
  * @summary Run Task Agent
39258
39575
  * @param {string} orgId The unique identifier of the organization.
39259
39576
  * @param {string} projectId The unique identifier of the project.
39260
39577
  * @param {string} taskAgentId The specific Task Agent to reference.
39578
+ * @param {string | null} [revisionId] Optional TaskAgent revision ID to use for execution. If omitted, new sessions use the active revision and continuations use the session\&#39;s pinned revision.
39261
39579
  * @param {*} [options] Override http request option.
39262
39580
  * @throws {RequiredError}
39263
39581
  */
39264
- async runTaskAgent(orgId: string, projectId: string, taskAgentId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<any>> {
39265
- const localVarAxiosArgs = await localVarAxiosParamCreator.runTaskAgent(orgId, projectId, taskAgentId, options);
39582
+ async runTaskAgent(orgId: string, projectId: string, taskAgentId: string, revisionId?: string | null, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<any>> {
39583
+ const localVarAxiosArgs = await localVarAxiosParamCreator.runTaskAgent(orgId, projectId, taskAgentId, revisionId, options);
39266
39584
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
39267
39585
  const localVarOperationServerBasePath = operationServerMap['TaskAgentsApi.runTaskAgent']?.[localVarOperationServerIndex]?.url;
39268
39586
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -39333,7 +39651,7 @@ export const TaskAgentsApiFp = function(configuration?: Configuration) {
39333
39651
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
39334
39652
  },
39335
39653
  /**
39336
- * Update Task Agent configuration. Modifiable fields: - Name and description - System instruction - LLM model - Execution mode - Task tools (full replacement) - MCP servers (full replacement) To update task tools, pass a `task_tools` array. This performs a full replacement: - Omit the field to leave task tools unchanged - Pass an empty array to remove all task tools - Pass a new array to replace all task tools (array order = execution order)
39654
+ * Update Task Agent metadata, create a new revision, or activate an existing revision. Modifiable fields: - Root metadata: name and run visibility - Revision configuration: description, instruction, LLM models, execution mode, memory settings, task tools, MCP servers, integrations, and skills - Activation: `active_revision_id` Updating revision configuration creates a new inactive revision. Activate it with a separate request that only includes `active_revision_id`. To update task tools, pass a `task_tools` array. This performs a full replacement: - Omit the field to leave task tools unchanged - Pass an empty array to remove all task tools - Pass a new array to replace all task tools (array order = execution order)
39337
39655
  * @summary Update Task Agent
39338
39656
  * @param {string} orgId The organization ID
39339
39657
  * @param {string} projectId The project ID
@@ -39359,7 +39677,7 @@ export const TaskAgentsApiFactory = function (configuration?: Configuration, bas
39359
39677
  const localVarFp = TaskAgentsApiFp(configuration)
39360
39678
  return {
39361
39679
  /**
39362
- * Create a new Task Agent for the project. Task Agents orchestrate multiple Tasks as task tools using LLM-powered reasoning. Configure: - System instruction (prompt) - LLM model for reasoning - Initial task tools (Tasks to add) - Optional MCP server bindings - Execution mode (agentic/sequential)
39680
+ * Create a new Task Agent for the project. Task Agents orchestrate multiple Tasks as task tools using LLM-powered reasoning. The request creates the root Task Agent and its initial active revision. Runtime configuration such as instructions, models, and tools is stored on revisions.
39363
39681
  * @summary Create Task Agent
39364
39682
  * @param {string} orgId The organization ID
39365
39683
  * @param {string} projectId The project ID
@@ -39371,7 +39689,7 @@ export const TaskAgentsApiFactory = function (configuration?: Configuration, bas
39371
39689
  return localVarFp.createTaskAgent(orgId, projectId, taskAgentCreate, options).then((request) => request(axios, basePath));
39372
39690
  },
39373
39691
  /**
39374
- * Remove a Task Agent from the project. This will: - Remove agent configuration - Delete associated task tools - Preserve run history for auditing This action cannot be undone.
39692
+ * Remove a Task Agent from the project. This will: - Remove the agent and its revision configuration - Preserve run history for auditing This action cannot be undone.
39375
39693
  * @summary Delete Task Agent
39376
39694
  * @param {string} orgId The unique identifier of the organization.
39377
39695
  * @param {string} projectId The unique identifier of the project.
@@ -39425,7 +39743,7 @@ export const TaskAgentsApiFactory = function (configuration?: Configuration, bas
39425
39743
  return localVarFp.getProjectTaskAgentUsageReport(orgId, projectId, taskAgentId, aggregation, status, options).then((request) => request(axios, basePath));
39426
39744
  },
39427
39745
  /**
39428
- * Retrieve detailed information about a specific Task Agent. Returns: - Agent configuration - Available task tools (Tasks) - LLM model details - Execution statistics
39746
+ * Retrieve detailed information about a specific Task Agent. Returns root Task Agent metadata with embedded immutable revisions. Runtime configuration such as instructions, models, and tools is stored on each revision.
39429
39747
  * @summary Get Task Agent
39430
39748
  * @param {string} orgId The unique identifier of the organization.
39431
39749
  * @param {string} projectId The unique identifier of the project.
@@ -39450,6 +39768,19 @@ export const TaskAgentsApiFactory = function (configuration?: Configuration, bas
39450
39768
  getTaskAgentCreditReport(orgId: string, projectId: string, taskAgentId: string, startDate?: string | null, endDate?: string | null, options?: any): AxiosPromise<TaskAgentCreditReport> {
39451
39769
  return localVarFp.getTaskAgentCreditReport(orgId, projectId, taskAgentId, startDate, endDate, options).then((request) => request(axios, basePath));
39452
39770
  },
39771
+ /**
39772
+ * Retrieve an immutable executable revision for a Task Agent. The response includes the runtime configuration and concrete pinned attachments stored on that revision.
39773
+ * @summary Get Task Agent Revision
39774
+ * @param {string} orgId The organization ID
39775
+ * @param {string} projectId The project ID
39776
+ * @param {string} taskAgentId The task agent ID
39777
+ * @param {string} revisionId
39778
+ * @param {*} [options] Override http request option.
39779
+ * @throws {RequiredError}
39780
+ */
39781
+ getTaskAgentRevision(orgId: string, projectId: string, taskAgentId: string, revisionId: string, options?: any): AxiosPromise<TaskAgentRevisionRead> {
39782
+ return localVarFp.getTaskAgentRevision(orgId, projectId, taskAgentId, revisionId, options).then((request) => request(axios, basePath));
39783
+ },
39453
39784
  /**
39454
39785
  * Get conversation events for a specific TaskAgentRun. Returns the full conversation history from the ADK session including: - User messages - Agent responses - Tool calls and results - Error messages (if any) Events are returned in chronological order.
39455
39786
  * @summary Get Run Events
@@ -39521,6 +39852,18 @@ export const TaskAgentsApiFactory = function (configuration?: Configuration, bas
39521
39852
  getTaskAgentUsageReport(orgId: string, projectId: string, taskAgentId: string, aggregation?: GetTaskAgentUsageReportAggregationEnum, status?: UsageReportStatus, errorsOnly?: boolean, options?: any): AxiosPromise<TaskAgentUsageReport> {
39522
39853
  return localVarFp.getTaskAgentUsageReport(orgId, projectId, taskAgentId, aggregation, status, errorsOnly, options).then((request) => request(axios, basePath));
39523
39854
  },
39855
+ /**
39856
+ * List immutable executable revisions for a Task Agent. Each revision contains the runtime configuration and pinned attachments that can be executed by new runs, long-lived sessions, or pinned triggers. The active revision is marked with `active`.
39857
+ * @summary List Task Agent Revisions
39858
+ * @param {string} orgId The organization ID
39859
+ * @param {string} projectId The project ID
39860
+ * @param {string} taskAgentId The task agent ID
39861
+ * @param {*} [options] Override http request option.
39862
+ * @throws {RequiredError}
39863
+ */
39864
+ listTaskAgentRevisions(orgId: string, projectId: string, taskAgentId: string, options?: any): AxiosPromise<Array<TaskAgentRevisionRead>> {
39865
+ return localVarFp.listTaskAgentRevisions(orgId, projectId, taskAgentId, options).then((request) => request(axios, basePath));
39866
+ },
39524
39867
  /**
39525
39868
  * List execution runs for a Task Agent. Returns run history with: - Input message - Token usage - Status and duration - Task tools invoked - MCP tools invoked - Phase timings for LLM and tool execution
39526
39869
  * @summary List Task Agent Runs
@@ -39535,13 +39878,14 @@ export const TaskAgentsApiFactory = function (configuration?: Configuration, bas
39535
39878
  * @param {string | null} [createdAfter] Filter runs created at/after this timestamp.
39536
39879
  * @param {string | null} [createdBefore] Filter runs created at/before this timestamp.
39537
39880
  * @param {number | null} [minDurationMs] Filter runs with duration greater than or equal to this value.
39881
+ * @param {string | null} [taskAgentRevisionId] Filter by TaskAgent revision ID.
39538
39882
  * @param {number} [skip]
39539
39883
  * @param {number} [limit]
39540
39884
  * @param {*} [options] Override http request option.
39541
39885
  * @throws {RequiredError}
39542
39886
  */
39543
- listTaskAgentRuns(orgId: string, projectId: string, taskAgentId: string, sessionId?: string | null, isError?: boolean | null, hadTaskToolFail?: boolean | null, hadMcpToolFail?: boolean | null, status?: TaskAgentRunStatus, createdAfter?: string | null, createdBefore?: string | null, minDurationMs?: number | null, skip?: number, limit?: number, options?: any): AxiosPromise<Array<TaskAgentRunRead>> {
39544
- return localVarFp.listTaskAgentRuns(orgId, projectId, taskAgentId, sessionId, isError, hadTaskToolFail, hadMcpToolFail, status, createdAfter, createdBefore, minDurationMs, skip, limit, options).then((request) => request(axios, basePath));
39887
+ listTaskAgentRuns(orgId: string, projectId: string, taskAgentId: string, sessionId?: string | null, isError?: boolean | null, hadTaskToolFail?: boolean | null, hadMcpToolFail?: boolean | null, status?: TaskAgentRunStatus, createdAfter?: string | null, createdBefore?: string | null, minDurationMs?: number | null, taskAgentRevisionId?: string | null, skip?: number, limit?: number, options?: any): AxiosPromise<Array<TaskAgentRunRead>> {
39888
+ return localVarFp.listTaskAgentRuns(orgId, projectId, taskAgentId, sessionId, isError, hadTaskToolFail, hadMcpToolFail, status, createdAfter, createdBefore, minDurationMs, taskAgentRevisionId, skip, limit, options).then((request) => request(axios, basePath));
39545
39889
  },
39546
39890
  /**
39547
39891
  * List conversation sessions for a Task Agent. Sessions group related runs together for multi-turn conversations.
@@ -39556,7 +39900,7 @@ export const TaskAgentsApiFactory = function (configuration?: Configuration, bas
39556
39900
  return localVarFp.listTaskAgentSessions(orgId, projectId, taskAgentId, options).then((request) => request(axios, basePath));
39557
39901
  },
39558
39902
  /**
39559
- * List all Task Agents configured for the project. Returns a paginated list of Task Agents with their: - Configuration details - Available task tools (Tasks) - LLM model settings - Execution mode
39903
+ * List all Task Agents configured for the project. Returns a paginated list of Task Agents with their root metadata and embedded revision history. Runtime configuration such as instructions, models, and tools is stored on each revision.
39560
39904
  * @summary List Task Agents
39561
39905
  * @param {string} orgId The unique identifier of the organization.
39562
39906
  * @param {string} projectId The unique identifier of the project.
@@ -39569,16 +39913,17 @@ export const TaskAgentsApiFactory = function (configuration?: Configuration, bas
39569
39913
  return localVarFp.listTaskAgents(orgId, projectId, cursor, pageLimit, options).then((request) => request(axios, basePath));
39570
39914
  },
39571
39915
  /**
39572
- * Execute the Task Agent with a user message. The agent will: 1. Process the message using the configured LLM 2. Reason about which task tools to invoke 3. Execute relevant Tasks as needed 4. Return a streaming response Responses are streamed using Server-Sent Events (SSE). The first SSE event emitted after successful stream setup is: - `event_type: \"session_id\"` with the resolved `session_id` in `metadata` Subsequent events include tool calls/results, text responses, and the terminal `done` or `error` event.
39916
+ * Execute the Task Agent with a user message. The agent will: 1. Process the message using the configured LLM 2. Reason about which task tools to invoke 3. Execute relevant Tasks as needed 4. Return a streaming response Responses are streamed using Server-Sent Events (SSE). The first SSE event emitted after successful stream setup is: - `event_type: \"session_id\"` with the resolved `session_id` in `metadata` Use `revision_id` to execute a specific TaskAgent revision. New sessions can run any revision belonging to the TaskAgent. Existing sessions remain pinned to their original revision; passing a conflicting `revision_id` is rejected. Subsequent events include tool calls/results, text responses, and the terminal `done` or `error` event.
39573
39917
  * @summary Run Task Agent
39574
39918
  * @param {string} orgId The unique identifier of the organization.
39575
39919
  * @param {string} projectId The unique identifier of the project.
39576
39920
  * @param {string} taskAgentId The specific Task Agent to reference.
39921
+ * @param {string | null} [revisionId] Optional TaskAgent revision ID to use for execution. If omitted, new sessions use the active revision and continuations use the session\&#39;s pinned revision.
39577
39922
  * @param {*} [options] Override http request option.
39578
39923
  * @throws {RequiredError}
39579
39924
  */
39580
- runTaskAgent(orgId: string, projectId: string, taskAgentId: string, options?: any): AxiosPromise<any> {
39581
- return localVarFp.runTaskAgent(orgId, projectId, taskAgentId, options).then((request) => request(axios, basePath));
39925
+ runTaskAgent(orgId: string, projectId: string, taskAgentId: string, revisionId?: string | null, options?: any): AxiosPromise<any> {
39926
+ return localVarFp.runTaskAgent(orgId, projectId, taskAgentId, revisionId, options).then((request) => request(axios, basePath));
39582
39927
  },
39583
39928
  /**
39584
39929
  * Retrieve a specific member that has been granted direct access to the task_agent.
@@ -39634,7 +39979,7 @@ export const TaskAgentsApiFactory = function (configuration?: Configuration, bas
39634
39979
  return localVarFp.taskAgentIamOrgOrgIdProjectProjectIdTaskAgentTaskAgentIdIamUpdateMemberRoles(taskAgentId, member, orgId, projectId, taskAgentIAMMemberRoleUpdate, options).then((request) => request(axios, basePath));
39635
39980
  },
39636
39981
  /**
39637
- * Update Task Agent configuration. Modifiable fields: - Name and description - System instruction - LLM model - Execution mode - Task tools (full replacement) - MCP servers (full replacement) To update task tools, pass a `task_tools` array. This performs a full replacement: - Omit the field to leave task tools unchanged - Pass an empty array to remove all task tools - Pass a new array to replace all task tools (array order = execution order)
39982
+ * Update Task Agent metadata, create a new revision, or activate an existing revision. Modifiable fields: - Root metadata: name and run visibility - Revision configuration: description, instruction, LLM models, execution mode, memory settings, task tools, MCP servers, integrations, and skills - Activation: `active_revision_id` Updating revision configuration creates a new inactive revision. Activate it with a separate request that only includes `active_revision_id`. To update task tools, pass a `task_tools` array. This performs a full replacement: - Omit the field to leave task tools unchanged - Pass an empty array to remove all task tools - Pass a new array to replace all task tools (array order = execution order)
39638
39983
  * @summary Update Task Agent
39639
39984
  * @param {string} orgId The organization ID
39640
39985
  * @param {string} projectId The project ID
@@ -39657,7 +40002,7 @@ export const TaskAgentsApiFactory = function (configuration?: Configuration, bas
39657
40002
  */
39658
40003
  export class TaskAgentsApi extends BaseAPI {
39659
40004
  /**
39660
- * Create a new Task Agent for the project. Task Agents orchestrate multiple Tasks as task tools using LLM-powered reasoning. Configure: - System instruction (prompt) - LLM model for reasoning - Initial task tools (Tasks to add) - Optional MCP server bindings - Execution mode (agentic/sequential)
40005
+ * Create a new Task Agent for the project. Task Agents orchestrate multiple Tasks as task tools using LLM-powered reasoning. The request creates the root Task Agent and its initial active revision. Runtime configuration such as instructions, models, and tools is stored on revisions.
39661
40006
  * @summary Create Task Agent
39662
40007
  * @param {string} orgId The organization ID
39663
40008
  * @param {string} projectId The project ID
@@ -39671,7 +40016,7 @@ export class TaskAgentsApi extends BaseAPI {
39671
40016
  }
39672
40017
 
39673
40018
  /**
39674
- * Remove a Task Agent from the project. This will: - Remove agent configuration - Delete associated task tools - Preserve run history for auditing This action cannot be undone.
40019
+ * Remove a Task Agent from the project. This will: - Remove the agent and its revision configuration - Preserve run history for auditing This action cannot be undone.
39675
40020
  * @summary Delete Task Agent
39676
40021
  * @param {string} orgId The unique identifier of the organization.
39677
40022
  * @param {string} projectId The unique identifier of the project.
@@ -39733,7 +40078,7 @@ export class TaskAgentsApi extends BaseAPI {
39733
40078
  }
39734
40079
 
39735
40080
  /**
39736
- * Retrieve detailed information about a specific Task Agent. Returns: - Agent configuration - Available task tools (Tasks) - LLM model details - Execution statistics
40081
+ * Retrieve detailed information about a specific Task Agent. Returns root Task Agent metadata with embedded immutable revisions. Runtime configuration such as instructions, models, and tools is stored on each revision.
39737
40082
  * @summary Get Task Agent
39738
40083
  * @param {string} orgId The unique identifier of the organization.
39739
40084
  * @param {string} projectId The unique identifier of the project.
@@ -39762,6 +40107,21 @@ export class TaskAgentsApi extends BaseAPI {
39762
40107
  return TaskAgentsApiFp(this.configuration).getTaskAgentCreditReport(orgId, projectId, taskAgentId, startDate, endDate, options).then((request) => request(this.axios, this.basePath));
39763
40108
  }
39764
40109
 
40110
+ /**
40111
+ * Retrieve an immutable executable revision for a Task Agent. The response includes the runtime configuration and concrete pinned attachments stored on that revision.
40112
+ * @summary Get Task Agent Revision
40113
+ * @param {string} orgId The organization ID
40114
+ * @param {string} projectId The project ID
40115
+ * @param {string} taskAgentId The task agent ID
40116
+ * @param {string} revisionId
40117
+ * @param {*} [options] Override http request option.
40118
+ * @throws {RequiredError}
40119
+ * @memberof TaskAgentsApi
40120
+ */
40121
+ public getTaskAgentRevision(orgId: string, projectId: string, taskAgentId: string, revisionId: string, options?: RawAxiosRequestConfig) {
40122
+ return TaskAgentsApiFp(this.configuration).getTaskAgentRevision(orgId, projectId, taskAgentId, revisionId, options).then((request) => request(this.axios, this.basePath));
40123
+ }
40124
+
39765
40125
  /**
39766
40126
  * Get conversation events for a specific TaskAgentRun. Returns the full conversation history from the ADK session including: - User messages - Agent responses - Tool calls and results - Error messages (if any) Events are returned in chronological order.
39767
40127
  * @summary Get Run Events
@@ -39843,6 +40203,20 @@ export class TaskAgentsApi extends BaseAPI {
39843
40203
  return TaskAgentsApiFp(this.configuration).getTaskAgentUsageReport(orgId, projectId, taskAgentId, aggregation, status, errorsOnly, options).then((request) => request(this.axios, this.basePath));
39844
40204
  }
39845
40205
 
40206
+ /**
40207
+ * List immutable executable revisions for a Task Agent. Each revision contains the runtime configuration and pinned attachments that can be executed by new runs, long-lived sessions, or pinned triggers. The active revision is marked with `active`.
40208
+ * @summary List Task Agent Revisions
40209
+ * @param {string} orgId The organization ID
40210
+ * @param {string} projectId The project ID
40211
+ * @param {string} taskAgentId The task agent ID
40212
+ * @param {*} [options] Override http request option.
40213
+ * @throws {RequiredError}
40214
+ * @memberof TaskAgentsApi
40215
+ */
40216
+ public listTaskAgentRevisions(orgId: string, projectId: string, taskAgentId: string, options?: RawAxiosRequestConfig) {
40217
+ return TaskAgentsApiFp(this.configuration).listTaskAgentRevisions(orgId, projectId, taskAgentId, options).then((request) => request(this.axios, this.basePath));
40218
+ }
40219
+
39846
40220
  /**
39847
40221
  * List execution runs for a Task Agent. Returns run history with: - Input message - Token usage - Status and duration - Task tools invoked - MCP tools invoked - Phase timings for LLM and tool execution
39848
40222
  * @summary List Task Agent Runs
@@ -39857,14 +40231,15 @@ export class TaskAgentsApi extends BaseAPI {
39857
40231
  * @param {string | null} [createdAfter] Filter runs created at/after this timestamp.
39858
40232
  * @param {string | null} [createdBefore] Filter runs created at/before this timestamp.
39859
40233
  * @param {number | null} [minDurationMs] Filter runs with duration greater than or equal to this value.
40234
+ * @param {string | null} [taskAgentRevisionId] Filter by TaskAgent revision ID.
39860
40235
  * @param {number} [skip]
39861
40236
  * @param {number} [limit]
39862
40237
  * @param {*} [options] Override http request option.
39863
40238
  * @throws {RequiredError}
39864
40239
  * @memberof TaskAgentsApi
39865
40240
  */
39866
- public listTaskAgentRuns(orgId: string, projectId: string, taskAgentId: string, sessionId?: string | null, isError?: boolean | null, hadTaskToolFail?: boolean | null, hadMcpToolFail?: boolean | null, status?: TaskAgentRunStatus, createdAfter?: string | null, createdBefore?: string | null, minDurationMs?: number | null, skip?: number, limit?: number, options?: RawAxiosRequestConfig) {
39867
- return TaskAgentsApiFp(this.configuration).listTaskAgentRuns(orgId, projectId, taskAgentId, sessionId, isError, hadTaskToolFail, hadMcpToolFail, status, createdAfter, createdBefore, minDurationMs, skip, limit, options).then((request) => request(this.axios, this.basePath));
40241
+ public listTaskAgentRuns(orgId: string, projectId: string, taskAgentId: string, sessionId?: string | null, isError?: boolean | null, hadTaskToolFail?: boolean | null, hadMcpToolFail?: boolean | null, status?: TaskAgentRunStatus, createdAfter?: string | null, createdBefore?: string | null, minDurationMs?: number | null, taskAgentRevisionId?: string | null, skip?: number, limit?: number, options?: RawAxiosRequestConfig) {
40242
+ return TaskAgentsApiFp(this.configuration).listTaskAgentRuns(orgId, projectId, taskAgentId, sessionId, isError, hadTaskToolFail, hadMcpToolFail, status, createdAfter, createdBefore, minDurationMs, taskAgentRevisionId, skip, limit, options).then((request) => request(this.axios, this.basePath));
39868
40243
  }
39869
40244
 
39870
40245
  /**
@@ -39882,7 +40257,7 @@ export class TaskAgentsApi extends BaseAPI {
39882
40257
  }
39883
40258
 
39884
40259
  /**
39885
- * List all Task Agents configured for the project. Returns a paginated list of Task Agents with their: - Configuration details - Available task tools (Tasks) - LLM model settings - Execution mode
40260
+ * List all Task Agents configured for the project. Returns a paginated list of Task Agents with their root metadata and embedded revision history. Runtime configuration such as instructions, models, and tools is stored on each revision.
39886
40261
  * @summary List Task Agents
39887
40262
  * @param {string} orgId The unique identifier of the organization.
39888
40263
  * @param {string} projectId The unique identifier of the project.
@@ -39897,17 +40272,18 @@ export class TaskAgentsApi extends BaseAPI {
39897
40272
  }
39898
40273
 
39899
40274
  /**
39900
- * Execute the Task Agent with a user message. The agent will: 1. Process the message using the configured LLM 2. Reason about which task tools to invoke 3. Execute relevant Tasks as needed 4. Return a streaming response Responses are streamed using Server-Sent Events (SSE). The first SSE event emitted after successful stream setup is: - `event_type: \"session_id\"` with the resolved `session_id` in `metadata` Subsequent events include tool calls/results, text responses, and the terminal `done` or `error` event.
40275
+ * Execute the Task Agent with a user message. The agent will: 1. Process the message using the configured LLM 2. Reason about which task tools to invoke 3. Execute relevant Tasks as needed 4. Return a streaming response Responses are streamed using Server-Sent Events (SSE). The first SSE event emitted after successful stream setup is: - `event_type: \"session_id\"` with the resolved `session_id` in `metadata` Use `revision_id` to execute a specific TaskAgent revision. New sessions can run any revision belonging to the TaskAgent. Existing sessions remain pinned to their original revision; passing a conflicting `revision_id` is rejected. Subsequent events include tool calls/results, text responses, and the terminal `done` or `error` event.
39901
40276
  * @summary Run Task Agent
39902
40277
  * @param {string} orgId The unique identifier of the organization.
39903
40278
  * @param {string} projectId The unique identifier of the project.
39904
40279
  * @param {string} taskAgentId The specific Task Agent to reference.
40280
+ * @param {string | null} [revisionId] Optional TaskAgent revision ID to use for execution. If omitted, new sessions use the active revision and continuations use the session\&#39;s pinned revision.
39905
40281
  * @param {*} [options] Override http request option.
39906
40282
  * @throws {RequiredError}
39907
40283
  * @memberof TaskAgentsApi
39908
40284
  */
39909
- public runTaskAgent(orgId: string, projectId: string, taskAgentId: string, options?: RawAxiosRequestConfig) {
39910
- return TaskAgentsApiFp(this.configuration).runTaskAgent(orgId, projectId, taskAgentId, options).then((request) => request(this.axios, this.basePath));
40285
+ public runTaskAgent(orgId: string, projectId: string, taskAgentId: string, revisionId?: string | null, options?: RawAxiosRequestConfig) {
40286
+ return TaskAgentsApiFp(this.configuration).runTaskAgent(orgId, projectId, taskAgentId, revisionId, options).then((request) => request(this.axios, this.basePath));
39911
40287
  }
39912
40288
 
39913
40289
  /**
@@ -39972,7 +40348,7 @@ export class TaskAgentsApi extends BaseAPI {
39972
40348
  }
39973
40349
 
39974
40350
  /**
39975
- * Update Task Agent configuration. Modifiable fields: - Name and description - System instruction - LLM model - Execution mode - Task tools (full replacement) - MCP servers (full replacement) To update task tools, pass a `task_tools` array. This performs a full replacement: - Omit the field to leave task tools unchanged - Pass an empty array to remove all task tools - Pass a new array to replace all task tools (array order = execution order)
40351
+ * Update Task Agent metadata, create a new revision, or activate an existing revision. Modifiable fields: - Root metadata: name and run visibility - Revision configuration: description, instruction, LLM models, execution mode, memory settings, task tools, MCP servers, integrations, and skills - Activation: `active_revision_id` Updating revision configuration creates a new inactive revision. Activate it with a separate request that only includes `active_revision_id`. To update task tools, pass a `task_tools` array. This performs a full replacement: - Omit the field to leave task tools unchanged - Pass an empty array to remove all task tools - Pass a new array to replace all task tools (array order = execution order)
39976
40352
  * @summary Update Task Agent
39977
40353
  * @param {string} orgId The organization ID
39978
40354
  * @param {string} projectId The project ID