Skip to content

Commit b80ec28

Browse files
authored
Merge pull request #19 from StackOneHQ/speakeasy-sdk-regen-1730420735
chore: 🐝 Update SDK - Generate 0.22.1
2 parents 2987ef1 + 8fd70a7 commit b80ec28

260 files changed

Lines changed: 3230 additions & 2606 deletions

File tree

Some content is hidden

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

.speakeasy/gen.lock

Lines changed: 156 additions & 125 deletions
Large diffs are not rendered by default.

.speakeasy/gen.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,11 @@ generation:
1111
requestResponseComponentNamesFeb2024: true
1212
auth:
1313
oAuth2ClientCredentialsEnabled: false
14+
oAuth2PasswordEnabled: false
1415
php:
15-
version: 0.22.0
16+
version: 0.22.1
1617
clientServerStatusCodesAsErrors: true
18+
defaultErrorName: SDKException
1719
flattenGlobalSecurity: true
1820
imports:
1921
option: openapi

.speakeasy/workflow.lock

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
speakeasyVersion: 1.423.4
1+
speakeasyVersion: 1.436.0
22
sources:
33
hris:
44
sourceNamespace: hris
@@ -8,19 +8,19 @@ sources:
88
- latest
99
stackone-specs:
1010
sourceNamespace: stackone-specs
11-
sourceRevisionDigest: sha256:f712ad85275c623744cb4d41e0c5391faf8ea409ff89954aab05a446ca9d4d78
12-
sourceBlobDigest: sha256:065ca66231cf39b93b0003ff3cfcf5263a4449dfcb1324a8abd4c326bfb32b0d
11+
sourceRevisionDigest: sha256:3273f5594433a28eb3c14fbb03f5c502aaada78e853999c4ba94989ebf0864af
12+
sourceBlobDigest: sha256:6f9eee955482b892194c6089154256faacd7072a448fcb28b42575ff3f4c6334
1313
tags:
1414
- latest
1515
- main
1616
targets:
1717
stack-one:
1818
source: stackone-specs
1919
sourceNamespace: stackone-specs
20-
sourceRevisionDigest: sha256:f712ad85275c623744cb4d41e0c5391faf8ea409ff89954aab05a446ca9d4d78
21-
sourceBlobDigest: sha256:065ca66231cf39b93b0003ff3cfcf5263a4449dfcb1324a8abd4c326bfb32b0d
20+
sourceRevisionDigest: sha256:3273f5594433a28eb3c14fbb03f5c502aaada78e853999c4ba94989ebf0864af
21+
sourceBlobDigest: sha256:6f9eee955482b892194c6089154256faacd7072a448fcb28b42575ff3f4c6334
2222
codeSamplesNamespace: stackone-specs-code-samples
23-
codeSamplesRevisionDigest: sha256:13e7ffb502bef8c264e4fc0de321a440060fca022e49acc211192543ea7a2eca
23+
codeSamplesRevisionDigest: sha256:4c27cbf9ee93d9e82a1f5d2decab5fd214d516c8bb4b268074d4acbae2043edb
2424
workflow:
2525
workflowVersion: 1.0.0
2626
speakeasyVersion: latest

README.md

Lines changed: 46 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -229,17 +229,16 @@ if ($response->employeesPaginated !== null) {
229229

230230
### [lms](docs/sdks/lms/README.md)
231231

232+
* [batchUpsertCourse](docs/sdks/lms/README.md#batchupsertcourse) - Batch Upsert Course
232233
* [listCourses](docs/sdks/lms/README.md#listcourses) - List Courses
234+
* [upsertCourse](docs/sdks/lms/README.md#upsertcourse) - Upsert Course
233235
* [getCourse](docs/sdks/lms/README.md#getcourse) - Get Course
234236
* [listUserAssignments](docs/sdks/lms/README.md#listuserassignments) - List User Assignments
235237
* [getUserAssignment](docs/sdks/lms/README.md#getuserassignment) - Get User Assignment
236238
* [batchUpsertContent](docs/sdks/lms/README.md#batchupsertcontent) - Batch Upsert Content
237239
* [listContent](docs/sdks/lms/README.md#listcontent) - List Content
238240
* [upsertContent](docs/sdks/lms/README.md#upsertcontent) - Upsert Content
239-
* [createContent](docs/sdks/lms/README.md#createcontent) - Create Content
240241
* [getContent](docs/sdks/lms/README.md#getcontent) - Get Content
241-
* [deleteContent](docs/sdks/lms/README.md#deletecontent) - Delete Content
242-
* [updateContent](docs/sdks/lms/README.md#updatecontent) - Update Content
243242
* [listUserCompletions](docs/sdks/lms/README.md#listusercompletions) - List User Completions
244243
* [createUserCompletion](docs/sdks/lms/README.md#createusercompletion) - Create User Completion
245244
* [getUserCompletion](docs/sdks/lms/README.md#getusercompletion) - Get User Completion
@@ -253,6 +252,8 @@ if ($response->employeesPaginated !== null) {
253252
* [listSkills](docs/sdks/lms/README.md#listskills) - List Skills
254253
* [listAssignments](docs/sdks/lms/README.md#listassignments) - List Assignments
255254
* [getAssignment](docs/sdks/lms/README.md#getassignment) - Get Assignment
255+
* [createCollection](docs/sdks/lms/README.md#createcollection) - Create Collection
256+
* [updateCollection](docs/sdks/lms/README.md#updatecollection) - Update Collection
256257

257258
### [marketing](docs/sdks/marketing/README.md)
258259

@@ -311,9 +312,9 @@ By default an API error will raise a `Errors\SDKException` exception, which has
311312

312313
When custom error responses are specified for an operation, the SDK may also throw their associated exception. You can refer to respective *Errors* tables in SDK docs for more details on possible exception types for each operation. For example, the `createConnectSession` method throws the following exceptions:
313314

314-
| Error Type | Status Code | Content Type |
315-
| ------------------- | ------------------- | ------------------- |
316-
| Errors\SDKException | 4XX, 5XX | \*/\* |
315+
| Error Type | Status Code | Content Type |
316+
| ------------------- | ----------- | ------------ |
317+
| Errors\SDKException | 4XX, 5XX | \*/\* |
317318

318319
### Example
319320

@@ -339,12 +340,13 @@ try {
339340
categories: [
340341
Components\Categories::Ats,
341342
Components\Categories::Hris,
342-
Components\Categories::HrisLegacy,
343+
Components\Categories::Crm,
343344
Components\Categories::Crm,
344345
Components\Categories::Iam,
345346
Components\Categories::Marketing,
346347
Components\Categories::Lms,
347348
Components\Categories::Ats,
349+
Components\Categories::Lms,
348350
],
349351
);
350352

@@ -365,22 +367,50 @@ try {
365367
<!-- Start Server Selection [server] -->
366368
## Server Selection
367369

368-
## Server Selection
369-
370-
### Select Server by Index
370+
### Override Server URL Per-Client
371371

372-
You can override the default server globally by passing a server index to the `server_idx: int` optional parameter when initializing the SDK client instance. The selected server will then be used as the default on the operations that use it. This table lists the indexes associated with the available servers:
372+
The default server can also be overridden globally using the `setServerUrl(string $serverUrl)` builder method when initializing the SDK client instance. For example:
373+
```php
374+
declare(strict_types=1);
373375

374-
| # | Server | Variables |
375-
| - | ------ | --------- |
376-
| 0 | `https://api.stackone.com` | None |
376+
require 'vendor/autoload.php';
377377

378+
use StackOne\client;
379+
use StackOne\client\Models\Components;
378380

381+
$security = new Components\Security(
382+
username: '',
383+
password: '',
384+
);
379385

386+
$sdk = client\StackOne::builder()
387+
->setServerURL("https://api.stackone.com")
388+
->setSecurity($security)->build();
389+
390+
$request = new Components\ConnectSessionCreate(
391+
originOwnerId: '<id>',
392+
originOwnerName: '<value>',
393+
categories: [
394+
Components\Categories::Ats,
395+
Components\Categories::Hris,
396+
Components\Categories::Crm,
397+
Components\Categories::Crm,
398+
Components\Categories::Iam,
399+
Components\Categories::Marketing,
400+
Components\Categories::Lms,
401+
Components\Categories::Ats,
402+
Components\Categories::Lms,
403+
],
404+
);
380405

381-
### Override Server URL Per-Client
406+
$response = $sdk->connectSessions->createConnectSession(
407+
request: $request
408+
);
382409

383-
The default server can also be overridden globally by passing a URL to the `server_url: str` optional parameter when initializing the SDK client instance. For example:
410+
if ($response->connectSessionToken !== null) {
411+
// handle response
412+
}
413+
```
384414
<!-- End Server Selection [server] -->
385415

386416
<!-- Placeholder for Future Speakeasy SDK Sections -->

RELEASES.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,4 +118,14 @@ Based on:
118118
### Generated
119119
- [php v0.22.0] .
120120
### Releases
121-
- [Composer v0.22.0] https://packagist.org/packages/stackone/client-sdk#v0.22.0 - .
121+
- [Composer v0.22.0] https://packagist.org/packages/stackone/client-sdk#v0.22.0 - .
122+
123+
## 2024-11-11 00:23:24
124+
### Changes
125+
Based on:
126+
- OpenAPI Doc
127+
- Speakeasy CLI 1.436.0 (2.455.2) https://github.com/speakeasy-api/speakeasy
128+
### Generated
129+
- [php v0.22.1] .
130+
### Releases
131+
- [Composer v0.22.1] https://packagist.org/packages/stackone/client-sdk#v0.22.1 - .

0 commit comments

Comments
 (0)