You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add Organization Feature Flags & Vault Support (#299)
* Added Organization Feature Flags functionality in Organizations by introducing the `listOrganizationFeatureFlags` method.
Added tests to validate organization feature flags.
Resolved a deprecated notice in the OrganizationsTest to ensure compatibility with newer PHP versions.
Implemented support for reading Vault items.
Expanded the test suite to encompass Vault-related functionalities.
* Added patch with pagination and other changes from @nicknisi
This brings it into alignment with the Node SDK
Copy file name to clipboardExpand all lines: lib/Organizations.php
+45Lines changed: 45 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -250,4 +250,49 @@ public function listOrganizationRoles($organizationId)
250
250
251
251
return [$roles];
252
252
}
253
+
254
+
/**
255
+
* List feature flags for an organization.
256
+
*
257
+
* @param string $organizationId WorkOS organization ID to fetch feature flags for
258
+
* @param int $limit Maximum number of records to return
259
+
* @param null|string $before FeatureFlag ID to look before
260
+
* @param null|string $after FeatureFlag ID to look after
261
+
* @param Resource\Order $order The Order in which to paginate records
262
+
*
263
+
* @throws Exception\WorkOSException
264
+
*
265
+
* @return array{?string, ?string, Resource\FeatureFlag[]} An array containing the FeatureFlag ID to use as before and after cursor, and an array of FeatureFlag instances
* @param int $limit Maximum number of records to return
36
+
* @param null|string $before Vault Object ID to look before
37
+
* @param null|string $after Vault Object ID to look after
38
+
* @param Resource\Order $order The Order in which to paginate records
39
+
*
40
+
* @return array{?string, ?string, Resource\VaultObject[]} An array containing the Vault Object ID to use as before and after cursor, and an array of VaultObject instances
0 commit comments