Skip to content

Commit 76b28ac

Browse files
chore: 🐝 Update SDK - Generate SDK TYPESCRIPT 1.9.0
1 parent a0f2559 commit 76b28ac

File tree

109 files changed

+263
-202
lines changed

Some content is hidden

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

109 files changed

+263
-202
lines changed

β€Ž.speakeasy/gen.lockβ€Ž

Lines changed: 12 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
lockVersion: 2.0.0
22
id: 51cb4b7f-adbc-475c-a495-d8672b13ce8e
33
management:
4-
docChecksum: f7a46f940cff848463de3ee3d794eb19
4+
docChecksum: 713a3698250c3e95d6d78af6224f3e31
55
docVersion: 1.0.0
6-
speakeasyVersion: 1.662.0
7-
generationVersion: 2.763.3
8-
releaseVersion: 1.8.0
9-
configChecksum: 40ffda137b6cc9599135e1c4e8d12eaa
6+
speakeasyVersion: 1.668.0
7+
generationVersion: 2.770.0
8+
releaseVersion: 1.9.0
9+
configChecksum: 842cff346cb91e3d09d43af182c73291
1010
repoURL: https://github.com/gr4vy/gr4vy-typescript.git
1111
installationURL: https://github.com/gr4vy/gr4vy-typescript
1212
published: true
1313
features:
1414
typescript:
1515
additionalDependencies: 0.1.0
1616
constsAndDefaults: 0.1.12
17-
core: 3.26.10
17+
core: 3.26.14
1818
defaultEnabledRetries: 0.1.0
1919
enumUnions: 0.1.0
2020
envVarSecurityUsage: 0.1.2
@@ -33,9 +33,9 @@ features:
3333
pagination: 2.83.0
3434
responseFormat: 0.2.3
3535
retries: 2.83.0
36-
sdkHooks: 0.3.0
36+
sdkHooks: 0.4.0
3737
serverIDs: 2.81.2
38-
unions: 2.86.0
38+
unions: 2.86.3
3939
generatedFiles:
4040
- .gitattributes
4141
- .npmignore
@@ -4213,10 +4213,10 @@ examples:
42134213
add_payment_link:
42144214
speakeasy-default-add-payment-link:
42154215
requestBody:
4216-
application/json: {"amount": 1299, "country": "DE", "currency": "EUR"}
4216+
application/json: {"amount": 1299, "country": "DE", "currency": "EUR", "store": true}
42174217
responses:
42184218
"201":
4219-
application/json: {"id": "a1b2c3d4-5678-90ab-cdef-1234567890ab", "type": "payment-link", "url": "https://example.com/link/a1b2c3d4-5678-90ab-cdef-1234567890ab", "amount": 1299, "country": "DE", "currency": "EUR", "intent": "capture", "cart_items": [{"name": "Widget", "quantity": 2, "unit_amount": 1299}], "payment_source": "ecommerce", "created_at": "2024-05-30T12:34:56.000Z", "updated_at": "2024-05-30T13:00:00.000Z", "status": "completed"}
4219+
application/json: {"id": "a1b2c3d4-5678-90ab-cdef-1234567890ab", "type": "payment-link", "url": "https://example.com/link/a1b2c3d4-5678-90ab-cdef-1234567890ab", "amount": 1299, "country": "DE", "currency": "EUR", "intent": "capture", "cart_items": [{"name": "Widget", "quantity": 2, "unit_amount": 1299}], "payment_source": "ecommerce", "created_at": "2024-05-30T12:34:56.000Z", "updated_at": "2024-05-30T13:00:00.000Z", "status": "completed", "store": false}
42204220
"400":
42214221
application/json: {"type": "error", "code": "bad_request", "status": 400, "message": "Request failed validation"}
42224222
"401":
@@ -4310,7 +4310,7 @@ examples:
43104310
payment_link_id: "a1b2c3d4-5678-90ab-cdef-1234567890ab"
43114311
responses:
43124312
"200":
4313-
application/json: {"id": "a1b2c3d4-5678-90ab-cdef-1234567890ab", "type": "payment-link", "url": "https://example.com/link/a1b2c3d4-5678-90ab-cdef-1234567890ab", "amount": 1299, "country": "DE", "currency": "EUR", "intent": "authorize", "cart_items": [{"name": "Widget", "quantity": 2, "unit_amount": 1299}], "payment_source": "ecommerce", "created_at": "2024-05-30T12:34:56.000Z", "updated_at": "2024-05-30T13:00:00.000Z", "status": "active"}
4313+
application/json: {"id": "a1b2c3d4-5678-90ab-cdef-1234567890ab", "type": "payment-link", "url": "https://example.com/link/a1b2c3d4-5678-90ab-cdef-1234567890ab", "amount": 1299, "country": "DE", "currency": "EUR", "intent": "authorize", "cart_items": [{"name": "Widget", "quantity": 2, "unit_amount": 1299}], "payment_source": "ecommerce", "created_at": "2024-05-30T12:34:56.000Z", "updated_at": "2024-05-30T13:00:00.000Z", "status": "active", "store": false}
43144314
"400":
43154315
application/json: {"type": "error", "code": "bad_request", "status": 400, "message": "Request failed validation"}
43164316
"401":
@@ -4475,6 +4475,4 @@ examples:
44754475
application/json: {"type": "error", "code": "gateway_timeout", "status": 504, "message": "Request could not be processed"}
44764476
examplesVersion: 1.0.2
44774477
generatedTests: {}
4478-
releaseNotes: |
4479-
## Typescript SDK Changes Detected:
4480-
* `gr4vy.transactions.events.list()`: `response.items.[].context` **Changed** **Breaking** :warning:
4478+
releaseNotes: "## Typescript SDK Changes:\n* `gr4vy.paymentLinks.list()`: `response.items.[]` **Changed**\n* `gr4vy.paymentLinks.create()`: \n * `request.paymentlinkcreate` **Changed**\n * `response` **Changed**\n* `gr4vy.paymentLinks.get()`: `response` **Changed**\n"

β€Ž.speakeasy/gen.yamlβ€Ž

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ generation:
2525
generateNewTests: false
2626
skipResponseBodyAssertions: false
2727
typescript:
28-
version: 1.8.0
28+
version: 1.9.0
2929
acceptHeaderEnum: true
3030
additionalDependencies:
3131
dependencies:
@@ -47,7 +47,7 @@ typescript:
4747
author: Gr4vy
4848
baseErrorName: Gr4vyError
4949
clientServerStatusCodesAsErrors: true
50-
constFieldsAlwaysOptional: true
50+
constFieldsAlwaysOptional: false
5151
defaultErrorName: SDKError
5252
enableCustomCodeRegions: false
5353
enableMCPServer: false
@@ -59,6 +59,7 @@ typescript:
5959
flatteningOrder: body-first
6060
formStringArrayEncodeMode: encoded-string
6161
forwardCompatibleEnumsByDefault: false
62+
forwardCompatibleUnionsByDefault: "false"
6263
generateExamples: true
6364
imports:
6465
option: openapi
@@ -76,8 +77,10 @@ typescript:
7677
methodArguments: infer-optional-args
7778
modelPropertyCasing: camel
7879
moduleFormat: commonjs
80+
multipartArrayFormat: legacy
7981
outputModelSuffix: output
8082
packageName: '@gr4vy/sdk'
83+
preApplyUnionDiscriminators: true
8184
responseFormat: flat
8285
sseFlatResponse: false
8386
templateVersion: v2

β€Ž.speakeasy/workflow.lockβ€Ž

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
speakeasyVersion: 1.662.0
1+
speakeasyVersion: 1.668.0
22
sources:
33
openapi:
44
sourceNamespace: openapi
5-
sourceRevisionDigest: sha256:1cd132c616712bc0ca689116a2d6c8a6f36d30928651cbdac7e5cb3e77054bd0
6-
sourceBlobDigest: sha256:65122c40b5ea73b1e8217c12cf986adcad85d2c92ddbfffc922576452b2ea052
5+
sourceRevisionDigest: sha256:fb22a56c9980d4f89201912b1352e743358766b7fcd28d4b9b7d3744e6b41d67
6+
sourceBlobDigest: sha256:2908a1037cfd3e69d280f190e6b3c5bf9b1b7cf7aaec843ee9fa6f5ac390514d
77
tags:
88
- latest
9-
- speakeasy-sdk-regen-1764180439
9+
- speakeasy-sdk-regen-1764841059
1010
- 1.0.0
1111
targets:
1212
first-target:
@@ -17,10 +17,10 @@ targets:
1717
typescript:
1818
source: openapi
1919
sourceNamespace: openapi
20-
sourceRevisionDigest: sha256:1cd132c616712bc0ca689116a2d6c8a6f36d30928651cbdac7e5cb3e77054bd0
21-
sourceBlobDigest: sha256:65122c40b5ea73b1e8217c12cf986adcad85d2c92ddbfffc922576452b2ea052
20+
sourceRevisionDigest: sha256:fb22a56c9980d4f89201912b1352e743358766b7fcd28d4b9b7d3744e6b41d67
21+
sourceBlobDigest: sha256:2908a1037cfd3e69d280f190e6b3c5bf9b1b7cf7aaec843ee9fa6f5ac390514d
2222
codeSamplesNamespace: openapi-typescript-code-samples
23-
codeSamplesRevisionDigest: sha256:17103b5fb12c839791897019f0518a4db4cc97563bcfae912cb61d3331fd8d34
23+
codeSamplesRevisionDigest: sha256:1c90088ef90fdfdd16e192408e70610a0d6f69ade108290f633195eaefff5a30
2424
workflow:
2525
workflowVersion: 1.0.0
2626
speakeasyVersion: latest

β€ŽRELEASES.mdβ€Ž

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1284,4 +1284,14 @@ Based on:
12841284
### Generated
12851285
- [typescript v1.8.0] .
12861286
### Releases
1287-
- [NPM v1.8.0] https://www.npmjs.com/package/@gr4vy/sdk/v/1.8.0 - .
1287+
- [NPM v1.8.0] https://www.npmjs.com/package/@gr4vy/sdk/v/1.8.0 - .
1288+
1289+
## 2025-12-04 09:37:20
1290+
### Changes
1291+
Based on:
1292+
- OpenAPI Doc
1293+
- Speakeasy CLI 1.668.0 (2.770.0) https://github.com/speakeasy-api/speakeasy
1294+
### Generated
1295+
- [typescript v1.9.0] .
1296+
### Releases
1297+
- [NPM v1.9.0] https://www.npmjs.com/package/@gr4vy/sdk/v/1.9.0 - .

β€Ždocs/models/components/accountsreceivablesreportspec.mdβ€Ž

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
import { AccountsReceivablesReportSpec } from "@gr4vy/sdk/models/components";
77

88
let value: AccountsReceivablesReportSpec = {
9+
model: "accounts_receivables",
910
params: {
1011
"filters": {
1112
"timestamp": {
@@ -21,5 +22,5 @@ let value: AccountsReceivablesReportSpec = {
2122

2223
| Field | Type | Required | Description | Example |
2324
| -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- |
24-
| `model` | *string* | :heavy_minus_sign: | The report model type. | accounts_receivables |
25+
| `model` | *"accounts_receivables"* | :heavy_check_mark: | The report model type. | accounts_receivables |
2526
| `params` | Record<string, *any*> | :heavy_check_mark: | The parameters for the accounts receivables report model. | {<br/>"filters": {<br/>"timestamp": {<br/>"end": "2024-05-31T23:59:59Z",<br/>"start": "2024-05-01T00:00:00Z"<br/>}<br/>}<br/>} |

β€Ždocs/models/components/accountupdaterinquirysummary.mdβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,6 @@ let value: AccountUpdaterInquirySummary = {
1515

1616
| Field | Type | Required | Description | Example |
1717
| --------------------------------------- | --------------------------------------- | --------------------------------------- | --------------------------------------- | --------------------------------------- |
18-
| `type` | *string* | :heavy_minus_sign: | Always `account-updater-inquiry` | account-updater-inquiry |
18+
| `type` | *"account-updater-inquiry"* | :heavy_minus_sign: | Always `account-updater-inquiry` | account-updater-inquiry |
1919
| `id` | *string* | :heavy_check_mark: | The ID for the account updater inquiry. | aadb3ea8-5ad6-408b-8c3d-82da77c8d619 |
2020
| `paymentMethodId` | *string* | :heavy_check_mark: | The ID of the payment method | ef9496d8-53a5-4aad-8ca2-00eb68334389 |

β€Ždocs/models/components/accountupdaterjob.mdβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ let value: AccountUpdaterJob = {
1818

1919
| Field | Type | Required | Description | Example |
2020
| ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- |
21-
| `type` | *string* | :heavy_minus_sign: | Always `account-updater-job` | account-updater-job |
21+
| `type` | *"account-updater-job"* | :heavy_minus_sign: | Always `account-updater-job` | account-updater-job |
2222
| `id` | *string* | :heavy_check_mark: | The ID for the account updater job. | cc18c7c6-c1d4-4194-92a7-d5a985108b68 |
2323
| `merchantAccountId` | *string* | :heavy_check_mark: | The ID of the merchant account this job belongs to. | default |
2424
| `inquiries` | [components.AccountUpdaterInquirySummary](../../models/components/accountupdaterinquirysummary.md)[] | :heavy_check_mark: | A list of the payment methods that have been scheduled for an update. | |

β€Ždocs/models/components/accountupdateroptions.mdβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ let value: AccountUpdaterOptions = {};
1212

1313
| Field | Type | Required | Description | Example |
1414
| ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ |
15-
| `responseCode` | *string* | :heavy_minus_sign: | The type of response to simulate. | updated |
15+
| `responseCode` | *"updated"* | :heavy_minus_sign: | The type of response to simulate. | updated |
1616
| `accountNumber` | *string* | :heavy_minus_sign: | When the `response_code` is set to `updated`, the payment method's account number will be updated to this value. | 4242424242424242 |
1717
| `expirationMonth` | *string* | :heavy_minus_sign: | When the `response_code` is set to `updated`, the payment method's expiration month will be updated to this value. | 12 |
1818
| `expirationYear` | *string* | :heavy_minus_sign: | When the `response_code` is set to `updated`, the payment method's expiration year will be updated to this value. | 2030 |

β€Ždocs/models/components/applepaypaymentmethodcreate.mdβ€Ž

Lines changed: 2 additions & 1 deletion
Large diffs are not rendered by default.

0 commit comments

Comments
Β (0)