@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.
- package/.openapi-generator/FILES +375 -0
- package/.openapi-generator/VERSION +1 -0
- package/.openapi-generator-ignore +23 -0
- package/README.md +2 -2
- package/api/activity-api.ts +756 -0
- package/api/billing-api.ts +673 -0
- package/api/channel-connections-api.ts +510 -0
- package/api/channel-endpoints-api.ts +510 -0
- package/api/contexts-api.ts +534 -0
- package/api/events-api.ts +394 -0
- package/api/feature-flags-api.ts +132 -0
- package/api/health-api.ts +264 -0
- package/api/inbound-parse-api.ts +137 -0
- package/api/inbox-api.ts +1151 -0
- package/api/integrations-api.ts +833 -0
- package/api/layouts-api.ts +849 -0
- package/api/messages-api.ts +349 -0
- package/api/metrics-api.ts +128 -0
- package/api/notification-groups-api.ts +391 -0
- package/api/notifications-api.ts +326 -0
- package/api/preferences-api.ts +333 -0
- package/api/projects-api.ts +1075 -0
- package/api/subscribers-api.ts +1542 -0
- package/api/topics-api.ts +1352 -0
- package/api/translations-api.ts +462 -0
- package/api/webhooks-api.ts +397 -0
- package/api/workflows-api.ts +970 -0
- package/api.ts +40 -0
- package/base.ts +62 -0
- package/common.ts +127 -0
- package/configuration.ts +121 -0
- package/dist/esm/models/init-session-response.d.ts +4 -0
- package/dist/models/init-session-response.d.ts +4 -0
- package/docs/ActionBody.md +21 -0
- package/docs/ActionRecord.md +25 -0
- package/docs/ActionType.md +17 -0
- package/docs/ActivityApi.md +412 -0
- package/docs/ActivityChartPoint.md +31 -0
- package/docs/ActivityRecord.md +39 -0
- package/docs/ActivityRequestRecord.md +31 -0
- package/docs/ActivityStats.md +31 -0
- package/docs/ActorType.md +15 -0
- package/docs/ApiKeyCreated.md +27 -0
- package/docs/ApiKeyInfo.md +27 -0
- package/docs/AutoConfigureResult.md +21 -0
- package/docs/BillingApi.md +375 -0
- package/docs/BillingInterval.md +11 -0
- package/docs/Branding.md +31 -0
- package/docs/BroadcastTrigger.md +27 -0
- package/docs/BulkCreateSubscribers.md +21 -0
- package/docs/BulkPreferenceItem.md +24 -0
- package/docs/BulkPreferences.md +21 -0
- package/docs/BulkResult.md +22 -0
- package/docs/BulkTrigger.md +21 -0
- package/docs/ChannelConnectionRecord.md +31 -0
- package/docs/ChannelConnectionsApi.md +276 -0
- package/docs/ChannelEndpointRecord.md +33 -0
- package/docs/ChannelEndpointsApi.md +276 -0
- package/docs/ChannelPreferences.md +29 -0
- package/docs/ChannelType.md +17 -0
- package/docs/ChartQuery.md +21 -0
- package/docs/ChatOauth.md +21 -0
- package/docs/ChatOauthRequest.md +22 -0
- package/docs/CheckoutSession.md +23 -0
- package/docs/ContextRecord.md +29 -0
- package/docs/ContextsApi.md +285 -0
- package/docs/CreateChannelConnection.md +27 -0
- package/docs/CreateChannelEndpoint.md +29 -0
- package/docs/CreateCheckout.md +23 -0
- package/docs/CreateContext.md +25 -0
- package/docs/CreateIntegration.md +31 -0
- package/docs/CreateLayout.md +31 -0
- package/docs/CreateNotificationGroup.md +21 -0
- package/docs/CreateProject.md +21 -0
- package/docs/CreateSubscriber.md +37 -0
- package/docs/CreateSubscription.md +21 -0
- package/docs/CreateTopic.md +23 -0
- package/docs/CreateWebhook.md +23 -0
- package/docs/CreateWorkflow.md +35 -0
- package/docs/CtaType.md +9 -0
- package/docs/CursorMeta.md +27 -0
- package/docs/CursorPaginatedFeedItem.md +23 -0
- package/docs/CursorPaginatedFeedItemDataInner.md +37 -0
- package/docs/CursorPaginatedMessageRecord.md +23 -0
- package/docs/CursorPaginatedMessageRecordDataInner.md +41 -0
- package/docs/CursorPagination.md +25 -0
- package/docs/DeleteSubscription.md +20 -0
- package/docs/DeliveryAck.md +21 -0
- package/docs/DeliveryStatusWebhook.md +27 -0
- package/docs/DnsSettings.md +23 -0
- package/docs/EngagementStatsResponse.md +27 -0
- package/docs/EntitlementItem.md +25 -0
- package/docs/Entitlements.md +21 -0
- package/docs/ErrorDetail.md +27 -0
- package/docs/EventsApi.md +214 -0
- package/docs/EventsUsage.md +23 -0
- package/docs/FeatureFlagsApi.md +51 -0
- package/docs/FeedItem.md +37 -0
- package/docs/FeedQuery.md +31 -0
- package/docs/HealthApi.md +140 -0
- package/docs/InboundParseApi.md +59 -0
- package/docs/InboxApi.md +673 -0
- package/docs/InboxNotification.md +41 -0
- package/docs/InboxPreference.md +23 -0
- package/docs/InboxQuery.md +27 -0
- package/docs/InitSessionRequest.md +23 -0
- package/docs/InitSessionResponse.md +25 -0
- package/docs/IntegrationRecord.md +35 -0
- package/docs/IntegrationsApi.md +475 -0
- package/docs/InviteMember.md +23 -0
- package/docs/InviteMemberBody.md +23 -0
- package/docs/JobLog.md +33 -0
- package/docs/LayoutPreview.md +21 -0
- package/docs/LayoutPreviewResult.md +21 -0
- package/docs/LayoutRecord.md +31 -0
- package/docs/LayoutUsageItem.md +23 -0
- package/docs/LayoutsApi.md +484 -0
- package/docs/MarkAll.md +21 -0
- package/docs/MarkMessages.md +23 -0
- package/docs/MarkResult.md +21 -0
- package/docs/MemberRecord.md +27 -0
- package/docs/MemberRole.md +15 -0
- package/docs/MemberStatus.md +13 -0
- package/docs/MessageQuery.md +31 -0
- package/docs/MessageRecord.md +41 -0
- package/docs/MessagesApi.md +175 -0
- package/docs/MetricsApi.md +51 -0
- package/docs/NotificationCount.md +25 -0
- package/docs/NotificationGroupRecord.md +23 -0
- package/docs/NotificationGroupsApi.md +209 -0
- package/docs/NotificationLog.md +33 -0
- package/docs/NotificationQuery.md +25 -0
- package/docs/NotificationsApi.md +166 -0
- package/docs/OffsetMeta.md +27 -0
- package/docs/OffsetPagination.md +27 -0
- package/docs/OnlineStatus.md +21 -0
- package/docs/PaginatedChannelConnectionRecord.md +23 -0
- package/docs/PaginatedChannelConnectionRecordDataInner.md +31 -0
- package/docs/PaginatedChannelEndpointRecord.md +23 -0
- package/docs/PaginatedChannelEndpointRecordDataInner.md +33 -0
- package/docs/PaginatedContextRecord.md +23 -0
- package/docs/PaginatedContextRecordDataInner.md +29 -0
- package/docs/PaginatedIntegrationRecord.md +23 -0
- package/docs/PaginatedIntegrationRecordDataInner.md +35 -0
- package/docs/PaginatedLayoutRecord.md +23 -0
- package/docs/PaginatedLayoutRecordDataInner.md +31 -0
- package/docs/PaginatedSubscriberRecord.md +23 -0
- package/docs/PaginatedSubscriberRecordDataInner.md +41 -0
- package/docs/PaginatedTopicRecord.md +23 -0
- package/docs/PaginatedTopicRecordDataInner.md +24 -0
- package/docs/PaginatedTopicSubscriptionRecord.md +23 -0
- package/docs/PaginatedTopicSubscriptionRecordDataInner.md +29 -0
- package/docs/PaginatedWorkflowRecord.md +23 -0
- package/docs/PaginatedWorkflowRecordDataInner.md +37 -0
- package/docs/PaginationQuery.md +25 -0
- package/docs/PatchCredentials.md +27 -0
- package/docs/Plan.md +17 -0
- package/docs/PlanLimitsResponse.md +33 -0
- package/docs/PortalUrl.md +21 -0
- package/docs/PreferenceChannels.md +29 -0
- package/docs/PreferenceRecord.md +27 -0
- package/docs/PreferencesApi.md +171 -0
- package/docs/PreviewResult.md +20 -0
- package/docs/PriceInfo.md +27 -0
- package/docs/Prices.md +21 -0
- package/docs/ProjectRecord.md +27 -0
- package/docs/ProjectsApi.md +638 -0
- package/docs/SetCredentials.md +27 -0
- package/docs/StepPreview.md +21 -0
- package/docs/StepRecord.md +29 -0
- package/docs/StepType.md +27 -0
- package/docs/SubscriberCredential.md +27 -0
- package/docs/SubscriberPayload.md +37 -0
- package/docs/SubscriberRecord.md +41 -0
- package/docs/SubscribersApi.md +887 -0
- package/docs/Subscription.md +39 -0
- package/docs/SyncWorkflow.md +21 -0
- package/docs/SystemAvatarIcon.md +19 -0
- package/docs/TopicRecord.md +24 -0
- package/docs/TopicSubscribers.md +21 -0
- package/docs/TopicSubscription.md +23 -0
- package/docs/TopicSubscriptionRecord.md +29 -0
- package/docs/TopicsApi.md +777 -0
- package/docs/TranslationsApi.md +258 -0
- package/docs/TrialInfo.md +27 -0
- package/docs/TriggerEvent.md +31 -0
- package/docs/TriggerRecipients.md +39 -0
- package/docs/TriggerRecipientsOneOf.md +21 -0
- package/docs/TriggerResult.md +25 -0
- package/docs/TriggerStatus.md +21 -0
- package/docs/UnseenCount.md +21 -0
- package/docs/UpdateChannelConnection.md +21 -0
- package/docs/UpdateChannelEndpoint.md +23 -0
- package/docs/UpdateContext.md +21 -0
- package/docs/UpdateInboxPreferences.md +29 -0
- package/docs/UpdateIntegration.md +27 -0
- package/docs/UpdateLayout.md +27 -0
- package/docs/UpdateNotificationGroup.md +21 -0
- package/docs/UpdatePreference.md +23 -0
- package/docs/UpdateProject.md +23 -0
- package/docs/UpdateSubscriber.md +35 -0
- package/docs/UpdateSubscriptionMeta.md +21 -0
- package/docs/UpdateTopic.md +21 -0
- package/docs/UpdateWorkflow.md +31 -0
- package/docs/Usage.md +35 -0
- package/docs/WebhookRecord.md +31 -0
- package/docs/WebhooksApi.md +212 -0
- package/docs/WidgetSettings.md +21 -0
- package/docs/WorkflowRecord.md +37 -0
- package/docs/WorkflowRunRecord.md +31 -0
- package/docs/WorkflowStatsResponse.md +27 -0
- package/docs/WorkflowStatus.md +21 -0
- package/docs/WorkflowStepCreate.md +31 -0
- package/docs/WorkflowsApi.md +550 -0
- package/git_push.sh +57 -0
- package/index.ts +18 -0
- package/models/action-body.ts +26 -0
- package/models/action-record.ts +28 -0
- package/models/action-type.ts +32 -0
- package/models/activity-chart-point.ts +46 -0
- package/models/activity-record.ts +62 -0
- package/models/activity-request-record.ts +46 -0
- package/models/activity-stats.ts +46 -0
- package/models/actor-type.ts +31 -0
- package/models/api-key-created.ts +38 -0
- package/models/api-key-info.ts +38 -0
- package/models/auto-configure-result.ts +23 -0
- package/models/billing-interval.ts +29 -0
- package/models/branding.ts +46 -0
- package/models/broadcast-trigger.ts +29 -0
- package/models/bulk-create-subscribers.ts +26 -0
- package/models/bulk-preference-item.ts +25 -0
- package/models/bulk-preferences.ts +26 -0
- package/models/bulk-result.ts +24 -0
- package/models/bulk-trigger.ts +29 -0
- package/models/channel-connection-record.ts +43 -0
- package/models/channel-endpoint-record.ts +47 -0
- package/models/channel-preferences.ts +27 -0
- package/models/channel-type.ts +32 -0
- package/models/chart-query.ts +26 -0
- package/models/chat-oauth-request.ts +21 -0
- package/models/chat-oauth.ts +23 -0
- package/models/checkout-session.ts +35 -0
- package/models/context-record.ts +42 -0
- package/models/create-channel-connection.ts +35 -0
- package/models/create-channel-endpoint.ts +39 -0
- package/models/create-checkout.ts +35 -0
- package/models/create-context.ts +34 -0
- package/models/create-integration.ts +51 -0
- package/models/create-layout.ts +34 -0
- package/models/create-notification-group.ts +26 -0
- package/models/create-project.ts +26 -0
- package/models/create-subscriber.ts +58 -0
- package/models/create-subscription.ts +23 -0
- package/models/create-topic.ts +30 -0
- package/models/create-webhook.ts +30 -0
- package/models/create-workflow.ts +60 -0
- package/models/cta-type.ts +28 -0
- package/models/cursor-meta.ts +38 -0
- package/models/cursor-paginated-feed-item-data-inner.ts +40 -0
- package/models/cursor-paginated-feed-item.ts +36 -0
- package/models/cursor-paginated-message-record-data-inner.ts +45 -0
- package/models/cursor-paginated-message-record.ts +36 -0
- package/models/cursor-pagination.ts +34 -0
- package/models/delete-subscription.ts +20 -0
- package/models/delivery-ack.ts +23 -0
- package/models/delivery-status-webhook.ts +29 -0
- package/models/dns-settings.ts +30 -0
- package/models/engagement-stats-response.ts +38 -0
- package/models/entitlement-item.ts +34 -0
- package/models/entitlements.ts +26 -0
- package/models/error-detail.ts +38 -0
- package/models/events-usage.ts +30 -0
- package/models/feed-item.ts +40 -0
- package/models/feed-query.ts +28 -0
- package/models/inbox-notification.ts +39 -0
- package/models/inbox-preference.ts +27 -0
- package/models/inbox-query.ts +26 -0
- package/models/index.ts +158 -0
- package/models/init-session-request.ts +30 -0
- package/models/init-session-response.ts +34 -0
- package/models/integration-record.ts +59 -0
- package/models/invite-member-body.ts +30 -0
- package/models/invite-member.ts +30 -0
- package/models/job-log.ts +47 -0
- package/models/layout-preview-result.ts +23 -0
- package/models/layout-preview.ts +23 -0
- package/models/layout-record.ts +37 -0
- package/models/layout-usage-item.ts +24 -0
- package/models/mark-all.ts +23 -0
- package/models/mark-messages.ts +24 -0
- package/models/mark-result.ts +23 -0
- package/models/member-record.ts +38 -0
- package/models/member-role.ts +31 -0
- package/models/member-status.ts +30 -0
- package/models/message-query.ts +46 -0
- package/models/message-record.ts +45 -0
- package/models/notification-count.ts +25 -0
- package/models/notification-group-record.ts +30 -0
- package/models/notification-log.ts +41 -0
- package/models/notification-query.ts +34 -0
- package/models/offset-meta.ts +38 -0
- package/models/offset-pagination.ts +38 -0
- package/models/online-status.ts +23 -0
- package/models/paginated-channel-connection-record-data-inner.ts +43 -0
- package/models/paginated-channel-connection-record.ts +36 -0
- package/models/paginated-channel-endpoint-record-data-inner.ts +47 -0
- package/models/paginated-channel-endpoint-record.ts +36 -0
- package/models/paginated-context-record-data-inner.ts +42 -0
- package/models/paginated-context-record.ts +36 -0
- package/models/paginated-integration-record-data-inner.ts +59 -0
- package/models/paginated-integration-record.ts +36 -0
- package/models/paginated-layout-record-data-inner.ts +37 -0
- package/models/paginated-layout-record.ts +36 -0
- package/models/paginated-subscriber-record-data-inner.ts +69 -0
- package/models/paginated-subscriber-record.ts +36 -0
- package/models/paginated-topic-record-data-inner.ts +28 -0
- package/models/paginated-topic-record.ts +36 -0
- package/models/paginated-topic-subscription-record-data-inner.ts +39 -0
- package/models/paginated-topic-subscription-record.ts +36 -0
- package/models/paginated-workflow-record-data-inner.ts +58 -0
- package/models/paginated-workflow-record.ts +36 -0
- package/models/pagination-query.ts +34 -0
- package/models/patch-credentials.ts +29 -0
- package/models/plan-limits-response.ts +55 -0
- package/models/plan.ts +32 -0
- package/models/portal-url.ts +26 -0
- package/models/preference-channels.ts +27 -0
- package/models/preference-record.ts +32 -0
- package/models/preview-result.ts +20 -0
- package/models/price-info.ts +38 -0
- package/models/prices.ts +26 -0
- package/models/project-record.ts +46 -0
- package/models/set-credentials.ts +29 -0
- package/models/step-preview.ts +23 -0
- package/models/step-record.ts +36 -0
- package/models/step-type.ts +37 -0
- package/models/subscriber-credential.ts +26 -0
- package/models/subscriber-payload.ts +24 -0
- package/models/subscriber-record.ts +69 -0
- package/models/subscription.ts +73 -0
- package/models/sync-workflow.ts +26 -0
- package/models/system-avatar-icon.ts +33 -0
- package/models/topic-record.ts +28 -0
- package/models/topic-subscribers.ts +23 -0
- package/models/topic-subscription-record.ts +39 -0
- package/models/topic-subscription.ts +27 -0
- package/models/trial-info.ts +38 -0
- package/models/trigger-event.ts +49 -0
- package/models/trigger-recipients-one-of.ts +23 -0
- package/models/trigger-recipients.ts +29 -0
- package/models/trigger-result.ts +39 -0
- package/models/trigger-status.ts +34 -0
- package/models/unseen-count.ts +23 -0
- package/models/update-channel-connection.ts +23 -0
- package/models/update-channel-endpoint.ts +27 -0
- package/models/update-context.ts +26 -0
- package/models/update-inbox-preferences.ts +27 -0
- package/models/update-integration.ts +38 -0
- package/models/update-layout.ts +29 -0
- package/models/update-notification-group.ts +26 -0
- package/models/update-preference.ts +27 -0
- package/models/update-project.ts +33 -0
- package/models/update-subscriber.ts +54 -0
- package/models/update-subscription-meta.ts +23 -0
- package/models/update-topic.ts +26 -0
- package/models/update-workflow.ts +52 -0
- package/models/usage.ts +59 -0
- package/models/webhook-record.ts +46 -0
- package/models/widget-settings.ts +26 -0
- package/models/workflow-record.ts +58 -0
- package/models/workflow-run-record.ts +46 -0
- package/models/workflow-stats-response.ts +38 -0
- package/models/workflow-status.ts +26 -0
- package/models/workflow-step-create.ts +51 -0
- package/package.json +9 -33
- package/tsconfig.esm.json +7 -0
- 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
|
+
|