arbi 0.2.0__py3-none-any.whl → 0.3.0__py3-none-any.whl
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.
Potentially problematic release.
This version of arbi might be problematic. Click here for more details.
- arbi/_streaming.py +4 -6
- arbi/_version.py +1 -1
- arbi/resources/api/__init__.py +0 -14
- arbi/resources/api/api.py +0 -32
- arbi/resources/api/assistant.py +9 -1
- arbi/resources/api/conversation/conversation.py +87 -2
- arbi/resources/api/document/annotation.py +9 -1
- arbi/resources/api/document/document.py +39 -1
- arbi/resources/api/tag.py +13 -1
- arbi/resources/api/user/user.py +397 -134
- arbi/resources/api/workspace.py +202 -12
- arbi/types/api/__init__.py +12 -7
- arbi/types/api/assistant_query_params.py +22 -2
- arbi/types/api/assistant_retrieve_params.py +22 -2
- arbi/types/api/conversation_retrieve_message_response.py +99 -0
- arbi/types/api/conversation_retrieve_threads_response.py +16 -0
- arbi/types/api/document/annotation_create_params.py +5 -1
- arbi/types/api/document/annotation_update_params.py +5 -1
- arbi/types/api/document_update_params.py +2 -0
- arbi/types/api/document_upload_from_url_params.py +4 -1
- arbi/types/api/document_upload_params.py +4 -1
- arbi/types/api/document_view_params.py +5 -1
- arbi/types/api/tag_create_params.py +5 -1
- arbi/types/api/tag_update_params.py +5 -1
- arbi/types/api/user_change_password_params.py +16 -0
- arbi/types/api/{sso_rotate_passcode_response.py → user_change_password_response.py} +3 -3
- arbi/types/api/{sso_login_params.py → user_check_sso_status_params.py} +3 -6
- arbi/types/api/{user_response.py → user_check_sso_status_response.py} +4 -6
- arbi/types/api/{sso_invite_params.py → user_invite_params.py} +2 -2
- arbi/types/api/{sso_invite_response.py → user_invite_response.py} +2 -4
- arbi/types/api/user_login_params.py +4 -1
- arbi/types/api/user_login_response.py +8 -0
- arbi/types/api/user_register_params.py +5 -4
- arbi/types/api/workspace_copy_params.py +21 -0
- arbi/types/api/workspace_copy_response.py +25 -0
- arbi/types/api/workspace_get_stats_response.py +6 -2
- arbi/types/api/workspace_get_users_response.py +5 -1
- arbi/types/api/workspace_response.py +24 -2
- arbi/types/api/workspace_share_params.py +5 -1
- arbi/types/api/workspace_update_params.py +5 -1
- {arbi-0.2.0.dist-info → arbi-0.3.0.dist-info}/METADATA +2 -2
- {arbi-0.2.0.dist-info → arbi-0.3.0.dist-info}/RECORD +44 -42
- arbi/resources/api/sso.py +0 -333
- arbi/types/api/sso_login_response.py +0 -15
- arbi/types/api/token.py +0 -13
- {arbi-0.2.0.dist-info → arbi-0.3.0.dist-info}/WHEEL +0 -0
- {arbi-0.2.0.dist-info → arbi-0.3.0.dist-info}/licenses/LICENSE +0 -0
|
@@ -9,9 +9,9 @@ arbi/_models.py,sha256=lKnskYPONAWDvWo8tmbbVk7HmG7UOsI0Nve0vSMmkRc,30452
|
|
|
9
9
|
arbi/_qs.py,sha256=craIKyvPktJ94cvf9zn8j8ekG9dWJzhWv0ob34lIOv4,4828
|
|
10
10
|
arbi/_resource.py,sha256=eBjjRTRH59kNM8uLWIK04QCR0Sknrv9fEs4DvHw749U,1088
|
|
11
11
|
arbi/_response.py,sha256=YuaBc04B9DUJJE0ptEY4_9l_sEhDGdmfNEoow70cdRk,28776
|
|
12
|
-
arbi/_streaming.py,sha256=
|
|
12
|
+
arbi/_streaming.py,sha256=PQ0t5wkCGXMWx-iU6DL4A4rUpvEoRDoCFWdoi0a8ztI,10141
|
|
13
13
|
arbi/_types.py,sha256=IKFmwVOgZfk5sU6OHM_AmRlhGEEu2QZ7IRJwV2ujbXk,7234
|
|
14
|
-
arbi/_version.py,sha256=
|
|
14
|
+
arbi/_version.py,sha256=rSv0VePix4i_n3_Ffu54JcHqw1y8Vb73MVPowtuNsx0,156
|
|
15
15
|
arbi/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
16
16
|
arbi/_utils/__init__.py,sha256=7fch0GT9zpNnErbciSpUNa-SjTxxjY6kxHxKMOM4AGs,2305
|
|
17
17
|
arbi/_utils/_compat.py,sha256=D8gtAvjJQrDWt9upS0XaG9Rr5l1QhiAx_I_1utT_tt0,1195
|
|
@@ -27,31 +27,30 @@ arbi/_utils/_typing.py,sha256=N_5PPuFNsaygbtA_npZd98SVN1LQQvFTKL6bkWPBZGU,4786
|
|
|
27
27
|
arbi/_utils/_utils.py,sha256=lGwSOqZHxq9gLp6_tBjkzTDNoVpT_5-zMMp2Lar9VWA,12232
|
|
28
28
|
arbi/lib/.keep,sha256=wuNrz-5SXo3jJaJOJgz4vFHM41YH_g20F5cRQo0vLes,224
|
|
29
29
|
arbi/resources/__init__.py,sha256=Ks_RQk6zvKGqOl6H7gpnyW1FrSY8SVsrKGj4mcmQ61k,513
|
|
30
|
-
arbi/resources/api/__init__.py,sha256=
|
|
31
|
-
arbi/resources/api/api.py,sha256=
|
|
32
|
-
arbi/resources/api/assistant.py,sha256=
|
|
30
|
+
arbi/resources/api/__init__.py,sha256=0tAppKA5A0_dm3Eier8jtQQrZg56LCzPGZPwpXHTC0E,4243
|
|
31
|
+
arbi/resources/api/api.py,sha256=oX72NFlx6EKMxIAVd-jn7TFdVj2bYCtJnp9gJaAEcoo,13520
|
|
32
|
+
arbi/resources/api/assistant.py,sha256=mPw8Ba0O-veZs3R35I_VakYt9NE7UUQ-hjBuKRHBm0Q,11964
|
|
33
33
|
arbi/resources/api/configs.py,sha256=4OhzA18GUfVfprYMH11SrCm_FarHc-gvL4CuuSNVTHY,20836
|
|
34
34
|
arbi/resources/api/health.py,sha256=YoAisCoB4jP0mei-PZK7qaaOOH6Gv5zDaOIdnEzZZDc,17432
|
|
35
|
-
arbi/resources/api/
|
|
36
|
-
arbi/resources/api/
|
|
37
|
-
arbi/resources/api/workspace.py,sha256=XgDKxt8VcGln3fpLCjfdcPF3ZRcPuLAC0kMTg0iJwU4,43711
|
|
35
|
+
arbi/resources/api/tag.py,sha256=AvTcf4phAMPd0WIqMLigrLjRpnfrhMzMn1S052c2o78,24485
|
|
36
|
+
arbi/resources/api/workspace.py,sha256=Sb4nh2_jiMMMEckRuqJ_XY7MKzmQCdU3i1UZW8NlH8M,52310
|
|
38
37
|
arbi/resources/api/conversation/__init__.py,sha256=WQKtfAPfHwgtRJaTnZszRZmQ0caUcMcDv7EHhu1rf4U,1054
|
|
39
|
-
arbi/resources/api/conversation/conversation.py,sha256=
|
|
38
|
+
arbi/resources/api/conversation/conversation.py,sha256=tqrzRDl_EpYPJoY757gRm62B3wjH4hSosxLFF-8LCWg,26086
|
|
40
39
|
arbi/resources/api/conversation/user.py,sha256=SBvtd4XkpZyMpwVAh-MV_vKptE6YoGKoGohx5zH5WNw,10280
|
|
41
40
|
arbi/resources/api/document/__init__.py,sha256=3O8YXgjavyK-5v5Gyf9lFsnvOxKXcQUHfQ_i-c7KhSY,1080
|
|
42
|
-
arbi/resources/api/document/annotation.py,sha256=
|
|
43
|
-
arbi/resources/api/document/document.py,sha256=
|
|
41
|
+
arbi/resources/api/document/annotation.py,sha256=5Q7Kz3lFMmMHpvhfEeMCsCY6hpo6SlUlk9BoACi8MJo,15691
|
|
42
|
+
arbi/resources/api/document/document.py,sha256=KY8Vd7RJUHBHqndriB6JwSEJafSaTH4Hl-ncR5eaJi0,41322
|
|
44
43
|
arbi/resources/api/user/__init__.py,sha256=hmOPYjiZ4KjFv2MNjhz26s2BMBzvXGiXOGdwhTaG5BI,1002
|
|
45
44
|
arbi/resources/api/user/settings.py,sha256=8JKyYbDwds-R1b14yGcgyLdyH5dC9Gk_HJqQmSZBq48,10458
|
|
46
|
-
arbi/resources/api/user/user.py,sha256
|
|
45
|
+
arbi/resources/api/user/user.py,sha256=-4iWT5Vx8AMrJ-8OSglkQLTwlCPXCnAmZmGM87f_dlQ,33792
|
|
47
46
|
arbi/types/__init__.py,sha256=zOxql2OO_R5LGwkFLawHC6O_f57kidrnO9hwxyuquzE,341
|
|
48
47
|
arbi/types/chunk.py,sha256=J6LQxWxLDW9feXQZOiYNNSBKgwkzhXgf74DS_noHFLs,254
|
|
49
48
|
arbi/types/chunk_metadata.py,sha256=GHcVONko0WWfDAa6rvLHldxgxL2IWmI6NqKwXAJLgYQ,545
|
|
50
49
|
arbi/types/chunk_metadata_param.py,sha256=UwGaK35hTMRR-YKPivEpQtUorIAqu-I7did2HnOV4aE,629
|
|
51
50
|
arbi/types/chunk_param.py,sha256=YI77ArEd8KXaDXspgezw1h36xQhoCnb4iwX6Hws3nzU,368
|
|
52
|
-
arbi/types/api/__init__.py,sha256=
|
|
53
|
-
arbi/types/api/assistant_query_params.py,sha256=
|
|
54
|
-
arbi/types/api/assistant_retrieve_params.py,sha256=
|
|
51
|
+
arbi/types/api/__init__.py,sha256=61oGmmX2myX4if6xBa5fmDTQ9O9RlcDRQk0_T_H7kKg,7549
|
|
52
|
+
arbi/types/api/assistant_query_params.py,sha256=79A7eoMmZ4TKCEi7htw5jzvAEsNOc_ISYVwrF5ROA3Q,2098
|
|
53
|
+
arbi/types/api/assistant_retrieve_params.py,sha256=bwldUxI0arSHj5vx6ksFXzZcWFnRxdG5YqRh1ND7cKM,2104
|
|
55
54
|
arbi/types/api/chunker_config_param.py,sha256=hdYyEXCdR_g6DB_c0EuoH_73MocVOVaqwaV2Z5D_hCs,237
|
|
56
55
|
arbi/types/api/config_create_params.py,sha256=J-5mhrR6RXff5AdOn_gaNxL_HzbS9SQqw4DZLp0CphU,4462
|
|
57
56
|
arbi/types/api/config_create_response.py,sha256=BnoDpvdgYv0l3OQFCw2kz61pnXMsqkd8Lru57RF7jAM,301
|
|
@@ -60,7 +59,8 @@ arbi/types/api/config_get_versions_response.py,sha256=9zPsTDowITXN_zjK1dzCnUQK8o
|
|
|
60
59
|
arbi/types/api/config_retrieve_response.py,sha256=sRsOMZAToccJVZjhhUPzpyAT5Uv2y9NFlkcEfEGVki8,5736
|
|
61
60
|
arbi/types/api/conversation_delete_message_response.py,sha256=4te9sHh4cWMdUUR_79_LnwoV1tFOzg2TR50fw6ALgfY,285
|
|
62
61
|
arbi/types/api/conversation_delete_response.py,sha256=9qOWK2udruW1Emzp_0o_iSbPVhTi9qI3TNyvv8Mo9TA,271
|
|
63
|
-
arbi/types/api/
|
|
62
|
+
arbi/types/api/conversation_retrieve_message_response.py,sha256=V9MgMYY_Pe42EzaNzmKUh-YCKDjHDrJ9M-vmBDbEHV8,2342
|
|
63
|
+
arbi/types/api/conversation_retrieve_threads_response.py,sha256=TgzQZSC2FqTIcMlGBVmJVvDzDuRd7_y_QM9e1RnT1D0,2830
|
|
64
64
|
arbi/types/api/conversation_share_response.py,sha256=wm3-w5puCTF3nKV2Xbt0RYXwPWW9oHWnR2OPTdpGp44,269
|
|
65
65
|
arbi/types/api/conversation_update_title_params.py,sha256=G2o6v4B8iQn41YtZTZ0rKIRevStNED4JWwM7lN1BbIc,357
|
|
66
66
|
arbi/types/api/conversation_update_title_response.py,sha256=GHtttE9kyIjYhSa8D5bMLvfhvsjRvy4FEVPikG3x04Q,297
|
|
@@ -70,11 +70,11 @@ arbi/types/api/document_date_extractor_llm_config_param.py,sha256=_HiOJmarO5r7tJ
|
|
|
70
70
|
arbi/types/api/document_delete_response.py,sha256=G-xYnoYPqiy82dlueVoTVobcX7qu0Z5OnHRftvXtYsM,263
|
|
71
71
|
arbi/types/api/document_get_parsed_response.py,sha256=Ug91THKXOkvxZdiwKAmQEBSaaY4zfKX2kDqZa5jli-w,588
|
|
72
72
|
arbi/types/api/document_get_tags_response.py,sha256=HK-2gtqB7_SIQDJeYNTPSYesPbMyQScI0mOLVk3oEbI,304
|
|
73
|
-
arbi/types/api/document_update_params.py,sha256=
|
|
73
|
+
arbi/types/api/document_update_params.py,sha256=XPV2i5nF3ToEFg-p1BHmGZodzq4mdK7mFci9dg0tjlg,567
|
|
74
74
|
arbi/types/api/document_update_response.py,sha256=32tVCwearilpe3k230PqUITphqURuaXfWIL935mlE1E,418
|
|
75
|
-
arbi/types/api/document_upload_from_url_params.py,sha256=
|
|
76
|
-
arbi/types/api/document_upload_params.py,sha256=
|
|
77
|
-
arbi/types/api/document_view_params.py,sha256=
|
|
75
|
+
arbi/types/api/document_upload_from_url_params.py,sha256=ymD_sW-GAo56dVr7zbyCPjZBot__nwkkgQWXeENLRWg,749
|
|
76
|
+
arbi/types/api/document_upload_params.py,sha256=LM_p5ZuvmVw5J3XEgoEefgydE-8hXH9QIyp1VtRVxh0,746
|
|
77
|
+
arbi/types/api/document_view_params.py,sha256=lvPLrsNk7mo3ZIsjft-4t9U0sJwxOMvWc59rAE4tACI,460
|
|
78
78
|
arbi/types/api/embedder_config.py,sha256=bglJ7lPF5NMUmvw7_fUutQsRp8wL504ShVi33WJwuTs,1102
|
|
79
79
|
arbi/types/api/embedder_config_param.py,sha256=gTlvStClH1V0O0rdi7P8hSpHiMQuhfx1_snwxCPm3V8,1046
|
|
80
80
|
arbi/types/api/health_check_app_response.py,sha256=kdAwGU8T232HvavvbHHQyxgeR0aKSwI96dpqXB7DtGU,341
|
|
@@ -92,59 +92,61 @@ arbi/types/api/reranker_config.py,sha256=PJkomlrt6wYihqWcj7_oLgbdFY0ArFcRpU6m71X
|
|
|
92
92
|
arbi/types/api/reranker_config_param.py,sha256=eMFvnO972sio_O_gVFlmRhdmQWUWBbhpIkkhO3uVpaw,695
|
|
93
93
|
arbi/types/api/retriever_config.py,sha256=YHOLfj-uWQkHFwrfeClsPqwU40tTNXiWc_3U19yNKH4,920
|
|
94
94
|
arbi/types/api/retriever_config_param.py,sha256=0qBZZmA5phOZK0nDT6Ubv4t29mHzRDaMgsV7c7vUaTQ,919
|
|
95
|
-
arbi/types/api/sso_invite_params.py,sha256=2QVplrsXUZo7PTcsBaRarQI3ORM2PabsOAL4t1kVmEs,278
|
|
96
|
-
arbi/types/api/sso_invite_response.py,sha256=BK7ZdSoLHYMi1TiamLJWooI8WiDgi4cHk3avi4JjuAk,229
|
|
97
|
-
arbi/types/api/sso_login_params.py,sha256=8Q5-DU31_ppOQdkHdfq_PRO5c2C1gnx0HaBTy9vSXNg,359
|
|
98
|
-
arbi/types/api/sso_login_response.py,sha256=h9nObM2u4uEO3zIhPq87H4Kcy9D_Ir1Xft8-uxvBrbw,292
|
|
99
|
-
arbi/types/api/sso_rotate_passcode_response.py,sha256=OU5O6MeSe1mEunnTI0-J0ZdkqAkYCR2fMNC_ppTVBZs,246
|
|
100
95
|
arbi/types/api/tag_apply_to_docs_params.py,sha256=uBBrKObrpJ1-7mdBDYOo_zDwxtgGimvMJ1PIM2T3H-8,344
|
|
101
96
|
arbi/types/api/tag_apply_to_docs_response.py,sha256=TsxwW3pDclPASWe_k1Hze2r2q3Iem8gs_6-LT_UYE98,270
|
|
102
|
-
arbi/types/api/tag_create_params.py,sha256=
|
|
97
|
+
arbi/types/api/tag_create_params.py,sha256=dfJWDxN6cd4aYopu-Sb4t0LcR7ybYshXJrZIksfA7Xw,523
|
|
103
98
|
arbi/types/api/tag_create_response.py,sha256=WXsPBZc74s8qsvKMMOLjSD-YRCxwbHIWWv3nDKLl-eQ,224
|
|
104
99
|
arbi/types/api/tag_delete_response.py,sha256=uRvx0SqOe0ZGQwl8oRAZGe7zyWk6SqNL77ksAfIs7M8,207
|
|
105
100
|
arbi/types/api/tag_get_docs_response.py,sha256=jHs4iruSi_qTUpCKA7xmbbqU-Lo7FfSWqA8sC_vXBk0,294
|
|
106
101
|
arbi/types/api/tag_remove_from_docs_params.py,sha256=_uMA9WssCG2BdwPWxtC1iZJwyIoeUDAfTMS_oKXyQpg,350
|
|
107
102
|
arbi/types/api/tag_remove_from_docs_response.py,sha256=Mx1c34ChFjHK2fBzDkQeSjKm1C0y7qqfhiqPGq5wbwQ,284
|
|
108
|
-
arbi/types/api/tag_update_params.py,sha256=
|
|
103
|
+
arbi/types/api/tag_update_params.py,sha256=hRe27QNiuDUxMjeD730XTfHh2Z1ILKQv5FE_8zDmTtc,442
|
|
109
104
|
arbi/types/api/tag_update_response.py,sha256=JrAwUO5Gxq8OmiYruEnCIlXVb4gZmmMX0iSRANn4d4Q,320
|
|
110
105
|
arbi/types/api/title_llm_config.py,sha256=PXO4kMDbrvGGbOgCIOadvly1-r-mfWtqeYXL-pJH10s,1061
|
|
111
106
|
arbi/types/api/title_llm_config_param.py,sha256=4WG5AXMuSE6CKBxUwTXZZdzJDkzvBaTbqN2L8u_W4EU,1005
|
|
112
|
-
arbi/types/api/
|
|
107
|
+
arbi/types/api/user_change_password_params.py,sha256=7J9rClKJxAgbJS6jBS7sZkyiO4nEGv-_WrOqgTRVkp0,424
|
|
108
|
+
arbi/types/api/user_change_password_response.py,sha256=kSgwx-tEpC6PlMgaDddvIoePhifAjc0yPT-ViVarJIc,254
|
|
109
|
+
arbi/types/api/user_check_sso_status_params.py,sha256=ysjdlGGlKWN-EUv5nqZW9cMpnAR_wR_w_er-oYv7OfI,326
|
|
110
|
+
arbi/types/api/user_check_sso_status_response.py,sha256=kJtZEQqIU0C7DebZxSVqAY-rcN9Bj0kBcawxVYuzDIw,339
|
|
111
|
+
arbi/types/api/user_invite_params.py,sha256=7SxrXsDBNMpz8dGGmX3Bbnk7hxOw5Ra2eETCq6PY-xI,280
|
|
112
|
+
arbi/types/api/user_invite_response.py,sha256=EZIFGpA0tRzQ2pQHnxq1TQ1TSBSLU3rUdcP90NJPD10,209
|
|
113
113
|
arbi/types/api/user_list_workspaces_response.py,sha256=X0oscmn3j575hI61D9rRytgNWvdw066jkSrhNohP2iw,309
|
|
114
|
-
arbi/types/api/user_login_params.py,sha256=
|
|
114
|
+
arbi/types/api/user_login_params.py,sha256=Jku0kuZCm4q6xCAySJBmKONbSS_64k6PW8e6hj7Oo3E,367
|
|
115
|
+
arbi/types/api/user_login_response.py,sha256=RCIfI8outMQqC89qVbVBbmhSazX8xmw9lzOfEt0Hrr8,234
|
|
115
116
|
arbi/types/api/user_logout_response.py,sha256=osQbYps3A6UNKeIrbPRZcC9z1zgFv-wpVRicvAXbEGA,209
|
|
116
|
-
arbi/types/api/user_register_params.py,sha256=
|
|
117
|
-
arbi/types/api/user_response.py,sha256=QqeAfX3YBxj72gWYoyW7bPBQ8fbeaUu_WJOqtdQ1Ub0,388
|
|
117
|
+
arbi/types/api/user_register_params.py,sha256=sGPQIo6twb0-xd38FwBM0jomDnw56sa6yUz92Xl2XAc,442
|
|
118
118
|
arbi/types/api/user_verify_email_params.py,sha256=urUDkRA7aQL3xI7b-6ZDthexP-5uh0z1f3YpTCSiQ9o,290
|
|
119
119
|
arbi/types/api/user_verify_email_response.py,sha256=Z94jdaY-UEugVFq-pV9tuS6w_7h8J0ZWfZuWQwcn56I,219
|
|
120
|
+
arbi/types/api/workspace_copy_params.py,sha256=XrMYume8IDcSsrmHLoD66RyYe3APwlxnsxv98gE7Ggk,677
|
|
121
|
+
arbi/types/api/workspace_copy_response.py,sha256=XniNhythTHEBSIKBJmP9CjcrgWqVhY3YE8DZBJ5n4K8,496
|
|
120
122
|
arbi/types/api/workspace_create_protected_params.py,sha256=GEWI-KNn3kb35x-mcm90Hsaq45B_a5HporRZNTXDUok,388
|
|
121
123
|
arbi/types/api/workspace_delete_response.py,sha256=9a8IW_EpP-YkirjDnXomQBe-JkgBv6FfH-x_R1WYKhI,219
|
|
122
124
|
arbi/types/api/workspace_get_conversations_response.py,sha256=-zANZeLpmieOeaj29PoogwDagM0O74KOdRcAbZAjzvU,656
|
|
123
125
|
arbi/types/api/workspace_get_doctags_response.py,sha256=A1iXtPTjnhlo7WOadfDF6Fct6fmebztgQwKYhKiBHak,312
|
|
124
126
|
arbi/types/api/workspace_get_documents_response.py,sha256=Jugc3x-GMaBiP0xBev78uQXlXGLjgRI2y-XerSpBsT0,297
|
|
125
|
-
arbi/types/api/workspace_get_stats_response.py,sha256=
|
|
127
|
+
arbi/types/api/workspace_get_stats_response.py,sha256=yNIGwDcCu9X8keA3JEv2J1s0Uc9gMAMxEEz51OnzIoM,441
|
|
126
128
|
arbi/types/api/workspace_get_tags_response.py,sha256=cGX-wVpeZPrcJ05DmQOMjqOSU5vDEzmWWKRfyTvgz08,513
|
|
127
|
-
arbi/types/api/workspace_get_users_response.py,sha256=-
|
|
129
|
+
arbi/types/api/workspace_get_users_response.py,sha256=-8Gtb9WEuO4rUYZkYAXwyyukftGt7nCEu5_9-g-jwXw,458
|
|
128
130
|
arbi/types/api/workspace_remove_user_params.py,sha256=w5hOk29XiNAtgfe5wxdi9mfLWnwqpZg8FPTGhvIe0k8,304
|
|
129
131
|
arbi/types/api/workspace_remove_user_response.py,sha256=R6V0FWSqpL4OoZ4YbEQcohXU51Az4wQSDFYol3AfGCI,273
|
|
130
|
-
arbi/types/api/workspace_response.py,sha256=
|
|
131
|
-
arbi/types/api/workspace_share_params.py,sha256=
|
|
132
|
+
arbi/types/api/workspace_response.py,sha256=Bz4nSurLY5WQGY6u1Wv7_H8ibwlpQVL2AwEelShak8Q,867
|
|
133
|
+
arbi/types/api/workspace_share_params.py,sha256=GheVCcIXEfActMr7SiI2ZwMdIxJBPJ5x1swqqY5oZ4M,417
|
|
132
134
|
arbi/types/api/workspace_share_response.py,sha256=vO-CI3_ZQ75SqcnL80WDy9sHXogIKtS9HcxGHLDkvkY,387
|
|
133
|
-
arbi/types/api/workspace_update_params.py,sha256=
|
|
135
|
+
arbi/types/api/workspace_update_params.py,sha256=CqswSvA9zrC7NncTFYcLJjBMZs_Xmfk6cP_y8L8J_j4,489
|
|
134
136
|
arbi/types/api/conversation/__init__.py,sha256=jzfeVJd78d972p4eSzTZNWXY7EXR50kJ3e6pzDcG8d8,393
|
|
135
137
|
arbi/types/api/conversation/user_add_params.py,sha256=bzAIbyla6URUE6xkArzggJnv1sDFxCG1AzYiMKMlQ74,280
|
|
136
138
|
arbi/types/api/conversation/user_add_response.py,sha256=85ahGr81kC7sqLn0T1r-AYxgvER4gFki6YdhxTJ1pf0,250
|
|
137
139
|
arbi/types/api/conversation/user_remove_params.py,sha256=97uPdwbgNpPhij4ZdOxYM5pvayf9gbNAQiFK8v81wbw,286
|
|
138
140
|
arbi/types/api/conversation/user_remove_response.py,sha256=fWNQvo7H5ZrtYW_PObSaQEhHbojHrazeoLRgCpWdYbI,256
|
|
139
141
|
arbi/types/api/document/__init__.py,sha256=yxwyY0oCmARRhWdtIveKTkHCBdM3JOR0j2v4Rmw8pXw,453
|
|
140
|
-
arbi/types/api/document/annotation_create_params.py,sha256=
|
|
142
|
+
arbi/types/api/document/annotation_create_params.py,sha256=kM-dWgj1FYXqEJMI7uSvh8mIyV62DYiD_qkKBQpB__Q,487
|
|
141
143
|
arbi/types/api/document/annotation_delete_response.py,sha256=Wnu_PpHc_rKwpJEGVoCQMXXFUIDcZV6wsXmOZY8Xezk,269
|
|
142
|
-
arbi/types/api/document/annotation_update_params.py,sha256=
|
|
144
|
+
arbi/types/api/document/annotation_update_params.py,sha256=PwoZMhw9nl0JKL5uF8hcQ2B0tDu2A-hn6BJhKs_JxZ4,499
|
|
143
145
|
arbi/types/api/document/doc_tag_response.py,sha256=3gL_vh9MacHcL6n7XyTpWiuCcK1jC2JKug-c15eEZNU,458
|
|
144
146
|
arbi/types/api/user/__init__.py,sha256=b9vEjTKAmJh0n8S3HhlpX4qxnKy5XCv-YuiX84mZJOY,291
|
|
145
147
|
arbi/types/api/user/setting_retrieve_response.py,sha256=OUnFgGhjtvBS5dsXO7bgTNrfas16dX7G6wJGxz89f78,1417
|
|
146
148
|
arbi/types/api/user/setting_update_params.py,sha256=RkRpoaB_kWzHdT45-9PK39BDr6LU2C5X3ikfVmpyxt8,683
|
|
147
|
-
arbi-0.
|
|
148
|
-
arbi-0.
|
|
149
|
-
arbi-0.
|
|
150
|
-
arbi-0.
|
|
149
|
+
arbi-0.3.0.dist-info/METADATA,sha256=nMwQom4brSsd_FLyDjvqd2AzAErFAj0Flwjy29gSano,13252
|
|
150
|
+
arbi-0.3.0.dist-info/WHEEL,sha256=C2FUgwZgiLbznR-k0b_5k3Ai_1aASOXDss3lzCUsUug,87
|
|
151
|
+
arbi-0.3.0.dist-info/licenses/LICENSE,sha256=NdV0oP8MV-RCBufnchF66WBpOGG_tJCxGnK1wt1OkrQ,11334
|
|
152
|
+
arbi-0.3.0.dist-info/RECORD,,
|
arbi/resources/api/sso.py
DELETED
|
@@ -1,333 +0,0 @@
|
|
|
1
|
-
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
|
|
3
|
-
from __future__ import annotations
|
|
4
|
-
|
|
5
|
-
from typing import Optional
|
|
6
|
-
|
|
7
|
-
import httpx
|
|
8
|
-
|
|
9
|
-
from ..._types import Body, Omit, Query, Headers, NotGiven, omit, not_given
|
|
10
|
-
from ..._utils import maybe_transform, async_maybe_transform
|
|
11
|
-
from ..._compat import cached_property
|
|
12
|
-
from ..._resource import SyncAPIResource, AsyncAPIResource
|
|
13
|
-
from ..._response import (
|
|
14
|
-
to_raw_response_wrapper,
|
|
15
|
-
to_streamed_response_wrapper,
|
|
16
|
-
async_to_raw_response_wrapper,
|
|
17
|
-
async_to_streamed_response_wrapper,
|
|
18
|
-
)
|
|
19
|
-
from ...types.api import sso_login_params, sso_invite_params
|
|
20
|
-
from ..._base_client import make_request_options
|
|
21
|
-
from ...types.api.sso_login_response import SSOLoginResponse
|
|
22
|
-
from ...types.api.sso_invite_response import SSOInviteResponse
|
|
23
|
-
from ...types.api.sso_rotate_passcode_response import SSORotatePasscodeResponse
|
|
24
|
-
|
|
25
|
-
__all__ = ["SSOResource", "AsyncSSOResource"]
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
class SSOResource(SyncAPIResource):
|
|
29
|
-
@cached_property
|
|
30
|
-
def with_raw_response(self) -> SSOResourceWithRawResponse:
|
|
31
|
-
"""
|
|
32
|
-
This property can be used as a prefix for any HTTP method call to return
|
|
33
|
-
the raw response object instead of the parsed content.
|
|
34
|
-
|
|
35
|
-
For more information, see https://www.github.com/arbitrationcity/arbi-python#accessing-raw-response-data-eg-headers
|
|
36
|
-
"""
|
|
37
|
-
return SSOResourceWithRawResponse(self)
|
|
38
|
-
|
|
39
|
-
@cached_property
|
|
40
|
-
def with_streaming_response(self) -> SSOResourceWithStreamingResponse:
|
|
41
|
-
"""
|
|
42
|
-
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
|
|
43
|
-
|
|
44
|
-
For more information, see https://www.github.com/arbitrationcity/arbi-python#with_streaming_response
|
|
45
|
-
"""
|
|
46
|
-
return SSOResourceWithStreamingResponse(self)
|
|
47
|
-
|
|
48
|
-
def invite(
|
|
49
|
-
self,
|
|
50
|
-
*,
|
|
51
|
-
email: str,
|
|
52
|
-
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
53
|
-
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
54
|
-
extra_headers: Headers | None = None,
|
|
55
|
-
extra_query: Query | None = None,
|
|
56
|
-
extra_body: Body | None = None,
|
|
57
|
-
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
58
|
-
) -> SSOInviteResponse:
|
|
59
|
-
"""Invite a user to the deployment via email.
|
|
60
|
-
|
|
61
|
-
Creates a pre-registered user account
|
|
62
|
-
with blocked status and no sub field. The central server will send the user an
|
|
63
|
-
invitation email with a passcode.
|
|
64
|
-
|
|
65
|
-
Args:
|
|
66
|
-
extra_headers: Send extra headers
|
|
67
|
-
|
|
68
|
-
extra_query: Add additional query parameters to the request
|
|
69
|
-
|
|
70
|
-
extra_body: Add additional JSON properties to the request
|
|
71
|
-
|
|
72
|
-
timeout: Override the client-level default timeout for this request, in seconds
|
|
73
|
-
"""
|
|
74
|
-
return self._post(
|
|
75
|
-
"/api/sso/invite",
|
|
76
|
-
body=maybe_transform({"email": email}, sso_invite_params.SSOInviteParams),
|
|
77
|
-
options=make_request_options(
|
|
78
|
-
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
79
|
-
),
|
|
80
|
-
cast_to=SSOInviteResponse,
|
|
81
|
-
)
|
|
82
|
-
|
|
83
|
-
def login(
|
|
84
|
-
self,
|
|
85
|
-
*,
|
|
86
|
-
token: str,
|
|
87
|
-
email: str,
|
|
88
|
-
passcode: Optional[str] | Omit = omit,
|
|
89
|
-
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
90
|
-
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
91
|
-
extra_headers: Headers | None = None,
|
|
92
|
-
extra_query: Query | None = None,
|
|
93
|
-
extra_body: Body | None = None,
|
|
94
|
-
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
95
|
-
) -> SSOLoginResponse:
|
|
96
|
-
"""Handle SSO login with JWT token authentication.
|
|
97
|
-
|
|
98
|
-
Creates a new user account if
|
|
99
|
-
needed or validates existing user credentials.
|
|
100
|
-
|
|
101
|
-
Args:
|
|
102
|
-
extra_headers: Send extra headers
|
|
103
|
-
|
|
104
|
-
extra_query: Add additional query parameters to the request
|
|
105
|
-
|
|
106
|
-
extra_body: Add additional JSON properties to the request
|
|
107
|
-
|
|
108
|
-
timeout: Override the client-level default timeout for this request, in seconds
|
|
109
|
-
"""
|
|
110
|
-
return self._post(
|
|
111
|
-
"/api/sso/login",
|
|
112
|
-
body=maybe_transform(
|
|
113
|
-
{
|
|
114
|
-
"token": token,
|
|
115
|
-
"email": email,
|
|
116
|
-
"passcode": passcode,
|
|
117
|
-
},
|
|
118
|
-
sso_login_params.SSOLoginParams,
|
|
119
|
-
),
|
|
120
|
-
options=make_request_options(
|
|
121
|
-
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
122
|
-
),
|
|
123
|
-
cast_to=SSOLoginResponse,
|
|
124
|
-
)
|
|
125
|
-
|
|
126
|
-
def rotate_passcode(
|
|
127
|
-
self,
|
|
128
|
-
*,
|
|
129
|
-
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
130
|
-
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
131
|
-
extra_headers: Headers | None = None,
|
|
132
|
-
extra_query: Query | None = None,
|
|
133
|
-
extra_body: Body | None = None,
|
|
134
|
-
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
135
|
-
) -> SSORotatePasscodeResponse:
|
|
136
|
-
"""
|
|
137
|
-
Generate a new passcode for the current user.
|
|
138
|
-
|
|
139
|
-
This endpoint gets a new passcode from the central server and re-wraps the
|
|
140
|
-
user's private key with the new passcode. The user must be authenticated with a
|
|
141
|
-
valid token to use this endpoint.
|
|
142
|
-
"""
|
|
143
|
-
return self._post(
|
|
144
|
-
"/api/sso/rotate_passcode",
|
|
145
|
-
options=make_request_options(
|
|
146
|
-
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
147
|
-
),
|
|
148
|
-
cast_to=SSORotatePasscodeResponse,
|
|
149
|
-
)
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
class AsyncSSOResource(AsyncAPIResource):
|
|
153
|
-
@cached_property
|
|
154
|
-
def with_raw_response(self) -> AsyncSSOResourceWithRawResponse:
|
|
155
|
-
"""
|
|
156
|
-
This property can be used as a prefix for any HTTP method call to return
|
|
157
|
-
the raw response object instead of the parsed content.
|
|
158
|
-
|
|
159
|
-
For more information, see https://www.github.com/arbitrationcity/arbi-python#accessing-raw-response-data-eg-headers
|
|
160
|
-
"""
|
|
161
|
-
return AsyncSSOResourceWithRawResponse(self)
|
|
162
|
-
|
|
163
|
-
@cached_property
|
|
164
|
-
def with_streaming_response(self) -> AsyncSSOResourceWithStreamingResponse:
|
|
165
|
-
"""
|
|
166
|
-
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
|
|
167
|
-
|
|
168
|
-
For more information, see https://www.github.com/arbitrationcity/arbi-python#with_streaming_response
|
|
169
|
-
"""
|
|
170
|
-
return AsyncSSOResourceWithStreamingResponse(self)
|
|
171
|
-
|
|
172
|
-
async def invite(
|
|
173
|
-
self,
|
|
174
|
-
*,
|
|
175
|
-
email: str,
|
|
176
|
-
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
177
|
-
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
178
|
-
extra_headers: Headers | None = None,
|
|
179
|
-
extra_query: Query | None = None,
|
|
180
|
-
extra_body: Body | None = None,
|
|
181
|
-
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
182
|
-
) -> SSOInviteResponse:
|
|
183
|
-
"""Invite a user to the deployment via email.
|
|
184
|
-
|
|
185
|
-
Creates a pre-registered user account
|
|
186
|
-
with blocked status and no sub field. The central server will send the user an
|
|
187
|
-
invitation email with a passcode.
|
|
188
|
-
|
|
189
|
-
Args:
|
|
190
|
-
extra_headers: Send extra headers
|
|
191
|
-
|
|
192
|
-
extra_query: Add additional query parameters to the request
|
|
193
|
-
|
|
194
|
-
extra_body: Add additional JSON properties to the request
|
|
195
|
-
|
|
196
|
-
timeout: Override the client-level default timeout for this request, in seconds
|
|
197
|
-
"""
|
|
198
|
-
return await self._post(
|
|
199
|
-
"/api/sso/invite",
|
|
200
|
-
body=await async_maybe_transform({"email": email}, sso_invite_params.SSOInviteParams),
|
|
201
|
-
options=make_request_options(
|
|
202
|
-
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
203
|
-
),
|
|
204
|
-
cast_to=SSOInviteResponse,
|
|
205
|
-
)
|
|
206
|
-
|
|
207
|
-
async def login(
|
|
208
|
-
self,
|
|
209
|
-
*,
|
|
210
|
-
token: str,
|
|
211
|
-
email: str,
|
|
212
|
-
passcode: Optional[str] | Omit = omit,
|
|
213
|
-
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
214
|
-
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
215
|
-
extra_headers: Headers | None = None,
|
|
216
|
-
extra_query: Query | None = None,
|
|
217
|
-
extra_body: Body | None = None,
|
|
218
|
-
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
219
|
-
) -> SSOLoginResponse:
|
|
220
|
-
"""Handle SSO login with JWT token authentication.
|
|
221
|
-
|
|
222
|
-
Creates a new user account if
|
|
223
|
-
needed or validates existing user credentials.
|
|
224
|
-
|
|
225
|
-
Args:
|
|
226
|
-
extra_headers: Send extra headers
|
|
227
|
-
|
|
228
|
-
extra_query: Add additional query parameters to the request
|
|
229
|
-
|
|
230
|
-
extra_body: Add additional JSON properties to the request
|
|
231
|
-
|
|
232
|
-
timeout: Override the client-level default timeout for this request, in seconds
|
|
233
|
-
"""
|
|
234
|
-
return await self._post(
|
|
235
|
-
"/api/sso/login",
|
|
236
|
-
body=await async_maybe_transform(
|
|
237
|
-
{
|
|
238
|
-
"token": token,
|
|
239
|
-
"email": email,
|
|
240
|
-
"passcode": passcode,
|
|
241
|
-
},
|
|
242
|
-
sso_login_params.SSOLoginParams,
|
|
243
|
-
),
|
|
244
|
-
options=make_request_options(
|
|
245
|
-
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
246
|
-
),
|
|
247
|
-
cast_to=SSOLoginResponse,
|
|
248
|
-
)
|
|
249
|
-
|
|
250
|
-
async def rotate_passcode(
|
|
251
|
-
self,
|
|
252
|
-
*,
|
|
253
|
-
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
254
|
-
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
255
|
-
extra_headers: Headers | None = None,
|
|
256
|
-
extra_query: Query | None = None,
|
|
257
|
-
extra_body: Body | None = None,
|
|
258
|
-
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
259
|
-
) -> SSORotatePasscodeResponse:
|
|
260
|
-
"""
|
|
261
|
-
Generate a new passcode for the current user.
|
|
262
|
-
|
|
263
|
-
This endpoint gets a new passcode from the central server and re-wraps the
|
|
264
|
-
user's private key with the new passcode. The user must be authenticated with a
|
|
265
|
-
valid token to use this endpoint.
|
|
266
|
-
"""
|
|
267
|
-
return await self._post(
|
|
268
|
-
"/api/sso/rotate_passcode",
|
|
269
|
-
options=make_request_options(
|
|
270
|
-
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
271
|
-
),
|
|
272
|
-
cast_to=SSORotatePasscodeResponse,
|
|
273
|
-
)
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
class SSOResourceWithRawResponse:
|
|
277
|
-
def __init__(self, sso: SSOResource) -> None:
|
|
278
|
-
self._sso = sso
|
|
279
|
-
|
|
280
|
-
self.invite = to_raw_response_wrapper(
|
|
281
|
-
sso.invite,
|
|
282
|
-
)
|
|
283
|
-
self.login = to_raw_response_wrapper(
|
|
284
|
-
sso.login,
|
|
285
|
-
)
|
|
286
|
-
self.rotate_passcode = to_raw_response_wrapper(
|
|
287
|
-
sso.rotate_passcode,
|
|
288
|
-
)
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
class AsyncSSOResourceWithRawResponse:
|
|
292
|
-
def __init__(self, sso: AsyncSSOResource) -> None:
|
|
293
|
-
self._sso = sso
|
|
294
|
-
|
|
295
|
-
self.invite = async_to_raw_response_wrapper(
|
|
296
|
-
sso.invite,
|
|
297
|
-
)
|
|
298
|
-
self.login = async_to_raw_response_wrapper(
|
|
299
|
-
sso.login,
|
|
300
|
-
)
|
|
301
|
-
self.rotate_passcode = async_to_raw_response_wrapper(
|
|
302
|
-
sso.rotate_passcode,
|
|
303
|
-
)
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
class SSOResourceWithStreamingResponse:
|
|
307
|
-
def __init__(self, sso: SSOResource) -> None:
|
|
308
|
-
self._sso = sso
|
|
309
|
-
|
|
310
|
-
self.invite = to_streamed_response_wrapper(
|
|
311
|
-
sso.invite,
|
|
312
|
-
)
|
|
313
|
-
self.login = to_streamed_response_wrapper(
|
|
314
|
-
sso.login,
|
|
315
|
-
)
|
|
316
|
-
self.rotate_passcode = to_streamed_response_wrapper(
|
|
317
|
-
sso.rotate_passcode,
|
|
318
|
-
)
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
class AsyncSSOResourceWithStreamingResponse:
|
|
322
|
-
def __init__(self, sso: AsyncSSOResource) -> None:
|
|
323
|
-
self._sso = sso
|
|
324
|
-
|
|
325
|
-
self.invite = async_to_streamed_response_wrapper(
|
|
326
|
-
sso.invite,
|
|
327
|
-
)
|
|
328
|
-
self.login = async_to_streamed_response_wrapper(
|
|
329
|
-
sso.login,
|
|
330
|
-
)
|
|
331
|
-
self.rotate_passcode = async_to_streamed_response_wrapper(
|
|
332
|
-
sso.rotate_passcode,
|
|
333
|
-
)
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
|
|
3
|
-
from typing import Optional
|
|
4
|
-
|
|
5
|
-
from ..._models import BaseModel
|
|
6
|
-
|
|
7
|
-
__all__ = ["SSOLoginResponse"]
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
class SSOLoginResponse(BaseModel):
|
|
11
|
-
detail: str
|
|
12
|
-
|
|
13
|
-
user_ext_id: str
|
|
14
|
-
|
|
15
|
-
passcode: Optional[str] = None
|
arbi/types/api/token.py
DELETED
|
File without changes
|
|
File without changes
|