@amigo-ai/sdk 0.66.0 → 0.67.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.
@@ -5265,7 +5265,7 @@ export interface components {
5265
5265
  */
5266
5266
  tool_id: string;
5267
5267
  /** @description The version of the tool. */
5268
- version: components["schemas"]["amigo_lib__mongo__collections__tool_version__ToolVersion__Version"];
5268
+ version: components["schemas"]["amigo_lib__mongo__collections__tool_invocation__ToolInvocation__Version"];
5269
5269
  /**
5270
5270
  * Required Envvars
5271
5271
  * @description The environment variables that are required to run the tool.
@@ -5482,16 +5482,6 @@ export interface components {
5482
5482
  * @enum {string}
5483
5483
  */
5484
5484
  type: "mp3";
5485
- /**
5486
- * Sample Rate
5487
- * @enum {integer}
5488
- */
5489
- sample_rate: 22050 | 44100;
5490
- /**
5491
- * Sample Width
5492
- * @enum {integer}
5493
- */
5494
- sample_width: 4 | 8;
5495
5485
  };
5496
5486
  /** VoiceResponsePCMAudioFormat */
5497
5487
  VoiceResponsePCMAudioFormat: {
@@ -5500,11 +5490,6 @@ export interface components {
5500
5490
  * @enum {string}
5501
5491
  */
5502
5492
  type: "pcm";
5503
- /**
5504
- * Sample Rate
5505
- * @enum {integer}
5506
- */
5507
- sample_rate: 8000 | 16000 | 44100;
5508
5493
  };
5509
5494
  /** WebhookDeliveryInstance */
5510
5495
  WebhookDeliveryInstance: {
@@ -5941,6 +5926,15 @@ export interface components {
5941
5926
  /** Value */
5942
5927
  value: string | null;
5943
5928
  };
5929
+ /** Version */
5930
+ amigo_lib__mongo__collections__tool_invocation__ToolInvocation__Version: {
5931
+ /** Major */
5932
+ major: number;
5933
+ /** Minor */
5934
+ minor: number;
5935
+ /** Patch */
5936
+ patch: number;
5937
+ };
5944
5938
  /** UserInfo */
5945
5939
  amigo_lib__mongo__collections__tool_version__ToolVersion__UserInfo: {
5946
5940
  /**
@@ -5954,15 +5948,6 @@ export interface components {
5954
5948
  */
5955
5949
  user_org_id: string;
5956
5950
  };
5957
- /** Version */
5958
- amigo_lib__mongo__collections__tool_version__ToolVersion__Version: {
5959
- /** Major */
5960
- major: number;
5961
- /** Minor */
5962
- minor: number;
5963
- /** Patch */
5964
- patch: number;
5965
- };
5966
5951
  /**
5967
5952
  * Preferences
5968
5953
  * @description Preferences that the user can set to customize their experience.
@@ -6451,7 +6436,7 @@ export interface components {
6451
6436
  * Dynamic Behavior Sets
6452
6437
  * @description The retrieved dynamic behavior sets.
6453
6438
  */
6454
- dynamic_behavior_sets: components["schemas"]["dynamic_behavior_set__search_dynamic_behavior_sets__Response__DynamicBehaviorSetInstance"][];
6439
+ dynamic_behavior_sets: components["schemas"]["dynamic_behavior_set__get_dynamic_behavior_sets__Response__DynamicBehaviorSetInstance"][];
6455
6440
  /**
6456
6441
  * Has More
6457
6442
  * @description Whether there are more dynamic behavior sets to retrieve.
@@ -6468,34 +6453,8 @@ export interface components {
6468
6453
  * retrieved. */
6469
6454
  filter_values: components["schemas"]["dynamic_behavior_set__get_dynamic_behavior_sets__Response__FilterValues"] | null;
6470
6455
  };
6471
- /** FilterValues */
6472
- dynamic_behavior_set__get_dynamic_behavior_sets__Response__FilterValues: {
6473
- /**
6474
- * Applied To Services Ids
6475
- * @description A set of service IDs that have dynamic behavior sets applied to the service.
6476
- */
6477
- applied_to_services_ids: string[];
6478
- /**
6479
- * Creators
6480
- * @description A set of creator infos that created the dynamic behavior sets under the current filters.
6481
- */
6482
- creators: components["schemas"]["amigo_lib__mongo__collections__dynamic_behavior_set__DynamicBehaviorSet__UserInfo"][];
6483
- /**
6484
- * Tags
6485
- * @description A set of tag keys that exist in the dynamic behavior sets under the current filters.
6486
- */
6487
- tags: string[];
6488
- };
6489
- /** Response */
6490
- dynamic_behavior_set__search_dynamic_behavior_sets__Response: {
6491
- /**
6492
- * Dynamic Behavior Sets
6493
- * @description The retrieved dynamic behavior sets.
6494
- */
6495
- dynamic_behavior_sets: components["schemas"]["dynamic_behavior_set__search_dynamic_behavior_sets__Response__DynamicBehaviorSetInstance"][];
6496
- };
6497
6456
  /** DynamicBehaviorSetInstance */
6498
- dynamic_behavior_set__search_dynamic_behavior_sets__Response__DynamicBehaviorSetInstance: {
6457
+ dynamic_behavior_set__get_dynamic_behavior_sets__Response__DynamicBehaviorSetInstance: {
6499
6458
  /** Id */
6500
6459
  id: string;
6501
6460
  /** Name */
@@ -6521,6 +6480,32 @@ export interface components {
6521
6480
  updated_at: string;
6522
6481
  updated_by: components["schemas"]["amigo_lib__mongo__collections__dynamic_behavior_set__DynamicBehaviorSet__UserInfo"];
6523
6482
  };
6483
+ /** FilterValues */
6484
+ dynamic_behavior_set__get_dynamic_behavior_sets__Response__FilterValues: {
6485
+ /**
6486
+ * Applied To Services Ids
6487
+ * @description A set of service IDs that have dynamic behavior sets applied to the service.
6488
+ */
6489
+ applied_to_services_ids: string[];
6490
+ /**
6491
+ * Creators
6492
+ * @description A set of creator infos that created the dynamic behavior sets under the current filters.
6493
+ */
6494
+ creators: components["schemas"]["amigo_lib__mongo__collections__dynamic_behavior_set__DynamicBehaviorSet__UserInfo"][];
6495
+ /**
6496
+ * Tags
6497
+ * @description A set of tag keys that exist in the dynamic behavior sets under the current filters.
6498
+ */
6499
+ tags: string[];
6500
+ };
6501
+ /** Response */
6502
+ dynamic_behavior_set__search_dynamic_behavior_sets__Response: {
6503
+ /**
6504
+ * Dynamic Behavior Sets
6505
+ * @description The retrieved dynamic behavior sets.
6506
+ */
6507
+ dynamic_behavior_sets: components["schemas"]["dynamic_behavior_set__get_dynamic_behavior_sets__Response__DynamicBehaviorSetInstance"][];
6508
+ };
6524
6509
  /** Request */
6525
6510
  dynamic_behavior_set__update_dynamic_behavior_set__Request: {
6526
6511
  /** @description The name of the dynamic behavior set. */
@@ -7360,29 +7345,10 @@ export interface components {
7360
7345
  * Permission Grants
7361
7346
  * @description A list of permission grants associated with this role.
7362
7347
  */
7363
- permission_grants: components["schemas"]["role__create_role__Request__PermissionGrant"][];
7348
+ permission_grants: components["schemas"]["role__modify_role__Request__PermissionGrant"][];
7364
7349
  /** @description The frontend view for users of this role. */
7365
7350
  frontend_view: components["schemas"]["FrontendView"];
7366
7351
  };
7367
- /** PermissionGrant */
7368
- role__create_role__Request__PermissionGrant: {
7369
- /**
7370
- * Action
7371
- * @description Whether this grant allows or denies the specified access.
7372
- * @enum {string}
7373
- */
7374
- action: "Allow" | "Deny";
7375
- /** Permission Name */
7376
- permission_name: string;
7377
- /**
7378
- * Conditions
7379
- * @description A dictionary of attribute name to condition that must be met for this grant to be applicable.
7380
- */
7381
- conditions: {
7382
- [key: string]: components["schemas"]["Condition"];
7383
- };
7384
- description?: components["schemas"]["amigo_lib__pydantic__base_model__StrippedNonemptyString__1"] | null;
7385
- };
7386
7352
  /** Response */
7387
7353
  role__create_role__Response: {
7388
7354
  /**
@@ -7407,10 +7373,29 @@ export interface components {
7407
7373
  * Permission Grants
7408
7374
  * @description A list of permission grants associated with this role. Only updated if specified. This field is an immutable field.
7409
7375
  */
7410
- permission_grants?: components["schemas"]["role__create_role__Request__PermissionGrant"][] | null;
7376
+ permission_grants?: components["schemas"]["role__modify_role__Request__PermissionGrant"][] | null;
7411
7377
  /** @description The frontend view for the user of this role. Only updated if specified. This field is an immutable field. */
7412
7378
  frontend_view?: components["schemas"]["FrontendView"] | null;
7413
7379
  };
7380
+ /** PermissionGrant */
7381
+ role__modify_role__Request__PermissionGrant: {
7382
+ /**
7383
+ * Action
7384
+ * @description Whether this grant allows or denies the specified access.
7385
+ * @enum {string}
7386
+ */
7387
+ action: "Allow" | "Deny";
7388
+ /** Permission Name */
7389
+ permission_name: string;
7390
+ /**
7391
+ * Conditions
7392
+ * @description A dictionary of attribute name to condition that must be met for this grant to be applicable.
7393
+ */
7394
+ conditions: {
7395
+ [key: string]: components["schemas"]["Condition"];
7396
+ };
7397
+ description?: components["schemas"]["amigo_lib__pydantic__base_model__StrippedNonemptyString__1"] | null;
7398
+ };
7414
7399
  /** Response */
7415
7400
  role__modify_role__Response: {
7416
7401
  /**
@@ -7897,7 +7882,7 @@ export interface components {
7897
7882
  * Simulation Scenarios
7898
7883
  * @description The list of simulation scenarios.
7899
7884
  */
7900
- simulation_scenarios: components["schemas"]["simulation__search_simulation_scenarios__Response__SimulationScenarioInstance"][];
7885
+ simulation_scenarios: components["schemas"]["simulation__get_simulation_scenarios__Response__SimulationScenarioInstance"][];
7901
7886
  /**
7902
7887
  * Has More
7903
7888
  * @description Whether there are more simulation scenarios to fetch.
@@ -7927,6 +7912,47 @@ export interface components {
7927
7912
  */
7928
7913
  tags: string[];
7929
7914
  };
7915
+ /** SimulationScenarioInstance */
7916
+ simulation__get_simulation_scenarios__Response__SimulationScenarioInstance: {
7917
+ /**
7918
+ * Id
7919
+ * @description The ID of the simulation scenario.
7920
+ */
7921
+ id: string;
7922
+ /**
7923
+ * Name
7924
+ * @description The name of the simulation scenario.
7925
+ */
7926
+ name: string;
7927
+ /**
7928
+ * Tags
7929
+ * @description The tags of the simulation scenario.
7930
+ */
7931
+ tags: {
7932
+ [key: string]: string | null;
7933
+ };
7934
+ /**
7935
+ * Is Deleted
7936
+ * @description Whether the simulation scenario is deleted.
7937
+ */
7938
+ is_deleted: boolean;
7939
+ /**
7940
+ * Created At
7941
+ * Format: date-time
7942
+ * @description The timestamp when the simulation scenario was created.
7943
+ */
7944
+ created_at: string;
7945
+ /** @description The user who created the simulation scenario. */
7946
+ creator: components["schemas"]["amigo_lib__mongo__collections__simulation_scenario__SimulationScenario__UserInfo"];
7947
+ /**
7948
+ * Updated At
7949
+ * Format: date-time
7950
+ * @description The timestamp when the simulation scenario was last updated.
7951
+ */
7952
+ updated_at: string;
7953
+ /** @description The user who last updated the simulation scenario. */
7954
+ updated_by: components["schemas"]["amigo_lib__mongo__collections__simulation_scenario__SimulationScenario__UserInfo"];
7955
+ };
7930
7956
  /** Response */
7931
7957
  simulation__get_simulation_unit_test_set_run_artifacts__Response: {
7932
7958
  /**
@@ -8139,48 +8165,7 @@ export interface components {
8139
8165
  * Simulation Scenarios
8140
8166
  * @description The list of simulation scenarios.
8141
8167
  */
8142
- simulation_scenarios: components["schemas"]["simulation__search_simulation_scenarios__Response__SimulationScenarioInstance"][];
8143
- };
8144
- /** SimulationScenarioInstance */
8145
- simulation__search_simulation_scenarios__Response__SimulationScenarioInstance: {
8146
- /**
8147
- * Id
8148
- * @description The ID of the simulation scenario.
8149
- */
8150
- id: string;
8151
- /**
8152
- * Name
8153
- * @description The name of the simulation scenario.
8154
- */
8155
- name: string;
8156
- /**
8157
- * Tags
8158
- * @description The tags of the simulation scenario.
8159
- */
8160
- tags: {
8161
- [key: string]: string | null;
8162
- };
8163
- /**
8164
- * Is Deleted
8165
- * @description Whether the simulation scenario is deleted.
8166
- */
8167
- is_deleted: boolean;
8168
- /**
8169
- * Created At
8170
- * Format: date-time
8171
- * @description The timestamp when the simulation scenario was created.
8172
- */
8173
- created_at: string;
8174
- /** @description The user who created the simulation scenario. */
8175
- creator: components["schemas"]["amigo_lib__mongo__collections__simulation_scenario__SimulationScenario__UserInfo"];
8176
- /**
8177
- * Updated At
8178
- * Format: date-time
8179
- * @description The timestamp when the simulation scenario was last updated.
8180
- */
8181
- updated_at: string;
8182
- /** @description The user who last updated the simulation scenario. */
8183
- updated_by: components["schemas"]["amigo_lib__mongo__collections__simulation_scenario__SimulationScenario__UserInfo"];
8168
+ simulation_scenarios: components["schemas"]["simulation__get_simulation_scenarios__Response__SimulationScenarioInstance"][];
8184
8169
  };
8185
8170
  /** Response */
8186
8171
  simulation__search_simulation_unit_test_set__Response: {
@@ -8323,7 +8308,7 @@ export interface components {
8323
8308
  * Tool Invocations
8324
8309
  * @description The list of tool invocations.
8325
8310
  */
8326
- tool_invocations: components["schemas"]["tool__get_tool_invocations__Response__ToolInvocationInstance"][];
8311
+ tool_invocations: components["schemas"]["tool__search_tool_invocations__Response__ToolInvocationInstance"][];
8327
8312
  /**
8328
8313
  * Has More
8329
8314
  * @description Whether there are more tool invocations to retrieve.
@@ -8335,47 +8320,6 @@ export interface components {
8335
8320
  */
8336
8321
  continuation_token: unknown | null;
8337
8322
  };
8338
- /** ToolInvocationInstance */
8339
- tool__get_tool_invocations__Response__ToolInvocationInstance: {
8340
- /**
8341
- * Id
8342
- * @description The ID of the tool invocation.
8343
- */
8344
- id: string;
8345
- /**
8346
- * Org Id
8347
- * @description The ID of the organization.
8348
- */
8349
- org_id: string;
8350
- /**
8351
- * Created At
8352
- * Format: date-time
8353
- */
8354
- created_at?: string;
8355
- /**
8356
- * Updated At
8357
- * Format: date-time
8358
- */
8359
- updated_at?: string;
8360
- /** @description The status of the tool invocation. */
8361
- invocation_status: components["schemas"]["InvocationStatus"];
8362
- /** @description The source of the tool invocation. */
8363
- invocation_source: components["schemas"]["InvocationSource"];
8364
- /** Logs */
8365
- logs: string[];
8366
- /**
8367
- * Duration Ms
8368
- * @description The duration of the tool invocation in milliseconds.
8369
- */
8370
- duration_ms: number;
8371
- /**
8372
- * Tool Id
8373
- * @description The ID of the tool that was invoked.
8374
- */
8375
- tool_id: string;
8376
- /** @description The version of the tool that was invoked. */
8377
- tool_version: components["schemas"]["amigo_lib__mongo__collections__tool_version__ToolVersion__Version"];
8378
- };
8379
8323
  /** Response */
8380
8324
  tool__get_tool_versions__Response: {
8381
8325
  /**
@@ -8532,7 +8476,48 @@ export interface components {
8532
8476
  * Tool Invocations
8533
8477
  * @description The list of tool invocations.
8534
8478
  */
8535
- tool_invocations: components["schemas"]["tool__get_tool_invocations__Response__ToolInvocationInstance"][];
8479
+ tool_invocations: components["schemas"]["tool__search_tool_invocations__Response__ToolInvocationInstance"][];
8480
+ };
8481
+ /** ToolInvocationInstance */
8482
+ tool__search_tool_invocations__Response__ToolInvocationInstance: {
8483
+ /**
8484
+ * Id
8485
+ * @description The ID of the tool invocation.
8486
+ */
8487
+ id: string;
8488
+ /**
8489
+ * Org Id
8490
+ * @description The ID of the organization.
8491
+ */
8492
+ org_id: string;
8493
+ /**
8494
+ * Created At
8495
+ * Format: date-time
8496
+ */
8497
+ created_at?: string;
8498
+ /**
8499
+ * Updated At
8500
+ * Format: date-time
8501
+ */
8502
+ updated_at?: string;
8503
+ /** @description The status of the tool invocation. */
8504
+ invocation_status: components["schemas"]["InvocationStatus"];
8505
+ /** @description The source of the tool invocation. */
8506
+ invocation_source: components["schemas"]["InvocationSource"];
8507
+ /** Logs */
8508
+ logs: string[];
8509
+ /**
8510
+ * Duration Ms
8511
+ * @description The duration of the tool invocation in milliseconds.
8512
+ */
8513
+ duration_ms: number;
8514
+ /**
8515
+ * Tool Id
8516
+ * @description The ID of the tool that was invoked.
8517
+ */
8518
+ tool_id: string;
8519
+ /** @description The version of the tool that was invoked. */
8520
+ tool_version: components["schemas"]["amigo_lib__mongo__collections__tool_invocation__ToolInvocation__Version"];
8536
8521
  };
8537
8522
  /** Request */
8538
8523
  tool__test_tool__Request: {
@@ -8678,7 +8663,7 @@ export interface components {
8678
8663
  * Users
8679
8664
  * @description Users in this organization.
8680
8665
  */
8681
- users: components["schemas"]["user__search_users__Response__UserInstance"][];
8666
+ users: components["schemas"]["user__get_users__Response__UserInstance"][];
8682
8667
  /**
8683
8668
  * Has More
8684
8669
  * @description Whether there are more users to retrieve.
@@ -8690,34 +8675,8 @@ export interface components {
8690
8675
  */
8691
8676
  continuation_token: number | null;
8692
8677
  };
8693
- /** UserStats */
8694
- user__get_users__Response__UserInstance__UserStats: {
8695
- /**
8696
- * Num Conversations
8697
- * @description The number of conversations the user has created.
8698
- */
8699
- num_conversations: number;
8700
- /**
8701
- * Num Messages
8702
- * @description The number of messages the user has sent and received.
8703
- */
8704
- num_messages: number;
8705
- /**
8706
- * Last Message Time
8707
- * @description The time of the last message the user sent or received. If `None`, the user hasn't started any conversations.
8708
- */
8709
- last_message_time: string | null;
8710
- };
8711
- /** Response */
8712
- user__search_users__Response: {
8713
- /**
8714
- * Users
8715
- * @description Users in this organization.
8716
- */
8717
- users: components["schemas"]["user__search_users__Response__UserInstance"][];
8718
- };
8719
8678
  /** UserInstance */
8720
- user__search_users__Response__UserInstance: {
8679
+ user__get_users__Response__UserInstance: {
8721
8680
  /**
8722
8681
  * Org Id
8723
8682
  * @description The ID of the organization that this user belongs to.
@@ -8744,7 +8703,7 @@ export interface components {
8744
8703
  */
8745
8704
  email: string;
8746
8705
  /** @description Statistics about the user's usage of the Amigo platform. */
8747
- user_stats: components["schemas"]["user__get_users__Response__UserInstance__UserStats"];
8706
+ user_stats: components["schemas"]["user__search_users__Response__UserInstance__UserStats"];
8748
8707
  /**
8749
8708
  * Role
8750
8709
  * @description The ID of the role of the user.
@@ -8753,6 +8712,32 @@ export interface components {
8753
8712
  /** @description The preferences of the user. */
8754
8713
  preferences: components["schemas"]["amigo_lib__mongo__collections__user__User__Preferences"];
8755
8714
  };
8715
+ /** Response */
8716
+ user__search_users__Response: {
8717
+ /**
8718
+ * Users
8719
+ * @description Users in this organization.
8720
+ */
8721
+ users: components["schemas"]["user__get_users__Response__UserInstance"][];
8722
+ };
8723
+ /** UserStats */
8724
+ user__search_users__Response__UserInstance__UserStats: {
8725
+ /**
8726
+ * Num Conversations
8727
+ * @description The number of conversations the user has created.
8728
+ */
8729
+ num_conversations: number;
8730
+ /**
8731
+ * Num Messages
8732
+ * @description The number of messages the user has sent and received.
8733
+ */
8734
+ num_messages: number;
8735
+ /**
8736
+ * Last Message Time
8737
+ * @description The time of the last message the user sent or received. If `None`, the user hasn't started any conversations.
8738
+ */
8739
+ last_message_time: string | null;
8740
+ };
8756
8741
  /** SigninWithAPIKeyResponse */
8757
8742
  user__sign_in_with_api_key__Response: {
8758
8743
  /**
@@ -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__search_users__Response__UserInstance"][];
8
+ users: components["schemas"]["user__get_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.66.0",
3
+ "version": "0.67.0",
4
4
  "description": "Amigo TypeScript SDK",
5
5
  "publishConfig": {
6
6
  "access": "public"