sanka-sdk 0.1.0__tar.gz
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.
- sanka_sdk-0.1.0/.gitignore +8 -0
- sanka_sdk-0.1.0/PKG-INFO +54 -0
- sanka_sdk-0.1.0/README.md +41 -0
- sanka_sdk-0.1.0/pyproject.toml +44 -0
- sanka_sdk-0.1.0/src/sanka_sdk/__init__.py +117 -0
- sanka_sdk-0.1.0/src/sanka_sdk/ai/__init__.py +4 -0
- sanka_sdk-0.1.0/src/sanka_sdk/ai/client.py +257 -0
- sanka_sdk-0.1.0/src/sanka_sdk/ai/raw_client.py +543 -0
- sanka_sdk-0.1.0/src/sanka_sdk/bills/__init__.py +4 -0
- sanka_sdk-0.1.0/src/sanka_sdk/bills/client.py +760 -0
- sanka_sdk-0.1.0/src/sanka_sdk/bills/raw_client.py +1237 -0
- sanka_sdk-0.1.0/src/sanka_sdk/calendar/__init__.py +4 -0
- sanka_sdk-0.1.0/src/sanka_sdk/calendar/client.py +575 -0
- sanka_sdk-0.1.0/src/sanka_sdk/calendar/raw_client.py +816 -0
- sanka_sdk-0.1.0/src/sanka_sdk/client.py +629 -0
- sanka_sdk-0.1.0/src/sanka_sdk/companies/__init__.py +4 -0
- sanka_sdk-0.1.0/src/sanka_sdk/companies/client.py +613 -0
- sanka_sdk-0.1.0/src/sanka_sdk/companies/raw_client.py +1112 -0
- sanka_sdk-0.1.0/src/sanka_sdk/contacts/__init__.py +4 -0
- sanka_sdk-0.1.0/src/sanka_sdk/contacts/client.py +613 -0
- sanka_sdk-0.1.0/src/sanka_sdk/contacts/raw_client.py +1112 -0
- sanka_sdk-0.1.0/src/sanka_sdk/core/__init__.py +34 -0
- sanka_sdk-0.1.0/src/sanka_sdk/core/api_error.py +23 -0
- sanka_sdk-0.1.0/src/sanka_sdk/core/client_wrapper.py +84 -0
- sanka_sdk-0.1.0/src/sanka_sdk/core/datetime_utils.py +28 -0
- sanka_sdk-0.1.0/src/sanka_sdk/core/file.py +67 -0
- sanka_sdk-0.1.0/src/sanka_sdk/core/force_multipart.py +18 -0
- sanka_sdk-0.1.0/src/sanka_sdk/core/http_client.py +543 -0
- sanka_sdk-0.1.0/src/sanka_sdk/core/http_response.py +55 -0
- sanka_sdk-0.1.0/src/sanka_sdk/core/http_sse/__init__.py +42 -0
- sanka_sdk-0.1.0/src/sanka_sdk/core/http_sse/_api.py +112 -0
- sanka_sdk-0.1.0/src/sanka_sdk/core/http_sse/_decoders.py +61 -0
- sanka_sdk-0.1.0/src/sanka_sdk/core/http_sse/_exceptions.py +7 -0
- sanka_sdk-0.1.0/src/sanka_sdk/core/http_sse/_models.py +17 -0
- sanka_sdk-0.1.0/src/sanka_sdk/core/jsonable_encoder.py +100 -0
- sanka_sdk-0.1.0/src/sanka_sdk/core/pydantic_utilities.py +260 -0
- sanka_sdk-0.1.0/src/sanka_sdk/core/query_encoder.py +58 -0
- sanka_sdk-0.1.0/src/sanka_sdk/core/remove_none_from_dict.py +11 -0
- sanka_sdk-0.1.0/src/sanka_sdk/core/request_options.py +35 -0
- sanka_sdk-0.1.0/src/sanka_sdk/core/serialization.py +276 -0
- sanka_sdk-0.1.0/src/sanka_sdk/core/unchecked_base_model.py +376 -0
- sanka_sdk-0.1.0/src/sanka_sdk/deals/__init__.py +4 -0
- sanka_sdk-0.1.0/src/sanka_sdk/deals/client.py +765 -0
- sanka_sdk-0.1.0/src/sanka_sdk/deals/raw_client.py +1300 -0
- sanka_sdk-0.1.0/src/sanka_sdk/disbursements/__init__.py +4 -0
- sanka_sdk-0.1.0/src/sanka_sdk/disbursements/client.py +728 -0
- sanka_sdk-0.1.0/src/sanka_sdk/disbursements/raw_client.py +1205 -0
- sanka_sdk-0.1.0/src/sanka_sdk/environment.py +7 -0
- sanka_sdk-0.1.0/src/sanka_sdk/errors/__init__.py +4 -0
- sanka_sdk-0.1.0/src/sanka_sdk/errors/bad_gateway_error.py +11 -0
- sanka_sdk-0.1.0/src/sanka_sdk/errors/bad_request_error.py +10 -0
- sanka_sdk-0.1.0/src/sanka_sdk/errors/conflict_error.py +10 -0
- sanka_sdk-0.1.0/src/sanka_sdk/errors/forbidden_error.py +10 -0
- sanka_sdk-0.1.0/src/sanka_sdk/errors/internal_server_error.py +10 -0
- sanka_sdk-0.1.0/src/sanka_sdk/errors/not_found_error.py +10 -0
- sanka_sdk-0.1.0/src/sanka_sdk/errors/service_unavailable_error.py +11 -0
- sanka_sdk-0.1.0/src/sanka_sdk/errors/unauthorized_error.py +10 -0
- sanka_sdk-0.1.0/src/sanka_sdk/estimates/__init__.py +4 -0
- sanka_sdk-0.1.0/src/sanka_sdk/estimates/client.py +728 -0
- sanka_sdk-0.1.0/src/sanka_sdk/estimates/raw_client.py +1139 -0
- sanka_sdk-0.1.0/src/sanka_sdk/expenses/__init__.py +4 -0
- sanka_sdk-0.1.0/src/sanka_sdk/expenses/client.py +753 -0
- sanka_sdk-0.1.0/src/sanka_sdk/expenses/raw_client.py +1321 -0
- sanka_sdk-0.1.0/src/sanka_sdk/inventories/__init__.py +4 -0
- sanka_sdk-0.1.0/src/sanka_sdk/inventories/client.py +648 -0
- sanka_sdk-0.1.0/src/sanka_sdk/inventories/raw_client.py +1059 -0
- sanka_sdk-0.1.0/src/sanka_sdk/inventory_transactions/__init__.py +4 -0
- sanka_sdk-0.1.0/src/sanka_sdk/inventory_transactions/client.py +624 -0
- sanka_sdk-0.1.0/src/sanka_sdk/inventory_transactions/raw_client.py +991 -0
- sanka_sdk-0.1.0/src/sanka_sdk/invoices/__init__.py +4 -0
- sanka_sdk-0.1.0/src/sanka_sdk/invoices/client.py +728 -0
- sanka_sdk-0.1.0/src/sanka_sdk/invoices/raw_client.py +1139 -0
- sanka_sdk-0.1.0/src/sanka_sdk/items/__init__.py +4 -0
- sanka_sdk-0.1.0/src/sanka_sdk/items/client.py +594 -0
- sanka_sdk-0.1.0/src/sanka_sdk/items/raw_client.py +999 -0
- sanka_sdk-0.1.0/src/sanka_sdk/locations/__init__.py +4 -0
- sanka_sdk-0.1.0/src/sanka_sdk/locations/client.py +628 -0
- sanka_sdk-0.1.0/src/sanka_sdk/locations/raw_client.py +1065 -0
- sanka_sdk-0.1.0/src/sanka_sdk/meters/__init__.py +4 -0
- sanka_sdk-0.1.0/src/sanka_sdk/meters/client.py +688 -0
- sanka_sdk-0.1.0/src/sanka_sdk/meters/raw_client.py +1125 -0
- sanka_sdk-0.1.0/src/sanka_sdk/orders/__init__.py +4 -0
- sanka_sdk-0.1.0/src/sanka_sdk/orders/client.py +659 -0
- sanka_sdk-0.1.0/src/sanka_sdk/orders/raw_client.py +1221 -0
- sanka_sdk-0.1.0/src/sanka_sdk/payments/__init__.py +4 -0
- sanka_sdk-0.1.0/src/sanka_sdk/payments/client.py +688 -0
- sanka_sdk-0.1.0/src/sanka_sdk/payments/raw_client.py +1125 -0
- sanka_sdk-0.1.0/src/sanka_sdk/properties/__init__.py +4 -0
- sanka_sdk-0.1.0/src/sanka_sdk/properties/client.py +759 -0
- sanka_sdk-0.1.0/src/sanka_sdk/properties/raw_client.py +1224 -0
- sanka_sdk-0.1.0/src/sanka_sdk/public_auth/__init__.py +4 -0
- sanka_sdk-0.1.0/src/sanka_sdk/public_auth/client.py +104 -0
- sanka_sdk-0.1.0/src/sanka_sdk/public_auth/raw_client.py +135 -0
- sanka_sdk-0.1.0/src/sanka_sdk/purchase_orders/__init__.py +4 -0
- sanka_sdk-0.1.0/src/sanka_sdk/purchase_orders/client.py +696 -0
- sanka_sdk-0.1.0/src/sanka_sdk/purchase_orders/raw_client.py +1173 -0
- sanka_sdk-0.1.0/src/sanka_sdk/py.typed +0 -0
- sanka_sdk-0.1.0/src/sanka_sdk/reports/__init__.py +4 -0
- sanka_sdk-0.1.0/src/sanka_sdk/reports/client.py +511 -0
- sanka_sdk-0.1.0/src/sanka_sdk/reports/raw_client.py +988 -0
- sanka_sdk-0.1.0/src/sanka_sdk/slips/__init__.py +4 -0
- sanka_sdk-0.1.0/src/sanka_sdk/slips/client.py +728 -0
- sanka_sdk-0.1.0/src/sanka_sdk/slips/raw_client.py +1205 -0
- sanka_sdk-0.1.0/src/sanka_sdk/subscriptions/__init__.py +4 -0
- sanka_sdk-0.1.0/src/sanka_sdk/subscriptions/client.py +572 -0
- sanka_sdk-0.1.0/src/sanka_sdk/subscriptions/raw_client.py +982 -0
- sanka_sdk-0.1.0/src/sanka_sdk/tickets/__init__.py +4 -0
- sanka_sdk-0.1.0/src/sanka_sdk/tickets/client.py +800 -0
- sanka_sdk-0.1.0/src/sanka_sdk/tickets/raw_client.py +1517 -0
- sanka_sdk-0.1.0/src/sanka_sdk/types/__init__.py +4 -0
- sanka_sdk-0.1.0/src/sanka_sdk/types/ai_error_response.py +22 -0
- sanka_sdk-0.1.0/src/sanka_sdk/types/bill_schema.py +32 -0
- sanka_sdk-0.1.0/src/sanka_sdk/types/bills_error_response.py +23 -0
- sanka_sdk-0.1.0/src/sanka_sdk/types/bulk_order_in.py +30 -0
- sanka_sdk-0.1.0/src/sanka_sdk/types/bulk_order_item_in.py +27 -0
- sanka_sdk-0.1.0/src/sanka_sdk/types/bulk_order_result.py +23 -0
- sanka_sdk-0.1.0/src/sanka_sdk/types/bulk_orders_response.py +24 -0
- sanka_sdk-0.1.0/src/sanka_sdk/types/calendar_day_schedule_schema.py +24 -0
- sanka_sdk-0.1.0/src/sanka_sdk/types/calendar_error_response.py +22 -0
- sanka_sdk-0.1.0/src/sanka_sdk/types/calendar_schedule_slot_schema.py +21 -0
- sanka_sdk-0.1.0/src/sanka_sdk/types/calendar_workspace_schema.py +23 -0
- sanka_sdk-0.1.0/src/sanka_sdk/types/case_schema.py +37 -0
- sanka_sdk-0.1.0/src/sanka_sdk/types/cases_error_response.py +22 -0
- sanka_sdk-0.1.0/src/sanka_sdk/types/commerce_meter_schema.py +36 -0
- sanka_sdk-0.1.0/src/sanka_sdk/types/commerce_meter_schema_meter_id.py +5 -0
- sanka_sdk-0.1.0/src/sanka_sdk/types/companies_error_response.py +22 -0
- sanka_sdk-0.1.0/src/sanka_sdk/types/companies_list_response.py +26 -0
- sanka_sdk-0.1.0/src/sanka_sdk/types/company_schema.py +30 -0
- sanka_sdk-0.1.0/src/sanka_sdk/types/contact_schema.py +28 -0
- sanka_sdk-0.1.0/src/sanka_sdk/types/contacts_error_response.py +22 -0
- sanka_sdk-0.1.0/src/sanka_sdk/types/contacts_list_response.py +26 -0
- sanka_sdk-0.1.0/src/sanka_sdk/types/disbursement_schema.py +30 -0
- sanka_sdk-0.1.0/src/sanka_sdk/types/disbursements_error_response.py +23 -0
- sanka_sdk-0.1.0/src/sanka_sdk/types/enrich_company_seed.py +22 -0
- sanka_sdk-0.1.0/src/sanka_sdk/types/enrich_response.py +23 -0
- sanka_sdk-0.1.0/src/sanka_sdk/types/enrich_response_payload.py +30 -0
- sanka_sdk-0.1.0/src/sanka_sdk/types/estimate_schema.py +31 -0
- sanka_sdk-0.1.0/src/sanka_sdk/types/estimates_error_response.py +22 -0
- sanka_sdk-0.1.0/src/sanka_sdk/types/expense_schema.py +32 -0
- sanka_sdk-0.1.0/src/sanka_sdk/types/expenses_error_response.py +23 -0
- sanka_sdk-0.1.0/src/sanka_sdk/types/inventories_error_response.py +23 -0
- sanka_sdk-0.1.0/src/sanka_sdk/types/inventory_transaction_schema.py +39 -0
- sanka_sdk-0.1.0/src/sanka_sdk/types/inventory_transaction_schema_inventory_id.py +5 -0
- sanka_sdk-0.1.0/src/sanka_sdk/types/inventory_transaction_schema_transaction_id.py +5 -0
- sanka_sdk-0.1.0/src/sanka_sdk/types/inventory_transactions_error_response.py +23 -0
- sanka_sdk-0.1.0/src/sanka_sdk/types/inventory_warehouse_schema.py +35 -0
- sanka_sdk-0.1.0/src/sanka_sdk/types/inventory_warehouse_schema_id_iw.py +5 -0
- sanka_sdk-0.1.0/src/sanka_sdk/types/invoice_schema.py +31 -0
- sanka_sdk-0.1.0/src/sanka_sdk/types/invoices_error_response.py +22 -0
- sanka_sdk-0.1.0/src/sanka_sdk/types/items_error_response.py +22 -0
- sanka_sdk-0.1.0/src/sanka_sdk/types/locations_error_response.py +22 -0
- sanka_sdk-0.1.0/src/sanka_sdk/types/meters_error_response.py +22 -0
- sanka_sdk-0.1.0/src/sanka_sdk/types/orders_error_response.py +22 -0
- sanka_sdk-0.1.0/src/sanka_sdk/types/orders_list_response.py +25 -0
- sanka_sdk-0.1.0/src/sanka_sdk/types/payments_error_response.py +22 -0
- sanka_sdk-0.1.0/src/sanka_sdk/types/public_auth_error_response.py +22 -0
- sanka_sdk-0.1.0/src/sanka_sdk/types/public_auth_whoami_payload.py +33 -0
- sanka_sdk-0.1.0/src/sanka_sdk/types/public_auth_whoami_response.py +23 -0
- sanka_sdk-0.1.0/src/sanka_sdk/types/public_bill_request.py +36 -0
- sanka_sdk-0.1.0/src/sanka_sdk/types/public_bill_response.py +24 -0
- sanka_sdk-0.1.0/src/sanka_sdk/types/public_calendar_attendance_schema.py +29 -0
- sanka_sdk-0.1.0/src/sanka_sdk/types/public_calendar_availability_day_schema.py +23 -0
- sanka_sdk-0.1.0/src/sanka_sdk/types/public_calendar_availability_response.py +24 -0
- sanka_sdk-0.1.0/src/sanka_sdk/types/public_calendar_bootstrap_response.py +29 -0
- sanka_sdk-0.1.0/src/sanka_sdk/types/public_calendar_event_schema.py +33 -0
- sanka_sdk-0.1.0/src/sanka_sdk/types/public_calendar_mutation_response.py +26 -0
- sanka_sdk-0.1.0/src/sanka_sdk/types/public_case_pipeline_schema.py +26 -0
- sanka_sdk-0.1.0/src/sanka_sdk/types/public_case_pipeline_stage_schema.py +24 -0
- sanka_sdk-0.1.0/src/sanka_sdk/types/public_case_request.py +56 -0
- sanka_sdk-0.1.0/src/sanka_sdk/types/public_case_response.py +24 -0
- sanka_sdk-0.1.0/src/sanka_sdk/types/public_company_request.py +27 -0
- sanka_sdk-0.1.0/src/sanka_sdk/types/public_company_response.py +24 -0
- sanka_sdk-0.1.0/src/sanka_sdk/types/public_contact_request.py +27 -0
- sanka_sdk-0.1.0/src/sanka_sdk/types/public_contact_response.py +24 -0
- sanka_sdk-0.1.0/src/sanka_sdk/types/public_create_report_response.py +25 -0
- sanka_sdk-0.1.0/src/sanka_sdk/types/public_delete_report_response.py +23 -0
- sanka_sdk-0.1.0/src/sanka_sdk/types/public_disbursement_request.py +34 -0
- sanka_sdk-0.1.0/src/sanka_sdk/types/public_disbursement_response.py +24 -0
- sanka_sdk-0.1.0/src/sanka_sdk/types/public_estimate_request.py +34 -0
- sanka_sdk-0.1.0/src/sanka_sdk/types/public_estimate_response.py +24 -0
- sanka_sdk-0.1.0/src/sanka_sdk/types/public_expense_attachment_file_ref.py +22 -0
- sanka_sdk-0.1.0/src/sanka_sdk/types/public_expense_attachment_payload.py +21 -0
- sanka_sdk-0.1.0/src/sanka_sdk/types/public_expense_file_upload_response.py +23 -0
- sanka_sdk-0.1.0/src/sanka_sdk/types/public_expense_request.py +32 -0
- sanka_sdk-0.1.0/src/sanka_sdk/types/public_expense_response.py +24 -0
- sanka_sdk-0.1.0/src/sanka_sdk/types/public_inventory_request.py +32 -0
- sanka_sdk-0.1.0/src/sanka_sdk/types/public_inventory_response.py +25 -0
- sanka_sdk-0.1.0/src/sanka_sdk/types/public_inventory_transaction_request.py +35 -0
- sanka_sdk-0.1.0/src/sanka_sdk/types/public_inventory_transaction_response.py +24 -0
- sanka_sdk-0.1.0/src/sanka_sdk/types/public_invoice_request.py +34 -0
- sanka_sdk-0.1.0/src/sanka_sdk/types/public_invoice_response.py +24 -0
- sanka_sdk-0.1.0/src/sanka_sdk/types/public_item_request.py +29 -0
- sanka_sdk-0.1.0/src/sanka_sdk/types/public_item_response.py +24 -0
- sanka_sdk-0.1.0/src/sanka_sdk/types/public_location_request.py +30 -0
- sanka_sdk-0.1.0/src/sanka_sdk/types/public_location_response.py +24 -0
- sanka_sdk-0.1.0/src/sanka_sdk/types/public_meter_request.py +39 -0
- sanka_sdk-0.1.0/src/sanka_sdk/types/public_meter_response.py +24 -0
- sanka_sdk-0.1.0/src/sanka_sdk/types/public_order_delete_response.py +24 -0
- sanka_sdk-0.1.0/src/sanka_sdk/types/public_order_detail_schema.py +33 -0
- sanka_sdk-0.1.0/src/sanka_sdk/types/public_order_request.py +29 -0
- sanka_sdk-0.1.0/src/sanka_sdk/types/public_payment_request.py +39 -0
- sanka_sdk-0.1.0/src/sanka_sdk/types/public_payment_response.py +24 -0
- sanka_sdk-0.1.0/src/sanka_sdk/types/public_property_error_response.py +22 -0
- sanka_sdk-0.1.0/src/sanka_sdk/types/public_property_mutation_response.py +24 -0
- sanka_sdk-0.1.0/src/sanka_sdk/types/public_property_schema.py +41 -0
- sanka_sdk-0.1.0/src/sanka_sdk/types/public_property_schema_choice_values.py +5 -0
- sanka_sdk-0.1.0/src/sanka_sdk/types/public_property_upsert_request.py +34 -0
- sanka_sdk-0.1.0/src/sanka_sdk/types/public_property_upsert_request_choice_values.py +5 -0
- sanka_sdk-0.1.0/src/sanka_sdk/types/public_purchase_order_request.py +32 -0
- sanka_sdk-0.1.0/src/sanka_sdk/types/public_purchase_order_response.py +24 -0
- sanka_sdk-0.1.0/src/sanka_sdk/types/public_report_detail_schema.py +29 -0
- sanka_sdk-0.1.0/src/sanka_sdk/types/public_report_error_response.py +21 -0
- sanka_sdk-0.1.0/src/sanka_sdk/types/public_report_filter_input_schema.py +20 -0
- sanka_sdk-0.1.0/src/sanka_sdk/types/public_report_filter_schema.py +25 -0
- sanka_sdk-0.1.0/src/sanka_sdk/types/public_report_filters_schema.py +21 -0
- sanka_sdk-0.1.0/src/sanka_sdk/types/public_report_list_item_schema.py +27 -0
- sanka_sdk-0.1.0/src/sanka_sdk/types/public_report_metadata_request.py +39 -0
- sanka_sdk-0.1.0/src/sanka_sdk/types/public_report_metric_request.py +34 -0
- sanka_sdk-0.1.0/src/sanka_sdk/types/public_report_metric_schema.py +29 -0
- sanka_sdk-0.1.0/src/sanka_sdk/types/public_report_panel_detail_schema.py +38 -0
- sanka_sdk-0.1.0/src/sanka_sdk/types/public_report_panel_request.py +43 -0
- sanka_sdk-0.1.0/src/sanka_sdk/types/public_report_type_schema.py +20 -0
- sanka_sdk-0.1.0/src/sanka_sdk/types/public_slip_request.py +34 -0
- sanka_sdk-0.1.0/src/sanka_sdk/types/public_slip_response.py +24 -0
- sanka_sdk-0.1.0/src/sanka_sdk/types/public_subscription_delete_response.py +24 -0
- sanka_sdk-0.1.0/src/sanka_sdk/types/public_ticket_request.py +31 -0
- sanka_sdk-0.1.0/src/sanka_sdk/types/public_ticket_response.py +24 -0
- sanka_sdk-0.1.0/src/sanka_sdk/types/public_update_report_metadata_request.py +41 -0
- sanka_sdk-0.1.0/src/sanka_sdk/types/public_workflow_action_schema.py +28 -0
- sanka_sdk-0.1.0/src/sanka_sdk/types/public_workflow_actions_response.py +23 -0
- sanka_sdk-0.1.0/src/sanka_sdk/types/public_workflow_condition_group_response.py +24 -0
- sanka_sdk-0.1.0/src/sanka_sdk/types/public_workflow_condition_response.py +31 -0
- sanka_sdk-0.1.0/src/sanka_sdk/types/public_workflow_detail_response.py +31 -0
- sanka_sdk-0.1.0/src/sanka_sdk/types/public_workflow_list_item_response.py +29 -0
- sanka_sdk-0.1.0/src/sanka_sdk/types/public_workflow_list_response.py +25 -0
- sanka_sdk-0.1.0/src/sanka_sdk/types/public_workflow_node_response.py +34 -0
- sanka_sdk-0.1.0/src/sanka_sdk/types/public_workflow_response.py +26 -0
- sanka_sdk-0.1.0/src/sanka_sdk/types/public_workflow_run_payload.py +26 -0
- sanka_sdk-0.1.0/src/sanka_sdk/types/public_workflow_run_response.py +23 -0
- sanka_sdk-0.1.0/src/sanka_sdk/types/purchase_order_schema.py +30 -0
- sanka_sdk-0.1.0/src/sanka_sdk/types/purchase_orders_error_response.py +23 -0
- sanka_sdk-0.1.0/src/sanka_sdk/types/receipt_schema.py +31 -0
- sanka_sdk-0.1.0/src/sanka_sdk/types/score_response.py +23 -0
- sanka_sdk-0.1.0/src/sanka_sdk/types/score_response_payload.py +34 -0
- sanka_sdk-0.1.0/src/sanka_sdk/types/shop_turbo_inventory_schema.py +40 -0
- sanka_sdk-0.1.0/src/sanka_sdk/types/shop_turbo_item_schema.py +30 -0
- sanka_sdk-0.1.0/src/sanka_sdk/types/slip_schema.py +32 -0
- sanka_sdk-0.1.0/src/sanka_sdk/types/slips_error_response.py +23 -0
- sanka_sdk-0.1.0/src/sanka_sdk/types/subscription_contact_schema.py +23 -0
- sanka_sdk-0.1.0/src/sanka_sdk/types/subscription_detail_schema.py +37 -0
- sanka_sdk-0.1.0/src/sanka_sdk/types/subscription_error_response.py +22 -0
- sanka_sdk-0.1.0/src/sanka_sdk/types/subscription_item_input.py +23 -0
- sanka_sdk-0.1.0/src/sanka_sdk/types/subscription_item_schema.py +24 -0
- sanka_sdk-0.1.0/src/sanka_sdk/types/ticket_pipeline_schema.py +26 -0
- sanka_sdk-0.1.0/src/sanka_sdk/types/ticket_pipeline_stage_schema.py +25 -0
- sanka_sdk-0.1.0/src/sanka_sdk/types/ticket_schema.py +44 -0
- sanka_sdk-0.1.0/src/sanka_sdk/types/tickets_error_response.py +22 -0
- sanka_sdk-0.1.0/src/sanka_sdk/types/workflow_condition_group_input.py +24 -0
- sanka_sdk-0.1.0/src/sanka_sdk/types/workflow_condition_input.py +31 -0
- sanka_sdk-0.1.0/src/sanka_sdk/types/workflow_node_input.py +34 -0
- sanka_sdk-0.1.0/src/sanka_sdk/types/workflows_error_response.py +22 -0
- sanka_sdk-0.1.0/src/sanka_sdk/workflows/__init__.py +4 -0
- sanka_sdk-0.1.0/src/sanka_sdk/workflows/client.py +556 -0
- sanka_sdk-0.1.0/src/sanka_sdk/workflows/raw_client.py +1042 -0
sanka_sdk-0.1.0/PKG-INFO
ADDED
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: sanka-sdk
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: Python SDK for the Sanka API.
|
|
5
|
+
Project-URL: Homepage, https://sanka.com
|
|
6
|
+
Project-URL: Repository, https://github.com/sankaHQ/sanka-python
|
|
7
|
+
Author: Sanka
|
|
8
|
+
Requires-Python: >=3.9
|
|
9
|
+
Requires-Dist: httpx<1,>=0.27
|
|
10
|
+
Requires-Dist: pydantic<3,>=2.7
|
|
11
|
+
Requires-Dist: typing-extensions>=4.9
|
|
12
|
+
Description-Content-Type: text/markdown
|
|
13
|
+
|
|
14
|
+
# sanka-sdk
|
|
15
|
+
|
|
16
|
+
Python SDK for the Sanka API.
|
|
17
|
+
|
|
18
|
+
This package is generated from [Sanka's OpenAPI spec](/Users/haegwan/Sites/sanka/sanka-sdks/openapi.json) using Fern, then packaged locally for `uv` and PyPI.
|
|
19
|
+
|
|
20
|
+
## Install
|
|
21
|
+
|
|
22
|
+
```bash
|
|
23
|
+
uv add sanka-sdk
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
## Usage
|
|
27
|
+
|
|
28
|
+
```python
|
|
29
|
+
from sanka_sdk import SankaClient
|
|
30
|
+
|
|
31
|
+
client = SankaClient(token="YOUR_TOKEN")
|
|
32
|
+
response = client.public_auth.whoami()
|
|
33
|
+
print(response)
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
## Regenerate
|
|
37
|
+
|
|
38
|
+
```bash
|
|
39
|
+
./scripts/generate_sdk.sh
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
## Publish
|
|
43
|
+
|
|
44
|
+
This repo includes a GitHub Actions workflow for PyPI Trusted Publishing at [.github/workflows/publish.yml](/Users/haegwan/Sites/sanka/sanka-python/.github/workflows/publish.yml).
|
|
45
|
+
|
|
46
|
+
Configure a Trusted Publisher on PyPI for:
|
|
47
|
+
|
|
48
|
+
- owner: `sankaHQ`
|
|
49
|
+
- repository: `sanka-python`
|
|
50
|
+
- workflow: `.github/workflows/publish.yml`
|
|
51
|
+
- environment: `pypi`
|
|
52
|
+
|
|
53
|
+
Then publish by pushing a tag like `v0.1.0` or running the workflow manually.
|
|
54
|
+
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
# sanka-sdk
|
|
2
|
+
|
|
3
|
+
Python SDK for the Sanka API.
|
|
4
|
+
|
|
5
|
+
This package is generated from [Sanka's OpenAPI spec](/Users/haegwan/Sites/sanka/sanka-sdks/openapi.json) using Fern, then packaged locally for `uv` and PyPI.
|
|
6
|
+
|
|
7
|
+
## Install
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
uv add sanka-sdk
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
## Usage
|
|
14
|
+
|
|
15
|
+
```python
|
|
16
|
+
from sanka_sdk import SankaClient
|
|
17
|
+
|
|
18
|
+
client = SankaClient(token="YOUR_TOKEN")
|
|
19
|
+
response = client.public_auth.whoami()
|
|
20
|
+
print(response)
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
## Regenerate
|
|
24
|
+
|
|
25
|
+
```bash
|
|
26
|
+
./scripts/generate_sdk.sh
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
## Publish
|
|
30
|
+
|
|
31
|
+
This repo includes a GitHub Actions workflow for PyPI Trusted Publishing at [.github/workflows/publish.yml](/Users/haegwan/Sites/sanka/sanka-python/.github/workflows/publish.yml).
|
|
32
|
+
|
|
33
|
+
Configure a Trusted Publisher on PyPI for:
|
|
34
|
+
|
|
35
|
+
- owner: `sankaHQ`
|
|
36
|
+
- repository: `sanka-python`
|
|
37
|
+
- workflow: `.github/workflows/publish.yml`
|
|
38
|
+
- environment: `pypi`
|
|
39
|
+
|
|
40
|
+
Then publish by pushing a tag like `v0.1.0` or running the workflow manually.
|
|
41
|
+
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
[build-system]
|
|
2
|
+
requires = ["hatchling>=1.27.0"]
|
|
3
|
+
build-backend = "hatchling.build"
|
|
4
|
+
|
|
5
|
+
[project]
|
|
6
|
+
name = "sanka-sdk"
|
|
7
|
+
version = "0.1.0"
|
|
8
|
+
description = "Python SDK for the Sanka API."
|
|
9
|
+
readme = "README.md"
|
|
10
|
+
requires-python = ">=3.9"
|
|
11
|
+
authors = [
|
|
12
|
+
{ name = "Sanka" }
|
|
13
|
+
]
|
|
14
|
+
dependencies = [
|
|
15
|
+
"httpx>=0.27,<1",
|
|
16
|
+
"pydantic>=2.7,<3",
|
|
17
|
+
"typing-extensions>=4.9"
|
|
18
|
+
]
|
|
19
|
+
|
|
20
|
+
[project.urls]
|
|
21
|
+
Homepage = "https://sanka.com"
|
|
22
|
+
Repository = "https://github.com/sankaHQ/sanka-python"
|
|
23
|
+
|
|
24
|
+
[dependency-groups]
|
|
25
|
+
dev = [
|
|
26
|
+
"ruff>=0.12.0",
|
|
27
|
+
]
|
|
28
|
+
|
|
29
|
+
[tool.hatch.build.targets.wheel]
|
|
30
|
+
packages = ["src/sanka_sdk"]
|
|
31
|
+
|
|
32
|
+
[tool.hatch.build.targets.sdist]
|
|
33
|
+
include = [
|
|
34
|
+
"README.md",
|
|
35
|
+
"pyproject.toml",
|
|
36
|
+
"src/sanka_sdk",
|
|
37
|
+
]
|
|
38
|
+
|
|
39
|
+
[tool.ruff]
|
|
40
|
+
line-length = 120
|
|
41
|
+
target-version = "py39"
|
|
42
|
+
|
|
43
|
+
[tool.ruff.lint.per-file-ignores]
|
|
44
|
+
"src/sanka_sdk/**/*.py" = ["E402", "E711", "E721", "E722", "F841"]
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
|
|
3
|
+
# isort: skip_file
|
|
4
|
+
|
|
5
|
+
import typing
|
|
6
|
+
from importlib import import_module
|
|
7
|
+
|
|
8
|
+
if typing.TYPE_CHECKING:
|
|
9
|
+
from . import (
|
|
10
|
+
ai,
|
|
11
|
+
bills,
|
|
12
|
+
calendar,
|
|
13
|
+
companies,
|
|
14
|
+
contacts,
|
|
15
|
+
deals,
|
|
16
|
+
disbursements,
|
|
17
|
+
estimates,
|
|
18
|
+
expenses,
|
|
19
|
+
inventories,
|
|
20
|
+
inventory_transactions,
|
|
21
|
+
invoices,
|
|
22
|
+
items,
|
|
23
|
+
locations,
|
|
24
|
+
meters,
|
|
25
|
+
orders,
|
|
26
|
+
payments,
|
|
27
|
+
properties,
|
|
28
|
+
public_auth,
|
|
29
|
+
purchase_orders,
|
|
30
|
+
reports,
|
|
31
|
+
slips,
|
|
32
|
+
subscriptions,
|
|
33
|
+
tickets,
|
|
34
|
+
workflows,
|
|
35
|
+
)
|
|
36
|
+
from .client import AsyncSankaClient, SankaClient
|
|
37
|
+
_dynamic_imports: typing.Dict[str, str] = {
|
|
38
|
+
"AsyncSankaClient": ".client",
|
|
39
|
+
"SankaClient": ".client",
|
|
40
|
+
"ai": ".ai",
|
|
41
|
+
"bills": ".bills",
|
|
42
|
+
"calendar": ".calendar",
|
|
43
|
+
"companies": ".companies",
|
|
44
|
+
"contacts": ".contacts",
|
|
45
|
+
"deals": ".deals",
|
|
46
|
+
"disbursements": ".disbursements",
|
|
47
|
+
"estimates": ".estimates",
|
|
48
|
+
"expenses": ".expenses",
|
|
49
|
+
"inventories": ".inventories",
|
|
50
|
+
"inventory_transactions": ".inventory_transactions",
|
|
51
|
+
"invoices": ".invoices",
|
|
52
|
+
"items": ".items",
|
|
53
|
+
"locations": ".locations",
|
|
54
|
+
"meters": ".meters",
|
|
55
|
+
"orders": ".orders",
|
|
56
|
+
"payments": ".payments",
|
|
57
|
+
"properties": ".properties",
|
|
58
|
+
"public_auth": ".public_auth",
|
|
59
|
+
"purchase_orders": ".purchase_orders",
|
|
60
|
+
"reports": ".reports",
|
|
61
|
+
"slips": ".slips",
|
|
62
|
+
"subscriptions": ".subscriptions",
|
|
63
|
+
"tickets": ".tickets",
|
|
64
|
+
"workflows": ".workflows",
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
def __getattr__(attr_name: str) -> typing.Any:
|
|
69
|
+
module_name = _dynamic_imports.get(attr_name)
|
|
70
|
+
if module_name is None:
|
|
71
|
+
raise AttributeError(f"No {attr_name} found in _dynamic_imports for module name -> {__name__}")
|
|
72
|
+
try:
|
|
73
|
+
module = import_module(module_name, __package__)
|
|
74
|
+
if module_name == f".{attr_name}":
|
|
75
|
+
return module
|
|
76
|
+
else:
|
|
77
|
+
return getattr(module, attr_name)
|
|
78
|
+
except ImportError as e:
|
|
79
|
+
raise ImportError(f"Failed to import {attr_name} from {module_name}: {e}") from e
|
|
80
|
+
except AttributeError as e:
|
|
81
|
+
raise AttributeError(f"Failed to get {attr_name} from {module_name}: {e}") from e
|
|
82
|
+
|
|
83
|
+
|
|
84
|
+
def __dir__():
|
|
85
|
+
lazy_attrs = list(_dynamic_imports.keys())
|
|
86
|
+
return sorted(lazy_attrs)
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
__all__ = [
|
|
90
|
+
"AsyncSankaClient",
|
|
91
|
+
"SankaClient",
|
|
92
|
+
"ai",
|
|
93
|
+
"bills",
|
|
94
|
+
"calendar",
|
|
95
|
+
"companies",
|
|
96
|
+
"contacts",
|
|
97
|
+
"deals",
|
|
98
|
+
"disbursements",
|
|
99
|
+
"estimates",
|
|
100
|
+
"expenses",
|
|
101
|
+
"inventories",
|
|
102
|
+
"inventory_transactions",
|
|
103
|
+
"invoices",
|
|
104
|
+
"items",
|
|
105
|
+
"locations",
|
|
106
|
+
"meters",
|
|
107
|
+
"orders",
|
|
108
|
+
"payments",
|
|
109
|
+
"properties",
|
|
110
|
+
"public_auth",
|
|
111
|
+
"purchase_orders",
|
|
112
|
+
"reports",
|
|
113
|
+
"slips",
|
|
114
|
+
"subscriptions",
|
|
115
|
+
"tickets",
|
|
116
|
+
"workflows",
|
|
117
|
+
]
|
|
@@ -0,0 +1,257 @@
|
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
|
|
3
|
+
import typing
|
|
4
|
+
|
|
5
|
+
from ..core.client_wrapper import AsyncClientWrapper, SyncClientWrapper
|
|
6
|
+
from ..core.request_options import RequestOptions
|
|
7
|
+
from ..types.enrich_company_seed import EnrichCompanySeed
|
|
8
|
+
from ..types.enrich_response import EnrichResponse
|
|
9
|
+
from ..types.score_response import ScoreResponse
|
|
10
|
+
from .raw_client import AsyncRawAiClient, RawAiClient
|
|
11
|
+
|
|
12
|
+
# this is used as the default value for optional parameters
|
|
13
|
+
OMIT = typing.cast(typing.Any, ...)
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
class AiClient:
|
|
17
|
+
def __init__(self, *, client_wrapper: SyncClientWrapper):
|
|
18
|
+
self._raw_client = RawAiClient(client_wrapper=client_wrapper)
|
|
19
|
+
|
|
20
|
+
@property
|
|
21
|
+
def with_raw_response(self) -> RawAiClient:
|
|
22
|
+
"""
|
|
23
|
+
Retrieves a raw implementation of this client that returns raw responses.
|
|
24
|
+
|
|
25
|
+
Returns
|
|
26
|
+
-------
|
|
27
|
+
RawAiClient
|
|
28
|
+
"""
|
|
29
|
+
return self._raw_client
|
|
30
|
+
|
|
31
|
+
def api_routers_v_1_ai_api_enrich_record(
|
|
32
|
+
self,
|
|
33
|
+
*,
|
|
34
|
+
object_type: str,
|
|
35
|
+
record_id: typing.Optional[str] = OMIT,
|
|
36
|
+
seed: typing.Optional[EnrichCompanySeed] = OMIT,
|
|
37
|
+
custom_field_map: typing.Optional[typing.Dict[str, str]] = OMIT,
|
|
38
|
+
dry_run: typing.Optional[bool] = OMIT,
|
|
39
|
+
force_refresh: typing.Optional[bool] = OMIT,
|
|
40
|
+
request_options: typing.Optional[RequestOptions] = None,
|
|
41
|
+
) -> EnrichResponse:
|
|
42
|
+
"""
|
|
43
|
+
Parameters
|
|
44
|
+
----------
|
|
45
|
+
object_type : str
|
|
46
|
+
|
|
47
|
+
record_id : typing.Optional[str]
|
|
48
|
+
|
|
49
|
+
seed : typing.Optional[EnrichCompanySeed]
|
|
50
|
+
|
|
51
|
+
custom_field_map : typing.Optional[typing.Dict[str, str]]
|
|
52
|
+
|
|
53
|
+
dry_run : typing.Optional[bool]
|
|
54
|
+
|
|
55
|
+
force_refresh : typing.Optional[bool]
|
|
56
|
+
|
|
57
|
+
request_options : typing.Optional[RequestOptions]
|
|
58
|
+
Request-specific configuration.
|
|
59
|
+
|
|
60
|
+
Returns
|
|
61
|
+
-------
|
|
62
|
+
EnrichResponse
|
|
63
|
+
OK
|
|
64
|
+
|
|
65
|
+
Examples
|
|
66
|
+
--------
|
|
67
|
+
from sanka_sdk import SankaClient
|
|
68
|
+
|
|
69
|
+
client = SankaClient(
|
|
70
|
+
token="YOUR_TOKEN",
|
|
71
|
+
)
|
|
72
|
+
client.ai.api_routers_v_1_ai_api_enrich_record(
|
|
73
|
+
object_type="object_type",
|
|
74
|
+
)
|
|
75
|
+
"""
|
|
76
|
+
_response = self._raw_client.api_routers_v_1_ai_api_enrich_record(
|
|
77
|
+
object_type=object_type,
|
|
78
|
+
record_id=record_id,
|
|
79
|
+
seed=seed,
|
|
80
|
+
custom_field_map=custom_field_map,
|
|
81
|
+
dry_run=dry_run,
|
|
82
|
+
force_refresh=force_refresh,
|
|
83
|
+
request_options=request_options,
|
|
84
|
+
)
|
|
85
|
+
return _response.data
|
|
86
|
+
|
|
87
|
+
def api_routers_v_1_ai_api_score_record(
|
|
88
|
+
self,
|
|
89
|
+
*,
|
|
90
|
+
object_type: str,
|
|
91
|
+
record_id: str,
|
|
92
|
+
score_model_id: typing.Optional[str] = OMIT,
|
|
93
|
+
request_options: typing.Optional[RequestOptions] = None,
|
|
94
|
+
) -> ScoreResponse:
|
|
95
|
+
"""
|
|
96
|
+
Parameters
|
|
97
|
+
----------
|
|
98
|
+
object_type : str
|
|
99
|
+
|
|
100
|
+
record_id : str
|
|
101
|
+
|
|
102
|
+
score_model_id : typing.Optional[str]
|
|
103
|
+
|
|
104
|
+
request_options : typing.Optional[RequestOptions]
|
|
105
|
+
Request-specific configuration.
|
|
106
|
+
|
|
107
|
+
Returns
|
|
108
|
+
-------
|
|
109
|
+
ScoreResponse
|
|
110
|
+
OK
|
|
111
|
+
|
|
112
|
+
Examples
|
|
113
|
+
--------
|
|
114
|
+
from sanka_sdk import SankaClient
|
|
115
|
+
|
|
116
|
+
client = SankaClient(
|
|
117
|
+
token="YOUR_TOKEN",
|
|
118
|
+
)
|
|
119
|
+
client.ai.api_routers_v_1_ai_api_score_record(
|
|
120
|
+
object_type="object_type",
|
|
121
|
+
record_id="record_id",
|
|
122
|
+
)
|
|
123
|
+
"""
|
|
124
|
+
_response = self._raw_client.api_routers_v_1_ai_api_score_record(
|
|
125
|
+
object_type=object_type, record_id=record_id, score_model_id=score_model_id, request_options=request_options
|
|
126
|
+
)
|
|
127
|
+
return _response.data
|
|
128
|
+
|
|
129
|
+
|
|
130
|
+
class AsyncAiClient:
|
|
131
|
+
def __init__(self, *, client_wrapper: AsyncClientWrapper):
|
|
132
|
+
self._raw_client = AsyncRawAiClient(client_wrapper=client_wrapper)
|
|
133
|
+
|
|
134
|
+
@property
|
|
135
|
+
def with_raw_response(self) -> AsyncRawAiClient:
|
|
136
|
+
"""
|
|
137
|
+
Retrieves a raw implementation of this client that returns raw responses.
|
|
138
|
+
|
|
139
|
+
Returns
|
|
140
|
+
-------
|
|
141
|
+
AsyncRawAiClient
|
|
142
|
+
"""
|
|
143
|
+
return self._raw_client
|
|
144
|
+
|
|
145
|
+
async def api_routers_v_1_ai_api_enrich_record(
|
|
146
|
+
self,
|
|
147
|
+
*,
|
|
148
|
+
object_type: str,
|
|
149
|
+
record_id: typing.Optional[str] = OMIT,
|
|
150
|
+
seed: typing.Optional[EnrichCompanySeed] = OMIT,
|
|
151
|
+
custom_field_map: typing.Optional[typing.Dict[str, str]] = OMIT,
|
|
152
|
+
dry_run: typing.Optional[bool] = OMIT,
|
|
153
|
+
force_refresh: typing.Optional[bool] = OMIT,
|
|
154
|
+
request_options: typing.Optional[RequestOptions] = None,
|
|
155
|
+
) -> EnrichResponse:
|
|
156
|
+
"""
|
|
157
|
+
Parameters
|
|
158
|
+
----------
|
|
159
|
+
object_type : str
|
|
160
|
+
|
|
161
|
+
record_id : typing.Optional[str]
|
|
162
|
+
|
|
163
|
+
seed : typing.Optional[EnrichCompanySeed]
|
|
164
|
+
|
|
165
|
+
custom_field_map : typing.Optional[typing.Dict[str, str]]
|
|
166
|
+
|
|
167
|
+
dry_run : typing.Optional[bool]
|
|
168
|
+
|
|
169
|
+
force_refresh : typing.Optional[bool]
|
|
170
|
+
|
|
171
|
+
request_options : typing.Optional[RequestOptions]
|
|
172
|
+
Request-specific configuration.
|
|
173
|
+
|
|
174
|
+
Returns
|
|
175
|
+
-------
|
|
176
|
+
EnrichResponse
|
|
177
|
+
OK
|
|
178
|
+
|
|
179
|
+
Examples
|
|
180
|
+
--------
|
|
181
|
+
import asyncio
|
|
182
|
+
|
|
183
|
+
from sanka_sdk import AsyncSankaClient
|
|
184
|
+
|
|
185
|
+
client = AsyncSankaClient(
|
|
186
|
+
token="YOUR_TOKEN",
|
|
187
|
+
)
|
|
188
|
+
|
|
189
|
+
|
|
190
|
+
async def main() -> None:
|
|
191
|
+
await client.ai.api_routers_v_1_ai_api_enrich_record(
|
|
192
|
+
object_type="object_type",
|
|
193
|
+
)
|
|
194
|
+
|
|
195
|
+
|
|
196
|
+
asyncio.run(main())
|
|
197
|
+
"""
|
|
198
|
+
_response = await self._raw_client.api_routers_v_1_ai_api_enrich_record(
|
|
199
|
+
object_type=object_type,
|
|
200
|
+
record_id=record_id,
|
|
201
|
+
seed=seed,
|
|
202
|
+
custom_field_map=custom_field_map,
|
|
203
|
+
dry_run=dry_run,
|
|
204
|
+
force_refresh=force_refresh,
|
|
205
|
+
request_options=request_options,
|
|
206
|
+
)
|
|
207
|
+
return _response.data
|
|
208
|
+
|
|
209
|
+
async def api_routers_v_1_ai_api_score_record(
|
|
210
|
+
self,
|
|
211
|
+
*,
|
|
212
|
+
object_type: str,
|
|
213
|
+
record_id: str,
|
|
214
|
+
score_model_id: typing.Optional[str] = OMIT,
|
|
215
|
+
request_options: typing.Optional[RequestOptions] = None,
|
|
216
|
+
) -> ScoreResponse:
|
|
217
|
+
"""
|
|
218
|
+
Parameters
|
|
219
|
+
----------
|
|
220
|
+
object_type : str
|
|
221
|
+
|
|
222
|
+
record_id : str
|
|
223
|
+
|
|
224
|
+
score_model_id : typing.Optional[str]
|
|
225
|
+
|
|
226
|
+
request_options : typing.Optional[RequestOptions]
|
|
227
|
+
Request-specific configuration.
|
|
228
|
+
|
|
229
|
+
Returns
|
|
230
|
+
-------
|
|
231
|
+
ScoreResponse
|
|
232
|
+
OK
|
|
233
|
+
|
|
234
|
+
Examples
|
|
235
|
+
--------
|
|
236
|
+
import asyncio
|
|
237
|
+
|
|
238
|
+
from sanka_sdk import AsyncSankaClient
|
|
239
|
+
|
|
240
|
+
client = AsyncSankaClient(
|
|
241
|
+
token="YOUR_TOKEN",
|
|
242
|
+
)
|
|
243
|
+
|
|
244
|
+
|
|
245
|
+
async def main() -> None:
|
|
246
|
+
await client.ai.api_routers_v_1_ai_api_score_record(
|
|
247
|
+
object_type="object_type",
|
|
248
|
+
record_id="record_id",
|
|
249
|
+
)
|
|
250
|
+
|
|
251
|
+
|
|
252
|
+
asyncio.run(main())
|
|
253
|
+
"""
|
|
254
|
+
_response = await self._raw_client.api_routers_v_1_ai_api_score_record(
|
|
255
|
+
object_type=object_type, record_id=record_id, score_model_id=score_model_id, request_options=request_options
|
|
256
|
+
)
|
|
257
|
+
return _response.data
|