Skip to content

Commit 05058ef

Browse files
authored
Merge branch 'main' into add-api-keys-support
2 parents 0ad0abe + c2b2517 commit 05058ef

15 files changed

+469
-10
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
matrix:
2020
python: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13", "3.14"]
2121
steps:
22-
- uses: actions/checkout@v3
22+
- uses: actions/checkout@v6
2323
- uses: astral-sh/setup-uv@v7
2424
with:
2525
python-version: ${{ matrix.python }}
@@ -49,7 +49,7 @@ jobs:
4949
matrix:
5050
python: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13", "3.14"]
5151
steps:
52-
- uses: actions/checkout@v3
52+
- uses: actions/checkout@v6
5353
- uses: astral-sh/setup-uv@v7
5454
with:
5555
python-version: ${{ matrix.python }}

.github/workflows/coana-analysis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616

1717
steps:
1818
- name: Checkout code
19-
uses: actions/checkout@v4
19+
uses: actions/checkout@v6
2020

2121
- name: Run Coana CLI
2222
id: coana-cli

.github/workflows/coana-guardrail.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88

99
steps:
1010
- name: Checkout the ${{github.base_ref}} branch
11-
uses: actions/checkout@v4
11+
uses: actions/checkout@v6
1212
with:
1313
ref: ${{github.base_ref}} # checkout the base branch (usually master/main).
1414

@@ -21,10 +21,10 @@ jobs:
2121
run: |
2222
echo "all_changed_files=$(git diff --name-only ${{ github.base_ref }} ${{ github.head_ref }} | tr '\n' ' ')" >> $GITHUB_OUTPUT
2323
24-
- name: Use Node.js 20.x
24+
- name: Use Node.js 24.x
2525
uses: actions/setup-node@v4
2626
with:
27-
node-version: 20.x
27+
node-version: 24.x
2828

2929
- name: Run Coana on the ${{github.base_ref}} branch
3030
run: |
@@ -44,7 +44,7 @@ jobs:
4444
run: sudo chown -R $USER:$USER .
4545

4646
- name: Checkout the current branch
47-
uses: actions/checkout@v4
47+
uses: actions/checkout@v6
4848
with:
4949
clean: true
5050

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
private-key: ${{ secrets.SDK_BOT_PRIVATE_KEY }}
2626

2727
- name: Checkout
28-
uses: actions/checkout@v4
28+
uses: actions/checkout@v6
2929
with:
3030
token: ${{ steps.generate-token.outputs.token }}
3131

@@ -52,7 +52,7 @@ jobs:
5252
contents: read
5353
steps:
5454
- name: Checkout
55-
uses: actions/checkout@v4
55+
uses: actions/checkout@v6
5656
- name: Install uv
5757
uses: astral-sh/setup-uv@v6
5858
- name: Build

.github/workflows/version-bump.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
private-key: ${{ secrets.SDK_BOT_PRIVATE_KEY }}
2828

2929
- name: Checkout
30-
uses: actions/checkout@v4
30+
uses: actions/checkout@v6
3131
with:
3232
token: ${{ steps.generate-token.outputs.token }}
3333

src/workos/types/events/__init__.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
from .authentication_payload import *
22
from .connection_payload_with_legacy_fields import *
3+
from .connection_saml_certificate_payload import *
34
from .directory_group_membership_payload import *
45
from .directory_group_with_previous_attributes import *
56
from .directory_payload import *
@@ -8,6 +9,9 @@
89
from .event_model import *
910
from .event_type import *
1011
from .event import *
12+
from .flag_payload import *
1113
from .organization_domain_verification_failed_payload import *
14+
from .organization_role_payload import *
15+
from .permission_payload import *
1216
from .previous_attributes import *
1317
from .session_payload import *

src/workos/types/events/authentication_payload.py

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,10 @@ class AuthenticationEmailVerificationSucceededPayload(AuthenticationResultSuccee
2929
user_id: str
3030

3131

32+
class AuthenticationEmailVerificationFailedPayload(AuthenticationResultFailed):
33+
type: Literal["email_verification"]
34+
35+
3236
class AuthenticationMagicAuthFailedPayload(AuthenticationResultFailed):
3337
type: Literal["magic_auth"]
3438

@@ -43,6 +47,10 @@ class AuthenticationMfaSucceededPayload(AuthenticationResultSucceeded):
4347
user_id: Optional[str] = None
4448

4549

50+
class AuthenticationMfaFailedPayload(AuthenticationResultFailed):
51+
type: Literal["mfa"]
52+
53+
4654
class AuthenticationOauthFailedPayload(AuthenticationResultFailed):
4755
type: Literal["oauth"]
4856

@@ -52,6 +60,15 @@ class AuthenticationOauthSucceededPayload(AuthenticationResultSucceeded):
5260
user_id: Optional[str] = None
5361

5462

63+
class AuthenticationPasskeyFailedPayload(AuthenticationResultFailed):
64+
type: Literal["passkey"]
65+
66+
67+
class AuthenticationPasskeySucceededPayload(AuthenticationResultSucceeded):
68+
type: Literal["passkey"]
69+
user_id: str
70+
71+
5572
class AuthenticationPasswordFailedPayload(AuthenticationResultFailed):
5673
type: Literal["password"]
5774

@@ -61,10 +78,27 @@ class AuthenticationPasswordSucceededPayload(AuthenticationResultSucceeded):
6178
user_id: str
6279

6380

81+
class AuthenticationSsoData(WorkOSModel):
82+
connection_id: Optional[str] = None
83+
organization_id: Optional[str] = None
84+
session_id: Optional[str] = None
85+
86+
6487
class AuthenticationSsoFailedPayload(AuthenticationResultFailed):
6588
type: Literal["sso"]
89+
sso: AuthenticationSsoData
6690

6791

6892
class AuthenticationSsoSucceededPayload(AuthenticationResultSucceeded):
6993
type: Literal["sso"]
7094
user_id: Optional[str] = None
95+
sso: AuthenticationSsoData
96+
97+
98+
class AuthenticationRadarRiskDetectedPayload(AuthenticationResultCommon):
99+
auth_method: str
100+
action: str
101+
control: Optional[str] = None
102+
blocklist_type: Optional[str] = None
103+
user_id: str
104+
email: str
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
from typing import Literal, Optional
2+
from workos.types.workos_model import WorkOSModel
3+
4+
SamlCertificateType = Literal["ResponseSigning", "RequestSigning", "ResponseEncryption"]
5+
6+
7+
class SamlCertificateConnection(WorkOSModel):
8+
id: str
9+
organization_id: Optional[str] = None
10+
11+
12+
class SamlCertificate(WorkOSModel):
13+
certificate_type: SamlCertificateType
14+
expiry_date: str
15+
16+
17+
class SamlCertificateWithExpiry(SamlCertificate):
18+
is_expired: bool
19+
20+
21+
class ConnectionSamlCertificateRenewedPayload(WorkOSModel):
22+
connection: SamlCertificateConnection
23+
certificate: SamlCertificate
24+
renewed_at: str
25+
26+
27+
class ConnectionSamlCertificateRenewalRequiredPayload(WorkOSModel):
28+
connection: SamlCertificateConnection
29+
certificate: SamlCertificateWithExpiry
30+
days_until_expiry: int

0 commit comments

Comments
 (0)