Skip to content

Commit d5edf60

Browse files
committed
ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.587.1
1 parent 74cd827 commit d5edf60

File tree

87 files changed

+2204
-1248
lines changed

Some content is hidden

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

87 files changed

+2204
-1248
lines changed

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
/examples/node_modules
2+
.env
3+
.env.local
4+
.env.*.local
15
/mcp-server
26
/bin
37
/.eslintcache

.speakeasy/gen.lock

Lines changed: 19 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,19 @@ id: 9b971081-3d7e-4f4a-97fe-f59e6a07657d
33
management:
44
docChecksum: 0e2bfa208d98ff70011a9d69b38e42cb
55
docVersion: 0.1.0
6-
speakeasyVersion: 1.546.1
7-
generationVersion: 2.604.2
8-
releaseVersion: 0.2.1
9-
configChecksum: f7620bedecfe0806bd0d6319356aa63f
6+
speakeasyVersion: 1.587.1
7+
generationVersion: 2.662.0
8+
releaseVersion: 0.3.0
9+
configChecksum: f4d12066ed5c361309a9fcf7d417afdc
1010
repoURL: https://github.com/iris-networks/iris-sdk.git
1111
installationURL: https://github.com/iris-networks/iris-sdk
1212
features:
1313
typescript:
1414
acceptHeaders: 2.81.2
1515
additionalDependencies: 0.1.0
1616
additionalProperties: 0.1.1
17-
constsAndDefaults: 0.1.11
18-
core: 3.21.8
17+
constsAndDefaults: 0.1.12
18+
core: 3.21.15
1919
defaultEnabledRetries: 0.1.0
2020
devContainers: 2.90.0
2121
downloadStreams: 0.1.1
@@ -24,11 +24,11 @@ features:
2424
globalSecurityCallbacks: 0.1.0
2525
globalServerURLs: 2.82.5
2626
groups: 2.81.2
27-
mcpServer: 0.9.2
27+
mcpServer: 0.9.3
2828
nameOverrides: 2.81.2
2929
responseFormat: 0.2.3
3030
retries: 2.83.0
31-
sdkHooks: 0.2.0
31+
sdkHooks: 0.3.0
3232
uploadStreams: 0.1.0
3333
generatedFiles:
3434
- .devcontainer/README.md
@@ -139,6 +139,10 @@ generatedFiles:
139139
- docs/sdks/videoediting/README.md
140140
- docs/sdks/videos/README.md
141141
- eslint.config.mjs
142+
- examples/.env.template
143+
- examples/README.md
144+
- examples/configGet.example.ts
145+
- examples/package.json
142146
- jsr.json
143147
- package.json
144148
- src/core.ts
@@ -287,6 +291,8 @@ generatedFiles:
287291
- src/models/errors/apierror.ts
288292
- src/models/errors/httpclienterrors.ts
289293
- src/models/errors/index.ts
294+
- src/models/errors/irissdkerror.ts
295+
- src/models/errors/responsevalidationerror.ts
290296
- src/models/errors/sdkvalidationerror.ts
291297
- src/models/operations/approverequest.ts
292298
- src/models/operations/deletefile.ts
@@ -395,7 +401,7 @@ examples:
395401
speakeasy-default-get-current-session-video-data:
396402
responses:
397403
"200":
398-
application/json: {"success": true, "videoData": {"frames": ["data:image/png;base64,iVBORw0KGgo..."], "captions": [{"timestamp": 1651234567890, "conversation": {}, "frameIndex": 0}]}}
404+
application/json: {"success": true, "videoData": {"frames": ["base64string1", "base64string2"], "captions": [{"timestamp": 1651234567890, "conversation": {}, "frameIndex": 0}]}}
399405
getRecordingVideoData:
400406
speakeasy-default-get-recording-video-data:
401407
parameters:
@@ -461,7 +467,7 @@ examples:
461467
id: "<id>"
462468
frameIndex: 2353.28
463469
requestBody:
464-
application/json: {"text": "New caption text here"}
470+
application/json: {"caption": {}, "text": "New caption text here"}
465471
responses:
466472
"200":
467473
application/json: {"success": true}
@@ -481,7 +487,7 @@ examples:
481487
startExecution:
482488
speakeasy-default-start-execution:
483489
requestBody:
484-
application/json: {"recordingId": "a1b2c3d4-e5f6-7g8h-9i0j-k1l2m3n4o5p6", "actionDelay": 1500}
490+
application/json: {"recordingId": "a1b2c3d4-e5f6-7g8h-9i0j-k1l2m3n4o5p6", "actionDelay": 1500, "parameterOverrides": {}}
485491
responses:
486492
"201":
487493
application/json: {"executionId": "rpa_1695872345678", "recordingId": "a1b2c3d4-e5f6-7g8h-9i0j-k1l2m3n4o5p6", "status": "running", "currentActionIndex": 3, "totalActions": 15, "startedAt": 1695872345678, "operatorType": "browser", "errorMessage": "Failed to execute click action: Element not found"}
@@ -519,7 +525,7 @@ examples:
519525
uploadVideo:
520526
speakeasy-default-upload-video:
521527
requestBody:
522-
multipart/form-data: {"file": {"": "x-file: example.file"}}
528+
multipart/form-data: {"file": "x-file: example.file"}
523529
responses:
524530
"200":
525531
application/json: {"analysisId": "1682598432741", "originalVideo": "recording-1682598432741.mp4", "processedVideo": "processed-recording-1682598432741.mp4", "message": "Video uploaded and analyzed successfully"}
@@ -549,7 +555,7 @@ examples:
549555
uploadFile:
550556
speakeasy-default-upload-file:
551557
requestBody:
552-
multipart/form-data: {"file": {"": "x-file: example.file"}}
558+
multipart/form-data: {"file": "x-file: example.file"}
553559
responses:
554560
"200":
555561
application/json: {"fileId": "1682598432741", "fileName": "document-1682598432741.pdf", "filePath": "/Users/username/.iris/files/document-1682598432741.pdf", "fileUrl": "/api/files/download/document-1682598432741.pdf", "fileSize": 24560, "mimeType": "application/pdf", "message": "File uploaded successfully"}

.speakeasy/gen.yaml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ generation:
77
maintainOpenAPIOrder: true
88
usageSnippets:
99
optionalPropertyRendering: withExample
10+
sdkInitStyle: constructor
1011
useClassNamesForArrayFields: true
1112
fixes:
1213
nameResolutionDec2023: true
@@ -16,17 +17,23 @@ generation:
1617
securityFeb2025: false
1718
sharedErrorComponentsApr2025: false
1819
auth:
19-
oAuth2ClientCredentialsEnabled: true
20-
oAuth2PasswordEnabled: true
20+
oAuth2ClientCredentialsEnabled: false
21+
oAuth2PasswordEnabled: false
22+
tests:
23+
generateTests: true
24+
generateNewTests: false
25+
skipResponseBodyAssertions: false
2126
typescript:
22-
version: 0.2.1
27+
version: 0.3.0
2328
additionalDependencies:
2429
dependencies: {}
2530
devDependencies: {}
2631
peerDependencies: {}
2732
additionalPackageJSON: {}
2833
author: Speakeasy
34+
baseErrorName: IrisSDKError
2935
clientServerStatusCodesAsErrors: true
36+
constFieldsAlwaysOptional: true
3037
defaultErrorName: APIError
3138
enableCustomCodeRegions: false
3239
enableMCPServer: true
@@ -35,6 +42,7 @@ typescript:
3542
envVarPrefix: IRISSDK
3643
flattenGlobalSecurity: true
3744
flatteningOrder: parameters-first
45+
generateExamples: true
3846
imports:
3947
option: openapi
4048
paths:

.speakeasy/workflow.lock

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
1-
speakeasyVersion: 1.546.1
1+
speakeasyVersion: 1.587.1
22
sources:
33
Zenobia Intelligent Automation Platform API:
44
sourceNamespace: zenobia-intelligent-automation-platform-api
5-
sourceRevisionDigest: sha256:a15d5da61636ad8a483d17cd642ec2f118a0dfe06cf0fffc513162d3cbc5867e
6-
sourceBlobDigest: sha256:0c8d7bd4c35bf5b9ffa4817986135614df2bde763eaece2e154c49865c8ef6c5
5+
sourceRevisionDigest: sha256:5691d4cf2db75dd9126cd0d8b6c05c473d64a9d4cdf4750f63464098dad55d61
6+
sourceBlobDigest: sha256:ea2887935810946fbc2bda55b3cdf90fdcbf3a01cc47ae45ecf5556872db5cd8
77
tags:
88
- latest
9-
- speakeasy-sdk-regen-1747505453
9+
- speakeasy-sdk-regen-1752111786
1010
- 0.1.0
1111
targets:
1212
iris-sdk:
1313
source: Zenobia Intelligent Automation Platform API
1414
sourceNamespace: zenobia-intelligent-automation-platform-api
15-
sourceRevisionDigest: sha256:a15d5da61636ad8a483d17cd642ec2f118a0dfe06cf0fffc513162d3cbc5867e
16-
sourceBlobDigest: sha256:0c8d7bd4c35bf5b9ffa4817986135614df2bde763eaece2e154c49865c8ef6c5
15+
sourceRevisionDigest: sha256:5691d4cf2db75dd9126cd0d8b6c05c473d64a9d4cdf4750f63464098dad55d61
16+
sourceBlobDigest: sha256:ea2887935810946fbc2bda55b3cdf90fdcbf3a01cc47ae45ecf5556872db5cd8
1717
codeSamplesNamespace: zenobia-intelligent-automation-platform-api-typescript-code-samples
18-
codeSamplesRevisionDigest: sha256:9ce126259d3c32437284a0100c9f9c3a8bdfcd54a630d6642b752ccaa7f356ba
18+
codeSamplesRevisionDigest: sha256:b5c0efb7dd999be0d0ef0e9aa84431202142d5942b21cd5433b06e872147780a
1919
workflow:
2020
workflowVersion: 1.0.0
2121
speakeasyVersion: latest

FUNCTIONS.md

Lines changed: 5 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -21,36 +21,19 @@ specific category of applications.
2121
```typescript
2222
import { IrisSDKCore } from "iris-sdk/core.js";
2323
import { configGet } from "iris-sdk/funcs/configGet.js";
24-
import { SDKValidationError } from "iris-sdk/models/errors/sdkvalidationerror.js";
2524

2625
// Use `IrisSDKCore` for best tree-shaking performance.
2726
// You can create one instance of it to use across an application.
2827
const irisSDK = new IrisSDKCore();
2928

3029
async function run() {
3130
const res = await configGet(irisSDK);
32-
33-
switch (true) {
34-
case res.ok:
35-
// The success case will be handled outside of the switch block
36-
break;
37-
case res.error instanceof SDKValidationError:
38-
// Pretty-print validation errors.
39-
return console.log(res.error.pretty());
40-
case res.error instanceof Error:
41-
return console.log(res.error);
42-
default:
43-
// TypeScript's type checking will fail on the following line if the above
44-
// cases were not exhaustive.
45-
res.error satisfies never;
46-
throw new Error("Assertion failed: expected error checks to be exhaustive: " + res.error);
31+
if (res.ok) {
32+
const { value: result } = res;
33+
console.log(result);
34+
} else {
35+
console.log("configGet failed:", res.error);
4736
}
48-
49-
50-
const { value: result } = res;
51-
52-
// Handle the result
53-
console.log(result);
5437
}
5538

5639
run();

README.md

Lines changed: 35 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,6 @@ const irisSDK = new IrisSDK();
192192
async function run() {
193193
const result = await irisSDK.config.get();
194194

195-
// Handle the result
196195
console.log(result);
197196
}
198197

@@ -358,7 +357,6 @@ async function run() {
358357
file: await openAsBlob("example.file"),
359358
});
360359

361-
// Handle the result
362360
console.log(result);
363361
}
364362

@@ -392,7 +390,6 @@ async function run() {
392390
},
393391
});
394392

395-
// Handle the result
396393
console.log(result);
397394
}
398395

@@ -420,7 +417,6 @@ const irisSDK = new IrisSDK({
420417
async function run() {
421418
const result = await irisSDK.config.get();
422419

423-
// Handle the result
424420
console.log(result);
425421
}
426422

@@ -432,47 +428,34 @@ run();
432428
<!-- Start Error Handling [errors] -->
433429
## Error Handling
434430

435-
If the request fails due to, for example 4XX or 5XX status codes, it will throw a `APIError`.
431+
[`IrisSDKError`](./src/models/errors/irissdkerror.ts) is the base class for all HTTP error responses. It has the following properties:
436432

437-
| Error Type | Status Code | Content Type |
438-
| --------------- | ----------- | ------------ |
439-
| errors.APIError | 4XX, 5XX | \*/\* |
433+
| Property | Type | Description |
434+
| ------------------- | ---------- | ------------------------------------------------------ |
435+
| `error.message` | `string` | Error message |
436+
| `error.statusCode` | `number` | HTTP response status code eg `404` |
437+
| `error.headers` | `Headers` | HTTP response headers |
438+
| `error.body` | `string` | HTTP body. Can be empty string if no body is returned. |
439+
| `error.rawResponse` | `Response` | Raw HTTP response |
440440

441+
### Example
441442
```typescript
442443
import { IrisSDK } from "iris-sdk";
443-
import { SDKValidationError } from "iris-sdk/models/errors";
444+
import * as errors from "iris-sdk/models/errors";
444445

445446
const irisSDK = new IrisSDK();
446447

447448
async function run() {
448-
let result;
449449
try {
450-
result = await irisSDK.config.get();
450+
const result = await irisSDK.config.get();
451451

452-
// Handle the result
453452
console.log(result);
454-
} catch (err) {
455-
switch (true) {
456-
// The server response does not match the expected SDK schema
457-
case (err instanceof SDKValidationError):
458-
{
459-
// Pretty-print will provide a human-readable multi-line error message
460-
console.error(err.pretty());
461-
// Raw value may also be inspected
462-
console.error(err.rawValue);
463-
return;
464-
}
465-
apierror.js;
466-
// Server returned an error status code or an unknown content type
467-
case (err instanceof APIError): {
468-
console.error(err.statusCode);
469-
console.error(err.rawResponse.body);
470-
return;
471-
}
472-
default: {
473-
// Other errors such as network errors, see HTTPClientErrors for more details
474-
throw err;
475-
}
453+
} catch (error) {
454+
if (error instanceof errors.IrisSDKError) {
455+
console.log(error.message);
456+
console.log(error.statusCode);
457+
console.log(error.body);
458+
console.log(error.headers);
476459
}
477460
}
478461
}
@@ -481,17 +464,26 @@ run();
481464

482465
```
483466

484-
Validation errors can also occur when either method arguments or data returned from the server do not match the expected format. The `SDKValidationError` that is thrown as a result will capture the raw value that failed validation in an attribute called `rawValue`. Additionally, a `pretty()` method is available on this error that can be used to log a nicely formatted multi-line string since validation errors can list many issues and the plain error string may be difficult read when debugging.
467+
### Error Classes
468+
**Primary error:**
469+
* [`IrisSDKError`](./src/models/errors/irissdkerror.ts): The base class for HTTP error responses.
470+
471+
<details><summary>Less common errors (6)</summary>
472+
473+
<br />
485474

486-
In some rare cases, the SDK can fail to get a response from the server or even make the request due to unexpected circumstances such as network conditions. These types of errors are captured in the `models/errors/httpclienterrors.ts` module:
475+
**Network errors:**
476+
* [`ConnectionError`](./src/models/errors/httpclienterrors.ts): HTTP client was unable to make a request to a server.
477+
* [`RequestTimeoutError`](./src/models/errors/httpclienterrors.ts): HTTP request timed out due to an AbortSignal signal.
478+
* [`RequestAbortedError`](./src/models/errors/httpclienterrors.ts): HTTP request was aborted by the client.
479+
* [`InvalidRequestError`](./src/models/errors/httpclienterrors.ts): Any input used to create a request is invalid.
480+
* [`UnexpectedClientError`](./src/models/errors/httpclienterrors.ts): Unrecognised or unexpected error.
487481

488-
| HTTP Client Error | Description |
489-
| ---------------------------------------------------- | ---------------------------------------------------- |
490-
| RequestAbortedError | HTTP request was aborted by the client |
491-
| RequestTimeoutError | HTTP request timed out due to an AbortSignal signal |
492-
| ConnectionError | HTTP client was unable to make a request to a server |
493-
| InvalidRequestError | Any input used to create a request is invalid |
494-
| UnexpectedClientError | Unrecognised or unexpected error |
482+
483+
**Inherit from [`IrisSDKError`](./src/models/errors/irissdkerror.ts)**:
484+
* [`ResponseValidationError`](./src/models/errors/responsevalidationerror.ts): Type mismatch between the data returned from the server and the structure expected by the SDK. See `error.rawValue` for the raw value and `error.pretty()` for a nicely formatted multi-line string.
485+
486+
</details>
495487
<!-- End Error Handling [errors] -->
496488

497489
<!-- Start Server Selection [server] -->
@@ -510,7 +502,6 @@ const irisSDK = new IrisSDK({
510502
async function run() {
511503
const result = await irisSDK.config.get();
512504

513-
// Handle the result
514505
console.log(result);
515506
}
516507

RELEASES.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,12 @@ Based on:
1414
- OpenAPI Doc
1515
- Speakeasy CLI 1.546.1 (2.604.2) https://github.com/speakeasy-api/speakeasy
1616
### Generated
17-
- [typescript v0.2.1] .
17+
- [typescript v0.2.1] .
18+
19+
## 2025-07-24 01:46:37
20+
### Changes
21+
Based on:
22+
- OpenAPI Doc
23+
- Speakeasy CLI 1.587.1 (2.662.0) https://github.com/speakeasy-api/speakeasy
24+
### Generated
25+
- [typescript v0.3.0] .

USAGE.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ const irisSDK = new IrisSDK();
77
async function run() {
88
const result = await irisSDK.config.get();
99

10-
// Handle the result
1110
console.log(result);
1211
}
1312

docs/models/components/batchexecuterpadto.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import { BatchExecuteRpaDto } from "iris-sdk/models/components";
77

88
let value: BatchExecuteRpaDto = {
99
recordingId: "a1b2c3d4-e5f6-7g8h-9i0j-k1l2m3n4o5p6",
10+
actionDelay: 1500,
1011
parameterSets: [
1112
"{\"name\":\"Run 1\",\"parameterOverrides\":{\"2.action_inputs.content\":\"First search term\"}}",
1213
"{\"name\":\"Run 2\",\"parameterOverrides\":{\"2.action_inputs.content\":\"Second search term\"}}",

0 commit comments

Comments
 (0)