Skip to content

Commit c7b4bfa

Browse files
authored
Merge pull request #18 from apideck-libraries/speakeasy-sdk-regen-1737099259
chore: 🐝 Update SDK - Generate 0.4.0
2 parents 839e00f + 91da2c5 commit c7b4bfa

File tree

149 files changed

+6884
-2142
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

149 files changed

+6884
-2142
lines changed

.speakeasy/gen.lock

Lines changed: 1081 additions & 936 deletions
Large diffs are not rendered by default.

.speakeasy/gen.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ generation:
1616
oAuth2ClientCredentialsEnabled: true
1717
oAuth2PasswordEnabled: true
1818
python:
19-
version: 0.3.1
19+
version: 0.4.0
2020
additionalDependencies:
2121
dev: {}
2222
main: {}
@@ -25,6 +25,7 @@ python:
2525
clientServerStatusCodesAsErrors: true
2626
defaultErrorName: APIError
2727
description: Python Client SDK Generated by Speakeasy.
28+
enableCustomCodeRegions: false
2829
enumFormat: enum
2930
envVarPrefix: APIDECK
3031
fixFlags:

.speakeasy/workflow.lock

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
1-
speakeasyVersion: 1.468.5
1+
speakeasyVersion: 1.469.11
22
sources:
33
Apideck:
44
sourceNamespace: apideck
5-
sourceRevisionDigest: sha256:797b175e0bdb154e1f85b20717a0da5756b76768186a5032b096d71711e64477
6-
sourceBlobDigest: sha256:3f84a8ae8fa6a16815edc071340e52c831159d903ba7a68a5bdad8cd883acb96
5+
sourceRevisionDigest: sha256:00a0a354f17a0ea8997dba873c68faca39ec080018cef76bade86ee67ffe58d6
6+
sourceBlobDigest: sha256:440170e04444bbabcdba274c27423ec34165bdaf07db37271d5a69da494303e5
77
tags:
88
- latest
9-
- speakeasy-sdk-regen-1736865340
10-
- 10.9.1
9+
- speakeasy-sdk-regen-1737099259
10+
- 10.10.0
1111
targets:
1212
apideck:
1313
source: Apideck
1414
sourceNamespace: apideck
15-
sourceRevisionDigest: sha256:797b175e0bdb154e1f85b20717a0da5756b76768186a5032b096d71711e64477
16-
sourceBlobDigest: sha256:3f84a8ae8fa6a16815edc071340e52c831159d903ba7a68a5bdad8cd883acb96
15+
sourceRevisionDigest: sha256:00a0a354f17a0ea8997dba873c68faca39ec080018cef76bade86ee67ffe58d6
16+
sourceBlobDigest: sha256:440170e04444bbabcdba274c27423ec34165bdaf07db37271d5a69da494303e5
1717
codeSamplesNamespace: apideck-python-code-samples
18-
codeSamplesRevisionDigest: sha256:d062a7407d6f5e7d9d97d099244d5e3f3b711608a64c08df84272657838fa75f
18+
codeSamplesRevisionDigest: sha256:07d9ff8fed7b85504cf697c239f442bf689c8b89b701c15a8c89052714a7992e
1919
workflow:
2020
workflowVersion: 1.0.0
2121
speakeasyVersion: latest

README.md

Lines changed: 30 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ with Apideck(
8787
app_id="dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX",
8888
) as apideck:
8989

90-
res = apideck.accounting.tax_rates.list(service_id="salesforce", filter_={
90+
res = apideck.accounting.tax_rates.list(raw=False, service_id="salesforce", limit=20, filter_={
9191
"assets": True,
9292
"equity": True,
9393
"expenses": True,
@@ -119,7 +119,7 @@ async def main():
119119
app_id="dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX",
120120
) as apideck:
121121

122-
res = await apideck.accounting.tax_rates.list_async(service_id="salesforce", filter_={
122+
res = await apideck.accounting.tax_rates.list_async(raw=False, service_id="salesforce", limit=20, filter_={
123123
"assets": True,
124124
"equity": True,
125125
"expenses": True,
@@ -160,7 +160,7 @@ with Apideck(
160160
app_id="dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX",
161161
) as apideck:
162162

163-
res = apideck.accounting.tax_rates.list(service_id="salesforce", filter_={
163+
res = apideck.accounting.tax_rates.list(raw=False, service_id="salesforce", limit=20, filter_={
164164
"assets": True,
165165
"equity": True,
166166
"expenses": True,
@@ -723,7 +723,7 @@ with Apideck(
723723
app_id="dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX",
724724
) as apideck:
725725

726-
res = apideck.accounting.tax_rates.list(service_id="salesforce", filter_={
726+
res = apideck.accounting.tax_rates.list(raw=False, service_id="salesforce", limit=20, filter_={
727727
"assets": True,
728728
"equity": True,
729729
"expenses": True,
@@ -758,7 +758,7 @@ with Apideck(
758758
app_id="dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX",
759759
) as apideck:
760760

761-
res = apideck.accounting.tax_rates.list(service_id="salesforce", filter_={
761+
res = apideck.accounting.tax_rates.list(raw=False, service_id="salesforce", limit=20, filter_={
762762
"assets": True,
763763
"equity": True,
764764
"expenses": True,
@@ -789,7 +789,7 @@ with Apideck(
789789
app_id="dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX",
790790
) as apideck:
791791

792-
res = apideck.accounting.tax_rates.list(service_id="salesforce", filter_={
792+
res = apideck.accounting.tax_rates.list(raw=False, service_id="salesforce", limit=20, filter_={
793793
"assets": True,
794794
"equity": True,
795795
"expenses": True,
@@ -846,7 +846,7 @@ with Apideck(
846846
res = None
847847
try:
848848

849-
res = apideck.accounting.tax_rates.list(service_id="salesforce", filter_={
849+
res = apideck.accounting.tax_rates.list(raw=False, service_id="salesforce", limit=20, filter_={
850850
"assets": True,
851851
"equity": True,
852852
"expenses": True,
@@ -899,7 +899,7 @@ with Apideck(
899899
app_id="dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX",
900900
) as apideck:
901901

902-
res = apideck.accounting.tax_rates.list(service_id="salesforce", filter_={
902+
res = apideck.accounting.tax_rates.list(raw=False, service_id="salesforce", limit=20, filter_={
903903
"assets": True,
904904
"equity": True,
905905
"expenses": True,
@@ -929,7 +929,28 @@ with Apideck(
929929
app_id="dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX",
930930
) as apideck:
931931

932-
res = apideck.file_storage.upload_sessions.create(name="Documents", parent_folder_id="1234", size=1810673, service_id="salesforce", drive_id="1234", pass_through=[
932+
res = apideck.file_storage.upload_sessions.create(name="Documents", parent_folder_id="1234", size=1810673, raw=False, service_id="salesforce", drive_id="1234", pass_through=[
933+
{
934+
"service_id": "<id>",
935+
"extend_paths": [
936+
{
937+
"path": "$.nested.property",
938+
"value": {
939+
"TaxClassificationRef": {
940+
"value": "EUC-99990201-V1-00020000",
941+
},
942+
},
943+
},
944+
{
945+
"path": "$.nested.property",
946+
"value": {
947+
"TaxClassificationRef": {
948+
"value": "EUC-99990201-V1-00020000",
949+
},
950+
},
951+
},
952+
],
953+
},
933954
{
934955
"service_id": "<id>",
935956
"extend_paths": [

RELEASES.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,4 +68,14 @@ Based on:
6868
### Generated
6969
- [python v0.3.1] .
7070
### Releases
71-
- [PyPI v0.3.1] https://pypi.org/project/apideck-unify/0.3.1 - .
71+
- [PyPI v0.3.1] https://pypi.org/project/apideck-unify/0.3.1 - .
72+
73+
## 2025-01-21 00:15:44
74+
### Changes
75+
Based on:
76+
- OpenAPI Doc
77+
- Speakeasy CLI 1.469.11 (2.493.32) https://github.com/speakeasy-api/speakeasy
78+
### Generated
79+
- [python v0.4.0] .
80+
### Releases
81+
- [PyPI v0.4.0] https://pypi.org/project/apideck-unify/0.4.0 - .

USAGE.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ with Apideck(
1010
app_id="dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX",
1111
) as apideck:
1212

13-
res = apideck.accounting.tax_rates.list(service_id="salesforce", filter_={
13+
res = apideck.accounting.tax_rates.list(raw=False, service_id="salesforce", limit=20, filter_={
1414
"assets": True,
1515
"equity": True,
1616
"expenses": True,
@@ -42,7 +42,7 @@ async def main():
4242
app_id="dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX",
4343
) as apideck:
4444

45-
res = await apideck.accounting.tax_rates.list_async(service_id="salesforce", filter_={
45+
res = await apideck.accounting.tax_rates.list_async(raw=False, service_id="salesforce", limit=20, filter_={
4646
"assets": True,
4747
"equity": True,
4848
"expenses": True,

docs/sdks/activities/README.md

Lines changed: 73 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ with Apideck(
2929
app_id="dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX",
3030
) as apideck:
3131

32-
res = apideck.crm.activities.list(service_id="salesforce", filter_={
32+
res = apideck.crm.activities.list(raw=False, service_id="salesforce", limit=20, filter_={
3333
"updated_since": dateutil.parser.isoparse("2020-09-30T07:43:32.000Z"),
3434
}, sort={
3535
"by": apideck_unify.ActivitiesSortBy.CREATED_AT,
@@ -91,7 +91,7 @@ with Apideck(
9191
app_id="dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX",
9292
) as apideck:
9393

94-
res = apideck.crm.activities.create(type_=apideck_unify.ActivityType.MEETING, 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={
94+
res = apideck.crm.activities.create(type_=apideck_unify.ActivityType.MEETING, raw=False, 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={
9595
"id": "123",
9696
"type": apideck_unify.Type.PRIMARY,
9797
"string": "25 Spring Street, Blackburn, VIC 3130",
@@ -121,6 +121,13 @@ with Apideck(
121121
"id": "2389328923893298",
122122
"name": "employee_level",
123123
"description": "Employee Level",
124+
"value": {},
125+
},
126+
{
127+
"id": "2389328923893298",
128+
"name": "employee_level",
129+
"description": "Employee Level",
130+
"value": True,
124131
},
125132
], attendees=[
126133
{
@@ -135,7 +142,35 @@ with Apideck(
135142
"status": apideck_unify.ActivityAttendeeStatus.ACCEPTED,
136143
},
137144
], pass_through=[
138-
145+
{
146+
"service_id": "<id>",
147+
"extend_paths": [
148+
{
149+
"path": "$.nested.property",
150+
"value": {
151+
"TaxClassificationRef": {
152+
"value": "EUC-99990201-V1-00020000",
153+
},
154+
},
155+
},
156+
{
157+
"path": "$.nested.property",
158+
"value": {
159+
"TaxClassificationRef": {
160+
"value": "EUC-99990201-V1-00020000",
161+
},
162+
},
163+
},
164+
{
165+
"path": "$.nested.property",
166+
"value": {
167+
"TaxClassificationRef": {
168+
"value": "EUC-99990201-V1-00020000",
169+
},
170+
},
171+
},
172+
],
173+
},
139174
])
140175

141176
assert res.create_activity_response is not None
@@ -228,7 +263,7 @@ with Apideck(
228263
app_id="dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX",
229264
) as apideck:
230265

231-
res = apideck.crm.activities.get(id="<id>", service_id="salesforce", fields="id,updated_at")
266+
res = apideck.crm.activities.get(id="<id>", service_id="salesforce", raw=False, fields="id,updated_at")
232267

233268
assert res.get_activity_response is not None
234269

@@ -279,7 +314,7 @@ with Apideck(
279314
app_id="dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX",
280315
) as apideck:
281316

282-
res = apideck.crm.activities.update(id="<id>", type_=apideck_unify.ActivityType.MEETING, 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={
317+
res = apideck.crm.activities.update(id="<id>", type_=apideck_unify.ActivityType.MEETING, service_id="salesforce", raw=False, 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={
283318
"id": "123",
284319
"type": apideck_unify.Type.PRIMARY,
285320
"string": "25 Spring Street, Blackburn, VIC 3130",
@@ -309,6 +344,7 @@ with Apideck(
309344
"id": "2389328923893298",
310345
"name": "employee_level",
311346
"description": "Employee Level",
347+
"value": {},
312348
},
313349
{
314350
"id": "2389328923893298",
@@ -320,6 +356,10 @@ with Apideck(
320356
"id": "2389328923893298",
321357
"name": "employee_level",
322358
"description": "Employee Level",
359+
"value": [
360+
{},
361+
{},
362+
],
323363
},
324364
], attendees=[
325365
{
@@ -333,11 +373,29 @@ with Apideck(
333373
"is_organizer": True,
334374
"status": apideck_unify.ActivityAttendeeStatus.ACCEPTED,
335375
},
376+
{
377+
"name": "Elon Musk",
378+
"first_name": "Elon",
379+
"middle_name": "D.",
380+
"last_name": "Musk",
381+
"prefix": "Mr.",
382+
"suffix": "PhD",
383+
"email_address": "[email protected]",
384+
"is_organizer": True,
385+
"status": apideck_unify.ActivityAttendeeStatus.ACCEPTED,
386+
},
336387
], pass_through=[
337388
{
338389
"service_id": "<id>",
339390
"extend_paths": [
340-
391+
{
392+
"path": "$.nested.property",
393+
"value": {
394+
"TaxClassificationRef": {
395+
"value": "EUC-99990201-V1-00020000",
396+
},
397+
},
398+
},
341399
],
342400
},
343401
{
@@ -380,6 +438,14 @@ with Apideck(
380438
},
381439
},
382440
},
441+
{
442+
"path": "$.nested.property",
443+
"value": {
444+
"TaxClassificationRef": {
445+
"value": "EUC-99990201-V1-00020000",
446+
},
447+
},
448+
},
383449
],
384450
},
385451
])
@@ -475,7 +541,7 @@ with Apideck(
475541
app_id="dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX",
476542
) as apideck:
477543

478-
res = apideck.crm.activities.delete(id="<id>", service_id="salesforce")
544+
res = apideck.crm.activities.delete(id="<id>", service_id="salesforce", raw=False)
479545

480546
assert res.delete_activity_response is not None
481547

docs/sdks/ageddebtorssdk/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ with Apideck(
2323
app_id="dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX",
2424
) as apideck:
2525

26-
res = apideck.accounting.aged_debtors.get(service_id="salesforce", filter_={
26+
res = apideck.accounting.aged_debtors.get(raw=False, service_id="salesforce", filter_={
2727
"customer_id": "123abc",
2828
"supplier_id": "123abc",
2929
"report_as_of_date": "2024-01-01",

0 commit comments

Comments
 (0)