Skip to content

Commit 7e620b0

Browse files
authored
Merge pull request #58 from Gusto/speakeasy-sdk-regen-1749243572
chore: 🐝 Update SDK - Generate Clients GUSTO-EMBEDDED 0.6.1
2 parents 229fa2a + 3123cb4 commit 7e620b0

File tree

798 files changed

+11264
-9967
lines changed

Some content is hidden

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

798 files changed

+11264
-9967
lines changed

.speakeasy/workflow.lock

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
1-
speakeasyVersion: 1.554.1
1+
speakeasyVersion: 1.557.0
22
sources:
33
GustoEmbedded-OAS:
44
sourceNamespace: gusto-embedded-oas
5-
sourceRevisionDigest: sha256:c8d373f765bf6bd77d8f5d3a92753dfa7cf291e418c9c7321a9201b2351f981f
6-
sourceBlobDigest: sha256:edd119442f06a6d6c8080b20d9142b5e057bedaec9f9139f82c95af7d0ef1b13
5+
sourceRevisionDigest: sha256:ea1afafa07cd7113d34ff117b23ddc0b4f256e7e0ea30ad27a5474e75fa6aa5c
6+
sourceBlobDigest: sha256:0f36d008c25a4159a990f83ab8e112bbde13e84d0ad099ba5a907a2b7e7aef59
77
tags:
88
- latest
9-
- speakeasy-sdk-regen-1748391275
9+
- speakeasy-sdk-regen-1749243572
1010
- "2024-04-01"
1111
targets:
1212
gusto-embedded:
1313
source: GustoEmbedded-OAS
1414
sourceNamespace: gusto-embedded-oas
15-
sourceRevisionDigest: sha256:c8d373f765bf6bd77d8f5d3a92753dfa7cf291e418c9c7321a9201b2351f981f
16-
sourceBlobDigest: sha256:edd119442f06a6d6c8080b20d9142b5e057bedaec9f9139f82c95af7d0ef1b13
15+
sourceRevisionDigest: sha256:ea1afafa07cd7113d34ff117b23ddc0b4f256e7e0ea30ad27a5474e75fa6aa5c
16+
sourceBlobDigest: sha256:0f36d008c25a4159a990f83ab8e112bbde13e84d0ad099ba5a907a2b7e7aef59
1717
codeSamplesNamespace: gusto-embedded-oas-typescript-code-samples
18-
codeSamplesRevisionDigest: sha256:545efedf848cf614e2d70272108198a96f4727ab2a739a6b458703576f2e2a85
18+
codeSamplesRevisionDigest: sha256:44683013b2d1a7220ebae4e4e4fef43974839367e9b3d1b4a0bfaae40d2382da
1919
workflow:
2020
workflowVersion: 1.0.0
2121
speakeasyVersion: latest

gusto_embedded/.speakeasy/gen.lock

Lines changed: 140 additions & 41 deletions
Large diffs are not rendered by default.

gusto_embedded/.speakeasy/gen.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,14 @@ generation:
2020
oAuth2ClientCredentialsEnabled: true
2121
oAuth2PasswordEnabled: true
2222
typescript:
23-
version: 0.6.0
23+
version: 0.6.1
2424
additionalDependencies:
2525
dependencies: {}
2626
devDependencies: {}
2727
peerDependencies: {}
2828
additionalPackageJSON: {}
2929
author: Speakeasy
30+
baseErrorName: GustoEmbeddedError
3031
clientServerStatusCodesAsErrors: true
3132
defaultErrorName: APIError
3233
enableCustomCodeRegions: false

gusto_embedded/FUNCTIONS.md

Lines changed: 5 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ specific category of applications.
2121
```typescript
2222
import { GustoEmbeddedCore } from "@gusto/embedded-api/core.js";
2323
import { introspectionGetInfo } from "@gusto/embedded-api/funcs/introspectionGetInfo.js";
24-
import { SDKValidationError } from "@gusto/embedded-api/models/errors/sdkvalidationerror.js";
2524

2625
// Use `GustoEmbeddedCore` for best tree-shaking performance.
2726
// You can create one instance of it to use across an application.
@@ -31,28 +30,12 @@ const gustoEmbedded = new GustoEmbeddedCore({
3130

3231
async function run() {
3332
const res = await introspectionGetInfo(gustoEmbedded, {});
34-
35-
switch (true) {
36-
case res.ok:
37-
// The success case will be handled outside of the switch block
38-
break;
39-
case res.error instanceof SDKValidationError:
40-
// Pretty-print validation errors.
41-
return console.log(res.error.pretty());
42-
case res.error instanceof Error:
43-
return console.log(res.error);
44-
default:
45-
// TypeScript's type checking will fail on the following line if the above
46-
// cases were not exhaustive.
47-
res.error satisfies never;
48-
throw new Error("Assertion failed: expected error checks to be exhaustive: " + res.error);
33+
if (res.ok) {
34+
const { value: result } = res;
35+
console.log(result);
36+
} else {
37+
console.log("introspectionGetInfo failed:", res.error);
4938
}
50-
51-
52-
const { value: result } = res;
53-
54-
// Handle the result
55-
console.log(result);
5639
}
5740

5841
run();

gusto_embedded/README.md

Lines changed: 54 additions & 46 deletions
Large diffs are not rendered by default.

gusto_embedded/RELEASES.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,4 +248,14 @@ Based on:
248248
### Generated
249249
- [typescript v0.6.0] gusto_embedded
250250
### Releases
251-
- [NPM v0.6.0] https://www.npmjs.com/package/@gusto/embedded-api/v/0.6.0 - gusto_embedded
251+
- [NPM v0.6.0] https://www.npmjs.com/package/@gusto/embedded-api/v/0.6.0 - gusto_embedded
252+
253+
## 2025-06-06 20:59:12
254+
### Changes
255+
Based on:
256+
- OpenAPI Doc
257+
- Speakeasy CLI 1.557.0 (2.623.0) https://github.com/speakeasy-api/speakeasy
258+
### Generated
259+
- [typescript v0.6.1] gusto_embedded
260+
### Releases
261+
- [NPM v0.6.1] https://www.npmjs.com/package/@gusto/embedded-api/v/0.6.1 - gusto_embedded

gusto_embedded/USAGE.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ const gustoEmbedded = new GustoEmbedded({
99
async function run() {
1010
const result = await gustoEmbedded.introspection.getInfo({});
1111

12-
// Handle the result
1312
console.log(result);
1413
}
1514

gusto_embedded/docs/models/components/accruingtimeoffhourobject.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,7 @@ Example response
88
import { AccruingTimeOffHourObject } from "@gusto/embedded-api/models/components/accruingtimeoffhourobject.js";
99

1010
let value: AccruingTimeOffHourObject = {
11-
hoursEarned: [
12-
{},
13-
],
11+
hoursEarned: [],
1412
};
1513
```
1614

gusto_embedded/docs/models/components/company.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ The representation of a company in Gusto.
88
import { Company } from "@gusto/embedded-api/models/components/company.js";
99

1010
let value: Company = {
11-
uuid: "9ca13f72-0a2d-4f1c-bd18-fa78e3dc0991",
11+
uuid: "88e5a54a-293c-41ca-8b40-c75abce54978",
1212
compensations: {
1313
hourly: [
1414
{

gusto_embedded/docs/models/components/companybankaccount.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ The company bank account
88
import { CompanyBankAccount } from "@gusto/embedded-api/models/components/companybankaccount.js";
99

1010
let value: CompanyBankAccount = {
11-
uuid: "7b77611b-a835-4f5a-b472-f3850a34232a",
11+
uuid: "49eeb856-7e39-4c68-b685-77cbaf326faa",
1212
};
1313
```
1414

gusto_embedded/docs/models/components/contractor.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ The representation of a contractor (individual or business) in Gusto.
88
import { Contractor } from "@gusto/embedded-api/models/components/contractor.js";
99

1010
let value: Contractor = {
11-
uuid: "a7ea6e57-eb31-4af7-bc13-416f8aee64d4",
11+
uuid: "f30a70ef-3547-49c9-9a96-1e512446b666",
1212
hourlyRate: "50.0",
1313
};
1414
```
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# ContractorPaymentDetailsList
2+
3+
## Example Usage
4+
5+
```typescript
6+
import { ContractorPaymentDetailsList } from "@gusto/embedded-api/models/components/contractorpaymentdetailslist.js";
7+
8+
let value: ContractorPaymentDetailsList = {
9+
contractorUuid: "<id>",
10+
paymentMethod: "<value>",
11+
};
12+
```
13+
14+
## Fields
15+
16+
| Field | Type | Required | Description |
17+
| -------------------------------------------------------- | -------------------------------------------------------- | -------------------------------------------------------- | -------------------------------------------------------- |
18+
| `contractorUuid` | *string* | :heavy_check_mark: | N/A |
19+
| `paymentMethod` | *string* | :heavy_check_mark: | N/A |
20+
| `firstName` | *string* | :heavy_minus_sign: | N/A |
21+
| `lastName` | *string* | :heavy_minus_sign: | N/A |
22+
| `splitBy` | *string* | :heavy_minus_sign: | N/A |
23+
| `splits` | [components.Splits](../../models/components/splits.md)[] | :heavy_minus_sign: | N/A |

gusto_embedded/docs/models/components/contractorpaymentmethod.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ let value: ContractorPaymentMethod = {};
1212

1313
## Fields
1414

15-
| Field | Type | Required | Description |
16-
| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
17-
| `version` | *string* | :heavy_minus_sign: | The current version of the object. See the [versioning guide](https://docs.gusto.com/embedded-payroll/docs/idempotency) for information on how to use this field. |
18-
| `type` | [components.ContractorPaymentMethodType](../../models/components/contractorpaymentmethodtype.md) | :heavy_minus_sign: | The payment method type. If type is Check, then split_by and splits do not need to be populated. If type is Direct Deposit, split_by and splits are required. |
19-
| `splitBy` | [components.ContractorPaymentMethodSplitBy](../../models/components/contractorpaymentmethodsplitby.md) | :heavy_minus_sign: | Describes how the payment will be split. If split_by is Percentage, then the split amounts must add up to exactly 100. If split_by is Amount, then the last split amount must be nil to capture the remainder. |
20-
| `splits` | [components.PaymentMethodBankAccount](../../models/components/paymentmethodbankaccount.md)[] | :heavy_minus_sign: | N/A |
15+
| Field | Type | Required | Description |
16+
| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
17+
| `version` | *string* | :heavy_minus_sign: | The current version of the object. See the [versioning guide](https://docs.gusto.com/embedded-payroll/docs/idempotency) for information on how to use this field. |
18+
| `type` | [components.ContractorPaymentMethodType](../../models/components/contractorpaymentmethodtype.md) | :heavy_minus_sign: | The payment method type. If type is Check, then `split_by` and `splits` do not need to be populated. If type is Direct Deposit, `split_by` and `splits` are required. |
19+
| `splitBy` | [components.ContractorPaymentMethodSplitBy](../../models/components/contractorpaymentmethodsplitby.md) | :heavy_minus_sign: | Describes how the payment will be split. If `split_by` is Percentage, then the `split` amounts must add up to exactly 100. If `split_by` is Amount, then the last split amount must be nil to capture the remainder. |
20+
| `splits` | [components.PaymentMethodBankAccount](../../models/components/paymentmethodbankaccount.md)[] | :heavy_minus_sign: | N/A |

gusto_embedded/docs/models/components/contractorpaymentmethodsplitby.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# ContractorPaymentMethodSplitBy
22

3-
Describes how the payment will be split. If split_by is Percentage, then the split amounts must add up to exactly 100. If split_by is Amount, then the last split amount must be nil to capture the remainder.
3+
Describes how the payment will be split. If `split_by` is Percentage, then the `split` amounts must add up to exactly 100. If `split_by` is Amount, then the last split amount must be nil to capture the remainder.
44

55
## Example Usage
66

gusto_embedded/docs/models/components/contractorpaymentmethodtype.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# ContractorPaymentMethodType
22

3-
The payment method type. If type is Check, then split_by and splits do not need to be populated. If type is Direct Deposit, split_by and splits are required.
3+
The payment method type. If type is Check, then `split_by` and `splits` do not need to be populated. If type is Direct Deposit, `split_by` and `splits` are required.
44

55
## Example Usage
66

0 commit comments

Comments
 (0)