@planqk/planqk-api-sdk 1.2.0 → 1.3.1

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 (246) hide show
  1. package/.env.template +2 -1
  2. package/.gitlab-ci.yml +1 -0
  3. package/README-node.md +13 -0
  4. package/README-python.md +13 -0
  5. package/README.md +6 -49
  6. package/apps/README.md +24 -0
  7. package/apps/python-test-app/main.py +159 -0
  8. package/apps/test-file.txt +1 -0
  9. package/apps/ts-test-app/index.ts +140 -0
  10. package/apps/ts-test-app/package-lock.json +695 -0
  11. package/apps/ts-test-app/package.json +15 -0
  12. package/apps/ts-test-app/tsconfig.json +11 -0
  13. package/dist/index.d.ts +1 -4
  14. package/dist/index.js +4 -31
  15. package/dist/{Client.d.ts → sdk/Client.d.ts} +2 -5
  16. package/dist/{Client.js → sdk/Client.js} +1 -6
  17. package/dist/{api → sdk/api}/resources/dataPools/client/Client.d.ts +3 -3
  18. package/dist/{api → sdk/api}/resources/dataPools/client/Client.js +1 -1
  19. package/dist/sdk/api/resources/index.d.ts +2 -0
  20. package/dist/{api → sdk/api}/resources/index.js +1 -3
  21. package/dist/sdk/api/types/index.d.ts +3 -0
  22. package/dist/{api/resources/authentication → sdk/api}/types/index.js +3 -1
  23. package/dist/sdk/index.d.ts +4 -0
  24. package/dist/sdk/index.js +44 -0
  25. package/fern/fern.config.json +1 -1
  26. package/fern/openapi/openapi.json +2 -202
  27. package/notebooks/python-sdk.ipynb +2 -1
  28. package/package.json +3 -4
  29. package/planqk/api/_version.py +1 -1
  30. package/planqk/api/client.py +5 -2
  31. package/planqk/api/sdk/__init__.py +2 -34
  32. package/planqk/api/sdk/client.py +0 -3
  33. package/planqk/api/sdk/types/__init__.py +1 -30
  34. package/pyproject.toml +3 -6
  35. package/src/index.test.ts +6 -5
  36. package/src/index.ts +1 -4
  37. package/src/{Client.ts → sdk/Client.ts} +2 -8
  38. package/src/{api → sdk/api}/resources/dataPools/client/Client.ts +2 -2
  39. package/src/sdk/api/resources/index.ts +2 -0
  40. package/src/sdk/api/types/index.ts +3 -0
  41. package/src/sdk/index.ts +4 -0
  42. package/uv.lock +658 -324
  43. package/dist/api/resources/authentication/client/Client.d.ts +0 -55
  44. package/dist/api/resources/authentication/client/Client.js +0 -126
  45. package/dist/api/resources/authentication/client/index.d.ts +0 -1
  46. package/dist/api/resources/authentication/index.d.ts +0 -2
  47. package/dist/api/resources/authentication/index.js +0 -18
  48. package/dist/api/resources/authentication/types/AuthorizeResponse.d.ts +0 -5
  49. package/dist/api/resources/authentication/types/AuthorizeResponse.js +0 -5
  50. package/dist/api/resources/authentication/types/index.d.ts +0 -1
  51. package/dist/api/resources/dataPools/client/requests/index.js +0 -2
  52. package/dist/api/resources/index.d.ts +0 -4
  53. package/dist/api/types/AccessToken.d.ts +0 -10
  54. package/dist/api/types/AccessToken.js +0 -5
  55. package/dist/api/types/OrganizationMembership.d.ts +0 -22
  56. package/dist/api/types/OrganizationMembership.js +0 -19
  57. package/dist/api/types/PersonalAccessTokenPrincipal.d.ts +0 -18
  58. package/dist/api/types/PersonalAccessTokenPrincipal.js +0 -14
  59. package/dist/api/types/ServiceExecution.d.ts +0 -20
  60. package/dist/api/types/ServiceExecution.js +0 -16
  61. package/dist/api/types/ServiceExecutionTokenPrincipal.d.ts +0 -8
  62. package/dist/api/types/ServiceExecutionTokenPrincipal.js +0 -5
  63. package/dist/api/types/UserContext.d.ts +0 -24
  64. package/dist/api/types/UserContext.js +0 -19
  65. package/dist/api/types/index.d.ts +0 -9
  66. package/dist/api/types/index.js +0 -25
  67. package/planqk/api/sdk/authentication/__init__.py +0 -7
  68. package/planqk/api/sdk/authentication/client.py +0 -102
  69. package/planqk/api/sdk/authentication/raw_client.py +0 -183
  70. package/planqk/api/sdk/authentication/types/__init__.py +0 -7
  71. package/planqk/api/sdk/authentication/types/authorize_response.py +0 -8
  72. package/planqk/api/sdk/types/access_token.py +0 -26
  73. package/planqk/api/sdk/types/organization_membership.py +0 -27
  74. package/planqk/api/sdk/types/organization_membership_account_type.py +0 -5
  75. package/planqk/api/sdk/types/organization_membership_role.py +0 -5
  76. package/planqk/api/sdk/types/personal_access_token_principal.py +0 -31
  77. package/planqk/api/sdk/types/personal_access_token_principal_account_type.py +0 -5
  78. package/planqk/api/sdk/types/service_execution.py +0 -27
  79. package/planqk/api/sdk/types/service_execution_status.py +0 -7
  80. package/planqk/api/sdk/types/service_execution_token_principal.py +0 -34
  81. package/planqk/api/sdk/types/user_context.py +0 -35
  82. package/planqk/api/sdk/types/user_context_account_type.py +0 -5
  83. package/planqk/api/sdk/types/user_context_context_type.py +0 -5
  84. package/src/api/resources/authentication/client/Client.ts +0 -134
  85. package/src/api/resources/authentication/client/index.ts +0 -1
  86. package/src/api/resources/authentication/index.ts +0 -2
  87. package/src/api/resources/authentication/types/AuthorizeResponse.ts +0 -7
  88. package/src/api/resources/authentication/types/index.ts +0 -1
  89. package/src/api/resources/index.ts +0 -4
  90. package/src/api/types/AccessToken.ts +0 -11
  91. package/src/api/types/OrganizationMembership.ts +0 -24
  92. package/src/api/types/PersonalAccessTokenPrincipal.ts +0 -21
  93. package/src/api/types/ServiceExecution.ts +0 -22
  94. package/src/api/types/ServiceExecutionTokenPrincipal.ts +0 -10
  95. package/src/api/types/UserContext.ts +0 -27
  96. package/src/api/types/index.ts +0 -9
  97. package/dist/{api → sdk/api}/errors/BadRequestError.d.ts +0 -0
  98. package/dist/{api → sdk/api}/errors/BadRequestError.js +0 -0
  99. package/dist/{api → sdk/api}/errors/ForbiddenError.d.ts +0 -0
  100. package/dist/{api → sdk/api}/errors/ForbiddenError.js +0 -0
  101. package/dist/{api → sdk/api}/errors/InternalServerError.d.ts +0 -0
  102. package/dist/{api → sdk/api}/errors/InternalServerError.js +0 -0
  103. package/dist/{api → sdk/api}/errors/NotFoundError.d.ts +0 -0
  104. package/dist/{api → sdk/api}/errors/NotFoundError.js +0 -0
  105. package/dist/{api → sdk/api}/errors/UnauthorizedError.d.ts +0 -0
  106. package/dist/{api → sdk/api}/errors/UnauthorizedError.js +0 -0
  107. package/dist/{api → sdk/api}/errors/index.d.ts +0 -0
  108. package/dist/{api → sdk/api}/errors/index.js +0 -0
  109. package/dist/{api → sdk/api}/index.d.ts +1 -1
  110. package/dist/{api → sdk/api}/index.js +1 -1
  111. package/dist/{api → sdk/api}/resources/dataPools/client/index.d.ts +0 -0
  112. package/dist/{api → sdk/api}/resources/dataPools/client/index.js +0 -0
  113. package/dist/{api → sdk/api}/resources/dataPools/client/requests/AddDataPoolFileRequest.d.ts +0 -0
  114. package/dist/{api → sdk/api}/resources/dataPools/client/requests/AddDataPoolFileRequest.js +0 -0
  115. package/dist/{api → sdk/api}/resources/dataPools/client/requests/CreateDataPoolRequest.d.ts +0 -0
  116. package/dist/{api → sdk/api}/resources/dataPools/client/requests/CreateDataPoolRequest.js +0 -0
  117. package/dist/{api → sdk/api}/resources/dataPools/client/requests/UpdateDataPoolRequest.d.ts +0 -0
  118. package/dist/{api → sdk/api}/resources/dataPools/client/requests/UpdateDataPoolRequest.js +0 -0
  119. package/dist/{api → sdk/api}/resources/dataPools/client/requests/index.d.ts +0 -0
  120. package/dist/{api/resources/authentication/client → sdk/api/resources/dataPools/client/requests}/index.js +0 -0
  121. package/dist/{api → sdk/api}/resources/dataPools/index.d.ts +0 -0
  122. package/dist/{api → sdk/api}/resources/dataPools/index.js +0 -0
  123. package/dist/{api → sdk/api}/types/DataPoolDto.d.ts +0 -0
  124. package/dist/{api → sdk/api}/types/DataPoolDto.js +0 -0
  125. package/dist/{api → sdk/api}/types/DataPoolFileDto.d.ts +0 -0
  126. package/dist/{api → sdk/api}/types/DataPoolFileDto.js +0 -0
  127. package/dist/{api → sdk/api}/types/OauthScope.d.ts +0 -0
  128. package/dist/{api → sdk/api}/types/OauthScope.js +0 -0
  129. package/dist/{core → sdk/core}/fetcher/APIResponse.d.ts +0 -0
  130. package/dist/{core → sdk/core}/fetcher/APIResponse.js +0 -0
  131. package/dist/{core → sdk/core}/fetcher/BinaryResponse.d.ts +0 -0
  132. package/dist/{core → sdk/core}/fetcher/BinaryResponse.js +0 -0
  133. package/dist/{core → sdk/core}/fetcher/Fetcher.d.ts +0 -0
  134. package/dist/{core → sdk/core}/fetcher/Fetcher.js +0 -0
  135. package/dist/{core → sdk/core}/fetcher/Headers.d.ts +0 -0
  136. package/dist/{core → sdk/core}/fetcher/Headers.js +0 -0
  137. package/dist/{core → sdk/core}/fetcher/HttpResponsePromise.d.ts +0 -0
  138. package/dist/{core → sdk/core}/fetcher/HttpResponsePromise.js +0 -0
  139. package/dist/{core → sdk/core}/fetcher/RawResponse.d.ts +0 -0
  140. package/dist/{core → sdk/core}/fetcher/RawResponse.js +0 -0
  141. package/dist/{core → sdk/core}/fetcher/ResponseWithBody.d.ts +0 -0
  142. package/dist/{core → sdk/core}/fetcher/ResponseWithBody.js +0 -0
  143. package/dist/{core → sdk/core}/fetcher/Supplier.d.ts +0 -0
  144. package/dist/{core → sdk/core}/fetcher/Supplier.js +0 -0
  145. package/dist/{core → sdk/core}/fetcher/createRequestUrl.d.ts +0 -0
  146. package/dist/{core → sdk/core}/fetcher/createRequestUrl.js +0 -0
  147. package/dist/{core → sdk/core}/fetcher/getErrorResponseBody.d.ts +0 -0
  148. package/dist/{core → sdk/core}/fetcher/getErrorResponseBody.js +0 -0
  149. package/dist/{core → sdk/core}/fetcher/getFetchFn.d.ts +0 -0
  150. package/dist/{core → sdk/core}/fetcher/getFetchFn.js +0 -0
  151. package/dist/{core → sdk/core}/fetcher/getHeader.d.ts +0 -0
  152. package/dist/{core → sdk/core}/fetcher/getHeader.js +0 -0
  153. package/dist/{core → sdk/core}/fetcher/getRequestBody.d.ts +0 -0
  154. package/dist/{core → sdk/core}/fetcher/getRequestBody.js +0 -0
  155. package/dist/{core → sdk/core}/fetcher/getResponseBody.d.ts +0 -0
  156. package/dist/{core → sdk/core}/fetcher/getResponseBody.js +0 -0
  157. package/dist/{core → sdk/core}/fetcher/index.d.ts +0 -0
  158. package/dist/{core → sdk/core}/fetcher/index.js +0 -0
  159. package/dist/{core → sdk/core}/fetcher/makeRequest.d.ts +0 -0
  160. package/dist/{core → sdk/core}/fetcher/makeRequest.js +0 -0
  161. package/dist/{core → sdk/core}/fetcher/requestWithRetries.d.ts +0 -0
  162. package/dist/{core → sdk/core}/fetcher/requestWithRetries.js +0 -0
  163. package/dist/{core → sdk/core}/fetcher/signals.d.ts +0 -0
  164. package/dist/{core → sdk/core}/fetcher/signals.js +0 -0
  165. package/dist/{core → sdk/core}/file.d.ts +0 -0
  166. package/dist/{core → sdk/core}/file.js +0 -0
  167. package/dist/{core → sdk/core}/form-data-utils/FormDataWrapper.d.ts +0 -0
  168. package/dist/{core → sdk/core}/form-data-utils/FormDataWrapper.js +0 -0
  169. package/dist/{core → sdk/core}/form-data-utils/encodeAsFormParameter.d.ts +0 -0
  170. package/dist/{core → sdk/core}/form-data-utils/encodeAsFormParameter.js +0 -0
  171. package/dist/{core → sdk/core}/form-data-utils/index.d.ts +0 -0
  172. package/dist/{core → sdk/core}/form-data-utils/index.js +0 -0
  173. package/dist/{core → sdk/core}/headers.d.ts +0 -0
  174. package/dist/{core → sdk/core}/headers.js +0 -0
  175. package/dist/{core → sdk/core}/index.d.ts +0 -0
  176. package/dist/{core → sdk/core}/index.js +0 -0
  177. package/dist/{core → sdk/core}/json.d.ts +0 -0
  178. package/dist/{core → sdk/core}/json.js +0 -0
  179. package/dist/{core → sdk/core}/runtime/index.d.ts +0 -0
  180. package/dist/{core → sdk/core}/runtime/index.js +0 -0
  181. package/dist/{core → sdk/core}/runtime/runtime.d.ts +0 -0
  182. package/dist/{core → sdk/core}/runtime/runtime.js +0 -0
  183. package/dist/{core → sdk/core}/url/index.d.ts +0 -0
  184. package/dist/{core → sdk/core}/url/index.js +0 -0
  185. package/dist/{core → sdk/core}/url/join.d.ts +0 -0
  186. package/dist/{core → sdk/core}/url/join.js +0 -0
  187. package/dist/{core → sdk/core}/url/qs.d.ts +0 -0
  188. package/dist/{core → sdk/core}/url/qs.js +0 -0
  189. package/dist/{environments.d.ts → sdk/environments.d.ts} +0 -0
  190. package/dist/{environments.js → sdk/environments.js} +0 -0
  191. package/dist/{errors → sdk/errors}/PlanqkApiError.d.ts +0 -0
  192. package/dist/{errors → sdk/errors}/PlanqkApiError.js +0 -0
  193. package/dist/{errors → sdk/errors}/PlanqkApiTimeoutError.d.ts +0 -0
  194. package/dist/{errors → sdk/errors}/PlanqkApiTimeoutError.js +0 -0
  195. package/dist/{errors → sdk/errors}/index.d.ts +0 -0
  196. package/dist/{errors → sdk/errors}/index.js +0 -0
  197. package/src/{api → sdk/api}/errors/BadRequestError.ts +0 -0
  198. package/src/{api → sdk/api}/errors/ForbiddenError.ts +0 -0
  199. package/src/{api → sdk/api}/errors/InternalServerError.ts +0 -0
  200. package/src/{api → sdk/api}/errors/NotFoundError.ts +0 -0
  201. package/src/{api → sdk/api}/errors/UnauthorizedError.ts +0 -0
  202. package/src/{api → sdk/api}/errors/index.ts +0 -0
  203. package/src/{api → sdk/api}/index.ts +1 -1
  204. /package/src/{api → sdk/api}/resources/dataPools/client/index.ts +0 -0
  205. /package/src/{api → sdk/api}/resources/dataPools/client/requests/AddDataPoolFileRequest.ts +0 -0
  206. /package/src/{api → sdk/api}/resources/dataPools/client/requests/CreateDataPoolRequest.ts +0 -0
  207. /package/src/{api → sdk/api}/resources/dataPools/client/requests/UpdateDataPoolRequest.ts +0 -0
  208. /package/src/{api → sdk/api}/resources/dataPools/client/requests/index.ts +0 -0
  209. /package/src/{api → sdk/api}/resources/dataPools/index.ts +0 -0
  210. /package/src/{api → sdk/api}/types/DataPoolDto.ts +0 -0
  211. /package/src/{api → sdk/api}/types/DataPoolFileDto.ts +0 -0
  212. /package/src/{api → sdk/api}/types/OauthScope.ts +0 -0
  213. /package/src/{core → sdk/core}/fetcher/APIResponse.ts +0 -0
  214. /package/src/{core → sdk/core}/fetcher/BinaryResponse.ts +0 -0
  215. /package/src/{core → sdk/core}/fetcher/Fetcher.ts +0 -0
  216. /package/src/{core → sdk/core}/fetcher/Headers.ts +0 -0
  217. /package/src/{core → sdk/core}/fetcher/HttpResponsePromise.ts +0 -0
  218. /package/src/{core → sdk/core}/fetcher/RawResponse.ts +0 -0
  219. /package/src/{core → sdk/core}/fetcher/ResponseWithBody.ts +0 -0
  220. /package/src/{core → sdk/core}/fetcher/Supplier.ts +0 -0
  221. /package/src/{core → sdk/core}/fetcher/createRequestUrl.ts +0 -0
  222. /package/src/{core → sdk/core}/fetcher/getErrorResponseBody.ts +0 -0
  223. /package/src/{core → sdk/core}/fetcher/getFetchFn.ts +0 -0
  224. /package/src/{core → sdk/core}/fetcher/getHeader.ts +0 -0
  225. /package/src/{core → sdk/core}/fetcher/getRequestBody.ts +0 -0
  226. /package/src/{core → sdk/core}/fetcher/getResponseBody.ts +0 -0
  227. /package/src/{core → sdk/core}/fetcher/index.ts +0 -0
  228. /package/src/{core → sdk/core}/fetcher/makeRequest.ts +0 -0
  229. /package/src/{core → sdk/core}/fetcher/requestWithRetries.ts +0 -0
  230. /package/src/{core → sdk/core}/fetcher/signals.ts +0 -0
  231. /package/src/{core → sdk/core}/file.ts +0 -0
  232. /package/src/{core → sdk/core}/form-data-utils/FormDataWrapper.ts +0 -0
  233. /package/src/{core → sdk/core}/form-data-utils/encodeAsFormParameter.ts +0 -0
  234. /package/src/{core → sdk/core}/form-data-utils/index.ts +0 -0
  235. /package/src/{core → sdk/core}/headers.ts +0 -0
  236. /package/src/{core → sdk/core}/index.ts +0 -0
  237. /package/src/{core → sdk/core}/json.ts +0 -0
  238. /package/src/{core → sdk/core}/runtime/index.ts +0 -0
  239. /package/src/{core → sdk/core}/runtime/runtime.ts +0 -0
  240. /package/src/{core → sdk/core}/url/index.ts +0 -0
  241. /package/src/{core → sdk/core}/url/join.ts +0 -0
  242. /package/src/{core → sdk/core}/url/qs.ts +0 -0
  243. /package/src/{environments.ts → sdk/environments.ts} +0 -0
  244. /package/src/{errors → sdk/errors}/PlanqkApiError.ts +0 -0
  245. /package/src/{errors → sdk/errors}/PlanqkApiTimeoutError.ts +0 -0
  246. /package/src/{errors → sdk/errors}/index.ts +0 -0
@@ -1,22 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
-
5
- export interface ServiceExecution {
6
- id?: string;
7
- createdAt?: string;
8
- startedAt?: string;
9
- endedAt?: string;
10
- status?: ServiceExecution.Status;
11
- }
12
-
13
- export namespace ServiceExecution {
14
- export type Status = "UNKNOWN" | "PENDING" | "RUNNING" | "SUCCEEDED" | "FAILED";
15
- export const Status = {
16
- Unknown: "UNKNOWN",
17
- Pending: "PENDING",
18
- Running: "RUNNING",
19
- Succeeded: "SUCCEEDED",
20
- Failed: "FAILED",
21
- } as const;
22
- }
@@ -1,10 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
-
5
- import * as PlanqkApi from "../index.js";
6
-
7
- export interface ServiceExecutionTokenPrincipal {
8
- serviceExecution?: PlanqkApi.ServiceExecution;
9
- serviceProvider?: PlanqkApi.UserContext;
10
- }
@@ -1,27 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
-
5
- import * as PlanqkApi from "../index.js";
6
-
7
- export interface UserContext {
8
- id?: string;
9
- contextType?: UserContext.ContextType;
10
- accountType?: UserContext.AccountType;
11
- parent?: PlanqkApi.UserContext;
12
- }
13
-
14
- export namespace UserContext {
15
- export type ContextType = "USER" | "ORGANIZATION" | "SERVICE_EXECUTION";
16
- export const ContextType = {
17
- User: "USER",
18
- Organization: "ORGANIZATION",
19
- ServiceExecution: "SERVICE_EXECUTION",
20
- } as const;
21
- export type AccountType = "BASIC" | "PRO" | "BUSINESS";
22
- export const AccountType = {
23
- Basic: "BASIC",
24
- Pro: "PRO",
25
- Business: "BUSINESS",
26
- } as const;
27
- }
@@ -1,9 +0,0 @@
1
- export * from "./OauthScope.js";
2
- export * from "./DataPoolDto.js";
3
- export * from "./DataPoolFileDto.js";
4
- export * from "./AccessToken.js";
5
- export * from "./OrganizationMembership.js";
6
- export * from "./PersonalAccessTokenPrincipal.js";
7
- export * from "./ServiceExecution.js";
8
- export * from "./ServiceExecutionTokenPrincipal.js";
9
- export * from "./UserContext.js";
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -1,3 +1,3 @@
1
- export * from "./resources/index.js";
2
1
  export * from "./types/index.js";
3
2
  export * from "./errors/index.js";
3
+ export * from "./resources/index.js";
@@ -14,6 +14,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./resources/index.js"), exports);
18
17
  __exportStar(require("./types/index.js"), exports);
19
18
  __exportStar(require("./errors/index.js"), exports);
19
+ __exportStar(require("./resources/index.js"), exports);
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -1,3 +1,3 @@
1
- export * from "./resources/index.js";
2
1
  export * from "./types/index.js";
3
2
  export * from "./errors/index.js";
3
+ export * from "./resources/index.js";
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes