@amigo-ai/platform-sdk 0.85.1 → 0.86.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -713,6 +713,80 @@ export interface paths {
713
713
  patch?: never;
714
714
  trace?: never;
715
715
  };
716
+ "/v1/{workspace_id}/agent-definitions": {
717
+ parameters: {
718
+ query?: never;
719
+ header?: never;
720
+ path?: never;
721
+ cookie?: never;
722
+ };
723
+ /** List Agent Definitions */
724
+ get: operations["list_agent_definitions_v1__workspace_id__agent_definitions_get"];
725
+ put?: never;
726
+ /** Register Agent Definition */
727
+ post: operations["register_agent_definition_v1__workspace_id__agent_definitions_post"];
728
+ delete?: never;
729
+ options?: never;
730
+ head?: never;
731
+ patch?: never;
732
+ trace?: never;
733
+ };
734
+ "/v1/{workspace_id}/agent-definitions/validate": {
735
+ parameters: {
736
+ query?: never;
737
+ header?: never;
738
+ path?: never;
739
+ cookie?: never;
740
+ };
741
+ get?: never;
742
+ put?: never;
743
+ /**
744
+ * Validate Agent Definition
745
+ * @description Dry-run clamp validation — nothing is stored. 422 with the offending
746
+ * paths on failure (the same shape push returns).
747
+ */
748
+ post: operations["validate_agent_definition_v1__workspace_id__agent_definitions_validate_post"];
749
+ delete?: never;
750
+ options?: never;
751
+ head?: never;
752
+ patch?: never;
753
+ trace?: never;
754
+ };
755
+ "/v1/{workspace_id}/agent-definitions/{definition_id}": {
756
+ parameters: {
757
+ query?: never;
758
+ header?: never;
759
+ path?: never;
760
+ cookie?: never;
761
+ };
762
+ /** Get Agent Definition */
763
+ get: operations["get_agent_definition_v1__workspace_id__agent_definitions__definition_id__get"];
764
+ put?: never;
765
+ post?: never;
766
+ /** Archive Agent Definition */
767
+ delete: operations["archive_agent_definition_v1__workspace_id__agent_definitions__definition_id__delete"];
768
+ options?: never;
769
+ head?: never;
770
+ patch?: never;
771
+ trace?: never;
772
+ };
773
+ "/v1/{workspace_id}/agent-definitions/{definition_id}/versions/{version}": {
774
+ parameters: {
775
+ query?: never;
776
+ header?: never;
777
+ path?: never;
778
+ cookie?: never;
779
+ };
780
+ /** Get Agent Definition Version */
781
+ get: operations["get_agent_definition_version_v1__workspace_id__agent_definitions__definition_id__versions__version__get"];
782
+ put?: never;
783
+ post?: never;
784
+ delete?: never;
785
+ options?: never;
786
+ head?: never;
787
+ patch?: never;
788
+ trace?: never;
789
+ };
716
790
  "/v1/{workspace_id}/agent-runs": {
717
791
  parameters: {
718
792
  query?: never;
@@ -8152,6 +8226,97 @@ export interface components {
8152
8226
  /** Period */
8153
8227
  period?: string | null;
8154
8228
  };
8229
+ /** AgentDefinitionDetail */
8230
+ AgentDefinitionDetail: {
8231
+ /**
8232
+ * Definition Id
8233
+ * Format: uuid
8234
+ */
8235
+ definition_id: string;
8236
+ /**
8237
+ * Framework
8238
+ * @enum {string}
8239
+ */
8240
+ framework: "claude-agent-sdk" | "openai-agents" | "crewai";
8241
+ /** Name */
8242
+ name: string;
8243
+ /**
8244
+ * Status
8245
+ * @enum {string}
8246
+ */
8247
+ status: "active" | "archived";
8248
+ /** Versions */
8249
+ versions: components["schemas"]["AgentDefinitionVersionMeta"][];
8250
+ };
8251
+ /** AgentDefinitionListResponse */
8252
+ AgentDefinitionListResponse: {
8253
+ /** Continuation Token */
8254
+ continuation_token?: unknown;
8255
+ /** Has More */
8256
+ has_more: boolean;
8257
+ /** Items */
8258
+ items: components["schemas"]["AgentDefinitionSummary"][];
8259
+ };
8260
+ /** AgentDefinitionSummary */
8261
+ AgentDefinitionSummary: {
8262
+ /**
8263
+ * Definition Id
8264
+ * Format: uuid
8265
+ */
8266
+ definition_id: string;
8267
+ /**
8268
+ * Framework
8269
+ * @enum {string}
8270
+ */
8271
+ framework: "claude-agent-sdk" | "openai-agents" | "crewai";
8272
+ /** Name */
8273
+ name: string;
8274
+ /**
8275
+ * Status
8276
+ * @enum {string}
8277
+ */
8278
+ status: "active" | "archived";
8279
+ };
8280
+ /** AgentDefinitionVersionDetail */
8281
+ AgentDefinitionVersionDetail: {
8282
+ /** Agent Count */
8283
+ agent_count: number;
8284
+ /** Body */
8285
+ body: {
8286
+ [key: string]: unknown;
8287
+ };
8288
+ /** Body Sha256 */
8289
+ body_sha256: string;
8290
+ /**
8291
+ * Definition Id
8292
+ * Format: uuid
8293
+ */
8294
+ definition_id: string;
8295
+ /**
8296
+ * Framework
8297
+ * @enum {string}
8298
+ */
8299
+ framework: "claude-agent-sdk" | "openai-agents" | "crewai";
8300
+ /** Has Write Tools */
8301
+ has_write_tools: boolean;
8302
+ /** Validator Rev */
8303
+ validator_rev: string;
8304
+ /** Version */
8305
+ version: number;
8306
+ };
8307
+ /** AgentDefinitionVersionMeta */
8308
+ AgentDefinitionVersionMeta: {
8309
+ /** Agent Count */
8310
+ agent_count: number;
8311
+ /** Body Sha256 */
8312
+ body_sha256: string;
8313
+ /** Has Write Tools */
8314
+ has_write_tools: boolean;
8315
+ /** Validator Rev */
8316
+ validator_rev: string;
8317
+ /** Version */
8318
+ version: number;
8319
+ };
8155
8320
  /** AgentResponse */
8156
8321
  AgentResponse: {
8157
8322
  /**
@@ -11177,20 +11342,21 @@ export interface components {
11177
11342
  CreateAgentRunRequest: {
11178
11343
  /**
11179
11344
  * Framework
11180
- * @description Agent framework the run executes on runs unmodified in the framework's own design.
11181
- * @enum {string}
11345
+ * @description Framework a PLATFORM run executes on. For a native run the framework comes from the definition.
11182
11346
  */
11183
- framework: "claude-agent-sdk" | "openai-agents";
11347
+ framework?: ("claude-agent-sdk" | "openai-agents") | null;
11184
11348
  /**
11185
11349
  * Message
11186
11350
  * @description User message the framework agent is invoked with.
11187
11351
  */
11188
11352
  message: string;
11353
+ /** @description Run a native (bring-your-own) agent definition instead of a platform service. */
11354
+ native?: components["schemas"]["NativeRunRef"] | null;
11189
11355
  /**
11190
11356
  * Service Id
11191
- * Format: uuid
11357
+ * @description Platform-authored run: the service whose pinned config the agent runs.
11192
11358
  */
11193
- service_id: string;
11359
+ service_id?: string | null;
11194
11360
  /**
11195
11361
  * Timeout S
11196
11362
  * @description Server-side wall-clock budget for the run, in seconds (max 300).
@@ -11198,7 +11364,7 @@ export interface components {
11198
11364
  */
11199
11365
  timeout_s?: number;
11200
11366
  /**
11201
- * @description Named version set on the service whose pinned config the run uses.
11367
+ * @description Named version set on the service whose pinned config the run uses (platform runs).
11202
11368
  * @default release
11203
11369
  */
11204
11370
  version_set?: components["schemas"]["NameString"];
@@ -16132,6 +16298,14 @@ export interface components {
16132
16298
  * bumped the *same* document. Null for manual uploads and snapshot rows.
16133
16299
  */
16134
16300
  source_file_id?: string | null;
16301
+ /**
16302
+ * Source Folder Path
16303
+ * @description Where the file lived within the mapped Drive folder tree (V279) — the
16304
+ * relative path, folder names joined by ``/`` (e.g. ``clinical/notes``); ``''``
16305
+ * at the mapped root. Lets the console show the original folder structure. Null
16306
+ * for manual uploads and snapshot rows.
16307
+ */
16308
+ source_folder_path?: string | null;
16135
16309
  /**
16136
16310
  * Source Type
16137
16311
  * @description Origin of the document this version belongs to — ``manual`` for console
@@ -17590,6 +17764,32 @@ export interface components {
17590
17764
  /** Version */
17591
17765
  version: string;
17592
17766
  };
17767
+ /**
17768
+ * NativeRunRef
17769
+ * @description Run a customer-authored NATIVE agent definition (inc-10): a REGISTERED
17770
+ * definition by id (``version`` omitted = latest), or an INLINE body for
17771
+ * dev/playground iteration. The definition's own ``framework`` selects the
17772
+ * runtime — no top-level ``framework`` needed.
17773
+ */
17774
+ NativeRunRef: {
17775
+ /**
17776
+ * Definition Id
17777
+ * @description Registered definition to run. Omit `version` for the latest.
17778
+ */
17779
+ definition_id?: string | null;
17780
+ /**
17781
+ * Inline
17782
+ * @description Inline definition document (dev/playground). Validated by the platform clamp schema.
17783
+ */
17784
+ inline?: {
17785
+ [key: string]: unknown;
17786
+ } | null;
17787
+ /**
17788
+ * Version
17789
+ * @description Pinned definition version; omit for latest.
17790
+ */
17791
+ version?: number | null;
17792
+ };
17593
17793
  /** NavTimingEvent */
17594
17794
  NavTimingEvent: {
17595
17795
  /**
@@ -20162,6 +20362,44 @@ export interface components {
20162
20362
  */
20163
20363
  status?: "available";
20164
20364
  };
20365
+ /** RegisterAgentDefinitionRequest */
20366
+ RegisterAgentDefinitionRequest: {
20367
+ /**
20368
+ * Body
20369
+ * @description The framework-native definition document (its 'framework' field selects the shape). Validated by the platform clamp schema — a non-whitelisted field is rejected.
20370
+ */
20371
+ body: {
20372
+ [key: string]: unknown;
20373
+ };
20374
+ /** @description Stable slug identifying this definition within the workspace. */
20375
+ name: components["schemas"]["SlugString"];
20376
+ };
20377
+ /** RegisterAgentDefinitionResponse */
20378
+ RegisterAgentDefinitionResponse: {
20379
+ /** Agent Count */
20380
+ agent_count: number;
20381
+ /** Body Sha256 */
20382
+ body_sha256: string;
20383
+ /**
20384
+ * Created
20385
+ * @description False when an identical body was already registered (idempotent push).
20386
+ */
20387
+ created: boolean;
20388
+ /**
20389
+ * Definition Id
20390
+ * Format: uuid
20391
+ */
20392
+ definition_id: string;
20393
+ /**
20394
+ * Framework
20395
+ * @enum {string}
20396
+ */
20397
+ framework: "claude-agent-sdk" | "openai-agents" | "crewai";
20398
+ /** Has Write Tools */
20399
+ has_write_tools: boolean;
20400
+ /** Version */
20401
+ version: number;
20402
+ };
20165
20403
  /**
20166
20404
  * RegisterSchemaRequest
20167
20405
  * @description Create Schema payload (intake-ui-mvp-design.md §5.4, §5.9).
@@ -26405,6 +26643,23 @@ export interface components {
26405
26643
  */
26406
26644
  type: "user_transcript";
26407
26645
  };
26646
+ /** ValidateAgentDefinitionResponse */
26647
+ ValidateAgentDefinitionResponse: {
26648
+ /** Agent Count */
26649
+ agent_count: number;
26650
+ /**
26651
+ * Framework
26652
+ * @enum {string}
26653
+ */
26654
+ framework: "claude-agent-sdk" | "openai-agents" | "crewai";
26655
+ /** Has Write Tools */
26656
+ has_write_tools: boolean;
26657
+ /**
26658
+ * Valid
26659
+ * @constant
26660
+ */
26661
+ valid: true;
26662
+ };
26408
26663
  /** ValidationError */
26409
26664
  ValidationError: {
26410
26665
  /** Context */
@@ -29758,6 +30013,207 @@ export interface operations {
29758
30013
  };
29759
30014
  };
29760
30015
  };
30016
+ list_agent_definitions_v1__workspace_id__agent_definitions_get: {
30017
+ parameters: {
30018
+ query?: {
30019
+ framework?: ("claude-agent-sdk" | "openai-agents" | "crewai") | null;
30020
+ include_archived?: boolean;
30021
+ limit?: number;
30022
+ continuation_token?: unknown;
30023
+ };
30024
+ header?: never;
30025
+ path: {
30026
+ workspace_id: string;
30027
+ };
30028
+ cookie?: never;
30029
+ };
30030
+ requestBody?: never;
30031
+ responses: {
30032
+ /** @description Successful Response */
30033
+ 200: {
30034
+ headers: {
30035
+ [name: string]: unknown;
30036
+ };
30037
+ content: {
30038
+ "application/json": components["schemas"]["AgentDefinitionListResponse"];
30039
+ };
30040
+ };
30041
+ /** @description Validation Error */
30042
+ 422: {
30043
+ headers: {
30044
+ [name: string]: unknown;
30045
+ };
30046
+ content: {
30047
+ "application/json": components["schemas"]["HTTPValidationError"];
30048
+ };
30049
+ };
30050
+ };
30051
+ };
30052
+ register_agent_definition_v1__workspace_id__agent_definitions_post: {
30053
+ parameters: {
30054
+ query?: never;
30055
+ header?: never;
30056
+ path: {
30057
+ workspace_id: string;
30058
+ };
30059
+ cookie?: never;
30060
+ };
30061
+ requestBody: {
30062
+ content: {
30063
+ "application/json": components["schemas"]["RegisterAgentDefinitionRequest"];
30064
+ };
30065
+ };
30066
+ responses: {
30067
+ /** @description Successful Response */
30068
+ 200: {
30069
+ headers: {
30070
+ [name: string]: unknown;
30071
+ };
30072
+ content: {
30073
+ "application/json": components["schemas"]["RegisterAgentDefinitionResponse"];
30074
+ };
30075
+ };
30076
+ /** @description Validation Error */
30077
+ 422: {
30078
+ headers: {
30079
+ [name: string]: unknown;
30080
+ };
30081
+ content: {
30082
+ "application/json": components["schemas"]["HTTPValidationError"];
30083
+ };
30084
+ };
30085
+ };
30086
+ };
30087
+ validate_agent_definition_v1__workspace_id__agent_definitions_validate_post: {
30088
+ parameters: {
30089
+ query?: never;
30090
+ header?: never;
30091
+ path: {
30092
+ workspace_id: string;
30093
+ };
30094
+ cookie?: never;
30095
+ };
30096
+ requestBody: {
30097
+ content: {
30098
+ "application/json": components["schemas"]["RegisterAgentDefinitionRequest"];
30099
+ };
30100
+ };
30101
+ responses: {
30102
+ /** @description Successful Response */
30103
+ 200: {
30104
+ headers: {
30105
+ [name: string]: unknown;
30106
+ };
30107
+ content: {
30108
+ "application/json": components["schemas"]["ValidateAgentDefinitionResponse"];
30109
+ };
30110
+ };
30111
+ /** @description Validation Error */
30112
+ 422: {
30113
+ headers: {
30114
+ [name: string]: unknown;
30115
+ };
30116
+ content: {
30117
+ "application/json": components["schemas"]["HTTPValidationError"];
30118
+ };
30119
+ };
30120
+ };
30121
+ };
30122
+ get_agent_definition_v1__workspace_id__agent_definitions__definition_id__get: {
30123
+ parameters: {
30124
+ query?: never;
30125
+ header?: never;
30126
+ path: {
30127
+ workspace_id: string;
30128
+ definition_id: string;
30129
+ };
30130
+ cookie?: never;
30131
+ };
30132
+ requestBody?: never;
30133
+ responses: {
30134
+ /** @description Successful Response */
30135
+ 200: {
30136
+ headers: {
30137
+ [name: string]: unknown;
30138
+ };
30139
+ content: {
30140
+ "application/json": components["schemas"]["AgentDefinitionDetail"];
30141
+ };
30142
+ };
30143
+ /** @description Validation Error */
30144
+ 422: {
30145
+ headers: {
30146
+ [name: string]: unknown;
30147
+ };
30148
+ content: {
30149
+ "application/json": components["schemas"]["HTTPValidationError"];
30150
+ };
30151
+ };
30152
+ };
30153
+ };
30154
+ archive_agent_definition_v1__workspace_id__agent_definitions__definition_id__delete: {
30155
+ parameters: {
30156
+ query?: never;
30157
+ header?: never;
30158
+ path: {
30159
+ workspace_id: string;
30160
+ definition_id: string;
30161
+ };
30162
+ cookie?: never;
30163
+ };
30164
+ requestBody?: never;
30165
+ responses: {
30166
+ /** @description Successful Response */
30167
+ 204: {
30168
+ headers: {
30169
+ [name: string]: unknown;
30170
+ };
30171
+ content?: never;
30172
+ };
30173
+ /** @description Validation Error */
30174
+ 422: {
30175
+ headers: {
30176
+ [name: string]: unknown;
30177
+ };
30178
+ content: {
30179
+ "application/json": components["schemas"]["HTTPValidationError"];
30180
+ };
30181
+ };
30182
+ };
30183
+ };
30184
+ get_agent_definition_version_v1__workspace_id__agent_definitions__definition_id__versions__version__get: {
30185
+ parameters: {
30186
+ query?: never;
30187
+ header?: never;
30188
+ path: {
30189
+ workspace_id: string;
30190
+ definition_id: string;
30191
+ version: number;
30192
+ };
30193
+ cookie?: never;
30194
+ };
30195
+ requestBody?: never;
30196
+ responses: {
30197
+ /** @description Successful Response */
30198
+ 200: {
30199
+ headers: {
30200
+ [name: string]: unknown;
30201
+ };
30202
+ content: {
30203
+ "application/json": components["schemas"]["AgentDefinitionVersionDetail"];
30204
+ };
30205
+ };
30206
+ /** @description Validation Error */
30207
+ 422: {
30208
+ headers: {
30209
+ [name: string]: unknown;
30210
+ };
30211
+ content: {
30212
+ "application/json": components["schemas"]["HTTPValidationError"];
30213
+ };
30214
+ };
30215
+ };
30216
+ };
29761
30217
  create_agent_run_v1__workspace_id__agent_runs_post: {
29762
30218
  parameters: {
29763
30219
  query?: never;