agenta 0.57.0__py3-none-any.whl → 0.63.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.
- agenta/__init__.py +12 -3
- agenta/client/__init__.py +4 -4
- agenta/client/backend/__init__.py +4 -4
- agenta/client/backend/api_keys/client.py +2 -2
- agenta/client/backend/billing/client.py +2 -2
- agenta/client/backend/billing/raw_client.py +2 -2
- agenta/client/backend/client.py +56 -48
- agenta/client/backend/core/client_wrapper.py +2 -2
- agenta/client/backend/core/file.py +3 -1
- agenta/client/backend/core/http_client.py +3 -3
- agenta/client/backend/core/pydantic_utilities.py +13 -3
- agenta/client/backend/human_evaluations/client.py +2 -2
- agenta/client/backend/human_evaluations/raw_client.py +2 -2
- 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/backend/testsets/client.py +18 -18
- agenta/client/backend/testsets/raw_client.py +30 -30
- agenta/client/backend/types/__init__.py +4 -4
- agenta/client/backend/types/account_request.py +3 -1
- agenta/client/backend/types/account_response.py +3 -1
- agenta/client/backend/types/agenta_node_dto.py +3 -1
- agenta/client/backend/types/agenta_nodes_response.py +3 -1
- agenta/client/backend/types/agenta_root_dto.py +3 -1
- agenta/client/backend/types/agenta_roots_response.py +3 -1
- agenta/client/backend/types/agenta_tree_dto.py +3 -1
- agenta/client/backend/types/agenta_trees_response.py +3 -1
- agenta/client/backend/types/aggregated_result.py +3 -1
- agenta/client/backend/types/analytics_response.py +3 -1
- agenta/client/backend/types/annotation.py +6 -4
- agenta/client/backend/types/annotation_create.py +3 -1
- agenta/client/backend/types/annotation_edit.py +3 -1
- agenta/client/backend/types/annotation_link.py +3 -1
- agenta/client/backend/types/annotation_link_response.py +3 -1
- agenta/client/backend/types/annotation_query.py +3 -1
- agenta/client/backend/types/annotation_query_request.py +3 -1
- agenta/client/backend/types/annotation_reference.py +3 -1
- agenta/client/backend/types/annotation_references.py +3 -1
- agenta/client/backend/types/annotation_response.py +3 -1
- agenta/client/backend/types/annotations_response.py +3 -1
- agenta/client/backend/types/app.py +3 -1
- agenta/client/backend/types/app_variant_response.py +3 -1
- agenta/client/backend/types/app_variant_revision.py +3 -1
- agenta/client/backend/types/artifact.py +6 -4
- agenta/client/backend/types/base_output.py +3 -1
- agenta/client/backend/types/body_fetch_workflow_revision.py +3 -1
- agenta/client/backend/types/body_import_testset.py +3 -1
- agenta/client/backend/types/bucket_dto.py +3 -1
- agenta/client/backend/types/collect_status_response.py +3 -1
- agenta/client/backend/types/config_db.py +3 -1
- agenta/client/backend/types/config_dto.py +3 -1
- agenta/client/backend/types/config_response_model.py +3 -1
- agenta/client/backend/types/correct_answer.py +3 -1
- agenta/client/backend/types/create_app_output.py +3 -1
- agenta/client/backend/types/custom_model_settings_dto.py +3 -1
- agenta/client/backend/types/custom_provider_dto.py +3 -1
- agenta/client/backend/types/custom_provider_kind.py +1 -1
- agenta/client/backend/types/custom_provider_settings_dto.py +3 -1
- agenta/client/backend/types/delete_evaluation.py +3 -1
- agenta/client/backend/types/environment_output.py +3 -1
- agenta/client/backend/types/environment_output_extended.py +3 -1
- agenta/client/backend/types/environment_revision.py +3 -1
- agenta/client/backend/types/error.py +3 -1
- agenta/client/backend/types/evaluation.py +3 -1
- agenta/client/backend/types/evaluation_scenario.py +3 -1
- agenta/client/backend/types/evaluation_scenario_input.py +3 -1
- agenta/client/backend/types/evaluation_scenario_output.py +3 -1
- agenta/client/backend/types/evaluation_scenario_result.py +3 -1
- agenta/client/backend/types/evaluator.py +6 -4
- agenta/client/backend/types/evaluator_config.py +6 -4
- agenta/client/backend/types/evaluator_flags.py +3 -1
- agenta/client/backend/types/evaluator_mapping_output_interface.py +3 -1
- agenta/client/backend/types/evaluator_output_interface.py +3 -1
- agenta/client/backend/types/evaluator_query.py +3 -1
- agenta/client/backend/types/evaluator_query_request.py +3 -1
- agenta/client/backend/types/evaluator_request.py +3 -1
- agenta/client/backend/types/evaluator_response.py +3 -1
- agenta/client/backend/types/evaluators_response.py +3 -1
- agenta/client/backend/types/exception_dto.py +3 -1
- agenta/client/backend/types/extended_o_tel_tracing_response.py +3 -1
- agenta/client/backend/types/get_config_response.py +3 -1
- agenta/client/backend/types/header.py +3 -1
- agenta/client/backend/types/http_validation_error.py +3 -1
- agenta/client/backend/types/human_evaluation.py +3 -1
- agenta/client/backend/types/human_evaluation_scenario.py +3 -1
- agenta/client/backend/types/human_evaluation_scenario_input.py +3 -1
- agenta/client/backend/types/human_evaluation_scenario_output.py +3 -1
- agenta/client/backend/types/invite_request.py +3 -1
- agenta/client/backend/types/legacy_analytics_response.py +3 -1
- agenta/client/backend/types/legacy_data_point.py +3 -1
- agenta/client/backend/types/legacy_evaluator.py +3 -1
- agenta/client/backend/types/legacy_scope_request.py +3 -1
- agenta/client/backend/types/legacy_scopes_response.py +3 -1
- agenta/client/backend/types/legacy_subscription_request.py +3 -1
- agenta/client/backend/types/legacy_user_request.py +3 -1
- agenta/client/backend/types/legacy_user_response.py +3 -1
- agenta/client/backend/types/lifecycle_dto.py +3 -1
- agenta/client/backend/types/link_dto.py +3 -1
- agenta/client/backend/types/list_api_keys_response.py +3 -1
- agenta/client/backend/types/llm_run_rate_limit.py +3 -1
- agenta/client/backend/types/meta_request.py +3 -1
- agenta/client/backend/types/metrics_dto.py +3 -1
- agenta/client/backend/types/new_testset.py +3 -1
- agenta/client/backend/types/node_dto.py +3 -1
- agenta/client/backend/types/o_tel_context_dto.py +3 -1
- agenta/client/backend/types/o_tel_event.py +6 -4
- agenta/client/backend/types/o_tel_event_dto.py +3 -1
- agenta/client/backend/types/o_tel_extra_dto.py +3 -1
- agenta/client/backend/types/o_tel_flat_span.py +6 -4
- agenta/client/backend/types/o_tel_link.py +6 -4
- agenta/client/backend/types/o_tel_link_dto.py +3 -1
- agenta/client/backend/types/o_tel_links_response.py +3 -1
- agenta/client/backend/types/o_tel_span.py +1 -1
- agenta/client/backend/types/o_tel_span_dto.py +3 -1
- agenta/client/backend/types/o_tel_spans_tree.py +3 -1
- agenta/client/backend/types/o_tel_tracing_data_response.py +3 -1
- agenta/client/backend/types/o_tel_tracing_request.py +3 -1
- agenta/client/backend/types/o_tel_tracing_response.py +3 -1
- agenta/client/backend/types/organization.py +3 -1
- agenta/client/backend/types/organization_details.py +3 -1
- agenta/client/backend/types/organization_membership_request.py +3 -1
- agenta/client/backend/types/organization_output.py +3 -1
- agenta/client/backend/types/organization_request.py +3 -1
- agenta/client/backend/types/parent_dto.py +3 -1
- agenta/client/backend/types/project_membership_request.py +3 -1
- agenta/client/backend/types/project_request.py +3 -1
- agenta/client/backend/types/project_scope.py +3 -1
- agenta/client/backend/types/projects_response.py +3 -1
- agenta/client/backend/types/reference.py +6 -4
- agenta/client/backend/types/reference_dto.py +3 -1
- agenta/client/backend/types/reference_request_model.py +3 -1
- agenta/client/backend/types/result.py +3 -1
- agenta/client/backend/types/root_dto.py +3 -1
- agenta/client/backend/types/scopes_response_model.py +3 -1
- agenta/client/backend/types/secret_dto.py +3 -1
- agenta/client/backend/types/secret_response_dto.py +3 -1
- agenta/client/backend/types/simple_evaluation_output.py +3 -1
- agenta/client/backend/types/span_dto.py +6 -4
- agenta/client/backend/types/standard_provider_dto.py +3 -1
- agenta/client/backend/types/standard_provider_settings_dto.py +3 -1
- agenta/client/backend/types/status_dto.py +3 -1
- agenta/client/backend/types/tags_request.py +3 -1
- agenta/client/backend/types/testcase_response.py +6 -4
- agenta/client/backend/types/testset.py +6 -4
- agenta/client/backend/types/{test_set_output_response.py → testset_output_response.py} +4 -2
- agenta/client/backend/types/testset_request.py +3 -1
- agenta/client/backend/types/testset_response.py +3 -1
- agenta/client/backend/types/{test_set_simple_response.py → testset_simple_response.py} +4 -2
- agenta/client/backend/types/testsets_response.py +3 -1
- agenta/client/backend/types/time_dto.py +3 -1
- agenta/client/backend/types/tree_dto.py +3 -1
- agenta/client/backend/types/update_app_output.py +3 -1
- agenta/client/backend/types/user_request.py +3 -1
- agenta/client/backend/types/validation_error.py +3 -1
- agenta/client/backend/types/workflow_artifact.py +6 -4
- agenta/client/backend/types/workflow_data.py +3 -1
- agenta/client/backend/types/workflow_flags.py +3 -1
- agenta/client/backend/types/workflow_request.py +3 -1
- agenta/client/backend/types/workflow_response.py +3 -1
- agenta/client/backend/types/workflow_revision.py +6 -4
- agenta/client/backend/types/workflow_revision_request.py +3 -1
- agenta/client/backend/types/workflow_revision_response.py +3 -1
- agenta/client/backend/types/workflow_revisions_response.py +3 -1
- agenta/client/backend/types/workflow_variant.py +6 -4
- agenta/client/backend/types/workflow_variant_request.py +3 -1
- agenta/client/backend/types/workflow_variant_response.py +3 -1
- agenta/client/backend/types/workflow_variants_response.py +3 -1
- agenta/client/backend/types/workflows_response.py +3 -1
- agenta/client/backend/types/workspace.py +3 -1
- agenta/client/backend/types/workspace_member_response.py +3 -1
- agenta/client/backend/types/workspace_membership_request.py +3 -1
- agenta/client/backend/types/workspace_permission.py +3 -1
- agenta/client/backend/types/workspace_request.py +3 -1
- agenta/client/backend/types/workspace_response.py +3 -1
- agenta/client/backend/workspace/client.py +2 -2
- agenta/client/client.py +102 -88
- agenta/sdk/__init__.py +52 -3
- agenta/sdk/agenta_init.py +43 -16
- agenta/sdk/assets.py +22 -15
- agenta/sdk/context/serving.py +20 -8
- agenta/sdk/context/tracing.py +40 -22
- agenta/sdk/contexts/__init__.py +0 -0
- agenta/sdk/contexts/routing.py +38 -0
- agenta/sdk/contexts/running.py +57 -0
- agenta/sdk/contexts/tracing.py +86 -0
- agenta/sdk/decorators/__init__.py +1 -0
- agenta/sdk/decorators/routing.py +284 -0
- agenta/sdk/decorators/running.py +692 -98
- agenta/sdk/decorators/serving.py +20 -21
- agenta/sdk/decorators/tracing.py +176 -131
- agenta/sdk/engines/__init__.py +0 -0
- agenta/sdk/engines/running/__init__.py +0 -0
- agenta/sdk/engines/running/utils.py +17 -0
- agenta/sdk/engines/tracing/__init__.py +1 -0
- agenta/sdk/engines/tracing/attributes.py +185 -0
- agenta/sdk/engines/tracing/conventions.py +49 -0
- agenta/sdk/engines/tracing/exporters.py +130 -0
- agenta/sdk/engines/tracing/inline.py +1154 -0
- agenta/sdk/engines/tracing/processors.py +190 -0
- agenta/sdk/engines/tracing/propagation.py +102 -0
- agenta/sdk/engines/tracing/spans.py +136 -0
- agenta/sdk/engines/tracing/tracing.py +324 -0
- agenta/sdk/evaluations/__init__.py +2 -0
- agenta/sdk/evaluations/metrics.py +37 -0
- agenta/sdk/evaluations/preview/__init__.py +0 -0
- agenta/sdk/evaluations/preview/evaluate.py +765 -0
- agenta/sdk/evaluations/preview/utils.py +861 -0
- agenta/sdk/evaluations/results.py +66 -0
- agenta/sdk/evaluations/runs.py +153 -0
- agenta/sdk/evaluations/scenarios.py +48 -0
- agenta/sdk/litellm/litellm.py +12 -0
- agenta/sdk/litellm/mockllm.py +6 -8
- agenta/sdk/litellm/mocks/__init__.py +5 -5
- agenta/sdk/managers/applications.py +304 -0
- agenta/sdk/managers/config.py +2 -2
- agenta/sdk/managers/evaluations.py +0 -0
- agenta/sdk/managers/evaluators.py +303 -0
- agenta/sdk/managers/secrets.py +161 -24
- agenta/sdk/managers/shared.py +3 -1
- agenta/sdk/managers/testsets.py +441 -0
- agenta/sdk/managers/vault.py +3 -3
- agenta/sdk/middleware/auth.py +0 -176
- agenta/sdk/middleware/vault.py +203 -8
- agenta/sdk/middlewares/__init__.py +0 -0
- agenta/sdk/middlewares/routing/__init__.py +0 -0
- agenta/sdk/middlewares/routing/auth.py +263 -0
- agenta/sdk/middlewares/routing/cors.py +30 -0
- agenta/sdk/middlewares/routing/otel.py +29 -0
- agenta/sdk/middlewares/running/__init__.py +0 -0
- agenta/sdk/middlewares/running/normalizer.py +321 -0
- agenta/sdk/middlewares/running/resolver.py +161 -0
- agenta/sdk/middlewares/running/vault.py +140 -0
- agenta/sdk/models/__init__.py +0 -0
- agenta/sdk/models/blobs.py +33 -0
- agenta/sdk/models/evaluations.py +119 -0
- agenta/sdk/models/git.py +126 -0
- agenta/sdk/models/shared.py +167 -0
- agenta/sdk/models/testsets.py +163 -0
- agenta/sdk/models/tracing.py +202 -0
- agenta/sdk/models/workflows.py +753 -0
- agenta/sdk/tracing/exporters.py +67 -17
- agenta/sdk/tracing/processors.py +97 -0
- agenta/sdk/tracing/propagation.py +3 -1
- agenta/sdk/tracing/spans.py +4 -0
- agenta/sdk/tracing/tracing.py +13 -13
- agenta/sdk/types.py +211 -17
- agenta/sdk/utils/cache.py +1 -1
- agenta/sdk/utils/client.py +38 -0
- agenta/sdk/utils/helpers.py +13 -12
- agenta/sdk/utils/logging.py +18 -78
- agenta/sdk/utils/references.py +23 -0
- agenta/sdk/workflows/builtin.py +600 -0
- agenta/sdk/workflows/configurations.py +22 -0
- agenta/sdk/workflows/errors.py +292 -0
- agenta/sdk/workflows/handlers.py +1791 -0
- agenta/sdk/workflows/interfaces.py +948 -0
- agenta/sdk/workflows/sandbox.py +118 -0
- agenta/sdk/workflows/utils.py +303 -6
- {agenta-0.57.0.dist-info → agenta-0.63.2.dist-info}/METADATA +33 -30
- agenta-0.63.2.dist-info/RECORD +421 -0
- agenta/sdk/middleware/adapt.py +0 -253
- agenta/sdk/middleware/base.py +0 -40
- agenta/sdk/middleware/flags.py +0 -40
- agenta/sdk/workflows/types.py +0 -472
- agenta-0.57.0.dist-info/RECORD +0 -371
- /agenta/sdk/{workflows → engines/running}/registry.py +0 -0
- {agenta-0.57.0.dist-info → agenta-0.63.2.dist-info}/WHEEL +0 -0
|
@@ -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,
|
|
@@ -25,14 +25,17 @@ class RawOrganizationClient:
|
|
|
25
25
|
self._client_wrapper = client_wrapper
|
|
26
26
|
|
|
27
27
|
def fetch_organization_details(
|
|
28
|
-
self,
|
|
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
|
-
|
|
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(
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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(
|
|
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
|
-
|
|
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
|
-
|
|
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(
|
|
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
|
-
|
|
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
|
-
|
|
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(
|
|
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,
|
|
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
|
-
|
|
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(
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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(
|
|
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
|
-
|
|
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
|
-
|
|
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(
|
|
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
|
-
|
|
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
|
-
|
|
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(
|
|
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,
|