pidgeon 1.0.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.
- pidgeon/__init__.py +8 -0
- pidgeon/api/__init__.py +1 -0
- pidgeon/api/agent/__init__.py +1 -0
- pidgeon/api/agent/agent_attach_human.py +184 -0
- pidgeon/api/agent/agent_sign_up.py +196 -0
- pidgeon/api/agent/agent_verify.py +192 -0
- pidgeon/api/app_passwords/__init__.py +1 -0
- pidgeon/api/app_passwords/app_passwords_create.py +192 -0
- pidgeon/api/app_passwords/app_passwords_list.py +178 -0
- pidgeon/api/app_passwords/app_passwords_revoke.py +171 -0
- pidgeon/api/attachments/__init__.py +1 -0
- pidgeon/api/attachments/attachments_download_url.py +183 -0
- pidgeon/api/attachments/attachments_upload.py +192 -0
- pidgeon/api/calendar/__init__.py +1 -0
- pidgeon/api/calendar/calendar_create_event.py +212 -0
- pidgeon/api/calendar/calendar_delete_event.py +244 -0
- pidgeon/api/calendar/calendar_get.py +183 -0
- pidgeon/api/calendar/calendar_get_agenda.py +269 -0
- pidgeon/api/calendar/calendar_get_event.py +185 -0
- pidgeon/api/calendar/calendar_list_event_instances.py +263 -0
- pidgeon/api/calendar/calendar_list_events.py +223 -0
- pidgeon/api/calendar/calendar_respond_to_event.py +249 -0
- pidgeon/api/calendar/calendar_update.py +219 -0
- pidgeon/api/calendar/calendar_update_event.py +262 -0
- pidgeon/api/domains/__init__.py +1 -0
- pidgeon/api/domains/domains_create.py +200 -0
- pidgeon/api/domains/domains_delete.py +179 -0
- pidgeon/api/domains/domains_get.py +187 -0
- pidgeon/api/domains/domains_get_setup_link.py +249 -0
- pidgeon/api/domains/domains_list.py +195 -0
- pidgeon/api/domains/domains_update.py +208 -0
- pidgeon/api/domains/domains_verify.py +191 -0
- pidgeon/api/domains/domains_zone_file.py +181 -0
- pidgeon/api/drafts/__init__.py +1 -0
- pidgeon/api/drafts/drafts_cancel_schedule.py +171 -0
- pidgeon/api/drafts/drafts_create.py +192 -0
- pidgeon/api/drafts/drafts_delete.py +171 -0
- pidgeon/api/drafts/drafts_get.py +171 -0
- pidgeon/api/drafts/drafts_list.py +209 -0
- pidgeon/api/drafts/drafts_remove_attachment.py +201 -0
- pidgeon/api/drafts/drafts_schedule.py +208 -0
- pidgeon/api/drafts/drafts_send.py +191 -0
- pidgeon/api/drafts/drafts_update.py +204 -0
- pidgeon/api/events/__init__.py +1 -0
- pidgeon/api/events/events_get.py +171 -0
- pidgeon/api/events/events_list.py +291 -0
- pidgeon/api/identities/__init__.py +1 -0
- pidgeon/api/identities/identities_access_create.py +212 -0
- pidgeon/api/identities/identities_access_delete.py +202 -0
- pidgeon/api/identities/identities_access_get.py +183 -0
- pidgeon/api/identities/identities_create.py +188 -0
- pidgeon/api/identities/identities_delete.py +179 -0
- pidgeon/api/identities/identities_get.py +171 -0
- pidgeon/api/identities/identities_list.py +222 -0
- pidgeon/api/identities/identities_send_rules_create.py +216 -0
- pidgeon/api/identities/identities_send_rules_delete.py +202 -0
- pidgeon/api/identities/identities_send_rules_get.py +187 -0
- pidgeon/api/identities/identities_suspend_tenant.py +191 -0
- pidgeon/api/identities/identities_update.py +192 -0
- pidgeon/api/keys/__init__.py +1 -0
- pidgeon/api/keys/keys_create.py +188 -0
- pidgeon/api/keys/keys_get.py +183 -0
- pidgeon/api/keys/keys_list.py +156 -0
- pidgeon/api/keys/keys_revoke.py +183 -0
- pidgeon/api/keys/keys_update.py +208 -0
- pidgeon/api/labels/__init__.py +1 -0
- pidgeon/api/labels/labels_create.py +176 -0
- pidgeon/api/labels/labels_delete.py +179 -0
- pidgeon/api/labels/labels_list.py +186 -0
- pidgeon/api/labels/labels_update.py +200 -0
- pidgeon/api/mailboxes/__init__.py +1 -0
- pidgeon/api/mailboxes/mailboxes_changes.py +236 -0
- pidgeon/api/mailboxes/mailboxes_empty_trash.py +214 -0
- pidgeon/api/mailboxes/mailboxes_list.py +188 -0
- pidgeon/api/mailboxes/mailboxes_list_folder.py +258 -0
- pidgeon/api/messages/__init__.py +1 -0
- pidgeon/api/messages/messages_act.py +188 -0
- pidgeon/api/messages/messages_forward.py +200 -0
- pidgeon/api/messages/messages_get.py +171 -0
- pidgeon/api/messages/messages_list_in_thread.py +212 -0
- pidgeon/api/messages/messages_raw.py +173 -0
- pidgeon/api/messages/messages_reply.py +204 -0
- pidgeon/api/messages/messages_reply_all.py +204 -0
- pidgeon/api/messages/messages_respond_to_invitation.py +222 -0
- pidgeon/api/messages/messages_search.py +333 -0
- pidgeon/api/messages/messages_send.py +184 -0
- pidgeon/api/messages/messages_undo.py +188 -0
- pidgeon/api/messages/messages_update.py +204 -0
- pidgeon/api/metrics/__init__.py +1 -0
- pidgeon/api/metrics/metrics_query.py +215 -0
- pidgeon/api/routing/__init__.py +1 -0
- pidgeon/api/routing/routing_create.py +199 -0
- pidgeon/api/routing/routing_delete.py +171 -0
- pidgeon/api/routing/routing_list.py +188 -0
- pidgeon/api/routing/routing_update.py +208 -0
- pidgeon/api/threads/__init__.py +1 -0
- pidgeon/api/threads/threads_get.py +183 -0
- pidgeon/api/threads/threads_labels_create.py +200 -0
- pidgeon/api/threads/threads_labels_delete.py +202 -0
- pidgeon/api/threads/threads_labels_get.py +171 -0
- pidgeon/api/threads/threads_list.py +211 -0
- pidgeon/api/threads/threads_update.py +200 -0
- pidgeon/api/webhooks/__init__.py +1 -0
- pidgeon/api/webhooks/webhooks_create.py +188 -0
- pidgeon/api/webhooks/webhooks_delete.py +171 -0
- pidgeon/api/webhooks/webhooks_deliveries.py +205 -0
- pidgeon/api/webhooks/webhooks_get.py +171 -0
- pidgeon/api/webhooks/webhooks_get_headers.py +183 -0
- pidgeon/api/webhooks/webhooks_list.py +195 -0
- pidgeon/api/webhooks/webhooks_replay.py +183 -0
- pidgeon/api/webhooks/webhooks_update.py +208 -0
- pidgeon/api/webhooks/webhooks_update_headers.py +212 -0
- pidgeon/api/workspace/__init__.py +1 -0
- pidgeon/api/workspace/workspace_get.py +160 -0
- pidgeon/api/workspace/workspace_members.py +164 -0
- pidgeon/client.py +268 -0
- pidgeon/errors.py +16 -0
- pidgeon/models/__init__.py +531 -0
- pidgeon/models/address.py +65 -0
- pidgeon/models/agent_attach_human_body.py +70 -0
- pidgeon/models/agent_attach_human_response_200.py +67 -0
- pidgeon/models/agent_sign_up_body.py +91 -0
- pidgeon/models/agent_sign_up_response_201.py +67 -0
- pidgeon/models/agent_signup.py +80 -0
- pidgeon/models/agent_verified.py +58 -0
- pidgeon/models/agent_verify_body.py +70 -0
- pidgeon/models/agent_verify_response_200.py +67 -0
- pidgeon/models/api_key.py +126 -0
- pidgeon/models/api_key_access.py +10 -0
- pidgeon/models/app_password.py +94 -0
- pidgeon/models/app_passwords_create_body.py +51 -0
- pidgeon/models/app_passwords_create_response_201.py +67 -0
- pidgeon/models/app_passwords_list_response_200.py +97 -0
- pidgeon/models/app_passwords_revoke_response_200.py +67 -0
- pidgeon/models/attachment.py +74 -0
- pidgeon/models/attachment_url.py +50 -0
- pidgeon/models/attachments_download_url_response_200.py +67 -0
- pidgeon/models/attachments_upload_body.py +85 -0
- pidgeon/models/attachments_upload_response_201.py +67 -0
- pidgeon/models/calendar.py +90 -0
- pidgeon/models/calendar_create_event_body.py +244 -0
- pidgeon/models/calendar_create_event_body_attendees_item.py +110 -0
- pidgeon/models/calendar_create_event_body_attendees_item_status.py +11 -0
- pidgeon/models/calendar_create_event_body_recurrence_type_0.py +85 -0
- pidgeon/models/calendar_create_event_body_status.py +10 -0
- pidgeon/models/calendar_create_event_response_201.py +67 -0
- pidgeon/models/calendar_delete_event_mode.py +9 -0
- pidgeon/models/calendar_delete_event_response_200.py +67 -0
- pidgeon/models/calendar_event.py +342 -0
- pidgeon/models/calendar_event_attendees_item.py +72 -0
- pidgeon/models/calendar_event_duration_mode.py +9 -0
- pidgeon/models/calendar_event_kind.py +10 -0
- pidgeon/models/calendar_event_recurrence_type_0.py +72 -0
- pidgeon/models/calendar_event_source.py +9 -0
- pidgeon/models/calendar_event_status.py +10 -0
- pidgeon/models/calendar_get_agenda_include_overlapping.py +9 -0
- pidgeon/models/calendar_get_agenda_response_200.py +97 -0
- pidgeon/models/calendar_get_event_response_200.py +67 -0
- pidgeon/models/calendar_get_response_200.py +67 -0
- pidgeon/models/calendar_list_event_instances_response_200.py +97 -0
- pidgeon/models/calendar_list_events_response_200.py +97 -0
- pidgeon/models/calendar_respond_to_event_body.py +82 -0
- pidgeon/models/calendar_respond_to_event_body_status.py +10 -0
- pidgeon/models/calendar_respond_to_event_response_200.py +67 -0
- pidgeon/models/calendar_update_body.py +61 -0
- pidgeon/models/calendar_update_event_body.py +233 -0
- pidgeon/models/calendar_update_event_body_attendees_item.py +110 -0
- pidgeon/models/calendar_update_event_body_attendees_item_status.py +11 -0
- pidgeon/models/calendar_update_event_body_recurrence_type_0.py +85 -0
- pidgeon/models/calendar_update_event_body_status.py +10 -0
- pidgeon/models/calendar_update_event_mode.py +9 -0
- pidgeon/models/calendar_update_event_response_200.py +67 -0
- pidgeon/models/calendar_update_response_200.py +67 -0
- pidgeon/models/deleted.py +50 -0
- pidgeon/models/delivery.py +152 -0
- pidgeon/models/dns_record.py +126 -0
- pidgeon/models/dns_record_status.py +11 -0
- pidgeon/models/domain.py +96 -0
- pidgeon/models/domain_detail.py +126 -0
- pidgeon/models/domain_detail_dns_records_item.py +126 -0
- pidgeon/models/domain_detail_dns_records_item_status.py +11 -0
- pidgeon/models/domains_create_body.py +42 -0
- pidgeon/models/domains_create_response_201.py +67 -0
- pidgeon/models/domains_delete_response_200.py +67 -0
- pidgeon/models/domains_get_response_200.py +67 -0
- pidgeon/models/domains_get_setup_link_response_200.py +67 -0
- pidgeon/models/domains_get_setup_link_template.py +9 -0
- pidgeon/models/domains_list_response_200.py +97 -0
- pidgeon/models/domains_update_body.py +42 -0
- pidgeon/models/domains_update_response_200.py +67 -0
- pidgeon/models/domains_verify_response_200.py +67 -0
- pidgeon/models/draft.py +210 -0
- pidgeon/models/draft_attachments_item.py +74 -0
- pidgeon/models/drafts_cancel_schedule_response_200.py +67 -0
- pidgeon/models/drafts_create_body.py +197 -0
- pidgeon/models/drafts_create_response_201.py +67 -0
- pidgeon/models/drafts_delete_response_200.py +67 -0
- pidgeon/models/drafts_get_response_200.py +67 -0
- pidgeon/models/drafts_list_response_200.py +97 -0
- pidgeon/models/drafts_remove_attachment_response_200.py +67 -0
- pidgeon/models/drafts_schedule_body.py +62 -0
- pidgeon/models/drafts_schedule_response_200.py +67 -0
- pidgeon/models/drafts_send_response_202.py +67 -0
- pidgeon/models/drafts_update_body.py +156 -0
- pidgeon/models/drafts_update_response_200.py +67 -0
- pidgeon/models/emptied.py +50 -0
- pidgeon/models/error.py +48 -0
- pidgeon/models/error_error.py +61 -0
- pidgeon/models/event.py +114 -0
- pidgeon/models/event_data.py +45 -0
- pidgeon/models/event_response.py +73 -0
- pidgeon/models/event_response_event.py +342 -0
- pidgeon/models/event_response_event_attendees_item.py +72 -0
- pidgeon/models/event_response_event_duration_mode.py +9 -0
- pidgeon/models/event_response_event_kind.py +10 -0
- pidgeon/models/event_response_event_recurrence_type_0.py +72 -0
- pidgeon/models/event_response_event_source.py +9 -0
- pidgeon/models/event_response_event_status.py +10 -0
- pidgeon/models/events_get_response_200.py +67 -0
- pidgeon/models/events_list_response_200.py +97 -0
- pidgeon/models/identities_access_create_body.py +87 -0
- pidgeon/models/identities_access_create_body_access.py +10 -0
- pidgeon/models/identities_access_create_response_200.py +67 -0
- pidgeon/models/identities_access_delete_response_200.py +67 -0
- pidgeon/models/identities_access_get_response_200.py +67 -0
- pidgeon/models/identities_create_body.py +175 -0
- pidgeon/models/identities_create_body_mode.py +10 -0
- pidgeon/models/identities_create_body_send_policy.py +10 -0
- pidgeon/models/identities_create_body_type.py +12 -0
- pidgeon/models/identities_create_response_201.py +67 -0
- pidgeon/models/identities_delete_response_200.py +67 -0
- pidgeon/models/identities_get_response_200.py +67 -0
- pidgeon/models/identities_list_response_200.py +97 -0
- pidgeon/models/identities_send_rules_create_body.py +52 -0
- pidgeon/models/identities_send_rules_create_body_effect.py +9 -0
- pidgeon/models/identities_send_rules_create_response_200.py +67 -0
- pidgeon/models/identities_send_rules_delete_response_200.py +67 -0
- pidgeon/models/identities_send_rules_get_response_200.py +67 -0
- pidgeon/models/identities_suspend_tenant_response_200.py +67 -0
- pidgeon/models/identities_update_body.py +178 -0
- pidgeon/models/identities_update_body_capabilities.py +45 -0
- pidgeon/models/identities_update_body_mode.py +10 -0
- pidgeon/models/identities_update_body_send_policy.py +10 -0
- pidgeon/models/identities_update_body_status.py +10 -0
- pidgeon/models/identities_update_response_200.py +67 -0
- pidgeon/models/identity.py +178 -0
- pidgeon/models/identity_capabilities.py +45 -0
- pidgeon/models/invitation.py +271 -0
- pidgeon/models/invitation_attendees_item.py +80 -0
- pidgeon/models/invitation_response.py +86 -0
- pidgeon/models/keys_create_body.py +109 -0
- pidgeon/models/keys_create_body_access.py +10 -0
- pidgeon/models/keys_create_response_201.py +67 -0
- pidgeon/models/keys_get_response_200.py +67 -0
- pidgeon/models/keys_list_response_200.py +97 -0
- pidgeon/models/keys_revoke_response_200.py +67 -0
- pidgeon/models/keys_update_body.py +61 -0
- pidgeon/models/keys_update_response_200.py +67 -0
- pidgeon/models/label.py +74 -0
- pidgeon/models/label_removed.py +58 -0
- pidgeon/models/labels_create_body.py +62 -0
- pidgeon/models/labels_create_response_201.py +67 -0
- pidgeon/models/labels_delete_response_200.py +67 -0
- pidgeon/models/labels_list_response_200.py +97 -0
- pidgeon/models/labels_update_body.py +51 -0
- pidgeon/models/labels_update_response_200.py +67 -0
- pidgeon/models/mailbox.py +72 -0
- pidgeon/models/mailbox_access.py +101 -0
- pidgeon/models/mailbox_access_entries_item.py +83 -0
- pidgeon/models/mailbox_access_entries_item_access.py +10 -0
- pidgeon/models/mailbox_access_entries_item_kind.py +10 -0
- pidgeon/models/mailbox_access_owner_type_0.py +50 -0
- pidgeon/models/mailbox_change.py +80 -0
- pidgeon/models/mailbox_folder.py +16 -0
- pidgeon/models/mailboxes_changes_response_200.py +97 -0
- pidgeon/models/mailboxes_empty_trash_response_200.py +67 -0
- pidgeon/models/mailboxes_list_folder_response_200.py +97 -0
- pidgeon/models/mailboxes_list_response_200.py +97 -0
- pidgeon/models/member.py +82 -0
- pidgeon/models/member_role.py +9 -0
- pidgeon/models/message.py +290 -0
- pidgeon/models/message_attachments_item.py +74 -0
- pidgeon/models/message_cc_item.py +65 -0
- pidgeon/models/message_from.py +65 -0
- pidgeon/models/message_invitation_type_0.py +271 -0
- pidgeon/models/message_invitation_type_0_attendees_item.py +80 -0
- pidgeon/models/message_list_item.py +180 -0
- pidgeon/models/message_to_item.py +65 -0
- pidgeon/models/messages_act_body.py +61 -0
- pidgeon/models/messages_act_body_action.py +18 -0
- pidgeon/models/messages_act_response_200.py +67 -0
- pidgeon/models/messages_forward_body.py +125 -0
- pidgeon/models/messages_forward_response_202.py +67 -0
- pidgeon/models/messages_get_response_200.py +67 -0
- pidgeon/models/messages_list_in_thread_response_200.py +97 -0
- pidgeon/models/messages_reply_all_body.py +125 -0
- pidgeon/models/messages_reply_all_response_202.py +67 -0
- pidgeon/models/messages_reply_body.py +125 -0
- pidgeon/models/messages_reply_response_202.py +67 -0
- pidgeon/models/messages_respond_to_invitation_body.py +73 -0
- pidgeon/models/messages_respond_to_invitation_body_status.py +10 -0
- pidgeon/models/messages_respond_to_invitation_response_200.py +67 -0
- pidgeon/models/messages_respond_to_invitation_response_202.py +67 -0
- pidgeon/models/messages_search_in.py +16 -0
- pidgeon/models/messages_search_response_200.py +97 -0
- pidgeon/models/messages_send_body.py +205 -0
- pidgeon/models/messages_send_response_201.py +67 -0
- pidgeon/models/messages_undo_body.py +42 -0
- pidgeon/models/messages_undo_response_200.py +67 -0
- pidgeon/models/messages_update_body.py +68 -0
- pidgeon/models/messages_update_body_folder.py +11 -0
- pidgeon/models/messages_update_response_200.py +67 -0
- pidgeon/models/metrics.py +96 -0
- pidgeon/models/metrics_inbound.py +50 -0
- pidgeon/models/metrics_outbound.py +88 -0
- pidgeon/models/metrics_query_response_200.py +67 -0
- pidgeon/models/replayed.py +52 -0
- pidgeon/models/restored.py +42 -0
- pidgeon/models/revoked.py +58 -0
- pidgeon/models/routing_create_body_type_0.py +103 -0
- pidgeon/models/routing_create_body_type_1.py +103 -0
- pidgeon/models/routing_create_body_type_2.py +87 -0
- pidgeon/models/routing_create_response_201.py +67 -0
- pidgeon/models/routing_delete_response_200.py +67 -0
- pidgeon/models/routing_list_response_200.py +97 -0
- pidgeon/models/routing_rule.py +124 -0
- pidgeon/models/routing_rule_destination_type.py +9 -0
- pidgeon/models/routing_rule_match_type.py +10 -0
- pidgeon/models/routing_rule_status.py +9 -0
- pidgeon/models/routing_update_body.py +44 -0
- pidgeon/models/routing_update_body_status.py +9 -0
- pidgeon/models/routing_update_response_200.py +67 -0
- pidgeon/models/send_rule_removed.py +58 -0
- pidgeon/models/send_rules.py +72 -0
- pidgeon/models/send_rules_rules_item.py +76 -0
- pidgeon/models/send_rules_rules_item_match_type.py +9 -0
- pidgeon/models/sent.py +72 -0
- pidgeon/models/sent_rejected_item.py +50 -0
- pidgeon/models/setup_link.py +128 -0
- pidgeon/models/setup_link_reason_type_0.py +9 -0
- pidgeon/models/tenant_suspended.py +50 -0
- pidgeon/models/thread.py +153 -0
- pidgeon/models/thread_owner_type.py +10 -0
- pidgeon/models/thread_status.py +11 -0
- pidgeon/models/threads_get_response_200.py +67 -0
- pidgeon/models/threads_labels_create_body.py +43 -0
- pidgeon/models/threads_labels_create_response_200.py +97 -0
- pidgeon/models/threads_labels_delete_response_200.py +67 -0
- pidgeon/models/threads_labels_get_response_200.py +97 -0
- pidgeon/models/threads_list_response_200.py +97 -0
- pidgeon/models/threads_update_body.py +98 -0
- pidgeon/models/threads_update_body_owner_type.py +10 -0
- pidgeon/models/threads_update_body_status.py +11 -0
- pidgeon/models/threads_update_response_200.py +67 -0
- pidgeon/models/undo.py +62 -0
- pidgeon/models/uploaded_attachment.py +66 -0
- pidgeon/models/verification.py +88 -0
- pidgeon/models/verification_dns_records_item.py +126 -0
- pidgeon/models/verification_dns_records_item_status.py +11 -0
- pidgeon/models/webhook.py +124 -0
- pidgeon/models/webhook_created.py +132 -0
- pidgeon/models/webhook_headers.py +48 -0
- pidgeon/models/webhook_headers_headers.py +45 -0
- pidgeon/models/webhooks_create_body.py +97 -0
- pidgeon/models/webhooks_create_body_event_types_item.py +32 -0
- pidgeon/models/webhooks_create_response_201.py +67 -0
- pidgeon/models/webhooks_delete_response_200.py +67 -0
- pidgeon/models/webhooks_deliveries_response_200.py +97 -0
- pidgeon/models/webhooks_get_headers_response_200.py +67 -0
- pidgeon/models/webhooks_get_response_200.py +67 -0
- pidgeon/models/webhooks_list_response_200.py +97 -0
- pidgeon/models/webhooks_replay_response_200.py +67 -0
- pidgeon/models/webhooks_update_body.py +44 -0
- pidgeon/models/webhooks_update_body_status.py +9 -0
- pidgeon/models/webhooks_update_headers_body.py +74 -0
- pidgeon/models/webhooks_update_headers_body_headers.py +45 -0
- pidgeon/models/webhooks_update_headers_response_200.py +67 -0
- pidgeon/models/webhooks_update_response_200.py +67 -0
- pidgeon/models/workspace.py +66 -0
- pidgeon/models/workspace_get_response_200.py +67 -0
- pidgeon/models/workspace_members_response_200.py +97 -0
- pidgeon/py.typed +1 -0
- pidgeon/types.py +54 -0
- pidgeon-1.0.0.dist-info/METADATA +141 -0
- pidgeon-1.0.0.dist-info/RECORD +386 -0
- pidgeon-1.0.0.dist-info/WHEEL +4 -0
pidgeon/__init__.py
ADDED
pidgeon/api/__init__.py
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"""Contains methods for accessing the API"""
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"""Contains endpoint functions for accessing the API"""
|
|
@@ -0,0 +1,184 @@
|
|
|
1
|
+
from http import HTTPStatus
|
|
2
|
+
from typing import Any
|
|
3
|
+
|
|
4
|
+
import httpx
|
|
5
|
+
|
|
6
|
+
from ... import errors
|
|
7
|
+
from ...client import AuthenticatedClient, Client
|
|
8
|
+
from ...models.agent_attach_human_body import AgentAttachHumanBody
|
|
9
|
+
from ...models.agent_attach_human_response_200 import AgentAttachHumanResponse200
|
|
10
|
+
from ...models.error import Error
|
|
11
|
+
from ...types import Response
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
def _get_kwargs(
|
|
15
|
+
*,
|
|
16
|
+
body: AgentAttachHumanBody,
|
|
17
|
+
) -> dict[str, Any]:
|
|
18
|
+
headers: dict[str, Any] = {}
|
|
19
|
+
|
|
20
|
+
_kwargs: dict[str, Any] = {
|
|
21
|
+
"method": "post",
|
|
22
|
+
"url": "/agent/human",
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
_kwargs["json"] = body.to_dict()
|
|
26
|
+
|
|
27
|
+
headers["Content-Type"] = "application/json"
|
|
28
|
+
|
|
29
|
+
_kwargs["headers"] = headers
|
|
30
|
+
return _kwargs
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
def _parse_response(
|
|
34
|
+
*, client: AuthenticatedClient | Client, response: httpx.Response
|
|
35
|
+
) -> AgentAttachHumanResponse200 | Error | None:
|
|
36
|
+
if response.status_code == 200:
|
|
37
|
+
response_200 = AgentAttachHumanResponse200.from_dict(response.json())
|
|
38
|
+
|
|
39
|
+
return response_200
|
|
40
|
+
|
|
41
|
+
if response.status_code == 401:
|
|
42
|
+
response_401 = Error.from_dict(response.json())
|
|
43
|
+
|
|
44
|
+
return response_401
|
|
45
|
+
|
|
46
|
+
if response.status_code == 404:
|
|
47
|
+
response_404 = Error.from_dict(response.json())
|
|
48
|
+
|
|
49
|
+
return response_404
|
|
50
|
+
|
|
51
|
+
if response.status_code == 429:
|
|
52
|
+
response_429 = Error.from_dict(response.json())
|
|
53
|
+
|
|
54
|
+
return response_429
|
|
55
|
+
|
|
56
|
+
if client.raise_on_unexpected_status:
|
|
57
|
+
raise errors.UnexpectedStatus(response.status_code, response.content)
|
|
58
|
+
else:
|
|
59
|
+
return None
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
def _build_response(
|
|
63
|
+
*, client: AuthenticatedClient | Client, response: httpx.Response
|
|
64
|
+
) -> Response[AgentAttachHumanResponse200 | Error]:
|
|
65
|
+
return Response(
|
|
66
|
+
status_code=HTTPStatus(response.status_code),
|
|
67
|
+
content=response.content,
|
|
68
|
+
headers=response.headers,
|
|
69
|
+
parsed=_parse_response(client=client, response=response),
|
|
70
|
+
)
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
def sync_detailed(
|
|
74
|
+
*,
|
|
75
|
+
client: AuthenticatedClient | Client,
|
|
76
|
+
body: AgentAttachHumanBody,
|
|
77
|
+
) -> Response[AgentAttachHumanResponse200 | Error]:
|
|
78
|
+
"""Name the human for a signup
|
|
79
|
+
|
|
80
|
+
For a signup that named none. Sends a fresh code and restarts the clock.
|
|
81
|
+
|
|
82
|
+
Args:
|
|
83
|
+
body (AgentAttachHumanBody):
|
|
84
|
+
|
|
85
|
+
Raises:
|
|
86
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
87
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
88
|
+
|
|
89
|
+
Returns:
|
|
90
|
+
Response[AgentAttachHumanResponse200 | Error]
|
|
91
|
+
"""
|
|
92
|
+
|
|
93
|
+
kwargs = _get_kwargs(
|
|
94
|
+
body=body,
|
|
95
|
+
)
|
|
96
|
+
|
|
97
|
+
response = client.get_httpx_client().request(
|
|
98
|
+
**kwargs,
|
|
99
|
+
)
|
|
100
|
+
|
|
101
|
+
return _build_response(client=client, response=response)
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
def sync(
|
|
105
|
+
*,
|
|
106
|
+
client: AuthenticatedClient | Client,
|
|
107
|
+
body: AgentAttachHumanBody,
|
|
108
|
+
) -> AgentAttachHumanResponse200 | Error | None:
|
|
109
|
+
"""Name the human for a signup
|
|
110
|
+
|
|
111
|
+
For a signup that named none. Sends a fresh code and restarts the clock.
|
|
112
|
+
|
|
113
|
+
Args:
|
|
114
|
+
body (AgentAttachHumanBody):
|
|
115
|
+
|
|
116
|
+
Raises:
|
|
117
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
118
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
119
|
+
|
|
120
|
+
Returns:
|
|
121
|
+
AgentAttachHumanResponse200 | Error
|
|
122
|
+
"""
|
|
123
|
+
|
|
124
|
+
return sync_detailed(
|
|
125
|
+
client=client,
|
|
126
|
+
body=body,
|
|
127
|
+
).parsed
|
|
128
|
+
|
|
129
|
+
|
|
130
|
+
async def asyncio_detailed(
|
|
131
|
+
*,
|
|
132
|
+
client: AuthenticatedClient | Client,
|
|
133
|
+
body: AgentAttachHumanBody,
|
|
134
|
+
) -> Response[AgentAttachHumanResponse200 | Error]:
|
|
135
|
+
"""Name the human for a signup
|
|
136
|
+
|
|
137
|
+
For a signup that named none. Sends a fresh code and restarts the clock.
|
|
138
|
+
|
|
139
|
+
Args:
|
|
140
|
+
body (AgentAttachHumanBody):
|
|
141
|
+
|
|
142
|
+
Raises:
|
|
143
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
144
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
145
|
+
|
|
146
|
+
Returns:
|
|
147
|
+
Response[AgentAttachHumanResponse200 | Error]
|
|
148
|
+
"""
|
|
149
|
+
|
|
150
|
+
kwargs = _get_kwargs(
|
|
151
|
+
body=body,
|
|
152
|
+
)
|
|
153
|
+
|
|
154
|
+
response = await client.get_async_httpx_client().request(**kwargs)
|
|
155
|
+
|
|
156
|
+
return _build_response(client=client, response=response)
|
|
157
|
+
|
|
158
|
+
|
|
159
|
+
async def asyncio(
|
|
160
|
+
*,
|
|
161
|
+
client: AuthenticatedClient | Client,
|
|
162
|
+
body: AgentAttachHumanBody,
|
|
163
|
+
) -> AgentAttachHumanResponse200 | Error | None:
|
|
164
|
+
"""Name the human for a signup
|
|
165
|
+
|
|
166
|
+
For a signup that named none. Sends a fresh code and restarts the clock.
|
|
167
|
+
|
|
168
|
+
Args:
|
|
169
|
+
body (AgentAttachHumanBody):
|
|
170
|
+
|
|
171
|
+
Raises:
|
|
172
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
173
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
174
|
+
|
|
175
|
+
Returns:
|
|
176
|
+
AgentAttachHumanResponse200 | Error
|
|
177
|
+
"""
|
|
178
|
+
|
|
179
|
+
return (
|
|
180
|
+
await asyncio_detailed(
|
|
181
|
+
client=client,
|
|
182
|
+
body=body,
|
|
183
|
+
)
|
|
184
|
+
).parsed
|
|
@@ -0,0 +1,196 @@
|
|
|
1
|
+
from http import HTTPStatus
|
|
2
|
+
from typing import Any
|
|
3
|
+
|
|
4
|
+
import httpx
|
|
5
|
+
|
|
6
|
+
from ... import errors
|
|
7
|
+
from ...client import AuthenticatedClient, Client
|
|
8
|
+
from ...models.agent_sign_up_body import AgentSignUpBody
|
|
9
|
+
from ...models.agent_sign_up_response_201 import AgentSignUpResponse201
|
|
10
|
+
from ...models.error import Error
|
|
11
|
+
from ...types import Response
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
def _get_kwargs(
|
|
15
|
+
*,
|
|
16
|
+
body: AgentSignUpBody,
|
|
17
|
+
) -> dict[str, Any]:
|
|
18
|
+
headers: dict[str, Any] = {}
|
|
19
|
+
|
|
20
|
+
_kwargs: dict[str, Any] = {
|
|
21
|
+
"method": "post",
|
|
22
|
+
"url": "/agent/signup",
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
_kwargs["json"] = body.to_dict()
|
|
26
|
+
|
|
27
|
+
headers["Content-Type"] = "application/json"
|
|
28
|
+
|
|
29
|
+
_kwargs["headers"] = headers
|
|
30
|
+
return _kwargs
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
def _parse_response(
|
|
34
|
+
*, client: AuthenticatedClient | Client, response: httpx.Response
|
|
35
|
+
) -> AgentSignUpResponse201 | Error | None:
|
|
36
|
+
if response.status_code == 201:
|
|
37
|
+
response_201 = AgentSignUpResponse201.from_dict(response.json())
|
|
38
|
+
|
|
39
|
+
return response_201
|
|
40
|
+
|
|
41
|
+
if response.status_code == 401:
|
|
42
|
+
response_401 = Error.from_dict(response.json())
|
|
43
|
+
|
|
44
|
+
return response_401
|
|
45
|
+
|
|
46
|
+
if response.status_code == 404:
|
|
47
|
+
response_404 = Error.from_dict(response.json())
|
|
48
|
+
|
|
49
|
+
return response_404
|
|
50
|
+
|
|
51
|
+
if response.status_code == 429:
|
|
52
|
+
response_429 = Error.from_dict(response.json())
|
|
53
|
+
|
|
54
|
+
return response_429
|
|
55
|
+
|
|
56
|
+
if client.raise_on_unexpected_status:
|
|
57
|
+
raise errors.UnexpectedStatus(response.status_code, response.content)
|
|
58
|
+
else:
|
|
59
|
+
return None
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
def _build_response(
|
|
63
|
+
*, client: AuthenticatedClient | Client, response: httpx.Response
|
|
64
|
+
) -> Response[AgentSignUpResponse201 | Error]:
|
|
65
|
+
return Response(
|
|
66
|
+
status_code=HTTPStatus(response.status_code),
|
|
67
|
+
content=response.content,
|
|
68
|
+
headers=response.headers,
|
|
69
|
+
parsed=_parse_response(client=client, response=response),
|
|
70
|
+
)
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
def sync_detailed(
|
|
74
|
+
*,
|
|
75
|
+
client: AuthenticatedClient | Client,
|
|
76
|
+
body: AgentSignUpBody,
|
|
77
|
+
) -> Response[AgentSignUpResponse201 | Error]:
|
|
78
|
+
"""Sign an agent up
|
|
79
|
+
|
|
80
|
+
The one call in this API that needs no key. An agent names a username and, optionally, the human who
|
|
81
|
+
will own the mailbox; a six-digit code goes to that human and **nothing is created until it comes
|
|
82
|
+
back**. Without a `human_email` the name is reserved and dormant — attach one with `POST
|
|
83
|
+
/agent/human`.
|
|
84
|
+
|
|
85
|
+
Args:
|
|
86
|
+
body (AgentSignUpBody):
|
|
87
|
+
|
|
88
|
+
Raises:
|
|
89
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
90
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
91
|
+
|
|
92
|
+
Returns:
|
|
93
|
+
Response[AgentSignUpResponse201 | Error]
|
|
94
|
+
"""
|
|
95
|
+
|
|
96
|
+
kwargs = _get_kwargs(
|
|
97
|
+
body=body,
|
|
98
|
+
)
|
|
99
|
+
|
|
100
|
+
response = client.get_httpx_client().request(
|
|
101
|
+
**kwargs,
|
|
102
|
+
)
|
|
103
|
+
|
|
104
|
+
return _build_response(client=client, response=response)
|
|
105
|
+
|
|
106
|
+
|
|
107
|
+
def sync(
|
|
108
|
+
*,
|
|
109
|
+
client: AuthenticatedClient | Client,
|
|
110
|
+
body: AgentSignUpBody,
|
|
111
|
+
) -> AgentSignUpResponse201 | Error | None:
|
|
112
|
+
"""Sign an agent up
|
|
113
|
+
|
|
114
|
+
The one call in this API that needs no key. An agent names a username and, optionally, the human who
|
|
115
|
+
will own the mailbox; a six-digit code goes to that human and **nothing is created until it comes
|
|
116
|
+
back**. Without a `human_email` the name is reserved and dormant — attach one with `POST
|
|
117
|
+
/agent/human`.
|
|
118
|
+
|
|
119
|
+
Args:
|
|
120
|
+
body (AgentSignUpBody):
|
|
121
|
+
|
|
122
|
+
Raises:
|
|
123
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
124
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
125
|
+
|
|
126
|
+
Returns:
|
|
127
|
+
AgentSignUpResponse201 | Error
|
|
128
|
+
"""
|
|
129
|
+
|
|
130
|
+
return sync_detailed(
|
|
131
|
+
client=client,
|
|
132
|
+
body=body,
|
|
133
|
+
).parsed
|
|
134
|
+
|
|
135
|
+
|
|
136
|
+
async def asyncio_detailed(
|
|
137
|
+
*,
|
|
138
|
+
client: AuthenticatedClient | Client,
|
|
139
|
+
body: AgentSignUpBody,
|
|
140
|
+
) -> Response[AgentSignUpResponse201 | Error]:
|
|
141
|
+
"""Sign an agent up
|
|
142
|
+
|
|
143
|
+
The one call in this API that needs no key. An agent names a username and, optionally, the human who
|
|
144
|
+
will own the mailbox; a six-digit code goes to that human and **nothing is created until it comes
|
|
145
|
+
back**. Without a `human_email` the name is reserved and dormant — attach one with `POST
|
|
146
|
+
/agent/human`.
|
|
147
|
+
|
|
148
|
+
Args:
|
|
149
|
+
body (AgentSignUpBody):
|
|
150
|
+
|
|
151
|
+
Raises:
|
|
152
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
153
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
154
|
+
|
|
155
|
+
Returns:
|
|
156
|
+
Response[AgentSignUpResponse201 | Error]
|
|
157
|
+
"""
|
|
158
|
+
|
|
159
|
+
kwargs = _get_kwargs(
|
|
160
|
+
body=body,
|
|
161
|
+
)
|
|
162
|
+
|
|
163
|
+
response = await client.get_async_httpx_client().request(**kwargs)
|
|
164
|
+
|
|
165
|
+
return _build_response(client=client, response=response)
|
|
166
|
+
|
|
167
|
+
|
|
168
|
+
async def asyncio(
|
|
169
|
+
*,
|
|
170
|
+
client: AuthenticatedClient | Client,
|
|
171
|
+
body: AgentSignUpBody,
|
|
172
|
+
) -> AgentSignUpResponse201 | Error | None:
|
|
173
|
+
"""Sign an agent up
|
|
174
|
+
|
|
175
|
+
The one call in this API that needs no key. An agent names a username and, optionally, the human who
|
|
176
|
+
will own the mailbox; a six-digit code goes to that human and **nothing is created until it comes
|
|
177
|
+
back**. Without a `human_email` the name is reserved and dormant — attach one with `POST
|
|
178
|
+
/agent/human`.
|
|
179
|
+
|
|
180
|
+
Args:
|
|
181
|
+
body (AgentSignUpBody):
|
|
182
|
+
|
|
183
|
+
Raises:
|
|
184
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
185
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
186
|
+
|
|
187
|
+
Returns:
|
|
188
|
+
AgentSignUpResponse201 | Error
|
|
189
|
+
"""
|
|
190
|
+
|
|
191
|
+
return (
|
|
192
|
+
await asyncio_detailed(
|
|
193
|
+
client=client,
|
|
194
|
+
body=body,
|
|
195
|
+
)
|
|
196
|
+
).parsed
|
|
@@ -0,0 +1,192 @@
|
|
|
1
|
+
from http import HTTPStatus
|
|
2
|
+
from typing import Any
|
|
3
|
+
|
|
4
|
+
import httpx
|
|
5
|
+
|
|
6
|
+
from ... import errors
|
|
7
|
+
from ...client import AuthenticatedClient, Client
|
|
8
|
+
from ...models.agent_verify_body import AgentVerifyBody
|
|
9
|
+
from ...models.agent_verify_response_200 import AgentVerifyResponse200
|
|
10
|
+
from ...models.error import Error
|
|
11
|
+
from ...types import Response
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
def _get_kwargs(
|
|
15
|
+
*,
|
|
16
|
+
body: AgentVerifyBody,
|
|
17
|
+
) -> dict[str, Any]:
|
|
18
|
+
headers: dict[str, Any] = {}
|
|
19
|
+
|
|
20
|
+
_kwargs: dict[str, Any] = {
|
|
21
|
+
"method": "post",
|
|
22
|
+
"url": "/agent/verify",
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
_kwargs["json"] = body.to_dict()
|
|
26
|
+
|
|
27
|
+
headers["Content-Type"] = "application/json"
|
|
28
|
+
|
|
29
|
+
_kwargs["headers"] = headers
|
|
30
|
+
return _kwargs
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
def _parse_response(
|
|
34
|
+
*, client: AuthenticatedClient | Client, response: httpx.Response
|
|
35
|
+
) -> AgentVerifyResponse200 | Error | None:
|
|
36
|
+
if response.status_code == 200:
|
|
37
|
+
response_200 = AgentVerifyResponse200.from_dict(response.json())
|
|
38
|
+
|
|
39
|
+
return response_200
|
|
40
|
+
|
|
41
|
+
if response.status_code == 401:
|
|
42
|
+
response_401 = Error.from_dict(response.json())
|
|
43
|
+
|
|
44
|
+
return response_401
|
|
45
|
+
|
|
46
|
+
if response.status_code == 404:
|
|
47
|
+
response_404 = Error.from_dict(response.json())
|
|
48
|
+
|
|
49
|
+
return response_404
|
|
50
|
+
|
|
51
|
+
if response.status_code == 429:
|
|
52
|
+
response_429 = Error.from_dict(response.json())
|
|
53
|
+
|
|
54
|
+
return response_429
|
|
55
|
+
|
|
56
|
+
if client.raise_on_unexpected_status:
|
|
57
|
+
raise errors.UnexpectedStatus(response.status_code, response.content)
|
|
58
|
+
else:
|
|
59
|
+
return None
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
def _build_response(
|
|
63
|
+
*, client: AuthenticatedClient | Client, response: httpx.Response
|
|
64
|
+
) -> Response[AgentVerifyResponse200 | Error]:
|
|
65
|
+
return Response(
|
|
66
|
+
status_code=HTTPStatus(response.status_code),
|
|
67
|
+
content=response.content,
|
|
68
|
+
headers=response.headers,
|
|
69
|
+
parsed=_parse_response(client=client, response=response),
|
|
70
|
+
)
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
def sync_detailed(
|
|
74
|
+
*,
|
|
75
|
+
client: AuthenticatedClient | Client,
|
|
76
|
+
body: AgentVerifyBody,
|
|
77
|
+
) -> Response[AgentVerifyResponse200 | Error]:
|
|
78
|
+
"""Verify an agent with the human’s code
|
|
79
|
+
|
|
80
|
+
Creates the account and the address. Ten wrong codes spend the signup, whatever comes next. It
|
|
81
|
+
returns no key: the agent asks for one through the account it now belongs to, which is how every
|
|
82
|
+
other key is made.
|
|
83
|
+
|
|
84
|
+
Args:
|
|
85
|
+
body (AgentVerifyBody):
|
|
86
|
+
|
|
87
|
+
Raises:
|
|
88
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
89
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
90
|
+
|
|
91
|
+
Returns:
|
|
92
|
+
Response[AgentVerifyResponse200 | Error]
|
|
93
|
+
"""
|
|
94
|
+
|
|
95
|
+
kwargs = _get_kwargs(
|
|
96
|
+
body=body,
|
|
97
|
+
)
|
|
98
|
+
|
|
99
|
+
response = client.get_httpx_client().request(
|
|
100
|
+
**kwargs,
|
|
101
|
+
)
|
|
102
|
+
|
|
103
|
+
return _build_response(client=client, response=response)
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
def sync(
|
|
107
|
+
*,
|
|
108
|
+
client: AuthenticatedClient | Client,
|
|
109
|
+
body: AgentVerifyBody,
|
|
110
|
+
) -> AgentVerifyResponse200 | Error | None:
|
|
111
|
+
"""Verify an agent with the human’s code
|
|
112
|
+
|
|
113
|
+
Creates the account and the address. Ten wrong codes spend the signup, whatever comes next. It
|
|
114
|
+
returns no key: the agent asks for one through the account it now belongs to, which is how every
|
|
115
|
+
other key is made.
|
|
116
|
+
|
|
117
|
+
Args:
|
|
118
|
+
body (AgentVerifyBody):
|
|
119
|
+
|
|
120
|
+
Raises:
|
|
121
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
122
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
123
|
+
|
|
124
|
+
Returns:
|
|
125
|
+
AgentVerifyResponse200 | Error
|
|
126
|
+
"""
|
|
127
|
+
|
|
128
|
+
return sync_detailed(
|
|
129
|
+
client=client,
|
|
130
|
+
body=body,
|
|
131
|
+
).parsed
|
|
132
|
+
|
|
133
|
+
|
|
134
|
+
async def asyncio_detailed(
|
|
135
|
+
*,
|
|
136
|
+
client: AuthenticatedClient | Client,
|
|
137
|
+
body: AgentVerifyBody,
|
|
138
|
+
) -> Response[AgentVerifyResponse200 | Error]:
|
|
139
|
+
"""Verify an agent with the human’s code
|
|
140
|
+
|
|
141
|
+
Creates the account and the address. Ten wrong codes spend the signup, whatever comes next. It
|
|
142
|
+
returns no key: the agent asks for one through the account it now belongs to, which is how every
|
|
143
|
+
other key is made.
|
|
144
|
+
|
|
145
|
+
Args:
|
|
146
|
+
body (AgentVerifyBody):
|
|
147
|
+
|
|
148
|
+
Raises:
|
|
149
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
150
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
151
|
+
|
|
152
|
+
Returns:
|
|
153
|
+
Response[AgentVerifyResponse200 | Error]
|
|
154
|
+
"""
|
|
155
|
+
|
|
156
|
+
kwargs = _get_kwargs(
|
|
157
|
+
body=body,
|
|
158
|
+
)
|
|
159
|
+
|
|
160
|
+
response = await client.get_async_httpx_client().request(**kwargs)
|
|
161
|
+
|
|
162
|
+
return _build_response(client=client, response=response)
|
|
163
|
+
|
|
164
|
+
|
|
165
|
+
async def asyncio(
|
|
166
|
+
*,
|
|
167
|
+
client: AuthenticatedClient | Client,
|
|
168
|
+
body: AgentVerifyBody,
|
|
169
|
+
) -> AgentVerifyResponse200 | Error | None:
|
|
170
|
+
"""Verify an agent with the human’s code
|
|
171
|
+
|
|
172
|
+
Creates the account and the address. Ten wrong codes spend the signup, whatever comes next. It
|
|
173
|
+
returns no key: the agent asks for one through the account it now belongs to, which is how every
|
|
174
|
+
other key is made.
|
|
175
|
+
|
|
176
|
+
Args:
|
|
177
|
+
body (AgentVerifyBody):
|
|
178
|
+
|
|
179
|
+
Raises:
|
|
180
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
181
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
182
|
+
|
|
183
|
+
Returns:
|
|
184
|
+
AgentVerifyResponse200 | Error
|
|
185
|
+
"""
|
|
186
|
+
|
|
187
|
+
return (
|
|
188
|
+
await asyncio_detailed(
|
|
189
|
+
client=client,
|
|
190
|
+
body=body,
|
|
191
|
+
)
|
|
192
|
+
).parsed
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"""Contains endpoint functions for accessing the API"""
|