Skip to content

Commit 2ee3214

Browse files
committed
chore: add webhooks sdk
1 parent c3bcaef commit 2ee3214

File tree

201 files changed

+23754
-52
lines changed

Some content is hidden

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

201 files changed

+23754
-52
lines changed
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Generate Webhooks SDK
2+
permissions:
3+
checks: write
4+
contents: write
5+
pull-requests: write
6+
statuses: write
7+
id-token: write
8+
"on":
9+
workflow_dispatch:
10+
inputs:
11+
force:
12+
description: Force generation of SDKs
13+
type: boolean
14+
default: false
15+
set_version:
16+
description: optionally set a specific SDK version
17+
type: string
18+
schedule:
19+
- cron: 30 18 * * *
20+
jobs:
21+
generate_webhooks_sdk:
22+
uses: speakeasy-api/sdk-generation-action/.github/workflows/workflow-executor.yaml@v15
23+
with:
24+
force: ${{ github.event.inputs.force }}
25+
mode: pr
26+
set_version: ${{ github.event.inputs.set_version }}
27+
target: webhooks-sdk
28+
secrets:
29+
github_access_token: ${{ secrets.GITHUB_TOKEN }}
30+
npm_token: ${{ secrets.NPM_TOKEN }}
31+
speakeasy_api_key: ${{ secrets.SPEAKEASY_API_KEY }}
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: Publish Webhooks SDK
2+
permissions:
3+
checks: write
4+
contents: write
5+
pull-requests: write
6+
statuses: write
7+
"on":
8+
push:
9+
branches:
10+
- main
11+
paths:
12+
- webhooks/RELEASES.md
13+
jobs:
14+
publish_webhooks_sdk:
15+
uses: speakeasy-api/sdk-generation-action/.github/workflows/sdk-publish.yaml@v15
16+
secrets:
17+
github_access_token: ${{ secrets.GITHUB_TOKEN }}
18+
npm_token: ${{ secrets.NPM_TOKEN }}
19+
speakeasy_api_key: ${{ secrets.SPEAKEASY_API_KEY }}

.speakeasy/workflow.lock

Lines changed: 36 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
speakeasyVersion: 1.517.0
1+
speakeasyVersion: 1.520.0
22
sources:
33
data-source:
44
sourceNamespace: avalanche-sdk-data-typescript
@@ -15,6 +15,13 @@ sources:
1515
tags:
1616
- latest
1717
- Beta
18+
webhooks-source:
19+
sourceNamespace: avalanche-sdk-webhooks-typescript
20+
sourceRevisionDigest: sha256:a4b753ad4ae42444491b67edf734db2bc77a5846d339f30423f7912e640913d8
21+
sourceBlobDigest: sha256:2e714bc4b5b05e421ae050a075b95943034a956c05dfec84992577d085b7fa18
22+
tags:
23+
- latest
24+
- Beta
1825
targets:
1926
avalanche:
2027
source: metrics-source
@@ -37,6 +44,13 @@ targets:
3744
sourceBlobDigest: sha256:d78b3df2caff220dc9286c7dace9cad67e0c0b1cc062abd24eda83bd990faa3a
3845
codeSamplesNamespace: avalanche-sdk-metrics-typescript-code-samples
3946
codeSamplesRevisionDigest: sha256:4ba327af0d9ca9c5c10c641cb497a55149a1320cc68bacdd8c41201da64a747e
47+
webhooks-sdk:
48+
source: webhooks-source
49+
sourceNamespace: avalanche-sdk-webhooks-typescript
50+
sourceRevisionDigest: sha256:a4b753ad4ae42444491b67edf734db2bc77a5846d339f30423f7912e640913d8
51+
sourceBlobDigest: sha256:2e714bc4b5b05e421ae050a075b95943034a956c05dfec84992577d085b7fa18
52+
codeSamplesNamespace: avalanche-sdk-webhooks-typescript-code-samples
53+
codeSamplesRevisionDigest: sha256:d48ff5d3296b2763d0784c228f2a1e24eda9b2c734518cb989b4fe3568ce9bbe
4054
workflow:
4155
workflowVersion: 1.0.0
4256
speakeasyVersion: latest
@@ -55,6 +69,13 @@ workflow:
5569
- location: metrics/overlays/overlay.yaml
5670
registry:
5771
location: registry.speakeasyapi.dev/avalabs/avalabs/avalanche-sdk-metrics-typescript
72+
webhooks-source:
73+
inputs:
74+
- location: https://glacier-api.avax.network/api-json
75+
overlays:
76+
- location: webhooks/overlays/overlay.yaml
77+
registry:
78+
location: registry.speakeasyapi.dev/avalabs/avalabs/avalanche-sdk-webhooks-typescript
5879
targets:
5980
data-sdk:
6081
target: typescript
@@ -84,3 +105,17 @@ workflow:
84105
labelOverride:
85106
fixedValue: JavaScript
86107
blocking: false
108+
webhooks-sdk:
109+
target: typescript
110+
source: webhooks-source
111+
output: webhooks
112+
publish:
113+
npm:
114+
token: $npm_token
115+
codeSamples:
116+
registry:
117+
location: registry.speakeasyapi.dev/avalabs/avalabs/avalanche-sdk-webhooks-typescript-code-samples
118+
langOverride: javascript
119+
labelOverride:
120+
fixedValue: JavaScript
121+
blocking: false

.speakeasy/workflow.yaml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,13 @@ sources:
1515
- location: metrics/overlays/overlay.yaml
1616
registry:
1717
location: registry.speakeasyapi.dev/avalabs/avalabs/avalanche-sdk-metrics-typescript
18+
webhooks-source:
19+
inputs:
20+
- location: https://glacier-api.avax.network/api-json
21+
overlays:
22+
- location: webhooks/overlays/overlay.yaml
23+
registry:
24+
location: registry.speakeasyapi.dev/avalabs/avalabs/avalanche-sdk-webhooks-typescript
1825
targets:
1926
data-sdk:
2027
target: typescript
@@ -44,3 +51,17 @@ targets:
4451
labelOverride:
4552
fixedValue: JavaScript
4653
blocking: false
54+
webhooks-sdk:
55+
target: typescript
56+
source: webhooks-source
57+
output: webhooks
58+
publish:
59+
npm:
60+
token: $npm_token
61+
codeSamples:
62+
registry:
63+
location: registry.speakeasyapi.dev/avalabs/avalabs/avalanche-sdk-webhooks-typescript-code-samples
64+
langOverride: javascript
65+
labelOverride:
66+
fixedValue: JavaScript
67+
blocking: false

data/README.md

Lines changed: 12 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,16 @@
1-
# @avalanche-sdk/data
1+
<div align="center">
2+
<h1> @avalanche-sdk/data </h1>
3+
<p>
4+
The Avalanche Data SDK is a powerful and flexible toolset designed to simplify the integration with AvaCloud's suite of blockchain services.
5+
</p>
6+
<p>
7+
Currently, this SDK is focused on providing robust support for Data APIs.
8+
</p>
9+
<a href="https://developers.avacloud.io/data-api/overview">
10+
<img src="https://img.shields.io/static/v1?label=Docs&message=API Ref&color=3b6ef9&style=for-the-badge" />
11+
</a>
212

3-
Developer-friendly & type-safe Typescript SDK specifically catered to leverage *@avalanche-sdk/data* API.
4-
5-
<div align="left">
6-
<a href="https://www.speakeasy.com/?utm_source=@avalanche-sdk/data&utm_campaign=typescript"><img src="https://custom-icon-badges.demolab.com/badge/-Built%20By%20Speakeasy-212015?style=for-the-badge&logoColor=FBE331&logo=speakeasy&labelColor=545454" /></a>
7-
<a href="https://opensource.org/licenses/MIT">
8-
<img src="https://img.shields.io/badge/License-MIT-blue.svg" style="width: 100px; height: 28px;" />
9-
</a>
1013
</div>
11-
12-
<!-- Start Summary [summary] -->
13-
## Summary
14-
15-
Data API: The Data API provides web3 application developers with multi-chain data related to Avalanche's primary network, Avalanche subnets, and Ethereum. With Data API, you can easily build products that leverage real-time and historical transaction and transfer history, native and token balances, and various types of token metadata. The API is in Beta and may be subject to change.</br></br>If you have feedback or feature requests for the API, please submit them <a href="https://portal.productboard.com/dndv9ahlkdfye4opdm8ksafi/tabs/4-glacier-api">here</a>. Bug reports can be submitted <a href="https://docs.google.com/forms/d/e/1FAIpQLSeJQrcp7QoNiqozMDKrVJGX5wpU827d3cVTgF8qa7t_J1Pb-g/viewform">here</a>, and any potential security issues can be reported <a href="https://immunefi.com/bounty/avalabs">here</a>.
1614
<!-- End Summary [summary] -->
1715

1816
<!-- Start Table of Contents [toc] -->
@@ -821,6 +819,4 @@ looking for the latest version.
821819
## Contributions
822820

823821
While we value open-source contributions to this SDK, this library is generated programmatically. Any manual changes added to internal files will be overwritten on the next generation.
824-
We look forward to hearing your feedback. Feel free to open a PR or an issue with a proof of concept and we'll do our best to include it in a future release.
825-
826-
### SDK Created by [Speakeasy](https://www.speakeasy.com/?utm_source=@avalanche-sdk/data&utm_campaign=typescript)
822+
We look forward to hearing your feedback. Feel free to open a PR or an issue with a proof of concept and we'll do our best to include it in a future release.

0 commit comments

Comments
 (0)