agenta 0.58.0__py3-none-any.whl → 0.59.1__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.

@@ -25,14 +25,17 @@ class RawOrganizationClient:
25
25
  self._client_wrapper = client_wrapper
26
26
 
27
27
  def fetch_organization_details(
28
- self, org_id: str, *, request_options: typing.Optional[RequestOptions] = None
28
+ self,
29
+ organization_id: str,
30
+ *,
31
+ request_options: typing.Optional[RequestOptions] = None,
29
32
  ) -> HttpResponse[OrganizationDetails]:
30
33
  """
31
34
  Return the details of the organization.
32
35
 
33
36
  Parameters
34
37
  ----------
35
- org_id : str
38
+ organization_id : str
36
39
 
37
40
  request_options : typing.Optional[RequestOptions]
38
41
  Request-specific configuration.
@@ -43,7 +46,7 @@ class RawOrganizationClient:
43
46
  Successful Response
44
47
  """
45
48
  _response = self._client_wrapper.httpx_client.request(
46
- f"organizations/{jsonable_encoder(org_id)}",
49
+ f"organizations/{jsonable_encoder(organization_id)}",
47
50
  method="GET",
48
51
  request_options=request_options,
49
52
  )
@@ -133,7 +136,7 @@ class RawOrganizationClient:
133
136
 
134
137
  def invite_user_to_workspace(
135
138
  self,
136
- org_id: str,
139
+ organization_id: str,
137
140
  workspace_id: str,
138
141
  *,
139
142
  request: typing.Sequence[InviteRequest],
@@ -143,7 +146,7 @@ class RawOrganizationClient:
143
146
  Assigns a role to a user in an organization.
144
147
 
145
148
  Args:
146
- org_id (str): The ID of the organization.
149
+ organization_id (str): The ID of the organization.
147
150
  payload (InviteRequest): The payload containing the organization id, user email, and role to assign.
148
151
  workspace_id (str): The ID of the workspace.
149
152
 
@@ -156,7 +159,7 @@ class RawOrganizationClient:
156
159
 
157
160
  Parameters
158
161
  ----------
159
- org_id : str
162
+ organization_id : str
160
163
 
161
164
  workspace_id : str
162
165
 
@@ -171,7 +174,7 @@ class RawOrganizationClient:
171
174
  Successful Response
172
175
  """
173
176
  _response = self._client_wrapper.httpx_client.request(
174
- f"organizations/{jsonable_encoder(org_id)}/workspaces/{jsonable_encoder(workspace_id)}/invite",
177
+ f"organizations/{jsonable_encoder(organization_id)}/workspaces/{jsonable_encoder(workspace_id)}/invite",
175
178
  method="POST",
176
179
  json=convert_and_respect_annotation_metadata(
177
180
  object_=request,
@@ -222,7 +225,7 @@ class RawOrganizationClient:
222
225
 
223
226
  def resend_invitation(
224
227
  self,
225
- org_id: str,
228
+ organization_id: str,
226
229
  workspace_id: str,
227
230
  *,
228
231
  email: str,
@@ -241,7 +244,7 @@ class RawOrganizationClient:
241
244
 
242
245
  Parameters
243
246
  ----------
244
- org_id : str
247
+ organization_id : str
245
248
 
246
249
  workspace_id : str
247
250
 
@@ -256,7 +259,7 @@ class RawOrganizationClient:
256
259
  Successful Response
257
260
  """
258
261
  _response = self._client_wrapper.httpx_client.request(
259
- f"organizations/{jsonable_encoder(org_id)}/workspaces/{jsonable_encoder(workspace_id)}/invite/resend",
262
+ f"organizations/{jsonable_encoder(organization_id)}/workspaces/{jsonable_encoder(workspace_id)}/invite/resend",
260
263
  method="POST",
261
264
  json={
262
265
  "email": email,
@@ -305,7 +308,7 @@ class RawOrganizationClient:
305
308
 
306
309
  def accept_invitation(
307
310
  self,
308
- org_id: str,
311
+ organization_id: str,
309
312
  workspace_id: str,
310
313
  *,
311
314
  project_id: str,
@@ -326,7 +329,7 @@ class RawOrganizationClient:
326
329
 
327
330
  Parameters
328
331
  ----------
329
- org_id : str
332
+ organization_id : str
330
333
 
331
334
  workspace_id : str
332
335
 
@@ -345,7 +348,7 @@ class RawOrganizationClient:
345
348
  Successful Response
346
349
  """
347
350
  _response = self._client_wrapper.httpx_client.request(
348
- f"organizations/{jsonable_encoder(org_id)}/workspaces/{jsonable_encoder(workspace_id)}/invite/accept",
351
+ f"organizations/{jsonable_encoder(organization_id)}/workspaces/{jsonable_encoder(workspace_id)}/invite/accept",
349
352
  method="POST",
350
353
  params={
351
354
  "project_id": project_id,
@@ -402,14 +405,17 @@ class AsyncRawOrganizationClient:
402
405
  self._client_wrapper = client_wrapper
403
406
 
404
407
  async def fetch_organization_details(
405
- self, org_id: str, *, request_options: typing.Optional[RequestOptions] = None
408
+ self,
409
+ organization_id: str,
410
+ *,
411
+ request_options: typing.Optional[RequestOptions] = None,
406
412
  ) -> AsyncHttpResponse[OrganizationDetails]:
407
413
  """
408
414
  Return the details of the organization.
409
415
 
410
416
  Parameters
411
417
  ----------
412
- org_id : str
418
+ organization_id : str
413
419
 
414
420
  request_options : typing.Optional[RequestOptions]
415
421
  Request-specific configuration.
@@ -420,7 +426,7 @@ class AsyncRawOrganizationClient:
420
426
  Successful Response
421
427
  """
422
428
  _response = await self._client_wrapper.httpx_client.request(
423
- f"organizations/{jsonable_encoder(org_id)}",
429
+ f"organizations/{jsonable_encoder(organization_id)}",
424
430
  method="GET",
425
431
  request_options=request_options,
426
432
  )
@@ -510,7 +516,7 @@ class AsyncRawOrganizationClient:
510
516
 
511
517
  async def invite_user_to_workspace(
512
518
  self,
513
- org_id: str,
519
+ organization_id: str,
514
520
  workspace_id: str,
515
521
  *,
516
522
  request: typing.Sequence[InviteRequest],
@@ -520,7 +526,7 @@ class AsyncRawOrganizationClient:
520
526
  Assigns a role to a user in an organization.
521
527
 
522
528
  Args:
523
- org_id (str): The ID of the organization.
529
+ organization_id (str): The ID of the organization.
524
530
  payload (InviteRequest): The payload containing the organization id, user email, and role to assign.
525
531
  workspace_id (str): The ID of the workspace.
526
532
 
@@ -533,7 +539,7 @@ class AsyncRawOrganizationClient:
533
539
 
534
540
  Parameters
535
541
  ----------
536
- org_id : str
542
+ organization_id : str
537
543
 
538
544
  workspace_id : str
539
545
 
@@ -548,7 +554,7 @@ class AsyncRawOrganizationClient:
548
554
  Successful Response
549
555
  """
550
556
  _response = await self._client_wrapper.httpx_client.request(
551
- f"organizations/{jsonable_encoder(org_id)}/workspaces/{jsonable_encoder(workspace_id)}/invite",
557
+ f"organizations/{jsonable_encoder(organization_id)}/workspaces/{jsonable_encoder(workspace_id)}/invite",
552
558
  method="POST",
553
559
  json=convert_and_respect_annotation_metadata(
554
560
  object_=request,
@@ -599,7 +605,7 @@ class AsyncRawOrganizationClient:
599
605
 
600
606
  async def resend_invitation(
601
607
  self,
602
- org_id: str,
608
+ organization_id: str,
603
609
  workspace_id: str,
604
610
  *,
605
611
  email: str,
@@ -618,7 +624,7 @@ class AsyncRawOrganizationClient:
618
624
 
619
625
  Parameters
620
626
  ----------
621
- org_id : str
627
+ organization_id : str
622
628
 
623
629
  workspace_id : str
624
630
 
@@ -633,7 +639,7 @@ class AsyncRawOrganizationClient:
633
639
  Successful Response
634
640
  """
635
641
  _response = await self._client_wrapper.httpx_client.request(
636
- f"organizations/{jsonable_encoder(org_id)}/workspaces/{jsonable_encoder(workspace_id)}/invite/resend",
642
+ f"organizations/{jsonable_encoder(organization_id)}/workspaces/{jsonable_encoder(workspace_id)}/invite/resend",
637
643
  method="POST",
638
644
  json={
639
645
  "email": email,
@@ -682,7 +688,7 @@ class AsyncRawOrganizationClient:
682
688
 
683
689
  async def accept_invitation(
684
690
  self,
685
- org_id: str,
691
+ organization_id: str,
686
692
  workspace_id: str,
687
693
  *,
688
694
  project_id: str,
@@ -703,7 +709,7 @@ class AsyncRawOrganizationClient:
703
709
 
704
710
  Parameters
705
711
  ----------
706
- org_id : str
712
+ organization_id : str
707
713
 
708
714
  workspace_id : str
709
715
 
@@ -722,7 +728,7 @@ class AsyncRawOrganizationClient:
722
728
  Successful Response
723
729
  """
724
730
  _response = await self._client_wrapper.httpx_client.request(
725
- f"organizations/{jsonable_encoder(org_id)}/workspaces/{jsonable_encoder(workspace_id)}/invite/accept",
731
+ f"organizations/{jsonable_encoder(organization_id)}/workspaces/{jsonable_encoder(workspace_id)}/invite/accept",
726
732
  method="POST",
727
733
  params={
728
734
  "project_id": project_id,
@@ -68,7 +68,7 @@ class RawAgentaApi:
68
68
 
69
69
  def update_organization(
70
70
  self,
71
- org_id: str,
71
+ organization_id: str,
72
72
  *,
73
73
  name: typing.Optional[str] = OMIT,
74
74
  description: typing.Optional[str] = OMIT,
@@ -78,7 +78,7 @@ class RawAgentaApi:
78
78
  """
79
79
  Parameters
80
80
  ----------
81
- org_id : str
81
+ organization_id : str
82
82
 
83
83
  name : typing.Optional[str]
84
84
 
@@ -95,7 +95,7 @@ class RawAgentaApi:
95
95
  Successful Response
96
96
  """
97
97
  _response = self._client_wrapper.httpx_client.request(
98
- f"organizations/{jsonable_encoder(org_id)}",
98
+ f"organizations/{jsonable_encoder(organization_id)}",
99
99
  method="PUT",
100
100
  json={
101
101
  "name": name,
@@ -146,7 +146,7 @@ class RawAgentaApi:
146
146
 
147
147
  def create_workspace(
148
148
  self,
149
- org_id: str,
149
+ organization_id: str,
150
150
  *,
151
151
  name: str,
152
152
  description: typing.Optional[str] = OMIT,
@@ -156,7 +156,7 @@ class RawAgentaApi:
156
156
  """
157
157
  Parameters
158
158
  ----------
159
- org_id : str
159
+ organization_id : str
160
160
 
161
161
  name : str
162
162
 
@@ -173,7 +173,7 @@ class RawAgentaApi:
173
173
  Successful Response
174
174
  """
175
175
  _response = self._client_wrapper.httpx_client.request(
176
- f"organizations/{jsonable_encoder(org_id)}/workspaces",
176
+ f"organizations/{jsonable_encoder(organization_id)}/workspaces",
177
177
  method="POST",
178
178
  json={
179
179
  "name": name,
@@ -222,7 +222,7 @@ class RawAgentaApi:
222
222
 
223
223
  def update_workspace(
224
224
  self,
225
- org_id: str,
225
+ organization_id: str,
226
226
  workspace_id: str,
227
227
  *,
228
228
  name: typing.Optional[str] = OMIT,
@@ -233,7 +233,7 @@ class RawAgentaApi:
233
233
  """
234
234
  Parameters
235
235
  ----------
236
- org_id : str
236
+ organization_id : str
237
237
 
238
238
  workspace_id : str
239
239
 
@@ -252,7 +252,7 @@ class RawAgentaApi:
252
252
  Successful Response
253
253
  """
254
254
  _response = self._client_wrapper.httpx_client.request(
255
- f"organizations/{jsonable_encoder(org_id)}/workspaces/{jsonable_encoder(workspace_id)}",
255
+ f"organizations/{jsonable_encoder(organization_id)}/workspaces/{jsonable_encoder(workspace_id)}",
256
256
  method="PUT",
257
257
  json={
258
258
  "name": name,
@@ -448,7 +448,7 @@ class RawAgentaApi:
448
448
  workspace_id: str,
449
449
  *,
450
450
  email: str,
451
- org_id: str,
451
+ organization_id: str,
452
452
  role: str,
453
453
  request_options: typing.Optional[RequestOptions] = None,
454
454
  ) -> HttpResponse[typing.Optional[typing.Any]]:
@@ -458,7 +458,7 @@ class RawAgentaApi:
458
458
  Args:
459
459
  workspace_id (str): The ID of the workspace.
460
460
  email (str): The email of the user to remove the role from.
461
- org_id (str): The ID of the organization.
461
+ organization_id (str): The ID of the organization.
462
462
  role (str): The role to remove from the user.
463
463
  request (Request): The FastAPI request object.
464
464
 
@@ -475,7 +475,7 @@ class RawAgentaApi:
475
475
 
476
476
  email : str
477
477
 
478
- org_id : str
478
+ organization_id : str
479
479
 
480
480
  role : str
481
481
 
@@ -492,7 +492,7 @@ class RawAgentaApi:
492
492
  method="DELETE",
493
493
  params={
494
494
  "email": email,
495
- "org_id": org_id,
495
+ "organization_id": organization_id,
496
496
  "role": role,
497
497
  },
498
498
  request_options=request_options,
@@ -774,7 +774,7 @@ class AsyncRawAgentaApi:
774
774
 
775
775
  async def update_organization(
776
776
  self,
777
- org_id: str,
777
+ organization_id: str,
778
778
  *,
779
779
  name: typing.Optional[str] = OMIT,
780
780
  description: typing.Optional[str] = OMIT,
@@ -784,7 +784,7 @@ class AsyncRawAgentaApi:
784
784
  """
785
785
  Parameters
786
786
  ----------
787
- org_id : str
787
+ organization_id : str
788
788
 
789
789
  name : typing.Optional[str]
790
790
 
@@ -801,7 +801,7 @@ class AsyncRawAgentaApi:
801
801
  Successful Response
802
802
  """
803
803
  _response = await self._client_wrapper.httpx_client.request(
804
- f"organizations/{jsonable_encoder(org_id)}",
804
+ f"organizations/{jsonable_encoder(organization_id)}",
805
805
  method="PUT",
806
806
  json={
807
807
  "name": name,
@@ -852,7 +852,7 @@ class AsyncRawAgentaApi:
852
852
 
853
853
  async def create_workspace(
854
854
  self,
855
- org_id: str,
855
+ organization_id: str,
856
856
  *,
857
857
  name: str,
858
858
  description: typing.Optional[str] = OMIT,
@@ -862,7 +862,7 @@ class AsyncRawAgentaApi:
862
862
  """
863
863
  Parameters
864
864
  ----------
865
- org_id : str
865
+ organization_id : str
866
866
 
867
867
  name : str
868
868
 
@@ -879,7 +879,7 @@ class AsyncRawAgentaApi:
879
879
  Successful Response
880
880
  """
881
881
  _response = await self._client_wrapper.httpx_client.request(
882
- f"organizations/{jsonable_encoder(org_id)}/workspaces",
882
+ f"organizations/{jsonable_encoder(organization_id)}/workspaces",
883
883
  method="POST",
884
884
  json={
885
885
  "name": name,
@@ -928,7 +928,7 @@ class AsyncRawAgentaApi:
928
928
 
929
929
  async def update_workspace(
930
930
  self,
931
- org_id: str,
931
+ organization_id: str,
932
932
  workspace_id: str,
933
933
  *,
934
934
  name: typing.Optional[str] = OMIT,
@@ -939,7 +939,7 @@ class AsyncRawAgentaApi:
939
939
  """
940
940
  Parameters
941
941
  ----------
942
- org_id : str
942
+ organization_id : str
943
943
 
944
944
  workspace_id : str
945
945
 
@@ -958,7 +958,7 @@ class AsyncRawAgentaApi:
958
958
  Successful Response
959
959
  """
960
960
  _response = await self._client_wrapper.httpx_client.request(
961
- f"organizations/{jsonable_encoder(org_id)}/workspaces/{jsonable_encoder(workspace_id)}",
961
+ f"organizations/{jsonable_encoder(organization_id)}/workspaces/{jsonable_encoder(workspace_id)}",
962
962
  method="PUT",
963
963
  json={
964
964
  "name": name,
@@ -1154,7 +1154,7 @@ class AsyncRawAgentaApi:
1154
1154
  workspace_id: str,
1155
1155
  *,
1156
1156
  email: str,
1157
- org_id: str,
1157
+ organization_id: str,
1158
1158
  role: str,
1159
1159
  request_options: typing.Optional[RequestOptions] = None,
1160
1160
  ) -> AsyncHttpResponse[typing.Optional[typing.Any]]:
@@ -1164,7 +1164,7 @@ class AsyncRawAgentaApi:
1164
1164
  Args:
1165
1165
  workspace_id (str): The ID of the workspace.
1166
1166
  email (str): The email of the user to remove the role from.
1167
- org_id (str): The ID of the organization.
1167
+ organization_id (str): The ID of the organization.
1168
1168
  role (str): The role to remove from the user.
1169
1169
  request (Request): The FastAPI request object.
1170
1170
 
@@ -1181,7 +1181,7 @@ class AsyncRawAgentaApi:
1181
1181
 
1182
1182
  email : str
1183
1183
 
1184
- org_id : str
1184
+ organization_id : str
1185
1185
 
1186
1186
  role : str
1187
1187
 
@@ -1198,7 +1198,7 @@ class AsyncRawAgentaApi:
1198
1198
  method="DELETE",
1199
1199
  params={
1200
1200
  "email": email,
1201
- "org_id": org_id,
1201
+ "organization_id": organization_id,
1202
1202
  "role": role,
1203
1203
  },
1204
1204
  request_options=request_options,