Skip to content

Commit 6d966dc

Browse files
feat(generated)!: SDK surface change: Parameter type changed for "rangeStart" on "AuditLogs.createExport" (#411)
Co-authored-by: workos-sdk-automation[bot] <255426317+workos-sdk-automation[bot]@users.noreply.github.com>
1 parent d21501e commit 6d966dc

20 files changed

Lines changed: 283 additions & 29 deletions
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
* [#411](https://github.com/workos/workos-php/pull/411) feat(generated)!: regenerate from spec (1 change)
2+
3+
**⚠️ Breaking**
4+
* **[user_management](https://workos.com/docs/reference/authkit/user)**:
5+
* Removed model `SessionReauthenticated`
6+
* Removed model `SessionReauthenticatedData`
7+
* Removed model `SessionReauthenticatedDataImpersonator`
8+
* Removed enum `SessionReauthenticatedDataAuthMethod`
9+
* Removed enum `SessionReauthenticatedDataStatus`
10+
11+
**Features**
12+
* **[webhooks](https://workos.com/docs/reference/webhooks)**:
13+
* Added `agent.registration.created` to `CreateWebhookEndpointEvents`
14+
* Added `agent.registration.claim.attempt.created` to `CreateWebhookEndpointEvents`
15+
* Added `agent.registration.claim.completed` to `CreateWebhookEndpointEvents`
16+
* Added `agent.registration.credential.issued` to `CreateWebhookEndpointEvents`
17+
* Added `agent.registration.organization.switched` to `CreateWebhookEndpointEvents`
18+
* Added `authentication.reauthentication_succeeded` to `CreateWebhookEndpointEvents`
19+
* Added `agent.registration.created` to `UpdateWebhookEndpointEvents`
20+
* Added `agent.registration.claim.attempt.created` to `UpdateWebhookEndpointEvents`
21+
* Added `agent.registration.claim.completed` to `UpdateWebhookEndpointEvents`
22+
* Added `agent.registration.credential.issued` to `UpdateWebhookEndpointEvents`
23+
* Added `agent.registration.organization.switched` to `UpdateWebhookEndpointEvents`
24+
* Added `authentication.reauthentication_succeeded` to `UpdateWebhookEndpointEvents`
25+
* **[webhooks](https://workos.com/docs/reference/webhooks)**:
26+
* Added `session.reauthenticated` to `CreateWebhookEndpointEvents`
27+
* Added `session.reauthenticated` to `UpdateWebhookEndpointEvents`
28+
* **[webhooks](https://workos.com/docs/reference/webhooks)**:
29+
* Added `pipes.connected_account.connection_failed` to `CreateWebhookEndpointEvents`
30+
* Added `pipes.connected_account.connection_failed` to `UpdateWebhookEndpointEvents`
31+
* **[user_management](https://workos.com/docs/reference/authkit/user)**:
32+
* Added model `UserRoleAssignmentSource`
33+
* Added `source` to `UserRoleAssignment`
34+
* Added enum `UserRoleAssignmentSourceType`
35+
* Added parameter `UserManagementAuthentication.authorize.max_age`
36+
* Added endpoint `GET /user_management/cors_origins`
37+
* Added endpoint `GET /user_management/redirect_uris`
38+
* **[audit_logs](https://workos.com/docs/reference/audit-logs)**:
39+
* Changed the format of `AuditLogExportCreation.range_start`
40+
* Changed the format of `AuditLogExportCreation.range_end`
41+
* **[audit_logs](https://workos.com/docs/reference/audit-logs)**:
42+
* Added `expired` to `AuditLogExportState`
43+
44+
**Fixes**
45+
* **[admin_portal](https://workos.com/docs/reference/admin-portal)**:
46+
* Removed `intent_options` from `GenerateLink`
47+
* **[webhooks](https://workos.com/docs/reference/webhooks)**:
48+
* Removed `session.reauthenticated` from `CreateWebhookEndpointEvents`
49+
* Removed `session.reauthenticated` from `UpdateWebhookEndpointEvents`

.oagen-manifest.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"version": 2,
33
"language": "php",
4-
"generatedAt": "2026-07-01T16:28:51.290Z",
4+
"generatedAt": "2026-07-01T18:19:15.811Z",
55
"files": [
66
"lib/Resource/ActionAuthenticationDenied.php",
77
"lib/Resource/ActionAuthenticationDeniedData.php",
@@ -492,6 +492,8 @@
492492
"lib/Resource/UserOrganizationMembershipBaseListData.php",
493493
"lib/Resource/UserRoleAssignment.php",
494494
"lib/Resource/UserRoleAssignmentResource.php",
495+
"lib/Resource/UserRoleAssignmentSource.php",
496+
"lib/Resource/UserRoleAssignmentSourceType.php",
495497
"lib/Resource/UserSessionsAuthMethod.php",
496498
"lib/Resource/UserSessionsImpersonator.php",
497499
"lib/Resource/UserSessionsListItem.php",
@@ -866,6 +868,7 @@
866868
"tests/Fixtures/list_authorized_connect_application_list_data.json",
867869
"tests/Fixtures/list_connect_application.json",
868870
"tests/Fixtures/list_connection.json",
871+
"tests/Fixtures/list_cors_origin_response.json",
869872
"tests/Fixtures/list_directory.json",
870873
"tests/Fixtures/list_directory_group.json",
871874
"tests/Fixtures/list_directory_user_with_groups.json",
@@ -877,6 +880,7 @@
877880
"tests/Fixtures/list_object_summary.json",
878881
"tests/Fixtures/list_organization.json",
879882
"tests/Fixtures/list_organization_api_key.json",
883+
"tests/Fixtures/list_redirect_uri.json",
880884
"tests/Fixtures/list_user.json",
881885
"tests/Fixtures/list_user_api_key.json",
882886
"tests/Fixtures/list_user_invite.json",
@@ -1038,6 +1042,7 @@
10381042
"tests/Fixtures/user_organization_membership_base_list_data.json",
10391043
"tests/Fixtures/user_role_assignment.json",
10401044
"tests/Fixtures/user_role_assignment_resource.json",
1045+
"tests/Fixtures/user_role_assignment_source.json",
10411046
"tests/Fixtures/user_sessions_impersonator.json",
10421047
"tests/Fixtures/user_sessions_list_item.json",
10431048
"tests/Fixtures/user_updated.json",

lib/Resource/AuditLogExport.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ public function __construct(
1515
public string $object,
1616
/** The unique ID of the Audit Log Export. */
1717
public string $id,
18-
/** The state of the export. Possible values: pending, ready, error. */
18+
/** The state of the export. Possible values: pending, ready, error, expired. */
1919
public AuditLogExportState $state,
2020
/** An ISO 8601 timestamp. */
2121
public \DateTimeImmutable $createdAt,

lib/Resource/AuditLogExportCreation.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ public function __construct(
1414
/** The unique ID of the Organization. */
1515
public string $organizationId,
1616
/** ISO-8601 value for start of the export range. */
17-
public string $rangeStart,
17+
public \DateTimeImmutable $rangeStart,
1818
/** ISO-8601 value for end of the export range. */
19-
public string $rangeEnd,
19+
public \DateTimeImmutable $rangeEnd,
2020
/**
2121
* List of actions to filter against.
2222
* @var array<string>|null
@@ -50,8 +50,8 @@ public static function fromArray(array $data): self
5050
{
5151
return new self(
5252
organizationId: $data['organization_id'],
53-
rangeStart: $data['range_start'],
54-
rangeEnd: $data['range_end'],
53+
rangeStart: new \DateTimeImmutable($data['range_start']),
54+
rangeEnd: new \DateTimeImmutable($data['range_end']),
5555
actions: $data['actions'] ?? null,
5656
actors: $data['actors'] ?? null,
5757
actorNames: $data['actor_names'] ?? null,
@@ -64,8 +64,8 @@ public function toArray(): array
6464
{
6565
return [
6666
'organization_id' => $this->organizationId,
67-
'range_start' => $this->rangeStart,
68-
'range_end' => $this->rangeEnd,
67+
'range_start' => $this->rangeStart->format(\DateTimeInterface::RFC3339_EXTENDED),
68+
'range_end' => $this->rangeEnd->format(\DateTimeInterface::RFC3339_EXTENDED),
6969
'actions' => $this->actions,
7070
'actors' => $this->actors,
7171
'actor_names' => $this->actorNames,

lib/Resource/AuditLogExportState.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,5 @@ enum AuditLogExportState: string
1111
case Pending = 'pending';
1212
case Ready = 'ready';
1313
case Error = 'error';
14+
case Expired = 'expired';
1415
}

lib/Resource/CreateWebhookEndpointEvents.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@
88

99
enum CreateWebhookEndpointEvents: string
1010
{
11+
case AgentRegistrationCreated = 'agent.registration.created';
12+
case AgentRegistrationClaimAttemptCreated = 'agent.registration.claim.attempt.created';
13+
case AgentRegistrationClaimCompleted = 'agent.registration.claim.completed';
14+
case AgentRegistrationCredentialIssued = 'agent.registration.credential.issued';
15+
case AgentRegistrationOrganizationSwitched = 'agent.registration.organization.switched';
1116
case AuthenticationEmailVerificationSucceeded = 'authentication.email_verification_succeeded';
1217
case AuthenticationMagicAuthFailed = 'authentication.magic_auth_failed';
1318
case AuthenticationMagicAuthSucceeded = 'authentication.magic_auth_succeeded';
@@ -23,6 +28,7 @@ enum CreateWebhookEndpointEvents: string
2328
case AuthenticationSSOSucceeded = 'authentication.sso_succeeded';
2429
case AuthenticationSSOTimedOut = 'authentication.sso_timed_out';
2530
case AuthenticationRadarRiskDetected = 'authentication.radar_risk_detected';
31+
case AuthenticationReauthenticationSucceeded = 'authentication.reauthentication_succeeded';
2632
case ApiKeyCreated = 'api_key.created';
2733
case ApiKeyRevoked = 'api_key.revoked';
2834
case ApiKeyUpdated = 'api_key.updated';
@@ -82,6 +88,7 @@ enum CreateWebhookEndpointEvents: string
8288
case PermissionDeleted = 'permission.deleted';
8389
case PermissionUpdated = 'permission.updated';
8490
case PipesConnectedAccountConnected = 'pipes.connected_account.connected';
91+
case PipesConnectedAccountConnectionFailed = 'pipes.connected_account.connection_failed';
8592
case PipesConnectedAccountDisconnected = 'pipes.connected_account.disconnected';
8693
case PipesConnectedAccountReauthorizationNeeded = 'pipes.connected_account.reauthorization_needed';
8794
case SessionCreated = 'session.created';

lib/Resource/GenerateLink.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,6 @@ public function __construct(
2929
* - `bring_your_own_key` - Launch Admin Portal for configuring Bring Your Own Key
3030
*/
3131
public ?GenerateLinkIntent $intent = null,
32-
/** Options to configure the Admin Portal based on the intent. */
33-
public ?IntentOptions $intentOptions = null,
3432
/**
3533
* The email addresses of the IT contacts to grant access to the Admin Portal for the given organization. Accepts up to 20 emails.
3634
* @var array<string>|null
@@ -46,7 +44,6 @@ public static function fromArray(array $data): self
4644
returnUrl: $data['return_url'] ?? null,
4745
successUrl: $data['success_url'] ?? null,
4846
intent: isset($data['intent']) ? GenerateLinkIntent::from($data['intent']) : null,
49-
intentOptions: isset($data['intent_options']) ? IntentOptions::fromArray($data['intent_options']) : null,
5047
itContactEmails: $data['it_contact_emails'] ?? null,
5148
);
5249
}
@@ -58,7 +55,6 @@ public function toArray(): array
5855
'return_url' => $this->returnUrl,
5956
'success_url' => $this->successUrl,
6057
'intent' => $this->intent?->value,
61-
'intent_options' => $this->intentOptions?->toArray(),
6258
'it_contact_emails' => $this->itContactEmails,
6359
];
6460
}

lib/Resource/UserRoleAssignment.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ public function __construct(
2121
public SlimRole $role,
2222
/** The resource the role is assigned on. */
2323
public UserRoleAssignmentResource $resource,
24+
/** The origin of the role assignment. */
25+
public UserRoleAssignmentSource $source,
2426
/** An ISO 8601 timestamp. */
2527
public \DateTimeImmutable $createdAt,
2628
/** An ISO 8601 timestamp. */
@@ -36,6 +38,7 @@ public static function fromArray(array $data): self
3638
organizationMembershipId: $data['organization_membership_id'],
3739
role: SlimRole::fromArray($data['role']),
3840
resource: UserRoleAssignmentResource::fromArray($data['resource']),
41+
source: UserRoleAssignmentSource::fromArray($data['source']),
3942
createdAt: new \DateTimeImmutable($data['created_at']),
4043
updatedAt: new \DateTimeImmutable($data['updated_at']),
4144
);
@@ -49,6 +52,7 @@ public function toArray(): array
4952
'organization_membership_id' => $this->organizationMembershipId,
5053
'role' => $this->role->toArray(),
5154
'resource' => $this->resource->toArray(),
55+
'source' => $this->source->toArray(),
5256
'created_at' => $this->createdAt->format(\DateTimeInterface::RFC3339_EXTENDED),
5357
'updated_at' => $this->updatedAt->format(\DateTimeInterface::RFC3339_EXTENDED),
5458
];
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
5+
// This file is auto-generated by oagen. Do not edit.
6+
7+
namespace WorkOS\Resource;
8+
9+
/** The origin of the role assignment. */
10+
readonly class UserRoleAssignmentSource implements \JsonSerializable
11+
{
12+
use JsonSerializableTrait;
13+
14+
public function __construct(
15+
/** Whether the role was assigned directly or derived from a group. */
16+
public UserRoleAssignmentSourceType $type,
17+
/** The ID of the group role assignment the role was derived from, or null if direct. */
18+
public ?string $groupRoleAssignmentId,
19+
) {
20+
}
21+
22+
public static function fromArray(array $data): self
23+
{
24+
return new self(
25+
type: UserRoleAssignmentSourceType::from($data['type']),
26+
groupRoleAssignmentId: $data['group_role_assignment_id'] ?? null,
27+
);
28+
}
29+
30+
public function toArray(): array
31+
{
32+
return [
33+
'type' => $this->type->value,
34+
'group_role_assignment_id' => $this->groupRoleAssignmentId,
35+
];
36+
}
37+
}
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
5+
// This file is auto-generated by oagen. Do not edit.
6+
7+
namespace WorkOS\Resource;
8+
9+
enum UserRoleAssignmentSourceType: string
10+
{
11+
case Direct = 'direct';
12+
case Group = 'group';
13+
}

0 commit comments

Comments
 (0)