@amigo-ai/sdk 0.26.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.
- package/dist/types/generated/api-types.d.ts +251 -138
- package/package.json +1 -1
|
@@ -737,7 +737,7 @@ export interface paths {
|
|
|
737
737
|
patch?: never;
|
|
738
738
|
trace?: never;
|
|
739
739
|
};
|
|
740
|
-
"/v1/{organization}/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
|
-
*
|
|
751
|
-
* @description
|
|
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
|
-
*
|
|
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["
|
|
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/
|
|
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
|
-
*
|
|
773
|
-
* @description
|
|
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
|
-
|
|
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/
|
|
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
|
-
*
|
|
799
|
-
* @description
|
|
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["
|
|
802
|
-
|
|
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/
|
|
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
|
-
*
|
|
819
|
-
* @
|
|
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
|
-
*
|
|
828
|
+
* #### Permissions
|
|
829
|
+
* This endpoint requires the following permissions:
|
|
830
|
+
* * `User:UpdateUserInfo` for the user to update.
|
|
822
831
|
*/
|
|
823
|
-
post: operations["
|
|
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
|
|
839
|
-
* @description Retrieve
|
|
847
|
+
* Get user model
|
|
848
|
+
* @description Retrieve the user models for an user.
|
|
840
849
|
*
|
|
841
850
|
* #### Permissions
|
|
842
|
-
* This endpoint
|
|
843
|
-
* *
|
|
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-
|
|
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/
|
|
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
|
-
|
|
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/
|
|
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
|
-
*
|
|
895
|
-
* @
|
|
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
|
|
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
|
-
|
|
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;
|
|
@@ -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. */
|
|
@@ -11414,6 +11409,118 @@ export interface operations {
|
|
|
11414
11409
|
};
|
|
11415
11410
|
};
|
|
11416
11411
|
};
|
|
11412
|
+
"sign-in-with-api-key": {
|
|
11413
|
+
parameters: {
|
|
11414
|
+
query?: never;
|
|
11415
|
+
header?: {
|
|
11416
|
+
/** @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. */
|
|
11417
|
+
"x-mongo-cluster-name"?: string | null;
|
|
11418
|
+
"Sec-WebSocket-Protocol"?: string[];
|
|
11419
|
+
};
|
|
11420
|
+
path: {
|
|
11421
|
+
organization: string;
|
|
11422
|
+
};
|
|
11423
|
+
cookie?: never;
|
|
11424
|
+
};
|
|
11425
|
+
requestBody?: never;
|
|
11426
|
+
responses: {
|
|
11427
|
+
/** @description Succeeded. */
|
|
11428
|
+
200: {
|
|
11429
|
+
headers: {
|
|
11430
|
+
[name: string]: unknown;
|
|
11431
|
+
};
|
|
11432
|
+
content: {
|
|
11433
|
+
"application/json": components["schemas"]["user__sign_in_with_api_key__Response"];
|
|
11434
|
+
};
|
|
11435
|
+
};
|
|
11436
|
+
/** @description API key not found, is incorrect, or the requested user is not found. */
|
|
11437
|
+
401: {
|
|
11438
|
+
headers: {
|
|
11439
|
+
[name: string]: unknown;
|
|
11440
|
+
};
|
|
11441
|
+
content?: never;
|
|
11442
|
+
};
|
|
11443
|
+
/** @description Specified organization is not found. */
|
|
11444
|
+
404: {
|
|
11445
|
+
headers: {
|
|
11446
|
+
[name: string]: unknown;
|
|
11447
|
+
};
|
|
11448
|
+
content?: never;
|
|
11449
|
+
};
|
|
11450
|
+
/** @description Invalid request path parameter failed validation. */
|
|
11451
|
+
422: {
|
|
11452
|
+
headers: {
|
|
11453
|
+
[name: string]: unknown;
|
|
11454
|
+
};
|
|
11455
|
+
content?: never;
|
|
11456
|
+
};
|
|
11457
|
+
/** @description The user has exceeded the rate limit of 5 requests per minute for this endpoint. */
|
|
11458
|
+
429: {
|
|
11459
|
+
headers: {
|
|
11460
|
+
[name: string]: unknown;
|
|
11461
|
+
};
|
|
11462
|
+
content?: never;
|
|
11463
|
+
};
|
|
11464
|
+
/** @description The service is going through temporary maintenance. */
|
|
11465
|
+
503: {
|
|
11466
|
+
headers: {
|
|
11467
|
+
[name: string]: unknown;
|
|
11468
|
+
};
|
|
11469
|
+
content?: never;
|
|
11470
|
+
};
|
|
11471
|
+
};
|
|
11472
|
+
};
|
|
11473
|
+
"sign-in-with-email": {
|
|
11474
|
+
parameters: {
|
|
11475
|
+
query?: never;
|
|
11476
|
+
header?: {
|
|
11477
|
+
/** @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. */
|
|
11478
|
+
"x-mongo-cluster-name"?: string | null;
|
|
11479
|
+
"Sec-WebSocket-Protocol"?: string[];
|
|
11480
|
+
};
|
|
11481
|
+
path: {
|
|
11482
|
+
organization: string;
|
|
11483
|
+
};
|
|
11484
|
+
cookie?: never;
|
|
11485
|
+
};
|
|
11486
|
+
requestBody: {
|
|
11487
|
+
content: {
|
|
11488
|
+
"application/json": components["schemas"]["user__sign_in_with_email__Request"];
|
|
11489
|
+
};
|
|
11490
|
+
};
|
|
11491
|
+
responses: {
|
|
11492
|
+
/** @description Succeeded. */
|
|
11493
|
+
200: {
|
|
11494
|
+
headers: {
|
|
11495
|
+
[name: string]: unknown;
|
|
11496
|
+
};
|
|
11497
|
+
content: {
|
|
11498
|
+
"application/json": components["schemas"]["user__sign_in_with_email__Response"];
|
|
11499
|
+
};
|
|
11500
|
+
};
|
|
11501
|
+
/** @description Specified organization or user is not found. */
|
|
11502
|
+
404: {
|
|
11503
|
+
headers: {
|
|
11504
|
+
[name: string]: unknown;
|
|
11505
|
+
};
|
|
11506
|
+
content?: never;
|
|
11507
|
+
};
|
|
11508
|
+
/** @description Invalid request path parameter or request body failed validation. */
|
|
11509
|
+
422: {
|
|
11510
|
+
headers: {
|
|
11511
|
+
[name: string]: unknown;
|
|
11512
|
+
};
|
|
11513
|
+
content?: never;
|
|
11514
|
+
};
|
|
11515
|
+
/** @description The service is going through temporary maintenance. */
|
|
11516
|
+
503: {
|
|
11517
|
+
headers: {
|
|
11518
|
+
[name: string]: unknown;
|
|
11519
|
+
};
|
|
11520
|
+
content?: never;
|
|
11521
|
+
};
|
|
11522
|
+
};
|
|
11523
|
+
};
|
|
11417
11524
|
"update-user-info": {
|
|
11418
11525
|
parameters: {
|
|
11419
11526
|
query?: never;
|
|
@@ -11493,7 +11600,7 @@ export interface operations {
|
|
|
11493
11600
|
};
|
|
11494
11601
|
};
|
|
11495
11602
|
};
|
|
11496
|
-
"
|
|
11603
|
+
"delete-user": {
|
|
11497
11604
|
parameters: {
|
|
11498
11605
|
query?: never;
|
|
11499
11606
|
header?: {
|
|
@@ -11502,22 +11609,20 @@ export interface operations {
|
|
|
11502
11609
|
"Sec-WebSocket-Protocol"?: string[];
|
|
11503
11610
|
};
|
|
11504
11611
|
path: {
|
|
11612
|
+
/** @description The identifier of the user to delete. */
|
|
11613
|
+
requested_user_id: string;
|
|
11505
11614
|
organization: string;
|
|
11506
|
-
/** @description The ID of the user whose user models to retrieve. */
|
|
11507
|
-
user_id: string;
|
|
11508
11615
|
};
|
|
11509
11616
|
cookie?: never;
|
|
11510
11617
|
};
|
|
11511
11618
|
requestBody?: never;
|
|
11512
11619
|
responses: {
|
|
11513
11620
|
/** @description Succeeded. */
|
|
11514
|
-
|
|
11621
|
+
204: {
|
|
11515
11622
|
headers: {
|
|
11516
11623
|
[name: string]: unknown;
|
|
11517
11624
|
};
|
|
11518
|
-
content
|
|
11519
|
-
"application/json": components["schemas"]["user__get_user_model__Response"];
|
|
11520
|
-
};
|
|
11625
|
+
content?: never;
|
|
11521
11626
|
};
|
|
11522
11627
|
/** @description Invalid authorization credentials. */
|
|
11523
11628
|
401: {
|
|
@@ -11540,6 +11645,13 @@ export interface operations {
|
|
|
11540
11645
|
};
|
|
11541
11646
|
content?: never;
|
|
11542
11647
|
};
|
|
11648
|
+
/** @description A related operation is in progress. */
|
|
11649
|
+
409: {
|
|
11650
|
+
headers: {
|
|
11651
|
+
[name: string]: unknown;
|
|
11652
|
+
};
|
|
11653
|
+
content?: never;
|
|
11654
|
+
};
|
|
11543
11655
|
/** @description Invalid request path parameter failed validation. */
|
|
11544
11656
|
422: {
|
|
11545
11657
|
headers: {
|
|
@@ -11547,7 +11659,7 @@ export interface operations {
|
|
|
11547
11659
|
};
|
|
11548
11660
|
content?: never;
|
|
11549
11661
|
};
|
|
11550
|
-
/** @description The user has exceeded the rate limit of
|
|
11662
|
+
/** @description The user has exceeded the rate limit of 500 requests per minute for this endpoint. */
|
|
11551
11663
|
429: {
|
|
11552
11664
|
headers: {
|
|
11553
11665
|
[name: string]: unknown;
|
|
@@ -11563,7 +11675,7 @@ export interface operations {
|
|
|
11563
11675
|
};
|
|
11564
11676
|
};
|
|
11565
11677
|
};
|
|
11566
|
-
"
|
|
11678
|
+
"update-user-info-deprecated": {
|
|
11567
11679
|
parameters: {
|
|
11568
11680
|
query?: never;
|
|
11569
11681
|
header?: {
|
|
@@ -11572,24 +11684,38 @@ export interface operations {
|
|
|
11572
11684
|
"Sec-WebSocket-Protocol"?: string[];
|
|
11573
11685
|
};
|
|
11574
11686
|
path: {
|
|
11687
|
+
/** @description The identifier of the user to update information for. */
|
|
11688
|
+
requested_user_id: string;
|
|
11575
11689
|
organization: string;
|
|
11576
11690
|
};
|
|
11577
11691
|
cookie?: never;
|
|
11578
11692
|
};
|
|
11579
11693
|
requestBody: {
|
|
11580
11694
|
content: {
|
|
11581
|
-
"application/json": components["schemas"]["
|
|
11695
|
+
"application/json": components["schemas"]["user__update_user_info__Request"];
|
|
11582
11696
|
};
|
|
11583
11697
|
};
|
|
11584
11698
|
responses: {
|
|
11585
11699
|
/** @description Succeeded. */
|
|
11586
|
-
|
|
11700
|
+
204: {
|
|
11587
11701
|
headers: {
|
|
11588
11702
|
[name: string]: unknown;
|
|
11589
11703
|
};
|
|
11590
|
-
content
|
|
11591
|
-
|
|
11704
|
+
content?: never;
|
|
11705
|
+
};
|
|
11706
|
+
/** @description Invalid authorization credentials. */
|
|
11707
|
+
401: {
|
|
11708
|
+
headers: {
|
|
11709
|
+
[name: string]: unknown;
|
|
11592
11710
|
};
|
|
11711
|
+
content?: never;
|
|
11712
|
+
};
|
|
11713
|
+
/** @description Missing required permissions. */
|
|
11714
|
+
403: {
|
|
11715
|
+
headers: {
|
|
11716
|
+
[name: string]: unknown;
|
|
11717
|
+
};
|
|
11718
|
+
content?: never;
|
|
11593
11719
|
};
|
|
11594
11720
|
/** @description Specified organization or user is not found. */
|
|
11595
11721
|
404: {
|
|
@@ -11598,6 +11724,13 @@ export interface operations {
|
|
|
11598
11724
|
};
|
|
11599
11725
|
content?: never;
|
|
11600
11726
|
};
|
|
11727
|
+
/** @description A related operation is in progress. */
|
|
11728
|
+
409: {
|
|
11729
|
+
headers: {
|
|
11730
|
+
[name: string]: unknown;
|
|
11731
|
+
};
|
|
11732
|
+
content?: never;
|
|
11733
|
+
};
|
|
11601
11734
|
/** @description Invalid request path parameter or request body failed validation. */
|
|
11602
11735
|
422: {
|
|
11603
11736
|
headers: {
|
|
@@ -11605,6 +11738,13 @@ export interface operations {
|
|
|
11605
11738
|
};
|
|
11606
11739
|
content?: never;
|
|
11607
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
|
+
};
|
|
11608
11748
|
/** @description The service is going through temporary maintenance. */
|
|
11609
11749
|
503: {
|
|
11610
11750
|
headers: {
|
|
@@ -11614,7 +11754,7 @@ export interface operations {
|
|
|
11614
11754
|
};
|
|
11615
11755
|
};
|
|
11616
11756
|
};
|
|
11617
|
-
"
|
|
11757
|
+
"get-user-model": {
|
|
11618
11758
|
parameters: {
|
|
11619
11759
|
query?: never;
|
|
11620
11760
|
header?: {
|
|
@@ -11624,6 +11764,8 @@ export interface operations {
|
|
|
11624
11764
|
};
|
|
11625
11765
|
path: {
|
|
11626
11766
|
organization: string;
|
|
11767
|
+
/** @description The ID of the user whose user models to retrieve. */
|
|
11768
|
+
user_id: string;
|
|
11627
11769
|
};
|
|
11628
11770
|
cookie?: never;
|
|
11629
11771
|
};
|
|
@@ -11635,17 +11777,24 @@ export interface operations {
|
|
|
11635
11777
|
[name: string]: unknown;
|
|
11636
11778
|
};
|
|
11637
11779
|
content: {
|
|
11638
|
-
"application/json": components["schemas"]["
|
|
11780
|
+
"application/json": components["schemas"]["user__get_user_model__Response"];
|
|
11639
11781
|
};
|
|
11640
11782
|
};
|
|
11641
|
-
/** @description
|
|
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
|
|
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
|
|
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
|
-
"
|
|
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
|
|
12000
|
+
requestBody: {
|
|
12001
|
+
content: {
|
|
12002
|
+
"application/json": components["schemas"]["user__create_invited_user__Request"];
|
|
12003
|
+
};
|
|
12004
|
+
};
|
|
11854
12005
|
responses: {
|
|
11855
|
-
/** @description Succeeded
|
|
11856
|
-
|
|
12006
|
+
/** @description Succeeded */
|
|
12007
|
+
201: {
|
|
11857
12008
|
headers: {
|
|
11858
12009
|
[name: string]: unknown;
|
|
11859
12010
|
};
|
|
11860
|
-
content
|
|
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
|
|
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
|
|
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
|
|
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: {
|