@amigo-ai/sdk 0.54.0 → 0.56.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.
@@ -6554,7 +6554,7 @@ export interface components {
6554
6554
  * Dynamic Behavior Sets
6555
6555
  * @description The retrieved dynamic behavior sets.
6556
6556
  */
6557
- dynamic_behavior_sets: components["schemas"]["dynamic_behavior_set__search_dynamic_behavior_sets__Response__DynamicBehaviorSetInstance"][];
6557
+ dynamic_behavior_sets: components["schemas"]["dynamic_behavior_set__get_dynamic_behavior_sets__Response__DynamicBehaviorSetInstance"][];
6558
6558
  /**
6559
6559
  * Has More
6560
6560
  * @description Whether there are more dynamic behavior sets to retrieve.
@@ -6571,34 +6571,8 @@ export interface components {
6571
6571
  * retrieved. */
6572
6572
  filter_values: components["schemas"]["dynamic_behavior_set__get_dynamic_behavior_sets__Response__FilterValues"] | null;
6573
6573
  };
6574
- /** FilterValues */
6575
- dynamic_behavior_set__get_dynamic_behavior_sets__Response__FilterValues: {
6576
- /**
6577
- * Applied To Services Ids
6578
- * @description A set of service IDs that have dynamic behavior sets applied to the service.
6579
- */
6580
- applied_to_services_ids: string[];
6581
- /**
6582
- * Creators
6583
- * @description A set of creator infos that created the dynamic behavior sets under the current filters.
6584
- */
6585
- creators: components["schemas"]["amigo_lib__mongo__collections__dynamic_behavior_set__DynamicBehaviorSet__UserInfo"][];
6586
- /**
6587
- * Tags
6588
- * @description A set of tag keys that exist in the dynamic behavior sets under the current filters.
6589
- */
6590
- tags: string[];
6591
- };
6592
- /** Response */
6593
- dynamic_behavior_set__search_dynamic_behavior_sets__Response: {
6594
- /**
6595
- * Dynamic Behavior Sets
6596
- * @description The retrieved dynamic behavior sets.
6597
- */
6598
- dynamic_behavior_sets: components["schemas"]["dynamic_behavior_set__search_dynamic_behavior_sets__Response__DynamicBehaviorSetInstance"][];
6599
- };
6600
6574
  /** DynamicBehaviorSetInstance */
6601
- dynamic_behavior_set__search_dynamic_behavior_sets__Response__DynamicBehaviorSetInstance: {
6575
+ dynamic_behavior_set__get_dynamic_behavior_sets__Response__DynamicBehaviorSetInstance: {
6602
6576
  /** Id */
6603
6577
  id: string;
6604
6578
  /** Name */
@@ -6624,6 +6598,32 @@ export interface components {
6624
6598
  updated_at: string;
6625
6599
  updated_by: components["schemas"]["amigo_lib__mongo__collections__dynamic_behavior_set__DynamicBehaviorSet__UserInfo"];
6626
6600
  };
6601
+ /** FilterValues */
6602
+ dynamic_behavior_set__get_dynamic_behavior_sets__Response__FilterValues: {
6603
+ /**
6604
+ * Applied To Services Ids
6605
+ * @description A set of service IDs that have dynamic behavior sets applied to the service.
6606
+ */
6607
+ applied_to_services_ids: string[];
6608
+ /**
6609
+ * Creators
6610
+ * @description A set of creator infos that created the dynamic behavior sets under the current filters.
6611
+ */
6612
+ creators: components["schemas"]["amigo_lib__mongo__collections__dynamic_behavior_set__DynamicBehaviorSet__UserInfo"][];
6613
+ /**
6614
+ * Tags
6615
+ * @description A set of tag keys that exist in the dynamic behavior sets under the current filters.
6616
+ */
6617
+ tags: string[];
6618
+ };
6619
+ /** Response */
6620
+ dynamic_behavior_set__search_dynamic_behavior_sets__Response: {
6621
+ /**
6622
+ * Dynamic Behavior Sets
6623
+ * @description The retrieved dynamic behavior sets.
6624
+ */
6625
+ dynamic_behavior_sets: components["schemas"]["dynamic_behavior_set__get_dynamic_behavior_sets__Response__DynamicBehaviorSetInstance"][];
6626
+ };
6627
6627
  /** Request */
6628
6628
  dynamic_behavior_set__update_dynamic_behavior_set__Request: {
6629
6629
  /** @description The name of the dynamic behavior set. */
@@ -7435,7 +7435,7 @@ export interface components {
7435
7435
  * Permission Grants
7436
7436
  * @description A list of permission grants associated with this role.
7437
7437
  */
7438
- permission_grants: components["schemas"]["role__create_role__Request__PermissionGrant"][];
7438
+ permission_grants: components["schemas"]["role__modify_role__Request__PermissionGrant"][];
7439
7439
  /** @description The frontend view for users of this role. */
7440
7440
  frontend_view: components["schemas"]["FrontendView"];
7441
7441
  /**
@@ -7449,25 +7449,6 @@ export interface components {
7449
7449
  */
7450
7450
  inherited_from: string | null;
7451
7451
  };
7452
- /** PermissionGrant */
7453
- role__create_role__Request__PermissionGrant: {
7454
- /**
7455
- * Action
7456
- * @description Whether this grant allows or denies the specified access.
7457
- * @enum {string}
7458
- */
7459
- action: "Allow" | "Deny";
7460
- /** Permission Name */
7461
- permission_name: string;
7462
- /**
7463
- * Conditions
7464
- * @description A dictionary of attribute name to condition that must be met for this grant to be applicable.
7465
- */
7466
- conditions: {
7467
- [key: string]: components["schemas"]["Condition"];
7468
- };
7469
- description?: components["schemas"]["amigo_lib__pydantic__base_model__StrippedNonemptyString__1"] | null;
7470
- };
7471
7452
  /** Response */
7472
7453
  role__create_role__Response: {
7473
7454
  /**
@@ -7492,7 +7473,7 @@ export interface components {
7492
7473
  * Permission Grants
7493
7474
  * @description A list of permission grants associated with this role. Only updated if specified. This field is an immutable field.
7494
7475
  */
7495
- permission_grants?: components["schemas"]["role__create_role__Request__PermissionGrant"][] | null;
7476
+ permission_grants?: components["schemas"]["role__modify_role__Request__PermissionGrant"][] | null;
7496
7477
  /** @description The frontend view for the user of this role. Only updated if specified. This field is an immutable field. */
7497
7478
  frontend_view?: components["schemas"]["FrontendView"] | null;
7498
7479
  /**
@@ -7502,6 +7483,25 @@ export interface components {
7502
7483
  */
7503
7484
  inherited_from?: string | components["schemas"]["_NotSet"] | null;
7504
7485
  };
7486
+ /** PermissionGrant */
7487
+ role__modify_role__Request__PermissionGrant: {
7488
+ /**
7489
+ * Action
7490
+ * @description Whether this grant allows or denies the specified access.
7491
+ * @enum {string}
7492
+ */
7493
+ action: "Allow" | "Deny";
7494
+ /** Permission Name */
7495
+ permission_name: string;
7496
+ /**
7497
+ * Conditions
7498
+ * @description A dictionary of attribute name to condition that must be met for this grant to be applicable.
7499
+ */
7500
+ conditions: {
7501
+ [key: string]: components["schemas"]["Condition"];
7502
+ };
7503
+ description?: components["schemas"]["amigo_lib__pydantic__base_model__StrippedNonemptyString__1"] | null;
7504
+ };
7505
7505
  /** Response */
7506
7506
  role__modify_role__Response: {
7507
7507
  /**
@@ -7533,7 +7533,7 @@ export interface components {
7533
7533
  is_active: boolean;
7534
7534
  /** @description The `release` version set to use for this service. If not specified, the `release` version set will be the same as the `edge` version set, which uses the
7535
7535
  * latest agent and state machine versions with no model preference. */
7536
- release_version_set?: components["schemas"]["service__create_service__Request__VersionSet"] | null;
7536
+ release_version_set?: components["schemas"]["service__upsert_service_version_set__Request__VersionSet"] | null;
7537
7537
  /**
7538
7538
  * Tags
7539
7539
  * @description The tags of this service.
@@ -7542,23 +7542,6 @@ export interface components {
7542
7542
  [key: string]: components["schemas"]["StrippedNonemptyString___w__s_____"] | null;
7543
7543
  };
7544
7544
  };
7545
- /** VersionSet */
7546
- service__create_service__Request__VersionSet: {
7547
- /**
7548
- * Agent Version Number
7549
- * @description The version number of the agent to be used. If None, the latest agent version will be used.
7550
- */
7551
- agent_version_number: number | null;
7552
- /**
7553
- * Service Hierarchical State Machine Version Number
7554
- * @description The version number of the state machine to be used. If None, the latest state machine version will be used.
7555
- */
7556
- service_hierarchical_state_machine_version_number: number | null;
7557
- /** Llm Model Preferences */
7558
- llm_model_preferences: {
7559
- [key: string]: components["schemas"]["service__create_service__Request__VersionSet__LLMConfig"] | components["schemas"]["service__upsert_service_version_set__Request__VersionSet__LLMLoadBalancingSetConfig"];
7560
- };
7561
- };
7562
7545
  /** LLMConfig */
7563
7546
  service__create_service__Request__VersionSet__LLMConfig: {
7564
7547
  llm_name: components["schemas"]["LLMType"];
@@ -7653,7 +7636,24 @@ export interface components {
7653
7636
  /** Request */
7654
7637
  service__upsert_service_version_set__Request: {
7655
7638
  /** @description The version set to upsert. */
7656
- version_set: components["schemas"]["service__create_service__Request__VersionSet"];
7639
+ version_set: components["schemas"]["service__upsert_service_version_set__Request__VersionSet"];
7640
+ };
7641
+ /** VersionSet */
7642
+ service__upsert_service_version_set__Request__VersionSet: {
7643
+ /**
7644
+ * Agent Version Number
7645
+ * @description The version number of the agent to be used. If None, the latest agent version will be used.
7646
+ */
7647
+ agent_version_number: number | null;
7648
+ /**
7649
+ * Service Hierarchical State Machine Version Number
7650
+ * @description The version number of the state machine to be used. If None, the latest state machine version will be used.
7651
+ */
7652
+ service_hierarchical_state_machine_version_number: number | null;
7653
+ /** Llm Model Preferences */
7654
+ llm_model_preferences: {
7655
+ [key: string]: components["schemas"]["service__create_service__Request__VersionSet__LLMConfig"] | components["schemas"]["service__upsert_service_version_set__Request__VersionSet__LLMLoadBalancingSetConfig"];
7656
+ };
7657
7657
  };
7658
7658
  /** LLMLoadBalancingSetConfig */
7659
7659
  service__upsert_service_version_set__Request__VersionSet__LLMLoadBalancingSetConfig: {
@@ -7866,7 +7866,7 @@ export interface components {
7866
7866
  * Unit Test Runs
7867
7867
  * @description The unit test runs that are part of this set.
7868
7868
  */
7869
- unit_test_runs: components["schemas"]["simulation__create_simulation_unit_test_set__Request__UnitTestRunDescriptor"][];
7869
+ unit_test_runs: components["schemas"]["simulation__update_simulation_unit_test_set__Request__UnitTestRunDescriptor"][];
7870
7870
  /**
7871
7871
  * Tags
7872
7872
  * @description The tags of the simulation unit test set.
@@ -7875,16 +7875,6 @@ export interface components {
7875
7875
  [key: string]: string | null;
7876
7876
  };
7877
7877
  };
7878
- /** UnitTestRunDescriptor */
7879
- simulation__create_simulation_unit_test_set__Request__UnitTestRunDescriptor: {
7880
- /** Unit Test Id */
7881
- unit_test_id: string;
7882
- /**
7883
- * Run Count
7884
- * @description The number of times to run the unit test.
7885
- */
7886
- run_count: number;
7887
- };
7888
7878
  /** Response */
7889
7879
  simulation__create_simulation_unit_test_set__Response: {
7890
7880
  /**
@@ -8381,7 +8371,7 @@ export interface components {
8381
8371
  * Unit Test Runs
8382
8372
  * @description The unit test runs that are part of this set.
8383
8373
  */
8384
- unit_test_runs?: components["schemas"]["simulation__create_simulation_unit_test_set__Request__UnitTestRunDescriptor"][] | null;
8374
+ unit_test_runs?: components["schemas"]["simulation__update_simulation_unit_test_set__Request__UnitTestRunDescriptor"][] | null;
8385
8375
  /**
8386
8376
  * Tags
8387
8377
  * @description The tags of the simulation unit test set.
@@ -8390,6 +8380,16 @@ export interface components {
8390
8380
  [key: string]: string | null;
8391
8381
  } | null;
8392
8382
  };
8383
+ /** UnitTestRunDescriptor */
8384
+ simulation__update_simulation_unit_test_set__Request__UnitTestRunDescriptor: {
8385
+ /** Unit Test Id */
8386
+ unit_test_id: string;
8387
+ /**
8388
+ * Run Count
8389
+ * @description The number of times to run the unit test.
8390
+ */
8391
+ run_count: number;
8392
+ };
8393
8393
  /** Request */
8394
8394
  tool__create_tool__Request: {
8395
8395
  /** @description The name of the tool. It must be unique among all non-deprecated tools in the organization. */
@@ -8418,7 +8418,7 @@ export interface components {
8418
8418
  * Tool Invocations
8419
8419
  * @description The list of tool invocations.
8420
8420
  */
8421
- tool_invocations: components["schemas"]["tool__search_tool_invocations__Response__ToolInvocationInstance"][];
8421
+ tool_invocations: components["schemas"]["tool__get_tool_invocations__Response__ToolInvocationInstance"][];
8422
8422
  /**
8423
8423
  * Has More
8424
8424
  * @description Whether there are more tool invocations to retrieve.
@@ -8430,6 +8430,47 @@ export interface components {
8430
8430
  */
8431
8431
  continuation_token: unknown | null;
8432
8432
  };
8433
+ /** ToolInvocationInstance */
8434
+ tool__get_tool_invocations__Response__ToolInvocationInstance: {
8435
+ /**
8436
+ * Id
8437
+ * @description The ID of the tool invocation.
8438
+ */
8439
+ id: string;
8440
+ /**
8441
+ * Org Id
8442
+ * @description The ID of the organization.
8443
+ */
8444
+ org_id: string;
8445
+ /**
8446
+ * Created At
8447
+ * Format: date-time
8448
+ */
8449
+ created_at?: string;
8450
+ /**
8451
+ * Updated At
8452
+ * Format: date-time
8453
+ */
8454
+ updated_at?: string;
8455
+ /** @description The status of the tool invocation. */
8456
+ invocation_status: components["schemas"]["InvocationStatus"];
8457
+ /** @description The source of the tool invocation. */
8458
+ invocation_source: components["schemas"]["InvocationSource"];
8459
+ /** Logs */
8460
+ logs: string[];
8461
+ /**
8462
+ * Duration Ms
8463
+ * @description The duration of the tool invocation in milliseconds.
8464
+ */
8465
+ duration_ms: number;
8466
+ /**
8467
+ * Tool Id
8468
+ * @description The ID of the tool that was invoked.
8469
+ */
8470
+ tool_id: string;
8471
+ /** @description The version of the tool that was invoked. */
8472
+ tool_version: components["schemas"]["amigo_lib__mongo__collections__tool_invocation__ToolInvocation__Version"];
8473
+ };
8433
8474
  /** Response */
8434
8475
  tool__get_tool_versions__Response: {
8435
8476
  /**
@@ -8498,23 +8539,7 @@ export interface components {
8498
8539
  * Inputs
8499
8540
  * @description The list of inputs for the tool invocation.
8500
8541
  */
8501
- inputs: components["schemas"]["tool__invoke_tool_version__Request__Input"][];
8502
- };
8503
- /** Input */
8504
- tool__invoke_tool_version__Request__Input: {
8505
- /**
8506
- * Input Parameters
8507
- * @description The input parameters for the tool invocation.
8508
- */
8509
- input_parameters: {
8510
- [key: string]: unknown;
8511
- };
8512
- /**
8513
- * Invocation Mode
8514
- * @description The mode of invocation.
8515
- * @enum {string}
8516
- */
8517
- invocation_mode: "regular" | "conversation-simulation";
8542
+ inputs: components["schemas"]["tool__test_tool__Request__Input"][];
8518
8543
  };
8519
8544
  /** Response */
8520
8545
  tool__invoke_tool_version__Response: {
@@ -8586,48 +8611,7 @@ export interface components {
8586
8611
  * Tool Invocations
8587
8612
  * @description The list of tool invocations.
8588
8613
  */
8589
- tool_invocations: components["schemas"]["tool__search_tool_invocations__Response__ToolInvocationInstance"][];
8590
- };
8591
- /** ToolInvocationInstance */
8592
- tool__search_tool_invocations__Response__ToolInvocationInstance: {
8593
- /**
8594
- * Id
8595
- * @description The ID of the tool invocation.
8596
- */
8597
- id: string;
8598
- /**
8599
- * Org Id
8600
- * @description The ID of the organization.
8601
- */
8602
- org_id: string;
8603
- /**
8604
- * Created At
8605
- * Format: date-time
8606
- */
8607
- created_at?: string;
8608
- /**
8609
- * Updated At
8610
- * Format: date-time
8611
- */
8612
- updated_at?: string;
8613
- /** @description The status of the tool invocation. */
8614
- invocation_status: components["schemas"]["InvocationStatus"];
8615
- /** @description The source of the tool invocation. */
8616
- invocation_source: components["schemas"]["InvocationSource"];
8617
- /** Logs */
8618
- logs: string[];
8619
- /**
8620
- * Duration Ms
8621
- * @description The duration of the tool invocation in milliseconds.
8622
- */
8623
- duration_ms: number;
8624
- /**
8625
- * Tool Id
8626
- * @description The ID of the tool that was invoked.
8627
- */
8628
- tool_id: string;
8629
- /** @description The version of the tool that was invoked. */
8630
- tool_version: components["schemas"]["amigo_lib__mongo__collections__tool_invocation__ToolInvocation__Version"];
8614
+ tool_invocations: components["schemas"]["tool__get_tool_invocations__Response__ToolInvocationInstance"][];
8631
8615
  };
8632
8616
  /** Request */
8633
8617
  tool__test_tool__Request: {
@@ -8635,7 +8619,7 @@ export interface components {
8635
8619
  * Inputs
8636
8620
  * @description The list of inputs for the tool invocation.
8637
8621
  */
8638
- inputs: components["schemas"]["tool__invoke_tool_version__Request__Input"][];
8622
+ inputs: components["schemas"]["tool__test_tool__Request__Input"][];
8639
8623
  /**
8640
8624
  * Commit Branch
8641
8625
  * @description The branch in the tools repo whose tip will be tested.
@@ -8661,6 +8645,22 @@ export interface components {
8661
8645
  [key: string]: string;
8662
8646
  };
8663
8647
  };
8648
+ /** Input */
8649
+ tool__test_tool__Request__Input: {
8650
+ /**
8651
+ * Input Parameters
8652
+ * @description The input parameters for the tool invocation.
8653
+ */
8654
+ input_parameters: {
8655
+ [key: string]: unknown;
8656
+ };
8657
+ /**
8658
+ * Invocation Mode
8659
+ * @description The mode of invocation.
8660
+ * @enum {string}
8661
+ */
8662
+ invocation_mode: "regular" | "conversation-simulation";
8663
+ };
8664
8664
  /** Response */
8665
8665
  tool__test_tool__Response: {
8666
8666
  /** Invocation Results */
@@ -8767,7 +8767,7 @@ export interface components {
8767
8767
  * Users
8768
8768
  * @description Users in this organization.
8769
8769
  */
8770
- users: components["schemas"]["user__get_users__Response__UserInstance"][];
8770
+ users: components["schemas"]["user__search_users__Response__UserInstance"][];
8771
8771
  /**
8772
8772
  * Has More
8773
8773
  * @description Whether there are more users to retrieve.
@@ -8779,8 +8779,16 @@ export interface components {
8779
8779
  */
8780
8780
  continuation_token: number | null;
8781
8781
  };
8782
+ /** Response */
8783
+ user__search_users__Response: {
8784
+ /**
8785
+ * Users
8786
+ * @description Users in this organization.
8787
+ */
8788
+ users: components["schemas"]["user__search_users__Response__UserInstance"][];
8789
+ };
8782
8790
  /** UserInstance */
8783
- user__get_users__Response__UserInstance: {
8791
+ user__search_users__Response__UserInstance: {
8784
8792
  /**
8785
8793
  * Org Id
8786
8794
  * @description The ID of the organization that this user belongs to.
@@ -8807,7 +8815,7 @@ export interface components {
8807
8815
  */
8808
8816
  email: string;
8809
8817
  /** @description Statistics about the user's usage of the Amigo platform. */
8810
- user_stats: components["schemas"]["user__get_users__Response__UserInstance__UserStats"];
8818
+ user_stats: components["schemas"]["user__search_users__Response__UserInstance__UserStats"];
8811
8819
  /**
8812
8820
  * Role
8813
8821
  * @description The ID of the role of the user.
@@ -8817,7 +8825,7 @@ export interface components {
8817
8825
  preferences: components["schemas"]["amigo_lib__mongo__collections__user__User__Preferences"];
8818
8826
  };
8819
8827
  /** UserStats */
8820
- user__get_users__Response__UserInstance__UserStats: {
8828
+ user__search_users__Response__UserInstance__UserStats: {
8821
8829
  /**
8822
8830
  * Num Conversations
8823
8831
  * @description The number of conversations the user has created.
@@ -8834,14 +8842,6 @@ export interface components {
8834
8842
  */
8835
8843
  last_message_time: string | null;
8836
8844
  };
8837
- /** Response */
8838
- user__search_users__Response: {
8839
- /**
8840
- * Users
8841
- * @description Users in this organization.
8842
- */
8843
- users: components["schemas"]["user__get_users__Response__UserInstance"][];
8844
- };
8845
8845
  /** SigninWithAPIKeyResponse */
8846
8846
  user__sign_in_with_api_key__Response: {
8847
8847
  /**
@@ -17534,7 +17534,7 @@ export interface operations {
17534
17534
  "application/json": components["schemas"]["tool__publish_tool_version__Response"];
17535
17535
  };
17536
17536
  };
17537
- /** @description Specified commit is older than the last valid commit, or the environment variables required by the tool version do not exist on the tool, or more than 3 active versions of the tool exist. */
17537
+ /** @description Specified commit is older than the last valid commit, or the environment variables required by the tool version do not exist on the tool, or more than 10 active versions of the tool exist. */
17538
17538
  400: {
17539
17539
  headers: {
17540
17540
  [name: string]: unknown;
@@ -5,7 +5,7 @@ export declare class UserResource {
5
5
  private orgId;
6
6
  constructor(c: AmigoFetch, orgId: string);
7
7
  getUsers(queryParams?: operations['get-users']['parameters']['query'], headers?: operations['get-users']['parameters']['header']): Promise<{
8
- users: components["schemas"]["user__get_users__Response__UserInstance"][];
8
+ users: components["schemas"]["user__search_users__Response__UserInstance"][];
9
9
  has_more: boolean;
10
10
  continuation_token: number | null;
11
11
  }>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@amigo-ai/sdk",
3
- "version": "0.54.0",
3
+ "version": "0.56.0",
4
4
  "description": "Amigo TypeScript SDK",
5
5
  "publishConfig": {
6
6
  "access": "public"