@enbbox/api 1.0.0 → 1.1.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.
Files changed (378) hide show
  1. package/.openapi-generator/FILES +375 -0
  2. package/.openapi-generator/VERSION +1 -0
  3. package/.openapi-generator-ignore +23 -0
  4. package/README.md +2 -2
  5. package/api/activity-api.ts +756 -0
  6. package/api/billing-api.ts +673 -0
  7. package/api/channel-connections-api.ts +510 -0
  8. package/api/channel-endpoints-api.ts +510 -0
  9. package/api/contexts-api.ts +534 -0
  10. package/api/events-api.ts +394 -0
  11. package/api/feature-flags-api.ts +132 -0
  12. package/api/health-api.ts +264 -0
  13. package/api/inbound-parse-api.ts +137 -0
  14. package/api/inbox-api.ts +1151 -0
  15. package/api/integrations-api.ts +833 -0
  16. package/api/layouts-api.ts +849 -0
  17. package/api/messages-api.ts +349 -0
  18. package/api/metrics-api.ts +128 -0
  19. package/api/notification-groups-api.ts +391 -0
  20. package/api/notifications-api.ts +326 -0
  21. package/api/preferences-api.ts +333 -0
  22. package/api/projects-api.ts +1075 -0
  23. package/api/subscribers-api.ts +1542 -0
  24. package/api/topics-api.ts +1352 -0
  25. package/api/translations-api.ts +462 -0
  26. package/api/webhooks-api.ts +397 -0
  27. package/api/workflows-api.ts +970 -0
  28. package/api.ts +40 -0
  29. package/base.ts +62 -0
  30. package/common.ts +127 -0
  31. package/configuration.ts +121 -0
  32. package/dist/esm/models/init-session-response.d.ts +4 -0
  33. package/dist/models/init-session-response.d.ts +4 -0
  34. package/docs/ActionBody.md +21 -0
  35. package/docs/ActionRecord.md +25 -0
  36. package/docs/ActionType.md +17 -0
  37. package/docs/ActivityApi.md +412 -0
  38. package/docs/ActivityChartPoint.md +31 -0
  39. package/docs/ActivityRecord.md +39 -0
  40. package/docs/ActivityRequestRecord.md +31 -0
  41. package/docs/ActivityStats.md +31 -0
  42. package/docs/ActorType.md +15 -0
  43. package/docs/ApiKeyCreated.md +27 -0
  44. package/docs/ApiKeyInfo.md +27 -0
  45. package/docs/AutoConfigureResult.md +21 -0
  46. package/docs/BillingApi.md +375 -0
  47. package/docs/BillingInterval.md +11 -0
  48. package/docs/Branding.md +31 -0
  49. package/docs/BroadcastTrigger.md +27 -0
  50. package/docs/BulkCreateSubscribers.md +21 -0
  51. package/docs/BulkPreferenceItem.md +24 -0
  52. package/docs/BulkPreferences.md +21 -0
  53. package/docs/BulkResult.md +22 -0
  54. package/docs/BulkTrigger.md +21 -0
  55. package/docs/ChannelConnectionRecord.md +31 -0
  56. package/docs/ChannelConnectionsApi.md +276 -0
  57. package/docs/ChannelEndpointRecord.md +33 -0
  58. package/docs/ChannelEndpointsApi.md +276 -0
  59. package/docs/ChannelPreferences.md +29 -0
  60. package/docs/ChannelType.md +17 -0
  61. package/docs/ChartQuery.md +21 -0
  62. package/docs/ChatOauth.md +21 -0
  63. package/docs/ChatOauthRequest.md +22 -0
  64. package/docs/CheckoutSession.md +23 -0
  65. package/docs/ContextRecord.md +29 -0
  66. package/docs/ContextsApi.md +285 -0
  67. package/docs/CreateChannelConnection.md +27 -0
  68. package/docs/CreateChannelEndpoint.md +29 -0
  69. package/docs/CreateCheckout.md +23 -0
  70. package/docs/CreateContext.md +25 -0
  71. package/docs/CreateIntegration.md +31 -0
  72. package/docs/CreateLayout.md +31 -0
  73. package/docs/CreateNotificationGroup.md +21 -0
  74. package/docs/CreateProject.md +21 -0
  75. package/docs/CreateSubscriber.md +37 -0
  76. package/docs/CreateSubscription.md +21 -0
  77. package/docs/CreateTopic.md +23 -0
  78. package/docs/CreateWebhook.md +23 -0
  79. package/docs/CreateWorkflow.md +35 -0
  80. package/docs/CtaType.md +9 -0
  81. package/docs/CursorMeta.md +27 -0
  82. package/docs/CursorPaginatedFeedItem.md +23 -0
  83. package/docs/CursorPaginatedFeedItemDataInner.md +37 -0
  84. package/docs/CursorPaginatedMessageRecord.md +23 -0
  85. package/docs/CursorPaginatedMessageRecordDataInner.md +41 -0
  86. package/docs/CursorPagination.md +25 -0
  87. package/docs/DeleteSubscription.md +20 -0
  88. package/docs/DeliveryAck.md +21 -0
  89. package/docs/DeliveryStatusWebhook.md +27 -0
  90. package/docs/DnsSettings.md +23 -0
  91. package/docs/EngagementStatsResponse.md +27 -0
  92. package/docs/EntitlementItem.md +25 -0
  93. package/docs/Entitlements.md +21 -0
  94. package/docs/ErrorDetail.md +27 -0
  95. package/docs/EventsApi.md +214 -0
  96. package/docs/EventsUsage.md +23 -0
  97. package/docs/FeatureFlagsApi.md +51 -0
  98. package/docs/FeedItem.md +37 -0
  99. package/docs/FeedQuery.md +31 -0
  100. package/docs/HealthApi.md +140 -0
  101. package/docs/InboundParseApi.md +59 -0
  102. package/docs/InboxApi.md +673 -0
  103. package/docs/InboxNotification.md +41 -0
  104. package/docs/InboxPreference.md +23 -0
  105. package/docs/InboxQuery.md +27 -0
  106. package/docs/InitSessionRequest.md +23 -0
  107. package/docs/InitSessionResponse.md +25 -0
  108. package/docs/IntegrationRecord.md +35 -0
  109. package/docs/IntegrationsApi.md +475 -0
  110. package/docs/InviteMember.md +23 -0
  111. package/docs/InviteMemberBody.md +23 -0
  112. package/docs/JobLog.md +33 -0
  113. package/docs/LayoutPreview.md +21 -0
  114. package/docs/LayoutPreviewResult.md +21 -0
  115. package/docs/LayoutRecord.md +31 -0
  116. package/docs/LayoutUsageItem.md +23 -0
  117. package/docs/LayoutsApi.md +484 -0
  118. package/docs/MarkAll.md +21 -0
  119. package/docs/MarkMessages.md +23 -0
  120. package/docs/MarkResult.md +21 -0
  121. package/docs/MemberRecord.md +27 -0
  122. package/docs/MemberRole.md +15 -0
  123. package/docs/MemberStatus.md +13 -0
  124. package/docs/MessageQuery.md +31 -0
  125. package/docs/MessageRecord.md +41 -0
  126. package/docs/MessagesApi.md +175 -0
  127. package/docs/MetricsApi.md +51 -0
  128. package/docs/NotificationCount.md +25 -0
  129. package/docs/NotificationGroupRecord.md +23 -0
  130. package/docs/NotificationGroupsApi.md +209 -0
  131. package/docs/NotificationLog.md +33 -0
  132. package/docs/NotificationQuery.md +25 -0
  133. package/docs/NotificationsApi.md +166 -0
  134. package/docs/OffsetMeta.md +27 -0
  135. package/docs/OffsetPagination.md +27 -0
  136. package/docs/OnlineStatus.md +21 -0
  137. package/docs/PaginatedChannelConnectionRecord.md +23 -0
  138. package/docs/PaginatedChannelConnectionRecordDataInner.md +31 -0
  139. package/docs/PaginatedChannelEndpointRecord.md +23 -0
  140. package/docs/PaginatedChannelEndpointRecordDataInner.md +33 -0
  141. package/docs/PaginatedContextRecord.md +23 -0
  142. package/docs/PaginatedContextRecordDataInner.md +29 -0
  143. package/docs/PaginatedIntegrationRecord.md +23 -0
  144. package/docs/PaginatedIntegrationRecordDataInner.md +35 -0
  145. package/docs/PaginatedLayoutRecord.md +23 -0
  146. package/docs/PaginatedLayoutRecordDataInner.md +31 -0
  147. package/docs/PaginatedSubscriberRecord.md +23 -0
  148. package/docs/PaginatedSubscriberRecordDataInner.md +41 -0
  149. package/docs/PaginatedTopicRecord.md +23 -0
  150. package/docs/PaginatedTopicRecordDataInner.md +24 -0
  151. package/docs/PaginatedTopicSubscriptionRecord.md +23 -0
  152. package/docs/PaginatedTopicSubscriptionRecordDataInner.md +29 -0
  153. package/docs/PaginatedWorkflowRecord.md +23 -0
  154. package/docs/PaginatedWorkflowRecordDataInner.md +37 -0
  155. package/docs/PaginationQuery.md +25 -0
  156. package/docs/PatchCredentials.md +27 -0
  157. package/docs/Plan.md +17 -0
  158. package/docs/PlanLimitsResponse.md +33 -0
  159. package/docs/PortalUrl.md +21 -0
  160. package/docs/PreferenceChannels.md +29 -0
  161. package/docs/PreferenceRecord.md +27 -0
  162. package/docs/PreferencesApi.md +171 -0
  163. package/docs/PreviewResult.md +20 -0
  164. package/docs/PriceInfo.md +27 -0
  165. package/docs/Prices.md +21 -0
  166. package/docs/ProjectRecord.md +27 -0
  167. package/docs/ProjectsApi.md +638 -0
  168. package/docs/SetCredentials.md +27 -0
  169. package/docs/StepPreview.md +21 -0
  170. package/docs/StepRecord.md +29 -0
  171. package/docs/StepType.md +27 -0
  172. package/docs/SubscriberCredential.md +27 -0
  173. package/docs/SubscriberPayload.md +37 -0
  174. package/docs/SubscriberRecord.md +41 -0
  175. package/docs/SubscribersApi.md +887 -0
  176. package/docs/Subscription.md +39 -0
  177. package/docs/SyncWorkflow.md +21 -0
  178. package/docs/SystemAvatarIcon.md +19 -0
  179. package/docs/TopicRecord.md +24 -0
  180. package/docs/TopicSubscribers.md +21 -0
  181. package/docs/TopicSubscription.md +23 -0
  182. package/docs/TopicSubscriptionRecord.md +29 -0
  183. package/docs/TopicsApi.md +777 -0
  184. package/docs/TranslationsApi.md +258 -0
  185. package/docs/TrialInfo.md +27 -0
  186. package/docs/TriggerEvent.md +31 -0
  187. package/docs/TriggerRecipients.md +39 -0
  188. package/docs/TriggerRecipientsOneOf.md +21 -0
  189. package/docs/TriggerResult.md +25 -0
  190. package/docs/TriggerStatus.md +21 -0
  191. package/docs/UnseenCount.md +21 -0
  192. package/docs/UpdateChannelConnection.md +21 -0
  193. package/docs/UpdateChannelEndpoint.md +23 -0
  194. package/docs/UpdateContext.md +21 -0
  195. package/docs/UpdateInboxPreferences.md +29 -0
  196. package/docs/UpdateIntegration.md +27 -0
  197. package/docs/UpdateLayout.md +27 -0
  198. package/docs/UpdateNotificationGroup.md +21 -0
  199. package/docs/UpdatePreference.md +23 -0
  200. package/docs/UpdateProject.md +23 -0
  201. package/docs/UpdateSubscriber.md +35 -0
  202. package/docs/UpdateSubscriptionMeta.md +21 -0
  203. package/docs/UpdateTopic.md +21 -0
  204. package/docs/UpdateWorkflow.md +31 -0
  205. package/docs/Usage.md +35 -0
  206. package/docs/WebhookRecord.md +31 -0
  207. package/docs/WebhooksApi.md +212 -0
  208. package/docs/WidgetSettings.md +21 -0
  209. package/docs/WorkflowRecord.md +37 -0
  210. package/docs/WorkflowRunRecord.md +31 -0
  211. package/docs/WorkflowStatsResponse.md +27 -0
  212. package/docs/WorkflowStatus.md +21 -0
  213. package/docs/WorkflowStepCreate.md +31 -0
  214. package/docs/WorkflowsApi.md +550 -0
  215. package/git_push.sh +57 -0
  216. package/index.ts +18 -0
  217. package/models/action-body.ts +26 -0
  218. package/models/action-record.ts +28 -0
  219. package/models/action-type.ts +32 -0
  220. package/models/activity-chart-point.ts +46 -0
  221. package/models/activity-record.ts +62 -0
  222. package/models/activity-request-record.ts +46 -0
  223. package/models/activity-stats.ts +46 -0
  224. package/models/actor-type.ts +31 -0
  225. package/models/api-key-created.ts +38 -0
  226. package/models/api-key-info.ts +38 -0
  227. package/models/auto-configure-result.ts +23 -0
  228. package/models/billing-interval.ts +29 -0
  229. package/models/branding.ts +46 -0
  230. package/models/broadcast-trigger.ts +29 -0
  231. package/models/bulk-create-subscribers.ts +26 -0
  232. package/models/bulk-preference-item.ts +25 -0
  233. package/models/bulk-preferences.ts +26 -0
  234. package/models/bulk-result.ts +24 -0
  235. package/models/bulk-trigger.ts +29 -0
  236. package/models/channel-connection-record.ts +43 -0
  237. package/models/channel-endpoint-record.ts +47 -0
  238. package/models/channel-preferences.ts +27 -0
  239. package/models/channel-type.ts +32 -0
  240. package/models/chart-query.ts +26 -0
  241. package/models/chat-oauth-request.ts +21 -0
  242. package/models/chat-oauth.ts +23 -0
  243. package/models/checkout-session.ts +35 -0
  244. package/models/context-record.ts +42 -0
  245. package/models/create-channel-connection.ts +35 -0
  246. package/models/create-channel-endpoint.ts +39 -0
  247. package/models/create-checkout.ts +35 -0
  248. package/models/create-context.ts +34 -0
  249. package/models/create-integration.ts +51 -0
  250. package/models/create-layout.ts +34 -0
  251. package/models/create-notification-group.ts +26 -0
  252. package/models/create-project.ts +26 -0
  253. package/models/create-subscriber.ts +58 -0
  254. package/models/create-subscription.ts +23 -0
  255. package/models/create-topic.ts +30 -0
  256. package/models/create-webhook.ts +30 -0
  257. package/models/create-workflow.ts +60 -0
  258. package/models/cta-type.ts +28 -0
  259. package/models/cursor-meta.ts +38 -0
  260. package/models/cursor-paginated-feed-item-data-inner.ts +40 -0
  261. package/models/cursor-paginated-feed-item.ts +36 -0
  262. package/models/cursor-paginated-message-record-data-inner.ts +45 -0
  263. package/models/cursor-paginated-message-record.ts +36 -0
  264. package/models/cursor-pagination.ts +34 -0
  265. package/models/delete-subscription.ts +20 -0
  266. package/models/delivery-ack.ts +23 -0
  267. package/models/delivery-status-webhook.ts +29 -0
  268. package/models/dns-settings.ts +30 -0
  269. package/models/engagement-stats-response.ts +38 -0
  270. package/models/entitlement-item.ts +34 -0
  271. package/models/entitlements.ts +26 -0
  272. package/models/error-detail.ts +38 -0
  273. package/models/events-usage.ts +30 -0
  274. package/models/feed-item.ts +40 -0
  275. package/models/feed-query.ts +28 -0
  276. package/models/inbox-notification.ts +39 -0
  277. package/models/inbox-preference.ts +27 -0
  278. package/models/inbox-query.ts +26 -0
  279. package/models/index.ts +158 -0
  280. package/models/init-session-request.ts +30 -0
  281. package/models/init-session-response.ts +34 -0
  282. package/models/integration-record.ts +59 -0
  283. package/models/invite-member-body.ts +30 -0
  284. package/models/invite-member.ts +30 -0
  285. package/models/job-log.ts +47 -0
  286. package/models/layout-preview-result.ts +23 -0
  287. package/models/layout-preview.ts +23 -0
  288. package/models/layout-record.ts +37 -0
  289. package/models/layout-usage-item.ts +24 -0
  290. package/models/mark-all.ts +23 -0
  291. package/models/mark-messages.ts +24 -0
  292. package/models/mark-result.ts +23 -0
  293. package/models/member-record.ts +38 -0
  294. package/models/member-role.ts +31 -0
  295. package/models/member-status.ts +30 -0
  296. package/models/message-query.ts +46 -0
  297. package/models/message-record.ts +45 -0
  298. package/models/notification-count.ts +25 -0
  299. package/models/notification-group-record.ts +30 -0
  300. package/models/notification-log.ts +41 -0
  301. package/models/notification-query.ts +34 -0
  302. package/models/offset-meta.ts +38 -0
  303. package/models/offset-pagination.ts +38 -0
  304. package/models/online-status.ts +23 -0
  305. package/models/paginated-channel-connection-record-data-inner.ts +43 -0
  306. package/models/paginated-channel-connection-record.ts +36 -0
  307. package/models/paginated-channel-endpoint-record-data-inner.ts +47 -0
  308. package/models/paginated-channel-endpoint-record.ts +36 -0
  309. package/models/paginated-context-record-data-inner.ts +42 -0
  310. package/models/paginated-context-record.ts +36 -0
  311. package/models/paginated-integration-record-data-inner.ts +59 -0
  312. package/models/paginated-integration-record.ts +36 -0
  313. package/models/paginated-layout-record-data-inner.ts +37 -0
  314. package/models/paginated-layout-record.ts +36 -0
  315. package/models/paginated-subscriber-record-data-inner.ts +69 -0
  316. package/models/paginated-subscriber-record.ts +36 -0
  317. package/models/paginated-topic-record-data-inner.ts +28 -0
  318. package/models/paginated-topic-record.ts +36 -0
  319. package/models/paginated-topic-subscription-record-data-inner.ts +39 -0
  320. package/models/paginated-topic-subscription-record.ts +36 -0
  321. package/models/paginated-workflow-record-data-inner.ts +58 -0
  322. package/models/paginated-workflow-record.ts +36 -0
  323. package/models/pagination-query.ts +34 -0
  324. package/models/patch-credentials.ts +29 -0
  325. package/models/plan-limits-response.ts +55 -0
  326. package/models/plan.ts +32 -0
  327. package/models/portal-url.ts +26 -0
  328. package/models/preference-channels.ts +27 -0
  329. package/models/preference-record.ts +32 -0
  330. package/models/preview-result.ts +20 -0
  331. package/models/price-info.ts +38 -0
  332. package/models/prices.ts +26 -0
  333. package/models/project-record.ts +46 -0
  334. package/models/set-credentials.ts +29 -0
  335. package/models/step-preview.ts +23 -0
  336. package/models/step-record.ts +36 -0
  337. package/models/step-type.ts +37 -0
  338. package/models/subscriber-credential.ts +26 -0
  339. package/models/subscriber-payload.ts +24 -0
  340. package/models/subscriber-record.ts +69 -0
  341. package/models/subscription.ts +73 -0
  342. package/models/sync-workflow.ts +26 -0
  343. package/models/system-avatar-icon.ts +33 -0
  344. package/models/topic-record.ts +28 -0
  345. package/models/topic-subscribers.ts +23 -0
  346. package/models/topic-subscription-record.ts +39 -0
  347. package/models/topic-subscription.ts +27 -0
  348. package/models/trial-info.ts +38 -0
  349. package/models/trigger-event.ts +49 -0
  350. package/models/trigger-recipients-one-of.ts +23 -0
  351. package/models/trigger-recipients.ts +29 -0
  352. package/models/trigger-result.ts +39 -0
  353. package/models/trigger-status.ts +34 -0
  354. package/models/unseen-count.ts +23 -0
  355. package/models/update-channel-connection.ts +23 -0
  356. package/models/update-channel-endpoint.ts +27 -0
  357. package/models/update-context.ts +26 -0
  358. package/models/update-inbox-preferences.ts +27 -0
  359. package/models/update-integration.ts +38 -0
  360. package/models/update-layout.ts +29 -0
  361. package/models/update-notification-group.ts +26 -0
  362. package/models/update-preference.ts +27 -0
  363. package/models/update-project.ts +33 -0
  364. package/models/update-subscriber.ts +54 -0
  365. package/models/update-subscription-meta.ts +23 -0
  366. package/models/update-topic.ts +26 -0
  367. package/models/update-workflow.ts +52 -0
  368. package/models/usage.ts +59 -0
  369. package/models/webhook-record.ts +46 -0
  370. package/models/widget-settings.ts +26 -0
  371. package/models/workflow-record.ts +58 -0
  372. package/models/workflow-run-record.ts +46 -0
  373. package/models/workflow-stats-response.ts +38 -0
  374. package/models/workflow-status.ts +26 -0
  375. package/models/workflow-step-create.ts +51 -0
  376. package/package.json +9 -33
  377. package/tsconfig.esm.json +7 -0
  378. package/tsconfig.json +18 -0
@@ -0,0 +1,1075 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * enbbox API
5
+ * Notification infrastructure API — open-source alternative to Novu/Courier
6
+ *
7
+ * The version of the OpenAPI document: 0.1.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+
16
+ import type { Configuration } from '../configuration';
17
+ import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
18
+ import globalAxios from 'axios';
19
+ // Some imports not used depending on template conditions
20
+ // @ts-ignore
21
+ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction, replaceWithSerializableTypeIfNeeded } from '../common';
22
+ // @ts-ignore
23
+ import { BASE_PATH, COLLECTION_FORMATS, type RequestArgs, BaseAPI, RequiredError, operationServerMap } from '../base';
24
+ // @ts-ignore
25
+ import type { ApiKeyCreated } from '../models';
26
+ // @ts-ignore
27
+ import type { ApiKeyInfo } from '../models';
28
+ // @ts-ignore
29
+ import type { CreateProject } from '../models';
30
+ // @ts-ignore
31
+ import type { ErrorDetail } from '../models';
32
+ // @ts-ignore
33
+ import type { InviteMemberBody } from '../models';
34
+ // @ts-ignore
35
+ import type { MemberRecord } from '../models';
36
+ // @ts-ignore
37
+ import type { ProjectRecord } from '../models';
38
+ // @ts-ignore
39
+ import type { UpdateProject } from '../models';
40
+ /**
41
+ * ProjectsApi - axios parameter creator
42
+ */
43
+ export const ProjectsApiAxiosParamCreator = function (configuration?: Configuration) {
44
+ return {
45
+ /**
46
+ *
47
+ * @summary POST /v1/projects/ — create a new project
48
+ * @param {CreateProject} createProject
49
+ * @param {*} [options] Override http request option.
50
+ * @throws {RequiredError}
51
+ */
52
+ createProject: async (createProject: CreateProject, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
53
+ // verify required parameter 'createProject' is not null or undefined
54
+ assertParamExists('createProject', 'createProject', createProject)
55
+ const localVarPath = `/v1/projects/`;
56
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
57
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
58
+ let baseOptions;
59
+ if (configuration) {
60
+ baseOptions = configuration.baseOptions;
61
+ }
62
+
63
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
64
+ const localVarHeaderParameter = {} as any;
65
+ const localVarQueryParameter = {} as any;
66
+
67
+ // authentication bearer_auth required
68
+ // http bearer authentication required
69
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
70
+
71
+ localVarHeaderParameter['Content-Type'] = 'application/json';
72
+ localVarHeaderParameter['Accept'] = 'application/json';
73
+
74
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
75
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
76
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
77
+ localVarRequestOptions.data = serializeDataIfNeeded(createProject, localVarRequestOptions, configuration)
78
+
79
+ return {
80
+ url: toPathString(localVarUrlObj),
81
+ options: localVarRequestOptions,
82
+ };
83
+ },
84
+ /**
85
+ *
86
+ * @summary DELETE /v1/projects/{id}/api-keys/{key_id}/ — revoke an API key by ID
87
+ * @param {string} id Project ID
88
+ * @param {string} keyId API Key ID
89
+ * @param {*} [options] Override http request option.
90
+ * @throws {RequiredError}
91
+ */
92
+ deleteApiKey: async (id: string, keyId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
93
+ // verify required parameter 'id' is not null or undefined
94
+ assertParamExists('deleteApiKey', 'id', id)
95
+ // verify required parameter 'keyId' is not null or undefined
96
+ assertParamExists('deleteApiKey', 'keyId', keyId)
97
+ const localVarPath = `/v1/projects/{id}/api-keys/{key_id}/`
98
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)))
99
+ .replace(`{${"key_id"}}`, encodeURIComponent(String(keyId)));
100
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
101
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
102
+ let baseOptions;
103
+ if (configuration) {
104
+ baseOptions = configuration.baseOptions;
105
+ }
106
+
107
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
108
+ const localVarHeaderParameter = {} as any;
109
+ const localVarQueryParameter = {} as any;
110
+
111
+ // authentication bearer_auth required
112
+ // http bearer authentication required
113
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
114
+
115
+ localVarHeaderParameter['Accept'] = 'application/json';
116
+
117
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
118
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
119
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
120
+
121
+ return {
122
+ url: toPathString(localVarUrlObj),
123
+ options: localVarRequestOptions,
124
+ };
125
+ },
126
+ /**
127
+ *
128
+ * @summary DELETE /v1/projects/{id}/ — delete a project (owner only)
129
+ * @param {string} id Project ID
130
+ * @param {*} [options] Override http request option.
131
+ * @throws {RequiredError}
132
+ */
133
+ deleteProject: async (id: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
134
+ // verify required parameter 'id' is not null or undefined
135
+ assertParamExists('deleteProject', 'id', id)
136
+ const localVarPath = `/v1/projects/{id}/`
137
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
138
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
139
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
140
+ let baseOptions;
141
+ if (configuration) {
142
+ baseOptions = configuration.baseOptions;
143
+ }
144
+
145
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
146
+ const localVarHeaderParameter = {} as any;
147
+ const localVarQueryParameter = {} as any;
148
+
149
+ // authentication bearer_auth required
150
+ // http bearer authentication required
151
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
152
+
153
+ localVarHeaderParameter['Accept'] = 'application/json';
154
+
155
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
156
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
157
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
158
+
159
+ return {
160
+ url: toPathString(localVarUrlObj),
161
+ options: localVarRequestOptions,
162
+ };
163
+ },
164
+ /**
165
+ *
166
+ * @summary POST /v1/projects/{id}/api-keys/ — generate a new API key
167
+ * @param {string} id Project ID
168
+ * @param {*} [options] Override http request option.
169
+ * @throws {RequiredError}
170
+ */
171
+ generateApiKey: async (id: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
172
+ // verify required parameter 'id' is not null or undefined
173
+ assertParamExists('generateApiKey', 'id', id)
174
+ const localVarPath = `/v1/projects/{id}/api-keys/`
175
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
176
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
177
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
178
+ let baseOptions;
179
+ if (configuration) {
180
+ baseOptions = configuration.baseOptions;
181
+ }
182
+
183
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
184
+ const localVarHeaderParameter = {} as any;
185
+ const localVarQueryParameter = {} as any;
186
+
187
+ // authentication bearer_auth required
188
+ // http bearer authentication required
189
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
190
+
191
+ localVarHeaderParameter['Accept'] = 'application/json';
192
+
193
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
194
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
195
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
196
+
197
+ return {
198
+ url: toPathString(localVarUrlObj),
199
+ options: localVarRequestOptions,
200
+ };
201
+ },
202
+ /**
203
+ *
204
+ * @summary GET /v1/projects/{id}/ — get a project by ID
205
+ * @param {string} id Project ID
206
+ * @param {*} [options] Override http request option.
207
+ * @throws {RequiredError}
208
+ */
209
+ getProject: async (id: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
210
+ // verify required parameter 'id' is not null or undefined
211
+ assertParamExists('getProject', 'id', id)
212
+ const localVarPath = `/v1/projects/{id}/`
213
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
214
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
215
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
216
+ let baseOptions;
217
+ if (configuration) {
218
+ baseOptions = configuration.baseOptions;
219
+ }
220
+
221
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
222
+ const localVarHeaderParameter = {} as any;
223
+ const localVarQueryParameter = {} as any;
224
+
225
+ // authentication bearer_auth required
226
+ // http bearer authentication required
227
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
228
+
229
+ localVarHeaderParameter['Accept'] = 'application/json';
230
+
231
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
232
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
233
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
234
+
235
+ return {
236
+ url: toPathString(localVarUrlObj),
237
+ options: localVarRequestOptions,
238
+ };
239
+ },
240
+ /**
241
+ *
242
+ * @summary POST /v1/projects/{id}/members/ — invite a member
243
+ * @param {string} id Project ID
244
+ * @param {InviteMemberBody} inviteMemberBody
245
+ * @param {*} [options] Override http request option.
246
+ * @throws {RequiredError}
247
+ */
248
+ inviteMember: async (id: string, inviteMemberBody: InviteMemberBody, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
249
+ // verify required parameter 'id' is not null or undefined
250
+ assertParamExists('inviteMember', 'id', id)
251
+ // verify required parameter 'inviteMemberBody' is not null or undefined
252
+ assertParamExists('inviteMember', 'inviteMemberBody', inviteMemberBody)
253
+ const localVarPath = `/v1/projects/{id}/members/`
254
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
255
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
256
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
257
+ let baseOptions;
258
+ if (configuration) {
259
+ baseOptions = configuration.baseOptions;
260
+ }
261
+
262
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
263
+ const localVarHeaderParameter = {} as any;
264
+ const localVarQueryParameter = {} as any;
265
+
266
+ // authentication bearer_auth required
267
+ // http bearer authentication required
268
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
269
+
270
+ localVarHeaderParameter['Content-Type'] = 'application/json';
271
+ localVarHeaderParameter['Accept'] = 'application/json';
272
+
273
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
274
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
275
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
276
+ localVarRequestOptions.data = serializeDataIfNeeded(inviteMemberBody, localVarRequestOptions, configuration)
277
+
278
+ return {
279
+ url: toPathString(localVarUrlObj),
280
+ options: localVarRequestOptions,
281
+ };
282
+ },
283
+ /**
284
+ *
285
+ * @summary GET /v1/projects/{id}/api-keys/ — list API keys for a project
286
+ * @param {string} id Project ID
287
+ * @param {*} [options] Override http request option.
288
+ * @throws {RequiredError}
289
+ */
290
+ listApiKeys: async (id: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
291
+ // verify required parameter 'id' is not null or undefined
292
+ assertParamExists('listApiKeys', 'id', id)
293
+ const localVarPath = `/v1/projects/{id}/api-keys/`
294
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
295
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
296
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
297
+ let baseOptions;
298
+ if (configuration) {
299
+ baseOptions = configuration.baseOptions;
300
+ }
301
+
302
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
303
+ const localVarHeaderParameter = {} as any;
304
+ const localVarQueryParameter = {} as any;
305
+
306
+ // authentication bearer_auth required
307
+ // http bearer authentication required
308
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
309
+
310
+ localVarHeaderParameter['Accept'] = 'application/json';
311
+
312
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
313
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
314
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
315
+
316
+ return {
317
+ url: toPathString(localVarUrlObj),
318
+ options: localVarRequestOptions,
319
+ };
320
+ },
321
+ /**
322
+ *
323
+ * @summary GET /v1/projects/{id}/members/ — list project members
324
+ * @param {string} id Project ID
325
+ * @param {*} [options] Override http request option.
326
+ * @throws {RequiredError}
327
+ */
328
+ listMembers: async (id: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
329
+ // verify required parameter 'id' is not null or undefined
330
+ assertParamExists('listMembers', 'id', id)
331
+ const localVarPath = `/v1/projects/{id}/members/`
332
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
333
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
334
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
335
+ let baseOptions;
336
+ if (configuration) {
337
+ baseOptions = configuration.baseOptions;
338
+ }
339
+
340
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
341
+ const localVarHeaderParameter = {} as any;
342
+ const localVarQueryParameter = {} as any;
343
+
344
+ // authentication bearer_auth required
345
+ // http bearer authentication required
346
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
347
+
348
+ localVarHeaderParameter['Accept'] = 'application/json';
349
+
350
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
351
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
352
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
353
+
354
+ return {
355
+ url: toPathString(localVarUrlObj),
356
+ options: localVarRequestOptions,
357
+ };
358
+ },
359
+ /**
360
+ *
361
+ * @summary GET /v1/projects/ — list all projects the user is a member of
362
+ * @param {*} [options] Override http request option.
363
+ * @throws {RequiredError}
364
+ */
365
+ listProjects: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
366
+ const localVarPath = `/v1/projects/`;
367
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
368
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
369
+ let baseOptions;
370
+ if (configuration) {
371
+ baseOptions = configuration.baseOptions;
372
+ }
373
+
374
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
375
+ const localVarHeaderParameter = {} as any;
376
+ const localVarQueryParameter = {} as any;
377
+
378
+ // authentication bearer_auth required
379
+ // http bearer authentication required
380
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
381
+
382
+ localVarHeaderParameter['Accept'] = 'application/json';
383
+
384
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
385
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
386
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
387
+
388
+ return {
389
+ url: toPathString(localVarUrlObj),
390
+ options: localVarRequestOptions,
391
+ };
392
+ },
393
+ /**
394
+ *
395
+ * @summary GET /v1/projects/{id}/tags/ — returns unique tags from all workflows in the project
396
+ * @param {string} id Project ID
397
+ * @param {*} [options] Override http request option.
398
+ * @throws {RequiredError}
399
+ */
400
+ projectTags: async (id: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
401
+ // verify required parameter 'id' is not null or undefined
402
+ assertParamExists('projectTags', 'id', id)
403
+ const localVarPath = `/v1/projects/{id}/tags/`
404
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
405
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
406
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
407
+ let baseOptions;
408
+ if (configuration) {
409
+ baseOptions = configuration.baseOptions;
410
+ }
411
+
412
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
413
+ const localVarHeaderParameter = {} as any;
414
+ const localVarQueryParameter = {} as any;
415
+
416
+ // authentication bearer_auth required
417
+ // http bearer authentication required
418
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
419
+
420
+ localVarHeaderParameter['Accept'] = 'application/json';
421
+
422
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
423
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
424
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
425
+
426
+ return {
427
+ url: toPathString(localVarUrlObj),
428
+ options: localVarRequestOptions,
429
+ };
430
+ },
431
+ /**
432
+ *
433
+ * @summary DELETE /v1/projects/{id}/members/{member_id}/ — remove a member
434
+ * @param {string} id Project ID
435
+ * @param {string} memberId Member ID
436
+ * @param {*} [options] Override http request option.
437
+ * @throws {RequiredError}
438
+ */
439
+ removeMember: async (id: string, memberId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
440
+ // verify required parameter 'id' is not null or undefined
441
+ assertParamExists('removeMember', 'id', id)
442
+ // verify required parameter 'memberId' is not null or undefined
443
+ assertParamExists('removeMember', 'memberId', memberId)
444
+ const localVarPath = `/v1/projects/{id}/members/{member_id}/`
445
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)))
446
+ .replace(`{${"member_id"}}`, encodeURIComponent(String(memberId)));
447
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
448
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
449
+ let baseOptions;
450
+ if (configuration) {
451
+ baseOptions = configuration.baseOptions;
452
+ }
453
+
454
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
455
+ const localVarHeaderParameter = {} as any;
456
+ const localVarQueryParameter = {} as any;
457
+
458
+ // authentication bearer_auth required
459
+ // http bearer authentication required
460
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
461
+
462
+ localVarHeaderParameter['Accept'] = 'application/json';
463
+
464
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
465
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
466
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
467
+
468
+ return {
469
+ url: toPathString(localVarUrlObj),
470
+ options: localVarRequestOptions,
471
+ };
472
+ },
473
+ /**
474
+ *
475
+ * @summary PATCH /v1/projects/{id}/ — update a project
476
+ * @param {string} id Project ID
477
+ * @param {UpdateProject} updateProject
478
+ * @param {*} [options] Override http request option.
479
+ * @throws {RequiredError}
480
+ */
481
+ updateProject: async (id: string, updateProject: UpdateProject, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
482
+ // verify required parameter 'id' is not null or undefined
483
+ assertParamExists('updateProject', 'id', id)
484
+ // verify required parameter 'updateProject' is not null or undefined
485
+ assertParamExists('updateProject', 'updateProject', updateProject)
486
+ const localVarPath = `/v1/projects/{id}/`
487
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
488
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
489
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
490
+ let baseOptions;
491
+ if (configuration) {
492
+ baseOptions = configuration.baseOptions;
493
+ }
494
+
495
+ const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
496
+ const localVarHeaderParameter = {} as any;
497
+ const localVarQueryParameter = {} as any;
498
+
499
+ // authentication bearer_auth required
500
+ // http bearer authentication required
501
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
502
+
503
+ localVarHeaderParameter['Content-Type'] = 'application/json';
504
+ localVarHeaderParameter['Accept'] = 'application/json';
505
+
506
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
507
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
508
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
509
+ localVarRequestOptions.data = serializeDataIfNeeded(updateProject, localVarRequestOptions, configuration)
510
+
511
+ return {
512
+ url: toPathString(localVarUrlObj),
513
+ options: localVarRequestOptions,
514
+ };
515
+ },
516
+ }
517
+ };
518
+
519
+ /**
520
+ * ProjectsApi - functional programming interface
521
+ */
522
+ export const ProjectsApiFp = function(configuration?: Configuration) {
523
+ const localVarAxiosParamCreator = ProjectsApiAxiosParamCreator(configuration)
524
+ return {
525
+ /**
526
+ *
527
+ * @summary POST /v1/projects/ — create a new project
528
+ * @param {CreateProject} createProject
529
+ * @param {*} [options] Override http request option.
530
+ * @throws {RequiredError}
531
+ */
532
+ async createProject(createProject: CreateProject, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ProjectRecord>> {
533
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createProject(createProject, options);
534
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
535
+ const localVarOperationServerBasePath = operationServerMap['ProjectsApi.createProject']?.[localVarOperationServerIndex]?.url;
536
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
537
+ },
538
+ /**
539
+ *
540
+ * @summary DELETE /v1/projects/{id}/api-keys/{key_id}/ — revoke an API key by ID
541
+ * @param {string} id Project ID
542
+ * @param {string} keyId API Key ID
543
+ * @param {*} [options] Override http request option.
544
+ * @throws {RequiredError}
545
+ */
546
+ async deleteApiKey(id: string, keyId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
547
+ const localVarAxiosArgs = await localVarAxiosParamCreator.deleteApiKey(id, keyId, options);
548
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
549
+ const localVarOperationServerBasePath = operationServerMap['ProjectsApi.deleteApiKey']?.[localVarOperationServerIndex]?.url;
550
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
551
+ },
552
+ /**
553
+ *
554
+ * @summary DELETE /v1/projects/{id}/ — delete a project (owner only)
555
+ * @param {string} id Project ID
556
+ * @param {*} [options] Override http request option.
557
+ * @throws {RequiredError}
558
+ */
559
+ async deleteProject(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
560
+ const localVarAxiosArgs = await localVarAxiosParamCreator.deleteProject(id, options);
561
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
562
+ const localVarOperationServerBasePath = operationServerMap['ProjectsApi.deleteProject']?.[localVarOperationServerIndex]?.url;
563
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
564
+ },
565
+ /**
566
+ *
567
+ * @summary POST /v1/projects/{id}/api-keys/ — generate a new API key
568
+ * @param {string} id Project ID
569
+ * @param {*} [options] Override http request option.
570
+ * @throws {RequiredError}
571
+ */
572
+ async generateApiKey(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ApiKeyCreated>> {
573
+ const localVarAxiosArgs = await localVarAxiosParamCreator.generateApiKey(id, options);
574
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
575
+ const localVarOperationServerBasePath = operationServerMap['ProjectsApi.generateApiKey']?.[localVarOperationServerIndex]?.url;
576
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
577
+ },
578
+ /**
579
+ *
580
+ * @summary GET /v1/projects/{id}/ — get a project by ID
581
+ * @param {string} id Project ID
582
+ * @param {*} [options] Override http request option.
583
+ * @throws {RequiredError}
584
+ */
585
+ async getProject(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ProjectRecord>> {
586
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getProject(id, options);
587
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
588
+ const localVarOperationServerBasePath = operationServerMap['ProjectsApi.getProject']?.[localVarOperationServerIndex]?.url;
589
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
590
+ },
591
+ /**
592
+ *
593
+ * @summary POST /v1/projects/{id}/members/ — invite a member
594
+ * @param {string} id Project ID
595
+ * @param {InviteMemberBody} inviteMemberBody
596
+ * @param {*} [options] Override http request option.
597
+ * @throws {RequiredError}
598
+ */
599
+ async inviteMember(id: string, inviteMemberBody: InviteMemberBody, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<MemberRecord>> {
600
+ const localVarAxiosArgs = await localVarAxiosParamCreator.inviteMember(id, inviteMemberBody, options);
601
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
602
+ const localVarOperationServerBasePath = operationServerMap['ProjectsApi.inviteMember']?.[localVarOperationServerIndex]?.url;
603
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
604
+ },
605
+ /**
606
+ *
607
+ * @summary GET /v1/projects/{id}/api-keys/ — list API keys for a project
608
+ * @param {string} id Project ID
609
+ * @param {*} [options] Override http request option.
610
+ * @throws {RequiredError}
611
+ */
612
+ async listApiKeys(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<ApiKeyInfo>>> {
613
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listApiKeys(id, options);
614
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
615
+ const localVarOperationServerBasePath = operationServerMap['ProjectsApi.listApiKeys']?.[localVarOperationServerIndex]?.url;
616
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
617
+ },
618
+ /**
619
+ *
620
+ * @summary GET /v1/projects/{id}/members/ — list project members
621
+ * @param {string} id Project ID
622
+ * @param {*} [options] Override http request option.
623
+ * @throws {RequiredError}
624
+ */
625
+ async listMembers(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<MemberRecord>>> {
626
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listMembers(id, options);
627
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
628
+ const localVarOperationServerBasePath = operationServerMap['ProjectsApi.listMembers']?.[localVarOperationServerIndex]?.url;
629
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
630
+ },
631
+ /**
632
+ *
633
+ * @summary GET /v1/projects/ — list all projects the user is a member of
634
+ * @param {*} [options] Override http request option.
635
+ * @throws {RequiredError}
636
+ */
637
+ async listProjects(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<ProjectRecord>>> {
638
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listProjects(options);
639
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
640
+ const localVarOperationServerBasePath = operationServerMap['ProjectsApi.listProjects']?.[localVarOperationServerIndex]?.url;
641
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
642
+ },
643
+ /**
644
+ *
645
+ * @summary GET /v1/projects/{id}/tags/ — returns unique tags from all workflows in the project
646
+ * @param {string} id Project ID
647
+ * @param {*} [options] Override http request option.
648
+ * @throws {RequiredError}
649
+ */
650
+ async projectTags(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<string>>> {
651
+ const localVarAxiosArgs = await localVarAxiosParamCreator.projectTags(id, options);
652
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
653
+ const localVarOperationServerBasePath = operationServerMap['ProjectsApi.projectTags']?.[localVarOperationServerIndex]?.url;
654
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
655
+ },
656
+ /**
657
+ *
658
+ * @summary DELETE /v1/projects/{id}/members/{member_id}/ — remove a member
659
+ * @param {string} id Project ID
660
+ * @param {string} memberId Member ID
661
+ * @param {*} [options] Override http request option.
662
+ * @throws {RequiredError}
663
+ */
664
+ async removeMember(id: string, memberId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
665
+ const localVarAxiosArgs = await localVarAxiosParamCreator.removeMember(id, memberId, options);
666
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
667
+ const localVarOperationServerBasePath = operationServerMap['ProjectsApi.removeMember']?.[localVarOperationServerIndex]?.url;
668
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
669
+ },
670
+ /**
671
+ *
672
+ * @summary PATCH /v1/projects/{id}/ — update a project
673
+ * @param {string} id Project ID
674
+ * @param {UpdateProject} updateProject
675
+ * @param {*} [options] Override http request option.
676
+ * @throws {RequiredError}
677
+ */
678
+ async updateProject(id: string, updateProject: UpdateProject, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ProjectRecord>> {
679
+ const localVarAxiosArgs = await localVarAxiosParamCreator.updateProject(id, updateProject, options);
680
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
681
+ const localVarOperationServerBasePath = operationServerMap['ProjectsApi.updateProject']?.[localVarOperationServerIndex]?.url;
682
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
683
+ },
684
+ }
685
+ };
686
+
687
+ /**
688
+ * ProjectsApi - factory interface
689
+ */
690
+ export const ProjectsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
691
+ const localVarFp = ProjectsApiFp(configuration)
692
+ return {
693
+ /**
694
+ *
695
+ * @summary POST /v1/projects/ — create a new project
696
+ * @param {CreateProject} createProject
697
+ * @param {*} [options] Override http request option.
698
+ * @throws {RequiredError}
699
+ */
700
+ createProject(createProject: CreateProject, options?: RawAxiosRequestConfig): AxiosPromise<ProjectRecord> {
701
+ return localVarFp.createProject(createProject, options).then((request) => request(axios, basePath));
702
+ },
703
+ /**
704
+ *
705
+ * @summary DELETE /v1/projects/{id}/api-keys/{key_id}/ — revoke an API key by ID
706
+ * @param {string} id Project ID
707
+ * @param {string} keyId API Key ID
708
+ * @param {*} [options] Override http request option.
709
+ * @throws {RequiredError}
710
+ */
711
+ deleteApiKey(id: string, keyId: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
712
+ return localVarFp.deleteApiKey(id, keyId, options).then((request) => request(axios, basePath));
713
+ },
714
+ /**
715
+ *
716
+ * @summary DELETE /v1/projects/{id}/ — delete a project (owner only)
717
+ * @param {string} id Project ID
718
+ * @param {*} [options] Override http request option.
719
+ * @throws {RequiredError}
720
+ */
721
+ deleteProject(id: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
722
+ return localVarFp.deleteProject(id, options).then((request) => request(axios, basePath));
723
+ },
724
+ /**
725
+ *
726
+ * @summary POST /v1/projects/{id}/api-keys/ — generate a new API key
727
+ * @param {string} id Project ID
728
+ * @param {*} [options] Override http request option.
729
+ * @throws {RequiredError}
730
+ */
731
+ generateApiKey(id: string, options?: RawAxiosRequestConfig): AxiosPromise<ApiKeyCreated> {
732
+ return localVarFp.generateApiKey(id, options).then((request) => request(axios, basePath));
733
+ },
734
+ /**
735
+ *
736
+ * @summary GET /v1/projects/{id}/ — get a project by ID
737
+ * @param {string} id Project ID
738
+ * @param {*} [options] Override http request option.
739
+ * @throws {RequiredError}
740
+ */
741
+ getProject(id: string, options?: RawAxiosRequestConfig): AxiosPromise<ProjectRecord> {
742
+ return localVarFp.getProject(id, options).then((request) => request(axios, basePath));
743
+ },
744
+ /**
745
+ *
746
+ * @summary POST /v1/projects/{id}/members/ — invite a member
747
+ * @param {string} id Project ID
748
+ * @param {InviteMemberBody} inviteMemberBody
749
+ * @param {*} [options] Override http request option.
750
+ * @throws {RequiredError}
751
+ */
752
+ inviteMember(id: string, inviteMemberBody: InviteMemberBody, options?: RawAxiosRequestConfig): AxiosPromise<MemberRecord> {
753
+ return localVarFp.inviteMember(id, inviteMemberBody, options).then((request) => request(axios, basePath));
754
+ },
755
+ /**
756
+ *
757
+ * @summary GET /v1/projects/{id}/api-keys/ — list API keys for a project
758
+ * @param {string} id Project ID
759
+ * @param {*} [options] Override http request option.
760
+ * @throws {RequiredError}
761
+ */
762
+ listApiKeys(id: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<ApiKeyInfo>> {
763
+ return localVarFp.listApiKeys(id, options).then((request) => request(axios, basePath));
764
+ },
765
+ /**
766
+ *
767
+ * @summary GET /v1/projects/{id}/members/ — list project members
768
+ * @param {string} id Project ID
769
+ * @param {*} [options] Override http request option.
770
+ * @throws {RequiredError}
771
+ */
772
+ listMembers(id: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<MemberRecord>> {
773
+ return localVarFp.listMembers(id, options).then((request) => request(axios, basePath));
774
+ },
775
+ /**
776
+ *
777
+ * @summary GET /v1/projects/ — list all projects the user is a member of
778
+ * @param {*} [options] Override http request option.
779
+ * @throws {RequiredError}
780
+ */
781
+ listProjects(options?: RawAxiosRequestConfig): AxiosPromise<Array<ProjectRecord>> {
782
+ return localVarFp.listProjects(options).then((request) => request(axios, basePath));
783
+ },
784
+ /**
785
+ *
786
+ * @summary GET /v1/projects/{id}/tags/ — returns unique tags from all workflows in the project
787
+ * @param {string} id Project ID
788
+ * @param {*} [options] Override http request option.
789
+ * @throws {RequiredError}
790
+ */
791
+ projectTags(id: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<string>> {
792
+ return localVarFp.projectTags(id, options).then((request) => request(axios, basePath));
793
+ },
794
+ /**
795
+ *
796
+ * @summary DELETE /v1/projects/{id}/members/{member_id}/ — remove a member
797
+ * @param {string} id Project ID
798
+ * @param {string} memberId Member ID
799
+ * @param {*} [options] Override http request option.
800
+ * @throws {RequiredError}
801
+ */
802
+ removeMember(id: string, memberId: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
803
+ return localVarFp.removeMember(id, memberId, options).then((request) => request(axios, basePath));
804
+ },
805
+ /**
806
+ *
807
+ * @summary PATCH /v1/projects/{id}/ — update a project
808
+ * @param {string} id Project ID
809
+ * @param {UpdateProject} updateProject
810
+ * @param {*} [options] Override http request option.
811
+ * @throws {RequiredError}
812
+ */
813
+ updateProject(id: string, updateProject: UpdateProject, options?: RawAxiosRequestConfig): AxiosPromise<ProjectRecord> {
814
+ return localVarFp.updateProject(id, updateProject, options).then((request) => request(axios, basePath));
815
+ },
816
+ };
817
+ };
818
+
819
+ /**
820
+ * ProjectsApi - interface
821
+ */
822
+ export interface ProjectsApiInterface {
823
+ /**
824
+ *
825
+ * @summary POST /v1/projects/ — create a new project
826
+ * @param {CreateProject} createProject
827
+ * @param {*} [options] Override http request option.
828
+ * @throws {RequiredError}
829
+ */
830
+ createProject(createProject: CreateProject, options?: RawAxiosRequestConfig): AxiosPromise<ProjectRecord>;
831
+
832
+ /**
833
+ *
834
+ * @summary DELETE /v1/projects/{id}/api-keys/{key_id}/ — revoke an API key by ID
835
+ * @param {string} id Project ID
836
+ * @param {string} keyId API Key ID
837
+ * @param {*} [options] Override http request option.
838
+ * @throws {RequiredError}
839
+ */
840
+ deleteApiKey(id: string, keyId: string, options?: RawAxiosRequestConfig): AxiosPromise<void>;
841
+
842
+ /**
843
+ *
844
+ * @summary DELETE /v1/projects/{id}/ — delete a project (owner only)
845
+ * @param {string} id Project ID
846
+ * @param {*} [options] Override http request option.
847
+ * @throws {RequiredError}
848
+ */
849
+ deleteProject(id: string, options?: RawAxiosRequestConfig): AxiosPromise<void>;
850
+
851
+ /**
852
+ *
853
+ * @summary POST /v1/projects/{id}/api-keys/ — generate a new API key
854
+ * @param {string} id Project ID
855
+ * @param {*} [options] Override http request option.
856
+ * @throws {RequiredError}
857
+ */
858
+ generateApiKey(id: string, options?: RawAxiosRequestConfig): AxiosPromise<ApiKeyCreated>;
859
+
860
+ /**
861
+ *
862
+ * @summary GET /v1/projects/{id}/ — get a project by ID
863
+ * @param {string} id Project ID
864
+ * @param {*} [options] Override http request option.
865
+ * @throws {RequiredError}
866
+ */
867
+ getProject(id: string, options?: RawAxiosRequestConfig): AxiosPromise<ProjectRecord>;
868
+
869
+ /**
870
+ *
871
+ * @summary POST /v1/projects/{id}/members/ — invite a member
872
+ * @param {string} id Project ID
873
+ * @param {InviteMemberBody} inviteMemberBody
874
+ * @param {*} [options] Override http request option.
875
+ * @throws {RequiredError}
876
+ */
877
+ inviteMember(id: string, inviteMemberBody: InviteMemberBody, options?: RawAxiosRequestConfig): AxiosPromise<MemberRecord>;
878
+
879
+ /**
880
+ *
881
+ * @summary GET /v1/projects/{id}/api-keys/ — list API keys for a project
882
+ * @param {string} id Project ID
883
+ * @param {*} [options] Override http request option.
884
+ * @throws {RequiredError}
885
+ */
886
+ listApiKeys(id: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<ApiKeyInfo>>;
887
+
888
+ /**
889
+ *
890
+ * @summary GET /v1/projects/{id}/members/ — list project members
891
+ * @param {string} id Project ID
892
+ * @param {*} [options] Override http request option.
893
+ * @throws {RequiredError}
894
+ */
895
+ listMembers(id: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<MemberRecord>>;
896
+
897
+ /**
898
+ *
899
+ * @summary GET /v1/projects/ — list all projects the user is a member of
900
+ * @param {*} [options] Override http request option.
901
+ * @throws {RequiredError}
902
+ */
903
+ listProjects(options?: RawAxiosRequestConfig): AxiosPromise<Array<ProjectRecord>>;
904
+
905
+ /**
906
+ *
907
+ * @summary GET /v1/projects/{id}/tags/ — returns unique tags from all workflows in the project
908
+ * @param {string} id Project ID
909
+ * @param {*} [options] Override http request option.
910
+ * @throws {RequiredError}
911
+ */
912
+ projectTags(id: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<string>>;
913
+
914
+ /**
915
+ *
916
+ * @summary DELETE /v1/projects/{id}/members/{member_id}/ — remove a member
917
+ * @param {string} id Project ID
918
+ * @param {string} memberId Member ID
919
+ * @param {*} [options] Override http request option.
920
+ * @throws {RequiredError}
921
+ */
922
+ removeMember(id: string, memberId: string, options?: RawAxiosRequestConfig): AxiosPromise<void>;
923
+
924
+ /**
925
+ *
926
+ * @summary PATCH /v1/projects/{id}/ — update a project
927
+ * @param {string} id Project ID
928
+ * @param {UpdateProject} updateProject
929
+ * @param {*} [options] Override http request option.
930
+ * @throws {RequiredError}
931
+ */
932
+ updateProject(id: string, updateProject: UpdateProject, options?: RawAxiosRequestConfig): AxiosPromise<ProjectRecord>;
933
+
934
+ }
935
+
936
+ /**
937
+ * ProjectsApi - object-oriented interface
938
+ */
939
+ export class ProjectsApi extends BaseAPI implements ProjectsApiInterface {
940
+ /**
941
+ *
942
+ * @summary POST /v1/projects/ — create a new project
943
+ * @param {CreateProject} createProject
944
+ * @param {*} [options] Override http request option.
945
+ * @throws {RequiredError}
946
+ */
947
+ public createProject(createProject: CreateProject, options?: RawAxiosRequestConfig) {
948
+ return ProjectsApiFp(this.configuration).createProject(createProject, options).then((request) => request(this.axios, this.basePath));
949
+ }
950
+
951
+ /**
952
+ *
953
+ * @summary DELETE /v1/projects/{id}/api-keys/{key_id}/ — revoke an API key by ID
954
+ * @param {string} id Project ID
955
+ * @param {string} keyId API Key ID
956
+ * @param {*} [options] Override http request option.
957
+ * @throws {RequiredError}
958
+ */
959
+ public deleteApiKey(id: string, keyId: string, options?: RawAxiosRequestConfig) {
960
+ return ProjectsApiFp(this.configuration).deleteApiKey(id, keyId, options).then((request) => request(this.axios, this.basePath));
961
+ }
962
+
963
+ /**
964
+ *
965
+ * @summary DELETE /v1/projects/{id}/ — delete a project (owner only)
966
+ * @param {string} id Project ID
967
+ * @param {*} [options] Override http request option.
968
+ * @throws {RequiredError}
969
+ */
970
+ public deleteProject(id: string, options?: RawAxiosRequestConfig) {
971
+ return ProjectsApiFp(this.configuration).deleteProject(id, options).then((request) => request(this.axios, this.basePath));
972
+ }
973
+
974
+ /**
975
+ *
976
+ * @summary POST /v1/projects/{id}/api-keys/ — generate a new API key
977
+ * @param {string} id Project ID
978
+ * @param {*} [options] Override http request option.
979
+ * @throws {RequiredError}
980
+ */
981
+ public generateApiKey(id: string, options?: RawAxiosRequestConfig) {
982
+ return ProjectsApiFp(this.configuration).generateApiKey(id, options).then((request) => request(this.axios, this.basePath));
983
+ }
984
+
985
+ /**
986
+ *
987
+ * @summary GET /v1/projects/{id}/ — get a project by ID
988
+ * @param {string} id Project ID
989
+ * @param {*} [options] Override http request option.
990
+ * @throws {RequiredError}
991
+ */
992
+ public getProject(id: string, options?: RawAxiosRequestConfig) {
993
+ return ProjectsApiFp(this.configuration).getProject(id, options).then((request) => request(this.axios, this.basePath));
994
+ }
995
+
996
+ /**
997
+ *
998
+ * @summary POST /v1/projects/{id}/members/ — invite a member
999
+ * @param {string} id Project ID
1000
+ * @param {InviteMemberBody} inviteMemberBody
1001
+ * @param {*} [options] Override http request option.
1002
+ * @throws {RequiredError}
1003
+ */
1004
+ public inviteMember(id: string, inviteMemberBody: InviteMemberBody, options?: RawAxiosRequestConfig) {
1005
+ return ProjectsApiFp(this.configuration).inviteMember(id, inviteMemberBody, options).then((request) => request(this.axios, this.basePath));
1006
+ }
1007
+
1008
+ /**
1009
+ *
1010
+ * @summary GET /v1/projects/{id}/api-keys/ — list API keys for a project
1011
+ * @param {string} id Project ID
1012
+ * @param {*} [options] Override http request option.
1013
+ * @throws {RequiredError}
1014
+ */
1015
+ public listApiKeys(id: string, options?: RawAxiosRequestConfig) {
1016
+ return ProjectsApiFp(this.configuration).listApiKeys(id, options).then((request) => request(this.axios, this.basePath));
1017
+ }
1018
+
1019
+ /**
1020
+ *
1021
+ * @summary GET /v1/projects/{id}/members/ — list project members
1022
+ * @param {string} id Project ID
1023
+ * @param {*} [options] Override http request option.
1024
+ * @throws {RequiredError}
1025
+ */
1026
+ public listMembers(id: string, options?: RawAxiosRequestConfig) {
1027
+ return ProjectsApiFp(this.configuration).listMembers(id, options).then((request) => request(this.axios, this.basePath));
1028
+ }
1029
+
1030
+ /**
1031
+ *
1032
+ * @summary GET /v1/projects/ — list all projects the user is a member of
1033
+ * @param {*} [options] Override http request option.
1034
+ * @throws {RequiredError}
1035
+ */
1036
+ public listProjects(options?: RawAxiosRequestConfig) {
1037
+ return ProjectsApiFp(this.configuration).listProjects(options).then((request) => request(this.axios, this.basePath));
1038
+ }
1039
+
1040
+ /**
1041
+ *
1042
+ * @summary GET /v1/projects/{id}/tags/ — returns unique tags from all workflows in the project
1043
+ * @param {string} id Project ID
1044
+ * @param {*} [options] Override http request option.
1045
+ * @throws {RequiredError}
1046
+ */
1047
+ public projectTags(id: string, options?: RawAxiosRequestConfig) {
1048
+ return ProjectsApiFp(this.configuration).projectTags(id, options).then((request) => request(this.axios, this.basePath));
1049
+ }
1050
+
1051
+ /**
1052
+ *
1053
+ * @summary DELETE /v1/projects/{id}/members/{member_id}/ — remove a member
1054
+ * @param {string} id Project ID
1055
+ * @param {string} memberId Member ID
1056
+ * @param {*} [options] Override http request option.
1057
+ * @throws {RequiredError}
1058
+ */
1059
+ public removeMember(id: string, memberId: string, options?: RawAxiosRequestConfig) {
1060
+ return ProjectsApiFp(this.configuration).removeMember(id, memberId, options).then((request) => request(this.axios, this.basePath));
1061
+ }
1062
+
1063
+ /**
1064
+ *
1065
+ * @summary PATCH /v1/projects/{id}/ — update a project
1066
+ * @param {string} id Project ID
1067
+ * @param {UpdateProject} updateProject
1068
+ * @param {*} [options] Override http request option.
1069
+ * @throws {RequiredError}
1070
+ */
1071
+ public updateProject(id: string, updateProject: UpdateProject, options?: RawAxiosRequestConfig) {
1072
+ return ProjectsApiFp(this.configuration).updateProject(id, updateProject, options).then((request) => request(this.axios, this.basePath));
1073
+ }
1074
+ }
1075
+