@planqk/planqk-api-sdk 1.9.2 → 1.9.4

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.
Files changed (167) hide show
  1. package/README-node.md +17 -0
  2. package/README-python.md +17 -0
  3. package/README.md +66 -6
  4. package/package.json +1 -1
  5. package/planqk/api/_version.py +1 -1
  6. package/pyproject.toml +1 -1
  7. package/requirements.txt +264 -199
  8. package/uv.lock +774 -467
  9. package/.gitlab-ci.yml +0 -110
  10. package/dist/index.d.ts +0 -1
  11. package/dist/index.js +0 -17
  12. package/dist/sdk/Client.d.ts +0 -44
  13. package/dist/sdk/Client.js +0 -71
  14. package/dist/sdk/api/errors/BadRequestError.d.ts +0 -8
  15. package/dist/sdk/api/errors/BadRequestError.js +0 -52
  16. package/dist/sdk/api/errors/ForbiddenError.d.ts +0 -8
  17. package/dist/sdk/api/errors/ForbiddenError.js +0 -52
  18. package/dist/sdk/api/errors/InternalServerError.d.ts +0 -8
  19. package/dist/sdk/api/errors/InternalServerError.js +0 -52
  20. package/dist/sdk/api/errors/NotFoundError.d.ts +0 -8
  21. package/dist/sdk/api/errors/NotFoundError.js +0 -52
  22. package/dist/sdk/api/errors/UnauthorizedError.d.ts +0 -8
  23. package/dist/sdk/api/errors/UnauthorizedError.js +0 -52
  24. package/dist/sdk/api/errors/index.d.ts +0 -5
  25. package/dist/sdk/api/errors/index.js +0 -21
  26. package/dist/sdk/api/index.d.ts +0 -3
  27. package/dist/sdk/api/index.js +0 -19
  28. package/dist/sdk/api/resources/dataPools/client/Client.d.ts +0 -187
  29. package/dist/sdk/api/resources/dataPools/client/Client.js +0 -722
  30. package/dist/sdk/api/resources/dataPools/client/index.d.ts +0 -2
  31. package/dist/sdk/api/resources/dataPools/client/index.js +0 -17
  32. package/dist/sdk/api/resources/dataPools/client/requests/AddDataPoolFileRequest.d.ts +0 -14
  33. package/dist/sdk/api/resources/dataPools/client/requests/AddDataPoolFileRequest.js +0 -5
  34. package/dist/sdk/api/resources/dataPools/client/requests/CreateDataPoolRequest.d.ts +0 -11
  35. package/dist/sdk/api/resources/dataPools/client/requests/CreateDataPoolRequest.js +0 -5
  36. package/dist/sdk/api/resources/dataPools/client/requests/UpdateDataPoolRequest.d.ts +0 -15
  37. package/dist/sdk/api/resources/dataPools/client/requests/UpdateDataPoolRequest.js +0 -5
  38. package/dist/sdk/api/resources/dataPools/client/requests/index.d.ts +0 -3
  39. package/dist/sdk/api/resources/dataPools/client/requests/index.js +0 -2
  40. package/dist/sdk/api/resources/dataPools/index.d.ts +0 -1
  41. package/dist/sdk/api/resources/dataPools/index.js +0 -17
  42. package/dist/sdk/api/resources/index.d.ts +0 -5
  43. package/dist/sdk/api/resources/index.js +0 -44
  44. package/dist/sdk/api/resources/serviceExecutions/client/Client.d.ts +0 -90
  45. package/dist/sdk/api/resources/serviceExecutions/client/Client.js +0 -271
  46. package/dist/sdk/api/resources/serviceExecutions/client/index.d.ts +0 -1
  47. package/dist/sdk/api/resources/serviceExecutions/client/index.js +0 -2
  48. package/dist/sdk/api/resources/serviceExecutions/index.d.ts +0 -1
  49. package/dist/sdk/api/resources/serviceExecutions/index.js +0 -17
  50. package/dist/sdk/api/resources/serviceJobs/client/Client.d.ts +0 -138
  51. package/dist/sdk/api/resources/serviceJobs/client/Client.js +0 -489
  52. package/dist/sdk/api/resources/serviceJobs/client/index.d.ts +0 -2
  53. package/dist/sdk/api/resources/serviceJobs/client/index.js +0 -17
  54. package/dist/sdk/api/resources/serviceJobs/client/requests/CreateServiceJobRequest.d.ts +0 -15
  55. package/dist/sdk/api/resources/serviceJobs/client/requests/CreateServiceJobRequest.js +0 -5
  56. package/dist/sdk/api/resources/serviceJobs/client/requests/index.d.ts +0 -1
  57. package/dist/sdk/api/resources/serviceJobs/client/requests/index.js +0 -2
  58. package/dist/sdk/api/resources/serviceJobs/index.d.ts +0 -1
  59. package/dist/sdk/api/resources/serviceJobs/index.js +0 -17
  60. package/dist/sdk/api/types/ActivityInstance.d.ts +0 -20
  61. package/dist/sdk/api/types/ActivityInstance.js +0 -14
  62. package/dist/sdk/api/types/DataPoolDto.d.ts +0 -28
  63. package/dist/sdk/api/types/DataPoolDto.js +0 -14
  64. package/dist/sdk/api/types/DataPoolFileDto.d.ts +0 -19
  65. package/dist/sdk/api/types/DataPoolFileDto.js +0 -5
  66. package/dist/sdk/api/types/LogEntry.d.ts +0 -24
  67. package/dist/sdk/api/types/LogEntry.js +0 -16
  68. package/dist/sdk/api/types/MetricDataPoint.d.ts +0 -12
  69. package/dist/sdk/api/types/MetricDataPoint.js +0 -5
  70. package/dist/sdk/api/types/OauthScope.d.ts +0 -9
  71. package/dist/sdk/api/types/OauthScope.js +0 -9
  72. package/dist/sdk/api/types/ServiceExecutionDto.d.ts +0 -21
  73. package/dist/sdk/api/types/ServiceExecutionDto.js +0 -17
  74. package/dist/sdk/api/types/ServiceExecutionLogs.d.ts +0 -5
  75. package/dist/sdk/api/types/ServiceExecutionLogs.js +0 -5
  76. package/dist/sdk/api/types/ServiceExecutionMetrics.d.ts +0 -23
  77. package/dist/sdk/api/types/ServiceExecutionMetrics.js +0 -5
  78. package/dist/sdk/api/types/ServiceJobDto.d.ts +0 -46
  79. package/dist/sdk/api/types/ServiceJobDto.js +0 -22
  80. package/dist/sdk/api/types/VariableInstance.d.ts +0 -9
  81. package/dist/sdk/api/types/VariableInstance.js +0 -5
  82. package/dist/sdk/api/types/WorkflowInstance.d.ts +0 -23
  83. package/dist/sdk/api/types/WorkflowInstance.js +0 -17
  84. package/dist/sdk/api/types/WorkflowServiceExecutionDto.d.ts +0 -8
  85. package/dist/sdk/api/types/WorkflowServiceExecutionDto.js +0 -5
  86. package/dist/sdk/api/types/index.d.ts +0 -13
  87. package/dist/sdk/api/types/index.js +0 -29
  88. package/dist/sdk/core/exports.d.ts +0 -1
  89. package/dist/sdk/core/exports.js +0 -17
  90. package/dist/sdk/core/fetcher/APIResponse.d.ts +0 -20
  91. package/dist/sdk/core/fetcher/APIResponse.js +0 -2
  92. package/dist/sdk/core/fetcher/BinaryResponse.d.ts +0 -20
  93. package/dist/sdk/core/fetcher/BinaryResponse.js +0 -17
  94. package/dist/sdk/core/fetcher/Fetcher.d.ts +0 -40
  95. package/dist/sdk/core/fetcher/Fetcher.js +0 -105
  96. package/dist/sdk/core/fetcher/Headers.d.ts +0 -2
  97. package/dist/sdk/core/fetcher/Headers.js +0 -85
  98. package/dist/sdk/core/fetcher/HttpResponsePromise.d.ts +0 -58
  99. package/dist/sdk/core/fetcher/HttpResponsePromise.js +0 -94
  100. package/dist/sdk/core/fetcher/RawResponse.d.ts +0 -29
  101. package/dist/sdk/core/fetcher/RawResponse.js +0 -44
  102. package/dist/sdk/core/fetcher/ResponseWithBody.d.ts +0 -4
  103. package/dist/sdk/core/fetcher/ResponseWithBody.js +0 -6
  104. package/dist/sdk/core/fetcher/Supplier.d.ts +0 -4
  105. package/dist/sdk/core/fetcher/Supplier.js +0 -13
  106. package/dist/sdk/core/fetcher/createRequestUrl.d.ts +0 -1
  107. package/dist/sdk/core/fetcher/createRequestUrl.js +0 -8
  108. package/dist/sdk/core/fetcher/getErrorResponseBody.d.ts +0 -1
  109. package/dist/sdk/core/fetcher/getErrorResponseBody.js +0 -32
  110. package/dist/sdk/core/fetcher/getFetchFn.d.ts +0 -1
  111. package/dist/sdk/core/fetcher/getFetchFn.js +0 -6
  112. package/dist/sdk/core/fetcher/getHeader.d.ts +0 -1
  113. package/dist/sdk/core/fetcher/getHeader.js +0 -11
  114. package/dist/sdk/core/fetcher/getRequestBody.d.ts +0 -7
  115. package/dist/sdk/core/fetcher/getRequestBody.js +0 -12
  116. package/dist/sdk/core/fetcher/getResponseBody.d.ts +0 -1
  117. package/dist/sdk/core/fetcher/getResponseBody.js +0 -44
  118. package/dist/sdk/core/fetcher/index.d.ts +0 -9
  119. package/dist/sdk/core/fetcher/index.js +0 -15
  120. package/dist/sdk/core/fetcher/makeRequest.d.ts +0 -1
  121. package/dist/sdk/core/fetcher/makeRequest.js +0 -33
  122. package/dist/sdk/core/fetcher/requestWithRetries.d.ts +0 -1
  123. package/dist/sdk/core/fetcher/requestWithRetries.js +0 -29
  124. package/dist/sdk/core/fetcher/signals.d.ts +0 -11
  125. package/dist/sdk/core/fetcher/signals.js +0 -36
  126. package/dist/sdk/core/file/exports.d.ts +0 -1
  127. package/dist/sdk/core/file/exports.js +0 -2
  128. package/dist/sdk/core/file/file.d.ts +0 -5
  129. package/dist/sdk/core/file/file.js +0 -185
  130. package/dist/sdk/core/file/index.d.ts +0 -2
  131. package/dist/sdk/core/file/index.js +0 -18
  132. package/dist/sdk/core/file/types.d.ts +0 -66
  133. package/dist/sdk/core/file/types.js +0 -2
  134. package/dist/sdk/core/form-data-utils/FormDataWrapper.d.ts +0 -16
  135. package/dist/sdk/core/form-data-utils/FormDataWrapper.js +0 -175
  136. package/dist/sdk/core/form-data-utils/encodeAsFormParameter.d.ts +0 -1
  137. package/dist/sdk/core/form-data-utils/encodeAsFormParameter.js +0 -12
  138. package/dist/sdk/core/form-data-utils/index.d.ts +0 -2
  139. package/dist/sdk/core/form-data-utils/index.js +0 -20
  140. package/dist/sdk/core/headers.d.ts +0 -3
  141. package/dist/sdk/core/headers.js +0 -29
  142. package/dist/sdk/core/index.d.ts +0 -5
  143. package/dist/sdk/core/index.js +0 -44
  144. package/dist/sdk/core/json.d.ts +0 -15
  145. package/dist/sdk/core/json.js +0 -24
  146. package/dist/sdk/core/runtime/index.d.ts +0 -1
  147. package/dist/sdk/core/runtime/index.js +0 -5
  148. package/dist/sdk/core/runtime/runtime.d.ts +0 -9
  149. package/dist/sdk/core/runtime/runtime.js +0 -101
  150. package/dist/sdk/core/url/index.d.ts +0 -2
  151. package/dist/sdk/core/url/index.js +0 -7
  152. package/dist/sdk/core/url/join.d.ts +0 -1
  153. package/dist/sdk/core/url/join.js +0 -69
  154. package/dist/sdk/core/url/qs.d.ts +0 -6
  155. package/dist/sdk/core/url/qs.js +0 -67
  156. package/dist/sdk/environments.d.ts +0 -7
  157. package/dist/sdk/environments.js +0 -9
  158. package/dist/sdk/errors/PlanqkApiError.d.ts +0 -15
  159. package/dist/sdk/errors/PlanqkApiError.js +0 -33
  160. package/dist/sdk/errors/PlanqkApiTimeoutError.d.ts +0 -6
  161. package/dist/sdk/errors/PlanqkApiTimeoutError.js +0 -13
  162. package/dist/sdk/errors/index.d.ts +0 -2
  163. package/dist/sdk/errors/index.js +0 -7
  164. package/dist/sdk/exports.d.ts +0 -1
  165. package/dist/sdk/exports.js +0 -17
  166. package/dist/sdk/index.d.ts +0 -5
  167. package/dist/sdk/index.js +0 -48
@@ -1 +0,0 @@
1
- export * from "./client/index.js";
@@ -1,17 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./client/index.js"), exports);
@@ -1,20 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- export interface ActivityInstance {
5
- id?: string;
6
- modelId?: string;
7
- name?: string;
8
- type?: string;
9
- startTime?: string;
10
- endTime?: string;
11
- state?: ActivityInstance.State;
12
- }
13
- export declare namespace ActivityInstance {
14
- type State = "PENDING" | "RUNNING" | "COMPLETED";
15
- const State: {
16
- readonly Pending: "PENDING";
17
- readonly Running: "RUNNING";
18
- readonly Completed: "COMPLETED";
19
- };
20
- }
@@ -1,14 +0,0 @@
1
- "use strict";
2
- /**
3
- * This file was auto-generated by Fern from our API Definition.
4
- */
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.ActivityInstance = void 0;
7
- var ActivityInstance;
8
- (function (ActivityInstance) {
9
- ActivityInstance.State = {
10
- Pending: "PENDING",
11
- Running: "RUNNING",
12
- Completed: "COMPLETED",
13
- };
14
- })(ActivityInstance || (exports.ActivityInstance = ActivityInstance = {}));
@@ -1,28 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- export interface DataPoolDto {
5
- /** The access permission role for this entity of the current user */
6
- currentUserPermission?: DataPoolDto.CurrentUserPermission;
7
- /** Unique identifier of the data pool. */
8
- id?: string;
9
- /** Name of the data pool. */
10
- name?: string;
11
- /** Short description of the data pool. */
12
- shortDescription?: string;
13
- /** Detailed description of the data pool. */
14
- description?: string;
15
- /** Timestamp when the data pool was created. */
16
- createdAt?: string;
17
- }
18
- export declare namespace DataPoolDto {
19
- /**
20
- * The access permission role for this entity of the current user
21
- */
22
- type CurrentUserPermission = "VIEWER" | "MAINTAINER" | "OWNER";
23
- const CurrentUserPermission: {
24
- readonly Viewer: "VIEWER";
25
- readonly Maintainer: "MAINTAINER";
26
- readonly Owner: "OWNER";
27
- };
28
- }
@@ -1,14 +0,0 @@
1
- "use strict";
2
- /**
3
- * This file was auto-generated by Fern from our API Definition.
4
- */
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.DataPoolDto = void 0;
7
- var DataPoolDto;
8
- (function (DataPoolDto) {
9
- DataPoolDto.CurrentUserPermission = {
10
- Viewer: "VIEWER",
11
- Maintainer: "MAINTAINER",
12
- Owner: "OWNER",
13
- };
14
- })(DataPoolDto || (exports.DataPoolDto = DataPoolDto = {}));
@@ -1,19 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- export interface DataPoolFileDto {
5
- /** Unique identifier of the data pool file. */
6
- id?: string;
7
- /** Unique identifier of the data pool. */
8
- dataPoolId?: string;
9
- /** The name of the file. */
10
- name?: string;
11
- /** The full path of the file in the data pool. */
12
- fullPath?: string;
13
- /** The content type of the file. */
14
- contentType?: string;
15
- /** The size of the file in bytes. */
16
- contentLength?: number;
17
- /** Timestamp when the file was created. */
18
- createdAt?: string;
19
- }
@@ -1,5 +0,0 @@
1
- "use strict";
2
- /**
3
- * This file was auto-generated by Fern from our API Definition.
4
- */
5
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,24 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- export interface LogEntry {
5
- /** Log message content. */
6
- message?: string;
7
- /** Severity of the log entry. */
8
- severity?: LogEntry.Severity;
9
- /** Timestamp when the entry was logged. */
10
- timestamp?: string;
11
- }
12
- export declare namespace LogEntry {
13
- /**
14
- * Severity of the log entry.
15
- */
16
- type Severity = "DEBUG" | "NOTICE" | "INFO" | "WARNING" | "ERROR";
17
- const Severity: {
18
- readonly Debug: "DEBUG";
19
- readonly Notice: "NOTICE";
20
- readonly Info: "INFO";
21
- readonly Warning: "WARNING";
22
- readonly Error: "ERROR";
23
- };
24
- }
@@ -1,16 +0,0 @@
1
- "use strict";
2
- /**
3
- * This file was auto-generated by Fern from our API Definition.
4
- */
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.LogEntry = void 0;
7
- var LogEntry;
8
- (function (LogEntry) {
9
- LogEntry.Severity = {
10
- Debug: "DEBUG",
11
- Notice: "NOTICE",
12
- Info: "INFO",
13
- Warning: "WARNING",
14
- Error: "ERROR",
15
- };
16
- })(LogEntry || (exports.LogEntry = LogEntry = {}));
@@ -1,12 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- /**
5
- * A single data point in a time series metric
6
- */
7
- export interface MetricDataPoint {
8
- /** Timestamp of the data point in milliseconds since Unix epoch (UTC) */
9
- timestamp?: number;
10
- /** The metric value */
11
- value?: number;
12
- }
@@ -1,5 +0,0 @@
1
- "use strict";
2
- /**
3
- * This file was auto-generated by Fern from our API Definition.
4
- */
5
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,9 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- export type OauthScope =
5
- /** */
6
- "profile";
7
- export declare const OauthScope: {
8
- readonly Profile: "profile";
9
- };
@@ -1,9 +0,0 @@
1
- "use strict";
2
- /**
3
- * This file was auto-generated by Fern from our API Definition.
4
- */
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.OauthScope = void 0;
7
- exports.OauthScope = {
8
- Profile: "profile",
9
- };
@@ -1,21 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- export interface ServiceExecutionDto {
5
- id?: string;
6
- createdAt?: string;
7
- startedAt?: string;
8
- endedAt?: string;
9
- status?: ServiceExecutionDto.Status;
10
- }
11
- export declare namespace ServiceExecutionDto {
12
- type Status = "UNKNOWN" | "PENDING" | "RUNNING" | "SUCCEEDED" | "FAILED" | "CANCELLED";
13
- const Status: {
14
- readonly Unknown: "UNKNOWN";
15
- readonly Pending: "PENDING";
16
- readonly Running: "RUNNING";
17
- readonly Succeeded: "SUCCEEDED";
18
- readonly Failed: "FAILED";
19
- readonly Cancelled: "CANCELLED";
20
- };
21
- }
@@ -1,17 +0,0 @@
1
- "use strict";
2
- /**
3
- * This file was auto-generated by Fern from our API Definition.
4
- */
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.ServiceExecutionDto = void 0;
7
- var ServiceExecutionDto;
8
- (function (ServiceExecutionDto) {
9
- ServiceExecutionDto.Status = {
10
- Unknown: "UNKNOWN",
11
- Pending: "PENDING",
12
- Running: "RUNNING",
13
- Succeeded: "SUCCEEDED",
14
- Failed: "FAILED",
15
- Cancelled: "CANCELLED",
16
- };
17
- })(ServiceExecutionDto || (exports.ServiceExecutionDto = ServiceExecutionDto = {}));
@@ -1,5 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as PlanqkApi from "../index.js";
5
- export type ServiceExecutionLogs = PlanqkApi.LogEntry[];
@@ -1,5 +0,0 @@
1
- "use strict";
2
- /**
3
- * This file was auto-generated by Fern from our API Definition.
4
- */
5
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,23 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as PlanqkApi from "../index.js";
5
- /**
6
- * Resource usage metrics for a service execution
7
- */
8
- export interface ServiceExecutionMetrics {
9
- /** Service execution ID */
10
- serviceExecutionId?: string;
11
- /** CPU usage metrics time series */
12
- cpuUsage?: PlanqkApi.MetricDataPoint[];
13
- /** CPU limit metrics time series */
14
- cpuLimit?: PlanqkApi.MetricDataPoint[];
15
- /** Memory usage metrics time series */
16
- memoryUsage?: PlanqkApi.MetricDataPoint[];
17
- /** Memory limit metrics time series */
18
- memoryLimit?: PlanqkApi.MetricDataPoint[];
19
- /** Time range start */
20
- startTime?: string;
21
- /** Time range end */
22
- endTime?: string;
23
- }
@@ -1,5 +0,0 @@
1
- "use strict";
2
- /**
3
- * This file was auto-generated by Fern from our API Definition.
4
- */
5
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,46 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- export interface ServiceJobDto {
5
- /** The ID of the service job. */
6
- id?: string;
7
- /** The ID of the service for which this job was created. */
8
- serviceId?: string;
9
- /** The ID of the service definition for which this job was created. */
10
- serviceDefinitionId?: string;
11
- /** Status of the service job. */
12
- status?: ServiceJobDto.Status;
13
- /** Timestamp when the service job was created. */
14
- createdAt?: string;
15
- /** Timestamp when the service job started. */
16
- startedAt?: string;
17
- /** Timestamp when the service job ended. */
18
- endedAt?: string;
19
- /** Type identifier for the service job, indicating whether the underlying service is a 'managed' or 'workflow' service. */
20
- type?: ServiceJobDto.Type;
21
- /** List of tags associated with the service job. Tags are saved in lowercase and can be used for filtering and searching. */
22
- tags?: string[];
23
- }
24
- export declare namespace ServiceJobDto {
25
- /**
26
- * Status of the service job.
27
- */
28
- type Status = "UNKNOWN" | "PENDING" | "RUNNING" | "SUCCEEDED" | "FAILED" | "CANCELLED";
29
- const Status: {
30
- readonly Unknown: "UNKNOWN";
31
- readonly Pending: "PENDING";
32
- readonly Running: "RUNNING";
33
- readonly Succeeded: "SUCCEEDED";
34
- readonly Failed: "FAILED";
35
- readonly Cancelled: "CANCELLED";
36
- };
37
- /**
38
- * Type identifier for the service job, indicating whether the underlying service is a 'managed' or 'workflow' service.
39
- */
40
- type Type = "MANAGED" | "EXTERNAL" | "WORKFLOW";
41
- const Type: {
42
- readonly Managed: "MANAGED";
43
- readonly External: "EXTERNAL";
44
- readonly Workflow: "WORKFLOW";
45
- };
46
- }
@@ -1,22 +0,0 @@
1
- "use strict";
2
- /**
3
- * This file was auto-generated by Fern from our API Definition.
4
- */
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.ServiceJobDto = void 0;
7
- var ServiceJobDto;
8
- (function (ServiceJobDto) {
9
- ServiceJobDto.Status = {
10
- Unknown: "UNKNOWN",
11
- Pending: "PENDING",
12
- Running: "RUNNING",
13
- Succeeded: "SUCCEEDED",
14
- Failed: "FAILED",
15
- Cancelled: "CANCELLED",
16
- };
17
- ServiceJobDto.Type = {
18
- Managed: "MANAGED",
19
- External: "EXTERNAL",
20
- Workflow: "WORKFLOW",
21
- };
22
- })(ServiceJobDto || (exports.ServiceJobDto = ServiceJobDto = {}));
@@ -1,9 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- export interface VariableInstance {
5
- id?: string;
6
- name?: string;
7
- type?: string;
8
- value?: any;
9
- }
@@ -1,5 +0,0 @@
1
- "use strict";
2
- /**
3
- * This file was auto-generated by Fern from our API Definition.
4
- */
5
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,23 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as PlanqkApi from "../index.js";
5
- export interface WorkflowInstance {
6
- id?: string;
7
- state?: WorkflowInstance.State;
8
- startedAt?: string;
9
- endedAt?: string;
10
- activities?: PlanqkApi.ActivityInstance[];
11
- variables?: PlanqkApi.VariableInstance[];
12
- }
13
- export declare namespace WorkflowInstance {
14
- type State = "UNKNOWN" | "PENDING" | "RUNNING" | "SUCCEEDED" | "FAILED" | "CANCELLED";
15
- const State: {
16
- readonly Unknown: "UNKNOWN";
17
- readonly Pending: "PENDING";
18
- readonly Running: "RUNNING";
19
- readonly Succeeded: "SUCCEEDED";
20
- readonly Failed: "FAILED";
21
- readonly Cancelled: "CANCELLED";
22
- };
23
- }
@@ -1,17 +0,0 @@
1
- "use strict";
2
- /**
3
- * This file was auto-generated by Fern from our API Definition.
4
- */
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.WorkflowInstance = void 0;
7
- var WorkflowInstance;
8
- (function (WorkflowInstance) {
9
- WorkflowInstance.State = {
10
- Unknown: "UNKNOWN",
11
- Pending: "PENDING",
12
- Running: "RUNNING",
13
- Succeeded: "SUCCEEDED",
14
- Failed: "FAILED",
15
- Cancelled: "CANCELLED",
16
- };
17
- })(WorkflowInstance || (exports.WorkflowInstance = WorkflowInstance = {}));
@@ -1,8 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as PlanqkApi from "../index.js";
5
- export interface WorkflowServiceExecutionDto {
6
- workflowInstance?: PlanqkApi.WorkflowInstance;
7
- workflowModel?: string;
8
- }
@@ -1,5 +0,0 @@
1
- "use strict";
2
- /**
3
- * This file was auto-generated by Fern from our API Definition.
4
- */
5
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,13 +0,0 @@
1
- export * from "./OauthScope.js";
2
- export * from "./DataPoolDto.js";
3
- export * from "./ServiceJobDto.js";
4
- export * from "./DataPoolFileDto.js";
5
- export * from "./LogEntry.js";
6
- export * from "./ServiceExecutionLogs.js";
7
- export * from "./ServiceExecutionDto.js";
8
- export * from "./ActivityInstance.js";
9
- export * from "./VariableInstance.js";
10
- export * from "./WorkflowInstance.js";
11
- export * from "./WorkflowServiceExecutionDto.js";
12
- export * from "./MetricDataPoint.js";
13
- export * from "./ServiceExecutionMetrics.js";
@@ -1,29 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./OauthScope.js"), exports);
18
- __exportStar(require("./DataPoolDto.js"), exports);
19
- __exportStar(require("./ServiceJobDto.js"), exports);
20
- __exportStar(require("./DataPoolFileDto.js"), exports);
21
- __exportStar(require("./LogEntry.js"), exports);
22
- __exportStar(require("./ServiceExecutionLogs.js"), exports);
23
- __exportStar(require("./ServiceExecutionDto.js"), exports);
24
- __exportStar(require("./ActivityInstance.js"), exports);
25
- __exportStar(require("./VariableInstance.js"), exports);
26
- __exportStar(require("./WorkflowInstance.js"), exports);
27
- __exportStar(require("./WorkflowServiceExecutionDto.js"), exports);
28
- __exportStar(require("./MetricDataPoint.js"), exports);
29
- __exportStar(require("./ServiceExecutionMetrics.js"), exports);
@@ -1 +0,0 @@
1
- export * from "./file/exports.js";
@@ -1,17 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./file/exports.js"), exports);
@@ -1,20 +0,0 @@
1
- import { RawResponse } from "./RawResponse.js";
2
- /**
3
- * The response of an API call.
4
- * It is a successful response or a failed response.
5
- */
6
- export type APIResponse<Success, Failure> = SuccessfulResponse<Success> | FailedResponse<Failure>;
7
- export interface SuccessfulResponse<T> {
8
- ok: true;
9
- body: T;
10
- /**
11
- * @deprecated Use `rawResponse` instead
12
- */
13
- headers?: Record<string, any>;
14
- rawResponse: RawResponse;
15
- }
16
- export interface FailedResponse<T> {
17
- ok: false;
18
- error: T;
19
- rawResponse: RawResponse;
20
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,20 +0,0 @@
1
- import { ResponseWithBody } from "./ResponseWithBody.js";
2
- export type BinaryResponse = {
3
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/bodyUsed) */
4
- bodyUsed: boolean;
5
- /**
6
- * Returns a ReadableStream of the response body.
7
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/body)
8
- */
9
- stream: () => ReadableStream<Uint8Array>;
10
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/arrayBuffer) */
11
- arrayBuffer: () => Promise<ArrayBuffer>;
12
- /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/blob) */
13
- blob: () => Promise<Blob>;
14
- /**
15
- * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/bytes)
16
- * Some versions of the Fetch API may not support this method.
17
- */
18
- bytes?(): Promise<Uint8Array>;
19
- };
20
- export declare function getBinaryResponse(response: ResponseWithBody): BinaryResponse;
@@ -1,17 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getBinaryResponse = getBinaryResponse;
4
- function getBinaryResponse(response) {
5
- const binaryResponse = {
6
- get bodyUsed() {
7
- return response.bodyUsed;
8
- },
9
- stream: () => response.body,
10
- arrayBuffer: response.arrayBuffer.bind(response),
11
- blob: response.blob.bind(response),
12
- };
13
- if ("bytes" in response && typeof response.bytes === "function") {
14
- binaryResponse.bytes = response.bytes.bind(response);
15
- }
16
- return binaryResponse;
17
- }
@@ -1,40 +0,0 @@
1
- import { APIResponse } from "./APIResponse.js";
2
- import { Supplier } from "./Supplier.js";
3
- export type FetchFunction = <R = unknown>(args: Fetcher.Args) => Promise<APIResponse<R, Fetcher.Error>>;
4
- export declare namespace Fetcher {
5
- interface Args {
6
- url: string;
7
- method: string;
8
- contentType?: string;
9
- headers?: Record<string, string | Supplier<string | undefined> | undefined>;
10
- queryParameters?: Record<string, unknown>;
11
- body?: unknown;
12
- timeoutMs?: number;
13
- maxRetries?: number;
14
- withCredentials?: boolean;
15
- abortSignal?: AbortSignal;
16
- requestType?: "json" | "file" | "bytes";
17
- responseType?: "json" | "blob" | "sse" | "streaming" | "text" | "arrayBuffer" | "binary-response";
18
- duplex?: "half";
19
- }
20
- type Error = FailedStatusCodeError | NonJsonError | TimeoutError | UnknownError;
21
- interface FailedStatusCodeError {
22
- reason: "status-code";
23
- statusCode: number;
24
- body: unknown;
25
- }
26
- interface NonJsonError {
27
- reason: "non-json";
28
- statusCode: number;
29
- rawBody: string;
30
- }
31
- interface TimeoutError {
32
- reason: "timeout";
33
- }
34
- interface UnknownError {
35
- reason: "unknown";
36
- errorMessage: string;
37
- }
38
- }
39
- export declare function fetcherImpl<R = unknown>(args: Fetcher.Args): Promise<APIResponse<R, Fetcher.Error>>;
40
- export declare const fetcher: FetchFunction;