@amigo-ai/sdk 0.25.0 → 0.27.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.
@@ -737,7 +737,7 @@ export interface paths {
737
737
  patch?: never;
738
738
  trace?: never;
739
739
  };
740
- "/v1/{organization}/user/{requested_user_id}/user": {
740
+ "/v1/{organization}/user/signin_with_api_key": {
741
741
  parameters: {
742
742
  query?: never;
743
743
  header?: never;
@@ -747,45 +747,39 @@ export interface paths {
747
747
  get?: never;
748
748
  put?: never;
749
749
  /**
750
- * Update user info
751
- * @description Update information about an user. Only fields that are specified in the request are updated.
750
+ * Sign in with API key
751
+ * @description Given an organization API key, issue an authorization token for the specified user. The token should then be attached to the `Authorization` header in subsequent Amigo API calls.
752
752
  *
753
- * #### Permissions
754
- * This endpoint requires the following permissions:
755
- * * `User:UpdateUserInfo` for the user to update.
753
+ * This is an alternative authorization method for users who cannot use the Amigo frontend to login and authenticate.
756
754
  */
757
- post: operations["update-user-info"];
755
+ post: operations["sign-in-with-api-key"];
758
756
  delete?: never;
759
757
  options?: never;
760
758
  head?: never;
761
759
  patch?: never;
762
760
  trace?: never;
763
761
  };
764
- "/v1/{organization}/user/{user_id}/user_model": {
762
+ "/v1/{organization}/user/signin": {
765
763
  parameters: {
766
764
  query?: never;
767
765
  header?: never;
768
766
  path?: never;
769
767
  cookie?: never;
770
768
  };
769
+ get?: never;
770
+ put?: never;
771
771
  /**
772
- * Get user model
773
- * @description Retrieve the user models for an user.
774
- *
775
- * #### Permissions
776
- * This endpoint requires the following permissions:
777
- * * `User:GetUserModel` for the user to retrieve the user models for.
772
+ * Sign in with email
773
+ * @description Send a magic link to the user's email to sign in.
778
774
  */
779
- get: operations["get-user-model"];
780
- put?: never;
781
- post?: never;
775
+ post: operations["sign-in-with-email"];
782
776
  delete?: never;
783
777
  options?: never;
784
778
  head?: never;
785
779
  patch?: never;
786
780
  trace?: never;
787
781
  };
788
- "/v1/{organization}/user/signin": {
782
+ "/v1/{organization}/user/{requested_user_id}": {
789
783
  parameters: {
790
784
  query?: never;
791
785
  header?: never;
@@ -795,17 +789,29 @@ export interface paths {
795
789
  get?: never;
796
790
  put?: never;
797
791
  /**
798
- * Sign in with email
799
- * @description Send a magic link to the user's email to sign in.
792
+ * Update user info
793
+ * @description Update information about an user. Only fields that are specified in the request are updated.
794
+ *
795
+ * #### Permissions
796
+ * This endpoint requires the following permissions:
797
+ * * `User:UpdateUserInfo` for the user to update.
800
798
  */
801
- post: operations["sign-in-with-email"];
802
- delete?: never;
799
+ post: operations["update-user-info"];
800
+ /**
801
+ * Delete an user
802
+ * @description Delete an user. This endpoint deletes the user from the Amigo system.
803
+ *
804
+ * #### Permissions
805
+ * This endpoint requires the following permissions:
806
+ * * `User.DeleteUser` on the user to delete.
807
+ */
808
+ delete: operations["delete-user"];
803
809
  options?: never;
804
810
  head?: never;
805
811
  patch?: never;
806
812
  trace?: never;
807
813
  };
808
- "/v1/{organization}/user/signin_with_api_key": {
814
+ "/v1/{organization}/user/{requested_user_id}/user": {
809
815
  parameters: {
810
816
  query?: never;
811
817
  header?: never;
@@ -815,19 +821,22 @@ export interface paths {
815
821
  get?: never;
816
822
  put?: never;
817
823
  /**
818
- * Sign in with API key
819
- * @description Given an organization API key, issue an authorization token for the specified user. The token should then be attached to the `Authorization` header in subsequent Amigo API calls.
824
+ * Update user info
825
+ * @deprecated
826
+ * @description Update information about an user. Only fields that are specified in the request are updated.
820
827
  *
821
- * This is an alternative authorization method for users who cannot use the Amigo frontend to login and authenticate.
828
+ * #### Permissions
829
+ * This endpoint requires the following permissions:
830
+ * * `User:UpdateUserInfo` for the user to update.
822
831
  */
823
- post: operations["sign-in-with-api-key"];
832
+ post: operations["update-user-info-deprecated"];
824
833
  delete?: never;
825
834
  options?: never;
826
835
  head?: never;
827
836
  patch?: never;
828
837
  trace?: never;
829
838
  };
830
- "/v1/{organization}/user/": {
839
+ "/v1/{organization}/user/{user_id}/user_model": {
831
840
  parameters: {
832
841
  query?: never;
833
842
  header?: never;
@@ -835,14 +844,14 @@ export interface paths {
835
844
  cookie?: never;
836
845
  };
837
846
  /**
838
- * Get users
839
- * @description Retrieve all users in an organization.
847
+ * Get user model
848
+ * @description Retrieve the user models for an user.
840
849
  *
841
850
  * #### Permissions
842
- * This endpoint is impacted by the following permissions:
843
- * * Only users that the authenticated user has the `User:GetUserInfo` permission for are returned.
851
+ * This endpoint requires the following permissions:
852
+ * * `User:GetUserModel` for the user to retrieve the user models for.
844
853
  */
845
- get: operations["get-users"];
854
+ get: operations["get-user-model"];
846
855
  put?: never;
847
856
  post?: never;
848
857
  delete?: never;
@@ -851,14 +860,22 @@ export interface paths {
851
860
  patch?: never;
852
861
  trace?: never;
853
862
  };
854
- "/v1/{organization}/user/invite": {
863
+ "/v1/{organization}/user/": {
855
864
  parameters: {
856
865
  query?: never;
857
866
  header?: never;
858
867
  path?: never;
859
868
  cookie?: never;
860
869
  };
861
- get?: never;
870
+ /**
871
+ * Get users
872
+ * @description Retrieve all users in an organization.
873
+ *
874
+ * #### Permissions
875
+ * This endpoint is impacted by the following permissions:
876
+ * * Only users that the authenticated user has the `User:GetUserInfo` permission for are returned.
877
+ */
878
+ get: operations["get-users"];
862
879
  put?: never;
863
880
  /**
864
881
  * Create a new user
@@ -880,7 +897,7 @@ export interface paths {
880
897
  patch?: never;
881
898
  trace?: never;
882
899
  };
883
- "/v1/{organization}/user/{requested_user_id}": {
900
+ "/v1/{organization}/user/invite": {
884
901
  parameters: {
885
902
  query?: never;
886
903
  header?: never;
@@ -889,16 +906,22 @@ export interface paths {
889
906
  };
890
907
  get?: never;
891
908
  put?: never;
892
- post?: never;
893
909
  /**
894
- * Delete an user
895
- * @description Delete an user. This endpoint deletes the user from the Amigo system.
910
+ * Create a new user
911
+ * @deprecated
912
+ * @description Invite a user to the Amigo platform. The endpoint will create a new user in the organization, linked to the
913
+ * supplied email address. The created user will remain in the unverified status and will not have access to most of Amigo's services.
914
+ *
915
+ * If `login_link` is not-`None`, an email containing it will be sent to the user's email with descriptions indicating that this would allow the user to login
916
+ * and start their Amigo experience. Otherwise, no email will be sent.
896
917
  *
897
918
  * #### Permissions
898
919
  * This endpoint requires the following permissions:
899
- * * `User.DeleteUser` on the user to delete.
920
+ * * `User:InviteUser` on the user to invite.
921
+ * * The authenticated user must have greater privileges than the role assigned to the new user.
900
922
  */
901
- delete: operations["delete-user"];
923
+ post: operations["create-invited-user-deprecated"];
924
+ delete?: never;
902
925
  options?: never;
903
926
  head?: never;
904
927
  patch?: never;
@@ -1039,26 +1062,6 @@ export interface paths {
1039
1062
  patch?: never;
1040
1063
  trace?: never;
1041
1064
  };
1042
- "/v1/{organization}/admin/ping": {
1043
- parameters: {
1044
- query?: never;
1045
- header?: never;
1046
- path?: never;
1047
- cookie?: never;
1048
- };
1049
- /**
1050
- * Ping server
1051
- * @description Ping the server to retrieve basic information about it. This endpoint is always up regardless of whether the server is in maintenance mode.
1052
- */
1053
- get: operations["ping-server"];
1054
- put?: never;
1055
- post?: never;
1056
- delete?: never;
1057
- options?: never;
1058
- head?: never;
1059
- patch?: never;
1060
- trace?: never;
1061
- };
1062
1065
  "/v1/{organization}/admin/get_prompt_logs/": {
1063
1066
  parameters: {
1064
1067
  query?: never;
@@ -2117,6 +2120,23 @@ export interface paths {
2117
2120
  patch?: never;
2118
2121
  trace?: never;
2119
2122
  };
2123
+ "/v1/{organization}/tool/test": {
2124
+ parameters: {
2125
+ query?: never;
2126
+ header?: never;
2127
+ path?: never;
2128
+ cookie?: never;
2129
+ };
2130
+ get?: never;
2131
+ put?: never;
2132
+ /** Test a tool */
2133
+ post: operations["test-tool"];
2134
+ delete?: never;
2135
+ options?: never;
2136
+ head?: never;
2137
+ patch?: never;
2138
+ trace?: never;
2139
+ };
2120
2140
  "/v1/{organization}/tool/{tool_id}/envvar": {
2121
2141
  parameters: {
2122
2142
  query?: never;
@@ -2236,23 +2256,6 @@ export interface paths {
2236
2256
  patch?: never;
2237
2257
  trace?: never;
2238
2258
  };
2239
- "/v1/{organization}/tool/test": {
2240
- parameters: {
2241
- query?: never;
2242
- header?: never;
2243
- path?: never;
2244
- cookie?: never;
2245
- };
2246
- get?: never;
2247
- put?: never;
2248
- /** Test a tool */
2249
- post: operations["test-tool"];
2250
- delete?: never;
2251
- options?: never;
2252
- head?: never;
2253
- patch?: never;
2254
- trace?: never;
2255
- };
2256
2259
  }
2257
2260
  export type webhooks = Record<string, never>;
2258
2261
  export interface components {
@@ -6347,14 +6350,6 @@ export interface components {
6347
6350
  amigo_lib__pydantic__base_model__StrippedNonemptyString__2: string;
6348
6351
  amigo_lib__pydantic__base_model__StrippedNonemptyString__3: string;
6349
6352
  src__app__amigo__service__conversation__Action: components["schemas"]["SelectDynamicBehaviorAgentActionEvent"] | components["schemas"]["CheckIfActiveMemoryNeededAgentActionEvent"] | components["schemas"]["ExtractActiveMemoriesAgentActionEvent"] | components["schemas"]["NavigateStateMachineAgentActionEvent"] | components["schemas"]["EngageUserAgentActionEvent"];
6350
- /** Response */
6351
- admin__ping_server__Response: {
6352
- /**
6353
- * In Maintenance Mode
6354
- * @description Whether the server is in maintenance mode. This value may differ based on organizations.
6355
- */
6356
- in_maintenance_mode: boolean;
6357
- };
6358
6353
  /** Request */
6359
6354
  admin__submit_sql_query__Request: {
6360
6355
  /** @description The SQL query to execute. */
@@ -8464,10 +8459,10 @@ export interface components {
8464
8459
  */
8465
8460
  inputs: components["schemas"]["Input"][];
8466
8461
  /**
8467
- * Commit Hash
8468
- * @description The commit hash of the tool to test.
8462
+ * Commit Branch
8463
+ * @description The branch in the tools repo whose tip will be tested.
8469
8464
  */
8470
- commit_hash: string;
8465
+ commit_branch: string;
8471
8466
  /**
8472
8467
  * Project Path
8473
8468
  * @description The directory in the tools repo that contains the `pyproject.toml` file corresponding to the tool version to publish.
@@ -11414,7 +11409,7 @@ export interface operations {
11414
11409
  };
11415
11410
  };
11416
11411
  };
11417
- "update-user-info": {
11412
+ "sign-in-with-api-key": {
11418
11413
  parameters: {
11419
11414
  query?: never;
11420
11415
  header?: {
@@ -11423,61 +11418,43 @@ export interface operations {
11423
11418
  "Sec-WebSocket-Protocol"?: string[];
11424
11419
  };
11425
11420
  path: {
11426
- /** @description The identifier of the user to update information for. */
11427
- requested_user_id: string;
11428
11421
  organization: string;
11429
11422
  };
11430
11423
  cookie?: never;
11431
11424
  };
11432
- requestBody: {
11433
- content: {
11434
- "application/json": components["schemas"]["user__update_user_info__Request"];
11435
- };
11436
- };
11425
+ requestBody?: never;
11437
11426
  responses: {
11438
11427
  /** @description Succeeded. */
11439
- 204: {
11428
+ 200: {
11440
11429
  headers: {
11441
11430
  [name: string]: unknown;
11442
11431
  };
11443
- content?: never;
11444
- };
11445
- /** @description Invalid authorization credentials. */
11446
- 401: {
11447
- headers: {
11448
- [name: string]: unknown;
11432
+ content: {
11433
+ "application/json": components["schemas"]["user__sign_in_with_api_key__Response"];
11449
11434
  };
11450
- content?: never;
11451
11435
  };
11452
- /** @description Missing required permissions. */
11453
- 403: {
11436
+ /** @description API key not found, is incorrect, or the requested user is not found. */
11437
+ 401: {
11454
11438
  headers: {
11455
11439
  [name: string]: unknown;
11456
11440
  };
11457
11441
  content?: never;
11458
11442
  };
11459
- /** @description Specified organization or user is not found. */
11443
+ /** @description Specified organization is not found. */
11460
11444
  404: {
11461
11445
  headers: {
11462
11446
  [name: string]: unknown;
11463
11447
  };
11464
11448
  content?: never;
11465
11449
  };
11466
- /** @description A related operation is in progress. */
11467
- 409: {
11468
- headers: {
11469
- [name: string]: unknown;
11470
- };
11471
- content?: never;
11472
- };
11473
- /** @description Invalid request path parameter or request body failed validation. */
11450
+ /** @description Invalid request path parameter failed validation. */
11474
11451
  422: {
11475
11452
  headers: {
11476
11453
  [name: string]: unknown;
11477
11454
  };
11478
11455
  content?: never;
11479
11456
  };
11480
- /** @description The user has exceeded the rate limit of 50 requests per minute for this endpoint. */
11457
+ /** @description The user has exceeded the rate limit of 5 requests per minute for this endpoint. */
11481
11458
  429: {
11482
11459
  headers: {
11483
11460
  [name: string]: unknown;
@@ -11493,7 +11470,7 @@ export interface operations {
11493
11470
  };
11494
11471
  };
11495
11472
  };
11496
- "get-user-model": {
11473
+ "sign-in-with-email": {
11497
11474
  parameters: {
11498
11475
  query?: never;
11499
11476
  header?: {
@@ -11503,12 +11480,14 @@ export interface operations {
11503
11480
  };
11504
11481
  path: {
11505
11482
  organization: string;
11506
- /** @description The ID of the user whose user models to retrieve. */
11507
- user_id: string;
11508
11483
  };
11509
11484
  cookie?: never;
11510
11485
  };
11511
- requestBody?: never;
11486
+ requestBody: {
11487
+ content: {
11488
+ "application/json": components["schemas"]["user__sign_in_with_email__Request"];
11489
+ };
11490
+ };
11512
11491
  responses: {
11513
11492
  /** @description Succeeded. */
11514
11493
  200: {
@@ -11516,22 +11495,8 @@ export interface operations {
11516
11495
  [name: string]: unknown;
11517
11496
  };
11518
11497
  content: {
11519
- "application/json": components["schemas"]["user__get_user_model__Response"];
11520
- };
11521
- };
11522
- /** @description Invalid authorization credentials. */
11523
- 401: {
11524
- headers: {
11525
- [name: string]: unknown;
11526
- };
11527
- content?: never;
11528
- };
11529
- /** @description Missing required permissions. */
11530
- 403: {
11531
- headers: {
11532
- [name: string]: unknown;
11498
+ "application/json": components["schemas"]["user__sign_in_with_email__Response"];
11533
11499
  };
11534
- content?: never;
11535
11500
  };
11536
11501
  /** @description Specified organization or user is not found. */
11537
11502
  404: {
@@ -11540,20 +11505,13 @@ export interface operations {
11540
11505
  };
11541
11506
  content?: never;
11542
11507
  };
11543
- /** @description Invalid request path parameter failed validation. */
11508
+ /** @description Invalid request path parameter or request body failed validation. */
11544
11509
  422: {
11545
11510
  headers: {
11546
11511
  [name: string]: unknown;
11547
11512
  };
11548
11513
  content?: never;
11549
11514
  };
11550
- /** @description The user has exceeded the rate limit of 60 requests per minute for this endpoint. */
11551
- 429: {
11552
- headers: {
11553
- [name: string]: unknown;
11554
- };
11555
- content?: never;
11556
- };
11557
11515
  /** @description The service is going through temporary maintenance. */
11558
11516
  503: {
11559
11517
  headers: {
@@ -11563,7 +11521,7 @@ export interface operations {
11563
11521
  };
11564
11522
  };
11565
11523
  };
11566
- "sign-in-with-email": {
11524
+ "update-user-info": {
11567
11525
  parameters: {
11568
11526
  query?: never;
11569
11527
  header?: {
@@ -11572,50 +11530,78 @@ export interface operations {
11572
11530
  "Sec-WebSocket-Protocol"?: string[];
11573
11531
  };
11574
11532
  path: {
11533
+ /** @description The identifier of the user to update information for. */
11534
+ requested_user_id: string;
11575
11535
  organization: string;
11576
11536
  };
11577
11537
  cookie?: never;
11578
11538
  };
11579
11539
  requestBody: {
11580
11540
  content: {
11581
- "application/json": components["schemas"]["user__sign_in_with_email__Request"];
11541
+ "application/json": components["schemas"]["user__update_user_info__Request"];
11582
11542
  };
11583
11543
  };
11584
11544
  responses: {
11585
11545
  /** @description Succeeded. */
11586
- 200: {
11546
+ 204: {
11587
11547
  headers: {
11588
11548
  [name: string]: unknown;
11589
11549
  };
11590
- content: {
11591
- "application/json": components["schemas"]["user__sign_in_with_email__Response"];
11592
- };
11550
+ content?: never;
11593
11551
  };
11594
- /** @description Specified organization or user is not found. */
11595
- 404: {
11552
+ /** @description Invalid authorization credentials. */
11553
+ 401: {
11596
11554
  headers: {
11597
11555
  [name: string]: unknown;
11598
11556
  };
11599
11557
  content?: never;
11600
11558
  };
11601
- /** @description Invalid request path parameter or request body failed validation. */
11602
- 422: {
11559
+ /** @description Missing required permissions. */
11560
+ 403: {
11603
11561
  headers: {
11604
11562
  [name: string]: unknown;
11605
11563
  };
11606
11564
  content?: never;
11607
11565
  };
11608
- /** @description The service is going through temporary maintenance. */
11609
- 503: {
11566
+ /** @description Specified organization or user is not found. */
11567
+ 404: {
11610
11568
  headers: {
11611
11569
  [name: string]: unknown;
11612
11570
  };
11613
11571
  content?: never;
11614
11572
  };
11615
- };
11616
- };
11617
- "sign-in-with-api-key": {
11618
- parameters: {
11573
+ /** @description A related operation is in progress. */
11574
+ 409: {
11575
+ headers: {
11576
+ [name: string]: unknown;
11577
+ };
11578
+ content?: never;
11579
+ };
11580
+ /** @description Invalid request path parameter or request body failed validation. */
11581
+ 422: {
11582
+ headers: {
11583
+ [name: string]: unknown;
11584
+ };
11585
+ content?: never;
11586
+ };
11587
+ /** @description The user has exceeded the rate limit of 50 requests per minute for this endpoint. */
11588
+ 429: {
11589
+ headers: {
11590
+ [name: string]: unknown;
11591
+ };
11592
+ content?: never;
11593
+ };
11594
+ /** @description The service is going through temporary maintenance. */
11595
+ 503: {
11596
+ headers: {
11597
+ [name: string]: unknown;
11598
+ };
11599
+ content?: never;
11600
+ };
11601
+ };
11602
+ };
11603
+ "delete-user": {
11604
+ parameters: {
11619
11605
  query?: never;
11620
11606
  header?: {
11621
11607
  /** @description The Mongo cluster name to perform this request in. This is usually not needed unless the organization does not exist yet in the Amigo organization infra config database. */
@@ -11623,11 +11609,167 @@ export interface operations {
11623
11609
  "Sec-WebSocket-Protocol"?: string[];
11624
11610
  };
11625
11611
  path: {
11612
+ /** @description The identifier of the user to delete. */
11613
+ requested_user_id: string;
11626
11614
  organization: string;
11627
11615
  };
11628
11616
  cookie?: never;
11629
11617
  };
11630
11618
  requestBody?: never;
11619
+ responses: {
11620
+ /** @description Succeeded. */
11621
+ 204: {
11622
+ headers: {
11623
+ [name: string]: unknown;
11624
+ };
11625
+ content?: never;
11626
+ };
11627
+ /** @description Invalid authorization credentials. */
11628
+ 401: {
11629
+ headers: {
11630
+ [name: string]: unknown;
11631
+ };
11632
+ content?: never;
11633
+ };
11634
+ /** @description Missing required permissions. */
11635
+ 403: {
11636
+ headers: {
11637
+ [name: string]: unknown;
11638
+ };
11639
+ content?: never;
11640
+ };
11641
+ /** @description Specified organization or user is not found. */
11642
+ 404: {
11643
+ headers: {
11644
+ [name: string]: unknown;
11645
+ };
11646
+ content?: never;
11647
+ };
11648
+ /** @description A related operation is in progress. */
11649
+ 409: {
11650
+ headers: {
11651
+ [name: string]: unknown;
11652
+ };
11653
+ content?: never;
11654
+ };
11655
+ /** @description Invalid request path parameter failed validation. */
11656
+ 422: {
11657
+ headers: {
11658
+ [name: string]: unknown;
11659
+ };
11660
+ content?: never;
11661
+ };
11662
+ /** @description The user has exceeded the rate limit of 500 requests per minute for this endpoint. */
11663
+ 429: {
11664
+ headers: {
11665
+ [name: string]: unknown;
11666
+ };
11667
+ content?: never;
11668
+ };
11669
+ /** @description The service is going through temporary maintenance. */
11670
+ 503: {
11671
+ headers: {
11672
+ [name: string]: unknown;
11673
+ };
11674
+ content?: never;
11675
+ };
11676
+ };
11677
+ };
11678
+ "update-user-info-deprecated": {
11679
+ parameters: {
11680
+ query?: never;
11681
+ header?: {
11682
+ /** @description The Mongo cluster name to perform this request in. This is usually not needed unless the organization does not exist yet in the Amigo organization infra config database. */
11683
+ "x-mongo-cluster-name"?: string | null;
11684
+ "Sec-WebSocket-Protocol"?: string[];
11685
+ };
11686
+ path: {
11687
+ /** @description The identifier of the user to update information for. */
11688
+ requested_user_id: string;
11689
+ organization: string;
11690
+ };
11691
+ cookie?: never;
11692
+ };
11693
+ requestBody: {
11694
+ content: {
11695
+ "application/json": components["schemas"]["user__update_user_info__Request"];
11696
+ };
11697
+ };
11698
+ responses: {
11699
+ /** @description Succeeded. */
11700
+ 204: {
11701
+ headers: {
11702
+ [name: string]: unknown;
11703
+ };
11704
+ content?: never;
11705
+ };
11706
+ /** @description Invalid authorization credentials. */
11707
+ 401: {
11708
+ headers: {
11709
+ [name: string]: unknown;
11710
+ };
11711
+ content?: never;
11712
+ };
11713
+ /** @description Missing required permissions. */
11714
+ 403: {
11715
+ headers: {
11716
+ [name: string]: unknown;
11717
+ };
11718
+ content?: never;
11719
+ };
11720
+ /** @description Specified organization or user is not found. */
11721
+ 404: {
11722
+ headers: {
11723
+ [name: string]: unknown;
11724
+ };
11725
+ content?: never;
11726
+ };
11727
+ /** @description A related operation is in progress. */
11728
+ 409: {
11729
+ headers: {
11730
+ [name: string]: unknown;
11731
+ };
11732
+ content?: never;
11733
+ };
11734
+ /** @description Invalid request path parameter or request body failed validation. */
11735
+ 422: {
11736
+ headers: {
11737
+ [name: string]: unknown;
11738
+ };
11739
+ content?: never;
11740
+ };
11741
+ /** @description The user has exceeded the rate limit of 50 requests per minute for this endpoint. */
11742
+ 429: {
11743
+ headers: {
11744
+ [name: string]: unknown;
11745
+ };
11746
+ content?: never;
11747
+ };
11748
+ /** @description The service is going through temporary maintenance. */
11749
+ 503: {
11750
+ headers: {
11751
+ [name: string]: unknown;
11752
+ };
11753
+ content?: never;
11754
+ };
11755
+ };
11756
+ };
11757
+ "get-user-model": {
11758
+ parameters: {
11759
+ query?: never;
11760
+ header?: {
11761
+ /** @description The Mongo cluster name to perform this request in. This is usually not needed unless the organization does not exist yet in the Amigo organization infra config database. */
11762
+ "x-mongo-cluster-name"?: string | null;
11763
+ "Sec-WebSocket-Protocol"?: string[];
11764
+ };
11765
+ path: {
11766
+ organization: string;
11767
+ /** @description The ID of the user whose user models to retrieve. */
11768
+ user_id: string;
11769
+ };
11770
+ cookie?: never;
11771
+ };
11772
+ requestBody?: never;
11631
11773
  responses: {
11632
11774
  /** @description Succeeded. */
11633
11775
  200: {
@@ -11635,17 +11777,24 @@ export interface operations {
11635
11777
  [name: string]: unknown;
11636
11778
  };
11637
11779
  content: {
11638
- "application/json": components["schemas"]["user__sign_in_with_api_key__Response"];
11780
+ "application/json": components["schemas"]["user__get_user_model__Response"];
11639
11781
  };
11640
11782
  };
11641
- /** @description API key not found, is incorrect, or the requested user is not found. */
11783
+ /** @description Invalid authorization credentials. */
11642
11784
  401: {
11643
11785
  headers: {
11644
11786
  [name: string]: unknown;
11645
11787
  };
11646
11788
  content?: never;
11647
11789
  };
11648
- /** @description Specified organization is not found. */
11790
+ /** @description Missing required permissions. */
11791
+ 403: {
11792
+ headers: {
11793
+ [name: string]: unknown;
11794
+ };
11795
+ content?: never;
11796
+ };
11797
+ /** @description Specified organization or user is not found. */
11649
11798
  404: {
11650
11799
  headers: {
11651
11800
  [name: string]: unknown;
@@ -11659,7 +11808,7 @@ export interface operations {
11659
11808
  };
11660
11809
  content?: never;
11661
11810
  };
11662
- /** @description The user has exceeded the rate limit of 5 requests per minute for this endpoint. */
11811
+ /** @description The user has exceeded the rate limit of 60 requests per minute for this endpoint. */
11663
11812
  429: {
11664
11813
  headers: {
11665
11814
  [name: string]: unknown;
@@ -11835,7 +11984,7 @@ export interface operations {
11835
11984
  };
11836
11985
  };
11837
11986
  };
11838
- "delete-user": {
11987
+ "create-invited-user-deprecated": {
11839
11988
  parameters: {
11840
11989
  query?: never;
11841
11990
  header?: {
@@ -11844,20 +11993,24 @@ export interface operations {
11844
11993
  "Sec-WebSocket-Protocol"?: string[];
11845
11994
  };
11846
11995
  path: {
11847
- /** @description The identifier of the user to delete. */
11848
- requested_user_id: string;
11849
11996
  organization: string;
11850
11997
  };
11851
11998
  cookie?: never;
11852
11999
  };
11853
- requestBody?: never;
12000
+ requestBody: {
12001
+ content: {
12002
+ "application/json": components["schemas"]["user__create_invited_user__Request"];
12003
+ };
12004
+ };
11854
12005
  responses: {
11855
- /** @description Succeeded. */
11856
- 204: {
12006
+ /** @description Succeeded */
12007
+ 201: {
11857
12008
  headers: {
11858
12009
  [name: string]: unknown;
11859
12010
  };
11860
- content?: never;
12011
+ content: {
12012
+ "application/json": components["schemas"]["user__create_invited_user__Response"];
12013
+ };
11861
12014
  };
11862
12015
  /** @description Invalid authorization credentials. */
11863
12016
  401: {
@@ -11873,28 +12026,28 @@ export interface operations {
11873
12026
  };
11874
12027
  content?: never;
11875
12028
  };
11876
- /** @description Specified organization or user is not found. */
12029
+ /** @description Specified organization or role is not found. */
11877
12030
  404: {
11878
12031
  headers: {
11879
12032
  [name: string]: unknown;
11880
12033
  };
11881
12034
  content?: never;
11882
12035
  };
11883
- /** @description A related operation is in progress. */
12036
+ /** @description User with the same email already exists in this organization, or a related operation is in progress. */
11884
12037
  409: {
11885
12038
  headers: {
11886
12039
  [name: string]: unknown;
11887
12040
  };
11888
12041
  content?: never;
11889
12042
  };
11890
- /** @description Invalid request path parameter failed validation. */
12043
+ /** @description Invalid request path parameter or request body failed validation. */
11891
12044
  422: {
11892
12045
  headers: {
11893
12046
  [name: string]: unknown;
11894
12047
  };
11895
12048
  content?: never;
11896
12049
  };
11897
- /** @description The user has exceeded the rate limit of 500 requests per minute for this endpoint. */
12050
+ /** @description The user has exceeded the rate limit of 50 requests per minute for this endpoint. */
11898
12051
  429: {
11899
12052
  headers: {
11900
12053
  [name: string]: unknown;
@@ -12371,46 +12524,6 @@ export interface operations {
12371
12524
  };
12372
12525
  };
12373
12526
  };
12374
- "ping-server": {
12375
- parameters: {
12376
- query?: never;
12377
- header?: {
12378
- /** @description The Mongo cluster name to perform this request in. This is usually not needed unless the organization does not exist yet in the Amigo organization infra config database. */
12379
- "x-mongo-cluster-name"?: string | null;
12380
- "Sec-WebSocket-Protocol"?: string[];
12381
- };
12382
- path: {
12383
- organization: string;
12384
- };
12385
- cookie?: never;
12386
- };
12387
- requestBody?: never;
12388
- responses: {
12389
- /** @description Succeeded. */
12390
- 200: {
12391
- headers: {
12392
- [name: string]: unknown;
12393
- };
12394
- content: {
12395
- "application/json": components["schemas"]["admin__ping_server__Response"];
12396
- };
12397
- };
12398
- /** @description The specified organization does not exist. */
12399
- 404: {
12400
- headers: {
12401
- [name: string]: unknown;
12402
- };
12403
- content?: never;
12404
- };
12405
- /** @description Invalid request path parameter failed validation. */
12406
- 422: {
12407
- headers: {
12408
- [name: string]: unknown;
12409
- };
12410
- content?: never;
12411
- };
12412
- };
12413
- };
12414
12527
  "get-prompt-logs": {
12415
12528
  parameters: {
12416
12529
  query: {
@@ -16813,6 +16926,90 @@ export interface operations {
16813
16926
  };
16814
16927
  };
16815
16928
  };
16929
+ "test-tool": {
16930
+ parameters: {
16931
+ query?: never;
16932
+ header?: {
16933
+ /** @description The Mongo cluster name to perform this request in. This is usually not needed unless the organization does not exist yet in the Amigo organization infra config database. */
16934
+ "x-mongo-cluster-name"?: string | null;
16935
+ "Sec-WebSocket-Protocol"?: string[];
16936
+ };
16937
+ path: {
16938
+ organization: string;
16939
+ };
16940
+ cookie?: never;
16941
+ };
16942
+ requestBody: {
16943
+ content: {
16944
+ "application/json": components["schemas"]["tool__test_tool__Request"];
16945
+ };
16946
+ };
16947
+ responses: {
16948
+ /** @description Succeeded */
16949
+ 200: {
16950
+ headers: {
16951
+ [name: string]: unknown;
16952
+ };
16953
+ content: {
16954
+ "application/json": components["schemas"]["tool__test_tool__Response"];
16955
+ };
16956
+ };
16957
+ /** @description This error can occur due to the following reasons:
16958
+ * * An environment variable is specified as both secret and non-secret.
16959
+ * * The specified tool commit failed CI checks.
16960
+ * * Required environment variables in the tool are not declared in the reqeust.
16961
+ * * Input parameters do not conform to the tool's input schema.
16962
+ * */
16963
+ 400: {
16964
+ headers: {
16965
+ [name: string]: unknown;
16966
+ };
16967
+ content?: never;
16968
+ };
16969
+ /** @description Invalid authorization credentials. */
16970
+ 401: {
16971
+ headers: {
16972
+ [name: string]: unknown;
16973
+ };
16974
+ content?: never;
16975
+ };
16976
+ /** @description Missing required permissions. */
16977
+ 403: {
16978
+ headers: {
16979
+ [name: string]: unknown;
16980
+ };
16981
+ content?: never;
16982
+ };
16983
+ /** @description The specified organization or tool commit does not exist. */
16984
+ 404: {
16985
+ headers: {
16986
+ [name: string]: unknown;
16987
+ };
16988
+ content?: never;
16989
+ };
16990
+ /** @description Invalid request path parameter or request body failed validation. */
16991
+ 422: {
16992
+ headers: {
16993
+ [name: string]: unknown;
16994
+ };
16995
+ content?: never;
16996
+ };
16997
+ /** @description The user has exceeded the rate limit of 1 request per minute for this endpoint. */
16998
+ 429: {
16999
+ headers: {
17000
+ [name: string]: unknown;
17001
+ };
17002
+ content?: never;
17003
+ };
17004
+ /** @description The service is going through temporary maintenance. */
17005
+ 503: {
17006
+ headers: {
17007
+ [name: string]: unknown;
17008
+ };
17009
+ content?: never;
17010
+ };
17011
+ };
17012
+ };
16816
17013
  "modify-tool-envvars": {
16817
17014
  parameters: {
16818
17015
  query?: never;
@@ -17330,88 +17527,4 @@ export interface operations {
17330
17527
  };
17331
17528
  };
17332
17529
  };
17333
- "test-tool": {
17334
- parameters: {
17335
- query?: never;
17336
- header?: {
17337
- /** @description The Mongo cluster name to perform this request in. This is usually not needed unless the organization does not exist yet in the Amigo organization infra config database. */
17338
- "x-mongo-cluster-name"?: string | null;
17339
- "Sec-WebSocket-Protocol"?: string[];
17340
- };
17341
- path: {
17342
- organization: string;
17343
- };
17344
- cookie?: never;
17345
- };
17346
- requestBody: {
17347
- content: {
17348
- "application/json": components["schemas"]["tool__test_tool__Request"];
17349
- };
17350
- };
17351
- responses: {
17352
- /** @description Succeeded */
17353
- 200: {
17354
- headers: {
17355
- [name: string]: unknown;
17356
- };
17357
- content: {
17358
- "application/json": components["schemas"]["tool__test_tool__Response"];
17359
- };
17360
- };
17361
- /** @description This error can occur due to the following reasons:
17362
- * * An environment variable is specified as both secret and non-secret.
17363
- * * The specified tool commit failed CI checks.
17364
- * * Required environment variables in the tool are not declared in the reqeust.
17365
- * * Input parameters do not conform to the tool's input schema.
17366
- * */
17367
- 400: {
17368
- headers: {
17369
- [name: string]: unknown;
17370
- };
17371
- content?: never;
17372
- };
17373
- /** @description Invalid authorization credentials. */
17374
- 401: {
17375
- headers: {
17376
- [name: string]: unknown;
17377
- };
17378
- content?: never;
17379
- };
17380
- /** @description Missing required permissions. */
17381
- 403: {
17382
- headers: {
17383
- [name: string]: unknown;
17384
- };
17385
- content?: never;
17386
- };
17387
- /** @description The specified organization or tool commit does not exist. */
17388
- 404: {
17389
- headers: {
17390
- [name: string]: unknown;
17391
- };
17392
- content?: never;
17393
- };
17394
- /** @description Invalid request path parameter or request body failed validation. */
17395
- 422: {
17396
- headers: {
17397
- [name: string]: unknown;
17398
- };
17399
- content?: never;
17400
- };
17401
- /** @description The user has exceeded the rate limit of 1 request per minute for this endpoint. */
17402
- 429: {
17403
- headers: {
17404
- [name: string]: unknown;
17405
- };
17406
- content?: never;
17407
- };
17408
- /** @description The service is going through temporary maintenance. */
17409
- 503: {
17410
- headers: {
17411
- [name: string]: unknown;
17412
- };
17413
- content?: never;
17414
- };
17415
- };
17416
- };
17417
17530
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@amigo-ai/sdk",
3
- "version": "0.25.0",
3
+ "version": "0.27.0",
4
4
  "description": "Amigo TypeScript SDK",
5
5
  "publishConfig": {
6
6
  "access": "public"