agenta 0.59.0__py3-none-any.whl → 0.59.2__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 agenta might be problematic. Click here for more details.
- agenta/client/backend/client.py +56 -48
- agenta/client/backend/organization/client.py +46 -34
- agenta/client/backend/organization/raw_client.py +32 -26
- agenta/client/backend/raw_client.py +26 -26
- agenta/client/client.py +102 -88
- {agenta-0.59.0.dist-info → agenta-0.59.2.dist-info}/METADATA +1 -1
- {agenta-0.59.0.dist-info → agenta-0.59.2.dist-info}/RECORD +8 -8
- {agenta-0.59.0.dist-info → agenta-0.59.2.dist-info}/WHEEL +0 -0
agenta/client/backend/client.py
CHANGED
|
@@ -98,13 +98,17 @@ class AgentaApi:
|
|
|
98
98
|
self._client_wrapper = SyncClientWrapper(
|
|
99
99
|
base_url=_get_base_url(base_url=base_url, environment=environment),
|
|
100
100
|
api_key=api_key,
|
|
101
|
-
httpx_client=
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
101
|
+
httpx_client=(
|
|
102
|
+
httpx_client
|
|
103
|
+
if httpx_client is not None
|
|
104
|
+
else (
|
|
105
|
+
httpx.Client(
|
|
106
|
+
timeout=_defaulted_timeout, follow_redirects=follow_redirects
|
|
107
|
+
)
|
|
108
|
+
if follow_redirects is not None
|
|
109
|
+
else httpx.Client(timeout=_defaulted_timeout)
|
|
110
|
+
)
|
|
111
|
+
),
|
|
108
112
|
timeout=_defaulted_timeout,
|
|
109
113
|
)
|
|
110
114
|
self._raw_client = RawAgentaApi(client_wrapper=self._client_wrapper)
|
|
@@ -172,7 +176,7 @@ class AgentaApi:
|
|
|
172
176
|
|
|
173
177
|
def update_organization(
|
|
174
178
|
self,
|
|
175
|
-
|
|
179
|
+
organization_id: str,
|
|
176
180
|
*,
|
|
177
181
|
name: typing.Optional[str] = OMIT,
|
|
178
182
|
description: typing.Optional[str] = OMIT,
|
|
@@ -182,7 +186,7 @@ class AgentaApi:
|
|
|
182
186
|
"""
|
|
183
187
|
Parameters
|
|
184
188
|
----------
|
|
185
|
-
|
|
189
|
+
organization_id : str
|
|
186
190
|
|
|
187
191
|
name : typing.Optional[str]
|
|
188
192
|
|
|
@@ -206,11 +210,11 @@ class AgentaApi:
|
|
|
206
210
|
api_key="YOUR_API_KEY",
|
|
207
211
|
)
|
|
208
212
|
client.update_organization(
|
|
209
|
-
|
|
213
|
+
organization_id="organization_id",
|
|
210
214
|
)
|
|
211
215
|
"""
|
|
212
216
|
_response = self._raw_client.update_organization(
|
|
213
|
-
|
|
217
|
+
organization_id,
|
|
214
218
|
name=name,
|
|
215
219
|
description=description,
|
|
216
220
|
updated_at=updated_at,
|
|
@@ -220,7 +224,7 @@ class AgentaApi:
|
|
|
220
224
|
|
|
221
225
|
def create_workspace(
|
|
222
226
|
self,
|
|
223
|
-
|
|
227
|
+
organization_id: str,
|
|
224
228
|
*,
|
|
225
229
|
name: str,
|
|
226
230
|
description: typing.Optional[str] = OMIT,
|
|
@@ -230,7 +234,7 @@ class AgentaApi:
|
|
|
230
234
|
"""
|
|
231
235
|
Parameters
|
|
232
236
|
----------
|
|
233
|
-
|
|
237
|
+
organization_id : str
|
|
234
238
|
|
|
235
239
|
name : str
|
|
236
240
|
|
|
@@ -254,12 +258,12 @@ class AgentaApi:
|
|
|
254
258
|
api_key="YOUR_API_KEY",
|
|
255
259
|
)
|
|
256
260
|
client.create_workspace(
|
|
257
|
-
|
|
261
|
+
organization_id="organization_id",
|
|
258
262
|
name="name",
|
|
259
263
|
)
|
|
260
264
|
"""
|
|
261
265
|
_response = self._raw_client.create_workspace(
|
|
262
|
-
|
|
266
|
+
organization_id,
|
|
263
267
|
name=name,
|
|
264
268
|
description=description,
|
|
265
269
|
type=type,
|
|
@@ -269,7 +273,7 @@ class AgentaApi:
|
|
|
269
273
|
|
|
270
274
|
def update_workspace(
|
|
271
275
|
self,
|
|
272
|
-
|
|
276
|
+
organization_id: str,
|
|
273
277
|
workspace_id: str,
|
|
274
278
|
*,
|
|
275
279
|
name: typing.Optional[str] = OMIT,
|
|
@@ -280,7 +284,7 @@ class AgentaApi:
|
|
|
280
284
|
"""
|
|
281
285
|
Parameters
|
|
282
286
|
----------
|
|
283
|
-
|
|
287
|
+
organization_id : str
|
|
284
288
|
|
|
285
289
|
workspace_id : str
|
|
286
290
|
|
|
@@ -306,12 +310,12 @@ class AgentaApi:
|
|
|
306
310
|
api_key="YOUR_API_KEY",
|
|
307
311
|
)
|
|
308
312
|
client.update_workspace(
|
|
309
|
-
|
|
313
|
+
organization_id="organization_id",
|
|
310
314
|
workspace_id="workspace_id",
|
|
311
315
|
)
|
|
312
316
|
"""
|
|
313
317
|
_response = self._raw_client.update_workspace(
|
|
314
|
-
|
|
318
|
+
organization_id,
|
|
315
319
|
workspace_id,
|
|
316
320
|
name=name,
|
|
317
321
|
description=description,
|
|
@@ -427,7 +431,7 @@ class AgentaApi:
|
|
|
427
431
|
workspace_id: str,
|
|
428
432
|
*,
|
|
429
433
|
email: str,
|
|
430
|
-
|
|
434
|
+
organization_id: str,
|
|
431
435
|
role: str,
|
|
432
436
|
request_options: typing.Optional[RequestOptions] = None,
|
|
433
437
|
) -> typing.Optional[typing.Any]:
|
|
@@ -437,7 +441,7 @@ class AgentaApi:
|
|
|
437
441
|
Args:
|
|
438
442
|
workspace_id (str): The ID of the workspace.
|
|
439
443
|
email (str): The email of the user to remove the role from.
|
|
440
|
-
|
|
444
|
+
organization_id (str): The ID of the organization.
|
|
441
445
|
role (str): The role to remove from the user.
|
|
442
446
|
request (Request): The FastAPI request object.
|
|
443
447
|
|
|
@@ -454,7 +458,7 @@ class AgentaApi:
|
|
|
454
458
|
|
|
455
459
|
email : str
|
|
456
460
|
|
|
457
|
-
|
|
461
|
+
organization_id : str
|
|
458
462
|
|
|
459
463
|
role : str
|
|
460
464
|
|
|
@@ -476,14 +480,14 @@ class AgentaApi:
|
|
|
476
480
|
client.unassign_role_from_user(
|
|
477
481
|
workspace_id="workspace_id",
|
|
478
482
|
email="email",
|
|
479
|
-
|
|
483
|
+
organization_id="organization_id",
|
|
480
484
|
role="role",
|
|
481
485
|
)
|
|
482
486
|
"""
|
|
483
487
|
_response = self._raw_client.unassign_role_from_user(
|
|
484
488
|
workspace_id,
|
|
485
489
|
email=email,
|
|
486
|
-
|
|
490
|
+
organization_id=organization_id,
|
|
487
491
|
role=role,
|
|
488
492
|
request_options=request_options,
|
|
489
493
|
)
|
|
@@ -657,13 +661,17 @@ class AsyncAgentaApi:
|
|
|
657
661
|
self._client_wrapper = AsyncClientWrapper(
|
|
658
662
|
base_url=_get_base_url(base_url=base_url, environment=environment),
|
|
659
663
|
api_key=api_key,
|
|
660
|
-
httpx_client=
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
664
|
+
httpx_client=(
|
|
665
|
+
httpx_client
|
|
666
|
+
if httpx_client is not None
|
|
667
|
+
else (
|
|
668
|
+
httpx.AsyncClient(
|
|
669
|
+
timeout=_defaulted_timeout, follow_redirects=follow_redirects
|
|
670
|
+
)
|
|
671
|
+
if follow_redirects is not None
|
|
672
|
+
else httpx.AsyncClient(timeout=_defaulted_timeout)
|
|
673
|
+
)
|
|
674
|
+
),
|
|
667
675
|
timeout=_defaulted_timeout,
|
|
668
676
|
)
|
|
669
677
|
self._raw_client = AsyncRawAgentaApi(client_wrapper=self._client_wrapper)
|
|
@@ -743,7 +751,7 @@ class AsyncAgentaApi:
|
|
|
743
751
|
|
|
744
752
|
async def update_organization(
|
|
745
753
|
self,
|
|
746
|
-
|
|
754
|
+
organization_id: str,
|
|
747
755
|
*,
|
|
748
756
|
name: typing.Optional[str] = OMIT,
|
|
749
757
|
description: typing.Optional[str] = OMIT,
|
|
@@ -753,7 +761,7 @@ class AsyncAgentaApi:
|
|
|
753
761
|
"""
|
|
754
762
|
Parameters
|
|
755
763
|
----------
|
|
756
|
-
|
|
764
|
+
organization_id : str
|
|
757
765
|
|
|
758
766
|
name : typing.Optional[str]
|
|
759
767
|
|
|
@@ -782,14 +790,14 @@ class AsyncAgentaApi:
|
|
|
782
790
|
|
|
783
791
|
async def main() -> None:
|
|
784
792
|
await client.update_organization(
|
|
785
|
-
|
|
793
|
+
organization_id="organization_id",
|
|
786
794
|
)
|
|
787
795
|
|
|
788
796
|
|
|
789
797
|
asyncio.run(main())
|
|
790
798
|
"""
|
|
791
799
|
_response = await self._raw_client.update_organization(
|
|
792
|
-
|
|
800
|
+
organization_id,
|
|
793
801
|
name=name,
|
|
794
802
|
description=description,
|
|
795
803
|
updated_at=updated_at,
|
|
@@ -799,7 +807,7 @@ class AsyncAgentaApi:
|
|
|
799
807
|
|
|
800
808
|
async def create_workspace(
|
|
801
809
|
self,
|
|
802
|
-
|
|
810
|
+
organization_id: str,
|
|
803
811
|
*,
|
|
804
812
|
name: str,
|
|
805
813
|
description: typing.Optional[str] = OMIT,
|
|
@@ -809,7 +817,7 @@ class AsyncAgentaApi:
|
|
|
809
817
|
"""
|
|
810
818
|
Parameters
|
|
811
819
|
----------
|
|
812
|
-
|
|
820
|
+
organization_id : str
|
|
813
821
|
|
|
814
822
|
name : str
|
|
815
823
|
|
|
@@ -838,7 +846,7 @@ class AsyncAgentaApi:
|
|
|
838
846
|
|
|
839
847
|
async def main() -> None:
|
|
840
848
|
await client.create_workspace(
|
|
841
|
-
|
|
849
|
+
organization_id="organization_id",
|
|
842
850
|
name="name",
|
|
843
851
|
)
|
|
844
852
|
|
|
@@ -846,7 +854,7 @@ class AsyncAgentaApi:
|
|
|
846
854
|
asyncio.run(main())
|
|
847
855
|
"""
|
|
848
856
|
_response = await self._raw_client.create_workspace(
|
|
849
|
-
|
|
857
|
+
organization_id,
|
|
850
858
|
name=name,
|
|
851
859
|
description=description,
|
|
852
860
|
type=type,
|
|
@@ -856,7 +864,7 @@ class AsyncAgentaApi:
|
|
|
856
864
|
|
|
857
865
|
async def update_workspace(
|
|
858
866
|
self,
|
|
859
|
-
|
|
867
|
+
organization_id: str,
|
|
860
868
|
workspace_id: str,
|
|
861
869
|
*,
|
|
862
870
|
name: typing.Optional[str] = OMIT,
|
|
@@ -867,7 +875,7 @@ class AsyncAgentaApi:
|
|
|
867
875
|
"""
|
|
868
876
|
Parameters
|
|
869
877
|
----------
|
|
870
|
-
|
|
878
|
+
organization_id : str
|
|
871
879
|
|
|
872
880
|
workspace_id : str
|
|
873
881
|
|
|
@@ -898,7 +906,7 @@ class AsyncAgentaApi:
|
|
|
898
906
|
|
|
899
907
|
async def main() -> None:
|
|
900
908
|
await client.update_workspace(
|
|
901
|
-
|
|
909
|
+
organization_id="organization_id",
|
|
902
910
|
workspace_id="workspace_id",
|
|
903
911
|
)
|
|
904
912
|
|
|
@@ -906,7 +914,7 @@ class AsyncAgentaApi:
|
|
|
906
914
|
asyncio.run(main())
|
|
907
915
|
"""
|
|
908
916
|
_response = await self._raw_client.update_workspace(
|
|
909
|
-
|
|
917
|
+
organization_id,
|
|
910
918
|
workspace_id,
|
|
911
919
|
name=name,
|
|
912
920
|
description=description,
|
|
@@ -1038,7 +1046,7 @@ class AsyncAgentaApi:
|
|
|
1038
1046
|
workspace_id: str,
|
|
1039
1047
|
*,
|
|
1040
1048
|
email: str,
|
|
1041
|
-
|
|
1049
|
+
organization_id: str,
|
|
1042
1050
|
role: str,
|
|
1043
1051
|
request_options: typing.Optional[RequestOptions] = None,
|
|
1044
1052
|
) -> typing.Optional[typing.Any]:
|
|
@@ -1048,7 +1056,7 @@ class AsyncAgentaApi:
|
|
|
1048
1056
|
Args:
|
|
1049
1057
|
workspace_id (str): The ID of the workspace.
|
|
1050
1058
|
email (str): The email of the user to remove the role from.
|
|
1051
|
-
|
|
1059
|
+
organization_id (str): The ID of the organization.
|
|
1052
1060
|
role (str): The role to remove from the user.
|
|
1053
1061
|
request (Request): The FastAPI request object.
|
|
1054
1062
|
|
|
@@ -1065,7 +1073,7 @@ class AsyncAgentaApi:
|
|
|
1065
1073
|
|
|
1066
1074
|
email : str
|
|
1067
1075
|
|
|
1068
|
-
|
|
1076
|
+
organization_id : str
|
|
1069
1077
|
|
|
1070
1078
|
role : str
|
|
1071
1079
|
|
|
@@ -1092,7 +1100,7 @@ class AsyncAgentaApi:
|
|
|
1092
1100
|
await client.unassign_role_from_user(
|
|
1093
1101
|
workspace_id="workspace_id",
|
|
1094
1102
|
email="email",
|
|
1095
|
-
|
|
1103
|
+
organization_id="organization_id",
|
|
1096
1104
|
role="role",
|
|
1097
1105
|
)
|
|
1098
1106
|
|
|
@@ -1102,7 +1110,7 @@ class AsyncAgentaApi:
|
|
|
1102
1110
|
_response = await self._raw_client.unassign_role_from_user(
|
|
1103
1111
|
workspace_id,
|
|
1104
1112
|
email=email,
|
|
1105
|
-
|
|
1113
|
+
organization_id=organization_id,
|
|
1106
1114
|
role=role,
|
|
1107
1115
|
request_options=request_options,
|
|
1108
1116
|
)
|
|
@@ -29,14 +29,17 @@ class OrganizationClient:
|
|
|
29
29
|
return self._raw_client
|
|
30
30
|
|
|
31
31
|
def fetch_organization_details(
|
|
32
|
-
self,
|
|
32
|
+
self,
|
|
33
|
+
organization_id: str,
|
|
34
|
+
*,
|
|
35
|
+
request_options: typing.Optional[RequestOptions] = None,
|
|
33
36
|
) -> OrganizationDetails:
|
|
34
37
|
"""
|
|
35
38
|
Return the details of the organization.
|
|
36
39
|
|
|
37
40
|
Parameters
|
|
38
41
|
----------
|
|
39
|
-
|
|
42
|
+
organization_id : str
|
|
40
43
|
|
|
41
44
|
request_options : typing.Optional[RequestOptions]
|
|
42
45
|
Request-specific configuration.
|
|
@@ -54,11 +57,11 @@ class OrganizationClient:
|
|
|
54
57
|
api_key="YOUR_API_KEY",
|
|
55
58
|
)
|
|
56
59
|
client.organization.fetch_organization_details(
|
|
57
|
-
|
|
60
|
+
organization_id="organization_id",
|
|
58
61
|
)
|
|
59
62
|
"""
|
|
60
63
|
_response = self._raw_client.fetch_organization_details(
|
|
61
|
-
|
|
64
|
+
organization_id, request_options=request_options
|
|
62
65
|
)
|
|
63
66
|
return _response.data
|
|
64
67
|
|
|
@@ -98,7 +101,7 @@ class OrganizationClient:
|
|
|
98
101
|
|
|
99
102
|
def invite_user_to_workspace(
|
|
100
103
|
self,
|
|
101
|
-
|
|
104
|
+
organization_id: str,
|
|
102
105
|
workspace_id: str,
|
|
103
106
|
*,
|
|
104
107
|
request: typing.Sequence[InviteRequest],
|
|
@@ -108,7 +111,7 @@ class OrganizationClient:
|
|
|
108
111
|
Assigns a role to a user in an organization.
|
|
109
112
|
|
|
110
113
|
Args:
|
|
111
|
-
|
|
114
|
+
organization_id (str): The ID of the organization.
|
|
112
115
|
payload (InviteRequest): The payload containing the organization id, user email, and role to assign.
|
|
113
116
|
workspace_id (str): The ID of the workspace.
|
|
114
117
|
|
|
@@ -121,7 +124,7 @@ class OrganizationClient:
|
|
|
121
124
|
|
|
122
125
|
Parameters
|
|
123
126
|
----------
|
|
124
|
-
|
|
127
|
+
organization_id : str
|
|
125
128
|
|
|
126
129
|
workspace_id : str
|
|
127
130
|
|
|
@@ -143,7 +146,7 @@ class OrganizationClient:
|
|
|
143
146
|
api_key="YOUR_API_KEY",
|
|
144
147
|
)
|
|
145
148
|
client.organization.invite_user_to_workspace(
|
|
146
|
-
|
|
149
|
+
organization_id="organization_id",
|
|
147
150
|
workspace_id="workspace_id",
|
|
148
151
|
request=[
|
|
149
152
|
InviteRequest(
|
|
@@ -153,13 +156,16 @@ class OrganizationClient:
|
|
|
153
156
|
)
|
|
154
157
|
"""
|
|
155
158
|
_response = self._raw_client.invite_user_to_workspace(
|
|
156
|
-
|
|
159
|
+
organization_id,
|
|
160
|
+
workspace_id,
|
|
161
|
+
request=request,
|
|
162
|
+
request_options=request_options,
|
|
157
163
|
)
|
|
158
164
|
return _response.data
|
|
159
165
|
|
|
160
166
|
def resend_invitation(
|
|
161
167
|
self,
|
|
162
|
-
|
|
168
|
+
organization_id: str,
|
|
163
169
|
workspace_id: str,
|
|
164
170
|
*,
|
|
165
171
|
email: str,
|
|
@@ -178,7 +184,7 @@ class OrganizationClient:
|
|
|
178
184
|
|
|
179
185
|
Parameters
|
|
180
186
|
----------
|
|
181
|
-
|
|
187
|
+
organization_id : str
|
|
182
188
|
|
|
183
189
|
workspace_id : str
|
|
184
190
|
|
|
@@ -200,19 +206,19 @@ class OrganizationClient:
|
|
|
200
206
|
api_key="YOUR_API_KEY",
|
|
201
207
|
)
|
|
202
208
|
client.organization.resend_invitation(
|
|
203
|
-
|
|
209
|
+
organization_id="organization_id",
|
|
204
210
|
workspace_id="workspace_id",
|
|
205
211
|
email="email",
|
|
206
212
|
)
|
|
207
213
|
"""
|
|
208
214
|
_response = self._raw_client.resend_invitation(
|
|
209
|
-
|
|
215
|
+
organization_id, workspace_id, email=email, request_options=request_options
|
|
210
216
|
)
|
|
211
217
|
return _response.data
|
|
212
218
|
|
|
213
219
|
def accept_invitation(
|
|
214
220
|
self,
|
|
215
|
-
|
|
221
|
+
organization_id: str,
|
|
216
222
|
workspace_id: str,
|
|
217
223
|
*,
|
|
218
224
|
project_id: str,
|
|
@@ -233,7 +239,7 @@ class OrganizationClient:
|
|
|
233
239
|
|
|
234
240
|
Parameters
|
|
235
241
|
----------
|
|
236
|
-
|
|
242
|
+
organization_id : str
|
|
237
243
|
|
|
238
244
|
workspace_id : str
|
|
239
245
|
|
|
@@ -259,7 +265,7 @@ class OrganizationClient:
|
|
|
259
265
|
api_key="YOUR_API_KEY",
|
|
260
266
|
)
|
|
261
267
|
client.organization.accept_invitation(
|
|
262
|
-
|
|
268
|
+
organization_id="organization_id",
|
|
263
269
|
workspace_id="workspace_id",
|
|
264
270
|
project_id="project_id",
|
|
265
271
|
token="token",
|
|
@@ -267,7 +273,7 @@ class OrganizationClient:
|
|
|
267
273
|
)
|
|
268
274
|
"""
|
|
269
275
|
_response = self._raw_client.accept_invitation(
|
|
270
|
-
|
|
276
|
+
organization_id,
|
|
271
277
|
workspace_id,
|
|
272
278
|
project_id=project_id,
|
|
273
279
|
token=token,
|
|
@@ -293,14 +299,17 @@ class AsyncOrganizationClient:
|
|
|
293
299
|
return self._raw_client
|
|
294
300
|
|
|
295
301
|
async def fetch_organization_details(
|
|
296
|
-
self,
|
|
302
|
+
self,
|
|
303
|
+
organization_id: str,
|
|
304
|
+
*,
|
|
305
|
+
request_options: typing.Optional[RequestOptions] = None,
|
|
297
306
|
) -> OrganizationDetails:
|
|
298
307
|
"""
|
|
299
308
|
Return the details of the organization.
|
|
300
309
|
|
|
301
310
|
Parameters
|
|
302
311
|
----------
|
|
303
|
-
|
|
312
|
+
organization_id : str
|
|
304
313
|
|
|
305
314
|
request_options : typing.Optional[RequestOptions]
|
|
306
315
|
Request-specific configuration.
|
|
@@ -323,14 +332,14 @@ class AsyncOrganizationClient:
|
|
|
323
332
|
|
|
324
333
|
async def main() -> None:
|
|
325
334
|
await client.organization.fetch_organization_details(
|
|
326
|
-
|
|
335
|
+
organization_id="organization_id",
|
|
327
336
|
)
|
|
328
337
|
|
|
329
338
|
|
|
330
339
|
asyncio.run(main())
|
|
331
340
|
"""
|
|
332
341
|
_response = await self._raw_client.fetch_organization_details(
|
|
333
|
-
|
|
342
|
+
organization_id, request_options=request_options
|
|
334
343
|
)
|
|
335
344
|
return _response.data
|
|
336
345
|
|
|
@@ -380,7 +389,7 @@ class AsyncOrganizationClient:
|
|
|
380
389
|
|
|
381
390
|
async def invite_user_to_workspace(
|
|
382
391
|
self,
|
|
383
|
-
|
|
392
|
+
organization_id: str,
|
|
384
393
|
workspace_id: str,
|
|
385
394
|
*,
|
|
386
395
|
request: typing.Sequence[InviteRequest],
|
|
@@ -390,7 +399,7 @@ class AsyncOrganizationClient:
|
|
|
390
399
|
Assigns a role to a user in an organization.
|
|
391
400
|
|
|
392
401
|
Args:
|
|
393
|
-
|
|
402
|
+
organization_id (str): The ID of the organization.
|
|
394
403
|
payload (InviteRequest): The payload containing the organization id, user email, and role to assign.
|
|
395
404
|
workspace_id (str): The ID of the workspace.
|
|
396
405
|
|
|
@@ -403,7 +412,7 @@ class AsyncOrganizationClient:
|
|
|
403
412
|
|
|
404
413
|
Parameters
|
|
405
414
|
----------
|
|
406
|
-
|
|
415
|
+
organization_id : str
|
|
407
416
|
|
|
408
417
|
workspace_id : str
|
|
409
418
|
|
|
@@ -430,7 +439,7 @@ class AsyncOrganizationClient:
|
|
|
430
439
|
|
|
431
440
|
async def main() -> None:
|
|
432
441
|
await client.organization.invite_user_to_workspace(
|
|
433
|
-
|
|
442
|
+
organization_id="organization_id",
|
|
434
443
|
workspace_id="workspace_id",
|
|
435
444
|
request=[
|
|
436
445
|
InviteRequest(
|
|
@@ -443,13 +452,16 @@ class AsyncOrganizationClient:
|
|
|
443
452
|
asyncio.run(main())
|
|
444
453
|
"""
|
|
445
454
|
_response = await self._raw_client.invite_user_to_workspace(
|
|
446
|
-
|
|
455
|
+
organization_id,
|
|
456
|
+
workspace_id,
|
|
457
|
+
request=request,
|
|
458
|
+
request_options=request_options,
|
|
447
459
|
)
|
|
448
460
|
return _response.data
|
|
449
461
|
|
|
450
462
|
async def resend_invitation(
|
|
451
463
|
self,
|
|
452
|
-
|
|
464
|
+
organization_id: str,
|
|
453
465
|
workspace_id: str,
|
|
454
466
|
*,
|
|
455
467
|
email: str,
|
|
@@ -468,7 +480,7 @@ class AsyncOrganizationClient:
|
|
|
468
480
|
|
|
469
481
|
Parameters
|
|
470
482
|
----------
|
|
471
|
-
|
|
483
|
+
organization_id : str
|
|
472
484
|
|
|
473
485
|
workspace_id : str
|
|
474
486
|
|
|
@@ -495,7 +507,7 @@ class AsyncOrganizationClient:
|
|
|
495
507
|
|
|
496
508
|
async def main() -> None:
|
|
497
509
|
await client.organization.resend_invitation(
|
|
498
|
-
|
|
510
|
+
organization_id="organization_id",
|
|
499
511
|
workspace_id="workspace_id",
|
|
500
512
|
email="email",
|
|
501
513
|
)
|
|
@@ -504,13 +516,13 @@ class AsyncOrganizationClient:
|
|
|
504
516
|
asyncio.run(main())
|
|
505
517
|
"""
|
|
506
518
|
_response = await self._raw_client.resend_invitation(
|
|
507
|
-
|
|
519
|
+
organization_id, workspace_id, email=email, request_options=request_options
|
|
508
520
|
)
|
|
509
521
|
return _response.data
|
|
510
522
|
|
|
511
523
|
async def accept_invitation(
|
|
512
524
|
self,
|
|
513
|
-
|
|
525
|
+
organization_id: str,
|
|
514
526
|
workspace_id: str,
|
|
515
527
|
*,
|
|
516
528
|
project_id: str,
|
|
@@ -531,7 +543,7 @@ class AsyncOrganizationClient:
|
|
|
531
543
|
|
|
532
544
|
Parameters
|
|
533
545
|
----------
|
|
534
|
-
|
|
546
|
+
organization_id : str
|
|
535
547
|
|
|
536
548
|
workspace_id : str
|
|
537
549
|
|
|
@@ -562,7 +574,7 @@ class AsyncOrganizationClient:
|
|
|
562
574
|
|
|
563
575
|
async def main() -> None:
|
|
564
576
|
await client.organization.accept_invitation(
|
|
565
|
-
|
|
577
|
+
organization_id="organization_id",
|
|
566
578
|
workspace_id="workspace_id",
|
|
567
579
|
project_id="project_id",
|
|
568
580
|
token="token",
|
|
@@ -573,7 +585,7 @@ class AsyncOrganizationClient:
|
|
|
573
585
|
asyncio.run(main())
|
|
574
586
|
"""
|
|
575
587
|
_response = await self._raw_client.accept_invitation(
|
|
576
|
-
|
|
588
|
+
organization_id,
|
|
577
589
|
workspace_id,
|
|
578
590
|
project_id=project_id,
|
|
579
591
|
token=token,
|