Skip to content

Commit 4505885

Browse files
authored
Merge pull request #9 from Gusto/ar/create-app-int-library
configure code generation for app int
2 parents bef19e4 + b216267 commit 4505885

6 files changed

Lines changed: 3305 additions & 2 deletions

File tree

.github/workflows/sdk_publish.yaml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,19 @@ permissions:
1313
- gusto_embedded/.speakeasy/gen.lock
1414
workflow_dispatch: {}
1515
jobs:
16-
publish:
16+
publish-embedded:
1717
uses: speakeasy-api/sdk-generation-action/.github/workflows/sdk-publish.yaml@v15
1818
with:
1919
target: gusto
2020
secrets:
2121
github_access_token: ${{ secrets.GITHUB_TOKEN }}
2222
pypi_token: ${{ secrets.PYPI_TOKEN }}
2323
speakeasy_api_key: ${{ secrets.SPEAKEASY_API_KEY }}
24+
publish-app-int:
25+
uses: speakeasy-api/sdk-generation-action/.github/workflows/sdk-publish.yaml@v15
26+
with:
27+
target: gusto-app-int
28+
secrets:
29+
github_access_token: ${{ secrets.GITHUB_TOKEN }}
30+
pypi_token: ${{ secrets.PYPI_TOKEN }}
31+
speakeasy_api_key: ${{ secrets.SPEAKEASY_API_KEY }}

.speakeasy/workflow.lock

Lines changed: 37 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
1-
speakeasyVersion: 1.492.0
1+
speakeasyVersion: 1.498.1
22
sources:
3+
Gusto-App-Int-OAS:
4+
sourceNamespace: gusto-app-int-oas
5+
sourceRevisionDigest: sha256:91551b9eca8e75affa728d10092e31dffe6cb767e852105b93f98913c338ae55
6+
sourceBlobDigest: sha256:8e90e3b991dbefcfc8c7c65ac83a5ce88ed281606d9c5814091f8722aa6f8eac
7+
tags:
8+
- latest
9+
- "2024-04-01"
310
Gusto-OAS:
411
sourceNamespace: gusto-oas
512
sourceRevisionDigest: sha256:ab4729c75eaab506305218dd966c2ca2273a6872569c6c1d1ff5bb82ebca431b
@@ -16,10 +23,29 @@ targets:
1623
sourceBlobDigest: sha256:f0fdc2ef12e4d07f71797ce152b5a3ffcff778e6c2e40fca4f4087f72da85449
1724
codeSamplesNamespace: gusto-oas-python-code-samples
1825
codeSamplesRevisionDigest: sha256:d8d37bf7785f6243ea304d3551cd8e7f8890a1345c49cec6ec0db7f526be574d
26+
gusto-app-int:
27+
source: Gusto-App-Int-OAS
28+
sourceNamespace: gusto-app-int-oas
29+
sourceRevisionDigest: sha256:91551b9eca8e75affa728d10092e31dffe6cb767e852105b93f98913c338ae55
30+
sourceBlobDigest: sha256:8e90e3b991dbefcfc8c7c65ac83a5ce88ed281606d9c5814091f8722aa6f8eac
31+
codeSamplesNamespace: gusto-app-int-oas-python-code-samples
32+
codeSamplesRevisionDigest: sha256:644f3cf73c8a3e3ff1c8f238e42e27f09d32b4c2402b2c8459e2fefe7312d964
1933
workflow:
2034
workflowVersion: 1.0.0
2135
speakeasyVersion: latest
2236
sources:
37+
Gusto-App-Int-OAS:
38+
inputs:
39+
- location: https://raw.githubusercontent.com/Gusto/Gusto-Partner-API/ar/include-generated-app-int-oas-in-repo/generated/app-integrations/api.v2024-04-01.app-integrations.yaml
40+
authHeader: Authorization
41+
authSecret: $openapi_doc_auth_token
42+
overlays:
43+
- location: https://raw.githubusercontent.com/Gusto/Gusto-Partner-API/refs/heads/ar/include-generated-app-int-oas-in-repo/.speakeasy/speakeasy-app-int-modifications-overlay.yaml
44+
authHeader: Authorization
45+
authSecret: $openapi_doc_auth_token
46+
- location: gusto_app_int/.speakeasy/speakeasy-modifications-overlay.yaml
47+
registry:
48+
location: registry.speakeasyapi.dev/gusto/ruby-sdk/gusto-app-int-oas
2349
Gusto-OAS:
2450
inputs:
2551
- location: https://raw.githubusercontent.com/Gusto/Gusto-Partner-API/refs/heads/main/generated/embedded/api.v2024-04-01.embedded.yaml
@@ -46,3 +72,13 @@ workflow:
4672
labelOverride:
4773
fixedValue: Python (SDK)
4874
blocking: false
75+
gusto-app-int:
76+
target: python
77+
source: Gusto-App-Int-OAS
78+
output: gusto_app_int
79+
codeSamples:
80+
registry:
81+
location: registry.speakeasyapi.dev/gusto/ruby-sdk/gusto-app-int-oas-python-code-samples
82+
labelOverride:
83+
fixedValue: Python (SDK)
84+
blocking: false

.speakeasy/workflow.yaml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,18 @@
11
workflowVersion: 1.0.0
22
speakeasyVersion: latest
33
sources:
4+
Gusto-App-Int-OAS:
5+
inputs:
6+
- location: https://raw.githubusercontent.com/Gusto/Gusto-Partner-API/main/generated/app-integrations/api.v2024-04-01.app-integrations.yaml
7+
authHeader: Authorization
8+
authSecret: $openapi_doc_auth_token
9+
overlays:
10+
- location: https://raw.githubusercontent.com/Gusto/Gusto-Partner-API/refs/heads/main/.speakeasy/speakeasy-app-int-modifications-overlay.yaml
11+
authHeader: Authorization
12+
authSecret: $openapi_doc_auth_token
13+
- location: gusto_app_int/.speakeasy/speakeasy-modifications-overlay.yaml
14+
registry:
15+
location: registry.speakeasyapi.dev/gusto/ruby-sdk/gusto-app-int-oas
416
Gusto-OAS:
517
inputs:
618
- location: https://raw.githubusercontent.com/Gusto/Gusto-Partner-API/refs/heads/main/generated/embedded/api.v2024-04-01.embedded.yaml
@@ -27,3 +39,16 @@ targets:
2739
labelOverride:
2840
fixedValue: Python (SDK)
2941
blocking: false
42+
gusto-app-int:
43+
target: python
44+
source: Gusto-App-Int-OAS
45+
output: gusto_app_int
46+
publish:
47+
pypi:
48+
token: $pypi_token
49+
codeSamples:
50+
registry:
51+
location: registry.speakeasyapi.dev/gusto/ruby-sdk/gusto-app-int-oas-python-code-samples
52+
labelOverride:
53+
fixedValue: Python (SDK)
54+
blocking: false

0 commit comments

Comments
 (0)