Skip to content

Commit 1791f7f

Browse files
Update SDK from dd51ef9
1 parent 1731f62 commit 1791f7f

File tree

1,709 files changed

+48926
-45994
lines changed

Some content is hidden

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

1,709 files changed

+48926
-45994
lines changed
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# This GitHub Action is managed by the Vellum SDK Generator Repo and copied into each SDK repository.
2+
name: Auto-merge Release PRs
3+
4+
on:
5+
pull_request:
6+
types: [labeled, synchronize]
7+
branches:
8+
- main
9+
10+
jobs:
11+
auto-merge:
12+
runs-on: ubuntu-latest
13+
if: contains(github.event.pull_request.labels.*.name, 'release')
14+
steps:
15+
- name: Checkout repo
16+
uses: actions/checkout@v4
17+
18+
- name: Set up Node.js
19+
uses: actions/setup-node@v3
20+
with:
21+
node-version: "18.18.0"
22+
23+
- name: Install dependencies
24+
run: npm install
25+
working-directory: ee/automation
26+
27+
- name: Wait for checks and auto-merge
28+
env:
29+
VELLUM_AUTOMATION_APP_ID: ${{ secrets.VELLUM_AUTOMATION_APP_ID }}
30+
VELLUM_AUTOMATION_PRIVATE_KEY: ${{ secrets.VELLUM_AUTOMATION_PRIVATE_KEY }}
31+
VELLUM_AUTOMATION_INSTALLATION_ID: ${{ secrets.VELLUM_AUTOMATION_INSTALLATION_ID }}
32+
PR_NUMBER: ${{ github.event.pull_request.number }}
33+
HEAD_SHA: ${{ github.event.pull_request.head.sha }}
34+
run: npm run auto-merge
35+
working-directory: ee/automation
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: ci-workflow-server
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
tags:
8+
- "*"
9+
10+
jobs:
11+
publish:
12+
permissions:
13+
contents: "read"
14+
id-token: "write"
15+
16+
if: github.event_name == 'push' && contains(github.ref, 'refs/tags/')
17+
runs-on: ubuntu-latest
18+
steps:
19+
- name: Checkout repo
20+
uses: actions/checkout@v4
21+
22+
- name: Set up Node.js
23+
uses: actions/setup-node@v3
24+
with:
25+
node-version: "18.18.0"
26+
27+
- name: Install dependencies
28+
run: npm install
29+
working-directory: ee/automation
30+
31+
- id: auth
32+
uses: google-github-actions/auth@v2
33+
with:
34+
token_format: "access_token"
35+
create_credentials_file: true
36+
workload_identity_provider: "projects/585775334980/locations/global/workloadIdentityPools/github-pool/providers/github-actions-provider"
37+
service_account: "github-gcr-service-account@vocify-prod.iam.gserviceaccount.com"
38+
access_token_lifetime: "1200s"
39+
40+
- name: Bump Workflow Server
41+
env:
42+
VELLUM_AUTOMATION_APP_ID: ${{ secrets.VELLUM_AUTOMATION_APP_ID }}
43+
VELLUM_AUTOMATION_PRIVATE_KEY: ${{ secrets.VELLUM_AUTOMATION_PRIVATE_KEY }}
44+
VELLUM_AUTOMATION_INSTALLATION_ID: ${{ secrets.VELLUM_AUTOMATION_INSTALLATION_ID }}
45+
run: npm run upgrade-workflow-server
46+
working-directory: ee/automation

.github/workflows/ci.yml

Lines changed: 35 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,18 @@
11
name: ci
22

3-
on: [push]
3+
on:
4+
push:
5+
branches:
6+
- main
7+
tags:
8+
- "*"
9+
10+
pull_request:
11+
types:
12+
- opened
13+
- reopened
14+
- synchronize
15+
416
jobs:
517
compile:
618
runs-on: ubuntu-latest
@@ -10,12 +22,17 @@ jobs:
1022
- name: Set up python
1123
uses: actions/setup-python@v4
1224
with:
13-
python-version: 3.8
25+
python-version: 3.9
1426
- name: Bootstrap poetry
15-
run: |
16-
curl -sSL https://install.python-poetry.org | python - -y --version 1.5.1
27+
run: make setup-poetry
1728
- name: Install dependencies
1829
run: poetry install
30+
- name: Format
31+
run: poetry run black --check .
32+
- name: Order Imports
33+
run: poetry run isort --check .
34+
- name: Lint
35+
run: poetry run flake8
1936
- name: Compile
2037
run: poetry run mypy .
2138
test:
@@ -26,15 +43,23 @@ jobs:
2643
- name: Set up python
2744
uses: actions/setup-python@v4
2845
with:
29-
python-version: 3.8
46+
python-version: 3.9
3047
- name: Bootstrap poetry
31-
run: |
32-
curl -sSL https://install.python-poetry.org | python - -y --version 1.5.1
48+
run: make setup-poetry
3349
- name: Install dependencies
3450
run: poetry install
3551

52+
# Needed for codegen integration tests (test_zero_diff_transforms)
53+
- name: Set up Node.js
54+
uses: actions/setup-node@v3
55+
with:
56+
node-version: "18.18.0"
57+
- name: Install codegen dependencies
58+
run: npm install
59+
working-directory: ee/codegen
60+
3661
- name: Test
37-
run: poetry run pytest -rP .
62+
run: make test-ci
3863

3964
publish:
4065
needs: [compile, test]
@@ -46,10 +71,9 @@ jobs:
4671
- name: Set up python
4772
uses: actions/setup-python@v4
4873
with:
49-
python-version: 3.8
74+
python-version: 3.9
5075
- name: Bootstrap poetry
51-
run: |
52-
curl -sSL https://install.python-poetry.org | python - -y --version 1.5.1
76+
run: make setup-poetry
5377
- name: Install dependencies
5478
run: poetry install
5579
- name: Publish to pypi

.github/workflows/release.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# This GitHub Action is managed by the Vellum SDK Generator Repo and copied into each SDK repository.
2+
name: Release
3+
4+
on:
5+
pull_request:
6+
types: [closed]
7+
branches:
8+
- main
9+
workflow_dispatch:
10+
11+
jobs:
12+
create-release:
13+
runs-on: ubuntu-latest
14+
if: (github.event.pull_request.merged == true && contains(github.event.pull_request.labels.*.name, 'release')) || github.event_name == 'workflow_dispatch'
15+
steps:
16+
- name: Checkout repo
17+
uses: actions/checkout@v4
18+
19+
- name: Set up Node.js
20+
uses: actions/setup-node@v3
21+
with:
22+
node-version: "18.18.0"
23+
24+
- name: Install dependencies
25+
run: npm install
26+
working-directory: ee/automation
27+
28+
- name: Create release
29+
env:
30+
VELLUM_AUTOMATION_APP_ID: ${{ secrets.VELLUM_AUTOMATION_APP_ID }}
31+
VELLUM_AUTOMATION_PRIVATE_KEY: ${{ secrets.VELLUM_AUTOMATION_PRIVATE_KEY }}
32+
VELLUM_AUTOMATION_INSTALLATION_ID: ${{ secrets.VELLUM_AUTOMATION_INSTALLATION_ID }}
33+
run: npm run create-release
34+
working-directory: ee/automation

.gitignore

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,15 @@
33
__pycache__/
44
dist/
55
poetry.toml
6+
7+
.env
8+
.npmrc
9+
ee/codegen/lib/
10+
ee/codegen/src/assets/node-definitions.json
11+
examples/.ipynb_checkpoints/
12+
node_modules/
13+
tsconfig.tsbuildinfo
14+
.idea
15+
.DS_Store
16+
htmlcov/
17+
CLAUDE.md

LICENSE

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,14 @@
1-
MIT License
1+
Copyright (c) 2023-present Vocify Inc. dba Velum
22

3-
Copyright (c) 2026 Vellum.
3+
Portions of this software are licensed as follows:
4+
5+
* All content that resides under the "ee/" directory of this repository, if
6+
that directory exists, is licensed under the license defined in "ee/LICENSE".
7+
* All third party components incorporated into the Vellum Software are
8+
licensed under the original license provided by the owner of the applicable
9+
component.
10+
* Content outside of the above mentioned directories or restrictions above is
11+
available under the "MIT Expat" license as defined below.
412

513
Permission is hereby granted, free of charge, to any person obtaining a copy
614
of this software and associated documentation files (the "Software"), to deal
@@ -18,4 +26,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1826
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
1927
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
2028
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21-
SOFTWARE.
29+
SOFTWARE.

0 commit comments

Comments
 (0)