Skip to content

Commit d926153

Browse files
authored
Merge pull request #451 from hookdeck/speakeasy-sdk-regen-1753976932
chore: 🐝 Update SDK - Generate OUTPOST-TS 0.3.0
2 parents d06faf7 + e555a0f commit d926153

File tree

116 files changed

+2948
-1517
lines changed

Some content is hidden

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

116 files changed

+2948
-1517
lines changed

.speakeasy/workflow.lock

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
speakeasyVersion: 1.548.1
1+
speakeasyVersion: 1.593.0
22
sources:
33
Outpost API:
44
sourceNamespace: outpost-api
5-
sourceRevisionDigest: sha256:4a84fa1ff3b6f870f874a2c74b7063f118be48b326e3abbc3f6d6eabe51544c5
6-
sourceBlobDigest: sha256:fde67bc4e44b8d6fa7ba8d93abbb46a32779842540a9635674d2ae2522d82d68
5+
sourceRevisionDigest: sha256:837897b6e2774d7ba547d9616639367bfce651d53d84190c3ee0cd32cee7e8b1
6+
sourceBlobDigest: sha256:3b1cd63370e0cf368a2049eaa26c9f94cd94a929de42592f8488adb5a6a3f182
77
tags:
88
- latest
9-
- speakeasy-sdk-regen-1747702600
9+
- speakeasy-sdk-regen-1753976932
1010
- 0.0.1
1111
targets:
1212
outpost-go:
@@ -26,10 +26,10 @@ targets:
2626
outpost-ts:
2727
source: Outpost API
2828
sourceNamespace: outpost-api
29-
sourceRevisionDigest: sha256:6e2b5a5c7fd7a97711c7521cb88ce3d76affdff2a1c36721316ecee8a6521954
30-
sourceBlobDigest: sha256:6b2da637ba05af9973197a916e59dedc050a6ea79d39d6be15166bf3ee049bed
29+
sourceRevisionDigest: sha256:837897b6e2774d7ba547d9616639367bfce651d53d84190c3ee0cd32cee7e8b1
30+
sourceBlobDigest: sha256:3b1cd63370e0cf368a2049eaa26c9f94cd94a929de42592f8488adb5a6a3f182
3131
codeSamplesNamespace: outpost-api-typescript-code-samples
32-
codeSamplesRevisionDigest: sha256:9442b593b18cdda5586e8bc29d6f4cb6f4e88799814d4ed80361be405ee81bc1
32+
codeSamplesRevisionDigest: sha256:73273078c2416ff9b541f2cc8e95cf2a8254fc9ae40d2788122ca4f3e7e74416
3333
workflow:
3434
workflowVersion: 1.0.0
3535
speakeasyVersion: latest

sdks/outpost-typescript/.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
/examples/node_modules
2+
.env
3+
.env.local
4+
.env.*.local
15
/models
26
/models/errors
37
/types

sdks/outpost-typescript/.speakeasy/gen.lock

Lines changed: 30 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
lockVersion: 2.0.0
22
id: edb58086-83b9-45a3-9095-52bf57a11009
33
management:
4-
docChecksum: 9d08f718ce55c534f292ba05af3425db
4+
docChecksum: 3d3f028a2fdd56804d9ae8a2d95a414b
55
docVersion: 0.0.1
6-
speakeasyVersion: 1.548.1
7-
generationVersion: 2.605.0
8-
releaseVersion: 0.2.0
9-
configChecksum: 532da1aa2b75a3a3630b0cfd89f7a064
6+
speakeasyVersion: 1.593.0
7+
generationVersion: 2.669.0
8+
releaseVersion: 0.3.0
9+
configChecksum: f5c74e03d72ead5a348c5b677ad4b9cc
1010
repoURL: https://github.com/hookdeck/outpost.git
1111
repoSubDirectory: sdks/outpost-typescript
1212
installationURL: https://gitpkg.now.sh/hookdeck/outpost/sdks/outpost-typescript
@@ -15,21 +15,21 @@ features:
1515
typescript:
1616
additionalDependencies: 0.1.0
1717
additionalProperties: 0.1.1
18-
core: 3.21.8
18+
core: 3.21.17
1919
defaultEnabledRetries: 0.1.0
2020
enumUnions: 0.1.0
2121
envVarSecurityUsage: 0.1.2
2222
globalSecurity: 2.82.13
2323
globalSecurityCallbacks: 0.1.0
2424
globalServerURLs: 2.82.5
2525
globals: 2.82.2
26-
mcpServer: 0.9.2
26+
mcpServer: 0.9.3
2727
nameOverrides: 2.81.2
2828
nullables: 0.1.1
2929
responseFormat: 0.2.3
3030
retries: 2.83.0
31-
sdkHooks: 0.2.0
32-
unions: 2.85.8
31+
sdkHooks: 0.3.0
32+
unions: 2.85.11
3333
generatedFiles:
3434
- .gitattributes
3535
- .npmignore
@@ -41,17 +41,23 @@ generatedFiles:
4141
- docs/models/components/awskinesiscredentials.md
4242
- docs/models/components/awssqsconfig.md
4343
- docs/models/components/awssqscredentials.md
44+
- docs/models/components/azureservicebusconfig.md
45+
- docs/models/components/azureservicebuscredentials.md
4446
- docs/models/components/deliveryattempt.md
4547
- docs/models/components/destination.md
4648
- docs/models/components/destinationawskinesis.md
4749
- docs/models/components/destinationawskinesistype.md
4850
- docs/models/components/destinationawssqs.md
4951
- docs/models/components/destinationawssqstype.md
52+
- docs/models/components/destinationazureservicebus.md
53+
- docs/models/components/destinationazureservicebustype.md
5054
- docs/models/components/destinationcreate.md
5155
- docs/models/components/destinationcreateawskinesis.md
5256
- docs/models/components/destinationcreateawskinesistype.md
5357
- docs/models/components/destinationcreateawssqs.md
5458
- docs/models/components/destinationcreateawssqstype.md
59+
- docs/models/components/destinationcreateazureservicebus.md
60+
- docs/models/components/destinationcreateazureservicebustype.md
5561
- docs/models/components/destinationcreatehookdeck.md
5662
- docs/models/components/destinationcreatehookdecktype.md
5763
- docs/models/components/destinationcreaterabbitmq.md
@@ -77,6 +83,7 @@ generatedFiles:
7783
- docs/models/components/hookdeckcredentials.md
7884
- docs/models/components/portalredirect.md
7985
- docs/models/components/publishrequest.md
86+
- docs/models/components/publishresponse.md
8087
- docs/models/components/rabbitmqconfig.md
8188
- docs/models/components/rabbitmqcredentials.md
8289
- docs/models/components/security.md
@@ -159,6 +166,10 @@ generatedFiles:
159166
- docs/sdks/tenants/README.md
160167
- docs/sdks/topics/README.md
161168
- eslint.config.mjs
169+
- examples/.env.template
170+
- examples/README.md
171+
- examples/healthCheck.example.ts
172+
- examples/package.json
162173
- jsr.json
163174
- package.json
164175
- src/core.ts
@@ -250,13 +261,17 @@ generatedFiles:
250261
- src/models/components/awskinesiscredentials.ts
251262
- src/models/components/awssqsconfig.ts
252263
- src/models/components/awssqscredentials.ts
264+
- src/models/components/azureservicebusconfig.ts
265+
- src/models/components/azureservicebuscredentials.ts
253266
- src/models/components/deliveryattempt.ts
254267
- src/models/components/destination.ts
255268
- src/models/components/destinationawskinesis.ts
256269
- src/models/components/destinationawssqs.ts
270+
- src/models/components/destinationazureservicebus.ts
257271
- src/models/components/destinationcreate.ts
258272
- src/models/components/destinationcreateawskinesis.ts
259273
- src/models/components/destinationcreateawssqs.ts
274+
- src/models/components/destinationcreateazureservicebus.ts
260275
- src/models/components/destinationcreatehookdeck.ts
261276
- src/models/components/destinationcreaterabbitmq.ts
262277
- src/models/components/destinationcreatewebhook.ts
@@ -276,6 +291,7 @@ generatedFiles:
276291
- src/models/components/index.ts
277292
- src/models/components/portalredirect.ts
278293
- src/models/components/publishrequest.ts
294+
- src/models/components/publishresponse.ts
279295
- src/models/components/rabbitmqconfig.ts
280296
- src/models/components/rabbitmqcredentials.ts
281297
- src/models/components/security.ts
@@ -292,7 +308,9 @@ generatedFiles:
292308
- src/models/errors/index.ts
293309
- src/models/errors/internalservererror.ts
294310
- src/models/errors/notfounderror.ts
311+
- src/models/errors/outposterror.ts
295312
- src/models/errors/ratelimitederror.ts
313+
- src/models/errors/responsevalidationerror.ts
296314
- src/models/errors/sdkvalidationerror.ts
297315
- src/models/errors/timeouterror.ts
298316
- src/models/errors/unauthorizederror.ts
@@ -443,7 +461,7 @@ examples:
443461
application/json: {"topics": "*", "config": {"server_url": "localhost:5672", "exchange": "my-exchange", "tls": "false"}, "credentials": {"username": "guest", "password": "guest"}}
444462
responses:
445463
"200":
446-
application/json: {"id": "des_kns_xyz", "type": "aws_kinesis", "topics": ["user.created", "user.updated"], "disabled_at": null, "created_at": "2024-03-10T15:30:00Z", "config": {"stream_name": "production-events", "region": "eu-west-1"}, "credentials": {"key": "AKIAIOSFODNN7EXAMPLE", "secret": "wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY"}}
464+
application/json: {"id": "des_webhook_123", "type": "webhook", "topics": ["user.created"], "disabled_at": null, "created_at": "2024-02-15T10:00:00Z", "config": {"url": "https://my-service.com/webhook/new-handler"}, "credentials": {"secret": "whsec_abc123def456", "previous_secret": "whsec_prev789xyz012", "previous_secret_invalid_at": "2024-02-16T10:00:00Z"}}
447465
deleteTenantDestination:
448466
SuccessExample:
449467
parameters:
@@ -496,6 +514,8 @@ examples:
496514
application/json: {}
497515
"511":
498516
application/json: {}
517+
"202":
518+
application/json: {"id": "evt_abc123xyz789"}
499519
listTenantDestinationTypeSchemas:
500520
DestinationTypesExample:
501521
parameters:

sdks/outpost-typescript/.speakeasy/gen.yaml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ generation:
44
maintainOpenAPIOrder: true
55
usageSnippets:
66
optionalPropertyRendering: withExample
7+
sdkInitStyle: constructor
78
useClassNamesForArrayFields: true
89
fixes:
910
nameResolutionDec2023: true
@@ -15,22 +16,29 @@ generation:
1516
auth:
1617
oAuth2ClientCredentialsEnabled: true
1718
oAuth2PasswordEnabled: true
19+
tests:
20+
generateTests: true
21+
generateNewTests: false
22+
skipResponseBodyAssertions: false
1823
typescript:
19-
version: 0.2.0
24+
version: 0.3.0
2025
additionalDependencies:
2126
dependencies: {}
2227
devDependencies: {}
2328
peerDependencies: {}
2429
additionalPackageJSON: {}
2530
author: Speakeasy
31+
baseErrorName: OutpostError
2632
clientServerStatusCodesAsErrors: true
33+
constFieldsAlwaysOptional: true
2734
defaultErrorName: APIError
2835
enableCustomCodeRegions: false
2936
enableMCPServer: true
3037
enableReactQuery: false
3138
enumFormat: union
3239
flattenGlobalSecurity: true
3340
flatteningOrder: parameters-first
41+
generateExamples: true
3442
imports:
3543
option: openapi
3644
paths:

sdks/outpost-typescript/FUNCTIONS.md

Lines changed: 5 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -21,36 +21,19 @@ specific category of applications.
2121
```typescript
2222
import { OutpostCore } from "@hookdeck/outpost-sdk/core.js";
2323
import { healthCheck } from "@hookdeck/outpost-sdk/funcs/healthCheck.js";
24-
import { SDKValidationError } from "@hookdeck/outpost-sdk/models/errors/sdkvalidationerror.js";
2524

2625
// Use `OutpostCore` for best tree-shaking performance.
2726
// You can create one instance of it to use across an application.
2827
const outpost = new OutpostCore();
2928

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

5639
run();

0 commit comments

Comments
 (0)