Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
21 changes: 10 additions & 11 deletions .speakeasy/workflow.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2,34 +2,33 @@ speakeasyVersion: 1.543.4
sources:
Outpost API:
sourceNamespace: outpost-api
sourceRevisionDigest: sha256:cb74831e49a563227102cfa26ef22b0d76c9eddf275639946a1098533985ece6
sourceRevisionDigest: sha256:d29ca10e30557b054364e2f189779b6eae2eb027592e66d96694164e2dfd5d3b
sourceBlobDigest: sha256:0e5867349e513ef193e2077149c98453ab2d429af67bfb7fee79a86f22f8e47e
tags:
- latest
- speakeasy-sdk-regen-1746827603
- 0.0.1
targets:
outpost-go:
source: Outpost API
sourceNamespace: outpost-api
sourceRevisionDigest: sha256:cb74831e49a563227102cfa26ef22b0d76c9eddf275639946a1098533985ece6
sourceRevisionDigest: sha256:d29ca10e30557b054364e2f189779b6eae2eb027592e66d96694164e2dfd5d3b
sourceBlobDigest: sha256:0e5867349e513ef193e2077149c98453ab2d429af67bfb7fee79a86f22f8e47e
codeSamplesNamespace: outpost-api-go-code-samples
codeSamplesRevisionDigest: sha256:9fea9d11c6d7a6333a848a90eb3a93f1b9998f0a91b6355aff9dd7e45b29bcbf
codeSamplesRevisionDigest: sha256:6a3680288d2da0e9fd6de41fdb794eadabc7a191521fe39735ea986988281186
outpost-python:
source: Outpost API
sourceNamespace: outpost-api
sourceRevisionDigest: sha256:33a0ebc725c9abcd74405bb2929aa2875f9849edd79a5c14ef5cb7bf08e80e81
sourceRevisionDigest: sha256:d29ca10e30557b054364e2f189779b6eae2eb027592e66d96694164e2dfd5d3b
sourceBlobDigest: sha256:0e5867349e513ef193e2077149c98453ab2d429af67bfb7fee79a86f22f8e47e
codeSamplesNamespace: outpost-api-python-code-samples
codeSamplesRevisionDigest: sha256:3982db0ce1099c1389488deeb542ba67a0f764e2c082ad1bedfe245d3fac1759
codeSamplesRevisionDigest: sha256:b766a5283053a6c67b0ea4a001142369cfe5aef6f877f15043f1ea9e9fc51d6f
outpost-ts:
source: Outpost API
sourceNamespace: outpost-api
sourceRevisionDigest: sha256:6c60451579799a9a2125a1ebdd98b65a85afe580e5c10e7bb486ff4ff8629597
sourceRevisionDigest: sha256:d29ca10e30557b054364e2f189779b6eae2eb027592e66d96694164e2dfd5d3b
sourceBlobDigest: sha256:0e5867349e513ef193e2077149c98453ab2d429af67bfb7fee79a86f22f8e47e
codeSamplesNamespace: outpost-api-typescript-code-samples
codeSamplesRevisionDigest: sha256:e63cf33cfc01b002b5d03c264ad43c1fd29c18683eb9b811a2e69766f18b48d4
codeSamplesRevisionDigest: sha256:14bbf6d827f25245332b833dd539e0d1af8add597750bdd1107329cf717e7c88
workflow:
workflowVersion: 1.0.0
speakeasyVersion: latest
Expand All @@ -46,7 +45,7 @@ workflow:
outpost-go:
target: go
source: Outpost API
output: ./sdks/go
output: ./sdks/outpost-go
codeSamples:
registry:
location: registry.speakeasyapi.dev/hookdeck-dev/outpost/outpost-api-go-code-samples
Expand All @@ -56,7 +55,7 @@ workflow:
outpost-python:
target: python
source: Outpost API
output: ./sdks/python
output: ./sdks/outpost-python
publish:
pypi:
token: $pypi_token
Expand All @@ -69,7 +68,7 @@ workflow:
outpost-ts:
target: typescript
source: Outpost API
output: ./sdks/typescript
output: ./sdks/outpost-typescript
publish:
npm:
token: $npm_token
Expand Down
6 changes: 3 additions & 3 deletions .speakeasy/workflow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ targets:
outpost-go:
target: go
source: Outpost API
output: ./sdks/go
output: ./sdks/outpost-go
codeSamples:
registry:
location: registry.speakeasyapi.dev/hookdeck-dev/outpost/outpost-api-go-code-samples
Expand All @@ -23,7 +23,7 @@ targets:
outpost-python:
target: python
source: Outpost API
output: ./sdks/python
output: ./sdks/outpost-python
publish:
pypi:
token: $pypi_token
Expand All @@ -36,7 +36,7 @@ targets:
outpost-ts:
target: typescript
source: Outpost API
output: ./sdks/typescript
output: ./sdks/outpost-typescript
publish:
npm:
token: $npm_token
Expand Down
File renamed without changes.
File renamed without changes.
56 changes: 10 additions & 46 deletions sdks/go/.speakeasy/gen.lock → sdks/outpost-go/.speakeasy/gen.lock
Original file line number Diff line number Diff line change
@@ -1,15 +1,12 @@
lockVersion: 2.0.0
id: 48f73216-74ac-483a-863e-b24adeebd201
id: f0627709-5a00-43ac-8678-ca716d6f379c
management:
docChecksum: facaffd173e65f9c7d9b42e7d5d4f736
docVersion: 0.0.1
speakeasyVersion: 1.543.4
generationVersion: 2.598.22
releaseVersion: 0.1.1
configChecksum: 29b2dead444c91f07b22acd228e04897
repoURL: https://github.com/hookdeck/outpost.git
repoSubDirectory: sdks/go
installationURL: https://github.com/hookdeck/outpost/sdks/go
releaseVersion: 0.1.7
configChecksum: 85b6bc0ac0b23805b75facc12e939421
features:
go:
additionalDependencies: 0.1.0
Expand Down Expand Up @@ -350,16 +347,6 @@ examples:
responses:
"200":
application/json: {"token": "SOME_JWT_TOKEN"}
getPortalUrlJwtContext:
PortalRedirectExample:
responses:
"200":
application/json: {"redirect_url": "https://webhooks.acme.com/?token=JWT_TOKEN"}
getTenantTokenJwtContext:
TenantTokenExample:
responses:
"200":
application/json: {"token": "SOME_JWT_TOKEN"}
listTenantDestinations:
DestinationsListExample:
parameters:
Expand All @@ -375,7 +362,7 @@ examples:
path:
tenant_id: "<id>"
requestBody:
application/json: {"id": "user-provided-id", "type": "aws_sqs", "topics": "*", "config": {"endpoint": "https://sqs.us-east-1.amazonaws.com", "queue_url": "https://sqs.us-east-1.amazonaws.com/123456789012/my-queue"}, "credentials": {"key": "AKIAIOSFODNN7EXAMPLE", "secret": "wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY", "session": "AQoDYXdzEPT//////////wEXAMPLE..."}}
application/json: {"id": "user-provided-id", "type": "rabbitmq", "topics": "*", "config": {"server_url": "localhost:5672", "exchange": "my-exchange", "tls": "false"}, "credentials": {"username": "guest", "password": "guest"}}
responses:
"201":
application/json: {"id": "des_webhook_123", "type": "webhook", "topics": ["user.created", "order.shipped"], "disabled_at": null, "created_at": "2024-02-15T10:00:00Z", "config": {"url": "https://my-service.com/webhook/handler"}, "credentials": {"secret": "whsec_abc123def456"}}
Expand All @@ -395,20 +382,10 @@ examples:
tenant_id: "<id>"
destination_id: "<id>"
requestBody:
application/json: {"topics": "*", "config": {"server_url": "localhost:5672", "exchange": "my-exchange", "tls": "false"}, "credentials": {"username": "guest", "password": "guest"}}
application/json: {"topics": "*", "config": {"stream_name": "my-data-stream", "region": "us-east-1", "endpoint": "https://kinesis.us-east-1.amazonaws.com", "partition_key_template": "data.\"user_id\""}, "credentials": {"key": "AKIAIOSFODNN7EXAMPLE", "secret": "wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY", "session": "AQoDYXdzEPT//////////wEXAMPLE..."}}
responses:
"200":
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"}}
OAuthRedirectExample:
parameters:
path:
tenant_id: "<id>"
destination_id: "<id>"
requestBody:
application/json: {"topics": "*", "config": {"endpoint": "https://sqs.us-east-1.amazonaws.com", "queue_url": "https://sqs.us-east-1.amazonaws.com/123456789012/my-queue"}, "credentials": {"key": "AKIAIOSFODNN7EXAMPLE", "secret": "wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY", "session": "AQoDYXdzEPT//////////wEXAMPLE..."}}
responses:
"200":
application/json: {"redirect_url": "https://dashboard.hookdeck.com/authorize?token=12313123"}
deleteTenantDestination:
SuccessExample:
parameters:
Expand Down Expand Up @@ -474,7 +451,7 @@ examples:
parameters:
path:
tenant_id: "<id>"
type: "rabbitmq"
type: "hookdeck"
responses:
"200":
application/json: {"type": "webhook", "label": "Webhook", "description": "Send event via an HTTP POST request to a URL", "icon": "<svg />", "instructions": "Enter the URL...", "config_fields": [{"type": "text", "label": "URL", "description": "The URL to send the webhook to.", "required": true, "pattern": "^https?://.*"}], "credential_fields": [{"type": "text", "label": "Secret", "description": "Optional signing secret.", "required": false, "sensitive": true}]}
Expand All @@ -483,14 +460,14 @@ examples:
responses:
"200":
application/json: [{"type": "webhook", "label": "Webhook", "description": "Send event via an HTTP POST request to a URL", "icon": "<svg />", "instructions": "Enter the URL...", "config_fields": [{"type": "text", "label": "URL", "description": "The URL to send the webhook to.", "required": true, "pattern": "^https?://.*"}], "credential_fields": [{"type": "text", "label": "Secret", "description": "Optional signing secret.", "required": false, "sensitive": true}]}, {"type": "aws_sqs", "label": "AWS SQS", "description": "Send event to an AWS SQS queue", "icon": "<svg />", "instructions": "Enter Queue URL...", "config_fields": [{"type": "text", "label": "Queue URL", "description": "The URL of the SQS queue.", "required": true}, {"type": "text", "label": "Endpoint", "description": "Optional custom AWS endpoint URL.", "required": false}], "credential_fields": [{"type": "text", "label": "Key", "description": "AWS Access Key ID.", "required": true, "sensitive": true}, {"type": "text", "label": "Secret", "description": "AWS Secret Access Key.", "required": true, "sensitive": true}, {"type": "text", "label": "Session", "description": "Optional AWS Session Token.", "required": false, "sensitive": true}]}]
getDestinationTypeSchemaJwt:
getDestinationTypeSchema:
WebhookSchemaExample:
parameters:
path:
type: "rabbitmq"
type: "aws_kinesis"
responses:
"200":
application/json: {"type": "webhook", "label": "Webhook", "description": "Send event via an HTTP POST request to a URL", "icon": "<svg />", "instructions": "Enter the URL...", "config_fields": [{"type": "text", "label": "URL", "description": "The URL to send the event to", "validation": "/((([A-Za-z]{3,9}:(?://)?)(?:[-;:&=+$,w]+@)?[A-Za-z0-9.-]+(:[0-9]+)?|(?:www.|[-;:&=+$,w]+@)[A-Za-z0-9.-]+)((?:/[+~%/.w-_]*)???(?:[-+=&;%@.w_]*)#?(?:[w]*))?)/", "required": true}], "credential_fields": [{"type": "text", "label": "Secret", "description": "The URL to send the event to", "required": false}]}
application/json: {"type": "webhook", "label": "Webhook", "description": "Send event via an HTTP POST request to a URL", "icon": "<svg />", "instructions": "Enter the URL...", "config_fields": [{"type": "text", "label": "URL", "description": "The URL to send the webhook to.", "required": true, "pattern": "^https?://.*"}], "credential_fields": [{"type": "text", "label": "Secret", "description": "Optional signing secret.", "required": false, "sensitive": true}]}
listTenantTopics:
TopicsListExample:
parameters:
Expand All @@ -499,7 +476,7 @@ examples:
responses:
"200":
application/json: ["user.created", "user.updated", "order.shipped", "inventory.updated"]
listTopicsJwt:
listTopics:
TopicsListExample:
responses:
"200":
Expand Down Expand Up @@ -577,18 +554,5 @@ examples:
application/json: {"key": "<value>", "key1": "<value>"}
"511":
application/json: {"key": "<value>"}
getDestinationTypeSchema:
WebhookSchemaExample:
parameters:
path:
type: "aws_kinesis"
responses:
"200":
application/json: {"type": "webhook", "label": "Webhook", "description": "Send event via an HTTP POST request to a URL", "icon": "<svg />", "instructions": "Enter the URL...", "config_fields": [{"type": "text", "label": "URL", "description": "The URL to send the webhook to.", "required": true, "pattern": "^https?://.*"}], "credential_fields": [{"type": "text", "label": "Secret", "description": "Optional signing secret.", "required": false, "sensitive": true}]}
listTopics:
TopicsListExample:
responses:
"200":
application/json: ["user.created", "user.updated", "order.shipped", "inventory.updated"]
examplesVersion: 1.0.1
generatedTests: {}
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ generation:
oAuth2ClientCredentialsEnabled: true
oAuth2PasswordEnabled: true
go:
version: 0.1.1
version: 0.2.0
additionalDependencies: {}
allowUnknownFieldsInWeakUnions: false
clientServerStatusCodesAsErrors: true
Expand All @@ -34,5 +34,5 @@ go:
maxMethodParams: 4
methodArguments: require-security-and-request
outputModelSuffix: output
packageName: client
packageName: github.com/hookdeck/outpost/sdks/outpost-go
responseFormat: envelope-http
File renamed without changes.
Loading