Skip to content

Commit 9306a46

Browse files
authored
Merge pull request #16 from Gusto/speakeasy-sdk-regen-1738878869
chore: 🐝 Update SDK - Generate Clients GUSTO-EMBEDDED 0.1.11
2 parents 944714b + 263b042 commit 9306a46

File tree

90 files changed

+493
-178
lines changed

Some content is hidden

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

90 files changed

+493
-178
lines changed

.speakeasy/workflow.lock

Lines changed: 24 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
1-
speakeasyVersion: 1.481.1
1+
speakeasyVersion: 1.486.0
22
sources:
33
GustoEmbedded-OAS:
44
sourceNamespace: gusto-embedded-oas
5-
sourceRevisionDigest: sha256:b8ccd9c54ce42543d40145452547d9e85117f77def69f9a48a1e3c6e1aa2396e
6-
sourceBlobDigest: sha256:6dfecc5db3b054cf50ecae2721910db17389763b34e786b79ef14cd85fd36b2e
5+
sourceRevisionDigest: sha256:b05154b12af033d54101a730c6313c976877ab04326e60920dcc6df31320cebc
6+
sourceBlobDigest: sha256:5c5f2da70899ad4308b8fe528bc640da4e9082ea66efde70d6c474eb044552a4
77
tags:
88
- latest
9-
- speakeasy-sdk-regen-1738195948
9+
- speakeasy-sdk-regen-1738878869
1010
- "2024-04-01"
1111
targets:
1212
gusto-embedded:
1313
source: GustoEmbedded-OAS
1414
sourceNamespace: gusto-embedded-oas
15-
sourceRevisionDigest: sha256:b8ccd9c54ce42543d40145452547d9e85117f77def69f9a48a1e3c6e1aa2396e
16-
sourceBlobDigest: sha256:6dfecc5db3b054cf50ecae2721910db17389763b34e786b79ef14cd85fd36b2e
15+
sourceRevisionDigest: sha256:b05154b12af033d54101a730c6313c976877ab04326e60920dcc6df31320cebc
16+
sourceBlobDigest: sha256:5c5f2da70899ad4308b8fe528bc640da4e9082ea66efde70d6c474eb044552a4
1717
codeSamplesNamespace: gusto-embedded-oas-typescript-code-samples
18-
codeSamplesRevisionDigest: sha256:11834aa55388e94d51295b2ed5f51873b89481cd0543d1a95e51a0b3bfe97c7c
18+
codeSamplesRevisionDigest: sha256:e3310fc47d286e67aab2fca48d537375001004dfbcf83fe3ecbc70068c7398a1
1919
workflow:
2020
workflowVersion: 1.0.0
2121
speakeasyVersion: latest
@@ -29,6 +29,13 @@ workflow:
2929
- location: gusto_embedded/.speakeasy/speakeasy-modifications-overlay.yaml
3030
registry:
3131
location: registry.speakeasyapi.dev/gusto/ruby-sdk/gusto-embedded-oas
32+
GustoEmbedded-local:
33+
inputs:
34+
- location: ../Gusto-Partner-API/generated/embedded/api.v2024-04-01.embedded.yaml
35+
overlays:
36+
- location: gusto_embedded/.speakeasy/speakeasy-modifications-overlay.yaml
37+
registry:
38+
location: registry.speakeasyapi.dev/gusto/ruby-sdk/gusto-embedded-local
3239
targets:
3340
gusto-embedded:
3441
target: typescript
@@ -43,3 +50,13 @@ workflow:
4350
labelOverride:
4451
fixedValue: Typescript (SDK)
4552
blocking: false
53+
local:
54+
target: typescript
55+
source: GustoEmbedded-local
56+
output: ./gusto_embedded
57+
codeSamples:
58+
registry:
59+
location: registry.speakeasyapi.dev/gusto/ruby-sdk/gusto-embedded-oas-typescript-code-samples
60+
labelOverride:
61+
fixedValue: Typescript (SDK)
62+
blocking: false

gusto_embedded/.speakeasy/gen.lock

Lines changed: 18 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
lockVersion: 2.0.0
22
id: f0264e24-cbe2-4074-b157-7a6ba8979508
33
management:
4-
docChecksum: 51cedd0c66dc2dc3391a6fde1802f480
4+
docChecksum: f57a8deae4b93b973939a10950d25dcb
55
docVersion: "2024-04-01"
6-
speakeasyVersion: 1.481.1
7-
generationVersion: 2.500.5
8-
releaseVersion: 0.1.5
9-
configChecksum: 6749bdabf4f72dea0373366593e1de9f
6+
speakeasyVersion: 1.486.0
7+
generationVersion: 2.505.0
8+
releaseVersion: 0.1.11
9+
configChecksum: e1d7b7204b7ec25286a4c2dd9aa4b56d
1010
repoURL: https://github.com/Gusto/gusto-typescript-client.git
1111
repoSubDirectory: gusto_embedded
1212
installationURL: https://gitpkg.now.sh/Gusto/gusto-typescript-client/gusto_embedded
@@ -15,7 +15,7 @@ features:
1515
typescript:
1616
additionalDependencies: 0.1.0
1717
constsAndDefaults: 0.1.11
18-
core: 3.18.22
18+
core: 3.19.0
1919
defaultEnabledRetries: 0.1.0
2020
deprecations: 2.81.1
2121
devContainers: 2.90.0
@@ -35,6 +35,7 @@ features:
3535
responseFormat: 0.2.3
3636
retries: 2.83.0
3737
sdkHooks: 0.2.0
38+
serverIDs: 2.81.2
3839
unions: 2.85.8
3940
uploadStreams: 0.1.0
4041
generatedFiles:
@@ -166,6 +167,7 @@ generatedFiles:
166167
- docs/models/components/employeebenefitforcompanybenefitdeductionreducestaxableincome.md
167168
- docs/models/components/employeebenefitforcompanybenefitvalue.md
168169
- docs/models/components/employeebenefits.md
170+
- docs/models/components/employeebenefitvalue.md
169171
- docs/models/components/employeechecknumbermapping.md
170172
- docs/models/components/employeecompensations.md
171173
- docs/models/components/employeecustomfield.md
@@ -182,6 +184,7 @@ generatedFiles:
182184
- docs/models/components/employeestatetaxanswer.md
183185
- docs/models/components/employeestatetaxes.md
184186
- docs/models/components/employeestatetaxinputquestionformat.md
187+
- docs/models/components/employeestatetaxinputquestionformatvalue.md
185188
- docs/models/components/employeestatetaxquestion.md
186189
- docs/models/components/employeeworkaddress.md
187190
- docs/models/components/employmenthistorylist.md
@@ -352,6 +355,7 @@ generatedFiles:
352355
- docs/models/components/taxrequirementmetadataoptions.md
353356
- docs/models/components/taxrequirementmetadatatype.md
354357
- docs/models/components/taxrequirementmetadatavalidationtype.md
358+
- docs/models/components/taxrequirementmetadatavalue.md
355359
- docs/models/components/taxrequirementset.md
356360
- docs/models/components/taxrequirementsstate.md
357361
- docs/models/components/taxrequirementvalue.md
@@ -2466,6 +2470,8 @@ examples:
24662470
responses:
24672471
"201":
24682472
application/json: {"uuid": "f8c653dc-0094-41fb-8670-45d6399afade", "first_name": "Bob", "last_name": "Johnson", "title": "Owner", "phone": "4239879876", "email": "[email protected]", "birthday": "2002-10-31", "is_admin": false, "has_ssn": true, "version": "49ea586f528411f5cfadfd54452b2423", "identity_verification_status": "Skipped", "home_address": {"street_1": "524 Roob Divide", "street_2": "Suite 565", "city": "San Francisco", "state": "CA", "zip": "94107", "country": "USA"}}
2473+
"200":
2474+
application/json: {"uuid": "f8c653dc-0094-41fb-8670-45d6399afade", "first_name": "Bob", "last_name": "Johnson", "title": "Owner", "phone": "4239879876", "email": "[email protected]", "birthday": "2002-10-31", "is_admin": false, "has_ssn": true, "version": "49ea586f528411f5cfadfd54452b2423", "identity_verification_status": "Skipped", "home_address": {"street_1": "524 Roob Divide", "street_2": "Suite 565", "city": "San Francisco", "state": "CA", "zip": "94107", "country": "USA"}}
24692475
Basic:
24702476
parameters:
24712477
path:
@@ -4069,6 +4075,8 @@ examples:
40694075
responses:
40704076
"200":
40714077
application/json: {"street_1": "644 Fay Vista", "street_2": "Suite 842", "city": "Richmond", "state": "VA", "zip": "23218", "country": "USA", "active": false, "uuid": "56260b3d-c375-415c-b77a-75d99f717193", "effective_date": "2021-01-01", "courtesy_withholding": true}
4078+
"201":
4079+
application/json: {"street_1": "644 Fay Vista", "street_2": "Suite 842", "city": "Richmond", "state": "VA", "zip": "23218", "country": "USA", "active": false, "uuid": "56260b3d-c375-415c-b77a-75d99f717193", "effective_date": "2021-01-01", "courtesy_withholding": true}
40724080
Basic:
40734081
parameters:
40744082
path:
@@ -4193,7 +4201,7 @@ examples:
41934201
application/json: {"location_uuid": "6a119be7-b4b0-4e27-aaa0-89d5f2524635", "effective_date": "2023-05-15"}
41944202
responses:
41954203
"201":
4196-
application/json: {"uuid": "56260b3d-c375-415c-b77a-75d99f717193", "effective_date": "2021-01-01", "active": false, "location_uuid": "6a27753a-3093-41c1-9f25-ea64f15e8266", "employee_uuid": "7087a288-8349-4632-b92e-bc94fb79f29e", "street_1": "644 Fay Vista", "street_2": "Suite 842", "city": "Richmond", "state": "VA", "zip": "23218", "country": "USA"}
4204+
application/json: {"uuid": "56260b3d-c375-415c-b77a-75d99f717193", "effective_date": "2021-01-01", "active": false, "location_uuid": "6a27753a-3093-41c1-9f25-ea64f15e8266", "employee_uuid": "7087a288-8349-4632-b92e-bc94fb79f29e", "version": "<value>", "street_1": "644 Fay Vista", "street_2": "Suite 842", "city": "Richmond", "state": "VA", "zip": "23218", "country": "USA"}
41974205
Basic:
41984206
parameters:
41994207
path:
@@ -4357,7 +4365,7 @@ examples:
43574365
header: {}
43584366
responses:
43594367
"200":
4360-
application/json: [{"employee_uuid": "92fa4d30-e284-43d0-a26e-605619c04beb", "state": "CA", "file_new_hire_report": false, "is_work_state": true, "questions": [{"label": "Filing Status", "description": "The Head of Household status applies to unmarried individuals who have a relative living with them in their home. If unsure, read the <a target='_blank' data-bypass rel='noopener noreferrer' tabindex='99' href='https://www.ftb.ca.gov/file/personal/filing-status/index.html'>CA Filing Status explanation</a>.\n", "key": "filing_status", "input_question_format": {"type": "Select", "options": [{"value": "S", "label": "Single"}, {"value": "M", "label": "Married one income"}, {"value": "MD", "label": "Married dual income"}, {"value": "H", "label": "Head of household"}, {"value": "E", "label": "Do Not Withhold"}]}, "answers": [{"value": "S", "valid_from": "2010-01-01", "valid_up_to": null}]}, {"label": "Withholding Allowance", "description": "This value is needed to calculate the employee's CA income tax withholding. If unsure, use the <a target='_blank' data-bypass rel='noopener noreferrer' tabindex='99' href='http://www.edd.ca.gov/pdf_pub_ctr/de4.pdf'>CA DE-4 form</a> to calculate the value manually.\n", "key": "withholding_allowance", "input_question_format": {"type": "Number"}, "answers": [{"value": "1", "valid_from": "2010-01-01", "valid_up_to": null}]}, {"label": "Additional Withholding", "description": "You can withhold an additional amount of California income taxes here.", "key": "additional_withholding", "input_question_format": {"type": "Currency"}, "answers": [{"value": "0.0", "valid_from": "2010-01-01", "valid_up_to": null}]}, {"label": "File a New Hire Report?", "description": "State law requires you to file a new hire report within 20 days of hiring or re-hiring an employee.", "key": "file_new_hire_report", "input_question_format": {"type": "Select"}, "answers": [{"value": "true", "valid_from": "2010-01-01", "valid_up_to": null}]}]}]
4368+
application/json: [{"employee_uuid": "92fa4d30-e284-43d0-a26e-605619c04beb", "state": "CA", "file_new_hire_report": false, "is_work_state": true, "questions": [{"label": "Filing Status", "description": "The Head of Household status applies to unmarried individuals who have a relative living with them in their home. If unsure, read the <a target='_blank' data-bypass rel='noopener noreferrer' tabindex='99' href='https://www.ftb.ca.gov/file/personal/filing-status/index.html'>CA Filing Status explanation</a>.\n", "key": "filing_status", "input_question_format": {"type": "Select", "options": [{"value": "S", "label": "Single"}, {"value": "M", "label": "Married one income"}, {"value": "MD", "label": "Married dual income"}, {"value": "H", "label": "Head of household"}, {"value": "E", "label": "Do Not Withhold"}]}, "answers": [{"value": "S", "valid_from": "2010-01-01", "valid_up_to": null}]}, {"label": "Withholding Allowance", "description": "This value is needed to calculate the employee's CA income tax withholding. If unsure, use the <a target='_blank' data-bypass rel='noopener noreferrer' tabindex='99' href='http://www.edd.ca.gov/pdf_pub_ctr/de4.pdf'>CA DE-4 form</a> to calculate the value manually.\n", "key": "withholding_allowance", "input_question_format": {"type": "Number"}, "answers": [{"value": 1, "valid_from": "2010-01-01", "valid_up_to": null}]}, {"label": "Additional Withholding", "description": "You can withhold an additional amount of California income taxes here.", "key": "additional_withholding", "input_question_format": {"type": "Currency"}, "answers": [{"value": "0.0", "valid_from": "2010-01-01", "valid_up_to": null}]}, {"label": "File a New Hire Report?", "description": "State law requires you to file a new hire report within 20 days of hiring or re-hiring an employee.", "key": "file_new_hire_report", "input_question_format": {"type": "Select"}, "answers": [{"value": true, "valid_from": "2010-01-01", "valid_up_to": null}]}]}]
43614369
put-v1-employees-employee_id-state_taxes:
43624370
Employee-State-Taxes-Update-Example:
43634371
parameters:
@@ -4378,7 +4386,7 @@ examples:
43784386
application/json: {"states": [{"state": "Minnesota"}]}
43794387
responses:
43804388
"200":
4381-
application/json: [{"employee_uuid": "92fa4d30-e284-43d0-a26e-605619c04beb", "state": "CA", "file_new_hire_report": false, "is_work_state": true, "questions": [{"label": "Filing Status", "description": "The Head of Household status applies to unmarried individuals who have a relative living with them in their home. If unsure, read the <a target='_blank' data-bypass rel='noopener noreferrer' tabindex='99' href='https://www.ftb.ca.gov/file/personal/filing-status/index.html'>CA Filing Status explanation</a>.\n", "key": "filing_status", "input_question_format": {"type": "Select", "options": [{"value": "S", "label": "Single"}, {"value": "M", "label": "Married one income"}, {"value": "MD", "label": "Married dual income"}, {"value": "H", "label": "Head of household"}, {"value": "E", "label": "Do Not Withhold"}]}, "answers": [{"value": "S", "valid_from": "2010-01-01", "valid_up_to": null}]}, {"label": "Withholding Allowance", "description": "This value is needed to calculate the employee's CA income tax withholding. If unsure, use the <a target='_blank' data-bypass rel='noopener noreferrer' tabindex='99' href='http://www.edd.ca.gov/pdf_pub_ctr/de4.pdf'>CA DE-4 form</a> to calculate the value manually.\n", "key": "withholding_allowance", "input_question_format": {"type": "Number"}, "answers": [{"value": "1", "valid_from": "2010-01-01", "valid_up_to": null}]}, {"label": "Additional Withholding", "description": "You can withhold an additional amount of California income taxes here.", "key": "additional_withholding", "input_question_format": {"type": "Currency"}, "answers": [{"value": "0.0", "valid_from": "2010-01-01", "valid_up_to": null}]}, {"label": "File a New Hire Report?", "description": "State law requires you to file a new hire report within 20 days of hiring or re-hiring an employee.", "key": "file_new_hire_report", "input_question_format": {"type": "Select"}, "answers": [{"value": "true", "valid_from": "2010-01-01", "valid_up_to": null}]}]}]
4389+
application/json: [{"employee_uuid": "92fa4d30-e284-43d0-a26e-605619c04beb", "state": "CA", "file_new_hire_report": false, "is_work_state": true, "questions": [{"label": "Filing Status", "description": "The Head of Household status applies to unmarried individuals who have a relative living with them in their home. If unsure, read the <a target='_blank' data-bypass rel='noopener noreferrer' tabindex='99' href='https://www.ftb.ca.gov/file/personal/filing-status/index.html'>CA Filing Status explanation</a>.\n", "key": "filing_status", "input_question_format": {"type": "Select", "options": [{"value": "S", "label": "Single"}, {"value": "M", "label": "Married one income"}, {"value": "MD", "label": "Married dual income"}, {"value": "H", "label": "Head of household"}, {"value": "E", "label": "Do Not Withhold"}]}, "answers": [{"value": "S", "valid_from": "2010-01-01", "valid_up_to": null}]}, {"label": "Withholding Allowance", "description": "This value is needed to calculate the employee's CA income tax withholding. If unsure, use the <a target='_blank' data-bypass rel='noopener noreferrer' tabindex='99' href='http://www.edd.ca.gov/pdf_pub_ctr/de4.pdf'>CA DE-4 form</a> to calculate the value manually.\n", "key": "withholding_allowance", "input_question_format": {"type": "Number"}, "answers": [{"value": 1, "valid_from": "2010-01-01", "valid_up_to": null}]}, {"label": "Additional Withholding", "description": "You can withhold an additional amount of California income taxes here.", "key": "additional_withholding", "input_question_format": {"type": "Currency"}, "answers": [{"value": "0.0", "valid_from": "2010-01-01", "valid_up_to": null}]}, {"label": "File a New Hire Report?", "description": "State law requires you to file a new hire report within 20 days of hiring or re-hiring an employee.", "key": "file_new_hire_report", "input_question_format": {"type": "Select"}, "answers": [{"value": true, "valid_from": "2010-01-01", "valid_up_to": null}]}]}]
43824390
post-v1-employees-employee_id-bank_accounts:
43834391
Example:
43844392
parameters:
@@ -6120,7 +6128,7 @@ examples:
61206128
application/json: {"name": "<value>", "policy_type": "<value>", "accrual_method": "per_anniversary_year"}
61216129
responses:
61226130
"201":
6123-
application/json: {"uuid": "3f746cd0-dd08-408f-b712-8180c7c621e9", "company_uuid": "de83cff2-8e7a-448e-a28c-14258a9971c3", "name": "Unlimited Vacation Policy", "policy_type": "vacation", "accrual_method": "unlimited", "accrual_rate": "<value>", "accrual_rate_unit": "<value>", "paid_out_on_termination": false, "accrual_waiting_period_days": 638424, "carryover_limit_hours": "<value>", "max_accrual_hours_per_year": "<value>", "max_hours": "<value>", "complete": true, "is_active": true, "employees": []}
6131+
application/json: {"uuid": "3f746cd0-dd08-408f-b712-8180c7c621e9", "company_uuid": "de83cff2-8e7a-448e-a28c-14258a9971c3", "name": "Unlimited Vacation Policy", "policy_type": "vacation", "accrual_method": "unlimited", "accrual_rate": "<value>", "accrual_rate_unit": "<value>", "paid_out_on_termination": false, "accrual_waiting_period_days": 486589, "carryover_limit_hours": "<value>", "max_accrual_hours_per_year": "<value>", "max_hours": "<value>", "complete": true, "is_active": true, "employees": []}
61246132
Hourly Vacation Policy:
61256133
parameters:
61266134
path:

gusto_embedded/README.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1317,6 +1317,36 @@ In some rare cases, the SDK can fail to get a response from the server or even m
13171317
<!-- Start Server Selection [server] -->
13181318
## Server Selection
13191319

1320+
### Select Server by Name
1321+
1322+
You can override the default server globally by passing a server name to the `server: keyof typeof ServerList` optional parameter when initializing the SDK client instance. The selected server will then be used as the default on the operations that use it. This table lists the names associated with the available servers:
1323+
1324+
| Name | Server |
1325+
| ------ | ---------------------------- |
1326+
| `demo` | `https://api.gusto-demo.com` |
1327+
| `prod` | `https://api.gusto.com` |
1328+
1329+
#### Example
1330+
1331+
```typescript
1332+
import { GustoEmbedded } from "@gusto/embedded-api";
1333+
1334+
const gustoEmbedded = new GustoEmbedded({
1335+
server: "prod",
1336+
companyAccessAuth: process.env["GUSTOEMBEDDED_COMPANY_ACCESS_AUTH"] ?? "",
1337+
});
1338+
1339+
async function run() {
1340+
const result = await gustoEmbedded.introspection.getTokenInfo({});
1341+
1342+
// Handle the result
1343+
console.log(result);
1344+
}
1345+
1346+
run();
1347+
1348+
```
1349+
13201350
### Override Server URL Per-Client
13211351

13221352
The default server can also be overridden globally by passing a URL to the `serverURL: string` optional parameter when initializing the SDK client instance. For example:

gusto_embedded/RELEASES.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,14 @@ Based on:
88
### Generated
99
- [typescript v0.1.5] gusto_embedded
1010
### Releases
11-
- [NPM v0.1.5] https://www.npmjs.com/package/@gusto/embedded-api/v/0.1.5 - gusto_embedded
11+
- [NPM v0.1.5] https://www.npmjs.com/package/@gusto/embedded-api/v/0.1.5 - gusto_embedded
12+
13+
## 2025-02-06 21:54:14
14+
### Changes
15+
Based on:
16+
- OpenAPI Doc
17+
- Speakeasy CLI 1.486.0 (2.505.0) https://github.com/speakeasy-api/speakeasy
18+
### Generated
19+
- [typescript v0.1.11] gusto_embedded
20+
### Releases
21+
- [NPM v0.1.11] https://www.npmjs.com/package/@gusto/embedded-api/v/0.1.11 - gusto_embedded

gusto_embedded/docs/models/components/achtransaction.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Representation of an ACH transaction
88
import { AchTransaction } from "@gusto/embedded-api/models/components";
99

1010
let value: AchTransaction = {
11-
uuid: "e2460137-4e5e-4f73-94c4-679f354515e4",
11+
uuid: "4679f354-515e-445f-bb8c-1713256f47cd",
1212
};
1313
```
1414

gusto_embedded/docs/models/components/achtransactionrecipienttype.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ The type of recipient associated with the ACH transaction
77
```typescript
88
import { AchTransactionRecipientType } from "@gusto/embedded-api/models/components";
99

10-
let value: AchTransactionRecipientType = "Contractor";
10+
let value: AchTransactionRecipientType = "Employee";
1111
```
1212

1313
## Values

0 commit comments

Comments
 (0)