@usearazzo/runner 1.0.1-alpha.35 → 1.0.1-alpha.37

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/types/runner.d.ts CHANGED
@@ -10,7 +10,7 @@ import { OperationElement } from '@speclynx/apidom-ns-openapi-2';
10
10
  import { OperationElement as OperationElement_2 } from '@speclynx/apidom-ns-openapi-3-0';
11
11
  import { OperationElement as OperationElement_3 } from '@speclynx/apidom-ns-openapi-3-1';
12
12
  import { ParseResultElement } from '@usearazzo/parser';
13
- import type { PartialDeep } from 'type-fest';
13
+ import type { PartialOptions } from '@usearazzo/parser';
14
14
  import { PathItemElement } from '@speclynx/apidom-ns-openapi-2';
15
15
  import { PathItemElement as PathItemElement_2 } from '@speclynx/apidom-ns-openapi-3-0';
16
16
  import { PathItemElement as PathItemElement_3 } from '@speclynx/apidom-ns-openapi-3-1';
@@ -578,7 +578,7 @@ export declare class ArazzoWorkflowNormalizer {
578
578
  * Options for normalizing an Arazzo workflow.
579
579
  * @public
580
580
  */
581
- export declare type ArazzoWorkflowNormalizerOptions = PartialDeep<ApiDOMReferenceOptions>;
581
+ export declare type ArazzoWorkflowNormalizerOptions = PartialOptions<ApiDOMReferenceOptions>;
582
582
 
583
583
  /** @public */
584
584
  export declare class AssemblerError extends ArazzoRunnerError {
@@ -1105,7 +1105,7 @@ export declare abstract class DocumentRegistryProvider {
1105
1105
  * Options for a document registry provider.
1106
1106
  * @public
1107
1107
  */
1108
- export declare type DocumentRegistryProviderOptions = PartialDeep<ApiDOMReferenceOptions>;
1108
+ export declare type DocumentRegistryProviderOptions = PartialOptions<ApiDOMReferenceOptions>;
1109
1109
 
1110
1110
  /**
1111
1111
  * Carries a `reason`, one of the class's static reason fields.
@@ -1377,7 +1377,7 @@ export declare class OpenAPI2OperationNormalizer {
1377
1377
  * Options for normalizing an OpenAPI 2.0 operation.
1378
1378
  * @public
1379
1379
  */
1380
- export declare type OpenAPI2OperationNormalizerOptions = PartialDeep<ApiDOMReferenceOptions>;
1380
+ export declare type OpenAPI2OperationNormalizerOptions = PartialOptions<ApiDOMReferenceOptions>;
1381
1381
 
1382
1382
  /**
1383
1383
  * Assembles a standalone OpenAPI 3.0 document from a
@@ -1413,7 +1413,7 @@ export declare class OpenAPI30OperationNormalizer {
1413
1413
  * Options for normalizing an OpenAPI 3.0 operation.
1414
1414
  * @public
1415
1415
  */
1416
- export declare type OpenAPI30OperationNormalizerOptions = PartialDeep<ApiDOMReferenceOptions>;
1416
+ export declare type OpenAPI30OperationNormalizerOptions = PartialOptions<ApiDOMReferenceOptions>;
1417
1417
 
1418
1418
  /**
1419
1419
  * Assembles a standalone OpenAPI 3.1 document from a
@@ -1451,7 +1451,7 @@ export declare class OpenAPI31OperationNormalizer {
1451
1451
  * Options for normalizing an OpenAPI 3.1 operation.
1452
1452
  * @public
1453
1453
  */
1454
- export declare type OpenAPI31OperationNormalizerOptions = PartialDeep<ApiDOMReferenceOptions>;
1454
+ export declare type OpenAPI31OperationNormalizerOptions = PartialOptions<ApiDOMReferenceOptions>;
1455
1455
 
1456
1456
  /**
1457
1457
  * An OpenAPI document held by the document registry.
@@ -1681,7 +1681,8 @@ export declare type OpenAPIOperationExecuteOptionsBag = OpenAPIOperationExecuteO
1681
1681
  * sends it through the pluggable {@link HTTPClient}, and normalizes the raw
1682
1682
  * `Response` into the runner's response model. A non-2xx status is a valid
1683
1683
  * outcome (judged by a step's `successCriteria`) and is returned, never
1684
- * thrown; a transport failure is wrapped as a {@link ClientError}.
1684
+ * thrown; a transport failure, a response body that cannot be read in full
1685
+ * included, is wrapped as a {@link ClientError}.
1685
1686
  *
1686
1687
  * The executor is Arazzo-agnostic: it neither locates the operation (that is
1687
1688
  * the operation locator normalizer's concern) nor resolves parameters or
@@ -2926,6 +2927,12 @@ export declare type StepExecuteOptions = Record<string, unknown> | ((locator: Op
2926
2927
  export declare interface StepExecutionResult {
2927
2928
  readonly stepId: string;
2928
2929
  readonly response: OpenAPIOperationResponse;
2930
+ /**
2931
+ * Whether every one of the step's `successCriteria` was met. A step without
2932
+ * `successCriteria` asserts nothing, so it is successful on any received
2933
+ * response, whatever its status code; its `successCriteria` records are then
2934
+ * empty.
2935
+ */
2929
2936
  readonly successful: boolean;
2930
2937
  readonly outputs: Record<string, unknown>;
2931
2938
  /**
@@ -3156,6 +3163,16 @@ export declare interface StepRunRecord {
3156
3163
  * Where the step is written.
3157
3164
  */
3158
3165
  readonly location: DocumentLocation;
3166
+ /**
3167
+ * Whether the step succeeded in its last attempt: every one of its
3168
+ * `successCriteria` was met and, for a step calling a workflow, that
3169
+ * workflow's run did not settle as failed (see
3170
+ * {@link WorkflowExecutionResult.settledStatus}). A step without
3171
+ * `successCriteria` asserts nothing, so its records are empty: one calling an
3172
+ * operation is then successful on any received response, whatever its status
3173
+ * code, and one calling a workflow unless that workflow's run settled as
3174
+ * failed.
3175
+ */
3159
3176
  readonly successful: boolean;
3160
3177
  readonly action: SelectedAction | undefined;
3161
3178
  /**