@aignostics/sdk 3.3.0 → 3.4.0

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.
@@ -2,7 +2,7 @@ import * as msw_node from 'msw/node';
2
2
  import * as msw from 'msw';
3
3
  import * as fishery from 'fishery';
4
4
  import { Factory } from 'fishery';
5
- import { A as ApplicationReadShortResponse, a as ApplicationReadResponse, V as VersionReadResponse, R as RunReadResponse, c as RunCreationResponse, I as ItemResultReadResponse, f as ApplicationVersion, k as InputArtifact, o as OutputArtifact, p as OutputArtifactResultReadResponse } from '../api-CWohsFN3.cjs';
5
+ import { A as ApplicationReadShortResponse, a as ApplicationReadResponse, V as VersionReadResponse, R as RunReadResponse, c as RunCreationResponse, I as ItemResultReadResponse, f as ApplicationVersion, k as InputArtifact, p as OutputArtifact, q as OutputArtifactResultReadResponse } from '../api-DXw7V8bK.cjs';
6
6
  import 'axios';
7
7
 
8
8
  /**
@@ -2,7 +2,7 @@ import * as msw_node from 'msw/node';
2
2
  import * as msw from 'msw';
3
3
  import * as fishery from 'fishery';
4
4
  import { Factory } from 'fishery';
5
- import { A as ApplicationReadShortResponse, a as ApplicationReadResponse, V as VersionReadResponse, R as RunReadResponse, c as RunCreationResponse, I as ItemResultReadResponse, f as ApplicationVersion, k as InputArtifact, o as OutputArtifact, p as OutputArtifactResultReadResponse } from '../api-CWohsFN3.js';
5
+ import { A as ApplicationReadShortResponse, a as ApplicationReadResponse, V as VersionReadResponse, R as RunReadResponse, c as RunCreationResponse, I as ItemResultReadResponse, f as ApplicationVersion, k as InputArtifact, p as OutputArtifact, q as OutputArtifactResultReadResponse } from '../api-DXw7V8bK.js';
6
6
  import 'axios';
7
7
 
8
8
  /**
@@ -21511,7 +21511,8 @@ var itemResultFactory = Factory.define(() => ({
21511
21511
  message: f2.lorem.sentence(),
21512
21512
  terminated_at: f2.date.recent().toISOString(),
21513
21513
  output_artifacts: outputArtifactFactory.buildList(f2.number.int({ min: 0, max: 3 })),
21514
- error_code: null
21514
+ error_code: null,
21515
+ input_artifacts: []
21515
21516
  }));
21516
21517
  var runFactory = Factory.define(() => ({
21517
21518
  run_id: f2.string.uuid(),
@@ -21618,6 +21619,12 @@ var handlers = {
21618
21619
  }),
21619
21620
  http.get("*/v1/runs/:runId/items", () => {
21620
21621
  return HttpResponse.json(mockResponses.runResultsSuccess, { status: 200 });
21622
+ }),
21623
+ http.get("*/v1/runs/:runId/artifacts/:artifactId/file", () => {
21624
+ return new HttpResponse(new ArrayBuffer(8), {
21625
+ status: 200,
21626
+ headers: { "Content-Type": "application/octet-stream" }
21627
+ });
21621
21628
  })
21622
21629
  ],
21623
21630
  // Empty responses
@@ -21636,6 +21643,12 @@ var handlers = {
21636
21643
  }),
21637
21644
  http.get("*/v1/runs/:runId/items", () => {
21638
21645
  return HttpResponse.json([], { status: 200 });
21646
+ }),
21647
+ http.get("*/v1/runs/:runId/artifacts/:artifactId/file", () => {
21648
+ return new HttpResponse(new ArrayBuffer(0), {
21649
+ status: 200,
21650
+ headers: { "Content-Type": "application/octet-stream" }
21651
+ });
21639
21652
  })
21640
21653
  ],
21641
21654
  // Not found responses
@@ -21663,6 +21676,9 @@ var handlers = {
21663
21676
  }),
21664
21677
  http.get("*/v1/runs/:runId/items", () => {
21665
21678
  return HttpResponse.json(mockResponses.error, { status: 404 });
21679
+ }),
21680
+ http.get("*/v1/runs/:runId/artifacts/:artifactId/file", () => {
21681
+ return HttpResponse.json(mockResponses.error, { status: 404 });
21666
21682
  })
21667
21683
  ],
21668
21684
  validationError: [
@@ -21689,6 +21705,9 @@ var handlers = {
21689
21705
  }),
21690
21706
  http.get("*/v1/runs/:runId/items", () => {
21691
21707
  return HttpResponse.json(mockResponses.validationError, { status: 422 });
21708
+ }),
21709
+ http.get("*/v1/runs/:runId/artifacts/:artifactId/file", () => {
21710
+ return HttpResponse.json(mockResponses.validationError, { status: 422 });
21692
21711
  })
21693
21712
  ],
21694
21713
  internalServerError: [
@@ -21715,6 +21734,9 @@ var handlers = {
21715
21734
  }),
21716
21735
  http.get("*/v1/runs/:runId/items", () => {
21717
21736
  return HttpResponse.json(mockResponses.error, { status: 500 });
21737
+ }),
21738
+ http.get("*/v1/runs/:runId/artifacts/:artifactId/file", () => {
21739
+ return HttpResponse.json(mockResponses.error, { status: 500 });
21718
21740
  })
21719
21741
  ],
21720
21742
  // Network error (connection failure)
@@ -21742,6 +21764,9 @@ var handlers = {
21742
21764
  }),
21743
21765
  http.get("*/v1/runs/:runId/items", () => {
21744
21766
  return HttpResponse.error();
21767
+ }),
21768
+ http.get("*/v1/runs/:runId/artifacts/:artifactId/file", () => {
21769
+ return HttpResponse.error();
21745
21770
  })
21746
21771
  ]
21747
21772
  };