Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
* [#401](https://github.com/workos/workos-php/pull/401) feat(generated)!: regenerate from spec (11 changes)

**⚠️ Breaking**
* **[organization_membership](https://workos.com/docs/reference/authkit/organization-membership)**:
* Changed response for `UserManagementOrganizationMembership.list`
* **[pipes](https://workos.com/docs/reference/pipes)**:
* SDK surface change: Symbol "Pipes.createDataIntegrationToken" was removed
* **[user_management](https://workos.com/docs/reference/authkit/user)**:
* Changed response for `UserManagementInvitations.list`

**Features**
* **[authorization](https://workos.com/docs/reference/fga)**:
* Added model `ReplaceGroupRoleAssignmentEntry`
* Added model `ReplaceGroupRoleAssignments`
* Added model `DeleteGroupRoleAssignmentsByCriteria`
* Added endpoint `POST /authorization/groups/{group_id}/role_assignments`
* Added endpoint `PUT /authorization/groups/{group_id}/role_assignments`
* Added endpoint `DELETE /authorization/groups/{group_id}/role_assignments`
* Added endpoint `GET /authorization/groups/{group_id}/role_assignments/{role_assignment_id}`
* Added endpoint `DELETE /authorization/groups/{group_id}/role_assignments/{role_assignment_id}`
* **[client](https://workos.com/docs/reference)**:
* Added model `ClientApiToken`
* Added model `ClientApiTokenResponse`
* Added service `Client`
* **[connect](https://workos.com/docs/reference/workos-connect/standalone)**:
* Added `auth_method` to `ConnectedAccount`
* Added `api_key_last_4` to `ConnectedAccount`
* Added enum `ConnectedAccountAuthMethod`
* **[groups](https://workos.com/docs/reference/groups)**:
* Added model `CreateGroupRoleAssignment`
* Added model `GroupRoleAssignment`
* Added model `GroupRoleAssignmentList`
* Added model `GroupRoleAssignmentResource`
* **[organization_membership](https://workos.com/docs/reference/authkit/organization-membership)**:
* Added model `UserOrganizationMembershipList`
* Added model `UserOrganizationMembershipListListMetadata`
* **[pipes](https://workos.com/docs/reference/pipes)**:
* Added model `DataIntegrationCredentials`
* Added model `DataIntegrationConfigurationResponse`
* Added model `DataIntegrationConfigurationListResponse`
* Added model `ConfigureDataIntegrationBody`
* Added `auth_methods` to `DataIntegrationsListResponseData`
* Added `auth_method` to `DataIntegrationsListResponseDataConnectedAccount`
* Added `api_key_last_4` to `DataIntegrationsListResponseDataConnectedAccount`
* Added enum `DataIntegrationCredentialsCredentialsType`
* Added enum `DataIntegrationsListResponseDataAuthMethods`
* Added enum `DataIntegrationsListResponseDataConnectedAccountAuthMethod`
* Added service `PipesProvider`
* **[user_management](https://workos.com/docs/reference/authkit/user)**:
* Added model `UserInviteList`
* Added model `UserInviteListListMetadata`
* Made `AuthorizationCodeSessionAuthenticateRequest.client_secret` optional
* Made `RefreshTokenSessionAuthenticateRequest.client_secret` optional
* **[widgets](https://workos.com/docs/reference/widgets)**:
* Added `widgets:pipes:manage` to `WidgetSessionTokenScopes`
2 changes: 1 addition & 1 deletion .last-synced-sha
Original file line number Diff line number Diff line change
@@ -1 +1 @@
d8c5a7de598792b1cee18d4a9842825110e5c74a
b6a68da8bd60c1478e0a86ca97c75448677e8871
74 changes: 71 additions & 3 deletions .oagen-manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"version": 2,
"language": "php",
"generatedAt": "2026-06-03T19:19:56.689Z",
"generatedAt": "2026-06-17T20:55:54.166Z",
"files": [
"lib/Resource/ActionAuthenticationDenied.php",
"lib/Resource/ActionAuthenticationDeniedData.php",
Expand Down Expand Up @@ -118,13 +118,17 @@
"lib/Resource/CORSOriginResponse.php",
"lib/Resource/ChallengeAuthenticationFactor.php",
"lib/Resource/CheckAuthorization.php",
"lib/Resource/ClientApiToken.php",
"lib/Resource/ClientApiTokenResponse.php",
"lib/Resource/ConfigureDataIntegrationBody.php",
"lib/Resource/ConfirmEmailChange.php",
"lib/Resource/ConnectApplication.php",
"lib/Resource/ConnectApplicationM2M.php",
"lib/Resource/ConnectApplicationOAuth.php",
"lib/Resource/ConnectApplicationOAuthRedirectUris.php",
"lib/Resource/ConnectApplicationRedirectUri.php",
"lib/Resource/ConnectedAccount.php",
"lib/Resource/ConnectedAccountAuthMethod.php",
"lib/Resource/ConnectedAccountState.php",
"lib/Resource/Connection.php",
"lib/Resource/ConnectionActivated.php",
Expand Down Expand Up @@ -160,6 +164,7 @@
"lib/Resource/CreateDataKeyResponse.php",
"lib/Resource/CreateGroup.php",
"lib/Resource/CreateGroupMembership.php",
"lib/Resource/CreateGroupRoleAssignment.php",
"lib/Resource/CreateM2MApplication.php",
"lib/Resource/CreateMagicCodeAndReturn.php",
"lib/Resource/CreateOAuthApplication.php",
Expand All @@ -183,6 +188,10 @@
"lib/Resource/DataIntegrationAccessTokenResponseAccessToken.php",
"lib/Resource/DataIntegrationAccessTokenResponseError.php",
"lib/Resource/DataIntegrationAuthorizeUrlResponse.php",
"lib/Resource/DataIntegrationConfigurationListResponse.php",
"lib/Resource/DataIntegrationConfigurationResponse.php",
"lib/Resource/DataIntegrationCredentials.php",
"lib/Resource/DataIntegrationCredentialsCredentialsType.php",
"lib/Resource/DataIntegrationsGetDataIntegrationAuthorizeUrlRequest.php",
"lib/Resource/DataIntegrationsGetUserTokenRequest.php",
"lib/Resource/DataIntegrationsListResponse.php",
Expand All @@ -191,6 +200,7 @@
"lib/Resource/DataIntegrationsListResponseDataOwnership.php",
"lib/Resource/DecryptRequest.php",
"lib/Resource/DecryptResponse.php",
"lib/Resource/DeleteGroupRoleAssignmentsByCriteria.php",
"lib/Resource/DeleteObjectResponse.php",
"lib/Resource/DeviceAuthorizationResponse.php",
"lib/Resource/DeviceCodeSessionAuthenticateRequest.php",
Expand Down Expand Up @@ -292,6 +302,9 @@
"lib/Resource/GroupMemberAddedData.php",
"lib/Resource/GroupMemberRemoved.php",
"lib/Resource/GroupMemberRemovedData.php",
"lib/Resource/GroupRoleAssignment.php",
"lib/Resource/GroupRoleAssignmentList.php",
"lib/Resource/GroupRoleAssignmentResource.php",
"lib/Resource/GroupUpdated.php",
"lib/Resource/IntentOptions.php",
"lib/Resource/Invitation.php",
Expand Down Expand Up @@ -404,6 +417,8 @@
"lib/Resource/RefreshTokenSessionAuthenticateRequest.php",
"lib/Resource/RekeyRequest.php",
"lib/Resource/RemoveRole.php",
"lib/Resource/ReplaceGroupRoleAssignmentEntry.php",
"lib/Resource/ReplaceGroupRoleAssignments.php",
"lib/Resource/ResendUserInviteOptions.php",
"lib/Resource/ResetPasswordResponse.php",
"lib/Resource/RevokeSession.php",
Expand Down Expand Up @@ -521,6 +536,7 @@
"lib/Service/ApiKeys.php",
"lib/Service/AuditLogs.php",
"lib/Service/Authorization.php",
"lib/Service/ClientApi.php",
"lib/Service/Connect.php",
"lib/Service/DirectorySync.php",
"lib/Service/Events.php",
Expand All @@ -537,6 +553,7 @@
"lib/Service/PasswordHashed.php",
"lib/Service/PasswordPlaintext.php",
"lib/Service/Pipes.php",
"lib/Service/PipesProvider.php",
"lib/Service/Radar.php",
"lib/Service/ResourceTargetByExternalId.php",
"lib/Service/ResourceTargetById.php",
Expand Down Expand Up @@ -654,6 +671,9 @@
"tests/Fixtures/authorized_connect_application_list_data.json",
"tests/Fixtures/challenge_authentication_factor.json",
"tests/Fixtures/check_authorization.json",
"tests/Fixtures/client_api_token.json",
"tests/Fixtures/client_api_token_response.json",
"tests/Fixtures/configure_data_integration_body.json",
"tests/Fixtures/confirm_email_change.json",
"tests/Fixtures/connect_application.json",
"tests/Fixtures/connect_application_m2m.json",
Expand Down Expand Up @@ -688,6 +708,7 @@
"tests/Fixtures/create_data_key_response.json",
"tests/Fixtures/create_group.json",
"tests/Fixtures/create_group_membership.json",
"tests/Fixtures/create_group_role_assignment.json",
"tests/Fixtures/create_m2m_application.json",
"tests/Fixtures/create_magic_code_and_return.json",
"tests/Fixtures/create_oauth_application.json",
Expand All @@ -707,13 +728,17 @@
"tests/Fixtures/data_integration_access_token_response.json",
"tests/Fixtures/data_integration_access_token_response_access_token.json",
"tests/Fixtures/data_integration_authorize_url_response.json",
"tests/Fixtures/data_integration_configuration_list_response.json",
"tests/Fixtures/data_integration_configuration_response.json",
"tests/Fixtures/data_integration_credentials.json",
"tests/Fixtures/data_integrations_get_data_integration_authorize_url_request.json",
"tests/Fixtures/data_integrations_get_user_token_request.json",
"tests/Fixtures/data_integrations_list_response.json",
"tests/Fixtures/data_integrations_list_response_data.json",
"tests/Fixtures/data_integrations_list_response_data_connected_account.json",
"tests/Fixtures/decrypt_request.json",
"tests/Fixtures/decrypt_response.json",
"tests/Fixtures/delete_group_role_assignments_by_criteria.json",
"tests/Fixtures/delete_object_response.json",
"tests/Fixtures/device_authorization_response.json",
"tests/Fixtures/device_code_session_authenticate_request.json",
Expand Down Expand Up @@ -807,6 +832,8 @@
"tests/Fixtures/group_member_added_data.json",
"tests/Fixtures/group_member_removed.json",
"tests/Fixtures/group_member_removed_data.json",
"tests/Fixtures/group_role_assignment.json",
"tests/Fixtures/group_role_assignment_resource.json",
"tests/Fixtures/group_updated.json",
"tests/Fixtures/intent_options.json",
"tests/Fixtures/invitation.json",
Expand Down Expand Up @@ -835,6 +862,7 @@
"tests/Fixtures/list_event_schema.json",
"tests/Fixtures/list_flag.json",
"tests/Fixtures/list_group.json",
"tests/Fixtures/list_group_role_assignment.json",
"tests/Fixtures/list_metadata.json",
"tests/Fixtures/list_object_summary.json",
"tests/Fixtures/list_organization.json",
Expand Down Expand Up @@ -930,6 +958,8 @@
"tests/Fixtures/refresh_token_session_authenticate_request.json",
"tests/Fixtures/rekey_request.json",
"tests/Fixtures/remove_role.json",
"tests/Fixtures/replace_group_role_assignment_entry.json",
"tests/Fixtures/replace_group_role_assignments.json",
"tests/Fixtures/resend_user_invite_options.json",
"tests/Fixtures/reset_password_response.json",
"tests/Fixtures/revoke_session.json",
Expand Down Expand Up @@ -1033,6 +1063,7 @@
"tests/Service/ApiKeysTest.php",
"tests/Service/AuditLogsTest.php",
"tests/Service/AuthorizationTest.php",
"tests/Service/ClientApiTest.php",
"tests/Service/ConnectTest.php",
"tests/Service/DirectorySyncTest.php",
"tests/Service/EventsTest.php",
Expand All @@ -1042,6 +1073,7 @@
"tests/Service/OrganizationDomainsTest.php",
"tests/Service/OrganizationMembershipTest.php",
"tests/Service/OrganizationsTest.php",
"tests/Service/PipesProviderTest.php",
"tests/Service/PipesTest.php",
"tests/Service/RadarTest.php",
"tests/Service/SSOTest.php",
Expand Down Expand Up @@ -1075,6 +1107,30 @@
"sdkMethod": "completeOAuth2",
"service": "connect"
},
"GET /authorization/groups/{group_id}/role_assignments": {
"sdkMethod": "listGroupRoleAssignments",
"service": "authorization"
},
"POST /authorization/groups/{group_id}/role_assignments": {
"sdkMethod": "createGroupRoleAssignment",
"service": "authorization"
},
"PUT /authorization/groups/{group_id}/role_assignments": {
"sdkMethod": "updateGroupRoleAssignments",
"service": "authorization"
},
"DELETE /authorization/groups/{group_id}/role_assignments": {
"sdkMethod": "deleteGroupRoleAssignments",
"service": "authorization"
},
"GET /authorization/groups/{group_id}/role_assignments/{role_assignment_id}": {
"sdkMethod": "getGroupRoleAssignment",
"service": "authorization"
},
"DELETE /authorization/groups/{group_id}/role_assignments/{role_assignment_id}": {
"sdkMethod": "deleteGroupRoleAssignment",
"service": "authorization"
},
"POST /authorization/organization_memberships/{organization_membership_id}/check": {
"sdkMethod": "check",
"service": "authorization"
Expand Down Expand Up @@ -1231,6 +1287,10 @@
"sdkMethod": "deletePermission",
"service": "authorization"
},
"POST /client/token": {
"sdkMethod": "createToken",
"service": "clientApi"
},
"GET /connect/applications": {
"sdkMethod": "listApplications",
"service": "connect"
Expand Down Expand Up @@ -1279,8 +1339,8 @@
"sdkMethod": "authorizeDataIntegration",
"service": "pipes"
},
"POST /data-integrations/{slug}/token": {
"sdkMethod": "createDataIntegrationToken",
"POST /data-integrations/{provider}/token": {
"sdkMethod": "getAccessToken",
"service": "pipes"
},
"GET /directories": {
Expand Down Expand Up @@ -1399,6 +1459,14 @@
"sdkMethod": "createOrganizationApiKey",
"service": "apiKeys"
},
"GET /organizations/{organizationId}/data_integration_configurations": {
"sdkMethod": "listOrganizationDataIntegrationConfigurations",
"service": "pipesProvider"
},
"PUT /organizations/{organizationId}/data_integration_configurations/{slug}": {
"sdkMethod": "updateOrganizationDataIntegrationConfiguration",
"service": "pipesProvider"
},
"GET /organizations/{organizationId}/feature-flags": {
"sdkMethod": "listOrganizationFeatureFlags",
"service": "featureFlags"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@
public function __construct(
/** The client ID of the application. */
public string $clientId,
/** The client secret of the application. */
public string $clientSecret,
public string $grantType,
/** The authorization code received from the redirect. */
public string $code,
/** The client secret of the application. May be omitted by public clients that authenticate through other means, such as a PKCE `code_verifier`. */
public ?string $clientSecret = null,
/** The PKCE code verifier used to derive the code challenge passed to the authorization URL. */
public ?string $codeVerifier = null,
/** An invitation token to accept during authentication. */
Expand All @@ -35,9 +35,9 @@ public static function fromArray(array $data): self
{
return new self(
clientId: $data['client_id'],
clientSecret: $data['client_secret'],
grantType: $data['grant_type'] ?? 'authorization_code',
code: $data['code'],
clientSecret: $data['client_secret'] ?? null,
codeVerifier: $data['code_verifier'] ?? null,
invitationToken: $data['invitation_token'] ?? null,
ipAddress: $data['ip_address'] ?? null,
Expand All @@ -50,9 +50,9 @@ public function toArray(): array
{
return [
'client_id' => $this->clientId,
'client_secret' => $this->clientSecret,
'grant_type' => $this->grantType,
'code' => $this->code,
'client_secret' => $this->clientSecret,
'code_verifier' => $this->codeVerifier,
'invitation_token' => $this->invitationToken,
'ip_address' => $this->ipAddress,
Expand Down
36 changes: 36 additions & 0 deletions lib/Resource/ClientApiToken.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
<?php

declare(strict_types=1);

// This file is auto-generated by oagen. Do not edit.

namespace WorkOS\Resource;

readonly class ClientApiToken implements \JsonSerializable
{
use JsonSerializableTrait;

public function __construct(
/** The ID of the organization to scope the Client API token to. */
public string $organizationId,
/** The ID of the user to issue the Client API token for. */
public string $userId,
) {
}

public static function fromArray(array $data): self
{
return new self(
organizationId: $data['organization_id'],
userId: $data['user_id'],
);
}

public function toArray(): array
{
return [
'organization_id' => $this->organizationId,
'user_id' => $this->userId,
];
}
}
32 changes: 32 additions & 0 deletions lib/Resource/ClientApiTokenResponse.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
<?php

declare(strict_types=1);

// This file is auto-generated by oagen. Do not edit.

namespace WorkOS\Resource;

readonly class ClientApiTokenResponse implements \JsonSerializable
{
use JsonSerializableTrait;

public function __construct(
/** The Client API token. */
public string $token,
) {
}

public static function fromArray(array $data): self
{
return new self(
token: $data['token'],
);
}

public function toArray(): array
{
return [
'token' => $this->token,
];
}
}
Loading