@amigo-ai/sdk 0.26.0 → 0.28.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 +285 -167
- 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/invite": {
|
|
741
741
|
parameters: {
|
|
742
742
|
query?: never;
|
|
743
743
|
header?: never;
|
|
@@ -747,21 +747,27 @@ export interface paths {
|
|
|
747
747
|
get?: never;
|
|
748
748
|
put?: never;
|
|
749
749
|
/**
|
|
750
|
-
*
|
|
751
|
-
* @
|
|
750
|
+
* Create a new user
|
|
751
|
+
* @deprecated
|
|
752
|
+
* @description Invite a user to the Amigo platform. The endpoint will create a new user in the organization, linked to the
|
|
753
|
+
* supplied email address. The created user will remain in the unverified status and will not have access to most of Amigo's services.
|
|
754
|
+
*
|
|
755
|
+
* 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
|
|
756
|
+
* and start their Amigo experience. Otherwise, no email will be sent.
|
|
752
757
|
*
|
|
753
758
|
* #### Permissions
|
|
754
759
|
* This endpoint requires the following permissions:
|
|
755
|
-
* * `User:
|
|
760
|
+
* * `User:InviteUser` on the user to invite.
|
|
761
|
+
* * The authenticated user must have greater privileges than the role assigned to the new user.
|
|
756
762
|
*/
|
|
757
|
-
post: operations["
|
|
763
|
+
post: operations["create-invited-user-deprecated"];
|
|
758
764
|
delete?: never;
|
|
759
765
|
options?: never;
|
|
760
766
|
head?: never;
|
|
761
767
|
patch?: never;
|
|
762
768
|
trace?: never;
|
|
763
769
|
};
|
|
764
|
-
"/v1/{organization}/user/
|
|
770
|
+
"/v1/{organization}/user/": {
|
|
765
771
|
parameters: {
|
|
766
772
|
query?: never;
|
|
767
773
|
header?: never;
|
|
@@ -769,23 +775,36 @@ export interface paths {
|
|
|
769
775
|
cookie?: never;
|
|
770
776
|
};
|
|
771
777
|
/**
|
|
772
|
-
* Get
|
|
773
|
-
* @description Retrieve
|
|
778
|
+
* Get users
|
|
779
|
+
* @description Retrieve all users in an organization.
|
|
774
780
|
*
|
|
775
781
|
* #### Permissions
|
|
776
|
-
* This endpoint
|
|
777
|
-
* *
|
|
782
|
+
* This endpoint is impacted by the following permissions:
|
|
783
|
+
* * Only users that the authenticated user has the `User:GetUserInfo` permission for are returned.
|
|
778
784
|
*/
|
|
779
|
-
get: operations["get-
|
|
785
|
+
get: operations["get-users"];
|
|
780
786
|
put?: never;
|
|
781
|
-
|
|
787
|
+
/**
|
|
788
|
+
* Create a new user
|
|
789
|
+
* @description Invite a user to the Amigo platform. The endpoint will create a new user in the organization, linked to the
|
|
790
|
+
* supplied email address. The created user will remain in the unverified status and will not have access to most of Amigo's services.
|
|
791
|
+
*
|
|
792
|
+
* 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
|
|
793
|
+
* and start their Amigo experience. Otherwise, no email will be sent.
|
|
794
|
+
*
|
|
795
|
+
* #### Permissions
|
|
796
|
+
* This endpoint requires the following permissions:
|
|
797
|
+
* * `User:InviteUser` on the user to invite.
|
|
798
|
+
* * The authenticated user must have greater privileges than the role assigned to the new user.
|
|
799
|
+
*/
|
|
800
|
+
post: operations["create-invited-user"];
|
|
782
801
|
delete?: never;
|
|
783
802
|
options?: never;
|
|
784
803
|
head?: never;
|
|
785
804
|
patch?: never;
|
|
786
805
|
trace?: never;
|
|
787
806
|
};
|
|
788
|
-
"/v1/{organization}/user/
|
|
807
|
+
"/v1/{organization}/user/signin_with_api_key": {
|
|
789
808
|
parameters: {
|
|
790
809
|
query?: never;
|
|
791
810
|
header?: never;
|
|
@@ -795,17 +814,19 @@ export interface paths {
|
|
|
795
814
|
get?: never;
|
|
796
815
|
put?: never;
|
|
797
816
|
/**
|
|
798
|
-
* Sign in with
|
|
799
|
-
* @description
|
|
817
|
+
* Sign in with API key
|
|
818
|
+
* @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.
|
|
819
|
+
*
|
|
820
|
+
* This is an alternative authorization method for users who cannot use the Amigo frontend to login and authenticate.
|
|
800
821
|
*/
|
|
801
|
-
post: operations["sign-in-with-
|
|
822
|
+
post: operations["sign-in-with-api-key"];
|
|
802
823
|
delete?: never;
|
|
803
824
|
options?: never;
|
|
804
825
|
head?: never;
|
|
805
826
|
patch?: never;
|
|
806
827
|
trace?: never;
|
|
807
828
|
};
|
|
808
|
-
"/v1/{organization}/user/
|
|
829
|
+
"/v1/{organization}/user/signin": {
|
|
809
830
|
parameters: {
|
|
810
831
|
query?: never;
|
|
811
832
|
header?: never;
|
|
@@ -815,43 +836,42 @@ export interface paths {
|
|
|
815
836
|
get?: never;
|
|
816
837
|
put?: never;
|
|
817
838
|
/**
|
|
818
|
-
* Sign in with
|
|
819
|
-
* @description
|
|
820
|
-
*
|
|
821
|
-
* This is an alternative authorization method for users who cannot use the Amigo frontend to login and authenticate.
|
|
839
|
+
* Sign in with email
|
|
840
|
+
* @description Send a magic link to the user's email to sign in.
|
|
822
841
|
*/
|
|
823
|
-
post: operations["sign-in-with-
|
|
842
|
+
post: operations["sign-in-with-email"];
|
|
824
843
|
delete?: never;
|
|
825
844
|
options?: never;
|
|
826
845
|
head?: never;
|
|
827
846
|
patch?: never;
|
|
828
847
|
trace?: never;
|
|
829
848
|
};
|
|
830
|
-
"/v1/{organization}/user/": {
|
|
849
|
+
"/v1/{organization}/user/{requested_user_id}/user": {
|
|
831
850
|
parameters: {
|
|
832
851
|
query?: never;
|
|
833
852
|
header?: never;
|
|
834
853
|
path?: never;
|
|
835
854
|
cookie?: never;
|
|
836
855
|
};
|
|
856
|
+
get?: never;
|
|
857
|
+
put?: never;
|
|
837
858
|
/**
|
|
838
|
-
*
|
|
839
|
-
* @
|
|
859
|
+
* Update user info
|
|
860
|
+
* @deprecated
|
|
861
|
+
* @description Update information about an user. Only fields that are specified in the request are updated.
|
|
840
862
|
*
|
|
841
863
|
* #### Permissions
|
|
842
|
-
* This endpoint
|
|
843
|
-
* *
|
|
864
|
+
* This endpoint requires the following permissions:
|
|
865
|
+
* * `User:UpdateUserInfo` for the user to update.
|
|
844
866
|
*/
|
|
845
|
-
|
|
846
|
-
put?: never;
|
|
847
|
-
post?: never;
|
|
867
|
+
post: operations["update-user-info-deprecated"];
|
|
848
868
|
delete?: never;
|
|
849
869
|
options?: never;
|
|
850
870
|
head?: never;
|
|
851
871
|
patch?: never;
|
|
852
872
|
trace?: never;
|
|
853
873
|
};
|
|
854
|
-
"/v1/{organization}/user/
|
|
874
|
+
"/v1/{organization}/user/{requested_user_id}": {
|
|
855
875
|
parameters: {
|
|
856
876
|
query?: never;
|
|
857
877
|
header?: never;
|
|
@@ -861,44 +881,47 @@ export interface paths {
|
|
|
861
881
|
get?: never;
|
|
862
882
|
put?: never;
|
|
863
883
|
/**
|
|
864
|
-
*
|
|
865
|
-
* @description
|
|
866
|
-
* supplied email address. The created user will remain in the unverified status and will not have access to most of Amigo's services.
|
|
884
|
+
* Update user info
|
|
885
|
+
* @description Update information about an user. Only fields that are specified in the request are updated.
|
|
867
886
|
*
|
|
868
|
-
*
|
|
869
|
-
*
|
|
887
|
+
* #### Permissions
|
|
888
|
+
* This endpoint requires the following permissions:
|
|
889
|
+
* * `User:UpdateUserInfo` for the user to update.
|
|
890
|
+
*/
|
|
891
|
+
post: operations["update-user-info"];
|
|
892
|
+
/**
|
|
893
|
+
* Delete an user
|
|
894
|
+
* @description Delete an user. This endpoint deletes the user from the Amigo system.
|
|
870
895
|
*
|
|
871
896
|
* #### Permissions
|
|
872
897
|
* This endpoint requires the following permissions:
|
|
873
|
-
* * `User
|
|
874
|
-
* * The authenticated user must have greater privileges than the role assigned to the new user.
|
|
898
|
+
* * `User.DeleteUser` on the user to delete.
|
|
875
899
|
*/
|
|
876
|
-
|
|
877
|
-
delete?: never;
|
|
900
|
+
delete: operations["delete-user"];
|
|
878
901
|
options?: never;
|
|
879
902
|
head?: never;
|
|
880
903
|
patch?: never;
|
|
881
904
|
trace?: never;
|
|
882
905
|
};
|
|
883
|
-
"/v1/{organization}/user/{
|
|
906
|
+
"/v1/{organization}/user/{user_id}/user_model": {
|
|
884
907
|
parameters: {
|
|
885
908
|
query?: never;
|
|
886
909
|
header?: never;
|
|
887
910
|
path?: never;
|
|
888
911
|
cookie?: never;
|
|
889
912
|
};
|
|
890
|
-
get?: never;
|
|
891
|
-
put?: never;
|
|
892
|
-
post?: never;
|
|
893
913
|
/**
|
|
894
|
-
*
|
|
895
|
-
* @description
|
|
914
|
+
* Get user model
|
|
915
|
+
* @description Retrieve the user models for an user.
|
|
896
916
|
*
|
|
897
917
|
* #### Permissions
|
|
898
918
|
* This endpoint requires the following permissions:
|
|
899
|
-
* * `User
|
|
919
|
+
* * `User:GetUserModel` for the user to retrieve the user models for.
|
|
900
920
|
*/
|
|
901
|
-
|
|
921
|
+
get: operations["get-user-model"];
|
|
922
|
+
put?: never;
|
|
923
|
+
post?: never;
|
|
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;
|
|
@@ -2302,6 +2305,11 @@ export interface components {
|
|
|
2302
2305
|
* @description The role ID of the creator of this key.
|
|
2303
2306
|
*/
|
|
2304
2307
|
role_id: string;
|
|
2308
|
+
/**
|
|
2309
|
+
* Index
|
|
2310
|
+
* @description The index of this API key, which is an integer between 0 to 19. An org cannot have more than 1 API key with the same index.
|
|
2311
|
+
*/
|
|
2312
|
+
index: number;
|
|
2305
2313
|
};
|
|
2306
2314
|
/** ActionState */
|
|
2307
2315
|
"ActionState-Input": {
|
|
@@ -6347,14 +6355,6 @@ export interface components {
|
|
|
6347
6355
|
amigo_lib__pydantic__base_model__StrippedNonemptyString__2: string;
|
|
6348
6356
|
amigo_lib__pydantic__base_model__StrippedNonemptyString__3: string;
|
|
6349
6357
|
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
6358
|
/** Request */
|
|
6359
6359
|
admin__submit_sql_query__Request: {
|
|
6360
6360
|
/** @description The SQL query to execute. */
|
|
@@ -11414,7 +11414,7 @@ export interface operations {
|
|
|
11414
11414
|
};
|
|
11415
11415
|
};
|
|
11416
11416
|
};
|
|
11417
|
-
"
|
|
11417
|
+
"create-invited-user-deprecated": {
|
|
11418
11418
|
parameters: {
|
|
11419
11419
|
query?: never;
|
|
11420
11420
|
header?: {
|
|
@@ -11423,24 +11423,24 @@ export interface operations {
|
|
|
11423
11423
|
"Sec-WebSocket-Protocol"?: string[];
|
|
11424
11424
|
};
|
|
11425
11425
|
path: {
|
|
11426
|
-
/** @description The identifier of the user to update information for. */
|
|
11427
|
-
requested_user_id: string;
|
|
11428
11426
|
organization: string;
|
|
11429
11427
|
};
|
|
11430
11428
|
cookie?: never;
|
|
11431
11429
|
};
|
|
11432
11430
|
requestBody: {
|
|
11433
11431
|
content: {
|
|
11434
|
-
"application/json": components["schemas"]["
|
|
11432
|
+
"application/json": components["schemas"]["user__create_invited_user__Request"];
|
|
11435
11433
|
};
|
|
11436
11434
|
};
|
|
11437
11435
|
responses: {
|
|
11438
|
-
/** @description Succeeded
|
|
11439
|
-
|
|
11436
|
+
/** @description Succeeded */
|
|
11437
|
+
201: {
|
|
11440
11438
|
headers: {
|
|
11441
11439
|
[name: string]: unknown;
|
|
11442
11440
|
};
|
|
11443
|
-
content
|
|
11441
|
+
content: {
|
|
11442
|
+
"application/json": components["schemas"]["user__create_invited_user__Response"];
|
|
11443
|
+
};
|
|
11444
11444
|
};
|
|
11445
11445
|
/** @description Invalid authorization credentials. */
|
|
11446
11446
|
401: {
|
|
@@ -11456,14 +11456,14 @@ export interface operations {
|
|
|
11456
11456
|
};
|
|
11457
11457
|
content?: never;
|
|
11458
11458
|
};
|
|
11459
|
-
/** @description Specified organization or
|
|
11459
|
+
/** @description Specified organization or role is not found. */
|
|
11460
11460
|
404: {
|
|
11461
11461
|
headers: {
|
|
11462
11462
|
[name: string]: unknown;
|
|
11463
11463
|
};
|
|
11464
11464
|
content?: never;
|
|
11465
11465
|
};
|
|
11466
|
-
/** @description
|
|
11466
|
+
/** @description User with the same email already exists in this organization, or a related operation is in progress. */
|
|
11467
11467
|
409: {
|
|
11468
11468
|
headers: {
|
|
11469
11469
|
[name: string]: unknown;
|
|
@@ -11493,9 +11493,22 @@ export interface operations {
|
|
|
11493
11493
|
};
|
|
11494
11494
|
};
|
|
11495
11495
|
};
|
|
11496
|
-
"get-
|
|
11496
|
+
"get-users": {
|
|
11497
11497
|
parameters: {
|
|
11498
|
-
query?:
|
|
11498
|
+
query?: {
|
|
11499
|
+
/** @description Whether the user is verified. */
|
|
11500
|
+
is_verified?: boolean | null;
|
|
11501
|
+
/** @description The ID of the user. */
|
|
11502
|
+
user_id?: string[];
|
|
11503
|
+
/** @description The email of the user, */
|
|
11504
|
+
email?: string[];
|
|
11505
|
+
/** @description The maximum number of users to retrieve. */
|
|
11506
|
+
limit?: number;
|
|
11507
|
+
/** @description The token from the previous request to return the next page of users. */
|
|
11508
|
+
continuation_token?: number;
|
|
11509
|
+
/** @description The fields to sort the users by. Supported fields are `first_name`, `last_name`, `email`, `user_stats.num_conversations`, `user_stats.num_messages`, and `user_stats.last_message_time`. Specify a `+` before the field name to indicate ascending sorting and `-` for descending sorting. Multiple fields can be specified to break ties. */
|
|
11510
|
+
sort_by?: string[];
|
|
11511
|
+
};
|
|
11499
11512
|
header?: {
|
|
11500
11513
|
/** @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. */
|
|
11501
11514
|
"x-mongo-cluster-name"?: string | null;
|
|
@@ -11503,8 +11516,6 @@ export interface operations {
|
|
|
11503
11516
|
};
|
|
11504
11517
|
path: {
|
|
11505
11518
|
organization: string;
|
|
11506
|
-
/** @description The ID of the user whose user models to retrieve. */
|
|
11507
|
-
user_id: string;
|
|
11508
11519
|
};
|
|
11509
11520
|
cookie?: never;
|
|
11510
11521
|
};
|
|
@@ -11516,7 +11527,7 @@ export interface operations {
|
|
|
11516
11527
|
[name: string]: unknown;
|
|
11517
11528
|
};
|
|
11518
11529
|
content: {
|
|
11519
|
-
"application/json": components["schemas"]["
|
|
11530
|
+
"application/json": components["schemas"]["user__get_users__Response"];
|
|
11520
11531
|
};
|
|
11521
11532
|
};
|
|
11522
11533
|
/** @description Invalid authorization credentials. */
|
|
@@ -11533,14 +11544,14 @@ export interface operations {
|
|
|
11533
11544
|
};
|
|
11534
11545
|
content?: never;
|
|
11535
11546
|
};
|
|
11536
|
-
/** @description Specified organization
|
|
11547
|
+
/** @description Specified organization is not found. */
|
|
11537
11548
|
404: {
|
|
11538
11549
|
headers: {
|
|
11539
11550
|
[name: string]: unknown;
|
|
11540
11551
|
};
|
|
11541
11552
|
content?: never;
|
|
11542
11553
|
};
|
|
11543
|
-
/** @description Invalid request path parameter failed validation. */
|
|
11554
|
+
/** @description Invalid request path parameter or request query parameter failed validation. */
|
|
11544
11555
|
422: {
|
|
11545
11556
|
headers: {
|
|
11546
11557
|
[name: string]: unknown;
|
|
@@ -11563,7 +11574,7 @@ export interface operations {
|
|
|
11563
11574
|
};
|
|
11564
11575
|
};
|
|
11565
11576
|
};
|
|
11566
|
-
"
|
|
11577
|
+
"create-invited-user": {
|
|
11567
11578
|
parameters: {
|
|
11568
11579
|
query?: never;
|
|
11569
11580
|
header?: {
|
|
@@ -11578,26 +11589,47 @@ export interface operations {
|
|
|
11578
11589
|
};
|
|
11579
11590
|
requestBody: {
|
|
11580
11591
|
content: {
|
|
11581
|
-
"application/json": components["schemas"]["
|
|
11592
|
+
"application/json": components["schemas"]["user__create_invited_user__Request"];
|
|
11582
11593
|
};
|
|
11583
11594
|
};
|
|
11584
11595
|
responses: {
|
|
11585
|
-
/** @description Succeeded
|
|
11586
|
-
|
|
11596
|
+
/** @description Succeeded */
|
|
11597
|
+
201: {
|
|
11587
11598
|
headers: {
|
|
11588
11599
|
[name: string]: unknown;
|
|
11589
11600
|
};
|
|
11590
11601
|
content: {
|
|
11591
|
-
"application/json": components["schemas"]["
|
|
11602
|
+
"application/json": components["schemas"]["user__create_invited_user__Response"];
|
|
11592
11603
|
};
|
|
11593
11604
|
};
|
|
11594
|
-
/** @description
|
|
11605
|
+
/** @description Invalid authorization credentials. */
|
|
11606
|
+
401: {
|
|
11607
|
+
headers: {
|
|
11608
|
+
[name: string]: unknown;
|
|
11609
|
+
};
|
|
11610
|
+
content?: never;
|
|
11611
|
+
};
|
|
11612
|
+
/** @description Missing required permissions. */
|
|
11613
|
+
403: {
|
|
11614
|
+
headers: {
|
|
11615
|
+
[name: string]: unknown;
|
|
11616
|
+
};
|
|
11617
|
+
content?: never;
|
|
11618
|
+
};
|
|
11619
|
+
/** @description Specified organization or role is not found. */
|
|
11595
11620
|
404: {
|
|
11596
11621
|
headers: {
|
|
11597
11622
|
[name: string]: unknown;
|
|
11598
11623
|
};
|
|
11599
11624
|
content?: never;
|
|
11600
11625
|
};
|
|
11626
|
+
/** @description User with the same email already exists in this organization, or a related operation is in progress. */
|
|
11627
|
+
409: {
|
|
11628
|
+
headers: {
|
|
11629
|
+
[name: string]: unknown;
|
|
11630
|
+
};
|
|
11631
|
+
content?: never;
|
|
11632
|
+
};
|
|
11601
11633
|
/** @description Invalid request path parameter or request body failed validation. */
|
|
11602
11634
|
422: {
|
|
11603
11635
|
headers: {
|
|
@@ -11605,6 +11637,13 @@ export interface operations {
|
|
|
11605
11637
|
};
|
|
11606
11638
|
content?: never;
|
|
11607
11639
|
};
|
|
11640
|
+
/** @description The user has exceeded the rate limit of 50 requests per minute for this endpoint. */
|
|
11641
|
+
429: {
|
|
11642
|
+
headers: {
|
|
11643
|
+
[name: string]: unknown;
|
|
11644
|
+
};
|
|
11645
|
+
content?: never;
|
|
11646
|
+
};
|
|
11608
11647
|
/** @description The service is going through temporary maintenance. */
|
|
11609
11648
|
503: {
|
|
11610
11649
|
headers: {
|
|
@@ -11675,22 +11714,9 @@ export interface operations {
|
|
|
11675
11714
|
};
|
|
11676
11715
|
};
|
|
11677
11716
|
};
|
|
11678
|
-
"
|
|
11717
|
+
"sign-in-with-email": {
|
|
11679
11718
|
parameters: {
|
|
11680
|
-
query?:
|
|
11681
|
-
/** @description Whether the user is verified. */
|
|
11682
|
-
is_verified?: boolean | null;
|
|
11683
|
-
/** @description The ID of the user. */
|
|
11684
|
-
user_id?: string[];
|
|
11685
|
-
/** @description The email of the user, */
|
|
11686
|
-
email?: string[];
|
|
11687
|
-
/** @description The maximum number of users to retrieve. */
|
|
11688
|
-
limit?: number;
|
|
11689
|
-
/** @description The token from the previous request to return the next page of users. */
|
|
11690
|
-
continuation_token?: number;
|
|
11691
|
-
/** @description The fields to sort the users by. Supported fields are `first_name`, `last_name`, `email`, `user_stats.num_conversations`, `user_stats.num_messages`, and `user_stats.last_message_time`. Specify a `+` before the field name to indicate ascending sorting and `-` for descending sorting. Multiple fields can be specified to break ties. */
|
|
11692
|
-
sort_by?: string[];
|
|
11693
|
-
};
|
|
11719
|
+
query?: never;
|
|
11694
11720
|
header?: {
|
|
11695
11721
|
/** @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. */
|
|
11696
11722
|
"x-mongo-cluster-name"?: string | null;
|
|
@@ -11701,7 +11727,11 @@ export interface operations {
|
|
|
11701
11727
|
};
|
|
11702
11728
|
cookie?: never;
|
|
11703
11729
|
};
|
|
11704
|
-
requestBody
|
|
11730
|
+
requestBody: {
|
|
11731
|
+
content: {
|
|
11732
|
+
"application/json": components["schemas"]["user__sign_in_with_email__Request"];
|
|
11733
|
+
};
|
|
11734
|
+
};
|
|
11705
11735
|
responses: {
|
|
11706
11736
|
/** @description Succeeded. */
|
|
11707
11737
|
200: {
|
|
@@ -11709,9 +11739,60 @@ export interface operations {
|
|
|
11709
11739
|
[name: string]: unknown;
|
|
11710
11740
|
};
|
|
11711
11741
|
content: {
|
|
11712
|
-
"application/json": components["schemas"]["
|
|
11742
|
+
"application/json": components["schemas"]["user__sign_in_with_email__Response"];
|
|
11713
11743
|
};
|
|
11714
11744
|
};
|
|
11745
|
+
/** @description Specified organization or user is not found. */
|
|
11746
|
+
404: {
|
|
11747
|
+
headers: {
|
|
11748
|
+
[name: string]: unknown;
|
|
11749
|
+
};
|
|
11750
|
+
content?: never;
|
|
11751
|
+
};
|
|
11752
|
+
/** @description Invalid request path parameter or request body failed validation. */
|
|
11753
|
+
422: {
|
|
11754
|
+
headers: {
|
|
11755
|
+
[name: string]: unknown;
|
|
11756
|
+
};
|
|
11757
|
+
content?: never;
|
|
11758
|
+
};
|
|
11759
|
+
/** @description The service is going through temporary maintenance. */
|
|
11760
|
+
503: {
|
|
11761
|
+
headers: {
|
|
11762
|
+
[name: string]: unknown;
|
|
11763
|
+
};
|
|
11764
|
+
content?: never;
|
|
11765
|
+
};
|
|
11766
|
+
};
|
|
11767
|
+
};
|
|
11768
|
+
"update-user-info-deprecated": {
|
|
11769
|
+
parameters: {
|
|
11770
|
+
query?: never;
|
|
11771
|
+
header?: {
|
|
11772
|
+
/** @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. */
|
|
11773
|
+
"x-mongo-cluster-name"?: string | null;
|
|
11774
|
+
"Sec-WebSocket-Protocol"?: string[];
|
|
11775
|
+
};
|
|
11776
|
+
path: {
|
|
11777
|
+
/** @description The identifier of the user to update information for. */
|
|
11778
|
+
requested_user_id: string;
|
|
11779
|
+
organization: string;
|
|
11780
|
+
};
|
|
11781
|
+
cookie?: never;
|
|
11782
|
+
};
|
|
11783
|
+
requestBody: {
|
|
11784
|
+
content: {
|
|
11785
|
+
"application/json": components["schemas"]["user__update_user_info__Request"];
|
|
11786
|
+
};
|
|
11787
|
+
};
|
|
11788
|
+
responses: {
|
|
11789
|
+
/** @description Succeeded. */
|
|
11790
|
+
204: {
|
|
11791
|
+
headers: {
|
|
11792
|
+
[name: string]: unknown;
|
|
11793
|
+
};
|
|
11794
|
+
content?: never;
|
|
11795
|
+
};
|
|
11715
11796
|
/** @description Invalid authorization credentials. */
|
|
11716
11797
|
401: {
|
|
11717
11798
|
headers: {
|
|
@@ -11726,21 +11807,28 @@ export interface operations {
|
|
|
11726
11807
|
};
|
|
11727
11808
|
content?: never;
|
|
11728
11809
|
};
|
|
11729
|
-
/** @description Specified organization is not found. */
|
|
11810
|
+
/** @description Specified organization or user is not found. */
|
|
11730
11811
|
404: {
|
|
11731
11812
|
headers: {
|
|
11732
11813
|
[name: string]: unknown;
|
|
11733
11814
|
};
|
|
11734
11815
|
content?: never;
|
|
11735
11816
|
};
|
|
11736
|
-
/** @description
|
|
11817
|
+
/** @description A related operation is in progress. */
|
|
11818
|
+
409: {
|
|
11819
|
+
headers: {
|
|
11820
|
+
[name: string]: unknown;
|
|
11821
|
+
};
|
|
11822
|
+
content?: never;
|
|
11823
|
+
};
|
|
11824
|
+
/** @description Invalid request path parameter or request body failed validation. */
|
|
11737
11825
|
422: {
|
|
11738
11826
|
headers: {
|
|
11739
11827
|
[name: string]: unknown;
|
|
11740
11828
|
};
|
|
11741
11829
|
content?: never;
|
|
11742
11830
|
};
|
|
11743
|
-
/** @description The user has exceeded the rate limit of
|
|
11831
|
+
/** @description The user has exceeded the rate limit of 50 requests per minute for this endpoint. */
|
|
11744
11832
|
429: {
|
|
11745
11833
|
headers: {
|
|
11746
11834
|
[name: string]: unknown;
|
|
@@ -11756,7 +11844,7 @@ export interface operations {
|
|
|
11756
11844
|
};
|
|
11757
11845
|
};
|
|
11758
11846
|
};
|
|
11759
|
-
"
|
|
11847
|
+
"update-user-info": {
|
|
11760
11848
|
parameters: {
|
|
11761
11849
|
query?: never;
|
|
11762
11850
|
header?: {
|
|
@@ -11765,24 +11853,24 @@ export interface operations {
|
|
|
11765
11853
|
"Sec-WebSocket-Protocol"?: string[];
|
|
11766
11854
|
};
|
|
11767
11855
|
path: {
|
|
11856
|
+
/** @description The identifier of the user to update information for. */
|
|
11857
|
+
requested_user_id: string;
|
|
11768
11858
|
organization: string;
|
|
11769
11859
|
};
|
|
11770
11860
|
cookie?: never;
|
|
11771
11861
|
};
|
|
11772
11862
|
requestBody: {
|
|
11773
11863
|
content: {
|
|
11774
|
-
"application/json": components["schemas"]["
|
|
11864
|
+
"application/json": components["schemas"]["user__update_user_info__Request"];
|
|
11775
11865
|
};
|
|
11776
11866
|
};
|
|
11777
11867
|
responses: {
|
|
11778
|
-
/** @description Succeeded */
|
|
11779
|
-
|
|
11868
|
+
/** @description Succeeded. */
|
|
11869
|
+
204: {
|
|
11780
11870
|
headers: {
|
|
11781
11871
|
[name: string]: unknown;
|
|
11782
11872
|
};
|
|
11783
|
-
content
|
|
11784
|
-
"application/json": components["schemas"]["user__create_invited_user__Response"];
|
|
11785
|
-
};
|
|
11873
|
+
content?: never;
|
|
11786
11874
|
};
|
|
11787
11875
|
/** @description Invalid authorization credentials. */
|
|
11788
11876
|
401: {
|
|
@@ -11798,14 +11886,14 @@ export interface operations {
|
|
|
11798
11886
|
};
|
|
11799
11887
|
content?: never;
|
|
11800
11888
|
};
|
|
11801
|
-
/** @description Specified organization or
|
|
11889
|
+
/** @description Specified organization or user is not found. */
|
|
11802
11890
|
404: {
|
|
11803
11891
|
headers: {
|
|
11804
11892
|
[name: string]: unknown;
|
|
11805
11893
|
};
|
|
11806
11894
|
content?: never;
|
|
11807
11895
|
};
|
|
11808
|
-
/** @description
|
|
11896
|
+
/** @description A related operation is in progress. */
|
|
11809
11897
|
409: {
|
|
11810
11898
|
headers: {
|
|
11811
11899
|
[name: string]: unknown;
|
|
@@ -11910,6 +11998,76 @@ export interface operations {
|
|
|
11910
11998
|
};
|
|
11911
11999
|
};
|
|
11912
12000
|
};
|
|
12001
|
+
"get-user-model": {
|
|
12002
|
+
parameters: {
|
|
12003
|
+
query?: never;
|
|
12004
|
+
header?: {
|
|
12005
|
+
/** @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. */
|
|
12006
|
+
"x-mongo-cluster-name"?: string | null;
|
|
12007
|
+
"Sec-WebSocket-Protocol"?: string[];
|
|
12008
|
+
};
|
|
12009
|
+
path: {
|
|
12010
|
+
organization: string;
|
|
12011
|
+
/** @description The ID of the user whose user models to retrieve. */
|
|
12012
|
+
user_id: string;
|
|
12013
|
+
};
|
|
12014
|
+
cookie?: never;
|
|
12015
|
+
};
|
|
12016
|
+
requestBody?: never;
|
|
12017
|
+
responses: {
|
|
12018
|
+
/** @description Succeeded. */
|
|
12019
|
+
200: {
|
|
12020
|
+
headers: {
|
|
12021
|
+
[name: string]: unknown;
|
|
12022
|
+
};
|
|
12023
|
+
content: {
|
|
12024
|
+
"application/json": components["schemas"]["user__get_user_model__Response"];
|
|
12025
|
+
};
|
|
12026
|
+
};
|
|
12027
|
+
/** @description Invalid authorization credentials. */
|
|
12028
|
+
401: {
|
|
12029
|
+
headers: {
|
|
12030
|
+
[name: string]: unknown;
|
|
12031
|
+
};
|
|
12032
|
+
content?: never;
|
|
12033
|
+
};
|
|
12034
|
+
/** @description Missing required permissions. */
|
|
12035
|
+
403: {
|
|
12036
|
+
headers: {
|
|
12037
|
+
[name: string]: unknown;
|
|
12038
|
+
};
|
|
12039
|
+
content?: never;
|
|
12040
|
+
};
|
|
12041
|
+
/** @description Specified organization or user is not found. */
|
|
12042
|
+
404: {
|
|
12043
|
+
headers: {
|
|
12044
|
+
[name: string]: unknown;
|
|
12045
|
+
};
|
|
12046
|
+
content?: never;
|
|
12047
|
+
};
|
|
12048
|
+
/** @description Invalid request path parameter failed validation. */
|
|
12049
|
+
422: {
|
|
12050
|
+
headers: {
|
|
12051
|
+
[name: string]: unknown;
|
|
12052
|
+
};
|
|
12053
|
+
content?: never;
|
|
12054
|
+
};
|
|
12055
|
+
/** @description The user has exceeded the rate limit of 60 requests per minute for this endpoint. */
|
|
12056
|
+
429: {
|
|
12057
|
+
headers: {
|
|
12058
|
+
[name: string]: unknown;
|
|
12059
|
+
};
|
|
12060
|
+
content?: never;
|
|
12061
|
+
};
|
|
12062
|
+
/** @description The service is going through temporary maintenance. */
|
|
12063
|
+
503: {
|
|
12064
|
+
headers: {
|
|
12065
|
+
[name: string]: unknown;
|
|
12066
|
+
};
|
|
12067
|
+
content?: never;
|
|
12068
|
+
};
|
|
12069
|
+
};
|
|
12070
|
+
};
|
|
11913
12071
|
"get-memories": {
|
|
11914
12072
|
parameters: {
|
|
11915
12073
|
query?: {
|
|
@@ -12371,46 +12529,6 @@ export interface operations {
|
|
|
12371
12529
|
};
|
|
12372
12530
|
};
|
|
12373
12531
|
};
|
|
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
12532
|
"get-prompt-logs": {
|
|
12415
12533
|
parameters: {
|
|
12416
12534
|
query: {
|