diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock index dbce569c..30e12c50 100644 --- a/.speakeasy/gen.lock +++ b/.speakeasy/gen.lock @@ -1,12 +1,12 @@ lockVersion: 2.0.0 id: fca0ac3a-5f4e-452c-bbc7-2311afa8da40 management: - docChecksum: 7c6ef2ed512e323eb81fb00225e7e166 + docChecksum: 30b8f4819c98857dd9903d879b3ebca9 docVersion: 10.11.5 - speakeasyVersion: 1.501.1 - generationVersion: 2.522.5 - releaseVersion: 0.8.0 - configChecksum: 5cc9cdf7161979901cc0e0ee06065fd3 + speakeasyVersion: 1.509.1 + generationVersion: 2.539.1 + releaseVersion: 0.8.1 + configChecksum: be7fc460b53aee18f5c05b65996bf729 repoURL: https://github.com/apideck-libraries/sdk-python.git installationURL: https://github.com/apideck-libraries/sdk-python.git published: true @@ -15,7 +15,7 @@ features: acceptHeaders: 3.0.0 additionalDependencies: 1.0.0 constsAndDefaults: 1.0.5 - core: 5.12.1 + core: 5.12.2 deepObjectParams: 0.1.0 defaultEnabledRetries: 0.2.0 deprecations: 3.0.2 @@ -349,6 +349,7 @@ generatedFiles: - docs/models/activitytype.md - docs/models/address.md - docs/models/addresses.md + - docs/models/addresstype.md - docs/models/ageddebtors.md - docs/models/agedreportfilter.md - docs/models/allocation.md @@ -520,7 +521,6 @@ generatedFiles: - docs/models/contactsfilter.md - docs/models/contactssort.md - docs/models/contactssortby.md - - docs/models/contacttype.md - docs/models/copyfolderrequest.md - docs/models/coverage.md - docs/models/createaccountingdepartmentresponse.md diff --git a/.speakeasy/gen.yaml b/.speakeasy/gen.yaml index 4edabfa4..fe61104d 100644 --- a/.speakeasy/gen.yaml +++ b/.speakeasy/gen.yaml @@ -18,7 +18,7 @@ generation: oAuth2ClientCredentialsEnabled: true oAuth2PasswordEnabled: true python: - version: 0.8.0 + version: 0.8.1 additionalDependencies: dev: {} main: {} diff --git a/.speakeasy/workflow.lock b/.speakeasy/workflow.lock index 9c01c9d5..0180def3 100644 --- a/.speakeasy/workflow.lock +++ b/.speakeasy/workflow.lock @@ -1,21 +1,21 @@ -speakeasyVersion: 1.501.1 +speakeasyVersion: 1.509.1 sources: Apideck: sourceNamespace: apideck - sourceRevisionDigest: sha256:f87c895c56d9e11c3082319a386ddfb6780ef54b06df2a05a47035140382938f - sourceBlobDigest: sha256:af4739fe176a827ca5a5054b4ca4061886717f775dbb5eb11f3c57e63a9f3b99 + sourceRevisionDigest: sha256:ab0f3282c2ccc48801b0c8b9d7c77e8996105398b5c915cb736e1a495ff7a603 + sourceBlobDigest: sha256:f529de1400bbcfb0b224fe2e481ea0cfdac15ab9d73f6510ce75a9dbcf609631 tags: - latest - - speakeasy-sdk-regen-1740396639 + - speakeasy-sdk-regen-1740649258 - 10.11.5 targets: apideck: source: Apideck sourceNamespace: apideck - sourceRevisionDigest: sha256:f87c895c56d9e11c3082319a386ddfb6780ef54b06df2a05a47035140382938f - sourceBlobDigest: sha256:af4739fe176a827ca5a5054b4ca4061886717f775dbb5eb11f3c57e63a9f3b99 + sourceRevisionDigest: sha256:ab0f3282c2ccc48801b0c8b9d7c77e8996105398b5c915cb736e1a495ff7a603 + sourceBlobDigest: sha256:f529de1400bbcfb0b224fe2e481ea0cfdac15ab9d73f6510ce75a9dbcf609631 codeSamplesNamespace: apideck-python-code-samples - codeSamplesRevisionDigest: sha256:bd0f347ccba2c1525660cc4e6400d319fe2e146d03c96dc62e5326971f89e3b8 + codeSamplesRevisionDigest: sha256:2c09ae63718394ff24472117f4a4fb378576cfa345813658841d75ad0f2aa699 workflow: workflowVersion: 1.0.0 speakeasyVersion: latest diff --git a/README.md b/README.md index a523808f..751dc497 100644 --- a/README.md +++ b/README.md @@ -118,6 +118,7 @@ Generally, the SDK will work well with most IDEs out of the box. However, when u from apideck_unify import Apideck import os + with Apideck( api_key=os.getenv("APIDECK_API_KEY", ""), consumer_id="test-consumer", @@ -150,6 +151,7 @@ import asyncio import os async def main(): + async with Apideck( api_key=os.getenv("APIDECK_API_KEY", ""), consumer_id="test-consumer", @@ -191,6 +193,7 @@ To authenticate with the API the `api_key` parameter must be set when initializi from apideck_unify import Apideck import os + with Apideck( api_key=os.getenv("APIDECK_API_KEY", ""), consumer_id="test-consumer", @@ -754,6 +757,7 @@ Here's an example of one such pagination call: from apideck_unify import Apideck import os + with Apideck( api_key=os.getenv("APIDECK_API_KEY", ""), consumer_id="test-consumer", @@ -789,6 +793,7 @@ from apideck_unify import Apideck from apideck_unify.utils import BackoffStrategy, RetryConfig import os + with Apideck( api_key=os.getenv("APIDECK_API_KEY", ""), consumer_id="test-consumer", @@ -819,6 +824,7 @@ from apideck_unify import Apideck from apideck_unify.utils import BackoffStrategy, RetryConfig import os + with Apideck( retry_config=RetryConfig("backoff", BackoffStrategy(1, 50, 1.1, 100), False), api_key=os.getenv("APIDECK_API_KEY", ""), @@ -875,6 +881,7 @@ When custom error responses are specified for an operation, the SDK may also rai from apideck_unify import Apideck, models import os + with Apideck( api_key=os.getenv("APIDECK_API_KEY", ""), consumer_id="test-consumer", @@ -929,6 +936,7 @@ The default server can be overridden globally by passing a URL to the `server_ur from apideck_unify import Apideck import os + with Apideck( server_url="https://unify.apideck.com", api_key=os.getenv("APIDECK_API_KEY", ""), @@ -960,6 +968,7 @@ The server URL can also be overridden on a per-operation basis, provided a serve from apideck_unify import Apideck import os + with Apideck( api_key=os.getenv("APIDECK_API_KEY", ""), consumer_id="test-consumer", @@ -1111,6 +1120,7 @@ The `Apideck` class implements the context manager protocol and registers a fina from apideck_unify import Apideck import os def main(): + with Apideck( api_key=os.getenv("APIDECK_API_KEY", ""), consumer_id="test-consumer", @@ -1121,6 +1131,7 @@ def main(): # Or when using async: async def amain(): + async with Apideck( api_key=os.getenv("APIDECK_API_KEY", ""), consumer_id="test-consumer", diff --git a/RELEASES.md b/RELEASES.md index 9e5d3fc2..9e54eb22 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -128,4 +128,14 @@ Based on: ### Generated - [python v0.8.0] . ### Releases -- [PyPI v0.8.0] https://pypi.org/project/apideck-unify/0.8.0 - . \ No newline at end of file +- [PyPI v0.8.0] https://pypi.org/project/apideck-unify/0.8.0 - . + +## 2025-03-05 00:16:56 +### Changes +Based on: +- OpenAPI Doc +- Speakeasy CLI 1.509.1 (2.539.1) https://github.com/speakeasy-api/speakeasy +### Generated +- [python v0.8.1] . +### Releases +- [PyPI v0.8.1] https://pypi.org/project/apideck-unify/0.8.1 - . \ No newline at end of file diff --git a/USAGE.md b/USAGE.md index 96ec2ad5..f91d9972 100644 --- a/USAGE.md +++ b/USAGE.md @@ -4,6 +4,7 @@ from apideck_unify import Apideck import os + with Apideck( api_key=os.getenv("APIDECK_API_KEY", ""), consumer_id="test-consumer", @@ -36,6 +37,7 @@ import asyncio import os async def main(): + async with Apideck( api_key=os.getenv("APIDECK_API_KEY", ""), consumer_id="test-consumer", diff --git a/docs/models/address.md b/docs/models/address.md index 829d095f..c1a40c3e 100644 --- a/docs/models/address.md +++ b/docs/models/address.md @@ -6,7 +6,7 @@ | Field | Type | Required | Description | Example | | ------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------ | | `id` | *OptionalNullable[str]* | :heavy_minus_sign: | Unique identifier for the address. | 123 | -| `type` | [OptionalNullable[models.Type]](../models/type.md) | :heavy_minus_sign: | The type of address. | primary | +| `type` | [OptionalNullable[models.AddressType]](../models/addresstype.md) | :heavy_minus_sign: | The type of address. | primary | | `string` | *OptionalNullable[str]* | :heavy_minus_sign: | The address string. Some APIs don't provide structured address data. | 25 Spring Street, Blackburn, VIC 3130 | | `name` | *OptionalNullable[str]* | :heavy_minus_sign: | The name of the address. | HQ US | | `line1` | *OptionalNullable[str]* | :heavy_minus_sign: | Line 1 of the address e.g. number, street, suite, apt #, etc. | Main street | diff --git a/docs/models/addresstype.md b/docs/models/addresstype.md new file mode 100644 index 00000000..b180b50d --- /dev/null +++ b/docs/models/addresstype.md @@ -0,0 +1,16 @@ +# AddressType + +The type of address. + + +## Values + +| Name | Value | +| ----------- | ----------- | +| `PRIMARY` | primary | +| `SECONDARY` | secondary | +| `HOME` | home | +| `OFFICE` | office | +| `SHIPPING` | shipping | +| `BILLING` | billing | +| `OTHER` | other | \ No newline at end of file diff --git a/docs/models/contact.md b/docs/models/contact.md index d9640a7d..aafbbef0 100644 --- a/docs/models/contact.md +++ b/docs/models/contact.md @@ -8,7 +8,7 @@ | `name` | *Nullable[str]* | :heavy_check_mark: | Full name of the contact. | Elon Musk | | `id` | *Optional[str]* | :heavy_minus_sign: | Unique identifier for the contact. | 12345 | | `owner_id` | *OptionalNullable[str]* | :heavy_minus_sign: | The owner of the contact. | 54321 | -| `type` | [OptionalNullable[models.ContactType]](../models/contacttype.md) | :heavy_minus_sign: | The type of the contact. | personal | +| `type` | [OptionalNullable[models.Type]](../models/type.md) | :heavy_minus_sign: | The type of the contact. | personal | | `company_id` | *OptionalNullable[str]* | :heavy_minus_sign: | The company the contact is associated with. | 23456 | | `company_name` | *OptionalNullable[str]* | :heavy_minus_sign: | The name of the company the contact is associated with. | 23456 | | `lead_id` | *OptionalNullable[str]* | :heavy_minus_sign: | The lead the contact is associated with. | 34567 | diff --git a/docs/models/contactinput.md b/docs/models/contactinput.md index d5650cc9..0112a474 100644 --- a/docs/models/contactinput.md +++ b/docs/models/contactinput.md @@ -7,7 +7,7 @@ | ------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------- | | `name` | *Nullable[str]* | :heavy_check_mark: | Full name of the contact. | Elon Musk | | `owner_id` | *OptionalNullable[str]* | :heavy_minus_sign: | The owner of the contact. | 54321 | -| `type` | [OptionalNullable[models.ContactType]](../models/contacttype.md) | :heavy_minus_sign: | The type of the contact. | personal | +| `type` | [OptionalNullable[models.Type]](../models/type.md) | :heavy_minus_sign: | The type of the contact. | personal | | `company_id` | *OptionalNullable[str]* | :heavy_minus_sign: | The company the contact is associated with. | 23456 | | `company_name` | *OptionalNullable[str]* | :heavy_minus_sign: | The name of the company the contact is associated with. | 23456 | | `lead_id` | *OptionalNullable[str]* | :heavy_minus_sign: | The lead the contact is associated with. | 34567 | diff --git a/docs/models/contacttype.md b/docs/models/contacttype.md deleted file mode 100644 index 68489040..00000000 --- a/docs/models/contacttype.md +++ /dev/null @@ -1,13 +0,0 @@ -# ContactType - -The type of the contact. - - -## Values - -| Name | Value | -| ---------- | ---------- | -| `CUSTOMER` | customer | -| `SUPPLIER` | supplier | -| `EMPLOYEE` | employee | -| `PERSONAL` | personal | \ No newline at end of file diff --git a/docs/models/type.md b/docs/models/type.md index 7b3719d1..5a009a15 100644 --- a/docs/models/type.md +++ b/docs/models/type.md @@ -1,16 +1,13 @@ # Type -The type of address. +The type of the contact. ## Values -| Name | Value | -| ----------- | ----------- | -| `PRIMARY` | primary | -| `SECONDARY` | secondary | -| `HOME` | home | -| `OFFICE` | office | -| `SHIPPING` | shipping | -| `BILLING` | billing | -| `OTHER` | other | \ No newline at end of file +| Name | Value | +| ---------- | ---------- | +| `CUSTOMER` | customer | +| `SUPPLIER` | supplier | +| `EMPLOYEE` | employee | +| `PERSONAL` | personal | \ No newline at end of file diff --git a/docs/sdks/activities/README.md b/docs/sdks/activities/README.md index 905ed0d8..bd9e1799 100644 --- a/docs/sdks/activities/README.md +++ b/docs/sdks/activities/README.md @@ -23,6 +23,7 @@ from apideck_unify import Apideck import dateutil.parser import os + with Apideck( api_key=os.getenv("APIDECK_API_KEY", ""), consumer_id="test-consumer", @@ -86,6 +87,7 @@ import apideck_unify from apideck_unify import Apideck import os + with Apideck( api_key=os.getenv("APIDECK_API_KEY", ""), consumer_id="test-consumer", @@ -94,7 +96,7 @@ with Apideck( res = apideck.crm.activities.create(type_=apideck_unify.ActivityType.MEETING, consumer_id="test-consumer", app_id="dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", service_id="salesforce", activity_datetime="2021-05-01T12:00:00.000Z", duration_seconds=1800, user_id="12345", account_id="12345", contact_id="12345", company_id="12345", opportunity_id="12345", lead_id="12345", owner_id="12345", campaign_id="12345", case_id="12345", asset_id="12345", contract_id="12345", product_id="12345", solution_id="12345", custom_object_id="12345", title="Meeting", description="More info about the meeting", note="An internal note about the meeting", location="Space", location_address={ "id": "123", - "type": apideck_unify.Type.PRIMARY, + "type": apideck_unify.AddressType.PRIMARY, "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", @@ -260,6 +262,7 @@ Get activity from apideck_unify import Apideck import os + with Apideck( api_key=os.getenv("APIDECK_API_KEY", ""), consumer_id="test-consumer", @@ -313,6 +316,7 @@ import apideck_unify from apideck_unify import Apideck import os + with Apideck( api_key=os.getenv("APIDECK_API_KEY", ""), consumer_id="test-consumer", @@ -321,7 +325,7 @@ with Apideck( res = apideck.crm.activities.update(id="", type_=apideck_unify.ActivityType.MEETING, consumer_id="test-consumer", app_id="dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", service_id="salesforce", activity_datetime="2021-05-01T12:00:00.000Z", duration_seconds=1800, user_id="12345", account_id="12345", contact_id="12345", company_id="12345", opportunity_id="12345", lead_id="12345", owner_id="12345", campaign_id="12345", case_id="12345", asset_id="12345", contract_id="12345", product_id="12345", solution_id="12345", custom_object_id="12345", title="Meeting", description="More info about the meeting", note="An internal note about the meeting", location="Space", location_address={ "id": "123", - "type": apideck_unify.Type.PRIMARY, + "type": apideck_unify.AddressType.PRIMARY, "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", @@ -542,6 +546,7 @@ Delete activity from apideck_unify import Apideck import os + with Apideck( api_key=os.getenv("APIDECK_API_KEY", ""), consumer_id="test-consumer", diff --git a/docs/sdks/ageddebtorssdk/README.md b/docs/sdks/ageddebtorssdk/README.md index aa09477c..8a81bc2f 100644 --- a/docs/sdks/ageddebtorssdk/README.md +++ b/docs/sdks/ageddebtorssdk/README.md @@ -17,6 +17,7 @@ Get Aged Debtors from apideck_unify import Apideck import os + with Apideck( api_key=os.getenv("APIDECK_API_KEY", ""), consumer_id="test-consumer", diff --git a/docs/sdks/apideckcompanies/README.md b/docs/sdks/apideckcompanies/README.md index dd15642d..85ba7fc7 100644 --- a/docs/sdks/apideckcompanies/README.md +++ b/docs/sdks/apideckcompanies/README.md @@ -21,6 +21,7 @@ List Companies from apideck_unify import Apideck import os + with Apideck( api_key=os.getenv("APIDECK_API_KEY", ""), consumer_id="test-consumer", @@ -78,6 +79,7 @@ import apideck_unify from apideck_unify import Apideck import os + with Apideck( api_key=os.getenv("APIDECK_API_KEY", ""), consumer_id="test-consumer", @@ -87,7 +89,7 @@ with Apideck( res = apideck.hris.companies.create(legal_name="SpaceX", consumer_id="test-consumer", app_id="dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", service_id="salesforce", display_name="SpaceX", subdomain="company", status=apideck_unify.HrisCompanyStatus.ACTIVE, company_number="123456-AB", currency=apideck_unify.Currency.USD, addresses=[ { "id": "123", - "type": apideck_unify.Type.PRIMARY, + "type": apideck_unify.AddressType.PRIMARY, "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", @@ -113,7 +115,7 @@ with Apideck( }, { "id": "123", - "type": apideck_unify.Type.PRIMARY, + "type": apideck_unify.AddressType.PRIMARY, "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", @@ -257,6 +259,7 @@ Get Company from apideck_unify import Apideck import os + with Apideck( api_key=os.getenv("APIDECK_API_KEY", ""), consumer_id="test-consumer", @@ -310,6 +313,7 @@ import apideck_unify from apideck_unify import Apideck import os + with Apideck( api_key=os.getenv("APIDECK_API_KEY", ""), consumer_id="test-consumer", @@ -319,7 +323,7 @@ with Apideck( res = apideck.hris.companies.update(id="", legal_name="SpaceX", consumer_id="test-consumer", app_id="dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", service_id="salesforce", display_name="SpaceX", subdomain="company", status=apideck_unify.HrisCompanyStatus.ACTIVE, company_number="123456-AB", currency=apideck_unify.Currency.USD, addresses=[ { "id": "123", - "type": apideck_unify.Type.PRIMARY, + "type": apideck_unify.AddressType.PRIMARY, "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", @@ -345,7 +349,7 @@ with Apideck( }, { "id": "123", - "type": apideck_unify.Type.PRIMARY, + "type": apideck_unify.AddressType.PRIMARY, "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", @@ -371,7 +375,7 @@ with Apideck( }, { "id": "123", - "type": apideck_unify.Type.PRIMARY, + "type": apideck_unify.AddressType.PRIMARY, "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", @@ -547,6 +551,7 @@ Delete Company from apideck_unify import Apideck import os + with Apideck( api_key=os.getenv("APIDECK_API_KEY", ""), consumer_id="test-consumer", diff --git a/docs/sdks/apideckcustomers/README.md b/docs/sdks/apideckcustomers/README.md index 041f59cb..41183475 100644 --- a/docs/sdks/apideckcustomers/README.md +++ b/docs/sdks/apideckcustomers/README.md @@ -18,6 +18,7 @@ List Customers from apideck_unify import Apideck import os + with Apideck( api_key=os.getenv("APIDECK_API_KEY", ""), consumer_id="test-consumer", @@ -78,6 +79,7 @@ Get Customer from apideck_unify import Apideck import os + with Apideck( api_key=os.getenv("APIDECK_API_KEY", ""), consumer_id="test-consumer", diff --git a/docs/sdks/apideckdepartments/README.md b/docs/sdks/apideckdepartments/README.md index 679081cd..fbd727c3 100644 --- a/docs/sdks/apideckdepartments/README.md +++ b/docs/sdks/apideckdepartments/README.md @@ -21,6 +21,7 @@ List Departments from apideck_unify import Apideck import os + with Apideck( api_key=os.getenv("APIDECK_API_KEY", ""), consumer_id="test-consumer", @@ -77,6 +78,7 @@ Create Department from apideck_unify import Apideck import os + with Apideck( api_key=os.getenv("APIDECK_API_KEY", ""), consumer_id="test-consumer", @@ -174,6 +176,7 @@ Get Department from apideck_unify import Apideck import os + with Apideck( api_key=os.getenv("APIDECK_API_KEY", ""), consumer_id="test-consumer", @@ -226,6 +229,7 @@ Update Department from apideck_unify import Apideck import os + with Apideck( api_key=os.getenv("APIDECK_API_KEY", ""), consumer_id="test-consumer", @@ -353,6 +357,7 @@ Delete Department from apideck_unify import Apideck import os + with Apideck( api_key=os.getenv("APIDECK_API_KEY", ""), consumer_id="test-consumer", diff --git a/docs/sdks/apiresourcecoveragesdk/README.md b/docs/sdks/apiresourcecoveragesdk/README.md index 61fc3699..4b1684e9 100644 --- a/docs/sdks/apiresourcecoveragesdk/README.md +++ b/docs/sdks/apiresourcecoveragesdk/README.md @@ -17,6 +17,7 @@ Get API Resource Coverage from apideck_unify import Apideck import os + with Apideck( api_key=os.getenv("APIDECK_API_KEY", ""), consumer_id="test-consumer", diff --git a/docs/sdks/apiresources/README.md b/docs/sdks/apiresources/README.md index 317bc465..c58b9e2e 100644 --- a/docs/sdks/apiresources/README.md +++ b/docs/sdks/apiresources/README.md @@ -17,6 +17,7 @@ Get API Resource from apideck_unify import Apideck import os + with Apideck( api_key=os.getenv("APIDECK_API_KEY", ""), consumer_id="test-consumer", diff --git a/docs/sdks/apis/README.md b/docs/sdks/apis/README.md index d07fe16a..87affe30 100644 --- a/docs/sdks/apis/README.md +++ b/docs/sdks/apis/README.md @@ -19,6 +19,7 @@ import apideck_unify from apideck_unify import Apideck import os + with Apideck( api_key=os.getenv("APIDECK_API_KEY", ""), consumer_id="test-consumer", @@ -69,6 +70,7 @@ Get API from apideck_unify import Apideck import os + with Apideck( api_key=os.getenv("APIDECK_API_KEY", ""), consumer_id="test-consumer", diff --git a/docs/sdks/applicants/README.md b/docs/sdks/applicants/README.md index f00241a1..326b322a 100644 --- a/docs/sdks/applicants/README.md +++ b/docs/sdks/applicants/README.md @@ -21,6 +21,7 @@ List Applicants from apideck_unify import Apideck import os + with Apideck( api_key=os.getenv("APIDECK_API_KEY", ""), consumer_id="test-consumer", @@ -82,6 +83,7 @@ from apideck_unify import Apideck import dateutil.parser import os + with Apideck( api_key=os.getenv("APIDECK_API_KEY", ""), consumer_id="test-consumer", @@ -124,7 +126,7 @@ with Apideck( ], addresses=[ { "id": "123", - "type": apideck_unify.Type.PRIMARY, + "type": apideck_unify.AddressType.PRIMARY, "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", @@ -150,7 +152,7 @@ with Apideck( }, { "id": "123", - "type": apideck_unify.Type.PRIMARY, + "type": apideck_unify.AddressType.PRIMARY, "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", @@ -176,7 +178,7 @@ with Apideck( }, { "id": "123", - "type": apideck_unify.Type.PRIMARY, + "type": apideck_unify.AddressType.PRIMARY, "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", @@ -324,6 +326,7 @@ Get Applicant from apideck_unify import Apideck import os + with Apideck( api_key=os.getenv("APIDECK_API_KEY", ""), consumer_id="test-consumer", @@ -378,6 +381,7 @@ from apideck_unify import Apideck import dateutil.parser import os + with Apideck( api_key=os.getenv("APIDECK_API_KEY", ""), consumer_id="test-consumer", @@ -436,7 +440,7 @@ with Apideck( ], addresses=[ { "id": "123", - "type": apideck_unify.Type.PRIMARY, + "type": apideck_unify.AddressType.PRIMARY, "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", @@ -462,7 +466,7 @@ with Apideck( }, { "id": "123", - "type": apideck_unify.Type.PRIMARY, + "type": apideck_unify.AddressType.PRIMARY, "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", @@ -488,7 +492,7 @@ with Apideck( }, { "id": "123", - "type": apideck_unify.Type.PRIMARY, + "type": apideck_unify.AddressType.PRIMARY, "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", @@ -650,6 +654,7 @@ Delete Applicant from apideck_unify import Apideck import os + with Apideck( api_key=os.getenv("APIDECK_API_KEY", ""), consumer_id="test-consumer", diff --git a/docs/sdks/applications/README.md b/docs/sdks/applications/README.md index 465809eb..074e4883 100644 --- a/docs/sdks/applications/README.md +++ b/docs/sdks/applications/README.md @@ -21,6 +21,7 @@ List Applications from apideck_unify import Apideck import os + with Apideck( api_key=os.getenv("APIDECK_API_KEY", ""), consumer_id="test-consumer", @@ -77,6 +78,7 @@ import apideck_unify from apideck_unify import Apideck import os + with Apideck( api_key=os.getenv("APIDECK_API_KEY", ""), consumer_id="test-consumer", @@ -178,6 +180,7 @@ Get Application from apideck_unify import Apideck import os + with Apideck( api_key=os.getenv("APIDECK_API_KEY", ""), consumer_id="test-consumer", @@ -230,6 +233,7 @@ import apideck_unify from apideck_unify import Apideck import os + with Apideck( api_key=os.getenv("APIDECK_API_KEY", ""), consumer_id="test-consumer", @@ -361,6 +365,7 @@ Delete Application from apideck_unify import Apideck import os + with Apideck( api_key=os.getenv("APIDECK_API_KEY", ""), consumer_id="test-consumer", diff --git a/docs/sdks/attachments/README.md b/docs/sdks/attachments/README.md index 2d57f9cf..2f7b1356 100644 --- a/docs/sdks/attachments/README.md +++ b/docs/sdks/attachments/README.md @@ -21,6 +21,7 @@ import apideck_unify from apideck_unify import Apideck import os + with Apideck( api_key=os.getenv("APIDECK_API_KEY", ""), consumer_id="test-consumer", @@ -77,6 +78,7 @@ import apideck_unify from apideck_unify import Apideck import os + with Apideck( api_key=os.getenv("APIDECK_API_KEY", ""), consumer_id="test-consumer", @@ -132,6 +134,7 @@ import apideck_unify from apideck_unify import Apideck import os + with Apideck( api_key=os.getenv("APIDECK_API_KEY", ""), consumer_id="test-consumer", @@ -186,6 +189,7 @@ import apideck_unify from apideck_unify import Apideck import os + with Apideck( api_key=os.getenv("APIDECK_API_KEY", ""), consumer_id="test-consumer", diff --git a/docs/sdks/balancesheetsdk/README.md b/docs/sdks/balancesheetsdk/README.md index 418113c2..597d8733 100644 --- a/docs/sdks/balancesheetsdk/README.md +++ b/docs/sdks/balancesheetsdk/README.md @@ -18,6 +18,7 @@ import apideck_unify from apideck_unify import Apideck import os + with Apideck( api_key=os.getenv("APIDECK_API_KEY", ""), consumer_id="test-consumer", diff --git a/docs/sdks/billpayments/README.md b/docs/sdks/billpayments/README.md index 901af9af..ae909571 100644 --- a/docs/sdks/billpayments/README.md +++ b/docs/sdks/billpayments/README.md @@ -23,6 +23,7 @@ from apideck_unify import Apideck import dateutil.parser import os + with Apideck( api_key=os.getenv("APIDECK_API_KEY", ""), consumer_id="test-consumer", @@ -87,6 +88,7 @@ from apideck_unify import Apideck import dateutil.parser import os + with Apideck( api_key=os.getenv("APIDECK_API_KEY", ""), consumer_id="test-consumer", @@ -102,7 +104,7 @@ with Apideck( "display_name": "Windsurf Shop", "address": { "id": "123", - "type": apideck_unify.Type.PRIMARY, + "type": apideck_unify.AddressType.PRIMARY, "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", @@ -283,6 +285,7 @@ Get Bill Payment from apideck_unify import Apideck import os + with Apideck( api_key=os.getenv("APIDECK_API_KEY", ""), consumer_id="test-consumer", @@ -337,6 +340,7 @@ from apideck_unify import Apideck import dateutil.parser import os + with Apideck( api_key=os.getenv("APIDECK_API_KEY", ""), consumer_id="test-consumer", @@ -352,7 +356,7 @@ with Apideck( "display_name": "Windsurf Shop", "address": { "id": "123", - "type": apideck_unify.Type.PRIMARY, + "type": apideck_unify.AddressType.PRIMARY, "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", @@ -551,6 +555,7 @@ Delete Bill Payment from apideck_unify import Apideck import os + with Apideck( api_key=os.getenv("APIDECK_API_KEY", ""), consumer_id="test-consumer", diff --git a/docs/sdks/bills/README.md b/docs/sdks/bills/README.md index 273c22a9..f4de52e8 100644 --- a/docs/sdks/bills/README.md +++ b/docs/sdks/bills/README.md @@ -23,6 +23,7 @@ from apideck_unify import Apideck import dateutil.parser import os + with Apideck( api_key=os.getenv("APIDECK_API_KEY", ""), consumer_id="test-consumer", @@ -87,6 +88,7 @@ from apideck_unify import Apideck import dateutil.parser import os + with Apideck( api_key=os.getenv("APIDECK_API_KEY", ""), consumer_id="test-consumer", @@ -98,7 +100,7 @@ with Apideck( "display_name": "Windsurf Shop", "address": { "id": "123", - "type": apideck_unify.Type.PRIMARY, + "type": apideck_unify.AddressType.PRIMARY, "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", @@ -328,6 +330,7 @@ Get Bill from apideck_unify import Apideck import os + with Apideck( api_key=os.getenv("APIDECK_API_KEY", ""), consumer_id="test-consumer", @@ -382,6 +385,7 @@ from apideck_unify import Apideck import dateutil.parser import os + with Apideck( api_key=os.getenv("APIDECK_API_KEY", ""), consumer_id="test-consumer", @@ -393,7 +397,7 @@ with Apideck( "display_name": "Windsurf Shop", "address": { "id": "123", - "type": apideck_unify.Type.PRIMARY, + "type": apideck_unify.AddressType.PRIMARY, "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", @@ -677,6 +681,7 @@ Delete Bill from apideck_unify import Apideck import os + with Apideck( api_key=os.getenv("APIDECK_API_KEY", ""), consumer_id="test-consumer", diff --git a/docs/sdks/collections/README.md b/docs/sdks/collections/README.md index 28020983..ce52d795 100644 --- a/docs/sdks/collections/README.md +++ b/docs/sdks/collections/README.md @@ -19,6 +19,7 @@ import apideck_unify from apideck_unify import Apideck import os + with Apideck( api_key=os.getenv("APIDECK_API_KEY", ""), consumer_id="test-consumer", @@ -78,6 +79,7 @@ Get Collection from apideck_unify import Apideck import os + with Apideck( api_key=os.getenv("APIDECK_API_KEY", ""), consumer_id="test-consumer", diff --git a/docs/sdks/collectiontags/README.md b/docs/sdks/collectiontags/README.md index a0ec90fb..80c2478f 100644 --- a/docs/sdks/collectiontags/README.md +++ b/docs/sdks/collectiontags/README.md @@ -17,6 +17,7 @@ List Tags from apideck_unify import Apideck import os + with Apideck( api_key=os.getenv("APIDECK_API_KEY", ""), consumer_id="test-consumer", diff --git a/docs/sdks/collectionticketcomments/README.md b/docs/sdks/collectionticketcomments/README.md index 51f08807..56d70813 100644 --- a/docs/sdks/collectionticketcomments/README.md +++ b/docs/sdks/collectionticketcomments/README.md @@ -22,6 +22,7 @@ import apideck_unify from apideck_unify import Apideck import os + with Apideck( api_key=os.getenv("APIDECK_API_KEY", ""), consumer_id="test-consumer", @@ -83,6 +84,7 @@ Create Comment from apideck_unify import Apideck import os + with Apideck( api_key=os.getenv("APIDECK_API_KEY", ""), consumer_id="test-consumer", @@ -180,6 +182,7 @@ Get Comment from apideck_unify import Apideck import os + with Apideck( api_key=os.getenv("APIDECK_API_KEY", ""), consumer_id="test-consumer", @@ -236,6 +239,7 @@ Update Comment from apideck_unify import Apideck import os + with Apideck( api_key=os.getenv("APIDECK_API_KEY", ""), consumer_id="test-consumer", @@ -363,6 +367,7 @@ Delete Comment from apideck_unify import Apideck import os + with Apideck( api_key=os.getenv("APIDECK_API_KEY", ""), consumer_id="test-consumer", diff --git a/docs/sdks/collectiontickets/README.md b/docs/sdks/collectiontickets/README.md index 86375904..872ae0db 100644 --- a/docs/sdks/collectiontickets/README.md +++ b/docs/sdks/collectiontickets/README.md @@ -22,6 +22,7 @@ import apideck_unify from apideck_unify import Apideck import os + with Apideck( api_key=os.getenv("APIDECK_API_KEY", ""), consumer_id="test-consumer", @@ -89,6 +90,7 @@ from apideck_unify import Apideck import dateutil.parser import os + with Apideck( api_key=os.getenv("APIDECK_API_KEY", ""), consumer_id="test-consumer", @@ -191,6 +193,7 @@ Get Ticket from apideck_unify import Apideck import os + with Apideck( api_key=os.getenv("APIDECK_API_KEY", ""), consumer_id="test-consumer", @@ -246,6 +249,7 @@ from apideck_unify import Apideck import dateutil.parser import os + with Apideck( api_key=os.getenv("APIDECK_API_KEY", ""), consumer_id="test-consumer", @@ -376,6 +380,7 @@ Delete Ticket from apideck_unify import Apideck import os + with Apideck( api_key=os.getenv("APIDECK_API_KEY", ""), consumer_id="test-consumer", diff --git a/docs/sdks/collectionusers/README.md b/docs/sdks/collectionusers/README.md index e6cb64a2..1f1b4a16 100644 --- a/docs/sdks/collectionusers/README.md +++ b/docs/sdks/collectionusers/README.md @@ -18,6 +18,7 @@ List Users from apideck_unify import Apideck import os + with Apideck( api_key=os.getenv("APIDECK_API_KEY", ""), consumer_id="test-consumer", @@ -75,6 +76,7 @@ Get user from apideck_unify import Apideck import os + with Apideck( api_key=os.getenv("APIDECK_API_KEY", ""), consumer_id="test-consumer", diff --git a/docs/sdks/companies/README.md b/docs/sdks/companies/README.md index 8f1d56f7..c09da1f6 100644 --- a/docs/sdks/companies/README.md +++ b/docs/sdks/companies/README.md @@ -22,6 +22,7 @@ import apideck_unify from apideck_unify import Apideck import os + with Apideck( api_key=os.getenv("APIDECK_API_KEY", ""), consumer_id="test-consumer", @@ -86,6 +87,7 @@ from apideck_unify import Apideck import dateutil.parser import os + with Apideck( api_key=os.getenv("APIDECK_API_KEY", ""), consumer_id="test-consumer", @@ -133,7 +135,7 @@ with Apideck( ], addresses=[ { "id": "123", - "type": apideck_unify.Type.PRIMARY, + "type": apideck_unify.AddressType.PRIMARY, "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", @@ -159,7 +161,7 @@ with Apideck( }, { "id": "123", - "type": apideck_unify.Type.PRIMARY, + "type": apideck_unify.AddressType.PRIMARY, "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", @@ -394,6 +396,7 @@ Get company from apideck_unify import Apideck import os + with Apideck( api_key=os.getenv("APIDECK_API_KEY", ""), consumer_id="test-consumer", @@ -448,6 +451,7 @@ from apideck_unify import Apideck import dateutil.parser import os + with Apideck( api_key=os.getenv("APIDECK_API_KEY", ""), consumer_id="test-consumer", @@ -508,7 +512,7 @@ with Apideck( ], addresses=[ { "id": "123", - "type": apideck_unify.Type.PRIMARY, + "type": apideck_unify.AddressType.PRIMARY, "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", @@ -534,7 +538,7 @@ with Apideck( }, { "id": "123", - "type": apideck_unify.Type.PRIMARY, + "type": apideck_unify.AddressType.PRIMARY, "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", @@ -719,6 +723,7 @@ Delete company from apideck_unify import Apideck import os + with Apideck( api_key=os.getenv("APIDECK_API_KEY", ""), consumer_id="test-consumer", diff --git a/docs/sdks/companyinfosdk/README.md b/docs/sdks/companyinfosdk/README.md index 43860256..59e1164e 100644 --- a/docs/sdks/companyinfosdk/README.md +++ b/docs/sdks/companyinfosdk/README.md @@ -17,6 +17,7 @@ Get company info from apideck_unify import Apideck import os + with Apideck( api_key=os.getenv("APIDECK_API_KEY", ""), consumer_id="test-consumer", diff --git a/docs/sdks/connectioncustommappings/README.md b/docs/sdks/connectioncustommappings/README.md index 15883074..187ef51a 100644 --- a/docs/sdks/connectioncustommappings/README.md +++ b/docs/sdks/connectioncustommappings/README.md @@ -17,6 +17,7 @@ This endpoint returns a list of custom mappings for a connection. from apideck_unify import Apideck import os + with Apideck( api_key=os.getenv("APIDECK_API_KEY", ""), consumer_id="test-consumer", diff --git a/docs/sdks/connections/README.md b/docs/sdks/connections/README.md index 23c3b752..d092db64 100644 --- a/docs/sdks/connections/README.md +++ b/docs/sdks/connections/README.md @@ -25,6 +25,7 @@ OAuth2 supported integrations will contain authorize and revoke links to handle from apideck_unify import Apideck import os + with Apideck( api_key=os.getenv("APIDECK_API_KEY", ""), consumer_id="test-consumer", @@ -75,6 +76,7 @@ Get a connection from apideck_unify import Apideck import os + with Apideck( api_key=os.getenv("APIDECK_API_KEY", ""), consumer_id="test-consumer", @@ -125,6 +127,7 @@ Update a connection from apideck_unify import Apideck import os + with Apideck( api_key=os.getenv("APIDECK_API_KEY", ""), consumer_id="test-consumer", @@ -346,6 +349,7 @@ Deletes a connection from apideck_unify import Apideck import os + with Apideck( api_key=os.getenv("APIDECK_API_KEY", ""), consumer_id="test-consumer", @@ -397,6 +401,7 @@ Import an authorized connection. from apideck_unify import Apideck import os + with Apideck( api_key=os.getenv("APIDECK_API_KEY", ""), consumer_id="test-consumer", @@ -465,6 +470,7 @@ Note: from apideck_unify import Apideck import os + with Apideck( api_key=os.getenv("APIDECK_API_KEY", ""), consumer_id="test-consumer", diff --git a/docs/sdks/connectionsettings/README.md b/docs/sdks/connectionsettings/README.md index f957882d..ae9db39c 100644 --- a/docs/sdks/connectionsettings/README.md +++ b/docs/sdks/connectionsettings/README.md @@ -19,6 +19,7 @@ This endpoint returns custom settings and their defaults required by connection from apideck_unify import Apideck import os + with Apideck( api_key=os.getenv("APIDECK_API_KEY", ""), consumer_id="test-consumer", @@ -70,6 +71,7 @@ Update default values for a connection's resource settings from apideck_unify import Apideck import os + with Apideck( api_key=os.getenv("APIDECK_API_KEY", ""), consumer_id="test-consumer", diff --git a/docs/sdks/connectordocs/README.md b/docs/sdks/connectordocs/README.md index 1ef3b2ee..646acdb8 100644 --- a/docs/sdks/connectordocs/README.md +++ b/docs/sdks/connectordocs/README.md @@ -17,6 +17,7 @@ Get Connector Doc content from apideck_unify import Apideck import os + with Apideck( api_key=os.getenv("APIDECK_API_KEY", ""), consumer_id="test-consumer", diff --git a/docs/sdks/connectorresources/README.md b/docs/sdks/connectorresources/README.md index 0bb9d6e1..cd6ebf33 100644 --- a/docs/sdks/connectorresources/README.md +++ b/docs/sdks/connectorresources/README.md @@ -18,6 +18,7 @@ import apideck_unify from apideck_unify import Apideck import os + with Apideck( api_key=os.getenv("APIDECK_API_KEY", ""), consumer_id="test-consumer", diff --git a/docs/sdks/connectors/README.md b/docs/sdks/connectors/README.md index d3c27755..8e5c03f5 100644 --- a/docs/sdks/connectors/README.md +++ b/docs/sdks/connectors/README.md @@ -19,6 +19,7 @@ import apideck_unify from apideck_unify import Apideck import os + with Apideck( api_key=os.getenv("APIDECK_API_KEY", ""), consumer_id="test-consumer", @@ -69,6 +70,7 @@ Get Connector from apideck_unify import Apideck import os + with Apideck( api_key=os.getenv("APIDECK_API_KEY", ""), consumer_id="test-consumer", diff --git a/docs/sdks/consumerrequestcounts/README.md b/docs/sdks/consumerrequestcounts/README.md index 84c80fa9..039bfbc3 100644 --- a/docs/sdks/consumerrequestcounts/README.md +++ b/docs/sdks/consumerrequestcounts/README.md @@ -18,6 +18,7 @@ Get consumer request counts within a given datetime range. from apideck_unify import Apideck import os + with Apideck( api_key=os.getenv("APIDECK_API_KEY", ""), consumer_id="test-consumer", diff --git a/docs/sdks/consumers/README.md b/docs/sdks/consumers/README.md index 41942857..54d87fc5 100644 --- a/docs/sdks/consumers/README.md +++ b/docs/sdks/consumers/README.md @@ -21,6 +21,7 @@ Create a consumer from apideck_unify import Apideck import os + with Apideck( api_key=os.getenv("APIDECK_API_KEY", ""), consumer_id="test-consumer", @@ -76,6 +77,7 @@ This endpoint includes all application consumers, along with an aggregated count from apideck_unify import Apideck import os + with Apideck( api_key=os.getenv("APIDECK_API_KEY", ""), consumer_id="test-consumer", @@ -126,6 +128,7 @@ Consumer detail including their aggregated counts with the connections they have from apideck_unify import Apideck import os + with Apideck( api_key=os.getenv("APIDECK_API_KEY", ""), consumer_id="test-consumer", @@ -174,6 +177,7 @@ Update consumer metadata such as name and email. from apideck_unify import Apideck import os + with Apideck( api_key=os.getenv("APIDECK_API_KEY", ""), consumer_id="test-consumer", @@ -228,6 +232,7 @@ Delete consumer and all their connections, including credentials. from apideck_unify import Apideck import os + with Apideck( api_key=os.getenv("APIDECK_API_KEY", ""), consumer_id="test-consumer", diff --git a/docs/sdks/contacts/README.md b/docs/sdks/contacts/README.md index 2af8f7a2..d30fb00c 100644 --- a/docs/sdks/contacts/README.md +++ b/docs/sdks/contacts/README.md @@ -22,6 +22,7 @@ import apideck_unify from apideck_unify import Apideck import os + with Apideck( api_key=os.getenv("APIDECK_API_KEY", ""), consumer_id="test-consumer", @@ -89,13 +90,14 @@ import apideck_unify from apideck_unify import Apideck import os + with Apideck( api_key=os.getenv("APIDECK_API_KEY", ""), consumer_id="test-consumer", app_id="dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", ) as apideck: - res = apideck.crm.contacts.create(name="Elon Musk", consumer_id="test-consumer", app_id="dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", service_id="salesforce", owner_id="54321", type_=apideck_unify.ContactType.PERSONAL, company_id="23456", company_name="23456", lead_id="34567", first_name="Elon", middle_name="D.", last_name="Musk", prefix="Mr.", suffix="PhD", title="CEO", department="Engineering", language="EN", gender=apideck_unify.ContactGender.FEMALE, birthday="2000-08-12", photo_url="https://unavatar.io/elon-musk", lead_source="Cold Call", fax="+12129876543", description="Internal champion", current_balance=10.5, status="open", active=True, websites=[ + res = apideck.crm.contacts.create(name="Elon Musk", consumer_id="test-consumer", app_id="dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", service_id="salesforce", owner_id="54321", type_=apideck_unify.Type.PERSONAL, company_id="23456", company_name="23456", lead_id="34567", first_name="Elon", middle_name="D.", last_name="Musk", prefix="Mr.", suffix="PhD", title="CEO", department="Engineering", language="EN", gender=apideck_unify.ContactGender.FEMALE, birthday="2000-08-12", photo_url="https://unavatar.io/elon-musk", lead_source="Cold Call", fax="+12129876543", description="Internal champion", current_balance=10.5, status="open", active=True, websites=[ { "url": "http://example.com", "id": "12345", @@ -109,7 +111,7 @@ with Apideck( ], addresses=[ { "id": "123", - "type": apideck_unify.Type.PRIMARY, + "type": apideck_unify.AddressType.PRIMARY, "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", @@ -135,7 +137,7 @@ with Apideck( }, { "id": "123", - "type": apideck_unify.Type.PRIMARY, + "type": apideck_unify.AddressType.PRIMARY, "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", @@ -307,7 +309,7 @@ with Apideck( | `app_id` | *Optional[str]* | :heavy_minus_sign: | The ID of your Unify application | dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX | | `service_id` | *Optional[str]* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | | `owner_id` | *OptionalNullable[str]* | :heavy_minus_sign: | The owner of the contact. | 54321 | -| `type` | [OptionalNullable[models.ContactType]](../../models/contacttype.md) | :heavy_minus_sign: | The type of the contact. | personal | +| `type` | [OptionalNullable[models.Type]](../../models/type.md) | :heavy_minus_sign: | The type of the contact. | personal | | `company_id` | *OptionalNullable[str]* | :heavy_minus_sign: | The company the contact is associated with. | 23456 | | `company_name` | *OptionalNullable[str]* | :heavy_minus_sign: | The name of the company the contact is associated with. | 23456 | | `lead_id` | *OptionalNullable[str]* | :heavy_minus_sign: | The lead the contact is associated with. | 34567 | @@ -366,6 +368,7 @@ Get contact from apideck_unify import Apideck import os + with Apideck( api_key=os.getenv("APIDECK_API_KEY", ""), consumer_id="test-consumer", @@ -426,13 +429,14 @@ import apideck_unify from apideck_unify import Apideck import os + with Apideck( api_key=os.getenv("APIDECK_API_KEY", ""), consumer_id="test-consumer", app_id="dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", ) as apideck: - res = apideck.crm.contacts.update(id="", name="Elon Musk", consumer_id="test-consumer", app_id="dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", service_id="salesforce", owner_id="54321", type_=apideck_unify.ContactType.PERSONAL, company_id="23456", company_name="23456", lead_id="34567", first_name="Elon", middle_name="D.", last_name="Musk", prefix="Mr.", suffix="PhD", title="CEO", department="Engineering", language="EN", gender=apideck_unify.ContactGender.FEMALE, birthday="2000-08-12", photo_url="https://unavatar.io/elon-musk", lead_source="Cold Call", fax="+12129876543", description="Internal champion", current_balance=10.5, status="open", active=True, websites=[ + res = apideck.crm.contacts.update(id="", name="Elon Musk", consumer_id="test-consumer", app_id="dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", service_id="salesforce", owner_id="54321", type_=apideck_unify.Type.PERSONAL, company_id="23456", company_name="23456", lead_id="34567", first_name="Elon", middle_name="D.", last_name="Musk", prefix="Mr.", suffix="PhD", title="CEO", department="Engineering", language="EN", gender=apideck_unify.ContactGender.FEMALE, birthday="2000-08-12", photo_url="https://unavatar.io/elon-musk", lead_source="Cold Call", fax="+12129876543", description="Internal champion", current_balance=10.5, status="open", active=True, websites=[ { "url": "http://example.com", "id": "12345", @@ -451,7 +455,7 @@ with Apideck( ], addresses=[ { "id": "123", - "type": apideck_unify.Type.PRIMARY, + "type": apideck_unify.AddressType.PRIMARY, "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", @@ -477,7 +481,7 @@ with Apideck( }, { "id": "123", - "type": apideck_unify.Type.PRIMARY, + "type": apideck_unify.AddressType.PRIMARY, "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", @@ -601,7 +605,7 @@ with Apideck( | `service_id` | *Optional[str]* | :heavy_minus_sign: | Provide the service id you want to call (e.g., pipedrive). Only needed when a consumer has activated multiple integrations for a Unified API. | salesforce | | `raw` | *Optional[bool]* | :heavy_minus_sign: | Include raw response. Mostly used for debugging purposes | | | `owner_id` | *OptionalNullable[str]* | :heavy_minus_sign: | The owner of the contact. | 54321 | -| `type` | [OptionalNullable[models.ContactType]](../../models/contacttype.md) | :heavy_minus_sign: | The type of the contact. | personal | +| `type` | [OptionalNullable[models.Type]](../../models/type.md) | :heavy_minus_sign: | The type of the contact. | personal | | `company_id` | *OptionalNullable[str]* | :heavy_minus_sign: | The company the contact is associated with. | 23456 | | `company_name` | *OptionalNullable[str]* | :heavy_minus_sign: | The name of the company the contact is associated with. | 23456 | | `lead_id` | *OptionalNullable[str]* | :heavy_minus_sign: | The lead the contact is associated with. | 34567 | @@ -660,6 +664,7 @@ Delete contact from apideck_unify import Apideck import os + with Apideck( api_key=os.getenv("APIDECK_API_KEY", ""), consumer_id="test-consumer", diff --git a/docs/sdks/createcallback/README.md b/docs/sdks/createcallback/README.md index 0bc2c707..74c7835a 100644 --- a/docs/sdks/createcallback/README.md +++ b/docs/sdks/createcallback/README.md @@ -18,6 +18,7 @@ This endpoint creates a callback state that can be used to issue requests to the from apideck_unify import Apideck import os + with Apideck( api_key=os.getenv("APIDECK_API_KEY", ""), consumer_id="test-consumer", diff --git a/docs/sdks/creditnotes/README.md b/docs/sdks/creditnotes/README.md index c849a9cd..0b4fddd8 100644 --- a/docs/sdks/creditnotes/README.md +++ b/docs/sdks/creditnotes/README.md @@ -23,6 +23,7 @@ from apideck_unify import Apideck import dateutil.parser import os + with Apideck( api_key=os.getenv("APIDECK_API_KEY", ""), consumer_id="test-consumer", @@ -87,6 +88,7 @@ from apideck_unify import Apideck import dateutil.parser import os + with Apideck( api_key=os.getenv("APIDECK_API_KEY", ""), consumer_id="test-consumer", @@ -242,7 +244,7 @@ with Apideck( }, ], note="Some notes about this credit note", terms="Some terms about this credit note", billing_address={ "id": "123", - "type": apideck_unify.Type.PRIMARY, + "type": apideck_unify.AddressType.PRIMARY, "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", @@ -267,7 +269,7 @@ with Apideck( "row_version": "1-12345", }, shipping_address={ "id": "123", - "type": apideck_unify.Type.PRIMARY, + "type": apideck_unify.AddressType.PRIMARY, "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", @@ -406,6 +408,7 @@ Get Credit Note from apideck_unify import Apideck import os + with Apideck( api_key=os.getenv("APIDECK_API_KEY", ""), consumer_id="test-consumer", @@ -460,6 +463,7 @@ from apideck_unify import Apideck import dateutil.parser import os + with Apideck( api_key=os.getenv("APIDECK_API_KEY", ""), consumer_id="test-consumer", @@ -654,7 +658,7 @@ with Apideck( }, ], note="Some notes about this credit note", terms="Some terms about this credit note", billing_address={ "id": "123", - "type": apideck_unify.Type.PRIMARY, + "type": apideck_unify.AddressType.PRIMARY, "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", @@ -679,7 +683,7 @@ with Apideck( "row_version": "1-12345", }, shipping_address={ "id": "123", - "type": apideck_unify.Type.PRIMARY, + "type": apideck_unify.AddressType.PRIMARY, "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", @@ -859,6 +863,7 @@ Delete Credit Note from apideck_unify import Apideck import os + with Apideck( api_key=os.getenv("APIDECK_API_KEY", ""), consumer_id="test-consumer", diff --git a/docs/sdks/customers/README.md b/docs/sdks/customers/README.md index e46168d8..089e2cbc 100644 --- a/docs/sdks/customers/README.md +++ b/docs/sdks/customers/README.md @@ -23,6 +23,7 @@ from apideck_unify import Apideck import dateutil.parser import os + with Apideck( api_key=os.getenv("APIDECK_API_KEY", ""), consumer_id="test-consumer", @@ -92,6 +93,7 @@ import apideck_unify from apideck_unify import Apideck import os + with Apideck( api_key=os.getenv("APIDECK_API_KEY", ""), consumer_id="test-consumer", @@ -101,7 +103,7 @@ with Apideck( res = apideck.accounting.customers.create(consumer_id="test-consumer", app_id="dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", service_id="salesforce", display_id="EMP00101", display_name="Windsurf Shop", company_name="SpaceX", company_id="12345", title="CEO", first_name="Elon", middle_name="D.", last_name="Musk", suffix="Jr.", individual=True, project=False, addresses=[ { "id": "123", - "type": apideck_unify.Type.PRIMARY, + "type": apideck_unify.AddressType.PRIMARY, "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", @@ -127,7 +129,7 @@ with Apideck( }, { "id": "123", - "type": apideck_unify.Type.PRIMARY, + "type": apideck_unify.AddressType.PRIMARY, "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", @@ -380,6 +382,7 @@ Get Customer from apideck_unify import Apideck import os + with Apideck( api_key=os.getenv("APIDECK_API_KEY", ""), consumer_id="test-consumer", @@ -433,6 +436,7 @@ import apideck_unify from apideck_unify import Apideck import os + with Apideck( api_key=os.getenv("APIDECK_API_KEY", ""), consumer_id="test-consumer", @@ -442,7 +446,7 @@ with Apideck( res = apideck.accounting.customers.update(id="", consumer_id="test-consumer", app_id="dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", service_id="salesforce", display_id="EMP00101", display_name="Windsurf Shop", company_name="SpaceX", company_id="12345", title="CEO", first_name="Elon", middle_name="D.", last_name="Musk", suffix="Jr.", individual=True, project=False, addresses=[ { "id": "123", - "type": apideck_unify.Type.PRIMARY, + "type": apideck_unify.AddressType.PRIMARY, "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", @@ -468,7 +472,7 @@ with Apideck( }, { "id": "123", - "type": apideck_unify.Type.PRIMARY, + "type": apideck_unify.AddressType.PRIMARY, "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", @@ -494,7 +498,7 @@ with Apideck( }, { "id": "123", - "type": apideck_unify.Type.PRIMARY, + "type": apideck_unify.AddressType.PRIMARY, "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", @@ -701,6 +705,7 @@ Delete Customer from apideck_unify import Apideck import os + with Apideck( api_key=os.getenv("APIDECK_API_KEY", ""), consumer_id="test-consumer", diff --git a/docs/sdks/customfields/README.md b/docs/sdks/customfields/README.md index e13aad3c..065914b7 100644 --- a/docs/sdks/customfields/README.md +++ b/docs/sdks/customfields/README.md @@ -18,6 +18,7 @@ This endpoint returns an custom fields on a connection resource. from apideck_unify import Apideck import os + with Apideck( api_key=os.getenv("APIDECK_API_KEY", ""), consumer_id="test-consumer", diff --git a/docs/sdks/custommappingssdk/README.md b/docs/sdks/custommappingssdk/README.md index 31da35a6..e67c90d2 100644 --- a/docs/sdks/custommappingssdk/README.md +++ b/docs/sdks/custommappingssdk/README.md @@ -17,6 +17,7 @@ This endpoint returns a list of custom mappings. from apideck_unify import Apideck import os + with Apideck( api_key=os.getenv("APIDECK_API_KEY", ""), consumer_id="test-consumer", diff --git a/docs/sdks/departments/README.md b/docs/sdks/departments/README.md index 8e950243..8a940fbd 100644 --- a/docs/sdks/departments/README.md +++ b/docs/sdks/departments/README.md @@ -21,6 +21,7 @@ List Departments from apideck_unify import Apideck import os + with Apideck( api_key=os.getenv("APIDECK_API_KEY", ""), consumer_id="test-consumer", @@ -78,6 +79,7 @@ import apideck_unify from apideck_unify import Apideck import os + with Apideck( api_key=os.getenv("APIDECK_API_KEY", ""), consumer_id="test-consumer", @@ -176,6 +178,7 @@ Get Department from apideck_unify import Apideck import os + with Apideck( api_key=os.getenv("APIDECK_API_KEY", ""), consumer_id="test-consumer", @@ -229,6 +232,7 @@ import apideck_unify from apideck_unify import Apideck import os + with Apideck( api_key=os.getenv("APIDECK_API_KEY", ""), consumer_id="test-consumer", @@ -347,6 +351,7 @@ Delete Department from apideck_unify import Apideck import os + with Apideck( api_key=os.getenv("APIDECK_API_KEY", ""), consumer_id="test-consumer", diff --git a/docs/sdks/drivegroups/README.md b/docs/sdks/drivegroups/README.md index 9edda3ca..f80a2020 100644 --- a/docs/sdks/drivegroups/README.md +++ b/docs/sdks/drivegroups/README.md @@ -21,6 +21,7 @@ List DriveGroups from apideck_unify import Apideck import os + with Apideck( api_key=os.getenv("APIDECK_API_KEY", ""), consumer_id="test-consumer", @@ -80,6 +81,7 @@ Create DriveGroup from apideck_unify import Apideck import os + with Apideck( api_key=os.getenv("APIDECK_API_KEY", ""), consumer_id="test-consumer", @@ -177,6 +179,7 @@ Get DriveGroup from apideck_unify import Apideck import os + with Apideck( api_key=os.getenv("APIDECK_API_KEY", ""), consumer_id="test-consumer", @@ -229,6 +232,7 @@ Update DriveGroup from apideck_unify import Apideck import os + with Apideck( api_key=os.getenv("APIDECK_API_KEY", ""), consumer_id="test-consumer", @@ -356,6 +360,7 @@ Delete DriveGroup from apideck_unify import Apideck import os + with Apideck( api_key=os.getenv("APIDECK_API_KEY", ""), consumer_id="test-consumer", diff --git a/docs/sdks/drives/README.md b/docs/sdks/drives/README.md index 69f81229..90d397ee 100644 --- a/docs/sdks/drives/README.md +++ b/docs/sdks/drives/README.md @@ -21,6 +21,7 @@ List Drives from apideck_unify import Apideck import os + with Apideck( api_key=os.getenv("APIDECK_API_KEY", ""), consumer_id="test-consumer", @@ -77,6 +78,7 @@ Create Drive from apideck_unify import Apideck import os + with Apideck( api_key=os.getenv("APIDECK_API_KEY", ""), consumer_id="test-consumer", @@ -173,6 +175,7 @@ Get Drive from apideck_unify import Apideck import os + with Apideck( api_key=os.getenv("APIDECK_API_KEY", ""), consumer_id="test-consumer", @@ -225,6 +228,7 @@ Update Drive from apideck_unify import Apideck import os + with Apideck( api_key=os.getenv("APIDECK_API_KEY", ""), consumer_id="test-consumer", @@ -351,6 +355,7 @@ Delete Drive from apideck_unify import Apideck import os + with Apideck( api_key=os.getenv("APIDECK_API_KEY", ""), consumer_id="test-consumer", diff --git a/docs/sdks/employeepayrolls/README.md b/docs/sdks/employeepayrolls/README.md index b157269c..238acd2d 100644 --- a/docs/sdks/employeepayrolls/README.md +++ b/docs/sdks/employeepayrolls/README.md @@ -18,6 +18,7 @@ List payrolls for employee from apideck_unify import Apideck import os + with Apideck( api_key=os.getenv("APIDECK_API_KEY", ""), consumer_id="test-consumer", @@ -77,6 +78,7 @@ Get payroll for employee from apideck_unify import Apideck import os + with Apideck( api_key=os.getenv("APIDECK_API_KEY", ""), consumer_id="test-consumer", diff --git a/docs/sdks/employees/README.md b/docs/sdks/employees/README.md index d2c83eae..d21d082b 100644 --- a/docs/sdks/employees/README.md +++ b/docs/sdks/employees/README.md @@ -22,6 +22,7 @@ import apideck_unify from apideck_unify import Apideck import os + with Apideck( api_key=os.getenv("APIDECK_API_KEY", ""), consumer_id="test-consumer", @@ -94,6 +95,7 @@ from apideck_unify import Apideck import dateutil.parser import os + with Apideck( api_key=os.getenv("APIDECK_API_KEY", ""), consumer_id="test-consumer", @@ -140,7 +142,7 @@ with Apideck( "status": apideck_unify.EmployeeJobStatus.ACTIVE, "location": { "id": "123", - "type": apideck_unify.Type.PRIMARY, + "type": apideck_unify.AddressType.PRIMARY, "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", @@ -179,7 +181,7 @@ with Apideck( "status": apideck_unify.EmployeeJobStatus.ACTIVE, "location": { "id": "123", - "type": apideck_unify.Type.PRIMARY, + "type": apideck_unify.AddressType.PRIMARY, "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", @@ -214,7 +216,7 @@ with Apideck( ], works_remote=True, addresses=[ { "id": "123", - "type": apideck_unify.Type.PRIMARY, + "type": apideck_unify.AddressType.PRIMARY, "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", @@ -240,7 +242,7 @@ with Apideck( }, { "id": "123", - "type": apideck_unify.Type.PRIMARY, + "type": apideck_unify.AddressType.PRIMARY, "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", @@ -460,6 +462,7 @@ Get Employee from apideck_unify import Apideck import os + with Apideck( api_key=os.getenv("APIDECK_API_KEY", ""), consumer_id="test-consumer", @@ -520,6 +523,7 @@ from apideck_unify import Apideck import dateutil.parser import os + with Apideck( api_key=os.getenv("APIDECK_API_KEY", ""), consumer_id="test-consumer", @@ -566,7 +570,7 @@ with Apideck( "status": apideck_unify.EmployeeJobStatus.ACTIVE, "location": { "id": "123", - "type": apideck_unify.Type.PRIMARY, + "type": apideck_unify.AddressType.PRIMARY, "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", @@ -605,7 +609,7 @@ with Apideck( "status": apideck_unify.EmployeeJobStatus.ACTIVE, "location": { "id": "123", - "type": apideck_unify.Type.PRIMARY, + "type": apideck_unify.AddressType.PRIMARY, "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", @@ -644,7 +648,7 @@ with Apideck( "status": apideck_unify.EmployeeJobStatus.ACTIVE, "location": { "id": "123", - "type": apideck_unify.Type.PRIMARY, + "type": apideck_unify.AddressType.PRIMARY, "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", @@ -679,7 +683,7 @@ with Apideck( ], works_remote=True, addresses=[ { "id": "123", - "type": apideck_unify.Type.PRIMARY, + "type": apideck_unify.AddressType.PRIMARY, "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", @@ -705,7 +709,7 @@ with Apideck( }, { "id": "123", - "type": apideck_unify.Type.PRIMARY, + "type": apideck_unify.AddressType.PRIMARY, "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", @@ -945,6 +949,7 @@ Delete Employee from apideck_unify import Apideck import os + with Apideck( api_key=os.getenv("APIDECK_API_KEY", ""), consumer_id="test-consumer", diff --git a/docs/sdks/employeeschedulessdk/README.md b/docs/sdks/employeeschedulessdk/README.md index c3e1de8e..8a028bd5 100644 --- a/docs/sdks/employeeschedulessdk/README.md +++ b/docs/sdks/employeeschedulessdk/README.md @@ -17,6 +17,7 @@ List schedules for employee, a schedule is a work pattern, not the actual worked from apideck_unify import Apideck import os + with Apideck( api_key=os.getenv("APIDECK_API_KEY", ""), consumer_id="test-consumer", diff --git a/docs/sdks/eventlogs/README.md b/docs/sdks/eventlogs/README.md index 3db090a1..d4c8e53f 100644 --- a/docs/sdks/eventlogs/README.md +++ b/docs/sdks/eventlogs/README.md @@ -17,6 +17,7 @@ List event logs from apideck_unify import Apideck import os + with Apideck( api_key=os.getenv("APIDECK_API_KEY", ""), consumer_id="test-consumer", diff --git a/docs/sdks/expenses/README.md b/docs/sdks/expenses/README.md index 3bf7b0ae..b25cd60c 100644 --- a/docs/sdks/expenses/README.md +++ b/docs/sdks/expenses/README.md @@ -21,6 +21,7 @@ List Expenses from apideck_unify import Apideck import os + with Apideck( api_key=os.getenv("APIDECK_API_KEY", ""), consumer_id="test-consumer", @@ -75,6 +76,7 @@ from apideck_unify import Apideck import dateutil.parser import os + with Apideck( api_key=os.getenv("APIDECK_API_KEY", ""), consumer_id="test-consumer", @@ -239,6 +241,7 @@ Get Expense from apideck_unify import Apideck import os + with Apideck( api_key=os.getenv("APIDECK_API_KEY", ""), consumer_id="test-consumer", @@ -292,6 +295,7 @@ from apideck_unify import Apideck import dateutil.parser import os + with Apideck( api_key=os.getenv("APIDECK_API_KEY", ""), consumer_id="test-consumer", @@ -499,6 +503,7 @@ Delete Expense from apideck_unify import Apideck import os + with Apideck( api_key=os.getenv("APIDECK_API_KEY", ""), consumer_id="test-consumer", diff --git a/docs/sdks/files/README.md b/docs/sdks/files/README.md index 40bb0a5f..41a19393 100644 --- a/docs/sdks/files/README.md +++ b/docs/sdks/files/README.md @@ -24,6 +24,7 @@ import apideck_unify from apideck_unify import Apideck import os + with Apideck( api_key=os.getenv("APIDECK_API_KEY", ""), consumer_id="test-consumer", @@ -88,6 +89,7 @@ Search Files from apideck_unify import Apideck import os + with Apideck( api_key=os.getenv("APIDECK_API_KEY", ""), consumer_id="test-consumer", @@ -166,6 +168,7 @@ Get File from apideck_unify import Apideck import os + with Apideck( api_key=os.getenv("APIDECK_API_KEY", ""), consumer_id="test-consumer", @@ -218,6 +221,7 @@ Rename or move File from apideck_unify import Apideck import os + with Apideck( api_key=os.getenv("APIDECK_API_KEY", ""), consumer_id="test-consumer", @@ -345,6 +349,7 @@ Delete File from apideck_unify import Apideck import os + with Apideck( api_key=os.getenv("APIDECK_API_KEY", ""), consumer_id="test-consumer", @@ -396,6 +401,7 @@ Download File from apideck_unify import Apideck import os + with Apideck( api_key=os.getenv("APIDECK_API_KEY", ""), consumer_id="test-consumer", @@ -447,6 +453,7 @@ Export File from apideck_unify import Apideck import os + with Apideck( api_key=os.getenv("APIDECK_API_KEY", ""), consumer_id="test-consumer", diff --git a/docs/sdks/folders/README.md b/docs/sdks/folders/README.md index 5323e669..255676b5 100644 --- a/docs/sdks/folders/README.md +++ b/docs/sdks/folders/README.md @@ -21,6 +21,7 @@ Create Folder from apideck_unify import Apideck import os + with Apideck( api_key=os.getenv("APIDECK_API_KEY", ""), consumer_id="test-consumer", @@ -120,6 +121,7 @@ Get Folder from apideck_unify import Apideck import os + with Apideck( api_key=os.getenv("APIDECK_API_KEY", ""), consumer_id="test-consumer", @@ -172,6 +174,7 @@ Rename or move Folder from apideck_unify import Apideck import os + with Apideck( api_key=os.getenv("APIDECK_API_KEY", ""), consumer_id="test-consumer", @@ -299,6 +302,7 @@ Delete Folder from apideck_unify import Apideck import os + with Apideck( api_key=os.getenv("APIDECK_API_KEY", ""), consumer_id="test-consumer", @@ -350,6 +354,7 @@ Copy Folder from apideck_unify import Apideck import os + with Apideck( api_key=os.getenv("APIDECK_API_KEY", ""), consumer_id="test-consumer", diff --git a/docs/sdks/invoiceitems/README.md b/docs/sdks/invoiceitems/README.md index 613b78ee..db610e95 100644 --- a/docs/sdks/invoiceitems/README.md +++ b/docs/sdks/invoiceitems/README.md @@ -22,6 +22,7 @@ import apideck_unify from apideck_unify import Apideck import os + with Apideck( api_key=os.getenv("APIDECK_API_KEY", ""), consumer_id="test-consumer", @@ -87,6 +88,7 @@ from apideck_unify import Apideck import dateutil.parser import os + with Apideck( api_key=os.getenv("APIDECK_API_KEY", ""), consumer_id="test-consumer", @@ -231,6 +233,7 @@ import apideck_unify from apideck_unify import Apideck import os + with Apideck( api_key=os.getenv("APIDECK_API_KEY", ""), consumer_id="test-consumer", @@ -288,6 +291,7 @@ from apideck_unify import Apideck import dateutil.parser import os + with Apideck( api_key=os.getenv("APIDECK_API_KEY", ""), consumer_id="test-consumer", @@ -452,6 +456,7 @@ Delete Invoice Item from apideck_unify import Apideck import os + with Apideck( api_key=os.getenv("APIDECK_API_KEY", ""), consumer_id="test-consumer", diff --git a/docs/sdks/invoices/README.md b/docs/sdks/invoices/README.md index 2f34388a..c14b2534 100644 --- a/docs/sdks/invoices/README.md +++ b/docs/sdks/invoices/README.md @@ -23,6 +23,7 @@ from apideck_unify import Apideck import dateutil.parser import os + with Apideck( api_key=os.getenv("APIDECK_API_KEY", ""), consumer_id="test-consumer", @@ -89,6 +90,7 @@ from apideck_unify import Apideck import dateutil.parser import os + with Apideck( api_key=os.getenv("APIDECK_API_KEY", ""), consumer_id="test-consumer", @@ -227,7 +229,7 @@ with Apideck( }, ], billing_address={ "id": "123", - "type": apideck_unify.Type.PRIMARY, + "type": apideck_unify.AddressType.PRIMARY, "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", @@ -252,7 +254,7 @@ with Apideck( "row_version": "1-12345", }, shipping_address={ "id": "123", - "type": apideck_unify.Type.PRIMARY, + "type": apideck_unify.AddressType.PRIMARY, "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", @@ -414,6 +416,7 @@ Get Invoice from apideck_unify import Apideck import os + with Apideck( api_key=os.getenv("APIDECK_API_KEY", ""), consumer_id="test-consumer", @@ -468,6 +471,7 @@ from apideck_unify import Apideck import dateutil.parser import os + with Apideck( api_key=os.getenv("APIDECK_API_KEY", ""), consumer_id="test-consumer", @@ -616,7 +620,7 @@ with Apideck( }, ], billing_address={ "id": "123", - "type": apideck_unify.Type.PRIMARY, + "type": apideck_unify.AddressType.PRIMARY, "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", @@ -641,7 +645,7 @@ with Apideck( "row_version": "1-12345", }, shipping_address={ "id": "123", - "type": apideck_unify.Type.PRIMARY, + "type": apideck_unify.AddressType.PRIMARY, "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", @@ -797,6 +801,7 @@ Delete Invoice from apideck_unify import Apideck import os + with Apideck( api_key=os.getenv("APIDECK_API_KEY", ""), consumer_id="test-consumer", diff --git a/docs/sdks/jobs/README.md b/docs/sdks/jobs/README.md index 418487e9..5266e1c6 100644 --- a/docs/sdks/jobs/README.md +++ b/docs/sdks/jobs/README.md @@ -18,6 +18,7 @@ List Jobs from apideck_unify import Apideck import os + with Apideck( api_key=os.getenv("APIDECK_API_KEY", ""), consumer_id="test-consumer", @@ -74,6 +75,7 @@ Get Job from apideck_unify import Apideck import os + with Apideck( api_key=os.getenv("APIDECK_API_KEY", ""), consumer_id="test-consumer", diff --git a/docs/sdks/journalentries/README.md b/docs/sdks/journalentries/README.md index dd33cb24..1b5ca334 100644 --- a/docs/sdks/journalentries/README.md +++ b/docs/sdks/journalentries/README.md @@ -23,6 +23,7 @@ from apideck_unify import Apideck import dateutil.parser import os + with Apideck( api_key=os.getenv("APIDECK_API_KEY", ""), consumer_id="test-consumer", @@ -87,6 +88,7 @@ from apideck_unify import Apideck import dateutil.parser import os + with Apideck( api_key=os.getenv("APIDECK_API_KEY", ""), consumer_id="test-consumer", @@ -129,7 +131,7 @@ with Apideck( "display_name": "Windsurf Shop", "address": { "id": "123", - "type": apideck_unify.Type.PRIMARY, + "type": apideck_unify.AddressType.PRIMARY, "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", @@ -191,7 +193,7 @@ with Apideck( "display_name": "Windsurf Shop", "address": { "id": "123", - "type": apideck_unify.Type.PRIMARY, + "type": apideck_unify.AddressType.PRIMARY, "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", @@ -308,6 +310,7 @@ Get Journal Entry from apideck_unify import Apideck import os + with Apideck( api_key=os.getenv("APIDECK_API_KEY", ""), consumer_id="test-consumer", @@ -362,6 +365,7 @@ from apideck_unify import Apideck import dateutil.parser import os + with Apideck( api_key=os.getenv("APIDECK_API_KEY", ""), consumer_id="test-consumer", @@ -404,7 +408,7 @@ with Apideck( "display_name": "Windsurf Shop", "address": { "id": "123", - "type": apideck_unify.Type.PRIMARY, + "type": apideck_unify.AddressType.PRIMARY, "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", @@ -466,7 +470,7 @@ with Apideck( "display_name": "Windsurf Shop", "address": { "id": "123", - "type": apideck_unify.Type.PRIMARY, + "type": apideck_unify.AddressType.PRIMARY, "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", @@ -532,7 +536,7 @@ with Apideck( "display_name": "Windsurf Shop", "address": { "id": "123", - "type": apideck_unify.Type.PRIMARY, + "type": apideck_unify.AddressType.PRIMARY, "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", @@ -658,6 +662,7 @@ Delete Journal Entry from apideck_unify import Apideck import os + with Apideck( api_key=os.getenv("APIDECK_API_KEY", ""), consumer_id="test-consumer", diff --git a/docs/sdks/leads/README.md b/docs/sdks/leads/README.md index 3b33ad64..6b3e6ea6 100644 --- a/docs/sdks/leads/README.md +++ b/docs/sdks/leads/README.md @@ -22,6 +22,7 @@ import apideck_unify from apideck_unify import Apideck import os + with Apideck( api_key=os.getenv("APIDECK_API_KEY", ""), consumer_id="test-consumer", @@ -88,6 +89,7 @@ import apideck_unify from apideck_unify import Apideck import os + with Apideck( api_key=os.getenv("APIDECK_API_KEY", ""), consumer_id="test-consumer", @@ -108,7 +110,7 @@ with Apideck( ], addresses=[ { "id": "123", - "type": apideck_unify.Type.PRIMARY, + "type": apideck_unify.AddressType.PRIMARY, "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", @@ -134,7 +136,7 @@ with Apideck( }, { "id": "123", - "type": apideck_unify.Type.PRIMARY, + "type": apideck_unify.AddressType.PRIMARY, "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", @@ -354,6 +356,7 @@ Get lead from apideck_unify import Apideck import os + with Apideck( api_key=os.getenv("APIDECK_API_KEY", ""), consumer_id="test-consumer", @@ -407,6 +410,7 @@ import apideck_unify from apideck_unify import Apideck import os + with Apideck( api_key=os.getenv("APIDECK_API_KEY", ""), consumer_id="test-consumer", @@ -432,7 +436,7 @@ with Apideck( ], addresses=[ { "id": "123", - "type": apideck_unify.Type.PRIMARY, + "type": apideck_unify.AddressType.PRIMARY, "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", @@ -458,7 +462,7 @@ with Apideck( }, { "id": "123", - "type": apideck_unify.Type.PRIMARY, + "type": apideck_unify.AddressType.PRIMARY, "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", @@ -630,6 +634,7 @@ Delete lead from apideck_unify import Apideck import os + with Apideck( api_key=os.getenv("APIDECK_API_KEY", ""), consumer_id="test-consumer", diff --git a/docs/sdks/ledgeraccounts/README.md b/docs/sdks/ledgeraccounts/README.md index f391c3e2..10c838a6 100644 --- a/docs/sdks/ledgeraccounts/README.md +++ b/docs/sdks/ledgeraccounts/README.md @@ -23,6 +23,7 @@ from apideck_unify import Apideck import dateutil.parser import os + with Apideck( api_key=os.getenv("APIDECK_API_KEY", ""), consumer_id="test-consumer", @@ -87,6 +88,7 @@ from apideck_unify import Apideck import dateutil.parser import os + with Apideck( api_key=os.getenv("APIDECK_API_KEY", ""), consumer_id="test-consumer", @@ -209,6 +211,7 @@ Get Ledger Account from apideck_unify import Apideck import os + with Apideck( api_key=os.getenv("APIDECK_API_KEY", ""), consumer_id="test-consumer", @@ -263,6 +266,7 @@ from apideck_unify import Apideck import dateutil.parser import os + with Apideck( api_key=os.getenv("APIDECK_API_KEY", ""), consumer_id="test-consumer", @@ -424,6 +428,7 @@ Delete Ledger Account from apideck_unify import Apideck import os + with Apideck( api_key=os.getenv("APIDECK_API_KEY", ""), consumer_id="test-consumer", diff --git a/docs/sdks/locations/README.md b/docs/sdks/locations/README.md index cdbec3d5..da1535f1 100644 --- a/docs/sdks/locations/README.md +++ b/docs/sdks/locations/README.md @@ -21,6 +21,7 @@ List Locations from apideck_unify import Apideck import os + with Apideck( api_key=os.getenv("APIDECK_API_KEY", ""), consumer_id="test-consumer", @@ -78,6 +79,7 @@ import apideck_unify from apideck_unify import Apideck import os + with Apideck( api_key=os.getenv("APIDECK_API_KEY", ""), consumer_id="test-consumer", @@ -87,7 +89,7 @@ with Apideck( res = apideck.accounting.locations.create(consumer_id="test-consumer", app_id="dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", service_id="salesforce", parent_id="12345", company_name="SpaceX", display_name="11 UT - South Jordan", status=apideck_unify.LocationStatus.ACTIVE, addresses=[ { "id": "123", - "type": apideck_unify.Type.PRIMARY, + "type": apideck_unify.AddressType.PRIMARY, "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", @@ -113,7 +115,7 @@ with Apideck( }, { "id": "123", - "type": apideck_unify.Type.PRIMARY, + "type": apideck_unify.AddressType.PRIMARY, "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", @@ -223,6 +225,7 @@ Get Location from apideck_unify import Apideck import os + with Apideck( api_key=os.getenv("APIDECK_API_KEY", ""), consumer_id="test-consumer", @@ -276,6 +279,7 @@ import apideck_unify from apideck_unify import Apideck import os + with Apideck( api_key=os.getenv("APIDECK_API_KEY", ""), consumer_id="test-consumer", @@ -285,7 +289,7 @@ with Apideck( res = apideck.accounting.locations.update(id="", consumer_id="test-consumer", app_id="dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", service_id="salesforce", parent_id="12345", company_name="SpaceX", display_name="11 UT - South Jordan", status=apideck_unify.LocationStatus.ACTIVE, addresses=[ { "id": "123", - "type": apideck_unify.Type.PRIMARY, + "type": apideck_unify.AddressType.PRIMARY, "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", @@ -311,7 +315,7 @@ with Apideck( }, { "id": "123", - "type": apideck_unify.Type.PRIMARY, + "type": apideck_unify.AddressType.PRIMARY, "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", @@ -337,7 +341,7 @@ with Apideck( }, { "id": "123", - "type": apideck_unify.Type.PRIMARY, + "type": apideck_unify.AddressType.PRIMARY, "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", @@ -472,6 +476,7 @@ Delete Location from apideck_unify import Apideck import os + with Apideck( api_key=os.getenv("APIDECK_API_KEY", ""), consumer_id="test-consumer", diff --git a/docs/sdks/logs/README.md b/docs/sdks/logs/README.md index 1c5db3c4..a48ba77b 100644 --- a/docs/sdks/logs/README.md +++ b/docs/sdks/logs/README.md @@ -18,6 +18,7 @@ This endpoint includes all consumer request logs. from apideck_unify import Apideck import os + with Apideck( api_key=os.getenv("APIDECK_API_KEY", ""), consumer_id="test-consumer", diff --git a/docs/sdks/messages/README.md b/docs/sdks/messages/README.md index 76e19705..54e03cef 100644 --- a/docs/sdks/messages/README.md +++ b/docs/sdks/messages/README.md @@ -21,6 +21,7 @@ List Messages from apideck_unify import Apideck import os + with Apideck( api_key=os.getenv("APIDECK_API_KEY", ""), consumer_id="test-consumer", @@ -76,6 +77,7 @@ from apideck_unify import Apideck import dateutil.parser import os + with Apideck( api_key=os.getenv("APIDECK_API_KEY", ""), consumer_id="test-consumer", @@ -179,6 +181,7 @@ Get Message from apideck_unify import Apideck import os + with Apideck( api_key=os.getenv("APIDECK_API_KEY", ""), consumer_id="test-consumer", @@ -233,6 +236,7 @@ from apideck_unify import Apideck import dateutil.parser import os + with Apideck( api_key=os.getenv("APIDECK_API_KEY", ""), consumer_id="test-consumer", @@ -366,6 +370,7 @@ Delete Message from apideck_unify import Apideck import os + with Apideck( api_key=os.getenv("APIDECK_API_KEY", ""), consumer_id="test-consumer", diff --git a/docs/sdks/notes/README.md b/docs/sdks/notes/README.md index 1f7fb102..06827cc0 100644 --- a/docs/sdks/notes/README.md +++ b/docs/sdks/notes/README.md @@ -21,6 +21,7 @@ List notes from apideck_unify import Apideck import os + with Apideck( api_key=os.getenv("APIDECK_API_KEY", ""), consumer_id="test-consumer", @@ -77,6 +78,7 @@ Create note from apideck_unify import Apideck import os + with Apideck( api_key=os.getenv("APIDECK_API_KEY", ""), consumer_id="test-consumer", @@ -179,6 +181,7 @@ Get note from apideck_unify import Apideck import os + with Apideck( api_key=os.getenv("APIDECK_API_KEY", ""), consumer_id="test-consumer", @@ -231,6 +234,7 @@ Update note from apideck_unify import Apideck import os + with Apideck( api_key=os.getenv("APIDECK_API_KEY", ""), consumer_id="test-consumer", @@ -363,6 +367,7 @@ Delete note from apideck_unify import Apideck import os + with Apideck( api_key=os.getenv("APIDECK_API_KEY", ""), consumer_id="test-consumer", diff --git a/docs/sdks/opportunities/README.md b/docs/sdks/opportunities/README.md index dd16a57c..3b5807f0 100644 --- a/docs/sdks/opportunities/README.md +++ b/docs/sdks/opportunities/README.md @@ -22,6 +22,7 @@ import apideck_unify from apideck_unify import Apideck import os + with Apideck( api_key=os.getenv("APIDECK_API_KEY", ""), consumer_id="test-consumer", @@ -87,6 +88,7 @@ from apideck_unify import Apideck import dateutil.parser import os + with Apideck( api_key=os.getenv("APIDECK_API_KEY", ""), consumer_id="test-consumer", @@ -197,6 +199,7 @@ Get opportunity from apideck_unify import Apideck import os + with Apideck( api_key=os.getenv("APIDECK_API_KEY", ""), consumer_id="test-consumer", @@ -251,6 +254,7 @@ from apideck_unify import Apideck import dateutil.parser import os + with Apideck( api_key=os.getenv("APIDECK_API_KEY", ""), consumer_id="test-consumer", @@ -400,6 +404,7 @@ Delete opportunity from apideck_unify import Apideck import os + with Apideck( api_key=os.getenv("APIDECK_API_KEY", ""), consumer_id="test-consumer", diff --git a/docs/sdks/orders/README.md b/docs/sdks/orders/README.md index f3d85456..96c567e2 100644 --- a/docs/sdks/orders/README.md +++ b/docs/sdks/orders/README.md @@ -19,6 +19,7 @@ import apideck_unify from apideck_unify import Apideck import os + with Apideck( api_key=os.getenv("APIDECK_API_KEY", ""), consumer_id="test-consumer", @@ -84,6 +85,7 @@ Get Order from apideck_unify import Apideck import os + with Apideck( api_key=os.getenv("APIDECK_API_KEY", ""), consumer_id="test-consumer", diff --git a/docs/sdks/payments/README.md b/docs/sdks/payments/README.md index 641ba911..1d838294 100644 --- a/docs/sdks/payments/README.md +++ b/docs/sdks/payments/README.md @@ -23,6 +23,7 @@ from apideck_unify import Apideck import dateutil.parser import os + with Apideck( api_key=os.getenv("APIDECK_API_KEY", ""), consumer_id="test-consumer", @@ -87,6 +88,7 @@ from apideck_unify import Apideck import dateutil.parser import os + with Apideck( api_key=os.getenv("APIDECK_API_KEY", ""), consumer_id="test-consumer", @@ -259,6 +261,7 @@ Get Payment from apideck_unify import Apideck import os + with Apideck( api_key=os.getenv("APIDECK_API_KEY", ""), consumer_id="test-consumer", @@ -313,6 +316,7 @@ from apideck_unify import Apideck import dateutil.parser import os + with Apideck( api_key=os.getenv("APIDECK_API_KEY", ""), consumer_id="test-consumer", @@ -502,6 +506,7 @@ Delete Payment from apideck_unify import Apideck import os + with Apideck( api_key=os.getenv("APIDECK_API_KEY", ""), consumer_id="test-consumer", diff --git a/docs/sdks/payrolls/README.md b/docs/sdks/payrolls/README.md index cf078427..61a44f9c 100644 --- a/docs/sdks/payrolls/README.md +++ b/docs/sdks/payrolls/README.md @@ -18,6 +18,7 @@ List Payroll from apideck_unify import Apideck import os + with Apideck( api_key=os.getenv("APIDECK_API_KEY", ""), consumer_id="test-consumer", @@ -76,6 +77,7 @@ Get Payroll from apideck_unify import Apideck import os + with Apideck( api_key=os.getenv("APIDECK_API_KEY", ""), consumer_id="test-consumer", diff --git a/docs/sdks/pipelines/README.md b/docs/sdks/pipelines/README.md index eaef0803..d022cc21 100644 --- a/docs/sdks/pipelines/README.md +++ b/docs/sdks/pipelines/README.md @@ -17,6 +17,7 @@ List pipelines from apideck_unify import Apideck import os + with Apideck( api_key=os.getenv("APIDECK_API_KEY", ""), consumer_id="test-consumer", diff --git a/docs/sdks/products/README.md b/docs/sdks/products/README.md index 19cfc771..0f76b7e8 100644 --- a/docs/sdks/products/README.md +++ b/docs/sdks/products/README.md @@ -18,6 +18,7 @@ List Products from apideck_unify import Apideck import os + with Apideck( api_key=os.getenv("APIDECK_API_KEY", ""), consumer_id="test-consumer", @@ -74,6 +75,7 @@ Get Product from apideck_unify import Apideck import os + with Apideck( api_key=os.getenv("APIDECK_API_KEY", ""), consumer_id="test-consumer", diff --git a/docs/sdks/profitandlosssdk/README.md b/docs/sdks/profitandlosssdk/README.md index 3907d8e4..fbd01d0e 100644 --- a/docs/sdks/profitandlosssdk/README.md +++ b/docs/sdks/profitandlosssdk/README.md @@ -17,6 +17,7 @@ Get Profit and Loss from apideck_unify import Apideck import os + with Apideck( api_key=os.getenv("APIDECK_API_KEY", ""), consumer_id="test-consumer", diff --git a/docs/sdks/purchaseorders/README.md b/docs/sdks/purchaseorders/README.md index 50acc40d..982862cb 100644 --- a/docs/sdks/purchaseorders/README.md +++ b/docs/sdks/purchaseorders/README.md @@ -23,6 +23,7 @@ from apideck_unify import Apideck import dateutil.parser import os + with Apideck( api_key=os.getenv("APIDECK_API_KEY", ""), consumer_id="test-consumer", @@ -87,6 +88,7 @@ from apideck_unify import Apideck import dateutil.parser import os + with Apideck( api_key=os.getenv("APIDECK_API_KEY", ""), consumer_id="test-consumer", @@ -98,7 +100,7 @@ with Apideck( "display_name": "Windsurf Shop", "address": { "id": "123", - "type": apideck_unify.Type.PRIMARY, + "type": apideck_unify.AddressType.PRIMARY, "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", @@ -247,7 +249,7 @@ with Apideck( }, ], shipping_address={ "id": "123", - "type": apideck_unify.Type.PRIMARY, + "type": apideck_unify.AddressType.PRIMARY, "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", @@ -452,6 +454,7 @@ Get Purchase Order from apideck_unify import Apideck import os + with Apideck( api_key=os.getenv("APIDECK_API_KEY", ""), consumer_id="test-consumer", @@ -505,6 +508,7 @@ from apideck_unify import Apideck import dateutil.parser import os + with Apideck( api_key=os.getenv("APIDECK_API_KEY", ""), consumer_id="test-consumer", @@ -516,7 +520,7 @@ with Apideck( "display_name": "Windsurf Shop", "address": { "id": "123", - "type": apideck_unify.Type.PRIMARY, + "type": apideck_unify.AddressType.PRIMARY, "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", @@ -704,7 +708,7 @@ with Apideck( }, ], shipping_address={ "id": "123", - "type": apideck_unify.Type.PRIMARY, + "type": apideck_unify.AddressType.PRIMARY, "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", @@ -894,6 +898,7 @@ Delete Purchase Order from apideck_unify import Apideck import os + with Apideck( api_key=os.getenv("APIDECK_API_KEY", ""), consumer_id="test-consumer", diff --git a/docs/sdks/sessions/README.md b/docs/sdks/sessions/README.md index 6bb19ba4..6fc5886d 100644 --- a/docs/sdks/sessions/README.md +++ b/docs/sdks/sessions/README.md @@ -22,6 +22,7 @@ import apideck_unify from apideck_unify import Apideck import os + with Apideck( api_key=os.getenv("APIDECK_API_KEY", ""), consumer_id="test-consumer", diff --git a/docs/sdks/sharedlinks/README.md b/docs/sdks/sharedlinks/README.md index 011c0262..20d58901 100644 --- a/docs/sdks/sharedlinks/README.md +++ b/docs/sdks/sharedlinks/README.md @@ -21,6 +21,7 @@ List SharedLinks from apideck_unify import Apideck import os + with Apideck( api_key=os.getenv("APIDECK_API_KEY", ""), consumer_id="test-consumer", @@ -78,6 +79,7 @@ import apideck_unify from apideck_unify import Apideck import os + with Apideck( api_key=os.getenv("APIDECK_API_KEY", ""), consumer_id="test-consumer", @@ -176,6 +178,7 @@ Get Shared Link from apideck_unify import Apideck import os + with Apideck( api_key=os.getenv("APIDECK_API_KEY", ""), consumer_id="test-consumer", @@ -229,6 +232,7 @@ import apideck_unify from apideck_unify import Apideck import os + with Apideck( api_key=os.getenv("APIDECK_API_KEY", ""), consumer_id="test-consumer", @@ -357,6 +361,7 @@ Delete Shared Link from apideck_unify import Apideck import os + with Apideck( api_key=os.getenv("APIDECK_API_KEY", ""), consumer_id="test-consumer", diff --git a/docs/sdks/stores/README.md b/docs/sdks/stores/README.md index 0fcf38ad..74d5060a 100644 --- a/docs/sdks/stores/README.md +++ b/docs/sdks/stores/README.md @@ -17,6 +17,7 @@ Get Store from apideck_unify import Apideck import os + with Apideck( api_key=os.getenv("APIDECK_API_KEY", ""), consumer_id="test-consumer", diff --git a/docs/sdks/subsidiaries/README.md b/docs/sdks/subsidiaries/README.md index b885083c..e44e24f5 100644 --- a/docs/sdks/subsidiaries/README.md +++ b/docs/sdks/subsidiaries/README.md @@ -21,6 +21,7 @@ List Subsidiaries from apideck_unify import Apideck import os + with Apideck( api_key=os.getenv("APIDECK_API_KEY", ""), consumer_id="test-consumer", @@ -75,6 +76,7 @@ import apideck_unify from apideck_unify import Apideck import os + with Apideck( api_key=os.getenv("APIDECK_API_KEY", ""), consumer_id="test-consumer", @@ -173,6 +175,7 @@ Get Subsidiary from apideck_unify import Apideck import os + with Apideck( api_key=os.getenv("APIDECK_API_KEY", ""), consumer_id="test-consumer", @@ -226,6 +229,7 @@ import apideck_unify from apideck_unify import Apideck import os + with Apideck( api_key=os.getenv("APIDECK_API_KEY", ""), consumer_id="test-consumer", @@ -354,6 +358,7 @@ Delete Subsidiary from apideck_unify import Apideck import os + with Apideck( api_key=os.getenv("APIDECK_API_KEY", ""), consumer_id="test-consumer", diff --git a/docs/sdks/suppliers/README.md b/docs/sdks/suppliers/README.md index a59bd0b2..aae3d178 100644 --- a/docs/sdks/suppliers/README.md +++ b/docs/sdks/suppliers/README.md @@ -23,6 +23,7 @@ from apideck_unify import Apideck import dateutil.parser import os + with Apideck( api_key=os.getenv("APIDECK_API_KEY", ""), consumer_id="test-consumer", @@ -91,6 +92,7 @@ import apideck_unify from apideck_unify import Apideck import os + with Apideck( api_key=os.getenv("APIDECK_API_KEY", ""), consumer_id="test-consumer", @@ -100,7 +102,7 @@ with Apideck( res = apideck.accounting.suppliers.create(consumer_id="test-consumer", app_id="dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", service_id="salesforce", display_id="EMP00101", display_name="Windsurf Shop", company_name="SpaceX", company_id="12345", title="CEO", first_name="Elon", middle_name="D.", last_name="Musk", suffix="Jr.", individual=True, addresses=[ { "id": "123", - "type": apideck_unify.Type.PRIMARY, + "type": apideck_unify.AddressType.PRIMARY, "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", @@ -126,7 +128,7 @@ with Apideck( }, { "id": "123", - "type": apideck_unify.Type.PRIMARY, + "type": apideck_unify.AddressType.PRIMARY, "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", @@ -375,6 +377,7 @@ Get Supplier from apideck_unify import Apideck import os + with Apideck( api_key=os.getenv("APIDECK_API_KEY", ""), consumer_id="test-consumer", @@ -428,6 +431,7 @@ import apideck_unify from apideck_unify import Apideck import os + with Apideck( api_key=os.getenv("APIDECK_API_KEY", ""), consumer_id="test-consumer", @@ -437,7 +441,7 @@ with Apideck( res = apideck.accounting.suppliers.update(id="", consumer_id="test-consumer", app_id="dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", service_id="salesforce", display_id="EMP00101", display_name="Windsurf Shop", company_name="SpaceX", company_id="12345", title="CEO", first_name="Elon", middle_name="D.", last_name="Musk", suffix="Jr.", individual=True, addresses=[ { "id": "123", - "type": apideck_unify.Type.PRIMARY, + "type": apideck_unify.AddressType.PRIMARY, "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", @@ -463,7 +467,7 @@ with Apideck( }, { "id": "123", - "type": apideck_unify.Type.PRIMARY, + "type": apideck_unify.AddressType.PRIMARY, "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", @@ -489,7 +493,7 @@ with Apideck( }, { "id": "123", - "type": apideck_unify.Type.PRIMARY, + "type": apideck_unify.AddressType.PRIMARY, "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", @@ -692,6 +696,7 @@ Delete Supplier from apideck_unify import Apideck import os + with Apideck( api_key=os.getenv("APIDECK_API_KEY", ""), consumer_id="test-consumer", diff --git a/docs/sdks/taxrates/README.md b/docs/sdks/taxrates/README.md index 3eb11f53..9480a1c6 100644 --- a/docs/sdks/taxrates/README.md +++ b/docs/sdks/taxrates/README.md @@ -22,6 +22,7 @@ List Tax Rates. Note: Not all connectors return the actual rate/percentage value from apideck_unify import Apideck import os + with Apideck( api_key=os.getenv("APIDECK_API_KEY", ""), consumer_id="test-consumer", @@ -86,6 +87,7 @@ import apideck_unify from apideck_unify import Apideck import os + with Apideck( api_key=os.getenv("APIDECK_API_KEY", ""), consumer_id="test-consumer", @@ -213,6 +215,7 @@ Get Tax Rate. Note: Not all connectors return the actual rate/percentage value. from apideck_unify import Apideck import os + with Apideck( api_key=os.getenv("APIDECK_API_KEY", ""), consumer_id="test-consumer", @@ -266,6 +269,7 @@ import apideck_unify from apideck_unify import Apideck import os + with Apideck( api_key=os.getenv("APIDECK_API_KEY", ""), consumer_id="test-consumer", @@ -417,6 +421,7 @@ Delete Tax Rate from apideck_unify import Apideck import os + with Apideck( api_key=os.getenv("APIDECK_API_KEY", ""), consumer_id="test-consumer", diff --git a/docs/sdks/timeoffrequests/README.md b/docs/sdks/timeoffrequests/README.md index 8aff1b3a..bed743f4 100644 --- a/docs/sdks/timeoffrequests/README.md +++ b/docs/sdks/timeoffrequests/README.md @@ -22,6 +22,7 @@ import apideck_unify from apideck_unify import Apideck import os + with Apideck( api_key=os.getenv("APIDECK_API_KEY", ""), consumer_id="test-consumer", @@ -87,6 +88,7 @@ import apideck_unify from apideck_unify import Apideck import os + with Apideck( api_key=os.getenv("APIDECK_API_KEY", ""), consumer_id="test-consumer", @@ -198,6 +200,7 @@ Get Time Off Request from apideck_unify import Apideck import os + with Apideck( api_key=os.getenv("APIDECK_API_KEY", ""), consumer_id="test-consumer", @@ -252,6 +255,7 @@ import apideck_unify from apideck_unify import Apideck import os + with Apideck( api_key=os.getenv("APIDECK_API_KEY", ""), consumer_id="test-consumer", @@ -394,6 +398,7 @@ Delete Time Off Request from apideck_unify import Apideck import os + with Apideck( api_key=os.getenv("APIDECK_API_KEY", ""), consumer_id="test-consumer", diff --git a/docs/sdks/trackingcategories/README.md b/docs/sdks/trackingcategories/README.md index 1ec5628c..214412b5 100644 --- a/docs/sdks/trackingcategories/README.md +++ b/docs/sdks/trackingcategories/README.md @@ -21,6 +21,7 @@ List Tracking Categories from apideck_unify import Apideck import os + with Apideck( api_key=os.getenv("APIDECK_API_KEY", ""), consumer_id="test-consumer", @@ -78,6 +79,7 @@ import apideck_unify from apideck_unify import Apideck import os + with Apideck( api_key=os.getenv("APIDECK_API_KEY", ""), consumer_id="test-consumer", @@ -178,6 +180,7 @@ Get Tracking Category from apideck_unify import Apideck import os + with Apideck( api_key=os.getenv("APIDECK_API_KEY", ""), consumer_id="test-consumer", @@ -231,6 +234,7 @@ import apideck_unify from apideck_unify import Apideck import os + with Apideck( api_key=os.getenv("APIDECK_API_KEY", ""), consumer_id="test-consumer", @@ -361,6 +365,7 @@ Delete Tracking Category from apideck_unify import Apideck import os + with Apideck( api_key=os.getenv("APIDECK_API_KEY", ""), consumer_id="test-consumer", diff --git a/docs/sdks/uploadsessions/README.md b/docs/sdks/uploadsessions/README.md index 0d98a8ca..ae36ffd9 100644 --- a/docs/sdks/uploadsessions/README.md +++ b/docs/sdks/uploadsessions/README.md @@ -20,6 +20,7 @@ Start an Upload Session. Upload sessions are used to upload large files, use the from apideck_unify import Apideck import os + with Apideck( api_key=os.getenv("APIDECK_API_KEY", ""), consumer_id="test-consumer", @@ -119,6 +120,7 @@ Get Upload Session. Use the `part_size` to split your file into parts. Upload th from apideck_unify import Apideck import os + with Apideck( api_key=os.getenv("APIDECK_API_KEY", ""), consumer_id="test-consumer", @@ -172,6 +174,7 @@ Abort Upload Session. Note that the base URL is upload.apideck.com instead of un from apideck_unify import Apideck import os + with Apideck( api_key=os.getenv("APIDECK_API_KEY", ""), consumer_id="test-consumer", @@ -223,6 +226,7 @@ Finish Upload Session. Only call this endpoint after all File parts have been up from apideck_unify import Apideck import os + with Apideck( api_key=os.getenv("APIDECK_API_KEY", ""), consumer_id="test-consumer", diff --git a/docs/sdks/users/README.md b/docs/sdks/users/README.md index f4346863..d7d922f0 100644 --- a/docs/sdks/users/README.md +++ b/docs/sdks/users/README.md @@ -21,6 +21,7 @@ List users from apideck_unify import Apideck import os + with Apideck( api_key=os.getenv("APIDECK_API_KEY", ""), consumer_id="test-consumer", @@ -78,6 +79,7 @@ import apideck_unify from apideck_unify import Apideck import os + with Apideck( api_key=os.getenv("APIDECK_API_KEY", ""), consumer_id="test-consumer", @@ -93,7 +95,7 @@ with Apideck( ], consumer_id="test-consumer", app_id="dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", service_id="salesforce", parent_id="54321", username="masterofcoin", first_name="Elon", last_name="Musk", title="CEO", division="Europe", company_name="SpaceX", employee_number="123456-AB", description="A description", image="https://logo.clearbit.com/spacex.com?s=128", language="EN", status="active", password="supersecretpassword", addresses=[ { "id": "123", - "type": apideck_unify.Type.PRIMARY, + "type": apideck_unify.AddressType.PRIMARY, "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", @@ -119,7 +121,7 @@ with Apideck( }, { "id": "123", - "type": apideck_unify.Type.PRIMARY, + "type": apideck_unify.AddressType.PRIMARY, "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", @@ -236,6 +238,7 @@ Get user from apideck_unify import Apideck import os + with Apideck( api_key=os.getenv("APIDECK_API_KEY", ""), consumer_id="test-consumer", @@ -289,6 +292,7 @@ import apideck_unify from apideck_unify import Apideck import os + with Apideck( api_key=os.getenv("APIDECK_API_KEY", ""), consumer_id="test-consumer", @@ -304,7 +308,7 @@ with Apideck( ], consumer_id="test-consumer", app_id="dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", service_id="salesforce", parent_id="54321", username="masterofcoin", first_name="Elon", last_name="Musk", title="CEO", division="Europe", company_name="SpaceX", employee_number="123456-AB", description="A description", image="https://logo.clearbit.com/spacex.com?s=128", language="EN", status="active", password="supersecretpassword", addresses=[ { "id": "123", - "type": apideck_unify.Type.PRIMARY, + "type": apideck_unify.AddressType.PRIMARY, "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", @@ -330,7 +334,7 @@ with Apideck( }, { "id": "123", - "type": apideck_unify.Type.PRIMARY, + "type": apideck_unify.AddressType.PRIMARY, "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", @@ -356,7 +360,7 @@ with Apideck( }, { "id": "123", - "type": apideck_unify.Type.PRIMARY, + "type": apideck_unify.AddressType.PRIMARY, "string": "25 Spring Street, Blackburn, VIC 3130", "name": "HQ US", "line1": "Main street", @@ -532,6 +536,7 @@ Delete user from apideck_unify import Apideck import os + with Apideck( api_key=os.getenv("APIDECK_API_KEY", ""), consumer_id="test-consumer", diff --git a/docs/sdks/validateconnection/README.md b/docs/sdks/validateconnection/README.md index 9a991417..6f4960ff 100644 --- a/docs/sdks/validateconnection/README.md +++ b/docs/sdks/validateconnection/README.md @@ -23,6 +23,7 @@ Note: from apideck_unify import Apideck import os + with Apideck( api_key=os.getenv("APIDECK_API_KEY", ""), consumer_id="test-consumer", diff --git a/docs/sdks/webhooks/README.md b/docs/sdks/webhooks/README.md index 527de801..81b628be 100644 --- a/docs/sdks/webhooks/README.md +++ b/docs/sdks/webhooks/README.md @@ -21,6 +21,7 @@ List all webhook subscriptions from apideck_unify import Apideck import os + with Apideck( api_key=os.getenv("APIDECK_API_KEY", ""), consumer_id="test-consumer", @@ -71,6 +72,7 @@ import apideck_unify from apideck_unify import Apideck import os + with Apideck( api_key=os.getenv("APIDECK_API_KEY", ""), consumer_id="test-consumer", @@ -126,6 +128,7 @@ Get the webhook subscription details from apideck_unify import Apideck import os + with Apideck( api_key=os.getenv("APIDECK_API_KEY", ""), consumer_id="test-consumer", @@ -175,6 +178,7 @@ import apideck_unify from apideck_unify import Apideck import os + with Apideck( api_key=os.getenv("APIDECK_API_KEY", ""), consumer_id="test-consumer", @@ -230,6 +234,7 @@ Delete a webhook subscription from apideck_unify import Apideck import os + with Apideck( api_key=os.getenv("APIDECK_API_KEY", ""), consumer_id="test-consumer", diff --git a/pyproject.toml b/pyproject.toml index 11ca66a8..d882fd69 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "apideck-unify" -version = "0.8.0" +version = "0.8.1" description = "Python Client SDK Generated by Speakeasy." authors = [{ name = "Speakeasy" },] readme = "README-PYPI.md" diff --git a/src/apideck_unify/_version.py b/src/apideck_unify/_version.py index 47ac86d0..5dcf2d08 100644 --- a/src/apideck_unify/_version.py +++ b/src/apideck_unify/_version.py @@ -3,10 +3,10 @@ import importlib.metadata __title__: str = "apideck-unify" -__version__: str = "0.8.0" +__version__: str = "0.8.1" __openapi_doc_version__: str = "10.11.5" -__gen_version__: str = "2.522.5" -__user_agent__: str = "speakeasy-sdk/python 0.8.0 2.522.5 10.11.5 apideck-unify" +__gen_version__: str = "2.539.1" +__user_agent__: str = "speakeasy-sdk/python 0.8.1 2.539.1 10.11.5 apideck-unify" try: if __package__ is not None: diff --git a/src/apideck_unify/basesdk.py b/src/apideck_unify/basesdk.py index 9128b4fe..b5acc2a1 100644 --- a/src/apideck_unify/basesdk.py +++ b/src/apideck_unify/basesdk.py @@ -231,6 +231,10 @@ def do(): req.headers, get_body_content(req), ) + + if client is None: + raise ValueError("client is required") + http_res = client.send(req, stream=stream) except Exception as e: _, e = self.sdk_configuration.get_hooks().after_error( @@ -303,6 +307,10 @@ async def do(): req.headers, get_body_content(req), ) + + if client is None: + raise ValueError("client is required") + http_res = await client.send(req, stream=stream) except Exception as e: _, e = self.sdk_configuration.get_hooks().after_error( diff --git a/src/apideck_unify/contacts.py b/src/apideck_unify/contacts.py index 0dfe9996..2eb65b58 100644 --- a/src/apideck_unify/contacts.py +++ b/src/apideck_unify/contacts.py @@ -409,7 +409,7 @@ def create( app_id: Optional[str] = None, service_id: Optional[str] = None, owner_id: OptionalNullable[str] = UNSET, - type_: OptionalNullable[models.ContactType] = UNSET, + type_: OptionalNullable[models.Type] = UNSET, company_id: OptionalNullable[str] = UNSET, company_name: OptionalNullable[str] = UNSET, lead_id: OptionalNullable[str] = UNSET, @@ -688,7 +688,7 @@ async def create_async( app_id: Optional[str] = None, service_id: Optional[str] = None, owner_id: OptionalNullable[str] = UNSET, - type_: OptionalNullable[models.ContactType] = UNSET, + type_: OptionalNullable[models.Type] = UNSET, company_id: OptionalNullable[str] = UNSET, company_name: OptionalNullable[str] = UNSET, lead_id: OptionalNullable[str] = UNSET, @@ -1286,7 +1286,7 @@ def update( service_id: Optional[str] = None, raw: Optional[bool] = False, owner_id: OptionalNullable[str] = UNSET, - type_: OptionalNullable[models.ContactType] = UNSET, + type_: OptionalNullable[models.Type] = UNSET, company_id: OptionalNullable[str] = UNSET, company_name: OptionalNullable[str] = UNSET, lead_id: OptionalNullable[str] = UNSET, @@ -1568,7 +1568,7 @@ async def update_async( service_id: Optional[str] = None, raw: Optional[bool] = False, owner_id: OptionalNullable[str] = UNSET, - type_: OptionalNullable[models.ContactType] = UNSET, + type_: OptionalNullable[models.Type] = UNSET, company_id: OptionalNullable[str] = UNSET, company_name: OptionalNullable[str] = UNSET, lead_id: OptionalNullable[str] = UNSET, diff --git a/src/apideck_unify/httpclient.py b/src/apideck_unify/httpclient.py index 9dc43cb0..1e426352 100644 --- a/src/apideck_unify/httpclient.py +++ b/src/apideck_unify/httpclient.py @@ -94,7 +94,9 @@ class ClientOwner(Protocol): def close_clients( owner: ClientOwner, sync_client: Union[HttpClient, None], + sync_client_supplied: bool, async_client: Union[AsyncHttpClient, None], + async_client_supplied: bool, ) -> None: """ A finalizer function that is meant to be used with weakref.finalize to close @@ -107,13 +109,13 @@ def close_clients( owner.client = None owner.async_client = None - if sync_client is not None: + if sync_client is not None and not sync_client_supplied: try: sync_client.close() except Exception: pass - if async_client is not None: + if async_client is not None and not async_client_supplied: is_async = False try: asyncio.get_running_loop() diff --git a/src/apideck_unify/models/__init__.py b/src/apideck_unify/models/__init__.py index 14be1326..f5e7e3e8 100644 --- a/src/apideck_unify/models/__init__.py +++ b/src/apideck_unify/models/__init__.py @@ -783,7 +783,7 @@ ActivityAttendeeStatus, ActivityAttendeeTypedDict, ) -from .address import Address, AddressTypedDict, Type +from .address import Address, AddressType, AddressTypedDict from .ageddebtors import AgedDebtors, AgedDebtorsTypedDict from .agedreportfilter import AgedReportFilter, AgedReportFilterTypedDict from .allocation import ( @@ -1161,8 +1161,8 @@ ContactGender, ContactInput, ContactInputTypedDict, - ContactType, ContactTypedDict, + Type, ) from .contactsfilter import ContactsFilter, ContactsFilterTypedDict from .contactssort import ContactsSort, ContactsSortBy, ContactsSortTypedDict @@ -4188,6 +4188,7 @@ "ActivityType", "ActivityTypedDict", "Address", + "AddressType", "AddressTypedDict", "Addresses", "AddressesTypedDict", @@ -4491,7 +4492,6 @@ "ContactGender", "ContactInput", "ContactInputTypedDict", - "ContactType", "ContactTypedDict", "ContactsFilter", "ContactsFilterTypedDict", diff --git a/src/apideck_unify/models/address.py b/src/apideck_unify/models/address.py index 56d87870..3ea66941 100644 --- a/src/apideck_unify/models/address.py +++ b/src/apideck_unify/models/address.py @@ -13,7 +13,7 @@ from typing_extensions import NotRequired, TypedDict -class Type(str, Enum): +class AddressType(str, Enum): r"""The type of address.""" PRIMARY = "primary" @@ -28,7 +28,7 @@ class Type(str, Enum): class AddressTypedDict(TypedDict): id: NotRequired[Nullable[str]] r"""Unique identifier for the address.""" - type: NotRequired[Nullable[Type]] + type: NotRequired[Nullable[AddressType]] r"""The type of address.""" string: NotRequired[Nullable[str]] r"""The address string. Some APIs don't provide structured address data.""" @@ -80,7 +80,7 @@ class Address(BaseModel): id: OptionalNullable[str] = UNSET r"""Unique identifier for the address.""" - type: OptionalNullable[Type] = UNSET + type: OptionalNullable[AddressType] = UNSET r"""The type of address.""" string: OptionalNullable[str] = UNSET diff --git a/src/apideck_unify/models/contact.py b/src/apideck_unify/models/contact.py index 25be9960..b1adec8a 100644 --- a/src/apideck_unify/models/contact.py +++ b/src/apideck_unify/models/contact.py @@ -24,7 +24,7 @@ from typing_extensions import Annotated, NotRequired, TypedDict -class ContactType(str, Enum): +class Type(str, Enum): r"""The type of the contact.""" CUSTOMER = "customer" @@ -48,7 +48,7 @@ class ContactTypedDict(TypedDict): r"""Unique identifier for the contact.""" owner_id: NotRequired[Nullable[str]] r"""The owner of the contact.""" - type: NotRequired[Nullable[ContactType]] + type: NotRequired[Nullable[Type]] r"""The type of the contact.""" company_id: NotRequired[Nullable[str]] r"""The company the contact is associated with.""" @@ -127,7 +127,7 @@ class Contact(BaseModel): owner_id: OptionalNullable[str] = UNSET r"""The owner of the contact.""" - type: OptionalNullable[ContactType] = UNSET + type: OptionalNullable[Type] = UNSET r"""The type of the contact.""" company_id: OptionalNullable[str] = UNSET @@ -347,7 +347,7 @@ class ContactInputTypedDict(TypedDict): r"""Full name of the contact.""" owner_id: NotRequired[Nullable[str]] r"""The owner of the contact.""" - type: NotRequired[Nullable[ContactType]] + type: NotRequired[Nullable[Type]] r"""The type of the contact.""" company_id: NotRequired[Nullable[str]] r"""The company the contact is associated with.""" @@ -411,7 +411,7 @@ class ContactInput(BaseModel): owner_id: OptionalNullable[str] = UNSET r"""The owner of the contact.""" - type: OptionalNullable[ContactType] = UNSET + type: OptionalNullable[Type] = UNSET r"""The type of the contact.""" company_id: OptionalNullable[str] = UNSET diff --git a/src/apideck_unify/models/filestorage_uploadsessionsaddop.py b/src/apideck_unify/models/filestorage_uploadsessionsaddop.py index dd60acd1..37dd421f 100644 --- a/src/apideck_unify/models/filestorage_uploadsessionsaddop.py +++ b/src/apideck_unify/models/filestorage_uploadsessionsaddop.py @@ -25,6 +25,7 @@ from typing import Optional from typing_extensions import Annotated, NotRequired, TypedDict + FILE_STORAGE_UPLOAD_SESSIONS_ADD_OP_SERVERS = [ "https://upload.apideck.com", ] diff --git a/src/apideck_unify/models/filestorage_uploadsessionsfinishop.py b/src/apideck_unify/models/filestorage_uploadsessionsfinishop.py index cbf7762d..01cd5e2b 100644 --- a/src/apideck_unify/models/filestorage_uploadsessionsfinishop.py +++ b/src/apideck_unify/models/filestorage_uploadsessionsfinishop.py @@ -19,6 +19,7 @@ from typing import Optional from typing_extensions import Annotated, NotRequired, TypedDict + FILE_STORAGE_UPLOAD_SESSIONS_FINISH_OP_SERVERS = [ "https://upload.apideck.com", ] diff --git a/src/apideck_unify/models/filestorage_uploadsessionsoneop.py b/src/apideck_unify/models/filestorage_uploadsessionsoneop.py index fb59246a..5ff85921 100644 --- a/src/apideck_unify/models/filestorage_uploadsessionsoneop.py +++ b/src/apideck_unify/models/filestorage_uploadsessionsoneop.py @@ -28,6 +28,7 @@ from typing import Optional from typing_extensions import Annotated, NotRequired, TypedDict + FILE_STORAGE_UPLOAD_SESSIONS_ONE_OP_SERVERS = [ "https://upload.apideck.com", ] diff --git a/src/apideck_unify/sdk.py b/src/apideck_unify/sdk.py index fb198f93..2cbf9434 100644 --- a/src/apideck_unify/sdk.py +++ b/src/apideck_unify/sdk.py @@ -69,15 +69,19 @@ def __init__( :param retry_config: The retry configuration to use for all supported methods :param timeout_ms: Optional request timeout applied to each operation in milliseconds """ + client_supplied = True if client is None: client = httpx.Client() + client_supplied = False assert issubclass( type(client), HttpClient ), "The provided client must implement the HttpClient protocol." + async_client_supplied = True if async_client is None: async_client = httpx.AsyncClient() + async_client_supplied = False if debug_logger is None: debug_logger = get_default_logger() @@ -108,7 +112,9 @@ def __init__( self, SDKConfiguration( client=client, + client_supplied=client_supplied, async_client=async_client, + async_client_supplied=async_client_supplied, globals=_globals, security=security, server_url=server_url, @@ -123,7 +129,7 @@ def __init__( current_server_url, *_ = self.sdk_configuration.get_server_details() server_url, self.sdk_configuration.client = hooks.sdk_init( - current_server_url, self.sdk_configuration.client + current_server_url, client ) if current_server_url != server_url: self.sdk_configuration.server_url = server_url @@ -136,7 +142,9 @@ def __init__( close_clients, cast(ClientOwner, self.sdk_configuration), self.sdk_configuration.client, + self.sdk_configuration.client_supplied, self.sdk_configuration.async_client, + self.sdk_configuration.async_client_supplied, ) self._init_sdks() @@ -161,9 +169,17 @@ async def __aenter__(self): return self def __exit__(self, exc_type, exc_val, exc_tb): - if self.sdk_configuration.client is not None: + if ( + self.sdk_configuration.client is not None + and not self.sdk_configuration.client_supplied + ): self.sdk_configuration.client.close() + self.sdk_configuration.client = None async def __aexit__(self, exc_type, exc_val, exc_tb): - if self.sdk_configuration.async_client is not None: + if ( + self.sdk_configuration.async_client is not None + and not self.sdk_configuration.async_client_supplied + ): await self.sdk_configuration.async_client.aclose() + self.sdk_configuration.async_client = None diff --git a/src/apideck_unify/sdkconfiguration.py b/src/apideck_unify/sdkconfiguration.py index 22460c66..0792db20 100644 --- a/src/apideck_unify/sdkconfiguration.py +++ b/src/apideck_unify/sdkconfiguration.py @@ -25,8 +25,10 @@ @dataclass class SDKConfiguration: - client: HttpClient - async_client: AsyncHttpClient + client: Union[HttpClient, None] + client_supplied: bool + async_client: Union[AsyncHttpClient, None] + async_client_supplied: bool debug_logger: Logger globals: internal.Globals security: Optional[Union[models.Security, Callable[[], models.Security]]] = None